/* =============================================================
   DANIEL MAJOROS — portfolio
   Dark structural brutalism. One accent. Exposed ledger grid.
   ============================================================= */

/* ---- 1. TOKENS ---------------------------------------------- */
:root {
  /* colour */
  --void:        #0D0E0D;   /* page ground */
  --panel:       #161816;   /* raised surface, row hover, cards */
  --panel-2:     #1E211E;   /* deeper inset */
  --line:        #2E312E;   /* hairline rules + borders */
  --line-bright: #4A4F4A;   /* rules that need to read */
  --paper:       #EDEEEA;   /* primary text / inverted ground */
  --muted:       #8A8F88;   /* metadata, mono labels, secondary */
  --signal:      #4ADE80;   /* the single accent */
  --signal-dim:  #2EA35C;
  --signal-ink:  #0F6B37;   /* accent that survives on --paper */

  /* type */
  --font-display: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  --font-body:    "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-mono:    "Space Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --fs-3xl:  clamp(2.5rem, 6.4vw, 5.5rem);
  --fs-2xl:  clamp(2.35rem, 4.4vw, 3.4rem);
  --fs-xl:   clamp(1.35rem, 2.3vw, 2rem);
  --fs-lead: clamp(1.05rem, 1.5vw, 1.3rem);
  --fs-body: 1.0625rem;
  --fs-sm:   0.9rem;
  --fs-label:0.75rem;
  --fs-micro:0.6875rem;

  /* space */
  --s1:.25rem; --s2:.5rem; --s3:1rem; --s4:1.5rem;
  --s5:2.5rem; --s6:4rem;  --s7:6rem; --s8:9rem;

  /* structure */
  --frame-max: 1400px;
  --frame-pad: clamp(1rem, 4vw, 3rem);
  --rail: 200px;               /* left index-rail width (desktop) */
  --rule: 1px solid var(--line);
  --rule-bright: 1px solid var(--line-bright);

  --ease: cubic-bezier(.2,.6,.2,1);
}

/* ---- 2. RESET / BASE -------------------------------------- */
*,*::before,*::after { box-sizing: border-box; }
* { margin: 0; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  background: var(--void);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  letter-spacing: 0.015em;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

/* text always wraps to its container, never overflows it */
h1, h2, h3, h4, p, li, dt, dd, a, span, figcaption, blockquote, th, td {
  overflow-wrap: break-word;
}
h1, h2, h3, h4 { text-wrap: balance; }
:where(main, section, .frame, .section__body, .section__grid) { min-width: 0; }

::selection { background: var(--signal); color: var(--void); }

/* focus — redesigned, never removed */
:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 3px;
}
.section--invert :focus-visible { outline-color: var(--signal-ink); }

/* skip link */
.skip {
  position: fixed; top: 0; left: 0; z-index: 200;
  transform: translateY(-120%);
  background: var(--signal); color: var(--void);
  font-family: var(--font-mono); font-size: var(--fs-label);
  text-transform: uppercase; letter-spacing: .08em;
  padding: var(--s3) var(--s4); text-decoration: none;
}
.skip:focus { transform: translateY(0); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px;
  padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---- 3. FRAME + LEDGER GRID ------------------------------- */
.frame {
  max-width: var(--frame-max);
  margin-inline: auto;
  padding-inline: var(--frame-pad);
}

/* the visible outer ruling of the page */
.ledger {
  max-width: var(--frame-max);
  margin-inline: auto;
  border-inline: var(--rule);
}

.section { border-top: var(--rule); }
.section:first-of-type { border-top: 0; }

.section__grid {
  display: grid;
  grid-template-columns: [rail] var(--rail) [content] minmax(0,1fr);
  align-items: start;
}

.section__index {
  grid-column: rail;
  position: sticky;
  top: calc(var(--nav-h, 60px) + var(--s4));
  display: flex;
  align-items: center;
  gap: var(--s2) var(--s3);
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--muted);
  padding: var(--s5) var(--s4) var(--s5) 0;
}
.section__index > span {
  flex: 1 1 6ch;
  min-width: 0;
  overflow-wrap: break-word;
}
.section__index b {
  flex: none;
  color: var(--signal);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.375rem;
  line-height: 1;
  letter-spacing: -0.01em;
}
.section--invert .section__index b { color: var(--signal-ink); }

.section__body {
  grid-column: content;
  border-left: var(--rule);
  padding: var(--s5) 0 var(--s6) var(--frame-pad);
  min-width: 0;
  position: relative;
}
.section__body::after {
  content: '';
  position: absolute;
  left: 0;
  top: 100%;
  width: 1px;
  height: var(--s8);
  background: var(--line);
}

/* ---- 4. NAV ---------------------------------------------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--void) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: var(--rule);
}
:root { --nav-h: 64px; }
.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s4);
  min-height: var(--nav-h);
}

.brand {
  display: inline-flex;
  align-items: baseline;
  text-decoration: none;
  font-family: var(--font-display);
  white-space: nowrap;
}
.brand__lockup {
  display: inline-flex;
  align-items: baseline;
  gap: .42em;
  font-size: clamp(.95rem, 2.4vw, 1.05rem);
  letter-spacing: .03em;
}
.brand__uxd   { color: var(--paper); font-weight: 700; }
.brand__slash { color: var(--signal); font-weight: 700; }
.brand__name  { color: var(--muted); }
.brand:hover .brand__uxd,
.brand:focus-visible .brand__uxd { color: var(--signal); }
.brand:hover .brand__name,
.brand:focus-visible .brand__name { color: var(--paper); }

.nav__menu { display: flex; gap: clamp(.75rem, 2.5vw, 2rem); height: auto; max-width: 300px; }
.nav__menu a {
  position: relative;
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  text-transform: uppercase;
  letter-spacing: .1em;
  text-decoration: none;
  color: var(--muted);
  padding: var(--s2) 0;
  transition: color .15s var(--ease);
}
.nav__menu a .n { color: var(--line-bright); margin-right: .4em; }
.nav__menu a:hover { color: var(--paper); }
.nav__menu a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 2px; background: var(--signal);
  transform: scaleX(0); transform-origin: left;
  transition: transform .18s var(--ease);
}
.nav__menu a:hover::after,
.nav__menu a[aria-current="true"]::after { transform: scaleX(1); }
.nav__menu a[aria-current="true"] { color: var(--paper); }
.nav__menu a[aria-current="true"] .n { color: var(--signal); }

.nav__toggle {
  display: none;
  font-family: var(--font-mono); font-size: var(--fs-label);
  text-transform: uppercase; letter-spacing: .1em;
  background: transparent; color: var(--paper);
  border: var(--rule-bright); padding: var(--s2) var(--s3);
  cursor: pointer;
}
.nav__toggle:hover { border-color: var(--signal); color: var(--signal); }

/* ---- 5. HERO ------------------------------------------------ */
.hero__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-3xl);
  line-height: 1.0;
  letter-spacing: -0.02em;
  white-space: normal;
  overflow-wrap: break-word;
  max-width: 18ch;
}
.hero__title .hl {
  color: var(--signal);
  text-transform: uppercase;
  font-family: var(--font-mono);
  letter-spacing: .04em;
  font-weight: 700;
  text-shadow: 0 2px 0 rgba(74, 222, 128, 0.3);
  word-break: keep-all;
  white-space: nowrap;
}

.hero__role {
  font-family: var(--font-mono);
  font-size: calc(var(--fs-sm) + 2px);
  line-height: 1.5;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
  max-width: 90ch;
  margin-top: var(--s4);
  margin-bottom: var(--s5);
  padding-left: var(--s3);
  border-left: 2px solid var(--signal);
}
.hero__role .hl { color: var(--paper); }

.hero__bullet {
  color: var(--muted);
  margin: 0 0.35em;
}

.hero__line-break {
  display: none;
}

.hero__mobile-break {
  display: none;
  white-space: pre;
}

.hero__cols {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: var(--s5);
  border-top: var(--rule);
  padding-top: var(--s5);
}
.hero__lead p + p { margin-top: var(--s4); }
.hero__lead .lead {
  line-height: 1.65;
  letter-spacing: 0.015em;
  color: var(--paper);
}
.hero__lead p:not(.lead) {
  line-height: 1.65;
  letter-spacing: 0.015em;
  color: var(--paper);
}

/* meta card */
.meta {
  border: var(--rule);
  background: var(--panel);
  align-self: start;
}
.meta dl { display: grid; }
.meta dl > div {
  padding: var(--s3) var(--s4);
  border-top: var(--rule);
}
.meta dl > div:first-child { border-top: 0; }
.meta dt {
  font-family: var(--font-mono);
  font-size: calc(var(--fs-micro) + 2px);
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--muted);
  margin-bottom: var(--s1);
}
.meta dd { font-size: calc(var(--fs-sm) + 2px); }

/* ---- 6. CAPABILITIES (skill pillars) --------------------- */
.section__head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: var(--s3) var(--s4); flex-wrap: wrap;
  margin-bottom: var(--s5);
}
.section__head > * { min-width: 0; }
.section__title {
  flex: 1 1 12ch;
  min-width: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-2xl);
  letter-spacing: -0.02em;
  line-height: 1.02;
  overflow-wrap: break-word;
}
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: var(--rule);
}
.pillar {
  padding: var(--s4);
  border-left: var(--rule);
}
.pillar:first-child { border-left: 0; }
.pillar h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-xl);
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin-bottom: var(--s4);
  min-height: 2.1em;
}
.pillar ul { list-style: none; padding: 0; }
.pillar li {
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  line-height: 1.3;
  padding: var(--s2) 0;
  border-top: var(--rule);
  display: grid;
  grid-template-columns: 1.4em 1fr;
}
.pillar li::before {
  content: "\25AA";
  display: inline-block;
  font-size: .62em;
  line-height: 1.9;
  color: var(--signal-dim);
  transform-origin: left center;
  transition: transform .13s ease-out, color .13s ease-out;
}
.pillar li:hover::before {
  transform: scale(1.4);
  color: var(--signal);
}

/* ---- 7. SELECTED WORK (project table) -------------------- */
.work { list-style: none; padding: 0; border-top: var(--rule-bright); }
.work__row { border-bottom: var(--rule); }
.work__row:last-child { border-bottom: var(--rule-bright); }

.work__link {
  display: grid;
  grid-template-columns: 3rem minmax(0,1fr) auto;
  grid-template-areas:
    "num title  status"
    "num tags   status";
  column-gap: var(--s4);
  row-gap: var(--s2);
  align-items: start;
  text-decoration: none;
  color: var(--paper);
  padding: var(--s4) var(--s2) var(--s4) 0;
  position: relative;
  transition: background .15s ease-out, padding-left .15s ease-out;
}
.work__link::before {
  content: "";
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 2px; background: var(--signal);
  transform: scaleY(0); transform-origin: top;
  transition: transform .18s var(--ease);
}
.work__link:hover,
.work__link:focus-visible { background: rgba(255,255,255,.02); padding-left: var(--s2); }
.work__link:hover::before,
.work__link:focus-visible::before { transform: scaleY(1); }

.work__num {
  grid-area: num;
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  color: var(--muted);
  padding-top: .35em;
}
.work__title {
  grid-area: title;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 2.9vw, 2.5rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.work__tags {
  grid-area: tags;
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
}
.work__status {
  grid-area: status;
  display: inline-flex; align-items: center; gap: var(--s2);
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--muted);
  white-space: nowrap;
  padding-top: .5em;
}
.work__status svg { width: 13px; height: 13px; flex: none; }
.work__arrow { display: inline-block; transition: transform .15s ease-out; }
.work__link:hover .work__arrow,
.work__link:focus-visible .work__arrow { transform: translate(2px, -2px); }

.work__row--locked .work__status { color: var(--muted); }
.work__row--locked .work__link::before { background: var(--line-bright); }
/* the lock "notices" the cursor — one settle, no loop */
.work__row--locked .work__status svg {
  transform-origin: 50% 60%;
  transition: transform .15s ease-out;
}
.work__row--locked .work__link:hover .work__status svg,
.work__row--locked .work__link:focus-visible .work__status svg { transform: rotate(-3deg); }

.work__overlay {
  display: none;
  position: absolute;
  inset: 0;
  background: rgba(13, 14, 13, 0.95);
  backdrop-filter: blur(2px);
  border-radius: 0;
  padding: var(--s4);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  color: var(--paper);
  line-height: 1.8;
  z-index: 10;
  align-items: center;
  justify-content: center;
  text-align: center;
  white-space: normal !important;
  flex-wrap: wrap;
}
.work__overlay a {
  color: var(--signal);
  text-decoration: none;
  transition: color .15s ease-out;
}
.work__overlay a:hover,
.work__overlay a:focus-visible {
  color: var(--signal-dim);
  text-decoration: underline;
}
.work__row--locked .work__link:hover .work__overlay,
.work__row--locked .work__link:focus-visible .work__overlay { display: flex; }

.work__lang {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: .62em;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: .1em;
  border: 1px solid var(--line-bright);
  padding: .15em .5em;
  margin-left: .5em;
  vertical-align: middle;
  color: var(--muted);
  white-space: nowrap;
}
.work__tags .work__lang { font-size: 1em; margin-left: var(--s2); }

/* expandable teaser */
.work__teaser {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .2s var(--ease);
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  color: var(--signal);
}
.work__teaser > span {
  overflow: hidden;
  padding-left: calc(3rem + var(--s4));
}
.work__row:hover .work__teaser,
.work__row:focus-within .work__teaser { grid-template-rows: 1fr; }
.work__row:hover .work__teaser > span,
.work__row:focus-within .work__teaser > span { padding-bottom: var(--s4); }

/* locked rows: show message only on hover, in green */
.work__row--locked:hover .work__teaser,
.work__row--locked:focus-within .work__teaser { grid-template-rows: 1fr; }
.work__row--locked:hover .work__teaser > span,
.work__row--locked:focus-within .work__teaser > span { padding-bottom: var(--s4); }
.work__teaser a { color: var(--signal); }

/* ---- 8. CONTACT (the one inversion) --------------------- */
.section--invert {
  background: var(--paper);
  color: var(--void);
  --line: #C9C9C1;
  --muted: #55574F;
}
.section--invert .section__body { border-left-color: var(--line); }
.section--invert .contact__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-2xl);
  letter-spacing: -0.02em;
  margin-bottom: var(--s4);
}
.contact__intro { max-width: 46ch; margin-bottom: var(--s5); font-size: var(--fs-lead); }
.contact__list { list-style: none; padding: 0; border-top: 2px solid var(--void); }
.contact__list li { border-bottom: 1px solid var(--line); }
.contact__list a {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--s2) var(--s3);
  font-family: var(--font-mono);
  font-size: clamp(0.95rem, 4.2vw, 1.9rem);
  text-decoration: none;
  padding: var(--s4) var(--s1);
  overflow-wrap: anywhere;
  transition: padding-left .18s var(--ease), background .18s var(--ease);
}
.contact__list a .ext { margin-left: auto; }
.contact__list a:hover,
.contact__list a:focus-visible {
  padding-left: var(--s3);
  background: rgba(15,107,55,.08);
  text-decoration: underline;
  text-decoration-color: var(--signal-ink);
  text-underline-offset: 4px;
  text-decoration-thickness: 2px;
}
.contact__list .ext { color: var(--signal-ink); }

/* ---- 9. FOOTER ----------------------------------------- */
.foot { border-top: var(--rule); }
.foot__inner {
  display: flex; flex-wrap: wrap; gap: var(--s4) var(--s6);
  padding-block: var(--s4);
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--muted);
}

/* ---- 10. ABOUT PAGE ----------------------------------- */
.prose p {
  max-width: 62ch;
  color: var(--paper);
  font-size: 18px;
  line-height: 1.65;
  letter-spacing: 0.015em;
}
.prose p + p { margin-top: var(--s5); }
.prose .lead {
  font-size: 18px;
  line-height: 1.65;
  letter-spacing: 0.015em;
}

.statement {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--fs-2xl);
  line-height: 1.1;
  letter-spacing: -0.015em;
  max-width: 20ch;
  text-wrap: balance;
}
.statement .hl { color: var(--signal); }

/* facilitation photos — equal pair; the frame you're scrolling toward
   grows slightly. Scroll down: right frame leads. Scroll up: left frame leads. */
.plates {
  display: flex;
  gap: var(--s4);
  margin-top: var(--s6);
  align-items: start;
}
.plate {
  flex: 1 1 0;
  min-width: 0;
  border: var(--rule);
  background: var(--panel);
  overflow: clip;
  transition: flex-grow .55s var(--ease);
  /* reveal */
  opacity: 0;
  transform: translateY(14px);
}
.plate.is-visible { opacity: 1; transform: none; transition: flex-grow .55s var(--ease), opacity .6s var(--ease), transform .6s var(--ease); }
.plate figure { margin: 0; }

.plate__img {
  position: relative;
  overflow: clip;
  height: clamp(300px, 33vw, 460px);   /* fixed height — frames only ever change width */
  background: var(--panel-2);
}
.plate__img img {
  width: 100%; height: 100%; object-fit: cover;
  object-position: center;
  filter: grayscale(1) contrast(1.02) brightness(.95) sepia(.32) hue-rotate(72deg) saturate(1.35);
  transition: filter .45s var(--ease);
}
.plate:hover .plate__img img,
.plate:focus-within .plate__img img { filter: none; }

/* scroll-direction reaction — JS sets data-scroll-dir on <html>.
   Height is fixed, so the leading frame just widens and uncovers more of its photo. */
@media (prefers-reduced-motion: no-preference) {
  html[data-scroll-dir="down"] .plates .plate:nth-child(2) { flex-grow: 1.5; }
  html[data-scroll-dir="up"]   .plates .plate:nth-child(1) { flex-grow: 1.5; }
}

/* credentials table */
.creds-wrap { border: var(--rule); }
.creds { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.creds caption { text-align: left; }
.creds thead th {
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--muted);
  text-align: left;
  padding: var(--s3) var(--s4);
  border-bottom: var(--rule-bright);
}
.creds tbody td {
  padding: var(--s3) var(--s4);
  border-bottom: var(--rule);
  vertical-align: top;
}
.creds tbody tr:last-child td { border-bottom: 0; }
.creds tbody tr:hover td { background: var(--panel); }
.creds__name { color: var(--paper); font-weight: 500; }
.creds__meta { font-family: var(--font-mono); color: var(--muted); white-space: nowrap; }
.creds__year { font-family: var(--font-mono); color: var(--signal-dim); }
.creds__verify {
  margin-top: var(--s4);
  font-family: var(--font-mono);
  font-size: var(--fs-label);
}
.creds__verify a { color: var(--signal); text-underline-offset: 3px; }

.learn-intro { max-width: 52ch; margin-bottom: var(--s5); }

/* ---- 11. COORDINATE READOUT (signature) --------------- */
.readout {
  position: fixed;
  right: var(--frame-pad);
  bottom: var(--s3);
  z-index: 80;
  display: flex;
  align-items: baseline;
  gap: var(--s2);
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--muted);
  pointer-events: none;
  background: color-mix(in srgb, var(--void) 82%, transparent);
  backdrop-filter: blur(4px);
  border: var(--rule);
  border-right: 2px solid var(--signal);
  padding: var(--s2) var(--s3);
}
.readout b { color: var(--signal); font-weight: 700; }

/* ---- 12. RESPONSIVE ---------------------------------- */
@media (max-width: 1023px) {
  :root {
    --rail: 0px;
    --fs-3xl: clamp(2rem, 5.2vw, 3.5rem);
  }
  .readout { display: none; }

  .section { border-top: 0 !important; }
  .section__body::after { display: none !important; }
  .foot { border-top: 0 !important; }
  .section__grid { grid-template-columns: 1fr; }
  .section__index {
    position: static;
    grid-column: 1;
    padding: var(--s4) 0;
    border-bottom: var(--rule);
  }
  .section__body {
    grid-column: 1;
    border-left: 0;
    padding: var(--s5) 0;
  }

  .hero__bullet { display: none; }
  .hero__mobile-break { display: inline; }
  .hero__title { font-size: clamp(2.2rem, 6vw, 4rem); }
  .hero__role { font-size: calc(var(--fs-sm) - 1px); }
  .hero__title .hl { letter-spacing: -0.03em; }
  .hero__cols { grid-template-columns: 1fr; gap: var(--s4); }
  .pillars { grid-template-columns: 1fr; }
  .pillar { border-left: 0; border-top: var(--rule); }
  .pillar:first-child { border-top: 0; }
  .pillar h3 { min-height: 0; }
  .plates { flex-direction: column; gap: var(--s4); }
  .plate { transition: opacity .6s var(--ease), transform .6s var(--ease); }
  .plate__img { height: auto; aspect-ratio: 3 / 2; }
}

@media (max-width: 1023px) {
  .nav__menu {
    display: flex !important;
    position: fixed !important;
    top: var(--nav-h, 60px) !important;
    right: 0 !important;
    bottom: 0 !important;
    left: auto !important;
    width: 300px !important;
    max-width: none !important;
    height: calc(100vh - var(--nav-h, 60px)) !important;
    flex-direction: column !important;
    gap: 0 !important;
    background: var(--void);
    padding: var(--s2) var(--frame-pad) var(--s4);
    overflow-y: auto;
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .16s var(--ease), transform .16s var(--ease), visibility .16s;
    z-index: 999 !important;
  }
  .nav__menu.is-open { transform: none !important; opacity: 1 !important; visibility: visible !important; }
  .nav__menu a { padding: var(--s3) 0; border-top: var(--rule); font-size: var(--fs-sm); color: var(--paper); }
  .nav__menu a::after { display: none; }
  .nav__menu a[aria-current="true"] { color: var(--signal); }
  .nav__toggle { display: inline-block; }

  .work__link {
    grid-template-columns: 2.5rem 1fr;
    grid-template-areas: "num title" "num tags" ". status";
    row-gap: var(--s2);
  }
  .work__status { justify-self: start; }
  .work__teaser > span { padding-left: 2.5rem; }

  .creds thead { display: none; }
  .creds tbody td { display: block; padding: 0 var(--s3); border-bottom: 0; }
  .creds tbody tr { display: block; border-bottom: var(--rule); padding: var(--s4) 0; }
  .creds tbody td::before { content: none; }
  .creds__name { display: block; font-size: 1.0625rem; }
  .creds tbody td.creds__meta,
  .creds tbody td.creds__year { display: inline-block; margin-top: var(--s2); }
  .creds tbody td.creds__meta::after { content: "  \00B7"; color: var(--muted); }
}

/* ---- 13. BOOT SEQUENCE ------------------------------- */
.boot-screen { display: none; }
html.boot { overflow: hidden; }
html.boot body { overflow: hidden; }

html.boot .boot-screen {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; align-items: center;
  background: var(--void);
  padding: 0 var(--frame-pad);
  transition: clip-path .32s var(--ease), opacity .32s var(--ease);
}
.boot-screen__log {
  margin: 0;
  max-width: var(--frame-max);
  font-family: var(--font-mono);
  font-size: clamp(.8rem, 2.6vw, 1rem);
  line-height: 1.9;
  color: var(--muted);
  white-space: pre-wrap;
}
.boot-screen__log::after {
  content: "\2588";
  color: var(--signal);
  animation: boot-blink .5s step-end infinite;
}
.boot-screen--out { clip-path: inset(0 0 100% 0); opacity: 0; pointer-events: none; }

/* hero elements wait behind the overlay, then stagger in */
html.boot body:not(.is-loaded) [data-boot] { opacity: 0; }
html.boot body:not(.is-loaded) [data-boot="nav"]  { transform: translateY(-8px); }
html.boot body:not(.is-loaded) [data-boot="meta"] { transform: translateX(16px); }

body.is-loaded [data-boot] {
  opacity: 1; transform: none;
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
body.is-loaded [data-boot="hey"]  { transition-delay: .10s; }
body.is-loaded [data-boot="name"] { transition-delay: .18s; }
body.is-loaded [data-boot="role"] { transition-delay: .26s; }
body.is-loaded [data-boot="meta"] { transition-delay: .34s; }
body.is-loaded [data-boot="lead"] { transition-delay: .42s; }

/* the "just finished typing" cursor on the tagline */
.hero__role.boot-cursor::after {
  content: "";
  display: inline-block;
  width: .5em; height: 1.05em;
  margin-left: .18em;
  background: var(--signal);
  vertical-align: -0.15em;
  animation: boot-blink .53s step-end 3;
}
@keyframes boot-blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

/* ---- 14. REDUCED MOTION ------------------------------ */
@media (prefers-reduced-motion: reduce) {
  *,*::before,*::after {
    transition-duration: .001ms !important;
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
  }
  .plate { opacity: 1 !important; transform: none !important; }
  .plate__img img { transform: none !important; }
  .work__teaser { transition: none; }
  .boot-screen { display: none !important; }
  [data-boot] { opacity: 1 !important; transform: none !important; }
}

/* ---- 15. HIDE NETLIFY BADGE ------------------------------ */
a[href*="netlify.com"][class*="netlify-badge"],
.netlify-badge,
#netlify-badge {
  display: none !important;
}
