/* =====================================================================
   CUBE 22 — Design System v4
   Warm Organic Luxury × Editorial Architecture × Contemporary Minimalism
   Layout idea: photo-led pages on warm ivory; arched frames echo the
   open arcs of the CUBE monogram; brand green (sampled from the logo)
   anchors the footer, olive and bronze are used sparingly.
   ===================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  /* sampled from the reference + official logo */
  --ivory: #F4EEE7;
  --paper: #FAF6F0;
  --linen: #E8DDCF;
  --sand: #B7A28A;
  --olive: #5C573B;
  --olive-deep: #48442D;
  --olive-soft: #8C8566;
  --bronze: #A47C50;
  --bronze-text: #85613B;
  --charcoal: #2F2924;
  --brand-green: #042127;   /* official logo field */
  --logo-gold: #CBB9A1;     /* official logo gold */

  --bg: var(--ivory);
  --surface: var(--paper);
  --text: var(--charcoal);
  --text-2: #4D443B;
  --text-3: #6C6053;
  --line: rgba(47, 41, 36, .12);
  --line-2: rgba(47, 41, 36, .24);
  --accent: var(--bronze);
  --accent-text: var(--bronze-text);
  --ph: #E2D6C6;

  --serif: 'Cormorant Garamond', 'Cormorant', Garamond, 'Times New Roman', serif;
  --sans: 'Manrope', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --fs-eyebrow: 11.5px;
  --fs-base: 17px;
  --fs-lead: clamp(17px, 1.3vw, 19px);
  --fs-h3: clamp(22px, 1.8vw, 26px);
  --fs-h2: clamp(38px, 4vw, 60px);
  --fs-h1: clamp(48px, 6.2vw, 96px);

  --gutter: clamp(20px, 4.5vw, 72px);
  --container: 1320px;
  --gap: clamp(16px, 1.8vw, 28px);
  --sec-pad: clamp(88px, 10vw, 152px);
  --arch: 999px 999px 0 0;

  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  color-scheme: light;
}
.tone-paper { --bg: var(--paper); --surface: var(--ivory); }
.tone-linen { --bg: var(--linen); --surface: var(--paper); --ph: #D8CABA; }
.tone-olive { --bg: var(--olive); --text: #F4EEE7; --text-2: #E2DACB; --text-3: #CFC6B4; --line: rgba(244, 238, 231, .16); --line-2: rgba(244, 238, 231, .3); --accent: var(--logo-gold); --accent-text: #E2D3BC; color-scheme: dark; }
.tone-brand, .nav[data-tone="dark"], .lb, .mnav, .ph {
  --bg: var(--brand-green); --surface: #0A2E36;
  --text: #F2ECE3; --text-2: #D2CBBE; --text-3: #AAB3AE;
  --line: rgba(242, 236, 227, .13); --line-2: rgba(242, 236, 227, .28);
  --accent: var(--logo-gold); --accent-text: #DCCBB2; --ph: #0F3A44;
  color-scheme: dark;
}
.lb, .mnav, .ph { --bg: #1E1A16; }
.sec, .tone-brand, .tone-olive, .view-project, .footer, .mnav, .lb { color: var(--text); }

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html.lock { overflow: hidden; }
body { margin: 0; background: var(--ivory); color: var(--text); font-family: var(--sans); font-size: var(--fs-base); line-height: 1.75; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; text-wrap: balance; }
p, figure { margin: 0; }
em { font-style: italic; }
:focus-visible { outline: 1.5px solid var(--accent); outline-offset: 4px; }
::selection { background: var(--sand); color: var(--charcoal); }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: fixed; top: 10px; left: 10px; z-index: 200; padding: 10px 16px; background: var(--charcoal); color: var(--ivory); transform: translateY(-160%); transition: transform .3s var(--ease); text-decoration: none; }
.skip:focus { transform: none; }
.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
main:focus { outline: none; }

/* ---------- 3. Type ---------- */
.eyebrow { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; font-size: var(--fs-eyebrow); font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--text-3); }
.center .eyebrow { justify-content: center; }
.h2 { font-family: var(--serif); font-weight: 400; font-size: var(--fs-h2); line-height: 1.08; letter-spacing: -.005em; color: var(--text); }
.h2 em, .hero-title em, .ph-title em { font-style: italic; color: var(--accent-text); }
.lead { margin-top: 22px; max-width: 46ch; font-size: var(--fs-lead); line-height: 1.8; color: var(--text-2); }
.sec { position: relative; background: var(--bg); padding-block: var(--sec-pad); }
.sec-head { display: grid; gap: 14px; margin-bottom: clamp(40px, 5vw, 72px); }
.sec-head.center { text-align: center; justify-items: center; }

/* ---------- 4. Buttons & links ---------- */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 12px; height: 50px; padding: 0 28px; border: 1px solid transparent; border-radius: 2px; font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; text-decoration: none; white-space: nowrap; overflow: hidden; transition: background-color .4s var(--ease), color .4s, border-color .4s, transform .4s var(--ease); }
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.btn::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .22) 50%, transparent 65%); transform: translateX(-110%); transition: transform .9s var(--ease); }
.btn:hover::after { transform: translateX(110%); }
.btn-olive { background: var(--olive); color: var(--ivory); }
.btn-olive:hover { background: var(--olive-deep); }
.btn-ivory { background: var(--ivory); color: var(--charcoal); }
.btn-gold { background: var(--logo-gold); color: var(--brand-green); }
.btn-gold:hover { background: #DCCDB6; }
.btn-sm { height: 42px; padding: 0 20px; font-size: 11px; }
.btn-lg { height: 58px; padding: 0 34px; }
.link-line { display: inline-flex; align-items: center; gap: 10px; margin-top: 32px; padding: 6px 0; border: 0; background: linear-gradient(currentColor, currentColor) left bottom / 100% 1px no-repeat; font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; text-decoration: none; color: var(--text); transition: background-size .7s var(--ease), color .3s; }
.link-line::after { content: "→"; font-weight: 400; letter-spacing: 0; transition: transform .4s var(--ease); }
.link-line:hover { background-size: 30% 1px; color: var(--accent-text); }
.link-line:hover::after { transform: translateX(6px); }
.ibtn { width: 48px; height: 48px; display: grid; place-items: center; padding: 0; border: 1px solid var(--line-2); border-radius: 50%; background: transparent; color: var(--text); transition: border-color .3s, background-color .3s; }
.ibtn:hover { border-color: var(--accent); background: rgba(203, 185, 161, .12); }
.ibtn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.ico { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- 5. Arch frames (logo arcs) ---------- */
.arch { position: relative; overflow: hidden; border-radius: var(--arch); background: var(--ph); }
.arch .img-shell { position: absolute; inset: 0; }
.arch img { width: 100%; height: 100%; object-fit: cover; }
.arch-fallback { position: absolute; inset: 0; display: grid; place-items: center; background: var(--brand-green); }
.arch-fallback img { width: 46%; height: auto; object-fit: contain; }
.logo-arcs { fill: none; stroke: var(--accent); stroke-width: 1; stroke-linecap: round; opacity: .55; }

/* ---------- 6. Dev markers ---------- */
[data-dev], .dev-badge { display: none; }
body.is-dev [data-dev] { display: inline-flex; }
body.is-dev .dev-badge { display: inline-block; }
.dev-flag { align-items: center; gap: 8px; padding: 4px 11px; border: 1px dashed var(--accent); border-radius: 999px; font-size: 10.5px; font-weight: 500; letter-spacing: .04em; text-transform: none; color: var(--accent-text); background: rgba(250, 246, 240, .7); }
.dev-flag::before { content: "DEV"; font-size: 9px; font-weight: 700; letter-spacing: .14em; padding: 1px 6px; border-radius: 3px; background: var(--accent); color: var(--paper); }
.dev-badge { padding: 4px 10px; font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; line-height: 1.5; color: var(--charcoal); background: repeating-linear-gradient(45deg, #EADFCF 0 7px, #D8C7AF 7px 14px); }

/* ---------- 7. Images & reveal ---------- */
.img-shell { position: relative; display: block; overflow: hidden; background: var(--ph); }
.img-shell::before { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 20%, rgba(255, 255, 255, .3) 50%, transparent 80%); background-size: 200% 100%; animation: shimmer 1.6s linear infinite; }
.img-shell.is-loaded::before { display: none; }
.img-shell img { position: relative; opacity: 0; transition: opacity .8s var(--ease), transform 1.4s var(--ease); }
.img-shell.is-loaded img { opacity: 1; }
@keyframes shimmer { to { background-position: -200% 0; } }
[data-reveal] { transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0s); }
[data-reveal].rv-wait { opacity: 0; transform: translateY(24px); }

/* =====================================================================
   NAVIGATION — official logo, calm glass
   ===================================================================== */
.nav { position: fixed; top: 14px; left: 0; right: 0; z-index: 70; padding-inline: var(--gutter); pointer-events: none; color: var(--text); transition: transform .6s var(--ease); }
.nav.is-hidden { transform: translateY(calc(-100% - 24px)); }
.nav-bar { pointer-events: auto; max-width: var(--container); margin-inline: auto; height: 68px; display: flex; align-items: center; gap: 24px; padding: 0 10px 0 12px; border: 1px solid transparent; border-radius: 14px; transition: background-color .5s var(--ease), border-color .5s, box-shadow .5s, -webkit-backdrop-filter .5s, backdrop-filter .5s; }
.nav.is-scrolled .nav-bar { background: rgba(250, 246, 240, .74); border-color: rgba(47, 41, 36, .08); box-shadow: 0 14px 36px -26px rgba(47, 41, 36, .4); -webkit-backdrop-filter: blur(16px) saturate(1.15); backdrop-filter: blur(16px) saturate(1.15); }
.nav.is-scrolled[data-tone="dark"] .nav-bar { background: rgba(4, 33, 39, .6); border-color: rgba(242, 236, 227, .1); }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .nav.is-scrolled .nav-bar { background: var(--paper); } }
.nav-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; flex: none; }
.nav-logo { width: 44px; height: 44px; border-radius: 8px; box-shadow: 0 0 0 1px rgba(203, 185, 161, .25); }
.nav-word { display: grid; font-size: 14px; font-weight: 600; letter-spacing: .3em; line-height: 1.2; }
.nav-word small { margin-top: 3px; font-size: 8.5px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--text-3); }
.nav-links { position: relative; display: flex; gap: 4px; margin-inline: auto; }
.nav-links a { padding: 10px 14px; font-size: 11.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; text-decoration: none; color: var(--text-2); transition: color .3s; }
.nav-links a:hover, .nav-links a.is-active { color: var(--text); }
.nav-ind { position: absolute; bottom: 4px; left: 0; width: 0; height: 1px; background: var(--accent); opacity: 0; transition: transform .6s var(--ease), width .6s var(--ease), opacity .3s; }
.nav-back { display: none; align-items: center; gap: 8px; margin-right: auto; padding: 10px; font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; text-decoration: none; white-space: nowrap; }
.nav-back svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; transition: transform .3s var(--ease); }
.nav-back:hover svg { transform: translateX(-4px); }
body[data-view="project"] .nav-links { display: none; }
body[data-view="project"] .nav-back { display: inline-flex; }
.nav-burger { display: none; position: relative; width: 46px; height: 46px; flex: none; border: 1px solid var(--line-2); border-radius: 50%; background: transparent; }
.nav-burger span { position: absolute; left: 14px; right: 14px; height: 1px; background: var(--text); transition: transform .45s var(--ease), top .45s var(--ease); }
.nav-burger span:first-child { top: 19px; }
.nav-burger span:last-child { top: 26px; }
.nav-burger[aria-expanded="true"] span { top: 22.5px; }
.nav-burger[aria-expanded="true"] span:first-child { transform: rotate(45deg); }
.nav-burger[aria-expanded="true"] span:last-child { transform: rotate(-45deg); }
body.menu-open .nav { --text: #F2ECE3; --text-3: #AAB3AE; --line-2: rgba(242, 236, 227, .3); }
body.menu-open .nav-bar { background: transparent !important; border-color: transparent !important; box-shadow: none !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
.mnav { position: fixed; inset: 0; z-index: 60; overflow-y: auto; background: rgba(4, 33, 39, .9); -webkit-backdrop-filter: blur(22px); backdrop-filter: blur(22px); opacity: 0; transition: opacity .45s var(--ease); }
.mnav.is-open { opacity: 1; }
.mnav-inner { min-height: 100%; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; padding: 116px var(--gutter) 40px; }
.mnav-list { list-style: none; margin: 0; padding: 0; }
.mnav-list li { border-bottom: 1px solid var(--line); opacity: 0; transform: translateY(16px); transition: opacity .5s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--i) * 55ms + 80ms); }
.mnav.is-open .mnav-list li { opacity: 1; transform: none; }
.mnav-list a { display: flex; align-items: baseline; gap: 18px; padding: 14px 0; font-family: var(--serif); font-size: clamp(34px, 9vw, 46px); line-height: 1.15; text-decoration: none; }
.mnav-list a span { font-size: 16px; font-style: italic; color: var(--accent-text); }
.mnav-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.mnav-foot img { width: 48px; height: 48px; border-radius: 8px; }

/* =====================================================================
   HERO — immersive photography
   ===================================================================== */
.hero { position: relative; height: min(94svh, 940px); min-height: 580px; overflow: hidden; background: var(--ph); color: var(--charcoal); }
.hero-media { position: absolute; inset: -4% 0 0; }
.hero-media .img-shell { position: absolute; inset: 0; background: #DCCDBA; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; transform: translateY(var(--py, 0px)) scale(var(--hz, 1.06)); transition: opacity .8s, transform 2.2s var(--ease); }
.hero-media .arch-fallback { position: absolute; inset: 0; }
.hero-wash { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(244, 238, 231, .82) 0%, rgba(244, 238, 231, .55) 30%, rgba(244, 238, 231, 0) 58%), linear-gradient(180deg, rgba(244, 238, 231, .5) 0%, rgba(244, 238, 231, 0) 22%); }
.hero[data-tone="dark"] { color: #F4EEE7; }
.hero[data-tone="dark"] .hero-wash { background: linear-gradient(90deg, rgba(20, 17, 14, .62) 0%, rgba(20, 17, 14, .3) 38%, rgba(20, 17, 14, 0) 62%), linear-gradient(180deg, rgba(20, 17, 14, .4) 0%, rgba(20, 17, 14, 0) 24%); }
.hero[data-tone="dark"] .hero-title em { color: #E2CFB2; }
.hero[data-tone="dark"] .hero-sub { color: rgba(244, 238, 231, .86); }
.hero-inner { position: relative; height: 100%; }
.hero-copy { position: absolute; left: 0; top: clamp(130px, 22svh, 230px); max-width: 640px; }
.hero-title { font-family: var(--serif); font-weight: 400; font-size: var(--fs-h1); line-height: 1.02; letter-spacing: -.01em; }
.hero-title .ln { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.hero-title .ln > span { display: inline-block; transition: transform 1.3s var(--ease); transition-delay: var(--d, 0s); }
.hero-rule { display: block; width: 56px; height: 1px; margin: 30px 0 22px; background: currentColor; opacity: .55; transform-origin: left; transition: transform 1.2s var(--ease) .5s; }
.hero-sub { font-size: 12.5px; font-weight: 600; letter-spacing: .22em; line-height: 2; text-transform: uppercase; color: var(--text-2); margin-bottom: 30px; transition: opacity 1s var(--ease) .6s, transform 1s var(--ease) .6s; }
.hero-copy .btn { transition: opacity 1s var(--ease) .75s, transform 1s var(--ease) .75s, background-color .4s; }
.hero-feature { position: absolute; right: 0; bottom: clamp(28px, 5svh, 56px); display: flex; align-items: center; gap: 16px; padding: 14px 18px 14px 14px; border-radius: 12px; text-decoration: none; color: var(--charcoal); background: rgba(250, 246, 240, .7); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border: 1px solid rgba(47, 41, 36, .08); transition: transform .5s var(--ease), background-color .4s, opacity 1s var(--ease) .9s; }
.hero-feature:hover { transform: translateY(-3px); background: rgba(250, 246, 240, .88); }
.hero-feature .hf-thumb { width: 64px; height: 48px; overflow: hidden; border-radius: 4px; flex: none; }
.hero-feature .hf-thumb img { width: 100%; height: 100%; object-fit: cover; }
.hero-feature small { display: block; font-size: 10px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--text-3); }
.hero-feature b { display: block; font-family: var(--serif); font-size: 20px; font-weight: 500; line-height: 1.2; }
.hero-feature .arr { font-size: 18px; transition: transform .4s var(--ease); }
.hero-feature:hover .arr { transform: translateX(5px); }
.hero-dev { position: absolute; left: var(--gutter); bottom: 22px; z-index: 2; }
html.intro .hero-title .ln > span { transform: translateY(105%); }
html.intro .hero-rule { transform: scaleX(0); }
html.intro .hero-sub, html.intro .hero-copy .btn, html.intro .hero-feature { opacity: 0; transform: translateY(14px); }
html.intro .hero-media img { --hz: 1.14; }

/* =====================================================================
   STUDIO — editorial split
   ===================================================================== */
.studio-grid { position: relative; display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); align-items: center; }
.studio-media { grid-column: 1 / span 5; }
.studio-img { aspect-ratio: 4 / 5; }
.studio-copy { grid-column: 7 / span 5; }
.studio-copy .h2 { margin-top: 20px; }
.studio-body { margin-top: 26px; display: grid; gap: 16px; color: var(--text-2); font-size: var(--fs-lead); line-height: 1.85; max-width: 46ch; }
.studio-arcs { position: absolute; right: 0; bottom: -40px; width: clamp(110px, 12vw, 170px); }

/* =====================================================================
   SERVICES — minimal cards
   ===================================================================== */
.services { background: var(--ivory); }
.svc-grid { --cols: 4; --sg: var(--gap); display: flex; flex-wrap: wrap; justify-content: center; align-items: stretch; gap: var(--sg); }
.svc-grid > .svc { width: calc((100% - (var(--cols) - 1) * var(--sg)) / var(--cols)); }
.svc { position: relative; padding: clamp(32px, 3vw, 44px) clamp(24px, 2.4vw, 34px); background: var(--paper); border: 1px solid var(--line); text-align: center; transition: border-color .5s var(--ease), transform .6s var(--ease), box-shadow .6s var(--ease); }
.svc:hover, .svc.is-open { border-color: rgba(164, 124, 80, .45); transform: translateY(-4px); box-shadow: 0 22px 44px -34px rgba(47, 41, 36, .45); }
.svc-icon { display: grid; place-items: center; width: 68px; height: 68px; margin: 0 auto 22px; border-radius: 50%; background: var(--olive-soft); color: var(--paper); transition: background-color .5s var(--ease), transform .6s var(--ease); }
.svc:hover .svc-icon, .svc.is-open .svc-icon { background: var(--olive); transform: scale(1.05); }
.svc h3 { font-family: var(--serif); font-size: 21px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; line-height: 1.3; }
.svc > p { margin: 14px auto 0; max-width: 30ch; color: var(--text-2); font-size: 15.5px; line-height: 1.7; }
.svc-toggle { display: inline-flex; align-items: center; gap: 10px; margin-top: 22px; padding: 6px 2px; border: 0; background: none; font-size: 11px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--accent-text); }
.svc-toggle i { position: relative; width: 11px; height: 11px; }
.svc-toggle i::before, .svc-toggle i::after { content: ""; position: absolute; top: 5px; left: 0; width: 11px; height: 1px; background: currentColor; transition: transform .5s var(--ease); }
.svc-toggle i::after { transform: rotate(90deg); }
.svc.is-open .svc-toggle i::after { transform: rotate(0); }
.svc-more { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .6s var(--ease); }
.svc.is-open .svc-more { grid-template-rows: 1fr; }
.svc-more > div { overflow: hidden; }
.svc-more ul { list-style: none; margin: 18px 0 0; padding: 18px 0 0; border-top: 1px solid var(--line); display: grid; gap: 8px; font-size: 14.5px; color: var(--text-2); }

/* =====================================================================
   RECENT WORK — one unified gallery (3 / 2 / 1 columns)
   ===================================================================== */
.rw-ornament { position: relative; display: block; width: 120px; height: 14px; margin-top: 4px; }
.rw-ornament::before { content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 1px; background: linear-gradient(90deg, transparent, var(--sand) 30%, var(--sand) 70%, transparent); }
.rw-ornament::after { content: ""; position: absolute; left: 50%; top: 3px; width: 8px; height: 8px; margin-left: -4px; border: 1px solid var(--accent); background: var(--bg); transform: rotate(45deg); }
.pgrid { --cols: 3; --cg: clamp(18px, 2vw, 30px); display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(28px, 3vw, 44px) var(--cg); }
.pgrid > .pc { width: calc((100% - (var(--cols) - 1) * var(--cg)) / var(--cols)); }
.pc { position: relative; display: flex; flex-direction: column; text-decoration: none; color: inherit; }
.pc-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; clip-path: inset(0); background: var(--ph); transition: clip-path 1.3s var(--ease); transition-delay: var(--d, 0s); }
.pc-media .img-shell { position: absolute; inset: 0; }
.pc-media img { width: 100%; height: 100%; object-fit: cover; object-position: var(--focus, 50% 50%); transform: scale(var(--zs, 1)); transition: opacity .8s, transform 1.4s var(--ease); }
.pc-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 60%, rgba(47, 41, 36, .14)); opacity: 0; transition: opacity .6s var(--ease); pointer-events: none; }
.pc-media .dev-badge { position: absolute; top: 14px; left: 14px; z-index: 2; }
.pc-cap { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 18px; row-gap: 2px; padding: 18px 22px 20px; background: var(--surface); border: 1px solid var(--line); border-top: 0; flex: 1; transition: opacity 1s var(--ease), transform 1s var(--ease), border-color .5s; transition-delay: calc(var(--d, 0s) + .2s), calc(var(--d, 0s) + .2s), 0s; }
.pc-title { grid-column: 1; font-size: 12.5px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; line-height: 1.5; }
.pc-tags { grid-column: 1; font-family: var(--serif); font-style: italic; font-size: 18px; line-height: 1.3; color: var(--text-2); }
.pc-arrow { grid-column: 2; grid-row: 1 / span 2; width: 34px; height: 14px; fill: none; stroke: var(--text); stroke-width: 1.2; transition: transform .55s var(--ease), stroke .3s; }
.pc-arrow path { vector-effect: non-scaling-stroke; }
.pc.rv-wait .pc-media { clip-path: inset(100% 0 0 0); }
.pc.rv-wait .pc-media img { --zs: 1.14; }
.pc.rv-wait .pc-cap { opacity: 0; transform: translateY(14px); }
@media (hover: hover) {
  .pc:hover .pc-media img { --zs: 1.05; }
  .pc:hover .pc-media::after { opacity: 1; }
  .pc:hover .pc-arrow { transform: translateX(7px); stroke: var(--accent-text); }
  .pc:hover .pc-cap { border-color: rgba(164, 124, 80, .35); }
}
.pc:focus-visible { outline-offset: 6px; }
.p-empty { padding: 64px 0; font-family: var(--serif); font-size: 28px; color: var(--text-2); text-align: center; }

/* project page additions */
.ph-back { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 22px; font-size: 11px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; text-decoration: none; color: rgba(244, 238, 231, .85); }
.ph-back svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; transition: transform .35s var(--ease); }
.ph-back:hover { color: #fff; }
.ph-back:hover svg { transform: translateX(-4px); }
.ph-head .ph-title { margin-top: 0; }
.ph-viewall { display: flex; align-items: center; gap: 12px; margin-top: 26px; padding: 0; border: 0; background: none; font-size: 11px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: rgba(244, 238, 231, .85); }
.ph-viewall span { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid rgba(244, 238, 231, .45); border-radius: 50%; font-family: var(--serif); font-size: 16px; letter-spacing: 0; transition: background-color .4s, color .4s; }
.ph-viewall:hover span { background: var(--ivory); color: var(--charcoal); }
.ph-gap { height: clamp(56px, 7vw, 104px); }
.ph-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: clamp(56px, 7vw, 96px); border-top: 1px solid var(--line); }
.ph-foot .link-line { margin-top: 28px; }
.ph-foot .link-line::after { content: none; }
.ph-foot .link-line::before { content: "←"; font-weight: 400; letter-spacing: 0; transition: transform .4s var(--ease); }
.ph-foot .link-line:hover::before { transform: translateX(-6px); }
.label-count { margin-top: 28px; font-family: var(--serif); font-size: 20px; color: var(--text-3); }
.story { padding-bottom: clamp(56px, 7vw, 96px); }

/* =====================================================================
   PROCESS — horizontal stages
   ===================================================================== */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: clamp(20px, 2.6vw, 40px); }
.step-no { display: block; font-family: var(--serif); font-size: clamp(30px, 2.6vw, 40px); line-height: 1; color: var(--text-2); }
.step-line { position: relative; display: block; height: 1px; margin: 16px 0 20px; background: var(--line-2); overflow: hidden; }
.step-line::after { content: ""; position: absolute; inset: 0; background: var(--accent); transform-origin: left; transform: scaleX(1); transition: transform 1.2s var(--ease); transition-delay: var(--d, 0s); }
.step.rv-wait .step-line::after { transform: scaleX(0); }
.step h3 { font-size: 13px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.step p { margin-top: 10px; color: var(--text-2); font-size: 15.5px; line-height: 1.7; }

/* testimonials (authentic only) */
.t-quote { max-width: 760px; margin: 0 auto; text-align: center; font-family: var(--serif); font-size: clamp(24px, 2.4vw, 32px); line-height: 1.5; }
.t-quote footer { margin-top: 22px; font-family: var(--sans); font-size: 11.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--text-3); }

/* =====================================================================
   CONTACT — direct
   ===================================================================== */
.contact-grid { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); row-gap: 56px; align-items: center; }
.contact-copy { grid-column: 1 / span 6; }
.contact-title { margin-top: 18px; font-size: clamp(42px, 4.6vw, 70px); }
.contact-copy .btn { margin-top: 36px; }
.wa-note { margin-top: 12px; font-size: 13px; color: var(--text-3); min-height: 1.4em; }
.c-list { list-style: none; margin: 28px 0 0; padding: 0; border-top: 1px solid var(--line); max-width: 520px; }
.c-list li { border-bottom: 1px solid var(--line); }
.c-list a, .c-list .c-row { display: grid; grid-template-columns: 30px 1fr auto; align-items: center; gap: 16px; padding: 16px 0; text-decoration: none; }
.c-list .ico { width: 22px; height: 22px; color: var(--accent); }
.c-list small { display: block; font-size: 10.5px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--text-3); line-height: 1.4; }
.c-list .v { font-family: var(--serif); font-size: 21px; line-height: 1.3; }
.c-list .missing { font-size: 14px; color: var(--text-3); }
.c-list a::after { content: "↗"; color: var(--text-3); transition: transform .4s var(--ease), color .3s; }
.c-list a:hover::after { transform: translate(3px, -3px); color: var(--accent-text); }
.c-list a:hover .v { color: var(--accent-text); }
.contact-art { grid-column: 8 / span 5; position: relative; }
.contact-img { aspect-ratio: 4 / 4.8; }

/* =====================================================================
   FOOTER — official logo on brand green
   ===================================================================== */
.footer { background: var(--brand-green); padding: clamp(64px, 7vw, 104px) 0 32px; }
.f-grid { display: grid; grid-template-columns: 1.1fr 1fr 1fr 1.3fr; gap: 40px; align-items: start; }
.f-brand img { width: clamp(150px, 13vw, 190px); height: auto; margin-top: -14px; }
.f-h { margin-bottom: 18px; font-size: 10.5px; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: var(--logo-gold); }
.f-col nav, .f-links { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.f-col a { font-size: 15px; color: var(--text-2); text-decoration: none; transition: color .3s; }
.f-col a:hover { color: var(--logo-gold); }
.f-links .missing { font-size: 14px; color: var(--text-3); }
.f-about p:not(.f-h) { color: var(--text-2); font-size: 15px; max-width: 30ch; margin-bottom: 22px; }
.f-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 56px; padding-top: 22px; border-top: 1px solid rgba(203, 185, 161, .2); font-size: 12px; letter-spacing: .08em; color: var(--text-3); }

/* =====================================================================
   PROJECT PAGE
   ===================================================================== */
.view-project { background: var(--ivory); }
.ph { position: relative; height: min(92svh, 940px); min-height: 540px; overflow: hidden; background: #1E1A16; color: #F4EEE7; }
.ph-media { position: absolute; inset: 0; }
.ph-media .img-shell { position: absolute; inset: 0; background: #3A332D; }
.ph-img { width: 100%; height: 116%; object-fit: cover; transform: translate3d(0, var(--py, 0px), 0); will-change: transform; }
.ph-shade { position: absolute; inset: 0; z-index: 2; background: linear-gradient(180deg, rgba(20, 17, 14, .42) 0%, transparent 22%, transparent 44%, rgba(20, 17, 14, .55) 70%, rgba(20, 17, 14, .82) 100%); }
.ph-head { position: absolute; z-index: 3; left: 0; right: 0; bottom: clamp(36px, 6vw, 80px); }
.ph-head .eyebrow { color: rgba(244, 238, 231, .85); }
.ph-title { margin-top: 16px; font-family: var(--serif); font-weight: 400; font-size: clamp(46px, 6.4vw, 104px); line-height: 1; max-width: 15ch; }
.ph-title:focus { outline: none; }
.ph-title > span { display: inline-block; transition: transform 1.2s var(--ease) .15s, opacity 1.2s var(--ease) .15s; }
.ph-enter .ph-title > span { transform: translateY(44px); opacity: 0; }
.ph-head .dev-badge { margin-top: 20px; }
.ph-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); border-bottom: 1px solid var(--line-2); }
.ph-meta > div { padding: 26px 22px 26px 0; }
.ph-meta > div + div { padding-left: 22px; border-left: 1px solid var(--line); }
.ph-meta dt { font-size: 10.5px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--text-3); }
.ph-meta dd { margin: 6px 0 0; font-family: var(--serif); font-size: 23px; line-height: 1.2; }
.ph-meta dd.missing { font-family: var(--sans); font-size: 14px; color: var(--text-3); }
.ph-intro { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); padding-block: var(--sec-pad) clamp(64px, 8vw, 120px); }
.ph-intro .eyebrow { grid-column: 1 / span 3; align-self: start; padding-top: 10px; }
.ph-desc { grid-column: 4 / span 7; font-family: var(--serif); font-size: clamp(26px, 2.5vw, 36px); line-height: 1.4; color: var(--text); }
.story { display: grid; gap: clamp(56px, 7vw, 112px); padding-bottom: var(--sec-pad); }
.blk { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); align-items: center; }
.blk-feature .blk-media { grid-column: 1 / span 7; }
.blk-feature .blk-text { grid-column: 9 / span 4; }
.blk-feature.flip .blk-media { grid-column: 6 / span 7; grid-row: 1; }
.blk-feature.flip .blk-text { grid-column: 1 / span 4; grid-row: 1; }
.blk-feature.is-portrait .blk-media { grid-column: 2 / span 5; }
.blk-feature.is-portrait.flip .blk-media { grid-column: 7 / span 5; }
.blk-text h3 { font-family: var(--serif); font-size: var(--fs-h3); line-height: 1.25; }
.blk-text p { margin-top: 12px; color: var(--text-2); line-height: 1.8; }
.blk-text .eyebrow { margin-bottom: 14px; }
.blk-full .blk-media { grid-column: 1 / -1; }
.blk-full.is-portrait .blk-media { grid-column: 4 / span 6; }
.blk-pair { display: flex; gap: var(--gap); align-items: flex-start; }
.blk-pair .st-fig { flex: var(--r) 1 0%; min-width: 0; }
.st-open { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; overflow: hidden; clip-path: inset(0); transition: clip-path 1.3s var(--ease); }
.st-open img { width: 100%; height: auto; transform: scale(var(--zs, 1)); transition: opacity .8s, transform 1.5s var(--ease); }
.st-fig.rv-wait .st-open { clip-path: inset(0 0 100% 0); }
.st-fig.rv-wait .st-open img { --zs: 1.1; }
@media (hover: hover) { .st-open:hover img { --zs: 1.025; } }
.st-fig figcaption { display: flex; gap: 12px; margin-top: 12px; font-size: 13.5px; color: var(--text-3); }
.st-fig figcaption b { font-weight: 600; letter-spacing: .1em; color: var(--accent-text); }
.view.view-in { animation: viewIn .7s var(--ease) both; }
@keyframes viewIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .5s; animation-timing-function: var(--ease); }
::view-transition-group(project-hero) { animation-duration: .85s; animation-timing-function: cubic-bezier(.22, 1, .36, 1); }
::view-transition-old(project-hero), ::view-transition-new(project-hero) { height: 100%; object-fit: cover; }
.nav { view-transition-name: site-nav; }

/* =====================================================================
   LIGHTBOX & DEV BAR
   ===================================================================== */
.lb { position: fixed; inset: 0; z-index: 90; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; background: rgba(24, 20, 17, .95); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); opacity: 0; transition: opacity .45s var(--ease); }
.lb.is-open { opacity: 1; }
.lb-top { display: flex; align-items: center; gap: 20px; padding: 18px var(--gutter); }
.lb-count { font-family: var(--serif); font-size: 21px; color: var(--accent-text); min-width: 72px; }
.lb-title { flex: 1; font-size: 11px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-stage { position: relative; display: grid; place-items: center; min-height: 0; padding: 0 clamp(12px, 8vw, 128px); overflow: hidden; touch-action: none; }
#lbImg { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; transition: opacity .35s var(--ease), transform .5s var(--ease); -webkit-user-select: none; user-select: none; }
#lbImg.is-out { opacity: 0; transform: translateX(var(--dx, 0px)) scale(.985); }
.lb-nav { position: absolute; top: 50%; margin-top: -24px; z-index: 2; }
.lb-prev { left: 20px; }
.lb-next { right: 20px; }
.lb-bottom { display: grid; justify-items: center; gap: 12px; padding: 12px var(--gutter) 20px; }
.lb-cap { font-family: var(--serif); font-size: 19px; color: var(--text-2); min-height: 1.5em; text-align: center; }
.lb-thumbs { display: flex; gap: 8px; max-width: 100%; overflow-x: auto; padding: 4px; scrollbar-width: none; }
.lb-thumbs::-webkit-scrollbar { display: none; }
.lb-thumbs button { flex: none; width: 66px; height: 46px; padding: 0; border: 1px solid transparent; overflow: hidden; background: #3A332D; opacity: .4; transition: opacity .3s, border-color .3s; }
.lb-thumbs button[aria-current="true"] { opacity: 1; border-color: var(--logo-gold); }
.lb-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.devbar { position: fixed; z-index: 80; bottom: 16px; left: 16px; display: flex; align-items: center; gap: 12px; padding: 8px 14px 8px 10px; border-radius: 999px; font-size: 12px; color: #F4EEE7; background: rgba(47, 41, 36, .85); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.dev-pill { font-size: 9px; font-weight: 700; letter-spacing: .16em; padding: 3px 8px; border-radius: 999px; color: #2F2924; background: repeating-linear-gradient(45deg, #EADFCF 0 6px, #C5AE96 6px 12px); }
.dev-prod { display: flex; align-items: center; gap: 8px; cursor: pointer; white-space: nowrap; }
.dev-prod input { accent-color: #B7A28A; width: 15px; height: 15px; }

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 1100px) {
  .nav-links, .nav-cta { display: none; }
  .nav-burger { display: block; margin-left: auto; }
  body[data-view="project"] .nav-back { margin-right: 0; margin-left: auto; }
  body[data-view="project"] .nav-burger { margin-left: 0; }
  .svc-grid { --cols: 2; }
  .steps { grid-template-columns: repeat(3, 1fr); row-gap: 48px; }
  .f-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .pgrid { --cols: 2; }
  .studio-media, .studio-copy, .contact-copy, .contact-art { grid-column: 1 / -1; }
  .studio-media { width: min(100%, 460px); margin-bottom: 48px; }
  .contact-art { width: min(100% - 14px, 460px); justify-self: end; }
  .studio-arcs { display: none; }
  .ph-intro .eyebrow, .ph-desc { grid-column: 1 / -1; }
  .ph-intro .eyebrow { margin-bottom: 22px; }
  .blk-feature .blk-media, .blk-feature.flip .blk-media, .blk-feature.is-portrait .blk-media, .blk-feature.is-portrait.flip .blk-media,
  .blk-feature .blk-text, .blk-feature.flip .blk-text { grid-column: 1 / -1; grid-row: auto; }
  .blk-feature .blk-text { margin-top: 26px; }
  .blk-full.is-portrait .blk-media { grid-column: 2 / span 10; }
}
@media (max-width: 680px) {
  :root { --fs-base: 16px; }
  .hero { height: auto; min-height: 92svh; }
  .hero-copy { position: relative; top: auto; padding: 128px 0 220px; }
  .hero-wash { background: linear-gradient(180deg, rgba(244, 238, 231, .9) 0%, rgba(244, 238, 231, .72) 42%, rgba(244, 238, 231, 0) 72%); }
  .hero[data-tone="dark"] .hero-wash { background: linear-gradient(180deg, rgba(20, 17, 14, .7) 0%, rgba(20, 17, 14, .4) 45%, rgba(20, 17, 14, 0) 75%); }
  .hero-feature { left: 0; right: auto; bottom: 64px; }
  .hero-sub br { display: none; }
  .svc-grid { --cols: 1; }
  .pgrid { --cols: 1; }
  .ph-viewall { margin-top: 18px; }
  .f-chips::-webkit-scrollbar { display: none; }
  .steps { grid-template-columns: 1fr; row-gap: 36px; }
  .blk-pair { flex-wrap: wrap; }
  .blk-pair .st-fig { flex-basis: 100%; }
  .ph-meta { grid-template-columns: 1fr 1fr; }
  .ph-meta > div { padding: 18px 12px 18px 0; }
  .ph-meta > div + div { padding-left: 12px; }
  .ph-meta > div:nth-child(odd) { border-left: 0; padding-left: 0; }
  .f-grid { grid-template-columns: 1fr; gap: 36px; }
  .lb-nav { display: none; }
  .devbar { left: 10px; bottom: 10px; }
  .nav-bar { gap: 10px; }
  .nav-word small { display: none; }
  body[data-view="project"] .nav-word { display: none; }
  .nav-back { font-size: 10px; letter-spacing: .14em; padding: 8px 6px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .pc:hover .pc-media img, .pc:focus-visible .pc-media img, .st-open:hover img, .ph-next:hover img { --zs: 1 !important; transform: none !important; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .ph-img, .hero-media img { transform: none !important; }
}

/* card helpers */
.c-list .c-row { grid-template-columns: 30px 1fr; }
.btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }

/* fixes from v4 QA */
.f-col .btn-gold, .f-col .btn-gold:hover { color: var(--brand-green); }
.arch-fallback img { width: 52%; height: auto; object-fit: contain; }
.hero-media .arch-fallback { background: var(--brand-green); place-items: center end; padding-right: clamp(24px, 12vw, 200px); }
.hero-media .arch-fallback img { width: clamp(160px, 18vw, 260px); height: auto; object-fit: contain; transform: none; opacity: 1; }
@media (max-width: 680px) { .hero-media .arch-fallback { place-items: end center; padding: 0 0 48px; } .hero-media .arch-fallback img { width: 120px; } }

/* =====================================================================
   COVER — real render + official logo (hero.is-cover)
   Image takes the right of the frame at full height and fades into the
   logo's own green, where the logo and headline sit — nothing covers the façade.
   ===================================================================== */
.hero.is-cover { height: min(100svh, 1000px); min-height: 620px; background: var(--brand-green); }
.hero.is-cover .hero-media { inset: 0 0 0 auto; width: 68%; }
.hero.is-cover .hero-media img { --hz: 1; object-position: 50% 30%; }
html.intro .hero.is-cover .hero-media img { --hz: 1.06; }
.hero.is-cover .hero-wash { left: auto; width: 68%; background:
  linear-gradient(90deg, rgba(4, 33, 39, 1) 0%, rgba(4, 33, 39, .7) 9%, rgba(4, 33, 39, 0) 30%),
  linear-gradient(180deg, rgba(4, 33, 39, .72) 0%, rgba(4, 33, 39, .3) 9%, rgba(4, 33, 39, 0) 16%),
  linear-gradient(0deg, rgba(4, 33, 39, .35) 0%, rgba(4, 33, 39, 0) 18%); }
.hero.is-cover .hero-inner { display: flex; align-items: center; }
.hero.is-cover .hero-copy { position: relative; top: auto; left: auto; bottom: auto; max-width: min(440px, 32vw); padding-top: 40px; }
.hero-logo { display: none; }
.hero.is-cover .hero-logo { display: block; position: relative; width: clamp(112px, 9vw, 150px); margin: 0 0 clamp(28px, 4svh, 44px); }
.hero.is-cover .hero-logo img { width: 100%; height: auto; }
.hero.is-cover .hero-title { font-size: clamp(40px, 4.4vw, 74px); color: #F4EEE7; }
.hero.is-cover .hero-title em { color: var(--logo-gold); }
.hero.is-cover .hero-rule { background: var(--logo-gold); opacity: 1; width: 64px; margin: 26px 0 18px; }
.hero.is-cover .hero-sub { color: rgba(244, 238, 231, .82); margin-bottom: 28px; }
.hero.is-cover .hero-feature { right: var(--gutter); }
.hero-logo { transition: opacity 1.4s var(--ease) .1s, transform 1.4s var(--ease) .1s; }
html.intro .hero-logo { opacity: 0; transform: translateY(10px); }
@media (max-width: 900px) {
  .hero.is-cover { height: auto; min-height: 100svh; display: flex; flex-direction: column; padding-top: 88px; }
  .hero.is-cover .hero-media { position: relative; inset: auto; width: 100%; height: min(48svh, 100vw); flex: none; }
  .hero.is-cover .hero-media img { object-position: 50% 0%; }
  .hero.is-cover .hero-wash { top: 88px; left: 0; width: 100%; height: min(48svh, 100vw); background:
    linear-gradient(0deg, rgba(4, 33, 39, 1) 0%, rgba(4, 33, 39, 0) 30%),
    linear-gradient(180deg, rgba(4, 33, 39, .35) 0%, rgba(4, 33, 39, 0) 10%); }
  .hero.is-cover .hero-inner { position: relative; height: auto; z-index: 2; display: block; }
  .hero.is-cover .hero-copy { max-width: none; padding: 0 0 40px; margin-top: -30px; }
  .hero.is-cover .hero-logo { width: 78px; margin-bottom: 16px; }
  .hero.is-cover .hero-title { font-size: clamp(36px, 10vw, 50px); }
  .hero.is-cover .hero-rule { margin: 18px 0 14px; }
  .hero.is-cover .hero-sub { margin-bottom: 22px; font-size: 11.5px; }
  .hero.is-cover .hero-feature { display: none; }
}

/* =====================================================================
   PROJECT PAGE — full-composition hero + editorial gallery rows
   ===================================================================== */
.ph.is-full { height: auto; min-height: 0; background: var(--brand-green); padding-top: 96px; }
.ph.is-full .ph-media { position: relative; inset: auto; height: min(62svh, calc((100vw - 2 * var(--gutter)) / var(--ar))); width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.ph.is-full .ph-media .img-shell { background: transparent; }
.ph.is-full .ph-img { height: 100%; object-fit: contain; transform: none; will-change: auto; }
.ph.is-full .ph-shade { display: none; }
.ph.is-full .ph-head { position: relative; bottom: auto; padding: clamp(28px, 4vw, 48px) 0 clamp(40px, 5vw, 64px); }
.ph.is-full .ph-title { font-size: clamp(42px, 5.4vw, 88px); max-width: 20ch; }
.ph-sub { margin-top: 14px; font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--logo-gold); }
.story .row { display: flex; gap: var(--gap); align-items: flex-start; }
.story .row .st-fig { flex: var(--r) 1 0%; min-width: 0; }
.row-large { width: min(100%, 66.66%); margin-inline: auto; }
.row-wide { width: 100%; }
.row-portrait { width: min(100%, 42%); margin-inline: auto; }
.row-portrait-pair { width: min(100%, 66.66%); margin-inline: auto; }
.row-native { width: min(100%, var(--nw, 100%), 46%); margin-inline: auto; }
@media (max-width: 680px) {
  .story .row { flex-direction: column; width: 100%; }
  .story .row .st-fig { flex: none; width: 100%; }
  .row-native { width: min(100%, var(--nw, 100%)); }
  .ph.is-full { padding-top: 84px; }
  .ph.is-full .ph-media { width: 100%; height: calc(100vw / var(--ar)); }
}

/* =====================================================================
   v5.2 — INTERACTION & DETAIL LAYER
   ===================================================================== */
/* Recent Work — clear "View project", whole card clickable, gentle zoom */
.pc-cap { grid-template-columns: minmax(0, 1fr); padding-bottom: 18px; }
.pc-view { grid-column: 1; display: inline-flex; align-items: center; gap: 12px; justify-self: start; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); width: 100%; font-size: 10.5px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--accent-text); }
.pc-view .pc-arrow { grid-row: auto; width: 26px; height: 11px; stroke: currentColor; }
.pc-media img { transition: opacity .8s, transform .9s var(--ease); }
@media (hover: hover) {
  .pc:hover .pc-media img { --zs: 1.06; }
  .pc:hover .pc-view .pc-arrow { transform: translateX(6px); }
}
.pc:focus-visible .pc-media img { --zs: 1.06; }
.pc:focus-visible .pc-view .pc-arrow { transform: translateX(6px); }

/* Gallery — make full-screen affordance visible */
.st-open { position: relative; }
.st-open::after { content: ""; position: absolute; right: 12px; bottom: 12px; width: 34px; height: 34px; border-radius: 50%; background: rgba(250, 246, 240, .88) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232F2924' stroke-width='1.4'%3E%3Cpath d='M14 4h6v6M10 20H4v-6M20 4l-7 7M4 20l7-7'/%3E%3C/svg%3E") center / 15px no-repeat; opacity: 0; transform: scale(.85); transition: opacity .35s var(--ease), transform .35s var(--ease); pointer-events: none; }
@media (hover: hover) { .st-open:hover::after { opacity: 1; transform: none; } }
.st-open:focus-visible::after { opacity: 1; transform: none; }
#lbImg.is-drag { transition: none; }

/* Next project — a real preview */
.ph-next-wrap { background: var(--linen); padding: clamp(56px, 6vw, 96px) 0; }
.ph-next { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); align-items: center; color: var(--text); text-decoration: none; }
.ph-next-copy { grid-column: 1 / span 4; display: grid; gap: 14px; justify-items: start; }
.ph-next-title { font-family: var(--serif); font-size: clamp(36px, 4vw, 60px); line-height: 1.05; }
.ph-next-sub { font-family: var(--serif); font-style: italic; font-size: 19px; color: var(--text-2); }
.ph-next-cta { display: inline-flex; align-items: center; gap: 12px; margin-top: 12px; padding-bottom: 6px; border-bottom: 1px solid currentColor; font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--accent-text); }
.ph-next-cta .pc-arrow { width: 26px; height: 11px; stroke: currentColor; transition: transform .45s var(--ease); }
.ph-next-media { grid-column: 6 / span 7; position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--ph); }
.ph-next-media .img-shell { position: absolute; inset: 0; }
.ph-next-media img { width: 100%; height: 100%; object-fit: cover; object-position: var(--focus, 50% 50%); transform: scale(var(--zs, 1)); transition: opacity .8s, transform .9s var(--ease); }
@media (hover: hover) { .ph-next:hover img { --zs: 1.05; } .ph-next:hover .ph-next-cta .pc-arrow { transform: translateX(6px); } }
.ph-next:focus-visible { outline-offset: 10px; }
.ph-next:focus-visible img { --zs: 1.05; }

/* Contact — the arch rises, its gold echo follows, the logo settles */
.arch-echo { position: absolute; inset: -14px 14px 14px -14px; border: 1px solid rgba(164, 124, 80, .55); border-bottom: 0; border-radius: var(--arch); pointer-events: none; clip-path: inset(0); transition: clip-path 1s var(--ease) .3s; }
.contact-img { clip-path: inset(0); transition: clip-path 1s var(--ease); }
.contact-img .arch-fallback img { transition: opacity .8s var(--ease) .4s, transform 1s var(--ease) .4s; }
.contact-art.rv-wait .contact-img { clip-path: inset(100% 0 0 0); }
.contact-art.rv-wait .arch-echo { clip-path: inset(100% 0 0 0); }
.contact-art.rv-wait .contact-img .arch-fallback img { opacity: 0; transform: translateY(16px) scale(.96); }

@media (max-width: 900px) {
  .ph-next-copy, .ph-next-media { grid-column: 1 / -1; }
  .ph-next-media { order: -1; margin-bottom: 28px; }
}
@media (max-width: 680px) {
  .ph-next-wrap { padding: 48px 0 56px; }
}
/* lightbox never wider than the screen (long thumbnail strips) */
.lb { grid-template-columns: minmax(0, 1fr); }
.lb-bottom { min-width: 0; }

/* =====================================================================
   v5.3 — SERVICES (7) & TURNKEY SLIDE
   ===================================================================== */
.svc > p { max-width: 32ch; }
.svc h3 { font-size: 19px; }
@media (min-width: 1101px) and (max-width: 1280px) { .svc-grid { --cols: 3; } }

.tk { position: relative; display: grid; grid-template-columns: minmax(0, 11fr) minmax(0, 9fr); min-height: min(88svh, 780px); background: var(--charcoal); color: #F4EEE7; overflow: hidden; }
.tk-media { position: relative; min-height: 560px; overflow: hidden; background: #3A332D; clip-path: inset(0); transition: clip-path 1.1s var(--ease); }
.tk-media .img-shell { position: absolute; inset: 0; }
.tk-media img { width: 100%; height: 100%; object-fit: cover; object-position: var(--focus, 50% 50%); transform: scale(var(--zs, 1)); transition: opacity .8s, transform 1.4s var(--ease); }
.tk.rv-wait .tk-media { clip-path: inset(0 100% 0 0); }
.tk.rv-wait .tk-media img { --zs: 1.08; }
.nw { white-space: nowrap; }
.tk-copy { align-self: center; padding: clamp(56px, 7vw, 112px) clamp(28px, 6vw, 104px); max-width: 640px; }
.tk-eyebrow { color: var(--logo-gold); }
.tk-title { margin-top: 20px; color: #F4EEE7; font-size: clamp(38px, 4vw, 60px); line-height: 1.06; }
.tk-rule { display: block; width: 64px; height: 1px; margin: 28px 0; background: var(--logo-gold); transform-origin: left; }
.tk-rule.rv-wait { opacity: 1; transform: scaleX(0); }
.tk-body { color: #D9D0C3; font-size: var(--fs-lead); line-height: 1.85; max-width: 50ch; }
.tk-cta { margin-top: 40px; }
.tk-cta:hover { background: #DCCDB6; color: var(--brand-green); }

@media (max-width: 900px) {
  .tk { grid-template-columns: 1fr; min-height: 0; }
  .tk-media { min-height: 0; aspect-ratio: 1 / 1; max-height: 78svh; width: 100%; }
  .tk-copy { max-width: none; padding: 48px var(--gutter) 64px; }
}
@media (max-width: 680px) {
  .tk-cta { display: flex; width: 100%; height: auto; min-height: 56px; padding: 14px 20px; white-space: normal; text-align: center; line-height: 1.5; }
}
