/* hawser site styles. Tokens and usage rules: brand/brand.md (colour ramps, 13 Oct 2026).
   Layout follows docs/website-draft/ (rebuilt here; the mockups' inline styles are not used). */
@font-face {
  font-family: "Archivo";
  src: url("/assets/fonts/archivo-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

:root {
  /* core */
  --navy: #10212E;          /* navy 800 */
  --navy-900: #0A1620;
  --navy-700: #1B3242;
  --navy-600: #2A4053;
  --navy-300: #8A9DAD;
  --navy-200: #B4C2CD;
  --navy-100: #D9E1E7;
  --brass: #A8742A;         /* brass 500: rules and large text on light */
  --brass-600: #8A5E1F;     /* small brass text on light */
  --brass-light: #C9933F;   /* brass 400: on navy */
  --teal: #1A5F68;          /* teal 500: links, focus */
  --teal-600: #154D55;
  --teal-300: #6FB3B8;      /* teal on navy */
  --teal-50: #E8F3F4;
  --paper: #F7F9F8;
  --white: #FFFFFF;
  --mist: #EEF1F2;          /* neutral 50: alternate sections */
  --line: #D4DCE0;          /* neutral 200: hairlines */
  --neutral-300: #B7C1C8;
  --slate-light: #5F6B78;   /* neutral 500: captions */
  --slate: #4A5866;         /* neutral 600 */
  --body: #34404C;          /* neutral 700: body text */
  --brass-50: #FAF4EA;

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 24px);
  --section: clamp(64px, 9vw, 112px);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }   /* "hidden" always wins over component layout rules */
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--navy);
  font-family: "Archivo", "Helvetica Neue", system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-underline-offset: 0.15em; }
a:hover { color: var(--teal-600); }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }
.band-navy :focus-visible, .site-header :focus-visible, .site-footer :focus-visible { outline-color: var(--teal-300); }
h1, h2, h3, h4 { margin: 0; line-height: 1.12; font-weight: 800; }
h1 { font-size: clamp(2.25rem, 5vw, 4rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); letter-spacing: -0.01em; }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
code { font-size: 0.9em; background: var(--mist); padding: 0.1em 0.35em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--white); color: var(--navy); padding: 8px 12px; z-index: 10; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* environment banner (dev and staging only) */
.env-banner { font-size: 0.85rem; padding: 6px var(--gutter); color: var(--paper); background: var(--teal); }
.env-banner a { color: inherit; }
.env-banner.env-dev { background: #5B4A8B; }

/* header */
.site-header { background: var(--navy); }
.header-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 22px; padding-bottom: 22px; }
.brand img { height: 30px; width: auto; }
.nav { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; font-size: 0.95rem; }
.nav a { color: var(--navy-100); text-decoration: none; }
.nav a:hover { color: var(--paper); }
.nav a[aria-current="page"]:not(.nav-cta) { color: var(--paper); border-bottom: 2px solid var(--brass-light); padding-bottom: 4px; }
.nav-cta { display: inline-flex; align-items: center; min-height: 44px; padding: 11px 18px; border: 1px solid var(--brass-light); font-weight: 600; color: var(--paper) !important; }
.nav-cta:hover, .nav-cta[aria-current="page"] { background: var(--brass-light); color: var(--navy) !important; }

/* buttons */
.buttons { display: flex; flex-wrap: wrap; gap: 16px; margin: 0; }
.button { display: inline-flex; align-items: center; min-height: 44px; padding: 14px 24px; font-weight: 700; text-decoration: none; border: 1px solid var(--navy); color: var(--navy); background: transparent; font: inherit; font-weight: 700; cursor: pointer; }
.button:hover { background: var(--mist); color: var(--navy); }
.button-brass { background: var(--brass-light); border-color: var(--brass-light); color: var(--navy); font-size: 1.0625rem; }
.button-brass:hover { background: #D6A960; color: var(--navy); }
.button-outline { padding: 12px 20px; }
.button[disabled] { opacity: 0.55; cursor: not-allowed; }
.arrow-link { font-weight: 700; color: var(--teal-600); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }

/* bands and section headings */
.band-navy { background: var(--navy); color: var(--paper); }
.band-mist { background: var(--mist); }
.section { padding: var(--section) 0; }
.section-head { display: flex; flex-direction: column; gap: 14px; margin-bottom: 40px; }
.section-head::before { content: ""; width: 72px; height: 3px; background: var(--brass); }
.section-sub { color: var(--slate); font-size: 1.125rem; margin: 0; }
.eyebrow { margin: 0; font-size: 0.875rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700; color: var(--brass-light); }
.eyebrow-dark { color: var(--brass-600); font-size: 0.8125rem; }
.lede { font-size: clamp(1.125rem, 1.6vw, 1.3rem); line-height: 1.55; max-width: 46rem; }
.band-navy .lede { color: var(--navy-100); }
.band-navy .lede a { color: var(--brass-light); }
.band-navy .lede a:hover { color: var(--paper); }

/* page openings (Services, About, Contact) */
.page-open .wrap { padding-top: clamp(64px, 8vw, 96px); padding-bottom: clamp(72px, 9vw, 104px); display: flex; flex-direction: column; gap: 24px; }
.page-open h1 { max-width: 62rem; font-size: clamp(2.1rem, 4.4vw, 3.5rem); }
.fn-ref { color: var(--brass-light); text-decoration: none; font-size: 0.45em; vertical-align: super; margin-left: 2px; }

/* home: hero with the Tethered animation behind it */
.hero { position: relative; overflow: hidden; }
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-inner { position: relative; padding-top: clamp(80px, 11vw, 112px); padding-bottom: clamp(96px, 12vw, 128px); display: flex; flex-direction: column; gap: 32px; pointer-events: none; }
.hero-inner h1 { max-width: 12.5em; font-size: clamp(2.4rem, 5vw, 4.25rem); line-height: 1.08; }
.hero-inner .lede { max-width: 38rem; color: var(--navy-100); }
.hero-inner a { pointer-events: auto; }

/* home: who we serve */
.serve { background: var(--mist); border-bottom: 1px solid var(--line); }
.serve-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 48px; padding-top: 40px; padding-bottom: 40px; }
.serve-copy { flex: 1 1 320px; display: flex; flex-direction: column; gap: 8px; }
.serve-copy p:last-child { font-size: 1.125rem; line-height: 1.5; color: var(--body); }
.serve-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px 0; flex: 2 1 560px; }
.serve-list li { font-size: 1.125rem; font-weight: 800; padding: 2px 16px; border-left: 2px solid var(--brass); white-space: nowrap; }
@media (min-width: 1000px) { .serve-inner { flex-wrap: nowrap; } .serve-copy { flex: 1 1 300px; } .serve-list { flex: 0 0 auto; flex-wrap: nowrap; } }

/* home: the ground is shifting (tabs; stacked panels without JavaScript) */
.tab-list { display: flex; flex-wrap: wrap; gap: 8px; border-bottom: 1px solid var(--line); margin-bottom: 32px; }
.tab-list[hidden] { display: none; }
.tab-list [role="tab"] { font: inherit; font-size: 1rem; font-weight: 500; color: var(--body); background: transparent; border: 0; padding: 14px 18px; min-height: 44px; cursor: pointer; }
.tab-list [role="tab"][aria-selected="true"] { background: var(--navy); color: var(--paper); font-weight: 700; }
.shift + .shift { margin-top: 48px; }
.is-tabbed .shift-stage { display: grid; }
.is-tabbed .shift { grid-area: 1 / 1; margin-top: 0; display: flex; flex-direction: column; }
.is-tabbed .shift-grid { flex: 1; }
.is-tabbed .shift.is-off { visibility: hidden; }
.is-tabbed .shift-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.shift-label { font-size: 1.125rem; color: var(--brass-600); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 16px; }
.shift-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 24px 40px; align-items: stretch; }
.stat-box { background: var(--navy); color: var(--paper); padding: 24px 28px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); gap: 20px 28px; align-content: center; align-self: stretch; }
.stat-count-1 { grid-template-columns: 1fr; }
.stat-count-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.stat-count-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat-v { font-size: clamp(1.5rem, 2.2vw, 2rem); line-height: 1.05; font-weight: 800; color: var(--brass-light); }
.stat-big { font-size: clamp(2.5rem, 4vw, 3.5rem); line-height: 1; }
.stat-c { font-size: 0.9375rem; line-height: 1.4; color: var(--navy-100); }
.stat-src { font-size: 0.75rem; color: var(--navy-200); }
.stat-src a { color: var(--teal-300); }
.shift-copy { display: flex; flex-direction: column; justify-content: center; gap: 14px; }
.shift-headline { font-size: clamp(1.4rem, 2.2vw, 1.8rem); line-height: 1.18; }
.shift-copy p { font-size: 1.0625rem; line-height: 1.55; color: var(--body); }
.help { background: var(--mist); padding: 28px; margin-top: 32px; display: flex; flex-direction: column; gap: 24px; }
.help-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px 32px; }
.help-head h3 { font-size: 1.375rem; }
.help-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 16px; }
.help-tile { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; padding: 22px 24px; font-size: 1.2rem; font-weight: 800; text-decoration: none; border: 1px solid var(--neutral-300); background: var(--white); color: var(--navy); transition: background 200ms, color 200ms, border-color 200ms; }
.help-tile:hover { border-color: var(--teal); color: var(--teal-600); }
.is-tabbed .help-tile { color: var(--slate-light); }
.is-tabbed .help-tile.is-lit { background: var(--teal); border-color: var(--teal); color: var(--paper); }

/* home: what we're reading */
.reading-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 20px; }
.reading-card { background: var(--white); border-top: 3px solid var(--navy); padding: 28px; display: flex; flex-direction: column; gap: 12px; text-decoration: none; color: var(--navy); }
.reading-card:hover { border-top-color: var(--teal); color: var(--navy); }
.reading-meta { font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--teal); }
.reading-title { font-size: 1.2rem; line-height: 1.3; }
.reading-sum { font-size: 0.95rem; line-height: 1.5; color: var(--slate); }
.reading-go { margin-top: auto; font-size: 0.875rem; font-weight: 700; color: var(--teal-600); }

/* close */
.close .wrap { padding-top: clamp(88px, 11vw, 128px); padding-bottom: clamp(88px, 11vw, 128px); display: flex; flex-direction: column; align-items: flex-start; gap: 28px; }
.close-title { font-size: clamp(2.25rem, 4.6vw, 3.75rem); line-height: 1.04; letter-spacing: -0.02em; }

/* services and about: cards with a hairline rule */
.groups { display: flex; flex-direction: column; gap: 80px; }
.group { scroll-margin-top: 24px; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 40px 48px; }
.card-grid-wide { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.card-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 700px) { .card-grid-2 { grid-template-columns: 1fr; } }
.rule-card { border-top: 1px solid var(--line); padding-top: 20px; display: flex; flex-direction: column; gap: 10px; }
.rule-card h3 { font-size: 1.3rem; }
.rule-card p { margin: 0; font-size: 1rem; line-height: 1.6; color: var(--body); }
.rule-card .situation { font-size: 1.0625rem; line-height: 1.5; font-style: italic; color: var(--teal); }
.offer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 20px; }
.offer { background: var(--white); padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.offer strong { font-size: 1.25rem; }
.offer span { color: var(--slate); line-height: 1.5; }
.offer .offer-cta { margin-top: auto; padding-top: 6px; font-weight: 600; text-decoration: none; }
.offer .offer-cta:hover { text-decoration: underline; }
.offer .offer-cta span { color: inherit; }
.form-about { background: var(--teal-50); border-left: 3px solid var(--teal); padding: 12px 16px; color: var(--navy); margin: 0 0 24px; }

/* about: who you'll work with */
.person { display: flex; flex-wrap: wrap; gap: 48px 64px; align-items: flex-start; }
.person-card { flex: 0 1 320px; display: flex; flex-direction: column; gap: 16px; }
.person-photo { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; object-position: center 30%; background: var(--line); border-bottom: 3px solid var(--brass); }
.person-name { display: flex; flex-direction: column; gap: 4px; }
.person-name strong { font-size: 1.375rem; }
.person-name span { color: var(--slate); }
.person-card a { font-weight: 600; }
.person-bio { flex: 1 1 480px; min-width: 0; max-width: 47.5rem; font-size: 1.125rem; line-height: 1.65; color: var(--body); }
.person-bio p { margin: 0 0 20px; }
.bio-lead { font-size: 1.3rem; line-height: 1.55; color: var(--navy); font-weight: 600; }

/* contact */
.contact { display: flex; flex-wrap: wrap; gap: 64px; align-items: flex-start; }
.contact-main { flex: 1 1 560px; min-width: 0; max-width: 45rem; display: flex; flex-direction: column; gap: 28px; }
.contact-side { flex: 1 1 280px; min-width: 0; max-width: 24rem; display: flex; flex-direction: column; gap: 32px; }
.contact-side > div { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.contact-side strong { font-size: 1.125rem; }
.form { display: flex; flex-direction: column; gap: 28px; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 20px; }
.form label { display: flex; flex-direction: column; gap: 8px; font-size: 0.95rem; font-weight: 600; }
.form input[type="text"], .form input[type="email"], .form input[type="tel"], .form textarea { font: inherit; font-size: 1.0625rem; font-weight: 400; color: var(--navy); background: var(--white); border: 1px solid var(--neutral-300); border-radius: 0; padding: 13px 14px; width: 100%; }
.form [aria-invalid="true"] { border-color: var(--brass-600); box-shadow: inset 3px 0 0 var(--brass-600); }
.field-error { font-size: 0.875rem; font-weight: 500; color: var(--brass-600); }
.field-error::before { content: "! "; font-weight: 800; }
.form input:focus, .form textarea:focus { outline: 2px solid var(--teal); outline-offset: 1px; border-color: var(--teal); }
.optional { font-weight: 400; color: var(--slate-light); }
.topics { border: 0; margin: 0; padding: 0; }
.topics legend { font-size: 0.95rem; font-weight: 600; padding: 0; margin-bottom: 12px; }
.topic-list { display: flex; flex-wrap: wrap; gap: 10px; }
.form .topic { position: relative; flex-direction: row; gap: 0; }
.topic input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.topic span { display: inline-flex; align-items: center; min-height: 44px; padding: 11px 16px; font-size: 0.95rem; font-weight: 600; border: 1px solid var(--neutral-300); background: var(--white); color: var(--body); cursor: pointer; }
.topic input:checked + span { background: var(--teal); border-color: var(--teal); color: var(--white); }
.topic input:focus-visible + span { outline: 3px solid var(--teal); outline-offset: 2px; }
.form-send { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.form-note { font-size: 0.875rem; color: var(--slate-light); }
.form-extras { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 20px; align-items: start; }

.form-extras .extra[hidden] { display: none; }
.add-extra { font-size: 0.95rem; min-height: 44px; }
.add-extra[hidden] { display: none; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.cf-turnstile { min-height: 65px; }
.form-done { display: flex; flex-direction: column; gap: 18px; padding: 24px 0; }
.form-done::before { content: ""; width: 72px; height: 3px; background: var(--brass); }
.form-done h2 { font-size: 2rem; }
.form-done h2:focus { outline: none; }
.form-error { background: var(--brass-50); border-left: 3px solid var(--brass); padding: 12px 16px; color: var(--navy); }
.form-unavailable { background: var(--brass-50); border-left: 3px solid var(--brass); padding: 12px 16px; color: var(--navy); margin-bottom: 24px; }
.link-button { align-self: flex-start; background: none; border: 0; padding: 0; font: inherit; font-weight: 600; color: var(--teal-600); text-decoration: underline; cursor: pointer; }
a.on-navy { color: var(--teal-300); }

/* footer */
.site-footer { background: var(--navy-900); color: var(--navy-200); font-size: 0.875rem; }
.footer-inner { padding-top: 40px; padding-bottom: 40px; display: flex; flex-direction: column; gap: 18px; }
.footer-nav { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px 24px; font-size: 0.95rem; }
.footer-nav a { color: var(--navy-100); text-decoration: none; }
.footer-nav a:hover { color: var(--paper); text-decoration: underline; }
.footnotes { margin: 0; padding-left: 1.2em; }
.footer-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; border-top: 1px solid var(--navy-700); padding-top: 18px; }
.site-footer .note-todo { color: var(--navy); }

/* visible TODOs and Dan's notes. TODOs are intentional: no invented content (CLAUDE.md). */
.todo-block { border: 1px dashed var(--teal); background: var(--teal-50); color: var(--navy); padding: 12px 16px; font-size: 0.95rem; max-width: 70ch; }
.todo-block strong { color: var(--teal); margin-right: 4px; }
.todo-meta { color: var(--slate); margin-left: 4px; }
.todo-block a { margin-left: 6px; }
.note-todo { background: var(--teal-50); border-left: 3px solid var(--teal); padding: 2px 8px; font-size: 0.875rem; color: var(--navy); }
.note-dan { background: var(--brass-50); border-left: 3px solid var(--brass); padding: 2px 8px; }
.verify-todo { display: inline-block; align-self: flex-start; margin-top: 4px; padding: 2px 8px; font-size: 0.75rem; line-height: 1.4; background: var(--teal-50); color: var(--navy); border-left: 3px solid var(--teal-300); }
.verify-todo strong { color: var(--teal); }

/* legal pages (privacy, terms) */
.page-open-short .wrap { padding-top: clamp(48px, 6vw, 72px); padding-bottom: clamp(48px, 6vw, 72px); }
.legal { margin-top: 32px; }
.legal h2 { font-size: 1.4rem; margin-top: 40px; padding-top: 0; border-top: 0; }
.legal p, .legal li { color: var(--body); }
.legal .note-todo { margin-top: 12px; }
.legal .legal-updated { color: var(--slate-light); font-size: 0.9rem; }

/* shells */
.page-head { padding: clamp(48px, 7vw, 88px) 0 8px; }
.page-head h1 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 16px; }
.section + .section { border-top: 1px solid var(--line); }
.band-mist + .section, .section + .band-mist { border-top: 0; }
.page-head + .section { padding-top: 32px; }

/* drafts */
.draft-wrap { padding-top: 32px; padding-bottom: 64px; }
.draft-label { font-size: 0.9rem; color: var(--slate); border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.prose { max-width: 72ch; }
.prose h1 { margin: 24px 0 16px; }
.prose h2 { margin-top: 48px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 1.75rem; }
.prose h3 { margin-top: 32px; }
.prose blockquote { margin: 16px 0; padding: 16px 20px; background: var(--white); border-left: 4px solid var(--brass); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 32px 0; }
.prose table { border-collapse: collapse; width: 100%; font-size: 0.95rem; }
.prose th, .prose td { border: 1px solid var(--line); padding: 6px 10px; text-align: left; vertical-align: top; }
.prose li { margin-bottom: 6px; }
.draft-list li { margin-bottom: 8px; }

/* pre-launch placeholder */
.placeholder { background: var(--paper); }
.placeholder-wrap { max-width: 640px; margin: 0 auto; padding: clamp(48px, 12vh, 120px) 16px 48px; }
.placeholder-logo { height: 48px; width: auto; margin-bottom: 40px; }
.placeholder h1 { font-size: clamp(1.6rem, 4vw, 2.25rem); line-height: 1.2; margin-bottom: 16px; }
.placeholder .lede { color: var(--body); }
.placeholder-contact { font-weight: 600; display: flex; flex-wrap: wrap; gap: 8px; }
.placeholder hr { border: 0; border-top: 1px solid var(--line); margin: 32px 0 16px; }
.placeholder-foot { font-size: 0.9rem; color: var(--slate); }

@media (max-width: 600px) { .stat-box { padding: 22px 20px; } .stat-count-4 { grid-template-columns: 1fr 1fr; gap: 16px; } .help { padding: 22px; } }

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; animation: none !important; } }
