/* ==========================================================================
   STS Technology Solutions, Inc. - "Coastline" design
   Warm paper, deep-sea blues, Fraunces headings, Inter text. The page starts
   under a West Coast sky (hero landscape) and ends at the shoreline (footer).
   ========================================================================== */

/* ---------- Fonts (self-hosted, SIL Open Font License) ---------- */
@font-face {
    font-family: "Fraunces";
    font-style: normal;
    font-weight: 300 700;
    font-display: swap;
    src: url("/fonts/fraunces-latin-069cb90e11a337bf264eadfb15ad00f5.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "Fraunces";
    font-style: normal;
    font-weight: 300 700;
    font-display: swap;
    src: url("/fonts/fraunces-latin-ext-a04d353989ad1c6f7d4efa6529d484f5.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: "Fraunces";
    font-style: italic;
    font-weight: 300 700;
    font-display: swap;
    src: url("/fonts/fraunces-italic-latin-fa7ce081be5e73c90af95cac43d4e35e.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url("/fonts/inter-latin-260c81a4759baf163c025001c4f27872.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url("/fonts/inter-latin-ext-1ad231aac0a8a891b8374aa5526a5813.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Tokens ---------- */
:root {
    --paper: #f4f1ea;
    --paper-2: #ece7dc;
    --card: #fbf9f4;
    --ink: #0a1530;
    --muted: #4b5566;
    --soft: #5f6777; /* 4.6:1 or better on every light background (WCAG AA) */
    --line: #ddd6c8;
    --line-strong: #c4baa8;

    --blue: #004c99;
    --blue-6: #0b5fc0;
    --cyan: #13b5ce;
    --cyan-300: #7fdcec;

    --sea: #0a3d78;
    --sea-2: #08305f;
    --sea-3: #062546;
    --on-sea: #f4f1ea;
    --on-sea-muted: #b9cce8;
    --line-sea: rgb(255 255 255 / .2);

    --danger: #a3261b;

    --serif: "Fraunces", Georgia, "Times New Roman", serif;
    --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

    --wrap: 1200px;
    --gutter: 1.25rem;
    --header-h: 78px;
    --ease: cubic-bezier(.2, .7, .2, 1);

    /* context colours, overridden inside dark (sea) areas */
    --rule: var(--line-strong);
    --accent: var(--blue-6);
    --text-muted: var(--muted);
}
@media (min-width: 640px) { :root { --gutter: 2rem; } }
@media (min-width: 960px) { :root { --header-h: 84px; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 1rem); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font: 400 1.0625rem/1.65 var(--sans);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
body.nav-open { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4 {
    margin: 0;
    font-family: var(--serif);
    font-weight: 420;
    line-height: 1.06;
    letter-spacing: -.02em;
    text-wrap: balance;
}
h1 em, h2 em, h3 em { font-style: italic; font-weight: 360; color: var(--accent); }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
address { font-style: normal; }
a { color: inherit; text-decoration-color: var(--cyan); text-decoration-thickness: 1.5px; text-underline-offset: 4px; }
a:hover { color: var(--blue-6); }
:focus-visible { outline: 2px solid var(--blue-6); outline-offset: 3px; border-radius: 2px; }
.icon { width: 1.15em; height: 1.15em; flex: none; }

.visually-hidden {
    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: absolute; left: 1rem; top: -100px; z-index: 100; padding: .7rem 1rem; background: var(--ink); color: #fff; font-weight: 600; }
.skip-link:focus { top: .75rem; color: #fff; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }

/* ---------- Type ---------- */
.kicker {
    display: flex; align-items: center; gap: .9rem;
    font: 600 .78rem/1.3 var(--sans);
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--accent);
}
.kicker::before { content: ""; width: 40px; height: 1px; background: currentColor; flex: none; }
.display { font-size: clamp(3rem, 7.6vw, 7.25rem); font-weight: 440; line-height: .96; letter-spacing: -.03em; }
.page-title { font-size: clamp(2.6rem, 5.6vw, 5rem); font-weight: 430; line-height: 1; letter-spacing: -.028em; }
.title { font-size: clamp(2.1rem, 3.9vw, 3.4rem); font-weight: 400; line-height: 1.03; letter-spacing: -.025em; }
.lead { font-size: clamp(1.1rem, 1.5vw, 1.25rem); line-height: 1.6; color: var(--text-muted); max-width: 38rem; }
.muted { color: var(--text-muted); }
.label {
    display: block;
    font: 600 .75rem/1.3 var(--sans);
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--soft);
}
.textlink {
    font-weight: 600;
    color: inherit;
    text-decoration: underline;
    text-decoration-color: var(--cyan);
    text-decoration-thickness: 2px;
    text-underline-offset: 6px;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
    padding: .95rem 1.4rem;
    border: 1px solid var(--ink);
    border-radius: 6px;
    background: var(--ink);
    color: #fff;
    font: 600 1rem/1.15 var(--sans);
    text-decoration: none;
    cursor: pointer;
    transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}
.btn:hover { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn .icon { width: 18px; height: 18px; transition: transform .2s var(--ease); }
.btn:hover .icon:last-child { transform: translateX(3px); }
.btn--sm { padding: .7rem 1.05rem; font-size: .94rem; }
.btn--outline { background: transparent; color: var(--ink); }
.btn--outline:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn--light { background: var(--paper); border-color: var(--paper); color: var(--ink); }
.btn--light:hover { background: #fff; border-color: #fff; color: var(--ink); }
.btn--outline-light { background: transparent; border-color: rgb(255 255 255 / .45); color: #fff; }
.btn--outline-light:hover { background: rgb(255 255 255 / .08); border-color: #fff; color: #fff; }
.btn[disabled] { opacity: .65; cursor: progress; }

.actions { display: flex; flex-wrap: wrap; gap: 1rem 1.6rem; align-items: center; }

/* ---------- Header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 50;
    border-bottom: 1px solid var(--line);
}
/* The frosted background lives on a pseudo-element: a backdrop-filter on the header itself
   would make it the containing block for the fixed-position mobile menu, collapsing the menu
   to the header's height. */
.site-header::before {
    content: "";
    position: absolute; inset: 0; z-index: -1;
    background: rgb(244 241 234 / .93);
    -webkit-backdrop-filter: saturate(140%) blur(10px);
    backdrop-filter: saturate(140%) blur(10px);
}
.header-inner { display: flex; align-items: center; gap: 1.5rem; height: var(--header-h); }
.brand { display: block; flex: none; }
.brand img { height: 38px; width: auto; }
@media (min-width: 960px) { .brand img { height: 46px; } }

.nav { display: none; }
@media (min-width: 960px) { .nav { display: block; margin-left: 1.75rem; } }
.nav-list { list-style: none; display: flex; align-items: center; gap: .4rem; }
.nav-list > li > a {
    display: inline-flex; align-items: center; gap: .3rem;
    padding: .55rem .75rem;
    font: 500 .97rem/1 var(--sans);
    color: var(--ink);
    text-decoration: none;
    opacity: .78;
    border-bottom: 2px solid transparent;
}
.nav-list > li > a .icon { width: 15px; height: 15px; transition: transform .2s var(--ease); }
.nav-list > li > a:hover, .nav-list > li > a.is-active { opacity: 1; color: var(--ink); }
.nav-list > li > a.is-active { border-bottom-color: var(--cyan); }
.has-sub { position: relative; }
.has-sub:hover > a .icon, .has-sub:focus-within > a .icon { transform: rotate(180deg); }
.subnav {
    position: absolute; top: calc(100% + 12px); left: -.5rem;
    width: 340px;
    padding: .5rem;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 6px;
    box-shadow: 0 24px 50px -20px rgb(10 21 48 / .3);
    opacity: 0; visibility: hidden; transform: translateY(6px);
    transition: opacity .18s var(--ease), transform .18s var(--ease), visibility .18s;
}
.subnav::before { content: ""; position: absolute; left: 0; right: 0; top: -16px; height: 16px; }
.has-sub:hover .subnav, .has-sub:focus-within .subnav { opacity: 1; visibility: visible; transform: none; }
.subnav a { display: block; padding: .85rem .9rem; border-radius: 4px; text-decoration: none; color: var(--ink); }
.subnav a:hover, .subnav a:focus-visible { background: var(--paper-2); color: var(--ink); }
.subnav strong { display: block; font: 450 1.2rem/1.2 var(--serif); letter-spacing: -.01em; }
.subnav small { display: block; margin-top: .2rem; color: var(--soft); font-size: .86rem; line-height: 1.4; }

.header-actions { margin-left: auto; display: flex; align-items: center; gap: 1.1rem; }
.header-phone { display: none; font: 500 .97rem/1 var(--sans); color: var(--ink); text-decoration: none; }
.header-phone:hover { color: var(--blue-6); }
@media (min-width: 1120px) { .header-phone { display: inline; } }
.header-cta { display: none; }
@media (min-width: 640px) { .header-cta { display: inline-flex; } }

.nav-toggle {
    display: inline-grid; place-items: center;
    width: 44px; height: 44px; padding: 0;
    background: transparent; color: var(--ink);
    border: 1px solid var(--line-strong); border-radius: 6px;
    cursor: pointer;
}
.nav-toggle .icon { width: 22px; height: 22px; }
.nav-toggle-close { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle-open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle-close { display: block; }
@media (min-width: 960px) { .nav-toggle { display: none; } }

.mobile-nav {
    position: fixed; inset: var(--header-h) 0 0 0;
    background: var(--paper);
    overflow-y: auto;
    padding: .5rem 0 2rem;
    border-top: 1px solid var(--line);
}
.mobile-nav[hidden] { display: none; }
@media (min-width: 960px) { .mobile-nav { display: none !important; } }
.mobile-nav ul { list-style: none; margin-bottom: 1.25rem; border-top: 1px solid var(--line-strong); }
.mobile-nav-label { font: 600 .75rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--blue-6); margin: .9rem 0 .6rem; }
.mobile-nav li a { display: block; padding: .62rem 0; font: 420 1.45rem/1.15 var(--serif); letter-spacing: -.015em; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line-strong); }
.mobile-nav-actions { display: grid; gap: .75rem; }

/* ---------- Sections ---------- */
.section { padding-block: clamp(4.5rem, 9vw, 7rem); }
.section--tight { padding-block: clamp(3rem, 6vw, 4.5rem); }
.section--alt { background: var(--paper-2); }
.section--sea {
    --rule: var(--line-sea);
    --accent: var(--cyan-300);
    --text-muted: var(--on-sea-muted);
    background: linear-gradient(180deg, var(--sea) 0%, var(--sea-2) 70%, var(--sea-3) 100%);
    color: var(--on-sea);
}
.section--sea a:hover { color: var(--cyan-300); }

.head { max-width: 46rem; margin-bottom: clamp(2.5rem, 5vw, 3.75rem); }
.head .title { margin-top: 1.1rem; }
.head .lead { margin-top: 1.1rem; }
.head--split { max-width: none; display: grid; gap: 1.25rem 4rem; align-items: end; }
@media (min-width: 960px) { .head--split { grid-template-columns: 1fr 1fr; } }
.head--split .lead { margin-top: 0; }

.split { display: grid; gap: 2.75rem; align-items: start; }
@media (min-width: 1000px) { .split { grid-template-columns: .78fr 1.22fr; gap: 4.5rem; } }
.split-intro .title { margin-top: 1.1rem; }
.split-intro .lead { margin-top: 1.25rem; }
.split-intro .actions { margin-top: 2rem; }

/* ---------- Home hero ---------- */
.hero { padding-top: clamp(3.25rem, 7.5vw, 5.5rem); }
.hero-grid { display: grid; gap: 2.5rem; align-items: end; }
@media (min-width: 1000px) { .hero-grid { grid-template-columns: 1fr 300px; gap: 4rem; } }
.hero .display { margin-top: 1.75rem; }
.hero .lead { margin-top: 1.9rem; }
.hero .actions { margin-top: 2.25rem; }
.person { border-top: 1px solid var(--ink); padding-top: 1.1rem; }
.person .tel { display: block; margin: .65rem 0 .45rem; font: 400 2.1rem/1.1 var(--serif); letter-spacing: -.01em; color: var(--ink); text-decoration: none; }
.person .tel:hover { color: var(--blue-6); }
.person p { color: var(--muted); font-size: .95rem; line-height: 1.55; }
.landscape {
    display: block;
    width: 100%;
    height: clamp(230px, 30.5vw, 560px);
    margin-top: clamp(1.5rem, 4vw, 2.5rem);
    background: url("/images/landscape-008f52d9c69ad1f6b51a65fd34b41e8e.svg") 50% 40% / cover no-repeat;
}

/* ---------- Burnaby's sky, right now (data-sky is set by the server from the sun's position) ---------- */
.hero[data-sky="dawn"] { background: linear-gradient(180deg, var(--paper) 0%, #f6e3d9 100%); }
.hero[data-sky="dawn"] .landscape { background-image: url("/images/landscape-dawn-f2f5d69fa164ebd78ed70ad4ff68e5b7.svg"); }
.hero[data-sky="dusk"] { background: linear-gradient(180deg, var(--paper) 0%, #f3d5c3 100%); }
.hero[data-sky="dusk"] .landscape { background-image: url("/images/landscape-dusk-0a40c94c42d7c2b46164edaf0aabe287.svg"); }
.hero[data-sky="night"] {
    --accent: var(--cyan-300);
    --text-muted: var(--on-sea-muted);
    color: #fff;
    background:
        radial-gradient(1.5px 1.5px at 8% 18%, rgb(255 255 255 / .8) 50%, transparent 51%),
        radial-gradient(1px 1px at 23% 9%, rgb(255 255 255 / .6) 50%, transparent 51%),
        radial-gradient(1.5px 1.5px at 41% 27%, rgb(255 255 255 / .5) 50%, transparent 51%),
        radial-gradient(1px 1px at 57% 12%, rgb(255 255 255 / .7) 50%, transparent 51%),
        radial-gradient(1.5px 1.5px at 66% 33%, rgb(255 255 255 / .55) 50%, transparent 51%),
        radial-gradient(1px 1px at 78% 7%, rgb(255 255 255 / .8) 50%, transparent 51%),
        radial-gradient(1.5px 1.5px at 88% 22%, rgb(255 255 255 / .6) 50%, transparent 51%),
        radial-gradient(1px 1px at 95% 41%, rgb(255 255 255 / .5) 50%, transparent 51%),
        radial-gradient(1px 1px at 33% 45%, rgb(255 255 255 / .4) 50%, transparent 51%),
        linear-gradient(180deg, #0b1733 0%, #142650 100%);
}
.hero[data-sky="night"] .landscape { background-image: url("/images/landscape-night-6591ff45fed1be2983b4697e0b6079e7.svg"); }
.hero[data-sky="night"] .person { border-top-color: rgb(255 255 255 / .55); }
.hero[data-sky="night"] .label,
.hero[data-sky="night"] .person p { color: var(--on-sea-muted); }
.hero[data-sky="night"] .person .tel { color: #fff; }
.hero[data-sky="night"] a:hover { color: var(--cyan-300); }
.hero[data-sky="night"] .btn { background: var(--paper); border-color: var(--paper); color: var(--ink); }
.hero[data-sky="night"] .btn:hover { background: #fff; border-color: #fff; color: var(--ink); }
/* On narrow screens the landscape is cropped; keep the sun or moon in view. */
@media (max-width: 760px) {
    .hero[data-sky="dawn"] .landscape { background-position: 95% 40%; }
    .hero[data-sky="dusk"] .landscape { background-position: 20% 40%; }
    .hero[data-sky="night"] .landscape { background-position: 75% 40%; }
}

/* ---------- Inner page hero ---------- */
.page-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding-block: clamp(2.5rem, 5.5vw, 4rem) clamp(10rem, 11vw, 11rem);
}
.page-hero > .wrap { position: relative; z-index: 1; }
/* Anchored to the top so wide screens trim the misty foot, never the sun; the mask keeps that trimmed edge soft. */
.page-hero-art {
    position: absolute; z-index: 0;
    right: 0; bottom: 0;
    width: 100%;
    height: clamp(190px, 24vw, 400px);
    object-fit: cover;
    object-position: right top;
    -webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent);
    mask-image: linear-gradient(to bottom, #000 70%, transparent);
    pointer-events: none;
    user-select: none;
}
/* The hero's misty foot already reads as breathing room, so the next section needs less of its own. */
.page-hero:not(.page-hero--plain) + .section { padding-top: clamp(2.5rem, 5vw, 4rem); }
.page-hero--plain { padding-bottom: clamp(4rem, 8vw, 6rem); }
.page-hero .page-title { margin-top: 1.4rem; max-width: 17ch; }
.page-hero .lead { margin-top: 1.5rem; }
.page-hero .actions { margin-top: 2rem; }
.jump { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem 1.75rem; margin-top: 2.25rem; }
.jump a { font-weight: 600; text-decoration: none; color: var(--ink); }
.jump a:hover { color: var(--blue-6); }
.jump .n { font: italic 400 1.05rem var(--serif); color: var(--blue-6); margin-right: .1rem; }

/* ---------- Numbered rows (services) ---------- */
.rows { list-style: none; border-top: 1px solid var(--rule); }
.row > a, .row > div {
    display: grid;
    grid-template-columns: 2.75rem 1fr 2rem;
    gap: 1rem;
    align-items: baseline;
    padding: 1.9rem 0;
    border-bottom: 1px solid var(--rule);
    text-decoration: none;
    color: inherit;
}
@media (min-width: 640px) { .row > a, .row > div { grid-template-columns: 3.75rem 1fr 2.5rem; gap: 1.25rem; } }
.row .n { font: italic 400 1.3rem/1 var(--serif); color: var(--accent); }
.row h2, .row h3 { font-size: clamp(1.85rem, 3vw, 2.6rem); font-weight: 400; line-height: 1.05; transition: color .2s var(--ease); }
.row p { margin-top: .65rem; color: var(--text-muted); max-width: 38rem; }
.row .meta { margin-top: .85rem; font-size: .95rem; color: var(--text-muted); }
.row .meta span + span::before { content: "· "; color: var(--accent); }
.row .arrow { justify-self: end; font-size: 1.6rem; line-height: 1; color: var(--accent); transition: transform .2s var(--ease); }
.row > a:hover h2, .row > a:hover h3 { color: var(--accent); }
.row > a:hover .arrow { transform: translateX(4px); }

/* ---------- Steps (lifecycle, process) ---------- */
.steps { list-style: none; display: grid; border-top: 1px solid var(--ink); }
.section--sea .steps { border-top-color: var(--on-sea); }
.steps > li { padding: 1.6rem 0 1.75rem; border-bottom: 1px solid var(--rule); }
@media (min-width: 700px) {
    .steps { grid-template-columns: repeat(2, 1fr); column-gap: 2rem; }
}
@media (min-width: 1040px) {
    .steps { grid-template-columns: repeat(var(--cols, 4), 1fr); column-gap: 0; }
    .steps > li { padding: 1.6rem 1.6rem 0 0; margin-right: 1.6rem; border-bottom: 0; border-right: 1px solid var(--rule); }
    .steps > li:last-child { border-right: 0; margin-right: 0; }
}
.steps--five { --cols: 5; }
.steps .n { font: italic 400 1.2rem/1 var(--serif); color: var(--accent); }
.steps h3 { font-size: 2rem; font-weight: 420; margin: .55rem 0 .6rem; }
.steps--five h3 { font-size: 1.55rem; }
.steps p { color: var(--text-muted); font-size: 1rem; }
.steps a { display: inline-block; margin-top: .9rem; font-weight: 600; font-size: .95rem; text-decoration: underline; text-decoration-color: var(--cyan); text-underline-offset: 5px; }

/* ---------- Editorial grid lists ---------- */
.grid-list { list-style: none; display: grid; column-gap: 3rem; }
@media (min-width: 760px) { .grid-list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .grid-list { grid-template-columns: repeat(var(--cols, 3), 1fr); } }
.grid-list > li { padding: 1.5rem 0 2rem; border-top: 1px solid var(--rule); }
.grid-list .n { display: block; font: italic 400 1.1rem/1 var(--serif); color: var(--accent); margin-bottom: .6rem; }
.grid-list h3 { font-size: 1.55rem; font-weight: 440; line-height: 1.15; margin-bottom: .55rem; }
.grid-list p { color: var(--text-muted); font-size: 1rem; }
.grid-list .best-for { margin-top: 1rem; font-size: .95rem; }
.grid-list .best-for strong { color: var(--ink); font-weight: 600; }
.grid-list--two { --cols: 2; }
.grid-list--four { --cols: 4; }
.tag { display: inline-block; font: 600 .72rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: .75rem; }

/* dash bullets */
.ticks { list-style: none; }
.ticks li { display: flex; gap: .85rem; padding: .7rem 0; border-top: 1px solid var(--line); line-height: 1.5; }
.ticks li:last-child { border-bottom: 1px solid var(--line); }
.ticks li::before { content: ""; flex: none; width: 14px; height: 2px; margin-top: .72em; background: var(--cyan); }
.section--sea .ticks li { border-color: var(--line-sea); }

/* ---------- Panels ---------- */
.panel { background: var(--card); border: 1px solid var(--line); border-radius: 4px; padding: clamp(1.75rem, 4vw, 3rem); }
.callout { display: grid; gap: 1.5rem 3rem; align-items: center; }
@media (min-width: 900px) { .callout { grid-template-columns: 1fr auto; } }
.callout h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); }
.callout p { margin-top: .8rem; color: var(--text-muted); max-width: 44rem; }

.family { display: grid; gap: 2.5rem 4rem; }
@media (min-width: 960px) { .family { grid-template-columns: 1.2fr .8fr; align-items: start; } }
.family .title { margin-top: 1.1rem; }
.family .lead { margin-top: 1.2rem; }
.inline-list { list-style: none; display: flex; flex-wrap: wrap; gap: .35rem 0; margin-top: 1.4rem; font-size: .98rem; }
.inline-list li:not(:last-child)::after { content: "·"; margin: 0 .7rem; color: var(--cyan); font-weight: 700; }
.aside-box { border-top: 1px solid currentColor; padding-top: 1.2rem; }
/* Beside a kicker, lift the box by its rule and padding so its label shares a line with the kicker. */
@media (min-width: 960px) { .family > .aside-box { margin-top: calc(-1.2rem - 1px); } }
.aside-box .inline-list { margin-top: .9rem; }
/* Two columns sharing full-width hairlines, so the rows line up with the .ticks list above. */
.tech-grid { list-style: none; display: grid; grid-template-columns: 1fr 1fr; margin-top: .9rem; border-bottom: 1px solid var(--line); font-size: .95rem; }
.tech-grid li { padding: .6rem .75rem .6rem 0; border-top: 1px solid var(--line); line-height: 1.45; }
.section--sea .tech-grid, .section--sea .tech-grid li { border-color: var(--line-sea); }
.tech-grid li:last-child:nth-child(odd) { grid-column: 1 / -1; } /* a lone last item takes the full row so its rule isn't cut short */
/* "Who uses it" rows: the industry on its own line, what the system does under it. */
.proof-list strong { display: block; font-weight: 600; margin-bottom: .1rem; }
.proof-list li > span { color: var(--text-muted); }
.proof-list strong { color: var(--ink); }
.section--sea .proof-list strong { color: var(--on-sea); }
/* Under a .head--split, the industries take its two columns (the second lines up with the lead).
   The last item in the left column needs its own closing rule, which .ticks only gives the last item. */
@media (min-width: 960px) {
    .proof-list { display: grid; grid-template-columns: 1fr 1fr; column-gap: 4rem; }
    .proof-list li:nth-last-child(2):nth-child(odd) { border-bottom: 1px solid var(--line); }
    .section--sea .proof-list li:nth-last-child(2):nth-child(odd) { border-bottom-color: var(--line-sea); }
}
.aside-box .textlink { display: inline-block; margin-top: 1.5rem; }
.aside-box .label { color: var(--accent); }
.aside-box .ticks { margin: .9rem 0 1.75rem; }
.aside-box .muted { margin-top: 1rem; font-size: .95rem; }

.quotes { list-style: none; display: grid; column-gap: 3rem; }
@media (min-width: 760px) { .quotes { grid-template-columns: repeat(2, 1fr); } }
.quotes li { padding: 1.4rem 0 1.6rem; border-top: 1px solid var(--rule); font: italic 400 clamp(1.3rem, 2vw, 1.6rem)/1.3 var(--serif); letter-spacing: -.01em; }

/* ---------- Stage blocks (websites page) ---------- */
.stage { display: grid; gap: 2rem 4rem; padding-block: clamp(3rem, 6vw, 4.5rem); border-top: 1px solid var(--line-strong); }
.stage:first-child { border-top: 0; padding-top: 0; }
@media (min-width: 960px) { .stage { grid-template-columns: 1.05fr .95fr; } }
.stage .n { font: italic 400 1.35rem/1 var(--serif); color: var(--blue-6); }
.stage h2 { font-size: clamp(2rem, 3.4vw, 2.9rem); margin-top: .7rem; }
.stage .lead { margin-top: 1.1rem; }
.stage .body { margin-top: 1rem; color: var(--muted); }
.included { background: var(--card); border: 1px solid var(--line); border-radius: 4px; padding: 1.6rem 1.9rem 1.8rem; }
.included .label { margin-bottom: 1rem; }

/* ---------- FAQ ---------- */
.faq { max-width: 54rem; border-top: 1px solid var(--line-strong); }
.faq details { border-bottom: 1px solid var(--line-strong); }
.faq summary {
    display: flex; justify-content: space-between; align-items: baseline; gap: 1.5rem;
    padding: 1.4rem 0;
    cursor: pointer; list-style: none;
    font: 420 clamp(1.25rem, 2vw, 1.5rem)/1.3 var(--serif);
    letter-spacing: -.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font: 300 1.9rem/1 var(--sans); color: var(--blue-6); transition: transform .2s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--blue-6); }
.faq-body { padding: 0 0 1.6rem; color: var(--muted); max-width: 46rem; }

/* ---------- About ---------- */
.story { display: grid; gap: 2.5rem 5rem; }
@media (min-width: 960px) { .story { grid-template-columns: .9fr 1.1fr; } }
.story .title { margin-top: 1.1rem; }
.story-body { display: grid; gap: 1.1rem; color: var(--muted); font-size: 1.08rem; }
.story-body strong { color: var(--ink); font-weight: 600; }
.pull { font: italic 400 clamp(1.6rem, 3vw, 2.3rem)/1.25 var(--serif); letter-spacing: -.015em; color: var(--ink); border-left: 2px solid var(--cyan); padding-left: 1.4rem; margin-top: 2rem; }

.companies { display: grid; gap: 1.25rem; }
@media (min-width: 860px) { .companies { grid-template-columns: repeat(2, 1fr); } }
.company { display: flex; flex-direction: column; gap: .8rem; }
.company h3 { font-size: 1.9rem; }
.company p { color: var(--muted); }
.company .where { color: var(--soft); font-size: .95rem; }
.company--here { border-color: var(--ink); }

/* ---------- CTA ---------- */
.cta-inner { display: grid; gap: 2rem 4rem; border-top: 1px solid var(--ink); padding-top: clamp(2.5rem, 5vw, 3.5rem); }
@media (min-width: 960px) { .cta-inner { grid-template-columns: 1.35fr .65fr; align-items: end; } }
.cta-inner h2 { font-size: clamp(2.4rem, 5vw, 4.25rem); font-weight: 420; line-height: 1; letter-spacing: -.03em; }
.cta-inner p { margin-top: 1.25rem; color: var(--muted); font-size: 1.15rem; max-width: 40rem; }
.cta-inner .actions { margin-top: 2rem; }
.cta-side .tel { display: block; margin-top: .6rem; font: 400 2.1rem/1.1 var(--serif); color: var(--ink); text-decoration: none; }
.cta-side .tel:hover { color: var(--blue-6); }
.cta-side p { margin-top: .4rem; font-size: .95rem; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: 2rem; }
@media (min-width: 1040px) { .contact-grid { grid-template-columns: 1.45fr .85fr; gap: 3rem; align-items: start; } }
.form-card { background: var(--card); border: 1px solid var(--line); border-radius: 4px; padding: clamp(1.5rem, 4vw, 2.75rem); }
.form-card h2 { font-size: clamp(1.8rem, 3vw, 2.3rem); }
.form-card > p { margin-top: .5rem; color: var(--muted); }
.form { display: grid; gap: 1.3rem; margin-top: 1.9rem; }
.form-row { display: grid; gap: 1.3rem; }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: .45rem; align-content: start; }
.field label { font: 600 .93rem/1.3 var(--sans); }
.field .optional { font-weight: 400; color: var(--soft); font-size: .87rem; }
.field input, .field select, .field textarea {
    width: 100%;
    font: inherit; font-size: 1rem; line-height: 1.4;
    color: var(--ink);
    background: #fff;
    border: 1px solid var(--line-strong);
    border-radius: 4px;
    padding: .82rem .95rem;
    transition: border-color .15s, box-shadow .15s;
}
.field textarea { min-height: 150px; resize: vertical; }
.field select {
    appearance: none;
    padding-right: 2.6rem;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230a1530' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right .9rem center / 16px no-repeat;
}
.field input:hover, .field select:hover, .field textarea:hover { border-color: #9e9482; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue-6); box-shadow: 0 0 0 4px rgb(11 95 192 / .14); }
.field .is-invalid, .field .is-invalid:focus { border-color: var(--danger); }
.field .is-invalid:focus { box-shadow: 0 0 0 4px rgb(163 38 27 / .12); }
.field-error { font-size: .88rem; color: var(--danger); }
.field-hint { font-size: .9rem; line-height: 1.5; color: var(--soft); }
.form-step {
    display: flex; align-items: baseline; gap: .55rem;
    margin-top: .6rem; padding-top: 1.4rem;
    border-top: 1px solid var(--line);
    font: 420 1.35rem/1.25 var(--serif); letter-spacing: -.01em;
    color: var(--ink);
}
.form-step:first-of-type { margin-top: 0; padding-top: 0; border-top: 0; }
.hp-field { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.alert { display: flex; gap: .75rem; align-items: flex-start; padding: 1rem 1.15rem; border-radius: 4px; font-size: .97rem; margin-top: 1.5rem; }
.alert .icon { width: 20px; height: 20px; margin-top: .1rem; }
.alert--error { background: #fbeae7; border: 1px solid #efc3bc; color: #6e1d14; }
.alert--error a { color: #6e1d14; font-weight: 600; }
.form-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 1.5rem; margin-top: .25rem; }
.form-note { font-size: .87rem; color: var(--soft); max-width: 28rem; }
.form-note strong { color: var(--ink); font-weight: 600; }

.info-panel {
    --rule: var(--line-sea); --accent: var(--cyan-300); --text-muted: var(--on-sea-muted);
    background: linear-gradient(180deg, var(--sea), var(--sea-3));
    color: var(--on-sea);
    border-radius: 4px;
    padding: clamp(1.6rem, 3.5vw, 2.25rem);
}
.info-panel h2 { font-size: 1.7rem; }
.info-list { list-style: none; margin-top: 1.4rem; border-top: 1px solid var(--line-sea); }
.info-list li { padding: 1rem 0; border-bottom: 1px solid var(--line-sea); }
.info-list .label { color: var(--cyan-300); margin-bottom: .35rem; }
.info-list a, .info-list address, .info-list .info-time { font: 400 1.3rem/1.35 var(--serif); color: #fff; text-decoration: none; }
.info-list a:hover { color: var(--cyan-300); }
.info-note { margin-top: .4rem; font-size: .92rem; color: var(--on-sea-muted); }
.next-steps { margin-top: 2rem; }
.next-steps h2 { font-size: 1.45rem; }
.next-steps ol { list-style: none; counter-reset: ns; display: grid; gap: 1rem; margin-top: 1.1rem; }
.next-steps li { counter-increment: ns; display: grid; grid-template-columns: 1.8rem 1fr; gap: .6rem; color: var(--on-sea-muted); font-size: .97rem; }
.next-steps li::before { content: counter(ns, lower-roman) "."; font: italic 400 1.1rem/1.4 var(--serif); color: var(--cyan-300); }
.next-steps strong { color: #fff; font-weight: 600; }

/* ---------- Message pages (thanks / errors) ---------- */
.message-page > * { max-width: 42rem; }
.message-page .page-title { margin-top: 1.4rem; }
.message-page p { margin-top: 1.25rem; color: var(--muted); font-size: 1.15rem; }
.message-page .actions { margin-top: 2rem; }

/* ---------- Prose (legal) ---------- */
.prose { max-width: 46rem; color: var(--muted); }
.prose h2 { font-size: 1.75rem; color: var(--ink); margin: 2.75rem 0 .85rem; }
.prose h2:first-of-type { margin-top: 0; }
.prose p, .prose ul { margin-bottom: 1rem; }
.prose ul { padding-left: 1.25rem; }
.prose li { margin-bottom: .4rem; }
.prose strong { color: var(--ink); }
.prose .updated { font-size: .92rem; color: var(--soft); margin-bottom: 2.5rem; }

/* ---------- Footer (the shoreline) ---------- */
.shore {
    height: max(180px, 12.5vw);
    background: url("/images/landscape-008f52d9c69ad1f6b51a65fd34b41e8e.svg") center bottom / max(1440px, 100%) auto no-repeat;
    /* the cut-off mountain bases dissolve into the page like coastal fog */
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 42%);
    mask-image: linear-gradient(to bottom, transparent 0, #000 42%);
}
.site-footer {
    --rule: var(--line-sea); --accent: var(--cyan-300);
    background: linear-gradient(180deg, var(--sea) 0%, var(--sea-3) 60%);
    color: var(--on-sea-muted);
    font-size: .95rem;
    padding-top: clamp(2.5rem, 5vw, 3.5rem);
}
.footer-grid { display: grid; gap: 2.5rem; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1040px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 3rem; } }
.footer-brand img { height: 40px; width: auto; }
.footer-brand p { margin-top: 1.25rem; max-width: 22rem; line-height: 1.6; }
.footer-col h2 { font: 600 .75rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--cyan-300); margin-bottom: 1.15rem; }
.footer-col ul { list-style: none; display: grid; gap: .7rem; }
.footer-col a { color: var(--on-sea-muted); text-decoration: none; display: inline-flex; align-items: center; gap: .35rem; }
.footer-col a:hover { color: #fff; }
.footer-col a .icon { width: 14px; height: 14px; opacity: .7; }
.footer-contact .tel { font: 400 1.5rem/1.2 var(--serif); color: #fff; }
.footer-bottom {
    display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem 2rem;
    margin-top: clamp(2.5rem, 5vw, 3.5rem);
    padding-block: 1.6rem;
    border-top: 1px solid var(--line-sea);
    font-size: .87rem;
    color: #8ea6c9;
}
.footer-bottom a { color: var(--on-sea-muted); }
.footer-bottom a:hover { color: #fff; }

/* ---------- Gentle scroll reveal (CSS-only, progressive) ---------- */
@media (prefers-reduced-motion: no-preference) {
    @supports (animation-timeline: view()) {
        .reveal { animation: reveal linear both; animation-timeline: view(); animation-range: entry 0% entry 50%; }
    }
}
@keyframes reveal { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

/* ---------- Print ---------- */
@media print {
    .site-header, .site-footer, .shore, .landscape, .page-hero-art, .cta { display: none !important; }
    body { background: #fff; }
}
