/* ==========================================================================
   warrenmanuel.com · The Manuel brand
   85% near-black · 10% chalk & muted · max 5% cobalt. One accent.
   No red or green, no glassmorphism, no backdrop blur.
   Mobile first: base styles are for phones, media queries add up from there.
   ========================================================================== */

@font-face {
  font-family: "Schibsted Grotesk";
  src: url("../fonts/schibsted-grotesk-latin-var.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "JetBrains Mono";
  src: url("../fonts/jetbrains-mono-latin-var.woff2") format("woff2");
  font-weight: 400 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --ground: #0E0E10;
  --panel: #111113;
  --matte: #0A0A0B;
  --line: #1B1B1F;
  --line-strong: #2C2C33;
  --input-line: #606068;
  --chalk: #F2F2F2;
  --soft: #C9C9CE;
  --muted: #A0A0A6;
  --cobalt: #5B7CFF;
  --cobalt-hover: #7590FF;
  --construct: #34407A;
  --orbit: #4A5BA8;
  --paper: #F5F5F2;
  --ink: #141416;
  --ink-muted: #5E5E62;

  --font-sans: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-pop: cubic-bezier(0.34, 1.45, 0.64, 1);
  --shadow: 0 28px 70px rgba(0, 0, 0, 0.45);
  --gutter: clamp(20px, 5vw, 40px);
}

/* ---------- Base ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 84px;
  background: var(--ground);
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: clip;
  background: radial-gradient(circle at 50% 0, #161822 0, var(--ground) 900px) no-repeat, var(--ground);
  color: var(--chalk);
  font: 400 1.0625rem/1.6 var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, p, ul, ol, figure, blockquote, fieldset { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-underline-offset: 3px; }
button, input, textarea, select { font: inherit; color: inherit; }

::selection { background: var(--cobalt); color: var(--ground); }

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

.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-link {
  position: absolute;
  left: 12px;
  top: -80px;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--cobalt);
  color: var(--ground);
  font-weight: 700;
  border-radius: 8px;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

.wrap {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap--narrow { max-width: 880px; }
.wrap--prose { max-width: 760px; }
.wrap--media { max-width: 1040px; }

/* ---------- Type ---------- */

.kicker {
  font: 500 0.75rem/1.35 var(--font-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.kicker--accent { color: var(--cobalt); }

.meta {
  font: 400 0.75rem/1.4 var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.display {
  font-weight: 800;
  font-size: clamp(3rem, 1.1rem + 7.6vw, 6rem);
  line-height: 0.92;
  letter-spacing: -0.045em;
}
.display--page { font-size: clamp(2.6rem, 1.3rem + 5.2vw, 4.75rem); }

.title {
  font-weight: 800;
  font-size: clamp(2.25rem, 1.25rem + 4.2vw, 4rem);
  line-height: 0.96;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.lede {
  max-width: 60ch;
  font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
  color: var(--soft);
}
.lede a { color: var(--cobalt); }

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

.bar {
  display: block;
  width: 72px;
  height: 4px;
  background: var(--cobalt);
}

/* ---------- Buttons & links ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 46px;
  padding: 0.7rem 1.15rem;
  border: 1px solid var(--cobalt);
  border-radius: 10px;
  background: var(--cobalt);
  color: var(--ground);
  font: 700 1rem/1.1 var(--font-sans);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background-color 0.2s, border-color 0.2s, color 0.2s;
}
.btn:hover { background: var(--cobalt-hover); border-color: var(--cobalt-hover); transform: translateY(-1px); }
.btn:disabled { opacity: 0.6; cursor: progress; transform: none; }

.btn--ghost {
  background: var(--panel);
  border-color: var(--line-strong);
  color: var(--chalk);
}
.btn--ghost:hover { background: var(--panel); border-color: var(--cobalt); }

.btn--lg { min-height: 54px; padding: 0.85rem 1.4rem; font-size: 1.0625rem; }
.btn--sm { min-height: 40px; padding: 0.5rem 0.9rem; font-size: 0.9375rem; }

.link-arrow {
  font: 500 0.8125rem/1.3 var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cobalt);
  text-decoration: none;
}
.link-arrow:hover { text-decoration: underline; }

.row-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-top: 2rem;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--ground);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.5rem;
  min-height: 64px;
}

/* With JavaScript the mobile header is always one row: mark left, buttons right. */
.js .site-header__inner { flex-wrap: nowrap; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
  margin-right: auto;
  text-decoration: none;
}
.brand__mark { width: 38px; height: 24px; flex: none; }
.brand__name {
  font: 500 0.8125rem/1 var(--font-mono);
  letter-spacing: 0.14em;
  white-space: nowrap;
  color: var(--chalk);
}
.site-header__actions { flex: none; }

.site-nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; }
.site-nav a {
  padding: 0.5rem 0;
  font: 500 0.75rem/1 var(--font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--chalk); }
.site-nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--cobalt); text-decoration-thickness: 2px; text-underline-offset: 6px; }

.site-header__actions { display: flex; align-items: center; gap: 0.5rem; }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: var(--panel);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  cursor: pointer;
}
.nav-toggle__close { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__close { display: inline; }

@media (max-width: 1023px) {
  /* Without JavaScript the links simply wrap under the logo. */
  html:not(.js) .site-nav { order: 3; width: 100%; padding-bottom: 0.75rem; }

  .js .nav-toggle { display: inline-flex; }
  .js .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: 0.25rem var(--gutter) 1.25rem;
    background: var(--panel);
    border-bottom: 1px solid var(--line-strong);
    box-shadow: var(--shadow);
  }
  .js .nav-open .site-nav { display: flex; }
  .js .site-nav a {
    padding: 1.1rem 0;
    font-size: 0.875rem;
    color: var(--chalk);
    border-bottom: 1px solid var(--line);
  }
  .js .site-nav a:last-child { border-bottom: 0; }
}

/* Phones: the WM mark alone, so the header never breaks into two rows
   (in em, so it also holds when someone has bigger text switched on). */
@media (max-width: 30em) {
  .site-header .brand__name { display: none; }
}

@media (min-width: 1024px) {
  .site-nav { margin-right: 0.5rem; }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding-top: clamp(2.5rem, 6vw, 5.5rem);
  border-bottom: 1px solid var(--line);
  isolation: isolate;
}

/* Construction grid, fading out towards the bottom. */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(to right, rgba(52, 64, 122, 0.16) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(52, 64, 122, 0.16) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: linear-gradient(to bottom, #000 30%, transparent 95%);
  mask-image: linear-gradient(to bottom, #000 30%, transparent 95%);
  pointer-events: none;
}

/* Soft cobalt lift behind the portrait. */
.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: -120px;
  right: 8%;
  width: min(560px, 90vw);
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(91, 124, 255, 0.18) 0%, rgba(14, 14, 16, 0) 68%);
  pointer-events: none;
}

.hero--page { padding-bottom: clamp(3rem, 7vw, 5.5rem); }

.hero__grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}

.hero__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.25rem;
  min-width: 0;
}

.hero__lede {
  max-width: 36em;
  font-size: clamp(1.125rem, 1rem + 0.55vw, 1.375rem);
  line-height: 1.5;
  color: var(--soft);
}

.plate {
  padding: 0.85rem 1.1rem;
  background: rgba(14, 14, 16, 0.9);
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  font-weight: 600;
  line-height: 1.4;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  width: 100%;
  margin-top: 0.25rem;
}

.hero__aside { font-size: 0.9375rem; color: var(--muted); }
.hero__aside a { color: var(--chalk); }
.hero__aside a:hover { color: var(--cobalt); }

@media (max-width: 559px) {
  .hero__actions .btn { flex: 1 1 100%; }
}

@media (min-width: 960px) {
  .hero__grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.9fr); gap: 3rem; }
  .hero__visual { justify-self: end; }
}

/* Portrait: cobalt ring, dashed orbit, construction frame, word pills. */

.hero__visual { display: flex; justify-content: center; width: 100%; }

.frame {
  position: relative;
  width: min(100%, 440px);
  padding: clamp(1.75rem, 6vw, 2.75rem);
  border: 1px dashed var(--construct);
}

.frame__handle {
  position: absolute;
  width: 8px;
  height: 8px;
  background: var(--ground);
  border: 1.5px solid var(--cobalt);
}
.frame__handle--tl { top: -4px; left: -4px; }
.frame__handle--tr { top: -4px; right: -4px; }
.frame__handle--bl { bottom: -4px; left: -4px; }
.frame__handle--br { bottom: -4px; right: -4px; }

.portrait {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
}

/* The outer ring clips the spinning box, so its corners never cause sideways scroll. */
.portrait__orbit {
  position: absolute;
  inset: -16px;
  border-radius: 50%;
  overflow: hidden;
}
.portrait__orbit > span {
  position: absolute;
  inset: 0;
  border: 1.5px dashed var(--orbit);
  border-radius: 50%;
  animation: spin 44s linear infinite;
}

.portrait__img {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 4px solid var(--cobalt);
  border-radius: 50%;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.portrait__label {
  position: absolute;
  left: 50%;
  bottom: 5%;
  transform: translateX(-50%);
  padding: 0.3rem 0.85rem;
  white-space: nowrap;
  background: rgba(14, 14, 16, 0.92);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font: 500 0.625rem/1.3 var(--font-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero__visual--small .portrait { width: min(70vw, 300px); }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.9rem;
  background: rgba(14, 14, 16, 0.9);
  border: 2px solid rgba(91, 124, 255, 0.58);
  border-radius: 999px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.55);
  font-weight: 600;
  font-size: 0.8125rem;
  white-space: nowrap;
  color: var(--chalk);
}
.pill > span { color: var(--cobalt); font-weight: 700; }

.pills { position: absolute; inset: 0; pointer-events: none; }
.pills .pill { position: absolute; }
.pill--1 { top: 5%; left: -3%; }
.pill--2 { top: 36%; right: -5%; }
.pill--3 { bottom: 27%; right: -3%; }
.pill--4 { bottom: 3%; left: 0; }

@media (min-width: 560px) {
  .pill { font-size: 0.9375rem; }
}

.pill--static {
  padding: 0.2rem 0.65rem;
  border-width: 1.5px;
  box-shadow: none;
  font-size: 0.75rem;
}

/* Name strip */

.strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.75rem;
  margin-top: clamp(3rem, 7vw, 5rem);
  padding: 1.5rem 0 1.75rem;
  border-top: 1px solid var(--line);
}
.strip__list { display: flex; flex-wrap: wrap; gap: 0.4rem 1.6rem; }
.strip__list li {
  font-weight: 700;
  font-size: 1.0625rem;
  letter-spacing: -0.01em;
  color: var(--soft);
}

/* ---------- Sections ---------- */

.section {
  padding-block: clamp(4rem, 9vw, 7.5rem);
  border-bottom: 1px solid var(--line);
}
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}

.section-head__text {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 48rem;
}

.section-head__index {
  flex: none;
  font-weight: 800;
  font-size: clamp(4rem, 9vw, 8.5rem);
  line-height: 0.8;
  letter-spacing: -0.04em;
  color: rgba(91, 124, 255, 0.06);
  -webkit-text-stroke: 2px rgba(91, 124, 255, 0.35);
  user-select: none;
}

@media (max-width: 639px) {
  .section-head__index { display: none; }
}

/* ---------- Cards ---------- */

.card {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: clamp(1.25rem, 3vw, 1.75rem);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  transition: border-color 0.4s var(--ease);
}
.card:hover { border-color: var(--construct); }

.card__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  margin-top: auto;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
}

.ticks { display: grid; gap: 0.5rem; padding-bottom: 0.5rem; }
.ticks li {
  display: flex;
  align-items: baseline;
  gap: 0.65rem;
  font-size: 0.9688rem;
}
.ticks li::before {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  background: var(--cobalt);
  transform: translateY(-2px);
}

/* Offers */

/* Two across on desktop, so four offers sit as a tidy 2x2. */
.offers {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr));
}

.offer__title { font-size: 1.5rem; font-weight: 800; line-height: 1.15; letter-spacing: -0.025em; }
.offer__for { font-weight: 600; color: var(--chalk); }
.offer__body { color: var(--muted); }

/* A full-width offer: text on the left, what's included on the right. */
.offer--wide { grid-column: 1 / -1; }
@media (min-width: 900px) {
  .offer--wide {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    grid-template-areas: "title ticks" "for ticks" "body ticks" "foot foot";
    align-content: start;
    gap: 0.85rem 3rem;
  }
  .offer--wide .offer__title { grid-area: title; }
  .offer--wide .offer__for { grid-area: for; }
  .offer--wide .offer__body { grid-area: body; }
  .offer--wide .ticks { grid-area: ticks; align-self: center; }
  .offer--wide .card__foot { grid-area: foot; }
}

/* Capabilities */
.capabilities {
  margin-top: clamp(2.5rem, 6vw, 4rem);
  padding-top: clamp(2rem, 4vw, 2.75rem);
  border-top: 1px solid var(--line);
}
.capabilities__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.5rem 1.25rem; margin-bottom: 1.75rem; }
.capabilities__lede { font-weight: 800; font-size: clamp(1.375rem, 1.1rem + 1vw, 1.875rem); letter-spacing: -0.025em; line-height: 1.15; }
.capabilities__grid {
  display: grid;
  gap: 2rem 2.5rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
}
.capability__title {
  margin-bottom: 0.9rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--line-strong);
  font-size: 1.0625rem;
  font-weight: 700;
}
.capability .ticks li { color: var(--soft); }

/* ---------- Track record ---------- */

.roles { border-top: 1px solid var(--line); }

.role {
  display: grid;
  gap: 0.35rem 2rem;
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--line);
}

.role__when {
  font: 500 0.75rem/1.6 var(--font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cobalt);
}
.role__when:empty { display: none; }

.role__org { font-size: 1.375rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; }
.role__org a { text-decoration: none; }
.role__org a:hover { text-decoration: underline; text-decoration-color: var(--cobalt); }
.role__title { font-size: 0.9688rem; color: var(--soft); }
.role__sector { color: var(--muted); }
.role__note { font-size: 0.9688rem; color: var(--muted); }

@media (min-width: 900px) {
  .role { grid-template-columns: 7.5rem minmax(0, 1fr) minmax(0, 1.35fr); align-items: baseline; }
  .role__when:empty { display: block; }
}

.roles__earlier { margin-top: 1.25rem; font-size: 0.9688rem; color: var(--muted); }
.roles__earlier .kicker { margin-right: 0.75rem; }

.split {
  display: grid;
  gap: 1.25rem;
  margin-top: 2.5rem;
}
.split--wide { gap: 3rem 4rem; margin-top: 0; }

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

.mini-list li { padding: 0.9rem 0; border-bottom: 1px solid var(--line); }
.mini-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.mini-list a, .mini-list strong { font-weight: 700; font-size: 1.0625rem; color: var(--chalk); }
.mini-list a { text-decoration-color: var(--construct); }
.mini-list a:hover { text-decoration-color: var(--cobalt); }
.mini-list .meta { margin-left: 0.5rem; }
.mini-list p { margin-top: 0.2rem; font-size: 0.9375rem; color: var(--muted); }

/* Testimonials as news clippings, with the cobalt highlighter. */

.clippings {
  display: grid;
  gap: 1.75rem;
  margin-top: clamp(3rem, 6vw, 4.5rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
}

.clipping {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--paper);
  color: var(--ink);
  border-radius: 6px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.65);
  transform: rotate(-1deg);
  transition: transform 0.5s var(--ease);
}
.clipping:nth-child(2) { transform: rotate(0.8deg); }
.clipping:nth-child(3) { transform: rotate(-0.5deg); }
.clipping:hover { transform: rotate(0deg) scale(1.01); }

.clipping__head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid #D4D4CF;
  font: 400 0.6875rem/1.3 var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.clipping__quote p {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.0625rem;
  line-height: 1.55;
}

.clipping mark {
  padding: 1px 4px;
  background: rgba(91, 124, 255, 0.42);
  color: inherit;
  border-radius: 3px;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.clipping__who {
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid #D4D4CF;
  font-size: 0.9375rem;
}
.clipping__who span {
  display: block;
  font: 400 0.6875rem/1.4 var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

/* ---------- Built ---------- */

.projects {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
}

.project__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
}
.project__name { font-size: 1.75rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; }
.project p { color: var(--muted); }

.project--wide { grid-column: 1 / -1; border-color: rgba(91, 124, 255, 0.35); }
.project--wide .project__body { max-width: 62ch; color: var(--soft); }

.project__points {
  display: grid;
  gap: 1rem 2rem;
  margin: 0.5rem 0 0.25rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
}
.project__points li {
  padding: 0.15rem 0 0.15rem 1rem;
  border-left: 2px solid var(--cobalt);
  font-size: 0.9688rem;
  color: var(--muted);
}
.project__points strong { display: block; margin-bottom: 0.2rem; color: var(--chalk); }

/* ---------- The Manuel (YouTube) ---------- */

.watch { display: grid; gap: 1.25rem; }

@media (min-width: 1000px) {
  .watch { grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); align-items: start; }
}

.watch__stage {
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.yt { position: relative; aspect-ratio: 16 / 9; background: #000; }
.yt__link, .yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt__link img { width: 100%; height: 100%; object-fit: cover; }

.yt__play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 76px;
  height: 76px;
  margin: -38px 0 0 -38px;
  background: var(--cobalt);
  border-radius: 50%;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.55);
  transition: transform 0.35s var(--ease-pop);
}
.yt__play::after {
  content: "";
  position: absolute;
  left: 30px;
  top: 24px;
  border-style: solid;
  border-width: 14px 0 14px 22px;
  border-color: transparent transparent transparent var(--ground);
}
.yt__link:hover .yt__play, .yt__link:focus-visible .yt__play { transform: scale(1.08); }

.watch__meta { display: grid; gap: 0.6rem; padding: clamp(1.25rem, 3vw, 1.75rem); }
.watch__title { font-size: clamp(1.375rem, 1.1rem + 1vw, 1.875rem); font-weight: 800; line-height: 1.12; letter-spacing: -0.025em; }
.watch__desc { color: var(--muted); }

.watch__list {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
}
@media (min-width: 1000px) {
  .watch__list { grid-template-columns: 1fr; }
}

.vcard {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  align-items: center;
  gap: 0.85rem;
  padding: 0.6rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  text-decoration: none;
  transition: border-color 0.3s;
}
.vcard:hover, .vcard[aria-current="true"] { border-color: var(--cobalt); }
.vcard img { width: 128px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; }
.vcard__title {
  display: -webkit-box;
  margin-bottom: 0.3rem;
  overflow: hidden;
  font-weight: 700;
  font-size: 0.9375rem;
  line-height: 1.3;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

/* ---------- Speaking ---------- */

.topics { margin-top: 0.75rem; border-top: 1px solid var(--line); }
.topic {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr);
  gap: 1rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--line);
}
.topic__num {
  font-weight: 800;
  font-size: 1.75rem;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(91, 124, 255, 0.7);
}
.topic__title { margin-bottom: 0.3rem; font-size: 1.25rem; font-weight: 700; line-height: 1.25; }
.topic p { color: var(--muted); }

.topics--grid {
  display: grid;
  gap: 0 2.5rem;
  margin-top: 0;
  border-top: 0;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
}
.topics--grid .topic { border-top: 1px solid var(--line); }

.stages { margin-top: 0.75rem; border-top: 1px solid var(--line); }
.stage { display: grid; gap: 0.35rem; padding: 1.25rem 0; border-bottom: 1px solid var(--line); }
.stage__event { font-size: 1.125rem; font-weight: 700; line-height: 1.3; }
.stage > p:last-child { color: var(--muted); }

.stages--grid {
  display: grid;
  gap: 1.25rem;
  margin-top: 0;
  border-top: 0;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
}
.stage.card { padding: clamp(1.25rem, 3vw, 1.75rem); border: 1px solid var(--line); gap: 0.5rem; }

.formats__label { margin-top: 3rem; }
.formats {
  display: grid;
  gap: 1rem 2rem;
  margin-top: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
}
.formats li { padding: 0.15rem 0 0.15rem 1rem; border-left: 2px solid var(--construct); color: var(--muted); }
.formats strong { display: block; color: var(--chalk); }

.bios {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
}
.bio__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.bio p:not(.kicker) { color: var(--soft); line-height: 1.65; }

.copy-btn {
  min-height: 36px;
  padding: 0.35rem 0.85rem;
  background: var(--ground);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  font: 500 0.75rem/1 var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
}
.copy-btn:hover { border-color: var(--cobalt); }

/* ---------- Books & posts ---------- */

.books {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
}
.book__title { font-size: 1.625rem; font-weight: 800; line-height: 1.05; letter-spacing: -0.03em; }
.book__subtitle {
  font: 500 0.75rem/1.45 var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--soft);
}
.book__pitch { color: var(--muted); }
.book--newsletter {
  background: radial-gradient(circle at 100% 0, rgba(91, 124, 255, 0.16), transparent 65%), var(--panel);
  border-color: rgba(91, 124, 255, 0.35);
}

.posts {
  display: grid;
  gap: 1.25rem;
  margin-top: 2.5rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
}
.posts--all { margin-top: 0; }
.posts--2 { margin-top: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }

.post-card__link {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  height: 100%;
  padding: clamp(1.25rem, 3vw, 1.75rem);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  text-decoration: none;
  transition: border-color 0.3s;
}
.post-card__link:hover { border-color: var(--construct); }
.post-card--compact .post-card__link { gap: 0.5rem; }
.post-card__title { font-size: 1.25rem; font-weight: 700; line-height: 1.25; letter-spacing: -0.01em; }
.post-card__desc { font-size: 0.9688rem; color: var(--muted); }
.post-card__more {
  margin-top: auto;
  padding-top: 0.5rem;
  font: 500 0.8125rem/1.3 var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cobalt);
}

/* ---------- FAQ ---------- */

.faq { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 0;
  list-style: none;
  cursor: pointer;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+";
  flex: none;
  font: 500 1.5rem/1 var(--font-mono);
  color: var(--cobalt);
  transition: transform 0.3s var(--ease);
}
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__q { font-size: clamp(1.125rem, 1rem + 0.45vw, 1.375rem); font-weight: 700; line-height: 1.3; letter-spacing: -0.01em; }
.faq__a { max-width: 65ch; padding-bottom: 1.5rem; color: var(--soft); }
.faq__a a { color: var(--cobalt); }

/* ---------- Contact & brief form ---------- */

.contact { display: grid; gap: 2.5rem; }

@media (min-width: 960px) {
  .contact { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 4rem; align-items: start; }
  .contact__intro { position: sticky; top: 100px; }
}

.contact__intro { display: flex; flex-direction: column; gap: 1rem; }

.direct { display: grid; gap: 0.6rem; margin-top: 0.75rem; }
.direct a, .direct div {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.85rem 1rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.direct a:hover { border-color: var(--cobalt); }

.brief {
  padding: clamp(1.25rem, 4vw, 2rem);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.brief__form { display: grid; gap: 1.25rem; }

.label {
  display: block;
  margin-bottom: 0.5rem;
  font: 500 0.75rem/1.3 var(--font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--soft);
}
.label__hint { margin-left: 0.4rem; color: var(--muted); letter-spacing: 0.04em; text-transform: none; }

.field-row { display: grid; gap: 1.25rem; }
@media (min-width: 640px) {
  .field-row { grid-template-columns: 1fr 1fr; }
}

.field input, .field textarea, .field select {
  display: block;
  width: 100%;
  min-height: 50px;
  padding: 0.75rem 1rem;
  background: var(--ground);
  border: 1px solid var(--input-line);
  border-radius: 10px;
  font-size: 1rem;
  line-height: 1.4;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { min-height: 150px; resize: vertical; line-height: 1.5; }
.field select {
  padding-right: 2.75rem;
  font-weight: 600;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1.5l6 6 6-6' fill='none' stroke='%235B7CFF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
}
.field select option { background: var(--panel); color: var(--chalk); }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--cobalt);
  box-shadow: 0 0 0 3px rgba(91, 124, 255, 0.25);
}
.field ::placeholder { color: #85858C; }
.field [aria-invalid="true"] { border-color: var(--chalk); border-width: 2px; }

.field__error { margin-top: 0.4rem; font-size: 0.875rem; color: var(--chalk); }
.field__error::before { content: "↑ "; color: var(--cobalt); font-weight: 700; }

.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.brief__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.25rem; padding-top: 0.25rem; }
.fineprint { max-width: 38ch; font-size: 0.8125rem; color: var(--muted); }

.notice {
  margin-bottom: 1.25rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--chalk);
  border-radius: 10px;
  background: rgba(242, 242, 242, 0.05);
}
.notice--ok { border-color: var(--cobalt); background: rgba(91, 124, 255, 0.1); }
.notice a { color: var(--cobalt); }

/* ---------- Articles ---------- */

.crumbs {
  margin-bottom: 1.25rem;
  font: 500 0.75rem/1.3 var(--font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.crumbs a { color: var(--soft); text-decoration: none; }
.crumbs a:hover { color: var(--chalk); text-decoration: underline; }

.hero--plain .wrap { display: flex; flex-direction: column; align-items: flex-start; gap: 1.25rem; }
.hero--plain .crumbs { margin-bottom: 0; }

.article__head { padding: clamp(2.5rem, 6vw, 4.5rem) 0 2rem; }
.article__head .kicker { margin-bottom: 1rem; }
.article__title {
  font-weight: 800;
  font-size: clamp(2.25rem, 1.35rem + 3.7vw, 3.75rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.article__byline { margin-top: 1rem; color: var(--muted); }
.article__byline a { color: var(--chalk); }

.article__image {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.summary {
  margin: 2.5rem 0;
  padding: 1.25rem 1.4rem;
  background: var(--panel);
  border-left: 4px solid var(--cobalt);
  border-radius: 0 12px 12px 0;
}
.summary p:not(.kicker) { margin-top: 0.5rem; font-size: 1.125rem; line-height: 1.55; }

.prose { font-size: 1.125rem; line-height: 1.7; color: #DADADF; }
.prose > * + * { margin-top: 1.25em; }
.prose h2 {
  margin-top: 2.2em;
  font-size: clamp(1.5rem, 1.3rem + 0.8vw, 2rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--chalk);
}
.prose h3 { margin-top: 1.8em; font-size: 1.3rem; font-weight: 700; line-height: 1.25; color: var(--chalk); }
.prose h4 { margin-top: 1.5em; font-size: 1.125rem; font-weight: 700; color: var(--chalk); }
.prose h2 + *, .prose h3 + *, .prose h4 + * { margin-top: 0.75em; }
.prose strong { color: var(--chalk); }
.prose a { color: var(--cobalt); }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose ul { list-style: square; }
.prose ol { list-style: decimal; }
.prose li::marker { color: var(--cobalt); }
.prose li + li { margin-top: 0.5em; }
.prose blockquote { padding-left: 1.25rem; border-left: 3px solid var(--cobalt); font-size: 1.25rem; color: var(--chalk); }
.prose hr { margin: 2.5em 0; border: 0; border-top: 1px solid var(--line); }
.prose img { border-radius: 12px; }
.prose figcaption { margin-top: 0.5rem; font-size: 0.875rem; color: var(--muted); }
.prose code { padding: 0.1em 0.35em; background: var(--panel); border-radius: 4px; font-family: var(--font-mono); font-size: 0.9em; }

.author.card {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
  margin: 3.5rem 0 clamp(3rem, 7vw, 5rem);
}
.author img { width: 64px; height: 64px; border: 2px solid var(--cobalt); border-radius: 50%; object-fit: cover; }
.author__name { margin: 0.2rem 0 0.4rem; font-size: 1.25rem; font-weight: 800; }
.author p:not(.kicker):not(.author__name) { color: var(--muted); font-size: 0.9688rem; }
.author__actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1rem; }

/* ---------- Footer ---------- */

.site-footer {
  padding: clamp(3rem, 7vw, 5rem) 0 2rem;
  background: var(--matte);
  border-top: 1px solid var(--line);
}

.site-footer__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--line);
}
.brand--lg { margin-right: 0; }
.brand--lg .brand__mark { width: 56px; height: 34px; }
.brand--lg .brand__name { display: inline; font-size: 1rem; }
.site-footer__tagline { font-weight: 800; font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.25rem); letter-spacing: -0.035em; }

.site-footer__cols {
  display: grid;
  gap: 2rem;
  padding: 2rem 0;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}
.site-footer__cols nav, .site-footer__cols > div { display: flex; flex-direction: column; align-items: flex-start; gap: 0.6rem; }
.site-footer__cols .kicker { margin-bottom: 0.25rem; }
.site-footer__cols a { font-size: 0.9688rem; color: var(--soft); text-decoration: none; overflow-wrap: anywhere; }
.site-footer__cols a:hover { color: var(--chalk); text-decoration: underline; }
.site-footer__muted { font-size: 0.9688rem; color: var(--muted); }

.site-footer__legal { padding-top: 1.5rem; border-top: 1px solid var(--line); font-size: 0.8125rem; color: var(--muted); }
.site-footer__legal a, .site-footer__legal .link-button { margin-left: 1rem; color: var(--soft); }

.link-button {
  padding: 0;
  background: none;
  border: 0;
  font: inherit;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.link-button:hover { color: var(--chalk); }

[hidden] { display: none !important; }

/* ---------- Cookie consent ---------- */

.consent {
  position: fixed;
  z-index: 60;
  left: 12px;
  right: 12px;
  bottom: 12px;
  display: grid;
  gap: 0.6rem;
  padding: 1.1rem 1.2rem;
  background: var(--panel);
  border: 1px solid var(--line-strong);
  border-left: 3px solid var(--cobalt);
  border-radius: 14px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.65);
}
.consent__text { font-size: 0.9375rem; line-height: 1.5; color: var(--soft); }
.consent__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 0.75rem; margin-top: 0.25rem; }
.consent__link { margin-left: auto; font-size: 0.875rem; color: var(--muted); }
.consent__link:hover { color: var(--chalk); }

@media (min-width: 640px) {
  .consent { left: 24px; right: auto; bottom: 24px; max-width: 400px; }
}

@media (prefers-reduced-motion: no-preference) {
  .consent:not([hidden]) { animation: pop 0.5s var(--ease) both; }
}

/* ---------- Motion ---------- */

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(0.94); } }

@media (prefers-reduced-motion: no-preference) {
  .pills .pill { animation: pop 0.6s var(--ease-pop) both; }
  .pills .pill--1 { animation-delay: 0.15s; }
  .pills .pill--2 { animation-delay: 0.3s; }
  .pills .pill--3 { animation-delay: 0.45s; }
  .pills .pill--4 { animation-delay: 0.6s; }
}

@media (prefers-reduced-motion: reduce) {
  .portrait__orbit > span { animation: none; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}
