@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600;700&family=Inter:wght@400;500;600;700&family=Noto+Serif+JP:wght@400;500;600;700&display=swap");

:root {
  --bg: #f7f3f6;
  --bg-2: #faf8fb;
  --ink: #24262f;
  --muted: #6e717d;
  --line: rgba(255,255,255,.72);
  --card: rgba(255,255,255,.5);
  --card-strong: rgba(255,255,255,.72);
  --primary: #89c4f4;
  --secondary: #ead2ff;
  --mint: #bff3e1;
  --gold: #d2aa43;
  --shadow: 0 24px 80px rgba(60, 52, 79, 0.12);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --header-height: 76px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  font-family: "Inter", "Noto Serif JP", system-ui, sans-serif;
  background:
    radial-gradient(circle at 10% 10%, rgba(171, 214, 255, 0.55), transparent 28%),
    radial-gradient(circle at 85% 14%, rgba(255, 216, 240, 0.55), transparent 24%),
    radial-gradient(circle at 82% 72%, rgba(194, 255, 230, 0.45), transparent 28%),
    linear-gradient(135deg, #fbfafc 0%, #f6f2f8 48%, #faf8fb 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .45;
  background-image:
    linear-gradient(rgba(255,255,255,.35) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.28) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at center, black 35%, transparent 76%);
}

.ambient {
  position: fixed;
  border-radius: 50%;
  filter: blur(40px);
  opacity: .55;
  z-index: 0;
  animation: floatBlob 14s ease-in-out infinite;
  pointer-events: none;
}
.ambient-1 { width: 340px; height: 340px; left: -70px; top: 10vh; background: rgba(149, 206, 255, 0.26); }
.ambient-2 { width: 260px; height: 260px; right: -30px; top: 6vh; background: rgba(255, 202, 236, 0.24); animation-delay: -6s; }
.ambient-3 { width: 300px; height: 300px; right: 12vw; bottom: 10vh; background: rgba(180, 255, 228, 0.2); animation-delay: -3s; }

@keyframes floatBlob {
  0%, 100% { transform: translate3d(0,0,0) scale(1); }
  50% { transform: translate3d(0,-22px,0) scale(1.06); }
}

.page-shell {
  position: relative;
  z-index: 1;
  width: min(1380px, calc(100% - 36px));
  margin: 20px auto;
  padding: 18px;
  border: 1px solid rgba(255,255,255,.82);
  border-radius: 38px;
  background: rgba(255,255,255,.18);
  box-shadow: 0 30px 90px rgba(65, 55, 90, .10);
  backdrop-filter: blur(18px);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
p, h1, h2, h3 { margin-top: 0; }

.glass-card {
  border: 1px solid rgba(255,255,255,.75);
  background:
    linear-gradient(135deg, rgba(255,255,255,.74), rgba(255,255,255,.34)),
    linear-gradient(135deg, rgba(167,211,255,.12), rgba(250, 219, 255, .10));
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px) saturate(1.14);
}

.site-header, .site-footer {
  display: grid;
  align-items: center;
  gap: 20px;
  min-height: var(--header-height);
  padding: 0 26px;
  border-radius: 999px;
}
.site-header {
  position: sticky;
  top: 14px;
  z-index: 40;
  grid-template-columns: 180px 1fr 240px 52px;
}
.site-footer {
  margin-top: 20px;
  grid-template-columns: 180px 1fr auto;
  padding-top: 16px;
  padding-bottom: 16px;
}

.brand {
  font-family: "Cormorant Garamond", serif;
  font-size: 2.25rem;
  line-height: 1;
  letter-spacing: -.04em;
}
.brand.small { font-size: 1.65rem; }

.global-nav, .footer-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(18px, 2.8vw, 42px);
  flex-wrap: wrap;
}

.nav-link {
  position: relative;
  font-size: 0.93rem;
  color: rgba(33,36,45,.88);
  letter-spacing: .02em;
  transition: transform .25s ease, color .25s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -7px;
  width: 100%;
  height: 1.5px;
  transform: scaleX(0);
  transform-origin: left;
  background: linear-gradient(90deg, rgba(140,197,255,1), rgba(232,200,255,1));
  transition: transform .3s ease;
}

.nav-link:hover, .nav-link.is-active { color: #11141b; transform: translateY(-1px); }
.nav-link:hover::after, .nav-link.is-active::after { transform: scaleX(1); }

.search {
  display: flex;
  align-items: center;
  height: 46px;
  padding-left: 18px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.8);
  background: rgba(255,255,255,.42);
}
.search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  font: inherit;
  color: var(--ink);
}
.search button, .menu-button, .bookmark {
  cursor: pointer;
  border: 0;
  color: var(--ink);
  background: rgba(255,255,255,.56);
}
.search button {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  margin-right: 4px;
}
.menu-button, .bookmark {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.78);
}
.menu-button { display: none; }

main { display: grid; gap: 18px; margin-top: 18px; }
.hero, .page-hero { overflow: hidden; border-radius: var(--radius-xl); }
.hero {
  display: grid;
  grid-template-columns: 44% 56%;
  min-height: 620px;
}
.page-hero.compact {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 30px;
  align-items: center;
  padding: clamp(30px, 4vw, 48px);
}
.hero-copy { padding: clamp(34px, 5vw, 72px); position: relative; z-index: 2; }
.hero-visual { position: relative; min-height: 620px; overflow: hidden; }
.hero-visual img {
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(.93) brightness(1.05);
  transform: scale(1.02);
  transition: transform 1.6s ease;
}
.hero:hover .hero-visual img { transform: scale(1.06); }
.hero-overlay {
  position: absolute; inset: 0;
  background: radial-gradient(circle at 18% 72%, rgba(255,255,255,.92), transparent 24%), linear-gradient(90deg, rgba(255,255,255,.72) 0%, rgba(255,255,255,.16) 44%, transparent 100%);
}
.hero-title-watermark {
  position: absolute; right: 48px; bottom: 48px; z-index: 2;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(3rem, 5.5vw, 5.2rem);
  line-height: .82;
  color: rgba(255,255,255,.4);
  text-shadow: 0 0 22px rgba(76,72,83,.18);
}

.eyebrow, .section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: .84rem;
  color: #4c505c;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.eyebrow span {
  width: 58px; height: 1px; background: rgba(73,77,89,.28);
}
.section-headline { margin-bottom: 20px; }
.section-headline h2 { margin-top: 8px; }
h1 {
  font-family: "Noto Serif JP", serif;
  font-size: clamp(2.55rem, 5vw, 4.8rem);
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: .03em;
  margin: 20px 0 18px;
}
h2 {
  font-family: "Noto Serif JP", serif;
  font-size: 1.5rem;
  font-weight: 600;
}
h3 { font-family: "Noto Serif JP", serif; font-weight: 600; }
.lead {
  width: min(100%, 620px);
  color: #444955;
  line-height: 2;
  font-size: 0.98rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.button, .pill-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid rgba(40,44,54,.15);
  transition: transform .26s ease, box-shadow .26s ease, background .26s ease;
}
.button:hover, .pill-link:hover { transform: translateY(-2px); box-shadow: 0 16px 30px rgba(70,62,92,.12); }
.button.primary {
  color: #13202d;
  background: linear-gradient(135deg, rgba(162,212,255,.75), rgba(232,217,255,.78));
}
.button.ghost, .pill-link { background: rgba(255,255,255,.44); }
.text-link { color: #39465f; }

.mini-card {
  margin-top: 40px;
  width: min(500px, 100%);
  display: grid;
  grid-template-columns: 136px 1fr 48px;
  gap: 22px;
  align-items: center;
  padding: 14px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255,255,255,.76);
  background: rgba(255,255,255,.54);
}
.mini-card img { height: 160px; border-radius: 16px; object-fit: cover; }
.kana { font-size: 1.42rem; margin-bottom: 6px; font-family: "Noto Serif JP", serif; }
.muted { color: var(--muted); font-size: .9rem; }
.rating-line { display: flex; gap: 10px; align-items: baseline; margin: 16px 0; flex-wrap: wrap; }
.rating-line strong, .big-score { font-size: 2rem; font-weight: 600; }
.big-score { display: block; font-size: 3.6rem; line-height: 1; }
.stars { color: var(--gold); letter-spacing: .12em; }

.stats-grid, .content-grid, .profile-grid {
  display: grid;
  gap: 18px;
}
.stats-grid { grid-template-columns: repeat(3, 1fr); }
.stat-card, .review-panel, .score-panel, .horizontal-section, .author-card, .other-reviews, .review-detail-shell {
  padding: clamp(24px, 3vw, 40px);
  border-radius: var(--radius-xl);
}
.stat-card strong { display: block; font-size: 1.5rem; margin: 12px 0 8px; }
.stat-label { font-size: .82rem; letter-spacing: .06em; color: #4e5767; text-transform: uppercase; }
.content-grid { grid-template-columns: 1.05fr .95fr; }
.review-panel p, .richtext p { line-height: 2.05; color: #424856; }
.aurora-card {
  margin-top: 28px;
  padding: 24px;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,.76);
  background:
    radial-gradient(circle at 10% 12%, rgba(176,219,255,.58), transparent 34%),
    radial-gradient(circle at 82% 72%, rgba(190,255,230,.56), transparent 30%),
    radial-gradient(circle at 88% 14%, rgba(255,212,238,.55), transparent 32%),
    rgba(255,255,255,.36);
}
.quote-card p { margin: 0; font-family: "Noto Serif JP", serif; font-size: 1.12rem; line-height: 1.8; }
.score-head {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 30px;
  align-items: center;
}
.radar {
  position: relative; height: 220px; display: grid; place-items: center;
}
.radar::before {
  content: ""; width: 154px; height: 154px;
  border: 1px solid rgba(120,150,170,.24);
  clip-path: polygon(50% 0, 98% 35%, 80% 100%, 20% 100%, 2% 35%);
}
.radar-shape {
  position: absolute; width: 118px; height: 118px;
  background: linear-gradient(135deg, rgba(181,238,244,.58), rgba(212,206,255,.46));
  border: 1px solid rgba(130,180,200,.34);
  clip-path: polygon(50% 0, 94% 36%, 76% 94%, 23% 92%, 9% 37%);
  animation: pulseFloat 5s ease-in-out infinite;
}
@keyframes pulseFloat { 0%,100% { transform: scale(1); } 50% { transform: scale(1.05); } }
.radar span {
  position: absolute; left: 50%; top: 50%; font-size: .78rem; color: #5e6470;
  transform: rotate(calc(var(--i) * 72deg)) translateY(-112px) rotate(calc(var(--i) * -72deg)) translateX(-50%);
}
.score-list { display: grid; gap: 10px; margin-top: 28px; }
.score-item {
  display: grid; grid-template-columns: 44px 1fr 52px; gap: 14px; align-items: center;
  min-height: 68px; padding: 12px 14px; border-radius: 18px;
  border: 1px solid rgba(255,255,255,.72); background: rgba(255,255,255,.35);
}
.score-icon {
  width: 38px; height: 38px; display: grid; place-items: center;
  border-radius: 50%; border: 1px solid rgba(255,255,255,.84); background: rgba(255,255,255,.56);
}
.score-item h3, .score-item p { margin-bottom: 0; }
.score-item p { margin-top: 4px; color: var(--muted); font-size: .84rem; }
.score-value { font-size: 1.35rem; }

.section-title {
  display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 20px; flex-wrap: wrap;
}
.section-title h2 { margin: 8px 0 0; }
.horizontal-section { overflow: hidden; }
.restaurant-cards, .review-list-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.restaurant-card, .review-list-card {
  position: relative; min-height: 210px; overflow: hidden; border-radius: 20px; padding: 20px; color: white;
  display: flex; flex-direction: column; justify-content: flex-end;
  box-shadow: 0 18px 30px rgba(35,25,52,.14);
}
.restaurant-card img, .review-list-card img, .masonry-card img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; transition: transform .8s ease;
}
.restaurant-card::after, .review-list-card::after, .masonry-card::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(0,0,0,.08), rgba(0,0,0,.56));
}
.restaurant-card > *, .review-list-card > *, .masonry-card > * { position: relative; z-index: 2; }
.restaurant-card:hover img, .review-list-card:hover img, .masonry-card:hover img { transform: scale(1.08); }

.author-body {
  display: grid; grid-template-columns: 96px 1fr; gap: 24px; align-items: center;
}
.author-body.vertical { grid-template-columns: 120px 1fr; }
.author-body img {
  width: 96px; height: 96px; object-fit: cover; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.7); box-shadow: 0 10px 20px rgba(50,50,72,.1);
}
.author-body.vertical img { width: 120px; height: 120px; }
.collection-list, .collection-grid {
  display: grid; gap: 14px;
}
.collection-list { grid-template-columns: 1fr; }
.collection-grid { grid-template-columns: repeat(3, 1fr); }
.collection-card {
  padding: 22px; border-radius: 22px;
  border: 1px solid rgba(255,255,255,.78);
  background: rgba(255,255,255,.38);
  transition: transform .28s ease, box-shadow .28s ease;
}
.collection-card:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(67,54,93,.12); }
.tag-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.tag {
  display: inline-flex; align-items: center; min-height: 34px; padding: 0 12px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.8); background: rgba(255,255,255,.48); font-size: .84rem;
}

.filter-inline { display: flex; gap: 12px; justify-content: end; flex-wrap: wrap; }
.input {
  min-height: 48px; width: 100%; padding: 0 16px; border-radius: 16px;
  border: 1px solid rgba(255,255,255,.8); background: rgba(255,255,255,.48);
  font: inherit; color: var(--ink);
}
.select { max-width: 240px; }
.textarea { min-height: 150px; padding-top: 14px; resize: vertical; }
.contact-form { display: grid; gap: 14px; max-width: 720px; }
.contact-form label { display: grid; gap: 8px; }
.check-list { display: grid; gap: 12px; margin: 16px 0 24px; }

.masonry-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.masonry-card {
  position: relative; min-height: 280px; border-radius: 22px; overflow: hidden; padding: 22px; color: white;
}
.masonry-card .meta, .review-list-card .meta { font-size: .84rem; opacity: .9; }
.masonry-card .title, .review-list-card h3 { font-size: 1.45rem; margin: 6px 0; }
.masonry-card .excerpt, .review-list-card p { color: rgba(255,255,255,.9); line-height: 1.75; }
.review-list-card { min-height: 320px; }
.review-list-card .cta { margin-top: 14px; font-size: .95rem; }

.review-detail-page { display: grid; }
.review-detail-shell {
  display: grid; gap: 18px;
}
.review-detail-hero {
  position: relative; min-height: 420px; overflow: hidden; border-radius: 28px;
}
.review-detail-hero img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.review-detail-hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.15), rgba(0,0,0,.58));
}
.review-detail-hero-content {
  position: absolute; inset: auto 0 0 0; z-index: 2; padding: 36px; color: white;
}
.review-detail-content {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 18px;
}
.detail-copy, .detail-side {
  padding: 30px; border-radius: 26px; border: 1px solid rgba(255,255,255,.78); background: rgba(255,255,255,.38);
}
.detail-copy p { line-height: 2.1; color: #454c59; }
.metric-stack { display: grid; gap: 12px; }
.metric-row {
  display: grid; grid-template-columns: 1fr 56px; gap: 12px; align-items: center;
  padding-bottom: 12px; border-bottom: 1px solid rgba(49,58,76,.08);
}
.metric-bar {
  position: relative; margin-top: 6px; height: 8px; border-radius: 999px; overflow: hidden; background: rgba(50,60,80,.08);
}
.metric-fill {
  position: absolute; inset: 0 auto 0 0; border-radius: inherit;
  background: linear-gradient(90deg, rgba(152,209,255,.95), rgba(231,201,255,.95));
}
.detail-meta { display: grid; gap: 14px; }
.detail-meta-item {
  padding: 16px; border-radius: 18px; border: 1px solid rgba(255,255,255,.78); background: rgba(255,255,255,.36);
}
.breadcrumb { font-size: .86rem; color: #5d6370; margin-bottom: 8px; }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s ease, transform .8s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.tilt-card { transition: transform .28s ease, box-shadow .28s ease; }
.tilt-card:hover { transform: translateY(-4px) rotateX(1deg) rotateY(-1deg); }

.socials { display: flex; gap: 14px; align-items: center; }
.socials a {
  width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.8); background: rgba(255,255,255,.44);
}

@media (max-width: 1120px) {
  .site-header { grid-template-columns: 1fr auto auto; }
  .global-nav { display: none; }
  .menu-button { display: inline-grid; place-items: center; }
  .hero, .content-grid, .profile-grid, .review-detail-content, .page-hero.compact { grid-template-columns: 1fr; }
  .hero-visual { min-height: 420px; order: -1; }
  .stats-grid, .restaurant-cards, .review-list-grid, .masonry-grid, .collection-grid { grid-template-columns: repeat(2, 1fr); }
  .site-footer { grid-template-columns: 1fr; text-align: center; border-radius: 30px; }
}

@media (max-width: 720px) {
  .page-shell { width: min(100% - 14px, 1380px); padding: 10px; margin: 8px auto; border-radius: 26px; }
  .site-header { grid-template-columns: 1fr auto; padding: 12px 14px; border-radius: 22px; }
  .search { grid-column: 1 / -1; }
  .site-footer { border-radius: 22px; }
  .stats-grid, .restaurant-cards, .review-list-grid, .masonry-grid, .collection-grid { grid-template-columns: 1fr; }
  .mini-card, .score-head, .author-body, .author-body.vertical { grid-template-columns: 1fr; }
  .hero-copy, .stat-card, .review-panel, .score-panel, .horizontal-section, .author-card, .other-reviews, .review-detail-shell { padding: 22px; }
  .hero-title-watermark { right: 24px; bottom: 24px; }
}


/* v3: opening animation and visual-first landing */
body.is-loading {
  overflow: hidden;
}

.opening {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 42%, rgba(255,255,255,.82), rgba(248,246,250,.72) 32%, rgba(245,242,248,.94) 68%),
    linear-gradient(135deg, #fbfaff, #f5f0f7);
  animation: openingExit .95s cubic-bezier(.77,0,.18,1) 2.25s forwards;
}

.opening::before {
  content: "";
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  background:
    conic-gradient(from 180deg, rgba(157,213,255,.0), rgba(157,213,255,.52), rgba(243,202,255,.48), rgba(188,255,231,.46), rgba(157,213,255,.0));
  filter: blur(42px);
  opacity: .75;
  animation: openingAura 2.7s ease-in-out forwards;
}

.opening-orb {
  position: absolute;
  width: min(42vw, 420px);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 24%, rgba(255,255,255,.98), rgba(255,255,255,.18) 28%, transparent 42%),
    radial-gradient(circle at 72% 68%, rgba(190,255,232,.55), transparent 34%),
    radial-gradient(circle at 28% 72%, rgba(156,211,255,.52), transparent 36%),
    radial-gradient(circle at 76% 28%, rgba(245,205,255,.52), transparent 35%);
  box-shadow:
    inset 0 0 80px rgba(255,255,255,.78),
    0 30px 120px rgba(95,78,128,.18);
  animation: openingOrb 2.4s cubic-bezier(.2,.8,.2,1) forwards;
}

.opening-logo {
  position: relative;
  z-index: 2;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(3.4rem, 9vw, 7.8rem);
  letter-spacing: -.055em;
  color: rgba(31,34,43,.94);
  opacity: 0;
  transform: translateY(16px);
  animation: openingText .9s ease .28s forwards;
}

.opening-line {
  position: absolute;
  z-index: 3;
  width: min(360px, 44vw);
  height: 1px;
  margin-top: 124px;
  background: linear-gradient(90deg, transparent, rgba(36,38,47,.45), transparent);
  transform: scaleX(0);
  animation: openingLine 1.15s ease .7s forwards;
}

.opening-caption {
  position: absolute;
  z-index: 3;
  margin-top: 176px;
  font-size: .78rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(56,60,72,.62);
  opacity: 0;
  transform: translateY(8px);
  animation: openingCaption .8s ease 1.02s forwards;
}

.page-shell {
  opacity: 0;
  transform: translateY(18px) scale(.988);
  animation: pageEntrance 1.05s cubic-bezier(.2,.8,.2,1) 2.55s forwards;
}

@keyframes openingAura {
  0% { transform: scale(.72) rotate(0deg); opacity: 0; }
  35% { opacity: .85; }
  100% { transform: scale(1.18) rotate(72deg); opacity: .42; }
}

@keyframes openingOrb {
  0% { transform: scale(.64) rotate(-18deg); opacity: 0; filter: blur(8px); }
  45% { opacity: 1; filter: blur(0); }
  100% { transform: scale(1.06) rotate(18deg); opacity: .82; }
}

@keyframes openingText {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes openingLine {
  to { transform: scaleX(1); }
}

@keyframes openingCaption {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes openingExit {
  to { opacity: 0; visibility: hidden; transform: scale(1.025); }
}

@keyframes pageEntrance {
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.hero-editorial {
  grid-template-columns: 1.12fr .88fr;
  min-height: 680px;
  align-items: stretch;
  position: relative;
}

.hero-editorial::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  pointer-events: none;
  background:
    radial-gradient(circle at 20% 18%, rgba(255,255,255,.46), transparent 24%),
    radial-gradient(circle at 78% 72%, rgba(214,245,255,.28), transparent 28%);
  z-index: 2;
}

.hero-art {
  position: relative;
  min-height: 680px;
  overflow: hidden;
  isolation: isolate;
}

.hero-art::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent 0%, rgba(255,255,255,.58) 76%, rgba(255,255,255,.78) 100%),
    radial-gradient(circle at 28% 74%, rgba(255,255,255,.72), transparent 28%);
  z-index: 3;
  pointer-events: none;
}

.hero-art::after {
  content: "Quiet Dining";
  position: absolute;
  left: 38px;
  bottom: 32px;
  z-index: 4;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(3.2rem, 7vw, 7.2rem);
  line-height: .8;
  color: rgba(255,255,255,.36);
  letter-spacing: -.04em;
  text-shadow: 0 18px 48px rgba(29,30,40,.18);
}

.hero-art-image {
  position: absolute;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.72);
  box-shadow: 0 32px 80px rgba(37,30,52,.18);
}

.hero-art-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.92) brightness(1.04);
}

.hero-art-image.image-one {
  inset: 0;
  border-radius: 30px 0 0 30px;
}

.hero-art-image.image-one img {
  animation: slowZoom 12s ease-in-out infinite alternate;
}

.hero-art-image.image-two {
  width: min(42%, 360px);
  height: 44%;
  right: 7%;
  bottom: 9%;
  z-index: 4;
  border-radius: 28px;
  transform: rotate(-2deg);
}

.hero-art-image.image-two img {
  animation: slowZoom 10s ease-in-out infinite alternate-reverse;
}

.hero-glow-card {
  position: absolute;
  z-index: 5;
  left: 42px;
  top: 42px;
  min-width: 230px;
  padding: 20px 22px;
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,.72);
  background: rgba(255,255,255,.36);
  backdrop-filter: blur(20px) saturate(1.18);
  box-shadow: 0 18px 44px rgba(35,31,51,.14);
}

.hero-glow-card span {
  display: block;
  font-family: "Cormorant Garamond", serif;
  font-size: 2.15rem;
  letter-spacing: -.04em;
}

.hero-glow-card small {
  display: block;
  margin-top: 6px;
  color: rgba(38,43,55,.68);
  letter-spacing: .12em;
  text-transform: uppercase;
  font-size: .68rem;
}

.hero-copy-minimal {
  align-self: center;
  padding-left: clamp(26px, 4vw, 56px);
  padding-right: clamp(26px, 5vw, 74px);
}

.hero-copy-minimal h1 {
  font-size: clamp(3rem, 5.6vw, 5.7rem);
}

@keyframes slowZoom {
  from { transform: scale(1); }
  to { transform: scale(1.08); }
}

.concept-section {
  border-radius: var(--radius-xl);
  padding: clamp(28px, 4vw, 52px);
}

.concept-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.concept-grid article {
  min-height: 220px;
  padding: 24px;
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,.72);
  background:
    linear-gradient(135deg, rgba(255,255,255,.48), rgba(255,255,255,.22)),
    radial-gradient(circle at 20% 18%, rgba(170,215,255,.28), transparent 32%),
    radial-gradient(circle at 90% 82%, rgba(232,205,255,.25), transparent 34%);
  transition: transform .3s ease, box-shadow .3s ease;
}

.concept-grid article:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(68,58,92,.12);
}

.concept-number {
  display: inline-block;
  margin-bottom: 28px;
  font-family: "Cormorant Garamond", serif;
  font-size: 2.2rem;
  color: rgba(64,70,86,.36);
}

.concept-grid h3 {
  font-family: "Cormorant Garamond", "Noto Serif JP", serif;
  font-size: 1.8rem;
  margin-bottom: 12px;
}

.concept-grid p {
  color: #555c68;
  line-height: 1.9;
}

@media (max-width: 1120px) {
  .hero-editorial {
    grid-template-columns: 1fr;
  }

  .hero-art {
    min-height: 520px;
  }

  .hero-copy-minimal {
    padding: 34px;
  }

  .concept-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .opening-orb {
    width: 72vw;
  }

  .opening-line {
    margin-top: 104px;
  }

  .opening-caption {
    margin-top: 150px;
    font-size: .64rem;
  }

  .hero-art {
    min-height: 430px;
  }

  .hero-art-image.image-two {
    width: 52%;
    height: 34%;
    right: 18px;
    bottom: 24px;
  }

  .hero-glow-card {
    left: 20px;
    top: 20px;
  }
}


/* v6 header centering + floating transparent spheres */
.site-header-centered {
  position: sticky;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 44px;
  padding-left: 28px;
  padding-right: 28px;
}

.site-header-centered .global-nav {
  justify-content: center;
}

.site-header-centered .search {
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  width: min(250px, 22vw);
}

.site-header-centered .menu-button {
  display: none;
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
}

.hero-copy-minimal h1 {
  letter-spacing: -.03em;
}

/* floating transparent spheres */
.floating-sphere-layer {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.floating-sphere {
  position: absolute;
  display: block;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.46);
  background:
    radial-gradient(circle at 30% 28%, rgba(255,255,255,.82), rgba(255,255,255,.22) 24%, transparent 42%),
    radial-gradient(circle at 72% 74%, rgba(214, 229, 255, .18), transparent 32%),
    linear-gradient(135deg, rgba(255,255,255,.16), rgba(255,255,255,.05));
  box-shadow:
    inset -10px -14px 26px rgba(255,255,255,.16),
    inset 10px 8px 18px rgba(255,255,255,.18),
    0 20px 54px rgba(116, 121, 136, .07);
  backdrop-filter: blur(10px) saturate(1.08);
  opacity: .78;
}

.floating-sphere::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(circle at 34% 28%, rgba(255,255,255,.92), transparent 18%),
    radial-gradient(circle at 64% 68%, rgba(255, 223, 238, .14), transparent 28%);
  mix-blend-mode: screen;
}

.sphere-a {
  width: 126px;
  height: 126px;
  left: 7%;
  top: 24%;
  animation: sphereDriftA 18s ease-in-out infinite;
}
.sphere-b {
  width: 176px;
  height: 176px;
  right: 8%;
  top: 18%;
  animation: sphereDriftB 22s ease-in-out infinite;
}
.sphere-c {
  width: 88px;
  height: 88px;
  left: 20%;
  bottom: 14%;
  animation: sphereDriftC 16s ease-in-out infinite;
}
.sphere-d {
  width: 132px;
  height: 132px;
  right: 22%;
  bottom: 16%;
  animation: sphereDriftD 20s ease-in-out infinite;
}

@keyframes sphereDriftA {
  0%,100% { transform: translate3d(0,0,0) scale(1); }
  25% { transform: translate3d(18px,-20px,0) scale(1.04); }
  50% { transform: translate3d(34px,8px,0) scale(.98); }
  75% { transform: translate3d(10px,22px,0) scale(1.02); }
}
@keyframes sphereDriftB {
  0%,100% { transform: translate3d(0,0,0) scale(1); }
  25% { transform: translate3d(-18px,18px,0) scale(1.05); }
  50% { transform: translate3d(-34px,-12px,0) scale(.98); }
  75% { transform: translate3d(-8px,-24px,0) scale(1.02); }
}
@keyframes sphereDriftC {
  0%,100% { transform: translate3d(0,0,0) scale(1); }
  25% { transform: translate3d(14px,-16px,0) scale(1.04); }
  50% { transform: translate3d(22px,10px,0) scale(.99); }
  75% { transform: translate3d(4px,18px,0) scale(1.02); }
}
@keyframes sphereDriftD {
  0%,100% { transform: translate3d(0,0,0) scale(1); }
  25% { transform: translate3d(-14px,-14px,0) scale(1.03); }
  50% { transform: translate3d(-28px,10px,0) scale(.98); }
  75% { transform: translate3d(-6px,18px,0) scale(1.02); }
}

.page-shell,
.opening {
  z-index: 1;
}

@media (max-width: 1120px) {
  .site-header-centered {
    justify-content: flex-start;
  }

  .site-header-centered .search {
    width: min(220px, 28vw);
  }
}

@media (max-width: 720px) {
  .site-header-centered {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    padding: 12px 16px;
  }

  .site-header-centered .global-nav {
    display: none;
  }

  .site-header-centered .search {
    position: static;
    transform: none;
    width: 100%;
    grid-column: 1 / -1;
  }

  .site-header-centered .menu-button {
    display: inline-grid;
    place-items: center;
    position: static;
    transform: none;
  }

  .sphere-a,
  .sphere-b,
  .sphere-c,
  .sphere-d {
    opacity: .52;
  }
}


/* v7 hero reset to requested reference and centered footer */
.hero-reference {
  position: relative;
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  min-height: 760px;
  overflow: hidden;
  border-radius: 34px;
  background:
    radial-gradient(circle at 20% 16%, rgba(255,255,255,.42), transparent 24%),
    radial-gradient(circle at 88% 10%, rgba(232,241,249,.22), transparent 18%),
    radial-gradient(circle at 86% 84%, rgba(243,235,230,.18), transparent 26%),
    linear-gradient(135deg, rgba(245,241,237,.96), rgba(238,234,230,.94) 48%, rgba(244,240,236,.96));
  border: 1px solid rgba(255,255,255,.84);
  box-shadow: 0 28px 84px rgba(87,74,82,.10);
}

.hero-reference-copy {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(42px, 6vw, 92px) clamp(30px, 5vw, 70px);
}

.hero-wordmark {
  display: inline-block;
  width: fit-content;
  margin-bottom: 38px;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(3.2rem, 4vw, 4.9rem);
  line-height: 1;
  letter-spacing: -.055em;
  color: #4c5160;
}

.eyebrow-reference {
  margin-bottom: 28px;
  color: rgba(91, 95, 104, .78);
  letter-spacing: .09em;
}

.eyebrow-reference span {
  width: 54px;
  background: rgba(102,105,112,.24);
}

.hero-reference h1 {
  margin: 0 0 28px;
  font-size: clamp(4rem, 7.4vw, 6.9rem);
  line-height: .93;
  letter-spacing: -.045em;
  color: #2f3440;
}

.hero-reference .lead {
  max-width: 520px;
  margin-top: 8px;
  font-size: 1rem;
  line-height: 2.08;
  color: rgba(82,86,94,.82);
}

.hero-reference .hero-actions {
  margin-top: 34px;
  gap: 14px;
}

.hero-primary-button,
.hero-secondary-button {
  min-height: 54px;
  padding: 0 24px;
  gap: 10px;
  box-shadow: 0 14px 28px rgba(88,80,90,.06);
}

.hero-primary-button {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(243,239,248,.92), rgba(229,236,246,.90) 46%, rgba(240,244,233,.84));
  border: 1px solid rgba(255,255,255,.9);
}
.hero-primary-button::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 16%, rgba(255,255,255,.68) 50%, transparent 84%);
  transform: translateX(-160%);
  animation: softShine 7s ease-in-out infinite;
}
.hero-secondary-button {
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(68,68,74,.10);
}

.hero-reference-visual {
  position: relative;
  min-height: 760px;
  z-index: 2;
}

.hero-aurora {
  position: absolute;
  border-radius: 50%;
  filter: blur(20px);
  pointer-events: none;
}
.veil-a {
  width: 240px;
  height: 240px;
  right: 4%;
  top: 6%;
  background: radial-gradient(circle, rgba(255,255,255,.46), rgba(232,236,248,.14), transparent 68%);
  animation: veilFloat 15s ease-in-out infinite;
}
.veil-b {
  width: 220px;
  height: 220px;
  right: 18%;
  bottom: 10%;
  background: radial-gradient(circle, rgba(239,229,240,.28), rgba(255,255,255,.04), transparent 70%);
  animation: veilFloat 18s ease-in-out infinite reverse;
}

.reference-frame {
  position: absolute;
  overflow: hidden;
  border-radius: 26px;
  border: 1.2px solid rgba(255,255,255,.86);
  background: linear-gradient(135deg, rgba(255,255,255,.18), rgba(255,255,255,.06));
  box-shadow: 0 26px 70px rgba(88,76,82,.10);
}
.reference-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(145deg, rgba(255,255,255,.30), transparent 22%, transparent 78%, rgba(255,255,255,.18));
  z-index: 2;
}
.reference-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.9) brightness(1.04);
}
.reference-main {
  width: min(66%, 520px);
  aspect-ratio: .88 / 1;
  right: 8%;
  top: 8%;
}
.reference-sub {
  width: min(28%, 220px);
  aspect-ratio: .86 / 1;
  right: 2%;
  bottom: 14%;
  border-radius: 20px;
}

.site-footer-centered {
  grid-template-columns: 1fr auto 1fr;
  padding-left: 24px;
  padding-right: 24px;
}
.site-footer-centered .footer-nav {
  grid-column: 2;
  justify-content: center;
}
.site-footer-centered .socials {
  grid-column: 3;
  justify-self: end;
}

@media (max-width: 1120px) {
  .hero-reference {
    grid-template-columns: 1fr;
  }
  .hero-reference-copy {
    order: 2;
    padding-top: 24px;
  }
  .hero-reference-visual {
    min-height: 560px;
  }
  .reference-main {
    width: min(70%, 480px);
    right: 12%;
    top: 8%;
  }
  .reference-sub {
    width: min(30%, 210px);
    right: 8%;
    bottom: 12%;
  }
  .site-footer-centered {
    grid-template-columns: 1fr;
  }
  .site-footer-centered .footer-nav,
  .site-footer-centered .socials {
    grid-column: auto;
    justify-self: center;
  }
}

@media (max-width: 720px) {
  .hero-wordmark {
    font-size: clamp(2.6rem, 12vw, 4rem);
    margin-bottom: 24px;
  }
  .hero-reference h1 {
    font-size: clamp(2.8rem, 13vw, 4.6rem);
    line-height: 1.02;
  }
  .hero-reference .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }
  .hero-primary-button,
  .hero-secondary-button {
    width: 100%;
    justify-content: center;
  }
  .hero-reference-visual {
    min-height: 420px;
  }
  .reference-main {
    width: 80%;
    right: 10%;
    top: 10%;
  }
  .reference-sub {
    width: 32%;
    min-width: 140px;
    right: 4%;
    bottom: 10%;
  }
}


/* v8: full-width layout, fixed header, updated hero heading */
.page-shell {
  width: calc(100vw - 10px) !important;
  max-width: none !important;
  margin: 5px auto !important;
  padding: 14px !important;
  border-radius: 30px !important;
}

#site-header {
  min-height: 86px;
}

.site-header,
.site-header-centered {
  position: fixed !important;
  top: 10px !important;
  left: 10px !important;
  right: 10px !important;
  width: auto !important;
  z-index: 1000 !important;
}

main {
  margin-top: 10px;
}

.hero-reference {
  min-height: calc(100vh - 120px);
}

.hero-reference h1 {
  letter-spacing: -.04em;
}

@media (max-width: 1120px) {
  .page-shell {
    width: calc(100vw - 8px) !important;
    margin: 4px auto !important;
  }
}

@media (max-width: 720px) {
  .page-shell {
    width: calc(100vw - 4px) !important;
    margin: 2px auto !important;
    padding: 8px !important;
    border-radius: 22px !important;
  }

  #site-header {
    min-height: 122px;
  }

  .site-header,
  .site-header-centered {
    top: 6px !important;
    left: 6px !important;
    right: 6px !important;
  }

  .hero-reference {
    min-height: auto;
  }
}


/* v9: unify background and remove boxed / sectioned feeling */
html, body {
  background:
    radial-gradient(circle at 50% 0%, rgba(255,255,255,.34), transparent 34%),
    linear-gradient(180deg, #f3efeb 0%, #f2eeea 54%, #f4f0ec 100%) !important;
}

body {
  min-height: 100vh;
}

body::before {
  opacity: .10 !important;
}

.ambient-1,
.ambient-2,
.ambient-3 {
  background: rgba(255,255,255,.12) !important;
  filter: blur(54px) !important;
}

.page-shell {
  width: 100vw !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 12px 28px 48px !important;
  border: none !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}

#site-header {
  min-height: 90px;
}

.site-header,
.site-header-centered {
  left: 20px !important;
  right: 20px !important;
  top: 16px !important;
  border: 1px solid rgba(255,255,255,.72) !important;
  background:
    linear-gradient(135deg, rgba(255,255,255,.54), rgba(255,255,255,.26)) !important;
  box-shadow: 0 10px 24px rgba(72, 66, 78, .04) !important;
  backdrop-filter: blur(16px) saturate(1.06) !important;
}

main {
  gap: 52px !important;
  margin-top: 0 !important;
  padding-top: 10px;
}

.hero-reference,
.hero,
.page-hero.compact {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}

.hero-reference::before,
.hero-reference::after {
  display: none !important;
}

.hero-reference {
  min-height: calc(100vh - 130px);
  padding-top: 34px;
}

.hero-reference-copy {
  padding-left: 28px !important;
}

.hero-reference .lead {
  max-width: 580px;
}

/* Remove section boundaries and side-cut feeling */
.concept-section,
.stat-card,
.review-panel,
.score-panel,
.horizontal-section,
.author-card,
.other-reviews,
.review-detail-shell,
.page-hero.compact,
.collection-card,
.score-item,
.aurora-card,
.site-footer,
.site-footer-centered,
.glass-card:not(.site-header):not(.site-header-centered) {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  backdrop-filter: none !important;
}

.concept-section,
.stat-card,
.review-panel,
.score-panel,
.horizontal-section,
.author-card,
.other-reviews,
.review-detail-shell,
.page-hero.compact {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.concept-grid article {
  border: 1px solid rgba(255,255,255,.44);
  background: rgba(255,255,255,.16);
  box-shadow: none;
}

.section-title {
  margin-bottom: 24px;
}

.site-footer,
.site-footer-centered {
  min-height: auto;
  margin-top: 40px;
  padding-top: 12px !important;
  padding-bottom: 12px !important;
}

.review-detail-hero {
  border-radius: 24px;
}

/* Keep image cards elegant while not feeling boxed */
.collection-card:hover,
.restaurant-card:hover,
.review-list-card:hover,
.masonry-card:hover {
  box-shadow: 0 14px 28px rgba(58,50,62,.10);
}

@media (max-width: 1120px) {
  .page-shell {
    padding: 10px 20px 40px !important;
  }

  .site-header,
  .site-header-centered {
    left: 14px !important;
    right: 14px !important;
  }

  .hero-reference {
    min-height: auto;
    padding-top: 18px;
  }
}

@media (max-width: 720px) {
  .page-shell {
    padding: 6px 14px 28px !important;
  }

  .site-header,
  .site-header-centered {
    left: 8px !important;
    right: 8px !important;
    top: 8px !important;
  }

  #site-header {
    min-height: 118px;
  }

  main {
    gap: 34px !important;
  }

  .hero-reference-copy {
    padding-left: 0 !important;
  }
}


/* v10: restore comfortable whitespace, refine headline, subtle aurora */
:root {
  --site-gutter: clamp(18px, 2vw, 34px);
  --section-gutter: clamp(10px, 1.25vw, 22px);
}

html, body {
  background:
    radial-gradient(circle at 14% 10%, rgba(220, 232, 248, .38), transparent 22%),
    radial-gradient(circle at 86% 12%, rgba(244, 224, 238, .28), transparent 20%),
    linear-gradient(180deg, #f4f0ec 0%, #f2eeea 54%, #f4f0ec 100%) !important;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(circle at 20% 24%, rgba(183, 212, 255, .12), transparent 16%),
    radial-gradient(circle at 80% 18%, rgba(248, 206, 238, .12), transparent 18%),
    radial-gradient(circle at 62% 72%, rgba(221, 255, 244, .08), transparent 16%);
  filter: blur(18px);
  animation: auroraShift 15s ease-in-out infinite alternate;
}

@keyframes auroraShift {
  from { transform: translate3d(0,0,0) scale(1); opacity: .8; }
  to { transform: translate3d(0,-10px,0) scale(1.03); opacity: 1; }
}

.page-shell {
  width: min(calc(100vw - 40px), 1700px) !important;
  max-width: none !important;
  margin: 0 auto !important;
  padding: 18px var(--site-gutter) 56px !important;
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
  border-radius: 0 !important;
}

#site-header {
  min-height: 98px;
}

.site-header,
.site-header-centered {
  left: max(20px, calc((100vw - min(calc(100vw - 40px), 1700px)) / 2 + 10px)) !important;
  right: max(20px, calc((100vw - min(calc(100vw - 40px), 1700px)) / 2 + 10px)) !important;
  top: 16px !important;
  border: 1px solid rgba(255,255,255,.78) !important;
  background:
    linear-gradient(135deg, rgba(255,255,255,.60), rgba(255,255,255,.30)) !important;
  box-shadow: 0 12px 26px rgba(78, 70, 84, .05) !important;
}

.site-header::before,
.site-header-centered::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background:
    radial-gradient(circle at 10% 50%, rgba(199, 225, 255, .18), transparent 18%),
    radial-gradient(circle at 90% 30%, rgba(247, 214, 237, .16), transparent 18%);
}

main {
  gap: 44px !important;
  margin-top: 0 !important;
  padding-top: 12px;
}

main > section,
.review-detail-page,
#site-footer {
  padding-inline: var(--section-gutter);
}

.hero-reference,
.hero,
.page-hero.compact {
  border-radius: 0 !important;
}

.hero-reference {
  min-height: calc(100vh - 148px);
  padding-top: 30px;
  padding-bottom: 18px;
  position: relative;
}

.hero-reference::before,
.hero-reference::after {
  display: block !important;
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: 0;
}

.hero-reference::before {
  inset: 2% 8% auto auto;
  width: 34vw;
  height: 34vw;
  max-width: 460px;
  max-height: 460px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(199, 225, 255, .16), rgba(255,255,255,0) 65%);
  filter: blur(18px);
}

.hero-reference::after {
  left: 6%;
  bottom: 8%;
  width: 26vw;
  height: 18vw;
  max-width: 360px;
  max-height: 260px;
  background: radial-gradient(circle, rgba(246, 213, 235, .14), rgba(255,255,255,0) 70%);
  filter: blur(24px);
}

.hero-reference-copy {
  padding: clamp(24px, 3vw, 50px) clamp(10px, 1.4vw, 20px) clamp(18px, 2vw, 24px) clamp(10px, 1.4vw, 20px) !important;
}

.hero-wordmark {
  margin-bottom: 28px;
}

.eyebrow-reference {
  margin-bottom: 22px;
}

.hero-reference h1 {
  font-size: clamp(3.6rem, 6vw, 5.9rem) !important;
  line-height: 1.03 !important;
  letter-spacing: -.048em !important;
  max-width: 580px;
  margin-bottom: 32px;
  text-wrap: balance;
}

.hero-reference .lead {
  max-width: 560px;
  font-size: 1rem;
  line-height: 2.05;
}

.hero-reference .hero-actions {
  margin-top: 32px;
  gap: 16px;
}

.hero-primary-button {
  background:
    linear-gradient(135deg, rgba(228, 238, 255, .95), rgba(241, 235, 252, .92) 52%, rgba(234, 248, 241, .88)) !important;
}

.hero-secondary-button {
  background: rgba(255,255,255,.40) !important;
}

.hero-reference-visual {
  padding-right: clamp(8px, 1vw, 18px);
}

.reference-main {
  right: clamp(12px, 2vw, 28px);
  top: clamp(10px, 1.8vw, 26px);
  width: min(64%, 500px);
}

.reference-sub {
  right: clamp(0px, .8vw, 10px);
  bottom: 13%;
  width: min(28%, 210px);
}

.stats-grid,
.profile-grid,
.content-grid,
.concept-section,
.horizontal-section,
.page-hero.compact,
.review-detail-shell {
  padding-top: 4px;
  padding-bottom: 4px;
}

.stat-card,
.review-panel,
.score-panel,
.author-card,
.other-reviews,
.collection-card,
.score-item,
.concept-grid article {
  border-radius: 24px !important;
}

.stat-card,
.review-panel,
.score-panel,
.author-card,
.other-reviews,
.collection-card,
.score-item {
  background: linear-gradient(135deg, rgba(255,255,255,.16), rgba(255,255,255,.08)) !important;
  border: 1px solid rgba(255,255,255,.36) !important;
}

.concept-grid article {
  background:
    linear-gradient(135deg, rgba(255,255,255,.22), rgba(255,255,255,.10)),
    radial-gradient(circle at 12% 18%, rgba(186, 216, 255, .12), transparent 32%),
    radial-gradient(circle at 88% 82%, rgba(242, 205, 233, .10), transparent 32%) !important;
  border: 1px solid rgba(255,255,255,.36) !important;
}

.stat-card strong,
.section-headline h2,
.section-title h2,
.concept-grid h3 {
  letter-spacing: -.02em;
}

.review-panel p,
.richtext p,
.collection-card p,
.stat-card p,
.author-card p,
.other-reviews p,
.concept-grid p {
  line-height: 1.95;
}

.site-footer,
.site-footer-centered {
  margin-top: 42px;
  padding-inline: var(--section-gutter) !important;
}

@media (max-width: 1120px) {
  .page-shell {
    width: min(calc(100vw - 28px), 1700px) !important;
    padding: 14px 18px 44px !important;
  }

  .site-header,
  .site-header-centered {
    left: 14px !important;
    right: 14px !important;
  }

  .hero-reference {
    min-height: auto;
    padding-top: 18px;
  }

  .hero-reference h1 {
    font-size: clamp(3.4rem, 8vw, 5rem) !important;
  }

  .reference-main {
    width: min(70%, 480px);
  }
}

@media (max-width: 720px) {
  .page-shell {
    width: min(calc(100vw - 16px), 1700px) !important;
    padding: 10px 10px 26px !important;
  }

  #site-header {
    min-height: 118px;
  }

  .site-header,
  .site-header-centered {
    left: 8px !important;
    right: 8px !important;
    top: 8px !important;
  }

  main {
    gap: 30px !important;
    padding-top: 4px;
  }

  main > section,
  .review-detail-page,
  #site-footer {
    padding-inline: 6px;
  }

  .hero-reference-copy {
    padding: 18px 6px 12px 6px !important;
  }

  .hero-reference h1 {
    font-size: clamp(3rem, 13vw, 4.5rem) !important;
    line-height: 1.04 !important;
    max-width: none;
  }

  .hero-reference .lead {
    max-width: none;
  }
}


/* v11: slightly wider gutters, fixed header, stronger hero visual */
:root {
  --site-gutter: clamp(26px, 2.8vw, 48px);
  --section-gutter: clamp(16px, 1.6vw, 30px);
}

.page-shell {
  width: min(calc(100vw - 56px), 1680px) !important;
  padding: 20px var(--site-gutter) 64px !important;
}

#site-header {
  min-height: 112px !important;
}

.site-header,
.site-header-centered {
  position: fixed !important;
  top: 18px !important;
  left: max(28px, calc((100vw - min(calc(100vw - 56px), 1680px)) / 2 + 10px)) !important;
  right: max(28px, calc((100vw - min(calc(100vw - 56px), 1680px)) / 2 + 10px)) !important;
  z-index: 1200 !important;
}

main {
  gap: 52px !important;
  padding-top: 18px;
}

main > section,
.review-detail-page,
#site-footer {
  padding-inline: var(--section-gutter);
}

.hero-reference {
  min-height: calc(100vh - 154px);
}

.hero-reference-copy {
  padding-left: clamp(16px, 1.8vw, 28px) !important;
  padding-right: clamp(14px, 1.5vw, 26px) !important;
}

.hero-reference h1 {
  max-width: 640px;
  margin-bottom: 36px;
}

.hero-reference .lead {
  max-width: 590px;
}

/* Make the right-side hero visual more eye-catching */
.hero-reference-visual {
  position: relative;
  min-height: 760px;
  padding-right: clamp(14px, 1.5vw, 30px);
}

.hero-reference-visual::before {
  content: "";
  position: absolute;
  inset: 10% 4% 12% 18%;
  border-radius: 50px;
  background:
    radial-gradient(circle at 24% 24%, rgba(195, 225, 255, .20), transparent 26%),
    radial-gradient(circle at 74% 18%, rgba(246, 214, 237, .18), transparent 22%),
    radial-gradient(circle at 58% 84%, rgba(224, 255, 244, .14), transparent 18%);
  filter: blur(22px);
  opacity: .95;
  z-index: 0;
}

.hero-reference-visual::after {
  content: "";
  position: absolute;
  width: min(22vw, 240px);
  height: min(22vw, 240px);
  right: 4%;
  top: 6%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.58), rgba(255,255,255,0) 68%);
  filter: blur(16px);
  opacity: .55;
  z-index: 0;
}

.reference-main,
.reference-sub {
  overflow: visible;
}

.reference-main {
  right: clamp(8px, 1.6vw, 22px);
  top: clamp(6px, 1.2vw, 18px);
  width: min(70%, 560px);
  border-radius: 30px;
  box-shadow: 0 30px 80px rgba(58, 50, 66, .16), 0 0 0 1px rgba(255,255,255,.55);
  transform: rotate(-1.4deg);
  z-index: 2;
}

.reference-main::before {
  background:
    linear-gradient(145deg, rgba(255,255,255,.44), transparent 18%, transparent 76%, rgba(255,255,255,.22)),
    linear-gradient(130deg, rgba(214, 236, 255, .16), rgba(255, 227, 242, .14), rgba(255,255,255,0)) !important;
}

.reference-main::after {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 36px;
  background: linear-gradient(135deg, rgba(205, 229, 255, .16), rgba(255,255,255,0) 30%, rgba(250, 218, 239, .14));
  filter: blur(12px);
  z-index: -1;
  opacity: .9;
}

.reference-main img {
  border-radius: 30px;
}

.reference-sub {
  right: clamp(-2px, .4vw, 8px);
  bottom: 9%;
  width: min(32%, 240px);
  border-radius: 24px;
  box-shadow: 0 24px 60px rgba(58, 50, 66, .16), 0 0 0 1px rgba(255,255,255,.56);
  transform: rotate(2.4deg);
  z-index: 3;
}

.reference-sub::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(255,255,255,.06), rgba(204, 228, 255, .14), rgba(255, 217, 236, .16));
  filter: blur(10px);
  z-index: -1;
}

.reference-sub img {
  border-radius: 24px;
}

.floating-panel {
  animation: subtleLift 7.5s ease-in-out infinite;
}

@keyframes subtleLift {
  0%, 100% { transform: translateY(0) rotate(var(--tilt, 0deg)); }
  50% { transform: translateY(-10px) rotate(var(--tilt, 0deg)); }
}

.reference-main { --tilt: -1.4deg; }
.reference-sub { --tilt: 2.4deg; }

.veil-a {
  width: 300px;
  height: 300px;
  right: 0%;
  top: 6%;
  opacity: .9;
}

.veil-b {
  width: 260px;
  height: 260px;
  right: 24%;
  bottom: 10%;
  opacity: .75;
}

@media (max-width: 1120px) {
  .page-shell {
    width: min(calc(100vw - 40px), 1680px) !important;
    padding: 16px 22px 50px !important;
  }

  #site-header {
    min-height: 104px !important;
  }

  .site-header,
  .site-header-centered {
    left: 20px !important;
    right: 20px !important;
  }

  .hero-reference-visual {
    min-height: 620px;
  }

  .reference-main {
    width: min(72%, 520px);
  }

  .reference-sub {
    width: min(31%, 220px);
    bottom: 8%;
  }
}

@media (max-width: 720px) {
  .page-shell {
    width: min(calc(100vw - 24px), 1680px) !important;
    padding: 10px 12px 30px !important;
  }

  #site-header {
    min-height: 122px !important;
  }

  .site-header,
  .site-header-centered {
    top: 10px !important;
    left: 12px !important;
    right: 12px !important;
  }

  main {
    gap: 34px !important;
  }

  .hero-reference-visual {
    min-height: 450px;
    padding-right: 0;
  }

  .reference-main {
    width: 82%;
    right: 8%;
    top: 8%;
    transform: rotate(-1deg);
  }

  .reference-sub {
    width: 34%;
    min-width: 150px;
    right: 2%;
    bottom: 6%;
    transform: rotate(2deg);
  }
}


/* v12 urgent fix: truly fixed header + more luxurious hero visual */
:root {
  --fixed-header-top: 16px;
  --fixed-header-side: clamp(18px, 2.6vw, 42px);
  --fixed-header-height: 76px;
}

/* Reserve space for the fixed header on every page */
#site-header {
  height: calc(var(--fixed-header-height) + var(--fixed-header-top) + 18px) !important;
  min-height: calc(var(--fixed-header-height) + var(--fixed-header-top) + 18px) !important;
}

/* Force the generated header to stay fixed above all content */
#site-header > .site-header,
#site-header > .site-header-centered,
.site-header.site-header-centered {
  position: fixed !important;
  top: var(--fixed-header-top) !important;
  left: var(--fixed-header-side) !important;
  right: var(--fixed-header-side) !important;
  width: auto !important;
  min-height: var(--fixed-header-height) !important;
  z-index: 99999 !important;
  isolation: isolate;
  transform: none !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 clamp(22px, 2.4vw, 36px) !important;
  border-radius: 999px !important;
  border: 1px solid rgba(255, 255, 255, .84) !important;
  background:
    radial-gradient(circle at 12% 50%, rgba(212, 232, 255, .30), transparent 20%),
    radial-gradient(circle at 90% 30%, rgba(250, 224, 243, .26), transparent 24%),
    linear-gradient(135deg, rgba(255,255,255,.72), rgba(255,255,255,.36)) !important;
  box-shadow:
    0 16px 46px rgba(58, 54, 70, .10),
    inset 0 1px 0 rgba(255,255,255,.72) !important;
  backdrop-filter: blur(24px) saturate(1.18) !important;
  -webkit-backdrop-filter: blur(24px) saturate(1.18) !important;
}

#site-header > .site-header .global-nav,
#site-header > .site-header-centered .global-nav {
  position: relative;
  z-index: 2;
  flex: 0 1 auto;
  justify-content: center !important;
  gap: clamp(24px, 4vw, 66px) !important;
}

#site-header > .site-header .search,
#site-header > .site-header-centered .search {
  position: absolute !important;
  right: clamp(14px, 2vw, 26px) !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: clamp(190px, 19vw, 310px) !important;
  z-index: 3;
  background: rgba(255,255,255,.46) !important;
  border: 1px solid rgba(255,255,255,.78) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.55);
}

#site-header > .site-header .menu-button,
#site-header > .site-header-centered .menu-button {
  position: absolute !important;
  right: clamp(14px, 2vw, 26px) !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
}

/* Keep all page sections safely below the fixed header */
main {
  padding-top: 0 !important;
}

/* Luxury direction for hero visual */
.hero-reference-visual {
  min-height: 780px !important;
  perspective: 1400px;
}

.hero-reference-visual::before {
  inset: 4% 0% 8% 10% !important;
  border-radius: 56px !important;
  background:
    radial-gradient(circle at 18% 24%, rgba(218, 239, 255, .34), transparent 26%),
    radial-gradient(circle at 76% 20%, rgba(255, 225, 244, .26), transparent 25%),
    radial-gradient(circle at 64% 82%, rgba(232, 255, 246, .18), transparent 22%),
    linear-gradient(135deg, rgba(255,255,255,.24), rgba(255,255,255,0)) !important;
  filter: blur(28px) !important;
  opacity: 1 !important;
}

.hero-reference-visual::after {
  width: min(26vw, 320px) !important;
  height: min(26vw, 320px) !important;
  right: 1% !important;
  top: 0% !important;
  background:
    radial-gradient(circle at 36% 30%, rgba(255,255,255,.76), rgba(255,255,255,.28) 28%, transparent 68%),
    radial-gradient(circle at 74% 76%, rgba(214,235,255,.18), transparent 36%) !important;
  filter: blur(20px) !important;
  opacity: .78 !important;
}

.reference-main {
  width: min(74%, 620px) !important;
  aspect-ratio: .92 / 1 !important;
  right: clamp(18px, 3vw, 54px) !important;
  top: clamp(0px, 1.4vw, 20px) !important;
  border-radius: 34px !important;
  border: 1px solid rgba(255,255,255,.88) !important;
  background:
    linear-gradient(135deg, rgba(255,255,255,.28), rgba(255,255,255,.08)) !important;
  box-shadow:
    0 36px 96px rgba(42, 36, 50, .18),
    0 0 0 1px rgba(255,255,255,.48),
    inset 0 1px 0 rgba(255,255,255,.48) !important;
  transform: rotate(-1.2deg) translateZ(0);
  overflow: hidden !important;
}

.reference-main::before {
  background:
    linear-gradient(135deg, rgba(255,255,255,.62), transparent 20%, transparent 70%, rgba(255,255,255,.28)),
    linear-gradient(115deg, rgba(205,230,255,.22), rgba(255,224,244,.18) 50%, rgba(244,232,190,.12)) !important;
  mix-blend-mode: screen;
}

.reference-main::after {
  inset: -14px !important;
  border-radius: 42px !important;
  background:
    conic-gradient(from 140deg, rgba(191,225,255,.28), rgba(255,223,244,.22), rgba(228,255,244,.18), rgba(255,244,210,.16), rgba(191,225,255,.28)) !important;
  filter: blur(18px) !important;
  opacity: .92 !important;
}

.reference-main img {
  border-radius: 34px !important;
  filter: saturate(1.02) contrast(1.03) brightness(1.04) !important;
  transform: scale(1.025);
  transition: transform 1.2s ease, filter 1.2s ease;
}

.reference-main:hover img {
  transform: scale(1.06);
  filter: saturate(1.08) contrast(1.04) brightness(1.06) !important;
}

.reference-sub {
  width: min(34%, 285px) !important;
  aspect-ratio: .92 / 1 !important;
  right: clamp(-4px, .7vw, 10px) !important;
  bottom: 7% !important;
  border-radius: 28px !important;
  border: 1px solid rgba(255,255,255,.90) !important;
  box-shadow:
    0 30px 76px rgba(42, 36, 50, .20),
    0 0 0 1px rgba(255,255,255,.52),
    inset 0 1px 0 rgba(255,255,255,.55) !important;
  transform: rotate(2.2deg) translateZ(40px);
  overflow: hidden !important;
}

.reference-sub::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  border-radius: inherit;
  background:
    linear-gradient(135deg, rgba(255,255,255,.48), transparent 24%, transparent 70%, rgba(255,255,255,.28)),
    radial-gradient(circle at 84% 10%, rgba(255,242,205,.22), transparent 26%);
}

.reference-sub::after {
  inset: -12px !important;
  border-radius: 36px !important;
  background:
    linear-gradient(135deg, rgba(209,232,255,.22), rgba(255, 218, 240, .22), rgba(236,255,246,.16)) !important;
  filter: blur(16px) !important;
  opacity: .95 !important;
}

.reference-sub img {
  border-radius: 28px !important;
  filter: saturate(1.06) contrast(1.04) brightness(1.06) !important;
  transform: scale(1.03);
}

/* Subtle luxury light sweep */
.reference-main .luxury-sweep,
.reference-sub .luxury-sweep {
  display: none;
}

.reference-frame {
  animation: luxuryFloat 8s ease-in-out infinite !important;
}

.reference-sub {
  animation-delay: -2.6s !important;
}

@keyframes luxuryFloat {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -12px; }
}

/* Add a fine grain / lens sheen only in hero visual */
.hero-reference-visual .hero-aurora {
  opacity: 1 !important;
  filter: blur(26px) !important;
}

.veil-a {
  background:
    radial-gradient(circle, rgba(218,238,255,.42), rgba(255,255,255,0) 68%) !important;
}

.veil-b {
  background:
    radial-gradient(circle, rgba(255,223,244,.34), rgba(255,255,255,0) 70%) !important;
}

@media (max-width: 1120px) {
  :root {
    --fixed-header-side: 18px;
    --fixed-header-height: 76px;
  }

  #site-header > .site-header,
  #site-header > .site-header-centered,
  .site-header.site-header-centered {
    left: var(--fixed-header-side) !important;
    right: var(--fixed-header-side) !important;
  }

  .hero-reference-visual {
    min-height: 640px !important;
  }

  .reference-main {
    width: min(76%, 560px) !important;
    right: 8% !important;
  }

  .reference-sub {
    width: min(34%, 250px) !important;
    right: 4% !important;
  }
}

@media (max-width: 720px) {
  :root {
    --fixed-header-top: 10px;
    --fixed-header-side: 10px;
    --fixed-header-height: 116px;
  }

  #site-header > .site-header,
  #site-header > .site-header-centered,
  .site-header.site-header-centered {
    left: var(--fixed-header-side) !important;
    right: var(--fixed-header-side) !important;
    top: var(--fixed-header-top) !important;
    min-height: var(--fixed-header-height) !important;
    display: grid !important;
  }

  #site-header > .site-header .search,
  #site-header > .site-header-centered .search {
    position: static !important;
    width: 100% !important;
    transform: none !important;
    grid-column: 1 / -1 !important;
  }

  #site-header > .site-header .menu-button,
  #site-header > .site-header-centered .menu-button {
    display: inline-grid !important;
    position: static !important;
    transform: none !important;
  }

  .hero-reference-visual {
    min-height: 470px !important;
  }

  .reference-main {
    width: 86% !important;
    right: 7% !important;
    top: 6% !important;
  }

  .reference-sub {
    width: 38% !important;
    min-width: 155px;
    right: 0 !important;
    bottom: 5% !important;
  }
}


/* v13: definitive fixed header fix
   The header is detached from .page-shell by components.js, because .page-shell has entrance animation transforms.
   This prevents transform-containing-block behavior from breaking fixed positioning. */
.site-header-spacer,
#site-header {
  height: calc(var(--fixed-header-height, 76px) + var(--fixed-header-top, 16px) + 22px) !important;
  min-height: calc(var(--fixed-header-height, 76px) + var(--fixed-header-top, 16px) + 22px) !important;
  pointer-events: none;
}

.site-header-detached {
  position: fixed !important;
  top: var(--fixed-header-top, 16px) !important;
  left: var(--fixed-header-side, clamp(18px, 2.6vw, 42px)) !important;
  right: var(--fixed-header-side, clamp(18px, 2.6vw, 42px)) !important;
  width: auto !important;
  z-index: 2147483000 !important;
  pointer-events: auto;
  transform: none !important;
  will-change: auto;
}

/* Prevent the page entrance animation from creating a transformed containing block. */
.page-shell {
  transform: none !important;
}

@keyframes pageEntrance {
  from { opacity: 0; transform: none; }
  to { opacity: 1; transform: none; }
}

@media (max-width: 720px) {
  .site-header-spacer,
  #site-header {
    height: calc(var(--fixed-header-height, 116px) + var(--fixed-header-top, 10px) + 18px) !important;
    min-height: calc(var(--fixed-header-height, 116px) + var(--fixed-header-top, 10px) + 18px) !important;
  }
}


/* v15: mobile header row + working hamburger menu */
.mobile-menu {
  display: none;
}

@media (max-width: 720px) {
  :root {
    --fixed-header-top: 10px;
    --fixed-header-side: 10px;
    --fixed-header-height: 64px;
  }

  #site-header,
  .site-header-spacer {
    height: calc(var(--fixed-header-height) + var(--fixed-header-top) + 16px) !important;
    min-height: calc(var(--fixed-header-height) + var(--fixed-header-top) + 16px) !important;
  }

  #site-header > .site-header,
  #site-header > .site-header-centered,
  .site-header.site-header-centered,
  .site-header-detached {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 56px !important;
    grid-template-areas:
      "search menu"
      "mobile mobile" !important;
    align-items: center !important;
    gap: 10px !important;
    min-height: var(--fixed-header-height) !important;
    padding: 10px 12px !important;
    border-radius: 32px !important;
  }

  #site-header > .site-header .global-nav,
  #site-header > .site-header-centered .global-nav,
  .site-header-detached > .global-nav {
    display: none !important;
  }

  #site-header > .site-header .search,
  #site-header > .site-header-centered .search,
  .site-header-detached > .search {
    grid-area: search !important;
    position: static !important;
    transform: none !important;
    width: 100% !important;
    min-width: 0 !important;
    height: 48px !important;
    margin: 0 !important;
    padding-left: 18px !important;
    border-radius: 999px !important;
  }

  #site-header > .site-header .search input,
  #site-header > .site-header-centered .search input,
  .site-header-detached > .search input {
    font-size: 16px !important;
  }

  #site-header > .site-header .search button,
  #site-header > .site-header-centered .search button,
  .site-header-detached > .search button {
    width: 42px !important;
    height: 42px !important;
    flex: 0 0 42px !important;
  }

  #site-header > .site-header .menu-button,
  #site-header > .site-header-centered .menu-button,
  .site-header-detached > .menu-button {
    grid-area: menu !important;
    display: inline-grid !important;
    place-items: center !important;
    position: static !important;
    transform: none !important;
    width: 52px !important;
    height: 52px !important;
    margin: 0 !important;
    border-radius: 50% !important;
    font-size: 20px !important;
    background:
      radial-gradient(circle at 30% 24%, rgba(255,255,255,.82), rgba(255,255,255,.40)) !important;
    border: 1px solid rgba(255,255,255,.82) !important;
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,.62),
      0 10px 24px rgba(62, 56, 76, .08) !important;
  }

  .site-header-detached .mobile-menu {
    grid-area: mobile;
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    padding: 0 4px;
    transition: max-height .32s ease, opacity .24s ease, padding .32s ease;
  }

  .site-header-detached.is-menu-open {
    border-radius: 30px !important;
    min-height: 350px !important;
  }

  .site-header-detached.is-menu-open .mobile-menu {
    max-height: 360px;
    opacity: 1;
    padding: 10px 4px 4px;
  }

  .site-header-detached .mobile-menu .nav-link {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 18px;
    background: rgba(255,255,255,.34);
    border: 1px solid rgba(255,255,255,.58);
    font-size: 15px;
  }

  .site-header-detached .mobile-menu .nav-link::after {
    display: none;
  }

  .site-header-detached .mobile-menu .nav-link.is-active {
    background:
      linear-gradient(135deg, rgba(226,239,255,.58), rgba(248,232,249,.52));
  }
}


/* v16: definitive mobile header override
   This is intentionally placed at the very end and targets body > .site-header-detached,
   because the fixed header is moved outside .page-shell. */

/* Desktop / tablet base for detached header */
body > .site-header-detached {
  position: fixed !important;
  top: 16px !important;
  left: clamp(18px, 2.6vw, 42px) !important;
  right: clamp(18px, 2.6vw, 42px) !important;
  width: auto !important;
  z-index: 2147483647 !important;
}

body > .site-header-detached .mobile-menu {
  display: none;
}

/* Mobile: search and hamburger in one horizontal row */
@media (max-width: 720px) {
  :root {
    --mobile-header-top: 10px;
    --mobile-header-side: 10px;
    --mobile-header-row: 58px;
  }

  #site-header,
  .site-header-spacer {
    height: calc(var(--mobile-header-row) + var(--mobile-header-top) + 18px) !important;
    min-height: calc(var(--mobile-header-row) + var(--mobile-header-top) + 18px) !important;
    pointer-events: none !important;
  }

  body > .site-header-detached {
    top: var(--mobile-header-top) !important;
    left: var(--mobile-header-side) !important;
    right: var(--mobile-header-side) !important;
    width: auto !important;
    min-height: var(--mobile-header-row) !important;
    max-height: none !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 54px !important;
    grid-template-areas:
      "search menu"
      "mobile mobile" !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 8px 10px !important;
    border-radius: 30px !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    transform: none !important;
  }

  body > .site-header-detached > .global-nav {
    display: none !important;
  }

  body > .site-header-detached > .search {
    grid-area: search !important;
    display: flex !important;
    position: static !important;
    top: auto !important;
    right: auto !important;
    left: auto !important;
    transform: none !important;
    width: 100% !important;
    min-width: 0 !important;
    height: 50px !important;
    min-height: 50px !important;
    margin: 0 !important;
    padding: 0 4px 0 18px !important;
    border-radius: 999px !important;
    box-sizing: border-box !important;
  }

  body > .site-header-detached > .search input {
    width: 100% !important;
    min-width: 0 !important;
    font-size: 16px !important;
  }

  body > .site-header-detached > .search button {
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    flex: 0 0 42px !important;
    margin: 0 !important;
  }

  body > .site-header-detached > .menu-button {
    grid-area: menu !important;
    display: grid !important;
    place-items: center !important;
    position: static !important;
    top: auto !important;
    right: auto !important;
    transform: none !important;
    width: 50px !important;
    height: 50px !important;
    min-width: 50px !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 50% !important;
    font-size: 20px !important;
    line-height: 1 !important;
  }

  body > .site-header-detached > .mobile-menu {
    grid-area: mobile !important;
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 8px !important;
    max-height: 0 !important;
    opacity: 0 !important;
    overflow: hidden !important;
    padding: 0 2px !important;
    transition: max-height .28s ease, opacity .2s ease, padding .28s ease !important;
  }

  body > .site-header-detached.is-menu-open {
    border-radius: 28px !important;
  }

  body > .site-header-detached.is-menu-open > .mobile-menu {
    max-height: 330px !important;
    opacity: 1 !important;
    padding: 8px 2px 4px !important;
  }

  body > .site-header-detached > .mobile-menu .nav-link {
    display: flex !important;
    align-items: center !important;
    min-height: 42px !important;
    padding: 0 16px !important;
    border-radius: 16px !important;
    background: rgba(255,255,255,.38) !important;
    border: 1px solid rgba(255,255,255,.58) !important;
    font-size: 15px !important;
  }

  body > .site-header-detached > .mobile-menu .nav-link::after {
    display: none !important;
  }
}


/* v17: Safari-safe mobile header
   iOS Safari can be unstable with fixed + grid-template-areas + backdrop-filter.
   This override uses simple flex layout for the top row and an absolute dropdown. */

@media (max-width: 720px) {
  :root {
    --mobile-header-top: 10px;
    --mobile-header-side: 10px;
    --mobile-header-row-height: 66px;
  }

  #site-header,
  .site-header-spacer {
    height: calc(var(--mobile-header-top) + var(--mobile-header-row-height) + 18px) !important;
    min-height: calc(var(--mobile-header-top) + var(--mobile-header-row-height) + 18px) !important;
    pointer-events: none !important;
  }

  body > .site-header-detached {
    position: fixed !important;
    top: var(--mobile-header-top) !important;
    left: var(--mobile-header-side) !important;
    right: var(--mobile-header-side) !important;
    z-index: 2147483647 !important;

    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;

    width: auto !important;
    height: var(--mobile-header-row-height) !important;
    min-height: var(--mobile-header-row-height) !important;
    max-height: var(--mobile-header-row-height) !important;
    padding: 8px 10px !important;

    border-radius: 999px !important;
    overflow: visible !important;
    transform: translateZ(0) !important;
    box-sizing: border-box !important;

    border: 1px solid rgba(255,255,255,.82) !important;
    background:
      radial-gradient(circle at 10% 50%, rgba(215,232,255,.28), transparent 26%),
      radial-gradient(circle at 90% 30%, rgba(255,224,244,.22), transparent 26%),
      linear-gradient(135deg, rgba(255,255,255,.76), rgba(255,255,255,.40)) !important;
    box-shadow:
      0 14px 38px rgba(58, 54, 70, .10),
      inset 0 1px 0 rgba(255,255,255,.76) !important;
    backdrop-filter: blur(22px) saturate(1.14) !important;
    -webkit-backdrop-filter: blur(22px) saturate(1.14) !important;
  }

  body > .site-header-detached > .global-nav {
    display: none !important;
  }

  body > .site-header-detached > .search {
    position: static !important;
    inset: auto !important;
    transform: none !important;

    flex: 1 1 auto !important;
    min-width: 0 !important;
    width: auto !important;
    max-width: none !important;
    height: 50px !important;
    min-height: 50px !important;
    margin: 0 !important;
    padding: 0 5px 0 18px !important;

    display: flex !important;
    align-items: center !important;

    border-radius: 999px !important;
    box-sizing: border-box !important;
    background: rgba(255,255,255,.46) !important;
    border: 1px solid rgba(255,255,255,.76) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.64) !important;
  }

  body > .site-header-detached > .search input {
    flex: 1 1 auto !important;
    width: 100% !important;
    min-width: 0 !important;
    height: 100% !important;
    font-size: 16px !important; /* prevents iOS Safari zoom */
    line-height: 1.2 !important;
  }

  body > .site-header-detached > .search button {
    flex: 0 0 42px !important;
    width: 42px !important;
    min-width: 42px !important;
    height: 42px !important;
    min-height: 42px !important;
    margin: 0 !important;
  }

  body > .site-header-detached > .menu-button {
    position: static !important;
    inset: auto !important;
    transform: none !important;

    display: grid !important;
    place-items: center !important;

    flex: 0 0 52px !important;
    width: 52px !important;
    min-width: 52px !important;
    height: 52px !important;
    min-height: 52px !important;
    margin: 0 !important;
    padding: 0 !important;

    border-radius: 50% !important;
    font-size: 20px !important;
    line-height: 1 !important;
    background:
      radial-gradient(circle at 30% 24%, rgba(255,255,255,.88), rgba(255,255,255,.42)) !important;
    border: 1px solid rgba(255,255,255,.82) !important;
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,.66),
      0 10px 22px rgba(62, 56, 76, .08) !important;
  }

  body > .site-header-detached > .mobile-menu {
    position: absolute !important;
    left: 0 !important;
    right: 0 !important;
    top: calc(100% + 8px) !important;

    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 8px !important;

    max-height: 0 !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    overflow: hidden !important;

    padding: 0 10px !important;
    border-radius: 26px !important;
    border: 1px solid rgba(255,255,255,.76) !important;
    background:
      radial-gradient(circle at 10% 20%, rgba(215,232,255,.26), transparent 30%),
      radial-gradient(circle at 92% 20%, rgba(255,224,244,.22), transparent 30%),
      linear-gradient(135deg, rgba(255,255,255,.82), rgba(255,255,255,.52)) !important;
    box-shadow: 0 18px 46px rgba(58, 54, 70, .12) !important;
    backdrop-filter: blur(22px) saturate(1.14) !important;
    -webkit-backdrop-filter: blur(22px) saturate(1.14) !important;

    transition:
      max-height .28s ease,
      opacity .2s ease,
      visibility .2s ease,
      padding .28s ease !important;
  }

  body > .site-header-detached.is-menu-open {
    height: var(--mobile-header-row-height) !important;
    min-height: var(--mobile-header-row-height) !important;
    max-height: var(--mobile-header-row-height) !important;
    border-radius: 999px !important;
    overflow: visible !important;
  }

  body > .site-header-detached.is-menu-open > .mobile-menu {
    max-height: 340px !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    padding: 10px !important;
    overflow: hidden !important;
  }

  body > .site-header-detached > .mobile-menu .nav-link {
    position: relative !important;
    display: flex !important;
    align-items: center !important;

    min-height: 44px !important;
    padding: 0 16px !important;

    border-radius: 17px !important;
    background: rgba(255,255,255,.42) !important;
    border: 1px solid rgba(255,255,255,.60) !important;

    color: rgba(35,39,49,.86) !important;
    font-size: 15px !important;
    letter-spacing: .02em !important;
  }

  body > .site-header-detached > .mobile-menu .nav-link::after {
    display: none !important;
  }

  body > .site-header-detached > .mobile-menu .nav-link.is-active {
    background:
      linear-gradient(135deg, rgba(226,239,255,.64), rgba(248,232,249,.58)) !important;
  }
}

/* iOS Safari specific safety: avoid fixed descendants being affected by filters/transforms. */
@supports (-webkit-touch-callout: none) {
  @media (max-width: 720px) {
    body > .site-header-detached {
      transform: translate3d(0,0,0) !important;
      -webkit-transform: translate3d(0,0,0) !important;
      contain: layout paint !important;
    }

    body > .site-header-detached > .mobile-menu {
      transform: translate3d(0,0,0) !important;
      -webkit-transform: translate3d(0,0,0) !important;
    }
  }
}


/* v18: final Safari mobile header fix
   Header stays one row. Menu is a separate fixed dropdown, so the header never expands vertically. */
.mobile-dropdown-detached {
  display: none;
}

@media (max-width: 720px) {
  #site-header,
  .site-header-spacer {
    height: 94px !important;
    min-height: 94px !important;
    pointer-events: none !important;
  }

  body > .site-header-detached {
    position: fixed !important;
    top: 10px !important;
    left: 10px !important;
    right: 10px !important;
    z-index: 2147483647 !important;

    height: 66px !important;
    min-height: 66px !important;
    max-height: 66px !important;

    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;

    padding: 8px 10px !important;
    border-radius: 999px !important;
    overflow: visible !important;
    box-sizing: border-box !important;

    border: 1px solid rgba(255,255,255,.82) !important;
    background:
      radial-gradient(circle at 10% 50%, rgba(215,232,255,.28), transparent 26%),
      radial-gradient(circle at 90% 30%, rgba(255,224,244,.22), transparent 26%),
      linear-gradient(135deg, rgba(255,255,255,.76), rgba(255,255,255,.40)) !important;
    box-shadow:
      0 14px 38px rgba(58, 54, 70, .10),
      inset 0 1px 0 rgba(255,255,255,.76) !important;
    backdrop-filter: blur(22px) saturate(1.14) !important;
    -webkit-backdrop-filter: blur(22px) saturate(1.14) !important;
  }

  body > .site-header-detached > .global-nav {
    display: none !important;
  }

  body > .site-header-detached > .search {
    position: static !important;
    inset: auto !important;
    transform: none !important;

    flex: 1 1 auto !important;
    min-width: 0 !important;
    width: auto !important;
    max-width: none !important;
    height: 50px !important;
    min-height: 50px !important;
    margin: 0 !important;
    padding: 0 5px 0 18px !important;

    display: flex !important;
    align-items: center !important;

    border-radius: 999px !important;
    box-sizing: border-box !important;
    background: rgba(255,255,255,.46) !important;
    border: 1px solid rgba(255,255,255,.76) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.64) !important;
  }

  body > .site-header-detached > .search input {
    flex: 1 1 auto !important;
    width: 100% !important;
    min-width: 0 !important;
    height: 100% !important;
    font-size: 16px !important;
    line-height: 1.2 !important;
  }

  body > .site-header-detached > .search button {
    flex: 0 0 42px !important;
    width: 42px !important;
    min-width: 42px !important;
    height: 42px !important;
    min-height: 42px !important;
    margin: 0 !important;
  }

  body > .site-header-detached > .menu-button {
    position: static !important;
    inset: auto !important;
    transform: none !important;

    display: grid !important;
    place-items: center !important;

    flex: 0 0 52px !important;
    width: 52px !important;
    min-width: 52px !important;
    height: 52px !important;
    min-height: 52px !important;
    margin: 0 !important;
    padding: 0 !important;

    border-radius: 50% !important;
    font-size: 20px !important;
    line-height: 1 !important;
    background:
      radial-gradient(circle at 30% 24%, rgba(255,255,255,.88), rgba(255,255,255,.42)) !important;
    border: 1px solid rgba(255,255,255,.82) !important;
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,.66),
      0 10px 22px rgba(62, 56, 76, .08) !important;
  }

  body > .mobile-dropdown-detached {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 8px !important;

    position: fixed !important;
    top: 84px !important;
    left: 10px !important;
    right: 10px !important;
    z-index: 2147483646 !important;

    max-height: 0 !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    overflow: hidden !important;

    padding: 0 10px !important;
    border-radius: 26px !important;
    border: 1px solid rgba(255,255,255,.76) !important;
    background:
      radial-gradient(circle at 10% 20%, rgba(215,232,255,.26), transparent 30%),
      radial-gradient(circle at 92% 20%, rgba(255,224,244,.22), transparent 30%),
      linear-gradient(135deg, rgba(255,255,255,.86), rgba(255,255,255,.58)) !important;
    box-shadow: 0 18px 46px rgba(58, 54, 70, .12) !important;
    backdrop-filter: blur(22px) saturate(1.14) !important;
    -webkit-backdrop-filter: blur(22px) saturate(1.14) !important;

    transition:
      max-height .28s ease,
      opacity .2s ease,
      visibility .2s ease,
      padding .28s ease !important;
  }

  body > .mobile-dropdown-detached.is-open {
    max-height: 340px !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    padding: 10px !important;
  }

  body > .mobile-dropdown-detached .nav-link {
    display: flex !important;
    align-items: center !important;
    min-height: 44px !important;
    padding: 0 16px !important;
    border-radius: 17px !important;
    background: rgba(255,255,255,.42) !important;
    border: 1px solid rgba(255,255,255,.60) !important;
    color: rgba(35,39,49,.86) !important;
    font-size: 15px !important;
    letter-spacing: .02em !important;
  }

  body > .mobile-dropdown-detached .nav-link::after {
    display: none !important;
  }

  body > .mobile-dropdown-detached .nav-link.is-active {
    background:
      linear-gradient(135deg, rgba(226,239,255,.64), rgba(248,232,249,.58)) !important;
  }
}

@supports (-webkit-touch-callout: none) {
  @media (max-width: 720px) {
    body > .site-header-detached,
    body > .mobile-dropdown-detached {
      transform: translate3d(0,0,0) !important;
      -webkit-transform: translate3d(0,0,0) !important;
    }
  }
}


/* v19: remove remaining top bias on iPhone Safari mobile header.
   Put this at the very end so it wins over all previous mobile overrides. */
@media (max-width: 720px) {
  :root {
    --mobile-header-top: 0px !important;
    --mobile-header-side: 8px !important;
    --mobile-header-row-height: 62px !important;
    --fixed-header-top: 0px !important;
    --fixed-header-side: 8px !important;
    --fixed-header-height: 62px !important;
  }

  #site-header,
  .site-header-spacer {
    height: 70px !important;
    min-height: 70px !important;
  }

  body > .site-header-detached {
    top: 0 !important;
    left: 8px !important;
    right: 8px !important;

    height: 62px !important;
    min-height: 62px !important;
    max-height: 62px !important;

    padding: 6px 9px !important;
    gap: 8px !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 999px !important;
  }

  body > .site-header-detached > .search {
    height: 48px !important;
    min-height: 48px !important;
    padding: 0 5px 0 16px !important;
    align-self: center !important;
  }

  body > .site-header-detached > .search input {
    height: 48px !important;
    min-height: 48px !important;
    line-height: 48px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }

  body > .site-header-detached > .search button {
    width: 40px !important;
    min-width: 40px !important;
    height: 40px !important;
    min-height: 40px !important;
  }

  body > .site-header-detached > .menu-button {
    flex-basis: 50px !important;
    width: 50px !important;
    min-width: 50px !important;
    height: 50px !important;
    min-height: 50px !important;
    align-self: center !important;
  }

  body > .mobile-dropdown-detached {
    top: 68px !important;
    left: 8px !important;
    right: 8px !important;
  }
}

@supports (-webkit-touch-callout: none) {
  @media (max-width: 720px) {
    body > .site-header-detached {
      top: 0 !important;
      height: 62px !important;
      min-height: 62px !important;
      max-height: 62px !important;
    }

    body > .mobile-dropdown-detached {
      top: 68px !important;
    }
  }
}


/* v20: restore outer top offset, fix INNER vertical spacing of mobile search/header.
   The requested correction is the uneven top/bottom whitespace INSIDE the header, not the page top offset. */
@media (max-width: 720px) {
  :root {
    --mobile-header-top: 10px !important;
    --mobile-header-side: 10px !important;
    --mobile-header-row-height: 66px !important;
    --fixed-header-top: 10px !important;
    --fixed-header-side: 10px !important;
    --fixed-header-height: 66px !important;
  }

  #site-header,
  .site-header-spacer {
    height: 94px !important;
    min-height: 94px !important;
  }

  body > .site-header-detached {
    top: 10px !important;
    left: 10px !important;
    right: 10px !important;

    height: 66px !important;
    min-height: 66px !important;
    max-height: 66px !important;

    padding-top: 8px !important;
    padding-bottom: 8px !important;
    padding-left: 10px !important;
    padding-right: 10px !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    box-sizing: border-box !important;
  }

  body > .site-header-detached > .search {
    height: 50px !important;
    min-height: 50px !important;
    max-height: 50px !important;

    padding-top: 0 !important;
    padding-bottom: 0 !important;
    padding-left: 18px !important;
    padding-right: 5px !important;

    margin: 0 !important;
    align-self: center !important;
    display: flex !important;
    align-items: center !important;
    box-sizing: border-box !important;
  }

  body > .site-header-detached > .search input {
    -webkit-appearance: none !important;
    appearance: none !important;

    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;

    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin: 0 !important;

    line-height: 1.15 !important;
    display: block !important;
    align-self: center !important;
    font-size: 16px !important;
  }

  body > .site-header-detached > .search input::placeholder {
    line-height: 1.15 !important;
  }

  body > .site-header-detached > .search button {
    width: 42px !important;
    min-width: 42px !important;
    height: 42px !important;
    min-height: 42px !important;
    margin: 0 !important;
    align-self: center !important;
  }

  body > .site-header-detached > .menu-button {
    flex-basis: 52px !important;
    width: 52px !important;
    min-width: 52px !important;
    height: 52px !important;
    min-height: 52px !important;
    margin: 0 !important;
    align-self: center !important;
  }

  body > .mobile-dropdown-detached {
    top: 84px !important;
    left: 10px !important;
    right: 10px !important;
  }
}

@supports (-webkit-touch-callout: none) {
  @media (max-width: 720px) {
    body > .site-header-detached {
      top: 10px !important;
      height: 66px !important;
      min-height: 66px !important;
      max-height: 66px !important;
      padding-top: 8px !important;
      padding-bottom: 8px !important;
    }

    body > .site-header-detached > .search {
      height: 50px !important;
      min-height: 50px !important;
      max-height: 50px !important;
      display: flex !important;
      align-items: center !important;
    }

    body > .site-header-detached > .search input {
      height: auto !important;
      min-height: 0 !important;
      padding: 0 !important;
      line-height: 1.15 !important;
      transform: translateY(1px); /* Safari optical centering for Japanese placeholder text */
    }

    body > .mobile-dropdown-detached {
      top: 84px !important;
    }
  }
}


/* v21: final visual balance for the search pill inside mobile header.
   The fix is to make the inner search pill nearly fill the outer pill vertically,
   leaving equal 8px top/bottom gutters. */
@media (max-width: 720px) {
  :root {
    --mobile-header-top: 10px !important;
    --mobile-header-side: 10px !important;
    --mobile-header-row-height: 72px !important;
    --fixed-header-top: 10px !important;
    --fixed-header-side: 10px !important;
    --fixed-header-height: 72px !important;
  }

  #site-header,
  .site-header-spacer {
    height: 100px !important;
    min-height: 100px !important;
  }

  body > .site-header-detached {
    top: 10px !important;
    left: 10px !important;
    right: 10px !important;

    height: 72px !important;
    min-height: 72px !important;
    max-height: 72px !important;

    padding: 8px 10px !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    box-sizing: border-box !important;
  }

  body > .site-header-detached > .search {
    height: 56px !important;
    min-height: 56px !important;
    max-height: 56px !important;
    margin: 0 !important;
    padding: 0 6px 0 18px !important;

    display: flex !important;
    align-items: center !important;
    align-self: center !important;
    box-sizing: border-box !important;

    /* avoid the search itself looking optically lower in iOS Safari */
    transform: translateY(0) !important;
    -webkit-transform: translateY(0) !important;
  }

  body > .site-header-detached > .search input {
    -webkit-appearance: none !important;
    appearance: none !important;

    height: 56px !important;
    min-height: 56px !important;
    max-height: 56px !important;
    line-height: 56px !important;

    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;

    display: block !important;
    align-self: center !important;
    font-size: 16px !important;

    transform: none !important;
    -webkit-transform: none !important;
  }

  body > .site-header-detached > .search input::placeholder {
    line-height: 56px !important;
  }

  body > .site-header-detached > .search button {
    width: 48px !important;
    min-width: 48px !important;
    height: 48px !important;
    min-height: 48px !important;
    margin: 0 !important;
    align-self: center !important;
  }

  body > .site-header-detached > .menu-button {
    flex-basis: 56px !important;
    width: 56px !important;
    min-width: 56px !important;
    height: 56px !important;
    min-height: 56px !important;
    margin: 0 !important;
    align-self: center !important;
  }

  body > .mobile-dropdown-detached {
    top: 90px !important;
    left: 10px !important;
    right: 10px !important;
  }
}

@supports (-webkit-touch-callout: none) {
  @media (max-width: 720px) {
    body > .site-header-detached {
      height: 72px !important;
      min-height: 72px !important;
      max-height: 72px !important;
      padding-top: 8px !important;
      padding-bottom: 8px !important;
    }

    body > .site-header-detached > .search {
      height: 56px !important;
      min-height: 56px !important;
      max-height: 56px !important;
      align-self: center !important;
    }

    body > .site-header-detached > .search input {
      height: 56px !important;
      min-height: 56px !important;
      line-height: 56px !important;
      padding-top: 0 !important;
      padding-bottom: 0 !important;
      transform: none !important;
      -webkit-transform: none !important;
    }

    body > .mobile-dropdown-detached {
      top: 90px !important;
    }
  }
}


/* v22: force exact vertical centering of search pill and hamburger on mobile.
   Use absolute top:50% for both items instead of flex optical alignment. */
@media (max-width: 720px) {
  :root {
    --mobile-header-top: 10px !important;
    --mobile-header-side: 10px !important;
    --mobile-header-row-height: 72px !important;
    --fixed-header-top: 10px !important;
    --fixed-header-side: 10px !important;
    --fixed-header-height: 72px !important;
  }

  #site-header,
  .site-header-spacer {
    height: 100px !important;
    min-height: 100px !important;
  }

  body > .site-header-detached {
    position: fixed !important;
    top: 10px !important;
    left: 10px !important;
    right: 10px !important;

    height: 72px !important;
    min-height: 72px !important;
    max-height: 72px !important;

    display: block !important;
    padding: 0 !important;
    border-radius: 999px !important;
    box-sizing: border-box !important;
    overflow: visible !important;
  }

  body > .site-header-detached > .search {
    position: absolute !important;
    top: 50% !important;
    left: 10px !important;
    right: 72px !important;
    bottom: auto !important;

    transform: translateY(-50%) !important;
    -webkit-transform: translateY(-50%) !important;

    width: auto !important;
    height: 54px !important;
    min-height: 54px !important;
    max-height: 54px !important;

    margin: 0 !important;
    padding: 0 6px 0 18px !important;

    display: flex !important;
    align-items: center !important;
    box-sizing: border-box !important;
  }

  body > .site-header-detached > .search input {
    -webkit-appearance: none !important;
    appearance: none !important;

    height: 54px !important;
    min-height: 54px !important;
    max-height: 54px !important;
    line-height: 54px !important;

    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;

    display: block !important;
    font-size: 16px !important;

    transform: none !important;
    -webkit-transform: none !important;
  }

  body > .site-header-detached > .search input::placeholder {
    line-height: 54px !important;
  }

  body > .site-header-detached > .search button {
    width: 44px !important;
    min-width: 44px !important;
    height: 44px !important;
    min-height: 44px !important;
    margin: 0 !important;
    align-self: center !important;
  }

  body > .site-header-detached > .menu-button {
    position: absolute !important;
    top: 50% !important;
    right: 10px !important;
    left: auto !important;
    bottom: auto !important;

    transform: translateY(-50%) !important;
    -webkit-transform: translateY(-50%) !important;

    display: grid !important;
    place-items: center !important;

    width: 54px !important;
    min-width: 54px !important;
    height: 54px !important;
    min-height: 54px !important;

    margin: 0 !important;
    padding: 0 !important;
    border-radius: 50% !important;
    box-sizing: border-box !important;

    line-height: 1 !important;
  }

  body > .mobile-dropdown-detached {
    top: 90px !important;
    left: 10px !important;
    right: 10px !important;
  }
}

@supports (-webkit-touch-callout: none) {
  @media (max-width: 720px) {
    body > .site-header-detached > .search,
    body > .site-header-detached > .menu-button {
      top: 50% !important;
      transform: translate3d(0, -50%, 0) !important;
      -webkit-transform: translate3d(0, -50%, 0) !important;
    }

    body > .site-header-detached > .search input {
      height: 54px !important;
      line-height: 54px !important;
      transform: none !important;
      -webkit-transform: none !important;
    }
  }
}


/* v23: safe mobile header centering.
   Previous absolute top:50% caused clipping on iPhone Safari.
   This override returns to a safe flex row with enough vertical room. */
@media (max-width: 720px) {
  :root {
    --mobile-header-top: 10px !important;
    --mobile-header-side: 10px !important;
    --mobile-header-row-height: 82px !important;
    --fixed-header-top: 10px !important;
    --fixed-header-side: 10px !important;
    --fixed-header-height: 82px !important;
  }

  #site-header,
  .site-header-spacer {
    height: 112px !important;
    min-height: 112px !important;
  }

  body > .site-header-detached {
    position: fixed !important;
    top: 10px !important;
    left: 10px !important;
    right: 10px !important;

    height: 82px !important;
    min-height: 82px !important;
    max-height: 82px !important;

    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;

    padding: 12px 10px !important;
    border-radius: 999px !important;
    box-sizing: border-box !important;
    overflow: visible !important;

    transform: none !important;
    -webkit-transform: none !important;
  }

  body > .site-header-detached > .search {
    position: static !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;

    transform: none !important;
    -webkit-transform: none !important;

    flex: 1 1 auto !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;

    height: 58px !important;
    min-height: 58px !important;
    max-height: 58px !important;

    margin: 0 !important;
    padding: 0 6px 0 18px !important;

    display: flex !important;
    align-items: center !important;
    align-self: center !important;
    box-sizing: border-box !important;
  }

  body > .site-header-detached > .search input {
    -webkit-appearance: none !important;
    appearance: none !important;

    flex: 1 1 auto !important;
    width: 100% !important;
    min-width: 0 !important;

    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;

    line-height: 1.15 !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;

    display: block !important;
    align-self: center !important;
    font-size: 16px !important;

    transform: translateY(1px) !important;
    -webkit-transform: translateY(1px) !important;
  }

  body > .site-header-detached > .search button {
    flex: 0 0 48px !important;
    width: 48px !important;
    min-width: 48px !important;
    height: 48px !important;
    min-height: 48px !important;
    margin: 0 !important;
    align-self: center !important;
  }

  body > .site-header-detached > .menu-button {
    position: static !important;
    top: auto !important;
    right: auto !important;
    left: auto !important;
    bottom: auto !important;

    transform: none !important;
    -webkit-transform: none !important;

    display: grid !important;
    place-items: center !important;

    flex: 0 0 58px !important;
    width: 58px !important;
    min-width: 58px !important;
    height: 58px !important;
    min-height: 58px !important;

    margin: 0 !important;
    padding: 0 !important;
    border-radius: 50% !important;
    box-sizing: border-box !important;
    align-self: center !important;
    line-height: 1 !important;
  }

  body > .mobile-dropdown-detached {
    top: 100px !important;
    left: 10px !important;
    right: 10px !important;
  }
}

@supports (-webkit-touch-callout: none) {
  @media (max-width: 720px) {
    body > .site-header-detached {
      top: 10px !important;
      height: 82px !important;
      min-height: 82px !important;
      max-height: 82px !important;
      padding-top: 12px !important;
      padding-bottom: 12px !important;
      transform: none !important;
      -webkit-transform: none !important;
    }

    body > .site-header-detached > .search,
    body > .site-header-detached > .menu-button {
      position: static !important;
      transform: none !important;
      -webkit-transform: none !important;
    }

    body > .mobile-dropdown-detached {
      top: 100px !important;
    }
  }
}
