/* Sail With Mat — site styles */
:root {
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.2rem + 2.5vw, 3.5rem);
  --text-3xl: clamp(2.5rem, 1rem + 4vw, 5rem);

  --space-1: .25rem; --space-2: .5rem; --space-3: .75rem; --space-4: 1rem; --space-5: 1.25rem;
  --space-6: 1.5rem; --space-8: 2rem; --space-10: 2.5rem; --space-12: 3rem; --space-16: 4rem;
  --space-20: 5rem; --space-24: 6rem; --space-32: 8rem;

  /* Brand (Nov 2026 rebrand): navy #02154E, red #D61233, white, mist #F4F5F8 */
  --navy: #02154E;
  --navy-2: #0A2468;
  --navy-deep: #010B2E;
  --red: #D61233;
  --red-ink: #B80F2B;             /* red for small text on light surfaces (AA 6.1:1 on mist) */
  --red-on-dark: #FF6F80;         /* red tint for small text on navy (AA 6.4:1); full red only for large type */
  --color-bg: #F4F5F8;            /* mist */
  --color-surface: #FFFFFF;
  --color-surface-offset: #E6E9F0;
  --color-border: oklch(0.25 0.08 262 / 0.14);
  --color-divider: oklch(0.25 0.08 262 / 0.10);
  --color-text: #0A1433;
  --color-text-muted: #545C78;
  --color-text-inverse: #F4F5F8;
  --color-primary: var(--navy);

  --font-display: 'Montserrat', 'Helvetica Neue', sans-serif;
  --font-body: 'Source Serif 4', 'Iowan Old Style', serif;

  --radius-sm: .25rem; --radius-md: .5rem; --radius-lg: .75rem;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-interactive: 180ms var(--ease);
  --shadow-md: 0 6px 24px oklch(0.2 0.1 262 / 0.10);
  --content: 1200px;
  --gutter: clamp(var(--space-5), 5vw, var(--space-12));
}

body { font-family: var(--font-body); background: var(--color-bg); color: var(--color-text); }
a { color: inherit; }
.wrap { width: min(100% - 2 * var(--gutter), var(--content)); margin-inline: auto; }
.narrow { max-width: 68ch; }

/* Skip link */
.skip { position: absolute; left: var(--space-4); top: -100px; background: var(--red); color: #fff; padding: var(--space-2) var(--space-4); z-index: 100; font-family: var(--font-display); font-weight: 700; }
.skip:focus { top: var(--space-4); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--navy); color: #fff; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: var(--space-6); min-height: 72px; }
.brand img { height: 38px; width: auto; }
.nav { display: flex; align-items: center; gap: var(--space-6); font-family: var(--font-display); font-size: var(--text-sm); font-weight: 600; }
.nav a { text-decoration: none; color: #d9deea; padding-block: var(--space-2); border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { color: #fff; border-bottom-color: var(--red); }
.nav .btn { border-bottom: 0; }
.menu-btn { display: none; color: #fff; width: 44px; height: 44px; align-items: center; justify-content: center; }
@media (max-width: 960px) {
  .menu-btn { display: inline-flex; }
  .nav { position: absolute; inset: 72px 0 auto 0; background: var(--navy); flex-direction: column; align-items: stretch; gap: 0; padding: var(--space-2) var(--gutter) var(--space-6); clip-path: inset(0 0 100% 0); visibility: hidden; transition: clip-path 300ms var(--ease), visibility 0s 300ms; }
  .nav.open { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path 300ms var(--ease); }
  .nav a { padding-block: var(--space-3); border-bottom: 1px solid oklch(1 0 0 / 0.08); }
  .nav .btn { margin-top: var(--space-4); text-align: center; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); min-height: 44px; padding: var(--space-3) var(--space-5); font-family: var(--font-display); font-weight: 700; font-size: var(--text-sm); letter-spacing: .01em; text-decoration: none; border-radius: var(--radius-sm); background: var(--red); color: #fff; border: 2px solid var(--red); }
.btn:hover { background: var(--red-ink); border-color: var(--red-ink); }
.btn:active { transform: translateY(1px); }
.btn.ghost { background: transparent; color: inherit; border-color: currentColor; }
.btn.ghost:hover { background: oklch(1 0 0 / 0.08); }
.btn.navy { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn.navy:hover { background: var(--navy-2); }

/* Type */
.kicker { font-family: var(--font-display); font-size: var(--text-xs); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--red-ink); margin-bottom: var(--space-3); }
.on-dark .kicker { color: var(--red-on-dark); }
h1, h2, h3 { font-family: var(--font-display); color: var(--navy); font-weight: 800; letter-spacing: -0.015em; }
.on-dark h1, .on-dark h2, .on-dark h3 { color: #fff; }
h1 { font-size: var(--text-2xl); line-height: 1.05; }
h2 { font-size: var(--text-xl); margin-bottom: var(--space-4); }
h3 { font-size: var(--text-lg); font-weight: 700; margin-bottom: var(--space-2); letter-spacing: 0; }
p + p { margin-top: var(--space-4); }
.lead { font-size: var(--text-lg); line-height: 1.5; color: var(--color-text-muted); }
.on-dark .lead { color: #c6cde0; }
.muted { color: var(--color-text-muted); }
.small { font-size: var(--text-sm); }
.xs { font-size: var(--text-xs); }
.num { font-family: var(--font-display); font-variant-numeric: tabular-nums; }
.prose a, .link { color: var(--red-ink); text-underline-offset: 3px; }
.on-dark .link { color: var(--red-on-dark); }
.prose h2 { margin-top: var(--space-12); }
.prose h3 { margin-top: var(--space-8); }
.prose ul, .prose ol { padding-left: var(--space-6); margin-top: var(--space-4); }
.prose li + li { margin-top: var(--space-2); }

/* Sections */
section { padding-block: clamp(var(--space-12), 8vw, var(--space-24)); }
section.tight { padding-block: clamp(var(--space-10), 5vw, var(--space-16)); }
.on-dark { background: var(--navy); color: var(--color-text-inverse); }
.deep { background: var(--navy-deep); }
.paper { background: var(--color-surface-offset); }

/* Hero */
.hero { position: relative; min-height: min(88vh, 860px); display: grid; align-items: end; color: #fff; padding: 0; overflow: hidden; }
.hero img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, oklch(0.16 0.09 262 / 0.88) 0%, oklch(0.16 0.09 262 / 0.55) 45%, oklch(0.16 0.09 262 / 0.05) 80%), linear-gradient(0deg, oklch(0.16 0.09 262 / 0.7), transparent 40%); }
.hero .wrap { position: relative; z-index: 1; padding-block: var(--space-24) var(--space-16); }
.hero h1 { font-size: var(--text-3xl); color: #fff; max-width: 13ch; font-weight: 900; line-height: 0.98; }
.hero h1 em { font-style: normal; color: var(--red); }
.hero .lead { color: #e1e5ef; max-width: 52ch; margin-top: var(--space-6); }
.hero .actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-8); }

.page-hero { position: relative; color: #fff; background: var(--navy); padding-block: var(--space-20) var(--space-16); overflow: hidden; }
.page-hero.has-img img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .38; }
.page-hero .wrap { position: relative; }
.page-hero h1 { color: #fff; max-width: 20ch; }
.page-hero .lead { color: #d3d9e7; margin-top: var(--space-5); max-width: 60ch; }
.crumbs { font-family: var(--font-display); font-size: var(--text-xs); color: #aab3cc; margin-bottom: var(--space-4); }
.crumbs a { color: #fff; }

/* Proof strip */
.proof { background: var(--navy-deep); color: #fff; padding-block: var(--space-8); }
.proof ul { list-style: none; display: grid; grid-template-columns: repeat(6, 1fr); gap: var(--space-6); }
.proof li { border-left: 1px solid oklch(1 0 0 / 0.16); padding-left: var(--space-4); }
.proof b { display: block; white-space: nowrap; font-family: var(--font-display); font-size: clamp(1.35rem, 1rem + 1vw, 2rem); font-weight: 800; color: var(--red); font-variant-numeric: tabular-nums; line-height: 1.1; }
.proof span { font-family: var(--font-display); font-size: var(--text-xs); color: #c0c8dc; }
@media (max-width: 1100px) { .proof ul { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 900px) { .proof ul { grid-template-columns: repeat(2, 1fr); } }

/* Layout grids */
.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(var(--space-8), 6vw, var(--space-20)); align-items: center; }
.split.rev > :first-child { order: 2; }
.split img { width: 100%; height: auto; border-radius: var(--radius-md); }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split.rev > :first-child { order: 0; } }

.full-bleed { padding: 0; }
.full-bleed img { width: 100%; height: clamp(280px, 48vw, 620px); object-fit: cover; }
.full-bleed figcaption { font-family: var(--font-display); font-size: var(--text-xs); color: var(--color-text-muted); padding: var(--space-3) var(--gutter); max-width: none; }

/* Service list (editorial, not card grid) */
.svc { display: grid; grid-template-columns: 4rem 1fr 1.3fr auto; gap: var(--space-6); padding-block: var(--space-8); border-top: 1px solid var(--color-border); align-items: start; text-decoration: none; }
.svc:last-child { border-bottom: 1px solid var(--color-border); }
.svc .n { font-family: var(--font-display); font-weight: 800; color: var(--red-ink); font-size: var(--text-lg); }
.svc h3 { margin: 0; }
.svc p { color: var(--color-text-muted); }
.svc .go { font-family: var(--font-display); font-weight: 700; font-size: var(--text-sm); color: var(--navy); white-space: nowrap; }
a.svc:hover .go { color: var(--red-ink); }
a.svc:hover h3 { text-decoration: underline; text-decoration-color: var(--red); text-underline-offset: 5px; }
@media (max-width: 760px) { .svc { grid-template-columns: 2.5rem 1fr; } .svc p, .svc .go { grid-column: 2; } }

/* Feature passage */
.passages { display: grid; grid-template-columns: 1.4fr 1fr; grid-template-rows: auto auto; gap: var(--space-6); }
.pcard { position: relative; display: flex; flex-direction: column; justify-content: end; min-height: 300px; border-radius: var(--radius-lg); overflow: hidden; color: #fff; text-decoration: none; background: var(--navy); }
.pcard.big { grid-row: span 2; min-height: 560px; }
.pcard.wide { grid-column: 1 / -1; min-height: 340px; }
.pcard img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease); }
.pcard::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, oklch(0.16 0.09 262 / 0.92) 0%, oklch(0.16 0.09 262 / 0.2) 60%, transparent); }
.pcard:hover img { transform: scale(1.03); }
.pcard .body { position: relative; z-index: 1; padding: var(--space-6); }
.pcard h3 { color: #fff; font-size: var(--text-lg); margin-bottom: var(--space-2); }
.pcard .meta { font-family: var(--font-display); font-size: var(--text-xs); color: #d0d6e6; letter-spacing: .04em; }
.pcard .meta b { color: var(--red-on-dark); }
@media (max-width: 860px) { .passages { grid-template-columns: 1fr; } .pcard.big { grid-row: auto; min-height: 380px; } }

/* Five deliverables */
.steps { counter-reset: s; display: grid; gap: 0; }
.step { display: grid; grid-template-columns: 5rem 1fr; gap: var(--space-6); padding-block: var(--space-6); border-top: 1px solid oklch(1 0 0 / 0.14); }
.paper .step, .light .step { border-top-color: var(--color-border); }
.step .n { font-family: var(--font-display); font-size: var(--text-2xl); font-weight: 900; color: var(--red); line-height: 1; }
.step h3 { margin-bottom: var(--space-1); }
.step p { color: inherit; opacity: .86; }
@media (max-width: 600px) { .step { grid-template-columns: 3rem 1fr; gap: var(--space-4); } }

/* Log table */
.table-wrap { overflow-x: auto; border: 1px solid var(--color-border); border-radius: var(--radius-md); background: var(--color-surface); }
table.log { font-family: var(--font-display); font-size: var(--text-sm); min-width: 760px; }
table.log th { text-align: left; font-size: var(--text-xs); letter-spacing: .08em; text-transform: uppercase; color: #fff; background: var(--navy); padding: var(--space-3) var(--space-4); font-weight: 700; }
table.log td { padding: var(--space-3) var(--space-4); border-top: 1px solid var(--color-divider); vertical-align: top; font-variant-numeric: tabular-nums; }
table.log td.r, table.log th.r { text-align: right; }
table.log tr:nth-child(even) td { background: oklch(0.96 0.01 262 / 0.5); }
.role { display: inline-block; font-size: var(--text-xs); font-weight: 700; padding: 2px var(--space-2); border-radius: var(--radius-sm); background: var(--color-surface-offset); color: var(--navy); }
.role.sk { background: var(--navy); color: #fff; }

/* Fact boxes */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1px; background: var(--color-border); border: 1px solid var(--color-border); border-radius: var(--radius-md); overflow: hidden; margin-block: var(--space-8); }
.facts div { background: var(--color-surface); padding: var(--space-5); }
.facts b { display: block; font-family: var(--font-display); font-size: var(--text-lg); font-weight: 800; color: var(--navy); font-variant-numeric: tabular-nums; }
.facts span { font-family: var(--font-display); font-size: var(--text-xs); color: var(--color-text-muted); }

/* Pull quote */
.pull { font-family: var(--font-display); font-size: var(--text-xl); font-weight: 700; color: var(--navy); line-height: 1.25; max-width: 30ch; }
.on-dark .pull { color: #fff; }
.pull::before { content: ""; display: block; width: 48px; height: 4px; background: var(--red); margin-bottom: var(--space-5); }

/* Sample update (monospace log card) */
.update { background: var(--navy-deep); color: #e5e8f1; border-radius: var(--radius-md); padding: var(--space-6); font-family: 'Montserrat', sans-serif; font-size: var(--text-sm); line-height: 1.7; box-shadow: var(--shadow-md); }
.update .hd { display: flex; justify-content: space-between; gap: var(--space-4); font-size: var(--text-xs); color: var(--red-on-dark); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; border-bottom: 1px solid oklch(1 0 0 / 0.14); padding-bottom: var(--space-3); margin-bottom: var(--space-3); }
.update dl { display: grid; grid-template-columns: 9rem 1fr; gap: var(--space-1) var(--space-4); }
.update dt { color: #a3adc8; }
.update dd { color: #fff; font-variant-numeric: tabular-nums; }

/* Two-col lists */
.cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-10) var(--space-16); }
@media (max-width: 760px) { .cols { grid-template-columns: 1fr; } }
.cols h3 { padding-top: var(--space-4); border-top: 3px solid var(--navy); }
.on-dark .cols h3 { border-top-color: var(--red); }

ul.ticks { list-style: none; padding: 0; }
ul.ticks li { position: relative; padding-left: var(--space-6); }
ul.ticks li + li { margin-top: var(--space-2); }
ul.ticks li::before { content: ""; position: absolute; left: 0; top: .62em; width: 10px; height: 2px; background: var(--red); }

/* Articles list */
.articles { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-8); }
.article-card { text-decoration: none; display: grid; gap: var(--space-4); }
.article-card img { width: 100%; aspect-ratio: 16/10; object-fit: cover; border-radius: var(--radius-md); }
.article-card h3 { margin: 0; }
.article-card:hover h3 { text-decoration: underline; text-decoration-color: var(--red); text-underline-offset: 5px; }
@media (max-width: 760px) { .articles { grid-template-columns: 1fr; } }

/* CTA band */
.cta { background: var(--red); color: #fff; }
.cta h2 { color: #fff; font-size: var(--text-2xl); max-width: 18ch; }
.cta .wrap { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: var(--space-8); }
.cta p { max-width: 48ch; margin-top: var(--space-3); }
.cta .btn { background: var(--navy); border-color: var(--navy); color: #fff; }
.cta .btn:hover { background: var(--navy-2); }

/* Form */
form.enquiry { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-5) var(--space-6); }
form.enquiry .full { grid-column: 1 / -1; }
form.enquiry label { display: block; font-family: var(--font-display); font-size: var(--text-xs); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--navy); margin-bottom: var(--space-2); }
form.enquiry input, form.enquiry select, form.enquiry textarea { width: 100%; min-height: 48px; padding: var(--space-3) var(--space-4); border: 1px solid oklch(0.25 0.08 262 / 0.28); border-radius: var(--radius-sm); background: #fff; font-family: var(--font-display); font-size: var(--text-base); }
form.enquiry textarea { min-height: 140px; resize: vertical; }
form.enquiry input:focus, form.enquiry select:focus, form.enquiry textarea:focus { outline: 2px solid var(--red); outline-offset: 1px; border-color: var(--navy); }
.form-note { grid-column: 1 / -1; font-size: var(--text-sm); color: var(--color-text-muted); }
.form-result { grid-column: 1 / -1; display: none; padding: var(--space-5); border-radius: var(--radius-md); background: var(--navy); color: #fff; font-family: var(--font-display); font-size: var(--text-sm); }
.form-result.show { display: block; animation: rise 400ms var(--ease); }
.form-result pre { white-space: pre-wrap; background: oklch(1 0 0 / 0.06); padding: var(--space-4); border-radius: var(--radius-sm); margin-block: var(--space-3); font-family: inherit; }
.form-result .row { display: flex; flex-wrap: wrap; gap: var(--space-3); }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (max-width: 640px) { form.enquiry { grid-template-columns: 1fr; } }

.contact-lines { font-family: var(--font-display); display: grid; gap: var(--space-4); }
.contact-lines a { font-weight: 700; color: var(--navy); text-decoration: none; font-size: var(--text-lg); }
.contact-lines a:hover { color: var(--red-ink); }
.contact-lines span { display: block; font-size: var(--text-xs); color: var(--color-text-muted); letter-spacing: .08em; text-transform: uppercase; }

/* Footer */
.site-footer { background: var(--navy-deep); color: #c0c8dc; padding-block: var(--space-16) var(--space-8); font-family: var(--font-display); font-size: var(--text-sm); }
.site-footer .top { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: var(--space-8); }
.site-footer h4 { color: #fff; font-size: var(--text-xs); letter-spacing: .12em; text-transform: uppercase; margin-bottom: var(--space-4); }
.site-footer ul { list-style: none; display: grid; gap: var(--space-2); }
.site-footer a { color: #e0e4ee; text-decoration: none; }
.site-footer a:hover { color: var(--red-on-dark); }
.site-footer .base { margin-top: var(--space-12); padding-top: var(--space-6); border-top: 1px solid oklch(1 0 0 / 0.12); display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-4); font-size: var(--text-xs); color: #99a3bf; }
.site-footer img { height: 44px; width: auto; margin-bottom: var(--space-4); }
.site-footer .base { align-items: center; }
.site-footer .endorse img { width: 180px; height: auto; margin: 0; display: block; }
@media (max-width: 600px) { .site-footer .endorse { order: 3; flex-basis: 100%; } }
@media (max-width: 860px) { .site-footer .top { grid-template-columns: 1fr 1fr; } .site-footer .top > :first-child { grid-column: 1 / -1; max-width: 36ch; } }
@media (max-width: 420px) { .site-footer .top { grid-template-columns: 1fr; } }

/* Reveal */
.reveal { opacity: 1; }
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity 700ms var(--ease), transform 700ms var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

.mt-4 { margin-top: var(--space-4); } .mt-6 { margin-top: var(--space-6); } .mt-8 { margin-top: var(--space-8); } .mt-12 { margin-top: var(--space-12); }
.center-head { max-width: 62ch; margin-bottom: var(--space-10); }

/* Illustrative-image label (images not taken on Mat's passages) */
.illus-tag { position: absolute; right: var(--space-3); bottom: var(--space-3); z-index: 2; font-family: var(--font-display); font-size: 0.6875rem; font-weight: 600; letter-spacing: .04em; color: #fff; background: oklch(0.16 0.09 262 / 0.78); padding: 3px 8px; border-radius: 3px; pointer-events: none; }
.pcard .illus-tag { top: var(--space-3); bottom: auto; }
.article-card { position: relative; }
.article-card .illus-tag { top: var(--space-3); bottom: auto; }
.page-hero .illus-tag { z-index: 1; }
.hero .illus-tag { z-index: 2; }
.full-bleed figcaption { text-align: right; }
form.enquiry .req { color: var(--red); }
/* Mobile fix: service articles on deliveries.html put the prose column into the 2.5rem number column */
@media (max-width: 760px) { article.svc > .prose { grid-column: 1 / -1; } article.svc > span:empty { display: none; } }

/* How I work: sample documents (how-i-work-samples.html, teaser on method.html) */
.smp-intro { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(var(--space-8), 6vw, var(--space-16)); align-items: start; }
.smp-label { font-family: var(--font-display); font-size: var(--text-sm); font-weight: 700; color: var(--navy); background: var(--color-surface); border-left: 4px solid var(--red); padding: var(--space-3) var(--space-4); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.smp-toc { list-style: none; margin-top: var(--space-8); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--space-6); counter-reset: t; }
.smp-toc li { counter-increment: t; border-top: 1px solid var(--color-border); padding-block: var(--space-3); font-family: var(--font-display); font-weight: 700; font-size: var(--text-sm); }
.smp-toc li::before { content: counter(t, decimal-leading-zero); color: var(--red-ink); font-weight: 900; margin-right: var(--space-3); }
.smp-toc a { color: var(--navy); text-decoration: none; }
.smp-toc a:hover { color: var(--red-ink); text-decoration: underline; }
.smp-pack { max-width: 340px; justify-self: end; width: 100%; }
.smp-thumb { display: block; border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--color-border); box-shadow: var(--shadow-md); background: #fff; transition: transform var(--transition-interactive); }
.smp-thumb:hover { transform: translateY(-3px); }
.smp-thumb img { display: block; width: 100%; height: auto; }
.smp { scroll-margin-top: 80px; }
.smp-row { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(var(--space-8), 6vw, var(--space-16)); align-items: start; }
.smp-fig { max-width: 560px; justify-self: end; width: 100%; }
.smp-tag { margin-top: var(--space-2); }
.smp-h { font-size: var(--text-xs); letter-spacing: .12em; text-transform: uppercase; color: var(--red-ink); margin: var(--space-6) 0 var(--space-2); }
.smp-dl { margin-top: var(--space-8); display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3) var(--space-5); }
.smp-preview { margin-top: var(--space-10); }
.smp-cap { font-family: var(--font-display); font-size: var(--text-xs); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--color-text-muted); margin-bottom: var(--space-3); }
table.smp-watch, table.smp-bosun { width: 100%; border-collapse: collapse; font-family: var(--font-display); font-size: var(--text-xs); }
table.smp-watch { min-width: 720px; }
table.smp-bosun { min-width: 680px; }
.smp-watch th, .smp-bosun th { background: var(--navy); color: #fff; font-weight: 700; text-align: left; padding: var(--space-2) var(--space-3); vertical-align: bottom; }
.smp-watch thead th span { display: block; font-weight: 500; color: #c9d0e4; }
.smp-watch tbody th { background: transparent; color: var(--navy); white-space: nowrap; font-variant-numeric: tabular-nums; border-top: 1px solid var(--color-divider); }
.smp-watch td { padding: var(--space-2) var(--space-3); border-top: 1px solid var(--color-divider); border-left: 1px solid var(--color-divider); line-height: 1.35; }
.smp-watch td b { display: block; font-weight: 800; color: var(--navy); }
.smp-watch td span { color: var(--color-text-muted); }
.smp-watch tr.night td, .smp-watch tr.night th { background: #E6E9F1; }
.smp-watch td.cap { box-shadow: inset 4px 0 0 var(--red); }
.smp-bosun td { padding: var(--space-2) var(--space-3); border-top: 1px solid var(--color-divider); vertical-align: top; line-height: 1.4; }
.smp-bosun tr:nth-child(even) td { background: oklch(0.96 0.01 262 / 0.5); }
.smp-bosun td.nw { white-space: nowrap; }
.prio { display: inline-block; font-weight: 800; font-size: 0.75rem; letter-spacing: .04em; padding: 2px 8px; border-radius: 3px; }
.prio.p-high { background: var(--red); color: #fff; }
.prio.p-medium { background: var(--navy); color: #fff; }
.prio.p-low { background: var(--color-surface-offset); color: var(--navy); }
.smp-bosun .st { font-weight: 700; }
.smp-bosun .st.ns { color: var(--red-ink); } .smp-bosun .st.ip { color: #7A5200; } .smp-bosun .st.dn { color: #1E6B3A; }
.smp-doc { background: var(--color-surface); border: 1px solid var(--color-border); border-top: 4px solid var(--navy); border-radius: var(--radius-md); padding: clamp(var(--space-5), 3vw, var(--space-8)); }
.smp-cols { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-8) var(--space-12); }
.smp-doc h4 { font-family: var(--font-display); font-size: var(--text-sm); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--navy); margin-bottom: var(--space-4); }
.smp-doc ul.ticks { font-size: var(--text-sm); }
.smp-motto { font-family: var(--font-display); font-weight: 900; font-size: var(--text-lg); color: var(--navy); margin-top: var(--space-6); line-height: 1.25; }
.smp-motto span { color: var(--red-ink); }
@media (max-width: 860px) {
  .smp-intro, .smp-row, .smp-cols { grid-template-columns: 1fr; }
  .smp-pack, .smp-fig { justify-self: start; }
  .smp-fig { max-width: 520px; }
}
@media (max-width: 520px) { .smp-toc { grid-template-columns: 1fr; } .smp-pack { max-width: 260px; } }
.smp-fig.port { max-width: 400px; }

/* Mat's quote (Source Serif italic, red rule) */
.mquote { max-width: 46rem; margin: 0; border-left: 4px solid var(--red); padding-left: var(--space-6); }
.mquote blockquote { margin: 0; }
.mquote p { font-family: var(--font-body); font-style: italic; font-weight: 400; font-size: clamp(1.2rem, 1rem + 0.8vw, 1.6rem); line-height: 1.45; color: var(--navy); }
.mquote figcaption { margin-top: var(--space-4); font-family: var(--font-display); font-size: var(--text-xs); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--red-ink); }
.mquote.center { margin-inline: auto; }

/* Thank-you and 404 pages */
.thanks-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(var(--space-8), 5vw, var(--space-16)); align-items: center; }
.thanks-hero h1, .nf-hero h1 { max-width: 14ch; }
.chartplot { width: 100%; height: auto; color: #c6cde0; background: var(--navy-deep); border: 1px solid oklch(1 0 0 / .12); border-radius: var(--radius-md); }
.chartplot .sound text { font-family: var(--font-body); font-style: italic; font-size: 14px; }
.chartplot .lbl { font-family: var(--font-display); font-weight: 700; font-size: 12px; letter-spacing: .14em; fill: #fff; }
.chartplot .track { fill: none; stroke: var(--red); stroke-width: 3; stroke-dasharray: 3 0; stroke-linecap: round; }
.chartplot .wp { fill: var(--navy-deep); stroke: #fff; stroke-width: 2.5; }
.chartplot .wp.end { fill: var(--red); stroke: #fff; }
.chartplot .edge path { stroke: var(--red-on-dark); stroke-opacity: .8; }
.chartplot .edge .lbl { fill: var(--red-on-dark); }
@media (prefers-reduced-motion: no-preference) {
  .chartplot .track { stroke-dasharray: 100; stroke-dashoffset: 100; animation: plot 2.4s var(--ease) .3s forwards; }
  .chartplot .wp.end { opacity: 0; animation: pop .4s var(--ease) 2.5s forwards; }
  .chartplot .boat { opacity: 0; animation: pop .5s var(--ease) 2.5s forwards; }
  .nf-hero .chartplot .track { animation-duration: 3s; }
  @keyframes plot { to { stroke-dashoffset: 0; } }
  @keyframes pop { to { opacity: 1; } }
}
.logentry { background: var(--color-surface); border: 1px solid var(--color-border); border-left: 4px solid var(--red); border-radius: var(--radius-md); padding: var(--space-8); }
.logentry dl { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6) var(--space-8); }
.logentry dt { font-family: var(--font-display); font-size: var(--text-xs); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--color-text-muted); }
.logentry dd { font-family: var(--font-display); font-weight: 700; font-size: var(--text-base); color: var(--navy); margin-top: var(--space-1); }
.status-dot { display: inline-block; width: .6em; height: .6em; border-radius: 50%; background: var(--red); margin-right: .5em; vertical-align: .05em; }
@media (prefers-reduced-motion: no-preference) { .status-dot { animation: blink 1.6s ease-in-out infinite; } @keyframes blink { 50% { opacity: .25; } } }
.next-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-8); margin-top: var(--space-12); }
.next-steps b { font-family: var(--font-display); font-weight: 900; font-size: var(--text-xl); color: var(--red); }
.next-steps h3 { margin-top: var(--space-2); font-size: var(--text-lg); }
.next-steps p { margin-top: var(--space-2); color: var(--color-text-muted); }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.page-hero .btn.ghost { color: #fff; }
.btn.ghost:not(.page-hero *) { color: var(--navy); }
.refuge { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-4); }
.refuge a { display: block; height: 100%; padding: var(--space-6); background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md); text-decoration: none; transition: border-color var(--transition-interactive), transform var(--transition-interactive); }
.refuge a:hover { border-color: var(--red); transform: translateY(-2px); }
.refuge b { display: block; font-family: var(--font-display); font-size: var(--text-lg); color: var(--navy); }
.refuge b::after { content: " →"; color: var(--red); }
.refuge span { display: block; margin-top: var(--space-2); color: var(--color-text-muted); font-size: var(--text-sm); }
@media (max-width: 900px) { .thanks-grid, .next-steps { grid-template-columns: 1fr; } .logentry dl { grid-template-columns: 1fr 1fr; } .refuge { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .logentry dl, .refuge { grid-template-columns: 1fr; } .logentry { padding: var(--space-6); } }

/* Enquiry form sending (Netlify Forms) */
.enquiry .hp { display: none; }
.form-error { grid-column: 1 / -1; padding: var(--space-3) var(--space-4); border-left: 4px solid var(--red); background: #fff; color: var(--red-ink); font-family: var(--font-display); font-weight: 600; font-size: var(--text-sm); border-radius: var(--radius-sm); }
.form-error[hidden] { display: none; }
.enquiry [aria-invalid="true"] { border-color: var(--red); box-shadow: 0 0 0 1px var(--red); }
.enquiry button[disabled] { opacity: .7; cursor: progress; }
/* Extracts (26 Nov 2026): faded page-1 crops, not linked to full PDFs */
.smp-x { position: relative; }
.smp-x:hover { transform: none; }
a.smp-x:hover { transform: translateY(-3px); }
.smp-xtag { position: absolute; top: 10px; right: 10px; font-family: var(--font-display); font-weight: 700; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; background: var(--navy); color: #fff; padding: 3px 8px; border-radius: 3px; }
