/* ==========================================================================
   Halden & Ash — Interior Studio template
   Edit the tokens below to re-brand the whole site.
   ========================================================================== */
:root {
  --ink: #1d1a17;
  --ink-soft: #3a342e;
  --muted: #6f675e;
  --paper: #f7f3ee;
  --paper-2: #efe8df;
  --line: #ddd3c6;
  --oak: #a9804f;
  --oak-deep: #8a6438;
  --white: #ffffff;

  --font-display: "Cormorant Garamond", "Times New Roman", serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  --container: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 84px;
  --radius: 4px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0;
}
p { margin: 0; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
:focus-visible { outline: 2px solid var(--oak); outline-offset: 3px; }

/* ---------- Eyebrows & buttons ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 12px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase;
  color: var(--oak-deep);
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 26px;
  font-family: var(--font-body); font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  border: 1px solid transparent; border-radius: var(--radius);
  cursor: pointer; transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.btn-primary { background: var(--oak); color: var(--white); }
.btn-primary:hover { background: var(--oak-deep); }
.btn-ghost { border-color: rgba(255,255,255,.6); color: var(--white); }
.btn-ghost:hover { background: rgba(255,255,255,.12); border-color: var(--white); }
.btn-dark { background: var(--ink); color: var(--white); }
.btn-dark:hover { background: var(--ink-soft); }
.btn-outline { border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--white); }
.link-arrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  border-bottom: 1px solid currentColor; padding-bottom: 4px;
}
.link-arrow svg { transition: transform .3s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--header-h);
  color: var(--white);
  transition: background .4s var(--ease), color .4s var(--ease), box-shadow .4s var(--ease), height .4s var(--ease);
}
.site-header::before { /* soft shade so white text stays readable over bright video frames */
  content: ""; position: absolute; inset: 0 0 -40px 0; pointer-events: none;
  background: linear-gradient(to bottom, rgba(15,12,10,.45), rgba(15,12,10,0));
  transition: opacity .4s var(--ease);
}
.site-header.is-solid,
body.header-solid .site-header {
  background: rgba(247,243,238,.94);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  color: var(--ink);
  box-shadow: 0 1px 0 var(--line);
  --header-h: 72px;
}
.site-header.is-solid::before,
body.header-solid .site-header::before { opacity: 0; }
.header-inner {
  position: relative; height: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}

.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark { width: 38px; height: 38px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--font-display); font-size: 26px; font-weight: 600; letter-spacing: .01em; }
.brand-name em { font-style: italic; font-weight: 500; color: var(--oak); }
.site-header:not(.is-solid) .brand-name em { color: #e7c896; }
body.header-solid .site-header .brand-name em { color: var(--oak); }
.brand-tag { margin-top: 5px; font-size: 9.5px; font-weight: 600; letter-spacing: .34em; text-transform: uppercase; opacity: .8; }

.main-nav { display: flex; align-items: center; gap: 40px; }
.nav-list { display: flex; gap: 34px; list-style: none; margin: 0; padding: 0; }
.nav-list a {
  position: relative; font-size: 13px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  padding: 6px 0;
}
.nav-list a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease);
}
.nav-list a:hover::after, .nav-list a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.header-cta { min-height: 42px; padding: 0 20px; }
.site-header:not(.is-solid) .header-cta { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.55); color: var(--white); }
.site-header:not(.is-solid) .header-cta:hover { background: var(--white); color: var(--ink); }
body.header-solid .site-header .header-cta { background: var(--ink); border-color: var(--ink); color: var(--white); }

.nav-toggle {
  display: none; width: 44px; height: 44px; padding: 0; border: 0; background: none; color: inherit; cursor: pointer;
}
.nav-toggle span { display: block; width: 24px; height: 1.5px; margin: 6px auto; background: currentColor; transition: transform .3s var(--ease), opacity .3s; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

@media (max-width: 900px) {
  :root { --header-h: 72px; }
  .nav-toggle { display: block; position: relative; z-index: 2; }
  .main-nav {
    position: fixed; inset: 0; z-index: 1;
    flex-direction: column; justify-content: center; gap: 40px;
    background: var(--paper); color: var(--ink);
    opacity: 0; visibility: hidden; transition: opacity .35s var(--ease), visibility .35s;
  }
  .nav-open .main-nav { opacity: 1; visibility: visible; }
  body.nav-open .site-header {
    color: var(--ink);
    background: var(--paper);
    /* a backdrop-filter would trap the fixed menu inside the header bar */
    backdrop-filter: none; -webkit-backdrop-filter: none;
  }
  body.nav-open .site-header::before { opacity: 0; }
  body.nav-open .site-header .brand-name em { color: var(--oak); }
  .nav-list { flex-direction: column; align-items: center; gap: 22px; }
  .nav-list a { font-family: var(--font-display); font-size: 34px; font-weight: 500; letter-spacing: 0; text-transform: none; }
  .header-cta { background: var(--ink) !important; color: var(--white) !important; border-color: var(--ink) !important; }
  .brand { position: relative; z-index: 2; }
  .brand-tag { display: none; }
}

/* ==========================================================================
   Hero (home)
   ========================================================================== */
.hero {
  position: relative; height: 100vh; height: 100svh; min-height: 560px;
  overflow: hidden; background: #14110f; color: var(--white);
}
.hero-media, .hero-media video, .hero-still {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.hero-media video { object-position: 50% 55%; }
.hero-still { object-position: 50% 55%; opacity: 0; transition: opacity 1.1s var(--ease); }
.hero-still.is-visible { opacity: 1; }
.hero-media video { transition: opacity 1.1s var(--ease); }
.hero.show-still .hero-media video { opacity: 0; }
.hero-shade {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(to top, rgba(14,11,9,.78) 0%, rgba(14,11,9,.35) 38%, rgba(14,11,9,0) 62%),
    linear-gradient(to right, rgba(14,11,9,.5) 0%, rgba(14,11,9,0) 55%);
}
.hero-content {
  position: relative; z-index: 2; height: 100%;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding-bottom: clamp(56px, 10vh, 110px);
}
.hero .eyebrow { color: #e7c896; }
.hero h1 {
  max-width: 13ch; margin-top: 20px;
  font-size: clamp(44px, 7.2vw, 104px); font-weight: 500;
  text-shadow: 0 2px 30px rgba(0,0,0,.25);
}
.hero h1 em { font-style: italic; color: #f0dcb8; }
.hero-lede { max-width: 46ch; margin-top: 22px; font-size: clamp(15px, 1.3vw, 18px); color: rgba(255,255,255,.86); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-meta {
  position: absolute; z-index: 2; right: var(--gutter); bottom: clamp(24px, 4vh, 40px);
  display: flex; align-items: center; gap: 18px;
}
.time-chip {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 11px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,.85);
}
.time-chip .dot { width: 8px; height: 8px; border-radius: 50%; background: #f0c27a; box-shadow: 0 0 12px #f0c27a; }
.replay-btn {
  display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px;
  border: 1px solid rgba(255,255,255,.4); border-radius: 40px; background: rgba(20,16,13,.35);
  color: var(--white); font: 600 11px/1 var(--font-body); letter-spacing: .16em; text-transform: uppercase;
  cursor: pointer; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  transition: background .3s var(--ease), border-color .3s var(--ease);
}
.replay-btn:hover { background: rgba(255,255,255,.16); border-color: var(--white); }
.scroll-cue {
  position: absolute; z-index: 2; left: 50%; bottom: 22px; transform: translateX(-50%);
  width: 1px; height: 46px; background: rgba(255,255,255,.35); overflow: hidden;
}
.scroll-cue::after {
  content: ""; position: absolute; left: 0; top: -46px; width: 1px; height: 46px; background: var(--white);
  animation: cue 2.2s var(--ease) infinite;
}
@keyframes cue { to { top: 46px; } }
@media (max-width: 700px) {
  .hero-meta { left: var(--gutter); right: auto; bottom: 20px; }
  .time-chip { display: none; }
  .scroll-cue { display: none; }
  .hero-content { padding-bottom: 92px; }
  .hero-media video, .hero-still { object-position: 62% 55%; }
}

/* ==========================================================================
   Page hero (inner pages)
   ========================================================================== */
.page-hero {
  position: relative; min-height: 62vh; display: flex; align-items: flex-end;
  color: var(--white); background: #14110f; overflow: hidden;
}
.page-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page-hero .hero-shade { background: linear-gradient(to top, rgba(14,11,9,.8), rgba(14,11,9,.15) 70%); }
.page-hero .container { position: relative; z-index: 2; padding-top: 140px; padding-bottom: clamp(48px, 8vh, 80px); }
.page-hero .eyebrow { color: #e7c896; }
.page-hero h1 { margin-top: 16px; font-size: clamp(44px, 6.5vw, 88px); }
.page-hero p { max-width: 52ch; margin-top: 16px; color: rgba(255,255,255,.85); font-size: 17px; }
.page-header-plain { padding: calc(var(--header-h) + 72px) 0 40px; }
.page-header-plain h1 { margin-top: 16px; font-size: clamp(48px, 7vw, 96px); }
.page-header-plain p { max-width: 56ch; margin-top: 18px; color: var(--muted); font-size: 17px; }

/* ==========================================================================
   Sections
   ========================================================================== */
.section { padding: clamp(80px, 11vw, 150px) 0; }
.section-alt { background: var(--paper-2); }
.section-dark { background: #1b1815; color: #f3ede5; }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: clamp(40px, 6vw, 72px); }
.section-head h2 { margin-top: 16px; font-size: clamp(36px, 4.6vw, 62px); max-width: 18ch; }
.section-head p { max-width: 44ch; color: var(--muted); }
.section-dark .section-head p { color: #b9ae9f; }

/* Intro */
.intro-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(40px, 7vw, 110px); align-items: start; }
.intro-grid h2 { margin-top: 18px; font-size: clamp(34px, 4.2vw, 56px); }
.intro-grid h2 em { color: var(--oak); }
.intro-copy p + p { margin-top: 18px; }
.intro-copy p { color: var(--ink-soft); font-size: 17px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 44px; padding-top: 32px; border-top: 1px solid var(--line); }
.stat strong { display: block; font-family: var(--font-display); font-size: clamp(38px, 4vw, 52px); font-weight: 500; line-height: 1; }
.stat span { display: block; margin-top: 8px; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

/* Craft — scroll-driven sofa assembly */
.craft { padding-top: clamp(80px, 11vw, 150px); }
.craft-head h2 { margin-top: 18px; max-width: 20ch; font-size: clamp(36px, 4.6vw, 62px); }
.craft-head h2 em { color: var(--oak); }
.craft-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(32px, 6vw, 96px); margin-top: clamp(24px, 4vw, 48px); }
.craft-visual {
  position: sticky; top: calc(var(--header-h) + 16px);
  height: calc(100vh - var(--header-h) - 32px); height: calc(100svh - var(--header-h) - 32px);
  display: flex; align-items: center; justify-content: center;
}
/* The renders are transparent, so the parts sit directly on the page — no box, no backdrop. */
.craft-frame {
  position: relative; width: min(100%, calc(100vh - var(--header-h) - 24px)); aspect-ratio: 1 / 1;
}
.craft-frame canvas, .craft-fallback { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
/* Feather the frame edges so soft floor shadows never end in a hard line
   (the canvases get the same fade drawn in by main.js). */
.craft-fallback, .spin-fallback {
  --feather: 3.5%;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 var(--feather), #000 calc(100% - var(--feather)), transparent), linear-gradient(to bottom, transparent, #000 var(--feather), #000 calc(100% - var(--feather)), transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent, #000 var(--feather), #000 calc(100% - var(--feather)), transparent), linear-gradient(to bottom, transparent, #000 var(--feather), #000 calc(100% - var(--feather)), transparent);
  mask-composite: intersect;
}
.spin-fallback { --feather: 8%; }
.craft-frame canvas { display: none; }
.craft.is-ready .craft-frame canvas { display: block; }
.craft.is-ready .craft-fallback { display: none; }
.craft-step {
  min-height: max(44vh, 320px); display: flex; flex-direction: column; justify-content: center;
  opacity: .28; transition: opacity .5s var(--ease);
}
.craft-step:first-child { min-height: 50vh; justify-content: flex-start; padding-top: 10vh; }
.craft-step:last-child { min-height: 78vh; }
.craft-step.is-active { opacity: 1; }
.step-num { font-family: var(--font-display); font-style: italic; font-size: 22px; color: var(--oak); }
.craft-step h3 { margin-top: 14px; font-size: clamp(32px, 3.4vw, 48px); max-width: 15ch; }
.craft-step p { margin-top: 18px; max-width: 42ch; color: var(--ink-soft); font-size: 17px; }
.craft-step .stats { margin-top: 36px; }
@media (max-width: 800px) {
  .craft-grid { grid-template-columns: 1fr; gap: 0; }
  .craft-visual {
    top: var(--header-h); z-index: 3; height: auto; padding: 4px 0 10px;
    background: var(--paper);
  }
  /* Soft fade under the pinned picture, so text dissolves as it slides beneath it instead of ending at a hard edge */
  .craft-visual::after, .whatwedo-visual::after {
    content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 72px; pointer-events: none;
    background: linear-gradient(to bottom, var(--paper) 0%, rgba(247, 243, 238, .85) 30%, rgba(247, 243, 238, .45) 65%, rgba(247, 243, 238, 0) 100%);
  }
  /* The top 14% of every sofa frame is empty (nothing in the 586 frames rises above it), so trim it here:
     the box is shorter than it is wide and the square picture sits at its bottom. */
  .craft-frame { width: min(100%, 50vh); aspect-ratio: 1 / .86; overflow: hidden; }
  .craft-frame canvas, .craft-fallback { inset: auto 0 0 0; height: auto; aspect-ratio: 1 / 1; }
  .craft-step { min-height: max(40vh, 290px); justify-content: center; }
  .craft-step:first-child { min-height: 50vh; padding-top: 4vh; }
  .craft-step:last-child { min-height: 70vh; }
  .craft-step h3 { font-size: 32px; }
}
@media (prefers-reduced-motion: reduce) { .craft-step { opacity: 1; } }

/* What we do — services on the left, a turning coffee table on the right */
.whatwedo { padding: clamp(60px, 8vw, 110px) 0 clamp(80px, 10vw, 140px); overflow-x: clip; }
.whatwedo-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(32px, 6vw, 96px); }
.whatwedo-head h2 { margin-top: 18px; font-size: clamp(36px, 4.6vw, 62px); max-width: 16ch; }
.whatwedo-head p { margin-top: 18px; max-width: 44ch; color: var(--muted); font-size: 17px; }
.whatwedo-head { padding-bottom: 40px; }
.wd-item {
  display: grid; grid-template-columns: 56px 1fr; gap: 8px;
  padding: 34px 0 38px; border-top: 1px solid var(--line);
  min-height: 26vh; align-content: start;
}
.wd-item:last-child { border-bottom: 1px solid var(--line); }
.wd-item .service-num { padding-top: 6px; }
.wd-item h3 { font-size: clamp(28px, 2.6vw, 36px); }
.wd-item p { margin-top: 10px; max-width: 42ch; color: var(--muted); font-size: 16px; }
.whatwedo-visual {
  position: sticky; top: calc(var(--header-h) + 16px);
  height: calc(100vh - var(--header-h) - 32px); height: calc(100svh - var(--header-h) - 32px);
  display: flex; align-items: center; justify-content: center;
}
.spin-frame {
  position: relative; width: min(100%, calc(100vh - var(--header-h) - 24px)); aspect-ratio: 1 / 1;
  will-change: transform, opacity;
}
.spin-frame canvas, .spin-fallback { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
/* Drag to turn: grab cursor; vertical swipes still scroll the page on touch screens */
.spin-frame { cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent; }
.spin-frame.is-dragging { cursor: grabbing; }
.spin-frame:focus-visible { outline-offset: -6px; border-radius: 12px; }
.spin-hint {
  position: absolute; left: 50%; bottom: 1.5%; transform: translateX(-50%); /* below the shadow, where it has faded out */
  display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; pointer-events: none;
  font-family: var(--font-body); font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); opacity: 0; transition: opacity .6s ease;
}
.whatwedo.is-ready .spin-hint { opacity: .85; }
.whatwedo.was-turned .spin-hint { opacity: 0; }
.spin-frame canvas { display: none; }
.whatwedo.is-ready .spin-frame canvas { display: block; }
.whatwedo.is-ready .spin-fallback { display: none; }
@media (max-width: 800px) {
  .whatwedo-grid { grid-template-columns: 1fr; gap: 0; }
  .whatwedo-visual {
    order: -1; top: var(--header-h); z-index: 3; height: auto; padding: 4px 0 10px; background: var(--paper);
  }
  /* Same trim for the table: the top 15% of every table frame is empty. */
  .spin-frame { width: min(100%, 46vh); aspect-ratio: 1 / .85; overflow: hidden; }
  .spin-frame canvas, .spin-fallback { inset: auto 0 0 0; height: auto; aspect-ratio: 1 / 1; }
  .wd-item { min-height: 0; }
}

/* Services */
.services { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.service { padding: 36px 28px 40px 0; border-right: 1px solid var(--line); }
.service + .service { padding-left: 28px; }
.service:last-child { border-right: 0; }
.service-num { font-family: var(--font-display); font-size: 18px; font-style: italic; color: var(--oak); }
.service h3 { margin-top: 26px; font-size: 28px; }
.service p { margin-top: 14px; color: var(--muted); font-size: 15px; }
.service svg { width: 34px; height: 34px; margin-top: 26px; color: var(--ink); }

/* Work grid */
.work-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(16px, 2vw, 28px); }
.work-card { position: relative; display: block; overflow: hidden; background: #2a241f; }
.work-card:nth-child(1) { grid-column: span 7; aspect-ratio: 4 / 3; }
.work-card:nth-child(2) { grid-column: span 5; aspect-ratio: 4 / 5; align-self: end; }
.work-card:nth-child(3) { grid-column: span 5; aspect-ratio: 4 / 5; }
.work-card:nth-child(4) { grid-column: span 7; aspect-ratio: 4 / 3; align-self: start; }
.work-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.work-card:hover img { transform: scale(1.04); }
.work-card figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 26px 22px; color: var(--white);
  background: linear-gradient(to top, rgba(14,11,9,.75), rgba(14,11,9,0));
  display: flex; justify-content: space-between; align-items: end; gap: 16px;
}
.work-card h3 { font-size: clamp(24px, 2.4vw, 32px); }
.work-card small { display: block; margin-top: 6px; font-size: 11px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; opacity: .8; }
.work-card .arrow {
  flex: none; width: 44px; height: 44px; border: 1px solid rgba(255,255,255,.5); border-radius: 50%;
  display: grid; place-items: center; transition: background .3s var(--ease), color .3s var(--ease);
}
.work-card:hover .arrow { background: var(--white); color: var(--ink); }

/* Process */
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(20px, 3vw, 40px); counter-reset: step; }
.step { position: relative; padding-top: 30px; border-top: 1px solid rgba(243,237,229,.22); }
.step::before {
  counter-increment: step; content: "0" counter(step);
  font-family: var(--font-display); font-style: italic; font-size: 20px; color: #e0b97e;
}
.step h3 { margin-top: 18px; font-size: 28px; color: #fbf6ef; }
.step p { margin-top: 12px; color: #b9ae9f; font-size: 15px; }

/* Testimonial */
.quote { max-width: 900px; margin: 0 auto; text-align: center; }
.quote svg { width: 40px; height: 40px; margin: 0 auto; color: var(--oak); }
.quote blockquote {
  margin: 26px 0 0; font-family: var(--font-display); font-size: clamp(28px, 3.4vw, 44px);
  font-weight: 500; line-height: 1.25; font-style: italic;
}
.quote cite { display: block; margin-top: 28px; font-style: normal; font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }

/* Blog cards */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 2.5vw, 36px); }
.post-card { display: flex; flex-direction: column; }
.post-card .thumb { overflow: hidden; aspect-ratio: 4 / 3; background: var(--paper-2); }
.post-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.post-card:hover img { transform: scale(1.05); }
.post-meta { display: flex; gap: 14px; margin-top: 20px; font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.post-meta .cat { color: var(--oak-deep); }
.post-card h3 { margin-top: 12px; font-size: clamp(24px, 2.2vw, 30px); transition: color .3s var(--ease); }
.post-card:hover h3 { color: var(--oak-deep); }
.post-card p { margin-top: 10px; color: var(--muted); font-size: 15px; }

.post-featured { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(28px, 4vw, 64px); align-items: center; margin-bottom: clamp(56px, 8vw, 96px); }
.post-featured .thumb { aspect-ratio: 16 / 10; overflow: hidden; }
.post-featured img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.post-featured:hover img { transform: scale(1.04); }
.post-featured h2 { margin-top: 14px; font-size: clamp(34px, 4vw, 54px); }
.post-featured p { margin-top: 16px; color: var(--muted); font-size: 17px; }
.post-featured .link-arrow { margin-top: 28px; }

.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 44px; }
.filter-bar button {
  height: 40px; padding: 0 18px; border: 1px solid var(--line); border-radius: 40px; background: transparent;
  font: 600 12px/1 var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); cursor: pointer;
  transition: all .25s var(--ease);
}
.filter-bar button:hover { border-color: var(--ink); }
.filter-bar button.is-active { background: var(--ink); border-color: var(--ink); color: var(--white); }
.post-card[hidden] { display: none; }

.newsletter { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.newsletter h2 { font-size: clamp(32px, 3.6vw, 48px); }
.newsletter form { display: flex; gap: 10px; }
.newsletter input {
  flex: 1; min-width: 0; height: 52px; padding: 0 18px; border: 1px solid rgba(243,237,229,.3); border-radius: var(--radius);
  background: transparent; color: #f3ede5; font: 15px var(--font-body);
}
.newsletter input::placeholder { color: #9c9184; }
.form-note { margin-top: 12px; font-size: 13px; color: #b9ae9f; min-height: 1.4em; }

/* About */
.story-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 110px); align-items: center; }
.story-grid figure { margin: 0; aspect-ratio: 3 / 4; overflow: hidden; }
.story-grid figure img { width: 100%; height: 100%; object-fit: cover; }
.story-grid h2 { margin-top: 18px; font-size: clamp(34px, 4.2vw, 56px); }
.story-grid p { margin-top: 18px; color: var(--ink-soft); font-size: 17px; }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 3vw, 48px); }
.value { padding-top: 26px; border-top: 1px solid var(--line); }
.value h3 { font-size: 30px; }
.value p { margin-top: 12px; color: var(--muted); }
.team { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 40px); }
.member .avatar {
  aspect-ratio: 4 / 5; display: grid; place-items: center;
  background: linear-gradient(160deg, #e6dccf, #cdbca6); color: var(--oak-deep);
  font-family: var(--font-display); font-size: 64px; font-style: italic;
}
.member h3 { margin-top: 20px; font-size: 28px; }
.member span { display: block; margin-top: 4px; font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }

/* CTA band */
.cta-band { position: relative; overflow: hidden; color: var(--white); background: #14110f; }
.cta-band img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .5; }
.cta-band .container { position: relative; z-index: 1; padding-top: clamp(90px, 12vw, 160px); padding-bottom: clamp(90px, 12vw, 160px); text-align: center; }
.cta-band .eyebrow { color: #e7c896; }
.cta-band h2 { max-width: 16ch; margin: 18px auto 0; font-size: clamp(38px, 5vw, 70px); }
.cta-band p { max-width: 48ch; margin: 18px auto 0; color: rgba(255,255,255,.85); }
.cta-band .hero-actions { justify-content: center; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: #14110f; color: #cfc5b8; padding: 80px 0 36px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.site-footer .brand { color: #f6f0e8; }
.footer-about { margin-top: 20px; max-width: 34ch; font-size: 15px; color: #a79c8e; }
.site-footer h4 { font-family: var(--font-body); font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: #f6f0e8; }
.site-footer ul { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; font-size: 15px; }
.site-footer ul a:hover { color: #e7c896; }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px;
  margin-top: 64px; padding-top: 24px; border-top: 1px solid #2e2823; font-size: 13px; color: #8a8073;
}

/* ==========================================================================
   Reveal on scroll
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
  .services { grid-template-columns: repeat(2, 1fr); }
  .service:nth-child(2) { border-right: 0; }
  .service:nth-child(3) { padding-left: 0; }
  .service:nth-child(n+3) { border-top: 1px solid var(--line); }
  .process { grid-template-columns: repeat(2, 1fr); row-gap: 48px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 800px) {
  .intro-grid, .story-grid, .post-featured, .newsletter { grid-template-columns: 1fr; }
  .work-grid { grid-template-columns: 1fr; }
  .work-card:nth-child(n) { grid-column: auto; aspect-ratio: 4 / 3; }
  .post-grid, .values, .team { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .newsletter form { flex-direction: column; }
}
@media (max-width: 560px) {
  .services { grid-template-columns: 1fr; }
  .service, .service + .service { padding: 30px 0; border-right: 0; }
  .service:nth-child(n+2) { border-top: 1px solid var(--line); }
  .process { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-actions .btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .scroll-cue::after { animation: none; }
}

/* Footer social icons (custom line icons; links set in each page's footer) */
.social-links { display: flex; gap: 12px; margin-top: 18px; }
.social-links a {
  width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%;
  border: 1px solid rgba(246, 240, 232, .2); color: #cfc5b8;
  transition: color .3s var(--ease), border-color .3s var(--ease), background-color .3s var(--ease);
}
.social-links a:hover, .social-links a:focus-visible { color: #14110f; background: #e7c896; border-color: #e7c896; }

/* ==========================================================================
   Article page (article.html)
   ========================================================================== */
.read-progress {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60; height: 3px;
  background: var(--oak); transform: scaleX(0); transform-origin: left; pointer-events: none;
}
.article-head { padding-top: calc(var(--header-h) + 56px); }
.article-narrow { max-width: calc(780px + 2 * var(--gutter)); }
.article-back {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 28px;
  font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
  transition: color .3s var(--ease);
}
.article-back svg { transition: transform .3s var(--ease); }
.article-back:hover { color: var(--ink); }
.article-back:hover svg { transform: translateX(-4px); }
.article-head .post-meta { margin-top: 0; }
.article-head h1 { margin-top: 18px; font-size: clamp(40px, 5.6vw, 74px); }
.article-lede { margin-top: 24px; max-width: 60ch; font-size: clamp(18px, 1.6vw, 21px); color: var(--ink-soft); }
.byline { display: flex; align-items: center; gap: 14px; margin-top: 32px; }
.byline-avatar {
  width: 48px; height: 48px; flex: none; display: grid; place-items: center; border-radius: 50%;
  background: linear-gradient(160deg, #e6dccf, #cdbca6); color: var(--oak-deep);
  font-family: var(--font-display); font-size: 24px; font-style: italic;
}
.byline strong { display: block; font-size: 15px; font-weight: 600; }
.byline small { display: block; font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.article-cover { margin-top: clamp(40px, 6vw, 72px); margin-bottom: 0; }
.article-cover img { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; }

.article-body { max-width: calc(720px + 2 * var(--gutter)); padding-top: clamp(48px, 7vw, 88px); padding-bottom: clamp(72px, 10vw, 130px); }
.article-body > p, .article-body li { font-size: 18px; line-height: 1.8; color: var(--ink-soft); }
.article-body > p + p { margin-top: 22px; }
.article-body h2 { margin: 64px 0 20px; font-size: clamp(30px, 3.2vw, 40px); }
.article-body ul, .article-body ol { margin: 22px 0; padding-left: 22px; }
.article-body li + li { margin-top: 10px; }
.article-body li::marker { color: var(--oak); }
.article-body ul + p, .article-body ol + p { margin-top: 22px; }
.article-body strong { color: var(--ink); font-weight: 600; }

/* Figures run a little wider than the text column on large screens */
.article-figure, .article-pair { margin: 48px 0; }
@media (min-width: 1000px) {
  .article-figure, .article-pair { margin-left: -100px; margin-right: -100px; }
}
.article-figure img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.article-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.article-pair div { position: relative; }
.article-pair img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.article-pair span {
  position: absolute; left: 14px; bottom: 14px; padding: 6px 12px; border-radius: 40px;
  background: rgba(20, 17, 15, .55); color: #f6f0e8; backdrop-filter: blur(6px);
  font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
}
.article-pair figcaption { grid-column: 1 / -1; }
.article-figure figcaption, .article-pair figcaption { margin-top: 12px; font-size: 14px; color: var(--muted); }

.pull-quote {
  margin: 56px 0; padding: 4px 0 4px 28px; border-left: 2px solid var(--oak);
  font-family: var(--font-display); font-style: italic; font-size: clamp(28px, 3vw, 38px); line-height: 1.25; color: var(--ink);
}
.article-note { margin: 48px 0; padding: clamp(26px, 4vw, 40px); background: var(--paper-2); border-radius: var(--radius); }
.article-note h3 { font-size: 28px; }
.article-note ol { margin-bottom: 0; }
.article-note li { font-size: 16px; }
.article-cta {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px;
  margin-top: 64px; padding-top: 36px; border-top: 1px solid var(--line);
}
.article-cta p { max-width: 38ch; font-family: var(--font-display); font-size: 26px; line-height: 1.25; color: var(--ink); }
.article-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 36px; }
.article-tags a {
  padding: 8px 16px; border: 1px solid var(--line); border-radius: 40px;
  font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft);
  transition: border-color .25s var(--ease), color .25s var(--ease);
}
.article-tags a:hover { border-color: var(--ink); color: var(--ink); }
@media (max-width: 560px) {
  .article-pair { grid-template-columns: 1fr; }
  .article-pair img { aspect-ratio: 4 / 3; }
  .article-body > p, .article-body li { font-size: 17px; }
}

/* Demo notice under the footer (delete the <p class="demo-note"> line in each page for a real site) */
.demo-note { margin-top: 14px; font-size: 12px; letter-spacing: .02em; color: #8a8073; }
