/* Layout: editorial single page. Stone paper ground, indigo ink, madder red accent,
   with an Ajrak block-print band (Sindh's textile) as the one signature flourish. */
:root {
  --bg: #f2f2ee;
  --surface: #fbfbf8;
  --tint: #e8e9e3;
  --ink: #1b2340;        /* Ajrak indigo */
  --text: #2c3144;
  --muted: #62677a;
  --line: #d3d5cd;
  --accent: #a3261f;     /* Ajrak madder red */
  --accent-soft: #f3e1dd;
  --on-accent: #ffffff;
  --deep: #1b2340;       /* SHADE section ground */
  --deep-text: #e9ebf3;
  --deep-muted: #aab0c6;

  --f-display: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --f-body: "Figtree", "Segoe UI", system-ui, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;

  --step-0: clamp(1rem, .96rem + .2vw, 1.075rem);
  --step-1: clamp(1.2rem, 1.1rem + .5vw, 1.45rem);
  --step-2: clamp(1.6rem, 1.3rem + 1.3vw, 2.4rem);
  --step-3: clamp(2.6rem, 1.8rem + 4vw, 5.4rem);
  --radius: 4px;
  --wrap: 1180px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #12151f; --surface: #191d2a; --tint: #161a26; --ink: #eef0f7; --text: #d4d7e2;
    --muted: #9298ab; --line: #2b3040; --accent: #e0574c; --accent-soft: #3a1f22; --on-accent: #ffffff;
    --deep: #0c0f18; --deep-text: #e9ebf3; --deep-muted: #9aa1b8; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #12151f; --surface: #191d2a; --tint: #161a26; --ink: #eef0f7; --text: #d4d7e2;
  --muted: #9298ab; --line: #2b3040; --accent: #e0574c; --accent-soft: #3a1f22; --on-accent: #ffffff;
  --deep: #0c0f18; --deep-text: #e9ebf3; --deep-muted: #9aa1b8; color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--f-body); font-size: var(--step-0); line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { color: var(--ink); line-height: 1.1; margin: 0; text-wrap: balance; }
h2 { font-family: var(--f-display); font-weight: 500; font-size: var(--step-2); letter-spacing: -.01em; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--bg); padding: 8px 14px; z-index: 100; }
.skip:focus { left: 16px; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: clamp(16px, 4vw, 40px); }
.eyebrow {
  font-family: var(--f-mono); font-size: .75rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 14px;
}

/* ---------- Ajrak band ---------- */
.ajrak {
  height: 22px;
  background-color: #1b2340;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='22' viewBox='0 0 44 22'%3E%3Crect width='44' height='22' fill='%231b2340'/%3E%3Crect x='0' y='0' width='44' height='3' fill='%23a3261f'/%3E%3Crect x='0' y='19' width='44' height='3' fill='%23a3261f'/%3E%3Cpath d='M11 5l6 6-6 6-6-6z' fill='%23a3261f'/%3E%3Ccircle cx='11' cy='11' r='1.8' fill='%23f2f2ee'/%3E%3Cpath d='M33 7l4 4-4 4-4-4z' fill='none' stroke='%23f2f2ee' stroke-width='1.2'/%3E%3Ccircle cx='22' cy='11' r='1' fill='%23f2f2ee'/%3E%3Ccircle cx='0' cy='11' r='1' fill='%23f2f2ee'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
}
.ajrak--thin { height: 12px; background-size: 24px 12px; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent; transition: border-color .3s;
}
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav__inner { max-width: var(--wrap); margin-inline: auto; padding: 14px clamp(16px, 4vw, 40px); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand__mark {
  width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%;
  background: var(--accent); color: var(--on-accent); font-family: var(--f-display); font-weight: 700; font-size: .95rem;
}
.brand__name { font-weight: 700; color: var(--ink); letter-spacing: .01em; }
.nav__menu { display: flex; align-items: center; gap: 4px; }
.nav__menu a { text-decoration: none; font-weight: 500; font-size: .95rem; padding: 8px 12px; border-radius: 99px; color: var(--muted); transition: color .2s, background .2s; }
.nav__menu a:hover, .nav__menu a.is-active { color: var(--ink); background: var(--tint); }
.nav__menu .nav__cta { background: var(--ink); color: var(--bg); margin-left: 6px; }
.nav__menu .nav__cta:hover { background: var(--accent); color: var(--on-accent); }
.nav__toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; position: relative; }
.nav__toggle span:not(.sr) { position: absolute; left: 11px; width: 22px; height: 2px; background: var(--ink); transition: transform .3s, opacity .3s; }
.nav__toggle span:nth-child(1) { top: 15px; } .nav__toggle span:nth-child(2) { top: 21px; } .nav__toggle span:nth-child(3) { top: 27px; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 13px 24px; border-radius: 99px;
  font: 600 .95rem var(--f-body); text-decoration: none; cursor: pointer; border: 1.5px solid transparent;
  transition: transform .2s, background .2s, color .2s, border-color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn--solid { background: var(--accent); color: var(--on-accent); }
.btn--solid:hover { background: var(--ink); color: var(--bg); }
.btn--line { border-color: var(--ink); color: var(--ink); }
.btn--line:hover { background: var(--ink); color: var(--bg); }
.btn--light { border-color: var(--deep-text); color: var(--deep-text); margin-top: 28px; }
.btn--light:hover { background: var(--deep-text); color: var(--deep); }

/* ---------- Hero ---------- */
.hero { padding-top: clamp(36px, 6vw, 80px); }
.hero__grid { display: grid; grid-template-columns: 1.25fr .9fr; gap: clamp(28px, 5vw, 72px); align-items: end; padding-bottom: clamp(40px, 6vw, 72px); }
.hero__text { min-width: 0; }
.hero__title { font-family: var(--f-display); font-weight: 500; font-size: var(--step-3); letter-spacing: -.02em; line-height: .98; }
.hero__title em { color: var(--accent); font-style: italic; }
.hero__lead { margin-top: 24px; max-width: 54ch; font-size: var(--step-1); line-height: 1.55; color: var(--text); }
.hero__lead strong { color: var(--ink); font-weight: 600; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.stats { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: clamp(20px, 4vw, 48px); margin: 44px 0 0; padding-top: 24px; border-top: 1px solid var(--line); }
.stats dt { font-family: var(--f-display); font-size: var(--step-2); color: var(--ink); font-variant-numeric: tabular-nums; line-height: 1; }
.stats dd { margin: 6px 0 0; font-size: .85rem; color: var(--muted); }
.hero__photo { margin: 0; position: relative; }
.hero__photo img { width: 100%; aspect-ratio: 5 / 7; object-fit: cover; border-radius: var(--radius); filter: saturate(.92); }
.hero__photo::before {
  content: ""; position: absolute; inset: 18px -18px -18px 18px; border: 1.5px solid var(--accent); border-radius: var(--radius); z-index: -1;
}
.hero__photo figcaption {
  position: absolute; left: -32px; bottom: 28px; max-width: 290px; background: var(--surface); padding: 18px 20px;
  border-radius: var(--radius); box-shadow: 0 18px 40px -18px rgba(20, 24, 45, .35);
}
.quote { display: block; font-family: var(--f-display); font-style: italic; font-size: 1.02rem; line-height: 1.4; color: var(--ink); }
.cite { display: block; margin-top: 8px; font-family: var(--f-mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }

/* ---------- Sections ---------- */
.section { padding-block: clamp(64px, 9vw, 120px); }
.section--tint { background: var(--tint); }
.section--ink { background: var(--deep); color: var(--deep-text); }
.section--ink h2, .section--ink .sub { color: #fff; }
.section--ink .eyebrow { color: #f08a80; }
.section__head { margin-bottom: clamp(32px, 5vw, 56px); max-width: 640px; }
.section__head--row { max-width: none; display: flex; justify-content: space-between; align-items: end; flex-wrap: wrap; gap: 20px; }
.sub { font: 700 .8rem var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink); margin: 0 0 18px; }
.sub small { font-weight: 400; color: var(--muted); letter-spacing: .04em; text-transform: none; margin-left: 6px; }
.big { font-size: var(--step-1); line-height: 1.5; color: var(--ink); }
.section--ink .big { color: #fff; }

/* About */
.about { display: grid; grid-template-columns: 1fr 1.5fr; gap: clamp(28px, 6vw, 80px); }
.about .section__head { margin: 0; }
.about__body { display: grid; gap: 20px; min-width: 0; }
.about__body > p:not(.big) { color: var(--muted); max-width: 64ch; }
.facts { list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); }
.facts li { padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--ink); font-weight: 500; padding-right: 12px; }
.facts span { display: block; font-family: var(--f-mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 400; margin-bottom: 2px; }

/* Experience */
.current {
  display: grid; grid-template-columns: .9fr 1.6fr; gap: 32px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: clamp(24px, 4vw, 40px); margin-bottom: 48px;
}
.current h3 { font-family: var(--f-display); font-weight: 500; font-size: var(--step-2); margin-top: 14px; }
.org { color: var(--muted); font-size: .92rem; margin-top: 6px; }
.pill { display: inline-flex; align-items: center; gap: 8px; font: 500 .72rem var(--f-mono); text-transform: uppercase; letter-spacing: .1em; padding: 5px 12px; border-radius: 99px; background: var(--accent-soft); color: var(--accent); }
.pill--live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); animation: pulse 2s infinite; }
@keyframes pulse { 50% { opacity: .3; } }
.duties { margin: 0; padding: 0; list-style: none; columns: 2 240px; column-gap: 32px; }
.duties li { break-inside: avoid; padding: 0 0 12px 22px; position: relative; font-size: .95rem; }
.duties li::before { content: ""; position: absolute; left: 0; top: .6em; width: 8px; height: 8px; background: var(--accent); transform: rotate(45deg); }

.timeline { list-style: none; margin: 0 0 64px; padding: 0; }
.timeline li { display: grid; grid-template-columns: 200px 1fr; gap: 24px; padding: 26px 0; border-top: 1px solid var(--line); }
.timeline li:last-child { border-bottom: 1px solid var(--line); }
.timeline time { font-family: var(--f-mono); font-size: .85rem; color: var(--accent); padding-top: 4px; font-variant-numeric: tabular-nums; }
.timeline h3 { font-size: var(--step-1); font-weight: 600; }
.timeline li > div { min-width: 0; }
.timeline li p:last-child { margin-top: 8px; color: var(--muted); max-width: 70ch; }

.two { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(28px, 6vw, 80px); }
.two > div > .sub:not(:first-child) { margin-top: 44px; }
.list { list-style: none; margin: 0; padding: 0; }
.list li { padding: 12px 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.list b { color: var(--ink); font-weight: 600; }
.list span { color: var(--muted); font-size: .88rem; }
.edu { list-style: none; margin: 0; padding: 0 0 0 20px; border-left: 2px solid var(--line); }
.edu li { position: relative; padding: 0 0 20px; display: grid; }
.edu li::before { content: ""; position: absolute; left: -27px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--bg); border: 2px solid var(--accent); }
.edu li:first-child::before { background: var(--accent); }
.edu time { font: 500 .78rem var(--f-mono); color: var(--accent); }
.edu b { color: var(--ink); }
.edu span { color: var(--muted); font-size: .9rem; }

/* Skills */
.skills { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 6vw, 80px); align-items: start; }
.tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.tags li { padding: 10px 18px; border: 1px solid var(--line); border-radius: 99px; font-weight: 500; color: var(--ink); background: var(--surface); transition: border-color .2s, color .2s; }
.tags li:hover { border-color: var(--accent); color: var(--accent); }
.tags--light li { background: transparent; border-color: rgba(233, 235, 243, .25); color: var(--deep-text); font-size: .9rem; padding: 8px 14px; }
.tags--light li:hover { border-color: #f08a80; color: #fff; }
.lang { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 3vw, 32px); }
.lang__legend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-size: .82rem; color: var(--muted); margin-bottom: 18px; }
.k { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: -6px; vertical-align: -1px; }
.k1, .bar--r i { background: var(--ink); } .k2, .bar--s i { background: var(--accent); } .k3, .bar--w i { background: var(--muted); }
.lang__row { display: grid; grid-template-columns: 80px 1fr; gap: 16px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.lang__row b { color: var(--ink); font-weight: 600; }
.native { justify-self: start; font: 500 .72rem var(--f-mono); text-transform: uppercase; letter-spacing: .1em; padding: 4px 10px; border-radius: 99px; background: var(--accent-soft); color: var(--accent); }
.bars { display: grid; gap: 5px; }
.bar { display: grid; grid-template-columns: repeat(5, 1fr); gap: 3px; }
.bar i { height: 6px; border-radius: 1px; transform-origin: left; transition: transform .5s ease; }
.bar i.off { background: var(--line); }

/* SHADE */
.shade { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(28px, 6vw, 72px); }
.shade__text { min-width: 0; }
.shade__text > p:not(.big) { margin: 18px 0 32px; color: var(--deep-muted); max-width: 62ch; }
.shade__side { display: grid; gap: 20px; align-content: start; min-width: 0; }
.shade__photo { margin: 0; }
.shade__photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.shade__photo figcaption { font: .75rem var(--f-mono); color: var(--deep-muted); margin-top: 8px; }
.donate { border: 1px solid rgba(233, 235, 243, .2); border-radius: var(--radius); padding: 22px; }
.donate__title { font-family: var(--f-display); font-size: 1.4rem; color: #fff; }
.donate > p:not(.donate__title) { color: var(--deep-muted); font-size: .92rem; margin-top: 4px; }
.donate dl { margin: 16px 0 0; display: grid; gap: 10px; }
.donate dt { font: .7rem var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--deep-muted); }
.donate dd { margin: 2px 0 0; color: #fff; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.donate code { font-family: var(--f-mono); font-size: .88rem; word-break: break-all; }
.copy { font: 500 .72rem var(--f-mono); text-transform: uppercase; letter-spacing: .08em; padding: 4px 10px; border-radius: 99px; border: 1px solid currentColor; background: transparent; color: inherit; cursor: pointer; opacity: .8; }
.copy:hover { opacity: 1; }
.copy.is-done { color: var(--accent); opacity: 1; }
.section--ink .copy.is-done { color: #f08a80; }

/* Moiz-ism */
.moizism { text-align: left; }
.moizism blockquote { margin: 0; font-family: var(--f-display); font-style: italic; font-weight: 500; font-size: clamp(1.9rem, 1.2rem + 3.2vw, 3.8rem); line-height: 1.12; color: var(--ink); max-width: 20ch; text-wrap: balance; }
.moizism blockquote.second { margin-top: 36px; margin-left: auto; font-size: var(--step-1); font-style: normal; font-family: var(--f-body); line-height: 1.55; color: var(--muted); max-width: 44ch; padding-left: 20px; border-left: 3px solid var(--accent); }

/* Gallery */
.filters { display: flex; flex-wrap: wrap; gap: 6px; }
.filters button { font: 500 .88rem var(--f-body); padding: 8px 16px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); cursor: pointer; }
.filters button.is-on { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; grid-auto-flow: dense; gap: 12px; }
.g { position: relative; padding: 0; border: 0; overflow: hidden; border-radius: var(--radius); cursor: zoom-in; background: var(--line); }
.g--wide { grid-column: span 2; } .g--tall { grid-row: span 2; }
.g img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.g:hover img { transform: scale(1.05); }
.g span {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 14px 12px; text-align: left;
  font: 500 .78rem var(--f-mono); color: #fff; background: linear-gradient(transparent, rgba(12, 15, 24, .75));
}
.g.is-hidden { display: none; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(10, 12, 20, .92); display: grid; place-items: center; padding: 60px 16px; }
.lightbox figure { margin: 0; max-width: min(1000px, 100%); }
.lightbox img { max-height: 76vh; margin-inline: auto; border-radius: var(--radius); }
.lightbox figcaption { color: #e9ebf3; font: .85rem var(--f-mono); text-align: center; margin-top: 12px; }
.lightbox button { position: absolute; background: rgba(255, 255, 255, .1); color: #fff; border: 0; width: 48px; height: 48px; border-radius: 50%; font-size: 1.8rem; line-height: 1; cursor: pointer; }
.lightbox button:hover { background: #a3261f; }
.lightbox__close { top: 16px; right: 16px; }
.lightbox__prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 16px; top: 50%; transform: translateY(-50%); }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(28px, 6vw, 80px); }
.contact__info > p { margin-top: 16px; color: var(--muted); max-width: 44ch; }
.channels { list-style: none; margin: 32px 0 0; padding: 0; }
.channels li { display: grid; grid-template-columns: 70px 1fr auto; gap: 12px; align-items: center; padding: 14px 0; border-top: 1px solid var(--line); }
.channels li:last-child { border-bottom: 1px solid var(--line); }
.channels span { font: .72rem var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.channels a, .channels b { color: var(--ink); font-weight: 600; text-decoration: none; word-break: break-all; }
.channels a:hover { color: var(--accent); }
.channels .copy { color: var(--muted); }
.form { display: grid; gap: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 4vw, 40px); align-content: start; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: grid; gap: 6px; font-size: .85rem; font-weight: 600; color: var(--ink); min-width: 0; }
.form input, .form textarea {
  font: 400 1rem var(--f-body); color: var(--text); background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 12px 14px; width: 100%; transition: border-color .2s;
}
.form textarea { resize: vertical; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--accent); }
.form .is-invalid { border-color: var(--accent); }
.form .btn { justify-self: start; }
.form__error { color: var(--accent); font-size: .9rem; }
.form__note { color: var(--ink); font-size: .9rem; background: var(--accent-soft); padding: 12px 14px; border-radius: var(--radius); }

/* Footer */
.footer { background: var(--deep); color: var(--deep-muted); }
.footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; padding-block: 32px; font-size: .9rem; }
.footer__name { font-family: var(--f-display); color: #fff; font-size: 1.25rem; }
.totop { color: var(--deep-text); text-decoration: none; }
.totop:hover { color: #f08a80; }

/* Reveal (content visible by default; JS adds a gentle rise) */
.js .reveal { animation: rise .7s ease both; animation-play-state: paused; }
.js .reveal.is-in { animation-play-state: running; }
@keyframes rise { from { transform: translateY(18px); } to { transform: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero__grid, .about, .current, .two, .skills, .shade, .contact { grid-template-columns: 1fr; }
  .hero__photo { max-width: 420px; }
  .hero__photo figcaption { left: 16px; right: 16px; bottom: 16px; max-width: none; }
  .hero__photo::before { inset: 14px -10px -10px 14px; }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
}
@media (max-width: 760px) {
  .nav__toggle { display: block; }
  .nav__menu {
    position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 16px 16px; display: none;
  }
  .nav__menu.is-open { display: flex; }
  .nav__menu a { padding: 12px 14px; }
  .nav__menu .nav__cta { margin: 8px 0 0; text-align: center; }
  .timeline li { grid-template-columns: 1fr; gap: 6px; }
  .facts { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .stats { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .stats dt { font-size: 1.6rem; }
  .form__row { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; grid-auto-rows: 220px; }
  .g--wide { grid-column: auto; } .g--tall { grid-row: auto; }
  .channels li { grid-template-columns: 1fr auto; }
  .channels span { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
