/* =========================================================
   Bella Paul portfolio
   Change colors and fonts here to restyle everything.
   ========================================================= */
:root {
  --cream: #f4eee3;
  --cream-2: #ebe3d4;
  --ink: #16130f;
  --ink-2: #221e19;
  --ink-soft: #5d554b;
  --tomato: #ff5b37;
  --violet: #6a5cff;
  --lime: #d4ff3f;
  --pink: #ff9ecf;
  --cyan: #3ce3ff;

  --bg: var(--cream);
  --fg: var(--ink);
  --muted: var(--ink-soft);
  --line: rgba(22, 19, 15, 0.14);

  --font: "Bricolage Grotesque", system-ui, sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --gutter: clamp(16px, 4vw, 64px);
  --max: 1320px;
}

body.is-dark {
  --bg: var(--ink);
  --fg: var(--cream);
  --muted: #a89f92;
  --line: rgba(244, 238, 227, 0.14);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  transition: background-color 0.7s var(--ease), color 0.7s var(--ease);
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
::selection { background: var(--tomato); color: var(--cream); }
:focus-visible { outline: 3px solid var(--tomato); outline-offset: 3px; border-radius: 8px; }

.serif { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
.eyebrow {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 18px;
}
.section-title {
  font-size: clamp(44px, 7vw, 104px);
  line-height: 0.95;
  letter-spacing: -0.04em;
  font-weight: 700;
  margin: 0 0 24px;
  font-variation-settings: "wdth" 85;
}
.section-title .serif { color: var(--tomato); font-size: 1.08em; }
.lead { font-size: clamp(19px, 1.6vw, 23px); color: var(--muted); max-width: 46ch; margin: 0 0 18px; }

/* ---------- custom cursor ---------- */
.cursor, .cursor-dot { position: fixed; top: 0; left: 0; pointer-events: none; z-index: 1000; }
.cursor {
  width: 40px; height: 40px; margin: -20px 0 0 -20px;
  border-radius: 50%;
  border: 1.5px solid var(--fg);
  display: grid; place-items: center;
  transition: width .35s var(--spring), height .35s var(--spring), margin .35s var(--spring),
              background-color .25s, border-color .25s, opacity .2s;
}
.cursor-dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; background: var(--tomato); }
.cursor-label {
  font-family: var(--mono); font-size: 12px; font-weight: 500; color: var(--ink);
  opacity: 0; transform: scale(.6); transition: opacity .2s, transform .3s var(--spring);
  text-transform: lowercase;
}
.cursor.is-hover { width: 76px; height: 76px; margin: -38px 0 0 -38px; background: var(--lime); border-color: var(--lime); }
.cursor.is-hover .cursor-label { opacity: 1; transform: scale(1); }
.cursor.is-link { width: 56px; height: 56px; margin: -28px 0 0 -28px; background: rgba(255,91,55,.15); border-color: var(--tomato); }
.cursor.is-down { transform: scale(.85); }
.cursor.is-hidden, .cursor-dot.is-hidden { opacity: 0; }
@media (hover: none), (pointer: coarse) { .cursor, .cursor-dot { display: none; } }

/* ---------- scroll progress ---------- */
.progress { position: fixed; inset: 0 0 auto; height: 4px; z-index: 60; }
.progress span { display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(0);
  background: linear-gradient(90deg, var(--tomato), var(--pink), var(--violet), var(--cyan), var(--lime)); }

/* ---------- buttons ---------- */
.btn {
  --b: var(--fg);
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 26px; border-radius: 999px;
  font-weight: 600; font-size: 17px; text-decoration: none; cursor: pointer;
  border: 1.5px solid var(--b);
  transition: transform .35s var(--spring), background-color .25s, color .25s, box-shadow .3s;
  will-change: transform;
}
.btn:hover { box-shadow: 0 10px 0 -2px var(--b); }
.btn:active { box-shadow: 0 2px 0 -2px var(--b); }
.btn-ink { background: var(--fg); color: var(--bg); padding: 11px 20px; font-size: 15px; }
.btn-tomato { background: var(--tomato); color: #fff; --b: var(--ink); border-color: var(--ink); }
.btn-cyan { background: var(--cyan); color: var(--ink); --b: var(--cream); border-color: var(--cyan); }
.btn-lime { background: var(--lime); color: var(--ink); --b: var(--cream); border-color: var(--lime); }
.btn-ghost { background: transparent; color: var(--fg); }
.btn-ghost-light { background: transparent; color: var(--fg); --b: var(--fg); }
body.is-dark .btn-tomato { border-color: var(--tomato); --b: var(--cream); }
.wave { display: inline-block; transform-origin: 70% 70%; }
.btn:hover .wave { animation: nudge-x .8s ease-in-out infinite; }
@keyframes nudge-x { 50% { translate: 4px 0; } }
@keyframes wave { 0%,100% { rotate: 0deg } 20% { rotate: 18deg } 40% { rotate: -10deg } 60% { rotate: 14deg } 80% { rotate: -4deg } }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 14px var(--gutter) auto; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 10px 10px 10px 22px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border: 1px solid var(--line);
  transition: transform .5s var(--ease), background-color .7s var(--ease), border-color .7s;
}
.nav.is-hidden { transform: translateY(-140%); }
.logo { font-weight: 800; font-size: 26px; letter-spacing: -0.05em; text-decoration: none; }
.logo span { color: var(--tomato); display: inline-block; transition: transform .5s var(--spring); }
.logo:hover span { transform: translateY(-8px) scale(1.4); }
.nav-links { display: flex; gap: 6px; }
.nav-links a {
  position: relative; text-decoration: none; font-weight: 500; font-size: 15px;
  padding: 8px 14px; border-radius: 999px; transition: background-color .2s, color .2s;
}
.nav-links a:hover { background: var(--fg); color: var(--bg); }
@media (max-width: 720px) { .nav-links { display: none; } }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 130px var(--gutter) 90px;
  max-width: var(--max); margin: 0 auto;
}
.hero-blobs { position: absolute; inset: 0; pointer-events: none; z-index: -1; }
.blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; }
.b1 { width: 38vw; height: 38vw; background: var(--pink); top: 8%; right: -6%; animation: float 14s ease-in-out infinite; }
.b2 { width: 26vw; height: 26vw; background: var(--lime); bottom: 4%; left: 30%; animation: float 18s ease-in-out infinite reverse; }
.b3 { width: 20vw; height: 20vw; background: var(--cyan); top: 18%; left: -8%; opacity: .35; animation: float 16s ease-in-out infinite; }
@keyframes float { 0%,100% { translate: 0 0 } 33% { translate: 4vw -3vw } 66% { translate: -3vw 2vw } }

.hero-hello {
  display: inline-flex; align-items: center; gap: 10px; align-self: flex-start;
  font-family: var(--mono); font-size: 14px;
  margin: 0 0 22px;
}
.hello-note { display: inline-flex; align-items: center; gap: 7px; margin-left: 10px; font-size: 12px; color: var(--muted); opacity: .8; }
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: #23c552; }

.hero-title {
  margin: 0;
  font-size: clamp(56px, 11.5vw, 190px);
  line-height: 0.88;
  letter-spacing: -0.05em;
  font-weight: 700;
}
.hero-title .row, .contact-title .row { display: block; white-space: nowrap; }
.hero-title .serif { color: var(--tomato); font-size: 0.95em; padding-right: .06em; }
.char {
  display: inline-block;
  font-variation-settings: "wght" var(--w, 700), "wdth" var(--wd, 88);
  transform: translateY(var(--y, 0px)) rotate(var(--r, 0deg));
  transition: font-variation-settings .25s ease-out, transform .35s var(--spring), color .2s;
}
.char.space { width: .25em; }
@media (max-width: 600px) {
  .hero-title, .contact-title { font-size: clamp(44px, 14vw, 72px); }
  .hero-title .row, .contact-title .row { white-space: normal; }
}
.intro .char { animation: rise .9s var(--ease) both; animation-delay: calc(var(--i) * 28ms + 150ms); }
@keyframes rise { from { transform: translateY(110%) rotate(8deg); opacity: 0; } }

.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }

.stickers { position: absolute; inset: 0; pointer-events: none; }
.sticker {
  position: absolute; pointer-events: auto; cursor: grab; user-select: none; touch-action: none;
  font-weight: 700; font-size: 17px; padding: 10px 18px; border-radius: 999px;
  border: 1.5px solid var(--ink); box-shadow: 4px 4px 0 var(--ink);
  rotate: var(--rot, 0deg);
  transition: scale .3s var(--spring), box-shadow .2s;
  animation: bob 5s ease-in-out infinite;
}
.sticker:hover { scale: 1.08; }
.sticker.dragging { cursor: grabbing; scale: 1.15; box-shadow: 10px 12px 0 var(--ink); animation: none; z-index: 5; }
@keyframes bob { 50% { translate: 0 -10px; } }
.s1 { background: var(--tomato); color: #fff; top: 22%; right: 8%; --rot: 8deg; }
.s2 { background: var(--lime); top: 64%; right: 4%; --rot: -6deg; animation-delay: -1s; }
.s4 { background: var(--cyan); bottom: 12%; right: 30%; --rot: 4deg; animation-delay: -3s; font-family: var(--mono); font-size: 14px; }
.s5 { background: var(--cream); font-size: 26px; padding: 6px 14px; top: 16%; right: 36%; --rot: 14deg; animation-delay: -4s; }
@media (max-width: 900px) { .s5 { display: none; } .s1 { top: 14%; } .s2 { top: auto; bottom: 5%; right: 6%; } .s4 { display: none; } }

.scroll-hint { position: absolute; right: var(--gutter); bottom: 40px; width: 110px; height: 110px; display: grid; place-items: center; text-decoration: none; }
.scroll-hint svg { position: absolute; inset: 0; animation: spin 14s linear infinite; }
.scroll-hint text { font-family: var(--mono); font-size: 10.5px; letter-spacing: .18em; fill: var(--fg); text-transform: uppercase; }
.scroll-hint > span { font-size: 26px; animation: nudge 1.6s ease-in-out infinite; }
@keyframes spin { to { rotate: 360deg; } }
@keyframes nudge { 50% { translate: 0 6px; } }
@media (max-width: 900px) { .scroll-hint { display: none; } }

/* ---------- marquee ---------- */
.marquee {
  overflow: hidden; background: var(--tomato); color: var(--cream);
  border-block: 1.5px solid var(--ink);
  rotate: -2deg; margin: 0 -2vw; width: 104vw; max-width: none;
}
.marquee-track { display: flex; gap: 32px; width: max-content; padding: 18px 0; animation: marquee 26s linear infinite; }
.marquee:hover .marquee-track { animation-duration: 60s; }
.marquee span { font-size: clamp(28px, 4vw, 52px); font-weight: 700; letter-spacing: -0.03em; white-space: nowrap; }
.marquee i { font-style: normal; font-size: clamp(22px, 3vw, 38px); align-self: center; color: var(--lime); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- about ---------- */
.about {
  max-width: var(--max); margin: 0 auto;
  padding: clamp(110px, 14vw, 200px) var(--gutter);
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 7vw, 110px); align-items: center;
}
.about-photo { position: relative; justify-self: center; width: min(100%, 440px); }
.polaroid {
  margin: 0; background: #fff; padding: 16px 16px 0; border-radius: 6px;
  box-shadow: 0 30px 60px -20px rgba(22,19,15,.35), 0 0 0 1px rgba(22,19,15,.06);
  rotate: -4deg;
  transition: rotate .6s var(--spring), scale .6s var(--spring);
}
.polaroid:hover { rotate: 2deg; scale: 1.03; }
.polaroid-img { position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 3px; background: var(--cream-2); }
.polaroid-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; z-index: 1; transition: scale .8s var(--ease); }
.polaroid:hover .polaroid-img img { scale: 1.06; }
.photo-fallback {
  position: absolute; inset: 0; display: grid; place-content: center; text-align: center; gap: 10px;
  background: radial-gradient(circle at 30% 25%, var(--pink), transparent 55%), radial-gradient(circle at 75% 80%, var(--lime), transparent 50%), var(--cream-2);
}
.photo-fallback span { font-size: 90px; font-weight: 800; letter-spacing: -0.06em; line-height: 1; }
.photo-fallback small { font-family: var(--mono); font-size: 12px; color: var(--ink-soft); }
.polaroid figcaption { font-family: var(--serif); font-style: italic; font-size: 30px; text-align: center; padding: 10px 0 14px; color: var(--ink); }
.tape {
  position: absolute; top: -16px; left: 50%; width: 130px; height: 36px; translate: -50% 0; rotate: 3deg;
  background: rgba(212, 255, 63, .75); box-shadow: 0 2px 6px rgba(0,0,0,.08);
}
.about-copy p:not(.eyebrow):not(.lead) { max-width: 52ch; }
.facts { list-style: none; padding: 0; margin: 34px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; max-width: 520px; }
.fact {
  position: relative; height: 64px; perspective: 600px; cursor: pointer;
}
.fact span {
  position: absolute; inset: 0; display: flex; align-items: center; padding: 0 18px;
  border-radius: 16px; font-weight: 600; backface-visibility: hidden; word-spacing: .25em;
  transition: transform .6s var(--spring);
}
.fact-front { background: var(--cream-2); border: 1px solid var(--line); }
.fact-back { background: var(--ink); color: var(--lime); transform: rotateX(180deg); font-family: var(--mono); font-size: 14px; line-height: 1.2; word-spacing: 0 !important; }
.fact:hover .fact-front, .fact.on .fact-front { transform: rotateX(-180deg); }
.fact:hover .fact-back, .fact.on .fact-back { transform: rotateX(0deg); }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; } }

/* ---------- work ---------- */
.work { max-width: var(--max); margin: 0 auto; padding: clamp(100px, 12vw, 180px) var(--gutter) 60px; }
.work-head { margin-bottom: clamp(60px, 8vw, 120px); }
.project {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 90px);
  align-items: center; padding: clamp(50px, 7vw, 110px) 0;
  border-top: 1px solid var(--line);
}
.project.flip .project-copy { order: 2; }
.project-num { font-family: var(--mono); font-size: 14px; color: var(--accent, var(--tomato)); }
.project-kind { font-family: var(--mono); text-transform: uppercase; letter-spacing: .12em; font-size: 13px; color: var(--muted); margin: 6px 0 4px; }
.project-title {
  font-size: clamp(52px, 7vw, 108px); line-height: .9; letter-spacing: -0.05em; margin: 0 0 20px;
  font-variation-settings: "wdth" 80; font-weight: 800;
  background: linear-gradient(90deg, var(--fg) 50%, var(--accent, var(--tomato)) 50%);
  background-size: 200% 100%; background-position: 0 0;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  transition: background-position .7s var(--ease);
}
.project:hover .project-title { background-position: -100% 0; }
.project-copy > p { color: var(--muted); max-width: 46ch; }
.tags { list-style: none; padding: 0; margin: 22px 0 28px; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li {
  font-family: var(--mono); font-size: 13px; padding: 6px 12px; border-radius: 999px;
  border: 1px solid var(--line); transition: background-color .2s, color .2s, border-color .2s, translate .3s var(--spring);
}
.tags li:hover { background: var(--accent); color: var(--ink); border-color: var(--accent); translate: 0 -3px; }
.project-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.project-device { position: relative; perspective: 1600px; }
.device-hint { font-family: var(--mono); font-size: 13px; color: var(--muted); text-align: center; margin: 22px 0 0; }
@media (max-width: 920px) {
  .project { grid-template-columns: 1fr; }
  .project.flip .project-copy { order: 0; }
}

/* tilt: driven by --rx/--ry from JS */
.tilt { transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transform-style: preserve-3d; transition: transform .5s var(--ease); }

/* laptop */
.laptop { position: relative; width: 100%; max-width: 760px; margin: 0 auto; }
.laptop-lid {
  position: relative; padding: 2.2% 2.2% 2.6%;
  background: linear-gradient(180deg, #2b2a2e, #121214);
  border-radius: 18px 18px 6px 6px;
  box-shadow: 0 0 0 1.5px #3c3b40 inset, 0 40px 80px -30px rgba(0,0,0,.7);
  transform-origin: 50% 100%;
  transform: rotateX(var(--lid, 0deg));
  transition: transform .15s linear;
}
.laptop-lid::before { content: ""; position: absolute; top: 0.9%; left: 50%; width: 6px; height: 6px; translate: -50% 0; border-radius: 50%; background: #3a3a40; }
.laptop-screen { position: relative; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 4px; background: #000; }
.laptop-base {
  position: relative; height: 0; padding-bottom: 3.2%; margin: 0 -7%;
  background: linear-gradient(180deg, #d9d6dc, #9e9ba3 70%, #6f6c74);
  border-radius: 2px 2px 18px 18px;
  box-shadow: 0 30px 40px -18px rgba(0,0,0,.55);
}
.laptop-base span { position: absolute; top: 0; left: 50%; width: 16%; height: 40%; translate: -50% 0; border-radius: 0 0 10px 10px; background: #8a878f; }

/* hover-to-scroll screens */
.scroll-screen img {
  width: 100%; height: auto; transform: translateY(0);
  transition: transform var(--scroll-dur, 6s) cubic-bezier(.45,.05,.4,1);
}
.scroll-screen:hover img, .scroll-screen.auto img { transform: translateY(var(--scroll-to, 0px)); }

/* game screen */
.game-screen > img, .game-screen > video, .game-screen > iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.game-video { opacity: 0; transition: opacity .4s; }
.game-video.ready { opacity: 1; }
.play-overlay {
  position: absolute; inset: 0; border: 0; cursor: pointer; z-index: 2;
  display: grid; place-content: center; justify-items: center; gap: 14px;
  background: radial-gradient(circle at center, rgba(4,10,20,.25), rgba(4,10,20,.7));
  color: #e9fbff; font-family: var(--mono); font-size: 14px; letter-spacing: .06em;
  transition: background-color .3s;
}
.play-btn {
  width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; padding-left: 6px;
  background: var(--cyan); color: var(--ink); font-size: 30px;
  box-shadow: 0 0 0 0 rgba(60,227,255,.6); animation: pulse 2s infinite;
  transition: scale .4s var(--spring);
}
.play-overlay:hover .play-btn { scale: 1.15; }
@keyframes pulse { 70% { box-shadow: 0 0 0 26px rgba(60,227,255,0); } 100% { box-shadow: 0 0 0 0 rgba(60,227,255,0); } }
.game-screen.playing .play-overlay, .game-screen.playing > img, .game-screen.playing > video { display: none; }
.game-close {
  position: absolute; top: 10px; right: 10px; z-index: 3; border: 0; cursor: pointer;
  padding: 6px 12px; border-radius: 999px; background: rgba(0,0,0,.6); color: #fff; font-family: var(--mono); font-size: 12px;
}

/* iphone */
.phones { display: flex; justify-content: center; align-items: center; min-height: 640px; }
.iphone {
  position: relative; width: min(300px, 70vw); aspect-ratio: 390 / 844;
  padding: 12px; border-radius: 54px;
  background: linear-gradient(145deg, #3a3a3f, #0e0e10 40%, #2a2a2e);
  box-shadow: 0 0 0 2px #4a4a50 inset, 0 0 0 6px #111 inset, 0 50px 90px -30px rgba(0,0,0,.75);
}
.iphone::before { /* dynamic island */
  content: ""; position: absolute; top: 24px; left: 50%; width: 32%; height: 26px; translate: -50% 0;
  background: #000; border-radius: 20px; z-index: 3;
}
.iphone::after { content: ""; position: absolute; right: -3px; top: 26%; width: 3px; height: 70px; border-radius: 0 3px 3px 0; background: #2a2a2e; }
.iphone-screen { position: relative; height: 100%; overflow: hidden; border-radius: 42px; background: #000; }
.phones .back { position: absolute; translate: -46% 30px; rotate: -8deg; scale: .9; filter: saturate(.95); z-index: 1; }
.phones .front { position: relative; translate: 22% 0; rotate: 4deg; z-index: 2; }
.phones .iphone { transition: transform .5s var(--ease), translate .7s var(--spring), rotate .7s var(--spring), scale .7s var(--spring); }
.phones:hover .back { translate: -62% 16px; rotate: -12deg; }
.phones:hover .front { translate: 30% -10px; rotate: 6deg; }
.phones.single .front { translate: 0 0; rotate: -3deg; }
.phones.single:hover .front { translate: 0 -10px; rotate: 0deg; }
.mini-shots { position: absolute; inset: 0; pointer-events: none; }
.mini-shots img {
  position: absolute; width: 150px; border-radius: 18px; border: 5px solid #111;
  box-shadow: 0 20px 40px -12px rgba(0,0,0,.6);
  transition: translate .7s var(--spring), rotate .7s var(--spring), opacity .4s;
}
.mini-shots img:nth-child(1) { left: 2%; top: 12%; rotate: -10deg; }
.mini-shots img:nth-child(2) { right: 2%; bottom: 8%; rotate: 9deg; }
.phones.single:hover .mini-shots img:nth-child(1) { translate: -20px -14px; rotate: -16deg; }
.phones.single:hover .mini-shots img:nth-child(2) { translate: 20px 14px; rotate: 15deg; }
@media (max-width: 640px) {
  .phones { min-height: 520px; }
  .iphone { width: min(240px, 60vw); border-radius: 44px; padding: 10px; }
  .iphone-screen { border-radius: 34px; }
  .app { zoom: .8; }
  .iphone::before { top: 18px; height: 20px; }
  .phones .back { translate: -38% 30px; }
  .phones .front { translate: 16% 0; }
  .mini-shots { display: none; }
}

/* degree tracker stand-in app (uses the portfolio palette) */
.app { height: 100%; padding: 14px 14px; font-family: var(--font); color: var(--ink); overflow: hidden; }
.app-degree { background: var(--cream); }
.app-week { background: var(--ink); color: var(--cream); }
.app-status { display: flex; justify-content: space-between; align-items: center; font-size: 12px; font-weight: 700; padding: 4px 10px 0; margin-bottom: 22px; }
.bars { display: flex; align-items: flex-end; gap: 2px; }
.bars i { width: 3px; background: currentColor; border-radius: 1px; }
.bars i:nth-child(1) { height: 5px; } .bars i:nth-child(2) { height: 7px; } .bars i:nth-child(3) { height: 9px; }
.bars b { width: 18px; height: 9px; margin-left: 4px; border: 1.5px solid currentColor; border-radius: 3px; background: linear-gradient(90deg, currentColor 70%, transparent 0) content-box; padding: 1px; }
.app-eyebrow { font-family: var(--mono); font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase; margin: 0; opacity: .6; }
.app-h { font-size: 24px; letter-spacing: -0.045em; line-height: 1; margin: 3px 0 10px; font-weight: 800; font-variation-settings: "wdth" 85; }
.app-h em { font-family: var(--serif); font-weight: 400; color: var(--tomato); font-size: 1.12em; letter-spacing: -0.01em; }
.ring-card {
  display: grid; grid-template-columns: 42% minmax(0, 1fr); gap: 8px; align-items: center;
  padding: 10px 12px; border-radius: 18px; background: #fff;
  border: 1.5px solid var(--ink); box-shadow: 3px 3px 0 var(--ink);
}
.ring { position: relative; }
.ring svg { width: 100%; display: block; rotate: -90deg; }
.ring circle { fill: none; stroke-width: 13; }
.ring-bg { stroke: var(--cream-2); }
.ring-fg { stroke: var(--tomato); stroke-linecap: round; stroke-dasharray: var(--p) 100; transition: stroke-dasharray .9s var(--spring); }
.ring-label { position: absolute; inset: 0; display: grid; place-content: center; }
.ring-label b { font-size: 24px; letter-spacing: -0.05em; }
.ring-facts { margin: 0; display: grid; gap: 5px; }
.ring-facts div { display: flex; justify-content: space-between; align-items: baseline; gap: 6px; border-bottom: 1px dashed rgba(22,19,15,.18); padding-bottom: 3px; }
.ring-facts div:last-child { border: 0; }
.ring-facts dt { font-family: var(--mono); font-size: 8px; text-transform: uppercase; letter-spacing: .06em; opacity: .6; }
.ring-facts dd { margin: 0; font-size: 11.5px; font-weight: 700; white-space: nowrap; }
.app-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; margin: 9px 0 7px; }
.app-stats div { display: grid; min-width: 0; padding: 6px 7px; border-radius: 12px; background: var(--lime); border: 1.5px solid var(--ink); }
.app-stats b { font-size: 16px; letter-spacing: -0.04em; line-height: 1.1; }
.app-stats small { font-family: var(--mono); font-size: 8px; opacity: .7; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-stats.dark div { background: var(--ink-2); border-color: rgba(244,238,227,.14); }
.app-stats.dark div:first-child { background: var(--tomato); border-color: var(--tomato); color: #fff; }
.tap-note { font-family: var(--mono); font-size: 9px; text-align: center; margin: 0 0 6px; opacity: .55; }
.reqs, .tasks { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; }
.reqs button, .tasks button {
  width: 100%; display: flex; align-items: center; gap: 10px; text-align: left; cursor: pointer;
  border: 0; border-radius: 12px; padding: 7px 10px; font-size: 12px; font-weight: 700;
  transition: transform .3s var(--spring), background-color .25s;
}
.reqs button:hover, .tasks button:hover { transform: scale(1.03); }
.reqs button { display: grid; gap: 4px; background: #fff; box-shadow: 0 0 0 1px rgba(22,19,15,.1); }
.req-top { display: flex; justify-content: space-between; align-items: baseline; }
.reqs small { font-family: var(--mono); font-size: 10px; font-weight: 500; opacity: .7; }
.req-bar { display: block; height: 6px; border-radius: 99px; background: var(--cream-2); overflow: hidden; }
.req-bar span { display: block; height: 100%; border-radius: inherit; background: var(--ink); transition: width .7s var(--spring); }
.reqs .done button { background: var(--lime); box-shadow: 0 0 0 1.5px var(--ink); }
.reqs .done .req-bar { background: rgba(22,19,15,.15); }
.tasks button { background: var(--ink-2); color: var(--cream); box-shadow: 0 0 0 1px rgba(244,238,227,.08); }
.tasks button > span { display: grid; min-width: 0; line-height: 1.25; }
.tasks small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tasks small { font-family: var(--mono); font-size: 9.5px; font-weight: 500; opacity: .55; }
.tasks i { flex: none; width: 17px; height: 17px; border-radius: 6px; border: 1.5px solid currentColor; display: grid; place-items: center; font-style: normal; font-size: 10px; }
.tasks .done button { opacity: .55; }
.tasks .done button > span { text-decoration: line-through; }
.tasks .done i { background: var(--lime); color: var(--ink); border-color: var(--lime); }
.tasks .done i::after { content: "\2713"; }
.week-strip { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; }
.week-strip span { display: grid; justify-items: center; font-family: var(--mono); font-size: 8.5px; padding: 7px 0 6px; border-radius: 12px; background: var(--ink-2); }
.week-strip b { font-family: var(--font); font-size: 16px; line-height: 1.2; }
.week-strip s { text-decoration: none; font-size: 8px; opacity: .6; }
.week-strip s::after { content: " due"; }
.week-strip .on { background: var(--tomato); color: #fff; }
.week-strip .on s { opacity: .9; }

/* ---------- skills ---------- */
.skills { max-width: var(--max); margin: 0 auto; padding: clamp(100px, 12vw, 180px) var(--gutter) 40px; }
.bubble-pit {
  position: relative; height: clamp(480px, 62vh, 640px); margin-top: 30px;
  border-radius: 40px; overflow: hidden;
  background:
    radial-gradient(circle at 1px 1px, rgba(22,19,15,.16) 1px, transparent 0) 0 0 / 22px 22px,
    var(--cream-2);
  border: 1.5px solid var(--ink);
  box-shadow: 8px 8px 0 var(--ink);
  touch-action: pan-y;
}
.bubble-pit::before {
  content: "9 tools · 15 connections"; position: absolute; left: 22px; top: 18px;
  font-family: var(--mono); font-size: 12px; letter-spacing: .04em; text-transform: uppercase;
  color: rgba(22,19,15,.45); pointer-events: none;
}
.bubble {
  position: absolute; top: 0; left: 0;
  width: var(--s); height: var(--s); margin: 0; padding: 0;
  border-radius: 50%; border: 0; cursor: pointer; user-select: none; z-index: 1;
  background: var(--bg); color: var(--fg);
  display: grid; place-content: center; justify-items: center; gap: 4px;
  box-shadow: inset -8px -10px 18px rgba(0,0,0,.25), inset 8px 10px 18px rgba(255,255,255,.18), 0 14px 24px -10px rgba(22,19,15,.45);
  will-change: transform;
  transition: opacity .35s, filter .35s, box-shadow .35s;
}
.bubble .b-icon {
  font-weight: 800; letter-spacing: -0.03em; line-height: 1;
  font-size: calc(var(--s) * .3);
  transition: transform .4s var(--spring);
}
.bubble .b-icon svg { width: calc(var(--s) * .26); height: calc(var(--s) * .3); display: block; }
.bubble .b-name { font-size: calc(var(--s) * .1); font-weight: 600; opacity: .85; font-family: var(--mono); }
.bubble:hover .b-icon { transform: scale(1.15) rotate(-6deg); }
.bubble-pit.focus .bubble:not(.lit):not(.linked) { opacity: .28; filter: saturate(.3); }
.bubble.lit { z-index: 2; box-shadow: inset -8px -10px 18px rgba(0,0,0,.25), inset 8px 10px 18px rgba(255,255,255,.18), 0 0 0 4px var(--cream-2), 0 0 0 7px var(--ink), 0 18px 30px -10px rgba(22,19,15,.5); }
.bubble.linked { box-shadow: inset -8px -10px 18px rgba(0,0,0,.25), inset 8px 10px 18px rgba(255,255,255,.18), 0 0 0 3px var(--cream-2), 0 0 0 5px var(--tomato); }
.web { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.web line { stroke: rgba(22,19,15,.32); stroke-width: 1.5; stroke-dasharray: 2 7; stroke-linecap: round; transition: stroke .3s, stroke-width .3s, opacity .3s; animation: march 1.6s linear infinite; }
.web circle { fill: var(--ink); opacity: .55; transition: fill .3s, opacity .3s, r .3s; }
.web .on line { stroke: var(--tomato); stroke-width: 3; stroke-dasharray: none; }
.web .on circle { fill: var(--tomato); opacity: 1; r: 5px; }
.bubble-pit.focus .web g:not(.on) { opacity: .15; }
.web g { transition: opacity .3s; }
@keyframes march { to { stroke-dashoffset: -18; } }
@media (prefers-reduced-motion: reduce) { .web line { animation: none; } }
.bubble-tip {
  position: absolute; left: 50%; bottom: 20px; translate: -50% 0;
  padding: 10px 18px; border-radius: 999px; background: var(--ink); color: var(--cream);
  font-size: 15px; font-weight: 500; white-space: nowrap; pointer-events: none;
  opacity: 0; transition: opacity .25s, translate .35s var(--spring);
}
.bubble-tip { z-index: 3; }
.bubble-tip.on { opacity: 1; translate: -50% -6px; }
.bubble-tip b { color: var(--lime); }
@media (max-width: 640px) { .bubble-pit { height: 720px; } .bubble-tip { white-space: normal; width: calc(100% - 32px); text-align: center; border-radius: 18px; font-size: 13px; line-height: 1.4; } }

/* ---------- contact ---------- */
.contact { max-width: var(--max); margin: 0 auto; padding: clamp(110px, 14vw, 200px) var(--gutter) 100px; text-align: center; }
.contact .eyebrow { text-align: center; }
.contact-title { font-size: clamp(54px, 12vw, 200px); line-height: .88; letter-spacing: -0.05em; font-weight: 700; margin: 0 0 50px; }
.contact-title .serif { color: var(--tomato); }
.email {
  display: inline-block; font-size: clamp(24px, 3.4vw, 46px); font-weight: 600; letter-spacing: -0.03em;
  text-decoration: none; padding: 14px 34px; border-radius: 999px; border: 1.5px solid var(--fg);
  transition: background-color .25s, color .25s, transform .35s var(--spring);
}
.email:hover { background: var(--lime); color: var(--ink); border-color: var(--ink); }
.socials { list-style: none; padding: 0; margin: 40px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.socials a {
  display: inline-block; text-decoration: none; font-weight: 600; padding: 10px 18px; border-radius: 999px;
  background: var(--cream-2); border: 1px solid var(--line); transition: background-color .2s, color .2s, rotate .4s var(--spring);
}
.socials li:nth-child(odd) a:hover { background: var(--tomato); color: #fff; rotate: -4deg; }
.socials li:nth-child(even) a:hover { background: var(--violet); color: #fff; rotate: 4deg; }

.footer {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  padding: 26px var(--gutter); border-top: 1px solid var(--line);
  font-family: var(--mono); font-size: 13px; color: var(--muted);
}
.footer a { text-decoration: none; }
.footer a:hover { color: var(--tomato); }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--d, 0) * 90ms); }
.reveal.in { opacity: 1; transform: none; }

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