/* ==========================================================================
   M&J Interprise Co, Ltd
   Single design system for the site. Direction and rationale: DESIGN.md.
   Contents
     1. Tokens
     2. Reset and base
     3. Typography
     4. Shell and grid
     5. Header, navigation, panel
     6. Buttons, links, media
     7. Schedule rows and lists
     8. Sections
     9. Forms
    10. Footer
    11. Motion
    12. Responsive
   ========================================================================== */

/* 1. Tokens ---------------------------------------------------------------- */
:root {
  --ink-900: #0a1a24;
  --ink-800: #0f2637;
  --ink-700: #16374a;
  --ink-600: #1d4a61;
  --paper: #faf7f1;
  --paper-2: #f2ede3;
  --paper-3: #e2dacb;
  --white: #fff;
  --slate-700: #2c3a44;
  --slate-500: #596872;
  --brass-700: #6e5326;
  --brass-500: #a07a3c;
  --brass-300: #d5be93;
  --danger: #8c2f22;
  --confirm: #2c5138;

  --line: var(--paper-3);
  --line-dark: rgba(250, 247, 241, 0.16);
  --line-strong: rgba(10, 26, 36, 0.28);
  /* Field borders are the only cue that identifies an input, so they carry
     non-text contrast of 4.5:1 rather than the decorative hairline treatment. */
  --line-field: #6f787e;

  --font-display: "Source Serif 4", "Source Serif Pro", Georgia, "Times New Roman", serif;
  --font-text: "Public Sans", "Helvetica Neue", Arial, sans-serif;

  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 64px;
  --s-9: 96px;
  --s-10: 128px;

  --r-control: 3px;
  --shell: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 120px;
  --shadow-lift: 0 1px 0 rgba(10, 26, 36, 0.06), 0 18px 40px -28px rgba(10, 26, 36, 0.45);

  /* Header colours live here so the homepage can invert the same shell over the
     dark hero without forking the component. */
  --hdr-fg: var(--ink-900);
  --hdr-nav: var(--slate-700);
  --hdr-muted: var(--slate-500);
  --hdr-accent: var(--brass-700);
  --hdr-line: var(--line);
  --hdr-line-strong: var(--line-strong);
  --hdr-hover: var(--paper-2);
  --hdr-btn-bg: var(--ink-900);
  --hdr-btn-fg: var(--paper);
}

/* 2. Reset and base -------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

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

/* Anchor targets clear the sticky or fixed masthead. */
[id] {
  scroll-margin-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--slate-700);
  font-family: var(--font-text);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

img {
  height: auto;
}

h1, h2, h3, h4, p, figure, blockquote, dl, dd, ul, ol {
  margin: 0;
}

ul, ol {
  padding: 0;
  list-style: none;
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

a {
  color: var(--ink-600);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 140ms ease-out, text-decoration-thickness 140ms ease-out;
}

a:hover {
  color: var(--ink-900);
  text-decoration-thickness: 2px;
}

/* One place decides that a thing is clickable. */
a[href],
button:not(:disabled),
summary,
label[for],
[role="button"] {
  cursor: pointer;
}

:disabled,
[aria-disabled="true"] {
  cursor: not-allowed;
}

:focus-visible {
  outline: 2px solid var(--ink-600);
  outline-offset: 2px;
}

::selection {
  background: var(--ink-900);
  color: var(--paper);
}

[hidden] {
  display: none !important;
}

.skip {
  position: absolute;
  left: var(--gutter);
  top: -60px;
  z-index: 100;
  padding: 12px 20px;
  background: var(--ink-900);
  color: var(--paper);
  text-decoration: none;
  border-radius: var(--r-control);
  transition: top 140ms ease-out;
}

.skip:focus-visible {
  top: 12px;
  color: var(--paper);
}

/* 3. Typography ------------------------------------------------------------ */
.display-1,
.display-2,
.display-3 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink-900);
  text-wrap: balance;
}

.display-1 {
  font-size: clamp(38px, 4.4vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.012em;
  max-width: 22ch;
}

.display-2 {
  font-size: clamp(28px, 3.2vw, 40px);
  line-height: 1.12;
  letter-spacing: -0.008em;
  max-width: 30ch;
}

.display-3 {
  font-size: clamp(21px, 1.9vw, 25px);
  line-height: 1.25;
  max-width: 34ch;
}

.lead {
  font-size: clamp(17px, 1.4vw, 19px);
  line-height: 1.6;
  color: var(--slate-700);
  max-width: 62ch;
}

.prose p + p {
  margin-top: var(--s-4);
}

.prose p {
  max-width: 68ch;
}

.small {
  font-size: 14px;
  line-height: 1.55;
  color: var(--slate-500);
  max-width: 60ch;
}

.clause {
  display: flex;
  align-items: baseline;
  gap: var(--s-2);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate-500);
}

.clause__num {
  color: var(--brass-700);
  font-variant-numeric: tabular-nums;
}

.section--dark .clause,
.statement .clause {
  color: rgba(250, 247, 241, 0.72);
}

.section--dark .clause__num,
.statement .clause__num {
  color: var(--brass-300);
}

.section--dark .display-1,
.section--dark .display-2,
.section--dark .display-3,
.statement .display-2,
.statement .display-3 {
  color: var(--paper);
}

.section--dark .lead,
.statement .lead {
  color: rgba(250, 247, 241, 0.82);
}

.rule {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 0;
}

.section--dark .rule,
.statement .rule {
  border-top-color: var(--line-dark);
}

/* 4. Shell and grid -------------------------------------------------------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--s-5);
}

.split {
  display: grid;
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}

.split--7-5 {
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
}

.split--5-7 {
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
}

.split--6-6 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.split--align-end {
  align-items: end;
}

.schedule {
  display: grid;
  grid-template-columns: minmax(120px, 168px) minmax(0, 1fr);
  gap: 0 clamp(24px, 4vw, 56px);
}

.schedule__body > * + * {
  margin-top: var(--s-5);
}

.schedule__head {
  display: grid;
  gap: var(--s-4);
  padding-top: var(--s-2);
}

.schedule--head {
  margin-bottom: clamp(32px, 4vw, 56px);
}

.stack-4 > * + * { margin-top: var(--s-4); }
.stack-5 > * + * { margin-top: var(--s-5); }
.stack-6 > * + * { margin-top: var(--s-6); }
.stack-7 > * + * { margin-top: var(--s-7); }

/* 5. Header, navigation, panel --------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--paper);
  border-bottom: 1px solid transparent;
  transition: background-color 140ms ease-out, border-color 140ms ease-out,
    box-shadow 140ms ease-out;
}

.site-header.is-scrolled {
  background: rgba(250, 247, 241, 0.97);
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-lift);
}

/* Homepage only: the masthead floats over the full-bleed hero, then returns to
   the paper treatment the moment the page moves. */
.site-header--overlay {
  position: fixed;
  inset: 0 0 auto 0;
  background: transparent;
}

.site-header--overlay:not(.is-scrolled) {
  --hdr-fg: var(--paper);
  --hdr-nav: rgba(250, 247, 241, 0.88);
  --hdr-muted: rgba(250, 247, 241, 0.74);
  --hdr-accent: var(--brass-300);
  --hdr-line: rgba(250, 247, 241, 0.22);
  --hdr-line-strong: rgba(250, 247, 241, 0.42);
  --hdr-hover: rgba(250, 247, 241, 0.14);
  --hdr-btn-bg: var(--paper);
  --hdr-btn-fg: var(--ink-900);
}

.site-header--overlay:not(.is-scrolled) :focus-visible {
  outline-color: var(--brass-300);
}

.site-header--overlay:not(.is-scrolled) .btn--primary:hover {
  background: var(--brass-300);
  color: var(--ink-900);
}

.utility {
  border-bottom: 1px solid var(--hdr-line);
}

.utility__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  min-height: 38px;
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: var(--hdr-muted);
}

.utility__loc {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
  font-size: 11.5px;
}

.utility a {
  color: var(--hdr-nav);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
}

.utility a:hover {
  color: var(--hdr-fg);
  border-bottom-color: var(--hdr-accent);
}

.masthead__inner {
  display: flex;
  align-items: center;
  gap: var(--s-5);
  min-height: 82px;
}

.wordmark {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-decoration: none;
  color: var(--hdr-fg);
  flex: 0 0 auto;
}

.wordmark:hover {
  color: var(--hdr-fg);
}

.wordmark__mj {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 27px;
  line-height: 1;
  letter-spacing: 0.005em;
}

.wordmark__amp {
  color: var(--hdr-accent);
  padding-inline: 1px;
}

.wordmark__rest {
  font-size: 9.5px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--hdr-muted);
}

.wordmark__co {
  display: block;
  font-size: 8.5px;
  letter-spacing: 0.16em;
  color: var(--hdr-accent);
}

.primary-nav {
  margin-left: auto;
}

.primary-nav__list {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.2vw, 34px);
}

.primary-nav a {
  position: relative;
  display: inline-block;
  padding: 10px 0;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--hdr-nav);
  text-decoration: none;
}

.primary-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 4px;
  height: 1px;
  background: var(--hdr-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease-out;
}

.primary-nav a:hover {
  color: var(--hdr-fg);
}

.primary-nav a:hover::after,
.primary-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.primary-nav a[aria-current="page"] {
  color: var(--hdr-fg);
  font-weight: 600;
}

.masthead__actions {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  margin-left: var(--s-2);
}

.masthead .btn--primary {
  background: var(--hdr-btn-bg);
  color: var(--hdr-btn-fg);
}

.menu-btn {
  display: none;
  align-items: center;
  gap: var(--s-2);
  min-height: 44px;
  min-width: 44px;
  padding: 10px 14px;
  background: transparent;
  border: 1px solid var(--hdr-line-strong);
  border-radius: var(--r-control);
  color: var(--hdr-fg);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 140ms ease-out, border-color 140ms ease-out;
}

.menu-btn:hover {
  background: var(--hdr-hover);
  border-color: var(--hdr-fg);
}

.menu-btn svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  stroke-width: 1.6;
  fill: none;
}

/* panel */
.panel {
  width: min(420px, 92vw);
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  margin: 0 0 0 auto;
  padding: 0;
  border: 0;
  border-left: 1px solid var(--line);
  background: var(--paper);
  color: var(--slate-700);
}

.panel::backdrop {
  background: rgba(10, 26, 36, 0.42);
}

.panel[open] {
  animation: panel-in 200ms cubic-bezier(0.2, 0.6, 0.2, 1);
}

.panel__inner {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: var(--s-5) var(--s-5) var(--s-7);
  overflow-y: auto;
}

.panel__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  padding-bottom: var(--s-5);
  border-bottom: 1px solid var(--line);
}

.panel__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-control);
  color: var(--ink-900);
  cursor: pointer;
}

.panel__close:hover {
  background: var(--paper-2);
}

.panel__close svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  stroke-width: 1.6;
  fill: none;
}

.panel__nav {
  padding-block: var(--s-5);
}

.panel__nav a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s-4);
  min-height: 52px;
  padding-block: 14px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: 21px;
  color: var(--ink-900);
  text-decoration: none;
}

.panel__nav a span {
  font-family: var(--font-text);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate-500);
  font-variant-numeric: tabular-nums;
}

.panel__nav a[aria-current="page"] {
  color: var(--brass-700);
}

.panel__foot {
  margin-top: auto;
  padding-top: var(--s-5);
  display: grid;
  gap: var(--s-4);
  font-size: 14px;
}

.panel__foot .clause {
  margin-bottom: var(--s-1);
}

/* 6. Buttons, links, media ------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  min-height: 48px;
  padding: 14px 26px;
  border: 1px solid transparent;
  border-radius: var(--r-control);
  font-family: var(--font-text);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 140ms ease-out, color 140ms ease-out,
    border-color 140ms ease-out, transform 140ms ease-out;
}

.btn--primary {
  background: var(--ink-900);
  color: var(--paper);
}

.btn--primary:hover {
  background: var(--ink-700);
  color: var(--paper);
}

.btn--primary:active {
  transform: translateY(1px);
}

.btn--secondary {
  background: transparent;
  border-color: var(--ink-900);
  color: var(--ink-900);
}

.btn--secondary:hover {
  background: var(--ink-900);
  color: var(--paper);
}

.btn--secondary:active {
  transform: translateY(1px);
}

.section--dark .btn--secondary,
.statement .btn--secondary {
  border-color: rgba(250, 247, 241, 0.32);
  color: var(--paper);
}

.section--dark .btn--secondary:hover,
.statement .btn--secondary:hover {
  background: var(--paper);
  border-color: var(--paper);
  color: var(--ink-900);
}

.btn[disabled],
.btn[aria-disabled="true"] {
  opacity: 0.4;
  cursor: not-allowed;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-900);
  text-decoration: none;
  border-bottom: 1px solid var(--brass-500);
  padding-bottom: 2px;
}

.link-arrow svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  stroke-width: 1.6;
  fill: none;
  transition: transform 160ms ease-out;
}

.link-arrow:hover {
  color: var(--brass-700);
}

.link-arrow:hover svg {
  transform: translateX(3px);
}

.section--dark .link-arrow,
.statement .link-arrow {
  color: var(--paper);
  border-bottom-color: var(--brass-300);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-5) var(--s-6);
}

.media {
  margin: 0;
}

.media__frame {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--paper-2);
}

.media__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media--4x3 .media__frame { aspect-ratio: 4 / 3; }
.media--4x5 .media__frame { aspect-ratio: 4 / 5; }
.media--3x4 .media__frame { aspect-ratio: 3 / 4; }
.media--1x1 .media__frame { aspect-ratio: 1 / 1; }
.media--16x9 .media__frame { aspect-ratio: 16 / 9; }
.media--5x4 .media__frame { aspect-ratio: 5 / 4; }

.media__caption {
  margin-top: var(--s-3);
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--slate-500);
  max-width: 46ch;
}

.section--dark .media__frame,
.statement .media__frame {
  border-color: var(--line-dark);
}

/* 7. Schedule rows and lists ----------------------------------------------- */
.index-list {
  border-top: 1px solid var(--line);
}

.index-row {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: var(--s-4) clamp(24px, 4vw, 56px);
  padding-block: clamp(22px, 2.4vw, 30px);
  border-bottom: 1px solid var(--line);
}

.index-row__key {
  display: flex;
  align-items: baseline;
  gap: var(--s-3);
  font-family: var(--font-display);
  font-size: clamp(20px, 1.7vw, 23px);
  font-weight: 500;
  line-height: 1.25;
  color: var(--ink-900);
}

.index-row__num {
  font-family: var(--font-text);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--brass-700);
  font-variant-numeric: tabular-nums;
  padding-top: 4px;
}

.index-row__text {
  color: var(--slate-700);
  max-width: 62ch;
  font-size: 15.5px;
}

.index-row__text + .index-row__text {
  margin-top: var(--s-2);
}

.section--dark .index-list,
.section--dark .index-row,
.statement .index-list,
.statement .index-row {
  border-color: var(--line-dark);
}

.section--dark .index-row__key,
.statement .index-row__key {
  color: var(--paper);
}

.section--dark .index-row__num,
.statement .index-row__num {
  color: var(--brass-300);
}

.section--dark .index-row__text,
.statement .index-row__text {
  color: rgba(250, 247, 241, 0.78);
}

/* service entries: name, summary, optional link */
.entry {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 6fr) minmax(0, 3fr);
  gap: var(--s-4) clamp(24px, 4vw, 56px);
  padding-block: clamp(26px, 3vw, 38px);
  border-top: 1px solid var(--line);
  scroll-margin-top: calc(var(--header-h) + 24px);
}

.entry:last-of-type {
  border-bottom: 1px solid var(--line);
}

.entry__id {
  display: flex;
  align-items: baseline;
  gap: var(--s-3);
  font-family: var(--font-display);
  font-size: clamp(21px, 1.9vw, 26px);
  font-weight: 500;
  line-height: 1.2;
  color: var(--ink-900);
}

/* feature: a service that earns an image and a wider body */
.feature {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  padding-block: clamp(28px, 3.4vw, 44px);
  border-top: 1px solid var(--line);
  scroll-margin-top: calc(var(--header-h) + 24px);
}

.feature:last-of-type {
  border-bottom: 1px solid var(--line);
}

.feature__body {
  display: grid;
  gap: var(--s-4);
  align-content: center;
}

.feature__body p {
  max-width: 62ch;
  font-size: 15.5px;
}

.entry__num {
  font-family: var(--font-text);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--brass-700);
  font-variant-numeric: tabular-nums;
}

.entry__body p {
  max-width: 64ch;
  font-size: 15.5px;
}

.entry__body p + p {
  margin-top: var(--s-3);
}

.entry__aside {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--slate-500);
  border-left: 1px solid var(--line);
  padding-left: var(--s-4);
}

.entry__aside strong {
  display: block;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brass-700);
  margin-bottom: var(--s-2);
}

/* ticker: the five service categories, as a slow band under the hero */
.ticker-section {
  border-block: 1px solid var(--line);
  background: var(--paper);
}

.ticker {
  display: block;
}

.ticker__viewport {
  overflow: hidden;
  padding-block: 17px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}

.ticker__track {
  display: flex;
  width: max-content;
}

.ticker__list {
  display: flex;
  gap: 40px;
  padding-right: 40px;
}

.ticker__item {
  display: flex;
  align-items: center;
  gap: 40px;
  white-space: nowrap;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-900);
}

.ticker__item::after {
  content: "";
  flex: none;
  width: 5px;
  height: 5px;
  background: var(--brass-500);
}

@keyframes ticker-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

html.js .ticker__track {
  animation: ticker-scroll 60s linear infinite;
}

.ticker:hover .ticker__track {
  animation-play-state: paused;
}

/* ordered steps */
.steps {
  counter-reset: step;
  border-top: 1px solid var(--line);
}

.step {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 7fr);
  gap: var(--s-4) clamp(24px, 4vw, 56px);
  padding-block: clamp(22px, 2.6vw, 32px);
  border-bottom: 1px solid var(--line);
}

.step__name {
  display: flex;
  align-items: baseline;
  gap: var(--s-3);
  font-family: var(--font-display);
  font-size: clamp(20px, 1.7vw, 23px);
  color: var(--ink-900);
  line-height: 1.25;
}

.step__num {
  font-family: var(--font-text);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--brass-700);
  font-variant-numeric: tabular-nums;
}

.step__body p {
  max-width: 62ch;
  font-size: 15.5px;
}

/* 8. Sections -------------------------------------------------------------- */
.section {
  padding-block: clamp(56px, 7vw, 96px);
}

.section--generous {
  padding-block: clamp(64px, 9vw, 128px);
}

.section--tight {
  padding-block: clamp(44px, 5vw, 64px);
}

.section--paper2 {
  background: var(--paper-2);
}

.section--dark {
  background: var(--ink-900);
  color: rgba(250, 247, 241, 0.82);
}

.section--toprule {
  border-top: 1px solid var(--line);
}

.section__head {
  display: grid;
  gap: var(--s-4);
  margin-bottom: clamp(32px, 4vw, 56px);
}

.section__head--split {
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  align-items: end;
  gap: clamp(24px, 4vw, 56px);
}

.section__head--split .section__head-copy {
  display: grid;
  gap: var(--s-4);
}

/* hero: full-height dark image slider (homepage only) */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--ink-900);
  color: var(--paper);
  isolation: isolate;
}

.hero--slider {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 700ms ease-out;
}

.hero__slide.is-active {
  opacity: 1;
}

.hero__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* The scrim guarantees paper text at 5.9:1 even over a pure white pixel under
   its lightest stop, so headlines stay legible whatever the photograph does. */
.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(10, 26, 36, 0.9) 0%,
    rgba(10, 26, 36, 0.7) 38%,
    rgba(10, 26, 36, 0.78) 66%,
    rgba(10, 26, 36, 0.97) 100%
  );
}

.hero--slider .hero__inner {
  position: relative;
  z-index: 2;
  margin-block: auto;
  padding-top: calc(var(--header-h) + clamp(24px, 6vh, 72px));
  padding-bottom: clamp(40px, 7vh, 88px);
}

.hero__copy {
  display: grid;
  gap: var(--s-5);
  align-content: start;
  max-width: 46rem;
}

.hero--slider .display-1 {
  max-width: 22ch;
  color: var(--paper);
}

.hero__lead {
  font-size: clamp(16.5px, 1.35vw, 19px);
  line-height: 1.6;
  color: rgba(250, 247, 241, 0.86);
  max-width: 52ch;
}

.hero--slider .btn--primary {
  background: var(--paper);
  color: var(--ink-900);
}

.hero--slider .btn--primary:hover {
  background: var(--brass-300);
  color: var(--ink-900);
}

.hero--slider .link-arrow {
  color: var(--paper);
  border-bottom-color: var(--brass-300);
}

.hero--slider .link-arrow:hover {
  color: var(--brass-300);
}

/* controls share one baseline: slide index, scroll cue, play state */
.hero__bar {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: end;
  gap: var(--s-4) var(--s-5);
  padding-bottom: clamp(20px, 3.5vh, 40px);
}

.slider-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-4);
  justify-self: start;
}

.slider-nav__item {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-height: 44px;
  padding: 10px 2px;
  background: none;
  border: 0;
  border-bottom: 1px solid rgba(250, 247, 241, 0.3);
  color: rgba(250, 247, 241, 0.74);
  font-family: var(--font-text);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 140ms ease-out, border-color 140ms ease-out;
}

.slider-nav__item:hover {
  color: var(--paper);
  border-bottom-color: var(--paper);
}

.slider-nav__item[aria-current="true"] {
  color: var(--paper);
  border-bottom: 2px solid var(--brass-300);
}

.slider-nav__num {
  font-variant-numeric: tabular-nums;
  color: var(--brass-300);
}

.scroll-cue {
  justify-self: center;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 4px 12px;
  color: rgba(250, 247, 241, 0.82);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
}

.scroll-cue:hover {
  color: var(--paper);
}

.scroll-cue__line {
  position: relative;
  display: block;
  width: 1px;
  height: 44px;
  background: rgba(250, 247, 241, 0.26);
  overflow: hidden;
}

.scroll-cue__line::after {
  content: "";
  position: absolute;
  left: 0;
  top: -16px;
  width: 1px;
  height: 16px;
  background: var(--brass-300);
  animation: cue-drop 2.2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes cue-drop {
  0% {
    top: -16px;
  }
  65%,
  100% {
    top: 46px;
  }
}

/* page header for inner pages */
.page-head {
  padding-block: clamp(40px, 5vw, 68px) clamp(28px, 3.4vw, 44px);
  border-bottom: 1px solid var(--line);
}

.page-head__inner {
  display: grid;
  gap: var(--s-5);
}

.page-head .display-1 {
  max-width: 20ch;
}

.trail {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-2);
  font-size: 12.5px;
  color: var(--slate-500);
}

.trail a {
  color: var(--slate-700);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.trail a:hover {
  border-bottom-color: var(--brass-500);
}

.trail__sep {
  color: var(--brass-700);
}

.trail [aria-current="page"] {
  color: var(--ink-900);
}

/* statement block */
.statement {
  background: var(--ink-900);
  color: rgba(250, 247, 241, 0.82);
  padding-block: clamp(56px, 7vw, 104px);
}

.statement__head {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: end;
  margin-bottom: clamp(32px, 4vw, 56px);
}

.clauses {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 48px);
  border-top: 1px solid var(--line-dark);
  padding-top: var(--s-6);
}

.clause-card {
  display: grid;
  gap: var(--s-3);
  align-content: start;
}

.clause-card__num {
  font-family: var(--font-text);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--brass-300);
  font-variant-numeric: tabular-nums;
}

.clause-card h3 {
  font-family: var(--font-display);
  font-size: clamp(21px, 1.8vw, 25px);
  font-weight: 500;
  line-height: 1.25;
  color: var(--paper);
}

.clause-card p {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(250, 247, 241, 0.78);
}

/* closing action */
.action {
  padding-block: clamp(64px, 8vw, 112px);
  text-align: center;
}

.action__inner {
  display: grid;
  justify-items: center;
  gap: var(--s-5);
}

.action .display-2 {
  max-width: 24ch;
}

.action p {
  max-width: 56ch;
}

/* aside note */
.note {
  border-left: 2px solid var(--brass-500);
  padding-left: var(--s-4);
  font-size: 14px;
  line-height: 1.6;
  color: var(--slate-500);
  max-width: 62ch;
}

.note strong {
  color: var(--ink-900);
  font-weight: 600;
}

/* 9. Forms ----------------------------------------------------------------- */
.form {
  display: grid;
  gap: var(--s-5);
}

.field {
  display: grid;
  gap: var(--s-2);
}

.field__label {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink-900);
}

.field__hint {
  font-size: 13px;
  color: var(--slate-500);
}

.field__control {
  width: 100%;
  min-height: 52px;
  padding: 14px 16px;
  background: var(--white);
  border: 1px solid var(--line-field);
  border-radius: var(--r-control);
  font-size: 16px;
  line-height: 1.4;
  color: var(--slate-700);
  transition: border-color 140ms ease-out, outline-color 140ms ease-out;
}

textarea.field__control {
  min-height: 148px;
  resize: vertical;
}

.field__control::placeholder {
  color: var(--slate-500);
  opacity: 1;
}

.field__control:hover {
  border-color: var(--slate-500);
}

.field__control:focus {
  border-color: var(--ink-600);
  outline: 2px solid var(--ink-600);
  outline-offset: 2px;
}

.field__control[aria-invalid="true"] {
  border-color: var(--danger);
}

.field__control[aria-invalid="true"]:focus {
  outline-color: var(--danger);
}

.field__error {
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--danger);
  font-weight: 500;
}

.field__error:empty {
  display: none;
}

.form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-5);
}

.form__grid .field--full {
  grid-column: 1 / -1;
}

.form__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-4) var(--s-5);
  padding-top: var(--s-2);
}

.form__note {
  font-size: 13px;
  color: var(--slate-500);
  max-width: 44ch;
}

.form-status {
  margin-top: var(--s-5);
  padding-top: var(--s-4);
  border-top: 1px solid var(--line);
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--confirm);
  max-width: 62ch;
}

.form-status:empty {
  display: none;
  border: 0;
  margin: 0;
  padding: 0;
}

.form-status[data-state="error"] {
  color: var(--danger);
}

.form-panel {
  background: var(--white);
  border: 1px solid var(--line);
  padding: clamp(24px, 3vw, 40px);
}

.form-panel__head {
  display: grid;
  gap: var(--s-2);
  margin-bottom: var(--s-6);
  padding-bottom: var(--s-4);
  border-bottom: 1px solid var(--line);
}

.form-panel__head h2 {
  font-family: var(--font-display);
  font-size: clamp(24px, 2.2vw, 30px);
  font-weight: 500;
  line-height: 1.2;
  color: var(--ink-900);
}

.fieldset-reset {
  border: 0;
  padding: 0;
  margin: 0;
}

/* contact block */
.contact-list {
  display: grid;
  gap: var(--s-5);
}

.contact-list__item {
  display: grid;
  gap: 6px;
  padding-top: var(--s-4);
  border-top: 1px solid var(--line);
}

.contact-list__label {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brass-700);
}

.contact-list__value {
  font-size: 16px;
  line-height: 1.6;
  color: var(--slate-700);
  max-width: 40ch;
}

.contact-list__value a {
  color: var(--ink-600);
}

.map {
  position: relative;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  background: var(--paper-2);
}

.map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* 10. Footer --------------------------------------------------------------- */
.site-footer {
  background: var(--ink-900);
  color: rgba(250, 247, 241, 0.78);
  padding-top: clamp(48px, 6vw, 88px);
}

.site-footer a {
  color: rgba(250, 247, 241, 0.86);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
}

.site-footer a:hover {
  color: var(--paper);
  border-bottom-color: var(--brass-300);
}

.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 3fr) minmax(0, 4fr);
  gap: clamp(32px, 4vw, 64px);
  padding-bottom: clamp(40px, 5vw, 64px);
}

.footer__brand {
  display: grid;
  gap: var(--s-5);
  align-content: start;
}

.wordmark--footer {
  color: var(--paper);
}

.wordmark--footer:hover {
  color: var(--paper);
}

.wordmark--footer .wordmark__amp {
  color: var(--brass-300);
}

.wordmark--footer .wordmark__rest {
  color: rgba(250, 247, 241, 0.7);
}

.wordmark--footer .wordmark__co {
  color: var(--brass-300);
}

.footer__statement {
  font-size: 15px;
  line-height: 1.65;
  color: rgba(250, 247, 241, 0.72);
  max-width: 42ch;
}

.footer__col h2 {
  font-family: var(--font-text);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brass-300);
  margin-bottom: var(--s-4);
}

.footer__col ul {
  display: grid;
  gap: var(--s-3);
  font-size: 15px;
}

.footer__address {
  font-style: normal;
  font-size: 15px;
  line-height: 1.7;
  color: rgba(250, 247, 241, 0.78);
  max-width: 34ch;
}

.footer__contact {
  display: grid;
  gap: var(--s-4);
  justify-items: start;
  font-size: 15px;
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: var(--s-3) var(--s-5);
  padding-block: var(--s-5) var(--s-6);
  border-top: 1px solid var(--line-dark);
  font-size: 13px;
  color: rgba(250, 247, 241, 0.62);
}

.footer__legal {
  margin: 0;
}

/* 11. Motion --------------------------------------------------------------- */
@keyframes panel-in {
  from {
    transform: translateX(16px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

html.js [data-reveal] {
  opacity: 0;
  transform: translateY(12px);
}

html.js [data-reveal].is-in {
  opacity: 1;
  transform: none;
  transition: opacity 420ms cubic-bezier(0.2, 0.6, 0.2, 1),
    transform 420ms cubic-bezier(0.2, 0.6, 0.2, 1);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  html.js [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .scroll-cue__line::after {
    animation: none;
    top: 14px;
  }

  .ticker__track {
    animation: none;
    transform: none;
    flex-wrap: wrap;
  }

  .ticker__viewport {
    overflow: visible;
    -webkit-mask-image: none;
    mask-image: none;
  }

  .ticker__list[aria-hidden="true"] {
    display: none;
  }
}

/* 12. Responsive ----------------------------------------------------------- */
@media (max-width: 1199px) {
  .lead {
    max-width: 58ch;
  }
}

@media (max-width: 1023px) {
  :root {
    --header-h: 70px;
  }

  .utility {
    display: none;
  }

  .masthead__inner {
    min-height: 70px;
    gap: var(--s-4);
  }

  .primary-nav {
    display: none;
  }

  .menu-btn {
    display: inline-flex;
  }

  .masthead__actions {
    margin-left: auto;
  }

  .split--7-5,
  .split--5-7,
  .statement__head {
    grid-template-columns: minmax(0, 1fr);
  }

  .schedule {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--s-4);
  }

  .schedule__head {
    display: flex;
    align-items: baseline;
    gap: var(--s-4);
    padding-top: 0;
  }

  .clauses {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--s-6);
  }

  .entry,
  .index-row,
  .step {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--s-3);
  }

  .feature {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
  }

  .entry__aside {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding-left: 0;
    padding-top: var(--s-3);
  }

  .footer__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--s-6);
  }

  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 767px) {
  :root {
    --header-h: 64px;
  }

  .masthead__inner {
    min-height: 64px;
  }

  .wordmark__mj {
    font-size: 23px;
  }

  .masthead__actions .btn {
    display: none;
  }

  .form__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .form__foot {
    flex-direction: column;
    align-items: stretch;
  }

  .form__foot .btn {
    width: 100%;
  }

  .actions {
    flex-direction: column;
    align-items: stretch;
    gap: var(--s-3);
  }

  .actions .btn,
  .actions .link-arrow {
    width: 100%;
    justify-content: center;
  }

  .display-1 {
    max-width: 22ch;
  }

  .media--3x4 .media__frame {
    aspect-ratio: 4 / 5;
  }

  .trail {
    font-size: 12px;
  }

  .form-panel {
    padding: 20px;
  }
}

@media (max-width: 379px) {
  .display-1 {
    font-size: 32px;
  }

  .display-2 {
    font-size: 27px;
  }

  .panel__nav a {
    font-size: 19px;
  }
}

/* 13. Spacing utilities ---------------------------------------------------- */
.u-mt-3 { margin-top: var(--s-3); }
.u-mt-4 { margin-top: var(--s-4); }
.u-mt-5 { margin-top: var(--s-5); }
.u-mt-6 { margin-top: var(--s-6); }
.u-mt-7 { margin-top: var(--s-7); }
.u-mb-5 { margin-bottom: var(--s-5); }

/* 14. Variants declared after the responsive layer so they win ------------- */
.clauses--four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 1023px) {
  .clauses--four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 559px) {
  .clauses--four {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* 15. Hero slider at small sizes ------------------------------------------- */
@media (max-width: 1023px) {
  .hero--slider .hero__inner {
    padding-top: calc(var(--header-h) + clamp(20px, 5vh, 48px));
  }
}

@media (max-width: 767px) {
  .hero__bar {
    grid-template-columns: minmax(0, 1fr);
    row-gap: var(--s-5);
  }

  .slider-nav {
    justify-self: start;
    gap: var(--s-3);
  }

  .scroll-cue {
    justify-self: center;
  }

  .hero__copy {
    max-width: none;
  }
}

@media (max-width: 699px) {
  .slider-nav__label {
    display: none;
  }
}

@media (max-width: 479px) {
  .hero--slider .display-1 {
    max-width: 18ch;
  }

  .scroll-cue__line {
    height: 34px;
  }
}
