/* Mad Wolf - madwolf.com.br
   Dark-first single look. Tokens and contrast rules come from docs/brand.md
   (brand red #ea2b34 only for large text on slate; small red text uses --red-glow). */

/* ---------- Fonts (self-hosted, latin subset from @fontsource-variable 5.3.0) ---------- */
@font-face {
  font-family: "Archivo";
  src: url("assets/fonts/archivo-wdth.woff2") format("woff2-variations"),
       url("assets/fonts/archivo-wdth.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Hanken Grotesk";
  src: url("assets/fonts/hanken-grotesk.woff2") format("woff2-variations"),
       url("assets/fonts/hanken-grotesk.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("assets/fonts/jetbrains-mono.woff2") format("woff2-variations"),
       url("assets/fonts/jetbrains-mono.woff2") format("woff2");
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --red: #ea2b34;
  --red-glow: #ff4a52;
  --red-deep: #c41f28;
  --ember: #2a1416;
  --black: #0b0a0d;
  --slate: #1b2126;
  --line: #2e363c;
  --muted: #9aa1a7;
  --mist: #c9ced2;
  --white: #ffffff;

  --f-display: "Archivo", "Arial Black", Impact, sans-serif;
  --f-body: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --gutter: max(16px, min(5vw, 48px), env(safe-area-inset-left, 0px));
  --wrap: 1240px;
  --section-y: clamp(72px, 11vw, 148px);
  --ease: cubic-bezier(.2, .7, .2, 1);

  /* Archivo vertical metrics (upm 1000, read with fontTools; no MVAR, so they hold for
     every wght/wdth): ascent 878, descent 210, capHeight 686. At line-height 1 the
     half-leading is (1000 - 1088) / 2 = -44, so the line box runs from 148 above the
     cap top to 166 below the baseline. Trimming those leaves a box that is exactly
     cap top to baseline (0.686em), the same box `text-box: trim-both cap alphabetic`
     gives in browsers that support it. */
  --cap-trim-top: -0.148em;
  --cap-trim-bottom: -0.166em;
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  background: var(--black);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}
body {
  margin: 0;
  background: var(--black);
  color: var(--mist);
  font-family: var(--f-body);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
@supports (overflow: clip) { body { overflow-x: clip; } }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4 { margin: 0; color: var(--white); text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
.lede.lede--wide { max-width: 80ch; }
.nowrap { white-space: nowrap; }
/* Archivo at normal width with tight tracking: open the word gaps a little */
h1, h2, .manifesto__lines li, .method__close, .platform__close, .way__title { word-spacing: 0.06em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }
::selection { background: var(--red); color: var(--white); }

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

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--white); color: var(--black);
  padding: 10px 16px; font-weight: 700; text-decoration: none;
}
.skip:focus { top: 12px; }

/* ---------- Shared type ---------- */
.eyebrow {
  font-family: var(--f-display);
  font-stretch: 100%;
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--red-glow);
}
h2 {
  font-family: var(--f-display);
  font-stretch: 100%;
  font-weight: 900;
  font-size: clamp(2.3rem, 1.3rem + 4.6vw, 5.2rem);
  line-height: 0.96;
  letter-spacing: -0.02em;
  overflow-wrap: break-word;
  hyphens: auto;
}
.lede {
  max-width: 62ch;
  text-wrap: pretty;
  color: var(--muted);
  font-size: clamp(1.02rem, 0.98rem + 0.25vw, 1.15rem);
}
.section { padding-block: var(--section-y); position: relative; }
.section__head { display: grid; gap: 18px; margin-bottom: clamp(40px, 6vw, 72px); max-width: 920px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px;
  padding: 12px 24px;
  font-family: var(--f-display);
  font-stretch: 100%;
  font-weight: 700;
  font-size: 1.15rem; /* >= 18.66px bold: white on --red passes as large text */
  line-height: 1.1;
  text-decoration: none;
  border: 2px solid transparent;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.btn--primary { background: var(--red); color: var(--white); border-color: var(--red); }
.btn--primary:hover { background: var(--red-deep); border-color: var(--red-deep); }
.btn--ghost { color: var(--white); border-color: rgba(255, 255, 255, 0.28); background: rgba(11, 10, 13, 0.35); }
.btn--ghost:hover { border-color: var(--white); }
.btn:active { transform: translateY(1px); }

.tag, .pill {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ---------- Top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 10, 13, 0.72);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid rgba(46, 54, 60, 0.6);
}
.topbar__row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; }
/* MAD box and WOLF share one height: WOLF is trimmed to cap top..baseline and the red
   box stretches to it, so the box top meets the cap top and its bottom the baseline. */
.mini-mark { display: inline-flex; align-items: stretch; text-decoration: none; line-height: 1; }
.mini-mark__mad {
  display: inline-flex; align-items: center;
  line-height: 1;
  background: var(--red); color: var(--white);
  font-family: var(--f-display); font-stretch: 125%; font-weight: 700;
  font-size: 0.62rem; letter-spacing: 0.42em;
  padding: 0 0.3em 0 0.75em;
}
.mini-mark__wolf {
  color: var(--white);
  font-family: var(--f-display); font-stretch: 125%; font-weight: 900;
  font-size: 1.35rem; letter-spacing: -0.02em;
  line-height: 1;
  margin-block: var(--cap-trim-top) var(--cap-trim-bottom);
  padding-left: 0.12em;
}
.nav { display: flex; align-items: center; gap: clamp(14px, 2.2vw, 30px); font-size: 0.95rem; }
.nav a { text-decoration: none; color: var(--mist); }
.nav a:hover { color: var(--white); }
.nav .nav__cta {
  color: var(--white);
  border: 1px solid var(--line);
  padding: 7px 14px;
  font-weight: 600;
}
.nav .nav__cta:hover { border-color: var(--red-glow); }
@media (max-width: 760px) {
  .nav a:not(.nav__cta) { display: none; }
}

/* ---------- 1. Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: min(92svh, 900px);
  display: flex; align-items: center;
  padding-block: clamp(56px, 9vw, 120px) clamp(64px, 9vw, 120px);
  background:
    radial-gradient(55% 75% at 78% 40%, rgba(234, 43, 52, 0.1), transparent 65%),
    radial-gradient(45% 55% at 62% 105%, rgba(42, 20, 22, 0.7), transparent 70%),
    radial-gradient(70% 60% at 10% 0%, rgba(27, 33, 38, 0.9), transparent 70%),
    var(--black);
}
.hero__visual {
  position: absolute; z-index: -2;
  top: 0; bottom: 0; right: 0;
  width: min(58vw, 920px);
  pointer-events: none;
  /* Blend on the stacking-context element itself, so the black of the art drops
     against the hero background (blending on the img alone stays isolated). */
  mix-blend-mode: lighten;
}
.hero__visual img {
  width: 100%; height: 100%;
  object-fit: contain; object-position: 62% 50%;
  transform: scale(0.8); transform-origin: 62% 50%;
  /* The wolf art sits on pure black: lighten drops the black so only the wolf and its
     glow show over the hero gradients, with no box edge. A soft mask keeps the far
     edges of the glow from ending in a hard line. */
  -webkit-mask-image: radial-gradient(70% 70% at 60% 50%, #000 70%, transparent 100%);
  mask-image: radial-gradient(70% 70% at 60% 50%, #000 70%, transparent 100%);
}
.hero__embers { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.hero__grain {
  position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0.16; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero__content { display: grid; gap: clamp(18px, 2.4vw, 28px); justify-items: start; }

.wordmark { display: flex; align-items: stretch; flex-wrap: nowrap; line-height: 1; margin-bottom: 4px; }
.wordmark__mad {
  display: flex; align-items: center;
  line-height: 1;
  background: var(--red); color: var(--white);
  font-family: var(--f-display); font-stretch: 125%; font-weight: 600;
  font-size: clamp(0.82rem, 0.6rem + 1vw, 1.35rem);
  letter-spacing: 0.5em;
  padding: 0 0.35em 0 0.9em;
}
.wordmark__wolf {
  color: var(--red);
  font-family: var(--f-display); font-stretch: 125%; font-weight: 900;
  font-size: clamp(3.1rem, 1.4rem + 7vw, 7.2rem);
  line-height: 1;
  margin-block: var(--cap-trim-top) var(--cap-trim-bottom);
  letter-spacing: -0.03em;
  padding-left: 0.06em;
  text-shadow: 0 0 40px rgba(234, 43, 52, 0.12);
}
@supports (text-box: trim-both cap alphabetic) {
  .wordmark__wolf, .mini-mark__wolf { text-box: trim-both cap alphabetic; margin-block: 0; }
}
.hero__title {
  font-family: var(--f-display); font-stretch: 100%; font-weight: 900;
  font-size: clamp(2.45rem, 1rem + 6vw, 5.9rem);
  line-height: 0.94;
  letter-spacing: -0.025em;
  max-width: 11ch;
}
.hero__lede {
  max-width: 34ch;
  color: var(--mist);
  font-size: clamp(1.1rem, 1rem + 0.5vw, 1.4rem);
  line-height: 1.45;
}
.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }

@media (max-width: 760px) {
  .hero { align-items: flex-end; min-height: auto; padding-top: 0; }
  .hero__visual {
    width: 100%; left: 0; bottom: auto;
    height: min(76vw, 340px);
  }
  .hero__visual img {
    object-position: 50% 0%;
    transform: none;
    -webkit-mask-image: radial-gradient(75% 75% at 50% 45%, #000 70%, transparent 100%);
    mask-image: radial-gradient(75% 75% at 50% 45%, #000 70%, transparent 100%);
  }
  .hero__content { padding-top: calc(min(76vw, 340px) - 4px); }
  .ctas { width: 100%; }
  .ctas .btn { flex: 1 1 220px; }
}

/* ---------- 2. Manifesto ---------- */
.manifesto {
  padding-block: clamp(72px, 10vw, 140px);
  border-top: 1px solid var(--line);
  background:
    radial-gradient(60% 80% at 0% 50%, rgba(27, 33, 38, 0.7), transparent 70%),
    var(--black);
}
.manifesto .eyebrow { margin-bottom: clamp(24px, 4vw, 40px); }
.manifesto__lines { display: grid; gap: clamp(14px, 2vw, 22px); counter-reset: line; }
.manifesto__lines li {
  font-family: var(--f-display); font-stretch: 100%; font-weight: 800;
  font-size: clamp(1.5rem, 0.9rem + 2.9vw, 3.4rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
  color: var(--muted);
  max-width: 24ch;
  text-wrap: balance;
}
.manifesto__lines li.manifesto__accent { color: var(--red); } /* large text on --black: 4.60 */
.manifesto__lines .manifesto__strong { color: var(--white); }

/* ---------- 3. Method ---------- */
.method {
  border-top: 1px solid var(--line);
  background:
    radial-gradient(50% 60% at 100% 0%, rgba(42, 20, 22, 0.8), transparent 70%),
    linear-gradient(180deg, var(--slate) 0%, var(--black) 70%);
}
.stages {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  position: relative;
}
.stage {
  position: relative;
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 28px clamp(14px, 1.6vw, 24px) 32px;
  border-top: 3px solid var(--line);
}
/* the rail: grey through 03, red from 04 on, because that is the part most teams skip */
.stage--beyond { border-top-color: var(--red); }
.stage::before {
  content: ""; position: absolute; top: -9px; left: clamp(14px, 1.6vw, 24px);
  width: 15px; height: 15px; border-radius: 50%;
  background: var(--black); border: 3px solid var(--line);
}
.stage--beyond::before { border-color: var(--red); background: var(--red); box-shadow: 0 0 18px rgba(234, 43, 52, 0.7); }
.stage + .stage { border-left: 1px solid rgba(46, 54, 60, 0.6); }
.stage__num {
  font-family: var(--f-display); font-stretch: 100%; font-weight: 900;
  font-size: clamp(2.6rem, 1.6rem + 3vw, 4.6rem);
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--muted);
}
.stage--beyond .stage__num { color: var(--red); -webkit-text-stroke: 0; }
.stage__name {
  font-family: var(--f-display); font-stretch: 100%; font-weight: 800;
  font-size: clamp(1.25rem, 1rem + 0.8vw, 1.6rem);
  line-height: 1.1;
}
.stage__what { color: var(--mist); font-size: 1rem; }
.stage__ai {
  margin-top: 4px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
  color: var(--muted);
  font-size: 0.95rem;
}
.stage__ai .tag {
  display: inline-block;
  margin-right: 8px;
  padding: 1px 6px;
  color: var(--red-glow);
  border: 1px solid rgba(255, 74, 82, 0.5);
  vertical-align: 1px;
}
.stage__flag {
  margin-top: 8px;
  font-family: var(--f-mono); font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--muted);
}
.stage__flag::before { content: "← "; }
.method__close {
  margin-top: clamp(48px, 7vw, 88px);
  font-family: var(--f-display); font-stretch: 100%; font-weight: 900;
  font-size: clamp(1.7rem, 0.9rem + 3.6vw, 4rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
  color: var(--white);
  max-width: 20ch;
  text-wrap: balance;
}
.method__close .n { color: var(--muted); }
.method__close .n--red { color: var(--red); }

@media (max-width: 1000px) {
  .stages { grid-template-columns: minmax(0, 1fr); padding-left: 28px; }
  .stage {
    border-top: 0;
    border-left: 3px solid var(--line);
    padding: 4px 0 40px 28px;
    grid-template-columns: auto minmax(0, 1fr);
    column-gap: 18px;
  }
  .stage + .stage { border-left: 3px solid var(--line); }
  .stage--beyond, .stage + .stage--beyond { border-left-color: var(--red); }
  .stage:last-child { padding-bottom: 8px; }
  .stage::before { top: 6px; left: -9px; }
  .stage__num { grid-row: span 4; font-size: clamp(2.4rem, 8vw, 3.4rem); }
  .stage__name, .stage__what, .stage__ai, .stage__flag { grid-column: 2; }
  .stage__flag::before { content: "↑ "; }
}
@media (max-width: 480px) {
  .stages { padding-left: 10px; }
  .stage { grid-template-columns: minmax(0, 1fr); padding-left: 22px; }
  .stage__num { grid-row: auto; }
  .stage__name, .stage__what, .stage__ai, .stage__flag { grid-column: 1; }
}

/* ---------- 4. Platform ---------- */
.platform { border-top: 1px solid var(--line); }
.platform__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 16px;
  align-items: stretch;
}
.panel {
  background: var(--slate);
  border: 1px solid var(--line);
  padding: clamp(22px, 2.4vw, 32px);
  display: grid; align-content: start; gap: 14px;
}
.panel__title {
  font-family: var(--f-display); font-stretch: 100%; font-weight: 800;
  font-size: clamp(1.3rem, 1.1rem + 0.6vw, 1.6rem);
  line-height: 1.1;
}
.panel__text { color: var(--muted); }
.agents__list { display: grid; gap: 0; margin-top: 6px; }
.agents__list li {
  display: grid; gap: 2px;
  padding-block: 12px;
  border-top: 1px solid var(--line);
}
.agents__role { color: var(--white); font-weight: 600; }
.agents__does { color: var(--muted); font-size: 0.95rem; }

.copilot {
  position: relative; overflow: hidden;
  background:
    radial-gradient(90% 70% at 100% 0%, rgba(234, 43, 52, 0.22), transparent 70%),
    var(--ember);
  border-color: rgba(234, 43, 52, 0.45);
}
.copilot__label {
  font-family: var(--f-mono); font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--red-glow);
}
.copilot__title {
  font-family: var(--f-display); font-stretch: 100%; font-weight: 900;
  font-size: clamp(2.2rem, 1.4rem + 2.6vw, 3.4rem);
  line-height: 0.95; letter-spacing: -0.03em;
}
.copilot__text { color: var(--mist); }
.copilot__diagram { display: grid; justify-items: center; gap: 0; margin-top: 10px; }
.copilot__bases { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.copilot__bases span {
  font-family: var(--f-mono); font-size: 0.74rem;
  color: var(--mist);
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(11, 10, 13, 0.45);
  padding: 5px 10px;
}
.copilot__bases span::before { content: "base: "; color: var(--muted); }
.copilot__wire { width: 2px; height: 22px; background: linear-gradient(var(--red), rgba(234, 43, 52, 0.25)); }
.copilot__node {
  font-family: var(--f-display); font-stretch: 100%; font-weight: 800;
  font-size: 1.05rem; color: var(--white);
  background: var(--red-deep);
  padding: 8px 18px;
  box-shadow: 0 0 32px rgba(234, 43, 52, 0.45);
}
.copilot__answer {
  max-width: 34ch; text-align: center;
  font-size: 0.92rem; color: var(--mist);
  border: 1px dashed rgba(255, 255, 255, 0.2);
  padding: 10px 14px;
}

.infra__list { display: grid; gap: 0; margin-top: 6px; }
.infra__list li {
  display: flex; align-items: center; gap: 12px;
  padding-block: 12px;
  border-top: 1px solid var(--line);
  color: var(--white); font-weight: 600;
}
.infra__list li::before {
  content: ""; width: 8px; height: 8px; flex: none;
  background: var(--red-glow);
  box-shadow: 0 0 10px rgba(255, 74, 82, 0.8);
}
.platform__close {
  margin-top: clamp(40px, 6vw, 72px);
  font-family: var(--f-display); font-stretch: 100%; font-weight: 900;
  font-size: clamp(1.6rem, 0.9rem + 3vw, 3.4rem);
  line-height: 1.02; letter-spacing: -0.025em;
  color: var(--white);
  max-width: 22ch;
  text-wrap: balance;
}
@media (max-width: 1000px) {
  .platform__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .copilot { grid-column: 1 / -1; order: -1; }
}
@media (max-width: 640px) {
  .platform__grid { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- 5. Matilha (products) ---------- */
.matilha {
  border-top: 1px solid var(--line);
  background:
    radial-gradient(60% 40% at 0% 0%, rgba(42, 20, 22, 0.75), transparent 70%),
    var(--black);
}
.group + .group { margin-top: clamp(48px, 6vw, 72px); }
.group__head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding-bottom: 14px; margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.group__title {
  font-family: var(--f-display); font-stretch: 100%; font-weight: 800;
  font-size: clamp(1.25rem, 1rem + 0.8vw, 1.6rem);
}
.group__stage { font-family: var(--f-mono); font-size: 0.8rem; color: var(--muted); letter-spacing: 0.06em; }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 268px), 1fr));
  gap: 16px;
}
.cards--fit { grid-template-columns: repeat(auto-fit, minmax(min(100%, 268px), 1fr)); }
.card { position: relative; min-width: 0; }
.card__link, .card__body {
  height: 100%;
  display: grid;
  grid-template-rows: auto 72px 1fr auto;
  align-items: start;
  gap: 14px;
  padding: 22px;
  background: var(--slate);
  border: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
}
.card__link { transition: border-color .2s var(--ease), transform .25s var(--ease), background-color .2s var(--ease); }
.card__link:hover {
  border-color: rgba(255, 74, 82, 0.7);
  background: linear-gradient(180deg, var(--slate), #20181b);
  transform: translateY(-3px);
}
.pill {
  justify-self: start;
  padding: 4px 8px;
  border: 1px solid currentColor;
  color: var(--mist);
  white-space: nowrap;
}
.pill--live { color: var(--red-glow); } /* 4.92 on --slate */
.pill--live::before {
  content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 7px;
  border-radius: 50%; background: currentColor; vertical-align: 1px;
  box-shadow: 0 0 8px currentColor;
}
.pill--lab { color: var(--muted); border-style: dashed; }

.card__logo {
  align-self: center;
  display: flex; align-items: center;
  min-height: 44px;
  color: var(--white);
}
.logo-img { width: auto; max-width: 100%; }
.logo-img--atray { height: 30px; }
.logo-img--torkon { height: 30px; }
.logo-img--teto { height: 40px; }

.wm { display: inline-flex; align-items: center; gap: 10px; line-height: 1; color: var(--white); }
.wm--geth {
  display: inline-block;
  font-family: var(--f-body); font-weight: 650;
  font-size: 2.1rem; letter-spacing: -0.035em;
}
.wm--geth .wm__dot { margin-left: 1px; }
.wm--miguu { font-family: var(--f-body); font-weight: 600; font-size: 1.85rem; letter-spacing: -0.02em; }
.wm--miguu .wm__mark { width: 62px; height: auto; }
.wm--pruma { font-family: var(--f-body); font-weight: 650; font-size: 1.9rem; letter-spacing: -0.03em; gap: 8px; }
.wm--pruma .wm__mark { width: 27px; height: auto; }
.wm--lurex { font-family: var(--f-body); font-weight: 800; font-size: 1.85rem; letter-spacing: -0.03em; }
.wm--lurex .wm__mark { width: 32px; height: 32px; }

.card__line { color: var(--mist); }
.card__url {
  font-family: var(--f-mono); font-size: 0.85rem; font-weight: 600;
  color: var(--red-glow);
  padding-top: 12px; border-top: 1px solid var(--line);
}
.card__soon {
  font-family: var(--f-mono); font-size: 0.85rem;
  color: var(--muted);
  padding-top: 12px; border-top: 1px solid var(--line);
}

/* lab: deliberately unfinished, dashed and smoky */
.card--lab .card__body {
  grid-template-rows: auto auto 1fr;
  background:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.025) 0 10px, transparent 10px 20px),
    rgba(27, 33, 38, 0.45);
  border: 1px dashed #3d474e;
}
.card__code {
  display: grid; gap: 6px;
  font-family: var(--f-display); font-stretch: 100%; font-weight: 900;
  font-size: clamp(1.5rem, 1.2rem + 1vw, 1.9rem);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--white);
  text-shadow: 0 0 22px rgba(255, 255, 255, 0.18);
  overflow-wrap: break-word;
}
.card__codelabel {
  font-family: var(--f-mono); font-stretch: 100%; font-weight: 600;
  font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted); text-shadow: none;
}
.card--lab .card__line { color: var(--muted); }

/* ---------- 6. Project ---------- */
.project { border-top: 1px solid var(--line); }
.ways { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 16px; }
.way {
  display: grid; align-content: start; gap: 16px;
  padding: clamp(24px, 3.2vw, 44px);
  background: var(--slate);
  border: 1px solid var(--line);
}
.way--main {
  background:
    radial-gradient(80% 90% at 0% 100%, rgba(234, 43, 52, 0.2), transparent 70%),
    var(--ember);
  border-color: rgba(234, 43, 52, 0.45);
}
.way__num {
  font-family: var(--f-mono); font-size: 0.8rem; font-weight: 600; color: var(--red-glow);
  letter-spacing: 0.08em;
}
.way__title {
  font-family: var(--f-display); font-stretch: 100%; font-weight: 900;
  font-size: clamp(1.6rem, 1.1rem + 1.8vw, 2.5rem);
  line-height: 1.02; letter-spacing: -0.025em;
  overflow-wrap: break-word; hyphens: auto;
}
.way__text { color: var(--mist); font-size: 1.05rem; max-width: 48ch; }
.way__split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; margin: 8px 0 0; }
.way__split div { border-top: 2px solid rgba(255, 74, 82, 0.55); padding-top: 12px; }
.way__split dt { font-family: var(--f-mono); font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--red-glow); }
.way__split dd { margin: 6px 0 0; color: var(--mist); font-size: 0.97rem; }
.way__caps { display: grid; margin-top: 4px; }
.way__caps li {
  padding-block: 12px; border-top: 1px solid var(--line);
  color: var(--white); font-weight: 600;
  display: flex; gap: 12px; align-items: baseline;
}
.way__caps li::before { content: "→"; color: var(--red-glow); font-family: var(--f-mono); font-weight: 400; }
.project__cta {
  margin-top: clamp(28px, 4vw, 44px);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px;
  padding-top: clamp(24px, 3vw, 32px);
  border-top: 1px solid var(--line);
}
.project__cta p {
  font-family: var(--f-display); font-stretch: 100%; font-weight: 700;
  font-size: clamp(1.2rem, 1rem + 0.8vw, 1.6rem); color: var(--white); line-height: 1.2;
}
@media (max-width: 860px) {
  .ways { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 420px) {
  .way__split { grid-template-columns: minmax(0, 1fr); }
  .project__cta .btn { width: 100%; }
}

/* ---------- 7. Timeline ---------- */
.timeline {
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, var(--black), #0e1013 60%, var(--black));
}
.tl {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  position: relative;
}
.tl::before {
  content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 2px;
  background: linear-gradient(90deg, var(--line), var(--line) 30%, var(--red));
}
.tl__item { position: relative; padding: 34px 18px 0 0; display: grid; gap: 10px; align-content: start; }
.tl__item::before {
  content: ""; position: absolute; top: 0; left: 0;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--black); border: 2px solid var(--muted);
}
.tl__item--now::before { background: var(--red); border-color: var(--red); box-shadow: 0 0 16px rgba(234, 43, 52, 0.8); }
.tl__when {
  font-family: var(--f-display); font-stretch: 100%; font-weight: 900;
  font-size: clamp(1.15rem, 1rem + 0.6vw, 1.5rem);
  line-height: 1.05; color: var(--white);
  letter-spacing: -0.01em;
}
.tl__what { color: var(--muted); font-size: 0.98rem; }
.tl__what strong { color: var(--white); font-weight: 600; }
@media (max-width: 1000px) {
  .tl { grid-template-columns: minmax(0, 1fr); padding-left: 8px; }
  .tl::before { left: 15px; right: auto; top: 6px; bottom: 6px; width: 2px; height: auto; background: linear-gradient(180deg, var(--line), var(--line) 30%, var(--red)); }
  .tl__item { padding: 0 0 30px 42px; }
  .tl__item:last-child { padding-bottom: 0; }
  .tl__item::before { top: 4px; left: 0; }
}

/* ---------- 8. Contact + footer ---------- */
.contact {
  position: relative; overflow: hidden;
  padding-block: clamp(88px, 12vw, 168px);
  border-top: 1px solid var(--line);
  background:
    radial-gradient(60% 90% at 85% 100%, rgba(234, 43, 52, 0.38), transparent 65%),
    radial-gradient(50% 60% at 15% 0%, rgba(27, 33, 38, 0.9), transparent 70%),
    var(--black);
}
.contact__inner { display: grid; gap: 20px; justify-items: start; }
.contact__title { font-size: clamp(2.4rem, 1.2rem + 6vw, 6rem); line-height: 0.92; }
.contact__mail {
  margin-top: 12px;
  font-family: var(--f-display); font-stretch: 100%; font-weight: 800;
  font-size: clamp(1.15rem, 0.7rem + 2.6vw, 2.6rem);
  line-height: 1.1;
  color: var(--white);
  text-decoration: none;
  overflow-wrap: anywhere;
  border-bottom: 3px solid var(--red);
  padding-bottom: 6px;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.contact__mail:hover { color: var(--red-glow); border-color: var(--red-glow); }

.footer { border-top: 1px solid var(--line); padding-block: 28px 36px; background: var(--black); }
.footer__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; }
.footer__mark { display: inline-flex; align-items: stretch; line-height: 1; }
.footer__legal { font-size: 0.85rem; color: var(--muted); }

/* ---------- Reveal (progressive enhancement) ----------
   Content is always visible at rest. JS adds .is-in when an element is about to enter
   the viewport, which plays a short rise; nothing is ever parked at opacity 0. */
@keyframes rise {
  from { opacity: 0.001; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}
.js .reveal.is-in { animation: rise .7s var(--ease) both; animation-delay: var(--d, 0ms); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__embers { display: none; }
  .js .reveal.is-in { animation: none; }
  .card__link, .btn { transition: none; }
  .card__link:hover { transform: none; }
}
