/* ========================================================================== 
   josealv.com — Tierra / Marea
   A personal product-engineering system shaped by volcanic weight, Pacific
   light, architectural spacing, and a quiet woven rhythm. Cultural references
   live in material, color, and structure rather than borrowed motifs.
   ========================================================================== */

:root {
    --bg: #f3ebdd;
    --surface: #fffdf8;
    --surface-2: #e8e1d5;
    --ink: #17201f;
    --ink-2: #33413e;
    --muted: #63706b;
    --muted-2: #87918d;
    --line: #d3c9b9;
    --line-2: #aea594;

    --accent: #1d5967;
    --accent-deep: #0e2f38;
    --accent-ink: #174d59;
    --accent-tint: #dce7e1;
    --accent-tint-2: #c3d4cf;

    --basement: #0e2f38;
    --basement-2: #163f49;
    --bone: #f3ebdd;
    --bone-muted: rgba(243, 235, 221, 0.7);
    --bone-line: rgba(243, 235, 221, 0.18);

    --tm-pumice: #f3ebdd;
    --tm-paper: #fffdf8;
    --tm-obsidian: #17201f;
    --tm-deep-water: #0e2f38;
    --tm-pacific: #1d5967;
    --tm-highland: #355c4a;
    --tm-clay: #a44736;
    --tm-maize: #d6a444;
    --tm-mist: #b9c7c5;
    --tm-rule: #c9bead;

    --font-display: "Instrument Sans", system-ui, -apple-system, sans-serif;
    --font-body: "Instrument Sans", system-ui, -apple-system, sans-serif;
    --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

    --r-pill: 999px;
    --r-card: 10px;
    --r-input: 8px;
    --maxw: 1280px;
    --gutter: clamp(20px, 5vw, 64px);
    --bleed-pad: max(var(--gutter), calc((100vw - var(--maxw)) / 2));
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --shadow-sm: 0 1px 0 rgba(23, 32, 31, 0.05), 0 18px 42px -34px rgba(14, 47, 56, 0.5);
    --shadow: 0 2px 0 rgba(23, 32, 31, 0.05), 0 34px 70px -45px rgba(14, 47, 56, 0.55);
}

html { scroll-padding-top: 88px; }

body {
    background-color: var(--tm-pumice);
    background-image:
        linear-gradient(rgba(255, 253, 248, 0.38), rgba(255, 253, 248, 0.38)),
        repeating-linear-gradient(90deg, transparent 0 119px, rgba(23, 32, 31, 0.018) 120px);
    color: var(--tm-obsidian);
    font-family: var(--font-body);
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 9998;
    pointer-events: none;
    opacity: 0.022;
    background:
        repeating-radial-gradient(circle at 17% 31%, rgba(23, 32, 31, 0.45) 0 0.4px, transparent 0.6px 4px),
        repeating-radial-gradient(circle at 73% 62%, rgba(29, 89, 103, 0.3) 0 0.35px, transparent 0.55px 5px);
    mix-blend-mode: multiply;
}

h1, h2, h3, h4 {
    font-family: var(--font-display);
    color: var(--tm-obsidian);
    letter-spacing: -0.035em;
}

::selection { background: var(--tm-clay); color: var(--tm-paper); }
:focus-visible { outline-color: var(--tm-clay); outline-width: 2px; }

.skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 10001;
    padding: 10px 14px;
    color: var(--tm-paper);
    background: var(--tm-obsidian);
    border-radius: 6px;
    transform: translateY(-160%);
    transition: transform 0.2s ease;
}

.skip-link:focus { transform: translateY(0); }

/* The former literal bird is intentionally retired. The new geographic line
   does the identity work without turning culture into decoration. */
.sky-bird,
.launcher { display: none !important; }

/* Content is never gated on IntersectionObserver. The original reveal class
   remains compatible with older pages, but every section paints immediately. */
.reveal-on-scroll { opacity: 1 !important; transform: none !important; }

/* ------------------------------------------------------------------ header */
.site-header {
    padding-top: 18px;
    padding-bottom: 18px;
    background: rgba(243, 235, 221, 0.9);
    border-bottom: 1px solid rgba(201, 190, 173, 0.58);
    box-shadow: none;
}

.site-header.is-scrolled {
    background: rgba(243, 235, 221, 0.97);
    border-bottom-color: var(--tm-rule);
}

/* Scroll progress moves a restrained Tierra-to-Marea wash across the header.
   The fill is decorative and intentionally light enough to preserve contrast. */
.site-header::before {
    background:
        radial-gradient(118px 50px at 11% 124%, transparent 55%, rgba(53, 92, 74, 0.16) 56% 58%, transparent 59% 68%, rgba(53, 92, 74, 0.1) 69% 71%, transparent 72%),
        radial-gradient(180px 64px at 69% -38%, transparent 58%, rgba(29, 89, 103, 0.14) 59% 61%, transparent 62% 70%, rgba(29, 89, 103, 0.08) 71% 73%, transparent 74%),
        linear-gradient(90deg, #dce7e1 0%, var(--tm-mist) 58%, #ead9b8 100%);
}

.site-header::after {
    background: linear-gradient(90deg, var(--tm-highland), var(--tm-pacific) 62%, var(--tm-clay));
}

.brand {
    font-family: var(--font-display);
    font-size: 1.02rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    color: var(--tm-obsidian);
}

.brand-mark { word-spacing: 0.12em; }
.brand-mark span { color: var(--tm-pacific); }

.site-nav { gap: clamp(20px, 2.4vw, 34px); }
.site-nav a {
    font-family: var(--font-mono);
    font-size: 0.76rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    color: var(--tm-ink-2, var(--ink-2));
}
.site-nav a::after {
    height: 1px;
    bottom: -9px;
    border-radius: 0;
    background: var(--tm-clay);
}

.header-cta,
.btn {
    border-radius: 7px;
    box-shadow: none;
}

.header-cta {
    padding: 11px 18px;
    font-family: var(--font-mono);
    font-size: 0.74rem;
    letter-spacing: 0.01em;
    color: var(--tm-paper);
    background: var(--tm-deep-water);
    border-color: var(--tm-deep-water);
}

.header-cta::after { content: "\2192"; margin-left: 11px; }
.header-cta:hover { background: var(--tm-pacific); border-color: var(--tm-pacific); }

.nav-toggle {
    font-family: var(--font-mono);
    font-size: 0.76rem;
    color: var(--tm-obsidian);
}

/* ---------------------------------------------------------------- buttons */
.btn {
    min-height: 48px;
    padding: 13px 22px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.005em;
}

.btn-primary {
    color: var(--tm-paper);
    background: var(--tm-deep-water);
    border-color: var(--tm-deep-water);
}
.btn-primary::after { content: "\2192"; }
.btn-primary:hover {
    background: var(--tm-pacific);
    border-color: var(--tm-pacific);
    transform: translateY(-2px);
}

.btn-secondary {
    color: var(--tm-obsidian);
    background: transparent;
    border-color: var(--tm-rule);
}
.btn-secondary:hover { color: var(--tm-deep-water); border-color: var(--tm-deep-water); }

.end-cta .btn-secondary {
    color: var(--tm-paper);
    border-color: rgba(243, 235, 221, 0.42);
}
.end-cta .btn-secondary:hover { color: var(--tm-paper); border-color: var(--tm-paper); }

.tm-text-link,
.tm-inline-cta {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    width: fit-content;
    padding-bottom: 5px;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--tm-obsidian);
    border-bottom: 1px solid var(--tm-pacific);
    transition: color 0.2s ease, gap 0.2s var(--ease-out), border-color 0.2s ease;
}
.tm-text-link:hover,
.tm-inline-cta:hover { gap: 17px; color: var(--tm-clay); border-color: var(--tm-clay); }

.tm-kicker {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    line-height: 1.4;
    font-weight: 500;
    letter-spacing: 0.055em;
    text-transform: uppercase;
    color: var(--tm-pacific);
}

/* ================================================================== HOME */
.tierra-marea .page-shell { max-width: var(--maxw); }

/* ------------------------------------------------------------------- hero */
.tm-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.04fr) minmax(360px, 0.96fr);
    gap: clamp(44px, 6vw, 88px);
    align-items: center;
    min-height: min(760px, calc(100svh - 82px));
    padding: clamp(62px, 8vw, 112px) 0 clamp(50px, 6vw, 82px);
}

.tm-hero-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: clamp(20px, 2.2vw, 30px);
}

.tm-hero h1 {
    max-width: 13.5ch;
    font-size: clamp(3.4rem, 5.7vw, 5.45rem);
    line-height: 0.96;
    font-weight: 650;
    text-wrap: balance;
}
.tm-hero h1 span { color: var(--tm-pacific); }

.tm-lead {
    max-width: 56ch;
    font-size: clamp(1.08rem, 1.5vw, 1.28rem);
    line-height: 1.55;
    color: var(--tm-ink-2, var(--ink-2));
}

.tm-hero .hero-actions { gap: 18px; }

.tm-proof {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 0;
    width: 100%;
    max-width: 680px;
    padding-top: 18px;
    list-style: none;
    border-top: 1px solid var(--tm-rule);
}
.tm-proof li {
    padding: 0 24px;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--tm-ink-2, var(--ink-2));
}
.tm-proof li:first-child { padding-left: 0; }
.tm-proof li + li { border-left: 1px solid var(--tm-rule); }
.tm-proof li:first-child::before {
    content: "";
    display: inline-block;
    width: 7px;
    height: 7px;
    margin-right: 11px;
    border-radius: 50%;
    background: var(--tm-clay);
}

.tm-hero-art {
    position: relative;
    align-self: stretch;
    min-height: 470px;
    overflow: hidden;
    background: var(--tm-deep-water);
    clip-path: polygon(0 0, calc(100% - 34px) 0, 100% 34px, 100% 100%, 0 100%);
    box-shadow: var(--shadow);
}
.tm-hero-art img {
    width: 100%;
    height: 100%;
    min-height: 470px;
    object-fit: cover;
    object-position: 49% center;
}
.tm-hero-art figcaption {
    position: absolute;
    inset: auto 18px 18px;
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding-top: 10px;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(243, 235, 221, 0.76);
    border-top: 1px solid rgba(243, 235, 221, 0.36);
}

.tm-horizon {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    height: clamp(62px, 7vw, 96px);
    overflow: hidden;
}
.tm-horizon svg { width: 100%; height: 100%; }
.tm-horizon path {
    fill: none;
    stroke: var(--tm-highland);
    stroke-width: 1.5;
    vector-effect: non-scaling-stroke;
    stroke-dasharray: 1800;
    stroke-dashoffset: 1800;
    animation: tm-line-draw 1.05s var(--ease-out) 0.2s forwards;
}
.tm-horizon .tm-horizon-accent { stroke: var(--tm-maize); }
@keyframes tm-line-draw { to { stroke-dashoffset: 0; } }

/* --------------------------------------------------------------- sections */
.tm-section { padding: clamp(76px, 9vw, 132px) 0; }
.tm-section + .tm-section { border-top: 1px solid var(--tm-rule); }

.tm-section-head {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
    gap: clamp(34px, 6vw, 92px);
    align-items: end;
    margin-bottom: clamp(38px, 5vw, 72px);
}
.tm-section-head h2 {
    max-width: 16ch;
    margin-top: 12px;
    font-size: clamp(2.3rem, 4.4vw, 4.2rem);
    line-height: 0.98;
    font-weight: 620;
}
.tm-section-head > p {
    max-width: 40ch;
    color: var(--tm-ink-2, var(--ink-2));
    font-size: 1rem;
    line-height: 1.6;
}

/* ------------------------------------------------------------------- work */
.tm-work { padding-top: clamp(58px, 7vw, 96px); }
.case-study-list { display: grid; gap: clamp(38px, 5vw, 70px); }

.case-study {
    position: relative;
    display: grid;
    align-content: start;
    min-width: 0;
    border-top: 1px solid var(--tm-rule);
}
.case-study::before {
    content: "";
    position: absolute;
    top: -1px;
    left: 0;
    width: 72px;
    height: 2px;
    background: var(--tm-clay);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s var(--ease-out);
}
.case-study:hover::before { transform: scaleX(1); }

.case-study--lead {
    grid-template-columns: minmax(0, 1.18fr) minmax(320px, 0.82fr);
    gap: clamp(32px, 5vw, 72px);
    padding-top: 22px;
}

.case-study-media {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: var(--tm-deep-water);
    border-radius: 8px 8px 8px 0;
}
.case-study-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.55s var(--ease-out), filter 0.3s ease;
}
.case-study-media:hover img { transform: scale(1.015); }

.case-study-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding-top: 22px;
}
.case-study--lead .case-study-copy { padding-top: 0; }
.case-study-copy h3 {
    font-size: clamp(2rem, 3.2vw, 3.2rem);
    line-height: 1;
    font-weight: 620;
}
.case-study-copy > p { color: var(--tm-ink-2, var(--ink-2)); line-height: 1.6; }
.case-study-lede { font-size: 1.08rem; }
.case-study-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    color: var(--tm-pacific);
}
.case-study-meta span + span::before { content: "/"; margin-right: 18px; color: var(--tm-rule); }

.case-study-facts {
    display: grid;
    gap: 0;
    width: 100%;
    margin: 4px 0;
    border-top: 1px solid var(--tm-rule);
}
.case-study-facts div {
    display: grid;
    grid-template-columns: 92px 1fr;
    gap: 18px;
    padding: 14px 0;
    border-bottom: 1px solid var(--tm-rule);
}
.case-study-facts dt {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    color: var(--tm-pacific);
}
.case-study-facts dd { color: var(--tm-ink-2, var(--ink-2)); font-size: 0.92rem; line-height: 1.5; }

.case-study-pair {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(24px, 3vw, 48px);
}

.tm-lab {
    display: grid;
    grid-template-columns: minmax(160px, 0.28fr) minmax(0, 0.72fr);
    gap: 32px;
    align-items: start;
    margin-top: clamp(64px, 8vw, 108px);
    padding-top: 22px;
    border-top: 1px solid var(--tm-rule);
}
.tm-lab-links { display: grid; }
.tm-lab-links a {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(120px, 0.45fr) auto;
    gap: 24px;
    align-items: center;
    min-height: 62px;
    padding: 14px 0;
    border-bottom: 1px solid var(--tm-rule);
    transition: color 0.2s ease, padding 0.25s var(--ease-out);
}
.tm-lab-links a:hover { padding-left: 8px; color: var(--tm-clay); }
.tm-lab-links span { font-size: 1.05rem; font-weight: 600; }
.tm-lab-links small { color: var(--ink-2); }
.tm-lab-links b { font-family: var(--font-mono); font-weight: 400; }

/* ----------------------------------------------------------- capabilities */
.tm-capabilities {
    position: relative;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    padding-inline: var(--bleed-pad);
    color: var(--tm-paper);
    background: var(--tm-deep-water);
    border-top: 0 !important;
    overflow: hidden;
}
.tm-capabilities::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.2;
    background:
        repeating-linear-gradient(0deg, transparent 0 42px, rgba(243, 235, 221, 0.12) 43px, transparent 44px),
        linear-gradient(115deg, rgba(53, 92, 74, 0.72), transparent 40%);
}
.tm-capabilities > * { position: relative; z-index: 1; }
.tm-capabilities .tm-kicker { color: var(--tm-maize); }
.tm-capabilities h2,
.tm-capabilities h3 { color: var(--tm-paper); }
.tm-capabilities .tm-section-head > p { color: var(--bone-muted); }

.tm-capability-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-top: 1px solid var(--bone-line);
    border-bottom: 1px solid var(--bone-line);
}
.tm-capability-grid article {
    display: grid;
    align-content: start;
    gap: 16px;
    min-height: 310px;
    padding: clamp(28px, 3.5vw, 48px);
}
.tm-capability-grid article + article { border-left: 1px solid var(--bone-line); }
.tm-capability-grid span { font-family: var(--font-mono); font-size: 0.7rem; color: var(--tm-mist); }
.tm-capability-grid h3 { font-size: clamp(1.45rem, 2.2vw, 2.1rem); }
.tm-capability-grid p { max-width: 32ch; color: var(--bone-muted); line-height: 1.6; }
.tm-capabilities .tm-inline-cta { margin-top: 34px; color: var(--tm-paper); border-color: var(--tm-maize); }

/* ------------------------------------------------------------------ about */
.tm-about {
    display: grid;
    grid-template-columns: minmax(220px, 0.35fr) minmax(0, 0.65fr);
    gap: clamp(42px, 8vw, 120px);
    align-items: start;
}
.tm-about-mark {
    display: grid;
    place-items: center;
    aspect-ratio: 1;
    max-width: 320px;
    color: var(--tm-paper);
    background:
        linear-gradient(135deg, transparent 49.75%, rgba(243, 235, 221, 0.16) 50%, transparent 50.25%),
        var(--tm-highland);
    clip-path: polygon(0 0, 84% 0, 100% 16%, 100% 100%, 0 100%);
}
.tm-about-mark span { font-size: clamp(4rem, 8vw, 7.5rem); font-weight: 650; letter-spacing: -0.08em; }
.tm-about-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.tm-about-copy h2 { font-size: clamp(2.4rem, 4.4vw, 4.2rem); line-height: 0.98; }
.tm-about-lede { max-width: 42ch; font-size: clamp(1.3rem, 2vw, 1.75rem); line-height: 1.35; }
.tm-about-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 4vw, 54px); }
.tm-about-columns p { color: var(--tm-ink-2, var(--ink-2)); line-height: 1.65; }

/* ---------------------------------------------------------------- process */
.tm-process-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    list-style: none;
    border-top: 1px solid var(--tm-rule);
}
.tm-process-list li {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 22px;
    min-height: 240px;
    padding: 30px clamp(24px, 3vw, 42px) 30px 0;
}
.tm-process-list li + li { padding-left: clamp(24px, 3vw, 42px); border-left: 1px solid var(--tm-rule); }
.tm-process-list > li > span { font-family: var(--font-mono); font-size: 0.7rem; color: var(--tm-clay); }
.tm-process-list h3 { margin-bottom: 14px; font-size: 1.35rem; }
.tm-process-list p { color: var(--tm-ink-2, var(--ink-2)); line-height: 1.6; }

/* ------------------------------------------------------------- final block */
.tm-end-cta {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-top: 0;
    padding: clamp(76px, 9vw, 126px) var(--bleed-pad);
    background: var(--tm-obsidian);
    border: 0;
}
.tm-end-cta .end-cta-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 22px clamp(36px, 7vw, 100px);
    align-items: end;
    padding: 0;
    background: transparent;
}
.tm-end-cta .tm-kicker { grid-column: 1 / -1; color: var(--tm-maize); }
.tm-end-cta h2 { max-width: 18ch; color: var(--tm-paper); font-size: clamp(2.5rem, 4.7vw, 4.6rem); line-height: 0.98; }
.tm-end-cta p:not(.tm-kicker) { max-width: 52ch; color: var(--bone-muted); }
.tm-end-cta .cta-actions { grid-column: 2; grid-row: 2 / span 2; align-self: center; }

.tm-footer {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-top: 0;
    padding: 46px var(--bleed-pad) 42px;
    background: var(--tm-deep-water);
    border-top: 1px solid var(--bone-line);
}
.tm-footer .footer-title { font-family: var(--font-display); letter-spacing: -0.02em; }

/* ============================================================= INNER PAGES */
/* The content architecture stays intact; these overrides carry the new
   material language across the indexed service and security pages. */
body:not(.tierra-marea) .content > .hero:not(.hero-split) {
    position: relative;
    padding-top: clamp(70px, 9vw, 126px);
    padding-bottom: clamp(42px, 5vw, 76px);
    border-bottom: 1px solid var(--tm-rule);
}
body:not(.tierra-marea) .content > .hero:not(.hero-split)::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -1px;
    width: min(34vw, 420px);
    height: 2px;
    background: linear-gradient(90deg, var(--tm-highland), var(--tm-pacific) 74%, var(--tm-maize) 74% 83%, transparent 83%);
}
body:not(.tierra-marea) .content > .hero:not(.hero-split) .hero-copy h1 { font-weight: 620; }

.card,
.service-card,
.pricing-card,
.process-card,
.package-card,
.hero-summary-card,
.quick-facts,
.faq-list details,
.contact-card,
.intake-form,
.risk-item,
.risk-result,
.section.section-soft {
    border-radius: 8px 8px 8px 0;
    box-shadow: none;
}

.card:hover,
.service-card:hover,
.pricing-card:hover,
.process-card:hover,
.package-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }

.section-kicker,
.card-label,
.price-kicker,
.package-label,
.eyebrow {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--tm-pacific);
}

.inline-pill,
.timeline-index {
    border-radius: 5px;
    color: var(--tm-deep-water);
    background: var(--tm-mist);
    border-color: var(--tm-mist);
}

.field input,
.field select,
.field textarea { border-radius: 6px; background: var(--tm-paper); }
.contact-monogram {
    display: inline-grid;
    place-items: center;
    width: 60px;
    height: 60px;
    flex: 0 0 60px;
    color: var(--tm-paper);
    background: var(--tm-highland);
    border-radius: 6px 6px 6px 0;
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 650;
    letter-spacing: -0.05em;
}
.field input:focus,
.field select:focus,
.field textarea:focus { border-color: var(--tm-pacific); box-shadow: 0 0 0 3px rgba(29, 89, 103, 0.14); }

/* ================================================================ MOTION */
@keyframes tm-enter {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}
.tm-hero-copy > *,
.tm-hero-art { animation: tm-enter 0.65s var(--ease-out) both; }
.tm-hero-copy > *:nth-child(2) { animation-delay: 0.04s; }
.tm-hero-copy > *:nth-child(3) { animation-delay: 0.08s; }
.tm-hero-copy > *:nth-child(4) { animation-delay: 0.12s; }
.tm-hero-copy > *:nth-child(5) { animation-delay: 0.16s; }
.tm-hero-art { animation-delay: 0.08s; }

/* ============================================================= RESPONSIVE */
@media (max-width: 1020px) {
    .site-header { padding-inline: var(--gutter); }
    .site-nav-panel {
        background: var(--tm-paper);
        border-color: var(--tm-rule);
        border-radius: 8px;
        box-shadow: var(--shadow);
    }
    .site-nav-panel .header-cta { border-radius: 6px; }

    .tm-hero {
        grid-template-columns: 1fr;
        min-height: 0;
        padding-top: 54px;
    }
    .tm-hero h1 { max-width: 14ch; }
    .tm-hero-art { min-height: 350px; max-height: 500px; }
    .tm-hero-art img { min-height: 350px; }

    .case-study--lead { grid-template-columns: 1fr; }
    .case-study--lead .case-study-copy { padding-top: 0; }
    .tm-section-head { grid-template-columns: 1fr; gap: 20px; }
    .tm-section-head > p { max-width: 54ch; }

    .tm-capability-grid { grid-template-columns: 1fr; }
    .tm-capability-grid article { min-height: 0; }
    .tm-capability-grid article + article { border-left: 0; border-top: 1px solid var(--bone-line); }

    .tm-about { grid-template-columns: 220px 1fr; gap: 48px; }
    .tm-process-list { grid-template-columns: 1fr; }
    .tm-process-list li { min-height: 0; }
    .tm-process-list li + li { padding-left: 0; border-left: 0; border-top: 1px solid var(--tm-rule); }

    .tm-end-cta .end-cta-inner { grid-template-columns: 1fr; }
    .tm-end-cta .cta-actions { grid-column: auto; grid-row: auto; }
}

@media (max-width: 700px) {
    body::before { display: none; }

    .site-header { padding-top: 12px; padding-bottom: 12px; }
    .brand { font-size: 0.96rem; }

    .tm-hero {
        gap: 28px;
        padding: 36px 0 24px;
    }
    .tm-hero-copy { gap: 17px; }
    .tm-hero h1 { font-size: clamp(2.65rem, 13vw, 4rem); line-height: 0.97; }
    .tm-lead { font-size: 1.04rem; line-height: 1.48; }
    .tm-hero .hero-actions { width: 100%; align-items: stretch; }
    .tm-hero .btn { justify-content: center; }
    .tm-proof { display: grid; gap: 9px; padding-top: 14px; }
    .tm-proof li { padding: 0; }
    .tm-proof li + li { border-left: 0; }
    .tm-hero-art { min-height: 210px; max-height: 250px; }
    .tm-hero-art img { min-height: 210px; object-position: 49% center; }
    .tm-hero-art figcaption { inset: auto 14px 12px; }

    .tm-horizon { height: 54px; }
    .tm-section { padding: 58px 0; }
    .tm-section-head { margin-bottom: 30px; }
    .tm-section-head h2 { font-size: clamp(2.15rem, 11vw, 3.15rem); }

    .case-study-list { gap: 42px; }
    .case-study-pair { grid-template-columns: 1fr; gap: 42px; }
    .case-study--lead { padding-top: 14px; }
    .case-study-copy { gap: 13px; padding-top: 16px; }
    .case-study-copy h3 { font-size: 2.1rem; }
    .case-study-meta { display: grid; gap: 4px; }
    .case-study-meta span + span::before { content: none; }
    .case-study-facts div { grid-template-columns: 1fr; gap: 4px; }

    .tm-lab { grid-template-columns: 1fr; gap: 16px; margin-top: 58px; }
    .tm-lab-links a { grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
    .tm-lab-links small { grid-column: 1; grid-row: 2; }
    .tm-lab-links b { grid-column: 2; grid-row: 1 / span 2; }

    .tm-capabilities { padding-inline: var(--gutter); }
    .tm-capability-grid article { padding: 28px 0; grid-template-columns: 30px 1fr; gap: 12px 16px; }
    .tm-capability-grid article h3,
    .tm-capability-grid article p { grid-column: 2; }

    .tm-about { grid-template-columns: 1fr; gap: 32px; }
    .tm-about-mark { max-width: 150px; }
    .tm-about-mark span { font-size: 3.7rem; }
    .tm-about-columns { grid-template-columns: 1fr; gap: 18px; }

    .tm-process-list li { grid-template-columns: 28px 1fr; gap: 12px; padding: 24px 0; }

    .tm-end-cta { padding: 62px var(--gutter); }
    .tm-end-cta h2 { font-size: clamp(2.25rem, 11vw, 3.25rem); }
    .tm-end-cta .cta-actions { width: 100%; }
    .tm-end-cta .btn { width: 100%; justify-content: center; }

    .tm-footer { padding-inline: var(--gutter); }
}

@media (prefers-reduced-motion: reduce) {
    .tm-hero-copy > *,
    .tm-hero-art,
    .tm-horizon path { animation: none !important; opacity: 1; transform: none; stroke-dashoffset: 0; }
}

/* ====================================================== EXECUTIVE PAGES */
.tm-section-action {
    display: flex;
    justify-content: flex-end;
    margin-top: clamp(30px, 4vw, 56px);
}

.page-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.72fr);
    gap: clamp(40px, 7vw, 96px);
    align-items: center;
    min-height: 560px;
    padding: clamp(68px, 9vw, 118px) 0 clamp(56px, 8vw, 102px);
    border-bottom: 1px solid var(--tm-rule);
}
.page-hero > div:first-child { display: grid; gap: 22px; align-content: center; }
.page-hero h1 {
    max-width: 13ch;
    font-size: clamp(3.2rem, 6vw, 5.65rem);
    line-height: 0.96;
    font-weight: 650;
}
.page-hero-lead {
    max-width: 59ch;
    font-size: clamp(1.08rem, 1.5vw, 1.25rem);
    line-height: 1.58;
    color: var(--tm-ink-2, var(--ink-2));
}
.page-hero-art {
    position: relative;
    min-height: 360px;
    overflow: hidden;
    background: var(--tm-deep-water);
    clip-path: polygon(0 0, calc(100% - 28px) 0, 100% 28px, 100% 100%, 0 100%);
    box-shadow: var(--shadow);
}
.page-hero-art img { width: 100%; height: 100%; min-height: 360px; object-fit: cover; }

.insight-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    overflow: hidden;
    background: var(--tm-rule);
    border: 1px solid var(--tm-rule);
}
.insight-card {
    min-height: 310px;
    padding: clamp(28px, 4vw, 48px);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    background: var(--tm-paper);
}
.insight-card--featured { background: var(--tm-deep-water); color: var(--tm-paper); }
.insight-card--featured h3,
.insight-card--featured .insight-meta,
.insight-card--featured p { color: inherit; }
.insight-card--featured .tm-text-link { color: var(--tm-paper); }
.insight-card--quiet { background: var(--surface-2); }
.insight-card h3 { max-width: 22ch; font-size: clamp(1.7rem, 2.8vw, 2.5rem); line-height: 1.06; }
.insight-card > p:not(.insight-meta) { max-width: 52ch; color: var(--tm-ink-2, var(--ink-2)); }
.insight-card .tm-text-link { margin-top: auto; }
.insight-meta {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.055em;
    text-transform: uppercase;
    color: var(--tm-pacific);
}
.editorial-principle { display: grid; grid-template-columns: 0.46fr 1.54fr; gap: 28px 70px; align-items: start; }
.editorial-principle blockquote {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 4.6vw, 4.5rem);
    line-height: 1.02;
    font-weight: 600;
    color: var(--tm-deep-water);
}
.editorial-principle > p:last-child { grid-column: 2; max-width: 55ch; color: var(--tm-ink-2, var(--ink-2)); }

.page-hero--contact { grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.55fr); }
.contact-signal {
    display: grid;
    gap: 8px;
    padding: clamp(26px, 3vw, 38px);
    background: var(--tm-deep-water);
    color: var(--tm-paper);
    border-top: 3px solid var(--tm-clay);
    box-shadow: var(--shadow);
}
.contact-signal span {
    margin-top: 14px;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(243, 235, 221, 0.62);
}
.contact-signal span:first-child { margin-top: 0; }
.contact-signal strong,
.contact-signal a { font-size: 1.03rem; font-weight: 600; }
.contact-section .contact-layout { grid-template-columns: minmax(0, 0.8fr) minmax(440px, 1.2fr); gap: clamp(40px, 8vw, 110px); align-items: start; }
.contact-section .contact-layout > * { min-width: 0; width: 100%; }
.contact-details { display: grid; gap: 26px; }
.contact-details h2 { margin-top: 12px; font-size: clamp(2.15rem, 4vw, 3.7rem); line-height: 1.02; }
.contact-fit-list { display: grid; gap: 0; list-style: none; border-top: 1px solid var(--tm-rule); }
.contact-fit-list li { position: relative; padding: 17px 0 17px 28px; border-bottom: 1px solid var(--tm-rule); }
.contact-fit-list li::before { content: ""; position: absolute; left: 0; top: 25px; width: 9px; height: 9px; border-radius: 50%; background: var(--tm-clay); }
.contact-note { color: var(--tm-ink-2, var(--ink-2)); }
.contact-note a { color: var(--tm-deep-water); text-decoration: underline; text-decoration-color: var(--tm-pacific); text-underline-offset: 3px; }
.contact-section .intake-form { border-top: 3px solid var(--tm-highland); border-radius: 0; }
.field label span { font-size: 0.74rem; font-weight: 400; color: var(--muted); }
.form-honeypot { position: absolute !important; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; }
.form-fallback { display: inline-block; margin-top: 10px; font-weight: 600; color: var(--tm-deep-water); text-decoration: underline; text-underline-offset: 4px; }

@media (max-width: 1020px) {
    .page-hero { grid-template-columns: 1fr; min-height: 0; }
    .page-hero h1 { max-width: 15ch; }
    .page-hero-art { min-height: 280px; max-height: 420px; }
    .page-hero-art img { min-height: 280px; }
    .page-hero--contact { grid-template-columns: 1fr; }
    .contact-section .contact-layout { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
    .tm-section-action { justify-content: flex-start; }
    .page-hero { gap: 28px; padding: 42px 0 52px; }
    .page-hero > div:first-child { gap: 17px; }
    .page-hero h1 { font-size: clamp(2.65rem, 13vw, 4rem); }
    .page-hero-lead { font-size: 1.02rem; line-height: 1.5; }
    .page-hero-art, .page-hero-art img { min-height: 220px; }
    .insight-grid { grid-template-columns: 1fr; }
    .insight-card { min-height: 260px; }
    .editorial-principle { grid-template-columns: 1fr; gap: 20px; }
    .editorial-principle > p:last-child { grid-column: 1; }
    .contact-section .contact-layout { gap: 34px; }
}
