/* Root */
:root {
  --bg: #F6F4FA;
  --surface: #FFFFFF;
  --text: #211B2E;
  --muted: #5B536B;
  --accent: #6234B5;
  --accent-text: #FFFFFF;
  --plate-bg: #211B2E;
  --plate-text: #F6F4FA;
  --line: #DCD6E8;
  --font-head: system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --font-body: Charter, 'Bitstream Charter', 'Sitka Text', Cambria, Georgia, serif;
  --radius-card: 20px;
  --radius-btn: 999px;
  --shadow: 0 1px 2px rgb(33 27 46 / .06), 0 12px 32px rgb(33 27 46 / .08);
  --gap: clamp(16px, 4vw, 40px);
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  text-align: left;
}
img { max-width: 100%; height: auto; display: block; object-fit: cover; }
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin: 0 0 0.6em;
}
h1 { font-size: clamp(2.4rem, 4.6vw + 0.6rem, 4.6rem); line-height: 1.08; }
h2 { font-size: clamp(1.8rem, 2.6vw + 0.8rem, 3rem); line-height: 1.15; }
h3 { font-size: clamp(1.2rem, 1rem + 0.8vw, 1.5rem); }
p { margin: 0 0 1em; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
ul { padding-left: 1.2em; }

/* Shell / bands */
.shell {
  max-width: 1200px;
  margin: 0 auto;
  padding-inline: var(--gap);
}
.shell--narrow { max-width: 760px; }
.band {
  position: relative;
  padding-block: clamp(64px, 9vw, 128px);
  overflow: hidden;
}
.band + .band { border-top: 1px solid var(--line); }
.band--tall {
  min-height: 0;
  padding-block: clamp(48px, 6vw, 96px) clamp(56px, 8vw, 112px);
  display: flex;
  align-items: center;
}
.band--form { background: var(--surface); }
.band__title { margin-bottom: 0.5em; }
.band__intro {
  color: var(--muted);
  max-width: 640px;
  margin: 24px 0 32px;
  font-size: 1.05em;
  text-align: left;
}
.longread { max-width: 62ch; }

/* Background shapes */
.band::before,
.band::after {
  content: "";
  position: absolute;
  z-index: 0;
  pointer-events: none;
}
.band:not(.band--form):not(.band--tall)::before {
  width: 38vmin; height: 38vmin;
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  background: rgb(98 52 181 / .14);
  bottom: -4vmin; left: -14vmin;
}
.band:not(.band--form):not(.band--tall)::after {
  width: 26vmin; height: 52vmin;
  border-radius: 13vmin 13vmin 0 0;
  background: rgb(33 27 46 / .10);
  top: 12%; right: -9vmin;
}
.band--tall::before {
  width: 46vmin; height: 46vmin;
  border-radius: 50%;
  background: rgb(98 52 181 / .14);
  top: -14vmin; right: -12vmin;
}
.band--tall::after {
  width: 34vmin; height: 17vmin;
  border-radius: 17vmin 17vmin 0 0;
  background: rgb(33 27 46 / .08);
  bottom: 0; left: -10vmin;
}
.band--form::after {
  width: 42vmin; height: 42vmin;
  border-radius: 50%;
  background: rgb(98 52 181 / .12);
  top: -10vmin; left: -14vmin;
}
.band > .shell { position: relative; z-index: 1; }

/* Skip link */
.skip-path {
  position: absolute;
  left: 16px;
  top: -64px;
  z-index: 60;
  background: var(--accent);
  color: var(--accent-text);
  padding: 12px 20px;
  border-radius: var(--radius-btn);
  font-family: var(--font-head);
  text-decoration: none;
  transition: top 0.2s ease;
}
.skip-path:focus { top: 12px; }

/* Header */
.masthead {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgb(246 244 250 / .94);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
  padding-block: 18px;
  transition: padding 0.25s ease;
}
.masthead.is-compact { padding-block: 4px; }
.masthead .shell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.brandmark {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.02em;
  transition: font-size 0.25s ease;
}
.masthead.is-compact .brandmark { font-size: 1.15rem; }

/* Menu */
.menu__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.menu__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-head);
  font-size: 0.875rem;
  color: var(--muted);
  text-decoration: none;
  padding: 8px 18px;
  border-radius: var(--radius-btn);
  transition: background-color 0.2s ease, color 0.2s ease;
}
.menu__link:hover,
.menu__link[aria-current="page"] {
  background: var(--plate-bg);
  color: var(--plate-text);
}
.menu__num {
  font-size: 0.78em;
  color: var(--muted);
  font-weight: 600;
}
.menu__link:hover .menu__num,
.menu__link[aria-current="page"] .menu__num { color: inherit; opacity: .8; }
.menu__switch { display: none; }

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}
.hero__note { color: var(--muted); max-width: 54ch; margin-bottom: 28px; }
.hero__title { margin-bottom: 0.4em; font-size: clamp(2.4rem, 4.2vw + 0.6rem, 3.5rem); text-wrap: balance; }
.hero__frame {
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow);
  max-width: 560px;
  width: 100%;
  margin-inline: auto;
}
.hero__photo { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }

/* Journal layout */
.journal {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: start;
}
.journal .longread { text-align: left; }
.journal__column { max-width: 68ch; }
.journal__media { min-width: 0; }
.photo-wide { width: 100%; max-height: 70vh; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius-card); box-shadow: var(--shadow); }
.photo-square { width: 100%; max-width: 520px; aspect-ratio: 1 / 1; object-fit: cover; border-radius: var(--radius-card); box-shadow: var(--shadow); }
.mat { background: var(--surface); padding: clamp(12px, 2vw, 24px); border-radius: calc(var(--radius-card) + 8px); }

/* Tiles */
.tiles {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  grid-auto-rows: 1fr;
  align-items: stretch;
  margin-bottom: 40px;
}
.tile {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}
.tile:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.tile__name { margin-bottom: 0.4em; }
.tile__text { color: var(--muted); margin: 0; }
.tile.slate,
.tile--featured {
  background: var(--plate-bg);
  border-color: var(--plate-bg);
  color: var(--plate-text);
}
.tile.slate .tile__text { color: #CFC9DC; }
.tile--featured { border: 2px solid var(--accent); }

/* Accent mark */
.mark {
  color: #B79AF0;
  font-family: var(--font-head);
  font-weight: 800;
}

/* Plate */
.plate {
  background: var(--plate-bg);
  color: var(--plate-text);
  border-radius: var(--radius-card);
  padding: clamp(28px, 4vw, 48px);
}
.plate__title { color: var(--plate-text); }
.plate__text { color: #CFC9DC; max-width: 68ch; }
.plate__list { color: #CFC9DC; }
.plate a { color: #C9B4F5; }

/* Prices */
.prices {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-bottom: 40px;
  align-items: stretch;
}
.price__name { margin-bottom: 0.3em; }
.price__cost {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--accent);
  font-size: 1.05em;
  margin-bottom: 12px;
}
.price__list { color: var(--muted); margin: 0; padding-left: 1.1em; }
.price__list li + li { margin-top: 6px; }

/* Buttons */
.action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 26px;
  border: 2px solid var(--accent);
  border-radius: var(--radius-btn);
  background: var(--accent);
  color: var(--accent-text);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, filter 0.2s ease, transform 0.15s ease, color 0.2s ease;
}
.action:hover { filter: brightness(0.9); background: #532AA0; border-color: #532AA0; transform: translateY(-1px); }
.action:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.action:active { transform: translateY(0); filter: none; }
.action--ghost { background: transparent; color: var(--accent); }
.action--ghost:hover { background: var(--accent); color: var(--accent-text); }

/* Request form */
.request { display: grid; gap: 20px; text-align: left; }
.request__field { display: grid; gap: 6px; }
.request__label { font-family: var(--font-head); font-weight: 600; font-size: 0.95rem; }
.request__input,
.request__area {
  width: 100%;
  font: inherit;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 16px;
}
.request__input::placeholder { color: #6E6680; }
.request__input:focus-visible,
.request__area:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-color: var(--accent);
}
.request__area { resize: vertical; min-height: 120px; }
.request__bad .request__input,
.request__bad .request__area { border-color: #B3261E; }
.request__accept { display: flex; gap: 10px; align-items: flex-start; font-size: 0.95rem; }
.request__accept input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--accent); }
.request__hint { color: var(--muted); font-size: 0.9rem; margin: 0; }
.request--sending .request__send { opacity: 0.6; pointer-events: none; }
.request__send { justify-self: start; }

/* FAQ */
.queries { display: grid; gap: 12px; }
.queries__item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 4px 20px;
  transition: border-color 0.25s ease;
}
.queries__item:hover, .queries__item[open] { border-color: var(--accent); }
.queries__ask {
  font-family: var(--font-head);
  font-weight: 700;
  cursor: pointer;
  padding: 14px 0;
  list-style: none;
}
.queries__ask::-webkit-details-marker { display: none; }
.queries__ask::before { content: "+ "; color: var(--accent); }
.queries__item[open] .queries__ask::before { content: "− "; }
.queries__item .longread { color: var(--muted); margin-bottom: 16px; }

/* Stages */
.stages { display: grid; gap: 16px; margin-bottom: 40px; }
.stage {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 8px 24px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.stage:hover, .stage.is-open { border-color: var(--accent); box-shadow: var(--shadow); }
.stage__name { margin: 0; }
.stage__switch {
  all: unset;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  width: 100%;
  cursor: pointer;
  font: 800 clamp(1.2rem, 1rem + 0.8vw, 1.5rem)/1.2 var(--font-head);
  letter-spacing: -0.01em;
  color: var(--text);
  padding: 20px 0;
}
.stage__switch::after {
  content: "+";
  font-size: 1.4em;
  color: var(--accent);
  flex: none;
}
.stage.is-open .stage__switch::after { content: "−"; }
.stage__switch:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
.stage__panel { display: none; padding-bottom: 20px; }
.stage__panel .longread { color: var(--muted); margin: 0; }
.stage.is-open .stage__panel { display: block; }

/* Gallery (inner pages) */
.gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
.gallery__item { min-width: 0; }
.gallery figcaption { color: var(--muted); font-size: 0.9rem; margin-top: 8px; }

/* Prose (policies, terms, trust page) */
.pagehead { padding-top: clamp(40px, 6vw, 72px); }
.pagehead h1 { margin-bottom: 0.4em; }
.pagehead__note { color: var(--muted); max-width: 60ch; }
.prose { max-width: 760px; }
.prose h2 { font-size: clamp(1.4rem, 1rem + 1.4vw, 2rem); margin-top: 2em; }
.prose h3 { margin-top: 1.6em; }
.prose ul, .prose ol { color: var(--text); }
.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95em;
}
.prose th, .prose td {
  text-align: left;
  border: 1px solid var(--line);
  padding: 10px 12px;
}
.prose th { font-family: var(--font-head); background: var(--surface); }
.prose .policy-date { color: var(--muted); font-size: 0.95rem; }
.prose .policy-index {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 20px 24px;
}
.prose .policy-index a { font-family: var(--font-head); font-size: 0.95rem; }

/* Contacts page */
.contactgrid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-top: 40px;
}
.contactcard {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: clamp(24px, 3vw, 32px);
}
.contactcard h2, .contactcard h3 { margin-bottom: 0.5em; }
.contactcard ul { list-style: none; margin: 0; padding: 0; }
.contactcard li { padding: 6px 0; }
.contactcard li span {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.85rem;
  min-width: 88px;
  color: var(--muted);
}

/* Confirmation & 404 */
.confirm {
  text-align: center;
  padding-block: clamp(80px, 12vw, 160px);
}
.confirm .action { margin-top: 16px; }
.confirm__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 24px;
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
}
.bigmark {
  display: block;
  font: 800 clamp(4rem, 14vw, 10rem)/1 var(--font-head);
  color: var(--accent);
  letter-spacing: -0.03em;
}

/* Mobile dock */
.dock { display: none; }
.dock .action { max-width: 480px; margin-inline: auto; }
.ribbon { display: none; }

/* Footer */
.colophon {
  background: var(--plate-bg);
  color: var(--plate-text);
  padding-block: clamp(48px, 6vw, 72px) 24px;
}
.colophon__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
.colophon address { font-style: normal; }
.colophon address p { margin: 0 0 8px; color: #CFC9DC; }
.colophon ul { list-style: none; margin: 0; padding: 0; }
.colophon__list li { padding: 4px 0; }
.colophon a { color: #C9B4F5; }
.colophon__cell li span {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 0.85rem;
  color: #A79EBB;
  min-width: 88px;
}
.colophon__line {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgb(246 244 250 / .2);
  color: #CFC9DC;
  font-size: 0.9rem;
}

/* Reveal */
html.site--live .appear {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
html.site--live .appear--in {
  opacity: 1;
  transform: none;
}

/* Breakpoint 480 */
@media (max-width: 479px) {
  .action { width: 100%; }
  .request__send { justify-self: stretch; }
  .tiles { gap: 20px; }
  .tile { padding: 24px 20px; }
  .shell { padding-inline: 24px; }
}

/* Breakpoint 640 */
@media (min-width: 640px) {
  .tiles, .prices { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .contactgrid { grid-template-columns: repeat(2, 1fr); }
}

/* Breakpoint 768 */
@media (min-width: 768px) {
  .hero { grid-template-columns: 55fr 45fr; gap: 64px; }
  .journal { grid-template-columns: 1fr 1fr; gap: 48px; }
  body { font-size: 1.0625rem; line-height: 1.7; }
  .colophon__grid { grid-template-columns: repeat(3, 1fr); }
}

/* Breakpoint 1024 */
@media (min-width: 1024px) {
  .prices { grid-template-columns: repeat(3, 1fr); }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .stages { grid-template-columns: repeat(2, 1fr); }
}

/* Breakpoint 1280 */
@media (min-width: 1280px) {
  .shell { max-width: 1200px; }
  .band__intro { font-size: 1.15em; }
}

/* Mobile menu */
@media (max-width: 767px) {
  .masthead .shell { align-items: stretch; }
  .brandmark { align-self: center; }
  .menu__switch {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 20px;
    align-self: center;
    border: 1px solid var(--line);
    border-radius: var(--radius-btn);
    background: var(--surface);
    color: var(--text);
    font: 600 0.95rem var(--font-head);
    cursor: pointer;
  }
  .menu__switch::before { content: "≡"; font-size: 1.1em; color: var(--accent); }
  .menu {
    display: none;
    padding-bottom: 12px;
  }
  .menu--open { display: block; }
  .menu__list { flex-direction: column; align-items: stretch; gap: 2px; }
  .menu__link { padding: 12px 16px; border-radius: 14px; }
  .dock {
    display: block;
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 40;
  }
  .dock .action { width: 100%; box-shadow: var(--shadow); }
  .ribbon { display: none; }
  body { padding-bottom: 76px; }
}

/* Short screens */
@media (max-height: 600px) {
  .band--tall { padding-block: 32px; min-height: auto; }
  .hero { align-items: start; }
}

/* Motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  html.site--live .appear { opacity: 1; transform: none; }
}

/* Extra background layer */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(34vmin 34vmin at 8% 12%, rgb(98 52 181 / .10), transparent 70%),
    radial-gradient(40vmin 40vmin at 94% 68%, rgb(33 27 46 / .07), transparent 72%),
    radial-gradient(30vmin 15vmin at 78% 4%, rgb(98 52 181 / .08), transparent 75%);
}
