/* EVRELIO Studio — site styles (v2) */

:root {
  --charcoal: #101212;
  --charcoal-2: #171a1a;
  --slate: #292d2e;
  --ivory: #f3f0e9;
  --ivory-deep: #e9e4d9;
  --paper: #fbf9f4;
  --champagne: #ab9173;
  --champagne-soft: #c9b79f;
  --ink: #1a1c1c;
  --ink-soft: #565a59;
  --line: rgba(16, 18, 18, 0.14);
  --line-dark: rgba(243, 240, 233, 0.14);
  --mute-dark: rgba(243, 240, 233, 0.66);

  --serif: "Cormorant Garamond", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --sans: "Jost", "Avenir Next", "Helvetica Neue", Helvetica, Arial, sans-serif;

  --wrap: 1240px;
  --gutter: clamp(20px, 5vw, 56px);
  --section: clamp(84px, 12vw, 168px);
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
img, svg, video { display: block; max-width: 100%; }
::selection { background: var(--champagne); color: var(--charcoal); }
:focus-visible { outline: 2px solid var(--champagne); outline-offset: 3px; }
[id] { scroll-margin-top: 84px; }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }

.skip { position: absolute; left: 16px; top: -60px; z-index: 200; background: var(--ivory); color: var(--charcoal); padding: 10px 16px; text-decoration: none; }
.skip:focus { top: 16px; }

/* ---------- Type ---------- */

h1, h2 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.012em; text-wrap: balance; }
h1 { font-size: clamp(3.3rem, 8.6vw, 7.4rem); line-height: 0.95; }
h2 { font-size: clamp(2.2rem, 5vw, 4.1rem); line-height: 1.04; }
h3 { font-family: var(--serif); font-weight: 500; font-size: 1.6rem; line-height: 1.2; }
em { font-style: italic; color: var(--champagne); }

.eyebrow {
  display: flex; align-items: center; gap: 14px;
  font-size: 0.72rem; font-weight: 500; letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--champagne); margin-bottom: 26px;
}
.eyebrow::before { content: ""; width: 34px; height: 1px; background: currentColor; flex: none; }
.num { font-family: var(--serif); font-size: 1.05rem; color: var(--champagne); letter-spacing: 0.08em; font-variant-numeric: lining-nums; }

/* ---------- Progress + header ---------- */

.progress { position: fixed; left: 0; top: 0; height: 2px; width: 100%; z-index: 120; background: var(--champagne); transform: scaleX(0); transform-origin: 0 50%; pointer-events: none; }

.site-header {
  position: fixed; left: 0; right: 0; top: 0; z-index: 100;
  color: var(--ivory);
  transition: transform 0.45s var(--ease), background 0.3s, border-color 0.3s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled { background: rgba(16, 18, 18, 0.86); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom-color: var(--line-dark); }
.site-header.hidden { transform: translateY(-100%); }
.header-row { display: flex; align-items: center; justify-content: space-between; min-height: 80px; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; color: inherit; }
.mark { width: 36px; height: 36px; color: var(--champagne); flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-weight: 400; font-size: 1.04rem; letter-spacing: 0.42em; }
.brand-sub { font-size: 0.6rem; font-weight: 400; letter-spacing: 0.5em; text-transform: uppercase; color: var(--champagne-soft); margin-top: 6px; }

.site-nav { display: flex; align-items: center; gap: clamp(18px, 2.6vw, 38px); }
.site-nav a { position: relative; text-decoration: none; font-size: 0.78rem; font-weight: 400; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(243, 240, 233, 0.8); padding: 8px 0; transition: color 0.2s; }
.site-nav a:not(.nav-cta)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: var(--champagne); transform: scaleX(0); transform-origin: 100% 50%; transition: transform 0.35s var(--ease); }
.site-nav a:hover { color: var(--ivory); }
.site-nav a:hover::after { transform: scaleX(1); transform-origin: 0 50%; }
.site-nav .nav-cta { border: 1px solid var(--champagne); color: var(--ivory); padding: 11px 20px; transition: background 0.25s, color 0.25s; }
.site-nav .nav-cta:hover { background: var(--champagne); color: var(--charcoal); }

.nav-toggle { display: none; align-items: center; gap: 12px; background: none; border: 0; color: inherit; cursor: pointer; font: inherit; font-size: 0.75rem; font-weight: 400; letter-spacing: 0.2em; text-transform: uppercase; padding: 12px 0; }
.nav-toggle-bars { display: grid; gap: 6px; width: 24px; }
.nav-toggle-bars i { display: block; height: 1px; background: currentColor; transition: transform 0.25s; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars i:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars i:last-child { transform: translateY(-3.5px) rotate(-45deg); }

@media (max-width: 900px) {
  .header-row { min-height: 68px; }
  .nav-toggle { display: inline-flex; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; background: var(--charcoal); border-bottom: 1px solid var(--line-dark); padding: 8px var(--gutter) 28px; }
  .site-nav.open { display: flex; }
  .site-header.nav-open { background: var(--charcoal); }
  .site-nav a { padding: 16px 0; border-bottom: 1px solid var(--line-dark); font-size: 0.85rem; }
  .site-nav a::after { display: none; }
  .site-nav .nav-cta { margin-top: 22px; text-align: center; padding: 15px 18px; border-bottom: 1px solid var(--champagne); }
}

/* ---------- Buttons + links ---------- */

.btn {
  position: relative; display: inline-flex; align-items: center; gap: 14px; text-decoration: none; cursor: pointer; border: 1px solid transparent;
  font-family: var(--sans); font-size: 0.78rem; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase;
  padding: 18px 30px; overflow: hidden; isolation: isolate; transition: color 0.35s, border-color 0.35s;
}
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; transform: translateY(101%); transition: transform 0.45s var(--ease); }
.btn:hover::before { transform: none; }
.btn .arrow { transition: transform 0.35s var(--ease); }
.btn:hover .arrow { transform: translateX(5px); }
.btn-solid { background: var(--champagne); color: var(--charcoal); }
.btn-solid::before { background: var(--ivory); }
.btn-line { border-color: rgba(243, 240, 233, 0.3); color: var(--ivory); }
.btn-line::before { background: var(--ivory); }
.btn-line:hover { color: var(--charcoal); border-color: var(--ivory); }
.btn-dark { background: var(--charcoal); color: var(--ivory); }
.btn-dark::before { background: var(--champagne); }
.btn-dark:hover { color: var(--charcoal); }
.btn-outline { border-color: var(--ink); color: var(--ink); }
.btn-outline::before { background: var(--charcoal); }
.btn-outline:hover { color: var(--ivory); }
.btn[disabled] { opacity: 0.55; cursor: default; }

.textlink { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-size: 0.78rem; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; padding-bottom: 6px; border-bottom: 1px solid var(--champagne); }
.textlink .arrow { transition: transform 0.35s var(--ease); }
.textlink:hover .arrow { transform: translateX(6px); }

/* ---------- Sections ---------- */

.section { padding: var(--section) 0; position: relative; }
.dark { background: var(--charcoal); color: var(--ivory); }
.tint { background: var(--ivory-deep); }
.section-head { max-width: 860px; margin-bottom: clamp(48px, 7vw, 92px); }
.section-head.split { max-width: none; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 28px; }
.section-head.split h2 { max-width: 760px; }
.section-note { margin-top: 24px; color: var(--ink-soft); max-width: 620px; }
.dark .section-note { color: var(--mute-dark); }

.grain::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Browser frame ---------- */

.browser { border-radius: 12px; overflow: hidden; background: #1c1f1f; border: 1px solid rgba(243, 240, 233, 0.12); box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.65), 0 12px 30px -12px rgba(0, 0, 0, 0.4); }
.browser-bar { display: flex; align-items: center; gap: 14px; padding: 11px 14px; }
.browser-dots { display: flex; gap: 6px; }
.browser-dots i { width: 9px; height: 9px; border-radius: 50%; background: rgba(243, 240, 233, 0.2); }
.browser-url { flex: 1; max-width: 300px; margin: 0 auto; text-align: center; font-size: 0.68rem; font-weight: 400; letter-spacing: 0.06em; color: rgba(243, 240, 233, 0.6); background: rgba(243, 240, 233, 0.07); border-radius: 6px; padding: 5px 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.browser-bar::after { content: ""; width: 39px; }
.browser img, .browser video { width: 100%; height: auto; }

/* ---------- Hero ---------- */

.hero { position: relative; padding: clamp(150px, 19vw, 230px) 0 0; overflow: hidden; }
.hero-glow { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(60% 55% at 78% 34%, rgba(171, 145, 115, 0.23), transparent 70%), radial-gradient(40% 40% at 8% 90%, rgba(171, 145, 115, 0.1), transparent 70%); }
.hero-lines { position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(to right, var(--line-dark) 1px, transparent 1px); background-size: calc(100% / 6) 100%; opacity: 0.45; -webkit-mask-image: linear-gradient(to bottom, #000, transparent 85%); mask-image: linear-gradient(to bottom, #000, transparent 85%); }
.hero > .wrap { position: relative; z-index: 2; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(36px, 5vw, 80px); align-items: center; }

.status { display: inline-flex; align-items: center; gap: 12px; font-size: 0.72rem; font-weight: 400; letter-spacing: 0.2em; text-transform: uppercase; color: var(--mute-dark); border: 1px solid var(--line-dark); border-radius: 100px; padding: 9px 18px 9px 14px; margin-bottom: 34px; }
.status i { width: 8px; height: 8px; border-radius: 50%; background: #8fbf8a; box-shadow: 0 0 0 0 rgba(143, 191, 138, 0.6); animation: pulse 2.4s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(143, 191, 138, 0); } 100% { box-shadow: 0 0 0 0 rgba(143, 191, 138, 0); } }

.hero h1 .line { display: block; overflow: hidden; padding-bottom: 0.14em; margin-bottom: -0.14em; }
.hero h1 .line > span { display: block; transform: translateY(110%); animation: rise 1.1s var(--ease) forwards; }
.hero h1 .line:nth-child(2) > span { animation-delay: 0.1s; }
.hero h1 .line:nth-child(3) > span { animation-delay: 0.2s; }
@keyframes rise { to { transform: none; } }
.fade-up { opacity: 0; transform: translateY(16px); animation: fadeUp 1s var(--ease) forwards; animation-delay: var(--d, 0.45s); }
@keyframes fadeUp { to { opacity: 1; transform: none; } }

.hero .lede { margin-top: 36px; max-width: 520px; font-size: 1.14rem; color: var(--mute-dark); }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 44px; }

.hero-stage { position: relative; perspective: 1400px; padding-left: 9%; }
.hero-tilt { position: relative; transform: rotateY(calc(-9deg + var(--ry, 0deg))) rotateX(calc(4deg + var(--rx, 0deg))); transform-style: preserve-3d; transition: transform 0.5s var(--ease); }
.hero-phone { position: absolute; left: -10%; bottom: -13%; width: 27%; filter: drop-shadow(0 30px 34px rgba(0, 0, 0, 0.55)); transform: translateZ(70px) rotate(-7deg); animation: float 7s ease-in-out infinite; }
@keyframes float { 50% { transform: translateZ(70px) rotate(-5deg) translateY(-12px); } }
.hero-chip { position: absolute; right: -4%; top: 16%; transform: translateZ(90px); background: rgba(243, 240, 233, 0.94); color: var(--charcoal); padding: 13px 18px; border-radius: 10px; box-shadow: 0 20px 40px -14px rgba(0, 0, 0, 0.55); font-size: 0.74rem; font-weight: 400; line-height: 1.4; }
.hero-chip b { display: block; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; font-size: 0.62rem; color: var(--champagne); margin-bottom: 2px; }
.hero-caption { margin-top: clamp(54px, 7vw, 84px); display: flex; justify-content: flex-end; gap: 14px; font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--mute-dark); }
.hero-caption a { color: var(--ivory); text-decoration: none; border-bottom: 1px solid var(--champagne); }

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-stage { margin: 26px 5% 0 4%; }
  .hero-caption { justify-content: flex-start; }
}

/* ---------- Marquee ---------- */

.marquee { position: relative; z-index: 2; margin-top: clamp(64px, 8vw, 110px); border-top: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); overflow: hidden; padding: 24px 0; }
.marquee-track { display: flex; width: max-content; animation: marquee 44s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee ul { display: flex; align-items: center; flex: none; }
.marquee li { display: flex; align-items: center; font-family: var(--serif); font-size: clamp(1.5rem, 2.6vw, 2.2rem); font-style: italic; color: rgba(243, 240, 233, 0.86); white-space: nowrap; }
.marquee li::after { content: ""; width: 8px; height: 8px; margin: 0 clamp(26px, 3.4vw, 50px); background: var(--champagne); transform: rotate(45deg); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Featured case ---------- */

.case { display: block; text-decoration: none; color: inherit; }
.case-media { position: relative; overflow: hidden; aspect-ratio: 16 / 8.2; background: var(--charcoal); }
.case-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.case:hover .case-media img { transform: scale(1.045); }
.case-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(16, 18, 18, 0.72), transparent 55%); }
.case-badge { position: absolute; z-index: 2; left: clamp(18px, 3vw, 40px); top: clamp(18px, 3vw, 40px); background: var(--ivory); color: var(--charcoal); font-size: 0.66rem; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; padding: 9px 14px; }
.case-over { position: absolute; z-index: 2; left: clamp(18px, 3vw, 40px); right: clamp(18px, 3vw, 40px); bottom: clamp(18px, 3vw, 40px); display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; color: var(--ivory); }
.case-title { font-family: var(--serif); font-size: clamp(2.2rem, 6vw, 5.4rem); line-height: 0.95; }
.case-go { flex: none; width: clamp(58px, 7vw, 96px); height: clamp(58px, 7vw, 96px); border-radius: 50%; border: 1px solid rgba(243, 240, 233, 0.6); display: grid; place-items: center; font-size: 1.5rem; transition: background 0.35s, color 0.35s, transform 0.5s var(--ease); }
.case:hover .case-go { background: var(--ivory); color: var(--charcoal); transform: rotate(-45deg); }
.case-info { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 80px); padding-top: clamp(26px, 3vw, 40px); }
.case-info p { color: var(--ink-soft); max-width: 560px; font-size: 1.06rem; }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.facts > div { border-top: 1px solid var(--ink); padding-top: 14px; }
.facts dt { font-family: var(--serif); font-size: clamp(1.9rem, 3vw, 2.7rem); line-height: 1; font-variant-numeric: lining-nums; }
.facts dd { margin-top: 8px; font-size: 0.68rem; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-soft); }
.dark .facts > div { border-top-color: var(--line-dark); }
.dark .facts dd { color: var(--mute-dark); }
@media (max-width: 860px) { .case-info { grid-template-columns: 1fr; } .case-media { aspect-ratio: 4 / 3.4; } }
@media (max-width: 480px) { .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 26px; } }

/* ---------- Concept studies ---------- */

.sub-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 12px 40px; margin: clamp(72px, 9vw, 124px) 0 clamp(28px, 4vw, 48px); padding-top: 26px; border-top: 1px solid var(--line); }
.sub-head h3 { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 400; }
.sub-head p { color: var(--ink-soft); max-width: 520px; font-size: 0.97rem; }
.work { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(22px, 3vw, 40px); }
.study-tag { margin: 22px 0 8px; font-size: 0.68rem; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; color: var(--champagne); }
.study h4 { font-family: var(--serif); font-weight: 500; font-size: 1.5rem; line-height: 1.2; margin-bottom: 8px; }
.study > p:last-child { color: var(--ink-soft); font-size: 0.97rem; }
.frame { aspect-ratio: 4 / 3.2; display: flex; flex-direction: column; border: 1px solid var(--line); overflow: hidden; transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease); }
.study:hover .frame { transform: translateY(-8px); box-shadow: 0 30px 50px -28px rgba(16, 18, 18, 0.5); }
.frame-bar { display: flex; gap: 5px; padding: 9px 11px; background: rgba(0, 0, 0, 0.08); }
.frame-bar i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: 0.35; }
.frame-body { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 12px; padding: 9% 10%; }
.f-kicker { font-size: 0.56rem; font-weight: 500; letter-spacing: 0.24em; text-transform: uppercase; opacity: 0.7; }
.f-title { font-family: var(--serif); font-size: clamp(1.4rem, 2.4vw, 2rem); line-height: 1.05; }
.f-btn { align-self: flex-start; font-size: 0.54rem; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; padding: 8px 13px; border: 1px solid currentColor; }
.frame b { display: block; }
.frame-a { background: #1d1a17; color: #eadfce; }
.frame-a .f-btn { background: #b4573a; border-color: #b4573a; color: #fff; }
.frame-a .f-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 6px; }
.frame-a .f-row b { aspect-ratio: 1; background: #3a322b; }
.frame-a .f-row b:nth-child(2) { background: #6b4a35; }
.frame-b { background: #f7f5f0; color: #1b2a3a; }
.frame-b .f-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.frame-b .f-cols b { height: 34px; border-top: 1px solid #1b2a3a; background: linear-gradient(#1b2a3a22, #1b2a3a22) 0 12px / 80% 3px no-repeat, linear-gradient(#1b2a3a22, #1b2a3a22) 0 22px / 55% 3px no-repeat; }
.frame-b .f-btn { background: #1b2a3a; color: #f7f5f0; }
.frame-c { background: #dfe3dc; color: #23201c; }
.frame-c .frame-body { justify-content: space-between; }
.frame-c .f-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; flex: 1; }
.frame-c .f-grid b { background: #c5ccc0; }
.frame-c .f-grid b:nth-child(2) { background: #8f9b88; }
.frame-c .f-grid b:nth-child(3) { background: #b79a7c; }
.frame-c .f-grid b:nth-child(4) { background: #23201c; }
.frame-c .f-btn { background: #23201c; color: #e6e1d6; }
@media (max-width: 900px) { .work { grid-template-columns: 1fr; gap: 48px; } .frame { aspect-ratio: 4 / 2.6; } }

/* ---------- Services ---------- */

.svc-list { border-top: 1px solid var(--line-dark); }
.svc { position: relative; display: grid; grid-template-columns: 70px minmax(0, 1fr) minmax(0, 1.15fr) 56px; gap: clamp(16px, 3vw, 48px); align-items: start; padding: clamp(30px, 4vw, 52px) 0; border-bottom: 1px solid var(--line-dark); transition: padding 0.5s var(--ease); }
.svc::before { content: ""; position: absolute; inset: 0 calc(var(--gutter) * -1); background: linear-gradient(90deg, rgba(171, 145, 115, 0.13), transparent 70%); opacity: 0; transition: opacity 0.5s; pointer-events: none; }
.svc:hover::before { opacity: 1; }
.svc > * { position: relative; }
.svc h3 { font-size: clamp(1.8rem, 3.2vw, 2.7rem); font-weight: 400; line-height: 1.05; transition: color 0.3s, transform 0.5s var(--ease); }
.svc:hover h3 { color: var(--champagne-soft); transform: translateX(8px); }
.svc p { color: var(--mute-dark); max-width: 520px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.chips li { font-size: 0.7rem; font-weight: 400; letter-spacing: 0.1em; text-transform: uppercase; border: 1px solid var(--line-dark); border-radius: 100px; padding: 6px 14px; color: rgba(243, 240, 233, 0.82); }
.svc-icon { width: 44px; height: 44px; color: var(--champagne); justify-self: end; }
@media (max-width: 860px) {
  .svc { grid-template-columns: 44px minmax(0, 1fr); }
  .svc > div { grid-column: 2; }
  .svc-icon { display: none; }
}

.stack { margin-top: clamp(56px, 7vw, 96px); display: grid; grid-template-columns: minmax(0, 0.5fr) minmax(0, 1.5fr); gap: 28px; align-items: start; }
.stack-label { font-size: 0.72rem; font-weight: 500; letter-spacing: 0.24em; text-transform: uppercase; color: var(--champagne); padding-top: 12px; }
.stack ul { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line-dark); border-left: 1px solid var(--line-dark); }
.stack li { border-right: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); padding: 22px 18px; font-family: var(--serif); font-size: 1.25rem; transition: background 0.3s, color 0.3s; }
.stack li:hover { background: var(--champagne); color: var(--charcoal); }
.stack li small { display: block; font-family: var(--sans); font-size: 0.64rem; letter-spacing: 0.18em; text-transform: uppercase; opacity: 0.65; margin-top: 4px; }
@media (max-width: 860px) { .stack { grid-template-columns: 1fr; } .stack ul { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Process ---------- */

.process-grid { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(36px, 7vw, 120px); align-items: start; }
.process-lead { position: sticky; top: 120px; }
.process-lead p:not(.eyebrow) { margin-top: 24px; color: var(--ink-soft); max-width: 400px; }
.process-lead .btn { margin-top: 34px; }
.process { position: relative; padding-left: clamp(40px, 5vw, 64px); }
.process::before, .process-fill { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 1px; background: var(--line); }
.process-fill { background: var(--champagne); bottom: auto; height: calc((100% - 16px) * var(--p, 0)); }
.process li { position: relative; padding-bottom: clamp(44px, 6vw, 76px); }
.process li:last-child { padding-bottom: 0; }
.process li::before { content: ""; position: absolute; left: calc(clamp(40px, 5vw, 64px) * -1); top: 6px; width: 15px; height: 15px; border: 1px solid var(--champagne); background: var(--ivory); transform: rotate(45deg); transition: background 0.4s; }
.process li.on::before { background: var(--champagne); }
.process h3 { font-size: clamp(1.8rem, 3vw, 2.5rem); font-weight: 400; margin: 8px 0 12px; }
.process p { color: var(--ink-soft); max-width: 520px; }
.process .deliver { margin-top: 16px; font-size: 0.7rem; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink); }
.process .deliver span { color: var(--champagne); margin-right: 10px; }
@media (max-width: 860px) { .process-grid { grid-template-columns: 1fr; } .process-lead { position: static; } }

/* ---------- Pricing ---------- */

.pricing { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); align-items: stretch; }
.price { display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line); padding: clamp(28px, 3.2vw, 44px); transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease); }
.price:hover { transform: translateY(-8px); box-shadow: 0 34px 60px -34px rgba(16, 18, 18, 0.45); }
.price.is-featured { background: var(--charcoal); color: var(--ivory); border-color: var(--charcoal); }
.price h3 { font-family: var(--sans); font-size: 0.74rem; font-weight: 500; letter-spacing: 0.24em; text-transform: uppercase; color: var(--champagne); }
.price .amount { font-family: var(--serif); font-size: clamp(3rem, 5vw, 4.2rem); line-height: 1; margin: 26px 0 16px; font-variant-numeric: lining-nums; }
.price .amount small { font-family: var(--sans); font-size: 0.72rem; font-weight: 400; letter-spacing: 0.2em; text-transform: uppercase; opacity: 0.6; margin-right: 6px; }
.price > p:not(.amount) { color: var(--ink-soft); font-size: 0.97rem; }
.price.is-featured > p:not(.amount) { color: var(--mute-dark); }
.price ul { margin: 26px 0 32px; flex: 1; }
.price li { position: relative; padding: 11px 0 11px 28px; border-top: 1px solid var(--line); font-size: 0.95rem; }
.price.is-featured li { border-top-color: var(--line-dark); }
.price li::before { content: ""; position: absolute; left: 2px; top: 1.15em; width: 11px; height: 6px; border-left: 1px solid var(--champagne); border-bottom: 1px solid var(--champagne); transform: rotate(-45deg); }
.price .btn { justify-content: center; }
.extras { margin-top: clamp(36px, 5vw, 60px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); }
.extras > div { border-top: 1px solid var(--ink); padding-top: 16px; }
.extras dt { font-size: 0.95rem; color: var(--ink-soft); }
.extras dd { font-family: var(--serif); font-size: 1.7rem; font-variant-numeric: lining-nums; }
.fineprint { margin-top: 30px; font-size: 0.86rem; color: var(--ink-soft); }
@media (max-width: 900px) { .pricing, .extras { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */

.faq-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(36px, 7vw, 120px); align-items: start; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 26px 0; font-family: var(--serif); font-size: clamp(1.3rem, 2vw, 1.6rem); line-height: 1.2; transition: color 0.25s; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--champagne); }
.faq summary::after { content: ""; flex: none; width: 15px; height: 15px; background: linear-gradient(currentColor, currentColor) center / 100% 1px no-repeat, linear-gradient(currentColor, currentColor) center / 1px 100% no-repeat; transition: transform 0.4s var(--ease); }
.faq details[open] summary::after { transform: rotate(135deg); }
.faq details p { padding: 0 40px 28px 0; color: var(--ink-soft); max-width: 620px; }
@media (max-width: 860px) { .faq-grid { grid-template-columns: 1fr; } }

/* ---------- Studio ---------- */

.studio { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(32px, 7vw, 120px); }
.studio-body .large { font-family: var(--serif); font-size: clamp(1.6rem, 2.8vw, 2.3rem); line-height: 1.26; margin-bottom: 24px; }
.studio-body > p:not(.large) { color: var(--mute-dark); max-width: 620px; }
.principles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 2.6vw, 40px); margin-top: 60px; }
.principles > div { border-top: 1px solid var(--champagne); padding-top: 22px; }
.principles h3 { margin-bottom: 10px; font-size: 1.45rem; }
.principles p { color: var(--mute-dark); font-size: 0.97rem; }
@media (max-width: 860px) { .studio { grid-template-columns: 1fr; } .principles { grid-template-columns: 1fr; } }

/* ---------- Contact ---------- */

.contact { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(36px, 6vw, 96px); align-items: start; }
.contact-lead h2 { font-size: clamp(2.6rem, 6vw, 5rem); }
.contact-lead > p:not(.eyebrow) { margin-top: 24px; color: var(--ink-soft); max-width: 420px; }
.contact-lead a { color: var(--ink); text-decoration-color: var(--champagne); text-underline-offset: 4px; }
.contact-place { font-size: 0.85rem; letter-spacing: 0.04em; }
.form { background: var(--paper); border: 1px solid var(--line); padding: clamp(24px, 4vw, 52px); box-shadow: 0 40px 70px -50px rgba(16, 18, 18, 0.5); }
.field { margin-bottom: 22px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
label { display: block; font-size: 0.7rem; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: 9px; }
.opt { font-weight: 300; letter-spacing: 0.08em; text-transform: none; color: var(--ink-soft); margin-left: 6px; }
input, select, textarea { width: 100%; font: inherit; font-size: 1rem; font-weight: 400; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 0; padding: 14px 15px; -webkit-appearance: none; appearance: none; transition: border-color 0.2s, box-shadow 0.2s; }
select { background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 20px) 55%, calc(100% - 15px) 55%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
textarea { resize: vertical; min-height: 130px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--champagne); box-shadow: 0 0 0 1px var(--champagne); }
[aria-invalid="true"] { border-color: #a4402f; }
.error { margin-top: 7px; font-size: 0.86rem; font-weight: 400; color: #a4402f; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form .btn { width: 100%; justify-content: center; }
.form-status { margin-top: 16px; font-size: 0.95rem; font-weight: 400; min-height: 1.6em; }
.form-status.ok { color: #3f6247; }
.form-status.bad { color: #a4402f; }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .field-row { grid-template-columns: 1fr; gap: 0; } }

/* ---------- Footer ---------- */

.site-footer { padding: clamp(64px, 8vw, 110px) 0 28px; overflow: hidden; position: relative; }
.footer-top { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 0.6fr)); gap: 40px; }
.footer-cta { font-family: var(--serif); font-size: clamp(2rem, 4.4vw, 3.6rem); line-height: 1.05; max-width: 560px; }
.footer-cta a { color: var(--champagne-soft); font-style: italic; text-decoration: none; border-bottom: 1px solid currentColor; }
.footer-col h4 { font-size: 0.68rem; font-weight: 500; letter-spacing: 0.24em; text-transform: uppercase; color: var(--champagne); margin-bottom: 18px; }
.footer-col a, .footer-col span { display: block; text-decoration: none; color: rgba(243, 240, 233, 0.78); padding: 4px 0; }
.footer-col a:hover { color: var(--ivory); }
.footer-word { margin: clamp(48px, 7vw, 96px) 0 0; font-family: var(--serif); font-size: clamp(4.2rem, 19.5vw, 19rem); line-height: 0.8; letter-spacing: 0.04em; text-align: center; white-space: nowrap; color: transparent; -webkit-text-stroke: 1px rgba(171, 145, 115, 0.55); user-select: none; }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--line-dark); font-size: 0.84rem; color: rgba(243, 240, 233, 0.5); }
.footer-base a { text-decoration: none; color: rgba(243, 240, 233, 0.7); }
@media (max-width: 760px) { .footer-top { grid-template-columns: 1fr 1fr; } .footer-cta { grid-column: 1 / -1; } }

/* ---------- Case study page ---------- */

.cs-hero { position: relative; padding: clamp(140px, 17vw, 210px) 0 clamp(170px, 22vw, 320px); overflow: hidden; }
.cs-back { display: inline-flex; gap: 10px; text-decoration: none; font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--mute-dark); margin-bottom: 44px; }
.cs-back:hover { color: var(--ivory); }
.cs-hero h1 { font-size: clamp(3.4rem, 11vw, 9.6rem); }
.cs-hero .lede { margin-top: 30px; max-width: 640px; font-size: 1.2rem; color: var(--mute-dark); }
.cs-meta { margin-top: clamp(44px, 6vw, 72px); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.cs-meta > div { border-top: 1px solid var(--line-dark); padding-top: 14px; }
.cs-meta dt { font-size: 0.66rem; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; color: var(--champagne); }
.cs-meta dd { margin-top: 6px; font-family: var(--serif); font-size: 1.25rem; line-height: 1.3; }
.cs-meta a { text-decoration-color: var(--champagne); text-underline-offset: 4px; }
.cs-shot { position: relative; z-index: 3; margin-top: calc(clamp(120px, 17vw, 250px) * -1); }
.cs-intro { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(32px, 7vw, 120px); }
.cs-intro .large { font-family: var(--serif); font-size: clamp(1.6rem, 2.8vw, 2.3rem); line-height: 1.26; margin-bottom: 24px; }
.cs-intro p:not(.large):not(.eyebrow) { color: var(--ink-soft); max-width: 620px; margin-bottom: 16px; }
.cs-facts { margin-top: clamp(48px, 6vw, 80px); }

.cutouts { overflow: hidden; padding: clamp(40px, 6vw, 80px) 0 0; }
.cutouts .marquee-track { animation-duration: 50s; }
.cutouts ul { display: flex; flex: none; }
.cutouts li { width: clamp(130px, 15vw, 210px); margin-right: clamp(26px, 4vw, 60px); filter: drop-shadow(0 26px 24px rgba(16, 18, 18, 0.28)); }
.cutouts li:nth-child(even) { transform: translateY(34px); }

.feature { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 6vw, 100px); align-items: center; padding: clamp(40px, 6vw, 84px) 0; }
.feature.flip .feature-media { order: 2; }
.feature-media { overflow: hidden; background: var(--charcoal-2); }
.feature-media img, .feature-media video { width: 100%; height: 100%; object-fit: cover; }
.feature h3 { font-size: clamp(2rem, 3.6vw, 3rem); font-weight: 400; line-height: 1.05; margin: 12px 0 18px; }
.feature p { color: var(--mute-dark); max-width: 480px; margin-bottom: 14px; }
.codecard { background: #0b0c0c; border: 1px solid var(--line-dark); border-radius: 12px; padding: clamp(20px, 3vw, 34px); font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: clamp(0.72rem, 1.05vw, 0.86rem); line-height: 1.9; color: rgba(243, 240, 233, 0.78); overflow-x: auto; white-space: pre; }
.codecard .c { color: rgba(243, 240, 233, 0.38); }
.codecard .k { color: var(--champagne-soft); }
.codecard .s { color: #a9c2a0; }
@media (max-width: 860px) { .feature { grid-template-columns: 1fr; } .feature.flip .feature-media { order: 0; } .cs-meta { grid-template-columns: 1fr 1fr; } .cs-intro { grid-template-columns: 1fr; } }

.gallery { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(10px, 1.4vw, 20px); }
.gallery figure { overflow: hidden; background: var(--ivory-deep); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.gallery figure:hover img { transform: scale(1.05); }
.g-wide { grid-column: span 8; aspect-ratio: 16 / 10; }
.g-tall { grid-column: span 4; }
.g-half { grid-column: span 6; aspect-ratio: 16 / 10; }
@media (max-width: 700px) { .g-wide, .g-tall, .g-half { grid-column: 1 / -1; } .g-tall { aspect-ratio: 4 / 5; } }

.swatches { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border: 1px solid var(--line); }
.swatches div { aspect-ratio: 1 / 1.15; display: flex; flex-direction: column; justify-content: flex-end; padding: 14px; font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; }
.swatches b { font-weight: 500; }
@media (max-width: 600px) { .swatches { grid-template-columns: repeat(2, minmax(0, 1fr)); } .swatches div { aspect-ratio: 2 / 1; } }

.next { text-align: center; padding: clamp(90px, 13vw, 180px) 0; }
.next .eyebrow { justify-content: center; }
.next .eyebrow::before { display: none; }
.next h2 { font-size: clamp(2.6rem, 7.4vw, 6.4rem); max-width: 900px; margin: 0 auto; }
.next .actions { justify-content: center; }

/* ---------- Prose (privacy) ---------- */

.prose { max-width: calc(760px + var(--gutter) * 2); }
.prose h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); margin: 52px 0 14px; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--ink-soft); }
.prose p + p { margin-top: 14px; }
.prose ul { margin-top: 6px; }
.prose li { position: relative; padding: 12px 0 12px 28px; border-top: 1px solid var(--line); }
.prose li::before { content: ""; position: absolute; left: 0; top: 1.5em; width: 12px; height: 1px; background: var(--champagne); }
.prose b { font-weight: 500; color: var(--ink); }
.prose a { color: var(--ink); text-decoration-color: var(--champagne); text-underline-offset: 4px; }
.footer-base span a { margin: 0 2px; }

/* ---------- Motion ---------- */

/* Failsafe: script.js adds .settled after the entrance has had time to finish,
   so the hero can never be left invisible if animations are stalled. */
.settled .hero h1 .line > span, .settled .fade-up { animation: none; opacity: 1; transform: none; }

.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--delay, 0s); }
.js .reveal.in { opacity: 1; transform: none; }
.js .clip { clip-path: inset(0 0 100% 0); transition: clip-path 1.3s var(--ease); }
.js .clip.in { clip-path: inset(0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .hero h1 .line > span, .fade-up, .js .reveal { opacity: 1; transform: none; }
  .js .clip { clip-path: none; }
  .hero-tilt { transform: none; }
}
