/* ==========================================================================
   Situation Bear Design — hand-built replacement for the Framer site
   Breakpoints match the Framer original: desktop ≥1200, tablet 810–1199, mobile <810
   ========================================================================== */

:root {
  /* Colours (taken from the Framer tokens) */
  --ink:        #101014;  /* near-black: hero, dark card, contact panel */
  --ink-2:      #2b2b42;  /* body copy on light */
  --ink-3:      #3d3d47;  /* secondary copy on light */
  --navy:       #0f1233;
  --deep:       #0b173c;  /* dark section backgrounds: hero, dark card, contact panel */  /* "Have Questions?" */
  --mist:       #d0d1db;  /* body copy on dark */
  --violet:     #5456e3;  /* primary buttons, tags, stat labels */
  --orange:     #eb8a3f;  /* secondary buttons */
  --gold:       #85712a;  /* section pills */
  --red:        #ff2244;  /* required asterisk */
  --paper:      #fafafa;  /* services bg, FAQ items */
  --card-light: #e9ecf2;  /* light case-study card */
  --line:       #e6e6e6;
  --white:      #fff;

  /* Type */
  --font-body:    "Manrope", system-ui, sans-serif;
  --font-display: "Inter Tight", "Manrope", system-ui, sans-serif; /* stands in for Graphik */
  --font-plus:    "Inter", system-ui, sans-serif;

  /* Motion — a near-critically-damped spring (Framer: stiffness 250, damping 80) */
  --ease-spring: cubic-bezier(.22, 1, .36, 1);
  --dur: .9s;

  /* Spacing: every section uses the same top and bottom padding.
     --section-top is the space above a section's heading; --section-bottom closes it out. */
  --hero-y: 100px;
  --section-top: 56px;
  --section-bottom: 80px;

  interpolate-size: allow-keywords; /* lets <details> animate to height:auto where supported */
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, figure, blockquote, dl, dd, ul { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; }

.container { width: 100%; max-width: 1440px; margin: 0 auto; padding: 0 80px; }
.container--wide { padding: 0 40px; }

/* ---------- Shared bits ---------- */
.pill {
  display: inline-block;
  padding: 5px 12px 6px;
  border-radius: 16px;
  font-size: 16px; line-height: 16px; font-weight: 500; letter-spacing: .5px;
  color: var(--white);
}
.pill--gold { background: var(--gold); }

.h2 {
  font-size: 50px; line-height: 1.1; font-weight: 500; letter-spacing: -.8px;
  color: var(--ink);
}
.h2--on-dark { color: var(--white); }

.lead { font-size: 22px; line-height: 1.5; letter-spacing: -.3px; color: var(--ink-3); }
.lead--on-dark { color: var(--mist); }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  border-radius: 64px;
  font-size: 18px; line-height: 1.4; font-weight: 500;
  color: var(--white); text-decoration: none;
  transition: transform .3s var(--ease-spring), filter .3s, box-shadow .3s;
}
.btn:hover { transform: translateY(-2px); filter: brightness(1.08); }
.btn:active { transform: translateY(0); }
.btn--primary { padding: 16px 32px; background: var(--violet); }
.btn--secondary { padding: 8px 32px; background: var(--orange); }
.btn__arrow { width: 14px; height: 14px; fill: currentColor; transition: transform .3s var(--ease-spring); }
.btn:hover .btn__arrow { transform: translate(2px, -2px); }
.btn--down:hover .btn__arrow { transform: rotate(135deg); }

:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero { background: var(--deep); color: var(--white); padding: var(--hero-y) 0; }
.hero__inner {
  display: flex; align-items: flex-end; justify-content: center; gap: 80px;
  padding: 0 50px;
}
.hero__content { width: 604px; flex: none; }

.hero__title {
  margin: 15px 0 31px;
  font-family: var(--font-display);
  font-size: 52.8px; line-height: 1.3; font-weight: 500; letter-spacing: -.5px;
}
.hero__title .line { display: block; }
/* keyword line inside the H1: reads as a small label above the headline */
.hero__kicker { display: block; margin-bottom: 10px; font-family: var(--font-body); font-size: 17px; line-height: 1.4; font-weight: 600; letter-spacing: .2px; color: var(--mist); }
.js .hero__kicker { opacity: 0; transform: translateY(10px); transition: opacity var(--dur) var(--ease-spring) .1s, transform var(--dur) var(--ease-spring) .1s; }
.js .is-loaded .hero__kicker { opacity: 1; transform: none; }
.hero__body .lead { max-width: 483px; }
.hero__body .btn { margin-top: 44px; }

/* bear illustration with the review card overlapping its lower half */
.hero__side { width: 280px; margin-right: 90px; flex: none; position: relative; display: flex; flex-direction: column; align-items: flex-start; }
.hero__logo { display: block; width: 230px; height: 230px; margin-left: -40px; border-radius: 50%; object-fit: cover; }

.review {
  position: relative; z-index: 1;
  width: calc(100% + 30px); margin: -70px 0 0 60px;
  padding: 20px 30px 30px;
  border-radius: 10px;
  background: linear-gradient(160deg, rgba(26, 40, 88, .9), rgba(11, 23, 60, .96));
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .6);
}
.review__stars { display: flex; gap: 4px; margin-bottom: 8px; color: var(--white); }
.review__stars svg { width: 20px; height: 20px; }
.review blockquote { margin: 0; font-size: 16px; line-height: 1.3; letter-spacing: -.1px; }

/* ==========================================================================
   ABOUT — ticker + stats
   ========================================================================== */
/* image strip + stats are part of the hero: the strip sits snug under it */
.about { padding: 23px 0 var(--section-bottom); }

.ticker { overflow: hidden; }
.ticker__track {
  display: flex; width: max-content;
  animation: ticker var(--ticker-dur, 40s) linear infinite;
}
.ticker__set { display: flex; gap: 29px; padding-right: 29px; }
.ticker__set img { width: 291px; height: 280px; object-fit: cover; flex: none; }
@keyframes ticker { to { transform: translate3d(calc(-1 * var(--set-w, 50%)), 0, 0); } }

.stats {
  display: grid; grid-template-columns: repeat(3, 308px); justify-content: space-between;
  max-width: 1440px; padding: 32px 80px 0;
}
.stat__num { font-variant-numeric: tabular-nums; font-size: 72px; line-height: 1; font-weight: 600; letter-spacing: -.8px; color: var(--ink); }
.stat__num span:not(.count) { font-family: var(--font-plus); font-size: 31px; font-weight: 400; letter-spacing: 0; vertical-align: 14px; }
.stat__label { margin: 20px 0 6px; font-size: 21px; line-height: 1.5; font-weight: 600; letter-spacing: -.2px; color: var(--violet); }
.stat__text { font-size: 17px; line-height: 1.6; font-weight: 500; letter-spacing: -.1px; color: var(--ink-2); max-width: 290px; }

/* ==========================================================================
   SERVICES (accordion)
   ========================================================================== */
.services { background: var(--paper); padding: var(--section-top) 0 var(--section-bottom); }
.section-head { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; margin-bottom: 40px; }

.accordion details { border-bottom: 1px solid var(--line); }
.accordion summary {
  display: flex; align-items: center; gap: 20px;
  list-style: none; cursor: pointer;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary span { flex: 1; }
.acc-icon { width: 24px; height: 24px; flex: none; fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.acc-plus { width: 22px; height: 22px; flex: none; fill: var(--ink); transition: transform .4s var(--ease-spring); }
.accordion details[open] .acc-plus { transform: rotate(45deg); }

/* smooth open/close where the browser supports ::details-content */
.accordion details::details-content {
  block-size: 0; overflow: hidden;
  transition: block-size .5s var(--ease-spring), content-visibility .5s allow-discrete;
}
.accordion details[open]::details-content { block-size: auto; }

.accordion--services summary {
  padding: 23px 0;
  font-size: 23px; line-height: 1.4; font-weight: 600; letter-spacing: -.2px; color: var(--ink);
  transition: padding .4s var(--ease-spring);
}
.accordion--services details[open] summary { padding: 15px 0; }
.accordion--services .acc-body p {
  padding: 0 30px 30px 0;
  font-size: 19px; line-height: 1.6; letter-spacing: -.1px; color: var(--ink-2);
}

/* ==========================================================================
   OUR WORK — stacked sticky cards
   ========================================================================== */
.work { padding: var(--section-top) 0 var(--section-bottom); }
.section-head--work { margin-bottom: 40px; }   /* same gap under every section heading */
.section-head--work .lead { max-width: 884px; }

.cases__stage { display: flex; flex-direction: column; gap: 16px; }

/* ---- Stacked "pile" mode (desktop/tablet; switched on by main.js) ----
   The stage pins to the viewport; the cards sit on top of each other. Card 1 is on top,
   the others peek out underneath. Scrolling lifts the top card away to reveal the next. */
.cases--stack {
  position: relative;
  height: calc(var(--stack-h) + (var(--n) - 1) * var(--step) + 40px);
}
.cases--stack .cases__stage {
  display: block;
  position: sticky; top: var(--stack-top);
  height: calc(var(--stack-h) + 40px);   /* room for the cards peeking out underneath */
}
/* that peek room already adds space under the pile, so take it off the section's bottom padding */
.work:has(.cases--stack) { padding-bottom: calc(var(--section-bottom) - 40px); }
.cases--stack .case-slot {
  position: absolute; inset: 0 0 auto 0;
  height: var(--stack-h);
  transform-origin: 50% 100%;
  will-change: transform, opacity;
}
.cases--stack .case { height: 100%; }
/* cards further down the pile get a soft veil so the top card reads first */
.cases--stack .case::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: rgba(16, 16, 20, var(--veil, 0));
}
.cases--stack .case { position: relative; }
.js .cases--stack [data-card] { opacity: 1; transform: none; filter: none; transition: none; }

/* progress dots beside the pile */
.stack-dots { position: absolute; right: -26px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 10px; }
.stack-dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 50%; background: #c9ccd6; cursor: pointer; transition: background .3s, transform .3s var(--ease-spring); }
.stack-dots button[aria-current="true"] { background: var(--violet); transform: scale(1.4); }
@media (max-width: 1279px) { .stack-dots { right: -14px; } }

.case {
  display: flex; gap: 61px; align-items: center;   /* thumbnail centred against the text */
  padding: 30px; border-radius: 10px;
  background: var(--card-light); color: var(--ink);
  box-shadow: 0 0 0 1px rgba(16, 16, 20, .06);   /* hairline edge instead of a drop shadow */
  transform-origin: 50% 0;
}
.case--dark { background: var(--deep); color: var(--white); }
.case__media {
  flex: 0 0 50%; align-self: center;
  position: relative; border-radius: 13px;
}
.case__media > video, .case__media:not(.showcase) > img { width: 100%; height: 100%; object-fit: contain; }

/* ---------- Thumbnails: flat, centred, never cropped ----------
   The box takes the card's height (minus padding); every image scales down to fit inside it. */
.showcase {
  height: 360px;                                   /* fallback when the pile isn't active */
  display: flex; align-items: center; justify-content: center; gap: 4%;
  background: none; overflow: visible;
}
.cases--stack .showcase { height: calc(var(--stack-h) - 60px); }
.showcase .shot {
  display: block; flex: 0 1 auto; min-width: 0;
  max-height: 100%; width: auto; height: auto; object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 0 0 1px rgba(16,16,20,.06), 0 18px 36px -18px rgba(16,16,20,.35);
  transition: transform .5s var(--ease-spring);
}
.case:hover .showcase .shot { transform: translateY(-4px); }

/* 1 · Nike: title slide + check-in tablets side by side */
.showcase .shot--slide { max-width: 56%; }
.showcase .shot--nike-app { max-width: 38%; border-radius: 0; box-shadow: none; filter: drop-shadow(0 14px 18px rgba(16,16,20,.18)); }

/* 2 · Software: web app in a browser window beside the analytics dashboard */
.shot--browser { margin: 0; max-width: 62%; display: flex; flex-direction: column; background: #fff; overflow: hidden; }
.shot--browser img { display: block; width: 100%; height: auto; min-height: 0; object-fit: contain; }
.browser__bar { flex: none; display: flex; align-items: center; gap: 5px; height: 22px; padding: 0 10px; background: #eceef3; border-bottom: 1px solid #dfe2ea; }
.browser__bar i { width: 7px; height: 7px; border-radius: 50%; background: #c9ccd6; }
.browser__bar i:nth-child(1) { background: #ff6159; } .browser__bar i:nth-child(2) { background: #ffbd2e; } .browser__bar i:nth-child(3) { background: #28c941; }
.browser__bar span { flex: 1; height: 11px; margin-left: 10px; max-width: 55%; border-radius: 6px; background: #fff; }
.showcase .shot--dash { max-width: 32%; background: #fff; }

/* 3 · Small business: Good Mood Interiors homepage, centred */
.shot--gm-hero { max-width: 92%; }

.case__content { flex: 1; min-width: 0; }
.case--dark .case__content { padding-top: 20px; }
.case__title { font-size: 39px; line-height: 1.3; font-weight: 600; letter-spacing: -1px; }
.tags { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0 36px; }
.tags li {
  padding: 5px 12px 6px; border-radius: 16px; background: var(--violet);
  font-size: 14px; line-height: 14px; color: var(--white);
}
.case__text { font-size: 18px; line-height: 1.5; font-weight: 500; letter-spacing: -.1px; max-width: 680px; }
.case__text + .case__text { margin-top: 27px; }
.case--dark .case__text { color: var(--mist); }
.case .btn { margin-top: 16px; }

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq { padding: var(--section-top) 0 var(--section-bottom); }
/* white section after a white section: don't double the gap */
.work + .faq, .faq + .contact { padding-top: 0; }
.faq__grid { display: grid; grid-template-columns: 407px 1fr; gap: 60px; align-items: start; }
.faq__title {
  margin: 4px 0 10px;
  font-family: var(--font-display);
  font-size: 47px; line-height: 1.5; font-weight: 500; letter-spacing: -1.88px; color: var(--navy);
}
.faq__intro .btn { margin-top: 40px; }

.accordion--faq { display: flex; flex-direction: column; gap: 20px; }
.accordion--faq details { background: var(--paper); border: 1px solid #ededed; border-radius: 10px; padding: 0 25px; }
.accordion--faq summary { padding: 20px 0; gap: 16px; font-size: 22px; line-height: 1.4; font-weight: 500; letter-spacing: -.2px; color: var(--ink); }
.accordion--faq .acc-body a { color: var(--violet); }
.accordion--faq .acc-body p { padding: 0 20px 30px 0; font-size: 18px; line-height: 1.5; letter-spacing: -.1px; color: var(--ink-3); }

/* ==========================================================================
   CONTACT
   ========================================================================== */
.contact { padding: var(--section-top) 20px var(--section-bottom); }
.contact__panel { max-width: 1400px; margin: 0 auto; background: var(--deep); border-radius: 10px; padding: 64px 40px; color: var(--white); }
.contact__grid { display: flex; justify-content: center; align-items: center; gap: 56px; }
.contact__info { width: 550px; }
.contact__info .h2 { margin: 8px 0 20px; }

.contact__lines { margin-top: 40px; padding-bottom: 30px; border-bottom: 1px solid rgba(208, 209, 219, .1); max-width: 528px; display: flex; flex-direction: column; gap: 20px; }
.contact__lines div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.contact__lines dt { font-size: 18px; font-weight: 600; letter-spacing: -.1px; }
.contact__lines dd { font-size: 18px; line-height: 1.5; letter-spacing: -.1px; color: var(--mist); }
.contact__lines a { text-decoration: none; }
.contact__lines a:hover { color: var(--white); }

.contact__social { display: flex; gap: 24px; margin-top: 40px; }
.contact__social a { font-size: 20px; font-weight: 600; letter-spacing: -.1px; color: var(--violet); text-decoration: none; }
.contact__social a:hover { text-decoration: underline; }

.form { width: 640px; flex: none; background: var(--white); color: var(--ink); border-radius: 10px; padding: 20px; display: flex; flex-direction: column; gap: 20px; }
.form label { display: flex; flex-direction: column; gap: 10px; }
.form__label { font-size: 16px; line-height: 1; font-weight: 500; letter-spacing: -.1px; }
.form__label i { font-style: normal; color: var(--red); margin-left: 2px; }
.form input, .form textarea {
  width: 100%; padding: 12px; border: 1px solid var(--line); border-radius: 6px;
  background: var(--paper); color: var(--ink);
  font: 16px/1.3 var(--font-body);
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.form textarea { min-height: 150px; resize: vertical; }
.form input::placeholder, .form textarea::placeholder { color: #999; }
.form input:focus, .form textarea:focus { outline: none; background: var(--white); border-color: var(--violet); box-shadow: 0 0 0 3px rgba(84, 86, 227, .15); }
.form__hp { position: absolute; left: -9999px; }
.form__submit {
  height: 46px; border: 0; border-radius: 6px; cursor: pointer;
  background: var(--ink); color: var(--white);
  font: 500 16px/1.3 var(--font-body);
  transition: background .2s;
}
.form__submit:hover { background: #2a2a33; }
.form__submit:disabled { opacity: .6; cursor: wait; }
.form__status { min-height: 1.4em; font-size: 15px; line-height: 1.4; color: var(--ink-3); }
.form__status.is-ok { color: #1f7a4d; }
.form__status.is-error { color: #c0392b; }

/* ==========================================================================
   CASE STUDIES — the standalone pages (work/*.html)
   ========================================================================== */
.cs { max-width: 980px; margin: 0 auto; padding: 56px 40px 72px; }
.cs__eyebrow { font-size: 15px; font-weight: 600; letter-spacing: .3px; color: var(--violet); margin-bottom: 12px; }
.cs__title { font-size: 52px; line-height: 1.1; font-weight: 600; letter-spacing: -1.4px; color: var(--ink); }
.cs__intro { margin-top: 20px; font-size: 21px; line-height: 1.55; letter-spacing: -.2px; color: var(--ink-2); max-width: 760px; }
.cs .tags { margin: 24px 0 0; }
.cs__meta { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); }
.cs__meta dt { font-size: 13px; font-weight: 600; letter-spacing: .4px; text-transform: uppercase; color: var(--ink-3); margin-bottom: 6px; }
.cs__meta dd { font-size: 16px; line-height: 1.45; font-weight: 500; color: var(--ink); }

.cs__figure { margin: 48px 0 0; }
.cs__figure img { width: 100%; height: auto; border-radius: 10px; }
.cs__figure--pair { display: grid; grid-template-columns: 2.06fr 1fr; gap: 24px; align-items: start; } /* columns sized so both images are the same height */
.cs__figure--pair img:last-child { border-radius: 0; filter: drop-shadow(0 14px 18px rgba(16,16,20,.16)); }

.cs__section { margin-top: 64px; }
.cs__section h2 { font-size: 32px; line-height: 1.2; font-weight: 600; letter-spacing: -.6px; margin-bottom: 16px; }
.cs__section p { font-size: 18px; line-height: 1.6; color: var(--ink-2); max-width: 760px; }
.cs__steps { margin: 0; padding: 0; list-style: none; counter-reset: step; display: grid; gap: 14px; }
.cs__steps li { counter-increment: step; display: grid; grid-template-columns: 44px 1fr; column-gap: 12px; align-items: baseline; padding: 18px 20px; border-radius: 10px; background: var(--paper); border: 1px solid #ededed; }
.cs__steps li::before { content: counter(step, decimal-leading-zero); grid-row: span 2; font-weight: 600; color: var(--violet); }
.cs__steps strong { font-size: 19px; font-weight: 600; }
.cs__steps span { font-size: 16px; line-height: 1.5; color: var(--ink-2); }
.cs__section p + p { margin-top: 16px; }
.cs__section .cs__figure { margin-top: 32px; }
.cs__figure img, .cs__figure video { box-shadow: 0 0 0 1px rgba(16,16,20,.06); }
.cs__figure video { display: block; width: 100%; height: auto; border-radius: 10px; background: #fff; }
.cs__figure--framed { padding: 32px; border-radius: 12px; background: #fff; border: 1px solid #ededed; }
.cs__figure--framed img { box-shadow: none; border-radius: 0; }
.cs__figure--narrow { max-width: 560px; }
/* transparent device mockups: no frame, no outline */
.cs__figure--cutout img { box-shadow: none; border-radius: 0; }
/* booking page (desktop + phone) above the tablet and email screens */
.cs__figure--duo { display: grid; grid-template-columns: 1fr; gap: 40px; justify-items: center; }
.cs__figure--duo img:first-child { width: 72%; }

.cs__brief { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 48px; }
.cs__brief > div { padding: 28px; border-radius: 12px; background: var(--card-light); }
.cs__brief h2 { font-size: 15px; font-weight: 600; letter-spacing: .4px; text-transform: uppercase; color: var(--violet); margin-bottom: 10px; }
.cs__brief p { font-size: 19px; line-height: 1.55; font-weight: 500; color: var(--ink); }

.cs__stat { display: flex; align-items: baseline; gap: 16px; margin-top: 28px !important; padding: 20px 24px; border-left: 3px solid var(--violet); background: var(--paper); border-radius: 0 10px 10px 0; max-width: none !important; }
.cs__stat strong { font-size: 56px; line-height: 1; font-weight: 600; letter-spacing: -1.5px; color: var(--violet); }
.cs__stat span { font-size: 18px; font-weight: 500; color: var(--ink); }

/* draft placeholders: easy to spot, remove the class once real copy is in */
.cs__todo { color: #9a6b2f !important; font-style: italic; }

.cs__cta { margin-top: 72px; padding: 40px; border-radius: 10px; background: var(--deep); color: var(--white); display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cs__cta p { font-size: 24px; font-weight: 500; letter-spacing: -.3px; }

/* standalone page chrome */
.cs-topbar { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; padding: 14px 40px; background: var(--navy); color: var(--white); }
.cs-topbar__brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; color: var(--white); }
.cs-topbar__brand img { width: 32px; height: 32px; border-radius: 50%; }
.cs-topbar__back { font-weight: 600; color: var(--white); text-decoration: none; }
.cs-topbar__back:hover { text-decoration: underline; }



@media (max-width: 809px) {
  .cs { padding: 40px 20px 56px; }
  .cs__title { font-size: 36px; letter-spacing: -.8px; }
  .cs__intro { font-size: 18px; }
  .cs__meta { grid-template-columns: 1fr 1fr; }
  .cs__figure--pair { grid-template-columns: 1fr; }
  .cs__figure--pair img:last-child { width: 70%; justify-self: center; }
  .cs__brief { grid-template-columns: 1fr; }
  .cs__figure--duo img:first-child { width: 100%; }
  .cs__figure--framed { padding: 16px; }
  .cs__stat { flex-direction: column; gap: 6px; }
  .cs__stat strong { font-size: 44px; }
  .cs__section h2 { font-size: 26px; }
  .cs__cta { padding: 28px 20px; }
  .cs__cta p { font-size: 20px; }
  .cs-topbar { padding: 12px 20px; }
}

/* ==========================================================================
   ANIMATION STATES  (only applied when JS runs — see <html class="js">)
   ========================================================================== */

/* 1. Hero: headline letters rise in one by one */
.js .hero__title .char {
  display: inline-block;
  opacity: 0; filter: blur(6px);
  transform: translateY(.45em);
  transition: opacity .6s var(--ease-spring), transform .7s var(--ease-spring), filter .6s var(--ease-spring);
  transition-delay: calc(.15s + var(--ci) * 32ms);
}
.hero__title .word { display: inline-block; white-space: nowrap; }
.js .is-loaded .hero__title .char { opacity: 1; filter: blur(0); transform: none; }

/* 2. Hero: pill, copy, logo, review fade up after the headline */
.js [data-appear] {
  opacity: 0; transform: translateY(var(--y, 40px));
  transition: opacity var(--dur) var(--ease-spring), transform var(--dur) var(--ease-spring);
  transition-delay: var(--delay, 0s);
}
.js .is-loaded [data-appear] { opacity: 1; transform: none; }

/* 3. Sections fade up as they scroll into view */
.js [data-reveal] {
  opacity: 0; transform: translateY(40px);
  transition: opacity var(--dur) var(--ease-spring), transform var(--dur) var(--ease-spring);
  transition-delay: var(--delay, 0s);
}
.js [data-reveal].is-visible { opacity: 1; transform: none; }

/* 4. Case-study cards appear one by one (sequenced in main.js), then stack as you scroll */
.js [data-card] {
  opacity: 0;
  transform: translateY(120px) scale(.92);
  filter: blur(4px);
  transition: opacity .9s var(--ease-spring), transform 1.2s var(--ease-spring), filter .9s var(--ease-spring);
}
.js [data-card].is-visible { opacity: 1; transform: none; filter: none; }
/* the media inside each card follows a beat later for a little depth */
.js [data-card] .case__media { opacity: 0; transform: scale(1.06); transition: opacity .9s var(--ease-spring) .25s, transform 1.4s var(--ease-spring) .25s; }
.js [data-card].is-visible .case__media { opacity: 1; transform: none; }
/* …and the pieces inside each showcase drop in last, one after the other */
.js [data-card] .shot { opacity: 0; translate: 0 28px; transition: opacity .8s var(--ease-spring), translate 1s var(--ease-spring), transform .7s var(--ease-spring); }
.js [data-card] .shot:nth-child(1) { transition-delay: .4s, .4s, 0s; }
.js [data-card] .shot:nth-child(2) { transition-delay: .6s, .6s, 0s; }
.js [data-card].is-visible .shot { opacity: 1; translate: 0 0; }

/* ==========================================================================
   TABLET  810–1199
   ========================================================================== */
@media (max-width: 1279px) {
  :root { --hero-y: 80px; --section-top: 48px; --section-bottom: 64px; }
  .hero__inner { padding: 0 40px; gap: 40px; align-items: center; justify-content: space-between; }
  .hero__side { margin-right: 30px; }
  .hero__content { width: auto; flex: 1; max-width: 604px; }
  .hero__title { font-size: 44px; }

  .stats { grid-template-columns: repeat(3, 1fr); gap: 32px; padding: 26px 40px 0; }

  .container { padding: 0 40px; }
  .container--wide { padding: 0 20px; }
  .case { gap: 40px; }
  .case__media { width: 44%; }
  .case__title { font-size: 34px; }

  .faq__grid { grid-template-columns: 1fr; gap: 40px; }
  .faq__intro { max-width: 560px; }

  .contact__grid { flex-direction: column; align-items: stretch; gap: 48px; }
  .contact__info { width: auto; }
  .form { width: 100%; }
}

@media (min-width: 810px) and (max-width: 1199px) {
  .hero__side { width: 250px; }
  .hero__logo { width: 200px; height: 200px; margin-left: -10px; }
  .review { width: 100%; margin-left: 30px; }
}

/* ==========================================================================
   MOBILE  <810
   ========================================================================== */
@media (max-width: 809px) {
  :root { --hero-y: 64px; --section-top: 40px; --section-bottom: 56px; }
  .hero__inner { flex-direction: column; align-items: stretch; gap: 40px; padding: 0 20px; }
  .hero__title { font-size: 40px; line-height: 1.25; margin: 14px 0 20px; }
  .hero__title .line { display: inline; }
  .hero__body .lead { font-size: 19px; }
  .hero__body .btn { margin-top: 32px; }
  .hero__side { width: 100%; align-items: stretch; }
  .hero__logo { display: none; }
  .review { width: 100%; margin: 0; background: rgba(255, 255, 255, .05); box-shadow: none; }

  .ticker__set img { width: 220px; height: 210px; }
  .ticker__set { gap: 20px; padding-right: 20px; }

  .stats { grid-template-columns: 1fr; gap: 40px; padding: 32px 20px 0; }
  .stat__num { font-size: 60px; }

  .container, .container--wide { padding: 0 20px; }
  .h2 { font-size: 40px; }
  .lead { font-size: 19px; }

  .accordion--services summary { font-size: 19px; gap: 14px; }
  .accordion--services .acc-body p { font-size: 17px; padding-right: 0; }

  .case { flex-direction: column; gap: 24px; padding: 16px; }
  .case__media { flex: none; width: 100%; }
  .showcase { height: 260px; }
  .case__content, .case--dark .case__content { padding: 0 4px 8px; }
  .case__title { font-size: 26px; line-height: 1.25; letter-spacing: -.6px; }
  .tags { margin: 14px 0 24px; gap: 8px; }
  .case__text { font-size: 16px; }

  .faq__title { font-size: 38px; letter-spacing: -1.2px; }
  .accordion--faq details { padding: 0 18px; }
  .accordion--faq summary { font-size: 18px; }
  .accordion--faq .acc-body a { color: var(--violet); }
.accordion--faq .acc-body p { font-size: 16px; padding-right: 0; }

  .contact { padding: var(--section-top) 10px var(--section-bottom); }
  .contact__panel { padding: 40px 16px 16px; }   /* panel stays snug on phones */
  .contact__info { padding: 0 4px; }
  .contact__lines div { flex-direction: column; gap: 2px; }
  .form { padding: 16px; }
}

/* ==========================================================================
   Respect reduced-motion preferences
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  .ticker__track { animation: none; }
  .js .hero__kicker, .js .hero__title .char, .js [data-appear], .js [data-reveal], .js [data-card], .js [data-card] .case__media {
    opacity: 1 !important; transform: none !important; filter: none !important; transition: none !important;
  }
  /* showcase pieces keep their resting tilt, they just don't move */
  .js [data-card] .shot { opacity: 1 !important; translate: none !important; transition: none !important; }
}
