@charset "UTF-8";
/* ==========================================================================
   BUILT & LAUNCHED — The Registry of Home-Built Boats
   Design system and application stylesheet.

   Mobile-first. Every breakpoint is min-width. Sections:

     01  Tokens
     02  Reset & base
     03  Typography
     04  Layout
     05  Labels, rules & registry marks
     06  Buttons
     07  Cards & photography
     08  Badges & status
     09  Forms
     10  Alerts, flashes & empty states
     11  Masthead
     12  Footer
     13  Hero & landing
     14  Utilities
     15  Motion, print & forced colours
   ========================================================================== */

/* --------------------------------------------------------------------------
   01  TOKENS
   The palette is closed. Nothing outside these nine colours (and their
   documented alpha variants) may be introduced anywhere in the application.
   -------------------------------------------------------------------------- */

:root {
  /* Brand palette */
  --navy:            #082A45;   /* Deep Registry Navy — nav, headings, dark surfaces */
  --navy-secondary:  #123D5A;   /* Maritime Navy — secondary surfaces, hovers */
  --brass:           #B8873B;   /* Antique Brass — hairlines, accents, icons */
  --gold:            #D0A35A;   /* Warm Gold — small highlights */
  --ivory:           #F7F3E8;   /* Chart Ivory — page background */
  --cream:           #FFFDF7;   /* Canvas Cream — cards, content surfaces */
  --weathered-gray:  #68737A;   /* Weathered Gray — metadata */
  --ink:             #17232B;   /* Ink — body text */
  --wood:            #80552F;   /* Natural Wood — rare construction accent */

  /* A darker shade of Antique Brass, same hue, for brass-coloured TEXT on the
     ivory and cream surfaces. Antique Brass itself measures 3.2:1 against
     cream, below the 4.5:1 minimum for readable text; this shade measures
     5.1:1. Brass proper is still used for every rule, border and icon, where
     contrast minimums do not apply. Never use this shade on navy. */
  --brass-text:      #8F6828;

  /* Likewise a slightly deeper Weathered Gray, for metadata TEXT. The brand
     gray measures 4.38:1 against Chart Ivory — just under the readable
     minimum — while this shade measures 4.91:1. Weathered Gray proper is
     still correct for icons, rules and anything non-textual. */
  --gray-text:       #5F6A71;

  /* Derived transparencies — the only permitted colour variations */
  --brass-hairline:  rgba(184, 135, 59, 0.34);
  --brass-soft:      rgba(184, 135, 59, 0.14);
  --navy-hairline:   rgba(8, 42, 69, 0.14);
  --navy-veil:       rgba(8, 42, 69, 0.62);
  --ink-muted:       rgba(23, 35, 43, 0.72);
  --ivory-muted:     rgba(247, 243, 232, 0.78);
  --ivory-faint:     rgba(247, 243, 232, 0.52);

  /* Neutral shading used to deepen navy surfaces (the registry bar, the
     search field). Black at low alpha darkens the brand navy without
     introducing a tenth colour. */
  --shade:           rgba(0, 0, 0, 0.15);
  --shade-strong:    rgba(0, 0, 0, 0.30);

  /* Typography */
  --font-serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
                "Helvetica Neue", Arial, sans-serif;

  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-lg:   1.125rem;
  --text-xl:   1.375rem;

  --label-size:    0.6875rem;
  --label-tracking: 0.16em;

  /* Spacing — a 4px scale */
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.5rem;
  --space-6:  2rem;
  --space-7:  2.75rem;
  --space-8:  3.5rem;
  --space-9:  5rem;
  --space-10: 7rem;

  /* Structure */
  --container:        76rem;
  --container-narrow: 46rem;
  --container-wide:   92rem;
  --gutter:           1.25rem;

  --radius:    2px;   /* archival, not app-like */
  --radius-lg: 3px;

  --shadow-card:  0 1px 2px rgba(8, 42, 69, 0.05), 0 8px 24px -18px rgba(8, 42, 69, 0.45);
  --shadow-lift:  0 2px 4px rgba(8, 42, 69, 0.07), 0 20px 40px -24px rgba(8, 42, 69, 0.5);
  --shadow-header: 0 1px 0 var(--brass-hairline), 0 10px 30px -24px rgba(8, 42, 69, 0.6);

  --transition: 180ms ease;
}

@media (min-width: 48em) {
  :root { --gutter: 2rem; }
}

/* --------------------------------------------------------------------------
   02  RESET & BASE
   -------------------------------------------------------------------------- */

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

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--ivory);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* A whisper of chart paper: two hairline grids at very low opacity, fixed so
   the page reads as printed stock rather than a scrolling texture. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(0deg,  var(--brass-soft) 0 1px, transparent 1px 96px),
    repeating-linear-gradient(90deg, var(--brass-soft) 0 1px, transparent 1px 96px);
  opacity: 0.5;
}

.site-main { flex: 1 0 auto; }

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

a {
  color: var(--navy-secondary);
  text-decoration-color: var(--brass-hairline);
  text-underline-offset: 0.18em;
  transition: color var(--transition), text-decoration-color var(--transition);
}
a:hover { color: var(--brass-text); text-decoration-color: var(--brass); }

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

hr {
  border: 0;
  border-top: 1px solid var(--brass-hairline);
  margin: var(--space-6) 0;
}

::selection { background: var(--gold); color: var(--navy); }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  padding: 0.75rem 1.25rem;
  background: var(--navy);
  color: var(--ivory);
  font-size: var(--text-sm);
}
.skip-link:focus {
  left: 0;
  color: var(--ivory);
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* --------------------------------------------------------------------------
   03  TYPOGRAPHY
   Serif for the registry's voice — vessel names, headings, numbers.
   Sans for the interface — navigation, forms, metadata.
   -------------------------------------------------------------------------- */

h1, h2, h3, h4,
.display, .vessel-name {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.15;
  color: var(--navy);
  margin: 0 0 var(--space-4);
  letter-spacing: 0.005em;
}

h1, .display {
  font-size: clamp(2rem, 7vw, 3.25rem);
  font-weight: 400;
}
.display--lg { font-size: clamp(2.5rem, 9vw, 4.5rem); }
.display--sm { font-size: clamp(1.75rem, 5vw, 2.5rem); }

h2 { font-size: clamp(1.625rem, 4.5vw, 2.25rem); font-weight: 400; }
h3 { font-size: clamp(1.25rem, 3vw, 1.5rem); }
h4 { font-size: var(--text-lg); }

p { margin: 0 0 var(--space-4); }
p:last-child { margin-bottom: 0; }

.lede {
  font-size: var(--text-lg);
  line-height: 1.75;
  color: var(--ink-muted);
}
@media (min-width: 48em) {
  .lede { font-size: 1.25rem; }
}

.prose { max-width: 38rem; }
.prose p { color: var(--ink-muted); }

/* Editorial small caps used for pull quotes and section intros. */
.editorial-note {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: var(--text-lg);
  color: var(--weathered-gray);
}

/* Registry numbers and other figures set as records, not as body copy. */
.registry-no {
  font-family: var(--font-serif);
  font-size: var(--text-lg);
  letter-spacing: 0.1em;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
}

/* --------------------------------------------------------------------------
   04  LAYOUT
   -------------------------------------------------------------------------- */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: var(--container-narrow); }
.container--wide   { max-width: var(--container-wide); }

.section        { padding-block: var(--space-8); }
.section--tight { padding-block: var(--space-7); }
.section--loose { padding-block: var(--space-9); }

@media (min-width: 48em) {
  .section        { padding-block: var(--space-9); }
  .section--tight { padding-block: var(--space-8); }
  .section--loose { padding-block: var(--space-10); }
}

.section--navy {
  background: var(--navy);
  color: var(--ivory-muted);
}
.section--navy h1, .section--navy h2, .section--navy h3 { color: var(--ivory); }

.section--cream { background: var(--cream); }

.section-head {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-bottom: var(--space-6);
}
.section-head__title { margin: 0; }
.section-head__meta {
  font-size: var(--text-sm);
  color: var(--gray-text);
}

@media (min-width: 48em) {
  .section-head {
    flex-direction: row;
    align-items: baseline;
    justify-content: space-between;
    gap: var(--space-5);
  }
}

/* Grid — the workhorse for fleets, galleries and design listings. */
.grid {
  display: grid;
  gap: var(--space-5);
  grid-template-columns: 1fr;
}
@media (min-width: 40em) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 64em) {
  .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.stack > * + * { margin-top: var(--space-4); }
.stack--lg > * + * { margin-top: var(--space-6); }

.cluster {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  align-items: center;
}
.cluster--center { justify-content: center; }

/* --------------------------------------------------------------------------
   05  LABELS, RULES & REGISTRY MARKS
   REGISTRY NO. · BUILDER · DESIGN · LAUNCHED · HAILING PORT · STATUS
   -------------------------------------------------------------------------- */

.label {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: var(--label-size);
  font-weight: 600;
  letter-spacing: var(--label-tracking);
  text-transform: uppercase;
  color: var(--gray-text);
  line-height: 1.4;
}
.label--brass  { color: var(--brass-text); }
.label--navy   { color: var(--navy); }
.label--ivory  { color: var(--ivory-faint); }
.label--footer { color: var(--gold); margin-bottom: var(--space-3); }

/* A label with a brass tick before it — used above section headings. */
.label--marked { position: relative; padding-left: 1.75rem; }
.label--marked::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 1.25rem;
  height: 1px;
  background: var(--brass);
}

.rule {
  border: 0;
  border-top: 1px solid var(--brass-hairline);
  margin: var(--space-6) 0;
}
.rule--short { width: 4rem; margin-inline: 0; }
.text-center .rule--short { margin-inline: auto; }

/* Double brass rule: the registry's signature divider. */
.rule--double {
  border-top: 1px solid var(--brass);
  position: relative;
  opacity: 0.85;
}
.rule--double::after {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 3px;
  border-top: 1px solid var(--brass-hairline);
}

/* Metadata pairs — the specification blocks throughout the registry. */
.spec-list {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
  margin: 0;
}
.spec-list__item { margin: 0; }
.spec-list__value {
  display: block;
  font-family: var(--font-serif);
  font-size: var(--text-xl);
  color: var(--navy);
  line-height: 1.3;
  margin-top: 0.15rem;
}
.spec-list__value--empty { color: var(--weathered-gray); font-style: italic; }

/* --------------------------------------------------------------------------
   06  BUTTONS
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  padding: 0.95rem 1.85rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: none;
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--transition), color var(--transition),
              border-color var(--transition), transform var(--transition);
}
.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--ivory);
}
.btn--primary:hover, .btn--primary:focus-visible {
  background: var(--navy-secondary);
  border-color: var(--brass);
  color: var(--cream);
}

.btn--brass {
  background: var(--brass);
  border-color: var(--brass);
  color: var(--navy);
}
.btn--brass:hover, .btn--brass:focus-visible {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy);
}

.btn--outline {
  border-color: var(--brass);
  color: var(--navy);
}
.btn--outline:hover, .btn--outline:focus-visible {
  background: var(--brass);
  color: var(--navy);
}

/* On navy surfaces */
.btn--ghost {
  border-color: var(--brass);
  color: var(--gold);
}
.btn--ghost:hover, .btn--ghost:focus-visible {
  background: var(--brass);
  color: var(--navy);
}

.btn--quiet {
  padding-inline: 0;
  color: var(--gray-text);
}
.btn--quiet:hover { color: var(--brass-text); }

.btn--sm    { padding: 0.7rem 1.15rem; font-size: 0.6875rem; letter-spacing: 0.12em; }
.btn--lg    { padding: 1.1rem 2.4rem; }
.btn--block { display: flex; width: 100%; }

.btn[disabled], .btn[aria-disabled="true"] {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   07  CARDS & PHOTOGRAPHY
   Photographs carry this site. Frames stay quiet: one hairline, one shadow.
   -------------------------------------------------------------------------- */

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--cream);
  border: 1px solid var(--navy-hairline);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: box-shadow var(--transition), border-color var(--transition), transform var(--transition);
}
.card--linked:hover, .card--linked:focus-within {
  border-color: var(--brass-hairline);
  box-shadow: var(--shadow-lift);
  transform: translateY(-2px);
}
.card__body { padding: var(--space-5); }
.card__title {
  font-family: var(--font-serif);
  font-size: var(--text-xl);
  color: var(--navy);
  margin: 0 0 var(--space-2);
}
.card__meta {
  font-size: var(--text-sm);
  color: var(--gray-text);
  margin: 0;
}
.card__footer {
  margin-top: auto;
  padding: var(--space-4) var(--space-5);
  border-top: 1px solid var(--brass-hairline);
  font-size: var(--text-sm);
  color: var(--weathered-gray);
}

/* Whole-card link target without nesting interactive elements. */
.card__link::after {
  content: "";
  position: absolute;
  inset: 0;
}

/* Photograph frames. Ratios are set on the wrapper so images never reflow. */
.photo {
  position: relative;
  overflow: hidden;
  background: var(--navy);
}
.photo::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 0 1px var(--brass-soft);
  pointer-events: none;
}
.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 400ms ease;
}
.card--linked:hover .photo img { transform: scale(1.03); }

.photo--4x3   { aspect-ratio: 4 / 3; }
.photo--3x2   { aspect-ratio: 3 / 2; }
.photo--16x9  { aspect-ratio: 16 / 9; }
.photo--square{ aspect-ratio: 1 / 1; }

/* Placeholder shown before a vessel has photographs. */
.photo--empty {
  display: grid;
  place-items: center;
  background:
    linear-gradient(var(--navy-veil), var(--navy-veil)),
    repeating-linear-gradient(135deg, var(--navy) 0 12px, var(--navy-secondary) 12px 24px);
  color: var(--ivory-faint);
  font-size: var(--label-size);
  letter-spacing: var(--label-tracking);
  text-transform: uppercase;
}

/* Caption set as an archival credit line. */
.photo-caption {
  margin: var(--space-3) 0 0;
  font-size: var(--text-sm);
  color: var(--gray-text);
}
.photo-caption__credit { color: var(--brass-text); }

/* --------------------------------------------------------------------------
   08  BADGES & STATUS
   -------------------------------------------------------------------------- */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  padding: 0.3rem 0.7rem;
  border: 1px solid var(--brass-hairline);
  border-radius: var(--radius);
  background: var(--brass-soft);
  color: var(--navy);
  font-size: var(--label-size);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1.4;
}
.badge--navy  { background: var(--navy); border-color: var(--navy); color: var(--ivory); }
.badge--brass { background: var(--brass); border-color: var(--brass); color: var(--navy); }
.badge--quiet { background: none; color: var(--weathered-gray); }
.badge--wood  { background: none; border-color: var(--wood); color: var(--wood); }

/* The registry stamp: a vessel's number, set as though impressed on the page. */
.registry-stamp {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  padding: 0.6rem 1.1rem;
  border: 1px solid var(--brass);
  border-radius: var(--radius);
  box-shadow: inset 0 0 0 3px var(--cream), inset 0 0 0 4px var(--brass-soft);
  background: var(--cream);
  text-align: center;
}
.registry-stamp__label {
  font-size: 0.5625rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brass-text);
}
.registry-stamp__number {
  font-family: var(--font-serif);
  font-size: var(--text-lg);
  letter-spacing: 0.08em;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
}

/* --------------------------------------------------------------------------
   09  FORMS
   -------------------------------------------------------------------------- */

.field { margin-bottom: var(--space-5); }

.field__label {
  display: block;
  margin-bottom: var(--space-2);
  font-size: var(--label-size);
  font-weight: 600;
  letter-spacing: var(--label-tracking);
  text-transform: uppercase;
  color: var(--navy);
}
.field__required { color: var(--brass); }

.field__hint {
  margin: var(--space-2) 0 0;
  font-size: var(--text-sm);
  color: var(--gray-text);
}

.field__error {
  margin: var(--space-2) 0 0;
  font-size: var(--text-sm);
  color: var(--wood);
  font-weight: 500;
}

.input, .textarea, .select {
  width: 100%;
  padding: 0.8rem 0.95rem;
  border: 1px solid var(--navy-hairline);
  border-radius: var(--radius);
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--text-base);   /* 16px keeps iOS from zooming on focus */
  line-height: 1.5;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.input:focus, .textarea:focus, .select:focus {
  outline: none;
  border-color: var(--brass);
  box-shadow: 0 0 0 3px var(--brass-soft);
}
.input::placeholder, .textarea::placeholder { color: var(--weathered-gray); opacity: 0.75; }

.textarea { min-height: 9rem; resize: vertical; }

.select {
  appearance: none;
  padding-right: 2.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23B8873B' stroke-width='1.3'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.95rem center;
  background-size: 10px 6px;
}

.field--invalid .input,
.field--invalid .textarea,
.field--invalid .select { border-color: var(--wood); }

.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: var(--text-sm);
  color: var(--ink-muted);
}
.checkbox input { margin-top: 0.3rem; accent-color: var(--brass); }

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-4);
  margin-top: var(--space-6);
  padding-top: var(--space-5);
  border-top: 1px solid var(--brass-hairline);
}

/* A form presented as a registry document. */
.form-panel {
  background: var(--cream);
  border: 1px solid var(--navy-hairline);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: var(--space-6) var(--space-5);
}
@media (min-width: 48em) {
  .form-panel { padding: var(--space-7); }
}

/* --------------------------------------------------------------------------
   10  ALERTS, FLASHES & EMPTY STATES
   -------------------------------------------------------------------------- */

.flash-stack { padding-top: var(--space-5); }
.flash-stack .alert + .alert { margin-top: var(--space-3); }

.alert {
  padding: var(--space-4) var(--space-5);
  border: 1px solid var(--brass-hairline);
  border-left-width: 3px;
  border-left-color: var(--brass);
  border-radius: var(--radius);
  background: var(--cream);
  color: var(--ink);
  font-size: var(--text-sm);
}
.alert--success { border-left-color: var(--navy-secondary); }
.alert--error   { border-left-color: var(--wood); }
.alert--warning { border-left-color: var(--gold); }
.alert--info    { border-left-color: var(--brass); }

.alert__title {
  display: block;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.empty-state {
  padding: var(--space-8) var(--space-5);
  border: 1px dashed var(--brass-hairline);
  border-radius: var(--radius);
  background: var(--cream);
  text-align: center;
}
.empty-state__mark {
  display: block;
  width: 2.5rem;
  height: 2.5rem;
  margin: 0 auto var(--space-4);
  border: 1px solid var(--brass-hairline);
  border-radius: 50%;
  position: relative;
}
.empty-state__mark::before,
.empty-state__mark::after {
  content: "";
  position: absolute;
  background: var(--brass-hairline);
}
.empty-state__mark::before { left: 50%; top: 14%; bottom: 14%; width: 1px; transform: translateX(-50%); }
.empty-state__mark::after  { top: 50%; left: 14%; right: 14%; height: 1px; transform: translateY(-50%); }

.empty-state__heading {
  font-size: var(--text-xl);
  margin: 0 0 var(--space-2);
}
.empty-state__message {
  max-width: 30rem;
  margin: 0 auto var(--space-5);
  color: var(--gray-text);
  font-size: var(--text-sm);
}
.empty-state__message:last-child { margin-bottom: 0; }

.debug-detail {
  margin: var(--space-5) 0;
  padding: var(--space-4);
  border: 1px solid var(--brass-hairline);
  background: var(--cream);
  color: var(--ink-muted);
  font-size: var(--text-xs);
  line-height: 1.6;
  text-align: left;
  white-space: pre-wrap;
  word-break: break-word;
  overflow: auto;
  max-height: 22rem;
}

/* --------------------------------------------------------------------------
   11  MASTHEAD
   -------------------------------------------------------------------------- */

.site-header {
  position: relative;
  z-index: 50;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0) 100%),
    var(--navy);
  color: var(--ivory);
  box-shadow: 0 12px 36px -24px rgba(0, 0, 0, 0.78), inset 0 -1px 0 rgba(255, 255, 255, 0.04);
}
.site-header::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(184, 135, 59, 0.7), transparent);
  pointer-events: none;
}

.registry-bar {
  border-bottom: 1px solid rgba(184, 135, 59, 0.24);
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.16), rgba(255, 255, 255, 0.03));
}
.registry-bar__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  min-height: 2.2rem;
  font-size: 0.625rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ivory-faint);
}
.registry-bar__est { color: var(--brass); }
.registry-bar__descriptor { text-align: center; }

@media (min-width: 48em) {
  .registry-bar__inner { justify-content: space-between; }
}

.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding-block: clamp(1rem, 2vw, 1.45rem);
  position: relative;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  text-decoration: none;
  color: inherit;
}
.brand:hover { color: inherit; }
.brand__mark {
  width: 40px;
  height: 40px;
  flex: none;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.2));
}
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ivory);
  white-space: nowrap;
  text-transform: uppercase;
}
.brand__descriptor {
  font-size: 0.56rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brass);
  margin-top: 0.28rem;
  font-weight: 600;
}
.brand:hover .brand__name { color: var(--gold); }

@media (min-width: 40em) {
  .brand__mark { width: 46px; height: 46px; }
  .brand__name { font-size: 1.6rem; }
}

/* Menu button — three brass rules that become a cross when open. */
.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.8rem;
  height: 2.8rem;
  padding: 0;
  border: 1px solid var(--brass-hairline);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(184, 135, 59, 0.16), rgba(8, 42, 69, 0.9));
  color: var(--gold);
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.nav-toggle__bars { display: block; width: 20px; }
.nav-toggle__bars span {
  display: block;
  height: 1px;
  background: currentColor;
  transition: transform var(--transition), opacity var(--transition);
}
.nav-toggle__bars span + span { margin-top: 5px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Mobile drawer */
.masthead__nav {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  padding: var(--space-5) var(--gutter) var(--space-6);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(0, 0, 0, 0.18)), var(--navy);
  border-top: 1px solid var(--brass-hairline);
  box-shadow: 0 18px 40px -20px rgba(0, 0, 0, 0.7);
  max-height: calc(100vh - 100%);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.masthead__nav.is-open { display: block; }

.primary-nav__list {
  list-style: none;
  margin: 0 0 var(--space-5);
  padding: 0;
}
.primary-nav__link {
  display: block;
  padding: 0.9rem 0;
  border-bottom: 1px solid rgba(184, 135, 59, 0.18);
  color: var(--ivory);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
}
.primary-nav__link:hover,
.primary-nav__link:focus-visible { color: var(--gold); }
.primary-nav__link.is-current { color: var(--gold); }

.masthead__actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: var(--space-3);
  flex-wrap: nowrap;
}
.masthead__actions .btn {
  width: 100%;
  white-space: nowrap;
}

.header-search {
  position: relative;
  display: flex;
  align-items: center;
}
.header-search__icon {
  position: absolute;
  left: 0.75rem;
  display: flex;
  color: var(--brass);
  pointer-events: none;
}
.header-search__input {
  width: 100%;
  padding: 0.75rem 0.9rem 0.75rem 2.45rem;
  border: 1px solid rgba(184, 135, 59, 0.34);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.2);
  color: var(--ivory);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 8px 24px -18px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(8px);
}
.header-search__input::placeholder { color: var(--ivory-faint); }
.header-search__input:focus {
  outline: none;
  border-color: var(--brass);
  background: rgba(0, 0, 0, 0.28);
  box-shadow: 0 0 0 3px rgba(184, 135, 59, 0.16);
}
.header-search__input::-webkit-search-cancel-button { filter: invert(1) opacity(0.5); }

.header-link {
  padding: 0;
  border: 0;
  background: none;
  color: var(--ivory-muted);
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}
.header-link:hover, .header-link:focus-visible { color: var(--gold); }
.header-link--admin { color: var(--brass); }

.header-logout { margin: 0; }

/* Desktop masthead */
@media (min-width: 64em) {
  .nav-toggle { display: none; }

  .masthead__nav {
    display: flex !important;
    position: static;
    flex: 1;
    align-items: center;
    justify-content: flex-end;
    gap: var(--space-6);
    padding: 0;
    background: none;
    border: 0;
    box-shadow: none;
    max-height: none;
    overflow: visible;
  }

  .primary-nav__list {
    display: flex;
    align-items: center;
    gap: 0.2rem;
    margin: 0;
  }
  .primary-nav__link {
    position: relative;
    padding: 0.45rem 0.75rem;
    border: 0;
    border-radius: 999px;
    font-size: 0.72rem;
    letter-spacing: 0.16em;
    color: var(--ivory-muted);
    transition: transform var(--transition), background-color var(--transition), color var(--transition);
  }
  .primary-nav__link:hover,
  .primary-nav__link:focus-visible {
    color: var(--ivory);
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-1px);
  }
  .primary-nav__link.is-current {
    color: var(--gold);
    background: rgba(184, 135, 59, 0.16);
  }
  .primary-nav__link::after {
    content: "";
    position: absolute;
    left: 0.75rem; right: 0.75rem; bottom: 0.2rem;
    height: 1px;
    background: var(--brass);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition);
  }
  .primary-nav__link:hover::after,
  .primary-nav__link:focus-visible::after,
  .primary-nav__link.is-current::after { transform: scaleX(1); }

  .masthead__actions {
    flex-direction: row;
    align-items: center;
    gap: 0.7rem;
    flex-wrap: nowrap;
  }
  .masthead__actions .btn {
    width: auto;
    white-space: nowrap;
  }

  .header-search__input {
    width: 12rem;
    transition: width var(--transition), background-color var(--transition), box-shadow var(--transition);
  }
  .header-search__input:focus { width: 16rem; }
}

@media (min-width: 80em) {
  .header-search__input { width: 15rem; }
  .header-search__input:focus { width: 20rem; }
}

/* --------------------------------------------------------------------------
   12  FOOTER
   -------------------------------------------------------------------------- */

.site-footer {
  flex: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(0, 0, 0, 0.18) 100%),
    var(--navy);
  color: var(--ivory-muted);
  border-top: 1px solid rgba(184, 135, 59, 0.26);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 -18px 48px -30px rgba(0, 0, 0, 0.55);
  padding-block: var(--space-8) var(--space-6);
  font-size: var(--text-sm);
}

.site-footer__top {
  display: grid;
  gap: var(--space-7);
  grid-template-columns: 1fr;
  padding-bottom: var(--space-6);
  border-bottom: 1px solid rgba(184, 135, 59, 0.25);
  position: relative;
}
.site-footer__top::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(184, 135, 59, 0.7), transparent);
}

.site-footer__mark {
  width: 48px;
  height: 48px;
  margin-bottom: var(--space-4);
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.24));
}
.site-footer__name {
  font-family: var(--font-serif);
  font-size: 1.68rem;
  color: var(--ivory);
  margin: 0 0 0.35rem;
  letter-spacing: 0.02em;
}
.site-footer__descriptor {
  font-size: 0.625rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass);
  margin: 0 0 var(--space-4);
  font-weight: 600;
}
.site-footer__tagline {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: var(--text-lg);
  color: var(--ivory-muted);
  margin: 0;
  max-width: 28rem;
}

.site-footer__nav h2 {
  margin: 0 0 0.85rem;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ivory);
}
.site-footer__nav ul { list-style: none; margin: 0; padding: 0; }
.site-footer__nav li + li { margin-top: 0.7rem; }
.site-footer__nav a {
  color: var(--ivory-muted);
  text-decoration: none;
  transition: color var(--transition), transform var(--transition);
  display: inline-block;
}
.site-footer__nav a:hover, .site-footer__nav a:focus-visible {
  color: var(--gold);
  transform: translateX(2px);
}

.site-footer__bottom {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding-top: var(--space-5);
  font-size: var(--text-xs);
  color: var(--ivory-faint);
}
.site-footer__est {
  margin: 0;
  letter-spacing: 0.22em;
  color: var(--brass);
  font-weight: 600;
}
.site-footer__copyright { margin: 0; max-width: 40rem; }
.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-footer__legal a {
  color: var(--ivory-faint);
  text-decoration: none;
  transition: color var(--transition);
}
.site-footer__legal a:hover { color: var(--gold); }

@media (min-width: 48em) {
  .site-footer__top { grid-template-columns: 2fr 1fr 1fr; gap: var(--space-8); }
  .site-footer__bottom {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-5);
  }
  .site-footer__copyright { flex: 1; text-align: center; }
}

/* --------------------------------------------------------------------------
   13  HERO & LANDING
   Part 6 replaces the contents of the landing sections; the shell stays.
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  color: var(--ivory);
  padding-block: var(--space-9) var(--space-8);
  text-align: center;
}

/* Chart lines and a soft horizon glow behind the wordmark. */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(0deg,  rgba(184,135,59,0.10) 0 1px, transparent 1px 64px),
    repeating-linear-gradient(90deg, rgba(184,135,59,0.10) 0 1px, transparent 1px 64px);
  mask-image: radial-gradient(ellipse at 50% 40%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 40%, #000 20%, transparent 78%);
}
.hero::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -40%;
  width: min(120vw, 70rem);
  aspect-ratio: 1;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(18, 61, 90, 0.85) 0%, transparent 62%);
  pointer-events: none;
}
.hero > * { position: relative; z-index: 1; }

.hero__compass {
  width: 74px;
  height: 74px;
  margin: 0 auto var(--space-5);
  opacity: 0.9;
}

.hero__title {
  font-size: clamp(2.5rem, 11vw, 5.25rem);
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--ivory);
  margin: 0;
  line-height: 1.05;
}

.hero__descriptor {
  margin: var(--space-5) 0 0;
  font-size: var(--label-size);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}

.hero__est {
  margin: var(--space-3) 0 0;
  font-size: 0.625rem;
  letter-spacing: 0.3em;
  color: var(--ivory-faint);
}

.hero__rule {
  width: 5rem;
  margin: var(--space-6) auto;
  border-top: 1px solid var(--brass);
}

.hero__tagline {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.25rem, 4vw, 1.9rem);
  color: var(--ivory);
  margin: 0 auto;
  max-width: 26rem;
}

.hero__actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: var(--space-4);
  margin: var(--space-7) auto 0;
  max-width: 22rem;
}

@media (min-width: 40em) {
  .hero { padding-block: var(--space-10) var(--space-9); }
  .hero__compass { width: 92px; height: 92px; }
  .hero__actions {
    flex-direction: row;
    justify-content: center;
    max-width: none;
  }
  .hero__actions .btn { min-width: 15rem; }
}

/* Three quiet propositions beneath the hero. */
.pillar { text-align: left; }
.pillar__title {
  font-size: var(--text-xl);
  margin: var(--space-3) 0 var(--space-2);
}
.pillar__body {
  color: var(--ink-muted);
  font-size: var(--text-sm);
  margin: 0;
}

/* A statistics strip — Part 6 fills it with live registry figures. */
.stat-strip {
  display: grid;
  gap: var(--space-5);
  grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr));
  text-align: center;
}
.stat {
  padding: var(--space-4) var(--space-2);
  border-left: 1px solid var(--brass-hairline);
}
.stat:first-child { border-left: 0; }
.stat__figure {
  display: block;
  font-family: var(--font-serif);
  font-size: clamp(2rem, 6vw, 2.75rem);
  line-height: 1;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
}
.section--navy .stat__figure { color: var(--gold); }
.stat__label { margin-top: var(--space-2); }

/* --------------------------------------------------------------------------
   14  UTILITIES
   -------------------------------------------------------------------------- */

.text-center  { text-align: center; }
.text-muted   { color: var(--gray-text); }
.text-brass   { color: var(--brass-text); }
.text-serif   { font-family: var(--font-serif); }
.text-sm      { font-size: var(--text-sm); }

.mt-0  { margin-top: 0; }
.mt-sm { margin-top: var(--space-3); }
.mt-md { margin-top: var(--space-5); }
.mt-lg { margin-top: var(--space-6); }
.mb-0  { margin-bottom: 0; }
.mb-md { margin-bottom: var(--space-5); }
.mb-lg { margin-bottom: var(--space-6); }

.measure { max-width: 34rem; }
.measure--center { margin-inline: auto; }

.no-scroll { overflow: hidden; }

/* --------------------------------------------------------------------------
   15  MOTION, PRINT & FORCED COLOURS
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .card--linked:hover { transform: none; }
  .card--linked:hover .photo img { transform: none; }
}

@media (forced-colors: active) {
  .btn, .card, .badge, .registry-stamp { border: 1px solid currentColor; }
}

@media print {
  body { background: var(--cream); }
  body::before,
  .site-header,
  .site-footer,
  .flash-stack,
  .nav-toggle { display: none !important; }
  .card { box-shadow: none; border: 1px solid var(--weathered-gray); }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 0.75em; }
}
