/* ==========================================================================
   Kimuraya — Authentic Japanese Restaurant, Business Bay
   Brand tokens from research/brand-system.md
   ========================================================================== */

:root {
  --bg: #FFF8EF;
  --surface: #FFFFFF;
  --surface-2: #FCEAD8;
  --ink: #271A12;
  --muted: #7A6654;
  --primary: #B64A2E;
  --primary-deep: #9a3b22;
  --secondary: #17453B;
  --accent: #E7A93B;
  --border: #EADCCB;
  --dark: #181310;
  --dark-2: #211a16;
  --dark-3: #2c241d;
  --focus: #B64A2E;

  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --ui: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --maxw: 1200px;
  --gutter: clamp(20px, 5vw, 64px);
  --radius: 4px;
  --radius-lg: 10px;

  --shadow-sm: 0 1px 2px rgba(39, 26, 18, .06), 0 2px 8px rgba(39, 26, 18, .05);
  --shadow-md: 0 12px 30px -12px rgba(39, 26, 18, .28);
  --shadow-lg: 0 30px 60px -20px rgba(39, 26, 18, .4);

  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  font-family: var(--ui);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.05;
  margin: 0;
  letter-spacing: -0.01em;
  font-optical-sizing: auto;
}

p { margin: 0; text-wrap: pretty; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 2px;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(64px, 9vw, 128px); }

/* Eyebrow / kanji label ---------------------------------------------------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--primary);
  margin: 0;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--primary);
  opacity: .6;
}
.eyebrow .kanji { font-size: 16px; letter-spacing: .1em; }
.on-dark .eyebrow { color: var(--accent); }
.on-dark .eyebrow::before { background: var(--accent); }

.section-head { max-width: 640px; }
.section-head h2 {
  font-size: clamp(34px, 5.2vw, 58px);
  margin-top: 18px;
}
.section-head .lede {
  margin-top: 20px;
  font-size: clamp(16px, 1.6vw, 18px);
  color: var(--muted);
}
.on-dark .section-head .lede { color: rgba(255, 248, 239, .72); }

/* Buttons ------------------------------------------------------------------ */
.btn {
  --b: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--ui);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1;
  padding: 15px 26px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .25s var(--ease), background .25s var(--ease),
              box-shadow .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 10px 24px -10px rgba(182, 74, 46, .8); }
.btn-primary:hover { background: var(--primary-deep); transform: translateY(-2px); box-shadow: 0 16px 30px -12px rgba(182, 74, 46, .9); }
.btn-ghost { border-color: var(--border); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-2px); }
.on-dark .btn-ghost { border-color: rgba(255, 248, 239, .35); color: #fff; }
.on-dark .btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-accent { background: var(--accent); color: var(--ink); }
.btn-accent:hover { transform: translateY(-2px); box-shadow: 0 14px 28px -12px rgba(231, 169, 59, .8); }
.btn-block { width: 100%; }

/* Navigation --------------------------------------------------------------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 80;
  background: rgba(255, 248, 239, .82);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background .3s var(--ease), box-shadow .3s var(--ease);
}
.nav.scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 6px 24px -18px rgba(39, 26, 18, .5);
}
.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 12px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 46px; width: auto; transition: height .3s var(--ease); }
.nav.scrolled .brand img { height: 40px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink);
  padding: 9px 14px;
  border-radius: 999px;
  position: relative;
  transition: color .2s var(--ease), background .2s var(--ease);
}
.nav-links a:hover { color: var(--primary); background: rgba(182, 74, 46, .07); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 14.5px;
  font-variant-numeric: tabular-nums;
}
.nav-phone svg { width: 16px; height: 16px; color: var(--primary); }
.nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
  color: var(--ink);
}
.nav-toggle svg { width: 26px; height: 26px; }

/* Mobile drawer */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: var(--dark);
  color: #fff;
  display: flex;
  flex-direction: column;
  padding: 24px var(--gutter) 40px;
  transform: translateY(-100%);
  transition: transform .42s var(--ease);
  visibility: hidden;
}
.drawer.open { transform: translateY(0); visibility: visible; }
.drawer-top { display: flex; align-items: center; justify-content: space-between; }
.drawer-top .wordmark { font-family: var(--display); font-size: 22px; color: var(--accent); }
.drawer-close { background: none; border: 0; color: #fff; cursor: pointer; padding: 8px; }
.drawer-close svg { width: 28px; height: 28px; }
.drawer nav { margin-top: 8vh; display: flex; flex-direction: column; gap: 6px; }
.drawer nav a {
  font-family: var(--display);
  font-size: clamp(30px, 9vw, 46px);
  font-weight: 600;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  color: #fff;
  transition: color .2s, padding-left .2s var(--ease);
}
.drawer nav a:hover { color: var(--accent); padding-left: 10px; }
.drawer-actions { margin-top: auto; display: flex; flex-direction: column; gap: 12px; }

/* Hero --------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  color: #fff;
  background: var(--dark);
  overflow: hidden;
}
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(15, 11, 9, .55) 0%, rgba(15, 11, 9, .15) 30%, rgba(15, 11, 9, .35) 60%, rgba(15, 11, 9, .9) 100%),
    linear-gradient(90deg, rgba(15, 11, 9, .78) 0%, rgba(15, 11, 9, .25) 55%, rgba(15, 11, 9, 0) 100%);
}
.hero-inner {
  position: relative;
  z-index: 2;
  transform: translateY(30px);
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter) clamp(48px, 8vh, 96px);
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  letter-spacing: .24em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--accent);
}
.hero-eyebrow .kanji { font-size: 18px; letter-spacing: .15em; }
.hero h1 {
  font-size: clamp(46px, 8.5vw, 104px);
  font-weight: 600;
  margin-top: 22px;
  max-width: 16ch;
  letter-spacing: -0.02em;
}
.hero h1 em { font-style: italic; color: var(--accent); }
.hero-lede {
  margin-top: 24px;
  font-size: clamp(16px, 1.7vw, 20px);
  max-width: 46ch;
  color: rgba(255, 248, 239, .84);
}
.hero-cta { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 14px; }
.hero-meta {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 28px;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 248, 239, .16);
}
.rating-chip { display: flex; align-items: center; gap: 12px; }
.stars { display: inline-flex; gap: 2px; color: var(--accent); }
.stars svg { width: 17px; height: 17px; }
.rating-chip b { font-size: 17px; font-variant-numeric: tabular-nums; }
.rating-chip span { font-size: 14px; color: rgba(255, 248, 239, .7); }
.hero-where {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 14.5px;
  color: rgba(255, 248, 239, .82);
}
.hero-where svg { width: 16px; height: 16px; color: var(--accent); flex: none; }

.scroll-hint {
  position: absolute;
  right: var(--gutter);
  bottom: clamp(48px, 8vh, 96px);
  z-index: 2;
  writing-mode: vertical-rl;
  font-size: 11.5px;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: rgba(255, 248, 239, .6);
  display: flex;
  align-items: center;
  gap: 12px;
}
.scroll-hint::after { content: ""; width: 1px; height: 46px; background: linear-gradient(var(--accent), transparent); }
@media (max-width: 720px) { .scroll-hint { display: none; } }

/* Marquee specialties strip ------------------------------------------------ */
.strip { background: var(--secondary); color: #fff; overflow: hidden; padding: 18px 0; }
.strip-track {
  display: flex;
  gap: 56px;
  width: max-content;
  animation: marquee 38s linear infinite;
  white-space: nowrap;
}
.strip-track span {
  font-family: var(--display);
  font-size: 19px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 56px;
  color: rgba(255, 248, 239, .92);
}
.strip-track span::after { content: "✦"; color: var(--accent); font-size: 13px; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .strip-track { animation: none; } }

/* Intro / pillars ---------------------------------------------------------- */
.intro { background: var(--bg); }
.intro-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.intro-copy h2 { font-size: clamp(30px, 4.4vw, 50px); margin-top: 18px; }
.intro-copy p { margin-top: 22px; font-size: 17px; color: var(--muted); }
.pillars { margin-top: 36px; display: grid; gap: 2px; border-top: 1px solid var(--border); }
.pillar { padding: 20px 0; border-bottom: 1px solid var(--border); display: flex; gap: 20px; align-items: baseline; }
.pillar .n { font-family: var(--display); font-size: 15px; color: var(--accent); font-variant-numeric: tabular-nums; }
.pillar h4 { font-size: 19px; margin: 0; }
.pillar p { margin-top: 6px; font-size: 14.5px; color: var(--muted); }
.intro-figure { position: relative; }
.intro-figure img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.intro-figure .stat-card {
  position: absolute;
  left: -28px;
  bottom: -28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  box-shadow: var(--shadow-md);
  text-align: center;
}
.intro-figure .stat-card .big { font-family: var(--display); font-size: 40px; color: var(--primary); line-height: 1; }
.intro-figure .stat-card .lbl { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-top: 6px; }

/* Signatures --------------------------------------------------------------- */
.signatures { background: var(--dark); color: #fff; }
.sig-note {
  margin-top: 22px;
  font-size: 14px;
  color: rgba(255, 248, 239, .6);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.sig-note svg { width: 16px; height: 16px; color: var(--accent); flex: none; }

/* Featured wagyu block */
.feature {
  margin-top: 56px;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  border: 1px solid rgba(255, 248, 239, .12);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--dark-2);
}
.feature-img { position: relative; min-height: 420px; }
.feature-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.feature-tag {
  position: absolute;
  top: 20px; left: 20px;
  background: var(--primary);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 8px 14px;
  border-radius: 999px;
}
.feature-body { padding: clamp(28px, 4vw, 52px); display: flex; flex-direction: column; justify-content: center; }
.feature-body .kanji-lg { font-family: var(--display); font-size: 22px; color: var(--accent); }
.feature-body h3 { font-size: clamp(28px, 3.4vw, 42px); margin-top: 10px; }
.feature-body p { margin-top: 18px; color: rgba(255, 248, 239, .76); font-size: 16px; }
.feature-list { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 10px; }
.tagpill {
  font-size: 13px;
  padding: 8px 14px;
  border: 1px solid rgba(255, 248, 239, .2);
  border-radius: 999px;
  color: rgba(255, 248, 239, .9);
}

/* Category grid */
.sig-grid {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.dish {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/5;
  background: var(--dark-2);
  cursor: pointer;
}
.dish img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.dish:hover img { transform: scale(1.06); }
.dish::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(15, 11, 9, .9) 100%);
}
.dish-label {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 2;
  padding: 22px;
}
.dish-label .jp { font-size: 13px; color: var(--accent); letter-spacing: .08em; }
.dish-label h4 { font-size: 22px; margin-top: 4px; }
.dish-label p { font-size: 13.5px; color: rgba(255, 248, 239, .72); margin-top: 4px; }

/* Gallery ------------------------------------------------------------------ */
.gallery { background: var(--bg); }
.gallery-grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 200px;
  gap: 14px;
}
.gcell { position: relative; overflow: hidden; border-radius: var(--radius-lg); cursor: pointer; background: var(--surface-2); }
.gcell img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.gcell:hover img { transform: scale(1.07); }
.gcell::after {
  content: "";
  position: absolute; inset: 0;
  background: rgba(24, 19, 16, 0);
  transition: background .3s var(--ease);
}
.gcell:hover::after { background: rgba(24, 19, 16, .18); }
.gcell .zoom {
  position: absolute;
  top: 12px; right: 12px;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255, 248, 239, .92);
  display: grid; place-items: center;
  opacity: 0;
  transform: scale(.7);
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.gcell .zoom svg { width: 17px; height: 17px; color: var(--ink); }
.gcell:hover .zoom { opacity: 1; transform: scale(1); }
.tall { grid-row: span 2; }
.wide { grid-column: span 2; }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(12, 9, 7, .94);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 4vw;
  opacity: 0;
  transition: opacity .3s var(--ease);
}
.lightbox.open { display: flex; opacity: 1; }
.lightbox img { max-width: 92vw; max-height: 86vh; border-radius: 6px; box-shadow: var(--shadow-lg); }
.lb-btn {
  position: absolute;
  background: rgba(255, 248, 239, .1);
  border: 1px solid rgba(255, 248, 239, .25);
  color: #fff;
  width: 52px; height: 52px;
  border-radius: 50%;
  cursor: pointer;
  display: grid; place-items: center;
  transition: background .2s, transform .2s;
}
.lb-btn:hover { background: rgba(255, 248, 239, .22); }
.lb-btn svg { width: 24px; height: 24px; }
.lb-close { top: 22px; right: 22px; }
.lb-prev { left: 3vw; top: 50%; transform: translateY(-50%); }
.lb-next { right: 3vw; top: 50%; transform: translateY(-50%); }
.lb-prev:hover { transform: translateY(-50%) scale(1.08); }
.lb-next:hover { transform: translateY(-50%) scale(1.08); }
.lb-caption {
  position: absolute;
  bottom: 22px; left: 0; right: 0;
  text-align: center;
  color: rgba(255, 248, 239, .8);
  font-size: 14px;
}

/* About -------------------------------------------------------------------- */
.about { background: var(--surface-2); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 88px); align-items: center; }
.about-imgs { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.about-imgs img { width: 100%; border-radius: var(--radius-lg); object-fit: cover; box-shadow: var(--shadow-sm); }
.about-imgs .a1 { aspect-ratio: 3/4; }
.about-imgs .a2 { aspect-ratio: 3/4; margin-top: 38px; }
.about-copy h2 { font-size: clamp(32px, 4.6vw, 54px); margin-top: 18px; }
.about-copy p { margin-top: 22px; font-size: 17px; color: var(--ink); }
.about-copy p + p { color: var(--muted); font-size: 16px; }

.quote {
  margin-top: 36px;
  padding: 28px 30px;
  background: var(--surface);
  border-left: 3px solid var(--primary);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  box-shadow: var(--shadow-sm);
}
.quote p { margin: 0; font-family: var(--display); font-size: 20px; font-style: italic; color: var(--ink); }
.quote .src { margin-top: 14px; font-size: 13px; color: var(--muted); font-style: normal; display: flex; align-items: center; gap: 8px; }
.quote .src .stars svg { width: 14px; height: 14px; }

/* Visit -------------------------------------------------------------------- */
.visit { background: var(--bg); }
.visit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 5vw, 72px); }
.contact-card { display: flex; flex-direction: column; gap: 8px; }
.contact-rows { margin-top: 28px; display: grid; gap: 4px; }
.crow {
  display: flex;
  gap: 18px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  align-items: flex-start;
}
.crow .ico {
  width: 42px; height: 42px;
  flex: none;
  border-radius: 50%;
  background: var(--surface-2);
  display: grid; place-items: center;
  color: var(--primary);
}
.crow .ico svg { width: 20px; height: 20px; }
.crow .k { font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.crow .v { font-size: 17px; font-weight: 500; margin-top: 3px; font-variant-numeric: tabular-nums; }
.crow .v a:hover { color: var(--primary); }
.crow .note { font-size: 13px; color: var(--muted); margin-top: 4px; }

.map-wrap { margin-top: 26px; }
.map-ph {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16/10;
  background:
    repeating-linear-gradient(45deg, #efe2d0, #efe2d0 14px, #eddc8 14px, #eddc8 28px);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  text-align: center;
}
.map-ph .pin {
  width: 54px; height: 54px;
  border-radius: 50%;
  background: var(--primary);
  display: grid; place-items: center;
  color: #fff;
  box-shadow: 0 10px 24px -8px rgba(182, 74, 46, .7);
  margin: 0 auto 14px;
}
.map-ph .pin svg { width: 26px; height: 26px; }
.map-ph .lbl { font-family: var(--ui); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.map-ph .sub { font-size: 13px; color: var(--muted); margin-top: 6px; max-width: 30ch; }
.map-ph .maplink { margin-top: 16px; }

/* Form */
.form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(26px, 3.4vw, 40px);
  box-shadow: var(--shadow-sm);
}
.form-card h3 { font-size: 26px; }
.form-card > p { margin-top: 8px; font-size: 14.5px; color: var(--muted); }
.field { margin-top: 18px; }
.field label { display: block; font-size: 13px; font-weight: 600; letter-spacing: .02em; margin-bottom: 7px; }
.field label .req { color: var(--primary); }
.field input, .field select, .field textarea {
  width: 100%;
  font-family: var(--ui);
  font-size: 15px;
  color: var(--ink);
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 13px 15px;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.field textarea { resize: vertical; min-height: 96px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(182, 74, 46, .12);
}
.field input::placeholder, .field textarea::placeholder { color: #b7a892; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #c0492b; box-shadow: 0 0 0 3px rgba(192, 73, 43, .12); }
.field .err { display: none; color: #b53a1f; font-size: 12.5px; margin-top: 6px; }
.field.invalid .err { display: block; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.radio-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.radio-pill { position: relative; }
.radio-pill input { position: absolute; opacity: 0; pointer-events: none; }
.radio-pill span {
  display: inline-block;
  padding: 10px 16px;
  border: 1.5px solid var(--border);
  border-radius: 999px;
  font-size: 14px;
  cursor: pointer;
  transition: all .2s var(--ease);
}
.radio-pill input:checked + span { border-color: var(--primary); background: var(--primary); color: #fff; }
.radio-pill input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }
.form-submit { margin-top: 24px; }
.form-success {
  display: none;
  text-align: center;
  padding: 30px 10px;
}
.form-success.show { display: block; }
.form-success .check {
  width: 64px; height: 64px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--secondary);
  color: #fff;
  display: grid; place-items: center;
}
.form-success .check svg { width: 32px; height: 32px; }
.form-success h3 { font-size: 26px; }
.form-success p { margin-top: 10px; color: var(--muted); font-size: 15px; }
.form-success .btn { margin-top: 22px; }
.form-hidden { display: none; }

/* Footer ------------------------------------------------------------------- */
.footer { background: var(--dark); color: rgba(255, 248, 239, .8); padding-block: clamp(56px, 7vw, 88px) 32px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer-brand img { height: 96px; width: auto; background: var(--bg); padding: 14px 18px; border-radius: var(--radius-lg); }
.footer-brand p { margin-top: 20px; max-width: 36ch; font-size: 14.5px; color: rgba(255, 248, 239, .62); }
.footer h5 { font-family: var(--ui); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin: 0 0 18px; font-weight: 700; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.footer ul a, .footer-contact a, .footer-contact span { font-size: 14.5px; color: rgba(255, 248, 239, .72); transition: color .2s; }
.footer ul a:hover { color: #fff; }
.footer-contact { display: grid; gap: 12px; font-size: 14.5px; }
.footer-contact a:hover { color: var(--accent); }
.socials { display: flex; gap: 10px; margin-top: 20px; }
.socials a {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 248, 239, .18);
  display: grid; place-items: center;
  color: rgba(255, 248, 239, .8);
  transition: all .2s var(--ease);
}
.socials a:hover { background: var(--accent); border-color: var(--accent); color: var(--ink); transform: translateY(-2px); }
.socials svg { width: 18px; height: 18px; }
.footer-bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 248, 239, .12);
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: space-between;
  font-size: 12.5px;
  color: rgba(255, 248, 239, .5);
}

/* Mobile action bar -------------------------------------------------------- */
.actionbar {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 70;
  display: none;
  background: rgba(255, 248, 239, .94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--border);
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  gap: 8px;
}
.actionbar a {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 4px;
  border-radius: var(--radius);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink);
}
.actionbar a svg { width: 21px; height: 21px; color: var(--primary); }
.actionbar a.primary { background: var(--primary); color: #fff; border-radius: 8px; }
.actionbar a.primary svg { color: #fff; }

/* Reveal animations -------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: .08s; }
.reveal[data-d="2"] { transition-delay: .16s; }
.reveal[data-d="3"] { transition-delay: .24s; }
.reveal[data-d="4"] { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* Responsive --------------------------------------------------------------- */
@media (max-width: 1000px) {
  .nav-links { display: none; }
  .nav-phone { display: none; }
  .nav-toggle { display: inline-flex; }
  .intro-grid { grid-template-columns: 1fr; }
  .intro-figure { max-width: 460px; margin-inline: auto; }
  .feature { grid-template-columns: 1fr; }
  .feature-img { min-height: 300px; }
  .sig-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; }
  .about-imgs { max-width: 480px; }
  .visit-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 170px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  body { padding-bottom: 64px; }
  .actionbar { display: flex; }
  .hero { min-height: 92svh; }
  .hero-cta .btn { flex: 1; }
  .sig-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 140px; gap: 10px; }
  .wide { grid-column: span 2; }
  .tall { grid-row: span 2; }
  .about-imgs { grid-template-columns: 1fr 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .intro-figure .stat-card { left: 50%; transform: translateX(-50%); bottom: -24px; }
  .lb-prev { left: 12px; }
  .lb-next { right: 12px; }
}

@media (max-width: 380px) {
  .sig-grid { grid-template-columns: 1fr; }
}

/* BytesGlue QA map patch */
.bg-map-embed{display:block!important;position:relative!important;width:100%!important;min-height:240px!important;border-radius:12px!important;overflow:hidden!important;background:#e9edf1!important;box-shadow:0 0 0 1px rgba(0,0,0,.08) inset!important}
.bg-map-embed iframe{display:block!important;width:100%!important;min-height:260px!important;border:0!important}
.bg-map-embed + .bg-map-embed,
.bg-map-embed + .pin,
.bg-map-embed + .lbl,
.bg-map-embed + .corner-note,
.bg-map-embed + .placeholder,
.bg-map-embed + .center,
.bg-map-embed + [class*="map-note"],
.bg-map-embed + [class*="map-tag"]{display:none!important}
.map .placeholder .pin,.map-ph .pin,.map-pin,.map-marker,.map-ph__pin,.map-ph__pin .dot,.map-ph__pin .pin,.map-ph .mi{max-width:18px!important;max-height:18px!important;width:18px!important;height:18px!important;box-shadow:none!important}
.map .placeholder .pin svg,.map-ph .pin svg,.map-pin svg,.map-marker svg,.map-ph__pin svg,.map-ph .mi{width:12px!important;height:12px!important}
.map-note,.map-tag,[class*="map-note"],[class*="map-tag"]{display:none!important}
