/* Layout concept: full-bleed alternating black and white bands, one gutter grid,
   oversized tight-set uppercase display type with outlined counterparts,
   a single red accent, topographic texture under the dark bands. */
:root {
  --black: #000000;
  --ink: #161616;
  --ink-2: #232323;
  --paper: #ffffff;
  --grey: #f2f2f2;
  --grey-2: #e2e2e2;
  --mid: #737373;
  --mid-2: #4f4f4f;
  --red: #ed2024;
  --line-dark: rgba(255, 255, 255, 0.18);
  --line-light: rgba(0, 0, 0, 0.18);

  --font-display: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-body: "Helvetica Neue", Helvetica, Arial, "Archivo", sans-serif;

  --gutter-x: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  --max: 1440px;
  --pad: clamp(16px, 3.5vw, 50px);
  --radius: 14px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);

  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--black);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  overflow-x: clip;
}
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  z-index: 40;
  background: var(--black);
}

img, canvas, svg { max-width: 100%; display: block; }
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
h1, h2, h3, p, dl, dd, ul { margin: 0; }
ul { padding: 0; list-style: none; }

/* ---------- type ---------- */
.display {
  font-family: var(--font-display);
  font-stretch: 87.5%;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: -0.045em;
  line-height: 0.84;
  display: flex;
  flex-direction: column;
  text-wrap: balance;
}
.display > span { display: block; }
.display--hero { font-size: clamp(64px, 14vw, 206px); }
.display--section { font-size: clamp(44px, 7.6vw, 112px); }
.display--slab { font-size: clamp(48px, 9.5vw, 140px); letter-spacing: -0.04em; }
.outline {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--paper);
  font-weight: 500;
  font-stretch: 100%;
}
@supports not (-webkit-text-stroke: 1px #fff) {
  .outline { color: var(--paper); opacity: 0.55; }
}
.h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-stretch: 100%;
  font-size: clamp(32px, 3.4vw, 44px);
  letter-spacing: -0.03em;
  line-height: 1.05;
  text-wrap: balance;
}
.h2--xl {
  font-size: clamp(44px, 8vw, 118px);
  font-weight: 600;
  font-stretch: 87.5%;
  letter-spacing: -0.045em;
  line-height: 0.9;
  text-transform: uppercase;
}
.eyebrow, .tag {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.tag { color: var(--paper); opacity: 0.9; font-variant-numeric: tabular-nums; }
.eyebrow { color: var(--mid); }
.muted { color: var(--mid); }

/* ---------- bands ---------- */
.band { position: relative; isolation: isolate; }
.band--dark { background: var(--black); color: var(--paper); }
.band--light { background: var(--paper); color: var(--black); }
.band--grey { background: var(--grey); color: var(--black); }
.band__inner {
  position: relative;
  z-index: 2;
  max-width: var(--max);
  margin-inline: auto;
  padding-left: max(var(--pad), var(--gutter-x));
  padding-right: max(var(--pad), var(--gutter-r));
}

.topo {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: url("assets/topo.svg") center / cover no-repeat;
  opacity: 0.22;
}
.topo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, var(--black) 100%);
}
.grid-lines {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(90deg, var(--line-dark) 1px, transparent 1px),
    linear-gradient(180deg, var(--line-dark) 1px, transparent 1px);
  background-size: 25% 100%, 100% 33.333%;
  opacity: 0.3;
}

/* ---------- nav ---------- */
.nav {
  position: fixed; top: env(safe-area-inset-top, 0px); left: 0; right: 0; z-index: 30;
  color: var(--paper);
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease), transform 0.4s var(--ease);
}
.nav::before {
  content: ""; position: absolute; left: max(var(--pad), var(--gutter-x)); right: max(var(--pad), var(--gutter-r)); top: 30px;
  height: 1px; background: currentColor; opacity: 0.5;
}
.nav__inner {
  max-width: var(--max); margin-inline: auto;
  padding-left: max(var(--pad), var(--gutter-x)); padding-right: max(var(--pad), var(--gutter-r));
  padding-block: 44px 16px;
  display: flex; align-items: center; gap: 32px;
}
.nav.is-scrolled {
  background: rgba(0, 0, 0, 0.82);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
.nav.is-scrolled .nav__inner { padding-block: 14px; }
.nav.is-scrolled::before { opacity: 0; }
.nav.is-hidden { transform: translateY(-100%); }

.brand { display: inline-flex; align-items: center; gap: 8px; }
.brand__word {
  font-family: var(--font-display); font-weight: 600; font-stretch: 87.5%; letter-spacing: -0.02em; font-size: 20px;
}
.nav__links { display: flex; gap: clamp(16px, 2.4vw, 42px); margin-left: clamp(24px, 6vw, 110px); }
.nav__links a, .nav__contact { font-size: 14px; text-transform: uppercase; letter-spacing: 0.02em; opacity: 0.92; }
.nav__links a:hover, .nav__contact:hover { opacity: 1; text-decoration: underline; text-underline-offset: 6px; }
.nav__right { margin-left: auto; display: flex; align-items: center; gap: 20px; }
.nav__burger { display: none; width: 36px; height: 36px; flex-direction: column; justify-content: center; gap: 6px; }
.nav__burger span { display: block; height: 2px; background: currentColor; }

@media (max-width: 900px) {
  .nav__inner { padding-block: 40px 14px; gap: 16px; }
  .nav.is-scrolled .nav__inner { padding-block: 12px; }
  .nav__links {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; gap: 0; margin: 0;
    background: var(--black); color: var(--paper);
    padding-left: max(var(--pad), var(--gutter-x)); padding-right: max(var(--pad), var(--gutter-r));
    padding-block: 8px 20px;
    border-top: 1px solid var(--line-dark);
  }
  .nav__links a { padding-block: 14px; border-bottom: 1px solid var(--line-dark); font-size: 18px; }
  .nav__links[hidden] { display: none; }
  .nav__burger { display: flex; }
  .nav__contact { display: none; }
}

/* ---------- hero ---------- */
.hero { overflow: clip; }
.hero .topo { opacity: 0.28; }
.hero__scope { position: absolute; inset: auto 0 0 0; height: 46%; width: 100%; z-index: 1; opacity: 0.9; pointer-events: none; will-change: transform; transform: translateZ(0); }
.hero__inner {
  min-height: 86svh;
  padding-top: 170px;
  padding-bottom: clamp(40px, 6vw, 80px);
  display: grid;
  grid-template-columns: 1fr;
  align-content: end;
  gap: 28px;
}
.hero .tag { margin-bottom: -8px; }
.hero__aside { justify-self: end; max-width: 460px; width: 100%; display: grid; gap: 10px; }
.chip-row { display: flex; align-items: stretch; height: 30px; border: 1px solid var(--red); }
.chip {
  background: var(--red); color: var(--paper); display: inline-flex; align-items: center;
  padding-inline: 12px; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; white-space: nowrap;
}
.chip-hatch { flex: 1; color: var(--red); opacity: 0.8; }
.chip-hatch svg { width: 100%; height: 100%; }
.hero__sub { font-size: clamp(17px, 1.6vw, 22px); text-transform: uppercase; letter-spacing: 0.01em; line-height: 1.25; }
@media (min-width: 900px) {
  .hero__inner { grid-template-columns: 1fr auto; grid-template-areas: "tag tag" "title title" "x aside"; }
  .hero .tag { grid-area: tag; }
  .display--hero { grid-area: title; }
  .hero__aside { grid-area: aside; }
}

/* ---------- status ---------- */
.status__inner {
  padding-block: clamp(56px, 8vw, 120px);
  display: grid; gap: 32px;
  grid-template-columns: 1fr;
}
.status__right { max-width: 62ch; display: grid; gap: 24px; font-size: clamp(17px, 1.4vw, 20px); line-height: 1.5; }
.status .eyebrow { margin-bottom: 14px; }
.link-arrow { font-weight: 500; display: inline-flex; align-items: center; gap: 10px; }
.link-arrow::after { content: "→"; transition: transform 0.25s var(--ease); }
.link-arrow:hover::after { transform: translateX(5px); }
@media (min-width: 900px) { .status__inner { grid-template-columns: 1fr 1.4fr; } }

/* ---------- showcase ---------- */
.showcase .band__inner { padding-bottom: clamp(32px, 4vw, 56px); }
.showcase__frame {
  position: relative; border-radius: var(--radius); overflow: hidden;
  background: var(--ink); color: var(--paper);
  min-height: 520px;
  display: grid;
  grid-template-rows: 1fr auto;
}
.showcase__art { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; opacity: 0.8; }
.showcase__panel {
  position: relative; z-index: 1; align-self: start;
  margin: clamp(16px, 3vw, 44px);
  width: min(300px, calc(100% - 2 * clamp(16px, 3vw, 44px)));
  min-height: 300px;
  border-radius: 12px;
  background: rgba(40, 40, 40, 0.55);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  padding: 26px;
  display: grid; grid-template-rows: auto 1fr; gap: 32px;
}
.showcase__title {
  font-family: var(--font-display); font-weight: 600; font-stretch: 100%;
  font-size: clamp(34px, 3.2vw, 44px); letter-spacing: -0.03em; line-height: 1; text-wrap: balance;
}
.showcase__meta { align-self: end; display: grid; gap: 6px; }
.showcase__kicker { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }
.showcase__desc { font-size: 15px; line-height: 1.4; }
.showcase__detail {
  position: relative; z-index: 1;
  margin: 0 clamp(16px, 3vw, 44px) clamp(16px, 3vw, 44px);
  justify-self: end;
  width: min(100%, 440px);
  padding: 18px 20px 20px;
  border-radius: 12px;
  background: rgba(20, 20, 20, 0.6);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.showcase__detail dl { display: grid; gap: 10px; }
.showcase__detail dl > div { display: grid; grid-template-columns: 70px 1fr; gap: 12px; padding-top: 10px; border-top: 1px solid var(--line-dark); font-size: 14px; }
.showcase__detail dt { color: var(--mid); text-transform: uppercase; font-size: 12px; letter-spacing: 0.04em; padding-top: 2px; }
.showcase__tabs {
  position: relative; z-index: 1;
  grid-column: 1 / -1;
  background: var(--grey-2); color: var(--mid);
  display: grid; grid-template-columns: repeat(3, 1fr);
}
.showcase__tabs button {
  padding: 18px 22px 16px; text-align: left; font-size: 15px; position: relative; letter-spacing: 0.01em;
}
.showcase__tabs button::after {
  content: ""; position: absolute; left: 22px; right: 22px; bottom: 10px; height: 1px; background: currentColor; opacity: 0; transition: opacity 0.2s;
}
.showcase__tabs button[aria-selected="true"] { color: var(--red); }
.showcase__tabs button[aria-selected="true"]::after { opacity: 1; }
.showcase__tabs button:hover { color: var(--black); }
@media (max-width: 760px) {
  .showcase__frame { min-height: 0; }
  .showcase__panel { min-height: 240px; width: calc(100% - 2 * clamp(16px, 3vw, 44px)); }
  .showcase__detail { width: auto; justify-self: stretch; }
  .showcase__tabs { grid-template-columns: repeat(3, 1fr); }
  .showcase__tabs button { padding: 14px 16px 12px; font-size: 14px; }
  .showcase__tabs button::after { left: 16px; right: 16px; bottom: 6px; }
}

/* ---------- competencies / rails ---------- */
.competencies { padding-block: clamp(56px, 8vw, 120px) clamp(40px, 5vw, 72px); }
.competencies .h2--xl { text-transform: none; letter-spacing: -0.05em; font-weight: 500; font-stretch: 100%; margin-bottom: clamp(32px, 5vw, 80px); }
.rail {
  display: flex; gap: clamp(16px, 2.4vw, 40px);
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-left: max(var(--pad), var(--gutter-x));
  padding-right: max(var(--pad), var(--gutter-r));
  padding-bottom: 8px;
}
.rail::-webkit-scrollbar { display: none; }
@media (min-width: 1440px) {
  .rail { padding-left: calc((100vw - var(--max)) / 2 + var(--pad)); padding-right: calc((100vw - var(--max)) / 2 + var(--pad)); }
}
.comp {
  flex: 0 0 min(88vw, 1120px);
  scroll-snap-align: start;
  display: grid; grid-template-columns: 1fr; gap: 24px;
}
.comp__art { aspect-ratio: 16 / 11; border-radius: var(--radius); overflow: hidden; background: var(--ink); max-width: 100%; }
.comp__art canvas { width: 100%; height: 100%; }
.comp__text { display: grid; gap: 18px; align-content: center; max-width: 34ch; }
.comp__text h3 {
  font-family: var(--font-display); font-weight: 600; font-stretch: 87.5%; text-transform: uppercase;
  font-size: clamp(30px, 3.3vw, 46px); line-height: 0.95; letter-spacing: -0.03em; text-wrap: balance;
}
.comp__text p { color: var(--mid-2); font-size: 17px; }
@media (min-width: 900px) {
  .comp { grid-template-columns: 1.7fr 1fr; gap: clamp(24px, 3.5vw, 50px); }
}
.rail__dots { display: flex; justify-content: center; gap: 0; margin-top: clamp(24px, 4vw, 56px); padding-inline: 16px; }
.rail__dots span { width: 10px; height: 10px; border-radius: 50%; background: var(--grey-2); border: 1px solid var(--mid); position: relative; }
.rail__dots span.is-active { background: var(--red); border-color: var(--red); }
.rail__dots span + span { margin-left: clamp(40px, 12vw, 180px); }
.rail__dots span + span::before { content: ""; position: absolute; right: 100%; top: 50%; width: clamp(40px, 12vw, 180px); height: 1px; background: var(--grey-2); }

/* ---------- manifesto ---------- */
.manifesto { overflow: clip; }
.manifesto__side {
  position: sticky; top: 42%; z-index: 3; height: 0;
  padding-left: max(var(--pad), var(--gutter-x));
  display: none;
}
.manifesto__side ul { display: grid; gap: 14px; }
.manifesto__side li { font-size: 14px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--mid-2); position: relative; padding-left: 22px; transition: color 0.3s; }
.manifesto__side li::before { content: ""; position: absolute; left: 0; top: 50%; width: 6px; height: 6px; margin-top: -3px; background: currentColor; }
.manifesto__side li.is-active { color: var(--red); }
.manifesto__inner { padding-block: clamp(80px, 12vw, 180px); display: grid; gap: clamp(100px, 18vw, 260px); }
.slab { display: grid; gap: 28px; max-width: 1100px; }
.slab--right { justify-self: end; }
.slab .outline { margin-left: 0.5em; }
.slab--right .outline { margin-left: 0; margin-right: 0; align-self: end; }
.slab__body { max-width: 52ch; font-size: clamp(17px, 1.4vw, 20px); color: #d8d8d8; }
.slab__scope { margin-top: 12px; border-radius: var(--radius); overflow: hidden; background: #0a0a0a; border: 1px solid var(--line-dark); max-width: 720px; }
.slab__scope canvas { width: 100%; height: 240px; }
.scope__label { padding: 10px 14px; font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--mid); border-top: 1px solid var(--line-dark); }
@media (min-width: 1100px) {
  .manifesto__side { display: block; }
  .manifesto__inner { padding-left: calc(max(var(--pad), var(--gutter-x)) + 240px); }
}

/* ---------- fit ---------- */
.fit .band__inner { padding-block: clamp(32px, 4vw, 56px) clamp(40px, 5vw, 64px); }
.fit__frame {
  position: relative; border-radius: var(--radius); overflow: hidden; background: var(--ink); color: var(--paper);
  min-height: 520px; display: grid; align-content: end; padding: clamp(20px, 3.5vw, 48px);
}
.fit__art { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; opacity: 0.55; }
.fit__frame::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.78) 45%, rgba(0, 0, 0, 0.4) 100%),
              linear-gradient(180deg, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, 0.7) 100%);
}
.fit__content { position: relative; z-index: 1; max-width: 640px; display: grid; gap: 18px; margin-bottom: clamp(32px, 5vw, 72px); }
.fit__title { font-family: var(--font-display); font-weight: 600; font-stretch: 87.5%; text-transform: uppercase; font-size: clamp(34px, 4.6vw, 64px); letter-spacing: -0.035em; line-height: 0.95; }
.fit__text { font-size: clamp(16px, 1.3vw, 19px); color: #e4e4e4; }
.pill-tabs {
  position: relative; z-index: 1; justify-self: center;
  display: flex; border-radius: 8px; overflow: hidden; background: var(--ink-2); max-width: 100%;
}
.pill-tabs button {
  display: flex; align-items: center; gap: 28px; padding: 16px 24px; font-size: 16px; color: #c9c9c9; white-space: nowrap;
  transition: background-color 0.25s, color 0.25s;
}
.pill-tabs button b { font-weight: 500; opacity: 0.8; }
.pill-tabs button[aria-selected="true"] { background: var(--red); color: var(--paper); }
@media (max-width: 760px) {
  .fit__frame { min-height: 0; }
  .pill-tabs { flex-direction: column; justify-self: stretch; }
  .pill-tabs button { justify-content: space-between; }
}

/* ---------- stats ---------- */
.stats { overflow: clip; }
.stats__bg { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; opacity: 0.9; }
.stats .band__inner { padding-block: clamp(72px, 10vw, 150px); display: grid; gap: clamp(28px, 4vw, 48px); }
.stats__lede { max-width: 58ch; font-size: clamp(16px, 1.3vw, 19px); }
.tiles {
  display: grid; grid-template-columns: 1fr;
  border: 1px solid var(--line-dark);
  background: rgba(0, 0, 0, 0.35);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.tile { padding: clamp(28px, 4vw, 52px); display: grid; gap: 40px; align-content: space-between; min-height: 300px; }
.tile + .tile { border-top: 1px solid var(--line-dark); }
.tile__num {
  font-family: var(--font-display); font-weight: 500; font-stretch: 100%;
  font-size: clamp(80px, 9vw, 130px); letter-spacing: -0.05em; line-height: 0.9; font-variant-numeric: tabular-nums;
}
.tile__label { font-size: 17px; max-width: 30ch; }
.tile__hatch { height: 22px; color: rgba(255, 255, 255, 0.6); }
.tile__hatch svg { height: 100%; width: 100%; }
@media (min-width: 900px) {
  .tiles { grid-template-columns: repeat(3, 1fr); }
  .tile + .tile { border-top: 0; border-left: 1px solid var(--line-dark); }
  .tile { min-height: 470px; }
}

/* ---------- project log ---------- */
.log { padding-block: clamp(56px, 8vw, 120px); }
.log .h2--xl { margin-bottom: clamp(32px, 6vw, 110px); }
.rail--cards { gap: clamp(16px, 2.5vw, 40px); }
.card {
  flex: 0 0 320px; max-width: 86vw; scroll-snap-align: start;
  background: var(--ink); color: var(--paper); border-radius: 10px; overflow: hidden;
  display: grid; grid-template-rows: auto 1fr auto; min-height: 420px;
}
.card header { display: flex; justify-content: space-between; padding: 22px 24px 0; font-size: 13px; font-variant-numeric: tabular-nums; }
.card header span { font-weight: 700; }
.card h3 { font-weight: 400; font-size: 16px; line-height: 1.4; padding: 60px 24px 28px; align-self: end; text-wrap: pretty; }
.card__more { display: flex; justify-content: space-between; align-items: center; padding: 18px 24px; background: var(--ink-2); font-weight: 500; }
.card__more::after { content: "→"; }
.card__more:hover { background: #2d2d2d; }
.rail__progress { margin-top: clamp(32px, 5vw, 72px); height: 4px; background: var(--grey-2); position: relative; }
.rail__progress span { position: absolute; left: 0; top: 0; bottom: 0; width: 25%; background: var(--black); transition: width 0.1s linear, transform 0.1s linear; }

/* ---------- resume ---------- */
.resume__inner { padding-block: clamp(56px, 8vw, 120px); display: grid; gap: clamp(40px, 5vw, 72px); }
.resume__head { display: grid; gap: 14px; justify-items: start; }
.resume__grid { display: grid; grid-template-columns: 1fr; gap: clamp(28px, 4vw, 48px) clamp(28px, 4vw, 64px); }
.resume__block { display: grid; gap: 14px; align-content: start; padding-top: 18px; border-top: 1px solid var(--line-light); min-width: 0; }
.resume__block h3 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--mid); font-weight: 500; }
.resume__block p { font-size: 16px; line-height: 1.55; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { border: 1px solid var(--line-light); padding: 6px 10px; font-size: 13px; border-radius: 4px; }
.facts li { display: grid; grid-template-columns: 1fr 1.4fr; gap: 12px; padding-block: 10px; border-bottom: 1px solid var(--line-light); font-size: 15px; }
.facts li span:first-child { color: var(--mid); }
@media (min-width: 760px) { .resume__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .resume__inner { grid-template-columns: 1fr 2.4fr; align-items: start; } }

.btn {
  display: inline-flex; align-items: center; gap: 18px;
  background: var(--black); color: var(--paper);
  padding: 14px 14px 14px 22px; border-radius: 10px; font-size: 16px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.02em;
  transition: transform 0.25s var(--ease);
}
.btn__arrow { display: inline-grid; place-items: center; width: 52px; height: 36px; border-radius: 8px; background: var(--red); color: var(--paper); font-size: 18px; }
.btn:hover { transform: translateY(-2px); }
.btn--outline { background: transparent; border: 1px solid rgba(255, 255, 255, 0.5); color: var(--paper); }

/* ---------- cta ---------- */
.cta { overflow: clip; }
.cta__inner { padding-block: clamp(80px, 12vw, 170px); display: grid; gap: clamp(32px, 5vw, 64px); }
.cta__lede { max-width: 56ch; font-size: clamp(17px, 1.4vw, 20px); color: #e4e4e4; }
.cta__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.contact-line { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; min-width: 0; }
.contact-line__label { font-size: 13px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--mid); }
.contact-line code { font-family: var(--font-display); font-weight: 500; font-size: clamp(18px, 2vw, 26px); letter-spacing: -0.02em; user-select: all; overflow-wrap: anywhere; }
.copy { border: 1px solid var(--line-dark); padding: 6px 12px; border-radius: 6px; font-size: 13px; text-transform: uppercase; letter-spacing: 0.04em; }
.copy:hover { border-color: var(--paper); }
.copy.is-done { color: var(--red); border-color: var(--red); }

/* ---------- linkedin icon ---------- */
.icon-li { width: 18px; height: 18px; flex: none; }
.with-icon { display: inline-flex; align-items: center; gap: 10px; }
.nav__li { display: inline-flex; opacity: 0.92; }
.nav__li:hover { opacity: 1; color: var(--red); }
.nav__li .icon-li { width: 18px; height: 18px; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn--icon { gap: 12px; padding: 14px 20px; }
.btn--icon .icon-li { width: 20px; height: 20px; }
.btn--icon:hover { border-color: var(--paper); }

/* ---------- footer ---------- */
.footer { background: var(--ink); color: var(--paper); }
.footer__inner { padding-block: clamp(56px, 8vw, 110px) clamp(40px, 5vw, 80px); display: grid; gap: 48px; }
.footer__cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 32px; }
.footer__cols div { display: grid; gap: 14px; align-content: start; justify-items: start; }
.footer__cols h3 { color: var(--red); font-weight: 400; font-size: 18px; margin-bottom: 6px; }
.footer__cols a { font-size: 16px; }
.footer__cols a.with-icon .icon-li { width: 16px; height: 16px; }
.footer__cols a:hover { text-decoration: underline; text-underline-offset: 5px; }
.footer__bottom { padding-bottom: clamp(32px, 4vw, 56px); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 14px; }
@media (min-width: 900px) {
  .footer__inner { grid-template-columns: 1fr 1.2fr; align-items: start; }
}

/* ---------- motion ---------- */
.reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
  .js .reveal.is-in { opacity: 1; transform: none; }
  .display--hero > span { animation: rise 0.9s var(--ease) both; }
  .display--hero > span:nth-child(2) { animation-delay: 0.08s; }
  .display--hero > span:nth-child(3) { animation-delay: 0.16s; }
  @keyframes rise { from { opacity: 0; transform: translateY(0.25em); } to { opacity: 1; transform: none; } }
}

/* ---------- contact form ---------- */
.eyebrow--light { color: #a3a3a3; }
.contact-form {
  display: grid; grid-template-columns: 1fr; gap: 18px 20px;
  padding: clamp(20px, 3vw, 36px);
  border: 1px solid var(--line-dark); border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.45);
}
.contact-form__head { display: grid; gap: 8px; grid-column: 1 / -1; margin-bottom: 6px; }
.contact-form__note { color: #c9c9c9; max-width: 52ch; }
.field { display: grid; gap: 8px; min-width: 0; }
.field label { font-size: 13px; text-transform: uppercase; letter-spacing: 0.04em; color: #c9c9c9; }
.field input, .field textarea {
  width: 100%; font: inherit; color: var(--paper);
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line-dark); border-radius: 8px;
  padding: 12px 14px; transition: border-color 0.2s, background-color 0.2s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--paper); background: rgba(255, 255, 255, 0.07); }
.field input:user-invalid, .field textarea:user-invalid { border-color: var(--red); }
.field textarea { resize: vertical; min-height: 120px; }
.field--full { grid-column: 1 / -1; }
.field--hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.contact-form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; }
.contact-form__status { font-size: 15px; color: #c9c9c9; min-height: 1.5em; }
.contact-form__status.is-ok { color: var(--paper); }
.contact-form__status.is-err { color: #ff6b6e; }
.btn:disabled { opacity: 0.6; cursor: progress; transform: none; }
@media (min-width: 760px) { .contact-form { grid-template-columns: 1fr 1fr 1fr; } }

/* ---------- chat widget ---------- */
.nav__chat { display: inline-flex; }
.chat-fab {
  position: fixed; z-index: 35;
  right: calc(20px + env(safe-area-inset-right, 0px)); bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 18px; border-radius: 999px;
  background: var(--paper); color: var(--black);
  font-size: 14px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.03em;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  transition: transform 0.25s var(--ease);
}
.chat-fab:hover { transform: translateY(-2px); }
.chat-fab__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px rgba(237, 32, 36, 0.2); }
.chat-fab[aria-expanded="true"] { display: none; }
.chat {
  position: fixed; z-index: 36;
  right: calc(20px + env(safe-area-inset-right, 0px)); bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  width: min(400px, calc(100vw - 40px - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px)));
  height: min(680px, calc(100vh - 40px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)));
  height: min(680px, calc(100dvh - 40px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)));
  display: grid; grid-template-rows: auto minmax(0, 1fr) auto auto auto;
  background: var(--ink); color: var(--paper);
  border: 1px solid var(--line-dark); border-radius: 16px; overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}
.chat[hidden] { display: none; }
.chat__head { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line-dark); background: var(--black); }
.chat__title { font-family: var(--font-display); font-weight: 600; font-stretch: 87.5%; font-size: 18px; letter-spacing: -0.01em; }
.chat__status { font-size: 12px; color: var(--mid); display: flex; align-items: center; gap: 6px; }
.chat__live { width: 7px; height: 7px; border-radius: 50%; background: var(--red); flex: none; }
.chat__close { font-size: 26px; line-height: 1; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: var(--mid); }
.chat__close:hover { color: var(--paper); background: var(--ink-2); }
.chat__log { overflow-y: auto; padding: 16px; display: grid; gap: 10px; align-content: start; min-height: 0; scrollbar-width: thin; }
.msg { max-width: 88%; padding: 10px 14px; border-radius: 14px; font-size: 15px; line-height: 1.45; overflow-wrap: anywhere; }
.msg a { text-decoration: underline; text-underline-offset: 3px; }
.msg--bot { background: var(--ink-2); border-bottom-left-radius: 4px; justify-self: start; }
.msg--user { background: var(--red); color: var(--paper); border-bottom-right-radius: 4px; justify-self: end; }
.msg--typing { color: var(--mid); font-size: 13px; }
.chat__chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 16px 12px; }
.chat__chips:empty, .chat__chips[hidden] { display: none; }
.chat__chips button { border: 1px solid var(--line-dark); border-radius: 999px; padding: 7px 12px; font-size: 13px; color: #d8d8d8; }
.chat__chips button:hover { border-color: var(--paper); color: var(--paper); }
.chat__schedule { padding: 14px 16px; border-top: 1px solid var(--line-dark); display: grid; gap: 12px; background: var(--black); }
.chat__schedule[hidden] { display: none; }
.chat__schedule-title { font-size: 13px; color: #c9c9c9; }
.chat__schedule-head { display: flex; justify-content: space-between; align-items: start; gap: 12px; }
.chat__schedule-hide { font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--mid); white-space: nowrap; }
.chat__schedule-hide:hover { color: var(--paper); }
.chat__schedule-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.chat__field { display: grid; gap: 6px; font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--mid); min-width: 0; }
.chat__field input, .chat__field select { width: 100%; font: inherit; font-size: 14px; color: var(--paper); background: var(--ink-2); border: 1px solid var(--line-dark); border-radius: 8px; padding: 9px 10px; }
.chat__meet { justify-self: start; padding: 10px 10px 10px 16px; font-size: 14px; background: var(--paper); color: var(--black); }
.chat__meet .btn__arrow { height: 30px; width: 44px; }
.chat__form { display: grid; grid-template-columns: 1fr auto; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--line-dark); }
.chat__form input { font: inherit; color: var(--paper); background: var(--ink-2); border: 1px solid var(--line-dark); border-radius: 999px; padding: 10px 16px; min-width: 0; }
.chat__form input:focus { outline: none; border-color: var(--paper); }
.chat__form button { width: 42px; height: 42px; border-radius: 50%; background: var(--red); color: var(--paper); font-size: 18px; }
@media (max-width: 480px) {
  .chat { right: 12px; left: 12px; bottom: 12px; width: auto; height: min(680px, calc(100vh - 24px)); height: min(680px, calc(100dvh - 24px)); }
  .chat__schedule-row { grid-template-columns: 1fr; }
}
