/* Lynell Agency: homepage layer. Loaded after styles.css, only by index.html.
   Concept: the site is "shot", not templated. Golden-hour hero, giant light-weight type,
   floating work cards in a sunbeam of dust. Everything is visible without JS and with
   reduced motion; JS only adds parallax, dust and the floating button state. */

:root {
  /* Lighter, airier stone family (fog ground, ink text, orange used sparingly) */
  --paper: #f1eee7;
  --paper-2: #e8e3d8;
  --card: #f8f6f1;
  --ink-muted: #4a453e;
  --rule: rgba(15, 14, 12, 0.14);
  --rule-strong: rgba(15, 14, 12, 0.3);
  --font-display: "Inter Tight", "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --home-shadow: 0 50px 80px -48px rgba(70, 44, 20, 0.45), 0 2px 6px rgba(70, 44, 20, 0.06);
}

html { scroll-padding-top: 96px; }
body.home { background: var(--paper); overflow-x: clip; }
body.home::after { opacity: 0.045; }

/* ---------- Type ---------- */
.home h1,
.home h2,
.home h3 { font-family: var(--font-display); color: var(--ink); }

.home h2 {
  font-size: clamp(2.5rem, 6.2vw, 5.8rem);
  font-weight: 300;
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.home h3 { font-weight: 500; letter-spacing: -0.025em; }

.home h2 em,
.home h1 em {
  font-family: inherit;
  font-style: normal;
  font-weight: 300;
  letter-spacing: inherit;
}

.home .large {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.3rem, 2.1vw, 1.75rem);
  line-height: 1.4;
  letter-spacing: -0.015em;
}

.home .slate {
  font-family: var(--font-display);
  font-style: normal;
  font-weight: 500;
  font-size: 0.9375rem;
  letter-spacing: 0;
  color: var(--ink-soft);
}

.home .slate::before {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--signal);
}

.home .section { padding-block: clamp(72px, 11vw, 160px); }
.home .section-head { max-width: 1000px; margin-bottom: clamp(40px, 6vw, 88px); }
.home .section-head > p:last-child:not(.slate) { font-size: clamp(1.1rem, 1.5vw, 1.3rem); max-width: 38em; }

.home .btn { font-weight: 500; font-family: var(--font-display); letter-spacing: -0.01em; }
.home .btn-ghost { border-width: 1px; border-color: var(--rule-strong); }

/* ---------- Header: transparent over the photo, floating pill once scrolled ---------- */
.home .site-header { position: fixed; left: 0; right: 0; top: 0; padding-block: 16px; }
.home .site-header.is-scrolled { padding-block: 10px; }
.home .site-header.is-scrolled .header-inner { box-shadow: var(--glass-shadow), 0 18px 40px -22px rgba(60, 40, 20, 0.4); }
.home .wordmark-name { font-family: var(--font-display); font-weight: 500; }
.home .wordmark-sub { font-family: var(--font-display); font-style: normal; font-weight: 300; }

.home .site-header:not(.is-scrolled) .wordmark,
.home .site-header:not(.is-scrolled) .wordmark-sub { color: #fff; }
.home .site-header:not(.is-scrolled) .wordmark-mark { border-color: #fff; }
.home .site-header:not(.is-scrolled) .nav-toggle { border-color: rgba(255, 255, 255, 0.7); }
.home .site-header:not(.is-scrolled) .nav-toggle-bars,
.home .site-header:not(.is-scrolled) .nav-toggle-bars::before,
.home .site-header:not(.is-scrolled) .nav-toggle-bars::after { background: #fff; }
.home .site-header:not(.is-scrolled) .nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.home .site-header:not(.is-scrolled) :focus-visible { outline-color: #fff; }

@media (min-width: 961px) {
  .home .site-header:not(.is-scrolled) .site-nav ul a { color: #fff; }
  .home .site-header:not(.is-scrolled) .site-nav ul a:hover { color: #fff; }
  .home .site-header:not(.is-scrolled) .btn-primary { background: #fff; color: var(--ink); }
}

@media (max-width: 960px) {
  .js.home .site-nav { background: var(--card); }
  .home .site-nav :focus-visible { outline-color: var(--ink); }
}

/* ---------- Hero: golden hour, with the studio display standing in the scene ---------- */
.hero {
  position: relative;
  isolation: isolate;
  min-height: min(100svh, 1000px);
  padding: clamp(112px, 14vw, 168px) 0 clamp(40px, 6vw, 72px);
  color: #fff;
  overflow: clip;
}

.hero-bg { position: absolute; inset: 0; z-index: -1; background: #1c1736; overflow: hidden; }

.hero-photo {
  position: absolute;
  left: 0;
  top: -5%;
  width: 100%;
  height: 110%;
  max-width: none;
  object-fit: cover;
  object-position: 34% 50%;
  will-change: transform;
}

/* Scrim for the headline in the sky, and a fade down into the fog ground */
.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(12, 12, 34, 0.55) 0%, rgba(12, 12, 34, 0.18) 38%, rgba(12, 12, 34, 0) 56%),
    linear-gradient(180deg, rgba(8, 6, 8, 0) 62%, rgba(8, 6, 8, 0.4) 86%, var(--paper) 100%);
}

/* A shaft of low sun */
.hero-beam {
  position: absolute;
  inset: 0;
  background: linear-gradient(112deg, transparent 52%, rgba(255, 176, 96, 0.18) 66%, transparent 80%);
  mix-blend-mode: screen;
  pointer-events: none;
}

.hero-grid { display: block; }
.hero-copy { max-width: 1080px; }
.hero .slate { color: rgba(255, 255, 255, 0.92); }
.hero .slate::before { background: #ff9a5c; }

.hero h1 {
  max-width: 13em;
  margin: 0;
  font-size: clamp(2.9rem, 7.4vw, 7.2rem);
  font-weight: 300;
  line-height: 0.96;
  letter-spacing: -0.05em;
  color: #fff;
  text-shadow: 0 2px 40px rgba(10, 8, 30, 0.35);
}

.hero h1 em { color: #ffc79a; }

.hero .lede {
  max-width: 34em;
  margin-top: clamp(20px, 2.6vw, 32px);
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.1rem, 1.7vw, 1.4rem);
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.94);
  text-shadow: 0 1px 24px rgba(10, 8, 30, 0.4);
}

.hero .cta-row { margin-top: clamp(24px, 3vw, 36px); }
.hero .btn-primary { background: #fff; color: var(--ink); }
.hero .btn-primary:hover { background: var(--paper); }
.hero .btn-ghost { border-color: rgba(255, 255, 255, 0.75); color: #fff; }
.hero .btn-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, 0.12); }
.hero :focus-visible { outline-color: #fff; }
.hero .hero-points { margin-top: 1.5rem; color: rgba(255, 255, 255, 0.95); }
.hero .hero-points li { text-shadow: 0 1px 16px rgba(10, 8, 30, 0.45); }
.hero .hero-points li::before { border-color: #ff9a5c; }

/* The studio display standing in the scene: flat CSS monitor, every part sized in cqw so it scales as one piece */
.hero-stage {
  position: relative;
  width: min(100%, 1100px);
  margin: clamp(32px, 4vw, 56px) auto 0;
}
.hd { position: relative; margin: 0; }
.hd-device { position: relative; width: min(100%, 980px); margin: 0 auto; container-type: inline-size; }
.hd-bezel {
  position: relative;
  padding: 1.4cqw;
  background: #050505;
  border-radius: 1.6cqw;
  border: max(2px, 0.35cqw) solid #c9c6c0;
  box-shadow: 0 0 0 1px #8d8a85, 0 4cqw 6cqw -2.4cqw rgba(20, 8, 0, 0.7), 0 0 9cqw -2cqw rgba(255, 150, 70, 0.35);
  z-index: 2;
}
.hd-bezel::after { content: ""; position: absolute; inset: 0; border-radius: 1.2cqw; pointer-events: none; background: linear-gradient(115deg, rgba(255, 255, 255, 0.12), transparent 30%); z-index: 4; }
.hd-screen { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #000; border-radius: 0.5cqw; cursor: pointer; }
.hd-video { display: block; width: 100%; height: 100%; object-fit: cover; background: #000; }
.hd-neck {
  position: relative; width: 17cqw; height: 8cqw; margin: -0.2cqw auto 0;
  background: linear-gradient(90deg, #6f6e6c, #bdbcba 45%, #858482); z-index: 1;
}
.hd-foot {
  position: relative; width: 30cqw; height: 1.4cqw; min-height: 4px; margin: 0 auto;
  background: linear-gradient(180deg, #cfcecc, #7d7c7a); border-radius: 0.4cqw 0.4cqw 1.4cqw 1.4cqw;
  box-shadow: 0 1.8cqw 2.2cqw -0.6cqw rgba(10, 4, 0, 0.7);
}
.hd-play {
  position: absolute; inset: 0; margin: auto; z-index: 3;
  width: clamp(52px, 11.5cqw, 116px); height: clamp(52px, 11.5cqw, 116px); border-radius: 50%;
  border: 0; padding: 0; background: #fff; color: var(--ink, #14110f); cursor: pointer;
  display: grid; place-items: center;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35), 0 2px 8px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.hd-play:hover { transform: scale(1.06); }
.hd-play svg { width: 40%; height: 40%; margin-left: 6%; }
.hd-play[hidden] { display: none; }
.hd-play:focus-visible { outline: 3px solid #e04a1d; outline-offset: 4px; }
.hd-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(255, 255, 255, 0.22); z-index: 3; pointer-events: none; }
.hd-progress span { display: block; height: 100%; width: 0; background: #e04a1d; }
@media (max-width: 760px) { .hd-progress { height: 3px; } }
@media (prefers-reduced-motion: reduce) { .hd-play { transition: none; } .hd-play:hover { transform: none; } }

/* ---------- Brands ---------- */
.home .brands { border-color: var(--rule); padding-block: 34px 38px; }
.home .brands-title { font-family: var(--font-display); font-weight: 500; }

/* ---------- Problem ---------- */
.home #approach { padding-top: clamp(72px, 10vw, 140px); }
.home .split { grid-template-columns: minmax(0, 1fr) minmax(0, 3fr); }
.home .split-body { max-width: 980px; }
.home .split-body > .large { margin-top: 1.6rem; max-width: 34em; }
.home .disconnects li { font-size: 1.0625rem; }

/* ---------- Services: giant words ---------- */
.home .services { grid-template-columns: 1fr; gap: 0; }

.home .service {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  column-gap: clamp(24px, 5vw, 80px);
  align-items: start;
  padding: clamp(28px, 4vw, 52px) 0;
  background: none;
  border: 0;
  border-top: 1px solid var(--rule-strong);
  border-radius: 0;
}
.home .service:last-child { border-bottom: 1px solid var(--rule-strong); }

.home .service-step {
  grid-column: 1;
  grid-row: 1 / span 3;
  margin: 0;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(3.6rem, 10.5vw, 10rem);
  line-height: 0.9;
  letter-spacing: -0.065em;
  color: var(--ink);
  transition: transform 0.6s var(--ease-out);
}

.home .service h3 { grid-column: 2; margin: 6px 56px 10px 0; font-size: clamp(1.25rem, 1.8vw, 1.6rem); }
.home .service > p:not(.service-step) { grid-column: 2; margin: 0; max-width: 34em; }
.home .service-includes { grid-column: 2; margin-top: 20px; }

.home .service-includes li {
  padding: 6px 14px;
  background: transparent;
  border-color: var(--rule-strong);
  color: var(--ink);
  transition: background-color 0.25s ease, color 0.25s ease;
}

.service-arrow {
  position: absolute;
  right: 0;
  top: clamp(28px, 4vw, 52px);
  width: 44px;
  height: 44px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  transition: background-color 0.3s ease, transform 0.4s var(--ease-out);
}
.service-arrow::before {
  content: "\2197";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 1.2rem;
  line-height: 1;
  color: var(--ink);
  transition: color 0.3s ease;
}
.service:hover .service-arrow { background: var(--ink); transform: rotate(45deg); }
.service:hover .service-arrow::before { color: var(--paper); }
.service:hover .service-step { transform: translateX(10px); }
.service:hover .service-includes li { background: rgba(255, 255, 255, 0.7); }

.home .spend-note {
  max-width: 62ch;
  margin-top: clamp(32px, 4vw, 56px);
  border-left-color: var(--signal);
  background: transparent;
  padding-left: 22px;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 1.2rem;
}
.home .spend-note strong { font-weight: 500; }

/* ---------- Process: sticky stacked steps ---------- */
.home .section-band {
  background:
    radial-gradient(50% 60% at 90% 10%, rgba(255, 190, 120, 0.28), transparent 70%),
    var(--paper-2);
  padding-block: clamp(72px, 10vw, 140px);
}

.process-layout {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}

.process-head { position: sticky; top: 120px; margin-bottom: 0 !important; }

.steps { list-style: none; display: block; padding-bottom: 24px; }

.step {
  position: sticky;
  top: calc(104px + var(--n, 0) * 22px);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px clamp(20px, 3vw, 40px);
  min-height: 260px;
  margin-bottom: 28px;
  padding: clamp(24px, 3.4vw, 40px);
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 28px;
  box-shadow: var(--home-shadow);
}
.step:nth-child(1) { --n: 0; }
.step:nth-child(2) { --n: 1; }
.step:nth-child(3) { --n: 2; }
.step:nth-child(4) { --n: 3; margin-bottom: 0; }

.step-num {
  grid-row: 1 / span 2;
  font-family: var(--font-display);
  font-size: clamp(3.4rem, 6vw, 5.6rem);
  font-weight: 300;
  line-height: 0.9;
  letter-spacing: -0.06em;
  color: var(--ink);
}
.step:last-child .step-num { color: var(--signal-ink); }
.step h3 { align-self: end; margin: 0; font-size: clamp(1.6rem, 2.6vw, 2.3rem); font-weight: 400; }
.step p { grid-column: 2; margin: 0; max-width: 30em; font-size: 1.0625rem; }

/* ---------- Commitments ---------- */
.home .result { border-top: 1px solid var(--rule-strong); padding-top: 28px; }
.home .result-figure {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(3.4rem, 8vw, 7.4rem);
  letter-spacing: -0.06em;
  color: var(--ink);
}
.home .result-label { font-weight: 400; max-width: 22em; }

/* ---------- Google Ads: the one dark band ---------- */
.home .ads-band {
  margin-block: clamp(24px, 4vw, 48px) 0;
  background:
    radial-gradient(45% 70% at 88% 12%, rgba(224, 74, 29, 0.3), transparent 70%),
    var(--night);
}
.home .ads-band h2 { color: var(--night-text); font-size: clamp(2.5rem, 5.8vw, 5.2rem); }

.home .ads-band .slate { color: var(--night-muted); }
.home .ads-band .slate::before { background: var(--night-signal); }

/* ---------- Work: floating cards in a sunbeam of dust ---------- */
.home #work {
  position: relative;
  isolation: isolate;
  overflow: clip;
  background: linear-gradient(180deg, var(--paper), #f5efe3 40%, var(--paper));
}

.dust-wrap { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.dust-beam {
  position: absolute;
  inset: -10% -10%;
  background: linear-gradient(115deg, transparent 28%, rgba(255, 208, 140, 0.34) 44%, rgba(255, 226, 180, 0.16) 56%, transparent 72%);
  filter: blur(30px);
}
.dust { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.home #work > .container { position: relative; z-index: 1; }

.home .cases-note { max-width: 58ch; margin-bottom: clamp(24px, 3vw, 40px); }

.home .cases {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 0 clamp(16px, 2vw, 32px);
  align-items: start;
}

.home .case,
.home .case:nth-child(n + 4) {
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: 22px;
  box-shadow: var(--home-shadow);
  will-change: transform;
}

.home .case:nth-child(3n + 1) { grid-column: 1 / span 4; rotate: -1deg; }
.home .case:nth-child(3n + 2) { grid-column: 5 / span 4; margin-top: clamp(28px, 4vw, 60px); rotate: 0.9deg; }
.home .case:nth-child(3n) { grid-column: 9 / span 4; margin-top: clamp(8px, 1.4vw, 20px); rotate: -0.6deg; }
.home .case:nth-child(n + 4) { margin-bottom: 0; }
.home .case:nth-child(3n + 1):nth-child(n + 4) { margin-top: clamp(-30px, -2vw, -8px); }
.home .case { margin-bottom: clamp(-30px, -2vw, -6px); }
.home .case-body { padding: clamp(16px, 1.8vw, 24px); }
.home .case h3 { font-size: clamp(1.25rem, 1.7vw, 1.7rem); }

.home .case-media { border-radius: 0; }
.home .case-badge { background: rgba(248, 246, 241, 0.92); font-family: var(--font-display); font-weight: 500; }
.home .case h3 { font-weight: 400; letter-spacing: -0.035em; }
.home .case-link { color: var(--ink); font-weight: 500; text-decoration-color: var(--signal); }

/* ---------- Founder, FAQ ---------- */
.home #about,
.home #faq { background: none; }
.home .founder-name { font-family: var(--font-display); font-weight: 300; font-size: clamp(2.4rem, 5vw, 4.4rem); letter-spacing: -0.05em; }
.home .founder-figure { border-radius: 28px; box-shadow: var(--home-shadow); border-color: rgba(255, 255, 255, 0.9); }
.home .founder-bio { font-family: var(--font-display); font-weight: 300; font-size: clamp(1.2rem, 1.8vw, 1.45rem); line-height: 1.5; }
.home .person-role { color: var(--signal-ink); font-weight: 500; }

.home .faq summary { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.15rem, 1.8vw, 1.5rem); letter-spacing: -0.02em; }

/* ---------- Contact: light, a last warm beam ---------- */
.home .section-contact {
  background:
    radial-gradient(50% 70% at 85% 20%, rgba(255, 190, 120, 0.3), transparent 70%),
    var(--paper-2);
  color: var(--ink-soft);
}
.home .section-contact h2,
.home .section-contact .contact-band h2 { color: var(--ink); font-size: clamp(2.6rem, 6.6vw, 6rem); }
.home .section-contact .slate { color: var(--ink-soft); }
.home .section-contact .slate::before { background: var(--signal); }
.home .section-contact .contact-band p { color: var(--ink); }
.home .contact-band { display: grid; gap: 20px; justify-items: start; }
.home .contact-band .large { margin: 0; max-width: 32em; }

/* ---------- Footer ---------- */
.home .site-footer { background: var(--paper); color: var(--ink-soft); border-top: 1px solid var(--rule); }
.home .site-footer a { color: var(--ink); }
.home .footer-mark { color: var(--ink); font-family: var(--font-display); font-weight: 300; font-size: 1.4rem; letter-spacing: -0.03em; }
.home .site-footer :focus-visible { outline-color: var(--ink); }

/* ---------- Floating "Get a free website review" ---------- */
.fab {
  position: fixed;
  right: clamp(14px, 2.4vw, 28px);
  bottom: clamp(14px, 2.4vw, 28px);
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px 0 18px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 18px 40px -14px rgba(20, 12, 4, 0.55);
  transition: opacity 0.3s ease, transform 0.4s var(--ease-out), background-color 0.2s ease, visibility 0.3s;
}
.fab::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--signal); }
.fab:hover { background: #2c2b29; }
.fab:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; box-shadow: 0 0 0 5px var(--paper), 0 18px 40px -14px rgba(20, 12, 4, 0.55); }
.fab.is-hidden { opacity: 0; transform: translateY(12px); visibility: hidden; pointer-events: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .home .split { grid-template-columns: 1fr; }
  .process-layout { grid-template-columns: 1fr; }
  .process-head { position: static; }
  .step { top: calc(84px + var(--n, 0) * 16px); }
}

@media (max-width: 760px) {
  .hero { padding-top: 104px; min-height: 0; }
  .hero-photo { object-position: 38% 50%; }
  .hero-shade { background: linear-gradient(180deg, rgba(12, 12, 34, 0.6) 0%, rgba(12, 12, 34, 0.35) 45%, rgba(8, 6, 8, 0.1) 70%, rgba(8, 6, 8, 0.4) 88%, var(--paper) 100%); }

  .home .service { grid-template-columns: 1fr; }
  .home .service-step { grid-row: auto; font-size: clamp(3.8rem, 20vw, 6rem); margin-bottom: 14px; }
  .home .service h3,
  .home .service > p:not(.service-step),
  .home .service-includes { grid-column: 1; }
  .home .service h3 { margin-right: 56px; }
  .service-arrow { top: clamp(28px, 4vw, 52px); }

  .step { grid-template-columns: 1fr; min-height: 0; }
  .step-num { grid-row: auto; font-size: 3rem; margin-bottom: 8px; }
  .step p { grid-column: 1; }

  /* Selected sites: stacked card deck. Without JS it is a horizontal scroll-snap row. */
  .home .cases {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 8px;
  }
  .home .case,
  .home .case:nth-child(n) {
    flex: 0 0 84%;
    margin: 0;
    rotate: 0deg;
    scroll-snap-align: center;
  }
  .home .cases.is-deck {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    overflow: visible;
    scroll-snap-type: none;
    padding-bottom: 36px;
    touch-action: pan-y;
    align-items: stretch;
  }
  .home .cases.is-deck .case,
  .home .cases.is-deck .case:nth-child(n) {
    grid-area: 1 / 1;
    width: auto;
    flex: none;
    transform-origin: 50% 100%;
    transition: transform 300ms cubic-bezier(0.22, 1, 0.36, 1), opacity 300ms ease;
    touch-action: pan-y;
    will-change: transform, opacity;
  }
  .home .case[data-pos="0"] { transform: none; opacity: 1; z-index: 3; }
  .home .case[data-pos="1"] { transform: translateY(14px) scale(0.94); opacity: 1; z-index: 2; }
  .home .case[data-pos="2"] { transform: translateY(28px) scale(0.88); opacity: 1; z-index: 1; }
  .home .case[data-pos="far"] { transform: translateY(28px) scale(0.88); opacity: 0; z-index: 0; pointer-events: none; }
  .home .case[data-pos="prev"] { transform: translateX(-60%) scale(0.94); opacity: 0; z-index: 4; pointer-events: none; }
  .home .case.is-dragging { transition: none !important; }
  .home .cases.is-deck .case-media { aspect-ratio: 16 / 9; }
  .home .cases.is-deck .case-body { padding: 14px 18px 16px; }
  .home .cases.is-deck .case-feature { margin-top: 8px; font-size: 0.9375rem; }
  .home .case[data-pos="1"] .case-body,
  .home .case[data-pos="2"] .case-body { visibility: hidden; }

  .home .deck-nav { display: flex; align-items: center; justify-content: center; gap: 20px; margin-top: 8px; }
  .home .deck-nav[hidden] { display: none; }
  .home .deck-btn {
    width: 48px; height: 48px; border-radius: 50%;
    display: grid; place-items: center;
    border: 1px solid var(--rule); background: var(--card); color: var(--ink);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  .home .deck-btn:active { transform: scale(0.94); }
  .home .deck-count { margin: 0; min-width: 4.5ch; text-align: center; font-variant-numeric: tabular-nums; font-weight: 500; }
}
}

@media (max-width: 480px) {
  .fab { padding: 0 18px 0 14px; font-size: 0.875rem; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-photo { will-change: auto; }
  .service:hover .service-step { transform: none; }
  .fab { transition: none; }
  .home .cases.is-deck .case { transition: none; }
}

@media (forced-colors: active) {
  .fab { border: 1px solid CanvasText; }
}

/* ---------- Warm grade (no purple sky), mobile readability, reveal masks ---------- */
.hero-bg { background: #2a1a0e; }
.hero-photo { filter: sepia(0.7) saturate(1.3) hue-rotate(-6deg) brightness(0.9) contrast(1.05); }
.hero-shade {
  background:
    linear-gradient(180deg, rgba(34, 19, 8, 0.6) 0%, rgba(34, 19, 8, 0.22) 40%, rgba(34, 19, 8, 0) 58%),
    linear-gradient(180deg, rgba(20, 12, 6, 0) 62%, rgba(20, 12, 6, 0.38) 86%, var(--paper) 100%);
}
.hero h1 { text-shadow: 0 2px 36px rgba(34, 16, 4, 0.4); }
.hero .lede, .hero .hero-points li { text-shadow: 0 1px 22px rgba(34, 16, 4, 0.5); }

/* word masks for heading reveals */
.home h2 .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.home h2 .w > span { display: inline-block; }

@media (max-width: 760px) {
  .hero-shade {
    background: linear-gradient(180deg, rgba(34, 19, 8, 0.66) 0%, rgba(34, 19, 8, 0.42) 46%, rgba(20, 12, 6, 0.16) 70%, rgba(20, 12, 6, 0.42) 90%, var(--paper) 100%);
  }
  /* Phones are most of the traffic: steadier type, shorter lines, less scrolling */
  .home { font-size: 17px; }
  .home p, .home li { line-height: 1.6; }
  .hero h1 { font-size: clamp(2.45rem, 11vw, 3.3rem); font-weight: 400; line-height: 1.02; letter-spacing: -0.04em; }
  .hero .lede { font-size: 1.0625rem; font-weight: 400; line-height: 1.55; }
  .home main h2 { font-size: clamp(2rem, 8.6vw, 2.5rem); line-height: 1.06; letter-spacing: -0.035em; }
  .home .section { padding-block: 64px; }
  .home .section-head { margin-bottom: 28px; }
  .home .service-step { font-size: clamp(3rem, 16vw, 4.4rem); }
  .hero-stage { margin-top: 28px; }
  .fab { left: 16px; right: 16px; justify-content: center; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); }
}

@media (min-width: 761px) { .home .deck-nav { display: none !important; } }

.home .site-header:not(.is-scrolled) .header-call { color: #fff; border-color: rgba(255, 255, 255, 0.7); }
