@font-face {
  font-family: 'Clash Display';
  src: url('../assets/fonts/clash-display-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Clash Display';
  src: url('../assets/fonts/clash-display-500.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Clash Display';
  src: url('../assets/fonts/clash-display-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'General Sans';
  src: url('../assets/fonts/general-sans-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'General Sans';
  src: url('../assets/fonts/general-sans-400i.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'General Sans';
  src: url('../assets/fonts/general-sans-500.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'General Sans';
  src: url('../assets/fonts/general-sans-500i.woff2') format('woff2');
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'General Sans';
  src: url('../assets/fonts/general-sans-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* =========================================================
   Paulo Miguel — Portfolio v2
   Deep black + brass/ember glow · Fraunces + General Sans + Space Mono
   ========================================================= */

:root {
  --bg: #0c0b09;
  --bg-lift: #151310;
  --bg-card: #14110d;
  --fg: #f3efe7;
  --fg-muted: #8a8378;
  --fg-soft: rgba(243, 239, 231, 0.85);
  --accent: #C1663B;
  --accent-hot: #D97D52;
  --ember: #8A3E24;
  --accent-soft: rgba(193, 102, 59, 0.35);
  --accent-faint: rgba(193, 102, 59, 0.12);
  --hairline: rgba(193, 102, 59, 0.16);
  --border-soft: rgba(243, 239, 231, 0.08);

  --font-display: "Clash Display", "Arial Black", sans-serif;
  --font-body: "General Sans", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "Space Mono", "Courier New", monospace;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

  --gutter: clamp(1.5rem, 6vw, 7rem);
}

* { box-sizing: border-box; }

html { background: var(--bg); scroll-behavior: auto; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 1.5px solid var(--accent); outline-offset: 3px; }

.skip-link {
  position: fixed;
  top: -60px;
  left: 1.5rem;
  z-index: 1000;
  background: var(--accent);
  color: var(--bg);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  padding: 0.8rem 1.4rem;
  border-radius: 8px;
  transition: top 0.25s var(--ease-out);
}

.skip-link:focus { top: 1.5rem; }

em { font-family: var(--font-display); font-style: normal; color: var(--accent); }
strong { color: var(--fg); font-weight: 600; }

/* ---------- shared type ---------- */

.mono-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--fg-muted);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent);
  margin: 0 0 1.5rem;
}

.section-heading {
  margin: 0 0 2.5rem;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.4rem, 5.4vw, 4.6rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
}

.line-wrap { display: block; overflow: hidden; }
.line { display: block; transform: translateY(112%); will-change: transform; }

/* ---------- grain ---------- */

.grain {
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 160px 160px;
}

/* ---------- cursor ---------- */

.cursor { position: fixed; top: 0; left: 0; z-index: 999; pointer-events: none; will-change: transform; }

.cursor__dot,
.cursor__ring { position: absolute; top: 0; left: 0; border-radius: 50%; transform: translate(-50%, -50%); }

.cursor__dot { width: 5px; height: 5px; background: var(--accent); }

.cursor__ring {
  width: 34px; height: 34px;
  border: 1px solid var(--accent-soft);
  transition: width 0.3s var(--ease-out), height 0.3s var(--ease-out), border-color 0.3s, background 0.3s;
}

.cursor.is-magnetic .cursor__ring {
  width: 62px; height: 62px;
  border-color: var(--accent);
  background: rgba(193, 102, 59, 0.06);
}
.cursor.is-magnetic .cursor__dot { opacity: 0; }

.cursor__label { display: none; }

@media (pointer: coarse), (hover: none) { .cursor { display: none; } }
@media (pointer: fine) and (hover: hover) and (prefers-reduced-motion: no-preference) {
  body, a, button { cursor: none; }
}

/* ---------- preloader ---------- */

.preloader {
  position: fixed; inset: 0; z-index: 200;
  background: var(--bg);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 2rem;
}

.preloader__inner {
  display: flex; align-items: baseline; gap: 1.5rem;
}

.preloader__word {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.8rem, 4vw, 3rem);
  color: var(--fg);
  min-width: 8ch;
}

.preloader__count {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent);
  letter-spacing: 0.1em;
}

.preloader__bar { width: min(280px, 60vw); height: 1px; background: var(--border-soft); overflow: hidden; }
.preloader__fill { width: 0%; height: 100%; background: linear-gradient(90deg, var(--ember), var(--accent)); }

/* ---------- nav ---------- */

.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.4rem var(--gutter);
  transition: background 0.4s, backdrop-filter 0.4s, border-color 0.4s;
  border-bottom: 1px solid transparent;
}

.nav.is-scrolled {
  background: rgba(12, 11, 9, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--border-soft);
}

.nav__mark {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.3rem;
  letter-spacing: 0.01em;
}
.nav__mark-dot { color: var(--accent); }

.nav__links { display: flex; align-items: center; gap: 2rem; }

.nav__links a {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--fg-muted);
  transition: color 0.3s;
}
.nav__links a:hover { color: var(--accent); }

.nav__links a.nav__cta {
  color: var(--bg);
  background: var(--accent);
  padding: 0.6rem 1.1rem;
  border-radius: 100px;
  transition: background 0.3s, transform 0.3s;
}
.nav__links a.nav__cta:hover { color: var(--bg); background: var(--accent-hot); }

@media (max-width: 700px) {
  .nav__links { gap: 1.1rem; }
  .nav__links a.nav__cta { display: none; }
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 1rem 1.9rem;
  border-radius: 100px;
  transition: background 0.35s, color 0.35s, border-color 0.35s, box-shadow 0.35s;
  white-space: nowrap;
}

.btn--primary {
  background: var(--accent);
  color: var(--bg);
  box-shadow: 0 0 32px rgba(193, 102, 59, 0.25);
}
.btn--primary:hover {
  background: var(--accent-hot);
  box-shadow: 0 0 52px rgba(193, 102, 59, 0.45);
}

.btn--ghost {
  border: 1px solid var(--hairline);
  color: var(--fg);
}
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }

.btn--big {
  font-size: clamp(0.8rem, 1.6vw, 1rem);
  padding: 1.4rem 2.6rem;
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 7rem var(--gutter) 5rem;
  overflow: hidden;
}

.hero__canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  z-index: 0;
}

.hero__vignette {
  position: absolute; inset: 0; z-index: 1;
  background:
    radial-gradient(ellipse 90% 70% at 50% 45%, transparent 40%, var(--bg) 100%),
    linear-gradient(to bottom, rgba(12,11,9,0.4), transparent 30%, transparent 70%, var(--bg));
  pointer-events: none;
}

.hero__content { position: relative; z-index: 2; max-width: 900px; }

.hero__eyebrow {
  display: flex; align-items: center; gap: 0.7rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--fg-muted);
  margin: 0 0 2.2rem;
}

.hero__status-dot {
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px 2px var(--accent-soft);
  animation: pulse 2.4s ease-in-out infinite;
}

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

.hero__headline {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(3.6rem, 11vw, 9.5rem);
  line-height: 0.98;
  letter-spacing: -0.02em;
}

.hero__sub {
  margin: 2.4rem 0 0;
  max-width: 46ch;
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: var(--fg-soft);
  line-height: 1.65;
}

.hero__actions { display: flex; gap: 1rem; margin-top: 2.8rem; flex-wrap: wrap; }

/* floating chips */

.hero__chip {
  position: absolute;
  z-index: 2;
  display: flex; flex-direction: column; gap: 0.25rem;
  background: rgba(20, 17, 13, 0.6);
  border: 1px solid var(--hairline);
  border-radius: 14px;
  padding: 0.9rem 1.2rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}

.chip__label { font-family: var(--font-mono); font-size: 0.6rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--fg-muted); }
.chip__value { font-family: var(--font-display); font-size: 1.5rem; color: var(--accent); }

.hero__chip--1 { top: 14%; right: 10%; }
.hero__chip--2 { top: 33%; right: 22%; }
.hero__chip--3 { top: 52%; right: 6%; }
.hero__chip--4 { top: 71%; right: 24%; }
.hero__chip--5 { top: 89%; right: 8%; }

@media (max-width: 1000px) { .hero__chip { display: none; } }

.hero__scroll {
  position: absolute; bottom: 2.5rem; left: var(--gutter); z-index: 2;
  display: flex; align-items: center; gap: 0.9rem;
}

.hero__scroll-line {
  width: 1px; height: 38px;
  background: linear-gradient(to bottom, var(--accent), transparent);
}

/* ---------- marquee ---------- */

.marquee-band {
  padding: 3.5rem 0;
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  overflow: hidden;
  display: flex; flex-direction: column; gap: 1.6rem;
}

.marquee { overflow: hidden; white-space: nowrap; }

.marquee__track {
  display: inline-flex; align-items: center; gap: 2.5rem;
  padding-right: 2.5rem;
  will-change: transform;
}

.marquee--fwd .marquee__track { animation: marq 38s linear infinite; }
.marquee--rev .marquee__track { animation: marq 44s linear infinite reverse; }

.marquee__track span {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.4rem, 3vw, 2.4rem);
  color: var(--fg-muted);
  transition: color 0.3s;
}

.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee:hover span { color: var(--fg); }

.marquee__track i {
  font-style: normal;
  color: var(--accent);
  font-size: 0.9rem;
}

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

/* ---------- stats ---------- */

.stats { padding: 6rem var(--gutter); }

.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.stat { border-left: 1px solid var(--hairline); padding-left: 1.6rem; }

.stat__value {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(2.2rem, 4.2vw, 3.5rem);
  color: var(--accent);
  line-height: 1;
}

.stat__label { margin-top: 0.8rem; font-size: 0.9rem; color: var(--fg-muted); max-width: 20ch; }

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

/* ---------- about ---------- */

.about { padding: 8rem var(--gutter); border-top: 1px solid var(--border-soft); }

.about__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: center;
}

.about__body {
  font-size: 1.06rem;
  line-height: 1.75;
  color: var(--fg-soft);
  max-width: 58ch;
  margin: 0 0 1.4rem;
}

/* operator card */

.about__visual { display: flex; justify-content: center; }

.operator-card {
  position: relative;
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--hairline);
  border-radius: 18px;
  padding: 2.6rem;
  overflow: hidden;
  transform-style: preserve-3d;
}

.operator-card__glow {
  position: absolute;
  top: -40%; right: -40%;
  width: 80%; height: 80%;
  background: radial-gradient(circle, rgba(193,102,59,0.18), transparent 70%);
  pointer-events: none;
}

.operator-card__header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2rem; }

.operator-card__status {
  display: flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-mono); font-size: 0.62rem;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--accent);
}

.operator-card__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.9rem;
  margin-bottom: 0.4rem;
}

.operator-card__role { margin-bottom: 2rem; }

.operator-card__rows { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 2rem; }

.op-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  align-items: center;
  gap: 1rem;
  font-size: 0.82rem;
  color: var(--fg-muted);
}

.op-row__bar {
  height: 3px;
  background: var(--border-soft);
  border-radius: 3px;
  overflow: hidden;
}

.op-row__bar i {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--ember), var(--accent));
  border-radius: 3px;
  transition: width 1.4s var(--ease-out);
}

.op-row__bar.is-inview i { width: var(--w); }

.operator-card__tags { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 1.6rem; }

.operator-card__tag {
  font-size: 0.62rem;
  color: var(--fg-muted);
  border: 1px solid var(--border-soft);
  border-radius: 100px;
  padding: 0.4rem 0.85rem;
}

.operator-card__footer { padding-top: 1.4rem; border-top: 1px solid var(--border-soft); }

@media (max-width: 900px) {
  .about__inner { grid-template-columns: 1fr; }
}

/* ---------- strategy ---------- */

.strategy {
  padding: 8rem var(--gutter);
  border-top: 1px solid var(--border-soft);
}

.strategy__header { max-width: 780px; margin-bottom: 4rem; }

.strategy__intro {
  margin: 0;
  font-size: 1.06rem;
  line-height: 1.75;
  color: var(--fg-soft);
  max-width: 56ch;
}

.strategy__block { margin-top: 7rem; }

.strategy__sub {
  margin: 0 0 1.6rem;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.8rem, 3.6vw, 2.9rem);
  line-height: 1.1;
}

.strategy__sub--center { text-align: center; }

.strategy__cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: center;
}

.strategy__cols--reverse { direction: rtl; }
.strategy__cols--reverse > * { direction: ltr; }

@media (max-width: 900px) {
  .strategy__cols { grid-template-columns: 1fr; }
}

/* loop strip */

.loop {
  display: flex;
  align-items: center;
  gap: clamp(0.8rem, 2.5vw, 2rem);
  flex-wrap: wrap;
  padding: 2rem 0;
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
}

.loop__step { display: flex; align-items: baseline; gap: 0.6rem; }

.loop__num { color: var(--accent); }

.loop__name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.3rem, 2.6vw, 2rem);
  color: var(--fg);
}

.loop__arrow { color: var(--accent); opacity: 0.6; font-size: 1.1rem; }
.loop__arrow--back { margin-left: auto; font-size: 1.5rem; opacity: 0.9; }

@media (max-width: 700px) {
  .loop { flex-direction: column; align-items: flex-start; }
  .loop__arrow { transform: rotate(90deg); }
  .loop__arrow--back { margin-left: 0; transform: none; }
}

/* avatar chips */

.avatar-chips { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.8rem; }

.avatar-chip {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--fg-muted);
  background: none;
  border: 1px solid var(--border-soft);
  border-radius: 100px;
  padding: 0.5rem 0.95rem;
  cursor: pointer;
  transition: color 0.25s, border-color 0.25s, background 0.25s;
}

.avatar-chip:hover { color: var(--fg); border-color: var(--hairline); }

.avatar-chip.is-active {
  color: var(--accent);
  border-color: var(--hairline);
  background: var(--accent-faint);
}

.avatar-chip--more { border-style: dashed; }

/* dossier card */

.dossier {
  background: var(--bg-card);
  border: 1px solid var(--hairline);
  border-radius: 18px;
  padding: 2.2rem;
  box-shadow: 0 30px 70px rgba(0,0,0,0.45);
}

.dossier__header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 1.8rem;
}

.dossier__tag { color: var(--accent); }

.dossier__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.8rem;
  margin-bottom: 0.4rem;
}

.dossier__meta { margin-bottom: 2rem; }

.dossier__rows { display: flex; flex-direction: column; }

.dossier__row {
  display: grid;
  grid-template-columns: 128px 1fr;
  gap: 1.2rem;
  padding: 1.1rem 0;
  border-top: 1px solid var(--border-soft);
  transition: opacity 0.35s ease;
}

.dossier__row.is-dim { opacity: 0.35; }

.dossier__row > .mono-label { color: var(--accent); padding-top: 0.15rem; }

.dossier__row p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--fg-soft);
}

@media (max-width: 560px) {
  .dossier__row { grid-template-columns: 1fr; gap: 0.4rem; }
}

/* angle cards */

.angle-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.1rem;
  margin: 3rem 0 2.2rem;
}

.angle-card {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  transition: border-color 0.4s, transform 0.4s;
}

.angle-card:hover { border-color: var(--hairline); }

.angle-card__num { color: var(--accent); margin-bottom: 1rem; }

.angle-card h4 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
}

.angle-card__job {
  margin: 0 0 1.1rem;
  font-size: 0.82rem;
  color: var(--fg-muted);
  line-height: 1.4;
}

.angle-card blockquote {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.98rem;
  line-height: 1.55;
  color: var(--fg-soft);
}

@media (max-width: 1100px) { .angle-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px) { .angle-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .angle-grid { grid-template-columns: 1fr; } }

/* headline pills */

.headline-strip {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 0.7rem;
  margin-bottom: 1.6rem;
}

.headline-pill {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.05rem;
  color: var(--accent);
  border: 1px solid var(--hairline);
  border-radius: 100px;
  padding: 0.55rem 1.25rem;
  white-space: nowrap;
}

.voice-rules { text-align: center; display: block; }

/* scoreboard */

.scoreboard {
  background: var(--bg-card);
  border: 1px solid var(--hairline);
  border-radius: 18px;
  padding: 2.2rem;
  box-shadow: 0 30px 70px rgba(0,0,0,0.45);
}

.scoreboard__header { margin-bottom: 2rem; color: var(--accent); }

.scoreboard__row { margin-bottom: 1.8rem; }

.scoreboard__label {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 0.7rem;
  font-size: 0.95rem;
}

.scoreboard__result { color: var(--accent); }

.scoreboard__bar {
  height: 10px;
  background: var(--border-soft);
  border-radius: 6px;
  overflow: hidden;
}

.scoreboard__fill {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 6px;
  background: rgba(138, 131, 120, 0.55);
  transition: width 1.4s var(--ease-out);
}

.scoreboard__fill--win {
  background: linear-gradient(90deg, var(--ember), var(--accent));
  box-shadow: 0 0 16px rgba(193, 102, 59, 0.35);
}

.scoreboard.is-inview .scoreboard__fill { width: var(--w); }

.scoreboard__verdict {
  padding-top: 1.4rem;
  border-top: 1px solid var(--border-soft);
  color: var(--accent);
}

.strategy__metrics { margin-top: 6rem; }

/* ---------- work ---------- */

.work-header { padding: 6rem var(--gutter) 2rem; border-top: 1px solid var(--border-soft); }

.showcase {
  position: relative;
  padding: 7rem var(--gutter);
  border-top: 1px solid var(--border-soft);
}

.showcase__index {
  position: absolute;
  top: 3.2rem;
  right: var(--gutter);
  font-size: 5rem !important;
  color: transparent;
  -webkit-text-stroke: 1px var(--hairline);
  letter-spacing: 0;
  line-height: 1;
  font-family: var(--font-display);
  font-weight: 400;
}

.showcase__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: center;
}

.showcase__inner--reverse { direction: rtl; }
.showcase__inner--reverse > * { direction: ltr; }

.showcase__inner--full { display: block; }

.showcase__title {
  margin: 0 0 0.6rem;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.2rem, 4.6vw, 3.8rem);
  line-height: 1.05;
}

.showcase__role { margin: 0 0 1.8rem; color: var(--accent); }

.showcase__body {
  margin: 0 0 1.6rem;
  font-size: 1.02rem;
  line-height: 1.72;
  color: var(--fg-soft);
  max-width: 54ch;
}

.showcase__body--center { margin: 0 auto; text-align: center; }

.showcase__text--center { text-align: center; max-width: 720px; margin: 0 auto 4rem; }
.showcase__text--center .showcase__body { margin-left: auto; margin-right: auto; }

.showcase__points {
  margin: 0; padding: 0;
  list-style: none;
  display: flex; flex-direction: column; gap: 0.7rem;
}

.showcase__points li {
  position: relative;
  padding-left: 1.4rem;
  font-size: 0.94rem;
  color: var(--fg-muted);
}

.showcase__points li::before {
  content: "→";
  position: absolute; left: 0;
  color: var(--accent);
}

.decision-line {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin: 2rem 0 0;
  padding: 1.1rem 1.3rem;
  border-left: 2px solid var(--accent);
  background: var(--accent-faint);
  border-radius: 0 12px 12px 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.05rem;
  color: var(--fg);
  max-width: 54ch;
}

.decision-line .mono-label { color: var(--accent); font-style: normal; }

.decision-line--center {
  margin: 2rem auto 0;
  align-items: center;
  text-align: center;
  border-left: 0;
  border-top: 2px solid var(--accent);
  border-radius: 0 0 12px 12px;
}

@media (max-width: 900px) {
  .showcase__inner { grid-template-columns: 1fr; }
  .showcase__index { font-size: 3rem !important; top: 2rem; }
}

/* ---------- pipeline visual (platform & governance) ---------- */

.pipeline {
  background: var(--bg-card);
  border: 1px solid var(--hairline);
  border-radius: 18px;
  padding: 2rem;
  width: 100%;
}

.pipeline__header { margin-bottom: 2.4rem; color: var(--accent); }

.pipeline__flow {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 2.2rem;
}

.pnode { display: flex; flex-direction: column; align-items: center; gap: 0.6rem; }

.pnode__dot {
  width: 14px; height: 14px;
  border-radius: 50%;
  border: 1px solid var(--accent-soft);
  background: var(--bg);
  transition: background 0.4s, box-shadow 0.4s;
}

.pnode.is-lit .pnode__dot {
  background: var(--accent);
  box-shadow: 0 0 14px 3px var(--accent-soft);
}

.pnode__label { font-family: var(--font-mono); font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--fg-muted); }

.pline { flex: 1; height: 1px; background: var(--border-soft); position: relative; overflow: hidden; margin-bottom: 1.4rem; }

.pline i {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--ember), var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s var(--ease-in-out);
}

.pline.is-lit i { transform: scaleX(1); }

.pipeline__log {
  padding-top: 1.4rem;
  border-top: 1px solid var(--border-soft);
  color: var(--fg-muted);
  min-height: 1.2em;
}

/* ---------- image generation pipeline ---------- */

.imagegen {
  background: var(--bg-card);
  border: 1px solid var(--hairline);
  border-radius: 18px;
  padding: 2rem;
  width: 100%;
  margin: 0 0 3rem;
}

.imagegen__preview {
  position: relative;
  width: min(160px, 40%);
  aspect-ratio: 6 / 7;
  margin: 2.4rem auto 0.5rem;
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg);
  border: 1px solid var(--border-soft);
}

.imagegen__silhouette {
  position: absolute;
  inset: 0;
  width: 56%;
  height: 56%;
  margin: 22% auto;
  fill: var(--border-soft);
  transition: fill 0.9s var(--ease-out);
}

.imagegen__preview.is-filled .imagegen__silhouette { fill: var(--accent); }

.imagegen__shimmer {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 30%, rgba(193,102,59,0.16) 50%, transparent 70%);
  background-size: 220% 100%;
  animation: imagegenShimmer 2.4s linear infinite;
}

@keyframes imagegenShimmer {
  0% { background-position: 220% 0; }
  100% { background-position: -220% 0; }
}

.imagegen__flow {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 2rem 0 2.2rem;
}

.imagegen__swatches {
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  gap: 0.7rem;
  margin-bottom: 1.6rem;
}

.swatch {
  aspect-ratio: 3 / 4;
  perspective: 400px;
  opacity: 0;
  transform: translateY(14px) scale(0.94);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

.swatch.is-in { opacity: 1; transform: translateY(0) scale(1); }

.swatch__inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.9s var(--ease-out);
}

.swatch.is-flipped .swatch__inner { transform: rotateY(180deg); }

.swatch__face {
  position: absolute;
  inset: 0;
  border-radius: 10px;
  border: 1px solid var(--border-soft);
  backface-visibility: hidden;
  display: flex;
}

.swatch__face--front {
  background: linear-gradient(155deg, var(--from), var(--to));
  align-items: flex-end;
  padding: 0.5rem;
}

.swatch__face--back {
  background: var(--bg);
  align-items: center;
  justify-content: center;
  transform: rotateY(180deg);
}

.swatch__silhouette { width: 48%; fill: var(--to); }

.swatch__label { color: rgba(255,255,255,0.75); font-size: 0.6rem; }

.imagegen__log {
  padding-top: 1.4rem;
  border-top: 1px solid var(--border-soft);
  color: var(--fg-muted);
  min-height: 1.2em;
}

@media (max-width: 700px) {
  .imagegen__swatches { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- dashboard mockup ---------- */

.dash {
  background: var(--bg-card);
  border: 1px solid var(--hairline);
  border-radius: 18px;
  overflow: hidden;
  margin: 0 auto 5rem;
  max-width: 980px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.5), 0 0 60px rgba(193,102,59,0.06);
}

.dash__bar {
  display: flex; align-items: center; gap: 1.2rem;
  padding: 0.9rem 1.4rem;
  border-bottom: 1px solid var(--border-soft);
}

.dash__dots { display: flex; gap: 6px; }
.dash__dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--border-soft); }
.dash__dots i:first-child { background: rgba(193,102,59,0.5); }

.dash__live { margin-left: auto; display: flex; align-items: center; gap: 0.5rem; color: var(--accent); }

@media (max-width: 700px) {
  .dash__bar { flex-wrap: wrap; row-gap: 0.5rem; }
  .dash__bar > .mono-label:not(.dash__live) { order: 3; flex-basis: 100%; }
}

.dash__body { display: grid; grid-template-columns: 170px 1fr; min-height: 380px; }

.dash__side {
  border-right: 1px solid var(--border-soft);
  padding: 1.4rem 0;
  display: flex; flex-direction: column;
}

.dash__nav-item {
  padding: 0.65rem 1.4rem;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--fg-muted);
}

.dash__nav-item.is-active {
  color: var(--accent);
  border-left: 2px solid var(--accent);
  background: var(--accent-faint);
}

.dash__main { padding: 1.6rem; display: flex; flex-direction: column; gap: 1.4rem; }

.dash__kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }

.dash__kpi {
  background: var(--bg-lift);
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  padding: 0.9rem 1rem;
  display: flex; flex-direction: column; gap: 0.4rem;
}

.dash__kpi b {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.4rem;
  color: var(--fg);
}

.dash__chart { flex: 1; min-height: 110px; }
.dash__chart svg { width: 100%; height: 100%; display: block; }

.dash__bars {
  display: flex; gap: 0.8rem; align-items: flex-end; height: 90px;
}

.dash__bar-item {
  flex: 1;
  display: flex; flex-direction: column; align-items: center; gap: 0.4rem;
  height: 100%;
  justify-content: flex-end;
}

.dash__bar-item i {
  display: block;
  width: 100%;
  height: 0;
  border-radius: 4px 4px 0 0;
  background: linear-gradient(to top, rgba(193,102,59,0.25), var(--accent));
  transition: height 1s var(--ease-out);
}

.dash.is-inview .dash__bar-item i { height: calc(var(--h) * 0.68); }

@media (max-width: 800px) {
  .dash__body { grid-template-columns: 1fr; }
  .dash__side { flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--border-soft); padding: 0; }
  .dash__nav-item { white-space: nowrap; }
  .dash__nav-item.is-active { border-left: 0; border-bottom: 2px solid var(--accent); }
  .dash__kpis { grid-template-columns: repeat(2, 1fr); }
}

/* metrics row */

.showcase__metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.metric { border-top: 1px solid var(--hairline); padding-top: 1.2rem; }

.metric b {
  display: block;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  color: var(--accent);
  margin-bottom: 0.4rem;
}

.metric span { font-size: 0.88rem; color: var(--fg-muted); }

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

/* ---------- terminal ---------- */

.terminal {
  background: #0a0908;
  border: 1px solid var(--hairline);
  border-radius: 18px;
  overflow: hidden;
  width: 100%;
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
}

.terminal__body {
  padding: 1.4rem;
  min-height: 300px;
  font-size: 0.72rem !important;
  line-height: 1.9;
  text-transform: none !important;
  letter-spacing: 0.02em !important;
  white-space: pre-wrap;
  color: var(--fg-muted);
}

.terminal__body .t-ok { color: var(--accent); }
.terminal__body .t-dim { color: rgba(138,131,120,0.6); }

/* ---------- watch (ground-up build) ---------- */

.showcase__visual--watch { display: flex; justify-content: center; }

.watch {
  display: flex; flex-direction: column; align-items: center;
  filter: drop-shadow(0 30px 60px rgba(0,0,0,0.6));
}

.watch__strap {
  width: 92px;
  height: 110px;
  background: linear-gradient(90deg, #171310, #221c16, #171310);
}

.watch__strap--top { border-radius: 20px 20px 8px 8px; }
.watch__strap--bottom { border-radius: 8px 8px 20px 20px; }

.watch__case {
  position: relative;
  width: 230px; height: 270px;
  background: linear-gradient(145deg, #2a241d, #17130f);
  border-radius: 56px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(193,102,59,0.25);
}

.watch__crown {
  position: absolute;
  right: -7px; top: 78px;
  width: 8px; height: 34px;
  border-radius: 4px;
  background: linear-gradient(90deg, #3a3129, #262019);
}

.watch__screen {
  position: relative;
  width: 196px; height: 236px;
  background: #050403;
  border-radius: 44px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  overflow: hidden;
}

.watch__rings { position: absolute; inset: 12px; }
.watch__rings svg { width: 100%; height: 100%; }

#watchRing { transition: stroke-dashoffset 1.6s var(--ease-out); }

.watch__time {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 2.6rem;
  color: var(--fg);
  line-height: 1;
  z-index: 1;
}

.watch__date { margin-top: 0.5rem; z-index: 1; color: var(--accent) !important; }

/* ---------- capabilities bento ---------- */

.capabilities { padding: 8rem var(--gutter); border-top: 1px solid var(--border-soft); }

.capabilities__intro {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.7;
  color: var(--fg-soft);
  max-width: 56ch;
}

.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.25rem;
  margin-top: 3rem;
}

.bento__tile {
  grid-column: span 2;
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: 18px;
  padding: 2rem;
  overflow: hidden;
  transition: border-color 0.4s;
  transform-style: preserve-3d;
}

.bento__tile--wide { grid-column: span 4; }

.bento__tile::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 50%), rgba(193,102,59,0.09), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}

.bento__tile:hover { border-color: var(--hairline); }
.bento__tile:hover::after { opacity: 1; }

.bento__num {
  display: inline-block;
  color: var(--accent);
  margin-bottom: 1.4rem;
}

.bento__tile h4 {
  margin: 0 0 0.8rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.3rem;
}

.bento__tile p { margin: 0; font-size: 0.92rem; line-height: 1.65; color: var(--fg-muted); }

@media (max-width: 900px) {
  .bento { grid-template-columns: 1fr; }
  .bento__tile, .bento__tile--wide { grid-column: span 1; }
}

/* ---------- contact ---------- */

.contact {
  position: relative;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  padding: 8rem var(--gutter) 5rem;
  overflow: hidden;
  border-top: 1px solid var(--border-soft);
}

.contact__canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; opacity: 0.7; }

.contact > *:not(.contact__canvas) { position: relative; z-index: 1; }

.contact__heading {
  margin: 0 0 3rem;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.6rem, 7vw, 6rem);
  line-height: 1.05;
}

.contact__thesis {
  margin: -1rem 0 2.4rem;
  font-size: 1.02rem;
  color: var(--fg-soft);
  max-width: 52ch;
}

.contact__meta {
  margin-top: 5rem;
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 2.5rem;
}

.contact__link { transition: color 0.3s; }
.contact__link:hover { color: var(--accent); }

/* ---------- mobile section rhythm ---------- */
/* Desktop uses 6-8rem vertical padding + 6-7rem inter-block margins for
   breathing room at large viewport heights. On mobile those same fixed
   rem values read as oversized dead space between sections, so cut them
   roughly in half below 700px. */

@media (max-width: 700px) {
  .stats { padding: 3rem var(--gutter); }
  .about { padding: 4rem var(--gutter); }
  .strategy { padding: 4rem var(--gutter); }
  .strategy__header { margin-bottom: 2.5rem; }
  .strategy__block { margin-top: 3.5rem; }
  .strategy__metrics { margin-top: 3rem; }
  .work-header { padding: 4rem var(--gutter) 1.5rem; }
  .showcase { padding: 3.5rem var(--gutter); }
  .capabilities { padding: 4rem var(--gutter); }
  .contact { padding: 4rem var(--gutter) 3rem; }
  .contact__meta { margin-top: 3rem; }
}

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  .line { transform: none; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
