/* =========================================================
   Prawira Hadi Fitrajaya — Portfolio
   Design language: Apple "Liquid Glass" · strict HIG
   - SF Pro system typography (HIG type scale)
   - Adaptive light / dark, respects reduce-transparency + motion
   - Colorful ambient mesh wallpaper refracted by frosted glass
   - Concentric corner radii · specular edges · pointer-reactive sheen
   ========================================================= */

/* ---------------- Design tokens ---------------- */
:root {
  color-scheme: light dark;

  /* HIG system palette (light) — warm editorial cream base (ref: raymondchins.com) */
  --label: #17140f;
  --label-2: rgba(40, 34, 26, 0.64);
  --label-3: rgba(40, 34, 26, 0.42);
  --separator: rgba(40, 34, 26, 0.14);
  --bg: #f6f4f1;
  --blue: #007aff;
  --blue-press: #0060df;
  --on-accent: #ffffff;

  /* Liquid Glass materials (light) */
  --glass-fill: rgba(255, 255, 255, 0.5);
  --glass-fill-thick: rgba(255, 255, 255, 0.7);
  --glass-fill-thin: rgba(255, 255, 255, 0.34);
  --glass-border: rgba(255, 255, 255, 0.72);
  --glass-blur: 30px;
  --specular-top: rgba(255, 255, 255, 0.9);
  --specular-bot: rgba(120, 90, 60, 0.06);
  --panel-shadow: 0 10px 40px -12px rgba(60, 45, 30, 0.22), 0 2px 8px -4px rgba(60, 45, 30, 0.14);
  --sheen: rgba(255, 255, 255, 0.6);

  /* Wallpaper blobs (light) — warm cream editorial wash */
  --w1: #ffd9b0;   /* peach */
  --w2: #f3c6d4;   /* rose */
  --w3: #cfe0ff;   /* soft blue */
  --w4: #ffe9c2;   /* butter */
  --w5: #e7dcc8;   /* sand */
  --wall-bg: #f2ede5;

  /* HIG type scale (17px body baseline) — editorial display sizes */
  --t-large: clamp(2.9rem, 1.5rem + 6vw, 5.5rem);
  --t-title1: clamp(2.1rem, 1.3rem + 3.2vw, 3.4rem);
  --t-title2: 1.5rem;
  --t-title3: 1.25rem;
  --t-headline: 1.0625rem;
  --t-body: 1.0625rem;   /* 17px */
  --t-callout: 1rem;
  --t-subhead: 0.9375rem;
  --t-footnote: 0.8125rem;
  --t-caption: 0.75rem;

  /* 8pt spacing */
  --s1: 0.5rem;  --s2: 1rem;  --s3: 1.5rem;  --s4: 2rem;
  --s5: 3rem;    --s6: 4rem;  --s7: 6rem;

  /* Concentric radii */
  --r-panel: 28px;
  --r-inner: 20px;
  --r-chip: 12px;
  --r-pill: 999px;

  --maxw: 1080px;
  --ease: cubic-bezier(0.32, 0.72, 0, 1);        /* HIG-ish spring ease */
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);

  /* Apple HIG system type */
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display",
          system-ui, "Helvetica Neue", sans-serif;
  --serif: ui-serif, "New York", "SF Pro", "Iowan Old Style", "Palatino", Georgia, serif;   /* Apple New York — editorial accent */
  --mono: ui-monospace, "SF Mono", "SFMono-Regular", Menlo, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --label: #f4efe7;
    --label-2: rgba(240, 232, 220, 0.62);
    --label-3: rgba(240, 232, 220, 0.4);
    --separator: rgba(120, 110, 96, 0.5);
    --bg: #0c0b09;
    --blue: #0a84ff;
    --blue-press: #409cff;

    --glass-fill: rgba(255, 250, 242, 0.07);
    --glass-fill-thick: rgba(38, 34, 28, 0.55);
    --glass-fill-thin: rgba(255, 250, 242, 0.05);
    --glass-border: rgba(255, 248, 238, 0.14);
    --specular-top: rgba(255, 250, 242, 0.32);
    --specular-bot: rgba(0, 0, 0, 0.2);
    --panel-shadow: 0 16px 50px -14px rgba(0, 0, 0, 0.72), 0 2px 8px -4px rgba(0, 0, 0, 0.5);
    --sheen: rgba(255, 250, 242, 0.2);

    --w1: #7a4a1f;
    --w2: #8a2f52;
    --w3: #244a8a;
    --w4: #7a5a1f;
    --w5: #4a3f2a;
    --wall-bg: #0c0b09;
  }
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-size: var(--t-body);
  line-height: 1.5;
  color: var(--label);
  background: var(--wall-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  letter-spacing: -0.011em;   /* SF optical tightening */
  text-wrap: pretty;          /* avoid orphans in body copy */
}

a { color: inherit; text-decoration: none; }
.mono { font-family: var(--mono); font-feature-settings: "tnum"; letter-spacing: 0; }
.dim { color: var(--label-3); }
::selection { background: color-mix(in srgb, var(--blue) 26%, transparent); }

:focus-visible {
  outline: 2.5px solid var(--blue);
  outline-offset: 3px;
  border-radius: 6px;
}

/* =========================================================
   LIQUID WALLPAPER — colorful mesh the glass refracts
   ========================================================= */
.wallpaper {
  position: fixed; inset: -20%; z-index: -2; pointer-events: none;
  background:
    radial-gradient(38% 46% at 18% 22%, var(--w1), transparent 60%),
    radial-gradient(34% 40% at 82% 16%, var(--w2), transparent 62%),
    radial-gradient(40% 42% at 74% 78%, var(--w3), transparent 60%),
    radial-gradient(36% 44% at 22% 82%, var(--w4), transparent 60%),
    radial-gradient(30% 36% at 52% 50%, var(--w5), transparent 60%);
  filter: blur(60px) saturate(140%);
  opacity: 0.9;
  animation: drift 34s var(--ease-soft) infinite alternate;
}
@media (prefers-color-scheme: dark) { .wallpaper { opacity: 0.55; } }
@keyframes drift {
  0%   { transform: translate3d(0,0,0) scale(1); }
  50%  { transform: translate3d(2%, -1.5%, 0) scale(1.08); }
  100% { transform: translate3d(-2%, 2%, 0) scale(1.04); }
}
/* fine noise to kill banding in the blur */
.grain {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* =========================================================
   GLASS — the core Liquid Glass material
   ========================================================= */
.glass {
  position: relative;
  background: var(--glass-fill);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(180%);
          backdrop-filter: blur(var(--glass-blur)) saturate(180%);
  border: 0.5px solid var(--glass-border);
  box-shadow:
    inset 0 1px 0 var(--specular-top),      /* top specular rim */
    inset 0 -1px 0 var(--specular-bot),     /* soft bottom rim */
    var(--panel-shadow);
  overflow: hidden;
}
/* pointer-reactive specular sheen (the "liquid" highlight) */
.glass::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(
    240px circle at var(--mx, 50%) var(--my, -10%),
    var(--sheen), transparent 60%);
  opacity: 0; transition: opacity 0.5s var(--ease-soft);
  mix-blend-mode: screen;
}
.glass:hover::after { opacity: 1; }
.glass > * { position: relative; z-index: 1; }

/* Reduce-transparency fallback (HIG accessibility) */
@media (prefers-reduced-transparency: reduce) {
  .glass { backdrop-filter: none; -webkit-backdrop-filter: none;
    background: color-mix(in srgb, var(--wall-bg) 82%, var(--label) 4%); }
  .wallpaper { filter: none; opacity: 0.4; }
}

/* =========================================================
   TYPOGRAPHY (HIG)
   ========================================================= */
h1, h2, h3, h4 { font-weight: 600; letter-spacing: -0.02em; line-height: 1.08; text-wrap: balance; }

/* Editorial serif italic accent inside headlines — Apple New York (ui-serif).
   Pairs a HIG editorial voice with SF Pro's iOS identity. */
.accent {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  letter-spacing: -0.01em;
  /* New York sits near text-size optically — small nudge to match SF display */
  font-size: 1.04em;
  line-height: 1;
}
.accent.grad {
  background: linear-gradient(115deg, var(--blue), #af52de 55%, #ff2d55);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.large-title { font-size: var(--t-large); font-weight: 700; letter-spacing: -0.035em; line-height: 1.02; }
.title-1 { font-size: var(--t-title1); font-weight: 700; letter-spacing: -0.028em; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: var(--t-caption); font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--label-2);
}

/* =========================================================
   NAV — floating glass capsule (Dynamic Island feel)
   ========================================================= */
.nav {
  position: fixed; top: 14px; left: 50%; transform: translateX(-50%);
  z-index: 100; width: min(94%, var(--maxw));
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 8px 8px 18px;
  border-radius: var(--r-pill);
  transition: transform 0.55s var(--ease), opacity 0.4s var(--ease);
}
.nav.hide { transform: translateX(-50%) translateY(-150%); opacity: 0; }
.nav__brand { display: flex; align-items: center; gap: 0.55rem; font-weight: 600; font-size: var(--t-callout); }
.nav__mark {
  width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center;
  background: linear-gradient(160deg, #5ac8fa, var(--blue));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.6), 0 2px 6px rgba(0,122,255,0.4);
}
.nav__mark svg { width: 15px; height: 15px; }
.nav__name .dim { color: var(--label-3); font-weight: 500; }

.nav__links { display: flex; align-items: center; gap: 2px; }
.nav__links a {
  padding: 8px 14px; font-size: var(--t-subhead); font-weight: 500; color: var(--label-2);
  border-radius: var(--r-pill); transition: color 0.3s var(--ease), background 0.3s var(--ease);
}
.nav__links a:hover { color: var(--label); background: color-mix(in srgb, var(--label) 8%, transparent); }
.nav__cta {
  color: var(--on-accent) !important; font-weight: 600;
  background: var(--blue);
  padding: 9px 10px 9px 16px !important;
  display: inline-flex; align-items: center; gap: 8px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.4), 0 4px 14px -4px rgba(0,122,255,0.6);
  transition: transform 0.4s var(--ease), background 0.3s var(--ease);
}
.nav__cta:hover { background: var(--blue-press) !important; }
.nav__cta:active { transform: scale(0.96); }
.nav__cta-ico { width: 22px; height: 22px; border-radius: var(--r-pill);
  background: rgba(255,255,255,0.22); display: grid; place-items: center; }

.nav__wa {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; font-size: var(--t-subhead); font-weight: 500; color: var(--label-2);
  border-radius: var(--r-pill); transition: color 0.3s var(--ease), background 0.3s var(--ease);
}
.nav__wa svg { color: #25d366; flex-shrink: 0; }
.nav__wa:hover { color: var(--label); background: color-mix(in srgb, var(--label) 8%, transparent); }

.nav__burger { display: none; width: 40px; height: 40px; border-radius: var(--r-pill);
  border: none; background: color-mix(in srgb, var(--label) 8%, transparent);
  cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.nav__burger span { display: block; width: 17px; height: 1.6px; border-radius: 2px; background: var(--label);
  transition: transform 0.4s var(--ease), opacity 0.3s var(--ease); }
.nav__burger[aria-expanded="true"] span:first-child { transform: translateY(3.3px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:last-child { transform: translateY(-3.3px) rotate(-45deg); }

/* Mobile overlay */
.menu {
  position: fixed; inset: 0; z-index: 90;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  background: color-mix(in srgb, var(--wall-bg) 60%, transparent);
  -webkit-backdrop-filter: blur(30px) saturate(160%); backdrop-filter: blur(30px) saturate(160%);
  opacity: 0; pointer-events: none; transition: opacity 0.5s var(--ease);
}
.menu.open { opacity: 1; pointer-events: auto; }
.menu a { font-size: clamp(2rem, 8vw, 3rem); font-weight: 600; letter-spacing: -0.03em;
  opacity: 0; transform: translateY(30px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.menu.open a { opacity: 1; transform: none; transition-delay: calc(var(--i) * 0.06s + 0.08s); }

/* Scroll progress */
.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 101; }
.scroll-progress span { display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, #5ac8fa, var(--blue)); border-radius: 0 2px 2px 0; }

/* =========================================================
   BUTTONS (iOS)
   ========================================================= */
.btn {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-size: var(--t-headline); font-weight: 600;
  padding: 14px 16px 14px 22px; border-radius: var(--r-pill);
  transition: transform 0.4s var(--ease), background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.btn:active { transform: scale(0.96); }
.btn--primary { color: var(--on-accent); background: var(--blue);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.4), 0 8px 24px -8px rgba(0,122,255,0.7); }
.btn--primary:hover { background: var(--blue-press); box-shadow: inset 0 1px 0 rgba(255,255,255,0.4), 0 12px 30px -8px rgba(0,122,255,0.8); }
.btn__ico { width: 28px; height: 28px; border-radius: var(--r-pill);
  background: rgba(255,255,255,0.22); display: grid; place-items: center; transition: transform 0.4s var(--ease); }
.btn--primary:hover .btn__ico { transform: translate(2px, -2px); }
.btn--ghost { color: var(--label); padding: 14px 22px;
  background: var(--glass-fill-thin);
  -webkit-backdrop-filter: blur(20px) saturate(160%); backdrop-filter: blur(20px) saturate(160%);
  border: 0.5px solid var(--glass-border);
  box-shadow: inset 0 1px 0 var(--specular-top); }
.btn--ghost:hover { background: var(--glass-fill); }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  max-width: var(--maxw); margin: 0 auto;
  min-height: 100dvh; display: flex; flex-direction: column; justify-content: center;
  padding: 9rem 24px 5rem; position: relative;
}
.hero__inner { max-width: 680px; }
.hero__title { font-size: var(--t-large); font-weight: 700; letter-spacing: -0.04em; line-height: 0.98;
  margin: 1.2rem 0; }
.hero__title span { display: block; }
.hero__title .accent.grad, .hero__title .grad {
  background: linear-gradient(115deg, var(--blue), #5e5ce6 55%, #af52de);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.hero__lede { font-size: clamp(1.0625rem, 0.9rem + 0.8vw, 1.4rem); color: var(--label-2);
  max-width: 620px; margin-bottom: 2rem; line-height: 1.5; }
.hero__lede strong { color: var(--label); font-weight: 600; }
.hero__actions { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-bottom: 3rem; }

.hero__stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px;
  padding: 6px; border-radius: var(--r-panel); max-width: 680px;
}
.stat { padding: 18px 20px; border-radius: 22px;   /* concentric: 28 panel − 6 padding */
  background: var(--glass-fill-thin); display: flex; flex-direction: column; gap: 2px; }
.stat b { font-size: clamp(1.4rem, 1rem + 1.4vw, 2rem); font-weight: 700; letter-spacing: -0.03em;
  font-family: var(--mono); font-variant-numeric: tabular-nums; }
.stat span { font-size: var(--t-footnote); color: var(--label-2); font-weight: 500; }

.hero__scroll { position: absolute; bottom: 28px; left: 24px; display: flex; align-items: center; gap: 0.6rem;
  font-size: var(--t-caption); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--label-3); }
.hero__scroll-line { width: 34px; height: 1.5px; background: var(--label-3); position: relative; overflow: hidden; border-radius: 2px; }
.hero__scroll-line::after { content: ""; position: absolute; inset: 0; width: 50%; background: var(--blue);
  border-radius: 2px; animation: scrollLine 2s var(--ease) infinite; }
@keyframes scrollLine { 0% { transform: translateX(-110%);} 100% { transform: translateX(210%);} }

/* =========================================================
   MARQUEE — glass strip
   ========================================================= */
.marquee { max-width: var(--maxw); margin: 0 auto 5rem; border-radius: var(--r-pill);
  overflow: hidden; padding: 14px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { display: flex; gap: 1.4rem; width: max-content; animation: marquee 36s linear infinite; }
.marquee__track span { font-size: var(--t-callout); font-weight: 500; color: var(--label-2); white-space: nowrap; }
.marquee__track .dot { color: var(--blue); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* =========================================================
   SECTIONS
   ========================================================= */
section { max-width: var(--maxw); margin: 0 auto; padding: 5rem 24px; }
.section-head { max-width: 680px; margin-bottom: 3rem; }
.tag { display: inline-block; font-size: var(--t-caption); font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--blue); margin-bottom: 0.9rem; }
.section-head h2 { font-size: var(--t-title1); font-weight: 700; letter-spacing: -0.028em; line-height: 1.06; }
.section-sub { margin-top: 0.9rem; color: var(--label-2); font-size: var(--t-callout); max-width: 620px; }

/* ABOUT */
.about__grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 2rem 3.5rem; align-items: start; }
.about__lead { font-size: clamp(1.2rem, 1rem + 0.9vw, 1.6rem); font-weight: 500; line-height: 1.35; letter-spacing: -0.015em; }
.about__body { color: var(--label-2); font-size: var(--t-body); }
.about__pills { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; margin-top: 0.5rem; }
.about__pills li { font-size: var(--t-subhead); font-weight: 500; color: var(--label); padding: 8px 16px;
  border-radius: var(--r-pill); background: var(--glass-fill-thin);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border: 0.5px solid var(--glass-border); box-shadow: inset 0 1px 0 var(--specular-top); }

/* =========================================================
   FIGURES — big-number editorial storytelling
   ========================================================= */
.figures__head { max-width: 720px; margin-bottom: 3rem; }
.figures__head h2 { font-size: var(--t-title1); font-weight: 700; letter-spacing: -0.028em; line-height: 1.04; }
.figures__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px;
  background: var(--separator); border-radius: var(--r-panel); overflow: hidden;
  border: 0.5px solid var(--glass-border); }
.figure { background: color-mix(in srgb, var(--wall-bg) 60%, transparent);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  padding: clamp(1.6rem, 3vw, 2.6rem); display: flex; flex-direction: column; gap: 0.5rem;
  transition: background 0.5s var(--ease); }
.figure:hover { background: color-mix(in srgb, var(--wall-bg) 40%, transparent); }
.figure__num { line-height: 1; }
.figure__num b { font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: clamp(3.4rem, 2rem + 6vw, 6rem); letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(120deg, var(--blue), #5e5ce6); -webkit-background-clip: text; background-clip: text; color: transparent; }
.figure h3 { font-size: var(--t-title3); font-weight: 600; margin-top: 0.4rem; }
.figure p { color: var(--label-2); font-size: var(--t-subhead); line-height: 1.45; }
.figure p .mono { color: var(--blue); }

/* =========================================================
   TOPICS — numbered editorial focus list
   ========================================================= */
.topic-list { list-style: none; display: grid; gap: 12px; }
.topic { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: clamp(1rem, 3vw, 2.4rem);
  padding: clamp(1.3rem, 2.6vw, 1.9rem) clamp(1.4rem, 3vw, 2.2rem); border-radius: var(--r-panel);
  transition: transform 0.5s var(--ease); }
.topic:hover { transform: translateX(6px); }
.topic__no { font-family: var(--serif); font-style: italic; font-size: clamp(1.8rem, 1rem + 2.4vw, 2.8rem);
  color: var(--blue); flex-shrink: 0; min-width: 2ch; }
.topic__body h3 { font-size: var(--t-title3); font-weight: 600; letter-spacing: -0.02em; margin-bottom: 4px; }
.topic__body p { color: var(--label-2); font-size: var(--t-subhead); line-height: 1.45; max-width: 60ch; }
.topic__tag { font-size: var(--t-caption); font-weight: 500; color: var(--label-2); white-space: nowrap;
  padding: 6px 12px; border-radius: var(--r-pill); background: color-mix(in srgb, var(--label) 6%, transparent); }

/* =========================================================
   WORK — bento of glass cards (concentric radii)
   ========================================================= */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.card { grid-column: span 3; border-radius: var(--r-panel); padding: 7px;
  transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease); }
.card--xl { grid-column: span 6; }
.card--wide { grid-column: span 4; }
.card--stat { grid-column: span 2; }
.card:hover { transform: translateY(-5px); }
.card__inner { height: 100%; border-radius: 21px;   /* concentric: 28 panel − 7 padding */ padding: 24px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--glass-fill) 40%, transparent), transparent);
  box-shadow: inset 0 1px 0 var(--specular-top); display: flex; flex-direction: column; }
.card__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin-bottom: 4px; }
.card__kicker { font-size: var(--t-caption); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--blue); }
.card h3 { font-size: var(--t-title3); font-weight: 600; margin: 10px 0 8px; letter-spacing: -0.02em; }
.card p { color: var(--label-2); font-size: var(--t-subhead); line-height: 1.45; }
.card__badge { font-size: var(--t-caption); font-weight: 600; padding: 5px 11px; border-radius: var(--r-pill);
  color: #34c759; background: color-mix(in srgb, #34c759 14%, transparent); border: 0.5px solid color-mix(in srgb, #34c759 30%, transparent); }
.card__badge.live { display: inline-flex; align-items: center; gap: 6px; }
.card__badge.live::before { content: ""; width: 6px; height: 6px; border-radius: var(--r-pill); background: #34c759;
  box-shadow: 0 0 8px #34c759; animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: 1;} 50% { opacity: 0.35;} }
.card__meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.card__meta span { font-size: var(--t-caption); font-weight: 500; color: var(--label-2); padding: 5px 10px;
  border-radius: var(--r-chip); background: color-mix(in srgb, var(--label) 6%, transparent); }

.card--xl .card__inner { min-height: 250px; }
.card__viz { margin-top: auto; padding-top: 18px; }
.tpsl { display: flex; flex-wrap: wrap; gap: 8px; font-family: var(--mono); font-size: var(--t-subhead); }
.tpsl span { padding: 9px 14px; border-radius: var(--r-chip); border: 0.5px solid var(--glass-border);
  box-shadow: inset 0 1px 0 var(--specular-top); }
.tpsl__tp { color: #34c759; background: color-mix(in srgb, #34c759 12%, transparent); }
.tpsl__price { color: var(--label); background: var(--glass-fill-thin); }
.tpsl__sl { color: #ff3b30; background: color-mix(in srgb, #ff3b30 12%, transparent); }

.card--stat .card__inner { justify-content: space-between; min-height: 190px; }
.bigstat { display: flex; align-items: baseline; gap: 6px; margin: 12px 0 4px; }
.bigstat__num { font-size: clamp(2.4rem, 1.6rem + 2.4vw, 3.4rem); font-weight: 700; letter-spacing: -0.04em; font-family: var(--mono); font-variant-numeric: tabular-nums;
  background: linear-gradient(120deg, var(--blue), #af52de); -webkit-background-clip: text; background-clip: text; color: transparent; }
.bigstat__label { color: var(--label-2); font-size: var(--t-subhead); }
.bigstat__detail { font-size: var(--t-footnote) !important; }
.bigstat__detail .mono { color: var(--blue); }

/* =========================================================
   TIMELINE
   ========================================================= */
.timeline { list-style: none; }
.tl { display: grid; grid-template-columns: 38px 1fr; gap: 1.2rem; padding-bottom: 2rem; }
.tl__rail { position: relative; display: flex; justify-content: center; }
.tl__rail::before { content: ""; position: absolute; top: 8px; bottom: -2rem; left: 50%; width: 1.5px;
  background: linear-gradient(var(--separator), transparent); }
.tl:last-child .tl__rail::before { display: none; }
.tl__dot { width: 12px; height: 12px; border-radius: var(--r-pill); margin-top: 5px;
  background: var(--wall-bg); border: 2px solid var(--label-3); z-index: 1; }
.tl__dot.current { background: var(--blue); border-color: var(--blue);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--blue) 18%, transparent), 0 0 14px color-mix(in srgb, var(--blue) 60%, transparent); }
.tl__body { border-radius: var(--r-panel); padding: 20px 24px;
  transition: transform 0.5s var(--ease); }
.tl__body:hover { transform: translateX(4px); }
.tl__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin-bottom: 8px; }
.tl__head h3 { font-size: var(--t-title3); font-weight: 600; }
.tl__co { color: var(--blue); font-weight: 500; font-size: var(--t-subhead); }
.tl__date { font-family: var(--mono); font-size: var(--t-footnote); color: var(--label-3); margin-left: auto; }
.tl__body p { color: var(--label-2); font-size: var(--t-subhead); }
.tl__body ul { margin-top: 12px; list-style: none; display: grid; gap: 8px; }
.tl__body ul li { position: relative; padding-left: 22px; color: var(--label-2); font-size: var(--t-subhead); }
.tl__body ul li::before { content: ""; position: absolute; left: 4px; top: 8px; width: 6px; height: 6px;
  border-radius: var(--r-pill); background: var(--blue); }

/* =========================================================
   WRITING / SPECS
   ========================================================= */
.specs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.spec { display: flex; align-items: center; gap: 1rem; padding: 18px 20px; border-radius: var(--r-inner);
  cursor: default; transition: transform 0.4s var(--ease); }
.spec:hover { transform: translateY(-3px); }
.spec__no { font-size: var(--t-caption); font-weight: 600; color: var(--blue); flex-shrink: 0; }
.spec h4 { font-size: var(--t-callout); font-weight: 500; line-height: 1.3; letter-spacing: -0.01em; }

/* =========================================================
   STACK
   ========================================================= */
.stack__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.stack__col { border-radius: var(--r-panel); padding: 22px; transition: transform 0.5s var(--ease); }
.stack__col:hover { transform: translateY(-4px); }
.stack__col h4 { font-size: var(--t-caption); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--blue); margin-bottom: 14px; }
.stack__col ul { list-style: none; display: grid; gap: 9px; }
.stack__col li { color: var(--label); font-size: var(--t-subhead); padding-bottom: 9px; border-bottom: 0.5px solid var(--separator); }
.stack__col li:last-child { border-bottom: none; padding-bottom: 0; }

.edu { margin-top: 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.edu__item { display: flex; align-items: center; gap: 14px; border-radius: var(--r-inner); padding: 18px 20px; }
.edu__item .mono { font-size: var(--t-caption); font-weight: 600; color: var(--blue); padding: 6px 10px; border-radius: var(--r-chip);
  background: color-mix(in srgb, var(--blue) 12%, transparent); flex-shrink: 0; }
.edu__item div { font-size: var(--t-subhead); color: var(--label-2); }
.edu__item b { color: var(--label); font-weight: 600; }

/* =========================================================
   SIDE PROJECTS — language-tagged cards
   ========================================================= */
.projects__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.proj {
  display: flex; flex-direction: column; gap: 0.6rem;
  border-radius: var(--r-panel); padding: 22px; cursor: pointer;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.proj:hover { transform: translateY(-4px); }
.proj__top { display: flex; align-items: center; justify-content: space-between; }
.proj__lang { font-size: var(--t-caption); font-weight: 600; padding: 4px 10px; border-radius: var(--r-chip); }
.proj__lang.swift { color: #f05138; background: color-mix(in srgb, #f05138 14%, transparent); }
.proj__lang.ts { color: #3178c6; background: color-mix(in srgb, #3178c6 14%, transparent); }
.proj__lang.web { color: #e34c26; background: color-mix(in srgb, #e34c26 14%, transparent); }
.proj__arrow { color: var(--label-3); font-size: var(--t-callout); transition: transform 0.4s var(--ease); }
.proj:hover .proj__arrow { transform: translate(2px, -2px); }
.proj h4 { font-size: var(--t-headline); font-weight: 600; letter-spacing: -0.01em; }
.proj p { color: var(--label-2); font-size: var(--t-footnote); line-height: 1.4; }

@media (max-width: 860px) { .projects__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 440px) { .projects__grid { grid-template-columns: 1fr; } }

/* =========================================================
   CONTACT
   ========================================================= */
.contact { text-align: center; }
.contact__inner { border-radius: var(--r-panel); padding: clamp(2.5rem, 6vw, 5rem) 2rem; }
.contact__inner .tag { color: var(--blue); }
.contact h2 { font-size: var(--t-title1); font-weight: 700; letter-spacing: -0.028em; line-height: 1.05; margin-bottom: 0.8rem; }
.contact p { color: var(--label-2); max-width: 460px; margin: 0 auto 1.8rem; }
.contact__links { display: flex; gap: 0.7rem; justify-content: center; flex-wrap: wrap; }

/* =========================================================
   FOOTER
   ========================================================= */
.footer { max-width: var(--maxw); margin: 3rem auto 0; padding: 2rem 24px 3rem;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px;
  border-top: 0.5px solid var(--separator); color: var(--label-3); font-size: var(--t-footnote); }
.footer__mono { font-size: var(--t-caption); }

/* =========================================================
   QUALITY ENGINEERING
   ========================================================= */
.quality__grid { display: grid; gap: 3rem; margin-top: 2rem; }

.quality__workflow { padding: clamp(1.8rem, 3vw, 2.5rem); border-radius: var(--r-panel); }
.quality__workflow h3 { font-size: var(--t-title3); font-weight: 600; margin-bottom: 1.4rem; color: var(--label); }
.pipeline { display: flex; align-items: center; gap: 8px 12px; flex-wrap: wrap; }
.pipeline__node { font-size: var(--t-caption); font-weight: 600; padding: 10px 16px; border-radius: var(--r-pill); background: var(--glass-fill-thin); color: var(--label-2); border: 0.5px solid var(--glass-border); transition: transform 0.3s var(--ease), color 0.3s var(--ease); box-shadow: inset 0 1px 0 var(--specular-top); text-transform: uppercase; letter-spacing: 0.04em; display: flex; align-items: center; gap: 8px; }
.pipeline__node:not(:last-child)::after { content: "→"; font-size: 14px; opacity: 0.5; font-weight: 400; text-transform: none; position: absolute; right: -18px; pointer-events: none; }
.pipeline__node.highlight { background: var(--blue); color: var(--on-accent); border-color: var(--blue); box-shadow: inset 0 1px 0 rgba(255,255,255,0.4), 0 4px 16px color-mix(in srgb, var(--blue) 40%, transparent); }
.pipeline__node.highlight::after { display: none; } /* Handle arrow spacing manually if needed, or rely on gap */
.pipeline__node:not(:last-child) { margin-right: 14px; }

.quality__monitors { padding: 0.5rem 0; }
.quality__monitors h3 { font-size: var(--t-title3); font-weight: 600; margin-bottom: 1.4rem; color: var(--label); }
.monitor-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.monitor-card { display: flex; align-items: center; gap: 14px; padding: 16px 20px; border-radius: var(--r-inner); background: color-mix(in srgb, var(--wall-bg) 60%, transparent); transition: transform 0.4s var(--ease); border: 0.5px solid var(--glass-border); box-shadow: inset 0 1px 0 var(--specular-top); }
.monitor-card:hover { transform: translateY(-3px); background: color-mix(in srgb, var(--wall-bg) 80%, transparent); }
.monitor-card__ico { display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: var(--r-chip); background: color-mix(in srgb, var(--blue) 14%, transparent); color: var(--blue); font-size: 1.1rem; flex-shrink: 0; }
.monitor-card h4 { font-size: var(--t-subhead); font-weight: 600; line-height: 1.3; margin: 0; }

/* =========================================================
   REVEAL
   ========================================================= */
.reveal { opacity: 0; transform: translateY(24px); filter: blur(4px);
  transition: opacity 0.85s var(--ease) var(--d, 0s), transform 0.85s var(--ease) var(--d, 0s), filter 0.85s var(--ease) var(--d, 0s); }
.reveal:not(.in) { will-change: transform, opacity; }   /* dropped once revealed */
.reveal.in { opacity: 1; transform: none; filter: none; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 860px) {
  .hero { }
  .about__grid { grid-template-columns: 1fr; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .card, .card--xl, .card--wide, .card--stat { grid-column: span 2; }
  .specs { grid-template-columns: 1fr; }
  .stack__grid { grid-template-columns: repeat(2, 1fr); }
  .edu { grid-template-columns: 1fr; }
  .figures__grid { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .nav__links { display: none; }
  .nav__burger { display: flex; }
  .hero { padding: 7rem 20px 3rem; }
  .hero__stats { grid-template-columns: repeat(2, 1fr); }
  .hero__scroll { display: none; }
  .topic { grid-template-columns: auto 1fr; }
  .topic__tag { display: none; }
  section { padding: 4rem 20px; }
  .tl { grid-template-columns: 26px 1fr; gap: 0.9rem; }
  .tl__date { margin-left: 0; width: 100%; }
}
@media (max-width: 440px) {
  .bento { grid-template-columns: 1fr; }
  .card, .card--xl, .card--wide, .card--stat { grid-column: span 1; }
  .hero__stats { grid-template-columns: 1fr 1fr; }
}

/* =========================================================
   REDUCED MOTION (HIG accessibility)
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important; animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important; scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; filter: none; }
  .wallpaper { animation: none; }
}
