/* ============================================================
   Softwine — Fractional CTO landing page
   Design system: "The Principal's Desk" (see DESIGN.md)
   Original brand identity: bright Signal Blue (#51a5d7) + Sage,
   white text on the blue bands (deliberate brand choice).
   ============================================================ */

:root {
    /* Brand hue, deepened so white text passes AA on dark surfaces */
    --blue-700: #51a5d7;   /* Signal Blue — original brand, hero / band surfaces */
    --blue-800: #3d8eb9;   /* original darker brand blue — band gradient end / hover */
    --blue-600: #3d8eb9;   /* links / actions on light (original brand family) */
    --blue-500: #51a5d7;   /* Signal Blue — accent, highlights, focus */
    --blue-300: #9fd0ec;   /* light blue accent on dark */

    --sage-500: #a0cd9a;   /* Sage — accent + CTA fill */
    --sage-400: #b4d9af;   /* sage hover (lighter) */
    --sage-700: #3f7d39;   /* sage text on light (AA) */

    --amber-700: #9a5e12;  /* founder audience marker (AA) */

    --ink-900: #16202b;    /* near-black headings */
    --ink-700: #33414d;    /* body text */
    --ink-500: #566571;    /* muted text (AA on white) */

    --surface-0: #ffffff;
    --surface-1: #f3f8fb;  /* blue-tinted section */
    --surface-2: #e9f2f8;  /* deeper blue tint */
    --border: #d8e3ea;
    --border-strong: #b9ccd8;

    /* Typography */
    --font-display: "Bricolage Grotesque", "Hanken Grotesk", system-ui, sans-serif;
    --font-body: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;

    /* Spacing scale */
    --sp-1: 0.5rem;
    --sp-2: 0.75rem;
    --sp-3: 1rem;
    --sp-4: 1.5rem;
    --sp-5: 2rem;
    --sp-6: 3rem;
    --sp-7: 4.5rem;
    --sp-8: 6.5rem;

    /* Radius */
    --r-xs: 4px;
    --r-sm: 8px;
    --r-icon: 12px;
    --r-md: 14px;
    --r-lg: 22px;
    --r-pill: 999px;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(15, 76, 110, 0.06), 0 2px 8px rgba(15, 76, 110, 0.05);
    --shadow-md: 0 6px 20px rgba(15, 76, 110, 0.10);
    --shadow-lg: 0 18px 48px rgba(15, 76, 110, 0.16);

    /* Motion */
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);   /* ease-out-quint-ish */
    --dur: 0.4s;

    /* Z-index scale */
    --z-sticky: 100;
    --z-chat: 600;

    --maxw: 1140px;
    --measure: 68ch;
}

* { box-sizing: border-box; }

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

img {
    max-width: 100%;
    height: auto;
}

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--ink-700);
    background: var(--surface-0);
    line-height: 1.65;
    font-size: 1.0625rem;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

.container {
    width: min(92%, var(--maxw));
    margin-inline: auto;
}

h1, h2, h3, h4 {
    font-family: var(--font-display);
    color: var(--ink-900);
    line-height: 1.08;
    letter-spacing: -0.02em;
    text-wrap: balance;
    margin: 0 0 0.5em;
}

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--blue-600); }

:focus-visible {
    outline: 3px solid var(--blue-500);
    outline-offset: 2px;
    border-radius: var(--r-xs);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--sage-700);
    letter-spacing: 0;
    margin: 0 0 0.9rem;
}
.eyebrow::before {
    content: "";
    width: 1.6rem;
    height: 2px;
    background: var(--sage-700);
    border-radius: var(--r-pill);
}

.lede {
    font-size: clamp(1.1rem, 1.4vw, 1.3rem);
    color: var(--ink-700);
    max-width: var(--measure);
}

.section {
    padding: clamp(3.5rem, 7vw, 6.5rem) 0;
    scroll-margin-top: 70px;
}
.section--tint { background: var(--surface-1); }
.section--tint2 { background: var(--surface-2); }

.section-head { max-width: 46rem; margin-bottom: var(--sp-6); }
.section-head h2 {
    font-size: clamp(1.9rem, 3.6vw, 2.9rem);
    color: var(--blue-500);   /* original Signal Blue section headings */
}
.section-head .lede { margin-top: 0.5rem; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1rem;
    line-height: 1;
    padding: 0.95rem 1.5rem;
    border-radius: var(--r-pill);
    border: 1.5px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.2s var(--ease-out), background 0.2s var(--ease-out),
                box-shadow 0.2s var(--ease-out), border-color 0.2s var(--ease-out);
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
    background: var(--sage-500);
    color: var(--ink-900);          /* dark text on sage = AA (fixes white-on-sage) */
    box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--sage-400); box-shadow: var(--shadow-md); }

.btn-ghost {
    background: transparent;
    color: var(--surface-0);
    border-color: rgba(255, 255, 255, 0.45);
}
.btn-ghost:hover { border-color: var(--surface-0); background: rgba(255, 255, 255, 0.08); }

.btn-outline {
    background: transparent;
    color: var(--blue-600);
    border-color: var(--border-strong);
}
.btn-outline:hover { border-color: var(--blue-600); background: var(--surface-1); }

/* ---------- Sticky header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: var(--z-sticky);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: saturate(150%) blur(10px);
    border-bottom: 1px solid var(--border);
}
.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 68px;
}
.brand-logo { display: flex; align-items: center; }
.brand-logo img { height: 34px; width: auto; display: block; }

.site-nav { display: flex; align-items: center; gap: 1.5rem; }
.site-nav ul {
    display: flex;
    gap: 1.4rem;
    list-style: none;
    margin: 0;
    padding: 0;
}
.site-nav a {
    color: var(--ink-700);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.97rem;
    transition: color 0.2s;
}
.site-nav a:hover { color: var(--blue-600); }
.nav-cta { padding: 0.6rem 1.1rem; }

.nav-toggle { display: none; }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    background:
        radial-gradient(120% 120% at 85% -10%, rgba(81, 165, 215, 0.35), transparent 55%),
        linear-gradient(160deg, var(--blue-700), var(--blue-800));
    color: #ffffff;
    padding: clamp(3.5rem, 8vw, 7rem) 0 clamp(3.5rem, 7vw, 6rem);
    overflow: hidden;
}
.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255,255,255,0.05) 1px, transparent 1px);
    background-size: 22px 22px;
    mask-image: linear-gradient(to bottom, black, transparent 70%);
    pointer-events: none;
}
.hero .container { position: relative; z-index: 1; max-width: 60rem; }

.hero-credential {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    font-weight: 600;
    font-size: 0.95rem;
    color: #ffffff;
    margin-bottom: 1.3rem;
}
.hero-credential .dot { color: var(--sage-500); }
.hero-credential .pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.16);
    padding: 0.3rem 0.7rem;
    border-radius: var(--r-pill);
    color: #ffffff;
}

.hero h1 {
    color: #ffffff;
    font-size: clamp(2.4rem, 5.4vw, 4.2rem);
    letter-spacing: -0.03em;
    margin-bottom: 0.6em;
    max-width: 16ch;
}
.hero h1 .accent { color: var(--sage-500); }

.hero .lede {
    color: #ffffff;
    font-size: clamp(1.15rem, 1.7vw, 1.4rem);
    max-width: 46ch;
    margin-bottom: 2rem;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; align-items: center; }

.hero-trust {
    margin-top: 2.4rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem 1.5rem;
    align-items: center;
    font-size: 0.9rem;
    color: #ffffff;
}
.hero-trust span { display: inline-flex; align-items: center; gap: 0.5rem; }
.hero-trust i { color: var(--sage-500); }

/* ---------- Roles (what the CTO role includes) ---------- */
.roles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--sp-4);
}
.role {
    background: var(--surface-0);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    padding: var(--sp-5);
    transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
}
.role:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.role-icon {
    width: 52px; height: 52px;
    display: grid; place-items: center;
    border-radius: 12px;
    background: var(--surface-2);
    color: var(--blue-600);
    font-size: 1.3rem;
    margin-bottom: 1.1rem;
}
.role h3 { font-size: 1.4rem; color: var(--blue-700); }
.role p { color: var(--ink-700); margin-bottom: 0; }
.role .role-detail {
    margin-top: 1rem;
    font-size: 0.92rem;
    color: var(--ink-500);
    border-top: 1px solid var(--border);
    padding-top: 0.85rem;
}

/* ---------- Build journey (replaces infra dump) ---------- */
.journey {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: var(--sp-4);
    counter-reset: step;
}
.journey-step {
    position: relative;
    padding-top: 1.5rem;
}
.journey-step::before {
    counter-increment: step;
    content: counter(step);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1rem;
    color: var(--blue-600);
    background: var(--surface-2);
    width: 2.2rem; height: 2.2rem;
    display: grid; place-items: center;
    border-radius: 50%;
    margin-bottom: 0.9rem;
}
.journey-step h3 { font-size: 1.2rem; color: var(--ink-900); }
.journey-step p { font-size: 0.98rem; color: var(--ink-700); margin-bottom: 0; }
.journey-note {
    margin-top: var(--sp-5);
    font-size: 0.95rem;
    color: var(--ink-500);
    max-width: var(--measure);
}

/* ---------- Audiences ---------- */
.audience-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--sp-4);
}
.audience {
    background: var(--surface-0);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    padding: var(--sp-5);
    display: flex;
    flex-direction: column;
    transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
}
.audience:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.tag {
    align-self: flex-start;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    padding: 0.25rem 0.7rem;
    border-radius: var(--r-pill);
    margin-bottom: 1rem;
}
.tag-startup { background: var(--surface-2); color: var(--blue-700); }
.tag-smb { background: #e7f3e4; color: var(--sage-700); }
.tag-founder { background: #fbf0dd; color: var(--amber-700); }
.audience h3 { font-size: 1.3rem; color: var(--ink-900); }
.audience p { color: var(--ink-700); flex-grow: 1; }
.audience .link {
    margin-top: 1rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--blue-600);
}
.audience .link:hover { text-decoration: underline; }

/* ---------- Portium feature ---------- */
.portium {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: var(--sp-6);
    align-items: center;
    background: linear-gradient(160deg, var(--blue-700), var(--blue-800));
    color: #ffffff;
    border-radius: var(--r-lg);
    padding: clamp(2rem, 4vw, 3.5rem);
    box-shadow: var(--shadow-lg);
}
.portium h2 { color: #ffffff; font-size: clamp(1.8rem, 3vw, 2.6rem); }
.portium .kicker { color: var(--sage-500); font-weight: 600; margin-bottom: 0.8rem; }
.portium p { color: #ffffff; }
.portium .portium-meta {
    display: flex; flex-wrap: wrap; gap: 0.5rem;
    margin: 1.4rem 0;
}
.portium .chip {
    font-size: 0.82rem;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.18);
    padding: 0.3rem 0.7rem;
    border-radius: var(--r-pill);
}
.portium-aside {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: var(--r-md);
    padding: var(--sp-5);
}
.portium-aside .big {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: #ffffff;
    margin-bottom: 0.5rem;
}
.portium-aside ul { list-style: none; margin: 0; padding: 0; }
.portium-aside li { display: flex; gap: 0.6rem; padding: 0.45rem 0; color: #ffffff; font-size: 0.96rem; }
.portium-aside li i { color: var(--sage-500); margin-top: 0.2rem; }

/* ---------- Story ---------- */
.story {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: var(--sp-6);
    align-items: start;
}
.story-photo img {
    width: 100%;
    max-width: 220px;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-md);
}
.story-photo .name { font-weight: 700; color: var(--ink-900); margin-top: 0.8rem; }
.story-photo .role-line { color: var(--ink-500); font-size: 0.95rem; }
.story blockquote {
    margin: 0 0 1.5rem;
    font-family: var(--font-display);
    font-size: clamp(1.3rem, 2.2vw, 1.7rem);
    line-height: 1.3;
    color: var(--blue-700);
    letter-spacing: -0.01em;
}
.story-content p { color: var(--ink-700); }
.story-content .link { font-weight: 600; text-decoration: none; }
.story-content .link:hover { text-decoration: underline; }

/* ---------- Proof / recommendations ---------- */
.proof-wall {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: var(--sp-4);
    align-items: start;
}
.quote {
    break-inside: avoid;
    background: var(--surface-0);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    padding: var(--sp-4);
    margin-bottom: var(--sp-4);
    box-shadow: var(--shadow-sm);
}
.quote p { color: var(--ink-700); font-size: 0.98rem; }
.quote .who { display: flex; align-items: center; gap: 0.7rem; margin-top: 0.9rem; }
.quote .avatar {
    width: 38px; height: 38px; border-radius: 50%;
    background: var(--surface-2); color: var(--blue-600);
    display: grid; place-items: center; font-weight: 700; font-size: 0.9rem;
    flex-shrink: 0;
}
.quote .who strong { display: block; color: var(--ink-900); font-size: 0.92rem; }
.quote .who span { color: var(--ink-500); font-size: 0.85rem; }
.proof-placeholder {
    border: 1px dashed var(--border-strong);
    background: transparent;
    color: var(--ink-500);
    box-shadow: none;
}

/* ---------- Recommendation wall: real screenshots, hover / tap to expand ---------- */
.rec {
    position: relative; /* anchor for the in-place hover preview */
    background: var(--surface-0);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    box-shadow: var(--shadow-sm);
}
.rec-shot {
    display: block;
    position: relative;
    overflow: hidden;
    cursor: zoom-in;
    border-radius: var(--r-md) var(--r-md) 0 0;
    border-bottom: 1px solid var(--border);
}
.rec-thumb {
    display: block;
    width: 100%;
    height: 200px;
    object-fit: cover;
    object-position: center top;
    background: var(--surface-2);
    transition: transform 0.5s var(--ease-out);
}
.rec-shot:hover .rec-thumb,
.rec-shot:focus-visible .rec-thumb { transform: scale(1.04); }
.rec-shot::after {
    content: "\f00e"; /* magnifying-glass-plus */
    font-family: "Font Awesome 6 Free"; font-weight: 900;
    position: absolute; bottom: 10px; inset-inline-end: 10px;
    width: 32px; height: 32px; border-radius: 50%;
    background: rgba(22, 32, 43, 0.62); color: #fff;
    display: grid; place-items: center; font-size: 0.85rem;
    opacity: 0; transition: opacity 0.2s;
}
.rec-shot:hover::after { opacity: 1; }
.rec-body { padding: var(--sp-4); }
.rec-body blockquote { margin: 0; color: var(--ink-700); font-size: 0.98rem; line-height: 1.55; }
.rec-who { margin-top: 0.9rem; display: flex; flex-direction: column; gap: 0.1rem; }
.rec-who strong { color: var(--ink-900); font-size: 0.92rem; }
.rec-who span { color: var(--ink-500); font-size: 0.85rem; }
.rec-who a { color: var(--blue-600); text-decoration: none; font-weight: 600; }
.rec-who a:hover { text-decoration: underline; }

/* Full-size preview on hover / keyboard focus — expands in place over the card */
.rec-full {
    position: absolute;
    top: 50%;
    left: 50%; /* physical, to pair with translateX(-50%) in both LTR and RTL */
    width: auto;
    height: auto;
    max-width: min(380px, 86vw);
    max-height: 82vh;
    border-radius: var(--r-md);
    box-shadow: 0 24px 70px rgba(10, 18, 26, 0.5);
    z-index: 700;
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, -50%) scale(0.94);
    transform-origin: center;
    transition: opacity 0.25s var(--ease-out), transform 0.25s var(--ease-out), visibility 0.25s;
    pointer-events: none;
}
.rec-shot:hover ~ .rec-full,
.rec-shot:focus-visible ~ .rec-full {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}
@media (prefers-reduced-motion: reduce) {
    .rec-thumb { transition: none; }
    .rec-shot:hover .rec-thumb, .rec-shot:focus-visible .rec-thumb { transform: none; }
    .rec-full { transition: opacity 0.2s; }
    .rec-shot:hover ~ .rec-full, .rec-shot:focus-visible ~ .rec-full { transform: translate(-50%, -50%); }
}
@media (hover: none) {
    /* Touch devices: no hover preview; tapping the shot opens the full image. */
    .rec-full { display: none; }
    .rec-shot::after { opacity: 1; }
}

/* ---------- Projects ---------- */
.project-group { margin-bottom: var(--sp-7); }
.project-group:last-child { margin-bottom: 0; }
.project-group > h2 {
    font-size: clamp(1.5rem, 2.6vw, 2.1rem);
    color: var(--blue-500);
    margin-bottom: 0.3rem;
    scroll-margin-top: 90px;
}
.project-group .group-note { color: var(--ink-500); margin-bottom: var(--sp-5); max-width: var(--measure); }
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
    gap: var(--sp-4);
}
.project-card {
    display: flex;
    flex-direction: column;
    background: var(--surface-0);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    padding: var(--sp-5);
    transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
}
.project-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.project-card h3 { font-size: 1.3rem; color: var(--blue-500); margin-bottom: 0.3rem; }
.project-card .client { font-size: 0.9rem; color: var(--ink-500); margin-bottom: 0.7rem; }
.project-card .role { color: var(--ink-700); margin-bottom: 0.8rem; }
.project-card .role strong { color: var(--sage-700); }
.project-card .overview { color: var(--ink-700); font-size: 0.98rem; }
.project-card ul { margin: 0.7rem 0 0; padding-inline-start: 1.1rem; color: var(--ink-700); font-size: 0.95rem; }
.project-card li { margin-bottom: 0.25rem; }
.stack { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0 0 1rem; }
.stack .t {
    font-size: 0.76rem;
    background: var(--surface-2);
    color: var(--ink-700);
    padding: 0.2rem 0.6rem;
    border-radius: var(--r-pill);
}

/* ---------- Blog strip ---------- */
.posts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--sp-4);
}
.post {
    display: flex;
    flex-direction: column;
    background: var(--surface-0);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    padding: var(--sp-4);
    text-decoration: none;
    transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out), border-color 0.2s;
}
.post:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--border-strong); }
.post .cat { font-size: 0.8rem; font-weight: 700; color: var(--sage-700); margin-bottom: 0.6rem; }
.post h3 { font-size: 1.18rem; color: var(--ink-900); margin-bottom: 0.6rem; }
.post .more { margin-top: auto; color: var(--blue-600); font-weight: 600; font-size: 0.92rem; }

/* ---------- FAQ ---------- */
.faq { max-width: 52rem; }
.faq details {
    border-bottom: 1px solid var(--border);
    padding: 1.1rem 0;
}
.faq summary {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.15rem;
    color: var(--ink-900);
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: "+";
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--blue-600);
    font-size: 1.5rem;
    line-height: 1;
    transition: transform 0.3s var(--ease-out);
}
.faq details[open] summary::after { content: "\2212"; } /* minus sign */
.faq details p { margin: 0.9rem 0 0; color: var(--ink-700); }

/* ---------- Final CTA ---------- */
.cta-band {
    background: linear-gradient(160deg, var(--blue-700), var(--blue-800));
    color: #ffffff;
    border-radius: var(--r-lg);
    padding: clamp(2.5rem, 5vw, 4rem);
    text-align: center;
}
.cta-band h2 { color: #ffffff; font-size: clamp(1.8rem, 3.4vw, 2.8rem); }
.cta-band .lede { color: #ffffff; margin: 0 auto 1.8rem; }
.cta-band .hero-actions { justify-content: center; }

/* ---------- Footer ---------- */
.site-footer {
    background: var(--blue-800);
    color: #ffffff;
    padding: var(--sp-6) 0 var(--sp-5);
    margin-top: var(--sp-7);
}
.footer-trust { text-align: center; padding-bottom: var(--sp-5); border-bottom: 1px solid rgba(255,255,255,0.12); }
.footer-trust .caption { font-size: 0.88rem; color: rgba(255, 255, 255, 0.82); max-width: 540px; margin: 0 auto 1.2rem; }
.footer-logos { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 1.5rem; }
.footer-logos img { height: 64px; width: auto; background: #ffffff; border-radius: 8px; padding: 6px 10px; }
.footer-logos .upcoming { display: none; }
.footer-bottom {
    display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem;
    padding-top: var(--sp-5);
    font-size: 0.9rem;
}
.footer-bottom a { color: #ffffff; }

/* ---------- Reveal animation ----------
   Content is ALWAYS visible by default (opacity:1, no transform).
   The entrance only plays when JS adds .is-visible, so a headless
   renderer or failed JS never ships a blank section. */
.reveal { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
    .js .reveal.is-visible { animation: revealUp 0.6s var(--ease-out) both; }
}
@keyframes revealUp {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: none; }
}

/* ---------- Hebrew / RTL ----------
   Bricolage/Hanken have no Hebrew glyphs; swap to Rubik + Heebo and
   drop the negative tracking that hurts Hebrew. dir="rtl" on <html>
   mirrors flex/grid and text alignment automatically. */
html[lang="he"] {
    --font-display: "Rubik", "Heebo", system-ui, sans-serif;
    --font-body: "Heebo", system-ui, -apple-system, sans-serif;
}
html[lang="he"] h1,
html[lang="he"] h2,
html[lang="he"] h3,
html[lang="he"] h4,
html[lang="he"] .hero h1 { letter-spacing: normal; }
html[lang="he"] .hero h1 { max-width: 22ch; }
html[lang="he"] .hero .lede,
html[lang="he"] .lede { max-width: 52ch; }
html[lang="he"] .lang-switch { font-family: var(--font-body); }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
    .portium { grid-template-columns: 1fr; }
    .story { grid-template-columns: 1fr; }
    .story-photo { display: flex; flex-direction: column; align-items: center; text-align: center; }
    .proof-wall { columns: 1; }
}

@media (max-width: 720px) {
    .nav-toggle {
        display: inline-flex;
        align-items: center; justify-content: center;
        width: 44px; height: 44px;
        background: transparent; border: 1px solid var(--border); border-radius: var(--r-icon);
        color: var(--ink-900); font-size: 1.2rem; cursor: pointer;
    }
    .site-nav {
        position: absolute;
        top: 100%; left: 0; right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: var(--surface-0);
        border-bottom: 1px solid var(--border);
        padding: 0.5rem 0 1rem;
        box-shadow: var(--shadow-md);
        display: none;
    }
    .site-nav.open { display: flex; }
    .site-nav ul { flex-direction: column; gap: 0; width: 100%; }
    .site-nav .container { display: block; }
    .site-nav a { display: block; padding: 0.8rem 6%; }
    .site-nav ul { padding: 0; }
    .site-nav li { width: 100%; }
    .nav-cta { margin: 0.6rem 6% 0; justify-content: center; }
}

/* ---------- Mobile carousels ----------
   On phones, turn the peer-card rows into swipeable scroll-snap carousels
   with a peek of the next card. CSS-only: no JS, no auto-advance, RTL-safe,
   and reduced-motion-safe (scrolling is user-driven). Journey and FAQ stay
   stacked. */
@media (max-width: 720px) {
    .roles-grid,
    .audience-grid,
    .posts,
    .project-grid {
        grid-template-columns: none;
        grid-auto-flow: column;
        grid-auto-columns: 86%;
        gap: var(--sp-3);
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-padding-inline-start: 0;
        padding-bottom: 0.6rem;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        overscroll-behavior-x: contain;
    }
    .roles-grid::-webkit-scrollbar,
    .audience-grid::-webkit-scrollbar,
    .posts::-webkit-scrollbar,
    .project-grid::-webkit-scrollbar { display: none; }

    .roles-grid > *,
    .audience-grid > *,
    .posts > *,
    .project-grid > * {
        scroll-snap-align: start;
    }

}

/* Accessibility: Skip link */
.skip-link {
    position: absolute;
    top: -50px;
    left: 0;
    background: var(--blue-700);
    color: white;
    padding: 8px 16px;
    z-index: 9999;
    font-weight: 600;
    text-decoration: none;
    border-radius: 0 0 4px 0;
}
.skip-link:focus {
    top: 0;
}
html[lang="he"] .skip-link {
    left: auto;
    right: 0;
    border-radius: 0 0 0 4px;
}
