/* ==========================================================
   Fahid Milhem: portfolio
   "Console" direction. Graphite ground, hairline grids, mono
   labels and one accent used as a fill. The terminal and the
   status line stay dark in both themes.
   ========================================================== */

:root {
  /* Dark theme (default) */
  --bg: #0b0b0e;
  --bg-2: #111116;
  --line: #24242b;        /* hairlines */
  --rule: #474752;        /* section rules, button borders */
  --text: #ebebf0;
  --text-2: #b9b9c4;      /* descriptions, secondary copy */
  --muted: #868694;       /* mono labels */
  --dot: rgba(255, 255, 255, 0.055);

  --accent: #a995ff;      /* purple: fills, and text on dark surfaces only */
  --on-accent: #0d0920;

  /* Always-dark surfaces */
  --term-bg: #060609;
  --term-line: #1f1f26;
  --term-text: #e1e1e9;
  --term-muted: #7e7e8d;
  --term-str: #d5ccff;    /* JSON strings and the prompt path */
  --term-glow: color-mix(in srgb, var(--accent) 45%, transparent);

  --font-sans: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --max: 1240px;
  --gutter: clamp(20px, 4vw, 48px);
  --status-h: 30px;

  color-scheme: dark;
}

:root[data-theme="light"] {
  --bg: #f2f2f5;
  --bg-2: #e9e9ee;
  --line: #d2d2da;
  --rule: #141418;
  --text: #131317;
  --text-2: #3c3c46;
  --muted: #5d5d6a;
  --dot: rgba(0, 0, 0, 0.085);
  --term-bg: #111116;
  --term-glow: rgba(19, 19, 30, 0.55);
  color-scheme: light;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
  scroll-padding-bottom: calc(var(--status-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding-bottom: var(--status-h);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background-color: var(--bg);
  background-image: radial-gradient(circle at 1px 1px, var(--dot) 1px, transparent 0);
  background-size: 24px 24px;
  -webkit-font-smoothing: antialiased;
  text-wrap: pretty;
}

h1, h2, h3, p, dl, dd, pre { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
::selection { background: var(--accent); color: var(--on-accent); }
:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
html:not(.js) .js-only { display: none !important; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

.mono {
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 60;
  padding: 6px 10px;
  background: var(--accent); color: var(--on-accent);
}
.skip:focus { top: 12px; }

/* ---------- Header ---------- */
.top {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 16px 0;
  border-bottom: 1px solid var(--rule);
}
.brand { font-family: var(--font-mono); font-size: 14px; font-weight: 500; letter-spacing: -0.01em; }
.brand span { color: var(--muted); }

.nav { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; }
.nav a { padding: 7px 11px; transition: background-color .12s, color .12s; }
.nav a:hover { background: var(--accent); color: var(--on-accent); }

.nav-toggle { display: none; }

/* ---------- Shared bits ---------- */
.tag {
  display: inline-block;
  padding: 5px 9px;
  background: var(--accent); color: var(--on-accent);
  font-weight: 500;
}
.cursor {
  display: inline-block;
  width: 0.5em; height: 0.74em;
  margin-left: 0.1em;
  background: var(--accent);
}
.lede {
  max-width: 46ch;
  font-size: clamp(18px, 1.5vw, 21px);
  line-height: 1.45;
  letter-spacing: -0.01em;
}

.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 42px; padding: 0 16px;
  border: 1px solid var(--rule);
  font-family: var(--font-mono); font-size: 12.5px; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.05em;
  white-space: nowrap;
  transition: background-color .12s, color .12s, border-color .12s;
}
.btn:hover { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.btn--primary { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.btn--primary:hover { background: var(--text); color: var(--bg); border-color: var(--text); }
.actions__links { display: flex; gap: 18px; margin-left: 10px; color: var(--muted); }
.actions__links a:hover { color: var(--text); text-decoration: underline; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips li {
  padding: 3px 8px;
  border: 1px solid var(--line);
  font-family: var(--font-mono); font-size: 11.5px; line-height: 1.6;
  color: var(--text-2);
}

.inline-link { border-bottom: 1px solid currentColor; transition: border-color .12s; }
.inline-link:hover { border-bottom-color: transparent; }

/* ---------- Hero ---------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  padding: clamp(44px, 6.5vw, 88px) 0 clamp(40px, 5vw, 64px);
}
.hero h1,
.phero h1 {
  margin: 22px 0 26px -0.04em;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: clamp(56px, 8.8vw, 126px);
  line-height: 0.9;
  letter-spacing: -0.07em;
}

/* Terminal */
.term {
  display: flex; flex-direction: column;
  min-width: 0;
  background: var(--term-bg);
  color: var(--term-text);
  border: 1px solid var(--term-line);
  border-radius: 10px;
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 13.5px;
  line-height: 1.75;
  box-shadow: 0 36px 72px -40px var(--term-glow);
  transition: border-color .12s;
}
.term:focus-within { border-color: var(--accent); }

/* Window bar */
.term__bar {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px;
  padding: 11px 14px;
  background: rgba(255, 255, 255, 0.035);
  border-bottom: 1px solid var(--term-line);
  color: var(--term-muted);
  font-size: 11.5px; letter-spacing: 0.02em;
}
.term__bar > :last-child { justify-self: end; }
.term__dots { display: flex; gap: 7px; }
.term__dots i { width: 10px; height: 10px; border-radius: 50%; background: #2f2f39; }
.term__dots i:first-child { background: var(--accent); }
.term__title b { font-weight: 500; color: var(--term-text); }

/* Output */
.term__body {
  height: 400px;
  padding: 16px 18px 8px;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #2f2f39 transparent;
}
.term__row { white-space: pre-wrap; overflow-wrap: anywhere; min-height: 1.75em; }
.term__json { font: inherit; white-space: pre; }
.term .k { color: var(--accent); }
.term .s,
.term .cwd { color: var(--term-str); }
.term .p,
.term .dim { color: var(--term-muted); }
.term a { color: var(--term-text); border-bottom: 1px solid var(--term-muted); }
.term a:hover { color: var(--accent); border-bottom-color: var(--accent); }
.term a:focus-visible { outline-color: var(--accent); }

/* Prompt: the "$" stays in the markup, and is drawn as a chevron */
.term .ps1 { font-size: 0; }
.term .ps1::before {
  content: "";
  display: inline-block;
  width: 7px; height: 7px;
  margin: 0 5px 1px 1px;
  border-top: 2px solid var(--accent);
  border-right: 2px solid var(--accent);
  transform: rotate(45deg);
}

/* Command line */
.term__form {
  display: flex; align-items: center; gap: 8px;
  padding: 11px 18px;
  border-top: 1px solid var(--term-line);
}
.term__form label { white-space: pre; }
.term__form input {
  flex: 1; min-width: 0;
  padding: 0; border: 0; outline: 0;
  background: none;
  color: inherit; font: inherit;
  caret-color: var(--accent);
}
.term__form input::placeholder { color: var(--term-muted); opacity: 1; }
.term__caret {
  display: none;
  width: 8px; height: 1.2em;
  background: var(--accent);
  animation: term-blink 1.1s steps(1) infinite;
}
.term__form:has(input:placeholder-shown:not(:focus)) .term__caret { display: block; }
@keyframes term-blink { 50% { opacity: 0; } }

/* Quick commands */
.term__keys {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
  padding: 10px 14px 12px;
  background: rgba(255, 255, 255, 0.02);
  border-top: 1px solid var(--term-line);
  font-size: 12px;
  color: var(--term-muted);
}
.term__keys span { margin: 0 4px; }
.term__keys button {
  padding: 3px 10px;
  border: 1px solid var(--term-line);
  border-radius: 4px;
  color: var(--term-text);
  transition: border-color .12s, color .12s, background-color .12s;
}
.term__keys button:hover { border-color: var(--accent); background: var(--accent); color: var(--on-accent); }
.term__keys button:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }

/* Spec strip (hairline cells) */
.strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.strip > div { background: var(--bg); padding: 16px 18px 18px; }
.strip dt { font-family: var(--font-mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.strip dd { margin-top: 6px; font-size: 15px; line-height: 1.4; }
.strip .sub { display: block; margin-top: 2px; font-family: var(--font-mono); font-size: 11.5px; color: var(--muted); }

.strip.strip--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.strip--figs > div { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 8px; }
.strip--figs dt { text-transform: none; letter-spacing: 0; font-family: var(--font-sans); font-size: 14px; line-height: 1.4; }
.strip--figs dd { margin: 0; font-family: var(--font-mono); font-size: clamp(28px, 3vw, 40px); font-weight: 500; line-height: 1; letter-spacing: -0.05em; }

/* ---------- Sections ---------- */
.sec { margin-top: clamp(84px, 10vw, 132px); }
.sec__head {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: clamp(26px, 3vw, 38px);
}
.sec__n { padding: 2px 7px; background: var(--accent); color: var(--on-accent); font-weight: 500; }
.sec__head h2 { font: inherit; font-weight: 500; letter-spacing: inherit; }
.sec__rule { flex: 1; height: 1px; background: var(--rule); }
.sec__file { color: var(--muted); text-transform: none; letter-spacing: 0; }

/* About */
.about { display: grid; grid-template-columns: minmax(220px, 4fr) minmax(0, 8fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
.portrait { margin: 0; border: 1px solid var(--line); background: var(--bg); }
.portrait img { display: block; width: 100%; height: auto; }
.about__body .panel { margin-top: 32px; }

/* Photos: justified rows, no cropping (each figure's width follows its aspect ratio) */
.shots { display: flex; flex-direction: column; gap: 12px; }
.shots__row { display: flex; gap: 12px; }
.shot { flex: var(--r) 1 0; min-width: 0; margin: 0; border: 1px solid var(--line); background: var(--bg); }
.shot img { display: block; width: 100%; height: auto; aspect-ratio: var(--r); object-fit: cover; }
.shot figcaption {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 9px 12px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono); font-size: 11.5px;
  color: var(--muted);
  white-space: nowrap;
}
.shot__t { min-width: 0; overflow: hidden; text-overflow: ellipsis; color: var(--text); }
.prose { max-width: 64ch; }
.prose p { font-size: clamp(17px, 1.35vw, 19px); line-height: 1.55; letter-spacing: -0.005em; }
.prose p + p { margin-top: 16px; }

.panel { border: 1px solid var(--line); background: var(--bg); }
.panel__bar {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 9px 16px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.04em;
  color: var(--muted);
}
.kv__row { display: grid; grid-template-columns: 116px minmax(0, 1fr); gap: 4px 18px; padding: 13px 16px; border-bottom: 1px solid var(--line); }
.kv__row:last-child { border-bottom: 0; }
.kv dt { padding-top: 3px; font-family: var(--font-mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.kv dd { font-size: 15px; overflow-wrap: anywhere; }
.kv__note { display: block; margin-top: 2px; font-size: 14px; color: var(--muted); }

/* Work cards */
.cards {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.card {
  grid-column: span 2;
  display: flex;
  min-height: 268px;
  padding: 22px 22px 24px;
  background: var(--bg);
  transition: background-color .12s, color .12s;
}
.card--wide { grid-column: span 6; min-height: 0; gap: 24px 56px; align-items: center; padding: 28px 28px 30px; }
.card__main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.card__meta { display: flex; justify-content: space-between; gap: 12px; font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.card__title {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  font-size: clamp(23px, 2.2vw, 30px); font-weight: 600; line-height: 1.12; letter-spacing: -0.035em;
}
.card--wide .card__title { font-size: clamp(36px, 4.6vw, 64px); letter-spacing: -0.05em; }
.card__arrow { flex: none; font-family: var(--font-mono); font-weight: 400; transition: transform .12s; }
.card__desc { max-width: 52ch; font-size: 15.5px; color: var(--text-2); }
.card .chips { margin-top: auto; padding-top: 6px; }
.tree {
  flex: none;
  font-family: var(--font-mono); font-size: 12.5px; line-height: 1.85;
  color: var(--text-2);
  white-space: pre;
}
.tree b { font-weight: 500; color: var(--text); }

.card__meta, .card__desc, .tree, .tree b, .card .chips li { transition: color .12s, border-color .12s; }
.card:hover { background: var(--accent); color: var(--on-accent); }
.card:hover .card__meta,
.card:hover .card__desc,
.card:hover .tree,
.card:hover .tree b,
.card:hover .chips li { color: inherit; }
.card:hover .chips li { border-color: currentColor; }
.card:hover .card__arrow { transform: translateX(5px); }
.card:focus-visible { outline-offset: -3px; }

/* Experience */
.xp { border-top: 1px solid var(--rule); }
.xp__item { border-bottom: 1px solid var(--line); }
.xp__item > summary {
  display: grid;
  grid-template-columns: 190px minmax(0, 1.15fr) minmax(0, 1fr) 22px;
  gap: 4px 28px;
  align-items: baseline;
  padding: 16px 12px;
  margin: 0 -12px;
  list-style: none;
  cursor: pointer;
  transition: background-color .12s, color .12s;
}
.xp__item > summary::-webkit-details-marker { display: none; }
.xp__item > summary:hover { background: var(--accent); color: var(--on-accent); }
.xp__item > summary:hover > * { color: inherit; }
.xp__period { font-family: var(--font-mono); font-size: 12.5px; color: var(--muted); }
.xp__role { font-weight: 600; letter-spacing: -0.01em; }
.xp__org { color: var(--text-2); }
.xp__sign { font-family: var(--font-mono); text-align: center; }
.xp__sign::before { content: "+"; }
.xp__item[open] .xp__sign::before { content: "−"; }
.xp__detail { padding: 4px 46px 26px calc(190px + 28px); }
.xp__detail > ul:first-child li {
  position: relative;
  max-width: 74ch;
  padding-left: 22px;
  font-size: 15px;
  color: var(--text-2);
}
.xp__detail > ul:first-child li + li { margin-top: 8px; }
.xp__detail > ul:first-child li::before { content: "▸"; position: absolute; left: 0; top: 0; color: var(--muted); font-size: 12px; line-height: 23px; }
.xp__detail strong { font-weight: 600; color: var(--text); }
.xp__detail .inline-link { color: var(--text); }
.xp__detail .chips { margin-top: 16px; }

/* Skills */
.skills {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.skill { background: var(--bg); padding: 20px 22px 24px; }
.skill h3 {
  display: flex; align-items: center; gap: 9px;
  margin-bottom: 14px;
  font-family: var(--font-mono); font-size: 12px; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.06em;
}
.skill h3::before { content: ""; width: 8px; height: 8px; background: var(--accent); }

/* ---------- Project pages ---------- */
.phero { padding: clamp(36px, 5vw, 64px) 0 clamp(40px, 5vw, 64px); }
.crumb { font-family: var(--font-mono); font-size: 13px; color: var(--muted); }
.crumb a { color: var(--text); }
.crumb a:hover { text-decoration: underline; }
.phero h1 { margin-top: 18px; margin-bottom: 34px; font-size: clamp(44px, 7.6vw, 112px); }
.phero__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.phero .lede { margin-top: 18px; }

.points {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.points li { background: var(--bg); padding: 22px 24px 26px; }
.points__n { font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.points h3 { margin-top: 10px; font-size: clamp(20px, 1.9vw, 25px); font-weight: 600; line-height: 1.2; letter-spacing: -0.03em; }
.points p { margin-top: 10px; font-size: 15.5px; color: var(--text-2); }

/* ---------- Contact band ---------- */
.band { margin-top: clamp(96px, 11vw, 152px); background: var(--accent); color: var(--on-accent); }
.band ::selection { background: var(--on-accent); color: var(--accent); }
.band :focus-visible { outline-color: var(--on-accent); }
.band__inner { max-width: var(--max); margin: 0 auto; padding: clamp(56px, 8vw, 104px) var(--gutter) 0; }
.band__prompt { margin-bottom: 26px; font-family: var(--font-mono); font-size: 13px; }
.band h2 {
  margin-left: -0.04em;
  max-width: 14ch;
  font-size: clamp(42px, 6.6vw, 100px);
  line-height: 0.95;
  font-weight: 600;
  letter-spacing: -0.055em;
}
.band__grid {
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: 28px 64px;
  align-items: end;
}
.band__text { max-width: 40ch; font-size: 19px; line-height: 1.45; }
.band__links { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.email {
  font-size: clamp(20px, 2.4vw, 30px);
  font-weight: 600;
  letter-spacing: -0.03em;
  border-bottom: 2px solid currentColor;
  padding-bottom: 2px;
  overflow-wrap: anywhere;
  transition: border-color .12s;
}
.email:hover { border-bottom-color: transparent; }
.band__social { display: flex; gap: 22px; flex-wrap: wrap; }
.band__social a:hover,
.band__foot a:hover { text-decoration: underline; }
.band__foot {
  margin-top: clamp(64px, 8vw, 96px);
  padding: 18px 0 20px;
  border-top: 1px solid currentColor;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}

/* ---------- Status line (tmux-style) ---------- */
.status {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  display: flex; align-items: stretch;
  height: var(--status-h);
  background: #070709;
  color: #c9c9d2;
  border-top: 1px solid #1f1f26;
  font-family: var(--font-mono); font-size: 11.5px;
  white-space: nowrap;
}
.status :focus-visible { outline-color: #fff; outline-offset: -2px; }
.status__session {
  display: flex; align-items: center;
  padding: 0 10px;
  background: var(--accent); color: var(--on-accent);
  font-weight: 600;
}
.status__wins { display: flex; align-items: stretch; min-width: 0; overflow: hidden; }
.status__wins a { display: flex; align-items: center; padding: 0 9px; color: #8d8d9b; }
.status__wins a:hover { color: #fff; background: #15151b; }
.status__wins a[aria-current] { color: var(--accent); }
.status__wins a[aria-current]::after { content: "*"; }
.status__right { display: flex; align-items: stretch; margin-left: auto; }
.status__right > * { display: flex; align-items: center; gap: 6px; padding: 0 10px; border-left: 1px solid #1f1f26; }
.status__theme:hover { background: #15151b; color: #fff; }
.status__pct { min-width: 46px; justify-content: center; }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .hero { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .phero__grid { grid-template-columns: minmax(0, 1fr); }
  .strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card { grid-column: span 3; }
  .card--wide { grid-column: span 6; }
  .skills { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .js .nav-toggle {
    display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
    width: 40px; height: 40px;
    border: 1px solid var(--rule);
  }
  .nav-toggle span { display: block; width: 16px; height: 1.5px; background: currentColor; transition: transform .12s; }
  .nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.25px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.25px) rotate(-45deg); }

  .js .nav { display: none; flex-basis: 100%; flex-direction: column; align-items: stretch; gap: 0; border-top: 1px solid var(--line); }
  .js .nav.is-open { display: flex; }
  .js .nav a { padding: 14px 4px; border-bottom: 1px solid var(--line); }

  .xp__item > summary { grid-template-columns: minmax(0, 1fr) 22px; }
  .xp__period, .xp__role, .xp__org { grid-column: 1; }
  .xp__sign { grid-column: 2; grid-row: 1; }
  .xp__detail { padding-left: 0; padding-right: 0; }

  .points { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 700px) {
  .card,
  .card--wide { grid-column: span 6; min-height: 0; }
  .card--wide { flex-direction: column; align-items: stretch; padding: 22px 22px 24px; }
  .tree { overflow-x: auto; }
  .skills,
  .strip.strip--3 { grid-template-columns: minmax(0, 1fr); }
  .term { font-size: 11.5px; }
  .term__form input { font-size: 16px; }
  .term__body { height: 300px; padding: 12px 12px 4px; }
  .term__form { padding: 9px 12px; }
  .term__keys { padding: 9px 10px 11px; }
  .term__json { white-space: pre-wrap; overflow-wrap: anywhere; }
  .kv__row { grid-template-columns: minmax(0, 1fr); }
  .about { grid-template-columns: minmax(0, 1fr); }
  .portrait { max-width: 320px; }
  .shots__row { flex-direction: column; }
  .shot { flex: none; }
  .shot figcaption { white-space: normal; }
  .actions__links { margin-left: 0; flex-basis: 100%; margin-top: 6px; }

  .status__wins a:not([aria-current]) { display: none; }
  .status__clock { display: none; }
}

@media (max-width: 520px) {
  .strip { grid-template-columns: minmax(0, 1fr); }
  .sec__file { display: none; }
}

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