@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("assets/fonts/plus-jakarta-sans.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #f6f4ee;
  --ink: #05052e;          /* the wordmark navy */
  --ink-soft: #4a4a63;
  --rule: #d9d5c9;
  --accent: #0b74e5;       /* the product blue */
  --sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(16px, 4vw, 56px);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.page {
  max-width: 1240px;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  flex-direction: column;
}

a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.18em;
}
a:hover { color: var(--accent); }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

p { margin: 0; }

/* Header */
.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0 16px;
  border-bottom: 1px solid var(--ink);
}
.brand { display: flex; align-items: center; gap: 9px; text-decoration: none; }
.brand img { display: block; width: auto; }
.brand-icon { height: 30px; }
.brand-word { height: 24px; }
.login {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--ink-soft);
  text-decoration: none;
}
.login:hover { color: var(--accent); text-decoration: underline; }

/* Main */
main {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 36px;
  padding: clamp(24px, 4vh, 52px) 0 clamp(22px, 3vh, 44px);
  align-content: start;
}

.label {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

h1 {
  margin: 0;
  font-weight: 800;
  font-size: clamp(1.9rem, 1.1rem + 2.9vw, 2.9rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.standfirst {
  margin-top: 18px;
  font-size: clamp(1.02rem, 0.98rem + 0.2vw, 1.1rem);
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 34em;
  text-wrap: pretty;
}

.status {
  margin-top: 26px;
  padding-left: 16px;
  border-left: 3px solid var(--accent);
  max-width: 34em;
}
.status strong { font-weight: 700; }

/* Figures: a set line of numbers, not cards */
.figures {
  margin: 30px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, auto);
  justify-content: start;
  column-gap: clamp(22px, 4vw, 48px);
  border-top: 1px solid var(--rule);
  padding-top: 16px;
}
.figures div { margin: 0; }
.figures dt {
  font-size: clamp(1.8rem, 1.3rem + 1.6vw, 2.5rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  font-variant-numeric: lining-nums;
}
.figures dd {
  margin: 6px 0 0;
  font-family: var(--sans);
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
}

/* Screenshot */
.plate { margin: 0; }
.plate img {
  display: block;
  width: 100%;
  height: auto;
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 6px;
}
.plate figcaption {
  margin-top: 10px;
  font-family: var(--sans);
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--ink-soft);
}

/* Video reel (right of the hero) */
.reel { width: 100%; }
.reel-track {
  display: flex;
  overflow-x: auto;
  gap: 12px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.reel-track::-webkit-scrollbar { display: none; }
.reel-track:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.reel-track video {
  flex: 0 0 calc(50% - 6px);
  width: calc(50% - 6px);
  height: auto;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  scroll-snap-align: start;
  background: #000;
  border-radius: 6px;
  opacity: 0.45;
  transition: opacity 0.2s;
}
.reel-track video.is-current { opacity: 1; }

/* Earlier homepage, full width under the hero */
.home {
  border-top: 1px solid var(--rule);
  padding-top: clamp(22px, 3.5vh, 40px);
}
.reel-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
  font-size: 12.5px;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}
.reel-nav[hidden] { display: none; }
.reel-nav button {
  font: inherit;
  font-size: 16px;
  line-height: 1;
  width: 36px;
  height: 32px;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--ink);
  border-radius: 4px;
  cursor: pointer;
}
.reel-nav button:hover:not(:disabled) { color: var(--accent); border-color: var(--accent); }
.reel-nav button:disabled { opacity: 0.3; cursor: default; }
.reel-nav button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
/* Now + contact */
.colophon {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
  border-top: 1px solid var(--rule);
  padding-top: 22px;
  font-size: 1rem;
}
.colophon h2 {
  margin: 0 0 6px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.colophon p { max-width: 30em; }

/* Footer */
.foot {
  border-top: 1px solid var(--ink);
  padding: 12px 0 14px;
  font-family: var(--sans);
  font-size: 12.5px;
  color: var(--ink-soft);
}
.foot a { text-decoration-color: var(--rule); }

/* Sign-in page */
main.auth {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: clamp(40px, 10vh, 110px);
}
.auth-form { width: 100%; max-width: 380px; display: grid; }
.auth-form h1 {
  font-size: 1.75rem;
  letter-spacing: -0.03em;
  margin-bottom: 22px;
}
.auth-form label {
  font-size: 13px;
  font-weight: 600;
  margin: 14px 0 6px;
}
.auth-form input {
  font: inherit;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 11px 12px;
  width: 100%;
}
.auth-form input:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.auth-form button {
  font: inherit;
  font-weight: 700;
  margin-top: 22px;
  padding: 12px 16px;
  color: #fff;
  background: var(--ink);
  border: 0;
  border-radius: 6px;
  cursor: pointer;
}
.auth-form button:hover:not(:disabled) { background: var(--accent); }
.auth-form button:disabled { opacity: 0.6; cursor: default; }
.auth-form button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.auth-error {
  font-size: 14.5px;
  line-height: 1.5;
  padding: 12px 14px;
  background: #fdecea;
  border: 1px solid #f1b5ae;
  border-radius: 6px;
  color: #6b1610;
}
.auth-error[hidden] { display: none; }
.auth-error:focus { outline: none; }
.auth-error a { text-decoration-color: currentColor; }

@media (min-width: 900px) {
  main {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: clamp(36px, 5vw, 72px);
    row-gap: clamp(24px, 3.5vh, 40px);
    align-items: start;
  }
  .reel { padding-top: 30px; }
  .home { grid-column: 1 / -1; }
  .colophon {
    grid-column: 1 / -1;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: clamp(36px, 5vw, 72px);
  }
}

@media (max-width: 420px) {
  .figures { column-gap: 18px; }
  .brand-icon { height: 26px; }
  .brand-word { height: 21px; }
}
