/* ============ Tokens ============ */
:root {
  --bg: #070b16;
  --bg-alt: #0a1020;
  --surface: #0f172a;
  --surface-2: #17213a;
  --line: rgba(148, 163, 184, 0.16);
  --text: #e8edf7;
  --muted: #94a3b8;
  --accent: #2563eb;
  --accent-text: #7ea6ff;
  --accent-ink: #ffffff;
  --accent-soft: rgba(37, 99, 235, 0.16);
  --signal: #2dd4bf;
  --shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.65);
  --panel: linear-gradient(135deg, #0b1b4d 0%, #1d3fb8 55%, #2563eb 100%);

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

  --radius: 18px;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1240px;
  color-scheme: dark;
}

:root[data-theme="light"] {
  --bg: #f8fafc;
  --bg-alt: #f1f5f9;
  --surface: #ffffff;
  --surface-2: #eef2f8;
  --line: rgba(15, 23, 42, 0.1);
  --text: #0b1220;
  --muted: #475569;
  --accent: #2563eb;
  --accent-text: #1d4ed8;
  --accent-ink: #fff;
  --accent-soft: rgba(37, 99, 235, 0.09);
  --signal: #0d9488;
  --shadow: 0 30px 60px -25px rgba(15, 23, 42, 0.22);
  --panel: linear-gradient(135deg, #0b1b4d 0%, #1d3fb8 55%, #2563eb 100%);
  color-scheme: light;
}

/* ============ Base ============ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; overflow-x: clip; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background 0.4s, color 0.4s;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--accent-text); }
::selection { background: var(--accent); color: var(--accent-ink); }

.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: var(--accent-ink); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* grain overlay */
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 60; opacity: 0.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");
}

/* ============ Buttons ============ */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 24px; border-radius: 999px; font-weight: 600; font-size: 15px;
  border: 1px solid transparent; transition: transform 0.25s, background 0.25s, border-color 0.25s, color 0.25s;
}
.btn:hover { transform: translateY(-2px); }
.btn-accent { background: var(--accent); color: var(--accent-ink); }
.btn-accent:hover { background: #1d4ed8; box-shadow: 0 10px 30px -10px rgba(37, 99, 235, 0.7); }
.btn-ghost { border-color: var(--line); background: transparent; }
.btn-ghost:hover { border-color: var(--text); }
.btn-sm { padding: 10px 18px; font-size: 14px; }

/* ============ Nav ============ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px var(--gutter);
  transition: background 0.3s, border-color 0.3s, padding 0.3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line); padding-top: 12px; padding-bottom: 12px;
}
.brand { display: flex; align-items: center; gap: 12px; font-weight: 600; }
.mono {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px;
  background: var(--accent); color: var(--accent-ink); font-family: var(--serif); font-size: 21px; font-style: italic;
}
.brand-name { font-size: 15px; letter-spacing: -0.01em; }
.nav-links { display: flex; gap: 6px; padding: 6px; border: 1px solid var(--line); border-radius: 999px; background: color-mix(in srgb, var(--surface) 60%, transparent); }
.nav-links a { padding: 8px 16px; border-radius: 999px; font-size: 14px; color: var(--muted); transition: color 0.2s, background 0.2s; }
.nav-links a:hover, .nav-links a.active { color: var(--text); background: var(--surface-2); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.theme-toggle {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: transparent;
  display: grid; place-items: center;
}
.theme-toggle .i-moon { display: none; }
:root[data-theme="light"] .theme-toggle .i-sun { display: none; }
:root[data-theme="light"] .theme-toggle .i-moon { display: block; }

/* ============ Hero ============ */
.hero { position: relative; padding: 140px var(--gutter) 80px; max-width: var(--max); margin: 0 auto; }
.hero::after {
  content: ""; position: absolute; z-index: -1; width: 620px; height: 620px; right: -120px; top: 40px;
  background: radial-gradient(circle, var(--accent-soft), transparent 65%); filter: blur(20px);
}
.hero-grid { display: grid; grid-template-columns: 1.25fr 0.9fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.status {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 28px;
  padding: 8px 16px 8px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: 13.5px; color: var(--muted);
}
.pulse { width: 8px; height: 8px; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 0 0 rgba(61, 220, 132, 0.6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(61, 220, 132, 0); } 100% { box-shadow: 0 0 0 0 rgba(61, 220, 132, 0); } }
.hero-title {
  font-size: clamp(42px, 6vw, 84px); line-height: 0.98; letter-spacing: -0.035em; font-weight: 600; margin: 0 0 28px;
}
.hero-title em { letter-spacing: -0.01em; }
.u { position: relative; white-space: nowrap; }
.u { z-index: 0; }
.u::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -0.02em; height: 0.1em; background: var(--signal);
  transform-origin: left; transform: scaleX(0); animation: underline 1s 0.9s cubic-bezier(.2,.7,.2,1) forwards; opacity: 0.85; z-index: -1;
}
@keyframes underline { to { transform: scaleX(1); } }
.hero-lede { font-size: clamp(17px, 1.5vw, 20px); color: var(--muted); max-width: 560px; margin: 0 0 36px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 52px; }
.hero-stats { display: grid; grid-template-columns: repeat(3, auto); gap: 40px; margin: 0; padding-top: 28px; border-top: 1px solid var(--line); justify-content: start; }
.hero-stats dt { font-size: 13px; color: var(--muted); order: 2; }
.hero-stats div { display: flex; flex-direction: column-reverse; gap: 2px; }
.hero-stats dd { margin: 0; font-size: clamp(30px, 3.4vw, 44px); font-weight: 600; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }

.hero-visual { position: relative; }
.dash {
  position: relative; margin: 0; padding: 22px; border-radius: 24px; border: 1px solid var(--line);
  background: linear-gradient(180deg, color-mix(in srgb, var(--surface) 96%, transparent), color-mix(in srgb, var(--surface-2) 70%, transparent));
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.dash::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(140deg, color-mix(in srgb, var(--accent) 70%, transparent), transparent 40%, transparent 70%, color-mix(in srgb, var(--signal) 50%, transparent));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}
.dash-top { display: flex; align-items: center; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.dots { display: flex; gap: 6px; }
.dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--line); }
.dash-title { font-size: 14px; font-weight: 600; }
.dash-chip { margin-left: auto; font-size: 11.5px; padding: 4px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-text); font-weight: 600; }
.dash-label { display: block; font-size: 12px; color: var(--muted); }
.dash-kpi { display: flex; justify-content: space-between; align-items: end; gap: 12px; padding: 18px 0 6px; }
.dash-big { display: block; font-size: clamp(36px, 4vw, 50px); font-weight: 700; letter-spacing: -0.04em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.dash-delta { font-size: 12.5px; font-weight: 600; color: var(--signal); background: color-mix(in srgb, var(--signal) 14%, transparent); padding: 5px 10px; border-radius: 999px; white-space: nowrap; }
.dash-chart { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; height: 190px; padding-top: 28px; margin-top: 8px;
  background: repeating-linear-gradient(to top, var(--line) 0 1px, transparent 1px 47.5px); }
.col { position: relative; display: flex; align-items: flex-end; justify-content: center; gap: 5px; }
.col .b { width: 34%; border-radius: 6px 6px 2px 2px; transform-origin: bottom; }
.col .b0 { height: 5%; background: color-mix(in srgb, var(--muted) 45%, transparent); }
.col .b1 { height: var(--h); background: linear-gradient(to top, var(--accent), color-mix(in srgb, var(--accent) 40%, var(--signal))); transform: scaleY(0); transition: transform 1.2s cubic-bezier(.2,.7,.2,1); }
.col:nth-child(2) .b1 { transition-delay: .12s; } .col:nth-child(3) .b1 { transition-delay: .24s; } .col:nth-child(4) .b1 { transition-delay: .36s; }
.hero-visual.in .col .b1 { transform: scaleY(1); }
.col em { opacity: 0; transition: opacity .5s 1s; }
.hero-visual.in .col em { opacity: 1; }
.col em { position: absolute; bottom: calc(var(--h) + 6px); left: calc(50% + 2.5px); width: 34%; text-align: center; white-space: nowrap; font-family: var(--sans); font-style: normal; font-size: 12.5px; font-weight: 600; color: var(--text); }
.col small { position: absolute; bottom: -24px; font-size: 11.5px; color: var(--muted); white-space: nowrap; }
.dash-legend { display: flex; gap: 16px; justify-content: flex-end; margin-top: 34px; font-size: 11.5px; color: var(--muted); }
.dash-legend span { display: inline-flex; align-items: center; gap: 6px; }
.dash-legend i { width: 10px; height: 10px; border-radius: 3px; }
.lg0 { background: color-mix(in srgb, var(--muted) 45%, transparent); }
.lg1 { background: var(--accent); }
.dash-foot { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 16px; }
.dash-foot > div { padding: 12px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); }
.dash-foot strong { font-size: 14px; font-weight: 600; white-space: nowrap; }
.float-card {
  position: absolute; z-index: 3; background: color-mix(in srgb, var(--surface) 90%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--line); border-radius: 16px; padding: 12px 16px; box-shadow: var(--shadow);
  display: flex; flex-direction: column; animation: float 6s ease-in-out infinite;
}
.fc-1 { left: -56px; top: 34%; flex-direction: row; align-items: center; gap: 12px; }
.fc-1 > span:last-child { display: flex; flex-direction: column; }
.fc-ico { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: color-mix(in srgb, var(--signal) 16%, transparent); color: var(--signal); }
.fc-2 { right: -28px; top: -26px; animation-delay: -3s; }
.fc-label { font-size: 12px; color: var(--muted); }
.fc-value { font-size: 28px; font-weight: 600; letter-spacing: -0.02em; }
.fc-small { font-size: 16px; }
@keyframes float { 50% { transform: translateY(-10px); } }

/* ============ Marquee ============ */
.marquee { border-block: 1px solid var(--line); overflow: hidden; padding: 22px 0; background: var(--bg-alt); }
.marquee-track { display: flex; gap: 36px; width: max-content; animation: marquee 38s linear infinite; align-items: center; }
.marquee span { font-family: var(--serif); font-size: clamp(26px, 3vw, 40px); white-space: nowrap; }
.marquee i { color: var(--accent-text); font-style: normal; font-size: 18px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ============ Sections ============ */
.section { padding: clamp(80px, 11vw, 140px) 0; }
.section-alt { background: var(--bg-alt); }
.section-head { margin-bottom: clamp(40px, 6vw, 72px); max-width: 860px; }
.section-head.row { max-width: none; display: flex; justify-content: space-between; align-items: end; gap: 32px; flex-wrap: wrap; }
.section-head.row > div { max-width: 760px; }
.eyebrow { font-size: 13px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--accent-text); margin: 0 0 18px; font-weight: 600; }
.section-title { font-size: clamp(34px, 4.6vw, 62px); line-height: 1.04; letter-spacing: -0.03em; font-weight: 600; margin: 0; }
.section-lede { color: var(--muted); font-size: 18px; max-width: 680px; margin: 24px 0 0; }

/* ============ Impact ============ */
.impact-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 20px; }
.chart-card, .stat-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.chart-card { padding: clamp(22px, 3vw, 36px); }
.chart-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 26px; }
.chart-head h3 { margin: 0; font-size: 18px; font-weight: 600; }
.chart-note { font-size: 13px; color: var(--muted); }
.bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.bars li { display: grid; grid-template-columns: 160px 1fr 76px; align-items: center; gap: 16px; }
.bar-label { font-size: 14px; color: var(--muted); }
.bar-track { height: 14px; background: var(--surface-2); border-radius: 999px; overflow: hidden; }
.bar-fill { display: block; height: 100%; width: 0; border-radius: 999px; background: var(--accent); transition: width 1.4s cubic-bezier(.2,.7,.2,1); }
.bars li:first-child .bar-fill { background: linear-gradient(90deg, var(--accent), var(--signal)); }
.bar-val { font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; font-size: 15px; }

.stat-stack { display: grid; gap: 20px; }
.stat-card { padding: 24px 26px; }
.stat-card.accent { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.stat-card.accent p { color: inherit; opacity: 0.85; }
.stat-num { font-size: clamp(38px, 4vw, 52px); font-weight: 600; letter-spacing: -0.04em; line-height: 1; }
.stat-card p { margin: 10px 0 0; font-size: 15px; color: var(--muted); line-height: 1.5; }

.how { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 20px; }
.how-item { padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); }
.how-n { font-family: var(--serif); font-style: italic; font-size: 30px; color: var(--accent-text); line-height: 1; }
.how-item h4 { margin: 14px 0 8px; font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.how-item p { margin: 0; font-size: 15px; color: var(--muted); line-height: 1.55; }

/* ============ Work ============ */
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line); background: transparent; font-size: 14px; transition: all 0.2s; }
.chip:hover { border-color: var(--text); }
.chip.is-active { background: var(--text); color: var(--bg); border-color: var(--text); }

.projects { display: grid; gap: 22px; }
.project {
  display: grid; grid-template-columns: 360px 1fr; gap: 0; background: var(--surface); border: 1px solid var(--line);
  border-radius: 24px; overflow: hidden; transition: opacity 0.35s, transform 0.35s;
}
.project.is-hidden { display: none; }
.project-info { padding: clamp(24px, 3vw, 36px); display: flex; flex-direction: column; gap: 14px; border-right: 1px solid var(--line); }
.project-top { display: flex; align-items: center; gap: 14px; }
.project-logo { width: 56px; height: 56px; border-radius: 14px; background: #fff; object-fit: contain; padding: 4px; flex: none; }
.project-logo.dark { background: #111; }
.project-tag { font-size: 12px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--accent-text); font-weight: 600; }
.project h3 { margin: 0; font-size: 26px; letter-spacing: -0.02em; font-weight: 600; line-height: 1.15; }
.project p { margin: 0; color: var(--muted); font-size: 15.5px; }
.project-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 8px; }
.project-meta span { font-size: 12.5px; padding: 5px 11px; border-radius: 999px; background: var(--surface-2); color: var(--muted); }
.project-shots {
  display: grid; grid-auto-flow: column; grid-auto-columns: 250px; gap: 12px; padding: 18px; scroll-padding-inline: 18px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin;
}
.shot {
  position: relative; aspect-ratio: 1; border-radius: 14px; overflow: hidden; background: var(--surface-2);
  border: 0; padding: 0; scroll-snap-align: start;
}
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(.2,.7,.2,1); }
.shot:hover img { transform: scale(1.06); }
.shot::after {
  content: "View ↗"; position: absolute; right: 10px; bottom: 10px; padding: 6px 12px; border-radius: 999px;
  background: rgba(0,0,0,0.65); color: #fff; font-size: 12px; opacity: 0; transform: translateY(6px); transition: all 0.25s;
}
.shot:hover::after, .shot:focus-visible::after { opacity: 1; transform: none; }
.shot-more {
  aspect-ratio: 1; border-radius: 14px; border: 1px dashed var(--line); display: flex; flex-direction: column;
  justify-content: flex-end; gap: 6px; padding: 20px; color: var(--muted); font-size: 14px; scroll-snap-align: start;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.shot-more strong { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 30px; line-height: 1.05; color: var(--text); }
.shot-more:hover { border-color: var(--accent-text); color: var(--accent-text); background: var(--accent-soft); }
.work-note { margin: 28px 0 0; color: var(--muted); font-size: 14px; }

/* ============ Edge ============ */
.edge { background: var(--panel); color: #fff; }
.edge .eyebrow { color: inherit; opacity: 0.7; }
.edge em { color: inherit; }
.edge-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.edge-copy p { font-size: clamp(18px, 1.6vw, 21px); margin: 0 0 28px; line-height: 1.55; }
.edge-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.edge-list li { padding: 16px 0; border-top: 1px solid color-mix(in srgb, currentColor 22%, transparent); font-size: 16px; }
.edge-list strong { font-weight: 700; }

/* ============ Services ============ */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service {
  padding: 30px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  transition: transform 0.3s, border-color 0.3s;
}
.service:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--accent) 50%, transparent); }
.svc-ico { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--accent-soft); color: var(--accent-text); }
.svc-ico svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.service h3 { margin: 20px 0 10px; font-size: 20px; letter-spacing: -0.015em; font-weight: 600; }
.service p { margin: 0 0 18px; color: var(--muted); font-size: 15.5px; }
.service ul { list-style: none; margin: 0; padding: 16px 0 0; border-top: 1px solid var(--line); display: grid; gap: 6px; }
.service li { font-size: 14px; display: flex; gap: 10px; align-items: center; }
.service li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }

.process { list-style: none; padding: 0; margin: 48px 0 0; display: grid; grid-template-columns: repeat(5, 1fr); counter-reset: none; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.process li { padding: 22px 20px; font-weight: 600; font-size: 15px; border-right: 1px solid var(--line); position: relative; }
.process li:last-child { border-right: 0; }
.process span { display: block; font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 24px; color: var(--accent-text); margin-bottom: 4px; }

/* ============ Experience ============ */
.timeline { border-top: 1px solid var(--line); }
.job { display: grid; grid-template-columns: 220px 1fr; gap: 32px; padding: 30px 0; border-bottom: 1px solid var(--line); transition: background 0.3s; }
.job-when { color: var(--muted); font-size: 14.5px; font-variant-numeric: tabular-nums; padding-top: 4px; }
.job h3 { margin: 0 0 8px; font-size: 21px; letter-spacing: -0.015em; font-weight: 600; }
.job h3 span { font-weight: 400; color: var(--muted); font-size: 17px; }
.job p { margin: 0; color: var(--muted); max-width: 760px; font-size: 15.5px; }
.job.highlight .job-when { color: var(--accent-text); font-weight: 600; }
.job.highlight h3::before { content: "★ "; color: var(--accent-text); }

.meta-grid { display: grid; grid-template-columns: 1fr 1fr 2fr; gap: 20px; margin-top: 48px; }
.meta-card { padding: 24px 26px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.meta-card h4 { margin: 0 0 12px; font-size: 13px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); font-weight: 600; }
.meta-card p { margin: 0; line-height: 1.7; }
.tools { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tools li { padding: 7px 13px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; }

/* ============ Contact ============ */
.contact { padding: clamp(100px, 13vw, 170px) 0; text-align: center; position: relative; overflow: hidden; }
.contact::before {
  content: ""; position: absolute; inset: auto 50% -320px auto; transform: translateX(50%); width: 900px; height: 600px;
  background: radial-gradient(ellipse, var(--accent-soft), transparent 65%); z-index: -1;
}
.contact .eyebrow { margin-bottom: 24px; }
.contact-title { font-size: clamp(40px, 6.4vw, 92px); line-height: 1; letter-spacing: -0.04em; font-weight: 600; margin: 0 0 48px; }
.contact-mail {
  display: inline-flex; gap: 10px; font-size: clamp(15px, 2.4vw, 30px); font-weight: 500; padding: clamp(14px, 2vw, 18px) clamp(20px, 3vw, 34px); max-width: 100%;
  border-radius: 999px; background: var(--accent); color: var(--accent-ink); transition: transform 0.25s, background 0.25s, color 0.25s;
}
.contact-mail:hover { transform: scale(1.03); background: #1d4ed8; }
.contact-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 36px; }
.contact-links a { padding: 10px 20px; border: 1px solid var(--line); border-radius: 999px; font-size: 15px; transition: border-color 0.2s, background 0.2s; }
.contact-links a:hover { border-color: var(--text); background: var(--surface); }

.footer { border-top: 1px solid var(--line); padding: 28px 0; font-size: 14px; color: var(--muted); }
.footer-row { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer a:hover { color: var(--text); }

/* ============ Lightbox ============ */
.lightbox {
  position: fixed; inset: 0; z-index: 80; background: rgba(5, 5, 6, 0.92); backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center; gap: 16px; padding: 24px;
}
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: min(88vw, 900px); text-align: center; }
.lightbox img { max-height: 80vh; width: auto; margin: 0 auto; border-radius: 14px; box-shadow: 0 30px 80px rgba(0,0,0,0.6); }
.lightbox figcaption { color: #cfcac2; margin-top: 14px; font-size: 14px; }
.lb-close, .lb-nav {
  width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.2); background: rgba(255,255,255,0.06);
  color: #fff; font-size: 20px; display: grid; place-items: center; flex: none;
}
.lb-close { position: absolute; top: 20px; right: 20px; }
.lb-close:hover, .lb-nav:hover { background: rgba(255,255,255,0.16); }

/* ============ Reveal ============ */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.9s cubic-bezier(.2,.7,.2,1), transform 0.9s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ============ Responsive ============ */
@media (max-width: 1080px) {
  .services { grid-template-columns: repeat(2, 1fr); }
  .how { grid-template-columns: repeat(2, 1fr); }
  .project { grid-template-columns: 1fr; }
  .project-info { border-right: 0; border-bottom: 1px solid var(--line); }
  .meta-grid { grid-template-columns: 1fr 1fr; }
  .meta-card.wide { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .nav-links { display: none; }
  .hero { padding-top: 120px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 540px; margin: 36px auto 0; width: 100%; }
  .fc-1 { left: -8px; }
  .fc-2 { right: -8px; }
  .impact-grid { grid-template-columns: 1fr; }
  .edge-grid { grid-template-columns: 1fr; }
  .process { grid-template-columns: 1fr 1fr; }
  .process li { border-bottom: 1px solid var(--line); }
  .process li:nth-child(2n) { border-right: 0; }
  .process li:last-child { grid-column: 1 / -1; border-bottom: 0; }
  .job { grid-template-columns: 1fr; gap: 8px; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .brand-name { display: none; }
  .hero-stats { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .hero-stats dd { font-size: 26px; }
  .hero-stats dt { font-size: 12px; }
  .services, .how, .meta-grid { grid-template-columns: 1fr; }
  .bars li { grid-template-columns: 1fr auto; gap: 6px 12px; }
  .bar-track { grid-column: 1 / -1; grid-row: 2; }
  .project-shots { grid-auto-columns: 72%; }
  .float-card { display: none; }
  .dash { padding: 16px; }
  .dash-foot { grid-template-columns: 1fr; gap: 6px; }
  .dash-foot > div { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; }
  .dash-foot .dash-label { display: inline; }
  .lb-nav { position: absolute; bottom: 24px; }
  .lb-prev { left: calc(50% - 60px); }
  .lb-next { right: calc(50% - 60px); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .u::after { transform: scaleX(1); }
}
