/* ==========================================================
   Tiffany Holloman Ministries — site styles
   Palette from the logo: black, copper-gold rings, silver script
   ========================================================== */

:root {
  --bg: 255 255 255;
  --surface: 243 243 244;
  --ink: 22 22 22;
  --muted: 82 82 82;
  --line: 222 222 224;
  --gold: 143 92 27;        /* #8F5C1B text-safe gold on white */
  --gold-soft: 226 166 90;  /* #E2A65A logo highlight */
  --on-gold: 255 255 255;
  --btn-gold: 143 92 27;
  --hh: 112px;              /* header height */
  --radius: 18px;
  --text-scale: 1;
  color-scheme: light;
}
html.dark {
  --bg: 0 0 0;
  --surface: 20 20 20;
  --ink: 236 236 236;
  --muted: 178 178 178;
  --line: 48 48 50;
  --gold: 226 166 90;
  --on-gold: 0 0 0;
  --btn-gold: 226 166 90;
  color-scheme: dark;
}

html { font-size: calc(100% * var(--text-scale)); scroll-behavior: smooth; scroll-padding-top: 96px; }
body { line-height: 1.6; overflow-x: hidden; }
img { max-width: 100%; height: auto; }
::selection { background: rgb(var(--gold-soft)); color: #000; }

:focus-visible { outline: 3px solid rgb(var(--gold-soft)); outline-offset: 3px; border-radius: 6px; }
.skip-link {
  position: fixed; left: 16px; top: -80px; z-index: 100; padding: 12px 18px; border-radius: 10px;
  background: rgb(var(--gold-soft)); color: #000; font-weight: 700; transition: top .2s;
}
.skip-link:focus { top: 16px; }
#main:focus { outline: none; }

/* ---------- Layout ---------- */
.container-x { width: 100%; max-width: 80rem; margin-inline: auto; padding-inline: 1.25rem; }
@media (min-width: 1024px) { .container-x { padding-inline: 2rem; } }
.section { padding-block: clamp(48px, 6vw, 80px); }
.section-tight { padding-block: clamp(40px, 5vw, 64px); }
.section-alt { background: rgb(var(--surface)); }
.band-dark { position: relative; background: #000; color: #fff; overflow: hidden; }
html.dark .band-dark { border-block: 1px solid rgb(255 255 255 / .08); }
.band-dark.section-tight { padding-block: 0; }

.h-section { font-family: "Vesper Libre", Georgia, serif; font-weight: 700; font-size: clamp(1.55rem, 2.3vw, 2.1rem); line-height: 1.18; letter-spacing: -.005em; }
.prose-body { max-width: 68ch; line-height: 1.78; }

/* ---------- Header (transparent over banner) ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; padding-block: 10px; color: #fff;
  background: transparent; transition: background-color .35s ease, padding .35s ease, box-shadow .35s ease;
}
.site-header.is-scrolled {
  background: rgb(0 0 0 / .86); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  padding-block: 6px; box-shadow: 0 1px 0 rgb(226 166 90 / .25);
}
.brand-logo { height: 92px; width: auto; transition: height .35s ease; filter: drop-shadow(0 2px 10px rgb(0 0 0 / .45)); }
.is-scrolled .brand-logo { height: 66px; }
@media (max-width: 640px) { .brand-logo { height: 70px; } .is-scrolled .brand-logo { height: 56px; } :root { --hh: 92px; } }

.nav-link { position: relative; display: inline-block; padding: 10px 14px; font-weight: 500; font-size: .98rem; color: #fff; text-shadow: 0 1px 8px rgb(0 0 0 / .5); }
.nav-link::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, #C9862E, #F3C987); transform: scaleX(0); transform-origin: left; transition: transform .3s ease;
}
.nav-link:hover::after, .nav-link.is-active::after { transform: scaleX(1); }
.nav-link.is-active { color: #F3C987; }

.menu-toggle { display: none; }
@media (max-width: 1023px) { .menu-toggle { display: inline-grid; } }
.menu-toggle, .menu-close {
  place-items: center; place-items: center; width: 46px; height: 46px; border-radius: 999px;
  border: 1px solid rgb(255 255 255 / .35); color: #fff; background: rgb(0 0 0 / .3);
}
.mobile-menu { position: fixed; inset: 0; z-index: 70; background: rgb(0 0 0 / .96); color: #fff; }
.mobile-menu__inner { min-height: 100%; padding: 96px 28px 40px; }
.menu-close { display: inline-grid; position: absolute; top: 22px; right: 20px; }
.mobile-link { display: block; padding: 12px 0; font-family: "Vesper Libre", serif; font-size: 1.5rem; border-bottom: 1px solid rgb(255 255 255 / .1); }
.mobile-link.is-active { color: #F3C987; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55rem; min-height: 46px; padding: .7rem 1.35rem;
  border-radius: 999px; font-weight: 700; font-size: .95rem; line-height: 1.1; border: 2px solid transparent;
  transition: transform .2s ease, background-color .2s ease, color .2s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: rgb(var(--btn-gold)); color: rgb(var(--on-gold)); box-shadow: 0 8px 22px -10px rgb(201 134 46 / .8); }
.btn-primary:hover { box-shadow: 0 12px 28px -10px rgb(201 134 46 / .95); }
.band-dark .btn-primary, .hero .btn-primary, .page-banner .btn-primary { background: #E2A65A; color: #000; }
.btn-outline { border-color: rgb(var(--gold)); color: rgb(var(--gold)); }
.btn-outline:hover { background: rgb(var(--gold)); color: rgb(var(--on-gold)); }
.btn-ghost-light { border-color: rgb(255 255 255 / .55); color: #fff; background: rgb(0 0 0 / .25); }
.btn-ghost-light:hover { border-color: #E2A65A; color: #F3C987; }
.link-arrow { display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; color: rgb(var(--gold)); }
.link-arrow svg { transition: transform .2s ease; }
.link-arrow:hover svg, a:hover > .link-arrow svg { transform: translateX(4px); }

/* ---------- Embers canvas ---------- */
.ember-canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }

/* ---------- Gold rings (logo motif, light 3D) ---------- */
.rings { position: absolute; pointer-events: none; transform-style: preserve-3d; }
.rings svg { width: 100%; height: 100%; overflow: visible; }
.ring { stroke-dasharray: 1200; stroke-dashoffset: 1200; animation: ring-draw 2.4s cubic-bezier(.6,.1,.2,1) forwards; }
.ring-b { animation-delay: .25s; } .ring-c { animation-delay: .5s; }
@keyframes ring-draw { to { stroke-dashoffset: 0; } }
.rings--hero { inset: -9% -11%; z-index: 0; animation: halo 26s linear infinite; }
@keyframes halo {
  from { transform: perspective(900px) rotateX(58deg) rotateZ(0deg); }
  to   { transform: perspective(900px) rotateX(58deg) rotateZ(360deg); }
}
.rings--banner { width: min(520px, 70vw); aspect-ratio: 1; right: -6%; top: 50%; opacity: .55; animation: wobble 14s ease-in-out infinite; }
@keyframes wobble {
  0%, 100% { transform: translateY(-50%) perspective(900px) rotateX(18deg) rotateY(-14deg); }
  50%      { transform: translateY(-50%) perspective(900px) rotateX(-12deg) rotateY(16deg); }
}

/* ---------- Hero (fits one screen, no scrolling) ---------- */
.hero {
  position: relative; height: 100vh; height: 100svh; min-height: 560px; overflow: hidden;
  background: radial-gradient(ellipse at 70% 100%, #2a1606 0%, #000 55%); color: #fff;
  padding-top: var(--hh); display: flex;
}
.hero__inner {
  position: relative; z-index: 1; width: 100%; max-width: 80rem; margin-inline: auto; padding: 0 1.25rem 20px;
  display: grid; gap: 18px; align-items: center; grid-template-rows: auto 1fr;
}
@media (min-width: 1024px) {
  .hero__inner { padding: 0 2rem 28px; grid-template-columns: 1.05fr .95fr; grid-template-rows: 1fr; gap: 48px; }
}
.hero__script { font-style: italic; color: #F3C987; font-size: clamp(1rem, 1.5vw, 1.2rem); }
.hero__title { margin-top: 6px; font-family: "Vesper Libre", Georgia, serif; font-weight: 700; font-size: clamp(1.9rem, 3.7vw, 3.3rem); line-height: 1.08; letter-spacing: -.01em; }
.hero__lead { margin-top: 14px; max-width: 34rem; color: rgb(255 255 255 / .82); font-size: clamp(.98rem, 1.2vw, 1.12rem); }
.hero__actions { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero__chips { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 8px; }
.hero__chips li {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; font-size: .85rem;
  border: 1px solid rgb(226 166 90 / .35); color: rgb(255 255 255 / .85); background: rgb(255 255 255 / .04);
}
.hero__chips svg { color: #E2A65A; }
.hero__visual { display: flex; justify-content: center; align-items: center; min-height: 0; height: 100%; }
.portrait-stage { position: relative; display: inline-block; transition: transform .5s ease; transform-style: preserve-3d; }
.portrait-card {
  position: relative; z-index: 1; margin: 0; border-radius: 26px; overflow: hidden; background: #111;
  border: 1px solid rgb(226 166 90 / .55); box-shadow: 0 30px 70px -30px rgb(0 0 0 / .9), 0 0 0 6px rgb(0 0 0 / .5);
}
.portrait-img { display: block; width: auto; max-width: 100%; height: auto; max-height: calc(100svh - var(--hh) - 70px); }
.portrait-caption {
  position: absolute; left: 18px; bottom: 18px; padding: 6px 12px; border-radius: 999px; font-size: .82rem; font-weight: 700;
  background: rgb(0 0 0 / .6); color: #F3C987;
}
@media (max-width: 1023px) {
  .hero__inner { display: flex; flex-direction: column; justify-content: center; gap: 20px; }
  .hero__visual { order: -1; height: auto; flex: none; }
  .portrait-img { max-height: 30svh; }
  .hero__copy { text-align: center; }
  .hero__lead { margin-inline: auto; }
  .hero__actions, .hero__chips { justify-content: center; }
}
@media (max-height: 760px), (max-width: 639px) { .hero__chips { display: none; } }
@media (max-height: 640px) and (max-width: 1023px) { .hero__visual { display: none; } .hero__inner { grid-template-rows: 1fr; } }

/* Intro sequence (one orchestrated page-load moment) */
html.js [data-intro] { opacity: 0; transform: translateY(16px); animation: intro .9s cubic-bezier(.2,.7,.2,1) forwards; }
html.js [data-intro="2"] { animation-delay: .12s; } html.js [data-intro="3"] { animation-delay: .24s; }
html.js [data-intro="4"] { animation-delay: .36s; } html.js [data-intro="5"] { animation-delay: .48s; }
@keyframes intro { to { opacity: 1; transform: none; } }

/* ---------- Inner-page banner ---------- */
.page-banner {
  position: relative; overflow: hidden; background: #000; color: #fff;
  min-height: clamp(300px, 46svh, 440px); padding: calc(var(--hh) + 10px) 0 36px;
  display: grid; align-items: center;
}
.page-banner__media { position: absolute; inset: 0; }
.page-banner__media img { object-position: var(--pos, center); }
.overlay-50 { position: absolute; inset: 0; background: rgb(0 0 0 / .5); }
.page-banner__content { position: relative; z-index: 2; width: 100%; max-width: 80rem; margin-inline: auto; padding-inline: 1.25rem; text-align: center; }
.banner-title { font-family: "Vesper Libre", Georgia, serif; font-weight: 700; font-size: clamp(1.85rem, 3.4vw, 2.85rem); line-height: 1.12; }
.banner-lead { margin: 10px auto 0; max-width: 40rem; color: #F3C987; font-size: clamp(1rem, 1.3vw, 1.15rem); }
.page-banner--photo { min-height: clamp(320px, 54svh, 560px); }
.page-banner--logo .page-banner__logo { position: absolute; inset: var(--hh) 0 0; display: grid; place-items: center; opacity: .35; }
.page-banner--logo .page-banner__logo picture { position: absolute; inset: 8px; }
.banner-logo-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
@media (min-width: 900px) {
  .page-banner--logo .page-banner__logo { inset: calc(var(--hh) - 10px) 4% 10px 52%; opacity: 1; }
  .page-banner--logo .overlay-50 { display: none; }
  .page-banner--logo .page-banner__content { text-align: left; padding-right: 50%; }
  .page-banner--logo .banner-lead { margin-left: 0; }
  .page-banner--logo .crumbs ol { justify-content: flex-start; }
  .page-banner--embers .page-banner__content { text-align: left; }
  .page-banner--embers .banner-lead { margin-left: 0; }
  .page-banner--embers .crumbs ol { justify-content: flex-start; }
}
.crumbs { margin-bottom: 12px; font-size: .88rem; }
.crumbs ol { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; color: rgb(255 255 255 / .78); }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: #E2A65A; }
.crumbs a:hover { color: #F3C987; text-decoration: underline; }

/* ---------- Media frames & tilt ---------- */
.photo-frame {
  position: relative; margin: 0; border-radius: var(--radius); overflow: hidden; background: rgb(var(--surface));
  border: 1px solid rgb(var(--line)); box-shadow: 0 24px 50px -30px rgb(0 0 0 / .55);
}
.photo-frame img { display: block; width: 100%; height: auto; }
.photo-frame::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgb(226 166 90 / .25); pointer-events: none; }
.photo-frame--dark { background: #111; border-color: rgb(255 255 255 / .1); }
.tilt, [data-tilt] { transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .45s cubic-bezier(.2,.7,.2,1); will-change: transform; }

/* ---------- Mission ---------- */
.mission { padding-block: clamp(48px, 6vw, 80px); }
.mission__statement { margin-top: 14px; max-width: 54rem; font-family: "Vesper Libre", Georgia, serif; font-size: clamp(1.45rem, 2.8vw, 2.3rem); line-height: 1.3; color: rgb(255 255 255 / .92); }
.mission__statement .ig { color: rgb(255 255 255 / .45); transition: color .8s ease, text-shadow .8s ease; }
.mission__statement .ig.lit { color: #F3C987; text-shadow: 0 0 22px rgb(226 120 40 / .55); }
.mission__item { padding: 22px; border-radius: var(--radius); border: 1px solid rgb(255 255 255 / .12); background: rgb(255 255 255 / .03); }
.mission__icon { display: inline-grid; place-items: center; width: 46px; height: 46px; margin-bottom: 12px; border-radius: 999px; color: #000; background: linear-gradient(135deg, #F3C987, #C9862E); }

/* ---------- Deck cards ---------- */
.deck { display: grid; gap: 22px; }
@media (min-width: 768px) { .deck { grid-template-columns: repeat(3, 1fr); } }
.deck-card { display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden; background: rgb(var(--surface)); border: 1px solid rgb(var(--line)); box-shadow: 0 18px 40px -30px rgb(0 0 0 / .6); }
.deck-card:hover { box-shadow: 0 28px 50px -26px rgb(0 0 0 / .65), 0 0 0 1px rgb(226 166 90 / .45); }
.deck-card__body { padding: 18px 20px 22px; }
.media-fit { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #000; }
.media-fit::before { content: ""; position: absolute; inset: -20px; background: var(--bg) center / cover no-repeat; filter: blur(18px) brightness(.7); }
.media-fit picture, .media-fit img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.media-fit--black::before { display: none; }

/* ---------- Products ---------- */
.product-card { display: flex; flex-direction: column; height: 100%; border-radius: var(--radius); overflow: hidden; background: rgb(var(--bg)); border: 1px solid rgb(var(--line)); }
.section-alt .product-card { background: rgb(var(--bg)); }
.product-card__media { aspect-ratio: 4 / 3; background: #fff; }
.product-card__media picture { display: block; height: 100%; }
.product-card__body { display: flex; flex-direction: column; align-items: flex-start; flex: 1; padding: 18px 20px 22px; }
.product-card__body .atc-form { margin-top: auto; padding-top: 16px; width: 100%; }

/* ---------- Verse ---------- */
.verse { padding-block: clamp(52px, 7vw, 88px); }
.verse__text { max-width: 52rem; margin: 16px auto 0; font-family: "Vesper Libre", Georgia, serif; font-size: clamp(1.2rem, 2.2vw, 1.75rem); line-height: 1.5; }

/* ---------- Follow / CTA panel ---------- */
.follow { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding: clamp(22px, 3vw, 34px); border-radius: 22px; background: rgb(var(--surface)); border: 1px solid rgb(var(--line)); }
.section-alt .follow { background: rgb(var(--bg)); }

/* ---------- Visionary facts ---------- */
.facts { display: grid; gap: 12px; }
@media (min-width: 640px) { .facts { grid-template-columns: 1fr 1fr; } }
.facts > div { padding: 14px 16px; border-radius: 14px; background: rgb(var(--surface)); border: 1px solid rgb(var(--line)); }
.facts dt { display: flex; align-items: center; gap: 8px; font-size: .85rem; font-weight: 700; color: rgb(var(--gold)); }
.facts dd { margin-top: 4px; }

/* ---------- Book ---------- */
.book-stage { margin: 0; }
.tick { display: inline-grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 999px; color: #000; background: linear-gradient(135deg, #F3C987, #C9862E); }

/* ---------- Timeline (real chronological sequence) ---------- */
.timeline { position: relative; padding-left: 44px; }
.timeline::before { content: ""; position: absolute; left: 15px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(#E2A65A, rgb(var(--line))); }
.timeline li { position: relative; padding-bottom: 22px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline__dot { position: absolute; left: -44px; top: 0; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 999px; color: #000; background: linear-gradient(135deg, #F3C987, #C9862E); box-shadow: 0 0 0 5px rgb(var(--bg)); }
.section-alt .timeline__dot { box-shadow: 0 0 0 5px rgb(var(--surface)); }

/* ---------- Gallery ---------- */
.masonry { columns: 1; column-gap: 18px; }
@media (min-width: 640px) { .masonry { columns: 2; } }
@media (min-width: 1024px) { .masonry { columns: 3; } }
.masonry__item { break-inside: avoid; margin-bottom: 18px; }
.gallery-btn { display: block; width: 100%; border-radius: 16px; overflow: hidden; background: #fff; border: 1px solid rgb(var(--line)); cursor: zoom-in; }
.gallery-btn img { display: block; width: 100%; height: auto; transition: transform .6s ease; }
.gallery-btn:hover img { transform: scale(1.03); }
.lightbox { padding: 0; border: 0; background: transparent; max-width: 94vw; max-height: 92vh; overflow: visible; }
.lightbox::backdrop { background: rgb(0 0 0 / .88); }
.lightbox__img { display: block; max-width: 94vw; max-height: 88vh; width: auto; height: auto; border-radius: 12px; }
.lightbox__close { position: absolute; top: -54px; right: 0; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 999px; background: #E2A65A; color: #000; }

/* ---------- Forms ---------- */
.form-card, .info-card { padding: clamp(20px, 3vw, 32px); border-radius: 22px; background: rgb(var(--surface)); border: 1px solid rgb(var(--line)); }
.info-card { padding: 22px; }
.field label { display: block; margin-bottom: 6px; font-weight: 700; font-size: .95rem; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border-radius: 12px; font: inherit; color: rgb(var(--ink));
  background: rgb(var(--bg)); border: 1.5px solid rgb(var(--line)); transition: border-color .2s ease, box-shadow .2s ease;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: rgb(var(--gold)); box-shadow: 0 0 0 3px rgb(226 166 90 / .35); }
.field [aria-invalid="true"] { border-color: #C0362C; }
.field-error { display: flex; align-items: center; gap: 6px; margin-top: 6px; font-size: .9rem; font-weight: 700; color: #B42318; }
html.dark .field-error { color: #FF9B8A; }
.alert { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; font-size: .95rem; }
.alert svg { flex: none; margin-top: 2px; }
.alert-success { background: #E7F6EC; color: #11502A; border: 1px solid #A6D9B6; }
.alert-error { background: #FDECEA; color: #8A1C12; border: 1px solid #F3B8B1; }
.alert a { text-decoration: underline; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.social-btn { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 999px; border: 2px solid rgb(var(--gold)); color: rgb(var(--gold)); }
.social-btn:hover { background: rgb(var(--gold)); color: rgb(var(--on-gold)); }

/* ---------- Footer ---------- */
.site-footer { position: relative; overflow: hidden; background: #000; color: #fff; border-top: 1px solid rgb(226 166 90 / .25); }
.footer-title { font-family: "Vesper Libre", Georgia, serif; font-size: 1.15rem; color: #F3C987; }
.footer-link { color: rgb(255 255 255 / .82); transition: color .2s ease; }
.footer-link:hover { color: #F3C987; text-decoration: underline; }

/* ---------- Floating dock: accessibility + theme (bottom-left; chat sits bottom-right) ---------- */
.float-dock { position: fixed; left: 16px; bottom: 16px; z-index: 60; display: flex; flex-direction: column; gap: 10px; }
.dock-btn {
  display: grid; place-items: center; width: 50px; height: 50px; border-radius: 999px; color: #000;
  background: linear-gradient(135deg, #F3C987, #C9862E); box-shadow: 0 10px 26px -8px rgb(0 0 0 / .6), 0 0 0 2px #000;
  transition: transform .2s ease;
}
.dock-btn:hover { transform: scale(1.07); }
#theme-toggle { background: #111; color: #F3C987; box-shadow: 0 10px 26px -8px rgb(0 0 0 / .6), 0 0 0 1px rgb(226 166 90 / .6); }
html.dark #theme-toggle .icon-moon, html:not(.dark) #theme-toggle .icon-sun { display: none; }
.a11y-panel {
  position: fixed; left: 16px; bottom: 136px; z-index: 65; width: min(330px, calc(100vw - 32px)); padding: 18px;
  border-radius: 18px; background: rgb(var(--bg)); color: rgb(var(--ink)); border: 1px solid rgb(var(--line));
  box-shadow: 0 30px 60px -20px rgb(0 0 0 / .55);
}
.a11y-close { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 999px; border: 1px solid rgb(var(--line)); }
.a11y-opt {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 42px; padding: 8px 12px;
  border-radius: 10px; font-size: .88rem; font-weight: 700; background: rgb(var(--surface)); border: 1.5px solid rgb(var(--line));
}
.a11y-opt[aria-pressed="true"] { background: rgb(var(--btn-gold)); color: rgb(var(--on-gold)); border-color: rgb(var(--btn-gold)); }
.to-top {
  position: fixed; right: 20px; bottom: 96px; z-index: 55; display: grid; place-items: center; width: 44px; height: 44px;
  border-radius: 999px; background: #000; color: #F3C987; border: 1px solid rgb(226 166 90 / .6);
  opacity: 0; visibility: hidden; transform: translateY(10px); transition: all .3s ease;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }

/* ---------- Scroll reveal ---------- */
html.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
html.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Accessibility modes ---------- */
html.a11y-contrast { --muted: var(--ink); --line: 120 120 120; }
html.a11y-contrast:not(.dark) { --gold: 110 66 10; --btn-gold: 110 66 10; }
html.a11y-contrast .overlay-50 { background: rgb(0 0 0 / .7); }
html.a11y-contrast .text-white\/75, html.a11y-contrast .text-white\/70, html.a11y-contrast .text-white\/65 { color: #fff !important; }
html.a11y-links a:not(.btn):not(.brand-link):not(.dock-btn) { text-decoration: underline !important; text-underline-offset: 3px; }
html.a11y-readable body, html.a11y-readable .h-section, html.a11y-readable .hero__title, html.a11y-readable .banner-title,
html.a11y-readable .font-display, html.a11y-readable .mission__statement, html.a11y-readable .verse__text { font-family: Verdana, Tahoma, Arial, sans-serif !important; letter-spacing: .01em; }
html.a11y-spacing body { line-height: 1.95; } html.a11y-spacing p, html.a11y-spacing li { letter-spacing: .03em; word-spacing: .1em; }

html.a11y-still *, html.a11y-still *::before, html.a11y-still *::after { animation: none !important; transition: none !important; }
html.a11y-still .ring { stroke-dashoffset: 0; }
html.a11y-still [data-intro], html.a11y-still .reveal { opacity: 1 !important; transform: none !important; }
html.a11y-still .rings--hero { transform: perspective(900px) rotateX(58deg); }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .ring { stroke-dashoffset: 0; }
  html.js [data-intro], html.js .reveal { opacity: 1; transform: none; }
  .rings--hero { transform: perspective(900px) rotateX(58deg); }
}
@media print { .site-header, .float-dock, .to-top, .ember-canvas, .a11y-panel { display: none !important; } }
html.a11y-still .rings--banner { transform: translateY(-50%); }
@media (prefers-reduced-motion: reduce) { .rings--banner { transform: translateY(-50%); } }

/* ---------- Header cart ---------- */
.cart-link {
  position: relative; display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 999px;
  border: 1px solid rgb(255 255 255 / .4); color: #fff; background: rgb(0 0 0 / .3); transition: border-color .2s ease, color .2s ease;
}
.cart-link:hover, .cart-link.is-active { border-color: #E2A65A; color: #F3C987; }
.cart-badge {
  position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px;
  display: grid; place-items: center; font-size: .72rem; font-weight: 700; color: #000; background: #E2A65A; box-shadow: 0 0 0 2px #000;
}

/* ---------- Compact product cards (home) ---------- */
.mini-card {
  display: grid; grid-template-columns: 96px 1fr; gap: 14px; align-items: center; padding: 12px;
  border-radius: 16px; background: rgb(var(--bg)); border: 1px solid rgb(var(--line));
  box-shadow: 0 14px 30px -26px rgb(0 0 0 / .6);
}
.mini-card:hover { border-color: rgb(226 166 90 / .6); }
.mini-card__img { display: block; width: 96px; height: 96px; border-radius: 12px; overflow: hidden; background: #fff; border: 1px solid rgb(var(--line)); }
.mini-card__img picture { display: block; height: 100%; }

/* ---------- Add to cart ---------- */
.atc-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; }
.atc-field { display: flex; flex-direction: column; gap: 4px; flex: 1 1 140px; }
.atc-field--qty { flex: 0 0 76px; }
.atc-field label { font-size: .85rem; font-weight: 700; }
.atc-field select, .atc-field input, .qty-input {
  width: 100%; min-height: 46px; padding: 8px 12px; border-radius: 12px; font: inherit; color: rgb(var(--ink));
  background: rgb(var(--bg)); border: 1.5px solid rgb(var(--line));
}
.atc-field select:focus, .atc-field input:focus, .qty-input:focus { outline: none; border-color: rgb(var(--gold)); box-shadow: 0 0 0 3px rgb(226 166 90 / .35); }
.atc-btn { flex: 1 1 100%; justify-content: center; }

/* ---------- Cart ---------- */
.cart-list ul { border-top: 1px solid rgb(var(--line)); }
.cart-line {
  display: grid; grid-template-columns: 84px 1fr auto; gap: 8px 16px; align-items: center;
  padding: 16px 0; border-bottom: 1px solid rgb(var(--line));
}
.cart-line__img { grid-row: span 2; width: 84px; height: 84px; border-radius: 12px; overflow: hidden; background: #fff; border: 1px solid rgb(var(--line)); }
.cart-line__img picture { display: block; height: 100%; }
.cart-line__qty { display: flex; align-items: center; gap: 8px; }
.cart-line__qty .qty-input { width: 76px; }
.cart-line__total { text-align: right; }
@media (min-width: 640px) {
  .cart-line { grid-template-columns: 84px 1fr 150px 100px 46px; }
  .cart-line__img { grid-row: auto; }
}
.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 999px; border: 1.5px solid rgb(var(--line)); color: rgb(var(--muted)); }
.icon-btn:hover { border-color: #C0362C; color: #C0362C; }
.summary-card { padding: 24px; border-radius: 22px; background: rgb(var(--surface)); border: 1px solid rgb(var(--line)); }
.summary-rows { margin-top: 18px; border-top: 1px solid rgb(var(--line)); }
.summary-rows > div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid rgb(var(--line)); }
.summary-rows dt { color: rgb(var(--muted)); }
.summary-rows dd { font-weight: 700; }
.summary-total dt, .summary-total dd { color: rgb(var(--ink)); font-size: 1.15rem; font-weight: 700; }
.summary-thumb { flex: none; width: 56px; height: 56px; border-radius: 10px; overflow: hidden; background: #fff; border: 1px solid rgb(var(--line)); }
.summary-thumb picture { display: block; height: 100%; }
.card-box { min-height: 90px; }
.alert-info { background: #FFF6E8; color: #5C3A0E; border: 1px solid #EBC98E; }
fieldset { border: 0; padding: 0; margin-inline: 0; min-width: 0; }
.w-full.btn { width: 100%; }
