/* ============================================================
   ARCHITECTURAL SURFACES — STYLES
   Apple HIG-aligned · Parallax-enabled · Material-forward
   ============================================================ */

/* ============================================================
   BRAND FONTS (self-hosted, web-licensed)
   ============================================================ */
@font-face {
  font-family: 'Verlag';
  src: url('assets/fonts/Verlag-Light.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Sinclaire';
  src: url('assets/fonts/Sinclaire-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Sinclaire';
  src: url('assets/fonts/Sinclaire-Bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Coterie';
  src: url('assets/fonts/Coterie-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  /* --- Brand palette (from Architectural Surfaces brand book) --- */
  --burgundy:    #401a0d;   /* signature accent — links, italic emphasis */
  --forest:      #273125;   /* primary CTA colour — buttons across site & portal */
  --forest-deep: #1a201a;   /* darker forest — primary button hover */
  --rose:        #a68b85;   /* muted dusty rose */
  --bronze:      #8c6927;   /* warm metallic accent */
  --stone:       #bfbdb8;   /* neutral greige */
  --mint:        #5e8c6e;   /* soft sage accent */
  --pure-white:  #ffffff;

  /* --- Semantic aliases (existing variable names remapped to brand) --- */
  --bone:        #f4f1ec;   /* warm off-white */
  --paper:       #ebe6df;   /* deeper paper tone */
  --linen:       #e2dcd2;
  --mineral:     #1f1510;   /* deep burgundy-black */
  --ink:         #140a06;   /* deepest */
  --slate:       #6b6862;
  --whisper:     #a39e95;

  --sage:        var(--rose);     /* dusty rose replaces old mint-sage */
  --sage-deep:   var(--burgundy); /* deep accent = burgundy */
  --sage-pale:   #efe7e4;         /* pale rose wash */

  --travertine:  #c4a987;
  --marble:      #e8e3dc;
  --terracotta:  var(--bronze);   /* bronze replaces terracotta */

  /* --- Accent (drives primary CTAs, links, highlights) --- */
  --accent:      var(--burgundy);
  --accent-deep: #2a100a;         /* darker burgundy for hover */
  --accent-soft: var(--rose);

  /* --- Type --- */
  --serif:   'Sinclaire', 'Fraunces', 'Times New Roman', Georgia, serif;
  --sans:    'Verlag', 'Inter Tight', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --display: 'Coterie', 'Sinclaire', Georgia, serif;

  /* --- Spacing scale --- */
  --space-xs: 0.5rem;
  --space-s:  1rem;
  --space-m:  2rem;
  --space-l:  4rem;
  --space-xl: 8rem;
  --space-2xl: 12rem;

  /* --- Layout --- */
  --max-width: 1440px;
  --pad-x: clamp(1.25rem, 4vw, 3rem);

  /* --- Motion --- */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.55;
  color: var(--mineral);
  background: var(--bone);
  overflow-x: hidden;
}

img, video, svg {
  max-width: 100%;
  height: auto;
  display: block;
}

a { color: inherit; text-decoration: none; }

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

::selection {
  background: var(--sage);
  color: var(--ink);
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
.eyebrow {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--slate);
  margin: 0 0 var(--space-m);
}

.eyebrow--light { color: rgba(255, 255, 255, 0.7); }

.section-title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.25rem, 5.5vw, 4.5rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0;
}

.section-title em {
  font-style: italic;
  font-weight: 400;
  color: var(--sage-deep);
}

.section-title--light { color: var(--bone); }
.section-title--light em { color: var(--sage); }

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
}

.section-head {
  margin-bottom: var(--space-l);
}

.section-head--split {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-m);
  align-items: end;
}

@media (min-width: 720px) {
  .section-head--split {
    grid-template-columns: 1.4fr 1fr;
    gap: var(--space-l);
  }
}

.section-head__aside {
  font-size: clamp(1rem, 1.1vw, 1.1rem);
  line-height: 1.55;
  color: var(--slate);
  max-width: 38ch;
  margin: 0;
  justify-self: end;
}

/* ============================================================
   BRAND MARK
   ============================================================ */
.brand-mark {
  font-family: var(--serif);
  font-weight: 400;
  font-style: italic;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  color: inherit;
  display: inline-flex;
  align-items: baseline;
}

/* Image logo variant (replaces text A|S mark) */
.brand-mark--img {
  display: inline-block;
  height: 56px;
  width: auto;
  object-fit: contain;
  transition: filter 0.35s var(--ease-out), opacity 0.3s ease, height 0.3s var(--ease-out);
}
/* Slightly smaller once the nav compacts on scroll, so it doesn't crowd the bar */
.nav.is-scrolled .brand-mark--img {
  height: 44px;
}
.brand-mark--footer {
  height: 56px;
  /* primary-logo-white.svg is already white — no filter needed */
}
/* When nav sits over the dark hero, tint the burgundy mark toward bone */
.nav.is-light:not(.is-scrolled) .brand-mark--img {
  filter: brightness(0) invert(1);
  opacity: 0.92;
}

.brand-mark__sep {
  color: var(--sage-deep);
  margin: 0 0.1em;
  font-style: normal;
  font-weight: 300;
}

.brand-word {
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--slate);
  margin-left: 1rem;
  border-left: 1px solid currentColor;
  padding-left: 1rem;
  align-self: center;
}

@media (max-width: 720px) {
  .brand-word { display: none; }
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.25rem 0;
  transition: background 0.4s var(--ease-out), padding 0.3s var(--ease-out), backdrop-filter 0.4s ease;
}

.nav.is-scrolled {
  background: rgba(244, 241, 236, 0.85);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  padding: 0.75rem 0;
}

.nav.is-light:not(.is-scrolled) { color: var(--bone); }
.nav.is-light:not(.is-scrolled) .brand-word { color: rgba(244, 241, 236, 0.75); }
.nav.is-light:not(.is-scrolled) .brand-mark__sep { color: var(--sage); }

.nav__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-m);
}

.nav__brand {
  display: inline-flex;
  align-items: baseline;
  flex: 0 0 auto;
}

.nav__links {
  display: none;
  gap: 1.5rem;
  font-size: 0.9rem;
  font-weight: 400;
}

.nav__links a {
  position: relative;
  padding: 0.25rem 0;
  transition: opacity 0.2s ease;
}

.nav__links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 1px;
  background: currentColor;
  transition: width 0.35s var(--ease-out);
}

.nav__links a:hover::after { width: 100%; }

/* Desktop: inline text links while we're at the top of the page (over the
   hero). Once the nav compacts on scroll (.is-scrolled), swap the inline
   links out for the hamburger so the scrolled bar stays quiet. */
@media (min-width: 960px) {
  .nav__links { display: flex; }
  .nav.is-scrolled .nav__links { display: none; }
  .nav.is-scrolled .nav__menu  { display: flex; }
}

.nav__cta {
  display: none;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 0.6rem 1.25rem;
  border: 1px solid currentColor;
  border-radius: 100px;
  transition: background 0.3s var(--ease-out), color 0.3s var(--ease-out);
}

.nav__cta:hover {
  background: var(--ink);
  color: var(--bone);
  border-color: var(--ink);
}

.nav.is-light:not(.is-scrolled) .nav__cta:hover {
  background: var(--bone);
  color: var(--ink);
  border-color: var(--bone);
}

.nav__cta-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--sage);
  display: inline-block;
}

@media (min-width: 720px) {
  .nav__cta { display: inline-flex; }
}

/* Mobile menu */
.nav__menu {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 28px;
  height: 28px;
  padding: 0;
}

.nav__menu span {
  display: block;
  width: 100%;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav__menu[aria-expanded="true"] span:first-child {
  transform: translateY(3.25px) rotate(45deg);
}

.nav__menu[aria-expanded="true"] span:last-child {
  transform: translateY(-3.25px) rotate(-45deg);
}

@media (min-width: 960px) {
  .nav__menu { display: none; }
}

/* Compact dropdown panel anchored to the top-right of the nav.
   On mobile it still pins to the top-right rather than a fullscreen
   takeover, so the behaviour is consistent across breakpoints. */
.nav__drawer {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: clamp(1rem, 4vw, 2rem);
  min-width: 200px;
  background: var(--bone);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 14px;
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.25), 0 2px 6px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.85rem 1rem;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 400;
  z-index: 90;
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity 0.25s var(--ease-out), transform 0.25s var(--ease-out);
}

.nav__drawer.is-open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.nav__drawer a {
  display: block;
  padding: 0.45rem 0.75rem;
  border-radius: 8px;
  color: var(--ink);
  transition: background 0.2s ease, color 0.2s ease;
}

.nav__drawer a:hover {
  background: rgba(64, 26, 13, 0.06);
  color: var(--burgundy);
}

.nav__drawer-cta {
  font-family: var(--sans);
  font-style: normal;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.85rem 2rem;
  border: 1px solid var(--ink);
  border-radius: 100px;
  margin-top: 1rem;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1rem 1.75rem;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  border-radius: 100px;
  transition: transform 0.3s var(--ease-out), background 0.3s var(--ease-out), color 0.3s var(--ease-out), border-color 0.3s var(--ease-out);
  white-space: nowrap;
}

.btn svg { transition: transform 0.3s var(--ease-out); }
.btn:hover svg { transform: translateX(3px); }

.btn--primary {
  background: var(--forest);
  color: var(--bone);
  border: 1px solid var(--forest);
}

.btn--primary:hover {
  background: var(--forest-deep);
  border-color: var(--forest-deep);
  transform: translateY(-1px);
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid currentColor;
}

.btn--ghost:hover {
  background: var(--ink);
  color: var(--bone);
}

.btn--ghost-light {
  color: var(--bone);
  border-color: rgba(244, 241, 236, 0.4);
}

.btn--ghost-light:hover {
  background: var(--bone);
  color: var(--ink);
  border-color: var(--bone);
}

.btn--light {
  background: var(--bone);
  color: var(--ink);
  border: 1px solid var(--bone);
}

.btn--light:hover {
  background: transparent;
  color: var(--bone);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  width: 100%;
  overflow: hidden;
  background: var(--ink);
}

.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.hero__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg,
      rgba(0, 0, 0, 0.3) 0%,
      rgba(0, 0, 0, 0.15) 40%,
      rgba(0, 0, 0, 0.55) 100%);
  z-index: 2;
}

.hero__grain {
  position: absolute;
  inset: 0;
  z-index: 3;
  opacity: 0.06;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

.hero__content {
  position: relative;
  z-index: 5;
  height: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: var(--bone);
}

.hero__title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.9rem, 4.6vw, 4.25rem);
  line-height: 1.0;
  letter-spacing: -0.025em;
  margin: 0 0 var(--space-m);
  /* max-width dropped — the longer first line now uses the <br /> for its
     primary break, and the em line sets its own natural width. */
}

.hero__title em {
  display: inline-block;
  font-style: italic;
  font-weight: 400;
  /* Italic line sits a touch smaller than the main line for hierarchy */
  font-size: 0.72em;
  color: var(--sage-pale);
  margin-top: 0.15em;
}

.hero__lede {
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  line-height: 1.5;
  max-width: 44ch;
  color: rgba(244, 241, 236, 0.85);
  margin: 0 0 var(--space-l);
  font-weight: 300;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero .btn--ghost {
  color: var(--bone);
  border-color: rgba(244, 241, 236, 0.4);
}

.hero .btn--ghost:hover {
  background: var(--bone);
  color: var(--ink);
  border-color: var(--bone);
}

.hero__scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(244, 241, 236, 0.7);
}

.hero__scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, transparent, rgba(244, 241, 236, 0.6), transparent);
  animation: scrollPulse 2.4s var(--ease-in-out) infinite;
}

@keyframes scrollPulse {
  0%, 100% { transform: scaleY(0.4); opacity: 0.3; }
  50% { transform: scaleY(1); opacity: 1; }
}

/* ============================================================
   STUDIO (pinned-section parallax)
   ============================================================ */
.studio {
  padding: var(--space-2xl) 0;
  background-color: var(--bone);
  /* Full-bleed photo behind the section + bone-tinted overlay so copy
     stays readable. The image URL is set via --studio-bg by an inline
     script in <head> so the site can alternate between studio-bg.jpg and
     studio-bg2.jpg on each load. Fallback covers the no-JS case. */
  background-image:
    linear-gradient(rgba(244, 241, 236, 0.82), rgba(244, 241, 236, 0.88)),
    var(--studio-bg, url('assets/studio-bg.webp'));
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}

/* The showroom photo is usually wider than the viewport after
   `background-size: cover` crops it — slide the visible window
   left→right→left on a continuous loop so the full frame is gradually
   revealed. A short hold at each end prevents the turnaround from
   feeling abrupt, and linear traversal keeps the motion actually
   perceptible (ease-in-out wastes most of its time nearly-stationary).
   On any viewport where the image happens to fit exactly horizontally,
   this animation is a visual no-op — `background-position` has no
   range to move through — so it's safe to run everywhere without a
   media query gate. `will-change` hints the browser to GPU-promote
   the layer for smoother frame pacing. */
@keyframes studioPan {
  0%, 4%   { background-position: 0% center; }
  50%, 54% { background-position: 100% center; }
  100%     { background-position: 0% center; }
}

.studio {
  animation: studioPan 100s linear infinite;
  will-change: background-position;
}

@media (prefers-reduced-motion: reduce) {
  .studio {
    animation: none;
  }
}

/* Subtle grain on top of the photo to match the site's filmic texture
   elsewhere. Opacity is low so it doesn't muddy the image. */
.studio::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.studio .container {
  position: relative;
  z-index: 1;
}

.studio .container {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-l);
}

@media (min-width: 1000px) {
  .studio .container {
    grid-template-columns: 1fr 1.4fr;
    gap: var(--space-xl);
  }
}

.studio__pin {
  position: relative;
}

@media (min-width: 1000px) {
  .studio__pin {
    position: sticky;
    top: 8rem;
    align-self: start;
    height: fit-content;
  }
}

.studio__intro {
  font-family: var(--sans);
  font-weight: 400;
  font-size: clamp(1.2rem, 1.6vw, 1.4rem);
  line-height: 1.55;
  color: var(--slate);
  margin: var(--space-m) 0 0;
  max-width: 40ch;
}

.studio__pillars {
  display: grid;
  gap: var(--space-l);
}

.pillar {
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  padding-top: var(--space-m);
}

.pillar__header {
  display: flex;
  align-items: baseline;
  gap: 0.65rem;
  margin: 0 0 0.85rem;
}

.pillar__num {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: 1rem;
  color: var(--sage-deep);
  flex-shrink: 0;
}

.pillar h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.5rem;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--ink);
}

.pillar p {
  margin: 0;
  font-size: clamp(1.05rem, 1.3vw, 1.2rem);
  line-height: 1.6;
  color: var(--slate);
  max-width: 52ch;
}

/* ============================================================
   PARALLAX BREAK (layered depth)
   ============================================================ */
.parallax-break {
  position: relative;
  height: 70vh;
  min-height: 480px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--mineral);
}

.parallax-layer {
  position: absolute;
  inset: -10%;
  background-size: cover;
  background-position: center;
  will-change: transform;
}

.parallax-layer--bg {
  /* Travertine-inspired layered gradient — used as the default on breaks
     that don't supply their own image. */
  background:
    radial-gradient(ellipse at 30% 40%, rgba(196, 169, 135, 0.35), transparent 50%),
    radial-gradient(ellipse at 70% 60%, rgba(168, 181, 163, 0.25), transparent 60%),
    linear-gradient(135deg, #2a2926 0%, #3d3a35 100%);
}

/* Break #1 — the "Material is the first decision" quote sits over a
   photo instead of the default gradient. Dark warm overlay preserves
   the bone + sage-pale text contrast. Falls back to the gradient above
   if the image file is missing. */
.parallax-break--1 .parallax-layer--bg {
  background-image:
    linear-gradient(rgba(30, 25, 22, 0.55), rgba(30, 25, 22, 0.65)),
    url('assets/quote-bg.webp');
  background-size: cover;
  background-position: center;
}

.parallax-layer--mid {
  background:
    radial-gradient(circle at 20% 80%, rgba(176, 112, 80, 0.18), transparent 40%),
    radial-gradient(circle at 80% 20%, rgba(232, 227, 220, 0.08), transparent 50%);
  opacity: 0.7;
}

.parallax-break__quote {
  position: relative;
  z-index: 5;
  max-width: 1100px;
  padding: 0 var(--pad-x);
  text-align: center;
}

.parallax-break__quote p {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--bone);
  margin: 0;
}

.parallax-break__quote em {
  font-style: italic;
  color: var(--sage-pale);
}

/* Line reveal — each line of the quote rises from behind a mask when
   the block scrolls into view (the shared [data-reveal] observer adds
   .is-visible). More deliberate than the standard fade-up. */
.quote-line {
  display: block;
  overflow: hidden;
}
.quote-line > span {
  display: block;
  transform: translateY(110%);
  transition: transform 1.8s var(--ease-out);
}
.is-visible .quote-line:nth-child(1) > span { transition-delay: 0.1s; }
.is-visible .quote-line:nth-child(2) > span { transition-delay: 0.5s; }
.is-visible .quote-line > span { transform: none; }

/* ============================================================
   MATERIALS
   ============================================================ */
.materials {
  padding: var(--space-2xl) 0;
  background: var(--paper);
}

/* Film strip — materials hang side by side in a horizontal drift.
   Swipe or scroll through them like walking a gallery wall. Cards
   arrive soft and settle sharp as they enter view (or on hover).

   The strip is full-bleed, but its first card lines up with the
   container's content edge (--strip-inset mirrors the .container
   maths). Cards fade out through the side gutters as they scroll,
   masked from opaque at the content edge to transparent at the
   viewport edge. */
.materials {
  --strip-inset: max(var(--pad-x), calc((100% - var(--max-width)) / 2 + var(--pad-x)));
}

.materials__strip {
  display: flex;
  gap: var(--space-m);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0 var(--strip-inset) var(--space-s);
  scroll-padding-inline: var(--strip-inset);
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -webkit-mask-image: linear-gradient(90deg,
    transparent 0,
    #000 var(--strip-inset),
    #000 calc(100% - var(--strip-inset)),
    transparent 100%);
  mask-image: linear-gradient(90deg,
    transparent 0,
    #000 var(--strip-inset),
    #000 calc(100% - var(--strip-inset)),
    transparent 100%);
}
.materials__strip::-webkit-scrollbar { display: none; }

.materials__strip .material {
  flex: 0 0 min(400px, 76vw);
  scroll-snap-align: start;
}

.materials__strip .material__swatch {
  filter: blur(8px) saturate(0.85);
  transition: filter 0.9s var(--ease-out);
}
.materials__strip .material:hover .material__swatch,
.materials__strip .material.in-view .material__swatch {
  filter: none;
}

.materials__hint {
  margin: var(--space-s) 0 0;
  padding: 0 var(--strip-inset);
  text-align: right;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--whisper);
}

.material {
  display: flex;
  flex-direction: column;
  gap: var(--space-s);
  will-change: transform;
  transition: transform 0.4s var(--ease-out);
}

.material:hover { transform: translateY(-4px); }

.material__swatch {
  aspect-ratio: 4 / 5;
  border-radius: 4px;
  overflow: hidden;
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06), 0 8px 30px -8px rgba(0, 0, 0, 0.12);
}

/* Material swatches — each declares a URL (drop photo into /assets/) on top of
   a procedural gradient fallback. Missing photos silently fall through to the
   gradient, so the site never shows broken-image boxes.
   See README for the asset filename manifest. */
.material__swatch--travertine {
  background-image:
    url('assets/material-travertine.webp'),
    repeating-linear-gradient(110deg,
      rgba(176, 130, 90, 0.08) 0px,
      rgba(176, 130, 90, 0.08) 2px,
      transparent 2px, transparent 8px),
    radial-gradient(ellipse at 30% 20%, #d4b894 0%, #c4a987 60%, #ad9676 100%);
}

.material__swatch--marble {
  background-image:
    url('assets/material-marble.webp'),
    repeating-linear-gradient(45deg,
      rgba(120, 120, 120, 0.06) 0px,
      rgba(120, 120, 120, 0.06) 1px,
      transparent 1px, transparent 12px),
    linear-gradient(135deg, #f0ebe2 0%, #e8e3dc 50%, #d8d2c8 100%);
}

.material__swatch--porcelain {
  background-image:
    url('assets/material-porcelain.webp'),
    radial-gradient(ellipse at 70% 30%, rgba(168, 144, 110, 0.25), transparent 60%),
    linear-gradient(180deg, #c8b89e 0%, #a89578 100%);
}

.material__swatch--terrazzo {
  background-color: #ebe6df;
  background-image:
    url('assets/material-terrazzo.webp'),
    radial-gradient(circle at 20% 30%, #8a6d4f 2px, transparent 3px),
    radial-gradient(circle at 60% 60%, #d4a07a 3px, transparent 4px),
    radial-gradient(circle at 80% 20%, #6e8068 2px, transparent 3px),
    radial-gradient(circle at 30% 80%, #2a2926 2px, transparent 3px),
    radial-gradient(circle at 70% 90%, #b8a890 3px, transparent 4px);
  background-size: cover, 60px 60px, 80px 80px, 50px 50px, 70px 70px, 90px 90px;
  background-repeat: no-repeat, repeat, repeat, repeat, repeat, repeat;
}

.material__swatch--limestone {
  background-image:
    url('assets/material-limestone.webp'),
    radial-gradient(ellipse at 50% 50%, rgba(80, 80, 80, 0.15), transparent 70%),
    linear-gradient(135deg, #6b6862 0%, #4a4844 100%);
}

.material__swatch--plaster {
  background-image:
    url('assets/material-plaster.webp'),
    radial-gradient(ellipse at 25% 30%, rgba(255, 255, 255, 0.4), transparent 50%),
    radial-gradient(ellipse at 75% 70%, rgba(0, 0, 0, 0.08), transparent 50%),
    linear-gradient(180deg, #e8dccc 0%, #d4c4ae 100%);
}

.material__meta h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  margin: 0 0 0.25rem;
  color: var(--ink);
}

.material__meta p {
  font-size: 0.85rem;
  color: var(--slate);
  margin: 0;
  letter-spacing: 0.02em;
}

/* ============================================================
   PROJECTS (focus bands + inline accordion)
   Each project is a full-width band, soft-focus at rest. Hover
   sharpens the photograph; click opens an in-place accordion
   with the hero, editorial and thumbnail strip.
   ============================================================ */
.projects {
  padding: var(--space-2xl) 0 0;
  background: var(--bone);
}

/* Bands sit outside the container — full-bleed edge to edge. */
.projects__bands {
  display: flex;
  flex-direction: column;
  margin-top: var(--space-l);
}

.band {
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  /* Keep the settled band clear of the fixed nav when the accordion
     scrolls it to the top of the viewport. */
  scroll-margin-top: 5rem;
}
.band:last-child {
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

/* The clickable strip */
.band__strip {
  position: relative;
  display: block;
  width: 100%;
  height: clamp(300px, 44vh, 520px);
  overflow: hidden;
  padding: 0;
  border: none;
  background: var(--linen);
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

/* Band media — an <img> from Sanity (object-position honours the
   per-project focal point set in the Studio via --band-focus) or a
   gradient-fallback <div> for the hardcoded cards. */
.band__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--band-focus, center);
  background-size: cover;
  background-position: var(--band-focus, center);
  background-repeat: no-repeat;
  filter: blur(14px) saturate(0.82) brightness(0.9);
  transform: scale(1.07);
  transition: filter 1.1s var(--ease-out), transform 1.1s var(--ease-out);
  will-change: filter, transform;
}

.band__strip:hover .band__media,
.band__strip:focus-visible .band__media,
.band.is-open .band__media {
  filter: none;
  transform: scale(1.01);
}

/* Legibility scrim — eases as the photo sharpens */
.band__strip::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 10, 6, 0) 45%, rgba(20, 10, 6, 0.45) 100%);
  opacity: 0.9;
  transition: opacity 0.8s var(--ease-out);
}
.band__strip:hover::after,
.band.is-open .band__strip::after {
  opacity: 0.65;
}

.band__strip:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -4px;
}

.band__caption {
  position: absolute;
  left: var(--pad-x);
  right: var(--pad-x);
  bottom: 2rem;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-m);
}

.band__name {
  display: block;
  margin-top: 0.4rem;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--bone);
}

.band__cue {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding-bottom: 0.4rem;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(244, 241, 236, 0.85);
}
.band__cue svg { transition: transform 0.4s var(--ease-out); }
.band.is-open .band__cue svg { transform: rotate(45deg); }

/* Accordion panel — grid-rows animation gives a fluid, unmeasured
   height transition. */
.band__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.8s var(--ease-out);
  background: var(--paper);
}
.band.is-open .band__panel { grid-template-rows: 1fr; }
.band__panel-inner { overflow: hidden; }

.band__panel-content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-l) var(--pad-x);
  display: grid;
  gap: var(--space-m);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s var(--ease-out) 0.25s, transform 0.7s var(--ease-out) 0.25s;
}
.band.is-open .band__panel-content { opacity: 1; transform: none; }

@media (min-width: 900px) {
  .band__panel-content {
    grid-template-columns: 1.35fr 1fr;
    gap: var(--space-l);
  }
}

/* Hero inside the panel — clickable, opens the lightbox */
.band__hero {
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  background: var(--linen);
  aspect-ratio: 4 / 3;
  border-radius: 4px;
  overflow: hidden;
  cursor: zoom-in;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06), 0 8px 30px -8px rgba(0, 0, 0, 0.12);
  position: relative;
}
.band__hero img,
.band__hero > div {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Same focal point as the band strip — set once per project via
     --band-focus on the <article>, sourced from the hero image's
     "Focal point" dropdown in the Studio. */
  object-position: var(--band-focus, center);
  background-size: cover;
  background-position: var(--band-focus, center);
}
.band__hero:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.band__editorial .project__eyebrow {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--slate);
  margin: 0 0 var(--space-s);
}
.band__editorial h3 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 var(--space-s);
}
.band__editorial p {
  font-size: 1.02rem;
  line-height: 1.6;
  color: var(--slate);
  margin: 0 0 var(--space-s);
  max-width: 38em;
}

.band__credits {
  margin-top: var(--space-m);
  padding-top: var(--space-s);
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  font-size: 0.85rem;
  color: var(--whisper);
  letter-spacing: 0.03em;
}
.band__credits span {
  font-style: italic;
  color: var(--slate);
  margin-right: 0.4rem;
}

/* Thumbnails span the full panel width beneath hero + editorial */
.band__thumbs {
  grid-column: 1 / -1;
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: var(--space-s);
}

/* Gradient fallbacks for the hardcoded bands (pre-hydration and
   Sanity-unreachable states). Same procedural gradients as before. */
.band__media--1 {
  background-image:
    linear-gradient(135deg, rgba(0,0,0,0.1), rgba(0,0,0,0.3)),
    radial-gradient(ellipse at 30% 40%, #c4a987 0%, #8b7355 100%);
}
.band__media--2 {
  background-image:
    linear-gradient(135deg, rgba(0,0,0,0.05), rgba(0,0,0,0.25)),
    linear-gradient(180deg, #e8e3dc 0%, #a8b5a3 100%);
}
.band__media--3 {
  background-image:
    linear-gradient(135deg, rgba(0,0,0,0.1), rgba(0,0,0,0.4)),
    radial-gradient(ellipse at 70% 30%, #d4c4ae 0%, #6b6862 100%);
}

/* Touch devices have no hover — bands render sharp with a light veil,
   and the tap opens the accordion. */
@media (hover: none) {
  .band__media {
    filter: saturate(0.95) brightness(0.95);
    transform: scale(1.01);
  }
}

/* ============================================================
   JOURNAL / INSTAGRAM
   ============================================================ */
.journal {
  padding: var(--space-2xl) 0;
  background: var(--paper);
}

.journal__follow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  color: var(--ink);
  border-bottom: 1px solid currentColor;
  padding-bottom: 0.25rem;
  align-self: end;
  justify-self: end;
  transition: color 0.2s ease;
}

.journal__follow:hover { color: var(--sage-deep); }

.journal__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-m);
}

@media (min-width: 900px) {
  .journal__grid {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-l);
  }
}

.ig-tile {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  will-change: transform;
  transition: transform 0.4s var(--ease-out);
}

.ig-tile:hover { transform: translateY(-4px); }

.ig-tile__media {
  aspect-ratio: 1;
  border-radius: 4px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06), 0 8px 30px -8px rgba(0, 0, 0, 0.12);
  position: relative;
}

.ig-tile__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,0.3));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.ig-tile:hover .ig-tile__media::after { opacity: 1; }

/* Instagram tiles — URL layer on top, gradient fallback below.
   Photos should be square (1080×1080 minimum). Filenames map to
   the captions set in index.html; update both when reordering. */
.ig-tile__media--1 {
  background-image:
    url('assets/ig-1.webp'),
    radial-gradient(ellipse at 30% 30%, #c4a987 0%, #8b7355 100%);
}
.ig-tile__media--2 {
  background-image:
    url('assets/ig-2.webp'),
    linear-gradient(135deg, #d4c4ae 0%, #a89578 100%);
}
.ig-tile__media--3 {
  background-image:
    url('assets/ig-3.webp'),
    radial-gradient(ellipse at 50% 50%, #ad9676 0%, #6b5840 100%);
}
.ig-tile__media--4 {
  background-image:
    url('assets/ig-4.webp'),
    radial-gradient(ellipse at 70% 30%, #d4b894 0%, #b8956e 100%);
}

.ig-tile__caption {
  font-size: 0.85rem;
  color: var(--slate);
  line-height: 1.4;
}

/* ============================================================
   TRADE
   ============================================================ */
.trade {
  position: relative;
  padding: var(--space-2xl) 0;
  background: var(--ink);
  overflow: hidden;
  isolation: isolate;
}

.trade__bg {
  position: absolute;
  inset: -20%;
  z-index: 0;
  background:
    radial-gradient(ellipse at 30% 30%, rgba(168, 181, 163, 0.18), transparent 50%),
    radial-gradient(ellipse at 70% 70%, rgba(196, 169, 135, 0.12), transparent 50%);
  will-change: transform;
}

.trade__content {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.trade__lede {
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  line-height: 1.6;
  color: rgba(244, 241, 236, 0.75);
  max-width: 52ch;
  margin: var(--space-m) 0 var(--space-l);
  font-weight: 300;
}

.trade__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact {
  padding: var(--space-2xl) 0;
  background: var(--bone);
}

.contact__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
}

@media (min-width: 900px) {
  .contact__grid {
    grid-template-columns: 1fr 1.4fr;
    gap: var(--space-xl);
  }
}

/* Solo layout: contact details shown without the enquiry form.
   The details fill the width as two balanced columns (Studio/Email
   beside Phone/Instagram) so there's no stranded whitespace. */
.contact__grid--solo {
  grid-template-columns: 1fr;
}

.contact__details {
  display: grid;
  gap: var(--space-m);
  align-content: start;
}

@media (min-width: 700px) {
  .contact__grid--solo .contact__details {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    grid-auto-flow: column;
    column-gap: var(--space-xl);
    row-gap: var(--space-m);
  }
}

.contact__item {
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  padding-top: var(--space-s);
}

.contact__label {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--whisper);
  margin: 0 0 0.5rem;
}

.contact__item a {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.15rem;
  line-height: 1.4;
  color: var(--ink);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.contact__item a:hover {
  border-bottom-color: currentColor;
  color: var(--sage-deep);
}

/* Form */
.contact__form {
  display: grid;
  gap: var(--space-m);
}

.form-row {
  display: grid;
}

.form-row--split {
  grid-template-columns: 1fr;
  gap: var(--space-m);
}

@media (min-width: 600px) {
  .form-row--split { grid-template-columns: 1fr 1fr; }
}

.form-row label {
  display: block;
  position: relative;
}

.form-row label span {
  display: block;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--whisper);
  margin-bottom: 0.5rem;
}

.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 0.85rem 0;
  border: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.18);
  background: transparent;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.1rem;
  color: var(--ink);
  outline: none;
  transition: border-color 0.3s var(--ease-out);
  border-radius: 0;
  appearance: none;
  -webkit-appearance: none;
}

.form-row textarea { resize: vertical; min-height: 120px; }

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  border-bottom-color: var(--sage-deep);
}

.form-row input:invalid:not(:placeholder-shown):not(:focus),
.form-row textarea:invalid:not(:placeholder-shown):not(:focus) {
  border-bottom-color: var(--terracotta);
}

.form-submit {
  justify-self: start;
  margin-top: var(--space-m);
}

.form-status {
  margin: var(--space-s) 0 0;
  font-size: 0.9rem;
  color: var(--sage-deep);
  min-height: 1.4em;
}

.form-status.is-error { color: var(--terracotta); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  padding: var(--space-l) 0 var(--space-m);
  background: var(--ink);
  color: rgba(244, 241, 236, 0.7);
}

.footer__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-l);
  padding-bottom: var(--space-m);
  border-bottom: 1px solid rgba(244, 241, 236, 0.1);
}

@media (min-width: 800px) {
  .footer__inner {
    grid-template-columns: 1.2fr auto 1fr;
    gap: var(--space-xl);
    align-items: center;
  }
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--bone);
}

.footer__brand .brand-mark { color: var(--bone); }
.footer__brand .brand-mark__sep { color: var(--sage); }

.footer__brand p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.4;
}

.footer__brand p span {
  color: rgba(244, 241, 236, 0.5);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
}

.footer__links {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  gap: 1.5rem;
  align-items: center;
  font-size: 0.9rem;
  white-space: nowrap;
}

@media (max-width: 799px) {
  .footer__links {
    flex-wrap: wrap;
  }
}

.footer__links a {
  transition: color 0.2s ease;
  border-bottom: 1px solid transparent;
  padding-bottom: 0.15rem;
}

.footer__links a:hover {
  color: var(--bone);
  border-bottom-color: var(--sage);
}

.footer__meta {
  font-size: 0.8rem;
  color: rgba(244, 241, 236, 0.5);
  display: grid;
  gap: 0.25rem;
  align-content: center;
}

.footer__meta p { margin: 0; }

@media (min-width: 800px) {
  .footer__meta { text-align: right; }
}

/* ============================================================
   REVEAL ANIMATIONS
   ============================================================ */
[data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   CMS-HYDRATED CONTENT
   Styles for Sanity-rendered items that share behaviour with
   their hardcoded counterparts but have dynamic backgrounds.
   ============================================================ */
.material__swatch--cms,
.ig-tile__media--cms {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Buttonised swatch — when a material has gallery images, the swatch is
   rendered as a <button> to open the lightbox. Reset the default button
   chrome and hint interactivity with a zoom cursor + gentle lift. */
button.material__swatch--cms {
  display: block;
  width: 100%;
  border: 0;
  padding: 0;
  margin: 0;
  font: inherit;
  color: inherit;
  background-color: transparent;
  cursor: zoom-in;
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}

button.material__swatch--cms:hover {
  transform: translateY(-2px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08), 0 14px 40px -10px rgba(0, 0, 0, 0.18);
}

button.material__swatch--cms:focus-visible {
  outline: 2px solid var(--burgundy);
  outline-offset: 3px;
}

/* Layered crossfade — materials with multiple images stack two absolute
   <span> layers inside the swatch button. JS swaps which is "active";
   the transition on opacity produces a smooth fade. */
.material__swatch-layer {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  /* Long, soft crossfade — the swap should feel like light changing,
     not a slideshow advancing. ease-in-out suits the cyclic motion. */
  transition: opacity 2.4s var(--ease-in-out);
}

.material__swatch-layer--active {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .material__swatch-layer {
    transition: none;
  }
}

.journal__item {
  display: block;
  color: inherit;
  text-decoration: none;
  transition: transform 0.4s var(--ease-out);
}
.journal__item:hover { transform: translateY(-4px); }

.journal__cover {
  aspect-ratio: 16 / 9;
  background-size: cover;
  background-position: center;
  background-color: var(--linen);
  border-radius: 4px;
  margin-bottom: 1rem;
}

.journal__date {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate);
  margin: 0 0 0.5rem;
}

.journal__title {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 500;
  margin: 0 0 0.5rem;
  line-height: 1.2;
  color: var(--ink);
}

.journal__excerpt {
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--slate);
  margin: 0;
}

/* ----- Project thumbnails (accordion panel gallery strip) ----- */
.project__thumb {
  width: 100%;
  aspect-ratio: 1 / 1;
  padding: 0;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 2px;
  background-color: var(--bone-soft, #ecebe6);
  overflow: hidden;
  cursor: zoom-in;
  transition: transform 0.25s var(--ease-out), border-color 0.25s ease;
}
.project__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.project__thumb:hover {
  transform: translateY(-2px);
  border-color: var(--burgundy);
}
.project__thumb:focus-visible {
  outline: 2px solid var(--burgundy);
  outline-offset: 2px;
}

/* ----- Collaborators block (replaces the old "Read case study" link) ----- */
.project__collabs {
  margin-top: 0.25rem;
}
.project__collabs-label {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--slate);
  margin: 0 0 0.55rem;
}
.project__collabs ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.project__collabs li {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.3;
}
/* A collaborator's name links to Instagram only when their profile has a
   handle set (see sanity-client.js) — same quiet hover treatment as the
   contact links: underline + burgundy on hover, nothing otherwise. */
.project__collabs li a {
  color: var(--ink);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.project__collabs li a:hover {
  border-bottom-color: currentColor;
  color: var(--sage-deep);
}

/* ============================================================
   LIGHTBOX
   ============================================================ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(18, 16, 14, 0.92);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s var(--ease-out);
}
.lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox__stage {
  position: relative;
  margin: 0;
  max-width: min(1400px, 92vw);
  max-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox__img {
  max-width: 100%;
  max-height: 88vh;
  object-fit: contain;
  display: block;
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.6);
}

/* Minimal chrome — transparent, drop-shadow for legibility on any photo */
.lightbox__close,
.lightbox__prev,
.lightbox__next {
  background: transparent;
  border: 0;
  padding: 0;
  color: var(--bone);
  cursor: pointer;
  display: grid;
  place-items: center;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.5));
  opacity: 0.85;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.lightbox__close:hover,
.lightbox__prev:hover,
.lightbox__next:hover {
  opacity: 1;
}

/* Close sits in the top-right of the viewport */
.lightbox__close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  z-index: 2;
}

/* Prev / next sit on the image edges, inside the stage */
.lightbox__prev,
.lightbox__next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
}
.lightbox__prev { left: 0.75rem; }
.lightbox__next { right: 0.75rem; }
.lightbox__prev:hover { transform: translateY(-50%) translateX(-2px); }
.lightbox__next:hover { transform: translateY(-50%) translateX(2px); }

.lightbox__counter {
  position: absolute;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(244, 241, 236, 0.6);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
}

@media (max-width: 640px) {
  .lightbox__prev { left: 0.25rem; }
  .lightbox__next { right: 0.25rem; }
  .lightbox__close { top: 0.75rem; right: 0.75rem; }
}

/* ============================================================
   ACCESSIBILITY: REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  [data-parallax-y],
  [data-parallax-bg],
  .parallax-layer {
    transform: none !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }

  /* Bands and strip cards render sharp and settled; quote lines sit
     in place; the accordion still opens (transition-duration is
     already zeroed above). */
  .band__media,
  .materials__strip .material__swatch {
    filter: none !important;
    transform: none !important;
  }
  .quote-line > span { transform: none !important; }

  .hero__video {
    /* Pause video for users who prefer reduced motion */
    /* Note: requires JS to actually pause - CSS can't pause video */
  }

  .hero__scroll-line { animation: none; opacity: 0.6; }
}

/* ============================================================
   PRINT
   ============================================================ */
@media print {
  .nav, .hero__video, .hero__veil, .hero__grain, .hero__scroll,
  .parallax-break, .trade__bg { display: none; }
  body { background: white; color: black; }
}
