/* ============================================================
   Md Sujon Mia — portfolio
   Professional, animated, two-column hero with console.
   ============================================================ */

:root {
  --ink:      #08131c;
  --ink-2:    #0d1d2a;
  --ink-3:    #112535;
  --line:     rgba(233, 239, 244, .10);
  --line-2:   rgba(233, 239, 244, .18);
  --text:     #e9eff4;
  --body:     #c2d0dc;
  --muted:    #8ea2b2;
  --accent:   #e3a455;
  --accent-2: rgba(227, 164, 85, .14);
  --wrap:     1080px;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --mono: ui-monospace, SFMono-Regular, "Cascadia Mono", "Segoe UI Mono", Consolas, monospace;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--text); text-decoration: none; }

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

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 32px);
}

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--accent); color: #1a1204;
  padding: 10px 16px; z-index: 200; font-weight: 600;
}
.skip:focus { left: 12px; top: 12px; }

.progress {
  position: fixed; inset: 0 auto auto 0;
  height: 2px; width: 100%;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: 0 50%;
  z-index: 120;
}

/* ── header ──────────────────────────────────────────────── */
.bar {
  position: fixed; inset: 0 0 auto 0;
  z-index: 100;
  background: color-mix(in srgb, var(--ink) 72%, transparent);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, background .3s ease;
}
.bar.is-scrolled {
  border-bottom-color: var(--line);
  background: color-mix(in srgb, var(--ink) 88%, transparent);
}
.bar__in {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; height: 64px;
}
.monogram { display: flex; align-items: center; gap: 12px; }
.monogram__mark {
  font-family: var(--mono); font-size: 12px; letter-spacing: .08em;
  color: var(--accent);
  border: 1px solid var(--line-2);
  border-radius: 6px;
  padding: 5px 7px;
  line-height: 1;
}
.monogram__name { font-size: 14px; letter-spacing: .01em; color: var(--text); }

.nav { display: flex; align-items: center; gap: 26px; }
.nav a {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color .2s ease;
}
.nav a:hover, .nav a.is-active { color: var(--text); }
.nav__cta {
  color: var(--ink) !important;
  background: var(--accent);
  padding: 7px 14px;
  border-radius: 6px;
  font-weight: 600;
}
.nav__cta:hover { background: #f0b467; }

/* ── type ────────────────────────────────────────────────── */
.eyebrow {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 22px;
  display: flex; align-items: center; gap: 12px;
}
.eyebrow__num {
  color: var(--muted);
  padding-right: 12px;
  border-right: 1px solid var(--line-2);
}

.h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.85rem, 3.8vw, 2.9rem);
  line-height: 1.12;
  letter-spacing: -.015em;
  margin: 0 0 18px;
}
.h2--xl { font-size: clamp(2.4rem, 6vw, 4.4rem); line-height: 1.02; }

.section__lead {
  color: var(--body);
  max-width: none;
  margin: 0 0 48px;
}

code {
  font-family: var(--mono);
  font-size: .86em;
  background: rgba(227, 164, 85, .10);
  color: #f0c48a;
  padding: 2px 6px;
  border-radius: 4px;
}

/* Text for assistive technology only. The rotating role line is hidden from
   screen readers because the typewriter would announce every keystroke, so
   this carries its meaning instead. */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ── hero ────────────────────────────────────────────────── */
.hero {
  position: relative;
  padding: clamp(110px, 15vh, 172px) 0 clamp(56px, 7vh, 72px);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: -20% -10% auto auto;
  width: 70vw; height: 70vw; max-width: 900px; max-height: 900px;
  background: radial-gradient(circle at 50% 50%, rgba(227, 164, 85, .13), transparent 62%);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 96px 96px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 20%, transparent 75%);
  opacity: .5;
  pointer-events: none;
}
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(260px, 36vw, 480px);
  gap: clamp(28px, 5vw, 64px);
  align-items: stretch;
}
.hero__inner { position: relative; z-index: 2; }
.hero__canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  display: block;
  z-index: 0;
  opacity: .55;
  pointer-events: none;
}
.hero__photo { display: none; }
.hero__photo::after { display: none; }

.hero__name {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.4rem, 6vw, 5.2rem);
  line-height: 1.08;
  letter-spacing: -.03em;
  white-space: nowrap;
  margin: 0 0 20px;
}

.hero__lead {
  font-size: clamp(1.05rem, 1.9vw, 1.32rem);
  line-height: 1.6;
  color: var(--text);
  max-width: 40ch;
  margin: 0 0 18px;
}
/* typewriter role line — mono, accent, with a blinking caret */
.hero__role {
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.4;
  color: var(--accent);
  margin: 0 0 30px;
  min-height: 1.6em;
}
.hero__rotator { display: inline; }
.caret {
  display: inline-block;
  width: 7px;
  height: 1em;
  margin-left: 6px;
  vertical-align: -.14em;
  background: currentColor;
  animation: caret-blink 1.05s steps(2, start) infinite;
}
.hero__sub {
  color: var(--muted);
  max-width: none;
  margin: 0 0 36px;
  font-size: 16px;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 0; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono);
  font-size: 12px; letter-spacing: .1em; text-transform: uppercase;
  padding: 13px 22px;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  color: var(--text);
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}
.btn:hover { border-color: var(--muted); transform: translateY(-1px); }
.btn--accent {
  background: var(--accent); color: #1a1204; border-color: var(--accent); font-weight: 600;
}
.btn--accent:hover { background: #f0b467; border-color: #f0b467; }

/* ── stats ───────────────────────────────────────────────── */
.stats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  margin: clamp(40px, 6vw, 64px) 0 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  width: 100%;
}
.stats__item {
  padding: 22px 18px 22px 0;
  border-right: 1px solid var(--line);
  padding-left: 18px;
}
.stats__item:first-child { padding-left: 0; }
.stats__item:last-child { border-right: 0; }
.stats dt {
  font-family: var(--mono);
  font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.stats dd {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  line-height: 1;
  color: var(--text);
}

/* ── sections ────────────────────────────────────────────── */
.section {
  padding: clamp(72px, 10vw, 124px) 0;
  scroll-margin-top: 84px;
}
.section--tint {
  background: linear-gradient(180deg, var(--ink-2), var(--ink) 65%);
  border-block: 1px solid var(--line);
}

.grid-2 {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: clamp(32px, 6vw, 84px);
  align-items: start;
}
.prose p { color: var(--body); margin: 0 0 20px; }
.prose p:last-child { margin-bottom: 0; }
.prose p:first-child { font-size: 18px; color: var(--text); }

/* ── "currently" panel ───────────────────────────────────── */
.now {
  margin-top: clamp(32px, 5vw, 52px);
  border-top: 1px solid var(--line);
  padding-top: 22px;
}
.now__label {
  font-family: var(--mono);
  font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 16px;
  display: flex; align-items: center; gap: 8px;
}
.dot-pulse {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #6fbf73;
  box-shadow: 0 0 0 0 rgba(111, 191, 115, .55);
  animation: dot-pulse 1.8s ease-out infinite;
}
@keyframes dot-pulse {
  0% { box-shadow: 0 0 0 0 rgba(111, 191, 115, .55); }
  70% { box-shadow: 0 0 0 7px rgba(111, 191, 115, 0); }
  100% { box-shadow: 0 0 0 0 rgba(111, 191, 115, 0); }
}
.now__list { margin: 0; display: grid; gap: 12px; }
.now__list > div { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 14px; }
.now__list dt {
  font-family: var(--mono);
  font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted);
  padding-top: 3px;
}
.now__list dd { margin: 0; font-size: 14.5px; color: var(--text); line-height: 1.5; }

/* ── casework ────────────────────────────────────────────── */
.cases { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.case {
  position: relative;
  background: color-mix(in srgb, var(--ink-3) 70%, transparent);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: clamp(24px, 3vw, 34px);
  transition: border-color .25s ease, transform .25s ease;
}
.case:hover { border-color: var(--line-2); transform: translateY(-2px); }
.case__meta {
  display: flex; flex-wrap: wrap; gap: 8px;
  font-family: var(--mono);
  font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}
.case__meta span + span::before { content: "·"; margin-right: 8px; color: var(--muted); }
.case__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.4rem, 2.4vw, 1.75rem);
  margin: 0 0 6px;
  letter-spacing: -.01em;
}
.case__kicker { color: var(--muted); font-size: 15px; margin: 0 0 18px; }
.case p { color: var(--body); font-size: 15.5px; margin: 0 0 16px; }
.case__outcome {
  border-left: 2px solid var(--accent);
  padding-left: 14px;
  color: var(--text) !important;
  font-size: 14.5px !important;
  margin-bottom: 0 !important;
}

/* ── timeline ────────────────────────────────────────────── */
.timeline { list-style: none; margin: 56px 0 0; padding: 0; }
.tl {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: clamp(20px, 4vw, 48px);
  padding: 30px 0;
  border-top: 1px solid var(--line);
}
.tl:last-child { border-bottom: 1px solid var(--line); }
.tl__when {
  font-family: var(--mono);
  font-size: 12px; letter-spacing: .06em;
  color: var(--muted);
  display: flex; flex-direction: column; gap: 8px;
  padding-top: 4px;
}
.tl__now {
  color: var(--accent);
  font-size: 10px; letter-spacing: .16em; text-transform: uppercase;
  border: 1px solid var(--accent-2);
  background: var(--accent-2);
  border-radius: 4px;
  padding: 2px 7px;
  width: fit-content;
}
.tl__body h3 { font-size: 18px; font-weight: 600; margin: 0 0 4px; letter-spacing: -.01em; }
.tl__where {
  font-family: var(--mono);
  font-size: 11.5px; letter-spacing: .05em;
  color: var(--muted);
  margin: 0 0 14px;
}
.tl__body p { color: var(--body); font-size: 15.5px; margin: 0; max-width: none; }

/* ── project cards ───────────────────────────────────────── */
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.card {
  display: flex; flex-direction: column;
  background: color-mix(in srgb, var(--ink-3) 60%, transparent);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 28px;
  transition: border-color .25s ease, transform .25s ease, background .25s ease;
}
.card:hover { border-color: var(--accent); transform: translateY(-3px); background: var(--ink-3); }
.card__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.card__top h3 { font-size: 17px; margin: 0; font-weight: 600; letter-spacing: -.01em; }
.card__arrow { color: var(--muted); font-size: 18px; line-height: 1; transition: color .2s, transform .2s; }
.card:hover .card__arrow { color: var(--accent); transform: translate(2px, -2px); }
.card__stack {
  font-family: var(--mono);
  font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent);
  margin: 10px 0 16px;
}
.card p { color: var(--body); font-size: 15px; margin: 0 0 16px; }
.card__foot { margin-top: auto !important; color: var(--muted) !important; font-size: 13.5px !important; }

/* ── certificates ────────────────────────────────────────── */
.certs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.cert {
  position: relative;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--ink-2);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4 / 3;
  transition: border-color .25s ease, transform .25s ease;
}
.cert:hover { border-color: var(--accent); transform: translateY(-2px); }
.cert img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: top center;
  transition: transform .5s ease, opacity .3s ease;
  opacity: .92;
}
.cert:hover img { transform: scale(1.03); opacity: 1; }
/* Portrait certificate: cover would crop away roughly half of it, so this one
   is letterboxed instead and shown in full. */
.cert--contain img { object-fit: contain; background: var(--ink-2); }
.cert__cap {
  position: absolute; inset: auto 0 0 0;
  display: flex; flex-direction: column; gap: 2px;
  padding: 28px 12px 11px;
  background: linear-gradient(to top, rgba(6, 14, 21, .96) 30%, rgba(6, 14, 21, 0));
  text-align: left;
}
.cert__cap strong { font-size: 12.5px; font-weight: 600; line-height: 1.3; color: #fff; }
.cert__cap span {
  font-family: var(--mono); font-size: 10px; letter-spacing: .06em;
  color: var(--accent);
}
.certs__also {
  margin-top: 32px; color: var(--muted); font-size: 14.5px; max-width: none;
}
.certs__also strong { color: var(--text); font-weight: 600; }

/* ── console ─────────────────────────────────────────────── */
/* The console is pinned to its slot so its transcript never sets the row
   height: the terminal is exactly as tall as the text column beside it. */
.hero__console { position: relative; min-height: 260px; }
.console {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  background: color-mix(in srgb, var(--ink-3) 60%, transparent);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0;
  overflow: hidden;
  box-shadow: 0 28px 70px rgba(0, 0, 0, .45);
}
.console__bar {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 13px;
  border-bottom: 1px solid var(--line);
}
.console__bar i {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--line-2); display: block;
}
.console__bar i:first-child { background: #e0605a; opacity: .7; }
.console__bar i:nth-child(2) { background: var(--accent); opacity: .7; }
.console__bar i:nth-child(3) { background: #6fbf73; opacity: .7; }
.console__bar span {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 9.5px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted);
}
.console__body {
  padding: 16px 14px 18px;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.75;
  display: grid;
  gap: 9px;
  align-content: start;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  scrollbar-width: none;
}
.console__body::-webkit-scrollbar { display: none; }
.cline { color: var(--muted); white-space: pre-wrap; overflow-wrap: anywhere; }
.cline .prompt { color: var(--accent); }
.cline .cmdtext { color: var(--text); }
.cline .key { color: #7f93a4; }
.cline .val { color: var(--text); }
.cline .ok { color: #6fbf73; }
.console__cursor {
  display: inline-block;
  width: 7px; height: 13px;
  background: var(--accent);
  vertical-align: -2px;
  animation: caret-blink 1.05s steps(2, start) infinite;
}
/* Both `steps(2, start)` halves must resolve to a flat value, so each state
   is held across the whole half of the cycle — that yields a hard square
   blink instead of a soft fade through 0.5. */
@keyframes caret-blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

/* ── contact ─────────────────────────────────────────────── */
.section--contact { padding-bottom: clamp(80px, 11vw, 140px); }
.contact {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 20px;
  margin: 8px 0 40px;
  text-align: center;
}
.contact__mail {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 4vw, 2.6rem);
  letter-spacing: -.01em;
  border-bottom: 1px solid var(--line-2);
  padding-bottom: 6px;
  transition: border-color .25s ease, color .25s ease;
  word-break: break-word;
}
.contact__mail:hover { color: var(--accent); border-color: var(--accent); }
.copy {
  font-family: var(--mono);
  font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted);
  background: none;
  border: 1px solid var(--line-2);
  border-radius: 6px;
  padding: 8px 12px;
  cursor: pointer;
  transition: color .2s, border-color .2s;
}
.copy:hover { color: var(--text); border-color: var(--muted); }
.copy.is-done { color: var(--accent); border-color: var(--accent); }

.links {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 26px;
  list-style: none; margin: 0; padding: 0;
}
.links a {
  font-family: var(--mono);
  font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted);
  transition: color .2s;
}
.links a:hover { color: var(--accent); }

/* ── footer ──────────────────────────────────────────────── */
.foot { border-top: 1px solid var(--line); padding: 28px 0; }
.foot__in {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-family: var(--mono); font-size: 11px; letter-spacing: .08em;
  color: var(--muted);
}
.foot p { margin: 0; }

/* ── lightbox ────────────────────────────────────────────── */
.lb {
  position: fixed; inset: 0; z-index: 150;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) 56px;
  align-items: center;
  gap: 8px;
  padding: 24px;
  background: rgba(4, 10, 15, .94);
  backdrop-filter: blur(6px);
}
.lb[hidden] { display: none; }
.lb__fig { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.lb__fig img {
  max-width: 100%; max-height: 80vh;
  border-radius: 8px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .6);
  background: #fff;
}
.lb__fig figcaption {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  text-align: center;
}
.lb__fig strong { font-size: 15px; }
.lb__fig span {
  font-family: var(--mono); font-size: 11px; letter-spacing: .08em;
  color: var(--accent);
}
.lb__close {
  position: absolute; top: 18px; right: 18px;
  width: 40px; height: 40px;
  background: none; border: 1px solid var(--line-2); border-radius: 8px;
  color: var(--text); font-size: 16px; cursor: pointer;
}
.lb__close:hover { border-color: var(--accent); color: var(--accent); }
.lb__nav {
  background: none; border: 1px solid var(--line-2); border-radius: 8px;
  color: var(--text); font-size: 22px; line-height: 1;
  height: 56px; cursor: pointer;
}
.lb__nav:hover { border-color: var(--accent); color: var(--accent); }

/* ── reveal ──────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .7s cubic-bezier(.2, .7, .2, 1), transform .7s cubic-bezier(.2, .7, .2, 1);
  transition-delay: var(--d, 0s);
  will-change: opacity, transform;
}
.reveal.in { opacity: 1; transform: none; }

/* ── cursor glow ─────────────────────────────────────────── */
.glow {
  position: fixed;
  width: 420px; height: 420px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(circle, rgba(227, 164, 85, .07), transparent 65%);
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity .4s ease;
}
.glow.is-on { opacity: 1; }

/* ── scroll-hint ─────────────────────────────────────────── */
.scroll-hint {
  position: absolute;
  left: 50%; bottom: 22px;
  transform: translateX(-50%);
  width: 22px; height: 34px;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  z-index: 2;
}
.scroll-hint span {
  display: block;
  width: 3px; height: 7px;
  background: var(--accent);
  border-radius: 2px;
  margin: 6px auto 0;
  animation: scroll-drop 1.6s ease-in-out infinite;
}
@keyframes scroll-drop {
  0% { opacity: 0; transform: translateY(0); }
  30% { opacity: 1; }
  100% { opacity: 0; transform: translateY(10px); }
}

/* ── stats inline count ──────────────────────────────────── */
.count { font-variant-numeric: tabular-nums; }

/* ── responsive ──────────────────────────────────────────── */
/* Below 900px the two-column hero starves the content column — the name and
   the rotating role line start wrapping there. Stack instead, and let the
   console take the full width rather than a 620px-tall sliver. */
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .hero__console { min-height: 240px; }
  .console__body { min-height: 0; }
}

@media (max-width: 980px) {
  .grid-2 { grid-template-columns: 1fr; gap: 32px; }
  .cards { grid-template-columns: 1fr 1fr; }
  .certs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats { grid-template-columns: repeat(3, 1fr); }
  .stats__item:nth-child(3) { border-right: 0; }
  .stats__item:nth-child(n+4) { border-top: 1px solid var(--line); }
  .nav { gap: 18px; }
  .nav a { font-size: 10.5px; letter-spacing: .1em; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .nav { display: none; }
  .bar__in { height: 58px; }
  .cases { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
  .certs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats__item:nth-child(2n) { border-right: 0; }
  .stats__item:nth-child(3) { border-right: 1px solid var(--line); }
  .tl { grid-template-columns: 1fr; gap: 12px; }
  .tl__when { flex-direction: row; align-items: center; }
  .hero { padding-top: 110px; }
  .lb { grid-template-columns: 1fr; padding: 14px; }
  .lb__nav { display: none; }
  .lb__fig img { max-height: 74vh; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .card:hover, .case:hover, .cert:hover, .btn:hover { transform: none; }
  .cert:hover img { transform: none; }
  .dot-pulse { animation: none; opacity: 1; }
  .caret, .console__cursor { animation: none; opacity: 1; }
  .hero__rotator { transition: none; }
  /* the transcript is printed in full, so it doesn't need reserved height */
  .console__body { min-height: 0; }
}

/* print: keep it readable if anyone prints the page */
@media print {
  .bar, .progress, .lb, .copy, .hero__actions { display: none !important; }
  body { background: #fff; color: #111; }
  .reveal { opacity: 1; transform: none; }
}