/* =====================================================================
   THEME LAYER (Night / Daybreak) + accent + Appearance Studio
   The page frame (hero, bouquet, working together, contact, nav) reads these tokens;
   the four rooms keep their own art direction in both themes.
   ===================================================================== */
:root {
  --accent: #e2bd72;
  --line: rgba(244,239,255,.22);
  --ink-soft: #e6dcfb;
  --title-a: #ffffff;
  --title-b: #e8dcff;
  --surface: var(--dusk);
  --orchid: var(--accent);
}
:root[data-aks="light"] {
  color-scheme: light;
  --night: #f4eee6;
  --dusk: #ffffff;
  --ink: #1b1428;
  --ink-soft: #3d3352;
  --mute: #6a5f80;
  --line: rgba(27,20,40,.16);
  --title-a: #1b1428;
  --title-b: #5b3aa0;
}

[hidden] { display: none !important; }
body { background: var(--night); color: var(--ink); transition: background-color .6s ease; }
body::before { background: var(--night); }

/* fixed sky */
.sky, .fx { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }

/* frame sections sit on the sky */
.hero { background: transparent; }
.hero__title { background: linear-gradient(180deg, var(--title-a) 30%, var(--title-b) 100%); -webkit-background-clip: text; background-clip: text; }
:root[data-aks="light"] .hero__title { text-shadow: none; }
.hero__lede, .hero__foot { color: var(--ink-soft); }
.hero__foot .k, .hero__yr, .index__head { color: var(--mute); }
.index__list li { color: var(--ink); opacity: .45; }
.index__list li.is-on { color: var(--ink); opacity: 1; }
.index__count { border-color: var(--line); }
.btn--light { background: var(--ink); color: var(--night); }
.btn--ghost { border-color: var(--line); color: var(--ink); }
.eyebrow { color: var(--accent); }
.eyebrow--dim { color: var(--mute); }

/* nav */
.nav { color: var(--ink); }
.nav.is-solid { background: color-mix(in srgb, var(--night) 78%, transparent); }
.nav__logo { height: 34px; width: auto; display: block; }
.nav__logo--ink { display: none; }
:root[data-aks="light"] .nav__logo--gold, .nav.on-light .nav__logo--gold, .nav.on-sticker .nav__logo--gold { display: none; }
:root[data-aks="light"] .nav__logo--ink, .nav.on-light .nav__logo--ink, .nav.on-sticker .nav__logo--ink { display: block; }
.nav__name { font-family: var(--f-mono); font-size: 12px; letter-spacing: .28em; text-transform: uppercase; font-weight: 500; }
.nav__theme { width: 36px; height: 36px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: inherit; display: grid; place-items: center; cursor: pointer; }
.nav.on-light .nav__theme, .nav.on-sticker .nav__theme { border-color: rgba(21,24,29,.22); }
.nav__theme svg { width: 18px; height: 18px; }

/* working together + contact */
.steps li { border-top-color: var(--line); }
.steps li::before { color: var(--accent); }
.steps span, .plan p:last-child { color: var(--mute); }
.plan { background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
:root[data-aks="light"] .plan { box-shadow: 0 1px 0 var(--line), 0 18px 40px -26px rgba(27,20,40,.35); }
.plan__n { color: var(--accent); }
.plan.plan--hi { background: linear-gradient(160deg, #3b1a73, #1f0d3d); box-shadow: inset 0 0 0 1px rgba(201,167,255,.45); }
.plan--hi, .plan--hi p { color: #f4efff !important; }
.plan--hi .plan__n { color: #e8c36a; }
.contact { background: transparent; }
.contact__h { font-family: var(--f-serif); font-weight: 400; font-stretch: normal; text-transform: none; font-size: clamp(40px, 6.4vw, 92px); line-height: 1; letter-spacing: -.01em; }
.contact__h span { font-style: italic; color: var(--accent); }
.contact__p { color: var(--ink-soft); }
.contact__mail { border-bottom-color: var(--line); color: var(--ink); }
.contact__small { color: var(--mute); }
.brand { margin: 0 0 14px; width: min(100%, 820px); border-radius: 22px; overflow: hidden; box-shadow: 0 40px 90px -30px rgba(0,0,0,.55); }
.brand__img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.brand__img--light { display: none; }
:root[data-aks="light"] .brand__img--dark { display: none; }
:root[data-aks="light"] .brand__img--light { display: block; }

/* loader mark */
.loader__mark { position: absolute; top: calc(50% - 196px); width: 120px; height: auto; }
@media (max-width: 760px) { .loader__mark { top: calc(50% - 140px); width: 92px; } }

/* headline style option */
:root[data-head="serif"] .hero__title { font-family: var(--f-serif); font-weight: 400; font-stretch: normal; text-transform: none; letter-spacing: -.015em; line-height: .95; font-size: clamp(54px, 8.4vw, 132px); }
:root[data-head="serif"] .h2 { font-family: var(--f-serif); font-weight: 400; font-stretch: normal; letter-spacing: 0; }

/* ---------------- Appearance Studio ---------------- */
.studio-fab {
  position: fixed; z-index: 70;
  right: calc(16px + env(safe-area-inset-right, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  display: inline-flex; align-items: center; gap: 10px; padding: 11px 16px; border-radius: 999px; cursor: pointer;
  font: 600 13px var(--f-body); color: #1a1208; background: #e8c36a; border: 0;
  box-shadow: 0 14px 30px -10px rgba(0,0,0,.5), inset 0 0 0 1px rgba(255,255,255,.4);
  transition: transform .25s var(--ease);
}
.studio-fab:hover { transform: translateY(-2px); }
.studio-fab__dot { width: 10px; height: 10px; border-radius: 50%; background: conic-gradient(#e2bd72, #c9a7ff, #ff7a3d, #5ee0c2, #e2bd72); box-shadow: 0 0 0 2px rgba(26,18,8,.25); }
.studio {
  position: fixed; z-index: 80;
  right: calc(16px + env(safe-area-inset-right, 0px)); bottom: calc(72px + env(safe-area-inset-bottom, 0px));
  width: min(360px, calc(100vw - 32px)); max-height: min(78vh, 720px); overflow: auto;
  padding: 18px 18px 14px; border-radius: 20px;
  background: rgba(18,12,32,.94); color: #f4efff; backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 30px 70px -20px rgba(0,0,0,.6), inset 0 0 0 1px rgba(232,195,106,.3);
  display: grid; gap: 14px;
}
.studio__head { display: flex; justify-content: space-between; align-items: start; gap: 10px; }
.studio__kicker { font-family: var(--f-mono); font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: #e8c36a; }
.studio__title { font-family: var(--f-serif); font-weight: 400; font-size: 28px; line-height: 1; margin-top: 4px; }
.studio__x { width: 32px; height: 32px; border-radius: 50%; border: 1px solid rgba(244,239,255,.25); background: transparent; color: inherit; font-size: 20px; line-height: 1; cursor: pointer; }
.studio__note { font-size: 13px; color: #c9bde3; }
.studio__group { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; min-width: 0; }
.studio__group legend { font-family: var(--f-mono); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: #a99bc6; margin-bottom: 6px; padding: 0; }
.seg { display: flex; gap: 4px; padding: 4px; border-radius: 12px; background: rgba(244,239,255,.07); }
.seg label { flex: 1; position: relative; }
.seg input, .swatches input, .tog input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: block; text-align: center; padding: 7px 6px; border-radius: 9px; font-size: 13px; cursor: pointer; }
.seg input:checked + span { background: #f4efff; color: #1a1226; font-weight: 600; }
.seg input:focus-visible + span, .swatches input:focus-visible + span, .tog input:focus-visible + span { outline: 2px solid #e8c36a; outline-offset: 2px; }
.swatches { display: flex; gap: 10px; }
.swatches label { position: relative; }
.swatches span { display: block; width: 30px; height: 30px; border-radius: 50%; background: var(--sw); cursor: pointer; box-shadow: inset 0 0 0 2px rgba(255,255,255,.25); }
.swatches input:checked + span { box-shadow: 0 0 0 2px #120c20, 0 0 0 4px #f4efff; }
.tog { position: relative; display: flex; align-items: center; gap: 10px; font-size: 14px; cursor: pointer; }
.tog span { flex: 1; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.tog span::after { content: ""; flex: none; width: 38px; height: 22px; border-radius: 999px; background-color: rgba(244,239,255,.18); background-image: radial-gradient(circle at 11px 11px, #f4efff 7px, transparent 7.5px); transition: background-color .2s; }
.tog input:checked + span::after { background-color: #e8c36a; background-image: radial-gradient(circle at 27px 11px, #1a1208 7px, transparent 7.5px); }
.rng { display: grid; grid-template-columns: 110px minmax(0, 1fr); align-items: center; gap: 10px; font-size: 13px; color: #d9cdee; }
.rng input { accent-color: #e8c36a; width: 100%; }
.studio__foot { display: flex; gap: 8px; }
.studio__btn { flex: 1; padding: 10px; border-radius: 12px; border: 1px solid rgba(244,239,255,.25); background: transparent; color: inherit; font: 600 13px var(--f-body); cursor: pointer; }
.studio__btn--hi { background: #e8c36a; color: #1a1208; border-color: transparent; }
.studio__toast { min-height: 18px; font-size: 12px; color: #e8c36a; text-align: center; }
@media (max-width: 760px) {
  .studio-fab { padding: 10px 14px; font-size: 12px; }
  .studio { bottom: calc(64px + env(safe-area-inset-bottom, 0px)); }
  .nav__name { display: none; }
}
@media (prefers-reduced-motion: reduce) { body { transition: none; } }

/* links to the service, case-study and niche pages */
.contact__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; margin: 18px auto 0; max-width: 720px; font-size: 14px; }
.contact__links a { color: var(--ink-soft); text-decoration: none; border-bottom: 1px solid var(--line); }
.contact__links a:hover { color: var(--ink); border-color: var(--accent); }
