:root {
  color-scheme: dark;
  font-family: "Barlow", sans-serif;
  font-synthesis: none;
  --bg: #091117;
  --surface: #101a22;
  --surface-high: #15232d;
  --ink: #f1f6f8;
  --muted: #a9bbc6;
  --subtle: #728995;
  --line: rgba(201, 224, 235, 0.16);
  --line-strong: rgba(201, 224, 235, 0.28);
  --blue: #118bd1;
  --blue-bright: #42b8f5;
  --focus: #b9e8ff;
  --success: #6ed49b;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

* { box-sizing: border-box; }

html {
  min-width: 320px;
  background: var(--bg);
}

body {
  min-height: 100svh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 74% 44%, rgba(17, 139, 209, .1), transparent 29rem),
    var(--bg);
  color: var(--ink);
}

html.splash-active,
html.splash-active body { overflow: hidden; }

.splash {
  display: none;
}

.js .splash {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-content: center;
  gap: 24px;
  background: var(--bg);
  transition:
    clip-path 520ms var(--ease-out),
    visibility 0s linear 520ms;
  clip-path: inset(0 0 0 0);
}

.splash::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 38%, rgba(17, 139, 209, .15) 50%, transparent 62%);
  transform: translateX(-100%);
  animation: splash-scan 900ms var(--ease-out) forwards;
}

.splash-mark {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 13px;
}

.splash-mark img {
  width: 74px;
  height: 74px;
  object-fit: contain;
}

.splash-mark span {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .02em;
}

.splash-progress {
  position: relative;
  width: 168px;
  height: 1px;
  overflow: hidden;
  background: var(--line-strong);
}

.splash-progress span {
  position: absolute;
  inset: 0;
  background: var(--blue-bright);
  transform: scaleX(0);
  transform-origin: left;
  animation: splash-progress 720ms var(--ease-out) forwards;
}

.splash-exit .splash {
  clip-path: inset(0 0 100% 0);
  visibility: hidden;
  pointer-events: none;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .22;
  background-image:
    linear-gradient(rgba(201, 224, 235, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201, 224, 235, .05) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: linear-gradient(90deg, transparent 18%, #000 66%, transparent);
  mask-image: linear-gradient(90deg, transparent 18%, #000 66%, transparent);
}

button,
a { -webkit-tap-highlight-color: transparent; }

a { color: inherit; }

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 20;
  padding: 10px 14px;
  background: var(--ink);
  color: var(--bg);
  transform: translateY(-160%);
  transition: transform 160ms var(--ease-out);
}

.skip-link:focus { transform: translateY(0); }

.site-header,
main,
footer {
  position: relative;
  width: min(1240px, calc(100% - 64px));
  margin-inline: auto;
}

.site-header {
  min-height: 104px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  color: var(--ink);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -.02em;
}

.brand img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.availability {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: .8rem;
  font-weight: 500;
}

.availability-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
}

.hero {
  min-height: calc(100svh - 186px);
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(420px, .94fr);
  align-items: center;
  gap: clamp(4rem, 9vw, 9rem);
  padding: clamp(64px, 9vh, 112px) 0;
}

.hero-copy {
  max-width: 690px;
  position: relative;
  z-index: 2;
}

.eyebrow {
  margin: 0 0 24px;
  color: var(--blue-bright);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}

h1 {
  max-width: 12ch;
  margin: 0;
  font-size: clamp(3.4rem, 6.4vw, 5.75rem);
  font-weight: 700;
  line-height: .98;
  letter-spacing: -.035em;
  text-wrap: balance;
}

.intro {
  max-width: 57ch;
  margin: 30px 0 34px;
  color: var(--muted);
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  line-height: 1.68;
  text-wrap: pretty;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.contact-button,
.qr-button {
  min-height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  padding: 0 20px;
  border-radius: 6px;
  font: inherit;
  font-size: .92rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color 180ms var(--ease-out),
    border-color 180ms var(--ease-out),
    color 180ms var(--ease-out),
    transform 180ms var(--ease-out);
}

.contact-button {
  border: 1px solid var(--blue);
  background: var(--blue);
  color: #031018;
}

.contact-button:hover {
  border-color: var(--blue-bright);
  background: var(--blue-bright);
  transform: translateY(-2px);
}

.contact-button:active,
.qr-button:active { transform: translateY(0) scale(.98); }

.button-arrow {
  margin-left: 5px;
  transition: transform 180ms var(--ease-out);
}

.contact-button:hover .button-arrow { transform: translateX(3px); }

.qr-button {
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--ink);
}

.qr-button:hover {
  border-color: rgba(185, 232, 255, .54);
  background: rgba(185, 232, 255, .06);
  transform: translateY(-2px);
}

.contact-handle {
  width: fit-content;
  display: flex;
  gap: 12px;
  margin-top: 24px;
  color: var(--subtle);
  font-size: .78rem;
  text-decoration: none;
  transition: color 180ms var(--ease-out);
}

.contact-handle strong {
  color: var(--muted);
  font-weight: 600;
}

.contact-handle:hover,
.contact-handle:hover strong { color: var(--ink); }

.contact-strip {
  width: min(100%, 590px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 42px 0 0;
  padding: 20px 0 0;
  border-top: 1px solid var(--line);
}

.contact-strip div {
  display: grid;
  gap: 4px;
  margin: 0;
}

.contact-strip div + div {
  padding-left: 22px;
  border-left: 1px solid var(--line);
}

.contact-strip dt {
  color: var(--subtle);
  font-size: .65rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.contact-strip dd {
  margin: 0;
  color: var(--ink);
  font-size: .86rem;
  font-weight: 600;
}

.brand-stage {
  position: relative;
  min-height: 580px;
  isolation: isolate;
  --light-x: 50%;
  --light-y: 50%;
}

.brand-stage::before,
.brand-stage::after {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
}

.brand-stage::before {
  inset: 28px 0;
  border: 1px solid var(--line);
}

.brand-stage::after {
  top: 0;
  bottom: 0;
  left: 17%;
  width: 1px;
  background: var(--line);
}

.logo-field {
  position: absolute;
  inset: 62px 26px 58px 50px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at var(--light-x) var(--light-y), rgba(66, 184, 245, .18), transparent 32%),
    var(--surface);
  clip-path: inset(0);
}

.logo-field::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  border: 1px solid rgba(66, 184, 245, .3);
}

.logo-backdrop {
  position: absolute;
  inset: 0 0 auto auto;
  width: 72%;
  height: 43%;
  background: var(--blue);
}

.logo-backdrop::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -80px;
  width: 80px;
  height: 80px;
  background: var(--blue);
  clip-path: polygon(100% 0, 100% 100%, 0 0);
}

.field-wordmark {
  position: absolute;
  top: 50%;
  left: -4%;
  color: rgba(241, 246, 248, .035);
  font-size: clamp(5rem, 10vw, 9rem);
  font-weight: 800;
  letter-spacing: -.06em;
  line-height: .7;
  transform: translateY(-50%) rotate(-90deg);
  transform-origin: center;
  white-space: nowrap;
}

.logo-field img {
  position: relative;
  z-index: 2;
  width: min(86%, 440px);
  height: auto;
  filter: drop-shadow(0 10px 8px rgba(0, 0, 0, .24));
}

.field-crosshair {
  position: absolute;
  z-index: 4;
  width: 24px;
  height: 24px;
}

.field-crosshair::before,
.field-crosshair::after {
  content: "";
  position: absolute;
  background: rgba(241, 246, 248, .44);
}

.field-crosshair::before { top: 11px; left: 0; width: 24px; height: 1px; }
.field-crosshair::after { top: 0; left: 11px; width: 1px; height: 24px; }
.field-crosshair-a { top: 22px; left: 22px; }
.field-crosshair-b { right: 22px; bottom: 22px; }

.stage-label {
  position: absolute;
  z-index: 4;
  color: var(--subtle);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.stage-label span + span { color: var(--ink); }
.stage-label-top,
.stage-label-bottom { display: flex; gap: 15px; }
.stage-label-top { top: 8px; right: 0; }
.stage-label-bottom { bottom: 10px; left: 0; }

footer {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--line);
  color: var(--subtle);
  font-size: .72rem;
}

/* One composed entrance. Content remains visible before JavaScript runs. */
.motion-ready .eyebrow,
.motion-ready h1,
.motion-ready .intro,
.motion-ready .contact-actions,
.motion-ready .contact-handle,
.motion-ready .contact-strip {
  opacity: 0;
  transform: translateY(16px);
}

.motion-ready .brand-stage {
  opacity: 0;
  transform: translateX(18px);
}

.motion-ready.is-ready .eyebrow,
.motion-ready.is-ready h1,
.motion-ready.is-ready .intro,
.motion-ready.is-ready .contact-actions,
.motion-ready.is-ready .contact-handle,
.motion-ready.is-ready .contact-strip,
.motion-ready.is-ready .brand-stage {
  opacity: 1;
  transform: translate(0);
  transition:
    opacity 650ms var(--ease-out),
    transform 650ms var(--ease-out);
}

.motion-ready.is-ready h1 { transition-delay: 70ms; }
.motion-ready.is-ready .intro { transition-delay: 140ms; }
.motion-ready.is-ready .contact-actions { transition-delay: 200ms; }
.motion-ready.is-ready .contact-handle { transition-delay: 240ms; }
.motion-ready.is-ready .contact-strip { transition-delay: 280ms; }
.motion-ready.is-ready .brand-stage { transition-delay: 100ms; transition-duration: 850ms; }

.motion-ready .logo-backdrop { transform: translateY(-105%); }
.motion-ready .logo-field img { opacity: 0; transform: scale(.9); }
.motion-ready.is-ready .logo-backdrop {
  transform: translateY(0);
  transition: transform 800ms 180ms var(--ease-out);
}
.motion-ready.is-ready .logo-field img {
  opacity: 1;
  transform: scale(1);
  transition: opacity 620ms 250ms var(--ease-out), transform 900ms 200ms var(--ease-out);
}

.qr-dialog {
  width: min(900px, calc(100% - 32px));
  max-height: calc(100svh - 32px);
  padding: clamp(26px, 4vw, 46px);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  overflow: auto;
  background: var(--surface);
  color: var(--ink);
}

.qr-dialog[open] {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(280px, 360px);
  align-items: center;
  gap: clamp(36px, 7vw, 74px);
  animation: dialog-in 360ms var(--ease-out) both;
}

.qr-dialog::backdrop {
  background: rgba(3, 9, 13, .82);
  backdrop-filter: blur(5px);
}

.qr-dialog h2 {
  max-width: 9ch;
  margin: 0 0 20px;
  font-size: clamp(2.4rem, 5vw, 4.4rem);
  line-height: .98;
  letter-spacing: -.035em;
}

.qr-dialog-copy > p:not(.eyebrow) {
  max-width: 33ch;
  color: var(--muted);
  line-height: 1.6;
}

.qr-dialog-copy > a {
  display: inline-block;
  margin-top: 12px;
  color: var(--blue-bright);
  font-weight: 600;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}

.qr-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: background-color 160ms var(--ease-out), color 160ms var(--ease-out), transform 160ms var(--ease-out);
}

.qr-close:hover { background: var(--ink); color: var(--bg); }
.qr-close:active { transform: scale(.94); }

.qr-card {
  display: grid;
  gap: 13px;
  padding: 17px;
  border-radius: 10px;
  background: #f7fafb;
  color: #071118;
  text-decoration: none;
  transition: transform 180ms var(--ease-out);
}

.qr-card:hover { transform: translateY(-3px); }
.qr-card:active { transform: translateY(0) scale(.99); }

.qr-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 2px;
}

.qr-brand img { width: 38px; height: 38px; object-fit: contain; }
.qr-brand span { display: grid; gap: 2px; }
.qr-brand b { font-size: .85rem; }
.qr-brand small { color: #4d6572; font-size: .66rem; }
.qr-code { display: block; width: 100%; height: auto; background: white; }

.qr-handle {
  color: #0a3147;
  font-size: 1.18rem;
  font-weight: 700;
  letter-spacing: -.02em;
  text-align: center;
}

.brand:focus-visible,
.contact-button:focus-visible,
.qr-button:focus-visible,
.contact-handle:focus-visible,
.qr-dialog-copy a:focus-visible,
.qr-close:focus-visible,
.qr-card:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}

@keyframes dialog-in {
  from { opacity: 0; transform: translateY(14px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes splash-progress {
  0% { transform: scaleX(0); }
  60% { transform: scaleX(.72); }
  100% { transform: scaleX(1); }
}

@keyframes splash-scan {
  to { transform: translateX(100%); }
}

@media (max-width: 860px) {
  .site-header,
  main,
  footer { width: min(100% - 36px, 680px); }

  .site-header { min-height: 88px; }
  .brand img { width: 43px; height: 43px; }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 64px;
    padding: 64px 0 72px;
  }

  .hero-copy { max-width: 620px; }
  h1 { max-width: 11ch; }

  .brand-stage {
    width: min(100%, 560px);
    min-height: 520px;
    margin-inline: auto;
  }
}

@media (max-width: 560px) {
  body::before { display: none; }
  .availability span:last-child { display: none; }
  .site-header { min-height: 80px; }
  .brand { font-size: .92rem; }
  .brand img { width: 40px; height: 40px; }

  .hero { padding-top: 48px; gap: 54px; }
  h1 { font-size: clamp(3rem, 15vw, 4.5rem); }
  .intro { margin: 24px 0 30px; }
  .contact-actions { display: grid; }
  .contact-button,
  .qr-button { width: 100%; }

  .brand-stage { min-height: 360px; }
  .brand-stage::before { inset-block: 24px; }
  .logo-field { inset: 50px 22px 48px 36px; }
  .logo-field img { width: min(78%, 310px); }
  .contact-strip { margin-top: 34px; }
  .contact-strip div + div { padding-left: 14px; }

  .qr-dialog[open] {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .qr-dialog-copy { text-align: center; }
  .qr-dialog h2,
  .qr-dialog-copy > p:not(.eyebrow) { margin-inline: auto; }

  .qr-card { width: min(100%, 340px); margin-inline: auto; }

  footer {
    min-height: 90px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 6px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    transition-delay: 0ms !important;
  }

  .splash-progress span,
  .splash::before { animation: none !important; }
}
