/* ============================================================
   Shristi Kunwar · Portfolio 2026
   Editorial / Magazine-meets-Tech aesthetic.
   ============================================================ */

/* ---------- 1. Tokens ---------- */
:root {
  /* Palette */
  --paper:        #f5f1e8;
  --paper-2:      #efe8d6;
  --paper-3:      #e7dec6;
  --ink:          #15161a;
  --ink-soft:     #2b2c30;
  --muted:        #6a6a6f;
  --line:         #1a1a1f;
  --accent:       #c84b31;   /* terracotta */
  --accent-deep:  #a8381f;
  --accent-2:     #3a5a40;   /* forest sage */
  --accent-3:     #d4a373;   /* warm tan */
  --cream-soft:   #faf6eb;

  /* Typography */
  --serif:  "Fraunces", "Times New Roman", Georgia, serif;
  --sans:   "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono:   "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Sizing */
  --maxw:    1280px;
  --pad-x:   clamp(20px, 4vw, 56px);
  --pad-y:   clamp(72px, 10vw, 144px);

  /* Motion */
  --ease:    cubic-bezier(0.2, 0.7, 0.1, 1);
  --ease-2:  cubic-bezier(0.65, 0, 0.35, 1);
}

/* ---------- 2. Reset / Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  cursor: none;
  background-image:
    radial-gradient(circle at 20% 10%, rgba(212,163,115,0.10), transparent 50%),
    radial-gradient(circle at 90% 60%, rgba(58,90,64,0.07), transparent 50%);
}

@media (max-width: 900px) {
  body { cursor: auto; }
}

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

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

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

button { font: inherit; cursor: none; }

/* ---------- 3. Typography ---------- */
.display-name {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(64px, 11vw, 178px);
  line-height: 0.92;
  letter-spacing: -0.025em;
  color: var(--ink);
}

.d-line { display: block; overflow: hidden; }
.d-word {
  display: inline-block;
  transform: translateY(110%);
  animation: rise 1.1s var(--ease) forwards;
}
.d-line:nth-child(2) .d-word { animation-delay: 0.08s; }
.d-italic { font-style: italic; }

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

/* ---------- 4. Grain overlay ---------- */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9998;
  opacity: 0.35;
  mix-blend-mode: multiply;
  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.85' 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.5 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* ---------- 5. Custom cursor ---------- */
.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9999;
  border-radius: 999px;
  will-change: transform;
}

.cursor-dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  transform: translate(-50%, -50%);
  transition: width 0.2s var(--ease), height 0.2s var(--ease), background 0.2s var(--ease);
}

.cursor-ring {
  width: 36px;
  height: 36px;
  border: 1px solid var(--ink);
  transform: translate(-50%, -50%);
  transition: width 0.25s var(--ease), height 0.25s var(--ease),
              border-color 0.25s var(--ease), background 0.25s var(--ease);
  mix-blend-mode: difference;
}

.cursor-dot.is-hover { width: 0; height: 0; }
.cursor-ring.is-hover { width: 56px; height: 56px; background: var(--paper); border-color: var(--paper); }

@media (max-width: 900px) {
  .cursor-dot, .cursor-ring { display: none; }
}

/* ---------- 6. Nav ---------- */
.nav {
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: min(calc(100% - 32px), var(--maxw));
  z-index: 100;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 12px 20px;
  background: rgba(245, 241, 232, 0.78);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid rgba(21,22,26,0.08);
  border-radius: 999px;
  box-shadow: 0 8px 32px -16px rgba(21,22,26,0.18);
  transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.nav-mark {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
}
.mark-glyph {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px; height: 28px;
  background: var(--accent);
  color: var(--paper);
  font-family: var(--serif);
  font-size: 13px;
  font-style: italic;
  font-weight: 600;
  border-radius: 999px;
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: 26px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.nav-links a {
  position: relative;
  padding: 4px 2px;
  color: var(--ink-soft);
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease);
}
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  transition: background 0.3s var(--ease), transform 0.3s var(--ease);
}
.nav-cta:hover { background: var(--accent); }

@media (max-width: 760px) {
  .nav-links { display: none; }
  .nav { grid-template-columns: 1fr auto; }
  .mark-name { display: none; }
}

/* ---------- 6.5 Skip link ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 10000;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--paper);
  font-size: 13px;
  font-weight: 600;
  border-radius: 4px;
}
.skip-link:focus {
  left: 16px;
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ---------- 7. Hero ---------- */
.hero {
  position: relative;
  padding: clamp(120px, 16vw, 200px) var(--pad-x) 0;
  min-height: 100vh;
  overflow: hidden;
}

.hero-aurora {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.aurora {
  position: absolute;
  display: block;
  width: 60vmin; height: 60vmin;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
  animation: drift 22s var(--ease) infinite;
}
.aurora-a { background: radial-gradient(circle, rgba(200,75,49,0.45), transparent 70%); top: -10%; left: -10%; animation-delay: -2s; }
.aurora-b { background: radial-gradient(circle, rgba(58,90,64,0.40), transparent 70%); top: 30%; right: -15%; width: 50vmin; height: 50vmin; animation-delay: -8s; }
.aurora-c { background: radial-gradient(circle, rgba(212,163,115,0.55), transparent 70%); bottom: -10%; left: 30%; animation-delay: -14s; }

@keyframes drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(40px, -30px) scale(1.15); }
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: end;
  padding-bottom: 80px;
}

.hero-text { animation: fade-in 1.2s 0.4s var(--ease) both; }
@keyframes fade-in {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-soft);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 28px;
}
.eyebrow-line {
  display: inline-block;
  width: 36px;
  height: 1px;
  background: var(--ink);
}

.hero-position {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-soft);
  letter-spacing: 0.04em;
  margin-top: 28px;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.pos-bracket { color: var(--accent); font-weight: 600; }
.pos-dot { color: var(--muted); }

.hero-lede {
  margin-top: 24px;
  max-width: 600px;
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.6;
  color: var(--ink-soft);
}
.hero-lede em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  color: var(--accent-deep);
}

.hero-meta {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  font-size: 13px;
  color: var(--ink-soft);
}
.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: var(--accent-2);
  color: var(--paper);
  border-radius: 999px;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.pulse {
  display: inline-block;
  width: 8px; height: 8px;
  background: var(--paper);
  border-radius: 999px;
  position: relative;
}
.pulse::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 999px;
  background: rgba(245, 241, 232, 0.5);
  animation: pulse-ring 1.8s var(--ease) infinite;
}
@keyframes pulse-ring {
  0%   { transform: scale(0.6); opacity: 0.8; }
  100% { transform: scale(1.8); opacity: 0; }
}

.dot-sep { color: var(--muted); font-family: var(--mono); }
.locale { color: var(--muted); font-family: var(--mono); font-size: 12px; }

.cta-row {
  margin-top: 38px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 999px;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease);
}
.btn-solid { background: var(--ink); color: var(--paper); }
.btn-solid:hover { background: var(--accent); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: var(--paper); }

/* Portrait card */
.portrait-card {
  position: relative;
  z-index: 2;
  animation: pop-in 1s 0.6s var(--ease) both;
}
@keyframes pop-in {
  from { opacity: 0; transform: translateY(40px) rotate(-1deg); }
  to   { opacity: 1; transform: translateY(0) rotate(0); }
}

.portrait-frame {
  position: relative;
  background: var(--cream-soft);
  padding: 14px;
  border: 1px solid var(--ink);
  border-radius: 4px;
  box-shadow: 14px 14px 0 var(--ink);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.portrait-frame:hover {
  transform: translate(-4px, -4px) rotate(-0.5deg);
  box-shadow: 18px 18px 0 var(--accent);
}
.portrait {
  width: 100%;
  aspect-ratio: 360 / 460;
  height: auto;
  border-radius: 2px;
  object-fit: cover;
  object-position: center;
}

.portrait-notes {
  margin-top: 24px;
  display: grid;
  gap: 8px;
  font-size: 13px;
}
.note {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: var(--paper-2);
  border: 1px solid rgba(21,22,26,0.1);
  border-radius: 6px;
  font-family: var(--mono);
  letter-spacing: 0.02em;
}
.note-key { color: var(--muted); text-transform: uppercase; font-size: 11px; }
.note-val { font-weight: 500; color: var(--ink); }

@media (max-width: 880px) {
  .hero-inner { grid-template-columns: 1fr; }
  .portrait-card { max-width: 320px; margin: 24px 0 0; }
}

/* Hero marquee */
.hero-marquee {
  position: relative;
  z-index: 2;
  /* Constrain width to match other content sections (about/stack/work/background)
     so the marquee stops being a full-width band on wide screens. */
  max-width: var(--maxw);
  margin-left: auto;
  margin-right: auto;
  padding: 22px var(--pad-x) 50px;
  border-top: 1px solid rgba(21,22,26,0.08);
  border-bottom: 1px solid rgba(21,22,26,0.08);
  overflow: hidden;
  background: var(--paper-2);
}
.hero-marquee-track {
  display: inline-flex;
  gap: 36px;
  white-space: nowrap;
  animation: marquee 38s linear infinite;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(24px, 3.6vw, 48px);
  color: var(--ink);
  letter-spacing: -0.01em;
}
.hero-marquee-track span { display: inline-block; }

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

/* ---------- 8. Section utilities ---------- */
.section-label {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 36px;
}
.section-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  padding: 4px 10px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 4px;
  font-weight: 600;
}
.section-bar { display: inline-block; width: 40px; height: 1px; background: var(--ink); }
.section-name { color: var(--ink); }

.section-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(36px, 5vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink);
  max-width: 22ch;
}
.section-title .italic,
.italic {
  font-style: italic;
  color: var(--accent-deep);
}
.section-sub {
  margin-top: 18px;
  max-width: 60ch;
  font-size: clamp(15px, 1.2vw, 18px);
  color: var(--ink-soft);
  line-height: 1.55;
}

/* ---------- 9. About ---------- */
.about {
  padding: var(--pad-y) var(--pad-x);
  max-width: var(--maxw);
  margin: 0 auto;
}
.about-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 5vw, 80px);
  align-items: start;
}
/* .about-pull: position was previously sticky here, but it caused the
   pull-quote to overlap the stat-grid below on wide viewports, because
   `position: sticky` keeps the element pinned for the entire
   .about-layout containing block (which includes stats). Removed. */
.pull-quote {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(28px, 3vw, 44px);
  line-height: 1.18;
  letter-spacing: -0.012em;
  color: var(--ink);
}
.pull-quote em {
  font-style: italic;
  color: var(--accent-deep);
  background: linear-gradient(180deg, transparent 60%, rgba(200,75,49,0.18) 60%);
}
.quote-mark {
  font-family: var(--serif);
  font-size: clamp(80px, 8vw, 130px);
  color: var(--accent);
  line-height: 0.7;
  display: block;
}

.about-body {
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-soft);
}
.about-body p + p { margin-top: 18px; }
.about-body strong { color: var(--ink); font-weight: 600; }

.drop-cap::first-letter {
  font-family: var(--serif);
  font-weight: 500;
  float: left;
  font-size: 4.2em;
  line-height: 0.85;
  margin: 6px 12px 0 -4px;
  color: var(--accent);
}

.stat-grid {
  margin-top: 64px;
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--ink);
}
.stat {
  padding: 28px 24px;
  border-right: 1px solid rgba(21,22,26,0.18);
  border-bottom: 1px solid rgba(21,22,26,0.18);
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
  overflow: hidden;
}
.stat:last-child { border-right: none; }
.stat:nth-child(n+3) { border-bottom: none; }
.stat::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 0; height: 3px;
  background: var(--accent);
  transition: width 0.5s var(--ease);
}
.stat:hover::before { width: 100%; }
.stat-num {
  font-family: var(--serif);
  font-size: clamp(40px, 4vw, 56px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.stat-label {
  font-size: 12px;
  font-family: var(--mono);
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.4;
}

@media (max-width: 900px) {
  .about-layout { grid-template-columns: 1fr; }
  .about-pull { position: static; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: none; }
  .stat:nth-child(3), .stat:nth-child(4) { border-bottom: none; }
  .stat:nth-child(3) { border-right: 1px solid rgba(21,22,26,0.18); }
}

/* ---------- 10. Stack ---------- */
.stack {
  padding: var(--pad-y) var(--pad-x);
  background: var(--paper-2);
  max-width: 100%;
}
.stack > * { max-width: var(--maxw); margin-left: auto; margin-right: auto; }

.stack-head { margin-bottom: 56px; max-width: 760px; }

.stack-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.stack-card {
  padding: 36px;
  background: var(--paper);
  border: 1px solid var(--ink);
  border-radius: 4px;
  position: relative;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.stack-card:hover {
  transform: translate(-3px, -3px);
  box-shadow: 6px 6px 0 var(--ink);
}
.stack-card-title {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
  display: inline-block;
  padding: 4px 10px;
  background: var(--paper-3);
  border-radius: 4px;
}
.stack-primary .stack-card-title { background: var(--accent); color: var(--paper); }
.stack-accent  .stack-card-title { background: var(--accent-2); color: var(--paper); }
.stack-muted   .stack-card-title { background: var(--ink); color: var(--paper); }
.stack-soft    .stack-card-title { background: var(--accent-3); color: var(--ink); }

.chip-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.chip {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  padding: 8px 14px;
  background: var(--paper-2);
  border: 1px solid rgba(21,22,26,0.18);
  border-radius: 999px;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), transform 0.3s var(--ease);
}
.chip:hover {
  background: var(--ink);
  color: var(--paper);
  transform: translateY(-2px);
}

@media (max-width: 720px) {
  .stack-grid { grid-template-columns: 1fr; }
}

/* ---------- 11. Work / Projects ---------- */
.work {
  padding: var(--pad-y) var(--pad-x);
  max-width: var(--maxw);
  margin: 0 auto;
}
.work-head { margin-bottom: 56px; }

.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: minmax(0, auto);
  gap: 24px;
}

.project {
  position: relative;
  padding: 36px;
  background: var(--paper-2);
  border: 1px solid var(--ink);
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  grid-column: span 3;
  min-height: 460px;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), background 0.5s var(--ease);
  transform-style: preserve-3d;
  perspective: 1000px;
  overflow: hidden;
}
.project:hover {
  background: var(--paper-3);
}

.project--hero { grid-column: span 6; background: var(--ink); color: var(--paper); border-color: var(--ink); }
.project--wide { grid-column: span 6; background: var(--accent-2); color: var(--paper); border-color: var(--accent-2); }

@media (max-width: 980px) {
  .bento { grid-template-columns: 1fr; }
  .project, .project--hero, .project--wide { grid-column: span 1; min-height: 0; }
}

.project-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: currentColor;
  opacity: 0.7;
}

.project-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(28px, 3vw, 44px);
  line-height: 1.05;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin-bottom: 14px;
}
.project--hero .project-title,
.project--wide .project-title {
  color: var(--paper);
  font-size: clamp(34px, 4vw, 56px);
}
.project-title .italic { color: var(--accent); }
.project-title .dot { color: var(--muted); margin: 0 6px; font-weight: 300; }
.project--hero .project-title .dot,
.project--wide .project-title .dot { color: rgba(245,241,232,0.4); }
.project--hero .project-title .italic { color: var(--accent-3); }
.project--wide .project-title .italic { color: var(--accent-3); }

.project-lede {
  font-size: 16px;
  line-height: 1.55;
  max-width: 64ch;
  color: inherit;
  opacity: 0.92;
}

.project-bullets {
  list-style: none;
  display: grid;
  gap: 10px;
  font-size: 14px;
  line-height: 1.5;
}
.project-bullets li {
  position: relative;
  padding-left: 26px;
  color: inherit;
  opacity: 0.92;
}
.project-bullets li::before {
  content: "→";
  position: absolute;
  left: 0;
  font-family: var(--mono);
  color: var(--accent);
  font-weight: 600;
}
.project--hero .project-bullets li::before { color: var(--accent-3); }
.project--wide .project-bullets li::before { color: var(--accent-3); }

.project-foot {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  flex-wrap: wrap;
}
.project-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.project-stack span {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 4px 9px;
  border: 1px solid rgba(245,241,232,0.4);
  border-radius: 4px;
  color: inherit;
  background: rgba(245,241,232,0.06);
}
.project:not(.project--hero):not(.project--wide) .project-stack span {
  border-color: rgba(21,22,26,0.2);
  color: var(--ink-soft);
  background: rgba(21,22,26,0.03);
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent-3);
  padding: 8px 0;
  border-bottom: 1px solid currentColor;
  transition: color 0.3s var(--ease), transform 0.3s var(--ease);
}
.card-link:hover { color: var(--paper); transform: translateX(4px); }

.project-stat {
  text-align: right;
  font-family: var(--serif);
  line-height: 1;
}
.stat-big {
  display: block;
  font-size: clamp(36px, 4vw, 48px);
  font-weight: 500;
  font-style: italic;
  color: var(--accent-3);
  letter-spacing: -0.02em;
}
.stat-small {
  display: block;
  margin-top: 4px;
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(245,241,232,0.7);
}

/* Hero project decorative shape */
.project--hero { position: relative; }
.project-deco {
  position: absolute;
  top: 36px;
  right: 36px;
  width: 140px;
  height: 140px;
  color: var(--accent-3);
  opacity: 0.45;
  animation: spin-slow 60s linear infinite;
}
.deco-label {
  position: absolute;
  top: 8px;
  left: -10px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--paper);
  background: var(--accent);
  padding: 4px 8px;
}
.deco-shape { width: 140px; height: 140px; }

@keyframes spin-slow {
  to { transform: rotate(360deg); }
}

@media (max-width: 720px) {
  .project-deco { width: 80px; height: 80px; }
  .project { padding: 24px; min-height: 0; }
  .project-foot { flex-direction: column; align-items: start; }
  .project-stat { text-align: left; }
}

/* ---------- 12. Background ---------- */
.background {
  padding: var(--pad-y) var(--pad-x);
  max-width: var(--maxw);
  margin: 0 auto;
}

.bg-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.bg-block {
  padding: 40px;
  border-radius: 6px;
  position: relative;
}
.bg-education {
  background: var(--paper-2);
  border: 1px solid var(--ink);
}
.bg-now {
  background: var(--accent);
  color: var(--paper);
}

.bg-eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  margin-bottom: 16px;
  opacity: 0.7;
}

.bg-headline {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(24px, 2.4vw, 32px);
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin-bottom: 14px;
}
.bg-headline .italic { color: var(--accent-deep); }
.bg-now .bg-headline .italic { color: var(--accent-3); }

.bg-org {
  font-family: var(--mono);
  font-size: 13px;
  margin-bottom: 4px;
}
.bg-dates {
  font-family: var(--mono);
  font-size: 12px;
  opacity: 0.7;
  margin-bottom: 18px;
}
.bg-body {
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 24px;
  opacity: 0.95;
}

.bg-skills {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.bg-skills li {
  font-family: var(--mono);
  font-size: 12px;
  padding: 5px 10px;
  border: 1px solid rgba(21,22,26,0.2);
  border-radius: 999px;
}

.lookfor { display: grid; gap: 10px; margin-top: 22px; }
.look-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(245,241,232,0.3);
  font-size: 14px;
}
.look-row:last-child { border-bottom: none; }
.look-key {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.7;
}
.look-val { font-weight: 500; }

@media (max-width: 900px) {
  .bg-grid { grid-template-columns: 1fr; }
  .look-row { grid-template-columns: 1fr; gap: 4px; }
}

/* ---------- 13. Contact ---------- */
.contact {
  padding: var(--pad-y) var(--pad-x) calc(var(--pad-y) / 2);
  max-width: var(--maxw);
  margin: 0 auto;
  text-align: center;
  background: var(--ink);
  color: var(--paper);
  border-radius: 24px 24px 0 0;
  position: relative;
  overflow: hidden;
}
.contact::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(200,75,49,0.18), transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(58,90,64,0.20), transparent 50%);
  pointer-events: none;
}
.contact-inner { position: relative; z-index: 1; }

.contact-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(40px, 6vw, 96px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  margin-bottom: 22px;
}
.contact-title .italic { color: var(--accent-3); }
.contact-sub {
  font-size: 16px;
  line-height: 1.6;
  max-width: 56ch;
  margin: 0 auto 56px;
  color: rgba(245,241,232,0.78);
}

.email-cta {
  display: inline-flex;
  align-items: center;
  gap: 22px;
  padding: 22px 40px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(20px, 2.4vw, 30px);
  font-style: italic;
  letter-spacing: -0.01em;
  border-radius: 999px;
  transition: transform 0.4s var(--ease), background 0.4s var(--ease), color 0.4s var(--ease);
  position: relative;
}
.email-cta:hover {
  background: var(--accent);
  color: var(--paper);
  transform: translateY(-2px);
}
.email-arrow { font-family: var(--mono); font-style: normal; opacity: 0.55; }

.socials {
  margin-top: 56px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0;
  border-top: 1px solid rgba(245,241,232,0.16);
  border-bottom: 1px solid rgba(245,241,232,0.16);
}
.social {
  flex: 1 1 240px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 22px 28px;
  border-right: 1px solid rgba(245,241,232,0.16);
  font-size: 14px;
  color: var(--paper);
  transition: background 0.4s var(--ease);
}
.social:last-child { border-right: none; }
.social:hover { background: rgba(245,241,232,0.06); }
.social-key {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-3);
  min-width: 70px;
}
.social-val {
  font-family: var(--serif);
  font-style: italic;
  font-size: 16px;
  flex: 1;
}

@media (max-width: 760px) {
  .email-cta { padding: 16px 24px; gap: 12px; }
  .social { flex: 1 1 100%; border-right: none; border-bottom: 1px solid rgba(245,241,232,0.16); }
  .social:last-child { border-bottom: none; }
}

/* ---------- 14. Footer ---------- */
.footer {
  background: var(--ink);
  color: var(--paper);
  padding: 0;
}
.footer-meta {
  padding: 28px var(--pad-x);
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: rgba(245,241,232,0.7);
}
.footer-left { display: flex; align-items: center; gap: 12px; }
.footer-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px; height: 28px;
  background: var(--accent);
  color: var(--paper);
  font-family: var(--serif);
  font-style: italic;
  font-weight: 600;
  border-radius: 999px;
}
.footer-right { display: flex; align-items: center; gap: 10px; }
.footer-right a:hover { color: var(--accent-3); }
.footer-sep { color: rgba(245,241,232,0.4); }

/* ---------- 15. Reveal-on-scroll utility ---------- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: var(--delay, 0s);
}
.reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .cursor-dot, .cursor-ring { display: none; }
  body { cursor: auto; }
}
