/* ==========================================================================
   Shakir Ahsanullah — portfolio
   ========================================================================== */

:root {
  --paper: #f4f3f0;
  --paper-2: #ecebe7;
  --hero: #e6e6e3;
  --ink: #131313;
  --ink-2: #3a3a38;
  --muted: #74726d;
  --line: #d9d7d1;
  --tile: #e4e2dc;
  --accent: #a87b2c;

  --font-display: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(16px, 3.2vw, 48px);
  --gap: clamp(8px, 0.9vw, 14px);
  --bar-h: 76px;
  --filter-h: 60px;
  --ease: cubic-bezier(.2, .7, .2, 1);

  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }
body.lock { overflow: hidden; }

.wrap { width: 100%; max-width: 1440px; margin: 0 auto; padding-inline: var(--gutter); }
.center { text-align: center; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 6px;
}
.skip:focus { top: 12px; }

/* ---------- Type helpers ---------- */
.section-title {
  margin: 0;
  font: 600 clamp(28px, 3.4vw, 44px)/1.05 var(--font-display);
  letter-spacing: -.025em;
}
.mini {
  margin: 0 0 14px;
  font: 600 11px/1 var(--font-body);
  letter-spacing: .2em; text-transform: uppercase; color: var(--muted);
}
.mini.mt { margin-top: 30px; }
.arrow { display: inline-block; transition: transform .35s var(--ease); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  height: 46px; padding: 0 22px;
  border-radius: 999px;
  font: 500 14.5px/1 var(--font-body);
  white-space: nowrap;
  transition: background-color .25s, color .25s, border-color .25s, transform .25s var(--ease);
}
.btn:hover .arrow { transform: translateX(4px); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; }
.btn-line { border: 1px solid var(--ink); }
.btn-line:hover { background: var(--ink); color: #fff; }
.btn-lg { height: 54px; padding: 0 30px; font-size: 15.5px; }

/* ---------- Header ---------- */
.site-header {
  position: absolute; inset: 0 0 auto 0; z-index: 40;
}
.bar {
  height: var(--bar-h);
  display: flex; align-items: center; gap: 28px;
  padding-inline: var(--gutter);
  max-width: 1600px; margin: 0 auto;
}
.wordmark { display: flex; align-items: center; margin-right: auto; }
.wordmark-name {
  font: 700 18px/1 var(--font-display);
  letter-spacing: .26em; text-transform: uppercase;
}
.nav { display: flex; gap: 34px; }
.nav a {
  position: relative; font-size: 14.5px; font-weight: 500; color: var(--ink-2);
  padding: 6px 0; transition: color .2s;
}
.nav a:hover { color: var(--ink); }
.nav a.is-active { color: var(--ink); font-weight: 600; }
.nav a.is-active::after {
  content: ""; position: absolute; left: 50%; bottom: -6px;
  width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--ink);
}
.talk { height: 42px; padding: 0 20px; font-size: 14px; }
.menu-btn { display: none; width: 44px; height: 44px; margin-right: -10px; position: relative; }
.menu-btn span {
  position: absolute; left: 11px; right: 11px; height: 1.6px; background: var(--ink);
  transition: transform .3s var(--ease), top .3s var(--ease);
}
.menu-btn span:first-child { top: 17px; }
.menu-btn span:last-child { top: 25px; }
.menu-open .menu-btn span:first-child { top: 21px; transform: rotate(45deg); }
.menu-open .menu-btn span:last-child { top: 21px; transform: rotate(-45deg); }

/* Work page: compact sticky header with category bar */
body.is-work .site-header {
  position: sticky; top: 0;
  background: rgba(244, 243, 240, .9);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
body.is-work.scrolled .site-header { border-bottom-color: var(--line); }
body.is-work { --bar-h: 64px; }

.filter-bar { max-width: 1600px; margin: 0 auto; }
.filter-bar .pills {
  padding: 4px var(--gutter) 14px;
}

/* ---------- Pills ---------- */
/* pills wrap onto rows instead of scrolling sideways */
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill {
  flex: none;
  display: inline-flex; align-items: center; gap: 8px;
  height: 40px; padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font: 500 14px/1 var(--font-body);
  color: var(--ink-2);
  white-space: nowrap;
  transition: background-color .25s, color .25s, border-color .25s;
}
.pill:hover { border-color: var(--ink); color: var(--ink); }
/* work-page tabs: transparent pills over a sliding black thumb */
.filter-bar .pills { position: relative; }
.filter-bar .pill { background: transparent; position: relative; z-index: 1; }
.filter-bar .pill[aria-selected="true"] { background: transparent; border-color: transparent; }
.pill-thumb {
  position: absolute; z-index: 0; top: 0; left: 0; height: 0; width: 0;
  border-radius: 999px; background: var(--ink); pointer-events: none;
  transition: transform .5s var(--ease), width .5s var(--ease), height .5s var(--ease);
}
.no-thumb-anim .pill-thumb { transition: none; }
.pill .n { font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums; transition: color .25s; }
.pill[aria-selected="true"], .pill.is-active {
  background: var(--ink); border-color: var(--ink); color: #fff;
}
.pill[aria-selected="true"] .n, .pill.is-active .n { color: rgba(255,255,255,.6); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--hero);
  overflow: hidden;
  isolation: isolate;
}
.hero::before { /* paper grain */
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero-inner {
  max-width: 1600px; margin: 0 auto;
  min-height: min(880px, 100svh);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: end;
  padding: calc(var(--bar-h) + 40px) var(--gutter) 0;
}
.hero-copy { padding-bottom: clamp(90px, 13vh, 150px); align-self: center; padding-top: 40px; }
.hero-name {
  margin: 0;
  font: 700 clamp(48px, 7.4vw, 118px)/.92 var(--font-display);
  letter-spacing: -.045em;
}
.hero-name span { display: block; }
.hero-title {
  margin: 22px 0 0;
  font: 500 clamp(19px, 1.9vw, 27px)/1.25 var(--font-display);
  letter-spacing: -.01em; color: var(--ink-2);
}
.hero-intro { margin: 18px 0 0; max-width: 30em; color: var(--muted); font-size: clamp(15px, 1.1vw, 17px); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.stats {
  display: flex; gap: clamp(24px, 4vw, 56px);
  margin: 52px 0 0; padding-top: 26px;
  border-top: 1px solid rgba(0,0,0,.12);
  max-width: 520px;
}
.stats div { display: flex; flex-direction: column-reverse; }
.stats dt { font-size: 12.5px; color: var(--muted); margin-top: 6px; }
.stats dd { margin: 0; font: 600 clamp(26px, 2.6vw, 36px)/1 var(--font-display); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }

.hero-art { position: relative; margin: 0; align-self: end; justify-self: end; width: min(100%, 760px); }
.hero-strokes {
  position: absolute; z-index: -1; left: -16%; bottom: 0; width: 132%; max-width: none; height: auto;
  mix-blend-mode: multiply; opacity: .9; pointer-events: none;
}
.hero-img { width: 100%; height: auto; filter: contrast(1.04); }

/* Hero entrance: name lines rise out of a mask, the rest follows */
.hero-name .line { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.hero-name .line > span { display: block; animation: lineUp 1.1s var(--ease) both; }
.hero-name .line:nth-child(2) > span { animation-delay: .09s; }
.hero-copy > :not(.hero-name) { animation: rise .9s var(--ease) both; }
.hero-title { animation-delay: .32s !important; }
.hero-intro { animation-delay: .4s !important; }
.hero-actions { animation-delay: .48s !important; }
.stats { animation-delay: .56s !important; }
.hero-img { animation: portraitIn 1.4s .15s var(--ease) both; }
.hero-strokes { animation: paint 1.6s .35s cubic-bezier(.6, .05, .25, 1) both; }
@keyframes lineUp { from { transform: translateY(105%); } to { transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes portraitIn { from { opacity: 0; transform: translateY(24px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes paint { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
/* parallax uses the independent `translate` property so it never fights the entrance transforms */
.hero-img, .hero-strokes { translate: var(--tx, 0) var(--ty, 0); will-change: translate; }
.hero-strokes { --tx: calc(var(--mx, 0) * 14px); --ty: calc(var(--py, 0px) * .5 + var(--my, 0) * 10px); }
.hero-img { --tx: calc(var(--mx, 0) * -10px); --ty: calc(var(--py, 0px) * .2 + var(--my, 0) * -6px); }

/* ---------- Sections ---------- */
.selected { padding: clamp(56px, 8vw, 110px) 0 clamp(64px, 8vw, 120px); }
.section-head {
  display: flex; align-items: end; justify-content: space-between; gap: 32px;
  margin-bottom: clamp(26px, 3vw, 40px);
  max-width: 1600px;
}
.pills-home { justify-content: flex-end; min-width: 0; }
#see-all { margin-top: clamp(36px, 4vw, 56px); }

/* ---------- Gallery (masonry) ---------- */
.gallery {
  display: flex; gap: var(--gap); align-items: flex-start;
  max-width: 1600px; margin: 0 auto;
  padding-inline: var(--gutter);
}
.col { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: var(--gap); }
.tile {
  position: relative; display: block; width: 100%;
  border-radius: 4px; overflow: hidden;
  background: var(--tile);
  cursor: zoom-in;
  text-align: left;
}
.tile img {
  width: 100%; height: 100%; object-fit: contain;
  opacity: 0; transform: scale(1.0001);
  transition: opacity .5s var(--ease), transform .8s var(--ease);
}
.tile img.is-loaded { opacity: 1; }
.tile:hover img { transform: scale(1.03); }
.tile-cap {
  position: absolute; inset: auto 0 0 0;
  padding: 36px 14px 12px;
  background: linear-gradient(to top, rgba(0,0,0,.62), rgba(0,0,0,0));
  color: #fff;
  opacity: 0; transform: translateY(6px);
  transition: opacity .35s var(--ease), transform .35s var(--ease);
  pointer-events: none;
}
.tile-cap b { display: block; font: 600 14px/1.25 var(--font-display); letter-spacing: -.005em; }
.tile-cap span { display: block; margin-top: 3px; font-size: 11.5px; letter-spacing: .06em; opacity: .75; }
.tile:hover .tile-cap, .tile:focus-visible .tile-cap { opacity: 1; transform: none; }
.tile:focus-visible { outline-offset: 2px; }
@media (hover: none) { .tile-cap { display: none; } }

.gallery.is-switching { opacity: 0; transform: translateY(8px); }
.gallery { transition: opacity .28s var(--ease), transform .28s var(--ease); }

/* ---------- Work page ---------- */
.work-head { padding-top: clamp(28px, 4vw, 56px); padding-bottom: clamp(22px, 3vw, 36px); max-width: 1600px; }
.work-title-row { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; }
.work-title {
  margin: 0; font: 700 clamp(36px, 5.4vw, 76px)/1 var(--font-display); letter-spacing: -.04em;
}
.work-count { margin: 0; color: var(--muted); font-size: clamp(14px, 1.2vw, 17px); white-space: nowrap; font-variant-numeric: tabular-nums; }
.sentinel { height: 1px; }
.work-cta { padding-top: clamp(48px, 6vw, 90px); padding-bottom: clamp(40px, 5vw, 70px); max-width: 1600px; }
.cta-card {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: clamp(26px, 4vw, 52px);
  background: var(--paper-2); border-radius: 16px;
}
.cta-title { margin: 0; font: 600 clamp(26px, 3.4vw, 46px)/1.05 var(--font-display); letter-spacing: -.03em; }
.cta-btn {
  flex: none; width: clamp(60px, 7vw, 86px); aspect-ratio: 1; border-radius: 50%;
  background: var(--ink); color: #fff; display: grid; place-items: center; font-size: 22px;
  transition: transform .35s var(--ease);
}
.cta-btn:hover { transform: rotate(-35deg); }

/* ---------- About ---------- */
.about { padding-block: clamp(70px, 9vw, 140px); border-top: 1px solid var(--line); max-width: 1600px; }
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 110px); }
.about-lead {
  margin: 0; font: 500 clamp(26px, 2.9vw, 42px)/1.16 var(--font-display); letter-spacing: -.025em;
  max-width: 17em;
}
.about-body { margin: 0 0 44px; color: var(--ink-2); font-size: 17px; max-width: 34em; }
.about-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; }
.exp, .skills { list-style: none; margin: 0; padding: 0; }
.exp li { padding: 14px 0; border-top: 1px solid var(--line); }
.exp li:last-child { border-bottom: 1px solid var(--line); }
.exp b { display: block; font: 600 16px/1.3 var(--font-display); }
.exp span { display: block; font-size: 14px; color: var(--muted); margin-top: 3px; }
.skills li { font-size: 15px; padding: 4px 0; color: var(--ink-2); }
.tools { margin: 0; font-size: 15px; color: var(--ink-2); }

/* ---------- Contact ---------- */
.contact { background: var(--ink); color: #f4f3f0; padding-block: clamp(80px, 11vw, 160px); }
.contact-inner { max-width: 1600px; }
.contact-title {
  margin: 0; font: 700 clamp(42px, 7.6vw, 120px)/.95 var(--font-display); letter-spacing: -.045em;
}
.contact-mail {
  display: inline-block; margin-top: clamp(26px, 3vw, 40px);
  font: 500 clamp(19px, 2.4vw, 34px)/1.2 var(--font-display); letter-spacing: -.015em;
  border-bottom: 1px solid rgba(244,243,240,.35); padding-bottom: 4px;
  transition: border-color .25s;
  word-break: break-all;
}
.contact-mail:hover { border-color: #fff; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }
.contact .btn-light { background: #f4f3f0; color: var(--ink); }
.contact .btn-light:hover { background: #fff; }
.contact .btn-ghost { border: 1px solid rgba(244,243,240,.35); color: #f4f3f0; }
.contact .btn-ghost:hover { border-color: #f4f3f0; background: rgba(255,255,255,.06); }
.contact-links { list-style: none; padding: 0; margin: 56px 0 0; display: flex; flex-wrap: wrap; gap: 10px 34px; }
.contact-links a {
  font-size: 15px; color: rgba(244,243,240,.75); display: inline-flex; gap: 8px; align-items: center;
  transition: color .2s;
}
.contact-links a:hover { color: #fff; }
.contact-links .ext { font-size: 12px; opacity: .7; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); }
body:not(.is-work) .site-footer { background: var(--ink); color: rgba(244,243,240,.5); border-top-color: rgba(255,255,255,.08); }
.footer-inner {
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding-block: 26px calc(26px + env(safe-area-inset-bottom));
  font-size: 13px; color: inherit; max-width: 1600px;
}
.site-footer { color: var(--muted); }
.footer-inner p { margin: 0; }
.to-top { white-space: nowrap; }
.to-top:hover { color: var(--ink); }
body:not(.is-work) .to-top:hover { color: #fff; }

/* ---------- Mobile menu ---------- */
.mobile-menu {
  position: fixed; inset: 0; z-index: 35;
  background: var(--paper);
  padding: calc(var(--bar-h) + 40px) var(--gutter) calc(32px + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; justify-content: space-between;
  animation: menuIn .35s var(--ease);
}
.mobile-menu nav { display: flex; flex-direction: column; }
.mobile-menu nav a {
  font: 600 clamp(38px, 11vw, 56px)/1.18 var(--font-display); letter-spacing: -.035em;
}
.mobile-menu-foot { margin: 0; color: var(--muted); font-size: 15px; }
@keyframes menuIn { from { opacity: 0; } to { opacity: 1; } }
.menu-open .filter-bar { display: none; }
.menu-open .site-header { position: fixed; background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; border-color: transparent; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(14, 14, 14, .96);
  color: #f4f3f0;
  display: grid;
  grid-template-rows: auto 1fr auto;
  animation: lbIn .3s var(--ease);
  touch-action: pan-y pinch-zoom;
}
@keyframes lbIn { from { opacity: 0; } to { opacity: 1; } }
.lb-top {
  display: flex; justify-content: space-between; align-items: center;
  padding: calc(12px + env(safe-area-inset-top)) 16px 0 var(--gutter);
}
.lb-count { margin: 0; font-size: 13px; letter-spacing: .08em; color: rgba(244,243,240,.6); font-variant-numeric: tabular-nums; }
.lb-btn {
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  color: #f4f3f0; transition: background-color .2s;
}
.lb-btn:hover { background: rgba(255,255,255,.1); }
.lb-stage {
  position: relative; min-height: 0;
  display: flex; align-items: center; justify-content: center;
  padding: 8px clamp(16px, 7vw, 110px);
}
.lb-img {
  max-width: 100%; max-height: 100%;
  width: auto; height: auto;
  object-fit: contain;
  border-radius: 2px;
  user-select: none; -webkit-user-drag: none;
  transition: opacity .25s var(--ease), transform .3s var(--ease);
}
.lb-img.is-leaving { opacity: 0; }
.lb-nav { position: absolute; top: 50%; margin-top: -24px; }
.lb-prev { left: clamp(6px, 2vw, 28px); }
.lb-next { right: clamp(6px, 2vw, 28px); }
.lb-caption {
  text-align: center;
  padding: 10px var(--gutter) calc(20px + env(safe-area-inset-bottom));
}
.lb-title { margin: 0; font: 600 16px/1.3 var(--font-display); }
.lb-cat { margin: 4px 0 0; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: rgba(244,243,240,.55); }

/* ---------- View transitions ---------- */
.view { animation: viewIn .45s var(--ease) both; }
@keyframes viewIn { from { opacity: 0; } to { opacity: 1; } }


/* ---------- Motion ---------- */
/* Word-by-word heading reveal */
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.split .w > span { display: inline-block; transform: translateY(105%); transition: transform 1s var(--ease); transition-delay: calc(var(--i) * 45ms); }
.split.is-in .w > span { transform: none; }

/* Generic fade-up reveal */
[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
[data-reveal].is-in { opacity: 1; transform: none; }

/* Gallery tiles rise in */
.tile.will-reveal { opacity: 0; transform: translateY(36px); }
.tile.is-in { opacity: 1; transform: none; transition: opacity .8s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }

/* Magnetic buttons */
[data-magnetic] { translate: var(--mgx, 0) var(--mgy, 0); transition: translate .5s var(--ease), background-color .25s, color .25s, border-color .25s, transform .35s var(--ease); }
[data-magnetic].is-near { transition: translate .12s linear, background-color .25s, color .25s, border-color .25s, transform .35s var(--ease); }

/* Home header pins after the hero */
body.pinned:not(.is-work) .site-header {
  position: fixed;
  background: rgba(244, 243, 240, .88);
  -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
  animation: headerIn .5s var(--ease) both;
}
body.pinned:not(.is-work) { --bar-h: 64px; }
@keyframes headerIn { from { transform: translateY(-100%); } to { transform: none; } }

/* Lightbox image settles in */
.lb-img.is-entering { animation: lbImg .5s var(--ease) both; }
@keyframes lbImg { from { opacity: 0; transform: scale(.965); } to { opacity: 1; transform: none; } }

/* Nav hover underline */
.nav a::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease);
}
.nav a:hover::before { transform: scaleX(1); transform-origin: left; }
.nav a.is-active::before { display: none; }

/* Email underline sweep */
.contact-mail { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .6s var(--ease), border-color .25s; }
.contact-mail:hover { background-size: 100% 1px; border-color: transparent; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
  .nav { gap: 24px; }
  .section-head { flex-direction: column; align-items: stretch; }
  .pills-home { justify-content: flex-start; }
}

@media (max-width: 900px) {
  :root { --bar-h: 64px; }
  body.is-work { --bar-h: 58px; }
  .nav, .talk { display: none; }
  .menu-btn { display: block; }
  .hero-inner { grid-template-columns: 1fr; padding-top: calc(var(--bar-h) + 18px); min-height: 0; }
  .hero-copy { padding-bottom: 8px; padding-top: 18px; }
  .hero-art { justify-self: center; width: min(92%, 520px); margin-top: 18px; }
  .about-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .wordmark-name { font-size: 15px; letter-spacing: .2em; }
  .hero-name { font-size: clamp(44px, 13.5vw, 64px); }
  .hero-actions .btn { flex: 1 1 auto; justify-content: center; }
  .stats { gap: 22px; margin-top: 36px; padding-top: 20px; }
  .stats dt { font-size: 11.5px; }
  .pills { gap: 6px; }
  .pill { height: 34px; padding: 0 12px; font-size: 13px; }
  .pill .n { display: none; } /* counts dropped on phones so all six fit in two rows */
  .filter-bar .pills { padding-bottom: 10px; padding-top: 2px; }
  .about-cols { grid-template-columns: 1fr; }
  .about-body { font-size: 16px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .lb-nav { display: none; }
  .lb-stage { padding-inline: 8px; }
  .contact-actions .btn { flex: 1 1 auto; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal], .tile.will-reveal, .split .w > span { opacity: 1 !important; transform: none !important; }
  .hero-img, .hero-strokes { translate: none !important; }
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important; scroll-behavior: auto !important;
  }
}
