/* ============================================
   JACOBS.TECH — Global Styles
   The Datum system, multi-page site
   ============================================ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --bg: #0D0C0B; --surface: #141312; --elevated: #1B1A18;
  --rule: #242220; --muted: #847E76; --silver: #8A847C;
  --text: #B0AAA2; --bright: #D4CFC7; --white: #F0EDE8;
  --gold: #BFA361; --gold-mute: rgba(191,163,97,0.07);
  --display: 'Instrument Serif', Georgia, serif;
  --body: 'Inter', -apple-system, sans-serif;
  --mono: 'JetBrains Mono', monospace;
  --px: clamp(28px, 6vw, 96px); --max: 1240px;
}
html { scroll-behavior: smooth; }
body { font-family: var(--body); background: var(--bg); color: var(--text); line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
::selection { background: var(--gold); color: var(--bg); }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
:focus-visible { outline: 1px solid var(--gold); outline-offset: 3px; }

/* Skip link */
.skip-link { position: absolute; top: -100%; left: 16px; z-index: 9999; padding: 12px 20px; background: var(--gold); color: var(--bg); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; transition: top 0.2s; }
.skip-link:focus { top: 12px; }

/* Signature elements */
.diamond { width: 6px; height: 6px; border: 1px solid var(--gold); transform: rotate(45deg); display: inline-block; flex-shrink: 0; transition: background 0.3s, box-shadow 0.3s; }
.diamond.active { background: var(--gold); box-shadow: 0 0 8px var(--gold-mute); }
.ref { font-family: var(--mono); font-size: 0.46rem; letter-spacing: 0.16em; color: var(--muted); text-transform: uppercase; transition: color 0.3s; }

/* --- Navigation --- */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; padding: 26px var(--px); display: flex; align-items: center; justify-content: space-between; transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1); }
.nav.scrolled { background: rgba(13,12,11,0.97); backdrop-filter: blur(14px); padding-top: 14px; padding-bottom: 14px; }
.nav.hidden { transform: translateY(-100%); }
.nav-logo img { height: 22px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a { font-size: 0.7rem; color: var(--silver); letter-spacing: 0.01em; transition: color 0.3s; }
.nav-links a:hover { color: var(--white); }
.nav-cta { color: var(--gold) !important; font-size: 0.6rem !important; letter-spacing: 0.14em !important; text-transform: uppercase; }

/* Nav dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown > a { font-size: 0.7rem; color: var(--silver); letter-spacing: 0.01em; transition: color 0.3s; }
.nav-dropdown > a:hover { color: var(--white); }
.nav-dropdown-menu { position: absolute; top: 100%; left: -16px; padding: 20px 0 16px; min-width: 240px; background: rgba(13,12,11,0.97); backdrop-filter: blur(14px); border: 1px solid var(--rule); opacity: 0; visibility: hidden; transform: translateY(8px); transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1); pointer-events: none; }
.nav-dropdown:hover .nav-dropdown-menu, .nav-dropdown:focus-within .nav-dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); pointer-events: auto; transition-delay: 0s; }
.nav-dropdown-menu::before { content: ''; position: absolute; top: -12px; left: 0; right: 0; height: 12px; }
.nav-dropdown:not(:hover) .nav-dropdown-menu { transition-delay: 0.15s; }
.nav-dropdown-menu a { display: block; padding: 8px 20px; font-size: 0.7rem; color: var(--silver); transition: color 0.2s, background 0.2s; }
.nav-dropdown-menu a:hover { color: var(--white); background: var(--surface); }
.menu-btn { display: none; background: none; border: none; cursor: pointer; width: 44px; height: 44px; flex-direction: column; align-items: flex-end; justify-content: center; gap: 5px; }
.menu-btn span { display: block; height: 1px; background: var(--white); }
.menu-btn span:first-child { width: 18px; } .menu-btn span:last-child { width: 11px; }
.mob-menu { display: none; position: fixed; inset: 0; background: var(--bg); z-index: 200; flex-direction: column; align-items: center; justify-content: center; gap: 28px; }
.mob-menu.open { display: flex; }
.mob-menu a { font-family: var(--display); font-size: 2rem; color: var(--white); } .mob-menu a:hover { color: var(--gold); }
.mob-close { position: absolute; top: calc(24px + env(safe-area-inset-top, 0px)); right: var(--px); background: none; border: none; color: var(--white); font-size: 1.1rem; cursor: pointer; width: 44px; height: 44px; }

/* --- Page Hero (reusable) --- */
.page-hero { padding: clamp(140px, 18vh, 200px) var(--px) clamp(60px, 8vh, 100px); max-width: var(--max); margin: 0 auto; position: relative; }
.page-hero .eyebrow { font-family: var(--mono); font-size: 0.52rem; letter-spacing: 0.26em; text-transform: uppercase; color: var(--gold); margin-bottom: 28px; }
.page-hero h1 { font-family: var(--display); font-size: clamp(2.4rem, 6vw, 4.5rem); font-weight: 400; line-height: 0.96; letter-spacing: -0.02em; color: var(--white); margin-bottom: 24px; }
.page-hero h1 em { font-style: italic; color: var(--gold); }
.page-hero .hero-body { font-size: clamp(0.88rem, 0.95vw, 1rem); color: var(--bright); max-width: 520px; line-height: 1.85; }

/* Page hero with background image */
.page-hero-img { padding: clamp(160px, 20vh, 240px) var(--px) clamp(80px, 10vh, 120px); position: relative; overflow: hidden; }
.page-hero-img::before { content: ''; position: absolute; inset: 0; background-size: cover; background-position: center; filter: brightness(0.2) saturate(0.6); }
.page-hero-img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, var(--bg) 0%, rgba(13,12,11,0.5) 50%, rgba(13,12,11,0.3) 100%); }
.page-hero-img > * { position: relative; z-index: 2; }
.page-hero-img .eyebrow { font-family: var(--mono); font-size: 0.52rem; letter-spacing: 0.26em; text-transform: uppercase; color: var(--gold); margin-bottom: 28px; }
.page-hero-img h1 { font-family: var(--display); font-size: clamp(2.4rem, 6vw, 4.5rem); font-weight: 400; line-height: 0.96; letter-spacing: -0.02em; color: var(--white); margin-bottom: 24px; }
.page-hero-img h1 em { font-style: italic; color: var(--gold); }
.page-hero-img .hero-body { font-size: clamp(0.88rem, 0.95vw, 1rem); color: var(--bright); max-width: 520px; line-height: 1.85; }
/* Service-specific hero images (localized WebP, served first-party) */
.hero-bg-consulting::before { background-image: url('/assets/images/heroes/consulting.webp'); }
.hero-bg-ai::before { background-image: url('/assets/images/heroes/ai.webp'); }
.hero-bg-cloud::before { background-image: url('/assets/images/heroes/cloud.webp'); }
.hero-bg-digital::before { background-image: url('/assets/images/heroes/digital.webp'); }
.hero-bg-managed::before { background-image: url('/assets/images/heroes/managed.webp'); }
.hero-bg-security::before { background-image: url('/assets/images/heroes/security.webp'); }
/* Page-specific hero images */
.hero-bg-approach::before { background-image: url('/assets/images/heroes/approach.webp'); }
.hero-bg-engineering::before { background-image: url('/assets/images/heroes/cloud.webp'); }
.hero-bg-about::before { background-image: url('/assets/images/heroes/about.webp'); }
.hero-bg-insights::before { background-image: url('/assets/images/heroes/insights.webp'); }

/* --- Homepage Hero (cinematic) --- */
.hero { min-height: 100dvh; display: flex; align-items: flex-end; padding: 0 var(--px) clamp(72px, 11vh, 130px); position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; top: -12%; right: -6%; width: 45vw; height: 45vw; max-width: 560px; max-height: 560px; border-radius: 50%; background: radial-gradient(circle, var(--gold-mute) 0%, transparent 50%); pointer-events: none; z-index: 1; }
.hero-sys { position: absolute; inset: 0; pointer-events: none; opacity: 0.4; z-index: 1; }
.hero-sys line { stroke: var(--rule); stroke-width: 0.5; }
.hero-sys .gl { stroke: var(--gold); opacity: 0.3; }
.hero-sys .dm { fill: none; stroke: var(--gold); stroke-width: 0.7; }
.hero-content { max-width: 780px; position: relative; z-index: 2; }
.hero-eyebrow { font-family: var(--mono); font-size: 0.52rem; letter-spacing: 0.26em; text-transform: uppercase; color: var(--gold); margin-bottom: 30px; }
.hero h1 { font-family: var(--display); font-size: clamp(2.6rem, 7vw, 5.5rem); font-weight: 400; line-height: 0.94; letter-spacing: -0.02em; color: var(--white); margin-bottom: 28px; }
.hero h1 em { font-style: italic; color: var(--gold); }
.hero-body { font-size: clamp(0.88rem, 0.95vw, 1rem); color: var(--bright); max-width: 460px; line-height: 1.85; margin-bottom: 40px; }
.hero-link { display: inline-flex; align-items: center; gap: 10px; font-size: 0.64rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); border-bottom: 1px solid rgba(191,163,97,0.3); padding-bottom: 5px; transition: gap 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s; }
.hero-link:hover { gap: 15px; border-color: var(--gold); }
.hero-link::after { content: '→'; font-size: 0.72rem; }

/* --- Sections (reusable) --- */
.section { padding: clamp(96px, 13vh, 170px) var(--px); max-width: var(--max); margin: 0 auto; }
.section-alt { background: #181716; padding: clamp(96px, 13vh, 170px) var(--px); max-width: none; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.section-alt > * { max-width: var(--max); margin-left: auto; margin-right: auto; }
.section-dark { background: var(--surface); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: clamp(96px, 13vh, 170px) var(--px); }
.section-dark .s-inner { max-width: var(--max); margin: 0 auto; }
.section-border { border-top: 1px solid var(--rule); }

/* Section headings */
.s-eyebrow { font-family: var(--mono); font-size: 0.52rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); margin-bottom: 16px; display: flex; align-items: center; gap: 10px; }
.s-h2 { font-family: var(--display); font-size: clamp(1.8rem, 3.5vw, 2.8rem); color: var(--white); line-height: 1.1; margin-bottom: 14px; }
.s-h2 em { font-style: italic; color: var(--gold); }
.s-body { font-size: 0.88rem; color: var(--silver); line-height: 1.75; max-width: 520px; }

/* --- Services (expandable rows) --- */
.svc-intro { margin-bottom: 56px; max-width: 500px; }
.svc-intro h2 { font-family: var(--display); font-size: clamp(1.8rem, 3vw, 2.4rem); color: var(--white); line-height: 1.1; margin-bottom: 12px; }
.svc-intro p { font-size: 0.84rem; color: var(--silver); line-height: 1.7; }
.svc { border-top: 1px solid var(--rule); display: grid; grid-template-columns: 48px 1fr; cursor: pointer; transition: background 0.35s; }
.svc:last-child { border-bottom: 1px solid var(--rule); }
.svc:hover, .svc[aria-expanded="true"] { background: var(--surface); }
.svc-idx { padding: 24px 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; padding-top: 28px; border-right: 1px solid var(--rule); gap: 4px; }
.svc[aria-expanded="true"] .svc-idx .ref { color: var(--gold); }
.svc-ref-map { font-family: var(--mono); font-size: 0.38rem; letter-spacing: 0.06em; color: var(--muted); overflow: hidden; transition: opacity 0.3s, max-height 0.3s; text-align: center; word-break: break-all; line-height: 1.4; }
.js .svc-ref-map { opacity: 0; max-height: 0; }
.svc[aria-expanded="true"] .svc-ref-map { opacity: 1; max-height: 28px; }
.svc-body { padding: 24px 22px; }
.svc-body h3 { font-family: var(--display); font-size: clamp(1.15rem, 1.5vw, 1.4rem); color: var(--bright); transition: color 0.3s; }
.svc:hover .svc-body h3, .svc[aria-expanded="true"] .svc-body h3 { color: var(--white); }
.svc-exp { overflow: hidden; transition: max-height 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s, margin 0.3s; margin-top: 10px; }
.js .svc-exp { opacity: 0; margin-top: 0; max-height: 0; }
.svc[aria-expanded="true"] .svc-exp { opacity: 1; margin-top: 10px; }
.svc-exp p { font-size: 0.78rem; color: var(--silver); line-height: 1.8; max-width: 520px; }
.svc-ref-inline { display: none; }
.svc-exp .svc-link { display: inline-flex; align-items: center; gap: 6px; font-size: 0.64rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold); margin-top: 12px; transition: gap 0.3s; }
.svc-exp .svc-link:hover { gap: 10px; }
.svc-exp .svc-link::after { content: '→'; font-size: 0.68rem; }

/* --- Lifecycle --- */
.lc-head { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: end; margin-bottom: 80px; }
.lc-head h2 { font-family: var(--display); font-size: clamp(2rem, 4vw, 3.2rem); color: var(--white); line-height: 1.0; }
.lc-head p { font-size: 0.82rem; color: var(--silver); line-height: 1.75; }
.lc-flow { display: grid; grid-template-columns: repeat(3, 1fr); position: relative; }
.lc-flow::before { content: ''; position: absolute; top: 12px; left: 15%; right: 15%; height: 1px; background: var(--rule); }
.lc-phase { text-align: center; padding: 0 clamp(8px, 1.5vw, 28px); }
.lc-phase .diamond { margin: 0 auto 28px; position: relative; z-index: 2; background: var(--surface); }
.lc-phase:hover .diamond { background: var(--gold); box-shadow: 0 0 8px var(--gold-mute); }
.lc-phase h3 { font-family: var(--display); font-size: clamp(1.3rem, 1.8vw, 1.7rem); color: var(--white); margin-bottom: 10px; }
.lc-phase p { font-size: 0.78rem; color: var(--silver); line-height: 1.75; max-width: 260px; margin: 0 auto; }

/* --- Philosophy --- */
.phil { padding: clamp(130px, 17vh, 240px) var(--px); max-width: var(--max); margin: 0 auto; }
.phil blockquote { font-family: var(--display); font-style: italic; font-size: clamp(1.4rem, 2.4vw, 2rem); line-height: 1.4; color: var(--bright); max-width: 640px; }

/* --- Engineering Surface --- */
.sys-inner { display: grid; grid-template-columns: 260px 1fr; gap: 56px; align-items: start; }
.sys-text h2 { font-family: var(--display); font-size: clamp(1.5rem, 2.2vw, 1.9rem); color: var(--white); margin-bottom: 10px; }
.sys-text p { font-size: 0.8rem; color: var(--silver); line-height: 1.7; }
.sys-arch { position: relative; padding-left: 32px; }
.sys-arch::before { content: ''; position: absolute; left: 8px; top: 0; bottom: 0; width: 1px; background: linear-gradient(to bottom, var(--gold), var(--rule) 18%, var(--rule) 82%, var(--gold)); opacity: 0.3; }
.sys-layer { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 14px 0; position: relative; transition: background 0.3s; }
.sys-layer + .sys-layer { border-top: 1px solid var(--rule); }
.sys-layer:hover, .sys-layer.highlighted { background: var(--surface); margin-left: -8px; padding-left: 8px; }
.sys-layer::before { content: ''; position: absolute; left: -28px; top: 50%; width: 5px; height: 5px; border: 1px solid var(--gold); transform: translateY(-50%) rotate(45deg); background: var(--bg); transition: background 0.3s; }
.sys-layer:hover::before, .sys-layer.highlighted::before { background: var(--gold); }
.sys-layer.highlighted .lname { color: var(--gold); }
.sys-layer.cross-layer { border-left: 2px solid rgba(191,163,97,0.15); padding-left: 12px; margin-left: -4px; }
.sys-layer.cross-layer::after { content: ''; position: absolute; left: -4px; top: -14px; bottom: -14px; width: 2px; background: linear-gradient(to bottom, transparent, rgba(191,163,97,0.12), transparent); pointer-events: none; }
.sys-layer .lname { font-family: var(--mono); font-size: 0.5rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); padding-top: 3px; transition: color 0.3s; }
.sys-layer .ltech { font-size: 0.76rem; color: var(--text); line-height: 2; word-break: break-word; }

/* --- Editorial Grid --- */
.ed-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 5vw, 80px); align-items: start; }
.ed-grid.flip { direction: rtl; } .ed-grid.flip > * { direction: ltr; }
.ed-content .eyebrow { font-family: var(--mono); font-size: 0.5rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }
.ed-content h2 { font-family: var(--display); font-size: clamp(1.7rem, 2.6vw, 2.2rem); color: var(--white); line-height: 1.12; margin-bottom: 16px; }
.ed-content p { font-size: 0.84rem; color: var(--silver); line-height: 1.8; margin-bottom: 12px; max-width: 420px; }
.ed-content .caps { font-family: var(--mono); font-size: 0.52rem; color: var(--muted); letter-spacing: 0.05em; line-height: 2.4; word-break: break-word; }
.sys-fragment { padding: 24px 0; overflow: hidden; }
.sys-fragment svg { width: 100%; max-width: 340px; height: auto; opacity: 0.5; transition: opacity 0.5s; }
.sys-fragment:hover svg { opacity: 0.7; }

/* --- CTA Section --- */
.cta-section { padding: clamp(140px, 18vh, 260px) var(--px); position: relative; border-top: 1px solid var(--rule); }
.cta-section::before { content: ''; position: absolute; bottom: 30%; left: 50%; transform: translateX(-50%); width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(circle, var(--gold-mute), transparent 55%); pointer-events: none; }
.cta-section h2 { font-family: var(--display); font-size: clamp(2.2rem, 4.5vw, 3.8rem); color: var(--white); line-height: 1.05; margin-bottom: 12px; position: relative; }
.cta-section h2 em { font-style: italic; color: var(--gold); }
.cta-section .cta-body { font-size: 0.88rem; color: var(--silver); max-width: 480px; line-height: 1.75; margin-bottom: 32px; }

/* --- Footer --- */
.footer { padding: 64px var(--px) 28px; }
.f-inner { max-width: var(--max); margin: 0 auto; }
.f-statement { font-family: var(--display); font-style: italic; font-size: 1.1rem; color: var(--bright); margin-bottom: 48px; opacity: 0.7; }
.f-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 36px; margin-bottom: 56px; }
.f-brand img { height: 18px; width: auto; margin-bottom: 12px; }
.f-brand p { font-size: 0.74rem; color: var(--muted); max-width: 260px; line-height: 1.7; }
.f-brand .f-geo { font-family: var(--mono); font-size: 0.56rem; color: var(--muted); letter-spacing: 0.06em; margin-top: 8px; }
.f-col h4 { font-family: var(--mono); font-size: 0.48rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.f-col a { display: block; font-size: 0.74rem; color: var(--silver); margin-bottom: 9px; transition: color 0.3s; }
.f-col a:hover { color: var(--gold); }
.f-bottom { border-top: 1px solid var(--rule); padding-top: 14px; display: flex; justify-content: space-between; align-items: center; }
.f-bottom p { font-size: 0.6rem; color: var(--muted); }
.f-legal { display: flex; gap: 20px; }
.f-legal a { font-size: 0.6rem; color: var(--muted); transition: color 0.3s; } .f-legal a:hover { color: var(--silver); }

/* --- Contact Form --- */
.contact-form { max-width: 600px; }
.form-group { margin-bottom: 24px; }
.form-group label { display: block; font-family: var(--mono); font-size: 0.56rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--silver); margin-bottom: 8px; }
.form-group input, .form-group select, .form-group textarea { width: 100%; background: var(--surface); border: 1px solid var(--rule); color: var(--white); font-family: var(--body); font-size: 0.88rem; padding: 14px 16px; transition: border-color 0.3s; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--gold); outline: none; }
.form-group textarea { min-height: 140px; resize: vertical; }
.form-group select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238A847C' stroke-width='1.5' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }
.form-submit { display: inline-flex; align-items: center; gap: 10px; font-size: 0.64rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--bg); background: var(--gold); border: none; padding: 16px 36px; cursor: pointer; transition: background 0.3s, transform 0.3s; }
.form-submit:hover { background: var(--white); transform: translateY(-1px); }
.form-note { font-size: 0.72rem; color: var(--muted); margin-top: 24px; }
.form-success { font-family: var(--mono); font-size: 0.7rem; color: var(--gold); letter-spacing: 0.05em; }

/* --- Reveal --- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal.vis { opacity: 1; transform: none; }
.r1 { transition-delay: 0.08s; } .r2 { transition-delay: 0.15s; } .r3 { transition-delay: 0.24s; }

/* --- Responsive --- */
@media (max-width: 1024px) {
  .nav-links { display: none; } .menu-btn { display: flex; }
  .lc-head { grid-template-columns: 1fr; gap: 16px; }
  .lc-flow { grid-template-columns: 1fr; gap: 36px; } .lc-flow::before { display: none; }
  .lc-phase { text-align: left; } .lc-phase p { margin: 0; } .lc-phase .diamond { margin: 0 0 16px; }
  .sys-inner { grid-template-columns: 1fr; gap: 32px; }
  .ed-grid, .ed-grid.flip { grid-template-columns: 1fr; direction: ltr; }
  .f-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .hero { min-height: auto; align-items: flex-start; padding-top: 88px; padding-bottom: 48px; }
  .hero-sys { opacity: 0.12; }
  .nav { padding-left: calc(var(--px) + env(safe-area-inset-left, 0px)); padding-right: calc(var(--px) + env(safe-area-inset-right, 0px)); }
  .nav.hidden { transform: none; }
  .svc { grid-template-columns: 36px 1fr; }
  .svc-ref-map { display: none; }
  .svc-ref-inline { display: block; font-family: var(--mono); font-size: 0.44rem; letter-spacing: 0.12em; color: var(--muted); margin-top: 8px; text-transform: uppercase; }
  .svc-body { padding: 20px 16px; }
  .svc-intro { margin-bottom: 36px; }
  .lc-flow { position: relative; padding-left: 20px; }
  .lc-flow::after { content: ''; position: absolute; left: 6px; top: 0; bottom: 0; width: 1px; background: var(--rule); }
  .lc-phase .diamond { position: absolute; left: -17px; top: 0; margin: 0; z-index: 2; background: var(--bg); }
  .lc-phase { position: relative; padding-left: 0; }
  .lc-head { margin-bottom: 48px; }
  .sys-arch { padding-left: 24px; }
  .sys-layer { grid-template-columns: 1fr; gap: 2px; }
  .sys-fragment { display: flex; justify-content: center; padding: 32px 0 16px; }
  .sys-fragment svg { max-width: 280px; }
  .section, .section-dark { padding-top: 56px; padding-bottom: 56px; }
  .phil { padding-top: 44px; padding-bottom: 44px; }
  .cta-section { padding-top: 72px; padding-bottom: 72px; }
  .f-top { grid-template-columns: 1fr; }
  .f-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .footer { padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px)); }
  .ed-content .caps { font-size: 0.48rem; letter-spacing: 0.03em; }
  .page-hero { padding-top: 100px; padding-bottom: 48px; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: clamp(2.1rem, 11vw, 2.6rem); }
  .hero-body { font-size: 0.86rem; }
  .page-hero h1 { font-size: clamp(2rem, 10vw, 2.5rem); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .diamond, .sys-layer, .svc, .hero-link, .svc-ref-map, .svc-exp { transition: none; }
}

/* --- Interior page enhancements --- */
.datum-divider { display: flex; align-items: center; justify-content: center; padding: 32px 0; position: relative; }
.datum-divider::before { content: ''; position: absolute; left: var(--px); right: var(--px); top: 50%; height: 1px; background: linear-gradient(to right, transparent, var(--rule), var(--gold), var(--rule), transparent); opacity: 0.4; }
.datum-divider .diamond { position: relative; z-index: 1; background: var(--bg); padding: 0 12px; }

/* Large service number (oversized) */
.svc-big-num { font-family: var(--display); font-size: clamp(5rem, 10vw, 8rem); font-weight: 400; line-height: 1; color: var(--rule); position: absolute; top: 24px; right: var(--px); pointer-events: none; opacity: 0.4; }

/* Pull quote */
.pull-quote { font-family: var(--display); font-style: italic; font-size: clamp(1.3rem, 2.2vw, 1.8rem); color: var(--bright); line-height: 1.4; max-width: 600px; padding: 40px 0; border-left: 2px solid var(--gold); padding-left: 32px; margin: 48px 0; }

/* Two-column editorial */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 4vw, 64px); align-items: start; }
.two-col-wide { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(40px, 5vw, 80px); align-items: start; }

/* Capability grid */
.cap-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 28px; margin-top: 32px; }
.cap-item { padding: 24px 0; border-top: 1px solid var(--rule); }
.cap-item h3 { font-family: var(--mono); font-size: 0.54rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); margin-bottom: 10px; }
.cap-item p { font-size: 0.82rem; color: var(--silver); line-height: 1.7; }

/* Section with large number decoration */
.section-numbered { position: relative; }

@media (max-width: 1024px) {
  .two-col, .two-col-wide { grid-template-columns: 1fr; }
  .svc-big-num { display: none; }
}
@media (max-width: 640px) {
  .pull-quote { padding-left: 20px; margin: 32px 0; }
  .cap-grid { grid-template-columns: 1fr; }
}

/* --- Enterprise metrics --- */
.metric-num { font-family: var(--display); font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 400; color: var(--gold); line-height: 1; display: block; }
