/* ============================================================
   atrostars — light cool-silver ("rune"-style) jewelry portfolio
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  --edge:      #0b0b0e;                 /* dark page edge behind the frame */
  --canvas-1:  #ffffff;                 /* frame bg top */
  --canvas-2:  #d7dbe2;                 /* frame bg bottom (cool silver) */
  --ink:       #0e0f14;                 /* near-black text */
  --ink-soft:  #44474f;
  --ink-mute:  #71757e;
  --line:      rgba(14,15,20,.12);
  --line-2:    rgba(14,15,20,.20);
  --card:      #ffffff;
  --chip:      #eef0f3;
  --silver:    #aeb4c0;
  --blue:      #2f4cff;
  --red:       #e3342a;
  --btn:       #0504aa;                 /* buttons + active controls */

  --radius:    18px;
  --radius-sm: 12px;
  --frame-r:   28px;
  --maxw:      1320px;
  --gutter:    13px;
  --ease:      cubic-bezier(.16,.84,.34,1);
  --shadow:    0 24px 60px -28px rgba(40,48,70,.45);
  --shadow-sm: 0 8px 24px -14px rgba(40,48,70,.4);

  --font-display: "Archivo", system-ui, sans-serif;
  --font-body:    "Space Grotesk", system-ui, -apple-system, sans-serif;
}

/* ---------- Reset ---------- */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--edge);
  color: var(--ink);
  line-height: 1.6;
  padding: 0;
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 4px; }

/* ---------- The rounded frame ---------- */
.frame {
  position: relative;
  max-width: none;
  margin: 0;
  min-height: 100dvh;
  border-radius: 0;
  /* plain white background (concrete texture kept in assets/ + backup for revert) */
  background: #fff;
  border: 0;
  box-shadow: none;
}
/* iOS Safari mishandles fixed backgrounds — scroll the gradient with the frame on touch devices */
@media (pointer: coarse) {
  .frame { background-attachment: scroll; }
}

/* ---------- Layout helpers ---------- */
.wrap { width: min(100% - 2.5rem, 1180px); margin-inline: auto; }
.section { padding: clamp(3.5rem, 8vw, 7rem) 0; position: relative; }
.eyebrow {
  font-family: var(--font-display);
  font-size: .72rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--ink-soft); font-weight: 700;
  display: inline-flex; align-items: center; gap: .6rem;
}
.eyebrow::before { content: ""; width: 22px; height: 6px; border-radius: 99px; background: var(--ink); }

/* heavy grotesque display headings */
.display {
  font-family: var(--font-display);
  font-weight: 900;
  line-height: .92;
  letter-spacing: -.03em;
  color: var(--ink);
}

/* emphasis keyword — outlined heavy type (readable, distinct from the solid headline) */
.dotted {
  font-family: var(--font-display);
  font-weight: 900;
  color: transparent;
  -webkit-text-stroke: .035em var(--ink);
  text-stroke: .035em var(--ink);
  paint-order: stroke fill;
  letter-spacing: -.02em;
}

/* ---------- Buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; gap: .55rem;
  padding: .85rem 1.35rem; min-height: 48px;
  font-family: var(--font-display);
  font-weight: 700; font-size: .8rem; letter-spacing: .02em;
  border-radius: 12px;
  transition: transform .3s var(--ease), background .3s, color .3s, box-shadow .3s, border-color .3s;
  will-change: transform;
}
.btn-chrome {                 /* primary — solid */
  color: #fff; background: var(--btn);
  box-shadow: var(--shadow-sm);
}
.btn-chrome:hover { transform: translateY(-2px); box-shadow: 0 16px 32px -14px rgba(14,15,20,.6); }
.btn-ghost {                  /* secondary — outline */
  color: var(--ink); background: transparent; border: 1.5px solid var(--line-2);
}
.btn-ghost:hover { border-color: var(--ink); transform: translateY(-2px); }
.btn .arr {
  display: inline-grid; place-items: center; width: 26px; height: 26px;
  border-radius: 7px; background: rgba(255,255,255,.16); transition: transform .3s var(--ease);
}
.btn-ghost .arr { background: rgba(14,15,20,.08); }
.btn:hover .arr { transform: translateX(3px); }

/* ============================================================
   TOPBAR — wordmark · pill icon-nav · start button
   ============================================================ */
.topbar {
  position: sticky; top: var(--gutter); z-index: 60;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1rem clamp(1rem, 3vw, 1.6rem) .4rem;
}
.brand { display: inline-flex; align-items: center; gap: .55rem; }
.brand .mascot { height: 30px; width: auto; filter: drop-shadow(0 2px 5px rgba(47,76,255,.35)); }
.brand .word { height: 22px; width: auto; }     /* black wordmark, no invert on light */

.pillnav {
  display: inline-flex; align-items: center; gap: 2px;
  padding: 5px; border-radius: 999px;
  background: rgba(14,15,20,.06);
  border: 1px solid var(--line);
  backdrop-filter: blur(8px);
}
.pillnav a {
  position: relative; display: inline-grid; place-items: center;
  width: 44px; height: 40px; border-radius: 999px; color: var(--ink-soft);
  transition: background .25s, color .25s;
}
.pillnav a svg { width: 19px; height: 19px; }
.pillnav a:hover { color: var(--ink); background: rgba(14,15,20,.06); }
.pillnav a[aria-current="page"] { color: #fff; background: var(--btn); }

.btn-start {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .55rem .55rem .55rem .95rem; min-height: 44px;
  font-family: var(--font-display); font-weight: 700; font-size: .82rem;
  color: #fff; background: var(--btn); border-radius: 12px;
  box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), box-shadow .3s;
}
.btn-start:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -14px rgba(14,15,20,.6); }
.btn-start .ico {
  display: inline-grid; place-items: center; width: 28px; height: 28px;
  border-radius: 8px; background: rgba(255,255,255,.16);
}
.btn-start .ico svg { width: 15px; height: 15px; }
@media (max-width: 560px) { .btn-start .lbl { display: none; } .btn-start { padding: .5rem; } }

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; padding: clamp(1rem, 3vw, 2.5rem) 0 clamp(3rem,7vw,6rem); overflow: hidden; }
.hero__inner { position: relative; z-index: 2; padding-inline: clamp(1.25rem, 4vw, 3rem); }
.hero h1 { font-size: clamp(3.2rem, 12vw, 9rem); margin-top: 1rem; }
.hero h1 .row { display: block; }
.hero h1 .dotted { font-size: .96em; }

/* logo headline + shutter reveal */
.hero__title { margin-top: 1rem; line-height: 0; }
.shutter {
  position: relative; display: block;
  width: min(100%, 760px);
  aspect-ratio: var(--ar, 3.617);
  cursor: pointer;
  contain: layout paint;
}
.shutter__slice {
  position: absolute; inset: 0;
  background-image: var(--logo);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100% 100%;
  will-change: transform, opacity, filter;
  filter: blur(var(--b, 0px)) drop-shadow(var(--gx, 0px) 0 0 var(--shutter-rgb, #7c5cff));
}
@media (max-width: 900px) {
  .shutter { margin-inline: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .shutter__slice { filter: none !important; transform: none !important; opacity: 1 !important; }
}
.hero__sub { margin-top: 1.6rem; max-width: 42ch; font-size: clamp(1rem,1.6vw,1.2rem); color: var(--ink-soft); }
.hero__cta { margin-top: 2.2rem; display: flex; gap: .8rem; flex-wrap: wrap; }

/* liquid chrome blob */
.hero__stage { position: absolute; inset: 0; z-index: 1; pointer-events: none; display: grid; place-items: start end; }
/* 3D ring (replaces the chrome blob) */
.ring3d {
  width: min(48vw, 520px); aspect-ratio: 1;
  margin: clamp(3.5rem, 7vw, 6rem) clamp(.5rem, 2vw, 1.5rem) 0 0;
}
.ring3d canvas { display: block; width: 100% !important; height: 100% !important; }
.blob {
  width: min(46vw, 470px); aspect-ratio: 1.05; margin: clamp(5rem, 9vw, 8rem) clamp(1rem, 3vw, 2.2rem) 0 0;
  border-radius: 60% 40% 52% 48% / 54% 46% 54% 46%;
  background:
    radial-gradient(32% 26% at 34% 26%, #ffffff, rgba(255,255,255,0) 55%),
    radial-gradient(46% 46% at 72% 74%, #b6bcc8, rgba(182,188,200,0) 62%),
    linear-gradient(150deg, #f2f4f8 0%, #cfd4dd 42%, #a7aebc 66%, #eef1f6 100%);
  box-shadow:
    0 50px 90px -30px rgba(70,80,110,.5),
    inset 0 0 70px rgba(255,255,255,.6),
    inset -16px -22px 50px rgba(120,130,155,.35);
  filter: saturate(1.05);
  opacity: .96;
  animation: blobMorph 16s var(--ease) infinite;
}
@keyframes blobMorph {
  0%,100% { border-radius: 60% 40% 52% 48% / 54% 46% 54% 46%; }
  33% { border-radius: 44% 56% 44% 56% / 60% 42% 58% 40%; }
  66% { border-radius: 56% 44% 60% 40% / 42% 58% 42% 58%; }
}
@keyframes blobSpin { to { transform: rotate(360deg); } }
/* Phone + tablet-portrait: centred hero with the orb as a deliberate top accent (not a shrunk desktop) */
@media (max-width: 900px) {
  .hero { padding-top: 1.25rem; }
  .hero__stage { position: static; inset: auto; display: block; }
  .blob {
    position: relative; width: min(58vw, 300px); aspect-ratio: 1;
    margin: .5rem auto 1.6rem; opacity: 1;
  }
  .ring3d {
    position: relative; width: min(78vw, 360px); aspect-ratio: 1;
    margin: .5rem auto 1.2rem;
  }
  .hero__inner { text-align: center; padding-inline: 1.25rem; }
  .hero .eyebrow { justify-content: center; }
  .hero h1 { font-size: clamp(2.7rem, 11vw, 5rem); }
  .hero__sub { margin-inline: auto; }
  .hero__cta { justify-content: center; }
}

/* marquee */
.marquee { background: #000; border-block: 1px solid #000; overflow: hidden; white-space: nowrap; padding: .85rem 0; margin-top: 1rem; }
.marquee__track { display: inline-flex; width: max-content; gap: 2.6rem; animation: marquee 104s linear infinite; }
.marquee span { font-family: var(--font-display); font-weight: 700; font-size: .8rem; letter-spacing: .04em; text-transform: uppercase; color: #fff; display: inline-flex; align-items: center; gap: 2.6rem; }
.marquee span::after { content: "✦"; color: #fff; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ============================================================
   SECTION HEADERS + GRID CARDS
   ============================================================ */
.head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; margin-bottom: clamp(1.8rem,4vw,3rem); }
.head-row h2 { font-size: clamp(2rem, 5.5vw, 3.6rem); }
.head-row p { color: var(--ink-soft); max-width: 38ch; }

.grid { display: grid; gap: clamp(.9rem, 1.6vw, 1.4rem); grid-template-columns: repeat(auto-fill, minmax(min(100%,280px),1fr)); }
.grid--feat { grid-template-columns: repeat(auto-fit, minmax(min(100%,300px),1fr)); }

.card {
  position: relative; border-radius: var(--radius); overflow: hidden;
  background: var(--card); border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform .45s var(--ease), box-shadow .45s, border-color .45s;
  will-change: transform; text-align: left;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--line-2); }
.card__media { position: relative; aspect-ratio: 4/5; overflow: hidden; background: #e7e9ee; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.card:hover .card__media img { transform: scale(1.05); }
.card__tag {
  position: absolute; top: .7rem; left: .7rem; z-index: 2;
  font-family: var(--font-display); font-weight: 700; font-size: .58rem; letter-spacing: .1em; text-transform: uppercase;
  padding: .35rem .6rem; border-radius: 999px;
  background: rgba(255,255,255,.85); backdrop-filter: blur(6px); color: var(--ink-soft); border: 1px solid var(--line);
}
.card__tag.is-special { color: #fff; background: var(--ink); border-color: transparent; }
.card__body { padding: 1rem 1.1rem 1.15rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; background: var(--btn); }
.card__body h3 { font-family: var(--font-display); font-weight: 800; font-size: 1.02rem; letter-spacing: -.01em; color: #fff; }
.card__body p { font-size: .78rem; color: rgba(255,255,255,.8); margin-top: .15rem; }
.card__plus { width: 38px; height: 38px; flex: none; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 1px solid transparent; color: var(--ink); transition: .3s; }
.card:hover .card__plus { transform: scale(1.06); }

/* ---------- Band ---------- */
.band { text-align: center; }
.band h2 { font-size: clamp(1.9rem, 5.5vw, 3.4rem); max-width: 16ch; margin: .5rem auto 1.2rem; }
.band p { color: var(--ink-soft); max-width: 52ch; margin: 0 auto 1.8rem; }

/* ============================================================
   GALLERY
   ============================================================ */
.page-head { padding: clamp(2.5rem,6vw,5rem) 0 0; text-align: center; }
.page-head h1 { font-size: clamp(2.8rem, 10vw, 6.5rem); }
.page-head p { color: var(--ink-soft); max-width: 46ch; margin: 1rem auto 0; }

.filters { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; margin: clamp(1.8rem,4vw,2.8rem) 0; }
.filter {
  min-height: 42px; padding: .55rem 1.1rem; border-radius: 999px;
  font-family: var(--font-display); font-weight: 700; font-size: .74rem; letter-spacing: .02em;
  color: var(--ink-soft); border: 1px solid var(--line-2); background: transparent;
  transition: .25s var(--ease);
}
.filter:hover { color: var(--ink); border-color: var(--ink); }
.filter[aria-pressed="true"] { color: #fff; background: var(--btn); border-color: transparent; }

.card.is-hidden { display: none; }
.card { animation: cardIn .5s var(--ease) both; }
@keyframes cardIn { from { opacity: 0; transform: translateY(12px); } }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 1.5rem;
  background: rgba(20,22,28,.5); backdrop-filter: blur(10px);
  opacity: 0; visibility: hidden; transition: opacity .35s, visibility .35s;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox__inner {
  position: relative; max-width: 860px; width: 100%;
  display: grid; grid-template-columns: 1.2fr .8fr;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 40px 90px -30px rgba(0,0,0,.6); transform: scale(.95); transition: transform .4s var(--ease);
}
.lightbox.open .lightbox__inner { transform: scale(1); }
.lightbox__inner img { width: 100%; height: 100%; max-height: 78vh; object-fit: cover; }
.lightbox__meta { padding: 1.8rem; display: flex; flex-direction: column; justify-content: center; gap: .7rem; }
.lightbox__meta h3 { font-family: var(--font-display); font-weight: 900; font-size: 1.8rem; letter-spacing: -.02em; }
.lightbox__meta p { color: var(--ink-soft); }
.lightbox__meta .spec { margin-top: .5rem; font-size: .82rem; color: var(--ink-mute); border-top: 1px solid var(--line); padding-top: .9rem; }
.lightbox__close {
  position: absolute; top: .7rem; right: .7rem; z-index: 3; width: 42px; height: 42px; border-radius: 50%;
  background: #fff; border: 1px solid var(--line-2); color: var(--ink); display: grid; place-items: center; transition: .3s;
}
.lightbox__close:hover { background: var(--btn); color: #fff; transform: rotate(90deg); }
@media (max-width: 680px) { .lightbox__inner { grid-template-columns: 1fr; } .lightbox__inner img { max-height: 48vh; } }

/* ============================================================
   CONTACT / STORY
   ============================================================ */
.story { display: grid; grid-template-columns: minmax(0, 0.85fr) 1.15fr; gap: clamp(1.8rem,5vw,4rem); align-items: center; }
.story__photo { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-sm); max-width: 440px; }
.story__photo img { width: 100%; height: auto; display: block; }
.story__photo .badge { position: absolute; bottom: .9rem; left: .9rem; z-index: 2; display: flex; align-items: center; gap: .5rem; font-family: var(--font-display); font-weight: 700; font-size: .66rem; letter-spacing: .04em; text-transform: uppercase; color: #fff; background: rgba(14,15,20,.6); backdrop-filter: blur(6px); padding: .4rem .7rem; border-radius: 999px; }
.story__photo .badge img { height: 22px; width: auto; }
.story__text h2 { font-size: clamp(2rem,5.5vw,3.4rem); margin: .6rem 0 1.1rem; }
.story__text p { color: var(--ink-soft); margin-bottom: 1rem; max-width: 56ch; }
.story__text p strong { color: var(--ink); font-weight: 600; }
.stats { display: flex; gap: 2rem; margin-top: 1.6rem; flex-wrap: wrap; }
.stat .n { font-family: var(--font-display); font-weight: 900; font-size: 2rem; color: var(--ink); letter-spacing: -.02em; }
.stat .l { font-size: .72rem; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-soft); }
@media (max-width: 820px){ .story { grid-template-columns: 1fr; } .story__photo { max-width: 420px; } }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.8rem,5vw,3.5rem); margin-top: clamp(2.5rem,6vw,4.5rem); }
@media (max-width: 820px){ .contact-grid { grid-template-columns: 1fr; } }

.form { display: grid; gap: 1rem; }
.field { display: grid; gap: .4rem; }
.field label { font-family: var(--font-display); font-weight: 700; font-size: .7rem; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-soft); }
.field label .req { color: var(--blue); }
.field input, .field textarea {
  width: 100%; padding: .85rem 1rem; min-height: 50px;
  background: #fff; border: 1.5px solid var(--btn); border-radius: var(--radius-sm);
  color: var(--ink); font: inherit; transition: border-color .25s, box-shadow .25s;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(14,15,20,.08); }
.field .err { font-size: .74rem; color: #c0392b; min-height: 1em; }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #c0392b; }
.form__status { font-size: .82rem; color: var(--ink); min-height: 1.2em; }

.contact-aside { display: flex; flex-direction: column; gap: 1rem; }
.contact-card { padding: 1.3rem 1.4rem; border-radius: var(--radius); background: #fff; border: 1.5px solid var(--btn); }
.contact-card h3 { font-family: var(--font-display); font-weight: 700; font-size: .78rem; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-mute); margin-bottom: .6rem; }
.contact-card a { color: var(--ink); transition: color .25s; display: inline-flex; align-items: center; gap: .5rem; min-height: 32px; }
.contact-card a:hover { color: var(--blue); }
.socials { display: flex; gap: .6rem; flex-wrap: wrap; }
.socials a { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; border: 1.5px solid var(--btn); color: var(--ink); font-family: var(--font-display); font-weight: 700; font-size: .8rem; transition: .25s var(--ease); }
.socials a:hover { background: var(--btn); color: #fff; border-color: transparent; transform: translateY(-3px); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { border-top: 1px solid var(--line); padding: clamp(2.5rem,6vw,4rem) 0 2rem; margin-top: 2rem; }
.footer__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 2rem; flex-wrap: wrap; }
.footer__brand img.word { height: 26px; width: auto; }
.footer__brand p { color: var(--ink-soft); max-width: 30ch; margin-top: .7rem; font-size: .9rem; }
.footer__nav { display: flex; gap: 2.4rem; flex-wrap: wrap; }
.footer__col h4 { font-family: var(--font-display); font-weight: 700; font-size: .68rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: .7rem; }
.footer__col a { display: block; color: var(--ink-soft); font-size: .9rem; padding: .22rem 0; transition: color .25s; }
.footer__col a:hover { color: var(--ink); }
.footer__bot { margin-top: 2.5rem; padding-top: 1.3rem; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .76rem; color: var(--ink-soft); }
.footer__bot .mascot { height: 24px; }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); }
.js .reveal.in { opacity: 1; transform: none; transition: opacity .7s var(--ease), transform .7s var(--ease); }

/* ---------- a11y ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: -60px; left: 1rem; z-index: 300; background: var(--ink); color: #fff; padding: .7rem 1.1rem; border-radius: 10px; font-weight: 600; transition: top .3s; }
.skip-link:focus { top: 1rem; }

/* ---------- Touch: enlarge secondary tap targets to the 44px minimum ---------- */
@media (pointer: coarse) {
  .footer__col a { padding: .55rem 0; }
  .contact-card a { min-height: 44px; padding: .2rem 0; }
}

/* ---------- Tablet: denser, intentional grids (iPad shouldn't look like a big phone or small desktop) ---------- */
@media (min-width: 601px) and (max-width: 1024px) {
  .grid:not(.grid--feat) { grid-template-columns: repeat(3, 1fr); }
  .page-head h1 { font-size: clamp(3.4rem, 9vw, 5.5rem); }
}

/* ---------- Phone: 2-up jewelry grid so you can browse, not endlessly scroll one column ---------- */
@media (max-width: 600px) {
  .grid:not(.grid--feat) { grid-template-columns: repeat(2, 1fr); gap: .55rem; }
  .grid:not(.grid--feat) .card__body { padding: .65rem .7rem; gap: .5rem; }
  .grid:not(.grid--feat) .card__body h3 { font-size: .82rem; }
  .grid:not(.grid--feat) .card__body p { font-size: .7rem; }
  .grid:not(.grid--feat) .card__plus { width: 30px; height: 30px; }
  /* featured: all three side by side on phones */
  .grid--feat { grid-template-columns: repeat(3, 1fr); gap: .5rem; }
  .grid--feat .card { display: flex; flex-direction: column; }
  .grid--feat .card__body { flex: 1; align-items: flex-start; }
  .grid--feat .card__body { padding: .5rem .55rem .6rem; gap: .3rem; }
  .grid--feat .card__body h3 { font-size: .7rem; }
  .grid--feat .card__body p { font-size: .6rem; }
  .grid--feat .card__plus { display: none; }
  .grid--feat .card__tag { font-size: .48rem; padding: .25rem .45rem; top: .45rem; left: .45rem; }
  .section { padding: clamp(2.5rem, 9vw, 4rem) 0; }
  .head-row { gap: .8rem; }
}

/* ---------- Phone: app-style floating bottom tab bar (the signature "designed for mobile" move) ---------- */
@media (max-width: 640px) {
  .topbar { top: 0; padding-top: calc(env(safe-area-inset-top, 0px) + .9rem); }
  .pillnav {
    position: fixed; left: 50%; bottom: calc(env(safe-area-inset-bottom, 0px) + 14px);
    transform: translateX(-50%); z-index: 95;
    gap: 4px; padding: 6px;
    background: rgba(255,255,255,.82);
    backdrop-filter: blur(18px) saturate(150%);
    border: 1px solid var(--line);
    box-shadow: 0 14px 34px -12px rgba(40,48,70,.5);
  }
  .pillnav a { width: 56px; height: 46px; }
  .pillnav a svg { width: 21px; height: 21px; }
  .footer { padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 86px); }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .blob { animation: none; }
  .js .reveal { opacity: 1; transform: none; }
}
