/* ==========================================================================
   East End Web — design system
   Editorial paper/ink system. Authored from the 09-26 homepage concept.
   Loaded by every redesigned page. Legacy pages still use tailwind.css.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
    --paper: #f4f2e9;
    --ink: #28232b;
    --muted: #68636b;
    --acid: #d9ed8b;
    --line: #ccc9c0;
    --plum: #29232d;
    --white: #fcfbf7;

    /* Surfaces derived from paper — featured panels and workflow cards */
    --paper-deep: #e4dfd2;
    --paper-warm: #e9e7dc;

    /* On-plum text + rules, for the dark sections */
    --plum-text: #c5bec9;
    --plum-line: #544c59;

    --pad: clamp(22px, 4.2vw, 76px);
    --maxw: 1600px;
}

/* --------------------------------------------------------------------------
   2. Base
   -------------------------------------------------------------------------- */
* { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font: 15px/1.65 Manrope, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button, a, input, textarea, select { touch-action: manipulation; }
button { cursor: pointer; }

h1, h2, h3, p { margin: 0; }
h1, h2, h3 {
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.055em;
}

img { max-width: 100%; }

::selection { background: var(--acid); color: var(--ink); }

button:focus-visible,
a:focus-visible,
summary:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 3px solid #8874be;
    outline-offset: 5px;
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* --------------------------------------------------------------------------
   3. Layout primitives
   -------------------------------------------------------------------------- */
.wrap {
    max-width: var(--maxw);
    margin: auto;
    padding-left: var(--pad);
    padding-right: var(--pad);
}

.eyebrow {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    line-height: 1.5;
}

.section-number {
    display: inline-block;
    margin-right: 32px;
    color: var(--muted);
}

.section-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 32px;
    margin-bottom: 39px;
}

.section-top h2 {
    font-size: clamp(38px, 4.3vw, 65px);
    margin-top: 24px;
}

.section-top > p {
    max-width: 270px;
    font-size: 13px;
}

.skip {
    position: fixed;
    top: -70px;
    left: 20px;
    z-index: 100;
    background: var(--acid);
    color: var(--ink);
    padding: 12px;
    font-size: 12px;
    font-weight: 800;
}
.skip:focus { top: 10px; }

/* --------------------------------------------------------------------------
   4. Buttons + links
   -------------------------------------------------------------------------- */
.button {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 36px;
    padding: 16px 22px;
    background: var(--ink);
    color: var(--white);
    font-size: 12px;
    font-weight: 800;
    border: 1px solid var(--ink);
    transition: background 0.2s, color 0.2s;
}
.button:hover { background: var(--acid); color: var(--ink); }
.button[disabled] { opacity: 0.55; cursor: not-allowed; }

.text-link {
    font-size: 12px;
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 6px;
}

/* --------------------------------------------------------------------------
   5. Header / navigation  (injected by js/components.js)
   -------------------------------------------------------------------------- */
.topbar {
    height: 101px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--line);
    gap: 30px;
}

.brand { display: flex; align-items: center; gap: 22px; }

.brand img {
    width: 83px;
    height: 69px;
    object-fit: contain;
    filter: grayscale(1);
}

.brand-note {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    line-height: 1.6;
    border-left: 1px solid var(--line);
    padding-left: 22px;
}

.nav {
    display: flex;
    align-items: center;
    gap: 31px;
    font-size: 12px;
    font-weight: 800;
}

.nav a:not(.nav-contact):hover {
    text-decoration: underline;
    text-underline-offset: 7px;
}

.nav a.is-current:not(.nav-contact) {
    text-decoration: underline;
    text-underline-offset: 7px;
    text-decoration-thickness: 2px;
}

.nav-contact {
    border: 1px solid var(--ink);
    padding: 12px 18px;
    display: flex;
    gap: 26px;
}
.nav-contact:hover { background: var(--ink); color: var(--paper); }

.menu {
    display: none;
    border: 1px solid var(--ink);
    padding: 9px 13px;
    background: none;
}

/* --------------------------------------------------------------------------
   6. Hero
   -------------------------------------------------------------------------- */
.hero { padding-top: 45px; padding-bottom: 57px; }

.hero-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
}

.location {
    font-size: 11px;
    letter-spacing: 0.06em;
    display: flex;
    align-items: center;
    gap: 9px;
}
.location:before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 100%;
    background: #68793a;
}

.hero h1 {
    font-size: clamp(64px, 8.9vw, 140px);
    line-height: 1.015;
    letter-spacing: -0.075em;
    max-width: 1300px;
}

.hero h1 .second { display: flex; align-items: center; gap: 32px; }

.arrow-disc {
    background: var(--acid);
    border-radius: 100%;
    width: clamp(70px, 9vw, 134px);
    height: clamp(70px, 9vw, 134px);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75em;
    font-weight: 400;
    flex-shrink: 0;
    letter-spacing: 0;
    transition: transform 0.25s;
}
.arrow-disc:hover { transform: rotate(-35deg); }

.hero-bottom {
    display: grid;
    grid-template-columns: 0.85fr 1.5fr;
    gap: 8%;
    margin-top: 45px;
    align-items: stretch;
}

.hero-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding-top: 12px;
}
.hero-copy > p { font-size: 17px; max-width: 390px; line-height: 1.7; }
.hero-copy .button { margin-top: 29px; }

.hero-footnote {
    margin-top: auto;
    padding-top: 32px;
    display: flex;
    gap: 14px;
    align-items: center;
    font-size: 11px;
    color: var(--muted);
}

.little-mark { font-size: 34px; line-height: 1; color: var(--ink); }

/* --------------------------------------------------------------------------
   7. Featured project panel (hero right)
   -------------------------------------------------------------------------- */
.featured {
    background: var(--paper-deep);
    position: relative;
    min-height: 320px;
    overflow: hidden;
    padding: 30px 39px 0;
    isolation: isolate;
}

.featured .project-open {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: transparent;
    border: 0;
    color: transparent;
}
.featured .project-open:focus-visible { outline-offset: -5px; }

.mini-label {
    display: flex;
    justify-content: space-between;
    font-size: 9px;
    letter-spacing: 0.1em;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 18px;
}

.site-window {
    position: relative;
    width: 85%;
    height: 251px;
    margin: 0 auto;
    background: #fff;
    box-shadow: 0 8px 30px #28232b19;
    overflow: hidden;
    transform: rotate(-3deg);
    transform-origin: bottom;
    transition: transform 0.4s;
}
.featured:hover .site-window { transform: rotate(0deg) translateY(-5px); }
.site-window img { display: block; width: 100%; height: auto; }

.window-bar {
    height: 18px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    font-size: 6px;
    color: #89858a;
}
.window-bar:before {
    position: absolute;
    left: 9px;
    content: "\25CF \25CF \25CF";
    color: #d9d6d2;
    font-size: 6px;
}

.project-stamp {
    position: absolute;
    right: 18px;
    bottom: 20px;
    width: 89px;
    height: 89px;
    background: var(--acid);
    border-radius: 100%;
    display: grid;
    place-content: center;
    text-align: center;
    font-size: 9px;
    font-weight: 800;
    line-height: 1.45;
    transform: rotate(8deg);
    z-index: 1;
}
.project-stamp span { font-size: 24px; }

.hero-feature-caption {
    display: flex;
    justify-content: space-between;
    margin-top: 11px;
    font-size: 10px;
}
.hero-feature-caption strong { font-size: 11px; }

/* --------------------------------------------------------------------------
   8. Client strip
   -------------------------------------------------------------------------- */
.client-strip {
    border-top: 1px solid var(--line);
    padding-top: 27px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    margin-top: 50px;
}
.client-strip > p {
    font-size: 10px;
    max-width: 155px;
    color: var(--muted);
    line-height: 1.5;
}

.client-name { font-size: 18px; font-weight: 800; letter-spacing: -0.045em; }
.client-name.serif { font: 22px Georgia, serif; letter-spacing: -0.04em; }
.client-name.steven { font-size: 19px; letter-spacing: -0.07em; }
.client-name.lf { font-size: 15px; letter-spacing: 0.09em; }

/* --------------------------------------------------------------------------
   9. Work (plum section)
   -------------------------------------------------------------------------- */
.work {
    background: var(--plum);
    color: var(--paper);
    padding-top: 78px;
    padding-bottom: 82px;
}
.work .section-number { color: #c0b8c5; }
.work .section-top > p { color: var(--plum-text); }

.projects {
    display: grid;
    grid-template-columns: 1.12fr 1fr;
    gap: 32px;
    align-items: start;
}
.project:nth-child(2) { padding-top: 65px; }

.project-image {
    width: 100%;
    border: 0;
    position: relative;
    height: 340px;
    display: block;
    overflow: hidden;
    padding: 35px 40px 0;
    text-align: left;
    cursor: pointer;
}
.project-image.groom { background: #d9dceb; }
.project-image.capital { background: #dcd3bf; }
.project-image.k9 { background: #cfd4d1; }

.project-image img {
    width: 100%;
    height: auto;
    display: block;
    box-shadow: 0 4px 24px #0002;
    transition: transform 0.4s;
}
.project-image:hover img { transform: translateY(-12px); }

.open-circle {
    position: absolute;
    bottom: 18px;
    right: 18px;
    background: var(--paper);
    color: var(--ink);
    border-radius: 100%;
    width: 43px;
    height: 43px;
    display: grid;
    place-items: center;
    font-size: 22px;
}

.project-meta {
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    gap: 16px;
}
.project-meta h3 { font-size: 23px; letter-spacing: -0.04em; }
.project-meta p { font-size: 11px; color: var(--plum-text); margin-top: 8px; }
.project-meta > span { font-size: 10px; white-space: nowrap; }

.work-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--plum-line);
    margin-top: 45px;
    padding-top: 24px;
    font-size: 11px;
    color: var(--plum-text);
}
.work-bottom a { color: var(--paper); }

/* --------------------------------------------------------------------------
   10. Services accordion
   -------------------------------------------------------------------------- */
.services {
    padding-top: 88px;
    padding-bottom: 88px;
    display: grid;
    grid-template-columns: 0.8fr 1.4fr;
    gap: 9%;
}

.services-intro { position: sticky; top: 35px; align-self: start; }
.services h2 { font-size: clamp(38px, 4.2vw, 62px); margin-top: 25px; }
.services-intro p { font-size: 14px; margin-top: 24px; max-width: 300px; color: var(--muted); }
.services-intro .text-link { display: inline-block; margin-top: 29px; }

.service { border-top: 1px solid var(--line); }
.service:last-child { border-bottom: 1px solid var(--line); }

summary { list-style: none; cursor: pointer; }
summary::-webkit-details-marker { display: none; }

.service summary {
    display: grid;
    grid-template-columns: 30px 1fr 25px;
    align-items: center;
    gap: 12px;
    padding: 25px 0;
}
.service .num { font-size: 10px; color: var(--muted); }
.service h3 { font-size: 27px; line-height: 1.2; letter-spacing: -0.045em; }

.service summary .plus {
    font-size: 25px;
    font-weight: 400;
    line-height: 1;
    text-align: right;
}
.service[open] summary .plus { font-size: 0; }
.service[open] summary .plus:after { content: "\2212"; font-size: 25px; }

.service-body { padding: 0 35px 27px 42px; }
.service-body p { font-size: 13px; line-height: 1.8; max-width: 485px; color: var(--muted); }

.tags { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 19px; }
.tags span {
    font-size: 9px;
    border: 1px solid var(--line);
    padding: 5px 9px;
    line-height: 1.4;
}

/* --------------------------------------------------------------------------
   11. Automation / workflow
   -------------------------------------------------------------------------- */
.automation {
    border-top: 1px solid var(--line);
    padding-top: 65px;
    padding-bottom: 72px;
    display: grid;
    grid-template-columns: 1fr 1.06fr;
    gap: 9%;
    align-items: center;
}
.automation h2 { font-size: clamp(38px, 4vw, 59px); margin-top: 23px; max-width: 520px; }
.automation p { font-size: 14px; line-height: 1.8; color: var(--muted); max-width: 400px; margin-top: 22px; }
.automation .text-link { display: inline-block; margin-top: 25px; }

.workflow { background: var(--paper-warm); padding: 31px 34px; }

.workflow-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #c6c3b7;
    padding-bottom: 19px;
    font-size: 10px;
}
.workflow-head span:last-child { font-size: 9px; color: var(--muted); }

.flow-row {
    display: grid;
    grid-template-columns: 30px 1fr 18px;
    gap: 12px;
    align-items: center;
    padding: 19px 0;
    border-bottom: 1px solid #d1cec4;
    font-size: 12px;
    font-weight: 800;
}
.flow-row:last-of-type { border-bottom: 0; }

.flow-icon {
    width: 28px;
    height: 28px;
    background: var(--paper);
    display: grid;
    place-items: center;
    font-size: 12px;
    font-weight: 400;
}
.flow-row:last-of-type .flow-icon { background: var(--acid); }

.flow-row small {
    display: block;
    font-size: 10px;
    font-weight: 400;
    color: var(--muted);
    margin-top: 2px;
}
.flow-row > span:last-child { font-weight: 400; color: #59683a; }

.workflow-note {
    font-size: 9px !important;
    margin: 16px 0 0 !important;
    color: var(--muted);
}

/* --------------------------------------------------------------------------
   12. About (acid section)
   -------------------------------------------------------------------------- */
.about { background: var(--acid); padding-top: 73px; padding-bottom: 72px; }
.about > .wrap { display: grid; grid-template-columns: 0.6fr 1.6fr; gap: 11%; }

.about-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    gap: 40px;
}

.local-symbol {
    width: 147px;
    height: 147px;
    border: 1px solid #7d8c52;
    border-radius: 100%;
    position: relative;
    display: grid;
    place-items: center;
    font-size: 82px;
    font-weight: 400;
    line-height: 1;
    transform: rotate(-30deg);
}
.local-symbol:after {
    content: 'EAST END, NY';
    position: absolute;
    bottom: 20px;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 0.1em;
    transform: rotate(30deg);
}

.about h2 { font-size: clamp(36px, 4.7vw, 70px); max-width: 860px; }

.about-copy {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 33px;
    margin-top: 31px;
    font-size: 13px;
    line-height: 1.8;
}

.about-signature { font-size: 11px; font-weight: 800; margin-top: 28px; }
.about-signature span { font-weight: 400; }

/* --------------------------------------------------------------------------
   13. Process
   -------------------------------------------------------------------------- */
.process { padding-top: 76px; padding-bottom: 76px; }
.process .section-top > p { color: var(--muted); }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; }

.step { border-top: 1px solid var(--line); padding-top: 21px; }
.step-index { font-size: 11px; color: var(--muted); display: flex; justify-content: space-between; }
.step h3 { font-size: 25px; margin-top: 29px; }
.step p { font-size: 13px; color: var(--muted); margin-top: 17px; max-width: 315px; }

/* --------------------------------------------------------------------------
   14. Contact (plum section)
   -------------------------------------------------------------------------- */
/* The footer is a sibling of .contact (both plum) rather than nested inside
   it as in the concept — this padding reproduces the concept's 69px gap
   above the footer rule. */
.contact {
    background: var(--plum);
    color: var(--paper);
    padding-top: 74px;
    padding-bottom: 69px;
}

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12%; }

.contact h2 { font-size: clamp(48px, 5.9vw, 88px); margin-top: 26px; line-height: 1.05; }
.contact h2 span { color: var(--acid); }

.contact-copy > p { font-size: 13px; max-width: 340px; color: var(--plum-text); margin-top: 25px; }

.contact-direct {
    margin-top: 35px;
    display: flex;
    flex-direction: column;
    gap: 7px;
    font-size: 14px;
}
.contact-direct a { text-decoration: underline; text-underline-offset: 5px; }

/* --------------------------------------------------------------------------
   15. Forms
   -------------------------------------------------------------------------- */
.contact-form { padding-top: 11px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.field { display: flex; flex-direction: column; margin-bottom: 20px; }
.field label { font-size: 11px; margin-bottom: 9px; }
.field .optional { color: var(--plum-text); }

.field input,
.field textarea {
    border: 1px solid #6d6373;
    border-radius: 0;
    padding: 12px 13px;
    background: transparent;
    color: var(--paper);
    width: 100%;
    font-size: 12px;
}
.field textarea { resize: vertical; min-height: 92px; }
.field input::placeholder,
.field textarea::placeholder { color: #b7acbc; }
.field input:focus,
.field textarea:focus { border-color: var(--acid); }

.contact-form .button {
    width: 100%;
    background: var(--acid);
    color: var(--ink);
    border: 1px solid var(--acid);
}
.contact-form .button:hover { background: var(--paper); }

.form-note { font-size: 10px; color: var(--plum-text); margin-top: 13px; }
.form-status { font-size: 12px; color: var(--acid); margin-top: 12px; }

/* Honeypot — off-screen, never focusable, invisible to real users */
.hp-field {
    position: absolute !important;
    left: -9999px !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Success state swapped in by js/forms.js */
.form-success { padding: 34px 0; }
.form-success .form-success-mark {
    width: 54px;
    height: 54px;
    border-radius: 100%;
    background: var(--acid);
    color: var(--ink);
    display: grid;
    place-items: center;
    font-size: 25px;
    margin-bottom: 20px;
}
.form-success h3 { font-size: 27px; margin-bottom: 11px; }
.form-success p { font-size: 13px; color: var(--plum-text); max-width: 330px; line-height: 1.7; }

/* --------------------------------------------------------------------------
   16. Footer  (injected by js/components.js)
   -------------------------------------------------------------------------- */
.footer { background: var(--plum); color: var(--plum-text); }

.footer > .wrap {
    padding-top: 26px;
    padding-bottom: 45px;
    border-top: 1px solid var(--plum-line);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 25px;
    font-size: 10px;
}

.footer-brand {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.06em;
    color: var(--paper);
}
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-links a:hover { text-decoration: underline; text-underline-offset: 5px; }
.back-top { color: var(--acid); }

/* --------------------------------------------------------------------------
   17. Project dialog
   -------------------------------------------------------------------------- */
dialog {
    width: min(940px, 94vw);
    max-height: 90vh;
    border: 0;
    background: var(--paper);
    padding: 0;
    color: var(--ink);
}
dialog::backdrop { background: #17121de0; }

.dialog-top {
    position: sticky;
    top: 0;
    background: var(--paper);
    padding: 20px 27px;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: center;
    border-bottom: 1px solid var(--line);
    z-index: 1;
}
.dialog-top h2 { font-size: 24px; }

.dialog-close {
    border: 1px solid var(--ink);
    background: transparent;
    width: 37px;
    height: 37px;
    font-size: 22px;
    flex-shrink: 0;
}

.dialog-copy { padding: 23px 27px; font-size: 13px; }
.dialog-copy p { margin-bottom: 12px; }
.dialog-image { width: 100%; display: block; }

/* --------------------------------------------------------------------------
   18. Responsive
   -------------------------------------------------------------------------- */
@media (min-width: 1600px) {
    .hero-bottom { gap: 11%; }
    .featured { min-height: 365px; }
    .site-window { height: 290px; }
}

@media (max-width: 1000px) {
    .hero h1 { font-size: 9.1vw; }
    .hero h1 .second { gap: 20px; }
    .brand-note { display: none; }
    .hero-bottom { gap: 5%; grid-template-columns: 1fr 1.4fr; }
    .hero-copy > p { font-size: 15px; }
    .featured { padding: 25px 23px 0; min-height: 292px; }
    .site-window { height: 230px; width: 91%; }
    .client-name { font-size: 15px; }
    .client-name.serif { font-size: 19px; }
    .client-name.lf { font-size: 12px; }
    .services { gap: 5%; }
    .service h3 { font-size: 23px; }
    .project-image { height: 290px; padding: 27px 27px 0; }
    .contact-grid { gap: 7%; }
    .about > .wrap { gap: 7%; }
    .section-number { margin-right: 18px; }
}

@media (max-width: 700px) {
    html { scroll-padding-top: 20px; }

    .topbar { height: 84px; position: relative; }
    .brand img { width: 69px; height: 58px; }
    .menu { display: block; }
    .nav {
        display: none;
        position: absolute;
        top: 83px;
        left: 0;
        right: 0;
        padding: 24px;
        background: var(--paper);
        border: 1px solid var(--line);
        z-index: 10;
        align-items: stretch;
        gap: 20px;
    }
    .nav.open { display: flex; flex-direction: column; }

    .hero { padding-top: 28px; padding-bottom: 35px; }
    .hero-top { align-items: flex-start; margin-bottom: 28px; gap: 20px; }
    .hero-top .eyebrow { font-size: 9px; max-width: 150px; }
    .location { font-size: 9px; max-width: 135px; text-align: right; line-height: 1.5; }
    .hero h1 { font-size: clamp(32px, 10.8vw, 73px); letter-spacing: -0.069em; }
    .hero h1 .second { gap: 10px; white-space: nowrap; }
    .arrow-disc { display: none; }
    .hero-bottom { grid-template-columns: 1fr; gap: 28px; margin-top: 28px; }
    .hero-copy { padding-top: 0; }
    .hero-copy > p { font-size: 15px; max-width: 440px; }
    .hero-copy .button { margin-top: 22px; }
    .hero-footnote { display: none; }

    .featured { min-height: 275px; padding: 22px 24px 0; }
    .site-window { height: 219px; width: 88%; }
    .project-stamp { width: 72px; height: 72px; font-size: 8px; }
    .hero-feature-caption { font-size: 9px; gap: 12px; }
    .hero-feature-caption strong { font-size: 10px; }

    .client-strip {
        margin-top: 28px;
        padding-top: 22px;
        flex-wrap: wrap;
        justify-content: flex-start;
        gap: 17px 25px;
    }
    .client-strip > p { max-width: none; width: 100%; font-size: 9px; }
    .client-name { font-size: 15px; }
    .client-name.serif { font-size: 18px; }
    .client-name.steven { font-size: 18px; }
    .client-name.lf { font-size: 11px; }

    .work { padding-top: 48px; padding-bottom: 43px; }
    .section-top { display: block; margin-bottom: 27px; }
    .section-top h2 { font-size: 38px; margin-top: 18px; }
    .section-top > p { margin-top: 18px; max-width: 340px; font-size: 12px; }
    .projects { grid-template-columns: 1fr; gap: 32px; }
    .project:nth-child(2) { padding-top: 0; }
    .project-image { height: 288px; padding: 26px 28px 0; }
    .project-meta h3 { font-size: 22px; }
    .project-meta > span { font-size: 9px; }
    .work-bottom { align-items: flex-start; gap: 23px; margin-top: 30px; font-size: 10px; }
    .work-bottom > span { max-width: 170px; }
    .work-bottom a { font-size: 10px; white-space: nowrap; }

    .services { padding-top: 49px; padding-bottom: 48px; grid-template-columns: 1fr; gap: 30px; }
    .services-intro { position: static; }
    .services h2 { font-size: 40px; margin-top: 19px; }
    .services-intro p { max-width: 360px; font-size: 13px; margin-top: 18px; }
    .services-intro .text-link { margin-top: 19px; }
    .service summary { padding: 23px 0; grid-template-columns: 22px 1fr 23px; }
    .service h3 { font-size: 22px; }
    .service-body { padding-left: 34px; padding-right: 10px; }

    .automation { padding-top: 45px; padding-bottom: 47px; grid-template-columns: 1fr; gap: 30px; }
    .automation h2 { font-size: 39px; }
    .automation p { font-size: 13px; }
    .workflow { padding: 23px; }
    .workflow-head { font-size: 9px; }
    .workflow-head span:last-child { font-size: 8px; }

    .about { padding-top: 45px; padding-bottom: 46px; }
    .about > .wrap { grid-template-columns: 1fr; gap: 29px; }
    .about-left { flex-direction: row; align-items: center; }
    .local-symbol { width: 65px; height: 65px; font-size: 42px; }
    .local-symbol:after { font-size: 5px; bottom: 9px; }
    .about h2 { font-size: 39px; }
    .about-copy { grid-template-columns: 1fr; gap: 14px; margin-top: 25px; }
    .about-signature { margin-top: 22px; }

    .process { padding-top: 45px; padding-bottom: 46px; }
    .steps { grid-template-columns: 1fr; gap: 25px; }
    .step { display: grid; grid-template-columns: 37px 1fr; column-gap: 12px; padding-top: 21px; }
    .step-index { display: block; grid-row: span 2; padding-top: 4px; }
    .step-index span:last-child { display: none; }
    .step h3 { margin-top: 0; font-size: 23px; }
    .step p { margin-top: 11px; max-width: none; }

    .contact { padding-top: 48px; padding-bottom: 42px; }
    .contact-grid { grid-template-columns: 1fr; gap: 33px; }
    .contact h2 { font-size: 56px; margin-top: 22px; }
    .contact-copy > p { margin-top: 21px; }
    .contact-direct { margin-top: 24px; font-size: 13px; }
    .form-row { grid-template-columns: 1fr; gap: 0; }

    .footer > .wrap { flex-wrap: wrap; gap: 20px; padding-bottom: 27px; }
    .footer-brand { width: 100%; }
    .footer-links { gap: 15px; }

    .dialog-top { padding: 15px; }
    .dialog-top h2 { font-size: 20px; }
    .dialog-copy { padding: 18px; }
}

/* ==========================================================================
   PART 2 — interior page patterns
   Shared by services, portfolio, contact, automation, the SEO landers,
   and the legal pages. The homepage uses PART 1 only.
   ========================================================================== */

/* --------------------------------------------------------------------------
   19. Page hero — the smaller sibling of the homepage hero
   -------------------------------------------------------------------------- */
.page-hero {
    padding-top: 52px;
    padding-bottom: 58px;
}

.page-hero h1 {
    font-size: clamp(44px, 6.5vw, 96px);
    line-height: 1.02;
    letter-spacing: -0.068em;
    margin-top: 22px;
    max-width: 1100px;
}

.page-hero-lede {
    font-size: 16px;
    line-height: 1.75;
    max-width: 520px;
    margin-top: 26px;
    color: var(--muted);
}

.page-hero-actions {
    display: flex;
    align-items: center;
    gap: 26px;
    flex-wrap: wrap;
    margin-top: 31px;
}

/* Hero with a visual panel beside the copy */
.page-hero-split {
    display: grid;
    grid-template-columns: 1fr 1.05fr;
    gap: 8%;
    align-items: center;
}

/* --------------------------------------------------------------------------
   20. Stat strip
   -------------------------------------------------------------------------- */
.stat-strip {
    border-top: 1px solid var(--line);
    margin-top: 48px;
    padding-top: 26px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
}
.stat-strip.three { grid-template-columns: repeat(3, 1fr); }

.stat strong {
    display: block;
    font-size: clamp(26px, 2.5vw, 38px);
    font-weight: 800;
    letter-spacing: -0.05em;
    line-height: 1.05;
}
.stat span {
    display: block;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--muted);
    margin-top: 9px;
}

/* On plum */
.plum-panel .stat span,
.work .stat span,
.contact .stat span { color: var(--plum-text); }

.plum-panel .stat-strip,
.contact .stat-strip { border-top-color: var(--plum-line); }

/* --------------------------------------------------------------------------
   21. Service rows — alternating copy / visual
   -------------------------------------------------------------------------- */
.svc {
    border-top: 1px solid var(--line);
    padding-top: 54px;
    padding-bottom: 60px;
    display: grid;
    grid-template-columns: 1fr 1.08fr;
    gap: 8%;
    align-items: center;
}
/* .flip puts the visual on the left without reordering the DOM.
   Explicit rather than :nth-of-type — these sections are siblings of
   other <section>s, so nth-of-type would count those too. */
.svc.flip .svc-copy { order: 2; }
.svc.flip .svc-visual { order: 1; }

.svc h2 {
    font-size: clamp(34px, 3.6vw, 54px);
    margin-top: 21px;
    max-width: 480px;
}
.svc-copy > p {
    font-size: 14px;
    line-height: 1.8;
    color: var(--muted);
    max-width: 430px;
    margin-top: 21px;
}
.svc-actions {
    display: flex;
    gap: 26px;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 28px;
}

/* --------------------------------------------------------------------------
   22. Check lists
   -------------------------------------------------------------------------- */
.checks { list-style: none; margin: 25px 0 0; padding: 0; }
.checks li {
    position: relative;
    padding-left: 26px;
    font-size: 13px;
    line-height: 1.7;
    margin-bottom: 11px;
    max-width: 440px;
}
.checks li:before {
    content: "\2713";
    position: absolute;
    left: 0;
    top: 0;
    color: #59683a;
    font-weight: 800;
}
.checks.on-plum li:before { color: var(--acid); }
.checks.on-plum li { color: var(--plum-text); }

/* Arrow variant, for "needs a human" style lists */
.checks.arrows li:before { content: "\2192"; color: var(--muted); }

/* --------------------------------------------------------------------------
   23. Mock panels — the small product illustrations
   Built from the same paper/line vocabulary as .workflow.
   -------------------------------------------------------------------------- */
.mock {
    background: var(--paper-warm);
    padding: 26px 28px;
    font-size: 12px;
}
.mock-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #c6c3b7;
    padding-bottom: 16px;
    margin-bottom: 18px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.mock-head span:last-child {
    font-weight: 400;
    letter-spacing: 0.04em;
    text-transform: none;
    color: var(--muted);
}

.mock-row {
    display: grid;
    grid-template-columns: 24px 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 13px 0;
    border-bottom: 1px solid #d1cec4;
}
.mock-row:last-of-type { border-bottom: 0; }
.mock-row strong { font-size: 12px; font-weight: 800; }
.mock-row small {
    display: block;
    font-size: 10px;
    color: var(--muted);
    margin-top: 2px;
}
.mock-rank {
    width: 24px;
    height: 24px;
    background: var(--paper);
    display: grid;
    place-items: center;
    font-size: 10px;
    font-weight: 800;
}
.mock-row.is-you .mock-rank { background: var(--acid); }
.mock-value { font-size: 11px; color: var(--muted); white-space: nowrap; }
.mock-value.good { color: #59683a; font-weight: 800; }

/* Search bar mock */
.mock-search {
    background: var(--paper);
    border: 1px solid var(--line);
    padding: 9px 12px;
    font-size: 11px;
    color: var(--muted);
    margin-bottom: 16px;
}

/* Chat / call transcript mock */
.mock-line { display: flex; gap: 10px; margin-bottom: 13px; align-items: flex-start; }
.mock-line .who {
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 0.1em;
    background: var(--paper);
    padding: 4px 6px;
    flex-shrink: 0;
    line-height: 1;
}
.mock-line.ai .who { background: var(--acid); }
.mock-line p { font-size: 12px; line-height: 1.6; }
.mock-result {
    border-top: 1px solid #c6c3b7;
    margin-top: 16px;
    padding-top: 15px;
    font-size: 11px;
    font-weight: 800;
}
.mock-result small {
    display: block;
    font-weight: 400;
    color: var(--muted);
    margin-top: 3px;
    font-size: 10px;
}

/* Figure caption under a mock */
.mock-caption {
    display: flex;
    justify-content: space-between;
    margin-top: 11px;
    font-size: 10px;
    color: var(--muted);
}

/* --------------------------------------------------------------------------
   24. Card grid — numbered feature cards (reuses the .step rhythm)
   -------------------------------------------------------------------------- */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; }
.card-grid.two { grid-template-columns: repeat(2, 1fr); }
.card-grid.four { grid-template-columns: repeat(4, 1fr); }

.card { border-top: 1px solid var(--line); padding-top: 21px; }
.card-index {
    font-size: 11px;
    color: var(--muted);
    display: flex;
    justify-content: space-between;
}
.card h3 { font-size: 24px; margin-top: 27px; letter-spacing: -0.045em; }
.card > p { font-size: 13px; color: var(--muted); margin-top: 15px; line-height: 1.75; }
.card .checks { margin-top: 17px; }

.plum-panel .card,
.work .card { border-top-color: var(--plum-line); }
.plum-panel .card-index,
.plum-panel .card > p { color: var(--plum-text); }

/* --------------------------------------------------------------------------
   25. Pullquote — the "numbers behind it" stat
   -------------------------------------------------------------------------- */
.pullquote {
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding-top: 56px;
    padding-bottom: 56px;
}
.pullquote blockquote {
    margin: 0;
    font-size: clamp(28px, 3.3vw, 48px);
    font-weight: 800;
    letter-spacing: -0.05em;
    line-height: 1.12;
    max-width: 1080px;
}
.pullquote blockquote em { font-style: normal; background: var(--acid); padding: 0 6px; }
.pullquote cite {
    display: block;
    font-style: normal;
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
    margin-top: 24px;
}
.pullquote-after {
    font-size: 14px;
    line-height: 1.8;
    color: var(--muted);
    max-width: 560px;
    margin-top: 26px;
}

/* --------------------------------------------------------------------------
   26. Section shells
   -------------------------------------------------------------------------- */
.band { padding-top: 76px; padding-bottom: 78px; }
.band-tight { padding-top: 56px; padding-bottom: 58px; }

.plum-panel {
    background: var(--plum);
    color: var(--paper);
    padding-top: 78px;
    padding-bottom: 80px;
}
.plum-panel .section-top > p,
.plum-panel .page-hero-lede { color: var(--plum-text); }
.plum-panel .section-number { color: #c0b8c5; }
.plum-panel .text-link { color: var(--paper); }

.acid-panel {
    background: var(--acid);
    padding-top: 70px;
    padding-bottom: 72px;
}

/* Closing call-to-action band */
.cta-band { background: var(--plum); color: var(--paper); padding-top: 76px; padding-bottom: 78px; }
.cta-band h2 {
    font-size: clamp(40px, 5vw, 76px);
    margin-top: 24px;
    max-width: 900px;
}
.cta-band h2 span { color: var(--acid); }
.cta-band > .wrap > p {
    font-size: 14px;
    color: var(--plum-text);
    max-width: 480px;
    margin-top: 24px;
    line-height: 1.75;
}
.cta-actions {
    display: flex;
    gap: 22px;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 32px;
}
.cta-band .button {
    background: var(--acid);
    color: var(--ink);
    border-color: var(--acid);
}
.cta-band .button:hover { background: var(--paper); }
.cta-band .text-link { color: var(--paper); }

/* --------------------------------------------------------------------------
   27. FAQ — same accordion mechanics as .service
   -------------------------------------------------------------------------- */
.faq-list { max-width: 900px; }
.faq { border-top: 1px solid var(--line); }
.faq:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
    display: grid;
    grid-template-columns: 1fr 25px;
    align-items: center;
    gap: 12px;
    padding: 24px 0;
}
.faq summary h3 { font-size: 20px; line-height: 1.3; letter-spacing: -0.035em; }
.faq summary .plus { font-size: 25px; font-weight: 400; line-height: 1; text-align: right; }
.faq[open] summary .plus { font-size: 0; }
.faq[open] summary .plus:after { content: "\2212"; font-size: 25px; }
.faq-body { padding: 0 40px 25px 0; }
.faq-body p { font-size: 13px; line-height: 1.8; color: var(--muted); max-width: 640px; }

/* --------------------------------------------------------------------------
   28. Portfolio
   -------------------------------------------------------------------------- */
.case {
    border-top: 1px solid var(--line);
    padding-top: 52px;
    padding-bottom: 56px;
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 8%;
    align-items: center;
}
.case.flip .case-copy { order: 2; }
.case.flip .case-visual { order: 1; }

.case h3 { font-size: clamp(30px, 3.2vw, 46px); margin-top: 18px; letter-spacing: -0.05em; }
.case-copy > p { font-size: 14px; line-height: 1.8; color: var(--muted); max-width: 440px; margin-top: 20px; }
.case-actions { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; margin-top: 26px; }

.shot {
    background: var(--paper-deep);
    padding: 28px 30px;
    overflow: hidden;
}
.shot img {
    width: 100%;
    height: auto;
    display: block;
    box-shadow: 0 8px 30px #28232b1f;
    transition: transform 0.4s;
}
.shot:hover img { transform: translateY(-8px); }

/* Filter row */
.filters {
    display: flex;
    gap: 9px;
    flex-wrap: wrap;
    margin-bottom: 34px;
}
.filters button {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border: 1px solid var(--line);
    background: none;
    color: var(--muted);
    padding: 9px 14px;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.filters button:hover { border-color: var(--ink); color: var(--ink); }
.filters button[aria-pressed="true"] {
    background: var(--ink);
    border-color: var(--ink);
    color: var(--paper);
}

/* Smaller work grid */
.work-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px 26px; }
.tile[hidden] { display: none; }
.tile-shot {
    background: var(--paper-deep);
    padding: 18px 18px 0;
    overflow: hidden;
    display: block;
}
.tile-shot img {
    width: 100%;
    height: auto;
    display: block;
    box-shadow: 0 4px 18px #28232b1a;
    transition: transform 0.4s;
}
.tile:hover .tile-shot img { transform: translateY(-7px); }
.tile-meta { padding-top: 15px; }
.tile-meta .eyebrow { font-size: 9px; color: var(--muted); }
.tile-meta h3 { font-size: 19px; margin-top: 8px; letter-spacing: -0.04em; }
.tile-meta p { font-size: 12px; color: var(--muted); margin-top: 7px; line-height: 1.6; }

/* --------------------------------------------------------------------------
   29. Paper form — the light-background twin of .contact-form
   -------------------------------------------------------------------------- */
.form-paper .field label { color: var(--ink); }
.form-paper .field .optional { color: var(--muted); }
.form-paper .field input,
.form-paper .field textarea,
.form-paper .field select {
    border: 1px solid var(--line);
    background: var(--white);
    color: var(--ink);
}
.form-paper .field input::placeholder,
.form-paper .field textarea::placeholder { color: #a39fa6; }
.form-paper .field input:focus,
.form-paper .field textarea:focus,
.form-paper .field select:focus { border-color: var(--ink); }
.form-paper .button { width: 100%; background: var(--ink); color: var(--white); border-color: var(--ink); }
.form-paper .button:hover { background: var(--acid); color: var(--ink); }
.form-paper .form-note { color: var(--muted); }
.form-paper .form-status { color: #59683a; }
.form-paper .form-success p { color: var(--muted); }

/* Select needs explicit sizing since we reset the browser chrome */
.field select {
    border: 1px solid #6d6373;
    border-radius: 0;
    padding: 12px 13px;
    background: transparent;
    color: var(--paper);
    width: 100%;
    font-size: 12px;
    appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, currentColor 50%),
                      linear-gradient(135deg, currentColor 50%, transparent 50%);
    background-position: calc(100% - 17px) 55%, calc(100% - 12px) 55%;
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
}

/* Consent checkboxes (10DLC / SMS compliance — keep the wording intact) */
.consent { display: flex; gap: 11px; align-items: flex-start; margin-bottom: 16px; }
.consent input[type="checkbox"] {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
    margin-top: 3px;
    accent-color: var(--ink);
}
.consent label { font-size: 10px; line-height: 1.6; color: var(--muted); }
.contact-form .consent label { color: var(--plum-text); }

/* Form panel on a paper page */
.form-panel {
    background: var(--paper-warm);
    padding: 34px 36px;
}

/* --------------------------------------------------------------------------
   30. Two-column compare (handles / needs a human)
   -------------------------------------------------------------------------- */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 42px; }
.compare > div { border-top: 1px solid var(--line); padding-top: 22px; }
.compare h3 { font-size: 21px; letter-spacing: -0.04em; }
.compare .checks { margin-top: 19px; }

/* --------------------------------------------------------------------------
   31. Prose — privacy policy, terms
   -------------------------------------------------------------------------- */
.prose { max-width: 760px; padding-bottom: 84px; }
.prose h2 {
    font-size: 28px;
    margin-top: 46px;
    margin-bottom: 15px;
    letter-spacing: -0.045em;
}
.prose h3 { font-size: 18px; margin-top: 30px; margin-bottom: 11px; }
.prose p,
.prose li { font-size: 14px; line-height: 1.85; color: var(--muted); }
.prose p { margin-bottom: 15px; }
.prose ul, .prose ol { padding-left: 20px; margin-bottom: 18px; }
.prose li { margin-bottom: 8px; }
.prose a { text-decoration: underline; text-underline-offset: 4px; color: var(--ink); }
.prose strong { color: var(--ink); }
.prose-meta {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--muted);
    border-top: 1px solid var(--line);
    padding-top: 18px;
    margin-bottom: 8px;
}

/* --------------------------------------------------------------------------
   32. Local service-area chips + direct contact list
   -------------------------------------------------------------------------- */
.areas { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.areas span {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.06em;
    border: 1px solid var(--line);
    padding: 7px 11px;
}
.plum-panel .areas span { border-color: var(--plum-line); color: var(--plum-text); }

.direct-list { border-top: 1px solid var(--line); margin-top: 34px; padding-top: 24px; }
.direct-item { padding: 16px 0; border-bottom: 1px solid var(--line); }
.direct-item:last-child { border-bottom: 0; }
.direct-item .eyebrow { font-size: 9px; color: var(--muted); }
.direct-item a,
.direct-item > strong {
    display: block;
    font-size: 21px;
    font-weight: 800;
    letter-spacing: -0.045em;
    margin-top: 7px;
}
.direct-item a:hover { text-decoration: underline; text-underline-offset: 5px; }
.direct-item small { display: block; font-size: 11px; color: var(--muted); margin-top: 6px; }

/* --------------------------------------------------------------------------
   33. PART 2 responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1000px) {
    .page-hero-split { grid-template-columns: 1fr 1fr; gap: 5%; }
    .svc, .case { grid-template-columns: 1fr 1fr; gap: 5%; }
    .work-grid { grid-template-columns: repeat(3, 1fr); gap: 26px 22px; }
    .card-grid.four { grid-template-columns: repeat(2, 1fr); }
    .stat-strip { gap: 20px; }
}

@media (max-width: 760px) {
    .work-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 700px) {
    .page-hero { padding-top: 32px; padding-bottom: 38px; }
    .page-hero h1 { font-size: clamp(34px, 10vw, 62px); }
    .page-hero-lede { font-size: 15px; margin-top: 20px; }
    .page-hero-actions { gap: 18px; margin-top: 24px; }
    .page-hero-split { grid-template-columns: 1fr; gap: 28px; }

    .stat-strip,
    .stat-strip.three { grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 32px; }

    .svc, .case {
        grid-template-columns: 1fr;
        gap: 28px;
        padding-top: 40px;
        padding-bottom: 42px;
    }
    /* Visual always follows the copy on small screens */
    .svc.flip .svc-copy,
    .case.flip .case-copy { order: 1; }
    .svc.flip .svc-visual,
    .case.flip .case-visual { order: 2; }
    .svc h2 { font-size: 34px; }
    .case h3 { font-size: 31px; }

    .band { padding-top: 48px; padding-bottom: 50px; }
    .band-tight { padding-top: 40px; padding-bottom: 42px; }
    .plum-panel { padding-top: 48px; padding-bottom: 50px; }
    .acid-panel { padding-top: 44px; padding-bottom: 46px; }

    .card-grid,
    .card-grid.two,
    .card-grid.four { grid-template-columns: 1fr; gap: 26px; }

    .pullquote { padding-top: 40px; padding-bottom: 40px; }
    .pullquote blockquote { font-size: 27px; }

    .cta-band { padding-top: 48px; padding-bottom: 50px; }
    .cta-band h2 { font-size: 40px; }
    .cta-actions { gap: 18px; margin-top: 26px; }

    .faq summary h3 { font-size: 17px; }
    .faq-body { padding-right: 10px; }

    .work-grid { grid-template-columns: 1fr; gap: 28px; }
    .shot { padding: 20px 20px; }

    .compare { grid-template-columns: 1fr; gap: 28px; }
    .form-panel { padding: 24px 22px; }
    .mock { padding: 20px 20px; }
}

/* --------------------------------------------------------------------------
   34. Browser frame — a site screenshot in chrome, at natural height
   (the hero's .site-window is fixed-height; this one flows)
   -------------------------------------------------------------------------- */
.browser {
    background: #fff;
    box-shadow: 0 8px 30px #28232b1f;
    overflow: hidden;
    transition: transform 0.4s;
}
.browser img { width: 100%; height: auto; display: block; }
.shot:hover .browser { transform: translateY(-8px); }
.shot:hover .browser img { transform: none; }

/* Card headings that are links */
.card h3 a:hover { text-decoration: underline; text-underline-offset: 6px; }
.plum-panel .form-status { color: var(--acid); }

/* --------------------------------------------------------------------------
   35. Savings calculator (js/calculator.js drives this)
   The script toggles `.hidden`, sets `.is-invalid`, and runs `calcShake`,
   so those three have to exist outside Tailwind.
   -------------------------------------------------------------------------- */
.hidden { display: none !important; }

.is-invalid {
    border-color: #a8443c !important;
    background: #f7ecea !important;
}

@keyframes calcShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.calc {
    background: var(--paper-warm);
    padding: 34px 36px;
    position: relative;
}
.calc-glow { display: none; }

.calc-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #c6c3b7;
    padding-bottom: 18px;
    margin-bottom: 24px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.calc-head span:last-child {
    font-weight: 400;
    letter-spacing: 0.04em;
    text-transform: none;
    color: var(--muted);
}

.calc .field label { color: var(--ink); }
.calc .field input,
.calc .field select,
.calc .field textarea {
    border: 1px solid var(--line);
    background: var(--white);
    color: var(--ink);
}
.calc .field input::placeholder,
.calc .field textarea::placeholder { color: #a39fa6; }
.calc .field input:focus,
.calc .field select:focus,
.calc .field textarea:focus { border-color: var(--ink); }

.preset-chips { display: flex; flex-wrap: wrap; gap: 7px; margin: -8px 0 20px; }
.preset-chip {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.04em;
    border: 1px solid var(--line);
    background: none;
    color: var(--muted);
    padding: 6px 10px;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.preset-chip:hover { border-color: var(--ink); color: var(--ink); background: var(--paper); }

.calc-slider { margin-bottom: 22px; }
.calc-slider-top {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-size: 11px;
    margin-bottom: 11px;
}
.calc-slider-top strong { font-size: 15px; font-weight: 800; }
.calc input[type="range"] {
    width: 100%;
    accent-color: var(--ink);
    height: 3px;
    background: var(--line);
}
.calc-slider small { display: block; font-size: 10px; color: var(--muted); margin-top: 9px; }

.calc .button { width: 100%; background: var(--ink); color: var(--white); border-color: var(--ink); }
.calc .button:hover { background: var(--acid); color: var(--ink); }

/* Results read-out */
.calc-results { border-top: 1px solid #c6c3b7; margin-top: 26px; padding-top: 22px; }
.calc-results-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 24px; }
.calc-out .eyebrow { font-size: 9px; color: var(--muted); }
.calc-out strong {
    display: block;
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.05em;
    margin-top: 7px;
}
.calc-out.is-cost strong { background: var(--acid); display: inline-block; padding: 0 6px; }
.calc-roi {
    border-top: 1px solid #c6c3b7;
    margin-top: 22px;
    padding-top: 18px;
    font-size: 12px;
    font-weight: 800;
}
.calc-roi small { display: block; font-weight: 400; color: var(--muted); margin-top: 5px; font-size: 11px; }

/* Lead capture under the results */
.calc-lead { border-top: 1px solid #c6c3b7; margin-top: 24px; padding-top: 22px; }
.calc-lead h3 { font-size: 21px; letter-spacing: -0.04em; }
.calc-lead > p { font-size: 12px; color: var(--muted); margin-top: 9px; margin-bottom: 18px; }

.calc-success { border-top: 1px solid #c6c3b7; margin-top: 24px; padding-top: 24px; }
.calc-success .form-success-mark { margin-bottom: 16px; }
.calc-success h3 { font-size: 21px; letter-spacing: -0.04em; margin-bottom: 9px; }
.calc-success p { font-size: 12px; color: var(--muted); }

@media (max-width: 700px) {
    .calc { padding: 24px 22px; }
    .calc-results-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
    .calc-out strong { font-size: 22px; }
}

/* --------------------------------------------------------------------------
   36. Motion
   Two mechanisms, both fail-safe:

   a) The page-top entrance is PURE CSS. If the stylesheet parses, the
      animation runs to completion — no script can strand content hidden.
   b) Scroll reveal is applied by js/motion.js, and only ever to elements
      that start BELOW the fold. Above-fold content is never touched (so it
      can't flash), and if motion.js never runs nothing is invisible.

   This is deliberate: the July 2026 audit traced a 9.3s mobile FCP to AOS
   holding [data-aos] at opacity 0 until its CDN script arrived. Don't
   reintroduce a global "hide everything, then reveal" rule.
   -------------------------------------------------------------------------- */

@keyframes eew-rise {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: none; }
}

/* Page-top entrance. `both` fill so the element holds the from-state during
   its delay instead of flashing in and back out. */
.hero .hero-top,
.hero h1,
.hero-copy,
.hero-bottom > div:last-child,
.hero .client-strip,
.page-hero .hero-top,
.page-hero h1,
.page-hero .page-hero-lede,
.page-hero .page-hero-actions,
.page-hero .page-hero-split,
.page-hero .stat-strip {
    animation: eew-rise 0.72s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

.hero h1,
.page-hero h1 { animation-delay: 0.06s; }

.hero-copy,
.page-hero .page-hero-lede { animation-delay: 0.14s; }

.hero-bottom > div:last-child,
.page-hero .page-hero-actions,
.page-hero .page-hero-split { animation-delay: 0.2s; }

.hero .client-strip,
.page-hero .stat-strip { animation-delay: 0.28s; }

/* Scroll reveal — the class is added by js/motion.js, never in markup */
.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition:
        opacity 0.66s cubic-bezier(0.22, 0.61, 0.36, 1),
        transform 0.66s cubic-bezier(0.22, 0.61, 0.36, 1);
    transition-delay: var(--reveal-delay, 0ms);
}
.reveal.is-in { opacity: 1; transform: none; }

/* An anchor target shouldn't draw a focus ring just from being scrolled to */
[tabindex="-1"]:focus { outline: none; }

/* Hover polish that belongs with the rest of the motion */
.text-link,
.contact-direct a,
.footer-links a { transition: opacity 0.2s; }
.text-link:hover,
.contact-direct a:hover { opacity: 0.62; }

.card,
.step { transition: border-top-color 0.3s; }
.card:hover,
.step:hover { border-top-color: var(--ink); }
.plum-panel .card:hover { border-top-color: var(--acid); }

.tile-shot,
.shot,
.featured { transition: background 0.3s; }

/* Reduced motion: the global block in section 2 already collapses durations.
   Delays have to go too, or a staggered element sits at its from-state for
   the length of the delay before snapping in. */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-delay: 0ms !important;
        transition-delay: 0ms !important;
    }
    .reveal { opacity: 1; transform: none; }
}
