/* ===== Tokens ===== */
:root {
  --cream: #faf6ee;
  --cream-2: #f4ecdd;
  --ink: #1a1a1f;
  --ink-soft: #3a3a44;
  --ink-muted: #6b6b75;
  --line: #e6dfd0;

  --mint: #bfead4;
  --mint-2: #a5dec2;
  --lavender: #d9ccff;
  --lavender-2: #c4b2ff;
  --peach: #ffcfb8;
  --peach-2: #ffb898;
  --butter: #ffe9a8;
  --butter-2: #ffd978;
  --cherry: #ff9fb3;

  --font-display: "Bricolage Grotesque", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-body: "Geist", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --display-weight: 600;
  --display-italic: normal;
  --display-tracking: -0.035em;

  --r-sm: 10px;
  --r-md: 18px;
  --r-lg: 28px;
  --r-xl: 44px;
  --ease-smooth: cubic-bezier(0.22, 1, 0.36, 1);

  --shadow-soft: 0 1px 0 rgba(26, 26, 31, 0.04), 0 18px 40px -20px rgba(26, 26, 31, 0.15);
  --shadow-pop: 0 1px 0 rgba(26, 26, 31, 0.06), 0 30px 60px -24px rgba(26, 26, 31, 0.22);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* ===== Background gradient mesh ===== */
.mesh {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.mesh::before,
.mesh::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
}
.mesh::before {
  width: 60vw;
  height: 60vw;
  left: -15vw;
  top: -15vw;
  background: radial-gradient(circle, var(--lavender) 0%, transparent 70%);
  animation: drift1 24s ease-in-out infinite alternate;
}
.mesh::after {
  width: 55vw;
  height: 55vw;
  right: -10vw;
  top: 20vh;
  background: radial-gradient(circle, var(--peach) 0%, transparent 70%);
  animation: drift2 30s ease-in-out infinite alternate;
}
.mesh-3 {
  position: absolute;
  width: 50vw;
  height: 50vw;
  left: 25vw;
  top: 80vh;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.45;
  background: radial-gradient(circle, var(--mint) 0%, transparent 70%);
  animation: drift3 28s ease-in-out infinite alternate;
}
.mesh::before,
.mesh::after,
.mesh-3,
.contact-wrap::before,
.nav-dot,
.hero h1 em,
.eyebrow .status-pulse {
  will-change: transform;
}

@keyframes drift1 {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(10vw, 8vh) scale(1.1); }
}
@keyframes drift2 {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-8vw, 10vh) scale(0.9); }
}
@keyframes drift3 {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-12vw, -6vh) scale(1.15); }
}

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

/* ===== Layout ===== */
.shell {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ===== Nav ===== */
.nav {
  position: sticky;
  top: 18px;
  z-index: 40;
  margin: 18px auto 0;
  padding: 0 28px;
}
.nav-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px 10px 20px;
  background: rgba(250, 246, 238, 0.7);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border: 1px solid rgba(26, 26, 31, 0.06);
  border-radius: 999px;
  box-shadow: var(--shadow-soft);
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: -0.01em;
}
.nav-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--peach-2);
  box-shadow: 0 0 0 4px var(--peach) inset, 0 0 0 1px rgba(0,0,0,0.04);
  animation: breathe 4s ease-in-out infinite;
}
@keyframes breathe {
  0%, 100% { transform: scale(1); background: var(--peach-2); box-shadow: 0 0 0 4px var(--peach) inset, 0 0 0 1px rgba(0,0,0,0.04); }
  50% { transform: scale(1.1); background: var(--lavender-2); box-shadow: 0 0 0 4px var(--lavender) inset, 0 0 0 1px rgba(0,0,0,0.04); }
}
.nav-links {
  display: flex;
  gap: 4px;
  align-items: center;
}
.nav-link {
  font-size: 14px;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--ink-soft);
  transition: background 0.25s ease, color 0.25s ease;
}
.nav-link:hover { background: var(--cream-2); color: var(--ink); }
.nav-cta {
  font-size: 14px;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--cream);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform 0.2s ease, background 0.2s ease;
}
.nav-cta:hover { transform: translateY(-1px); background: #000; }

/* ===== Hero ===== */
.hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  align-items: center;
  padding: 60px 0 120px;
}
.hero-text .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  padding: 8px 14px;
  background: rgba(255,255,255,0.5);
  border: 1px solid var(--line);
  border-radius: 999px;
  margin-bottom: 28px;
}
.eyebrow .status-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4caf6e;
  box-shadow: 0 0 0 0 rgba(76, 175, 110, 0.5);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(76, 175, 110, 0.5); }
  70% { box-shadow: 0 0 0 10px rgba(76, 175, 110, 0); }
  100% { box-shadow: 0 0 0 0 rgba(76, 175, 110, 0); }
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-size: clamp(52px, 7.5vw, 104px);
  line-height: 0.98;
  letter-spacing: var(--display-tracking);
  font-style: var(--display-italic);
  margin: 0 0 28px;
}
.hero h1 em {
  font-style: italic;
  color: transparent;
  background: linear-gradient(100deg, var(--lavender-2), var(--peach-2) 40%, var(--butter-2) 70%, var(--mint-2));
  -webkit-background-clip: text;
  background-clip: text;
  background-size: 200% 100%;
  animation: shine 8s ease-in-out infinite;
}
@keyframes shine {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
.hero .lede {
  font-size: 19px;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 520px;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.btn {
  padding: 14px 22px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn-primary {
  background: var(--ink);
  color: var(--cream);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 30px -10px rgba(26,26,31,0.4); }
.btn-secondary {
  background: rgba(255,255,255,0.7);
  border: 1px solid var(--line);
}
.btn-secondary:hover { transform: translateY(-2px); background: #fff; box-shadow: var(--shadow-soft); }
.btn-arrow {
  display: inline-block;
  transition: transform 0.2s ease;
}
.btn:hover .btn-arrow { transform: translate(3px, -3px); }

.socials {
  display: flex;
  gap: 10px;
  align-items: center;
}
.social-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,0.5);
  border: 1px solid var(--line);
  transition: transform 0.2s ease, background 0.2s ease;
}
.social-link:hover { transform: translateY(-3px) rotate(-6deg); background: var(--butter); }

/* ===== Hero toy ===== */
.toy {
  position: relative;
  height: 520px;
  border-radius: var(--r-xl);
  overflow: hidden;
  background: linear-gradient(135deg, rgba(255,255,255,0.5), rgba(255,255,255,0.2));
  border: 1px solid rgba(255,255,255,0.8);
  box-shadow: var(--shadow-pop);
  cursor: grab;
  touch-action: none;
}
.toy:active { cursor: grabbing; }
.toy-hint {
  position: absolute;
  top: 20px;
  left: 20px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  padding: 6px 12px;
  background: rgba(255,255,255,0.6);
  border-radius: 999px;
  z-index: 3;
  pointer-events: none;
}
.toy-hint .blink { animation: blink 1.5s ease-in-out infinite; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }

.toy-svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* ===== Section heading ===== */
.section {
  padding: 80px 0;
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 40px;
  gap: 20px;
  flex-wrap: wrap;
}
.section-title {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1;
  letter-spacing: var(--display-tracking);
  font-style: var(--display-italic);
  margin: 0;
}
.section-title em {
  font-style: italic;
  color: var(--ink-muted);
}
.section-sub {
  font-size: 16px;
  color: var(--ink-muted);
  max-width: 420px;
  margin: 0;
}
.section-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-tag::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--ink-muted);
}

/* ===== Project grid ===== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.project-card {
  background: rgba(255,255,255,0.55);
  border: 1px solid rgba(255,255,255,0.9);
  border-radius: var(--r-lg);
  padding: 20px;
  cursor: pointer;
  transition: transform 0.24s var(--ease-smooth), box-shadow 0.24s ease, background 0.24s ease, border-color 0.24s ease;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  overflow: hidden;
  will-change: transform;
  transform: translateZ(0);
}
.project-card:hover {
  transform: translate3d(0, -4px, 0);
  box-shadow: var(--shadow-pop);
  background: rgba(255,255,255,0.85);
}
.project-card:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 4px;
}
.project-thumb {
  aspect-ratio: 4 / 3;
  border-radius: var(--r-md);
  overflow: hidden;
  position: relative;
  display: grid;
  place-items: center;
  isolation: isolate;
}
.project-thumb--photo .project-thumb-layer,
.project-thumb--photo .project-thumb-gloss {
  display: none;
}
.project-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.12), rgba(255,255,255,0) 45%, rgba(26,26,31,0.08));
  z-index: 1;
}
.project-thumb-layer,
.feature-orb {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, var(--thumb-color, var(--orb-color)) 0%, var(--thumb-color, var(--orb-color)) 38%, transparent 72%);
  animation: floatBlob var(--blob-duration, 16s) ease-in-out infinite alternate;
  animation-delay: var(--blob-delay, 0s);
  will-change: transform;
}
.project-thumb-layer-a {
  width: 58%;
  aspect-ratio: 1;
  top: 10%;
  left: 12%;
}
.project-thumb-layer-b {
  width: 36%;
  aspect-ratio: 1;
  top: 16%;
  right: 10%;
}
.project-thumb-layer-c {
  width: 52%;
  aspect-ratio: 1;
  right: 16%;
  bottom: 4%;
}
.project-thumb-gloss {
  position: absolute;
  inset: auto 10% 8% auto;
  width: 18%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(255,255,255,0.42);
  z-index: 1;
}
.project-card:hover .project-thumb-layer {
  animation-duration: 10s;
}
@keyframes floatBlob {
  0% { transform: translate3d(-2%, -1%, 0) scale(0.98) rotate(-5deg); }
  50% { transform: translate3d(3%, 2%, 0) scale(1.04) rotate(4deg); }
  100% { transform: translate3d(-1%, 3%, 0) scale(0.99) rotate(7deg); }
}

.project-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.project-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.project-year { opacity: 0.7; }
.project-title {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-size: 28px;
  line-height: 1.05;
  letter-spacing: -0.015em;
  margin: 0;
}
.project-desc {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.5;
  margin: 0;
}
.project-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--cream-2);
  color: var(--ink-soft);
}
.project-arrow {
  position: absolute;
  top: 32px;
  right: 32px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--cream);
  display: grid;
  place-items: center;
  opacity: 0;
  transform: translate(8px, -8px) scale(0.8);
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 2;
}
.project-card:hover .project-arrow {
  opacity: 1;
  transform: translate(0, 0) scale(1);
}

/* ===== Skills ===== */
.skills-wrap {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 60px;
  align-items: start;
}
.skills-copy h3 {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-size: 44px;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
}
.skills-copy p {
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.6;
  margin: 0;
}
.skills-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.skill-chip {
  padding: 12px 20px;
  background: rgba(255,255,255,0.6);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}
.skill-chip:hover {
  transform: translateY(-3px) rotate(-2deg);
}
.skill-chip .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.skill-chip[data-color="mint"]:hover { background: var(--mint); border-color: var(--mint-2); }
.skill-chip[data-color="lavender"]:hover { background: var(--lavender); border-color: var(--lavender-2); }
.skill-chip[data-color="peach"]:hover { background: var(--peach); border-color: var(--peach-2); }
.skill-chip[data-color="butter"]:hover { background: var(--butter); border-color: var(--butter-2); }

/* ===== Timeline ===== */
.timeline {
  position: relative;
  padding-left: 32px;
  margin-top: 20px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(to bottom, var(--lavender), var(--peach), var(--mint));
  border-radius: 2px;
}
.timeline-item {
  position: relative;
  padding-bottom: 40px;
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: -32px;
  top: 6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--cream);
  border: 2px solid var(--ink);
  transition: background 0.25s ease;
}
.timeline-item:hover::before { background: var(--butter-2); }
.timeline-date {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 4px;
}
.timeline-role {
  font-family: var(--font-display);
  font-size: 26px;
  line-height: 1.1;
  margin: 0 0 4px;
}
.timeline-company { color: var(--ink-soft); font-size: 14px; margin-bottom: 8px; }
.timeline-desc { font-size: 14px; color: var(--ink-soft); max-width: 460px; margin: 0; }

/* ===== Contact ===== */
.contact-wrap {
  background: linear-gradient(135deg, var(--lavender) 0%, var(--peach) 50%, var(--butter) 100%);
  border-radius: var(--r-xl);
  padding: 60px;
  position: relative;
  overflow: hidden;
}
.contact-wrap::before {
  content: "";
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--mint) 0%, transparent 70%);
  top: -100px;
  right: -100px;
  opacity: 0.6;
  animation: drift1 20s ease-in-out infinite alternate;
}
.contact-wrap > * { position: relative; z-index: 1; }
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.contact-copy h3 {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-size: clamp(40px, 5vw, 60px);
  line-height: 1;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
}
.contact-copy h3 em {
  font-style: italic;
}
.contact-copy p {
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0 0 24px;
  max-width: 440px;
}
.contact-links {
  background: rgba(255,255,255,0.7);
  border: 1px solid rgba(255,255,255,0.9);
  border-radius: var(--r-lg);
  padding: 12px;
  backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.contact-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 18px;
  border-radius: var(--r-md);
  text-decoration: none;
  color: var(--ink);
  border: 1px solid transparent;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.contact-link:hover {
  background: rgba(255,255,255,0.88);
  border-color: var(--line);
  transform: translateY(-1px);
}
.contact-link-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  min-width: 0;
}
.contact-link-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.contact-link-hint {
  font-size: 15px;
  line-height: 1.3;
  color: var(--ink);
  word-break: break-word;
}
.contact-link-arrow {
  flex-shrink: 0;
  font-size: 18px;
  line-height: 1;
  color: var(--ink-muted);
  opacity: 0.6;
}
.contact-link:hover .contact-link-arrow {
  color: var(--ink);
  opacity: 0.9;
}
.contact-link:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

/* ===== Footer ===== */
.footer {
  padding: 60px 0 40px;
  border-top: 1px solid var(--line);
  margin-top: 80px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-muted);
  letter-spacing: 0.04em;
}

/* ===== Project detail takeover ===== */
.takeover {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--cream);
  overflow-y: auto;
  opacity: 0;
  animation: takeoverFade 0.28s var(--ease-smooth) forwards;
}
.takeover.leaving { animation: takeoverFade 0.2s ease forwards reverse; }
@keyframes takeoverFade {
  from { opacity: 0; }
  to { opacity: 1; }
}
.takeover-content {
  opacity: 0;
  transform: translate3d(0, 18px, 0);
  animation: tkContentIn 0.34s var(--ease-smooth) 0.04s forwards;
}
.takeover.leaving .takeover-content { animation: tkContentOut 0.18s ease forwards; }
@keyframes tkContentIn {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes tkContentOut {
  to { opacity: 0; transform: translate3d(0, 12px, 0); }
}
.takeover-nav {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 20px 28px;
  background: rgba(250, 246, 238, 0.8);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.takeover-close {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--cream);
  font-size: 14px;
  font-weight: 500;
  transition: transform 0.18s ease, background 0.18s ease;
}
.takeover-close:hover { transform: translate3d(-2px, 0, 0); background: #000; }
.takeover-pager {
  display: flex;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-muted);
  align-items: center;
}
.pager-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.5);
  display: grid;
  place-items: center;
  transition: background 0.2s ease, transform 0.2s ease;
}
.pager-btn:hover { background: var(--butter); transform: translateY(-2px); }
.pager-btn:disabled { opacity: 0.3; cursor: default; transform: none; }

.takeover-hero {
  padding: 60px 28px 40px;
  max-width: 1240px;
  margin: 0 auto;
}
.takeover-hero .tk-tag {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 18px;
}
.takeover-hero h2 {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-size: clamp(56px, 8vw, 104px);
  line-height: 0.98;
  letter-spacing: var(--display-tracking);
  font-style: var(--display-italic);
  margin: 0 0 24px;
}
.takeover-hero h2 em { font-style: italic; color: var(--ink-muted); }
.takeover-hero .tk-lede {
  font-size: 20px;
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 680px;
  margin: 0 0 32px;
}

.takeover-feature {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 28px;
}
.feature-art {
  aspect-ratio: 16 / 9;
  border-radius: var(--r-xl);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-pop);
  isolation: isolate;
}
.feature-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0) 45%, rgba(250,246,238,0.9) 100%);
  pointer-events: none;
}
.feature-art--photo .feature-orb,
.feature-art--photo .feature-label {
  display: none;
}
.feature-orb {
  background: radial-gradient(circle at 35% 35%, var(--orb-color) 0%, var(--orb-color) 38%, transparent 72%);
}
.feature-orb-a {
  width: 34%;
  aspect-ratio: 1;
  left: 8%;
  top: 28%;
}
.feature-orb-b {
  width: 26%;
  aspect-ratio: 1;
  left: 46%;
  top: 18%;
}
.feature-orb-c {
  width: 32%;
  aspect-ratio: 1;
  right: 9%;
  top: 34%;
}
.feature-orb-d {
  width: 24%;
  aspect-ratio: 1;
  left: 34%;
  bottom: 10%;
}
.feature-label {
  position: absolute;
  left: 48px;
  bottom: 40px;
  z-index: 1;
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(26, 26, 31, 0.42);
}

.takeover-body {
  max-width: 1240px;
  margin: 0 auto;
  padding: 80px 28px;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 60px;
  align-items: start;
}
.tk-side {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.tk-side-block h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin: 0 0 10px;
}
.tk-side-block p {
  font-size: 15px;
  margin: 0;
}
.tk-side-block a {
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.tk-side-block a:hover { color: var(--peach-2); border-color: var(--peach-2); }
.tk-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.tk-main h3 {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-size: 36px;
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin: 0 0 16px;
}
.tk-main p {
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-soft);
  margin: 0 0 22px;
  max-width: 640px;
}
.tk-main p strong { color: var(--ink); font-weight: 500; }
.tk-list {
  list-style: none;
  padding: 0;
  margin: 0 0 40px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.tk-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.5;
}
.tk-list li::before {
  content: "";
  margin-top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.tk-list li:nth-child(3n+1)::before { background: var(--peach-2); }
.tk-list li:nth-child(3n+2)::before { background: var(--lavender-2); }
.tk-list li:nth-child(3n+3)::before { background: var(--mint-2); }

.tk-next {
  max-width: 1240px;
  margin: 0 auto 80px;
  padding: 40px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--line);
  gap: 20px;
  flex-wrap: wrap;
}
.tk-next-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 6px;
}
.tk-next-link {
  font-family: var(--font-display);
  font-size: 36px;
  letter-spacing: -0.015em;
  display: inline-flex;
  align-items: center;
  gap: 16px;
  transition: color 0.2s ease;
}
.tk-next-link:hover { color: var(--peach-2); }
.tk-next-link .arrow { transition: transform 0.2s ease; }
.tk-next-link:hover .arrow { transform: translateX(8px); }

/* ===== Reveal ===== */
/* Hero is above the fold: keep it visible without waiting for JS (avoids long “blank” first paint). */
#top .reveal {
  opacity: 1;
  transform: translateY(0);
}
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s cubic-bezier(0.2, 0.9, 0.3, 1), transform 0.8s cubic-bezier(0.2, 0.9, 0.3, 1);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }
.reveal[data-delay="4"] { transition-delay: 0.32s; }
.reveal[data-delay="5"] { transition-delay: 0.4s; }

body.locked { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal,
  .takeover-content {
    opacity: 1;
    transform: none;
  }
}

/* ===== Responsive ===== */
@media (max-width: 1000px) {
  .hero { grid-template-columns: 1fr; padding: 60px 0 80px; }
  .toy { height: 400px; }
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .skills-wrap { grid-template-columns: 1fr; gap: 32px; }
  .contact-inner { grid-template-columns: 1fr; gap: 32px; }
  .contact-wrap { padding: 40px 28px; }
  .takeover-body { grid-template-columns: 1fr; gap: 32px; }
  .tk-side { position: relative; top: 0; }
}
@media (max-width: 640px) {
  .nav-links { display: none; }
  .projects-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 56px; }
  .toy { height: 340px; }
  .section { padding: 60px 0; }
  .feature-label {
    left: 24px;
    bottom: 22px;
    font-size: 11px;
    letter-spacing: 0.12em;
  }
}
