/*
Theme Name: Creative Drum Holding
Theme URI: https://creativedrum.co.uk/
Author: Creative Drum
Description: Animated one-page holding theme for Creative Drum with private server-side contact form.
Version: 1.10
Requires at least: 6.5
Requires PHP: 8.1
Text Domain: creative-drum
*/

:root {
  --cd-pink: #ed1b73;
  --cd-pink-deep: #d91669;
  --cd-plum: #493e44;
  --cd-ink: #2d282b;
  --cd-paper: #fbf8fa;
  --cd-white: #fff;
  --cd-border: rgba(73, 62, 68, .12);
  --cd-shadow: 0 28px 80px rgba(73, 62, 68, .11);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--cd-ink);
  background:
    radial-gradient(circle at 15% 15%, rgba(237, 27, 115, .08), transparent 29rem),
    radial-gradient(circle at 88% 62%, rgba(237, 27, 115, .055), transparent 33rem),
    #fff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

button, input, textarea { font: inherit; }
button { color: inherit; }
a { color: inherit; }
img { max-width: 100%; height: auto; }

.cd-site {
  width: min(1540px, calc(100% - 30px));
  min-height: calc(100vh - 30px);
  margin: 15px auto;
  overflow: hidden;
  border: 1px solid var(--cd-border);
  border-radius: clamp(24px, 3vw, 38px);
  background: rgba(255,255,255,.94);
  box-shadow: var(--cd-shadow);
  position: relative;
}

.cd-site::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(73,62,68,.06) .7px, transparent .7px);
  background-size: 24px 24px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.35), transparent 54%);
}

.cd-header {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 30px clamp(28px, 5vw, 72px) 12px;
}

.cd-header__brand img { display: block; width: 150px; }
.cd-header__actions { display: flex; align-items: center; gap: 12px; }
.cd-location {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  margin-right: 8px;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(73,62,68,.76);
}

.cd-live-dot {
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--cd-pink);
  box-shadow: 0 0 0 0 rgba(237,27,115,.3);
  animation: cd-live 2.2s ease-out infinite;
}

.cd-icon-link,
.cd-ghost-button,
.cd-dialog__close {
  border: 1px solid var(--cd-border);
  background: rgba(255,255,255,.82);
  cursor: pointer;
}

.cd-icon-link {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  text-decoration: none;
}
.cd-icon-link svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; }

.cd-ghost-button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 750;
}

.cd-main { position: relative; z-index: 2; }
.cd-hero {
  min-height: min(760px, calc(100vh - 155px));
  display: grid;
  grid-template-columns: minmax(0, .88fr) minmax(520px, 1.12fr);
  align-items: center;
  gap: clamp(20px, 4vw, 70px);
  padding: 20px clamp(28px, 5vw, 72px) 32px;
}

.cd-copy { position: relative; z-index: 5; padding: 34px 0 56px; }
.cd-kicker,
.cd-coming-soon {
  display: flex;
  align-items: center;
  gap: 18px;
  color: rgba(73,62,68,.62);
  font-size: .69rem;
  font-weight: 800;
  letter-spacing: .22em;
  text-transform: uppercase;
}
.cd-kicker i,
.cd-coming-soon i { height: 1px; flex: 1; max-width: 150px; background: rgba(73,62,68,.18); }

.cd-title {
  max-width: 9.2ch;
  margin: 28px 0 0;
  color: var(--cd-plum);
  font-size: clamp(4.2rem, 6.8vw, 7.4rem);
  line-height: .91;
  letter-spacing: -.075em;
  text-wrap: balance;
}
.cd-title span { color: var(--cd-pink); white-space: nowrap; }

.cd-intro {
  max-width: 35rem;
  margin: 28px 0 0;
  color: rgba(45,40,43,.79);
  font-size: clamp(1.05rem, 1.35vw, 1.25rem);
  line-height: 1.6;
}

.cd-actions { display: flex; align-items: center; gap: 20px; margin-top: 34px; flex-wrap: wrap; }
.cd-button {
  min-height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 15px 24px;
  border: 0;
  border-radius: 999px;
  background: var(--cd-pink);
  color: #fff;
  box-shadow: 0 14px 30px rgba(237,27,115,.24);
  font-weight: 800;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.cd-button:hover,
.cd-button:focus-visible { transform: translateY(-3px); background: var(--cd-pink-deep); box-shadow: 0 19px 38px rgba(237,27,115,.30); }
.cd-button span { font-size: 1.3em; transition: transform .2s ease; }
.cd-button:hover span { transform: translateX(4px); }
.cd-button:disabled { opacity: .58; cursor: wait; transform: none; }

.cd-contact-note { color: rgba(73,62,68,.48); font-size: .82rem; }
.cd-coming-soon { margin-top: 78px; }
.cd-coming-soon .cd-live-dot { width: 9px; height: 9px; }

/* Interactive orbit */
.cd-orbit {
  position: relative;
  width: 100%;
  min-height: 660px;
  isolation: isolate;
}

.cd-orbit__glow {
  position: absolute;
  width: min(590px, 82%);
  aspect-ratio: 1;
  left: 50%;
  top: 49%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, rgba(237,27,115,.14) 0 28%, rgba(237,27,115,.055) 29% 54%, rgba(237,27,115,.018) 55% 68%, transparent 69%);
  filter: blur(.1px);
}

.cd-orbit__ring {
  position: absolute;
  left: 50%;
  top: 49%;
  width: 66%;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px dashed rgba(237,27,115,.24);
  transform: translate(-50%,-50%);
  pointer-events: none;
}
.cd-orbit__ring::before,
.cd-orbit__ring::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--cd-pink);
  box-shadow: 0 0 22px rgba(237,27,115,.35);
}
.cd-orbit__ring::before { left: 10%; top: 13%; }
.cd-orbit__ring::after { right: -6px; top: 53%; }
.cd-orbit__ring--outer { animation: cd-spin 24s linear infinite; }
.cd-orbit__ring--inner { width: 53%; border-style: solid; border-color: rgba(237,27,115,.16); animation: cd-spin-reverse 18s linear infinite; }
.cd-orbit__ring--inner::before { left: 78%; top: 7%; width: 7px; height: 7px; }
.cd-orbit__ring--inner::after { right: auto; left: -4px; top: 60%; width: 7px; height: 7px; }

.cd-orbit__pulse {
  position: absolute;
  left: 50%;
  top: 49%;
  width: 330px;
  aspect-ratio: 1;
  transform: translate(-50%,-50%);
  border-radius: 50%;
  background: var(--cd-pink);
  box-shadow: 0 0 80px rgba(237,27,115,.22);
  animation: cd-breathe 4s ease-in-out infinite;
}

.cd-core {
  position: absolute;
  left: 50%;
  top: 49%;
  width: 260px;
  aspect-ratio: 1;
  transform: translate(-50%,-50%);
  z-index: 3;
}
.cd-core__disc {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  padding: 52px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 25px 55px rgba(73,62,68,.15);
}
.cd-core__disc img { width: 100%; }
.cd-core__echo {
  position: absolute;
  inset: -18px;
  border: 2px solid rgba(237,27,115,.18);
  border-radius: 50%;
  animation: cd-echo 3.1s ease-out infinite;
}
.cd-core.is-bursting::before,
.cd-core.is-bursting::after {
  content: "";
  position: absolute;
  inset: -8px;
  z-index: 0;
  border-radius: 50%;
  border: 2px solid rgba(237,27,115,.55);
  animation: cd-burst .75s ease-out forwards;
}
.cd-core.is-bursting::after { animation-delay: .12s; }

.cd-service-card {
  --orbit-x: 0px;
  --orbit-y: 0px;
  --orbit-scale: 1;
  --pulse-duration: 4.2s;
  --pulse-delay: 0s;
  position: absolute;
  left: 50%;
  top: 49%;
  width: 148px;
  height: 148px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transform: translate(calc(-50% + var(--orbit-x)), calc(-50% + var(--orbit-y))) scale(var(--orbit-scale));
  transition: width .44s cubic-bezier(.18,.82,.22,1), height .44s cubic-bezier(.18,.82,.22,1), transform .36s cubic-bezier(.2,.8,.2,1), filter .25s ease;
  z-index: 4;
}
.cd-service-card:nth-of-type(1) { --pulse-duration: 3.65s; --pulse-delay: -.8s; }
.cd-service-card:nth-of-type(2) { --pulse-duration: 4.35s; --pulse-delay: -2.2s; }
.cd-service-card:nth-of-type(3) { --pulse-duration: 3.95s; --pulse-delay: -1.15s; }
.cd-service-card:nth-of-type(4) { --pulse-duration: 4.75s; --pulse-delay: -3.05s; }
.cd-service-card:nth-of-type(5) { --pulse-duration: 4.15s; --pulse-delay: -1.8s; }
.cd-service-card:nth-of-type(6) { --pulse-duration: 3.8s; --pulse-delay: -2.65s; }

.cd-service-shell {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  overflow: hidden;
  padding: 18px 14px 14px;
  border: 1px solid rgba(73,62,68,.08);
  border-radius: 50%;
  background: rgba(255,255,255,.94);
  box-shadow: 0 18px 42px rgba(73,62,68,.12), 0 0 0 0 rgba(237,27,115,0);
  backdrop-filter: blur(15px);
  text-align: center;
  animation: cd-service-pulse var(--pulse-duration) ease-in-out var(--pulse-delay) infinite;
  transition: border-radius .44s cubic-bezier(.18,.82,.22,1), padding .4s cubic-bezier(.18,.82,.22,1), box-shadow .25s ease, background .25s ease;
}
.cd-service-card:hover .cd-service-shell,
.cd-service-card:focus-visible .cd-service-shell {
  background: #fff;
  box-shadow: 0 24px 58px rgba(237,27,115,.17), 0 0 0 5px rgba(237,27,115,.045);
}
.cd-service-card.is-active {
  width: clamp(280px, 25vw, 350px);
  height: 232px;
  z-index: 8;
  filter: saturate(1.04);
}
.cd-service-card.is-active .cd-service-shell {
  align-items: flex-start;
  justify-content: flex-start;
  gap: 6px;
  padding: 24px 68px 22px 24px;
  border-radius: 30px;
  text-align: left;
  box-shadow: 0 34px 82px rgba(237,27,115,.24), 0 0 0 7px rgba(237,27,115,.04);
  animation: cd-card-burst .48s cubic-bezier(.16,.84,.24,1);
}

.cd-service-card strong {
  display: block;
  max-width: 116px;
  color: #181416;
  font-size: 1.02rem;
  line-height: 1.08;
  text-align: center;
  transition: max-width .34s ease, font-size .34s ease, text-align .34s ease, transform .34s ease;
}
.cd-service-card.is-active strong {
  max-width: calc(100% - 44px);
  font-size: 1.18rem;
  text-align: left;
}
.cd-service-detail {
  display: block;
  width: 100%;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(9px) scale(.98);
  margin-top: 0;
  color: rgba(45,40,43,.72);
  font-size: .88rem;
  line-height: 1.48;
  transition: max-height .34s ease .05s, opacity .28s ease .08s, transform .34s ease .05s, margin .34s ease;
}
.cd-service-card.is-active .cd-service-detail {
  max-height: 155px;
  opacity: 1;
  transform: none;
  margin-top: 7px;
}

.cd-service-click {
  position: relative;
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid rgba(73,62,68,.11);
  border-radius: 50%;
  background: rgba(255,255,255,.9);
  box-shadow: 0 4px 12px rgba(73,62,68,.04);
  transition: transform .25s ease, background .25s ease, border-color .25s ease, box-shadow .25s ease, width .32s ease, height .32s ease, position .32s ease;
}
.cd-service-click svg { width: 17px; height: 17px; overflow: visible; }
.cd-click-pointer { fill: var(--cd-plum); transition: fill .25s ease; }
.cd-click-ray { fill: none; stroke: var(--cd-pink); stroke-width: 1.8; stroke-linecap: round; }
.cd-service-card:hover .cd-service-click,
.cd-service-card:focus-visible .cd-service-click {
  transform: scale(1.08);
  border-color: rgba(237,27,115,.28);
  box-shadow: 0 7px 18px rgba(237,27,115,.1);
}
.cd-service-card.is-active .cd-service-click {
  position: absolute;
  right: 20px;
  top: 20px;
  width: 38px;
  height: 38px;
  transform: scale(1.02);
  background: var(--cd-pink);
  border-color: var(--cd-pink);
  box-shadow: 0 9px 24px rgba(237,27,115,.25);
}
.cd-service-card.is-active .cd-click-pointer { fill: #fff; }
.cd-service-card.is-active .cd-click-ray { stroke: #fff; }

.cd-service-icon {
  position: relative;
  width: 44px;
  height: 40px;
  flex: 0 0 auto;
  display: block;
  transition: width .34s ease, height .34s ease, transform .34s ease;
}
.cd-service-card.is-active .cd-service-icon { width: 46px; height: 42px; }
.cd-service-icon--brand i { position: absolute; width: 31px; height: 31px; border-radius: 50%; top: 4px; }
.cd-service-icon--brand i:first-child { left: 0; background: rgba(237,27,115,.32); }
.cd-service-icon--brand i:last-child { left: 15px; background: var(--cd-pink); }
.cd-service-icon--cursor svg,
.cd-service-icon--pencil svg,
.cd-service-icon--camera svg,
.cd-service-icon--video svg { width: 100%; height: 100%; fill: var(--cd-pink); stroke: var(--cd-pink); stroke-width: 1.9; stroke-linejoin: round; }
.cd-service-icon--camera svg { fill: none; stroke-width: 2.5; }
.cd-service-icon--video svg { stroke: none; }
.cd-service-icon--tiles i { position: absolute; width: 27px; height: 27px; border-radius: 5px; }
.cd-service-icon--tiles i:first-child { left: 1px; top: 2px; background: var(--cd-pink); }
.cd-service-icon--tiles i:last-child { left: 16px; top: 13px; background: #74354f; opacity: .92; }
.cd-orbit__tag {
  position: absolute;
  right: 3%;
  bottom: 2%;
  color: rgba(73,62,68,.56);
  font-size: .63rem;
  font-weight: 800;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.cd-footer { position: relative; z-index: 3; padding: 0 30px 20px; text-align: center; color: rgba(73,62,68,.42); font-size: .76rem; }
.cd-footer p { margin: 0; }

/* Contact dialog */
.cd-dialog {
  width: min(650px, calc(100% - 28px));
  padding: 0;
  border: 0;
  border-radius: 28px;
  color: var(--cd-ink);
  background: #fff;
  box-shadow: 0 35px 120px rgba(73,62,68,.28);
}
.cd-dialog::backdrop { background: rgba(45,40,43,.48); backdrop-filter: blur(7px); }
.cd-contact-form { padding: clamp(26px, 5vw, 46px); }
.cd-dialog__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 22px; }
.cd-dialog__eyebrow { color: var(--cd-pink); font-size: .7rem; font-weight: 850; letter-spacing: .18em; text-transform: uppercase; }
.cd-dialog h2 { max-width: 12ch; margin: 9px 0 0; color: var(--cd-plum); font-size: clamp(2rem, 4vw, 3.2rem); line-height: .98; letter-spacing: -.05em; }
.cd-dialog__close { width: 44px; height: 44px; flex: 0 0 auto; border-radius: 50%; font-size: 1.7rem; line-height: 1; }
.cd-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 30px; }
.cd-contact-form > label { display: block; margin-top: 16px; }
.cd-contact-form label span { display: block; margin-bottom: 8px; color: rgba(73,62,68,.72); font-size: .8rem; font-weight: 750; }
.cd-contact-form input,
.cd-contact-form textarea {
  width: 100%;
  border: 1px solid rgba(73,62,68,.15);
  border-radius: 15px;
  background: var(--cd-paper);
  color: var(--cd-ink);
  padding: 14px 15px;
  outline: 0;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.cd-contact-form textarea { resize: vertical; min-height: 140px; }
.cd-contact-form input:focus,
.cd-contact-form textarea:focus { border-color: rgba(237,27,115,.62); box-shadow: 0 0 0 4px rgba(237,27,115,.09); background: #fff; }
.cd-honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.cd-form-actions { display: flex; align-items: center; gap: 18px; margin-top: 24px; flex-wrap: wrap; }
.cd-form-status { margin: 0; max-width: 320px; color: rgba(73,62,68,.68); font-size: .84rem; line-height: 1.4; }

:focus-visible { outline: 3px solid rgba(237,27,115,.28); outline-offset: 4px; }

@keyframes cd-live {
  0% { box-shadow: 0 0 0 0 rgba(237,27,115,.34); }
  65%, 100% { box-shadow: 0 0 0 12px rgba(237,27,115,0); }
}
@keyframes cd-spin { to { transform: translate(-50%,-50%) rotate(360deg); } }
@keyframes cd-spin-reverse { to { transform: translate(-50%,-50%) rotate(-360deg); } }
@keyframes cd-breathe {
  0%,100% { transform: translate(-50%,-50%) scale(.98); box-shadow: 0 0 55px rgba(237,27,115,.18); }
  50% { transform: translate(-50%,-50%) scale(1.035); box-shadow: 0 0 90px rgba(237,27,115,.29); }
}
@keyframes cd-echo { 0% { transform: scale(.94); opacity: .5; } 72%,100% { transform: scale(1.16); opacity: 0; } }
@keyframes cd-burst { 0% { transform: scale(.82); opacity: .65; } 100% { transform: scale(1.75); opacity: 0; } }
@keyframes cd-service-pulse {
  0%,100% { transform: scale(.985); box-shadow: 0 18px 42px rgba(73,62,68,.12), 0 0 0 0 rgba(237,27,115,0); }
  48% { transform: scale(1.015); box-shadow: 0 22px 52px rgba(73,62,68,.14), 0 0 0 8px rgba(237,27,115,.035); }
}
@keyframes cd-card-burst {
  0% { filter: saturate(.95); }
  45% { filter: saturate(1.13); }
  100% { filter: saturate(1); }
}

@media (max-width: 1120px) {
  .cd-hero { grid-template-columns: minmax(0,.9fr) minmax(470px,1.1fr); }
  .cd-title { font-size: clamp(3.8rem, 6.6vw, 6.2rem); }
  .cd-orbit { min-height: 600px; }
}

@media (max-width: 900px) {
  .cd-site { width: min(100% - 18px, 1540px); margin: 9px auto; }
  .cd-header { padding: 24px 24px 0; }
  .cd-location { display: none; }
  .cd-hero { grid-template-columns: 1fr; min-height: auto; padding: 20px 24px 38px; }
  .cd-copy { padding-bottom: 8px; }
  .cd-title { max-width: 10ch; font-size: clamp(3.7rem, 12vw, 6.5rem); }
  .cd-intro { max-width: 42rem; }
  .cd-coming-soon { margin-top: 48px; }
  .cd-orbit { min-height: 620px; max-width: 720px; margin: 0 auto; }
}

@media (max-width: 620px) {
  .cd-header__brand img { width: 120px; }
  .cd-icon-link { display: none; }
  .cd-ghost-button { min-height: 42px; padding: 0 15px; font-size: .82rem; }
  .cd-hero { padding-inline: 18px; }
  .cd-title { font-size: clamp(3.25rem, 16vw, 5.1rem); }
  .cd-intro { font-size: 1.05rem; }
  .cd-contact-note { width: 100%; }
  .cd-orbit { min-height: 610px; }
  .cd-orbit__pulse { width: 230px; }
  .cd-core { width: 186px; }
  .cd-core__disc { padding: 38px; }
  .cd-service-card { width: 116px; height: 116px; }
  .cd-service-shell { padding: 12px 10px 10px; gap: 5px; }
  .cd-service-icon { width: 36px; height: 32px; }
  .cd-service-card strong { max-width: 94px; font-size: .82rem; }
  .cd-service-click { width: 23px; height: 23px; }
  .cd-service-click svg { width: 14px; height: 14px; }
  .cd-service-card.is-active { width: 242px; height: 228px; }
  .cd-service-card.is-active .cd-service-shell { padding: 20px 58px 18px 19px; border-radius: 24px; }
  .cd-service-detail { font-size: .76rem; line-height: 1.46; }
  .cd-orbit__tag { bottom: 0; right: auto; left: 50%; transform: translateX(-50%); white-space: nowrap; }
  .cd-form-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
}

/* v1.5 — optional Creative Drum percussion layer */
.cd-sound-toggle {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 13px;
  border: 1px solid var(--cd-border);
  border-radius: 999px;
  background: rgba(255,255,255,.82);
  color: rgba(73,62,68,.72);
  font-size: .72rem;
  font-weight: 800;
  cursor: pointer;
  transition: color .2s ease, border-color .2s ease, background .2s ease, box-shadow .2s ease, transform .2s ease;
}
.cd-sound-toggle:hover,
.cd-sound-toggle:focus-visible {
  transform: translateY(-1px);
  color: var(--cd-plum);
  border-color: rgba(237,27,115,.24);
  box-shadow: 0 7px 20px rgba(237,27,115,.08);
}
.cd-sound-toggle.is-on {
  color: var(--cd-pink);
  border-color: rgba(237,27,115,.27);
  background: rgba(237,27,115,.045);
}
.cd-sound-toggle:disabled { opacity: .48; cursor: default; transform: none; }
.cd-sound-toggle__icon {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.cd-sound-toggle__icon--on { display: none; }
.cd-sound-toggle.is-on .cd-sound-toggle__icon--on { display: block; }
.cd-sound-toggle.is-on .cd-sound-toggle__icon--off { display: none; }

.cd-core {
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.cd-core__disc {
  transition: transform .22s ease, box-shadow .22s ease;
}
.cd-core:hover .cd-core__disc,
.cd-core:focus-visible .cd-core__disc {
  transform: scale(1.018);
  box-shadow: 0 29px 66px rgba(73,62,68,.17), 0 0 0 6px rgba(237,27,115,.04);
}
.cd-core:active .cd-core__disc { transform: scale(.985); }
.cd-core__hint {
  position: absolute;
  left: 50%;
  bottom: -46px;
  z-index: 9;
  transform: translate(-50%, 7px);
  padding: 8px 12px;
  border: 1px solid rgba(73,62,68,.09);
  border-radius: 999px;
  background: rgba(255,255,255,.94);
  box-shadow: 0 10px 26px rgba(73,62,68,.1);
  color: rgba(73,62,68,.68);
  font-size: .67rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}
.cd-core:hover .cd-core__hint,
.cd-core:focus-visible .cd-core__hint {
  opacity: 1;
  transform: translate(-50%, 0);
}

.cd-orbit.is-kick-wave::after {
  content: "";
  position: absolute;
  left: var(--kick-x, 50%);
  top: var(--kick-y, 49%);
  z-index: 2;
  width: var(--kick-size, 260px);
  aspect-ratio: 1;
  border: 2px solid rgba(237,27,115,.62);
  border-radius: 50%;
  pointer-events: none;
  animation: cd-kick-wave .82s cubic-bezier(.12,.64,.2,1) forwards;
}
.cd-service-card.is-beat-hit .cd-service-shell {
  animation: cd-service-hit .42s cubic-bezier(.18,.82,.2,1);
}

@keyframes cd-kick-wave {
  0% { transform: translate(-50%,-50%) scale(.78); opacity: .8; box-shadow: 0 0 0 0 rgba(237,27,115,.08); }
  72% { opacity: .34; }
  100% { transform: translate(-50%,-50%) scale(2.45); opacity: 0; box-shadow: 0 0 0 22px rgba(237,27,115,0); }
}
@keyframes cd-service-hit {
  0%,100% { transform: scale(1); }
  42% { transform: scale(1.07); box-shadow: 0 25px 60px rgba(237,27,115,.23), 0 0 0 9px rgba(237,27,115,.055); }
}

@media (max-width: 760px) {
  .cd-sound-toggle { width: 42px; height: 42px; min-height: 42px; padding: 0; justify-content: center; }
  .cd-sound-toggle span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
  .cd-core__hint { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .cd-orbit.is-kick-wave::after,
  .cd-service-card.is-beat-hit .cd-service-shell { animation: none !important; }
}

/* v1.6 — viewport-aware layout and touch-first mobile interactions */
body { overflow-x: hidden; }

.cd-site {
  width: min(1740px, calc(100% - 16px));
  height: calc(100vh - 16px);
  height: calc(100svh - 16px);
  min-height: 620px;
  margin: 8px auto;
}
body.admin-bar .cd-site {
  height: calc(100vh - 48px);
  height: calc(100svh - 48px);
  min-height: 590px;
}

/* The holding page no longer has a navigation bar: only the sound control floats above the hero. */
.cd-header {
  position: absolute;
  top: 18px;
  right: clamp(20px, 3vw, 48px);
  left: auto;
  z-index: 40;
  display: block;
  padding: 0;
}
.cd-header__actions,
.cd-header__brand,
.cd-location,
.cd-icon-link,
.cd-ghost-button { display: none !important; }

.cd-main { height: 100%; }
.cd-hero {
  height: 100%;
  min-height: 0;
  grid-template-columns: minmax(0, .86fr) minmax(500px, 1.14fr);
  align-items: center;
  gap: clamp(18px, 3.2vw, 58px);
  padding: clamp(34px, 5vh, 58px) clamp(28px, 4.6vw, 76px) clamp(24px, 3.6vh, 42px);
}
.cd-copy { padding: 0; }
.cd-mobile-brand { display: none; }
.cd-title {
  margin-top: clamp(16px, 2.8vh, 28px);
  font-size: clamp(3.95rem, min(6.75vw, 11.1vh), 7.35rem);
}
.cd-intro {
  margin-top: clamp(16px, 3vh, 28px);
  max-width: 36rem;
  font-size: clamp(1.08rem, min(1.42vw, 2.4vh), 1.32rem);
  line-height: 1.52;
}
.cd-actions { margin-top: clamp(18px, 3.5vh, 32px); }
.cd-button { min-height: clamp(52px, 7.6vh, 58px); }
.cd-coming-soon { margin-top: clamp(26px, 7vh, 72px); }

.cd-orbit {
  --cd-core-size: clamp(190px, min(17vw, 34vh), 260px);
  --cd-service-size: clamp(112px, min(9.7vw, 19vh), 148px);
  align-self: stretch;
  width: 100%;
  height: 100%;
  min-height: 0;
}
.cd-core { width: var(--cd-core-size); }
.cd-core__disc { padding: clamp(38px, min(3.4vw, 6.8vh), 52px); }
.cd-orbit__pulse { width: clamp(250px, min(22vw, 43vh), 330px); }
.cd-service-card { width: var(--cd-service-size); height: var(--cd-service-size); }
.cd-service-card.is-active {
  width: clamp(286px, min(25vw, 52vh), 350px);
  height: clamp(222px, 35vh, 232px);
}
.cd-footer {
  position: absolute;
  left: 50%;
  bottom: 10px;
  transform: translateX(-50%);
  padding: 0;
  pointer-events: none;
}

/* Short laptop screens: preserve the whole composition inside the viewport. */
@media (min-width: 901px) and (max-height: 760px) {
  .cd-site { min-height: 560px; }
  body.admin-bar .cd-site { min-height: 540px; }
  .cd-hero {
    grid-template-columns: minmax(0, .83fr) minmax(470px, 1.17fr);
    gap: clamp(12px, 2vw, 34px);
    padding-top: 28px;
    padding-bottom: 20px;
  }
  .cd-kicker,
  .cd-coming-soon { font-size: .62rem; }
  .cd-title { font-size: clamp(3.45rem, min(5.8vw, 9.4vh), 5.55rem); }
  .cd-intro {
    margin-top: 16px;
    font-size: clamp(.95rem, min(1.15vw, 2.1vh), 1.08rem);
    line-height: 1.48;
  }
  .cd-actions { margin-top: 18px; }
  .cd-button { min-height: 50px; padding-block: 11px; }
  .cd-coming-soon { margin-top: 28px; }
  .cd-orbit {
    --cd-core-size: clamp(178px, min(16vw, 31vh), 225px);
    --cd-service-size: clamp(104px, min(9vw, 17.5vh), 126px);
  }
  .cd-orbit__pulse { width: clamp(232px, min(21vw, 39vh), 286px); }
  .cd-service-card.is-active { width: min(320px, 26vw); height: 220px; }
  .cd-orbit__tag { bottom: 0; }
}

/* Stacked/touch layout. The orbit becomes a touch-friendly constellation rather than a tiny desktop animation. */
@media (max-width: 900px) {
  .cd-site,
  body.admin-bar .cd-site {
    width: 100%;
    height: auto;
    min-height: 100vh;
    min-height: 100svh;
    margin: 0;
    overflow: visible;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }
  .cd-header {
    position: absolute;
    top: 14px;
    right: 14px;
  }
  .cd-main { height: auto; }
  .cd-hero {
    height: auto;
    min-height: 100vh;
    min-height: 100svh;
    grid-template-columns: 1fr;
    align-items: start;
    gap: 18px;
    padding: 28px clamp(18px, 5vw, 38px) 34px;
  }
  .cd-copy { padding: 0; }
  .cd-mobile-brand {
    display: block;
    width: 112px;
    margin: 0 0 28px;
  }
  .cd-kicker { padding-right: 54px; font-size: .62rem; letter-spacing: .18em; }
  .cd-title {
    max-width: 9.4ch;
    margin-top: 18px;
    font-size: clamp(3.15rem, 13.7vw, 5.35rem);
    line-height: .92;
  }
  .cd-intro {
    margin-top: 20px;
    max-width: 42rem;
    font-size: clamp(1rem, 3.9vw, 1.12rem);
    line-height: 1.55;
  }
  .cd-actions { margin-top: 24px; }
  .cd-coming-soon { margin-top: 34px; }

  .cd-orbit.is-mobile-layout {
    --mobile-core: clamp(174px, 48vw, 220px);
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 10px;
    width: min(100%, 620px);
    height: auto;
    min-height: 0;
    margin: 6px auto 0;
    padding: 30px 0 10px;
    overflow: visible;
  }
  .cd-orbit.is-mobile-layout .cd-orbit__glow,
  .cd-orbit.is-mobile-layout .cd-orbit__ring,
  .cd-orbit.is-mobile-layout .cd-orbit__pulse {
    top: calc(30px + (var(--mobile-core) / 2));
  }
  .cd-orbit.is-mobile-layout .cd-orbit__glow { width: min(330px, 90vw); }
  .cd-orbit.is-mobile-layout .cd-orbit__ring--outer { width: min(286px, 76vw); }
  .cd-orbit.is-mobile-layout .cd-orbit__ring--inner { width: min(230px, 61vw); }
  .cd-orbit.is-mobile-layout .cd-orbit__pulse { width: calc(var(--mobile-core) * 1.25); }

  .cd-orbit.is-mobile-layout .cd-core {
    position: relative;
    left: auto;
    top: auto;
    grid-column: 1 / -1;
    grid-row: 1;
    justify-self: center;
    width: var(--mobile-core);
    margin: 0 0 30px;
    transform: none;
  }
  .cd-orbit.is-mobile-layout .cd-core__disc { padding: clamp(34px, 10vw, 46px); }

  .cd-orbit.is-mobile-layout .cd-service-card {
    position: relative;
    left: auto;
    top: auto;
    justify-self: center;
    width: min(126px, 38vw);
    height: min(126px, 38vw);
    transform: none !important;
    transition: width .42s cubic-bezier(.18,.82,.22,1), height .42s cubic-bezier(.18,.82,.22,1), filter .25s ease;
  }
  .cd-orbit.is-mobile-layout .cd-service-card.is-active {
    grid-column: 1 / -1;
    width: min(100%, 430px);
    height: auto;
    min-height: 205px;
  }
  .cd-orbit.is-mobile-layout .cd-service-card.is-active .cd-service-shell {
    min-height: 205px;
    padding: 22px 64px 22px 22px;
  }
  .cd-orbit.is-mobile-layout .cd-service-card strong { font-size: .88rem; }
  .cd-orbit.is-mobile-layout .cd-service-card.is-active strong { font-size: 1.15rem; }
  .cd-orbit.is-mobile-layout .cd-service-detail { font-size: .84rem; line-height: 1.48; }
  .cd-orbit.is-mobile-layout .cd-orbit__tag {
    position: static;
    grid-column: 1 / -1;
    justify-self: center;
    transform: none;
    margin-top: 10px;
    text-align: center;
  }
  .cd-footer { position: static; transform: none; padding: 10px 18px 22px; }
}

@media (min-width: 620px) and (max-width: 900px) {
  .cd-orbit.is-mobile-layout {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px 12px;
  }
  .cd-orbit.is-mobile-layout .cd-core,
  .cd-orbit.is-mobile-layout .cd-service-card.is-active,
  .cd-orbit.is-mobile-layout .cd-orbit__tag { grid-column: 1 / -1; }
}

@media (max-width: 520px) {
  .cd-header { top: 12px; right: 12px; }
  .cd-sound-toggle {
    width: 44px;
    height: 44px;
    min-height: 44px;
    padding: 0;
    justify-content: center;
    background: rgba(255,255,255,.95);
    box-shadow: 0 8px 24px rgba(73,62,68,.08);
  }
  .cd-sound-toggle span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
  }
  .cd-hero { padding-inline: 18px; }
  .cd-mobile-brand { width: 104px; margin-bottom: 24px; }
  .cd-title { font-size: clamp(3rem, 15.2vw, 4.35rem); }
  .cd-coming-soon i { max-width: 70px; }
  .cd-orbit.is-mobile-layout { gap: 14px 6px; }
  .cd-orbit.is-mobile-layout .cd-service-card { width: min(116px, 37vw); height: min(116px, 37vw); }
  .cd-orbit.is-mobile-layout .cd-service-icon { width: 34px; height: 31px; }
  .cd-orbit.is-mobile-layout .cd-service-click { width: 24px; height: 24px; }
}

/* Keep the six independent service rhythms deterministic now that the core is also a button. */
.cd-service-card[data-index="0"] { --pulse-duration: 3.65s; --pulse-delay: -.8s; }
.cd-service-card[data-index="1"] { --pulse-duration: 4.35s; --pulse-delay: -2.2s; }
.cd-service-card[data-index="2"] { --pulse-duration: 3.95s; --pulse-delay: -1.15s; }
.cd-service-card[data-index="3"] { --pulse-duration: 4.75s; --pulse-delay: -3.05s; }
.cd-service-card[data-index="4"] { --pulse-duration: 4.15s; --pulse-delay: -1.8s; }
.cd-service-card[data-index="5"] { --pulse-duration: 3.8s; --pulse-delay: -2.65s; }

@media (max-width: 900px) {
  .cd-orbit.is-mobile-layout .cd-orbit__glow,
  .cd-orbit.is-mobile-layout .cd-orbit__ring,
  .cd-orbit.is-mobile-layout .cd-orbit__pulse { top: clamp(120px, 32vw, 140px); }
  .cd-orbit.is-mobile-layout .cd-orbit__pulse { width: clamp(218px, 60vw, 275px); }
}

/* Keep the holding page visually clean; copyright can return with the full site. */
.cd-footer { display: none; }
