/* ISHA Textile Industries — public site
   Palette taken from ISHA's own identity (charcoal-green, bronze, ivory). */

@font-face { font-family: "Cormorant"; src: url(/fonts/cormorant-garamond-latin-wght-normal.woff2) format("woff2"); font-weight: 300 700; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Cormorant"; src: url(/fonts/cormorant-garamond-latin-ext-wght-normal.woff2) format("woff2"); font-weight: 300 700; font-style: normal; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Cormorant"; src: url(/fonts/cormorant-garamond-latin-wght-italic.woff2) format("woff2"); font-weight: 300 700; font-style: italic; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Cormorant"; src: url(/fonts/cormorant-garamond-latin-ext-wght-italic.woff2) format("woff2"); font-weight: 300 700; font-style: italic; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+2020, U+20A0-20AB, U+20AD-20C0; }
@font-face { font-family: "Jost"; src: url(/fonts/jost-latin-wght-normal.woff2) format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Jost"; src: url(/fonts/jost-latin-ext-wght-normal.woff2) format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0; }
@font-face { font-family: "Jost"; src: url(/fonts/jost-latin-wght-italic.woff2) format("woff2"); font-weight: 100 900; font-style: italic; font-display: swap; }

:root {
  --ink: #141815;
  --ink-2: #1c211e;
  --ink-3: #262c28;
  --bone: #f3eee6;
  --bone-2: #ebe4d8;
  --sand: #d8cebd;
  --bronze: #8a5730;          /* 5.2:1 on bone */
  --bronze-2: #c89462;
  --stone: #67625a;          /* muted text on bone — 5.0:1 */
  --stone-dark: #a8a296;     /* muted text on ink — 7.3:1 */

  --bg: var(--bone);
  --fg: var(--ink);
  --muted: var(--stone);
  --line: rgba(20, 24, 21, .14);
  --accent: var(--bronze);
  --surface: #fbf8f3;

  --serif: "Cormorant", "Cormorant Garamond", Garamond, "Times New Roman", serif;
  --sans: "Jost", "Futura", "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(20px, 4.2vw, 72px);
  --hdr: 84px;
  --ease: cubic-bezier(.22, .7, .12, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
}

.theme-dark, html:not(.motion) [data-theme="dark"] {
  --bg: var(--ink);
  --fg: var(--bone);
  --muted: var(--stone-dark);
  --line: rgba(243, 238, 230, .16);
  --accent: var(--bronze-2);
  --surface: var(--ink-2);
}
html:not(.motion) [data-theme="dark"] { background: var(--ink); color: var(--bone); }
html:not(.motion) [data-theme="dark"] .btn-ink { background: var(--bone); color: var(--ink); }

*, *::before, *::after { box-sizing: border-box; }

/* Page-to-page: a quiet cross-fade, the header stays in place. Off for people who prefer less motion. */
@view-transition { navigation: auto; }
@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } }
::view-transition-old(root) { animation: 260ms var(--ease-io) both vt-out; }
::view-transition-new(root) { animation: 420ms var(--ease-io) both vt-in; }
::view-transition-old(hdr), ::view-transition-new(hdr) { animation: none; mix-blend-mode: normal; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; transform: translateY(10px); } }
.hdr { view-transition-name: hdr; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  font-variant-numeric: lining-nums;
  margin: 0; background: var(--bg); color: var(--fg);
  font: 400 1.0625rem/1.7 var(--sans); letter-spacing: .005em;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  transition: background-color .9s var(--ease), color .9s var(--ease);
  overflow-x: clip;
}
body::after { /* paper grain */
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 90; opacity: .045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .6 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4, p, ol, ul, figure, blockquote { margin: 0; }
ol, ul { padding: 0; list-style: none; }
em { font-style: italic; }
::selection { background: var(--bronze); color: var(--bone); }
:focus-visible { outline: 1px solid var(--accent); outline-offset: 4px; }

.wrap { width: 100%; max-width: 1680px; margin-inline: auto; padding-inline: var(--gutter); }
.muted { color: var(--muted); }
.skip { position: fixed; left: 16px; top: -60px; z-index: 200; background: var(--ink); color: var(--bone); padding: 10px 16px; transition: top .3s; }
.skip:focus { top: 16px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Type ---------- */
.eyebrow { font: 500 .72rem/1.4 var(--sans); letter-spacing: .26em; text-transform: uppercase; color: var(--accent); }
.display-xl, .display-l, .display-m { font-family: var(--serif); font-weight: 300; letter-spacing: -.018em; }
.display-xl { font-size: clamp(3.1rem, 6.6vw, 8rem); line-height: .94; }
.display-l { font-size: clamp(2.5rem, 5.1vw, 5.9rem); line-height: .98; }
.display-m { font-size: clamp(1.9rem, 3.3vw, 3.5rem); line-height: 1.12; letter-spacing: -.01em; }
.display-xl em, .display-l em, .display-m em { font-style: italic; font-weight: 300; color: var(--accent); }
.lede { font-size: clamp(1.05rem, 1.2vw, 1.22rem); line-height: 1.7; color: var(--muted); max-width: 36em; }

/* ---------- Links & buttons ---------- */
.link-line { background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; padding-bottom: 2px; transition: background-size .5s var(--ease); }
.link-line:hover { background-size: 0 1px; background-position: 100% 100%; }
.link-arrow { display: inline-flex; align-items: center; gap: .7em; font: 500 .8rem/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; padding: 1.1em 0; }
.link-arrow svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.2; transition: transform .5s var(--ease); }
.link-arrow:hover svg { transform: translateX(6px); }
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .8em;
  min-height: 56px; padding: 0 2.1em; overflow: hidden; isolation: isolate;
  font: 500 .78rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; white-space: nowrap;
  transition: color .5s var(--ease), border-color .5s var(--ease);
}
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; transform: translateY(101%); transition: transform .6s var(--ease); }
.btn:hover::before, .btn:focus-visible::before { transform: translateY(0); }
.btn-ink { background: var(--ink); color: var(--bone); }
.btn-ink::before { background: var(--bronze); }
.theme-dark .btn-ink { background: var(--bone); color: var(--ink); }
.theme-dark .btn-ink::before { background: var(--bronze-2); }
.btn-bone { background: var(--bone); color: var(--ink); }
.btn-bone::before { background: var(--bronze-2); }
.btn-line { border: 1px solid var(--line); }
.btn-line::before { background: var(--fg); }
.btn-line:hover { color: var(--bg); }
.btn[disabled] { opacity: .45; pointer-events: none; }

/* ---------- Header ---------- */
.hdr {
  position: fixed; inset: 0 0 auto; z-index: 60; height: var(--hdr);
  display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-inline: var(--gutter);
  color: var(--fg); transition: transform .6s var(--ease), background-color .6s var(--ease), color .9s var(--ease), border-color .6s;
  border-bottom: 1px solid transparent;
}
.hdr.is-scrolled { background: color-mix(in srgb, var(--bg) 84%, transparent); -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2); border-bottom-color: var(--line); }
.hdr.is-hidden { transform: translateY(-100%); }
.brand { display: flex; align-items: center; gap: 12px; }
.mark { width: 26px; height: 32px; flex: none; }
.mark-fold-a { fill: #b07a45; } .mark-fold-b { fill: #7c5230; } .mark-col { fill: currentColor; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-word { font: 500 1.35rem/1 var(--serif); letter-spacing: .34em; margin-right: -.34em; }
.brand-sub { font: 500 .58rem/1 var(--sans); letter-spacing: .28em; text-transform: uppercase; color: var(--accent); margin-top: 6px; white-space: nowrap; }
.hdr-nav { display: flex; gap: clamp(18px, 2.2vw, 38px); }
.hdr-nav a, .hdr-cta, .lang-switch { font: 500 .72rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; }
.hdr-nav a { position: relative; padding: 8px 0; opacity: .82; transition: opacity .3s; }
.hdr-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease); }
.hdr-nav a:hover { opacity: 1; } .hdr-nav a:hover::after, .hdr-nav a[aria-current]::after { transform: scaleX(1); transform-origin: left; }
.hdr-right { display: flex; align-items: center; gap: clamp(16px, 2vw, 32px); }
.lang-switch { display: inline-flex; gap: 6px; align-items: center; }
.lang-switch a { opacity: .7; transition: opacity .3s; padding: 6px 2px; }
.lang-switch a[aria-current], .lang-switch a:hover { opacity: 1; }
.lang-switch span { opacity: .35; }
.menu-btn { display: none; align-items: center; gap: 12px; font: 500 .72rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; min-height: 44px; }
.menu-btn-lines { display: grid; gap: 6px; width: 24px; }
.menu-btn-lines i { display: block; height: 1px; background: currentColor; transition: transform .5s var(--ease); }
.menu-open .menu-btn-lines i:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu-open .menu-btn-lines i:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* With the menu open the header sits on the dark menu, whatever the page theme underneath. */
.menu-open .hdr { --fg: var(--bone); --accent: var(--bronze-2); --muted: var(--stone-dark); color: var(--bone); background-color: transparent; border-color: transparent; transform: none; }
.menu { position: fixed; inset: 0; z-index: 55; background: var(--ink); color: var(--bone); clip-path: inset(0 0 100% 0); transition: clip-path .9s var(--ease-io); }
.menu.is-open { clip-path: inset(0 0 0 0); }
.menu-inner { height: 100%; display: flex; flex-direction: column; justify-content: space-between; padding: calc(var(--hdr) + 5vh) var(--gutter) 40px; overflow-y: auto; }
.menu-nav { display: grid; gap: 4px; }
.menu-nav a { display: flex; align-items: baseline; gap: 18px; font: 300 clamp(2.4rem, 8vw, 4.6rem)/1.08 var(--serif); letter-spacing: -.01em; }
.menu-nav a span { font: 500 .7rem/1 var(--sans); letter-spacing: .2em; color: var(--bronze-2); min-width: 2em; }
.menu-foot { display: grid; gap: 22px; padding-top: 40px; font-size: .95rem; color: var(--stone-dark); }
.menu-foot a { color: var(--bone); }
.lang-switch-lg { gap: 22px; font-size: .78rem; }

/* ---------- Media ---------- */
.pic { display: block; position: relative; overflow: hidden; aspect-ratio: var(--ratio); background: var(--sand) center / cover no-repeat; }
.pic img { width: 100%; height: 100%; object-fit: cover; transition: opacity .9s var(--ease), transform 1.4s var(--ease); }
.js .pic img { opacity: 0; }
.js .pic img.is-loaded { opacity: 1; }
.film { position: relative; overflow: hidden; background: var(--ink-2); aspect-ratio: 9 / 16; }
.film-43 { aspect-ratio: 3 / 4; }
.film video { width: 100%; height: 100%; object-fit: cover; }
.film figcaption, .ph figcaption { font: 500 .66rem/1.5 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.film:has(> figcaption)::after { content: ""; position: absolute; inset: auto 0 0; height: 34%; background: linear-gradient(to top, rgba(10, 12, 11, .62), rgba(10, 12, 11, 0)); pointer-events: none; }
.film figcaption { position: absolute; z-index: 1; left: 14px; bottom: 12px; color: var(--bone); display: flex; gap: 10px; text-shadow: 0 1px 8px rgba(0, 0, 0, .45); }
.film figcaption span { color: var(--bronze-2); }
.ph figcaption { padding-top: 12px; display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.ph .tag { border: 1px solid var(--line); padding: 3px 8px; letter-spacing: .16em; color: var(--accent); }
.film-play { position: absolute; z-index: 2; left: 50%; top: 50%; width: 58px; height: 58px; margin: -29px 0 0 -29px; border-radius: 50%; display: grid; place-items: center; background: rgba(243, 238, 230, .88); color: var(--ink); transition: opacity .3s; }
.film-play svg { width: 20px; height: 20px; fill: currentColor; margin-left: 3px; }
.film-play.is-playing { opacity: 0; } .film-play.is-playing:focus-visible, .film:hover .film-play.is-playing { opacity: .9; }
[data-zoom] { cursor: zoom-in; }
[data-zoom]:hover .pic img { transform: scale(1.025); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; align-items: center; padding-top: calc(var(--hdr) + 3vh); padding-bottom: 10vh; }
.hero-copy { grid-column: 1 / span 6; position: relative; z-index: 2; }
.hero-copy .eyebrow { margin-bottom: 2.2rem; }
.hero-title { margin-bottom: 2.2rem; }
.hero-title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero-title .line > * { display: inline-block; }
.hero-title em { padding-right: .06em; }
.hero-lede { margin-bottom: 2.6rem; max-width: 32em; }
.hero-ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 34px; }
.hero-films { grid-column: 7 / span 6; position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(12px, 1.4vw, 22px); align-items: start; }
.film-hero.f1 { margin-top: 12vh; }
.film-hero.f2 { margin-top: 0; }
.film-hero.f3 { margin-top: 20vh; }
.scroll-cue { position: absolute; left: var(--gutter); bottom: 32px; display: flex; align-items: center; gap: 14px; font: 500 .66rem/1 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--muted); }
.scroll-cue i { width: 56px; height: 1px; background: var(--line); position: relative; overflow: hidden; }
.scroll-cue i::after { content: ""; position: absolute; inset: 0; background: var(--fg); animation: cue 2.4s var(--ease-io) infinite; }
@keyframes cue { 0% { transform: translateX(-100%); } 60%, 100% { transform: translateX(100%); } }

/* ---------- House ---------- */
.house { padding-block: clamp(110px, 16vh, 200px); }
.house > .eyebrow { margin-bottom: 2.4rem; }
.manifesto { max-width: 21em; font-size: clamp(2rem, 4.1vw, 4.4rem); line-height: 1.1; }
.manifesto .w { display: inline-block; }
.house-grid { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; margin-top: clamp(70px, 10vh, 130px); }
.house-photo { grid-column: 1 / span 4; align-self: start; }
.house-photo .pic { aspect-ratio: 3 / 4.4; }
.house-text { grid-column: 6 / span 7; display: grid; gap: 2.4rem; align-self: end; }
.house-note p { font: italic 400 clamp(1.35rem, 1.8vw, 1.7rem)/1.45 var(--serif); }
.house-note footer { margin-top: 1rem; font: 500 .7rem/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.roof-list { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.roof-list li { display: flex; gap: 16px; align-items: baseline; padding: 18px 0; border-bottom: 1px solid var(--line); font-size: 1.02rem; }
.roof-list li:nth-child(odd) { padding-right: 24px; }
.roof-list span { font-size: .68rem; letter-spacing: .2em; color: var(--accent); }

/* ---------- Craft (horizontal chapters) ---------- */
.craft { padding-top: clamp(100px, 14vh, 170px); }
.craft-head { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; row-gap: 26px; align-items: end; margin-bottom: clamp(50px, 8vh, 90px); }
.craft-head .eyebrow { grid-column: 1 / -1; }
.craft-head h2 { grid-column: 1 / span 7; }
.craft-head .lede { grid-column: 9 / span 4; }
.craft-pin { position: relative; overflow: hidden; min-height: 100svh; display: grid; align-content: center; padding-bottom: 10vh; }
.craft-pin:focus { outline: none; } .craft-pin:focus-visible { outline: 1px solid var(--accent); outline-offset: 6px; }
.craft-track { display: flex; gap: clamp(28px, 4vw, 72px); padding-inline: var(--gutter) calc(var(--gutter) + 6vw); width: max-content; }
.chapter { display: grid; grid-template-columns: auto minmax(240px, 300px); gap: clamp(22px, 2.4vw, 40px); align-items: end; }
.chapter .film { height: min(66svh, 760px); width: auto; aspect-ratio: 9 / 16; }
.chapter .film-43 { aspect-ratio: 3 / 4; height: min(56svh, 640px); }
.chapter-text { padding-bottom: 10px; }
.chapter-n { display: block; font: 300 clamp(4.2rem, 7vw, 7rem)/.8 var(--serif); color: var(--accent); margin-bottom: 1.6rem; }
.chapter-text .eyebrow { margin-bottom: .9rem; color: var(--muted); }
.chapter-text h3 { font: 400 clamp(1.7rem, 2.2vw, 2.3rem)/1.1 var(--serif); margin-bottom: 1rem; }
.chapter-text p:last-child { color: var(--muted); font-size: .98rem; }
.craft-progress { position: absolute; left: 0; right: 0; bottom: max(28px, 4.5vh); display: flex; align-items: center; gap: 16px; padding: 0 var(--gutter); font: 400 1.05rem/1 var(--serif); color: var(--muted); }
.craft-progress i { flex: 0 1 260px; height: 1px; background: var(--line); position: relative; }
.craft-progress b { position: absolute; inset: 0; background: var(--accent); transform-origin: left; transform: scaleX(0); }

/* ---------- Section heads ---------- */
.sec-head { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; row-gap: 26px; align-items: end; margin-bottom: clamp(60px, 9vh, 110px); }
.sec-head .eyebrow { grid-column: 1 / -1; }
.sec-head h2 { grid-column: 1 / span 7; }
.sec-head .lede { grid-column: 9 / span 4; }

/* ---------- Collections ---------- */
.collections { padding-block: clamp(110px, 16vh, 200px); }
.family { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; padding-top: clamp(40px, 6vh, 64px); border-top: 1px solid var(--line); margin-bottom: clamp(100px, 14vh, 170px); }
.family:last-child { margin-bottom: 0; }
.family-head { grid-column: 1 / span 3; align-self: start; position: sticky; top: calc(var(--hdr) + 32px); }
.family-n { display: block; font: 300 3.2rem/1 var(--serif); color: var(--accent); margin-bottom: 1.2rem; }
.family-head h3 { font: 400 clamp(1.7rem, 2.3vw, 2.4rem)/1.1 var(--serif); margin-bottom: .9rem; }
.family-head p { color: var(--muted); font-size: .98rem; max-width: 22em; }
.family-grid { grid-column: 5 / span 8; display: grid; grid-template-columns: repeat(8, 1fr); gap: clamp(16px, 1.8vw, 28px); align-items: start; }
.family-1 .ph-a { grid-column: 1 / span 5; grid-row: 1 / span 2; }
.family-1 .ph-b { grid-column: 6 / span 3; margin-top: 18vh; }
.family-1 .ph-c { grid-column: 6 / span 3; }
.family-1 .ph-d { grid-column: 2 / span 5; margin-top: 4vh; }
.family-1 .ph-b .pic, .family-1 .ph-c .pic { aspect-ratio: 3 / 4; }
.family-2 .ph-a { grid-column: 1 / span 5; }
.family-2 .ph-b { grid-column: 6 / span 3; margin-top: 22vh; }
.family-3 .family-grid { grid-template-columns: repeat(2, 1fr); }
.family-3 .ph .pic { aspect-ratio: 3 / 4; }
.family-3 .ph:nth-child(even) { margin-top: 12vh; }
.family-3 .ph:nth-child(n+3) { margin-top: 2vh; } .family-3 .ph:nth-child(4) { margin-top: 12vh; }
.family-4 .family-grid { grid-template-columns: 1fr 1fr; }
.family-4 .ph:nth-child(2) { margin-top: 14vh; }

/* ---------- Concept / tech packs ---------- */
.concept { padding-block: clamp(110px, 16vh, 200px); }
.concept-inner { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; align-items: center; }
.concept-copy { grid-column: 1 / span 5; display: grid; gap: 2rem; }
.spec-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.spec-chips li { border: 1px solid var(--line); padding: 9px 14px; font-size: .78rem; letter-spacing: .06em; }
.concept-stack { grid-column: 7 / span 6; position: relative; display: grid; grid-template-columns: repeat(6, 1fr); grid-template-rows: auto auto; gap: 18px; }
.sheet { position: relative; display: block; text-align: left; background: var(--ink-3); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6); transition: transform .8s var(--ease); }
.sheet:hover { transform: translateY(-6px); }
.sheet-1 { grid-column: 1 / span 6; }
.sheet-2 { grid-column: 1 / span 2; }
.sheet-3 { grid-column: 3 / span 2; }
.sheet-4 { grid-column: 5 / span 2; }
.sheet-cap { display: block; padding: 12px 14px; font: 500 .64rem/1.5 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--stone-dark); }

/* ---------- Client ---------- */
.client { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; align-items: center; padding-block: clamp(110px, 16vh, 200px); }
.client-media { grid-column: 1 / span 6; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 1.8vw, 28px); align-items: start; }
.client-photo { margin-top: 16vh; }
.client-film figcaption { position: static; color: var(--muted); text-shadow: none; padding-top: 12px; }
.client-film { overflow: visible; background: none; }
.client-film::after { display: none; }
.client-film video { aspect-ratio: 3 / 4; background: var(--ink-2); }
.client-copy { grid-column: 8 / span 5; display: grid; gap: 1.8rem; }
.client-ship { font: italic 400 1.3rem/1.5 var(--serif); border-top: 1px solid var(--line); padding-top: 1.6rem; }

/* ---------- Path ---------- */
.path { padding-bottom: clamp(110px, 16vh, 200px); }
.steps { border-top: 1px solid var(--line); counter-reset: s; }
.step { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; align-items: baseline; padding: clamp(26px, 4vh, 40px) 0; border-bottom: 1px solid var(--line); }
.step-n { grid-column: 1 / span 1; font: 300 1.4rem/1 var(--serif); color: var(--accent); }
.step h3 { grid-column: 2 / span 5; font: 400 clamp(1.6rem, 2.6vw, 2.6rem)/1.1 var(--serif); }
.step p { grid-column: 8 / span 5; color: var(--muted); }

/* ---------- Partner ---------- */
.partner { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; row-gap: 60px; padding-bottom: clamp(110px, 16vh, 200px); align-items: end; }
.partner-copy { grid-column: 1 / span 6; display: grid; gap: 2rem; }
.partner-figures { grid-column: 8 / span 5; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.figure-block { border-top: 1px solid var(--line); padding-top: 22px; }
.figure-pre { display: block; font: 500 .68rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.figure-num { font: 300 clamp(4.6rem, 8vw, 8.5rem)/.85 var(--serif); letter-spacing: -.03em; }
.figure-pct { font: 300 clamp(2rem, 3vw, 3rem)/1 var(--serif); color: var(--accent); vertical-align: top; }
.figure-block p { margin-top: 14px; color: var(--muted); font-size: .95rem; max-width: 16em; }

/* ---------- Tour teaser ---------- */
.tour-teaser { padding-block: clamp(110px, 16vh, 200px); }
.tour-inner { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; align-items: center; }
.phone { grid-column: 2 / span 4; justify-self: center; width: min(340px, 100%); aspect-ratio: 9 / 19.2; border-radius: 44px; padding: 10px; background: linear-gradient(145deg, #3a3f3b, #151816); box-shadow: 0 50px 90px -40px rgba(0, 0, 0, .8), inset 0 0 0 1px rgba(255, 255, 255, .06); }
.phone-screen { position: relative; height: 100%; border-radius: 35px; overflow: hidden; background: #000; }
.phone-screen .film { position: absolute; inset: 0; aspect-ratio: auto; }
.phone-ui { position: absolute; inset: 0; pointer-events: none; }
.live-pill { position: absolute; top: 18px; left: 16px; display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 999px; background: rgba(12, 14, 13, .55); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: #fff; font: 500 .62rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; }
.live-pill i { width: 7px; height: 7px; border-radius: 50%; background: #e0513e; animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.phone-self { position: absolute; right: 14px; top: 60px; width: 26%; aspect-ratio: 3 / 4; border-radius: 12px; background: linear-gradient(160deg, #6d6457, #2c2a26); border: 1px solid rgba(255, 255, 255, .25); }
.phone-bar { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); display: flex; gap: 12px; padding: 10px 14px; border-radius: 999px; background: rgba(12, 14, 13, .55); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.phone-bar i { width: 34px; height: 34px; border-radius: 50%; background: rgba(255, 255, 255, .16); }
.phone-bar i.end { background: #c8412f; }
.tour-copy { grid-column: 7 / span 5; display: grid; gap: 1.8rem; justify-items: start; }
.tour-meta { display: grid; gap: 0; width: 100%; border-top: 1px solid var(--line); }
.tour-meta li { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: .98rem; }

/* ---------- Closing ---------- */
.closing { padding-block: clamp(130px, 20vh, 240px); display: grid; justify-items: center; text-align: center; gap: 2rem; }
.closing .lede { max-width: 30em; }

/* ---------- Footer ---------- */
.ftr { background: var(--ink); color: var(--bone); --muted: var(--stone-dark); --line: rgba(243, 238, 230, .16); --accent: var(--bronze-2); padding-top: clamp(80px, 12vh, 130px); }
.ftr-top { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; row-gap: 60px; padding-bottom: 80px; }
.ftr-brand { grid-column: 1 / span 4; display: grid; gap: 14px; align-content: start; }
.ftr-brand .mark { width: 34px; height: 42px; }
.ftr-word { font: 400 clamp(3rem, 6vw, 5.4rem)/.9 var(--serif); letter-spacing: .28em; }
.ftr-sub { font: 500 .66rem/1 var(--sans); letter-spacing: .3em; text-transform: uppercase; color: var(--bronze-2); }
.ftr-cols { grid-column: 6 / span 7; display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px 32px; }
.ftr-cols .eyebrow { margin-bottom: 14px; font-size: .66rem; }
.ftr-cols p { font-size: .98rem; line-height: 1.8; }
.ftr-clock { font: 300 2rem/1 var(--serif); }
.ftr-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 32px; padding-block: 28px 36px; border-top: 1px solid var(--line); font-size: .82rem; }

/* ---------- Lightbox ---------- */
.zoom-hit { position: absolute; inset: 0; width: 100%; height: 100%; background: transparent; cursor: zoom-in; }
.zoom-hit:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.lb { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: #0c0e0d; color: var(--bone); }
.lb::backdrop { background: rgba(12, 14, 13, .6); }
.lb[open] { display: grid; grid-template-rows: 1fr auto; }
.lb-stage { overflow: hidden; display: grid; place-items: center; padding: 70px 24px 12px; cursor: zoom-in; touch-action: none; }
.lb-stage.is-zoomed { cursor: grab; }
.lb-stage img { max-width: 100%; max-height: calc(100dvh - 150px); object-fit: contain; transition: transform .5s var(--ease); user-select: none; -webkit-user-drag: none; }
.lb-cap { text-align: center; padding: 14px 24px 26px; font: 500 .7rem/1.5 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--stone-dark); }
.lb-close { position: absolute; top: 18px; right: var(--gutter); z-index: 2; min-height: 44px; padding: 0 14px; border-radius: 999px; background: rgba(12, 14, 13, .72); backdrop-filter: blur(8px); font: 500 .72rem/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--bone); }

/* ---------- Reveal states (only when JS will animate) ---------- */
.js.motion [data-reveal], .js.motion [data-reveal-list] > * { opacity: 0; transform: translateY(24px); }
.js.motion [data-clip] { clip-path: inset(100% 0 0 0); }
/* Hero entrance — CSS only, so it starts with the first paint. */
@keyframes riseLine { from { transform: translateY(105%); } to { transform: none; } }
@keyframes riseSoft { from { transform: translateY(26px); } to { transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes wipeUp { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes settle { from { transform: scale(1.22); } to { transform: none; } }
.motion .hero-title .line > * { animation: riseLine 1.35s var(--ease) both; }
.motion .hero-title .line:nth-child(2) > * { animation-delay: .1s; }
.motion .hero-title .line:nth-child(3) > * { animation-delay: .2s; }
.motion .hero .eyebrow { animation: fadeIn 1.2s var(--ease) .15s both; }
.motion .hero-lede { animation: riseSoft 1.3s var(--ease) .3s both; }
.motion .hero-ctas { animation: riseSoft 1.3s var(--ease) .42s both, fadeIn 1s var(--ease) .42s both; }
.motion .hero-films .film { animation: wipeUp 1.5s var(--ease-io) both; }
.motion .hero-films .film video { animation: settle 2.2s var(--ease) both; }
.motion .hero-films .f2, .motion .hero-films .f2 video { animation-delay: .14s; }
.motion .hero-films .f3, .motion .hero-films .f3 video { animation-delay: .28s; }
.motion .hero [data-reveal] { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .hdr-nav { display: none; }
  .menu-btn { display: inline-flex; }
}
@media (max-width: 1023px) {
  :root { --hdr: 68px; }
  .hdr-cta { display: none; }
  .hero { grid-template-columns: 1fr; padding-top: calc(var(--hdr) + 40px); padding-bottom: 90px; min-height: auto; row-gap: 56px; }
  .hero-copy, .hero-films { grid-column: 1 / -1; }
  .hero-films { gap: 10px; }
  .film-hero.f1 { margin-top: 36px; } .film-hero.f3 { margin-top: 72px; }
  .scroll-cue { display: none; }
  .house-grid, .craft-head, .sec-head, .family, .concept-inner, .client, .partner, .tour-inner, .ftr-top { grid-template-columns: 1fr; }
  .house-text, .craft-head h2, .craft-head .lede, .sec-head h2, .sec-head .lede, .family-head, .family-grid, .concept-copy, .concept-stack,
  .client-media, .client-copy, .partner-copy, .partner-figures, .phone, .tour-copy, .ftr-brand, .ftr-cols { grid-column: 1 / -1; }
  .family-head { position: static; margin-bottom: 36px; }
  .family-grid { grid-template-columns: repeat(8, 1fr); }
  .concept-stack { margin-top: 60px; }
  .client-copy { margin-top: 60px; }
  .house-photo { grid-column: 1 / -1; width: min(420px, 80%); margin-bottom: 56px; }
  .phone { margin-bottom: 64px; width: min(300px, 78vw); }
  .step { grid-template-columns: 48px 1fr; row-gap: 10px; }
  .step-n { grid-column: 1; } .step h3, .step p { grid-column: 2; }
  .craft-pin { overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; min-height: 0; display: block; padding-bottom: 0; }
  .craft-pin::-webkit-scrollbar { display: none; }
  .chapter { scroll-snap-align: start; grid-template-columns: 1fr; width: min(78vw, 360px); }
  .chapter .film, .chapter .film-43 { width: 100%; height: auto; }
  .craft-progress { display: none; }
}
@media (max-width: 719px) {
  body { font-size: 1rem; }
  .hdr-right { gap: 14px; }
  .menu-btn { gap: 9px; }
  .brand-sub { letter-spacing: .18em; font-size: .52rem; }
  .roof-list { grid-template-columns: 1fr; }
  .roof-list li:nth-child(odd) { padding-right: 0; }
  .family-1 .ph-a, .family-1 .ph-d, .family-2 .ph-a { grid-column: 1 / -1; grid-row: auto; }
  .family-1 .ph-b, .family-1 .ph-c, .family-2 .ph-b { grid-column: span 4; margin-top: 0; }
  .family-1 .ph-d { margin-top: 0; }
  .family-3 .family-grid { grid-template-columns: 1fr 1fr; }
  .family-3 .ph:nth-child(even) { margin-top: 40px; }
  .family-4 .family-grid { grid-template-columns: 1fr; }
  .family-4 .ph:nth-child(2) { margin-top: 0; }
  .concept-stack { grid-template-columns: repeat(2, 1fr); }
  .sheet-1 { grid-column: 1 / -1; } .sheet-2, .sheet-3 { grid-column: span 1; } .sheet-4 { display: none; }
  .client-photo { margin-top: 60px; }
  .partner-figures { grid-template-columns: 1fr 1fr; }
  .ftr-cols { grid-template-columns: 1fr; }
  .btn { width: 100%; white-space: normal; text-align: center; padding-block: 1.1em; line-height: 1.4; }
  .hero-ctas { gap: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

/* ---------- 404 ---------- */
.nf { min-height: 72svh; display: grid; align-content: center; justify-items: start; gap: 1.4rem; padding-top: calc(var(--hdr) + 40px); padding-bottom: 12vh; }
.nf h1 { max-width: 14em; font-size: clamp(2.2rem, 4.6vw, 4.2rem); }
.nf .lede { max-width: 32em; margin-bottom: .8rem; }
.nf-ctas { display: flex; gap: 28px; align-items: center; flex-wrap: wrap; }

/* Lining figures everywhere: Cormorant defaults to old-style numerals, and every `font:` shorthand would reset this. */
*, *::before, *::after { font-variant-numeric: lining-nums !important; }

@media (max-width: 430px) {
  /* Very narrow phones: the wordmark alone keeps the header inside the screen. */
  .hdr .brand-sub { display: none; }
  .hdr .brand-text .visually-hidden { position: absolute; }
}
