/* palette: bg=#0D1117 fg=#E6EDF3 accent=#4AE896 */
/* fonts: display="JetBrains Mono" body="IBM Plex Mono" mono="JetBrains Mono" */

:root {
  --bg: #0D1117;          /* dominant terminal background */
  --bg-alt: #010409;      /* darker alternating band */
  --panel: #12181F;       /* card / terminal window surface */
  --panel-2: #171E27;     /* raised surface */
  --fg: #E6EDF3;          /* primary foreground / phosphor light */
  --fg-soft: #C9D1D9;     /* softened foreground */
  --muted: #7D8590;       /* secondary text */
  --accent: #4AE896;      /* phosphor green */
  --accent-deep: #2FD37E; /* darker green for hover */
  --amber: #F5A623;       /* secondary terminal amber */
  --paper: #E9EDE7;       /* inverted "printed page" surface */
  --border: rgba(74, 232, 150, 0.16);
  --border-soft: rgba(139, 148, 158, 0.16);
  --line: rgba(230, 237, 243, 0.08);
  --glow: 0 0 18px rgba(74, 232, 150, 0.32);

  --serif: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --container: 1240px;
  --pad: clamp(80px, 12vw, 160px);
}

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

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

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.75;
  color: var(--fg-soft);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  font-feature-settings: "liga" 0;
}

/* faint terminal grid + scanlines over the whole page */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(74, 232, 150, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(74, 232, 150, 0.028) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(circle at 50% 0%, rgba(0,0,0,0.9), transparent 78%);
  -webkit-mask-image: radial-gradient(circle at 50% 0%, rgba(0,0,0,0.9), transparent 78%);
}

img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
::selection { background: var(--accent); color: var(--bg-alt); }

/* ---------- layout primitives ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}
@media (min-width: 768px) { .container { padding: 0 32px; } }

.section { padding: var(--pad) 0; position: relative; }
.section--alt { background: var(--bg-alt); }
.section--tight { padding: clamp(56px, 8vw, 96px) 0; }

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
}
.eyebrow::before { content: "//"; opacity: 0.6; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  color: var(--fg);
  font-weight: 500;
  margin: 0;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.h2 {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.02;
}
.h3 { font-size: clamp(1.35rem, 2.4vw, 1.9rem); font-weight: 500; }

.lead {
  font-size: clamp(1.05rem, 1.6vw, 1.24rem);
  line-height: 1.72;
  color: var(--fg-soft);
  max-width: 62ch;
}
p { margin: 0 0 1.2em; }
em { font-style: normal; color: var(--accent); text-shadow: var(--glow); }
strong { color: var(--fg); font-weight: 600; }

.section-head { max-width: 780px; margin-bottom: clamp(48px, 6vw, 80px); }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head--center .eyebrow,
.section-head--center .lead { margin-left: auto; margin-right: auto; }

/* ---------- buttons + links ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: 0.04em;
  padding: 15px 26px;
  border-radius: 3px;
  border: 1px solid var(--accent);
  transition: transform 0.4s var(--ease), background 0.3s var(--ease),
    box-shadow 0.3s var(--ease), color 0.3s var(--ease);
  will-change: transform;
}
.btn--primary {
  background: var(--accent);
  color: var(--bg-alt);
  font-weight: 600;
}
.btn--primary:hover {
  background: var(--accent-deep);
  transform: translateY(-2px);
  box-shadow: 0 0 26px rgba(74, 232, 150, 0.4);
}
.btn--ghost { background: transparent; color: var(--accent); }
.btn--ghost:hover {
  background: rgba(74, 232, 150, 0.08);
  transform: translateY(-2px);
  box-shadow: var(--glow);
}
.btn--on-light {
  border-color: var(--bg-alt);
  background: var(--bg-alt);
  color: var(--paper);
}
.btn--on-light:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(0,0,0,0.25); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: 0.03em;
  color: var(--accent);
  transition: gap 0.3s var(--ease), color 0.3s var(--ease);
}
.link-arrow::after { content: "→"; transition: transform 0.3s var(--ease); }
.link-arrow:hover { color: var(--fg); }
.link-arrow:hover::after { transform: translateX(5px); }

/* ---------- header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease),
    border-color 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.header[data-scrolled="true"] {
  background: rgba(13, 17, 23, 0.82);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.45);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand {
  font-family: var(--mono);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--fg);
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
}
.brand__prompt { color: var(--accent); font-weight: 700; }
.brand__cursor {
  color: var(--accent);
  text-shadow: var(--glow);
  animation: blink 1.15s steps(1) infinite;
}
@keyframes blink { 0%, 50% { opacity: 1; } 51%, 100% { opacity: 0; } }

.nav { display: none; }
@media (min-width: 900px) {
  .nav { display: flex; align-items: center; gap: 34px; }
}
.nav a {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.05em;
  color: var(--muted);
  position: relative;
  padding: 6px 0;
  transition: color 0.3s var(--ease);
}
.nav a::before { content: ""; opacity: 0; margin-right: 6px; color: var(--accent); transition: opacity 0.25s; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--fg); }
.nav a:hover::before,
.nav a[aria-current="page"]::before { content: ">"; opacity: 1; }

.header__cta { display: none; }
@media (min-width: 900px) { .header__cta { display: inline-flex; } }

.menu-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: 3px;
}
@media (min-width: 900px) { .menu-toggle { display: none; } }
.menu-toggle span {
  display: block;
  height: 1.5px;
  width: 100%;
  background: var(--accent);
  transition: transform 0.35s var(--ease), opacity 0.25s var(--ease);
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* mobile menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--bg-alt);
  padding: 96px 28px 40px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}
.mobile-menu[data-open="true"] { opacity: 1; pointer-events: all; transform: none; }
.mobile-menu a {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 8vw, 2.6rem);
  color: var(--fg);
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: baseline;
  gap: 14px;
}
.mobile-menu a .idx { font-family: var(--mono); font-size: 12px; color: var(--accent); }
.mobile-menu .btn { margin-top: 24px; align-self: flex-start; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  margin-top: -72px;
  padding-top: 72px;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.08) brightness(0.62);
  animation: heroZoom 9s var(--ease) forwards;
}
@keyframes heroZoom { from { transform: scale(1.09); } to { transform: scale(1); } }
.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(13,17,23,0.72) 0%, rgba(13,17,23,0.45) 42%, rgba(13,17,23,0.96) 100%),
    radial-gradient(120% 80% at 15% 100%, rgba(74,232,150,0.14), transparent 60%);
}
.hero__scan {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: repeating-linear-gradient(
    180deg, rgba(0,0,0,0) 0px, rgba(0,0,0,0) 2px, rgba(0,0,0,0.16) 3px, rgba(0,0,0,0) 4px);
  mix-blend-mode: overlay;
  opacity: 0.5;
}
.hero__ghost {
  position: absolute;
  left: -2vw;
  bottom: 8vh;
  z-index: 1;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 26vw;
  line-height: 0.8;
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(230,237,243,0.08);
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
}
.hero__inner {
  position: relative;
  z-index: 2;
  padding-bottom: clamp(48px, 8vh, 110px);
  width: 100%;
}
.hero__eyebrow {
  font-family: var(--mono);
  font-size: clamp(11px, 1.4vw, 13px);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 26px;
  padding: 7px 14px;
  border: 1px solid var(--border);
  border-radius: 3px;
  background: rgba(13,17,23,0.5);
}
.hero__eyebrow .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent); box-shadow: var(--glow);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }

.hero h1 {
  font-size: clamp(3.5rem, 10vw, 9rem);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 0.98;
  color: var(--fg);
  max-width: 15ch;
  margin-bottom: 30px;
}
.hero__sub {
  font-size: clamp(1.02rem, 1.6vw, 1.24rem);
  color: var(--fg-soft);
  max-width: 58ch;
  margin-bottom: 36px;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.hero__meta {
  margin-top: clamp(40px, 6vh, 72px);
  display: flex;
  flex-wrap: wrap;
  gap: clamp(24px, 5vw, 64px);
  border-top: 1px solid var(--line);
  padding-top: 26px;
}
.hero__meta div { display: flex; flex-direction: column; gap: 4px; }
.hero__meta .n { font-family: var(--serif); font-size: clamp(1.5rem, 3vw, 2.3rem); color: var(--accent); font-weight: 500; }
.hero__meta .l { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }

/* ---------- page hero (interior pages) ---------- */
.page-hero {
  padding: clamp(120px, 18vh, 200px) 0 clamp(60px, 9vw, 110px);
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: "";
  position: absolute;
  right: -10%; top: -30%;
  width: 60%; height: 160%;
  background: radial-gradient(circle, rgba(74,232,150,0.10), transparent 62%);
  pointer-events: none;
}
.page-hero h1 {
  font-size: clamp(2.8rem, 8vw, 6.2rem);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 0.98;
  max-width: 16ch;
  margin-bottom: 26px;
}
.crumbs {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 26px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.crumbs a { color: var(--accent); }
.crumbs span { opacity: 0.5; }

/* ---------- about / split ---------- */
.split {
  display: grid;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}
@media (min-width: 900px) { .split { grid-template-columns: 1.05fr 0.95fr; } }
.split--wide { }
@media (min-width: 900px) { .split--wide { grid-template-columns: 0.42fr 0.58fr; } }

.prose p { color: var(--fg-soft); }
.prose p + p { margin-top: 1.1em; }

.statgrid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border-soft);
  border: 1px solid var(--border-soft);
}
.statgrid > div { background: var(--bg); padding: 28px 24px; }
.section--alt .statgrid > div { background: var(--bg-alt); }
.statgrid .n { font-family: var(--serif); font-size: clamp(1.9rem, 4vw, 2.8rem); color: var(--accent); font-weight: 500; line-height: 1; }
.statgrid .l { font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; color: var(--muted); margin-top: 12px; display: block; line-height: 1.5; }

/* ---------- capabilities / cards ---------- */
.cards {
  display: grid;
  gap: 1px;
  background: var(--border-soft);
  border: 1px solid var(--border-soft);
}
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .cards--3 { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: var(--bg);
  padding: clamp(28px, 3vw, 40px);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: background 0.35s var(--ease);
  position: relative;
}
.section--alt .card { background: var(--bg-alt); }
.card:hover { background: var(--panel); }
.card__idx {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--accent);
}
.card h3 { font-size: 1.24rem; font-weight: 500; letter-spacing: -0.01em; }
.card p { color: var(--muted); font-size: 15px; line-height: 1.7; margin: 0; }
.card .card__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 8px; }
.tag {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--accent);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 11px;
}

/* ---------- terminal window ---------- */
.terminal {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  overflow: hidden;
  box-shadow: 0 30px 70px -30px rgba(0,0,0,0.8), inset 0 0 0 1px rgba(74,232,150,0.04);
}
.terminal__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(1,4,9,0.5);
}
.terminal__dot { width: 11px; height: 11px; border-radius: 50%; background: #30363d; }
.terminal__dot:nth-child(1) { background: #ff5f56; opacity: 0.7; }
.terminal__dot:nth-child(2) { background: #ffbd2e; opacity: 0.7; }
.terminal__dot:nth-child(3) { background: #27c93f; opacity: 0.7; }
.terminal__title {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  margin-left: 12px;
  letter-spacing: 0.04em;
}
.terminal__body {
  font-family: var(--mono);
  font-size: clamp(12.5px, 1.4vw, 14.5px);
  line-height: 1.95;
  padding: 24px clamp(18px, 3vw, 30px) 28px;
  color: var(--fg-soft);
  overflow-x: auto;
}
.terminal__body .c-cmd { color: var(--fg); }
.terminal__body .c-prompt { color: var(--accent); }
.terminal__body .c-ok { color: var(--accent); }
.terminal__body .c-key { color: var(--muted); }
.terminal__body .c-val { color: var(--fg); }
.terminal__body .c-amber { color: var(--amber); }
.terminal__body .cursor {
  display: inline-block;
  width: 9px;
  height: 1.05em;
  background: var(--accent);
  vertical-align: text-bottom;
  animation: blink 1.15s steps(1) infinite;
  box-shadow: var(--glow);
}
.terminal__body pre { margin: 0; font: inherit; white-space: pre; }

/* ---------- projects ---------- */
.projects { display: grid; gap: clamp(20px, 3vw, 32px); }
@media (min-width: 800px) { .projects { grid-template-columns: repeat(3, 1fr); } }
.project { display: flex; flex-direction: column; }
.project__media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border: 1px solid var(--border-soft);
  background: var(--panel);
}
.project__media img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(1) brightness(0.72) contrast(1.05);
  transition: transform 0.9s var(--ease), filter 0.6s var(--ease);
}
.project__media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(13,17,23,0.85) 100%),
    linear-gradient(0deg, rgba(74,232,150,0.10), transparent 40%);
  opacity: 0.85;
  transition: opacity 0.5s var(--ease);
}
.project:hover .project__media img { transform: scale(1.05); filter: grayscale(0.4) brightness(0.85); }
.project__tag {
  position: absolute; z-index: 2; top: 14px; left: 14px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--accent);
  border: 1px solid var(--border); border-radius: 3px;
  padding: 5px 10px; background: rgba(1,4,9,0.6);
}
.project h3 { font-size: 1.18rem; font-weight: 500; margin-top: 22px; }
.project p { color: var(--muted); font-size: 14.5px; line-height: 1.7; margin: 10px 0 16px; }

/* ---------- inverted "printed page" manifesto ---------- */
.section--invert {
  background: var(--paper);
  color: var(--bg-alt);
}
.section--invert .manifesto__mark {
  font-family: var(--serif);
  font-size: clamp(5rem, 14vw, 12rem);
  line-height: 0.7;
  color: var(--accent-deep);
  display: block;
  margin-bottom: -0.1em;
}
.manifesto {
  max-width: 940px;
  margin: 0 auto;
  text-align: center;
}
.manifesto q {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.16;
  letter-spacing: -0.02em;
  color: var(--bg-alt);
  quotes: none;
}
.manifesto q em { color: var(--accent-deep); text-shadow: none; }
.manifesto__by {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(13,17,23,0.55);
  margin-top: 34px;
  display: block;
}
.section--invert .eyebrow { color: var(--accent-deep); }

/* ---------- testimonials ---------- */
.quotes { display: grid; gap: clamp(20px, 3vw, 28px); }
@media (min-width: 820px) { .quotes { grid-template-columns: repeat(2, 1fr); } }
.quote-card {
  border: 1px solid var(--border-soft);
  background: var(--panel);
  padding: clamp(28px, 3vw, 40px);
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.quote-card p {
  font-family: var(--serif);
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
  line-height: 1.55;
  color: var(--fg);
  font-weight: 400;
  margin: 0;
}
.quote-card__meta { display: flex; align-items: center; gap: 14px; margin-top: auto; }
.avatar {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 15px;
  color: var(--bg-alt);
  border-radius: 4px;
  flex-shrink: 0;
}
.quote-card__who { display: flex; flex-direction: column; }
.quote-card__who b { font-family: var(--mono); font-size: 14px; color: var(--fg); font-weight: 600; }
.quote-card__who span { font-family: var(--mono); font-size: 12px; color: var(--muted); }

/* ---------- process / numbered list (book/publication) ---------- */
.steps { border-top: 1px solid var(--line); }
.step {
  display: grid;
  gap: 8px 32px;
  padding: clamp(28px, 4vw, 44px) 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}
@media (min-width: 800px) { .step { grid-template-columns: 90px 1fr 1.2fr; } }
.step__n { font-family: var(--mono); font-size: 13px; color: var(--accent); letter-spacing: 0.08em; }
.step h3 { font-size: clamp(1.3rem, 2.6vw, 1.9rem); font-weight: 500; }
.step p { color: var(--muted); font-size: 15.5px; margin: 0; }

/* ---------- team / principles (text-only + monogram) ---------- */
.people { display: grid; gap: 1px; background: var(--border-soft); border: 1px solid var(--border-soft); }
@media (min-width: 720px) { .people { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .people--3 { grid-template-columns: repeat(3, 1fr); } }
.person { background: var(--bg); padding: clamp(26px, 3vw, 36px); display: flex; flex-direction: column; gap: 16px; }
.section--alt .person { background: var(--bg-alt); }
.person__top { display: flex; align-items: center; gap: 16px; }
.person__name { font-family: var(--mono); font-size: 15px; color: var(--fg); font-weight: 600; }
.person__role { font-family: var(--mono); font-size: 12px; color: var(--accent); letter-spacing: 0.04em; }
.person p { color: var(--muted); font-size: 14.5px; line-height: 1.7; margin: 0; }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); max-width: 900px; }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  text-align: left;
  padding: 26px 0;
  font-family: var(--serif);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  font-weight: 500;
  color: var(--fg);
}
.faq__q .plus { color: var(--accent); font-family: var(--mono); flex-shrink: 0; transition: transform 0.35s var(--ease); }
.faq__item[data-open="true"] .plus { transform: rotate(45deg); }
.faq__a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s var(--ease);
}
.faq__a-inner { padding: 0 0 28px; color: var(--muted); font-size: 16px; line-height: 1.75; max-width: 72ch; }
.faq__a-inner::before { content: "> "; color: var(--accent); font-family: var(--mono); }

/* ---------- CTA band ---------- */
.cta-band { background: var(--accent); color: var(--bg-alt); position: relative; overflow: hidden; }
.cta-band::after {
  content: "";
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(1,4,9,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(1,4,9,0.05) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}
.cta-band .container { text-align: center; position: relative; z-index: 1; }
.cta-band h2 {
  font-size: clamp(2.2rem, 6vw, 4.4rem);
  color: var(--bg-alt);
  font-weight: 400;
  letter-spacing: -0.03em;
  max-width: 18ch;
  margin: 0 auto 22px;
}
.cta-band p { color: rgba(1,4,9,0.72); max-width: 52ch; margin: 0 auto 34px; font-size: 1.06rem; }

/* ---------- contact form ---------- */
.form-grid { display: grid; gap: clamp(36px, 5vw, 72px); }
@media (min-width: 900px) { .form-grid { grid-template-columns: 1.1fr 0.9fr; align-items: start; } }
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.field label {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.field label .req { color: var(--accent); }
.field input, .field textarea, .field select {
  font-family: var(--mono);
  font-size: 15px;
  color: var(--fg);
  background: var(--panel);
  border: 1px solid var(--border-soft);
  border-radius: 3px;
  padding: 14px 16px;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.field input::placeholder, .field textarea::placeholder { color: rgba(125,133,144,0.7); }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(74,232,150,0.14);
}
.field textarea { resize: vertical; min-height: 140px; }
.row-2 { display: grid; gap: 20px; }
@media (min-width: 600px) { .row-2 { grid-template-columns: 1fr 1fr; } }
.consent { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 24px; }
.consent input { margin-top: 4px; accent-color: var(--accent); width: 16px; height: 16px; }
.consent label { font-family: var(--sans); font-size: 13px; color: var(--muted); text-transform: none; letter-spacing: 0; line-height: 1.6; }
.consent a { color: var(--accent); text-decoration: underline; }
.form-note { font-family: var(--mono); font-size: 12px; color: var(--muted); margin-top: 16px; }

.contact-panel {
  border: 1px solid var(--border);
  background: var(--panel);
  border-radius: 8px;
  padding: clamp(28px, 3vw, 40px);
}
.contact-panel h3 { font-size: 1.05rem; font-family: var(--mono); font-weight: 600; color: var(--accent); letter-spacing: 0.04em; margin-bottom: 22px; }
.contact-row { padding: 18px 0; border-top: 1px solid var(--line); }
.contact-row:first-of-type { border-top: 0; padding-top: 0; }
.contact-row .k { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); display: block; margin-bottom: 6px; }
.contact-row .v { font-family: var(--mono); font-size: 15px; color: var(--fg); line-height: 1.6; }
.contact-row a.v:hover { color: var(--accent); }

/* ---------- footer ---------- */
.footer { background: var(--bg-alt); border-top: 1px solid var(--border); padding: clamp(64px, 8vw, 100px) 0 40px; }
.footer__top {
  display: grid;
  gap: 44px;
  grid-template-columns: 1fr;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--line);
}
@media (min-width: 720px) { .footer__top { grid-template-columns: 1.6fr 1fr 1fr 1.2fr; } }
.footer__brand .brand { font-size: 20px; margin-bottom: 18px; }
.footer__brand p { color: var(--muted); font-size: 14.5px; max-width: 34ch; }
.footer__col h4 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
  font-weight: 600;
}
.footer__col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.footer__col a, .footer__col li { font-family: var(--mono); font-size: 14px; color: var(--muted); transition: color 0.25s var(--ease); }
.footer__col a:hover { color: var(--fg); }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
}
.footer__bottom p { font-family: var(--mono); font-size: 12px; color: var(--muted); margin: 0; letter-spacing: 0.03em; }
.footer__bottom .legal { display: flex; gap: 20px; flex-wrap: wrap; }

/* ---------- cookie popup ---------- */
.cookie-popup {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; align-items: flex-end; justify-content: flex-start;
  padding: 24px;
  background: rgba(1,4,9,0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0; pointer-events: none; transition: opacity 0.3s;
}
.cookie-popup[data-open="true"] { opacity: 1; pointer-events: all; }
.cookie-popup__card {
  background: var(--panel);
  border: 1px solid var(--border);
  padding: 30px 32px;
  max-width: 460px;
  border-radius: 6px;
  box-shadow: 0 30px 70px -20px rgba(0,0,0,0.7);
}
.cookie-popup__label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.cookie-popup__card h3 { font-size: 1.2rem; font-family: var(--serif); font-weight: 500; margin-bottom: 12px; color: var(--fg); }
.cookie-popup__card p { font-family: var(--sans); font-size: 13.5px; line-height: 1.65; color: var(--muted); margin: 0; }
.cookie-popup__actions { display: flex; gap: 12px; margin-top: 22px; }
.cookie-popup__actions button {
  padding: 11px 22px;
  border: 1px solid var(--border);
  border-radius: 3px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--fg-soft);
  transition: background 0.25s var(--ease), color 0.25s var(--ease), transform 0.25s var(--ease);
}
.cookie-popup__actions button:hover { transform: translateY(-1px); }
.cookie-popup__actions button:last-child { background: var(--accent); color: var(--bg-alt); border-color: var(--accent); font-weight: 600; }
.cookie-popup__actions button:last-child:hover { background: var(--accent-deep); }

/* ---------- legal pages ---------- */
.legal { max-width: 820px; }
.legal h2 { font-size: clamp(1.4rem, 3vw, 2rem); margin: 48px 0 18px; font-weight: 500; }
.legal h3 { font-size: 1.15rem; margin: 30px 0 12px; color: var(--accent); font-family: var(--mono); font-weight: 600; }
.legal p, .legal li { color: var(--fg-soft); font-size: 16px; line-height: 1.78; }
.legal ul { padding-left: 22px; margin: 0 0 1.2em; }
.legal li { margin-bottom: 8px; }
.legal a { color: var(--accent); text-decoration: underline; }
.legal .meta { font-family: var(--mono); font-size: 13px; color: var(--muted); padding: 14px 0 0; border-top: 1px solid var(--line); }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.65s var(--ease), transform 0.65s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[style*="--i"] { transition-delay: calc(var(--i) * 80ms); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .hero__bg img { animation: none; transform: none; }
}

/* thanks page */
.thanks { min-height: 72vh; display: flex; align-items: center; text-align: center; }
.thanks .container { max-width: 720px; }
.thanks h1 { font-size: clamp(2.4rem, 6vw, 4rem); font-weight: 400; margin-bottom: 22px; }
.thanks .ok-line { font-family: var(--mono); color: var(--accent); font-size: 14px; letter-spacing: 0.06em; margin-bottom: 28px; }
