/* ==========================================================================
   King Digital Studios — site styles
   Palette: black, white, charcoal, subtle silver. Type: Apple system stack.
   ========================================================================== */

:root {
  --black: #000;
  --ink: #0a0a0b;
  --char-1: #111113;
  --char-2: #1a1a1c;
  --char-3: #26262a;
  --line: rgba(255, 255, 255, .09);
  --line-strong: rgba(255, 255, 255, .16);
  --silver: #c7c7cc;
  --silver-2: #98989f;
  --white: #f5f5f7;
  --paper: #f5f5f7;
  --ink-on-paper: #1d1d1f;
  --muted-on-paper: #58585e;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", "Helvetica Neue", "Segoe UI", Roboto, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;

  --r-sm: 14px;
  --r-md: 22px;
  --r-lg: 30px;
  --pill: 999px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --container: 1200px;
  --gutter: clamp(20px, 4vw, 40px);
  --section: clamp(96px, 13vw, 176px);
  --intro-delay: 1.15s;
}

@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out .28s ease both; }
::view-transition-new(root) { animation: vt-in .5s var(--ease) both; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; transform: translateY(8px); } }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; background: var(--black); }
html.no-intro { --intro-delay: .1s; }
body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  letter-spacing: -.011em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, video, svg { display: block; max-width: 100%; }
img, video { height: auto; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -.035em; line-height: 1.04; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--white); color: var(--black); }
:focus-visible { outline: 2px solid var(--white); outline-offset: 3px; border-radius: 6px; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--white); color: var(--black); padding: 10px 18px; border-radius: var(--pill); font-weight: 600;
}
.skip-link:focus { top: 16px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.container { width: min(var(--container), 100% - var(--gutter) * 2); margin-inline: auto; }
.section { padding-block: var(--section); position: relative; }
.section--tight { padding-block: clamp(64px, 9vw, 120px); }
.section--line { border-top: 1px solid var(--line); }

/* ---------- Type ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--silver-2);
  margin: 0 0 22px;
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: currentColor; }
.display-1 { font-size: clamp(46px, 10.4vw, 156px); letter-spacing: -.055em; line-height: .92; }
.display-2 { font-size: clamp(40px, 6.6vw, 96px); letter-spacing: -.048em; line-height: .98; }
.display-3 { font-size: clamp(32px, 4.4vw, 60px); letter-spacing: -.04em; line-height: 1.02; }
.lead { font-size: clamp(19px, 1.9vw, 24px); line-height: 1.45; color: var(--silver); letter-spacing: -.02em; max-width: 34em; }
.muted { color: var(--silver-2); }
.silver-text { color: var(--silver-2); }
.section-head { display: flex; flex-wrap: wrap; gap: 24px 48px; justify-content: space-between; align-items: end; margin-bottom: clamp(40px, 6vw, 72px); }
.section-head .lead { margin: 0; max-width: 26em; }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--white); --fg: var(--black);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 28px; border-radius: var(--pill);
  background: var(--bg); color: var(--fg); border: 1px solid transparent;
  font-size: 16px; font-weight: 600; letter-spacing: -.01em; cursor: pointer;
  transition: transform .4s var(--ease), background-color .3s, color .3s, border-color .3s;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn .arrow { transition: transform .4s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn--ghost { --bg: transparent; --fg: var(--white); border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--white); }
.btn--dark { --bg: var(--black); --fg: var(--white); }
.btn--sm { min-height: 40px; padding: 0 18px; font-size: 14px; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.arrow { width: 16px; height: 16px; flex: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--white); }
.link-arrow .arrow { transition: transform .4s var(--ease); }
.link-arrow:hover .arrow { transform: translateX(4px); }

/* ---------- Intro loader ---------- */
.intro { display: none; }
html.js:not(.no-intro) .intro {
  display: grid; place-items: center; position: fixed; inset: 0; z-index: 300; background: var(--black);
  animation: intro-out .6s var(--ease) .85s forwards;
  pointer-events: none;
}
.intro-inner { display: grid; justify-items: center; gap: 22px; }
.intro .logo-mark { width: 92px; height: 64px; color: var(--white); animation: intro-logo .9s var(--ease) both; }
.intro-bar { width: 120px; height: 1px; background: var(--line); overflow: hidden; }
.intro-bar::after { content: ""; display: block; height: 100%; background: var(--silver); transform-origin: left; animation: intro-bar .8s var(--ease) .05s both; }
@keyframes intro-logo { from { opacity: 0; transform: scale(.86); filter: blur(6px); } }
@keyframes intro-bar { from { transform: scaleX(0); } }
@keyframes intro-out { to { opacity: 0; visibility: hidden; } }

/* ---------- Navigation ---------- */
.nav {
  position: fixed; top: 14px; left: 50%; z-index: 100;
  width: min(1220px, calc(100% - 24px)); transform: translateX(-50%);
  display: flex; align-items: center; gap: 16px; justify-content: space-between;
  height: 62px; padding: 0 10px 0 20px; border-radius: var(--pill);
  border: 1px solid transparent;
  transition: background-color .45s var(--ease), border-color .45s, backdrop-filter .45s, top .45s var(--ease);
}
.nav.is-scrolled, .nav.is-open {
  background: rgba(22, 22, 24, .68);
  -webkit-backdrop-filter: saturate(180%) blur(22px);
  backdrop-filter: saturate(180%) blur(22px);
  border-color: var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; }
.brand .logo-mark { width: 49px; height: 34px; color: var(--white); transition: transform .6s var(--ease); }
.brand:hover .logo-mark { transform: rotate(-6deg) scale(1.05); }
.wordmark { display: grid; line-height: 1; }
.wordmark b { font-size: 14px; letter-spacing: .14em; font-weight: 700; }
.wordmark span { font-size: 10px; letter-spacing: .42em; color: var(--silver-2); margin-top: 4px; font-weight: 500; }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: var(--pill);
  font-size: 14px; font-weight: 500; color: var(--silver); transition: color .25s, background-color .25s;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--white); background: rgba(255, 255, 255, .07); }
.nav-cta { margin-left: 8px; }
.nav-toggle {
  display: none; width: 44px; height: 44px; border-radius: 50%; border: 0; background: transparent; cursor: pointer;
  position: relative;
}
.nav-toggle span { position: absolute; left: 13px; right: 13px; height: 1.5px; background: var(--white); transition: transform .45s var(--ease), top .45s var(--ease); }
.nav-toggle span:nth-child(1) { top: 18px; }
.nav-toggle span:nth-child(2) { top: 25px; }
.nav.is-open .nav-toggle span:nth-child(1) { top: 21.5px; transform: rotate(45deg); }
.nav.is-open .nav-toggle span:nth-child(2) { top: 21.5px; transform: rotate(-45deg); }

@media (max-width: 980px) {
  .nav-toggle { display: block; }
  .nav-menu {
    position: fixed; inset: 0; z-index: -1; padding: 110px var(--gutter) 40px;
    background: rgba(0, 0, 0, .94);
    -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px);
    display: flex; flex-direction: column; justify-content: space-between;
    opacity: 0; visibility: hidden; transition: opacity .45s var(--ease), visibility .45s;
    height: 100dvh; width: 100vw; left: 50%; transform: translateX(-50%); top: -14px;
  }
  .nav.is-open .nav-menu { opacity: 1; visibility: visible; }
  .nav-links { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-links a { font-size: clamp(32px, 9vw, 44px); font-weight: 700; letter-spacing: -.04em; padding: 10px 0; color: var(--white); min-height: 56px; background: none !important; }
  .nav-links li { opacity: 0; transform: translateY(16px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
  .nav.is-open .nav-links li { opacity: 1; transform: none; }
  .nav.is-open .nav-links li:nth-child(2) { transition-delay: .04s; }
  .nav.is-open .nav-links li:nth-child(3) { transition-delay: .08s; }
  .nav.is-open .nav-links li:nth-child(4) { transition-delay: .12s; }
  .nav.is-open .nav-links li:nth-child(5) { transition-delay: .16s; }
  .nav-cta { margin: 0; width: 100%; min-height: 56px; font-size: 17px; }
}
@media (min-width: 981px) { .nav-menu { display: flex; align-items: center; } }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: flex-end;
  padding: 140px 0 clamp(56px, 9vh, 110px); overflow: hidden; isolation: isolate;
}
.hero-bg { position: absolute; inset: 0; z-index: -1; background: var(--black); overflow: hidden; }
.hero-bg video, .hero-bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.hero-light {
  position: absolute; width: 70vmax; height: 70vmax; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 255, 255, .11), rgba(255, 255, 255, 0));
  filter: blur(20px); will-change: transform;
}
.hero-light--a { top: -34vmax; left: -12vmax; animation: drift-a 22s ease-in-out infinite alternate; }
.hero-light--b { bottom: -40vmax; right: -18vmax; opacity: .7; animation: drift-b 28s ease-in-out infinite alternate; }
@keyframes drift-a { to { transform: translate3d(14vmax, 8vmax, 0) scale(1.08); } }
@keyframes drift-b { to { transform: translate3d(-12vmax, -6vmax, 0) scale(.94); } }
.hero-k {
  position: absolute; right: -6vw; top: 50%; width: min(78vw, 980px); height: auto; translate: 0 -50%;
  color: rgba(255, 255, 255, .035); pointer-events: none;
}
.hero-k path[fill^="url"], .cta-k path[fill^="url"] { fill: currentColor; }
.hero-sweep {
  position: absolute; left: 0; right: 0; top: 38%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .22), transparent);
  transform: translateX(-100%); animation: sweep 9s var(--ease) 2s infinite;
}
@keyframes sweep { 0% { transform: translateX(-100%); } 45%, 100% { transform: translateX(100%); } }
.hero-grain {
  position: absolute; inset: -50%; opacity: .07; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain { 0% { transform: translate(0, 0); } 33% { transform: translate(-3%, 2%); } 66% { transform: translate(2%, -3%); } 100% { transform: translate(-1%, 1%); } }
.hero-vignette { position: absolute; inset: 0; background: radial-gradient(120% 90% at 50% 40%, transparent 50%, rgba(0, 0, 0, .75)); }
.hero-content { position: relative; }
.hero h1 { margin-bottom: clamp(24px, 3vw, 36px); }
.hero-tagline { font-size: clamp(24px, 3.2vw, 42px); font-weight: 600; letter-spacing: -.035em; line-height: 1.1; margin: 0 0 18px; color: var(--white); }
.hero-text { font-size: clamp(17px, 1.6vw, 20px); color: var(--silver); max-width: 36em; margin-bottom: 36px; }
.hero-bottom { display: flex; flex-wrap: wrap; gap: 32px; justify-content: space-between; align-items: flex-end; }
.scroll-cue { display: inline-flex; align-items: center; gap: 12px; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--silver-2); }
.scroll-cue i { width: 1px; height: 44px; background: var(--line-strong); position: relative; overflow: hidden; }
.scroll-cue i::after { content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--white); animation: cue 2.2s var(--ease) infinite; }
@keyframes cue { to { top: 100%; } }

/* Word-by-word text reveal */
.reveal-text .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .06em; margin-bottom: -.06em; }
.reveal-text .w > span { display: inline-block; animation: word-up 1s var(--ease) both; animation-delay: calc(var(--intro-delay) + var(--i) * 70ms); }
@keyframes word-up { from { transform: translateY(105%); } }
.fade-up { animation: fade-up 1s var(--ease) both; animation-delay: calc(var(--intro-delay) + var(--d, 0) * 1ms); }
@keyframes fade-up { from { opacity: 0; transform: translateY(18px); } }

/* Scroll reveals (only when JS is available) */
html.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--delay, 0s); }
html.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- Statement ---------- */
.statement { font-size: clamp(30px, 4.6vw, 64px); font-weight: 600; letter-spacing: -.045em; line-height: 1.06; max-width: 18em; }
.statement .silver-text { color: var(--silver-2); }

/* ---------- Bento services ---------- */
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
.bento-card {
  --mx: 50%; --my: 50%;
  grid-column: span var(--span, 6);
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; justify-content: space-between; gap: 48px;
  min-height: clamp(280px, 30vw, 380px); padding: clamp(26px, 3vw, 40px);
  border-radius: var(--r-lg); background: var(--char-1); border: 1px solid var(--line);
  transition: transform .6s var(--ease), border-color .4s, background-color .4s;
}
.bento-card::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .5s;
  background: radial-gradient(520px circle at var(--mx) var(--my), rgba(255, 255, 255, .085), transparent 45%);
}
.bento-card:hover { transform: translateY(-4px); border-color: var(--line-strong); background: var(--char-2); }
.bento-card:hover::before { opacity: 1; }
.bento-top { display: flex; justify-content: space-between; align-items: flex-start; }
.bento-num { font-family: var(--mono); font-size: 13px; color: var(--silver-2); letter-spacing: .06em; }
.bento-card .icon { width: clamp(44px, 4.4vw, 60px); height: auto; color: var(--silver); transition: transform .7s var(--ease), color .4s; }
.bento-card:hover .icon { transform: translateY(-4px) rotate(-4deg); color: var(--white); }
.bento-card h3 { font-size: clamp(28px, 3vw, 42px); margin-bottom: 12px; }
.bento-card p { color: var(--silver-2); margin: 0 0 22px; max-width: 30em; }
.bento-card .link-arrow { font-size: 15px; }
.bento-card--feature { background: var(--white); color: var(--black); border-color: transparent; }
.bento-card--feature p, .bento-card--feature .bento-num { color: var(--muted-on-paper); }
.bento-card--feature .icon { color: var(--black); }
.bento-card--feature .link-arrow { color: var(--black); }
.bento-card--feature:hover { background: #fff; }
.bento-card--feature::before { background: radial-gradient(520px circle at var(--mx) var(--my), rgba(0, 0, 0, .06), transparent 45%); }
.bento-card--feature:hover .icon { color: var(--black); }
@media (max-width: 1024px) { .bento-card { grid-column: span 6; } }
@media (max-width: 700px) { .bento-card { grid-column: 1 / -1; min-height: 260px; } }

/* ---------- Work / portfolio ---------- */
.filters { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 12px; margin: 0 0 clamp(28px, 4vw, 48px); scrollbar-width: none; }
.filters::-webkit-scrollbar { display: none; }
.filter {
  flex: none; display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; border-radius: var(--pill);
  border: 1px solid var(--line-strong); color: var(--silver); font-size: 15px; font-weight: 500;
  transition: background-color .3s, color .3s, border-color .3s;
}
.filter:hover { color: var(--white); border-color: var(--white); }
.filter[aria-current="true"] { background: var(--white); color: var(--black); border-color: var(--white); }

.work-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 4vw, 56px) clamp(16px, 2vw, 28px); }
.work-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 980px) { .work-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) { .work-grid, .work-grid--3 { grid-template-columns: 1fr; } }
.work-card { display: block; }
.work-card[hidden] { display: none; }
.work-card.is-filtering { animation: card-in .6s var(--ease) both; }
@keyframes card-in { from { opacity: 0; transform: translateY(14px) scale(.985); } }
.work-media {
  position: relative; aspect-ratio: 4 / 3; border-radius: var(--r-md); overflow: hidden; background: var(--char-1);
  border: 1px solid var(--line); margin-bottom: 18px;
}
.work-media img, .work-media .ph-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.work-card:hover .work-media img, .work-card:hover .work-media .ph-art { transform: scale(1.045); }
.work-meta { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; }
.work-meta h3 { font-size: clamp(21px, 2vw, 26px); letter-spacing: -.025em; }
.work-meta span { color: var(--silver-2); font-size: 15px; white-space: nowrap; }
.work-card p { color: var(--silver-2); margin: 8px 0 0; font-size: 15px; }
.badge {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border-radius: var(--pill);
  background: rgba(0, 0, 0, .6); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid var(--line-strong); font-size: 12px; font-weight: 600; letter-spacing: .04em; color: var(--silver);
}
.work-hover {
  position: absolute; right: 14px; bottom: 14px; z-index: 2; width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center; background: var(--white); color: var(--black);
  opacity: 0; transform: translateY(8px) scale(.9); transition: opacity .45s var(--ease), transform .45s var(--ease);
}
.work-card:hover .work-hover, .work-card:focus-visible .work-hover { opacity: 1; transform: none; }
.empty-state { padding: 64px 32px; border: 1px dashed var(--line-strong); border-radius: var(--r-lg); text-align: center; color: var(--silver-2); }

/* Placeholder artwork for projects/services without images yet */
.ph-art {
  display: grid; place-items: center; color: rgba(255, 255, 255, .5);
  background-color: var(--char-1);
  background-image:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 44px 44px;
}
.ph-art .icon { width: clamp(56px, 8vw, 96px); height: auto; }
.ph-art small { position: absolute; bottom: 16px; left: 50%; translate: -50% 0; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--silver-2); white-space: nowrap; }

/* ---------- Page header ---------- */
.page-hero { padding: clamp(150px, 20vw, 230px) 0 clamp(48px, 7vw, 96px); position: relative; overflow: hidden; }
.page-hero .lead { margin-top: 28px; }
.crumbs { display: flex; gap: 10px; font-size: 14px; color: var(--silver-2); margin-bottom: 28px; flex-wrap: wrap; }
.crumbs a:hover { color: var(--white); }

/* ---------- Service detail ---------- */
.service-layout { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
@media (max-width: 900px) { .service-layout { grid-template-columns: 1fr; } }
.service-copy p { font-size: clamp(18px, 1.6vw, 21px); color: var(--silver); line-height: 1.6; }
.panel { background: var(--char-1); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(26px, 3vw, 36px); }
.panel h3 { font-size: 15px; letter-spacing: .14em; text-transform: uppercase; color: var(--silver-2); font-weight: 600; margin-bottom: 18px; }
.check-list { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 0; }
.check-list li { display: flex; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 18px; font-weight: 500; }
.check-list li:last-child { border-bottom: 0; }
.check-list svg { width: 18px; height: 18px; color: var(--silver-2); flex: none; }
.price-line { font-size: 15px; color: var(--silver-2); margin-bottom: 24px; }
.price-line strong { display: block; color: var(--white); font-size: 22px; letter-spacing: -.02em; margin-top: 4px; }
.gallery { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 14px; }
.gallery > * { grid-column: span 6; border-radius: var(--r-md); overflow: hidden; background: var(--char-1); border: 1px solid var(--line); position: relative; }
.gallery > *:first-child:nth-last-child(odd) { grid-column: 1 / -1; }
.gallery > .wide { grid-column: 1 / -1; }
.gallery img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.gallery .wide img { aspect-ratio: 16 / 9; }
@media (max-width: 680px) { .gallery > * { grid-column: 1 / -1; } }
.gallery button { all: unset; display: block; cursor: zoom-in; width: 100%; height: 100%; }
.gallery button:focus-visible { outline: 2px solid var(--white); outline-offset: -4px; }
.gallery .ph-art { aspect-ratio: 16 / 9; }
.video-frame { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-md); overflow: hidden; background: var(--char-1); border: 1px solid var(--line); }
.video-frame iframe, .video-frame video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; background: #000; }
.video-list { display: grid; gap: 16px; }

/* ---------- Project page ---------- */
.project-cover { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16 / 9; position: relative; background: var(--char-1); }
.project-cover img, .project-cover .ph-art { position: absolute; inset: 0; width: 100%; height: 115%; object-fit: cover; top: -7.5%; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 0; }
.facts > div { padding: 22px 20px 22px 0; }
.facts dt { font-size: 13px; color: var(--silver-2); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 6px; }
.facts dd { margin: 0; font-weight: 600; font-size: 17px; overflow-wrap: anywhere; }
@media (max-width: 560px) { .facts { grid-template-columns: 1fr 1fr; } }
.project-section { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr); gap: clamp(20px, 5vw, 80px); padding-block: clamp(40px, 6vw, 72px); border-top: 1px solid var(--line); }
.project-section h2 { font-size: clamp(22px, 2.2vw, 30px); letter-spacing: -.03em; }
.project-section .body p, .project-section .body li { font-size: clamp(18px, 1.6vw, 21px); color: var(--silver); line-height: 1.6; }
.project-section .body ul { margin: 0; padding-left: 1.1em; }
@media (max-width: 760px) { .project-section { grid-template-columns: 1fr; } }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.chips li { padding: 8px 16px; border-radius: var(--pill); border: 1px solid var(--line-strong); font-size: 15px; color: var(--silver); }
.notice {
  display: flex; gap: 12px; align-items: flex-start; padding: 16px 20px; border-radius: var(--r-sm);
  background: var(--char-2); border: 1px solid var(--line-strong); color: var(--silver); font-size: 15px; margin-bottom: 32px;
}
.next-project { display: block; padding: clamp(48px, 8vw, 96px) 0; border-top: 1px solid var(--line); }
.next-project span { color: var(--silver-2); font-size: 14px; letter-spacing: .14em; text-transform: uppercase; }
.next-project strong { display: flex; align-items: center; gap: 20px; font-size: clamp(36px, 6vw, 80px); letter-spacing: -.05em; line-height: 1; margin-top: 12px; }
.next-project .arrow { width: clamp(28px, 4vw, 52px); height: auto; transition: transform .5s var(--ease); }
.next-project:hover .arrow { transform: translateX(10px); }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 250; background: rgba(0, 0, 0, .94); display: none; place-items: center; padding: 64px 16px; }
.lightbox.is-open { display: grid; animation: fade-up .4s var(--ease); }
.lightbox img { max-height: 86vh; width: auto; border-radius: 12px; }
.lightbox button { position: absolute; top: 18px; right: 18px; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line-strong); background: rgba(0, 0, 0, .5); cursor: pointer; color: var(--white); font-size: 26px; line-height: 1; }

/* ---------- About (light section) ---------- */
.paper { background: var(--paper); color: var(--ink-on-paper); }
.paper .eyebrow, .paper .muted { color: var(--muted-on-paper); }
.paper .lead { color: var(--muted-on-paper); }
.paper :focus-visible { outline-color: var(--black); }
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 7vw, 120px); align-items: start; }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } }
.about-copy p { font-size: clamp(19px, 1.8vw, 23px); line-height: 1.55; letter-spacing: -.02em; color: #3a3a3f; }
.about-copy p:first-child { color: var(--ink-on-paper); font-weight: 500; }
.values { list-style: none; margin: clamp(56px, 8vw, 96px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; counter-reset: v; }
.values li {
  counter-increment: v; padding: 28px 24px 30px; border-radius: var(--r-md); background: #fff; border: 1px solid rgba(0, 0, 0, .06);
  transition: transform .6s var(--ease), box-shadow .6s var(--ease);
}
.values li:hover { transform: translateY(-4px); box-shadow: 0 24px 50px -30px rgba(0, 0, 0, .35); }
.values li::before { content: "0" counter(v); display: block; font-family: var(--mono); font-size: 12px; color: var(--muted-on-paper); margin-bottom: 40px; }
.values h3 { font-size: 22px; letter-spacing: -.03em; margin-bottom: 8px; }
.values p { margin: 0; font-size: 15px; color: var(--muted-on-paper); line-height: 1.5; }
@media (max-width: 1100px) { .values { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 680px) { .values { grid-template-columns: 1fr 1fr; } }
@media (max-width: 420px) { .values { grid-template-columns: 1fr; } }
.discipline-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.discipline-list a, .discipline-list .row { display: flex; align-items: center; gap: 24px; padding: 26px 0; border-bottom: 1px solid var(--line); transition: padding .5s var(--ease), color .3s; color: var(--silver); }
.discipline-list a:hover { padding-left: 14px; color: var(--white); }
.discipline-list .bento-num { width: 32px; }
.discipline-list strong { font-size: clamp(24px, 3.4vw, 44px); letter-spacing: -.04em; flex: 1; color: var(--white); }
.discipline-list .icon { width: 40px; height: 40px; }

/* ---------- CTA ---------- */
.cta { text-align: center; position: relative; overflow: hidden; }
.cta .display-2 { max-width: 13em; margin: 0 auto 24px; }
.cta .lead { margin: 0 auto 40px; }
.cta .btn-row { justify-content: center; }
.cta-k { position: absolute; left: 50%; top: 50%; width: min(70vw, 760px); translate: -50% -50%; color: rgba(255, 255, 255, .03); z-index: -1; pointer-events: none; }

/* ---------- Forms ---------- */
.form-shell { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
@media (max-width: 900px) { .form-shell { grid-template-columns: 1fr; } }
.form-card { background: var(--char-1); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(24px, 4vw, 48px); }
.field { display: grid; gap: 8px; margin-bottom: 20px; }
.field label, .field legend { font-size: 14px; font-weight: 600; color: var(--silver); }
.field .opt { font-weight: 400; color: var(--silver-2); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 54px; padding: 14px 18px; border-radius: var(--r-sm);
  background: var(--ink); border: 1px solid var(--line-strong); color: var(--white); font-size: 17px;
  transition: border-color .25s, box-shadow .25s, background-color .25s; -webkit-appearance: none; appearance: none;
}
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%2398989f' stroke-width='1.6'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; background-size: 16px; padding-right: 44px; }
.field textarea { min-height: 160px; resize: vertical; line-height: 1.5; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--silver); box-shadow: 0 0 0 4px rgba(255, 255, 255, .08); background: #0d0d0f; }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"], .field select[aria-invalid="true"] { border-color: #ff6b6b; }
.field-error { color: #ff8a8a; font-size: 14px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@media (max-width: 600px) { .field-row { grid-template-columns: 1fr; } }
fieldset.field { border: 0; padding: 0; margin: 0 0 26px; min-width: 0; }
fieldset.field legend { margin-bottom: 12px; padding: 0; }
.choice-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.choice span {
  display: inline-flex; align-items: center; min-height: 46px; padding: 0 18px; border-radius: var(--pill);
  border: 1px solid var(--line-strong); font-size: 15px; color: var(--silver); transition: all .25s; cursor: pointer;
}
.choice input:hover + span { border-color: var(--silver); color: var(--white); }
.choice input:checked + span { background: var(--white); color: var(--black); border-color: var(--white); font-weight: 600; }
.choice input:focus-visible + span { outline: 2px solid var(--white); outline-offset: 3px; }
.alert { padding: 16px 20px; border-radius: var(--r-sm); margin-bottom: 24px; font-size: 15px; border: 1px solid; }
.alert--error { background: rgba(255, 90, 90, .08); border-color: rgba(255, 107, 107, .4); color: #ffb3b3; }
.alert--ok { background: rgba(120, 220, 160, .07); border-color: rgba(120, 220, 160, .35); color: #b6f0cc; }

/* Multi-step */
.steps-progress { display: none; }
.is-enhanced .steps-progress { display: flex; gap: 8px; margin-bottom: 36px; list-style: none; padding: 0; }
.steps-progress li { flex: 1; }
.steps-progress i { display: block; height: 3px; border-radius: 3px; background: var(--line-strong); overflow: hidden; position: relative; }
.steps-progress i::after { content: ""; position: absolute; inset: 0; background: var(--white); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); }
.steps-progress li.is-done i::after, .steps-progress li.is-current i::after { transform: scaleX(1); }
.steps-progress span { display: block; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--silver-2); margin-top: 10px; }
.steps-progress li.is-current span { color: var(--white); }
.step + .step { margin-top: 40px; padding-top: 40px; border-top: 1px solid var(--line); }
.step h2 { font-size: clamp(26px, 3vw, 36px); letter-spacing: -.035em; margin-bottom: 8px; }
.step > p { color: var(--silver-2); margin-bottom: 28px; }
.is-enhanced .step { display: none; }
.is-enhanced .step + .step { margin-top: 0; padding-top: 0; border-top: 0; }
.is-enhanced .step.is-active { display: block; animation: step-in .55s var(--ease) both; }
@keyframes step-in { from { opacity: 0; transform: translateX(16px); } }
.step-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 12px; flex-wrap: wrap; }
.step-nav [data-next], .step-nav [data-prev] { display: none; }
.is-enhanced .step-nav [data-next], .is-enhanced .step-nav [data-prev] { display: inline-flex; }
.no-js-submit { margin-top: 32px; }
.is-enhanced .no-js-submit { display: none; }
.dropzone {
  position: relative; display: grid; place-items: center; gap: 6px; text-align: center; padding: 34px 20px;
  border: 1.5px dashed var(--line-strong); border-radius: var(--r-md); color: var(--silver-2); transition: border-color .3s, background-color .3s;
}
.dropzone.is-over, .dropzone:hover { border-color: var(--silver); background: rgba(255, 255, 255, .02); }
.dropzone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dropzone strong { color: var(--white); font-weight: 600; }
.dropzone svg { width: 28px; height: 28px; color: var(--silver); }
.file-list { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 6px; font-size: 14px; color: var(--silver); }
.file-list li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 14px; border-radius: 10px; background: var(--ink); border: 1px solid var(--line); }
.review { display: grid; gap: 0; margin: 0 0 24px; border-top: 1px solid var(--line); }
.review > div { display: grid; grid-template-columns: 140px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.review dt { color: var(--silver-2); font-size: 14px; }
.review dd { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
@media (max-width: 520px) { .review > div { grid-template-columns: 1fr; gap: 4px; } }
.side-note { position: sticky; top: 110px; }
.side-note ul { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 18px; }
.side-note li { display: flex; gap: 14px; color: var(--silver); }
.side-note li b { font-family: var(--mono); font-weight: 400; color: var(--silver-2); font-size: 13px; padding-top: 3px; }
.contact-lines { display: grid; gap: 4px; margin-top: 32px; }
.contact-lines a, .contact-lines span { font-size: clamp(20px, 2vw, 26px); letter-spacing: -.02em; font-weight: 600; }
.contact-lines a:hover { color: var(--silver); }
.contact-lines small { color: var(--silver-2); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; margin-top: 18px; }

/* Thank you */
.thanks { min-height: 86svh; display: grid; place-items: center; text-align: center; padding: 140px 0 80px; }
.check-anim { width: 88px; height: 88px; margin: 0 auto 32px; }
.check-anim circle { stroke-dasharray: 260; stroke-dashoffset: 260; animation: draw 1s var(--ease) .1s forwards; }
.check-anim path { stroke-dasharray: 60; stroke-dashoffset: 60; animation: draw .6s var(--ease) .8s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.ref-chip { display: inline-block; margin: 8px 0 32px; padding: 10px 18px; border-radius: var(--pill); border: 1px solid var(--line-strong); font-family: var(--mono); font-size: 15px; color: var(--silver); }

/* Legal */
.prose { max-width: 760px; }
.prose h2 { font-size: 26px; letter-spacing: -.03em; margin: 48px 0 14px; }
.prose p, .prose li { color: var(--silver); font-size: 17px; line-height: 1.7; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: clamp(64px, 9vw, 112px) 0 40px; background: var(--black); }
.footer-top { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 40px; }
@media (max-width: 900px) { .footer-top { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer-top { grid-template-columns: 1fr; } }
.footer-brand .brand { margin-bottom: 26px; }
.slogan { font-size: clamp(30px, 3.4vw, 44px); font-weight: 700; letter-spacing: -.045em; line-height: 1.02; margin: 0; }
.slogan span { display: block; color: var(--silver-2); }
.slogan span:first-child { color: var(--white); }
.footer h2 { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--silver-2); font-weight: 600; margin-bottom: 18px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.footer ul a, .footer ul span { display: inline-flex; align-items: center; gap: 10px; min-height: 36px; color: var(--silver); font-size: 15px; transition: color .25s; overflow-wrap: anywhere; }
.footer ul a:hover { color: var(--white); }
.footer ul svg { width: 18px; height: 18px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; margin-top: clamp(56px, 8vw, 96px); padding-top: 28px; border-top: 1px solid var(--line); font-size: 14px; color: var(--silver-2); }
.footer-bottom nav { display: flex; gap: 22px; }
.footer-bottom a:hover { color: var(--white); }

/* ---------- Setup / error pages ---------- */
.center-page { min-height: 100svh; display: grid; place-items: center; text-align: center; padding: 120px 24px 60px; }
.center-page .logo-mark { width: 80px; height: 56px; margin: 0 auto 28px; color: var(--white); }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; animation-delay: 0s !important; }
  html.js [data-reveal] { opacity: 1; transform: none; }
  .hero-sweep, .hero-grain { display: none; }
}

/* App logo covers (e.g. JobSite Pro) */
.app-cover { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: radial-gradient(55% 60% at 50% 45%, rgba(200,16,46,.28), transparent 70%), #0a0a0b; transition: transform 1.1s var(--ease); }
.work-card:hover .work-media .app-cover { transform: scale(1.045); }
.work-media .app-cover img { position: static; inset: auto; width: clamp(84px, 11vw, 124px); height: auto; border-radius: 22.5%; box-shadow: 0 22px 50px -14px rgba(200,16,46,.6), 0 0 0 1px rgba(255,255,255,.1); transform: none; }
.app-cover small { position: absolute; bottom: 16px; left: 50%; translate: -50% 0; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--silver-2); white-space: nowrap; }
.work-card:hover .work-media .app-cover img { transform: none; }

/* Photography portfolio wall */
.photo-jump { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 40px; }
.photo-jump a { padding: 8px 16px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: 14px; color: var(--silver-2); text-decoration: none; transition: color .3s, border-color .3s; }
.photo-jump a:hover { color: var(--white); border-color: var(--white); }
.photo-group { margin-bottom: 64px; scroll-margin-top: 100px; }
.photo-group:last-child { margin-bottom: 0; }
.photo-group-title { font-size: clamp(20px, 2.2vw, 26px); margin: 0 0 18px; display: flex; align-items: baseline; gap: 10px; }
.photo-group-title span { font-size: 13px; color: var(--silver-2); letter-spacing: .1em; }
.photo-wall { columns: 3 260px; column-gap: 14px; }
.photo-wall button { all: unset; display: block; width: 100%; margin: 0 0 14px; break-inside: avoid; cursor: zoom-in; border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--line); background: var(--char-1); }
.photo-wall img { display: block; width: 100%; height: auto; transition: transform 1.1s var(--ease); }
.photo-wall button:hover img { transform: scale(1.035); }
.photo-wall button:focus-visible { outline: 2px solid var(--white); outline-offset: -4px; }
@media (max-width: 680px) { .photo-wall { columns: 2; column-gap: 10px; } .photo-wall button { margin-bottom: 10px; } }
.lightbox img { max-width: 100%; object-fit: contain; }
