@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,600&family=Archivo:wght@400;500;600&family=IBM+Plex+Mono:wght@400;500&display=swap');

/* ============================================================
   Taufiq Nashrullah - portfolio
   Direction (docs/DESIGN.md of the previous site, "Editorial Light"):
   bright, content-first, typographic hierarchy over decoration.
   Here it is pushed toward a work-record feel: paper paper, one
   terracotta accent, serif display, mono for dates and labels.
   Dials: ENERGY 2 / RHYTHM 2 / MOTION 2
   ============================================================ */

:root {
  --paper: #F7F6F3;
  --surface: #FFFFFF;
  --ink: #16171A;
  --ink-soft: #33343A;
  --muted: #55565B;
  --faint: #67686D;
  --line: #DAD8D3;
  --line-strong: #C4C1BA;

  --accent: #A94F1C;
  --accent-deep: #7E3A12;
  --accent-soft: #F0E2D8;
  --accent-on-night: #E39A63;

  --night: #17181B;
  --on-night: #F4F3F1;
  --night-muted: #B9B8B4;
  --night-line: rgba(255, 255, 255, 0.14);

  --display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, 'Courier New', monospace;

  --gutter: clamp(20px, 5vw, 56px);
  --shell: 1200px;
  --radius: 4px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }

h1, h2, h3 { font-weight: 600; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: fixed;
  left: var(--gutter);
  top: 8px;
  z-index: 200;
  transform: translateY(-160%);
  background: var(--ink);
  color: var(--paper);
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 14px;
  transition: transform .2s var(--ease);
}
.skip-link:focus { transform: translateY(0); }

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- reading progress ---------- */
.progress {
  position: fixed;
  inset-inline: 0;
  top: 0;
  height: 2px;
  z-index: 90;
  background: transparent;
}
.progress__bar {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--accent);
  transition: width .1s linear;
}

/* ---------- shared type ---------- */
.label {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--faint);
}
.label--accent { color: var(--accent); }
.label--onDark { color: var(--accent-on-night); }

.section__title {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.55rem, 2.9vw, 2.15rem);
  line-height: 1.14;
  letter-spacing: -.015em;
  text-wrap: balance;
  margin-top: 12px;
}

.section__note {
  font-size: 14px;
  color: var(--muted);
  max-width: 34ch;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 14.5px;
  font-weight: 500;
  text-align: center;
  transition: background-color .2s var(--ease), color .2s var(--ease),
              border-color .2s var(--ease), transform .2s var(--ease);
}
.btn--solid { background: var(--ink); color: var(--paper); }
.btn--solid:hover { background: var(--accent); }
.btn--line { border-color: var(--line-strong); color: var(--ink); }
.btn--line:hover { border-color: var(--ink); background: var(--surface); }
.btn--ghost { color: var(--muted); border-color: transparent; padding-inline: 10px; }
.btn--ghost:hover { color: var(--ink); }
.btn--sm { min-height: 44px; padding: 9px 14px; font-size: 13.5px; }
.btn:active { transform: translateY(1px); }

/* ---------- header ---------- */
.site-head {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(247, 246, 243, .88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease);
}
.site-head.is-scrolled { border-bottom-color: var(--line); }
.site-head__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
}

.brand { display: inline-flex; align-items: center; gap: 12px; min-height: 48px; text-decoration: none; }
.brand__mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 3px;
  background: var(--accent);
  color: #fff;
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: .04em;
  flex: none;
}
.brand__text { display: flex; flex-direction: column; line-height: 1.25; }
.brand__text strong { font-size: 15px; font-weight: 600; letter-spacing: -.005em; }
.brand__text span {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--faint);
  letter-spacing: .05em;
  text-transform: uppercase;
}

.site-nav { display: none; gap: 26px; }
.site-nav a {
  display: inline-flex;
  align-items: center;
  font-size: 14px;
  color: var(--muted);
  text-decoration: none;
  padding-block: 11px;
  border-bottom: 1px solid transparent;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.site-nav a:hover { color: var(--ink); border-bottom-color: var(--accent); }

.site-head__right { display: flex; align-items: center; gap: 10px; }
.clock {
  display: none;
  align-items: baseline;
  gap: 8px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink);
}
.clock__label { color: var(--faint); letter-spacing: .05em; text-transform: uppercase; font-size: 10.5px; }
.clock time { font-variant-numeric: tabular-nums; }

/* ---------- hero ---------- */
.hero {
  padding-block: clamp(48px, 7vw, 88px) clamp(40px, 5vw, 64px);
  border-bottom: 1px solid var(--line);
}
.hero__inner {
  display: grid;
  gap: clamp(36px, 5vw, 64px);
}
.hero__title {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(2.5rem, 8.2vw, 5rem);
  line-height: .98;
  letter-spacing: -.025em;
  margin-top: 14px;
}
.mask { display: block; overflow: hidden; }
.mask__i {
  display: block;
  transform: translateY(105%);
  transition: transform .85s var(--ease) var(--d, 0ms);
}
.hero.is-ready .mask__i { transform: translateY(0); }

.hero__role {
  margin-top: 18px;
  font-size: clamp(1rem, 2.1vw, 1.2rem);
  font-weight: 500;
  color: var(--accent-deep);
  letter-spacing: -.005em;
}
.hero__lead {
  margin-top: 14px;
  max-width: 52ch;
  font-size: clamp(1rem, 1.5vw, 1.08rem);
  color: var(--ink-soft);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }

.facts {
  margin-top: 34px;
  border-top: 1px solid var(--line);
}
.facts__row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px;
  padding-block: 12px;
  border-bottom: 1px solid var(--line);
}
.facts dt {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--faint);
}
.facts dd { font-size: 14.5px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 9px;
  border-radius: 3px;
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.4;
}
.chip--live {
  background: var(--accent-soft);
  color: var(--accent-deep);
  border: 1px solid rgba(169, 79, 28, .25);
}
.chip--live::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 1px;
  flex: none;
}

/* lens figure: starts grayscale, transitions to full color */
.hero__figure { width: 100%; max-width: 420px; }
.hero__stack {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: #E8E6E1;
}
.hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 12%;
}

/* The grey start state only exists when scripting is on: without it the
   picture would sit grey forever if the script never ran. */
.has-js .hero__img {
  filter: grayscale(1) contrast(1.06) brightness(1.03);
}

.hero__grid {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background-image: repeating-linear-gradient(
    to bottom,
    rgba(22, 23, 26, .07) 0 1px,
    transparent 1px 44px
  );
}

.hero__caption {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  justify-content: space-between;
  margin-top: 12px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--faint);
}

.hero__replay {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: rgba(169, 79, 28, .4);
  text-underline-offset: 3px;
  padding: 11px 0;
  min-height: 44px;
  transition: text-decoration-color .2s var(--ease), color .2s var(--ease);
}
.hero__replay:hover {
  color: var(--accent-deep);
  text-decoration-color: currentColor;
}

.hero__foot {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
  margin-top: clamp(36px, 5vw, 56px);
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--faint);
}
.hero__foot a {
  display: inline-flex;
  align-items: center;
  padding-block: 12px;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.hero__foot a:hover { border-bottom-color: var(--accent); }

/* ---------- generic section frame ---------- */
.section { padding-block: clamp(56px, 8vw, 104px); }
.section--rule { border-top: 1px solid var(--line); }
.section__grid { display: grid; gap: clamp(28px, 4vw, 56px); }
.section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 32px;
  margin-bottom: clamp(28px, 3.5vw, 48px);
}

.prose p {
  max-width: 62ch;
  font-size: clamp(1rem, 1.35vw, 1.06rem);
  color: var(--ink-soft);
}
.prose p + p { margin-top: 16px; }

.keyline {
  display: grid;
  gap: 0;
  margin-top: clamp(28px, 3.5vw, 44px);
  border-top: 1px solid var(--line);
}
.keyline > div {
  display: grid;
  gap: 3px;
  padding-block: 14px;
  border-bottom: 1px solid var(--line);
}
.keyline dt {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--faint);
}
.keyline dd { font-size: 14.5px; color: var(--ink); }

/* ---------- experience record ---------- */
.record { border-top: 1px solid var(--line); }
.record__item {
  display: grid;
  gap: 10px;
  padding-block: clamp(22px, 3vw, 34px);
  border-bottom: 1px solid var(--line);
}
.record__when { display: flex; flex-direction: column; gap: 2px; }
.record__dates {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--accent);
}
.record__place { font-family: var(--mono); font-size: 11.5px; color: var(--faint); }
.record__what h3 {
  font-size: clamp(1.1rem, 1.9vw, 1.3rem);
  line-height: 1.25;
  letter-spacing: -.01em;
}
.record__org { margin-top: 3px; font-size: 14.5px; color: var(--muted); }
.record__list { margin-top: 12px; display: grid; gap: 7px; }
.record__list li {
  position: relative;
  padding-left: 18px;
  font-size: 14.5px;
  color: var(--ink-soft);
}
.record__list li::before {
  content: "";
  position: absolute;
  left: 1px;
  top: .62em;
  width: 6px;
  height: 6px;
  background: var(--accent-soft);
  border: 1px solid var(--accent);
  border-radius: 1px;
}

/* ---------- projects ---------- */
.work { display: grid; gap: 16px; }
.work__card {
  height: 100%;
  padding: clamp(20px, 2.4vw, 30px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.work__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.work__index { font-family: var(--mono); font-size: 12px; color: var(--accent); }
.work__kind {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--faint);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 3px 7px;
}
.work__card h3 {
  font-size: clamp(1.12rem, 1.9vw, 1.32rem);
  line-height: 1.25;
  letter-spacing: -.012em;
}
.work__card p { margin-top: 10px; font-size: 14.5px; color: var(--ink-soft); max-width: 58ch; }
.work__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent);
  text-decoration: none;
}
.work__link:hover { text-decoration: underline; }
.work__split { display: grid; gap: 10px; }

.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.tags li {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 3px 7px;
}

/* ---------- skills matrix ---------- */
.matrix { display: grid; gap: clamp(24px, 3vw, 34px); }
.matrix__group h3 {
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -.005em;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--accent);
}
.matrix__group ul { margin-top: 12px; display: grid; gap: 6px; }
.matrix__group li {
  position: relative;
  padding-left: 15px;
  font-size: 14px;
  color: var(--ink-soft);
}
.matrix__group li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .66em;
  width: 5px;
  height: 5px;
  background: var(--accent);
  border-radius: 1px;
}

/* ---------- education ---------- */
.creds { display: grid; gap: 16px; }
.cred {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  padding: clamp(20px, 2.4vw, 28px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.cred__kind {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--accent);
}
.cred h3 { font-size: clamp(1.1rem, 1.8vw, 1.25rem); line-height: 1.25; letter-spacing: -.01em; margin-top: 6px; }
.cred__org { font-size: 14.5px; color: var(--muted); margin-top: 3px; }
.cred__when { font-family: var(--mono); font-size: 11.5px; color: var(--faint); margin-top: 2px; }
.cred .record__list { margin-top: 12px; }
.cred .btn { margin-top: 18px; }

/* ---------- dark contact + footer ---------- */
.night {
  background: var(--night);
  color: var(--on-night);
  border-top: 1px solid var(--line);
}
.night__inner {
  display: grid;
  gap: clamp(32px, 4vw, 56px);
  padding-block: clamp(64px, 9vw, 116px) clamp(40px, 5vw, 64px);
}
.night__title {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.65rem, 3.4vw, 2.45rem);
  line-height: 1.14;
  letter-spacing: -.018em;
  margin-top: 12px;
  max-width: 26ch;
  text-wrap: balance;
}
.night__text { margin-top: 14px; font-size: 15.5px; color: var(--night-muted); max-width: 46ch; }

.contact { margin-top: 30px; border-top: 1px solid var(--night-line); }
.contact li {
  display: grid;
  gap: 2px;
  padding-block: 13px;
  border-bottom: 1px solid var(--night-line);
  font-size: 15px;
}
.contact__key {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--night-muted);
}
.contact a {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding-block: 11px;
  color: var(--on-night);
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, .34);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  overflow-wrap: anywhere;
  transition: color .2s var(--ease), text-decoration-color .2s var(--ease);
}
.contact a:hover { color: var(--accent-on-night); text-decoration-color: currentColor; }

.cform {
  align-self: start;
  padding: clamp(22px, 2.6vw, 32px);
  background: rgba(255, 255, 255, .045);
  border: 1px solid var(--night-line);
  border-radius: var(--radius);
}
.cform__title { font-size: 1.16rem; letter-spacing: -.01em; }
.cform__note { margin-top: 8px; font-size: 13.5px; color: var(--night-muted); max-width: 40ch; }
.cform form, .cform .field { display: block; }
.field { display: block; margin-top: 16px; }
.field > span {
  display: block;
  margin-bottom: 6px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--night-muted);
}
.field input, .field textarea {
  width: 100%;
  min-height: 46px;
  padding: 11px 13px;
  font-family: var(--sans);
  font-size: 15px;
  color: var(--on-night);
  background: rgba(0, 0, 0, .28);
  border: 1px solid var(--night-line);
  border-radius: 3px;
  outline: none;
  transition: border-color .2s var(--ease), background-color .2s var(--ease);
}
.field textarea { resize: vertical; min-height: 120px; }
.field input::placeholder, .field textarea::placeholder { color: rgba(244, 243, 241, .38); }
.field input:focus, .field textarea:focus {
  border-color: var(--accent-on-night);
  background: rgba(0, 0, 0, .42);
}
.field input:user-invalid, .field textarea:user-invalid,
.field input.is-invalid, .field textarea.is-invalid { border-color: #E0857A; }

.cform__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.cform__actions .btn--solid { background: var(--accent); color: #fff; }
.cform__actions .btn--solid:hover { background: #C25E24; }
.cform__actions .btn--ghost { color: var(--on-night); border-color: var(--night-line); }
.cform__actions .btn--ghost:hover { color: var(--on-night); background: rgba(255, 255, 255, .08); }

.cform__status {
  margin-top: 14px;
  min-height: 1.4em;
  font-size: 13.5px;
  color: var(--accent-on-night);
}
.cform__status[data-state="error"] { color: #F0A79E; }

.foot { border-top: 1px solid var(--night-line); }
.foot__inner {
  display: grid;
  gap: 20px;
  padding-block: 28px 34px;
}
.foot__brand { display: flex; flex-direction: column; gap: 2px; }
.foot__brand strong { font-size: 15px; font-weight: 600; }
.foot__brand span { font-family: var(--mono); font-size: 10.5px; letter-spacing: .05em; text-transform: uppercase; color: var(--night-muted); }
.foot__nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.foot__nav a {
  font-size: 14px;
  color: var(--night-muted);
  text-decoration: none;
  transition: color .2s var(--ease);
}
.foot__nav a:hover { color: var(--on-night); }
.foot__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--night-muted);
}
.foot__meta a { color: var(--night-muted); text-decoration: none; border-bottom: 1px solid transparent; }
.foot__meta a:hover { color: var(--on-night); border-bottom-color: var(--accent-on-night); }

/* ---------- drawer ---------- */
.drawer { position: fixed; inset: 0; z-index: 120; }
.drawer[hidden] { display: none; }
.drawer__scrim {
  position: absolute;
  inset: 0;
  background: rgba(22, 23, 26, .55);
  opacity: 0;
  transition: opacity .3s var(--ease);
}
.drawer__panel {
  position: absolute;
  inset-block: 0;
  right: 0;
  width: min(380px, 90vw);
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 22px var(--gutter) 26px;
  background: var(--night);
  color: var(--on-night);
  transform: translateX(102%);
  transition: transform .38s var(--ease);
  overflow-y: auto;
}
.drawer.is-open .drawer__scrim { opacity: 1; }
.drawer.is-open .drawer__panel { transform: translateX(0); }
.drawer__head { display: flex; align-items: center; justify-content: space-between; }
.drawer__head .label { color: var(--night-muted); }
.drawer__head .btn--ghost { color: var(--on-night); border-color: var(--night-line); }
.drawer__nav { display: flex; flex-direction: column; }
.drawer__nav a {
  display: flex;
  align-items: baseline;
  gap: 14px;
  min-height: 44px;
  padding-block: 13px;
  border-top: 1px solid var(--night-line);
  font-size: 1.32rem;
  font-weight: 500;
  letter-spacing: -.01em;
  color: var(--on-night);
  text-decoration: none;
  transition: color .2s var(--ease), padding-left .25s var(--ease);
}
.drawer__nav a:last-child { border-bottom: 1px solid var(--night-line); }
.drawer__nav a span { font-family: var(--mono); font-size: 11px; color: var(--accent-on-night); }
.drawer__nav a:hover { color: var(--accent-on-night); padding-left: 6px; }
.drawer__foot {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-family: var(--mono);
  font-size: 12px;
}
.drawer__foot a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--night-muted);
  text-decoration: none;
  overflow-wrap: anywhere;
}
.drawer__foot a:hover { color: var(--on-night); }

/* ---------- reveal ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .65s var(--ease) var(--d, 0ms),
              transform .65s var(--ease) var(--d, 0ms);
}
[data-reveal].is-in { opacity: 1; transform: translateY(0); }

/* ============================================================
   Breakpoints
   ============================================================ */
@media (min-width: 600px) {
  .facts__row { grid-template-columns: 150px 1fr; align-items: baseline; gap: 14px; }
  .keyline { grid-template-columns: 1fr 1fr; }
  .keyline > div:nth-child(odd) { padding-right: 24px; border-right: 1px solid var(--line); }
  .keyline > div:nth-child(even) { padding-left: 24px; }
  .matrix { grid-template-columns: 1fr 1fr; }
  .contact li { grid-template-columns: 100px 1fr; align-items: baseline; gap: 14px; }
}

@media (min-width: 768px) {
  .site-nav { display: flex; }
  .clock { display: flex; }
  .btn--menu { display: none; }
  .work { grid-template-columns: 1fr 1fr; }
  .work__item--lead { grid-column: 1 / -1; }
  .work__item--wide { grid-column: 1 / -1; }
  .creds { grid-template-columns: 1fr 1fr; }
  .foot__inner { grid-template-columns: 1.2fr 1fr auto; align-items: start; }
  .drawer { display: none; }
}

@media (min-width: 1024px) {
  .hero__inner { grid-template-columns: 1.05fr .95fr; align-items: start; }
  .hero__figure { justify-self: end; }
  .section__grid { grid-template-columns: minmax(240px, 300px) 1fr; gap: clamp(40px, 5vw, 76px); }
  .section__aside--sticky { position: sticky; top: 100px; align-self: start; }
  .section__head { align-items: flex-end; }
  .record__item { grid-template-columns: 190px 1fr; gap: clamp(20px, 3vw, 48px); }
  .night__inner { grid-template-columns: 1fr 1fr; align-items: start; gap: clamp(40px, 5vw, 80px); }
  .work__item--wide .work__split {
    grid-template-columns: minmax(0, 22ch) 1fr auto;
    align-items: start;
    gap: 24px;
  }
  .work__item--wide .work__split h3 { grid-column: 1; }
  .work__item--wide .work__split .tags { grid-column: 3; margin-top: 2px; align-self: start; }
}

@media (min-width: 1440px) {
  :root { --shell: 1240px; }
}

/* ---------- reduced motion ----------
   Movement is removed. Colour and opacity fades stay: they carry information
   and do not trigger vestibular symptoms, so a blanket transition kill would
   only break the page silently. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .mask__i { transform: none; transition: none; }
  .progress__bar { transition: none; }
  .btn, .pill { transition: none; }
}
