
/* Layout: color-blocked bands like reef depth zones; a giant name hero, big project slabs, then a dated timeline. */
:root {
  --bg: #fbf3f7;        /* blush paper */
  --fg: #1b1f45;        /* ink navy */
  --muted: #5b5f80;
  --reef: #3d4fc4;      /* cobalt periwinkle */
  --lagoon: #c13c76;    /* deep rose */
  --coral: #e0508c;     /* bubblegum pink */
  --sun: #bfccff;       /* powder blue highlight */
  --blush: #ffc9de;     /* pale pink */
  --card: #ffffff;
  --line: #ecd9e3;
  --on-color: #ffffff;
  --on-sun: #1b1f45;
  --panel: #1b1f45;
  --on-panel: #fbf3f7;
  --contact: #c43c77;
  --display: "Bricolage Grotesque", "Arial Black", system-ui, sans-serif;
  --body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #12142c; --fg: #f6eaf1; --muted: #b4b3cf;
    --reef: #4a5ed6; --lagoon: #b23468; --coral: #ff86b6; --sun: #b3c2ff; --blush: #ffc9de;
    --card: #1c1f40; --line: #2f3363; --on-color: #ffffff; --on-sun: #1b1f45;
    --panel: #1f2352; --on-panel: #f6eaf1; --contact: #ad3369;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #12142c; --fg: #f6eaf1; --muted: #b4b3cf;
    --reef: #4a5ed6; --lagoon: #b23468; --coral: #ff86b6; --sun: #b3c2ff; --blush: #ffc9de;
    --card: #1c1f40; --line: #2f3363; --on-color: #ffffff; --on-sun: #1b1f45;
    --panel: #1f2352; --on-panel: #f6eaf1; --contact: #ad3369;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
[hidden] { display: none !important; }
img { max-width: 100%; }
body {
  background: var(--bg); color: var(--fg);
  font: 400 1.0625rem/1.6 var(--body);
  margin: 0;
}
.wrap {
  max-width: 1120px; margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
h1, h2, h3 { font-family: var(--display); text-wrap: balance; margin: 0; line-height: 1.02; }
h2 { font-size: clamp(2.2rem, 6vw, 3.6rem); font-weight: 800; letter-spacing: -0.02em; }
h3 { font-size: 1.6rem; font-weight: 700; }
p { margin: 0; }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 6px; }
.eyebrow {
  font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase;
}

/* NAV */
nav { padding-block: 20px; }
nav .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.mark { font-family: var(--display); font-weight: 800; font-size: 1.3rem; text-decoration: none; }
.mark span { color: var(--coral); }
nav ul { list-style: none; display: flex; gap: 20px; margin: 0; padding: 0; flex-wrap: wrap; }
nav ul a { text-decoration: none; font-weight: 600; font-size: 0.95rem; }
nav ul a:hover { color: var(--coral); }

/* HERO */
.hero { padding-block: 40px 56px; }
.hero h1 {
  font-size: clamp(3.6rem, 15vw, 10.5rem); font-weight: 800; letter-spacing: -0.045em; line-height: 0.88;
}
.hero h1 .l2 { color: var(--coral); display: block; }
.hero-row { display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; margin-top: 36px; align-items: end; }
.hero-row > * { min-width: 0; }
.lede { font-size: clamp(1.2rem, 2.4vw, 1.5rem); line-height: 1.4; max-width: 34ch; font-weight: 500; }
.lede strong { background: var(--sun); color: var(--on-sun); padding: 0 6px; border-radius: 4px; font-weight: 600; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.chip {
  font-family: var(--mono); font-size: 0.8rem; padding: 8px 14px; border-radius: 999px;
  border: 2px solid var(--fg); white-space: nowrap;
}
.chip.solid { background: var(--fg); color: var(--bg); }

/* depth strip */
.depth { display: grid; grid-template-columns: repeat(4, 1fr); height: 18px; }
.depth i:nth-child(1) { background: var(--blush); }
.depth i:nth-child(2) { background: var(--sun); }
.depth i:nth-child(3) { background: var(--reef); }
.depth i:nth-child(4) { background: var(--coral); }

/* PROJECTS */
section { padding-block: 72px; }
.sec-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; margin-bottom: 36px; }
.sec-head p { color: var(--muted); max-width: 42ch; }

.slab {
  border-radius: 28px; padding: clamp(24px, 4vw, 48px);
  display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(24px, 4vw, 48px);
  color: var(--on-color);
}
.slab + .slab { margin-top: 24px; }
.slab > * { min-width: 0; }
.slab.blue { background: var(--reef); }
.slab.pink { background: var(--lagoon); }
.slab h3 { font-size: clamp(2.2rem, 5.5vw, 3.8rem); font-weight: 800; letter-spacing: -0.03em; }
.slab .role { margin-top: 10px; font-weight: 600; opacity: 0.92; }
.slab .desc { margin-top: 18px; max-width: 52ch; }
.slab ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.slab li { padding-left: 26px; position: relative; }
.slab li::before {
  content: ""; position: absolute; left: 0; top: 0.55em; width: 12px; height: 12px; border-radius: 3px;
  background: var(--sun);
}
.slab.pink li::before { background: var(--blush); }
.stack { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.stack span {
  font-family: var(--mono); font-size: 0.75rem; padding: 5px 10px; border-radius: 6px;
  background: rgba(255,255,255,0.16); border: 1px solid rgba(255,255,255,0.35);
}
.visit {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 26px;
  background: var(--sun); color: var(--on-sun); font-weight: 700; text-decoration: none;
  padding: 12px 20px; border-radius: 999px; transition: transform .15s ease;
}
.visit:hover { transform: translateY(-2px); }
.visit svg { width: 18px; height: 18px; }
.fact {
  margin-top: 22px; font-family: var(--mono); font-size: 0.78rem; opacity: 0.9; letter-spacing: 0.04em;
}

/* UNI PROJECTS */
.uni { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.uni article {
  background: var(--card); border: 2px solid var(--fg); border-radius: 20px; padding: 24px;
  display: flex; flex-direction: column; gap: 12px; min-width: 0;
  box-shadow: 6px 6px 0 var(--c, var(--coral));
}
.uni article:nth-child(3n+2) { --c: var(--reef); }
.uni article:nth-child(3n+3) { --c: var(--sun); }
.uni .tag { color: var(--muted); }
.uni h3 { font-size: 1.45rem; }
.uni p { color: var(--muted); }
.uni .stack span { background: transparent; border-color: var(--line); color: var(--fg); }
.todo {
  font-family: var(--mono); font-size: 0.72rem; align-self: flex-start;
  background: var(--sun); color: var(--on-sun); padding: 3px 8px; border-radius: 4px;
}

/* ABOUT */
.about { background: var(--panel); color: var(--on-panel); }
.about-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; }
.about-grid > * { min-width: 0; }
.about h2 { color: var(--on-panel); }
.about h2 em { font-style: normal; color: var(--sun); }
.about .bio { display: grid; gap: 16px; font-size: 1.1rem; max-width: 60ch; }
.skills { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; margin-top: 40px; }
.skills .wide { grid-column: 1 / -1; }
.skills h4 { margin: 0 0 10px; font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--sun); font-weight: 500; }
.skills ul { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.skills li { border: 1.5px solid currentColor; border-radius: 999px; padding: 4px 12px; font-size: 0.92rem; opacity: 0.95; }

/* TIMELINE */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; }
.timeline li {
  display: grid; grid-template-columns: 200px 1fr; gap: 24px;
  padding-block: 22px; border-top: 2px solid var(--line);
}
.timeline li:last-child { border-bottom: 2px solid var(--line); }
.timeline li > * { min-width: 0; }
.when { font-family: var(--mono); font-size: 0.85rem; color: var(--muted); padding-top: 4px; font-variant-numeric: tabular-nums; }
.timeline h3 { font-size: 1.35rem; }
.timeline .org { font-weight: 600; margin-top: 2px; }
.timeline .org .dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 8px; background: var(--d, var(--coral)); }
.timeline p.what { color: var(--muted); margin-top: 8px; max-width: 70ch; }
.timeline .tech .dot { --d: var(--reef); }
.timeline .prev .dot { --d: var(--line); }

/* CONTACT */
.contact { background: var(--contact); color: var(--on-color); }
.contact h2 { font-size: clamp(2.6rem, 9vw, 6rem); letter-spacing: -0.035em; }
.contact-rows { display: grid; gap: 14px; margin-top: 32px; }
.contact-row { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.email, .phone {
  font-family: var(--mono); font-size: clamp(1rem, 3vw, 1.35rem); background: rgba(255,255,255,0.18);
  padding: 12px 18px; border-radius: 12px; user-select: all; overflow-wrap: anywhere;
}
.btn {
  font: 700 1rem var(--body); border: 0; cursor: pointer; text-decoration: none;
  background: var(--fg); color: var(--bg); padding: 13px 20px; border-radius: 999px;
}
.btn.light { background: var(--on-color); color: #1b1f45; }
.links { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; }
footer { padding-block: 28px; color: var(--muted); font-size: 0.9rem; }

@media (max-width: 860px) {
  .hero-row, .slab, .about-grid { grid-template-columns: 1fr; }
  .hero-meta { justify-content: flex-start; }
  .uni { grid-template-columns: 1fr; }
  .timeline li { grid-template-columns: 1fr; gap: 6px; }
}
@media (max-width: 520px) {
  .skills { grid-template-columns: 1fr; }
  .skills .wide { grid-column: auto; }
  nav ul { gap: 14px; }
}
@media (prefers-reduced-motion: no-preference) {
  .hero h1 .l1, .hero h1 .l2 { animation: rise .7s cubic-bezier(.2,.8,.2,1) both; }
  .hero h1 .l2 { animation-delay: .08s; }
  @keyframes rise { from { transform: translateY(18px); } to { transform: none; } }
}

.hero-eyebrow { color: var(--muted); margin-bottom: 18px; }
#uni.tight { padding-top: 0; }
.uni .proj-link { margin-top: auto; font-weight: 700; color: var(--reef); text-decoration: none; }
.uni .proj-link:hover { text-decoration: underline; }
.load-error { padding: 48px 16px; text-align: center; color: var(--muted); }
a.email, a.phone { color: inherit; text-decoration: none; }
a.email:hover, a.phone:hover { text-decoration: underline; }
