/* ============================================================
   WANDOFI — studio with a single blood-red light
   Vanilla CSS · no framework
   ============================================================ */

:root {
  /* Palette */
  --ink: #050505;
  --ink-2: #0b0b0c;
  --panel: #101012;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);
  --white: #f4f4f3;
  --mute: #9a9a9d;
  --mute-2: #86868b;
  --red: #e1251b;
  --red-deep: #8c120c;
  --red-glow: rgba(225, 37, 27, 0.55);

  /* ----------------------------------------------------------
     TYPE SYSTEM
     One source of truth for every font property on the page.
     Compose roles from: family + size + weight + line-height +
     tracking. Reuse these tokens — never hard-code type values.
     ---------------------------------------------------------- */

  /* Families — the full set is exactly these three.
     Instrument Serif ships regular (400) + italic only: serif roles never
     ask for other weights (no synthetic bolding). */
  --display: "Instrument Serif", Georgia, serif;
  --ui: "Instrument Sans", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Weights */
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;

  /* Font sizes — fixed (UI / text) */
  --fs-2xs: 0.72rem;   /* eyebrows, tags, counts */
  --fs-xs: 0.85rem;    /* nav, small labels, footer */
  --fs-sm: 0.92rem;    /* buttons, dense list copy */
  --fs-base: 1rem;     /* body default */
  --fs-md: 1.05rem;    /* emphasised inline copy, list numerals */
  --fs-lg: 1.35rem;    /* timeline role */
  --fs-step: 2.4rem;   /* process step numeral */

  /* Font sizes — fluid (display / headings) */
  --fs-lead: clamp(1.05rem, 1.6vw, 1.4rem);    /* section leads */
  --fs-lead-sm: clamp(1.05rem, 1.4vw, 1.2rem); /* hero lead */
  --fs-h3: clamp(1.25rem, 2.2vw, 1.6rem);      /* sub-heads, card titles */
  --fs-about: clamp(1.4rem, 3vw, 2.1rem);      /* about statement */
  --fs-case-sm: clamp(1.6rem, 3.5vw, 2.6rem);  /* secondary case title */
  --fs-anchor: clamp(1.6rem, 4vw, 3rem);       /* positioning anchor */
  --fs-stat: clamp(2.4rem, 6vw, 4rem);         /* stat numerals */
  --fs-visual: clamp(2rem, 6vw, 4.5rem);       /* ghost case label */
  --fs-h2: clamp(2.4rem, 6vw, 4.4rem);         /* section titles (display italic) */
  --fs-case: clamp(2.8rem, 8vw, 6rem);         /* work case titles */
  --fs-display: clamp(3.2rem, 8vw, 6rem);      /* hero headline */
  --fs-display-sm: clamp(2.6rem, 12vw, 3.6rem);/* hero headline, narrow screens */

  /* Line heights */
  --lh-display: 1;     /* hero headline, case title, stats */
  --lh-tight: 1.12;    /* section + sub-heads */
  --lh-snug: 1.18;     /* positioning anchor */
  --lh-heading: 1.4;   /* about statement */
  --lh-relaxed: 1.5;   /* signal list copy */
  --lh-base: 1.55;     /* leads + list copy */
  --lh-body: 1.6;      /* default body */
  --lh-comfort: 1.65;  /* hero lead */
  --lh-loose: 1.7;     /* long-form body copy */

  /* Letter spacing (tracking) */
  --track-tighter: -0.03em; /* hero headline, case title */
  --track-tight: -0.02em;   /* signal anchor, stat, ghost label */
  --track-snug: -0.015em;   /* about statement */
  --track-normal: -0.01em;  /* body, sub-heads */
  --track-flat: 0;          /* section titles, leads, buttons */
  --track-wide: 0.02em;     /* cta email */
  --track-wider: 0.04em;    /* stat label */
  --track-caps-sm: 0.1em;   /* worklist tag */
  --track-caps: 0.18em;     /* tags */
  --track-caps-md: 0.22em;  /* hero eyebrow */
  --track-caps-lg: 0.28em;  /* section eyebrow */

  /* Rhythm */
  --section-pad: clamp(5rem, 12vh, 11rem);
  --container: 1180px;
  --gutter: clamp(1.25rem, 5vw, 4rem);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--ink);
  color: var(--white);
  font-family: var(--ui);
  font-size: var(--fs-base);
  line-height: var(--lh-body);
  font-weight: var(--fw-regular);
  letter-spacing: var(--track-normal);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }

::selection { background: var(--red); color: #fff; }

/* Skip link — hidden until keyboard-focused */
.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  padding: 0.75rem 1.25rem;
  background: var(--red);
  color: #fff;
  font-family: var(--ui);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  border-radius: 2px;
  transform: translateY(-200%);
  opacity: 0;
  pointer-events: none;
}
.skip-link:focus-visible { transform: none; opacity: 1; pointer-events: auto; outline: 2px solid #fff; outline-offset: 2px; }

/* ---------- Atmosphere layers ---------- */
.grain {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.05;
  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='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

.vignette {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(120% 90% at 50% 38%, transparent 40%, rgba(0, 0, 0, 0.55) 100%);
}

/* The single red light that travels with the scroll */
.spotlight {
  position: fixed;
  left: 50%;
  top: var(--spot-y, 18%);
  width: 130vmax;
  height: 130vmax;
  transform: translate(-50%, -50%);
  z-index: 2;
  pointer-events: none;
  mix-blend-mode: screen;
  opacity: var(--spot-opacity, 1);
  background: radial-gradient(
    closest-side,
    rgba(225, 37, 27, 0.22) 0%,
    rgba(225, 37, 27, 0.10) 28%,
    rgba(225, 37, 27, 0.03) 48%,
    transparent 64%
  );
  will-change: top, opacity;
  transition: opacity 0.6s var(--ease);
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
  position: relative;
  z-index: 3;
}
.container--narrow { max-width: 760px; }

.section { padding-block: var(--section-pad); position: relative; z-index: 3; }

.section__head { margin-bottom: clamp(2.5rem, 5vw, 4.5rem); }

/* ---------- Type roles ---------- */
.eyebrow {
  font-family: var(--mono);
  font-size: var(--fs-2xs);
  text-transform: uppercase;
  letter-spacing: var(--track-caps-sm);
  color: var(--mute);
  margin: 0 0 1rem;
  font-weight: var(--fw-medium);
}

.h2 {
  font-family: var(--display);
  font-style: italic;
  font-weight: var(--fw-regular);
  font-size: var(--fs-h2);
  line-height: var(--lh-tight);
  letter-spacing: var(--track-tight);
  margin: 0;
}

.h3 {
  font-family: var(--display);
  font-weight: var(--fw-regular);
  font-size: var(--fs-h3);
  line-height: var(--lh-tight);
  letter-spacing: var(--track-normal);
  margin: 0 0 0.75rem;
}

.lead {
  font-family: var(--ui);
  font-size: var(--fs-lead);
  line-height: var(--lh-base);
  color: #d7d7d6;
  font-weight: var(--fw-regular);
  letter-spacing: var(--track-flat);
}

.body { font-family: var(--ui); color: var(--mute); font-size: var(--fs-base); line-height: var(--lh-loose); margin: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  min-height: 3.4rem;
  padding: 0 1.5rem;
  font-family: var(--ui);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  line-height: 1;
  letter-spacing: var(--track-flat);
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  color: var(--white);
  background: transparent;
  cursor: pointer;
  transition: border-color 0.4s var(--ease), color 0.4s var(--ease),
    background-color 0.4s var(--ease), transform 0.4s var(--ease),
    box-shadow 0.4s var(--ease);
}
.btn .arrow { transition: transform 0.4s var(--ease); }
.btn:hover .arrow { transform: translate(2px, -2px); }

.btn--primary { background: var(--white); color: var(--ink); border-color: var(--white); }
.btn--primary:hover { background: transparent; color: var(--white); }

.btn--ghost:hover { border-color: var(--white); }

/* Inverted red CTA — red shell, black core glow, resting heartbeat */
.btn--red {
  background:
    radial-gradient(95% 140% at 50% 50%, rgba(5, 5, 5, 0.55) 0%, rgba(5, 5, 5, 0.2) 45%, rgba(5, 5, 5, 0) 78%),
    var(--red);
  border-color: rgba(225, 37, 27, 0.9);
  color: #fff;
  padding: 0 1.8rem;
  font-size: var(--fs-base);
  box-shadow: inset 0 0 26px rgba(5, 5, 5, 0.5), 0 0 0 0 var(--red-glow);
  animation: heartbeat 2.8s ease-in-out 1.2s infinite;
}
.btn--red:hover {
  animation: none;
  box-shadow: inset 0 0 16px rgba(5, 5, 5, 0.3), 0 8px 40px -8px var(--red-glow);
  transform: translateY(-2px);
}

/* Double-thump: lub-dub, then rest */
@keyframes heartbeat {
  0%, 32%, 100% {
    transform: scale(1);
    box-shadow: inset 0 0 26px rgba(5, 5, 5, 0.5), 0 0 0 0 rgba(225, 37, 27, 0);
  }
  8% {
    transform: scale(1.03);
    box-shadow: inset 0 0 22px rgba(5, 5, 5, 0.42), 0 0 24px -2px var(--red-glow);
  }
  16% { transform: scale(1); }
  24% {
    transform: scale(1.045);
    box-shadow: inset 0 0 20px rgba(5, 5, 5, 0.4), 0 0 34px -2px var(--red-glow);
  }
}

/* ---------- Navigation (floating pills) ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: background-color 0.5s var(--ease), border-color 0.5s var(--ease),
    backdrop-filter 0.5s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(5, 5, 5, 0.6);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line);
}
.nav__inner {
  position: relative;
  max-width: 1440px;
  margin-inline: auto;
  padding: 1.25rem var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
/* Brand mark — phones only; desktop leads with the availability pill */
.nav__brand {
  display: none;
  font-family: var(--display);
  font-weight: var(--fw-regular);
  font-size: 1.65rem;
  line-height: 1;
  letter-spacing: var(--track-tight);
  color: var(--white);
}
.nav__brand-dot { color: var(--red); }
.nav__brand:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

.nav__status {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 1rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: var(--fs-xs);
  font-weight: var(--fw-medium);
  color: var(--white);
  white-space: nowrap;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.35rem;
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: 999px;
}
.nav__links a {
  padding: 0.5rem 1.1rem;
  font-family: var(--ui);
  font-size: var(--fs-xs);
  font-weight: var(--fw-medium);
  color: var(--mute);
  border-radius: 999px;
  white-space: nowrap;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease);
}
.nav__links a:hover { background: rgba(255, 255, 255, 0.08); color: var(--white); }
.nav__count { font-family: var(--mono); color: var(--red); font-size: var(--fs-2xs); font-weight: var(--fw-medium); margin-left: 0.3rem; font-variant-numeric: tabular-nums; }

/* ---------- HERO (left content · right portrait) ---------- */
.hero {
  position: relative;
  z-index: 3;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: clip;
  padding-block: clamp(7rem, 14vh, 9rem) clamp(3rem, 8vh, 6rem);
}
/* The single red light, pooled behind the subject */
.hero__glow {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(40% 50% at 75% 50%, rgba(225, 37, 27, 0.15) 0%, transparent 100%);
  mix-blend-mode: screen;
}
.hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1440px;
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
}
.hero__content {
  width: 100%;
  max-width: 40rem;
  padding-block: 2rem;
}
.hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-family: var(--mono);
  font-size: var(--fs-2xs);
  text-transform: uppercase;
  letter-spacing: var(--track-caps-sm);
  font-weight: var(--fw-medium);
  color: var(--mute);
  margin: 0 0 1.5rem;
}
.hero__eyebrow::before {
  content: "";
  flex: none;
  width: 2rem;
  height: 1px;
  background: var(--red);
}
.hero__headline {
  font-family: var(--display);
  font-weight: var(--fw-regular);
  font-size: var(--fs-display);
  line-height: var(--lh-display);
  letter-spacing: var(--track-tight);
  margin: 0 0 1.75rem;
}
.hero__lead {
  font-size: var(--fs-lead-sm);
  line-height: var(--lh-comfort);
  color: var(--mute);
  max-width: 40ch;
  margin: 0 0 2.5rem;
}
.hero__lead strong { color: var(--white); font-weight: var(--fw-semibold); }
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-bottom: 3rem;
}
.status-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 10px 1px var(--red-glow);
  animation: pulse 2.4s var(--ease) infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }

.hero__seo {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Right: portrait grounded in a soft red threshold frame */
.hero__portrait {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 45%;
  max-width: 660px;
  height: 88%;
  margin: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 1;
  pointer-events: none;
}
.hero__portrait-frame {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 70%;
  background: linear-gradient(to top, rgba(225, 37, 27, 0.10), transparent);
  border: 1px solid rgba(225, 37, 27, 0.20);
  border-bottom: 0;
  border-radius: 2rem 2rem 0 0;
}
.hero__portrait img {
  position: relative;
  z-index: 1;
  width: auto;
  height: 100%;
  object-fit: contain;
  object-position: bottom;
  filter: drop-shadow(0 26px 50px rgba(0, 0, 0, 0.55));
}

/* Contact fast-path card */
.hero__contact {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  max-width: 26rem;
  padding: 1.4rem;
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: 0.9rem;
}
.hero__contact-icon {
  flex: none;
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--mute);
}
.hero__contact-icon svg { width: 1.2rem; height: 1.2rem; }
.hero__contact-label { font-size: var(--fs-xs); color: var(--mute); margin: 0 0 0.15rem; }
.hero__contact-email {
  font-size: var(--fs-md);
  font-weight: var(--fw-medium);
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: rgba(255, 255, 255, 0.2);
  transition: color 0.3s var(--ease), text-decoration-color 0.3s var(--ease);
}
.hero__contact-email:hover { color: var(--red); text-decoration-color: var(--red); }

/* Social icon buttons, anchored bottom-right */
.hero__social {
  position: absolute;
  right: clamp(1.25rem, 5vw, 2rem);
  bottom: 2rem;
  z-index: 4;
  display: flex;
  gap: 0.75rem;
}
.hero__social li { display: flex; }
.hero__social a {
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.7rem;
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--mute);
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease),
    border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.hero__social a:hover { background: var(--red); color: #fff; border-color: var(--red); transform: translateY(-3px); }
.hero__social svg { width: 1.15rem; height: 1.15rem; }

/* Keyboard focus — visible ring on the new hero/nav interactive elements */
.nav__links a:focus-visible,
.hero__contact-email:focus-visible,
.hero__social a:focus-visible,
.btn:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

/* ---------- SIGNAL ---------- */
.signal__anchor {
  font-family: var(--display);
  font-style: italic;
  font-weight: var(--fw-regular);
  font-size: var(--fs-anchor);
  line-height: var(--lh-snug);
  letter-spacing: var(--track-tight);
  max-width: 18ch;
  margin: 0 0 clamp(3rem, 7vw, 5rem);
}
/* "infraestrutura" — pops on reveal, draws its underline, then breathes */
.signal__anchor em {
  color: var(--red);
  display: inline-block;
  position: relative;
}
.signal__anchor em::after {
  content: "";
  position: absolute;
  left: 0.02em;
  right: 0.06em;
  bottom: -0.04em;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s var(--ease) 0.8s;
}
.signal__anchor.is-in em {
  animation:
    word-pop 0.7s var(--ease) 0.35s both,
    word-glow 3.4s ease-in-out 1.4s infinite;
}
.signal__anchor.is-in em::after { transform: scaleX(1); }

@keyframes word-pop {
  0% { transform: scale(1); }
  45% { transform: scale(1.13); }
  100% { transform: scale(1); }
}
@keyframes word-glow {
  0%, 100% { text-shadow: 0 0 16px rgba(225, 37, 27, 0.2); }
  50% { text-shadow: 0 0 34px rgba(225, 37, 27, 0.55); }
}

.signal__list { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 4vw, 3rem); }
.signal__list li {
  border-top: 1px solid var(--line);
  padding-top: 1.5rem;
}
.signal__num {
  display: block;
  font-family: var(--display);
  color: var(--red);
  font-size: var(--fs-md);
  margin-bottom: 0.75rem;
  font-variant-numeric: tabular-nums;
}
.signal__list p { color: var(--mute); margin: 0; line-height: var(--lh-relaxed); }

/* ---------- SERVICES ---------- */
.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.card {
  background: var(--ink);
  padding: clamp(1.75rem, 3vw, 2.6rem);
  position: relative;
  transition: background-color 0.5s var(--ease);
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(140% 100% at 0% 0%, rgba(225, 37, 27, 0.10), transparent 55%);
  opacity: 0;
  transition: opacity 0.5s var(--ease);
}
/* Signature micro-interaction: a red accent line draws in from the top */
.card::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--red);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.4s var(--ease);
}
.card:hover { background: var(--ink-2); }
.card:hover::before { opacity: 1; }
.card:hover::after { transform: scaleY(1); }
.card .h3 { position: relative; }
.card .body { position: relative; }

/* ---------- WORK ---------- */
.case { padding-block: clamp(2.5rem, 5vw, 4rem); border-top: 1px solid var(--line); }
.case--lexia { border-top: none; }
.case__meta { margin-bottom: 1.25rem; }
.tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: var(--fs-2xs);
  text-transform: uppercase;
  letter-spacing: var(--track-caps-sm);
  color: var(--mute);
  border: 1px solid var(--line);
  padding: 0.35rem 0.7rem;
  border-radius: 2px;
}
.tag--accent { color: var(--red); border-color: rgba(225, 37, 27, 0.35); }

.case__title {
  font-family: var(--display);
  font-weight: var(--fw-regular);
  font-size: var(--fs-case);
  line-height: var(--lh-display);
  letter-spacing: var(--track-tighter);
  margin: 0 0 1.25rem;
}
.case__title--sm { font-size: var(--fs-case-sm); }
.case .lead { max-width: 60ch; }

.case__visual {
  margin-top: 2.5rem;
  height: clamp(180px, 30vw, 340px);
  border: 1px solid var(--line);
  border-radius: 2px;
  background:
    radial-gradient(80% 120% at 80% 0%, rgba(225, 37, 27, 0.18), transparent 55%),
    linear-gradient(180deg, var(--panel), var(--ink));
  display: flex;
  align-items: flex-end;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  position: relative;
  overflow: hidden;
}
.case__visual-label {
  font-family: var(--display);
  font-size: var(--fs-visual);
  color: rgba(255, 255, 255, 0.07);
  letter-spacing: var(--track-tight);
}

/* App screenshot emerging from the bottom-right corner of the frame */
.case__visual--shot {
  height: clamp(240px, 38vw, 460px);
  padding: 0;
  align-items: initial;
}
.case__visual--shot img {
  position: absolute;
  top: clamp(1.75rem, 4vw, 3rem);
  left: clamp(1.75rem, 4vw, 3rem);
  width: calc(100% - clamp(1.75rem, 4vw, 3rem));
  height: calc(100% - clamp(1.75rem, 4vw, 3rem));
  object-fit: cover;
  object-position: top left;
  border: 1px solid var(--line-strong);
  border-radius: 10px 0 0 0;
  border-right: 0;
  border-bottom: 0;
  box-shadow:
    0 32px 90px -20px rgba(0, 0, 0, 0.85),
    0 0 80px rgba(225, 37, 27, 0.10);
}

.stats { display: flex; flex-wrap: wrap; gap: clamp(2rem, 6vw, 5rem); margin-top: 2.5rem; }
.stat-block { display: flex; flex-direction: column; gap: 0.4rem; }
.stat {
  font-family: var(--display);
  font-size: var(--fs-stat);
  line-height: var(--lh-display);
  color: var(--white);
  font-variant-numeric: tabular-nums;
  letter-spacing: var(--track-tight);
}
.stat--text { color: var(--white); }
.stat__to { color: var(--red); margin: 0 0.1em; }
.stat__unit { font-size: 0.45em; color: var(--mute); margin-left: 0.1em; }
.stat__label { font-family: var(--mono); font-size: var(--fs-2xs); color: var(--mute); letter-spacing: var(--track-wider); text-transform: uppercase; }

.worklist { margin-top: clamp(3rem, 6vw, 5rem); border-top: 1px solid var(--line); padding-top: clamp(2rem, 4vw, 3rem); }
.worklist > .eyebrow { margin-bottom: 1.5rem; }
.worklist__row {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.7fr) minmax(13rem, 0.5fr);
  gap: 1.5rem;
  align-items: baseline;
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--line);
  transition: padding-left 0.4s var(--ease);
}
.worklist__row:hover { padding-left: 0.75rem; }
.worklist__cap { font-weight: var(--fw-medium); color: var(--white); }
.worklist__desc { color: var(--mute); font-size: var(--fs-sm); line-height: var(--lh-base); }
.worklist__tag {
  font-family: var(--mono);
  font-size: var(--fs-2xs);
  color: var(--mute-2);
  letter-spacing: var(--track-caps-sm);
  text-transform: uppercase;
  white-space: nowrap;
  text-align: right;
  justify-self: end;
}

/* ---------- EXPERIENCE ---------- */
.timeline__row {
  display: grid;
  grid-template-columns: 1.2fr 1.6fr auto;
  gap: 1.5rem;
  align-items: baseline;
  padding: 1.6rem 0;
  border-bottom: 1px solid var(--line);
}
.timeline__row:first-child { border-top: 1px solid var(--line); }
.timeline__role { font-family: var(--display); font-size: var(--fs-lg); font-weight: var(--fw-regular); }
.timeline__ctx { color: var(--mute); }
.timeline__period { font-family: var(--mono); color: var(--mute-2); font-variant-numeric: tabular-nums; font-size: var(--fs-xs); white-space: nowrap; }

/* ---------- PROCESS ---------- */
.process__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 4vw, 3rem); }
.step { border-top: 1px solid var(--line); padding-top: 1.75rem; }
.step__num {
  font-family: var(--display);
  font-size: var(--fs-step);
  color: rgba(255, 255, 255, 0.42);
  display: block;
  margin-bottom: 1rem;
  font-variant-numeric: tabular-nums;
}
.process__seal { margin-top: clamp(2.5rem, 5vw, 4rem); color: var(--mute); font-size: var(--fs-md); }

/* ---------- ABOUT ---------- */
.about__text {
  font-family: var(--display);
  font-weight: var(--fw-regular);
  font-size: var(--fs-about);
  line-height: var(--lh-heading);
  letter-spacing: var(--track-snug);
  color: #e3e3e2;
  margin: 0;
}

/* ---------- CTA ---------- */
.cta { text-align: center; }
.cta__title { margin-bottom: 1.25rem; }
.cta .lead { margin-inline: auto; max-width: 40ch; }
.cta__actions { display: flex; flex-direction: column; align-items: center; gap: 1.25rem; margin-top: 2.5rem; }
.cta__email {
  color: var(--mute);
  font-size: var(--fs-sm);
  letter-spacing: var(--track-wide);
  transition: color 0.3s var(--ease);
}
.cta__email:hover { color: var(--white); }

/* ---------- FOOTER / SIGNATURE ---------- */
.footer {
  border-top: 1px solid var(--line);
  padding: clamp(4rem, 9vh, 7rem) var(--gutter) clamp(2rem, 4vh, 3rem);
  text-align: center;
  position: relative;
  z-index: 3;
}
.signature { display: flex; justify-content: center; margin-bottom: 2.5rem; }
/* The WANDOFI PM logo — light-wordmark cut of the original mark, sitting
   directly on the footer with a soft lift + red ambient glow. */
.signature__plate {
  display: inline-flex;
  filter:
    drop-shadow(0 16px 36px rgba(0, 0, 0, 0.65))
    drop-shadow(0 0 34px rgba(225, 37, 27, 0.16));
}
.signature__logo {
  display: block;
  width: clamp(180px, 26vw, 280px);
  height: auto;
}

.footer__line { font-family: var(--ui); color: var(--mute-2); font-size: var(--fs-xs); margin: 0; }
.footer__line a { transition: color 0.3s var(--ease); }
.footer__line a:hover { color: var(--white); }

/* ---------- Reveal (JS-driven; only hidden when JS is present) ---------- */
.js .reveal { opacity: 0; transform: translateY(20px); }
.reveal.is-in { opacity: 1; transform: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
/* Hide the left status text before the centred links can crowd it */
@media (max-width: 1040px) {
  .nav__status { display: none; }
  .nav__brand { display: inline-block; }
}

@media (max-width: 880px) {
  /* Phone nav: brand mark left, essentials (Trabalho · Contacto) right */
  .nav__link--extra { display: none; }
  .nav__inner { padding-block: 0.9rem; }
  .hero {
    flex-direction: column;
    justify-content: center;
    padding-block: clamp(6rem, 12vh, 8rem) clamp(2.5rem, 6vh, 4rem);
  }
  .hero__inner { flex-direction: column; align-items: flex-start; gap: clamp(2rem, 6vw, 3rem); }
  .hero__content { max-width: 100%; padding-block: 0; }
  /* relative (not static) so the red threshold frame stays anchored to the portrait */
  .hero__portrait {
    position: relative;
    right: auto;
    bottom: auto;
    width: min(78vw, 320px);
    height: auto;
    margin-inline: auto;
  }
  .hero__portrait img { width: 100%; height: auto; }
  .hero__social { position: static; margin: 1.5rem auto 0; }
  .signal__list,
  .services__grid,
  .process__grid { grid-template-columns: 1fr; }
  .worklist__row,
  .timeline__row { grid-template-columns: 1fr; gap: 0.4rem; }
  .worklist__tag, .timeline__period { white-space: normal; }
}

@media (max-width: 520px) {
  .hero__headline { font-size: var(--fs-display-sm); }
  .hero__contact { flex-direction: column; align-items: flex-start; gap: 1rem; }

  /* Thumb-sized, full-width actions on phones */
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn,
  .cta__actions .btn { justify-content: center; width: 100%; min-height: 3.6rem; }
  .hero__contact { max-width: 100%; width: 100%; }

  /* Stats stack with breathing room instead of cramming side by side */
  .stats { flex-direction: column; gap: 1.75rem; }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
  .spotlight { transition: none; }
  .status-dot { animation: none; }
  .btn--red { animation: none; }
  .signal__anchor.is-in em { animation: none; text-shadow: 0 0 16px rgba(225, 37, 27, 0.3); }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}
