/* ==========================================================================
   DEVELOPER PAGE — PORTAVIA SYSTEM
   Design system reverse-engineered from index-4.html (Framer "Portavia").

   Type    : Antonio (condensed display, uppercase) + Inter (body)
   Scale   : h1 120/132 · h2 60/78 · h3 32/41.6 · h4 26/33.8 · body 18/27
   Palette : light  bg #fff  surface #f5f5f5  text #303030  accent #5e67e6
             dark   bg #0f0f0f surface #333   text #fff     accent #d0ff71
   Radius  : cards/media 20px · pills 99px · nav 28px
   Grid    : container 1200px · gutter 120px @1440
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
/* Light theme runs a muted, low-key version of the Portavia palette:
   warm paper background instead of pure white, and a deep desaturated
   indigo accent in place of the template's bright #5e67e6. */
:root {
  --bg: #f2f1ed;
  --surface: #e8e6e0;
  --surface-alt: #f8f7f4;
  --border: #d3cfc7;
  --border-soft: #e0ddd6;
  --text: #2c2c30;
  --text-strong: #1b1b1e;
  --muted: #79766f;
  --accent: #474e78;
  --on-accent: #f5f4f1;
  --chip: #2c2c30;
  --on-chip: #f5f4f1;
  --nav-bg: rgba(242, 241, 237, 0.88);
  --shell: rgba(28, 28, 32, 0.06);
  --noise-blend: multiply;
  --noise-opacity: 0.055;

  /* type
     Portavia ships Antonio, which has no Vietnamese subset — its diacritics
     fall back mid-word. Oswald keeps the same tall condensed grotesque
     skeleton and covers the full Vietnamese charset, so it leads the stack. */
  --font-display: "Oswald", "Antonio", "Arial Narrow", sans-serif;
  --font-body: "Inter", "Inter Placeholder", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* rhythm */
  --container: 1200px;
  --container-narrow: 1120px;
  --gutter: clamp(20px, 8.34vw, 120px);
  --gutter-lg: clamp(20px, 11.12vw, 160px);
  --section-pad: clamp(72px, 9vw, 130px);
  --radius: 20px;
  --radius-pill: 99px;

  /* motion */
  --spring: cubic-bezier(0.16, 1, 0.3, 1);
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --dur: 0.55s;
}

[data-theme="dark"] {
  --bg: #0f0f0f;
  --surface: #333333;
  --surface-alt: #1a1a1b;
  --border: #5c5c5c;
  --border-soft: #3a3a3a;
  --text: #ffffff;
  --text-strong: #ffffff;
  --muted: #b5b5b5;
  --accent: #d0ff71;
  --on-accent: #0f0f0f;
  --chip: #ffffff;
  --on-chip: #0f0f0f;
  --nav-bg: rgba(15, 15, 15, 0.9);
  --shell: rgba(255, 255, 255, 0.08);
  --noise-blend: screen;
  --noise-opacity: 0.13;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f0f0f;
    --surface: #333333;
    --surface-alt: #1a1a1b;
    --border: #5c5c5c;
    --border-soft: #3a3a3a;
    --text: #ffffff;
    --text-strong: #ffffff;
    --muted: #b5b5b5;
    --accent: #d0ff71;
    --on-accent: #0f0f0f;
    --chip: #ffffff;
    --on-chip: #0f0f0f;
    --nav-bg: rgba(15, 15, 15, 0.9);
    --shell: rgba(255, 255, 255, 0.08);
    --noise-blend: screen;
    --noise-opacity: 0.13;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 120px;
}

body.developer-page {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 300;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease);
}

h1, h2, h3, h4, h5, h6, p, figure, blockquote { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

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

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

/* --------------------------------------------------------------------------
   3. Type primitives
   -------------------------------------------------------------------------- */
.display,
.hero-line,
.section-title,
.card-title,
.btn-label,
.eyebrow,
.stat-number,
.acc-title,
.quote-mark { font-family: var(--font-display); text-transform: uppercase; }

.section-title {
  font-size: clamp(34px, 4.2vw, 60px);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--text);
}

.section-desc {
  max-width: 44ch;
  font-size: clamp(16px, 1.15vw, 18px);
  font-weight: 300;
  line-height: 1.5;
  color: var(--text);
}

.eyebrow {
  font-size: clamp(20px, 2.2vw, 32px);
  font-weight: 400;
  line-height: 1.3;
  color: var(--text);
}

.label-sm {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 300;
  line-height: 1.5;
  color: var(--accent);
}

/* --------------------------------------------------------------------------
   4. Layout shells
   -------------------------------------------------------------------------- */
/* Reference geometry @1440:
     .container         content 1200px, gutter 120px
     .container-narrow  content 1120px, gutter 160px  (grids, project, FAQ) */
.container {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}

.container-narrow {
  width: min(100% - 2 * var(--gutter-lg), var(--container-narrow));
  margin-inline: auto;
}

.section { padding-block: var(--section-pad); }

.section-header {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 56px;
}

/* --------------------------------------------------------------------------
   5. Noise + backdrop
   -------------------------------------------------------------------------- */
.noise-overlay {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: var(--noise-opacity);
  mix-blend-mode: var(--noise-blend);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='0.9'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}

.main-wrapper { position: relative; z-index: 2; }

/* --------------------------------------------------------------------------
   6. Status banner (archive notice)
   -------------------------------------------------------------------------- */
.status-banner {
  position: relative;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 12px var(--gutter);
  background: var(--chip);
  color: var(--on-chip);
  text-align: center;
}

.status-banner-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 99px;
  background: var(--accent);
  color: var(--on-accent);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
}

.status-banner-content {
  font-size: 14px;
  font-weight: 300;
  line-height: 1.45;
  letter-spacing: 0.01em;
}

.status-banner-content strong { font-weight: 600; }

.status-banner-content a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* --------------------------------------------------------------------------
   7. Navigation — floating pill
   -------------------------------------------------------------------------- */
.nav-container {
  position: sticky;
  top: 20px;
  z-index: 30;
  display: flex;
  justify-content: center;
  padding-inline: 16px;
  pointer-events: none;
}

.nav-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 56px;
  padding: 8px 20px 8px 10px;
  border-radius: 28px;
  background: var(--nav-bg);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  backdrop-filter: blur(14px) saturate(160%);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06), 0 8px 30px rgba(0, 0, 0, 0.08);
  pointer-events: auto;
}

[data-theme="dark"] .nav-pill { box-shadow: 0 1px 2px rgba(0, 0, 0, 0.5), 0 8px 30px rgba(0, 0, 0, 0.45); }

.nav-avatar {
  flex: none;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 99px;
  overflow: hidden;
  background: var(--accent);
  color: var(--on-accent);
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.nav-avatar img { width: 100%; height: 100%; object-fit: cover; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-item {
  position: relative;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.5;
  color: var(--text);
  white-space: nowrap;
  transition: color 0.3s var(--ease);
}

.nav-item::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: var(--accent);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.34s var(--spring);
}

.nav-item:hover { color: var(--on-accent); }
.nav-item:hover::after { transform: scaleY(1); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 3px 22px 4px;
  border-radius: var(--radius-pill);
  background: var(--chip);
  color: var(--on-chip);
  font-size: 16px;
  font-weight: 300;
  white-space: nowrap;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease), transform 0.3s var(--spring);
}

.nav-cta:hover {
  background: var(--accent);
  color: var(--on-accent);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 99px;
  place-items: center;
  background: var(--shell);
  color: var(--text);
}

/* theme switch — mirrors the Portavia toggle */
.theme-switch {
  display: inline-flex;
  align-items: center;
  width: 44px;
  height: 24px;
  padding: 3px;
  border-radius: 99px;
  background: var(--border);
  transition: background-color 0.3s var(--ease);
}

.theme-switch__knob {
  width: 18px;
  height: 18px;
  border-radius: 99px;
  background: var(--accent);
  transition: transform 0.36s var(--spring);
}

:root[data-theme="dark"] .theme-switch__knob,
.theme-switch[aria-pressed="true"] .theme-switch__knob { transform: translateX(20px); }

/* --------------------------------------------------------------------------
   8. Buttons
   -------------------------------------------------------------------------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 6px 34px 8px;
  border: 1px solid var(--accent);
  border-radius: var(--radius-pill);
  overflow: hidden;
  color: var(--accent);
  isolation: isolate;
  transition: color 0.32s var(--ease), border-color 0.32s var(--ease), transform 0.3s var(--spring);
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--accent);
  transform: translateY(101%);
  transition: transform 0.42s var(--spring);
}

.btn:hover { color: var(--on-accent); }
.btn:hover::before { transform: translateY(0); }
.btn:active,
.btn.is-pressed { transform: scale(0.97); }

.btn-label {
  font-size: clamp(20px, 1.9vw, 26px);
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: 0.01em;
}

.btn svg { width: 16px; height: 16px; }

/* filled variant */
.btn-filled {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--on-accent);
}
.btn-filled::before { background: var(--chip); }
.btn-filled:hover { color: var(--on-chip); border-color: var(--chip); }

/* chip variant — smaller, body font */
.btn-chip {
  min-height: 44px;
  padding: 4px 24px 5px;
  border-color: var(--border);
  color: var(--text);
  font-size: 15px;
}
.btn-chip::before { background: var(--chip); }
.btn-chip:hover { color: var(--on-chip); border-color: var(--chip); }

/* --------------------------------------------------------------------------
   9. Pills / tags
   -------------------------------------------------------------------------- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 27px;
  padding: 3px 15px;
  border-radius: var(--radius-pill);
  background: var(--accent);
  color: var(--on-accent);
  font-size: 14px;
  font-weight: 300;
  line-height: 1.5;
  white-space: nowrap;
}

.pill-outline {
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
}

.pill-dot {
  width: 6px;
  height: 6px;
  border-radius: 99px;
  background: currentColor;
}

.pill-pulse {
  width: 7px;
  height: 7px;
  border-radius: 99px;
  background: currentColor;
  animation: pulse 2.2s var(--ease) infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.7); }
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 27px;
  padding: 3px 15px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  color: var(--text);
  font-size: 14px;
  font-weight: 300;
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease), background-color 0.3s var(--ease);
}

.tag:hover {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--on-accent);
}

/* --------------------------------------------------------------------------
   10. Hero — split heading around portrait
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: min(900px, 100vh);
  padding-block: clamp(60px, 8vw, 96px);
}

.hero-layout {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(20px, 3.2vw, 44px);
  width: 100%;
}

.hero-col {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.hero-col-left {
  align-items: flex-end;
  text-align: right;
  gap: 4px;
}

.hero-col-right {
  align-items: flex-start;
  text-align: left;
  gap: 10px;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
  margin-bottom: 6px;
}

.hero-title {
  display: flex;
  flex-direction: column;
}

/* One word per line, mirroring Portavia's single giant word per side.
   Capped below 120px because Vietnamese words run longer than "DIGITAL". */
.hero-line {
  font-size: clamp(40px, 7.1vw, 102px);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.025em;
  color: var(--text);
  white-space: nowrap;
}

.hero-line-accent {
  font-size: clamp(26px, 3.6vw, 52px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--accent);
  white-space: nowrap;
}

.hero-sub {
  max-width: 30ch;
  font-size: clamp(15px, 1.15vw, 18px);
  font-weight: 300;
  line-height: 1.5;
  color: var(--text);
}

/* portrait card */
.hero-portrait {
  position: relative;
  flex: none;
  width: clamp(190px, 24vw, 340px);
  aspect-ratio: 340 / 476;
}

.hero-portrait__media {
  width: 100%;
  height: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  transform-style: preserve-3d;
}

.hero-portrait__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
}

.hero-badge {
  position: absolute;
  left: clamp(-34px, -2.4vw, -20px);
  bottom: clamp(28px, 4vw, 58px);
  display: grid;
  place-items: center;
  width: clamp(48px, 4.3vw, 62px);
  height: clamp(48px, 4.3vw, 62px);
  border-radius: 99px;
  background: var(--accent);
  color: var(--on-accent);
  font-family: var(--font-display);
  font-size: clamp(20px, 1.9vw, 27px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.01em;
  animation: badge-float 5s ease-in-out infinite;
}

@keyframes badge-float {
  0%, 100% { transform: translateY(0) rotate(-4deg); }
  50% { transform: translateY(-9px) rotate(4deg); }
}

/* --------------------------------------------------------------------------
   11. Statement band (fun quote)
   -------------------------------------------------------------------------- */
.statement {
  border-block: 1px solid var(--border);
  padding-block: clamp(28px, 4vw, 44px);
  overflow: hidden;
}

.statement-track {
  display: flex;
  align-items: center;
  gap: 40px;
  width: max-content;
  animation: marquee 26s linear infinite;
}

.statement-item {
  display: flex;
  align-items: center;
  gap: 40px;
  font-family: var(--font-display);
  font-size: clamp(26px, 3.4vw, 46px);
  font-weight: 700;
  line-height: 1.15;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  color: var(--text);
  white-space: nowrap;
}

.statement-item span:first-child { color: var(--accent); }

.statement-sep {
  flex: none;
  width: 12px;
  height: 12px;
  border-radius: 99px;
  background: var(--accent);
}

@keyframes marquee {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}

.statement:hover .statement-track { animation-play-state: paused; }

/* --------------------------------------------------------------------------
   12. About — bio, stats, meta
   -------------------------------------------------------------------------- */
.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}

.about-copy {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.about-intro {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.stats-row {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(20px, 3vw, 44px);
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.stat-number {
  font-size: clamp(40px, 4.4vw, 60px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--accent);
}

.stat-label {
  font-family: var(--font-body);
  font-size: clamp(15px, 1.2vw, 18px);
  font-weight: 600;
  line-height: 1.3;
  color: var(--text);
  text-transform: none;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(24px, 3vw, 48px);
}

.meta-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.meta-item dt {
  font-size: 14px;
  font-weight: 300;
  color: var(--accent);
}

.meta-item dd {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}

.skills-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.about-visual {
  position: relative;
  justify-self: end;
  width: 100%;
  max-width: 420px;
}

.about-card {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 40px;
  border-radius: var(--radius);
  background: var(--surface);
}

.about-card__role {
  font-size: 14px;
  font-weight: 300;
  color: var(--accent);
}

.about-card__name {
  font-family: var(--font-display);
  font-size: clamp(30px, 3.2vw, 44px);
  font-weight: 700;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  color: var(--text);
}

.about-card__divider {
  height: 1px;
  background: var(--border);
}

.about-card__list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.about-card__list li {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-size: 15px;
  font-weight: 300;
  color: var(--text);
}

.about-card__list b {
  flex: none;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent);
}

/* --------------------------------------------------------------------------
   13. Accordion (skills / disclaimer)
   -------------------------------------------------------------------------- */
.accordion { border-top: 1px solid var(--border); }

.acc-item { border-bottom: 1px solid var(--border); }

.acc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  min-height: 82px;
  padding: 20px 0;
  text-align: left;
  color: var(--text);
  transition: color 0.3s var(--ease);
}

.acc-head:hover { color: var(--accent); }

.acc-title {
  font-size: clamp(21px, 2.3vw, 32px);
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: 0.005em;
}

.acc-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  transition: transform 0.42s var(--spring);
}

.acc-item.is-open .acc-icon { transform: rotate(180deg); }

.acc-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.46s var(--spring);
}

.acc-item.is-open .acc-panel { grid-template-rows: 1fr; }

.acc-panel > div {
  overflow: hidden;
  min-height: 0;
}

.acc-body {
  padding-bottom: 28px;
  max-width: 60ch;
  font-size: clamp(15px, 1.15vw, 18px);
  font-weight: 300;
  line-height: 1.55;
  color: var(--muted);
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.4s var(--ease) 0.06s, transform 0.4s var(--ease) 0.06s;
}

.acc-item.is-open .acc-body { opacity: 1; transform: none; }

/* two-column layout used by the disclaimer block */
.split-sticky {
  display: grid;
  grid-template-columns: minmax(0, 440px) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}

.split-sticky__aside {
  display: flex;
  flex-direction: column;
  gap: 40px;
  position: sticky;
  top: 120px;
}

/* --------------------------------------------------------------------------
   14. Project cover card
   -------------------------------------------------------------------------- */
.project-cover {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1120 / 747;
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(135deg, #1c1c1e 0%, #2f2f36 45%, #16161a 100%);
  isolation: isolate;
}

.project-cover__art {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 90% at 18% 12%, color-mix(in srgb, var(--accent) 60%, transparent) 0%, transparent 55%),
    radial-gradient(90% 80% at 88% 82%, color-mix(in srgb, var(--accent) 34%, transparent) 0%, transparent 60%),
    linear-gradient(135deg, #1c1c1e 0%, #2a2a2f 45%, #16161a 100%);
  transform: scale(1.02);
  transition: transform 0.9s var(--spring);
}

.project-cover:hover .project-cover__art { transform: scale(1.07); }

.project-cover__grid {
  position: absolute;
  inset: 0;
  opacity: 0.5;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(75% 75% at 50% 50%, #000 30%, transparent 100%);
  mask-image: radial-gradient(75% 75% at 50% 50%, #000 30%, transparent 100%);
}

.project-cover__body {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  height: 100%;
  padding: clamp(24px, 5vw, 64px);
  text-align: center;
  color: #fff;
}

.project-cover__title {
  font-family: var(--font-display);
  font-size: clamp(26px, 4.2vw, 60px);
  font-weight: 700;
  line-height: 1.15;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  color: #fff;
  text-wrap: balance;
}

.project-cover__desc {
  max-width: 58ch;
  font-size: clamp(13px, 1.05vw, 16px);
  font-weight: 300;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.82);
}

.project-cover__features {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 6px;
}

.project-cover__features li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 14px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.9);
}

.project-cover__open {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  padding: 10px 26px;
  border-radius: var(--radius-pill);
  background: var(--accent);
  color: var(--on-accent);
  font-family: var(--font-display);
  font-size: clamp(17px, 1.6vw, 22px);
  font-weight: 400;
  text-transform: uppercase;
  transition: transform 0.34s var(--spring), filter 0.3s var(--ease);
}

.project-cover:hover .project-cover__open { transform: translateY(-2px); filter: brightness(1.06); }

/* --------------------------------------------------------------------------
   15. Tech grid
   -------------------------------------------------------------------------- */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.tech-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 28px;
  border-radius: var(--radius);
  background: var(--surface);
  transition: transform 0.42s var(--spring), background-color 0.34s var(--ease);
}

.tech-card:hover { transform: translateY(-6px); }

.tech-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--accent);
  color: var(--on-accent);
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
}

.tech-name {
  font-family: var(--font-display);
  font-size: clamp(20px, 1.9vw, 26px);
  font-weight: 400;
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--text);
}

.tech-cat {
  font-size: 14px;
  font-weight: 300;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   16. Quote card
   -------------------------------------------------------------------------- */
.quote-card {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 900px;
  margin-inline: auto;
  padding: clamp(32px, 5vw, 64px);
  border-radius: var(--radius);
  background: var(--surface);
  text-align: center;
}

.quote-mark {
  font-size: clamp(44px, 6vw, 80px);
  font-weight: 700;
  line-height: 0.7;
  color: var(--accent);
}

.quote-text {
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 40px);
  font-weight: 400;
  line-height: 1.25;
  text-transform: uppercase;
  letter-spacing: -0.005em;
  color: var(--text);
  text-wrap: balance;
}

.quote-author {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
}

.quote-author::before {
  content: "";
  width: 34px;
  height: 1px;
  background: var(--border);
}

/* --------------------------------------------------------------------------
   17. Contact
   -------------------------------------------------------------------------- */
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 340px) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
}

.contact-portrait {
  position: relative;
  width: 100%;
  max-width: 340px;
  aspect-ratio: 340 / 476;
}

.contact-portrait__media {
  width: 100%;
  height: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}

.contact-portrait__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
}

.contact-copy {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--border);
}

.contact-list__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  transition: color 0.3s var(--ease), padding-inline 0.34s var(--ease);
}

.contact-list__row:hover { color: var(--accent); padding-inline: 8px 0; }

.contact-list__label {
  font-family: var(--font-display);
  font-size: clamp(19px, 1.9vw, 26px);
  font-weight: 400;
  text-transform: uppercase;
  line-height: 1.2;
}

.contact-list__value {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 300;
  color: var(--muted);
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

/* --------------------------------------------------------------------------
   18. Footer — full-bleed accent band
   -------------------------------------------------------------------------- */
.site-footer {
  position: relative;
  z-index: 2;
  margin-top: var(--section-pad);
  background: var(--accent);
  color: var(--on-accent);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-block: 40px;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
}

.footer-block {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.footer-block__label {
  font-size: 14px;
  font-weight: 300;
  opacity: 0.75;
}

.footer-block__value {
  font-size: 16px;
  font-weight: 600;
}

.footer-block a { transition: opacity 0.3s var(--ease); }
.footer-block a:hover { opacity: 0.72; }

.footer-divider {
  height: 1px;
  background: currentColor;
  opacity: 0.28;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
  font-weight: 300;
}

.footer-socials {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-social {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--on-accent);
  color: var(--accent);
  transition: transform 0.3s var(--spring);
}

.footer-social:hover { transform: translateY(-2px); }
.footer-social svg { width: 15px; height: 15px; }

/* --------------------------------------------------------------------------
   19. Reveal animations
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0.001;
  transform: translateY(28px);
  transition: opacity 1s var(--spring), transform 1s var(--spring);
  transition-delay: var(--stagger, 0ms);
}

.reveal.revealed { opacity: 1; transform: none; }

/* hero entrance — mirrors Framer x:±150 spring, 1s, delay .3s */
.slide-from-left,
.slide-from-right {
  opacity: 0.001;
  transition: opacity 1s var(--spring) 0.3s, transform 1s var(--spring) 0.3s;
}

.slide-from-left { transform: translate3d(-150px, 0, 0); }
.slide-from-right { transform: translate3d(150px, 0, 0); }

.slide-from-left.revealed,
.slide-from-right.revealed { opacity: 1; transform: translate3d(0, 0, 0); }

/* portrait card flip — rotateX -180 → 0, scale 0 → 1, perspective 1200 */
.card-flip {
  transform: perspective(1200px) rotateX(-180deg) scale(0);
  transition: transform 1s var(--spring);
}

.card-flip.revealed { transform: perspective(1200px) rotateX(0deg) scale(1); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal,
  .slide-from-left,
  .slide-from-right,
  .card-flip { opacity: 1 !important; transform: none !important; }
  .statement-track { animation: none; }
}

/* --------------------------------------------------------------------------
   20. Utility
   -------------------------------------------------------------------------- */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.center { text-align: center; }
.mx-auto { margin-inline: auto; }
