/* ============================================================
   THE INJECTR — shared stylesheet
   Warm editorial luxury. Oat canvas, warm ink, clay accent.
   Mobile-first. All motion no-ops under prefers-reduced-motion.
   ============================================================ */

:root {
  --oat: #F6F1EA;
  --oat-deep: #EFE7DC;
  --oat-card: #FBF8F3;
  --ink: #1E1A17;
  --ink-soft: #3A332C;
  --clay: oklch(0.62 0.06 55);
  --clay-deep: oklch(0.52 0.065 55);
  --clay-wash: oklch(0.93 0.02 55);
  --blush: #E7D3C7;
  --grey-1: oklch(0.45 0.025 55);
  --grey-2: oklch(0.55 0.02 55);
  --grey-3: oklch(0.72 0.018 55);
  --line: rgba(30, 26, 23, 0.12);
  --line-soft: rgba(30, 26, 23, 0.07);
  --serif: "Fraunces", "Georgia", serif;
  --sans: "Inter", -apple-system, "Segoe UI", sans-serif;
  --measure: 62ch;
  --wrap: 80rem;
  --gutter: clamp(1.25rem, 5vw, 4.5rem);
  --section-y: clamp(4rem, 10vw, 8.5rem);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ============================================================
   LARGE-SCREEN SCALE-UP
   Phones and laptops are untouched (mobile-first). On big external
   and ultrawide monitors the content band widens and the whole type +
   spacing scale grows with the root font-size, so the site fills the
   screen instead of sitting in a narrow column with dead margins.
   ============================================================ */
@media (min-width: 1500px) {
  :root { --wrap: 1380px; }
  html { font-size: 17px; }
}
@media (min-width: 1800px) {
  :root { --wrap: 1560px; }
  html { font-size: 18px; }
}
@media (min-width: 2200px) {
  :root { --wrap: 1820px; }
  html { font-size: 19.5px; }
}
@media (min-width: 2800px) {
  :root { --wrap: 2180px; }
  html { font-size: 21.5px; }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; background: var(--oat); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: transparent;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--blush); color: var(--ink); }

img { max-width: 100%; display: block; }

/* ---------- Type ---------- */

h1, h2, h3, .serif {
  font-family: var(--serif);
  font-weight: 380;
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0;
  text-wrap: balance;
}

h1 { font-size: clamp(2.5rem, 6.5vw, 4.75rem); }
h2 { font-size: clamp(1.9rem, 4vw, 3.1rem); }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.65rem); font-weight: 420; line-height: 1.2; }

p { margin: 0; text-wrap: pretty; }

.eyebrow {
  font-family: var(--sans);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--clay-deep);
  margin: 0 0 1.25rem;
}

.lede {
  font-size: clamp(1.0625rem, 1.6vw, 1.1875rem);
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: var(--measure);
}

.muted { color: var(--grey-1); }
.small { font-size: 0.875rem; line-height: 1.6; }

em.accent { font-style: italic; color: var(--clay-deep); }

/* ---------- Layout primitives ---------- */

.wrap {
  max-width: var(--wrap, 80rem);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

section { padding-block: var(--section-y); }

.rule-top { border-top: 1px solid var(--line); }

/* ---------- Buttons & links ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  font-family: var(--sans);
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  border-radius: 2px;
  padding: 1rem 1.75rem;
  min-height: 44px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 200ms var(--ease-out), color 200ms var(--ease-out), border-color 200ms var(--ease-out);
}

.btn-primary { background: var(--ink); color: var(--oat); }
.btn-primary:hover { background: var(--clay-deep); color: #fff; }

.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--oat); }

.btn-light { background: var(--oat); color: var(--ink); }
.btn-light:hover { background: var(--blush); }

.text-link {
  color: var(--ink);
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid var(--clay);
  padding-bottom: 2px;
  transition: color 200ms var(--ease-out), border-color 200ms var(--ease-out);
}
.text-link:hover { color: var(--clay-deep); border-bottom-color: var(--clay-deep); }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 241, 234, 0.95);
  border-bottom: 1px solid var(--line-soft);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 1rem;
}

.lockup { text-decoration: none; color: var(--ink); display: block; }
.lockup .brand {
  display: block;
  font-family: var(--serif);
  font-weight: 460;
  font-size: 1.375rem;
  line-height: 1;
  letter-spacing: 0.005em;
}
.lockup .brand .r { font-style: italic; color: var(--clay-deep); }
.lockup .credential {
  display: block;
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--grey-1);
  margin-top: 0.3rem;
}

.site-nav { display: flex; align-items: center; gap: 2rem; }
.site-nav a:not(.btn) {
  font-size: 0.9375rem;
  font-weight: 450;
  color: var(--ink-soft);
  text-decoration: none;
  padding: 0.5rem 0;
  border-bottom: 1px solid transparent;
  transition: color 200ms var(--ease-out), border-color 200ms var(--ease-out);
}
.site-nav a:not(.btn):hover { color: var(--ink); }
.site-nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--clay); }
.site-nav .btn { padding: 0.7rem 1.25rem; min-height: 0; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 0.625rem;
  margin: -0.625rem;
  cursor: pointer;
  color: var(--ink);
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute;
    inset: 100% 0 auto 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--oat);
    border-bottom: 1px solid var(--line);
    padding: 0.75rem var(--gutter) 1.5rem;
  }
  .site-nav.open { display: flex; }
  .site-nav a:not(.btn) { padding: 0.875rem 0; width: 100%; font-size: 1.0625rem; }
  .site-nav .btn { margin-top: 1rem; }
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--ink);
  color: var(--oat);
  padding-block: clamp(3.5rem, 7vw, 5.5rem) 2.5rem;
  margin-top: 0;
}

.site-footer .footer-grid {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .site-footer .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; gap: 3rem; }
}

.site-footer .lockup .brand { color: var(--oat); font-size: 1.5rem; }
.site-footer .lockup .brand .r { color: var(--blush); }
.site-footer .lockup .credential { color: var(--grey-3); }

.site-footer h4 {
  font-family: var(--sans);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--grey-3);
  margin: 0 0 1rem;
}

.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.625rem; }
.site-footer a { color: var(--oat); text-decoration: none; opacity: 0.85; transition: opacity 200ms var(--ease-out); }
.site-footer a:hover { opacity: 1; }
.site-footer .footer-note { color: var(--grey-3); font-size: 0.875rem; max-width: 38ch; margin-top: 1.25rem; }

.site-footer .footer-base {
  margin-top: 3.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(246, 241, 234, 0.14);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
  justify-content: space-between;
  font-size: 0.8125rem;
  color: var(--grey-3);
}
.site-footer .footer-base a { color: var(--grey-3); }

/* ---------- Before / After slider ---------- */

.ba {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  --pos: 50%;
  touch-action: pan-y;
  background: var(--oat-deep);
}

.ba .ba-layer { position: absolute; inset: 0; }
.ba .ba-layer image-slot { width: 100%; height: 100%; display: block; }
.ba .ba-layer.ba-base { position: relative; }

.ba .ba-top {
  clip-path: inset(0 calc(100% - var(--pos)) 0 0);
}

.ba .ba-tag {
  position: absolute;
  bottom: 0.875rem;
  font-family: var(--sans);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0.375rem 0.75rem;
  background: rgba(30, 26, 23, 0.72);
  color: var(--oat);
  border-radius: 2px;
  pointer-events: none;
}
.ba .ba-top .ba-tag { left: 0.875rem; }
.ba .ba-base .ba-tag { right: 0.875rem; }

.ba .ba-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  width: 0;
  cursor: ew-resize;
  outline: none;
}
.ba .ba-handle::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -1px;
  width: 2px;
  background: var(--oat);
  box-shadow: 0 0 0 1px rgba(30, 26, 23, 0.18);
}
.ba .ba-knob {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--oat);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  box-shadow: 0 2px 12px rgba(30, 26, 23, 0.25);
  transition: transform 200ms var(--ease-out);
}
.ba .ba-handle:hover .ba-knob,
.ba .ba-handle:focus-visible .ba-knob { transform: translate(-50%, -50%) scale(1.07); }
.ba .ba-handle:focus-visible .ba-knob { outline: 2px solid var(--clay-deep); outline-offset: 2px; }
.ba .ba-knob svg { width: 18px; height: 18px; }

.ba-caption {
  margin-top: 0.875rem;
  font-size: 0.875rem;
  color: var(--grey-1);
}

/* ---------- FAQ accordion ---------- */

.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.5rem 0;
  font-family: var(--serif);
  font-size: clamp(1.125rem, 1.8vw, 1.375rem);
  font-weight: 420;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .faq-mark {
  flex: none;
  font-family: var(--sans);
  font-size: 1.25rem;
  font-weight: 300;
  color: var(--clay-deep);
  transition: transform 300ms var(--ease-out);
  line-height: 1;
}
.faq details[open] summary .faq-mark { transform: rotate(45deg); }
.faq .faq-body { padding: 0 0 1.75rem; max-width: var(--measure); color: var(--ink-soft); }

/* ---------- Forms ---------- */

.field { display: grid; gap: 0.5rem; }
.field label {
  font-size: 0.8125rem;
  font-weight: 550;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.field input,
.field select,
.field textarea {
  font: inherit;
  color: var(--ink);
  background: var(--oat-card);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 0.875rem 1rem;
  min-height: 44px;
  width: 100%;
  transition: border-color 200ms var(--ease-out);
}
.field textarea { resize: vertical; min-height: 8rem; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--clay-deep);
  box-shadow: 0 0 0 1px var(--clay-deep);
}
.field .optional { text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--grey-2); }

/* ---------- Scroll reveal (JS adds .reveal-ready; no-JS shows content) ---------- */

@media (prefers-reduced-motion: no-preference) {
  .reveal-ready [data-reveal] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out);
  }
  .reveal-ready [data-reveal].is-in { opacity: 1; transform: none; }
}

/* ---------- Shared page hero (interior pages) ---------- */

.page-hero { padding-block: clamp(3.5rem, 8vw, 6.5rem) clamp(2.5rem, 5vw, 4rem); }
.page-hero h1 { max-width: 18ch; }
.page-hero .lede { margin-top: 1.75rem; }

/* ---------- Utility ---------- */

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Golden-hour ambiance: slow warm glow + faint film grain ---------- */

body::before {
  content: "";
  position: fixed;
  inset: -15%;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(42% 36% at 18% 22%, oklch(0.62 0.06 55 / 0.08), transparent 70%),
    radial-gradient(50% 44% at 82% 74%, rgba(231, 211, 199, 0.35), transparent 72%);
}

@media (prefers-reduced-motion: no-preference) {
  body::before { animation: ambient-drift 48s ease-in-out infinite alternate; }
}
@keyframes ambient-drift {
  from { transform: translate3d(-1.5%, -1%, 0) scale(1); }
  to   { transform: translate3d(1.5%, 1.5%, 0) scale(1.05); }
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Cursor halo (hover devices, reduced-motion off) ---------- */

.cursor-halo {
  position: fixed;
  left: 0;
  top: 0;
  width: 34px;
  height: 34px;
  margin: -17px 0 0 -17px;
  border: 1px solid var(--clay);
  border-radius: 50%;
  pointer-events: none;
  z-index: 95;
  opacity: 0.65;
  transition: width 250ms var(--ease-out), height 250ms var(--ease-out), margin 250ms var(--ease-out), opacity 250ms var(--ease-out), background-color 250ms var(--ease-out);
}
.cursor-halo.on {
  width: 58px;
  height: 58px;
  margin: -29px 0 0 -29px;
  opacity: 1;
  background: oklch(0.62 0.06 55 / 0.1);
}

/* ---------- Areas-served marquee ---------- */

.marquee {
  overflow: hidden;
  padding-block: clamp(2rem, 4vw, 3rem);
  border-block: 1px solid var(--line-soft);
}

.marquee-track { display: flex; width: max-content; }

.marquee-run {
  display: flex;
  align-items: center;
  gap: clamp(1.75rem, 3vw, 2.75rem);
  padding-right: clamp(1.75rem, 3vw, 2.75rem);
  white-space: nowrap;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 340;
  font-size: clamp(1.5rem, 3.2vw, 2.375rem);
  letter-spacing: -0.01em;
  color: var(--grey-2);
}

.marquee-run i {
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--clay);
}

@media (prefers-reduced-motion: no-preference) {
  .marquee-track { animation: marquee-roll 56s linear infinite; }
}
@keyframes marquee-roll {
  to { transform: translateX(-50%); }
}

/* ============================================================
   IMAGE-LED TREATMENT CARDS — editorial bento
   Warm-toned placeholders until real photos drop in.
   Calm hover: gentle image zoom, label lift, soft warm overlay.
   ============================================================ */

/* Warm placeholder + zoom plumbing for any <image-slot> used as card art.
   Per-card tone is set with --ph on the element. */
image-slot::part(frame) {
  background: var(--ph, var(--oat-deep));
  transition: transform 760ms var(--ease-out);
}
image-slot::part(ring) { border-color: rgba(30, 26, 23, 0.18); }
/* In a card, lift the empty-state caption clear of the bottom label overlay */
.tcard image-slot::part(empty) { justify-content: flex-start; padding-top: 14%; }

.bento {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(0.8rem, 1.5vw, 1.4rem);
}
@media (min-width: 720px)  { .bento { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1080px) { .bento { grid-template-columns: repeat(4, 1fr); } }

.tcard {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  background: var(--oat-deep);
  isolation: isolate;
  aspect-ratio: 4 / 5;
}
.tcard > image-slot {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
/* Video card art — fills the card the same way the image-slot does */
.tcard-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  z-index: 0;
  transition: transform 760ms var(--ease-out);
}

/* Uniform portrait cards — every treatment shares the same 4/5 frame so
   the low-resolution media crops consistently and never into a wide sliver.
   The legacy size classes (s-feature, s-wide, etc.) are intentionally inert. */

/* Warm scrim so the label is legible over any photo (and over placeholders) */
.tcard-scrim {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(to top, rgba(30, 26, 23, 0.62) 0%, rgba(30, 26, 23, 0.16) 38%, rgba(30, 26, 23, 0) 64%);
  transition: opacity 500ms var(--ease-out);
}
/* Soft warm wash that blooms on hover */
.tcard::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(150deg, oklch(0.62 0.06 55 / 0.22), oklch(0.78 0.05 30 / 0.14));
  mix-blend-mode: multiply;
  transition: opacity 500ms var(--ease-out);
}

.tcard-label {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  padding: clamp(1rem, 2vw, 1.75rem);
  color: var(--oat);
  pointer-events: none;
  transition: transform 460ms var(--ease-out);
}
.tcard-label h3 {
  color: var(--oat);
  font-weight: 400;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.tcard-label h3 { font-size: clamp(1.15rem, 1.5vw, 1.4rem); }
.tcard-label .line {
  margin-top: 0.4rem;
  max-width: 34ch;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: rgba(246, 241, 234, 0.82);
  text-wrap: pretty;
}
.tcard-label .note-pill {
  display: inline-block;
  margin-top: 0.75rem;
  font-family: var(--sans);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--oat);
  border: 1px solid rgba(246, 241, 234, 0.5);
  border-radius: 999px;
  padding: 0.3rem 0.7rem;
}

/* Quiet "learn more" affordance — the only interactive bit, so drops still
   land on the rest of the card. */
.tcard-more {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.9rem;
  pointer-events: auto;
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-weight: 550;
  letter-spacing: 0.04em;
  color: var(--oat);
  text-decoration: none;
  opacity: 0.82;
  transition: opacity 300ms var(--ease-out), gap 300ms var(--ease-out);
}
.tcard-more svg { width: 14px; height: 14px; transition: transform 360ms var(--ease-out); }
.tcard-more:hover { opacity: 1; }

@media (prefers-reduced-motion: no-preference) {
  .tcard:hover image-slot::part(frame) { transform: scale(1.055); }
  .tcard:hover .tcard-media { transform: scale(1.055); }
  .tcard:hover .tcard-label { transform: translateY(-6px); }
  .tcard:hover .tcard-more { gap: 0.7rem; }
  .tcard:hover .tcard-more svg { transform: translate(3px, -3px); }
}
.tcard:hover::after { opacity: 1; }
.tcard:focus-within .tcard-more { opacity: 1; }
.tcard-more:focus-visible { outline: 2px solid var(--oat); outline-offset: 3px; border-radius: 2px; }

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