/* The Systronic landing page, v4 real thunder. Static, no framework. */

@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("assets/montserrat-latin-wght-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Montserrat";
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url("assets/montserrat-latin-wght-italic.woff2") format("woff2");
}

@property --c { syntax: "<number>"; inherits: true; initial-value: 0; }

:root {
  color-scheme: dark;
  --navy: #181d36;          /* measured from owner-logo-artwork.png */
  --bg: #090c1b;            /* the one dark surface: deeper step of the measured navy family */
  --core: #dce3fa;          /* bolt core on dark */
  --text: #e8edff;
  --muted: #a9b1c8;
  --cyan: #00bef6;
  --red: #ff003c;
  --royal: #00338d;
  --primary: #007da3;
  --primary-hover: #006b8c;
  --field: rgba(255, 255, 255, .075);
  --field-focus: rgba(255, 255, 255, .13);
  --err: #ff8aa5;
  --font: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: .04em;
  text-transform: uppercase;             /* v2: all text uppercase (CSS only) */
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
ul { list-style: none; margin: 0; padding: 0; }
a { color: inherit; }
input, textarea, button { text-transform: inherit; letter-spacing: inherit; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding-inline: 28px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Keyboard focus: the one ring, #00BEF6 (9:1 on the dark surface) */
:focus { outline: none; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }

/* ---------- Buttons: dark core, the logo's cyan / red light running around the edge ---------- */
@property --a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.btn {
  --glow: .5;
  --edge: conic-gradient(from var(--a), var(--cyan), #8fe6ff 14%, var(--cyan) 26%, var(--red) 50%, #ff6a8c 62%, var(--red) 74%, var(--cyan));
  position: relative;                /* no own stacking context: the glow sits behind the dark core */
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 30px;
  font: 500 15px/1 var(--font); letter-spacing: .14em; text-decoration: none;
  color: #fff; background: #0e1430;
  border: 0; border-radius: 12px; cursor: pointer;
  animation: edge-run 5s linear infinite;
  transition: background-color .25s, transform .2s;
}
.btn::before, .btn::after { content: ""; position: absolute; border-radius: inherit; pointer-events: none; background: var(--edge); }
.btn::before {                                     /* the lit edge, above the core */
  inset: 0; padding: 1.5px;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.btn::after {                                      /* its glow, behind the core */
  inset: -3px; z-index: -1; filter: blur(13px); opacity: var(--glow);
  transition: opacity .35s;
}
@keyframes edge-run { to { --a: 360deg; } }
.btn:hover { background: #141c40; --glow: .85; }
.btn:active { transform: translateY(1px); }
.btn--sm { min-height: 42px; padding: 0 22px; font-size: 13px; border-radius: 10px; }
.btn:disabled { cursor: progress; }

/* Thunder contact: the word is struck, flickers with the re-strikes, then settles. */
.word-plasma { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 6; pointer-events: none; mix-blend-mode: screen; }
.hit { animation: word-struck .62s linear both; }
@keyframes word-struck {
  0%   { color: #fff; text-shadow: 0 0 6px #fff, 0 0 18px rgba(170,230,255,.9), 0 0 42px rgba(0,190,246,.6); }
  8%   { color: inherit; text-shadow: 0 0 4px rgba(255,255,255,.25); }
  14%  { color: #fff; text-shadow: 0 0 6px #fff, 0 0 16px rgba(170,230,255,.8), 0 0 36px rgba(0,190,246,.5); }
  24%  { color: inherit; text-shadow: 0 0 6px rgba(255,255,255,.35), 0 0 18px rgba(0,190,246,.25); }
  30%  { color: #fff; text-shadow: 0 0 5px rgba(255,255,255,.9), 0 0 22px rgba(0,190,246,.45); }
  44%  { color: inherit; text-shadow: 0 0 8px rgba(255,255,255,.3), 0 0 20px rgba(0,190,246,.2); }
  100% { color: inherit; text-shadow: 0 0 0 rgba(255,255,255,0); }
}
.btn.hit { animation: edge-run 5s linear infinite; }
.btn.hit::after { animation: btn-struck .62s linear both; }
@keyframes btn-struck { 0%, 14%, 30% { opacity: 1; filter: blur(16px) brightness(1.8); } 8%, 24% { opacity: .4; } 100% { opacity: var(--glow); } }

/* ---------- Header ---------- */
.header { position: relative; z-index: 7; height: var(--header-h); }
.header__in { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand__bolt { height: 38px; width: auto; overflow: visible; }
.brand__word { font-weight: 800; font-style: italic; font-size: 17px; letter-spacing: .02em; color: var(--text); }

/* bolt layers: cyan upper-left edge, red lower-right edge, light core */
.b-cyan { fill: var(--cyan); }
.b-red  { fill: var(--red); }
.b-core { fill: var(--core); }
svg use { overflow: visible; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  margin-top: calc(var(--header-h) * -1); padding-top: var(--header-h);
}
.hero::before {                                   /* soft plasma haze behind the logo, same surface */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 46% 56% at 74% 46%, rgba(0, 190, 246, .10), transparent 70%),
    radial-gradient(ellipse 34% 40% at 82% 66%, rgba(255, 0, 60, .07), transparent 70%);
}
.ghost {
  position: absolute; z-index: 0; pointer-events: none;
  width: min(1080px, 150vw); height: auto; right: -12%; top: -14%;
  fill: rgba(255, 255, 255, .028);
}
.hero__in {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 24px;
  min-height: min(calc(100vh - var(--header-h)), 780px);
  padding-top: 24px; padding-bottom: 88px;
}
.hero h1 {
  font-weight: 800; font-style: italic; letter-spacing: .005em; color: #d5ddf7;
  font-size: clamp(36px, 5vw, 74px); line-height: 1.08;
}
.hero__sub {
  margin-top: 22px; max-width: 40em; text-wrap: balance; font-size: 15px; line-height: 1.7;
  font-weight: 400; letter-spacing: .2em; color: var(--muted);
}
.hero__copy .btn { margin-top: 40px; }
.hero::after {                                    /* hero light dissolves into the page: no band edge */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 260px; pointer-events: none;
  background: linear-gradient(to bottom, rgba(9, 12, 27, 0), var(--bg));
}

.hero__art { display: flex; justify-content: center; }
.lockup {
  position: relative;
  container-type: inline-size;
  width: min(100%, 440px);
  display: flex; flex-direction: column; align-items: center;
  transform-origin: 50% 50%;
}
.plasma {
  position: absolute; inset: -18% -34% 4% -34%; pointer-events: none; z-index: 0;
  background:
    radial-gradient(closest-side at 42% 38%, rgba(0, 190, 246, .55), transparent 72%),
    radial-gradient(closest-side at 62% 62%, rgba(255, 0, 60, .38), transparent 72%);
  filter: blur(26px); opacity: .3; will-change: opacity;
}
.lockup__bolt {
  position: relative; z-index: 1; width: 68%; height: auto; overflow: visible;
  filter: drop-shadow(0 0 14px rgba(0, 190, 246, .4));
  animation: edge-breathe 5.5s ease-in-out infinite;
}
.lockup__word {
  position: relative; z-index: 1; margin-top: 5cqw; text-align: center; white-space: nowrap;
  font-weight: 800; font-style: italic; font-size: 9cqw; letter-spacing: .02em; color: var(--text);
}
/* Approved artwork geometry stays still; only its edge light changes. */
.lockup__bolt .b-cyan { transform: translate(-3px, -3px); }
.lockup__bolt .b-red { transform: translate(3px, 3px); }
@keyframes edge-breathe {
  0%, 100% { filter: drop-shadow(-3px -2px 11px rgba(0,190,246,.3)) drop-shadow(3px 2px 7px rgba(255,0,60,.13)); }
  50% { filter: drop-shadow(-3px -2px 15px rgba(0,190,246,.38)) drop-shadow(3px 2px 10px rgba(255,0,60,.19)); }
}
.lockup.is-energized .lockup__bolt { animation: edge-surge 2.2s ease-out both; }
.lockup.is-energized .plasma { animation: plasma-surge 2.2s ease-out both; }
@keyframes edge-surge {
  0% { filter: drop-shadow(-3px -2px 12px rgba(0,190,246,.4)); }
  8% { filter: drop-shadow(-4px -2px 28px rgba(0,190,246,.9)) drop-shadow(5px 3px 20px rgba(255,0,60,.65)); }
  100% { filter: drop-shadow(-3px -2px 11px rgba(0,190,246,.3)) drop-shadow(3px 2px 7px rgba(255,0,60,.13)); }
}
@keyframes plasma-surge { 0%,100% { opacity: .3; } 10% { opacity: .68; } }

/* Site readiness bar */
.charge { margin-top: 38px; max-width: 420px; }
.charge__label { font-size: 13px; font-weight: 500; letter-spacing: .1em; color: var(--muted); }
.charge__label strong { font-weight: 700; color: var(--text); }
.charge__track { margin-top: 10px; height: 10px; border-radius: 99px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.charge__fill {
  display: block; height: 100%; width: 0; border-radius: 99px;
  background: linear-gradient(90deg, var(--cyan), #7fe3ff);
  transition: width 1.4s cubic-bezier(.2, .8, .2, 1);
  position: relative; overflow: hidden;
}
.charge__fill::after {
  content: ""; position: absolute; inset: 0; transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .75), transparent);
  animation: charge-sheen 2.6s ease-in-out 1.6s infinite;
}
@keyframes charge-sheen { to { transform: translateX(100%); } }

/* thin glowing line between sections */
.rule {
  height: 1px; max-width: 1200px; margin: 0 auto;
  background: linear-gradient(90deg, transparent, rgba(0, 190, 246, .6) 30%, rgba(255, 0, 60, .55) 70%, transparent);
  box-shadow: 0 0 18px rgba(0, 190, 246, .32);
}

/* ---------- IMAGINE ---------- */
.im { padding: 88px 0 96px; }
.im__row { position: relative; display: grid; grid-template-columns: repeat(7, 1fr); }
.im__btn {
  display: block; width: 100%; padding: 0; margin: 0; text-align: center;
  background: none; border: 0; color: inherit; cursor: pointer; font: inherit;
}
.im__letter {
  display: block; font-weight: 200; font-size: min(8.4vw, 118px); line-height: 1.15;
  letter-spacing: 0; color: #fff; transition: color .25s; transform-origin: 50% 60%;
}
.im__btn:hover .im__letter, .im__btn[aria-expanded="true"] .im__letter { color: var(--cyan); }
.im__btn:focus-visible { outline-offset: -3px; }
.im__mark {                                       /* slides under the active letter: never moves letters */
  position: absolute; left: 0; bottom: -10px; width: calc(100% / 7); height: 4px; pointer-events: none;
  display: flex; justify-content: center; opacity: 0;
  transform: translateX(calc(var(--i, 0) * 100%));
  transition: transform .35s cubic-bezier(.2, .8, .2, 1), opacity .25s;
}
.im__mark::before { content: ""; width: 46px; height: 4px; background: linear-gradient(90deg, var(--cyan) 50%, var(--red) 50%); box-shadow: 0 0 14px rgba(0, 190, 246, .6); }
.im__row.has-active .im__mark { opacity: 1; }

.im__info { position: relative; margin-top: 34px; min-height: 150px; }       /* fixed area: no reflow */
.im__hint {
  text-align: center; padding-top: 10px; font-size: 13px; font-weight: 500; letter-spacing: .32em; color: var(--muted);
  animation: hint-breathe 3.2s ease-in-out infinite;
}
.im__row.has-active + .im__info .im__hint { display: none; }
@keyframes hint-breathe { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
.im__pane { display: grid; justify-items: center; text-align: center; gap: 10px; animation: pane-in .35s ease-out both; }
.im__pane[hidden] { display: none; }
.im__pane h3 { font-weight: 800; font-style: italic; font-size: clamp(28px, 3.4vw, 46px); line-height: 1.1; letter-spacing: .02em; color: #fff; }
.im__pane p { max-width: 38em; font-size: 16px; line-height: 1.8; font-weight: 300; letter-spacing: .12em; color: var(--muted); padding-top: 6px; }
@keyframes pane-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* intro wave I -> E: cyan / red alternately, slight scale, then back */
.im__row.is-wave .im__letter { animation: letter-wave .72s ease-in-out calc(var(--i) * 110ms) backwards; }
.im__row.is-wave .im__btn:nth-of-type(odd) .im__letter { --wc: var(--cyan); }
.im__row.is-wave .im__btn:nth-of-type(even) .im__letter { --wc: var(--red); }
@keyframes letter-wave {
  0%   { transform: scale(1); color: #fff; }
  42%  { transform: scale(1.16); color: var(--wc); text-shadow: 0 0 22px var(--wc); }
  100% { transform: scale(1); color: #fff; }
}

/* ---------- Contact: one sentence ---------- */
.contact { padding: 96px 0 112px; }
.contact__head h2 {
  font-weight: 800; font-style: italic; letter-spacing: .01em; text-wrap: balance;
  font-size: clamp(30px, 4vw, 54px); line-height: 1.1; color: #fff;
}
.contact__head p {
  margin-top: 18px; max-width: 34em; font-size: 15px; line-height: 1.8;
  font-weight: 300; letter-spacing: .12em; color: var(--muted);
}

/* One continuous sentence over the approved logo geometry. */
.contact { position: relative; isolation: isolate; overflow: hidden; }
.contact > .wrap { position: relative; z-index: 2; }
.form { margin-top: 52px; }
.form__stage { position: relative; }
.sentence { font-weight: 300; letter-spacing: .04em; color: var(--text); font-size: clamp(20px, 2.6vw, 36px); line-height: 1.9; }
.sentence__t { white-space: nowrap; }
.slot { position: relative; padding-right: .4em; display: inline-flex; align-items: baseline; vertical-align: baseline; max-width: 100%; }
.dot { position: absolute; margin: 0; letter-spacing: 0; line-height: normal; pointer-events: none; }
.blank {
  position: relative; display: inline-grid; grid-template-columns: minmax(0, 1fr);
  min-width: 4ch; max-width: 100%; vertical-align: baseline; line-height: 1.4;
  background: linear-gradient(var(--muted), var(--muted)) left bottom / 100% 1px no-repeat;
}
.blank::after {
  content: attr(data-value); grid-area: 1 / 1; visibility: hidden; pointer-events: none;
  white-space: pre; overflow: hidden; padding: 0 .08em .08em;
  font: inherit; font-weight: 500; letter-spacing: inherit; text-transform: inherit;
}
.blank--idea::after { white-space: pre-wrap; overflow-wrap: anywhere; }
.blank[data-value=""]::after { content: attr(data-ph); }
.blank input, .blank textarea {
  position: absolute; inset: 0; display: block; width: 100%; height: 100%; min-width: 0; margin: 0; padding: 0 .08em .08em;
  font: inherit; font-weight: 500; letter-spacing: inherit; color: #fff; line-height: inherit;
  background: transparent; border: 0; border-radius: 0; resize: none; overflow: hidden;
  -webkit-appearance: none; appearance: none;
}
.blank input::placeholder, .blank textarea::placeholder { color: var(--muted); opacity: 1; font-weight: 500; }
.blank:focus-within, .blank.is-valid { background-image: linear-gradient(90deg, var(--cyan), var(--red)); background-size: 100% 2px; }
.blank input:focus-visible, .blank textarea:focus-visible { outline: none; }      /* focus = the lit underline below */
.blank:focus-within { background-size: 100% 3px; }
.blank:focus-within::before { opacity: .9; }
.blank::before { content: ""; position: absolute; bottom: 0; left: 0; right: 0; height: 2px; pointer-events: none;
  background: linear-gradient(90deg, var(--cyan), var(--red)); filter: blur(4px); opacity: 0; transition: opacity .3s; }
.blank.is-valid::before { opacity: .65; }
.blank.has-error { background-image: linear-gradient(var(--err), var(--err)); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.errs { margin-top: 18px; display: grid; gap: 6px; }
.errs li { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; font-weight: 500; letter-spacing: .1em; line-height: 1.5; color: var(--err); }
.errs li[hidden] { display: none; }
.errs li::before {
  content: "!"; flex: none; width: 18px; height: 18px; margin-top: 1px; border-radius: 50%;
  background: var(--err); color: var(--bg); font-size: 12px; font-weight: 800; line-height: 18px; text-align: center;
}

.form__actions { margin-top: 30px; }
.btn--charge {                                     /* the light builds with each filled blank */
  --c: 0;
  min-height: 56px; padding: 0 40px; font-size: 16px; letter-spacing: .18em;
  --glow: calc(.12 + var(--c) * .68);
  transition: --c .6s ease, background-color .25s;
}
.btn--charge::before { opacity: calc(.35 + var(--c) * .65); }
.btn--charge .btn__label { text-shadow: 0 0 calc(var(--c) * 12px) rgba(255, 255, 255, .7); }
.btn--charge:hover { --glow: calc(.3 + var(--c) * .65); }
.btn__spin { display: none; width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .4); border-top-color: #fff; animation: spin .7s linear infinite; }
.btn.is-loading .btn__spin { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

.form__status:empty { display: none; }
.form__status { margin-top: 18px; font-size: 16px; line-height: 1.6; color: var(--err); }
.form__success { min-height: 56px; display: flex; align-items: center; font-size: clamp(17px, 2vw, 24px); font-weight: 500; color: #fff;
  letter-spacing: .14em; text-shadow: 0 0 10px rgba(255, 255, 255, .45), 0 0 26px rgba(0, 190, 246, .35); }
.form__success[hidden], .form__actions .btn[hidden] { display: none; }

/* ---------- Footer ---------- */
.footer { padding: 40px 0 44px; color: var(--muted); font-size: 12px; font-weight: 300; letter-spacing: .14em; background:
  linear-gradient(90deg, transparent, rgba(0, 190, 246, .35) 30%, rgba(255, 0, 60, .3) 70%, transparent) top / min(1200px, 100%) 1px no-repeat; }
.footer__in { display: flex; justify-content: space-between; gap: 12px 32px; flex-wrap: wrap; }

/* ---------- Real-footage intro, scene light and calm form feedback ---------- */
.thunder { position: absolute; z-index: 5; max-width: none; pointer-events: none; opacity: 0;
  mix-blend-mode: screen; object-fit: fill; }
.thunder.is-playing { opacity: 1; }
.page-flash { position: fixed; inset: 0; z-index: 30; pointer-events: none;
  background: #c1eaff; mix-blend-mode: screen; opacity: 0; }
.header, .hero__in, .ghost { transition: opacity .3s ease-out; }
html.is-intro .header, html.is-intro .hero__in, html.is-intro .ghost,
html.is-intro .im, html.is-intro .contact, html.is-intro .rule, html.is-intro .footer { opacity: 0; }
.form__stage::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(100deg, transparent 30%, rgba(0,190,246,.09) 48%, rgba(233,251,255,.15) 52%, transparent 70%);
  background-size: 250% 100%; background-position: 140% 0; opacity: 0; }
.form.is-sending-light .form__stage::after { animation: sentence-sweep .6s ease-in-out both; }
.form.is-sending-light .btn--charge::after { animation: send-pulse .6s ease-out both; }
.form.is-failed .btn--charge { --glow: .1; }
@keyframes sentence-sweep { 0% { background-position: 140% 0; opacity: 0; } 15%,85% { opacity: 1; } 100% { background-position: -140% 0; opacity: 0; } }
@keyframes send-pulse { 0%,100% { opacity: .8; } 40% { opacity: 1; filter: blur(18px) brightness(1.5); } }
.form__success:not([hidden]) { animation: success-fade .35s ease-out both; }
@keyframes success-fade { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .wrap { padding-inline: 24px; }
}

@media (max-width: 900px) {
  .hero__in { grid-template-columns: 1fr; min-height: 0; padding-top: 8px; padding-bottom: 72px; gap: 28px; }
  .hero__art { order: -1; }
  .lockup { width: min(72%, 300px); }
  .ghost { right: -40%; top: -4%; width: 150vw; }
  .contact { padding: 80px 0 88px; }
  .im__pane { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .im { padding: 64px 0 72px; }
  .im__info { min-height: 176px; margin-top: 24px; }
}

@media (max-width: 520px) {
  body { font-size: 15px; }
  .wrap { padding-inline: 20px; }
  :root { --header-h: 68px; }
  .brand__word { font-size: 13px; }
  .brand__bolt { height: 32px; }
  .hero h1 { font-size: clamp(30px, 9.4vw, 44px); }
  .hero__sub { font-size: 14px; margin-top: 20px; }
  .hero__copy .btn { width: 100%; }
  .btn--sm { padding: 0 14px; font-size: 12px; }
  .im__letter { font-size: 11.2vw; }
  .im__pane h3 { font-size: 30px; }
  .im__pane p { font-size: 14px; }
  .contact__head p { font-size: 13px; }
  .sentence { font-size: 20px; line-height: 1.9; }
  .form__actions .btn { width: auto; }
  .footer__in { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
  .word-plasma, .thunder, .page-flash { display: none !important; }
  html.is-intro .header, html.is-intro .hero__in, html.is-intro .ghost, html.is-intro .im, html.is-intro .contact, html.is-intro .rule, html.is-intro .footer { opacity: 1; }
  .lockup__bolt { filter: drop-shadow(-3px -2px 14px rgba(0,190,246,.38)) drop-shadow(3px 2px 8px rgba(255,0,60,.18)); }
  .plasma { opacity: .5; }                      /* static charged look */
}
