:root {
  color-scheme: dark;
  --ink: #eef3f5;
  --muted: #8b9aa2;
  --dim: #53636b;
  --accent: #72e7c5;
  --accent-soft: rgba(114, 231, 197, .16);
  --ground: #080b0f;
  --line: rgba(164, 200, 211, .12);
}

* { box-sizing: border-box; }

html, body { min-height: 100%; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 72% 38%, rgba(26, 77, 70, .18), transparent 33rem),
    radial-gradient(circle at 12% 80%, rgba(35, 56, 70, .14), transparent 28rem),
    linear-gradient(115deg, rgba(255,255,255,.018), transparent 42%);
}

#field, .grid { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; }
#field { opacity: .58; }
.grid {
  opacity: .45;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 75% 70% at 58% 45%, black, transparent 84%);
}

.skip-link {
  position: fixed; left: 1rem; top: -5rem; z-index: 10;
  padding: .7rem 1rem; background: var(--ink); color: var(--ground);
}
.skip-link:focus { top: 1rem; }

.shell {
  position: relative;
  z-index: 1;
  width: min(1380px, calc(100% - 7rem));
  min-height: 100svh;
  margin: 0 auto;
  padding: 3.2rem 0 2.4rem;
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.masthead, footer, footer p { display: flex; align-items: center; }
.masthead { gap: 1.1rem; }
.mark { width: 25px; height: 25px; position: relative; border: 1px solid rgba(114,231,197,.5); transform: rotate(45deg); }
.mark span, .mark i { position: absolute; display: block; background: var(--accent); }
.mark span { width: 5px; height: 5px; top: 9px; left: 9px; box-shadow: 0 0 14px var(--accent); }
.mark i { width: 1px; height: 35px; left: 11px; top: -6px; opacity: .45; }
.eyebrow, footer, .disciplines, .status { text-transform: uppercase; letter-spacing: .18em; }
.eyebrow { margin: 0; color: var(--muted); font: 500 .65rem/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; }
.eyebrow span { color: var(--accent); margin: 0 .45rem; }

.hero { align-self: center; padding: 5rem 0 4rem; max-width: 1160px; }

/* Left clearance: replaces the old text-indent:-.055em that clipped the "A".     */
.hero { padding-left: .22em; }

/* ── Headline logo ───────────────────────────────────────────────────────────── */

h1 {
  /* Visually hidden — screen readers and SEO still see it */
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.h1-logo {
  display: block;
  /* Match the old headline size: scale by rendered width up to ~1060px max */
  width: min(100%, 1060px);
  height: auto;
  margin: 0 0 .85rem;
  /* Preserve the drop-shadow aesthetic from the text version */
  filter: drop-shadow(0 18px 60px rgba(0,0,0,.45));
}

.motto { margin: 0; color: var(--accent); font-size: clamp(1rem, 2vw, 1.42rem); font-weight: 430; letter-spacing: .055em; }
.rule { width: min(44rem, 74vw); height: 1px; margin: 2.4rem 0 1.65rem; background: linear-gradient(90deg, rgba(114,231,197,.62), rgba(114,231,197,.04)); }
.rule span { display: block; width: 4.5rem; height: 1px; background: var(--accent); box-shadow: 0 0 12px var(--accent-soft); }
.disciplines { margin: 0 0 2.2rem; color: #b5c0c4; font: 500 clamp(.66rem, 1.2vw, .82rem)/1.9 ui-monospace, SFMono-Regular, Menlo, monospace; }
.disciplines b { color: var(--accent); font-weight: 400; margin: 0 .55rem; }
.intro { max-width: 660px; margin: 0; color: var(--muted); font-size: clamp(.95rem, 1.4vw, 1.08rem); line-height: 1.8; font-weight: 350; }

footer { justify-content: space-between; padding-top: 1.4rem; border-top: 1px solid var(--line); color: var(--dim); font: 500 .58rem/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; }
footer p { gap: 1.7rem; margin: 0; flex-wrap: wrap; }
footer a { color: var(--muted); text-decoration: none; transition: color .2s ease; }
footer a:hover, footer a:focus-visible { color: var(--accent); }
.status { display: flex; align-items: center; gap: .65rem; white-space: nowrap; }
.status i { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); }

@media (max-width: 720px) {
  .shell { width: min(100% - 2.5rem, 42rem); padding: 1.8rem 0 1.5rem; }
  .grid { background-size: 48px 48px; opacity: .32; }
  .hero { padding: 5rem 0 4rem; }
  h1 { font-size: clamp(2.8rem, 14.8vw, 5rem); }
  .motto { font-size: .95rem; }
  .disciplines { max-width: 34rem; }
  .disciplines b { margin: 0 .25rem; }
  footer { align-items: flex-end; gap: 1rem; }
  footer p { gap: .45rem 1rem; max-width: 17rem; }
}

@media (max-width: 420px) {
  .shell { width: calc(100% - 2rem); }
  h1 { font-size: 14vw; }
  .eyebrow { letter-spacing: .13em; }
  .status { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
  #field { opacity: .34; }
}
