/* ─── HERO ───────────────────────────────────────────────── */
.hero {
    display: flex; align-items: flex-start;
    padding-top: var(--nav-h);
    position: relative; overflow: hidden;
}
/* Warm glow overlay */
.hero::before {
    content: '';
    position: absolute; inset: 0;
    background:
        radial-gradient(ellipse at 15% 60%, rgba(255,181,150,0.08) 0%, transparent 55%),
        radial-gradient(ellipse at 85% 15%, rgba(255,181,150,0.04) 0%, transparent 45%);
    pointer-events: none; z-index: 0;
}
/* Subtle grid texture */
.hero::after {
    content: '';
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.016) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.016) 1px, transparent 1px);
    background-size: 64px 64px;
    pointer-events: none; z-index: 0;
}
.hero-inner {
    max-width: var(--max-w); margin: 0 auto;
    padding: 52px 0 44px;
    position: relative; z-index: 1;
}
.hero-h1 {
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    font-size: clamp(30px, 6vw, 56px); font-weight: 800;
    line-height: 1.1; letter-spacing: 0;
    margin-bottom: 20px;
}
.hero-h1 .line1 { color: var(--text); display: block; }
.hero-h1 .line2 { color: var(--orange); display: block; }

.hero-thesis {
    font-size: 20px;
    font-weight: 300; color: var(--text);
    line-height: 1.6; margin-bottom: 12px;
    max-width: 950px;
}
.hero-industries {
    font-size: 16px; font-weight: 300; color: var(--text);
    line-height: 1.6; margin-bottom: 20px;
    max-width: 950px;
}
.hero-ctas {
    display: flex; flex-wrap: wrap; gap: 16px;
    align-items: center; margin-bottom: 20px;
}
.hero-tagline {
    display: inline-flex; align-items: center; gap: 8px;
    margin-bottom: 16px; letter-spacing: 0.05em; text-transform: uppercase;
}
.hero-tagline .tw-word-wrap {
    min-width: 180px; text-align: right; display: inline-block;
}
.hero-tagline .tw {
    font-size: 20px; font-weight: 700; color: #55D6F7;
    transition: opacity 0.3s ease, transform 0.3s ease;
    display: inline-block;
}
.hero-tagline .tw-static {
    font-size: 20px; font-weight: 700; color: #ffffff;
}
.hero-tagline .tw-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: #55D6F7; display: inline-block; flex-shrink: 0;
}
.logo-strip { margin-bottom: 24px; }
.logo-strip-clients {
    font-size: 14px; font-weight: 700;
    letter-spacing: 0.2em; text-transform: uppercase;
    color: var(--text2); line-height: 1.4;
}
.btn-hero-primary {
    display: inline-flex; align-items: center; gap: 8px;
    height: 48px; padding: 0 32px;
    background: #f3f4f6; color: #000000;
    font-family: 'Outfit', sans-serif; font-size: 18px; font-weight: 600;
    border: none; border-radius: 2px; text-decoration: none;
    cursor: pointer; transition: background 0.18s;
}
.btn-hero-primary:hover { background: #e5e7eb; }
.btn-hero-outline {
    display: inline-flex; align-items: center;
    height: 48px; padding: 0 32px;
    background: transparent; color: var(--text);
    font-family: 'Outfit', sans-serif; font-size: 18px; font-weight: 700;
    border: 1px solid rgba(100,116,139,0.2); text-decoration: none;
    cursor: pointer; transition: border-color 0.18s;
}
.btn-hero-outline:hover { border-color: rgba(100,116,139,0.5); }

/* ─── PROOF BAR ──────────────────────────────────────────── */
.proof-bar { background: var(--color-bg); padding: 0 var(--pad) 48px; }
.proof-grid {
    max-width: var(--max-w); margin: 0 auto;
    background: #181C22;
    box-shadow: 0px 25px 50px -12px rgba(0,0,0,0.25);
    border-radius: 2px;
    outline: 1px #31353C solid;
    outline-offset: -1px;
    padding: 20px;
    overflow: hidden;
}
.proof-cells {
    display: flex; align-items: flex-start;
    overflow-x: auto;
}
.proof-cell {
    flex: 0 0 210px; width: 210px;
    padding: 0 10px;
    border-right: 1px solid rgba(255,255,255,0.10);
    display: flex; flex-direction: column; gap: 5px;
    min-height: 110px;
}
.proof-cell:last-child { border-right: none; }
.proof-client-pill {
    display: inline-flex; justify-content: center; align-items: center;
    height: 20px; padding: 3px 10px; gap: 1px; flex-shrink: 0; align-self: flex-start;
    background: rgba(83,86,91,0.46);
    border-radius: 1px;
    border: 0.5px solid rgba(122,133,153,0.15);
    font-family: 'Outfit', sans-serif; font-size: 11px; font-weight: 300;
    color: #ffffff; white-space: nowrap;
}
.proof-stat {
    font-family: 'Space Grotesk', 'Outfit', sans-serif;
    font-size: 24px; font-weight: 700; color: #FFB596;
    line-height: 36px;
}
.proof-stat-lg {
    font-family: 'Space Grotesk', 'Outfit', sans-serif;
    font-size: 30px; font-weight: 700; color: #FFB596;
    line-height: 36px;
}
.proof-desc {
    font-family: 'Outfit', sans-serif;
    font-size: 11px; font-weight: 400; color: #A1A1AA;
    line-height: 13.75px;
}

/* ─── ABOUT / IDENTITY ───────────────────────────────────── */
#about { padding-bottom: 48px; }
#services { padding-top: 48px; }
.identity-card {
    display: flex;
    width: 1216px; max-width: 100%;
    height: 666px;
    padding: 45px 64px;
    flex-direction: column;
    align-items: flex-start;
    border-radius: 16px;
    background: rgba(247, 95, 37, 0.05);
    box-sizing: border-box;
}
.identity-grid {
    display: grid;
    height: 557px; max-width: 1280px;
    row-gap: 64px; column-gap: 64px;
    flex-shrink: 0; align-self: stretch;
    grid-template-rows: 557px minmax(0, 1fr);
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.identity-body { font-size: 15px; color: var(--text2); line-height: 1.82; }
.identity-body p + p { margin-top: 16px; }
.identity-signoff {
    margin-top: 32px; padding-top: 24px;
    border-top: 1px solid var(--border);
    font-size: 13px; color: var(--text3); line-height: 1.8;
}
.identity-right {
    display: flex; flex-direction: column;
    align-self: center;
}
.identity-img {
    width: 512px; max-width: 100%; aspect-ratio: 3/2; height: auto; max-height: 480px;
    background: #000;
    border-radius: 16px;
    overflow: hidden;
}

/* ─── SECTION CONTAINER ALIGNMENT (match proof bar X axis) ── */
#about .container,
#skillsmax .container,
#services .container,
#work .container,
#testimonials .container,
#how-we-work .container { padding-left: 0; padding-right: 0; }

/* ─── SERVICES / PILLARS ──────────────────────────────────── */
.pillar-grid {
    display: grid; grid-template-columns: 528px 528px;
    gap: 32px; margin-top: 56px;
}
.pillar-card {
    background: var(--bg2);
    border: 1px solid var(--border);
    padding: 48px 44px;
    transition: border-color 0.22s, background 0.22s;
}
.pillar-card:hover { border-color: rgba(255,181,150,0.28); background: var(--bg3); }
.pillar-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 20px;
}
.pillar-icon {
    width: 32px; height: 32px; flex-shrink: 0;
}
.pillar-icon svg { display: block; }
.pillar-label {
    font-size: 11px; font-weight: 700;
    letter-spacing: 0.13em; text-transform: uppercase;
    color: #FFB596; margin-bottom: 0;
}
.pillar-h {
    font-size: clamp(18px, 1.8vw, 22px);
    font-weight: 800; color: var(--text);
    line-height: 1.2; letter-spacing: -0.02em; margin-bottom: 10px;
}
.pillar-italic {
    font-size: 14px; color: var(--text2);
    font-style: italic; margin-bottom: 20px; line-height: 1.62;
}
.pillar-body {
    font-size: 14px; color: var(--text2);
    line-height: 1.75; margin-bottom: 28px;
}
.work-list {
    list-style: none; margin-bottom: 32px;
    padding-top: 16px;
}
.work-list li {
    font-size: 13px; color: var(--text2);
    line-height: 1.6; padding: 6px 0;
    display: flex; align-items: baseline; gap: 12px;
}
.work-list li::before {
    content: '—'; color: #DFE2EB; flex-shrink: 0;
    font-size: 12px; font-weight: 700;
}
.work-list .client-name { color: var(--text); font-weight: 700; }
.work-label {
    font-size: 11px; font-weight: 700; letter-spacing: 0.1em;
    text-transform: uppercase; color: #FFB596;
    margin-bottom: 4px;
}

/* ─── SKILLSMAX ──────────────────────────────────────────── */
#services { padding-bottom: 48px; }
.sm-section { background: var(--bg); }
.sm-card {
    width: 1216px; max-width: 100%;
    background: rgba(103, 232, 249, 0.05);
    border-radius: 16px;
    padding: 45px 64px;
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 60px; align-items: start;
    position: relative; overflow: hidden;
    box-sizing: border-box;
}
.sm-card::before {
    content: '';
    position: absolute; top: -96px; right: 0;
    width: 384px; height: 384px;
    background: radial-gradient(ellipse, rgba(255,255,255,0.05) 0%, rgba(103,232,249,0.08) 100%);
    border-radius: 12px; filter: blur(50px);
    pointer-events: none;
}
.sm-left { display: flex; flex-direction: column; gap: 14px; }
.sm-tag {
    display: inline-flex; align-items: center; gap: 7px;
    font-size: 10px; font-weight: 700; letter-spacing: 0.13em;
    text-transform: uppercase; color: #29B8D8;
}
.sm-name {
    font-family: 'Outfit', system-ui, sans-serif;
    font-size: 36px; font-weight: 600; color: var(--text);
    line-height: 40px; letter-spacing: 0; margin: 0;
}
.sm-name .dot { color: var(--orange); }
.sm-body {
    font-size: 18px; font-weight: 300; color: #f3f4f6;
    line-height: 1.72; margin: 0;
}
.sm-callouts { display: flex; gap: 16px; }
.sm-callout {
    flex: 1;
    border: 1px solid rgba(100,116,139,0.2);
    padding: 14px 10px;
    background: var(--bg3);
    border-radius: 5px;
}
.sm-callout h4 {
    font-size: 16px; font-weight: 700; color: #ffffff;
    margin-bottom: 8px; letter-spacing: 0;
}
.sm-callout p { font-size: 12px; color: rgba(243,244,246,0.7); line-height: 1.5; }
.sm-explore {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 16px; font-weight: 600; color: #29B8D8;
    text-decoration: none; transition: gap 0.18s;
}
.sm-explore:hover { gap: 12px; }
.sm-img-col {
    background: #000; border-radius: 10px;
    aspect-ratio: 2/1; height: auto; overflow: hidden;
    display: flex; align-items: center; justify-content: center;
}
.sm-product-img {
    width: 80%; object-fit: cover;
}

/* ─── WORK / TABS ────────────────────────────────────────── */
.tabs {
    display: flex; gap: 0; width: fit-content;
    border: 1px solid var(--border); border-radius: 4px;
    overflow: hidden; margin-bottom: 40px;
}
.tab {
    padding: 10px 24px; background: var(--bg2);
    font-family: 'Outfit', sans-serif;
    font-size: 12px; font-weight: 600; color: var(--text2);
    border: none; border-right: 1px solid var(--border);
    cursor: pointer; letter-spacing: 0.04em;
    transition: background 0.15s, color 0.15s;
}
.tab:last-child { border-right: none; }
.tab.active { background: var(--bg3); color: #55D6F7; }
.tab:not(.active):hover { background: var(--bg3); color: var(--text); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ─── WORK CARDS ─────────────────────────────────────────── */
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.work-grid.grid-2 { grid-template-columns: repeat(2, 1fr); }
.work-card {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 4px; overflow: hidden;
    display: flex; flex-direction: column;
    transition: border-color 0.2s, transform 0.2s;
}
.work-card:hover { border-color: rgba(255,181,150,0.28); transform: translateY(-2px); }
.work-card.span-2 { grid-column: span 2; }
.work-card.span-3 { grid-column: 1 / -1; }
.wc-img {
    width: 100%; aspect-ratio: 16/9;
    background: var(--bg3);
    border-bottom: 1px solid var(--border);
    position: relative; overflow: hidden; flex-shrink: 0;
}
.wc-img::before {
    content: ''; position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 32px 32px;
}
.wc-img::after {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(ellipse at 50% 50%, rgba(255,181,150,0.07) 0%, transparent 70%);
}
.work-card.span-2 .wc-img,
.work-card.span-3 .wc-img { aspect-ratio: 21/9; }
.wc-img-label {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center; z-index: 1;
}
.wc-img-label span {
    font-size: 10px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--text3); border: 1px solid var(--border);
    padding: 5px 12px; border-radius: 2px; background: rgba(10,10,10,0.55);
}
.wc-body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.wc-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.wc-client {
    font-size: 10px; font-weight: 700; color: #55D6F7;
    letter-spacing: 0.1em; text-transform: uppercase;
}
.wc-reg {
    display: inline-block;
    font-size: 9px; font-weight: 600; letter-spacing: 0.07em;
    color: #FFFFFF;
    background: rgba(83, 86, 91, 0.46);
    border: 0.5px solid rgba(122, 133, 153, 0.15);
    padding: 2px 8px; border-radius: 1px;
}
.wc-title {
    font-size: 15px; font-weight: 700; color: var(--text);
    letter-spacing: -0.01em; line-height: 1.3; margin-bottom: 8px;
}
.wc-desc {
    font-size: 13px; color: var(--text2); line-height: 1.65;
    margin-bottom: 16px; flex: 1;
}
.wc-outcomes { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.wc-outcome {
    display: inline-flex; align-items: baseline; gap: 6px;
    padding: 6px 10px; background: var(--bg);
    border-left: 2px solid #55D6F7;
}
.wc-outcome .on {
    font-size: 12px; font-weight: 700; color: #55D6F7;
    font-variant-numeric: tabular-nums; white-space: nowrap;
}
.wc-outcome .ol { font-size: 11px; color: var(--text2); }
.wc-link {
    display: inline-flex; align-items: center; gap: 5px;
    font-size: 12px; font-weight: 600; color: #55D6F7;
    transition: gap 0.15s; margin-top: auto;
}
.wc-link:hover { gap: 8px; }
.wc-ref { opacity: 0.55; }

/* ─── TESTIMONIALS ───────────────────────────────────────── */
.testi-grid { display: grid; grid-template-columns: 528px 528px; gap: 32px; }
.testi-card {
    border: 1px solid var(--border);
    padding: 44px; background: var(--bg2);
}
.testi-quote {
    font-size: 15px; color: var(--text);
    line-height: 1.78; font-style: italic; margin-bottom: 28px;
}
.testi-quote::before {
    content: '"'; display: inline; color: #55D6F7;
    font-size: 30px; line-height: 0; vertical-align: -11px;
    margin-right: 2px; font-style: normal;
}
.testi-name { font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: 2px; }
.testi-role { font-size: 12px; font-weight: 600; color: var(--text2); letter-spacing: 0.03em; }

/* ─── HOW WE WORK ────────────────────────────────────────── */
.engage-stack { margin-top: 24px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.engage-step {
    padding: 24px 48px;
    background: #18181b;
    display: flex; flex-direction: column;
}
.engage-num {
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    font-size: 60px; font-weight: 800;
    color: rgba(255,255,255,0.15);
    line-height: 96px;
}
.engage-step-title {
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    font-size: 24px; font-weight: 700; color: var(--text);
    line-height: 32px; letter-spacing: -0.01em;
    margin-top: 16px; margin-bottom: 10px;
}
.engage-step-body {
    font-size: 14px; color: #f3f4f6; line-height: 1.5; margin-bottom: 12px;
}
.engage-step-meta {
    font-size: 10px; font-weight: 600; letter-spacing: 0.12em;
    text-transform: uppercase; color: rgba(228,228,231,0.5);
}

/* ─── HOW WE BUILD (AI EMBEDDED) ────────────────────────── */
.hww-section { background: #0E131B; padding: 80px 0; }
.hww-intro {
    font-family: 'Outfit', sans-serif;
    font-size: 18px; color: #EDEEF0; line-height: 32px;
    max-width: 760px; margin-top: 16px;
}
.hww-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 48px;
}
.hww-card { display: flex; flex-direction: column; border-radius: 5px; overflow: hidden; }
.hww-card.wide { grid-column: span 2; }
.hww-img {
    width: 100%; height: 125px;
    background: #31353C;
    overflow: hidden; flex-shrink: 0;
}
.hww-img img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: 0.20; }
.hww-body {
    padding: 24px;
    background: #181C22;
    outline: 1px solid rgba(122,133,153,0.15);
    flex: 1;
}
.hww-title {
    font-family: 'Outfit', sans-serif;
    font-size: 20px; font-weight: 700; color: #DFE2EB;
    line-height: 25px; margin-bottom: 10px;
}
.hww-desc {
    font-family: 'Outfit', sans-serif;
    font-size: 14px; font-weight: 400; color: #EDEEF0;
    line-height: 22.75px;
}
.hww-cta { display: flex; justify-content: center; margin-top: 48px; }
.hww-btn {
    display: inline-flex; align-items: center; gap: 10px;
    background: #0A0E14;
    border: 1px solid rgba(122,133,153,0.35);
    border-radius: 4px; padding: 14px 32px;
    font-family: 'Outfit', sans-serif;
    font-size: 18px; font-weight: 500; color: #DFE2EB;
    text-decoration: none;
    transition: border-color 0.2s;
}
.hww-btn:hover { border-color: rgba(255,181,150,0.4); }

/* ─── BOTTOM CTA + CONTACT ───────────────────────────────── */
.cta-section {
    background: var(--bg2);
}
.cta-grid {
    display: grid; grid-template-columns: 704px 320px;
    gap: 80px; align-items: start;
    max-width: var(--max-w); margin: 0 auto;
    padding: 120px 0;
}
.cta-h {
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    font-size: clamp(24px, 3.2vw, 36px); font-weight: 800; color: var(--text);
    line-height: 1.25; letter-spacing: -0.01em;
    margin-bottom: 28px;
}
.cta-h .accent { color: #FFB596; }
.cta-sub {
    font-size: 15px; color: var(--text2); line-height: 1.78; margin-bottom: 18px;
}
.cta-proof {
    font-size: 15px; color: var(--text); font-weight: 700;
    letter-spacing: 0.01em; padding-top: 20px;
    border-top: 1px solid var(--border); margin-top: 10px;
}

/* ─── CONTACT FORM ───────────────────────────────────────── */
.cf-header { margin-bottom: 28px; }
.cf-header h3 {
    font-size: 20px; font-weight: 800; color: var(--text);
    letter-spacing: -0.015em; margin-bottom: 8px;
}
.cf-header p { font-size: 14px; color: var(--text2); line-height: 1.62; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.f-group { margin-bottom: 16px; }
.f-label {
    display: block; font-size: 11px; font-weight: 600;
    color: var(--text2); letter-spacing: 0.09em; text-transform: uppercase;
    margin-bottom: 7px;
}
.f-input, .f-select, .f-textarea {
    width: 100%; background: var(--bg3);
    border: 1px solid var(--border); border-radius: 4px;
    padding: 12px 14px;
    font-family: 'Outfit', sans-serif; font-size: 14px; color: var(--text);
    transition: border-color 0.18s; appearance: none;
}
.f-input:focus, .f-select:focus, .f-textarea:focus {
    outline: none; border-color: var(--orange);
}
.f-input::placeholder, .f-textarea::placeholder { color: var(--text3); }
.f-textarea { resize: vertical; min-height: 88px; }
.f-select { cursor: pointer; }
.f-select option { background: var(--bg3); color: var(--text); }
.form-note { font-size: 12px; color: var(--text3); margin-top: 12px; }
.req-star { color: #FFB596; margin-left: 2px; }
.f-error { display: block; font-size: 12px; color: #ff7b7b; margin-top: 5px; min-height: 0; }
.f-input[aria-invalid="true"],
.f-textarea[aria-invalid="true"] { border-color: #ff7b7b; }
.form-error-summary {
    background: rgba(255,123,123,0.1); border: 1px solid rgba(255,123,123,0.4);
    border-radius: 4px; padding: 12px 16px; margin-bottom: 16px;
    font-size: 13px; color: #ff9f9f;
}

/* ─── CTA PILL (matches what-we-build.html) ─────────────── */
.cta-pill {
    display: flex; align-items: center; justify-content: center;
    width: 320px; height: 80px;
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    font-size: 18px; font-weight: 800;
    color: var(--bg); line-height: 1.3;
    background: var(--orange);
    border-radius: 4px;
    padding: 0 20px; text-align: center;
    transition: background 0.18s, transform 0.15s;
}
.cta-pill:hover { background: #e09070; color: var(--bg); transform: translateY(-1px); }
/* Screen-reader-only utility */
.sr-only {
    position: absolute; width: 1px; height: 1px;
    padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ─── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 1024px) {
    .identity-card  { height: auto; padding: 40px 32px; }
    .identity-grid  { height: auto; grid-template-rows: auto; grid-template-columns: 1fr; row-gap: 48px; column-gap: 0; }
    .identity-right { min-width: 0; }
    .identity-img   { width: 100%; }
    .pillar-grid    { grid-template-columns: 1fr; }
    .proof-bar      { padding: 0 var(--pad) 40px; }
    .sm-card        { grid-template-columns: 1fr; gap: 40px; }
    .hww-grid       { grid-template-columns: repeat(3, 1fr); }
    .cta-grid       { grid-template-columns: 1fr; gap: 56px; padding: 80px 0; }
}
@media (max-width: 768px) {
    .section { padding: 72px 0; }
    .hero-inner { padding: 56px var(--pad) 72px; }
    .testi-grid { grid-template-columns: 1fr; }
    .work-grid  { grid-template-columns: 1fr 1fr; }
    .work-card.span-2, .work-card.span-3 { grid-column: 1 / -1; }
    .form-row   { grid-template-columns: 1fr; }
    .proof-bar  { padding: 0 16px 36px; }
    .hww-grid   { grid-template-columns: repeat(2, 1fr); }
    .engage-stack { grid-template-columns: 1fr; }
    .engage-step { padding: 24px 20px; }
    #services .container > .eyebrow,
    #services .container > .h-section { padding-left: var(--pad); padding-right: var(--pad); }
    .cta-grid { padding-left: var(--pad); padding-right: var(--pad); }
}
@media (max-width: 640px) {
    .work-grid, .work-grid.grid-2 { grid-template-columns: 1fr; }
    .work-card.span-2, .work-card.span-3 { grid-column: auto; }
    .sm-callouts { flex-direction: column; }
    /* Proof bar: switch from horizontal scroll to 2-col grid */
    .proof-cells { display: grid; grid-template-columns: repeat(2, 1fr); overflow-x: visible; }
    .proof-cell { flex: none; width: auto; border-right: none; border-bottom: 1px solid rgba(255,255,255,0.10); }
    .proof-cell:nth-child(odd) { border-right: 1px solid rgba(255,255,255,0.10); }
    .proof-cell:nth-last-child(-n+2) { border-bottom: none; }
    /* Tabs: ensure 44px touch target */
    .tab { padding: 13px 16px; }
    /* Bridge the 768→640px gap */
    .section { padding: 56px 0; }
    .identity-card { padding: 28px 16px; }
}
@media (max-width: 480px) {
    .hero-h1    { font-size: clamp(30px, 8vw, 44px); }
    .hero-ctas  { flex-direction: column; align-items: flex-start; }
    .cta-h      { font-size: clamp(30px, 8vw, 44px); }
    .hww-grid   { grid-template-columns: 1fr; }
    .hww-card.wide { grid-column: auto; }
    /* Footer: single column on very small screens */
}
