/* =========================================================
   SUTRADHAR — Interior & Contracts
   Theme tokens → base → components → sections → effects
   ========================================================= */

/* ---------- THEMES ---------- */
:root,
[data-theme="walnut"] {
  --bg: #f3eee6;
  --bg-alt: #ebe3d6;
  --surface: #faf7f2;
  --ink: #1f1a16;
  --ink-soft: #5c524a;
  --line: rgba(31, 26, 22, .14);
  --accent: #7a4e2d;
  --accent-2: #b8925a;
  --dark: #1c1917;
  --dark-ink: #f3eee6;
  --veil: linear-gradient(180deg, rgba(20, 16, 12, .35) 0%, rgba(20, 16, 12, .15) 40%, rgba(20, 16, 12, .7) 100%);
  --shadow: 0 30px 60px -30px rgba(60, 40, 20, .35);
}
[data-theme="noir"] {
  --bg: #121110;
  --bg-alt: #1a1816;
  --surface: #201d1a;
  --ink: #efe8dc;
  --ink-soft: #a89e90;
  --line: rgba(239, 232, 220, .12);
  --accent: #c9a46a;
  --accent-2: #8f6d3e;
  --dark: #0a0908;
  --dark-ink: #efe8dc;
  --veil: linear-gradient(180deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.25) 45%, rgba(0,0,0,.85) 100%);
  --shadow: 0 30px 60px -30px rgba(0, 0, 0, .8);
}
[data-theme="terracotta"] {
  --bg: #efe3d6;
  --bg-alt: #e5d3c1;
  --surface: #f7eee4;
  --ink: #2e1c15;
  --ink-soft: #6e5446;
  --line: rgba(46, 28, 21, .15);
  --accent: #b5563a;
  --accent-2: #d49a6a;
  --dark: #3a2219;
  --dark-ink: #f7eee4;
  --veil: linear-gradient(180deg, rgba(58,34,25,.35) 0%, rgba(58,34,25,.1) 40%, rgba(58,34,25,.75) 100%);
  --shadow: 0 30px 60px -30px rgba(110, 50, 30, .35);
}
[data-theme="sage"] {
  --bg: #e8ebe3;
  --bg-alt: #dde2d6;
  --surface: #f2f4ee;
  --ink: #1f2620;
  --ink-soft: #56604f;
  --line: rgba(31, 38, 32, .14);
  --accent: #5b6b55;
  --accent-2: #a88b5c;
  --dark: #232b24;
  --dark-ink: #eef1ea;
  --veil: linear-gradient(180deg, rgba(20,28,22,.35) 0%, rgba(20,28,22,.1) 40%, rgba(20,28,22,.72) 100%);
  --shadow: 0 30px 60px -30px rgba(30, 45, 30, .35);
}
[data-theme="marble"] {
  --bg: #f4f4f2;
  --bg-alt: #e9e9e6;
  --surface: #ffffff;
  --ink: #1d1d1f;
  --ink-soft: #5e5e62;
  --line: rgba(29, 29, 31, .12);
  --accent: #1d1d1f;
  --accent-2: #9a9a96;
  --dark: #151516;
  --dark-ink: #f4f4f2;
  --veil: linear-gradient(180deg, rgba(0,0,0,.3) 0%, rgba(0,0,0,.08) 40%, rgba(0,0,0,.7) 100%);
  --shadow: 0 30px 60px -30px rgba(0, 0, 0, .3);
}
[data-theme="midnight"] {
  --bg: #0e1726;
  --bg-alt: #131e30;
  --surface: #182539;
  --ink: #ece4d6;
  --ink-soft: #9aa6b8;
  --line: rgba(236, 228, 214, .12);
  --accent: #d7b98e;
  --accent-2: #7e93b4;
  --dark: #070d17;
  --dark-ink: #ece4d6;
  --veil: linear-gradient(180deg, rgba(7,13,23,.55) 0%, rgba(7,13,23,.2) 45%, rgba(7,13,23,.88) 100%);
  --shadow: 0 30px 60px -30px rgba(0, 0, 0, .8);
}

/* ---------- TYPE PAIRINGS ---------- */
:root, [data-type="classic"] {
  --f-display: "Cormorant Garamond", Georgia, serif;
  --f-body: "Jost", system-ui, sans-serif;
  --display-weight: 400;
  --display-track: -.01em;
}
[data-type="modern"] {
  --f-display: "Syne", "Jost", system-ui, sans-serif;
  --f-body: "Jost", system-ui, sans-serif;
  --display-weight: 600;
  --display-track: -.03em;
}
[data-type="editorial"] {
  --f-display: "Fraunces", Georgia, serif;
  --f-body: "Jost", system-ui, sans-serif;
  --display-weight: 300;
  --display-track: -.02em;
}
:root { --f-script: "Great Vibes", cursive; --ease: cubic-bezier(.77, 0, .175, 1); --ease-out: cubic-bezier(.16, 1, .3, 1); --gutter: clamp(16px, 4vw, 56px); }

/* ---------- BASE ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: auto; -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-body);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.65;
  overflow-x: hidden;
  transition: background-color .6s ease, color .6s ease;
}
body.is-loading { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
em { font-style: italic; color: var(--accent); }
::selection { background: var(--accent); color: var(--bg); }

.container { width: 100%; max-width: 1360px; margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(80px, 12vw, 170px) 0; position: relative; }
.section--alt { background: var(--bg-alt); }
.section--dark { background: var(--dark); color: var(--dark-ink); --ink: var(--dark-ink); --ink-soft: color-mix(in srgb, var(--dark-ink) 65%, transparent); --line: color-mix(in srgb, var(--dark-ink) 14%, transparent); }
[data-theme="walnut"] .section--dark em, [data-theme="terracotta"] .section--dark em, [data-theme="sage"] .section--dark em, [data-theme="marble"] .section--dark em { color: var(--accent-2); }

.h2 {
  font-family: var(--f-display);
  font-weight: var(--display-weight);
  letter-spacing: var(--display-track);
  font-size: clamp(38px, 5.4vw, 84px);
  line-height: 1.02;
}
.lead { font-size: clamp(16px, 1.3vw, 19px); color: var(--ink-soft); max-width: 56ch; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  font-size: 12px; letter-spacing: .32em; text-transform: uppercase; font-weight: 500;
  color: var(--accent); margin-bottom: 26px;
}
.eyebrow span { width: 42px; height: 1px; background: currentColor; display: inline-block; }
.section--dark .eyebrow { color: var(--accent-2); }
[data-theme="noir"] .section--dark .eyebrow, [data-theme="midnight"] .section--dark .eyebrow { color: var(--accent); }
.section-head { margin-bottom: clamp(48px, 7vw, 96px); max-width: 900px; }
.section-head .lead { margin-top: 26px; }
.section-head--row { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; flex-wrap: wrap; }
.section-head--row .lead { margin-top: 0; max-width: 42ch; }
.script { font-family: var(--f-script); font-size: 1.3em; color: var(--accent); }

/* ---------- BUTTONS ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  padding: 18px 34px; border-radius: 100px; overflow: hidden;
  background: var(--accent); color: var(--bg);
  font-size: 13px; letter-spacing: .18em; text-transform: uppercase; font-weight: 500;
  isolation: isolate; transition: color .5s var(--ease-out);
}
.btn::before {
  content: ""; position: absolute; inset: 0; background: var(--ink); z-index: -1;
  transform: translateY(101%); border-radius: 50% 50% 0 0; transition: transform .6s var(--ease-out), border-radius .6s;
}
.btn:hover::before { transform: translateY(0); border-radius: 0; }
.btn:hover { color: var(--bg); }
.btn--small { padding: 12px 22px; font-size: 11px; }
.btn--ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); margin-top: 32px; }
.btn--ghost:hover { color: var(--bg); }
.link-arrow { font-size: 13px; letter-spacing: .18em; text-transform: uppercase; display: inline-flex; gap: 10px; align-items: center; }
.link-arrow span { transition: transform .4s var(--ease-out); }
.link-arrow:hover span { transform: translateX(8px); }

/* ---------- PRELOADER ---------- */
.preloader { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; pointer-events: all; }
.preloader__panel { position: absolute; left: 0; right: 0; height: 50.5%; background: var(--dark); z-index: 0; }
.preloader__panel--a { top: 0; } .preloader__panel--b { bottom: 0; }
.preloader__inner { position: relative; z-index: 1; text-align: center; color: #f3eee6; }
.preloader__mark { width: 74px; height: 104px; margin: 0 auto 22px; }
.preloader__mark .mark-s, .preloader__mark .mark-bar { stroke-dasharray: 400; stroke-dashoffset: 400; fill-opacity: 0; animation: draw 1.6s var(--ease) forwards; }
.preloader__mark .mark-bar { animation-delay: .5s; }
@keyframes draw { 60% { fill-opacity: 0; } to { stroke-dashoffset: 0; fill-opacity: 1; } }
.preloader__word { font-family: "Cormorant Garamond", serif; letter-spacing: .5em; font-size: 22px; padding-left: .5em; opacity: 0; animation: fadeIn 1s .6s forwards; }
.preloader__count { margin-top: 10px; font-size: 12px; letter-spacing: .3em; color: #b8925a; }
@keyframes fadeIn { to { opacity: 1; } }
.preloader.is-done { pointer-events: none; }
.preloader.is-done .preloader__inner { opacity: 0; transition: opacity .4s; }
.preloader.is-done .preloader__panel--a { transform: translateY(-100%); transition: transform 1.1s .25s var(--ease); }
.preloader.is-done .preloader__panel--b { transform: translateY(100%); transition: transform 1.1s .25s var(--ease); }
.preloader.is-gone { display: none; }

/* ---------- CHROME ---------- */
.grain {
  position: fixed; inset: -50%; z-index: 900; pointer-events: none; opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1s steps(6) infinite;
}
@keyframes grain { 0%,100% { transform: translate(0,0); } 20% { transform: translate(-4%,3%); } 40% { transform: translate(3%,-5%); } 60% { transform: translate(-2%,6%); } 80% { transform: translate(5%,-2%); } }
.fx-no-grain .grain { display: none; }

.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 950; }
.scroll-progress span { display: block; height: 100%; width: 100%; background: var(--accent); transform-origin: 0 50%; transform: scaleX(0); }

.cursor { position: fixed; top: 0; left: 0; z-index: 990; pointer-events: none; display: none; }
.has-cursor .cursor { display: block; }
.cursor__dot, .cursor__ring { position: fixed; top: 0; left: 0; border-radius: 50%; transform: translate(-50%, -50%); }
.cursor__dot { width: 6px; height: 6px; background: var(--accent); }
.cursor__ring {
  width: 38px; height: 38px; border: 1px solid var(--accent); display: grid; place-items: center;
  transition: width .35s var(--ease-out), height .35s var(--ease-out), background-color .35s, border-color .35s;
}
.cursor__ring em { font-style: normal; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--bg); opacity: 0; transition: opacity .2s; }
.cursor.is-hover .cursor__ring { width: 64px; height: 64px; background: color-mix(in srgb, var(--accent) 15%, transparent); }
.cursor.is-view .cursor__ring { width: 96px; height: 96px; background: var(--accent); border-color: var(--accent); }
.cursor.is-view .cursor__ring em { opacity: 1; }
.has-cursor, .has-cursor a, .has-cursor button, .has-cursor .g-item { cursor: none; }

/* ---------- NAV ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 800;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 22px var(--gutter);
  color: #f5efe6;
  transition: transform .6s var(--ease-out), background-color .5s, color .5s, padding .5s, backdrop-filter .5s;
}
.nav.is-scrolled {
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2);
  color: var(--ink); padding-top: 14px; padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.nav.is-hidden { transform: translateY(-110%); }
.nav__brand { display: flex; align-items: center; gap: 12px; }
.nav__mark { width: 26px; height: 36px; }
.nav__word { font-family: "Cormorant Garamond", serif; font-weight: 500; letter-spacing: .32em; font-size: 18px; line-height: 1; }
.nav__word small { display: block; font-family: var(--f-body); font-size: 8.5px; letter-spacing: .34em; text-transform: uppercase; margin-top: 5px; opacity: .75; }
.nav__links { display: flex; gap: 34px; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; }
.nav__links a { position: relative; padding: 4px 0; }
.nav__links a::after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease-out); }
.nav__links a:hover::after, .nav__links a.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav__actions { display: flex; align-items: center; gap: 14px; }
.nav__studio { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; padding: 10px 16px; border: 1px solid currentColor; border-radius: 100px; opacity: .9; }
.swatch-dot { width: 12px; height: 12px; border-radius: 50%; background: conic-gradient(#7a4e2d, #c9a46a, #b5563a, #5b6b55, #1d1d1f, #0e1726, #7a4e2d); }
.nav__burger { display: none; width: 42px; height: 42px; position: relative; }
.nav__burger span { position: absolute; left: 10px; right: 10px; height: 1.5px; background: currentColor; transition: transform .5s var(--ease-out), top .5s; }
.nav__burger span:first-child { top: 16px; } .nav__burger span:last-child { top: 25px; }
.menu-open .nav__burger span:first-child { top: 20px; transform: rotate(45deg); }
.menu-open .nav__burger span:last-child { top: 20px; transform: rotate(-45deg); }
.menu-open .nav { color: #f5efe6; background: transparent; border-color: transparent; backdrop-filter: none; }

.menu {
  position: fixed; inset: 0; z-index: 790; background: var(--dark); color: #f5efe6;
  display: flex; flex-direction: column; justify-content: center; padding: 100px var(--gutter) 40px;
  clip-path: circle(0% at calc(100% - 40px) 40px); transition: clip-path .9s var(--ease); visibility: hidden;
}
.menu-open .menu { clip-path: circle(150% at calc(100% - 40px) 40px); visibility: visible; }
.menu__bg { position: absolute; inset: 0; opacity: .18; }
.menu__bg img { width: 100%; height: 100%; object-fit: cover; }
.menu__links { position: relative; display: flex; flex-direction: column; gap: 4px; }
.menu__links a { font-family: var(--f-display); font-size: clamp(40px, 10vw, 80px); line-height: 1.1; display: flex; align-items: baseline; gap: 16px; opacity: 0; transform: translateY(30px); transition: opacity .6s, transform .6s var(--ease-out); }
.menu__links i { font-family: var(--f-body); font-style: normal; font-size: 12px; letter-spacing: .2em; color: #c9a46a; }
.menu-open .menu__links a { opacity: 1; transform: none; }
.menu-open .menu__links a:nth-child(2) { transition-delay: .05s; } .menu-open .menu__links a:nth-child(3) { transition-delay: .1s; }
.menu-open .menu__links a:nth-child(4) { transition-delay: .15s; } .menu-open .menu__links a:nth-child(5) { transition-delay: .2s; } .menu-open .menu__links a:nth-child(6) { transition-delay: .25s; }
.menu__foot { position: relative; margin-top: 50px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; opacity: .8; }

/* ---------- THEME STUDIO ---------- */
.studio {
  position: fixed; top: 12px; right: 12px; bottom: 12px; z-index: 960; width: min(380px, calc(100vw - 24px));
  background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 18px;
  padding: 26px; overflow-y: auto; box-shadow: 0 40px 80px -20px rgba(0,0,0,.35);
  transform: translateX(calc(100% + 24px)); transition: transform .7s var(--ease), background-color .5s, color .5s;
}
.studio.is-open { transform: none; }
.studio__head { display: flex; justify-content: space-between; align-items: center; }
.studio__head h3 { font-family: var(--f-display); font-weight: var(--display-weight); font-size: 30px; }
.studio__close { font-size: 30px; line-height: 1; width: 40px; height: 40px; border-radius: 50%; }
.studio__close:hover { background: var(--bg-alt); }
.studio__hint { font-size: 13px; color: var(--ink-soft); margin: 6px 0 22px; }
.studio__group { padding: 18px 0; border-top: 1px solid var(--line); }
.studio__label { display: block; font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 14px; }
.theme-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.theme-grid button { display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 11px; padding: 10px 4px; border-radius: 12px; border: 1px solid transparent; }
.theme-grid button i { width: 44px; height: 44px; border-radius: 50%; background: conic-gradient(var(--a) 0 50%, var(--b) 0 80%, var(--c) 0); box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); transition: transform .4s var(--ease-out); }
.theme-grid button:hover i { transform: rotate(40deg) scale(1.06); }
.theme-grid button.is-active { border-color: var(--accent); background: var(--bg); }
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg button { font-size: 12px; padding: 8px 14px; border-radius: 100px; border: 1px solid var(--line); transition: background-color .3s, color .3s; }
.seg button.is-active { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.toggle { display: flex; align-items: center; gap: 12px; font-size: 14px; padding: 7px 0; cursor: pointer; }
.toggle input { position: absolute; opacity: 0; }
.toggle span { width: 38px; height: 22px; border-radius: 22px; background: var(--line); position: relative; flex: none; transition: background-color .3s; }
.toggle span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--surface); box-shadow: 0 1px 3px rgba(0,0,0,.3); transition: transform .35s var(--ease-out); }
.toggle input:checked + span { background: var(--accent); }
.toggle input:checked + span::after { transform: translateX(16px); }
.toggle input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.studio__reset { margin-top: 10px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; text-decoration: underline; text-underline-offset: 4px; color: var(--ink-soft); }

/* ---------- HERO ---------- */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 620px; overflow: hidden; color: #f5efe6; background: #15110e; }
.hero__media, .hero__split, .hero__video { position: absolute; inset: 0; display: none; }
[data-hero="slides"] .hero__media[data-hero],
[data-hero="split"] .hero__split[data-hero],
[data-hero="video"] .hero__video[data-hero] { display: block; }
html:not([data-hero]) .hero__media { display: block; }
.hero__slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.6s ease; }
.hero__slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.18); }
.hero__slide.is-active { opacity: 1; }
.hero__slide.is-active img { animation: kenburns 9s linear forwards; }
.hero__slide:nth-child(even).is-active img { animation-name: kenburns2; }
@keyframes kenburns { from { transform: scale(1.18) translate(2%, 1%); } to { transform: scale(1.02) translate(-1%, -1%); } }
@keyframes kenburns2 { from { transform: scale(1.02) translate(-2%, 0); } to { transform: scale(1.16) translate(2%, -2%); } }
.hero__split { display: none; }
[data-hero="split"] .hero__split { display: grid !important; grid-template-columns: 1fr 1.25fr 1fr; gap: 10px; padding: 10px; }
.hero__split figure { overflow: hidden; border-radius: 4px; clip-path: inset(100% 0 0 0); animation: splitIn 1.4s var(--ease) forwards; }
.hero__split figure:nth-child(2) { animation-delay: .15s; clip-path: inset(0 0 100% 0); }
.hero__split figure:nth-child(3) { animation-delay: .3s; }
.hero__split img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.2); animation: splitZoom 2.2s var(--ease-out) forwards; }
@keyframes splitIn { to { clip-path: inset(0 0 0 0); } }
@keyframes splitZoom { to { transform: scale(1); } }
.hero__video video { width: 100%; height: 100%; object-fit: cover; }
.hero__video { background: url("../assets/img/living-fluted-wall.jpg") center/cover; }
.hero__veil { position: absolute; inset: 0; background: var(--veil); }
.hero__content { position: absolute; left: var(--gutter); right: var(--gutter); bottom: clamp(90px, 14vh, 150px); z-index: 2; }
.hero__eyebrow { color: #e6cf9f; }
.hero__title { font-family: var(--f-display); font-weight: var(--display-weight); letter-spacing: var(--display-track); font-size: clamp(56px, 11.5vw, 190px); line-height: .92; }
.hero__title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero__title .split { display: inline-block; }
.hero__title em { color: #e6cf9f; }
.hero__script { font-family: var(--f-script); font-size: clamp(30px, 3.6vw, 54px); color: #e6cf9f; margin: 4px 0 30px; margin-left: clamp(0px, 18vw, 320px); line-height: 1; }
.hero__cta { display: flex; gap: 30px; align-items: center; flex-wrap: wrap; }
.hero .btn { background: #f3eee6; color: #1f1a16; }
.hero .btn::before { background: #b8925a; }
.hero__meta { position: absolute; right: var(--gutter); bottom: 36px; z-index: 2; display: flex; gap: 40px; align-items: center; font-size: 12px; letter-spacing: .24em; text-transform: uppercase; }
.hero__counter b { font-weight: 500; color: #e6cf9f; }
.hero__scroll { display: flex; align-items: center; gap: 12px; }
.hero__scroll span { width: 1px; height: 48px; background: rgba(255,255,255,.3); position: relative; overflow: hidden; }
.hero__scroll span::after { content: ""; position: absolute; left: 0; top: -50%; width: 100%; height: 50%; background: #fff; animation: scrollcue 2s var(--ease) infinite; }
@keyframes scrollcue { to { top: 100%; } }
[data-hero="split"] .hero__counter, [data-hero="video"] .hero__counter { visibility: hidden; }

/* ---------- MARQUEE ---------- */
.marquee { overflow: hidden; background: var(--accent); color: var(--bg); padding: 22px 0; white-space: nowrap; }
.marquee__track { display: inline-flex; align-items: center; gap: 36px; will-change: transform; }
.marquee span { font-family: var(--f-display); font-weight: var(--display-weight); font-size: clamp(28px, 3.4vw, 52px); font-style: italic; }
.marquee i { font-style: normal; font-size: 20px; opacity: .6; }
.fx-no-marquee .marquee__track { transform: none !important; }

/* ---------- ABOUT ---------- */
.about__grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(40px, 7vw, 120px); align-items: center; }
.about__media { position: relative; padding-bottom: 80px; }
.parallax-wrap { overflow: hidden; border-radius: 4px; }
.parallax-wrap img { width: 100%; height: 118%; object-fit: cover; margin-top: -9%; will-change: transform; }
.parallax-wrap.tall { aspect-ratio: 4/5.2; width: 78%; }
.parallax-wrap.small { aspect-ratio: 3/4; }
.about__float { position: absolute; width: 44%; right: 0; bottom: 0; box-shadow: var(--shadow); border: 8px solid var(--bg); }
.about__badge { position: absolute; top: 30px; right: 4%; width: 150px; height: 150px; }
.about__badge > svg:first-child { width: 100%; height: 100%; }
.about__badge text { font-size: 15.5px; letter-spacing: .36em; fill: var(--ink); font-family: var(--f-body); font-weight: 500; }
.about__badge-mark { position: absolute; width: 36px; height: 50px; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.about__text .h2 { margin-bottom: 30px; }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-top: 44px; }
.duo__item { border-top: 1px solid var(--line); padding-top: 22px; }
.duo__num { font-size: 12px; letter-spacing: .2em; color: var(--accent); }
.duo h3 { font-family: var(--f-display); font-weight: var(--display-weight); font-size: 34px; margin: 6px 0 10px; }
.duo p { color: var(--ink-soft); font-size: 15px; }

/* ---------- FOUNDATION ---------- */
.timeline { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding-top: 40px; margin-bottom: 90px; }
.timeline__line { position: absolute; top: 12px; left: 0; right: 0; height: 1px; background: var(--line); }
.timeline__line span { display: block; height: 100%; background: var(--accent); transform-origin: 0 50%; transform: scaleX(0); }
.timeline__item { position: relative; }
.timeline__item::before { content: ""; position: absolute; top: -34px; left: 0; width: 11px; height: 11px; border-radius: 50%; background: var(--bg-alt); border: 1px solid var(--accent); }
.timeline__item b { font-family: var(--f-display); font-weight: var(--display-weight); font-size: clamp(40px, 4.4vw, 64px); line-height: 1; color: var(--accent); }
.timeline__item p { color: var(--ink-soft); margin-top: 10px; font-size: 15px; max-width: 22ch; }
.stats { display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat { padding: 36px 20px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat b { display: block; font-family: var(--f-display); font-weight: var(--display-weight); font-size: clamp(44px, 5vw, 78px); line-height: 1; }
.stat p { font-size: 13px; letter-spacing: .06em; color: var(--ink-soft); margin-top: 12px; }
.footnote { font-size: 12px; color: var(--ink-soft); margin-top: 16px; font-style: italic; }
.support { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 80px; }
.support__card { background: var(--surface); padding: 32px 26px; border-radius: 6px; border: 1px solid var(--line); transition: transform .5s var(--ease-out), box-shadow .5s; }
.support__card:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.support__card span { color: var(--accent); font-size: 22px; }
.support__card h4 { font-family: var(--f-display); font-weight: var(--display-weight); font-size: 25px; margin: 14px 0 8px; line-height: 1.1; }
.support__card p { font-size: 14px; color: var(--ink-soft); }

/* ---------- SERVICES ---------- */
.svc-list { list-style: none; border-top: 1px solid var(--line); }
.svc {
  position: relative; display: grid; grid-template-columns: 80px 1.1fr 1fr 40px; gap: 30px; align-items: center;
  padding: 34px 0; border-bottom: 1px solid var(--line); cursor: pointer; isolation: isolate;
}
.svc::before { content: ""; position: absolute; inset: 0; background: var(--bg-alt); z-index: -1; transform: scaleY(0); transform-origin: bottom; transition: transform .6s var(--ease-out); }
.svc:hover::before { transform: scaleY(1); }
.svc__no { font-size: 13px; letter-spacing: .2em; color: var(--accent); padding-left: 10px; }
.svc h3 { font-family: var(--f-display); font-weight: var(--display-weight); font-size: clamp(28px, 3.4vw, 50px); line-height: 1; transition: transform .6s var(--ease-out), color .4s; }
.svc:hover h3 { transform: translateX(18px); color: var(--accent); }
.svc p { color: var(--ink-soft); font-size: 15px; }
.svc__arrow { font-size: 24px; transition: transform .5s var(--ease-out); }
.svc:hover .svc__arrow { transform: rotate(-45deg); color: var(--accent); }
.svc-float { position: fixed; top: 0; left: 0; width: 300px; height: 380px; pointer-events: none; z-index: 50; border-radius: 6px; overflow: hidden; opacity: 0; transform: translate(-50%, -50%) scale(.7); transition: opacity .35s, transform .5s var(--ease-out); box-shadow: var(--shadow); }
.svc-float.is-on { opacity: 1; }
.svc-float img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- DEPARTMENTS ---------- */
.depts__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 110px); }
.depts__sticky { position: sticky; top: 12vh; height: 76vh; }
.depts__stack { position: relative; height: 100%; border-radius: 4px; overflow: hidden; }
.depts__stack img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; clip-path: inset(100% 0 0 0); transition: clip-path 1.1s var(--ease); }
.depts__stack img.is-on { clip-path: inset(0 0 0 0); }
.dept { min-height: 90vh; display: flex; flex-direction: column; justify-content: center; }
.dept .h2 { margin-bottom: 24px; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin: 34px 0; }
.chips li { font-size: 13px; padding: 9px 16px; border: 1px solid var(--line); border-radius: 100px; transition: background-color .3s, color .3s, border-color .3s; }
.chips li:hover { background: var(--accent-2); border-color: var(--accent-2); color: var(--dark); }
.led { font-size: 14px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); }
.led b { color: var(--ink); font-weight: 500; }

/* ---------- SECTORS ---------- */
.sector-row { display: flex; gap: 10px; height: 76vh; min-height: 480px; padding: 0 var(--gutter); }
.sector { position: relative; flex: 1; border-radius: 6px; overflow: hidden; transition: flex 1s var(--ease); cursor: pointer; color: #f5efe6; outline: none; }
.sector.is-open { flex: 4; }
.sector img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease-out), filter .8s; filter: grayscale(.4) brightness(.75); }
.sector.is-open img { transform: scale(1.04); filter: none; }
.sector::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,.72)); }
.sector__body { position: absolute; left: 28px; right: 28px; bottom: 28px; z-index: 1; }
.sector__body span { font-size: 12px; letter-spacing: .2em; color: #e6cf9f; }
.sector__body h3 { font-family: var(--f-display); font-weight: var(--display-weight); font-size: clamp(28px, 3.2vw, 52px); line-height: 1.05; white-space: nowrap; }
.sector__body p { font-size: 14px; opacity: 0; transform: translateY(12px); transition: opacity .5s, transform .6s var(--ease-out); white-space: nowrap; }
.sector.is-open .sector__body p { opacity: .9; transform: none; transition-delay: .35s; }
.sector:not(.is-open) .sector__body h3 { writing-mode: vertical-rl; transform: rotate(180deg); font-size: 28px; }
.sector:focus-visible { box-shadow: 0 0 0 3px var(--accent); }

/* ---------- ZOOM STATEMENT ---------- */
.zoom { position: relative; height: 260vh; background: var(--bg); }
.zoom__pin { position: sticky; top: 0; height: 100vh; overflow: hidden; display: grid; place-items: center; }
.zoom__frame { position: absolute; inset: 0; clip-path: inset(22% 30% 22% 30% round 8px); will-change: clip-path; }
.zoom__frame img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.3); will-change: transform; }
.zoom__frame::after { content: ""; position: absolute; inset: 0; background: rgba(10, 8, 6, .5); opacity: var(--dim, 0); }
.zoom__text { position: relative; z-index: 2; max-width: 980px; padding: 0 var(--gutter); text-align: center; color: #f5efe6; opacity: 0; }
.zoom__text .eyebrow { color: #e6cf9f; justify-content: center; }
.zoom__quote { font-family: var(--f-display); font-weight: var(--display-weight); font-size: clamp(30px, 4.4vw, 68px); line-height: 1.12; letter-spacing: var(--display-track); }
.zoom__quote em { color: #e6cf9f; }

/* ---------- PROJECTS ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filters button { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; padding: 10px 18px; border: 1px solid var(--line); border-radius: 100px; transition: background-color .3s, color .3s; }
.filters button.is-active, .filters button:hover { background: var(--ink); color: var(--bg); }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 260px; grid-auto-flow: dense; gap: 14px; }
.g-item { position: relative; overflow: hidden; border-radius: 4px; background: var(--bg-alt); transition: opacity .5s, transform .6s var(--ease-out); }
.g-item.g-wide { grid-column: span 2; }
.g-item.g-tall { grid-row: span 2; }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out), filter .6s; }
.g-item:hover img { transform: scale(1.07); }
.g-item figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px; color: #f5efe6; background: linear-gradient(transparent, rgba(0,0,0,.65)); display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; transform: translateY(100%); transition: transform .6s var(--ease-out); }
.g-item:hover figcaption, .g-item:focus-visible figcaption { transform: none; }
.g-item figcaption b { font-family: var(--f-display); font-weight: var(--display-weight); font-size: 26px; line-height: 1; }
.g-item figcaption span { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; opacity: .85; }
.g-item.is-hidden { display: none; }

/* ---------- PROCESS (horizontal) ---------- */
.process { background: var(--dark); color: var(--dark-ink); --ink: var(--dark-ink); --ink-soft: color-mix(in srgb, var(--dark-ink) 65%, transparent); --line: color-mix(in srgb, var(--dark-ink) 14%, transparent); overflow: hidden; }
.process__pin { height: 100vh; display: flex; align-items: center; gap: clamp(40px, 6vw, 90px); }
.process__intro { flex: 0 0 calc(min(440px, 36vw) + var(--gutter)); padding-left: var(--gutter); position: relative; z-index: 2; align-self: stretch; display: flex; flex-direction: column; justify-content: center; background: var(--dark); box-shadow: 60px 0 50px -10px var(--dark); }
.process__intro .eyebrow { color: var(--accent-2); align-self: flex-start; }
[data-theme="noir"] .process__intro .eyebrow, [data-theme="midnight"] .process__intro .eyebrow { color: var(--accent); }
.process__intro em { color: var(--accent-2); }
[data-theme="noir"] .process__intro em, [data-theme="midnight"] .process__intro em { color: var(--accent); }
.process__intro .lead { margin-top: 24px; }
.process__bar { margin-top: 40px; height: 2px; background: var(--line); }
.process__bar span { display: block; height: 100%; background: var(--accent-2); transform-origin: 0 50%; transform: scaleX(0); }
.process__track { display: flex; gap: 24px; will-change: transform; padding-right: var(--gutter); }
.step { flex: 0 0 min(380px, 76vw); height: min(520px, 64vh); border: 1px solid var(--line); border-radius: 8px; padding: 36px; display: flex; flex-direction: column; position: relative; background: color-mix(in srgb, var(--dark-ink) 3%, transparent); transition: background-color .5s, border-color .5s; }
.step:hover { background: color-mix(in srgb, var(--accent-2) 12%, transparent); border-color: var(--accent-2); }
.step__no { font-family: var(--f-display); font-size: 120px; line-height: .8; color: transparent; -webkit-text-stroke: 1px var(--accent-2); opacity: .7; }
.step__icon { margin-top: auto; width: 52px; height: 52px; }
.step__icon svg { width: 100%; height: 100%; fill: none; stroke: var(--accent-2); stroke-width: 1.4; stroke-linejoin: round; stroke-linecap: round; }
.step h3 { font-family: var(--f-display); font-weight: var(--display-weight); font-size: 44px; margin: 18px 0 8px; }
.step p { font-size: 15px; color: var(--ink-soft); }
.step--img { padding: 0; overflow: hidden; flex-basis: min(560px, 86vw); border: 0; }
.step--img img { width: 100%; height: 100%; object-fit: cover; }
.step__script { position: absolute; left: 30px; bottom: 24px; font-family: var(--f-script); font-size: 48px; color: #f5efe6 !important; text-shadow: 0 2px 20px rgba(0,0,0,.5); }

/* ---------- TRADES ---------- */
.trade-grid { display: flex; flex-wrap: wrap; gap: 14px; }
.trade { font-family: var(--f-display); font-weight: var(--display-weight); font-size: clamp(22px, 2.4vw, 36px); padding: 16px 30px; border: 1px solid var(--line); border-radius: 100px; transition: background-color .4s, color .4s, transform .4s var(--ease-out); }
.trade:hover { background: var(--accent); color: var(--bg); transform: translateY(-4px) rotate(-1.5deg); }

/* ---------- TEAM ---------- */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.person { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 40px 34px; position: relative; overflow: hidden; transform-style: preserve-3d; transition: box-shadow .5s; }
.person:hover { box-shadow: var(--shadow); }
.person::before { content: ""; position: absolute; right: -60px; top: -60px; width: 180px; height: 180px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--accent-2) 30%, transparent), transparent 70%); }
.person__mono { width: 82px; height: 82px; border-radius: 50%; display: grid; place-items: center; font-family: var(--f-display); font-size: 42px; color: var(--bg); background: linear-gradient(135deg, var(--accent), var(--accent-2)); margin-bottom: 28px; }
.person h3 { font-family: var(--f-display); font-weight: var(--display-weight); font-size: 34px; line-height: 1.1; }
.person__role { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); margin: 10px 0 18px; min-height: 2.6em; }
.person > p:not(.person__role) { font-size: 15px; color: var(--ink-soft); }
.person__link { display: inline-block; margin-top: 24px; font-size: 13px; letter-spacing: .14em; border-bottom: 1px solid var(--accent); padding-bottom: 3px; }

/* ---------- ROADMAP ---------- */
.roadmap__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 110px); align-items: center; }
.phases { list-style: none; margin-top: 50px; }
.phases li { display: grid; grid-template-columns: 90px 1fr; column-gap: 20px; padding: 22px 0; border-top: 1px solid var(--line); }
.phases span { grid-row: span 2; font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--accent-2); padding-top: 8px; }
.phases h4 { font-family: var(--f-display); font-weight: var(--display-weight); font-size: 30px; line-height: 1.1; }
.phases p { font-size: 14.5px; color: var(--ink-soft); }
.map__svg { width: 100%; max-width: 520px; margin: 0 auto; display: block; overflow: visible; }
.map__land { fill: color-mix(in srgb, var(--dark-ink) 5%, transparent); stroke: color-mix(in srgb, var(--dark-ink) 30%, transparent); stroke-width: 1; stroke-dasharray: 3 5; }
.map__grid path { stroke: color-mix(in srgb, var(--dark-ink) 6%, transparent); stroke-width: 1; }
.map__route { fill: none; stroke: var(--accent-2); stroke-width: 2.5; stroke-linecap: round; }
.map__pin circle { fill: var(--accent-2); }
.map__pin .pulse { fill: none; stroke: var(--accent-2); animation: pulse 2.4s ease-out infinite; transform-box: fill-box; transform-origin: center; }
.map__pin--future circle { fill: none; stroke: var(--accent-2); stroke-width: 2; stroke-dasharray: 3 3; }
.map__pin text { fill: var(--dark-ink); font-size: 15px; font-family: var(--f-body); letter-spacing: .12em; }
@keyframes pulse { from { transform: scale(.4); opacity: 1; } to { transform: scale(1.8); opacity: 0; } }
.infra { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 30px; }
.infra div { border: 1px solid var(--line); border-radius: 6px; padding: 18px; text-align: center; }
.infra b { display: block; font-family: var(--f-display); font-weight: var(--display-weight); font-size: 34px; color: var(--accent-2); line-height: 1; }
.infra span { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
[data-theme="noir"] .section--dark .map__route, [data-theme="midnight"] .section--dark .map__route { stroke: var(--accent); }

/* ---------- VISION ---------- */
.fill-text { font-family: var(--f-display); font-weight: var(--display-weight); letter-spacing: var(--display-track); font-size: clamp(34px, 5.2vw, 82px); line-height: 1.1; max-width: 18em; }
.fill-text .w { color: color-mix(in srgb, var(--ink) 16%, transparent); transition: color .3s; }
.fill-text .w.on { color: var(--ink); }
.vm { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; margin-top: 80px; padding-top: 40px; border-top: 1px solid var(--line); }
.vm h4 { font-size: 12px; letter-spacing: .28em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; font-weight: 500; }
.vm p { color: var(--ink-soft); font-size: 17px; }
.vm b { color: var(--ink); font-weight: 500; }

/* ---------- CONTACT ---------- */
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 110px); }
.contact__info .h2 { margin-bottom: 22px; }
.contact__list { list-style: none; margin-top: 36px; }
.contact__list li { padding: 16px 0; border-bottom: 1px solid var(--line); }
.contact__list small { display: block; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 4px; }
.contact__list a { font-family: var(--f-display); font-size: 26px; transition: color .3s; }
.contact__list a:hover { color: var(--accent); }
.contact__list address { font-style: normal; font-size: 15px; color: var(--ink); max-width: 44ch; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 24px; align-content: start; background: var(--surface); padding: clamp(26px, 4vw, 50px); border-radius: 10px; border: 1px solid var(--line); }
.field { position: relative; }
.field--full { grid-column: 1 / -1; }
.field input, .field select, .field textarea {
  width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--line); padding: 22px 0 10px; font: inherit; color: var(--ink); outline: none; resize: vertical; border-radius: 0; appearance: none;
  transition: border-color .4s;
}
.field select { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23999' stroke-width='1.4'/%3E%3C/svg%3E") right 4px center no-repeat; }
.field select option { color: #1f1a16; }
.field label { position: absolute; left: 0; top: 22px; font-size: 15px; color: var(--ink-soft); pointer-events: none; transition: transform .4s var(--ease-out), font-size .4s, color .4s; transform-origin: 0 0; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label,
.field select:focus + label, .field select:valid + label { transform: translateY(-20px) scale(.78); color: var(--accent); }
.form .btn { grid-column: 1 / -1; justify-self: start; }
.form__note { grid-column: 1 / -1; font-size: 12px; color: var(--ink-soft); margin-top: -12px; }
.map-embed { margin-top: 80px; }
.map-embed iframe { width: 100%; height: 380px; border: 0; border-radius: 10px; filter: grayscale(.85) contrast(1.05); transition: filter .6s; }
.map-embed iframe:hover { filter: none; }

/* ---------- FOOTER ---------- */
.footer { background: var(--dark); color: #d9d0c3; padding: 90px 0 40px; overflow: hidden; }
.footer__big { display: flex; align-items: center; gap: clamp(10px, 1.6vw, 24px); font-family: "Cormorant Garamond", serif; font-size: clamp(40px, 10.5vw, 170px); letter-spacing: .08em; line-height: .9; color: #f3eee6; white-space: nowrap; }
.footer__mark { width: .5em; height: .7em; flex: none; }
.footer__row { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 30px; margin-top: 60px; padding-top: 30px; border-top: 1px solid rgba(255,255,255,.12); font-size: 14px; }
.footer__row nav { display: flex; flex-direction: column; gap: 4px; }
.footer__row a:hover { color: #c9a46a; }
.footer .script { color: #c9a46a; }
.footer__legal { margin-top: 50px; font-size: 12px; opacity: .55; }

/* ---------- LIGHTBOX ---------- */
.lightbox { position: fixed; inset: 0; z-index: 970; background: rgba(12, 10, 8, .94); display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: opacity .4s, visibility .4s; }
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox figure { max-width: 88vw; max-height: 84vh; text-align: center; color: #f3eee6; }
.lightbox img { max-width: 88vw; max-height: 78vh; object-fit: contain; border-radius: 4px; transform: scale(.94); transition: transform .5s var(--ease-out); }
.lightbox.is-open img { transform: none; }
.lightbox figcaption { margin-top: 14px; font-family: "Cormorant Garamond", serif; font-size: 22px; }
.lightbox__close { position: absolute; top: 20px; right: 26px; font-size: 40px; color: #fff; }
.lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); font-size: 28px; color: #fff; width: 56px; height: 56px; border: 1px solid rgba(255,255,255,.3); border-radius: 50%; }
.lightbox__prev { left: 20px; } .lightbox__next { right: 20px; }

.to-top { position: fixed; right: 20px; bottom: 20px; z-index: 700; width: 48px; height: 48px; border-radius: 50%; background: var(--accent); color: var(--bg); display: grid; place-items: center; font-size: 18px; opacity: 0; transform: translateY(20px); transition: opacity .4s, transform .4s var(--ease-out); pointer-events: none; }
.to-top.is-on { opacity: 1; transform: none; pointer-events: auto; }

/* =========================================================
   SCROLL REVEAL VARIANTS (applied only once JS is running)
   ========================================================= */
.js .reveal { transition: opacity 1.1s var(--ease-out), transform 1.2s var(--ease-out), filter 1.1s var(--ease-out), clip-path 1.2s var(--ease); }
.js[data-reveal="rise"] .reveal:not(.is-in) { opacity: 0; transform: translateY(60px); }
.js[data-reveal="blur"] .reveal:not(.is-in) { opacity: 0; filter: blur(14px); transform: translateY(20px); }
.js[data-reveal="zoom"] .reveal:not(.is-in) { opacity: 0; transform: scale(.9); }
.js[data-reveal="wipe"] .reveal:not(.is-in) { clip-path: inset(0 0 100% 0); transform: translateY(30px); }
.js[data-reveal="wipe"] .reveal.is-in { clip-path: inset(0 0 -20% 0); }
.js .img-reveal { clip-path: inset(100% 0 0 0); transition: clip-path 1.5s var(--ease); }
.js .img-reveal.is-in { clip-path: inset(0 0 0 0); }
.js .img-reveal img { transform: scale(1.25); transition: transform 2s var(--ease-out); }
.js .img-reveal.is-in img { transform: scale(1); }
.js .img-reveal.is-in img[data-speed] { transition: none; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1080px) {
  .nav__links { display: none; }
  .nav__burger { display: block; }
  .support { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: repeat(3, 1fr); }
  .stat:nth-child(4) { border-left: 0; padding-left: 0; }
  .stat:nth-child(n+4) { border-top: 1px solid var(--line); }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .team-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  body { font-size: 16px; }
  .nav .btn--small { display: none; }
  .nav__word small { display: none; }
  .about__grid, .depts__grid, .roadmap__grid, .contact__grid { grid-template-columns: 1fr; }
  .about__badge { width: 110px; height: 110px; }
  .duo { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr 1fr; row-gap: 60px; }
  .timeline__line { display: none; }
  .timeline__item::before { display: none; }
  .depts__sticky { position: relative; top: 0; height: 56vh; }
  .dept { min-height: 0; padding: 70px 0 0; }
  .sector-row { flex-direction: column; height: auto; }
  .sector { flex: none !important; height: 110px; transition: height .9s var(--ease); }
  .sector.is-open { height: 420px; }
  .sector:not(.is-open) .sector__body h3 { writing-mode: horizontal-tb; transform: none; }
  .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 200px; }
  .process__pin { height: auto; flex-direction: column; align-items: stretch; padding: 100px var(--gutter); }
  .process__intro { flex: none; box-shadow: none; padding-left: 0; }
  .process__track { flex-direction: column; padding-right: 0; transform: none !important; }
  .step, .step--img { flex: none; height: auto; min-height: 300px; }
  .step--img { height: 360px; }
  .team-grid { grid-template-columns: 1fr; }
  .vm { grid-template-columns: 1fr; }
  .form { grid-template-columns: 1fr; }
  .footer__row { grid-template-columns: 1fr; }
  .svc { grid-template-columns: 44px 1fr 28px; gap: 14px; }
  .svc p { grid-column: 2 / 3; grid-row: 2; }
  .svc__arrow { grid-column: 3; grid-row: 1; }
  .hero__meta { display: none; }
  .hero__script { margin-left: 0; }
  [data-hero="split"] .hero__split { grid-template-columns: 1fr 1fr; }
  [data-hero="split"] .hero__split figure:nth-child(3) { display: none; }
  .zoom { height: 200vh; }
}
@media (max-width: 560px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .stat, .stat:nth-child(4) { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); }
  .stat:nth-child(even) { padding-left: 20px; border-left: 1px solid var(--line); }
  .support { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; grid-auto-rows: 260px; }
  .g-item.g-wide { grid-column: auto; }
  .g-item.g-tall { grid-row: auto; }
  .g-item figcaption { transform: none; flex-direction: column; align-items: flex-start; }
  .infra b { font-size: 26px; }
  .nav__studio { padding: 8px 12px; font-size: 0; gap: 0; }
  .nav__studio .swatch-dot { width: 18px; height: 18px; }
}

/* ---------- REDUCED MOTION ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .grain { display: none; }
}

/* Theme change: circular wipe via View Transitions */
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
::view-transition-new(root) { z-index: 9999; }
