:root {
  color-scheme: light;
  --ink: #071923;
  --paper: #edf3f5;
  --paper-bright: #f8fbfc;
  --blue: #3fa7ed;
  --blue-soft: #bfe3f9;
  --night: #071923;
  --night-raised: #0b202c;
  --cream: #f4f1e8;
  --muted: #82949d;
  --line-light: rgba(7, 25, 35, 0.09);
  --line-dark: rgba(255, 255, 255, 0.12);
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--night); }
body { min-height: 100%; margin: 0; font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
button, input, textarea { font: inherit; }
a { -webkit-tap-highlight-color: transparent; }

.home-page { background: var(--paper); color: var(--ink); }
.home-canvas {
  position: relative;
  display: grid;
  min-height: 100svh;
  overflow: hidden;
  grid-template-columns: minmax(360px, 1.05fr) minmax(480px, 0.95fr);
  align-items: center;
  gap: clamp(50px, 6vw, 110px);
  padding: clamp(70px, 9vw, 142px) clamp(44px, 8vw, 132px) clamp(86px, 9vw, 124px);
  isolation: isolate;
}
.home-canvas::before {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 3;
  width: clamp(8px, 1vw, 15px);
  height: 31%;
  background: var(--blue);
  content: "";
}
.home-canvas::after {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: -1;
  width: 24vw;
  height: 18vh;
  background: var(--night);
  clip-path: polygon(31% 100%, 100% 0, 100% 100%);
  content: "";
}
.technical-grid, .dark-grid {
  position: absolute;
  inset: 0;
  z-index: -3;
  background-image: linear-gradient(var(--line-light) 1px, transparent 1px), linear-gradient(90deg, var(--line-light) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(118deg, black, rgba(0,0,0,.58) 58%, transparent 86%);
  opacity: .58;
}
.orbit {
  position: absolute;
  z-index: -2;
  border: 1px solid rgba(63, 167, 237, .28);
  border-radius: 50%;
  pointer-events: none;
}
.orbit-one { top: -29vw; right: -9vw; width: 66vw; height: 66vw; }
.orbit-two { top: -22vw; right: -2vw; width: 52vw; height: 52vw; border-color: rgba(7, 25, 35, .08); }

.home-brand { position: relative; align-self: center; animation: brand-in 900ms cubic-bezier(.16,1,.3,1) both; }
.home-logo { display: block; width: min(100%, 700px); height: auto; }
.brand-rule { display: block; width: clamp(80px, 11vw, 170px); height: 4px; margin: clamp(36px, 5vw, 72px) 0 0 17%; background: var(--blue); transform: skewX(-35deg); }

.project-system { position: relative; width: min(100%, 600px); justify-self: end; }
.project-system h2, .eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0;
  color: #506670;
  font-size: .68rem;
  font-weight: 850;
  letter-spacing: .22em;
  text-transform: uppercase;
}
.project-system h2 > span, .eyebrow span { width: 30px; height: 1px; background: var(--blue); }
.project-map { position: relative; height: 430px; margin-top: 22px; }
.project-route { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; fill: var(--paper); stroke: rgba(7,25,35,.2); stroke-width: 1.4; vector-effect: non-scaling-stroke; }
.project-route circle { fill: var(--blue); stroke: var(--paper-bright); stroke-width: 6; }

.project-node {
  position: absolute;
  display: grid;
  grid-template-columns: 58px minmax(0, auto) 24px;
  align-items: center;
  gap: 14px;
  padding: 8px 10px 8px 8px;
  border: 1px solid rgba(7,25,35,.11);
  background: rgba(248,251,252,.78);
  box-shadow: 0 18px 45px rgba(28,78,104,.08);
  color: var(--ink);
  text-decoration: none;
  backdrop-filter: blur(12px);
  transition: transform 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}
.node-one { top: 17px; left: 0; }
.node-two { top: 167px; left: 30%; }
.node-three { right: 0; bottom: 9px; }
.project-logo { display: grid; width: 58px; height: 58px; overflow: hidden; place-items: center; border-radius: 50%; background: #fff; }
.project-logo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.node-one .project-logo img { transform: scale(1.08); }
.project-name { font-size: clamp(.69rem, .8vw, .78rem); font-weight: 780; letter-spacing: .035em; white-space: nowrap; }
.project-arrow { color: var(--blue); font-size: 1.05rem; transition: transform 200ms ease; }
.project-node:hover, .project-node:focus-visible { border-color: rgba(63,167,237,.72); box-shadow: 0 22px 60px rgba(28,78,104,.15); transform: translateY(-4px) rotate(-.4deg); }
.project-node:hover .project-arrow, .project-node:focus-visible .project-arrow { transform: translate(3px,-3px); }
.project-node:focus-visible { outline: 3px solid rgba(63,167,237,.24); outline-offset: 4px; }

.home-footer, .contact-footer {
  position: absolute;
  right: clamp(28px, 4vw, 62px);
  bottom: clamp(27px, 4vw, 50px);
  left: clamp(28px, 4vw, 62px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: rgba(7,25,35,.46);
  font-size: .63rem;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.home-footer::before { position: absolute; right: 96px; bottom: 50%; width: min(18vw, 250px); height: 1px; background: rgba(7,25,35,.12); content: ""; }
.home-footer a, .contact-footer a { color: inherit; text-underline-offset: 5px; }
.home-footer a { position: relative; z-index: 1; color: rgba(237,243,245,.72); }
.home-footer a:hover, .home-footer a:focus-visible { color: var(--blue); }

.contact-page { color-scheme: dark; background: var(--night); color: var(--cream); }
.contact-canvas { position: relative; min-height: 100svh; overflow: hidden; padding: clamp(98px, 12vh, 150px) clamp(28px, 8vw, 130px) 110px; isolation: isolate; }
.dark-grid { background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px); mask-image: radial-gradient(circle at 68% 50%, black, transparent 72%); opacity: .55; }
.contact-canvas::before { position: absolute; top: 0; left: 0; width: 32%; height: 7px; background: var(--blue); content: ""; }
.contact-home { position: absolute; top: clamp(28px, 4vw, 54px); left: clamp(28px, 5vw, 74px); display: block; width: clamp(116px, 12vw, 170px); }
.contact-home img { display: block; width: 100%; height: auto; }
.contact-home:focus-visible { outline: 3px solid rgba(63,167,237,.35); outline-offset: 8px; }
.contact-orbit { position: absolute; right: -5vw; bottom: -12vh; z-index: -2; color: transparent; font-size: clamp(25rem, 48vw, 52rem); font-weight: 900; letter-spacing: -.15em; line-height: .7; -webkit-text-stroke: 1px rgba(255,255,255,.045); user-select: none; }
.contact-layout { display: grid; width: min(100%, 1180px); margin: 0 auto; grid-template-columns: minmax(280px,.7fr) minmax(480px,1.3fr); align-items: start; gap: clamp(60px, 9vw, 145px); }
.contact-header { padding-top: 20px; }
.eyebrow { color: var(--muted); }
.contact-header h1 { margin: 30px 0 42px; color: #fff; font-size: clamp(4.8rem, 9vw, 9rem); font-weight: 780; letter-spacing: -.085em; line-height: .76; }
.contact-header h1 span { color: var(--blue); }
.contact-index { display: flex; align-items: center; gap: 9px; }
.contact-index i { display: block; width: 8px; height: 8px; border: 1px solid rgba(255,255,255,.25); transform: rotate(45deg); }
.contact-index i:first-child { border-color: var(--blue); background: var(--blue); }

.contact-form { position: relative; padding: clamp(25px, 3.4vw, 46px); border: 1px solid rgba(255,255,255,.13); background: rgba(8,29,40,.8); box-shadow: 26px 26px 0 rgba(63,167,237,.06); backdrop-filter: blur(14px); }
.contact-form::before { position: absolute; top: -1px; left: -1px; width: 74px; height: 3px; background: var(--blue); content: ""; }
.field-grid { display: grid; grid-template-columns: 1fr 1.35fr; gap: 18px; }
.field { display: flex; min-width: 0; flex-direction: column; margin-bottom: 21px; }
.field label { margin-bottom: 8px; color: var(--muted); font-size: .68rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.field input, .field textarea { width: 100%; min-width: 0; border: 0; border-bottom: 1px solid rgba(255,255,255,.2); border-radius: 0; outline: none; background: rgba(255,255,255,.018); color: #fff; font-size: 16px; transition: border-color 180ms ease, background 180ms ease; }
.field input { height: 48px; padding: 0 12px; }
.field textarea { min-height: 142px; padding: 13px 12px; line-height: 1.55; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--blue); background: rgba(255,255,255,.055); }
.field input:user-invalid, .field textarea:user-invalid { border-color: #ef8c72; }
.field-note { margin-top: 8px; color: rgba(140,160,170,.78); font-size: .72rem; line-height: 1.45; }
.honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.turnstile { min-height: 65px; margin: 4px 0 18px; }
.submit-row { display: grid; grid-template-columns: max-content 1fr; align-items: center; gap: 22px; }
.submit-row button { display: inline-flex; min-width: 174px; align-items: center; justify-content: space-between; gap: 22px; padding: 15px 18px; border: 0; border-radius: 0; background: var(--blue); color: var(--ink); cursor: pointer; font-size: .75rem; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; transition: background 180ms ease, transform 180ms ease, opacity 180ms ease; }
.submit-row button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; transition: transform 180ms ease; }
.submit-row button:hover:not(:disabled) { background: #73c1f5; transform: translate(2px,-2px); }
.submit-row button:hover:not(:disabled) svg { transform: translateX(3px); }
.submit-row button:focus-visible { outline: 3px solid rgba(63,167,237,.28); outline-offset: 4px; }
.submit-row button:disabled { cursor: not-allowed; opacity: .42; }
.form-status { min-height: 2.6em; margin: 0; color: var(--muted); font-size: .78rem; line-height: 1.45; }
.form-status.success { color: #80d7ba; }
.form-status.error { color: #efaa96; }
.contact-footer { color: rgba(140,160,170,.58); }
.contact-footer a:hover, .contact-footer a:focus-visible { color: var(--blue); }

.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@keyframes brand-in { from { opacity: 0; transform: translate(-18px,8px); } to { opacity: 1; transform: translate(0,0); } }

@media (max-width: 980px) {
  .home-canvas { grid-template-columns: 1fr; align-content: start; gap: 70px; overflow: visible; padding-top: 110px; }
  .home-brand { width: min(78vw, 620px); }
  .project-system { width: min(100%, 620px); justify-self: end; }
  .home-canvas::after { display: none; }
  .home-footer a { color: inherit; }
  .contact-layout { grid-template-columns: 1fr; gap: 42px; }
  .contact-header { display: grid; grid-template-columns: 1fr auto; align-items: end; }
  .contact-header .eyebrow { grid-column: 1 / -1; }
  .contact-header h1 { margin-bottom: 0; }
  .contact-form { width: min(100%, 720px); justify-self: end; }
}

@media (max-width: 620px) {
  .home-canvas { gap: 54px; padding: 82px 24px 86px; }
  .home-canvas::before { width: 6px; height: 23%; }
  .home-brand { width: 86%; }
  .brand-rule { margin-top: 28px; }
  .project-map { display: grid; height: auto; gap: 13px; margin-top: 24px; }
  .project-route { display: none; }
  .project-node { position: relative; inset: auto; width: 100%; grid-template-columns: 48px minmax(0,1fr) 24px; background: rgba(248,251,252,.62); box-shadow: none; }
  .project-node:nth-child(3) { width: calc(100% - 22px); margin-left: 22px; }
  .project-node:nth-child(4) { width: calc(100% - 44px); margin-left: 44px; }
  .project-logo { width: 48px; height: 48px; }
  .project-name { overflow: hidden; text-overflow: ellipsis; }
  .home-footer::before { display: none; }
  .contact-canvas { padding: 112px 22px 90px; overflow: hidden; }
  .contact-home { width: 112px; }
  .contact-header { display: block; }
  .contact-header h1 { margin: 28px 0 30px; font-size: clamp(4.5rem, 24vw, 6.5rem); }
  .contact-index { margin-bottom: 8px; }
  .contact-form { padding: 25px 20px; box-shadow: 12px 12px 0 rgba(63,167,237,.06); }
  .field-grid, .submit-row { grid-template-columns: 1fr; }
  .field-grid { gap: 0; }
  .submit-row { gap: 12px; }
  .submit-row button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .home-brand { animation: none; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
