/* SeQured · SimpleSite v2
   Stark editorial monochrome. Pure black, oversized display serif,
   cyan accent, numbered manifesto blocks, heavy negative space. */

:root {
  --ink: #050505;
  --paper: #FFFFFF;
  --muted: rgba(255,255,255,0.62);
  --rule: rgba(255,255,255,0.10);
  --accent: #00C7FF;
  --max: 1120px;
  --col: 760px;
  --serif: "Newsreader", "Cambria", "Georgia", "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  color: var(--paper);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Quantum atmosphere: layered cyan radial glows over deep ink. */
body {
  background-color: var(--ink);
  background-image:
    radial-gradient(ellipse 70vw 60vh at 82% 18%, rgba(0,199,255,0.10), transparent 55%),
    radial-gradient(ellipse 80vw 70vh at 8% 92%, rgba(0,134,207,0.09), transparent 60%),
    radial-gradient(ellipse 50vw 50vh at 60% 110%, rgba(0,199,255,0.06), transparent 62%),
    radial-gradient(circle at 50% 50%, transparent 60%, rgba(0,0,0,0.45) 100%);
  background-attachment: fixed;
  overflow-x: hidden;
}

/* Drifting quantum aurora — large, soft, blurred color clouds that flow across
   the viewport on independent paths and breathe in opacity. */
body::before {
  content: '';
  position: fixed; inset: -25%;
  pointer-events: none;
  background:
    radial-gradient(ellipse 42vw 30vh at 18% 22%, rgba(0,199,255,0.36), transparent 65%),
    radial-gradient(ellipse 32vw 38vh at 82% 28%, rgba(0,134,207,0.30), transparent 65%),
    radial-gradient(ellipse 36vw 32vh at 28% 82%, rgba(0,199,255,0.26), transparent 65%),
    radial-gradient(ellipse 30vw 34vh at 78% 78%, rgba(40,90,200,0.28), transparent 65%);
  filter: blur(80px);
  animation: aurora 28s ease-in-out infinite alternate, breathe 7s ease-in-out infinite;
  z-index: 0;
}

@keyframes aurora {
  0%   { background-position:   0% 0%,    0% 0%,    0% 0%,    0% 0%; transform: rotate(0deg); }
  50%  { background-position:  18% -14%, -16% 10%, -14% -16%,  14% 8%; transform: rotate(3deg); }
  100% { background-position: -16% 14%,  10% -10%,  16% 14%, -14% -8%; transform: rotate(-3deg); }
}
@keyframes breathe {
  0%, 100% { opacity: 0.85; }
  50%      { opacity: 1.05; }
}

/* Slow caustic — a soft secondary atmospheric layer that drifts opposite the
   aurora at a different speed. Together with the aurora it gives the feeling
   that the background is a layered, living atmosphere — like staring through
   weather. No interactivity, no pointer tracking. */
body::after {
  content: '';
  position: fixed; inset: -25%;
  pointer-events: none;
  background:
    radial-gradient(ellipse 26vw 22vh at 65% 18%, rgba(0,199,255,0.22), transparent 70%),
    radial-gradient(ellipse 22vw 28vh at 22% 50%, rgba(0,134,207,0.18), transparent 70%),
    radial-gradient(ellipse 30vw 24vh at 78% 70%, rgba(0,199,255,0.14), transparent 70%);
  filter: blur(110px);
  animation: caustic 38s ease-in-out infinite alternate;
  z-index: 0;
  mix-blend-mode: screen;
}
@keyframes caustic {
  0%   { background-position: 0% 0%, 0% 0%, 0% 0%; transform: rotate(0deg) scale(1); }
  100% { background-position: -10% 14%, 12% -8%, -8% -10%; transform: rotate(-4deg) scale(1.06); }
}

/* ───── Cinematic load reveal ─────
   Hero elements come in as a cascade of soft, blur-clearing fades. */
.js .eyebrow,
.js .display,
.js .lead,
.js .cta-row,
.js .mark--big {
  opacity: 0;
  transform: translateY(14px);
  filter: blur(10px);
  transition:
    opacity 900ms cubic-bezier(0.2, 0.7, 0.2, 1),
    transform 900ms cubic-bezier(0.2, 0.7, 0.2, 1),
    filter 900ms cubic-bezier(0.2, 0.7, 0.2, 1);
}
.js.loaded main .eyebrow   { opacity: 1; transform: none; filter: none; transition-delay: 80ms; }
.js.loaded main .mark--big { opacity: 1; transform: none; filter: none; transition-delay: 240ms; }
.js.loaded main .display   { opacity: 1; transform: none; filter: none; transition-delay: 200ms; }
.js.loaded main .lead      { opacity: 1; transform: none; filter: none; transition-delay: 480ms; }
.js.loaded main .cta-row   { opacity: 1; transform: none; filter: none; transition-delay: 720ms; }

/* Q logo — slow continuous breath in the glow once the load reveal is done. */
.mark--big {
  filter: drop-shadow(0 0 30px rgba(0,199,255,0.18));
  will-change: filter, transform;
}
.js.loaded .mark--big {
  animation: q-breathe 9s ease-in-out 1.2s infinite;
}
@keyframes q-breathe {
  0%, 100% { filter: drop-shadow(0 0 30px rgba(0,199,255,0.18)); transform: translateY(0); }
  50%      { filter: drop-shadow(0 0 70px rgba(0,199,255,0.42)); transform: translateY(-6px); }
}

/* Scroll reveal — fades and slides elements in on first appearance. */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 700ms cubic-bezier(0.2, 0.7, 0.2, 1),
              transform 700ms cubic-bezier(0.2, 0.7, 0.2, 1);
  will-change: opacity, transform;
}
.reveal.in {
  opacity: 1;
  transform: none;
}
.tenet.reveal { transition-delay: 0ms; }
.tenet.reveal.in:nth-child(1) { transition-delay: 0ms; }
.tenet.reveal.in:nth-child(2) { transition-delay: 90ms; }
.tenet.reveal.in:nth-child(3) { transition-delay: 180ms; }
.founder.reveal { transition-delay: 0ms; }
.founders .founder.reveal:nth-child(2) { transition-delay: 120ms; }

/* Honor reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
  body::before, body::after { animation: none; }
  .mark--big { transition: none; animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

.frame {
  position: relative; z-index: 1;
  min-height: 100vh;
  padding: 32px 56px;
  display: flex;
  flex-direction: column;
}

/* ───── Nav ───── */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding-bottom: 24px;
}
.nav .navmark {
  height: 56px; width: auto; opacity: 0.98;
  filter: drop-shadow(0 0 18px rgba(0,199,255,0.16));
  transition: opacity 200ms ease, filter 200ms ease;
}
.nav a:hover .navmark { opacity: 1; filter: drop-shadow(0 0 28px rgba(0,199,255,0.30)); }
.nav-links { display: flex; gap: 30px; align-items: center; }
.nav-link {
  font-size: 12px;
  font-family: var(--mono);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 200ms ease;
  position: relative;
}
.nav-link:hover { color: var(--paper); }
.nav-link.active { color: var(--paper); }
.nav-link.active::after {
  content: ''; position: absolute; bottom: -10px; left: 0; right: 0;
  height: 1px; background: var(--accent);
}

/* ───── Main ───── */
main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 72px 0 56px;
}
.col { width: 100%; max-width: var(--col); margin: 0 auto; }
.col--wide { max-width: var(--max); margin: 0 auto; }

/* ───── Eyebrow ───── */
.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 40px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.eyebrow::before {
  content: '';
  width: 28px; height: 1px;
  background: var(--accent);
}

/* ───── Display headline ───── */
.display {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(48px, 8.2vw, 112px);
  line-height: 1.0;
  letter-spacing: -0.022em;
  color: var(--paper);
  margin: 0;
  text-wrap: balance;
}
.display .accent { color: var(--accent); font-style: italic; }

/* ───── Lead ───── */
.lead {
  margin-top: 44px;
  font-size: clamp(18px, 1.55vw, 22px);
  line-height: 1.55;
  color: rgba(255,255,255,0.84);
  max-width: 580px;
  text-wrap: pretty;
}

/* ───── Hero stage with corner Q ───── */
.hero-stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 64px;
  align-items: center;
}
.hero-stage .mark--big {
  width: clamp(260px, 36vw, 440px);
  opacity: 0.92;
  filter: drop-shadow(0 0 100px rgba(0,199,255,0.28));
  justify-self: end;
}

/* ───── Numbered manifesto blocks ───── */
.manifesto {
  margin-top: 96px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.tenet {
  display: grid;
  grid-template-columns: 96px 180px 1fr;
  gap: 32px;
  padding: 36px 0;
  border-top: 1px solid var(--rule);
  align-items: baseline;
}
.tenet:last-child { border-bottom: 1px solid var(--rule); }
.tenet-num {
  font-family: var(--mono);
  font-size: 24px;
  font-weight: 400;
  color: var(--accent);
  letter-spacing: 0.04em;
}
.tenet-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--muted);
}
.tenet-body {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(20px, 2.1vw, 28px);
  line-height: 1.35;
  color: var(--paper);
  letter-spacing: -0.008em;
  margin: 0;
  text-wrap: pretty;
}

/* ───── CTAs ───── */
.cta-row { display: flex; gap: 32px; flex-wrap: wrap; margin-top: 64px; }
.cta {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--paper);
  padding: 16px 0;
  border-bottom: 1px solid var(--paper);
  transition: color 220ms ease, border-color 220ms ease, gap 220ms ease;
}
.cta .arr { transition: transform 220ms ease; }
.cta:hover { color: var(--accent); border-color: var(--accent); gap: 16px; }
.cta:hover .arr { transform: translateX(3px); }
.cta--soft { border-color: var(--rule); color: var(--muted); }
.cta--soft:hover { color: var(--accent); border-color: var(--accent); }

/* ───── Founder cards (typographic, no portrait) ───── */
.founders {
  margin-top: 80px;
  display: flex;
  flex-direction: column;
}
.founder {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 56px;
  padding: 56px 0;
  border-top: 1px solid var(--rule);
  align-items: start;
}
.founders .founder:last-child { border-bottom: 1px solid var(--rule); }
.founder-tag {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.founder-tag::before {
  content: '';
  width: 20px; height: 1px;
  background: var(--accent);
}
.founder-name {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(36px, 4.6vw, 56px);
  line-height: 1.0;
  letter-spacing: -0.018em;
  margin: 0 0 28px;
}
.founder-bio {
  font-size: clamp(16px, 1.25vw, 18px);
  line-height: 1.65;
  color: rgba(255,255,255,0.82);
  margin: 0;
  max-width: 560px;
  text-wrap: pretty;
}

/* ───── Contact form (minimal, single column, editorial) ───── */
.contact {
  margin-top: 96px;
  padding-top: 56px;
  border-top: 1px solid var(--rule);
}
.contact .eyebrow { margin-bottom: 24px; }
.contact-head {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.014em;
  margin: 0 0 8px;
}
.contact-sub {
  margin: 0 0 36px;
  color: rgba(255,255,255,0.72);
  font-size: 16px;
  line-height: 1.6;
  max-width: 540px;
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 560px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.field label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
}
.field input,
.field textarea {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--rule);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.5;
  padding: 8px 0 12px;
  resize: vertical;
  transition: border-color 200ms ease;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-bottom-color: var(--accent);
}
.field textarea { min-height: 120px; }
.field input::placeholder,
.field textarea::placeholder {
  color: rgba(255,255,255,0.32);
}
.contact-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 8px;
  flex-wrap: wrap;
}
.contact-submit {
  appearance: none;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--paper);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 16px 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  transition: color 220ms ease, border-color 220ms ease, gap 220ms ease;
}
.contact-submit:hover { color: var(--accent); border-color: var(--accent); gap: 16px; }
.contact-status {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  min-height: 1em;
}
.contact-status.ok { color: var(--accent); }
.contact-status.err { color: #ff7676; }
.honeypot {
  position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0;
}

/* ───── Footer ───── */
.foot {
  border-top: 1px solid var(--rule);
  padding-top: 28px;
  margin-top: 96px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: rgba(255,255,255,0.45);
  text-transform: uppercase;
}
.foot a:hover { color: var(--accent); }

/* ───── Tablet & phone ───── */
@media (max-width: 760px) {
  /* Lighter blur on mobile GPUs — keeps the atmosphere without burning frames. */
  body::before { filter: blur(48px); animation-duration: 32s; }
  body::after  { filter: blur(72px); animation-duration: 42s; }

  /* Honor iOS notch / Android gesture bars. */
  .frame {
    padding: 20px max(20px, env(safe-area-inset-right)) max(20px, env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left));
  }

  /* Nav: tighter, smaller mark, smaller nav links. */
  .nav { padding-bottom: 18px; gap: 16px; }
  .nav .navmark { height: 38px; }
  .nav-links { gap: 16px; }
  .nav-link { font-size: 11px; letter-spacing: 0.16em; }
  .nav-link.active::after { bottom: -8px; }

  /* Main column: tighter top padding so hero shows immediately. */
  main { padding: 28px 0 28px; }

  /* Hero — text up top, Q centered below. */
  .hero-stage {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 36px;
  }
  .hero-stage > div { width: 100%; }
  .hero-stage .mark--big {
    align-self: center;
    width: clamp(160px, 50vw, 240px);
  }

  /* Headline: smaller floor and tighter line-break behavior. */
  .display { font-size: clamp(38px, 9.5vw, 72px); line-height: 1.04; }

  /* Eyebrow + lead. */
  .eyebrow { margin-bottom: 22px; gap: 10px; }
  .eyebrow::before { width: 20px; }
  .lead { margin-top: 22px; font-size: 16.5px; }

  /* Manifesto stack: number + label inline on top, body below. */
  .manifesto { margin-top: 56px; }
  .tenet {
    display: block;
    padding: 28px 0;
  }
  .tenet-num {
    display: inline-block;
    margin-right: 14px;
    font-size: 20px;
    vertical-align: baseline;
  }
  .tenet-label {
    display: inline-block;
    vertical-align: baseline;
  }
  .tenet-body {
    display: block;
    margin-top: 14px;
    font-size: clamp(18px, 5.4vw, 24px);
    line-height: 1.4;
  }

  /* Founder cards — clean single column. */
  .founders { margin-top: 48px; }
  .founder { grid-template-columns: 1fr; gap: 14px; padding: 36px 0; }
  .founder-name { font-size: clamp(30px, 8vw, 44px); margin-bottom: 16px; }
  .founder-bio { font-size: 16px; }

  /* CTAs: tighter, full-tap-target. */
  .cta-row { gap: 18px; margin-top: 36px; flex-direction: column; align-items: flex-start; }
  .cta { font-size: 11px; letter-spacing: 0.16em; padding: 14px 0; }

  /* Contact form — bigger touch targets, no iOS auto-zoom. */
  .contact { margin-top: 64px; padding-top: 40px; }
  .contact-head { font-size: clamp(26px, 7vw, 36px); }
  .contact-sub { margin-bottom: 28px; font-size: 15.5px; }
  .contact-form { gap: 22px; }
  .field input,
  .field textarea {
    font-size: 16px; /* prevents iOS auto-zoom on focus */
    padding: 10px 0 14px;
  }
  .field textarea { min-height: 110px; }
  .contact-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }
  .contact-submit {
    width: 100%;
    justify-content: center;
    padding: 16px 0;
    border: 1px solid var(--paper);
    border-radius: 2px;
  }
  .contact-submit:hover { border-color: var(--accent); }
  .contact-status { text-align: left; }

  /* Footer: stack vertically on phones. */
  .foot {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-top: 56px;
    font-size: 10px;
    letter-spacing: 0.14em;
  }
}

/* ───── Very narrow phones ───── */
@media (max-width: 380px) {
  .frame { padding: 16px max(16px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left)); }
  .nav .navmark { height: 32px; }
  .nav-links { gap: 12px; }
  .nav-link { font-size: 10px; letter-spacing: 0.14em; }
  .display { font-size: clamp(34px, 10vw, 60px); }
  .hero-stage .mark--big { width: clamp(140px, 55vw, 200px); align-self: center; }
  .tenet-body { font-size: 17px; }
  .contact-head { font-size: 26px; }
}
