/* ==========================================================================
   LAMTES — coming soon
   Type:  Archivo (variable, display + text) · IBM Plex Mono (utility/labels)
   Idea:  the wordmark is a measured legend — each letter stands over the word
          it abbreviates, drawn like an engineering drafting callout.
   ========================================================================== */

@font-face {
  font-family: 'Archivo';
  src: url('/fonts/archivo-var-latin.woff2') format('woff2');
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Plex Mono';
  src: url('/fonts/plexmono-400-latin.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Plex Mono';
  src: url('/fonts/plexmono-500-latin.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* --------------------------------------------------------- tokens ------ */
:root {
  --ink:        #0A0D12;
  --ink-lift:   #0E1219;
  --fg:         #EDF0F5;
  --fg-2:       #A2AABA;
  /* --fg-3 carries the small mono type; held at ~5:1 on --ink for WCAG AA */
  --fg-3:       #7B8496;
  --line:       rgb(233 238 247 / 9%);
  --line-soft:  rgb(233 238 247 / 5%);
  --accent:     #8A9BFF;
  --accent-lo:  rgb(138 155 255 / 13%);

  --sans: 'Archivo', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --gut: clamp(1.25rem, 5vw, 4.5rem);
  --shell: 1160px;

  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* --------------------------------------------------------- reset ------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100dvh;
  background: var(--ink);
  color: var(--fg);
  font-family: var(--sans);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
h1, h2, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }

::selection { background: var(--accent); color: #06080C; }

:where(a, [tabindex]):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 2px;
}

/* ------------------------------------------------- ambient backdrop ---- */
.field {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* hairline survey grid, faded away from the centre */
.field__grid {
  position: absolute;
  inset: -1px;
  background-image:
    linear-gradient(to right, var(--line-soft) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line-soft) 1px, transparent 1px);
  background-size: 88px 88px;
  -webkit-mask-image: radial-gradient(115% 85% at 50% 34%, #000 8%, transparent 76%);
          mask-image: radial-gradient(115% 85% at 50% 34%, #000 8%, transparent 76%);
  opacity: 0;
  animation: field-in 1.6s var(--ease) .1s forwards;
}

/* one slow, low-saturation light source — the only glow on the page */
.field__bloom {
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(46% 38% at 34% 26%, rgb(138 155 255 / 13%), transparent 68%),
    radial-gradient(38% 46% at 76% 68%, rgb(96 140 190 / 8%),  transparent 70%);
  opacity: 0;
  animation:
    field-in 2.4s var(--ease) .1s forwards,
    drift 26s ease-in-out 1.4s infinite alternate;
  will-change: transform;
}

@keyframes field-in { to { opacity: 1; } }
@keyframes drift {
  from { transform: translate3d(0, 0, 0)        scale(1); }
  to   { transform: translate3d(2.5%, -2%, 0)   scale(1.06); }
}

/* --------------------------------------------------------- shell ------- */
.frame {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gut);
}

/* --------------------------------------------------------- top bar ----- */
.bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-block: clamp(1.5rem, 3.4vh, 2.4rem);
  font-family: var(--mono);
  font-size: .6875rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  opacity: 0;
  animation: field-in .9s var(--ease) .15s forwards;
}
.bar__mark { color: var(--fg-2); font-weight: 500; }

/* --------------------------------------------------------- hero -------- */
.hero {
  container-type: inline-size;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: clamp(2.5rem, 7vh, 5.5rem);
}

.eyebrow {
  font-family: var(--mono);
  font-size: .6875rem;
  font-weight: 500;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--fg-3);
  margin-bottom: clamp(1.5rem, 3.6vh, 2.5rem);
}
.eyebrow i { font-style: normal; color: var(--accent); opacity: .65; padding-inline: .28em; }

/* --- the wordmark: six letters, six equal measures ---------------------- */
.wm {
  display: grid;
  /* minmax(0,…) is load-bearing: with the default auto minimum the letters'
     min-content width forces the whole shell wider than a phone viewport */
  grid-template-columns: repeat(6, minmax(0, 1fr));
  /* pushed to the widest width axis: it evens the rhythm of L/T/E against
     M/S so the six equal measures read as a rule, not as loose tracking */
  font-size: min(15.2cqw, 12rem);
  font-variation-settings: 'wdth' 125, 'wght' 600;
  line-height: .84;
  letter-spacing: -.005em;
  color: var(--fg);
}
.wm__l {
  display: block;
  text-align: center;
  transform-origin: 50% 100%;
}
/* the mark is justified to the measure: outer letters sit flush to the margins
   so the wordmark and its rule share exactly the same span */
.wm__l:first-child,  .legend__w:first-child  { text-align: left; }
.wm__l:last-child,   .legend__w:last-child   { text-align: right; }

.rule {
  height: 1px;
  margin-top: clamp(.9rem, 2.2vh, 1.35rem);
  background: linear-gradient(to right, var(--line), rgb(233 238 247 / 16%), var(--line));
  transform: scaleX(0);
  transform-origin: 0 50%;
  animation: draw 1s var(--ease) .5s forwards;
}
@keyframes draw { to { transform: scaleX(1); } }

/* --- the legend: what each letter measures ----------------------------- */
.legend {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  padding-top: 1.5rem;
  font-family: var(--mono);
  font-size: .6875rem;
  font-weight: 400;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--fg-3);
}
.legend__w {
  position: relative;
  text-align: center;
  opacity: 0;
  animation: rise .8s var(--ease) forwards;
  animation-delay: calc(.72s + var(--i) * .06s);
}
/* the drop tick from the rule down to each word */
.legend__w::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  width: 1px;
  height: 1.5rem;
  margin-top: -1.5rem;
  background: linear-gradient(to bottom, rgb(233 238 247 / 22%), rgb(233 238 247 / 8%));
  transform: scaleY(0);
  transform-origin: 50% 0;
  animation: drop .5s var(--ease) forwards;
  animation-delay: calc(.66s + var(--i) * .06s);
}
/* the outermost ticks mark the full extent of the measure */
.legend__w:first-child::before { left: 0; }
.legend__w:last-child::before  { left: auto; right: 0; }
@keyframes drop { to { transform: scaleY(1); } }

/* --- lower zone: statement left, capability index right ---------------- */
.low {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  align-items: end;
  gap: clamp(2rem, 5vw, 4rem);
  margin-top: clamp(2.75rem, 8vh, 5rem);
}
.low__lead {
  display: grid;
  gap: clamp(1rem, 2.2vh, 1.4rem);
  max-width: 34rem;
}
.say__head {
  font-size: clamp(1.5rem, 1.1rem + 1.7vw, 2.4rem);
  font-weight: 500;
  font-stretch: 104%;
  line-height: 1.14;
  letter-spacing: -.022em;
  color: var(--fg);
  text-wrap: balance;
}
.say__body {
  font-size: clamp(.9375rem, .9rem + .2vw, 1.0625rem);
  font-weight: 400;
  line-height: 1.68;
  color: var(--fg-2);
  max-width: 44ch;
  text-wrap: pretty;
}

/* --- capability index -------------------------------------------------- */
.low__idx { padding-bottom: .25rem; }

.idx__label {
  margin: 0 0 .875rem;
  padding-bottom: .75rem;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: .625rem;
  font-weight: 400;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--fg-3);
}
.caps {
  display: grid;
  gap: .5rem;
  font-family: var(--mono);
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--fg-2);
}
.caps li {
  display: flex;
  align-items: baseline;
  gap: .75rem;
  white-space: nowrap;
}
.caps li::before {
  content: '';
  flex: none;
  width: 4px;
  height: 1px;
  background: var(--accent);
  opacity: .7;
  transform: translateY(-.25em);
}

/* --- call to action ---------------------------------------------------- */
.act {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.75rem;
  margin-top: clamp(.75rem, 2vh, 1.25rem);
}
.cta {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  padding: .875rem 1.25rem;
  border: 1px solid var(--line);
  background: rgb(233 238 247 / 2%);
  color: var(--fg);
  font-family: var(--mono);
  font-size: .8125rem;
  letter-spacing: .04em;
  text-decoration: none;
  transition:
    border-color .35s var(--ease),
    background-color .35s var(--ease),
    color .35s var(--ease);
}
.cta:hover {
  border-color: rgb(138 155 255 / 45%);
  background: var(--accent-lo);
  color: #fff;
}
.cta__arw {
  color: var(--fg-3);
  transition: transform .35s var(--ease), color .35s var(--ease);
}
.cta:hover .cta__arw {
  transform: translate(2px, -2px);
  color: var(--accent);
}
.act__note {
  font-family: var(--mono);
  font-size: .8125rem;
  letter-spacing: .02em;
  color: var(--fg-3);
}

/* --------------------------------------------------------- footer ------ */
.foot {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: .5rem 1.5rem;
  padding-block: clamp(1.5rem, 3.4vh, 2.25rem);
  border-top: 1px solid var(--line-soft);
  font-family: var(--mono);
  font-size: .6875rem;
  line-height: 1.7;
  letter-spacing: .06em;
  color: var(--fg-3);
  opacity: 0;
  animation: rise .9s var(--ease) 1.5s forwards;
}
.foot__legal { color: var(--fg-2); }
.foot__legal span { color: var(--fg-3); }
.foot__mail {
  color: var(--fg-3);
  text-decoration: none;
  letter-spacing: .08em;
  border-bottom: 1px solid transparent;
  transition: color .3s var(--ease), border-color .3s var(--ease);
}
.foot__mail:hover { color: var(--fg); border-bottom-color: var(--line); }

/* --------------------------------------------------- load sequence ----- */
@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}
@keyframes letter-in {
  from { opacity: 0; transform: translateY(.11em) scaleY(.94); filter: blur(7px); }
  to   { opacity: 1; transform: none;                          filter: blur(0); }
}

.reveal {
  opacity: 0;
  animation: rise .85s var(--ease) forwards;
  animation-delay: calc(.2s + var(--i) * .07s);
}
.reveal-l {
  opacity: 0;
  animation: letter-in .95s var(--ease) forwards;
  animation-delay: calc(.16s + var(--i) * .07s);
}

/* --------------------------------------------------------- narrow ------ */
@media (max-width: 860px) {
  .low {
    grid-template-columns: 1fr;
    align-items: start;
    gap: clamp(2rem, 5vh, 2.75rem);
  }
  .low__idx { padding-bottom: 0; }
}

@media (max-width: 720px) {
  /* six mono captions cannot survive a phone — the legend becomes one line,
     the rule keeps the measurement idea alive */
  .legend {
    display: block;
    padding-top: 1.125rem;
    font-size: .625rem;
    letter-spacing: .17em;
    line-height: 1.9;
    max-width: 26rem;
  }
  .legend__w::before { display: none; }
  .legend__w::after { content: ' '; }
  .legend__w:last-child::after { content: ''; }
  .foot { flex-direction: column; }
}

@media (max-width: 420px) {
  /* keep the eyebrow on one line — a two-line "Cloud · Security · Mission"
     reads as a wrap accident rather than a strapline */
  .eyebrow { font-size: .625rem; letter-spacing: .24em; }
  .eyebrow i { padding-inline: .2em; }
}

/* --------------------------------------------------------- motion ------ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0ms !important;
    transition-duration: .01ms !important;
  }
  .field__grid, .field__bloom, .bar, .foot,
  .reveal, .reveal-l, .legend__w { opacity: 1; }
  .rule { transform: scaleX(1); }
  .legend__w::before { transform: scaleY(1); }
}
