/* ==========================================================================
   Click Cape Cod + Design Cape Cod — shared "Coastal" styles
   Sea-salt paper, harbor navy, a little buoy red. Fraunces + Figtree.
   Edit shared/assets/css/styles.css, then run `node tools/sync.mjs` from the
   project root. That copies it into both sites and updates the ?v= links.

   Two palettes, one system:
   - Paper (default, Design Cape Cod): sea-salt paper page, harbor-navy bands.
   - Harbor (body.theme-harbor, Click Cape Cod): the same layout flipped, with a
     harbor-blue page and paper as the accent. Inside a harbor page, the deep
     bands, footer, help card and chart switch back to the paper palette, so
     every component keeps working unchanged. Add .theme-paper or .theme-harbor
     to a section to show one site's palette inside the other.
   ========================================================================== */

:root,
.theme-paper,
.theme-harbor :is(.section--deep, .site-footer, .helpdesk, .chart__frame) {
  --paper: #FBF8F2;
  --paper-hi: #FFFDF9;
  --sand: #F2EADC;
  --sand-2: #E6DAC5;
  --ink: #13283F;
  --ink-2: #44566A;
  --ink-3: #6A7886;
  --navy: #16304D;
  --deep: #0F2338;
  --deep-2: #132B45;
  --sky: #8CC4E8;
  --sea: #2F6A94;
  --buoy: #C8553D;
  --line: rgba(19, 40, 63, .13);
  --line-2: rgba(19, 40, 63, .24);
  --on-deep: #EAF2F8;
  --on-deep-2: #A9BED0;
  --line-deep: rgba(140, 196, 232, .18);
  --danger: #B33A2E;
  /* Text and accents on a --navy fill (buttons, chips, the quick-contact bar) */
  --on-navy: #fff;
  --on-navy-2: #A9BED0;
  --on-navy-accent: #8CC4E8;
  --navy-hover: #0F2338;
  --header-bg: rgba(251, 248, 242, .9);
  --wave: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='10' viewBox='0 0 40 10'%3E%3Cpath d='M0 5C5 1 15 1 20 5S35 9 40 5' fill='none' stroke='%232F6A94' stroke-opacity='.45' stroke-width='1.3'/%3E%3C/svg%3E");
}

.theme-harbor {
  --paper: #194069;
  --paper-hi: #20497A;
  --sand: #1E4776;
  --sand-2: #2A5686;
  --ink: #FFFFFF;
  --ink-2: #CBD9E6;
  --ink-3: #A9BED0;
  --navy: #FBF8F2;
  --deep: #0F2338;
  --deep-2: #132B45;
  --sky: #8CC4E8;
  --sea: #8CC4E8;
  --buoy: #E8826A;
  --line: rgba(140, 196, 232, .16);
  --line-2: rgba(140, 196, 232, .3);
  --on-deep: #EAF2F8;
  --on-deep-2: #A9BED0;
  --line-deep: rgba(140, 196, 232, .18);
  --danger: #FF9B8C;
  --on-navy: #16304D;
  --on-navy-2: #44566A;
  --on-navy-accent: #2F6A94;
  --navy-hover: #FFFFFF;
  --header-bg: rgba(25, 64, 105, .92);
  --wave: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='10' viewBox='0 0 40 10'%3E%3Cpath d='M0 5C5 1 15 1 20 5S35 9 40 5' fill='none' stroke='%238CC4E8' stroke-opacity='.5' stroke-width='1.3'/%3E%3C/svg%3E");
}

/* A themed region re-sets its text color so it picks up its own palette */
.theme-paper, .theme-harbor, .theme-harbor :is(.helpdesk, .chart__frame) { color: var(--ink-2); }
:where(.section.theme-paper, .section.theme-harbor) { background: var(--paper); }

:root {
  --serif: "Fraunces", ui-serif, Georgia, "Times New Roman", serif;
  --sans: "Figtree", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --radius: 6px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --header-h: 68px;
  --container: 1180px;
  --gutter: clamp(20px, 5vw, 40px);
  --section-y: clamp(80px, 10vw, 136px);

  --wave-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='10' viewBox='0 0 40 10'%3E%3Cpath d='M0 5C5 1 15 1 20 5S35 9 40 5' fill='none' stroke='%238CC4E8' stroke-opacity='.5' stroke-width='1.3'/%3E%3C/svg%3E");
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 8px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  font-family: var(--sans);
  font-size: 1.04rem;
  line-height: 1.62;
  color: var(--ink-2);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
body.menu-open { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
ul, ol { list-style: none; padding: 0; }
h1, h2, h3, h4 { color: var(--ink); font-family: var(--serif); font-weight: 420; line-height: 1.1; text-wrap: balance; }
p { text-wrap: pretty; }
address { font-style: normal; }
[hidden] { display: none !important; }
fieldset { border: 0; padding: 0; min-width: 0; }
::selection { background: var(--sky); color: var(--deep); }
:focus-visible { outline: 2px solid var(--sea); outline-offset: 3px; border-radius: 3px; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; top: 12px; left: 12px; z-index: 100;
  padding: 10px 16px; border-radius: var(--radius);
  background: var(--navy); color: var(--on-navy); font-weight: 600;
  transform: translateY(-160%); transition: transform .2s var(--ease);
}
.skip-link:focus { transform: none; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }

.icon {
  width: 1.25em; height: 1.25em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
}
.icon--inline { display: inline-block; width: 1em; height: 1em; vertical-align: -.12em; }
.nowrap { white-space: nowrap; }

/* ---------- Type helpers ---------- */
h1 em, h2 em { font-style: italic; font-weight: 340; color: var(--sea); }
h2 {
  font-size: clamp(2.1rem, 6vw, 3.5rem);
  line-height: 1.06;
  letter-spacing: -.02em;
  font-variation-settings: "opsz" 120;
}
.label {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 18px;
  font-family: var(--mono);
  font-size: .74rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--sea);
}
.label--light { color: var(--sky); }
.lead { font-size: clamp(1.06rem, 1.6vw, 1.18rem); color: var(--ink-2); }

/* ---------- Buttons ---------- */
.btn {
  --h: 50px;
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: var(--h); padding: 0 22px;
  border-radius: var(--radius);
  font-weight: 600; font-size: 1rem; line-height: 1; white-space: nowrap;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .3s var(--ease);
}
.btn .icon { width: 1.1em; height: 1.1em; transition: transform .3s var(--ease); }
.btn:hover .icon { transform: translateX(3px); }
.btn:hover .icon--ur { transform: translate(2px, -2px); }
.btn:active { transform: translateY(1px); }
.btn--sm { --h: 42px; padding: 0 18px; font-size: .94rem; }
.btn--lg { --h: 56px; padding: 0 26px; font-size: 1.04rem; }
.btn--block { display: flex; width: 100%; }
.btn--navy { background: var(--navy); color: var(--on-navy); }
.btn--navy:hover { background: var(--navy-hover); }
.btn--outline { color: var(--navy); box-shadow: inset 0 0 0 1.5px var(--navy); }
.btn--outline:hover { background: var(--navy); color: var(--on-navy); }
.btn--light { background: var(--paper); color: var(--navy); }
.btn--light:hover { background: #fff; }

.text-link { display: inline-flex; align-items: center; gap: .5em; font-weight: 600; color: var(--navy); }
.text-link .icon { transition: transform .3s var(--ease); }
.text-link:hover .icon { transform: translateX(3px); }
.text-link:hover .icon--ur { transform: translate(2px, -2px); }
.stretched::after { content: ""; position: absolute; inset: 0; z-index: 1; }

/* Ring icon: echoes the concentric rings in the logo */
.ring-icon {
  display: inline-grid; place-items: center; flex: none;
  width: 54px; height: 54px; border-radius: 50%;
  color: var(--navy);
  border: 1px solid var(--line-2);
  box-shadow: inset 0 0 0 5px var(--paper-hi), inset 0 0 0 6px var(--line);
}
.ring-icon .icon { width: 22px; height: 22px; }
.ring-icon--light { color: var(--sky); border-color: rgba(140, 196, 232, .35); box-shadow: inset 0 0 0 5px var(--deep), inset 0 0 0 6px var(--line-deep); }

/* Buoy bullets */
.buoys { display: grid; gap: 9px; }
.buoys li { position: relative; padding-left: 22px; font-size: .96rem; }
.buoys li::before {
  content: ""; position: absolute; left: 1px; top: .52em;
  width: 9px; height: 9px; border-radius: 50%;
  border: 2px solid var(--sea);
}
.buoys--light li { color: var(--on-deep); }
.buoys--light li::before { border-color: var(--sky); }

/* ==========================================================================
   Brand + header
   ========================================================================== */
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--navy); flex: none; }
.brand__mark { width: 40px; height: 40px; }
.brand__type { display: grid; line-height: 1; font-family: var(--sans); }
.brand__name { font-size: 1.4rem; font-weight: 400; letter-spacing: .3em; margin-right: -.3em; text-transform: uppercase; }
.brand__sub { margin-top: 5px; font-size: .56rem; font-weight: 600; letter-spacing: .5em; text-transform: uppercase; color: var(--sea); }
.brand--light { color: #fff; }
.brand--light .brand__sub { color: var(--sky); }

.site-header {
  position: fixed; inset: 0 0 auto; z-index: 60;
  height: var(--header-h);
  transition: background-color .35s var(--ease), box-shadow .35s var(--ease);
}
.site-header.is-scrolled, body.menu-open .site-header {
  background: var(--header-bg);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav { display: none; }
.nav ul { display: flex; gap: clamp(20px, 2.3vw, 30px); }
.nav a {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: .97rem; font-weight: 500; color: var(--ink-2); white-space: nowrap;
  text-decoration: underline wavy transparent 1.4px;
  text-underline-offset: 7px;
  transition: color .2s var(--ease), text-decoration-color .2s var(--ease);
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--navy); text-decoration-color: var(--sky); }
.nav a .icon { width: 15px; height: 15px; color: var(--sea); }
.nav .nav__ext { display: none; }
@media (min-width: 1060px) { .nav .nav__ext { display: block; } }
.header__actions { display: flex; align-items: center; gap: 14px; }
.header__actions .btn { display: none; }
.header__phone { display: none; font-weight: 600; color: var(--navy); white-space: nowrap; }

.nav-toggle { position: relative; width: 46px; height: 46px; margin-right: -8px; color: var(--navy); }
.nav-toggle__bar {
  position: absolute; left: 12px; width: 22px; height: 1.75px; border-radius: 2px; background: currentColor;
  transition: transform .35s var(--ease-out), top .35s var(--ease-out);
}
.nav-toggle__bar:nth-of-type(2) { top: 19px; }
.nav-toggle__bar:nth-of-type(3) { top: 26px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-of-type(2) { top: 22.5px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-of-type(3) { top: 22.5px; transform: rotate(-45deg); }

@media (min-width: 640px) { .header__actions .btn { display: inline-flex; } }
@media (min-width: 960px) {
  :root { --header-h: 78px; }
  .nav { display: block; }
  .nav-toggle { display: none; }
}
@media (min-width: 1200px) { .header__phone { display: inline; } }

/* Mobile menu */
.mobile-menu {
  position: fixed; inset: 0; z-index: 55;
  padding-top: var(--header-h);
  background: var(--paper);
  overflow-y: auto;
  opacity: 0; visibility: hidden;
  clip-path: inset(0 0 100% 0);
  transition: clip-path .55s var(--ease-out), opacity .3s var(--ease), visibility 0s .55s;
}
.mobile-menu.is-open { opacity: 1; visibility: visible; clip-path: inset(0); transition: clip-path .55s var(--ease-out), opacity .2s var(--ease); }
.mobile-menu__inner { position: relative; min-height: 100%; display: flex; flex-direction: column; gap: 32px; padding-block: 20px 40px; }
.mobile-menu__links { display: grid; }
.mobile-menu__links a {
  display: flex; align-items: baseline; gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--serif); font-size: 1.9rem; color: var(--ink); line-height: 1.15;
}
.mobile-menu__links span { width: 44px; flex: none; font-family: var(--mono); font-size: .68rem; letter-spacing: .1em; color: var(--sea); text-transform: uppercase; }
.mobile-menu__footer { display: grid; gap: 10px; margin-top: auto; position: relative; z-index: 1; }
.mobile-menu__ext { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 0 0; font-weight: 600; color: var(--navy); }
.mobile-menu__ext .icon { width: 16px; height: 16px; color: var(--sea); }
.mobile-menu__compass { position: absolute; right: -40px; bottom: 120px; width: 220px; height: 220px; color: var(--navy); opacity: .06; }

/* ==========================================================================
   Hero (type-led: headline, then copy beside something real and useful)
   ========================================================================== */
.hero { position: relative; padding: calc(var(--header-h) + clamp(30px, 6vw, 76px)) 0 calc(clamp(48px, 7vw, 88px) + 30px); }
.dateline {
  display: flex; align-items: center; gap: 16px;
  margin-bottom: clamp(20px, 3vw, 30px);
  font-family: var(--mono); font-size: .72rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--sea);
}
.dateline::after { content: ""; flex: 1; height: 1px; background: var(--line-2); }
.dateline__place { display: none; order: 2; color: var(--ink-3); }
.hero__title {
  max-width: 16em;
  font-size: clamp(2.35rem, 6.6vw, 5.2rem);
  font-weight: 380;
  line-height: 1.03;
  letter-spacing: -.025em;
  font-variation-settings: "opsz" 144;
}
.hero__since { display: block; color: var(--sea); }
.hero__row { display: grid; gap: 44px; margin-top: clamp(26px, 4vw, 46px); }
.hero__lead { max-width: 33em; font-size: clamp(1.06rem, 1.7vw, 1.2rem); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero__actions .btn { flex: 1 1 auto; }
.hero__aside { margin-top: 22px; font-size: .95rem; color: var(--ink-3); }
.hero__aside a {
  font-weight: 600; color: var(--navy);
  text-decoration: underline wavy var(--sky) 1.4px; text-underline-offset: 6px;
  transition: color .2s var(--ease);
}
.hero__aside a:hover { color: var(--sea); }

/* "Need help now?" card (Click Cape Cod) */
.helpdesk {
  overflow: hidden;
  background: var(--paper-hi);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  box-shadow: 0 34px 60px -44px rgba(15, 35, 56, .55);
}
.helpdesk__head { padding: 20px 24px 18px; background: var(--navy); }
.helpdesk__eyebrow { font-family: var(--mono); font-size: .7rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--on-navy-accent); }
.helpdesk__title { margin-top: 6px; font-size: 1.45rem; color: var(--on-navy); }
.helpdesk__rows li { display: grid; grid-template-columns: 4.4rem 1fr; gap: 12px; padding: 18px 24px; }
.helpdesk__rows li + li { border-top: 1px dashed var(--line-2); }
.helpdesk__key { padding-top: .5em; font-family: var(--mono); font-size: .68rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.helpdesk__main { font-family: var(--serif); font-size: 1.3rem; line-height: 1.3; color: var(--ink); transition: color .2s var(--ease); }
.helpdesk__main .icon { display: inline-block; width: .8em; height: .8em; margin-left: 6px; vertical-align: -.04em; color: var(--sea); transition: transform .3s var(--ease); }
.helpdesk__main:hover { color: var(--sea); }
.helpdesk__main:hover .icon { transform: translateX(3px); }
.helpdesk__main:hover .icon--ur { transform: translate(2px, -2px); }
.helpdesk__rows p { margin-top: 2px; font-size: .9rem; color: var(--ink-3); }

/* Real client work (Design Cape Cod): a fanned stack of portfolio sites, see .fan below */
.hero__work { margin: 0; }
.hero__work figcaption { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin-top: 18px; font-family: var(--serif); font-size: 1.05rem; color: var(--ink); text-wrap: balance; }
.hero__work figcaption span { font-family: var(--mono); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: var(--sea); }

@media (min-width: 640px) {
  .dateline__place { display: block; }
  .hero__actions .btn { flex: 0 0 auto; }
}
@media (min-width: 960px) {
  .hero__row { grid-template-columns: minmax(0, 1fr) minmax(340px, 420px); gap: 80px; align-items: start; }
  .hero__row--work { grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: 64px; }
}

/* Large wave at the foot of a band (every hero, and any band followed by a
   different color), the same shape as the top of the footer. It must be the
   last element in the band. Its fill is the next band's color: sand by
   default, or --deep with .edge-wave--deep. */
.edge-wave { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 40px; fill: var(--sand); pointer-events: none; }
.edge-wave--deep { fill: var(--deep); }
.section--wave-end { padding-bottom: calc(var(--section-y) + 30px); }
/* The wave already starts the next band, so the band below it needs less room on top */
:is(.hero, .section--wave-end) + .section { padding-top: clamp(44px, 6vw, 80px); }

/* ---------- Sub-pages: a shorter hero with breadcrumbs ---------- */
.hero--page .hero__title { max-width: 18em; font-size: clamp(2.2rem, 5.4vw, 4.2rem); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 10px; }
.crumbs li + li::before { content: "/"; margin-right: 10px; color: var(--ink-3); }
.crumbs a { transition: color .2s var(--ease); }
.crumbs a:hover { color: var(--navy); }
.crumbs [aria-current] { color: var(--ink-3); }
.mobile-menu__links a[aria-current="page"] { color: var(--sea); }
.footer__col a[aria-current="page"] { color: #fff; }

/* ---------- Home-page summaries ----------
   Each home-page band is a short version of a full page and links to it. */
.more-link { display: flex; width: fit-content; margin-top: 18px; }
.points { display: grid; column-gap: 40px; }
.points li { display: grid; grid-template-columns: 26px 1fr; gap: 14px; padding: 18px 0; border-top: 1px solid var(--line-2); }
.points .icon { width: 22px; height: 22px; margin-top: 3px; color: var(--sea); }
.points strong { display: block; font-family: var(--serif); font-weight: 450; font-size: 1.2rem; line-height: 1.3; color: var(--ink); }
.points span { display: block; margin-top: 3px; font-size: .95rem; line-height: 1.5; }
.points__more { margin-top: 18px; font-size: .95rem; color: var(--ink-3); }
.section--deep .points li { border-color: var(--line-deep); }
.section--deep .points .icon { color: var(--sky); }
.section--deep .points strong { color: #fff; }
.section--deep .points__more { color: var(--on-deep-2); }
@media (min-width: 700px) { .points { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1060px) { .points--3 { grid-template-columns: repeat(3, 1fr); } }

/* Case-study numbers in brief */
.case-brief { display: grid; gap: 14px 40px; align-items: center; margin-top: clamp(36px, 5vw, 52px); padding-top: 26px; border-top: 1px solid var(--line-2); }
.case-brief .stats { margin-top: 0; }
.section--deep .case-brief { border-color: var(--line-deep); }
@media (min-width: 960px) { .case-brief { grid-template-columns: 13rem 1fr auto; } }

/* The crew in brief: initials (or a photo), name and role, each linking to the full bio */
.crew-brief { display: grid; gap: 12px; }
.crew-brief a {
  display: flex; align-items: center; gap: 16px; height: 100%;
  padding: 14px 18px 14px 14px;
  background: var(--paper-hi); border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color .25s var(--ease);
}
.crew-brief a:hover { border-color: var(--line-2); }
.crew-brief__photo {
  position: relative; overflow: hidden; flex: none;
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  background: var(--sand); box-shadow: inset 0 0 0 4px var(--paper-hi), inset 0 0 0 5px var(--line-2);
  font-family: var(--serif); font-style: italic; font-size: 1.15rem; color: var(--sea);
}
.crew-brief__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.crew-brief strong { display: block; font-family: var(--serif); font-weight: 450; font-size: 1.15rem; line-height: 1.25; color: var(--ink); transition: color .2s var(--ease); }
.crew-brief a:hover strong { color: var(--sea); }
.crew-brief small { display: block; margin-top: 4px; font-family: var(--mono); font-size: .62rem; font-weight: 500; letter-spacing: .12em; line-height: 1.5; text-transform: uppercase; color: var(--sea); }
.crew-brief .crew-brief__more { justify-content: center; gap: 8px; min-height: 86px; background: transparent; border-style: dashed; border-color: var(--line-2); font-weight: 600; color: var(--navy); }
.crew-brief__more .icon { width: 1em; height: 1em; transition: transform .3s var(--ease); }
.crew-brief__more:hover .icon { transform: translateX(3px); }
@media (min-width: 640px) { .crew-brief { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .crew-brief { grid-template-columns: repeat(3, 1fr); } }

/* ==========================================================================
   Sections
   ========================================================================== */
.section { position: relative; padding-block: var(--section-y); }
.section--sand { background: var(--sand); }
.section--deep { background: var(--deep); color: var(--on-deep-2); overflow: hidden; }
.section--deep h2, .section--deep h3 { color: #fff; }
.section--deep h2 em { color: var(--sky); }
.section--deep .lead { color: var(--on-deep-2); }
.section--compact { padding-block: clamp(56px, 7vw, 88px); }

.section-head { max-width: 760px; margin-bottom: clamp(40px, 6vw, 64px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .label { justify-content: center; }
.section-head .lead { margin-top: 20px; }

.split-head { display: grid; gap: 20px; margin-bottom: clamp(40px, 6vw, 64px); }
@media (min-width: 960px) {
  .split-head { grid-template-columns: 1fr 1fr; gap: 64px; align-items: end; }
}

/* ---------- Service ledger (web services) ---------- */
.ledger { display: grid; column-gap: 64px; }
.ledger__item {
  display: grid; grid-template-columns: 52px 1fr; gap: 8px;
  padding: 28px 0 34px;
  border-top: 1px solid var(--line-2);
}
.ledger__num { font-family: var(--serif); font-style: italic; font-size: 1.5rem; line-height: 1.1; color: var(--sea); }
.ledger__item h3 { display: flex; align-items: center; gap: 12px; font-size: 1.55rem; margin-bottom: 10px; }
.ledger__item h3 .icon { width: 22px; height: 22px; color: var(--sea); }
.ledger__item p { margin-bottom: 16px; }
@media (min-width: 840px) { .ledger { grid-template-columns: 1fr 1fr; } }

/* ---------- Course (4-step process) ---------- */
.course {
  margin-top: clamp(40px, 6vw, 72px);
  padding: clamp(26px, 4vw, 44px);
  background: var(--paper-hi);
  border-radius: var(--radius);
  border: 1px solid var(--line);
}
.course__title { font-size: 1.5rem; margin-bottom: 28px; }
.course__steps { position: relative; display: grid; gap: 26px; }
.course__steps::before {
  content: ""; position: absolute; left: 9px; top: 10px; bottom: 30px; width: 1.5px;
  background: linear-gradient(var(--navy) 50%, transparent 0) 0 0 / 1.5px 10px repeat-y;
  opacity: .5;
}
.course__steps li { position: relative; padding-left: 40px; }
.course__mark {
  position: absolute; left: 0; top: 2px;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--paper-hi); border: 2px solid var(--navy);
}
.course__mark::after { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: var(--sky); }
.course__mark--port { border-color: var(--buoy); }
.course__mark--port::after { background: var(--buoy); }
.course__leg { font-family: var(--mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--sea); }
.course__steps h4 { font-size: 1.25rem; margin: 2px 0 6px; }
.course__steps p { font-size: .95rem; }
@media (min-width: 840px) {
  .course__steps { grid-template-columns: repeat(4, 1fr); gap: 28px; }
  .course__steps::before {
    left: 10px; right: 10%; top: 9px; bottom: auto; width: auto; height: 1.5px;
    background: linear-gradient(90deg, var(--navy) 50%, transparent 0) 0 0 / 10px 1.5px repeat-x;
  }
  .course__steps li { padding: 40px 0 0; }
}

/* ---------- IT services ---------- */
.deep__contours { position: absolute; top: 0; right: 0; width: min(1000px, 140%); height: auto; color: var(--sky); opacity: .1; pointer-events: none; }
.section--deep > .container { position: relative; }
.it-grid { display: grid; gap: 16px; }
.it-card {
  display: flex; flex-direction: column; gap: 14px;
  padding: clamp(24px, 3.4vw, 34px);
  border: 1px solid var(--line-deep);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .025);
  transition: border-color .3s var(--ease), background-color .3s var(--ease);
}
.it-card:hover { border-color: rgba(140, 196, 232, .4); background: rgba(255, 255, 255, .045); }
.it-card h3 { font-size: 1.45rem; }
.it-card .buoys { margin-top: 4px; }
@media (min-width: 700px) { .it-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1060px) {
  /* wide cards: icon in its own column beside the text */
  .it-card { display: grid; grid-template-columns: auto 1fr; gap: 10px 26px; align-content: start; }
  .it-card > .ring-icon { grid-row: span 3; }
  .it-card h3 { margin-top: 10px; }
  .it-card .buoys { margin-top: 6px; }
}

/* Smaller jobs, listed after the four focus areas */
.it-more {
  display: grid; gap: 18px;
  margin-top: clamp(36px, 5vw, 52px);
  padding-top: 26px;
  border-top: 1px solid var(--line-deep);
}
.it-more .it-more__title { font-family: var(--mono); font-size: .72rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--sky); }
.it-more ul { display: grid; gap: 20px 40px; }
.it-more li { display: grid; grid-template-columns: 26px 1fr; gap: 14px; }
.it-more .icon { width: 22px; height: 22px; margin-top: 3px; color: var(--sky); }
.it-more strong { display: block; font-family: var(--serif); font-weight: 450; font-size: 1.15rem; line-height: 1.3; color: #fff; }
.it-more span { display: block; margin-top: 2px; font-size: .93rem; line-height: 1.5; }
@media (min-width: 700px) { .it-more ul { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1060px) { .it-more { grid-template-columns: 11rem 1fr; gap: 32px; align-items: baseline; } }
/* The same list on a light band */
.section:not(.section--deep) .it-more { border-color: var(--line-2); }
.section:not(.section--deep) .it-more :is(.it-more__title, .icon) { color: var(--sea); }
.section:not(.section--deep) .it-more strong { color: var(--ink); }

/* Small status badge (e.g. "Lenovo Authorized Reseller"), set in our own type */
.badge {
  display: inline-flex; align-items: center; gap: 6px; width: fit-content;
  margin-top: 10px; padding: 5px 11px 5px 8px;
  border: 1px solid var(--line-2); border-radius: 999px;
  font-family: var(--mono); font-size: .64rem; font-weight: 500; font-style: normal; letter-spacing: .12em; line-height: 1.2;
  text-transform: uppercase; color: var(--sea);
}
.badge .icon { width: 14px; height: 14px; margin: 0; color: inherit; }
.section--deep .badge { border-color: rgba(140, 196, 232, .4); color: var(--sky); }

/* Remote support strip */
.remote {
  display: grid; gap: 18px; justify-items: start;
  margin-top: clamp(36px, 5vw, 52px);
  padding: clamp(22px, 3.4vw, 30px);
  border: 1px dashed rgba(140, 196, 232, .45);
  border-radius: var(--radius);
}
.remote h3 { font-size: 1.35rem; }
.remote p { margin-top: 4px; }
.remote .btn .icon { width: 1em; height: 1em; }
@media (min-width: 960px) {
  .remote { grid-template-columns: auto 1fr auto; align-items: center; gap: 24px; }
}

/* Offer strips: a question, a line of copy and one button that pre-fills the form */
.offer {
  display: grid; gap: 18px; justify-items: start; align-content: start;
  margin-top: clamp(36px, 5vw, 52px);
  padding: clamp(22px, 3.4vw, 32px);
  background: var(--paper-hi);
  border: 1px dashed var(--line-2);
  border-radius: var(--radius);
}
.offer h3 { font-size: 1.35rem; }
.offer p { margin-top: 6px; max-width: 44em; }
.offer .btn { white-space: normal; text-align: center; line-height: 1.2; }
.section--sand .offer .ring-icon { box-shadow: inset 0 0 0 5px var(--paper-hi), inset 0 0 0 6px var(--line); }
.section--deep .offer { background: rgba(255, 255, 255, .03); border-color: rgba(140, 196, 232, .45); }
.offers { display: grid; gap: 16px; margin-top: clamp(36px, 5vw, 52px); }
.offers .offer { margin-top: 0; }
@media (min-width: 840px) { .offers { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) {
  .offer:not(.offers .offer) { grid-template-columns: auto 1fr auto; align-items: center; gap: 24px; }
  .offers .offer { grid-template-columns: auto 1fr; column-gap: 20px; }
  .offers .offer > div { align-self: center; }
  .offers .offer .btn { grid-column: 2; }
}

/* ---------- Practical AI ---------- */
.ai-grid { display: grid; column-gap: 64px; }
.ai-item {
  display: grid; grid-template-columns: auto 1fr; gap: 12px 20px; align-items: center; align-content: start;
  padding: 26px 0 30px;
  border-top: 1px solid var(--line-2);
}
.ai-item h3 { font-size: 1.4rem; }
.ai-item p { grid-column: 1 / -1; }
.ai-note {
  display: flex; gap: 14px; align-items: flex-start;
  margin-top: 12px; padding: 20px 24px;
  background: var(--paper-hi);
  border: 1px dashed var(--line-2); border-radius: var(--radius);
}
.ai-note .icon { width: 24px; height: 24px; margin-top: 3px; color: var(--buoy); }
.ai-note p { font-family: var(--serif); font-size: 1.15rem; line-height: 1.45; color: var(--ink); }
.section--sand .ai-item .ring-icon { box-shadow: inset 0 0 0 5px var(--sand), inset 0 0 0 6px var(--line); }
.section--deep .ai-item { border-color: var(--line-deep); }
.section--deep .ai-note { background: rgba(255, 255, 255, .03); border-color: rgba(140, 196, 232, .4); }
.section--deep .ai-note p { color: #fff; }
.section--deep .ai-note .icon { color: var(--sky); }
@media (min-width: 640px) {
  .ai-item p { grid-column: 2; }
  .ai-note p { text-wrap: balance; }
}
@media (min-width: 840px) { .ai-grid { grid-template-columns: 1fr 1fr; } }

/* ---------- Business & home ---------- */
.audience { display: grid; gap: 16px; }
.audience__card {
  padding: clamp(24px, 3.4vw, 34px);
  border-radius: var(--radius);
  background: var(--paper-hi);
  border: 1px solid var(--line);
  color: var(--ink-2);
}
.audience__card h3 { color: var(--ink); font-size: 1.45rem; }
.audience__head { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.audience__head p { font-size: .95rem; }
.audience__card .buoys li { color: var(--ink-2); }
.audience__card:nth-child(2) { background: var(--sand); border-color: transparent; }
.audience__card:nth-child(2) .ring-icon { box-shadow: inset 0 0 0 5px var(--sand), inset 0 0 0 6px var(--line); }
@media (min-width: 760px) { .audience { grid-template-columns: 1fr 1fr; } }

/* ---------- Sister-company section ---------- */
.sister { display: grid; gap: 52px; align-items: center; }
.sister__copy .lead { margin-top: 20px; }
.sister__list { display: grid; margin-top: 30px; }
.sister__list li { display: grid; grid-template-columns: 26px 1fr; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line-2); }
.sister__list .icon { width: 22px; height: 22px; margin-top: 3px; color: var(--sea); }
.sister__list strong { display: block; font-family: var(--serif); font-weight: 450; font-size: 1.15rem; line-height: 1.3; color: var(--ink); }
.sister__list span { display: block; margin-top: 2px; font-size: .93rem; line-height: 1.5; }
.sister__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; margin-top: 32px; }
.sister__actions .btn .icon { width: 1em; height: 1em; }
.sister__by {
  display: flex; align-items: center; gap: 12px; margin-bottom: 26px;
  font-family: var(--mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3);
}
.sister__by .brand__mark { width: 34px; height: 34px; }
.sister__by .brand__name { font-size: 1.15rem; }
.sister__by .brand__sub { font-size: .5rem; }
.sister__by::before { content: ""; order: 2; flex: 1; height: 1px; background: var(--line-2); }
.sister__by small { order: 3; font: inherit; }
@media (min-width: 1000px) { .sister { grid-template-columns: 1fr 1.05fr; gap: 80px; } }

/* Fanned stack of site screenshots */
.fan { position: relative; aspect-ratio: 10 / 8.4; max-width: 600px; width: 100%; margin-inline: auto; }
.hero__work .fan { margin-inline: 0; }
.fan a { position: absolute; width: 72%; transition: rotate .5s var(--ease), translate .5s var(--ease); }
.fan a:nth-child(1) { left: 0; top: 0; rotate: -4deg; }
.fan a:nth-child(2) { right: 0; top: 16%; rotate: 3.5deg; }
.fan a:nth-child(3) { left: 13%; bottom: 0; rotate: -1deg; z-index: 2; }
.fan a:hover { translate: 0 -6px; rotate: 0deg; z-index: 3; }
.fan .browser__bar span { max-width: 80%; }

/* Icon tiles (IT services in brief) */
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tiles li {
  display: flex; flex-direction: column; gap: 16px;
  padding: clamp(18px, 2.6vw, 24px);
  background: var(--paper-hi);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-family: var(--serif); font-size: 1.12rem; line-height: 1.25; color: var(--ink);
}
.tiles li:nth-child(4n + 1), .tiles li:nth-child(4n + 4) { background: var(--navy); border-color: var(--navy); color: var(--on-navy); }
.tiles li:nth-child(4n + 1) .ring-icon, .tiles li:nth-child(4n + 4) .ring-icon { color: var(--on-navy-accent); border-color: rgba(140, 196, 232, .35); box-shadow: inset 0 0 0 5px var(--navy), inset 0 0 0 6px var(--line-deep); }
.tiles small { display: block; margin-top: 4px; font-family: var(--sans); font-size: .85rem; color: var(--ink-3); }
.tiles li:nth-child(4n + 1) small, .tiles li:nth-child(4n + 4) small { color: var(--on-navy-2); }
.tiles__more { margin-top: 16px; font-size: .93rem; color: var(--ink-3); }

/* ---------- Browser + phone frames (portfolio) ---------- */
.browser {
  overflow: hidden;
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 0 0 1px var(--line-2), 0 26px 44px -28px rgba(15, 35, 56, .55);
}
.browser__bar {
  display: flex; align-items: center; gap: 5px;
  height: 24px; padding: 0 10px;
  background: var(--sand);
  border-bottom: 1px solid var(--line);
}
.browser__bar i { width: 7px; height: 7px; border-radius: 50%; background: var(--sand-2); box-shadow: inset 0 0 0 1px var(--line-2); }
.browser__bar i:first-child { background: var(--buoy); box-shadow: none; opacity: .8; }
.browser__bar span {
  margin-inline: auto; padding: 1px 12px; max-width: 60%;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  border-radius: 999px; background: var(--paper-hi);
  font-family: var(--mono); font-size: .58rem; letter-spacing: .04em; color: var(--ink-3);
}
.browser img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; background: var(--sand); }
.phone {
  position: absolute; right: 0; bottom: 0;
  width: 23%;
  padding: 4px;
  border-radius: 13px;
  background: var(--deep);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .08) inset, 0 22px 30px -16px rgba(15, 35, 56, .6);
}
.phone img { width: 100%; height: auto; aspect-ratio: 300 / 650; object-fit: cover; object-position: top; border-radius: 9px; background: var(--sand); }

/* ---------- Portfolio ---------- */
.work__media { position: relative; display: block; padding: 0 8% 7% 0; }
.work__name { font-size: 1.35rem; letter-spacing: -.01em; }
.work__meta { font-family: var(--mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--sea); }
.work__tags { font-family: var(--mono); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }

.work-feature { display: grid; gap: 36px; align-items: center; margin-bottom: clamp(56px, 8vw, 96px); }
.work-feature .work__media { transition: translate .5s var(--ease); }
.work-feature .work__media:hover { translate: 0 -4px; }
.work-feature .work__name { font-size: clamp(1.9rem, 4vw, 2.6rem); margin: 10px 0 14px; }
.work-feature p:not([class]) { max-width: 32em; }
.work-feature .work__tags { margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--line-2); }
.work-feature .text-link { margin-top: 22px; }
.work-feature .text-link .icon, .work-card .icon { width: 1em; height: 1em; }
@media (min-width: 960px) { .work-feature { grid-template-columns: 1.4fr 1fr; gap: 64px; } }

.work-grid {
  display: flex; gap: 16px;
  overflow-x: auto; scroll-snap-type: x mandatory;
  margin-inline: calc(var(--gutter) * -1);
  padding: 4px var(--gutter) 16px;
  scroll-padding-inline: var(--gutter);
  scrollbar-width: thin;
}
.work-card { flex: 0 0 min(82%, 360px); scroll-snap-align: start; }
.work-card a { position: relative; display: grid; gap: 4px; }
.work-card .work__media { margin-bottom: 14px; transition: translate .45s var(--ease); }
.work-card a:hover .work__media { translate: 0 -4px; }
.work-card .work__name { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.work-card .work__name .icon { color: var(--sea); transition: transform .3s var(--ease); }
.work-card a:hover .work__name .icon { transform: translate(2px, -2px); }
.work-card a:hover .work__name { color: var(--sea); }
@media (min-width: 760px) {
  .work-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px 32px; overflow: visible; margin: 0; padding: 0; }
}
@media (min-width: 1080px) { .work-grid { grid-template-columns: repeat(3, 1fr); } }
.work-hint {
  display: flex; align-items: center; gap: 6px; margin-top: 6px;
  font-family: var(--mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3);
}
.work-hint .icon { width: 14px; height: 14px; color: var(--sea); }
@media (min-width: 760px) { .work-hint { display: none; } }

.work-more {
  display: grid; gap: 14px;
  margin-top: clamp(48px, 7vw, 80px);
  padding-top: 26px;
  border-top: 1px solid var(--line-2);
}
.work-more h3 { font-family: var(--mono); font-size: .72rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.work-more ul { display: flex; flex-wrap: wrap; gap: 10px 32px; }
.work-more a { display: inline-flex; align-items: baseline; gap: 8px; font-family: var(--serif); font-size: 1.12rem; color: var(--ink); }
.work-more a span { font-family: var(--sans); font-size: .88rem; color: var(--ink-3); }
.work-more a .icon { width: .9em; height: .9em; align-self: center; color: var(--sea); }
.work-more a:hover { color: var(--sea); }
@media (min-width: 840px) { .work-more { grid-template-columns: auto 1fr; align-items: baseline; gap: 32px; } }

/* Case study: a portfolio feature with a few real numbers */
.case { margin: clamp(56px, 8vw, 96px) 0 0; }
.stats { display: grid; gap: 10px; margin-top: 24px; }
.stats div { display: flex; align-items: baseline; gap: 14px; }
.stats dd {
  margin: 0; order: -1;
  font-family: var(--serif); font-weight: 340; font-size: clamp(1.6rem, 3.2vw, 2.3rem); line-height: 1;
  letter-spacing: -.02em; font-variation-settings: "opsz" 144; color: var(--ink);
}
.stats dt { font-family: var(--mono); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
@media (min-width: 560px) {
  .stats { grid-template-columns: repeat(3, auto); justify-content: start; gap: 12px clamp(24px, 4vw, 44px); }
  .stats div { flex-direction: column; align-items: flex-start; gap: 6px; }
}
.section--deep .work__meta { color: var(--sky); }
.section--deep .work__tags { color: var(--on-deep-2); border-color: var(--line-deep); }
.section--deep .work-feature p:not([class]) { color: var(--on-deep-2); }
.section--deep .text-link { color: #fff; }
.section--deep .text-link .icon { color: var(--sky); }
.section--deep .stats dd { color: #fff; }
.section--deep .stats dt { color: var(--on-deep-2); }
.section--deep .phone { box-shadow: 0 0 0 1px rgba(140, 196, 232, .3), 0 22px 30px -16px rgba(0, 0, 0, .6); }
.section--deep .browser { box-shadow: 0 0 0 1px rgba(140, 196, 232, .2), 0 26px 44px -28px rgba(0, 0, 0, .7); }

/* ---------- Since 1998 ---------- */
.since__grid { display: grid; gap: 52px; align-items: center; }
.plaque {
  position: relative;
  display: grid; justify-items: center; gap: 12px;
  width: min(100%, 440px); justify-self: center;
  padding: clamp(36px, 6vw, 56px) clamp(22px, 4vw, 40px) clamp(30px, 5vw, 46px);
  text-align: center;
  color: var(--navy);
  background: var(--paper);
  border-radius: 4px;
  box-shadow: inset 0 0 0 7px var(--paper), inset 0 0 0 8px var(--navy), 0 40px 60px -30px rgba(0, 0, 0, .55);
}
.plaque::before {
  /* four screw heads */
  content: ""; position: absolute; inset: 17px; pointer-events: none;
  --screw: radial-gradient(circle, var(--navy) 0 2px, transparent 2.6px), radial-gradient(circle, transparent 0 3.6px, var(--line-2) 4px 4.6px, transparent 5px);
  background: var(--screw), var(--screw), var(--screw), var(--screw);
  background-size: 12px 12px;
  background-repeat: no-repeat;
  background-position: top left, top left, top right, top right, bottom left, bottom left, bottom right, bottom right;
}
.plaque__est, .plaque__place { font-family: var(--mono); font-size: .72rem; font-weight: 500; letter-spacing: .32em; margin-right: -.32em; text-transform: uppercase; color: var(--sea); }
.plaque__year {
  font-family: var(--serif); font-style: italic; font-weight: 300;
  font-size: clamp(5.4rem, 21vw, 9.6rem); line-height: .92;
  letter-spacing: -.035em;
  font-variation-settings: "opsz" 144;
}
.plaque__rule { width: 72%; height: 10px; background: var(--wave) center / 40px 10px repeat-x; }
.plaque__mark { width: 30px; height: 30px; margin-bottom: 2px; }

.since__copy .lead { margin-top: 20px; }
.log { display: grid; margin-top: 34px; }
.log li { display: grid; gap: 4px 24px; padding: 18px 0; border-top: 1px solid var(--line-deep); }
.log__when { font-family: var(--serif); font-style: italic; font-size: 1.3rem; line-height: 1.3; color: var(--sky); }
.log p { color: var(--on-deep); }
@media (min-width: 520px) { .log li { grid-template-columns: 8.5rem 1fr; } }
@media (min-width: 960px) { .since__grid { grid-template-columns: .82fr 1.18fr; gap: 80px; } }

/* ---------- About ---------- */
.about { display: grid; gap: 56px; align-items: center; }
.about .lead { margin-top: 20px; }
.values { display: grid; gap: 0 32px; margin-top: 36px; }
.values li { padding: 20px 0; border-top: 1px solid var(--line-2); }
.values .icon { width: 24px; height: 24px; color: var(--sea); margin-bottom: 10px; }
.values h3 { font-size: 1.2rem; margin-bottom: 4px; }
.values p { font-size: .95rem; }
@media (min-width: 640px) { .values { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .about { grid-template-columns: 1fr 1fr; gap: 72px; } }

/* Nautical chart of Cape Cod (dot positions come from Census town boundaries) */
.chart { margin: 0; }
.chart__frame {
  position: relative;
  padding: clamp(34px, 5vw, 46px) clamp(16px, 3.4vw, 30px);
  background: var(--paper-hi);
  border: 1.5px solid var(--navy);
  box-shadow: inset 0 0 0 7px var(--paper-hi), inset 0 0 0 8px var(--navy), 0 30px 50px -36px rgba(15, 35, 56, .5);
}
.chart__frame::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    repeating-linear-gradient(90deg, var(--navy) 0 18px, transparent 18px 36px) top left / 100% 3.5px no-repeat,
    repeating-linear-gradient(90deg, var(--navy) 0 18px, transparent 18px 36px) bottom left / 100% 3.5px no-repeat,
    repeating-linear-gradient(180deg, var(--navy) 0 18px, transparent 18px 36px) top left / 3.5px 100% no-repeat,
    repeating-linear-gradient(180deg, var(--navy) 0 18px, transparent 18px 36px) top right / 3.5px 100% no-repeat;
  opacity: .9;
}
.chart__coord { position: absolute; font-family: var(--mono); font-size: .62rem; letter-spacing: .06em; color: var(--ink-3); }
.chart__coord--tl { top: 14px; left: 18px; }
.chart__coord--br { bottom: 14px; right: 18px; }
.chart__svg { width: 100%; height: auto; overflow: visible; }
.chart__svg use { color: var(--navy); }
.chart__dots { fill: none; stroke: var(--navy); stroke-width: 3; stroke-linecap: round; opacity: .84; }
.chart__dots--mid { stroke-width: 2.3; opacity: .66; }
.chart__dots--small { stroke-width: 1.6; opacity: .5; }
.chart__land { fill: none; stroke: var(--navy); stroke-width: 2; stroke-linecap: round; opacity: .14; }
.chart__soundings text { font-family: var(--serif); font-style: italic; font-size: 8.5px; fill: var(--ink-3); opacity: .7; }
.chart__water { font-family: var(--serif); font-style: italic; font-size: 12px; fill: var(--sea); letter-spacing: .04em; }
.chart__water--sm { font-size: 9.5px; }
.chart__labels text {
  font-family: var(--sans); font-size: 8px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; fill: var(--ink-2);
  paint-order: stroke; stroke: var(--paper-hi); stroke-width: 3px;
}
.chart__leader { fill: none; stroke: var(--navy); stroke-width: 1; stroke-dasharray: 2 3; }
.chart__home { font-family: var(--serif); font-style: italic; font-size: 14px; font-weight: 500; fill: var(--navy); paint-order: stroke; stroke: var(--paper-hi); stroke-width: 3px; }
.chart__port { font-family: var(--mono); font-size: 7.5px; letter-spacing: .16em; fill: var(--buoy); }
.chart__pulse { fill: none; stroke: var(--buoy); stroke-width: 1.5; transform-box: fill-box; transform-origin: center; animation: ping 2.6s var(--ease-out) infinite; }
@keyframes ping { from { transform: scale(.4); opacity: .9; } to { transform: scale(1.6); opacity: 0; } }
.chart__caption { margin-top: 16px; text-align: center; font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }

/* ---------- Team ---------- */
.crew { display: grid; gap: 14px; }
.crew__card {
  display: grid; grid-template-columns: 96px 1fr; gap: 14px 18px; align-items: center;
  padding: 18px;
  background: var(--paper-hi);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.crew__photo {
  position: relative; overflow: hidden;
  display: grid; place-items: center;
  aspect-ratio: 1 / 1;
  border-radius: 4px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 240' preserveAspectRatio='none'%3E%3Cg fill='none' stroke='%2316304D' stroke-opacity='.08' stroke-width='1.2'%3E%3Cpath d='M-20 52c40-22 80 14 130-6s70-40 140-18'/%3E%3Cpath d='M-20 92c46-20 84 16 134-4s72-36 136-16'/%3E%3Cpath d='M-20 132c50-18 88 18 138-2s74-32 132-14'/%3E%3Cpath d='M-20 172c54-16 92 20 142 0s76-28 128-12'/%3E%3Cpath d='M-20 212c58-14 96 22 146 2s78-24 124-10'/%3E%3C/g%3E%3C/svg%3E") center / 100% 100% no-repeat,
    radial-gradient(120% 90% at 30% 15%, var(--paper-hi), var(--sand) 70%);
  box-shadow: inset 0 0 0 5px var(--sand), inset 0 0 0 6px var(--line-2);
}
/* The photo sits inside the frame's mat and rule, lined up with the empty frames */
.crew__photo img { position: absolute; inset: 6px; z-index: 1; width: calc(100% - 12px); height: calc(100% - 12px); object-fit: cover; border-radius: 1px; }
.crew__initials { font-family: var(--serif); font-style: italic; font-weight: 300; font-size: 2rem; letter-spacing: .02em; color: var(--sea); }
.crew__soon {
  position: absolute; left: 0; right: 0; bottom: 9%;
  display: none; text-align: center;
  font-family: var(--mono); font-size: .58rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3);
}
.crew__name { font-size: 1.35rem; }
.crew__role { margin-top: 6px; font-family: var(--mono); font-size: .66rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--sea); line-height: 1.5; }
.crew__bio { grid-column: 1 / -1; font-size: .95rem; }
.crew__card--open { background: transparent; border-style: dashed; border-color: var(--line-2); }
.crew__card--open .crew__photo { background: transparent; box-shadow: none; outline: 1.5px dashed var(--line-2); outline-offset: -6px; }
@media (min-width: 640px) {
  .crew { grid-template-columns: 1fr 1fr; gap: 44px 28px; }
  .crew__card { grid-template-columns: 1fr; align-items: start; align-content: start; gap: 0; padding: 0; background: none; border: 0; }
  .crew__card--open { padding: 0; }
  .crew__photo { margin-bottom: 20px; }
  .crew__initials { font-size: clamp(3rem, 7vw, 4.4rem); }
  .crew__soon { display: block; }
  .crew__bio { margin-top: 12px; }
}
@media (min-width: 1000px) { .crew { grid-template-columns: repeat(3, 1fr); gap: 56px 36px; } }

/* ---------- Testimonials (hidden until real quotes are in) ---------- */
.quotes {
  display: flex; gap: 16px;
  overflow-x: auto; scroll-snap-type: x mandatory;
  padding-bottom: 12px;
  margin-inline: calc(var(--gutter) * -1);
  padding-inline: var(--gutter);
  scroll-padding-inline: var(--gutter);
  scrollbar-width: thin;
}
.quote {
  flex: 0 0 min(84%, 380px);
  scroll-snap-align: start;
  display: flex; flex-direction: column; gap: 18px;
  padding: clamp(24px, 3.4vw, 32px);
  background: var(--paper-hi);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.quote blockquote { flex: 1; }
.quote blockquote p { font-family: var(--serif); font-size: 1.14rem; font-weight: 380; line-height: 1.5; color: var(--ink); }
.quote blockquote p::before { content: "\201C"; display: block; height: .5em; margin-bottom: 4px; font-size: 3.2em; line-height: 1; color: var(--sky); }
.quote__by { padding-top: 16px; border-top: 1px dashed var(--line-2); font-size: .92rem; }
.quote__by strong { color: var(--ink); font-weight: 600; }
.quote__by span { display: block; margin-top: 4px; font-family: var(--mono); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: var(--sea); }
.quote--feature { background: var(--navy); border-color: var(--navy); color: var(--on-navy-2); }
.quote--feature blockquote p { color: var(--on-navy); font-style: italic; font-weight: 320; font-size: clamp(1.3rem, 2.4vw, 1.75rem); line-height: 1.38; }
.quote--feature blockquote p::before { color: var(--on-navy-accent); }
.quote--feature .quote__by { border-color: var(--line-deep); }
.quote--feature .quote__by strong { color: var(--on-navy); }
.quote--feature .quote__by span { color: var(--on-navy-accent); }
@media (min-width: 960px) {
  .quotes {
    display: grid; grid-template-columns: 1.35fr 1fr 1fr; gap: 18px;
    overflow: visible; margin: 0; padding: 0;
  }
  .quote--feature { grid-row: span 2; padding: 44px; }
}

/* ---------- Contact (postcard) ---------- */
.contact { padding-block: clamp(72px, 9vw, 120px); }
.postcard {
  position: relative;
  display: grid; gap: 36px;
  padding: clamp(26px, 5vw, 56px) clamp(20px, 5vw, 56px);
  background: var(--paper);
  color: var(--ink-2);
  border-radius: var(--radius);
  box-shadow: 0 50px 80px -40px rgba(0, 0, 0, .6);
  overflow: hidden;
}
.postcard::before {
  /* airmail edge */
  content: ""; position: absolute; inset: 0 0 auto; height: 7px;
  background: repeating-linear-gradient(-45deg, var(--buoy) 0 12px, transparent 12px 22px, var(--navy) 22px 34px, transparent 34px 44px);
}
.section--deep .postcard h2 { color: var(--ink); font-size: clamp(2rem, 4.6vw, 3rem); }
.section--deep .postcard h2 em { color: var(--sea); }
.section--deep .postcard h3 { color: var(--ink); }
.postcard__note > p { margin-top: 18px; max-width: 30em; }
.contact__list { display: grid; gap: 18px; margin-top: 30px; }
.contact__list li { display: flex; gap: 14px; }
.contact__list .icon { width: 22px; height: 22px; margin-top: 4px; color: var(--sea); }
.contact__label { display: block; font-family: var(--mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.contact__list a { font-family: var(--serif); font-size: 1.25rem; color: var(--ink); line-height: 1.3; }
.contact__list a:hover { color: var(--sea); }
.postmark { width: 210px; margin-top: 34px; color: var(--navy); opacity: .32; rotate: -6deg; font-family: var(--mono); }

.postcard__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 18px; }
.postcard__head h3 { font-size: 1.5rem; }
.postcard__head p { font-size: .85rem; color: var(--ink-3); }
.postcard__head p span { color: var(--buoy); }
.stamp-post {
  flex: none;
  padding: 5px;
  background: radial-gradient(circle, transparent 2.6px, #fff 3px) -5px -5px / 10px 10px;
  rotate: 4deg;
  filter: drop-shadow(0 3px 6px rgba(15, 35, 56, .15));
}
.stamp-post span {
  display: grid; justify-items: center; gap: 4px;
  width: 70px; padding: 9px 6px 7px;
  background: var(--navy);
  outline: 1px solid rgba(140, 196, 232, .4); outline-offset: -4px;
}
.stamp-post svg { width: 36px; height: 36px; }
.stamp-post b { font-family: var(--mono); font-size: .5rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--sky); }

@media (min-width: 960px) {
  .postcard { grid-template-columns: .9fr 1.1fr; gap: 0; }
  .postcard__note { padding-right: 48px; }
  .postcard__form { padding-left: 48px; border-left: 1px solid var(--line-2); }
}

/* Form */
.form { display: grid; gap: 22px; }
.form__row { display: grid; gap: 22px; }
@media (min-width: 640px) { .form__row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 6px; align-content: start; }
.field label, .field legend {
  font-family: var(--mono); font-size: .7rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3);
}
.field legend { margin-bottom: 8px; }
.field label span[aria-hidden], .field legend span[aria-hidden] { color: var(--buoy); }
.field__opt { text-transform: none; letter-spacing: 0; }
.field .chips label, .field .segmented label { font-family: var(--sans); font-size: inherit; font-weight: inherit; letter-spacing: 0; text-transform: none; color: inherit; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field textarea {
  width: 100%;
  padding: 8px 0;
  border: 0; border-bottom: 1.5px solid var(--line-2);
  border-radius: 0;
  background: transparent;
  font-size: 1.06rem; color: var(--ink);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field textarea {
  resize: vertical; min-height: 128px;
  padding: 0;
  line-height: 32px;
  border-bottom: 0;
  background: repeating-linear-gradient(transparent 0 31px, var(--line-2) 31px 32px);
  background-attachment: local;
}
.field textarea::placeholder { color: var(--ink-3); opacity: .7; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 1.5px 0 var(--navy); }
.field textarea:focus { box-shadow: none; background: repeating-linear-gradient(transparent 0 31px, var(--navy) 31px 32px); }
.field.is-invalid input { border-color: var(--danger); box-shadow: 0 1.5px 0 var(--danger); }
.field__error { font-size: .85rem; color: var(--danger); }
.field__error:empty { display: none; }

.segmented { display: inline-flex; padding: 3px; border: 1px solid var(--line-2); border-radius: 999px; }
.segmented label { position: relative; }
.segmented input, .chips input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.segmented span { display: block; padding: 8px 18px; border-radius: 999px; font-size: .92rem; font-weight: 500; color: var(--ink-2); transition: background-color .2s var(--ease), color .2s var(--ease); }
.segmented input:checked + span { background: var(--navy); color: var(--on-navy); }
.segmented input:focus-visible + span, .chips input:focus-visible + span { outline: 2px solid var(--sea); outline-offset: 2px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { position: relative; }
.chips span {
  display: block; padding: 7px 14px;
  border: 1px solid var(--line-2); border-radius: 999px;
  font-size: .9rem; color: var(--ink-2);
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.chips label:hover span { border-color: var(--navy); }
.chips input:checked + span { background: var(--navy); border-color: var(--navy); color: var(--on-navy); }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@keyframes spin { to { transform: rotate(360deg); } }
.form__submit .spinner {
  display: none; width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid color-mix(in srgb, currentColor 30%, transparent); border-top-color: currentColor;
  animation: spin .8s linear infinite;
}
.form.is-loading .form__submit { pointer-events: none; opacity: .85; }
.form.is-loading .form__submit .icon { display: none; }
.form.is-loading .form__submit .spinner { display: block; }
.form__status { font-size: .92rem; }
.form__status:empty { display: none; }
.form__status.is-error { padding: 12px 14px; border-radius: var(--radius); color: #8F2724; background: #FBECE8; }
.form__status a { font-weight: 600; text-decoration: underline; }
.form-success { display: grid; justify-items: center; gap: 14px; padding: 48px 8px; text-align: center; }
.form-success:focus { outline: none; }
.form-success h3 { font-size: 1.6rem; }
.form-success a { color: var(--sea); font-weight: 600; }
.form-success__check { width: 56px; height: 56px; fill: none; stroke: var(--sea); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Family of companies ---------- */
.network { display: grid; gap: 28px; }
.network .label { margin-bottom: 8px; }
.network__title { font-size: clamp(1.35rem, 2.6vw, 1.7rem); }
.network__list { display: grid; }
.network__list a {
  position: relative;
  display: grid; grid-template-columns: 1fr auto; column-gap: 12px;
  padding: 16px 0;
  border-top: 1px solid var(--line-2);
}
.network__list strong { font-family: var(--serif); font-weight: 450; font-size: 1.18rem; color: var(--ink); }
.network__list span:not(.sr-only) { grid-column: 1; font-size: .92rem; color: var(--ink-3); }
.network__list .icon { grid-column: 2; grid-row: 1 / span 2; align-self: center; color: var(--sea); transition: transform .3s var(--ease); }
.network__list a:hover strong { color: var(--sea); }
.network__list a:hover .icon { transform: translate(3px, -3px); }
@media (min-width: 840px) {
  .network { grid-template-columns: 1fr 2fr; gap: 48px; align-items: start; }
  .network__list { grid-template-columns: repeat(3, 1fr); gap: 24px; }
}

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  margin-top: 40px;
  padding: 64px 0 calc(28px + env(safe-area-inset-bottom));
  background: var(--deep);
  color: var(--on-deep-2);
}
.footer__wave { position: absolute; left: 0; right: 0; bottom: 100%; width: 100%; height: 40px; fill: var(--deep); margin-bottom: -1px; }
.footer__top { display: grid; grid-template-columns: 1fr 1fr; gap: 40px 24px; padding-bottom: 48px; }
.footer__brand { grid-column: 1 / -1; display: grid; gap: 18px; justify-items: start; max-width: 380px; }
.footer__col--contact { grid-column: 1 / -1; }
.footer__est { font-family: var(--mono); font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--sky); }
.footer__col h2 { margin-bottom: 14px; font-family: var(--mono); font-size: .7rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--sky); }
.footer__col ul { display: grid; gap: 10px; font-size: .95rem; }
.footer__col a { display: inline-flex; align-items: center; gap: 5px; }
.footer__col a .icon { width: 14px; height: 14px; opacity: .7; }
.footer__col a:hover { color: #fff; }
.footer__bottom {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px;
  padding-top: 24px; border-top: 1px solid var(--line-deep);
  font-size: .86rem;
}
.footer__top-link { display: inline-flex; align-items: center; gap: 6px; }
.footer__top-link:hover { color: #fff; }
.flags { display: flex; gap: 5px; }
.flags svg { width: 26px; height: 19px; border-radius: 1.5px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .22); }
@media (min-width: 840px) {
  .footer__top { grid-template-columns: 1.6fr 1fr 1fr 1fr; }
  .footer__brand, .footer__col--contact { grid-column: auto; }
}

/* ---------- Mobile quick-contact bar ---------- */
.mobile-cta {
  position: fixed; left: 50%; bottom: calc(14px + env(safe-area-inset-bottom)); z-index: 40;
  display: flex; gap: 6px; padding: 6px;
  border-radius: 10px;
  background: var(--navy);
  box-shadow: 0 18px 40px -12px rgba(15, 35, 56, .55);
  transform: translate(-50%, 140%); opacity: 0; visibility: hidden;
  transition: transform .4s var(--ease), opacity .3s var(--ease), visibility 0s .4s;
}
.mobile-cta.is-visible { transform: translate(-50%, 0); opacity: 1; visibility: visible; transition: transform .5s var(--ease-out), opacity .3s var(--ease); }
.mobile-cta a { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 18px; border-radius: 6px; font-size: .95rem; font-weight: 600; color: var(--on-navy); white-space: nowrap; }
.mobile-cta a .icon { width: 18px; height: 18px; }
.mobile-cta a:first-child .icon { color: var(--on-navy-accent); }
.mobile-cta__primary { background: var(--paper); color: var(--navy) !important; }
@media (min-width: 960px) { .mobile-cta { display: none; } }

/* ---------- Reveal on scroll ---------- */
.js [data-reveal] {
  opacity: 0; translate: 0 22px;
  transition: opacity .9s var(--ease-out), translate 1s var(--ease-out);
  transition-delay: var(--d, 0s);
}
.js [data-reveal].is-visible { opacity: 1; translate: 0 0; }
/* The spot a link points at (/team#ray-hall) starts in place, so the jump lands exactly */
.js [data-reveal]:target { opacity: 1; translate: none; transition: none; }
.js:not(.js-ready) [data-reveal] { animation: reveal-fallback 0s 2.5s forwards; }
@keyframes reveal-fallback { to { opacity: 1; translate: 0 0; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; transition-delay: 0s !important;
  }
  .js [data-reveal] { opacity: 1; translate: none; }
}
