/* Menu and overlays: the island, the sound pill, the phone drawer, the close controls,
   testimonials and contact. */

/* ---- The island (after the Fisolak header): Lagos time at rest, the menu on hover ---- */
.island {
  --spring: cubic-bezier(0.32, 1.28, 0.42, 1);
  position: fixed;
  left: 50%;
  top: max(calc(var(--gy) - 17px), 10px);
  translate: -50% 0;
  width: max-content;
  display: flex;
  align-items: center;
  height: 50px;
  padding: 0 6px 0 22px;
  border-radius: 999px;
  color: #f4f1ec;
  background: rgba(18, 17, 16, 0.52);
  -webkit-backdrop-filter: blur(22px) saturate(1.6);
  backdrop-filter: blur(22px) saturate(1.6);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), inset 0 0 0 1px rgba(255, 255, 255, 0.09), 0 18px 40px -18px rgba(0, 0, 0, 0.7);
  pointer-events: auto;
  transition: height 0.55s var(--spring), padding 0.55s var(--spring), background-color 0.4s;
}
.island.is-open, .island:has(:focus-visible), .island.is-menu { height: 58px; padding-left: 26px; background: rgba(14, 13, 12, 0.72); }
.island-clock { display: flex; align-items: baseline; gap: 12px; white-space: nowrap; }
.island-time { font-family: var(--serif); font-size: 21px; letter-spacing: 0.02em; font-variant-numeric: tabular-nums; }
.island-colon { display: inline-block; margin: 0 1px; animation: island-colon 2s steps(1, end) infinite; }
@keyframes island-colon { 50% { opacity: 0.25; } }
.island-date { font: 600 11px var(--sans); letter-spacing: 0.1em; text-transform: uppercase; color: rgba(244, 241, 236, 0.62); }
.island.is-open .island-date, .island.is-menu .island-date { display: none; }
.island-more { display: grid; grid-template-columns: 0fr; transition: grid-template-columns 0.6s var(--spring); }
.island.is-open .island-more, .island:has(:focus-visible) .island-more { grid-template-columns: 1fr; }
.island-inner { min-width: 0; overflow: hidden; display: flex; align-items: center; gap: 12px; white-space: nowrap; }
.island-nav { display: flex; gap: 2px; padding-left: 18px; margin-left: 18px; border-left: 1px solid rgba(255, 255, 255, 0.18); }
.island-nav a, .island-nav button {
  position: relative;
  padding: 9px 13px;
  border-radius: 999px;
  font-family: var(--serif);
  font-size: 15px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(244, 241, 236, 0.86);
}
.island-nav a:hover, .island-nav button:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }
.island-nav .is-current { color: #fff; }
.island-nav .is-current::after { content: ''; position: absolute; left: 50%; bottom: 3px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--red); }
.island-inner > *, .island-nav > * { opacity: 0; transform: translateY(6px); transition: opacity 0.35s var(--ease), transform 0.5s var(--ease), background-color 0.3s, color 0.3s; }
.island.is-open .island-inner > *, .island:has(:focus-visible) .island-inner > *,
.island.is-open .island-nav > *, .island:has(:focus-visible) .island-nav > * { opacity: 1; transform: none; transition-delay: 0.12s; }
.island-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 15px 0 18px;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font: 600 12.5px var(--sans);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.island-cta svg { width: 15px; height: 15px; transition: transform 0.5s var(--ease); }
.island-cta:hover svg { transform: rotate(45deg); }
/* The menu button only exists on phones and tablets (see below). */
.island-menu { width: 40px; height: 40px; margin-left: 14px; display: none; place-items: center; border-radius: 50%; color: #fff; background: rgba(255, 255, 255, 0.1); transition: background-color 0.3s; }
.island-menu:hover { background: rgba(255, 255, 255, 0.2); }
.island :focus-visible { outline: none; box-shadow: inset 0 0 0 2px rgba(192, 11, 30, 0.95); }
.bars { position: relative; width: 16px; height: 9px; }
.bars span { position: absolute; left: 0; height: 1.5px; background: currentColor; transition: transform 0.6s var(--ease), width 0.6s var(--ease), top 0.6s var(--ease); }
.bars span:first-child { top: 0; width: 16px; }
.bars span:last-child { top: 7.5px; width: 10px; }
[aria-expanded='true'] .bars span:first-child { top: 3.75px; transform: rotate(45deg); }
[aria-expanded='true'] .bars span:last-child { top: 3.75px; width: 16px; transform: rotate(-45deg); }

/* Desktop: no menu button, so the pill keeps its own breathing room — the date sits clear
   of the edge at rest, and Book a visit sits inset like a pill in a pill. The date folds
   away at the pace the menu unfolds, so the island only ever grows under the pointer. */
@media (min-width: 1101px) {
  .island { padding: 0 26px 0 26px; }
  .island.is-open, .island:has(:focus-visible) { padding: 0 10px 0 28px; }
  .island-date { display: inline-block; max-width: 240px; overflow: hidden; vertical-align: bottom; transition: max-width 0.6s cubic-bezier(0.32, 1.28, 0.42, 1), opacity 0.3s var(--ease); }
  .island.is-open .island-date { display: inline-block; max-width: 0; opacity: 0; }
  .island.is-open .island-clock { gap: 0; }
}
/* Tablets and phones: clock + menu button, and the island never changes shape under a finger. */
@media (max-width: 1100px) {
  .island-more { display: none; }
  .island-menu { display: grid; }
  .island.is-menu, .island.is-open, .island:has(:focus-visible) { height: 50px; padding-left: 22px; }
  .island.is-open .island-date, .island.is-menu .island-date { display: inline; }
}
@media (max-width: 899px) {
  .island { left: auto; right: var(--gx); translate: 0 0; height: 44px; padding-left: 16px; }
  .island.is-open, .island:has(:focus-visible), .island.is-menu { height: 44px; padding-left: 16px; }
  .island-time { font-size: 17px; }
  .island-date { display: none; }
  .island.is-open .island-date, .island.is-menu .island-date { display: none; }
  .island-menu { margin-left: 10px; width: 34px; height: 34px; }
}

/* ---- Sound: an island under the island ------------------------------------------------ */
/* Collapsed: hairline bars and "Sound off" — they shimmer gently, and a red ring calls a few
   times after arrival, so a visitor notices there is sound to turn on. Pressed, it stretches open
   like the island above it: play / pause, mute and a volume slider. */
.snd {
  position: fixed;
  left: var(--isl-cx, 50%);
  top: calc(max(calc(var(--gy) - 17px), 10px) + 62px);
  translate: -50% 0;
  display: flex;
  align-items: center;
  height: 36px;
  border-radius: 999px;
  color: #f4f1ec;
  background: rgba(18, 17, 16, 0.58);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), inset 0 0 0 1px rgba(255, 255, 255, 0.1), 0 14px 30px -16px rgba(0, 0, 0, 0.7);
  white-space: nowrap;
  pointer-events: auto;
  transition: opacity 0.4s var(--ease), background-color 0.3s;
}
.snd:hover { background: rgba(30, 28, 26, 0.74); }
.snd::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  animation: snd-call 2.4s 3.8s cubic-bezier(0.2, 0.7, 0.3, 1) 4;
}
.snd.is-on::after { animation: none; }
@keyframes snd-call { 0% { box-shadow: 0 0 0 0 rgba(192, 11, 30, 0.55); } 100% { box-shadow: 0 0 0 12px rgba(192, 11, 30, 0); } }
.snd-main {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 100%;
  padding: 0 17px 0 15px;
  border-radius: 999px;
  font: 600 12px var(--sans);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.snd-main:focus-visible, .snd-btn:focus-visible { outline: none; box-shadow: inset 0 0 0 1.5px var(--red); }
.snd-bars { display: inline-flex; align-items: flex-end; gap: 2.5px; height: 13px; }
.snd-bars i { display: block; width: 2px; height: 3px; border-radius: 1px; background: currentColor; animation: snd-idle 2.6s ease-in-out infinite alternate; }
.snd-bars i:nth-child(2) { animation-delay: -0.6s; }
.snd-bars i:nth-child(3) { animation-delay: -1.3s; }
.snd-bars i:nth-child(4) { animation-delay: -0.3s; }
.snd-bars i:nth-child(5) { animation-delay: -1.9s; }
@keyframes snd-idle { 0% { height: 3px; } 100% { height: 6px; } }
.snd.is-on .snd-bars i { animation: snd-breathe 1.6s ease-in-out infinite alternate; }
.snd.is-on .snd-bars i:nth-child(2) { animation-duration: 1.1s; animation-delay: -0.4s; }
.snd.is-on .snd-bars i:nth-child(3) { animation-duration: 1.9s; animation-delay: -0.9s; }
.snd.is-on .snd-bars i:nth-child(4) { animation-duration: 1.3s; animation-delay: -0.2s; }
.snd.is-on .snd-bars i:nth-child(5) { animation-duration: 1.7s; animation-delay: -1.1s; }
.snd.is-on.is-muted .snd-bars i { animation: none; height: 3px; }
@keyframes snd-breathe { 0% { height: 3px; } 100% { height: 13px; } }
.snd-s { opacity: 0.6; }
.snd.is-on .snd-s { color: var(--red); opacity: 1; }

/* The controls unfold to the right, at the island's own spring. */
.snd-more { display: grid; grid-template-columns: 0fr; transition: grid-template-columns 0.6s cubic-bezier(0.32, 1.28, 0.42, 1); }
.snd.is-open .snd-more { grid-template-columns: 1fr; }
.snd-ctl { min-width: 0; overflow: hidden; display: flex; align-items: center; gap: 4px; }
.snd-ctl > * { opacity: 0; transform: translateX(-6px); transition: opacity 0.3s var(--ease), transform 0.5s var(--ease); }
.snd.is-open .snd-ctl > * { opacity: 1; transform: none; transition-delay: 0.12s; }
.snd-ctl::before { content: ''; flex: none; width: 1px; height: 16px; margin-right: 6px; background: rgba(255, 255, 255, 0.18); }
.snd-btn { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; color: #f4f1ec; transition: background-color 0.3s; }
.snd-btn:hover { background: rgba(255, 255, 255, 0.12); }
.snd-btn svg { width: 15px; height: 15px; }
.snd-btn svg { display: block; }
.snd:not(.is-on) .i-pause, .snd.is-on .i-play { display: none; }
.snd:not(.is-muted) .i-muted, .snd.is-muted .i-vol { display: none; }

/* Volume: a hairline track that fills in red. */
.snd-vol {
  --v: 70%;
  flex: none;
  width: 96px;
  height: 30px;
  margin: 0 16px 0 6px;
  background: transparent;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}
.snd-vol:focus-visible { outline: none; }
.snd-vol::-webkit-slider-runnable-track { height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--red) var(--v), rgba(244, 241, 236, 0.25) var(--v)); }
.snd-vol::-moz-range-track { height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--red) var(--v), rgba(244, 241, 236, 0.25) var(--v)); }
.snd-vol::-webkit-slider-thumb { -webkit-appearance: none; width: 12px; height: 12px; margin-top: -5px; border: 0; border-radius: 50%; background: #f4f1ec; box-shadow: 0 1px 6px rgba(0, 0, 0, 0.4); }
.snd-vol::-moz-range-thumb { width: 12px; height: 12px; border: 0; border-radius: 50%; background: #f4f1ec; }
.snd-vol:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 3px rgba(192, 11, 30, 0.6); }

body.has-overlay .snd, body.has-drawer .snd { opacity: 0; pointer-events: none; }
/* Phones: the island sits at the right, so this one grows leftwards from under it. */
@media (max-width: 899px) {
  .snd { left: auto; right: var(--gx); translate: 0 0; top: calc(max(calc(var(--gy) - 17px), 10px) + 54px); height: 34px; }
  .snd-main { font-size: 11px; padding: 0 14px 0 13px; }
  .snd-vol { width: 80px; margin-right: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .snd-bars i, .snd.is-on .snd-bars i { animation: none; height: 6px; }
  .snd::after { animation: none; }
}

/* ---- Drawer: the phone and tablet menu — big type, nothing else --------------------- */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 39;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  padding: calc(var(--gy) + 80px) var(--gx) calc(var(--gy) + 40px);
  background: #080808;
  color: var(--fg);
  clip-path: inset(0 0 100% 0);
  visibility: hidden;
  transition: clip-path 0.9s var(--ease), visibility 0s 0.9s;
  overflow-y: auto;
}
.drawer.is-open { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path 0.9s var(--ease), visibility 0s; }
.drawer-links { display: grid; gap: 2px; }
.drawer-links a, .drawer-links button {
  font-family: var(--display);
  font-size: clamp(42px, 11vw, 88px);
  line-height: 1.02;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-align: left;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease), transform 0.9s var(--ease), color 0.3s;
}
.drawer-links a:hover, .drawer-links button:hover { color: var(--red); }
.drawer.is-open .drawer-links > * { opacity: 1; transform: none; transition-delay: calc(0.2s + var(--i) * 0.05s); }
.drawer-links .drawer-cta { color: var(--red); font-size: clamp(28px, 7vw, 54px); margin-top: 18px; }
/* The header hides its top-right slot on phones, so the drawer carries the call. */
.drawer-scav-mark { display: none; align-items: center; gap: 14px; margin-top: auto; padding-top: 28px; opacity: 0; transition: opacity 0.6s var(--ease); }
.drawer-scav-mark img { height: 22px; width: auto; }
.drawer-scav-mark .label { opacity: 0.7; }
.drawer.is-open .drawer-scav-mark { opacity: 1; transition-delay: 0.6s; }
.drawer-social { display: none; margin-top: 4px; opacity: 0; transition: opacity 0.6s var(--ease); }
.drawer-social a { width: 40px; height: 40px; }
.drawer-social svg { width: 20px; height: 20px; }
.drawer.is-open .drawer-social { opacity: 1; transition-delay: 0.7s; }
@media (max-width: 899px) {
  .drawer-scav-mark { display: inline-flex; align-self: flex-start; }
  .drawer-social { display: flex; }
  .drawer-links { margin-top: auto; }
}

/* ---- Close controls ------------------------------------------------------------------ */
/* "Close — Return to …": a caption saying where the X leads, then a small X in a circle. */
.x-bar {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 44px;
  padding: 0 5px 0 18px;
  border-radius: 999px;
  border: 1px solid rgba(244, 241, 236, 0.24);
  background: rgba(0, 0, 0, 0.36);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  color: var(--fg);
  pointer-events: auto;
  white-space: nowrap;
  transition: background-color 0.3s, border-color 0.3s, color 0.3s;
}
.x-bar-t { display: grid; justify-items: end; gap: 2px; line-height: 1.1; }
.x-bar-t b { font: 600 11px var(--sans); letter-spacing: 0.18em; text-transform: uppercase; }
.x-bar-t small { font: 400 11.5px var(--sans); letter-spacing: 0.01em; text-transform: none; opacity: 0.68; }
.x-bar-c { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(244, 241, 236, 0.42); transition: transform 0.6s var(--ease), background-color 0.3s, color 0.3s, border-color 0.3s; }
.x-bar-c svg { width: 13px; height: 13px; }
.x-bar:hover { border-color: rgba(244, 241, 236, 0.5); background: rgba(0, 0, 0, 0.5); }
.x-bar:hover .x-bar-c { transform: rotate(90deg); background: var(--fg); border-color: var(--fg); color: #000; }
.x-bar:focus-visible { outline: none; box-shadow: 0 0 0 2px var(--red); }
.view-project.on-light .x-bar { color: #041a36; border-color: rgba(4, 26, 54, 0.22); background: rgba(244, 241, 236, 0.62); }
.view-project.on-light .x-bar-c { border-color: rgba(4, 26, 54, 0.35); }
.view-project.on-light .x-bar:hover .x-bar-c { background: #041a36; border-color: #041a36; color: #f4f1ec; }

/* The chrome's own close, for overlays and the list views. Hidden, it must not catch a
   single click: it sits over the page's own close and the booking call. */
.x-bar.overlay-x { position: absolute; right: 0; top: 50%; opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(-50%) scale(0.92); transition: opacity 0.4s var(--ease), transform 0.5s var(--ease), visibility 0s 0.4s; }
body.has-overlay .x-bar.overlay-x, body.is-collection .x-bar.overlay-x { opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(-50%); transition-delay: 0s; }
@media (max-width: 899px) {
  .x-bar.overlay-x { position: fixed; top: auto; right: var(--gx); bottom: max(var(--gy), env(safe-area-inset-bottom)); transform: none; }
  body.has-overlay .x-bar.overlay-x, body.is-collection .x-bar.overlay-x { transform: none; }
  /* On the list views the close takes the credit's corner. */
  body.is-collection .chrome-foot-r { opacity: 0; pointer-events: none; }
}

/* A plain X in a circle (the lightbox). */
.x-btn {
  width: 52px;
  height: 52px;
  padding: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(244, 241, 236, 0.4);
  color: var(--fg);
  background: rgba(0, 0, 0, 0.28);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  pointer-events: auto;
  transition: transform 0.6s var(--ease), background 0.3s, color 0.3s, border-color 0.3s;
}
.x-btn span { display: grid; place-items: center; }
.x-btn svg { width: 18px; height: 18px; }
.x-btn:hover { transform: rotate(90deg); background: var(--fg); color: #000; border-color: var(--fg); opacity: 1; }

/* ---- Testimonials: the card deck ----------------------------------------------------- */
.overlay-wide { width: min(880px, 100%); }
#overlay-voices .overlay-scroll { place-items: stretch; padding: calc(var(--gy) + 70px) var(--gx) calc(var(--gy) + 40px); }
#overlay-voices .overlay-inner { width: 100%; max-width: 1320px; margin: auto; text-align: left; }
.vx { display: grid; grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr); grid-template-rows: 1fr auto; gap: 3vh 6vw; align-items: center; min-height: calc(100vh - var(--gy) * 2 - 140px); }
.vx-head { grid-row: 1 / 3; align-self: center; }
.vx-head > .label { letter-spacing: 0.2em; opacity: 0.6; }
.vx-title { margin-top: 18px; font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(56px, 6.4vw, 118px); line-height: 0.86; }
.vx-script { font-family: var(--script); font-size: clamp(28px, 2.6vw, 44px); margin-top: 4px; transform: rotate(-4deg); transform-origin: left; opacity: 0.9; }

.vx-deck { position: relative; height: min(62vh, 560px); display: grid; place-items: center; touch-action: pan-y; }
.vx-card {
  grid-area: 1 / 1;
  position: relative;
  width: min(540px, 100%);
  min-height: min(56vh, 500px);
  display: flex;
  flex-direction: column;
  padding: 30px 34px 28px;
  border-radius: 10px;
  background:
    radial-gradient(120% 80% at 0% 0%, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0) 55%),
    linear-gradient(160deg, #f7f4ef, #ebe6de);
  color: #0e0e0e;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset, 0 40px 80px -30px rgba(0, 0, 0, 0.85), 0 12px 24px -12px rgba(0, 0, 0, 0.6);
  transform-origin: 50% 90%;
  transition: transform 0.75s var(--ease), opacity 0.6s var(--ease), filter 0.6s var(--ease);
  user-select: none;
  will-change: transform;
}
.vx-card.is-top { cursor: pointer; }
.vx-card.is-drag { cursor: grabbing; }
.vx-card header { display: flex; justify-content: space-between; opacity: 0.55; font-size: 11px; }
.vx-mark { font-family: var(--display); font-size: 120px; line-height: 0.6; color: var(--red); margin: 30px 0 4px -4px; height: 52px; }
.vx-text { font-family: var(--serif); font-size: clamp(17px, 1.35vw, 21px); line-height: 1.48; letter-spacing: 0.002em; flex: 1; }
.vx-card footer { margin-top: 26px; padding-top: 18px; border-top: 1px solid rgba(0, 0, 0, 0.12); display: grid; gap: 6px; }
.vx-sig { font-family: var(--script); font-size: 32px; line-height: 1; }
.vx-card footer .label { opacity: 0.6; font-size: 11px; }
.vx-card footer a { color: var(--red); opacity: 1; }
/* Short quotes (most Google reviews) are set large, so the card never looks empty. */
.vx-text.is-short { flex: 0 1 auto; margin-top: auto; margin-bottom: auto; font-family: var(--display); font-size: clamp(34px, 3vw, 50px); line-height: 1.05; }
.vx-stars { color: var(--red); letter-spacing: 0.14em; opacity: 1; }
.vx-card.is-google header { opacity: 0.75; }
.vx-ctl { grid-column: 2; display: flex; align-items: center; justify-content: center; gap: 18px; font-variant-numeric: tabular-nums; }
.vx-ctl button { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--faint); font-size: 18px; transition: background 0.3s, border-color 0.3s; }
.vx-ctl button:hover { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.vx-count b { font-weight: 600; }
.vx-count i { font-style: normal; opacity: 0.5; }
.vx-hint { opacity: 0.45; margin-left: 10px; }
@media (max-width: 980px) {
  .vx { grid-template-columns: 1fr; grid-template-rows: auto; }
  .vx-head { grid-row: auto; }
  .vx-ctl { grid-column: 1; }
  .vx-card { padding: 24px 22px; min-height: 0; }
  .vx-deck { height: auto; min-height: 60vh; }
}
@media (max-width: 760px) {
  .vx-title { font-size: clamp(44px, 13vw, 64px); }
  .vx-script { margin-top: 10px; }
}

/* ---- Contact: details on the left, a sentence-form on the right ------------------------ */
#overlay-contact, #overlay-book, #overlay-privacy, #overlay-terms { background: rgba(0, 17, 42, 0.95); }
#overlay-contact .overlay-scroll { padding: calc(var(--gy) + 64px) var(--gx) calc(var(--gy) + 96px); }
.overlay-inner.overlay-contact { width: min(1300px, 100%); text-align: left; }
.cx { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(40px, 7vw, 120px); align-items: center; }

.cx-kicker { letter-spacing: 0.22em; opacity: 0.7; }
.cx-title { margin-top: 16px; font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(48px, 5vw, 92px); line-height: 0.86; }
.cx-script { font-family: var(--script); font-size: clamp(34px, 3vw, 52px); line-height: 1.1; margin: 0.12em 0 0 0.4em; transform: rotate(-4deg); transform-origin: left; }
.cx-lead { margin-top: 18px; font-size: 16px; line-height: 1.6; color: rgba(244, 241, 236, 0.84); max-width: 38ch; }
.cx-rows { display: grid; gap: 22px; margin-top: 28px; }
.cx-rows dt { letter-spacing: 0.16em; opacity: 0.6; margin-bottom: 10px; }
.cx-rows dd { font-family: var(--serif); font-size: clamp(19px, 1.6vw, 24px); line-height: 1.38; color: var(--fg); }
.cx-rows a { background: linear-gradient(currentColor, currentColor) left bottom / 0 1px no-repeat; transition: background-size 0.5s var(--ease), color 0.3s; }
.cx-rows a:hover { background-size: 100% 1px; }
.cx-pair { display: grid; grid-template-columns: auto auto; justify-content: start; gap: 48px; }
.cx-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 22px; margin-top: 28px; }
.cx-pill { display: inline-flex; align-items: center; gap: 10px; height: 46px; padding: 0 22px; border-radius: 999px; border: 1px solid rgba(244, 241, 236, 0.4); font: 600 12.5px var(--sans); letter-spacing: 0.1em; text-transform: uppercase; transition: background 0.35s, color 0.35s, border-color 0.35s; }
.cx-pill:hover { background: var(--fg); color: #000; border-color: var(--fg); }
.cx-scav { display: inline-flex; align-items: center; gap: 12px; font-size: 13px; line-height: 1.35; color: rgba(244, 241, 236, 0.85); }
.cx-scav img { width: 46px; height: 46px; border-radius: 3px; transition: transform 0.5s var(--ease); }
.cx-scav:hover img { transform: rotate(-5deg) scale(1.05); }
.cx-social { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 24px; }
.cx-social a { opacity: 0.85; transition: opacity 0.3s, color 0.3s; }
.cx-social a:hover { opacity: 1; color: var(--red); }
.cx-nowrap { white-space: nowrap; }

.cx-card {
  position: relative;
  border-radius: 20px;
  padding: clamp(24px, 2.6vw, 44px);
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(192, 11, 30, 0.16), rgba(192, 11, 30, 0) 55%),
    linear-gradient(180deg, rgba(28, 26, 24, 0.9), rgba(14, 13, 12, 0.92));
  border: 1px solid rgba(244, 241, 236, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 50px 120px -50px rgba(0, 0, 0, 0.9);
}
.cx-form-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-bottom: 18px; margin-bottom: 18px; border-bottom: 1px solid rgba(244, 241, 236, 0.12); }
.cx-form-head .label:first-child { letter-spacing: 0.18em; }
.cx-step { opacity: 0.5; }
.cx-sentence { font-family: var(--serif); font-size: clamp(19px, 1.6vw, 25px); line-height: 1.9; color: rgba(244, 241, 236, 0.92); }
.cx-in {
  display: inline-block;
  min-width: 6ch;
  max-width: 100%;
  margin: 0 0.15em;
  padding: 0 0.1em 2px;
  border: 0;
  border-bottom: 1px solid rgba(244, 241, 236, 0.35);
  background: transparent;
  color: #fff;
  font: inherit;
  line-height: 1.2;
  outline: none;
  transition: border-color 0.35s var(--ease), background-size 0.5s var(--ease);
  background-image: linear-gradient(var(--red), var(--red));
  background-repeat: no-repeat;
  background-position: left bottom;
  background-size: 0 2px;
}
.cx-in::placeholder { color: rgba(244, 241, 236, 0.38); font-style: italic; }
.cx-in:focus { background-size: 100% 2px; border-bottom-color: transparent; }
.cx-in.is-bad { border-bottom-color: var(--red); background-size: 100% 2px; }
.cx-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 14px; }
.cx-chip { position: relative; cursor: pointer; }
.cx-chip input { position: absolute; opacity: 0; pointer-events: none; }
.cx-chip span {
  display: inline-flex;
  align-items: center;
  height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(244, 241, 236, 0.25);
  font-size: 14px;
  color: rgba(244, 241, 236, 0.8);
  transition: background 0.3s, color 0.3s, border-color 0.3s, transform 0.4s var(--ease);
}
.cx-chip:hover span { border-color: rgba(244, 241, 236, 0.6); color: #fff; }
.cx-chip input:checked + span { background: var(--fg); color: #041a36; border-color: var(--fg); }
.cx-chip input:focus-visible + span { outline: 1px solid var(--fg); outline-offset: 3px; }
.cx-field { margin-top: 14px; }
.cx-sub { display: block; opacity: 0.6; letter-spacing: 0.16em; margin-bottom: 4px; }
.cx-note {
  width: 100%;
  margin-top: 10px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(244, 241, 236, 0.18);
  background: rgba(255, 255, 255, 0.03);
  color: #fff;
  font: 400 15px/1.55 var(--sans);
  resize: vertical;
  outline: none;
  transition: border-color 0.3s;
}
.cx-note::placeholder { color: rgba(244, 241, 236, 0.4); }
.cx-note:focus { border-color: rgba(244, 241, 236, 0.5); }
.cx-error { min-height: 1.3em; margin-top: 14px; color: #ff6b6b; font-size: 13.5px; }
.cx-submit-row { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-top: 8px; flex-wrap: wrap; }
.cx-fine { font-size: 12.5px; color: rgba(244, 241, 236, 0.55); max-width: 30ch; }
.cx-submit {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  height: 56px;
  padding: 0 8px 0 26px;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font: 600 13px var(--sans);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: background 0.35s, transform 0.4s var(--ease);
}
.cx-submit:hover { background: #d90f25; transform: translateY(-2px); }
.cx-submit-arrow { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: rgba(255, 255, 255, 0.16); transition: transform 0.5s var(--ease); }
.cx-submit-arrow svg { width: 16px; height: 16px; }
.cx-submit:hover .cx-submit-arrow { transform: rotate(-45deg); }
.cx-form.is-shake { animation: cx-shake 0.45s var(--ease); }
@keyframes cx-shake { 20% { transform: translateX(-8px); } 45% { transform: translateX(7px); } 70% { transform: translateX(-4px); } }
.cx-done { display: grid; gap: 18px; justify-items: start; padding: 20px 0; animation: pp-fade 0.8s var(--ease) both; }
.cx-done .label { letter-spacing: 0.18em; opacity: 0.6; }
.cx-done-title { font-family: var(--display); text-transform: uppercase; font-size: clamp(48px, 4.6vw, 84px); line-height: 0.9; }
.cx-done-text { font-size: 16px; line-height: 1.6; color: rgba(244, 241, 236, 0.84); max-width: 42ch; }
.cx-done-text a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 980px) {
  .cx { grid-template-columns: 1fr; }
  .cx-pair { grid-template-columns: 1fr; gap: 28px; }
  .cx-sentence { line-height: 1.9; }
}
