@font-face { font-family: "IBM Plex Mono"; src: url("fonts/IBMPlexMono-300.woff2") format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("fonts/IBMPlexMono-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("fonts/IBMPlexMono-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --void: #050507;
  --ink: #0d0e11;
  --ink-2: #16181d;
  --fog: #e3e4e7;
  --fog-2: #d6d8dc;
  --line-light: #b9bcc2;
  --line-dark: #2a2d34;
  --text-light: #0d0e11;
  --text-dark: #d9dbe2;
  --muted-light: #5d616a;
  --muted-dark: #7b808c;
  --signal: #d9a93f;
  --signal-hot: #ffe7a3;
  /* Type system: two families, two sizes.
     Statements (hero line, theses): Inter Tight light, --text-l.
     Interface (wordmark, contact, description, labels, numerals, notes, footer): IBM Plex Mono, --text-s.
     Interface text has two tones only: --ui (bright, things you read or act on) and --ui-mute (labels). */
  --text-l: clamp(26px, 3vw, 48px);
  --text-s: 13px;
  --track-s: .01em;
  --ui: #d6d3ca;
  --ui-mute: #7b7a74;
  --statement: #ece9df;
  --gutter: clamp(24px, 5.5vw, 88px);
  --frame: clamp(28px, 4.5vh, 48px);   /* distance from the viewport edge to the corner text, top and bottom */
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --pixel: "IBM Plex Mono", ui-monospace, monospace;   /* one mono everywhere */
  --dot: var(--mono);
  --head: var(--mono);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--void);
  color: var(--text-dark);
  font: 400 var(--text-s)/1.65 var(--mono); font-stretch: 87.5%; letter-spacing: var(--track-s);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
canvas { display: block; }
::selection { background: var(--signal); color: var(--void); }

/* nav */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--frame) var(--gutter) 18px;
  color: var(--text-dark);
  transition: color .4s, background .4s, border-color .4s;
  border-bottom: 1px solid transparent;
}
.nav.on-light { color: var(--text-light); background: rgba(227,228,231,.82); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-color: var(--line-light); }
.nav.on-dark-solid { background: rgba(5,5,7,.72); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-color: var(--line-dark); }
.wordmark, .contact { font: 500 var(--text-s)/1 var(--mono); font-stretch: 87.5%; letter-spacing: var(--track-s); color: var(--ui); }
/* the contact button mirrors the wordmark; drawn like Plastic Labs' header buttons: a compact dashed outline */
.contact { display: inline-block; transition: color .2s; }
.contact::before { content: "[ "; color: var(--ui-mute); transition: color .2s; }
.contact::after { content: " ]"; color: var(--ui-mute); transition: color .2s; }
.contact:hover, .contact:hover::before, .contact:hover::after { color: var(--signal); }

/* hero */
.hero { position: relative; height: 100svh; min-height: 620px; background: var(--void); overflow: hidden; }
#led { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-scan {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(120% 80% at 50% 45%, transparent 55%, rgba(5,5,7,.85) 100%);
}
.hero-copy {
  position: absolute; left: var(--gutter); right: var(--gutter); bottom: var(--frame);
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: end; gap: 32px;
}
.hero-copy h1 {
  position: relative; font: 300 var(--text-l)/1.08 var(--head); letter-spacing: -.035em; color: var(--statement);
}
.hero-copy p {
  justify-self: end;
  font: 400 var(--text-s)/1.65 var(--mono); font-stretch: 87.5%; letter-spacing: var(--track-s); color: var(--ui); text-align: right;
}

.hero-copy .ln { display: block; white-space: nowrap; }

/* light grid sections */
.grid-section { background: var(--fog); color: var(--text-light); position: relative; }
.cell { position: relative; }
.plus { position: absolute; width: 9px; height: 9px; pointer-events: none; }
.plus::before, .plus::after { content: ""; position: absolute; background: var(--text-light); }
.plus::before { left: 4px; top: 0; width: 1px; height: 9px; }
.plus::after { top: 4px; left: 0; height: 1px; width: 9px; }
.plus.tl { left: -5px; top: -5px; } .plus.tr { right: -5px; top: -5px; }
.plus.bl { left: -5px; bottom: -5px; } .plus.br { right: -5px; bottom: -5px; }

.lab { padding-top: 62px; }
.grid-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 30%); border-bottom: 1px solid var(--line-light); }
.cell-headline { padding: clamp(28px, 4vw, 56px) var(--gutter) clamp(36px, 5vw, 72px); border-right: 1px solid var(--line-light); }
.cell-headline .plus.tl { left: var(--gutter); top: 14px; }
.cell-headline .plus.tr { right: 14px; top: 14px; }
.spaced {
  font: 200 clamp(36px, 4.6vw, 76px)/1.02 var(--head); letter-spacing: -.045em;
  display: flex; flex-direction: column;
}
.spaced .indent { padding-left: 1.2em; }
.spaced.small { font-size: clamp(22px, 2.6vw, 40px); letter-spacing: .22em; }
.cell-ascii { min-height: 360px; background: #08090b; overflow: hidden; }
#ascii { position: absolute; inset: 0; width: 100%; height: 100%; }

.grid-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr); padding: clamp(48px, 7vw, 110px) var(--gutter); gap: 24px; }
.label { font: 400 var(--text-s)/1 var(--mono); letter-spacing: var(--track-s); color: var(--ui-mute); }
.two-col { max-width: 760px; }
.two-col p { font: 300 clamp(14px, 1.15vw, 17px)/1.6 var(--mono); font-stretch: 87.5%; color: var(--text-light); }

/* dark sections */
.dark { background: var(--ink); color: var(--text-dark); }
.section-label { display: flex; justify-content: space-between; align-items: baseline; padding: 28px var(--gutter); border-bottom: 1px solid var(--line-dark); }
.section-label.light { border-color: var(--line-light); }

.research-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-bottom: 1px solid var(--line-dark); }
.direction { position: relative; padding: 22px var(--gutter) 30px; border-right: 1px solid var(--line-dark); min-height: 360px; display: flex; flex-direction: column; }
.direction:last-child { border-right: 0; }
.direction .num { font: 400 11px/1 var(--pixel); letter-spacing: .14em; color: var(--muted-dark); }
.glyph { width: 100%; height: 150px; margin: 26px 0 30px; }
.direction h3 { font: 400 22px/1.1 var(--pixel); letter-spacing: .14em; color: #f0f1f6; margin-top: auto; }
.direction p { margin-top: 12px; color: var(--muted-dark); max-width: 260px; }
.direction:hover h3 { color: var(--signal); }

.specimen-row { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); padding: clamp(48px, 7vw, 110px) var(--gutter); align-items: center; }
.window { background: var(--fog); color: var(--text-light); border: 1px solid #9ea2aa; box-shadow: 12px 12px 0 rgba(0,0,0,.35); max-width: 640px; }
.window-bar { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-bottom: 1px solid #9ea2aa; font: 400 10px/1 var(--pixel); letter-spacing: .08em; }
.window-title { white-space: nowrap; }
.window .x { font: 400 14px/1 var(--mono); padding: 0 2px; }
.window-body { position: relative; aspect-ratio: 3 / 2; background: var(--fog); }
#dither { position: absolute; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; }
.specimen-copy .label { color: var(--muted-dark); margin-bottom: 26px; }
.serif-quote { font: 200 clamp(26px, 2.5vw, 40px)/1.1 var(--head); letter-spacing: -.035em; color: #ece9df; max-width: 620px; }

/* thesis */
.theses { list-style: none; }
.thesis { background: var(--ink); color: var(--text-dark); border-top: 1px solid var(--line-dark); }
.theses li { display: grid; grid-template-columns: 120px minmax(0, 1fr); padding: clamp(28px, 4vw, 56px) var(--gutter); border-bottom: 1px solid var(--line-dark); align-items: baseline; position: relative; }
.theses li::after { content: ""; position: absolute; left: calc(var(--gutter) + 116px); bottom: -5px; width: 9px; height: 9px;
  background: linear-gradient(var(--muted-dark), var(--muted-dark)) center/1px 9px no-repeat, linear-gradient(var(--muted-dark), var(--muted-dark)) center/9px 1px no-repeat; }
.theses .num { font: 400 var(--text-s)/1 var(--mono); letter-spacing: var(--track-s); color: var(--ui-mute); }
.theses p { font: 300 var(--text-l)/1.08 var(--head); letter-spacing: -.035em; color: var(--statement); }
.theses li:last-child { border-bottom: 0; }
.theses li:last-child::after { display: none; }

/* backers: the supporters, drawn as LEDs on the hero's dark (main.js) */
.backers { background: var(--void); color: var(--text-dark); }
.wall-wrap { position: relative; }
#wall-led { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.wall { --cols: 5; list-style: none; display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); }
.wall li { position: relative; height: clamp(112px, 9vw, 140px); border-right: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); }
.wall li::after { content: ""; position: absolute; right: -5px; bottom: -5px; width: 9px; height: 9px; z-index: 1;
  background: linear-gradient(var(--muted-dark), var(--muted-dark)) center/1px 9px no-repeat, linear-gradient(var(--muted-dark), var(--muted-dark)) center/9px 1px no-repeat; }
.wall img { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); }   /* the canvas draws it; the alt text stays */
.logo-note { position: absolute; left: 0; right: 0; bottom: 14px; text-align: center; font: 400 var(--text-s)/1 var(--mono); letter-spacing: var(--track-s); color: var(--ui-mute); }
/* the outer edge of the grid gets no rule and no mark */
@media (min-width: 1001px) {
  .wall li:nth-child(5n) { border-right: 0; }
  .wall li:nth-last-child(-n+5) { border-bottom: 0; }
  .wall li:nth-child(5n)::after, .wall li:nth-last-child(-n+5)::after { display: none; }
}
@media (max-width: 1000px) {
  .wall { --cols: 3; }
  .wall li:nth-child(3n) { border-right: 0; }
  .wall li:nth-last-child(-n+3) { border-bottom: 0; }
  .wall li:nth-child(3n)::after, .wall li:nth-last-child(-n+3)::after { display: none; }
}
@media (max-width: 720px) {
  .wall { --cols: 2; }
  .wall li { height: 66px; }
  .wall li:nth-child(3n) { border-right: 1px solid var(--line-dark); }
  .wall li:nth-child(2n) { border-right: 0; }
  .wall li:nth-last-child(-n+3) { border-bottom: 1px solid var(--line-dark); }
  .wall li:last-child { grid-column: 1 / -1; border: 0; }   /* fifteen marks: the last one takes the whole row */
  .wall li:nth-child(3n)::after { display: block; }
  .wall li:nth-child(2n)::after, .wall li:nth-last-child(-n+3)::after { display: none; }
  .logo-note { bottom: 10px; letter-spacing: 0; }
}

/* footer: one step lighter than the wall above it */
.footer { background: var(--ink-2); border-top: 1px solid var(--line-dark); }
#band { width: 100%; height: 118px; border-bottom: 1px solid var(--line-dark); }
.footer-base { display: flex; justify-content: space-between; padding: 30px var(--gutter) var(--frame); font: 400 var(--text-s)/1 var(--mono); letter-spacing: var(--track-s); color: var(--ui-mute); }

/* reveal */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .9s ease, transform .9s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (max-width: 1000px) {
  .research-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .direction:nth-child(2) { border-right: 0; }
  .direction:nth-child(-n+2) { border-bottom: 1px solid var(--line-dark); }
}
@media (max-width: 720px) {
  .hero-copy { grid-template-columns: 1fr; gap: 16px; }
  .hero-copy p { justify-self: start; text-align: left; }
  .hero-copy .ln { display: inline; white-space: normal; }
  .grid-head { grid-template-columns: 1fr; }
  .cell-headline { border-right: 0; border-bottom: 1px solid var(--line-light); }
  .cell-ascii { min-height: 260px; }
  .spaced { font-size: clamp(34px, 10vw, 46px); }
  .spaced .indent { padding-left: .9em; }
  .grid-body { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; }
  .research-grid { grid-template-columns: 1fr; }
  .direction { border-right: 0; border-bottom: 1px solid var(--line-dark); min-height: 0; }
  .glyph { height: 120px; }
  .specimen-row { grid-template-columns: 1fr; }
  .window { box-shadow: 8px 8px 0 rgba(0,0,0,.35); }
  .theses li { grid-template-columns: 44px minmax(0, 1fr); }
  .theses li::after { left: calc(var(--gutter) + 40px); }
  .footer-base { flex-direction: column; gap: 10px; }
}

/* ======================================================================================
   Frame (21 Oct 2026): the page as one drawn grid, after what Plastic Labs does well.
   Columns run through every section: rail | main | side | rail. Hairlines between cells,
   + marks where lines cross, one type family (IBM Plex Mono) in three sizes.
   ====================================================================================== */
.framed {
  --rail: clamp(48px, 6.4vw, 92px);
  --side: clamp(320px, 46vw, 820px);
  --frame-cols: var(--rail) minmax(0, 1fr) var(--side) var(--rail);
  --line: #24262c;
  --bar-h: clamp(68px, 8.5vh, 88px);
  --text-xl: clamp(28px, 3.3vw, 58px);     /* the one statement */
  --text-m: clamp(19px, 1.9vw, 30px);      /* theses */
  /* --text-s (13px) stays for everything else */
}
.framed .cell { position: relative; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); min-width: 0; }
.framed .cell.x::before { content: ""; position: absolute; left: -5px; top: -5px; width: 9px; height: 9px; z-index: 2; pointer-events: none;
  background: linear-gradient(var(--ui-mute), var(--ui-mute)) center/1px 9px no-repeat, linear-gradient(var(--ui-mute), var(--ui-mute)) center/9px 1px no-repeat; }

/* header bar: pips | name | contact | rail */
.bar { display: grid; grid-template-columns: var(--frame-cols); height: var(--bar-h); background: var(--void); position: relative; z-index: 5; }
.bar .cell { display: flex; align-items: center; justify-content: center; }
.bar .cell:last-child, .hero > .cell:nth-child(4), .footer .base .cell:last-child { border-right: 0; }
.pips { gap: 7px; }
.pips i { width: 6px; height: 6px; border-radius: 50%; background: #ece9df; box-shadow: 0 0 8px rgba(236,233,223,.7); }
.pips i.y { background: var(--signal); box-shadow: 0 0 9px rgba(217,169,63,.85); animation: echo-pip 3.2s ease-in-out infinite; }
@keyframes echo-pip { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }
.title a { font: 500 15px/1 var(--mono); font-stretch: 112.5%; letter-spacing: .12em; color: var(--statement); }
/* name and contact sit toward the outer edges of their cells, on the content inset */
.bar .title { justify-content: flex-start; padding-left: clamp(20px, 2.8vw, 44px); }
.bar .cta { justify-content: flex-end; padding-right: clamp(20px, 2.8vw, 44px); }
.framed .contact { margin: 0; }

/* hero: statement left, the LED double as a figure in the side column */
.framed .hero { display: grid; grid-template-columns: var(--frame-cols); grid-template-rows: 0 auto minmax(0, 1fr) auto;
  height: calc(100svh - var(--bar-h)); min-height: 560px; background: var(--void); overflow: visible; }
/* the double, as large as the frame allows: a full-width band between the statement and About */
/* the double bleeds through both rails: edge to edge */
.framed .figure { grid-column: 1 / 5; grid-row: 3; overflow: hidden; background: #050507; }
.framed .statement { grid-column: 2 / 4; grid-row: 2; }
.framed .hero > .rr { grid-column: 4; border-right: 0; }
.framed .hero > .rr.r2 { grid-row: 2; } .framed .hero > .rr.r3, .framed .hero > .r3 { display: none; } .framed .hero > .rr.r4 { grid-row: 4; }
.framed .hero > .r3 { grid-column: 1; grid-row: 3; }
.framed .hero > .r4 { grid-column: 1; grid-row: 4; }
.framed .about { grid-column: 2 / 4; grid-row: 4; }
.framed .figure #led { position: absolute; inset: 0; width: 100%; height: 100%; }
.statement { display: flex; align-items: flex-start; padding: clamp(22px, 2.6vw, 40px) clamp(20px, 2.8vw, 44px); }
.statement h1 { font: 300 var(--text-xl)/1.16 var(--mono); font-stretch: 112.5%; letter-spacing: .02em; color: var(--statement); }
.statement h1 .l { display: inline; }
.statement h1 .c { display: inline-block; white-space: pre; }
.statement h1 .c.off { visibility: hidden; }
.statement h1 .c.scr { color: var(--ui-mute); }
.about { padding: 22px clamp(20px, 2.8vw, 44px) 24px; display: grid; grid-template-columns: minmax(120px, 1fr) 2fr; gap: 24px; align-items: baseline; }
.about .desc { color: var(--ui); line-height: 1.65; white-space: nowrap; }

/* sections share the columns: rail | wide (main + side + rail) */
.framed .thesis, .framed .backers { display: grid; grid-template-columns: var(--frame-cols); background: var(--void); border-top: 0; }
.framed .wide { grid-column: 2 / 4; }
.framed .rail:last-child, .framed .theses li > .rail:last-child { border-right: 0; }
.framed .head { padding: 22px clamp(20px, 2.8vw, 44px); }
.framed .theses { grid-column: 1 / 5; display: grid; grid-template-columns: subgrid; }
.framed .theses li { grid-column: 1 / 5; display: grid; grid-template-columns: subgrid; align-items: stretch; padding: 0; border: 0; }
.framed .theses li::after { display: none; }
.framed .theses .num { display: flex; align-items: center; justify-content: center; font: 400 var(--text-s)/1 var(--mono); color: var(--ui-mute); }
.framed .theses p { font: 300 var(--text-m)/1.35 var(--mono); font-stretch: 100%; letter-spacing: 0; color: var(--statement); padding: clamp(26px, 3.2vw, 48px) clamp(20px, 2.8vw, 44px); }
.framed .wall-cell { padding: 0; }

/* footer: the band, then a base row on the columns */
.framed .footer { background: var(--void); border-top: 0; }
.framed #band { border-bottom: 1px solid var(--line); }
.footer .base { display: grid; grid-template-columns: var(--frame-cols); }
.footer .base .cell { border-bottom: 0; padding: 22px clamp(20px, 2.8vw, 44px) calc(var(--frame) - 6px); color: var(--ui-mute); }
.footer .base .side { text-align: center; }
.footer .base a:hover { color: var(--signal); }

@media (max-width: 760px) {
  .framed { --frame-cols: minmax(0, 1fr); }
  .framed .rail { display: none; }
  .bar { grid-template-columns: 1fr auto; }
  .bar .title { justify-content: flex-start; padding-left: 20px; }
  .bar .cta { padding: 0 16px; border-right: 0; }
  .framed .hero { grid-template-rows: auto; height: auto; min-height: 0; }
  .framed .hero > .cell.x:not(.about) { display: none; }
  .framed .figure, .framed .statement, .framed .about { grid-column: 1; grid-row: auto; }
  .framed .figure { height: calc(100svh - var(--bar-h) - 280px); min-height: 300px; }
  .statement h1 .l { display: block; }
  .statement { padding: 40px 20px 36px; }
  .about { grid-template-columns: 1fr; gap: 12px; padding: 22px 20px 28px; }
  .about .desc { white-space: normal; }
  .framed .wide, .framed .theses, .framed .theses li { grid-column: 1; }
  /* one left edge on phones: the numeral sits above its line, like the section labels */
  .framed .theses li { grid-template-columns: minmax(0, 1fr); border-bottom: 1px solid var(--line); }
  .framed .theses .num { display: block; grid-column: 1; border: 0; padding: 22px 20px 0; text-align: left; }
  .framed .theses p, .framed .theses p.wide { grid-column: 1; padding: 10px 20px 24px; border-bottom: 0; }
  .framed .theses li > .rail:last-child { display: none; }
  .framed .head { padding: 22px 20px; }
  .footer .base { grid-template-columns: 1fr; }
  .footer .base .side { text-align: left; }
}

/* the cursor: a small square in place of the arrow (main.js adds it for a mouse only) */
.own-cursor, .own-cursor * { cursor: none !important; }
.cursor-dot { position: fixed; left: -3px; top: -3px; width: 6px; height: 6px; z-index: 100; pointer-events: none;
  background: var(--statement); box-shadow: 0 0 0 2px var(--void); opacity: 0; transition: opacity .2s; }
.cursor-dot.on { opacity: 1; }
.cursor-dot.link { background: var(--signal); }
