@charset "UTF-8";
/* o1tean.com — "Liquid ASCII"
   Liquid glass (the designer) over a live character grid (the developer).
   Fonts: Hack © Source Foundry (MIT) · HACKED © David Libeau (CC BY). */

/* ── Fonts ──────────────────────────────────────────────── */

@font-face { font-family: "HACKED"; src: url("/fonts/hacked.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Hack"; src: url("/fonts/hack-regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Hack"; src: url("/fonts/hack-bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }

/* Radius of the glass hole in an ASCII veil; registered so it can transition. */
@property --r { syntax: "<length-percentage>"; inherits: true; initial-value: 0px; }

/* ── Tokens ─────────────────────────────────────────────── */

:root {
  color-scheme: dark;

  --void: #07050a;
  --ink: #0f0a14;
  --ink-2: #171020;
  --line: #2a1f33;
  --fg: #f4ecf8;
  --muted: #a99bb6;
  --dim: #6f6080;
  --orchid: #d97cff;
  --pink: #ff5fd2;
  --violet: #8b5cf6;
  --plum: #2b0f3f;
  --blush: #ffe3f6;

  --font-mono: "Hack", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --font-display: "HACKED", "Hack", ui-monospace, monospace;

  --gutter: clamp(1rem, 4vw, 3rem);
  --maxw: 1200px;
  /* Full-bleed blocks keep content in a centred 1200px column. */
  --pad-x: max(var(--gutter), (100% - var(--maxw)) / 2);
  --ease: cubic-bezier(.2, .8, .2, 1);

  /* Translucent backdrop that keeps text AA over the live canvas
     (muted ≥ 4.8:1 even over the brightest glyph colour). */
  --veil: rgb(7 5 10 / .8);

  /* Glass recipe. Tint + sheen are tuned so muted text stays ≥ 4.5:1. */
  --glass-tint: rgb(15 10 20 / .6);
  --glass-sheen:
    radial-gradient(120% 90% at 0% 0%, rgb(255 255 255 / .07), transparent 55%),
    linear-gradient(160deg, rgb(255 255 255 / .03), transparent 40%, rgb(217 124 255 / .06));
  --glass-edge: rgb(255 255 255 / .13);
  --glass-shadow:
    inset 0 1px 0 rgb(255 255 255 / .2),
    inset 0 0 0 1px rgb(217 124 255 / .05),
    inset 0 -24px 48px -32px rgb(217 124 255 / .45),
    0 24px 60px -28px rgb(0 0 0 / .85);
  --glass-blur: blur(18px) saturate(170%);
}

/* ── Base ───────────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--void);
  scroll-padding-top: 5rem;
  scrollbar-width: thin;
  scrollbar-color: var(--orchid) var(--void);
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  background: var(--void);
  color: var(--fg);
  font: 400 1rem/1.65 var(--font-mono);
  overflow-x: clip;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, p, figure, dl, dd, pre, ul { margin: 0; }
h1, h2, h3 { font-size: inherit; line-height: 1.15; text-wrap: balance; }
p { text-wrap: pretty; }
ul[role="list"] { list-style: none; padding: 0; }
img, canvas, svg { display: block; max-width: 100%; }
img { height: auto; }
pre, code { font-family: var(--font-mono); font-size: 1em; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }

a {
  color: var(--fg);
  text-decoration: underline;
  text-decoration-color: var(--orchid);
  text-decoration-thickness: 1px;
  text-underline-offset: .22em;
  transition: color .2s, text-decoration-color .2s;
}
a:hover { color: var(--pink); text-decoration-color: currentColor; }

:focus-visible { outline: 2px solid var(--pink); outline-offset: 3px; }
::selection { background: var(--pink); color: var(--void); }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--void); }
::-webkit-scrollbar-thumb { background: var(--orchid); border: 3px solid var(--void); }

/* Display type: HACKED has a single weight; never let the UA fake bold. */
.section-title, .section-index, .contact-title, .project-index {
  font-family: var(--font-display);
  font-weight: 400;
  font-synthesis: none;
}

/* ── Utilities ──────────────────────────────────────────── */

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px; margin: -1px; padding: 0; border: 0;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

.skip-link {
  position: fixed;
  z-index: 200;
  top: .75rem;
  left: .75rem;
  padding: .6rem 1rem;
  border-radius: 8px;
  background: var(--orchid);
  color: var(--void);
  font-weight: 700;
  text-decoration: none;
  translate: 0 -200%;
}
.skip-link:focus { translate: none; }
.skip-link:hover { color: var(--void); }

.dim { color: var(--muted); } /* --dim itself fails AA, so text labels use --muted */

/* ── Layers: canvas · scanlines · content ───────────────── */

.liquid {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100vh;
  height: 100lvh; /* stable under mobile URL-bar resizes */
  pointer-events: none;
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    repeating-linear-gradient(to bottom, rgb(255 255 255 / .03) 0 1px, transparent 1px 3px),
    radial-gradient(130% 100% at 50% 45%, transparent 55%, rgb(7 5 10 / .6));
}

main, .footer { position: relative; z-index: 2; }

.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; pointer-events: none; }

/* No WebGL (and the 404 page): a static field of plum light on a character grid. */
html.no-webgl .liquid,
html.no-webgl .hero-hint { display: none; }

html.no-webgl body,
body.page-404 {
  background:
    radial-gradient(55vmax 45vmax at 80% 22%, rgb(139 92 246 / .2), transparent 70%),
    radial-gradient(50vmax 40vmax at 8% 95%, rgb(255 95 210 / .1), transparent 70%),
    radial-gradient(40vmax 30vmax at 72% 30%, rgb(43 15 63 / .9), transparent 75%),
    repeating-linear-gradient(90deg, rgb(217 124 255 / .04) 0 1px, transparent 1px 12px),
    repeating-linear-gradient(rgb(217 124 255 / .03) 0 1px, transparent 1px 21px),
    var(--void);
  background-attachment: fixed;
}

/* ── Glass recipe ───────────────────────────────────────── */

.glass, .nav, .filters,
.btn:not(.btn-primary):hover,
.contact-mail:hover {
  background-color: var(--glass-tint);
  background-image: var(--glass-sheen);
  border: 1px solid var(--glass-edge);
  box-shadow: var(--glass-shadow);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
}

.glass { position: relative; border-radius: 22px; }

/* Chromium can refract the backdrop through the inline SVG filter. */
html.liquid-svg .glass { backdrop-filter: url(#glass-distort) blur(14px) saturate(170%); }

/* Pixel corners: where the liquid meets the grid. */
.glass::before, .glass::after {
  position: absolute;
  font: 400 .875rem/1 var(--font-mono);
  color: var(--orchid);
  pointer-events: none;
}
.glass::before { content: "┌"; content: "┌" / ""; top: .7rem; left: .8rem; }
.glass::after { content: "┘"; content: "┘" / ""; right: .8rem; bottom: .7rem; }

/* ── Terminal ───────────────────────────────────────────── */

.term {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgb(15 10 20 / .94);
  box-shadow:
    0 0 0 1px rgb(0 0 0 / .5),
    0 28px 60px -30px rgb(0 0 0 / .9),
    0 0 60px -28px rgb(139 92 246 / .45);
  font-size: .9375rem;
}
.term::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(to bottom, rgb(255 255 255 / .025) 0 1px, transparent 1px 3px);
}

.term-bar {
  display: flex;
  align-items: center;
  gap: .45rem;
  padding: .65rem .9rem;
  border-bottom: 1px solid var(--line);
  background: var(--ink-2);
}
.term-dot { width: .625rem; height: .625rem; background: var(--pink); }
.term-dot:nth-child(2) { background: var(--orchid); }
.term-dot:nth-child(3) { background: var(--violet); }
.term-title { margin-left: .6rem; color: var(--muted); font-size: .75rem; }

.term-body { padding: clamp(1.25rem, 3vw, 2rem); color: var(--muted); }
.term-body > * + * { margin-top: .35rem; }
.term-body > .cmd:not(:first-child) { margin-top: 1.25rem; }

.cmd { color: var(--fg); font-weight: 700; }
.cmd::before { content: "$ "; content: "$ " / ""; color: var(--orchid); }
.cmd-idle .caret::before { content: "█"; color: var(--pink); animation: blink 1.1s steps(1) infinite; }

.stack {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: .3rem 1.5rem;
}
.stack dt { color: var(--orchid); font-weight: 700; }
.stack dd { color: var(--muted); }

/* ── Buttons ────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: .55rem 1.15rem;
  border: 1px solid rgb(255 255 255 / .16);
  border-radius: 999px;
  color: var(--fg);
  font: 700 .9375rem/1.2 var(--font-mono);
  letter-spacing: .02em;
  text-transform: lowercase;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .25s, border-color .25s, box-shadow .25s, filter .2s;
}
.btn::before, .btn::after { white-space: pre; color: var(--orchid); transition: color .2s; }
.btn::before { content: "[ "; content: "[ " / ""; }
.btn::after { content: " ]"; content: " ]" / ""; }
.btn:hover { color: var(--fg); animation: nudge .18s steps(1); }
.btn:hover::before, .btn:hover::after { color: var(--pink); }

.btn-primary {
  border-color: transparent;
  background: linear-gradient(100deg, var(--orchid), var(--pink));
  color: var(--void);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .4), 0 12px 32px -12px rgb(255 95 210 / .7);
}
.btn-primary::before, .btn-primary::after { color: rgb(7 5 10 / .55); }
.btn-primary:hover {
  color: var(--void);
  filter: brightness(1.08) saturate(1.1);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .5), 0 14px 40px -10px rgb(255 95 210 / .9);
}
.btn-primary:hover::before, .btn-primary:hover::after { color: var(--void); }

/* ── Nav ────────────────────────────────────────────────── */

.nav {
  position: fixed;
  z-index: 10;
  top: .75rem;
  inset-inline: var(--gutter);
  width: fit-content;
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: clamp(.25rem, 2vw, 1.5rem);
  padding: .25rem .25rem .25rem .9rem;
  border-radius: 999px;
  font-size: .8125rem;
  transition: background-color .3s;
}
.nav.is-scrolled { --glass-tint: rgb(15 10 20 / .85); }

.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  min-height: 2.75rem;
  color: var(--fg);
  font-weight: 700;
  letter-spacing: .03em;
  text-decoration: none;
}
.nav-logo-mark { color: var(--pink); text-shadow: 0 0 .6em rgb(255 95 210 / .8); }
/* The drawn logo (brand/assets/motion/nav-logo.svg + .css): 28 px tall keeps its cell above the 16 px floor. */
.nav-logo.o1-nav-logo { height: 2.75rem; padding-block: .5rem; }

.nav-links { display: flex; }
.nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding-inline: clamp(.5rem, 2vw, .95rem);
  border-radius: 999px;
  color: var(--muted);
  text-decoration: none;
  transition: color .2s, background-color .2s;
}
.nav-links a:hover { color: var(--fg); background-color: rgb(255 255 255 / .06); }
.nav-links a[aria-current] {
  color: var(--fg);
  background-color: rgb(217 124 255 / .16);
  box-shadow: inset 0 0 0 1px rgb(217 124 255 / .32), inset 0 1px 0 rgb(255 255 255 / .14);
}

.nav-status { display: none; }
@media (min-width: 720px) {
  .nav-status {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    padding-inline: .5rem .9rem;
    color: var(--muted);
    font-size: .75rem;
    white-space: nowrap;
  }
}
.nav-status .dot {
  width: .45rem;
  height: .45rem;
  background: var(--pink);
  box-shadow: 0 0 .5rem var(--pink);
  animation: pulse 2.4s var(--ease) infinite;
}

/* ── Hero ───────────────────────────────────────────────── */

/* Mobile / portrait: the 3D form floats up top, text sits in the lower half. */
.hero {
  position: relative;
  display: grid;
  align-content: end;
  min-height: 100vh;
  min-height: 100svh;
  /* Text starts below the form (engine: centre at 26% height); short phones scroll for the rest. */
  padding: max(6.5rem, 40svh) var(--pad-x) 4.5rem;
  overflow: hidden;
}
.hero::after { /* fade into the first section's veil */
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 8rem;
  background: linear-gradient(transparent, var(--veil));
  pointer-events: none;
}

.hero-inner { position: relative; z-index: 1; max-width: 38rem; }
.hero-inner::before { /* scrim that follows the text block; .hero clips the bleed */
  content: "";
  position: absolute;
  z-index: -1;
  inset: -7rem -100vw -6.5rem;
  background: linear-gradient(to top, rgb(7 5 10 / .9), rgb(7 5 10 / .85) calc(100% - 11rem), transparent);
  pointer-events: none;
}

/* Landscape (the engine reads this same media query): text left, form right. */
@media (min-aspect-ratio: 11/10) {
  .hero { align-content: center; padding-top: 6.5rem; }
  .hero-inner { max-width: min(36rem, 48vw); }
  .hero-inner::before {
    inset: -100vh -8rem -100vh -100vw;
    background: linear-gradient(90deg, rgb(7 5 10 / .88), rgb(7 5 10 / .85) calc(100% - 8rem), transparent);
  }
}

.hero-kicker {
  display: inline-block;
  margin-bottom: 1.25rem;
  padding: .3rem .7rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: rgb(7 5 10 / .85);
  color: var(--orchid);
  font-size: .8125rem;
}

/* The drawn logo replaces the typed name (brand rule: never type the name). Flat, no glow, same width the
   HACKED headline had. Its intro is brand/assets/motion/o1tean-logo-intro.css, triggered by main.js. */
.hero-logo { width: min(72vw, 34rem); }
.hero-logo svg { display: block; width: 100%; height: auto; overflow: visible; }
.hero-logo.is-pre svg { visibility: hidden; } /* waiting for the boot screen, so the intro starts from empty */
@media (min-aspect-ratio: 11/10) { .hero-logo { width: min(40vw, 34rem); } }

/* Watch Dogs glitch: sliced, offset copies of [data-text], ~180ms every 6s. */
[data-text] { position: relative; }
[data-text]::before, [data-text]::after {
  content: attr(data-text);
  content: attr(data-text) / "";
  position: absolute;
  inset: 0;
  clip-path: inset(50% 0 50% 0);
  text-shadow: none;
  pointer-events: none;
}
[data-text]::before { color: var(--pink); background: var(--void); animation: glitch-a 6s steps(1) infinite; }
[data-text]::after { color: var(--violet); animation: glitch-b 6s steps(1) infinite; }

.hero-roles {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .2rem .85rem;
  margin-top: 1.1rem;
  font-size: clamp(.8125rem, .75rem + .4vw, 1rem);
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.role-design { color: var(--pink); text-shadow: 0 0 .9em rgb(255 95 210 / .7); } /* soft, liquid */
.role-dev { color: var(--orchid); text-shadow: 2px 2px 0 var(--plum); }        /* hard, pixel */
.role-sep { color: var(--dim); letter-spacing: 0; }

.hero-lede {
  max-width: 36ch;
  margin-top: 1.5rem;
  font-size: clamp(1rem, .95rem + .3vw, 1.125rem);
  line-height: 1.6;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 2rem; }

.hero-hint { margin-top: 1.5rem; color: var(--muted); font-size: .75rem; }
.hero-hint::before { content: "// "; color: var(--dim); }
.hint-pointer { display: none; }
@media (hover: hover) and (pointer: fine) {
  .hint-pointer { display: inline; }
  .hint-touch { display: none; }
}

.hero-scroll {
  position: absolute;
  z-index: 1;
  inset-inline: 0;
  bottom: 1.25rem;
  width: fit-content;
  margin-inline: auto;
  display: flex;
  align-items: center;
  min-height: 2.75rem;
  padding-inline: .75rem;
  color: var(--muted);
  font-size: .75rem;
  letter-spacing: .12em;
  text-decoration: none;
  animation: bob 2.6s ease-in-out infinite;
}

/* ── Sections ───────────────────────────────────────────── */

.section {
  position: relative;
  padding: clamp(5rem, 12vh, 9rem) var(--pad-x);
  background: var(--veil);
}

.section-head { margin-bottom: clamp(2.5rem, 6vw, 4rem); }

.section-index {
  display: flex;
  align-items: center;
  gap: .75rem;
  color: var(--orchid);
  font-size: clamp(1rem, .9rem + .4vw, 1.25rem);
  letter-spacing: .08em;
}
/* Box-drawing rule (the element is aria-hidden, so no alt text needed). */
.section-index::before, .section-index::after {
  font-family: var(--font-mono);
  color: var(--dim);
  letter-spacing: 0;
}
.section-index::before { content: "┌─"; }
.section-index::after {
  content: "────────────────────────────────────────────────";
  min-width: 0; /* shrinks below its 48ch on narrow screens */
  overflow: hidden;
  white-space: nowrap;
  -webkit-mask-image: linear-gradient(90deg, #000, transparent);
  mask-image: linear-gradient(90deg, #000, transparent);
}

.section-title {
  margin-top: .75rem;
  font-size: clamp(2.6rem, 7vw, 5.5rem);
  line-height: .95;
  text-transform: lowercase;
  text-shadow: 0 0 .35em rgb(217 124 255 / .35);
}

.section-sub { max-width: 52ch; margin-top: 1rem; color: var(--muted); }

/* ── Split: designer (glass) vs developer (terminal) ────── */

.split-grid { display: grid; gap: clamp(1rem, 3vw, 2rem); }
@media (min-width: 860px) {
  .split-grid { grid-template-columns: 1fr 1fr; }
}

.side-design {
  padding: clamp(1.75rem, 4vw, 3rem);
  border-radius: 28px;
  background-image:
    radial-gradient(50% 60% at 100% 0%, rgb(255 95 210 / .14), transparent 70%),
    var(--glass-sheen);
}

.side-design > * + *,
.side-dev .term-body > * + * { margin-top: 1rem; }
.side .side-tag + .side-title { margin-top: .5rem; }
.side-dev .term-body { color: var(--fg); }
.side p { max-width: 46ch; }

.side-tag {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.side-design .side-tag { color: var(--pink); }
.side-dev .side-tag { color: var(--orchid); }

.side-title { font-size: clamp(1.75rem, 1.2rem + 2vw, 2.5rem); line-height: 1.1; }
.side-design .side-title {
  width: fit-content;
  background: linear-gradient(100deg, var(--blush), var(--orchid) 55%, var(--pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 18px rgb(255 95 210 / .35));
}
.side-dev .side-title { color: var(--fg); text-shadow: 3px 3px 0 var(--plum); }
.side-dev .side-title::after {
  content: "_";
  content: "_" / "";
  color: var(--orchid);
  animation: blink 1.1s steps(1) infinite;
}

.chips { display: flex; flex-wrap: wrap; gap: .5rem; font-size: .8125rem; }
.chips li { white-space: nowrap; }
.side-design .chips li {
  padding: .3rem .85rem;
  border: 1px solid rgb(255 255 255 / .14);
  border-radius: 999px;
  background: rgb(255 255 255 / .05);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .14);
}
.side-dev .chips { gap: .4rem 1rem; }
.side-dev .chips li::before { content: "["; content: "[" / ""; color: var(--orchid); }
.side-dev .chips li::after { content: "]"; content: "]" / ""; color: var(--orchid); }

.side-tools { font-size: .8125rem; }

/* ── Work ───────────────────────────────────────────────── */

.filters {
  display: flex;
  width: fit-content;
  max-width: 100%;
  gap: .25rem;
  margin-bottom: clamp(1.75rem, 4vw, 2.75rem);
  padding: .25rem;
  border-radius: 999px;
}
.filter {
  min-height: 2.75rem;
  padding: 0 1.15rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: .875rem;
  cursor: pointer;
  transition: color .2s, background-color .2s;
}
.filter:hover { color: var(--fg); background-color: rgb(255 255 255 / .06); }
.filter[aria-pressed="true"] {
  background: linear-gradient(100deg, var(--orchid), var(--pink));
  color: var(--void);
  font-weight: 700;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .4), 0 8px 22px -10px rgb(255 95 210 / .8);
}

.projects {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
  gap: clamp(1.75rem, 4vw, 2.5rem) clamp(1.25rem, 3vw, 2rem);
}

.project { position: relative; display: grid; align-content: start; gap: 1rem; }

/* Media + ASCII veil. The stretched link sits above the media (the whole card is
   clickable); the peek lens listens on the card, so it still follows the pointer. */
.project-media, .portrait-media {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #0b0710;
  transition: --r .6s var(--ease), border-color .3s, box-shadow .3s;
}
.project-media { aspect-ratio: 4 / 3; }
.portrait-media { aspect-ratio: 3 / 4; border-radius: 24px; }

.project-media img, .portrait-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ascii-veil {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  -webkit-mask-image: radial-gradient(circle at var(--x, 50%) var(--y, 50%), transparent 0 calc(var(--r, 0px) - 1.5px), #000 var(--r, 0px));
  mask-image: radial-gradient(circle at var(--x, 50%) var(--y, 50%), transparent 0 calc(var(--r, 0px) - 1.5px), #000 var(--r, 0px));
}

/* The glass lens ring that rims the hole. */
.project-media::after, .portrait-media::after {
  content: "";
  position: absolute;
  z-index: 1;
  top: var(--y, 50%);
  left: var(--x, 50%);
  width: calc(var(--r, 0px) * 2);
  aspect-ratio: 1;
  translate: -50% -50%;
  border: 1px solid rgb(255 227 246 / .6);
  border-radius: 50%;
  box-shadow:
    inset 0 0 0 1px rgb(255 95 210 / .35),
    inset 10px 12px 26px -14px rgb(255 255 255 / .55),
    inset -12px -16px 30px -18px rgb(217 124 255 / .7),
    0 0 26px rgb(255 95 210 / .25),
    0 0 0 6px rgb(7 5 10 / .25);
  opacity: 0;
  transition: opacity .25s;
  pointer-events: none;
}

.is-peeking { --r: 110px; }
.is-peeking::after { opacity: 1; }
.is-revealed,
.project:focus-within .project-media { --r: 150%; }

.project:hover .project-media {
  border-color: rgb(217 124 255 / .45);
  box-shadow: 0 24px 60px -30px rgb(255 95 210 / .55);
}

.project-meta {
  display: grid;
  grid-template-columns: 2.25rem minmax(0, 1fr); /* HACKED digits vary in width: keep titles aligned */
  gap: .3rem 1rem;
}
.project-index { grid-row: span 3; color: var(--orchid); font-size: 1.75rem; line-height: 1; }
.project-title { font-size: 1.0625rem; }

.project-link { color: var(--fg); text-decoration: none; }
.project:hover .project-link { color: var(--pink); }
.project-link::after { /* stretched link */
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: 18px;
}
.project-link:focus-visible { outline: none; }
.project-link:focus-visible::after { outline: 2px solid var(--pink); outline-offset: 6px; }

.project-desc { color: var(--muted); font-size: .875rem; }

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .25rem .9rem;
  color: var(--muted);
  font-size: .75rem;
}
.project-tags li::before { content: "#"; content: "#" / ""; color: var(--orchid); }

/* ── About ──────────────────────────────────────────────── */

.about-grid { display: grid; align-items: center; gap: clamp(1.75rem, 4vw, 3.5rem); }
@media (min-width: 860px) {
  .about-grid { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); }
}

.portrait { width: 100%; max-width: 26rem; }
.portrait figcaption { margin-top: .75rem; color: var(--muted); font-size: .8125rem; }

/* ── Contact ────────────────────────────────────────────── */

.contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  padding-block: clamp(6rem, 16vh, 11rem);
  text-align: center;
  background:
    radial-gradient(60% 55% at 50% 50%, rgb(139 92 246 / .14), transparent 70%),
    var(--veil);
}
.contact .section-index::before,
.contact .section-index::after { content: "───"; flex: none; -webkit-mask-image: none; mask-image: none; }

.contact-title {
  font-size: clamp(3.5rem, 14vw, 10rem);
  line-height: .9;
  text-transform: lowercase;
  text-shadow:
    0 0 .03em rgb(255 227 246 / .5),
    0 0 .25em rgb(255 95 210 / .45),
    0 0 .6em rgb(139 92 246 / .35);
}

.contact-lede { max-width: 44ch; color: var(--muted); }

.contact-mail {
  max-width: 100%;
  margin-top: .75rem;
  padding: .3em .65em;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: clamp(1.25rem, 6vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  overflow-wrap: anywhere;
  text-decoration-thickness: 2px;
  text-underline-offset: .2em;
  transition: color .2s, text-decoration-color .2s, text-underline-offset .3s var(--ease),
    background-color .3s, border-color .3s, box-shadow .3s;
}
.contact-mail:hover { color: var(--blush); text-decoration-color: var(--pink); text-underline-offset: .32em; }

.contact-links { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem 1.5rem; }

/* ── Footer ─────────────────────────────────────────────── */

.footer {
  padding: 2rem var(--pad-x) 1.5rem;
  border-top: 1px solid var(--line);
  background: rgb(7 5 10 / .92);
  color: var(--muted);
  font-size: .8125rem;
}

.footer-rule {
  overflow: hidden;
  white-space: nowrap;
  font-size: .75rem;
  line-height: 1;
  background: linear-gradient(90deg, var(--orchid), var(--pink) 50%, var(--violet));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: .45;
}
/* The markup's run is ~1100px; repeat it so the rule spans wide screens. */
.footer-rule::after { content: "░▒▓█▓▒░░▒▓█▓▒░░▒▓█▓▒░░▒▓█▓▒░░▒▓█▓▒░░▒▓█▓▒░░▒▓█▓▒░░▒▓█▓▒░░▒▓█▓▒░░▒▓█▓▒░░▒▓█▓▒░░▒▓█▓▒░░▒▓█▓▒░░▒▓█▓▒░░▒▓█▓▒░░▒▓█▓▒░░▒▓█▓▒░░▒▓█▓▒░░▒▓█▓▒░░▒▓█▓▒░░▒▓█▓▒░"; }

.footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .5rem 2rem;
  margin-top: 1.25rem;
}
.footer-row a { color: var(--muted); }
.footer-row a:hover { color: var(--pink); }
.colophon { flex: 1 1 22rem; }

.motion-toggle {
  min-height: 2.75rem;
  padding: 0 .25rem;
  border: 0;
  background: none;
  color: var(--muted);
  cursor: pointer;
  transition: color .2s;
}
.motion-toggle::before { content: "[ "; content: "[ " / ""; color: var(--orchid); white-space: pre; }
.motion-toggle::after { content: " ]"; content: " ]" / ""; color: var(--orchid); white-space: pre; }
.motion-toggle:hover { color: var(--fg); }
.motion-toggle[aria-pressed="false"] .motion-state { color: var(--pink); }

/* ── Boot overlay (created by main.js) ──────────────────── */

.boot {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  padding: var(--gutter);
  background:
    repeating-linear-gradient(to bottom, rgb(255 255 255 / .03) 0 1px, transparent 1px 3px),
    var(--void);
  font-family: var(--font-mono);
  transition: opacity .4s var(--ease), scale .4s var(--ease);
}
.boot.is-done { opacity: 0; scale: 1.03; pointer-events: none; }

.boot-art {
  max-width: 100%;
  overflow: hidden;
  font-size: min(1.75rem, 3.6vw);
  font-weight: 700;
  line-height: 1;
  background: linear-gradient(90deg, var(--orchid), var(--pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 .6rem rgb(255 95 210 / .5));
}

.boot-log {
  width: min(34ch, 100%);
  min-height: 8em; /* five lines reserved: no layout jump as they appear */
  color: var(--muted);
  font-size: .8125rem;
  line-height: 1.6;
}
.boot-log > * { margin: 0; }

/* Segmented ░ track with a pixel-block fill; --p is 0–100. */
.boot-bar {
  display: grid;
  width: min(34ch, 100%); /* same left edge as .boot-log */
  grid-template-columns: minmax(0, 1fr) 4ch;
  align-items: center;
  column-gap: 1ch;
  font-size: .8125rem;
}
.boot-bar::before, .boot-bar-fill {
  grid-area: 1 / 1;
  height: .75em;
  -webkit-mask-image: repeating-linear-gradient(90deg, #000 0 calc(1ch - 2px), transparent 0 1ch);
  mask-image: repeating-linear-gradient(90deg, #000 0 calc(1ch - 2px), transparent 0 1ch);
}
.boot-bar::before { content: ""; background: var(--plum); }
.boot-bar-fill {
  justify-self: start;
  width: calc(var(--p, 0) * 1%);
  background: linear-gradient(90deg, var(--orchid), var(--pink));
  transition: width .12s linear;
}
.boot-bar-pct { color: var(--fg); text-align: right; font-variant-numeric: tabular-nums; }

.boot-skip { color: var(--muted); font-size: .6875rem; letter-spacing: .14em; text-transform: uppercase; }

/* ── 404 ────────────────────────────────────────────────── */

.page-404 { display: grid; place-items: center; }
.page-404 main { width: 100%; background: none; }
.page-404 .term { width: min(100%, 30rem); text-align: left; }
.page-404 pre.term-body { white-space: pre-wrap; overflow-wrap: anywhere; font-size: .875rem; }

/* ── Keyframes ──────────────────────────────────────────── */

@keyframes blink { 50% { opacity: 0; } }

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgb(255 95 210 / .7); }
  70%, 100% { box-shadow: 0 0 0 .5rem rgb(255 95 210 / 0); }
}

@keyframes bob { 50% { translate: 0 .3rem; } }

@keyframes nudge {
  0% { translate: 2px -1px; }
  33% { translate: -2px 1px; }
  66% { translate: 1px 0; }
  100% { translate: none; }
}

@keyframes glitch-a {
  0%, 95% { clip-path: inset(50% 0 50% 0); translate: none; }
  95.5% { clip-path: inset(12% 0 62% 0); translate: -.05em 0; }
  96.5% { clip-path: inset(58% 0 18% 0); translate: .04em 0; }
  97.5% { clip-path: inset(34% 0 44% 0); translate: -.03em 0; }
  98.5%, 100% { clip-path: inset(50% 0 50% 0); translate: none; }
}

@keyframes glitch-b {
  0%, 95.5% { clip-path: inset(50% 0 50% 0); translate: none; }
  96% { clip-path: inset(66% 0 8% 0); translate: .06em 0; }
  97% { clip-path: inset(20% 0 56% 0); translate: -.04em 0; }
  98% { clip-path: inset(42% 0 36% 0); translate: .03em 0; }
  98.5%, 100% { clip-path: inset(50% 0 50% 0); translate: none; }
}

/* ── Motion & transparency preferences ──────────────────── */

@media (prefers-reduced-motion: no-preference) {
  html:not(.motion-off) { scroll-behavior: smooth; }
}

html.motion-off *, html.motion-off ::before, html.motion-off ::after {
  animation: none !important;
  transition: none !important;
}

@media (prefers-reduced-motion: reduce) {
  *, ::before, ::after {
    animation: none !important;
    transition: none !important;
  }
}

@media (prefers-reduced-transparency: reduce) {
  :root, .nav.is-scrolled { --veil: rgb(7 5 10 / .95); --glass-tint: rgb(15 10 20 / .94); }
}
