/* =========================================================
   LOS DIEZ MANDAMIENTOS — APP RESPONSIVA COMPACTA
   Portada con una cuadrícula continua de diez tarjetas.
   ========================================================= */

:root {
  --card-min-height: 72px;
  --ink: #132536;
  --paper: #fffaf4;
  --gold: #f4b322;
  --navy: #0d2b3e;
  --radius: 18px;
  --shadow: 0 8px 20px rgba(14, 31, 45, .16);
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --hero-min-height: clamp(220px, calc(100dvh - 608px), 270px);
  --hero-padding-top: 54px;
  --hero-padding-inline: 20px;
  --hero-padding-bottom: 12px;
  --hero-title-size: clamp(32px, 8vw, 38px);
  --hero-sun-size: clamp(78px, 22vw, 96px);
  --hero-stone-width: clamp(58px, 16.5vw, 70px);
  --hero-stone-height: clamp(98px, 28vw, 118px);
  --hero-stone-right: clamp(16px, 5vw, 22px);
  --hero-stone-offset: clamp(56px, 15vw, 66px);
}

* { box-sizing: border-box; }

html, body {
  width: 100%;
  min-height: 100%;
  margin: 0;
}

body {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
               "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 70% 0%, rgba(255, 196, 95, .42), transparent 32%),
    linear-gradient(180deg, #12384d 0 16%, #f6efe7 16% 100%);
  overflow-x: hidden;
  overflow-y: auto;
}

button { font: inherit; }

.app-shell {
  width: min(100%, 560px);
  height: 100dvh;
  min-height: 680px;
  margin: 0 auto;
  padding:
    calc(var(--safe-top) + 8px)
    10px
    calc(10px + var(--safe-bottom));
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 6px;
  background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(255,249,242,.98));
  position: relative;
}

.icon-btn {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.48);
  border-radius: 50%;
  color: white;
  background: rgba(8,31,48,.28);
  font-size: 23px;
  cursor: pointer;
  backdrop-filter: blur(7px);
  box-shadow: 0 4px 12px rgba(0,0,0,.14);
}

.intro-controls {
  position: absolute;
  inset: 9px 12px auto;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}

.intro-controls .icon-btn {
  pointer-events: auto;
}

.intro {
  position: relative;
  min-height: var(--hero-min-height);
  overflow: hidden;
  display: grid;
  align-items: center;
  padding:
    var(--hero-padding-top)
    var(--hero-padding-inline)
    var(--hero-padding-bottom);
  border-radius: 28px;
  color: white;
  background: linear-gradient(135deg, #0b2338 0%, #17466c 58%, #d9902e 100%);
  isolation: isolate;
}

.intro::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 72px;
  z-index: -1;
  background: linear-gradient(transparent, rgba(5, 25, 42, .38));
}

.intro-copy {
  position: relative;
  z-index: 2;
  width: min(72%, 360px);
}

.eyebrow {
  margin: 0 0 4px;
  color: #ffd56d;
  font-size: clamp(9px, 2.45vw, 12px);
  font-weight: 900;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.intro h1 {
  margin: 0;
  color: white;
  font-size: var(--hero-title-size);
  line-height: .92;
  letter-spacing: -.045em;
}

.intro-description {
  margin: 7px 0 0;
  max-width: 330px;
  color: #edf7ff;
  font-size: clamp(11px, 2.9vw, 13px);
  line-height: 1.32;
}

.tablets-scene {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: .78;
}

.sun {
  position: absolute;
  top: 14%;
  right: 8%;
  width: var(--hero-sun-size);
  height: var(--hero-sun-size);
  border-radius: 50%;
  background: #ffd67d;
  box-shadow: 0 0 72px 34px rgba(255, 208, 99, .46);
}

.mountain {
  position: absolute;
  bottom: -18px;
  width: 64%;
  height: 50%;
  background: #0b253a;
  clip-path: polygon(0 100%, 40% 20%, 58% 57%, 73% 10%, 100% 100%);
  opacity: .68;
}

.mountain-a { left: -8%; }
.mountain-b { right: -12%; transform: scaleX(-1); opacity: .42; }

.stone {
  position: absolute;
  bottom: 10px;
  width: var(--hero-stone-width);
  height: var(--hero-stone-height);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  border-radius: 40px 40px 9px 9px;
  color: #362a1c;
  background: linear-gradient(135deg, #d7c6a5, #8c7859);
  box-shadow: 0 14px 28px rgba(0,0,0,.34), inset 0 0 18px rgba(255,255,255,.3);
  font-family: Georgia, serif;
  font-size: clamp(9px, 2.5vw, 11.5px);
  font-weight: 700;
}

.stone-left {
  right: calc(var(--hero-stone-right) + var(--hero-stone-offset));
  transform: rotate(-3deg);
}
.stone-right { right: var(--hero-stone-right); transform: rotate(3deg); }

.cards-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(5, minmax(var(--card-min-height), 1fr));
  gap: 6px;
  min-height: 0;
  align-items: stretch;
  scroll-margin-top: 8px;
}

/* =========================================================
   TARJETAS DE MANDAMIENTOS
   La cuadrícula distribuye sus cinco filas en el espacio disponible.
   ========================================================= */

.commandment-card {
  --card-1: #ef9e16;
  --card-2: #c87708;
  --card-font-family: Inter, ui-sans-serif, system-ui, -apple-system,
                      BlinkMacSystemFont, "Segoe UI", sans-serif;
  position: relative;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  padding: 6px 8px;
  display: grid;
  grid-template-rows: 25px minmax(0, 1fr);
  gap: 2px;
  overflow: hidden;
  border: 0;
  border-radius: 16px;
  color: white;
  text-align: left;
  font-family: var(--card-font-family);
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  letter-spacing: normal;
  text-transform: none;
  text-shadow: none;
  cursor: pointer;
  isolation: isolate;
  background:
    radial-gradient(circle at 82% 13%, rgba(255,255,255,.34), transparent 29%),
    linear-gradient(
      145deg,
      color-mix(in srgb, var(--card-1), white 4%),
      color-mix(in srgb, var(--card-2), black 5%)
    );
  box-shadow:
    0 8px 18px color-mix(in srgb, var(--card-2), transparent 72%),
    inset 0 1px 0 rgba(255,255,255,.2),
    inset 0 -12px 20px rgba(0,0,0,.06);
  transform-origin: center;
  transition:
    transform .24s cubic-bezier(.2,.8,.2,1),
    box-shadow .24s ease,
    filter .24s ease;
}

.commandment-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(118deg, transparent 0 53%, rgba(255,255,255,.1) 54% 65%, transparent 66%),
    radial-gradient(circle at 18% 115%, rgba(0,0,0,.24), transparent 44%);
}

.commandment-card::after {
  content: "";
  position: absolute;
  inset: auto 0 0 20%;
  height: 48%;
  z-index: 0;
  pointer-events: none;
  opacity: .2;
  background: rgba(0,0,0,.42);
  clip-path: polygon(0 70%, 27% 30%, 48% 55%, 70% 20%, 100% 65%, 100% 100%, 0 100%);
}

.card-decoration {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .2;
  background:
    radial-gradient(circle at 88% 18%, rgba(255,255,255,.52), transparent 17%),
    linear-gradient(155deg, transparent 0 58%, rgba(255,255,255,.15) 59% 70%, transparent 71%);
}

.commandment-card:hover {
  z-index: 2;
  transform: translateY(-3px) scale(1.01);
  box-shadow:
    0 13px 27px color-mix(in srgb, var(--card-2), transparent 58%),
    inset 0 1px 0 rgba(255,255,255,.25);
  filter: saturate(1.05) brightness(1.03);
}

.commandment-card:active {
  transform: scale(.975);
}

.commandment-card:focus-visible {
  z-index: 3;
  outline: 3px solid rgba(255,255,255,.98);
  outline-offset: -5px;
  box-shadow:
    0 0 0 2px color-mix(in srgb, var(--card-2), black 12%),
    0 11px 24px rgba(14,31,45,.24);
}

.card-top {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 6px;
}

.card-number {
  width: 25px;
  height: 25px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--card-2);
  background: rgba(255,255,255,.96);
  box-shadow:
    0 3px 7px rgba(0,0,0,.12),
    inset 0 0 0 1px rgba(255,255,255,.5);
  font-family: var(--card-font-family);
  font-size: 1.12rem;
  font-style: normal;
  font-weight: 900;
  line-height: normal;
  letter-spacing: normal;
  text-transform: none;
  text-shadow: none;
}

.card-icon {
  width: 25px;
  height: 25px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  filter: drop-shadow(0 3px 5px rgba(0,0,0,.2));
}

.card-icon svg,
.detail-icon svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card-body {
  position: relative;
  z-index: 1;
  min-height: 0;
  display: grid;
  grid-template-rows: auto auto;
  align-content: end;
  gap: 1px;
}

.card-title {
  margin: 0;
  min-width: 0;
  max-height: calc(2.16em + 1px);
  display: block;
  overflow: hidden;
  font-family: var(--card-font-family);
  font-size: clamp(.9rem, 4vw, 1.1rem);
  font-style: normal;
  font-weight: 750;
  line-height: 1.08;
  letter-spacing: normal;
  text-transform: none;
  text-shadow: none;
  text-wrap: balance;
}

.card-summary {
  margin: 0;
  min-width: 0;
  min-height: 1.25em;
  padding-right: 25px;
  display: -webkit-box;
  overflow: hidden;
  color: rgba(255,255,255,.93);
  font-family: var(--card-font-family);
  font-size: clamp(.68rem, 2.8vw, .78rem);
  font-style: normal;
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: normal;
  text-transform: none;
  text-shadow: none;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}

.card-arrow {
  position: absolute;
  z-index: 2;
  right: 6px;
  bottom: 6px;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1.5px solid rgba(255,255,255,.84);
  border-radius: 50%;
  background: rgba(8,31,48,.08);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
  font-family: var(--card-font-family);
  font-size: 1.25rem;
  font-style: normal;
  font-weight: 400;
  line-height: 1;
  letter-spacing: normal;
  text-align: center;
  text-transform: none;
  text-shadow: none;
  transition: transform .2s ease, background .2s ease;
}

.card-arrow-symbol {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  line-height: 1;
  text-align: center;
}

.commandment-card:hover .card-arrow {
  transform: translateX(1px);
  background: rgba(255,255,255,.12);
}

@media (prefers-reduced-motion: reduce) {
  .commandment-card,
  .card-arrow {
    transition: none;
  }
}

/* =========================================================
   DETALLE DEL MANDAMIENTO
   ---------------------------------------------------------
   Distribución declarativa con CSS Grid:
   cabecera / tabs / versículo / explicación / navegación.
   No usa cálculos JavaScript de altura.
   ========================================================= */

.detail-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(6, 20, 31, .62);
  backdrop-filter: blur(7px);
}

.detail-card {
  --detail-1: #ef9e16;
  --detail-2: #c87708;

  position: fixed;
  inset: 0;
  z-index: 100;
  width: min(100%, 560px);
  height: 100dvh;
  margin: auto;
  display: grid;
  grid-template-rows: clamp(118px, 18dvh, 142px) minmax(0, 1fr);
  color: var(--ink);
  background: #fffaf4;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(100%);
  transition:
    transform .28s cubic-bezier(.2, .8, .2, 1),
    opacity .2s ease;
}

.detail-card.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.detail-close {
  position: absolute;
  top: calc(var(--safe-top) + 10px);
  right: 12px;
  z-index: 2;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.72);
  border-radius: 50%;
  color: white;
  background: rgba(7,24,36,.28);
  font-size: 25px;
  line-height: 1;
  cursor: pointer;
}

.detail-hero {
  min-height: 0;
  padding: calc(var(--safe-top) + 11px) 56px 11px 18px;
  display: grid;
  grid-template-columns: 44px 44px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  color: white;
  background:
    radial-gradient(circle at 75% 12%, rgba(255,255,255,.24), transparent 27%),
    linear-gradient(145deg, var(--detail-1), var(--detail-2));
}

.detail-number {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--detail-2);
  background: white;
  font-size: 23px;
  font-weight: 900;
}

.detail-icon {
  width: 38px;
  height: 38px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  font-size: 38px;
  line-height: 1;
  text-align: center;
}

.detail-hero-copy {
  min-width: 0;
}

.detail-hero h2 {
  margin: 0;
  font-size: clamp(24px, 6vw, 34px);
  line-height: .98;
  text-transform: uppercase;
}

.detail-hero p {
  margin: 4px 0 0;
  font-size: clamp(12px, 3vw, 15px);
  line-height: 1.2;
}

.detail-reference-header {
  margin-top: 7px;
  display: inline-flex;
  padding: 6px 10px;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 999px;
  color: white;
  background: rgba(4,31,52,.26);
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
}

.detail-body {
  min-height: 0;
  padding: 10px 14px calc(10px + var(--safe-bottom));
  display: grid;
  grid-template-rows:
    auto
    minmax(96px, 1fr)
    auto
    auto;
  gap: 14px;
  overflow: hidden;
  background: #fffaf4;
}

.detail-verse-area {
  display: contents;
}

.bible-tabs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.bible-tab {
  min-height: 34px;
  padding: 7px 12px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: white;
  background: linear-gradient(145deg, var(--detail-1), var(--detail-2));
  box-shadow: 0 3px 8px rgba(12,37,55,.16);
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
  cursor: pointer;
  opacity: .84;
}

.bible-tab.active {
  opacity: 1;
  border-color: rgba(255,255,255,.8);
  box-shadow:
    0 0 0 2px color-mix(in srgb, var(--detail-1) 25%, transparent),
    0 5px 12px rgba(12,37,55,.24);
}

.detail-verse-scroll {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  border-radius: 14px;
  background: white;
  box-shadow: 0 5px 16px rgba(15,33,46,.09);
}

.detail-verse-scroll blockquote {
  margin: 0;
  padding: 15px 16px 10px;
  border-left: 4px solid var(--detail-1);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(18px, 4.7vw, 22px);
  line-height: 1.34;
}

.version-license-note {
  margin: 0;
  padding: 2px 16px 14px 20px;
  color: #5b6a78;
  font-size: 12px;
  line-height: 1.3;
}

.detail-explanation {
  display: grid;
  gap: 7px;
}

.detail-explanation h3 {
  margin: 0;
  font-size: clamp(18px, 4.5vw, 21px);
  line-height: 1.15;
}

.detail-explanation p {
  margin: 0 0 7px;
  font-size: clamp(15px, 3.7vw, 17px);
  line-height: 1.45;
}

.detail-navigation {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}

.detail-navigation button {
  min-height: 46px;
  padding: 10px 8px;
  border: 0;
  border-radius: 11px;
  color: white;
  background: linear-gradient(145deg, var(--detail-1), var(--detail-2));
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
}

.detail-navigation span {
  white-space: nowrap;
  font-size: 12px;
  font-weight: 900;
}

body.detail-open {
  overflow: hidden;
}

@media (max-height: 700px) {
  .detail-card {
    grid-template-rows: 104px minmax(0, 1fr);
  }

  .detail-hero {
    grid-template-columns: 36px 34px minmax(0, 1fr);
    gap: 7px;
    padding: calc(var(--safe-top) + 7px) 48px 7px 12px;
  }

  .detail-number {
    width: 36px;
    height: 36px;
    font-size: 18px;
  }

  .detail-icon {
    width: 29px;
    height: 29px;
    font-size: 29px;
  }

  .detail-hero h2 {
    font-size: 22px;
  }

  .detail-hero p {
    margin-top: 2px;
    font-size: 11px;
  }

  .detail-reference-header {
    margin-top: 4px;
    padding: 5px 8px;
    font-size: 11px;
  }

  .detail-body {
    padding: 8px 11px calc(8px + var(--safe-bottom));
    grid-template-rows:
      auto
      minmax(72px, 1fr)
      auto
      auto;
    gap: 10px;
  }

  .bible-tabs {
    gap: 5px;
  }

  .bible-tab {
    min-height: 29px;
    padding: 5px 9px;
    font-size: 9px;
  }

  .detail-verse-scroll blockquote {
    padding: 11px 12px 8px;
    font-size: 17px;
    line-height: 1.3;
  }

  .version-license-note {
    padding: 2px 12px 10px 16px;
    font-size: 10px;
  }

  .detail-explanation {
    gap: 4px;
  }

  .detail-explanation h3 {
    font-size: 17px;
  }

  .detail-explanation p {
    margin-bottom: 4px;
    font-size: 14px;
    line-height: 1.36;
  }

  .detail-navigation button {
    min-height: 40px;
    font-size: 13px;
  }

  .detail-navigation span {
    font-size: 10px;
  }
}

@media (max-width: 390px) {
  .bible-tab {
    flex: 1 1 calc(25% - 6px);
    padding-inline: 4px;
    text-align: center;
  }
}

@media (min-width: 720px) {
  body { overflow: auto; }

  .app-shell {
    border-left: 1px solid rgba(0,0,0,.06);
    border-right: 1px solid rgba(0,0,0,.06);
  }
}


/* Referencia bíblica dentro de la cabecera */
.detail-reference-header {
  margin-top: 7px;
  align-self: flex-start;
  color: white;
  background: rgba(4, 31, 52, .28);
  border: 1px solid rgba(255,255,255,.32);
  font-size: 14px;
  line-height: 1;
  backdrop-filter: blur(5px);
}

/* Selector de versiones */
.bible-tabs {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 5px;
  width: 100%;
  padding: 1px 0 5px;
  overflow: visible;
}

.bible-tab {
  min-width: 0;
  min-height: 34px;
  padding: 7px 2px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: white;
  background: linear-gradient(145deg, var(--detail-1), var(--detail-2));
  box-shadow: 0 3px 8px rgba(12, 37, 55, .16);
  font-size: clamp(8px, 2.05vw, 11px);
  font-weight: 900;
  white-space: nowrap;
  cursor: pointer;
  opacity: .84;
  transition:
    transform .18s ease,
    opacity .18s ease,
    box-shadow .18s ease,
    filter .18s ease;
}

.bible-tab:hover {
  opacity: .94;
  transform: translateY(-1px);
}

.bible-tab:active {
  transform: scale(.96);
}

.bible-tab.active {
  opacity: 1;
  border-color: rgba(255,255,255,.72);
  box-shadow:
    0 0 0 2px color-mix(in srgb, var(--detail-1) 24%, transparent),
    0 5px 12px rgba(12, 37, 55, .24);
  filter: saturate(1.12) brightness(1.03);
}

.version-license-note {
  margin: 0;
  padding: 16px;
  color: #405364;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.45;
}

@media (max-height: 700px) {
  .detail-card {
    grid-template-rows: 112px minmax(0, 1fr);
  }

  .detail-reference-header {
    margin-top: 5px;
    font-size: 12px;
  }

  .bible-tab {
    min-height: 30px;
    padding: 6px 2px;
    font-size: clamp(8px, 2.25vw, 10px);
  }
}


@media (max-width: 420px) {
  .bible-tabs {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .bible-tab {
    min-height: 30px;
    padding: 6px 3px;
    font-size: 9px;
  }
}


/* =========================================================
   PÁGINA PRINCIPAL — CABECERA, MENÚ Y CIERRE
   No altera dimensiones de tarjetas ni grupos.
   ========================================================= */
[hidden] { display: none !important; }

body { overflow-y: auto; }

.icon-btn {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
}

.hamburger {
  width: 21px;
  display: grid;
  gap: 4px;
}
.hamburger i {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}
.main-verse {
  position: relative;
  min-width: 0;
  min-height: 62px;
  padding: 7px 8px;
  display: flex;
  align-items: center;
  gap: 4px;
  border-radius: 16px;
  color: white;
  background:
    radial-gradient(circle at 90% 50%, rgba(244,179,34,.34), transparent 25%),
    linear-gradient(105deg, #0c2c43 0%, #192d40 58%, #4b302a 100%);
  box-shadow: 0 7px 18px rgba(14,31,45,.14);
}
.main-verse-mark {
  color: #f4b322;
  font-family: Georgia, serif;
  font-size: 28px;
  font-weight: 900;
  line-height: .65;
}
.main-verse-mark:nth-of-type(2) {
  position: absolute;
  top: 50%;
  right: 86px;
  transform: translateY(-50%);
}
.main-verse-copy { min-width: 0; flex: 1 1 auto; display: grid; gap: 2px; }
.main-verse-copy strong {
  font-size: clamp(10.75px, 3vw, 18px);
  line-height: 1.1;
  white-space: nowrap;
}
.main-verse-copy span { color: #ffc64c; font-size: 11px; font-weight: 800; }

.main-verse-contact {
  margin-left: auto;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 6px;
}

.contact-link {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.42);
  border-radius: 50%;
  color: white;
  background: rgba(255,255,255,.1);
  text-decoration: none;
  transition: background .2s ease, transform .2s ease;
}

.contact-link:hover { background: rgba(255,255,255,.2); }
.contact-link:active { transform: scale(.94); }
.contact-link:focus-visible { outline: 2px solid #ffc64c; outline-offset: 2px; }
.contact-link svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(5,18,28,.58);
  backdrop-filter: blur(2px);
}
.side-menu {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 80;
  width: min(82vw, 330px);
  padding: calc(var(--safe-top) + 92px) 28px 28px;
  color: white;
  background: #0d2b43;
  box-shadow: 16px 0 36px rgba(0,0,0,.28);
  transform: translateX(-105%);
  transition: transform .28s cubic-bezier(.2,.8,.2,1);
}
.side-menu.open { transform: translateX(0); }
.side-menu-close {
  position: absolute;
  top: calc(var(--safe-top) + 20px);
  right: 20px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: white;
  background: rgba(255,255,255,.12);
  font-size: 28px;
  cursor: pointer;
}
.side-menu h2 { margin: 0 0 22px; font-size: 30px; }
.side-menu nav { display: grid; }
.side-menu nav button {
  padding: 15px 0;
  border: 0;
  border-bottom: 1px solid rgba(255,255,255,.15);
  color: white;
  background: transparent;
  text-align: left;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}
body.menu-open { overflow: hidden; }

@media (max-height: 810px) and (max-width: 719px) {
  :root {
    --hero-min-height: 192px;
    --hero-padding-top: 48px;
    --hero-padding-bottom: 8px;
    --hero-title-size: 32px;
    --hero-sun-size: 76px;
    --hero-stone-width: 56px;
    --hero-stone-height: 94px;
    --hero-stone-right: 15px;
    --hero-stone-offset: 54px;
  }

  .intro-controls { inset: 7px 10px auto; }
  .intro-copy { width: 72%; }
  .eyebrow { margin-bottom: 3px; font-size: 9px; }
  .intro-description { margin-top: 5px; font-size: 11px; line-height: 1.24; }
}

@media (min-width: 720px) {
  :root {
    --hero-min-height: clamp(200px, 27dvh, 270px);
    --hero-padding-top: clamp(48px, 7dvh, 62px);
    --hero-padding-inline: 40px;
    --hero-padding-bottom: clamp(8px, 2dvh, 20px);
    --hero-title-size: clamp(42px, 6.2dvh, 56px);
    --hero-sun-size: 120px;
    --hero-stone-width: 88px;
    --hero-stone-height: 148px;
    --hero-stone-right: 36px;
    --hero-stone-offset: 82px;
  }

  .app-shell { width: min(100%, 760px); }
  .intro {
    border-radius: 0 0 34px 34px;
  }
  .intro-copy { width: min(68%, 470px); }
  .eyebrow { font-size: 12px; }
  .intro-description { max-width: 470px; font-size: 15px; line-height: 1.36; }
  .stone { border-radius: 46px 46px 10px 10px; }
}
