/* IMRSV landing page
   Tokens derive from _breif/brand (SVG exports). No colour outside the kit. */

@font-face {
  font-family: "APK Protocol";
  src: url("/assets/fonts/APKProtocol-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "APK Protocol";
  src: url("/assets/fonts/APKProtocol-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "APK Protocol";
  src: url("/assets/fonts/APKProtocol-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #16002b;        /* Royal Iris */
  --ground: #ede8f4;     /* Soft Lilac */
  --accent: #7300e5;     /* Lilac */
  --neon: #1aedd5;       /* Neon: button fill, Royal Iris label (13.2:1) */
  --ink-70: rgba(22, 0, 43, 0.7);
  --ground-72: rgba(237, 232, 244, 0.72);
  --ground-25: rgba(237, 232, 244, 0.25);

  --m: 0.75rem;          /* the module: every gutter, band, offset and control is a multiple */
  --band: calc(var(--m) * 4);
  --nav: calc(var(--m) * 5);
  --gap: calc(var(--m) * 2);
  --gap-l: calc(var(--m) * 4);
  --section: calc(var(--m) * 6);
  --wrap: 80rem;
  --pad: calc(var(--m) * 2);

  --font: "APK Protocol", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

@media (min-width: 64em) {
  :root {
    --nav: calc(var(--m) * 6);
    --gap-l: calc(var(--m) * 6);
    --section: calc(var(--m) * 10);
    --pad: calc(var(--m) * 4);
  }
}

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

html {
  color-scheme: light;
  background: var(--ground);
  scroll-padding-top: calc(var(--nav) + var(--m));
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.5;
  color: var(--ink);
  background: var(--ground);
  caret-color: var(--accent);
  scrollbar-color: var(--ink) var(--ground);
  -webkit-font-smoothing: antialiased;
}
@media (min-width: 64em) {
  body { font-size: 1.125rem; }
}

::selection {
  background: var(--accent);
  color: var(--ground);
}

img, svg, video { display: block; max-width: 100%; }

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

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

h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }

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

.skip {
  position: absolute;
  left: var(--m);
  top: var(--m);
  z-index: 20;
  padding: var(--m) var(--gap);
  background: var(--ink);
  color: var(--ground);
  font-weight: 600;
  transform: translateY(-200%);
}
.skip:focus { transform: none; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--pad);
}

/* Placeholders the client replaces. Marked so nobody mistakes them for copy. */
.ph {
  text-decoration: underline dashed;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

/* Type ---------------------------------------------------------------- */

h1 {
  font-size: clamp(2.625rem, 1.5rem + 4.6vw, 4.75rem);
  line-height: 0.98;
  font-weight: 600;
  letter-spacing: -0.025em;
  text-wrap: balance;
  max-width: 13ch;
}

h2 {
  font-size: clamp(1.75rem, 1.1rem + 2.6vw, 3rem);
  line-height: 1.04;
  font-weight: 600;
  letter-spacing: -0.018em;
  text-wrap: balance;
  max-width: 22ch;
}
/* Sign lettering breaks on the full stops the copy already has */
h2 .l { display: block; }

h3 {
  font-size: 1.3125rem;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.008em;
  text-wrap: balance;
}

.lead {
  font-size: clamp(1.1875rem, 1rem + 0.8vw, 1.5rem);
  line-height: 1.4;
  max-width: 34ch;
}

.body p,
.body li,
.col p,
figcaption,
.half p {
  max-width: 62ch;
}

.close {
  font-weight: 600;
  font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem);
  line-height: 1.25;
  letter-spacing: -0.01em;
  max-width: 30ch;
  text-wrap: balance;
}

.word {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1;
}

/* Controls --------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--band);
  padding: 0 calc(var(--m) * 2.5);
  background: var(--neon);
  color: var(--ink);
  font: inherit;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  border: 0;
  border-radius: 0;
  cursor: pointer;
  white-space: nowrap;
}
.btn:hover { background: var(--accent); color: var(--ground); }
.btn:active { background: var(--accent); color: var(--ground); transform: translateY(1px); }
.btn:focus-visible { outline-offset: 3px; }
.btn[disabled] { opacity: 0.55; cursor: progress; }

.btn--nav {
  min-height: calc(var(--m) * 3.5);
  padding: 0 calc(var(--m) * 2);
  font-size: 0.9375rem;
}

.textlink {
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--ink);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.22em;
}
.textlink:hover { text-decoration-color: var(--accent); }

/* Nav ----------------------------------------------------------------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--ground);
  border-bottom: 1px solid var(--ink);
}
.nav__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--nav);
  gap: var(--gap);
}
.lockup {
  display: block;
  color: var(--ink);
  line-height: 0;
}
.lockup svg {
  height: 1.625rem;
  width: auto;
}
@media (min-width: 64em) {
  .lockup svg { height: 1.875rem; }
}

/* Sign: band + panel ----------------------------------------------------- */

.sign {
  padding-bottom: var(--section);
}

.band {
  background: var(--accent);
  color: var(--ground);
}
.band .wrap {
  display: flex;
  align-items: center;
  min-height: var(--band);
  padding-block: var(--m);
}
.band .word {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5em 0;
  line-height: 1.3;
}
@media (max-width: 47.99em) {
  /* On a phone the two claims stack as two lines of the sign, no separator */
  .hero .band .word {
    font-size: 0.75rem;
    letter-spacing: 0.1em;
  }
  .hero .band .word > span { flex-basis: 100%; }
  .hero .band .word > span + span::before { display: none; }
}

/* Separators belong to the item that follows them, so one never ends a line */
.word > span + span::before,
.foot p > * + *::before {
  content: "";
  display: inline-block;
  width: 1px;
  height: 0.9em;
  margin: 0 0.9em;
  background: currentColor;
  opacity: 0.6;
  vertical-align: -0.08em;
}

.panel {
  display: grid;
  gap: calc(var(--m) * 4) var(--gap);   /* four modules heading to body */
  padding-top: calc(var(--m) * 6);      /* six modules band to heading */
}
.panel > * { min-width: 0; }

@media (min-width: 64em) {
  .panel {
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }
  .panel > * { grid-column: 1 / -1; }
  .panel--split > h2,
  .panel--split > .head { grid-column: 1 / 7; }
  .panel--split > .body {
    grid-column: 7 / 13;
    border-top: 1px solid var(--ink);
    padding-top: var(--gap);
  }
}

.head { display: grid; gap: var(--gap); align-content: start; }
.body { display: grid; gap: var(--gap); align-content: start; }

/* Columns with an accent top rule */
.cols {
  display: grid;
  gap: var(--gap-l) var(--gap);
}
@media (min-width: 48em) {
  .cols { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.col {
  border-top: 2px solid var(--accent);
  padding-top: var(--gap);
  display: grid;
  gap: var(--m);
  align-content: start;
}
/* An in-engine frame above a column's point */
.col__fig {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  object-fit: cover;
  background: var(--ink);
  margin-bottom: var(--m);
}

/* Dash list */
.dashes {
  display: grid;
  gap: var(--gap);
}
.dashes li {
  position: relative;
  padding-left: calc(var(--m) * 4);
}
.dashes li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: calc(var(--m) * 2);
  height: 2px;
  background: var(--accent);
}

/* Hero --------------------------------------------------------------- */

.hero__panel { row-gap: var(--gap-l); }
.hero__text {
  display: grid;
  gap: var(--gap);
  align-content: start;
}
.hero__text h1 { margin-bottom: var(--m); }
.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--gap) var(--gap-l);
  margin-top: var(--m);
}
@media (min-width: 64em) {
  .hero__panel { padding-top: calc(var(--m) * 6); }
  .hero__text { grid-column: 1 / 7; }
  .hero__crew { grid-column: 7 / 13; align-self: end; }
  .hero__text h1 { max-width: 13ch; }
}

/* The crew is a transparent cut-out standing on the page's own ground */
.hero__crew {
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.hero__crew img {
  width: 100%;
  max-width: 40rem;
  height: auto;
}

/* Delivery and data ----------------------------------------------------- */

.halves {
  display: grid;
  gap: var(--gap-l) var(--gap);
}
@media (min-width: 64em) {
  .halves {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    align-items: start;
  }
  .half:nth-of-type(1) { grid-column: 1 / 6; grid-row: 1; }
  .half__fig { grid-column: 1 / 6; grid-row: 2; }
  .half:nth-of-type(2) { grid-column: 7 / 13; grid-row: 1; }
  .tile { grid-column: 7 / 13; grid-row: 2; }
}
.half__fig { margin: 0; }
.half__fig .col__fig { margin-bottom: 0; }
.half {
  display: grid;
  gap: var(--gap);
  align-content: start;
  border-top: 1px solid var(--ink);
  padding-top: var(--gap);
}

.tile {
  background: var(--ink);
  color: var(--ground);
  padding: var(--gap-l) var(--pad);
  display: grid;
  gap: var(--gap);
  align-content: start;
}
.tile .word { color: var(--ground-72); }
.tile__num {
  font-size: clamp(3.5rem, 2.5rem + 4vw, 5.5rem);
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.tile__label { color: var(--ground-72); }
.tile__lines {
  display: grid;
  margin-top: var(--m);
}
.tile__lines li {
  padding: var(--m) 0;
  border-top: 1px solid var(--ground-25);
  font-variant-numeric: tabular-nums;
}

/* Procurement --------------------------------------------------------- */

.sn {
  display: inline-flex;
  align-items: center;
  min-height: calc(var(--m) * 5);
  padding: var(--m) var(--gap);
  border: 1px dashed var(--ink);
  font-size: 0.875rem;
  text-decoration: none;
  margin-top: var(--m);
}
.sn:hover { border-style: solid; }

/* Form ----------------------------------------------------------------- */

.form {
  display: grid;
  gap: var(--gap) var(--gap);
}
@media (min-width: 48em) {
  .form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .field--wide,
  .form__foot { grid-column: 1 / -1; }
}
.field {
  display: grid;
  gap: calc(var(--m) * 0.75);
  align-content: start;
}
.field label {
  font-size: 0.9375rem;
  font-weight: 500;
}
.field .opt { font-weight: 400; color: var(--ink-70); }
.field input,
.field textarea {
  width: 100%;
  min-height: var(--band);
  padding: calc(var(--m) * 0.75) var(--m);
  border: 1px solid var(--ink);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  line-height: 1.4;
}
.field textarea { resize: vertical; min-height: calc(var(--m) * 10); }
.field input:focus-visible,
.field textarea:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}
.field--error input,
.field--error textarea { border-width: 2px; }
.field__err {
  font-size: 0.9375rem;
  min-height: 0;
}
.field__err:empty { display: none; }

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

.form__foot {
  display: grid;
  gap: var(--gap);
  align-items: center;
  margin-top: var(--m);
}
@media (min-width: 48em) {
  .form__foot { grid-template-columns: auto 1fr; }
}
.form__status { font-size: 1rem; }
.form__status:empty { display: none; }
.form__done {
  font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem);
  line-height: 1.3;
  font-weight: 600;
  max-width: 28ch;
  text-wrap: balance;
}

.book__head { display: grid; gap: var(--gap); align-content: start; }

/* Footer ---------------------------------------------------------------- */

.foot {
  background: var(--ink);
  color: var(--ground);
  padding: var(--gap-l) 0;
  font-size: 0.9375rem;
}
.foot__row {
  display: grid;
  gap: var(--gap);
}
@media (min-width: 64em) {
  .foot__row {
    grid-template-columns: 1fr auto;
    align-items: start;
  }
}
.foot p { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35em 0; }
.foot p > * + *::before { opacity: 0.5; }
@media (max-width: 47.99em) {
  /* The company line stacks on a phone; the contact line stays on one row */
  .foot__row p:first-child > span { flex-basis: 100%; }
  .foot__row p:first-child > span + span::before { display: none; }
}
.foot a { text-decoration-color: var(--ground-72); }
.foot a:hover { text-decoration-color: var(--ground); }
.foot__ack {
  margin-top: var(--gap-l);
  padding-top: var(--gap);
  border-top: 1px solid var(--ground-25);
  color: var(--ground-72);
  max-width: 70ch;
}

/* Motion: the CTA snap and smooth anchor scrolling are the only movement.
   No entrance animation; every section is visible as it arrives. */
