:root {
  --night: #020a15;
  --night-deep: #010711;
  --line: rgba(150, 171, 193, .18);
  --line-strong: rgba(193, 207, 220, .42);
  --text: #eeeae4;
  --muted: #8995a5;
  --muted-light: #9ca7b4;
  --ice: #a8c9ea;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background:
    radial-gradient(circle at 76% 34%, rgba(16, 56, 98, .24), transparent 34%),
    linear-gradient(135deg, var(--night-deep), var(--night));
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 300;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
button, input, textarea { font: inherit; }
.site-shell { min-height: 100vh; overflow-x: clip; }
.header-container { width: calc(100% - 100px); margin: 0 auto; }
.home-container { width: calc(100% - 176px); margin: 0 auto; }
.contact-container { width: min(calc(100% - 430px), 1242px); margin: 0 auto; }
.contact-form-container { width: min(calc(100% - 570px), 1100px); margin: 0 auto; }

.site-header {
  height: 122px;
  border-bottom: 1px solid var(--line);
  background: rgba(2, 10, 21, .72);
}
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 28px; overflow: visible; padding: 8px 0; text-decoration: none; line-height: 1; }
.brand__emblem { display: block; width: 60px; height: auto; flex: 0 0 auto; object-fit: contain; }
.brand__wordmark { display: block; width: 260px; height: auto; flex: 0 0 auto; object-fit: contain; padding-top: 15px;}
.main-nav { display: flex; gap: 54px; align-items: center; }
.main-nav a { position: relative; padding: 16px 0; color: #e9e4dd; text-decoration: none; font-size: 17px; font-weight: 350; }
.main-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 6px; height: 1px; background: #d1dde8; transform: scaleX(0); transform-origin: left; transition: transform .2s ease; }
.main-nav a:hover::after, .main-nav a.is-active::after { transform: scaleX(1); }
.menu-toggle { display: none; }

.home-lines, .contact-lines { position: relative; isolation: isolate; overflow: hidden; }
.home-lines::before, .home-lines::after, .contact-lines::before, .contact-lines::after { content: ""; position: absolute; z-index: -1; width: 900px; height: 1px; pointer-events: none; background: linear-gradient(90deg, transparent, rgba(112, 160, 207, .34), transparent); box-shadow: 0 0 9px rgba(90, 164, 237, .10); }
.home-lines::before { right: -210px; top: 49%; transform: rotate(46deg); }
.home-lines::after { right: -140px; top: 54%; transform: rotate(-46deg); opacity: .48; }
.contact-lines::before { right: -65px; top: 48%; transform: rotate(46deg); background: linear-gradient(90deg, transparent, rgba(140, 194, 245, .65), transparent); box-shadow: 0 0 12px rgba(100, 184, 255, .28); }
.contact-lines::after { right: 0; top: 53%; transform: rotate(-46deg); background: linear-gradient(90deg, transparent, rgba(157, 198, 235, .47), transparent); }

.hero { height: 600px; border-bottom: 1px solid var(--line); }
.hero-grid { height: 100%; display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(430px, .82fr); gap: 74px; align-items: center; }
.hero-copy { max-width: 760px; }
.eyebrow { margin: 0 0 31px; color: var(--ice); font-size: 12px; font-weight: 560; letter-spacing: .34em; }
h1 { margin: 0; font-size: clamp(48px, 3.55vw, 60px); line-height: 1.18; font-weight: 260; letter-spacing: -.037em; }
.hero-lead, .contact-copy > p:last-child { margin: 31px 0 0; color: var(--muted-light); font-size: 17px; line-height: 1.68; }
.hero-lead { max-width: 690px; }
.hero-mark { width: 472px; max-width: 80%; justify-self: center; filter: drop-shadow(0 24px 48px rgba(41, 104, 170, .18)); }
.hero-mark__img { display: block; width: 80%; height: auto; }
.button { display: inline-flex; min-width: 202px; height: 61px; align-items: center; justify-content: center; margin-top: 31px; padding: 0 30px; border: 1px solid rgba(205, 216, 227, .58); border-radius: 4px; color: #eeeae5; background: linear-gradient(135deg, rgba(23, 42, 66, .72), rgba(8, 20, 35, .62)); box-shadow: inset 0 1px 0 rgba(255,255,255,.045); text-decoration: none; font-size: 17px; font-weight: 370; letter-spacing: .01em; cursor: pointer; transition: border-color .2s ease, background .2s ease; }
.button:hover { border-color: rgba(225, 233, 240, .82); background: linear-gradient(135deg, rgba(30, 53, 80, .82), rgba(10, 25, 43, .72)); }

.focus-section { height: 233px; padding: 22px 0 19px; border-bottom: 1px solid var(--line); }
.focus-section h2 { margin: 0 0 15px; font-size: 20px; line-height: 1.2; font-weight: 350; }
.focus-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.focus-card { height: 165px; display: grid; grid-template-columns: 126px 1fr; align-items: center; padding: 22px 25px; border: 1px solid var(--line); border-radius: 5px; background: linear-gradient(155deg, rgba(7, 21, 37, .54), rgba(2, 10, 21, .32)); }
.focus-icon { width: 82px; height: 82px; justify-self: center; fill: none; stroke: #a9d3f5; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.focus-icon--brain { width: 90px; height: 90px; }
.focus-card h3 { margin: 0 0 10px; font-size: 18px; font-weight: 420; }
.focus-card p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.53; }

.contact-hero { height: 344px; border-bottom: 1px solid var(--line); }
.contact-hero-grid { height: 100%; display: grid; grid-template-columns: 1fr 1fr; align-items: center; }
.contact-copy { width: 470px; }
.contact-copy .eyebrow { margin-bottom: 26px; }
.contact-copy h1 { font-size: 48px; line-height: 1.15; }
.contact-copy > p:last-child { max-width: 400px; margin-top: 22px; font-size: 16px; line-height: 1.58; }
.contact-form-section { height: 400px; border-bottom: 1px solid var(--line); padding-top: 28px; }
.contact-form { display: grid; gap: 0; }
.field { min-height: 56px; display: grid; grid-template-columns: 184px 1fr; align-items: center; }
.field label { color: #e8e3dc; font-size: 11px; font-weight: 600; letter-spacing: .31em; text-transform: uppercase; }
.field-control { min-width: 0; }
.field input, .field textarea { width: 100%; border: 0; border-bottom: 1px solid rgba(178, 195, 211, .31); border-radius: 0; outline: none; padding: 14px 6px; color: var(--text); background: transparent; font-size: 14px; }
.field textarea { height: 85px; min-height: 85px; padding: 13px 7px; border: 1px solid rgba(178, 195, 211, .27); resize: vertical; }
.field input:focus, .field textarea:focus { border-color: rgba(180, 211, 240, .72); }
.field--message { min-height: 104px; align-items: start; padding-top: 10px; }
.field--message label { padding-top: 16px; }
.field-error { margin: 5px 0 0; color: #ff9b9b; font-size: 12px; }
.form-alert { margin: 0 0 15px 184px; padding: 11px 14px; border: 1px solid rgba(101,205,161,.4); color: #c9f5dc; background: rgba(45,128,89,.1); }
.contact-form .button { width: 228px; min-width: 228px; height: 56px; margin: 13px 0 0; }

.site-footer { height: 106px; background: rgba(1, 7, 17, .64); }
.footer-inner { height: 100%; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
.footer-brand { justify-self: start; }
.site-footer .brand { gap: 20px; }
.site-footer .brand__emblem { width: 35px; }
.site-footer .brand__wordmark { width: 170px; padding-top: 10px;}
.footer-copy { margin: 0; justify-self: center; color: #8794a3; font-size: 10px; }
.socials { justify-self: end; display: flex; gap: 28px; align-items: center; }
.socials a { color: #929eae; transition: color .2s ease, transform .2s ease; }
.socials a:hover { color: #e4ebf2; transform: translateY(-1px); }
.socials svg { display: block; width: 23px; height: 23px; fill: currentColor; }

@media (max-width: 1100px) {
  .header-container, .home-container { width: calc(100% - 48px); }
  .contact-container, .contact-form-container { width: calc(100% - 64px); }
  .hero { height: auto; }
  .hero-grid { min-height: 650px; grid-template-columns: 1fr; padding: 70px 0; }
  .hero-mark { order: -1; width: 360px; }
  .focus-section { height: auto; padding: 48px 0; }
  .focus-grid { grid-template-columns: 1fr; }
  .focus-card { height: auto; min-height: 150px; }
  .contact-hero, .contact-form-section { height: auto; }
  .contact-hero-grid { min-height: 440px; }
  .contact-form-section { padding: 50px 0 65px; }
}

@media (max-width: 720px) {
  .header-container, .home-container, .contact-container, .contact-form-container { width: calc(100% - 32px); }
  .site-header { height: 88px; }
  .brand { gap: 12px; }
  .brand__emblem { width: 38px; }
  .brand__wordmark { width: 178px; }
  .menu-toggle { display: inline-flex; width: 44px; height: 44px; flex-direction: column; align-items: center; justify-content: center; gap: 7px; border: 0; background: transparent; }
  .menu-toggle span { width: 24px; height: 1px; background: var(--text); }
  .main-nav { position: absolute; z-index: 20; left: 16px; right: 16px; top: 78px; display: none; padding: 16px 22px; flex-direction: column; align-items: stretch; gap: 0; border: 1px solid var(--line); background: rgba(2, 10, 21, .98); }
  .main-nav.is-open { display: flex; }
  .main-nav a { padding: 13px 0; }
  .hero-grid { min-height: 600px; gap: 40px; padding: 52px 0; }
  .hero-copy { order: 1; }
  .hero-mark { width: 270px; }
  .eyebrow { margin-bottom: 22px; font-size: 9px; }
  h1, .contact-copy h1 { font-size: 36px; }
  .hero-lead, .contact-copy > p:last-child { font-size: 15px; }
  .focus-card { grid-template-columns: 85px 1fr; padding: 22px 18px; }
  .focus-icon, .focus-icon--brain { width: 64px; height: 64px; }
  .contact-hero-grid { min-height: 400px; }
  .contact-copy { width: 100%; }
  .field { grid-template-columns: 1fr; padding: 10px 0; }
  .field label { margin-bottom: 5px; }
  .field--message label { padding-top: 0; }
  .form-alert { margin-left: 0; }
  .contact-form .button { width: 100%; }
  .site-footer { height: auto; min-height: 210px; }
  .footer-inner { padding: 34px 0; grid-template-columns: 1fr; gap: 24px; justify-items: start; }
  .footer-brand, .footer-copy, .socials { justify-self: start; }
  .site-footer .brand__emblem { width: 42px; }
  .site-footer .brand__wordmark { width: 180px; }
}
