:root {
  --bg: #031128;
  --bg-soft: #061a38;
  --panel: #0a2145;
  --panel-strong: #0d2b58;
  --text: #f0f6ff;
  --muted: #a9c1df;
  --line: rgba(97, 166, 255, 0.22);
  --accent: #168cff;
  --accent-strong: #5bb7ff;
  --accent-deep: #0a55c7;
  --warm: #ff7a2f;
  --max: 1220px;
  --radius: 18px;
  --shadow: 0 28px 80px rgba(0, 8, 28, 0.46);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  line-height: 1.65;
  background:
    linear-gradient(rgba(2, 13, 34, 0.92), rgba(2, 13, 34, 0.96)),
    radial-gradient(circle at 15% 10%, rgba(20, 116, 255, 0.28), transparent 34rem),
    var(--bg);
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(rgba(55, 135, 235, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(55, 135, 235, 0.035) 1px, transparent 1px),
    radial-gradient(circle at 12% 18%, rgba(22, 140, 255, 0.20), transparent 29rem),
    radial-gradient(circle at 84% 28%, rgba(255, 122, 47, 0.10), transparent 23rem);
  background-size: 54px 54px, 54px 54px, auto, auto;
}
a { color: inherit; }
img { display: block; max-width: 100%; }
button, a { -webkit-tap-highlight-color: transparent; }
.container { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.section { padding: 100px 0; }
.section-muted { background: rgba(4, 24, 54, 0.76); border-block: 1px solid var(--line); }
.skip-link { position: absolute; left: -9999px; top: 8px; padding: 10px 14px; background: white; color: black; z-index: 1000; }
.skip-link:focus { left: 8px; }

.site-header { position: sticky; top: 0; z-index: 100; backdrop-filter: blur(18px); background: rgba(3, 17, 40, 0.82); border-bottom: 1px solid rgba(91, 183, 255, 0.24); }
.nav-wrap { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 700; }
.brand-mark { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid rgba(91, 183, 255, 0.72); border-radius: 10px; color: white; background: linear-gradient(145deg, #127ee8, #0a4fae); box-shadow: 0 0 24px rgba(22, 140, 255, 0.24); }
.brand-text { display: grid; line-height: 1.05; }
.brand-text strong { font-size: 1rem; }
.brand-text small { margin-top: 4px; color: var(--muted); font-size: 0.68rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.site-nav { display: flex; gap: 24px; }
.site-nav a { color: var(--muted); text-decoration: none; font-size: 0.92rem; }
.site-nav a:hover, .site-nav a:focus-visible { color: var(--text); }
.nav-toggle { display: none; }

.hero { min-height: calc(100vh - 72px); display: grid; align-items: center; position: relative; overflow: hidden; padding-block: 58px; }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(91, 183, 255, 0.45), transparent); }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(420px, 0.98fr) minmax(0, 1.02fr);
  grid-template-areas: "portrait copy";
  gap: clamp(42px, 6vw, 82px);
  align-items: stretch;
}
.hero-copy { grid-area: copy; min-height: 650px; display: flex; flex-direction: column; justify-content: center; position: relative; z-index: 2; }
.hero-portrait { grid-area: portrait; min-height: 650px; position: relative; display: flex; align-items: flex-end; justify-content: center; isolation: isolate; }
.hero-portrait::before { content: ""; position: absolute; inset: 6% -5% 1% 2%; z-index: -2; border: 1px solid rgba(91, 183, 255, 0.25); border-radius: 48% 52% 46% 54%; background: radial-gradient(circle at 52% 42%, rgba(28, 133, 255, 0.23), rgba(8, 37, 78, 0.12) 45%, transparent 72%); transform: rotate(-4deg); }
.portrait-glow { position: absolute; z-index: -3; width: 96%; aspect-ratio: 1; bottom: 0; border-radius: 50%; background: radial-gradient(circle, rgba(24, 137, 255, 0.38), rgba(9, 68, 151, 0.16) 48%, transparent 72%); filter: blur(6px); }
.hub-portrait { position: relative; z-index: -1; width: min(112%, 650px); height: 650px; object-fit: contain; object-position: bottom center; filter: drop-shadow(0 30px 42px rgba(0, 5, 18, 0.5)); }
.portrait-card { position: absolute; left: 0; bottom: 24px; max-width: 320px; padding: 18px 20px; border: 1px solid rgba(91, 183, 255, 0.34); border-left: 3px solid var(--warm); border-radius: 13px; background: rgba(3, 20, 47, 0.9); box-shadow: 0 20px 50px rgba(0, 8, 26, 0.42); backdrop-filter: blur(16px); }
.portrait-card p { margin: 0; }
.portrait-card p:last-child { margin-top: 5px; color: var(--muted); font-size: 0.86rem; }
.portrait-label { color: white; font-weight: 800; letter-spacing: 0.03em; }

.eyebrow { margin: 0 0 16px; color: #76c7ff; text-transform: uppercase; letter-spacing: 0.15em; font-size: 0.75rem; font-weight: 800; }
h1, h2, h3 { line-height: 1.13; margin-top: 0; }
h1 { max-width: 780px; margin-bottom: 24px; font-size: clamp(2.6rem, 4.6vw, 5rem); letter-spacing: -0.05em; text-shadow: 0 8px 42px rgba(0, 0, 0, 0.25); }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); letter-spacing: -0.035em; }
h3 { font-size: 1.42rem; letter-spacing: -0.015em; }
.hero-lede { max-width: 720px; margin: 0; color: var(--muted); font-size: clamp(1.05rem, 1.7vw, 1.26rem); }
.hero-actions, .contact-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 48px; padding: 0 19px; border: 1px solid transparent; border-radius: 10px; text-decoration: none; font-weight: 700; }
.button.primary { color: white; background: linear-gradient(135deg, #148dff, #0756c9); box-shadow: 0 12px 32px rgba(8, 94, 210, 0.30); }
.button.primary:hover { background: linear-gradient(135deg, #39a3ff, #0b65df); }
.button.secondary { color: var(--text); border-color: var(--line); background: rgba(255, 255, 255, 0.025); }
.button.secondary:hover { border-color: rgba(91, 183, 255, 0.68); }
.hero-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 48px; }
.hero-facts div { padding-top: 17px; border-top: 1px solid var(--line); }
.hero-facts strong, .hero-facts span { display: block; }
.hero-facts strong { font-size: 1.05rem; }
.hero-facts span { margin-top: 4px; color: var(--muted); font-size: 0.82rem; }

.split { display: grid; grid-template-columns: 0.82fr 1.18fr; gap: 92px; align-items: start; }
.section-heading { max-width: 820px; margin-bottom: 48px; }
.section-heading > p:last-child { color: var(--muted); max-width: 760px; }
.prose { color: var(--muted); font-size: 1.06rem; }
.prose p:first-child { margin-top: 0; color: var(--text); font-size: 1.22rem; }

.automation-layout > .section-heading { margin-bottom: 34px; }
.automation-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.automation-card { padding: 30px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(150deg, rgba(10, 39, 78, 0.92), rgba(5, 24, 54, 0.93)); }
.automation-card span { color: var(--accent-strong); font: 700 0.82rem Consolas, monospace; }
.automation-card h3 { margin: 18px 0 10px; }
.automation-card p { margin: 0; color: var(--muted); }
.capability-strip { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 28px; }
.capability-strip span { padding: 8px 11px; border: 1px solid rgba(91, 183, 255, 0.28); border-radius: 999px; color: #d8ebff; background: rgba(22, 140, 255, 0.09); font-size: 0.8rem; }

.featured-project { display: grid; grid-template-columns: 1.04fr 0.96fr; gap: 46px; padding: 42px; margin-bottom: 26px; background: linear-gradient(145deg, rgba(12, 48, 94, 0.96), rgba(5, 25, 57, 0.96)); border: 1px solid rgba(91, 183, 255, 0.35); border-radius: var(--radius); box-shadow: var(--shadow); }
.featured-project-primary { border-color: rgba(255, 122, 47, 0.46); box-shadow: 0 28px 90px rgba(0, 8, 28, 0.53); }
.featured-media { grid-template-columns: 0.9fr 1.1fr; padding: 0; overflow: hidden; }
.featured-media .featured-copy { padding: 42px; }
.project-kicker { margin: 0 0 11px; color: var(--accent-strong); text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.72rem; font-weight: 800; }
.featured-copy > p:not(.project-kicker), .project-card > p:not(.project-kicker) { color: var(--muted); }
.project-outcomes { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0; }
.project-outcomes span { padding: 7px 10px; color: #d8ebff; background: rgba(22, 140, 255, 0.10); border: 1px solid rgba(91, 183, 255, 0.28); border-radius: 999px; font-size: 0.78rem; }
.text-button { padding: 0; border: 0; color: #72c3ff; background: none; font: inherit; font-weight: 800; cursor: pointer; }
.text-button::after { content: "  +"; }
.text-button:hover { color: white; }
.workflow-visual { display: grid; align-content: center; grid-template-columns: 1fr; }
.workflow-node { display: grid; grid-template-columns: 42px 1fr; align-items: center; gap: 2px 14px; padding: 11px 14px; border: 1px solid var(--line); border-radius: 12px; background: rgba(5, 13, 24, 0.5); }
.workflow-node span { grid-row: 1 / 3; color: var(--accent-strong); font-family: Consolas, monospace; }
.workflow-node strong { font-size: 0.95rem; }
.workflow-node small { color: var(--muted); }
.workflow-line { width: 1px; height: 16px; margin-left: 34px; background: var(--line); }
.image-button { align-self: stretch; min-height: 450px; padding: 0; border: 0; background: #050a12; cursor: zoom-in; overflow: hidden; }
.image-button img { width: 100%; height: 100%; object-fit: cover; object-position: left center; opacity: 0.9; transition: transform 300ms ease, opacity 300ms ease; }
.image-button:hover img { transform: scale(1.02); opacity: 1; }

.project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.secondary-projects { margin-top: 34px; }
.project-card { position: relative; padding: 34px; overflow: hidden; background: linear-gradient(150deg, rgba(10, 39, 78, 0.92), rgba(5, 24, 54, 0.93)); border: 1px solid var(--line); border-radius: var(--radius); }
.project-card:hover { border-color: rgba(91, 183, 255, 0.55); box-shadow: 0 18px 44px rgba(0, 9, 28, 0.28); transform: translateY(-2px); transition: 180ms ease; }
.project-number { position: absolute; right: 24px; top: 18px; color: rgba(91, 183, 255, 0.24); font: 700 2.6rem/1 Consolas, monospace; }
.compact-list { padding-left: 18px; color: var(--muted); }
.compact-list li { margin: 7px 0; }

.principles-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.principle { padding: 26px 0 0; border-top: 1px solid var(--line); }
.principle span { color: #72c3ff; font: 700 0.83rem Consolas, monospace; }
.principle h3 { margin: 16px 0 10px; font-size: 1.12rem; }
.principle p { color: var(--muted); font-size: 0.94rem; }
.timeline { position: relative; padding-left: 28px; border-left: 1px solid var(--line); }
.timeline article { position: relative; padding: 0 0 34px 18px; }
.timeline article:last-child { padding-bottom: 0; }
.timeline-marker { position: absolute; left: -34px; top: 4px; width: 11px; height: 11px; background: #55b8ff; border: 3px solid var(--bg); border-radius: 50%; }
.timeline-date { margin: 0 0 8px; color: #72c3ff; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; font-weight: 800; }
.timeline article > p:last-child { color: var(--muted); }

.contact-section { padding-top: 34px; }
.contact-card { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 40px; align-items: center; padding: 48px; background: linear-gradient(145deg, rgba(12, 48, 94, 0.96), rgba(5, 25, 57, 0.96)); border: 1px solid rgba(91, 183, 255, 0.35); border-radius: var(--radius); box-shadow: var(--shadow); }
.contact-card h2 { margin-bottom: 18px; }
.contact-card p:last-child { color: var(--muted); }
.contact-actions { justify-content: flex-end; margin-top: 0; }
.site-footer { padding: 34px 0; color: var(--muted); border-top: 1px solid var(--line); }
.footer-wrap { display: flex; justify-content: space-between; gap: 20px; }
.footer-wrap p { margin: 0; }
.footer-wrap a { text-decoration: none; }

.project-dialog, .lightbox { width: min(760px, calc(100% - 28px)); max-height: calc(100vh - 40px); padding: 42px; color: var(--text); background: var(--panel); border: 1px solid rgba(91, 183, 255, 0.38); border-radius: var(--radius); box-shadow: var(--shadow); }
.project-dialog-wide { width: min(980px, calc(100% - 28px)); }
.project-dialog::backdrop, .lightbox::backdrop { background: rgba(2, 7, 13, 0.84); backdrop-filter: blur(5px); }
.project-dialog p, .project-dialog li { color: var(--muted); }
.project-dialog h2 { padding-right: 70px; }
.project-dialog h3 { margin-top: 30px; }
.dialog-close { position: absolute; right: 20px; top: 20px; padding: 7px 10px; color: var(--text); border: 1px solid var(--line); border-radius: 8px; background: transparent; cursor: pointer; }
.dialog-close:hover { border-color: var(--accent); }
.dialog-figure { margin: 34px 0 0; }
.dialog-figure img { border-radius: 12px; border: 1px solid var(--line); }
.dialog-figure figcaption { margin-top: 12px; color: var(--muted); font-size: 0.85rem; }
.lightbox { width: min(1400px, calc(100% - 28px)); padding: 54px 18px 18px; background: #050a12; }
.lightbox img { max-height: calc(100vh - 100px); width: 100%; object-fit: contain; }
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 600ms ease, transform 600ms ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .reveal { opacity: 1; transform: none; transition: none; } }
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; grid-template-areas: "copy" "portrait"; gap: 34px; }
  .hero-copy { min-height: auto; padding-top: 28px; }
  .hero-portrait { min-height: 590px; width: min(100%, 680px); margin-inline: auto; }
  .hub-portrait { height: 590px; width: min(110%, 620px); }
  .split, .featured-project, .contact-card { grid-template-columns: 1fr; gap: 42px; }
  .featured-media { grid-template-columns: 1fr; }
  .automation-grid { grid-template-columns: 1fr; }
  .principles-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-actions { justify-content: flex-start; }
}
@media (max-width: 720px) {
  .section { padding: 76px 0; }
  .nav-toggle { display: inline-flex; padding: 8px 11px; color: var(--text); border: 1px solid var(--line); border-radius: 8px; background: transparent; }
  .site-nav { display: none; position: absolute; left: 20px; right: 20px; top: 64px; padding: 12px; flex-direction: column; gap: 0; background: var(--panel-strong); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 11px; }
  .brand-text small { display: none; }
  .hero { padding-block: 36px; }
  .hero-facts, .project-grid { grid-template-columns: 1fr; }
  .hero-portrait { min-height: 470px; }
  .hub-portrait { height: 470px; max-width: 500px; }
  .portrait-card { left: 0; right: 0; bottom: 8px; max-width: none; }
  .principles-grid { grid-template-columns: 1fr; }
  .featured-project, .project-card, .contact-card { padding: 28px; }
  .featured-media { padding: 0; }
  .featured-media .featured-copy { padding: 28px; }
  .image-button { min-height: 300px; }
  .project-dialog { padding: 38px 24px 28px; }
  .footer-wrap { flex-direction: column; }
}
