:root {
  /* Velvet purple. Swap these values to change the whole theme. */
  --c-50: #f4eff6;
  --c-100: #e9deed;
  --c-200: #d3bddb;
  --c-300: #bd9cc9;
  --c-400: #a77bb7;
  --c-500: #915ba4;
  --c-600: #744884;
  --c-700: #573663;
  --c-800: #3a2442;
  --c-900: #1d1221;
  --c-950: #140d17;
  --bg-1: #231f25;
  --bg-2: #1a171c;
  --bg-3: #121014;
  --tint-1: #2e1d35;
  --tint-2: #241729;
  --tint-3: #19111c;
  --text: #ece6ee;
  --muted: #a69dab;

  --accent: var(--c-300);
  --accent-soft: var(--c-200);
  --accent-deep: var(--c-500);
  --accent-dark: var(--c-600);
  --ink: var(--bg-3);
  --panel: var(--bg-3);
  --deep: var(--tint-1);
  --showcase: var(--c-900);
  --line: rgba(255, 255, 255, 0.32);
  --grain: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.14'/%3E%3C/svg%3E");
  --serif: "Playfair Display", Georgia, serif;
  --sans: "Noto Sans", "Segoe UI", system-ui, sans-serif;
  --display: "Refile", Georgia, serif;
}

/* Fern green. Add data-palette="fern" to <html> to use it. */
:root[data-palette="fern"] {
  --c-50: #f1f6ee;
  --c-100: #e4eedd;
  --c-200: #c8dcbc;
  --c-300: #adcb9a;
  --c-400: #91ba78;
  --c-500: #76a857;
  --c-600: #5e8745;
  --c-700: #476534;
  --c-800: #2f4323;
  --c-900: #182211;
  --c-950: #11180c;
  --bg-1: #1f231e;
  --bg-2: #171a16;
  --bg-3: #11140f;
  --tint-1: #24361b;
  --tint-2: #1a2614;
  --tint-3: #141a12;
  --text: #e6ebe3;
  --muted: #9ea79a;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--ink);
  color: var(--text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
model-viewer { width: 100%; height: 100%; --poster-color: transparent; background: transparent; }
model-viewer::part(default-progress-bar) { display: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ================= SHARED PIECES ================= */

.glass {
  background-color: color-mix(in srgb, var(--c-800) 38%, transparent);
  background-image:
    var(--grain),
    radial-gradient(circle at 92% 92%, color-mix(in srgb, var(--c-400) 45%, transparent) 0%, transparent 62%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, transparent 42%);
  backdrop-filter: blur(14px) saturate(1.1);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  border: 1px solid color-mix(in srgb, var(--c-100) 16%, transparent);
  border-top-color: color-mix(in srgb, var(--c-50) 40%, transparent);
  border-left-color: color-mix(in srgb, var(--c-50) 30%, transparent);
  border-radius: 22px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35), inset 0 0 14px rgba(255, 255, 255, 0.05);
  color: var(--c-100);
}

@font-face {
  font-family: "Refile";
  src: url("../fonts/refile.otf") format("opentype");
  font-display: swap;
}

.text-3d {
  position: relative;
  display: inline-block;
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1;
  color: var(--c-200);
  text-shadow:
    0 0.012em 0 var(--c-400), 0 0.024em 0 color-mix(in srgb, var(--c-400) 60%, var(--c-500)),
    0 0.036em 0 color-mix(in srgb, var(--c-400) 30%, var(--c-500)), 0 0.048em 0 var(--c-500),
    0 0.06em 0 color-mix(in srgb, var(--c-500) 50%, var(--c-600)), 0 0.072em 0 var(--c-600),
    0 0.084em 0 color-mix(in srgb, var(--c-600) 50%, var(--c-700)), 0 0.096em 0 var(--c-700),
    0 0.108em 0 color-mix(in srgb, var(--c-700) 50%, var(--c-800)), 0 0.12em 0 var(--c-800),
    0 0.15em 0.08em rgba(0, 0, 0, 0.45), 0 0.22em 0.3em rgba(0, 0, 0, 0.45);
}
/* WHY: A gradient clipped to the text cannot share an element with the depth shadows.
        The shadows paint over the gradient, so the gradient face is a copy on top. */
.text-3d::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  color: transparent;
  text-shadow: none;
  background: linear-gradient(180deg, var(--c-50) 0%, var(--c-100) 30%, var(--c-200) 58%, var(--c-300) 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.star { position: absolute; color: var(--accent); pointer-events: none; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: transform 0.25s, background 0.25s, color 0.25s, box-shadow 0.25s;
  cursor: pointer;
  border: 0;
  font-family: var(--sans);
}
.btn-solid { background: var(--accent); color: var(--c-950); box-shadow: 0 10px 30px color-mix(in srgb, var(--c-300) 25%, transparent); }
.btn-solid:hover { transform: translateY(-2px); background: var(--accent-soft); }
.btn-ghost { border: 1.5px solid var(--accent); color: var(--accent); background: transparent; }
.btn-ghost:hover { background: color-mix(in srgb, var(--c-300) 10%, transparent); transform: translateY(-2px); }

.section-kicker {
  font-family: var(--serif);
  letter-spacing: 0.35em;
  text-transform: uppercase;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
  display: flex;
  align-items: center;
  gap: 14px;
}
.section-kicker::before { content: ""; width: 48px; height: 1px; background: var(--line); }

.section-head { text-align: center; margin-bottom: 56px; }
.section-head .section-kicker { justify-content: center; margin-bottom: 18px; }
.section-head .section-kicker::after { content: ""; width: 48px; height: 1px; background: var(--line); }
.section-head .text-3d { font-size: clamp(2.6rem, 6vw, 4.6rem); }
.section-head p { color: var(--muted); max-width: 560px; margin: 18px auto 0; line-height: 1.7; }

.striped {
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 3px, rgba(0, 0, 0, 0.25) 3px 4px, transparent 4px 7px),
    linear-gradient(180deg, var(--bg-2), var(--bg-3));
}

/* JS adds .js to <html>, so content stays visible if scripts fail. */
.js .reveal { opacity: 0; transform: translateY(40px); transition: opacity 0.9s ease, transform 0.9s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* ================= NAV ================= */

.nav {
  position: fixed;
  top: 18px;
  left: 50%;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px 8px 22px;
  border-radius: 999px;
  transform: translate(-50%, -140%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.45s ease, opacity 0.45s ease;
}
.nav.show { transform: translate(-50%, 0); opacity: 1; pointer-events: auto; }
.nav .logo { font-family: var(--serif); font-style: italic; font-weight: 600; margin-right: 14px; letter-spacing: 0.08em; white-space: nowrap; }
.nav a.link { padding: 9px 14px; border-radius: 999px; font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255, 255, 255, 0.78); white-space: nowrap; }
.nav a.link:hover, .nav a.link.active, .nav a.link[aria-current="page"] { color: #fff; background: rgba(255, 255, 255, 0.08); }

/* ================= HERO ================= */

.hero {
  position: relative;
  height: 100vh;
  min-height: 640px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 80% at 58% 45%, var(--bg-1) 0%, var(--bg-1) 45%, transparent 75%),
    radial-gradient(ellipse at 0% 100%, var(--c-800) 0%, transparent 55%),
    radial-gradient(ellipse at 100% 100%, var(--c-800) 0%, transparent 45%),
    radial-gradient(ellipse at 0% 0%, var(--tint-1) 0%, transparent 50%),
    var(--bg-1);
}
.hero::after { content: ""; position: absolute; inset: 0; background-image: var(--grain); opacity: 0.5; pointer-events: none; }

.frame { position: absolute; inset: 0; pointer-events: none; z-index: 12; }
.frame span { position: absolute; background: var(--line); }
.frame .label { background: none; font-family: var(--serif); font-size: 13px; letter-spacing: 0.22em; color: rgba(255, 255, 255, 0.72); text-transform: uppercase; }
.f-tl-h { top: 88px; left: 34px; width: 28vw; height: 1px; }
.f-tl-v { top: 34px; left: 64px; width: 1px; height: 125px; }
.f-tl-t { top: 52px; left: 82px; }
.f-tr-h { top: 88px; right: 30px; width: 165px; height: 1px; }
.f-tr-v { top: 42px; right: 64px; width: 1px; height: 160px; }
.f-bl-h { bottom: 72px; left: 26px; width: 165px; height: 1px; }
.f-bl-v { bottom: 26px; left: 64px; width: 1px; height: 125px; }
.f-br-h { bottom: 72px; right: 34px; width: 29vw; height: 1px; }
.f-br-v { bottom: 26px; right: 64px; width: 1px; height: 125px; }
.f-br-t { bottom: 36px; right: 82px; }

.hero-model { position: absolute; left: -4%; bottom: -6%; width: 58%; height: 108%; z-index: 4; }
.hero-title { position: absolute; right: 4%; top: 50%; width: 54%; max-width: 1000px; transform: translateY(-48%); z-index: 6; pointer-events: none; }
.hero-title img { width: 100%; filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.55)); animation: bob 6s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-10px) rotate(-0.6deg); } }

.hero .glass { position: absolute; z-index: 8; display: flex; align-items: center; justify-content: center; font-family: var(--serif); white-space: nowrap; text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4); }
/* RULE: Keep the name card inside .hero-model so it stays above the character's head. */
.card-name { top: 25%; left: 50%; transform: translateX(-50%); padding: 16px 28px; font-size: 1rem; letter-spacing: 0.22em; pointer-events: none; animation: nameplate 6s ease-in-out infinite; }
.card-name::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 9px solid transparent;
  border-top-color: color-mix(in srgb, var(--c-200) 45%, transparent);
}
@keyframes nameplate { 50% { transform: translate(-50%, -6px); } }
.card-year { top: 14%; right: 5%; padding: 28px 52px; font-size: 3rem; font-style: italic; letter-spacing: 0.02em; }
.card-role { bottom: 13%; right: 9%; padding: 44px 56px; font-size: 1.05rem; letter-spacing: 0.25em; }

.hero .s1 { top: 19%; left: 52%; font-size: 26px; }
.hero .s1b { top: 22%; left: 50.6%; font-size: 18px; }
.hero .s2 { top: 54%; left: 38%; font-size: 26px; }
.hero .s3 { bottom: 20%; left: 61%; font-size: 22px; }
.hero .s4 { top: 55%; right: 4%; font-size: 26px; }
.hero .heart { top: 38%; right: 9.5%; font-size: 13px; }

.scroll-cue {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 12;
  font-family: var(--serif);
  font-size: 11px;
  letter-spacing: 0.35em;
  color: rgba(255, 255, 255, 0.55);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.scroll-cue::after { content: ""; width: 1px; height: 38px; background: linear-gradient(var(--accent), transparent); animation: drip 2s ease-in-out infinite; }
@keyframes drip { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ================= ABOUT (HELLO) ================= */

.about {
  padding: 90px 6vw 110px;
  background: linear-gradient(160deg, var(--bg-1) 0%, var(--bg-2) 40%, var(--tint-1) 100%);
}
.about-panel { max-width: 1240px; margin: 0 auto; padding: 70px 5vw 60px; position: relative; }

.bio-row { display: grid; grid-template-columns: minmax(260px, 360px) 1fr; gap: 56px; align-items: start; }

.photo-frame {
  --clip: polygon(16% 0, 84% 2%, 100% 24%, 96% 84%, 80% 100%, 10% 98%, 0 74%, 3% 15%);
  aspect-ratio: 4 / 5;
  background: var(--accent);
  clip-path: var(--clip);
  padding: 9px;
  margin-top: -110px;
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.5));
}
.photo-frame > * { width: 100%; height: 100%; clip-path: var(--clip); object-fit: cover; }
.photo-fallback {
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 50% 35%, var(--c-800), var(--bg-2));
  font-family: var(--display);
  font-size: 5rem;
  color: var(--accent);
}

.bubble-wrap { position: relative; padding-top: 34px; }
.hello-pill {
  position: absolute;
  top: -30px;
  left: -26px;
  z-index: 3;
  background: linear-gradient(180deg, var(--c-800), var(--c-900));
  border: 3px solid var(--accent);
  border-radius: 40px;
  padding: 14px 30px 22px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.45), inset 0 2px 0 rgba(255, 255, 255, 0.08);
  transform: rotate(-2deg);
}
.hello-pill .text-3d { font-size: clamp(2.6rem, 5vw, 4.2rem); }

.bubble {
  position: relative;
  border: 3px solid var(--accent);
  border-radius: 34px;
  padding: 64px 44px 40px;
  line-height: 1.75;
  font-size: 1rem;
  background: color-mix(in srgb, var(--c-950) 35%, transparent);
}
.bubble::before, .bubble::after {
  content: "";
  position: absolute;
  border: 2px solid var(--accent);
  border-radius: 38px;
  pointer-events: none;
}
.bubble::before { inset: 10px -12px -12px 10px; opacity: 0.85; }
.bubble::after { inset: 18px -20px -20px 18px; opacity: 0.45; }
.bubble p + p { margin-top: 18px; }
.bubble strong { color: var(--accent); font-weight: 700; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid rgba(124, 230, 160, 0.35);
  background: rgba(124, 230, 160, 0.08);
  color: #a9f0c1;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  font-weight: 600;
}
.badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #6ee39a; box-shadow: 0 0 0 0 rgba(110, 227, 154, 0.7); animation: ping 2s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 10px rgba(110, 227, 154, 0); } 100% { box-shadow: 0 0 0 0 rgba(110, 227, 154, 0); } }

.bio-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; align-items: center; }

.id-row { display: grid; grid-template-columns: minmax(260px, 360px) 1fr; gap: 56px; margin-top: 46px; }
.id-card { text-align: center; }
.accent-head { color: var(--accent); font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; font-size: 1.6rem; }
.id-card .accent-head { margin-bottom: 14px; }
.id-card p { color: var(--text); margin-top: 6px; }
.id-card i { color: var(--accent); margin-right: 6px; }

.contact-block { padding-left: 13%; }
.contact-block .accent-head { margin-bottom: 18px; }
.contact-line { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; font-size: 1.02rem; }
.contact-line i { color: var(--accent); font-size: 1.25rem; width: 24px; text-align: center; }
.contact-line a:hover { color: var(--accent); }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 60px; }
.stat { padding: 22px; text-align: center; border-radius: 18px; }
.stat b { display: block; font-family: var(--display); font-size: 2.4rem; color: var(--accent); }
.stat span { font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }

/* ================= FEATURED SHOWCASES ================= */

.showcase {
  position: relative;
  height: 100vh;
  min-height: 680px;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 40%, var(--tint-1) 0%, transparent 65%),
    var(--showcase);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.showcase::after { content: ""; position: absolute; inset: 0; background-image: var(--grain); opacity: 0.4; pointer-events: none; }
.showcase .index { position: absolute; top: 46px; left: 5%; z-index: 6; }
.showcase .index b { font-family: var(--serif); font-style: italic; font-size: 2.6rem; color: var(--accent); display: block; margin-top: 8px; font-weight: 400; }

.showcase-concept {
  position: absolute;
  left: 5%;
  top: 16%;
  height: 60%;
  z-index: 3;
  filter: drop-shadow(10px 14px 22px rgba(0, 0, 0, 0.55));
  pointer-events: none;
}
.concept-tag { position: absolute; left: 5%; top: calc(16% - 26px); z-index: 4; font-family: var(--serif); font-size: 12px; letter-spacing: 0.25em; color: rgba(255, 255, 255, 0.55); text-transform: uppercase; }
.showcase-model { position: absolute; left: 18%; top: 4%; width: 64%; height: 82%; z-index: 2; }

.showcase-panel { position: absolute; right: 5%; top: 14%; z-index: 5; display: flex; flex-direction: column; align-items: flex-end; gap: 22px; }
.tool-stack { display: flex; flex-direction: column; gap: 14px; margin-right: 14px; }
.tool {
  width: 54px;
  height: 54px;
  border: 1.5px solid color-mix(in srgb, var(--c-300) 55%, transparent);
  border-radius: 13px;
  display: grid;
  place-items: center;
  color: var(--accent);
  font-weight: 800;
  font-size: 1.15rem;
  transition: 0.25s;
  position: relative;
}
.tool:hover { border-color: var(--accent); transform: scale(1.06); background: rgba(255, 255, 255, 0.05); }
.tool small { position: absolute; bottom: 5px; font-size: 0.48rem; letter-spacing: 0.1em; }
.tool .si { width: 58%; height: 58%; background: var(--accent); -webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat; }
.tool[data-tip]:hover::after {
  content: attr(data-tip);
  position: absolute;
  right: calc(100% + 10px);
  white-space: nowrap;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 8px;
  background: var(--tint-2);
  color: var(--accent-soft);
}

.info-card { max-width: 290px; padding: 28px 26px; text-align: center; line-height: 1.65; font-size: 0.95rem; border-radius: 18px; }
.info-card b { color: #fff; }
.spec-list { list-style: none; display: grid; gap: 8px; width: 290px; }
.spec-list li { display: flex; justify-content: space-between; padding: 10px 16px; border-radius: 12px; font-size: 0.82rem; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.07); }
.spec-list span { color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.72rem; }

.showcase-title { position: absolute; bottom: 7%; left: 5%; max-width: 90%; z-index: 4; pointer-events: none; display: inline-flex; flex-direction: column; }
.showcase.flip .showcase-title { left: auto; right: 5%; }
.title-outline {
  font-family: var(--sans);
  font-size: clamp(3.5rem, 10.5vw, 11rem);
  font-weight: 900;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--accent);
  letter-spacing: 0.03em;
  line-height: 0.85;
  white-space: nowrap;
}
.title-solid { font-size: clamp(1.4rem, 3.4vw, 3.4rem); font-weight: 900; color: var(--accent); align-self: flex-end; margin: -0.35em 0 0 0; text-shadow: 0 5px 20px rgba(0, 0, 0, 0.7); letter-spacing: 0.04em; }

.showcase.flip .showcase-model { left: 26%; }
.showcase.flip .showcase-panel { right: auto; left: 5%; top: 22%; align-items: flex-start; }
.showcase.flip .tool-stack { margin: 0 0 0 14px; flex-direction: row; }
.showcase.flip .index { left: auto; right: 5%; text-align: right; }
.showcase.flip .index .section-kicker { flex-direction: row-reverse; }
.showcase.flip .title-solid { align-self: flex-start; }
.showcase.flip .title-outline { text-align: right; }

/* ================= GALLERY ================= */

.gallery { padding: 120px 6vw; background: linear-gradient(180deg, var(--showcase) 0%, var(--tint-3) 30%, var(--bg-2) 100%); position: relative; }
.filters { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin: -24px 0 44px; }
.filter { padding: 9px 18px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--c-300) 35%, transparent); background: transparent; color: var(--text); font: 600 0.78rem var(--sans); letter-spacing: 0.1em; text-transform: uppercase; cursor: pointer; transition: 0.2s; }
.filter:hover { border-color: var(--accent); }
.filter[aria-pressed="true"] { background: var(--accent); color: var(--c-950); border-color: var(--accent); }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 26px; max-width: 1320px; margin: 0 auto; }
.card {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 35%, var(--tint-1) 0%, var(--tint-2) 70%);
  border: 1px solid rgba(255, 255, 255, 0.07);
  transition: transform 0.35s, border-color 0.35s, box-shadow 0.35s;
}
.card:hover { transform: translateY(-6px); border-color: color-mix(in srgb, var(--c-300) 55%, transparent); box-shadow: 0 24px 50px rgba(0, 0, 0, 0.45); }
.card.hide { display: none; }
.card model-viewer { height: 300px; }
.card .num { position: absolute; top: 16px; left: 18px; font-family: var(--serif); font-style: italic; color: rgba(255, 255, 255, 0.5); z-index: 2; }
.card .open { position: absolute; top: 12px; right: 12px; z-index: 2; width: 40px; height: 40px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, 0.18); background: rgba(0, 0, 0, 0.25); color: var(--accent); cursor: pointer; transition: 0.2s; }
.card .open:hover { background: var(--accent); color: var(--c-950); }
.card-body { padding: 18px 22px 22px; border-top: 1px solid rgba(255, 255, 255, 0.06); }
.card-body h3 { font-size: 1.12rem; letter-spacing: 0.03em; }
.card-body p { color: var(--muted); font-size: 0.86rem; margin-top: 6px; line-height: 1.55; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.tags span { font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; background: color-mix(in srgb, var(--c-300) 10%, transparent); color: var(--accent-soft); }
.tags span.tris { background: transparent; border: 1px solid rgba(255, 255, 255, 0.15); color: var(--muted); }

/* ================= VIEWER DIALOG ================= */

.viewer { margin: auto; width: min(1100px, 94vw); height: min(760px, 90vh); border: 0; border-radius: 28px; padding: 0; color: var(--text); background: radial-gradient(circle at 40% 40%, var(--tint-1), var(--tint-3) 75%); overflow: hidden; }
.viewer::backdrop { background: color-mix(in srgb, var(--c-950) 75%, transparent); backdrop-filter: blur(6px); }
.viewer-inner { display: grid; grid-template-columns: 1fr 320px; height: 100%; }
.viewer model-viewer { height: 100%; }
.viewer aside { padding: 40px 30px; border-left: 1px solid rgba(255, 255, 255, 0.08); display: flex; flex-direction: column; gap: 18px; background: rgba(0, 0, 0, 0.18); }
.viewer h3 { font-size: 1.6rem; color: var(--accent); text-transform: uppercase; letter-spacing: 0.04em; }
.viewer aside p { color: var(--muted); line-height: 1.6; font-size: 0.92rem; }
.viewer .hint { margin-top: auto; font-size: 0.78rem; color: var(--muted); line-height: 1.7; }
.viewer .close { position: absolute; top: 16px; right: 16px; width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.2); background: rgba(0, 0, 0, 0.3); color: #fff; cursor: pointer; z-index: 3; }
.viewer .close:hover { background: var(--accent); color: var(--c-950); }
.viewer-controls { display: flex; gap: 8px; flex-wrap: wrap; }
.viewer-controls button { padding: 8px 14px; border-radius: 10px; border: 1px solid color-mix(in srgb, var(--c-300) 35%, transparent); background: transparent; color: var(--accent-soft); font: 600 0.75rem var(--sans); cursor: pointer; }
.viewer-controls button:hover { background: color-mix(in srgb, var(--c-300) 12%, transparent); }

/* ================= MORE WORK ================= */

.more-work { padding: 20px 6vw 120px; background: var(--bg-2); }
.more-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 26px; max-width: 1000px; margin: 0 auto; }
.more-card { display: block; padding: 34px; border-radius: 26px; transition: transform 0.3s, box-shadow 0.3s; }
.more-card:hover { transform: translateY(-6px); box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5); }
.more-tools { display: flex; gap: 10px; margin-bottom: 22px; }
.more-card h3 { font-family: var(--display); font-weight: 400; font-size: 2rem; color: var(--accent-soft); }
.more-card p { color: var(--muted); margin: 10px 0 22px; line-height: 1.6; }
.more-go { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }

/* ================= PROCESS ================= */

.process { padding: 120px 6vw; background: var(--bg-2); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; max-width: 1240px; margin: 0 auto; counter-reset: step; }
.step { padding: 34px 26px; border-radius: 22px; position: relative; }
.step::before { counter-increment: step; content: "0" counter(step); font-family: var(--serif); font-style: italic; font-size: 2.4rem; color: var(--accent); display: block; margin-bottom: 14px; }
.step h4 { text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 10px; }
.step p { color: var(--muted); font-size: 0.9rem; line-height: 1.65; }
.step i { position: absolute; top: 34px; right: 26px; font-size: 1.4rem; color: color-mix(in srgb, var(--c-300) 50%, transparent); }

/* ================= RESUME ================= */

.resume { padding: 110px 6vw; background: linear-gradient(200deg, var(--tint-1) 0%, var(--bg-2) 45%, var(--bg-1) 100%); }
.resume-panel { max-width: 1240px; margin: 0 auto; padding: 70px 7vw; }
.resume-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 80px; }
.block { margin-bottom: 52px; }
.block-title { display: flex; align-items: center; gap: 12px; color: var(--accent); font-size: 1.55rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.03em; margin-bottom: 22px; }
.block-title i { font-size: 1.3rem; }
.entry { padding-left: 44px; margin-bottom: 22px; }
.entry .when { font-weight: 700; color: #fff; }
.entry .where { color: var(--accent); margin-top: 4px; }
.entry .what { margin: 4px 0 0 10px; color: var(--text); line-height: 1.55; }
.entry ul { margin: 8px 0 0 28px; color: var(--muted); font-size: 0.9rem; line-height: 1.6; }

.skills { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 40px; padding-left: 44px; }
.skills li { list-style: none; }
.meter { height: 4px; border-radius: 4px; background: rgba(255, 255, 255, 0.08); margin-top: 7px; overflow: hidden; }
.meter i { display: block; height: 100%; width: var(--v); background: linear-gradient(90deg, var(--accent-deep), var(--accent)); border-radius: 4px; }

.software { display: grid; grid-template-columns: repeat(3, 58px); gap: 22px 34px; padding-left: 44px; }
.software .tool { width: 58px; height: 58px; }

.resume-cta { text-align: center; margin-top: 10px; display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }

/* ================= CONTACT ================= */

.contact { position: relative; padding: 130px 6vw 60px; background: radial-gradient(ellipse at 50% 30%, var(--tint-2) 0%, var(--bg-2) 60%), var(--bg-2); overflow: hidden; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; max-width: 1140px; margin: 0 auto; align-items: center; }
.contact-copy h2 { font-size: clamp(2.4rem, 5vw, 4.2rem); line-height: 1.05; }
.contact-copy p { color: var(--muted); margin: 22px 0 30px; line-height: 1.7; max-width: 440px; }
.socials { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.socials a { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; border: 1.5px solid color-mix(in srgb, var(--c-300) 45%, transparent); color: var(--accent); font-size: 1.15rem; transition: 0.25s; }
.socials a:hover { background: var(--accent); color: var(--c-950); transform: translateY(-3px); }

.snapshot { padding: 36px; border-radius: 26px; }
.snapshot h3 { font-family: var(--display); font-weight: 400; font-size: 2rem; color: var(--accent-soft); margin: 12px 0 18px; }
.snapshot dl { display: grid; margin-bottom: 26px; }
.snapshot dl div { display: grid; grid-template-columns: 150px 1fr; gap: 14px; padding: 13px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.snapshot dl div:last-child { border-bottom: 0; }
.snapshot dt { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); display: flex; align-items: center; gap: 10px; }
.snapshot dt i { color: var(--accent); width: 16px; text-align: center; }
.snapshot dd { font-size: 0.95rem; line-height: 1.5; }
.snapshot .btn { width: 100%; justify-content: center; }

.contact-model { position: absolute; right: -2%; bottom: 40px; width: 260px; height: 260px; opacity: 0.9; pointer-events: none; }

footer { margin-top: 100px; border-top: 1px solid var(--line); padding-top: 26px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px; font-family: var(--serif); font-size: 12px; letter-spacing: 0.22em; color: rgba(255, 255, 255, 0.55); text-transform: uppercase; max-width: 1240px; margin-left: auto; margin-right: auto; }
footer a:hover { color: var(--accent); }

/* ================= RESPONSIVE ================= */

@media (max-width: 1100px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
  .nav a.link { padding: 9px 10px; }
}

@media (max-width: 900px) {
  .hero { height: auto; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding: 190px 0 150px; }
  .scroll-cue { display: none; }
  .hero-model { position: relative; left: 0; bottom: 0; width: 100%; height: 48vh; order: 2; }
  .hero-title { position: relative; right: 0; top: 0; transform: none; width: 92%; margin: 0 auto; order: 1; }
  .hero .glass { padding: 14px 20px; font-size: 0.8rem; }
  .card-name { top: 2%; }
  .card-year { top: 112px; right: 16px; font-size: 1.6rem; }
  .card-role { bottom: 100px; left: 50%; right: auto; transform: translateX(-50%); }
  .f-tl-h, .f-br-h { width: 40vw; }
  .hero .star { display: none; }

  .about { padding: 70px 16px; }
  .about-panel, .resume-panel { padding: 50px 20px; }
  .bio-row, .id-row, .resume-grid, .contact-grid { grid-template-columns: 1fr; }
  .photo-frame { margin: 0 auto; width: min(320px, 80%); }
  .hello-pill { left: -6px; }
  .bubble { padding: 60px 24px 30px; }
  .contact-block { padding-left: 0; text-align: center; }
  .contact-line { justify-content: center; }
  .stats { grid-template-columns: repeat(2, 1fr); }

  .showcase, .showcase.flip { height: auto; min-height: 0; padding: 110px 16px 60px; display: flex; flex-direction: column; gap: 24px; }
  .showcase .index, .showcase.flip .index { position: static; text-align: left; }
  .showcase.flip .index .section-kicker { flex-direction: row; }
  .showcase-concept, .concept-tag { display: none; }
  .showcase-model, .showcase.flip .showcase-model { position: relative; left: 0; top: 0; width: 100%; height: 56vh; }
  .showcase-panel, .showcase.flip .showcase-panel { position: static; align-items: stretch; }
  .tool-stack, .showcase.flip .tool-stack { flex-direction: row; margin: 0; }
  .info-card, .spec-list { max-width: none; width: 100%; }
  .showcase-title, .showcase.flip .showcase-title { position: static; max-width: 100%; }
  .title-outline, .showcase.flip .title-outline { text-align: left; white-space: normal; }

  .gallery, .process, .resume, .contact { padding-left: 16px; padding-right: 16px; }
  .viewer-inner { grid-template-columns: 1fr; grid-template-rows: 1fr auto; }
  .viewer aside { border-left: 0; border-top: 1px solid rgba(255, 255, 255, 0.08); padding: 22px; }
  .viewer .hint { display: none; }
  .contact-model { display: none; }
}

@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; }
  .skills { grid-template-columns: 1fr; padding-left: 0; }
  .snapshot { padding: 26px 20px; }
  .snapshot dl div { grid-template-columns: 1fr; gap: 4px; }
  .entry, .software { padding-left: 0; }
  .nav .logo { margin-right: 4px; }
  .nav a.link:not(.keep) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
