/* Pneumathema — cyan + tropic grey. Fonts: Newsreader (headings), Hanken Grotesk (text). Both SIL OFL. */

@font-face {
  font-family: "Newsreader";
  src: url("fonts/newsreader.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: "Hanken Grotesk";
  src: url("fonts/hanken-grotesk.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  /* tropic grey */
  --page: #F4F7F6;
  --band: #E4EAE8;
  --rule: #C9D3D0;
  --muted: #5A6966;
  --ink: #1E2A28;
  --deep: #121A19;
  --deep-2: #1B2524;
  --on-deep: #DDE6E4;
  --on-deep-muted: #93A3A0;
  /* cyan */
  --cyan: #006F7E;
  --cyan-bright: #00A9BD;
  --cyan-on-deep: #54D3E3;

  --serif: "Newsreader", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --measure: 36rem;
  --wide: 70rem;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --page: #121A19;
    --band: #1A2322;
    --rule: #2C3A38;
    --muted: #93A3A0;
    --ink: #DDE6E4;
    --deep: #0B1110;
    --deep-2: #151E1D;
    --cyan: #54D3E3;
    --cyan-bright: #22C3D6;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font: 400 1.0625rem/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img, video, iframe { max-width: 100%; display: block; }
a { color: var(--cyan); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--cyan-bright); outline-offset: 3px; border-radius: 2px; }
p { margin: 0 0 1em; max-width: var(--measure); }

.wrap { max-width: var(--wide); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

/* ---------- header / footer ---------- */

.site-header { border-bottom: 1px solid var(--rule); }
.site-header .wrap {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between;
  gap: 0.75rem 2rem; padding-top: 1.15rem; padding-bottom: 1.15rem;
}
.wordmark {
  font: 450 1.4rem/1 var(--serif);
  font-variation-settings: "opsz" 36;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
}
.site-nav { display: flex; gap: 1.75rem; font-size: 0.95rem; }
.site-nav a { color: var(--muted); text-decoration: none; padding-bottom: 0.2rem; }
.site-nav a:hover { color: var(--ink); }
.site-nav a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--cyan-bright); }

.site-footer { border-top: 1px solid var(--rule); margin-top: clamp(4rem, 10vw, 7rem); color: var(--muted); font-size: 0.925rem; }
.site-footer .wrap {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem 2rem;
  padding-top: 1.75rem; padding-bottom: 2.25rem;
}
.site-footer nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.site-footer a { color: var(--muted); }

/* ---------- type ---------- */

h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.08; letter-spacing: -0.015em; margin: 0; }
.display {
  font-size: clamp(3rem, 9vw, 6.25rem);
  font-weight: 330;
  font-variation-settings: "opsz" 72;
  letter-spacing: -0.03em;
  line-height: 0.98;
}
h2 { font-size: clamp(1.75rem, 3.4vw, 2.4rem); font-variation-settings: "opsz" 48; }
h3 { font: 600 1.05rem/1.35 var(--sans); letter-spacing: 0; }
.lead {
  font: 400 clamp(1.25rem, 2.2vw, 1.6rem)/1.4 var(--serif);
  font-variation-settings: "opsz" 24;
  color: var(--muted);
  max-width: 30rem;
  margin-top: 1.25rem;
}

/* A status marker: filled dot = available now, ring = not yet. */
.status { display: inline-flex; align-items: center; gap: 0.55rem; font-size: 0.9rem; color: var(--muted); margin-bottom: 1.25rem; }
.status::before {
  content: ""; width: 0.55rem; height: 0.55rem; border-radius: 50%;
  background: var(--cyan-bright); flex: none;
}
.status.upcoming::before { background: transparent; box-shadow: inset 0 0 0 1.5px var(--cyan-bright); }

.button {
  display: inline-block; font: 600 0.975rem/1 var(--sans);
  padding: 0.95rem 1.4rem; border-radius: 999px;
  background: var(--cyan); color: var(--page); text-decoration: none;
}
.button:hover { background: var(--ink); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: 2rem; }

/* ---------- home ---------- */

.hero { padding-top: clamp(4rem, 12vw, 9rem); }
.projects {
  display: grid; grid-template-columns: 1fr;
  border-top: 1px solid var(--rule);
  margin-top: clamp(3.5rem, 9vw, 6.5rem);
}
.project { padding: 2.25rem 0 2.5rem; border-bottom: 1px solid var(--rule); }
.project h2 a { color: inherit; text-decoration: none; }
.project h2 a:hover { color: var(--cyan); }
.project p { margin-top: 0.9rem; color: var(--muted); max-width: 26rem; }
@media (min-width: 50rem) {
  .projects { grid-template-columns: 1fr 1fr; }
  .project { padding: 3rem 3rem 3.25rem 0; }
  .project + .project { padding-left: 3rem; border-left: 1px solid var(--rule); }
}

/* ---------- page intro ---------- */

.intro { padding-top: clamp(3.5rem, 10vw, 7rem); padding-bottom: clamp(2.5rem, 6vw, 4rem); }

/* ---------- Muse Studio: the screen ---------- */

.screen { background: var(--deep); color: var(--on-deep); padding: clamp(1.25rem, 5vw, 4rem) 0; }
.player {
  margin: 0; position: relative; aspect-ratio: 16 / 9; width: 100%;
  background: #000; border-radius: 6px; overflow: hidden;
}
.player video, .player iframe { width: 100%; height: 100%; border: 0; object-fit: contain; }
.player-empty {
  position: absolute; inset: 0; display: grid; place-items: center; text-align: center;
  background: var(--deep-2); color: var(--on-deep-muted); font-size: 0.95rem;
  box-shadow: inset 0 0 0 1px rgba(84, 211, 227, 0.18);
}
.player-empty strong { display: block; font: 400 1.6rem/1.2 var(--serif); color: var(--on-deep); margin-bottom: 0.35rem; }
.screen .caption { margin: 1rem 0 0; color: var(--on-deep-muted); font-size: 0.9rem; max-width: none; }
.body { padding-top: clamp(2.5rem, 6vw, 4rem); }
.body p:first-child { font-size: 1.15rem; }

/* ---------- True Net ---------- */

.tn-intro {
  display: grid; grid-template-columns: 1fr; gap: clamp(3rem, 7vw, 5rem); align-items: center;
  padding-top: clamp(3.5rem, 10vw, 7rem);
}
@media (min-width: 56rem) { .tn-intro { grid-template-columns: 1.1fr 0.9fr; } }
.tn-intro .body-text { margin-top: 1.75rem; }

/* A True Net screen drawn entirely with text: nothing here is an image. */
.specimen { margin: 0; justify-self: center; width: min(100%, 22rem); }
.device {
  border: 1px solid var(--rule); border-radius: 26px; overflow: hidden;
  background: var(--page);
  box-shadow: 0 1px 0 var(--rule), 0 24px 48px -28px rgba(18, 26, 25, 0.45);
}
.device-bar { display: flex; align-items: center; gap: 0.35rem; padding: 0.7rem 0.6rem 0.6rem; background: var(--band); color: var(--ink); font-size: 1.25rem; line-height: 1; }
.device-bar .glyph { width: 1.6rem; text-align: center; }
.device-bar .glyph.off { opacity: 0.3; }
.device-pill {
  flex: 1; font: 400 0.8rem/1 var(--sans); color: var(--ink);
  background: var(--page); border: 1px solid var(--rule); border-radius: 999px;
  padding: 0.55rem 0.85rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.device-line { height: 2px; background: linear-gradient(90deg, var(--cyan-bright) 38%, var(--rule) 38%); }
.device-page { padding: 1.25rem 1.25rem 1.5rem; font: 400 0.95rem/1.55 var(--serif); font-variation-settings: "opsz" 14; }
.device-page .h { font: 600 1.2rem/1.25 var(--sans); margin: 0 0 0.6rem; }
.device-page p { margin: 0 0 0.8rem; }
.device-page .alt { color: var(--muted); }
.device-page .link { color: var(--cyan); text-decoration: underline; text-underline-offset: 0.2em; }
.device-page ul { margin: 0 0 0.8rem; padding-left: 1.1rem; }
.device-status { padding: 0.45rem 1rem 0.6rem; background: var(--band); color: var(--muted); font: 400 0.72rem/1 var(--sans); }
.specimen figcaption { margin-top: 1rem; font-size: 0.875rem; color: var(--muted); text-align: center; }

.features {
  display: grid; grid-template-columns: 1fr; gap: 0;
  border-top: 1px solid var(--rule); margin-top: 1.75rem;
}
.feature { padding: 1.4rem 0; border-bottom: 1px solid var(--rule); }
.feature p { margin: 0.35rem 0 0; color: var(--muted); }
@media (min-width: 44rem) {
  .features { grid-template-columns: 1fr 1fr; column-gap: 3rem; }
}
.section { padding-top: clamp(4rem, 9vw, 6rem); }
.note {
  margin-top: 2rem; padding: 1.25rem 1.4rem; background: var(--band); border-radius: 6px;
  max-width: var(--measure);
}
.note p { margin: 0; }
.note p + p { margin-top: 0.6rem; }
