:root {
  --ink: #1c2735;
  --ink-soft: #58636f;
  --paper: #edf0f2;
  --surface: #ffffff;
  --navy: #142b49;
  --forest: var(--navy);
  --accent: #294b74;
  --on-accent: #ffffff;
  --line: #cbd1d6;
  --max-width: 1240px;
}

/* Pages cross-fade when moving to another page, here and in the account and admin pages (same rule in globals.css). */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  ::view-transition-old(root),
  ::view-transition-new(root) { animation-duration: 320ms; animation-timing-function: ease; }
}

/* Panels that appear once the page knows who's here (the call back form or its sign-in box, the AI Visualiser's
   questions or its gate) ease in rather than pop. "Loading…" only shows if it's slow, so a quick load never flashes it. */
@media (prefers-reduced-motion: no-preference) {
  .callback-form:not([hidden]),
  .callback-sign-in:not([hidden]) { animation: atte-panel-in 380ms cubic-bezier(.22, .8, .24, 1) backwards; }
}
@keyframes atte-panel-in { from { opacity: 0; transform: translateY(10px); } }
.visualiser-loading { animation: atte-show-late 0s 600ms backwards; }
@keyframes atte-show-late { from { visibility: hidden; } }

* {
  box-sizing: border-box;
}

html {
  color-scheme: light;
  scroll-behavior: auto;
  scroll-padding-top: 0;
  scroll-snap-type: none;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.65;
}

a {
  color: inherit;
}

.content-shell {
  width: min(calc(100% - 48px), var(--max-width));
  margin-inline: auto;
}

[data-site-header] {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 12px 18px 0;
}

.site-header {
  position: relative;
  width: min(100%, 1760px);
  margin-inline: auto;
  border: 1px solid rgba(255, 255, 255, .68);
  border-radius: 18px;
  background: rgba(255, 255, 255, .64);
  box-shadow: 0 14px 38px rgba(20, 35, 56, .13);
  -webkit-backdrop-filter: blur(20px) saturate(155%);
  backdrop-filter: blur(20px) saturate(155%);
}

.home-overview,
.dashboard-section {
  scroll-snap-align: start;
  scroll-snap-stop: normal;
}

.home-overview {
  scroll-margin-top: 0;
}

.home-overview {
  display: flex;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: calc(100svh - 92px);
  padding: clamp(36px, 5vh, 62px) 0;
  align-items: center;
  background-color: var(--paper);
  background-image: none;
}

.home-construction-scene {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  /* The illustration's average colour, so the light or dark tint over it looks the same before the picture
     has loaded (a phone on a slow connection) as after: no navy-to-grey flash in dark mode. */
  background-color: #c5c5bf;
}

body.has-construction-scene {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
}

.home-construction-scene img {
  position: absolute;
  inset: -2%;
  display: block;
  width: 104%;
  height: 104%;
  max-width: none;
  object-fit: cover;
  object-position: center;
  filter: saturate(.75);
  transition: opacity .25s ease;
}

.home-construction-scene::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(237, 240, 242, .24);
}

html[data-theme="dark"] .home-construction-scene::after {
  background: rgba(13, 23, 39, .59);
}

.construction-crew {
  position: absolute;
  inset: -2%;
  display: block;
  width: 104%;
  height: 104%;
  overflow: hidden;
  pointer-events: none;
}

@keyframes crew-hammer {
  0%, 12%, 100% { transform: rotate(6deg); }
  47%, 60% { transform: rotate(-67deg); }
  72% { transform: rotate(10deg); }
  79% { transform: rotate(-2deg); }
}

@keyframes crew-place-block {
  0%, 100% { transform: rotate(-25deg); }
  45%, 65% { transform: rotate(22deg); }
}

@keyframes crew-mason-lean {
  0%, 100% { transform: rotate(0deg); }
  45%, 65% { transform: rotate(5deg); }
}

@keyframes crew-delivery {
  0%, 5% { transform: translate(0, 0) scaleX(1); }
  44%, 49% { transform: translate(60px, -22px) scaleX(1); }
  50%, 55% { transform: translate(60px, -22px) scaleX(-1); }
  94%, 99% { transform: translate(0, 0) scaleX(-1); }
  100% { transform: translate(0, 0) scaleX(1); }
}

@keyframes crew-step {
  from { transform: rotate(-13deg); }
  to { transform: rotate(13deg); }
}

@keyframes crew-wheel-turn {
  to { transform: rotate(360deg); }
}

@keyframes crew-chips {
  0%, 68%, 90%, 100% { opacity: 0; transform: translate(0, 0); }
  74% { opacity: .8; transform: translate(2px, -3px); }
  86% { opacity: 0; transform: translate(5px, 2px); }
}

@media (prefers-reduced-motion: no-preference) {
  .crew-hammer-arm { animation: crew-hammer 2.2s ease-in-out infinite; }
  .crew-wood-chips { animation: crew-chips 2.2s linear infinite; }
  .crew-laying-arm { animation: crew-place-block 3.6s ease-in-out infinite; }
  .crew-mason-body { animation: crew-mason-lean 3.6s ease-in-out infinite; }
  .crew-delivery-route { animation: crew-delivery 16s linear infinite; }
  .crew-walking-leg { transform-origin: 0 -12px; animation: crew-step .45s ease-in-out infinite alternate; }
  .crew-walking-leg-right { animation-direction: alternate-reverse; }
  .crew-wheel { animation: crew-wheel-turn 1s linear infinite; }
}

.home-overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(420px, .92fr);
  gap: clamp(48px, 7vw, 100px);
  align-items: stretch;
}

.home-about {
  display: grid;
  padding: clamp(24px, 3vw, 40px);
  align-content: center;
  background: rgba(237, 240, 242, .76);
  box-shadow: 0 16px 44px rgba(20, 35, 56, .06);
  backdrop-filter: blur(3px);
}

.home-about .section-label {
  width: 86px;
  margin-bottom: 22px;
}

.home-about h2 {
  max-width: 720px;
  font-size: clamp(3.8rem, 6.5vw, 6.5rem);
}

.home-lead {
  max-width: 720px;
  margin: clamp(24px, 4vh, 40px) 0 14px;
  font-size: clamp(1.08rem, 1.45vw, 1.38rem);
  line-height: 1.55;
}

.home-supporting {
  max-width: 680px;
  margin: 0;
  color: var(--ink-soft);
  font-size: .98rem;
}

.home-principles {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 14px;
}

.principle-card {
  display: grid;
  padding: clamp(26px, 3vw, 42px);
  align-content: center;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 16px 44px rgba(20, 35, 56, .08);
}

.principle-card-dark {
  color: white;
  border-color: var(--forest);
  background: var(--forest);
}

.principle-card-dark .eyebrow {
  color: #b5c8df;
}

.principle-card h2 {
  font-size: clamp(2rem, 3vw, 3.5rem);
}

.principle-card > p:last-child {
  max-width: 620px;
  margin: 18px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1rem, 1.25vw, 1.2rem);
  line-height: 1.48;
}

.nav-shell {
  display: flex;
  width: min(calc(100% - 44px), 1640px);
  min-height: 78px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.nav-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 12px;
}

.primary-navigation {
  margin-left: auto;
}

.theme-toggle {
  display: grid;
  width: 40px;
  height: 40px;
  padding: 9px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease;
}

.theme-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--surface);
}

.theme-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.theme-toggle svg { width: 20px; height: 20px; }
.theme-toggle .theme-icon-sun,
html[data-theme="dark"] .theme-toggle .theme-icon-moon { display: none; }
html[data-theme="dark"] .theme-toggle .theme-icon-sun { display: block; }


.nav-brand-group {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-brand-group:has(.nav-back) {
  padding-left: 54px;
}

.nav-back {
  display: grid;
  position: absolute;
  top: 50%;
  left: 22px;
  width: 42px;
  height: 42px;
  padding: 0;
  transform: translateY(-50%);
  align-items: center;
  place-items: center;
  border: 0;
  color: var(--ink);
  background: transparent;
  font: inherit;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.nav-back:hover,
.nav-back:focus-visible {
  color: var(--accent);
  background: var(--paper);
}

.brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  display: block;
  flex: 0 0 auto;
  width: 60px;
  height: 48px;
  object-fit: contain;
}

.footer-logo-link {
  display: inline-block;
  margin-bottom: 14px;
}

.footer-logo {
  display: block;
  width: 88px;
  height: 70px;
  object-fit: contain;
}

.brand-name {
  font-size: 1.05rem;
  letter-spacing: .07em;
  text-transform: uppercase;
  white-space: nowrap;
}

.brand-name strong {
  display: block;
  color: var(--ink-soft);
  font-size: .69rem;
  letter-spacing: .15em;
}

.primary-navigation ul {
  display: flex;
  margin: 0;
  padding: 0;
  align-items: center;
  gap: clamp(12px, 1.55vw, 24px);
  list-style: none;
}

.primary-navigation a {
  display: block;
  padding: 34px 0 30px;
  border-bottom: 4px solid transparent;
  font-size: .77rem;
  font-weight: 700;
  letter-spacing: .075em;
  line-height: 1.3;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
  perspective: 500px;
}

.nav-label {
  display: inline-flex;
}

.nav-char {
  display: inline-block;
  position: relative;
  transform-style: preserve-3d;
}

.nav-char > span,
.nav-char::after {
  display: inline-block;
  transform-origin: center center -.45em;
  backface-visibility: hidden;
  transition: transform 420ms cubic-bezier(.2, .75, .25, 1);
  transition-delay: calc(var(--char-index) * 24ms);
}

.nav-char::after {
  position: absolute;
  top: 0;
  left: 0;
  transform: rotateX(-90deg);
  color: var(--forest);
  content: attr(data-char);
}

.primary-navigation a:hover .nav-char > span,
.primary-navigation a:focus-visible .nav-char > span {
  transform: rotateX(90deg);
}

.primary-navigation a:hover .nav-char::after,
.primary-navigation a:focus-visible .nav-char::after {
  transform: rotateX(0deg);
}

.primary-navigation a:hover,
.primary-navigation a:focus-visible,
.primary-navigation a[aria-current="page"] {
  color: var(--forest);
  border-bottom-color: #d4af37;
}

/* The Menu button in the top bar (narrower screens): a rounded pill the same height and border as the round icon
   buttons beside it and the gold account pill, gold while the menu is open. Phones show just the icon, in a circle. */
.menu-button {
  display: none;
  gap: 8px;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: transparent;
  font: inherit;
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .06em;
  line-height: 1;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color .18s ease, color .18s ease, background-color .18s ease;
}

.menu-button:hover,
.menu-button[aria-expanded="true"] {
  border-color: #c19b36;
  color: #c19b36;
}

.menu-button:focus-visible {
  outline: 2px solid #c19b36;
  outline-offset: 3px;
}

.menu-icon {
  display: inline-block;
  width: 16px;
  height: 10px;
  border-top: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
}

/* The account pill lines up with the 40px buttons beside it. */
.nav-actions .client-access-link { min-height: 40px; }

@media (prefers-reduced-motion: reduce) { .menu-button { transition: none; } }

.home-intro {
  padding: clamp(72px, 10vw, 150px) 0;
}

.home-grid {
  display: grid;
  grid-template-columns: 90px minmax(0, 780px);
  gap: clamp(30px, 7vw, 96px);
  align-items: start;
}

.section-label {
  padding-top: 13px;
  border-top: 3px solid #d4af37;
  color: var(--ink-soft);
  font-size: .77rem;
  font-weight: 700;
  letter-spacing: .14em;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--forest);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .17em;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: -.035em;
  line-height: 1.05;
}

h1 {
  max-width: 720px;
  font-size: clamp(3.2rem, 8vw, 7rem);
}

h2 {
  font-size: clamp(2.25rem, 4vw, 4.3rem);
}

.home-copy .lead {
  max-width: 760px;
  margin: 42px 0 20px;
  color: var(--ink);
  font-size: clamp(1.18rem, 2vw, 1.55rem);
  line-height: 1.55;
}

.home-copy > p:last-child {
  max-width: 680px;
  color: var(--ink-soft);
  font-size: 1.03rem;
}

.home-statement {
  padding: clamp(64px, 9vw, 120px) 0;
  color: white;
  background: var(--forest);
}

.home-statement-alt {
  color: var(--ink);
  background: var(--surface);
}

.home-statement .eyebrow {
  color: #b5c8df;
}

.home-statement-alt .eyebrow {
  color: var(--forest);
}

.statement-grid {
  display: grid;
  grid-template-columns: minmax(220px, .8fr) minmax(300px, 1.2fr);
  gap: clamp(48px, 10vw, 140px);
  align-items: start;
}

.statement-text {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.45rem, 2.5vw, 2.25rem);
  line-height: 1.45;
}

.blank-page {
  min-height: calc(100vh - 178px);
  background: var(--paper);
}

.dashboard-section {
  display: flex;
  min-height: calc(100svh - 92px);
  padding: clamp(72px, 10vw, 140px) 0;
  align-items: center;
  border-top: 1px solid var(--line);
  background: var(--paper);
  scroll-margin-top: 0;
}

.dashboard-section-dark {
  color: white;
  border-top-color: #344961;
  background: #101a29;
}

/* Particle logo intro at the top of the home page (logo-particles.js): full screen, under the floating header. The
   plain logo shows until the points are live. Drag turns it; vertical swipes still scroll the page. */
.logo-showcase { position: relative; display: flex; flex-direction: column; min-height: 100svh; padding: calc(var(--site-header-height, 98px) + 12px) 16px clamp(96px, 13vh, 124px); overflow: hidden; border-top: 0; background: transparent; }
/* The stage marks where the logo rests, above the headline. The canvas itself covers the whole section, so the
   points can fly in from, and explode out to, the screen edges without being cut off (logo-particles.js). */
.logo-showcase-stage { position: static; flex: 1 1 auto; align-self: stretch; min-height: 30svh; display: grid; place-items: center; }

/* Hero: what ATTE does and how to get in touch, on the first screen. */
.hero-copy { position: relative; z-index: 2; width: min(100%, 860px); margin: 0 auto; text-align: center; color: var(--ink); }
.hero-copy h1 { max-width: none; font-size: clamp(2.1rem, 4.6vw, 3.9rem); text-wrap: balance; text-shadow: 0 2px 18px var(--paper); }
.hero-lead { max-width: 620px; margin: 14px auto 0; color: var(--ink-soft); font-size: clamp(1rem, 1.35vw, 1.18rem); line-height: 1.5; text-wrap: pretty; text-shadow: 0 1px 12px var(--paper); }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 24px; }
.hero-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 26px; border-radius: 999px; font-weight: 800; text-decoration: none; transition: background-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.hero-button-primary { border: 1px solid #c19b36; color: #14202e; background: #c19b36; box-shadow: 0 8px 22px rgba(193, 155, 54, .35); }
.hero-button-primary:hover { background: #d4b04d; transform: translateY(-1px); }
.hero-button-secondary { border: 1px solid var(--line); color: var(--ink); background: var(--surface); }
.hero-button-secondary:hover { border-color: #c19b36; transform: translateY(-1px); }
.hero-button:focus-visible { outline: 2px solid #c19b36; outline-offset: 3px; }
.hero-trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 20px; margin: 22px 0 0; padding: 0; list-style: none; color: var(--ink-soft); font-size: .88rem; font-weight: 700; }
.hero-trust li { display: inline-flex; align-items: center; gap: 7px; }
.hero-trust li::before { content: "✓"; color: #c19b36; font-weight: 900; }
@media (max-width: 560px) {
  .logo-showcase-stage { min-height: 22svh; }
  .hero-copy h1 { font-size: clamp(1.9rem, 8.4vw, 2.3rem); }
  .hero-lead { margin-top: 10px; font-size: .98rem; }
  .hero-actions { flex-direction: column; align-items: stretch; margin-top: 18px; gap: 10px; }
  .hero-trust { gap: 4px 14px; margin-top: 16px; font-size: .8rem; }
}
@media (prefers-reduced-motion: reduce) { .hero-button { transition: none; } .hero-button:hover { transform: none; } }
.logo-showcase-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: grab; touch-action: pan-y; }
.logo-showcase-canvas.is-dragging { cursor: grabbing; }
.logo-showcase .intro-scroll-cue { transition: opacity .2s ease; }
.logo-showcase.is-bursting .intro-scroll-cue { opacity: 0; pointer-events: none; }
.logo-showcase-fallback { width: min(52vw, 320px); height: auto; opacity: 0; transition: opacity .6s ease; }
.logo-showcase.is-fallback .logo-showcase-fallback { opacity: 1; }
/* "Explore" arrow at the bottom of the intro: tells visitors there is more below, and scrolls to About Us. */
.intro-scroll-cue { position: absolute; left: 50%; bottom: clamp(18px, 4vh, 40px); z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; transform: translateX(-50%); }
.intro-scroll-label { font-size: .75rem; font-weight: 800; letter-spacing: .24em; text-transform: uppercase; }
.intro-scroll-arrow { display: grid; width: 52px; height: 52px; place-items: center; border: 1px solid #c19b36; border-radius: 50%; color: #14202e; background: #c19b36; box-shadow: 0 8px 22px rgba(193, 155, 54, .4); animation: intro-cue-bob 1.8s ease-in-out infinite; transition: background-color .18s ease, box-shadow .18s ease; }
.intro-scroll-arrow svg { width: 26px; height: 26px; stroke-width: 2.4; }
.intro-scroll-cue:hover .intro-scroll-arrow, .intro-scroll-cue:focus-visible .intro-scroll-arrow { background: #d4b04d; box-shadow: 0 10px 26px rgba(193, 155, 54, .55); }
.intro-scroll-cue:focus-visible { outline: none; }
.intro-scroll-cue:focus-visible .intro-scroll-arrow { outline: 2px solid #c19b36; outline-offset: 4px; }
@keyframes intro-cue-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(7px); } }
@media (prefers-reduced-motion: reduce) { .intro-scroll-arrow { animation: none; } }

.dashboard-section-dark .eyebrow {
  color: #b5c8df;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  gap: clamp(30px, 7vw, 96px);
}

.section-number {
  margin: 12px 0 0;
  padding-top: 13px;
  border-top: 3px solid #d4af37;
  color: var(--ink-soft);
  font-size: .77rem;
  font-weight: 700;
  letter-spacing: .14em;
}

.dashboard-section-dark .section-number {
  color: #b2bdca;
}

.dashboard-intro {
  max-width: 760px;
  margin: 34px 0 48px;
  color: var(--ink-soft);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.25rem, 2.1vw, 1.8rem);
  line-height: 1.5;
}

.dashboard-section-dark .dashboard-intro {
  color: #cbd2dc;
}

.service-card-grid {
  display: flex;
  width: 100%;
  min-height: 500px;
  gap: 10px;
  overflow: hidden;
  container-type: inline-size;
}

#services.dashboard-section {
  padding: clamp(28px, 4vh, 44px) 0;
}

#services > .content-shell {
  width: min(calc(100% - clamp(32px, 5vw, 96px)), 1480px);
}

#services .dashboard-intro {
  margin: 18px 0 26px;
}

#services .service-card-grid {
  min-height: clamp(360px, 46vh, 420px);
}

#services .service-card {
  min-height: clamp(360px, 46vh, 420px);
}

.service-card {
  --service-grow: .62;
  --service-copy-opacity: 0;
  --service-copy-visibility: hidden;
  --service-copy-delay: 0ms;
  --service-label-opacity: 1;
  --service-opacity: 1;
  --service-border: #41516a;
  display: block;
  position: relative;
  /* Narrower when space is tight, so the open card has room for its pills beside eight services and the side navbar. */
  min-width: min(72px, 7cqw);
  min-height: 500px;
  flex: var(--service-grow) 1 0;
  overflow: hidden;
  border: 1px solid var(--service-border);
  border-radius: 16px;
  color: white;
  background: #182538;
  text-decoration: none;
  opacity: var(--service-opacity);
  transition: flex 700ms cubic-bezier(.22, 1, .36, 1), opacity 450ms ease, border-color 450ms ease;
}

.service-card:first-child {
  --service-grow: 3.2;
  --service-copy-opacity: 1;
  --service-copy-visibility: visible;
  --service-copy-delay: 220ms;
  --service-label-opacity: 0;
}

.service-card-grid:has(.service-card:is(:hover, :focus-visible)) .service-card {
  --service-grow: .62;
  --service-copy-opacity: 0;
  --service-copy-visibility: hidden;
  --service-copy-delay: 0ms;
  --service-label-opacity: 1;
  --service-opacity: .7;
}

.service-card-grid:not(:has(.service-card:focus-visible)) .service-card:hover,
.service-card-grid:has(.service-card:focus-visible) .service-card:focus-visible {
  --service-grow: 3.2;
  --service-copy-opacity: 1;
  --service-copy-visibility: visible;
  --service-copy-delay: 220ms;
  --service-label-opacity: 0;
  --service-opacity: 1;
  --service-border: #b5c8df;
  outline: none;
}

.service-card img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.service-card-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8, 19, 35, .96) 4%, rgba(8, 19, 35, .55) 46%, rgba(8, 19, 35, .08) 82%);
}

.service-card-content {
  display: flex;
  position: absolute;
  bottom: 0;
  left: 0;
  /* Keep copy at the final expanded width while six flex panels animate. */
  width: calc((100cqw - 50px) / 5.68 * 3.2);
  padding: 24px;
  flex-direction: column;
  justify-content: flex-end;
  opacity: var(--service-copy-opacity);
  visibility: var(--service-copy-visibility);
  pointer-events: none;
  transition: opacity 180ms ease var(--service-copy-delay), visibility 0s linear var(--service-copy-delay);
}

.service-card-label {
  display: flex;
  position: absolute;
  inset: auto 0 24px;
  align-items: center;
  flex-direction: column;
  gap: 18px;
  opacity: var(--service-label-opacity);
  pointer-events: none;
  transition: opacity 150ms ease;
}

.service-card-label > span {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  line-height: 1.2;
  white-space: nowrap;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.service-card-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-direction: row;
  gap: 16px;
}

.service-card-heading strong {
  font-family: Georgia, "Times New Roman", serif;
  min-width: 0;
  font-size: clamp(1.5rem, 2vw, 1.8rem);
  font-weight: 500;
  line-height: 1.2;
  white-space: normal;
  text-wrap: balance;
}

.service-card-reveal {
  display: grid;
  margin-top: 14px;
  color: #d6dfe9;
  font-size: .92rem;
  line-height: 1.55;
}

.service-tags {
  display: flex;
  margin-top: 4px;
  flex-wrap: wrap;
  gap: 7px;
}

.service-tags em {
  padding: 5px 9px;
  border: 1px solid #718198;
  border-radius: 999px;
  color: white;
  font-size: .68rem;
  font-style: normal;
  font-weight: 700;
  line-height: 1;
}

/* A service with many options keeps its title on the card: closer, smaller pills. */
.service-tags:has(em:nth-child(10)) { gap: 4px; }
.service-tags:has(em:nth-child(10)) em { padding: 3px 7px; font-size: .64rem; }

/* The main call-to-action button (Request Call Back, Send Application, Continue, Show me my space…): the same gold,
   rounded style as the homepage and membership buttons, in both themes. payment.css gives .payment-action the same. */
.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  margin-top: 34px;
  padding: 0 28px;
  border: 1px solid #c19b36;
  border-radius: 999px;
  color: #14202e;
  background: #c19b36;
  box-shadow: 0 8px 22px rgba(193, 155, 54, .28);
  font-size: .95rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: .01em;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.primary-button:hover {
  border-color: #d4b04d;
  color: #14202e;
  background: #d4b04d;
  box-shadow: 0 10px 26px rgba(193, 155, 54, .4);
  transform: translateY(-1px);
}

.primary-button:focus-visible {
  outline: 2px solid #c19b36;
  outline-offset: 3px;
  color: #14202e;
  background: #d4b04d;
}

.primary-button:active { transform: none; box-shadow: 0 4px 12px rgba(193, 155, 54, .3); }

.primary-button:disabled,
.primary-button[aria-disabled="true"] {
  opacity: .55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

@media (prefers-reduced-motion: reduce) {
  .primary-button { transition: none; }
  .primary-button:hover { transform: none; }
}

.services-page {
  background: var(--paper);
}

.services-hero {
  padding: clamp(34px, 4vw, 52px) 0;
  color: white;
  background: #101a29;
}

.services-hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.services-hero .section-number {
  width: 72px;
  margin: 0 0 4px;
  color: #b2bdca;
}

.services-hero .eyebrow {
  color: #b5c8df;
}

.services-hero h1 {
  font-size: clamp(3rem, 5vw, 4.6rem);
}

.services-lead {
  max-width: 760px;
  margin: 16px 0 16px;
  color: #cbd2dc;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1rem, 1.3vw, 1.22rem);
  line-height: 1.55;
}

.text-link {
  color: #b5c8df;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-underline-offset: 5px;
  text-transform: uppercase;
}

.services-dashboard {
  padding: clamp(52px, 7vw, 90px) 0;
}

.services-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  max-width: 1240px;
}

.service-container {
  align-self: start;
  overflow: hidden;
  border: 1px solid #40506a;
  border-radius: 16px;
  color: white;
  background: #172438;
  scroll-margin-top: 116px;
}

.service-container:target {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}

.service-container > summary {
  display: grid;
  position: relative;
  grid-template-columns: 1fr auto;
  gap: 24px;
  min-height: 245px;
  padding: 162px 62px 24px 28px;
  align-items: end;
  cursor: pointer;
  list-style: none;
  background-color: #263b54;
  background-position: center;
  background-size: cover;
}

.service-card-link {
  position: absolute;
  z-index: 3;
  inset: 0;
}

.service-container:has(.service-card-link:hover),
.service-container:has(.service-card-link:focus-visible) {
  border-color: var(--accent);
  box-shadow: 0 14px 38px rgba(20, 35, 56, .14);
}

.service-container > summary::-webkit-details-marker {
  display: none;
}

.service-container > summary::after {
  position: absolute;
  right: 22px;
  bottom: 24px;
  content: "+";
  color: #b5c8df;
  font-size: 1.7rem;
  font-weight: 400;
  line-height: 1;
}

.service-container[open] > summary::after {
  content: "−";
}

.service-container > summary span {
  color: white;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  text-shadow: 0 2px 18px rgba(0, 0, 0, .75);
}

.service-container > summary small {
  color: #b5c8df;
  font-size: .69rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.service-container[open] > summary {
  color: white;
}

.service-container[open] > summary::after,
.service-container[open] > summary small {
  color: #b5c8df;
}

.service-body {
  min-height: 0;
  padding: 26px 28px 30px;
  border-top: 1px solid #40506a;
  color: #edf1f5;
  background: #172438;
}

.service-body p {
  max-width: 780px;
  margin: 0 0 22px;
  color: #cbd2dc;
}

.service-body p:last-child {
  margin-bottom: 0;
}

.service-body ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 32px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.service-body li {
  position: relative;
  padding-left: 20px;
  color: #edf1f5;
}

.service-body li::before {
  position: absolute;
  top: .72em;
  left: 0;
  width: 6px;
  height: 6px;
  background: var(--accent);
  content: "";
}

.carpentry-body > p {
  margin-bottom: 30px;
}

.carpentry-body {
  min-height: 0;
}

#carpentry > summary {
  background-image: linear-gradient(to top, rgba(8, 19, 35, .94), rgba(8, 19, 35, .12) 76%), url("https://images.unsplash.com/photo-1504148455328-c376907d081c?auto=format&fit=crop&w=1600&q=78");
}

#renovations > summary {
  background-image: linear-gradient(to top, rgba(8, 19, 35, .94), rgba(8, 19, 35, .12) 76%), url("https://images.unsplash.com/photo-1503387762-592deb58ef4e?auto=format&fit=crop&w=900&q=78");
}

#extensions > summary {
  background-image: linear-gradient(to top, rgba(8, 19, 35, .94), rgba(8, 19, 35, .12) 76%), url("https://images.unsplash.com/photo-1600566753190-17f0baa2a6c3?auto=format&fit=crop&w=900&q=78");
}

#customisation > summary {
  background-image: linear-gradient(to top, rgba(8, 19, 35, .94), rgba(8, 19, 35, .12) 76%), url("https://images.unsplash.com/photo-1600607687939-ce8a6c25118c?auto=format&fit=crop&w=900&q=78");
}

#painting > summary {
  background-image: linear-gradient(to top, rgba(8, 19, 35, .94), rgba(8, 19, 35, .12) 76%), url("https://images.unsplash.com/photo-1562259949-e8e7689d7828?auto=format&fit=crop&w=900&q=78");
}

#builder-services > summary {
  background-image: linear-gradient(to top, rgba(8, 19, 35, .94), rgba(8, 19, 35, .12) 76%), url("https://images.unsplash.com/photo-1541888946425-d81bb19240f5?auto=format&fit=crop&w=900&q=78");
}

#interior-design > summary {
  background-image: linear-gradient(to top, rgba(8, 19, 35, .94), rgba(8, 19, 35, .12) 76%), url("https://images.unsplash.com/photo-1618221195710-dd6b41faaea6?auto=format&fit=crop&w=900&q=78");
}

#new-homes > summary {
  background-image: linear-gradient(to top, rgba(8, 19, 35, .94), rgba(8, 19, 35, .12) 76%), url("https://images.unsplash.com/photo-1600585154340-be6161a56a0c?auto=format&fit=crop&w=900&q=78");
}

.detail-hero {
  display: flex;
  min-height: 520px;
  padding: 72px 0;
  align-items: end;
  color: white;
  background-image: linear-gradient(90deg, rgba(8, 19, 35, .94), rgba(8, 19, 35, .42)), var(--detail-image);
  background-position: center;
  background-size: cover;
}

.detail-hero-content {
  max-width: 820px;
}

.detail-hero .eyebrow {
  color: #b5c8df;
}

.detail-hero h1 {
  font-size: clamp(3.8rem, 8vw, 7.5rem);
}

/* "All services": a pill at the top of the hero (and again under the cards), solid enough to see on any photo. */
.detail-back {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  margin-bottom: 30px;
  padding: 10px 20px 10px 16px;
  border: 1px solid rgba(255, 255, 255, .6);
  border-radius: 999px;
  color: #ffffff;
  background: rgba(8, 19, 35, .62);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-decoration: none;
  text-transform: uppercase;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}
.detail-back-arrow { font-size: 1.1rem; line-height: 1; transition: transform .18s ease; }
.detail-back:hover,
.detail-back:focus-visible { border-color: #c19b36; color: #081323; background: #c19b36; }
.detail-back:hover .detail-back-arrow,
.detail-back:focus-visible .detail-back-arrow { transform: translateX(-3px); }
.detail-back:focus-visible { outline: 2px solid #ffffff; outline-offset: 3px; }
.detail-back-light { margin: clamp(32px, 4vw, 48px) 0 0; border-color: color-mix(in srgb, var(--ink) 40%, transparent); color: var(--ink); background: var(--surface); box-shadow: 0 8px 22px rgba(8, 19, 35, .14); -webkit-backdrop-filter: none; backdrop-filter: none; }
.detail-back-light:focus-visible { outline-color: #c19b36; }
@media (prefers-reduced-motion: reduce) { .detail-back, .detail-back-arrow { transition: none; } }

.detail-hero-content > p:not(.eyebrow) {
  max-width: 720px;
  margin: 28px 0 24px;
  color: #e1e7ed;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.15rem, 2vw, 1.55rem);
}

.detail-content {
  padding: clamp(58px, 8vw, 100px) 0;
  background: var(--paper);
}

.detail-groups-intro {
  max-width: 640px;
  margin-bottom: clamp(28px, 4vw, 44px);
}

.detail-groups-intro h2 {
  margin-top: 10px;
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.detail-groups-intro > p:not(.eyebrow) {
  margin: 14px 0 0;
  color: var(--ink-soft);
  line-height: 1.6;
}

/* The cards use the full width of the header bar, not the narrower reading column. */
.detail-content > .content-shell {
  width: min(calc(100% - 36px), 1760px);
}

.detail-groups {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 1.6vw, 24px);
}

.detail-group {
  position: relative;
  padding: clamp(24px, 3vw, 34px);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: white;
  box-shadow: 0 14px 34px rgba(20, 35, 56, .08);
  overflow: hidden;
}

/* A short gold rule along the top edge, matching the site's eyebrow accents. */
.detail-group::before {
  position: absolute;
  top: 0;
  left: clamp(24px, 3vw, 34px);
  width: 56px;
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: #c19b36;
  content: "";
}

/* A card left alone on the last row (e.g. Retaining Walls) spans it instead of leaving a hole beside it. */
.detail-groups > .detail-group:last-child:nth-child(3n + 1) {
  grid-column: 1 / -1;
}

@media (max-width: 1100px) {
  .detail-groups {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .detail-groups > .detail-group:last-child:nth-child(3n + 1) {
    grid-column: auto;
  }

  .detail-groups > .detail-group:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
}

.detail-group-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 14px;
  color: var(--ink-soft);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.detail-group-index {
  color: #c19b36;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.05rem;
  letter-spacing: .04em;
}

.detail-group h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
}

.detail-group p {
  max-width: 560px;
  margin: 14px 0 0;
  color: var(--ink-soft);
  line-height: 1.6;
}

.detail-group ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

/* Materials and finishes read as tags rather than a two-column bullet list. */
/* Inline, not flex: the page's text reveal splits labels into one span per word, and flex gaps would widen the spaces. */
.detail-group li {
  display: inline-block;
  padding: 7px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--paper) 70%, transparent);
  font-size: .82rem;
  line-height: 1.2;
}

.detail-group li::before {
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-right: 7px;
  vertical-align: middle;
  border-radius: 50%;
  background: #c19b36;
  content: "";
}

/* ATTE service chooser. Prices are deliberately labelled as test data. */
.service-picker {
  padding: clamp(1.25rem, 3vw, 2.5rem);
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--surface);
  box-shadow: 0 22px 55px rgba(13, 25, 43, .1);
}

.service-picker-heading { max-width: 760px; }
.service-picker-heading h2 { margin: .2rem 0 .65rem; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2rem, 4vw, 3.5rem); }
.service-picker-heading > p:last-child { color: var(--ink-soft); line-height: 1.7; }
.service-picker-step { margin: 2.25rem 0 0; padding: 0; border: 0; }
.service-picker-step legend,
.service-picker-legend { display: flex; align-items: center; gap: .75rem; margin: 0 0 1rem; font-size: 1.12rem; font-weight: 800; }
.service-picker-step legend > span,
.service-picker-legend > span { display: inline-flex; width: 2rem; height: 2rem; align-items: center; justify-content: center; flex: 0 0 2rem; border-radius: 50%; color: var(--on-accent); background: var(--accent); font-size: .84rem; }
.service-picker-options { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .75rem; }
.service-picker-options label,
.service-size-options label { cursor: pointer; }
.service-picker-options input,
.service-size-options input { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; }
.service-picker-options label > span { position: relative; display: flex; min-height: 104px; flex-direction: column; justify-content: center; gap: .35rem; padding: 1rem; border: 2px solid var(--line); border-radius: 16px; background: var(--field-surface, var(--paper)); text-align: center; transition: border-color .15s ease, background-color .15s ease, transform .15s ease; }
.service-picker-options label > span:hover { transform: translateY(-2px); border-color: var(--accent); }
.service-picker-options small { color: var(--ink-soft); }
.service-picker-options input:checked + span,
.service-size-options input:checked + span { border-color: var(--accent); background: var(--selected-surface, #dce4ee); box-shadow: inset 0 0 0 1px var(--accent); }
.service-picker-options input:focus-visible + span,
.service-size-options input:focus-visible + span { outline: 3px solid color-mix(in srgb, var(--accent) 45%, transparent); outline-offset: 3px; }
.service-picker-option-copy { margin-top: 1rem; padding: 1.1rem 1.25rem; border-left: 4px solid var(--accent); border-radius: 0 14px 14px 0; background: var(--surface-soft); }
.service-picker-option-copy > p:first-child { margin: 0; line-height: 1.6; }
.service-picker-list-title { margin: 1rem 0 .4rem; font-size: .74rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.service-picker-option-copy ul { display: flex; flex-wrap: wrap; gap: .45rem; margin: 0; padding: 0; list-style: none; }
.service-picker-option-copy li { padding: .35rem .65rem; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-size: .88rem; }
.service-size-options { display: flex; flex-wrap: wrap; gap: .65rem; }
.service-size-options span { display: block; min-width: 90px; padding: .7rem 1rem; border: 2px solid var(--line); border-radius: 999px; background: var(--field-surface, var(--paper)); text-align: center; font-weight: 700; }
.service-demo-notice { margin-bottom: 1.25rem; padding: .9rem 1rem; border: 1px solid #c89429; border-radius: 12px; color: #4c3610; background: #fff3cf; line-height: 1.5; }
[data-theme="dark"] .service-demo-notice { color: #ffeab3; background: #3a2d13; }
.service-package-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.service-package-card { position: relative; display: flex; flex-direction: column; padding: 1.35rem; border: 2px solid var(--line); border-radius: 20px; background: var(--field-surface, var(--paper)); }
.service-package-card.is-featured { border-color: var(--accent); }
.service-package-badge { align-self: flex-start; margin: -2rem 0 .7rem; padding: .35rem .7rem; border-radius: 999px; color: var(--on-accent); background: var(--accent); font-size: .72rem; font-weight: 800; }
.service-package-card h3 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: 1.45rem; }
.service-package-card > p:not(.service-package-price) { min-height: 3.2em; color: var(--ink-soft); line-height: 1.5; }
.service-package-price { margin: .7rem 0; font-family: Georgia, "Times New Roman", serif; font-size: 2.1rem; font-weight: 800; }
.service-package-price small { margin-right: .2rem; padding: .22rem .35rem; border: 1px solid currentColor; border-radius: 4px; font-family: Arial, sans-serif; font-size: .58rem; vertical-align: middle; }
.service-package-price span { font-family: Arial, sans-serif; font-size: .72rem; font-weight: 600; color: var(--ink-soft); }
.service-package-card ul { margin: 0 0 1.25rem; padding: 0; list-style: none; }
.service-package-card li { margin-top: .55rem; padding-left: 1.35rem; position: relative; font-size: .92rem; }
.service-package-card li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 900; }
.service-package-card a { display: flex; justify-content: space-between; margin-top: auto; padding: .8rem 1rem; border-radius: 10px; color: var(--on-accent); background: var(--accent); font-weight: 800; text-decoration: none; }

@media (max-width: 900px) {
  .service-picker-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-package-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .service-package-card > p:not(.service-package-price) { min-height: 0; }
}

@media (max-width: 520px) {
  .service-picker { padding: 1rem; border-radius: 18px; }
  .service-picker-options { grid-template-columns: 1fr; }
  .service-picker-options label > span { min-height: 78px; }
}

.service-subgrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.service-subcontainer {
  align-self: start;
  border: 1px solid var(--line);
  background: var(--paper);
  scroll-margin-top: 116px;
}

.service-subcontainer summary {
  display: grid;
  position: relative;
  min-height: 112px;
  padding: 24px 58px 24px 24px;
  align-content: center;
  gap: 7px;
  cursor: pointer;
  list-style: none;
}

.service-subcontainer summary::-webkit-details-marker {
  display: none;
}

.service-subcontainer summary::after {
  position: absolute;
  top: 50%;
  right: 24px;
  color: var(--forest);
  content: "+";
  font-size: 1.5rem;
  transform: translateY(-50%);
}

.service-subcontainer[open] summary::after {
  content: "−";
}

.service-subcontainer summary span {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
}

.service-subcontainer summary small {
  color: var(--ink-soft);
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.service-subcontainer[open] summary {
  color: white;
  background: #263b54;
}

.service-subcontainer[open] summary::after,
.service-subcontainer[open] summary small {
  color: #b5c8df;
}

.service-subbody {
  padding: 24px;
  border-top: 1px solid var(--line);
  background: white;
}

.service-subbody p {
  margin: 0 0 20px;
  color: var(--ink-soft);
}

.service-subbody ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.service-subbody li {
  position: relative;
  padding-left: 17px;
  font-size: .9rem;
}

.service-subbody li::before {
  position: absolute;
  top: .7em;
  left: 0;
  width: 5px;
  height: 5px;
  background: var(--accent);
  content: "";
}

.service-subcontainer:target {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}

.example-block {
  display: grid;
  min-height: 220px;
  max-width: 920px;
  place-items: center;
  border: 1px dashed #9ca7b2;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, .45);
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.example-block-dark {
  border-color: #64758b;
  color: #b2bdca;
  background: #182538;
}

.feedback-section {
  min-height: auto;
  padding: clamp(58px, 8vw, 100px) 0;
  color: white;
  background: radial-gradient(circle at 88% 88%, rgba(75, 104, 144, .42), transparent 38%), linear-gradient(125deg, #0f1929, #1c293b);
}

#membership.dashboard-section {
  min-height: auto;
  padding: clamp(64px, 7vw, 96px) 0;
  background:
    radial-gradient(circle at 90% 90%, rgba(63, 93, 133, .3), transparent 34%),
    linear-gradient(135deg, #0f1929, #19283b);
}

.membership-shell {
  width: min(calc(100% - clamp(32px, 5vw, 96px)), 1760px);
  max-width: none;
}

.membership-heading {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  gap: clamp(30px, 7vw, 96px);
  margin-bottom: 34px;
}

.membership-heading h2 {
  margin-top: 4px;
}

.membership-heading .dashboard-intro {
  max-width: 650px;
  margin: 14px 0 0;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
}

.membership-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.membership-card {
  position: relative;
  min-height: 336px;
  border-radius: 18px;
  perspective: 1200px;
  cursor: pointer;
}

.membership-card-inner {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transition: transform .7s cubic-bezier(.2, .72, .24, 1);
}

.membership-card.is-flipped .membership-card-inner {
  transform: rotateY(180deg);
}

/* Keep ambient motion on the outer card so the inner flip stays independent. */
@keyframes membership-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@keyframes membership-orbit {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-12px, 10px) scale(1.06); }
}

@media (prefers-reduced-motion: no-preference) {
  .membership-card {
    animation: membership-float 7s ease-in-out infinite;
  }

  .membership-card:nth-child(2n) { animation-delay: -2.3s; }
  .membership-card:nth-child(3n) { animation-delay: -4.6s; }

  .membership-card-front::before,
  .membership-card-front::after {
    animation: membership-orbit 12s ease-in-out infinite;
  }

  .membership-card-front::after {
    animation-direction: reverse;
    animation-delay: -6s;
  }

  .membership-card:is(:hover, :focus-within, .is-flipped),
  .membership-card:is(:hover, :focus-within, .is-flipped) .membership-card-front::before,
  .membership-card:is(:hover, :focus-within, .is-flipped) .membership-card-front::after {
    animation-play-state: paused;
  }

  .membership-flip-prompt b {
    transition: transform .3s ease;
  }

  .membership-card:hover .membership-flip-prompt b {
    transform: translate(3px, -3px);
  }
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .membership-card:not(.is-flipped):hover .membership-card-inner {
    transform: rotateX(2deg) rotateY(-3deg);
  }
}

.membership-card-face {
  display: flex;
  position: absolute;
  inset: 0;
  padding: 24px;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(206, 219, 236, .26);
  border-radius: 18px;
  color: white;
  background: var(--plan-surface, #152438);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .18);
  backface-visibility: hidden;
}

.membership-card-front::before,
.membership-card-front::after {
  content: "";
  position: absolute;
  border: 1px solid var(--plan-accent);
  border-radius: 50%;
  opacity: .36;
}

.membership-card-front::before { width: 230px; height: 230px; top: -104px; right: -90px; }
.membership-card-front::after { width: 150px; height: 150px; right: -58px; bottom: -68px; }
.membership-card-front > * { position: relative; }
.membership-card-front > div { margin-top: auto; }
.membership-card-front small,
.membership-card-back > small { color: #b2bdca; font-size: .62rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.membership-card h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
  font-weight: 400;
}

.membership-price {
  margin: 2px 0 0;
  color: var(--plan-accent);
  font-size: 1.55rem;
  font-weight: 800;
  line-height: 1.15;
}

.membership-price small {
  font-size: .66rem;
  font-weight: 400;
  opacity: .75;
}

.membership-tier-number {
  color: var(--plan-accent);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
}

.membership-flip-prompt {
  display: flex;
  margin-top: 26px;
  padding-top: 14px;
  justify-content: space-between;
  border-top: 1px solid #40516a;
  color: #d9e0e8;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
}

.membership-flip-prompt b { color: var(--plan-accent); font-size: 1rem; }
.membership-card-back { transform: rotateY(180deg); cursor: default; }
.membership-card-back h3 { margin: 6px 0 18px; font-size: 1.45rem; }
.membership-card-back ul {
  display: grid;
  margin: 0 0 18px;
  padding: 0;
  gap: 9px;
  color: #bec9d6;
  font-size: .78rem;
  line-height: 1.45;
  list-style: none;
}

.membership-card-back li {
  position: relative;
  padding-left: 18px;
}

.membership-card-back li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #9db9db;
  font-weight: 800;
}

.membership-duration {
  display: grid;
  margin-bottom: 16px;
  gap: 5px;
  color: #b9c5d4;
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .04em;
}

.membership-duration select {
  width: 100%;
  padding: 9px 10px;
  border: 1px solid #50627b;
  border-radius: 8px;
  color: white;
  background: #101a29;
  font: inherit;
}

.membership-card-back > a,
.membership-card-back > button {
  display: flex;
  min-height: 42px;
  margin-top: auto;
  padding: 0 15px;
  align-items: center;
  justify-content: space-between;
  border: 1px solid #5b6e89;
  border-radius: 999px;
  color: white;
  font-size: .72rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease;
}

.membership-card-back > a:hover,
.membership-card-back > a:focus-visible,
.membership-card-back > button:hover,
.membership-card-back > button:focus-visible {
  border-color: var(--accent);
  background: rgba(133, 161, 199, .12);
}

.membership-card-back > button {
  width: 100%;
  background: transparent;
}

.membership-basic {
  --plan-accent: #9db9db;
  --plan-surface: linear-gradient(135deg, #182c46, #101b2c);
}

.membership-bronze {
  --plan-accent: #ce8c59;
  --plan-surface: linear-gradient(135deg, #182637 0%, #232934 56%, #302a2a 100%);
}

.membership-silver {
  --plan-accent: #d8e0e8;
  --plan-surface: radial-gradient(circle at 82% 18%, rgba(217, 226, 239, .18), transparent 32%), linear-gradient(135deg, #17263c, #2b3748);
}

.membership-gold {
  --plan-accent: #e5be50;
  --plan-surface: radial-gradient(circle at 84% 12%, rgba(229, 190, 80, .2), transparent 28%), linear-gradient(125deg, #17273d 8%, #292c32 66%, #36332a 100%);
}

.membership-diamond {
  --plan-accent: #99d9e9;
  --plan-surface: radial-gradient(circle at 85% 12%, rgba(157, 222, 238, .3), transparent 22%), radial-gradient(circle at 65% 80%, rgba(104, 165, 191, .14), transparent 32%), linear-gradient(135deg, #142338, #20384c);
}

.membership-platinum {
  --plan-accent: #d1b6dd;
  --plan-surface: radial-gradient(circle at 78% 20%, rgba(211, 181, 224, .27), transparent 26%), linear-gradient(125deg, #152237 5%, #272a3a 62%, #383447 100%);
  filter: drop-shadow(0 18px 24px rgba(188, 142, 207, .09));
}

.membership-titanium {
  --plan-accent: #e1e7ef;
  --plan-surface: radial-gradient(circle at 80% 18%, rgba(232, 239, 248, .2), transparent 23%), linear-gradient(125deg, #0b1422, #202d3e 54%, #3b4757 100%);
  grid-column: 1 / -1;
  width: calc(50% - 9px);
  justify-self: center;
  filter: drop-shadow(0 22px 30px rgba(209, 224, 243, .11));
}

.membership-platinum .membership-card-face,
.membership-titanium .membership-card-face {
  border-color: color-mix(in srgb, var(--plan-accent) 55%, transparent);
}

.membership-diamond .membership-card-front::before,
.membership-platinum .membership-card-front::before,
.membership-titanium .membership-card-front::before {
  box-shadow: 0 0 45px color-mix(in srgb, var(--plan-accent) 24%, transparent);
}

.membership-card:nth-child(n + 5) {
  transform: none;
}

/* Material and engraving become more distinctive with each premium tier. */
.membership-card-front .membership-emblem {
  position: absolute;
  top: 62px;
  right: 24px;
  width: clamp(70px, 7vw, 100px);
  height: auto;
  color: var(--plan-accent);
  stroke: currentColor;
  stroke-width: 1.1;
  pointer-events: none;
}

html[data-theme] .membership-bronze .membership-card-front {
  --plan-accent: #573420;
  color: #34251f;
  border-color: #c99269;
  background: linear-gradient(115deg, #9c6748, #d4a584 40%, #bd8763 72%, #d7ad8d);
}

html[data-theme] .membership-silver .membership-card-front {
  --plan-accent: #334557;
  color: #243344;
  border-color: #aab7c5;
  background: linear-gradient(110deg, #8999aa, #c4ced8 42%, #a6b3c1 74%, #cbd4dd);
}

.membership-card:is(.membership-bronze, .membership-silver) .membership-tier-number {
  font-family: Arial, Helvetica, sans-serif;
  font-size: .57rem;
  font-weight: 700;
  letter-spacing: .19em;
}

.membership-card:is(.membership-bronze, .membership-silver) .membership-emblem {
  width: 72px;
}

.membership-card:is(.membership-bronze, .membership-silver) .membership-card-front::before {
  inset: 0;
  width: auto;
  height: auto;
  border: 0;
  border-radius: inherit;
  background: repeating-linear-gradient(0deg, transparent 0 3px, rgba(39, 35, 32, .1) 3px 4px);
  opacity: .24;
  pointer-events: none;
}

.membership-card:is(.membership-bronze, .membership-silver) .membership-card-front::after {
  display: none;
}

html[data-theme] :is(.membership-bronze, .membership-silver) .membership-card-front small {
  color: #3d4147;
}

html[data-theme] :is(.membership-bronze, .membership-silver) .membership-flip-prompt {
  color: #303d49;
  border-color: rgba(43, 49, 56, .28);
}

.membership-card:is(.membership-gold, .membership-diamond, .membership-platinum, .membership-titanium) .membership-tier-number {
  font-family: Arial, Helvetica, sans-serif;
  font-size: .57rem;
  font-weight: 700;
  letter-spacing: .19em;
}

.membership-card:is(.membership-gold, .membership-diamond, .membership-platinum, .membership-titanium) .membership-card-front::before {
  inset: 0;
  width: auto;
  height: auto;
  border: 0;
  border-radius: inherit;
  box-shadow: none;
  pointer-events: none;
}

.membership-card:is(.membership-gold, .membership-diamond, .membership-platinum, .membership-titanium) .membership-card-front::after {
  inset: 10px;
  width: auto;
  height: auto;
  border-radius: 11px;
  border-color: var(--plan-accent);
  opacity: .22;
  animation: none;
  pointer-events: none;
}

html[data-theme] .membership-gold .membership-card-front {
  --plan-accent: #624719;
  color: #2c281e;
  border-color: #e4c787;
  background: linear-gradient(115deg, #b48b44, #edd9a1 37%, #d1ac61 65%, #f2dfa9);
  box-shadow: inset 0 1px 0 #fff0c5, 0 18px 40px rgba(0, 0, 0, .18);
}

.membership-gold .membership-card-front::before {
  background: repeating-linear-gradient(0deg, transparent 0 2px, rgba(94, 63, 21, .16) 2px 3px);
  opacity: .18;
}

html[data-theme] :is(.membership-gold, .membership-platinum) .membership-card-front small {
  color: #41444a;
}

html[data-theme] :is(.membership-gold, .membership-platinum) .membership-flip-prompt {
  color: #283348;
  border-color: rgba(35, 42, 51, .3);
}

.membership-diamond .membership-card-front {
  background: linear-gradient(150deg, transparent 45%, rgba(139, 228, 251, .2) 45.2%, transparent 65%), linear-gradient(35deg, #102b45 25%, #285771 52%, #0d253d 52.2%, #163651 80%);
  border-color: #72b9d1;
}

.membership-diamond .membership-card-front::before {
  background: conic-gradient(from 205deg at 85% 35%, transparent, rgba(175, 239, 255, .4) 50deg, transparent 80deg, rgba(126, 204, 231, .2) 150deg, transparent 190deg);
  opacity: .7;
}

.membership-diamond .membership-emblem {
  filter: drop-shadow(0 0 12px rgba(173, 233, 255, .35));
}

html[data-theme] .membership-platinum .membership-card-front {
  --plan-accent: #3e4b60;
  color: #162236;
  border-color: #e4e9f1;
  background: linear-gradient(120deg, #a8b3c3 0%, #e2e7ee 29%, #bec7d4 50%, #eef1f5 70%, #aeb9c9 100%);
  box-shadow: inset 0 1px 0 #fff, inset 0 -1px 0 #8492a6, 0 20px 42px rgba(0, 0, 0, .22);
}

.membership-platinum .membership-card-front::before {
  background: repeating-linear-gradient(115deg, transparent 0 4px, rgba(255, 255, 255, .45) 4px 5px);
  opacity: .22;
}

.membership-platinum .membership-popular {
  top: 23px;
  right: 24px;
  color: #eaf0f8;
  background: #28384e;
  font-size: .5rem;
}

.membership-titanium .membership-card-front {
  --plan-accent: #d4bd8f;
  border-color: #9a8764;
  background: radial-gradient(ellipse at 95% 0%, rgba(119, 140, 167, .3), transparent 48%), linear-gradient(120deg, #050b14, #101c2b 62%, #080e18);
  box-shadow: inset 0 0 0 3px #101b29, inset 0 0 0 4px rgba(212, 189, 143, .4), 0 25px 55px rgba(0, 0, 0, .3);
}

.membership-titanium .membership-card-front::before {
  background: repeating-linear-gradient(45deg, transparent 0 7px, rgba(156, 176, 203, .12) 7px 8px), repeating-linear-gradient(-45deg, transparent 0 7px, rgba(156, 176, 203, .1) 7px 8px);
  opacity: .35;
}

.membership-titanium .membership-card-front::after {
  inset: 16px;
  border-radius: 5px;
  opacity: .35;
}

.membership-titanium .membership-card-front h3 {
  color: #f0e5d1;
}

.membership-titanium .membership-flip-prompt {
  border-color: rgba(212, 189, 143, .3);
}

.membership-card:is(.membership-gold, .membership-diamond, .membership-platinum, .membership-titanium) .membership-card-back {
  border-color: color-mix(in srgb, var(--plan-accent) 65%, transparent);
}

.membership-card:is(.membership-gold, .membership-diamond, .membership-platinum, .membership-titanium) .membership-card-back > small,
.membership-card:is(.membership-gold, .membership-diamond, .membership-platinum, .membership-titanium) .membership-card-back li::before {
  color: var(--plan-accent);
}

@media (min-width: 1400px) {
  .membership-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .membership-titanium {
    grid-column: 2;
    width: auto;
    justify-self: stretch;
  }
}

.membership-popular {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 1;
  padding: 3px 9px;
  border-radius: 999px;
  color: #142b49;
  background: #c2d2e6;
  font-size: .58rem;
  font-weight: 800;
  text-transform: uppercase;
}

/* The reverse is a compact benefits panel with the same tier material. */
.membership-card-back {
  --back-ink: #f2f5fa;
  --back-muted: #c5cfdd;
  --back-line: color-mix(in srgb, var(--plan-accent) 30%, transparent);
  --back-accent: var(--plan-accent);
  --back-field: rgba(5, 14, 26, .7);
  --back-button-ink: #101b2b;
  --back-glass: rgba(255, 255, 255, .1);
  --back-glass-edge: rgba(255, 255, 255, .28);
  padding: 22px 24px;
  gap: 10px;
  background: linear-gradient(145deg, #1c3049, #101b2c);
}

.membership-card-back::after {
  content: "";
  position: absolute;
  inset: 9px;
  border: 1px solid var(--back-line);
  border-radius: 11px;
  pointer-events: none;
}

.membership-card-back > :not(.membership-back-watermark) {
  position: relative;
  z-index: 1;
}

.membership-back-heading {
  display: flex;
  padding: 0 0 13px;
  justify-content: space-between;
  align-items: end;
  gap: 12px;
  border-bottom: 1px solid var(--back-line);
  order: 0;
}

.membership-back-heading small {
  color: var(--back-muted);
  font-size: .52rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.membership-back-heading h3 {
  margin: 3px 0 0;
  color: var(--back-ink);
  font-size: 1.4rem;
  line-height: 1.1;
}

.membership-back-price {
  flex-shrink: 0;
  margin: 0;
  color: var(--back-accent);
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: right;
}

.membership-back-price small {
  display: block;
  margin-top: 3px;
  font-size: .48rem;
  letter-spacing: .08em;
}

.membership-card-back ul {
  order: 1;
  gap: 6px;
  margin: 0;
  color: var(--back-ink);
  font-size: .76rem;
}

.membership-card .membership-card-back li::before {
  display: grid;
  top: 2px;
  width: 12px;
  height: 12px;
  place-items: center;
  border: 1px solid var(--back-line);
  border-radius: 50%;
  color: var(--back-accent);
  font-size: .5rem;
}

.membership-card-back .membership-duration {
  order: 2;
  gap: 5px;
  margin: auto 0 0;
  color: var(--back-muted);
  font-size: .6rem;
}

.membership-card-back fieldset.membership-duration {
  min-width: 0;
  padding: 0;
  border: 0;
}

.membership-card-back .membership-duration legend {
  margin-bottom: 5px;
  padding: 0;
}

/* The term: two glass buttons, the chosen one filled. */
.membership-term {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.membership-term label {
  position: relative;
  cursor: pointer;
}

.membership-term input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.membership-term span {
  display: grid;
  min-height: 34px;
  place-items: center;
  border: 1px solid var(--back-glass-edge);
  border-radius: 10px;
  color: var(--back-ink);
  background: var(--back-glass);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  backdrop-filter: blur(10px) saturate(140%);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .02em;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.membership-term label:hover span {
  background: linear-gradient(180deg, rgba(255, 255, 255, .2), rgba(255, 255, 255, .05)), var(--back-glass);
}

.membership-term input:checked + span {
  border-color: var(--back-accent);
  color: var(--back-button-ink);
  background: var(--back-accent);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 6px 16px rgba(9, 18, 32, .18);
}

.membership-card-back > a,
.membership-card-back > button {
  order: 3;
  min-height: 40px;
  margin: 0;
  border: 1px solid var(--back-glass-edge);
  border-radius: 12px;
  color: var(--back-ink);
  background: linear-gradient(180deg, rgba(255, 255, 255, .22), rgba(255, 255, 255, .04)), var(--back-glass);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 8px 20px rgba(9, 18, 32, .16);
  -webkit-backdrop-filter: blur(12px) saturate(150%);
  backdrop-filter: blur(12px) saturate(150%);
  transition: background 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.membership-basic .membership-card-back > a {
  margin-top: auto;
}

.membership-card-back > a:is(:hover, :focus-visible),
.membership-card-back > button:is(:hover, :focus-visible) {
  color: var(--back-ink);
  border-color: var(--back-glass-edge);
  background: linear-gradient(180deg, rgba(255, 255, 255, .32), rgba(255, 255, 255, .1)), var(--back-glass);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), 0 10px 24px rgba(9, 18, 32, .2);
  transform: translateY(-1px);
}

.membership-term input:focus-visible + span {
  outline: 2px solid var(--back-accent);
  outline-offset: 3px;
}

.membership-back-watermark {
  position: absolute;
  right: -12px;
  bottom: 40px;
  width: 150px;
  height: 150px;
  color: var(--back-accent);
  stroke: currentColor;
  stroke-width: .65;
  opacity: .07;
  pointer-events: none;
}

.membership-gold .membership-card-back {
  --back-glass: rgba(255, 255, 255, .34);
  --back-glass-edge: rgba(255, 255, 255, .7);
  --back-ink: #332a1a;
  --back-muted: #67563c;
  --back-accent: #6a4c1d;
  --back-line: rgba(106, 76, 29, .24);
  --back-field: #f6e9cc;
  --back-button-ink: #fff5df;
  background: linear-gradient(125deg, #dec28b, #f3e5c6 54%, #e6ce9f);
}

.membership-bronze .membership-card-back {
  --back-glass: rgba(255, 255, 255, .34);
  --back-glass-edge: rgba(255, 255, 255, .7);
  --back-ink: #38291f;
  --back-muted: #65503f;
  --back-accent: #69452d;
  --back-line: rgba(105, 69, 45, .25);
  --back-field: #eed6c3;
  --back-button-ink: #fff3e8;
  background: linear-gradient(125deg, #c59675, #e1bfa2 55%, #cfa587);
}

.membership-silver .membership-card-back {
  --back-glass: rgba(255, 255, 255, .34);
  --back-glass-edge: rgba(255, 255, 255, .7);
  --back-ink: #253446;
  --back-muted: #4e5e70;
  --back-accent: #3e5268;
  --back-line: rgba(62, 82, 104, .25);
  --back-field: #e3e9ef;
  --back-button-ink: #f0f5fa;
  background: linear-gradient(125deg, #aab8c7, #d4dde6 55%, #b8c6d3);
}

.membership-diamond .membership-card-back {
  background: linear-gradient(140deg, transparent 57%, rgba(120, 214, 240, .1) 57.2%, transparent 85%), linear-gradient(125deg, #14364e, #0d2036);
}

.membership-platinum .membership-card-back {
  --back-glass: rgba(255, 255, 255, .34);
  --back-glass-edge: rgba(255, 255, 255, .7);
  --back-ink: #1b2a3e;
  --back-muted: #536075;
  --back-accent: #344961;
  --back-line: rgba(52, 73, 97, .23);
  --back-field: #f3f5f8;
  --back-button-ink: #f1f5fa;
  background: linear-gradient(125deg, #c3ccd8, #edf0f5 55%, #d3dbe6);
}

.membership-titanium .membership-card-back {
  --back-accent: #d4bd8f;
  --back-line: rgba(212, 189, 143, .28);
  --back-ink: #f2e9d9;
  --back-muted: #b6afa3;
  background: radial-gradient(ellipse at 100% 0%, rgba(133, 153, 180, .16), transparent 60%), linear-gradient(120deg, #080e18, #111d2d);
  box-shadow: inset 0 0 0 3px #101b29, inset 0 0 0 4px rgba(212, 189, 143, .3), 0 20px 42px rgba(0, 0, 0, .25);
}

html[data-theme] .membership-card .membership-card-back {
  border-color: var(--back-line);
}

html[data-theme] .membership-card .membership-card-back li::before {
  color: var(--back-accent);
}

.membership-dialog {
  width: min(calc(100% - 32px), 520px);
  padding: 0;
  border: 1px solid #4f627e;
  border-radius: 18px;
  color: white;
  background: #17273d;
  box-shadow: 0 28px 80px rgba(0, 0, 0, .55);
}

.membership-dialog::backdrop {
  background: rgba(4, 10, 21, .78);
  backdrop-filter: blur(5px);
}

.membership-dialog-card {
  position: relative;
  padding: clamp(26px, 5vw, 40px);
}

.membership-dialog-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: 1px solid #526781;
  border-radius: 50%;
  color: #c9d3df;
  background: transparent;
  font-size: 1.4rem;
  cursor: pointer;
}

.membership-dialog h3 {
  margin: 7px 0 0;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1.5rem;
}

.membership-dialog-price {
  margin: 0;
  color: #afc6e2;
  font-size: 1.65rem;
  font-weight: 800;
}

.membership-dialog-duration {
  margin: 4px 0 24px;
  color: #b5bfce;
}

.membership-dialog fieldset { margin: 0; padding: 0; border: 0; }
.membership-dialog legend { margin-bottom: 12px; font-weight: 700; }
.membership-payment-options { display: grid; gap: 10px; }
.membership-payment-options input { position: absolute; opacity: 0; }
.membership-payment-options label > span { display: grid; padding: 14px; border: 1px solid #4e617b; border-radius: 11px; background: #132136; cursor: pointer; }
.membership-payment-options small { color: #9eacbf; }
.membership-payment-options input:checked + span { border-color: #afc6e2; box-shadow: inset 0 0 0 2px #afc6e2; }
.membership-payment-continue { width: 100%; min-height: 46px; margin-top: 20px; border: 1px solid var(--accent); border-radius: 999px; color: var(--on-accent); background: var(--accent); font-weight: 800; cursor: pointer; }
.membership-payment-continue:disabled { color: #7f8ca0; border-color: #43546d; background: #1c2c41; cursor: not-allowed; }

#gift-vouchers.dashboard-section,
#contact.dashboard-section {
  min-height: auto;
  padding: clamp(64px, 8vw, 104px) 0;
}

.voucher-heading {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  gap: clamp(30px, 7vw, 96px);
}

.voucher-heading .dashboard-intro {
  margin: 18px 0 38px;
}

.voucher-order {
  display: grid;
  grid-template-columns: minmax(300px, .85fr) minmax(0, 1.15fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: stretch;
}

.voucher-preview {
  display: flex;
  min-height: 390px;
  padding: clamp(28px, 4vw, 48px);
  flex-direction: column;
  justify-content: center;
  border-radius: 18px;
  color: white;
  background: linear-gradient(145deg, rgba(20, 43, 73, .94), rgba(13, 25, 45, .98)), radial-gradient(circle at 80% 20%, #294b74, transparent 40%);
  box-shadow: 0 24px 50px rgba(20, 35, 56, .2);
}

.voucher-preview > span,
.voucher-preview > small {
  letter-spacing: .16em;
  text-transform: uppercase;
}

.voucher-preview > span { font-size: .72rem; }
.voucher-preview > small { margin-top: 34px; color: #b5c8df; }
.voucher-preview > strong { margin-top: 8px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(3.3rem, 7vw, 5.8rem); line-height: 1; }
.voucher-preview > strong.is-custom-label { font-size: clamp(1.6rem, 3vw, 2.4rem); line-height: 1.2; }
.voucher-preview > p { margin: auto 0 0; color: #c5d1df; }
.voucher-story { margin: 24px 0; max-width: 62ch; }
.voucher-story h3 { margin: 0 0 14px; color: #ead29a; font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.35rem, 2vw, 1.8rem); line-height: 1.25; }
.voucher-story p { margin: 0 0 14px; color: #e0e7f0; font-size: .95rem; line-height: 1.65; }
.voucher-story p:last-child { margin-bottom: 0; }

.voucher-options {
  padding: clamp(24px, 4vw, 38px);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, .72);
}

.voucher-options fieldset { margin: 0 0 28px; padding: 0; border: 0; }
.voucher-options legend { margin-bottom: 13px; font-weight: 700; }
.voucher-amounts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.voucher-amounts input,
.voucher-delivery input { position: absolute; opacity: 0; }
.voucher-amounts input + span { display: grid; min-height: 48px; place-items: center; border: 1px solid var(--line); border-radius: 9px; background: white; font-weight: 700; cursor: pointer; }
.voucher-amounts input:checked + span { border-color: var(--accent); box-shadow: inset 0 0 0 2px var(--accent); }
.voucher-custom-amount { display: grid; gap: 7px; margin-top: 12px; font-weight: 700; }
.voucher-custom-amount[hidden] { display: none; }
.voucher-custom-amount input { width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 9px; background: white; color: var(--ink); font: inherit; }
.voucher-custom-amount input:focus { border-color: var(--accent); outline: 2px solid color-mix(in srgb, var(--accent) 28%, transparent); outline-offset: 1px; }
.voucher-delivery { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.voucher-delivery label > span { display: grid; min-height: 88px; padding: 15px; align-content: center; border: 1px solid var(--line); border-radius: 10px; background: white; cursor: pointer; }
.voucher-delivery small { color: var(--ink-soft); }
.voucher-delivery input:checked + span { border-color: var(--accent); box-shadow: inset 0 0 0 2px var(--accent); }
.voucher-continue { margin-top: 16px; border: 0; cursor: pointer; }

.contact-details {
  max-width: 760px;
  margin: 32px 0 0;
}

.contact-region-grid {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.25fr);
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
}

.contact-region-copy > .section-number { width: 90px; margin: 0 0 14px; }
.contact-region-copy > h1,
.contact-region-copy > h2 { font-size: clamp(2.6rem, 4vw, 4rem); }
#contact.dashboard-section { padding: clamp(36px, 5vh, 64px) 0; }
.contact-region-copy .contact-details { margin-top: 12px; }
.contact-region-copy .contact-details > div { grid-template-columns: 60px minmax(0, 1fr); gap: 16px; padding: 12px 0; }
.contact-region-copy .contact-details a { font-size: clamp(.95rem, 1.2vw, 1.2rem); overflow-wrap: anywhere; }
.service-area-copy { margin-top: 30px; }
.service-area-copy .eyebrow { margin-bottom: 8px; }
.service-area-copy h3,
.service-area-copy h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-weight: 400; font-size: clamp(1.8rem, 3vw, 2.6rem); line-height: 1.2; }
.service-area-copy p:not(.eyebrow) { margin: 14px 0 0; color: var(--ink-soft); font-size: .88rem; line-height: 1.6; }
.service-area-copy strong { color: var(--ink); }
.service-area-enquiry { display: inline-flex; align-items: center; gap: 28px; margin-top: 22px; padding: 10px 18px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-size: .78rem; font-weight: 700; text-decoration: none; }
.service-area-enquiry:hover { border-color: var(--accent); }
.service-map-card { margin: 0; padding: 22px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); box-shadow: var(--theme-shadow); }
.service-map-topline { display: flex; justify-content: space-between; gap: 12px; color: var(--ink-soft); font-size: .58rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.service-area-map { display: block; width: 100%; height: auto; margin: 14px 0 6px; overflow: visible; }
.service-map-land { fill: var(--surface-soft); stroke: var(--accent-text); stroke-width: 1; }
.service-map-radius { fill: var(--theme-link); fill-opacity: .12; stroke: var(--theme-link); stroke-width: 1.4; stroke-dasharray: 5 4; }
.service-map-city circle { fill: var(--surface); stroke: var(--ink-soft); stroke-width: 1.2; }
.service-map-city text { fill: var(--ink); font-family: Arial, Helvetica, sans-serif; font-size: 11px; font-weight: 600; paint-order: stroke; stroke: var(--surface-soft); stroke-width: 3px; stroke-linejoin: round; }
.service-map-melbourne { fill: var(--theme-link); }
.service-map-melbourne text { fill: var(--ink); font: 700 13px Arial, Helvetica, sans-serif; paint-order: stroke; stroke: var(--surface-soft); stroke-width: 4px; stroke-linejoin: round; }
.service-map-halo { opacity: .2; }
.service-map-radius-label rect { fill: var(--accent); }
.service-map-radius-label text { fill: var(--on-accent); font: 700 11px Arial, Helvetica, sans-serif; }
.service-map-north { fill: var(--ink-soft); font: 700 10px Arial, Helvetica, sans-serif; }
.service-map-scale path { stroke: var(--ink-soft); fill: none; stroke-width: 1.5; }
.service-map-scale text { fill: var(--ink-soft); font: 10px Arial, Helvetica, sans-serif; }
.service-map-card figcaption { color: var(--ink-soft); font-size: .59rem; line-height: 1.65; text-align: center; }
.service-map-card figcaption a { text-underline-offset: 3px; }

@media (max-width: 1000px) {
  .contact-region-grid { grid-template-columns: 1fr; }
  .service-map-card { max-width: 700px; width: 100%; margin-inline: auto; }
}

@media (min-width: 1001px) and (max-height: 800px) {
  #contact.dashboard-section { padding: 24px 0; }
  #contact .service-area-map { max-height: calc(100dvh - var(--site-header-height, 98px) - 155px); }
  #contact .contact-details > div { padding: 8px 0; }
  #contact .service-area-copy { margin-top: 20px; }
  #contact .service-area-copy h3 { font-size: 2rem; }
  #contact .service-area-copy p:not(.eyebrow) { margin-top: 10px; font-size: .8rem; line-height: 1.5; }
  #contact .service-area-enquiry { margin-top: 16px; }
}

@media (max-width: 480px) {
  .service-map-card { padding: 14px 10px; }
  .service-map-topline { font-size: .48rem; }
  .service-map-card figcaption { font-size: .52rem; }
}

.contact-details > div {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 20px;
  padding: 24px 0;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.contact-details dt {
  color: var(--ink-soft);
  font-size: .8rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.contact-details dd { min-height: 32px; margin: 0; }
.contact-details a { font-size: clamp(1.15rem, 3vw, 1.8rem); text-decoration: none; }
.contact-details a:hover { color: var(--forest); text-decoration: underline; }
.callback-page,
.contact-page { min-height: calc(100svh - 104px); padding: clamp(48px, 7vw, 90px) 0; }
.callback-copy h1 { font-size: clamp(2.4rem, 4vw, 3.6rem); line-height: 1.08; }

.callback-shell {
  display: grid;
  grid-template-columns: minmax(300px, .78fr) minmax(0, 1.22fr);
  gap: clamp(40px, 7vw, 90px);
  align-items: start;
}

.callback-copy .section-number { width: 90px; margin-bottom: 40px; }
.callback-copy .dashboard-intro { margin: 20px 0 28px; font-size: clamp(1.08rem, 1.7vw, 1.45rem); }
.callback-summary { padding: 18px 20px; border-left: 3px solid var(--accent); background: white; box-shadow: 0 12px 28px rgba(20, 35, 56, .08); }
.callback-summary small { display: block; color: var(--ink-soft); letter-spacing: .12em; text-transform: uppercase; }
.callback-summary strong { display: block; margin-top: 3px; }
.callback-form { padding: clamp(25px, 4vw, 38px); border: 1px solid var(--line); border-radius: 18px; background: white; box-shadow: 0 20px 46px rgba(20, 35, 56, .09); }
.callback-sign-in { align-self: start; padding: clamp(25px, 4vw, 38px); border: 1px solid var(--line); border-radius: 18px; background: white; box-shadow: 0 20px 46px rgba(20, 35, 56, .09); color: var(--ink); }
.callback-sign-in h2 { margin: 0 0 10px; font: 400 clamp(1.4rem, 2.4vw, 1.8rem) Georgia, serif; }
.callback-sign-in p { margin: 0; color: var(--ink-soft); line-height: 1.6; }
.callback-sign-in-actions { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: center; margin-top: 22px; }
.callback-sign-in-actions .primary-button { margin-top: 0; }
.callback-register-link { color: var(--ink); font-weight: 700; text-underline-offset: 4px; }
.callback-sign-in[hidden], .callback-form[hidden] { display: none; }
.callback-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.callback-form label { display: grid; gap: 6px; color: var(--ink); font-size: .8rem; font-weight: 700; }
.callback-form [hidden] { display: none !important; }
.callback-form label small { color: var(--ink-soft); font-weight: 400; }
.callback-form input,
.callback-form select,
.callback-form textarea { width: 100%; padding: 12px 13px; border: 1px solid var(--line); border-radius: 9px; color: var(--ink); background: #f5f7f9; font: inherit; }
.callback-form textarea { resize: vertical; }
.callback-wide { margin-top: 16px; }
.callback-submit { border: 0; cursor: pointer; }
.callback-status { margin: 12px 0 0; color: var(--forest); font-size: .82rem; font-weight: 700; }

/* Careers: the job application form, in sections, with tick-box and yes/no choices as cards (chosen in gold). */
.careers-points { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; color: var(--ink-soft); }
.careers-points li { padding-left: 18px; border-left: 3px solid var(--accent); }
.careers-section { min-width: 0; margin: 0 0 26px; padding: 0; border: 0; }
.careers-section > legend { margin-bottom: 14px; padding: 0; color: var(--ink); font: 400 clamp(1.3rem, 2.2vw, 1.6rem) Georgia, serif; }
.careers-group { min-width: 0; margin: 0 0 16px; padding: 0; border: 0; }
.careers-group > legend { margin-bottom: 8px; padding: 0; color: var(--ink); font-size: .8rem; font-weight: 700; }
.careers-group > legend small { color: var(--ink-soft); font-weight: 400; }
.careers-select { margin-bottom: 16px; }
.careers-choices { display: grid; gap: .5rem; }
.careers-roles { grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); }
.careers-tiles { grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); }
.careers-days { grid-template-columns: repeat(7, minmax(0, 1fr)); }
.callback-form .careers-choices label { position: relative; display: block; cursor: pointer; }
.callback-form .careers-choices input { position: absolute; width: auto; opacity: 0; pointer-events: none; }
.careers-choices span { display: grid; gap: .15rem; height: 100%; padding: .7rem .85rem; border: 1px solid var(--line); border-radius: 10px; background: color-mix(in srgb, var(--paper) 55%, transparent); transition: border-color .15s ease, background-color .15s ease; }
.careers-tiles span, .careers-days span { justify-items: center; padding-inline: .3rem; }
.careers-choices small { color: var(--ink-soft); font-size: .76rem; font-weight: 400; }
.careers-choices label:hover span { border-color: #c19b36; }
.careers-choices input:checked + span { border-color: #c19b36; background: color-mix(in srgb, #c19b36 16%, transparent); box-shadow: inset 0 0 0 1px #c19b36; }
.careers-choices input:focus-visible + span { outline: 2px solid #c19b36; outline-offset: 2px; }
.careers-error { color: #b42318; font-size: .78rem; font-weight: 700; }
.careers-form .is-invalid .careers-choices span, .careers-form .is-invalid > input, .careers-form .is-invalid > select, .careers-form .is-invalid > textarea { border-color: #b42318; }
.careers-honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 480px) { .careers-days { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* Careers on the home page: the intro beside a card for each trade. Colours for each theme are in theme.css. */
.crew-board { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 8fr); gap: clamp(32px, 4vw, 56px); align-items: start; }
#careers .dashboard-intro { margin: 24px 0 0; color: var(--ink); font-size: 1.3rem; }
.crew-points { display: grid; gap: 10px; margin: 28px 0 0; padding: 20px 0 0; border-top: 1px solid var(--line); color: var(--ink); font-size: .95rem; list-style: none; }
.crew-points li { position: relative; padding-left: 28px; line-height: 1.5; }
.crew-points li::before { content: ""; position: absolute; top: .3em; left: 3px; width: 6px; height: 12px; border: solid var(--crew-gold); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
#careers .crew-apply { margin-top: 30px; padding: 17px 28px; border-color: #c19b36; color: #14202e; background: #c19b36; font-size: .82rem; transition: background-color .15s ease; }
#careers .crew-apply:hover, #careers .crew-apply:focus-visible { border-color: #d4b04d; color: #14202e; background: #d4b04d; }
.crew-trades h3 { margin-top: 0; margin-bottom: 14px; }
.crew-roles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.crew-roles li:last-child:nth-child(odd) { grid-column: 1 / -1; }
.crew-role { display: flex; height: 100%; min-height: 92px; align-items: center; gap: 16px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); background: var(--surface); box-shadow: var(--theme-shadow); text-decoration: none; transition: border-color .15s ease, background-color .15s ease, transform .15s ease; }
.crew-role > svg { flex: none; width: 30px; height: 30px; fill: none; stroke: var(--crew-gold); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.crew-role > span:not(.crew-arrow) { flex: 1; min-width: 0; }
.crew-role strong { display: block; font-family: Georgia, "Times New Roman", serif; font-size: 1.15rem; font-weight: 400; line-height: 1.3; }
.crew-role small { display: block; color: var(--ink-soft); font-size: .84rem; line-height: 1.4; }
.crew-arrow { color: var(--ink-soft); font-size: 1.1rem; transition: color .15s ease; }
.crew-role:hover, .crew-role:focus-visible { border-color: #c19b36; background: var(--surface-soft); transform: translateY(-2px); }
.crew-role:hover .crew-arrow, .crew-role:focus-visible .crew-arrow { color: var(--crew-gold); }
.crew-role:focus-visible, #careers .crew-apply:focus-visible { outline: 2px solid #c19b36; outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .crew-role { transition: none; } .crew-role:hover, .crew-role:focus-visible { transform: none; } }
@media (max-width: 1040px) { .crew-board { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) { .crew-roles { grid-template-columns: minmax(0, 1fr); } }

.feedback-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  grid-template-areas: "heading heading" "form reviews";
  gap: 20px 28px;
  max-width: 1240px;
}

.feedback-notice {
  grid-area: reviews;
  display: flex;
  flex-direction: column;
  padding: 26px;
  border: 1px solid #465b75;
  border-radius: 16px;
  background: rgba(18, 30, 49, .78);
  text-align: left;
}

.feedback-notice h3 {
  margin: 8px 0 0;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
  font-weight: 400;
  line-height: 1.2;
}

.feedback-notice .eyebrow { font-size: .65rem; }
.customer-reviews-empty { display: flex; flex: 1; flex-direction: column; justify-content: center; align-items: center; gap: 12px; max-width: 300px; margin: 36px auto; text-align: center; }
.customer-review-stars { color: var(--accent-text); font-size: 1.65rem; letter-spacing: .04em; }
.customer-reviews-empty[hidden] { display: none; }
.published-reviews { display: grid; gap: 20px; max-height: 520px; margin-top: 24px; overflow-y: auto; }
.published-review { padding: 0 0 20px; border-bottom: 1px solid #d4af3766; }
.published-review blockquote { margin: 12px 0; line-height: 1.65; white-space: pre-wrap; overflow-wrap: anywhere; }
.published-review strong, .published-review small { display: block; }
.published-review small { margin-top: 5px; color: var(--text-muted); }
.feedback-notice .customer-reviews-empty p { margin: 0; line-height: 1.7; }

.feedback-notice strong {
  font-size: 1.05rem;
}

.feedback-notice p {
  margin: 7px 0 0;
  color: #b5bfce;
  font-size: .88rem;
}

.feedback-heading {
  grid-area: heading;
  margin: 0;
  text-align: left;
}

.feedback-heading .eyebrow {
  color: #b5c8df;
}

.feedback-heading h2 {
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(1.8rem, 3vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -.03em;
}

.feedback-heading > p:last-child {
  margin: 6px 0 0;
  color: #b5bfce;
}

.review-form {
  grid-area: form;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 26px;
  border: 1px solid #526781;
  border-radius: 16px;
  background: rgba(22, 37, 59, .92);
  box-shadow: 0 20px 48px rgba(0, 0, 0, .22);
}

@media (max-width: 900px) {
  .feedback-shell { grid-template-columns: 1fr; grid-template-areas: "heading" "form" "reviews"; }
  .feedback-notice { min-height: 300px; }
}

.rating-fieldset {
  margin: 0 0 16px;
  padding: 0;
  border: 0;
}

.rating-fieldset legend,
.review-form label {
  color: #edf1f5;
  font-size: .82rem;
  font-weight: 700;
}

.rating-row {
  display: flex;
  margin-top: 10px;
  align-items: center;
  gap: 16px;
}

.rating-row > span {
  color: #b5bfce;
  font-size: .78rem;
}

.star-rating {
  display: inline-flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
}

.star-rating input[type="radio"] {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  padding: 0;
  opacity: 0;
}

.star-rating label {
  color: #7e8ca0;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

.star-rating label:hover,
.star-rating label:hover ~ label,
.star-rating input:checked ~ label,
.star-rating input:focus-visible + label {
  color: #b5c8df;
}

.review-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.review-form label {
  display: grid;
  gap: 6px;
}

.review-form label small {
  color: #9eacc0;
  font-size: .74rem;
  font-weight: 400;
}

.review-form input,
.review-form textarea,
.review-form select {
  width: 100%;
  padding: 12px 13px;
  border: 1px solid #526781;
  border-radius: 10px;
  color: white;
  background: #101a29;
  font: inherit;
}

.review-form textarea {
  min-height: 88px;
  resize: vertical;
}

.review-form-grid > label {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.review-form-grid > label > span { min-height: 22px; }
.review-form-grid input,
.review-form-grid select { height: 44px; padding: 9px 12px; }

.review-wide {
  margin-bottom: 14px;
}

.review-consent {
  display: flex !important;
  margin-top: 16px;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 10px !important;
  color: #c8d2e0 !important;
  font-weight: 400 !important;
  line-height: 1.45;
}

.review-consent input {
  width: auto;
  margin-top: 3px;
}

.review-submit {
  margin-top: 16px;
  padding: 10px 20px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  color: var(--on-accent);
  background: var(--accent);
  font: inherit;
  font-size: .8rem;
  font-weight: 700;
  cursor: pointer;
}

.review-submit:hover,
.review-submit:focus-visible {
  color: var(--accent);
  background: transparent;
}

.review-status {
  margin: 14px 0 0;
  color: #c2d2e6;
  font-size: .8rem;
}

.review-status:empty { display: none; }

@media (max-width: 480px) {
  .review-form,
  .feedback-notice { padding: 22px; }
  .rating-row { flex-wrap: wrap; gap: 8px 16px; }
}

.site-footer {
  padding: clamp(64px, 8vw, 100px) 0 28px;
  color: #b5bfce;
  background: linear-gradient(110deg, #17283e, #263b54);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1.1fr;
  gap: clamp(36px, 6vw, 88px);
}

.footer-column h2 {
  margin: 0 0 18px;
  color: white;
  font-family: Arial, Helvetica, sans-serif;
  font-size: .92rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.3;
}

.footer-column p {
  margin: 0 0 8px;
  font-size: .86rem;
  line-height: 1.55;
}

.footer-about > p {
  max-width: 290px;
}

.footer-column ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-column li + li {
  margin-top: 7px;
}

.footer-column a {
  color: #b5bfce;
  font-size: .86rem;
  text-decoration: none;
}

.footer-column a:hover,
.footer-column a:focus-visible {
  color: white;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.footer-column address {
  font-style: normal;
}

/*
 * Footer social keycaps (drawn by site.js; same as the admin app's globals.css). Each cap is a face with its wall drawn as a solid
 * shadow under it; --press (0 up, 1 down) sinks the face into the wall, so hover, focus and the idle wave all
 * animate one number. The face is dished: dark at the top edge, catching light low down.
 */
@property --press {
  syntax: "<number>";
  inherits: false;
  initial-value: 0;
}
.keycaps {
  display: grid;
  margin: 0;
  list-style: none;
  margin-top: 22px;
  grid-template-columns: repeat(2, max-content);
  gap: 0.6rem;
  width: max-content;
  padding: 0.35rem;
  border-radius: 1.4rem;
  background: rgb(0 0 0 / 22%);
  box-shadow: inset 0 2px 6px rgb(0 0 0 / 35%), 0 1px 0 rgb(255 255 255 / 8%);
}
/* The footer's list spacing (.footer-column li + li) would push every key but the first down, so the top row wouldn't line up. */
.footer-column .keycaps li { margin-top: 0; }
.keycaps[data-count="1"] { grid-template-columns: max-content; }
.keycaps[hidden] { display: none; }
.keycap {
  --size: 4.25rem;
  --depth: 0.5rem;
  --travel: calc(var(--depth) - 2px);
  --cap: #e9edf2;
  --cap-hi: #ffffff;
  --cap-lo: #b9c3ce;
  --cap-side: #848f9c;
  --ink: #18212b;
  --glow: rgb(37 244 238 / 30%);
  position: relative;
  display: block;
  width: var(--size);
  height: var(--size);
  margin-bottom: var(--depth);
  border-radius: 1.05rem;
  color: var(--ink);
  background: linear-gradient(160deg, var(--cap-hi), var(--cap) 45%, var(--cap-lo));
  box-shadow:
    0 calc(var(--depth) - var(--press) * var(--travel)) 0 var(--cap-side),
    0 calc(var(--depth) + 0.9rem - var(--press) * 0.6rem) 1.5rem -0.5rem var(--glow),
    0 calc(var(--depth) + 0.25rem - var(--press) * var(--travel)) 0.5rem -0.1rem rgb(0 0 0 / 45%),
    inset 0 1px 0 rgb(255 255 255 / 70%),
    inset 0 -0.3rem 0.5rem rgb(0 0 0 / 12%);
  transform: translateY(calc(var(--press) * var(--travel)));
  filter: brightness(calc(1 - var(--press) * 0.1));
  transition: --press 0.16s cubic-bezier(0.3, 0.7, 0.4, 1);
  animation: keycap-idle 7s calc(2s + var(--i, 0) * 0.22s) infinite;
  -webkit-tap-highlight-color: transparent;
}
.keycap:hover,
.keycap:focus-visible,
.keycap:active {
  --press: 1;
  animation: none;
}
.keycap:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
.keycap__top {
  position: absolute;
  inset: 0.42rem 0.5rem 0.75rem;
  display: grid;
  place-items: center;
  border-radius: 0.8rem;
  color: var(--ink);
  font-size: 1.5rem;
  background: linear-gradient(180deg, var(--cap-lo), var(--cap) 32%, var(--cap-hi));
  box-shadow: inset 0 0.15rem 0.3rem rgb(0 0 0 / 16%), inset 0 -1px 2px rgb(255 255 255 / 55%), 0 1px 1px rgb(255 255 255 / 40%);
}
.keycap__glyph { position: relative; grid-area: 1 / 1; height: auto; }
.keycap__glyph--cyan { color: #25f4ee; transform: translate(-1.5px, -1px); }
.keycap__glyph--pink { color: #fe2c55; transform: translate(1.5px, 1px); }
.keycap__legend { display: none; }

.keycap--facebook { --cap: #1877f2; --cap-hi: #4d9bff; --cap-lo: #0d5fd0; --cap-side: #083f8f; --ink: #fff; --glow: rgb(24 119 242 / 70%); }
.keycap--youtube { --cap: #ff1a3d; --cap-hi: #ff6075; --cap-lo: #d40026; --cap-side: #8f0019; --ink: #fff; --glow: rgb(255 0 51 / 60%); }
/* Instagram is the lit cap: its gradient glows from inside and the logo blooms. */
.keycap--instagram { --cap-side: #5c1d86; --ink: #fff; --glow: rgb(214 41 118 / 75%); }
.keycap--instagram,
.keycap--instagram .keycap__top {
  background:
    radial-gradient(90% 70% at 50% 30%, rgb(255 255 255 / 30%), transparent 70%),
    radial-gradient(130% 120% at 15% 105%, #feda75, #fa7e1e 22%, #d62976 48%, #962fbf 72%, #4f5bd5);
}
.keycap--facebook .keycap__glyph--main,
.keycap--youtube .keycap__glyph--main { filter: drop-shadow(0 0 0.12em rgb(255 255 255 / 55%)); }
.keycap--instagram .keycap__glyph { filter: drop-shadow(0 0 0.1em #fff) drop-shadow(0 0 0.35em #ffd0ea); }

/* The caps press themselves left to right, then rest. */
@keyframes keycap-idle {
  0%, 6%, 100% { --press: 0; }
  3% { --press: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .keycap { animation: none; transition: none; }
}

/*
 * Home page "Follow the Build" (#social): a keyboard deck. A navy plate with a blueprint grid, gold screws, a badge
 * and status light, a recessed screen that types the profile under the pointer, and big keycaps. The deck leans
 * toward the mouse (--lean-x / --lean-y from site.js). Shown once at least one profile is saved.
 */
.social-section[hidden] { display: none; }
.membership-card[hidden] { display: none; }
.social-stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}
.social-copy .dashboard-intro { max-width: 30rem; }
.social-notes {
  display: grid;
  gap: 10px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
  font-size: .92rem;
  font-weight: 600;
}
.social-notes li {
  display: flex;
  align-items: center;
  gap: 12px;
}
.social-notes span {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 24px;
  border: 1px solid rgb(229 190 80 / 45%);
  border-radius: 6px;
  color: #e5be50;
  font: 700 .7rem/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: .06em;
}
.social-deck {
  --deck: linear-gradient(160deg, #1f3350 0%, #15253b 48%, #0d1828 100%);
  --deck-grid: rgb(181 201 228 / 7%);
  --deck-edge: rgb(174 192 216 / 22%);
  --deck-ink: #e5be50;
  position: relative;
  display: grid;
  justify-items: center;
  gap: 16px;
  padding: 26px 26px 30px;
  border: 1px solid var(--deck-edge);
  border-radius: 30px;
  background:
    linear-gradient(var(--deck-grid) 1px, transparent 1px) 0 0 / 22px 22px,
    linear-gradient(90deg, var(--deck-grid) 1px, transparent 1px) 0 0 / 22px 22px,
    var(--deck);
  box-shadow:
    0 50px 90px -40px rgb(0 0 0 / 75%),
    0 18px 40px -24px rgb(0 0 0 / 55%),
    inset 0 1px 0 rgb(255 255 255 / 10%),
    inset 0 -3px 0 rgb(0 0 0 / 35%);
  transform: perspective(1100px) rotateX(calc(var(--lean-x, 0) * 1deg)) rotateY(calc(var(--lean-y, 0) * 1deg));
  transition: transform .5s cubic-bezier(.2, .8, .2, 1);
}
/* Gold glow pooling under the deck. */
.social-deck::before {
  content: "";
  position: absolute;
  inset: auto 12% -46px;
  z-index: -1;
  height: 40px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgb(229 190 80 / 28%), transparent);
  filter: blur(14px);
}
.social-deck__screw {
  position: absolute;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #f6e3a6, #c9a64a 45%, #6f5a22);
  box-shadow: 0 1px 1px rgb(0 0 0 / 50%), inset 0 -1px 1px rgb(0 0 0 / 35%);
}
.social-deck__screw::after {
  content: "";
  position: absolute;
  inset: 4.5px 2px;
  border-radius: 1px;
  background: rgb(60 45 10 / 75%);
  transform: rotate(-35deg);
}
.social-deck__screw:nth-of-type(1) { top: 13px; left: 13px; }
.social-deck__screw:nth-of-type(2) { top: 13px; right: 13px; }
.social-deck__screw:nth-of-type(3) { bottom: 13px; left: 13px; }
.social-deck__screw:nth-of-type(4) { bottom: 13px; right: 13px; }
.social-deck__bar {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 0 14px;
  font: 700 .66rem/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: .22em;
  text-transform: uppercase;
}
.social-deck__led {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #f3d27a;
  box-shadow: 0 0 6px 1px rgb(243 210 122 / 80%), 0 0 16px 3px rgb(229 190 80 / 35%);
  animation: social-led 2.8s ease-in-out infinite;
}
.social-deck__badge { color: var(--deck-ink); text-shadow: 0 -1px 0 rgb(0 0 0 / 45%); }
.social-deck__model { margin-left: auto; color: rgb(181 201 228 / 55%); }
.social-deck__screen {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 46px;
  margin: 0;
  padding: 0 16px;
  overflow: hidden;
  border-radius: 12px;
  background: linear-gradient(180deg, #050b14, #0a1424);
  box-shadow: inset 0 2px 8px rgb(0 0 0 / 80%), inset 0 0 0 1px rgb(229 190 80 / 14%), 0 1px 0 rgb(255 255 255 / 7%);
  color: #f3d27a;
  font: 600 .86rem/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: .02em;
  text-shadow: 0 0 8px rgb(243 210 122 / 55%);
  white-space: nowrap;
}
.social-deck__screen [data-social-screen] { overflow: hidden; text-overflow: ellipsis; }
.social-deck__prompt { color: rgb(243 210 122 / 60%); }
.social-deck__caret {
  flex: none;
  width: 8px;
  height: 1.05em;
  background: #f3d27a;
  box-shadow: 0 0 8px rgb(243 210 122 / 70%);
  animation: social-caret 1.05s steps(1) infinite;
}
.keycaps--deck {
  gap: 16px;
  margin: 4px 0 0;
  padding: 12px 12px 6px;
  border-radius: 26px;
  background: rgb(3 8 16 / 45%);
}
.keycaps--deck .keycap {
  --size: 7.5rem;
  --depth: .8rem;
  border-radius: 1.75rem;
}
.keycaps--deck .keycap__top {
  inset: .7rem .85rem 1.25rem;
  border-radius: 1.3rem;
  font-size: 2.7rem;
}
/* The small printed name in the corner of each big cap, like a key's second legend. */
.keycaps--deck .keycap__legend {
  position: absolute;
  right: .55rem;
  bottom: .4rem;
  display: block;
  font: 700 .5rem/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: .08em;
  text-transform: uppercase;
  opacity: .72;
}

html[data-theme="light"] .social-deck {
  --deck: linear-gradient(160deg, #fbfcfd 0%, #eef1f5 50%, #dde3ea 100%);
  --deck-grid: rgb(41 75 116 / 7%);
  --deck-edge: rgb(255 255 255 / 90%);
  --deck-ink: #8a6a17;
  box-shadow:
    0 50px 90px -40px rgb(13 25 43 / 35%),
    0 18px 40px -24px rgb(13 25 43 / 25%),
    inset 0 1px 0 #fff,
    inset 0 -3px 0 rgb(13 25 43 / 10%);
}
html[data-theme="light"] .social-deck__badge { text-shadow: 0 1px 0 rgb(255 255 255 / 80%); }
html[data-theme="light"] .social-deck__model { color: rgb(41 75 116 / 55%); }
html[data-theme="light"] .keycaps--deck { background: rgb(22 34 54 / 10%); box-shadow: inset 0 2px 6px rgb(13 25 43 / 18%), 0 1px 0 #fff; }
html[data-theme="light"] .social-notes span { border-color: rgb(138 106 23 / 45%); color: #8a6a17; }

@keyframes social-led {
  0%, 100% { opacity: 1; }
  50% { opacity: .45; }
}
@keyframes social-caret {
  50% { opacity: 0; }
}
@media (min-width: 1180px) {
  .keycaps--deck .keycap { --size: 8.25rem; }
  .keycaps--deck .keycap__top { font-size: 3rem; }
}
@media (max-width: 860px) {
  .social-stage { grid-template-columns: minmax(0, 1fr); }
  .social-deck { justify-self: center; }
}
@media (max-width: 420px) {
  .social-deck { padding: 22px 16px 24px; }
  .keycaps--deck { gap: 12px; }
  .keycaps--deck .keycap { --size: 6.4rem; }
  .keycaps--deck .keycap__top { font-size: 2.3rem; }
}
@media (prefers-reduced-motion: reduce) {
  .social-deck { transform: none; transition: none; }
  .social-deck__led, .social-deck__caret { animation: none; }
}

.footer-bottom {
  margin-top: 54px;
  padding-top: 24px;
  border-top: 1px solid #485d77;
}

.footer-bottom p {
  margin: 0;
  font-size: .75rem;
  letter-spacing: .09em;
  text-transform: uppercase;
}

@media (max-width: 1240px) {
  .nav-shell {
    min-height: 78px;
  }

  .menu-button {
    display: inline-flex;
    align-items: center;
  }

  .primary-navigation {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    padding: 8px 24px 24px;
    border-bottom: 1px solid var(--line);
    border-radius: 0 0 18px 18px;
    background: rgba(255, 255, 255, .9);
    -webkit-backdrop-filter: blur(18px) saturate(145%);
    backdrop-filter: blur(18px) saturate(145%);
  }

  html {
    scroll-padding-top: 78px;
  }

  .dashboard-section {
    min-height: calc(100svh - 78px);
  }

  .home-overview {
    min-height: calc(100svh - 78px);
  }

  .primary-navigation.is-open {
    display: block;
  }

  .primary-navigation ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 24px;
  }

  .primary-navigation a {
    padding: 16px 4px 12px;
    border-bottom-width: 2px;
  }
}

@media (max-width: 1080px) {
  .services-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .membership-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .membership-card:nth-child(n + 5) {
    transform: none;
  }

  .membership-card:last-child {
    grid-column: 1 / -1;
    width: calc(50% - 9px);
    justify-self: center;
  }

  .voucher-order,
  .callback-shell {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  [data-site-header] {
    padding: 8px 8px 0;
  }

  .site-header {
    border-radius: 14px;
  }

  .content-shell {
    width: min(calc(100% - 32px), var(--max-width));
  }

  .brand-mark {
    width: 50px;
    height: 40px;
  }

  .brand-name {
    font-size: .91rem;
  }

  .nav-brand-group {
    gap: 8px;
  }

  .nav-shell {
    width: calc(100% - 24px);
    gap: 8px;
  }

  .nav-actions {
    gap: 8px;
  }

  .nav-actions .menu-button {
    width: 38px;
    height: 38px;
    min-height: 38px;
    padding: 10px;
    justify-content: center;
    border-color: var(--line);
    border-radius: 50%;
  }

  .nav-actions .menu-button > span:last-child {
    display: none;
  }

  .nav-actions .menu-icon {
    margin-right: 0;
  }

  .theme-toggle {
    width: 38px;
    height: 38px;
  }

  .brand-name strong {
    font-size: .6rem;
    letter-spacing: .12em;
  }

  .nav-brand-group:has(.nav-back) {
    padding-left: 38px;
  }

  .nav-back {
    left: 6px;
    width: 34px;
    height: 34px;
  }

  .primary-navigation ul,
  .home-overview-grid,
  .home-grid,
  .statement-grid,
  .dashboard-grid,
  .services-hero-grid {
    grid-template-columns: 1fr;
  }

  .membership-heading,
  .membership-grid,
  .voucher-heading,
  .callback-form-grid {
    grid-template-columns: 1fr;
  }

  .voucher-preview { min-height: 300px; }
  .voucher-amounts { grid-template-columns: repeat(2, 1fr); }
  .voucher-delivery { grid-template-columns: 1fr; }

  .membership-card,
  .membership-card:last-child {
    width: 100%;
    min-height: 340px;
    grid-column: auto;
  }

  #services.dashboard-section {
    padding: 32px 0;
  }

  .home-grid,
  .statement-grid {
    gap: 34px;
  }

  .home-overview {
    min-height: auto;
    padding: 64px 0;
  }

  .home-principles {
    grid-template-rows: auto;
  }

  .section-label {
    width: 72px;
  }

  .home-copy .lead {
    margin-top: 30px;
  }

  .footer-shell {
    display: grid;
  }

  .service-container summary {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .services-list {
    grid-template-columns: 1fr;
  }

  .service-body ul {
    grid-template-columns: 1fr;
  }

  .review-form-grid {
    grid-template-columns: 1fr;
  }

  .detail-groups {
    grid-template-columns: 1fr;
  }

  .detail-content > .content-shell {
    width: calc(100% - 32px);
  }

  .service-subgrid,
  .service-subbody ul {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 1000px), (hover: none) {
  #services .service-card-grid {
    min-height: 0;
    padding: 3px 3px 12px;
    gap: 14px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    scrollbar-color: #718198 transparent;
  }

  #services .service-card-grid .service-card {
    --service-copy-opacity: 1;
    --service-copy-visibility: visible;
    --service-copy-delay: 0ms;
    --service-label-opacity: 0;
    min-width: 0;
    min-height: 350px;
    flex: 0 0 min(82%, 380px);
    opacity: 1;
    scroll-snap-align: start;
  }

  #services .service-card-grid .service-card .service-card-heading strong {
    font-size: 1.5rem;
    white-space: normal;
  }

  #services .service-card-content {
    width: 100%;
    padding: 22px;
    transition: none;
  }
}

@media (max-width: 520px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 330px) {
  .brand-name {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-snap-type: none;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
  }

  .nav-char > span,
  .nav-char::after {
    transition: none;
  }

  .service-card,
  .service-card-content,
  .service-card-label {
    transition: none;
  }

  .membership-card-inner {
    transition: none;
  }
}
.callback-vapor-word { position: relative; display: inline-block; }
.site-intro { display: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
html[data-intro="play"] .site-intro { display: block; position: fixed; inset: 0; z-index: 10000; }
.site-intro-backdrop {
  position: absolute; inset: 0; background: #0d192a;
  mask-image: radial-gradient(circle at var(--intro-x, 50%) var(--intro-y, 40px), transparent var(--intro-radius, -200px), #000 calc(var(--intro-radius, -200px) + 160px));
  -webkit-mask-image: radial-gradient(circle at var(--intro-x, 50%) var(--intro-y, 40px), transparent var(--intro-radius, -200px), #000 calc(var(--intro-radius, -200px) + 160px));
}
.site-intro-mark { position: absolute; left: 50%; top: 48%; width: min(46vw, 280px); aspect-ratio: 320 / 252; opacity: 0; transform: translate(-50%, -50%); }
.site-intro-mark img { display: block; width: 100%; height: 100%; object-fit: contain; }
.site-intro-panel { position: absolute; inset: 0; opacity: 0; will-change: transform, opacity; backface-visibility: hidden; }
.site-intro-shine-clip { position: absolute; inset: 0; overflow: hidden; mask: url('assets/atte-logo-web.png') center / contain no-repeat; -webkit-mask: url('assets/atte-logo-web.png') center / contain no-repeat; }
.site-intro-shine { position: absolute; inset: -20% auto -20% 0; width: 40%; opacity: 0; background: linear-gradient(90deg, transparent, rgba(255, 241, 195, .95), transparent); }
.site-intro-credit { position: absolute; bottom: max(40px, env(safe-area-inset-bottom)); left: 50%; display: flex; align-items: center; gap: 10px; margin: 0; opacity: 0; white-space: nowrap; color: #c5ceda; font: clamp(12px, 2.5vw, 14px) Arial, sans-serif; letter-spacing: .04em; }
.site-intro-credit img { display: block; width: 32px; height: 32px; object-fit: contain; flex: 0 0 32px; }
.site-intro-credit a { color: #d4af37; font-weight: 700; text-decoration: none; }
.site-intro:focus { outline: none; }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }
.footer-design-credit { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; font-size: .75rem; }
.footer-design-credit a { color: inherit; text-underline-offset: 4px; }
.footer-design-credit .ity-design-link { display: inline-flex; align-items: center; gap: 8px; }
.ity-design-link img { display: block; object-fit: contain; flex: 0 0 26px; }
.footer-design-credit a:hover { color: #d4af37; }
.footer-design-credit button { background: transparent; border: 0; color: inherit; padding: 0; text-decoration: underline; text-underline-offset: 4px; font: inherit; cursor: pointer; }
@media(prefers-reduced-motion:reduce) { html[data-intro="play"] .site-intro { display: none; } [data-replay-intro] { display: none; } }
.toy-construction-actors { position: absolute; inset: 0; pointer-events: none; }
.callback-vapor-control { display: block; position: relative; min-width: 0; }
.callback-vapor-control > input,
.callback-vapor-control > select,
.callback-vapor-control > textarea { width: 100%; box-sizing: border-box; }
.callback-vapor-control-text {
  position: absolute;
  left: 14px;
  right: 30px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  white-space: nowrap;
  overflow: clip;
  font: inherit;
}
.callback-vapor-control:has(textarea) .callback-vapor-control-text {
  top: 14px; transform: none; right: 14px; white-space: normal;
}
html[data-theme] .callback-control-revealing,
html[data-theme] .callback-control-revealing::placeholder {
  -webkit-text-fill-color: color-mix(in srgb, currentColor var(--control-reveal, 0%), transparent) !important;
}
.callback-vapor-word.is-vaporizing > .callback-vapor-glyph { opacity: var(--vapor-reveal, 0); }
.callback-vapor-control-text .callback-vapor-glyph { opacity: 0 !important; }
/* The text fade-in draws every word's particles on one canvas over the text (site.js places and sizes it, and keeps
   it inside the page's width so phones never scroll sideways). Under the navbar and chat button. */
#main-content { overflow-x: clip; }
.callback-word-particles {
  position: absolute;
  pointer-events: none;
  max-width: none;
  z-index: 50;
}
.atte-booking { padding-block: 2rem; scroll-margin-top: calc(var(--site-header-height, 90px) + 16px); }
.atte-booking[hidden] { display: none; }
.atte-booking h2:focus { outline: none; }
/* Service cards open the request form: the whole card is clickable, with a gold button as its label. */
.detail-group.is-selectable { display: flex; flex-direction: column; cursor: pointer; transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.detail-group.is-selectable:hover { border-color: #c19b36; box-shadow: 0 18px 40px rgba(20, 35, 56, .18); transform: translateY(-3px); }
.detail-group.is-selected { border-color: #c19b36; box-shadow: inset 0 0 0 2px #c19b36, 0 12px 28px rgba(193, 155, 54, .22); }
.detail-request { align-self: flex-start; display: inline-flex; align-items: center; gap: .4rem; margin-top: auto; padding: .65rem 1.15rem; border: 1px solid #c19b36; border-radius: 999px; color: #14202e; background: #c19b36; font: inherit; font-size: .75rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; cursor: pointer; transition: background-color .18s ease; }
/* Space above the hint and Proceed, which the request script appends last. */
.detail-group.is-selectable > :nth-last-child(3) { margin-bottom: 26px; }
.detail-request:hover { background: #d4b04d; }
.detail-request:focus-visible { outline: 2px solid #c19b36; outline-offset: 3px; }
.detail-group.is-selected .detail-request { box-shadow: 0 8px 20px rgba(193, 155, 54, .3); }
/* Options on a service card can be tapped: materials toggle, a single card's services pick one. */
.detail-group li.detail-choice { cursor: pointer; user-select: none; transition: border-color .15s ease, background-color .15s ease, color .15s ease; }
.detail-group li.detail-choice:hover { border-color: #c19b36; }
.detail-group li.detail-choice:focus-visible { outline: 2px solid #c19b36; outline-offset: 2px; }
.detail-group li.detail-choice[aria-checked="true"] { border-color: #c19b36; color: #14202e; background: #c19b36; font-weight: 700; }
.detail-group li.detail-choice[aria-checked="true"]::before { width: auto; height: auto; margin-right: 6px; border-radius: 0; background: none; content: "✓"; font-size: .78rem; line-height: 1; }
.detail-hint { margin: 0 0 12px; color: #d4b04d; font-size: .85rem; font-weight: 700; }
.detail-group.is-selectable > .detail-hint:not([hidden]) + .detail-request { margin-top: 0; }
/* The request form, opened from a card: a summary of the choice replaces the service and material pickers. */
.atte-choice { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin: 0 0 1.3rem; padding: 1rem 1.15rem; border: 1px solid #c19b36; border-radius: 14px; background: color-mix(in srgb, #c19b36 10%, transparent); }
.atte-choice[hidden] { display: none; }
.atte-choice p { margin: 0; }
.atte-choice-label { color: var(--ink-soft); font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.atte-choice-value { margin-top: .3rem !important; font-weight: 700; line-height: 1.45; }
.atte-choice-edit { flex-shrink: 0; padding: .5rem .95rem; border: 1px solid #c19b36; border-radius: 999px; color: inherit; background: transparent; font: inherit; font-size: .75rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; cursor: pointer; }
.atte-choice-edit:hover { background: color-mix(in srgb, #c19b36 18%, transparent); }
.atte-choice-edit:focus-visible { outline: 2px solid #c19b36; outline-offset: 3px; }
.service-picker.is-from-card .atte-step-choose,
.service-picker.is-from-card .atte-finishes { display: none; }
@media (prefers-reduced-motion: reduce) { .detail-group.is-selectable, .detail-request, .detail-group li.detail-choice { transition: none; } .detail-group.is-selectable:hover { transform: none; } }
.atte-booking .service-picker { background: color-mix(in srgb, var(--paper) 68%, transparent); backdrop-filter: blur(18px); }
.atte-booking h2 { margin-bottom: 1rem; }
.atte-booking select { display: block; width: 100%; margin: .6rem 0 1.3rem; padding: .9rem; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 10px; }
.atte-finishes { border: 1px solid var(--line); padding: 1rem; margin-bottom: 1rem; }
.atte-finishes [data-finishes] { display: flex; flex-wrap: wrap; gap: 1rem; }
.atte-finishes label { display: flex; align-items: center; gap: .5rem; }
/* The service request's ways to pay: cards, the chosen one in gold. */
.atte-payment { min-width: 0; margin: 0 0 1rem; padding: 0; border: 0; }
.atte-payment legend { margin-bottom: .6rem; padding: 0; }
.atte-payment-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr)); gap: .6rem; }
.atte-payment-options label { position: relative; cursor: pointer; }
.atte-payment-options input { position: absolute; opacity: 0; pointer-events: none; }
.atte-payment-options span { display: grid; gap: .2rem; height: 100%; padding: .8rem .95rem; border: 1px solid var(--line); border-radius: 12px; background: color-mix(in srgb, var(--paper) 55%, transparent); transition: border-color .15s ease, background-color .15s ease; }
.atte-payment-options small { color: var(--ink-soft); font-size: .78rem; }
.atte-payment-options label:hover span { border-color: #c19b36; }
.atte-payment-options input:checked + span { border-color: #c19b36; background: color-mix(in srgb, #c19b36 16%, transparent); box-shadow: inset 0 0 0 1px #c19b36; }
.atte-payment-options input:focus-visible + span { outline: 2px solid #c19b36; outline-offset: 2px; }
[data-theme="dark"] .atte-booking .service-demo-notice { color: #f8dfa3; background: #44391f; }
/* Login / My account: a gold pill with a person icon, so clients find it at a glance in either theme. */
.client-access-link { display: inline-flex; align-items: center; gap: .45rem; color: #14202e; background: #c19b36; border: 1px solid #c19b36; border-radius: 999px; box-shadow: 0 6px 16px rgba(193, 155, 54, .32); font-size: .75rem; font-weight: 800; letter-spacing: .06em; white-space: nowrap; text-decoration: none; padding: .55rem 1rem .55rem .8rem; transition: background-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.client-access-link::before { content: ""; width: 1rem; height: 1rem; flex: 0 0 1rem; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21a8 8 0 0 1 16 0'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21a8 8 0 0 1 16 0'/%3E%3C/svg%3E") center / contain no-repeat; }
.client-access-link:hover { color: #14202e; background: #d4b04d; box-shadow: 0 8px 20px rgba(193, 155, 54, .45); transform: translateY(-1px); }
.client-access-link:focus-visible { outline: 2px solid #c19b36; outline-offset: 3px; }
/* Sign out sits beside it as a quieter outlined pill. */
.client-sign-out { color: inherit; background: transparent; border: 1px solid color-mix(in srgb, currentColor 40%, transparent); border-radius: 999px; font: inherit; font-size: .72rem; font-weight: 700; letter-spacing: .06em; white-space: nowrap; padding: .5rem .9rem; cursor: pointer; transition: border-color .18s ease, color .18s ease; }
.client-sign-out:hover { color: #c19b36; border-color: #c19b36; }
.client-sign-out:focus-visible { outline: 2px solid #c19b36; outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .client-access-link, .client-sign-out { transition: none; } .client-access-link:hover { transform: none; } }
/* The menu carries its own copy of the account link; it only shows on phones, where the header bar hides its copy. */
.primary-navigation .nav-account-item { display: none; }
@media (max-width: 700px) {
  .nav-actions .client-access-link { display: none; }
  .primary-navigation .nav-account-item { display: block; padding-top: 14px; }
  .primary-navigation .nav-account-item .client-access-link { display: flex; justify-content: center; width: 100%; padding: .8rem 1rem; border-bottom: 1px solid #c19b36; font-size: .78rem; }
  html .primary-navigation .nav-account-item .client-access-link:is(:link, :visited, :hover, :focus-visible) { color: #14202e; }
}
/* Phones: My account keeps its label; Sign out becomes a round icon button (its text stays for screen readers). */
@media (max-width: 560px) {
  .nav-actions { gap: 8px; }
  .client-access-link { padding: .5rem .8rem .5rem .65rem; font-size: .7rem; }
  .client-sign-out { display: grid; width: 36px; height: 36px; padding: 0; place-items: center; font-size: 0; }
  .client-sign-out::before { content: ""; width: 16px; height: 16px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4M16 17l5-5-5-5M21 12H9'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4M16 17l5-5-5-5M21 12H9'/%3E%3C/svg%3E") center / contain no-repeat; }
}
.membership-comparison { max-width: 960px; margin: 28px auto 0; padding: clamp(16px, 2vw, 24px); border: 1px solid var(--line); border-radius: 16px; background: color-mix(in srgb, var(--paper) 75%, transparent); backdrop-filter: blur(24px); color: var(--ink); }
.membership-comparison h3 { font: 400 clamp(1.5rem, 2.3vw, 1.9rem) Georgia, serif; margin: 6px 0 8px; }
.membership-comparison > p:not(.eyebrow) { font-size: 13px; line-height: 1.5; margin: 0; }
#membership-compare-title { scroll-margin-top: 120px; }
.membership-table-scroll { overflow-x: auto; margin-top: 18px; }
.membership-comparison table { width: 100%; min-width: 660px; border-collapse: collapse; }
.membership-comparison caption { text-align: left; margin-bottom: 8px; color: var(--ink-soft); font-size: 12px; }
.membership-comparison th, .membership-comparison td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: center; font-size: 13px; }
.membership-comparison th:first-child { text-align: left; }
.membership-comparison thead { border-bottom: 2px solid #c9a62a; }
.membership-benefit-graphs { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 24px; margin-top: 20px; }
.membership-benefit-graphs figure { margin: 0; }
.membership-benefit-graphs figcaption { font-weight: 700; margin-bottom: 10px; font-size: 13px; }
.membership-bar-row { display: grid; grid-template-columns: 62px 1fr 34px; gap: 8px; align-items: center; margin: 8px 0; font-size: 12px; }
.membership-bar-track { height: 6px; border-radius: 10px; background: color-mix(in srgb, var(--ink) 12%, transparent); overflow: hidden; }
.membership-bar-track > span { display: block; height: 100%; background: linear-gradient(90deg,#947133,#dfc979); border-radius: inherit; }
@media(max-width:700px) { .membership-benefit-graphs { grid-template-columns: 1fr; } }
.membership-chart-term { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; margin: 16px 0; }
.membership-chart-term label { font-weight: 700; font-size: 13px; }
.membership-chart-term select { min-width: 130px; border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; background: var(--field-surface); color: var(--ink); font-size: 13px; }
.membership-chart-term p { flex-basis: 100%; margin: 0; color: var(--ink-soft); font-size: 12px; }
.membership-price-graph { margin: 16px 0; }
.membership-price-graph figcaption { font-weight: 700; margin-bottom: 10px; font-size: 13px; }
.membership-price-row { display: grid; grid-template-columns: 62px minmax(30px,1fr) 84px; gap: 10px; align-items: center; margin: 8px 0; font-size: 13px; }
.membership-price-row strong { text-align: right; }
.membership-comparison .is-selected-term { background: color-mix(in srgb, #c9a62a 14%, transparent); }
/* Phones: a plan picker (site.js) replaces the wide table, the price chart and the bar charts. */
.membership-picker { display: none; }
@media (max-width: 700px) {
  .membership-comparison .membership-chart-term, .membership-comparison .membership-price-graph,
  .membership-comparison .membership-table-scroll, .membership-comparison .membership-benefit-graphs { display: none; }
  .membership-picker { display: block; margin-top: 16px; }
  .membership-picker-term { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
  .membership-picker-term button { min-height: 42px; border: 0; border-radius: 999px; color: var(--ink-soft); background: none; font-weight: 800; cursor: pointer; }
  .membership-picker-term button[aria-pressed="true"] { color: #14202e; background: #c19b36; }
  .membership-picker-plans { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 5px; margin: 12px 0 14px; }
  .membership-picker-plans button { min-width: 0; min-height: 46px; padding: 0 1px; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); background: var(--surface); font-size: clamp(.62rem, 2.8vw, .8rem); font-weight: 800; letter-spacing: -.02em; cursor: pointer; }
  .membership-picker-plans button[aria-pressed="true"] { border-color: #c19b36; color: #14202e; background: #c19b36; }
  .membership-picker button:focus-visible { outline: 2px solid #c19b36; outline-offset: 2px; }
  .membership-picker-card { padding: 20px 18px; border: 1px solid var(--line); border-radius: 20px; background: linear-gradient(160deg, var(--surface), var(--surface-soft)); }
  .membership-picker-card small { color: var(--ink-soft); font-size: .7rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
  .membership-picker-card h4 { margin: 4px 0 0; font: 500 2rem/1.1 Georgia, serif; }
  .membership-picker-price { margin: 10px 0 0; font-size: 2.1rem; font-weight: 900; line-height: 1.1; }
  .membership-picker-price span { color: var(--ink-soft); font-size: .9rem; font-weight: 700; }
  .membership-picker-save { display: inline-block; margin: 8px 0 0; padding: 3px 10px; border-radius: 999px; color: #14202e; background: #e7cf86; font-size: .74rem; font-weight: 900; }
  .membership-picker-card ul { margin: 16px 0 0; padding: 0; list-style: none; }
  .membership-picker-card li { display: flex; justify-content: space-between; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); font-size: .95rem; }
  .membership-picker-card li b { text-align: right; }
  .membership-picker-yes { color: #d4af37; font-weight: 900; }
  .membership-picker-no { color: var(--ink-soft); opacity: .6; }
  .membership-picker-choose { width: 100%; min-height: 50px; margin-top: 16px; border: 0; border-radius: 999px; color: #14202e; background: #c19b36; font-size: 1rem; font-weight: 900; cursor: pointer; }
  .membership-picker-choose:hover { background: #d4b04d; }
}
/*
 * Wide screens: the comparison spans the section like the cards above it, with the term switch and graphs on the
 * left and the table on the right, so it fits the window instead of one long column.
 */
@media (min-width: 1100px) {
  .membership-comparison { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); column-gap: clamp(28px, 3.5vw, 56px); max-width: none; padding: clamp(24px, 2.4vw, 36px); }
  .membership-comparison > .eyebrow, .membership-comparison > h3, .membership-comparison > p:not(.eyebrow) { grid-column: 1 / -1; }
  .membership-comparison > .membership-chart-term { grid-column: 1; grid-row: 4; margin: 22px 0 6px; }
  .membership-comparison > .membership-price-graph { grid-column: 1; grid-row: 5; margin: 10px 0 0; }
  .membership-comparison > .membership-benefit-graphs { grid-column: 1; grid-row: 6; margin-top: 22px; }
  .membership-comparison > .membership-table-scroll { grid-column: 2; grid-row: 4 / span 3; align-self: start; margin-top: 22px; }
  .membership-comparison table { min-width: 0; }
  .membership-comparison th, .membership-comparison td { padding: 14px 10px; font-size: 14px; }
}

/* Service cards: the copy keeps its final expanded width for however many services are shown (Admin > Website Services). */
.service-card-grid { --service-count: 5; }
.service-card-content { width: calc((100cqw - var(--service-count) * 10px) / ((var(--service-count) - 1) * .62 + 3.2) * 3.2); }

/* Updates, Our Work and FAQs: home page sections filled from the admin panel (site.js). */
.content-section { min-height: auto; padding: clamp(58px, 8vw, 100px) 0; }
.content-section .dashboard-intro { margin: 18px 0 30px; }
.content-section .dashboard-intro a { color: inherit; }
.content-empty { margin: 0; color: var(--ink-soft); }

/* Highlighted updates lead, across the full width, with a gold edge. */

/* Our Work (Option A, "Spotlight"): the full page width, the video on the left and one large photo at a time on
   the right with a row of thumbnails. Every photo sits in a 3:4 frame (pairs: two side by side), cropped to fit and
   never stretched; a blurred copy of the photo fills the space around it. site.js renders and drives it. */
.our-work-shell { width: min(calc(100% - 48px), 1600px); }
.our-work-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 48px; margin-bottom: clamp(20px, 3vh, 32px); }
.our-work-head .section-number { margin: 0 0 14px; }
.our-work-head .dashboard-intro { max-width: 560px; margin: 0; }
.our-work-layout { --work-h: clamp(460px, 74vh, 700px); display: grid; grid-template-columns: calc(var(--work-h) * 9 / 16) minmax(0, 1fr); gap: 18px; }
.our-work-video { display: flex; flex-direction: column; gap: 10px; margin: 0; }
.our-work-video-frame { position: relative; height: var(--work-h); overflow: hidden; border-radius: 18px; background: #0b1422; box-shadow: 0 18px 40px rgba(4, 12, 24, .28); }
.our-work-video video { display: block; width: 100%; height: 100%; object-fit: cover; }
.our-work-video figcaption { color: var(--ink-soft); font-size: .92rem; line-height: 1.45; }
.work-chip { position: absolute; top: 12px; z-index: 2; padding: 4px 10px; border-radius: 999px; color: #fff; background: rgba(8, 19, 35, .78); font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; pointer-events: none; }
.work-chip-left { left: 12px; }
.work-spotlight { display: flex; flex-direction: column; gap: 16px; min-width: 0; border-radius: 18px; }
.work-spotlight:focus-visible { outline: 2px solid #c19b36; outline-offset: 4px; }
.work-stage { position: relative; height: calc(var(--work-h) - 94px); overflow: hidden; container-type: size; border-radius: 18px; background: #0b1422; touch-action: pan-y; box-shadow: 0 18px 40px rgba(4, 12, 24, .28); }
.work-slides, .work-slide { position: absolute; inset: 0; margin: 0; }
.work-slides .content-empty { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; color: #c7d2e0; }
.work-slide { display: grid; place-items: center; opacity: 0; visibility: hidden; transition: opacity .45s ease, visibility .45s; }
.work-slide.is-on { opacity: 1; visibility: visible; }
.work-backdrop { position: absolute; inset: -8%; width: 116%; height: 116%; object-fit: cover; filter: blur(26px) brightness(.5) saturate(1.1); }
/* As large as the stage allows in both directions: 3:4 for one photo, 3:2 for a pair. */
.work-pictures { position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; width: min(100cqw, 100cqh * 3 / 4); aspect-ratio: 3 / 4; }
.is-pair .work-pictures { width: min(100cqw, 100cqh * 3 / 2); aspect-ratio: 3 / 2; }
.work-photo { position: relative; display: block; height: 100%; min-width: 0; overflow: hidden; }
.work-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.work-photo:hover img, .work-photo:focus-visible img { transform: scale(1.03); }
.work-photo:focus-visible { outline: 2px solid #c19b36; outline-offset: -3px; }
.work-slide figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 56px 22px 18px; color: #fff; background: linear-gradient(to top, rgba(8, 19, 35, .88), transparent); font-size: clamp(.98rem, 1.2vw, 1.12rem); font-weight: 700; pointer-events: none; }
.work-arrow { position: absolute; top: 50%; z-index: 3; display: grid; width: 48px; height: 48px; place-items: center; translate: 0 -50%; border: 1px solid rgba(255, 255, 255, .35); border-radius: 50%; color: #fff; background: rgba(8, 19, 35, .62); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); cursor: pointer; transition: background-color .18s ease, border-color .18s ease, color .18s ease; }
.work-arrow:hover { border-color: #c19b36; background: #c19b36; color: #14202e; }
.work-arrow:focus-visible { outline: 2px solid #c19b36; outline-offset: 3px; }
.work-arrow-prev { left: 14px; }
.work-arrow-next { right: 14px; }
.work-count { position: absolute; right: 14px; top: 12px; z-index: 3; margin: 0; padding: 4px 10px; border-radius: 999px; color: #fff; background: rgba(8, 19, 35, .7); font-size: .76rem; font-weight: 800; letter-spacing: .08em; font-variant-numeric: tabular-nums; }
.work-thumbs { display: flex; gap: 10px; height: 78px; padding: 2px; overflow-x: auto; scrollbar-width: none; }
.work-thumbs::-webkit-scrollbar { display: none; }
.work-thumb { flex: 0 0 auto; width: 58px; height: 100%; padding: 0; overflow: hidden; border: 2px solid transparent; border-radius: 10px; background: var(--surface-soft, #e0e5eb); cursor: pointer; opacity: .62; transition: opacity .18s ease, border-color .18s ease; }
.work-thumb:hover { opacity: 1; }
.work-thumb[aria-current="true"] { border-color: #c19b36; opacity: 1; }
.work-thumb:focus-visible { outline: 2px solid #c19b36; outline-offset: 2px; }
.work-thumb img { width: 100%; height: 100%; object-fit: cover; }
.work-spotlight.is-single .work-arrow, .work-spotlight.is-single .work-thumbs, .work-spotlight.is-single .work-count,
.work-spotlight.is-empty .work-arrow, .work-spotlight.is-empty .work-thumbs, .work-spotlight.is-empty .work-count { display: none; }
@media (max-width: 900px) {
  /* Tablets and phones: the video on top, the photos underneath, each as wide as the screen allows. */
  .our-work-shell { width: min(calc(100% - 32px), 1600px); }
  .our-work-layout { --work-h: min(68svh, 600px); grid-template-columns: minmax(0, 1fr); }
  .our-work-video { width: min(100%, calc(var(--work-h) * 9 / 16)); justify-self: center; }
  .work-stage { height: auto; aspect-ratio: 3 / 4; max-height: 72svh; }
  .work-arrow { width: 42px; height: 42px; }
}
@media (prefers-reduced-motion: reduce) { .work-slide, .work-photo img, .work-arrow, .work-thumb { transition: none; } }
/* Our Work photo viewer (site.js): a photo opens large over the page instead of in a new tab. */
html.work-viewer-open { overflow: hidden; }
.work-viewer { width: 100vw; max-width: none; height: 100dvh; max-height: none; margin: 0; padding: 0; border: 0; color: #fff; background: rgba(5, 11, 20, .94); overscroll-behavior: contain; }
.work-viewer::backdrop { background: rgba(5, 11, 20, .6); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.work-viewer[open] { display: grid; grid-template-rows: auto minmax(0, 1fr); animation: work-viewer-in .22s ease; }
@keyframes work-viewer-in { from { opacity: 0; } }
.work-viewer-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: max(12px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) 8px max(16px, env(safe-area-inset-left)); }
.work-viewer-count { margin: 0; font-size: .82rem; font-weight: 800; letter-spacing: .1em; font-variant-numeric: tabular-nums; }
.work-viewer-close { display: grid; width: 46px; height: 46px; place-items: center; border: 1px solid rgba(255, 255, 255, .3); border-radius: 50%; color: #fff; background: rgba(255, 255, 255, .08); cursor: pointer; transition: background-color .18s ease, border-color .18s ease, color .18s ease; }
.work-viewer-close:hover { border-color: #c19b36; background: #c19b36; color: #14202e; }
.work-viewer-close:focus-visible { outline: 2px solid #c19b36; outline-offset: 3px; }
.work-viewer-figure { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; min-height: 0; margin: 0; padding: 0 clamp(16px, 7vw, 96px) max(20px, env(safe-area-inset-bottom)); }
.work-viewer-frame { position: relative; display: flex; min-height: 0; max-width: 100%; }
.work-viewer-frame img { display: block; max-width: 100%; max-height: calc(100dvh - 150px); width: auto; height: auto; object-fit: contain; border-radius: 12px; box-shadow: 0 24px 60px rgba(0, 0, 0, .5); user-select: none; -webkit-user-drag: none; }
.work-viewer figcaption { max-width: 760px; color: #dbe3ee; font-size: 1rem; font-weight: 700; text-align: center; }
.work-viewer .work-arrow { position: fixed; top: 50%; }
.work-viewer .work-arrow-prev { left: max(14px, env(safe-area-inset-left)); }
.work-viewer .work-arrow-next { right: max(14px, env(safe-area-inset-right)); }
.work-viewer.is-single .work-arrow, .work-viewer.is-single .work-viewer-count { display: none; }
.work-photo { cursor: zoom-in; }
@media (max-width: 620px) {
  .work-viewer-figure { padding-inline: 10px; }
  .work-viewer .work-arrow { top: auto; bottom: max(18px, env(safe-area-inset-bottom)); translate: 0; }
  .work-viewer-frame img { max-height: calc(100dvh - 210px); }
}
@media (prefers-reduced-motion: reduce) { .work-viewer[open] { animation: none; } .work-viewer-close { transition: none; } }

.faq-list { display: grid; gap: 10px; max-width: 920px; }
.faq-item { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.faq-item summary { display: flex; justify-content: space-between; gap: 16px; padding: 18px 20px; font-weight: 700; cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: #b8952a; font-size: 1.3rem; line-height: 1; }
.faq-item[open] summary::after { content: "−"; }
.faq-item summary:focus-visible { outline: 2px solid #d4af37; outline-offset: 2px; border-radius: 14px; }
.faq-item p { margin: 0; padding: 0 20px 20px; color: var(--ink-soft); line-height: 1.65; white-space: pre-line; }

/* Mail: bottom-left for signed-in clients (site.js on the public pages, the client layout on account pages). */
.mail-fab { position: fixed; left: max(16px, env(safe-area-inset-left)); bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 95; display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 18px 0 14px; border: 1px solid rgba(255, 255, 255, .28); border-radius: 999px; color: #fff; background: linear-gradient(180deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, .02)), rgba(17, 31, 50, .82); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 10px 26px rgba(4, 12, 24, .35); -webkit-backdrop-filter: blur(14px) saturate(150%); backdrop-filter: blur(14px) saturate(150%); font: 800 .78rem/1 Arial, Helvetica, sans-serif; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; transition: transform .18s ease, box-shadow .18s ease; }
.mail-fab:hover { color: #fff; transform: translateY(-2px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 14px 30px rgba(4, 12, 24, .42); }
.mail-fab:focus-visible { outline: 2px solid #c9a62a; outline-offset: 3px; }
.mail-fab svg { width: 20px; height: 20px; flex: 0 0 20px; color: #d4af37; }
.mail-fab-count { display: inline-grid; min-width: 22px; height: 22px; padding: 0 6px; place-items: center; border-radius: 999px; color: #14202e; background: #d4af37; font-size: .72rem; letter-spacing: 0; }
@media (max-width: 520px) { .mail-fab { padding: 0 14px; } .mail-fab-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; } }
@media (prefers-reduced-motion: reduce) { .mail-fab { transition: none; } }
/* Chat: bottom-right on every page (site.js), styled like the mail button; the panel follows the theme. */
.chat-fab { position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 96; display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 18px 0 14px; border: 1px solid rgba(255, 255, 255, .28); border-radius: 999px; color: #fff; background: linear-gradient(180deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, .02)), rgba(17, 31, 50, .82); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 10px 26px rgba(4, 12, 24, .35); -webkit-backdrop-filter: blur(14px) saturate(150%); backdrop-filter: blur(14px) saturate(150%); font: 800 .78rem/1 Arial, Helvetica, sans-serif; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; transition: transform .18s ease, box-shadow .18s ease; }
.chat-fab:hover { transform: translateY(-2px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 14px 30px rgba(4, 12, 24, .42); }
.chat-fab:focus-visible { outline: 2px solid #c9a62a; outline-offset: 3px; }
.chat-panel { position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: calc(76px + env(safe-area-inset-bottom)); z-index: 97; display: flex; flex-direction: column; width: min(380px, calc(100vw - 32px)); height: min(560px, calc(100svh - 120px)); overflow: hidden; border: 1px solid var(--line); border-radius: 18px; color: var(--ink); background: var(--surface); box-shadow: 0 24px 60px rgba(4, 12, 24, .35); }
.chat-panel[hidden] { display: none; }
.chat-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; color: #fff; background: #13233a; }
.chat-header strong { display: block; font: 400 1.15rem Georgia, "Times New Roman", serif; }
.chat-header small { display: block; margin-top: 2px; color: #b7c9e0; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; }
.chat-close { width: 36px; height: 36px; border: 1px solid rgba(255, 255, 255, .3); border-radius: 50%; color: #fff; background: transparent; font-size: 1.3rem; line-height: 1; cursor: pointer; }
.chat-close:hover, .chat-close:focus-visible { border-color: #c19b36; color: #081323; background: #c19b36; outline: none; }
.chat-log { display: flex; flex: 1; flex-direction: column; gap: 10px; padding: 16px; overflow-y: auto; overscroll-behavior: contain; }
.chat-message { max-width: 88%; margin: 0; padding: 10px 13px; border-radius: 14px; font-size: .9rem; line-height: 1.5; overflow-wrap: anywhere; }
.chat-message p { margin: 0; }
.chat-message-you { align-self: flex-end; border-bottom-right-radius: 4px; color: #081323; background: #d4af37; }
.chat-message-bot { align-self: flex-start; display: grid; gap: 6px; border: 1px solid var(--line); border-bottom-left-radius: 4px; background: var(--paper); }
.chat-answer-title { font-size: .92rem; }
.chat-answer-text { color: var(--ink-soft); white-space: pre-line; }
.chat-link { justify-self: start; color: var(--ink); font-size: .82rem; font-weight: 700; text-decoration: underline; text-decoration-color: #c19b36; text-underline-offset: 4px; }
.chat-link:hover, .chat-link:focus-visible { color: #a8801f; }
.chat-related-label { margin-top: 4px !important; color: var(--ink-soft); font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.chat-related, .chat-chip { justify-self: start; padding: 6px 11px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); background: var(--surface); font: inherit; font-size: .8rem; text-align: left; cursor: pointer; }
.chat-related:hover, .chat-chip:hover, .chat-related:focus-visible, .chat-chip:focus-visible { border-color: #c19b36; outline: none; }
.chat-typing { color: var(--ink-soft); letter-spacing: .2em; }
.chat-suggestions { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 16px 12px; }
.chat-suggestions[hidden] { display: none; }
.chat-log .chat-suggestions { padding: 2px 0 0; }
.chat-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); }
.chat-form input { flex: 1; min-width: 0; padding: 11px 13px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); background: var(--paper); font: inherit; font-size: .9rem; }
.chat-form input:focus-visible { outline: 2px solid #c19b36; outline-offset: 1px; }
.chat-form button { width: 44px; height: 44px; flex: 0 0 44px; border: 0; border-radius: 50%; color: #081323; background: #d4af37; font-size: 1rem; cursor: pointer; }
.chat-form button:hover, .chat-form button:focus-visible { background: #c19b36; outline: none; }
@media (max-width: 520px) {
  .chat-fab { padding: 0 14px; }
  .chat-fab-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .chat-panel { right: 8px; left: 8px; bottom: calc(72px + env(safe-area-inset-bottom)); width: auto; height: min(560px, calc(100svh - 96px)); }
}
/* Chat motion: the button glides in and pulses once, the panel grows out of it, new messages slide up. */
.chat-fab { animation: chat-fab-in .7s cubic-bezier(.2, .9, .3, 1.25) .9s backwards; transition: transform .25s cubic-bezier(.2, .9, .3, 1.3), box-shadow .25s ease, background-color .25s ease; }
.chat-fab:hover { transform: translateY(-3px) scale(1.03); }
.chat-fab:active { transform: scale(.96); }
.chat-fab-icon { position: relative; display: inline-block; width: 20px; height: 20px; flex: 0 0 20px; color: #d4af37; }
.chat-fab-icon svg { position: absolute; inset: 0; width: 20px; height: 20px; transition: opacity .25s ease, transform .35s cubic-bezier(.2, .9, .3, 1.3); }
.chat-fab:hover .chat-fab-bubble { transform: rotate(-10deg) scale(1.1); }
.chat-fab-cross { opacity: 0; transform: rotate(-90deg) scale(.5); }
.chat-fab[aria-expanded="true"] .chat-fab-bubble { opacity: 0; transform: rotate(90deg) scale(.5); }
.chat-fab[aria-expanded="true"] .chat-fab-cross { opacity: 1; transform: none; }
.chat-fab::after { content: ""; position: absolute; inset: -1px; border: 2px solid #d4af37; border-radius: inherit; opacity: 0; pointer-events: none; }
.chat-fab.is-nudging { animation: chat-fab-nudge .9s cubic-bezier(.3, .7, .4, 1.4) 2; }
.chat-fab.is-nudging::after { animation: chat-fab-ring 1.8s ease-out; }
@keyframes chat-fab-in { from { opacity: 0; transform: translateY(24px) scale(.85); } to { opacity: 1; transform: none; } }
@keyframes chat-fab-nudge { 0%, 100% { transform: none; } 30% { transform: translateY(-5px) rotate(-3deg); } 60% { transform: translateY(0) rotate(2deg); } }
@keyframes chat-fab-ring { 0% { opacity: .9; transform: scale(1); } 100% { opacity: 0; transform: scale(1.35, 1.6); } }

.chat-panel { opacity: 0; transform: translateY(18px) scale(.94); transform-origin: bottom right; transition: opacity .22s ease, transform .3s cubic-bezier(.2, .9, .3, 1.15); }
.chat-panel.is-open { opacity: 1; transform: none; }
.chat-log { scroll-behavior: smooth; }
.chat-message.is-new { animation: chat-message-in .38s cubic-bezier(.2, .9, .3, 1.1) both; }
.chat-message-you.is-new { transform-origin: bottom right; }
.chat-message-bot.is-new { transform-origin: bottom left; animation-delay: .05s; }
@keyframes chat-message-in { from { opacity: 0; transform: translateY(10px) scale(.96); } to { opacity: 1; transform: none; } }
.chat-typing { display: inline-flex; gap: 5px; align-items: center; padding: 13px 15px; }
.chat-typing-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-soft); animation: chat-typing 1s ease-in-out infinite; }
.chat-typing-dot:nth-child(2) { animation-delay: .15s; }
.chat-typing-dot:nth-child(3) { animation-delay: .3s; }
@keyframes chat-typing { 0%, 60%, 100% { opacity: .35; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-5px); } }
.chat-panel.is-open .chat-chip { animation: chat-message-in .35s ease backwards; animation-delay: calc(.15s + var(--i, 0) * .04s); }
.chat-chip, .chat-related, .chat-close, .chat-form button { transition: border-color .18s ease, background-color .18s ease, color .18s ease, transform .18s ease; }
.chat-chip:hover, .chat-related:hover { transform: translateY(-1px); }
.chat-form button:hover { transform: scale(1.06); }
.chat-form button:active { transform: scale(.94); }
.chat-link { transition: color .18s ease, text-underline-offset .18s ease; }
.chat-link:hover { text-underline-offset: 6px; }
@media (prefers-reduced-motion: reduce) {
  .chat-fab, .chat-fab.is-nudging, .chat-fab.is-nudging::after, .chat-message.is-new, .chat-panel.is-open .chat-chip, .chat-typing-dot { animation: none; }
  .chat-fab, .chat-fab-icon svg, .chat-panel, .chat-chip, .chat-related, .chat-close, .chat-form button, .chat-link { transition: none; }
  .chat-log { scroll-behavior: auto; }
}

/* Membership orbit (site.js): the plan cards circle a ring, with the front plan described in the panel beside it. */
.membership-orbit {
  --orbit-card-w: clamp(220px, 24vw, 360px);
  --orbit-card-h: calc(var(--orbit-card-w) * .64);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 390px);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
}

.membership-orbit-main { display: grid; gap: 14px; min-width: 0; }

.membership-orbit-stage {
  position: relative;
  height: calc(var(--orbit-card-h) * 1.95);
  overflow: hidden;
  perspective: 1300px;
  perspective-origin: 50% 18%;
}

.membership-orbit-floor {
  position: absolute;
  top: 56%;
  left: 50%;
  width: min(92%, 760px);
  aspect-ratio: 3 / 1;
  border: 1px solid color-mix(in srgb, var(--orbit-accent, #e5be50) 45%, transparent);
  border-radius: 50%;
  background: radial-gradient(ellipse, color-mix(in srgb, var(--orbit-accent, #e5be50) 16%, transparent), transparent 70%);
  transform: translate(-50%, -50%) rotateX(70deg);
  transition: border-color .8s ease, background .8s ease;
}

.membership-orbit .membership-orbit-ring {
  display: block;
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transform: translateZ(calc(var(--orbit-radius, 300px) * -1)) rotateX(-8deg);
}

.membership-orbit .membership-card {
  position: absolute;
  top: 50%;
  left: 50%;
  width: var(--orbit-card-w);
  min-height: 0;
  height: var(--orbit-card-h);
  margin: calc(var(--orbit-card-h) / -2) 0 0 calc(var(--orbit-card-w) / -2);
  justify-self: auto;
  grid-column: auto;
  animation: none;
  transition: transform 1s cubic-bezier(.25, .8, .25, 1), opacity .8s ease, filter .8s ease;
}

.membership-orbit .membership-card:focus-visible { outline: 3px solid var(--orbit-accent, #e5be50); outline-offset: 5px; border-radius: 18px; }
.membership-orbit .membership-card-face { padding: clamp(14px, 1.6vw, 22px); }
/* The front card still flips like before, but only to show its benefits: the panel holds the term and Select. */
.membership-orbit .membership-flip-prompt,
.membership-orbit .membership-card-back :is(.membership-duration, [data-membership-plan]) { display: none; }
.membership-orbit .membership-card-back { cursor: pointer; }
.membership-orbit .membership-card-back ul { gap: 3px; margin: 0; font-size: clamp(.64rem, .8vw, .78rem); line-height: 1.35; }
.membership-orbit .membership-card h3 { font-size: clamp(1.25rem, 2.1vw, 1.9rem); }
.membership-orbit .membership-price { font-size: clamp(1rem, 1.6vw, 1.45rem); }
.membership-orbit .membership-tier-number { font-size: clamp(.7rem, .9vw, .9rem); }
.membership-orbit .membership-card-front .membership-emblem { top: clamp(30px, 3.6vw, 48px); right: clamp(14px, 1.6vw, 22px); width: clamp(46px, 5vw, 80px); }
.membership-orbit .membership-card.is-orbit-front .membership-card-face {
  box-shadow: 0 26px 54px rgba(0, 0, 0, .34), 0 0 0 1px var(--plan-accent);
}

.membership-orbit-controls { display: flex; justify-content: center; gap: 12px; }

.membership-orbit-arrow,
.membership-orbit-spin {
  display: inline-flex;
  min-width: 48px;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--line, rgba(206, 219, 236, .3));
  border-radius: 999px;
  color: var(--ink, #edf1f6);
  background: var(--surface, rgba(15, 25, 41, .6));
  font: 700 .82rem/1 Arial, Helvetica, sans-serif;
  letter-spacing: .06em;
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease;
}

.membership-orbit-spin { padding: 0 20px; }
.membership-orbit-arrow svg,
.membership-orbit-spin svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.membership-orbit-arrow:is(:hover, :focus-visible),
.membership-orbit-spin:is(:hover, :focus-visible) { border-color: var(--accent, #b7c9e0); }

.membership-orbit-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: clamp(22px, 2.6vw, 32px);
  border: 1px solid var(--line, rgba(206, 219, 236, .26));
  border-radius: 22px;
  color: var(--ink, #edf1f6);
  background: var(--surface, rgba(255, 255, 255, .05));
  box-shadow: var(--theme-shadow, 0 16px 44px rgba(0, 0, 0, .2));
}

.membership-orbit-series,
.membership-orbit-label {
  margin: 0;
  color: var(--ink-soft, #b2bdcc);
  font: 700 .72rem/1.2 Arial, Helvetica, sans-serif;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.membership-orbit-name { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.1rem, 3.2vw, 2.8rem); font-weight: 400; line-height: 1; }
.membership-orbit-price { margin: 0; font-size: 1.7rem; font-weight: 800; }
.membership-orbit-price small { margin-left: 4px; color: var(--ink-soft, #b2bdcc); font-size: .8rem; font-weight: 600; letter-spacing: .06em; }

.membership-orbit-term {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line, rgba(206, 219, 236, .3));
  border-radius: 999px;
}

.membership-orbit-term button {
  min-height: 44px;
  border: 0;
  border-radius: 999px;
  color: var(--ink, #edf1f6);
  background: transparent;
  font: 700 .9rem/1 Arial, Helvetica, sans-serif;
  cursor: pointer;
  transition: background .2s ease, color .2s ease;
}

.membership-orbit-term button[aria-pressed="true"] { color: var(--on-accent, #112440); background: var(--accent, #b7c9e0); }

.membership-orbit-benefits { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.membership-orbit-benefits li { display: flex; align-items: center; gap: 10px; font-size: 1rem; }
.membership-orbit-benefits li::before { content: "✓"; color: var(--accent-text, #b7c9e0); font-weight: 800; }

.membership-orbit-select {
  min-height: 52px;
  margin-top: 6px;
  border: 0;
  border-radius: 999px;
  color: var(--on-accent, #112440);
  background: var(--accent, #b7c9e0);
  font: 800 1rem/1 Arial, Helvetica, sans-serif;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
}

.membership-orbit-select:is(:hover, :focus-visible) { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(9, 18, 32, .22); }

@media (max-width: 900px) {
  .membership-orbit { grid-template-columns: minmax(0, 1fr); }
  .membership-orbit { --orbit-card-w: clamp(200px, 56vw, 320px); }
  .membership-orbit-stage { perspective: 760px; }
  .membership-orbit .membership-card-back { gap: 6px; padding: 12px 14px; }
  .membership-orbit .membership-back-heading { padding-bottom: 6px; }
  .membership-orbit .membership-back-heading h3 { font-size: 1rem; }
  .membership-orbit .membership-back-price { font-size: .85rem; }
  .membership-orbit .membership-back-heading small { display: none; }
  .membership-orbit .membership-card-back ul { gap: 1px; font-size: .6rem; line-height: 1.25; }
  .membership-orbit .membership-card-back li { padding-left: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  .membership-orbit .membership-card,
  .membership-orbit-floor,
  .membership-orbit-select { transition: none; }
}

/* AI Visualiser (visualiser.html, visualiser.js): members photograph a space and see it renovated by AI. The panels
   reuse the call back form's card, so they follow the light and dark themes. */
/* As wide as the header, so the question and the summary of choices sit side by side with room to spare. */
.visualiser-shell { display: grid; gap: clamp(22px, 3vw, 32px); width: min(calc(100% - 48px), 1760px); max-width: none; }
.visualiser-heading h1 { margin: 0; font-size: clamp(2.4rem, 4vw, 3.6rem); line-height: 1.08; }
.visualiser-heading .dashboard-intro { max-width: 720px; margin: 16px 0 0; font-size: clamp(1.02rem, 1.5vw, 1.25rem); }
.visualiser-loading { color: var(--ink-soft); }
.visualiser-page [hidden] { display: none !important; }

.visualiser-gate { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(22px, 4vw, 44px); align-items: center; }
.visualiser-gate h2 { margin: 0 0 10px; font: 400 clamp(1.5rem, 2.6vw, 2rem) Georgia, serif; }
.visualiser-gate p { margin: 0; color: var(--ink-soft); line-height: 1.6; }
.visualiser-gate-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.visualiser-gate-actions .primary-button { margin-top: 0; }
.visualiser-sample { margin: 0; }
.visualiser-sample figcaption { margin-top: 8px; color: var(--ink-soft); font-size: .78rem; }
.visualiser-sample-art { display: block; width: 100%; height: 100%; }

.visualiser-secondary { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 20px; border: 1px solid var(--line); color: var(--ink); background: transparent; font: 700 .76rem/1 Arial, Helvetica, sans-serif; letter-spacing: .1em; text-decoration: none; text-transform: uppercase; cursor: pointer; }
.visualiser-secondary:is(:hover, :focus-visible) { border-color: var(--accent); }

/* Before/after: the "before" layer sits over the "after" picture, cut back by the range input on top. */
.visualiser-compare { position: relative; overflow: hidden; aspect-ratio: 8 / 5; margin: 0; border-radius: 14px; background: #0f1929; user-select: none; }
.visualiser-compare > img, .visualiser-compare > svg, .visualiser-compare-before { position: absolute; inset: 0; width: 100%; height: 100%; }
.visualiser-compare img { display: block; width: 100%; height: 100%; object-fit: cover; }
/* The result takes the shape of the member's photo (set by visualiser.js), as tall as fits on screen. */
.visualiser-compare.is-result { margin-inline: auto; max-width: 100%; }
.visualiser-compare-before { box-shadow: 2px 0 0 #fff; }
.visualiser-compare-before > * { position: absolute; inset: 0; }
.visualiser-compare-label { position: absolute; top: 12px; padding: 5px 10px; border-radius: 999px; color: #fff; background: rgba(9, 18, 32, .7); font-size: .7rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; pointer-events: none; }
.visualiser-compare-label.is-before { left: 12px; }
.visualiser-compare-label.is-after { right: 12px; }
.callback-form .visualiser-compare-range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; padding: 0; opacity: 0; cursor: ew-resize; }
.visualiser-compare:has(.visualiser-compare-range:focus-visible) { outline: 3px solid var(--accent); outline-offset: 3px; }

.visualiser-form { display: grid; gap: 18px; }
.visualiser-allowance { margin: 0; color: var(--ink-soft); font-size: .82rem; font-weight: 700; }

/* One question at a time, with what they've chosen so far beside it (under it on a phone: see the media query below). */
.visualiser-flow { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 340px); gap: clamp(22px, 3vw, 44px); align-items: start; }
.visualiser-question { display: grid; gap: 22px; min-width: 0; scroll-margin-top: 110px; }
.visualiser-progress { display: grid; gap: 8px; }
.visualiser-progress p { margin: 0; color: var(--ink-soft); font-size: .76rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.visualiser-progress-track { height: 4px; overflow: hidden; border-radius: 999px; background: var(--line); }
.visualiser-progress-track span { display: block; height: 100%; border-radius: inherit; background: #c19b36; transition: width .2s ease; }

.visualiser-step { display: grid; gap: 18px; align-content: start; min-width: 0; }
.visualiser-step h2 { margin: 0; font: 400 clamp(1.5rem, 2.6vw, 2.1rem)/1.2 Georgia, serif; }
.visualiser-step h2:focus { outline: none; }
.visualiser-step h3 { margin: 0; color: var(--ink); font: 700 .8rem Arial, Helvetica, sans-serif; }
.visualiser-step-hint { margin: -8px 0 0; color: var(--ink-soft); font-size: .9rem; line-height: 1.5; }

.visualiser-choice-group { display: grid; gap: 10px; }
.visualiser-colour-groups { display: grid; gap: 22px; }
.visualiser-choices { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 10px; }
.visualiser-choices.is-colours { grid-template-columns: repeat(auto-fill, minmax(min(100%, 120px), 1fr)); }
.visualiser-choice { display: flex; align-items: center; gap: 10px; min-height: 54px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); background: transparent; font: 400 .9rem/1.3 Arial, Helvetica, sans-serif; text-align: left; cursor: pointer; transition: border-color .15s ease, background-color .15s ease; }
.visualiser-choice small { display: block; margin-top: 3px; color: var(--ink-soft); font-size: .76rem; }
.visualiser-choice:hover { border-color: #c19b36; }
.visualiser-choice:focus-visible, .visualiser-summary-row:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.visualiser-choice[aria-pressed="true"] { border-color: #c19b36; background: color-mix(in srgb, #c19b36 18%, transparent); box-shadow: inset 0 0 0 1px #c19b36; }
.visualiser-swatch { display: inline-block; flex-shrink: 0; width: 26px; height: 26px; border: 1px solid color-mix(in srgb, var(--ink) 35%, transparent); border-radius: 50%; }

.callback-form .visualiser-chip { position: relative; display: inline-flex; cursor: pointer; font-size: .86rem; }
.callback-form .visualiser-chip input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.visualiser-chip span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; transition: border-color .15s ease, background-color .15s ease; }
.visualiser-chip input:checked + span { border-color: #c19b36; background: color-mix(in srgb, #c19b36 18%, transparent); box-shadow: inset 0 0 0 1px #c19b36; }
.visualiser-chip input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.visualiser-chips { display: flex; flex-wrap: wrap; gap: 8px; }

.visualiser-nav { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.visualiser-nav .primary-button { margin-top: 0; margin-left: auto; min-height: 48px; cursor: pointer; }

.visualiser-side { position: sticky; top: 110px; min-width: 0; }
.visualiser-summary { display: grid; gap: 12px; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-soft); }
.visualiser-summary h2 { margin: 0; font: 400 1.2rem Georgia, serif; }
.visualiser-summary ol { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.visualiser-summary-row { display: grid; gap: 3px; width: 100%; padding: 9px 10px; border: 0; border-left: 3px solid transparent; border-radius: 6px; color: var(--ink); background: transparent; font: inherit; text-align: left; cursor: pointer; }
.visualiser-summary-row:hover:not(:disabled) { background: color-mix(in srgb, #c19b36 12%, transparent); }
.visualiser-summary-row:disabled { cursor: default; opacity: .65; }
.visualiser-summary-row[aria-current="step"] { border-left-color: #c19b36; }
.visualiser-summary-label { color: var(--ink-soft); font-size: .72rem; font-weight: 700; }
.visualiser-summary-value { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: .9rem; font-weight: 700; overflow-wrap: anywhere; }
.visualiser-summary-value.is-empty { color: var(--ink-soft); font-weight: 400; }
.visualiser-summary-value img { display: block; width: 72px; height: 54px; border-radius: 6px; object-fit: cover; }
.visualiser-summary-colour { display: flex; align-items: center; gap: 8px; width: 100%; }
.visualiser-summary-colour .visualiser-swatch { width: 16px; height: 16px; }
@media (prefers-reduced-motion: reduce) { .visualiser-progress-track span, .visualiser-choice { transition: none; } }

/* Empty, a 4:3 frame to aim for; with a photo, the photo's own shape (never cropped), up to 75% of the screen tall. */
.visualiser-photo { display: grid; place-items: center; width: min(100%, 640px); aspect-ratio: 4 / 3; overflow: hidden; border: 1px dashed var(--line); border-radius: 14px; background: color-mix(in srgb, var(--paper) 55%, transparent); }
.visualiser-photo:has(img:not([hidden])) { aspect-ratio: auto; border: 0; background: transparent; }
.visualiser-photo img { display: block; width: auto; max-width: 100%; height: auto; max-height: 75vh; object-fit: contain; border-radius: 14px; }
.visualiser-photo-empty { display: grid; justify-items: center; gap: 8px; max-width: 260px; padding: 20px; color: var(--ink-soft); text-align: center; font-size: .85rem; }
.visualiser-photo-empty svg { width: 42px; height: 42px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linejoin: round; }
.visualiser-photo-empty p { margin: 0; }
.visualiser-photo-buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.visualiser-photo-buttons .primary-button { margin-top: 0; }
.callback-form label.visualiser-file { position: relative; display: inline-flex; align-items: center; cursor: pointer; font-size: .76rem; }
.callback-form .visualiser-file input { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; opacity: 0; cursor: pointer; }
.callback-form .visualiser-file:focus-within { outline: 3px solid var(--accent); outline-offset: 3px; }
.callback-form label.visualiser-consent { display: flex; align-items: flex-start; gap: 10px; color: var(--ink-soft); font-size: .8rem; font-weight: 400; line-height: 1.5; }
.callback-form .visualiser-consent input { width: 20px; height: 20px; flex-shrink: 0; margin-top: 1px; padding: 0; accent-color: #c19b36; }
.visualiser-generate { justify-self: start; margin-top: 0; border: 0; cursor: pointer; }
.visualiser-status { flex: 1 0 100%; margin: 0; color: var(--ink); font-size: .86rem; font-weight: 700; }
.visualiser-status:empty { display: none; }
.visualiser-disclaimer { margin: 0; color: var(--ink-soft); font-size: .78rem; }

/* Once a photo is chosen: it shows whole on the left, in its own shape, and stays there while the questions on the right
   scroll. The frame takes the photo's shape, so any picture fits; a small one stays its real size. Their choices sit under it. */
html[data-theme] body #main-content > .visualiser-page.is-photo-layout { min-height: 0; padding: calc(var(--site-header-height, 98px) + 8px) 0 0; }
.is-photo-layout .visualiser-shell { width: 100%; gap: 0; }
.is-photo-layout .visualiser-heading { display: none; }
html[data-theme] .is-photo-layout .visualiser-form { padding: 0; border: 0; border-radius: 0; box-shadow: none; }
.is-photo-layout .visualiser-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; }
.is-photo-layout .visualiser-side { grid-area: 1 / 1; top: calc(var(--site-header-height, 98px) + 8px); height: calc(100svh - var(--site-header-height, 98px) - 8px); display: flex; flex-direction: column; gap: 14px; box-sizing: border-box; padding: clamp(16px, 2vw, 28px); overflow: hidden; border-right: 1px solid var(--line); }
/* The question scrolls on its own beside the photo, so the page stays still. Back and Next stay in reach at the bottom, on the left clear of the Ask Us button. */
.is-photo-layout .visualiser-question { grid-area: 1 / 2; align-content: start; gap: 18px; height: calc(100svh - var(--site-header-height, 98px) - 8px); overflow-y: auto; overscroll-behavior: contain; scroll-margin-top: calc(var(--site-header-height, 98px) + 8px); box-sizing: border-box; padding: clamp(20px, 2vw, 30px) clamp(24px, 4vw, 64px) 0; }
.is-photo-layout .visualiser-flow, .is-photo-layout .visualiser-question { background: inherit; }
.is-photo-layout .visualiser-nav { position: sticky; bottom: 0; z-index: 1; justify-content: flex-start; padding-block: 12px; border-top: 1px solid var(--line); background: inherit; }
.is-photo-layout .visualiser-nav .primary-button { margin-left: 0; }
.is-photo-layout .visualiser-choices:not(.is-colours) { grid-template-columns: minmax(0, 1fr); gap: 8px; }
.is-photo-layout .visualiser-choices:not(.is-colours) .visualiser-choice { min-height: 48px; padding-block: 10px; }
.visualiser-chosen { margin: 0; }
.is-photo-layout .visualiser-chosen { flex: 1 1 0; min-height: 0; display: flex; align-items: center; justify-content: center; }
.visualiser-chosen img { display: block; width: auto; height: auto; max-width: 100%; max-height: 100%; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 14px 34px rgba(4, 12, 24, .28); }
.is-photo-layout .visualiser-summary { flex: 0 0 auto; grid-template-columns: minmax(0, 1fr); max-height: 40%; overflow-y: auto; gap: 8px; padding: 12px 14px; border-radius: 12px; }
.is-photo-layout .visualiser-summary h2 { font-size: 1.1rem; }
.is-photo-layout .visualiser-summary ol { display: flex; flex-wrap: wrap; gap: 8px; }
.is-photo-layout .visualiser-summary li:has(.is-empty) { display: none; }
.is-photo-layout .visualiser-summary-row { position: relative; display: flex; width: auto; min-height: 34px; align-items: center; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; }
.is-photo-layout .visualiser-summary-row[aria-current="step"] { border-color: #d4af37; }
.is-photo-layout .visualiser-summary-row:hover:not(:disabled) { border-color: #d4af37; background: transparent; }
.is-photo-layout .visualiser-summary-row:disabled { opacity: 1; }
/* The label stays for screen readers; on the photo the answer speaks for itself. */
.is-photo-layout .visualiser-summary-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.is-photo-layout .visualiser-summary-value { font-size: .82rem; font-weight: 400; }
.is-photo-layout .visualiser-summary-value img { display: none; }
.is-photo-layout .visualiser-summary-colour { width: auto; }
@media (max-width: 860px) {
  /* On a phone: the photo on top, one line of labels under it to swipe through, then the question. */
  .is-photo-layout .visualiser-flow { grid-template-columns: minmax(0, 1fr); }
  .is-photo-layout .visualiser-side { grid-area: 1 / 1; height: auto; padding: 16px 16px 0; overflow: visible; border-right: 0; }
  .is-photo-layout .visualiser-chosen { flex: none; }
  .is-photo-layout .visualiser-chosen img { max-height: clamp(200px, 42svh, 380px); }
  .is-photo-layout .visualiser-summary { position: static; max-height: none; overflow: visible; padding: 10px 12px; }
  .is-photo-layout .visualiser-summary h2 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .is-photo-layout .visualiser-summary ol { flex-wrap: nowrap; overflow-x: auto; }
  .is-photo-layout .visualiser-summary li { flex: 0 0 auto; }
  .is-photo-layout .visualiser-summary-value { flex-wrap: nowrap; white-space: nowrap; }
  .is-photo-layout .visualiser-question { grid-area: 2 / 1; height: auto; overflow: visible; overscroll-behavior: auto; padding: 22px 16px 32px; }
  .is-photo-layout .visualiser-nav { position: static; justify-content: space-between; padding-block: 0; border-top: 0; }
  .is-photo-layout .visualiser-nav .primary-button { margin-left: auto; }
}

/* While the picture is made: the photo in the centre of a dimmed screen, blurring as if it's being edited. */
.visualiser-working { position: fixed; inset: 0; z-index: 9000; display: grid; place-content: center; justify-items: center; grid-template-columns: minmax(0, min(1100px, 100vw - 32px)); gap: 12px; padding: 16px 0; color: #fff; text-align: center; background: rgba(6, 12, 22, .86); backdrop-filter: blur(6px); animation: visualiser-stage-in .35s ease-out both; }
.visualiser-working[hidden] { display: none; }
.visualiser-working p { margin: 8px 0 0; font: 400 clamp(1.2rem, 2vw, 1.5rem) Georgia, serif; }
.visualiser-working small { color: rgba(255, 255, 255, .72); }
.visualiser-stage { position: relative; overflow: hidden; border-radius: 16px; background: #0b1524; box-shadow: 0 24px 70px rgba(0, 0, 0, .55), 0 0 0 1px rgba(224, 184, 74, .55); animation: visualiser-stage-glow 2.4s ease-in-out infinite alternate; }
.visualiser-stage img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
.visualiser-stage img[hidden] { display: none; }
/* Sharp as it lands, then blurring out and stirring until the new picture is ready. Scaled up so the blur has no soft edge. */
.visualiser-stage-before { animation: visualiser-blur-out 3.5s ease-in .5s both, visualiser-blur-stir 2.8s ease-in-out 4s infinite alternate; }
.visualiser-stage-after { animation: visualiser-sharpen 1.1s ease-out both; }
.visualiser-stage-sweep { position: absolute; inset: 0 auto 0 0; width: 35%; background: linear-gradient(100deg, transparent, rgba(255, 226, 150, .34), transparent); animation: visualiser-sweep 2.6s ease-in-out infinite; }
.is-done .visualiser-stage { animation: none; }
.is-done .visualiser-stage-sweep { display: none; }
@keyframes visualiser-stage-in { from { opacity: 0; } }
@keyframes visualiser-stage-glow { to { box-shadow: 0 24px 70px rgba(0, 0, 0, .55), 0 0 34px 2px rgba(224, 184, 74, .5); } }
@keyframes visualiser-blur-out { from { filter: blur(0); transform: scale(1); } to { filter: blur(14px) saturate(1.1); transform: scale(1.08); } }
@keyframes visualiser-blur-stir { from { filter: blur(14px) saturate(1.1); transform: scale(1.08); } to { filter: blur(20px) saturate(1.3) brightness(1.08); transform: scale(1.11); } }
@keyframes visualiser-sharpen { from { opacity: 0; filter: blur(18px); transform: scale(1.06); } to { opacity: 1; filter: blur(0); transform: scale(1); } }
@keyframes visualiser-sweep { from { transform: translateX(-110%); } to { transform: translateX(300%); } }

.visualiser-result { display: grid; gap: 16px; scroll-margin-top: calc(var(--site-header-height, 98px) + 16px); }
.visualiser-result h2 { margin: 0; font: 400 clamp(1.5rem, 2.6vw, 2rem) Georgia, serif; }
.visualiser-result h2:focus { outline: none; }
.visualiser-result-summary { margin: 0; color: var(--ink-soft); font-weight: 700; }
.visualiser-result-actions { display: flex; flex-wrap: wrap; gap: 12px; }
/* The picture, with the list of changes beside it (under it on a phone). The spotlight dims all but the chosen change. */
.visualiser-result-layout { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: center; gap: clamp(20px, 3vw, 36px); }
.visualiser-result-layout .visualiser-compare.is-result { flex: 0 1 auto; margin-inline: 0; }
.visualiser-spotlight { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.visualiser-spotlight-dim { fill: rgba(8, 14, 26, .72); }
.visualiser-spotlight-outline { fill: none; stroke: #e0b84a; stroke-width: 3; vector-effect: non-scaling-stroke; }
.visualiser-highlights { flex: 1 1 280px; display: grid; gap: 10px; max-width: 480px; min-width: 0; }
.visualiser-highlights h3 { margin: 0; font: 400 1.3rem Georgia, serif; }
.visualiser-highlight-hint { margin: 0; color: var(--ink-soft); font-size: .86rem; line-height: 1.5; }
.visualiser-highlight-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.visualiser-highlight { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; box-sizing: border-box; padding: 8px 14px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); background: transparent; font: inherit; text-align: left; }
button.visualiser-highlight { cursor: pointer; }
button.visualiser-highlight:hover { border-color: #c19b36; }
button.visualiser-highlight:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.visualiser-highlight[aria-pressed="true"] { border-color: #c19b36; background: color-mix(in srgb, #c19b36 18%, transparent); box-shadow: inset 0 0 0 1px #c19b36; }
.visualiser-highlight > span:last-child { display: grid; gap: 2px; min-width: 0; overflow-wrap: anywhere; }
.visualiser-highlight small { color: var(--ink-soft); font-size: .76rem; }
.visualiser-highlight strong { font-size: .92rem; }
.visualiser-result-actions .primary-button { margin-top: 0; border: 0; cursor: pointer; }

@media (max-width: 860px) {
  .visualiser-gate, .visualiser-flow { grid-template-columns: minmax(0, 1fr); }
  .visualiser-side { position: static; }
  .visualiser-generate, .visualiser-result-actions > * { width: 100%; justify-content: center; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  /* Still blurred so they can see it's working, but nothing moves. */
  .visualiser-working, .visualiser-stage { animation: none; }
  .visualiser-stage-before { animation: none; filter: blur(10px); transform: scale(1.06); }
  .visualiser-stage-sweep { display: none; }
}

/* A service page's link to the AI Visualiser, under the intro. */
.detail-visualise { display: inline-flex; align-items: center; gap: 12px; margin-top: 26px; padding: 12px 20px 12px 14px; border: 1px solid #c19b36; border-radius: 14px; color: #ffffff; background: rgba(8, 19, 35, .62); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); text-decoration: none; transition: background-color .18s ease, color .18s ease; }
.detail-visualise svg { width: 26px; height: 26px; flex-shrink: 0; fill: #c19b36; }
.detail-visualise > span { display: block; font-size: .9rem; font-weight: 700; letter-spacing: .04em; text-align: left; }
.detail-visualise small { display: block; margin-top: 2px; color: rgba(255, 255, 255, .78); font-size: .72rem; font-weight: 400; letter-spacing: 0; }
.detail-visualise:hover, .detail-visualise:focus-visible { color: #081323; background: #c19b36; }
.detail-visualise:hover svg, .detail-visualise:focus-visible svg { fill: #081323; }
.detail-visualise:hover small, .detail-visualise:focus-visible small { color: #081323; }
.detail-visualise:focus-visible { outline: 2px solid #ffffff; outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .detail-visualise { transition: none; } }

/* Membership: the line pointing members to the AI Visualiser. */
.membership-visualiser-link { max-width: 650px; margin: 12px 0 0; color: var(--ink-soft); font-size: .95rem; line-height: 1.6; }
.membership-visualiser-link a { color: inherit; font-weight: 700; text-decoration-color: #c19b36; text-decoration-thickness: 2px; text-underline-offset: 4px; }

/* The header's AI Visualiser button: a picture with a gold spark, beside the light/dark switch. */
.nav-visualiser { position: relative; display: grid; width: 40px; height: 40px; flex: 0 0 auto; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--ink); background: transparent; transition: color 180ms ease, background 180ms ease, border-color 180ms ease; }
.nav-visualiser svg { width: 20px; height: 20px; }
.nav-visualiser .nav-visualiser-spark { position: absolute; top: -3px; right: -3px; width: 14px; height: 14px; fill: #d4af37; filter: drop-shadow(0 0 3px rgba(212, 175, 55, .55)); }
.nav-visualiser:hover, .nav-visualiser[aria-current="page"] { border-color: #d4af37; color: #d4af37; background: var(--surface); }
.nav-visualiser:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
@media (prefers-reduced-motion: no-preference) {
  .nav-visualiser .nav-visualiser-spark { animation: nav-visualiser-twinkle 2.6s ease-in-out infinite; }
  @keyframes nav-visualiser-twinkle { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(.7) rotate(20deg); opacity: .7; } }
}
@media (max-width: 860px) { .nav-visualiser { width: 38px; height: 38px; } }

/* Updates: the body text, an optional picture under it, and the "Show more updates" button for older ones. */
.update-image { margin: 6px 0 0; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-soft, #e0e5eb); }
.update-image img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.updates-more { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; margin-top: 22px; padding: 0 22px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); background: var(--surface); font: 700 .78rem/1 Arial, Helvetica, sans-serif; letter-spacing: .1em; text-transform: uppercase; cursor: pointer; transition: border-color .2s ease, color .2s ease; }
.updates-more svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s ease; }
.updates-more[aria-expanded="true"] svg { transform: rotate(180deg); }
.updates-more:is(:hover, :focus-visible) { border-color: #d4af37; color: #d4af37; }
@media (prefers-reduced-motion: reduce) { .updates-more, .updates-more svg { transition: none; } }
.update-image figcaption { padding: 8px 12px; color: var(--ink-soft); font-size: .76rem; }

/* Updates: one before and after as the feature, beside a list of headlines that open when clicked. */
/* As wide as the window allows, with the section number above the heading so its column isn't left empty. */
#updates > .content-shell { grid-template-columns: minmax(0, 1fr); gap: 20px; width: min(calc(100% - clamp(32px, 2.5vw, 48px)), 1880px); }
#updates .section-number { width: 90px; margin: 0; }
.update-list { display: flex; flex-wrap: wrap; align-items: flex-start; gap: clamp(24px, 3vw, 36px); }
.update-feature { flex: 3 1 460px; min-width: 0; display: flex; flex-wrap: wrap; gap: 24px; padding: clamp(18px, 2.4vw, 28px); border: 1px solid rgba(212, 175, 55, .55); border-radius: 18px; background: var(--surface); box-shadow: 0 10px 28px rgba(13, 25, 43, .08); box-sizing: border-box; }
/* Larger on a wide window, but never taller than about three quarters of the screen. */
.update-feature-pictures { flex: 3 1 320px; min-width: 0; max-width: max(460px, 56vh); }
.update-feature-text { flex: 2 1 240px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.update-feature-text h3 { margin: 0; font: 400 clamp(1.4rem, 2.2vw, 1.75rem)/1.25 Georgia, serif; text-wrap: balance; }
.update-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 0; color: var(--ink-soft); font-size: .78rem; }
.update-meta time { margin-left: auto; }
.update-kind { padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px; font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.update-body { margin: 0; color: var(--ink-soft); line-height: 1.65; white-space: pre-line; overflow-wrap: anywhere; }
.update-examples { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 8px; }
.update-examples button { min-height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); background: transparent; font: 700 .86rem Arial, Helvetica, sans-serif; cursor: pointer; }
.update-examples button:hover { border-color: #c19b36; }
.update-examples button:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.update-examples button[aria-pressed="true"] { border-color: #c19b36; background: color-mix(in srgb, #c19b36 18%, transparent); box-shadow: inset 0 0 0 1px #c19b36; }
.update-compare-info { display: grid; gap: 8px; }
.update-compare-title { margin: 0; color: var(--ink); font: 400 1.05rem/1.3 Georgia, serif; }
.update-news { flex: 2 1 320px; min-width: 0; padding: clamp(18px, 2.4vw, 28px); border: 1px solid var(--line); border-radius: 18px; background: var(--surface); box-shadow: 0 10px 28px rgba(13, 25, 43, .08); box-sizing: border-box; }
.update-news h3 { margin: 0 0 8px; font: 400 1.3rem Georgia, serif; }
.update-row { border-top: 1px solid var(--line); }
.update-row:first-child { border-top: 0; }
.update-row[hidden] { display: none; }
.update-row summary { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; min-height: 44px; padding: 12px 0; color: var(--ink); cursor: pointer; list-style: none; }
.update-row summary::-webkit-details-marker { display: none; }
.update-row summary:hover .update-row-title { color: var(--accent-text); }
.update-row summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.update-row-heading { display: grid; gap: 4px; min-width: 0; }
.update-row-title { font: 400 1.05rem/1.3 Georgia, serif; overflow-wrap: anywhere; }
.update-row-star { margin-right: 6px; color: #b38f24; }
.update-row-heading small { color: var(--ink-soft); font-size: .78rem; }
.update-row-sign { flex: none; color: var(--ink-soft); font-size: 1.3rem; line-height: 1; }
.update-row-sign::before { content: "+"; }
.update-row[open] .update-row-sign::before { content: "\2212"; }
.update-row-body { display: grid; gap: 12px; padding-bottom: 16px; }
.update-news .updates-more { margin-top: 14px; }
@media (max-width: 560px) {
  .update-feature, .update-news { padding: 16px; }
  .update-feature-pictures { max-width: none; }
}

/* An update's before and after: the "before" picture sits over the "after", cut back by the slider on top (site.js). */
.update-compare[hidden], .update-compare-info[hidden] { display: none; }
.update-compare { --compare: 50%; position: relative; overflow: hidden; aspect-ratio: 3 / 4; border-radius: 14px; background: #0f1929; user-select: none; }
.update-compare img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
.update-compare-before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--compare)) 0 0); }
.update-compare-label { position: absolute; top: 12px; padding: 5px 10px; border-radius: 999px; color: #fff; background: rgba(9, 18, 32, .7); font-size: .7rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; pointer-events: none; }
.update-compare-label.is-before { left: 12px; }
.update-compare-label.is-after { right: 12px; }
.update-compare-handle { position: absolute; top: 0; bottom: 0; left: var(--compare); width: 2px; background: #fff; transform: translateX(-1px); pointer-events: none; }
.update-compare-handle::after { content: "\2194"; position: absolute; top: 50%; left: 50%; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: #14202e; background: #fff; box-shadow: 0 2px 10px rgba(9, 18, 32, .45); font-size: 1.1rem; line-height: 1; transform: translate(-50%, -50%); }
/* touch-action lets a finger still scroll the page up and down over the picture. */
.update-compare-range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; padding: 0; opacity: 0; cursor: ew-resize; touch-action: pan-y; }
.update-compare:has(.update-compare-range:focus-visible) { outline: 3px solid var(--accent); outline-offset: 3px; }
.update-compare-details { display: grid; gap: 6px; margin: 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-soft); font-size: .86rem; }
.update-compare-details > div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 12px; }
.update-compare-details dt { color: var(--ink-soft); }
.update-compare-details dd { margin: 0; color: var(--ink); font-weight: 700; }

/* On computers the whole of Updates fits in the window: the picture takes the height that's left, and a long news list
   scrolls inside its own panel. On phones and small tablets it stacks and the page scrolls as normal. */
@media screen and (min-width: 1001px) {
  html[data-theme] body #main-content > #updates { box-sizing: border-box; height: 100dvh; min-height: 620px; padding-top: calc(var(--site-header-height, 98px) + 14px); padding-bottom: 14px; }
  #updates > .content-shell { height: 100%; grid-template-rows: auto minmax(0, 1fr); gap: 8px; }
  #updates > .content-shell > div { display: flex; flex-direction: column; min-height: 0; }
  #updates .eyebrow { margin-bottom: 4px; }
  #updates h2 { font-size: clamp(2rem, 5.2vh, 3rem); }
  #updates .dashboard-intro { max-width: none; margin: 6px 0 0; font-size: clamp(.95rem, 2vh, 1.15rem); line-height: 1.35; }
  .update-list { flex: 1 1 0; flex-wrap: nowrap; align-items: stretch; gap: clamp(16px, 1.6vw, 24px); min-height: 0; margin-top: 14px; }
  .update-feature { flex: 3 1 0; flex-wrap: nowrap; gap: clamp(14px, 1.4vw, 22px); min-height: 0; padding: clamp(14px, 1.3vw, 20px); }
  .update-feature-pictures { flex: none; height: 100%; aspect-ratio: 3 / 4; max-width: 46%; }
  .update-compare { height: 100%; aspect-ratio: auto; }
  .update-feature-text { flex: 1 1 0; gap: 10px; overflow-y: auto; }
  .update-feature-text h3 { font-size: clamp(1.2rem, 2.6vh, 1.6rem); }
  .update-body { font-size: .9rem; line-height: 1.5; }
  .update-compare-details { gap: 3px; padding: 8px 12px; font-size: .8rem; }
  .update-compare-note { font-size: .82rem; line-height: 1.4; }
  .update-news { flex: 2 1 0; min-height: 0; padding: clamp(14px, 1.3vw, 20px); overflow-y: auto; }
  .update-row summary { padding: 8px 0; }
}
/* Short laptop screens: tighter again, so the details still fit without scrolling. */
@media screen and (min-width: 1001px) and (max-height: 760px) {
  .update-feature-text { gap: 6px; }
  .update-body { font-size: .84rem; line-height: 1.42; }
  .update-compare-info { gap: 4px; }
  .update-compare-details { gap: 1px; padding: 6px 10px; font-size: .76rem; }
  .update-compare-note { font-size: .76rem; }
}

/* Side navbar on computers: the floating card stands on the left and the page moves over. Below this width the top
   bar and Menu button stay as they are. The arrow on its edge hides it, and theme.js remembers that across pages. */
.nav-hide,
.nav-mail { display: none; }
@media screen and (min-width: 1241px) {
  :root { --side-nav-width: 276px; --site-header-height: 0px; --page-left: var(--side-nav-width); }
  html[data-nav="hidden"] { --page-left: 72px; }
  body { padding-left: var(--page-left); }
  /* The logo section stays full width and the navbar slides over it: changing its size redraws the particles, which flickers. */
  .logo-showcase { margin-left: calc(-1 * var(--page-left)); }
  /* The headline and buttons stay centred in the space beside the navbar, not underneath it. */
  .logo-showcase .hero-copy { width: min(100% - 2 * var(--page-left), 860px); transition: width .28s ease; }

  [data-site-header] { right: auto; bottom: 0; width: var(--side-nav-width); padding: 16px 0 16px 16px; transition: transform .28s ease; view-transition-name: site-navbar; }
  html[data-nav="hidden"] [data-site-header] { transform: translateX(-100%); }
  .site-header { width: 100%; height: 100%; border-radius: 22px; transition: visibility .28s; }
  html[data-nav="hidden"] .site-header { visibility: hidden; }

  .nav-shell { width: 100%; height: 100%; min-height: 0; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 16px; padding: 20px 14px; overflow-y: auto; }
  .nav-brand-group { flex: none; padding: 0 10px 16px; border-bottom: 1px solid var(--line); }
  .nav-brand-group:has(.nav-back) { padding-left: 10px; }
  .nav-back { top: 10px; right: 10px; left: auto; width: 36px; height: 36px; transform: none; border-radius: 50%; }

  .primary-navigation { flex: none; margin-left: 0; }
  .primary-navigation ul { flex-direction: column; align-items: stretch; gap: 2px; }
  [data-site-header] .primary-navigation a { display: flex; min-height: 44px; padding: 0 14px; align-items: center; justify-content: space-between; gap: 8px; border-bottom: 0; border-radius: 999px; font-size: .75rem; letter-spacing: .1em; }
  [data-site-header] .primary-navigation a::after { content: ""; width: 7px; height: 7px; flex: none; border-radius: 50%; background: #d4af37; opacity: 0; }
  [data-site-header] .primary-navigation a[aria-current="page"]::after { opacity: 1; }
  [data-site-header] .primary-navigation a:hover,
  [data-site-header] .primary-navigation a:focus-visible,
  [data-site-header] .primary-navigation a[aria-current="page"] { background: color-mix(in srgb, var(--ink) 10%, transparent); }

  .nav-actions { flex-wrap: wrap; justify-content: center; margin-top: auto; gap: 10px; }
  .nav-actions .client-access-link { flex: 1 0 100%; min-height: 44px; justify-content: center; }
  .nav-actions form { flex: 1 0 100%; }
  .nav-actions .client-sign-out { width: 100%; min-height: 44px; }
  .nav-actions .nav-visualiser,
  .nav-actions .theme-toggle { width: 44px; height: 44px; }

  .nav-mail:not([hidden]) { position: relative; display: grid; width: 44px; height: 44px; flex: 0 0 auto; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--ink); transition: color 180ms ease, background 180ms ease, border-color 180ms ease; }
  .nav-mail svg { width: 20px; height: 20px; }
  .nav-mail:hover { border-color: #d4af37; color: #d4af37; background: var(--surface); }
  .nav-mail:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
  .nav-mail .mail-fab-count { position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px; }
  /* Mail is in the navbar, so the floating button only comes back while the navbar is hidden. */
  html:not([data-nav="hidden"]) .mail-fab { display: none; }

  /* Gold like the Explore button, so it's easy to find in either theme and over any section. */
  .nav-hide { --nudge: -3px; position: absolute; z-index: 1; top: 50%; left: calc(100% - 24px); display: grid; width: 48px; height: 48px; margin-top: -24px; padding: 0; place-items: center; border: 2px solid #f1dc94; border-radius: 50%; color: #14202e; background: #d4af37; box-shadow: 0 8px 20px rgba(4, 12, 24, .42), 0 0 16px rgba(212, 175, 55, .5); cursor: pointer; transition: left .28s ease, background-color 180ms ease, transform 180ms ease; }
  /* A ring pulses out from it, and the arrow nudges the way the navbar will go. Both only move transform and opacity, so they stay light. */
  .nav-hide::before { content: ""; position: absolute; inset: -2px; border: 2px solid #d4af37; border-radius: 50%; pointer-events: none; animation: nav-hide-pulse 2.2s ease-out infinite; }
  .nav-hide:hover { background: #e6c458; transform: scale(1.1); }
  .nav-hide:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
  .nav-hide svg { width: 24px; height: 24px; stroke-width: 2.6; transform: rotate(180deg); transition: transform .28s ease; animation: nav-hide-nudge 2.2s ease-in-out infinite; }
  html[data-nav="hidden"] .nav-hide { --nudge: 3px; left: calc(100% + 14px); }
  html[data-nav="hidden"] .nav-hide svg { transform: none; }
  /* Still while the navbar slides, or it's hovered and about to be clicked. */
  html[data-nav-moving] .nav-hide::before,
  html[data-nav-moving] .nav-hide svg,
  .nav-hide:hover::before,
  .nav-hide:hover svg { animation: none; opacity: 0; }
  .nav-hide:hover svg,
  html[data-nav-moving] .nav-hide svg { opacity: 1; }
  @keyframes nav-hide-pulse { 0% { transform: scale(1); opacity: .9; } 70%, 100% { transform: scale(1.65); opacity: 0; } }
  @keyframes nav-hide-nudge { 0%, 55%, 100% { translate: 0 0; } 25% { translate: var(--nudge) 0; } 40% { translate: 0 0; } }
}
/* Short laptop screens: closer links, so all of them fit without scrolling the navbar. */
@media screen and (min-width: 1241px) and (max-height: 820px) {
  [data-site-header] .primary-navigation a { min-height: 36px; }
  .nav-shell { gap: 12px; padding-block: 14px; }
  .nav-brand-group { padding-bottom: 10px; }
}
@media screen and (min-width: 1241px) and (prefers-reduced-motion: reduce) {
  [data-site-header], .site-header, .nav-hide, .nav-hide svg { transition: none; }
  .nav-hide::before { display: none; }
  .nav-hide svg { animation: none; }
}
/* While the navbar moves. Re-laying out the page on every frame looks stepped, so the page changes size once and the
   browser glides between pictures of the old and new layouts (site.js and atte-home-chrome.tsx start this). */
@media screen and (min-width: 1241px) {
  html[data-nav-moving] [data-site-header],
  html[data-nav-moving] .site-header,
  html[data-nav-moving] .nav-hide,
  html[data-nav-moving] .nav-hide svg { transition: none; }
  html[data-nav-moving] .site-header { visibility: visible; view-transition-name: atte-nav-card; }
  html[data-nav-moving] [data-site-header] { view-transition-name: none; }
  html[data-nav-moving] .nav-hide { view-transition-name: atte-nav-arrow; }
  html[data-nav-moving] #main-content,
  html[data-nav-moving] #client-content { view-transition-name: atte-page; }
  html[data-nav-moving] [data-site-footer],
  html[data-nav-moving] .atte-client-footer { view-transition-name: atte-footer; }

  ::view-transition-group(atte-nav-card),
  ::view-transition-group(atte-nav-arrow),
  ::view-transition-group(atte-page),
  ::view-transition-group(atte-footer) { animation-duration: 420ms; animation-timing-function: cubic-bezier(.22, .8, .24, 1); }
  /* The old and new pictures keep their real size, so nothing stretches. The old one leaves quickly before the new one
     arrives, so the two layouts are never clearly seen on top of each other. */
  ::view-transition-old(atte-page),
  ::view-transition-new(atte-page),
  ::view-transition-old(atte-footer),
  ::view-transition-new(atte-footer) { inline-size: auto; block-size: auto; animation-timing-function: ease-out; }
  ::view-transition-old(atte-page),
  ::view-transition-old(atte-footer) { animation-duration: 130ms; }
  ::view-transition-new(atte-page),
  ::view-transition-new(atte-footer) { animation-delay: 90ms; animation-duration: 300ms; }
}

/* Square, option B's guided steps: 1 choose, 2 review (these), 3 pay on Square's secure page. */
.square-review { display: grid; gap: 12px; margin-top: 16px; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: color-mix(in srgb, var(--paper) 70%, transparent); }
.square-review[hidden] { display: none; }
.square-review h3, .square-review-heading { margin: 0; font-size: 1rem; font-weight: 800; }
.square-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 0; padding: 0; list-style: none; counter-reset: square-step; }
.square-steps li { display: grid; gap: 6px; color: var(--ink-soft); font-size: .74rem; font-weight: 700; counter-increment: square-step; }
.square-steps li::before { content: ""; height: 4px; border-radius: 999px; background: var(--line); }
.square-steps li.is-done::before, .square-steps li.is-current::before { background: var(--accent); }
.square-steps li.is-current { color: inherit; }
.square-review-list { display: grid; gap: 0; margin: 0; }
.square-review-row { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: .9rem; }
.square-review-row dt, .square-review-row dd { margin: 0; }
.square-review-row dd { font-variant-numeric: tabular-nums; white-space: nowrap; }
.square-review-row.is-total { border-bottom: 0; font-weight: 800; font-size: 1rem; }
.square-review-row small { color: var(--ink-soft); font-weight: 500; }
.square-review-pay { justify-self: start; margin-top: 4px; }
.square-review-note { margin: 0; color: var(--ink-soft); font-size: .8rem; }
.square-field { display: grid; gap: 6px; margin-top: 10px; font-size: .85rem; font-weight: 700; }
.square-field[hidden] { display: none; }
.square-field input, .square-field textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 9px; background: white; color: #1c2735; font: inherit; font-weight: 500; }
.square-review-error { margin: 0; color: #b42318; font-size: .82rem; font-weight: 700; }
.square-review-error:empty { display: none; }
button.square-review-pay { border: 0; cursor: pointer; }
button.square-review-pay:disabled { opacity: .7; cursor: progress; }
.square-review-back { justify-self: start; padding: 0; border: 0; background: none; color: var(--ink-soft); font: inherit; font-size: .82rem; text-decoration: underline; cursor: pointer; }
.voucher-continue[hidden], .membership-payment-continue[hidden] { display: none; }
.membership-comparison tfoot td { text-align: left; font-style: italic; color: var(--muted, #5b6675); border-bottom: 0; }
.detail-member-note { margin-top: 10px; font-size: .9rem; font-weight: 600; color: #e8c75e; }

.gift-account-option { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid #c19b36; border-radius: 10px; background: rgba(193,155,54,.08); font-weight: 600; }
.gift-account-option input { margin-top: 3px; width: auto; }
.gift-account-option small { display: block; font-weight: 400; opacity: .8; }
