/* ============================================================
   personal site — haoqi design language
   warm paper / near-black canvas · volt-lime accent · mono labels
   expanded uppercase display · dotted hover outlines · flat
   ============================================================ */
@font-face {
  font-family: "Space Grotesk";
  src: url("fonts/SpaceGrotesk.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("fonts/JetBrainsMono.ttf") format("truetype-variations");
  font-weight: 100 900;
  font-display: swap;
}

/* ------------------------------------------------------------
   theme tokens — haoqi light/dark via CSS variables
   ------------------------------------------------------------ */
:root {
  color-scheme: light;
  --label: 0, 0, 0;
  --label-d: 54, 54, 48;
  --background-deep: #fbfaf4;
  --background-elevated: #efede7;
  --label-1: rgba(var(--label), 1);
  --label-2: rgba(var(--label-d), 0.6);
  --label-3: rgba(var(--label-d), 0.32);
  --label-4: rgba(var(--label-d), 0.18);
  --line: rgba(var(--label-d), 0.1);
  --selection-bg: #c0fe04;
}

[data-theme="dark"] {
  color-scheme: dark;
  --label: 255, 255, 255;
  --label-d: 230, 232, 232;
  --background-deep: #0f1111;
  --background-elevated: #191b1b;
  --label-1: rgba(var(--label), 1);
  --label-2: rgba(var(--label-d), 0.6);
  --label-3: rgba(var(--label-d), 0.32);
  --label-4: rgba(var(--label-d), 0.16);
  --line: rgba(var(--label-d), 0.08);
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  font-family: "Space Grotesk", Helvetica, Arial, sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.625;
  color: var(--label-1);
  background-color: var(--background-deep);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background-color 250ms cubic-bezier(0.66, 0, 0.01, 1), color 250ms cubic-bezier(0.66, 0, 0.01, 1);
}

::selection { background-color: var(--selection-bg); color: #000000; }

:focus-visible { outline: 2px solid var(--selection-bg); outline-offset: 2px; }

/* inline links — underline warms from label-3 to label-1 */
a { color: var(--label-1); text-decoration: underline; text-underline-offset: 0.08em; text-decoration-color: var(--label-3); transition: text-decoration-color 150ms ease-out, color 150ms ease-out; }
a:hover { color: var(--label-1); text-decoration-color: var(--label-1); }

.wrap { max-width: 1280px; margin: 0 auto; padding: 0 56px; }

/* ------------------------------------------------------------ masthead
   haoqi frame: logo left, mono controls right                       */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background-color: var(--background-deep);
  border-bottom: 1px solid var(--line);
  transition: background-color 250ms cubic-bezier(0.66, 0, 0.01, 1);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  min-height: 64px;
  padding: 16px 56px;
}

.branding { display: flex; align-items: baseline; gap: 14px; white-space: nowrap; }
.site-title {
  font-family: "Space Grotesk", Helvetica, Arial, sans-serif;
  font-size: 20px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1;
  color: var(--label-1);
  text-decoration: none;
}
.site-title:hover { color: var(--label-1); text-decoration: none; }
.tagline {
  font-family: "JetBrains Mono", ui-monospace, Menlo, monospace;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  color: var(--label-2);
}

.nav { display: flex; flex-wrap: wrap; gap: 4px 8px; margin-left: 24px; }
.nav a {
  position: relative;
  font-family: "JetBrains Mono", ui-monospace, Menlo, monospace;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
  text-transform: uppercase;
  color: var(--label-2);
  text-decoration: none;
  padding: 8px;
}
.nav a::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 2px dotted transparent;
  transition: border-color 200ms ease;
  pointer-events: none;
}
.nav a:hover { color: var(--label-1); text-decoration: none; }
.nav a:hover::before { border-color: var(--label-1); }
.nav a.cur { color: var(--label-1); text-decoration: underline; text-decoration-color: var(--label-1); text-underline-offset: 0.2em; }

/* theme toggle — THEME[A] mono control */
.theme-toggle {
  position: relative;
  display: inline-block;
  font-family: "JetBrains Mono", ui-monospace, Menlo, monospace;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  color: var(--label-2);
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
}
.theme-toggle::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 2px dotted transparent;
  transition: border-color 200ms ease;
  pointer-events: none;
}
.theme-toggle:hover { color: var(--label-1); }
.theme-toggle:hover::before { border-color: var(--label-1); }

/* ------------------------------------------------------------ buttons
   no filled buttons — text links with dotted/underline affordances     */
.btn {
  display: inline-block;
  font-family: "JetBrains Mono", ui-monospace, Menlo, monospace;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
  text-transform: uppercase;
  padding: 10px 20px;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 150ms ease;
}
.btn-link {
  position: relative;
  background: none;
  border: none;
  color: var(--label-1);
  text-decoration: underline;
  text-underline-offset: 0.08em;
  text-decoration-color: var(--label-3);
}
.btn-link:hover { text-decoration-color: var(--label-1); }

/* -------------------------------------------------------------- type
   uppercase display, line-height 1 — the haoqi shout               */
h1, h2, h3, h4, h5 { margin: 0; color: var(--label-1); font-family: "Space Grotesk", Helvetica, Arial, sans-serif; font-weight: 700; text-transform: uppercase; line-height: 1; }

h1 { font-size: clamp(2rem, 5svw, 3.75rem); letter-spacing: 0.01em; }
h2 { font-size: clamp(1.6rem, 3svw, 2.5rem); }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.15rem; }
h5 { font-size: 1rem; }

/* mono-uppercase eyebrow — the whisper to the shout */
.eyebrow {
  display: block;
  font-family: "JetBrains Mono", ui-monospace, Menlo, monospace;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--label-2);
}

p { margin: 0 0 1.2em; }
ul, ol { padding-left: 1.5em; margin: 0 0 1.2em; }
li { margin-bottom: 0.3em; }
strong { font-weight: 700; color: var(--label-1); }

blockquote {
  margin: 1.5em 0;
  padding: 2px 0 2px 16px;
  border-left: 3px solid var(--selection-bg);
  color: var(--label-2);
}

hr { border: none; border-top: 1px solid var(--line); margin: 3em 0; }

.caption {
  font-family: "JetBrains Mono", ui-monospace, Menlo, monospace;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--label-3);
}

/* ------------------------------------------------------------ images */
img { max-width: 100%; height: auto; display: block; }
figure { margin: 1.8em 0; }
figure.aligncenter { text-align: center; }
figcaption {
  font-family: "JetBrains Mono", ui-monospace, Menlo, monospace;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--label-3);
  margin-top: 8px;
  text-align: center;
}
.entry-content figure { text-align: center; }
.entry-content figure img {
  display: block;
  margin: 0 auto;
  border: 1px solid var(--line);
}

/* -------------------------------------------------------------- code */
pre {
  background-color: var(--background-elevated);
  color: var(--label-1);
  font-family: "JetBrains Mono", ui-monospace, Menlo, monospace;
  font-size: 13px;
  line-height: 1.65;
  padding: 20px 24px;
  margin: 1.8em 0;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}
pre code { font-family: inherit; font-size: inherit; }
code { font-family: "JetBrains Mono", ui-monospace, Menlo, monospace; font-size: 0.92em; }
p code {
  background-color: var(--background-elevated);
  color: var(--label-1);
  padding: 1px 6px;
  border-radius: 4px;
  border: 1px solid var(--line);
}

/* -------------------------------------------------------------- hero */
.hero-band {
  padding: 96px 0 64px;
  position: relative;
  border-bottom: 1px solid var(--line);
}

.hero-inner { max-width: 880px; margin: 0 auto; text-align: center; display: flex; flex-direction: column; align-items: center; }

.hero-inner .eyebrow {
  display: inline-block;
  background-color: var(--selection-bg);
  color: #000000;
  padding: 4px 10px;
  margin-bottom: 24px;
}

.hero-display { font-size: clamp(2.5rem, 6svw, 5.5rem); color: var(--label-1); margin-bottom: 24px; }

.hero-sub {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.625;
  color: var(--label-2);
  max-width: 620px;
  margin: 0 auto 32px;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; align-items: center; }

ul.social {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: center;
}
ul.social li { margin: 0; }
ul.social a {
  font-family: "JetBrains Mono", ui-monospace, Menlo, monospace;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  color: var(--label-2);
  text-decoration: underline;
  text-decoration-color: var(--label-3);
}
ul.social a:hover { color: var(--label-1); text-decoration-color: var(--label-1); }

/* ---------------------------------------------------- homepage bands */
.home-sections { padding: 72px 0 0; }

/* photo + about me, side by side */
.about-section { margin: 0 auto 50px; }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 64px;
  align-items: stretch;
}
.about-photo { justify-self: end; align-self: start; position: relative; max-width: 420px; }
.about-photo figure { margin: 0; }
.about-photo img {
  width: 100%;
  height: auto;
  display: block;
}
.about-photo figcaption { transition: color 150ms ease-out; }
.about-photo:hover figcaption { color: var(--label-1); }
.about-content .eyebrow { margin-bottom: 20px; }
.about-content h2 { margin-bottom: 24px; }
.about-body p { color: var(--label-2); max-width: 68ch; }

/* --------------------------------------------------------- page body */
.page-head { padding: 64px 0 32px; }
.page-head .eyebrow { margin-bottom: 20px; }
.page-head h1 { margin-bottom: 0; padding-bottom: 24px; border-bottom: 1px solid var(--line); }

.page-body { max-width: 100%; }
.page-body > p { max-width: 68ch; color: var(--label-2); }
.page-body ul { list-style: none; padding-left: 0; }
.page-body ul li { padding-left: 16px; position: relative; color: var(--label-2); }
.page-body ul li::before { content: "\2013"; position: absolute; left: 0; color: var(--label-3); }

/* inner-page sections — wide editorial layout: mono tag rail + content */
.story-tile {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 40px 64px;
  padding: 48px 0;
  border-top: 1px solid var(--line);
}
.story-tile:first-child { border-top: none; padding-top: 8px; }
.story-tile .tile-tag {
  font-family: "JetBrains Mono", ui-monospace, Menlo, monospace;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--label-3);
}
.tile-content h2 { margin-bottom: 16px; font-size: 1.2rem; }
.tile-content h2 strong { font-weight: 700; color: var(--label-1); }
.tile-content h3 {
  margin: 24px 0 12px;
  font-size: 1.15rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--label-1);
}
.tile-content h3:first-child { margin-top: 0; }
.tile-content p { color: var(--label-2); max-width: 72ch; }

/* publication page — citation-scale type */
.page-pubs .tile-content h2 {
  font-size: 1.25rem;
  line-height: 1.2;
  margin-bottom: 14px;
}
.page-pubs .tile-content p {
  font-size: 14.5px;
  line-height: 1.7;
  margin-bottom: 1em;
  color: var(--label-2);
  max-width: 80ch;
}
.page-pubs ol.cv-pubs li { font-size: 14.5px; line-height: 1.7; }
.page-pubs figcaption { font-size: 11px; }

/* CV page */
.cv-row {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 24px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}
.cv-row:first-child { border-top: none; }
.cv-row:last-child { padding-bottom: 0; }
.cv-period {
  font-family: "JetBrains Mono", ui-monospace, Menlo, monospace;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.6;
  text-transform: uppercase;
  color: var(--label-3);
}
.cv-detail {
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-width: 72ch;
}
.cv-detail strong { font-weight: 700; color: var(--label-1); }
.cv-inst { font-size: 14px; color: var(--label-2); }
.cv-desc { font-size: 14px; line-height: 1.6; color: var(--label-2); }
ol.cv-pubs {
  list-style: none;
  counter-reset: pub;
  padding: 0;
  margin: 0 0 8px;
}
ol.cv-pubs li {
  counter-increment: pub;
  position: relative;
  padding: 6px 0 6px 32px;
  color: var(--label-2);
  font-size: 14px;
  line-height: 1.6;
}
ol.cv-pubs li::before {
  content: counter(pub);
  position: absolute;
  left: 0;
  top: 6px;
  font-family: "JetBrains Mono", ui-monospace, Menlo, monospace;
  font-size: 11px;
  font-weight: 600;
  color: var(--label-3);
}

/* team list — mono names on hairline rows */
ul.team-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
ul.team-list li {
  padding: 12px 0;
  border-top: 1px solid var(--line);
  font-family: "JetBrains Mono", ui-monospace, Menlo, monospace;
  font-size: 14px;
  font-weight: 500;
  color: var(--label-1);
}
ul.team-list li:first-child { border-top: none; }

/* engagement section — separate from the project tiles */
.engagement-section {
  margin-top: 48px;
  padding-top: 48px;
  border-top: 1px solid var(--line);
}
.engagement-head { margin-bottom: 24px; }
.engagement-head .eyebrow { margin-bottom: 12px; }
.engagement-head h2 { font-size: 2rem; }

/* [Talk] / [Poster] markers — volt-lime badges */
.tag-inline {
  display: inline-block;
  background-color: var(--selection-bg);
  color: #000000;
  font-family: "JetBrains Mono", ui-monospace, Menlo, monospace;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.4;
  text-transform: uppercase;
  padding: 1px 6px;
  margin: 0 2px;
  vertical-align: 1px;
}

/* publication gallery */
.fig-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  align-items: start;
  margin: 0 0 16px;
}
.fig-row figure { margin: 0; }
.fig-row img { border: 1px solid var(--line); }

/* publication gallery tile — photos pinned at the top */
.story-tile.tile-first .tile-content > figure.aligncenter {
  margin: 24px auto 0;
  max-width: 400px;
}
.story-tile.tile-first .tile-content > figure.aligncenter img {
  border: 1px solid var(--line);
}

/* --------------------------------------------------------- blog list
   haoqi square text tiles, mono meta + lime tag badges               */
.lede {
  font-family: "JetBrains Mono", ui-monospace, Menlo, monospace;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  color: var(--label-2);
  margin-bottom: 40px;
}

ul.work-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}

li.work { display: block; }

li.work:nth-child(3n+1) { grid-column: span 5; }
li.work:nth-child(3n+2) { grid-column: span 4; grid-column-start: 7; }
li.work:nth-child(3n)   { grid-column: span 4; grid-column-start: 5; }

.work-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  min-height: 300px;
  padding: 24px;
  text-decoration: none;
  border-top: 1px solid var(--line);
  border-left: 1px solid transparent;
  transition: border-color 200ms ease;
}
.work-tile:hover { text-decoration: none; border-left-color: var(--label-1); }

.work-tile .kicker {
  align-self: flex-start;
  background-color: var(--selection-bg);
  color: #000000;
  font-family: "JetBrains Mono", ui-monospace, Menlo, monospace;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  padding: 2px 6px;
  margin-bottom: 20px;
}
.work-tile h2 { font-size: clamp(1.2rem, 2svw, 1.6rem); margin: 0 0 12px; }
.work-tile h2 a { color: var(--label-1); text-decoration: underline; text-decoration-color: var(--label-3); text-underline-offset: 0.08em; }
.work-tile h2 a:hover { text-decoration-color: var(--label-1); }
.work-tile .deck { margin: 0; font-size: 14px; font-weight: 500; line-height: 1.6; color: var(--label-2); }
.work-tile .meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 20px;
  font-family: "JetBrains Mono", ui-monospace, Menlo, monospace;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  color: var(--label-3);
}
.work-tile .more { color: var(--label-1); }

/* --------------------------------------------------------- pagination */
.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 48px;
}
.pagination .page-nums { display: flex; gap: 4px; align-items: center; }
.pagination .page-nums span {
  font-family: "JetBrains Mono", ui-monospace, Menlo, monospace;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  color: var(--label-3);
  margin-right: 8px;
}
.pagination .page-nums a {
  font-family: "JetBrains Mono", ui-monospace, Menlo, monospace;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  color: var(--label-2);
  text-decoration: underline;
  text-decoration-color: var(--label-3);
  padding: 8px;
}
.pagination .page-nums a:hover { text-decoration-color: var(--label-1); }
.pagination .page-nums a.cur { color: var(--label-1); text-decoration-color: var(--label-1); }
.pagination a.prev, .pagination a.next {
  font-family: "JetBrains Mono", ui-monospace, Menlo, monospace;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  color: var(--label-2);
  text-decoration: underline;
  text-decoration-color: var(--label-3);
}
.pagination a.prev:hover, .pagination a.next:hover { text-decoration-color: var(--label-1); }

/* ------------------------------------------------------------- posts */
article.post { padding-top: 64px; }
.entry-header { padding-bottom: 32px; border-bottom: 1px solid var(--line); margin-bottom: 40px; }
.entry-header .eyebrow { margin-bottom: 16px; }
.entry-header h1 { margin-bottom: 20px; max-width: 100%; font-size: clamp(1.5rem, 3.5svw, 2.5rem); }

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 28px;
  font-family: "JetBrains Mono", ui-monospace, Menlo, monospace;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--label-3);
}
.post-meta span:first-child { font-weight: 600; color: var(--label-1); }
.post-meta span + span::before { content: "\00b7"; margin-right: 28px; color: var(--label-3); }

.entry-content { max-width: 920px; }
.entry-content p { color: var(--label-2); font-size: 17px; line-height: 1.75; }
.entry-content h2 { margin: 40px 0 16px; font-size: 1.6rem; }
.entry-content h3 { margin: 32px 0 12px; font-size: 1.25rem; }
.entry-content ul, .entry-content ol { color: var(--label-2); font-size: 17px; line-height: 1.75; }
.entry-content li { margin-bottom: 0.4em; }
.entry-content a { color: var(--label-1); text-decoration: underline; text-decoration-color: var(--label-3); text-underline-offset: 0.08em; }
.entry-content a:hover { text-decoration-color: var(--label-1); }
.entry-content figure { margin: 32px auto; }
.entry-content figure img {
  display: block;
  margin: 0 auto;
  border: 1px solid var(--frame);
  border-radius: 4px;
}
.entry-content pre { margin: 28px 0; border-radius: 8px; }
.entry-content hr { margin: 48px 0; }

.post-nav { margin-top: 48px; padding-top: 24px; padding-bottom: 80px; border-top: 1px solid var(--line); }

/* ------------------------------------------------------------ footer */
.site-footer { border-top: 1px solid var(--line); padding: 32px 0 24px; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.footer-brand .site-title { font-size: 20px; }
.footer-brand .tagline {
  display: block;
  margin-top: 8px;
  width: max-content;
  background-color: var(--selection-bg);
  color: #000000;
  padding: 2px 6px;
}
.footer-col { display: flex; flex-direction: column; gap: 8px; }
.footer-heading {
  font-family: "JetBrains Mono", ui-monospace, Menlo, monospace;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--label-3);
  margin-bottom: 8px;
}
.footer-col a { color: var(--label-2); font-size: 14px; font-weight: 500; text-decoration: underline; text-decoration-color: var(--label-3); }
.footer-col a:hover { color: var(--label-1); text-decoration-color: var(--label-1); }

/* ------------------------------------------------------- hero motion */
@keyframes slide-fade-in {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-band .wrap { animation: slide-fade-in 660ms cubic-bezier(0.66, 0, 0.01, 1) both; }

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

/* --------------------------------------------------------- responsive */
@media (max-width: 1023px) {
  ul.work-grid { grid-template-columns: 1fr; }
  li.work { grid-column: span 1 !important; grid-column-start: auto !important; }
}

@media (max-width: 767px) {
  .wrap { padding-inline: 20px; }
  .header-inner { flex-wrap: wrap; padding: 12px 20px; }
  .nav { order: 3; width: 100%; margin-left: 0; justify-content: center; }
  .hero-band { padding: 64px 0 48px; }
  .hero-display { font-size: clamp(2rem, 7.2svw, 3rem); }
  .page-head { padding-top: 48px; }
  .home-sections { padding-top: 56px; }
  .story-tile { grid-template-columns: 1fr; gap: 12px; padding: 32px 0; }
  .story-tile .tile-tag { margin-bottom: 0; }
  .cv-row { grid-template-columns: 1fr; gap: 4px; padding: 12px 0; }
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .about-photo { justify-self: center; align-self: auto; }
  .footer-grid { grid-template-columns: 1fr; gap: 40px; }
  .fig-row { grid-template-columns: 1fr 1fr; }
  .work-tile { min-height: 220px; }
}

@media (max-width: 479px) {
  .fig-row { grid-template-columns: 1fr; }
  .about-photo { max-width: 320px; }
}
