/* ============================================================================
   Birthe C. Reimers, PhD — Independent Ombuds Program Advisory
   Editorial design system.

   Restraint is the point: ivory and white grounds, deep navy for authority,
   charcoal body, warm-gray hairlines, a muted teal used only for eyebrows,
   small rules, and fine accents. Elegant serif headlines (Cormorant Garamond),
   quiet sans-serif body (Inter). Thin rules instead of boxes. No drop shadows,
   no card chrome, no loud color. Whitespace does the work.
   ========================================================================== */

:root {
    /* ── Palette ── */
    --ivory:      #F7F5F0;   /* primary page background */
    --white:      #FFFFFF;
    --navy:       #172A3A;   /* deep navy — carries the visual authority */
    --charcoal:   #303436;   /* body text on light grounds */
    --warm-gray:  #D9D5CE;   /* hairlines, thin rules, borders */
    --teal:       #547C7A;   /* accent: markers, small rules, fine details */
    --teal-ink:   #3E6360;   /* deepened teal for eyebrow TEXT (AA on ivory) */
    --neutral:    #ECE8E0;   /* soft neutral section ground */

    /* Derived text tones */
    --muted:      #5B6163;   /* meta / secondary text on light (AA on ivory) */
    --on-navy:    #F3F1EC;   /* body text on navy */
    --on-navy-mut:#AEB9BE;   /* muted text on navy */
    --line-soft:  rgba(23,42,58,.12);
    --line-navy:  rgba(243,241,236,.16);

    /* Measure & rhythm */
    --maxw:       1180px;
    --measure:    38rem;     /* comfortable body-copy width */
    --measure-lg: 46rem;
    --sp-section: clamp(5rem, 11vw, 9rem);   /* generous vertical section padding */

    --ease:   cubic-bezier(.22, 1, .36, 1);

    --serif:  'Cormorant Garamond', Georgia, 'Times New Roman', serif;
    --sans:   'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }

body {
    font-family: var(--sans);
    background: var(--ivory);
    color: var(--charcoal);
    font-size: 1.0625rem;
    font-weight: 400;
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(20px, 5vw, 48px); }

/* Skip link */
.skip-link {
    position: absolute; left: 16px; top: -60px; z-index: 200;
    background: var(--navy); color: var(--on-navy);
    padding: 10px 16px; border-radius: 2px; font-size: .9rem;
    transition: top .2s var(--ease);
}
.skip-link:focus { top: 16px; }

/* ── Typography primitives ── */
h1, h2, h3, h4 {
    font-family: var(--serif);
    font-weight: 500;
    color: var(--navy);
    line-height: 1.12;
    letter-spacing: .002em;
}
p { max-width: var(--measure); }

.eyebrow {
    font-family: var(--sans);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .2em;
    font-size: .74rem;
    color: var(--teal-ink);
    display: inline-block;
}
.eyebrow::before {
    /* a fine teal tick preceding the label */
    content: ''; display: inline-block; vertical-align: middle;
    width: 26px; height: 1px; background: var(--teal);
    margin-right: 14px; margin-bottom: 3px;
}
.eyebrow--plain::before { display: none; }

.lede { font-size: 1.18rem; line-height: 1.7; color: var(--charcoal); }

/* ── Links & buttons ── */
.btn {
    display: inline-flex; align-items: center; gap: .6em;
    font-family: var(--sans); font-weight: 500;
    letter-spacing: .02em; font-size: .95rem;
    padding: .85em 1.7em; border: 1px solid transparent; border-radius: 2px;
    cursor: pointer; transition: background .3s var(--ease), color .3s var(--ease),
        border-color .3s var(--ease), transform .3s var(--ease);
}
.btn svg { width: 1.05em; height: 1.05em; }
.btn-primary { background: var(--navy); color: var(--on-navy); }
.btn-primary:hover { background: #0f2130; }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--warm-gray); }
.btn-outline:hover { border-color: var(--navy); }
/* On navy grounds */
.btn-on-navy { background: var(--ivory); color: var(--navy); }
.btn-on-navy:hover { background: #fff; }
.btn-on-navy-outline { background: transparent; color: var(--on-navy); border-color: var(--line-navy); }
.btn-on-navy-outline:hover { border-color: var(--on-navy); }

.arrow { transition: transform .3s var(--ease); }
.btn:hover .arrow, .text-link:hover .arrow { transform: translateX(4px); }

/* Editorial text link with underline reveal + arrow */
.text-link {
    display: inline-flex; align-items: center; gap: .5em;
    font-family: var(--sans); font-weight: 500; font-size: .98rem;
    color: var(--navy); position: relative;
}
.text-link svg { width: 1em; height: 1em; }
.text-link .u { position: relative; }
.text-link .u::after {
    content: ''; position: absolute; left: 0; right: 0; bottom: -3px; height: 1px;
    background: currentColor; transform: scaleX(0); transform-origin: left;
    transition: transform .35s var(--ease);
}
.text-link:hover .u::after { transform: scaleX(1); }
.text-link--teal { color: var(--teal-ink); }

/* ── Focus (accessibility floor) ── */
a:focus-visible, button:focus-visible, input:focus-visible,
textarea:focus-visible, select:focus-visible {
    outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 2px;
}

/* ============================================================================
   Header
   ========================================================================== */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line-soft);
}
.site-header__inner {
    display: flex; align-items: center; justify-content: space-between;
    gap: 28px; padding: 16px clamp(20px, 5vw, 48px);
}
.brand { display: inline-flex; flex-direction: column; line-height: 1.1; }
.brand__name {
    font-family: var(--serif); font-weight: 600; font-size: 1.5rem;
    color: var(--navy); letter-spacing: .005em;
}
.brand__desc {
    font-family: var(--sans); font-weight: 500; text-transform: uppercase;
    letter-spacing: .18em; font-size: .58rem; color: var(--muted); margin-top: 5px;
}

.nav { display: flex; align-items: center; gap: clamp(20px, 2.4vw, 38px); }
.nav a {
    font-family: var(--sans); font-weight: 400; font-size: .93rem;
    color: var(--charcoal); position: relative; padding: 4px 0;
    transition: color .25s var(--ease);
}
.nav a::after {
    content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px;
    background: var(--teal); transform: scaleX(0); transform-origin: left;
    transition: transform .3s var(--ease);
}
.nav a:hover { color: var(--navy); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav a[aria-current="page"] { color: var(--navy); }
.nav a.nav__contact {
    border: 1px solid var(--warm-gray); border-radius: 2px;
    padding: .5em 1.15em; transition: border-color .25s var(--ease), color .25s var(--ease);
}
.nav a.nav__contact::after { display: none; }
.nav a.nav__contact:hover { border-color: var(--navy); }

.nav-toggle {
    display: none; background: none; border: 0; cursor: pointer;
    width: 40px; height: 40px; color: var(--navy);
}
.nav-toggle svg { width: 24px; height: 24px; margin: 0 auto; }

/* ============================================================================
   Section scaffolding
   ========================================================================== */
.section { padding: var(--sp-section) 0; }
.section--white { background: var(--white); }
.section--ivory { background: var(--ivory); }
.section--neutral { background: var(--neutral); }
.section--navy { background: var(--navy); color: var(--on-navy); }
.section--navy h1, .section--navy h2, .section--navy h3 { color: var(--white); }
.section--navy p { color: var(--on-navy); }
.section--navy .eyebrow { color: #A9C3C1; }
.section--navy .eyebrow::before { background: var(--teal); }

.section__head { max-width: 52rem; }
.section-title {
    font-size: clamp(2rem, 4.2vw, 3rem);
    font-weight: 500; margin-top: 1rem;
}

/* ============================================================================
   Hero — typographic, ~60/40, subtle vertical divider (no split-screen photo)
   ========================================================================== */
.hero { background: var(--ivory); padding: clamp(4.5rem, 10vw, 8rem) 0 clamp(4rem, 9vw, 7rem); }
.hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
    gap: clamp(2.5rem, 6vw, 5.5rem);
    align-items: start;
}
.hero__eyebrow { margin-bottom: 1.6rem; }
.hero__title {
    font-size: clamp(2.6rem, 6vw, 4.5rem);
    font-weight: 500; line-height: 1.06; letter-spacing: -.005em;
    max-width: 15ch;
}
.hero__sub {
    margin-top: 1.8rem; font-size: 1.2rem; line-height: 1.7;
    color: var(--charcoal); max-width: 34rem;
}
.hero__cta { margin-top: 2.5rem; display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }

.hero__aside {
    border-left: 1px solid var(--warm-gray);
    padding-left: clamp(1.5rem, 3vw, 2.75rem);
    padding-top: .5rem;
}
.hero__aside-lead {
    font-family: var(--serif); font-weight: 500; font-size: 1.65rem;
    line-height: 1.28; color: var(--navy); max-width: 22ch;
}
.hero__aside-text { margin-top: 1.4rem; font-size: 1rem; color: var(--muted); }

/* ============================================================================
   The Challenge — asymmetric editorial grid + three border-top columns
   ========================================================================== */
.challenge__grid {
    display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: clamp(2rem, 5vw, 4.5rem); align-items: start;
}
.challenge__lead h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); font-weight: 500; }
.challenge__body p { font-size: 1.15rem; }
.challenge__body p + p { margin-top: 1.2rem; }

.cols3 {
    margin-top: clamp(3rem, 6vw, 5rem);
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: clamp(1.5rem, 4vw, 3.5rem);
}
.col-item { padding-top: 1.4rem; border-top: 1px solid var(--warm-gray); }
.col-item__label {
    font-family: var(--serif); font-weight: 600; font-size: 1.4rem; color: var(--navy);
}
.col-item__num {
    display: block; font-family: var(--sans); font-weight: 500;
    font-size: .72rem; letter-spacing: .18em; text-transform: uppercase;
    color: var(--teal-ink); margin-bottom: .9rem;
}
.col-item p { margin-top: .7rem; font-size: 1rem; color: var(--muted); }

/* ============================================================================
   The Difference — quiet navy statement
   ========================================================================== */
.difference { text-align: center; }
.difference .container { max-width: 60rem; }
.difference__title {
    font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 500;
    line-height: 1.15; margin: 1.6rem 0;
}
.difference__body {
    margin: 0 auto; max-width: 42rem; font-size: 1.18rem;
    color: var(--on-navy); line-height: 1.75;
}

/* ============================================================================
   Five-Stage Framework — the signature motif
   Horizontal lifecycle on desktop, vertical progression on mobile.
   ========================================================================== */
.framework__head { text-align: center; max-width: 44rem; margin: 0 auto clamp(3rem, 6vw, 4.5rem); }
.framework__head .section-title { font-size: clamp(1.9rem, 4vw, 2.9rem); }

.lifecycle { list-style: none; position: relative; }

/* Desktop: 5 columns joined by a thin line running through the markers */
.lifecycle {
    display: grid; grid-template-columns: repeat(5, 1fr);
    gap: clamp(1rem, 2vw, 1.75rem);
}
.lifecycle::before {
    /* the connecting horizontal line, aligned to the marker centers */
    content: ''; position: absolute; top: 15px; height: 1px;
    left: 10%; right: 10%; background: var(--warm-gray);
}
.stage { position: relative; text-align: center; padding: 0 .25rem; }
.stage__marker {
    width: 30px; height: 30px; border-radius: 50%;
    border: 1px solid var(--teal); background: var(--ivory);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto; position: relative; z-index: 2;
    transition: background .3s var(--ease), border-color .3s var(--ease);
}
.stage__marker span { width: 6px; height: 6px; border-radius: 50%; background: var(--teal); }
.stage:hover .stage__marker { background: var(--teal); }
.stage:hover .stage__marker span { background: var(--ivory); }
.stage__num {
    display: block; margin-top: 1.3rem;
    font-family: var(--sans); font-weight: 500; font-size: .72rem;
    letter-spacing: .22em; color: var(--teal-ink);
}
.stage__name {
    font-family: var(--serif); font-weight: 600; font-size: 1.5rem;
    color: var(--navy); margin-top: .35rem;
}
.stage__text { margin: .65rem auto 0; font-size: .95rem; color: var(--muted); max-width: 22ch; }

/* ============================================================================
   Services preview — publication index (label left, editorial rows right)
   ========================================================================== */
.svc-preview__grid {
    display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
    gap: clamp(2rem, 5vw, 4.5rem); align-items: start;
}
.svc-preview__head .section-title { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }

.svc-index { border-top: 1px solid var(--warm-gray); }
.svc-row {
    display: flex; align-items: baseline; justify-content: space-between; gap: 1.5rem;
    padding: 1.7rem 0; border-bottom: 1px solid var(--warm-gray);
    transition: padding-left .35s var(--ease);
}
.svc-row:hover { padding-left: .5rem; }
.svc-row__main { display: flex; flex-direction: column; }
.svc-row__name {
    font-family: var(--serif); font-weight: 500; font-size: clamp(1.4rem, 2.4vw, 1.9rem);
    color: var(--navy); line-height: 1.2;
}
.svc-row__stage {
    font-family: var(--sans); font-weight: 500; font-size: .68rem;
    letter-spacing: .18em; text-transform: uppercase; color: var(--teal-ink);
    margin-bottom: .5rem;
}
.svc-row__arrow { color: var(--teal); flex: none; }
.svc-row__arrow svg { width: 22px; height: 22px; transition: transform .35s var(--ease); }
.svc-row:hover .svc-row__arrow svg { transform: translateX(5px); }

/* ============================================================================
   About Birthe — portrait placeholder + editorial column
   ========================================================================== */
.about__grid {
    display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: clamp(2.5rem, 6vw, 5rem); align-items: center;
}
.portrait {
    aspect-ratio: 4 / 5; background: var(--white);
    border: 1px solid var(--warm-gray);
    display: flex; align-items: center; justify-content: center;
    position: relative; overflow: hidden;
}
.portrait__mark {
    font-family: var(--serif); font-weight: 500; font-size: clamp(4rem, 10vw, 7rem);
    color: var(--warm-gray); letter-spacing: .04em;
}
.portrait__caption {
    position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 18px;
    font-family: var(--sans); font-size: .74rem; letter-spacing: .1em;
    text-transform: uppercase; color: var(--muted);
    border-top: 1px solid var(--warm-gray); background: var(--ivory);
}
.about__body .section-title { font-size: clamp(1.9rem, 3.8vw, 2.7rem); }
.about__name {
    font-family: var(--sans); font-weight: 600; font-size: .8rem;
    letter-spacing: .16em; text-transform: uppercase; color: var(--teal-ink);
    margin: 1.4rem 0 .9rem;
}
.about__body p { font-size: 1.1rem; }
.about__link { margin-top: 1.8rem; }

/* ============================================================================
   Mission — quiet editorial pause
   ========================================================================== */
.mission { text-align: center; }
.mission .container { max-width: 44rem; }
.mission__rule { width: 46px; height: 2px; background: var(--teal); margin: 0 auto 2.5rem; }
.mission__statement {
    font-family: var(--serif); font-weight: 500;
    font-size: clamp(1.7rem, 3.6vw, 2.6rem); line-height: 1.3; color: var(--navy);
    margin: 0 auto; max-width: 20ch;
}
.mission__statement { max-width: 24ch; }

/* ============================================================================
   Resources preview — thin-top-border editorial previews (no cards)
   ========================================================================== */
.res-grid {
    margin-top: clamp(2.5rem, 5vw, 4rem);
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: clamp(1.5rem, 4vw, 3rem);
}
.res-item { padding-top: 1.4rem; border-top: 1px solid var(--warm-gray); }
.res-item__kind {
    font-family: var(--sans); font-weight: 500; font-size: .68rem;
    letter-spacing: .2em; text-transform: uppercase; color: var(--teal-ink);
}
.res-item__title {
    font-family: var(--serif); font-weight: 500; font-size: 1.5rem;
    color: var(--navy); line-height: 1.24; margin: 1rem 0 .7rem;
}
.res-item__blurb { font-size: 1rem; color: var(--muted); }
.res-item__more { margin-top: 1.2rem; }

/* ============================================================================
   Final CTA — restrained navy
   ========================================================================== */
.final-cta { text-align: center; }
.final-cta .container { max-width: 50rem; }
.final-cta__title {
    font-size: clamp(2rem, 4.6vw, 3.1rem); font-weight: 500; line-height: 1.18;
    margin: 1.4rem 0;
}
.final-cta__body { margin: 0 auto 2.4rem; max-width: 40rem; font-size: 1.15rem; color: var(--on-navy); }

/* ============================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--white); border-top: 1px solid var(--line-soft); }
.site-footer__inner {
    display: flex; flex-wrap: wrap; gap: 1.5rem 2.5rem;
    align-items: baseline; justify-content: space-between;
    padding: clamp(2.5rem, 5vw, 3.5rem) 0;
}
.footer__brand { display: flex; flex-direction: column; line-height: 1.2; }
.footer__name { font-family: var(--serif); font-weight: 600; font-size: 1.25rem; color: var(--navy); }
.footer__desc {
    font-family: var(--sans); font-weight: 500; text-transform: uppercase;
    letter-spacing: .16em; font-size: .58rem; color: var(--muted); margin-top: 5px;
}
.footer__meta { display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: center; }
.footer__meta a {
    font-size: .88rem; color: var(--muted); position: relative;
    transition: color .25s var(--ease);
}
.footer__meta a:hover { color: var(--navy); }
.footer__copy {
    font-size: .84rem; color: var(--muted); width: 100%;
    padding-top: 1.4rem; border-top: 1px solid var(--line-soft);
    display: flex; flex-wrap: wrap; gap: 1rem 1.5rem;
    align-items: center; justify-content: space-between;
}
.footer__powered a {
    display: inline-flex; align-items: center; gap: 9px;
    opacity: .78; transition: opacity .25s var(--ease);
}
.footer__powered a:hover { opacity: 1; }
.footer__powered img { height: 26px; width: auto; }
.footer__powered span {
    font-family: var(--sans); font-size: .68rem; letter-spacing: .12em;
    text-transform: uppercase; color: var(--muted);
}
.footer__powered strong { font-weight: 600; color: var(--navy); }

/* ============================================================================
   Inner-page hero (About / Services / Approach / Resources / Contact)
   ========================================================================== */
.page-hero { background: var(--ivory); padding: clamp(3.5rem, 8vw, 6rem) 0 clamp(2.5rem, 5vw, 3.5rem); border-bottom: 1px solid var(--line-soft); }
.page-hero__title { font-size: clamp(2.3rem, 5vw, 3.6rem); font-weight: 500; margin-top: 1.1rem; max-width: 18ch; }
.page-hero__intro { margin-top: 1.5rem; font-size: 1.2rem; color: var(--charcoal); max-width: var(--measure-lg); }

/* Prose blocks for inner pages */
.prose { max-width: var(--measure-lg); }
.prose p { font-size: 1.1rem; }
.prose p + p { margin-top: 1.3rem; }
.prose h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin: 2.6rem 0 1rem; font-weight: 500; }
.prose h3 { font-size: 1.4rem; margin: 2rem 0 .7rem; font-weight: 600; }

/* Services index page (full editorial list with summaries) */
.svc-list { border-top: 1px solid var(--warm-gray); }
.svc-list__item {
    display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: 1.5rem clamp(2rem, 5vw, 4rem); align-items: start;
    padding: clamp(1.8rem, 3.5vw, 2.6rem) 0; border-bottom: 1px solid var(--warm-gray);
    transition: padding-left .35s var(--ease);
}
.svc-list__item:hover { padding-left: .5rem; }
.svc-list__stage {
    font-family: var(--sans); font-weight: 500; font-size: .68rem;
    letter-spacing: .18em; text-transform: uppercase; color: var(--teal-ink); margin-bottom: .55rem;
}
.svc-list__name {
    font-family: var(--serif); font-weight: 500; font-size: clamp(1.5rem, 2.6vw, 2.1rem);
    color: var(--navy); line-height: 1.18;
    display: inline-flex; align-items: center; gap: .5em;
}
.svc-list__name svg { width: 20px; height: 20px; color: var(--teal); transition: transform .35s var(--ease); }
.svc-list__item:hover .svc-list__name svg { transform: translateX(5px); }
.svc-list__summary { font-size: 1.05rem; color: var(--muted); }

/* Service detail page */
.svc-detail__grid {
    display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: clamp(2.5rem, 6vw, 5rem); align-items: start;
}
.deliverables { list-style: none; border-top: 1px solid var(--warm-gray); }
.deliverables li {
    padding: .95rem 0 .95rem 1.6rem; border-bottom: 1px solid var(--warm-gray);
    position: relative; font-size: 1.02rem; color: var(--charcoal);
}
.deliverables li::before {
    content: ''; position: absolute; left: 0; top: 1.55em;
    width: 8px; height: 1px; background: var(--teal);
}
.svc-detail__aside-label {
    font-family: var(--sans); font-weight: 500; font-size: .72rem;
    letter-spacing: .18em; text-transform: uppercase; color: var(--teal-ink); margin-bottom: 1.2rem;
}
.svc-nav { margin-top: clamp(3rem, 6vw, 5rem); padding-top: 2rem; border-top: 1px solid var(--warm-gray); display: flex; flex-wrap: wrap; gap: 1rem 2rem; }
.svc-nav a { font-size: .95rem; color: var(--muted); transition: color .25s var(--ease); }
.svc-nav a:hover { color: var(--navy); }
.svc-nav a[aria-current="page"] { color: var(--navy); font-weight: 500; }

/* Approach page — stacked stages with room for prose */
.approach-stages { border-top: 1px solid var(--warm-gray); }
.approach-stage {
    display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
    gap: 1rem clamp(2rem, 5vw, 4rem); align-items: start;
    padding: clamp(2.2rem, 4.5vw, 3.4rem) 0; border-bottom: 1px solid var(--warm-gray);
}
.approach-stage__id { display: flex; align-items: baseline; gap: 1rem; }
.approach-stage__num { font-family: var(--sans); font-weight: 500; font-size: .8rem; letter-spacing: .18em; color: var(--teal-ink); }
.approach-stage__name { font-family: var(--serif); font-weight: 500; font-size: clamp(1.7rem, 3vw, 2.3rem); color: var(--navy); }
.approach-stage__body p { font-size: 1.08rem; }
.approach-stage__short { color: var(--muted); font-style: italic; margin-bottom: 1rem; }

/* Resources page list */
.res-list { border-top: 1px solid var(--warm-gray); }
.res-list__item { padding: clamp(1.8rem, 3.5vw, 2.4rem) 0; border-bottom: 1px solid var(--warm-gray); max-width: var(--measure-lg); }
.res-list__kind { font-family: var(--sans); font-weight: 500; font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: var(--teal-ink); }
.res-list__title { font-family: var(--serif); font-weight: 500; font-size: clamp(1.5rem, 2.6vw, 2rem); color: var(--navy); margin: .8rem 0 .6rem; }
.res-note {
    margin-top: clamp(2.5rem, 5vw, 3.5rem); padding: 1.4rem 1.6rem;
    border-left: 2px solid var(--teal); background: var(--white); color: var(--muted); font-size: 1rem;
    max-width: var(--measure-lg);
}

/* ============================================================================
   Contact form
   ========================================================================== */
.contact__grid {
    display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: clamp(2.5rem, 6vw, 5rem); align-items: start;
}
.contact__aside p { color: var(--muted); font-size: 1.05rem; }
.contact__aside-detail { margin-top: 1.8rem; }
.contact__aside-detail dt { font-family: var(--sans); font-weight: 600; font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--teal-ink); }
.contact__aside-detail dd { margin: .3rem 0 1.2rem; color: var(--charcoal); }

.form-field { margin-bottom: 1.5rem; }
.form-field label {
    display: block; font-family: var(--sans); font-weight: 500; font-size: .82rem;
    letter-spacing: .06em; text-transform: uppercase; color: var(--charcoal); margin-bottom: .5rem;
}
.form-field .req { color: var(--teal-ink); }
.form-field input,
.form-field select,
.form-field textarea {
    width: 100%; font-family: var(--sans); font-size: 1rem; color: var(--charcoal);
    background: var(--white); border: 1px solid var(--warm-gray); border-radius: 2px;
    padding: .8em .9em; transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.form-field textarea { min-height: 150px; resize: vertical; }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(84,124,122,.14);
}
.form-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-actions { margin-top: 2rem; }

.alert { padding: 1rem 1.2rem; border-radius: 2px; margin-bottom: 1.8rem; font-size: 1rem; }
.alert--error { background: #FBEDEA; border-left: 2px solid #B4472F; color: #7A2E1D; }
.alert--ok { background: #ECF2F1; border-left: 2px solid var(--teal); color: var(--teal-ink); }

.form-sent { max-width: var(--measure); }
.form-sent h2 { font-size: clamp(1.7rem, 3.4vw, 2.3rem); font-weight: 500; }
.form-sent p { font-size: 1.1rem; margin-top: 1rem; }

/* Not found */
.notfound { text-align: center; padding: clamp(5rem, 12vw, 9rem) 0; }
.notfound__code { font-family: var(--serif); font-size: clamp(4rem, 12vw, 7rem); font-weight: 500; color: var(--warm-gray); }
.notfound h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin: .5rem 0 1.2rem; font-weight: 500; }

/* ============================================================================
   Reveal-on-scroll — extremely restrained
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
    .reveal { opacity: 1; transform: none; }
}

/* ============================================================================
   Responsive
   ========================================================================== */
@media (max-width: 900px) {
    .hero__grid { grid-template-columns: 1fr; gap: 2.5rem; }
    .hero__aside { border-left: 0; border-top: 1px solid var(--warm-gray); padding-left: 0; padding-top: 2rem; }
    .challenge__grid { grid-template-columns: 1fr; gap: 1.5rem; }
    .svc-preview__grid { grid-template-columns: 1fr; gap: 1.5rem; }
    .about__grid { grid-template-columns: 1fr; }
    .portrait { max-width: 360px; }
    .svc-detail__grid { grid-template-columns: 1fr; }
    .contact__grid { grid-template-columns: 1fr; }
    .svc-list__item { grid-template-columns: 1fr; }
    .approach-stage { grid-template-columns: 1fr; gap: .8rem; }

    /* Framework → vertical progression */
    .lifecycle { grid-template-columns: 1fr; gap: 0; }
    .lifecycle::before { top: 0; bottom: 0; left: 15px; right: auto; width: 1px; height: auto; }
    .stage { text-align: left; display: grid; grid-template-columns: 30px 1fr; gap: 1.1rem; padding: 1.4rem 0; align-items: start; }
    .stage__marker { margin: 0; }
    .stage__num { margin-top: 0; }
    .stage__name { margin-top: .1rem; }
    .stage__text { margin-left: 0; max-width: none; }
    .stage__copy { grid-column: 2; }
}

@media (max-width: 680px) {
    .cols3 { grid-template-columns: 1fr; gap: 0; }
    .col-item { padding: 1.4rem 0; }
    .col-item + .col-item { border-top: 1px solid var(--warm-gray); }
    .res-grid { grid-template-columns: 1fr; gap: 0; }
    .res-item { padding: 1.6rem 0; }
    .res-item:not(:first-child) { border-top: 1px solid var(--warm-gray); }

    /* Mobile nav */
    .nav-toggle { display: block; }
    .nav {
        position: fixed; inset: 0 0 0 auto; width: min(82vw, 320px);
        flex-direction: column; align-items: flex-start; gap: 1.4rem;
        background: var(--white); padding: 5.5rem 2rem 2rem;
        transform: translateX(100%); transition: transform .35s var(--ease);
        box-shadow: -12px 0 40px -24px rgba(23,42,58,.4); z-index: 120;
    }
    .nav.open { transform: none; }
    .nav a { font-size: 1.05rem; }
    .nav a.nav__contact { margin-top: .4rem; }
    body.nav-open { overflow: hidden; }
    .nav-backdrop { position: fixed; inset: 0; background: rgba(23,42,58,.35); opacity: 0; visibility: hidden; transition: opacity .3s var(--ease), visibility .3s; z-index: 110; }
    .nav-backdrop.show { opacity: 1; visibility: visible; }
}
