/* ─────────────────────────────────────────────────────────────
   Cameron Bubyn — portfolio
   White and airy (serif headings, mono body, squircle frames)
   with a drafting-paper accent layer: dot grid, one green,
   single-weight stroke glyphs that draw themselves.
   ───────────────────────────────────────────────────────────── */

:root {
  --bg: #ffffff;
  --fg: rgba(0, 0, 0, 0.87);
  --fg-solid: #212121;
  --fg-60: rgba(0, 0, 0, 0.6);
  --fg-38: rgba(0, 0, 0, 0.38);
  --fg-28: rgba(0, 0, 0, 0.28);
  --line: rgba(0, 0, 0, 0.17);
  --line-soft: rgba(0, 0, 0, 0.08);
  --tile: rgba(0, 0, 0, 0.04);
  --dot: rgba(0, 0, 0, 0.11);
  --store-bg: #f7f7f7;
  --accent: #17a35c;
  --accent-ink: #0e7a44;
  --accent-soft: rgba(23, 163, 92, 0.12);

  --serif: "Crimson Pro", Georgia, "Times New Roman", serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --nav-duration: 0.35s;
  --ease: cubic-bezier(0.215, 0.61, 0.355, 1);
  --section-gap: clamp(4rem, 6vw, 6rem);
  --pad-x: clamp(1.25rem, 7vw, 7em);
  --max: 1350px;
  --radius: 24px;
  --radius-inner: 15px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: hsl(228, 7%, 14%);
    --fg: rgba(255, 255, 255, 0.92);
    --fg-solid: #f2f2f2;
    --fg-60: rgba(255, 255, 255, 0.65);
    --fg-38: rgba(255, 255, 255, 0.42);
    --fg-28: rgba(255, 255, 255, 0.3);
    --line: rgba(255, 255, 255, 0.17);
    --line-soft: rgba(255, 255, 255, 0.08);
    --tile: rgba(255, 255, 255, 0.04);
    --dot: rgba(255, 255, 255, 0.1);
    --accent: #2fd37e;
    --accent-ink: #5ee39c;
    --accent-soft: rgba(47, 211, 126, 0.14);
  }
}
:root[data-theme="dark"] {
  --bg: hsl(228, 7%, 14%);
  --fg: rgba(255, 255, 255, 0.92);
  --fg-solid: #f2f2f2;
  --fg-60: rgba(255, 255, 255, 0.65);
  --fg-38: rgba(255, 255, 255, 0.42);
  --fg-28: rgba(255, 255, 255, 0.3);
  --line: rgba(255, 255, 255, 0.17);
  --line-soft: rgba(255, 255, 255, 0.08);
  --tile: rgba(255, 255, 255, 0.04);
  --dot: rgba(255, 255, 255, 0.1);
  --accent: #2fd37e;
  --accent-ink: #5ee39c;
  --accent-soft: rgba(47, 211, 126, 0.14);
}

/* ── Base ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--mono);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  /* drafting-paper dot grid */
  background-image: radial-gradient(var(--dot) 1px, transparent 1.2px);
  background-size: 24px 24px;
  background-position: 12px 12px;
}
body.nav-open { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
input { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 4px; }

h1, h2 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.005em; }
h2 { font-size: clamp(1.9rem, 2.6vw, 2.35rem); line-height: 1.1; }

.skip { position: absolute; left: -999px; top: 8px; padding: 8px 12px; background: var(--fg-solid); color: var(--bg); z-index: 100; }
.skip:focus { left: 8px; }

/* every 24×24 icon shares one stroke weight */
svg[viewBox="0 0 24 24"] { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.socials svg { stroke: none; fill: currentColor; }
.socials svg.stroke { fill: none; stroke: currentColor; stroke-width: 1.8; }

/* ── Header ────────────────────────────────────────────────── */
.header {
  position: sticky; top: 0; z-index: 5;
  padding: 2.4em var(--pad-x) 0;
  pointer-events: none;
}
.header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  background: color-mix(in srgb, var(--bg) 55%, transparent);
  -webkit-mask-image: linear-gradient(#000 35%, transparent);
  mask-image: linear-gradient(#000 35%, transparent);
}
.header-inner { max-width: var(--max); margin: 0 auto; display: flex; align-items: flex-start; justify-content: space-between; }
.logo { display: block; width: 92px; height: 92px; pointer-events: auto; color: var(--fg-solid); transition: transform .3s var(--ease); }
.logo:hover { transform: rotate(-4deg); }
.logo svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.logo .dot { fill: currentColor; stroke: none; }
.header-actions { display: flex; align-items: center; gap: 1.2rem; padding-top: 1.35rem; pointer-events: auto; }
.icon-btn { width: 28px; height: 28px; display: grid; place-items: center; color: var(--fg); opacity: .85; transition: opacity .2s, color .3s; }
.icon-btn:hover { opacity: 1; }
.icon-btn .sun { display: none; }
:root[data-theme="dark"] .icon-btn .moon { display: none; }
:root[data-theme="dark"] .icon-btn .sun { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .icon-btn .moon { display: none; }
  :root:not([data-theme="light"]) .icon-btn .sun { display: block; }
}
.menu-btn .close { display: none; }
body.nav-open .menu-btn .menu { display: none; }
body.nav-open .menu-btn .close { display: block; }
body.nav-open .icon-btn { color: var(--bg); }
body.nav-open #themeToggle { opacity: 0; pointer-events: none; }
body.nav-open .header::before { display: none; }

/* ── Full-screen menu ──────────────────────────────────────── */
.main-navigation {
  position: fixed; inset: 0; z-index: 3;
  display: flex; align-items: center;
  background: var(--fg-solid); color: var(--bg);
  transform: translateX(-100%);
  transition: transform var(--nav-duration) var(--ease);
}
body.nav-open .main-navigation { transform: none; }
.main-navigation ul { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--pad-x); font-size: clamp(2.6rem, 9vmin, 6.5rem); }
.main-navigation li { overflow: hidden; margin: -0.12em 0; }
.main-navigation a {
  display: inline-block; font-family: var(--serif); line-height: 1.2; text-decoration: none;
  transform: translateY(110%); transition: transform .5s var(--ease), color .2s;
}
body.nav-open .main-navigation a { transform: none; }
body.nav-open .main-navigation li:nth-child(2) a { transition-delay: .05s; }
body.nav-open .main-navigation li:nth-child(3) a { transition-delay: .1s; }
body.nav-open .main-navigation li:nth-child(4) a { transition-delay: .15s; }
body.nav-open .main-navigation li:nth-child(5) a { transition-delay: .2s; }
.main-navigation a:hover { font-style: italic; color: var(--accent); }
.navnum { font-size: .35em; font-weight: 300; font-style: italic; vertical-align: .55em; margin-right: .35em; font-family: var(--mono); color: var(--accent); }

/* ── Page layout ───────────────────────────────────────────── */
.content-container {
  display: flex; flex-direction: column; gap: var(--section-gap);
  width: 100%; max-width: var(--max); margin: 0 auto;
  padding: 4.5em var(--pad-x) 4rem;
}
section { opacity: 0; transform: translateY(10px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
section.visible { opacity: 1; transform: none; }
section[hidden] { display: none; }

.title-row { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.row-arrow { color: var(--fg-38); display: inline-flex; transition: color .25s, transform .3s var(--ease); }
.row-arrow:hover { color: var(--accent-ink); transform: translateX(4px); }

/* ── Intro ─────────────────────────────────────────────────── */
.intro-section {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: clamp(2rem, 5vw, 5rem); align-items: center; padding-top: 1rem;
}
h1 { font-size: clamp(2rem, 3.6vw, 2.9rem); line-height: 1.15; }
.type { font-style: italic; color: var(--accent-ink); white-space: nowrap; }
.caret { font-style: normal; font-weight: 300; color: var(--fg-38); animation: blink 1s steps(2, start) infinite; margin-left: .04em; }
@keyframes blink { to { visibility: hidden; } }
.intro-sub { margin-top: 1rem; font-size: 1.05rem; line-height: 1.4; }

.intro-art { margin: 0; color: var(--fg); max-width: 520px; justify-self: end; width: 100%; }
.intro-art svg { width: 100%; height: auto; }
.intro-art .draw * { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.1s var(--ease) forwards; animation-delay: var(--d, 0s); }
.intro-art .draw.crosshair * { stroke: var(--accent); }
.art-labels text { fill: var(--fg-38); stroke: none; font-family: var(--mono); font-size: 11px; letter-spacing: .08em; opacity: 0; animation: fade .6s ease forwards; animation-delay: var(--d, 0s); }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade { to { opacity: 1; } }

/* ── Stats ─────────────────────────────────────────────────── */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft);
  margin-top: calc(var(--section-gap) * -.45);
}
.stat { padding: 1.1rem 0 1.1rem 1.4rem; border-left: 1px solid var(--line-soft); display: flex; flex-direction: column; gap: .15rem; }
.stat:first-child { border-left: 0; padding-left: 0; }
.num { font-family: var(--serif); font-size: clamp(1.9rem, 2.8vw, 2.5rem); line-height: 1; font-variant-numeric: tabular-nums; }
.lbl { font-size: .75rem; color: var(--fg-38); letter-spacing: .04em; }

/* ── Featured bento ────────────────────────────────────────── */
.pill {
  display: inline-block; font-family: var(--serif); font-size: 1.15rem; color: var(--fg-60);
  border: 1px solid var(--line); border-radius: 999px; padding: .3em 1em; margin-bottom: 1.5rem;
  background: var(--bg);
}
.bento { display: grid; gap: 1.25rem; grid-template-columns: repeat(12, 1fr); grid-auto-rows: 120px; }
.frame {
  display: block; position: relative; overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--radius); padding: 10px;
  background: var(--bg);
  transition: transform .4s var(--ease), border-color .25s;
}
.frame img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: var(--radius-inner); background: var(--tile); }
.frame:hover { transform: translateY(-3px); border-color: var(--accent); }
.frame .cap {
  position: absolute; left: 20px; bottom: 20px; padding: .25em .7em;
  background: var(--bg); color: var(--fg); border: 1px solid var(--line); border-radius: 999px;
  font-size: .78rem; opacity: 0; transform: translateY(6px); transition: opacity .25s, transform .3s var(--ease);
}
.frame:hover .cap { opacity: 1; transform: none; }
.frame.arch { border-radius: 200px 200px var(--radius) var(--radius); }
.frame.arch img { border-radius: 190px 190px var(--radius-inner) var(--radius-inner); }

.f-esspn     { grid-column: 1 / 6;  grid-row: 1 / 4; }
.f-tryline   { grid-column: 6 / 9;  grid-row: 1 / 6; }
.f-arch      { grid-column: 9 / 13; grid-row: 1 / 5; }
.f-satin     { grid-column: 1 / 6;  grid-row: 4 / 7; }
.f-boss      { grid-column: 9 / 13; grid-row: 5 / 7; }
.f-step      { grid-column: 1 / 9;  grid-row: 7 / 9; }
.more-work   { grid-column: 9 / 13; grid-row: 7 / 9; }

.more-work { display: grid; place-items: center; text-decoration: none; color: var(--fg); }
.more-work svg { width: 150px; height: 150px; animation: spin 18s linear infinite; transition: transform .3s; }
.more-work:hover svg { animation-play-state: paused; transform: scale(.96); }
.more-work:hover text { fill: var(--accent-ink); }
.more-work text { font-family: var(--mono); font-size: 11.5px; letter-spacing: .08em; fill: currentColor; transition: fill .2s; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── About ─────────────────────────────────────────────────── */
.about h2 { margin-bottom: 1.25rem; }
.about-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.about-cols p { font-size: 1rem; line-height: 1.5; text-align: justify; }
.about-cols a { color: var(--fg-60); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; transition: color .2s; }
.about-cols a:hover { color: var(--accent-ink); }

/* ── Projects: toolbar ─────────────────────────────────────── */
.projects .title-row { margin-bottom: 1.1rem; }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: .7rem 1rem; margin-bottom: 1.75rem; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip {
  font-size: .78rem; padding: .42em .95em; border: 1px solid var(--line); border-radius: 999px;
  color: var(--fg-60); background: var(--bg); transition: all .18s;
}
.chip b { font-weight: 400; opacity: .55; margin-left: .45em; }
.chip:hover { border-color: var(--fg-60); color: var(--fg); }
.chip[aria-selected="true"] { background: var(--fg-solid); color: var(--bg); border-color: var(--fg-solid); }
.search {
  margin-left: auto; display: flex; align-items: center; gap: .6rem; min-width: 270px;
  border: 1px solid var(--line); border-radius: 999px; padding: .4em 1em; background: var(--bg);
  transition: border-color .2s;
}
.search:focus-within { border-color: var(--accent); }
.search svg { width: 15px; height: 15px; color: var(--fg-38); }
.search input { flex: 1; min-width: 0; border: 0; background: none; outline: 0; font-size: .85rem; }
.search input::placeholder { color: var(--fg-38); }
.search kbd { font-family: var(--mono); font-size: .68rem; color: var(--fg-38); border: 1px solid var(--line); border-radius: 4px; padding: 0 .4em; }
.count { font-size: .75rem; color: var(--fg-28); }
.empty { color: var(--fg-60); padding: 3rem 0; text-align: center; }

/* ── Projects: groups & cards ──────────────────────────────── */
.group-label { font-size: .85rem; color: var(--fg-38); margin: 2rem 0 .8rem; display: flex; gap: .75em; align-items: baseline; }
.group-label .n { font-style: italic; color: var(--accent-ink); }
.group-label:first-child { margin-top: 0; }
.projparent { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.grid-item {
  position: relative; display: flex; flex-direction: column; gap: .55rem; text-decoration: none;
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.1rem 1.25rem 1.15rem; min-width: 0; background: var(--bg);
  transition: transform .35s var(--ease), border-color .25s;
}
a.grid-item:hover { transform: translateY(-2px); border-color: var(--accent); }
.card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: .75rem; margin-bottom: .2rem; }
.glyph { width: 38px; height: 38px; color: var(--fg); transition: color .25s; }
.glyph * { stroke-dasharray: 1; stroke-dashoffset: 0; }
a.grid-item:hover .glyph { color: var(--accent-ink); }
a.grid-item:hover .glyph * { animation: draw .9s var(--ease) both; }
.card-right { display: flex; align-items: center; gap: .6rem; font-size: .72rem; color: var(--fg-38); padding-top: .15rem; white-space: nowrap; }
.card-right .ext { display: inline-flex; transition: color .2s; }
.card-right .ext svg { width: 15px; height: 15px; }
a.grid-item:hover .card-right .ext { color: var(--accent-ink); }
.card-right .lock { font-style: italic; color: var(--fg-28); }
.grid-item .projtitle { font-size: 1rem; font-weight: 400; line-height: 1.3; }
.grid-item .hook {
  font-size: .88rem; color: var(--fg-60); line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; font-size: .72rem; color: var(--fg-38); margin-top: .1rem; }
.status { display: inline-flex; align-items: center; gap: .45em; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; border: 1.5px solid currentColor; }
.status.live { color: var(--accent-ink); }
.status.live::before { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.status.shipped::before { background: currentColor; }
.status.building::before { border-style: dashed; }
.status.private::before { background: repeating-linear-gradient(45deg, currentColor 0 1.5px, transparent 1.5px 3px); }
.tags { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: auto; padding-top: .4rem; }
.tag { font-size: .66rem; padding: .25em .65em; border: 1px solid var(--line-soft); border-radius: 999px; color: var(--fg-60); letter-spacing: .02em; }
.tag.hit { border-color: var(--accent); color: var(--accent-ink); }

/* ── Writing-style list (How I work) ───────────────────────── */
.writing .title-row { margin-bottom: .5rem; }
.writparent { padding: 1.1rem 0; border-bottom: 1px solid var(--line-soft); }
.writparent:last-child { border-bottom: 0; }
.writparent .title-row, .writparent .description-row { display: flex; justify-content: space-between; gap: 1.5rem; align-items: baseline; }
.writparent .projtitle { font-size: 1.05rem; font-weight: 400; display: inline-flex; align-items: center; gap: .6rem; }
.wi { width: 19px; height: 19px; color: var(--accent-ink); flex: none; }
.writparent .projdescription { font-size: .95rem; color: var(--fg-60); margin-top: .2rem; max-width: 70ch; }
.writeyear { color: var(--fg-38); font-size: .95rem; flex-shrink: 0; text-align: right; }
.readtime { color: var(--fg-28); font-size: .9rem; flex-shrink: 0; text-align: right; }

/* ── Writing / papers ─────────────────────────────────────── */
.papers .projtitle { align-items: flex-start; }
.papers .projtitle .wi { margin-top: .3em; }
.papers .projtitle a { text-decoration: none; transition: color .2s; }
.papers .projtitle a:hover { color: var(--accent-ink); }
.papers .projtitle .sub { color: var(--fg-60); font-style: italic; font-weight: 300; }
.papers .paper:hover .wi * { animation: draw .9s var(--ease) both; }
.papers .wi * { stroke-dasharray: 1; stroke-dashoffset: 0; }
.paper-meta { display: flex; flex-wrap: wrap; gap: .3rem .9rem; font-size: .78rem; color: var(--fg-38); margin-top: .5rem; }
.paper-meta .pdf { display: inline-flex; align-items: center; gap: .35em; color: var(--accent-ink); text-decoration: none; border-bottom: 1px solid transparent; transition: border-color .2s; }
.paper-meta .pdf:hover { border-color: var(--accent-ink); }
.paper-meta .pdf svg { width: 13px; height: 13px; }

/* ── Store ─────────────────────────────────────────────────── */
.press .title-row { margin-bottom: 1.25rem; }
.store-mini { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.store-mini-card { display: block; text-decoration: none; }
.store-mini-img {
  display: block; aspect-ratio: 1 / 1; background: var(--store-bg);
  border: 1px solid rgba(0, 0, 0, 0.17); border-radius: var(--radius); overflow: hidden;
  transition: transform .4s var(--ease), border-color .25s;
}
.store-mini-img img { width: 100%; height: 100%; object-fit: contain; padding: 10%; transition: transform .5s var(--ease); }
.store-mini-card:hover .store-mini-img { transform: translateY(-3px); border-color: var(--accent); }
.store-mini-card:hover .store-mini-img img { transform: scale(1.03); }
.store-mini-title { display: block; margin-top: .8rem; font-size: .95rem; }
.store-mini-price { display: block; font-size: .8rem; color: var(--fg-38); margin-top: .15rem; }
.store-mini-price .from { font-size: .75rem; margin-right: .2em; }

/* ── Footer ────────────────────────────────────────────────── */
.footer { padding-top: 2rem; font-size: .85rem; }
.socials { display: flex; gap: 1rem; margin-bottom: 1.2rem; }
.socials a { color: var(--fg); opacity: .8; transition: opacity .2s, color .2s; display: inline-flex; }
.socials a:hover { opacity: 1; color: var(--accent-ink); }
.socials svg { width: 18px; height: 18px; }
.copyright { color: var(--fg-60); }
.footlinks { display: flex; gap: 1.1rem; margin-top: .6rem; }
.footlinks a { color: var(--fg-38); text-decoration: none; transition: color .2s; }
.footlinks a:hover { color: var(--accent-ink); }

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 1100px) { .bento { grid-auto-rows: 100px; } }
@media (max-width: 900px) {
  .intro-section { grid-template-columns: 1fr; }
  .intro-art { justify-self: start; max-width: 460px; }
  .about-cols { grid-template-columns: 1fr; gap: 1rem; }
  .about-cols p { text-align: left; }
  .projparent { grid-template-columns: repeat(2, 1fr); }
  .store-mini { gap: 1rem; }
  .bento { grid-template-columns: repeat(6, 1fr); grid-auto-rows: 90px; gap: 1rem; }
  .f-esspn     { grid-column: 1 / 4; grid-row: 1 / 4; }
  .f-tryline   { grid-column: 4 / 7; grid-row: 1 / 6; }
  .f-arch      { grid-column: 1 / 4; grid-row: 4 / 8; }
  .f-satin     { grid-column: 4 / 7; grid-row: 6 / 9; }
  .f-boss      { grid-column: 1 / 4; grid-row: 8 / 10; }
  .f-step      { grid-column: 1 / 7; grid-row: 10 / 13; }
  .more-work   { grid-column: 1 / 7; grid-row: 13 / 15; }
}
@media (max-width: 600px) {
  .header { padding-top: 1.4em; }
  .logo { width: 64px; height: 64px; }
  .header-actions { padding-top: .8rem; }
  .content-container { padding-top: 2.5em; }
  h1 { font-size: 1.75rem; }
  .type { white-space: normal; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat { padding: .9rem 0 .9rem 1rem; }
  .stat:nth-child(odd) { border-left: 0; padding-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line-soft); }
  .toolbar { gap: .6rem; }
  .chips {
    flex-wrap: nowrap; overflow-x: auto; width: 100%; scrollbar-width: none;
    margin: 0 calc(var(--pad-x) * -1); padding: 0 var(--pad-x);
    -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 40px), transparent);
    mask-image: linear-gradient(90deg, #000 calc(100% - 40px), transparent);
  }
  .chips::-webkit-scrollbar { display: none; }
  .chip { flex: 0 0 auto; }
  .search { margin-left: 0; min-width: 0; width: 100%; }
  .count { display: none; }
  .projparent { grid-template-columns: 1fr; }
  .store-mini { grid-template-columns: 1fr; }
  .bento { grid-template-columns: 1fr 1fr; grid-auto-rows: 84px; }
  .f-esspn     { grid-column: 1 / 3; grid-row: 1 / 4; }
  .f-tryline   { grid-column: 1 / 2; grid-row: 4 / 8; }
  .f-arch      { grid-column: 2 / 3; grid-row: 4 / 8; }
  .f-satin     { grid-column: 1 / 3; grid-row: 8 / 11; }
  .f-boss      { grid-column: 1 / 3; grid-row: 11 / 13; }
  .f-step      { grid-column: 1 / 3; grid-row: 13 / 16; }
  .more-work   { grid-column: 1 / 3; grid-row: 16 / 18; }
  .writparent .title-row, .writparent .description-row { flex-direction: column; gap: .2rem; }
  .writeyear, .readtime { text-align: left; }
  .readtime { display: none; }
}

/* ── Motion preferences ────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  section { opacity: 1; transform: none; transition: none; }
  .more-work svg { animation: none; }
  .caret { animation: none; }
  .main-navigation, .main-navigation a { transition: none; }
  .intro-art .draw * { animation: none; stroke-dashoffset: 0; }
  .art-labels text { animation: none; opacity: 1; }
  a.grid-item:hover .glyph * { animation: none; }
}
