/* ============================================================
   AKAM — Brand tokens & base styles
   ============================================================ */

@font-face {
  font-family: 'Neue Swiss';
  src: url('assets/fonts/NeueSwiss-Regular.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Neue Swiss';
  src: url('assets/fonts/NeueSwiss-Italic.woff2') format('woff2');
  font-weight: 400; font-style: italic; font-display: swap;
}
@font-face {
  font-family: 'Neue Swiss';
  src: url('assets/fonts/NeueSwiss-Medium.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Neue Swiss';
  src: url('assets/fonts/NeueSwiss-MediumItalic.woff2') format('woff2');
  font-weight: 500; font-style: italic; font-display: swap;
}
@font-face {
  font-family: 'Rooftop Mono';
  src: url('assets/fonts/RooftopMono-Regular.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}

:root {
  /* Brand */
  --white: #F8F7F4;
  --black: #131618;
  --blue:  #D1D7DB;
  --green: #BFBBA7;
  --cream: #EFEADD;

  --bg: var(--white);
  --fg: var(--black);
  --rule: rgba(19, 22, 24, 0.10);
  --muted: rgba(19, 22, 24, 0.50);

  --sans: 'Neue Swiss', 'Helvetica Neue', Arial, sans-serif;
  --mono: 'Rooftop Mono', ui-monospace, 'JetBrains Mono', monospace;

  --pad-x: clamp(24px, 5vw, 80px);
  --gutter: clamp(16px, 2vw, 32px);
}

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

html, body {
  margin: 0; padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }

/* Typography */
.mono {
  font-family: var(--mono);
  font-weight: 400;
  text-transform: lowercase;
  letter-spacing: 0.02em;
  font-size: 11px;
}
.mono-sm { font-size: 10px; }
.mono-md { font-size: 12px; }
.mono-lg { font-size: 14px; }

.eyebrow {
  font-family: var(--mono);
  text-transform: lowercase;
  letter-spacing: 0.02em;
  font-size: 11px;
  color: var(--muted);
}

.h-display {
  font-family: var(--sans);
  font-weight: 400;
  font-size: clamp(56px, 11vw, 180px);
  line-height: 0.92;
  letter-spacing: -0.025em;
  margin: 0;
}
.h-1 {
  font-family: var(--sans);
  font-weight: 400;
  font-size: clamp(44px, 7vw, 112px);
  line-height: 1.0;
  letter-spacing: -0.02em;
  margin: 0;
}
.h-2 {
  font-family: var(--sans);
  font-weight: 400;
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0;
}
.h-3 {
  font-family: var(--sans);
  font-weight: 400;
  font-size: clamp(20px, 1.8vw, 26px);
  line-height: 1.2;
  letter-spacing: -0.005em;
  margin: 0;
}
.lede {
  font-family: var(--sans);
  font-weight: 400;
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.5;
  letter-spacing: 0;
  max-width: 60ch;
}
.body {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.6;
  letter-spacing: 0;
}

/* ------------------------------------------------------------
   Page shell
   ------------------------------------------------------------ */
.app {
  min-height: 100vh;
  background: var(--bg);
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
.rule { border: 0; border-top: 1px solid var(--rule); margin: 0; }

/* ------------------------------------------------------------
   Top bar (architectural — just brand + menu)
   ------------------------------------------------------------ */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px var(--pad-x);
  color: var(--fg);
  background: rgba(248, 247, 244, 0.78);
  backdrop-filter: blur(14px) saturate(1.1);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  border-bottom: 1px solid rgba(19, 22, 24, 0.06);
}
.topbar > * { pointer-events: auto; }
.topbar .brand {
  display: inline-flex;
  align-items: center;
  height: 16px;
}
.topbar .brand svg { height: 100%; fill: currentColor; }
.topbar .meta {
  display: flex; gap: 28px;
  font-family: var(--mono);
  font-size: 11px;
  text-transform: lowercase;
  letter-spacing: 0.04em;
}
.topbar .menu-trigger {
  font-family: var(--mono);
  font-size: 14px;
  text-transform: lowercase;
  letter-spacing: 0.04em;
  display: inline-flex; align-items: center; gap: 10px;
}
.topbar .menu-trigger .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: currentColor;
  display: inline-block;
}
@media (max-width: 720px) {
  .topbar .meta { display: none; }
}

/* Menu overlay */
.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: var(--black);
  color: var(--white);
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 22px var(--pad-x) 40px;
  animation: menu-in 320ms cubic-bezier(0.2,0.7,0.2,1) both;
}
.menu-overlay .menu-top {
  grid-column: 1 / -1;
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 80px;
}
.menu-overlay .menu-top .brand svg { fill: var(--white); height: 16px; }
.menu-overlay .close {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: lowercase;
  letter-spacing: 0.04em;
  color: var(--white);
}
.menu-overlay .links {
  display: flex; flex-direction: column;
  gap: 12px;
  align-self: end;
}
.menu-overlay .links a {
  font-family: var(--sans);
  font-weight: 400;
  font-size: clamp(40px, 6vw, 84px);
  line-height: 1.0;
  letter-spacing: -0.02em;
  padding: 6px 0;
  display: flex; align-items: baseline; gap: 18px;
  transition: opacity 200ms ease;
}
.menu-overlay .links a .idx {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: lowercase;
  letter-spacing: 0.04em;
  color: rgba(248,247,244,0.45);
}
.menu-overlay .links a:hover { opacity: 0.5; }
.menu-overlay .links a.active { font-style: italic; }

.menu-overlay .menu-right {
  align-self: end;
  display: flex; flex-direction: column; gap: 32px;
  padding-bottom: 12px;
}
.menu-overlay .menu-right .group { display: flex; flex-direction: column; gap: 10px; }
.menu-overlay .menu-right h5 {
  font-family: var(--mono);
  font-weight: 400;
  text-transform: lowercase;
  letter-spacing: 0.04em;
  font-size: 11px;
  color: rgba(248,247,244,0.45);
  margin: 0 0 6px 0;
}
.menu-overlay .menu-right a { font-size: 15px; }

@keyframes menu-in {
  from { opacity: 0; transform: translateY(-12px); }
  to   { opacity: 1; transform: translateY(0); }
}
@media (max-width: 720px) {
  .menu-overlay { grid-template-columns: 1fr; }
  .menu-overlay .menu-right { align-self: start; margin-top: 40px; }
}

/* ------------------------------------------------------------
   Detail rail (mono labels under topbar)
   ------------------------------------------------------------ */
.rail {
  display: flex; gap: 28px;
  padding: 64px var(--pad-x) 18px;
  font-family: var(--mono);
  font-size: 11px;
  text-transform: lowercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.rail .spacer { flex: 1; }

/* ------------------------------------------------------------
   Pages
   ------------------------------------------------------------ */
.page-shell {
  padding-top: 0;
  animation: fade-up 360ms cubic-bezier(0.2,0.7,0.2,1) both;
}
@keyframes fade-up {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-in { animation: fade-up 520ms cubic-bezier(0.2,0.7,0.2,1) both; }
.delay-1 { animation-delay: 60ms; }
.delay-2 { animation-delay: 120ms; }
.delay-3 { animation-delay: 200ms; }
.delay-4 { animation-delay: 280ms; }

/* ------------------------------------------------------------
   Placeholder image
   ------------------------------------------------------------ */
.placeholder {
  position: relative;
  background:
    repeating-linear-gradient(
      135deg,
      rgba(19,22,24,0.03) 0 1px,
      transparent 1px 18px
    ),
    var(--cream);
  overflow: hidden;
}
.placeholder.green { background-color: var(--green); }
.placeholder.blue  { background-color: var(--blue); }
.placeholder.cream { background-color: var(--cream); }
.placeholder.dark  { background-color: var(--black); color: var(--white); }
.placeholder .ph-label {
  position: absolute; top: 16px; left: 16px;
  font-family: var(--mono);
  font-size: 10px;
  text-transform: lowercase;
  letter-spacing: 0.04em;
  color: rgba(19,22,24,0.5);
  display: flex; align-items: center; gap: 8px;
}
.placeholder.dark .ph-label { color: rgba(248,247,244,0.55); }
.placeholder .ph-dot {
  width: 5px; height: 5px;
  background: currentColor;
}
.placeholder.motion::after {
  content: 'motion render';
  position: absolute; bottom: 16px; right: 16px;
  font-family: var(--mono);
  font-size: 10px;
  text-transform: lowercase;
  letter-spacing: 0.04em;
  color: rgba(19,22,24,0.45);
  display: flex; align-items: center; gap: 8px;
}
.placeholder.motion.dark::after { color: rgba(248,247,244,0.55); }
.placeholder.motion::before {
  content: '';
  position: absolute; bottom: 18px; right: 90px;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: rgba(19,22,24,0.45);
}
.placeholder.motion.dark::before { background: rgba(248,247,244,0.55); }

/* ------------------------------------------------------------
   HOME — Hero
   ------------------------------------------------------------ */
.home-hero {
  position: relative;
  height: 100vh;
  min-height: 720px;
  overflow: hidden;
}
.home-hero .image {
  position: absolute; inset: 0;
}
.home-hero .image .placeholder { width: 100%; height: 100%; }
.home-hero .overlay {
  position: relative;
  z-index: 2;
  height: 100%;
  display: grid;
  grid-template-rows: 1fr auto;
  padding: 0 var(--pad-x) 56px;
}
.home-hero .overlay::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(19,22,24,0.28) 0%, rgba(19,22,24,0.10) 38%, rgba(19,22,24,0.42) 100%);
  pointer-events: none;
}
.home-hero .center-block {
  align-self: center;
  display: flex; flex-direction: column; gap: 14px;
  color: var(--white);
  text-align: center;
  align-items: center;
}
.home-hero .center-block .h-display {
  color: var(--white);
  text-shadow: 0 2px 40px rgba(19,22,24,0.45), 0 1px 3px rgba(19,22,24,0.35);
  font-size: clamp(28px, 4vw, 60px);
  white-space: nowrap;
}
.rotating-word {
  display: inline-block;
  position: relative;
  vertical-align: baseline;
}
.rotating-word .rw-inner {
  display: inline-block;
  font-style: italic;
  transition: opacity 480ms cubic-bezier(0.22, 1, 0.36, 1), transform 480ms cubic-bezier(0.22, 1, 0.36, 1);
}
.rotating-word .rw-inner.in { opacity: 1; transform: translateY(0); }
.rotating-word .rw-inner.out { opacity: 0; transform: translateY(0.32em); }
@media (prefers-reduced-motion: reduce) {
  .rotating-word .rw-inner { transition: opacity 200ms linear; transform: none; }
}
.home-hero .bottom {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 32px;
  align-items: end;
  color: var(--white);
  mix-blend-mode: difference;
}
.home-hero .bottom .group { display: flex; flex-direction: column; gap: 4px; }
.home-hero .bottom .group .label {
  font-family: var(--mono);
  font-size: 10px;
  text-transform: lowercase;
  letter-spacing: 0.04em;
  opacity: 0.55;
}
.home-hero .bottom .group .val {
  font-size: 14px;
  letter-spacing: 0;
}
.home-hero .scroll {
  position: absolute;
  bottom: 24px;
  right: var(--pad-x);
  font-family: var(--mono);
  font-size: 10px;
  text-transform: lowercase;
  letter-spacing: 0.04em;
  color: rgba(248,247,244,0.6);
  z-index: 3;
  display: flex; align-items: center; gap: 8px;
  mix-blend-mode: difference;
}
@media (max-width: 720px) {
  .home-hero { min-height: 600px; }
  .home-hero .bottom { grid-template-columns: 1fr; gap: 16px; }
}

/* ------------------------------------------------------------
   Sections
   ------------------------------------------------------------ */
.section {
  padding: 120px var(--pad-x);
}
.section + .section { padding-top: 0; }
.section-head-2col {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 64px;
  padding-bottom: 64px;
}
@media (max-width: 720px) {
  .section { padding: 72px var(--pad-x); }
  .section-head-2col { grid-template-columns: 1fr; gap: 16px; padding-bottom: 36px; }
}

/* ------------------------------------------------------------
   Pillars (home)
   ------------------------------------------------------------ */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px var(--gutter);
  border-top: 1px solid var(--rule);
  padding-top: 56px;
}
.pillar { display: flex; flex-direction: column; gap: 18px; }
.pillar .num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.pillar .title {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 24px;
  line-height: 1.15;
  letter-spacing: -0.005em;
  margin: 0;
}
.pillar p {
  font-size: 14px;
  line-height: 1.65;
  margin: 0;
  max-width: 38ch;
  color: rgba(19,22,24,0.7);
}
@media (max-width: 900px) {
  .pillars { grid-template-columns: 1fr; gap: 36px; }
}

/* ------------------------------------------------------------
   PROJECT DETAIL (the EMK-style layout)
   ------------------------------------------------------------ */
.pd-rail {
  display: flex; align-items: baseline; gap: 28px;
  padding: 72px var(--pad-x) 24px;
  font-family: var(--mono);
  font-size: 11px;
  text-transform: lowercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.pd-rail .crumb { color: var(--fg); }
.pd-rail .spacer { flex: 1; }

.pd-title {
  padding: 120px var(--pad-x) 64px;
}
.pd-title h1 {
  font-family: var(--sans);
  font-weight: 400;
  font-size: clamp(72px, 14vw, 220px);
  line-height: 0.88;
  letter-spacing: -0.03em;
  margin: 0;
}

.pd-hero {
  padding: 0 var(--pad-x);
}
.pd-hero .image {
  aspect-ratio: 16 / 9;
  width: 100%;
}

.pd-meta {
  padding: 56px var(--pad-x) 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gutter);
  border-top: 1px solid var(--rule);
  margin-top: 56px;
}
.pd-meta .cell {
  display: flex; flex-direction: column; gap: 6px;
}
.pd-meta .cell .label {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: lowercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.pd-meta .cell .val {
  font-size: 16px;
  line-height: 1.3;
  letter-spacing: -0.005em;
}
@media (max-width: 720px) {
  .pd-meta { grid-template-columns: 1fr 1fr; gap: 28px var(--gutter); }
}

.pd-intro {
  padding: 80px var(--pad-x) 96px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px var(--gutter);
  align-items: start;
}
.pd-intro .left {
  font-family: var(--sans);
  font-weight: 400;
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1.25;
  letter-spacing: -0.005em;
  max-width: 28ch;
}
.pd-intro .right {
  font-size: 15px;
  line-height: 1.65;
  color: rgba(19,22,24,0.78);
  max-width: 58ch;
}
@media (max-width: 720px) {
  .pd-intro { grid-template-columns: 1fr; gap: 24px; padding: 56px var(--pad-x); }
}

.pd-media {
  padding: 0 var(--pad-x);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gutter);
}
.pd-media .item { aspect-ratio: 4 / 5; }
.pd-media.tall .item { aspect-ratio: 3 / 4; }

.pd-media-wide {
  padding: 64px var(--pad-x) 0;
}
.pd-media-wide .item { aspect-ratio: 21 / 9; width: 100%; }

.pd-closing {
  padding: 96px var(--pad-x);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px var(--gutter);
  align-items: end;
}
.pd-closing .copy {
  font-size: 17px;
  line-height: 1.6;
  color: rgba(19,22,24,0.8);
  max-width: 52ch;
}
.pd-closing .cta {
  display: flex; justify-content: flex-end;
}
.discover-cta {
  font-family: var(--sans);
  font-weight: 400;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.0;
  letter-spacing: -0.015em;
  display: inline-flex; align-items: baseline; gap: 16px;
  padding-bottom: 12px;
  transition: padding-right 220ms ease;
}
.discover-cta:hover { padding-right: 8px; }
.discover-cta .arrow-big {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 0.6em;
}
@media (max-width: 720px) {
  .pd-closing { grid-template-columns: 1fr; gap: 32px; padding: 64px var(--pad-x); }
  .pd-closing .cta { justify-content: flex-start; }
}

/* ------------------------------------------------------------
   Other projects grid (4-up, project name / year)
   ------------------------------------------------------------ */
.other-grid {
  padding: 0 var(--pad-x) 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 48px var(--gutter);
  border-top: 1px solid var(--rule);
  padding-top: 56px;
}
.other-card { display: flex; flex-direction: column; gap: 14px; cursor: pointer; }
.other-card .thumb { aspect-ratio: 3 / 4; }
.other-card .meta {
  display: flex; justify-content: space-between; align-items: baseline;
  font-family: var(--sans);
  font-weight: 400;
  font-size: 14px;
  letter-spacing: 0;
}
.other-card .meta .year {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: lowercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.other-card .thumb { transition: opacity 260ms ease; }
.other-card:hover .thumb { opacity: 0.78; }
@media (max-width: 900px) {
  .other-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 540px) {
  .other-grid { grid-template-columns: 1fr; }
}

/* ------------------------------------------------------------
   Sections wrap for other projects
   ------------------------------------------------------------ */
.other-wrap {
  padding: 56px 0 0;
}
.other-wrap .head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: end;
  padding: 0 var(--pad-x);
  margin-bottom: 40px;
}
.other-wrap .head .right {
  display: flex; justify-content: flex-end;
  font-family: var(--mono);
  font-size: 11px;
  text-transform: lowercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

/* ------------------------------------------------------------
   Footer (architectural style)
   ------------------------------------------------------------ */
.footer {
  background: var(--white);
  color: var(--fg);
  padding: 96px var(--pad-x) 32px;
  margin-top: 96px;
  border-top: 1px solid var(--rule);
}
.footer-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 56px;
  padding-bottom: 96px;
}
.footer h4 {
  font-family: var(--mono);
  font-weight: 400;
  text-transform: lowercase;
  letter-spacing: 0.04em;
  font-size: 11px;
  color: var(--muted);
  margin: 0 0 16px 0;
}
.footer .subscribe { max-width: 36ch; }
.footer .subscribe p {
  font-family: var(--sans);
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1.2;
  letter-spacing: -0.005em;
  margin: 0 0 28px 0;
  font-weight: 400;
}
.footer .subscribe form {
  display: flex; align-items: center;
  border-bottom: 1px solid var(--fg);
  padding-bottom: 10px;
  gap: 12px;
}
.footer .subscribe input {
  flex: 1;
  background: transparent; border: 0; padding: 6px 0;
  font: inherit; color: inherit; outline: none;
  font-size: 14px;
}
.footer .subscribe input::placeholder {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: lowercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.footer .subscribe button {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: lowercase;
  letter-spacing: 0.04em;
}
.footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer ul a { font-size: 15px; opacity: 0.85; transition: opacity 180ms ease; }
.footer ul a:hover { opacity: 1; }

.footer-wordmark {
  border-top: 1px solid var(--rule);
  padding-top: 56px;
  margin-bottom: 56px;
}
.footer-wordmark svg {
  width: 100%; height: auto;
  fill: var(--fg);
  display: block;
}

/* Wordmark letter-by-letter reveal (bottom-up, staggered) */
.wordmark .wm-letter {
  transform-box: fill-box;
  transform-origin: bottom;
  transform: translateY(28%);
  opacity: 0;
  clip-path: inset(0 0 -2% 0);
}
.wordmark.in .wm-letter {
  animation: wm-rise 1400ms cubic-bezier(0.22, 1, 0.36, 1) both;
}
.wordmark.in .wm-letter:nth-child(1) { animation-delay: 0ms; }
.wordmark.in .wm-letter:nth-child(2) { animation-delay: 280ms; }
.wordmark.in .wm-letter:nth-child(3) { animation-delay: 560ms; }
.wordmark.in .wm-letter:nth-child(4) { animation-delay: 840ms; }
@keyframes wm-rise {
  from { transform: translateY(34%); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .wordmark .wm-letter { transform: none; opacity: 1; animation: none; }
}

.footer-bottom {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: 11px;
  text-transform: lowercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.footer-bottom .right {
  text-align: right;
  max-width: 56ch;
  justify-self: end;
  text-transform: none;
  line-height: 1.5;
  letter-spacing: 0;
  font-size: 11px;
}
@media (max-width: 900px) {
  .footer-top { grid-template-columns: 1fr 1fr; gap: 40px; }
  .footer-bottom { grid-template-columns: 1fr; }
  .footer-bottom .right { text-align: left; justify-self: start; }
}
@media (max-width: 540px) {
  .footer-top { grid-template-columns: 1fr; gap: 36px; }
}

/* ------------------------------------------------------------
   ABOUT / PROJECTS / CONTACT
   ------------------------------------------------------------ */
.page-intro {
  padding: 96px var(--pad-x) 64px;
}
.page-intro .crumbs {
  display: flex; gap: 24px;
  font-family: var(--mono);
  font-size: 11px;
  text-transform: lowercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-bottom: 56px;
}
.page-intro h1 {
  font-family: var(--sans);
  font-weight: 400;
  font-size: clamp(56px, 10vw, 160px);
  line-height: 0.92;
  letter-spacing: -0.025em;
  margin: 0;
  margin-left: -0.045em;
  max-width: 14ch;
}
.page-intro .lede {
  margin-top: 56px;
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.45;
  max-width: 60ch;
  color: rgba(19,22,24,0.8);
}

/* Projects index */
.projects-index {
  padding: 0 var(--pad-x) 96px;
}
.projects-rows {
  border-top: 1px solid var(--rule);
}
.project-row {
  display: grid;
  grid-template-columns: 60px 1.5fr 1fr 1fr 80px;
  align-items: center;
  gap: var(--gutter);
  padding: 22px 0;
  border-bottom: 1px solid var(--rule);
  transition: background 200ms ease;
  cursor: pointer;
  font-size: 16px;
}
.project-row:hover { background: rgba(19,22,24,0.02); }
.project-row .idx,
.project-row .meta {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: lowercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.project-row .name {
  font-family: var(--sans);
  font-weight: 400;
  font-size: clamp(20px, 2vw, 28px);
  letter-spacing: -0.01em;
}
.project-row .arrow {
  text-align: right;
  font-family: var(--mono);
  font-size: 11px;
  text-transform: lowercase;
  letter-spacing: 0.04em;
}
.project-row .arrow span {
  display: inline-block; transition: transform 220ms ease;
}
.project-row:hover .arrow span { transform: translateX(4px); }
@media (max-width: 800px) {
  .project-row { grid-template-columns: 30px 1fr 1fr; }
  .project-row .meta:nth-of-type(2) { display: none; }
  .project-row .arrow { display: none; }
}

/* Hover image preview on row hover */
.row-preview {
  position: fixed;
  width: clamp(200px, 18vw, 280px);
  aspect-ratio: 4 / 3;
  pointer-events: none;
  transform: translate(12px, 12px);
  background-size: cover;
  background-position: center;
  background-color: var(--cream);
  z-index: 70;
  box-shadow: 0 12px 40px rgba(19,22,24,0.18);
  opacity: 1;
}
@media (max-width: 720px) { .row-preview { display: none; } }

/* Filter chips (projects page) */
.filter-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 24px 0 32px;
  flex-wrap: wrap;
}
.filter-bar .count {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 11px;
  text-transform: lowercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.chip {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: lowercase;
  letter-spacing: 0.04em;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--rule);
  transition: background 180ms, color 180ms, border-color 180ms;
}
.chip:hover { border-color: var(--fg); }
.chip.active { background: var(--fg); color: var(--white); border-color: var(--fg); }

/* About */
.about-image {
  padding: 0 var(--pad-x);
}
.about-image .placeholder { aspect-ratio: 21 / 9; width: 100%; }

.about-body {
  padding: 120px var(--pad-x);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
}
.about-body .statement {
  max-width: 30ch;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.about-body .statement p {
  font-family: var(--sans);
  font-weight: 400;
  font-size: clamp(24px, 3vw, 40px);
  line-height: 1.18;
  letter-spacing: -0.012em;
  margin: 0;
  text-wrap: balance;
}
.about-body .statement p:last-child {
  color: var(--muted);
}
@media (max-width: 720px) {
  .about-body { padding: 72px var(--pad-x); }
}

.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gutter);
  padding: 0 var(--pad-x) 0;
  border-top: 1px solid var(--rule);
  margin: 0 var(--pad-x);
  padding: 56px 0 0;
}
.process-wrap { padding: 0 var(--pad-x); }
.process .step .num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-bottom: 18px;
}
.process .step .title {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 22px;
  line-height: 1.18;
  letter-spacing: -0.005em;
  margin-bottom: 12px;
}
.process .step p { font-size: 14px; color: rgba(19,22,24,0.7); max-width: 36ch; line-height: 1.6; }
@media (max-width: 900px) { .process { grid-template-columns: 1fr 1fr; gap: 40px var(--gutter); } }
@media (max-width: 540px) { .process { grid-template-columns: 1fr; } }

/* Team */
.team-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px var(--gutter);
  padding: 96px var(--pad-x);
  border-top: 1px solid var(--rule);
}
.team-card .portrait { aspect-ratio: 4 / 5; margin-bottom: 24px; }
.team-card .role {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: lowercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-bottom: 12px;
}
.team-card .name {
  font-family: var(--sans);
  font-weight: 400;
  font-size: clamp(28px, 3vw, 40px);
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin-bottom: 20px;
}
.team-card p {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(19,22,24,0.78);
  max-width: 52ch;
  margin: 0 0 10px 0;
}
@media (max-width: 720px) { .team-grid { grid-template-columns: 1fr; gap: 56px; padding: 64px var(--pad-x); } }

/* Contact */
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 96px;
  padding: 96px var(--pad-x);
  align-items: start;
}
.contact-wrap .left { display: flex; flex-direction: column; gap: 36px; }
.contact-wrap .info {
  display: grid;
  grid-template-columns: 100px 1fr;
  row-gap: 14px;
  column-gap: 32px;
  border-top: 1px solid var(--rule);
  padding-top: 32px;
}
.contact-wrap .info dt {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: lowercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.contact-wrap .info dd { margin: 0; font-size: 15px; }
.form { display: flex; flex-direction: column; gap: 24px; }
.field { display: flex; flex-direction: column; gap: 4px; }
.field label {
  font-family: var(--mono);
  font-size: 10px;
  text-transform: lowercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.field input, .field textarea, .field select {
  font: inherit;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--rule);
  padding: 10px 0;
  color: var(--fg);
  outline: none;
  border-radius: 0;
  transition: border-color 180ms ease;
  font-size: 16px;
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--fg); }
.field textarea { resize: vertical; min-height: 120px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gutter); }
.btn-line {
  display: inline-flex; align-items: baseline; gap: 14px;
  font-family: var(--sans);
  font-weight: 400;
  font-size: 22px;
  letter-spacing: -0.01em;
  padding-bottom: 10px;
  align-self: flex-start;
  cursor: pointer;
  transition: padding-right 220ms ease;
}
.btn-line:hover { padding-right: 10px; }
.btn-line .arrow-big { font-size: 0.6em; }
@media (max-width: 900px) { .contact-wrap { grid-template-columns: 1fr; gap: 40px; padding: 64px var(--pad-x); } }
@media (max-width: 540px) { .field-row { grid-template-columns: 1fr; } }
