/* Frahtora · site styles v2 (dark) · one file, tokens first */

/* 1. Tokens */
:root {
  --bg: #070D14;
  --bg-raised: #0B1521;
  --bg-card: #0E1926;
  --line: rgba(255, 255, 255, 0.10);
  --line-strong: rgba(255, 255, 255, 0.20);
  --text: #EEF2F6;
  --text-2: #C3CDD7;
  --muted: #8C9BAB;
  --faint: #5F6F80;
  --amber: #FEC32F;
  --amber-hover: #F5B814;
  --amber-ink: #0B1521;
  --navy: #003A6C;
  --error: #FFB4B4;

  --font: "IBM Plex Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --container: 1120px;
  --gutter: 20px;
  --section: 112px;
  --radius: 4px;
  --radius-card: 6px;
  --header-h: 64px;
}

/* 2. Fonts (self-hosted, see /fonts/README.md) */
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/IBMPlexSans-Regular.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/IBMPlexSans-Medium.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/IBMPlexSans-SemiBold.woff2") format("woff2");
}

/* 3. Base */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px);
  -webkit-text-size-adjust: 100%;
  color-scheme: dark;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  color: var(--text-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; }
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--amber); color: var(--amber-ink); }

:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -100px;
  padding: 10px 12px; line-height: 24px;
  background: var(--amber); color: var(--amber-ink);
  border-radius: var(--radius); z-index: 100;
  text-decoration: none; font-weight: 500;
}
.skip-link:focus { top: 12px; }

/* 4. Layout */
.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: var(--section); }
.bg-raised { background: var(--bg-raised); }
.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 32px;
  row-gap: 48px;
}
.col-4 { grid-column: span 4; }
.col-5 { grid-column: span 5; }
.col-6 { grid-column: span 6; }
.col-7 { grid-column: span 7; }
.col-8 { grid-column: span 8; }
.col-12 { grid-column: span 12; }
.col-start-8 { grid-column: 8 / span 5; }
.narrow { max-width: 760px; }

/* 5. Typography */
h1 {
  font-size: clamp(40px, 5.6vw, 64px);
  line-height: 1.05;
  font-weight: 400;
  letter-spacing: -0.025em;
  color: var(--text);
  max-width: 14ch;
}
h1 .h1-muted { display: block; color: var(--muted); }
h2 {
  font-size: clamp(30px, 3.4vw, 40px);
  line-height: 1.15;
  font-weight: 400;
  letter-spacing: -0.015em;
  color: var(--text);
  margin-bottom: 28px;
  max-width: 20ch;
}
h3 { font-size: 18px; line-height: 1.4; font-weight: 500; color: var(--text); }
.kicker {
  display: flex; align-items: center; gap: 10px;
  font-size: 12px; line-height: 1.4; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 20px;
}
.kicker::before {
  content: ""; width: 6px; height: 6px; background: var(--amber); flex: 0 0 auto;
}
.lead { font-size: 18px; line-height: 1.6; color: var(--text-2); }
.lead-xl { font-size: clamp(20px, 2vw, 24px); line-height: 1.45; color: var(--text); font-weight: 400; letter-spacing: -0.005em; }
.small { font-size: 15px; line-height: 1.5; }
.muted { color: var(--muted); }
.source { font-size: 13px; line-height: 1.4; color: var(--faint); }
.footnote { font-size: 14px; line-height: 1.5; color: var(--muted); margin-top: 32px; max-width: 46ch; }
.prose > * + * { margin-top: 16px; }
.prose h2 { margin-top: 44px; font-size: 26px; max-width: none; }
.prose ul { list-style: disc; padding-left: 22px; }
.prose a { color: var(--text); text-underline-offset: 3px; }

/* 6. Buttons and links */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 22px;
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 15px; line-height: 20px; font-weight: 500;
  text-decoration: none; text-align: center;
  cursor: pointer;
  background: none;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn-amber { background: var(--amber); color: var(--amber-ink); border-color: var(--amber); }
.btn-amber:hover { background: var(--amber-hover); border-color: var(--amber-hover); }
.btn-outline { color: var(--text); border-color: var(--line-strong); }
.btn-outline:hover { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.35); }
.btn-outline-white { color: var(--text); border-color: var(--line-strong); }
.btn-outline-white:hover { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.35); }
.btn-outline-navy { color: var(--text); border-color: var(--line-strong); }
.btn-outline-navy:hover { background: rgba(255, 255, 255, 0.06); }
.link { color: var(--text); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--line-strong); display: inline-block; padding-block: 10px; }
.link:hover { text-decoration-color: var(--text); }
.text-link {
  color: var(--text);
  text-decoration: underline; text-underline-offset: 5px; text-decoration-color: var(--line-strong);
  font-weight: 500; font-size: 15px;
  padding: 12px 4px; display: inline-block;
}
.text-link:hover { text-decoration-color: var(--text); }
.actions {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 12px 16px;
  margin-top: 36px;
}

/* 7. Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(7, 13, 20, 0.72);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  min-height: var(--header-h);
  gap: 24px;
}
.wordmark {
  display: inline-flex; align-items: center;
  padding-block: 9px;
  color: var(--text);
  text-decoration: none;
}
.wordmark svg { display: block; height: 24px; width: auto; overflow: visible; }
.wordmark-text { font-weight: 600; letter-spacing: 0; }
.site-footer .wordmark { color: var(--muted); }

.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav ul { list-style: none; display: flex; gap: 24px; }
.site-nav a {
  font-size: 14px; font-weight: 500; color: var(--muted);
  text-decoration: none; padding: 12px 0; display: inline-block;
  transition: color 0.15s ease;
}
.site-nav a:hover { color: var(--text); }
.site-nav .btn { padding: 11px 16px; min-height: 42px; font-size: 14px; }
.site-nav a.btn-amber { color: var(--amber-ink); }
.site-nav a.btn-amber:hover { color: var(--amber-ink); }
.nav-toggle {
  display: none;
  min-height: 44px; min-width: 44px;
  padding: 8px 12px;
  border: 1px solid var(--line-strong); border-radius: var(--radius);
  background: transparent; color: var(--text);
  font-size: 14px; font-weight: 500; cursor: pointer;
}

/* 8. Hero (full-bleed video, headline bottom-left) */
.hero {
  position: relative;
  min-height: clamp(560px, 88vh, 920px);
  display: flex; align-items: flex-end;
  overflow: hidden;
  margin-top: calc(-1 * var(--header-h));
  background: var(--bg);
}
.hero-media { position: absolute; inset: 0; }
.hero-media video, .hero-media img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 60%;
}
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(7, 13, 20, 0.40) 0%, rgba(7, 13, 20, 0.14) 36%, rgba(7, 13, 20, 0.58) 62%, rgba(7, 13, 20, 0.90) 100%);
}
.hero .container { position: relative; padding-block: calc(var(--header-h) + 96px) 64px; }
.hero .kicker { color: var(--text-2); }
.hero h1 { max-width: 24ch; }

/* 9. Intro band under the hero */
.intro { padding-block: 72px; border-bottom: 1px solid var(--line); }
.intro .lead-xl { max-width: 40ch; }

/* 10. Steps (how it works) */
.steps {
  list-style: none;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.step {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 28px 24px 32px;
}
.step-num {
  display: block;
  font-size: 13px; font-weight: 500; color: var(--faint);
  margin-bottom: 40px;
  letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums;
}
.step h3 { margin-bottom: 10px; }
.step p { font-size: 15px; line-height: 1.55; color: var(--muted); }

.shots {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
  margin-top: 72px;
}
.shot img {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-card);
  width: 100%;
  background: #fff;
}
.shot figcaption { margin-top: 14px; font-size: 14px; line-height: 1.5; color: var(--muted); }
.shots-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; margin-top: 56px; }

/* 11. Lists */
.points { list-style: none; }
.points li {
  position: relative; padding-left: 26px;
  font-size: 17px; line-height: 1.55; color: var(--text-2);
}
.points li + li { margin-top: 16px; }
.points li::before {
  content: ""; position: absolute; left: 0; top: 13px;
  width: 12px; height: 1px; background: var(--muted);
}

/* 12. Stats */
.stats {
  list-style: none;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  margin-bottom: 56px;
}
.stat { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 32px 24px 36px; }
.stat-value {
  display: block;
  font-size: clamp(44px, 5vw, 64px); line-height: 1; font-weight: 400;
  color: var(--text); letter-spacing: -0.03em;
  margin-bottom: 18px;
  font-variant-numeric: tabular-nums;
}
.stat-label { display: block; font-size: 16px; line-height: 1.45; color: var(--text-2); }
.stat-source { display: block; margin-top: 10px; }

/* 13. Team */
.team {
  list-style: none;
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 40px 24px;
}
.team li { border-top: 1px solid var(--line-strong); padding-top: 18px; }
.team-photo { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; margin-bottom: 18px; border: 1px solid var(--line); border-radius: var(--radius-card); filter: saturate(0.85); }
.team-name { display: block; font-weight: 500; color: var(--text); font-size: 17px; line-height: 1.4; }
.team-role { display: block; font-size: 14px; color: var(--muted); margin-top: 2px; }
.team-line { display: block; font-size: 14px; line-height: 1.55; margin-top: 12px; color: var(--text-2); }

/* 14. Forms */
.form-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 32px;
}
.form-card h3 { margin-bottom: 22px; }
.field { display: block; }
.field + .field { margin-top: 16px; }
.field span {
  display: block; font-size: 13px; font-weight: 500;
  color: var(--muted); margin-bottom: 8px; letter-spacing: 0.02em;
}
.field input, .field select, .field textarea {
  display: block; width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line-strong); border-radius: var(--radius);
  background: var(--bg); color: var(--text);
  font-size: 16px; line-height: 1.4;
}
.field input::placeholder, .field textarea::placeholder { color: var(--faint); }
.field textarea { min-height: 112px; resize: vertical; }
.field select {
  appearance: none; -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 12px) 50%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 36px;
}
.field select:invalid, .field select option[value=""] { color: var(--faint); }
.field select option { color: var(--text); background: var(--bg-card); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--amber); outline-offset: 0; border-color: var(--amber);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-row .field + .field { margin-top: 0; }
.field + .form-row, .form-row + .field { margin-top: 16px; }
.form-actions { margin-top: 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.form-status { margin-top: 16px; font-size: 14px; line-height: 1.5; color: var(--text-2); }
.form-status[hidden] { display: none; }
.form-status.is-error { color: var(--error); }
.form-status a { color: var(--text); }
.form-done { font-size: 17px; line-height: 1.55; color: var(--text-2); }
.form-done strong { display: block; font-weight: 500; color: var(--text); margin-bottom: 8px; font-size: 18px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* 15. Contact and footer */
.contact-list { list-style: none; display: flex; flex-wrap: wrap; align-items: center; font-size: 17px; line-height: 1.5; color: var(--text-2); }
.contact-list li { display: flex; align-items: center; }
.contact-list li + li::before { content: "·"; color: var(--faint); padding-inline: 12px; }
.contact-list a { color: var(--text); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--line-strong); display: inline-block; padding-block: 10px; }
.contact-list a:hover { text-decoration-color: var(--text); }
.sep { color: var(--faint); padding-inline: 4px; }
.site-footer { border-top: 1px solid var(--line); color: var(--muted); padding-block: 40px; }
.site-footer .container {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 16px 32px; font-size: 14px;
}
.site-footer a { color: var(--text-2); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-strong); display: inline-block; padding-block: 11px; }
.site-footer a:hover { color: var(--text); }

/* 16. Utility pages */
.page { padding-block: 64px 112px; }
.page h1 { font-size: clamp(34px, 4vw, 44px); line-height: 1.1; margin-bottom: 20px; max-width: none; }
.page .meta { color: var(--muted); font-size: 14px; margin-bottom: 32px; }

/* 17. Responsive */
@media (max-width: 1024px) {
  .team { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
  :root { --section: 72px; --gutter: 16px; }
  .col-4, .col-5, .col-6, .col-7, .col-8, .col-start-8 { grid-column: span 12; }
  .col-start-8 { grid-column: 1 / -1; }
  .grid { row-gap: 36px; }
  .hero { min-height: min(78vh, 720px); }
  .hero .container { padding-block: calc(var(--header-h) + 72px) 40px; }
  .hero-media video, .hero-media img { object-position: 78% center; }
  .intro { padding-block: 56px; }
  .steps { grid-template-columns: 1fr; }
  .step-num { margin-bottom: 24px; }
  .shots, .shots-3 { grid-template-columns: 1fr; margin-top: 48px; gap: 28px; }
  .stats { grid-template-columns: 1fr; margin-bottom: 40px; }
  .team { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 16px; }
  .form-card { padding: 24px 20px; }
  .form-row { grid-template-columns: 1fr; }
  .form-row .field + .field { margin-top: 16px; }
  .actions .btn { flex: 1 1 100%; }

  .nav-toggle { display: inline-block; }
  .site-nav {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    background: rgba(7, 13, 20, 0.96);
    border-bottom: 1px solid var(--line);
    padding: 16px var(--gutter) 24px;
    flex-direction: column; align-items: stretch; gap: 16px;
  }
  .site-nav.is-open { display: flex; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav ul a { display: block; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 16px; color: var(--text); }
  .site-nav .btn { width: 100%; }
}
@media (max-width: 480px) {
  .contact-list { flex-direction: column; align-items: flex-start; }
  .contact-list li + li::before { content: none; }
}
@media (prefers-reduced-motion: reduce) {
  .btn, .site-nav a { transition: none; }
}
