/* ==========================================================================
   Apex Digital Lab — site styles
   Night hero (dark, default tokens) → daylight content (.daylight scope).
   ========================================================================== */

:root {
    /* night — hero, header-over-hero, footer */
    --bg:       #0A0C12;
    --text:     #F1F3F7;
    --text-dim: #99A1B2;
    --line:     #2C3340;
    --warm:     #FFCB8E;
    --warm-hi:  #FFF1D6;

    --font:         "Switzer", system-ui, -apple-system, sans-serif;
    --font-display: "Clash Display", "Switzer", system-ui, sans-serif;

    --wrap:    1200px;
    --wrap-sm: 820px;
    --gutter:  clamp(1.25rem, 4vw, 3rem);
    --section: clamp(5rem, 10vw, 9rem);
    --radius:  16px;
}

/* daylight — everything below the hero */
.daylight {
    --bg:        #F6F3ED;
    --text:      #16191F;
    --text-dim:  #585F6E;
    --line:      #E4DFD4;
    --card:      #FFFFFF;
    --card-line: #EBE6DB;
    --warm:      #C9761B;
    --warm-hi:   #A85F0E;
    background: var(--bg);
    color: var(--text);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

/* scroll is locked until the hero intro completes (index only) */
body.locked { overflow: hidden; height: 100vh; }

a { color: inherit; text-decoration: none; }
img, svg, canvas { display: block; }

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

.eyebrow {
    font-weight: 600;
    font-size: 0.82rem;
    letter-spacing: 0.04em;
    color: var(--warm);
    margin-bottom: 1rem;
}

h2.section-title {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(2rem, 4.4vw, 3.25rem);
    line-height: 1.04;
    letter-spacing: -0.03em;
}

.section-intro {
    max-width: 56ch;
    margin-top: 1.1rem;
    font-size: clamp(1.05rem, 1.4vw, 1.2rem);
    color: var(--text-dim);
}

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.22, 1, 0.36, 1); }
.reveal.in { opacity: 1; transform: none; }

/* --------------------------------------------------------------------------
   Scene + fallback (hero background)
   -------------------------------------------------------------------------- */

.scene { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; }
.fallback {
    display: none; position: fixed; inset: 0; z-index: 0;
    background:
        radial-gradient(70% 55% at 52% 32%, rgba(255, 203, 142, 0.16), transparent 60%),
        radial-gradient(120% 90% at 50% 120%, #11151E 0%, #0A0C12 70%);
}
.no-webgl .scene { display: none; }
.no-webgl .fallback { display: block; }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header {
    position: fixed; inset: 0 0 auto 0; z-index: 50;
    padding-block: 1.2rem;
    transition: background-color 0.4s ease, border-color 0.4s ease, color 0.4s ease;
    border-bottom: 1px solid transparent;
}
.site-header.scrolled {
    background: color-mix(in srgb, var(--bg) 86%, transparent);
    backdrop-filter: saturate(140%) blur(12px);
    border-bottom-color: var(--line);
}
/* header adopts the light palette once it sits over daylight content */
.site-header.over-day,
body.theme-light .site-header {
    --bg: #F6F3ED; --text: #16191F; --text-dim: #585F6E; --line: #E4DFD4; --warm: #C9761B;
    color: var(--text);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }

.brand { display: flex; align-items: flex-start; gap: 0.32rem; color: var(--text); }
.brand-mark { font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; letter-spacing: -0.01em; }
.brand-sub { font-size: 0.6rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-dim); transform: translateY(0.15em); }

.nav { display: flex; align-items: center; gap: clamp(1.1rem, 2.4vw, 2.2rem); }
.nav > a { font-size: 0.95rem; color: var(--text-dim); transition: color 0.2s ease; }
.nav > a:hover { color: var(--text); }
.nav-cta {
    color: var(--text) !important; padding: 0.5rem 1.05rem;
    border: 1px solid var(--line); border-radius: 999px;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}
.nav-cta:hover { border-color: var(--warm); background: color-mix(in srgb, var(--warm) 12%, transparent); }

.nav-toggle {
    display: none; width: 44px; height: 44px; margin-right: -8px; padding: 0;
    border: none; background: transparent; color: var(--text); cursor: pointer;
    align-items: center; justify-content: center; transition: color 0.2s ease;
}
.nav-toggle:hover { color: var(--warm); }
.nav-toggle .bars { position: relative; width: 22px; height: 14px; }
.nav-toggle .bars span {
    position: absolute; left: 0; width: 100%; height: 1.6px; border-radius: 2px;
    background: currentColor;
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), top 0.3s ease, opacity 0.2s ease;
}
.nav-toggle .bars span:nth-child(1) { top: 3px; }
.nav-toggle .bars span:nth-child(2) { top: 9px; }
.nav-toggle[aria-expanded="true"] .bars span:nth-child(1) { top: 6px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars span:nth-child(2) { top: 6px; transform: rotate(-45deg); }

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

.btn {
    -webkit-appearance: none; appearance: none;
    display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
    font-family: var(--font); font-weight: 600; font-size: 0.98rem;
    padding: 0.85rem 1.7rem; border-radius: 999px; border: 1px solid transparent;
    cursor: pointer; transition: transform 0.2s ease, background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}
.btn-primary { background: var(--warm); color: #1B1206; }
.daylight .btn-primary { color: #FFF7EE; }
.btn-primary:hover { background: var(--warm-hi); transform: translateY(-2px); }
/* ghost text intentionally inherits its container's color so it always contrasts;
   color:inherit is explicit because iOS Safari won't inherit color on <button> otherwise */
.btn-ghost { background-color: transparent; border-color: var(--line); color: inherit; }
.btn-ghost:hover { border-color: var(--text-dim); transform: translateY(-2px); }
.ai-panel .btn-ghost { border-color: #2C3340; }

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

.hero {
    position: relative; min-height: 100svh; display: flex;
    align-items: flex-end; justify-content: center;
    padding: 7rem var(--gutter) clamp(4rem, 11vh, 8rem);
}
.hero::after {
    content: ""; position: absolute; inset: auto 0 0 0; height: 60vh; z-index: 1;
    pointer-events: none;
    background: linear-gradient(to top, rgba(10, 12, 18, 0.95) 0%, rgba(10, 12, 18, 0.5) 42%, transparent 100%);
}
.hero-content { position: relative; z-index: 2; max-width: 860px; text-align: center; }

.wordmark {
    font-family: var(--font-display); font-weight: 700;
    font-size: clamp(4.5rem, 13vw, 10.5rem); line-height: 0.9; letter-spacing: -0.045em; color: var(--text);
}
.hero .lead {
    max-width: 50ch; margin: 1.5rem auto 0;
    font-size: clamp(1.05rem, 1.45vw, 1.25rem); color: var(--text-dim);
}
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.9rem; margin-top: 2.4rem; }

.scroll-cue {
    position: absolute; left: 50%; bottom: 1.8rem; transform: translateX(-50%); z-index: 2;
    display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
    font-size: 0.75rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-dim);
    opacity: 0; transition: opacity 0.8s ease;
}
.is-converged .scroll-cue { opacity: 1; }
.scroll-cue span.dot { width: 1px; height: 34px; background: linear-gradient(var(--warm), transparent); animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 0%,100% { opacity: 0.3; transform: scaleY(0.6); } 50% { opacity: 1; transform: scaleY(1); } }

/* intro reveal (hero text resolves after the climb settles) */
.site-header, .wordmark, .hero .lead, .hero-actions { opacity: 0; transform: translateY(14px); }
.site-header { transform: translateY(-10px); }
.is-converged .site-header { animation: rise 1s cubic-bezier(0.22,1,0.36,1) 0.1s forwards; }
.is-converged .wordmark    { animation: rise 1.1s cubic-bezier(0.22,1,0.36,1) forwards; }
.is-converged .hero .lead  { animation: rise 1.1s cubic-bezier(0.22,1,0.36,1) 0.2s forwards; }
.is-converged .hero-actions{ animation: rise 1.1s cubic-bezier(0.22,1,0.36,1) 0.35s forwards; }
@keyframes rise { to { opacity: 1; transform: translateY(0); } }

/* pages without the hero show the header immediately */
body.theme-light .site-header { opacity: 1; transform: none; animation: none; }

/* --------------------------------------------------------------------------
   Daybreak — first light section transitions out of the dark scene
   -------------------------------------------------------------------------- */

.daylight { position: relative; z-index: 2; }

.daybreak {
    position: relative;
    padding: clamp(9rem, 26vh, 20rem) var(--gutter) var(--section);
    background: linear-gradient(to bottom, #0A0C12 0%, #20222B 22%, #8A8174 60%, var(--bg) 100%);
    text-align: center;
}
.daybreak .wrap { display: flex; flex-direction: column; align-items: center; }
.daybreak .thesis {
    font-family: var(--font-display); font-weight: 600;
    font-size: clamp(2.2rem, 5.2vw, 4.25rem); line-height: 1.05; letter-spacing: -0.03em;
    max-width: 18ch; color: #FFF7EC;
}
.daybreak .thesis em { font-style: normal; color: var(--warm); }
.daybreak .thesis-sub { max-width: 52ch; margin-top: 1.6rem; font-size: clamp(1.05rem, 1.5vw, 1.25rem); color: #E9E2D5; }

/* --------------------------------------------------------------------------
   Generic section
   -------------------------------------------------------------------------- */

.section { padding-block: var(--section); }
.section, .daybreak, .hero, [id] { scroll-margin-top: 84px; }
.section-head { max-width: 60ch; margin-bottom: clamp(2.5rem, 5vw, 4rem); }

/* services */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.card {
    background: var(--card); border: 1px solid var(--card-line); border-radius: var(--radius);
    padding: 1.9rem; transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--warm) 40%, var(--card-line)); box-shadow: 0 18px 40px -28px rgba(20, 20, 30, 0.45); }
.card-icon { color: var(--warm-hi); margin-bottom: 1.05rem; }
.card-icon svg { width: 32px; height: 32px; }
.card h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; letter-spacing: -0.01em; margin-bottom: 0.55rem; }
.card p { color: var(--text-dim); font-size: 0.98rem; }

/* method */
.method-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.steps { display: flex; flex-direction: column; gap: 1.6rem; }
.step { display: grid; grid-template-columns: auto 1fr; gap: 1.1rem; align-items: start; }
.step-no { font-family: var(--font-display); font-weight: 600; color: var(--warm); font-size: 1.05rem; padding-top: 0.1rem; min-width: 2.2rem; }
.step h4 { font-size: 1.08rem; margin-bottom: 0.3rem; }
.step p { color: var(--text-dim); font-size: 0.96rem; }

.models { display: flex; flex-direction: column; gap: 1rem; }
.model {
    border: 1px solid var(--card-line); border-radius: 14px; padding: 1.3rem 1.4rem; background: var(--card);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.model:hover {
    transform: translateY(-4px);
    border-color: color-mix(in srgb, var(--warm) 40%, var(--card-line));
    box-shadow: 0 18px 40px -28px rgba(20, 20, 30, 0.45);
}
.model h4 { font-size: 1.05rem; margin-bottom: 0.25rem; }
.model p { color: var(--text-dim); font-size: 0.94rem; }
.model .tag { float: right; font-size: 0.78rem; color: var(--warm-hi); font-weight: 600; }

/* capabilities */
.cap-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1.5rem, 4vw, 3rem) clamp(2rem, 6vw, 5rem); }
.cap-block h4 { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; margin-bottom: 0.9rem; }
.chips { display: flex; flex-wrap: wrap; gap: 0.55rem; }
.chip {
    font-size: 0.86rem; padding: 0.4rem 0.85rem; border-radius: 999px;
    border: 1px solid var(--card-line); background: var(--card); color: var(--text-dim);
    transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}
.chip:hover {
    color: var(--text);
    border-color: color-mix(in srgb, var(--warm) 55%, var(--card-line));
    background: color-mix(in srgb, var(--warm) 10%, var(--card));
    transform: translateY(-2px);
}
.stance { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 2.6rem; }
.stance .pill {
    font-weight: 600; font-size: 0.9rem; padding: 0.55rem 1.1rem; border-radius: 999px;
    background: color-mix(in srgb, var(--warm) 13%, transparent); color: var(--warm-hi);
    border: 1px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}
.stance .pill:hover {
    border-color: color-mix(in srgb, var(--warm) 55%, transparent);
    background: color-mix(in srgb, var(--warm) 20%, transparent);
    transform: translateY(-2px);
}

/* products */
.product {
    display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: center;
    background: var(--card); border: 1px solid var(--card-line); border-radius: var(--radius); padding: clamp(1.8rem, 4vw, 3rem);
}
.badge { display: inline-block; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.03em; color: var(--warm-hi);
    background: color-mix(in srgb, var(--warm) 14%, transparent); padding: 0.3rem 0.7rem; border-radius: 999px; margin-bottom: 1rem; }
.product h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.5rem; margin-bottom: 0.6rem; }
.product p { color: var(--text-dim); max-width: 60ch; }

/* advanced AI — dark panel (a deliberate callback to the night hero) */
.ai-panel {
    --text: #F4F6FA; --text-dim: #A7AEBE; --warm: #FFCB8E; --warm-hi: #FFE3B0;
    position: relative; overflow: hidden; color: var(--text);
    background: radial-gradient(80% 60% at 86% -10%, rgba(255, 203, 142, 0.12), transparent 60%), #0C0E15;
    border: 1px solid #1E2330; border-radius: 24px;
    padding: clamp(2rem, 5vw, 4rem);
}
.ai-panel::before {
    content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.6;
    background: repeating-radial-gradient(circle at 86% 6%, rgba(138, 160, 208, 0.07) 0 1px, transparent 1px 26px);
    -webkit-mask-image: linear-gradient(to bottom, #000, transparent 78%);
            mask-image: linear-gradient(to bottom, #000, transparent 78%);
}
.ai-panel-head { position: relative; max-width: 60ch; margin-bottom: clamp(2rem, 4vw, 3rem); }
.ai-panel-head h2, .ai-panel-head .section-intro { color: inherit; }
.ai-panel-head .section-intro { color: var(--text-dim); }
.ai-grid { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem 2.2rem; }
.ai-item { border-top: 1px solid #242B3B; padding-top: 1.1rem; }
.ai-item h4 { display: flex; align-items: center; gap: 0.55rem; font-size: 1.05rem; margin-bottom: 0.4rem; }
.ai-item h4::before { content: ""; width: 7px; height: 7px; border-radius: 2px; background: var(--warm); }
.ai-item p { color: var(--text-dim); font-size: 0.95rem; }
.ai-panel .btn-primary { color: #1B1206; }

/* grey corner squares (top-right + bottom-left) with a slow reflection wave.
   squares are masked by a soft radial falloff so the field dims out — no rectangle. */
.ai-panel > *:not(.ai-fx) { position: relative; z-index: 1; }
.ai-fx { position: absolute; inset: 0; z-index: 0; pointer-events: none; border-radius: inherit; overflow: hidden; }
.ai-fx::before, .ai-fx::after {
    content: ""; position: absolute; width: min(54%, 400px); height: min(68%, 320px);
    background-repeat: no-repeat;
    background-size: 100% 100%, 100% 100%;
    mask-repeat: repeat, no-repeat;
    mask-size: 20px 20px, 100% 100%;
    mask-composite: intersect;
    animation: ai-wave 7s ease-out infinite;
}
.ai-fx::before {
    top: 0; right: 0; background-position: 100% 0%;
    background-image:
        radial-gradient(circle at 100% 0%, transparent 24%, rgba(214, 226, 246, 0.55) 40%, transparent 58%),
        radial-gradient(circle at 100% 0%, rgba(168, 182, 208, 0.13), transparent 58%);
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20'%3E%3Crect x='3' y='3' width='5' height='5' fill='%23000'/%3E%3C/svg%3E"), radial-gradient(125% 125% at 100% 0%, #000 6%, transparent 70%);
}
.ai-fx::after {
    bottom: 0; left: 0; background-position: 0% 100%; animation-delay: -3.5s;
    background-image:
        radial-gradient(circle at 0% 100%, transparent 24%, rgba(214, 226, 246, 0.55) 40%, transparent 58%),
        radial-gradient(circle at 0% 100%, rgba(168, 182, 208, 0.13), transparent 58%);
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20'%3E%3Crect x='3' y='3' width='5' height='5' fill='%23000'/%3E%3C/svg%3E"), radial-gradient(125% 125% at 0% 100%, #000 6%, transparent 70%);
}
@keyframes ai-wave {
    0%   { background-size: 28% 28%, 100% 100%; }
    100% { background-size: 240% 240%, 100% 100%; }
}

/* principles + FAQ */
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-bottom: clamp(3rem, 7vw, 5rem); }
.principle h4 { display: flex; align-items: center; gap: 0.6rem; font-size: 1.05rem; margin-bottom: 0.4rem; }
.principle h4::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--warm); }
.principle p { color: var(--text-dim); font-size: 0.96rem; }

.faq-list { border-top: 1px solid var(--card-line); }
.faq-item { border-bottom: 1px solid var(--card-line); }
.faq-q {
    width: 100%; background: none; border: none; cursor: pointer; text-align: left;
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    padding: 1.4rem 0; font-family: var(--font); font-weight: 600; font-size: 1.08rem; color: var(--text);
}
.faq-q svg { width: 20px; height: 20px; flex: none; color: var(--warm-hi); transition: transform 0.3s ease; }
.faq-item.open .faq-q svg { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
.faq-a-inner { padding-bottom: 1.4rem; color: var(--text-dim); max-width: 70ch; }

/* contact */
.contact-card {
    background: var(--card); border: 1px solid var(--card-line); border-radius: var(--radius);
    padding: clamp(2rem, 5vw, 3.5rem); display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center;
}
.contact-card h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.8rem, 3.6vw, 2.6rem); letter-spacing: -0.02em; }
.contact-card p { color: var(--text-dim); margin-top: 0.8rem; }
.contact-list { display: flex; flex-direction: column; gap: 1.1rem; }
.contact-row .label { font-size: 0.78rem; letter-spacing: 0.04em; color: var(--warm-hi); font-weight: 600; }
.contact-row .value { font-size: 1.05rem; }
.placeholder { color: var(--text-dim); font-style: italic; }

/* --------------------------------------------------------------------------
   Footer (dark — uses root tokens)
   -------------------------------------------------------------------------- */

.footer { position: relative; z-index: 2; background: #07080B; color: var(--text); padding-block: clamp(3.5rem, 7vw, 5.5rem); }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; }
.footer .brand-mark { color: var(--text); }
.footer p { color: var(--text-dim); font-size: 0.95rem; max-width: 38ch; margin-top: 1rem; }
.footer h5 { font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 1rem; }
.footer-links { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-links a { color: var(--text); font-size: 0.95rem; opacity: 0.85; }
.footer-links a:hover { opacity: 1; color: var(--warm); }
.footer-legal { border-top: 1px solid #1A1D26; margin-top: 3rem; padding-top: 1.6rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; color: var(--text-dim); font-size: 0.86rem; }
.eu-flag { display: inline-block; width: 21px; height: 14px; vertical-align: -2px; margin-right: 0.5rem; border-radius: 3px; }

/* --------------------------------------------------------------------------
   Cookie banner
   -------------------------------------------------------------------------- */

.cookie {
    position: fixed; left: 50%; bottom: 1.2rem; transform: translateX(-50%) translateY(140%);
    z-index: 100; width: min(680px, calc(100% - 2rem));
    background: #0E1118; color: #F1F3F7; border: 1px solid #232838; border-radius: 16px;
    padding: 1.3rem 1.4rem; box-shadow: 0 30px 70px -30px rgba(0,0,0,0.7);
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.cookie.show { transform: translateX(-50%) translateY(0); }
.cookie p { font-size: 0.92rem; color: #C2C8D4; }
.cookie a { color: var(--warm); text-decoration: underline; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1rem; }
.cookie-actions .btn { padding: 0.6rem 1.2rem; font-size: 0.9rem; }
.cookie .btn-primary { color: #1B1206; }
.cookie .btn-ghost { background-color: #F1F3F7; border-color: #F1F3F7; color: #1B1206; }
.cookie .link-btn { background: none; border: none; color: #C2C8D4; cursor: pointer; font-family: var(--font); font-size: 0.9rem; text-decoration: underline; padding: 0.6rem 0.4rem; }

/* --------------------------------------------------------------------------
   Standalone pages (legal / dedicated) — light
   -------------------------------------------------------------------------- */

body.theme-light { background: #F6F3ED; color: #16191F; }
.page { padding: clamp(8rem, 14vh, 11rem) var(--gutter) var(--section); }
.page-head { max-width: 70ch; margin-bottom: clamp(2.5rem, 6vw, 4rem); }
.page-head h1 { font-family: var(--font-display); font-weight: 600; font-size: clamp(2.4rem, 5vw, 3.75rem); letter-spacing: -0.03em; line-height: 1.02; }
.page-head .updated { color: #585F6E; margin-top: 1rem; font-size: 0.95rem; }

.prose { max-width: 74ch; }
.prose h2 { font-family: var(--font-display); font-weight: 600; font-size: 1.5rem; letter-spacing: -0.01em; margin: 2.6rem 0 0.8rem; }
.prose h3 { font-size: 1.12rem; margin: 1.8rem 0 0.5rem; }
.prose p, .prose li { color: #3C424F; }
.prose p { margin-bottom: 1rem; }
.prose ul { margin: 0 0 1.2rem 1.2rem; }
.prose li { margin-bottom: 0.5rem; }
.prose a { color: var(--warm-hi); text-decoration: underline; }
.prose .note { background: #FBF3E6; border: 1px solid #EBDFC8; border-radius: 12px; padding: 1rem 1.2rem; font-size: 0.92rem; color: #6A5C3F; }

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

@media (max-width: 920px) {
    .cards, .principles, .ai-grid { grid-template-columns: repeat(2, 1fr); }
    .method-grid, .cap-grid, .contact-card, .product, .footer-top { grid-template-columns: 1fr; }
    .product { gap: 1.4rem; }
}
@media (max-width: 640px) {
    .cards, .principles, .ai-grid { grid-template-columns: 1fr; }
    .nav { display: none; }
    .nav.open {
        display: flex; flex-direction: column; align-items: stretch; gap: 0.4rem;
        position: absolute; top: calc(100% + 0.6rem); right: var(--gutter); left: var(--gutter);
        background: color-mix(in srgb, var(--bg) 96%, transparent); backdrop-filter: blur(14px);
        border: 1px solid var(--line); border-radius: 14px; padding: 0.8rem;
    }
    .nav.open > a { padding: 0.7rem 0.6rem; }
    .nav-toggle { display: inline-flex; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; transition: none; }
    .site-header, .wordmark, .hero .lead, .hero-actions { opacity: 1; transform: none; animation: none; }
    .scroll-cue span.dot { animation: none; }
    .ai-fx::before, .ai-fx::after { animation: none; }
    .btn:hover { transform: none; }
}
