/* Oliver — portfolio. Zero build, system fonts only. */

:root {
  --bg: #0B0D10;
  --bg-soft: #101318;
  --text: #ECEDEE;
  --text-2: #B4BAC1;
  --muted: #818892;
  --faint: #747C86;
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.17);
  --accent: #B9C7B4;
  --trade: #93B4DA;
  --video: #C3A6E7;
  --workflow: #E4A574;
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --mono: ui-monospace, "SF Mono", "SFMono-Regular", Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --max: 1200px;
  --pad: 32px;
}

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

html {
  background: var(--bg);
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background-color: var(--bg);
  background-image:
    radial-gradient(58% 38% at 72% -8%, rgba(126, 152, 178, 0.12), transparent 70%),
    radial-gradient(42% 34% at 0% 100%, rgba(185, 199, 180, 0.05), transparent 72%);
  background-repeat: no-repeat;
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

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

code {
  font-family: var(--mono);
  font-size: 0.88em;
  color: #D9DDD4;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0.08em 0.34em;
  white-space: nowrap;
}

::selection { background: rgba(185, 199, 180, 0.28); color: #fff; }

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

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

.skip-link {
  position: fixed;
  left: 16px;
  top: -72px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--text);
  color: var(--bg);
  font-size: 13px;
  border-radius: 4px;
}
.skip-link:focus { top: 14px; }

/* ---------- topbar ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 13, 16, 0.92);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  backdrop-filter: blur(14px) saturate(120%);
  border-bottom: 1px solid var(--line);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  line-height: 1;
  white-space: nowrap;
}

.brand-mark {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(185, 199, 180, 0.09);
}

.topbar-meta {
  margin: 0;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  color: var(--faint);
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 12.5px;
  color: var(--text-2);
}

.nav a {
  position: relative;
  padding: 7px 0;
  transition: color 0.25s var(--ease);
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 1px;
  background: var(--text);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.35s var(--ease);
}
.nav a:hover { color: var(--text); }
.nav a:hover::after,
.nav a:focus-visible::after { transform: scaleX(1); }

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

.hero {
  padding: clamp(64px, 9vw, 116px) 0 clamp(72px, 9vw, 112px);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0;
  font-family: var(--mono);
  font-size: 10.5px;
  line-height: 1.4;
  letter-spacing: 0.18em;
  color: var(--muted);
  animation: fade-rise 0.45s var(--ease) both;
}

.eyebrow-line {
  display: inline-block;
  width: 36px;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), rgba(185, 199, 180, 0.06));
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 56px;
  align-items: end;
  margin-top: clamp(40px, 5vw, 62px);
}

.hero-title {
  margin: 0;
  font-size: clamp(38px, 7.6vw, 92px);
  line-height: 1.06;
  letter-spacing: -0.045em;
  font-weight: 600;
  color: var(--text);
}

.line { display: block; }
.line-in {
  display: block;
  animation: hero-line 0.6s var(--ease) both;
}
.line:nth-child(1) .line-in { animation-delay: 0.02s; }
.line:nth-child(2) .line-in { animation-delay: 0.1s; }
.line:nth-child(3) .line-in { animation-delay: 0.18s; }

.hero-side {
  padding-bottom: 8px;
  animation: fade-rise 0.5s var(--ease) 0.24s both;
}

.lede {
  margin: 0;
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-2);
  text-wrap: pretty;
}

.hero-facts {
  margin: 28px 0 0;
  padding: 0;
}
.hero-facts div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 0;
  border-top: 1px solid var(--line);
}
.hero-facts div:last-child { border-bottom: 1px solid var(--line); }
.hero-facts dt {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--faint);
}
.hero-facts dd {
  margin: 0;
  font-size: 12.5px;
  color: var(--text-2);
  white-space: nowrap;
}

.scroll-cue {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 26px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  color: var(--muted);
  transition: color 0.25s var(--ease);
}
.scroll-cue .cue-arrow {
  display: inline-block;
  transition: transform 0.3s var(--ease);
}
.scroll-cue:hover { color: var(--text); }
.scroll-cue:hover .cue-arrow { transform: translateY(3px); }

/* ---------- sections ---------- */

.section {
  padding: clamp(88px, 10vw, 132px) 0;
  border-top: 1px solid var(--line);
}

.sec-head {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr) 300px;
  gap: 40px;
  align-items: end;
  margin-bottom: clamp(48px, 6vw, 76px);
}

.sec-label {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 0;
  padding-top: 7px;
  align-self: start;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  color: var(--muted);
}
.sec-label span { color: var(--accent); }

.sec-head h2 {
  margin: 0;
  font-size: clamp(30px, 4.3vw, 52px);
  line-height: 1.13;
  letter-spacing: -0.035em;
  font-weight: 600;
  text-wrap: balance;
}

.sec-note {
  margin: 0 0 4px;
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--muted);
  text-wrap: pretty;
}

/* ---------- stories ---------- */

.stories {
  list-style: none;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0 64px;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.story {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 14px;
  padding: 30px 0 34px;
  border-bottom: 1px solid var(--line);
}

.story-no {
  margin: 0;
  padding-top: 5px;
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1.4;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.story h3 {
  margin: 0 0 10px;
  font-size: 18px;
  line-height: 1.45;
  letter-spacing: -0.012em;
  font-weight: 600;
}

.story-body > p {
  margin: 0;
  font-size: 14px;
  line-height: 1.85;
  color: var(--text-2);
  text-wrap: pretty;
}

.story-result {
  display: flex;
  gap: 9px;
  margin-top: 14px;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--muted);
}

.result-label {
  flex: none;
  padding-top: 2px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  color: var(--faint);
}

.method-foot {
  margin: 36px 0 0;
  font-family: var(--mono);
  font-size: 10.5px;
  line-height: 1.7;
  letter-spacing: 0.02em;
  color: var(--faint);
}

/* ---------- projects ---------- */

.project {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
  padding: clamp(54px, 7vw, 84px) 0;
  border-top: 1px solid var(--line);
}

.project--flip { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.project--flip .project-cover { order: 2; }
.project--flip .project-info { order: 1; }

.project--trade { --card-accent: var(--trade); }
.project--video { --card-accent: var(--video); }
.workflow { --card-accent: var(--workflow); }

.project-cover { display: block; }

.project-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 18px;
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1.5;
  letter-spacing: 0.12em;
  color: var(--muted);
  white-space: nowrap;
}
.project-meta::after {
  content: "";
  flex: 1;
  height: 1px;
  min-width: 18px;
  background: var(--line);
}
.meta-no { color: var(--card-accent, var(--accent)); }

.project h3 {
  margin: 0;
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.035em;
  font-weight: 600;
}
.project h3 a { transition: color 0.25s var(--ease); }
.project h3 a:hover { color: var(--card-accent, var(--accent)); }

.project-line {
  margin: 16px 0 0;
  max-width: 33em;
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-2);
  text-wrap: pretty;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  font-size: 11.5px;
  line-height: 1.6;
  color: var(--muted);
}
.tags li + li::before {
  content: "·";
  margin: 0 9px;
  color: var(--faint);
}

.proof {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.proof-num {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 2px;
  margin: 0;
  font-size: clamp(30px, 3.3vw, 40px);
  line-height: 1;
  letter-spacing: -0.045em;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  color: var(--text);
}
.proof-num--sm { font-size: clamp(26px, 2.9vw, 36px); }

.proof-unit {
  margin-left: 4px;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--muted);
}

.proof-arrow {
  margin: 0 7px;
  font-size: 0.55em;
  color: var(--faint);
}

.proof-copy { min-width: 0; padding-top: 1px; }

.proof-label {
  margin: 0;
  font-size: 12px;
  line-height: 1.6;
  color: var(--text-2);
}

.measure { margin-top: 5px; }
.measure summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  cursor: pointer;
  padding-bottom: 2px;
  font-size: 10.5px;
  line-height: 1.6;
  letter-spacing: 0.04em;
  color: var(--faint);
  border-bottom: 1px dotted var(--line-2);
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.measure summary::-webkit-details-marker { display: none; }
.measure summary::before {
  content: "+";
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1;
}
.measure[open] summary::before { content: "−"; }
.measure summary:hover { color: var(--text-2); border-color: var(--text-2); }
.measure p {
  margin: 9px 0 0;
  max-width: 38em;
  font-size: 11.5px;
  line-height: 1.75;
  color: var(--muted);
  text-wrap: pretty;
}

.actions {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 26px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: 999px;
  background: var(--text);
  color: #0B0D10;
  font-size: 12.5px;
  line-height: 1;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease), transform 0.25s var(--ease);
}
.btn:hover {
  background: var(--card-accent, var(--accent));
  color: #0B0D10;
}
.btn-arrow {
  display: inline-block;
  font-size: 11px;
  transition: transform 0.25s var(--ease);
}
.btn:hover .btn-arrow { transform: translate(1px, -1px); }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding-bottom: 3px;
  font-size: 12.5px;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.text-link:hover { color: var(--text); border-color: var(--text); }

/* ---------- covers ---------- */

.cover {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  isolation: isolate;
  transition: border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.cover::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.055;
  mix-blend-mode: overlay;
  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.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
  background-size: 160px 160px;
}

.cover-media {
  position: absolute;
  inset: 0;
  display: block;
  z-index: 0;
  transition: transform 0.4s var(--ease);
  transform: translateZ(0);
}

.cover-img {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

a.cover:hover {
  border-color: var(--line-2);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.92);
}
a.cover:hover .cover-media { transform: scale(1.03); }
a.cover:active .cover-media { transform: scale(1.015); }

/* workflow cover */

.workflow { margin-top: clamp(40px, 6vw, 72px); }

.wf-cover {
  aspect-ratio: 16 / 7.2;
  border-radius: 12px;
}

.workflow .cover::after { opacity: 0.07; }

.wf-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  padding: clamp(26px, 4vw, 52px);
  background: linear-gradient(180deg, rgba(8, 10, 12, 0) 0%, rgba(8, 10, 12, 0.5) 52%, rgba(8, 10, 12, 0.86) 100%);
}
.wf-overlay .project-meta {
  margin-bottom: 12px;
  color: rgba(255, 255, 255, 0.62);
}
.wf-overlay .project-meta::after { background: rgba(255, 255, 255, 0.22); }
.wf-overlay h3 {
  margin: 0;
  max-width: 15em;
  font-size: clamp(30px, 4vw, 50px);
  line-height: 1.08;
  letter-spacing: -0.04em;
  font-weight: 600;
}
.wf-sub {
  margin: 12px 0 0;
  font-size: 13px;
  line-height: 1.6;
  color: rgba(236, 237, 238, 0.7);
}

.wf-body {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 48px 64px;
  padding-top: clamp(40px, 5vw, 60px);
}

.wf-lede {
  margin: 0 0 18px;
  font-size: clamp(19px, 1.9vw, 23px);
  line-height: 1.55;
  letter-spacing: -0.015em;
  color: var(--text);
  text-wrap: pretty;
}
.wf-para {
  margin: 0;
  max-width: 40em;
  font-size: 14px;
  line-height: 1.85;
  color: var(--text-2);
  text-wrap: pretty;
}

.rules {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 26px 40px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.rules li {
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.rule-no {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  color: var(--card-accent);
}
.rules h4 {
  margin: 9px 0 6px;
  font-size: 15px;
  line-height: 1.5;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.rules p {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.75;
  color: var(--muted);
  text-wrap: pretty;
}

.arch {
  grid-column: 1 / -1;
  margin: 4px 0 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #15181C;
}
.arch img {
  width: 100%;
  height: auto;
}
.arch figcaption {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  padding: 13px 18px 15px;
  border-top: 1px solid var(--line);
  font-size: 11px;
  line-height: 1.65;
  color: var(--muted);
}
.arch figcaption span {
  flex: none;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  color: var(--card-accent);
}

.wf-metrics {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.wf-metrics .proof {
  margin: 0;
  padding: 0;
  border-top: 0;
}
.wf-metrics .proof + .proof {
  padding-left: 48px;
  border-left: 1px solid var(--line);
}

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

.contact {
  padding: clamp(96px, 11vw, 148px) 0;
  border-top: 1px solid var(--line);
}

.contact .sec-label { margin-bottom: 26px; }

.contact-grid h2 {
  margin: 0;
  font-size: clamp(34px, 5.4vw, 66px);
  line-height: 1.08;
  letter-spacing: -0.04em;
  font-weight: 600;
}

.contact-side {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin-top: clamp(40px, 5vw, 60px);
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.contact-note {
  margin: 0;
  max-width: 26em;
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
}

.email {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  flex: none;
  padding-bottom: 8px;
  font-size: clamp(21px, 2.7vw, 36px);
  line-height: 1.2;
  letter-spacing: -0.03em;
  font-weight: 500;
  color: var(--text);
  border-bottom: 1px solid var(--line-2);
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.email:hover { color: #fff; border-color: var(--accent); }
.email-arrow {
  font-size: 0.55em;
  color: var(--muted);
  transition: color 0.3s var(--ease), transform 0.3s var(--ease);
}
.email:hover .email-arrow { color: var(--accent); transform: translate(2px, -2px); }

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

.footer {
  padding: 26px 0 34px;
  border-top: 1px solid var(--line);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1.7;
  letter-spacing: 0.04em;
  color: var(--faint);
}
.footer-inner p { margin: 0; }

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

@keyframes hero-line {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fade-rise {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

html.js .reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.62s var(--ease), transform 0.62s var(--ease);
  transition-delay: calc(var(--d, 0) * 80ms);
}
html.js .reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}

.stories .story:nth-child(3n + 2) { --d: 1; }
.stories .story:nth-child(3n) { --d: 2; }

@media (hover: hover) and (pointer: fine) {
  a.cover:hover { border-color: var(--line-2); }
}

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

@media (max-width: 1080px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: start;
  }
  .hero-side {
    max-width: 460px;
    padding-bottom: 0;
  }
  .hero-facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0 24px;
    margin-top: 24px;
  }
  .hero-facts div {
    display: block;
    padding: 10px 0 0;
    border-top: 1px solid var(--line);
  }
  .hero-facts div:last-child { border-bottom: 0; }
  .hero-facts dt { margin-bottom: 3px; }
  .hero-facts dd { white-space: normal; }
  .scroll-cue { display: none; }

  .sec-head {
    grid-template-columns: 150px minmax(0, 1fr);
  }
  .sec-note {
    grid-column: 2;
    max-width: 46ch;
  }
}

@media (max-width: 980px) {
  .project,
  .project--flip {
    grid-template-columns: 1fr;
    gap: 30px;
    align-items: start;
  }
  .project--flip .project-cover { order: 0; }
  .project--flip .project-info { order: 1; }
  .project-cover { max-width: 760px; }
  .project-line { max-width: 38em; }

  .wf-body {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .wf-copy { max-width: 46em; }
  .rules { max-width: 46em; }
}

@media (max-width: 860px) {
  .nav { gap: 20px; }
  .topbar-meta { display: none; }

  .stories { grid-template-columns: 1fr; }
  .story {
    grid-template-columns: 30px minmax(0, 1fr);
    padding: 26px 0 30px;
  }
  .story + .story { border-top: 0; }
}

@media (max-width: 800px) {
  /* Reserve the mobile diagram's real ratio before the lazy image lands. */
  .arch img { aspect-ratio: 384 / 740; }
}

@media (max-width: 760px) {
  :root { --pad: 22px; }

  /* Mobile: shorter, lighter entrances. */
  .line-in { animation-duration: 0.45s; }
  html.js .reveal { transition-duration: 0.45s; }

  .topbar-inner { height: 58px; gap: 16px; }
  .brand { font-size: 10px; letter-spacing: 0.2em; }
  .nav { gap: 16px; font-size: 12px; }

  .hero { padding-top: 54px; }
  .hero-grid { margin-top: 34px; gap: 34px; }
  .hero-title { font-size: clamp(36px, 10.4vw, 52px); }
  .hero-facts { grid-template-columns: 1fr; }
  .hero-facts div { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-top: 1px solid var(--line); }
  .hero-facts div:last-child { border-bottom: 1px solid var(--line); }
  .hero-facts dd { font-size: 12px; }

  .section { padding: 72px 0; }
  .sec-head { grid-template-columns: 1fr; gap: 20px; align-items: start; }
  .sec-note { grid-column: 1; max-width: none; }
  .sec-label { padding-top: 0; }
  .sec-head h2 { font-size: clamp(29px, 8.2vw, 40px); }

  .projects .project { padding: 48px 0; }
  .project-meta { white-space: normal; font-size: 9.5px; }
  .project h3 { font-size: clamp(26px, 7.6vw, 34px); }
  .project-line { font-size: 14.5px; }
  .actions { gap: 20px; }

  .wf-cover { aspect-ratio: 4 / 3; min-height: 0; border-radius: 10px; }
  .wf-overlay { padding: 24px 22px; }
  .wf-overlay h3 { font-size: clamp(27px, 8vw, 36px); }
  .wf-body { padding-top: 34px; }

  .rules { grid-template-columns: 1fr; gap: 20px; }
  .wf-metrics { grid-template-columns: 1fr; gap: 26px; }
  .wf-metrics .proof + .proof {
    padding-left: 0;
    padding-top: 24px;
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .contact-side {
    flex-direction: column;
    align-items: flex-start;
    gap: 28px;
    margin-top: 40px;
    padding-top: 22px;
  }
  .email { font-size: clamp(20px, 6vw, 28px); }

  .footer-inner { display: grid; gap: 6px; }
}

@media (max-width: 520px) {
  .proof {
    flex-direction: column;
    gap: 10px;
  }
  .proof-copy { padding-top: 0; }
  .proof-num { font-size: 32px; }
  .proof-num--sm { font-size: 28px; }
  .btn { padding: 10px 16px; }
  .arch figcaption { padding: 12px 14px 14px; }
  .arch figcaption span { width: 100%; }
  .contact h2 { font-size: clamp(32px, 9.8vw, 42px); }
}

@media (max-width: 380px) {
  :root { --pad: 18px; }
  .nav { gap: 12px; font-size: 11.5px; }
  .brand-name { letter-spacing: 0.14em; }
  .hero-title { font-size: 35px; }
}

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .eyebrow,
  .hero-side,
  .line-in {
    animation: none !important;
    opacity: 1;
    transform: none;
  }

  html.js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
    transition-delay: 0s;
  }

  .cover,
  .cover-media,
  .project h3 a,
  .nav a,
  .nav a::after,
  .btn,
  .btn-arrow,
  .text-link,
  .email,
  .email-arrow,
  .scroll-cue,
  .scroll-cue .cue-arrow,
  .measure summary {
    transition: none !important;
  }

  a.cover:hover .cover-media,
  a.cover:active .cover-media,
  .btn:hover .btn-arrow,
  .email:hover .email-arrow,
  .scroll-cue:hover .cue-arrow {
    transform: none !important;
  }
}
