/* ==========================================================================
   Hanz Joseph Canda — Portfolio
   A hand-written design system. No frameworks, no dependencies.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --bg: #080b0e;
  --bg-soft: #0a0e12;
  --surface: #0f141a;
  --surface-2: #141b22;
  --surface-3: #18212a;
  --text: #eef2f1;
  --text-soft: #c2ccd1;
  --muted: #8d9aa3;
  --muted-2: #6c7881;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --accent: #7cf5c8;
  --accent-dim: #58d9ad;
  --accent-soft: rgba(124, 245, 200, 0.1);
  --accent-softer: rgba(124, 245, 200, 0.05);
  --accent-ink: #04261c;
  --accent-glow: rgba(124, 245, 200, 0.22);
  --accent-2: #a8c2ff;
  --warn: #ffc978;
  --danger: #ff7b7b;
  --btn-text: #04261c;
  --card-shadow: 0 24px 60px -28px rgba(0, 0, 0, 0.65);

  --font-display: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;

  --container: 1180px;
  --gutter: clamp(20px, 5vw, 48px);
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --nav-h: 74px;

  --ease: cubic-bezier(0.22, 0.72, 0.24, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="light"] {
  --bg: #f6f5f0;
  --bg-soft: #eeede7;
  --surface: #fffefa;
  --surface-2: #f4f2ec;
  --surface-3: #ebe8e0;
  --text: #12181c;
  --text-soft: #3d474d;
  --muted: #5d686f;
  --muted-2: #7a858c;
  --line: rgba(16, 24, 28, 0.1);
  --line-strong: rgba(16, 24, 28, 0.2);
  --accent: #0e7a63;
  --accent-dim: #0b6451;
  --accent-soft: rgba(14, 122, 99, 0.09);
  --accent-softer: rgba(14, 122, 99, 0.045);
  --accent-ink: #f2fffc;
  --accent-glow: rgba(14, 122, 99, 0.18);
  --accent-2: #3457b3;
  --warn: #a86400;
  --danger: #b42323;
  --btn-text: #f4fffc;
  --card-shadow: 0 24px 60px -34px rgba(26, 38, 44, 0.36);
}

/* ---------- Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

* { margin: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 24px);
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: background-color 0.35s ease, color 0.35s ease;
}

body.menu-open { overflow: hidden; }

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

button, input, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }

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

ul, ol { list-style: none; padding: 0; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.08;
  text-wrap: balance;
}

p { text-wrap: pretty; }

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

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 3px;
}

::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  background: var(--surface-3);
  border: 3px solid var(--bg);
  border-radius: 99px;
}
::-webkit-scrollbar-thumb:hover { background: var(--muted-2); }

.skip-link {
  position: fixed;
  top: -100px;
  left: 20px;
  z-index: 200;
  padding: 12px 18px;
  border-radius: 8px;
  background: var(--accent);
  color: var(--btn-text);
  font-weight: 600;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 16px; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.icon { width: 19px; height: 19px; }

/* ---------- Scroll progress ---------- */
.scroll-progress {
  position: fixed;
  inset: 0 0 auto;
  z-index: 120;
  height: 2px;
  background: transparent;
  pointer-events: none;
}
.scroll-progress span {
  display: block;
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, var(--accent-dim), var(--accent), var(--accent-2));
  transform: scaleX(0);
  transform-origin: 0 50%;
  opacity: 0.9;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--font-display);
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1;
  white-space: nowrap;
  transition: transform 0.25s var(--ease), background-color 0.25s ease,
    border-color 0.25s ease, box-shadow 0.25s ease, color 0.25s ease;
}
.btn svg { width: 17px; height: 17px; flex: none; transition: transform 0.25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: translateY(1px) scale(0.99); }

.btn-primary {
  background: var(--accent);
  color: var(--btn-text);
  box-shadow: 0 10px 30px -12px var(--accent-glow);
}
.btn-primary:hover {
  background: var(--accent-dim);
  transform: translateY(-2px);
  box-shadow: 0 16px 40px -14px var(--accent-glow);
}

.btn-outline {
  border-color: var(--line-strong);
  color: var(--text);
  background: transparent;
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-softer);
  transform: translateY(-2px);
}

.btn-ghost {
  border-color: var(--line);
  background: var(--surface);
  color: var(--text-soft);
}
.btn-ghost:hover {
  border-color: var(--line-strong);
  color: var(--text);
  background: var(--surface-2);
}

.btn-sm { padding: 10px 17px; font-size: 13px; }
.btn-sm svg { width: 15px; height: 15px; }

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--text-soft);
  background: transparent;
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease,
    transform 0.2s ease;
}
.icon-btn:hover {
  color: var(--accent);
  border-color: var(--line-strong);
  background: var(--accent-softer);
  transform: translateY(-1px);
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  padding-block: 18px;
  transition: padding 0.3s var(--ease), background-color 0.3s ease,
    border-color 0.3s ease, backdrop-filter 0.3s ease;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  padding-block: 10px;
  background: color-mix(in srgb, var(--bg) 76%, transparent);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom-color: var(--line);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: linear-gradient(145deg, var(--surface-2), var(--surface));
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: border-color 0.25s ease, transform 0.25s var(--ease);
}
.brand:hover .brand-mark { border-color: var(--accent); transform: rotate(-4deg); }

.brand-text {
  display: flex;
  flex-direction: column;
  font-family: var(--font-display);
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.brand-text small {
  margin-top: 2px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav a {
  position: relative;
  padding: 8px 13px;
  border-radius: 8px;
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 500;
  transition: color 0.2s ease;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 13px;
  right: 13px;
  bottom: 2px;
  height: 1.5px;
  background: var(--accent);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.3s var(--ease);
}
.nav a:hover { color: var(--text); }
.nav a:hover::after,
.nav a.active::after { transform: scaleX(1); }
.nav a.active { color: var(--text); }

.nav-actions { display: flex; align-items: center; gap: 10px; }

.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }
[data-theme="light"] .theme-toggle .icon-sun { display: block; }
[data-theme="light"] .theme-toggle .icon-moon { display: none; }

.menu-toggle { display: none; position: relative; }
.menu-toggle span {
  position: absolute;
  left: 50%;
  width: 17px;
  height: 1.6px;
  background: currentColor;
  border-radius: 2px;
  transform: translateX(-50%);
  transition: transform 0.3s var(--ease), opacity 0.2s ease, top 0.3s var(--ease);
}
.menu-toggle span:nth-child(1) { top: 14px; }
.menu-toggle span:nth-child(2) { top: 19px; }
.menu-toggle span:nth-child(3) { top: 24px; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { top: 19px; transform: translateX(-50%) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { top: 19px; transform: translateX(-50%) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: calc(var(--nav-h) + clamp(48px, 9vh, 100px));
  padding-bottom: 26px;
  overflow: hidden;
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: 72px 72px;
  opacity: 0.5;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 35%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 35%, #000 20%, transparent 78%);
}
.hero-glow {
  position: absolute;
  top: -18%;
  right: -8%;
  width: 58vw;
  height: 58vw;
  max-width: 860px;
  max-height: 860px;
  background: radial-gradient(circle at 50% 50%, var(--accent-glow), transparent 66%);
  filter: blur(40px);
  opacity: 0.65;
  animation: breathe 12s ease-in-out infinite alternate;
}
.hero-glow::after {
  content: "";
  position: absolute;
  left: -60%;
  top: 44%;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, rgba(168, 194, 255, 0.13), transparent 65%);
  filter: blur(50px);
}
.hero-spot {
  position: absolute;
  width: 540px;
  height: 540px;
  left: 0;
  top: 0;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-soft), transparent 68%);
  opacity: 0.7;
  transform: translate(-50%, -50%);
  transition: opacity 0.4s ease;
  will-change: transform;
}

@keyframes breathe {
  from { transform: scale(1) translateY(0); opacity: 0.55; }
  to { transform: scale(1.08) translateY(-2%); opacity: 0.8; }
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  align-items: center;
  gap: clamp(40px, 5vw, 76px);
  width: 100%;
}

.hero-copy { max-width: 660px; }

.status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 14px 7px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-soft);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.status-dot {
  position: relative;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.status-dot::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 1px solid var(--accent);
  animation: ping 2.2s ease-out infinite;
}
@keyframes ping {
  0% { transform: scale(0.7); opacity: 0.8; }
  80%, 100% { transform: scale(2.2); opacity: 0; }
}

.hero-name {
  margin-top: 26px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.hero-name::before {
  content: "";
  display: inline-block;
  width: 26px;
  height: 1px;
  margin-right: 10px;
  vertical-align: middle;
  background: var(--accent);
}

.hero h1 {
  margin-top: 14px;
  font-size: clamp(2.85rem, 5.6vw, 5.05rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
  font-weight: 600;
}
.hero h1 em,
.section-head h2 em,
.contact h2 em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--accent);
}
.hero h1 em {
  display: inline-block;
  padding-right: 0.04em;
  background: linear-gradient(100deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-lead {
  max-width: 55ch;
  margin-top: 26px;
  color: var(--text-soft);
  font-size: clamp(0.98rem, 1.25vw, 1.08rem);
  line-height: 1.75;
}
.hero-lead strong { color: var(--text); font-weight: 600; }

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.hero-stats {
  display: flex;
  gap: clamp(24px, 4vw, 48px);
  margin-top: 46px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  max-width: 520px;
}
.hero-stats > div { display: flex; flex-direction: column-reverse; gap: 2px; }
.hero-stats dt {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.hero-stats dd {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.03em;
}
.hero-stats .stat-degree { font-size: 1.35rem; letter-spacing: 0.01em; }
.stat-unit {
  margin-left: 4px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Hero visual */
.hero-visual {
  position: relative;
  width: 100%;
  max-width: 420px;
  justify-self: end;
  padding: 10px 0 0 18px;
}

.portrait-shell { position: relative; }

.portrait-frame {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 26px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: var(--surface-2);
  box-shadow: var(--card-shadow);
  transform-style: preserve-3d;
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s ease;
}
.portrait-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07);
  pointer-events: none;
}
.portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  filter: saturate(0.92) contrast(1.03);
  transition: transform 0.7s var(--ease-out);
}
.portrait-shell:hover .portrait-frame img { transform: scale(1.03); }
.portrait-tint {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 11, 14, 0) 48%, rgba(5, 9, 11, 0.72) 100%),
    radial-gradient(circle at 80% 12%, var(--accent-soft), transparent 45%);
  pointer-events: none;
}
[data-theme="light"] .portrait-tint {
  background:
    linear-gradient(180deg, rgba(8, 11, 14, 0) 50%, rgba(5, 9, 11, 0.56) 100%),
    radial-gradient(circle at 80% 12%, var(--accent-soft), transparent 45%);
}

.portrait-badge {
  position: absolute;
  right: 16px;
  bottom: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 13px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(8, 12, 15, 0.62);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #e9fffa;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.portrait-badge svg { width: 15px; height: 15px; color: var(--accent); }

.portrait-brackets { position: absolute; inset: -10px; pointer-events: none; }
.portrait-brackets i {
  position: absolute;
  width: 20px;
  height: 20px;
  border: 1px solid var(--accent);
  opacity: 0.55;
}
.portrait-brackets i:nth-child(1) { top: 0; left: 0; border-right: 0; border-bottom: 0; border-radius: 6px 0 0 0; }
.portrait-brackets i:nth-child(2) { top: 0; right: 0; border-left: 0; border-bottom: 0; border-radius: 0 6px 0 0; }
.portrait-brackets i:nth-child(3) { bottom: 0; left: 0; border-right: 0; border-top: 0; border-radius: 0 0 0 6px; }
.portrait-brackets i:nth-child(4) { bottom: 0; right: 0; border-left: 0; border-top: 0; border-radius: 0 0 6px 0; }

.code-card {
  position: absolute;
  left: -62px;
  bottom: 44px;
  width: 268px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 26px 60px -24px rgba(0, 0, 0, 0.8);
  overflow: hidden;
  z-index: 2;
}
.code-dots {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}
.code-dots i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--muted-2);
  opacity: 0.6;
}
.code-dots i:nth-child(1) { background: #ff7b72; opacity: 0.9; }
.code-dots i:nth-child(2) { background: #ffc978; opacity: 0.9; }
.code-dots i:nth-child(3) { background: var(--accent); opacity: 0.9; }
.code-dots span {
  margin-left: auto;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.04em;
}
.code-card pre {
  padding: 12px 14px 14px;
  overflow: hidden;
  color: var(--text-soft);
  font-family: var(--font-mono);
  font-size: 9.6px;
  line-height: 1.85;
}
.c-key { color: var(--accent-2); }
.c-var { color: var(--text); }
.c-str { color: var(--accent); }
.c-bool { color: var(--warn); }

.float-chip {
  position: absolute;
  top: 24px;
  right: -22px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 90%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: var(--text-soft);
  font-size: 10.5px;
  box-shadow: 0 14px 34px -18px rgba(0, 0, 0, 0.8);
  white-space: nowrap;
  z-index: 3;
}
.float-chip strong { color: var(--text); font-weight: 600; }
.pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
  flex: none;
}

.hero-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: clamp(40px, 6vh, 70px);
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.scroll-cue {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: color 0.2s ease;
}
.scroll-cue:hover { color: var(--accent); }
.scroll-line {
  position: relative;
  width: 42px;
  height: 1px;
  background: var(--line-strong);
  overflow: hidden;
}
.scroll-line::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform: translateX(-100%);
  animation: scrollLine 2.6s var(--ease) infinite;
}
@keyframes scrollLine {
  0% { transform: translateX(-100%); }
  60%, 100% { transform: translateX(100%); }
}
.hero-location {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.hero-location svg { width: 13px; height: 13px; color: var(--muted-2); }

/* ---------- Marquee ---------- */
.marquee-band {
  position: relative;
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: var(--bg-soft);
  padding-block: 17px;
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.marquee-track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: marquee 42s linear infinite;
}
.marquee-band:hover .marquee-track { animation-play-state: paused; }
.marquee-track span {
  padding-inline: 24px;
  color: var(--text-soft);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  white-space: nowrap;
  opacity: 0.72;
}
.marquee-track i {
  color: var(--accent);
  font-style: normal;
  font-size: 9px;
  opacity: 0.6;
}
@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ---------- Shared section ---------- */
.section {
  position: relative;
  padding-block: clamp(84px, 11vw, 140px);
}
.section-alt {
  background: var(--bg-soft);
  border-block: 1px solid var(--line);
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.section-label span {
  display: inline-grid;
  place-items: center;
  min-width: 24px;
  height: 20px;
  padding-inline: 5px;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  color: var(--accent);
  font-size: 9px;
  letter-spacing: 0.02em;
}
.section-head { margin-bottom: clamp(44px, 6vw, 66px); }
.section-head h2 {
  font-size: clamp(2.15rem, 4.5vw, 3.65rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
}
.section-head.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.72fr);
  align-items: end;
  gap: clamp(24px, 6vw, 90px);
}
.section-intro {
  max-width: 46ch;
  padding-bottom: 6px;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.75;
}

/* ---------- Reveal animation ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.75s var(--ease-out), transform 0.75s var(--ease-out);
  transition-delay: var(--delay, 0ms);
  will-change: opacity, transform;
}
.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.75fr);
  gap: clamp(40px, 7vw, 96px);
  align-items: start;
}
.about-copy > p {
  max-width: 64ch;
  color: var(--text-soft);
  font-size: 0.98rem;
  line-height: 1.8;
}
.about-copy > p + p { margin-top: 18px; }
.about-copy .lead {
  color: var(--text);
  font-size: clamp(1.15rem, 1.7vw, 1.35rem);
  line-height: 1.55;
  letter-spacing: -0.015em;
  font-family: var(--font-display);
  font-weight: 400;
}
.about-copy strong { color: var(--text); font-weight: 600; }

.about-points {
  display: grid;
  gap: 20px;
  margin-top: 38px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}
.about-points li {
  display: flex;
  gap: 15px;
  align-items: flex-start;
}
.point-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: none;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface);
  color: var(--accent);
}
.point-icon svg { width: 18px; height: 18px; }
.about-points h3 {
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.about-points p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.87rem;
  line-height: 1.6;
}

.about-side {
  display: grid;
  gap: 18px;
  position: sticky;
  top: calc(var(--nav-h) + 28px);
}

.info-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 100% 0, var(--accent-softer), transparent 45%),
    var(--surface);
  box-shadow: var(--card-shadow);
}
.info-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.avatar-mini {
  width: 46px;
  height: 46px;
  flex: none;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid var(--line-strong);
}
.avatar-mini img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }
.info-card-head h3 { font-size: 0.98rem; font-weight: 600; }
.info-card-head p {
  margin-top: 2px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.04em;
}
.verified { margin-left: auto; color: var(--accent); }
.verified svg { width: 20px; height: 20px; }

.fact-list { padding-block: 6px; }
.fact-list > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-block: 9px;
  border-bottom: 1px dashed var(--line);
}
.fact-list > div:last-child { border-bottom: 0; }
.fact-list dt {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.fact-list dd {
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 500;
  text-align: right;
}
.info-card-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding-top: 15px;
  border-top: 1px solid var(--line);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.dot-live {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
  flex: none;
}

.now-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface-2);
}
.now-label {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.now-title {
  margin-top: 8px;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
}
.now-stack { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.now-stack span {
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text-soft);
  background: var(--surface);
  font-family: var(--font-mono);
  font-size: 9.5px;
}
.now-note { margin-top: 12px; color: var(--muted); font-size: 11px; }

/* ---------- Skills ---------- */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.skill-card {
  position: relative;
  padding: clamp(22px, 3vw, 30px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  overflow: hidden;
  transition: border-color 0.3s ease, transform 0.35s var(--ease), box-shadow 0.35s ease;
}
.skill-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transition: opacity 0.35s ease;
}
.skill-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-3px);
  box-shadow: var(--card-shadow);
}
.skill-card:hover::before { opacity: 0.7; }
.skill-card header {
  display: flex;
  align-items: center;
  gap: 13px;
}
.skill-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: none;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--accent-softer);
  color: var(--accent);
}
.skill-icon svg { width: 20px; height: 20px; }
.skill-card h3 {
  font-size: 1.18rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.skill-card > p {
  margin-top: 16px;
  max-width: 46ch;
  color: var(--muted);
  font-size: 0.89rem;
  line-height: 1.7;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 18px;
}
.tag-list li {
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text-soft);
  background: var(--surface-2);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.01em;
  line-height: 1.5;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.skill-card:hover .tag-list li { border-color: var(--line-strong); }
.tag-list-light li { background: transparent; border-color: var(--line-strong); }
.tag-list-sm { margin-top: 16px; }
.tag-list-sm li { font-size: 9.5px; padding: 4px 8px; }

.toolbox {
  display: flex;
  align-items: center;
  gap: clamp(20px, 4vw, 44px);
  margin-top: 20px;
  padding: 20px 26px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  background: var(--accent-softer);
}
.toolbox-label {
  flex: none;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.toolbox-items {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  color: var(--muted);
  font-size: 12.5px;
}
.toolbox-items span { position: relative; }
.toolbox-items span + span::before {
  content: "";
  position: absolute;
  left: -10px;
  top: 50%;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: var(--muted-2);
}

/* ---------- Work ---------- */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 26px;
}
.filter-btn {
  padding: 8px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 500;
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}
.filter-btn:hover { color: var(--text); border-color: var(--line-strong); }
.filter-btn.is-active {
  color: var(--accent-ink);
  background: var(--accent);
  border-color: var(--accent);
  font-weight: 600;
}

.featured-project {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  overflow: hidden;
  margin-bottom: 18px;
  box-shadow: var(--card-shadow);
}
.featured-copy {
  padding: clamp(26px, 4vw, 46px);
  display: flex;
  flex-direction: column;
}
.project-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.feature-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.feature-tag::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}
.project-year {
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.08em;
}
.featured-copy h3 {
  margin-top: 20px;
  font-size: clamp(1.9rem, 3vw, 2.5rem);
  letter-spacing: -0.035em;
}
.project-sub {
  margin-top: 3px;
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 500;
}
.featured-desc {
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.75;
}
.featured-list {
  display: grid;
  gap: 7px;
  margin-top: 20px;
}
.featured-list li {
  position: relative;
  padding-left: 20px;
  color: var(--text-soft);
  font-size: 0.84rem;
  line-height: 1.6;
}
.featured-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  border-left: 1.5px solid var(--accent);
  border-bottom: 1.5px solid var(--accent);
  transform: rotate(-45deg);
  opacity: 0.75;
}
.project-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: auto;
  padding-top: 24px;
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 600;
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 3px;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.text-link:hover { color: var(--accent); border-color: var(--accent); }
.text-link svg { width: 14px; height: 14px; transition: transform 0.25s var(--ease); }
.text-link:hover svg { transform: translate(2px, -2px); }
.private-note {
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.03em;
}

/* Browser mockup */
.featured-visual {
  position: relative;
  display: grid;
  place-items: center;
  padding: clamp(26px, 4vw, 44px);
  background:
    radial-gradient(circle at 75% 20%, var(--accent-soft), transparent 50%),
    linear-gradient(145deg, var(--surface-2), var(--bg-soft));
  border-left: 1px solid var(--line);
  overflow: hidden;
}
.featured-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.4;
  mask-image: radial-gradient(circle at 50% 50%, #000, transparent 80%);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000, transparent 80%);
}
.browser {
  position: relative;
  width: 100%;
  max-width: 480px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: #0a1016;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.85);
  overflow: hidden;
  transform: rotate(-1.2deg);
  transition: transform 0.6s var(--ease-out);
  z-index: 1;
}
.featured-project:hover .browser { transform: rotate(0deg) scale(1.015); }
.browser-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  background: #0f161e;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.browser-dots { display: flex; gap: 4px; }
.browser-dots i { width: 6px; height: 6px; border-radius: 50%; background: #2b3742; }
.browser-dots i:nth-child(1) { background: #ff6b63; }
.browser-dots i:nth-child(2) { background: #f5bd4f; }
.browser-dots i:nth-child(3) { background: #63d38a; }
.browser-url {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  max-width: 210px;
  margin-inline: auto;
  padding: 3px 10px;
  border-radius: 5px;
  background: #0a1016;
  color: #77838d;
  font-family: var(--font-mono);
  font-size: 7.5px;
  letter-spacing: 0.02em;
}
.browser-url svg { width: 9px; height: 9px; }
.browser-menu { display: flex; gap: 2.5px; }
.browser-menu i { width: 2.5px; height: 2.5px; border-radius: 50%; background: #3a4650; }

.app-ui { display: flex; min-height: 236px; background: #0c1218; }
.app-sidebar {
  width: 48px;
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 13px;
  padding: 12px 0;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  background: #0a0f14;
}
.app-logo {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 5px;
  background: #7cf5c8;
  color: #04261c;
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  margin-bottom: 6px;
}
.side-line {
  width: 16px;
  height: 3px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.13);
}
.side-line.short { width: 10px; }
.side-line.active { background: #7cf5c8; opacity: 0.85; }
.app-main { flex: 1; padding: 13px; min-width: 0; }
.app-head { display: flex; align-items: flex-start; justify-content: space-between; }
.skeleton {
  display: block;
  height: 4px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.12);
}
.skeleton.tiny { width: 42px; height: 3px; background: rgba(124, 245, 200, 0.45); margin-bottom: 6px; }
.skeleton.title { width: 100px; height: 7px; background: rgba(255, 255, 255, 0.7); }
.skeleton.line { width: 100%; }
.skeleton.line.short { width: 58%; }
.app-avatar {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(140deg, #2c4a41, #18242d);
  border: 1px solid rgba(124, 245, 200, 0.3);
}
.app-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 15px;
}
.app-card {
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 7px;
  background: #101820;
}
.app-card.wide { grid-column: 1 / -1; }
.app-card-icon {
  display: block;
  width: 16px;
  height: 16px;
  margin-bottom: 12px;
  border-radius: 4px;
}
.app-card-icon.mint { background: rgba(124, 245, 200, 0.2); border: 1px solid rgba(124, 245, 200, 0.35); }
.app-card-icon.amber { background: rgba(255, 201, 120, 0.16); border: 1px solid rgba(255, 201, 120, 0.3); }
.app-card .skeleton + .skeleton { margin-top: 5px; }
.app-card-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.app-card-head .skeleton { width: 46%; }
.pill-mini {
  padding: 2px 5px;
  border-radius: 3px;
  background: rgba(124, 245, 200, 0.12);
  color: #7cf5c8;
  font-family: var(--font-mono);
  font-size: 5.5px;
  letter-spacing: 0.03em;
}
.progress {
  height: 4px;
  margin: 9px 0 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.progress span {
  display: block;
  width: 68%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #58d9ad, #7cf5c8);
}

.float-stat {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 11px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 9px;
  background: rgba(11, 17, 22, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #dbe4e4;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.03em;
  box-shadow: 0 18px 40px -22px #000;
  z-index: 2;
  white-space: nowrap;
}
.float-stat strong { color: #7cf5c8; font-size: 13px; font-family: var(--font-display); }
.float-stat-a { top: 10%; left: 2%; }
.float-stat-b { bottom: 9%; right: 1%; font-size: 7.5px; }

/* Project grid */
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.project-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  overflow: hidden;
  transition: transform 0.4s var(--ease), border-color 0.3s ease, box-shadow 0.4s ease;
}
.project-card:hover {
  transform: translateY(-5px);
  border-color: var(--line-strong);
  box-shadow: var(--card-shadow);
}
.project-card.is-hidden,
.featured-project.is-hidden { display: none; }
.project-card.is-shown { animation: cardIn 0.45s var(--ease-out) both; }
@keyframes cardIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

.project-cover {
  position: relative;
  aspect-ratio: 16 / 10.5;
  overflow: hidden;
  isolation: isolate;
}
.project-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, 0.35));
  pointer-events: none;
  z-index: 3;
}
.cover-index {
  position: absolute;
  right: 15px;
  bottom: 4px;
  z-index: 2;
  color: rgba(255, 255, 255, 0.16);
  font-family: var(--font-display);
  font-size: 66px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.06em;
}
.cover-word {
  position: absolute;
  left: 16px;
  bottom: 13px;
  z-index: 4;
  color: rgba(255, 255, 255, 0.72);
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* Cover: portfolio */
.cover-folio {
  background:
    radial-gradient(circle at 80% 10%, rgba(124, 245, 200, 0.22), transparent 55%),
    linear-gradient(145deg, #0e1c19, #0a1211);
}
.cover-window {
  position: absolute;
  left: 50%;
  top: 48%;
  width: 64%;
  padding: 13px 14px 17px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(10, 17, 18, 0.8);
  box-shadow: 0 20px 40px -20px #000;
  transform: translate(-50%, -50%) rotate(-3deg);
  transition: transform 0.5s var(--ease-out);
}
.project-card:hover .cover-window { transform: translate(-50%, -50%) rotate(0deg); }
.cover-window strong {
  display: block;
  margin: 8px 0 12px;
  color: #eef7f4;
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: -0.02em;
}
.cover-window i {
  display: block;
  height: 3px;
  margin-top: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.14);
}
.cover-window i:last-child { width: 55%; background: rgba(124, 245, 200, 0.5); }
.cw-dot { display: inline-block; width: 4px; height: 4px; margin-right: 2px; border-radius: 50%; background: rgba(255, 255, 255, 0.25); }

/* Cover: terminal */
.cover-terminal {
  background:
    radial-gradient(circle at 20% 0, rgba(168, 194, 255, 0.16), transparent 50%),
    linear-gradient(150deg, #0c1018, #080b10);
}
.terminal {
  position: absolute;
  left: 50%;
  top: 47%;
  width: 78%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 7px;
  background: rgba(7, 10, 13, 0.75);
  transform: translate(-50%, -50%);
  overflow: hidden;
}
.terminal-bar {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 9px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.03);
}
.terminal-bar i { width: 4px; height: 4px; border-radius: 50%; background: rgba(255, 255, 255, 0.18); }
.terminal-bar span {
  margin-left: auto;
  color: #66737d;
  font-family: var(--font-mono);
  font-size: 6.5px;
}
.terminal pre {
  padding: 10px 12px 13px;
  color: #b7c4cb;
  font-family: var(--font-mono);
  font-size: 7.6px;
  line-height: 1.55;
  text-align: center;
}
.terminal pre b { color: #7cf5c8; font-weight: 400; }
.terminal pre b.star { color: #ffc978; }
.terminal pre em { color: #a8c2ff; font-style: normal; }

/* Cover: kanban */
.cover-task {
  background:
    radial-gradient(circle at 100% 100%, rgba(168, 194, 255, 0.2), transparent 55%),
    linear-gradient(150deg, #121a2b, #0b101b);
}
.kanban {
  position: absolute;
  left: 50%;
  top: 47%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  width: 82%;
  transform: translate(-50%, -50%) rotate(1.5deg);
}
.kanban-col {
  padding: 8px 7px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.035);
}
.kanban-col span {
  display: block;
  margin-bottom: 6px;
  color: #8796aa;
  font-family: var(--font-mono);
  font-size: 6px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.kanban-col i {
  display: block;
  height: 14px;
  margin-top: 5px;
  border-radius: 3px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.06);
}
.kanban-col i.accent { border-color: rgba(168, 194, 255, 0.4); background: rgba(168, 194, 255, 0.16); }
.kanban-col i.done { border-color: rgba(124, 245, 200, 0.22); background: rgba(124, 245, 200, 0.1); }

/* Cover: API */
.cover-api {
  background:
    radial-gradient(circle at 0 100%, rgba(255, 201, 120, 0.13), transparent 50%),
    linear-gradient(150deg, #0d1316, #080c0e);
}
.api-lines {
  position: absolute;
  left: 50%;
  top: 47%;
  width: 86%;
  padding: 10px 0;
  transform: translate(-50%, -50%);
  font-family: var(--font-mono);
  font-size: 8px;
}
.api-lines p {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 5px 9px;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.06);
  color: #9aa9b5;
  white-space: nowrap;
}
.api-lines p:last-child { border-bottom: 0; }
.api-lines b {
  min-width: 26px;
  padding: 1px 3px;
  border-radius: 2px;
  background: rgba(124, 245, 200, 0.1);
  color: #7cf5c8;
  font-size: 6.5px;
  font-weight: 500;
  text-align: center;
}
.api-lines p:nth-child(2) b { background: rgba(255, 201, 120, 0.1); color: #ffc978; }
.api-lines p:nth-child(3) b { background: rgba(168, 194, 255, 0.1); color: #a8c2ff; }
.api-lines p:nth-child(4) b { background: rgba(255, 123, 123, 0.1); color: #ff9b9b; }
.api-lines span {
  margin-left: auto;
  color: #5d6b74;
  font-size: 6.5px;
}

/* Cover: weather */
.cover-weather {
  background:
    radial-gradient(circle at 75% 20%, rgba(255, 201, 120, 0.32), transparent 55%),
    linear-gradient(155deg, #1d1a16, #0d1114);
}
.weather-ui {
  position: absolute;
  left: 50%;
  top: 48%;
  width: 78%;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 9px;
  background: rgba(12, 15, 18, 0.55);
  backdrop-filter: blur(6px);
  transform: translate(-50%, -50%);
}
.weather-main { display: flex; align-items: center; gap: 9px; }
.weather-main strong {
  color: #fff3df;
  font-family: var(--font-display);
  font-size: 27px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.05em;
}
.weather-main small {
  margin-left: auto;
  color: #c7b8a6;
  font-family: var(--font-mono);
  font-size: 6.5px;
  text-align: right;
  max-width: 46px;
  line-height: 1.5;
}
.sun {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff0c2, #ffc978 60%, #e89f45);
  box-shadow: 0 0 18px rgba(255, 201, 120, 0.45);
}
.weather-row {
  display: flex;
  justify-content: space-between;
  margin-top: 13px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.weather-row i {
  width: 10%;
  height: 17px;
  border-top: 2px solid rgba(255, 201, 120, 0.55);
}
.weather-row i:nth-child(2) { height: 23px; }
.weather-row i:nth-child(3) { height: 14px; }
.weather-row i:nth-child(4) { height: 20px; }

/* Cover: cafe */
.cover-cafe {
  background:
    radial-gradient(circle at 85% 100%, rgba(120, 90, 60, 0.18), transparent 55%),
    linear-gradient(150deg, #efe6d6, #e6dac6);
}
.cover-cafe::after {
  background: linear-gradient(180deg, transparent 62%, rgba(56, 41, 26, 0.16));
}
.cafe-ui {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  padding: 17px 19px;
  color: #3c2e21;
}
.cafe-kicker {
  font-family: var(--font-mono);
  font-size: 6px;
  letter-spacing: 0.2em;
  opacity: 0.55;
}
.cafe-ui strong {
  margin-top: 8px;
  font-family: var(--font-serif);
  font-size: 27px;
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: -0.02em;
}
.cafe-ui strong em { color: #7c5a3b; }
.cafe-line {
  width: 32px;
  height: 1px;
  margin-top: auto;
  margin-bottom: 7px;
  background: rgba(60, 46, 33, 0.45);
}
.cafe-meta {
  font-family: var(--font-mono);
  font-size: 5.8px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  opacity: 0.6;
}
.cover-cafe .cover-word { color: rgba(60, 46, 33, 0.5); }
.cover-cafe .cover-index { color: rgba(60, 46, 33, 0.13); }

/* Project body */
.project-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 20px 22px 22px;
}
.project-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.project-body h3 {
  margin-top: 9px;
  font-size: 1.16rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.project-body > p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.65;
}
.project-body .tag-list { margin-top: 14px; }
.project-body .tag-list li { font-size: 9px; padding: 4px 8px; }
.project-links {
  display: flex;
  gap: 16px;
  margin-top: auto;
  padding-top: 18px;
}
.project-links a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--text-soft);
  font-family: var(--font-display);
  font-size: 11.5px;
  font-weight: 500;
  transition: color 0.2s ease;
}
.project-links a:hover { color: var(--accent); }
.project-links svg { width: 12px; height: 12px; }

/* ---------- Experience ---------- */
.timeline-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.32fr) minmax(0, 0.78fr);
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}
.timeline {
  position: relative;
  display: grid;
  gap: 34px;
  padding-left: 25px;
  border-left: 1px solid var(--line);
}
.timeline-item { position: relative; }
.timeline-dot {
  position: absolute;
  left: -31px;
  top: 7px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 2px solid var(--bg-soft);
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.timeline-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}
.timeline-head h3 {
  font-size: 1.12rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.timeline-org {
  margin-top: 3px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.03em;
}
.timeline-date {
  flex: none;
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: var(--surface);
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.03em;
  white-space: nowrap;
}
.timeline-item > p {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.7;
  max-width: 62ch;
}
.timeline-points {
  display: grid;
  gap: 6px;
  margin-top: 12px;
}
.timeline-points li {
  position: relative;
  padding-left: 16px;
  color: var(--text-soft);
  font-size: 0.82rem;
  line-height: 1.65;
}
.timeline-points li::before {
  content: "";
  position: absolute;
  left: 1px;
  top: 8px;
  width: 5px;
  height: 5px;
  border-radius: 1px;
  background: var(--accent);
  opacity: 0.55;
}

.education-stack { display: grid; gap: 18px; position: sticky; top: calc(var(--nav-h) + 28px); }
.edu-card {
  position: relative;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 100% 0, var(--accent-soft), transparent 46%),
    var(--surface);
  overflow: hidden;
  box-shadow: var(--card-shadow);
}
.edu-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent 75%);
}
.edu-badge {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  background: var(--accent-soft);
  color: var(--accent);
}
.edu-badge svg { width: 21px; height: 21px; }
.edu-label {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.edu-card h3 {
  margin-top: 10px;
  font-size: 1.36rem;
  line-height: 1.22;
  letter-spacing: -0.025em;
}
.edu-school {
  margin-top: 6px;
  color: var(--accent);
  font-size: 0.81rem;
  font-weight: 500;
}
.edu-desc {
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.7;
}
.edu-courses {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px 14px;
  margin-top: 18px;
  padding-top: 17px;
  border-top: 1px solid var(--line);
}
.edu-courses li {
  position: relative;
  padding-left: 13px;
  color: var(--text-soft);
  font-size: 0.73rem;
  line-height: 1.5;
}
.edu-courses li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.6;
}
.cert-card {
  padding: 24px 28px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-lg);
  background: var(--accent-softer);
}
.cert-card blockquote {
  margin-top: 12px;
  color: var(--text-soft);
  font-family: var(--font-serif);
  font-size: 1.28rem;
  font-style: italic;
  line-height: 1.4;
}
.cert-note { margin-top: 8px; color: var(--muted); font-size: 0.77rem; }

/* ---------- Contact ---------- */
.contact {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
}
.contact-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 60% at 20% 0%, var(--accent-soft), transparent 60%),
    radial-gradient(ellipse 50% 50% at 95% 100%, rgba(168, 194, 255, 0.09), transparent 60%);
}
.contact .container { position: relative; }
.contact-head { max-width: 760px; margin-bottom: clamp(40px, 5vw, 58px); }
.contact h2 {
  font-size: clamp(2.35rem, 5.2vw, 4.3rem);
  line-height: 1;
  letter-spacing: -0.045em;
}
.contact-head > p:last-child {
  max-width: 54ch;
  margin-top: 20px;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.75;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(32px, 6vw, 72px);
  align-items: start;
}
.contact-email {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color 0.3s ease, transform 0.3s var(--ease), background-color 0.3s ease;
}
.contact-email:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  background: var(--surface-2);
}
.contact-email > span {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.contact-email strong {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
  font-weight: 500;
  letter-spacing: -0.02em;
}
.copy-btn {
  position: absolute;
  right: 14px;
  top: 50%;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--muted);
  background: var(--surface-2);
  transform: translateY(-50%);
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}
.copy-btn:hover { color: var(--accent); border-color: var(--line-strong); }
.copy-btn svg { width: 16px; height: 16px; }
.copy-btn .check-icon { display: none; color: var(--accent); }
.copy-btn.copied .copy-icon { display: none; }
.copy-btn.copied .check-icon { display: block; }

.contact-facts {
  display: grid;
  gap: 4px;
  margin-top: 22px;
}
.contact-facts li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px dashed var(--line);
}
.contact-facts li:last-child { border-bottom: 0; }
.fact-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: none;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--muted);
  background: var(--surface);
}
.fact-icon svg { width: 15px; height: 15px; }
.contact-facts div { display: flex; flex-direction: column; }
.contact-facts div span {
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.contact-facts div strong {
  color: var(--text-soft);
  font-size: 0.82rem;
  font-weight: 500;
}

.socials { display: flex; gap: 8px; margin-top: 24px; }
.socials a {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
  background: var(--surface);
  transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s var(--ease),
    background-color 0.2s ease;
}
.socials a:hover {
  color: var(--accent);
  border-color: var(--line-strong);
  background: var(--accent-softer);
  transform: translateY(-2px);
}
.socials svg { width: 17px; height: 17px; }

.contact-form {
  padding: clamp(22px, 3vw, 32px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--card-shadow);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.field { display: flex; flex-direction: column; margin-bottom: 15px; }
.form-row .field { margin-bottom: 15px; }
.field label {
  margin-bottom: 7px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.field input,
.field textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--bg-soft);
  color: var(--text);
  font-size: 0.85rem;
  line-height: 1.5;
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input::placeholder,
.field textarea::placeholder { color: var(--muted-2); }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--surface-2);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.field.invalid input,
.field.invalid textarea { border-color: var(--danger); }
.field-error {
  display: none;
  margin-top: 5px;
  color: var(--danger);
  font-size: 10.5px;
}
.field.invalid .field-error { display: block; }
.btn-submit { width: 100%; margin-top: 4px; }
.form-note {
  margin-top: 11px;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.01em;
  text-align: center;
  line-height: 1.6;
}
.form-status {
  margin-top: 10px;
  color: var(--accent);
  font-size: 11px;
  text-align: center;
  min-height: 0;
}
.form-status:empty { display: none; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg);
  padding-top: 38px;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 28px;
}
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand p {
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.footer-brand div span {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.06em;
}
.footer-note {
  color: var(--muted-2);
  font-size: 11px;
  text-align: center;
}
.footer-right { display: flex; align-items: center; gap: 20px; }
.footer-right a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 11.5px;
  font-weight: 500;
  transition: color 0.2s ease;
}
.footer-right a:hover { color: var(--accent); }
.footer-right svg { width: 13px; height: 13px; }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 16px 22px;
  border-top: 1px solid var(--line);
}
.footer-bottom p {
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.04em;
}

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 300;
  padding: 11px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--text);
  font-size: 12px;
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.7);
  transform: translate(-50%, 20px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, transform 0.3s var(--ease), visibility 0.3s;
  white-space: nowrap;
}
.toast.show {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}
.toast::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--accent);
  vertical-align: 1px;
}

/* ---------- Responsive ---------- */
@media (max-width: 1120px) {
  .nav a { padding-inline: 10px; }
  .hero-visual { max-width: 380px; padding-left: 26px; }
  .code-card { left: -40px; width: 245px; }
  .code-card pre { font-size: 8.8px; }
  .float-chip { right: -10px; }
}

@media (max-width: 980px) {
  :root { --nav-h: 68px; }

  .menu-toggle { display: inline-grid; }
  .nav {
    position: fixed;
    top: 0;
    right: 0;
    z-index: -1;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    width: min(340px, 86vw);
    max-width: 100vw;
    height: 100dvh;
    padding: 108px 28px 32px;
    border-left: 1px solid var(--line);
    background: color-mix(in srgb, var(--bg) 96%, transparent);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 0.42s var(--ease), visibility 0.42s;
    box-shadow: -30px 0 80px -30px rgba(0, 0, 0, 0.6);
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .nav.is-open { transform: translateX(0); visibility: visible; }
  .nav a {
    padding: 14px 2px;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    font-size: 1.5rem;
    font-weight: 500;
    letter-spacing: -0.03em;
  }
  .nav a::after { display: none; }
  .nav a.active { color: var(--accent); }
  .nav a:last-child { border-bottom: 0; }
  .menu-toggle { z-index: 2; }

  .hero { min-height: auto; padding-top: calc(var(--nav-h) + 60px); }
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 56px;
  }
  .hero-copy { max-width: 640px; }
  .hero-visual {
    justify-self: center;
    max-width: 400px;
    padding-left: 0;
    margin-bottom: 10px;
  }
  .code-card { left: -34px; }
  .float-chip { right: -18px; }
  .hero h1 { font-size: clamp(2.8rem, 8vw, 4.6rem); }
  .hero-foot { margin-top: 50px; }

  .section-head.split { grid-template-columns: 1fr; gap: 20px; }
  .section-intro { max-width: 58ch; }
  .about-grid { grid-template-columns: 1fr; }
  .about-side { position: static; grid-template-columns: 1fr 1fr; align-items: start; }
  .info-card { height: 100%; }

  .featured-project { grid-template-columns: 1fr; }
  .featured-visual { border-left: 0; border-top: 1px solid var(--line); min-height: 340px; }
  .browser { max-width: 500px; }

  .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .timeline-layout { grid-template-columns: 1fr; }
  .education-stack { position: static; grid-template-columns: 1.25fr 0.75fr; }

  .contact-grid { grid-template-columns: 1fr; }
  .contact-info { max-width: 560px; }
}

@media (max-width: 720px) {
  .nav-resume { display: none; }
  .brand-text small { display: none; }

  .hero h1 { font-size: clamp(2.55rem, 10vw, 3.6rem); }
  .hero-lead { font-size: 0.96rem; }
  .hero-stats { gap: 26px; }
  .hero-stats dd { font-size: 1.4rem; }
  .hero-visual { max-width: 350px; }
  .code-card { display: none; }
  .float-chip { right: -6px; top: 14px; font-size: 9.5px; padding: 7px 11px; }
  .portrait-brackets { inset: -7px; }

  .marquee-track span { padding-inline: 16px; font-size: 11.5px; }

  .skills-grid { grid-template-columns: 1fr; }
  .toolbox { flex-direction: column; align-items: flex-start; gap: 12px; padding: 18px 20px; }

  .project-grid { grid-template-columns: 1fr; }
  .project-cover { aspect-ratio: 16 / 10; }

  .about-side { grid-template-columns: 1fr; }
  .education-stack { grid-template-columns: 1fr; }

  .timeline { padding-left: 20px; }
  .timeline-dot { left: -26px; }
  .timeline-head { flex-direction: column; gap: 8px; }
  .timeline-date { align-self: flex-start; }

  .featured-visual { padding: 26px 20px; min-height: 300px; }
  .float-stat-a { top: 4%; left: 0; }
  .float-stat-b { display: none; }

  .form-row { grid-template-columns: 1fr; gap: 0; }

  .footer-inner { flex-direction: column; align-items: flex-start; gap: 20px; }
  .footer-note { text-align: left; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 6px; }
}

@media (max-width: 480px) {
  .brand-text { font-size: 13px; }
  .brand-mark { width: 38px; height: 38px; }
  .theme-toggle { width: 38px; height: 38px; }
  .hero-ctas .btn { flex: 1 1 auto; }
  .hero-stats { flex-wrap: wrap; gap: 18px 30px; }
  .hero-foot { flex-direction: column; align-items: flex-start; gap: 12px; }
  .hero-location { font-size: 8.5px; }
  .project-top { flex-direction: column; align-items: flex-start; gap: 8px; }
  .contact-email { padding-right: 62px; }
  .socials { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
  .hero-glow { animation: none; }
  .marquee-track { animation: none; flex-wrap: wrap; width: 100%; justify-content: center; row-gap: 8px; }
  .marquee-track > *:nth-child(n+24) { display: none; }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .scroll-progress, .hero-bg, .marquee-band, .toast,
  .hero-ctas, .hero-foot, .theme-toggle, .filters, .project-links,
  .contact-form, .socials, .footer-right, .scroll-cue { display: none !important; }
  body { background: #fff; color: #111; }
  .section, .hero { padding-block: 24px; min-height: auto; }
  .section-alt, .contact { background: #fff; border: 0; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .js .reveal { opacity: 1; transform: none; }
  a { text-decoration: underline; }
  .project-card, .skill-card, .info-card, .edu-card, .cert-card, .featured-project {
    break-inside: avoid;
    box-shadow: none;
  }
}
