/* Alderprompt — dark teal secure-assistants world; IBM Plex; iPhone-ready */
:root {
  --ink: #04080a;
  --ink-2: #0a1216;
  --panel: #0e181d;
  --line: rgba(94, 234, 212, 0.18);
  --teal: #2dd4bf;
  --teal-dim: #14b8a6;
  --teal-glow: rgba(45, 212, 191, 0.22);
  --mist: #c8d5d8;
  --paper: #eef6f5;
  --mute: #7a9196;
  --serif: "IBM Plex Serif", Georgia, "Times New Roman", serif;
  --sans: "IBM Plex Sans", system-ui, sans-serif;
  --max: 1120px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-x: env(safe-area-inset-left, 0px);
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  min-height: 100%;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 1.02rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  max-width: 100vw;
}
body.nav-open { overflow: hidden; }

img { max-width: 100%; display: block; }

a {
  color: var(--teal);
  text-decoration: none;
  cursor: pointer;
  transition: color 180ms var(--ease), opacity 180ms var(--ease);
}
a:hover { color: #5eead4; }

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--teal);
  color: var(--ink);
  padding: 0.5rem 0.75rem;
  z-index: 100;
}
.skip:focus { left: 0.75rem; top: 0.75rem; }

/* —— top —— */
.mast {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: calc(0.85rem + var(--safe-top)) max(1.1rem, var(--safe-x)) 0.85rem;
  background: linear-gradient(180deg, rgba(4, 8, 10, 0.88), rgba(4, 8, 10, 0));
  backdrop-filter: blur(0px);
  transition: background 220ms var(--ease), backdrop-filter 220ms var(--ease);
}
.mast.is-solid,
body.nav-open .mast {
  background: rgba(4, 8, 10, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--paper);
  font-weight: 600;
  letter-spacing: -0.02em;
  min-height: 44px;
  z-index: 2;
}
.brand img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  box-shadow: 0 0 0 1px var(--line), 0 0 24px var(--teal-glow);
}
.brand span {
  font-family: var(--sans);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0;
  z-index: 2;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--teal);
  transition: transform 180ms var(--ease), opacity 180ms var(--ease);
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.desk-nav {
  display: flex;
  gap: clamp(0.9rem, 2vw, 1.6rem);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.desk-nav a {
  color: var(--mist);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.desk-nav a:hover { color: var(--teal); }

.site-nav {
  display: none;
}

/* —— hero: one composition —— */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% center;
  transform: scale(1.02);
  filter: saturate(1.05) contrast(1.05) brightness(0.92);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 60% 50% at 75% 40%, rgba(20, 184, 166, 0.16), transparent 70%),
    linear-gradient(180deg, rgba(4, 8, 10, 0.35) 0%, rgba(4, 8, 10, 0.55) 42%, rgba(4, 8, 10, 0.94) 100%),
    linear-gradient(90deg, rgba(4, 8, 10, 0.78) 0%, rgba(4, 8, 10, 0.35) 55%, rgba(4, 8, 10, 0.55) 100%);
}

.hero-flow {
  position: absolute;
  inset: auto -10% 18% -10%;
  height: 42%;
  z-index: -1;
  opacity: 0.45;
  background:
    radial-gradient(ellipse 40% 30% at 20% 50%, rgba(45, 212, 191, 0.25), transparent 70%),
    radial-gradient(ellipse 35% 40% at 70% 40%, rgba(20, 184, 166, 0.18), transparent 70%);
  animation: flowPulse 9s var(--ease) infinite alternate;
  pointer-events: none;
}

@keyframes flowPulse {
  from { transform: translateX(-2%) scale(1); opacity: 0.35; }
  to { transform: translateX(3%) scale(1.05); opacity: 0.55; }
}

.hero-copy {
  width: min(var(--max), 100%);
  margin: 0 auto;
  padding: calc(6.5rem + var(--safe-top)) max(1.1rem, var(--safe-x)) calc(3rem + var(--safe-bottom));
}

.hero-kicker {
  margin: 0 0 1rem;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal);
  font-weight: 500;
}

.hero h1 {
  margin: 0;
  max-width: 12ch;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.7rem, 9vw, 5.8rem);
  line-height: 0.96;
  letter-spacing: -0.02em;
  color: var(--paper);
  overflow-wrap: anywhere;
}

.hero-lede {
  margin: 1.35rem 0 0;
  max-width: 34rem;
  color: var(--mist);
  font-size: clamp(1rem, 1.6vw, 1.18rem);
  font-weight: 300;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 500;
  border: 1px solid transparent;
  transition: transform 180ms var(--ease), background 180ms var(--ease), border-color 180ms var(--ease), color 180ms var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn-fill {
  background: var(--teal);
  color: var(--ink);
}
.btn-fill:hover { background: #5eead4; color: var(--ink); }
.btn-ghost {
  border-color: var(--line);
  color: var(--paper);
  background: rgba(14, 24, 29, 0.45);
}
.btn-ghost:hover { border-color: var(--teal); color: var(--teal); }

/* —— pin strip —— */
.pin {
  border-block: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(45, 212, 191, 0.06), transparent 40%),
    var(--ink-2);
}
.pin-inner {
  width: min(var(--max), 100%);
  margin: 0 auto;
  padding: 2.6rem max(1.1rem, var(--safe-x));
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.4rem 2rem;
  align-items: start;
}
.pin-label {
  margin: 0.35rem 0 0;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal-dim);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}
.pin blockquote {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2.6vw, 1.9rem);
  line-height: 1.35;
  font-weight: 400;
  color: var(--paper);
  max-width: 38ch;
}
.pin cite {
  display: block;
  margin-top: 1rem;
  font-family: var(--sans);
  font-style: normal;
  font-size: 0.85rem;
  color: var(--mute);
  letter-spacing: 0.04em;
}

/* —— sections —— */
.band {
  width: min(var(--max), 100%);
  margin: 0 auto;
  padding: 5rem max(1.1rem, var(--safe-x));
}

.eyebrow {
  margin: 0 0 0.65rem;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal-dim);
  font-weight: 500;
}

.band h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.85rem, 4.2vw, 2.85rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  max-width: 18ch;
}

.deck {
  margin: 0.9rem 0 0;
  max-width: 36rem;
  color: var(--mist);
  font-weight: 300;
}

.ribbon {
  margin-top: 2.8rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
}
.ribbon article {
  padding: 1.6rem 1.25rem 1.6rem 0;
  border-right: 1px solid var(--line);
  padding-right: 1.4rem;
  margin-right: 1.4rem;
}
.ribbon article:last-child {
  border-right: 0;
  margin-right: 0;
  padding-right: 0;
}
.ribbon .n {
  display: block;
  font-family: var(--serif);
  font-size: 1.5rem;
  color: var(--teal);
  margin-bottom: 0.7rem;
}
.ribbon h3 {
  margin: 0 0 0.55rem;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.ribbon p {
  margin: 0;
  color: var(--mute);
  font-size: 0.94rem;
  font-weight: 300;
}

.method-wrap {
  position: relative;
  background: var(--panel);
  border-block: 1px solid var(--line);
  overflow: hidden;
}
.method-wrap::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 48%;
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--teal), transparent);
  transform: skewX(-12deg);
  opacity: 0.55;
}
.method {
  width: min(var(--max), 100%);
  margin: 0 auto;
  padding: 5rem max(1.1rem, var(--safe-x));
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 3rem;
  align-items: center;
}
.method ol {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 1.4rem;
}
.method li {
  display: grid;
  grid-template-columns: 2.2rem 1fr;
  gap: 0.9rem;
  align-items: start;
}
.method .step {
  font-family: var(--serif);
  font-size: 1.35rem;
  color: var(--teal);
  line-height: 1;
  padding-top: 0.15rem;
}
.method h3 {
  margin: 0 0 0.35rem;
  font-size: 1.08rem;
  font-weight: 600;
}
.method p {
  margin: 0;
  color: var(--mute);
  font-weight: 300;
  font-size: 0.95rem;
}

.company {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  margin-top: 2.4rem;
  align-items: start;
}
.company p { margin: 0 0 1rem; color: var(--mist); font-weight: 300; }
.facts {
  margin: 0;
  padding: 1.4rem 1.5rem;
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(45, 212, 191, 0.06), transparent 55%), var(--ink-2);
}
.facts div + div {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}
.facts dt {
  margin: 0;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mute);
}
.facts dd {
  margin: 0.35rem 0 0;
  color: var(--paper);
  font-weight: 400;
}
.facts a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
}

.contact {
  text-align: left;
  padding-bottom: 4rem;
}
.contact h2 { max-width: 16ch; }
.contact .deck { margin-bottom: 1.5rem; }
.contact .deck a {
  display: inline;
  border-bottom: 1px solid rgba(45, 212, 191, 0.45);
}

.foot {
  border-top: 1px solid var(--line);
  padding: 2rem max(1.1rem, var(--safe-x)) calc(2.6rem + var(--safe-bottom));
  background: #020507;
}
.foot-inner {
  width: min(var(--max), 100%);
  margin: 0 auto;
  display: grid;
  gap: 1.1rem;
}
.foot-brand {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: var(--mist);
  font-size: 0.9rem;
  font-weight: 300;
}
.foot-brand img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 0.1rem;
}
.foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.35rem;
  font-size: 0.85rem;
}
.foot nav a {
  color: var(--mist);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 0.55rem 0 0;
}
.foot .copy {
  margin: 0;
  color: var(--mute);
  font-size: 0.8rem;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 520ms var(--ease), transform 520ms var(--ease);
}
[data-reveal].is-in {
  opacity: 1;
  transform: none;
}

.legal-page {
  min-height: 100vh;
  background: var(--ink);
  color: var(--paper);
}
.legal-page .mast { position: sticky; background: rgba(4, 8, 10, 0.95); border-bottom: 1px solid var(--line); }
.legal-wrap {
  width: min(720px, 100%);
  margin: 0 auto;
  padding: 3.5rem max(1.1rem, var(--safe-x)) 4rem;
}
.legal-wrap h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2rem, 4vw, 2.6rem);
  margin: 0 0 0.5rem;
}
.legal-wrap .meta {
  color: var(--mute);
  font-size: 0.9rem;
  margin: 0 0 2rem;
}
.legal-wrap h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.35rem;
  margin: 2rem 0 0.6rem;
}
.legal-wrap p, .legal-wrap li {
  color: var(--mist);
  font-weight: 300;
}
.legal-wrap ul { padding-left: 1.2rem; }

@media (max-width: 960px) {
  .ribbon { grid-template-columns: 1fr 1fr; gap: 0 1.2rem; }
  .ribbon article {
    border-right: 0;
    margin-right: 0;
    padding-right: 0;
    border-bottom: 1px solid var(--line);
    padding-bottom: 1.3rem;
    margin-bottom: 1.3rem;
  }
  .method { grid-template-columns: 1fr; }
  .method-wrap::before { display: none; }
  .company { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .desk-nav { display: none; }
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.2rem;
    padding: calc(5rem + var(--safe-top)) 1.4rem calc(2rem + var(--safe-bottom));
    background: rgba(4, 8, 10, 0.98);
    z-index: 55;
  }
  .site-nav[hidden] { display: none !important; }
  .site-nav a {
    font-size: 1.2rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    min-height: 52px;
    border-bottom: 1px solid var(--line);
    color: var(--paper);
    display: flex;
    align-items: center;
  }
  .mast { z-index: 60; }
}

@media (max-width: 720px) {
  .pin-inner { grid-template-columns: 1fr; }
  .pin-label {
    writing-mode: horizontal-tb;
    transform: none;
  }
  .ribbon { grid-template-columns: 1fr; }
  .hero h1 { max-width: none; }
  .cta-row { flex-direction: column; align-items: stretch; }
  .cta-row .btn { width: 100%; }
  .hero-media img { object-position: 70% 35%; filter: saturate(1.08) contrast(1.06) brightness(1.02); }
  .hero::after {
    background:
      radial-gradient(ellipse 70% 45% at 70% 30%, rgba(20, 184, 166, 0.2), transparent 70%),
      linear-gradient(180deg, rgba(4, 8, 10, 0.28) 0%, rgba(4, 8, 10, 0.5) 40%, rgba(4, 8, 10, 0.93) 100%),
      linear-gradient(90deg, rgba(4, 8, 10, 0.7) 0%, rgba(4, 8, 10, 0.25) 60%, rgba(4, 8, 10, 0.45) 100%);
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-flow { animation: none; }
  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .btn:hover { transform: none; }
}
