/* ============================================================
   DESIGN TOKENS — single source of truth
   ============================================================ */
:root {
  /* Color palette — warm neutral, low saturation */
  --paper:       #f4f0e8;
  --paper-2:     #ece7dc;
  --paper-3:     #e2dccd;
  --ink:         #1a1814;
  --ink-2:       #2a2722;
  --muted:       #6f6a60;
  --muted-2:     #94908a;
  --hairline:    #d9d4c7;
  --accent:      oklch(48% 0.045 130);
  --accent-soft: oklch(48% 0.045 130 / 0.10);
  --highlight:   #e8b86a;

  /* Typography */
  --font-display: "Instrument Serif", "Cormorant Garamond", Georgia, serif;
  --font-ui:      "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  /* Spacing scale */
  --space-1: 4px;   --space-2: 8px;   --space-3: 12px;  --space-4: 16px;
  --space-5: 24px;  --space-6: 32px;  --space-7: 48px;  --space-8: 64px;
  --space-9: 96px;  --space-10: 128px; --space-11: 160px;

  /* Radii */
  --radius-sm: 4px;
  --radius:    10px;
  --radius-lg: 18px;

  /* Layout */
  --maxw:   1320px;
  --gutter: clamp(20px, 4vw, 56px);

  /* Easing */
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* Dark mode — warm dark */
html[data-theme="dark"] {
  --paper:       #14130f;
  --paper-2:     #1c1a16;
  --paper-3:     #25221c;
  --ink:         #f1ece1;
  --ink-2:       #d9d3c5;
  --muted:       #8e887d;
  --muted-2:     #6a655c;
  --hairline:    #2c2922;
  --accent:      oklch(72% 0.06 130);
  --accent-soft: oklch(72% 0.06 130 / 0.12);
}

/* ============================================================
   BASE RESET
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.55;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background-color .4s var(--ease), color .4s var(--ease);
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a        { color: inherit; text-decoration: none; }

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0;
}

::selection {
  background: var(--ink);
  color: var(--paper);
}

/* Subtle paper-grain overlay — purely decorative */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: .035;
  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'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

html[data-theme="dark"] body::before {
  mix-blend-mode: screen;
  opacity: .05;
}

/* ============================================================
   LAYOUT
   ============================================================ */
.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-inline: var(--gutter);
  position: relative;
  z-index: 2;
}

section { position: relative; z-index: 2; }

.section {
  padding-block: clamp(72px, 11vw, 160px);
  border-top: 1px solid var(--hairline);
}
.section:first-of-type { border-top: 0; }

/* Section header — label + title two-column above 860px */
.section-head {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
  margin-bottom: clamp(48px, 7vw, 96px);
}
@media (min-width: 860px) {
  .section-head {
    grid-template-columns: 220px 1fr;
    gap: var(--space-8);
  }
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(36px, 5.2vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.01em;
  margin: 0;
  max-width: 22ch;
}
.section-title em {
  font-style: italic;
  color: var(--muted);
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 18px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  background: color-mix(in oklab, var(--paper) 75%, transparent);
  backdrop-filter: blur(14px) saturate(1.1);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), padding .3s var(--ease);
}
.nav.is-scrolled {
  border-bottom-color: var(--hairline);
  padding-block: 12px;
}

/* Logo / brand */
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .02em;
}
.brand-mark {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 14px;
  font-style: italic;
  flex-shrink: 0;
}

/* Desktop nav links */
.nav-links {
  display: none;
  gap: var(--space-6);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.nav-links a {
  color: var(--muted);
  position: relative;
  padding: 6px 0;
  transition: color .25s var(--ease);
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%; bottom: 2px;
  height: 1px;
  background: var(--ink);
  transition: right .35s var(--ease);
}
.nav-links a:hover       { color: var(--ink); }
.nav-links a:hover::after { right: 0; }
.nav-links a.is-active   { color: var(--ink); }
.nav-links a.is-active::after { right: 0; }

@media (min-width: 920px) {
  .nav-links { display: flex; }
}

/* Utility icon button */
.nav-right {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.icon-btn {
  width: 36px; height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--hairline);
  color: var(--ink);
  transition: background-color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.icon-btn:hover  { background: var(--paper-2); border-color: var(--ink); }
.icon-btn:active { transform: scale(.95); }
.icon-btn svg   { width: 15px; height: 15px; }

/* CTA pill — hidden < 920px */
.nav-cta {
  display: none;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 9px 16px;
  border: 1px solid var(--ink);
  border-radius: 100px;
  background: var(--ink);
  color: var(--paper);
  transition: transform .25s var(--ease), background-color .25s var(--ease);
}
.nav-cta:hover { transform: translateY(-1px); }

@media (min-width: 920px) {
  .nav-cta { display: inline-flex; }
}

/* Hamburger — visible < 920px */
.menu-btn { display: grid; }
@media (min-width: 920px) {
  .menu-btn { display: none; }
}

/* Full-screen mobile menu */
.mobile-menu {
  position: fixed; inset: 0;
  z-index: 60;
  background: var(--paper);
  padding: 80px var(--gutter) var(--gutter);
  display: flex;
  flex-direction: column;
  transform: translateY(-100%);
  transition: transform .5s var(--ease);
}
.mobile-menu.is-open { transform: translateY(0); }

.mobile-menu nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: var(--space-7);
}
.mobile-menu nav a {
  font-family: var(--font-display);
  font-size: 40px;
  line-height: 1.1;
  padding: 12px 0;
  border-bottom: 1px solid var(--hairline);
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.mobile-menu nav a span {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: .05em;
}

.mobile-menu-foot {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .05em;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  padding-top: clamp(120px, 16vh, 180px);
  padding-bottom: clamp(72px, 12vw, 140px);
  position: relative;
}

/* Availability / timezone meta row */
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3) var(--space-5);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--muted);
  margin-bottom: var(--space-6);
  text-transform: uppercase;
}
.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* Animated "available" dot */
.live-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #4caa6b;
  position: relative;
  flex-shrink: 0;
}
.live-dot::after {
  content: "";
  position: absolute; inset: -4px;
  border-radius: 50%;
  border: 1px solid #4caa6b;
  animation: pulse 2.4s var(--ease) infinite;
}
@keyframes pulse {
  0%   { transform: scale(.8); opacity: 1; }
  100% { transform: scale(2);  opacity: 0; }
}

/* Main headline — large display type */
.hero-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(56px, 11vw, 168px);
  line-height: .92;
  letter-spacing: -0.025em;
  margin: 0;
  color: var(--ink);
}
.hero-title .line {
  display: block;
  overflow: hidden;
}
.hero-title .line > span {
  display: inline-block;
  transform: translateY(110%);
  animation: rise 1s var(--ease) forwards;
}
.hero-title .line:nth-child(2) > span { animation-delay: .12s; }
.hero-title .line:nth-child(3) > span { animation-delay: .22s; }
.hero-title em        { font-style: italic; color: var(--muted); }
.hero-title .ampersand {
  font-style: italic;
  color: var(--accent);
  font-feature-settings: "ss01";
}

@keyframes rise {
  to { transform: translateY(0); }
}

/* Lede + CTA row */
.hero-bottom {
  margin-top: clamp(48px, 7vw, 88px);
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  align-items: end;
}
@media (min-width: 860px) {
  .hero-bottom {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
  }
}

.hero-lede {
  max-width: 48ch;
  font-size: clamp(16px, 1.2vw, 19px);
  line-height: 1.55;
  color: var(--ink-2);
}
.hero-lede strong { font-weight: 500; color: var(--ink); }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  align-self: end;
  justify-self: start;
}
@media (min-width: 860px) {
  .hero-actions { justify-self: end; }
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: .05em;
  text-transform: uppercase;
  border: 1px solid var(--ink);
  transition: transform .3s var(--ease), background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); }
.btn svg   { width: 14px; height: 14px; }

.btn-primary         { background: var(--ink); color: var(--paper); }
.btn-primary:hover   { background: var(--ink-2); }

.btn-ghost           { background: transparent; border-color: var(--hairline); color: var(--ink); }
.btn-ghost:hover     { border-color: var(--ink); background: var(--paper-2); }

/* ============================================================
   MARQUEE STRIP (skill ticker)
   ============================================================ */
.strip {
  margin-top: clamp(56px, 9vw, 110px);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  overflow: hidden;
  padding-block: 18px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.strip-track {
  display: flex;
  gap: 56px;
  animation: marquee 38s linear infinite;
  width: max-content;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted);
}
.strip-track span {
  display: inline-flex;
  align-items: center;
  gap: 56px;
  white-space: nowrap;
}
.strip-track span::after {
  content: "✺";
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 14px;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ============================================================
   ABOUT
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-7);
}
@media (min-width: 860px) {
  .about-grid {
    grid-template-columns: 5fr 7fr;
    gap: var(--space-8);
    align-items: start;
  }
}

/* Portrait card */
.portrait {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--paper-2);
  box-shadow:
    0 1px 0 var(--hairline),
    0 30px 60px -30px rgba(20, 18, 14, .25);
}
.portrait img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 18%;
  transition: transform 1.2s var(--ease);
}
.portrait:hover img { transform: scale(1.03); }

/* Bio copy */
.about-copy h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0 0 var(--space-5);
  max-width: 22ch;
}
.about-copy h3 em { font-style: italic; color: var(--muted); }
.about-copy p {
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-2);
  margin: 0 0 var(--space-4);
  max-width: 56ch;
}

/* Facts grid */
.facts {
  margin-top: var(--space-7);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
}
@media (min-width: 720px) {
  .facts { grid-template-columns: repeat(4, 1fr); }
}
.fact {
  padding: var(--space-5) 0;
  border-top: 1px solid var(--hairline);
}
.fact-num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1;
  color: var(--ink);
}
.fact-label {
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ============================================================
   STACK GRID
   ============================================================ */
.stack-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
@media (min-width: 720px)  { .stack-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1080px) { .stack-grid { grid-template-columns: 1fr 1fr 1fr; } }

.stack-cell {
  background: var(--paper);
  padding: var(--space-6);
  transition: background-color .3s var(--ease);
}
.stack-cell:hover { background: var(--paper-2); }

.stack-cat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: var(--space-5);
}
.stack-cat .idx { color: var(--ink); font-weight: 500; }

.stack-list {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-direction: column;
}
.stack-list li {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.4vw, 28px);
  line-height: 1.5;
  letter-spacing: -0.005em;
  display: flex;
  align-items: baseline;
  gap: 12px;
  color: var(--ink);
}
.stack-list li small {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted-2);
  letter-spacing: .05em;
}
.stack-list .learning {
  color: var(--muted);
  font-style: italic;
}

/* ============================================================
   PROJECTS — editorial index list
   ============================================================ */
.proj-list {
  border-top: 1px solid var(--hairline);
}

.proj-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2);
  padding: clamp(22px, 3vw, 32px) 0;
  border-bottom: 1px solid var(--hairline);
  align-items: center;
  transition: padding-left .4s var(--ease), background .4s var(--ease);
}
@media (min-width: 860px) {
  .proj-row {
    grid-template-columns: 110px 1.6fr 1.8fr 1fr 44px;
    gap: var(--space-6);
  }
}
.proj-row:hover {
  padding-left: var(--space-4);
  background: linear-gradient(90deg, var(--paper-2), transparent 30%);
}

.proj-idx {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .05em;
  color: var(--muted);
  text-transform: uppercase;
}
.proj-name {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.proj-name em { font-style: italic; color: var(--muted); }
.proj-role {
  font-family: var(--font-ui);
  font-size: 14px;
  color: var(--ink-2);
}
.proj-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .04em;
  color: var(--muted);
  text-transform: uppercase;
}

/* Arrow circle on project rows */
.proj-arrow {
  justify-self: end;
  display: inline-grid;
  place-items: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid var(--hairline);
  color: var(--ink);
  transition: transform .35s var(--ease), border-color .35s var(--ease), background .35s var(--ease);
}
.proj-row:hover .proj-arrow {
  transform: rotate(-45deg);
  border-color: var(--ink);
  background: var(--paper);
}
.proj-arrow svg { width: 13px; height: 13px; }

/* ============================================================
   COLLABORATIONS
   ============================================================ */
.collab-list {
  border-top: 1px solid var(--hairline);
}

.collab-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
  padding: clamp(28px, 4vw, 44px) 0;
  border-bottom: 1px solid var(--hairline);
  transition: padding-left .4s var(--ease), background .4s var(--ease);
}
@media (min-width: 860px) {
  .collab-row {
    grid-template-columns: 64px 2fr 2fr 1fr auto;
    gap: var(--space-6);
    align-items: center;
  }
}
.collab-row:hover {
  padding-left: var(--space-4);
  background: linear-gradient(90deg, var(--paper-2), transparent 30%);
}

.collab-idx {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: .05em;
}
.collab-name {
  font-family: var(--font-display);
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.collab-name em { font-style: italic; color: var(--muted); }
.collab-role {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .05em;
}
.collab-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-2);
  background: var(--paper-2);
  padding: 5px 10px;
  border-radius: 100px;
  justify-self: start;
  border: 1px solid var(--hairline);
}

/* Arrow circle on collab rows */
.collab-link {
  display: inline-grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--hairline);
  transition: transform .35s var(--ease), border-color .35s var(--ease);
}
.collab-link:hover {
  transform: rotate(-45deg);
  border-color: var(--ink);
}
.collab-link svg { width: 14px; height: 14px; }

/* Sub-links (individual projects within a collab) */
.collab-sublist {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-3);
}
.collab-sublist a {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--muted);
  letter-spacing: .03em;
  padding: 6px 10px;
  border: 1px solid var(--hairline);
  border-radius: 6px;
  transition: color .25s var(--ease), border-color .25s var(--ease), background .25s var(--ease);
}
.collab-sublist a:hover {
  color: var(--ink);
  border-color: var(--ink);
  background: var(--paper-2);
}

/* ============================================================
   PHOTOGRAPHY ASIDE
   ============================================================ */
.photo-note {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  align-items: center;
  padding: clamp(48px, 7vw, 96px);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, var(--paper-2), var(--paper));
}
@media (min-width: 860px) {
  .photo-note {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
  }
}
.photo-note h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0 0 var(--space-4);
  max-width: 18ch;
}
.photo-note h3 em { font-style: italic; color: var(--muted); }
.photo-note p     { color: var(--ink-2); max-width: 50ch; margin: 0; }

/* Camera aperture SVG illustration */
.aperture {
  position: relative;
  aspect-ratio: 1 / 1;
  max-width: 320px;
  margin-inline: auto;
}
.aperture svg { width: 100%; height: 100%; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact {
  text-align: center;
  padding-block: clamp(96px, 14vw, 200px);
  position: relative;
  overflow: hidden;
}

/* Code background — decorative, radial-masked so center stays clear */
.contact-bg {
  position: absolute; inset: 0;
  pointer-events: none;
  z-index: 0;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink);
  opacity: .1;
  white-space: pre;
  overflow: hidden;
  -webkit-mask-image: radial-gradient(ellipse at center, transparent 0%, transparent 30%, #000 80%);
          mask-image: radial-gradient(ellipse at center, transparent 0%, transparent 30%, #000 80%);
  padding: 24px;
  user-select: none;
}
html[data-theme="dark"] .contact-bg { opacity: .08; }

.contact .wrap    { position: relative; z-index: 1; }
.contact .eyebrow { justify-content: center; }

.contact-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(56px, 10vw, 160px);
  line-height: .92;
  letter-spacing: -0.025em;
  margin: var(--space-5) 0 var(--space-6);
}
.contact-title em { font-style: italic; color: var(--muted); }

/* Main mailto CTA */
.contact-mail {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: clamp(22px, 2.6vw, 32px);
  font-style: italic;
  color: var(--accent);
  padding: 18px 28px;
  border: 1px solid var(--accent);
  border-radius: 100px;
  margin-top: var(--space-4);
  transition: background .35s var(--ease), color .35s var(--ease), transform .35s var(--ease);
}
.contact-mail:hover {
  background: var(--accent);
  color: var(--paper);
  transform: translateY(-3px);
}

.contact-sub {
  margin-top: var(--space-6);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: .04em;
  text-transform: uppercase;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  border-top: 1px solid var(--hairline);
  padding: var(--space-7) 0 var(--space-5);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: .03em;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}
@media (min-width: 720px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
}

.footer h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  color: var(--ink);
  letter-spacing: .06em;
  margin: 0 0 var(--space-4);
}
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer a:hover { color: var(--ink); }

.footer-brand {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(36px, 5vw, 56px);
  color: var(--ink);
  line-height: 1;
  margin-bottom: var(--space-4);
}

.footer-bottom {
  margin-top: var(--space-7);
  padding-top: var(--space-5);
  border-top: 1px solid var(--hairline);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  justify-content: space-between;
  text-transform: uppercase;
}

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}
/* Staggered delays via data-d attribute */
.reveal[data-d="1"] { transition-delay: .08s; }
.reveal[data-d="2"] { transition-delay: .16s; }
.reveal[data-d="3"] { transition-delay: .24s; }
.reveal[data-d="4"] { transition-delay: .32s; }
.reveal[data-d="5"] { transition-delay: .40s; }

/* Respect user motion preferences */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* ============================================================
   CUSTOM CURSOR (desktop only)
   ============================================================ */
.cursor {
  position: fixed;
  top: 0; left: 0;
  width: 8px; height: 8px;
  background: var(--ink);
  border-radius: 50%;
  pointer-events: none;
  z-index: 999;
  transform: translate(-50%, -50%);
  transition: width .3s var(--ease), height .3s var(--ease), background-color .3s var(--ease);
  mix-blend-mode: difference;
}
.cursor.is-large { width: 48px; height: 48px; }

/* Hide on touch/small screens */
@media (hover: none), (max-width: 920px) {
  .cursor { display: none; }
}
/* ============================================================
   LANGUAGE TOGGLE BUTTON
   ============================================================ */
   .lang-btn {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: 5px 12px;
    border: 1px solid var(--hairline);
    border-radius: 100px;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    transition: color .25s var(--ease), border-color .25s var(--ease), background .25s var(--ease);
  }
  .lang-btn:hover {
    color: var(--ink);
    border-color: var(--ink);
    background: var(--paper-2);
  }


  #about{
    background: linear-gradient(
      to bottom,
      #f3eee6 0%,
      #e5ddd2 20%,
      
      #e7ddd1 60%,
      #e5ddd2 80%,
      #f3eee6 100%
    );
  }
#stack{
  background: linear-gradient(
    to top,
    
    #e5ddd2 10%,
    #e7ddd1 20%,
    #e5ddd2 30%,
    #f3eee6 40%
  
  );
}
  #work{
    background: linear-gradient(
      to bottom,
      
      #e5ddd2 10%,
      #e7ddd1 20%,
      #e5ddd2 30%,
      #f3eee6 40%
    
    );
  }
