@font-face {
  font-family: "Inter";
  src: url("../fonts/Inter-Variable.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Serif";
  src: url("../fonts/IBMPlexSerif-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Serif";
  src: url("../fonts/IBMPlexSerif-Italic.ttf") format("truetype");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Serif";
  src: url("../fonts/IBMPlexSerif-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #162226;
  --muted: #4a585c;
  --navy: #0f3d4c;
  --navy-2: #163f4c;
  --band: #e8eef0;
  --paper: #f4efe6;
  --card: #fffdf8;
  --rule: #d4cdc3;
  --rust: #8a1c1c;
  --rust-soft: #9a3b1a;
  --focus: #0f3d4c;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, "Source Sans Pro", "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.55;
  font-weight: 430;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); }
a:hover { color: var(--rust-soft); }

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--navy);
  color: #fff;
  padding: 0.5rem 1rem;
  z-index: 20;
}
.skip:focus { left: 0.5rem; top: 0.5rem; }

.wrap {
  width: min(var(--max), calc(100% - 2.5rem));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(244, 239, 230, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.25rem;
}
.wordmark {
  font-family: "IBM Plex Serif", Georgia, serif;
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: 0.01em;
  color: var(--navy);
  text-decoration: none;
}
.wordmark span {
  font-weight: 400;
  font-style: italic;
  color: var(--muted);
}
nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.9rem;
}
nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
}
nav a:hover { color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }

/* Hero */
.hero {
  padding: 3.25rem 0 3.5rem;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.75rem;
  align-items: center;
}
.kicker {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--rust-soft);
  margin: 0 0 0.85rem;
}
h1, h2, h3 {
  font-family: "IBM Plex Serif", Georgia, serif;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: -0.015em;
  line-height: 1.18;
}
h1 { font-size: clamp(2rem, 4.4vw, 3.15rem); margin: 0 0 1rem; }
h2 { font-size: clamp(1.45rem, 2.5vw, 1.9rem); margin: 0 0 0.85rem; }
h3 { font-size: 1.15rem; margin: 0 0 0.4rem; }
.lede {
  font-size: 1.12rem;
  color: var(--muted);
  max-width: 38rem;
  margin: 0 0 1.6rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.72rem 1.15rem;
  border-radius: 2px;
  font: 600 0.95rem Inter, sans-serif;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn-primary {
  background: var(--navy);
  color: #f7f3ea;
}
.btn-primary:hover { background: #0a2d38; color: #fff; }
.btn-ghost {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-ghost:hover { background: var(--navy); color: #fff; }
.btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.hero-figure { margin: 0; }
.hero-figure img {
  width: 100%;
  border-radius: 2px;
  box-shadow: 0 12px 32px rgba(15, 61, 76, 0.18);
}
.hero-figure figcaption,
.photo-credit {
  margin-top: 0.5rem;
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.4;
}

/* Sections */
section { padding: 2.75rem 0; }
section.alt { background: #efe8dc; }
.section-head { max-width: 40rem; margin-bottom: 1.6rem; }
.section-head p { margin: 0; color: var(--muted); }

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.15rem;
}
.card {
  background: var(--card);
  border: 1px solid var(--rule);
  padding: 1.2rem 1.2rem 1.3rem;
  border-radius: 2px;
}
.step-no {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--rust-soft);
  margin-bottom: 0.55rem;
}
.card p { margin: 0; color: var(--muted); font-size: 0.98rem; }

.standards {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.5rem;
}
.flag {
  border-left: 3px solid var(--navy);
  padding: 0.2rem 0 0.2rem 1rem;
  margin: 0 0 1rem;
}
.flag:last-child { margin-bottom: 0; }
.note {
  background: var(--band);
  border: 1px solid #c5d0d4;
  padding: 1.1rem 1.2rem;
}
.note p { margin: 0; color: var(--navy); font-size: 0.95rem; }

/* Sample */
.sample-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2rem;
  align-items: start;
}
.sample-thumb {
  border: 1px solid var(--rule);
  background: #fff;
  padding: 0.5rem;
  box-shadow: 0 8px 24px rgba(15, 61, 76, 0.1);
}
.sample-thumb img { width: 100%; }
.downloads { display: flex; flex-wrap: wrap; gap: 0.55rem 0.7rem; margin: 1rem 0 0.4rem; }
.downloads a {
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
}
.licence-box {
  margin-top: 1.1rem;
  font-size: 0.85rem;
  color: var(--muted);
}
.stills-row { margin-top: 1.4rem; }
.stills-row img { width: 100%; border: 1px solid var(--rule); }

/* Trial */
.trial-banner {
  background: var(--navy);
  color: #f4efe6;
  padding: 2.4rem 0;
}
.trial-banner h2, .trial-banner p { color: #f4efe6; }
.trial-banner p { max-width: 40rem; }

/* Privacy + form layout */
.split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2.25rem;
  align-items: start;
}
form {
  background: var(--card);
  border: 1px solid var(--rule);
  padding: 1.35rem 1.4rem 1.5rem;
}
.form-notice {
  background: #f7efe6;
  border: 1px solid #e0c9a4;
  color: #5a3a12;
  padding: 0.7rem 0.85rem;
  font-size: 0.9rem;
  margin: 0 0 1.1rem;
}
label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  margin: 0 0 0.3rem;
}
.field { margin-bottom: 0.85rem; }
.field.two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
input, select, textarea {
  width: 100%;
  font: 430 1rem Inter, sans-serif;
  color: var(--ink);
  background: #fff;
  border: 1px solid #c8c1b5;
  border-radius: 2px;
  padding: 0.55rem 0.65rem;
}
input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--navy);
  outline-offset: 1px;
  border-color: var(--navy);
}
textarea { min-height: 7rem; resize: vertical; }
.help { display: block; font-size: 0.78rem; color: var(--muted); margin-top: 0.3rem; font-weight: 400; }
.form-status {
  display: none;
  margin: 0.9rem 0 0;
  padding: 0.75rem 0.85rem;
  background: var(--band);
  border: 1px solid #c5d0d4;
  color: var(--navy);
  font-size: 0.95rem;
}
.form-status.show { display: block; }

/* Contact / footer */
.contact-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 0.85rem;
}
.contact-row > div { display: flex; flex-direction: column; align-items: flex-start; gap: 0.25rem; }
.contact-row .step-no { display: block; margin-bottom: 0; }
.contact-row a { font-weight: 600; text-decoration: none; white-space: nowrap; }
.contact-row a:hover { text-decoration: underline; }
.site-footer {
  border-top: 1px solid var(--rule);
  padding: 1.5rem 0 2rem;
  font-size: 0.85rem;
  color: var(--muted);
}
.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}


/* Sample packs */
.sample-packs { margin-top: 1rem; display: grid; gap: 0.85rem; }
.pack {
  border-top: 1px solid var(--rule);
  padding-top: 0.75rem;
}
.pack h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
}
.pack .downloads { margin: 0.35rem 0 0; }
.photo-credit {
  margin: 0.55rem 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}

@media (max-width: 860px) {
  .hero-grid, .standards, .sample-grid, .split, .cards, .contact-row {
    grid-template-columns: 1fr;
  }
  .hero { padding-top: 2rem; }
  nav { display: none; }
  .field.two { grid-template-columns: 1fr; }
}
