/* ════════════════════════════════════════════════════
   CHIP — Apple-style, mobile-first
   ════════════════════════════════════════════════════ */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

:root {
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", system-ui, sans-serif;
  --font-text: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", system-ui, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Menlo", "Roboto Mono", monospace;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 26px;
  --easing: cubic-bezier(.16, 1, .3, 1);
  --container: 1200px;
  --gutter-x: clamp(1.1rem, 4vw, 2.25rem);
}

[data-theme="dark"] {
  --bg: #000000;
  --bg-2: #08080b;
  --surface: #0d0d10;
  --surface-2: #131318;
  --surface-hover: #1a1a20;
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.18);
  --text: #f5f5f7;
  --text-2: #a1a1a6;
  --text-3: #6e6e73;
  --accent: #ff8a4c;
  --accent-2: #ff7a3a;
  --accent-soft: rgba(255, 138, 76, 0.10);
  --halo: rgba(255, 138, 76, 0.16);
  --shadow-card: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 8px 30px rgba(0, 0, 0, 0.3);
}

[data-theme="light"] {
  --bg: #fbfbfd;
  --bg-2: #f3f3f6;
  --surface: #ffffff;
  --surface-2: #ffffff;
  --surface-hover: #f5f5f7;
  --border: rgba(0, 0, 0, 0.09);
  --border-strong: rgba(0, 0, 0, 0.16);
  --text: #1d1d1f;
  --text-2: #515154;
  --text-3: #86868b;
  --accent: #d8521a;
  --accent-2: #c84514;
  --accent-soft: rgba(216, 82, 26, 0.07);
  --halo: rgba(216, 82, 26, 0.10);
  --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.04), 0 8px 30px rgba(0, 0, 0, 0.06);
}

body {
  font-family: var(--font-text);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  overflow-x: hidden;
  font-feature-settings: "ss01", "cv11";
  transition: background .35s ease, color .35s ease;
}

a { text-decoration: none; color: inherit; }
button { border: none; cursor: pointer; background: none; font-family: inherit; color: inherit; }
img { max-width: 100%; display: block; }

/* ─── TYPE ─── */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: var(--text);
}
h1 { letter-spacing: -0.04em; }
h2 { letter-spacing: -0.035em; }
.muted { color: var(--text-2); font-weight: 500; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter-x);
  position: relative;
}

.section { padding: 4rem 0; position: relative; }
@media (min-width: 720px) { .section { padding: 6rem 0; } }
@media (min-width: 1024px) { .section { padding: 7.5rem 0; } }

.section__head {
  margin-bottom: 2.5rem;
  max-width: 720px;
}
@media (min-width: 720px) { .section__head { margin-bottom: 3.5rem; } }

.section__head h2 {
  font-size: clamp(2rem, 7vw, 3.5rem);
}
.section__sub {
  font-size: 1.0625rem;
  color: var(--text-2);
  margin-top: 0.85rem;
  max-width: 560px;
  line-height: 1.55;
}

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 500;
  font-family: var(--font-text);
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: transform .2s var(--easing), background .2s ease, color .2s ease, border-color .2s ease;
  white-space: nowrap;
  position: relative;
}
.btn--sm { padding: 0.55rem 1.05rem; font-size: 0.875rem; }
.btn--lg { padding: 1rem 1.75rem; font-size: 1rem; }
.btn--full { width: 100%; }

.btn--solid {
  background: var(--accent);
  color: #fff;
}
.btn--solid:hover {
  background: var(--accent-2);
  transform: translateY(-1px);
}
.btn--solid:active { transform: translateY(0); }

.btn--ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-strong);
}
.btn--ghost:hover {
  background: var(--surface-hover);
  border-color: var(--text-3);
}

/* ─── STORE BADGES (App Store / Google Play) ─── */
.store-badge {
  display: inline-block;
  height: 48px;
  border-radius: 8px;
  transition: transform .2s var(--easing), opacity .2s ease;
  -webkit-tap-highlight-color: transparent;
}
.store-badge img {
  height: 100%;
  width: auto;
  display: block;
}
.store-badge:hover { transform: translateY(-2px); opacity: 0.9; }
.store-badge:active { transform: translateY(0); }
.store-badge--lg { height: 56px; }
@media (min-width: 720px) {
  .store-badge { height: 52px; }
  .store-badge--lg { height: 60px; }
}

/* ─── NAV ─── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--bg) 75%, transparent);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid transparent;
  transition: background .25s ease, border-color .25s ease;
}
.nav.scrolled {
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  border-bottom-color: var(--border);
}
.nav__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter-x);
  height: 60px;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.nav__logo {
  display: flex; align-items: center; gap: 0.55rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  color: var(--text);
}
.nav__logo-img { width: 26px; height: 26px; border-radius: 7px; }

.nav__links {
  display: none;
  flex: 1;
  align-items: center;
  gap: 1.75rem;
  margin-left: 1rem;
}
.nav__links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-2);
  transition: color .2s ease;
}
.nav__links a:hover { color: var(--text); }

.nav__right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.theme-toggle {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: grid; place-items: center;
  color: var(--text-2);
  transition: background .2s ease, color .2s ease;
}
.theme-toggle:hover { background: var(--surface-hover); color: var(--text); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .t-sun { display: none; }
.theme-toggle .t-moon { display: block; }
[data-theme="light"] .theme-toggle .t-sun { display: block; }
[data-theme="light"] .theme-toggle .t-moon { display: none; }

.nav__right .btn { display: none; }

.nav__burger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 32px; height: 32px;
  align-items: center; justify-content: center;
}
.nav__burger span {
  display: block;
  width: 18px; height: 1.5px;
  background: var(--text);
  transition: transform .25s ease, opacity .2s ease;
}
.nav__burger.open span:nth-child(1) { transform: translateY(3px) rotate(45deg); }
.nav__burger.open span:nth-child(2) { transform: translateY(-3px) rotate(-45deg); }

.nav__mobile {
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1rem var(--gutter-x) 1.5rem;
  border-top: 1px solid var(--border);
  background: var(--bg);
}
.nav__mobile.open { display: flex; }
.nav__mobile a {
  padding: 0.85rem 0;
  font-size: 1rem;
  font-weight: 500;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}
.nav__mobile a.btn { margin-top: 0.75rem; border-bottom: none; padding: 0.85rem 1.5rem; }

@media (min-width: 880px) {
  .nav__inner { gap: 2rem; height: 64px; }
  .nav__links { display: flex; }
  .nav__right .btn { display: inline-flex; }
  .nav__burger { display: none; }
}

/* ─── HERO ─── */
.hero {
  padding: 6.5rem 0 3rem;
  position: relative;
  overflow: hidden;
}
.hero__halo {
  position: absolute;
  width: 600px; height: 600px;
  top: -200px; right: -200px;
  background: radial-gradient(circle, var(--halo) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}
.hero__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter-x);
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}
.hero__title {
  font-size: clamp(2.25rem, 9vw, 4.5rem);
  margin-bottom: 1.25rem;
}
.hero__sub {
  font-size: 1.0625rem;
  color: var(--text-2);
  max-width: 520px;
  margin-bottom: 1.75rem;
  line-height: 1.55;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.hero__secondary { display: flex; }
.cta__secondary { margin-top: 1.5rem; display: flex; justify-content: center; }
.hero__device {
  display: flex; justify-content: center;
}
.hero__device img {
  max-width: 280px;
  width: 100%;
  height: auto;
  border-radius: 38px;
  box-shadow: 0 30px 80px rgba(0,0,0,.40);
}
[data-theme="light"] .hero__device img {
  box-shadow: 0 30px 80px rgba(0,0,0,.10), 0 1px 3px rgba(0,0,0,.06);
}

@media (min-width: 880px) {
  .hero { padding: 8.5rem 0 5rem; }
  .hero__halo { width: 900px; height: 900px; top: -250px; }
  .hero__inner {
    flex-direction: row;
    align-items: center;
    gap: clamp(2rem, 5vw, 4.5rem);
  }
  .hero__content { flex: 1.1; }
  .hero__device { flex: 1; }
  .hero__device img { max-width: 360px; }
}

/* ─── BENTO / FEATURES ─── */
.bento {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}
.card {
  position: relative;
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  transition: transform .35s var(--easing), border-color .25s ease, background .25s ease;
  box-shadow: var(--shadow-card);
}
.card:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
  background: var(--surface-2);
}
.card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}
.card p {
  color: var(--text-2);
  font-size: 0.95rem;
  line-height: 1.55;
}

@media (min-width: 600px) {
  .bento { grid-template-columns: repeat(2, 1fr); gap: 0.85rem; }
}
@media (min-width: 960px) {
  .bento { grid-template-columns: repeat(4, 1fr); gap: 1rem; }
  .bento--wide { grid-column: span 2; }
  .card { padding: 1.75rem; }
}

/* ─── SWARM (NEW feature reveal) ─── */
.swarm-section { padding-top: 2rem; }
@media (min-width: 720px) { .swarm-section { padding-top: 3rem; } }

.swarm {
  position: relative;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl);
  background: var(--surface);
  overflow: hidden;
  box-shadow: var(--shadow-card), 0 0 0 1px var(--accent-soft);
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  padding: 2rem 1.5rem;
}
.swarm__halo {
  position: absolute;
  inset: -30%;
  background:
    radial-gradient(circle at 80% 50%, var(--halo) 0%, transparent 55%),
    radial-gradient(circle at 20% 30%, var(--accent-soft) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
  opacity: 0.9;
}
.swarm > * { position: relative; z-index: 1; }
.swarm__content { display: flex; flex-direction: column; gap: 0.85rem; }
.swarm__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.85rem;
  background: var(--accent);
  color: #fff;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  align-self: flex-start;
  box-shadow: 0 6px 20px var(--halo);
}
.swarm__badge-dot {
  width: 7px; height: 7px;
  background: #fff;
  border-radius: 50%;
  animation: spotlight-dot 1.6s ease-in-out infinite;
}
.swarm h2 {
  font-size: clamp(1.85rem, 5.5vw, 2.85rem);
  margin: 0.25rem 0 0.5rem;
  letter-spacing: -0.035em;
}
.swarm__content > p {
  color: var(--text-2);
  font-size: 1.025rem;
  line-height: 1.55;
  max-width: 560px;
  margin-bottom: 0.5rem;
}
.swarm__bullets {
  list-style: none;
  display: grid;
  gap: 0.5rem;
  padding: 0;
  margin-top: 0.25rem;
}
.swarm__bullets li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.95rem;
  color: var(--text);
}
.swarm__bullets .dot {
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.swarm__viz {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1.5rem;
}
.swarm__viz svg {
  width: 100%;
  max-width: 460px;
  height: auto;
  display: block;
}

/* Honeycomb swarm animations — opacity only (safe across browsers for <use>) */
.hex-active .agent { animation: hex-pulse 2.8s ease-in-out infinite; }
.hex-active .agent:nth-of-type(1)  { animation-delay: 0.0s; }
.hex-active .agent:nth-of-type(2)  { animation-delay: 0.28s; }
.hex-active .agent:nth-of-type(3)  { animation-delay: 0.56s; }
.hex-active .agent:nth-of-type(4)  { animation-delay: 0.84s; }
.hex-active .agent:nth-of-type(5)  { animation-delay: 1.12s; }
.hex-active .agent:nth-of-type(6)  { animation-delay: 1.40s; }
.hex-active .agent:nth-of-type(7)  { animation-delay: 1.68s; }
.hex-active .agent:nth-of-type(8)  { animation-delay: 1.96s; }
.hex-active .agent:nth-of-type(9)  { animation-delay: 2.24s; }
.hex-active .agent:nth-of-type(10) { animation-delay: 2.52s; }
.swarm .hub { animation: hex-hub 3s ease-in-out infinite; }
@keyframes hex-pulse {
  0%, 100% { opacity: 0.18; }
  50%      { opacity: 0.95; }
}
@keyframes hex-hub {
  0%, 100% { opacity: 0.85; }
  50%      { opacity: 1; }
}

@media (min-width: 880px) {
  .swarm {
    grid-template-columns: 1.05fr 1fr;
    align-items: center;
    gap: 2rem;
    padding: 3rem 2.75rem;
  }
  .swarm__viz { margin-top: 0; }
}

/* ─── SPOTLIGHT (Chip Guide CTA panel) ─── */
.spotlight {
  position: relative;
  margin: 0 auto 2.5rem;
  max-width: 760px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl);
  background: var(--surface);
  overflow: hidden;
  box-shadow: var(--shadow-card), 0 0 0 1px var(--accent-soft);
}
.spotlight__halo {
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle at 50% 50%, var(--halo) 0%, transparent 55%);
  pointer-events: none;
  z-index: 0;
  opacity: 0.9;
}
.spotlight__inner {
  position: relative;
  z-index: 1;
  padding: 2.25rem 1.5rem 2rem;
  text-align: center;
}
.spotlight__inner .eyebrow { margin-bottom: 0.75rem; }
.spotlight__inner h3 {
  font-size: clamp(1.5rem, 4.5vw, 2.15rem);
  margin-bottom: 0.65rem;
  letter-spacing: -0.03em;
}
.spotlight__inner p {
  color: var(--text-2);
  margin: 0 auto 1.75rem;
  max-width: 480px;
  font-size: 1rem;
  line-height: 1.55;
}
.spotlight__cta-wrap {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  position: relative;
}
.spotlight__callout {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.9rem;
  background: var(--accent);
  color: #fff;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  position: relative;
  box-shadow: 0 8px 22px var(--halo);
  animation: spotlight-bob 2.4s ease-in-out infinite;
}
.spotlight__callout::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 10px; height: 10px;
  background: var(--accent);
  border-radius: 2px;
}
.spotlight__callout-dot {
  width: 7px; height: 7px;
  background: #fff;
  border-radius: 50%;
  animation: spotlight-dot 1.6s ease-in-out infinite;
}
@keyframes spotlight-dot {
  0%, 100% { opacity: 0.95; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.6); }
}
@keyframes spotlight-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}
.spotlight__cta {
  font-size: 1rem;
  padding: 1rem 1.85rem;
  box-shadow: 0 10px 30px var(--halo);
}
.spotlight__cta .arrow {
  transition: transform .25s var(--easing);
}
.spotlight__cta:hover .arrow { transform: translateX(4px); }

@media (min-width: 720px) {
  .spotlight { margin-bottom: 4rem; }
  .spotlight__inner { padding: 3rem 2.5rem 2.75rem; }
}

/* ─── SHOWCASE ─── */
.showcase__phones {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  max-width: 320px;
  margin: 0 auto;
}
.showcase__phones .device { width: 100%; }
.showcase__phones .device img {
  width: 100%; height: auto;
  border-radius: 32px;
  box-shadow: 0 20px 60px rgba(0,0,0,.35);
}
[data-theme="light"] .showcase__phones .device img {
  box-shadow: 0 20px 60px rgba(0,0,0,.08);
}
.showcase__phones .device--side { display: none; }

@media (min-width: 880px) {
  .showcase__phones {
    grid-template-columns: 1fr 1.15fr 1fr;
    gap: clamp(1rem, 2.5vw, 2rem);
    max-width: none;
    align-items: center;
  }
  .showcase__phones .device--side { display: block; transform: scale(0.92); opacity: 0.85; }
}

/* ─── GALLERY ─── */
/* Responsive CSS grid: 2-up mobile, 3-up tablet, 4-up desktop.
   Uniform 4:5 portrait tiles, no JS needed. */
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.tile {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  transition: transform .35s var(--easing), border-color .25s ease;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
}
.tile:hover { transform: translateY(-2px); border-color: var(--border-strong); z-index: 2; }
.tile img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform .8s var(--easing);
}
.tile:hover img { transform: scale(1.03); }
.tile figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 1.5rem 0.85rem 0.75rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: #fff;
  background: linear-gradient(to top, rgba(0,0,0,0.78) 0%, transparent 100%);
  letter-spacing: -0.01em;
}

@media (min-width: 720px) {
  .gallery__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }
}
@media (min-width: 1024px) {
  .gallery__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ─── WHY ─── */
.why__list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--border);
}
.why__item {
  display: flex;
  gap: 1.25rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
}
.why__num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
  letter-spacing: 0.05em;
  padding-top: 0.35rem;
  flex-shrink: 0;
}
.why__item h3 { font-size: 1.1rem; margin-bottom: 0.35rem; }
.why__item p { color: var(--text-2); font-size: 0.95rem; line-height: 1.55; }

@media (min-width: 880px) {
  .why__list { grid-template-columns: repeat(2, 1fr); }
  .why__item { padding: 2rem 0; gap: 1.5rem; }
  .why__item:nth-child(odd) { padding-right: 2rem; border-right: 1px solid var(--border); }
  .why__item:nth-child(even) { padding-left: 2rem; }
}

/* ─── FAQ ─── */
.faq__layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
}
.faq__head h2 { font-size: clamp(1.85rem, 5vw, 2.75rem); }

.faq__list { border-top: 1px solid var(--border); }
.faq__item {
  border-bottom: 1px solid var(--border);
}
.faq__item summary {
  list-style: none;
  cursor: pointer;
  padding: 1.25rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-family: var(--font-display);
  font-size: 1.025rem;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--text);
  transition: color .2s ease;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover { color: var(--accent); }
.faq__icon {
  flex-shrink: 0;
  width: 22px; height: 22px;
  position: relative;
  transition: transform .35s var(--easing);
}
.faq__icon::before, .faq__icon::after {
  content: '';
  position: absolute;
  left: 50%; top: 50%;
  background: currentColor;
  transition: transform .35s var(--easing), opacity .25s ease;
}
.faq__icon::before { width: 12px; height: 1.5px; transform: translate(-50%, -50%); }
.faq__icon::after { width: 1.5px; height: 12px; transform: translate(-50%, -50%); }
.faq__item[open] .faq__icon::after { transform: translate(-50%, -50%) rotate(90deg); opacity: 0; }
.faq__item p {
  padding: 0 0 1.25rem;
  color: var(--text-2);
  font-size: 0.97rem;
  line-height: 1.6;
  max-width: 720px;
}
.faq__item p strong { color: var(--text); font-weight: 600; }

@media (min-width: 880px) {
  .faq__layout { grid-template-columns: 320px 1fr; gap: clamp(2rem, 5vw, 4rem); }
  .faq__item summary { padding: 1.5rem 0; font-size: 1.075rem; gap: 1.5rem; }
  .faq__item p { padding-bottom: 1.5rem; font-size: 0.975rem; }
}

/* ─── CONTACT ─── */
.contact__card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  box-shadow: var(--shadow-card);
}
.contact__left h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); margin-bottom: 0.85rem; }
.contact__body { color: var(--text-2); margin-bottom: 1.25rem; line-height: 1.55; }
.contact__email {
  font-family: var(--font-mono);
  font-size: 0.92rem;
  color: var(--accent);
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  display: inline-block;
}

.contact__form { display: flex; flex-direction: column; gap: 1rem; }
.contact__row { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field label {
  font-family: var(--font-text);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text);
  letter-spacing: 0;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 0.9rem 1rem;
  font-family: var(--font-text);
  font-size: 1rem;
  color: var(--text);
  transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}
[data-theme="light"] .field input,
[data-theme="light"] .field select,
[data-theme="light"] .field textarea {
  background: #fff;
}
.field input::placeholder,
.field textarea::placeholder {
  color: var(--text-3);
}
.field textarea { resize: vertical; min-height: 130px; }
.field select {
  cursor: pointer; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 12 8' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23a1a1a6' stroke-width='1.8' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center; background-size: 12px;
  padding-right: 2.5rem;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
[data-theme="light"] .field input:focus,
[data-theme="light"] .field select:focus,
[data-theme="light"] .field textarea:focus {
  background: #fff;
}

.btn-l { display: none; }
.contact__form.loading .btn-t { display: none; }
.contact__form.loading .btn-l { display: inline; }

.contact__ok {
  display: none;
  margin-top: 0.5rem;
  padding: 0.85rem 1rem;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  text-align: center;
}
.contact__ok.show { display: block; }

@media (min-width: 880px) {
  .contact__card { grid-template-columns: 1fr 1.15fr; gap: clamp(2rem, 5vw, 4rem); padding: clamp(2rem, 4vw, 3.5rem); }
  .contact__row { grid-template-columns: 1fr 1fr; gap: 1rem; }
}

/* ─── FINAL CTA ─── */
.cta { position: relative; overflow: hidden; text-align: center; }
.cta__halo {
  position: absolute;
  width: 700px; height: 500px;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse, var(--halo) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}
.cta__content { position: relative; z-index: 1; max-width: 720px; margin: 0 auto; }
.cta__icon {
  width: 64px; height: 64px;
  border-radius: 16px;
  margin: 0 auto 1.25rem;
}
.cta h2 { font-size: clamp(2rem, 6vw, 3.5rem); margin-bottom: 0.75rem; }
.cta p { color: var(--text-2); font-size: 1.075rem; margin-bottom: 1.75rem; }
.cta__buttons { display: flex; gap: 0.6rem; justify-content: center; flex-wrap: wrap; }

@media (min-width: 880px) {
  .cta__halo { width: 1100px; height: 800px; }
}

/* ─── FOOTER ─── */
.footer {
  border-top: 1px solid var(--border);
  padding: 3rem 0 1.5rem;
  background: var(--bg);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
.footer__brand {
  grid-column: 1 / -1;
  display: flex; flex-direction: column; gap: 0.35rem;
}
.footer__icon { width: 32px; height: 32px; border-radius: 8px; margin-bottom: 0.5rem; }
.footer__brand strong {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}
.footer__brand p { color: var(--text-3); font-size: 0.875rem; }
.footer__col h4 {
  font-size: 0.72rem;
  font-weight: 500;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-3);
  margin-bottom: 0.85rem;
}
.footer__col a {
  display: block;
  font-size: 0.9rem;
  color: var(--text-2);
  padding: 0.3rem 0;
  transition: color .2s ease;
}
.footer__col a:hover { color: var(--text); }
.footer__bar {
  border-top: 1px solid var(--border);
  padding-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.82rem;
  color: var(--text-3);
}

@media (min-width: 720px) {
  .footer { padding: 4rem 0 2rem; }
  .footer__grid { grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2.5rem; margin-bottom: 3rem; }
  .footer__brand { grid-column: auto; }
  .footer__bar { flex-direction: row; justify-content: space-between; padding-top: 1.5rem; }
}

/* ─── LIGHTBOX ─── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 3.75rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s var(--easing);
}
.lightbox.open {
  opacity: 1;
  pointer-events: auto;
}
.lightbox__figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  max-width: 100%;
  max-height: 100%;
  margin: 0;
  transform: scale(0.96);
  transition: transform .35s var(--easing);
}
.lightbox.open .lightbox__figure { transform: scale(1); }
.lightbox__figure img {
  display: block;
  max-width: 100%;
  max-height: 80vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 14px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}
.lightbox__figure figcaption {
  color: #f5f5f7;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-align: center;
}
.lightbox__close,
.lightbox__nav {
  position: absolute;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.10);
  color: #fff;
  display: grid;
  place-items: center;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background .2s ease, transform .2s ease;
}
.lightbox__close:hover,
.lightbox__nav:hover {
  background: rgba(255, 255, 255, 0.20);
  transform: scale(1.05);
}
.lightbox__close { top: 1.25rem; right: 1.25rem; }
.lightbox__nav--prev { left: 1.25rem; top: 50%; transform: translateY(-50%); }
.lightbox__nav--next { right: 1.25rem; top: 50%; transform: translateY(-50%); }
.lightbox__nav--prev:hover { transform: translateY(-50%) scale(1.05); }
.lightbox__nav--next:hover { transform: translateY(-50%) scale(1.05); }

@media (max-width: 600px) {
  .lightbox { padding: 1rem; }
  .lightbox__close { top: 0.75rem; right: 0.75rem; width: 40px; height: 40px; }
  .lightbox__nav { width: 40px; height: 40px; }
  .lightbox__nav--prev { left: 0.5rem; }
  .lightbox__nav--next { right: 0.5rem; }
  .lightbox__figure img { max-height: 75vh; }
}

.tile { cursor: zoom-in; }

/* ─── REVEAL / MOTION ─── */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .8s var(--easing), transform .8s var(--easing);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
