/* ==========================================================================
   Apex Web Studio — design system
   ========================================================================== */

:root {
  --ink: #08080a;
  --ink-1: #0c0c0f;
  --ink-2: #111116;
  --ink-3: #17171d;
  --paper: #f7f3ea;
  --paper-dim: #d6d0c4;
  --muted: #a9a398;
  --gold: #e8c47c;
  --gold-soft: #f4e2b6;
  --gold-deep: #c99f56;
  --line: rgba(247, 243, 234, 0.1);
  --line-strong: rgba(247, 243, 234, 0.18);
  --danger: #f0a3a3;
  --serif: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --shell: 1200px;
  --pad: clamp(20px, 5vw, 56px);
  --r-sm: 10px;
  --r: 16px;
  --r-lg: 24px;
  --shadow: 0 40px 90px -50px rgba(0, 0, 0, 0.95);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  min-height: 100vh;
  background:
    radial-gradient(1100px 620px at 82% -12%, rgba(232, 196, 124, 0.11), transparent 62%),
    radial-gradient(760px 520px at -12% 28%, rgba(232, 196, 124, 0.05), transparent 60%),
    var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.035;
  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='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

img, svg { display: block; max-width: 100%; }

img { height: auto; }

.i {
  width: 16px;
  height: 16px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

a { color: inherit; text-decoration: none; }

button, input, select, textarea { font: inherit; color: inherit; }

button { cursor: pointer; }

::selection { background: var(--gold); color: #140f06; }

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

[hidden] { display: none !important; }

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 200;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--gold);
  color: #140f06;
  font-size: 13px;
  font-weight: 600;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 16px; }

/* ---------- layout ---------- */

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.section {
  position: relative;
  padding-block: clamp(72px, 9vw, 124px);
}

.section--line { border-top: 1px solid var(--line); }

.section-head {
  display: grid;
  gap: 18px;
  max-width: 780px;
  margin-bottom: clamp(36px, 5vw, 60px);
}

.section-head--split {
  max-width: none;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 24px;
}

/* ---------- type ---------- */

.display {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

h1.display {
  font-size: clamp(2.9rem, 6.4vw, 5.4rem);
}

h2.display {
  font-size: clamp(2.1rem, 4.4vw, 3.7rem);
}

.display em,
.accent {
  font-style: italic;
  background: linear-gradient(100deg, var(--gold-soft), var(--gold) 45%, var(--gold-deep));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  .display em,
  .accent { color: var(--gold); }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
  opacity: 0.65;
}

.eyebrow--plain::before { display: none; }

.lead {
  color: var(--paper-dim);
  font-size: clamp(1rem, 1.2vw, 1.1rem);
  line-height: 1.65;
  max-width: 56ch;
}

.muted { color: var(--muted); }

.kicker {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- buttons ---------- */

.btn {
  --btn-bg: var(--gold);
  --btn-fg: #140f06;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: transform 0.25s var(--ease), background 0.25s, border-color 0.25s, box-shadow 0.25s;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px -14px rgba(232, 196, 124, 0.55);
}

.btn:active { transform: translateY(0); }

.btn .i { width: 15px; height: 15px; }

.btn--gold { background: linear-gradient(120deg, var(--gold-soft), var(--gold) 55%, var(--gold-deep)); }

.btn--ghost {
  background: rgba(247, 243, 234, 0.03);
  border-color: var(--line-strong);
  color: var(--paper);
}
.btn--ghost:hover { border-color: rgba(232, 196, 124, 0.5); background: rgba(232, 196, 124, 0.07); }

.btn--sm { min-height: 40px; padding: 9px 17px; font-size: 12.5px; }

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--paper);
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.icon-btn:hover { border-color: rgba(232, 196, 124, 0.55); color: var(--gold); }
.icon-btn .i { width: 17px; height: 17px; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--gold);
  letter-spacing: 0.01em;
}
.link-arrow .i { width: 14px; height: 14px; transition: transform 0.25s var(--ease); }
.link-arrow:hover .i { transform: translate(2px, -2px); }

.link-quiet {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 0;
  padding: 4px 0;
  background: none;
  color: var(--paper-dim);
  font-size: 12.5px;
  transition: color 0.2s;
}
.link-quiet:hover { color: var(--gold); }
.link-quiet .i { width: 14px; height: 14px; }

/* ---------- header ---------- */

.progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 2px;
  z-index: 90;
  transform: scaleX(var(--p, 0));
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold), var(--gold-soft));
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 80;
  border-bottom: 1px solid transparent;
  transition: background 0.35s, border-color 0.35s, backdrop-filter 0.35s;
}

.site-header[data-scrolled="true"] {
  background: rgba(8, 8, 10, 0.78);
  border-bottom-color: var(--line);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  min-height: 76px;
}

.brand { display: inline-flex; align-items: center; gap: 11px; }

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(140deg, var(--gold-soft), var(--gold) 52%, var(--gold-deep));
  color: #12100b;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 8px 24px -12px rgba(232, 196, 124, 0.8);
}

.brand-name { display: grid; line-height: 1.05; }
.brand-name b { font-family: var(--serif); font-size: 19px; font-weight: 600; letter-spacing: 0.01em; }
.brand-name span { font-size: 9px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }

.nav { display: flex; align-items: center; gap: 26px; }

.nav a {
  position: relative;
  padding: 6px 0;
  font-size: 13px;
  color: rgba(247, 243, 234, 0.72);
  transition: color 0.2s;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.3s var(--ease);
}
.nav a:hover { color: var(--paper); }
.nav a:hover::after { width: 100%; }
.nav a[aria-current="true"] { color: var(--gold); }
.nav a[aria-current="true"]::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: 10px; }

.menu-toggle { display: none; }

.mobile-menu { padding-bottom: 18px; }

.mobile-menu-inner {
  display: grid;
  gap: 2px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(12, 12, 15, 0.96);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}
.mobile-menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 14px;
  color: var(--paper-dim);
}
.mobile-menu a:hover { background: rgba(247, 243, 234, 0.05); color: var(--paper); }
.mobile-menu .btn { margin-top: 8px; color: #140f06; }

/* ---------- hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding-top: clamp(116px, 16vh, 168px);
  padding-bottom: clamp(48px, 6vw, 76px);
}

.hero::before {
  content: "";
  position: absolute;
  top: -20%;
  right: -10%;
  width: min(760px, 80vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 196, 124, 0.16), transparent 65%);
  filter: blur(20px);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: clamp(36px, 5vw, 64px);
  align-items: center;
}

.hero-copy { display: grid; gap: 22px; justify-items: start; animation: rise 0.9s var(--ease) both; }
.hero-stack { animation: rise 1.05s 0.12s var(--ease) both; }

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

.hero h1 { max-width: 15ch; }

.hero .lead { max-width: 50ch; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin-top: 10px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  width: 100%;
}
.hero-meta div { display: flex; align-items: baseline; gap: 8px; }
.hero-meta strong {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  color: var(--gold);
}
.hero-meta span { font-size: 12px; color: var(--muted); }

/* stacked browser mockups */

.hero-stack {
  position: relative;
  aspect-ratio: 1 / 0.94;
  min-height: 380px;
}

.screen {
  position: absolute;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: #0b0b0e;
  box-shadow: var(--shadow);
  animation: float 9s ease-in-out infinite;
}

.screen--main {
  inset: 4% 2% 14% 6%;
  z-index: 3;
  animation-delay: -2s;
}
.screen--side {
  inset: auto -6% 2% auto;
  width: 52%;
  z-index: 4;
  animation-delay: -5s;
}
.screen--small {
  inset: 58% auto auto -8%;
  width: 44%;
  z-index: 5;
  animation-delay: -7s;
}

.screen-bar {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 24px;
  padding-inline: 9px;
  border-bottom: 1px solid rgba(247, 243, 234, 0.07);
  background: #101014;
}
.screen-bar i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(247, 243, 234, 0.22);
}

.screen img {
  width: 100%;
  height: calc(100% - 24px);
  object-fit: cover;
  object-position: top center;
}

.hero-badge {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 6;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 14px;
  border: 1px solid rgba(232, 196, 124, 0.35);
  border-radius: 999px;
  background: rgba(9, 9, 11, 0.86);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-soft);
  box-shadow: 0 14px 30px -20px #000;
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #8fd6a0;
  box-shadow: 0 0 0 0 rgba(143, 214, 160, 0.55);
  animation: pulse 2.4s infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(-1.4deg); }
  50% { transform: translateY(-12px) rotate(-0.6deg); }
}
.screen--side { animation-name: float-alt; }
@keyframes float-alt {
  0%, 100% { transform: translateY(0) rotate(1.8deg); }
  50% { transform: translateY(-9px) rotate(1.2deg); }
}
.screen--small { animation-name: float-small; }
@keyframes float-small {
  0%, 100% { transform: translateY(0) rotate(-2.4deg); }
  50% { transform: translateY(-7px) rotate(-1.6deg); }
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(143, 214, 160, 0.5); }
  70% { box-shadow: 0 0 0 7px rgba(143, 214, 160, 0); }
  100% { box-shadow: 0 0 0 0 rgba(143, 214, 160, 0); }
}

/* ---------- marquee ---------- */

.marquee {
  position: relative;
  overflow: hidden;
  border-block: 1px solid var(--line);
  padding-block: 18px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 46s linear infinite;
}

.marquee:hover .marquee-track { animation-play-state: paused; }

.marquee-group { display: flex; align-items: center; }

.marquee-group span {
  display: inline-flex;
  align-items: center;
  gap: 32px;
  padding-inline: 32px;
  font-family: var(--serif);
  font-size: clamp(15px, 1.7vw, 19px);
  letter-spacing: 0.02em;
  color: rgba(247, 243, 234, 0.6);
  white-space: nowrap;
}
.marquee-group span::after {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0.6;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- page note ---------- */

.note {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  max-width: 62ch;
  margin-top: 26px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-left: 2px solid var(--gold);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  background: rgba(247, 243, 234, 0.025);
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}
.note .i { width: 15px; height: 15px; flex: none; margin-top: 3px; color: var(--gold); }

/* ---------- filters + work ---------- */

.filters-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: clamp(22px, 3vw, 30px);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--paper-dim);
  font-size: 12.5px;
  letter-spacing: 0.01em;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.chip:hover { border-color: rgba(232, 196, 124, 0.45); color: var(--paper); }
.chip[aria-pressed="true"] {
  border-color: var(--gold);
  background: var(--gold);
  color: #140f06;
  font-weight: 600;
}
.chip .count { font-size: 10.5px; opacity: 0.62; }

.work-count {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 2.4vw, 30px);
}

.work-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: linear-gradient(180deg, rgba(247, 243, 234, 0.045), rgba(247, 243, 234, 0.012));
  transition: transform 0.45s var(--ease), border-color 0.35s, box-shadow 0.45s;
}
.work-card:hover {
  transform: translateY(-5px);
  border-color: rgba(232, 196, 124, 0.35);
  box-shadow: 0 28px 60px -40px rgba(0, 0, 0, 0.9);
}

.work-media {
  position: relative;
  padding: 16px 16px 0;
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(232, 196, 124, 0.1), transparent 70%),
    rgba(0, 0, 0, 0.28);
}

.work-browser {
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-bottom: 0;
  border-radius: 9px 9px 0 0;
  background: #0b0b0e;
  box-shadow: 0 22px 46px -30px #000;
}

.work-shot {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: #0b0b0e;
  cursor: zoom-in;
}
.work-shot img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.8s var(--ease), opacity 0.4s;
}
.work-card:hover .work-shot img { transform: scale(1.035); }

.work-shot::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(8, 8, 10, 0.55));
  opacity: 0;
  transition: opacity 0.35s;
}
.work-card:hover .work-shot::after { opacity: 1; }

.zoom-hint {
  position: absolute;
  inset: auto 10px 10px auto;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(8, 8, 10, 0.82);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--paper-dim);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.3s, transform 0.3s;
}
.work-shot:hover .zoom-hint,
.work-shot:focus-visible .zoom-hint { opacity: 1; transform: none; }
.zoom-hint .i { width: 12px; height: 12px; }

.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(8, 8, 10, 0.72);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.status--live { border-color: rgba(143, 214, 160, 0.34); color: #a9e2b7; }
.status--live .dot { width: 5px; height: 5px; animation: none; }
.status--concept { border-color: rgba(247, 243, 234, 0.16); }

.work-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 7px;
  padding: 16px 18px 18px;
  border-top: 1px solid var(--line);
}

.work-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.work-title h3 {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: 0.005em;
}
.work-cat {
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-deep);
  white-space: nowrap;
}

.work-body p { font-size: 13px; line-height: 1.55; color: var(--muted); }

.work-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 12px;
}

.empty-state {
  padding: 48px 0;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

/* ---------- services ---------- */

.services {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(36px, 6vw, 76px);
  border-top: 1px solid var(--line);
}

.service {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
  padding: 22px 4px;
  border-bottom: 1px solid var(--line);
  transition: background 0.3s, padding-left 0.3s var(--ease);
}
.service:hover { background: rgba(232, 196, 124, 0.03); padding-left: 10px; }

.service-num {
  padding-top: 3px;
  font-family: var(--serif);
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--gold);
}

.service h3 {
  font-family: var(--serif);
  font-size: 1.28rem;
  font-weight: 500;
  line-height: 1.2;
}
.service p { margin-top: 4px; font-size: 13px; color: var(--muted); line-height: 1.55; }

.service .i {
  width: 16px;
  height: 16px;
  margin-top: 6px;
  color: var(--gold);
  opacity: 0;
  transform: translate(-4px, 4px);
  transition: opacity 0.3s, transform 0.3s var(--ease);
}
.service:hover .i { opacity: 1; transform: none; }

.services-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 34px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.services-foot p { font-family: var(--serif); font-size: clamp(1.1rem, 1.6vw, 1.35rem); color: var(--paper-dim); }

/* ---------- process ---------- */

.process-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 24px);
}

.step {
  position: relative;
  overflow: hidden;
  padding: clamp(22px, 2.6vw, 32px);
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: linear-gradient(180deg, rgba(247, 243, 234, 0.035), rgba(247, 243, 234, 0.008));
}
.step::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(232, 196, 124, 0.55), transparent);
  opacity: 0.7;
}

.step-num {
  font-family: var(--serif);
  font-size: clamp(2.8rem, 4.6vw, 3.6rem);
  line-height: 1;
  color: rgba(232, 196, 124, 0.24);
}

.step h3 {
  margin-top: 14px;
  font-family: var(--serif);
  font-size: 1.42rem;
  font-weight: 500;
  line-height: 1.2;
}
.step p { margin-top: 8px; font-size: 13.5px; color: var(--muted); line-height: 1.6; }

.step-list {
  display: grid;
  gap: 7px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  list-style: none;
  padding-left: 0;
}
.step-list li {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: 12.5px;
  color: var(--paper-dim);
}
.step-list .i { width: 13px; height: 13px; flex: none; margin-top: 3px; color: var(--gold); }

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: clamp(32px, 4vw, 48px);
  padding-top: clamp(28px, 3vw, 36px);
  border-top: 1px solid var(--line);
}
.stat strong {
  display: block;
  font-family: var(--serif);
  font-size: clamp(2.1rem, 3.6vw, 2.9rem);
  font-weight: 500;
  line-height: 1;
  color: var(--paper);
}
.stat strong .plus { color: var(--gold); }
.stat span {
  display: block;
  margin-top: 8px;
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- about ---------- */

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: clamp(32px, 5vw, 68px);
  align-items: center;
}

.about-figure {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 22px;
  aspect-ratio: 4 / 3.3;
  box-shadow: var(--shadow);
}
.about-figure > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.about-figure::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(6, 6, 8, 0.85));
}

.about-quote {
  position: absolute;
  inset: auto 16px 16px;
  z-index: 2;
  padding: 16px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: rgba(8, 8, 10, 0.7);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
.about-quote p {
  font-family: var(--serif);
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  font-style: italic;
  line-height: 1.35;
  color: var(--paper);
}
.about-quote span {
  display: block;
  margin-top: 10px;
  font-family: var(--sans);
  font-size: 9.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

.about-copy { display: grid; gap: 18px; }
.about-copy p { color: var(--paper-dim); font-size: 15px; line-height: 1.75; }
.about-copy p strong { color: var(--paper); font-weight: 500; }

.pillars {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 8px;
}
.pillar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(247, 243, 234, 0.02);
  font-size: 12.5px;
  color: var(--paper-dim);
}
.pillar .i { width: 16px; height: 16px; color: var(--gold); flex: none; }

/* ---------- principles ---------- */

.principles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--line);
}

.principle {
  display: grid;
  gap: 10px;
  align-content: start;
  padding: clamp(22px, 2.6vw, 30px);
  background: var(--ink-1);
}
.principle .i { width: 20px; height: 20px; color: var(--gold); }
.principle h3 {
  font-family: var(--serif);
  font-size: 1.24rem;
  font-weight: 500;
  line-height: 1.25;
  margin-top: 4px;
}
.principle p { font-size: 13px; color: var(--muted); line-height: 1.6; }

/* ---------- faq ---------- */

.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
.faq-aside { display: grid; gap: 18px; }
.faq-aside .btn { justify-self: start; }

.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }

.faq-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 19px 2px;
  list-style: none;
  cursor: pointer;
  font-family: var(--serif);
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  font-weight: 500;
  line-height: 1.3;
  color: var(--paper);
  transition: color 0.2s;
}
.faq-trigger::-webkit-details-marker { display: none; }
.faq-trigger::marker { content: ""; }
.faq-trigger:hover { color: var(--gold-soft); }
.faq-trigger .i {
  width: 17px;
  height: 17px;
  flex: none;
  color: var(--gold);
  transition: transform 0.35s var(--ease);
}
.faq-item[open] .faq-trigger { color: var(--gold-soft); }
.faq-item[open] .faq-trigger .i { transform: rotate(180deg); }
.faq-item[open] .faq-panel { animation: faq-in 0.4s var(--ease) both; }

@keyframes faq-in {
  from { opacity: 0; transform: translateY(-5px); }
}

.faq-panel p {
  max-width: 58ch;
  padding: 0 34px 20px 2px;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--muted);
}
.faq-panel strong { color: var(--paper); font-weight: 500; }
.faq-panel a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(0, 0.78fr);
  gap: clamp(22px, 3.4vw, 40px);
  align-items: start;
}

.form-card {
  padding: clamp(22px, 3vw, 36px);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(232, 196, 124, 0.07), transparent 60%),
    rgba(247, 243, 234, 0.028);
}

.form-grid { display: grid; gap: 16px; }

.field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.field { min-width: 0; }

label {
  display: block;
  margin-bottom: 7px;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
}
label .opt { text-transform: none; letter-spacing: 0.02em; opacity: 0.7; font-size: 10px; }

input,
select,
textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(8, 8, 10, 0.5);
  color: var(--paper);
  font-size: 14px;
  line-height: 1.4;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

input::placeholder,
textarea::placeholder { color: rgba(169, 163, 152, 0.65); }

input:hover,
select:hover,
textarea:hover { border-color: var(--line-strong); }

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: rgba(232, 196, 124, 0.65);
  box-shadow: 0 0 0 3px rgba(232, 196, 124, 0.14);
  background: rgba(8, 8, 10, 0.75);
}

select {
  appearance: none;
  padding-right: 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='none' stroke='%23e8c47c' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m3 5 4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  cursor: pointer;
}
select option { background: #111116; color: var(--paper); }

textarea { min-height: 128px; resize: vertical; }

[aria-invalid="true"] { border-color: rgba(240, 163, 163, 0.75) !important; }

.field-error {
  display: none;
  margin-top: 6px;
  font-size: 11.5px;
  line-height: 1.4;
  color: var(--danger);
}
.field-error[data-show="true"] { display: block; }

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

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
}

.form-hint {
  margin-top: 12px;
  font-size: 11.5px;
  line-height: 1.6;
  color: var(--muted);
}

.form-status {
  min-height: 0;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--gold-soft);
}
.form-status:empty { display: none; }
.form-status[data-tone="error"] { color: var(--danger); }

.form-success {
  display: grid;
  gap: 8px;
  padding: 16px 18px;
  border: 1px solid rgba(143, 214, 160, 0.3);
  border-radius: 12px;
  background: rgba(143, 214, 160, 0.06);
}
.form-success strong { font-family: var(--serif); font-size: 1.25rem; font-weight: 500; }
.form-success p { font-size: 13px; color: var(--paper-dim); }
.form-success a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }

.contact-aside { display: grid; gap: 12px; }

.contact-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 17px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(247, 243, 234, 0.025);
  transition: border-color 0.25s, background 0.25s, transform 0.25s var(--ease);
}
.contact-card:hover {
  border-color: rgba(232, 196, 124, 0.38);
  background: rgba(232, 196, 124, 0.045);
  transform: translateY(-2px);
}
.contact-card .i {
  width: 19px;
  height: 19px;
  flex: none;
  color: var(--gold);
  padding: 7px;
  box-sizing: content-box;
  border: 1px solid rgba(232, 196, 124, 0.18);
  border-radius: 10px;
  background: rgba(232, 196, 124, 0.08);
}
.contact-card-body { min-width: 0; }
.contact-card .kicker { display: block; margin-bottom: 3px; font-size: 9.5px; }
.contact-card strong { display: block; font-size: 13px; font-weight: 500; line-height: 1.45; overflow-wrap: anywhere; }
.contact-card small { display: block; margin-top: 2px; font-size: 11.5px; color: var(--muted); }
.contact-card .arrow { margin-left: auto; width: 15px; height: 15px; color: var(--gold); flex: none; }

.contact-note {
  padding: 16px 17px;
  border: 1px solid var(--line);
  border-left: 2px solid var(--gold);
  border-radius: 0 14px 14px 0;
  background: rgba(232, 196, 124, 0.035);
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--paper-dim);
}
.contact-note strong { color: var(--gold-soft); font-weight: 500; }

.contact-note ul {
  display: grid;
  gap: 6px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}
.contact-note li { display: flex; gap: 7px; align-items: flex-start; font-size: 12px; color: var(--muted); }
.contact-note .i { width: 13px; height: 13px; flex: none; margin-top: 3px; color: var(--gold); }

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--ink-1);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: clamp(28px, 5vw, 56px);
  padding-block: clamp(44px, 6vw, 64px) 36px;
}

.footer-brand p {
  max-width: 38ch;
  margin-top: 14px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}

.footer-col h3 {
  margin-bottom: 14px;
  font-family: var(--sans);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}
.footer-col ul { display: grid; gap: 9px; list-style: none; padding: 0; }
.footer-col a { font-size: 13px; color: var(--paper-dim); transition: color 0.2s; }
.footer-col a:hover { color: var(--gold); }

.socials { display: flex; gap: 8px; margin-top: 16px; }
.socials .icon-btn { width: 38px; height: 38px; }
.socials .i { width: 16px; height: 16px; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-block: 18px;
  border-top: 1px solid var(--line);
  font-size: 11.5px;
  color: rgba(169, 163, 152, 0.85);
}
.footer-bottom .sig { font-family: var(--serif); font-style: italic; font-size: 13px; color: var(--muted); }

/* ---------- floating actions ---------- */

.float-wa {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 70;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 48px;
  padding: 12px 18px;
  border: 1px solid rgba(232, 196, 124, 0.4);
  border-radius: 999px;
  background: rgba(10, 10, 12, 0.88);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  color: var(--paper);
  font-size: 12.5px;
  font-weight: 500;
  box-shadow: 0 18px 40px -22px #000;
  transition: border-color 0.25s, background 0.25s, transform 0.25s var(--ease);
}
.float-wa:hover { border-color: var(--gold); background: rgba(232, 196, 124, 0.12); transform: translateY(-2px); }
.float-wa .i { width: 18px; height: 18px; color: var(--gold); }

.float-top {
  position: fixed;
  right: 18px;
  bottom: 78px;
  z-index: 69;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(10, 10, 12, 0.88);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  color: var(--paper-dim);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.3s, transform 0.3s, visibility 0.3s, color 0.2s, border-color 0.2s;
}
.float-top[data-show="true"] { opacity: 1; visibility: visible; transform: none; }
.float-top:hover { color: var(--gold); border-color: rgba(232, 196, 124, 0.45); }
.float-top .i { width: 15px; height: 15px; }

/* ---------- lightbox ---------- */

.lightbox {
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--paper);
}
.lightbox::backdrop {
  background: rgba(4, 4, 6, 0.86);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.lightbox[open] { display: grid; place-items: center; }

.lightbox-inner {
  position: relative;
  width: min(1040px, 94vw);
  margin: auto;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  background: var(--ink-1);
  box-shadow: 0 50px 120px -40px #000;
  overflow: hidden;
  animation: lb-in 0.3s var(--ease);
}
@keyframes lb-in {
  from { opacity: 0; transform: translateY(12px) scale(0.99); }
}

.lightbox-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding-inline: 14px 46px;
  border-bottom: 1px solid var(--line);
  background: var(--ink-2);
}
.lightbox-bar i { width: 6px; height: 6px; border-radius: 50%; background: rgba(247, 243, 234, 0.2); }
.lightbox-bar span {
  margin-left: 8px;
  font-size: 10.5px;
  letter-spacing: 0.1em;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lightbox-close {
  position: absolute;
  top: 4px;
  right: 6px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(8, 8, 10, 0.8);
  color: var(--paper);
  transition: color 0.2s, border-color 0.2s;
}
.lightbox-close:hover { color: var(--gold); border-color: rgba(232, 196, 124, 0.5); }
.lightbox-close .i { width: 15px; height: 15px; }

.lightbox-shot {
  max-height: min(68vh, 660px);
  overflow: auto;
  background: #0a0a0c;
  scrollbar-width: thin;
}
.lightbox-shot img { width: 100%; height: auto; }

.lightbox-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 20px;
  border-top: 1px solid var(--line);
}
.lightbox-foot h3 { font-family: var(--serif); font-size: 1.3rem; font-weight: 500; line-height: 1.2; }
.lightbox-foot p { margin-top: 2px; font-size: 12px; color: var(--muted); }
.lightbox-foot .actions { display: flex; align-items: center; gap: 10px; }

/* ---------- legal / prose pages ---------- */

.page-hero {
  padding-top: clamp(112px, 15vh, 150px);
  padding-bottom: clamp(28px, 4vw, 44px);
  border-bottom: 1px solid var(--line);
}
.page-hero h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); }
.page-hero .lead { margin-top: 16px; }
.page-hero .updated { margin-top: 18px; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }

.prose {
  max-width: 74ch;
  padding-block: clamp(40px, 6vw, 64px) clamp(60px, 8vw, 90px);
  display: grid;
  gap: 30px;
}
.prose section { display: grid; gap: 10px; }
.prose h2 {
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2vw, 1.65rem);
  font-weight: 500;
  line-height: 1.25;
}
.prose p, .prose li { font-size: 14px; line-height: 1.75; color: var(--paper-dim); }
.prose ul { display: grid; gap: 7px; padding-left: 18px; }
.prose a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.prose .callout {
  padding: 14px 16px;
  border-left: 2px solid var(--gold);
  background: rgba(232, 196, 124, 0.04);
  font-size: 13px;
  color: var(--muted);
}

/* ---------- reveal ---------- */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.js [data-reveal].is-visible { opacity: 1; transform: none; }

/* ---------- responsive ---------- */

@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-copy { justify-items: start; }
  .hero h1 { max-width: 18ch; }
  .hero-stack { width: min(620px, 100%); margin-inline: auto; aspect-ratio: 1 / 0.8; }
  .nav { display: none; }
  .header-actions .header-cta { display: none; }
  .menu-toggle { display: inline-grid; }
  .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about-grid { grid-template-columns: minmax(0, 1fr); }
  .about-figure { aspect-ratio: 16 / 10; max-height: 440px; }
  .process-grid { grid-template-columns: 1fr; }
  .step { display: grid; grid-template-columns: 72px 1fr; column-gap: 18px; }
  .step-num { grid-row: span 3; }
  .step h3 { margin-top: 0; }
  .principles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .contact-aside { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-note, .contact-aside .contact-card:last-child { grid-column: span 2; }
  .faq-grid { grid-template-columns: minmax(0, 1fr); }
  .faq-aside { max-width: 640px; }
  .section-head--split { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 860px) {
  .services { grid-template-columns: minmax(0, 1fr); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 18px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: span 2; }
  .work-cat { display: none; }
}

@media (max-width: 640px) {
  html { scroll-padding-top: 84px; }
  .header-inner { min-height: 68px; }
  .brand-mark { width: 34px; height: 34px; font-size: 18px; }
  .brand-name b { font-size: 17px; }
  .hero { padding-top: 104px; }
  .hero-stack { aspect-ratio: 1 / 0.86; min-height: 300px; }
  .screen--side { inset: auto -4% 0 auto; width: 56%; }
  .screen--small { inset: 62% auto auto -4%; width: 46%; }
  .hero-meta { gap: 8px 18px; }
  .hero-meta strong { font-size: 19px; }
  .work-grid { grid-template-columns: minmax(0, 1fr); }
  .work-media { padding: 13px 13px 0; }
  .principles { grid-template-columns: minmax(0, 1fr); }
  .contact-aside { grid-template-columns: minmax(0, 1fr); }
  .contact-note, .contact-aside .contact-card:last-child { grid-column: span 1; }
  .field-row { grid-template-columns: minmax(0, 1fr); }
  .step { grid-template-columns: 1fr; }
  .step-num { font-size: 2.4rem; }
  .form-actions .btn { width: 100%; }
  .float-wa span { display: none; }
  .float-wa { width: 50px; height: 50px; padding: 0; justify-content: center; }
  .float-top { bottom: 78px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-bottom { font-size: 11px; }
  .lightbox-inner { width: 94vw; }
  .lightbox-shot { max-height: 60vh; }
  .lightbox-foot { padding: 14px 16px; }
  .lightbox-foot .actions { width: 100%; }
}

/* ---------- motion preferences ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .js [data-reveal] { opacity: 1; transform: none; }
  .screen { animation: none !important; }
  .marquee-track { animation: none !important; flex-wrap: wrap; width: auto; }
  .marquee-group[aria-hidden="true"] { display: none; }
  .marquee {
    -webkit-mask-image: none;
    mask-image: none;
  }
}

/* ---------- print ---------- */

@media print {
  body { background: #fff; color: #111; }
  .site-header, .float-wa, .float-top, .progress, .lightbox, .marquee { display: none !important; }
  a { color: #111; text-decoration: underline; }
  .section { padding-block: 24px; }
}
