/* ==========================================================================
   Citypack — community-home stylesheet
   Warm paper, evergreen ink, vermilion "field" accent.
   ========================================================================== */

:root {
    --paper: #f5f0e6;
    --paper-2: #ebe3d3;
    --paper-3: #e0d5c0;
    --ink: #14302a;
    --ink-2: #1c3d35;
    --ink-soft: #3d5650;
    --muted: #5f6f69;
    --line: rgba(20, 48, 42, 0.14);
    --accent: #c8461f;
    --accent-hover: #a93a18;
    --signal: #34b27b;
    --cream: #f5f0e6;
    --cream-soft: rgba(245, 240, 230, 0.72);
    --cream-line: rgba(245, 240, 230, 0.16);

    --font-display: "Bricolage Grotesque", "Iowan Old Style", Georgia, serif;
    --font-body: "Public Sans", "Helvetica Neue", Helvetica, sans-serif;
    --font-mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;

    --wrap: 1200px;
    --gutter: clamp(16px, 4vw, 40px);
    --section: clamp(72px, 10vw, 128px);
    --radius: 14px;
    --radius-lg: 22px;
    --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---------- Base ---------- */

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

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

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

/* subtle paper grain */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 100;
    opacity: 0.05;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img { max-width: 100%; display: block; }

h1, h2, h3 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.02em;
    margin: 0;
}

h2 { font-size: clamp(2rem, 4.4vw, 3.4rem); max-width: 18ch; }
h3 { font-size: 1.2rem; letter-spacing: -0.01em; }
p { margin: 0; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.mono {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.eyebrow {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.eyebrow::before {
    content: "";
    width: 22px;
    height: 2px;
    background: currentColor;
}

.sr-only, .hidden-field {
    position: absolute !important;
    width: 1px; height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.skip-link {
    position: absolute;
    left: 16px; top: -60px;
    background: var(--ink);
    color: var(--cream);
    padding: 10px 16px;
    border-radius: 8px;
    z-index: 200;
}
.skip-link:focus { top: 12px; }

/* ---------- Buttons ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.98rem;
    text-decoration: none;
    border: 2px solid var(--accent);
    cursor: pointer;
    transition: background 0.2s var(--ease), transform 0.2s var(--ease), border-color 0.2s var(--ease);
}
.btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.btn--small { padding: 9px 18px; font-size: 0.9rem; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* ---------- Nav ---------- */

.site-nav {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(245, 240, 230, 0.86);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s var(--ease);
}
.site-nav.is-scrolled { border-bottom-color: var(--line); }
.site-nav__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.35rem;
    letter-spacing: -0.03em;
    text-decoration: none;
    color: var(--ink);
}
/* little feather flag mark */
.logo-mark {
    width: 14px;
    height: 24px;
    background: var(--accent);
    border-radius: 2px 12px 2px 2px;
    clip-path: polygon(0 0, 100% 8%, 82% 100%, 0 100%);
    box-shadow: inset 3px 0 0 var(--ink);
}

.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a:not(.btn) {
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--ink-soft);
    transition: color 0.15s;
}
.nav-links a:not(.btn):hover { color: var(--ink); }

.nav-toggle { display: none; }

/* ---------- Hero ---------- */

.hero { padding: clamp(40px, 6vw, 80px) 0 clamp(56px, 7vw, 96px); overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }

.hero__title {
    font-size: clamp(2.7rem, 6.4vw, 5.4rem);
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 0.98;
    max-width: 12ch;
}
.hero__lede { margin-top: 26px; font-size: clamp(1.05rem, 1.5vw, 1.22rem); color: var(--ink-soft); max-width: 36rem; }

.hero__copy > * { animation: rise 0.8s var(--ease) both; }
.hero__copy > :nth-child(2) { animation-delay: 0.08s; }
.hero__copy > :nth-child(3) { animation-delay: 0.16s; }
.hero__copy > :nth-child(4) { animation-delay: 0.24s; }

.hero__visual { position: relative; padding-bottom: 48px; animation: rise 0.9s 0.2s var(--ease) both; }
.hero__photo .photo { aspect-ratio: 4 / 5; border-radius: var(--radius-lg); }
.hero__photo .photo--pending { justify-content: flex-start; }

.runsheet {
    position: absolute;
    left: clamp(-40px, -3vw, -16px);
    bottom: 0;
    width: min(330px, 86%);
    background: var(--ink);
    color: var(--cream);
    border-radius: var(--radius);
    padding: 20px 22px 18px;
    box-shadow: 0 24px 50px -18px rgba(20, 48, 42, 0.55);
}
.runsheet__title {
    display: flex; align-items: center; gap: 10px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.05rem;
    margin-bottom: 12px;
}
.status-dot {
    width: 9px; height: 9px; border-radius: 50%;
    background: var(--signal);
    box-shadow: 0 0 0 0 rgba(52, 178, 123, 0.6);
    animation: pulse 2.4s infinite;
}
.runsheet ol { list-style: none; margin: 0; padding: 0; }
.runsheet li {
    display: grid;
    grid-template-columns: 96px 1fr;
    gap: 10px;
    padding: 9px 0;
    border-top: 1px solid var(--cream-line);
    font-size: 0.92rem;
    line-height: 1.4;
    color: var(--cream-soft);
    animation: rise 0.6s var(--ease) both;
}
.runsheet li:nth-child(1) { animation-delay: 0.5s; }
.runsheet li:nth-child(2) { animation-delay: 0.65s; }
.runsheet li:nth-child(3) { animation-delay: 0.8s; }
.runsheet li:nth-child(4) { animation-delay: 0.95s; }
.runsheet .mono { color: var(--signal); font-size: 0.68rem; padding-top: 3px; }

/* ---------- Photo slots ---------- */

.photo { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); }
.photo--pending {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 8px;
    min-height: 240px;
    padding: 22px;
    background:
        repeating-linear-gradient(135deg, transparent 0 14px, rgba(20, 48, 42, 0.045) 14px 15px),
        var(--paper-2);
    border: 1.5px dashed rgba(20, 48, 42, 0.3);
    color: var(--ink-soft);
}
.photo-tag {
    align-self: flex-start;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: var(--ink);
    color: var(--cream);
    padding: 4px 9px;
    border-radius: 999px;
}
.photo-note { font-size: 0.92rem; max-width: 30ch; line-height: 1.45; }

/* ---------- Proof strip ---------- */

.proof { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--paper-2); }
.proof__inner { display: grid; grid-template-columns: auto 1fr; gap: clamp(24px, 5vw, 64px); align-items: center; padding-top: 28px; padding-bottom: 28px; }
.proof__stat { display: flex; align-items: center; gap: 18px; max-width: 34rem; }
.proof__stat strong {
    font-family: var(--font-display);
    font-size: clamp(2.6rem, 5vw, 3.6rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1;
    color: var(--accent);
}
.proof__stat span { font-size: 0.95rem; color: var(--ink-soft); line-height: 1.45; }
.proof__stat a { display: block; margin-top: 4px; font-size: 0.8rem; color: var(--muted); }
.proof__trusted { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; justify-content: flex-end; }
.proof__trusted .mono { color: var(--muted); }
.proof__trusted ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.proof__trusted li { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; color: var(--ink); white-space: nowrap; }

/* ---------- Sections ---------- */

.section { padding: var(--section) 0; }
.section--tint { background: var(--paper-2); }
.section--dark { background: var(--ink); color: var(--cream); }
.section--dark .eyebrow { color: #f08a5d; }
.section--dark h2 { color: var(--cream); }

.section-head { margin-bottom: clamp(40px, 6vw, 64px); }
.section-intro { margin-top: 22px; max-width: 40rem; font-size: 1.1rem; color: var(--ink-soft); }

.list-title {
    font-family: var(--font-mono);
    font-weight: 500;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 14px;
}
.section--dark .list-title { color: var(--cream-soft); }

/* Steps */
.steps {
    list-style: none; margin: 0; padding: 0;
    display: grid; grid-template-columns: repeat(5, 1fr);
    border-top: 2px solid var(--ink);
}
.step { padding: 22px 22px 8px 0; position: relative; }
.step + .step { padding-left: 22px; border-left: 1px solid var(--line); }
.step__num { display: block; color: var(--accent); margin-bottom: 18px; }
.step h3 { margin-bottom: 8px; }
.step p { font-size: 0.95rem; color: var(--ink-soft); }

.battery__detail { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 5vw, 64px); margin-top: clamp(56px, 7vw, 88px); align-items: center; }
.battery__photo .photo { aspect-ratio: 4 / 3; }
.battery__lists { display: grid; gap: 34px; justify-items: start; }

.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: 8px 14px; border: 1.5px solid var(--ink); border-radius: 999px; font-weight: 500; font-size: 0.92rem; }

.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.checks li { position: relative; padding-left: 30px; }
.checks li::before {
    content: "";
    position: absolute; left: 0; top: 0.35em;
    width: 16px; height: 16px; border-radius: 50%;
    background: var(--signal);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='8'/%3E%3C/svg%3E");
}
.checks li::after {
    content: "";
    position: absolute; left: 5px; top: calc(0.35em + 4px);
    width: 6px; height: 4px;
    border-left: 2px solid #fff; border-bottom: 2px solid #fff;
    transform: rotate(-45deg);
}

/* Why it matters */
.why { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.why__head { position: sticky; top: 110px; margin-bottom: 0; }
.why__list { list-style: none; margin: 0; padding: 0; }
.why__list li { padding: 26px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 220px 1fr; gap: 20px; }
.why__list li:last-child { border-bottom: 1px solid var(--line); }
.why__list h3 { font-size: 1.35rem; }
.why__list p { color: var(--ink-soft); }

/* Program cards */
.cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card {
    background: #fbf8f2;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 28px 26px 30px;
    transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 18px 36px -24px rgba(20, 48, 42, 0.45); border-color: rgba(20, 48, 42, 0.28); }
.card h3 { margin-bottom: 10px; }
.card h3::before { content: ""; display: block; width: 26px; height: 3px; background: var(--accent); margin-bottom: 18px; border-radius: 2px; }
.card p { color: var(--ink-soft); font-size: 0.97rem; }

.programs__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; margin-top: 36px; }
.lang { display: flex; align-items: center; gap: 12px; font-weight: 500; }
.lang__badge { background: var(--ink); color: var(--cream); padding: 5px 10px; border-radius: 6px; }

/* Services (what we do) */
.services { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; counter-reset: svc; }
.service {
    --svc: var(--accent);
    position: relative;
    display: flex;
    flex-direction: column;
    background: #fbf8f2;
    border: 1px solid var(--line);
    border-top: 4px solid var(--svc);
    border-radius: var(--radius);
    padding: 26px clamp(22px, 3vw, 34px) 30px;
    transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.service:hover { transform: translateY(-3px); box-shadow: 0 20px 40px -26px rgba(20, 48, 42, 0.5); }
.service:nth-child(2) { --svc: #b8661a; }
.service:nth-child(3) { --svc: #1f6f78; }
.service:nth-child(4) { --svc: #2a8a5e; }
.service__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 22px; }
.service__num { color: var(--svc); font-size: 0.8rem; }
.service__status {
    font-size: 0.66rem;
    color: var(--ink-soft);
    background: var(--paper-2);
    border-radius: 999px;
    padding: 5px 10px;
    text-align: right;
}
.service h3 { font-size: clamp(1.45rem, 2.4vw, 1.9rem); margin-bottom: 12px; }
.service__text { color: var(--ink-soft); margin-bottom: 22px; }
.service .checks { gap: 10px; margin-bottom: 4px; }
.service .checks li { font-size: 0.97rem; }
.service .checks li::before { background: var(--svc); }
.service__link { margin-top: auto; padding-top: 22px; font-weight: 600; color: var(--svc); text-decoration: none; }
.service__link:hover { text-decoration: underline; }
.services__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; margin-top: 32px; }

/* Hero proof card (shown in place of a photo) */
.hero__visual:not(:has(.hero__photo)) { padding-bottom: 0; display: flex; align-items: center; }
.proofcard {
    width: 100%;
    max-width: 440px;
    margin-left: auto;
    background: var(--ink);
    color: var(--cream);
    border-radius: var(--radius-lg);
    padding: clamp(26px, 3.5vw, 40px);
    box-shadow: 0 30px 60px -28px rgba(20, 48, 42, 0.55);
}
.hero__photo + .proofcard { position: absolute; left: clamp(-40px, -3vw, -16px); bottom: 0; width: min(360px, 86%); margin: 0; }
.proofcard__label { display: flex; align-items: center; gap: 10px; color: var(--signal); font-size: 0.7rem; }
.proofcard__value {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(4.5rem, 9vw, 7rem);
    line-height: 0.9;
    letter-spacing: -0.05em;
    margin: 18px 0 14px;
    color: var(--cream);
}
.proofcard__text { color: var(--cream-soft); font-size: 1.05rem; line-height: 1.45; max-width: 26ch; }
.proofcard__links { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--cream-line); font-size: 0.9rem; }
.proofcard__links a { color: var(--cream); }
.proofcard__links a + a { color: var(--cream-soft); }

.proof__inner--partners { grid-template-columns: 1fr; }
.proof__inner--partners .proof__trusted { justify-content: flex-start; }

.services__note { margin-top: 26px; max-width: 46rem; color: var(--ink-soft); font-size: 0.98rem; padding-left: 16px; border-left: 3px solid var(--paper-3); }

/* Why band: one paragraph section */
.why-band__inner { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(24px, 5vw, 80px); align-items: start; }
.why-band__title { font-size: clamp(1.8rem, 3.4vw, 2.6rem); max-width: 14ch; }
.why-band__body p { font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.55; color: var(--ink); }
.why-band__body p + p { margin-top: 18px; color: var(--ink-soft); }

.case__grid.case__grid--solo { grid-template-columns: 1fr; }
.case__grid--solo .case__story.case__story { display: grid; grid-template-columns: 1fr 1fr; gap: 0 clamp(32px, 5vw, 72px); max-width: none; }
.case__grid--solo .case__story > :nth-child(1), .case__grid--solo .case__story > :nth-child(2) { grid-column: 1; }
.case__grid--solo .case__story > :nth-child(3), .case__grid--solo .case__story > :nth-child(4) { grid-column: 2; }
.case__grid--solo .case__story > :nth-child(3) { grid-row: 1; }
.case__grid--solo .case__story > :nth-child(4) { grid-row: 2; }
.case__grid--solo .case__where { grid-column: 1 / -1; }

.partner__grid.partner__grid--solo { grid-template-columns: auto 1fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
.partner__grid--solo .partner__p { max-width: 44rem; }
.flag.flag--inline { position: relative; top: 0; right: auto; width: 40px; height: 108px; margin-top: 6px; }

/* Case study */
.stats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--cream-line); border-bottom: 1px solid var(--cream-line); }
.stats li { padding: 28px 22px 26px 0; }
.stats li + li { padding-left: 22px; border-left: 1px solid var(--cream-line); }
.stats strong {
    display: block;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(2.2rem, 4.2vw, 3.4rem);
    letter-spacing: -0.04em;
    line-height: 1;
    color: var(--cream);
    margin-bottom: 10px;
}
.stats span { color: var(--cream-soft); font-size: 0.95rem; line-height: 1.4; display: block; }
.stats__note { margin-top: 14px; color: var(--cream-soft); font-size: 0.68rem; }

.case__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 5vw, 72px); margin-top: clamp(48px, 6vw, 80px); align-items: start; }
.case__story p { color: var(--cream-soft); margin-bottom: 30px; max-width: 42rem; }
.case__story .checks { margin-bottom: 30px; color: var(--cream); }
.case__story .checks li::after { border-color: var(--ink); }
.case__where { font-style: italic; }
.case__photo .photo { aspect-ratio: 4 / 5; }
.section--dark .photo--pending { background: repeating-linear-gradient(135deg, transparent 0 14px, rgba(245, 240, 230, 0.05) 14px 15px), var(--ink-2); border-color: rgba(245, 240, 230, 0.3); color: var(--cream-soft); }
.section--dark .photo-tag { background: var(--cream); color: var(--ink); }

.quotes { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: clamp(48px, 6vw, 72px); }
.quote { margin: 0; padding: 30px 30px 26px; border-radius: var(--radius); background: var(--ink-2); border: 1px solid var(--cream-line); }
.quote blockquote { margin: 0 0 22px; font-family: var(--font-display); font-weight: 500; font-size: clamp(1.15rem, 1.8vw, 1.4rem); line-height: 1.3; letter-spacing: -0.01em; }
.quote figcaption { font-size: 0.9rem; color: var(--cream-soft); }
.quote figcaption strong { display: block; color: var(--cream); font-weight: 600; }

.press { margin-top: 48px; }
.press__label { color: var(--cream-soft); margin-bottom: 12px; }
.press ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--cream-line); }
.press li { border-bottom: 1px solid var(--cream-line); }
.press a { display: grid; grid-template-columns: 260px 1fr; gap: 16px; padding: 18px 0; text-decoration: none; transition: color 0.15s, padding 0.2s var(--ease); }
.press a:hover { color: #f08a5d; padding-left: 8px; }
.press__outlet { color: var(--cream-soft); font-size: 0.9rem; }
.press__title { font-weight: 600; }
.attribution { margin-top: 28px; font-size: 0.85rem; color: var(--cream-soft); max-width: 46rem; }

/* Partner */
.partner__grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.partner__photo { position: relative; }
.partner__photo .photo { aspect-ratio: 3 / 4; }
.flag {
    position: absolute;
    top: -26px; right: 18%;
    width: 46px; height: 120px;
    background: var(--accent);
    clip-path: polygon(0 0, 100% 6%, 78% 100%, 0 100%);
    box-shadow: inset 6px 0 0 var(--ink);
    transform-origin: left top;
    animation: sway 5s ease-in-out infinite;
    z-index: 2;
}
.partner h2 { margin-bottom: 26px; }
.partner__p { color: var(--ink-soft); margin-bottom: 16px; max-width: 38rem; }
.partner__points { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.partner__points li { border-top: 2px solid var(--ink); padding-top: 16px; }
.partner__points h3 { font-size: 1.02rem; margin-bottom: 6px; }
.partner__points p { font-size: 0.92rem; color: var(--ink-soft); }

/* How we work */
.loop { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: loop; }
.loop li { position: relative; background: var(--paper); border-radius: var(--radius); padding: 26px 24px 28px; border: 1px solid var(--line); }
.loop li:not(:last-child)::after {
    content: "→";
    position: absolute; right: -14px; top: 26px;
    width: 24px; height: 24px; line-height: 22px; text-align: center;
    background: var(--accent); color: #fff; border-radius: 50%; font-size: 0.8rem;
    z-index: 1;
}
.loop .mono { display: block; font-size: 0.85rem; color: var(--accent); margin-bottom: 12px; }
.loop p { color: var(--ink-soft); font-size: 0.97rem; }
.how__tech { margin-top: 36px; max-width: 46rem; font-size: 1.1rem; padding-left: 20px; border-left: 3px solid var(--signal); }

/* Team */
.team { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.member__photo { aspect-ratio: 1 / 1; border-radius: var(--radius); margin-bottom: 18px; min-height: 0; object-fit: cover; width: 100%; }
.member h3 { font-size: 1.3rem; }
.member__role { color: var(--accent); margin: 6px 0 10px; }
.member p { color: var(--ink-soft); font-size: 0.95rem; }
.member__pending { font-style: italic; }

/* Contact */
.forms { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form { background: var(--cream); color: var(--ink); border-radius: var(--radius-lg); padding: clamp(24px, 3.5vw, 40px); display: grid; gap: 14px; align-content: start; }
.form h3 { font-size: 1.5rem; }
.form__intro { color: var(--ink-soft); margin-bottom: 6px; }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: 0.88rem; }
.form input, .form textarea {
    font: inherit; font-weight: 400; font-size: 1rem;
    color: var(--ink);
    background: #fff;
    border: 1.5px solid var(--line);
    border-radius: 10px;
    padding: 12px 14px;
    width: 100%;
    transition: border-color 0.15s;
}
.form input:focus, .form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(200, 70, 31, 0.15); }
.form textarea { resize: vertical; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form .btn { justify-self: start; margin-top: 6px; }
.contact__direct { margin-top: 32px; color: var(--cream-soft); }
.contact__direct a { color: var(--cream); }

/* Footer */
.site-footer { background: var(--paper-3); padding: 48px 0; }
.site-footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; align-items: flex-end; }
.site-footer p { margin-top: 10px; color: var(--ink-soft); max-width: 34rem; font-size: 0.95rem; }
.site-footer__meta { text-align: right; }
.site-footer__meta p { margin-top: 2px; }

/* ---------- Motion ---------- */

@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(52, 178, 123, 0.55); } 70% { box-shadow: 0 0 0 10px rgba(52, 178, 123, 0); } 100% { box-shadow: 0 0 0 0 rgba(52, 178, 123, 0); } }
@keyframes sway { 0%, 100% { transform: skewY(0deg); } 50% { transform: skewY(-3deg); } }

.js-reveal .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.js-reveal .reveal.is-visible { opacity: 1; transform: none; }
.js-reveal .reveal:nth-child(2) { transition-delay: 0.07s; }
.js-reveal .reveal:nth-child(3) { transition-delay: 0.14s; }
.js-reveal .reveal:nth-child(4) { transition-delay: 0.21s; }
.js-reveal .reveal:nth-child(5) { transition-delay: 0.28s; }
.js-reveal .reveal:nth-child(6) { transition-delay: 0.35s; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
    .steps { grid-template-columns: repeat(3, 1fr); }
    .step:nth-child(4) { padding-left: 0; border-left: 0; }
    .step { padding-bottom: 22px; }
    .cards { grid-template-columns: repeat(2, 1fr); }
    .loop { grid-template-columns: repeat(2, 1fr); }
    .loop li:nth-child(2)::after { display: none; }
    .why { grid-template-columns: 1fr; }
    .why__head { position: static; }
    .proof__inner { grid-template-columns: 1fr; }
    .proof__trusted { justify-content: flex-start; }
}

@media (max-width: 860px) {
    .why-band__inner { grid-template-columns: 1fr; }
    .case__grid--solo .case__story.case__story { display: block; }
    .partner__grid.partner__grid--solo { grid-template-columns: 1fr; }
    .flag.flag--inline { display: none; }
    .proofcard { margin-left: 0; max-width: none; }
    .services { grid-template-columns: 1fr; }
    .nav-toggle {
        display: inline-flex; align-items: center; justify-content: center;
        width: 44px; height: 44px;
        background: transparent; border: 0; cursor: pointer; color: var(--ink);
    }
    .nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after {
        display: block; width: 22px; height: 2px; background: currentColor; position: relative; transition: transform 0.2s var(--ease), opacity 0.2s;
    }
    .nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
    .nav-toggle__bars::before { top: -7px; }
    .nav-toggle__bars::after { top: 7px; }
    .is-open .nav-toggle__bars { background: transparent; }
    .is-open .nav-toggle__bars::before { transform: translateY(7px) rotate(45deg); }
    .is-open .nav-toggle__bars::after { transform: translateY(-7px) rotate(-45deg); }

    .nav-links {
        position: absolute; top: 72px; left: 0; right: 0;
        flex-direction: column; align-items: stretch; gap: 0;
        background: var(--paper);
        border-bottom: 1px solid var(--line);
        padding: 8px var(--gutter) 20px;
        display: none;
    }
    .is-open .nav-links { display: flex; }
    .nav-links a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
    .nav-links .btn { margin-top: 16px; }

    .hero__grid, .battery__detail, .case__grid, .partner__grid, .forms, .quotes { grid-template-columns: 1fr; }
    .hero__visual { max-width: 520px; }
    .runsheet { left: auto; right: 0; }
    .stats { grid-template-columns: 1fr 1fr; }
    .stats li:nth-child(3) { padding-left: 0; border-left: 0; }
    .stats li:nth-child(n+3) { border-top: 1px solid var(--cream-line); }
    .partner__points { grid-template-columns: 1fr; }
    .team { grid-template-columns: repeat(2, 1fr); }
    .why__list li { grid-template-columns: 1fr; gap: 6px; }
    .press a { grid-template-columns: 1fr; gap: 4px; }
}

@media (max-width: 560px) {
    body { font-size: 16px; }
    .steps, .cards, .loop, .team { grid-template-columns: 1fr; }
    .step, .step + .step { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
    .step:first-child { border-top: 0; }
    .loop li::after { display: none; }
    .form__row { grid-template-columns: 1fr; }
    .proof__stat { flex-direction: column; align-items: flex-start; gap: 8px; }
    .runsheet { position: relative; width: 100%; margin-top: -40px; left: 0; }
    .hero__visual { padding-bottom: 0; }
    .site-footer__meta { text-align: left; }
    .actions .btn { flex: 1 1 100%; }
}
