:root {
    --bg: #050911;
    --bg-soft: #0c1320;
    --surface: #101a2b;
    --surface-2: #162235;
    --text: #f5f8fc;
    --muted: #9eb0c6;
    --line: rgba(255,255,255,.11);
    --line-strong: rgba(255,255,255,.2);
    --tech: #6fd7ff;
    --tech-deep: #0c3e73;
    --media: #c7dbff;
    --accent: #6aa6ff;
    --header-h: 76px;
    --max: 1400px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    min-height: 100vh;
    overflow-x: hidden;
    background: radial-gradient(circle at top, rgba(29,72,132,.25), transparent 28%), var(--bg);
    color: var(--text);
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button,input,textarea,select { font: inherit; }
.screen-reader-text {
    position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0;
}
.brand-dot { color: var(--tech); }
.kicker { margin: 0 0 16px; font-size: 11px; font-weight: 900; letter-spacing: .18em; text-transform: uppercase; }
.kicker--tech { color: var(--tech); }
.kicker--media { color: #dce9ff; }
.story-meta { color: #7f92aa; font-size: 11px; letter-spacing: .05em; text-transform: uppercase; }

.site-header {
    position: fixed; top: 0; left: 0; z-index: 1000;
    width: 100%; height: var(--header-h);
    display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center;
    padding: 0 max(20px, calc((100vw - var(--max)) / 2));
    border-bottom: 1px solid var(--line);
    background: rgba(5,9,17,.78);
    backdrop-filter: blur(16px);
}
body.admin-bar .site-header { top: 32px; }
.site-brand__wordmark { font-size: 18px; font-weight: 950; letter-spacing: .14em; }
.site-brand__logo .custom-logo-link { display: block; width: 46px; height: 46px; border-radius: 50%; overflow: hidden; }
.site-brand__logo img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; transform: scale(1.16); transform-origin: center; }
.site-nav { justify-self: center; }
.site-nav__list { display: flex; gap: 24px; margin: 0; padding: 0; list-style: none; color: var(--muted); font-size: 13px; font-weight: 750; }
.site-nav__list a:hover, .footer-nav__list a:hover, .footer-links a:hover { color: var(--text); }
.site-header__actions { justify-self: end; display: flex; align-items: center; gap: 14px; }
.site-motto { color: #b7c7dc; font-size: 10px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.header-cta, .button {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 46px; padding: 0 18px; border-radius: 999px;
    border: 1px solid var(--line); font-weight: 850;
}
.header-cta { background: rgba(255,255,255,.05); font-size: 13px; }
.menu-toggle { display: none; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--text); }
.menu-toggle > span:not(.screen-reader-text) { display: block; width: 16px; height: 1px; margin: 5px auto; background: currentColor; }
.mobile-menu {
    position: fixed; inset: var(--header-h) 0 0; z-index: 999;
    padding: 36px max(20px, calc((100vw - var(--max)) / 2)); background: rgba(5,9,17,.985);
}
.mobile-menu__links a { display: flex; gap: 14px; align-items: baseline; padding: 18px 0; border-bottom: 1px solid var(--line); font-size: clamp(32px, 9vw, 56px); font-weight: 900; letter-spacing: -.05em; }
.mobile-menu__links span { color: var(--muted); font-size: 11px; letter-spacing: .1em; }

.gateway-hero {
    position: relative; min-height: 100vh; padding-top: var(--header-h); overflow: hidden;
    display: grid; grid-template-columns: 1fr 1fr;
}
.gateway-hero__panel {
    position: relative; min-height: calc(100vh - var(--header-h));
    display: flex; align-items: center; padding: max(24px, 4vw);
}
.gateway-hero__panel--tech {
    background: radial-gradient(circle at 28% 18%, rgba(110, 215, 255, .25), transparent 38%), linear-gradient(135deg, #06121f, #0b2a48 55%, #081321);
}
.gateway-hero__panel--media {
    background: radial-gradient(circle at 70% 28%, rgba(198, 219, 255, .2), transparent 40%), linear-gradient(225deg, #07101a, #10243d 55%, #08111d);
}
.gateway-hero__panel::after {
    content: ""; position: absolute; inset: 0; opacity: .16;
    background-image: linear-gradient(rgba(255,255,255,.15) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.15) 1px, transparent 1px);
    background-size: 56px 56px; mask-image: linear-gradient(#000, transparent 92%);
}
.gateway-hero__copy { position: relative; z-index: 2; max-width: 520px; }
.gateway-hero__copy--media { margin-left: auto; text-align: right; }
.gateway-hero__copy span { display: block; margin-bottom: 16px; font-size: 11px; font-weight: 900; letter-spacing: .2em; text-transform: uppercase; }
.gateway-hero__copy--tech span { color: var(--tech); }
.gateway-hero__copy--media span { color: #dce9ff; }
.gateway-hero__copy h1, .gateway-hero__copy h2 { margin: 0; font-size: clamp(54px, 6vw, 104px); line-height: .9; letter-spacing: -.075em; }
.gateway-hero__copy p { margin: 24px 0 0; color: #c7d7ea; font-size: 18px; line-height: 1.6; }
.gateway-hero__copy strong { display: inline-block; margin-top: 28px; color: var(--text); font-size: 13px; letter-spacing: .07em; text-transform: uppercase; }
.gateway-hero__logo-badge {
    position: absolute; top: 50%; left: 50%; z-index: 5; transform: translate(-50%, -50%);
    width: 156px; height: 156px; padding: 6px;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
    border: 1px solid rgba(255,255,255,.15); border-radius: 50%;
    background: rgba(7, 14, 24, .60); backdrop-filter: blur(12px);
    box-shadow: 0 14px 42px rgba(0,0,0,.28), 0 0 0 8px rgba(255,255,255,.025);
}
.gateway-hero__logo-badge .custom-logo-link { display: block; width: 134px; height: 134px; border-radius: 50%; overflow: hidden; }
.gateway-hero__logo-badge img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; transform: scale(1.32); transform-origin: center; }
.gateway-hero__logo-fallback {
    display: grid; place-items: center; width: 110px; height: 110px; border-radius: 50%;
    background: radial-gradient(circle, rgba(111,215,255,.2), transparent 60%), #0a1523;
    color: var(--text); font-size: 56px; font-weight: 950;
}
.gateway-hero__logo-badge em { display: none; }

.home-intro, .home-news, .process, .related-stories {
    max-width: var(--max); margin: auto; padding: 110px max(20px, calc((100vw - var(--max)) / 2));
}
.home-intro h2, .section-head h2, .process .section-head h2 {
    max-width: 980px; margin: 0; font-size: clamp(42px, 5vw, 78px); line-height: 1.02; letter-spacing: -.06em;
}
.home-card-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; padding: 1px; background: var(--line); }
.home-info-card, .service-grid-detailed article, .process-grid article, .ak-widget {
    background: linear-gradient(180deg, rgba(255,255,255,.02), transparent 100%), var(--bg-soft);
}
.home-info-card {
    min-height: 290px; padding: 28px; transition: transform .2s ease, background .2s ease;
}
.home-info-card:hover, .story-card:hover, .project-row:hover { transform: translateY(-4px); }
.home-info-card span { color: var(--muted); font-size: 11px; }
.home-info-card h3 { margin: 64px 0 0; font-size: 28px; line-height: 1.08; }
.home-info-card p { color: var(--muted); line-height: 1.65; }

.section-head { display: flex; justify-content: space-between; gap: 24px; align-items: flex-end; margin-bottom: 42px; }
.section-head > a { color: var(--muted); font-size: 13px; font-weight: 800; border-bottom: 1px solid var(--line); padding-bottom: 5px; }
.story-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.story-grid--home .story-card--featured { grid-column: span 2; }
.story-card {
    overflow: hidden; border: 1px solid var(--line); background: var(--bg-soft);
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.story-card:hover { border-color: var(--line-strong); box-shadow: 0 14px 30px rgba(0,0,0,.22); }
.story-card__image { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface); }
.story-card__image img { width: 100%; height: 100%; object-fit: cover; }
.story-card__fallback {
    display: grid; place-items: center; width: 100%; height: 100%; color: rgba(255,255,255,.15);
    font-weight: 950; letter-spacing: .14em;
}
.story-card__copy { padding: 20px; }
.story-card__category { margin: 0 0 10px; color: #cfe2ff; font-size: 10px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.story-card h3 { margin: 0; font-size: 24px; line-height: 1.12; letter-spacing: -.03em; }
.story-card__copy > p:not(.story-card__category) { color: var(--muted); line-height: 1.6; }
.story-card--featured h3 { font-size: clamp(30px, 3.5vw, 44px); }
.story-card--compact { border-width: 0 0 1px 0; }
.story-card--compact > a { display: grid; grid-template-columns: 128px 1fr; gap: 14px; }
.story-card--compact .story-card__image { aspect-ratio: 1 / 1; }
.story-card--compact .story-card__copy { padding: 4px 0 12px 0; }
.story-card--compact h3 { font-size: 18px; }
.sponsored-badge {
    position: absolute; top: 12px; left: 12px; padding: 7px 10px; border-radius: 999px;
    background: rgba(5,9,17,.82); border: 1px solid rgba(255,255,255,.18);
    color: #dce9ff; font-size: 9px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase;
}
.empty-state {
    padding: 34px; border: 1px solid var(--line); background: var(--bg-soft); color: var(--muted);
}
.home-cta {
    padding: 120px max(20px, calc((100vw - var(--max)) / 2)); text-align: center;
    background: radial-gradient(circle at center, rgba(111, 215, 255, .12), transparent 54%);
}
.home-cta h2 { max-width: 980px; margin: auto; font-size: clamp(48px, 7vw, 96px); line-height: .95; letter-spacing: -.07em; }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.button--tech { background: linear-gradient(180deg, #7ae0ff, #50c5f1); color: #061019; border-color: transparent; }
.button--ghost { background: rgba(255,255,255,.05); }
.button--light { margin-top: 32px; background: var(--text); color: var(--bg); border-color: var(--text); }

.subpage { padding-top: var(--header-h); }
.hero {
    padding: 110px max(20px, calc((100vw - var(--max)) / 2)) 70px; min-height: 74vh;
    display: flex; flex-direction: column; justify-content: flex-end;
    background: radial-gradient(circle at 18% 12%, rgba(111, 215, 255, .18), transparent 40%);
}
.hero--compact { min-height: 52vh; }
.hero h1 { max-width: 1120px; margin: 0; font-size: clamp(56px, 8vw, 116px); line-height: .9; letter-spacing: -.075em; }
.hero__lead { max-width: 740px; margin: 24px 0 0; color: #c7d7ea; font-size: 19px; line-height: 1.65; }
.service-grid-detailed { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; padding: 1px; background: var(--line); }
.service-grid-detailed article { min-height: 540px; padding: clamp(28px, 4vw, 56px); }
.service-meta { display: flex; justify-content: space-between; color: var(--muted); font-size: 11px; letter-spacing: .1em; }
.service-grid-detailed h2 { margin: 92px 0 0; font-size: clamp(40px, 4vw, 64px); line-height: .98; letter-spacing: -.06em; }
.service-grid-detailed p { max-width: 560px; color: var(--muted); font-size: 17px; line-height: 1.75; }
.service-grid-detailed ul { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 20px; margin: 36px 0 0; padding: 0; list-style: none; }
.service-grid-detailed li { padding-top: 10px; border-top: 1px solid var(--line); font-size: 13px; color: #d7e2ef; }
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); }
.process-grid article { min-height: 290px; padding: 28px; }
.process-grid span { color: var(--tech); font-size: 10px; font-weight: 900; letter-spacing: .1em; }
.process-grid h3 { margin: 72px 0 0; font-size: 27px; }
.process-grid p { color: var(--muted); line-height: 1.65; }

.media-header {
    max-width: var(--max); margin: auto; padding: 48px max(20px, calc((100vw - var(--max)) / 2)) 20px; border-bottom: 1px solid var(--line);
}
.media-header__brand { display: flex; align-items: baseline; gap: 12px; }
.media-header__brand strong { font-size: clamp(34px, 4vw, 64px); letter-spacing: -.06em; }
.media-header__brand span { color: #dce9ff; font-size: clamp(18px, 2vw, 30px); font-weight: 800; letter-spacing: .05em; }
.media-header__nav, .media-header__menu { display: flex; flex-wrap: wrap; gap: 14px; margin: 18px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: 12px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.media-lead {
    max-width: var(--max); margin: auto; padding: 28px max(20px, calc((100vw - var(--max)) / 2)) 64px;
    display: grid; grid-template-columns: 1.35fr .65fr; gap: 22px;
}
.lead-story { border: 1px solid var(--line); background: var(--bg-soft); overflow: hidden; }
.lead-story__image { aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface); }
.lead-story__image img { width: 100%; height: 100%; object-fit: cover; }
.lead-story__copy { padding: 22px; }
.lead-story h1 { margin: 0; font-size: clamp(42px, 5vw, 72px); line-height: .96; letter-spacing: -.06em; }
.lead-story__copy > p:not(.kicker) { max-width: 760px; color: var(--muted); font-size: 18px; line-height: 1.55; }
.lead-stack { display: grid; gap: 14px; }
.media-layout {
    max-width: var(--max); margin: auto; padding: 70px max(20px, calc((100vw - var(--max)) / 2)) 120px;
    display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 38px; border-top: 1px solid var(--line);
}
.media-sidebar { min-width: 0; }
.ak-widget { padding: 22px; border: 1px solid var(--line); margin-bottom: 20px; }
.ak-widget__title { margin: 0 0 12px; font-size: 24px; line-height: 1.1; }
.ak-widget, .archive-description { color: var(--muted); line-height: 1.6; }

.ad-card {
    max-width: 920px; margin: 22px auto; padding: 0 max(20px, calc((100vw - var(--max)) / 2));
}
.ad-card__label { margin-bottom: 8px; color: #89a3c8; font-size: 10px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; text-align: center; }
.ad-card__shell {
    display: block; border: 1px solid var(--line); border-radius: 22px; overflow: hidden;
    background: linear-gradient(180deg, rgba(255,255,255,.03), transparent 100%), var(--bg-soft);
}
.ad-card__shell--placeholder { min-height: 112px; display: grid; grid-template-columns: 72px 1fr; align-items: center; gap: 18px; padding: 20px; }
.ad-card__placeholder-icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 18px; background: linear-gradient(180deg, #0f2f57, #0d1c31); color: #dce9ff; font-size: 24px; font-weight: 900; }
.ad-card__placeholder-copy strong { display: block; font-size: 18px; }
.ad-card__placeholder-copy span { display: block; margin-top: 5px; color: var(--muted); font-size: 14px; }
.ad-card__shell--video, .ad-card__shell--image { position: relative; }
.ad-card__video, .ad-card__image { width: 100%; display: block; aspect-ratio: 16 / 7; max-height: 340px; object-fit: cover; }
.ad-card__overlay { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px; background: linear-gradient(to top, rgba(5,9,17,.82), transparent); }
.ad-card__overlay strong { font-size: 18px; }
.ad-card__native-grid { display: grid; grid-template-columns: 220px 1fr; gap: 0; }
.ad-card__native-media { min-height: 150px; }
.ad-card__native-media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 1 / 1; }
.ad-card__native-fallback { display: grid; width: 100%; height: 100%; place-items: center; background: radial-gradient(circle, rgba(111,215,255,.18), transparent 60%), #0c1726; color: #dce9ff; font-size: 44px; font-weight: 900; }
.ad-card__native-copy { display: flex; flex-direction: column; justify-content: center; gap: 8px; padding: 18px; }
.ad-card__sponsor { color: #dce9ff; font-size: 10px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.ad-card__native-copy strong { font-size: 18px; line-height: 1.3; }
.ad-card__native-copy em { color: var(--muted); font-style: normal; font-size: 12px; }
.ad-card__shell--html { padding: 12px; }

.ad-card--header,
.ad-card--media_top,
.ad-card--media_feed,
.ad-card--footer {
    max-width: 980px;
}

.ad-card--article_top,
.ad-card--article_inline_1,
.ad-card--article_inline_2,
.ad-card--article_inline_3,
.ad-card--article_bottom {
    max-width: 760px;
}

.article-body .ad-card {
    max-width: 100%;
}

.article-sidebar .ad-card,
.ad-card--article_sidebar {
    max-width: 100%;
    margin: 0 0 24px;
    padding: 0;
}

.article-sidebar .ad-card__video,
.article-sidebar .ad-card__image,
.ad-card--article_sidebar .ad-card__video,
.ad-card--article_sidebar .ad-card__image {
    aspect-ratio: 1 / 1;
    max-height: 280px;
}

.article-shell { padding-top: var(--header-h); }
.news-article { max-width: var(--max); margin: auto; padding: 72px max(20px, calc((100vw - var(--max)) / 2)) 0; }
.article-header { max-width: 1080px; margin: auto; }
.article-header__top { display: flex; gap: 14px; color: var(--muted); font-size: 10px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.article-header__top a { color: #dce9ff; }
.sponsored-disclosure {
    display: inline-block; margin-top: 20px; padding: 8px 10px; border-radius: 999px;
    border: 1px solid rgba(220,233,255,.24); color: #dce9ff; font-size: 10px; font-weight: 900; letter-spacing: .11em; text-transform: uppercase;
}
.article-header h1 { margin: 20px 0 0; font-size: clamp(50px, 7vw, 102px); line-height: .94; letter-spacing: -.07em; }
.article-deck { max-width: 850px; margin: 24px 0 0; color: #cfe1f4; font-size: clamp(18px, 2vw, 25px); line-height: 1.48; }
.article-byline { display: flex; justify-content: space-between; gap: 20px; margin-top: 34px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.article-byline strong { display: block; color: var(--text); font-size: 13px; }
.article-hero-image { max-width: 1120px; margin: 42px auto 0; }
.article-hero-image img { width: 100%; max-height: 720px; object-fit: cover; }
.article-hero-image figcaption { margin-top: 8px; color: #8193aa; font-size: 11px; }
.article-layout { max-width: 1040px; margin: 44px auto 0; display: grid; grid-template-columns: minmax(0, 740px) 250px; gap: 44px; }
.article-body { min-width: 0; color: #d9e0e8; font-family: Georgia, "Times New Roman", serif; font-size: 20px; line-height: 1.82; }
.article-body p { margin: 0 0 1.45em; }
.article-body h2, .article-body h3 { color: var(--text); font-family: Inter, ui-sans-serif, sans-serif; line-height: 1.14; letter-spacing: -.035em; }
.article-body h2 { margin: 1.6em 0 .65em; font-size: 36px; }
.article-body h3 { margin: 1.45em 0 .6em; font-size: 28px; }
.article-body a, .inline-link { color: var(--tech); text-decoration: underline; text-underline-offset: 3px; }
.article-body blockquote { margin: 2em 0; padding-left: 20px; border-left: 3px solid var(--tech); color: #c8d6e5; font-size: 24px; line-height: 1.55; }
.article-body .ad-card { margin: 36px 0; padding: 0; font-family: Inter, ui-sans-serif, sans-serif; }
.article-body .ad-card__video, .article-body .ad-card__image { aspect-ratio: 4 / 5; }
.article-sidebar { min-width: 0; }
.share-box { display: grid; gap: 10px; margin-bottom: 28px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.share-box > span { color: var(--muted); font-size: 10px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.share-box a, .copy-link { width: max-content; padding: 0; border: 0; background: none; color: var(--text); cursor: pointer; font-weight: 750; }
.article-sources { margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--line); font-family: Inter, ui-sans-serif, sans-serif; font-size: 14px; }
.article-sources h2 { margin: 0 0 18px; font-size: 24px; }
.article-sources li { margin: 10px 0; word-break: break-all; }
.related-stories { padding-top: 86px; }

.archive-page, .generic-page {
    max-width: var(--max); min-height: 75vh; margin: auto; padding: 144px max(20px, calc((100vw - var(--max)) / 2)) 110px;
}
.archive-head, .generic-page > article > header { margin-bottom: 48px; }
.archive-head h1, .generic-page h1, .error-page h1 { max-width: 1080px; margin: 0; font-size: clamp(50px, 7vw, 96px); line-height: .95; letter-spacing: -.065em; }
.generic-content { max-width: 800px; color: #d9e0e8; font-size: 18px; line-height: 1.8; }
.project-hero { max-width: 1100px; margin: 0 auto 44px; }

.projects-list { max-width: var(--max); margin: auto; padding: 40px max(20px, calc((100vw - var(--max)) / 2)) 110px; }
.project-row { display: grid; grid-template-columns: .82fr 1.18fr; gap: 48px; align-items: center; padding: 50px 0; border-bottom: 1px solid var(--line); }
.project-row__image { display: grid; aspect-ratio: 16 / 10; place-items: center; overflow: hidden; border-radius: 24px; background: radial-gradient(circle at center, rgba(111,215,255,.18), transparent 55%), #0b1524; }
.project-row__image img { width: 100%; height: 100%; object-fit: cover; }
.project-row__image span { font-size: clamp(84px, 10vw, 156px); font-weight: 950; }
.project-row h2 { margin: 0; font-size: clamp(44px, 5vw, 80px); letter-spacing: -.06em; }
.project-row p:not(.kicker) { max-width: 640px; color: var(--muted); font-size: 18px; line-height: 1.7; }

.contact-layout { min-height: calc(100vh - var(--header-h)); display: grid; grid-template-columns: .9fr 1.1fr; }
.contact-copy, .contact-form-wrap { display: flex; flex-direction: column; justify-content: center; padding: 90px max(20px, 5vw); }
.contact-copy { border-right: 1px solid var(--line); background: radial-gradient(circle at 20% 20%, rgba(111,215,255,.12), transparent 44%); }
.contact-copy h1 { margin: 0; font-size: clamp(54px, 8vw, 108px); line-height: .92; letter-spacing: -.07em; }
.contact-copy > p:not(.kicker) { max-width: 650px; color: var(--muted); font-size: 18px; line-height: 1.7; }
.contact-form { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.contact-form label { display: flex; flex-direction: column; gap: 8px; }
.contact-form label span { color: var(--muted); font-size: 12px; font-weight: 800; }
.contact-form input, .contact-form textarea, .contact-form select { width: 100%; padding: 14px 15px; border: 1px solid var(--line); border-radius: 18px; outline: 0; background: var(--surface); color: var(--text); }
.contact-form__wide { grid-column: 1 / -1; }
.notice { margin-bottom: 18px; padding: 14px 16px; border-radius: 16px; border: 1px solid #8ca9d3; color: #dce9ff; }
.notice--success { border-color: #6fd7ff; color: #c8f2ff; }

.error-page { min-height: 100vh; display: grid; align-content: center; justify-items: start; padding: 100px max(20px, calc((100vw - var(--max)) / 2)); }

.site-footer { padding: 28px max(20px, calc((100vw - var(--max)) / 2)) 40px; border-top: 1px solid var(--line); }
.footer-widgets { max-width: var(--max); margin: 0 auto 24px; }
.site-footer__main { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: 1.2fr auto auto auto; gap: 28px; align-items: end; }
.site-footer__brand > a { color: var(--text); font-size: 15px; font-weight: 950; letter-spacing: .12em; }
.site-footer__brand p { margin: 8px 0 0; color: var(--muted); }
.footer-nav__list, .footer-links { display: flex; gap: 14px; margin: 0; padding: 0; list-style: none; color: var(--muted); font-size: 13px; }
.site-footer__copy { margin: 0; color: var(--muted); font-size: 12px; }

@media (max-width: 1080px) {
    .site-header { grid-template-columns: auto 1fr auto; }
    .site-nav { display: none; }
    .site-motto, .header-cta { display: none; }
    .menu-toggle { display: block; }
    .home-card-grid { grid-template-columns: repeat(2, 1fr); }
    .story-grid { grid-template-columns: repeat(2, 1fr); }
    .story-grid--home .story-card--featured { grid-column: 1 / -1; }
    .service-grid-detailed { grid-template-columns: 1fr; }
    .process-grid { grid-template-columns: repeat(2, 1fr); }
    .media-lead { grid-template-columns: 1fr; }
    .lead-stack { grid-template-columns: repeat(2, 1fr); }
    .media-layout { grid-template-columns: 1fr; }
    .article-layout { grid-template-columns: minmax(0, 1fr); }
    .article-sidebar { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
    .project-row { grid-template-columns: 1fr; }
    .contact-layout { grid-template-columns: 1fr; }
    .contact-copy { border-right: 0; border-bottom: 1px solid var(--line); }
    .site-footer__main { grid-template-columns: 1fr 1fr; align-items: start; }
}

@media (max-width: 720px) {
    :root { --header-h: 70px; }
    body.admin-bar .site-header { top: 46px; }
    .site-header { padding: 0 18px; }
    .site-brand__wordmark { font-size: 15px; }

    .gateway-hero {
        display: block; min-height: 100svh; background: #07111d;
    }
    .gateway-hero__panel {
        position: absolute; top: var(--header-h); left: 0; width: 100%;
        min-height: calc(100svh - var(--header-h)); padding: 22px;
    }
    .gateway-hero__panel--tech {
        clip-path: polygon(0 0, 100% 0, 0 100%);
        align-items: flex-start;
        background: radial-gradient(circle at 20% 18%, rgba(111,215,255,.34), transparent 45%), linear-gradient(145deg, #071f35, #0b2744 60%, #08111b);
    }
    .gateway-hero__panel--media {
        clip-path: polygon(100% 0, 100% 100%, 0 100%);
        align-items: flex-end;
        background: radial-gradient(circle at 78% 78%, rgba(199,219,255,.25), transparent 46%), linear-gradient(325deg, #08121f, #163053 60%, #08111b);
    }
    .gateway-hero__copy { max-width: none; }
    .gateway-hero__copy--media { text-align: right; margin-left: auto; }
    .gateway-hero__copy span { font-size: 10px; margin-bottom: 8px; }
    .gateway-hero__copy h1, .gateway-hero__copy h2 { font-size: clamp(38px, 12vw, 58px); max-width: 240px; }
    .gateway-hero__copy p { display: none; }
    .gateway-hero__copy strong { margin-top: 16px; font-size: 11px; }
    .gateway-hero__logo-badge {
        width: 126px; height: 126px; padding: 5px; top: 52%;
        box-shadow: 0 10px 30px rgba(0,0,0,.28), 0 0 0 6px rgba(255,255,255,.03);
    }
    .gateway-hero__logo-badge .custom-logo-link { width: 106px; height: 106px; }
    .gateway-hero__logo-badge img, .gateway-hero__logo-fallback { width: 106px; height: 106px; }
    .gateway-hero__logo-fallback { font-size: 42px; }
    .gateway-hero__logo-badge em { font-size: 8px; }

    .home-intro, .home-news, .process, .related-stories { padding: 78px 20px; }
    .home-card-grid, .story-grid, .process-grid { grid-template-columns: 1fr; }
    .lead-stack { grid-template-columns: 1fr; }
    .media-layout { padding: 60px 20px 90px; }
    .media-header { padding: 40px 20px 18px; }
    .media-lead { padding: 24px 20px 54px; }
    .home-info-card, .service-grid-detailed article { min-height: auto; }
    .home-info-card h3 { margin-top: 44px; }
    .home-cta { padding: 92px 20px; }
    .hero { padding: 92px 20px 54px; min-height: 64vh; }
    .hero h1, .contact-copy h1 { font-size: clamp(46px, 14vw, 78px); }
    .service-grid-detailed h2 { margin-top: 60px; font-size: clamp(34px, 10vw, 56px); }
    .service-grid-detailed ul { grid-template-columns: 1fr; }
    .section-head { align-items: flex-start; flex-direction: column; }

    .ad-card { max-width: 100%; padding: 0 20px; }
    .ad-card__video, .ad-card__image { aspect-ratio: 6 / 5; max-height: 250px; }
    .ad-card__shell--placeholder { grid-template-columns: 58px 1fr; gap: 14px; padding: 16px; min-height: 96px; }
    .ad-card__placeholder-icon { width: 48px; height: 48px; border-radius: 14px; font-size: 20px; }
    .ad-card__native-grid { grid-template-columns: 1fr; }
    .ad-card__native-media { min-height: 0; }
    .ad-card__native-media img { aspect-ratio: 6 / 5; }
    .article-body .ad-card { margin: 26px 0; }

    .news-article { padding: 54px 20px 0; }
    .article-header h1 { font-size: clamp(42px, 13vw, 72px); }
    .article-byline { flex-direction: column; gap: 8px; }
    .article-layout { margin-top: 34px; }
    .article-body { font-size: 18px; line-height: 1.76; }
    .article-body h2 { font-size: 31px; }
    .article-sidebar { grid-template-columns: 1fr; }

    .archive-page, .generic-page, .projects-list { padding-left: 20px; padding-right: 20px; }
    .contact-copy, .contact-form-wrap { padding: 74px 20px; }
    .contact-form { grid-template-columns: 1fr; }
    .contact-form__wide { grid-column: auto; }

    .site-footer { padding: 24px 20px 34px; }
    .site-footer__main { grid-template-columns: 1fr; gap: 20px; }
    .footer-nav__list, .footer-links { flex-wrap: wrap; }
}
