@font-face {
  font-family: Space Grotesk;
  src: url("/assets/space-grotesk.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: IBM Plex Mono;
  src: url("/assets/ibm-plex-mono.woff2") format("woff2");
  font-display: swap;
}
:root {
  color-scheme: dark;
  --bg: #101517;
  --panel: #151d20;
  --ink: #eff1e8;
  --muted: #a6b1ac;
  --line: #384641;
  --mint: #b8f7cb;
  --orange: #edae89;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}
*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1rem/1.5 "Space Grotesk", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
button { font: inherit; color: inherit; }
a, button { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--mint); outline-offset: 5px; }
[hidden] { display: none !important; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { line-height: 1; letter-spacing: -.055em; }
.shell { width: min(100% - 96px, 1280px); margin-inline: auto; }
.skip { position: fixed; top: 10px; left: 12px; z-index: 3; background: var(--mint); color: var(--bg); padding: 10px 16px; transform: translateY(-160%); }
.skip:focus { transform: none; }
.header { border-bottom: 1px solid var(--line); }
.header-inner { min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: .31em; text-decoration: none; font-size: 1rem; font-weight: 700; letter-spacing: .03em; white-space: nowrap; }
.brand-space { color: inherit; }
.brand-mark { position: relative; display: block; width: 23px; height: 23px; flex: 0 0 23px; border: 1.5px solid var(--mint); border-radius: 50%; margin-right: 5px; }
.brand-mark::after { content: ""; position: absolute; left: -6px; right: -6px; top: 7px; height: 7px; border: 1.4px solid var(--mint); border-radius: 50%; transform: rotate(-32deg); }
.header nav, .footer nav { display: flex; gap: clamp(18px, 3vw, 40px); }
.header nav a, .footer a { color: var(--muted); text-decoration: none; }
.header nav a:hover, .header nav a[aria-current], .footer a:hover, .footer a.brand { color: var(--ink); }
.header nav a[aria-current] { text-decoration: underline; text-decoration-color: var(--mint); text-underline-offset: 8px; }
.hero { min-height: 550px; display: grid; grid-template-columns: .88fr 1.12fr; align-items: center; gap: clamp(24px, 4vw, 68px); padding-block: 35px; }
.hero-copy { padding-block: 24px; position: relative; z-index: 1; }
.eyebrow { display: flex; align-items: center; gap: 9px; color: var(--mint); font: .74rem/1.4 var(--mono); letter-spacing: .09em; }
.eyebrow > span { width: 7px; height: 7px; background: var(--mint); border-radius: 50%; box-shadow: 0 0 12px #b8f78565; }
.hero h1 { margin: 20px 0; font-size: clamp(5.1rem, 10vw, 10.1rem); line-height: .82; letter-spacing: -.095em; }
.hero-period { color: var(--mint); }
.lede { color: var(--muted); font-size: clamp(1.05rem, 1.65vw, 1.30rem); line-height: 1.52; max-width: 435px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; margin-top: 28px; }
.button, .arrow-link { display: inline-flex; width: fit-content; align-items: center; gap: 12px; text-decoration: none; font-weight: 600; }
.button { gap: 18px; padding: 11px 16px; align-self: start; border: 1px solid transparent; }
.button-fill { background: var(--mint); color: #101b15; }
.button-fill:hover { background: #e1ffe8; }
.button-outline { border-color: var(--line); color: var(--mint); }
.button-outline:hover { border-color: var(--mint); }
.arrow-link { color: var(--mint); }
.arrow-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.observatory { position: relative; display: grid; place-items: center; isolation: isolate; width: 100%; min-width: 0; aspect-ratio: 1.34; background: radial-gradient(ellipse at center, #48322580, #1c232580 48%, transparent 73%); }
.starfield { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.starfield::before, .starfield::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle, #e3f5e990 0 1px, transparent 1.4px) 19px 3px/89px 83px,
              radial-gradient(circle, #e3f5e950 0 .7px, transparent 1.15px) 0 14px/59px 47px;
  mask-image: radial-gradient(ellipse at center, transparent 20%, black 60%, #0004 92%);
}
.starfield::after { transform: rotate(16deg); opacity: .48; }
.orbit { position: absolute; width: 94%; height: 56%; border-radius: 50%; border: 1px solid #b8f7cb3e; pointer-events: none; }
.orbit-one { transform: rotate(-22deg); }
.orbit-two { transform: rotate(27deg); width: 81%; height: 69%; border-style: dashed; opacity: .65; }
.scope { position: absolute; width: 18px; height: 18px; border: 1px solid #b8f7cb6e; }
.scope-tl { inset: 0 auto auto 0; border-right: 0; border-bottom: 0; }
.scope-tr { inset: 0 0 auto auto; border-left: 0; border-bottom: 0; }
.scope-bl { inset: auto auto 0 0; border-right: 0; border-top: 0; }
.scope-br { inset: auto 0 0 auto; border-left: 0; border-top: 0; }
.observatory-tag, .observatory figcaption { position: absolute; color: #b8c6bc; font: .69rem var(--mono); letter-spacing: .08em; }
.observatory-tag { top: 12px; left: 12px; padding: 4px 3px; border: 0; background: none; cursor: default; }
.observatory figcaption { bottom: 13px; right: 14px; }
.observatory figcaption a { color: var(--mint); text-decoration: none; padding: 3px 0 3px 4px; }
.planet-wrap { position: relative; display: grid; place-items: center; width: 76%; aspect-ratio: 1; }
.planet { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; mix-blend-mode: screen; filter: saturate(.84) drop-shadow(0 0 22px #d58f6270); }
.spot { position: absolute; left: 33%; top: 71%; transform: translate(-50%, -50%); width: 44px; height: 44px; border: 1px solid transparent; border-radius: 50%; background: transparent; cursor: crosshair; }
.spot:hover { border-color: var(--mint); box-shadow: 0 0 16px #b8f7cb75; }
.section { padding-block: 38px 64px; border-top: 1px solid var(--line); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
h2 { font-size: clamp(2.2rem, 4.2vw, 4rem); }
.section-head h2, .studio h2 { margin-top: 10px; }
.project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.project-card {
  --card-color: #c0facb;
  position: relative; overflow: hidden; isolation: isolate; min-height: 212px;
  border: 1px solid var(--line); background: var(--panel); padding: 23px 24px;
  display: flex; flex-direction: column; align-items: flex-start;
}
.project-card::before {
  content: ""; position: absolute; z-index: -1; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse at 95% 0%, color-mix(in srgb, var(--card-color) 15%, transparent), transparent 65%);
}
.project-card:hover { border-color: color-mix(in srgb, var(--card-color) 65%, var(--line)); }
.project-wave, .project-leaf { --card-color: #addefa; }
.project-coin, .project-bolt { --card-color: #ebba97; }
.project-blocks, .project-portol, .project-spark { --card-color: #c7baf7; }
.project-calc, .project-side { --card-color: #efe6a6; }
.card-meta { display: flex; gap: 12px; align-items: center; color: var(--card-color); font: .72rem/1.3 var(--mono); text-transform: uppercase; letter-spacing: .055em; }
.project-icon { width: 35px; height: 35px; border: 1px solid currentColor; display: grid; place-items: center; color: inherit; font: 1.28rem/1 var(--mono); }
.project-icon::before { content: "◇"; }
.icon-rise::before { content: "⤴"; }
.icon-wave::before { content: "∿"; }
.icon-coin::before { content: "◈"; }
.icon-blocks::before { content: "⊞"; }
.icon-leaf::before { content: "◒"; }
.icon-portol::before { content: "◎"; }
.icon-spark::before { content: "✧"; }
.icon-calc::before { content: "±"; }
.icon-bolt::before { content: "↯"; }
.icon-side::before { content: "◧"; }
.project-card h3 { font-size: clamp(1.55rem, 3.1vw, 2.5rem); margin-top: 16px; }
.project-card p { color: var(--muted); margin: 7px 0 14px; max-width: 53ch; }
.project-links { display: flex; flex-wrap: wrap; gap: 9px 22px; margin-top: auto; }
.project-links .arrow-link { color: var(--card-color); font-size: .92rem; }
.studio { border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr .85fr; gap: 32px; padding-block: 36px 58px; }
.studio p:not(.eyebrow) { margin-bottom: 16px; color: var(--muted); font-size: 1.13rem; }
.page-intro { padding-block: 62px 34px; }
.page-intro h1 { font-size: clamp(3.6rem, 9vw, 7.4rem); margin: 12px 0 14px; }
.page-intro .lede { max-width: 630px; }
.directory, .detail { padding-bottom: 64px; }
.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 16px 0; border-top: 1px solid var(--line); }
.filter-bar button { cursor: pointer; background: transparent; border: 1px solid var(--line); padding: 6px 11px; font: .78rem var(--mono); }
.filter-bar button:hover { border-color: var(--mint); }
.filter-bar button[aria-pressed="true"] { color: #101b15; background: var(--mint); border-color: var(--mint); }
.filter-bar [role="status"] { margin-inline-start: auto; font: .72rem var(--mono); color: var(--muted); }
.detail { display: grid; gap: 12px; }
.detail-panel { max-width: 90ch; padding: 22px 24px; border: 1px solid var(--line); background: var(--panel); }
.detail-panel h2 { font-size: clamp(1.45rem, 3vw, 2.15rem); margin-bottom: 12px; }
.detail-panel p { color: var(--muted); max-width: 70ch; }
.detail-panel p + a { margin-top: 15px; }
.detail-panel a + a { margin-left: 13px; }
.team-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.footer { border-top: 1px solid var(--line); background: #0c1113; }
.footer-main { display: flex; justify-content: space-between; gap: 26px; padding-block: 30px; }
.footer-main p { margin-top: 4px; color: var(--muted); }
.footer-base { border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 12px; color: var(--muted); min-height: 52px; font: .72rem var(--mono); }
.status { border: 0; background: none; cursor: pointer; color: var(--muted); padding: 8px 0 8px 6px; }
.status:hover { color: var(--mint); }
.status > span { display: inline-block; width: 6px; height: 6px; border-radius: 50%; margin-right: 3px; background: var(--mint); }
.signal-dialog { width: min(480px, 100% - 32px); padding: 27px; border: 1px solid var(--mint); color: var(--ink); background: #17231f; box-shadow: 0 12px 85px #0009; }
.signal-dialog::backdrop { background: #090f11c7; }
.signal-dialog form { position: absolute; right: 9px; top: 6px; }
.signal-dialog form button { cursor: pointer; padding: 4px 10px; border: 0; background: transparent; font-size: 1.72rem; }
.signal-dialog h2 { font-size: 2.4rem; margin: 13px 0 8px; }
.signal-dialog p[data-signal-message] { color: var(--muted); margin-bottom: 18px; }
.signal-dialog .signal-progress { color: var(--mint); font: .72rem var(--mono); }
@media (max-width: 980px) {
  .shell { width: calc(100% - 54px); }
  .hero { min-height: 485px; }
  .hero h1 { font-size: clamp(4.5rem, 11.5vw, 7.4rem); }
  .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 690px) {
  .shell { width: calc(100% - 34px); }
  .header-inner { min-height: 62px; gap: 12px; }
  .header nav { gap: 12px; font-size: .87rem; }
  .brand { font-size: .83rem; }
  .brand-mark { width: 18px; height: 18px; flex-basis: 18px; margin-right: 3px; }
  .brand-mark::after { top: 5px; }
  .hero { grid-template-columns: 1fr; gap: 16px; padding-block: 35px 26px; }
  .hero-copy { padding-block: 0; }
  .hero h1 { font-size: clamp(4.2rem, 15vw, 6.9rem); margin-block: 14px 17px; }
  .hero-actions { margin-top: 19px; }
  .observatory { width: min(100%, 460px); justify-self: center; }
  .section { padding-block: 26px 36px; }
  .project-grid, .studio, .team-grid { grid-template-columns: 1fr; }
  .studio { gap: 12px; padding-block: 27px 34px; }
  .project-card { padding: 18px; min-height: 185px; }
  .section-head { align-items: flex-start; flex-wrap: wrap; gap: 10px; margin-bottom: 17px; }
  .page-intro { padding-block: 40px 24px; }
  .directory, .detail { padding-bottom: 38px; }
  .footer-main { flex-wrap: wrap; column-gap: 20px; row-gap: 13px; padding-block: 23px; }
  .footer-main > div { width: 100%; }
  .footer nav { gap: 15px; font-size: .9rem; }
}
@media (max-width: 360px) {
  .header nav { gap: 8px; font-size: .79rem; }
}

.project-ai { --card-color: #aac6ff; }
.icon-ai::before { content: "✦"; }
