/* ============================================================
   TOKENS
   B&W neutral base. Each case study sets its own --accent
   via [data-project] selectors. Index/resume use neutral black.
   --accent-rgb is the comma-triple used inside rgba(...) calls.
============================================================ */
:root {
  /* Color palette — neutral B&W base */
  --bg:        #FFFFFF;
  --bg-2:      #F6F6F7;
  --surface:   #FFFFFF;
  --surface-2: #EFEFF1;
  --text:      #0A0A0A;
  --text-2:    #444A52;
  --text-3:    #8B9099;

  /* Accent — default near-black for non-project pages */
  --accent:       #0A0A0A;
  --accent-rgb:   10, 10, 10;
  --accent-d:     #000000;
  --accent-hover: #1F1F1F;
  --glow:         #0A0A0A;
  --accent-l:     rgba(10, 10, 10, 0.06);
  --accent-light: rgba(10, 10, 10, 0.08);

  /* Borders */
  --border:   rgba(10, 10, 10, 0.08);
  --border-h: rgba(var(--accent-rgb), 0.40);

  /* Typography */
  --f-head: 'Archivo', system-ui, sans-serif;
  --f-body: 'Space Grotesk', system-ui, sans-serif;

  /* Motion */
  --ease:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in: cubic-bezier(0.55, 0, 1, 0.45);

  /* Layout */
  --max:      820px;
  --max-wide: 1240px;

  /* Radius */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 999px;

  /* Project accent — kept as alias of --accent for legacy class hooks */
  --project-accent: var(--accent);
  --project-light:  var(--accent-light);
}

/* ============================================================
   PER-PROJECT ACCENT OVERRIDES
   Body has data-project="X". Each project gets its own --accent
   and --accent-rgb. All rgba(var(--accent-rgb), X) calls in the
   stylesheet then resolve to the project's color automatically.
============================================================ */
[data-project="lb"] {
  --accent:       #1E3A8A;
  --accent-rgb:   30, 58, 138;
  --accent-d:     #142A66;
  --accent-hover: #17326F;
  --glow:         #2D4FB0;
  --accent-l:     rgba(30, 58, 138, 0.06);
  --accent-light: rgba(30, 58, 138, 0.10);
  --project-accent: #1E3A8A;
  --project-light:  rgba(30, 58, 138, 0.10);
}
[data-project="administration-system"] {
  --accent:       #B85B26;
  --accent-rgb:   184, 91, 38;
  --accent-d:     #8E441C;
  --accent-hover: #9F4D20;
  --glow:         #D67238;
  --accent-l:     rgba(184, 91, 38, 0.06);
  --accent-light: rgba(184, 91, 38, 0.10);
  --project-accent: #B85B26;
  --project-light:  rgba(184, 91, 38, 0.10);
}
[data-project="ss"] {
  --accent:       #3D8E61;
  --accent-rgb:   61, 142, 97;
  --accent-d:     #2D6B49;
  --accent-hover: #347A53;
  --glow:         #56AD7A;
  --accent-l:     rgba(61, 142, 97, 0.06);
  --accent-light: rgba(61, 142, 97, 0.10);
  --project-accent: #3D8E61;
  --project-light:  rgba(61, 142, 97, 0.10);
}
[data-project="moodlet"] {
  --accent:       #9B7FD4;
  --accent-rgb:   155, 127, 212;
  --accent-d:     #7A5FB0;
  --accent-hover: #8A6FC0;
  --glow:         #B7A0E5;
  --accent-l:     rgba(155, 127, 212, 0.06);
  --accent-light: rgba(155, 127, 212, 0.10);
  --project-accent: #9B7FD4;
  --project-light:  rgba(155, 127, 212, 0.10);
}
[data-project="peduli"] {
  --accent:       #22A8C4;
  --accent-rgb:   34, 168, 196;
  --accent-d:     #178294;
  --accent-hover: #1B91A8;
  --glow:         #4DC1DA;
  --accent-l:     rgba(34, 168, 196, 0.06);
  --accent-light: rgba(34, 168, 196, 0.10);
  --project-accent: #22A8C4;
  --project-light:  rgba(34, 168, 196, 0.10);
}
[data-project="ai"] {
  --accent:       #1F1F1F;
  --accent-rgb:   31, 31, 31;
  --accent-d:     #0A0A0A;
  --accent-hover: #2D2D2D;
  --glow:         #3A3A3A;
  --accent-l:     rgba(31, 31, 31, 0.06);
  --accent-light: rgba(31, 31, 31, 0.10);
  --project-accent: #1F1F1F;
  --project-light:  rgba(31, 31, 31, 0.10);
}
[data-project="resume"] {
  /* Inherits default near-black accent from :root */
}

/* ============================================================
   RESET
============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--f-body); font-size: 16px; line-height: 1.75;
  color: var(--text); background: var(--bg);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
@media (hover: hover) and (pointer: fine) { body { cursor: none; } }
a { color: inherit; text-decoration: none; }
img, video { max-width: 100%; display: block; }
button { font-family: var(--f-body); }

/* ============================================================
   GRAIN OVERLAY
   .grain — used on main portfolio page
   body::after — used on case study pages
============================================================ */
.grain {
  position: fixed; inset: 0; z-index: 9990; pointer-events: none;
  opacity: 0.045; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  background-repeat: repeat; background-size: 200px 200px;
}
body::after {
  content: ''; position: fixed; inset: 0; z-index: 9990; pointer-events: none;
  opacity: 0.04; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}

/* ============================================================
   CURSOR
============================================================ */
.c-ring {
  position: fixed; width: 40px; height: 40px;
  border: 1px solid rgba(var(--accent-rgb), 0.5); border-radius: 50%;
  pointer-events: none; z-index: 9998; top: 0; left: 0;
  will-change: transform;
  transition: width 400ms var(--ease), height 400ms var(--ease),
              border-color 300ms ease, background 300ms ease;
}
.c-dot {
  position: fixed; width: 5px; height: 5px;
  background: var(--accent); border-radius: 50%;
  pointer-events: none; z-index: 9999; top: 0; left: 0;
  will-change: transform;
}
.c-ring.on-dark { border-color: rgba(var(--accent-rgb), 0.35); }
.c-ring.hovered {
  width: 60px; height: 60px;
  background: rgba(var(--accent-rgb), 0.06);
  border-color: var(--accent);
}
.c-ring.hovered-link {
  width: 80px; height: 80px;
  background: rgba(var(--accent-rgb), 0.08);
  border-color: var(--accent);
}
@media (hover: none), (pointer: coarse) { .c-ring, .c-dot { display: none; } }

/* ============================================================
   ACCESSIBILITY
============================================================ */
.skip-link {
  position: fixed; top: -100%; left: 16px; z-index: 9999;
  background: var(--accent); color: var(--bg);
  padding: 12px 20px; border-radius: 4px;
  font-size: 14px; font-weight: 700;
  transition: top 200ms ease;
}
.skip-link:focus { top: 16px; }
:focus-visible { outline: 1px solid var(--accent); outline-offset: 4px; border-radius: 2px; }

/* ============================================================
   LAYOUT
============================================================ */
.container { width: 100%; max-width: var(--max-wide); margin: 0 auto; padding: 0 32px; }
.container-text { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 32px; }
@media (min-width: 768px) { .container { padding: 0 56px; } .container-text { padding: 0 56px; } }
@media (min-width: 1400px) { .container { padding: 0 80px; } }

/* ============================================================
   HEADER — shared base
============================================================ */
.header {
  position: sticky; top: 0; z-index: 100;
  transition: background 300ms ease, backdrop-filter 300ms ease, padding 300ms ease;
}

/* Portfolio header — full-width glass, always visible. Slightly stronger on scroll. */
.page-portfolio .header {
  padding: 0px 0;
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border);
}
.page-portfolio .header.scrolled {
  padding: 12px 0;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(28px);
  -webkit-backdrop-filter: saturate(180%) blur(28px);
}
/* Reset any legacy pill-shaped nav-inner background; glass lives on the header */
.page-portfolio .header .nav-inner {
  background: transparent;
  border: 0;
  border-radius: 0;
}

/* Case study header — same full-width glass treatment on scroll */
[data-project] .header.scrolled {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(28px);
  -webkit-backdrop-filter: saturate(180%) blur(28px);
  border-bottom: 1px solid var(--border);
}

/* ============================================================
   PORTFOLIO NAV
============================================================ */
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 52px; padding: 0 24px;
  transition: background 300ms ease, border-color 300ms ease, border-radius 300ms ease, padding 300ms ease;
}
.nav-brand {
  font-family: var(--f-head); font-size: 18px; font-weight: 900;
  letter-spacing: -0.5px; color: var(--text);
}
.nav-brand em, .nav-brand span { font-style: normal; color: var(--accent); }
.nav-sig { height: 40px; width: auto; opacity: 0.9; transition: opacity 200ms ease; display: block; }
.nav-brand:hover .nav-sig { opacity: 1; }
.nav-links { display: flex; gap: 40px; list-style: none; }
.nav-links a {
  display: inline-block;
  font-size: 16px; font-weight: 500; color: var(--text-2);
  padding: 12px 0; letter-spacing: 0.3px;
  transition: color 200ms ease;
}
.nav-links a:hover { color: var(--text); }
@media (max-width: 600px) { .nav-links { display: none; } }
/* .nav-cta removed — header CTAs use .btn-primary.btn-sm directly */

/* ============================================================
   CASE STUDY NAV
============================================================ */
.nav {
  display: flex; align-items: center;
  justify-content: space-between; height: 64px; gap: 24px;
}
.nav-back {
  font-size: 13px; font-weight: 500; color: var(--text-2);
  display: flex; align-items: center; gap: 6px;
  border: 1px solid var(--border); padding: 7px 16px; border-radius: var(--r-xl);
  transition: border-color 200ms ease, color 200ms ease;
}
.nav-back:hover { border-color: var(--border-h); color: var(--text); }

/* ============================================================
   MODE TOGGLE (case study pages)
============================================================ */
.mode-toggle-bar {
  position: sticky; top: 64px; z-index: 90;
  background: rgba(250,250,248,0.92); backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.mode-toggle-inner {
  max-width: var(--max-wide); margin: 0 auto; padding: 0 32px;
  display: flex; align-items: center; justify-content: space-between; height: 52px;
}
@media (min-width: 768px) { .mode-toggle-inner { padding: 0 56px; } }

.read-time { font-size: 12px; color: var(--text-3); font-weight: 400; }
.read-time strong { color: var(--accent); }
.read-time .material-icons-round { font-size: 13px; vertical-align: -2px; }

.mode-tabs {
  display: flex; gap: 2px;
  background: rgba(26,23,20,0.05); padding: 3px; border-radius: var(--r-xl);
  border: 1px solid var(--border);
}
.mode-btn {
  padding: 5px 18px; border-radius: var(--r-xl);
  font-family: var(--f-body); font-size: 12px; font-weight: 600;
  color: var(--text-2); background: transparent;
  border: none; cursor: pointer; letter-spacing: 0.3px;
  display: inline-flex; align-items: center; gap: 5px;
  transition: background 220ms var(--ease), color 220ms ease;
}
.mode-btn[aria-pressed="true"] { background: var(--surface-2); color: var(--text); }
.mode-btn:focus-visible { outline: 1px solid var(--accent); outline-offset: 2px; }
.mode-btn .material-icons-round { font-size: 15px; }

/* ============================================================
   CONTENT VISIBILITY (case study pages)
============================================================ */
[data-show="detailed"] { display: none; }
body.mode-detailed [data-show="detailed"] { display: block; }
body.mode-detailed [data-show="recruiter"] { display: none; }
body.mode-detailed [data-show="detailed"],
body.mode-recruiter [data-show="recruiter"] { animation: fadeUp 450ms var(--ease) both; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  body.mode-detailed [data-show="detailed"],
  body.mode-recruiter [data-show="recruiter"] { animation: none; }
}

/* ============================================================
   PORTFOLIO: HERO
============================================================ */
.hero {
  min-height: calc(100dvh - 100px); display: flex; flex-direction: column;
  justify-content: flex-end; padding: 0 0 80px; position: relative; overflow: hidden;
}
.hero-bg-line {
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  pointer-events: none; overflow: hidden;
}
.hero-bg-line::before {
  content: '';
  position: absolute; right: -100px; top: -100px;
  width: 600px; height: 600px;
  background: radial-gradient(ellipse, rgba(var(--accent-rgb), 0.055) 0%, transparent 70%);
  border-radius: 50%;
}
.hero-status {
  position: absolute; top: 110px; left: 32px;
  display: flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 600; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--text-2);
}
@media (min-width: 768px) { .hero-status { left: 56px; } }
@media (min-width: 1400px) { .hero-status { left: 80px; } }
.status-dot {
  width: 6px; height: 6px; border-radius: 50%; background: #4ADE80;
  animation: blink 2.4s infinite;
}
@keyframes blink { 0%,100%{opacity:1}50%{opacity:0.35} }

.hero-year {
  position: absolute; top: 110px; right: 32px;
  font-size: 11px; font-weight: 500; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--text-3);
}
@media (min-width: 768px) { .hero-year { right: 56px; } }
@media (min-width: 1400px) { .hero-year { right: 80px; } }

.hero-display { padding: 0 32px; }
@media (min-width: 768px) { .hero-display { padding: 0 56px; } }
@media (min-width: 1400px) { .hero-display { padding: 0 80px; } }

.hero-line { display: block; overflow: hidden; line-height: 0.92; }
.hero-line-inner {
  display: block; transform: translateY(110%);
  transition: transform 900ms var(--ease);
}
.hero-line-inner.visible { transform: translateY(0); }

.hero-t1 {
  font-family: var(--f-head); font-size: clamp(68px, 10.5vw, 160px);
  font-weight: 300; letter-spacing: -3px; color: var(--text-2);
  display: flex; align-items: baseline; gap: 24px;
}
.hero-t2 {
  font-family: var(--f-head); font-size: clamp(68px, 10.5vw, 160px);
  font-weight: 900; letter-spacing: -5px; color: var(--text);
}
.hero-t3 {
  font-family: var(--f-head); font-size: clamp(68px, 10.5vw, 160px);
  font-weight: 900; letter-spacing: -5px;
  color: transparent; -webkit-text-stroke: 1.5px rgba(26,23,20,0.18);
}
@media (min-width: 768px) { .hero-t3 { -webkit-text-stroke-width: 2px; } }

.hero-bottom {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 32px; flex-wrap: wrap; padding: 48px 32px 0;
}
@media (min-width: 768px) { .hero-bottom { padding: 48px 56px 0; } }
@media (min-width: 1400px) { .hero-bottom { padding: 48px 80px 0; } }

.hero-desc {
  font-size: clamp(15px, 1.4vw, 18px); color: var(--text-2);
  line-height: 1.7; max-width: 440px;
  opacity: 0; transform: translateY(24px);
  transition: opacity 700ms var(--ease) 600ms, transform 700ms var(--ease) 600ms;
}
.hero-desc.visible { opacity: 1; transform: none; }

.hero-metrics {
  display: flex; gap: 0; flex-shrink: 0;
  border: 1px solid var(--border); border-radius: 12px; overflow: hidden;
  opacity: 0; transform: translateY(24px);
  transition: opacity 700ms var(--ease) 750ms, transform 700ms var(--ease) 750ms;
}
.hero-metrics.visible { opacity: 1; transform: none; }
.hm { padding: 18px 28px; display: flex; flex-direction: column; gap: 3px; border-right: 1px solid var(--border); }
.hm:last-child { border-right: none; }
.hm-num {
  font-family: var(--f-head); font-size: 22px; font-weight: 800;
  color: var(--text); letter-spacing: -0.5px; line-height: 1;
}
.hm-label { font-size: 11px; color: var(--text-2); white-space: nowrap; }
@media (max-width: 640px) {
  .hero-metrics { flex-direction: column; width: 100%; }
  .hm { border-right: none; border-bottom: 1px solid var(--border); }
  .hm:last-child { border-bottom: none; }
}

.scroll-hint {
  position: absolute; bottom: 32px; right: 32px;
  display: flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 500; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--text-3);
  animation: nudge 2.5s ease-in-out infinite;
}
@keyframes nudge { 0%,100%{transform:translateY(0)}50%{transform:translateY(5px)} }
@media (min-width: 768px) { .scroll-hint { right: 56px; } }

/* ============================================================
   PORTFOLIO: MARQUEE BELT
============================================================ */
.marquee-belt {
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  padding: 18px 0; overflow: hidden; position: relative;
  background: var(--bg-2);
}
.marquee-track {
  display: flex; gap: 0; width: max-content;
  animation: marquee-scroll 28s linear infinite;
}
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.marquee-item {
  display: flex; align-items: center; gap: 20px;
  padding: 0 32px; white-space: nowrap;
  font-size: 11px; font-weight: 600; letter-spacing: 2.5px;
  text-transform: uppercase; color: var(--text-3);
}
.marquee-sep { color: var(--accent); font-size: 8px; }

/* ============================================================
   PORTFOLIO: WORK SECTION
============================================================ */
.work-section { padding: 120px 0 0; }

.section-header {
  display: flex; align-items: baseline; justify-content: space-between;
  padding-bottom: 40px; border-bottom: 1px solid var(--border); margin-bottom: 0;
}
.sec-label {
  font-size: 14px; font-weight: 600; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--text-2);
}
.sec-count { font-size: 11px; color: var(--text-3); }

.project-list { list-style: none; }
.project-row {
  position: relative; display: grid;
  grid-template-columns: 52px 1fr auto;
  align-items: center; gap: 24px;
  padding: 28px 0; border-bottom: 1px solid var(--border);
  cursor: pointer; transition: border-color 300ms ease; overflow: hidden;
}
.project-row::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 0;
  background: var(--row-color, var(--accent)); opacity: 0.06;
  transition: width 500ms var(--ease); border-radius: 0 2px 2px 0;
}
.project-row:hover { border-color: var(--border-h); }
.project-row:hover::before { width: 100%; }
.project-row a { position: absolute; inset: 0; z-index: 2; border-radius: 0; }
.project-row a:focus-visible { outline: 1px solid var(--accent); outline-offset: -3px; }

.proj-num {
  font-size: 12px; font-weight: 500; color: var(--text-3);
  font-family: var(--f-head); letter-spacing: 0; transition: color 300ms ease;
}
.project-row:hover .proj-num { color: var(--accent); }
.proj-name {
  font-family: var(--f-head); font-size: clamp(32px, 4vw, 60px);
  font-weight: 900; letter-spacing: -1.5px; line-height: 1; color: var(--text);
  transition: color 300ms ease, letter-spacing 400ms var(--ease);
}
.project-row:hover .proj-name { color: var(--text); letter-spacing: -0.5px; }
.proj-right {
  display: flex; flex-direction: column; align-items: flex-end; gap: 4px; text-align: right;
}
.proj-cat {
  font-size: 12px; font-weight: 500; letter-spacing: 0.5px; color: var(--text-2);
  transition: color 300ms ease;
}
.project-row:hover .proj-cat { color: var(--accent); }
.proj-arrow {
  font-size: 20px; color: var(--text-3); transform: rotate(-45deg);
  transition: transform 350ms var(--ease), color 300ms ease, opacity 300ms ease; opacity: 0;
}
.project-row:hover .proj-arrow { transform: rotate(0deg); color: var(--accent); opacity: 1; }

/* Floating project preview */
.proj-preview {
  position: fixed; pointer-events: none; z-index: 500;
  width: 280px; height: 180px; border-radius: 12px; overflow: hidden;
  opacity: 0; transform: scale(0.88) rotate(-3deg);
  transition: opacity 300ms var(--ease), transform 300ms var(--ease);
  box-shadow: 0 24px 64px rgba(0,0,0,0.6);
}
.proj-preview.active { opacity: 1; transform: scale(1) rotate(0deg); }
.proj-preview-inner {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
}
.proj-preview-label {
  font-family: var(--f-head); font-size: 13px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
}
.prev-lb       { background: linear-gradient(135deg, #0B1428, #1E3A8A 140%); }
.prev-administration-system { background: linear-gradient(135deg, #2A140A, #B85B26 140%); }
.prev-ss       { background: linear-gradient(135deg, #0D2016, #3D8E61 140%); }
.prev-ml       { background: linear-gradient(135deg, #150D26, #9B7FD4 140%); }
.prev-pl       { background: linear-gradient(135deg, #031520, #22A8C4 140%); }
.prev-ai       { background: linear-gradient(135deg, #0A0A0A, #1F1F1F 200%); }

/* ============================================================
   PORTFOLIO: ABOUT
============================================================ */
.about-section { padding: 160px 0; }

.about-headline {
  font-family: var(--f-head); font-size: clamp(40px, 5.5vw, 80px);
  font-weight: 900; letter-spacing: -2.5px; line-height: 1.05;
  max-width: 880px; margin-bottom: 80px;
}
.about-headline em { font-style: italic; font-weight: 300; color: var(--text-2); }
.about-headline .stroke {
  color: transparent; -webkit-text-stroke: 1.5px rgba(26,23,20,0.20);
}
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 100px; align-items: start;
}
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; gap: 56px; } }

.about-body { display: flex; flex-direction: column; gap: 20px; }
.about-body p { font-size: 16px; color: var(--text-2); line-height: 1.85; }
.about-body strong { color: var(--text); font-weight: 600; }
.about-btns { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }

/* .btn-outline and .btn-filled removed — use .btn-ghost / .btn-primary instead */

.about-skills-col { display: flex; flex-direction: column; gap: 40px; }
.skill-block h4 {
  font-size: 14px; font-weight: 700; letter-spacing: 0;
  text-transform: none; color: var(--text); margin-bottom: 16px;
}
.skill-list { display: flex; flex-wrap: wrap; gap: 10px; }
.sk {
  font-size: 13px; color: var(--text-2); font-weight: 500;
  padding: 7px 16px; border-radius: 999px; border: 1px solid var(--border);
  transition: border-color 200ms ease, color 200ms ease;
}
.sk:hover { border-color: var(--border-h); color: var(--text); }
.sk.strong {
  color: var(--accent); border-color: rgba(var(--accent-rgb), 0.25);
  background: rgba(var(--accent-rgb), 0.06);
}
.sk.code {
    color: var(--accent);
    border-style: dashed;
    border-color: var(--accent);
}

/* Signature */
.about-sig { margin-top: 24px; display: flex; align-items: center; }
.sig-img {
  height: 56px; width: auto;
  filter: sepia(1) saturate(0.5) brightness(0.55);
  opacity: 0.70; user-select: none;
}

/* ============================================================
   PORTFOLIO: CONTACT
============================================================ */
.contact-section {
  padding: 120px 0 160px; text-align: center;
  border-top: 1px solid var(--border);
}
.contact-eyebrow {
  font-size: 11px; font-weight: 600; letter-spacing: 2px;
  text-transform: uppercase; color: var(--text-3); margin-bottom: 40px;
}
.contact-headline {
  font-family: var(--f-head); font-size: clamp(48px, 7.5vw, 120px);
  font-weight: 900; letter-spacing: -4px; line-height: 0.95;
  color: var(--text); margin-bottom: 60px;
}
.contact-headline .ghost {
  color: transparent; -webkit-text-stroke: 1.5px rgba(26,23,20,0.15); display: block;
}
@media (min-width: 768px) { .contact-headline .ghost { -webkit-text-stroke-width: 2px; } }
.contact-email-link {
  display: inline-block; font-family: var(--f-head);
  font-size: clamp(18px, 2.5vw, 32px); font-weight: 700; letter-spacing: -0.5px;
  color: var(--text); border-bottom: 1px solid var(--border-h);
  padding-bottom: 6px; margin-bottom: 48px;
  transition: color 200ms ease, border-color 200ms ease;
}
.contact-email-link:hover { color: var(--accent); border-color: var(--accent); }
.contact-links {
  display: flex; align-items: center; justify-content: center;
  gap: 32px; flex-wrap: wrap;
}
.contact-links a {
  font-size: 13px; font-weight: 500; color: var(--text-3);
  transition: color 200ms ease; letter-spacing: 0.5px;
}
.contact-links a:hover { color: var(--accent); }
.contact-links .sep { color: var(--text-3); font-size: 10px; }

/* ============================================================
   PORTFOLIO: REVEAL ANIMATION
============================================================ */
.fade-up {
  opacity: 0; transform: translateY(32px);
  transition: opacity 700ms var(--ease), transform 700ms var(--ease);
}
.fade-up.visible { opacity: 1; transform: none; }
.fade-up.d1 { transition-delay: 100ms; }
.fade-up.d2 { transition-delay: 200ms; }
.fade-up.d3 { transition-delay: 300ms; }

/* ============================================================
   PORTFOLIO: RESPONSIVE
============================================================ */
@media (max-width: 900px) and (min-width: 601px) {
  .hero { justify-content: center; padding-bottom: 60px; }
  .hero-display { padding: 0 32px; }
  .hero-t1, .hero-t2 { font-size: clamp(44px, 7.5vw, 90px); letter-spacing: -3px; }
  .hero-t3 { font-size: clamp(38px, 6.5vw, 80px); letter-spacing: -3px; }
  .hero-bottom { padding: 36px 32px 0; }
}
@media (max-width: 600px) {
  .hero { justify-content: center; min-height: 80dvh; padding: 40px 0 60px; }
  .hero-status { left: 20px; top: 20px; font-size: 10px; }
  .hero-year   { right: 20px; top: 20px; font-size: 10px; }
  .hero-display { padding: 0 20px; }
  .hero-t1, .hero-t2 { font-size: clamp(40px, 12vw, 68px); letter-spacing: -2px; }
  .hero-t3 { font-size: clamp(22px, 8.5vw, 68px); letter-spacing: -1px; }
  .hero-bottom { padding: 32px 20px 0; gap: 20px; }
  .scroll-hint { right: 20px; bottom: 20px; }
}
@media (max-width: 480px) {
  .proj-name { font-size: 28px; letter-spacing: -0.5px; }
  .project-row { grid-template-columns: 36px 1fr auto; gap: 12px; padding: 20px 0; }
  .hm { padding: 14px 16px; }
  .hm-num { font-size: 18px; }
  .about-headline { font-size: clamp(28px, 8vw, 48px); letter-spacing: -1.5px; }
}
@media (max-width: 380px) {
  .hero-t3 { font-size: 7.5vw; }
  .hero-t1, .hero-t2 { font-size: 10vw; }
}

/* ============================================================
   CASE STUDY: HERO
============================================================ */
.cs-hero {
  padding: 108px 0 72px; position: relative; overflow: hidden;
  border-bottom: 1px solid var(--border);
}
/* LearningBox & SmartShopper glow */
[data-project="lb"] .cs-hero::before,
[data-project="ss"] .cs-hero::before {
  content: ''; position: absolute; right: -160px; top: -80px;
  width: 560px; height: 560px; border-radius: 50%;
  background: radial-gradient(ellipse, rgba(var(--accent-rgb), 0.05) 0%, transparent 70%);
  pointer-events: none;
}
[data-project="ss"] .cs-hero::before {
  width: 500px; height: 500px;
  background: radial-gradient(ellipse, rgba(var(--accent-rgb), 0.06) 0%, transparent 70%);
}
/* Moodlet — inline radial background, no border-bottom */
[data-project="moodlet"] .cs-hero {
  padding: 120px 0 72px; border-bottom: none;
  background: radial-gradient(ellipse 80% 60% at 30% -10%, rgba(var(--accent-rgb), 0.12) 0%, transparent 60%), var(--bg);
}
/* Peduli — inline radial background, no border-bottom */
[data-project="peduli"] .cs-hero {
  padding: 120px 0 72px; border-bottom: none;
  background: radial-gradient(ellipse 80% 60% at 30% -10%, rgba(var(--accent-rgb), 0.14) 0%, transparent 60%), var(--bg);
}
/* AI Project — centered glow */
[data-project="ai"] .cs-hero {
  padding: 100px 0 60px; border-bottom: none;
}
[data-project="ai"] .cs-hero::before {
  content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 600px; height: 400px; pointer-events: none;
  background: radial-gradient(ellipse, rgba(var(--accent-rgb), 0.10) 0%, transparent 70%);
}

.cs-meta {
  font-size: 11px; color: var(--project-accent); font-weight: 600;
  text-transform: uppercase; letter-spacing: 2.5px; margin-bottom: 20px;
}
.cs-title {
  font-family: var(--f-head); font-size: clamp(48px, 7.5vw, 100px);
  font-weight: 900; letter-spacing: -3px; line-height: 0.95;
  color: var(--text); margin-bottom: 28px;
}
.cs-title .dim { color: var(--text-3); }
.cs-subtitle {
  font-size: 18px; color: var(--text-2); line-height: 1.75;
  max-width: 580px; margin-bottom: 36px;
}
.cs-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 48px; }
.tag {
  font-size: 11px; font-weight: 600; padding: 5px 14px;
  border-radius: var(--r-xl); background: var(--project-light);
  color: var(--project-accent); border: 1px solid rgba(var(--accent-rgb), 0.20);
  letter-spacing: 0.3px;
}

/* ============================================================
   CASE STUDY: META GRID
============================================================ */
.cs-meta-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0; border: 1px solid var(--border); border-radius: var(--r-lg);
  overflow: hidden; background: var(--surface); width: fit-content; max-width: 100%;
}
.cs-meta-item { padding: 18px 24px; }
.cs-meta-item + .cs-meta-item { border-left: 1px solid var(--border); }
.cs-meta-item .label {
  font-size: 10px; text-transform: uppercase; letter-spacing: 2px;
  color: var(--text-3); font-weight: 700; margin-bottom: 5px;
}
.cs-meta-item .value { font-size: 14px; font-weight: 600; color: var(--text); }
@media (max-width: 600px) {
  .cs-meta-grid { grid-template-columns: 1fr 1fr; width: 100%; }
  .cs-meta-item + .cs-meta-item { border-left: none; border-top: 1px solid var(--border); }
  .cs-meta-item:nth-child(even) { border-left: 1px solid var(--border); }
}

/* ============================================================
   CASE STUDY: COVER
============================================================ */
.cs-cover-wrap { padding: 48px 0 56px; }
.cs-cover-svg {
  width: 100%; border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid var(--border); display: block; cursor: zoom-in;
}
.cs-cover-caption, .cover-caption {
  font-size: 12px; color: var(--text-3); text-align: center;
  margin-top: 10px; font-style: italic;
}

/* ============================================================
   CASE STUDY: HERO VISUAL (project-specific backgrounds)
============================================================ */
.hero-visual {
  width: 100%; max-width: 840px; margin: 56px auto 0;
  height: 360px; border-radius: var(--r-lg); overflow: hidden; position: relative;
  display: flex; align-items: center; justify-content: center;
}
[data-project="moodlet"] .hero-visual {
  background: linear-gradient(135deg, #2D1B5C 0%, #1A0F38 60%, #0D0820 100%);
  border: 1px solid rgba(var(--accent-rgb), 0.20);
}
[data-project="moodlet"] .hero-visual::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 70% 40%, rgba(var(--accent-rgb), 0.15) 0%, transparent 65%);
}
[data-project="peduli"] .hero-visual {
  margin-top: 56px;
  background: linear-gradient(135deg, #062E3A 0%, #031D25 60%, #010D11 100%);
  border: 1px solid rgba(var(--accent-rgb), 0.25);
}
[data-project="peduli"] .hero-visual::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 20% 60%, rgba(var(--accent-rgb), 0.12) 0%, transparent 60%);
}
[data-project="ss"] .hero-visual {
  margin: 48px auto 0;
  background: linear-gradient(135deg, #0D2016 0%, #3D8E61 200%);
  border: 1px solid rgba(var(--accent-rgb), 0.20);
}
[data-project="ss"] .hero-visual::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(255,255,255,0.05) 0%, transparent 70%);
}
[data-project="ai"] .hero-visual {
  margin: 48px auto 0; background: #0A0A0C;
  border: 1.5px solid rgba(var(--accent-rgb), 0.15);
}

/* ============================================================
   CASE STUDY: IMPACT BANNER
============================================================ */
.impact-banner {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  overflow: hidden; margin: 32px 0;
}
.impact-stat {
  padding: 32px 28px; position: relative;
  display: flex; flex-direction: column; gap: 6px;
  border-right: 1px solid var(--border);
}
.impact-stat:last-child { border-right: none; }
.impact-num {
  font-family: var(--f-head); font-size: clamp(36px, 4.5vw, 52px); font-weight: 900;
  color: var(--project-accent); letter-spacing: -2px; line-height: 1; display: block;
}
.impact-label, .impact-desc {
  font-size: 12px; color: var(--text-2); margin-top: 6px; line-height: 1.5;
}
@media (max-width: 640px) {
  .impact-banner { grid-template-columns: 1fr 1fr; }
  .impact-stat + .impact-stat { border-left: none; border-top: 1px solid var(--border); }
  .impact-stat:nth-child(even) { border-left: 1px solid var(--border); }
}

/* ============================================================
   CASE STUDY: SECTIONS
============================================================ */
.cs-section { padding: 64px 0; border-bottom: 1px solid var(--border); }
.cs-section:last-child { border-bottom: none; }
.cs-section-label {
  font-size: 14px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1.5px; color: var(--accent); margin-bottom: 14px;
}
.cs-section h2 {
  font-family: var(--f-head); font-size: clamp(24px, 3vw, 36px);
  font-weight: 800; letter-spacing: -1px; line-height: 1.15;
  color: var(--text); margin-bottom: 20px;
}
.cs-section h3 {
  font-family: var(--f-head); font-size: 18px; font-weight: 700;
  color: var(--text); margin: 32px 0 10px;
}
.cs-section h3:first-child { margin-top: 0; }
.cs-section p { color: var(--text-2); margin-bottom: 16px; font-size: 16px; line-height: 1.85; }
.cs-section p:last-child { margin-bottom: 0; }
.cs-section ul, .cs-section ol {
  color: var(--text-2); padding-left: 20px;
  display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px;
}
.cs-section strong { color: var(--text); }

/* ============================================================
   CASE STUDY: TWO-COL
============================================================ */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; margin: 24px 0; }
@media (max-width: 700px) { .two-col { grid-template-columns: 1fr; gap: 24px; } }

/* ============================================================
   CASE STUDY: IMAGE PLACEHOLDER
============================================================ */
.img-placeholder {
  width: 100%; min-height: 240px; border-radius: var(--r-lg);
  background: var(--project-light); border: 1px dashed var(--border-h);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-3); font-size: 13px; font-style: italic; margin: 16px 0;
}

/* ============================================================
   CASE STUDY: CALLOUT
============================================================ */
.callout {
  background: rgba(var(--accent-rgb), 0.04);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--r-md) var(--r-md) 0; padding: 20px 24px; margin: 24px 0;
}
.callout p { color: var(--text) !important; font-weight: 500; margin: 0; line-height: 1.7; }
.callout strong { color: var(--accent); }

/* ============================================================
   CASE STUDY: RESULT GRID
============================================================ */
.result-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin: 24px 0; }
.result-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-md); padding: 24px;
  display: flex; flex-direction: column; gap: 6px;
  transition: border-color 200ms ease;
}
.result-card:hover { border-color: var(--border-h); }
.result-card .num {
  font-family: var(--f-head); font-size: 34px; font-weight: 900;
  color: var(--project-accent); letter-spacing: -1px; display: block; line-height: 1;
}
.result-card .desc { font-size: 13px; color: var(--text-2); margin-top: 6px; line-height: 1.5; }

/* ============================================================
   CASE STUDY: OUTCOME LIST (stacked editorial layout)
============================================================ */
.outcome-list {
  margin: 32px 0 0;
  border-top: 1px solid var(--border);
}
.outcome-row {
  padding: 32px 0;
  border-bottom: 1px solid var(--border);
}
.outcome-meta {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 18px;
}
.outcome-index {
  font-family: var(--f-body);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-2);
  letter-spacing: 0.5px;
  flex-shrink: 0;
}
.outcome-num {
  font-family: var(--f-head);
  font-size: clamp(32px, 3.4vw, 46px);
  font-weight: 800;
  font-style: italic;
  color: var(--project-accent);
  letter-spacing: -1.5px;
  line-height: 1;
}
.outcome-num .pct {
  font-size: 0.55em;
  font-weight: 700;
  letter-spacing: 0;
  margin-left: 1px;
}
.outcome-stat-label {
  font-family: var(--f-body);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  color: var(--project-accent);
}
.outcome-title {
  font-family: var(--f-head);
  font-size: 19px;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--text);
  letter-spacing: -0.2px;
  line-height: 1.35;
}
.outcome-desc {
  font-family: var(--f-body);
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.65;
  margin: 0;
  max-width: 68ch;
}
@media (max-width: 640px) {
  .outcome-meta { gap: 14px; }
  .outcome-num { font-size: 30px; }
}

/* ============================================================
   CASE STUDY: ARTEFACT FIGURE (research deliverable display)
============================================================ */
.artefact-figure {
  margin: 36px 0 12px;
}
.artefact-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--border);
  cursor: zoom-in;
  box-shadow:
    0 18px 40px -16px rgba(26, 23, 20, 0.14),
    0 3px 10px -2px rgba(26, 23, 20, 0.05);
  transition: transform 220ms ease, box-shadow 220ms ease;
}
.artefact-img:hover {
  transform: translateY(-2px);
  box-shadow:
    0 24px 50px -16px rgba(26, 23, 20, 0.18),
    0 4px 14px -2px rgba(26, 23, 20, 0.07);
}

/* Two-up paired artefact grid (persona + empathy, comparison charts, etc.) */
.artefact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 36px 0 12px;
}
.artefact-grid .artefact-figure { margin: 0; }
.artefact-grid figcaption {
  font-family: var(--f-body);
  font-size: 12px;
  font-style: italic;
  color: var(--text-2);
  margin-top: 10px;
  line-height: 1.5;
  text-align: center;
}
@media (max-width: 720px) {
  .artefact-grid { grid-template-columns: 1fr; gap: 28px; }
}

/* App-screen figure — centered portrait artefact, full image visible */
.screen-figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 36px 0;
}
.screen-figure img {
  display: block;
  width: 100%;
  max-width: 360px;
  height: auto;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--border);
  cursor: zoom-in;
  box-shadow:
    0 24px 48px -16px rgba(26, 23, 20, 0.18),
    0 4px 12px -2px rgba(26, 23, 20, 0.06);
  transition: transform 220ms ease, box-shadow 220ms ease;
}
.screen-figure img:hover {
  transform: translateY(-2px);
  box-shadow:
    0 30px 56px -16px rgba(26, 23, 20, 0.22),
    0 6px 16px -2px rgba(26, 23, 20, 0.08);
}
.screen-figure figcaption {
  font-family: var(--f-body);
  font-size: 13px;
  font-style: italic;
  color: var(--text-2);
  margin-top: 14px;
  line-height: 1.5;
  text-align: center;
  max-width: 56ch;
}

/* ============================================================
   CASE STUDY: VIDEO FRAME (browser-chrome mock)
============================================================ */
.video-figure {
  margin: 28px 0 36px;
}
.video-frame {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow:
    0 24px 48px -16px rgba(26, 23, 20, 0.12),
    0 4px 12px -2px rgba(26, 23, 20, 0.06);
}
.video-frame-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}
.video-frame-dots {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}
.video-frame-dots span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  display: block;
}
.video-frame-dots span:nth-child(1) { background: #FF5F57; }
.video-frame-dots span:nth-child(2) { background: #FEBC2E; }
.video-frame-dots span:nth-child(3) { background: #28C840; }
.video-frame-url {
  flex: 1;
  font-family: var(--f-body);
  font-size: 11px;
  font-weight: 500;
  color: var(--text-2);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 5px 14px;
  text-align: center;
  letter-spacing: 0.3px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 360px;
  margin: 0 auto;
}
.video-player {
  position: relative;
  line-height: 0;
}
.video-frame video {
  display: block;
  width: 100%;
  height: auto;
  background: #000;
  cursor: pointer;
}
.video-play-btn {
  position: absolute;
  bottom: 14px;
  right: 14px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 0;
  padding: 0;
  background: rgba(20, 18, 16, 0.62);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 220ms ease, transform 220ms ease, background 200ms ease;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.video-player:hover .video-play-btn,
.video-play-btn:focus-visible {
  opacity: 1;
  transform: translateY(0);
}
.video-play-btn:hover { background: rgba(20, 18, 16, 0.82); }
.video-play-btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.video-play-btn svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
  display: block;
}
.video-play-btn .icon-play { display: none; margin-left: 2px; }
.video-player.is-paused .video-play-btn { opacity: 1; transform: translateY(0); }
.video-player.is-paused .video-play-btn .icon-play { display: block; }
.video-player.is-paused .video-play-btn .icon-pause { display: none; }
.video-caption {
  font-family: var(--f-body);
  font-size: 13px;
  font-style: italic;
  color: var(--text-2);
  margin: 12px 4px 0;
  line-height: 1.5;
}
@media (max-width: 640px) {
  .video-figure { margin: 20px 0 28px; }
  .video-frame-bar { padding: 8px 10px; gap: 10px; }
  .video-frame-url { font-size: 10px; padding: 4px 10px; }
  .video-frame-dots span { width: 9px; height: 9px; }
}

/* ============================================================
   CASE STUDY: ROLE CHIPS
============================================================ */
.role-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.chip {
  font-size: 11px; font-weight: 600; padding: 6px 14px;
  border-radius: var(--r-xl); border: 1px solid var(--border);
  color: var(--text-2); letter-spacing: 0.3px;
  transition: border-color 200ms ease, color 200ms ease;
}
.chip:hover { border-color: var(--border-h); color: var(--text); }

/* ============================================================
   CASE STUDY: PROCESS STEPS
============================================================ */
.process-steps { display: flex; flex-direction: column; margin: 24px 0; }
.process-step {
  display: flex; gap: 20px; align-items: flex-start; padding: 20px 0;
  border-bottom: 1px solid var(--border);
}
.process-step:last-child { border-bottom: none; }
.step-num {
  font-family: var(--f-head); font-size: 12px; font-weight: 700;
  color: var(--project-accent); background: var(--project-light);
  width: 30px; height: 30px; min-width: 30px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-top: 2px; border: 1px solid rgba(var(--accent-rgb), 0.20);
}
.step-title { font-weight: 700; color: var(--text); margin-bottom: 6px; font-size: 15px; }
.step-desc { font-size: 14px; color: var(--text-2); line-height: 1.65; }

/* ============================================================
   CASE STUDY: PULL QUOTE
============================================================ */
.pull-quote {
  border-left: 2px solid var(--project-accent); padding: 20px 24px; margin: 28px 0;
  background: var(--surface); border-radius: 0 var(--r-md) var(--r-md) 0;
}
.pull-quote p {
  font-family: var(--f-head); font-size: clamp(16px, 2.2vw, 20px);
  font-weight: 600; color: var(--text) !important;
  line-height: 1.55; margin: 0 !important; letter-spacing: -0.3px;
}
.pull-quote cite {
  display: block; font-size: 12px; color: var(--text-3);
  font-style: normal; margin-top: 10px; letter-spacing: 0.5px;
}

/* ============================================================
   CASE STUDY: FAILS SECTION
============================================================ */
.fails-section {
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 40px; margin: 32px 0;
}
.fails-section h2 {
  font-family: var(--f-head); font-size: clamp(20px, 3vw, 28px);
  font-weight: 900; color: var(--text); margin-bottom: 6px; letter-spacing: -0.5px;
}
.fails-sub { font-size: 13px; color: var(--text-3); margin-bottom: 28px !important; }
.fail-item {
  border-top: 1px solid var(--border); padding: 24px 0;
  display: grid; grid-template-columns: 36px 1fr; gap: 16px; align-items: start;
}
.fail-item:first-of-type { border-top: none; }
.fail-icon {
  width: 36px; height: 36px; min-width: 36px; border-radius: var(--r-sm);
  background: var(--project-light); border: 1px solid rgba(var(--accent-rgb), 0.15);
  display: flex; align-items: center; justify-content: center; margin-top: 2px;
}
.fail-icon .material-icons-round { font-size: 18px; color: var(--project-accent); }
.fail-title { font-family: var(--f-head); font-weight: 700; color: var(--text); margin-bottom: 8px; font-size: 15px; }
.fail-body { font-size: 14px; color: var(--text-2); line-height: 1.75; }
@media (max-width: 600px) { .fails-section { padding: 24px; } }

/* ============================================================
   CASE STUDY: LIGHTBOX
============================================================ */
.lightbox {
  position: fixed; inset: 0; z-index: 9995; background: rgba(0,0,0,0.92);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  display: flex; align-items: center; justify-content: center; padding: 24px;
  opacity: 0; pointer-events: none; transition: opacity 300ms var(--ease);
}
.lightbox.active, .lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox-inner {
  position: relative; max-width: min(960px, 90vw); max-height: 90vh;
  border-radius: var(--r-lg); overflow: auto;
  transform: scale(0.95); transition: transform 300ms var(--ease);
}
.lightbox.active .lightbox-inner,
.lightbox.open .lightbox-inner { transform: scale(1); }
.lightbox-inner img, .lightbox-inner svg {
  max-width: 90vw; max-height: 85vh;
  border-radius: 12px; border: 1px solid var(--border); display: block;
}
.lightbox-close {
  position: fixed; top: 20px; right: 20px;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--surface); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--text-2);
  transition: color 200ms ease, border-color 200ms ease; font-size: 22px;
}
.lightbox-close:hover { color: var(--accent); border-color: var(--border-h); }
.lightbox-close .material-icons-round { font-size: 20px; }
[data-lightbox] { cursor: zoom-in; }
[data-lightbox]:hover { opacity: 0.9; }

/* ============================================================
   CASE STUDY: CTA
============================================================ */
.cs-cta {
  padding: 72px 0; display: flex; flex-direction: column;
  align-items: center; gap: 16px; text-align: center;
}
.cs-cta h2 {
  font-family: var(--f-head); font-size: clamp(28px, 4vw, 48px);
  font-weight: 900; letter-spacing: -1.5px; color: var(--text);
}
.cs-cta p { color: var(--text-2); max-width: 480px; }
.cs-cta-eyebrow { font-size: 14px; color: var(--text-3); margin-bottom: 4px; }
/* === BUTTONS — single shared system ============================
   Two visual variants: .btn-primary (filled) and .btn-ghost (outlined).
   Both share size, shape, motion. .btn-sm is the size modifier for
   header / dense placements. Hover always lands on the page accent. */
.btn-primary,
.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--f-body);
  font-size: 15px; font-weight: 600;
  padding: 14px 28px;
  border-radius: var(--r-xl);
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  transition: background 200ms ease, color 200ms ease, border-color 200ms ease, transform 200ms ease;
}
.btn-primary {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
  font-weight: 700;
}
.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  transform: translateY(-1px);
}
.btn-ghost {
  background: transparent;
  color: var(--text-2);
  border-color: var(--border);
}
.btn-ghost:hover {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
  transform: translateY(-1px);
}
.btn-sm {
  font-size: 13px;
  padding: 8px 20px;
}
.cta-btns { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

/* ============================================================
   CASE STUDY: REVEAL & IMAGE
============================================================ */
.reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity 600ms var(--ease), transform 600ms var(--ease);
}
.reveal.visible { opacity: 1; transform: none; }
.delay-1 { transition-delay: 80ms; }
.delay-2 { transition-delay: 160ms; }
.delay-3 { transition-delay: 240ms; }

.cs-img { width: 100%; border-radius: 12px; display: block; margin: 16px 0; object-fit: contain; }

/* ============================================================
   CASE STUDY: RESPONSIVE
============================================================ */
@media (max-width: 600px) {
  .cs-hero { padding: 88px 0 48px; }
  .cs-title { font-size: clamp(36px, 11vw, 64px); letter-spacing: -2px; }
  .cs-section { padding: 40px 0; }
}

/* ============================================================
   CASE STUDY: PREV-NAV (LearningBox)
============================================================ */
.cs-nav {
  display: flex; justify-content: space-between;
  padding: 48px 0; flex-wrap: wrap; gap: 16px;
}
.cs-nav a {
  font-size: 13px; font-weight: 600; color: var(--text-2);
  border: 1px solid var(--border); padding: 10px 20px; border-radius: 999px;
  transition: color 200ms ease, border-color 200ms ease;
}
.cs-nav a:hover { color: var(--accent); border-color: var(--border-h); }

/* ============================================================
   MOODLET: UNIQUE COMPONENTS
============================================================ */
.mood-grid {
  display: grid; grid-template-columns: repeat(7, 1fr);
  gap: 8px; padding: 24px; position: relative; z-index: 1;
}
.mood-dot {
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 16px;
}
.research-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-md); padding: 20px;
}
.research-card h4 {
  font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1px; margin-bottom: 12px;
}
.research-card h4.wants { color: var(--project-accent); }
.research-card h4.pains { color: #F87171; }
.research-card ul { padding-left: 16px; display: flex; flex-direction: column; gap: 8px; }
.research-card li { font-size: 14px; color: var(--text-2); }

/* ============================================================
   PEDULI: UNIQUE COMPONENTS
============================================================ */
.context-note {
  background: rgba(var(--accent-rgb), 0.07); border: 1px solid rgba(var(--accent-rgb), 0.22);
  border-radius: var(--r-md); padding: 16px 20px; margin-bottom: 32px;
  font-size: 13px; color: var(--text-2);
}
.context-note strong { color: var(--accent); }

/* ============================================================
   SMART SHOPPER: UNIQUE COMPONENTS
============================================================ */
.hero-visual-inner {
  display: flex; gap: 16px; align-items: flex-end; padding: 24px;
  position: relative; z-index: 1;
}
.phone-mock {
  width: 120px; height: 220px; background: rgba(255,255,255,0.06);
  border-radius: 20px; overflow: hidden; flex-shrink: 0;
  box-shadow: 0 20px 40px rgba(0,0,0,0.5); border: 1px solid rgba(255,255,255,0.1);
}
.phone-mock-screen { height: 100%; padding: 14px 10px; background: rgba(255,255,255,0.04); }
.phone-mock-bar { height: 6px; border-radius: 3px; margin-bottom: 10px; }
.phone-mock-bar.green { background: #3D8E61; width: 60%; }
.phone-mock-bar.light { background: rgba(255,255,255,0.1); }
.phone-mock-bar.light.w80 { width: 80%; }
.phone-mock-bar.light.w50 { width: 50%; }
.phone-mock-list { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.phone-mock-item {
  height: 36px; background: rgba(var(--accent-rgb), 0.15);
  border-radius: 8px; border-left: 2px solid var(--accent);
}
.phone-mock-item.alt { border-left-color: var(--accent); background: rgba(var(--accent-rgb), 0.08); }

/* ============================================================
   AI PROJECT: UNIQUE COMPONENTS
============================================================ */
.terminal {
  background: #0A0A0C; border: 1.5px solid rgba(var(--accent-rgb), 0.20);
  border-radius: var(--r-md); padding: 24px; margin: 24px 0;
  font-family: 'Courier New', monospace; font-size: 13px;
  line-height: 1.8; overflow-x: auto;
}
.terminal .prompt { color: var(--accent); }
.terminal .cmd { color: #F5F5F6; }
.terminal .comment { color: var(--text-3); font-style: italic; }
.terminal .out { color: #6EE7B7; }

.project-cards {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px; margin: 24px 0;
}
.project-card {
  background: var(--surface-2); border: 1.5px solid var(--border);
  border-radius: var(--r-md); padding: 24px;
  transition: border-color 300ms ease, transform 300ms ease;
}
.project-card:hover { border-color: rgba(var(--accent-rgb), 0.30); transform: translateY(-2px); }
.project-card-label {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1px; color: var(--accent); margin-bottom: 10px;
}
.project-card h4 {
  font-family: var(--f-head); font-size: 18px; font-weight: 800;
  color: var(--text); margin-bottom: 8px; letter-spacing: -0.3px;
}
.project-card p { font-size: 13px; color: var(--text-2); line-height: 1.6; margin: 0; }
.project-card .stack { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.project-card .stack-tag {
  font-size: 11px; font-weight: 600; padding: 3px 10px;
  border-radius: var(--r-xl); background: rgba(255,255,255,0.05);
  border: 1px solid var(--border); color: var(--text-3);
}

.insight {
  font-family: var(--f-head); font-size: clamp(20px, 3vw, 28px);
  font-weight: 800; color: var(--text); letter-spacing: -0.5px;
  line-height: 1.35; padding: 40px 32px; margin: 32px 0; position: relative;
  background: rgba(var(--accent-rgb), 0.04);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--r-md) var(--r-md) 0;
}
.insight::before {
  content: '"'; font-size: 80px; color: var(--accent); opacity: 0.3;
  font-family: Georgia, serif; line-height: 0.5;
  position: absolute; top: 32px; left: -8px;
}

/* ============================================================
   FAB SCROLL-TO-TOP
============================================================ */
.fab-top {
  position: fixed; bottom: 32px; right: 32px; z-index: 200;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--surface); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-2); cursor: pointer;
  opacity: 0; transform: translateY(16px); pointer-events: none;
  transition: opacity 300ms ease, transform 300ms ease, background 200ms ease, border-color 200ms ease;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}
.fab-top.visible { opacity: 1; transform: none; pointer-events: auto; }
.fab-top:hover { background: rgba(var(--accent-rgb), 0.10); color: var(--accent); border-color: var(--border-h); }
.fab-top .material-icons-round { font-size: 20px; }

/* ============================================================
   FOOTER
============================================================ */
.footer { border-top: 1px solid var(--border); padding: 28px 0; }

/* Portfolio footer */
.footer-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
}
.footer-brand { font-family: var(--f-head); font-size: 15px; font-weight: 900; color: var(--text); }
.footer-brand em, .footer-brand span { font-style: normal; color: var(--accent); }
.footer-copy { font-size: 12px; color: var(--text-3); }
.footer-top {
  font-size: 12px; color: var(--text-3); transition: color 200ms ease;
  display: flex; align-items: center; gap: 6px;
}
.footer-top:hover { color: var(--accent); }

/* Case study footer */
[data-project] .footer {
  padding: 32px 0; text-align: center; font-size: 13px; color: var(--text-3);
}
[data-project] .footer a { color: var(--accent); }
[data-project] .footer a:hover { text-decoration: underline; }

/* ============================================================
   ACCENT RHYTHM
   Drop-in classes for text-only sections that need visual interest.
   They pick up the page's --accent automatically.
============================================================ */
.cs-section--accent {
  position: relative;
  padding-left: 24px;
  border-left: 3px solid var(--accent);
  margin-left: 4px;
}
/* Full-bleed tinted band — gradient ramps stronger toward the bottom.
   The pseudo-element extends to 100vw via negative side margins; the
   parent isolates so the negative z-index stays inside this section. */
.cs-section--tinted {
  position: relative;
  isolation: isolate;
  padding: 80px 0 96px;
  margin: 56px 0;
}
.cs-section--tinted::before {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  width: 100vw;
  margin-left: -50vw;
  background: linear-gradient(180deg,
    rgba(var(--accent-rgb), 0) 0%,
    rgba(var(--accent-rgb), 0.02) 35%,
    rgba(var(--accent-rgb), 0.05) 75%,
    rgba(var(--accent-rgb), 0.08) 100%);
  z-index: -1;
}
.cs-section--tinted .cs-section-label { color: var(--accent); }

.accent-numeral {
  font-family: var(--f-head);
  font-weight: 900;
  font-size: clamp(60px, 8vw, 96px);
  letter-spacing: -3px;
  line-height: 1;
  color: var(--accent);
  opacity: 0.9;
  margin-bottom: 12px;
  display: block;
}

.accent-divider {
  display: block;
  width: 56px;
  height: 3px;
  background: var(--accent);
  margin: 32px 0;
  border: 0;
}

/* ============================================================
   AI HERO PARTICLE CANVAS + TERMINAL WRAPPER
============================================================ */
.ai-particle-canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
}
.hero-terminal-wrap {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  z-index: 2;
}

/* ============================================================
   TERMINAL WINDOW — macOS-style code surface
   Used in AI Fluency hero. Stays dark on purpose, even in light theme.
============================================================ */
.terminal-window {
  background: rgba(10, 10, 12, 0.92);
  border: 1.5px solid rgba(255, 255, 255, 0.10);
  border-radius: 12px;
  padding: 24px 32px;
  max-width: 480px;
  width: calc(100% - 48px);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.5);
}
.terminal-window__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}
.terminal-window__dot {
  width: 10px; height: 10px; border-radius: 50%;
}
.terminal-window__dot--r { background: #FF5F57; }
.terminal-window__dot--y { background: #FFBD2E; }
.terminal-window__dot--g { background: #28CA41; }
.terminal-window__title {
  margin-left: 8px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.4);
  font-family: monospace;
}
.terminal-window__body {
  font-family: monospace;
  font-size: 13px;
  line-height: 2;
  color: #F5F5F6;
}
.terminal-window__body .term-arrow { color: var(--accent); }
.terminal-window__body .term-token { color: #6EE7B7; }
.terminal-window__body .term-out   { color: #FCD34D; }

/* ============================================================
   PHONE FRAME — vertical video / screenshot container
============================================================ */
.phone-frame-wrap {
  display: flex;
  justify-content: center;
  padding: 32px 0 16px;
}
.phone-frame {
  position: relative;
  background: #0A0A0C;
  border: 1px solid rgba(var(--accent-rgb), 0.22);
  border-radius: 38px;
  padding: 12px;
  box-shadow:
    0 40px 80px -30px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 0 80px -20px rgba(var(--accent-rgb), 0.18);
  max-width: 300px;
  width: 100%;
}
.phone-frame__speaker {
  position: absolute;
  top: 22px; left: 50%;
  transform: translateX(-50%);
  width: 54px; height: 4px;
  background: rgba(var(--accent-rgb), 0.30);
  border-radius: 3px;
  z-index: 2;
}
.phone-frame video,
.phone-frame img {
  width: 100%;
  display: block;
  border-radius: 28px;
  background: #000;
}
.phone-frame-caption {
  font-size: 13px;
  color: var(--text-3);
  margin-top: 12px;
  text-align: center;
}

/* ============================================================
   RESUME PAGE
   Single-column scannable layout. Lifted from resume.html so all
   styles live here. Type scale: display, heading (18px), subhead
   (14px), body (16px), caption (13px), meta (12px), eyebrow (11px).
============================================================ */
.resume-page { max-width: 820px; margin: 0 auto; padding: 64px 32px 80px; }

@media (max-width: 640px) {
  .resume-page { padding: 40px 20px 64px; }
}

/* ── Header ────────────────────────────────── */
.resume-header {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: end;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 40px;
}
.resume-name {
  font-family: var(--f-head);
  font-size: clamp(36px, 6vw, 56px);
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1;
  color: var(--text);
  margin: 0 0 8px;
}
.resume-role {
  font-family: var(--f-body);
  font-size: 16px;
  font-weight: 500;
  color: var(--text-2);
  margin: 0 0 14px;
}
.resume-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  font-size: 13px;
  color: var(--text-2);
  list-style: none;
  padding: 0;
  margin: 0;
}
.resume-contact li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.resume-contact a {
  color: var(--text-2);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 200ms ease, border-color 200ms ease;
}
.resume-contact a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
.resume-contact .material-icons-round {
  font-size: 14px;
  color: var(--text-3);
}
.resume-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .resume-header { grid-template-columns: 1fr; }
  .resume-actions { justify-content: flex-start; }
}

/* ── Summary ───────────────────────────────── */
.resume-summary {
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-2);
  margin: 0 0 48px;
  max-width: 68ch;
}
.resume-summary strong { color: var(--text); font-weight: 600; }

/* ── Section ───────────────────────────────── */
.resume-section { margin-bottom: 44px; }
.resume-section:last-of-type { margin-bottom: 0; }

/* Eyebrow — shared treatment, two color variants */
.resume-section-label,
.skills-grid dt {
  font-family: var(--f-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  line-height: 1.4;
  margin: 0;
}
.resume-section-label {
  color: var(--accent);
  display: block;
  margin: 0 0 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

/* ── Experience item ───────────────────────── */
.exp-item { padding: 20px 0; }
.exp-item + .exp-item { border-top: 1px solid var(--border); }

.exp-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 16px;
  margin-bottom: 4px;
}
/* Heading — item titles (job role, degree) */
.exp-role,
.edu-degree {
  font-family: var(--f-head);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.3px;
  line-height: 1.3;
  color: var(--text);
  margin: 0;
}
/* Meta — periods, dates */
.exp-period,
.edu-period {
  font-family: var(--f-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.4px;
  color: var(--text-3);
  white-space: nowrap;
}
/* Subhead — company, school */
.exp-company,
.edu-school {
  font-family: var(--f-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--accent);
  margin: 0 0 6px;
}
.exp-stages {
  font-family: var(--f-body);
  font-size: 12px;
  font-weight: 400;
  color: var(--text-3);
  line-height: 1.55;
  margin: 0 0 14px;
}
.exp-stages span + span::before {
  content: " · ";
  color: var(--border);
}
/* Body — descriptions, bullets, notes */
.exp-desc,
.exp-bullets li,
.edu-note {
  font-family: var(--f-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--text-2);
}
.exp-desc { margin: 0 0 12px; }
.edu-note { margin: 6px 0 0; }
.exp-bullets {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.exp-bullets li {
  padding-left: 18px;
  position: relative;
}
.exp-bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.6;
}

/* ── Education item ────────────────────────── */
.edu-item { padding: 20px 0; }
.edu-item + .edu-item { border-top: 1px solid var(--border); }
.edu-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 16px;
  margin-bottom: 4px;
}

/* ── Skills grid ───────────────────────────── */
.skills-grid {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 14px 24px;
  align-items: baseline;
}
@media (max-width: 540px) {
  .skills-grid { grid-template-columns: 1fr; gap: 4px 0; }
  .skills-grid dt { margin-top: 12px; }
  .skills-grid dt:first-child { margin-top: 0; }
}
.skills-grid dt {
  color: var(--text-3);
  padding: 6px 0;
}
/* Skill list values, also used by the standalone personal-skills paragraph */
.skills-grid dd,
.resume-skill-text {
  font-family: var(--f-body);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--text-2);
  margin: 0;
}
.skills-grid dd { padding: 6px 0; }

/* ── Languages ─────────────────────────────── */
.lang-row {
  display: flex;
  flex-wrap: wrap;
  gap: 28px 36px;
}
.lang-row > div { display: flex; flex-direction: column; gap: 2px; }
.lang-row strong {
  font-family: var(--f-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}
.lang-row span {
  font-family: var(--f-body);
  font-size: 12px;
  font-weight: 400;
  color: var(--text-3);
}

/* ── Resume footer ─────────────────────────── */
.resume-footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
  margin-top: 40px;
}
.resume-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.resume-footer-copy {
  font-size: 12px;
  color: var(--text-3);
}

/* ── Print / PDF ───────────────────────────── */
@media print {
  @page { size: A4; margin: 14mm 14mm 16mm; }
  html, body {
    background: #fff !important;
    color: #111 !important;
    font-size: 11pt;
  }
  body * { box-shadow: none !important; }
  .header,
  .nav,
  .resume-actions,
  .scroll-hint,
  .c-ring,
  .c-dot,
  .grain,
  footer { display: none !important; }
  .resume-page { padding: 0 !important; max-width: none !important; }
  .resume-header {
    grid-template-columns: 1fr;
    border-bottom: 1px solid #ccc;
    margin-bottom: 18px;
    padding-bottom: 14px;
  }
  .resume-name { font-size: 28pt; letter-spacing: -1px; }
  .resume-role { font-size: 11pt; margin-bottom: 8px; }
  .resume-contact { font-size: 9.5pt; gap: 4px 14px; color: #333; }
  .resume-contact a { color: #333 !important; border-bottom: none !important; }
  .resume-contact .material-icons-round { font-size: 11pt; color: #888; }
  .resume-summary { font-size: 10.5pt; line-height: 1.55; margin-bottom: 22px; color: #333; }
  .resume-section { margin-bottom: 22px; page-break-inside: avoid; }
  .resume-section-label {
    font-size: 9pt;
    color: var(--accent);
    border-bottom: 1px solid #ccc;
    padding-bottom: 5px;
    margin-bottom: 12px;
    letter-spacing: 1.8px;
  }
  .exp-item, .edu-item { padding: 10px 0; page-break-inside: avoid; }
  .exp-item + .exp-item, .edu-item + .edu-item { border-top: 1px solid #e6e6e6; }
  .exp-role, .edu-degree { font-size: 12pt; }
  .exp-period, .edu-period { font-size: 9pt; }
  .exp-company, .edu-school { font-size: 10pt; }
  .exp-stages { font-size: 9pt; margin-bottom: 6px; }
  .exp-desc { font-size: 10pt; line-height: 1.5; margin-bottom: 6px; color: #333; }
  .exp-bullets li { font-size: 10pt; line-height: 1.5; padding-left: 14px; color: #333; }
  .exp-bullets li::before { background: var(--accent); opacity: 1; width: 4px; height: 4px; top: 7px; }
  .skills-grid { font-size: 10pt; gap: 8px 16px; }
  .skills-grid dt { font-size: 9pt; padding: 2px 0; }
  .skills-grid dd { font-size: 10pt; padding: 2px 0; }
  .lang-row { font-size: 10pt; gap: 14px 28px; }
  .lang-row strong { font-size: 10pt; }
  .lang-row span { font-size: 9pt; color: #888; }
  a { color: inherit !important; text-decoration: none !important; }
}

/* ============================================================
   REDUCED MOTION
============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .hero-line-inner, .fade-up, .hero-desc, .hero-metrics { transform: none !important; opacity: 1 !important; }
  .marquee-track { animation: none; }
  html { scroll-behavior: auto; }
}
