/* ==========================================================================
   Homepage — v3
   ========================================================================== */

/* ---------- Hero ---------- */
.hero {
    position: relative; overflow: hidden;
    /* Cover the page grid in the hero; let it fade back in over the last 160px */
    background-image: linear-gradient(to bottom, var(--bg) 0%, var(--bg) calc(100% - 160px), rgba(252,252,250,0) 100%);
}
/* Text block — holds the VANTA dots so they stop above the product visual */
.hero-top { position: relative; padding: clamp(56px, 8vw, 104px) 0 clamp(56px, 7vw, 88px); }
.hero-vanta {
    position: absolute; inset: 0; z-index: 0; pointer-events: none;
    opacity: 0; transition: opacity 1.2s var(--ease);
    /* soft fade at the bottom edge of the text block */
    -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 62%, transparent 100%);
            mask-image: linear-gradient(to bottom, #000 0%, #000 62%, transparent 100%);
}
.hero-vanta.is-ready { opacity: 1; }
.hero-vanta canvas { display: block; }
.hero-copy { position: relative; z-index: 1; text-align: center; }
.hero-kicker {
    display: inline-flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px 14px;
    margin: 0; font-size: 14px; letter-spacing: -.005em; color: var(--muted);
}
.hero-kicker strong { font-weight: 500; color: var(--ink); }
.hero-kicker-rule { width: 28px; height: 1px; background: var(--line-2); }
.hero-kicker-loc { display: inline-flex; align-items: center; gap: 5px; }
.hero-kicker-loc i { color: var(--brand); font-size: 13px; }
.hero h1 { margin: 28px auto 0; max-width: 15ch; }
/* Typed tagline — v3.js types each sentence, backspacing only the part that changes.
   The caret is the right border of the emphasised span, so it always sits on the last
   letter and can never wrap onto a line of its own (which would shift the buttons). */
.hero-type { margin: 26px auto 0; max-width: 40rem; }
.hero-typer {
    margin: 0; text-align: center;
    font-size: clamp(1.15rem, 1.9vw, 1.45rem); line-height: 1.5; letter-spacing: -.012em;
    color: var(--muted);
}
.hero-typer-text { white-space: pre-wrap; }
.hero-typer .t-em {
    color: var(--ink); font-weight: 500;
    padding-right: 3px; border-right: 2px solid var(--brand);
    animation: caret-blink 1.05s steps(1) infinite;
}
.hero-typer.is-typing .t-em { animation: none; }          /* solid while typing, blinks when idle */
@keyframes caret-blink { 50% { border-right-color: transparent; } }
@media (prefers-reduced-motion: reduce) { .hero-typer .t-em { border-right: 0; padding-right: 0; animation: none; } }
.hero .btn-row { justify-content: center; margin-top: 36px; }
.hero-wa { display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 8px; font-size: 15px; font-weight: 500; color: var(--ink-2); transition: color .2s; }
.hero-wa svg { color: var(--wa); }
.hero-wa:hover { color: var(--ink); }
/* Hero link to the AI blog post */
.hero-news {
    display: inline-flex; align-items: center; gap: 10px; max-width: 100%; margin-top: 28px;
    padding: 5px 14px 5px 5px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line);
    box-shadow: var(--shadow-sm); font-size: 14px; color: var(--ink-2); text-align: left;
    transition: border-color .25s var(--ease), box-shadow .25s var(--ease), transform .25s var(--ease);
}
.hero-news:hover { border-color: var(--line-2); box-shadow: var(--shadow); transform: translateY(-1px); color: var(--ink); }
.hero-news-tag { display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0; height: 26px; padding: 0 10px 0 8px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 12px; font-weight: 600; letter-spacing: .01em; }
.hero-news-tag i { color: var(--brand); font-size: 14px; display: inline-block; transform-origin: 50% 80%; animation: hero-bot 6s ease-in-out 2.5s infinite; }
.hero-news:hover .hero-news-tag i { animation: hero-bot-hover .6s ease-in-out infinite; }
.hero-news-text { font-weight: 500; min-width: 0; }
.hero-news-ai { font-size: 1.45em; font-weight: 700; line-height: 1; letter-spacing: -.02em; color: #D92D20; vertical-align: -.08em; margin: 0 1px; }
.hero-news-arrow { color: var(--brand-ink); font-size: 14px; transition: transform .25s var(--ease); }
.hero-news:hover .hero-news-arrow { transform: translateX(3px); }
@keyframes hero-bot { 0%, 88%, 100% { transform: rotate(0); } 91% { transform: rotate(-16deg); } 94% { transform: rotate(14deg); } 97% { transform: rotate(-8deg); } }
@keyframes hero-bot-hover { 0%, 100% { transform: rotate(-12deg); } 50% { transform: rotate(12deg); } }
@media (prefers-reduced-motion: reduce) { .hero-news-tag i { animation: none !important; } }

/* Stage: the product visual */
.hero-stage { position: relative; z-index: 1; max-width: 1280px; margin: 0 auto; padding: 0 var(--gutter); }
.stage-panel {
    position: relative; border-radius: 28px 28px 0 0;
    background: linear-gradient(180deg, #F4F2ED 0%, #F7F6F2 100%);
    border: 1px solid var(--line); border-bottom: 0;
    padding: clamp(28px, 5vw, 64px) clamp(16px, 6vw, 88px) 0;
}
.browser {
    position: relative; max-width: 980px; margin: 0 auto;
    background: var(--surface); border: 1px solid var(--line-2); border-bottom: 0;
    border-radius: 14px 14px 0 0; overflow: hidden;
    box-shadow: 0 -1px 0 rgba(255,255,255,.8) inset, 0 40px 80px -40px rgba(20,20,20,.28), 0 12px 24px -12px rgba(20,20,20,.08);
}
.browser-bar { display: flex; align-items: center; gap: 14px; height: 44px; padding: 0 14px; border-bottom: 1px solid var(--line); background: #FBFBF9; }
.browser-dots { display: flex; gap: 6px; }
.browser-dots i { width: 10px; height: 10px; border-radius: 50%; background: #E3E2DD; display: block; }
.browser-url {
    flex: 1; max-width: 420px; margin: 0 auto; height: 28px; border-radius: 7px;
    background: var(--gray); display: flex; align-items: center; justify-content: center; gap: 6px;
    font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden;
}
.browser-url i { font-size: 11px; color: var(--faint); }
.browser-url b { color: var(--ink); font-weight: 500; }
.browser-bar .chip { flex-shrink: 0; }

.yt { position: relative; aspect-ratio: 16 / 9; background: #0f0f0f; cursor: pointer; }
.yt img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), filter .5s var(--ease); }
.yt:hover img { transform: scale(1.015); filter: brightness(.92); }
.yt-play {
    position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%);
    display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 22px 0 8px; border-radius: 999px;
    background: rgba(255,255,255,.96); color: var(--ink); font-size: 15px; font-weight: 500;
    box-shadow: 0 12px 32px -8px rgba(0,0,0,.35); transition: transform .3s var(--ease);
}
.yt-play span { width: 38px; height: 38px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-size: 20px; padding-left: 2px; }
.yt:hover .yt-play { transform: translate(-50%,-50%) scale(1.03); }
.yt-caption {
    position: absolute; left: 16px; bottom: 14px; display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 10px; border-radius: 8px; background: rgba(15,15,15,.62); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
    color: #fff; font-size: 12.5px; font-weight: 500;
}
.yt-caption svg { color: #FF3D3D; }
.yt-player { aspect-ratio: 16 / 9; background: #000; }
.yt-player iframe { width: 100%; height: 100%; border: 0; display: block; }

/* Floating annotation cards */
.float {
    position: absolute; z-index: 2; background: var(--surface); border: 1px solid var(--line);
    border-radius: 14px; box-shadow: var(--shadow-lg); padding: 14px 16px;
}
.float-label { font-size: 12px; color: var(--faint); font-weight: 500; margin-bottom: 10px; }
.float--stack { left: clamp(0px, 2vw, 32px); top: 38%; }
.float--stack ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.float--stack li { display: flex; align-items: center; gap: 10px; font-size: 13.5px; font-weight: 500; color: var(--ink-2); }
.float--stack img { width: 20px; height: 20px; object-fit: contain; }
.float--domain { right: clamp(0px, 2vw, 32px); top: 20%; width: 250px; }
.float--domain .d-row { display: flex; align-items: center; gap: 10px; }
.float--domain .d-ic { width: 34px; height: 34px; border-radius: 9px; background: var(--brand-tint); color: var(--brand-ink); display: grid; place-items: center; font-size: 16px; flex-shrink: 0; }
.float--domain .d-title { font-size: 13.5px; font-weight: 600; color: var(--ink); line-height: 1.25; }
.float--domain .d-sub { font-size: 12.5px; color: var(--muted); }
.float--domain .btn-row { margin-top: 12px; gap: 6px; }
.float--domain .btn { height: 34px; padding: 0 12px; font-size: 13px; border-radius: 8px; flex: 1; }

.stage-actions { display: none; }

/* ---------- Logos ---------- */
.logos { padding: 48px 0 0; }
.logos-label { text-align: center; font-size: 13.5px; color: var(--faint); margin-bottom: 8px; }

/* Marquee — track holds two identical sets and slides by exactly one set width */
.logos-marquee {
    position: relative; overflow: hidden;
    padding: 26px 0 40px;                    /* headroom for the zoom + name caption */
    -webkit-mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
            mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
}
.logos-track { display: flex; width: max-content; animation: logos-scroll 48s linear infinite; }
.logos-marquee:hover .logos-track, .logos-marquee:focus-within .logos-track { animation-play-state: paused; }
@keyframes logos-scroll { to { transform: translateX(-50%); } }
.logos-set { display: flex; align-items: center; gap: 60px; padding-right: 60px; }

/* Each logo scales by --s, set per item from the cursor distance in v3.js */
.logo-item {
    --s: 1;
    position: relative; display: grid; place-items: center; height: 44px;
    transform: scale(var(--s)); transform-origin: center center;
    transition: transform .22s cubic-bezier(.2,.7,.2,1);
    will-change: transform;
}
.logo-item img {
    height: 30px; width: auto; max-width: 92px; object-fit: contain;
    filter: grayscale(1); opacity: .72;
    transition: filter .3s var(--ease), opacity .3s var(--ease);
}
.logo-item.is-near img { filter: grayscale(.4); opacity: .9; }
.logo-item.is-hot img  { filter: none; opacity: 1; }
.logo-item::after {
    content: attr(data-name); position: absolute; top: 100%; left: 50%;
    transform: translate(-50%, -3px); white-space: nowrap;
    font-size: calc(11px / var(--s)); font-weight: 500; letter-spacing: .01em; color: var(--ink-2); /* counter-scaled: stays ~11px as the logo grows */
    opacity: 0; pointer-events: none; transition: opacity .2s var(--ease), transform .2s var(--ease);
}
.logo-item.is-hot::after { opacity: 1; transform: translate(-50%, 0); }

/* Reduced motion / no JS clone: a static, centred row (the pre-marquee layout) */
@media (prefers-reduced-motion: reduce) {
    .logos-marquee { -webkit-mask-image: none; mask-image: none; padding: 20px var(--gutter) 12px; }
    .logos-track { animation: none; width: auto; justify-content: center; }
    .logos-set { flex-wrap: wrap; justify-content: center; gap: 22px 44px; padding-right: 0; }
}

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(40px, 7vw, 104px); align-items: start; }
.about-loc { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--muted); margin-bottom: 20px; }
.about-loc i { color: var(--brand-ink); }
.about-text .eyebrow { margin-bottom: 20px; display: flex; }
.about-text .h-section .sub { display: block; font-family: var(--serif); font-style: normal; font-weight: 400; color: var(--brand-ink); font-size: .78em; letter-spacing: -.01em; margin-top: 8px; }
.about-text .body-lg { margin-top: 28px; }
.about-text .body-lg + .body-lg { margin-top: 16px; }
.about-text strong { color: var(--ink); font-weight: 600; }

/* Growth chart — stock-style, one series at a time (each on its own axis), no card:
   it sits straight on the page's graph-paper grid. Drawn by v3.js at real pixel size.
   Series colours: students = violet #4A3AA7, projects = orange #E2701A (validated pair). */
.growth { --ss: #4A3AA7; --sp: #E2701A; }   /* students = violet, projects = orange (validated pair) */
.growth-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.growth-flag {
    font-size: 11px; font-weight: 500; letter-spacing: .02em; color: var(--muted);
    padding: 3px 8px; border: 1px dashed var(--line-2); border-radius: 999px; background: var(--surface); cursor: help;
}
/* Two totals side by side: number (with colour key) on top, label below */
.growth-kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 16px; }
.growth-kpi { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.growth-kpi b { display: flex; align-items: center; gap: 10px; font-size: clamp(2rem, 3.4vw, 2.6rem); font-weight: 600; letter-spacing: -.045em; line-height: 1; }
.growth-kpi > span { font-size: 14px; color: var(--muted); }
.gk { width: 14px; height: 3px; border-radius: 2px; flex-shrink: 0; }
.gk--s { background: var(--ss); }
.gk--p { background: var(--sp); }
.growth-note { font-size: 12px; color: var(--faint); }
.growth-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.seg { display: inline-flex; padding: 3px; gap: 2px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow-sm); }
.seg button {
    border: 0; background: transparent; cursor: pointer; font: inherit; font-size: 13px; font-weight: 500;
    color: var(--muted); height: 30px; padding: 0 12px; border-radius: 7px;
    transition: background-color .2s var(--ease), color .2s var(--ease);
}
.seg button:hover { color: var(--ink); }
.seg button[aria-selected="true"], .seg button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.seg--ghost button[aria-pressed="true"] { background: var(--gray); color: var(--ink); }

.growth-chart { position: relative; margin-top: 14px; height: 280px; touch-action: pan-y; outline: none; }
.growth-chart svg { display: block; width: 100%; height: 100%; overflow: visible; }
.growth-chart .grid line { stroke: rgba(20,20,20,.08); stroke-width: 1; }
.growth-chart .axis text { fill: var(--faint); font-size: 11px; font-family: var(--font); }
.growth-chart .line { fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.growth-chart .ann line { stroke: var(--ink-2); stroke-width: 1; stroke-dasharray: 3 4; opacity: .45; }
.growth-chart .ann rect { fill: var(--ink); }
.growth-chart .ann text { fill: #fff; font-size: 10.5px; font-weight: 500; font-family: var(--font); }
.growth-chart .peak circle { stroke: var(--surface); stroke-width: 2; }
.growth-chart .peak rect { fill: var(--surface); stroke-width: 1; }
.growth-chart .peak text { fill: var(--ink); font-size: 10.5px; font-weight: 600; font-family: var(--font); }
.growth-chart .cross { stroke: var(--ink-2); stroke-width: 1; opacity: .35; }
.growth-chart .hot circle { stroke: var(--surface); stroke-width: 2.5; }
.growth-chart .hot { opacity: 0; transition: opacity .15s; }
.growth-chart.is-hover .hot { opacity: 1; }
.growth-chart:focus-visible { box-shadow: 0 0 0 2px var(--brand); border-radius: 8px; }
.growth-tip {
    position: absolute; top: 0; left: 0; z-index: 2; pointer-events: none; min-width: 120px;
    background: var(--ink); color: #fff; border-radius: 9px; box-shadow: var(--shadow);
    padding: 8px 11px; font-size: 12px; opacity: 0; transform: translateY(4px); transition: opacity .15s, transform .15s;
}
.growth-chart.is-hover .growth-tip { opacity: 1; transform: none; }
.growth-tip .tip-m { color: rgba(255,255,255,.6); margin-bottom: 3px; }
.growth-tip .tip-r { display: flex; align-items: center; gap: 7px; }
.growth-tip .tip-r i { width: 12px; height: 2px; border-radius: 2px; filter: brightness(1.6); }
.growth-tip .tip-r b { font-size: 14px; font-weight: 600; }
.growth-tip .tip-r span { color: rgba(255,255,255,.72); }
.growth-foot { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-top: 14px; font-size: 13.5px; color: var(--muted); }
.growth-foot b { color: var(--ink); font-weight: 600; margin-right: 3px; }

/* Draw-in: lines stroke in, markers fade after */
.growth-chart .line { stroke-dasharray: 1; stroke-dashoffset: 0; }
.growth-chart .fill, .growth-chart .ann, .growth-chart .peak { opacity: 1; }
.js .growth-chart.is-drawing .line { stroke-dashoffset: 1; transition: none; }
.js .growth-chart.is-drawing .fill, .js .growth-chart.is-drawing .ann, .js .growth-chart.is-drawing .peak { opacity: 0; transition: none; }
.js .growth-chart .line { transition: stroke-dashoffset 1.3s cubic-bezier(.3,.6,.2,1); }
.js .growth-chart .fill { transition: opacity .7s var(--ease) .6s; }
.js .growth-chart .ann, .js .growth-chart .peak { transition: opacity .45s var(--ease) 1.05s; }
@media (prefers-reduced-motion: reduce) { .js .growth-chart .line, .js .growth-chart .fill, .js .growth-chart .ann, .js .growth-chart .peak { transition: none !important; } }


/* Values — dark panel (matches the CTA block), with a faint light grid inside */
.values {
    position: relative; overflow: hidden; isolation: isolate;
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px;
    margin-top: clamp(64px, 8vw, 104px); padding: clamp(36px, 5vw, 64px);
    background: var(--ink); border-radius: 28px; color: #fff;
}
.values::before {
    content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background:
        linear-gradient(to right, rgba(255,255,255,.045) 1px, transparent 1px) 0 0 / 24px 24px,
        linear-gradient(to bottom, rgba(255,255,255,.045) 1px, transparent 1px) 0 0 / 24px 24px;
    -webkit-mask-image: radial-gradient(ellipse 80% 90% at 50% 0%, #000 30%, transparent 85%);
            mask-image: radial-gradient(ellipse 80% 90% at 50% 0%, #000 30%, transparent 85%);
}
.value { min-width: 0; }
/* Value icons — custom SVG: outlines draw in when the value is revealed (.is-in),
   then each icon keeps a slow idle loop; hover speeds it up. Static without JS / with reduced motion. */
.value-icon {
    width: 104px; height: 104px; margin-bottom: 22px; border-radius: 24px;
    display: grid; place-items: center;
    background: #1E1E1E; border: 1px solid rgba(255,255,255,.08); box-shadow: 0 1px 0 rgba(255,255,255,.04) inset;
    transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.value:hover .value-icon { transform: translateY(-3px); border-color: rgba(255,255,255,.18); box-shadow: 0 12px 30px -12px rgba(0,0,0,.6); }
.vicon { width: 76px; height: 76px; overflow: visible; }
.vicon .d { fill: none; stroke: #F2F1EC; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.vicon .accent { stroke: var(--brand); }
.vicon .thick { stroke-width: 3; }
.vicon .dashed { stroke-dasharray: .04 .035; }
.vicon .glow { opacity: .75; transform-origin: 32px 26px; }
.vicon .ray { fill: none; stroke: var(--brand); stroke-width: 2.2; stroke-linecap: round; }
.vicon .spark, .vicon .knot { fill: var(--brand); }
.vicon .spark { transform-box: fill-box; transform-origin: center; }
.vicon .tassel { transform-origin: 56px 25.5px; }
.vicon .head { transform-box: fill-box; transform-origin: center; }

/* 1) draw-in (JS + motion only) */
.js .value .vicon .d { transition: stroke-dashoffset 1.1s cubic-bezier(.4,.1,.2,1); }
.js .value .vicon .accent { transition-delay: .55s; }
.js .value:not(.is-in) .vicon .d { stroke-dashoffset: 1; }
.js .value:not(.is-in) .vicon .glow, .js .value:not(.is-in) .vicon .ray,
.js .value:not(.is-in) .vicon .spark, .js .value:not(.is-in) .vicon .knot { opacity: 0; }
.js .value .vicon .ray, .js .value .vicon .spark, .js .value .vicon .knot { transition: opacity .4s var(--ease) 1s; }
.vicon .dashed { transition: none !important; }   /* dash pattern, not draw-in */

/* 2) idle loops, starting after the draw-in */
@keyframes v-glow  { 0%, 100% { transform: scale(.92); opacity: .6; } 50% { transform: scale(1.08); opacity: 1; } }
@keyframes v-ray   { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }
@keyframes v-spark { 0%, 100% { transform: scale(.5) rotate(0deg); opacity: .3; } 50% { transform: scale(1.1) rotate(45deg); opacity: 1; } }
@keyframes v-swing { 0%, 100% { transform: rotate(-9deg); } 50% { transform: rotate(9deg); } }
@keyframes v-bob   { 0%, 60%, 100% { transform: translateY(0); } 30% { transform: translateY(-2.5px); } }
@keyframes v-march { to { stroke-dashoffset: -.75; } }
.value.is-in .vicon .glow  { animation: v-glow 3.2s ease-in-out 1.3s infinite; }
.value.is-in .vicon .ray   { animation: v-ray 3.2s ease-in-out 1.3s infinite; }
.value.is-in .vicon .ray:nth-child(2), .value.is-in .vicon .ray:nth-child(5) { animation-delay: 1.6s; }
.value.is-in .vicon .ray:nth-child(3), .value.is-in .vicon .ray:nth-child(4) { animation-delay: 1.9s; }
.value.is-in .vicon .spark { animation: v-spark 2.8s ease-in-out 1.4s infinite; }
.value.is-in .vicon .spark--2 { animation-delay: 2.8s; }
.value.is-in .vicon .tassel { animation: v-swing 2.6s ease-in-out 1.2s infinite; }
.value.is-in .vicon .h1 { animation: v-bob 2.4s ease-in-out 1.2s infinite; }
.value.is-in .vicon .h2 { animation: v-bob 2.4s ease-in-out 1.5s infinite; }
.value.is-in .vicon .h3 { animation: v-bob 2.4s ease-in-out 1.8s infinite; }
.value.is-in .vicon .dashed { animation: v-march 6s linear infinite; }
.value:hover .vicon * { animation-duration: 1.2s !important; }

@media (prefers-reduced-motion: reduce) {
    .vicon *, .vicon .d { animation: none !important; transition: none !important; stroke-dashoffset: 0 !important; opacity: revert; }
}
.value h4 { font-size: 1.05rem; letter-spacing: -.015em; margin-bottom: 8px; color: #fff; }
.value p { font-size: 14.5px; color: rgba(255,255,255,.62); line-height: 1.65; }

/* ---------- Services ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.svc { display: flex; flex-direction: column; overflow: hidden; }
.svc-visual { height: 224px; background: var(--warm); border-bottom: 1px solid var(--line); display: flex; align-items: flex-end; justify-content: center; padding: 28px 28px 0; overflow: hidden; }
.svc-body { padding: 26px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.svc-body h3 { font-size: 1.25rem; letter-spacing: -.02em; }
.svc-body p { font-size: 15px; color: var(--muted); line-height: 1.65; margin-top: 10px; flex: 1; }
.svc-body .link-arrow { margin-top: 22px; font-size: 14.5px; }
.svc:hover .link-arrow { color: var(--brand-ink); }
.svc:hover .link-arrow i { transform: translateX(3px); }
/* Websites card: screenshot inside a mini browser frame */
.ui-site { overflow: hidden; }
.ui-site img { width: 100%; height: 170px; object-fit: cover; object-position: top left; display: block; }
/* Online Classes: class photo framed as a live video call */
.ui-live .ui-bar span { display: inline-flex; align-items: center; gap: 6px; }
.live-dot { width: 6px; height: 6px; border-radius: 50%; background: #E5484D; box-shadow: 0 0 0 3px rgba(229,72,77,.18); }
.ui-live-media { position: relative; overflow: hidden; }
.ui-live-media img { width: 100%; height: 170px; object-fit: cover; object-position: 60% 35%; display: block; transition: transform .8s var(--ease); }
.svc:hover .ui-live-media img { transform: scale(1.04); }
.ui-live-tag {
    position: absolute; top: 10px; left: 10px; padding: 3px 7px; border-radius: 5px;
    background: #E5484D; color: #fff; font-size: 9.5px; font-weight: 700; letter-spacing: .08em;
}
@keyframes live-pulse { 0%, 100% { box-shadow: 0 0 0 3px rgba(229,72,77,.18); } 50% { box-shadow: 0 0 0 5px rgba(229,72,77,.05); } }
.live-dot { animation: live-pulse 1.8s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .live-dot { animation: none; } }

/* mini UIs (shared) */
.ui { width: 100%; background: var(--surface); border: 1px solid var(--line-2); border-bottom: 0; border-radius: 12px 12px 0 0; box-shadow: 0 24px 40px -24px rgba(20,20,20,.2); transition: transform .5s var(--ease); }
.card--hover:hover .ui, .sw-item:hover .ui { transform: translateY(-4px); }
.ui-bar { height: 28px; display: flex; align-items: center; gap: 5px; padding: 0 10px; border-bottom: 1px solid var(--line); }
.ui-bar i { width: 7px; height: 7px; border-radius: 50%; background: #E3E2DD; display: block; }
.ui-bar span { margin-left: 8px; font-size: 10.5px; color: var(--faint); font-family: var(--mono); }
.ui-line { height: 7px; border-radius: 4px; background: var(--gray); }
.ui-line.d { background: #D9D8D2; }
.ui-line.o { background: var(--brand); }


.ui-code { padding: 14px 16px 18px; font-family: var(--mono); font-size: 11.5px; line-height: 1.8; color: var(--ink-2); white-space: pre; overflow: hidden; }
.ui-code .k { color: var(--brand-ink); }
.ui-code .s { color: #2F7D4F; }
.ui-code .c { color: var(--faint); }
.ui-code .n { color: #8F8F8C; display: inline-block; width: 18px; }

.ui-cert { padding: 20px 20px 22px; text-align: center; position: relative; }
.ui-cert::before { content: ''; position: absolute; inset: 8px 8px 0; border: 1px solid var(--line); border-bottom: 0; border-radius: 6px 6px 0 0; pointer-events: none; }
.ui-cert small { display: block; font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
.ui-cert strong { display: block; font-family: var(--serif); font-style: normal; font-weight: 400; font-size: 22px; color: var(--ink); margin: 8px 0 4px; }
.ui-cert .ui-line { margin: 8px auto 0; }
.ui-seal { width: 38px; height: 38px; border-radius: 50%; margin: 14px auto 0; background: var(--brand); color: #fff; display: grid; place-items: center; font-size: 16px; box-shadow: 0 0 0 4px var(--brand-tint); }

/* ---------- Software solutions ---------- */
.sw-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.sw-visual { height: 280px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); display: flex; align-items: flex-end; justify-content: center; padding: 32px 32px 0; overflow: hidden; }
.sw-item h3 { font-size: 1.25rem; letter-spacing: -.02em; margin-top: 26px; }
.sw-item p { font-size: 15px; color: var(--muted); line-height: 1.65; margin-top: 10px; max-width: 36ch; }

.ui-dash { display: grid; grid-template-columns: 54px 1fr; min-height: 190px; }
.ui-dash-side { border-right: 1px solid var(--line); padding: 10px 8px; display: flex; flex-direction: column; gap: 8px; }
.ui-dash-side .ui-line:first-child { background: var(--brand); width: 60%; }
.ui-dash-main { padding: 12px; }
.ui-kpis { display: grid; grid-template-columns: repeat(3,1fr); gap: 6px; }
.ui-kpi { border: 1px solid var(--line); border-radius: 6px; padding: 7px; }
.ui-kpi b { display: block; font-size: 13px; font-weight: 600; letter-spacing: -.02em; }
.ui-kpi small { font-size: 8.5px; color: var(--faint); }
.ui-bars { display: flex; align-items: flex-end; gap: 5px; height: 66px; margin-top: 10px; padding: 8px; border: 1px solid var(--line); border-radius: 6px; }
.ui-bars span { flex: 1; background: #E7E5DF; border-radius: 2px 2px 0 0; }
.ui-bars span.o { background: var(--brand); }

.ui-phone { width: 158px; background: var(--surface); border: 1px solid var(--line-2); border-bottom: 0; border-radius: 26px 26px 0 0; padding: 10px 10px 0; box-shadow: 0 24px 40px -24px rgba(20,20,20,.25); transition: transform .5s var(--ease); }
.sw-item:hover .ui-phone { transform: translateY(-4px); }
.ui-phone-notch { width: 46px; height: 5px; border-radius: 5px; background: var(--gray); margin: 2px auto 12px; }
.ui-phone-card { border-radius: 12px; background: var(--warm); padding: 10px; margin-bottom: 8px; }
.ui-phone-card b { display: block; font-size: 11px; font-weight: 600; }
.ui-phone-card small { font-size: 9px; color: var(--faint); }
.ui-phone-row { display: flex; align-items: center; gap: 8px; padding: 8px 2px; border-bottom: 1px solid var(--line); }
.ui-phone-row i { width: 22px; height: 22px; border-radius: 7px; background: var(--gray); display: block; flex-shrink: 0; }
.ui-phone-row i.o { background: var(--brand-tint); }
.ui-phone-row .ui-line { flex: 1; }
.ui-phone-tab { display: flex; justify-content: space-around; padding: 10px 0 12px; }
.ui-phone-tab span { width: 6px; height: 6px; border-radius: 50%; background: #D9D8D2; }
.ui-phone-tab span:first-child { background: var(--brand); }

.ui-store { padding: 12px; }
.ui-products { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ui-product { border: 1px solid var(--line); border-radius: 8px; padding: 6px; }
.ui-product-img { aspect-ratio: 1/.8; border-radius: 5px; background: var(--warm); margin-bottom: 6px; display: grid; place-items: center; color: #CFCBC2; font-size: 20px; }
.ui-product b { display: block; font-size: 10px; font-weight: 600; }
.ui-product small { font-size: 9.5px; color: var(--muted); }
.ui-cart { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; padding: 7px 10px; border-radius: 7px; background: var(--ink); color: #fff; font-size: 10.5px; font-weight: 500; }
.ui-cart span { color: #F5A462; }


/* ---------- Portfolio ---------- */
.work-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(20px, 3vw, 32px); }
.work { display: flex; flex-direction: column; }
.work-shot { position: relative; border-radius: var(--radius-lg); background: var(--warm); border: 1px solid var(--line); padding: clamp(20px, 3vw, 36px) clamp(20px, 3vw, 36px) 0; overflow: hidden; }
.work-shot img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top center; border-radius: 10px 10px 0 0; border: 1px solid var(--line-2); border-bottom: 0; box-shadow: 0 24px 48px -28px rgba(20,20,20,.35); transition: transform .7s var(--ease); background: #fff; }
.work:hover .work-shot img { transform: translateY(-6px); }
.work-tags { position: absolute; top: 14px; left: 14px; display: flex; gap: 6px; }
.work-tags .chip { background: rgba(255,255,255,.92); border: 1px solid var(--line); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.work-body { padding: 22px 2px 0; }
.work-title { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.work-title h3 { font-size: 1.3rem; letter-spacing: -.022em; }
.work-title .link-arrow { font-size: 14px; flex-shrink: 0; }
.work-body p { font-size: 15px; color: var(--muted); line-height: 1.65; margin-top: 10px; max-width: 58ch; }
.work-stack { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.work-cta { display: flex; justify-content: center; margin-top: clamp(48px, 6vw, 72px); }

/* ---------- Process ---------- */
/* How We Work — guided stepper. v3.js adds .is-running and moves .is-active along;
   the active connector's fill animation (--dur) ending advances to the next step. */
.flow { --dur: 4.2s; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.flow-step { min-width: 0; }
.flow-head { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.flow-num {
    flex-shrink: 0; border: 0; background: none; padding: 0; cursor: pointer;
    font: 600 clamp(2.4rem, 4vw, 3.2rem)/1 var(--font); letter-spacing: -.04em; font-variant-numeric: tabular-nums;
    color: transparent; -webkit-text-stroke: 1.5px var(--ink);
    transition: color .45s var(--ease), -webkit-text-stroke-color .45s var(--ease), transform .45s var(--ease);
}
.flow-line { flex: 1; height: 2px; border-radius: 2px; background: var(--line-2); overflow: hidden; }
.flow-fill { display: block; height: 100%; width: 0; background: var(--brand); border-radius: inherit; }
.flow-step:last-child .flow-line { opacity: 0; }          /* still animates (drives the loop), just not shown */
.flow-card {
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
    padding: 26px 24px 28px; cursor: pointer; height: calc(100% - 70px);
    transition: opacity .5s var(--ease), transform .5s var(--ease), box-shadow .5s var(--ease), border-color .5s var(--ease);
}
.flow-card h3 { font-size: 1.2rem; letter-spacing: -.02em; margin-top: 20px; }
.flow-card p { font-size: 14.5px; color: var(--muted); line-height: 1.7; margin-top: 10px; }
.flow-icon {
    width: 88px; height: 88px; border-radius: 20px; display: grid; place-items: center;
    background: var(--bg); border: 1px solid var(--line);
    transition: background-color .5s var(--ease), border-color .5s var(--ease);
}
.ficon { width: 60px; height: 60px; overflow: visible; }
.ficon .d { fill: none; stroke: var(--ink); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.ficon .accent { stroke: var(--brand); }
.ficon .dot { fill: var(--brand); transform-box: fill-box; transform-origin: center; }
.ficon .stroke-loop { fill: none; stroke: var(--brand); stroke-width: 2.2; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.ficon .cursor { stroke: var(--brand); stroke-width: 2.6; stroke-linecap: round; }
.ficon .flame { fill: var(--brand); transform-box: fill-box; transform-origin: top center; }
.ficon .pen, .ficon .rocket { transform-box: fill-box; transform-origin: center; }

/* Running state (JS + motion): done / active / upcoming */
.flow.is-running .flow-card { opacity: .55; transform: scale(.97); }
.flow.is-running .flow-step.is-done .flow-num { color: var(--ink); }
.flow.is-running .flow-step.is-done .flow-fill { width: 100%; }
.flow.is-running .flow-step.is-active .flow-num { color: var(--brand); -webkit-text-stroke-color: var(--brand); transform: scale(1.06); }
.flow.is-running .flow-step.is-active .flow-card { opacity: 1; transform: scale(1.03); box-shadow: var(--shadow-lg); border-color: var(--line-2); }
.flow.is-running .flow-step.is-active .flow-icon { background: var(--brand-tint); border-color: rgba(240,127,35,.25); }
.flow.is-running .flow-step.is-active .flow-fill { animation: flow-fill var(--dur) linear forwards; }
.flow.is-paused .flow-step.is-active .flow-fill,
.flow.is-off .flow-step.is-active .flow-fill { animation-play-state: paused; }
.flow.is-running .flow-card:hover { opacity: .85; }
.flow.is-running .flow-step.is-active .flow-card:hover { opacity: 1; }
@keyframes flow-fill { from { width: 0; } to { width: 100%; } }

/* Icon loops — only on the active step */
@keyframes f-bounce { 0%, 60%, 100% { transform: translateY(0); } 30% { transform: translateY(-4px); } }
@keyframes f-draw   { 0% { stroke-dashoffset: 1; } 60%, 100% { stroke-dashoffset: 0; } }
@keyframes f-pen    { 0%, 100% { transform: translate(0,0) rotate(0deg); } 50% { transform: translate(-3px,3px) rotate(-6deg); } }
@keyframes f-blink  { 50% { opacity: 0; } }
@keyframes f-bob    { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
@keyframes f-flame  { 0%, 100% { transform: scaleY(1); opacity: 1; } 50% { transform: scaleY(.7); opacity: .75; } }
.flow-step.is-active .ficon .t1 { animation: f-bounce 1.1s ease-in-out infinite; }
.flow-step.is-active .ficon .t2 { animation: f-bounce 1.1s ease-in-out .15s infinite; }
.flow-step.is-active .ficon .t3 { animation: f-bounce 1.1s ease-in-out .3s infinite; }
.flow-step.is-active .ficon .stroke-loop { animation: f-draw 2.2s ease-in-out infinite; }
.flow-step.is-active .ficon .pen { animation: f-pen 2.2s ease-in-out infinite; }
.flow-step.is-active .ficon .cursor { animation: f-blink 1s steps(1) infinite; }
.flow-step.is-active .ficon .rocket { animation: f-bob 1.6s ease-in-out infinite; }
.flow-step.is-active .ficon .flame { animation: f-flame .35s ease-in-out infinite; }

@media (prefers-reduced-motion: reduce) {
    .flow *, .flow *::before { animation: none !important; transition: none !important; }
}

/* ---------- Classes ---------- */
.course-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.course { display: grid; grid-template-columns: 1fr; overflow: hidden; }
.course-visual { height: 240px; background: var(--warm); border-bottom: 1px solid var(--line); display: flex; align-items: flex-end; justify-content: center; padding: 32px 40px 0; overflow: hidden; }
.course-body { padding: 26px 28px 28px; }
.course-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.course-name { font-size: 1.4rem; letter-spacing: -.025em; margin-top: 16px; }
.course-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.course-dur { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; color: var(--muted); }
.course-foot .link-arrow { font-size: 14px; }
.course:hover .course-foot .link-arrow { color: var(--brand-ink); }

.ui-term { background: #161616; border-color: #161616; }
.ui-term .ui-bar { border-bottom-color: #2a2a2a; }
.ui-term .ui-bar i { background: #3a3a3a; }
.ui-term .ui-code { color: #D8D8D2; }
.ui-term .ui-code .k { color: #F5A462; }
.ui-term .ui-code .s { color: #8FD3A8; }
.ui-term .ui-code .c { color: #6f6f6a; }
.center-cta { display: flex; justify-content: center; margin-top: clamp(40px, 5vw, 56px); }

/* ---------- Testimonials ---------- */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.quote { padding: 32px 28px 28px; display: flex; flex-direction: column; }
.quote-stars { display: flex; gap: 3px; color: var(--brand); font-size: 13px; }
.quote blockquote { margin: 20px 0 0; font-size: 1.0625rem; line-height: 1.7; color: var(--ink-2); flex: 1; letter-spacing: -.005em; }
.quote-author { display: flex; align-items: center; gap: 12px; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); }
.quote-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--gray); color: var(--ink-2); display: grid; place-items: center; font-size: 13px; font-weight: 600; letter-spacing: .02em; }
.quote-name { font-size: 14.5px; font-weight: 600; }
.quote-role { font-size: 13.5px; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: clamp(40px, 7vw, 96px); align-items: start; }
.faq-aside .eyebrow { margin-bottom: 20px; }
.faq-aside p { margin-top: 20px; }
.faq-aside .link-arrow { margin-top: 24px; }
.faq-list { border-top: 1px solid var(--line-2); }
.faq { border-bottom: 1px solid var(--line-2); }
.faq summary {
    list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 24px;
    padding: 24px 0; font-size: 1.0625rem; font-weight: 500; letter-spacing: -.012em; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq-icon { position: relative; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line-2); flex-shrink: 0; transition: background-color .25s, border-color .25s; }
.faq-icon::before, .faq-icon::after { content: ''; position: absolute; left: 50%; top: 50%; width: 10px; height: 1.5px; background: var(--ink); transform: translate(-50%,-50%); transition: transform .3s var(--ease); }
.faq-icon::after { transform: translate(-50%,-50%) rotate(90deg); }
.faq[open] .faq-icon { background: var(--ink); border-color: var(--ink); }
.faq[open] .faq-icon::before, .faq[open] .faq-icon::after { background: #fff; }
.faq[open] .faq-icon::after { transform: translate(-50%,-50%) rotate(0deg); }
.faq summary:hover .faq-icon { border-color: #C9C9C2; }
.faq-body { padding: 0 52px 26px 0; font-size: 15.5px; line-height: 1.75; color: var(--muted); }

/* ---------- CTA ---------- */
.cta {
    position: relative; overflow: hidden; border-radius: 28px; background: var(--ink); color: #fff;
    padding: clamp(56px, 8vw, 104px) clamp(24px, 6vw, 80px); text-align: center;
}
.cta::before {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background:
        linear-gradient(to right, rgba(255,255,255,.04) 1px, transparent 1px) 0 0 / 64px 64px,
        linear-gradient(to bottom, rgba(255,255,255,.04) 1px, transparent 1px) 0 0 / 64px 64px;
    -webkit-mask-image: radial-gradient(ellipse 60% 70% at 50% 100%, #000, transparent 70%);
            mask-image: radial-gradient(ellipse 60% 70% at 50% 100%, #000, transparent 70%);
}
.cta > * { position: relative; }
.cta .eyebrow { color: rgba(255,255,255,.62); }
.cta h2 { color: #fff; margin: 22px auto 0; max-width: 16ch; }
.cta h2 .serif { color: var(--brand); }
.cta p { margin: 22px auto 0; max-width: 52ch; color: rgba(255,255,255,.66); font-size: 1.0625rem; line-height: 1.7; }
.cta .btn-row { justify-content: center; margin-top: 36px; }
.cta .btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.22); box-shadow: none; }
.cta .btn--ghost:hover { border-color: rgba(255,255,255,.45); background: rgba(255,255,255,.04); }

/* ---------- Newsletter ---------- */
.news { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; padding: 40px 0 0; }
.news h3 { font-size: 1.35rem; letter-spacing: -.022em; }
.news p { font-size: 15px; color: var(--muted); margin-top: 6px; }
.news-form { display: flex; gap: 8px; }
.news-form .input { flex: 1; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1080px) {
    .float--stack { left: 8px; }
    .float--domain { right: 8px; }
    .values { grid-template-columns: repeat(2, 1fr); gap: 36px 32px; }
    /* Phones & tablets: swipeable carousel — cards slide right→left, current one centred */
    .flow {
        display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
        margin: 0 calc(var(--gutter) * -1); padding: 8px var(--gutter) 24px; scroll-padding: 0 var(--gutter);
    }
    .flow::-webkit-scrollbar { display: none; }
    .flow-step { flex: 0 0 min(78%, 340px); scroll-snap-align: center; }
    .flow-card { height: auto; }
}
@media (max-width: 960px) {
    .about-grid, .faq-grid { grid-template-columns: 1fr; }
    .svc-grid, .sw-grid, .quotes { grid-template-columns: 1fr; max-width: 560px; margin-left: auto; margin-right: auto; }
    .sw-grid { gap: 48px; }
    .course-grid { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
    .float { display: none; }
    .stage-actions { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; padding: 20px 0 0; }
    .news { grid-template-columns: 1fr; gap: 20px; }
}
@media (max-width: 720px) {
    .work-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .hero-top { padding: 40px 0 48px; }
    .hero h1 { margin-top: 22px; }
    .hero-kicker { font-size: 13px; gap: 6px 10px; }
    .hero-kicker-rule { width: 18px; }
    .hero .btn-row { flex-direction: column; align-items: stretch; max-width: 360px; margin-left: auto; margin-right: auto; }
    .hero .btn-row .btn { width: 100%; }
    .hero-wa { justify-content: center; }
    .hero-stage { padding: 0; }
    .stage-panel { border-radius: 20px 20px 0 0; border-left: 0; border-right: 0; padding: 20px 12px 0; }
    .browser { border-radius: 10px 10px 0 0; }
    .browser-bar { height: 36px; gap: 8px; padding: 0 10px; }
    .browser-dots i { width: 8px; height: 8px; }
    .browser-bar .chip { display: none; }
    .yt-play { height: 44px; font-size: 14px; padding: 0 16px 0 6px; }
    .yt-play span { width: 32px; height: 32px; font-size: 17px; }
    .yt-caption { display: none; }
    .stage-actions { padding: 16px 16px 0; }
    .stage-actions .btn { flex: 1; min-width: 140px; }
    .logos-set { gap: 40px; padding-right: 40px; }
    .logo-item img { height: 24px; max-width: 76px; }
    .logos-track { animation-duration: 36s; }
    .values { grid-template-columns: 1fr; gap: 28px; padding: 32px 22px; border-radius: 20px; }
        .growth-chart { height: 240px; }
    .svc-visual { height: 200px; }
    .sw-visual { height: 240px; }
    .course-visual { height: 210px; padding: 24px 20px 0; }
    .faq summary { font-size: 1rem; padding: 20px 0; }
    .faq-body { padding-right: 0; }
    .cta { border-radius: 20px; }
    .cta .btn-row { flex-direction: column; align-items: stretch; }
    .news-form { flex-direction: column; }
    .news-form .input { flex: none; }
}

/* ═══════════ Latest from the blog ═══════════ */
.hb-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; margin-bottom: clamp(32px, 4vw, 48px); }
.hb-head .eyebrow { margin-bottom: 18px; }
.hb-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.hb-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease); }
.hb-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-2); }
.hb-img { aspect-ratio: 16 / 9; overflow: hidden; background: var(--gray); border-bottom: 1px solid var(--line); }
.hb-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.hb-card:hover .hb-img img { transform: scale(1.03); }
.hb-body { display: flex; flex-direction: column; flex: 1; padding: 20px 22px 22px; }
.hb-meta { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--faint); }
.hb-meta .chip { background: var(--brand-tint); color: var(--brand-ink); }
.hb-title { font-size: 1.1rem; font-weight: 600; letter-spacing: -.02em; line-height: 1.35; margin-top: 12px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.hb-excerpt { font-size: 14.5px; line-height: 1.6; color: var(--muted); margin-top: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hb-more { margin-top: auto; padding-top: 18px; font-size: 14px; }
.hb-card:hover .hb-more { color: var(--brand-ink); }
@media (max-width: 960px) { .hb-grid { grid-template-columns: 1fr 1fr; } .hb-grid .hb-card:nth-child(3) { display: none; } }
@media (max-width: 640px) { .hb-grid { grid-template-columns: 1fr; } .hb-grid .hb-card:nth-child(3) { display: flex; } }
