/* Layout idea: the business card brought to life. True black, a drifting blue-violet glow with grain,
   the name as a lime-to-mint gradient inside outlined repeating rows, mono captions. Short page, left-aligned,
   one strong motion idea per section. */
:root {
  --black: #000000;
  --lime: #d2ff7f;
  --mint: #3ddfaa;
  --peri: #8e9ef0;
  --text: #eef0f7;
  --mute: #9aa1b9;
  --line: rgba(142, 158, 240, 0.55);
  --line-soft: rgba(238, 240, 247, 0.12);
  --panel: #07080d;
  --grad: linear-gradient(90deg, var(--lime), var(--mint));

  --f-display: "Oswald", "Arial Narrow", sans-serif;
  --f-mono: "Martian Mono", ui-monospace, Menlo, monospace;
  --f-body: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: clamp(16px, 5vw, 72px);
  --maxw: 1360px;
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  background: var(--black);
  -webkit-text-size-adjust: 100%;
}
html.lenis,
html.lenis body {
  height: auto;
}
.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}
.lenis.lenis-stopped {
  overflow: clip;
}
body {
  margin: 0;
  background: transparent; /* the fixed fog sits between html (black) and the content */
  color: var(--text);
  font: 400 17px/1.55 var(--f-body);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
img,
video {
  max-width: 100%;
  display: block;
}

main {
  overflow-x: clip; /* glows may spill sideways but never make the page scroll */
}

/* page-wide atmosphere: a dim drifting fog + grain, so the black never reads as empty */
.ambient {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  opacity: 0.5;
}
.page-grain {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  opacity: 0.045;
  mix-blend-mode: screen;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
a {
  color: inherit;
}
button {
  font: inherit;
  color: inherit;
}
h1,
h2,
h3,
p,
ul,
ol,
dl,
dd,
figure {
  margin: 0;
  padding: 0;
}
h1,
h2,
h3 {
  text-wrap: balance;
}
:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 3px;
  border-radius: 6px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.skip {
  position: fixed;
  left: 12px;
  top: -60px;
  z-index: 100;
  background: var(--lime);
  color: #000;
  padding: 10px 14px;
  border-radius: 10px;
  text-decoration: none;
}
.skip:focus {
  top: 12px;
}
.mono {
  font-family: var(--f-mono);
  font-stretch: 75%;
}
.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- buttons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 24px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font: 500 15px/1 var(--f-body);
  text-decoration: none;
  cursor: pointer;
  background: none;
  transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}
.btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  flex: none;
}
.btn-primary {
  background: var(--grad);
  background-size: 160% 100%;
  background-position: 0% 0;
  color: #04130d;
  transition: background-position 0.6s var(--ease), box-shadow 0.4s;
}
.btn-primary:hover {
  background-position: 100% 0;
  box-shadow: 0 10px 40px -12px rgba(61, 223, 170, 0.6);
}
.btn-ghost {
  border-color: rgba(238, 240, 247, 0.28);
}
.btn-ghost:hover {
  border-color: var(--lime);
  color: var(--lime);
}
.btn-small {
  min-height: 40px;
  padding: 0 16px;
  font-size: 14px;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- top bar ---------- */
.topbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 24px;
  height: 68px;
  padding: 0 var(--gutter);
  transition: background-color 0.4s, border-color 0.4s, transform 0.5s var(--ease);
  border-bottom: 1px solid transparent;
}
.topbar.is-solid {
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-color: var(--line-soft);
}
.topbar.is-hidden {
  transform: translateY(-100%);
}
.brand {
  font: 600 20px/1 var(--f-display);
  letter-spacing: 0.05em;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.25s;
}
.brand:hover {
  color: var(--lime);
}
/* hidden while the big hero name is on screen, so the name never shows twice */
.brand {
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease), color 0.25s;
}
.topbar.show-brand .brand {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.nav {
  display: flex;
  gap: 2px;
  margin-left: auto;
}
.nav a {
  position: relative;
  padding: 8px 12px;
  font-size: 15px;
  text-decoration: none;
  color: var(--mute);
  transition: color 0.25s;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 4px;
  height: 1.5px;
  background: var(--lime);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease);
}
.nav a:hover {
  color: var(--text);
}
.nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}
.topbar-end {
  display: flex;
  align-items: center;
  gap: 8px;
}
.lang a {
  font: 500 13px/1 var(--f-mono);
  font-stretch: 75%;
  padding: 8px;
  color: var(--mute);
  text-decoration: none;
}
.lang {
  display: flex;
}
.lang a:hover {
  color: var(--text);
}
.lang a[aria-current="page"] {
  color: var(--lime);
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  padding: 110px 0 56px;
  isolation: isolate;
}
.blob {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
}
.hero .blob {
  -webkit-mask-image: linear-gradient(#000 55%, transparent);
  mask-image: linear-gradient(#000 55%, transparent);
}
.contact .blob {
  -webkit-mask-image: linear-gradient(transparent, #000 30%, #000 60%, transparent);
  mask-image: linear-gradient(transparent, #000 30%, #000 60%, transparent);
}
.grain {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.55;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.names {
  font: 700 clamp(64px, 15.5vw, 240px) / 1 var(--f-display);
  text-transform: uppercase;
  user-select: none;
}
.name-row {
  /* clip only sideways: tails (Д, Ц, Щ) and accents must never be cut */
  overflow-x: clip;
  overflow-y: visible;
  white-space: nowrap;
}
.name-track {
  display: inline-flex;
  will-change: transform;
}
.name-track .o {
  color: transparent;
  -webkit-text-stroke: clamp(1px, 0.12vw, 2px) rgba(238, 240, 247, 0.32);
}
.name-track .s {
  display: inline-block;
}
.hero-foot {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.caption {
  min-height: 1.3em;
  margin-top: clamp(20px, 3vw, 36px);
  font-size: clamp(13px, 1.5vw, 19px);
  line-height: 1.3;
  letter-spacing: 0.06em;
  color: var(--lime);
}
.caption .caret {
  display: inline-block;
  width: 0.55em;
  height: 1em;
  margin-left: 2px;
  vertical-align: -0.12em;
  background: var(--lime);
  animation: blink 1s steps(1) infinite;
}
@keyframes blink {
  50% {
    opacity: 0;
  }
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(24px, 6vw, 96px);
  align-items: end;
  margin-top: clamp(24px, 3.5vw, 44px);
}
.hero-copy {
  display: grid;
  gap: 22px;
  max-width: 560px;
}
.status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  padding: 8px 14px 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 14px;
  background: rgba(0, 0, 0, 0.45);
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lime);
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(210, 255, 127, 0.6);
  }
  70%,
  100% {
    box-shadow: 0 0 0 10px rgba(210, 255, 127, 0);
  }
}
.intro {
  font-size: clamp(18px, 1.7vw, 22px);
  line-height: 1.45;
}
/* Cut-out portrait standing in the fog, full colour; only the bottom edge fades. */
.portrait {
  position: absolute;
  right: max(var(--gutter), calc((100vw - var(--maxw)) / 2 + var(--gutter)));
  bottom: -6%;
  z-index: -1;
  height: min(72%, 620px);
  aspect-ratio: 900 / 1001; /* matches photo-cutout.webp */
  pointer-events: none;
  /* the photo is a cut-out (transparent background): only the bottom fades, no visible circle */
  /* shoulders are cut by the original photo frame: fade the sides too */
  -webkit-mask-image: linear-gradient(#000 62%, transparent 96%),
    linear-gradient(to right, transparent, #000 16%, #000 84%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(#000 62%, transparent 96%),
    linear-gradient(to right, transparent, #000 16%, #000 84%, transparent);
  mask-composite: intersect;
}
.portrait img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: bottom;
  filter: saturate(1.05) contrast(1.04);
}
/* ---------- marquee ---------- */
.marquee {
  overflow: hidden;
  padding: clamp(18px, 2.5vw, 30px) 0;
  border-block: 1px solid var(--line-soft);
  white-space: nowrap;
}
.marquee-track {
  display: inline-flex;
  align-items: center;
  will-change: transform;
}
.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: clamp(20px, 3vw, 44px);
  padding-right: clamp(20px, 3vw, 44px);
  font: 600 clamp(36px, 6vw, 84px) / 1 var(--f-display);
  text-transform: uppercase;
  color: transparent;
  -webkit-text-stroke: 1.2px rgba(238, 240, 247, 0.45);
}
.marquee-item::after {
  content: "";
  width: 0.22em;
  height: 0.22em;
  border-radius: 50%;
  background: var(--lime);
}
.marquee-item:nth-child(4n + 1) {
  -webkit-text-stroke: 0;
  color: var(--text);
}

/* ---------- formats ---------- */
.formats {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(64px, 7vw, 110px) var(--gutter) 0;
}
.formats-line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 0.25em;
  font: 700 clamp(32px, 7.6vw, 112px) / 1.06 var(--f-display);
  text-transform: uppercase;
}
.formats-word {
  position: relative;
  display: inline-grid;
  overflow: hidden;
  /* room for Й breve and the tails of У, Д, Щ so the slide mask never cuts them */
  padding: 0.14em 0 0.22em;
  margin: -0.14em 0 -0.22em;
}
.formats-word span {
  grid-area: 1 / 1;
  white-space: nowrap;
}
.formats-word span:not(.is-on) {
  visibility: hidden;
}
.formats-meta {
  display: grid;
  gap: 18px;
  margin-top: clamp(20px, 3vw, 36px);
}
.formats-text {
  font-size: clamp(18px, 1.8vw, 22px);
  min-height: 1.5em;
}
.formats-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.formats-tabs button {
  position: relative;
  overflow: hidden;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--line-soft);
  background: none;
  cursor: pointer;
  font-size: 14px;
  color: var(--mute);
  transition: color 0.3s, border-color 0.3s;
}
.formats-tabs button:hover {
  color: var(--text);
}
.formats-tabs button.is-on {
  color: var(--lime);
  border-color: var(--lime);
}

/* ---------- section heads ---------- */
.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(72px, 8vw, 128px) var(--gutter) 0;
}
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: clamp(28px, 4vw, 48px);
}
.section-head h2 {
  font: 700 clamp(44px, 6vw, 92px) / 1.05 var(--f-display);
  text-transform: uppercase;
  overflow: hidden;
  padding: 0.14em 0 0.22em;
  margin: -0.14em 0 -0.22em;
}
.section-head .count {
  font-size: 14px;
  color: var(--mute);
  white-space: nowrap;
}
.char {
  display: inline-block;
  will-change: transform;
}

/* ---------- featured ---------- */
.feat {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
}
.feat + .feat {
  margin-top: clamp(56px, 6.5vw, 100px);
}
.feat:nth-of-type(even) {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
}
.feat:nth-of-type(even) .feat-stage {
  order: 2;
}
.feat-stage {
  position: relative;
  display: grid;
  gap: 14px;
  isolation: isolate;
}
/* ambient light: a blurred live copy of the current slide spills its colours into the dark */
.feat-glow {
  position: absolute;
  left: -10%;
  right: -10%;
  top: -18%;
  height: 120%;
  width: 120%;
  z-index: -1;
  pointer-events: none;
  filter: blur(60px) saturate(1.5);
  opacity: 0.45;
}
.media-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 20px;
  overflow: hidden;
  background: var(--black);
  border: 1px solid var(--line-soft);
  box-shadow: 0 50px 140px -60px rgba(142, 158, 240, 0.5);
}
.media-frame > img,
.media-frame > video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media-frame .slide {
  opacity: 0;
  transition: opacity 0.9s ease;
  will-change: opacity, transform;
}
.media-frame .slide.is-on {
  opacity: 1;
}
.media-cover {
  transition: opacity 0.6s;
}
.media-frame.has-media .media-cover {
  opacity: 0;
}
.media-fallback {
  position: absolute;
  inset: 0;
  display: none;
  place-items: center;
  font: 700 clamp(48px, 8vw, 120px) / 1 var(--f-display);
  text-transform: uppercase;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(238, 240, 247, 0.5);
}
.media-frame.no-img:not(.has-media) .media-fallback {
  display: grid;
}
.media-frame.no-img .media-cover {
  display: none;
}
.slide-tabs {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 8px;
}
.slide-tab {
  display: grid;
  gap: 8px;
  padding: 10px 0 6px;
  border: 0;
  background: none;
  text-align: left;
  cursor: pointer;
  color: var(--mute);
  font-size: 14px;
  transition: color 0.3s;
}
.slide-tab .bar {
  display: block;
  height: 2px;
  background: var(--line-soft);
  overflow: hidden;
  border-radius: 2px;
}
.slide-tab .bar i {
  display: block;
  height: 100%;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: left;
}
.slide-tab.is-on,
.slide-tab:hover {
  color: var(--text);
}
.feat-info {
  display: grid;
  gap: 18px;
  justify-items: start;
}
.feat-status {
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--lime);
  margin-bottom: -6px;
}
.feat-title {
  font: 700 clamp(44px, 5vw, 80px) / 0.98 var(--f-display);
  text-transform: uppercase;
}
.feat-role {
  color: var(--mute);
  font-size: 15px;
}
.feat-summary {
  font-size: 18px;
  max-width: 42ch;
}
.feat .actions {
  margin-top: 6px;
}

/* ---------- other projects ---------- */
.mini-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px 18px;
}
.card {
  display: grid;
  gap: 12px;
  align-content: start;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  text-align: left;
  cursor: pointer;
}
.thumb {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  background: radial-gradient(90% 120% at 85% 15%, rgba(142, 158, 240, 0.4), transparent 62%), var(--panel);
  isolation: isolate;
}
.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease);
}
.card:hover .thumb img {
  transform: scale(1.06);
}
.thumb.is-portrait::before {
  content: "";
  position: absolute;
  inset: -24px;
  z-index: -1;
  background: var(--bg) center / cover no-repeat;
  filter: blur(22px) brightness(0.45) saturate(1.2);
}
.thumb.is-portrait img {
  object-fit: contain;
}
.thumb-fallback {
  display: none;
  position: absolute;
  inset: 0;
  padding: 16px;
  align-items: end;
  font: 700 clamp(24px, 2.4vw, 34px) / 0.95 var(--f-display);
  text-transform: uppercase;
  color: transparent;
  -webkit-text-stroke: 1.2px rgba(238, 240, 247, 0.7);
}
.thumb.no-img img {
  display: none;
}
.thumb.no-img .thumb-fallback {
  display: flex;
}
.card-title {
  display: grid;
  gap: 2px;
}
.card-title b {
  font: 600 clamp(18px, 1.6vw, 22px) / 1.1 var(--f-display);
  text-transform: uppercase;
  transition: color 0.3s;
}
.card:hover .card-title b {
  color: var(--lime);
}
.card-title span {
  font-size: 12px;
  color: var(--mute);
}
/* ---------- experience ---------- */
.jobs {
  list-style: none;
  border-top: 1px solid var(--line);
}
.job {
  border-bottom: 1px solid var(--line-soft);
}
.job-row {
  display: grid;
  grid-template-columns: 150px minmax(0, 1.2fr) minmax(0, 1.3fr) 32px;
  gap: 16px 32px;
  align-items: center;
  width: 100%;
  padding: clamp(20px, 2.6vw, 30px) 0;
  border: 0;
  background: none;
  text-align: left;
  cursor: pointer;
}
.job-when {
  font-size: 13px;
  color: var(--mute);
}
.job-who {
  display: grid;
  gap: 2px;
}
.job-who b {
  font: 600 clamp(24px, 2.6vw, 34px) / 1.05 var(--f-display);
  text-transform: uppercase;
  transition: color 0.3s;
}
.job-who span {
  font-size: 14px;
  color: var(--mute);
}
.job-row:hover .job-who b {
  color: var(--lime);
}
.job-metric {
  display: grid;
  gap: 4px;
  justify-items: start;
}
.job-metric b {
  flex: none;
  font: 700 clamp(30px, 3vw, 44px) / 1 var(--f-display);
  font-variant-numeric: tabular-nums;
}
.job-metric span {
  font-size: 14px;
  line-height: 1.35;
  color: var(--mute);
  white-space: nowrap;
}
.job-toggle {
  position: relative;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--line-soft);
}
.job-toggle::before,
.job-toggle::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 1.5px;
  background: currentColor;
  transform: translate(-50%, -50%);
  transition: transform 0.4s var(--ease);
}
.job-toggle::after {
  transform: translate(-50%, -50%) rotate(90deg);
}
.job.is-open .job-toggle::after {
  transform: translate(-50%, -50%) rotate(0deg);
}
.job-more {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.5s var(--ease);
}
.job.is-open .job-more {
  grid-template-rows: 1fr;
}
.job-more > div {
  overflow: hidden;
}
.job-more-inner {
  display: grid;
  gap: 14px;
  justify-items: start;
  padding: 0 0 28px calc(150px + 32px);
  max-width: calc(150px + 32px + 70ch);
}
.points {
  list-style: none;
  display: grid;
  gap: 8px;
}
.points li {
  position: relative;
  padding-left: 22px;
  color: var(--mute);
}
.points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.75em;
  width: 10px;
  height: 2px;
  background: var(--peri);
}
.chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chips li {
  padding: 5px 12px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  font-size: 13px;
  color: var(--mute);
}
.link-btn {
  border: 0;
  background: none;
  padding: 0;
  cursor: pointer;
  color: var(--lime);
  font-size: 15px;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ---------- contact ---------- */
.contact {
  position: relative;
  margin-top: clamp(80px, 9vw, 140px);
  padding: clamp(80px, 10vw, 140px) var(--gutter);
  overflow: hidden;
  isolation: isolate;
}
.contact-inner {
  max-width: calc(var(--maxw) - 2 * var(--gutter));
  margin: 0 auto;
  display: grid;
  gap: 26px;
  justify-items: start;
}
.contact-title {
  font: 700 clamp(40px, 7vw, 120px) / 1.05 var(--f-display);
  text-transform: uppercase;
  overflow: hidden;
  padding: 0.14em 0 0.22em;
  margin: -0.14em 0 -0.22em;
}
.contact-lead {
  font-size: 19px;
}
.contact-links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
}
.contact-links a {
  color: var(--mute);
  text-underline-offset: 5px;
  transition: color 0.25s;
}
.contact-links a:hover {
  color: var(--lime);
}
.footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 22px var(--gutter);
  color: var(--mute);
  font: 400 12px/1.3 var(--f-mono);
  font-stretch: 75%;
}
.footer a {
  text-decoration: none;
}

/* ---------- modal ---------- */
.modal {
  width: min(1100px, calc(100% - 24px));
  max-height: calc(100% - 40px);
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--panel);
  color: var(--text);
  overflow: auto;
  overscroll-behavior: contain;
}
.modal::backdrop {
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
}
.modal[open] {
  animation: modal-in 0.5s var(--ease);
}
@keyframes modal-in {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.97);
  }
}
.modal-inner {
  display: grid;
  gap: 24px;
  padding: clamp(18px, 3vw, 32px);
}
.modal-close {
  position: sticky;
  top: 0;
  justify-self: end;
  z-index: 2;
  width: 44px;
  height: 44px;
  margin-bottom: -68px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line-soft);
  background: rgba(0, 0, 0, 0.7);
  cursor: pointer;
}
.modal-close svg {
  width: 20px;
  fill: currentColor;
}
.gallery {
  display: grid;
  gap: 10px;
}
.gallery .thumb img {
  transform: none;
}
.modal-text {
  display: grid;
  gap: 16px;
  justify-items: start;
  align-content: start;
}
.modal-text h2 {
  font: 700 clamp(40px, 5vw, 64px) / 1 var(--f-display);
  text-transform: uppercase;
}
.modal-summary {
  font-size: 19px;
  max-width: 44ch;
}
.modal-meta {
  display: grid;
  gap: 10px;
}
.modal-meta dt {
  font-size: 12px;
  color: var(--mute);
}
.modal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
@media (min-width: 960px) {
  .modal-inner {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr);
    align-items: start;
  }
  .modal-close {
    grid-column: 2;
    grid-row: 1;
  }
  .modal-text {
    grid-column: 1;
    grid-row: 1 / span 2;
    position: sticky;
    top: 0;
  }
  .gallery {
    grid-column: 2;
    grid-row: 2;
  }
}

/* ---------- toast + cursor ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 200;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--lime);
  color: #04130d;
  font-size: 15px;
  transform: translate(-50%, 160%);
  visibility: hidden;
  transition: transform 0.4s var(--ease), visibility 0s linear 0.4s;
}
.toast.is-on {
  transform: translate(-50%, 0);
  visibility: visible;
  transition: transform 0.4s var(--ease);
}
.cursor {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 300;
  width: 0;
  height: 0;
  pointer-events: none;
  display: none;
}
.has-cursor .cursor {
  display: block;
}
.cursor-label {
  position: absolute;
  left: -30px;
  top: -30px;
  width: 60px;
  height: 60px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--lime);
  color: #04130d;
  font: 600 11px/1 var(--f-body);
  transform: scale(0);
  transition: transform 0.25s var(--ease);
}
.cursor.is-on .cursor-label {
  transform: scale(1);
}
.has-cursor .card {
  cursor: none;
}

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .nav {
    display: none;
  }
  .topbar-end {
    margin-left: auto;
  }
  .feat,
  .feat:nth-of-type(even) {
    grid-template-columns: minmax(0, 1fr);
  }
  .feat:nth-of-type(even) .feat-stage {
    order: 0;
  }
  .mini-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .job-row {
    grid-template-columns: minmax(0, 1fr) 32px;
  }
  .job-when {
    grid-column: 1;
  }
  .job-who {
    grid-column: 1;
  }
  .job-metric {
    grid-column: 1;
  }
  .job-toggle {
    grid-column: 2;
    grid-row: 1 / span 3;
  }
  .job-more-inner {
    padding-left: 0;
  }
}
@media (max-width: 620px) {
  body {
    font-size: 16px;
  }
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .portrait {
    right: -12%;
    bottom: auto;
    top: 64px;
    height: 58%;
    opacity: 0.75;
  }
  .topbar .btn span {
    display: none;
  }
  .topbar .btn {
    padding: 0 13px;
  }
  .mini-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 12px;
  }
  .slide-tab {
    font-size: 12px;
  }
  .job-metric span {
    white-space: normal;
  }
  .actions .btn {
    flex: 1 1 auto;
    justify-content: center;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
