/* ==========================================================================
   Yo Eleven Design Studio — "Noir Editorial" theme
   File: css/yo11.css · Display: Instrument Serif · Text: Inter Tight
   --------------------------------------------------------------------------
   TABLE OF CONTENTS  (search for "§n" to jump to a section)
     §1  Design tokens (colors, fonts, spacing) — change the brand here
     §2  Base & accessibility
     §3  Typography
     §4  Buttons
     §5  Header & navigation
     §6  Hero & slideshow
     §7  Marquee
     §8  Sections: studio, services, process
     §9  Work / portfolio & lightbox
     §10 Contact form (sentence brief) & validation states
     §11 Newsletter
     §12 Footer
     §13 Scroll reveal & back-to-top
     §14 State pages (success / error / 404)
   ========================================================================== */

/* §1 Design tokens ======================================================== */

:root {
  --ink: #0e0e10;
  --ink-2: #16161a;
  --ink-3: #1e1e23;
  --ivory: #f3eee6;
  --muted: #a9a49c;
  --line: rgba(243, 238, 230, 0.12);
  --line-strong: rgba(243, 238, 230, 0.28);
  --orange: #f7941d;
  --orange-deep: #9a4704;
  --error: #ff8f73;
  --ok: #9fd8b3;

  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --sans: "Inter Tight", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1280px;
  --gutter: clamp(20px, 4vw, 56px);
  --radius: 22px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

/* §2 Base & accessibility ================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 116px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--ivory);
  font: 400 17px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
html { overflow-x: clip; }

/* Subtle film grain overlay */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none; z-index: 100;
  opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img { max-width: 100%; display: block; }
a { color: inherit; }
::selection { background: var(--orange); color: var(--ink); }

:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(var(--wrap), 100% - var(--gutter) * 2); margin-inline: auto; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--orange); color: var(--ink); padding: 10px 16px; border-radius: 999px;
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 16px; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* §3 Typography ========================================================== */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font: 500 12px/1 var(--sans); letter-spacing: .22em; text-transform: uppercase;
  color: var(--orange);
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
/* Tablets & phones: when the label wraps, open up the lines and pin the dash to line one */
@media (max-width: 900px) {
  .eyebrow { align-items: flex-start; line-height: 1.7; }
  .eyebrow::before { flex: 0 0 auto; margin-top: .85em; }
}

.display {
  font-family: var(--serif); font-weight: 400;
  letter-spacing: .01em; word-spacing: .04em; line-height: 1; margin: 0;
}
.display em { font-style: italic; color: var(--orange); letter-spacing: .02em; padding-right: .04em; }
/* Instrument Serif is a narrow face: give mid-size headings room to breathe.
   Only the giant hero headline (.hero-title) keeps tighter spacing. */
.tile h3, .case-meta h3, .lb-body h2, .nl-card h2, .foot-tag, .brief, .contact-card p, .contact-card address,
.marquee-track span, .signature b, .step-n, .section-num, .tile-idx {
  letter-spacing: .02em; word-spacing: .05em;
}
.hero-title { letter-spacing: -.005em; }

h2.display { font-size: clamp(44px, 6.4vw, 96px); }
h3 { font-weight: 500; }
.lede { font-size: clamp(18px, 1.5vw, 21px); color: var(--muted); max-width: 56ch; }

/* §4 Buttons ============================================================= */
.btn {
  --h: 54px;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: var(--h); padding: 0 26px; border-radius: 999px;
  font: 500 15px/1 var(--sans); letter-spacing: .01em; text-decoration: none;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .35s var(--ease), background .3s, color .3s, border-color .3s;
}
.btn svg { width: 18px; height: 18px; transition: transform .35s var(--ease); }
.btn:hover svg { transform: translateX(4px) rotate(-45deg); }
.btn-orange { background: var(--orange); color: var(--ink); }
.btn-orange:hover { background: var(--ivory); }
.btn-ghost { border-color: var(--line-strong); color: var(--ivory); background: transparent; }
.btn-ghost:hover { border-color: var(--ivory); }
.btn:active { transform: scale(.97); }

/* §5 Header & navigation ================================================= */
.site-header {
  position: fixed; inset: 16px 0 auto; z-index: 50;
  display: flex; justify-content: center; pointer-events: none;
}
.nav-shell {
  pointer-events: auto;
  width: min(var(--wrap), 100% - 32px);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 10px 14px 10px 26px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(14, 14, 16, .62);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  transition: background .3s, border-color .3s;
}
.site-header.is-scrolled .nav-shell { background: rgba(14, 14, 16, .86); border-color: var(--line-strong); }

.brand { display: inline-flex; align-items: center; text-decoration: none; min-height: 44px; border-radius: 10px; }
.brand:focus:not(:focus-visible) { outline: none; }
.brand img { height: 64px; width: auto; }
@media (max-width: 900px) { .brand img { height: 52px; } }

.nav-links { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px;
  border-radius: 999px; text-decoration: none; font-size: 15px; color: var(--muted);
  transition: color .2s, background .2s;
}
.nav-links a:hover, .nav-links a[aria-current="true"] { color: var(--ivory); background: rgba(243, 238, 230, .07); }
.nav-cta { --h: 46px; padding: 0 20px; }

.nav-toggle {
  display: none; width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid var(--line-strong); background: transparent; color: var(--ivory); cursor: pointer;
}
.nav-toggle span { display: block; width: 18px; height: 1.5px; background: currentColor; margin: 5px auto; transition: transform .3s var(--ease), opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav-cta { display: none; }
  .nav-links {
    position: absolute; top: calc(100% + 10px); left: 16px; right: 16px;
    flex-direction: column; padding: 14px; border-radius: 24px;
    background: rgba(14, 14, 16, .96); border: 1px solid var(--line-strong);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .25s, transform .3s var(--ease), visibility .25s;
  }
  .nav-links.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav-links a { font: 400 30px/1 var(--serif); color: var(--ivory); min-height: 60px; }
  .site-header { position: fixed; }
  .nav-shell { position: relative; }
}

/* §6 Hero & slideshow ==================================================== */
.hero {
  position: relative; min-height: 100svh;
  display: grid; align-content: end;
  padding: 170px 0 0;
  isolation: isolate;
  overflow: hidden;
}
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr);
  gap: clamp(24px, 4vw, 64px); align-items: end;
}
.hero-title { font-size: clamp(62px, 10.5vw, 168px); margin: 28px 0 32px; }
.hero-title .line { display: block; }
h1.eyebrow { margin: 0; font-weight: 500; }
.hero .lede { margin: 0 0 36px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Ken Burns slideshow (carried over from the original site's Vegas slider) */
.hero-slides { position: absolute; inset: 0; z-index: -2; overflow: hidden; background: var(--ink); }
.hero-slides picture, .hero-slides img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-slides picture { opacity: 0; animation: slideFade 24s infinite; }
.hero-slides picture:nth-child(2) { animation-delay: 12s; }
.hero-slides img { animation: kenburns 24s ease-out infinite; transform-origin: 60% 40%; filter: grayscale(1) contrast(1.05); }
.hero-slides picture:nth-child(2) img { animation-delay: 12s; transform-origin: 30% 60%; }
@keyframes slideFade { 0% { opacity: 0 } 8% { opacity: 1 } 46% { opacity: 1 } 58% { opacity: 0 } 100% { opacity: 0 } }
@keyframes kenburns { 0% { transform: scale(1.18) } 60% { transform: scale(1) } 100% { transform: scale(1) } }
.hero-shade {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(14,14,16,.55) 0%, rgba(14,14,16,.35) 40%, rgba(14,14,16,.92) 88%, var(--ink) 100%),
    linear-gradient(90deg, rgba(14,14,16,.85) 0%, rgba(14,14,16,.2) 70%);
}
@media (prefers-reduced-motion: reduce) { .hero-slides picture:first-child { opacity: 1; } }

.hero-art { position: relative; justify-self: end; width: min(100%, 400px); aspect-ratio: 1; }
.mark-xl { position: absolute; inset: 12%; color: var(--line-strong); }
.mark-xl .dot { fill: var(--orange); }
.badge {
  position: absolute; right: 4%; top: 4%; width: 132px; height: 132px;
  animation: spin 22s linear infinite;
}
.badge text { font: 500 10.5px var(--sans); letter-spacing: .32em; fill: var(--orange); text-transform: uppercase; }
.badge-dot { position: absolute; right: calc(4% + 58px); top: calc(4% + 58px); width: 16px; height: 16px; border-radius: 50%; background: var(--orange); }
@keyframes spin { to { transform: rotate(360deg); } }

.hero-meta {
  margin-top: clamp(48px, 8vw, 96px);
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px;
  border-top: 1px solid var(--line); padding: 22px 0;
  font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}
.hero-meta span:nth-child(2) { text-align: center; }
.hero-meta span:last-child { text-align: right; }

.glow {
  position: absolute; z-index: -1; pointer-events: none;
  width: 60vw; height: 60vw; max-width: 900px; max-height: 900px;
  right: -15vw; top: -10vw; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(247, 148, 29, .14), transparent 70%);
  filter: blur(10px);
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { position: absolute; right: -60px; top: 80px; width: 280px; opacity: .3; z-index: -1; }
  .hero-meta { grid-template-columns: 1fr; gap: 8px; }
  .hero-meta span:nth-child(n) { text-align: left; }
}

/* §7 Marquee ============================================================= */
.marquee {
  border-block: 1px solid var(--line); overflow: hidden; padding: 26px 0;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee-track { display: flex; width: max-content; gap: 48px; animation: slide 38s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span { font: 400 clamp(30px, 4vw, 52px)/1 var(--serif); white-space: nowrap; display: inline-flex; align-items: center; gap: 48px; }
.marquee-track span:nth-child(even) { font-style: italic; color: var(--orange); }
.marquee-track span::after { content: "✦"; font: 400 18px var(--sans); color: var(--muted); font-style: normal; }
@keyframes slide { to { transform: translateX(-50%); } }

/* §8 Sections: studio, services, process ================================= */
section { position: relative; }
.section { padding: clamp(96px, 13vw, 180px) 0; }
.section--flush { padding-top: 0; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 32px; margin-bottom: clamp(48px, 7vw, 88px); }
.section-head .display { margin-top: 20px; }
.section-num { font: italic 400 22px var(--serif); color: var(--muted); }

/* Studio */
.studio-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 7vw, 120px); }
.pull {
  font: 400 clamp(32px, 3.6vw, 52px)/1.15 var(--serif); letter-spacing: .015em; word-spacing: .06em; margin: 0;
  position: sticky; top: 120px;
}
.pull em { color: var(--orange); }
.studio-copy p { margin: 0 0 1.4em; color: var(--muted); font-size: 18px; }
.studio-copy p:first-child { color: var(--ivory); font-size: 21px; line-height: 1.55; }
.studio-copy strong { color: var(--ivory); font-weight: 600; }
.signature { display: flex; align-items: center; gap: 16px; margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--line); }
.signature b { font: italic 400 30px var(--serif); color: var(--orange); }
.signature span { font-size: 14px; color: var(--muted); }
@media (max-width: 900px) { .studio-grid { grid-template-columns: 1fr; } .pull { position: static; } }

/* Capabilities bento */
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.tile {
  position: relative; overflow: hidden;
  background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(28px, 3vw, 44px); min-height: 300px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 32px;
  transition: border-color .4s, transform .5s var(--ease);
}
.tile:hover { border-color: var(--line-strong); transform: translateY(-4px); }
.tile:nth-child(1) { grid-column: span 4; }
.tile:nth-child(2) { grid-column: span 2; background: var(--orange); color: var(--ink); border-color: var(--orange); }
.tile:nth-child(3) { grid-column: span 3; }
.tile:nth-child(4) { grid-column: span 3; }
.tile h3 { font: 400 clamp(32px, 3vw, 44px)/1 var(--serif); margin: 0 0 14px; }
.tile p { margin: 0; color: var(--muted); max-width: 46ch; }
.tile:nth-child(2) p { color: rgba(14, 14, 16, .78); }
.tile-top { display: flex; justify-content: space-between; align-items: start; }
.tile-icon { width: 52px; height: 52px; border-radius: 50%; border: 1px solid currentColor; display: grid; place-items: center; opacity: .9; }
.tile-icon svg { width: 22px; height: 22px; }
.tile-idx { font: italic 400 20px var(--serif); opacity: .7; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; list-style: none; padding: 0; }
.tags li { font-size: 13px; padding: 7px 13px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--ivory); }
.tile:nth-child(2) .tags li { border-color: rgba(14,14,16,.35); color: var(--ink); }
.serp {
  font-size: 13px; border: 1px solid rgba(14,14,16,.2); border-radius: 14px; padding: 14px 16px;
  background: rgba(255,255,255,.28);
}
.serp .u { color: rgba(14,14,16,.7); }
.serp .t { font-weight: 600; font-size: 15px; margin: 2px 0; }
.serp .rank { display: inline-block; margin-top: 8px; padding: 3px 9px; border-radius: 999px; background: var(--ink); color: var(--orange); font-weight: 600; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
@media (max-width: 900px) { .bento { grid-template-columns: 1fr; } .tile:nth-child(n) { grid-column: auto; } }

/* Process */
.process { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); counter-reset: step; border-top: 1px solid var(--line); }
.step { padding: 36px 28px 8px 0; border-right: 1px solid var(--line); margin-right: 28px; }
.step:last-child { border-right: 0; margin-right: 0; }
.step-n { font: italic 400 64px/1 var(--serif); color: var(--orange); }
.step h3 { font-size: 22px; margin: 28px 0 10px; }
.step p { color: var(--muted); margin: 0; font-size: 16px; }
@media (max-width: 900px) {
  .process { grid-template-columns: 1fr 1fr; }
  .step { border-right: 0; margin-right: 0; padding-right: 16px; }
}
@media (max-width: 560px) { .process { grid-template-columns: 1fr; } }

/* Line break that only applies on phones (e.g. hero heading after the comma) */
.br-sm { display: none; }
@media (max-width: 700px) { .br-sm { display: inline; } }

/* §9 Work / portfolio & lightbox ========================================= */
.work-list { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(20px, 2.4vw, 32px); }
.case { grid-column: span 6; display: flex; flex-direction: column; gap: 20px; text-decoration: none; }
.case:nth-child(1) { grid-column: span 7; }
.case:nth-child(2) { grid-column: span 5; margin-top: 120px; }
.case:nth-child(3) { grid-column: span 5; margin-top: 60px; }   /* stagger by pushing down, never pulling up (no overlap) */
.case:nth-child(4) { grid-column: span 7; }
.case:nth-child(5) { grid-column: span 6; }
.case:nth-child(6) { grid-column: span 6; margin-top: 80px; }
.case:nth-child(7) { grid-column: span 5; margin-top: 60px; }                    /* last row mirrors row 2 */
.case:nth-child(8) { grid-column: span 7; }
.case-media {
  position: relative; overflow: hidden; border-radius: var(--radius);
  aspect-ratio: 4128 / 3136; background: var(--ink-3); border: 1px solid var(--line);
  display: block; width: 100%; padding: 0; cursor: zoom-in; color: inherit; font: inherit;
}
.case-media picture { display: block; width: 100%; height: 100%; }
.case-media img { object-position: top center; }
.case-count {
  position: absolute; right: 16px; top: 16px; display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 12px; border-radius: 999px; font-size: 12px; font-weight: 500; letter-spacing: .04em;
  background: rgba(14,14,16,.72); color: var(--ivory); border: 1px solid var(--line-strong);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.case-count svg { width: 14px; height: 14px; }
.case-cat { font-size: 13px; color: var(--muted); letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; }
.case-sub { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.case-launch { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 14px; font-weight: 500; color: var(--orange); text-decoration: none; }
/* "Built with" technology chips (cards + gallery) */
.case-tech { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.case-tech-label { font-size: 11px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.case-tech ul { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.case-tech li {
  font-size: 12px; font-weight: 500; letter-spacing: .02em; line-height: 1;
  padding: 6px 10px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--ivory);
}
.lb-tech { margin-top: 14px; margin-bottom: 15px; }   /* +15px below the pills */
.case-private { font-size: 14px; font-weight: 500; color: var(--muted); min-height: 44px; display: flex; align-items: center; }
.lightbox .btn[hidden] { display: none; }
.case-launch svg { transition: transform .35s var(--ease); }
.case-launch:hover { text-decoration: underline; text-underline-offset: 4px; }
.case-launch:hover svg, .case-launch:focus-visible svg { transform: translateX(4px) rotate(-45deg); } /* same flip as .btn */
.case-media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.02); transition: transform 1.1s var(--ease), filter .6s; filter: saturate(.85); }
.case:hover .case-media img { transform: scale(1.07); filter: saturate(1.05); }
.case-chip {
  position: absolute; left: 18px; bottom: 18px;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: 999px; font-size: 13px; font-weight: 500;
  background: rgba(14,14,16,.7); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--line-strong);
  transform: translateY(12px); opacity: 0; transition: .45s var(--ease);
}
.case:hover .case-chip, .case:focus-visible .case-chip { transform: none; opacity: 1; }
.case-meta { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; border-bottom: 1px solid var(--line); padding-bottom: 14px; }
.case-meta h3 { font: 400 clamp(28px, 2.6vw, 38px)/1.05 var(--serif); margin: 0; }
.case-meta time { font-size: 13px; color: var(--muted); letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; }
.case p { margin: 0; color: var(--muted); font-size: 16px; max-width: 60ch; }
@media (max-width: 900px) {
  .work-list { grid-template-columns: 1fr; row-gap: 72px; }   /* more air between stacked projects */
  .case:nth-child(n) { grid-column: auto; margin-top: 0; }
  .case-chip { transform: none; opacity: 1; }
}

/* Lightbox (native <dialog>, replaces PhotoSwipe) */
.lightbox {
  width: min(1280px, 100% - 32px); max-height: calc(100% - 32px); padding: 0; border: 1px solid var(--line-strong);
  border-radius: calc(var(--radius) + 6px); background: var(--ink-2); color: var(--ivory); overflow: auto;
}
.lightbox::backdrop { background: rgba(8, 8, 10, .82); backdrop-filter: blur(6px); }
.lightbox[open] { animation: pop .45s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(16px) scale(.98); } }
/* Gallery stage: shows the whole screenshot, never cropped */
/* Full-length photos: edge to edge at natural height (the dialog scrolls) */
.lb-stage { position: relative; background: var(--ink-3); }
.lb-stage picture { display: block; width: 100%; }
.lb-stage img { display: block; width: 100%; height: auto; aspect-ratio: 4128 / 3136; }
.lb-arrow {
  position: absolute; top: min(50%, 40vh); translate: 0 -50%; width: 52px; height: 52px; border-radius: 50%;
  border: 1px solid var(--line-strong); background: rgba(14,14,16,.72); color: var(--ivory);
  display: grid; place-items: center; cursor: pointer; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transition: background .25s, color .25s, border-color .25s;
}
.lb-arrow:hover { background: var(--orange); border-color: var(--orange); color: var(--ink); }
.lb-arrow svg { width: 20px; height: 20px; }
.lb-prev { left: 16px; }
.lb-next { right: 16px; }
.lb-counter {
  position: absolute; left: 16px; bottom: 14px; margin: 0; padding: 6px 12px; border-radius: 999px;
  background: rgba(14,14,16,.72); font-size: 13px; letter-spacing: .08em; font-variant-numeric: tabular-nums;
}
.lb-thumbs { display: flex; gap: 10px; padding: 14px 32px 0; overflow-x: auto; scrollbar-width: thin; }
.lb-thumb {
  flex: 0 0 auto; width: 104px; aspect-ratio: 4 / 3; padding: 0; border-radius: 10px; overflow: hidden; cursor: pointer;
  border: 2px solid transparent; background: var(--ink-3); opacity: .55; transition: opacity .25s, border-color .25s;
}
.lb-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.lb-thumb:hover { opacity: .9; }
.lb-thumb[aria-current="true"] { opacity: 1; border-color: var(--orange); }
.lightbox.is-single .lb-arrow, .lightbox.is-single .lb-thumbs { display: none; }
.lb-body { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px 32px; padding: 43px 32px 32px; align-items: start; }   /* +15px above the orange line */
.lb-body h2 { font: 400 clamp(30px, 3.4vw, 46px)/1 var(--serif); margin: 0 0 8px; }
.lb-body p { margin: 0; color: var(--muted); max-width: 70ch; }
.lightbox .lb-meta { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--orange); margin-bottom: 10px; }
/* Close (X): pinned to the top-right corner, above the photo, even while the window scrolls */
.lb-close {
  position: sticky; top: 14px; z-index: 5; margin: 14px 14px -62px auto;
  width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid var(--line-strong); background: rgba(14,14,16,.7); color: var(--ivory); cursor: pointer;
  display: grid; place-items: center; backdrop-filter: blur(8px);
}
.lb-close:hover { background: var(--orange); border-color: var(--orange); color: var(--ink); }
.lb-close svg { width: 18px; height: 18px; }
.lb-close:focus, .lb-close:focus-visible { outline: none; }                /* no orange focus ring on the X */
.lb-close:focus-visible { background: rgba(243,238,230,.18); border-color: var(--ivory); } /* quiet keyboard cue */
.lb-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 14px; }
.lb-nav { display: flex; gap: 8px; }
.lb-nav button { min-width: 48px; height: 48px; padding: 0 16px; gap: 8px; font: 500 14px var(--sans); border-radius: 999px; border: 1px solid var(--line-strong); background: transparent; color: var(--ivory); cursor: pointer; display: grid; place-items: center; }
.lb-nav button { display: inline-flex; align-items: center; }
.lb-nav button:hover { border-color: var(--orange); color: var(--orange); }
.lb-nav svg { width: 18px; height: 18px; }
/* Phones: whole gallery fits on one screen — no scrolling inside the pop-up */
@media (max-width: 700px) {
  .lightbox { max-height: calc(100dvh - 24px); }
  .lb-stage img { aspect-ratio: 3 / 2; object-fit: cover; object-position: top center; } /* crop the bottom; 16/10 → 3/2, a little taller */
  .lb-arrow { top: 50%; width: 30px; height: 30px; border: 0; background: rgba(14,14,16,.45); opacity: .8; } /* small + quiet so the X stands out */
  .lb-arrow svg { width: 14px; height: 14px; } .lb-prev { left: 6px; } .lb-next { right: 6px; }
  .lb-counter { bottom: 10px; left: 10px; font-size: 12px; }
  .lb-thumbs { padding: 10px 18px 0; scrollbar-width: none; } .lb-thumbs::-webkit-scrollbar { display: none; }
  .lb-thumb { width: 64px; }
  .lb-body { grid-template-columns: 1fr; gap: 14px; padding: 31px 18px 18px; }   /* +15px above the orange line */
  .lightbox .lb-meta { font-size: 11px; letter-spacing: .1em; line-height: 1.5; margin-bottom: 6px; } /* smaller on phones */
  .lb-close { top: 10px; margin: 10px 10px -40px auto; width: 30px; height: 30px; } /* same size as the arrows */
  .lb-close svg { width: 14px; height: 14px; }
  .lb-body h2 { font-size: 29px; margin-bottom: 6px; }                          /* 30px → 29px */
  .lb-body p { font-size: 15px; line-height: 23px; }                           /* line height 25px → 23px */
  .lb-tech { margin-top: 10px; margin-bottom: 15px; }   /* +15px below the pills */ .lb-tech ul { gap: 5px; } .lb-tech li { font-size: 11px; padding: 5px 8px; }
  .lb-tech .case-tech-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } /* list keeps its aria-label */
  .lb-actions { flex-direction: row; align-items: center; justify-content: space-between; gap: 10px; }
  .lb-actions .btn { --h: 48px; padding: 0 20px; font-size: 15px; }
  .lb-nav button { min-width: 48px; padding: 0; justify-content: center; }
  .lb-nav button span { display: none; }
}
@media (max-width: 700px) and (max-height: 820px) {   /* shorter phones */
  .lb-stage img { aspect-ratio: 1.8 / 1; }  /* was 2/1 */
  .lb-thumb { width: 56px; }
}
@media (max-width: 700px) and (max-height: 720px) {   /* short phones, e.g. iPhone SE */
  .lb-stage img { aspect-ratio: 2.2 / 1; }  /* was 5/2 */
  .lb-body h2 { font-size: 26px; }
  .lb-body { gap: 10px; padding-top: 27px; }
  .lb-thumb { width: 56px; }
  .lb-body p { font-size: 14px; line-height: 19px; }  /* line height 21px → 19px */
}

/* §10 Contact form (sentence brief) & validation states ================== */
/* reCAPTCHA badge hidden; the required "protected by reCAPTCHA" notice is
   shown beside the Send button (.legal), per Google's FAQ.               */
.grecaptcha-badge { visibility: hidden !important; }
.contact { background: var(--ivory); color: var(--ink); border-radius: clamp(28px, 4vw, 48px) clamp(28px, 4vw, 48px) 0 0; }
.contact .eyebrow { color: var(--orange-deep); }
.contact .display em { color: var(--orange-deep); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, .8fr); gap: clamp(40px, 6vw, 96px); }

.brief { font: 400 clamp(24px, 2.5vw, 36px)/1.9 var(--serif); }
.brief .sentence { margin: 0 0 6px; }
.slot { position: relative; display: inline-flex; flex-direction: column; vertical-align: baseline; margin: 0 4px; }
.slot input {
  font: italic 400 1em/1.2 var(--serif); color: var(--ink);
  background: transparent; border: 0; border-bottom: 1.5px solid rgba(14,14,16,.3);
  padding: 2px 4px 4px; min-width: 6ch; width: var(--w, 12ch); max-width: 100%;
  border-radius: 0; transition: border-color .25s;
}
.slot input::placeholder { color: rgba(14,14,16,.38); }
.slot input:focus { outline: none; border-bottom-color: var(--ink); }
.slot input:focus-visible { outline: none; }
.slot .hint, .field-msg {
  font: 500 12px/1.3 var(--sans); letter-spacing: .02em; color: #6b665f; min-height: 16px; margin-top: 4px;
}

/* modern validation: only after interaction (data-touched or :user-invalid) */
.is-invalid input, .is-invalid textarea { border-bottom-color: #c2410c !important; }
.is-invalid .field-msg, .is-invalid .hint { color: #b4380a; }
.is-valid input { border-bottom-color: #2f7d4f; }
.slot .check {
  position: absolute; right: -2px; top: .45em; width: 18px; height: 18px; opacity: 0; transform: scale(.6);
  transition: .3s var(--ease); color: #2f7d4f;
}
.is-valid .check { opacity: 1; transform: none; }

fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.brief fieldset { margin: 26px 0 0; }
.brief legend { font: 400 inherit; padding: 0; margin-bottom: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; font-family: var(--sans); }
.chip { position: relative; display: inline-flex; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; pointer-events: none; }
.chip label {
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 20px;
  border-radius: 999px; border: 1px solid rgba(14,14,16,.22);
  font: 500 15px/1 var(--sans); cursor: pointer; user-select: none;
  transition: background .25s, color .25s, border-color .25s, transform .2s;
}
.chip label::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid currentColor; transition: .25s;
}
.chip input:checked + label { background: var(--ink); color: var(--ivory); border-color: var(--ink); }
.chip input:checked + label::before { background: var(--orange); border-color: var(--orange); }
.chip input:focus-visible + label { outline: 2px solid var(--ink); outline-offset: 3px; }
.chip label:hover { border-color: var(--ink); }
.chip input:active + label { transform: scale(.97); }

.budget .chip label::before { border-radius: 3px; }

.message-box { margin-top: 30px; position: relative; }
.message-box label { display: block; margin-bottom: 10px; }
.message-box textarea {
  width: 100%; min-height: 160px; resize: vertical;
  font: 400 18px/1.6 var(--sans); color: var(--ink);
  background: rgba(14,14,16,.04); border: 1px solid rgba(14,14,16,.16); border-bottom-width: 1.5px;
  border-radius: 18px; padding: 18px 20px; transition: border-color .25s, background .25s;
  field-sizing: content; /* modern auto-grow where supported */
}
.message-box textarea:focus { outline: none; border-color: var(--ink); background: rgba(14,14,16,.02); }
.message-box textarea::placeholder { color: rgba(14,14,16,.42); }
.message-foot { display: flex; justify-content: space-between; gap: 16px; }
.counter { font: 500 12px var(--sans); color: #6b665f; font-variant-numeric: tabular-nums; margin-top: 4px; }

.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; margin-top: 34px; font-family: var(--sans); }
.btn-ink { background: var(--ink); color: var(--ivory); --h: 60px; padding: 0 30px; font-size: 16px; }
.btn-ink:hover { background: #2a2a30; }
.btn[aria-busy="true"] { pointer-events: none; opacity: .75; }
.btn[aria-busy="true"] svg { animation: spin 1s linear infinite; }
.legal { font: 400 13px/1.5 var(--sans); color: #6b665f; max-width: 44ch; margin: 0; }
.legal a { color: var(--ink); }

.form-alert {
  font: 500 15px/1.4 var(--sans); padding: 14px 18px; border-radius: 14px; margin-top: 22px;
  background: rgba(194, 65, 12, .08); color: #9a3412; border: 1px solid rgba(194,65,12,.25);
}
.form-alert[hidden] { display: none; }
.form-alert ul { margin: 6px 0 0; padding-left: 18px; }
.form-alert a { color: inherit; }

.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }

.contact-aside { font-family: var(--sans); display: flex; flex-direction: column; gap: 0; }
.contact-card { padding: 26px 0; border-top: 1px solid rgba(14,14,16,.14); }
.contact-card:last-child { border-bottom: 1px solid rgba(14,14,16,.14); }
.contact-card h3 { font: 500 12px var(--sans); letter-spacing: .2em; text-transform: uppercase; color: #6b665f; margin: 0 0 10px; }
.contact-card p, .contact-card address { margin: 0; font: normal 400 24px/1.35 var(--serif); }
.contact-card a { text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .4s var(--ease); }
.contact-card a:hover { background-size: 100% 1px; }
.contact-card .lbl { font: 500 13px var(--sans); color: #6b665f; margin-right: 8px; }

@media (max-width: 980px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 600px) {
  .brief { line-height: 1.7; }
  .slot { display: flex; margin: 8px 0 14px; }
  .slot input { width: 100% !important; }
  .punct { display: none; }
}

/* §11 Newsletter ========================================================= */
.newsletter { background: var(--ivory); color: var(--ink); padding-bottom: clamp(64px, 8vw, 110px); }
.nl-card {
  background: var(--ink); color: var(--ivory); border-radius: calc(var(--radius) + 8px);
  padding: clamp(32px, 5vw, 64px);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center;
  position: relative; overflow: hidden;
}
.nl-card::after { content: "11"; position: absolute; right: -20px; bottom: -110px; font: italic 400 320px/1 var(--serif); color: transparent; -webkit-text-stroke: 1px rgba(243,238,230,.08); pointer-events: none; }
.nl-card h2 { font: 400 clamp(36px, 4vw, 56px)/1 var(--serif); margin: 0 0 14px; }
.nl-card h2 em { color: var(--orange); }
.nl-card p { margin: 0; color: var(--muted); }
.nl-lead { color: var(--ivory); font-weight: 500; }
.nl-form { position: relative; z-index: 1; }
.nl-row {
  display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 22px;
  border-radius: 999px; border: 1px solid var(--line-strong); background: rgba(243,238,230,.04);
  transition: border-color .25s;
}
.nl-row:focus-within { border-color: var(--orange); }
.nl-row input { flex: 1; min-width: 0; background: transparent; border: 0; color: var(--ivory); font: 400 17px var(--sans); min-height: 52px; }
.nl-row input:focus { outline: none; }
.nl-row input::placeholder { color: #8d887f; }
.nl-row .btn { --h: 52px; }
.nl-card .nl-msg { font-size: 13px; min-height: 20px; margin: 21px 0 0; color: var(--muted); }
.nl-form.is-invalid .nl-row { border-color: var(--error); }
.nl-form.is-invalid .nl-msg { color: var(--error); }
.nl-form.is-valid .nl-msg { color: var(--ok); }
@media (max-width: 800px) { .nl-card { grid-template-columns: 1fr; } }
@media (max-width: 460px) { .nl-row { flex-direction: column; border-radius: 22px; padding: 8px 8px 16px; } /* more room under Join now */ .nl-row input { width: 100%; padding: 0 14px; } .nl-row .btn { width: 100%; } }

/* §12 Footer ============================================================= */
.site-footer { padding: clamp(64px, 8vw, 100px) 0 36px; }
.foot-top { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, .6fr)); gap: 40px; }
.foot-heading { font: 500 12px var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin: 0 0 18px; }
.foot-top ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.foot-top li a { text-decoration: none; color: var(--ivory); display: inline-flex; align-items: center; min-height: 36px; }
.foot-top li a:hover { color: var(--orange); }
.foot-logo { width: 220px; height: auto; margin-bottom: 28px; }
.foot-tag { font: 400 clamp(30px, 3vw, 42px)/1.1 var(--serif); margin: 0; max-width: 18ch; }
.foot-tag em { color: var(--orange); }
.site-footer address { font-style: normal; }
.site-footer address li { min-height: 36px; display: flex; align-items: center; color: var(--muted); }
.foot-bottom p { margin: 0; }
.wordmark {
  font: italic 400 clamp(80px, 19vw, 300px)/.8 var(--serif); letter-spacing: -.01em;
  margin: clamp(56px, 8vw, 100px) 0 28px; white-space: nowrap;
  color: transparent; -webkit-text-stroke: 1px var(--line-strong);
  user-select: none;
}
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; border-top: 1px solid var(--line); padding-top: 24px; font-size: 13px; color: var(--muted); }
.socials { display: flex; gap: 10px; }
.socials a { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; transition: .3s; }
.socials a:hover { background: var(--ivory); color: var(--ink); }
.socials svg { width: 17px; height: 17px; }
@media (max-width: 800px) { .foot-top { grid-template-columns: 1fr 1fr; } .foot-top > div:first-child { grid-column: 1 / -1; } }

/* §13 Scroll reveal & back-to-top ======================================== */
.to-top {
  position: fixed; right: max(20px, env(safe-area-inset-right)); bottom: max(20px, env(safe-area-inset-bottom)); z-index: 60;
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--orange); color: var(--ink);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
  transition: opacity .3s, transform .4s var(--ease), background .3s;
}
.to-top svg { width: 22px; height: 22px; transition: transform .3s var(--ease); }
.to-top:hover { background: var(--ivory); }
.to-top:hover svg { transform: translateY(-3px); }
.js-ready .to-top:not(.is-visible) { opacity: 0; transform: translateY(16px); pointer-events: none; }

.reveal { opacity: 0; transform: translateY(36px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* §14 State pages (success / error / 404) ================================ */
.state {
  min-height: 100svh; display: grid; place-items: center; text-align: center;
  padding: 170px var(--gutter) 60px; position: relative; isolation: isolate; overflow: hidden;
}
.state-inner { max-width: 760px; }
.state-icon {
  width: 92px; height: 92px; margin: 0 auto 36px; border-radius: 50%;
  display: grid; place-items: center; border: 1px solid var(--line-strong);
}
.state-icon svg { width: 36px; height: 36px; }
.state-icon.ok { color: var(--ok); border-color: rgba(159,216,179,.4); }
.state-icon.warn { color: var(--error); border-color: rgba(255,143,115,.4); }
.state-icon.ok path { stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw .9s .3s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.state h1 { font-size: clamp(56px, 9vw, 128px); margin: 18px 0 26px; }
.state .lede { margin: 0 auto 40px; }
.state .lede strong { color: var(--ivory); font-weight: 500; display: block; margin-bottom: 4px; }
.state-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.state-bg {
  position: absolute; inset: auto 0 -6vw; z-index: -1; text-align: center;
  font: italic 400 clamp(220px, 40vw, 620px)/.8 var(--serif); color: transparent;
  -webkit-text-stroke: 1px rgba(243,238,230,.07); user-select: none; pointer-events: none;
}
.state-links { margin-top: 56px; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; font-size: 14px; color: var(--muted); }
.state-links a { color: var(--muted); text-decoration: none; }
.state-links a:hover { color: var(--orange); }
