/* NobleScale: shared brand tokens and components. */
:root {
  --navy:#082859; --navy-deep:#031126; --silver:#C8CDD4;
  --sapphire:#0878C9; --sapphire-bright:#39A7F0; --white:#FFFFFF;
  --text:#F5F7FB; --muted:#B9C4D3; --subtle:#8495AD; --copper:#D8A070;
  --surface:#081A31; --surface-2:#0C2039;
  --line:rgba(200,205,212,.16); --line-strong:rgba(200,205,212,.28);
  --type-h1:clamp(2.25rem,6vw,2.75rem); --type-h2:2rem; --type-h3:1.375rem;
  --type-body:1.0625rem; --type-small:.9375rem; --type-label:.8125rem;
  --weight-body:400; --weight-heading:600; --weight-emphasis:700;
  --radius-button:9px; --radius-card:16px; --radius-pill:999px;
  --motion-fast:150ms; --motion-standard:250ms; --motion-ease:cubic-bezier(.2,.7,.2,1);
  --section-space:56px; --max:1320px;
}
* { box-sizing:border-box; }
html { scroll-behavior:smooth; background:var(--navy-deep); }
body { margin:0; font-family:"Source Sans 3",Arial,sans-serif; font-size:var(--type-body); font-weight:var(--weight-body); line-height:1.65; color:var(--text); background:var(--navy-deep); -webkit-font-smoothing:antialiased; }
a { color:inherit; }
img { display:block; max-width:100%; height:auto; }
button { font:inherit; cursor:pointer; }
.container { width:min(calc(100% - 80px),var(--max)); margin-inline:auto; }
.narrow { max-width:820px; }
.centered { text-align:center; }
.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; }
a:focus-visible,button:focus-visible { outline:2px solid var(--sapphire-bright); outline-offset:4px; }
.skip-link { position:fixed; left:16px; top:-100px; z-index:200; padding:12px 20px; background:var(--white); color:var(--navy-deep); }
.skip-link:focus { top:12px; }
h1,h2,h3 { margin-top:0; color:var(--white); font-weight:var(--weight-heading); line-height:1.18; text-wrap:balance; }
h1 { font-size:var(--type-h1); letter-spacing:-.025em; margin-bottom:24px; }
h2 { font-size:var(--type-h2); letter-spacing:-.02em; margin-bottom:17px; }
h3 { font-size:var(--type-h3); letter-spacing:-.01em; margin-bottom:11px; }
h1 span { color:var(--sapphire-bright); }
p { font-size:var(--type-body); }
.eyebrow,.card-kicker,.portfolio-label,.footer-links h2 { font-size:var(--type-label); font-weight:var(--weight-emphasis); line-height:1.4; letter-spacing:.13em; text-transform:uppercase; color:var(--sapphire-bright); }
.eyebrow { margin:0 0 14px; }

/* Header and navigation. The horizontal mark stays at least 240px. */
.site-header { position:sticky; top:0; z-index:50; background:rgba(3,17,38,.96); border-bottom:1px solid var(--line); backdrop-filter:blur(18px); transition:border-color var(--motion-fast) var(--motion-ease),box-shadow var(--motion-fast) var(--motion-ease); }
.scrolled .site-header { border-color:var(--line-strong); box-shadow:0 12px 35px rgba(0,0,0,.2); }
.nav-wrap { min-height:92px; display:flex; align-items:center; justify-content:space-between; gap:24px; }
.brand-logo { display:block; flex:0 0 250px; width:250px; }
.brand-logo img { width:100%; }
.primary-nav { display:flex; align-items:center; gap:28px; }
.primary-nav a { display:inline-flex; align-items:center; min-height:44px; position:relative; color:var(--silver); font-weight:var(--weight-heading); text-decoration:none; transition:color var(--motion-fast) var(--motion-ease); }
.primary-nav a::after { content:""; position:absolute; left:0; right:0; bottom:3px; height:2px; background:var(--sapphire-bright); transform:scaleX(0); transform-origin:left; transition:transform var(--motion-standard) var(--motion-ease); }
.primary-nav a:hover,.primary-nav a[aria-current="page"] { color:var(--white); }
.primary-nav a:hover::after,.primary-nav a:focus-visible::after,.primary-nav a[aria-current="page"]::after { transform:scaleX(1); }
.primary-nav .nav-contact { border:1px solid rgba(57,167,240,.55); border-radius:var(--radius-button); padding:9px 16px; color:var(--white); }
.primary-nav .nav-contact::after { left:16px; right:16px; }
.nav-toggle { display:none; flex:0 0 44px; width:44px; height:44px; border:1px solid var(--line-strong); border-radius:var(--radius-button); background:var(--surface); color:var(--white); }
.nav-toggle span:not(.sr-only) { display:block; width:20px; height:2px; margin:4px auto; background:var(--white); }
.scroll-progress { position:fixed; top:0; left:0; z-index:100; height:3px; width:100%; transform:scaleX(0); transform-origin:left; background:var(--sapphire-bright); pointer-events:none; }

/* Hero and shared sections. Light belongs to the background, never the mark. */
.hero,.page-hero { background:radial-gradient(circle at 85% 30%,rgba(8,120,201,.2),transparent 52%),var(--navy-deep); border-bottom:1px solid var(--line); }
.hero { padding:64px 0; background:var(--navy-deep); }
.hero-grid { display:grid; grid-template-columns:minmax(0,1fr) 650px; gap:48px; align-items:center; }
.hero-lede { max-width:680px; margin:0; color:var(--muted); }
.hero-actions { display:flex; flex-wrap:wrap; gap:14px; margin-top:34px; }
.page-hero,.section,.cta-section { padding-block:var(--section-space); }
.section,.cta-section { background:var(--navy-deep); }
.section + .section,.cta-section { border-top:1px solid var(--line); }
.section-heading { max-width:820px; margin-bottom:32px; }
.section-heading > p:last-child,.prose p,.page-hero p,.contact-card p,.large-copy { color:var(--muted); }
.page-hero-grid { display:grid; grid-template-columns:minmax(0,1fr) 235px; gap:62px; align-items:center; }
.page-hero p:last-child { max-width:760px; }
.page-symbol { width:205px; justify-self:end; }
.split { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:64px; align-items:start; }
.mission-layout { grid-template-columns:1fr; gap:16px; }
.mission-layout h2,.mission-layout .prose p { margin:0; }
.mission-layout .prose { max-width:760px; }

/* Actions. Standalone arrow links intentionally have no underline. */
.button { display:inline-flex; align-items:center; justify-content:center; min-height:50px; padding:12px 21px; border:1px solid var(--line-strong); border-radius:var(--radius-button); font-weight:var(--weight-emphasis); text-decoration:none; transition:transform var(--motion-fast) var(--motion-ease),background-color var(--motion-fast) var(--motion-ease),border-color var(--motion-fast) var(--motion-ease); }
.button-primary { background:var(--sapphire); border-color:var(--sapphire); color:var(--white); }
.button-primary:hover,.button-primary:focus-visible { background:var(--navy); border-color:var(--sapphire-bright); }
.button-secondary { background:transparent; color:var(--white); }
.button-secondary:hover { background:rgba(57,167,240,.07); border-color:var(--sapphire-bright); }
.model-link,.founder-link,.contact-email { display:inline-flex; align-items:center; gap:8px; min-height:44px; color:var(--sapphire-bright); font-weight:var(--weight-emphasis); text-decoration:none; }
.model-link:hover,.founder-link:hover,.contact-email:hover { color:var(--white); }
.model-link span[aria-hidden],.founder-link span[aria-hidden],.contact-email span[aria-hidden] { display:inline-block; transition:transform var(--motion-fast) var(--motion-ease); }
.model-link:hover span[aria-hidden],.model-link:focus-visible span[aria-hidden],.founder-link:hover span[aria-hidden],.contact-email:hover span[aria-hidden] { transform:translateX(4px); }
.model-link { align-self:flex-start; margin-top:auto; padding-top:24px; }
.model-link::after { content:""; position:absolute; inset:0; border-radius:inherit; }

/* Card system. Informational tiles stay stationary. */
.pathway-grid,.capability-grid,.values-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:20px; }
.pathway-card,.service-detail,.values-grid article,.contact-card,.portfolio-feature,.capability-grid > div { border:1px solid var(--line); border-radius:var(--radius-card); background:linear-gradient(155deg,var(--surface-2),var(--surface)); }
.pathway-card { position:relative; display:flex; flex-direction:column; padding:30px; transition:transform var(--motion-standard) var(--motion-ease),border-color var(--motion-standard) var(--motion-ease); }
.pathway-card:hover,.pathway-card:focus-within { border-color:rgba(57,167,240,.4); }
.pathway-card p { margin-bottom:0; color:var(--muted); }
.card-kicker { display:inline-block; margin-bottom:18px; }
.capability-grid > div { padding:24px; }
.capability-grid h3 { margin:0 0 8px; }
.capability-grid p { margin:0; color:var(--muted); }
.values-grid article { padding:30px; }
.values-grid p { color:var(--muted); margin-bottom:0; }
.service-stack { display:grid; gap:20px; }
.service-detail { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.5fr); gap:50px; padding:36px; scroll-margin-top:110px; }
.service-detail p { color:var(--muted); }
.feature-list { margin:21px 0 0; padding:0; list-style:none; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:9px 20px; }
.feature-list li { position:relative; padding-left:18px; color:var(--silver); }
.feature-list li::before { content:""; position:absolute; left:0; top:.72em; width:6px; height:6px; background:var(--sapphire-bright); }

/* Portfolio and closing action. */
.portfolio-feature { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:64px; padding:48px; align-items:center; }
.portfolio-copy { max-width:620px; }
.portfolio-label { display:inline-flex; margin:0 0 24px; padding:7px 12px; border:1px solid var(--line); border-radius:var(--radius-pill); color:var(--silver); }
.product-logo-shell { display:block; width:min(100%,380px); }
.product-logo-shell img { width:100%; }
.product-tagline { margin:20px 0; color:var(--copper); font-weight:var(--weight-heading); }
.status-pill { display:inline-flex; margin-top:13px; padding:8px 13px; border:1px solid var(--line-strong); border-radius:var(--radius-pill); font-size:var(--type-small); font-weight:var(--weight-heading); }
.portfolio-details p,.product-benefits { color:var(--muted); }
.product-benefits { padding-left:20px; margin:24px 0 0; }
.product-benefits li { padding-left:6px; margin-top:12px; }
.product-benefits li::marker { color:var(--sapphire-bright); }
.cta-grid { display:flex; align-items:center; justify-content:space-between; gap:36px; padding:40px; border:1px solid var(--line); border-radius:var(--radius-card); background:radial-gradient(circle at 90% 50%,rgba(8,120,201,.1),transparent 65%),var(--surface); }
.cta-grid h2 { margin-bottom:9px; }
.cta-grid p:not(.eyebrow) { margin:0; color:var(--muted); }
.cta-grid .button { flex-shrink:0; }

/* About and contact. */
.founder-profile { display:grid; grid-template-columns:112px minmax(0,1fr); gap:24px; align-items:center; }
.founder-photo { width:112px; height:112px; object-fit:cover; object-position:center top; border-radius:var(--radius-pill); }
.founder-role { font-size:var(--type-small); color:var(--silver); margin:0; }
.founder-link { font-size:var(--type-small); padding-block:10px; }
.contact-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px; }
.contact-card { display:flex; flex-direction:column; padding:30px; min-width:0; }
.contact-card p { margin-top:0; }
.contact-email { margin-top:auto; overflow-wrap:anywhere; }
.contact-email span { min-width:0; }
.copy-email { min-height:44px; align-self:flex-start; margin-top:14px; padding:10px 16px; background:var(--surface-2); color:var(--white); border:1px solid var(--line-strong); border-radius:var(--radius-button); font-weight:var(--weight-heading); }
.copy-status { min-height:1.5em; margin-top:8px; font-size:var(--type-small); }
.large-copy { margin-bottom:27px; }
.prose a { color:var(--sapphire-bright); text-underline-offset:3px; overflow-wrap:anywhere; }
.prose h2 { margin-top:32px; }

/* Footer: equal tap rows, restrained labels and approved background. */
.site-footer { padding:50px 0; background:var(--navy-deep); border-top:1px solid var(--line); }
.footer-grid { display:grid; grid-template-columns:minmax(240px,1fr) auto auto minmax(220px,auto); column-gap:clamp(24px,4vw,64px); row-gap:32px; align-items:start; }
.footer-identity { max-width:340px; }
.footer-logo { width:250px; }
.footer-identity p { margin:16px 0 0; color:var(--muted); font-size:var(--type-small); line-height:1.5; }
.footer-links { display:flex; flex-direction:column; align-items:flex-start; min-width:0; }
.footer-links h2 { margin:0 0 12px; }
.footer-links a,.footer-links > span { min-height:44px; display:flex; align-items:center; padding:8px 0; font-size:var(--type-small); line-height:1.5; overflow-wrap:anywhere; max-width:100%; }
.footer-links a { color:var(--muted); text-decoration:none; }
.footer-links > span { color:var(--subtle); }
.footer-links a:hover,.footer-links a:focus-visible { color:var(--sapphire-bright); text-decoration:underline; text-underline-offset:4px; }
.footer-bottom { text-align:left; margin-top:32px; padding-top:24px; border-top:1px solid var(--line); color:var(--muted); font-size:var(--type-small); }

/* Reveal only unseen content; JS unobserves it after the first reveal. */
.reveal { opacity:0; transform:translate3d(0,8px,0); transition:opacity var(--motion-standard) var(--motion-ease),transform var(--motion-standard) var(--motion-ease); }
.reveal.is-visible,.reveal:focus-within { opacity:1; transform:none; }
@media(hover:hover) { .pathway-card:hover { transform:translateY(-3px); } .button:hover { transform:translateY(-2px); } }
@media(max-width:1100px) {
  .footer-grid { grid-template-columns:1fr 1fr minmax(220px,1.4fr); }
  .footer-identity { grid-column:1/-1; }
}
@media(max-width:1020px) {
  .pathway-card { padding:22px; }
  .portfolio-feature { gap:32px; padding:32px; }
  .split { grid-template-columns:1fr; gap:32px; }
  .mission-layout { gap:16px; }
}
@media(max-width:760px) {
  .container { width:calc(100% - 32px); }
  .nav-wrap { min-height:80px; gap:4px; }
  .brand-logo { width:240px; flex-basis:240px; }
  .nav-toggle { display:block; }
  .primary-nav { display:none; position:absolute; top:100%; left:16px; right:16px; flex-direction:column; align-items:stretch; gap:0; background:var(--navy-deep); border:1px solid var(--line-strong); border-radius:var(--radius-card); overflow:hidden; box-shadow:0 22px 45px rgba(0,0,0,.34); }
  .primary-nav.open { display:flex; }
  .primary-nav a,.primary-nav .nav-contact { padding:16px 18px; border:0; border-bottom:1px solid var(--line); border-radius:0; }
  .primary-nav a::after { display:none; }
  .primary-nav a[aria-current="page"] { box-shadow:inset 3px 0 var(--sapphire-bright); background:rgba(57,167,240,.07); }
  .hero { padding:44px 0; }
  .hero-grid,.page-hero-grid { grid-template-columns:1fr; gap:24px; }
  .page-symbol { display:none; }
  .pathway-grid,.capability-grid,.values-grid,.contact-grid,.feature-list { grid-template-columns:1fr; }
  .pathway-card,.values-grid article { padding:24px; }
  .capability-grid { gap:0; }
  .capability-grid > div { padding:18px 0; border:0; border-bottom:1px solid var(--line); border-radius:0; background:transparent; }
  .portfolio-feature { grid-template-columns:1fr; padding:24px; gap:32px; }
  .product-logo-shell { max-width:280px; }
  .service-detail { grid-template-columns:1fr; padding:24px; gap:18px; }
  .cta-grid { flex-direction:column; align-items:flex-start; padding:28px 24px; }
  .cta-grid .button { width:100%; }
  .contact-card { padding:24px; }
  .founder-profile { grid-template-columns:88px minmax(0,1fr); gap:16px; }
  .founder-photo { width:88px; height:88px; }
}
@media(max-width:640px) {
  .footer-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .footer-links:last-child { grid-column:1/-1; }
}
@media(max-width:480px) { .hero-actions .button { width:100%; } }

/* Symmetric foundations map: the artwork stays 240px at both desktop sizes.
   Nodes sit at 50%/22%, 22%/50%, 78%/50%, and 50%/80% of its 240 x 230 box. */
.studio-map { position:relative; width:650px; height:520px; margin:0; justify-self:end; isolation:isolate; }
.studio-map::before { content:""; position:absolute; width:560px; height:440px; left:45px; top:40px; z-index:-1; pointer-events:none; background:radial-gradient(ellipse,var(--sapphire),transparent 70%); opacity:.22; }
.studio-map img { position:absolute; left:205px; top:145px; width:240px; height:auto; }
.studio-map svg { position:absolute; inset:0; width:650px; height:520px; pointer-events:none; }
.studio-map .studio-map-compact { display:none; }
.studio-map line { stroke:var(--line-strong); stroke-width:1; }
.studio-map .node { fill:var(--sapphire-bright); }
.studio-map .node-ring { fill:none; stroke:var(--sapphire-bright); stroke-opacity:.35; stroke-width:1; }
.studio-map .pillar { position:absolute; width:180px; }
.studio-map .pillar.center { width:240px; text-align:center; }
.studio-map .pillar b { display:block; font-size:var(--type-label); font-weight:var(--weight-emphasis); letter-spacing:.14em; text-transform:uppercase; color:var(--sapphire-bright); }
.studio-map .pillar span { display:block; margin-top:4px; font-size:var(--type-small); line-height:1.4; color:var(--muted); }
.studio-map .pillar.right { text-align:left; }
.studio-map .pillar.left { text-align:right; }
.studio-map .p-tech { left:205px; top:58px; }
.studio-map .p-prod { left:0; top:253px; }
.studio-map .p-ops { right:0; top:253px; }
.studio-map .p-brand { left:205px; top:414px; }
@media(min-width:1280px) { .studio-map .pillar span { white-space:nowrap; } }

/* Narrow side labels may wrap; the symbol, type sizes, and straight lines stay intact. */
@media(min-width:901px) and (max-width:1279px) {
  .hero-grid { grid-template-columns:minmax(0,1fr) 480px; gap:32px; }
  .studio-map { width:480px; }
  .studio-map img { left:120px; }
  .studio-map::before { width:480px; left:0; }
  .studio-map .studio-map-wide { display:none; }
  .studio-map .studio-map-compact { display:block; width:480px; }
  .studio-map .pillar { width:105px; }
  .studio-map .pillar.center { width:240px; left:120px; }
}
@media(max-width:900px) {
  .hero-grid { grid-template-columns:1fr; }
  .studio-map { display:none; }
}

@media(prefers-reduced-motion:reduce) {
  html { scroll-behavior:auto; }
  *,*::before,*::after { transition:none !important; animation:none !important; }
  .reveal { opacity:1; transform:none; }
  .scroll-progress { display:none; }
  .button:hover,.pathway-card:hover,.model-link:hover span[aria-hidden],.model-link:focus-visible span[aria-hidden],.founder-link:hover span[aria-hidden],.contact-email:hover span[aria-hidden] { transform:none; }
}

/* Discourage casual logo dragging; linked logos remain accessible. */
img[draggable="false"] { -webkit-user-drag:none; user-select:none; }

/* Give laptop copy room while scaling the whole map and its connectors together. */
@media(min-width:901px) and (max-width:1100px) {
  .hero-grid { grid-template-columns:minmax(0,1fr) 408px; gap:24px; }
  .studio-map { transform:scale(.85); transform-origin:right center; margin-block:-39px; }
  .hero-actions { gap:10px; }
  .hero-actions .button { padding-inline:14px; font-size:var(--type-small); }
}
