/* ---- Tokens ---------------------------------------------------- */
:root {
  --bg: #000000;
  --bg-2: #111111;
  --bg-3: #161616;
  --fg: #ebeae3;
  --fg-2: #9c9a92;
  --muted: #5a5a52;
  --line: #1a1a1a;
  --line-2: #262626;
  --accent: #fcfaf3;
  --accent-dim: #c8c6bd;
  --glow: 252, 250, 243;
  --sans: "Space Grotesk", "Inter Tight", ui-sans-serif, system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

@media (dynamic-range: high) {
  @supports (color: color(display-p3 1 1 1)) {
    :root {
      --bg: color(display-p3 0 0 0);
      --bg-2: color(display-p3 0.066 0.066 0.066);
      --bg-3: color(display-p3 0.086 0.086 0.086);
      --fg: color(display-p3 0.925 0.918 0.895);
      --fg-2: color(display-p3 0.64 0.628 0.59);
      --muted: color(display-p3 0.395 0.39 0.355);
      --line: color(display-p3 0.11 0.11 0.11);
      --line-2: color(display-p3 0.155 0.152 0.145);
      --accent: color(display-p3 0.99 0.98 0.95);
      --accent-dim: color(display-p3 0.82 0.80 0.75);
      --glow: 252, 250, 243;
    }
  }
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  min-height: 100vh;
  overscroll-behavior-x: none;
}

/* Subtle film grain */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: 0.025;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* Vignette */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 99;
  background: radial-gradient(120% 96% at 50% 44%, transparent 58%, rgba(0,0,0,0.5) 100%);
}

/* ---- Type ------------------------------------------------------ */
h1, h2, h3, h4 {
  margin: 0;
  font-weight: 500;
  font-family: var(--sans);
  letter-spacing: -0.025em;
  text-wrap: pretty;
}

.label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: lowercase;
  color: var(--muted);
  font-weight: 400;
}
.label .count {
  color: var(--fg);
  margin-left: 6px;
  font-size: 10px;
}

/* ---- Dot canvas ----------------------------------------------- */
#dot-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.7;
}


/* ---- Layout shell -------------------------------------------- */
.app {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 48px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: lowercase;
  mix-blend-mode: difference;
  color: var(--fg);
}
.nav .logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
}
.nav-spacer { flex: 1; }
.nav .logo-mark {
  width: 7px;
  height: 7px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 12px rgba(var(--glow), 0.7);
}
.nav ul {
  list-style: none;
  display: flex;
  gap: 32px;
  margin: 0;
  padding: 0;
}
.nav a {
  color: inherit;
  text-decoration: none;
  opacity: 0.65;
  transition: opacity 0.25s ease;
}
.nav a:hover { opacity: 1; }

/* All sections share this base — generous, breathable */
section {
  position: relative;
  padding: 200px 48px;
  max-width: 100%;
  overflow-x: clip;
}

/* Section heading — lowercase tiny label + huge sans display headline */
.section-head {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 64px;
  margin-bottom: 140px;
  align-items: baseline;
}
.section-head .label {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding-top: 18px;
}
.section-head .label::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--muted);
}
.section-head h2 {
  font-family: var(--sans);
  font-size: clamp(40px, 5vw, 76px);
  line-height: 1.05;
  font-weight: 500;
  letter-spacing: -0.025em;
  max-width: 1000px;
  overflow-wrap: anywhere;
}
.section-head h2 .quiet { color: var(--fg-2); }
.approach .section-head {
  display: block;
  margin-bottom: clamp(56px, 7vw, 92px);
}

.approach .section-head h2 {
  max-width: none;
  font-size: clamp(24px, 2.8vw, 44px);
  line-height: 1;
  letter-spacing: -0.03em;
  text-align: center;
  margin: 0;
}
.section-head h2 .accent { color: var(--accent); }

/* ---- Hero ----------------------------------------------------- */
.hero {
  min-height: 100vh;
  min-height: 100svh;
  padding: 0 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow-x: clip;
  overflow-y: visible;
}

.hero-terrain {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: calc(100% + 260px);
  display: block;
  z-index: 0;
  pointer-events: none;
  will-change: transform;
  transform: translateZ(0);
  -webkit-mask-image: linear-gradient(to bottom, black 0%, black calc(100% - 260px), transparent 100%);
  mask-image: linear-gradient(to bottom, black 0%, black calc(100% - 260px), transparent 100%);
}

.hero-center {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 1100px;
  min-width: 0;
  margin: 0 auto;
  transform: translateY(-72px);
}

.hero-ident {
  position: fixed;
  top: 76px;
  left: 48px;
  z-index: 20;
  border: 1px solid var(--line-2);
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: lowercase;
  color: var(--fg);
  line-height: 1.5;
}

.hero-eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: lowercase;
  color: var(--fg-2);
  margin-bottom: 36px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
@keyframes heartbeat {
  0%   { transform: scale(1);    opacity: 0.85; }
  10%  { transform: scale(1.28); opacity: 1;    }
  20%  { transform: scale(1.06); opacity: 0.9;  }
  32%  { transform: scale(1.22); opacity: 1;    }
  55%  { transform: scale(1);    opacity: 0.85; }
  100% { transform: scale(1);    opacity: 0.85; }
}

.eyebrow-heart {
  display: inline-block;
  font-size: 13px;
  line-height: 1;
  margin: 0 2px 0 4px;
  animation: heartbeat 1.8s ease-in-out infinite;
  transform-origin: center;
}

.eyebrow-left {
  display: inline-block;
  width: 152px;
  text-align: right;
}

.eyebrow-role-wrap {
  position: relative;
  display: inline-block;
  overflow: hidden;
  width: 152px;
  height: 1.35em;
  vertical-align: middle;
}

.eyebrow-role {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  white-space: nowrap;
}

.hero-eyebrow::before, .hero-eyebrow::after {
  display: none;
}

.hero-title {
  font-family: var(--sans);
  font-size: clamp(24px, 2.8vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 500;
  margin: 0;
  text-align: center;
  overflow-wrap: anywhere;
}
.hero-title .clip { display: block; }

.hero-bottom {
  position: absolute;
  bottom: 36px;
  left: 0;
  right: 0;
  z-index: 2;
  text-align: center;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: lowercase;
  color: var(--muted);
}
.hero-bottom span {
  display: inline-block;
  position: relative;
  padding-top: 26px;
}
.hero-bottom span::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 1px;
  height: 18px;
  background: linear-gradient(to bottom, transparent, var(--muted));
  animation: scroll-pulse 2.2s ease-in-out infinite;
}
@keyframes scroll-pulse {
  0%, 100% { opacity: 0.3; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(6px); }
}

/* ---- Big breathing statement ---------------------------------- */
.statement {
  padding: 240px 48px;
}
.statement-grid {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 64px;
}
.statement-text {
  font-family: var(--sans);
  font-size: clamp(36px, 4.5vw, 64px);
  line-height: 1.15;
  letter-spacing: -0.025em;
  font-weight: 500;
  color: var(--fg);
  max-width: 1100px;
}
.statement-text .accent { color: var(--accent); }
.statement-text .quiet { color: var(--fg-2); }

/* ---- Approach (three calm cards) ------------------------------ */
.approach {
  /* No border-top — wave from hero bleeds through */
  position: relative;
  z-index: 1;
  padding-left: 0;
  padding-right: 0;
}
.approach-shell {
  width: min(calc(100% - 96px), 1400px);
  margin-left: auto;
  margin-right: auto;
}
.approach .principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  position: relative;
  width: 100%;
}
.approach .principle {
  padding: clamp(40px, 5vw, 64px) clamp(24px, 3.4vw, 36px) clamp(44px, 5.8vw, 72px);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  min-height: clamp(0px, 16vw, 340px);
  transition: background 0.6s ease, padding 0.6s ease;
}
.approach .principle:last-child { border-right: none; }
.approach .principle:hover { background: var(--bg-2); }
.approach .pr-inner {
  width: 100%;
  max-width: 34ch;
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 2.4vw, 28px);
  text-align: left;
}

.pr-title {
  font-family: var(--sans);
  font-size: clamp(30px, 3.2vw, 36px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  font-weight: 500;
  margin: 0;
  max-width: 10ch;
}
.pr-title .em { color: var(--accent); }
.pr-desc {
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.55;
  color: var(--fg-2);
  margin: 0;
  max-width: 34ch;
}

@media (max-width: 1100px) {
  .approach-shell {
    width: min(calc(100% - 64px), 620px);
  }
  .approach .principles {
    grid-template-columns: 1fr;
    gap: 1px;
    background: var(--line);
  }
  .approach .principle {
    min-height: auto;
    padding: clamp(30px, 4vw, 42px) clamp(24px, 5vw, 40px);
    border: none;
    background: var(--bg);
    align-items: center;
  }
  .approach .pr-inner {
    width: min(100%, 340px);
    max-width: 340px;
    margin-left: auto;
    margin-right: auto;
    gap: 14px;
    align-items: center;
    text-align: center;
  }
  .pr-title {
    font-size: clamp(22px, 3.2vw, 30px);
    max-width: 10ch;
  }
  .pr-desc {
    max-width: 28ch;
    font-size: 14px;
  }
}

@media (max-width: 900px) {
  .approach-shell {
    width: min(calc(100% - 48px), 620px);
  }
  .approach .principle {
    padding: 28px clamp(24px, 7vw, 36px);
  }
  .approach .pr-inner {
    width: min(100%, 320px);
    max-width: 320px;
    align-items: center;
    text-align: center;
  }
  .pr-desc {
    max-width: 26ch;
  }
}

@media (orientation: portrait) {
  .approach-shell {
    width: min(calc(100% - 48px), 620px);
  }
  .approach .principles {
    grid-template-columns: 1fr;
    gap: 1px;
    background: var(--line);
  }
  .approach .principle {
    padding: 30px clamp(24px, 6vw, 40px);
    border: none;
    background: var(--bg);
    align-items: center;
  }
  .approach .pr-inner {
    width: min(100%, 320px);
    max-width: 320px;
    align-items: center;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }
  .pr-title {
    max-width: 10ch;
  }
  .pr-desc {
    max-width: 28ch;
  }
}

/* ---- Work (calm list, oversized titles) ----------------------- */
.work {
}
.work-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}
.wrow {
  display: grid;
  grid-template-columns: 200px 1fr 280px 48px;
  gap: 48px;
  padding: 56px 0;
  border-bottom: 1px solid var(--line);
  align-items: center;
  text-decoration: none;
  color: var(--fg);
  position: relative;
  transition: padding 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.wrow::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(var(--glow), 0.04), transparent);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}
.wrow:hover { padding-left: 24px; padding-right: 24px; }
.wrow:hover::before { opacity: 1; }
.wrow:hover .w-title { color: var(--accent); }
.wrow:hover .w-arrow { transform: translate(8px, -8px); color: var(--accent); }

.w-year {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--muted);
  text-transform: lowercase;
}
.w-title {
  font-family: var(--sans);
  font-size: clamp(36px, 4.2vw, 64px);
  line-height: 1;
  letter-spacing: -0.03em;
  font-weight: 500;
  transition: color 0.4s ease;
}
.w-desc {
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.5;
  color: var(--fg-2);
}
.w-arrow {
  font-family: var(--sans);
  font-size: 24px;
  color: var(--muted);
  text-align: right;
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), color 0.4s ease;
}

.about-body {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 64px;
  align-items: start;
}
.about-body p {
  font-family: var(--sans);
  font-size: 28px;
  line-height: 1.35;
  margin: 0 0 28px 0;
  color: var(--fg);
  letter-spacing: -0.015em;
  font-weight: 400;
  text-wrap: pretty;
  max-width: 880px;
}
.about-body p .em { color: var(--accent); }
.about-body p:last-child { color: var(--fg-2); font-size: 22px; }

.stack {
  margin-top: 64px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 64px;
  max-width: 880px;
}
.stack-item {
  font-family: var(--mono);
  font-size: 11px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  letter-spacing: 0.06em;
  text-transform: lowercase;
}
.stack-item .k { color: var(--muted); flex: 0 0 60px; }
.stack-item .v { color: var(--fg-2); text-align: right; }

/* ---- Experience ----------------------------------------------- */
.experience {
}
.timeline {
  border-top: 1px solid var(--line);
}
.tl-item {
  display: grid;
  grid-template-columns: 200px 1fr 1.2fr;
  gap: 64px;
  padding: 48px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
  transition: padding 0.4s ease;
}
.tl-item:hover { padding-left: 16px; }
.tl-item:hover .tl-role { color: var(--accent); }
.tl-year {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--muted);
  text-transform: lowercase;
  padding-top: 6px;
}
.tl-role {
  font-family: var(--sans);
  font-size: 32px;
  letter-spacing: -0.025em;
  line-height: 1.1;
  font-weight: 500;
  transition: color 0.4s ease;
}
.tl-role .at { color: var(--fg-2); font-weight: 400; }
.tl-desc {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--fg-2);
  line-height: 1.6;
  padding-top: 6px;
}

/* ---- Contact -------------------------------------------------- */
.contact {
  position: relative;
  padding-top: 180px;
  padding-bottom: 96px;
  background: var(--bg);
}
.contact-grid {
  position: relative;
  width: min(780px, calc(100% - 96px));
  margin: 0 auto;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.contact-grid > * { min-width: 0; }
.contact-big {
  font-family: var(--sans);
  font-size: clamp(24px, 2.8vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 500;
  color: var(--fg);
  text-align: center;
  max-width: 1100px;
  overflow-wrap: anywhere;
}
.contact-big .accent { color: var(--accent); }
.contact-big .quiet { color: var(--fg-2); }

.contact-email {
  display: inline-flex;
  align-items: baseline;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 48px;
  font-family: var(--sans);
  font-size: clamp(14px, 1.6vw, 20px);
  font-weight: 500;
  color: var(--fg);
  text-decoration: none;
  position: relative;
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
}
.contact-email::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 1px;
  background: var(--fg-2);
  transform-origin: right;
  transform: scaleX(1);
  transition: transform 0.7s cubic-bezier(0.7, 0, 0.2, 1);
}
.contact-email:hover::after { transform-origin: left; transform: scaleX(0); }
.contact-email .arrow {
  display: inline-block;
  transition: transform 0.4s ease;
  color: var(--accent);
}
.contact-email:hover .arrow { transform: translate(6px, -6px); }

.socials {
  margin-top: 48px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: lowercase;
}
.socials a {
  color: var(--fg-2);
  text-decoration: none;
  transition: color 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  overflow-wrap: anywhere;
}
.socials a:hover { color: var(--accent); }
.socials a::after {
  content: "↗";
  display: inline-block;
  transition: transform 0.3s;
}
.socials a:hover::after { transform: translate(2px, -2px); }

.footer-bar {
  margin-top: 120px;
  padding-top: 28px;
  width: 100%;
  border-top: 1px solid rgba(var(--glow), 0.12);
  display: flex;
  justify-content: center;
  gap: 48px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: lowercase;
  color: var(--muted);
}

/* ---- Per-section dot patterns -------------------------------- */
.section-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}
.section-bg > * { position: absolute; }
.section-bg .field-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
  opacity: 0.6;
}
.section-bg.bg-experience .field-canvas { opacity: 0.35; }
.section-bg.bg-statement .field-canvas { opacity: 0.45; }
.section-bg.bg-contact .field-canvas { opacity: 0.55; }
.statement, .approach, .work, .about, .experience, .contact {
  position: relative;
}
.statement > *:not(.section-bg),
.approach > *:not(.section-bg),
.work > *:not(.section-bg),
.about > *:not(.section-bg),
.experience > *:not(.section-bg),
.contact > *:not(.section-bg) {
  position: relative;
  z-index: 1;
}

/* Pattern 1: orbital rings (statement) — slowly rotating */
.orbital {
  top: 50%; left: 50%;
  width: min(900px, 70vw);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  opacity: 0.5;
  animation: orbital-spin 90s linear infinite;
}
@keyframes orbital-spin { to { transform: translate(-50%, -50%) rotate(360deg); } }

/* Pattern 2: half-dot grid (work background) */
.work-pattern {
  inset: 0;
  background-image: radial-gradient(circle, rgba(155,153,144,0.10) 1px, transparent 1.2px);
  background-size: 28px 28px;
  background-position: 0 0;
  -webkit-mask-image: linear-gradient(to bottom, transparent, black 20%, black 80%, transparent);
  mask-image: linear-gradient(to bottom, transparent, black 20%, black 80%, transparent);
  opacity: 0.55;
}

/* Pattern 3: dense halftone gradient (about background) */
.halftone {
  right: -10%;
  top: 10%;
  width: 60%;
  aspect-ratio: 1;
  background-image: radial-gradient(circle, rgba(235,234,227,0.20) 1px, transparent 1.5px);
  background-size: 14px 14px;
  -webkit-mask-image: radial-gradient(circle at center, black, transparent 65%);
  mask-image: radial-gradient(circle at center, black, transparent 65%);
  opacity: 0.5;
  pointer-events: none;
}

/* Pattern 4: vertical lines of dots (experience) */
.dot-rails {
  left: 0; right: 0; top: 0; bottom: 0;
  background-image:
    linear-gradient(to bottom, transparent 0, transparent calc(100% - 1px), rgba(155,153,144,0.10) 100%),
    repeating-linear-gradient(to right, transparent 0 119px, rgba(155,153,144,0.08) 119px 120px);
  background-size: 100% 100%, 120px 100%;
  -webkit-mask-image: linear-gradient(to bottom, transparent, black 15%, black 85%, transparent);
  mask-image: linear-gradient(to bottom, transparent, black 15%, black 85%, transparent);
}

/* Pattern 5: dense pixel grid that fades to corners (contact) */
.pixel-fade {
  inset: 0;
  background-image: radial-gradient(circle, rgba(235,234,227,0.18) 1px, transparent 1.5px);
  background-size: 18px 18px;
  -webkit-mask-image: radial-gradient(ellipse at 70% 30%, black 0%, transparent 70%);
  mask-image: radial-gradient(ellipse at 70% 30%, black 0%, transparent 70%);
  opacity: 0.45;
}

/* Pattern 6: triangulated dots between principles (approach) */
.tri-dots {
  inset: 0;
  background-image:
    radial-gradient(circle at 33.33% 50%, rgba(235,234,227,0.18) 2px, transparent 2.5px),
    radial-gradient(circle at 66.66% 50%, rgba(235,234,227,0.18) 2px, transparent 2.5px);
  -webkit-mask-image: linear-gradient(to right, transparent, black 30%, black 70%, transparent);
  mask-image: linear-gradient(to right, transparent, black 30%, black 70%, transparent);
}

/* ---- Work (mixed card layout, WQF-style) --------------------- */
.work {
  border-top: 1px solid var(--line);
}

.work-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

/* Featured project spans full width */
.wcard {
  background: var(--bg);
  padding: 48px 40px 40px;
  display: flex;
  flex-direction: column;
  min-height: 480px;
  text-decoration: none;
  color: var(--fg);
  position: relative;
  overflow: hidden;
  transition: background 0.6s ease;
}
.wcard:visited, .wcard:link, .wcard:active { color: var(--fg); }
.wcard.featured {
  grid-column: 1 / -1;
  flex-direction: row;
  min-height: 540px;
  padding: 0;
}
.wcard.featured .wc-visual {
  flex: 1.3;
  margin: 0;
  border-right: 1px solid var(--line);
}
.wcard.featured .wc-body {
  flex: 1;
  padding: 56px 48px;
  display: flex;
  flex-direction: column;
}
.wcard.featured .wc-title { font-size: clamp(48px, 5vw, 84px); }

.wcard:hover { background: var(--bg-2); }
.wcard:hover .wc-arrow { transform: translate(8px, -8px); color: var(--fg); }
.wcard:hover .wc-visual .field-canvas { opacity: 1; }
.wcard:hover .wc-title { color: var(--fg); }

.wc-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: lowercase;
  color: var(--muted);
  margin-bottom: 32px;
}
.wc-arrow {
  font-family: var(--sans);
  font-size: 22px;
  color: var(--muted);
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), color 0.4s ease;
}

.wc-visual {
  flex: 1;
  margin: 0 0 32px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 2px;
  position: relative;
  overflow: hidden;
  min-height: 220px;
}
.wc-visual .field-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  opacity: 0.85;
  transition: opacity 0.6s ease;
}
.wc-visual::after {
  content: attr(data-tag);
  position: absolute;
  bottom: 14px;
  left: 16px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: lowercase;
  color: var(--muted);
  z-index: 2;
}

/* (Pattern variants moved to inline SVG inside .wc-visual) */

.wc-body { flex: 1; display: flex; flex-direction: column; }

.wc-title {
  font-family: var(--sans);
  font-size: clamp(28px, 3vw, 44px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  font-weight: 500;
  margin: 0 0 14px;
  color: var(--fg);
  transition: color 0.4s ease;
}

.wc-desc {
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.55;
  color: var(--fg-2);
  margin: 0 0 20px;
  max-width: 440px;
}

.wc-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
}
.wc-tag {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: lowercase;
  padding: 5px 11px;
  border: 1px solid var(--line-2);
  border-radius: 100px;
  color: var(--fg-2);
}

@media (max-width: 900px) {
  .work-grid { grid-template-columns: 1fr; }
  .wcard.featured { flex-direction: column; }
  .wcard.featured .wc-visual { border-right: none; border-bottom: 1px solid var(--line); }
  .wcard.featured .wc-body { padding: 32px 24px; }
  .wcard { padding: 32px 24px; }
}

/* ---- About — star sky ---------------------------------------- */
.about {
  position: relative;
  overflow-x: clip;
  overflow-y: visible;
  padding: 48px 48px 80px;
}
.about-sky {
  width: 100%;
  height: 100%;
  display: block;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 9%, black 88%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, black 9%, black 88%, transparent 100%);
}
.about-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.about-heading {
  font-family: var(--sans);
  font-size: clamp(24px, 2.8vw, 44px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 220px;
  text-align: center;
  overflow-wrap: anywhere;
}
.about-text {
  max-width: 640px;
}
.about-text p {
  font-family: var(--sans);
  font-size: 20px;
  line-height: 1.5;
  letter-spacing: -0.012em;
  margin: 0 0 18px;
  color: var(--fg);
  text-wrap: pretty;
}
.about-text p:last-of-type {
  font-size: 17px;
  color: var(--fg-2);
  letter-spacing: -0.01em;
  margin-bottom: 0;
}
.about .stack {
  margin: 48px auto 0;
  max-width: 560px;
  width: 100%;
}
.about .stack-item .v {
  text-align: right;
}
.about-quote {
  margin: 80px auto 0;
  max-width: 620px;
  font-family: var(--sans);
  font-size: clamp(22px, 2.8vw, 36px);
  font-weight: 400;
  font-style: italic;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--fg-2);
  text-align: center;
  position: relative;
}
.about-quote::before {
  content: '\201C';
  font-style: normal;
  color: var(--muted);
  margin-right: 4px;
}
.about-quote::after {
  content: '\201D';
  font-style: normal;
  color: var(--muted);
  margin-left: 4px;
}
@media (max-width: 900px) {
  .about { padding: 80px 24px 72px; }
  .about-text { max-width: 100%; }
  .about .stack { max-width: 100%; }
  .about-quote { max-width: 100%; }
}

/* ---- Approach with dot connectors ---------------------------- */
.approach .principles {
  position: relative;
}
.connector {
  position: absolute;
  top: 110px;
  left: 16.66%;
  right: 16.66%;
  height: 1px;
  pointer-events: none;
  z-index: 2;
  border-top: 1px dashed rgba(155,153,144,0.3);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.connector::before, .connector::after {
  content: "";
  position: absolute;
  top: -4px;
  width: 9px;
  height: 9px;
  background: var(--fg);
  border-radius: 50%;
}
.connector::before { left: -4px; }
.connector::after { right: -4px; }
.principle .pr-num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--muted);
  text-transform: lowercase;
  margin-bottom: 0;
}
@media (max-width: 1100px) {
  .connector { display: none; }
}

/* ---- Globe / work & education section ----------------------- */
.globe-section {
  padding: 60px 0 0;
}
.globe-section .section-head {
  padding: 0 48px;
  margin-bottom: 24px;
  display: block;
}
.globe-section .section-head h2 {
  max-width: none;
  font-size: clamp(24px, 2.8vw, 44px);
  line-height: 1;
  letter-spacing: -0.03em;
  text-align: center;
  margin: 0;
}
.globe-wrap {
  width: 100%;
  height: 88vh;
  min-height: 640px;
  position: relative;
  /* no overflow:hidden — particles bleed into adjacent sections */
}
#globe-canvas {
  position: absolute;
  left: 0;
  right: 0;
  top: -220px;     /* bleed upward into approach section */
  bottom: -220px;  /* bleed downward into work section */
  width: 100%;
  display: block;
  pointer-events: auto;
  touch-action: pan-y;
  z-index: 1;
  /* gradient mask so particles fade at top/bottom rather than hard-clip */
  -webkit-mask-image: linear-gradient(to bottom,
    transparent 0px,
    black 220px,
    black calc(100% - 220px),
    transparent 100%
  );
  mask-image: linear-gradient(to bottom,
    transparent 0px,
    black 220px,
    black calc(100% - 220px),
    transparent 100%
  );
}
@media (max-width: 1100px) {
  #globe-canvas {
    top: 0;
    bottom: -72px;
    -webkit-mask-image: linear-gradient(to bottom,
      black 0px,
      black calc(100% - 72px),
      transparent 100%
    );
    mask-image: linear-gradient(to bottom,
      black 0px,
      black calc(100% - 72px),
      transparent 100%
    );
  }
}

@media (max-width: 900px) {
  .globe-section { padding-top: 36px; }
  .globe-section .section-head {
    padding: 0 24px;
    margin-bottom: 8px;
  }
  .globe-section .section-head h2 {
    font-size: clamp(20px, 7.4vw, 34px);
    line-height: 1.06;
  }
  .globe-wrap {
    height: 56vh;
    min-height: 360px;
  }
  #globe-canvas {
    top: 0;
    bottom: -56px;
    -webkit-mask-image: linear-gradient(to bottom,
      black 0px,
      black calc(100% - 56px),
      transparent 100%
    );
    mask-image: linear-gradient(to bottom,
      black 0px,
      black calc(100% - 56px),
      transparent 100%
    );
  }
}

@media (orientation: portrait) {
  .globe-section {
    padding-top: 28px;
  }
  .globe-section .section-head {
    position: relative;
    z-index: 2;
    margin-bottom: 28px;
  }
  .globe-wrap {
    height: 44vh;
    min-height: 300px;
  }
  #globe-canvas {
    top: 18px;
    bottom: -48px;
    -webkit-mask-image: linear-gradient(to bottom,
      transparent 0px,
      black 56px,
      black calc(100% - 48px),
      transparent 100%
    );
    mask-image: linear-gradient(to bottom,
      transparent 0px,
      black 56px,
      black calc(100% - 48px),
      transparent 100%
    );
  }
}

/* ---- Projects sticky section --------------------------------- */
.projects-outer {
  padding: 0;
}
.projects-wrapper {
  position: relative;
  /* height set dynamically by projects.js: N × 100vh */
}
.projects-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto 1fr;
  overflow: hidden;
}
.proj-heading {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 40px 56px 28px;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.proj-heading-title {
  font-size: clamp(24px, 2.8vw, 44px);
  line-height: 1;
  letter-spacing: -0.03em;
  font-weight: 500;
  margin: 10px 0 0;
}
.proj-counter {
  position: absolute;
  right: 56px;
  bottom: 28px;
  color: var(--fg-2);
}
.proj-rail {
  display: flex;
  flex-direction: column;
  gap: 18px;
  flex-shrink: 0;
  padding-top: 4px;
}
.proj-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--muted);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background 0.3s, transform 0.35s;
}
.proj-dot.active {
  background: var(--fg);
  transform: scale(1.6);
}
.proj-dot:hover:not(.active) {
  background: var(--fg-2);
}
.proj-desc-panel {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
  gap: 48px;
  padding: 32px 52px 48px 40px;
  transition: opacity 0.22s ease, transform 0.22s ease;
}
.proj-desc-body {
  max-width: 420px;
  text-align: right;
  flex-shrink: 0;
}
.proj-meta {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin-bottom: 20px;
}
.proj-title {
  font-size: clamp(38px, 4.5vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--fg);
  margin-bottom: 28px;
}
.proj-text {
  font-size: 17px;
  line-height: 1.65;
  color: var(--fg-2);
  margin: 0 0 32px;
}
.proj-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.proj-tag {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  padding: 4px 10px;
  border: 1px solid var(--line-2);
  border-radius: 2px;
  color: var(--muted);
  text-transform: lowercase;
}
.proj-more {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 6px;
  margin-top: 28px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  padding: 6px 10px;
  border: 1px solid var(--line-2);
  border-radius: 2px;
  color: var(--fg-2);
  background-color: rgba(255, 255, 255, 0.02);
  cursor: pointer;
  text-transform: lowercase;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s, background-color 0.2s;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background-image:
    linear-gradient(
      100deg,
      rgba(200, 198, 189, 0.58) 0%,
      rgba(220, 218, 210, 0.72) 24%,
      rgba(252, 250, 243, 0.98) 46%,
      rgba(255, 255, 255, 1) 50%,
      rgba(252, 250, 243, 0.98) 54%,
      rgba(220, 218, 210, 0.72) 76%,
      rgba(200, 198, 189, 0.58) 100%
    );
  background-size: 260% 100%;
  background-position: 160% 50%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: proj-more-text-sheen 6.2s cubic-bezier(0.22, 0.61, 0.36, 1) infinite;
}
.proj-more::before {
  content: "";
  position: absolute;
  top: -180%;
  bottom: -180%;
  left: -110%;
  width: 110%;
  background:
    linear-gradient(
      106deg,
      transparent 0%,
      rgba(255, 255, 255, 0.00) 14%,
      rgba(255, 255, 255, 0.02) 28%,
      rgba(255, 255, 255, 0.08) 40%,
      rgba(255, 255, 255, 0.18) 48%,
      rgba(255, 255, 255, 0.24) 50%,
      rgba(255, 255, 255, 0.18) 52%,
      rgba(255, 255, 255, 0.08) 60%,
      rgba(255, 255, 255, 0.02) 72%,
      rgba(255, 255, 255, 0.00) 86%,
      transparent 100%
    );
  transform: translateX(-190%) skewX(-18deg);
  filter: blur(14px);
  opacity: 0.95;
  will-change: transform;
  animation: proj-more-sheen 6.2s cubic-bezier(0.22, 0.61, 0.36, 1) infinite;
  pointer-events: none;
  z-index: -1;
}
.proj-more:hover {
  border-color: var(--fg);
  background-color: rgba(255, 255, 255, 0.04);
}

@keyframes proj-more-sheen {
  0%, 22% {
    transform: translateX(-190%) skewX(-18deg);
  }
  56%, 100% {
    transform: translateX(250%) skewX(-18deg);
  }
}

@keyframes proj-more-text-sheen {
  0%, 22% {
    background-position: 160% 50%;
  }
  56%, 100% {
    background-position: -70% 50%;
  }
}
.proj-canvas-wrap {
  position: relative;
}
.proj-canvas-wrap::before {
  content: '';
  position: absolute;
  left: 0;
  top: 18%;
  height: 64%;
  width: 1px;
  background: var(--line);
  pointer-events: none;
  z-index: 2;
}
#proj-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.proj-canvas-hint {
  position: absolute;
  bottom: 32px;
  right: 48px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--muted);
  text-transform: lowercase;
  pointer-events: none;
}
@media (max-width: 900px) {
  .projects-sticky {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr 1fr;
  }
  .proj-heading { padding: 28px 24px 20px; }
  .proj-counter { right: 24px; bottom: 20px; }
  .proj-desc-panel { padding: 24px 24px 32px 24px; justify-content: flex-start; }
  .proj-desc-body { max-width: 100%; }
  .proj-canvas-wrap::before { display: none; }
  .proj-canvas-wrap { border-top: 1px solid var(--line); }
}

/* ---- Projects list (vertical stack) -------------------------- */
.projects-list {
  padding: 240px 48px 160px;
}
.proj-list-head {
  margin-bottom: 72px;
  text-align: center;
}
.proj-list-title {
  font-size: clamp(24px, 2.8vw, 44px);
  line-height: 1;
  letter-spacing: -0.03em;
  font-weight: 500;
  margin: 0;
}
.proj-list-head,
.proj-list-body {
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}
.proj-row {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 48px;
  padding: 56px 0;
  border-bottom: 1px solid var(--line);
  align-items: center;
}
.proj-row:hover .proj-row-title { color: var(--accent); }
.proj-row-main {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-self: start;
  position: relative;
  z-index: 1;
}
.proj-row-title {
  font-family: var(--sans);
  font-size: clamp(32px, 3.8vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  font-weight: 500;
  margin: 0;
  transition: color 0.4s ease;
}
.proj-row-desc {
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  color: var(--fg-2);
  margin: 0;
  max-width: 56ch;
}
.proj-row-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.proj-bubble-wrap {
  position: relative;
  overflow: visible;
  min-height: 220px;
}
.proj-bubble-canvas {
  display: block;
  position: absolute;
  top: -100px;
  left: -40px;
  width: calc(100% + 80px);
  height: calc(100% + 200px);
  pointer-events: none;
}
.proj-bubble-wrap .proj-canvas-hint {
  bottom: 12px;
  right: 14px;
}
@media (max-width: 1100px) {
  .proj-row { grid-template-columns: 1fr 220px; gap: 32px; }
}
@media (max-width: 900px) {
  .projects-list { padding: 280px 24px 120px; }
  .proj-row {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .proj-bubble-wrap { min-height: 180px; }
}

/* ---- Reveal -------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1.1s cubic-bezier(0.2, 0.8, 0.2, 1), transform 1.1s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}
.reveal.d1 { transition-delay: 0.10s; }
.reveal.d2 { transition-delay: 0.20s; }
.reveal.d3 { transition-delay: 0.30s; }
.reveal.d4 { transition-delay: 0.40s; }

.clip { display: inline-block; overflow: hidden; }
.clip > span {
  display: inline-block;
  transform: translateY(110%);
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.clip.in > span { transform: translateY(0); }
.clip.d1 > span { transition-delay: 0.12s; }
.clip.d2 > span { transition-delay: 0.24s; }
.clip.d3 > span { transition-delay: 0.36s; }

/* ---- Responsive ---------------------------------------------- */
@media (max-width: 900px) {
  .nav {
    padding: 20px 24px;
    gap: 16px;
  }
  .nav .logo,
  .nav-spacer {
    flex: 0 0 auto;
  }
  .nav ul {
    display: flex;
    gap: 14px;
    margin-left: auto;
    font-size: 10px;
    letter-spacing: 0.08em;
  }
  .nav-spacer { display: none; }
  section { padding: 100px 24px; }
  .hero { padding: 0 24px; }
  .hero-center { align-self: stretch; }
  .hero-ident {
    position: absolute;
    left: 16px;
    top: 58px;
  }
  .hero-eyebrow { letter-spacing: 0.06em; }
  .eyebrow-left,
  .eyebrow-role-wrap { width: 120px; }
  .statement { padding: 120px 24px; }
  .hero-foot { left: 24px; right: 24px; bottom: 32px; }
  .section-head, .about-body, .tl-item, .contact-grid, .statement-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .wrow {
    grid-template-columns: 1fr 40px;
    gap: 16px;
  }
  .wrow .w-year, .wrow .w-desc { display: none; }
  .stack { grid-template-columns: 1fr; gap: 0; }
  .contact {
    padding-top: 120px;
    padding-bottom: 72px;
  }
  .contact-grid {
    width: calc(100% - 48px);
    margin-top: 0;
  }
  .footer-bar {
    margin-top: 96px;
    gap: 16px;
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 520px) {
  .nav {
    padding: 18px 16px;
    gap: 12px;
  }
  .nav .logo {
    gap: 8px;
  }
  .nav ul {
    gap: 10px;
    font-size: 9px;
    letter-spacing: 0.06em;
  }
}
