/* GILDED EDITORIAL v2 — LightLift design system.
   Dials: variance 8 / motion 6 / density 4. One accent (gold).
   Motion: spring easing, transform/opacity only, reduced-motion off-ramps. */

:root {
  --paper: #f5efe3;
  --paper-2: #eae0cb;
  --card: #fffdf6;
  --ink: #14100b;
  --ink-soft: #4e4636;
  --ink-faint: #8d8471;
  --line: rgba(20, 16, 11, 0.14);
  --line-strong: rgba(20, 16, 11, 0.34);
  --gold: #8a5e14;
  --gold-deep: #6e4a0e;
  --gold-bright: #c9a24d;
  --gold-wash: rgba(201, 162, 77, 0.14);
  --on-ink: #f5efe3;
  --on-ink-soft: rgba(245, 239, 227, 0.74);
  --on-ink-line: rgba(245, 239, 227, 0.2);
  --rust: #a4442e;

  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "Outfit", -apple-system, "Segoe UI", sans-serif;

  --s1: 0.875rem;
  --s2: 1rem;
  --s3: 1.25rem;
  --s4: clamp(1.85rem, 1.4rem + 2.2vw, 2.9rem);
  --s5: clamp(2.9rem, 1.8rem + 5vw, 5.4rem);

  --wrap: 76rem;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section-pad: clamp(4.5rem, 9vw, 7.5rem);
  --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  font-size: var(--s2);
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

/* Film grain — fixed layer, never on scrolling containers. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
  opacity: 0.05;
  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'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
}

::selection { background: var(--gold-bright); color: var(--ink); }
img { display: block; max-width: 100%; height: auto; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 560;
  line-height: 1.02;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
h1 { font-size: var(--s5); }
h1 em, h2 em { font-style: italic; font-weight: 480; color: var(--gold-deep); }
h2 { font-size: var(--s4); margin-bottom: 1rem; }
h3 { font-size: var(--s3); line-height: 1.25; }
p { max-width: 62ch; }
p + p { margin-top: 0.9em; }
a { color: inherit; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 2px; }
.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 300;
  background: var(--ink); color: var(--on-ink);
  padding: 0.6rem 1rem; border-radius: 999px; text-decoration: none;
  transition: top 0.15s ease;
}
.skip-link:focus { top: 1rem; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.wrap-narrow { max-width: 48rem; }

/* Eyebrow with rule. */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 1.1rem;
}
.eyebrow::before { content: ""; width: 2.5rem; height: 1px; background: var(--gold); flex-shrink: 0; }
.eyebrow-gold { color: var(--gold-bright); }
.eyebrow-gold::before { background: var(--gold-bright); }

/* Buttons — two systems. Ink authority / gold action. */
.btn {
  --btn-bg: var(--ink);
  --btn-fg: var(--on-ink);
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 1.05rem 1.7rem;
  border: 1px solid var(--ink);
  border-radius: 999px;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.25s var(--ease-spring), background 0.25s ease, border-color 0.25s ease;
}
.btn .arr { display: inline-block; transition: transform 0.25s var(--ease-spring); }
.btn:hover { transform: translateY(-2px); background: #262015; }
.btn:hover .arr { transform: translateX(5px); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn-small { padding: 0.65rem 1.1rem; font-size: 0.72rem; }
.btn-big { font-size: 0.9rem; padding: 1.2rem 2rem; }
.btn-gold {
  --btn-bg: var(--gold-bright);
  --btn-fg: var(--ink);
  background: var(--gold-bright);
  border-color: var(--gold-bright);
}
.btn-gold::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  width: 40%;
  left: -60%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.5), transparent);
  transform: skewX(-18deg);
  transition: left 0.55s var(--ease-spring);
}
.btn-gold:hover { background: #d8b265; border-color: #d8b265; }
.btn-gold:hover::after { left: 130%; }

.text-link {
  font-weight: 700;
  color: var(--gold-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}
.text-link:hover { color: var(--ink); }

/* Header — masthead with double rule. */
.site-header, .funnel-bar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245, 239, 227, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 3px double var(--line-strong);
}
.header-inner, .funnel-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.8rem;
}
.brand { text-decoration: none; line-height: 1.1; }
.brand-name {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-decoration: none;
}
.brand-name i { font-style: italic; color: var(--gold-deep); }
.brand-sub {
  display: block;
  font-family: var(--font-body);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* Hero — asymmetric editorial. */
.hero, .funnel-hero { padding-block: clamp(2.5rem, 6vw, 5rem) clamp(2.5rem, 5vw, 4rem); }
.hero-grid, .funnel-hero-grid {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.hero-copy h1, .funnel-hero h1 { margin-bottom: 1.2rem; }
.lede { font-size: var(--s3); color: var(--ink-soft); margin-bottom: 2rem; font-weight: 400; }
.hero-cta { display: flex; align-items: center; gap: 1.4rem; flex-wrap: wrap; }

.fact-strip, .trust-strip {
  list-style: none;
  padding: 1.4rem 0 0;
  margin: 2.5rem 0 0;
  border-top: 1px solid var(--line-strong);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.6rem;
}
.fact-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.fact-strip dt, .trust-strip li {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.trust-strip li { position: relative; padding-left: 1.3rem; color: var(--ink-soft); font-size: var(--s1); letter-spacing: 0.04em; text-transform: none; }
.trust-strip li::before { content: "✓"; position: absolute; left: 0; color: var(--gold); }
.fact-strip dd { font-weight: 700; font-size: var(--s2); margin-top: 0.2rem; }

/* Arch imagery with offset gold frame. */
.hero-figure, .funnel-figure { position: relative; margin: 0; }
.hero-figure img, .funnel-figure img, .aside-figure img {
  width: 100%;
  object-fit: cover;
  border-radius: 2rem;
}
.arch img {
  border-radius: 999px 999px 4px 4px;
  aspect-ratio: 4 / 4.8;
}
.framed::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid var(--gold-bright);
  border-radius: inherit;
  transform: translate(14px, 14px);
  z-index: -1;
}
.hero-figure { z-index: 0; }
.arch.framed::after { border-radius: 999px 999px 4px 4px; }
.zoomable { display: block; overflow: hidden; border-radius: inherit; }
.arch .zoomable { border-radius: 999px 999px 4px 4px; }
.zoomable img { transition: transform 0.8s var(--ease-spring); }
.zoomable:hover img { transform: scale(1.04); }
figcaption {
  margin-top: 0.7rem;
  font-size: var(--s1);
  color: var(--ink-faint);
  padding-left: 0.9rem;
  border-left: 2px solid var(--gold-bright);
}

/* Rotating badge. */
.hero-badge {
  position: absolute;
  left: -3.2rem;
  bottom: 2.5rem;
  width: 7.5rem;
  height: 7.5rem;
  z-index: 2;
}
.hero-badge .disc {
  width: 100%;
  height: 100%;
  animation: spin 22s linear infinite;
}
.hero-badge .core {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.6rem;
  color: var(--gold-deep);
  text-decoration: none;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Kinetic marquee. */
.marquee {
  background: var(--ink);
  color: var(--gold-bright);
  overflow: hidden;
  border-block: 1px solid var(--gold-bright);
  padding-block: 0.85rem;
}
.marquee-track {
  display: flex;
  gap: 0;
  width: max-content;
  animation: marquee 26s linear infinite;
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  white-space: nowrap;
}
.marquee-track span { padding-right: 2.5rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Sections + numerals. */
.section, .funnel-section { padding-block: var(--section-pad); }
.section-tint, .funnel-section-tint { background: var(--paper-2); }
.section-lede { font-size: var(--s3); color: var(--ink-soft); margin-bottom: 2.5rem; }
.sec-no {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 7vw, 5.5rem);
  line-height: 0.85;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--gold-bright);
  user-select: none;
}

/* Split + footer. */
.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.aside-figure img { aspect-ratio: 4 / 3.4; }
.site-footer { border-top: 3px double var(--line-strong); padding-block: 2.5rem; }
.footer-inner {
  display: flex; flex-wrap: wrap;
  gap: 1rem 2.5rem; align-items: baseline; justify-content: space-between;
}
.footer-nap { font-weight: 600; }
.footer-nap a { color: var(--gold-deep); }
.footer-meta { width: 100%; font-size: var(--s1); color: var(--ink-faint); }
.footer-social a { display: inline-block; padding: 0.8rem 0.35rem; color: var(--gold-deep); }

/* Motion — load cascade + scroll reveal, transform/opacity only. */
.cascade > * { opacity: 0; animation: rise 0.7s var(--ease-spring) forwards; animation-delay: calc(var(--i, 0) * 110ms); }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
.js .reveal { opacity: 0; transform: translateY(16px); }
.js .reveal.is-in { opacity: 1; transform: none; transition: opacity 0.55s ease, transform 0.55s var(--ease-spring); }

/* Sticky mobile call bar. */
.sticky-call { display: none; }
@media (max-width: 57rem) {
  .sticky-call {
    display: block;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 150;
    padding: 0.7rem var(--gutter) calc(0.7rem + env(safe-area-inset-bottom));
    background: rgba(20, 16, 11, 0.96);
    backdrop-filter: blur(8px);
  }
  .sticky-call a {
    display: block; text-align: center;
    background: var(--gold-bright); color: var(--ink);
    font-weight: 700; font-size: 0.85rem; letter-spacing: 0.1em; text-transform: uppercase;
    text-decoration: none; padding: 0.95rem; border-radius: 999px;
  }
  body { padding-bottom: 4.6rem; }
  .hero-grid, .funnel-hero-grid, .split { grid-template-columns: 1fr; }
  .hero-figure img, .funnel-figure img { aspect-ratio: 16 / 11; }
  .arch img { aspect-ratio: 4 / 4.2; }
  .hero-badge { left: auto; right: -0.5rem; bottom: -2rem; width: 6rem; height: 6rem; }
  .sec-no { font-size: 3rem; }
}
@media (max-width: 34rem) {
  .fact-strip { grid-template-columns: 1fr 1fr; }
  .fact-strip div:last-child { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cascade > * { opacity: 1; animation: none; }
  .js .reveal { opacity: 1; transform: none; }
  .js .reveal.is-in { transition: none; }
  .marquee-track, .hero-badge .disc { animation: none; }
  .btn, .btn .arr, .zoomable img { transition: none; }
  .btn-gold::after { display: none; }
}

/* Sidebar — slide-in site menu (Team 1, round 3).
   Built only from this file's own tokens (paper / card / ink / gold).
   Overlay drawer at every width, never a layout push: the pages are
   full-width .wrap sections and a fixed left rail would overlap the
   3D hero and funnel grids. Closed = off-canvas + visibility hidden,
   so it cannot cover content or break the 390px layout until opened. */
.sidebar-scrim {
  position: fixed; inset: 0; z-index: 240;
  background: rgba(20, 16, 11, 0.5);
  border: 0; padding: 0; margin: 0;
  opacity: 0; visibility: hidden;
  transition: opacity 0.3s ease, visibility 0s 0.3s;
  cursor: pointer;
}
.sidebar-scrim.is-open {
  opacity: 1; visibility: visible;
  transition: opacity 0.3s ease, visibility 0s 0s;
}
.site-sidebar {
  position: fixed; top: 0; left: 0; bottom: 0; z-index: 250;
  width: min(22rem, 86vw);
  display: flex; flex-direction: column;
  background: var(--card);
  border-right: 1px solid var(--line-strong);
  box-shadow: 0 0 60px rgba(20, 16, 11, 0.35);
  transform: translateX(-105%);
  visibility: hidden;
  transition: transform 0.45s var(--ease-spring), visibility 0s 0.45s;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
.site-sidebar.is-open {
  transform: none; visibility: visible;
  transition: transform 0.45s var(--ease-spring), visibility 0s 0s;
}
body.sidebar-open { overflow: hidden; }
.sidebar-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-bottom: 3px double var(--line-strong);
  position: sticky; top: 0;
  background: var(--card);
  z-index: 1;
}
.sidebar-head .brand-name { font-size: 1.35rem; }
.sidebar-close {
  display: grid; place-items: center;
  flex-shrink: 0;
  width: 2.25rem; height: 2.25rem;
  background: var(--ink); color: var(--on-ink);
  border: 1px solid var(--ink); border-radius: 50%;
  font-size: 1.35rem; line-height: 1;
  cursor: pointer;
  transition: transform 0.25s var(--ease-spring);
}
.sidebar-close:hover { transform: scale(1.08); }
.sidebar-body {
  padding: 1.25rem 1.25rem calc(1.5rem + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; gap: 1.9rem;
}
.sidebar-cta .btn { width: 100%; justify-content: center; }
.sidebar-cta p { font-size: var(--s1); color: var(--ink-soft); margin-top: 0.7rem; }
.sidebar-title {
  display: flex; align-items: center; gap: 0.8rem;
  font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 0.6rem;
}
.sidebar-title::before {
  content: ""; width: 2rem; height: 1px;
  background: var(--gold); flex-shrink: 0;
}
.sidebar-list { list-style: none; padding: 0; }
.sidebar-list a {
  display: flex; align-items: baseline; justify-content: space-between; gap: 0.8rem;
  text-decoration: none;
  font-weight: 600; font-size: 1rem; color: var(--ink-soft);
  padding-block: 0.7rem;
  border-top: 1px solid var(--line);
}
.sidebar-list li:first-child a { border-top: none; }
.sidebar-list a:hover { color: var(--gold-deep); }
.sidebar-list a[aria-current="page"] { color: var(--gold-deep); font-weight: 700; }
.sidebar-list a[aria-current="page"]::after { content: "●"; font-size: 0.55rem; color: var(--gold-bright); }
.sidebar-list small {
  font-weight: 400; font-size: var(--s1);
  color: var(--ink-faint); text-align: right;
}
.sidebar-contact address { font-style: normal; line-height: 1.7; color: var(--ink-soft); }
.sidebar-contact address a { color: var(--gold-deep); font-weight: 700; }
@media (prefers-reduced-motion: reduce) {
  .site-sidebar, .sidebar-scrim, .sidebar-close { transition: none; }
}

/* Cal.com inline booking — mobile-optimized */
.cal-booking { width: 100%; max-width: 100%; padding: 2.5rem 1rem 3rem; margin: 0 auto; }
.cal-booking-title { margin: 0.25rem 0 0.5rem; }
.cal-booking-sub { max-width: 34rem; margin: 0 auto 1.5rem; }
.cal-embed-wrap {
  width: 100%;
  max-width: 100%;
  min-height: 640px;          /* Cal.com inline default is ~600px; 640px avoids a cut-off month grid */
  overflow-x: hidden;         /* never allow the widget to force horizontal scroll */
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 16px;
}
.cal-embed-wrap iframe { width: 100% !important; max-width: 100% !important; border: 0; display: block; }
.cal-embed-fallback { padding: 2rem 1rem; text-align: center; }
@media (min-width: 700px) {
  .cal-booking { max-width: 880px; padding: 3rem 1.5rem 4rem; }
  .cal-embed-wrap { min-height: 700px; }
}

/* Team 4A — header nav: Blog / FAQ / Services dropdown (2026-12-02).
   Desktop pill links; below 60rem (959px) the pill links hide and the
   sidebar drawer — which carries the same Blog / FAQ / all-9-services
   links — is the nav. The Services dropdown is a native <details>:
   tap or click on the summary toggles it, hover reveals it on
   fine-pointer desktops — never hover-only. The menu is right-aligned
   to the Services button and capped at viewport width, so it can
   never cause horizontal scroll. */
.pill-nav { display: none; }
@media (min-width: 60rem) {
  .pill-nav {
    display: flex; align-items: center; gap: 0.15rem;
    order: 3;
  }
  /* funnels.css sets .glass-toggle order:3; keep the menu toggle last. */
  .glass-pill .glass-toggle { order: 4; }
  .pill-link {
    display: inline-flex; align-items: center; min-height: 2.75rem; /* 44px touch target */
    padding: 0.35rem 0.7rem;
    font-weight: 600; font-size: 0.95rem; color: var(--ink-soft);
    text-decoration: none; border-radius: 999px; white-space: nowrap;
  }
  .pill-link:hover { color: var(--gold-deep); background: rgba(255, 255, 255, 0.5); }
  .pill-link:focus-visible { outline: 2px solid var(--gold-deep); outline-offset: 2px; }
  .nav-drop { position: relative; }
  .nav-drop > summary {
    display: inline-flex; align-items: center; gap: 0.3rem;
    min-height: 2.75rem; /* 44px touch target */
    padding: 0.35rem 0.7rem;
    font-weight: 600; font-size: 0.95rem; color: var(--ink-soft);
    border-radius: 999px; cursor: pointer; white-space: nowrap;
    list-style: none;
  }
  .nav-drop > summary::-webkit-details-marker { display: none; }
  .nav-drop > summary:hover { color: var(--gold-deep); background: rgba(255, 255, 255, 0.5); }
  .nav-drop > summary:focus-visible { outline: 2px solid var(--gold-deep); outline-offset: 2px; }
  .nav-caret { display: inline-block; font-size: 0.7em; transition: transform 0.25s var(--ease-spring); }
  .nav-drop[open] .nav-caret { transform: rotate(180deg); }
  .nav-drop-menu {
    display: none;
    position: absolute; top: calc(100% + 0.55rem); right: 0;
    width: max-content; min-width: 13rem; max-width: calc(100vw - 2rem);
    margin: 0; padding: 0.4rem 0; list-style: none;
    background: rgba(255, 253, 246, 0.94);
    -webkit-backdrop-filter: blur(24px) saturate(1.6);
    backdrop-filter: blur(24px) saturate(1.6);
    border: 1px solid rgba(255, 255, 255, 0.75);
    box-shadow: 0 14px 40px rgba(20, 16, 11, 0.16);
    border-radius: 1rem; z-index: 160;
  }
  .nav-drop[open] .nav-drop-menu { display: block; }
  .nav-drop-menu a {
    display: flex; align-items: center; min-height: 2.75rem; /* 44px touch target */
    padding: 0.5rem 1.1rem;
    font-weight: 600; font-size: 0.95rem; color: var(--ink-soft);
    text-decoration: none; white-space: nowrap;
  }
  .nav-drop-menu a:hover { color: var(--gold-deep); background: rgba(201, 162, 77, 0.08); }
  .nav-drop-menu a:focus-visible { outline: 2px solid var(--gold-deep); outline-offset: -2px; }
}
/* Desktop hover reveals the menu too (click/tap still toggles it). */
@media (hover: hover) and (min-width: 60rem) {
  .nav-drop:hover .nav-drop-menu { display: block; }
  .nav-drop:hover .nav-caret { transform: rotate(180deg); }
}
@media (prefers-reduced-motion: reduce) {
  .nav-caret { transition: none; }
}
