/* System v2: base, type, layout, buttons, forms, motion primitives, shared patterns. Values come from tokens.css. */
*,
*::before,
*::after {
  box-sizing: border-box;
}
@view-transition {
  navigation: auto;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + var(--back-h) + 16px);
}
body {
  margin: 0;
  background: var(--bone);
  color: var(--ink);
  font: 400 var(--fs-body) / 1.62 var(--font);
  font-feature-settings: "ss01", "kern";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
/* paper grain: one fixed, cheap noise layer */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 300;
  pointer-events: none;
  opacity: 0.085;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .03  0 0 0 0 .1  0 0 0 0 .29  0 0 0 .9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
img,
svg,
video,
canvas {
  display: block;
  max-width: 100%;
}
img {
  height: auto;
}
a {
  color: inherit;
}
::selection {
  background: var(--orange);
  color: var(--ink);
}
:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
  border-radius: 4px;
}
.skip {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 500;
  padding: 12px 18px;
  background: var(--ink);
  color: #fff;
  border-radius: var(--r-pill);
  font-weight: 600;
}
.skip:focus {
  top: 12px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- type ---------- */
h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  text-wrap: balance;
}
h1 {
  font-size: var(--fs-h1);
  line-height: 0.93;
  letter-spacing: -0.045em;
}
h2 {
  font-size: var(--fs-h2);
  line-height: 0.98;
  letter-spacing: -0.035em;
}
h3 {
  font-size: var(--fs-h3);
  line-height: 1.1;
  letter-spacing: -0.02em;
}
h1 em,
h2 em,
h3 em {
  font-style: italic;
  font-weight: 400;
  color: var(--blue-ink);
  padding-right: 0.04em;
}
.section--ink h1 em,
.section--ink h2 em,
.section--ink h3 em {
  color: var(--orange-text);
}
p {
  margin: 0 0 1em;
}
.lead {
  max-width: 54ch;
  margin: 0;
  font-size: var(--fs-lead);
  line-height: 1.5;
  color: var(--muted);
}
.section--ink .lead {
  color: var(--on-dark);
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.65em;
  margin: 0 0 var(--s5);
  font: 600 var(--fs-label) / 1 var(--font);
  letter-spacing: 0.02em;
  color: var(--muted);
}
.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 0 rgba(255, 101, 0, 0.5);
  animation: pulse 2.6s var(--ease) infinite;
}
.section--ink .eyebrow {
  color: var(--label-dark);
}
@keyframes pulse {
  70% {
    box-shadow: 0 0 0 9px rgba(255, 101, 0, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 101, 0, 0);
  }
}
.prose p {
  max-width: 62ch;
}

/* ---------- layout ---------- */
.container {
  width: min(var(--max), 100% - 2 * var(--gutter));
  margin-inline: auto;
}
.section {
  position: relative;
  padding-block: var(--section);
}
.section--tight {
  padding-block: calc(var(--section) * 0.6);
}
.section--mist {
  background: var(--bone-2);
}
.section--ink {
  background: var(--ink);
  color: #fff;
  --muted: var(--on-dark);
  --line: var(--line-dark);
  overflow: clip;
}
.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 6vw, 96px);
  align-items: center;
}
.split--top {
  align-items: start;
}
.sec-head {
  max-width: 900px;
  margin-bottom: clamp(28px, 4vw, 56px);
}
.sec-head--row {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: var(--s5);
  max-width: none;
}
.sec-head .lead {
  margin-top: var(--s5);
}
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s3);
  margin-top: var(--s6);
}
@media (max-width: 860px) {
  .split {
    grid-template-columns: 1fr;
  }
}

/* ---------- buttons ---------- */
.btn {
  --bg: var(--ink);
  --fg: #fff;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  min-height: 52px;
  padding: 0 28px;
  border: 1.5px solid var(--bg);
  border-radius: var(--r-pill);
  background: var(--bg);
  color: var(--fg);
  font: 600 1rem / 1 var(--font);
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition:
    transform var(--t) var(--ease),
    background var(--t) var(--ease),
    color var(--t) var(--ease),
    border-color var(--t) var(--ease);
}
.btn .arrow {
  display: inline-block;
  transition: transform var(--t) var(--ease);
}
.btn:hover .arrow {
  transform: translate(3px, -3px);
}
.btn:hover {
  background: var(--ink-2);
  border-color: var(--ink-2);
}
.btn--primary {
  --bg: var(--orange);
  --fg: var(--ink);
}
.btn--primary:hover {
  background: var(--orange-hover);
  border-color: var(--orange-hover);
}
.btn--dark {
  --bg: var(--ink);
  --fg: #fff;
}
.btn--light {
  --bg: #fff;
  --fg: var(--ink);
}
.btn--light:hover {
  background: var(--bone);
  border-color: var(--bone);
}
.btn--ghost,
.btn--ghost-light {
  background: transparent;
  border-color: currentColor;
  --fg: var(--ink);
}
.btn--ghost:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
.btn--ghost-light {
  --fg: #fff;
}
.btn--ghost-light:hover {
  background: #fff;
  border-color: #fff;
  color: var(--ink);
}
.btn[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
}
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  min-height: 44px;
  font-weight: 600;
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat;
  transition: background-size 0.4s var(--ease-out);
}
.link-arrow:hover {
  background-size: 100% 1.5px;
}
.more {
  font-weight: 600;
}

/* ---------- forms ---------- */
.form {
  display: grid;
  gap: var(--s5);
}
.field label,
.subscribe__label {
  display: block;
  margin-bottom: 4px;
  font: 600 var(--fs-label) / 1.4 var(--font);
  letter-spacing: 0.02em;
}
.form input,
.form textarea,
.form select,
.subscribe input[type="email"] {
  width: 100%;
  padding: 12px 0;
  border: 0;
  border-bottom: 1.5px solid var(--line-strong);
  border-radius: 0;
  background: transparent;
  color: inherit;
  font: 400 1.25rem / 1.4 var(--font);
  transition: border-color var(--t) var(--ease);
}
.form textarea {
  resize: vertical;
  min-height: 112px;
}
.form select option {
  color: var(--ink);
}
.section--ink .form input,
.section--ink .form textarea,
.section--ink .form select {
  border-color: rgba(255, 255, 255, 0.45);
}
.form input:focus,
.form textarea:focus,
.form select:focus,
.subscribe input[type="email"]:focus {
  outline: 0;
  border-color: var(--orange);
}
.form [aria-invalid="true"] {
  border-color: var(--error);
}
.section--ink .form [aria-invalid="true"] {
  border-color: var(--orange-soft);
}
.form-status,
.subscribe__status {
  min-height: 1.4em;
  margin: 0;
  font-weight: 600;
}
.form-status.is-error,
.subscribe__status.is-error {
  color: var(--error);
}
.section--ink .form-status.is-error {
  color: var(--orange-soft);
}
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.subscribe__row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s4);
  align-items: end;
}
.subscribe__row input {
  flex: 1 1 240px;
}
.subscribe__consent {
  display: flex;
  gap: 12px;
  margin-top: var(--s4);
  font-size: var(--fs-small);
  line-height: 1.5;
  color: var(--muted);
}
.subscribe__consent input {
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  accent-color: var(--ink);
}
.subscribe__consent a {
  color: inherit;
}

/* ---------- motion primitives (hidden states only exist once JS has flagged the page) ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 0.9s var(--ease-out),
    transform 0.9s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 80ms);
}
.js [data-reveal].in {
  opacity: 1;
  transform: none;
}
.js [data-split]:not(.is-split) {
  visibility: hidden;
}
[data-split] .w {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding: 0.04em 0.06em 0.16em 0;
  margin: -0.04em -0.06em -0.16em 0;
}
[data-split] .w > span {
  display: inline-block;
  transform: translateY(108%);
  transition: transform 1.05s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 55ms + var(--d, 0ms));
}
[data-split].in .w > span {
  transform: none;
}
.draw {
  display: block;
  height: 2px;
  background: var(--orange);
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 1.2s var(--ease-out) 0.3s;
}
.draw.in {
  transform: none;
}

/* marquee */
.marquee {
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: var(--bone);
  user-select: none;
}
.marquee__track {
  display: flex;
  width: max-content;
  animation: marq var(--speed, 42s) linear infinite;
}
.marquee:hover .marquee__track {
  animation-play-state: paused;
}
.marquee__item {
  display: inline-flex;
  align-items: center;
  gap: clamp(20px, 3vw, 48px);
  padding: clamp(14px, 1.8vw, 24px) clamp(10px, 1.5vw, 24px);
  font: 400 clamp(1.5rem, 3.4vw, 3rem) / 1 var(--font-display);
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.marquee__item i {
  font-style: italic;
  color: var(--orange-text);
}
.marquee__item b {
  display: inline-block;
  width: 0.34em;
  height: 0.34em;
  background: var(--orange);
  transform: rotate(45deg);
}
@keyframes marq {
  to {
    transform: translateX(-50%);
  }
}

/* ---------- rows: the list pattern that replaces card grids ---------- */
.rows {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line-strong);
}
.rows > li {
  border-bottom: 1px solid var(--line);
}
.row {
  position: relative;
  display: grid;
  grid-template-columns: 3.2rem minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--s5);
  padding: clamp(18px, 2.4vw, 30px) 0;
  text-decoration: none;
  transition:
    padding var(--t) var(--ease),
    color var(--t) var(--ease);
}
.row::before {
  content: "";
  position: absolute;
  inset: 0 calc(-1 * var(--gutter));
  background: var(--ink);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.45s var(--ease-out);
  z-index: -1;
}
.row:hover::before,
.row:focus-visible::before {
  transform: none;
}
.row:hover,
.row:focus-visible {
  color: #fff;
  padding-left: 12px;
}
.row__n {
  font: 600 var(--fs-label) / 1 var(--font);
  color: var(--muted);
  font-feature-settings: "tnum";
}
.row:hover .row__n {
  color: var(--orange-text);
}
.row__t {
  font: 500 clamp(1.6rem, 3.4vw, 3rem) / 1.02 var(--font-display);
  letter-spacing: -0.03em;
}
.row__s {
  display: block;
  margin-top: 6px;
  font: 400 var(--fs-small) / 1.4 var(--font);
  color: var(--muted);
}
.row:hover .row__s {
  color: var(--on-dark);
}
.row__m {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-weight: 600;
  white-space: nowrap;
}
.row__m .arrow {
  display: inline-block;
  font-size: 1.3em;
  transition: transform var(--t) var(--ease);
}
.row:hover .row__m .arrow {
  transform: rotate(45deg);
}
.rows {
  position: relative;
  z-index: 0;
}
@media (max-width: 640px) {
  .row {
    grid-template-columns: 1fr auto;
  }
  .row__n {
    display: none;
  }
  .row__m span:not(.arrow) {
    display: none;
  }
}

/* floating photo that follows the pointer over a row */
.peek {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 60;
  width: 280px;
  aspect-ratio: 4 / 3;
  border-radius: 14px;
  background: var(--ink) center / cover no-repeat;
  box-shadow: var(--shadow-lg);
  pointer-events: none;
  opacity: 0;
  scale: 0.85;
  transition:
    opacity 0.25s var(--ease),
    scale 0.35s var(--ease-out);
}
.peek.on {
  opacity: 1;
  scale: 1;
}
@media (hover: none), (max-width: 900px) {
  .peek {
    display: none;
  }
}

/* chips */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip {
  min-height: 44px;
  padding: 0 20px;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--r-pill);
  background: transparent;
  color: inherit;
  font: 600 var(--fs-small) / 1 var(--font);
  cursor: pointer;
  transition:
    background var(--t) var(--ease),
    color var(--t) var(--ease);
}
.chip:hover {
  background: var(--bone-2);
}
.chip[aria-pressed="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

/* photo frames and covers */
.frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-card);
  background: var(--ink);
}
.frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease-out);
}
a:hover > .frame img,
.frame:hover img {
  transform: scale(1.05);
}
/* duotone: ink-blue shadows, paper highlights; colour returns on hover */
.cover {
  position: relative;
  overflow: hidden;
  background: #2b57c7;
  border-radius: var(--r-card);
  isolation: isolate;
}
.cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.02) brightness(1.28);
  mix-blend-mode: multiply;
  transition:
    filter 0.6s var(--ease),
    transform 1.1s var(--ease-out);
}
a:hover > .cover img,
.cover:hover img {
  filter: none;
  mix-blend-mode: normal;
  transform: scale(1.04);
}
.cover--none {
  background: var(--ink) radial-gradient(circle at 20% 20%, #1c43a0, transparent 60%);
}

/* faq */
.faq details {
  border-top: 1px solid var(--line-strong);
}
.faq details:last-child {
  border-bottom: 1px solid var(--line-strong);
}
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s5);
  min-height: 64px;
  padding: 14px 0;
  font: 500 clamp(1.25rem, 2vw, 1.7rem) / 1.2 var(--font-display);
  letter-spacing: -0.02em;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "+";
  flex: none;
  font: 300 2rem / 1 var(--font);
  transition: transform var(--t) var(--ease);
}
.faq details[open] summary::after {
  transform: rotate(45deg);
}
.faq details p {
  max-width: 62ch;
  padding-bottom: var(--s5);
  color: var(--muted);
}

/* DDGIP form helpers (the form itself is styled in apply.css) */
.apply-copy {
  position: sticky;
  top: calc(var(--header-h) + var(--back-h) + 24px);
}
.fee-card {
  margin: var(--s6) 0 var(--s5);
  padding: var(--s5) 0;
  border-block: 1px solid var(--line-strong);
}
.fee-label {
  display: block;
  font: 600 var(--fs-label) / 1 var(--font);
  color: var(--muted);
}
.fee-amount {
  display: block;
  margin: 8px 0;
  font: 500 clamp(3rem, 6vw, 5rem) / 1 var(--font-display);
  letter-spacing: -0.04em;
}
.fee-card p {
  margin: 0;
  font-size: var(--fs-small);
  color: var(--muted);
}
.under18 {
  font-size: var(--fs-small);
  color: var(--muted);
}
.under18 b {
  color: var(--ink);
}
@media (max-width: 860px) {
  .apply-copy {
    position: static;
  }
}

/* reduced motion: everything is visible and still; the hero and marquee keep a slow drift only where it is safe */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .js [data-reveal],
  [data-split] .w > span,
  .draw {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .eyebrow::before,
  .marquee__track {
    animation: none;
  }
  .marquee {
    overflow-x: auto;
  }
}

/* digit roll: each digit of a number scrolls into place when it enters the screen */
.d {
  display: inline-block;
  height: 1.2em;
  margin-block: -0.1em;
  overflow: hidden;
  vertical-align: bottom;
  line-height: 1;
}
.d__c {
  display: flex;
  flex-direction: column;
  transition: transform 1.5s var(--ease-out);
  transition-delay: 0.1s;
}
.d__c i {
  display: block;
  height: 1.2em;
  font-style: normal;
  line-height: 1.2;
}
[data-roll].in .d__c {
  transform: translateY(calc(var(--to) * -1.2em));
}
@media (prefers-reduced-motion: reduce) {
  .d__c {
    transition: none;
  }
}

.btn-row--flush {
  margin: 0;
}
.mt-l {
  margin-top: var(--s6);
}
.fine--dark {
  color: var(--on-dark);
}
.more-areas {
  margin-top: var(--s5);
}

h1 + .lead,
h2 + .lead {
  margin-top: var(--s5);
}
