/* ==========================================================================
   Pillmart Pharmacy & Clinic — site styles
   Display: Instrument Serif · Text/UI: Schibsted Grotesk
   ========================================================================== */

:root {
  --paper: #fcf6e1;
  --paper-2: #f5e9c0;
  --card: #fffcf2;
  --ink: #1d1a10;
  --ink-soft: #3d3826;
  --muted: #6b6449;
  --line: rgba(29, 26, 16, 0.12);
  --line-strong: rgba(29, 26, 16, 0.24);

  /* Brand yellow. 400–500 are surfaces/buttons (always with ink text);
     700–800 are the text-safe ochres for accents on light backgrounds. */
  --yellow-100: #fdefb8;
  --yellow-300: #ffd84d;
  --yellow-400: #f9c80e;
  --yellow-500: #e8b100;
  --yellow-600: #c99400;
  --yellow-700: #8a6300;
  --yellow-800: #6b4c00;

  /* Warm near-black for the dark bands (booking, founder, footer). */
  --night-950: #17140a;
  --night-900: #241f0f;

  /* Logo green, used only for "open / live" status. */
  --leaf: #1fae2f;

  --red-700: #a92f22;
  --red-600: #c93a2b;
  --red-100: #f6dfd9;

  --gold: #e3b23c;

  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;

  --font-display: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --font-text: "Schibsted Grotesk", "Helvetica Neue", Helvetica, sans-serif;

  --container: 1240px;
  --gutter: clamp(1.15rem, 4vw, 2.5rem);
  --header-h: 76px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

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

/* Fixed grain overlay for paper texture */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

::selection {
  background: var(--yellow-300);
  color: var(--ink);
}

:focus-visible {
  outline: 3px solid var(--yellow-700);
  outline-offset: 3px;
  border-radius: 6px;
}
.booking :focus-visible,
.founder :focus-visible,
.tile--feature :focus-visible,
.footer :focus-visible {
  outline-color: var(--yellow-300);
}
.booking .form-card :focus-visible {
  outline-color: var(--yellow-700);
}

.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 200;
  background: var(--ink);
  color: var(--paper);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 600;
}
.skip-link:focus {
  top: 1rem;
}

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

/* ---------- Typography ---------- */

.display,
h1,
h2 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.02;
  margin: 0;
}

h1 {
  font-size: clamp(3.1rem, 8.4vw, 6.6rem);
}

h2 {
  font-size: clamp(2.35rem, 5.2vw, 4rem);
}

h3,
h4 {
  font-family: var(--font-text);
  font-weight: 650;
  letter-spacing: -0.01em;
  line-height: 1.25;
  margin: 0;
}

h1 em,
h2 em,
.display em {
  font-style: italic;
  color: var(--yellow-700);
}

p {
  margin: 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--yellow-700);
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1.5px;
  background: currentColor;
}
.eyebrow--light {
  color: var(--yellow-300);
}
.eyebrow--red {
  color: var(--red-600);
}

.lede {
  font-size: clamp(1.08rem, 1.6vw, 1.25rem);
  color: var(--ink-soft);
  max-width: 38ch;
}

.section {
  padding-block: clamp(4.5rem, 10vw, 8rem);
  position: relative;
}

.section-head {
  display: grid;
  gap: 1.25rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.section-head--split {
  grid-template-columns: 1fr;
  align-items: end;
}
@media (min-width: 900px) {
  .section-head--split {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 3rem;
  }
}
.section-head p {
  color: var(--ink-soft);
  max-width: 46ch;
}

/* ---------- Buttons ---------- */

.btn {
  --btn-bg: var(--ink);
  --btn-fg: var(--paper);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 52px;
  padding: 0.85rem 1.4rem;
  border-radius: 999px;
  border: 1.5px solid var(--btn-bg);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font: inherit;
  font-size: 0.98rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background-color 0.25s, color 0.25s, border-color 0.25s, box-shadow 0.25s;
  white-space: nowrap;
}
.btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  transition: transform 0.25s var(--ease);
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px -12px rgba(29, 26, 16, 0.55);
}
.btn:hover svg.arrow {
  transform: translateX(3px);
}
.btn:active {
  transform: translateY(0);
}

.btn--red {
  --btn-bg: var(--red-600);
  --btn-fg: #fff;
}
.btn--red:hover {
  --btn-bg: var(--red-700);
}
.btn--yellow {
  --btn-bg: var(--yellow-400);
  --btn-fg: var(--ink);
}
.btn--yellow:hover {
  --btn-bg: var(--yellow-500);
}
.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  border-color: var(--line-strong);
}
.btn--ghost:hover {
  border-color: var(--ink);
  box-shadow: none;
}
.btn--light {
  --btn-bg: var(--paper);
  --btn-fg: var(--ink);
}
.btn--ghost-light {
  --btn-bg: transparent;
  --btn-fg: var(--paper);
  border-color: rgba(252, 246, 225, 0.35);
}
.btn--ghost-light:hover {
  border-color: var(--paper);
  box-shadow: none;
}
.btn--sm {
  min-height: 42px;
  padding: 0.55rem 1.05rem;
  font-size: 0.9rem;
}
.btn--block {
  width: 100%;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--yellow-700);
  border-bottom: 1.5px solid currentColor;
  padding-bottom: 2px;
  transition: gap 0.25s var(--ease), color 0.2s;
}
.text-link:hover {
  gap: 0.7rem;
  color: var(--red-600);
}

/* ---------- Top bar ---------- */

.topbar {
  background: var(--yellow-400);
  color: rgba(29, 26, 16, 0.8);
  font-size: 0.84rem;
}
.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 42px;
  flex-wrap: wrap;
  padding-block: 0.45rem;
}
.topbar strong {
  color: var(--ink);
  font-weight: 650;
}
.topbar a {
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}
.topbar a:hover {
  text-decoration: underline;
}
.topbar__left {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}
.topbar__right {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}
@media (max-width: 720px) {
  .topbar__left span.hide-sm {
    display: none;
  }
  .topbar .container {
    justify-content: center;
  }
}

.live-dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--leaf);
  flex-shrink: 0;
}
.live-dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--leaf);
  animation: ping 2s var(--ease) infinite;
}
@keyframes ping {
  0% {
    transform: scale(0.6);
    opacity: 0.9;
  }
  100% {
    transform: scale(1.8);
    opacity: 0;
  }
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(252, 246, 225, 0.86);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background-color 0.3s;
}
.site-header.is-scrolled {
  border-color: var(--line);
  background: rgba(252, 246, 225, 0.95);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--ink);
}
.brand__logo {
  display: block;
  width: auto;
  height: 46px;
  flex-shrink: 0;
}
@media (max-width: 420px) {
  .brand__logo {
    height: 38px;
  }
}

.nav {
  display: none;
  gap: 0.35rem;
}
.nav a {
  position: relative;
  padding: 0.5rem 0.8rem;
  font-size: 0.94rem;
  font-weight: 550;
  text-decoration: none;
  color: var(--ink-soft);
  border-radius: 999px;
  transition: color 0.2s, background-color 0.2s;
}
.nav a:hover,
.nav a.is-active {
  color: var(--ink);
  background: rgba(29, 26, 16, 0.06);
}

.header-cta {
  display: none;
  align-items: center;
  gap: 0.6rem;
}

.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1.5px solid var(--line-strong);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}
.menu-toggle svg {
  width: 22px;
  height: 22px;
}
.menu-toggle .icon-close {
  display: none;
}
.menu-toggle[aria-expanded="true"] .icon-close {
  display: block;
}
.menu-toggle[aria-expanded="true"] .icon-open {
  display: none;
}

@media (min-width: 1080px) {
  .nav {
    display: flex;
  }
  .header-cta {
    display: flex;
  }
  .menu-toggle {
    display: none;
  }
}

.mobile-menu {
  display: none;
  border-top: 1px solid var(--line);
  background: var(--paper);
  padding: 1rem var(--gutter) 1.75rem;
}
.mobile-menu.is-open {
  display: block;
  animation: drop 0.35s var(--ease);
}
.mobile-menu nav {
  display: grid;
}
.mobile-menu nav a {
  font-family: var(--font-display);
  font-size: 2rem;
  line-height: 1.2;
  padding: 0.55rem 0;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}
.mobile-menu__cta {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.5rem;
}
@media (min-width: 1080px) {
  .mobile-menu,
  .mobile-menu.is-open {
    display: none;
  }
}
@keyframes drop {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding-top: clamp(2.5rem, 6vw, 4.5rem);
  padding-bottom: clamp(3.5rem, 7vw, 5.5rem);
  overflow: hidden;
}
.hero::after {
  /* soft yellow wash behind the photo */
  content: "";
  position: absolute;
  right: -12vw;
  top: -10vw;
  width: 62vw;
  height: 62vw;
  max-width: 900px;
  max-height: 900px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, rgba(249, 200, 14, 0.18), rgba(249, 200, 14, 0) 65%);
  pointer-events: none;
}
.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: clamp(2.5rem, 5vw, 4rem);
  align-items: center;
}
@media (min-width: 980px) {
  .hero__grid {
    grid-template-columns: 1.12fr 0.88fr;
  }
}

.clock-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.5rem 0.95rem 0.5rem 0.8rem;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--line);
  font-size: 0.88rem;
  color: var(--ink-soft);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset;
}
.clock-chip strong {
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  font-weight: 650;
}
.clock-chip .sep {
  width: 1px;
  height: 14px;
  background: var(--line-strong);
}
.clock-chip .open {
  color: var(--yellow-700);
  font-weight: 650;
}

.hero h1 {
  margin-top: 1.6rem;
}
.hero h1 .line {
  display: block;
}
.hero h1 .red {
  color: var(--red-600);
  font-style: italic;
}

.hero .lede {
  margin-top: 1.6rem;
  max-width: 44ch;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2.25rem;
}

.hero__branches {
  display: grid;
  gap: 0.75rem;
  margin-top: 2.5rem;
  max-width: 560px;
}
@media (min-width: 560px) {
  .hero__branches {
    grid-template-columns: 1fr 1fr;
  }
}
.branch-pill {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(251, 250, 246, 0.7);
  text-decoration: none;
  transition: border-color 0.25s, transform 0.25s var(--ease), background-color 0.25s;
}
.branch-pill:hover {
  border-color: var(--yellow-700);
  background: var(--card);
  transform: translateY(-2px);
}
.branch-pill__icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: var(--yellow-100);
  color: var(--yellow-700);
}
.branch-pill:nth-child(2) .branch-pill__icon {
  background: var(--red-100);
  color: var(--red-600);
}
.branch-pill__icon svg {
  width: 18px;
  height: 18px;
}
.branch-pill strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 650;
  line-height: 1.25;
}
.branch-pill span {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
}

.hero__visual {
  position: relative;
  max-width: 520px;
  justify-self: center;
  width: 100%;
}
.hero__frame {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 260px 260px var(--radius-lg) var(--radius-lg);
  overflow: hidden;
  background: var(--night-900);
  box-shadow: 0 40px 80px -40px rgba(36, 31, 15, 0.6);
}
.hero__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  transition: transform 1.6s var(--ease);
}
.is-loaded .hero__frame img {
  transform: scale(1);
}

/* Sits over the monitor on the left of the counter photo, clear of the Pillmart sign. */
.hero__card {
  position: absolute;
  left: -2.5rem;
  top: 33%;
  width: min(300px, 78%);
  padding: 1.15rem 1.2rem;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: 0 30px 60px -30px rgba(29, 26, 16, 0.45);
}
@media (max-width: 640px) {
  /* On small screens the card would hide most of the photo, so it tucks under the frame instead. */
  .hero__card {
    position: relative;
    left: auto;
    top: auto;
    margin: -2.5rem 0 0 0.75rem;
  }
}
.hero__card h3 {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 650;
}
.hero__card ol {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
  counter-reset: step;
}
.hero__card li {
  counter-increment: step;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.92rem;
  font-weight: 550;
}
.hero__card li::before {
  content: counter(step);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.78rem;
  font-weight: 700;
  background: var(--yellow-100);
  color: var(--yellow-800);
  flex-shrink: 0;
}
.hero__card li:last-child::before {
  background: var(--red-600);
  color: #fff;
}

.seal {
  position: absolute;
  right: -1.5rem;
  top: 2.5rem;
  width: 132px;
  height: 132px;
  border-radius: 50%;
  background: var(--red-600);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 20px 40px -20px rgba(169, 47, 34, 0.8);
}
@media (max-width: 640px) {
  .seal {
    right: 0.5rem;
    top: 1rem;
    width: 104px;
    height: 104px;
  }
}
.seal svg.ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  animation: spin 22s linear infinite;
}
.seal__inner {
  font-family: var(--font-display);
  font-size: 2.3rem;
  line-height: 0.9;
  text-align: center;
}
.seal__inner small {
  display: block;
  font-family: var(--font-text);
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  font-weight: 700;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ---------- Trust band ---------- */

.trust {
  background: var(--yellow-400);
  color: var(--ink);
}
.trust ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .trust ul {
    grid-template-columns: 1fr 1fr;
  }
}
@media (min-width: 1024px) {
  .trust ul {
    grid-template-columns: repeat(4, 1fr);
  }
}
.trust li {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.75rem 1.25rem;
  border-bottom: 1px solid rgba(29, 26, 16, 0.14);
}
@media (min-width: 1024px) {
  .trust li {
    border-bottom: 0;
    border-right: 1px solid rgba(29, 26, 16, 0.14);
    padding: 2.25rem 1.75rem;
  }
  .trust li:first-child {
    padding-left: 0;
  }
  .trust li:last-child {
    border-right: 0;
  }
}
.trust svg {
  width: 26px;
  height: 26px;
  color: var(--red-600);
  flex-shrink: 0;
  margin-top: 2px;
}
.trust strong {
  display: block;
  font-weight: 650;
  font-size: 1rem;
}
.trust span {
  display: block;
  font-size: 0.88rem;
  color: rgba(29, 26, 16, 0.72);
  margin-top: 0.15rem;
}

/* ---------- Services bento ---------- */

.bento {
  display: grid;
  gap: 1rem;
}
@media (min-width: 900px) {
  .bento {
    grid-template-columns: 1.2fr 1fr;
    grid-template-rows: repeat(3, auto);
  }
  .tile--feature {
    grid-row: 1 / span 3;
  }
}

.tile {
  position: relative;
  border-radius: var(--radius-lg);
  background: var(--card);
  border: 1px solid var(--line);
  padding: clamp(1.5rem, 3vw, 2rem);
  display: grid;
  gap: 1rem;
  align-content: start;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.3s;
}
.tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 50px -36px rgba(29, 26, 16, 0.5);
  border-color: var(--line-strong);
}
.tile__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.tile__icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--yellow-100);
  color: var(--yellow-700);
}
.tile__icon svg {
  width: 24px;
  height: 24px;
}
.tile__tag {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.tile h3 {
  font-size: 1.35rem;
}
.tile p {
  color: var(--ink-soft);
  font-size: 0.98rem;
}
.tile ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.45rem;
  font-size: 0.92rem;
  color: var(--ink-soft);
}
.tile li {
  display: flex;
  gap: 0.6rem;
  align-items: baseline;
}
.tile li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red-600);
  flex-shrink: 0;
  transform: translateY(-2px);
}
.tile .text-link {
  justify-self: start;
  margin-top: 0.25rem;
}

.tile--feature {
  background: var(--night-900);
  color: var(--paper);
  border-color: var(--night-900);
  padding: 0;
  overflow: hidden;
  grid-template-rows: auto 1fr;
}
.tile--feature .tile__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}
.tile--feature .tile__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}
.tile--feature:hover .tile__media img {
  transform: scale(1.04);
}
.tile--feature .tile__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(36, 31, 15, 0) 45%, rgba(36, 31, 15, 0.95));
}
.tile--feature .tile__body {
  padding: clamp(1.5rem, 3vw, 2.25rem);
  display: grid;
  gap: 1rem;
  align-content: start;
  margin-top: -4.5rem;
  position: relative;
  z-index: 1;
}
.tile--feature h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.3rem, 4vw, 3.2rem);
  line-height: 1;
}
.tile--feature p,
.tile--feature ul {
  color: rgba(252, 246, 225, 0.8);
}
.tile--feature li::before {
  background: var(--yellow-300);
}
.tile--feature .tile__tag {
  display: inline-flex;
  justify-self: start;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: var(--red-600);
  color: #fff;
}
.tile--feature .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.5rem;
}

.tile--pharmacy .tile__icon {
  background: var(--red-100);
  color: var(--red-600);
}

/* ---------- Specialties index ---------- */

.specialties {
  border-top: 1px solid var(--line-strong);
}
.spec {
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 0.35rem 1.25rem;
  padding: 1.6rem 0;
  border-bottom: 1px solid var(--line-strong);
  align-items: baseline;
  transition: background-color 0.3s;
}
@media (min-width: 860px) {
  .spec {
    grid-template-columns: 4.5rem minmax(260px, 1fr) 1.4fr auto;
    gap: 2rem;
    padding: 1.9rem 0.75rem;
    align-items: center;
  }
  .spec:hover {
    background: rgba(253, 239, 184, 0.55);
  }
}
.spec__num {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--muted);
  font-style: italic;
}
.spec h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  line-height: 1.05;
}
.spec p {
  color: var(--ink-soft);
  font-size: 0.96rem;
  grid-column: 2;
}
.spec .btn {
  grid-column: 2;
  justify-self: start;
  margin-top: 0.75rem;
}
@media (min-width: 860px) {
  .spec p {
    grid-column: auto;
  }
  .spec .btn {
    grid-column: auto;
    margin-top: 0;
  }
}
.spec--renal h3 {
  color: var(--red-600);
}

/* ---------- Journey ---------- */

.journey {
  background: var(--paper-2);
}
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2rem;
  counter-reset: j;
  position: relative;
}
@media (min-width: 900px) {
  .steps {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
  }
  .steps::before {
    content: "";
    position: absolute;
    top: 2.1rem;
    left: 2.2rem;
    right: 2.2rem;
    height: 1.5px;
    background: repeating-linear-gradient(90deg, var(--line-strong) 0 8px, transparent 8px 14px);
  }
}
.steps li {
  counter-increment: j;
  position: relative;
  display: grid;
  gap: 0.8rem;
}
.steps li::before {
  content: "0" counter(j);
  width: 4.25rem;
  height: 4.25rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 1.7rem;
  background: var(--paper);
  border: 1.5px solid var(--ink);
  position: relative;
  z-index: 1;
}
.steps li:last-child::before {
  background: var(--red-600);
  border-color: var(--red-600);
  color: #fff;
}
.steps h3 {
  font-size: 1.15rem;
}
.steps p {
  color: var(--ink-soft);
  font-size: 0.96rem;
}

/* ---------- Forms (shared) ---------- */

.form-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.4rem, 3.5vw, 2.5rem);
  box-shadow: 0 40px 80px -60px rgba(29, 26, 16, 0.6);
}
.form-grid {
  display: grid;
  gap: 1.1rem;
}
.form-row {
  display: grid;
  gap: 1.1rem;
}
@media (min-width: 640px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
  }
}
.field {
  display: grid;
  gap: 0.45rem;
}
.field > label,
.field > .label,
fieldset > legend {
  font-size: 0.86rem;
  font-weight: 650;
  color: var(--ink);
}
.req {
  color: var(--red-600);
}
.hint {
  font-size: 0.8rem;
  color: var(--muted);
}

.input,
.select,
.textarea {
  width: 100%;
  min-height: 52px;
  padding: 0.8rem 1rem;
  border-radius: 14px;
  border: 1.5px solid var(--line-strong);
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  appearance: none;
  -webkit-appearance: none;
}
.textarea {
  min-height: 110px;
  resize: vertical;
  line-height: 1.5;
}
.select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2313201a' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  background-size: 18px;
  padding-right: 2.6rem;
}
.input::placeholder,
.textarea::placeholder {
  color: #9aa29d;
}
.input:focus,
.select:focus,
.textarea:focus {
  outline: none;
  border-color: var(--yellow-700);
  box-shadow: 0 0 0 4px rgba(249, 200, 14, 0.18);
}
.input[aria-invalid="true"],
.select[aria-invalid="true"],
.textarea[aria-invalid="true"] {
  border-color: var(--red-600);
  box-shadow: 0 0 0 4px rgba(201, 58, 43, 0.12);
}
.field-error {
  font-size: 0.8rem;
  color: var(--red-700);
  font-weight: 600;
}

fieldset {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}
fieldset > legend {
  padding: 0;
  margin-bottom: 0.45rem;
}

.choice-group {
  display: grid;
  gap: 0.6rem;
}
@media (min-width: 520px) {
  .choice-group {
    grid-template-columns: 1fr 1fr;
  }
}
.choice {
  position: relative;
  cursor: pointer;
}
.choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.choice__box {
  display: grid;
  gap: 0.15rem;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  border: 1.5px solid var(--line-strong);
  background: #fff;
  transition: border-color 0.2s, background-color 0.2s, box-shadow 0.2s;
}
.choice__box strong {
  font-size: 0.95rem;
  font-weight: 650;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}
.choice__box span {
  font-size: 0.82rem;
  color: var(--muted);
}
.choice__badge {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: var(--yellow-100);
  color: var(--yellow-800);
}
.choice__badge--red {
  background: var(--red-100);
  color: var(--red-700);
}
.choice input:checked + .choice__box {
  border-color: var(--yellow-700);
  background: #fff6d6;
  box-shadow: inset 0 0 0 1px var(--yellow-700);
}
.choice input:focus-visible + .choice__box {
  outline: 3px solid var(--yellow-700);
  outline-offset: 2px;
}

.segmented {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: var(--paper-2);
  border: 1px solid var(--line);
}
.segmented label {
  position: relative;
  cursor: pointer;
}
.segmented input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.segmented span {
  display: grid;
  place-items: center;
  min-height: 44px;
  padding: 0.5rem 0.75rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
  color: var(--ink-soft);
  transition: background-color 0.25s, color 0.25s;
}
.segmented input:checked + span {
  background: var(--ink);
  color: var(--paper);
}
.segmented input:focus-visible + span {
  outline: 3px solid var(--yellow-700);
  outline-offset: 2px;
}

.dropzone {
  display: grid;
  justify-items: center;
  gap: 0.3rem;
  padding: 1.5rem 1rem;
  border-radius: 16px;
  border: 1.5px dashed var(--line-strong);
  background: var(--paper);
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s;
}
.dropzone:hover,
.dropzone.is-dragover {
  border-color: var(--yellow-700);
  background: #fff6d6;
}
.dropzone svg {
  width: 28px;
  height: 28px;
  color: var(--red-600);
}
.dropzone strong {
  font-size: 0.95rem;
  font-weight: 650;
}
.dropzone span {
  font-size: 0.8rem;
  color: var(--muted);
}
.dropzone input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.form-alert {
  padding: 0.9rem 1rem;
  border-radius: 14px;
  background: var(--red-100);
  color: var(--red-700);
  font-size: 0.9rem;
  font-weight: 600;
}

.form-note {
  font-size: 0.8rem;
  color: var(--muted);
  text-align: center;
}

.btn[aria-busy="true"] {
  pointer-events: none;
  opacity: 0.85;
}
.btn .spinner {
  display: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  animation: spin 0.8s linear infinite;
}
.btn[aria-busy="true"] .spinner {
  display: inline-block;
}
.btn[aria-busy="true"] svg.arrow {
  display: none;
}

.success {
  display: grid;
  gap: 1rem;
  padding: clamp(1.5rem, 3vw, 2rem);
  border-radius: var(--radius);
  background: #fff6d6;
  border: 1.5px solid var(--yellow-700);
  animation: drop 0.5s var(--ease);
}
.success__head {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}
.success__icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--yellow-700);
  color: #fff;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.success__icon svg {
  width: 22px;
  height: 22px;
}
.success h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.9rem;
  line-height: 1.05;
}
.success .ref {
  display: inline-block;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: 8px;
  background: var(--ink);
  color: var(--yellow-300);
}
.success p {
  color: var(--ink-soft);
  font-size: 0.96rem;
}
.success__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

[hidden] {
  display: none !important;
}

/* ---------- Prescription section ---------- */

.rx {
  display: grid;
  gap: clamp(2.5rem, 5vw, 4rem);
  align-items: start;
}
@media (min-width: 1000px) {
  .rx {
    grid-template-columns: 0.85fr 1.15fr;
  }
  .rx__intro {
    position: sticky;
    top: calc(var(--header-h) + 2rem);
  }
}
.rx__intro {
  display: grid;
  gap: 1.5rem;
}
.rx__points {
  list-style: none;
  margin: 0.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
}
.rx__points li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}
.rx__points b {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--yellow-700);
  font-style: italic;
}
.rx__points h3 {
  font-size: 1rem;
}
.rx__points p {
  font-size: 0.92rem;
  color: var(--ink-soft);
  margin-top: 0.2rem;
}

/* ---------- Booking section ---------- */

.booking {
  background: var(--night-950);
  color: var(--paper);
  overflow: hidden;
}
.booking::before {
  content: "";
  position: absolute;
  left: -20vw;
  bottom: -30vw;
  width: 70vw;
  height: 70vw;
  border-radius: 50%;
  border: 1px solid rgba(255, 216, 77, 0.12);
  box-shadow: 0 0 0 80px rgba(255, 216, 77, 0.03), 0 0 0 160px rgba(255, 216, 77, 0.02);
  pointer-events: none;
}
.booking__grid {
  position: relative;
  display: grid;
  gap: clamp(2.5rem, 5vw, 4rem);
  align-items: start;
}
@media (min-width: 1000px) {
  .booking__grid {
    grid-template-columns: 0.85fr 1.15fr;
  }
}
.booking h2 em {
  color: var(--yellow-300);
}
.booking .lede {
  color: rgba(252, 246, 225, 0.78);
}
.checklist {
  margin-top: 2rem;
  padding: 1.4rem 1.5rem;
  border-radius: var(--radius);
  border: 1px solid rgba(252, 246, 225, 0.14);
  background: rgba(252, 246, 225, 0.04);
}
.checklist h3 {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--yellow-300);
}
.checklist ul {
  list-style: none;
  padding: 0;
  margin: 0.85rem 0 0;
  display: grid;
  gap: 0.6rem;
  font-size: 0.95rem;
  color: rgba(252, 246, 225, 0.86);
}
.checklist li {
  display: flex;
  gap: 0.7rem;
}
.checklist svg {
  width: 18px;
  height: 18px;
  color: var(--yellow-300);
  flex-shrink: 0;
  margin-top: 4px;
}
.booking .form-card {
  color: var(--ink);
  border-color: transparent;
}
.booking__contact {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

/* ---------- About ---------- */

.about {
  display: grid;
  gap: clamp(2.5rem, 5vw, 4.5rem);
}
@media (min-width: 1000px) {
  .about {
    grid-template-columns: 0.9fr 1.1fr;
    align-items: start;
  }
}
.founder {
  position: relative;
  border-radius: var(--radius-lg);
  background: var(--night-900);
  color: var(--paper);
  padding: clamp(1.75rem, 4vw, 2.75rem);
  overflow: hidden;
}
.founder::after {
  content: "";
  position: absolute;
  right: -90px;
  top: -90px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  border: 40px solid rgba(255, 216, 77, 0.08);
}
.founder__mono {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--paper);
  color: var(--night-900);
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-style: italic;
}
.founder h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 3.4vw, 2.6rem);
  line-height: 1.05;
  margin-top: 1.5rem;
}
.founder__role {
  color: var(--yellow-300);
  font-weight: 600;
  font-size: 0.95rem;
  margin-top: 0.4rem;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}
.chip {
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid rgba(252, 246, 225, 0.2);
  background: rgba(252, 246, 225, 0.06);
}
.founder blockquote {
  margin: 2rem 0 0;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(252, 246, 225, 0.15);
}
.founder blockquote p {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.2vw, 1.65rem);
  line-height: 1.3;
}
.founder blockquote footer {
  margin-top: 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gold);
}
.bio {
  display: grid;
  gap: 1.1rem;
  color: var(--ink-soft);
}
.bio strong {
  color: var(--ink);
  font-weight: 650;
}
.bio h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  line-height: 1.1;
  color: var(--ink);
  margin-bottom: 0.5rem;
}
.values {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}
@media (min-width: 640px) {
  .values {
    grid-template-columns: repeat(3, 1fr);
  }
}
.values div {
  padding: 1.25rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--card);
}
.values div:nth-child(2) {
  transform: translateY(1rem);
}
@media (max-width: 639px) {
  .values div:nth-child(2) {
    transform: none;
  }
}
.values h4 {
  font-size: 0.98rem;
}
.values p {
  font-size: 0.88rem;
  margin-top: 0.35rem;
}

/* ---------- Community ---------- */

.community {
  display: grid;
  gap: clamp(2.5rem, 5vw, 4rem);
  align-items: center;
}
@media (min-width: 1000px) {
  .community {
    grid-template-columns: 1fr 1fr;
  }
}
.community__media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3.4;
  background: var(--night-900);
}
.community__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.community__badge {
  position: absolute;
  left: 1.25rem;
  bottom: 1.25rem;
  padding: 0.9rem 1.1rem;
  border-radius: var(--radius);
  background: var(--card);
  max-width: 260px;
  font-size: 0.88rem;
  color: var(--ink-soft);
  box-shadow: 0 20px 40px -24px rgba(29, 26, 16, 0.5);
}
.community__badge strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.5rem;
  color: var(--ink);
  line-height: 1.1;
}
.programs {
  display: grid;
  margin-top: 2rem;
}
.program {
  display: grid;
  gap: 0.5rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--line-strong);
}
.program:last-child {
  border-bottom: 1px solid var(--line-strong);
}
.program__top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  flex-wrap: wrap;
}
.program h3 {
  font-size: 1.2rem;
}
.when {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  background: var(--yellow-100);
  color: var(--yellow-800);
}
.program p {
  color: var(--ink-soft);
  font-size: 0.96rem;
}
.program .text-link {
  justify-self: start;
  margin-top: 0.3rem;
  font-size: 0.92rem;
}

/* ---------- Branches ---------- */

.branches-section {
  background: var(--paper-2);
}
.branches {
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 960px) {
  .branches {
    grid-template-columns: 1fr 1fr;
  }
}
.branch {
  display: grid;
  grid-template-rows: auto 1fr;
  border-radius: var(--radius-lg);
  background: var(--card);
  border: 1px solid var(--line);
  overflow: hidden;
}
.branch__map {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--yellow-100);
}
.branch__map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  filter: saturate(0.75) contrast(1.02);
}
.branch__status {
  position: absolute;
  left: 1rem;
  top: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-size: 0.8rem;
  font-weight: 600;
  pointer-events: none;
}
.branch__body {
  padding: clamp(1.5rem, 3vw, 2.25rem);
  display: grid;
  gap: 1.1rem;
  align-content: start;
}
.branch h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 3.4vw, 2.6rem);
  line-height: 1;
}
.branch address {
  font-style: normal;
  color: var(--ink-soft);
}
.branch dl {
  margin: 0;
  display: grid;
  gap: 0.6rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
  font-size: 0.94rem;
}
.branch dl div {
  display: grid;
  grid-template-columns: 6.5rem 1fr;
  gap: 1rem;
}
.branch dt {
  color: var(--muted);
  font-weight: 500;
}
.branch dd {
  margin: 0;
  color: var(--ink);
}
.branch dd a {
  font-weight: 600;
  color: var(--yellow-700);
  text-decoration: none;
}
.branch dd a:hover {
  text-decoration: underline;
}
.branch__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.4rem;
}

/* ---------- Footer ---------- */

.footer {
  background: var(--ink);
  color: rgba(252, 246, 225, 0.72);
  padding-top: clamp(4rem, 8vw, 6rem);
  padding-bottom: 7rem;
  font-size: 0.94rem;
}
@media (min-width: 1080px) {
  .footer {
    padding-bottom: 2.5rem;
  }
}
.footer__big {
  font-family: var(--font-display);
  color: var(--paper);
  font-size: clamp(2.6rem, 7vw, 5.6rem);
  line-height: 1;
  letter-spacing: -0.02em;
}
.footer__big em {
  color: var(--yellow-300);
}
.footer__big a {
  text-decoration: none;
  border-bottom: 2px solid rgba(255, 216, 77, 0.4);
  transition: border-color 0.2s;
}
.footer__big a:hover {
  border-color: var(--yellow-300);
}
.footer__grid {
  display: grid;
  gap: 2.5rem;
  margin-top: clamp(3rem, 6vw, 4.5rem);
  padding-top: 2.5rem;
  border-top: 1px solid rgba(252, 246, 225, 0.12);
}
@media (min-width: 860px) {
  .footer__grid {
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
  }
}
.footer h3 {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--paper);
  margin-bottom: 1rem;
}
.footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.55rem;
}
.footer a {
  color: rgba(252, 246, 225, 0.86);
  text-decoration: none;
}
.footer a:hover {
  color: #fff;
  text-decoration: underline;
}
.footer .brand--chip {
  padding: 0.7rem 1rem;
  border-radius: var(--radius);
  background: var(--paper);
}
.footer .brand--chip:hover {
  text-decoration: none;
}
.footer__about p {
  margin-top: 1rem;
  max-width: 36ch;
}
.footer__legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(252, 246, 225, 0.12);
  font-size: 0.84rem;
  color: rgba(252, 246, 225, 0.55);
}
.footer__legal strong {
  color: rgba(252, 246, 225, 0.85);
  font-weight: 600;
}

/* ---------- Mobile action dock ---------- */

.dock {
  position: fixed;
  left: 0.75rem;
  right: 0.75rem;
  bottom: max(0.75rem, env(safe-area-inset-bottom));
  z-index: 60;
  display: grid;
  grid-template-columns: 1fr 1fr 1.3fr;
  gap: 0.4rem;
  padding: 0.4rem;
  border-radius: 999px;
  background: rgba(29, 26, 16, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 20px 40px -16px rgba(29, 26, 16, 0.6);
  transform: translateY(140%);
  transition: transform 0.45s var(--ease);
}
.dock.is-visible {
  transform: none;
}
.dock a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 48px;
  border-radius: 999px;
  color: var(--paper);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
}
.dock a svg {
  width: 18px;
  height: 18px;
}
.dock a.dock__book {
  background: var(--red-600);
}
@media (min-width: 1080px) {
  .dock {
    display: none;
  }
}

/* ---------- Inside Pillmart gallery ---------- */

.gallery {
  display: grid;
  gap: clamp(1rem, 2vw, 1.5rem);
}
@media (min-width: 900px) {
  .gallery {
    /* 16:9 column split keeps the 4:3 and 3:4 photos the same height. */
    grid-template-columns: 16fr 9fr;
  }
}
.gallery__item {
  position: relative;
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--night-900);
  aspect-ratio: 3 / 4;
}
.gallery__item--wide {
  aspect-ratio: 4 / 3;
}
.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}
.gallery__item:hover img {
  transform: scale(1.03);
}
.gallery__item figcaption {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  background: var(--card);
  color: var(--ink);
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: 0 16px 32px -20px rgba(29, 26, 16, 0.6);
}

/* ---------- Reveal animations ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: var(--d, 0ms);
}
.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

.js .hero-in {
  opacity: 0;
  transform: translateY(18px);
  animation: heroIn 1s var(--ease) forwards;
  animation-delay: var(--d, 0ms);
}
@keyframes heroIn {
  to {
    opacity: 1;
    transform: none;
  }
}

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

/* ---------- Simple page (thank-you / 404) ---------- */

.simple-page {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding-block: 5rem;
}
.simple-page .inner {
  max-width: 620px;
  display: grid;
  gap: 1.4rem;
  justify-items: center;
}
.simple-page p {
  color: var(--ink-soft);
}
.simple-page .actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
}
