/* ============================================================
   HOMEPAGE.CSS — Pedro Ribeiro Portfolio 2026
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Space+Mono:wght@400;700&display=swap');

/* ============================================================
   PAGE-LEVEL TOKENS (homepage only — extends tokens.css)
   ============================================================ */
:root {
  --c-dark-2:     #1a1a1a;
  --c-warm-white: #faf8f3;
  --c-gold-dim:   rgba(231,184,0,0.12);
  --c-grey-1:     #252525;
  --c-grey-2:     #444444;
  --c-grey-3:     #888888;
  --c-grey-4:     #c0bdb6;

  --ease-smooth:  cubic-bezier(0.4, 0, 0.2, 1);
  --container:    1280px;
  --section-pad:  clamp(80px, 10vw, 140px);
}

/* ============================================================
   GLOBAL
   ============================================================ */
.hp-page {
  background: var(--c-black);
  cursor: none;
}
.hp-page * { box-sizing: border-box; }
.hp-page a { text-decoration: none; color: inherit; }


/* ============================================================
   CURSOR — DESIGN TOOL CROSSHAIR
   ============================================================ */
#cursor-cross {
  position: fixed;
  width: 0; height: 0;
  pointer-events: none;
  z-index: 99999;
  transform: translate(-50%, -50%);
}

/* Horizontal arm — gap in centre */
#cursor-cross::before {
  content: '';
  position: absolute;
  top: -0.5px;
  left: -18px;
  width: 36px;
  height: 1px;
  background:
    linear-gradient(to right,
      var(--c-gold) 12px,
      transparent 12px 24px,
      var(--c-gold) 24px
    );
  transition: opacity 0.15s ease;
}

/* Vertical arm — gap in centre */
#cursor-cross::after {
  content: '';
  position: absolute;
  top: -18px;
  left: -0.5px;
  width: 1px;
  height: 36px;
  background:
    linear-gradient(to bottom,
      var(--c-gold) 12px,
      transparent 12px 24px,
      var(--c-gold) 24px
    );
  transition: opacity 0.15s ease;
}

.cur-label {
  position: absolute;
  left: 22px;
  top: -12px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-gold);
  background: rgba(8,8,8,0.9);
  padding: 4px 9px;
  border-radius: 2px;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(-5px);
  transition: opacity 0.18s ease, transform 0.18s var(--ease-expo);
}

.cur-label.show {
  opacity: 1;
  transform: translateX(0);
}

/* Hover state — crosshair opens/rotates */
.hp-page.cursor-hover #cursor-cross::before,
.hp-page.cursor-hover #cursor-cross::after {
  opacity: 0.4;
}


/* .xp-float is defined in gamification.css (shared across all pages) */


/* ============================================================
   NAV — brutalist grid header (homepage + inner pages)
   ============================================================ */

/* Grid: logo-zone | divider | links-zone | divider | cta-zone */
.hp-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  display: grid;
  grid-template-columns: auto 1px 1fr 1px auto;
  align-items: stretch;
  height: var(--nav-h);
  background: transparent;
  border-bottom: 1px solid rgba(231,184,0,0.18);
  transition: background 0.4s ease, backdrop-filter 0.4s ease;
}

.hp-nav.scrolled {
  background: rgba(8,8,8,0.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

/* Always-dark override for inner pages */
.hp-nav--inner {
  background: rgba(8,8,8,0.97);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}


/* Gold accent squares pinned to top corners */
.nav-corner {
  position: absolute;
  width: 8px; height: 8px;
  background: var(--c-gold);
  z-index: 2;
}
.nav-corner--tl { top: 0; left: 0; }
.nav-corner--tr { top: 0; right: 0; }

/* Vertical dividers (grid items) */
.nav-divider {
  display: block;
  width: 1px;
  background: rgba(231,184,0,0.22);
  align-self: stretch;
}

/* Zones */
.nav-zone {
  display: flex;
  align-items: center;
  padding: 0 var(--gutter);
}
.nav-zone--logo  { gap: 0; }
.nav-zone--links { justify-content: center; }
.nav-zone--cta   { gap: 20px; justify-content: flex-end; }

/* Logo */
.hp-logo-link { display: flex; align-items: center; }
.hp-logo-img {
  height: 30px;
  filter: invert(1);
  opacity: 0.85;
  transition: opacity 0.2s;
}
.hp-logo-img:hover { opacity: 1; }

/* Nav links */
.hp-nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
  margin: 0; padding: 0;
}

.hp-nav-links a {
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(240,236,227,0.75);
  text-decoration: none;
  transition: color 0.2s;
  position: relative;
}
.hp-nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 1px;
  background: var(--c-gold);
  transition: width 0.3s var(--ease-expo);
}
.hp-nav-links a:hover { color: var(--c-off-white); }
.hp-nav-links a:hover::after { width: 100%; }

/* CV pill button — scoped to .hp-nav for specificity (0,2,0) to beat body.inner-page a:hover (0,2,1 minus pseudo) */
.hp-nav .hp-nav-cv {
  font-family: var(--font-head);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-black);
  background: var(--c-gold);
  padding: 9px 20px;
  border-radius: 3px;
  text-decoration: none;
  box-shadow: 0 0 14px rgba(231,184,0,0.35), 0 0 36px rgba(231,184,0,0.12);
  transition: background 0.2s, color 0.2s, transform 0.2s, box-shadow 0.2s;
  animation: cvPulse 3s ease-in-out infinite;
}
.hp-nav .hp-nav-cv:hover {
  color: var(--c-black);
  background: #fff0a0;
  transform: translateY(-2px);
  box-shadow: 0 0 22px rgba(231,184,0,0.6), 0 0 50px rgba(231,184,0,0.22);
  animation: none;
}

/* Focus indicators — WCAG AA keyboard navigation */
.hp-nav .hp-logo-link:focus-visible,
.hp-nav .hp-nav-links a:focus-visible,
.hp-nav .hp-nav-cv:focus-visible,
.hp-nav .hp-burger:focus-visible {
  outline: 2px solid var(--c-gold);
  outline-offset: 4px;
  border-radius: 2px;
}

@keyframes cvPulse {
  0%, 100% { box-shadow: 0 0 14px rgba(231,184,0,0.35), 0 0 36px rgba(231,184,0,0.12); }
  50%       { box-shadow: 0 0 22px rgba(231,184,0,0.55), 0 0 50px rgba(231,184,0,0.22); }
}

/* Mobile overlay CV link */
.hp-mobile-links .cv-link {
  display: inline-block;
  font-family: var(--font-head);
  font-size: clamp(13px, 3vw, 18px);
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: var(--c-gold);
  color: var(--c-black);
  padding: 14px 40px;
  border-radius: 4px;
  box-shadow: 0 0 22px rgba(231,184,0,0.4);
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}
.hp-mobile-links .cv-link:hover {
  color: var(--c-black);
  background: #fff0a0;
  transform: translateY(-2px);
  box-shadow: 0 0 32px rgba(231,184,0,0.6);
}
.hp-mobile-links a:focus-visible,
.hp-mobile-close:focus-visible {
  outline: 2px solid var(--c-gold);
  outline-offset: 4px;
  border-radius: 2px;
}

.hp-burger {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none; border: none;
  cursor: none; padding: 4px;
}
.hp-burger span {
  display: block; width: 24px; height: 1.5px;
  background: var(--c-off-white);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.hp-mobile-overlay {
  position: fixed; inset: 0;
  background: var(--c-black);
  z-index: 9990;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.4s ease;
}
.hp-mobile-overlay.open { opacity: 1; pointer-events: all; }

.hp-mobile-close {
  position: absolute; top: 28px; right: var(--gutter);
  background: none; border: none;
  color: var(--c-off-white); font-size: 32px; line-height: 1;
  cursor: none; opacity: 0.6; transition: opacity 0.2s;
}
.hp-mobile-close:hover { opacity: 1; }

.hp-mobile-links {
  list-style: none; margin: 0; padding: 0;
  text-align: center; display: flex; flex-direction: column; gap: 28px;
}
.hp-mobile-links a {
  font-family: var(--font-display);
  font-size: clamp(28px, 8vw, 52px);
  color: var(--c-off-white); letter-spacing: -0.01em; transition: color 0.2s;
}
.hp-mobile-links a:hover { color: var(--c-gold); }


/* ============================================================
   HERO
   ============================================================ */
.s-hero {
  position: relative;
  min-height: 100vh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 0 var(--gutter) clamp(56px, 9vh, 110px);
  overflow: hidden;
  background: var(--c-black);
}

#hero-canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
}

/* ── Grid overlay on hero — regular 24×24, grey→gold, diagonal fade ── */
.s-hero::before {
  content: '';
  position: absolute; inset: var(--nav-h) 0 0 0; /* top offset hides grid behind transparent nav */
  pointer-events: none; z-index: 1;
  background-image:
    /* Columns — 24 cols, vw so cells are square */
    repeating-linear-gradient(90deg, transparent 0, transparent calc(4.1667vw - 1px), rgba(231,184,0,0.13) calc(4.1667vw - 1px), rgba(231,184,0,0.13) 4.1667vw),
    /* Rows — same vw unit = square cells */
    repeating-linear-gradient(0deg,  transparent 0, transparent calc(4.1667vw - 1px), rgba(231,184,0,0.13) calc(4.1667vw - 1px), rgba(231,184,0,0.13) 4.1667vw);
  /* Diagonal fade: grey top-left → gold mid → transparent bottom-right */
  mask-image: linear-gradient(145deg, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.60) 40%, rgba(0,0,0,0.18) 68%, transparent 90%);
  -webkit-mask-image: linear-gradient(145deg, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.60) 40%, rgba(0,0,0,0.18) 68%, transparent 90%);
}

.s-hero::after {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 60% 100%, rgba(231,184,0,0.06) 0%, transparent 60%),
    linear-gradient(to top, rgba(8,8,8,0.7) 0%, transparent 50%);
  pointer-events: none; z-index: 1;
}

.hero-inner {
  position: relative; z-index: 2;
  max-width: var(--container); margin: 0 auto; width: 100%;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: 1fr auto;
  align-items: end; min-height: 60vh;
}

.hero-left {
  grid-column: 1; grid-row: 1 / 3;
  display: flex; flex-direction: column; justify-content: flex-end;
}

.hero-right {
  grid-column: 2; grid-row: 1 / 3;
  align-self: end;
  padding-left: clamp(32px, 5vw, 80px);
}

.hero-name {
  font-family: var(--font-display);
  font-size: clamp(64px, 12vw, 190px);
  line-height: 0.88;
  color: var(--c-off-white);
  letter-spacing: -0.025em;
  margin: 0; padding-bottom: 24px;
}
.hero-name .line { display: block; overflow: hidden; }
.hero-name .line-inner { display: block; transform: translateY(115%); }
.hero-name .gold { color: var(--c-gold); }

.hero-rule {
  width: 100%; height: 1px;
  background: rgba(255,255,255,0.1);
  margin-bottom: 28px;
  transform: scaleX(0); transform-origin: left;
}

.hero-footer {
  display: flex; align-items: center;
  justify-content: space-between; gap: 32px; flex-wrap: wrap;
  opacity: 0;
}

.hero-role {
  font-family: var(--font-head);
  font-size: clamp(13px, 1.6vw, 18px);
  font-weight: 300;
  color: rgba(240,236,227,0.65);
  letter-spacing: 0.06em; line-height: 1.5; max-width: 440px;
}
.hero-role strong { color: var(--c-off-white); font-weight: 600; }

/* Availability badge */
.hero-avail {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(240,236,227,0.55);
  margin-bottom: 12px;
}
.hero-avail .status-dot {
  width: 7px; height: 7px;
  background: #00e676;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
  animation: pulse-green 2s ease-in-out infinite;
}
@keyframes pulse-green {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0,230,118,0.5); }
  50%       { box-shadow: 0 0 0 5px rgba(0,230,118,0); }
}

.hero-ctas { display: flex; align-items: center; gap: 16px; flex-shrink: 0; flex-wrap: wrap; }

.btn-hero {
  font-family: var(--font-head);
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--c-black) !important; background: var(--c-gold);
  padding: 13px 28px; border-radius: 2px;
  display: inline-block;
  transition: background 0.2s, transform 0.25s var(--ease-expo);
}
.btn-hero:hover { background: #fff0a0; transform: translateY(-2px); color: var(--c-black) !important; }

/* Ghost CTA — secondary hero button */
.btn-hero-ghost {
  font-family: var(--font-head);
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(240,236,227,0.75);
  border: 1px solid rgba(231,184,0,0.35);
  padding: 12px 24px; border-radius: 2px;
  display: inline-block;
  transition: border-color 0.2s, color 0.2s, transform 0.25s var(--ease-expo);
}
.btn-hero-ghost:hover {
  color: var(--c-off-white);
  border-color: rgba(231,184,0,0.75);
  transform: translateY(-2px);
}

.hero-socials { display: flex; gap: 14px; align-items: center; }
.hero-socials a { display: flex; align-items: center; opacity: 0.4; transition: opacity 0.2s; }
.hero-socials a:hover { opacity: 1; }
.hero-socials img { width: 22px; }

.hero-portrait {
  width: clamp(200px, 22vw, 360px);
  display: block;
  filter: grayscale(0.1) contrast(1.05);
  clip-path: polygon(18% 0%, 100% 0%, 100% 100%, 0% 100%);
  opacity: 0; transform: translateY(20px);
}

.hero-stats {
  position: absolute;
  bottom: clamp(56px, 9vh, 110px); right: calc(var(--gutter) / 2);
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--c-grey-4);
  writing-mode: vertical-rl; text-orientation: mixed;
  transform: rotate(180deg); z-index: 2; opacity: 0.65;
}

.hero-scroll {
  position: absolute; bottom: 28px; left: var(--gutter);
  display: flex; align-items: center; gap: 14px;
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--c-grey-4); z-index: 2;
  opacity: 0; animation: heroScrollIn 0.8s 2.2s forwards;
}

.hero-scroll-line {
  width: 44px; height: 1px;
  background: var(--c-grey-1);
  position: relative; overflow: hidden;
}
.hero-scroll-line::after {
  content: ''; position: absolute; top: 0; left: -100%;
  width: 100%; height: 100%; background: var(--c-gold);
  animation: scanLine 1.8s 2.2s linear infinite;
}

@keyframes scanLine { 0% { left: -100%; } 100% { left: 100%; } }
@keyframes heroScrollIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }


/* ============================================================
   TICKER — fixed seamless approach
   ============================================================ */
.s-ticker {
  background: var(--c-gold);
  padding: 15px 0;
  overflow: hidden;
  position: relative; z-index: 3;
}

/* Single strip, double content, animate -50% */
.ticker-inner {
  display: flex;
  width: max-content;
  animation: tickerRoll 30s linear infinite;
}

@keyframes tickerRoll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.ticker-item {
  display: flex; align-items: center; gap: 28px;
  padding: 0 28px;
  font-family: var(--font-head);
  font-size: 11px; font-weight: 800;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--c-black); white-space: nowrap;
}

.ticker-sep {
  width: 5px; height: 5px;
  background: rgba(0,0,0,0.25); border-radius: 50%; flex-shrink: 0;
}


/* ============================================================
   WORK
   ============================================================ */
.s-work {
  background:
    radial-gradient(ellipse at 92% 8%, rgba(231,184,0,0.22) 0%, rgba(231,184,0,0.06) 35%, transparent 65%),
    radial-gradient(ellipse at 50% 50%, transparent 30%, rgba(0,0,0,0.6) 100%),
    linear-gradient(160deg, rgba(231,184,0,0.04) 0%, transparent 50%),
    #0a0e1a;
  padding: var(--section-pad) var(--gutter);
  position: relative;
}
.s-work::before {
  content: '';
  position: absolute; inset: 0;
  pointer-events: none;
  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.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='320' height='320'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.4' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='320' height='320' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px, 320px 320px;
  mix-blend-mode: screen;
  opacity: 0.06;
}

.section-head {
  max-width: var(--container); margin: 0 auto 56px;
  display: flex; align-items: baseline; gap: 20px; flex-wrap: wrap;
}
.section-subtitle {
  width: 100%;
  font-family: var(--font-body);
  font-size: clamp(14px, 1.4vw, 17px);
  font-weight: 400;
  color: rgba(240,236,227,0.5);
  margin-top: 8px;
  line-height: 1.6;
  max-width: 520px;
}

.section-tag {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--c-gold);
  border: 1px solid rgba(231,184,0,0.4);
  padding: 5px 12px; border-radius: 2px; flex-shrink: 0;
  transition: background 0.3s ease, color 0.3s ease;
}

.section-tag.unlocked {
  background: var(--c-gold);
  color: var(--c-black);
}

.section-title {
  font-family: var(--font-head);
  font-size: clamp(28px, 4.5vw, 60px); font-weight: 800;
  color: var(--c-off-white); letter-spacing: -0.025em; line-height: 1; margin: 0;
}
.section-title .dim { color: rgba(240,236,227,0.2); }

.work-list { max-width: var(--container); margin: 0 auto; }

.work-row {
  border-top: 1px solid rgba(255,255,255,0.06);
  position: relative; overflow: hidden; display: block;
}
.work-row:last-child { border-bottom: 1px solid rgba(255,255,255,0.06); }

.work-row-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0; transition: opacity 0.6s ease; z-index: 0;
}
.work-row-bg::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(8,8,8,0.94) 50%, rgba(8,8,8,0.7));
}
.work-row:hover .work-row-bg { opacity: 1; }

.work-row-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 72px 1fr auto;
  align-items: center; gap: 28px;
  padding: 28px 0;
  transition: padding 0.45s var(--ease-expo);
}
.work-row:hover .work-row-inner { padding: 40px 0; }

.work-num {
  font-family: var(--font-mono); font-size: 12px;
  color: var(--c-grey-4); letter-spacing: 0.08em; flex-shrink: 0;
}

.work-title {
  font-family: var(--font-head);
  font-size: clamp(18px, 2.8vw, 34px); font-weight: 700;
  color: var(--c-off-white); letter-spacing: -0.02em; line-height: 1.15;
  margin: 0 0 10px;
  transition: color 0.25s ease;
}
.work-row:hover .work-title { color: var(--c-gold); }

.work-tags { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

.wtag {
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--c-grey-4);
  border: 1px solid rgba(255,255,255,0.12); padding: 4px 10px; border-radius: 2px;
}
.wtag-gold { color: var(--c-gold); border-color: rgba(231,184,0,0.35); }

.work-impact {
  font-family: var(--font-head); font-size: 12px; font-weight: 700;
  color: var(--c-gold); letter-spacing: 0.05em; margin-left: 4px;
}

.work-arrow {
  width: 52px; height: 52px;
  border: 1px solid rgba(255,255,255,0.1); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  transition: background 0.25s, border-color 0.25s, transform 0.4s var(--ease-expo);
}
.work-arrow svg {
  width: 18px; height: 18px;
  stroke: var(--c-grey-3); fill: none; stroke-width: 1.5;
  stroke-linecap: round; stroke-linejoin: round;
  transition: stroke 0.25s, transform 0.4s var(--ease-expo);
}
.work-row:hover .work-arrow { background: var(--c-gold); border-color: var(--c-gold); transform: rotate(45deg); }
.work-row:hover .work-arrow svg { stroke: var(--c-black); transform: rotate(-45deg); }


/* ============================================================
   ABOUT
   ============================================================ */
.s-about { background: var(--c-warm-white); padding: var(--section-pad) var(--gutter); }

.about-inner { max-width: var(--container); margin: 0 auto; }

.about-top {
  display: grid; grid-template-columns: auto 1fr;
  gap: clamp(32px, 5vw, 80px); align-items: start; margin-bottom: 72px;
}

.about-big-num {
  font-family: var(--font-display);
  font-size: clamp(100px, 16vw, 220px);
  line-height: 0.85; color: var(--c-black); letter-spacing: -0.03em;
}
.about-big-num sup { font-size: 0.35em; vertical-align: super; color: var(--c-copper); }

.about-big-label {
  display: block; font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--c-grey-2); margin-bottom: 6px; margin-top: 8px;
}

.about-text { padding-top: 16px; }
.about-text p {
  font-family: var(--font-body); font-size: clamp(14px, 1.4vw, 17px);
  line-height: 1.85; color: #555; letter-spacing: 0.02em; margin: 0 0 16px;
}
.about-text strong { color: var(--c-black); font-weight: 700; }

.about-stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border: 1px solid rgba(0,0,0,0.08); gap: 1px;
  background: rgba(0,0,0,0.08); margin-bottom: 64px;
}
.about-stat { background: var(--c-warm-white); padding: 32px 24px; text-align: center; }
.stat-num {
  display: block; font-family: var(--font-display);
  font-size: clamp(40px, 5.5vw, 68px); color: var(--c-black); line-height: 1; letter-spacing: -0.03em;
}
.stat-num .plus { color: var(--c-copper); }
.stat-label {
  display: block; font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--c-grey-2); margin-top: 10px;
}

/* Skills */
.skills-header { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; }
.skills-label {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--c-grey-2);
}
.skills-xp-hint { color: var(--c-gold); opacity: 0.85; }
.skills-rule { flex: 1; height: 1px; background: rgba(0,0,0,0.1); }
.skills-cloud { display: flex; flex-wrap: wrap; gap: 10px; }

.skill {
  font-family: var(--font-head); font-size: 12px; font-weight: 600;
  color: var(--c-black); padding: 8px 18px;
  border: 1.5px solid rgba(0,0,0,0.14); border-radius: 100px;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.25s var(--ease-expo);
  cursor: default; position: relative;
}
.skill:hover {
  background: var(--c-gold); border-color: var(--c-gold);
  color: var(--c-black); transform: translateY(-3px);
}
.skill.primary { background: var(--c-black); color: var(--c-off-white); border-color: var(--c-black); }
.skill.primary:hover { background: var(--c-gold); border-color: var(--c-gold); color: var(--c-black); }
.skill.xp-earned { outline: 2px solid var(--c-gold); outline-offset: 3px; }


/* ============================================================
   APPROACH
   ============================================================ */
.s-approach {
  background:
    radial-gradient(ellipse at 88% 0%, rgba(231,184,0,0.18) 0%, rgba(231,184,0,0.05) 40%, transparent 65%),
    linear-gradient(160deg, rgba(231,184,0,0.06) 0%, transparent 50%),
    #f5f0e6;
  padding: var(--section-pad) var(--gutter);
  overflow: hidden;
  position: relative;
}
.approach-inner { max-width: var(--container); margin: 0 auto; }

/* Section heading overrides — per-section accent colors */
.s-work .section-tag {
  color: var(--c-gold);
  border-color: rgba(231,184,0,0.3);
  background: rgba(231,184,0,0.08);
}
.s-about .section-tag {
  color: var(--c-copper);
  border-color: rgba(196,107,39,0.3);
  background: rgba(196,107,39,0.08);
}

/* Section heading overrides for light warm background */
.s-approach .section-tag {
  color: var(--c-black);
  border-color: rgba(0,0,0,0.18);
  background: rgba(0,0,0,0.05);
}
.s-approach .section-title { color: var(--c-black); }
.s-approach .section-title .dim { color: rgba(11,10,9,0.28); }
.s-approach .section-subtitle { color: rgba(11,10,9,0.6); }

.approach-steps {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border: 1px solid rgba(0,0,0,0.12); gap: 1px;
  background: rgba(0,0,0,0.12); margin-top: 56px;
}

.a-step {
  background: var(--c-black); padding: 48px 32px 52px;
  position: relative; overflow: hidden;
  transition: background 0.4s ease;
}
.a-step:hover { background: var(--c-grey-1); }

.a-step-ghost {
  position: absolute; top: 12px; right: 18px;
  font-family: var(--font-display);
  font-size: clamp(60px, 8vw, 96px);
  color: rgba(255,255,255,0.03); line-height: 1;
  transition: color 0.4s ease; pointer-events: none; user-select: none;
}
.a-step:hover .a-step-ghost { color: rgba(231,184,0,0.07); }

.a-step::before {
  content: ''; position: absolute; top: 48px; left: 0;
  width: 3px; height: 0; background: var(--c-gold);
  transition: height 0.5s var(--ease-expo);
}
.a-step:hover::before { height: 56px; }

.a-step-tag {
  display: block; font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--c-gold); margin-bottom: 22px;
}
.a-step-title {
  font-family: var(--font-head); font-size: clamp(16px, 1.8vw, 22px); font-weight: 700;
  color: var(--c-off-white); letter-spacing: -0.01em; line-height: 1.25; margin: 0 0 16px;
}
.a-step-desc {
  font-family: var(--font-body); font-size: 14px;
  line-height: 1.75; color: var(--c-grey-4); letter-spacing: 0.01em;
}


/* ============================================================
   BRANDS — fixed seamless marquee
   ============================================================ */
.s-brands {
  background: var(--c-off-white); padding: var(--section-pad) 0; overflow: hidden;
}

.brands-label {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--c-grey-2); text-align: center;
  margin-bottom: 48px; padding: 0 var(--gutter);
}

.brands-overflow { overflow: hidden; }

/* Single flex strip with 24 items (12 × 2), animate -50% of its own width */
.brands-strip {
  display: flex;
  width: max-content;
  animation: brandsRoll 32s linear infinite;
}

@keyframes brandsRoll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.brand-item {
  padding: 16px 48px;
  border-right: 1px solid rgba(0,0,0,0.07);
  display: flex; align-items: center; justify-content: center;
  filter: grayscale(1) opacity(0.35);
  transition: filter 0.35s ease;
  flex-shrink: 0;
}
.brand-item:hover { filter: grayscale(0) opacity(1); }
.brand-item img { height: 26px; width: auto; object-fit: contain; display: block; }


/* ============================================================
   CONTACT — FINAL MISSION
   ============================================================ */
.s-contact {
  background:
    radial-gradient(ellipse at 50% 108%, rgba(231,184,0,0.26) 0%, rgba(231,184,0,0.07) 45%, transparent 70%),
    radial-gradient(ellipse at 50% 50%, transparent 28%, rgba(0,0,0,0.65) 100%),
    linear-gradient(0deg, rgba(231,184,0,0.04) 0%, transparent 35%),
    var(--c-black);
  padding: var(--section-pad) var(--gutter);
  min-height: 85vh;
  display: flex; align-items: center;
  position: relative; overflow: hidden;
}
.s-contact::before {
  content: '';
  position: absolute; inset: 0;
  pointer-events: none;
  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.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='320' height='320'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.4' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='320' height='320' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px, 320px 320px;
  mix-blend-mode: screen;
  opacity: 0.06;
}

.contact-ghost {
  position: absolute;
  font-family: var(--font-display);
  font-size: clamp(80px, 22vw, 340px);
  color: rgba(255,255,255,0.015);
  white-space: nowrap; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  letter-spacing: -0.04em;
  pointer-events: none; user-select: none;
}

.contact-inner {
  max-width: var(--container); margin: 0 auto;
  width: 100%; position: relative; z-index: 1;
}

/* Status pill */
.contact-status {
  display: inline-flex; align-items: center; gap: 10px;
  border: 1px solid rgba(0,230,118,0.3);
  border-radius: 100px; padding: 6px 16px 6px 10px;
  margin-bottom: 28px;
}

.status-dot {
  width: 7px; height: 7px;
  background: var(--c-green); border-radius: 50%;
  animation: statusPulse 2s ease infinite;
}

@keyframes statusPulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(0,230,118,0.4); }
  50% { opacity: 0.8; box-shadow: 0 0 0 6px rgba(0,230,118,0); }
}

.status-text {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--c-green);
}
.status-divider { color: rgba(0,230,118,0.4); }
.status-year {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.10em; color: rgba(0,230,118,0.65);
}

/* Mission label */
.contact-mission-label {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--c-gold); margin-bottom: 16px;
  display: flex; align-items: center; gap: 14px;
}
.contact-mission-label::before {
  content: '';
  width: 28px; height: 1px; background: var(--c-gold);
}

/* Headline */
.contact-headline {
  font-family: var(--font-display);
  font-size: clamp(52px, 9.5vw, 140px);
  line-height: 0.88; color: var(--c-off-white);
  letter-spacing: -0.03em; margin: 0 0 44px;
}
.contact-headline .accent {
  color: var(--c-gold);
  text-shadow: 0 0 100px rgba(231,184,0,0.2);
}

/* Mission grid */
.contact-mission-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 0; border: 1px solid rgba(255,255,255,0.06);
  margin-bottom: 48px;
}

.mission-cell {
  padding: 20px 24px;
  border-right: 1px solid rgba(255,255,255,0.06);
}
.mission-cell:last-child { border-right: none; }

.mission-key {
  display: block; font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--c-grey-4); margin-bottom: 8px;
}
.mission-val {
  display: block; font-family: var(--font-head);
  font-size: clamp(14px, 1.5vw, 17px); font-weight: 500;
  color: var(--c-off-white); line-height: 1.45;
}
.mission-reward em {
  display: block; font-style: normal;
  font-family: var(--font-mono); font-size: 11px;
  color: var(--c-gold); margin-top: 4px;
}

/* CTA button */
.contact-cta {
  display: inline-flex; align-items: center; gap: 0;
  position: relative; overflow: hidden;
  border: 1.5px solid rgba(231,184,0,0.4);
  border-radius: 3px; padding: 0;
  transition: border-color 0.3s ease;
}
.contact-cta:hover { border-color: var(--c-gold); }

.cta-label {
  font-family: var(--font-mono); font-size: 11px; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--c-black); background: var(--c-gold);
  padding: 16px 24px;
  transition: background 0.2s;
}
.contact-cta:hover .cta-label { background: #ffd700; }

.cta-email {
  font-family: var(--font-head); font-size: clamp(14px, 2vw, 22px);
  font-weight: 300; color: var(--c-grey-4);
  padding: 16px 28px; letter-spacing: 0.02em;
  transition: color 0.2s;
}
.contact-cta:hover .cta-email { color: var(--c-off-white); }

.cta-xp-badge {
  font-family: var(--font-mono); font-size: 11px; font-weight: 700;
  letter-spacing: 0.10em; color: var(--c-gold);
  padding: 16px 20px 16px 0;
  opacity: 0.8; transition: opacity 0.2s;
}
.contact-cta:hover .cta-xp-badge { opacity: 1; }

/* Socials */
.contact-bottom {
  display: flex; align-items: center; gap: 28px;
  margin-top: 40px; padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.contact-social {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--c-grey-4); transition: color 0.2s;
}
.contact-social img {
  width: 16px; filter: invert(1); opacity: 0.4; transition: opacity 0.2s;
}
.contact-social svg { opacity: 0.4; transition: opacity 0.2s; }
.contact-social:hover { color: var(--c-gold); }
.contact-social:hover img,
.contact-social:hover svg { opacity: 1; }

/* CV download — prominent gold button in contact section */
.contact-cv-btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 11px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--c-black) !important;
  background: var(--c-gold);
  border: none; border-radius: 3px;
  padding: 11px 20px;
  box-shadow: 0 0 20px rgba(231,184,0,0.4), 0 0 48px rgba(231,184,0,0.15);
  animation: cvPulse 3s ease-in-out infinite;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}
.contact-cv-btn svg { flex-shrink: 0; }
.contact-cv-btn:hover {
  color: var(--c-black);
  background: #ffd700;
  transform: translateY(-2px);
  box-shadow: 0 0 32px rgba(231,184,0,0.65), 0 0 64px rgba(231,184,0,0.25);
  animation: none;
}


/* ============================================================
   UX QUIZ
   ============================================================ */
.s-ux-quiz {
  padding: var(--section-pad) var(--gutter);
  background:
    radial-gradient(ellipse at 88% 105%, rgba(231,184,0,0.24) 0%, rgba(231,184,0,0.07) 40%, transparent 65%),
    radial-gradient(ellipse at 50% 50%, transparent 30%, rgba(0,0,0,0.65) 100%),
    linear-gradient(160deg, transparent 50%, rgba(231,184,0,0.03) 100%),
    #0d0b10;
  border-top: 1px solid rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  overflow: hidden;
  position: relative;
}
.s-ux-quiz::before {
  content: '';
  position: absolute; inset: 0;
  pointer-events: none;
  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.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='320' height='320'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.4' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='320' height='320' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px, 320px 320px;
  mix-blend-mode: screen;
  opacity: 0.06;
}
.uxq-wrap { max-width: 780px; margin: 0 auto; }

/* header */
.uxq-header { text-align: center; margin-bottom: 48px; }
.uxq-tag {
  display: inline-block;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--c-blue);
  border: 1px solid rgba(37,99,255,0.3); border-radius: 2px;
  background: rgba(37,99,255,0.08);
  padding: 4px 12px; margin-bottom: 20px;
}
.uxq-title {
  font-family: var(--font-head); font-size: clamp(36px, 6vw, 72px);
  font-weight: 800; color: var(--c-off-white); letter-spacing: -0.03em;
  margin: 0 0 14px; line-height: 1;
}
.uxq-title-or {
  color: var(--c-gold); font-style: italic; font-weight: 400;
}
.uxq-subtitle {
  font-family: var(--font-body); font-size: 15px;
  color: var(--c-grey-4); line-height: 1.7; margin: 0;
}

/* idle */
.uxq-idle { text-align: center; padding: 20px 0 8px; }
.uxq-idle-glyphs {
  display: flex; justify-content: center; gap: 24px;
  margin-bottom: 28px;
}
.uxq-idle-glyphs span {
  font-size: 28px; opacity: 0.35;
  animation: uxqFloat 3s ease-in-out infinite;
}
.uxq-idle-glyphs span:nth-child(2) { animation-delay: 0.4s; }
.uxq-idle-glyphs span:nth-child(3) { animation-delay: 0.8s; }
.uxq-idle-glyphs span:nth-child(4) { animation-delay: 1.2s; }
.uxq-idle-glyphs span:nth-child(5) { animation-delay: 1.6s; }
@keyframes uxqFloat {
  0%, 100% { transform: translateY(0); opacity: 0.35; }
  50%       { transform: translateY(-6px); opacity: 0.65; }
}
.uxq-idle-label {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em;
  color: var(--c-grey-3); margin: 0 0 32px;
}
.uxq-start-btn {
  font-family: var(--font-mono); font-size: 12px; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--c-black); background: var(--c-gold);
  border: none; border-radius: 3px; padding: 16px 44px;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 0 28px rgba(231,184,0,0.35);
}
.uxq-start-btn:hover { background: #ffd700; transform: translateY(-2px); box-shadow: 0 0 44px rgba(231,184,0,0.55); }

/* top bar */
.uxq-top-bar {
  display: flex; align-items: center; gap: 12px; margin-bottom: 24px;
}
.uxq-progress-track {
  flex: 1; height: 4px; background: rgba(255,255,255,0.07);
  border-radius: 2px; position: relative; overflow: hidden;
}
.uxq-progress-fill {
  position: absolute; left: 0; top: 0; height: 100%;
  background: var(--c-gold); border-radius: 2px;
  width: 0%; transition: width 0.5s var(--ease-expo);
}
.uxq-progress-dots {
  position: absolute; inset: 0; display: flex;
}
.uxq-progress-dot {
  flex: 1; height: 100%; border-right: 1px solid rgba(0,0,0,0.4);
}
.uxq-progress-dot:last-child { border-right: none; }
.uxq-reset-inline {
  font-family: var(--font-mono); font-size: 16px;
  background: none; border: none; color: var(--c-grey-3);
  cursor: pointer; padding: 4px; line-height: 1;
  transition: color 0.2s, transform 0.2s;
}
.uxq-reset-inline:hover { color: var(--c-gold); transform: rotate(-180deg); }

/* card */
.uxq-card {
  position: relative; overflow: hidden;
  background: var(--c-grey-1); border: 1px solid rgba(255,255,255,0.07);
  border-radius: 6px; padding: 48px 48px 44px;
  transition: border-color 0.3s;
}
.uxq-card.correct  { border-color: rgba(0,200,100,0.5); animation: uxqShakeGood 0.3s ease; }
.uxq-card.wrong    { border-color: rgba(220,50,50,0.5);  animation: uxqShakeBad  0.5s ease; }
@keyframes uxqShakeGood {
  0%,100% { transform: translateX(0); }
  33% { transform: translateX(3px); }
  66% { transform: translateX(-3px); }
}
@keyframes uxqShakeBad {
  0%,100% { transform: translateX(0); }
  15% { transform: translateX(-8px); }
  30% { transform: translateX(8px); }
  45% { transform: translateX(-6px); }
  60% { transform: translateX(6px); }
  75% { transform: translateX(-3px); }
  90% { transform: translateX(3px); }
}

.uxq-ghost {
  position: absolute; top: -8px; right: 16px;
  font-family: var(--font-display);
  font-size: clamp(80px, 14vw, 140px);
  color: rgba(255,255,255,0.028); line-height: 1;
  pointer-events: none; user-select: none;
  transition: color 0.4s;
}
.uxq-card.correct .uxq-ghost { color: rgba(0,200,100,0.06); }
.uxq-card.wrong   .uxq-ghost { color: rgba(220,50,50,0.06); }

.uxq-card-top {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 28px;
}
.uxq-cat {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--c-gold);
  background: rgba(231,184,0,0.08); border: 1px solid rgba(231,184,0,0.2);
  border-radius: 2px; padding: 4px 10px;
}
.uxq-counter {
  font-family: var(--font-display); font-size: 24px; font-weight: 700;
  color: var(--c-off-white); letter-spacing: -0.02em; line-height: 1;
}
.uxq-counter-of { font-size: 14px; color: var(--c-grey-3); font-weight: 400; }

.uxq-question {
  font-family: var(--font-head); font-size: clamp(17px, 2.2vw, 24px);
  font-weight: 700; color: var(--c-off-white);
  line-height: 1.45; letter-spacing: -0.01em; margin: 0 0 36px;
  min-height: 80px;
}

.uxq-btns {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
}
.uxq-btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; padding: 22px 16px;
  background: var(--c-grey-2); border: 1px solid rgba(255,255,255,0.09);
  border-radius: 4px; cursor: pointer;
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
  position: relative; overflow: hidden;
}
.uxq-btn::after {
  content: ''; position: absolute; inset: 0; opacity: 0;
  transition: opacity 0.15s;
}
.uxq-btn--t::after { background: rgba(0,200,100,0.15); }
.uxq-btn--f::after { background: rgba(220,50,50,0.15); }
.uxq-btn:hover:not(:disabled)::after { opacity: 1; }
.uxq-btn:hover:not(:disabled) { transform: translateY(-2px); border-color: rgba(255,255,255,0.2); }
.uxq-btn:disabled { cursor: default; transform: none; }

.uxq-btn-glyph {
  font-size: 28px; line-height: 1;
  transition: transform 0.2s;
}
.uxq-btn--t .uxq-btn-glyph { color: #00e676; }
.uxq-btn--f .uxq-btn-glyph { color: #ff5252; }
.uxq-btn:hover:not(:disabled) .uxq-btn-glyph { transform: scale(1.2); }

.uxq-btn-word {
  font-family: var(--font-mono); font-size: 11px; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--c-grey-4);
}

/* answer states */
.uxq-btn.state-correct {
  background: rgba(0,200,100,0.18); border-color: #00c864;
}
.uxq-btn.state-correct .uxq-btn-word { color: #00e676; }
.uxq-btn.state-wrong {
  background: rgba(220,50,50,0.18); border-color: #dc3232;
}
.uxq-btn.state-wrong .uxq-btn-word { color: #ff5252; }
.uxq-btn.state-dim { opacity: 0.3; }

.uxq-feedback {
  margin-top: 18px; min-height: 20px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em;
  color: var(--c-grey-4); line-height: 1.5;
  transition: opacity 0.2s;
}

/* result */
.uxq-result {
  text-align: center; padding: 56px 24px 48px;
}
.uxq-result-ring {
  width: 120px; height: 120px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 28px;
  border: 2px solid rgba(255,255,255,0.1);
  position: relative;
}
.uxq-result-ring::before {
  content: ''; position: absolute; inset: -6px; border-radius: 50%;
  border: 2px solid transparent;
  animation: uxqRingSpin 3s linear infinite;
}
.uxq-result.win .uxq-result-ring {
  border-color: var(--c-gold);
  box-shadow: 0 0 40px rgba(231,184,0,0.3), inset 0 0 40px rgba(231,184,0,0.06);
}
.uxq-result.win .uxq-result-ring::before {
  border-color: rgba(231,184,0,0.5) transparent transparent transparent;
}
.uxq-result.fail .uxq-result-ring {
  border-color: #dc3232;
  box-shadow: 0 0 40px rgba(220,50,50,0.25), inset 0 0 40px rgba(220,50,50,0.05);
}
.uxq-result.fail .uxq-result-ring::before {
  border-color: rgba(220,50,50,0.5) transparent transparent transparent;
}
@keyframes uxqRingSpin {
  to { transform: rotate(360deg); }
}
.uxq-result-glyph { font-size: 52px; line-height: 1; }

.uxq-result-title {
  font-family: var(--font-head); font-size: clamp(28px, 5vw, 52px);
  font-weight: 800; letter-spacing: -0.02em; margin: 0 0 12px;
}
.uxq-result.win  .uxq-result-title { color: var(--c-gold); }
.uxq-result.fail .uxq-result-title { color: #ff5252; }

.uxq-result-sub {
  font-family: var(--font-body); font-size: 15px;
  color: var(--c-grey-3); line-height: 1.65; margin: 0 0 28px;
  max-width: 440px; margin-left: auto; margin-right: auto;
}
.uxq-result-xp {
  display: inline-block;
  font-family: var(--font-mono); font-size: 15px; font-weight: 700;
  letter-spacing: 0.1em; color: var(--c-black);
  background: var(--c-gold); padding: 8px 24px; border-radius: 2px;
  margin-bottom: 28px;
}
.uxq-result.fail .uxq-result-xp { background: #dc3232; color: #fff; }

.uxq-reset-btn {
  display: inline-block;
  font-family: var(--font-mono); font-size: 11px; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  background: transparent; color: var(--c-grey-3);
  border: 1px solid rgba(255,255,255,0.15); border-radius: 3px;
  padding: 12px 28px; cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}
.uxq-reset-btn:hover { color: var(--c-gold); border-color: var(--c-gold); }

/* Quiz win CTA — only shown on .uxq-result.win */
.uxq-contact-cta {
  display: none;
  margin-top: 24px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.10em;
  color: var(--c-gold);
  text-decoration: none;
  border-bottom: 1px solid rgba(231,184,0,0.3);
  padding-bottom: 2px;
  transition: border-color 0.2s, color 0.2s;
}
.uxq-result.win .uxq-contact-cta { display: inline-block; }
.uxq-contact-cta:hover { color: var(--c-off-white); border-color: var(--c-off-white); }

.hidden { display: none !important; }

@media (max-width: 640px) {
  .uxq-card { padding: 32px 24px 28px; }
  .uxq-question { min-height: unset; }
  .uxq-idle-glyphs span { font-size: 22px; gap: 16px; }
}


/* ============================================================
   FOOTER
   ============================================================ */
.hp-footer {
  background: var(--c-dark); padding: 28px var(--gutter);
  border-top: 1px solid rgba(255,255,255,0.04);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  position: relative;
}
.hp-footer::before {
  content: '';
  position: absolute; inset: 0;
  pointer-events: none;
  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.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='320' height='320'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.4' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='320' height='320' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px, 320px 320px;
  mix-blend-mode: screen;
  opacity: 0.06;
}
.footer-copy {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.12em; color: var(--c-grey-4); /* #c0bdb6 on #111 = ~10:1 contrast */
}
.footer-copy span { color: var(--c-gold); }
.footer-back-top {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--c-grey-4); transition: color 0.2s;
  display: flex; align-items: center; gap: 8px;
}
.footer-back-top:hover { color: var(--c-gold); }

.reveal-up { opacity: 0; transform: translateY(40px); }


/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .approach-steps { grid-template-columns: repeat(2, 1fr); }
  .contact-mission-grid { grid-template-columns: 1fr 1fr; }
  .mission-cell:nth-child(2) { border-right: none; }
  .mission-cell:nth-child(3) { border-right: none; border-top: 1px solid rgba(255,255,255,0.06); grid-column: 1 / 3; }
}

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; grid-template-rows: auto auto; }
  .s-hero { justify-content: center; padding-bottom: clamp(32px, 5vh, 56px); }
  .hero-right { grid-column: 1; grid-row: 1; padding-left: 0; padding-bottom: 16px; align-self: start; padding-top: var(--nav-h); }
  .hero-portrait { width: clamp(160px, 50vw, 260px); clip-path: none; float: right; }
  .hero-left { grid-row: 2; }
  .hero-name { font-size: clamp(56px, 16vw, 120px); }
  .about-top { grid-template-columns: 1fr; gap: 0; }
  .about-big-num { font-size: clamp(80px, 20vw, 150px); }
  .about-stats { grid-template-columns: repeat(2, 1fr); }
  .work-row-inner { grid-template-columns: 52px 1fr; gap: 20px; }
  .work-arrow { display: none; }
}

@media (max-width: 640px) {
  /* Collapse nav to logo | cta zone only; hide middle zone + dividers */
  .hp-nav {
    grid-template-columns: auto 1px auto;
  }
  .nav-zone--links,
  .hp-nav .nav-divider:first-of-type,
  .hp-nav .nav-divider:last-of-type {
    display: none;
  }
  .hp-nav-links { display: none; }
  .hp-nav-cv    { display: none; }
  .hp-burger { display: flex; }
  .about-stats { grid-template-columns: 1fr; }
  .approach-steps { grid-template-columns: 1fr; }
  .contact-headline { font-size: clamp(40px, 13vw, 80px); }
  .contact-mission-grid { grid-template-columns: 1fr; }
  .mission-cell { border-right: none !important; border-top: 1px solid rgba(255,255,255,0.06); }
  .mission-cell:first-child { border-top: none; }
  .cta-email { display: none; }
  .hp-footer { flex-direction: column; text-align: center; }
  .hero-stats { display: none; }
}
