/* ==========================================================================
   Predrag Lazić · Portfolio — "Blueprint + signal"
   ========================================================================== */

/* ---------- Fonts (self-hosted, latin + latin-ext subsets) ---------- */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 200 700;
  font-display: swap;
  src: url(../assets/fonts/inter-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 200 700;
  font-display: swap;
  src: url(../assets/fonts/inter-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url(../assets/fonts/jetbrains-mono-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url(../assets/fonts/jetbrains-mono-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Design tokens ---------- */
:root {
  /* colour */
  --bg: #000000;
  --bg-band: #0e0e0e;
  --bg-shot: #0b0b0b;
  --bg-shot-hover: #111111;
  --text: #ffffff;
  --text-strong: rgba(255, 255, 255, 0.82);
  --text-body: rgba(255, 255, 255, 0.75);
  --text-eyebrow: rgba(255, 255, 255, 0.7);
  --text-nav: rgba(255, 255, 255, 0.7);
  --text-label: rgba(255, 255, 255, 0.62);
  --text-placeholder: rgba(255, 255, 255, 0.5);
  --text-dim: rgba(255, 255, 255, 0.4);
  --line-1: rgba(255, 255, 255, 0.1);
  --line-2: rgba(255, 255, 255, 0.14);
  --line-3: rgba(255, 255, 255, 0.22);
  --line-btn: rgba(255, 255, 255, 0.3);
  --grid-line: rgba(255, 255, 255, 0.07);
  --accent: #7df9c4;
  --accent-glow-9: rgba(125, 249, 196, 0.09);
  --accent-glow-16: rgba(125, 249, 196, 0.16);
  --error: #ff9b8f;

  /* type */
  --font-sans: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Consolas, monospace;
  --fs-body: 17px;
  --fs-label: 12px;
  --fs-nav: 15px;
  --fs-lead: 19px;
  --fs-intro: 20px;
  --fs-field: 18px;
  --fs-h1: clamp(44px, 6.4vw, 92px);
  --fs-h2: clamp(40px, 5.6vw, 80px);
  --fs-h2-xl: clamp(44px, 8vw, 116px);
  --fs-manifesto: clamp(28px, 3.9vw, 56px);
  --fs-card-title: 34px;
  --fs-row-title: clamp(22px, 2.4vw, 32px);
  --fs-mail: clamp(22px, 3vw, 36px);
  --fs-menu: 24px;

  /* motion */
  --ease: cubic-bezier(.22, 1, .36, 1);

  /* layout */
  --content: 1200px;
  --wrap: 1288px;                      /* content + rail + right padding at their max */
  --gutter: clamp(8px, 3vw, 40px);     /* page edge to wrapper */
  --rail: clamp(20px, 5vw, 44px);      /* space left of content for the signal line */
  --pad-r: clamp(0px, 3vw, 44px);
  --sec-pad: clamp(72px, 9vw, 128px);
  --header-h: 72px;
}

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

html {
  color-scheme: dark;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.55;
  overflow-x: clip;
}

a { color: var(--text); }
a:hover { color: var(--accent); }
:focus-visible { outline: 1px solid var(--accent); outline-offset: 4px; }
::selection { background: var(--accent); color: #000; }
img { max-width: 100%; }
main:focus { outline: none; }

.accent, .hl { color: var(--accent); }
.hl { font-weight: 700; }
.tabular { font-variant-numeric: tabular-nums; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  z-index: 100;
  left: var(--gutter);
  top: 8px;
  padding: 12px 18px;
  background: var(--accent);
  color: #000;
  font-size: var(--fs-nav);
  font-weight: 500;
  text-decoration: none;
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; color: #000; }

/* Shared wrapper: centred, rail space on the left */
.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--pad-r) 0 var(--rail);
}

.mono-label {
  margin: 0;
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-label);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  height: 52px;
  padding: 0 28px;
  border: 0;
  border-radius: 0;
  font: 500 var(--fs-nav) var(--font-sans);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background .3s var(--ease), color .3s, border-color .3s;
}
.btn--solid { background: var(--text); color: #000; }
.btn--solid:hover { background: var(--accent); color: #000; }
.btn--ghost { border: 1px solid var(--line-btn); color: var(--text); font-weight: 400; }
.btn--ghost:hover { border-color: var(--accent); background: rgba(255, 255, 255, .04); color: var(--accent); }
.btn--sm { height: auto; padding: 11px 20px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 0 var(--gutter);
  background: rgba(0, 0, 0, 0.72);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-1);
}

.header-bar {
  min-height: var(--header-h);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 32px;
}
.header-side { flex: 1 1 0; display: flex; justify-content: flex-start; align-items: center; }
.header-side--end { justify-content: flex-end; }

.logo {
  padding: 12px 0;
  font-family: var(--font-mono);
  font-size: var(--fs-nav);
  text-decoration: none;
  white-space: nowrap;
}

.nav-desk {
  flex: 0 1 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 4px 32px;
  font-size: var(--fs-nav);
}

.navl {
  position: relative;
  padding: 12px 0;
  color: var(--text-nav);
  text-decoration: none;
  transition: color .3s;
}
.navl:hover, .navl.is-active { color: var(--text); }
.navl::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 6px;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s var(--ease);
}
.navl:hover::after, .navl:focus-visible::after { transform: scaleX(1); }

/* Mobile menu */
.burger {
  display: none;
  width: 44px;
  height: 44px;
  margin-right: -10px;
  padding: 0;
  background: transparent;
  border: 0;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
}
.burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  transition: transform .3s var(--ease);
}
.burger[aria-expanded="true"] .b1 { transform: translateY(4.5px) rotate(45deg); }
.burger[aria-expanded="true"] .b2 { transform: translateY(-4.5px) rotate(-45deg); }

.mnav {
  display: none;
  position: absolute;
  left: 0; right: 0; top: 100%;
  flex-direction: column;
  padding: 4px calc(var(--gutter) + var(--rail)) 24px;
  background: rgba(0, 0, 0, 0.96);
  border-top: 1px solid var(--line-1);
  border-bottom: 1px solid var(--line-2);
}
.mnav__link {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line-1);
  font-size: var(--fs-menu);
  font-weight: 300;
  letter-spacing: -0.02em;
  text-decoration: none;
}
.mnav__num {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: 0.1em;
  color: var(--accent);
}
.mnav__cta { display: flex; justify-content: center; margin-top: 20px; }

@media (max-width: 760px) {
  .js .nav-desk, .js .nav-cta { display: none; }
  .js .burger { display: inline-flex; }
  .js .mnav {
    display: flex;
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    visibility: hidden;
    transition: opacity .25s ease, transform .3s var(--ease), visibility 0s linear .3s;
  }
  .js .mnav.is-open {
    opacity: 1;
    transform: none;
    pointer-events: auto;
    visibility: visible;
    transition-delay: 0s;
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(56px, 8vw, 112px) var(--gutter) clamp(48px, 6vw, 80px);
}
.hero__glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(ellipse 40% 55% at 76% 44%, var(--accent-glow-9) 0%, transparent 70%);
}
.hero__inner { position: relative; z-index: 1; }

.hero__cols { display: flex; flex-wrap: wrap; align-items: center; gap: 40px 64px; }
.hero__text { flex: 1.2 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 32px; }
.hero__visual { flex: 1 1 400px; min-width: 0; max-width: 580px; }

.kicker {
  margin: 0;
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-label);
}
.hero__title {
  margin: 0;
  font-size: var(--fs-h1);
  line-height: 0.96;
  letter-spacing: -0.045em;
  font-weight: 200;
}
.hero__title > span { display: block; }
.hero__lead {
  margin: 0;
  max-width: 520px;
  font-size: var(--fs-lead);
  font-weight: 300;
  color: var(--text-strong);
}
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.stack-canvas { display: block; width: 100%; aspect-ratio: 1 / 0.95; }

/* Facts row */
.facts {
  margin: clamp(48px, 6vw, 80px) 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px 0;
}
.fact { position: relative; overflow: hidden; padding: 29px 24px 0 0; }
.fact__line { position: absolute; left: 0; right: 0; top: 4px; height: 1px; background: var(--line-2); }
.fact dt {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-label);
}
.fact dd { margin: 6px 0 0; }
.fact:nth-child(1) { --i: 0; }
.fact:nth-child(2) { --i: 1; }
.fact:nth-child(3) { --i: 2; }
.fact:nth-child(4) { --i: 3; }

/* Hero corner traces (wider than 1024px): fixed pixel sizes, pinned to the corners.
   A packet runs each path; squares light as it passes and the end square lights on arrival. */
.hero-trace { position: absolute; pointer-events: none; }
.hero-trace--tl { left: 0; top: 0; --T: 7s; --D: 0s; }
.hero-trace--tr { right: 0; top: 0; }
.hero-trace--bl { left: 0; bottom: 0; --T: 11s; --D: -6s; }
.hero-trace--br { right: 0; bottom: 0; --T: 9s; --D: -3s; }

.trace-run {
  stroke: var(--accent);
  stroke-dasharray: 4 96;
  animation: trace-run var(--T, 7s) linear infinite;
  animation-delay: var(--D, 0s);
}
@keyframes trace-run { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }

.hit {
  fill: #ffffff;
  fill-opacity: .35;
  animation: node-hit var(--T, 7s) linear infinite;
  animation-delay: calc(var(--D, 0s) + var(--f, 0) * var(--T, 7s));
}
@keyframes node-hit {
  0%, 22% { fill: var(--accent); fill-opacity: 1; }
  50%, 100% { fill: #ffffff; fill-opacity: .35; }
}
/* fraction of the run at which the packet reaches each square */
.hero-trace--tl .hit:nth-of-type(1) { --f: 0.31; }
.hero-trace--tl .hit:nth-of-type(2) { --f: 0.78; }
.hero-trace--tl .hit:nth-of-type(3) { --f: 0.97; }
.hero-trace--bl .hit:nth-of-type(2) { --f: 0.22; }
.hero-trace--bl .hit:nth-of-type(3) { --f: 0.68; }
.hero-trace--bl .hit:nth-of-type(4) { --f: 0.97; }
.hero-trace--br .hit:nth-of-type(1) { --f: 0.19; }
.hero-trace--br .hit:nth-of-type(2) { --f: 0.97; }

/* 1024px and narrower: the divider above the facts becomes a signal line,
   a packet crosses it cell by cell and lights the square at the start of each fact. */
.cell-packet {
  position: absolute;
  top: 3.5px;
  left: -48px;
  width: 48px;
  height: 2px;
  opacity: 0;
  background: linear-gradient(90deg, transparent, var(--accent));
  animation: cell-run 8s linear infinite;
  animation-delay: calc(var(--i, 0) * 2s);
}
@keyframes cell-run {
  0% { left: -48px; opacity: 1; }
  25% { left: 100%; opacity: 1; }
  25.01%, 100% { left: 100%; opacity: 0; }
}
.cell-node {
  position: absolute;
  top: 0;
  left: 0;
  width: 9px;
  height: 9px;
  background-color: #000000;
  border: 1px solid rgba(255, 255, 255, .4);
  animation: cell-hit 8s linear infinite;
  animation-delay: calc(var(--i, 0) * 2s);
}
@keyframes cell-hit {
  0%, 2% { background-color: #000000; border-color: rgba(255, 255, 255, .4); }
  4%, 16% { background-color: var(--accent); border-color: var(--accent); }
  30%, 100% { background-color: #000000; border-color: rgba(255, 255, 255, .4); }
}
@media (min-width: 1025px) { .cell-packet, .cell-node { display: none; } }
@media (max-width: 1024px) { .hero-trace { display: none; } }

/* ---------- Signal rail ---------- */
.signal-main { position: relative; }
.signal-rail {
  position: absolute;
  z-index: 2;
  top: 0;
  bottom: 0;
  left: max(var(--gutter), calc((100% - var(--wrap)) / 2));
  width: 1px;
  pointer-events: none;
  background: repeating-linear-gradient(to bottom, var(--line-3) 0 3px, transparent 3px 8px);
}
.signal-rail__fill {
  position: absolute;
  left: 0;
  top: 0;
  width: 1px;
  height: 0;
  background: linear-gradient(to bottom, transparent, var(--accent));
}
.signal-rail__head {
  position: absolute;
  left: -3px;
  top: 0;
  width: 7px;
  height: 7px;
  margin-top: -3px;
  background: var(--accent);
  box-shadow: 0 0 14px var(--accent);
}

/* ---------- Sections ---------- */
.sec {
  position: relative;
  padding: var(--sec-pad) var(--gutter);
  /* top divider, drawn in from the left */
  background-image: linear-gradient(var(--line-3), var(--line-3));
  background-repeat: no-repeat;
  background-position: 0 0;
  background-size: 100% 1px;
  transition: background-size 1.6s var(--ease);
}
.sec--band { background-color: var(--bg-band); }
.sec > .wrap { position: relative; z-index: 1; }

/* Faint isometric grid in one corner, faded out with a mask */
.iso {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(30deg, var(--grid-line) 0 1px, transparent 1px 44px),
    repeating-linear-gradient(-30deg, var(--grid-line) 0 1px, transparent 1px 44px);
}
.iso--work { -webkit-mask-image: radial-gradient(ellipse 55% 40% at 88% 10%, #000 0%, transparent 72%); mask-image: radial-gradient(ellipse 55% 40% at 88% 10%, #000 0%, transparent 72%); }
.iso--services { -webkit-mask-image: radial-gradient(ellipse 55% 55% at 88% 16%, #000 0%, transparent 72%); mask-image: radial-gradient(ellipse 55% 55% at 88% 16%, #000 0%, transparent 72%); }
.iso--about { -webkit-mask-image: radial-gradient(ellipse 50% 55% at 10% 85%, #000 0%, transparent 72%); mask-image: radial-gradient(ellipse 50% 55% at 10% 85%, #000 0%, transparent 72%); }
.iso--contact { -webkit-mask-image: linear-gradient(to top, #000 0%, transparent 65%); mask-image: linear-gradient(to top, #000 0%, transparent 65%); }

/* Section label: square on the rail, tick, text, dashed line */
.eyebrow {
  position: relative;
  display: flex;
  align-items: center;
  gap: 20px;
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-eyebrow);
}
.eyebrow__node {
  position: absolute;
  z-index: 3;
  top: 50%;
  left: calc(var(--rail) * -1 - 4px);
  width: 9px;
  height: 9px;
  margin-top: -4px;
  background: #000000;
  border: 1px solid var(--line-btn);
  transition: background .4s, border-color .4s;
}
.eyebrow__tick {
  position: absolute;
  top: 50%;
  left: calc(var(--rail) * -1 + 5px);
  width: calc(var(--rail) - 14px);
  height: 1px;
  background-image: linear-gradient(90deg, var(--accent) 0 50%, rgba(255, 255, 255, .3) 50% 100%);
  background-size: 200% 100%;
  background-position: 100% 0;
  transition: background-position .18s ease;
}
.eb {
  background-image: linear-gradient(90deg, var(--accent) 0 50%, var(--text-eyebrow) 50% 100%);
  background-size: 200% 100%;
  background-position: 100% 0;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  transition: background-position .36s ease .14s;
}
.lab-line {
  flex: 1;
  max-width: 360px;
  height: 1px;
  background: repeating-linear-gradient(90deg, var(--line-3) 0 4px, transparent 4px 8px);
  transform-origin: left;
  transition: transform 1.2s var(--ease) .3s;
}
.eyebrow.is-lit .eyebrow__node { background: var(--accent); border-color: var(--accent); }
.eyebrow.is-lit .eyebrow__tick,
.eyebrow.is-lit .eb { background-position: 0 0; }

.h2 {
  margin: 20px 0 48px;
  font-size: var(--fs-h2);
  line-height: 1;
  letter-spacing: -0.045em;
  font-weight: 200;
}
.h2--xl {
  margin-bottom: clamp(40px, 5vw, 64px);
  font-size: var(--fs-h2-xl);
  line-height: 0.96;
  letter-spacing: -0.05em;
}
.h2--xl > span { display: block; }

/* ---------- 01 Work ---------- */
.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr));
  gap: 56px 40px;
}
.card { position: relative; display: flex; flex-direction: column; gap: 14px; }
.card p { margin: 0; }
.shot {
  aspect-ratio: 16 / 10;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: var(--bg-shot);
  border: 1px dashed var(--line-btn);
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: 0.16em;
  color: var(--text-label);
  text-align: center;
  transition: border-color .4s, transform .5s var(--ease), background-color .4s;
}
.shot--img { padding: 0; border-style: solid; overflow: hidden; }
.shot--img picture, .shot--img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.card:hover .shot { border-color: var(--accent); transform: translateY(-6px); background-color: var(--bg-shot-hover); }

.card__meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-label);
}
.card__status { color: var(--text); }
.card__status--live { color: var(--accent); }
.ct {
  margin: 0;
  font-size: var(--fs-card-title);
  line-height: 1.1;
  letter-spacing: -0.035em;
  font-weight: 300;
  transition: letter-spacing .5s var(--ease);
}
.card:hover .ct { letter-spacing: -0.015em; }
.card__link { color: inherit; text-decoration: none; }
.card__link:hover { color: inherit; }
.card__link::after { content: ""; position: absolute; inset: 0; } /* whole card is the link target */
.card__desc { color: var(--text-body); }
.card__stack {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-label);
}

/* ---------- 02 What I do ---------- */
.rows { border-top: 1px solid var(--line-1); }
.row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 24px;
  padding: 30px 0;
  /* accent line (hover) over the divider (drawn in on reveal) */
  background-image: linear-gradient(var(--accent), var(--accent)), linear-gradient(var(--line-1), var(--line-1));
  background-repeat: no-repeat;
  background-position: 0 100%, 0 100%;
  background-size: 0% 1px, 100% 1px;
}
.row:hover { background-size: 100% 1px, 100% 1px; }
.row__icon { flex: 0 0 40px; width: 40px; height: 40px; stroke: rgba(255, 255, 255, 0.6); transition: stroke .3s; }
.row__icon .ic-accent { stroke: var(--accent); }
.row:hover .row__icon { stroke: var(--text); }
.row__title {
  flex: 1 1 300px;
  margin: 0;
  font-size: var(--fs-row-title);
  font-weight: 300;
  letter-spacing: -0.035em;
  line-height: 1.15;
  transition: color .3s;
}
.row:hover .row__title { color: var(--accent); }
.row__desc { flex: 1.25 1 340px; margin: 0; color: var(--text-body); }

/* ---------- 03 About ---------- */
.manifesto {
  margin: 32px 0 clamp(56px, 7vw, 88px);
  max-width: 1100px;
  font-size: var(--fs-manifesto);
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: -0.045em;
}
.manifesto .w { transition: color .4s; }
.manifesto.is-tracking .w { color: var(--text-dim); }
.manifesto.is-tracking .w.is-lit { color: var(--text); }

.about { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 40px clamp(40px, 6vw, 96px); }
.about__figure { flex: 0 1 340px; min-width: 0; margin: 0; }
.about__img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border: 1px solid var(--line-1);
  filter: saturate(0.9);
}
.about__figure figcaption { margin-top: 14px; }
.about__text {
  flex: 999 1 420px;
  min-width: 0;
  max-width: 640px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  color: var(--text-body);
  line-height: 1.65;
}
.about__text p { margin: 0; }
.about__intro { font-size: var(--fs-intro); color: var(--text); }

/* ---------- 04 Contact ---------- */
.contact__glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(ellipse 60% 65% at 50% 108%, var(--accent-glow-16) 0%, transparent 70%);
}
.contact { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 56px clamp(48px, 7vw, 120px); }
.contact__info { flex: 1 1 380px; min-width: 0; }
.contact__lead { margin: 0 0 36px; max-width: 460px; font-size: 18px; color: var(--text-body); }
.mail {
  display: inline-block;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line-btn);
  font-size: var(--fs-mail);
  font-weight: 300;
  letter-spacing: -0.03em;
  text-decoration: none;
  word-break: break-all;
  transition: color .3s, border-color .3s;
}
.mail:hover { border-color: var(--accent); }
.socials {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 32px;
  margin-top: 32px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.socials a { padding: 12px 0; text-decoration: none; }
.availability { margin-top: 28px; }

/* Form */
.form {
  flex: 1.15 1 440px;
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 32px;
}
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field--full, .form__actions { grid-column: 1 / -1; }
.field label {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-label);
}
.fld {
  width: 100%;
  min-height: 44px;
  padding: 8px 0 12px;
  background: transparent;
  color: var(--text);
  border: 0;
  border-bottom: 1px solid var(--line-btn);
  border-radius: 0;
  font: 300 var(--fs-field)/1.4 var(--font-sans);
  transition: border-color .3s;
}
select.fld { background: var(--bg); }
textarea.fld { min-height: 120px; resize: vertical; }
.fld::placeholder { color: var(--text-placeholder); }
.fld:focus { border-bottom-color: var(--text); }
.fld[aria-invalid="true"] { border-bottom-color: var(--error); }
.field__err {
  margin: 0;
  font-size: 14px;
  color: var(--error);
}
.field__err[hidden] { display: none; }

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

.form__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.form__actions .btn[disabled] { opacity: .6; cursor: progress; }
.form__status { margin: 0; font-size: var(--fs-nav); color: var(--text-strong); }
.form__status.is-success { color: var(--accent); }
.form__status.is-error { color: var(--error); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line-1); padding: 0 var(--gutter); }
.footer-bar {
  padding-top: 16px;
  padding-bottom: 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 24px;
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-label);
}
.footer-top { padding: 12px 0; text-decoration: none; color: var(--text-strong); }

/* ==========================================================================
   Scroll animations: only when the head script set .anim (JS on, motion allowed).
   Without it every block is simply visible.
   ========================================================================== */
.rv { transition: opacity 1s var(--ease), transform 1s var(--ease); }
.row.rv { transition: opacity 1s var(--ease), transform 1s var(--ease), background-size 1.2s var(--ease); }
.anim .rv:not(.is-in) { opacity: 0; transform: translateY(24px); }
.anim .row:not(.is-in) { background-size: 0% 1px, 0% 1px; }
.anim .sec:not(.is-drawn) { background-size: 0% 1px; }
.anim .sec:not(.is-drawn) .lab-line { transform: scaleX(0); }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rv, .row.rv, .sec, .lab-line, .row, .shot, .ct, .eyebrow__tick, .eb, .eyebrow__node, .manifesto .w, .burger span, .mnav { transition: none !important; }
  .trace-run, .hit, .cell-packet, .cell-node { animation: none; }
  .trace-run { stroke-dasharray: none; stroke-opacity: 0; }
  .card:hover .shot { transform: none; }
}
