/* ============================================================
   Cortex Innovations — 2026 redesign ("lamplit study")
   Shared stylesheet: index, services, about, contact, 404,
   and the Norman landing page.
   Dark is the default theme; [data-theme="light"] overrides.
   Fonts: Newsreader (display), Spectral (body), IBM Plex Mono (labels)
   ============================================================ */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

/* Author display rules (grid/flex) otherwise beat the UA [hidden] rule. */
[hidden] { display: none !important; }

:root {
    --bg: #111b14;
    --bg2: #0d1610;
    --panel: #182419;
    --tp: #e9e6d8;
    --ts: #a3ad9a;
    --tt: #75816e;
    --body2: #cfd4c2;
    --acc: #d9884a;
    --acc-ink: #16110b;
    --acc-border: rgba(217, 136, 74, .4);
    --acc-soft: rgba(217, 136, 74, .08);
    --hair: rgba(233, 230, 216, .14);
    --hair-strong: rgba(233, 230, 216, .2);
    --img-shadow: 0 16px 34px rgba(0, 0, 0, .4);
    --panel-shadow: 0 30px 60px rgba(0, 0, 0, .4);
    --photo-shadow: 0 8px 26px rgba(0, 0, 0, .3);
    --glow-o: 1;
    --grain-o: .05;
    --blob-green: rgba(60, 90, 67, .22);
    --sk-ink: #aab5a0;
    --sk-soft: #5f6b59;
    --sk-grid: #3d4a39;
    --paper: #fbf8f0;
    --paper-ink: #232f1e;
    --lever-top: 19px;
    --lever-bg: #75816e;
}

[data-theme="light"] {
    --bg: #f6f2e8;
    --bg2: #efe9db;
    --panel: #fbf8f0;
    --tp: #232f1e;
    --ts: #4c5847;
    --tt: #75806a;
    --body2: #3c4837;
    --acc: #b35a22;
    --acc-ink: #f8f3e7;
    --acc-border: rgba(179, 90, 34, .45);
    --acc-soft: rgba(179, 90, 34, .08);
    --hair: rgba(35, 47, 30, .22);
    --hair-strong: rgba(35, 47, 30, .4);
    --img-shadow: 0 14px 30px rgba(35, 47, 30, .12);
    --panel-shadow: 0 18px 40px rgba(35, 47, 30, .12);
    --photo-shadow: 0 8px 26px rgba(35, 47, 30, .18);
    --glow-o: .4;
    --grain-o: .035;
    --blob-green: rgba(120, 145, 118, .18);
    --sk-ink: #4c5847;
    --sk-soft: #97a08b;
    --sk-grid: #97a08b;
    --lever-top: 5px;
    --lever-bg: #b35a22;
}

html { scroll-behavior: smooth; }

body {
    background: var(--bg);
    color: var(--tp);
    font-family: 'Spectral', Georgia, serif;
    transition: background-color .45s ease, color .45s ease;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--acc); }
summary::-webkit-details-marker { display: none; }

h1, h2, h3 { font-family: 'Newsreader', Georgia, serif; }
/* Headline emphasis carries via weight + accent color rather than slant;
   italics measurably slow reading and jar against the roman text before them. */
h1 em, h2 em, h3 em { font-style: normal; font-weight: 500; }
.em-acc { color: var(--acc); }

.page { position: relative; min-height: 100vh; }
.page *, .page *::before, .page *::after {
    transition: background-color .45s ease, color .45s ease, border-color .45s ease;
}

/* ===== Ambience: film grain, lamplight, drifting blobs ===== */
.grain {
    position: fixed;
    inset: 0;
    z-index: 60;
    pointer-events: none;
    opacity: var(--grain-o);
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 256px 256px;
}

.glow, .blob { position: absolute; pointer-events: none; transition: none; }
.glow { border-radius: 50%; }

.glow--lamp {
    top: -220px;
    left: 18%;
    width: 640px;
    height: 640px;
    background: radial-gradient(circle, rgba(217, 136, 74, .13) 0%, transparent 60%);
    filter: blur(80px);
    animation: lampBreathe 13s ease-in-out infinite;
}

.glow--lamp-corner { top: -240px; right: -160px; left: auto; }

.glow--cta {
    bottom: -260px;
    left: 50%;
    margin-left: -280px;
    width: 560px;
    height: 560px;
    background: radial-gradient(circle, rgba(217, 136, 74, .16) 0%, transparent 62%);
    filter: blur(80px);
    animation: lampBreathe 12s ease-in-out -6s infinite;
}

.glow--404 { top: -200px; left: 50%; margin-left: -320px; }

.blob--acc {
    bottom: -140px;
    right: -120px;
    width: 520px;
    height: 520px;
    background: var(--acc-soft);
    filter: blur(90px);
    animation: blobDrift 24s ease-in-out infinite;
}

.blob--green {
    top: -120px;
    left: -160px;
    width: 560px;
    height: 560px;
    background: var(--blob-green);
    filter: blur(100px);
    animation: blobDrift 30s ease-in-out -12s infinite reverse;
}

@keyframes lampBreathe {
    0%, 100% { opacity: calc(.45 * var(--glow-o)); transform: scale(1); }
    50% { opacity: calc(.85 * var(--glow-o)); transform: scale(1.1); }
}

@keyframes blobDrift {
    0%, 100% { transform: translate(0, 0) scale(1); border-radius: 52% 48% 61% 39% / 44% 59% 41% 56%; }
    33% { transform: translate(30px, -24px) scale(1.06); border-radius: 39% 61% 47% 53% / 56% 44% 58% 42%; }
    66% { transform: translate(-22px, 18px) scale(.96); border-radius: 58% 42% 38% 62% / 41% 52% 48% 59%; }
}

/* ===== Nav ===== */
.nav {
    position: sticky;
    top: 0;
    z-index: 90;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 48px;
    height: 82px;
    border-bottom: 1px solid var(--hair);
    background: color-mix(in srgb, var(--bg) 88%, transparent);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

@supports not (background: color-mix(in srgb, red 50%, transparent)) {
    .nav { background: var(--bg); }
}

.nav-brand { display: flex; align-items: center; gap: 12px; }
.nav-brand img { height: 42px; width: auto; }
.nav-brand span { font-size: 19px; font-weight: 500; letter-spacing: .05em; color: var(--tp); }

.nav-right { display: flex; align-items: center; gap: 28px; }

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 12.5px;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--ts);
}

.nav-links a { color: var(--ts); white-space: nowrap; }
.nav-links a:hover { color: var(--tp); }
.nav-links a.active { color: var(--tp); border-bottom: 1px solid var(--acc); padding-bottom: 2px; }

.nav-links a.nav-auth-link { color: var(--acc); }
.nav-links a.nav-auth-link:hover { color: var(--acc); }

.nav-links a.nav-cta {
    color: var(--acc);
    border: 1px solid var(--acc-border);
    padding: 8px 16px;
    border-radius: 6px;
}
.nav-links a.nav-cta:hover { background: var(--acc-soft); color: var(--acc); }

/* Lightswitch theme toggle */
.theme-toggle {
    width: 36px;
    height: 36px;
    border-radius: 5px;
    border: 1px solid var(--hair);
    background: var(--panel);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    color: var(--ts);
    flex-shrink: 0;
}

.switch-body { width: 18px; height: 28px; display: block; position: relative; }
.switch-plate { position: absolute; inset: 0; border: 1.3px solid currentColor; border-radius: 3px; }
.switch-slot {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 7px;
    height: 14px;
    border: 1px solid currentColor;
    border-radius: 1px;
    transform: translate(-50%, -50%);
}
.switch-lever {
    position: absolute;
    left: 50%;
    top: var(--lever-top);
    width: 5px;
    height: 5px;
    border-radius: 1px;
    background: var(--lever-bg);
    transform: translateX(-50%);
    transition: top .28s cubic-bezier(.4, 0, .2, 1), background-color .3s ease;
}

/* Hamburger (mobile only) */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 38px;
    height: 38px;
    padding: 0 8px;
    background: none;
    border: 1px solid var(--hair);
    border-radius: 5px;
    cursor: pointer;
    flex-shrink: 0;
}
.menu-toggle span { display: block; height: 1.5px; background: var(--ts); transition: transform .25s ease, opacity .25s ease; }
.menu-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Signed-in account dropdown (auth-nav.js) */
.nav-auth-item { position: relative; display: inline-flex; align-items: center; }
.nav-auth-wrap { position: relative; }

.nav-auth-trigger {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 6px;
    padding: 6px 10px;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 12.5px;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--acc);
    cursor: pointer;
}
.nav-auth-trigger:hover,
.nav-auth-wrap.open .nav-auth-trigger { border-color: var(--acc-border); background: var(--acc-soft); }

.nav-auth-avatar-icon { width: 16px; height: 16px; flex-shrink: 0; }
.nav-auth-name { white-space: nowrap; max-width: 120px; overflow: hidden; text-overflow: ellipsis; }
.nav-auth-chev { width: 11px; height: 11px; transition: transform .2s ease; opacity: .7; }
.nav-auth-wrap.open .nav-auth-chev { transform: rotate(180deg); }

.nav-auth-menu {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    min-width: 230px;
    background: var(--panel);
    border: 1px solid var(--hair-strong);
    border-radius: 8px;
    padding: 6px;
    box-shadow: var(--panel-shadow);
    display: none;
    flex-direction: column;
    z-index: 200;
}
.nav-auth-wrap.open .nav-auth-menu { display: flex; }

.nav-auth-menu-item {
    display: block;
    width: 100%;
    text-align: left;
    padding: 10px 12px;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--ts);
    background: transparent;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    white-space: nowrap;
}
.nav-auth-menu-item:hover { background: var(--acc-soft); color: var(--tp); }
.nav-auth-menu-sep { height: 1px; background: var(--hair); margin: 4px 6px; }
.nav-auth-signout { color: #c96a5a; }
.nav-auth-signout:hover { color: #c96a5a; }

/* ===== Shared section bits ===== */
.section {
    position: relative;
    z-index: 2;
    padding: 88px 48px;
    border-top: 1px solid var(--hair);
}
.section--alt { background: var(--bg2); }
.section--tight { padding-top: 80px; padding-bottom: 80px; }

.wrap-820 { max-width: 820px; margin: 0 auto; }
.wrap-960 { max-width: 960px; margin: 0 auto; }
.wrap-1000 { max-width: 1000px; margin: 0 auto; }
.wrap-1120 { max-width: 1120px; margin: 0 auto; }
.wrap-1180 { max-width: 1180px; margin: 0 auto; }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11.5px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--acc);
    margin-bottom: 14px;
}

.section-head { text-align: center; margin-bottom: 50px; }
.section-head .section-lede { margin-left: auto; margin-right: auto; margin-bottom: 0; }

.section-title { font-size: clamp(32px, 4vw, 44px); line-height: 1.15; font-weight: 500; margin: 0 0 12px; }
.section-title--compact { font-size: clamp(28px, 3.2vw, 36px); line-height: 1.25; }
.section-title--wide { font-size: clamp(34px, 4.4vw, 48px); line-height: 1.12; }

.section-lede {
    margin: 0 0 46px;
    font-size: 16.5px;
    line-height: 1.75;
    font-weight: 300;
    color: var(--ts);
    max-width: 540px;
}

.link-arrow {
    font-style: italic;
    font-size: 17px;
    color: var(--ts);
    border-bottom: 1px solid var(--hair-strong);
    padding-bottom: 2px;
}
.link-arrow:hover { color: var(--tp); }

.btn-primary {
    display: inline-flex;
    background: var(--acc);
    color: var(--acc-ink);
    padding: 15px 30px;
    border-radius: 6px;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: .09em;
    text-transform: uppercase;
    transition: transform .2s ease, background-color .45s ease, color .45s ease;
}
.btn-primary:hover { transform: translateY(-1px); color: var(--acc-ink); }
.btn-primary--compact { padding: 14px 26px; white-space: nowrap; }

/* Card surface shared by dock cards, price cards, plans, people */
.card {
    background: var(--panel);
    border: 1px solid var(--hair);
    border-radius: 8px;
    transition: transform .2s ease, box-shadow .2s ease, background-color .45s ease, border-color .45s ease;
}
.card--hover:hover { transform: translateY(-3px); box-shadow: var(--panel-shadow); }

/* Scroll reveals: JS hides these, so content stays visible without JS */
[data-rv] { will-change: opacity, transform; }

/* ===== Home: hero ===== */
.hero {
    position: relative;
    z-index: 2;
    padding: 96px 48px 84px;
    overflow: hidden;
}

/* Location-lander hero: the exact home-hero layout (copy top-left, sketch right,
   content-height), with the city drawing as a full-bleed cover background behind
   it. No aspect-ratio or centering — content flows from the top like the home
   hero. Set the image per page via the inline --hero-photo property; the wash
   fades it into the theme background for legibility. */
.hero--photo {
    padding-top: 72px;
    padding-bottom: 64px;
}
.hero--photo::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    /* Two washes keep the copy legible over the drawing: a left scrim that
       darkens the text column (fading to clear over the skyline + sketch on the
       right), plus a gentle top-to-bottom wash over the whole image. */
    background:
        linear-gradient(90deg,
            var(--bg) 0%,
            color-mix(in srgb, var(--bg) 82%, transparent) 34%,
            color-mix(in srgb, var(--bg) 34%, transparent) 58%,
            transparent 74%),
        linear-gradient(180deg,
            color-mix(in srgb, var(--bg) 34%, transparent) 0%,
            color-mix(in srgb, var(--bg) 46%, transparent) 100%),
        var(--hero-photo) center / cover no-repeat;
}
/* Lift only the content above the background ::before. Must NOT match .glow —
   targeting > * would override .glow's position:absolute to relative, dropping
   the 640px glow back into flow and shoving the copy down the page. */
.hero--photo > .wrap-1180 { position: relative; z-index: 1; }
/* Slightly smaller headline than the home hero so the copy fits comfortably;
   the sketch keeps its full home-hero size (fills the grid column). */
.hero--photo h1 { font-size: clamp(34px, 3.9vw, 50px); }
/* Let the grid columns shrink below their content's intrinsic width so the
   detailed sketch SVG can't force horizontal page overflow on narrow screens. */
.hero--photo .hero-grid > * { min-width: 0; }

/* Mobile: the copy stacks full-width, so hide the decorative sketch (its detail
   reads poorly at phone size) and drop the left scrim in favour of a simple
   top-to-bottom wash over the skyline. */
@media (max-width: 1020px) {
    .hero--photo { padding-top: 56px; padding-bottom: 44px; }
    .hero--photo .sketch-panel { display: none; }
    /* Show the skyline as a full-width band across the top (its natural width,
       not a cropped sliver), fading to solid where the copy sits below. */
    .hero--photo::before {
        background:
            linear-gradient(180deg,
                color-mix(in srgb, var(--bg) 45%, transparent) 0%,
                color-mix(in srgb, var(--bg) 66%, transparent) 22%,
                var(--bg) 46%),
            var(--hero-photo) top center / 100% auto no-repeat;
    }
}

.hero-grid {
    position: relative;
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 64px;
    align-items: center;
}

.hero .eyebrow { margin-bottom: 28px; }
/* Draw the eye on load: the hero eyebrow slides in from the left before the
   headline settles. Motion-safe only. */
@media (prefers-reduced-motion: no-preference) {
    .hero .eyebrow { animation: eyebrow-slide-in .75s cubic-bezier(.22, .61, .36, 1) .15s both; }
    @keyframes eyebrow-slide-in {
        from { opacity: 0; transform: translateX(-20px); }
        to   { opacity: 1; transform: translateX(0); }
    }
}

.hero h1 {
    margin: 0 0 24px;
    font-size: clamp(40px, 4.6vw, 62px);
    line-height: 1.08;
    font-weight: 400;
    letter-spacing: -.01em;
}

.hero-lede { margin: 0 0 36px; max-width: 520px; font-size: 18.5px; line-height: 1.8; font-weight: 300; color: var(--ts); }
.hero-actions { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.hero-note { margin: 36px 0 0; max-width: 400px; font-style: italic; font-size: 14.5px; line-height: 1.7; color: var(--tt); }

/* ===== Drafting desk sketch ===== */
.sketch-panel {
    position: relative;
    background: var(--panel);
    border: 1px solid var(--hair);
    box-shadow: var(--panel-shadow);
    padding: 26px 22px 16px;
}
.sketch-panel svg { width: 100%; height: auto; color: var(--sk-grid); display: block; }

.sk .l { stroke: var(--sk-ink); stroke-width: 1.5; stroke-linecap: round; }
.sk .ls { stroke: var(--sk-soft); stroke-width: 2; stroke-linecap: round; }
.sk .ac { stroke: var(--acc); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.sk .grid { opacity: 0; color: var(--sk-grid); }
.sk text { font-family: 'Newsreader', Georgia, serif; stroke: none; }
.sk .dom { font-size: 11px; font-style: italic; fill: var(--ts); }
.sk .brand { font-size: 10px; font-weight: 600; letter-spacing: .14em; fill: var(--tp); }
.sk .navl { font-size: 9.5px; fill: var(--ts); }
.sk .copy { font-size: 21px; font-weight: 500; fill: var(--tp); }
.sk .sub { font-size: 10px; font-style: italic; fill: var(--tt); }
.sk .btnf { fill: var(--acc); opacity: 0; }
.sk .btnl { font-size: 10px; font-weight: 600; fill: var(--acc-ink); }
.sk .anno { font-size: 9.5px; font-style: italic; fill: var(--acc); }
.sk .annoa { stroke: var(--acc); stroke-width: 1; stroke-linecap: round; stroke-linejoin: round; opacity: .8; }
.sk .cap { font-size: 10px; font-style: italic; fill: var(--tt); }
.sk .draw {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    animation: skDraw .8s ease forwards;
    animation-delay: var(--d, 0s);
    transition: none;
}
.sk .fill-in { opacity: 0; animation: skFade .6s ease forwards; animation-delay: var(--d, 0s); transition: none; }
.sk .grid.fill-in { animation-name: skGridFade; }
.sk .edit {
    transform-origin: 40px 274px;
    animation: skDraw .8s ease forwards, skEdit 9s ease-in-out infinite;
    animation-delay: var(--d, 0s), 7s;
}

@keyframes skDraw { to { stroke-dashoffset: 0; } }
@keyframes skFade { to { opacity: 1; } }
@keyframes skGridFade { to { opacity: .4; } }
@keyframes skEdit { 0%, 52%, 100% { transform: scaleX(1); } 60%, 88% { transform: scaleX(.64); } }

/* ===== Home: mission band ===== */
.mission { max-width: 840px; margin: 0 auto; text-align: center; }
.mission img { width: 52px; height: 52px; object-fit: contain; margin: 0 auto 26px; display: block; }
.mission p {
    margin: 0 auto;
    font-family: 'Newsreader', Georgia, serif;
    font-size: clamp(24px, 2.6vw, 31px);
    font-weight: 400;
    line-height: 1.45;
    color: var(--body2);
    letter-spacing: -.005em;
}
.mission em { font-style: normal; font-weight: 500; color: var(--acc); }

/* ===== Home: rotating services dock ===== */
.dock { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; min-height: 230px; }

.dock-card {
    padding: 28px;
    opacity: 1;
    transform: none;
    /* Staggered fade is driven by transition-delay, set per visible card in redesign.js */
    transition: opacity .5s ease, transform .5s ease, background-color .45s ease, border-color .45s ease;
}
.dock-card svg { width: 36px; height: 36px; margin-bottom: 14px; display: block; }
.dock-cat {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--tt);
    margin-bottom: 8px;
}
.dock-card h3 { margin: 0 0 10px; font-size: 22px; font-weight: 500; color: var(--tp); }
.dock-card p { margin: 0; font-size: 15.5px; line-height: 1.65; font-weight: 300; color: var(--ts); }

.dock.is-fading .dock-card { opacity: 0; transform: translateY(12px); }

.dock-foot { display: flex; align-items: center; justify-content: center; gap: 20px; margin-top: 38px; flex-wrap: wrap; }

/* ===== Home: counters ===== */
.counters { max-width: 960px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); }
.counter { padding: 8px 32px; border-left: 1px solid var(--hair); }
.counter:first-child { padding-left: 0; border-left: none; }
.counter:last-child { padding-right: 0; }
.counter-num {
    font-family: 'Newsreader', Georgia, serif;
    font-size: 56px;
    font-weight: 300;
    line-height: 1;
    color: var(--acc);
    margin-bottom: 12px;
}
.counter-unit { font-size: 22px; color: var(--tt); }
.counter-label { font-size: 15.5px; line-height: 1.65; font-weight: 300; color: var(--ts); }

/* ===== Home: work carousel ===== */
.work-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}
.work-head p { margin: 0; max-width: 480px; font-size: 16px; line-height: 1.7; font-weight: 300; color: var(--ts); }
.work-head .section-title { margin-bottom: 10px; }

.carousel-nav { display: flex; gap: 10px; }
.carousel-btn {
    width: 44px;
    height: 44px;
    border-radius: 6px;
    border: 1px solid var(--hair-strong);
    background: var(--panel);
    color: var(--tp);
    font-size: 18px;
    cursor: pointer;
    transition: border-color .2s ease, color .2s ease, background-color .45s ease;
}
.carousel-btn:hover { border-color: var(--acc-border); color: var(--acc); }

.carousel-window { overflow: hidden; }
.carousel-track { display: flex; transition: transform .65s cubic-bezier(.4, 0, .2, 1); }

.work-slide {
    flex: 0 0 100%;
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 48px;
    align-items: center;
    padding: 4px;
    color: inherit;
}
.work-shot { width: 100%; height: auto; display: block; border: 1px solid var(--hair); box-shadow: var(--img-shadow); }
.work-domain {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
    letter-spacing: .07em;
    color: var(--acc);
    margin-bottom: 10px;
}
.work-info h3 { margin: 0 0 8px; font-size: 27px; font-weight: 500; color: var(--tp); }
.work-scope {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 12px;
    letter-spacing: .04em;
    color: var(--tt);
    margin: 0 0 12px;
}
.work-desc { margin: 0 0 12px; font-size: 15.5px; line-height: 1.75; font-weight: 300; color: var(--ts); }
.work-loc { font-style: italic; font-size: 14.5px; color: var(--tt); }

.carousel-dots { display: flex; justify-content: center; gap: 10px; margin-top: 30px; }
.carousel-dot {
    width: 26px;
    height: 3px;
    border: none;
    padding: 0;
    cursor: pointer;
    background: var(--hair-strong);
    transition: background-color .3s ease;
}
.carousel-dot.is-active { background: var(--acc); }

/* ===== Home: founders ===== */
.founders-grid { max-width: 960px; margin: 0 auto; display: grid; grid-template-columns: 280px 1fr; gap: 56px; align-items: center; }
.founders-photos { display: flex; justify-content: center; }
.founders-stack { position: relative; width: 230px; height: 230px; }
.founders-stack img {
    position: absolute;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--panel);
    box-shadow: var(--photo-shadow);
}
.founders-stack img:first-child { top: 0; left: 0; }
.founders-stack img:last-child { bottom: 0; right: 0; }
.founders-copy h2 { margin: 0 0 18px; font-size: clamp(30px, 3.6vw, 40px); line-height: 1.2; font-weight: 500; }
.founders-copy p { margin: 0 0 14px; font-size: 16.5px; line-height: 1.85; font-weight: 300; color: var(--ts); }
.founders-copy p:last-of-type { margin-bottom: 22px; }
.founders-copy .eyebrow { margin-bottom: 16px; }

/* ===== Q&A ===== */
.qa-lede { margin: 0 0 36px; font-size: 16.5px; line-height: 1.7; font-weight: 300; color: var(--ts); max-width: 480px; }

.qa-item { border-top: 1px solid var(--hair); }
.qa-item--last { border-bottom: 1px solid var(--hair); }
.qa-item summary {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 22px 0;
    cursor: pointer;
    font-size: 20px;
    font-weight: 500;
    list-style: none;
}
.qa-item summary span { color: var(--acc); font-weight: 300; font-size: 22px; transition: transform .25s ease; }
.qa-item[open] summary span { transform: rotate(45deg); }
.qa-item p { margin: 0 0 24px; font-size: 16px; line-height: 1.8; font-weight: 300; color: var(--ts); }

/* ===== CTA ===== */
.cta { position: relative; z-index: 2; padding: 104px 48px; text-align: center; border-top: 1px solid var(--hair); overflow: hidden; }
.cta-inner { position: relative; }
.cta-logo { width: 56px; height: 56px; object-fit: contain; margin: 0 auto 22px; display: block; }
.cta h2 { margin: 0 0 14px; font-size: clamp(32px, 4vw, 44px); font-weight: 500; }
.cta p { margin: 0 auto 32px; max-width: 460px; font-size: 17px; line-height: 1.75; font-weight: 300; color: var(--ts); }

/* ===== Footer ===== */
.footer {
    position: relative;
    z-index: 2;
    border-top: 1px solid var(--hair);
    background: var(--bg2);
    color: var(--tp);
}
.footer-top {
    max-width: 1120px;
    margin: 0 auto;
    padding: 64px 48px 40px;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr 1.2fr;
    gap: 48px;
}
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer-brand img { height: 30px; width: auto; }
.footer-brand span { font-size: 16px; font-weight: 500; letter-spacing: .05em; }
.footer-blurb { margin: 0; font-size: 14.5px; line-height: 1.75; font-weight: 300; color: var(--ts); max-width: 280px; }

.footer-col-title {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 10.5px;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--acc);
    margin-bottom: 16px;
}
.footer-col-links { display: grid; gap: 11px; font-size: 15px; font-weight: 300; color: var(--ts); }
.footer-col-links a { color: var(--ts); }
.footer-col-links a:hover { color: var(--acc); }
.footer-col-note { font-style: italic; color: var(--tt); }

.footer-bottom {
    border-top: 1px solid var(--hair);
    padding: 20px 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}
.footer-copy { font-style: italic; font-size: 13.5px; color: var(--tt); }
.footer-egg {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 9.5px;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--tt);
    opacity: .35;
}
.footer-egg:hover { opacity: 1; color: var(--acc); }

/* ============================================================
   Page header (services / about / contact / landing)
   ============================================================ */

.page-header {
    position: relative;
    z-index: 2;
    padding: 96px 48px 76px;
    border-bottom: 1px solid var(--hair);
    overflow: hidden;
}
.page-header .eyebrow { margin-bottom: 24px; }
.page-header h1 { margin: 0 0 20px; font-size: clamp(38px, 4.5vw, 56px); line-height: 1.1; font-weight: 400; }
.page-header p { margin: 0; max-width: 580px; font-size: 18.5px; line-height: 1.8; font-weight: 300; color: var(--ts); }
.page-header-inner { position: relative; }

/* ============================================================
   Services page
   ============================================================ */

/* Feature lead-ins ("Custom design.", "No surprise bills.", etc.) */
.leads {
    border-top: 1px solid var(--hair);
    border-bottom: 1px solid var(--hair);
    padding: 32px 0;
    display: grid;
    gap: 24px;
    max-width: 760px;
}
.leads p { margin: 0; font-size: 16.5px; line-height: 1.85; font-weight: 300; color: var(--body2); }
/* Lead-ins render as scannable block headers: users scan headings and the
   first words of lines, and an inline italic phrase registers as neither. */
.leads em {
    display: block;
    font-size: 20px;
    font-style: normal;
    font-weight: 500;
    color: var(--acc);
    margin-bottom: 6px;
}

.build-lede { margin: 0 0 40px; max-width: 620px; font-size: 17px; line-height: 1.85; font-weight: 300; color: var(--ts); }

/* Tab pills */
.tab-switch {
    display: inline-flex;
    background: var(--panel);
    border: 1px solid var(--hair-strong);
    border-radius: 6px;
    padding: 4px;
    gap: 4px;
    flex-wrap: wrap;
    justify-content: center;
}
.tab-btn {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11.5px;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: 11px 22px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    background: transparent;
    color: var(--ts);
    transition: background-color .25s ease, color .25s ease;
}
.tab-btn:hover { color: var(--tp); }
.tab-btn.is-active { background: var(--acc); color: var(--acc-ink); }

.pricing-lede { margin: 0 auto 14px; max-width: 560px; font-size: 16.5px; line-height: 1.75; font-weight: 300; color: var(--ts); }
.pricing-note { margin: 0 auto 30px; max-width: 560px; font-size: 14.5px; font-style: italic; line-height: 1.75; color: var(--tt); }

/* Project price cards */
.card-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.price-card { padding: 30px; }
.price-card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 6px; }
.price-card-head h3 { margin: 0; font-size: 22px; font-weight: 500; color: var(--tp); }
.price-card-price { font-family: 'IBM Plex Mono', monospace; font-size: 15px; color: var(--acc); white-space: nowrap; }
.price-card-group {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 10px;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--tt);
    margin-bottom: 14px;
}
.price-card-desc { margin: 0 0 10px; font-size: 15px; line-height: 1.7; font-weight: 300; color: var(--ts); }
.price-card-desc:last-child { margin-bottom: 0; }
.price-card-note { margin: 0; font-size: 13px; font-style: italic; line-height: 1.6; color: var(--tt); }

.pricing-cta { text-align: center; margin-top: 36px; }

/* Care plans */
.billing-toggle {
    display: inline-flex;
    background: var(--panel);
    border: 1px solid var(--hair-strong);
    border-radius: 100px;
    padding: 4px;
    gap: 4px;
    flex-wrap: wrap;
    justify-content: center;
}
.billing-btn {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11.5px;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: 10px 20px;
    border: none;
    border-radius: 100px;
    cursor: pointer;
    background: transparent;
    color: var(--ts);
    transition: background-color .25s ease, color .25s ease;
}
.billing-btn:hover { color: var(--tp); }
.billing-btn.is-active { background: var(--acc); color: var(--acc-ink); }

.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.plan {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--panel);
    border: 1px solid var(--hair);
    border-radius: 10px;
    padding: 34px 30px;
    transition: transform .2s ease, box-shadow .2s ease, background-color .45s ease, border-color .45s ease;
}
.plan:hover { transform: translateY(-4px); box-shadow: var(--panel-shadow); }
.plan--featured { border: 1.5px solid var(--acc-border); }

.plan-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--acc);
    color: var(--acc-ink);
    font-family: 'IBM Plex Mono', monospace;
    font-size: 10px;
    letter-spacing: .09em;
    text-transform: uppercase;
    padding: 5px 14px;
    border-radius: 100px;
    white-space: nowrap;
}

.plan-price-row { display: flex; align-items: baseline; gap: 8px; margin-bottom: 6px; }
.plan-price {
    font-family: 'Newsreader', Georgia, serif;
    font-size: 46px;
    font-weight: 400;
    line-height: 1;
    color: var(--tp);
    display: inline-block;
    transition: opacity .28s ease, transform .28s ease;
}
.plan-per { font-family: 'IBM Plex Mono', monospace; font-size: 12px; color: var(--tt); transition: opacity .28s ease; }
.plans.is-swapping .plan-price { opacity: 0; transform: translateY(10px); }
.plans.is-swapping .plan-per { opacity: 0; }

.plan-name { font-style: normal; font-weight: 500; font-size: 16px; color: var(--acc); margin-bottom: 6px; }
.plan-desc { margin: 0 0 22px; font-size: 14.5px; line-height: 1.65; font-weight: 300; color: var(--ts); }

.plan-cta {
    display: flex;
    justify-content: center;
    background: transparent;
    color: var(--acc);
    border: 1px solid var(--acc-border);
    padding: 14px 20px;
    border-radius: 100px;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11.5px;
    font-weight: 500;
    letter-spacing: .09em;
    text-transform: uppercase;
    margin-bottom: 26px;
    transition: transform .15s ease, background-color .45s ease, color .45s ease;
}
.plan-cta:hover { transform: translateY(-1px); color: var(--acc); }
.plan-cta--solid { background: var(--acc); color: var(--acc-ink); border: none; }
.plan-cta--solid:hover { color: var(--acc-ink); }

.plan-features { display: grid; gap: 12px; }
.plan-feature { display: flex; gap: 11px; align-items: baseline; font-size: 14.5px; font-weight: 300; line-height: 1.5; color: var(--body2); }
.plan-feature span { color: var(--acc); font-size: 13px; flex-shrink: 0; }

.plans-note { display: flex; justify-content: center; margin-top: 26px; }
.plans-note p { margin: 0; max-width: 640px; text-align: center; font-size: 13.5px; font-style: italic; line-height: 1.7; color: var(--tt); }

/* Custom tier callout */
.callout {
    margin-top: 44px;
    border: 1px solid var(--hair-strong);
    border-radius: 10px;
    padding: 34px 38px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 32px;
    flex-wrap: wrap;
    background: var(--panel);
}
.callout h3 { margin: 0 0 8px; font-size: 24px; font-weight: 500; }
.callout p { margin: 0; font-size: 15px; line-height: 1.75; font-weight: 300; color: var(--ts); }
.callout-copy { max-width: 600px; }

/* The math */
.math-lede { margin: 0 0 40px; max-width: 560px; font-size: 16.5px; line-height: 1.75; font-weight: 300; color: var(--ts); }

.math-head, .math-row { display: grid; grid-template-columns: 1.4fr 1.2fr .9fr .7fr; gap: 12px; }
.math-head {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--tt);
    padding-bottom: 12px;
}
.math-row { padding: 13px 0; border-top: 1px solid var(--hair); font-size: 15px; font-weight: 300; color: var(--body2); }
.math-tool { color: var(--tt); }
.math-cost { text-align: right; font-family: 'IBM Plex Mono', monospace; font-size: 12.5px; color: var(--ts); }
.math-inc { text-align: right; font-style: italic; color: var(--acc); }

.math-total {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 24px;
    padding: 22px 0;
    border-top: 2px solid var(--acc);
    flex-wrap: wrap;
}
.math-total-label {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 10.5px;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--tt);
    margin-bottom: 4px;
}
.math-total-label--acc { color: var(--acc); }
.math-total-sep { font-size: 24px; color: var(--ts); }
.math-total-ours { font-size: 24px; color: var(--acc); text-align: right; }
.math-note { margin: 18px 0 0; font-size: 14px; font-style: italic; line-height: 1.7; color: var(--tt); }

/* Website partner */
.partner-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; }
.partner-intro p { margin: 0 0 16px; font-size: 16px; line-height: 1.85; font-weight: 300; color: var(--ts); }
.partner-intro p:last-child { margin-bottom: 0; }
.partner-list > div { padding: 18px 0; border-top: 1px solid var(--hair); }
.partner-list > div:last-child { border-bottom: 1px solid var(--hair); }
.partner-list p { margin: 0; font-size: 15.5px; line-height: 1.75; font-weight: 300; color: var(--body2); }
.partner-list em {
    display: block;
    font-size: 17px;
    font-style: normal;
    font-weight: 500;
    color: var(--tp);
    margin-bottom: 4px;
}

/* Rate sheet (Norman landing page) */
.rate { border-top: 1px solid var(--hair); padding: 24px 0; }
.rate--last { border-bottom: 1px solid var(--hair); }
.rate-head { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; margin-bottom: 8px; }
.rate-head h3 { margin: 0; font-size: 23px; font-weight: 500; }
.rate-price { font-family: 'IBM Plex Mono', monospace; font-size: 16px; color: var(--acc); white-space: nowrap; }
.rate-desc { margin: 0 0 8px; max-width: 640px; font-size: 15.5px; line-height: 1.75; font-weight: 300; color: var(--ts); }
.rate-desc:last-child { margin-bottom: 0; }
.rate-cta { margin-top: 36px; }

/* ============================================================
   About page
   ============================================================ */

.prose p { margin: 0 0 16px; font-size: 16.5px; line-height: 1.85; font-weight: 300; color: var(--ts); }
.prose p:last-child { margin-bottom: 0; }

.about-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 64px; align-items: start; }

.facts-panel { background: var(--panel); border: 1px solid var(--hair-strong); border-radius: 8px; padding: 30px 32px; }
.facts-title {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--acc);
    margin-bottom: 8px;
}
.fact { padding: 16px 0; border-top: 1px solid var(--hair); }
.fact:first-of-type { border-top: none; }
.fact-label {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 10.5px;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--tt);
    margin-bottom: 5px;
}
.fact-value { font-size: 16px; color: var(--tp); }

.people { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.person { padding: 36px 34px; }
.person img {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--bg2);
    box-shadow: 0 1px 4px rgba(0, 0, 0, .3);
    margin-bottom: 20px;
}
.person h3 { margin: 0 0 4px; font-size: 24px; font-weight: 500; }
.person-role {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--acc);
    margin-bottom: 18px;
}
.person p { margin: 0 0 18px; font-size: 15.5px; line-height: 1.8; font-weight: 300; color: var(--ts); }
.person-phone {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 12.5px;
    letter-spacing: .05em;
    color: var(--tp);
    border-bottom: 1px solid var(--hair-strong);
    padding-bottom: 2px;
}
.person-phone:hover { color: var(--acc); }

/* ============================================================
   Contact page
   ============================================================ */

.contact-hero-grid { position: relative; display: grid; grid-template-columns: 1fr 240px; gap: 48px; align-items: center; }
.contact-art { justify-self: end; }
.contact-art svg { width: 220px; height: auto; display: block; overflow: visible; }
.contact-art .paper { fill: var(--paper); }
.contact-art .line {
    fill: var(--paper-ink);
    transform-box: fill-box;
    transform-origin: left center;
    transform: scaleX(0);
    animation: writeLine .75s ease-out forwards;
}
.contact-art .line-1 { animation-delay: .3s; }
.contact-art .line-2 { animation-delay: 1.1s; }
.contact-art .line-3 { animation-delay: 1.9s; }
.contact-art .line-4 { animation-delay: 2.7s; }
.contact-art .line-5 { animation-delay: 3.5s; }
.contact-art .line-6 { animation-delay: 4.3s; }
.contact-art .line-7 { animation-delay: 5.1s; }
.contact-art .line-8 { animation-delay: 5.9s; }
.contact-art .pen { transform: translate(78px, 48px); animation: penMove 6.4s ease-in-out .3s forwards; }

@keyframes writeLine { to { transform: scaleX(1); } }
@keyframes penMove {
    0%    { transform: translate(78px, 48px); }
    11%   { transform: translate(203px, 50px); }
    12.5% { transform: translate(78px, 68px); }
    23.5% { transform: translate(178px, 70px); }
    25%   { transform: translate(78px, 88px); }
    36%   { transform: translate(196px, 90px); }
    37.5% { transform: translate(78px, 108px); }
    48.5% { transform: translate(163px, 110px); }
    50%   { transform: translate(78px, 128px); }
    61%   { transform: translate(188px, 130px); }
    62.5% { transform: translate(78px, 148px); }
    73.5% { transform: translate(173px, 150px); }
    75%   { transform: translate(78px, 168px); }
    86%   { transform: translate(198px, 170px); }
    87.5% { transform: translate(78px, 188px); }
    100%  { transform: translate(153px, 190px); }
}

.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 64px; align-items: start; }

.contact-rows { margin-top: 8px; }
.c-row { padding: 16px 0; border-top: 1px solid var(--hair); }
.c-row:last-child { border-bottom: 1px solid var(--hair); }
.c-row-label {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 10.5px;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--tt);
    margin-bottom: 5px;
}
.c-row-value { font-size: 16.5px; color: var(--tp); }
.c-row-value a { color: var(--tp); border-bottom: 1px solid var(--hair-strong); padding-bottom: 1px; }
.c-row-value a:hover { color: var(--acc); }

.side-panel { margin-top: 40px; background: var(--panel); border: 1px solid var(--hair-strong); border-radius: 8px; padding: 26px 28px; }
.side-panel h3 { margin: 0 0 8px; font-size: 19px; font-weight: 500; }
.side-panel p { margin: 0; font-size: 14.5px; line-height: 1.75; font-weight: 300; color: var(--ts); }

.form-panel {
    background: var(--panel);
    border: 1px solid var(--hair-strong);
    border-radius: 8px;
    box-shadow: var(--panel-shadow);
    padding: 40px 38px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { margin-bottom: 22px; }
.form-group label {
    display: block;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 10.5px;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--tt);
    margin-bottom: 8px;
}
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    background: var(--bg);
    border: 1px solid var(--hair);
    border-radius: 6px;
    padding: 13px 14px;
    font-family: 'Spectral', Georgia, serif;
    font-size: 15.5px;
    font-weight: 300;
    color: var(--tp);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--tt); font-style: italic; }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { outline: none; border-color: var(--acc-border); }
.form-group textarea { min-height: 140px; resize: vertical; line-height: 1.7; }
.form-group select { appearance: none; -webkit-appearance: none; cursor: pointer; }
.select-wrap { position: relative; }
.select-wrap::after {
    content: "";
    position: absolute;
    right: 16px;
    top: 50%;
    width: 7px;
    height: 7px;
    border-right: 1.5px solid var(--tt);
    border-bottom: 1.5px solid var(--tt);
    transform: translateY(-70%) rotate(45deg);
    pointer-events: none;
}
.btn-primary--full { width: 100%; justify-content: center; border: none; cursor: pointer; margin-top: 6px; }
.form-note { margin: 18px 0 0; font-size: 13.5px; font-style: italic; line-height: 1.7; color: var(--tt); }

/* Conditional form fields (project tier / monthly plan) */
.form-group-conditional {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    margin-bottom: 0;
    transition: max-height .45s ease, opacity .3s ease, margin-bottom .45s ease;
}
.form-group-conditional.is-visible { max-height: 220px; opacity: 1; margin-bottom: 22px; }

/* ============================================================
   404 page
   ============================================================ */

.page--404 { display: flex; flex-direction: column; min-height: 100vh; }
.notfound {
    position: relative;
    z-index: 2;
    flex: 1;
    min-height: 72vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 24px;
    overflow: hidden;
}
.notfound-inner { position: relative; }
.notfound-code {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 15px;
    letter-spacing: .3em;
    color: var(--acc);
    margin-bottom: 18px;
}
.notfound h1 { margin: 0 0 14px; font-size: clamp(34px, 4.5vw, 48px); font-weight: 400; }
.notfound p { margin: 0 auto 34px; max-width: 420px; font-size: 17px; line-height: 1.75; font-weight: 300; color: var(--ts); }
.notfound-caption { margin-top: 40px; font-style: italic; font-size: 13.5px; color: var(--tt); }

/* ============================================================
   Local landing page (web-design-norman-ok)
   ============================================================ */

.header-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 56px; align-items: center; }
.header-photo { width: 100%; height: auto; border: 1px solid var(--hair); box-shadow: var(--img-shadow); display: block; }
.header-photo-cap { margin-top: 10px; font-style: italic; font-size: 12.5px; color: var(--tt); }
.header-actions { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; margin-top: 34px; }

.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); }
.stat { padding: 24px 26px 24px 0; }
.stat + .stat { border-left: 1px solid var(--hair); padding-left: 26px; }
.stat span {
    display: block;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 10.5px;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--tt);
    margin-bottom: 6px;
}
.stat strong { font-size: 17px; font-weight: 400; color: var(--tp); }

.link-rows a { display: block; padding: 20px 0; border-top: 1px solid var(--hair); color: inherit; }
.link-rows a:last-child { border-bottom: 1px solid var(--hair); }
.link-rows strong { display: block; font-size: 19px; font-weight: 400; color: var(--tp); margin-bottom: 4px; }
.link-rows a:hover strong { color: var(--acc); }
.link-rows span { font-size: 14.5px; line-height: 1.7; font-weight: 300; color: var(--ts); }

/* Static full-array service grid (landing page). Reuses the .dock-card look
   from the home dock, but shows every card at once instead of rotating.
   Flexbox (not grid) so an incomplete last row of 4 or 5 cards centers,
   rather than leaving an orphan card stranded on the left. */
.svc-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 22px; }
.svc-grid > .dock-card { flex: 0 1 calc((100% - 44px) / 3); }
@media (max-width: 1020px) { .svc-grid > .dock-card { flex-basis: calc((100% - 22px) / 2); } }
@media (max-width: 680px)  { .svc-grid > .dock-card { flex-basis: 100%; } }

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 1020px) {
    .nav, .hero, .page-header, .section, .cta { padding-left: 28px; padding-right: 28px; }
    .footer-top, .footer-bottom { padding-left: 28px; padding-right: 28px; }

    .hero-grid { grid-template-columns: 1fr; gap: 44px; }
    .dock { grid-template-columns: 1fr 1fr; }
    .plans { grid-template-columns: 1fr; max-width: 520px; margin-left: auto; margin-right: auto; }
    .founders-grid, .about-grid, .contact-grid, .partner-grid, .header-grid { grid-template-columns: 1fr; gap: 36px; }
    .card-grid, .people { grid-template-columns: 1fr; }
    .work-slide { grid-template-columns: 1fr; gap: 22px; }

    .counters { grid-template-columns: 1fr; }
    .counter { border-left: none; border-top: 1px solid var(--hair); padding: 18px 0; }
    .counter:first-child { border-top: none; }

    .contact-hero-grid { grid-template-columns: 1fr; }
    .contact-art { display: none; }

    .footer-top { grid-template-columns: 1fr 1fr; }

    .stat-row { grid-template-columns: 1fr 1fr; }
    .stat { padding: 20px 20px 20px 0; }
    .stat + .stat { padding-left: 0; border-left: none; }
    .stat:nth-child(even) { border-left: 1px solid var(--hair); padding-left: 20px; }
    .stat:nth-child(n+3) { border-top: 1px solid var(--hair); }

    .callout { padding: 28px 26px; }
}

@media (max-width: 990px) {
    .nav { padding-left: 20px; padding-right: 20px; }
    .nav-right { gap: 12px; }
    .menu-toggle { display: flex; }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        z-index: 95;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        padding: 8px 24px 22px;
        background: var(--bg);
        border-bottom: 1px solid var(--hair);
    }
    .nav-links.open { display: flex; }
    .nav-links > a, .nav-links > .nav-auth-item { padding: 14px 0; }
    .nav-links a.active { border-bottom: none; color: var(--acc); }
    .nav-links a.nav-cta { margin-top: 12px; padding: 10px 18px; }
    .nav-auth-menu { left: 0; right: auto; }
}

@media (max-width: 680px) {
    .nav, .hero, .page-header, .section, .cta { padding-left: 20px; padding-right: 20px; }
    .section, .page-header { padding-top: 56px; padding-bottom: 56px; }
    .hero { padding-top: 64px; padding-bottom: 56px; }
    .cta { padding-top: 72px; padding-bottom: 72px; }
    .footer-top { padding: 48px 24px 32px; grid-template-columns: 1fr; gap: 36px; }
    .footer-bottom { padding-left: 24px; padding-right: 24px; }

    .hero-lede { font-size: 17px; }
    .sketch-panel { padding: 18px 14px 12px; }
    .dock { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; gap: 0; }
    .form-panel { padding: 28px 20px; }
    .person { padding: 28px 24px; }
    .price-card { padding: 24px 22px; }
    .plan { padding: 30px 24px; }

    .math-head, .math-row { grid-template-columns: 1.4fr .9fr .7fr; }
    .math-tool { display: none; }

    /* Tab labels are too long to sit side by side; stack them cleanly. */
    .tab-switch { width: 100%; }
    .tab-btn { flex: 1 1 100%; text-align: center; }

    .footer-bottom { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .glow, .blob, .sk .edit, .contact-art .pen { animation: none; }
    .glow, .blob { opacity: calc(.65 * var(--glow-o)); }
    .contact-art .pen { transform: translate(153px, 190px); }
    .contact-art .line { animation: none; transform: scaleX(1); }
    .sk .draw { animation: none; stroke-dashoffset: 0; }
    .sk .fill-in { animation: none; opacity: 1; }
    .sk .grid { opacity: .4; }
}
