/* ============================================================
   Tonic Worldwide — Brand Consultancy Landing Page
   Design system: White 60% / Ink 32% / Yellow 8% — weighted, never equal.
   Type: Newsreader (serif, headlines + body) · Alverata (labels, via Adobe Fonts)
   ============================================================ */

:root {
  /* Colour tokens */
  --tonic-yellow: #FDD232;
  --tonic-yellow-line: #E8C232;
  --tonic-black: #231F20;
  --surface-ink-2: #1A1718;
  --surface-card-dark: #2F2B2C;
  --ink-700: #3A3537;
  --ink-500: #55504F;
  --ink-400: #7A7573;
  --ink-300: #9A9490;
  --line-soft: #ECEAE6;
  --line-dark: #332F30;
  --line-input-dark: #443F40;
  --text-on-ink-muted: #B8B3B0;

  /* Type */
  --font-serif: "alverata", "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-label: "alverata", "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-accent: "Newsreader", Georgia, "Times New Roman", serif;

  /* Motion */
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --dur-fast: 0.3s;
  --dur-slow: 0.7s;

  /* Layout */
  --content-max: 1240px;
  --gutter: 40px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

em, i { font-family: var(--font-accent); font-style: italic; }

body {
  margin: 0;
  background: #FFFFFF;
  color: var(--tonic-black);
  font-family: var(--font-serif);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
    font-display: swap;
}

::selection { background: var(--tonic-yellow); color: var(--tonic-black); }

img { max-width: 100%; }

/* ── Shared primitives ─────────────────────────────────── */

.container {
  max-width: var(--content-max);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.h1 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(48px, 6vw, 84px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0;
}

.h2 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(32px, 4vw, 50px);
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0;
}

.h3 {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.15;
  margin: 0;
}

.lede {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(18px, 1.6vw, 21px);
  line-height: 1.62;
  color: var(--ink-700);
}

.body-copy {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink-500);
}

.label {
  font-family: var(--font-label);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: 700;
  font-size: 11px;
}

.btn {
  display: inline-block;
  font-family: var(--font-label);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tonic-black);
  background: var(--tonic-yellow);
  padding: 17px 34px;
  text-decoration: none;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  transition: filter var(--dur-fast) ease, box-shadow var(--dur-fast) ease;
}

.btn:hover { filter: brightness(0.94); }

.btn--shadow {
  box-shadow: 0 14px 28px -10px rgba(253, 210, 50, 0.55), 0 6px 14px -6px rgba(35, 31, 32, 0.25);
}

.btn--shadow:hover {
  box-shadow: 0 10px 20px -10px rgba(253, 210, 50, 0.5), 0 4px 10px -6px rgba(35, 31, 32, 0.25);
}

.link-underline {
  font-family: var(--font-label);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--tonic-black);
  text-decoration: none;
  border-bottom: 1.5px solid var(--tonic-black);
  padding-bottom: 3px;
  transition: opacity var(--dur-fast) ease;
}

.link-underline:hover { opacity: 0.55; }

.media-frame {
  overflow: hidden;
  border-radius: 3px;
  background: #F6F4F0;
}

.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--dur-slow) var(--ease);
}

.media-frame:hover img { transform: scale(1.045); }

/* Scroll reveal (JS adds .is-visible). Hidden state only arms once <html> has
   .js (see inline script in <head>) — if JS fails anywhere, headings stay visible
   instead of stuck at opacity:0 forever. */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease);
}

.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* Text reveal animation for major headlines */
.js .text-reveal {
  opacity: 0;
  clip-path: polygon(0 100%, 100% 100%, 100% 100%, 0 100%);
  transform: translateY(28px);
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1),
              clip-path 1.2s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.text-reveal.is-visible {
  opacity: 1;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .js .reveal, .reveal { opacity: 1; transform: none; transition: none; }
  .ticker-track { animation: none !important; }
  .dot { animation: none; }
  .step { animation: none; border-color: var(--line-soft); }
  .process__grid::before { animation: none; opacity: 0; }
}

/* ── Header ────────────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}

.site-header__inner {
  height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-header__logo img { height: 42px; width: auto; display: block; }

.site-nav { display: flex; align-items: center; gap: 22px; }

.label.eyebrow { display: block; color: var(--ink-400); margin: 0 0 14px; }

.site-nav a {
  font-family: var(--font-label);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--tonic-black);
  text-decoration: none;
  transition: opacity var(--dur-fast) ease;
}

.site-nav a:hover { opacity: 0.55; }

.site-header .btn { padding: 12px 22px; font-size: 12px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--tonic-black);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 960px) {
  .nav-toggle { display: flex; }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--line-soft);
    padding: 8px var(--gutter) 16px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .site-nav.is-open { max-height: 420px; }

  .site-nav a {
    padding: 12px 0;
    width: 100%;
    border-bottom: 1px solid var(--line-soft);
  }

  .site-nav a:last-child { border-bottom: none; }
}

/* ── Hero ──────────────────────────────────────────────── */

.hero { padding-top: 100px; padding-bottom: 88px; }

.hero__grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 72px;
  align-items: center;
}

@keyframes rise-in {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero__copy { animation: rise-in 0.8s var(--ease) both; }

.hero__copy .h1 {
  margin-bottom: 28px;
  font-size: clamp(40px, 4.8vw, 68px);
}

.hero__sub { max-width: 560px; margin: 0 0 16px; }

.hero__audience {
  font-family: var(--font-accent);
  font-weight: 300;
  font-style: italic;
  font-size: 18px;
  line-height: 1.6;
  max-width: 520px;
  margin: 0 0 40px;
  color: var(--ink-400);
}

.hero__actions { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }

.hero__microcopy {
  font-family: var(--font-label);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--ink-300);
  margin: 18px 0 0;
}

/* Lead card */
.lead-card {
  background: var(--tonic-black);
  padding: 42px 40px;
  border-radius: 4px;
  box-shadow: 0 24px 48px -16px rgba(35, 31, 32, 0.35);
  animation: rise-in 0.8s var(--ease) 0.15s both;
  margin-top: -40px;
}

.lead-card h2 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 27px;
  line-height: 1.2;
  color: #FFFFFF;
  margin: 0 0 10px;
}

.lead-card__note {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.55;
  color: var(--text-on-ink-muted);
  margin: 0 0 26px;
}

.form { display: flex; flex-direction: column; gap: 12px; }

.form input,
.form textarea,
.form select {
  font-family: var(--font-label);
  font-size: 14px;
  padding: 14px 16px;
  background: var(--surface-card-dark);
  border: 1px solid var(--line-input-dark);
  color: #FFFFFF;
  border-radius: 2px;
  outline: none;
}

.form select {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238F8987' stroke-width='2'><path d='M6 9l6 6 6-6'/></svg>");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 18px;
  padding-right: 44px;
  border-color: var(--tonic-yellow);
}

.form select option[disabled] { color: #8F8987; }

.form__field-label {
  font-family: var(--font-label);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #8F8987;
  margin: 4px 0 -4px;
}

.custom-multiselect {
  position: relative;
  width: 100%;
}

.custom-multiselect__trigger {
  width: 100%;
  font-family: var(--font-label);
  font-size: 14px;
  padding: 14px 16px;
  background: var(--surface-card-dark);
  border: 1px solid var(--line-input-dark);
  color: #FFFFFF;
  border-radius: 2px;
  outline: none;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: border-color 0.2s ease;
}

.custom-multiselect__trigger:focus,
.custom-multiselect.is-open .custom-multiselect__trigger {
  border-color: var(--tonic-yellow);
}

.custom-multiselect__label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 90%;
  color: #8F8987;
}

.custom-multiselect.has-selection .custom-multiselect__label {
  color: #FFFFFF;
}

.custom-multiselect__arrow {
  width: 8px;
  height: 8px;
  border-left: 2px solid #8F8987;
  border-bottom: 2px solid #8F8987;
  transform: rotate(-45deg) translateY(-2px);
  transform-origin: center;
  transition: transform 0.2s ease;
  margin-right: 4px;
}

.custom-multiselect.is-open .custom-multiselect__arrow {
  transform: rotate(135deg) translateY(2px);
}

.custom-multiselect__dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  width: 100%;
  background: var(--surface-card-dark);
  border: 1px solid var(--tonic-yellow);
  border-radius: 2px;
  z-index: 10;
  display: none;
  flex-direction: column;
  padding: 6px;
  gap: 4px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  max-height: 250px;
  overflow-y: auto;
}

.custom-multiselect.is-open .custom-multiselect__dropdown {
  display: flex;
}

.custom-multiselect__option {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-label);
  font-size: 14px;
  padding: 10px 12px;
  color: #FFFFFF;
  border-radius: 2px;
  cursor: pointer;
  user-select: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.custom-multiselect__option input[type="checkbox"] {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.custom-multiselect__option .checkbox-box {
  width: 16px;
  height: 16px;
  border: 1px solid var(--line-input-dark);
  border-radius: 2px;
  position: relative;
  flex-shrink: 0;
  transition: border-color 0.2s, background 0.2s;
}

.custom-multiselect__option input[type="checkbox"]:checked + .checkbox-box {
  background: var(--tonic-yellow);
  border-color: var(--tonic-yellow);
}

.custom-multiselect__option input[type="checkbox"]:checked + .checkbox-box::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 2px;
  width: 4px;
  height: 8px;
  border: solid var(--tonic-black);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.custom-multiselect__option:hover {
  background: rgba(255, 255, 255, 0.05);
}

.custom-multiselect__option:has(input:checked) {
  background: rgba(255, 255, 255, 0.08);
}

.custom-multiselect.is-invalid .custom-multiselect__trigger {
  border-color: #E5484D;
}

.custom-multiselect__error {
  display: none;
  font-family: var(--font-label);
  font-size: 11px;
  color: #E5484D;
  margin-top: 4px;
}

.custom-multiselect.is-invalid ~ .custom-multiselect__error {
  display: block;
}

.form input::placeholder,
.form textarea::placeholder { color: #8F8987; }

.form textarea { resize: vertical; min-height: 72px; }

.form input:focus,
.form textarea:focus,
.form select:focus { border-color: var(--tonic-yellow); }

.form .btn { margin-top: 6px; width: 100%; }

.form__microcopy {
  font-family: var(--font-label);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: #8F8987;
  margin: 8px 0 0;
  text-align: center;
}

.form-thanks { padding: 30px 0; }

.form-thanks strong {
  display: block;
  font-family: var(--font-accent);
  font-style: italic;
  font-weight: 400;
  font-size: 24px;
  color: var(--tonic-yellow);
  margin-bottom: 8px;
}

.form-thanks p {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: 16px;
  color: #D6D2CF;
  margin: 0;
}

/* ── Client ticker ─────────────────────────────────────── */

.ticker-sec {
  background: var(--tonic-black);
  overflow: hidden;
}

.ticker-sec .wrap {
  padding-top: 26px;
  padding-bottom: 0;
  text-align: center;
}

.ticker-label {
  font-family: var(--font-label);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--tonic-yellow);
}

.ticker-mask {
  position: relative;
  padding: 22px 0 30px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.ticker-track {
  display: flex;
  align-items: center;
  gap: 48px;
  width: max-content;
  animation: tickerScroll 40s linear infinite;
}

.ticker-track:hover { animation-play-state: paused; }

.ticker-chip {
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border-radius: 12px;
  padding: 0 20px;
  min-height: 68px;
  min-width: auto;
}

.ticker-text-logo {
  font-family: var(--font-label);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.02em;
  color: #ffffff;
  white-space: nowrap;
}

.ticker-track img {
  height: 68px;
  max-width: 260px;
  width: auto;
  object-fit: contain;
  display: block;
  filter: brightness(0) invert(1);
  opacity: 0.85;
}

.ticker-track img.ticker-logo--flat {
  filter: grayscale(1) brightness(0) invert(0.85);
  opacity: 0.9;
}

/* Balance square/vertical logos so they match the visual weight of landscape logos */
.ticker-track img[src*="tatavaluehomes"],
.ticker-track img[src*="popstar"] {
  height: 96px !important;
  max-width: 300px !important;
}

@keyframes tickerScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ── Problem ───────────────────────────────────────────── */

.problem { padding-top: 104px; }

.section-intro { max-width: 880px; margin-bottom: 56px; }

.section-intro .h2 { margin-bottom: 22px; }

#problem-title {
  font-size: clamp(30px, 3.8vw, 46px);
}

#problem-title em {
  position: relative;
  font-style: italic;
  font-weight: 500;
  transition: color 0.3s ease;
  z-index: 1;
  display: inline-block;
  padding: 0 4px;
}

#problem-title em::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 2px;
  width: 100%;
  height: 12px;
  background: var(--tonic-yellow);
  z-index: -1;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

#problem-title:hover em::after {
  transform: scaleX(1);
}

#problem-title:hover em {
  color: var(--tonic-black);
}

.section-intro p {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: 20px;
  line-height: 1.6;
  color: var(--ink-700);
  margin: 0;
}

.problem__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}

.problem-card {
  border-top: 2px solid var(--tonic-black);
  padding-top: 24px;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s ease, opacity 0.6s ease;
}

.problem-card:hover {
  transform: translateY(-6px);
  border-top-color: var(--tonic-yellow);
  transition-delay: 0s !important;
}

/* Staggered scroll reveal delay */
.problem__grid .problem-card:nth-child(1) { transition-delay: 0s; }
.problem__grid .problem-card:nth-child(2) { transition-delay: 0.1s; }
.problem__grid .problem-card:nth-child(3) { transition-delay: 0.2s; }

.problem-card__num {
  font-family: var(--font-label);
  font-size: 12px;
  letter-spacing: 0.18em;
  font-weight: 700;
  color: var(--tonic-yellow);
  -webkit-text-stroke: 0.4px var(--tonic-black);
  margin-bottom: 16px;
}

.problem-card .h3 { font-size: 26px; line-height: 1.2; margin-bottom: 12px; }

.pull-quote {
  border-top: 1px solid var(--line-soft);
  margin-top: 72px;
  padding-top: 56px;
  text-align: center;
}

.pull-quote p {
  font-family: var(--font-accent);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(24px, 2.8vw, 32px);
  line-height: 1.35;
  max-width: 720px;
  margin: 0 auto;
}

.pull-quote mark {
  background: none;
  color: inherit;
  border-bottom: 3px solid var(--tonic-yellow);
  padding-bottom: 2px;
}

.problem__media { margin-top: 72px; aspect-ratio: 21 / 8; max-width: 1024px; margin-left: auto; margin-right: auto; }

/* ── Services ──────────────────────────────────────────── */

.services { padding-top: 88px; overflow-x: clip; }

.services__head {
  display: grid;
  grid-template-columns: 1fr 320px;
  align-items: end;
  gap: 48px;
  margin-bottom: 44px;
}

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

.services__head .h2 { max-width: 680px; }

.services__head p {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: 15px;
  line-height: 1.45;
  color: var(--ink-500);
  max-width: 320px;
  margin: 0 0 2px;
}

.services__grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
}

.services__grid::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 3px;
  margin-left: -1.5px;
  background: var(--tonic-yellow);
  z-index: 0;
}

.service-row {
  display: grid;
  grid-template-columns: 1fr 64px 1fr;
  grid-template-rows: 1fr;
  align-items: start;
  gap: 32px;
  position: relative;
  z-index: 1;
  padding: 14px 0;
  max-width: 100%;
}

.service-row__card,
.service-row__node,
.service-row__spacer { grid-row: 1; }

.service-row { align-items: stretch; }

.service-row--left .service-row__card { grid-column: 1; }
.service-row--left .service-row__node { grid-column: 2; }
.service-row--left .service-row__spacer { grid-column: 3; }

.service-row--right .service-row__spacer { grid-column: 1; }
.service-row--right .service-row__node { grid-column: 2; }
.service-row--right .service-row__card { grid-column: 3; }

.service-row__node {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--tonic-black);
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: center;
}

.service-row__node span {
  font-family: var(--font-accent);
  font-style: italic;
  font-size: 20px;
  color: var(--tonic-yellow);
}

@media (max-width: 860px) {
  .services__grid::before { display: none; }
  .service-row {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    align-items: stretch;
    gap: 0;
    perspective: 1400px;
  }
  .service-row--left .service-row__card,
  .service-row--right .service-row__card,
  .service-row--left .service-row__node,
  .service-row--right .service-row__node,
  .service-row--left .service-row__spacer,
  .service-row--right .service-row__spacer { grid-column: 1; }
  .service-row__node {
    grid-row: 1;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    margin-bottom: 12px;
  }
  .service-row__node span { font-size: 15px; }

  .service-row__card,
  .service-row__spacer {
    grid-row: 2;
    grid-column: 1;
    width: 100%;
    height: 250px;
    box-sizing: border-box;
    overflow: hidden;
  }

  .service-row__card {
    cursor: pointer;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
    backface-visibility: hidden;
    display: flex;
  }

  .service-row__card .service-tile {
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    overflow: hidden;
  }

  .service-row__card .service-tile p {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    overflow: hidden;
  }

  .service-row.is-flipped .service-row__card { transform: rotateY(180deg); }
}

.service-tile {
  background-color: var(--tonic-yellow);
  position: relative;
  padding: 20px 24px;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 230px;
  box-sizing: border-box;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  overflow: hidden;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.service-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--tonic-yellow);
  border-radius: 10px;
  z-index: 0;
}

.service-tile > * {
  position: relative;
  z-index: 1;
}

.service-tile:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 32px rgba(35, 31, 32, 0.18);
}

.service-tile__lead {
  display: flex;
  align-items: center;
  gap: 14px;
}

.service-tile__icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--tonic-black);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0;
  flex-shrink: 0;
}

.service-tile img {
  width: 18px;
  height: 18px;
  display: block;
  filter: invert(1);
}

.service-tile .h3 { font-size: 19px; margin-bottom: 0; line-height: 1.2; font-weight: bold; }

.service-tile__content {
  display: block;
}

.service-tile p {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: 14px;
  line-height: 1.45;
  color: #4A4443;
  margin: 0;
}

.service-row__spacer {
  position: relative;
  height: 100%;
  min-height: 180px;
  align-self: stretch;
  max-width: 100%;
  overflow: visible;
}

.service-row__spacer ul {
  list-style: none;
  margin: 0;
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  max-width: 100%;
  box-sizing: border-box;
  min-height: 100%;
  background: var(--tonic-black);
  border-radius: 10px;
  box-shadow: 0 16px 34px rgba(0,0,0,0.22);
  opacity: 0;
  pointer-events: none;
  transform: translateX(48px);
  transition: opacity 0.4s ease, transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 3;
}

.service-row--right .service-row__spacer ul { transform: translateX(-48px); }

.service-row__spacer li {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: 13px;
  line-height: 1.35;
  color: var(--text-on-ink-muted);
  padding-left: 16px;
  position: relative;
}

.service-row__spacer li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--tonic-yellow);
}

.service-row__spacer li {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.service-row__spacer li:nth-child(1) { transition-delay: 0.1s; }
.service-row__spacer li:nth-child(2) { transition-delay: 0.18s; }
.service-row__spacer li:nth-child(3) { transition-delay: 0.26s; }

.service-row:hover .service-row__spacer ul {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
  z-index: 3;
}

.service-row:hover .service-row__spacer li {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 860px) {
  .service-row__spacer {
    margin-top: 0;
    height: 250px;
    box-sizing: border-box;
    cursor: pointer;
    background: var(--tonic-black);
    border-radius: 10px;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    transform: rotateY(-180deg);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
  }
  .service-row.is-flipped .service-row__spacer { transform: rotateY(0deg); }
  .service-row__spacer ul {
    position: static;
    opacity: 1;
    pointer-events: auto;
    transform: none !important;
    background: transparent;
    padding: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  .service-row__spacer li {
    opacity: 1;
    transform: none;
    color: var(--text-on-ink-muted);
  }
  .service-row__spacer li::before { background: var(--tonic-yellow); position: absolute; left: 0; top: 7px; width: 5px; height: 5px; border-radius: 50%; }
}

.service-tile li {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: 13px;
  line-height: 1.35;
  color: #4A4443;
  padding-left: 16px;
  position: relative;
}

.service-tile li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--tonic-black);
  opacity: 0.4;
}

.service-tile__divider {
  display: none;
}

/* ── Process ───────────────────────────────────────────── */

.process { padding-top: 104px; padding-bottom: 60px; }

.process__head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  margin-bottom: 64px;
}

.process__head .h2 { margin-bottom: 22px; }

.process__head p {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: 20px;
  line-height: 1.6;
  color: var(--ink-700);
  margin: 0;
}

.process__media { aspect-ratio: 3 / 2; }

.process__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  position: relative;
}

.process__grid::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 30%;
  height: 3px;
  margin-top: -1.5px;
  background: var(--tonic-yellow);
  border-radius: 2px;
  z-index: 0;
  animation: line-travel 4.8s linear infinite;
}

@keyframes line-travel {
  0% { left: -30%; }
  100% { left: 100%; }
}

.step {
  position: relative;
  z-index: 1;
  background: #FFFFFF;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  padding: 26px 24px 28px;
  animation: step-glow 4.8s ease-in-out infinite;
}

.step:nth-child(1) { animation-delay: 0s; }
.step:nth-child(2) { animation-delay: 1.2s; }
.step:nth-child(3) { animation-delay: 2.4s; }
.step:nth-child(4) { animation-delay: 3.6s; }

@keyframes step-glow {
  0%, 8% { border-color: var(--tonic-yellow); box-shadow: 0 0 0 3px rgba(240,196,55,0.18), 0 12px 28px rgba(35,31,32,0.1); }
  25%, 100% { border-color: var(--line-soft); box-shadow: none; }
}

.step__num {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 16px;
}

.step__num span:first-child {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 42px;
  line-height: 1;
  letter-spacing: -0.02em;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--tonic-yellow);
  display: inline-block;
  animation: dot-pulse 2.2s ease-in-out infinite;
}

.step .h3 { font-size: 25px; margin-bottom: 12px; }

.step p {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-500);
  margin: 0;
}

/* ── FAQ ───────────────────────────────────────────────── */

.faq {
  max-width: 1000px;
  margin: 0 auto;
  padding: 96px var(--gutter) 60px;
}

.faq__head { text-align: center; margin-bottom: 56px; }

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

.faq-item { border-bottom: 1px solid var(--line-soft); }

.faq-item__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 26px 4px;
  text-align: left;
}

.faq-item__q span:first-child {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 21px;
  line-height: 1.3;
  color: var(--tonic-black);
}

.faq-item__sign {
  font-family: var(--font-serif);
  font-size: 28px;
  color: var(--tonic-yellow);
  -webkit-text-stroke: 0.8px var(--tonic-black);
  flex-shrink: 0;
  line-height: 1;
}

.faq-item__a {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.4s ease, opacity var(--dur-fast) ease;
}

.faq-item.is-open .faq-item__a { max-height: 600px; opacity: 1; }

.faq-item__a p {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-500);
  margin: 0;
  padding: 0 4px 28px;
  max-width: 820px;
}

/* ── Final CTA ─────────────────────────────────────────── */

.final-cta {
  background: var(--tonic-black);
  margin-top: 48px;
  padding: 84px 0 108px;
}

.final-cta__grid {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

.final-cta .h2 { color: #FFFFFF; margin-bottom: 24px; font-size: clamp(38px, 5vw, 58px); line-height: 1.08; }

.final-cta__copy p {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: 19px;
  line-height: 1.62;
  color: var(--text-on-ink-muted);
  margin: 0 0 18px;
}

.final-cta__copy p:last-child {
  font-style: italic;
  font-size: 18px;
  color: #D6D2CF;
  margin: 0;
}

.final-cta__card {
  background: var(--surface-card-dark);
  padding: 42px 40px;
  border-radius: 4px;
}

.final-cta__card h2 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 27px;
  line-height: 1.2;
  color: #FFFFFF;
  margin: 0 0 10px;
}

.final-cta__note {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.55;
  color: var(--text-on-ink-muted);
  margin: 0 0 26px;
}

.final-cta__card .form input,
.final-cta__card .form textarea,
.final-cta__card .form select { background: var(--tonic-black); }

/* ── Footer ────────────────────────────────────────────── */

.site-footer { background: var(--surface-ink-2); padding: 72px 0 40px; }

.site-footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--line-dark);
}

.site-footer__brand img {
  height: 40px;
  width: auto;
  display: block;
  margin-bottom: 20px;
  filter: brightness(0) invert(1);
}

.site-footer__brand p {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: 15px;
  line-height: 1.6;
  color: #98928F;
  margin: 0;
  max-width: 280px;
}

.site-footer h2 {
  font-family: var(--font-label);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 700;
  color: #6F6A68;
  margin: 0 0 20px;
}

.site-footer nav { display: flex; flex-direction: column; gap: 12px; }

.site-footer nav a {
  font-family: var(--font-label);
  font-size: 13px;
  color: #98928F;
  text-decoration: none;
  transition: color var(--dur-fast) ease;
}

.site-footer nav a:hover { color: var(--tonic-yellow); }

.site-footer__bottom {
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.site-footer__bottom p,
.site-footer__bottom a {
  font-family: var(--font-label);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: #6F6A68;
  margin: 0;
  text-decoration: none;
}

.site-footer__bottom a:hover { color: var(--tonic-yellow); }

/* ── Sticky CTA bar ────────────────────────────────────── */

.sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 60;
  background: var(--tonic-black);
  border-top: 1px solid var(--line-dark);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transform: translateY(100%);
  transition: transform 0.4s var(--ease);
}

.sticky-cta.is-visible { transform: translateY(0); }

.sticky-cta span {
  font-family: var(--font-accent);
  font-weight: 300;
  font-style: italic;
  font-size: 16px;
  color: #FFFFFF;
}

.sticky-cta .btn { padding: 12px 20px; font-size: 12px; white-space: nowrap; }

/* ── Responsive ────────────────────────────────────────── */

@media (max-width: 960px) {
  .hero__grid,
  .final-cta__grid,
  .process__head { grid-template-columns: 1fr; gap: 48px; }
}

@media (max-width: 640px) {
  :root { --gutter: 20px; }
  .hero { padding-top: 64px; padding-bottom: 64px; }
  .problem, .services, .process { padding-top: 72px; }
  .final-cta { padding: 52px 0 72px; }
  .lead-card, .final-cta__card { padding: 32px 24px; }
  .problem__media { aspect-ratio: 3 / 2; }
  .btn { padding: 16px 26px; }
  .site-header__inner { height: 64px; }
  .site-header__logo img { height: 32px; }
  .site-header .btn { padding: 10px 16px; font-size: 11px; }
  .faq-item.is-open .faq-item__a { max-height: 900px; }
  .faq-item__q span:first-child { font-size: 18px; }
  .faq-item__q { padding: 20px 4px; gap: 16px; }
  .sticky-cta { flex-wrap: wrap; padding: 12px 16px; gap: 8px; }
  .sticky-cta span { font-size: 14px; }
}

/* Typewriter cursor effect */
.accent-type {
  border-right: 2px solid var(--tonic-black);
  padding-right: 2px;
  animation: cursor-blink 0.75s step-end infinite;
}

@keyframes cursor-blink {
  from, to { border-color: transparent }
  50% { border-color: var(--tonic-black) }
}

/* ── Selected Work Section (Marquee) ───────────────────── */
.work-sec {
  background: var(--tonic-black);
  margin-top: 0;
  padding: 64px 0 108px;
  overflow: hidden;
}

.work-head {
  margin-bottom: 48px;
}

.work-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.work-eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--tonic-yellow);
}
.work-eyebrow .txt {
  font-family: var(--font-accent);
  font-style: italic;
  font-size: 14px;
  letter-spacing: 0.05em;
  color: var(--tonic-yellow);
}

.work-title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(32px, 4vw, 50px);
  line-height: 1.08;
  letter-spacing: -0.015em;
  color: #FFFFFF;
  max-width: 720px;
  margin: 0 0 16px;
}

.work-title .accent {
  font-family: var(--font-accent);
  font-style: italic;
  color: var(--tonic-yellow);
}

.work-sub {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: 19px;
  line-height: 1.6;
  color: var(--text-on-ink-muted);
  max-width: 640px;
  margin: 0;
}

/* Container & Masking */
.work-marquee {
  display: flex;
  flex-direction: column;
  gap: 20px;
  overflow: hidden;
  cursor: ew-resize;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

/* Track Layout */
.work-track {
  display: flex;
  flex-wrap: nowrap;
  gap: 24px;
  width: max-content;
  will-change: transform;
}

/* Individual Cards */
.work-card {
  text-decoration: none;
  color: inherit;
  display: block;
  flex: 0 0 auto;
  width: 320px;
  transition: opacity 0.2s ease;
}
.work-card:hover {
  opacity: 0.98;
}

/* Media/Image Containers */
.work-media {
  overflow: hidden;
  border-radius: 3px;
  background: #2f2b2c;
  aspect-ratio: 3 / 2;
  margin-bottom: 16px;
}
.work-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.work-card:hover .work-media img {
  transform: scale(1.05);
}

/* Card Meta Details (Name, horizontal line rule, categories) */
.work-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  flex-wrap: nowrap;
  overflow: hidden;
}
.work-meta .name {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--tonic-yellow);
  white-space: nowrap;
  flex-shrink: 0;
}
.work-meta .rule {
  height: 1px;
  flex: 1;
  background: #443f40;
  min-width: 12px;
}
.work-meta .cat {
  font-size: 10px;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  font-weight: 500;
  color: #8f8987;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex-shrink: 1;
  min-width: 0;
}
.work-card h3 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 20px;
  line-height: 1.18;
  color: #fff;
  margin: 0 0 8px;
}
.work-card p {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: 14px;
  line-height: 1.45;
  color: #b8b3b0;
  margin: 0 0 12px;
}
.form input.error,
.form textarea.error{
    border:1px solid #ff3b30 !important;
}

.custom-multiselect.error .custom-multiselect__trigger{
    border:1px solid #ff3b30 !important;
}

#RecaptchaField1.error{
    border:1px solid #ff3b30;
    border-radius:6px;
    padding:4px;
}

.custom-multiselect__error{
    display:none;
    color:#ff3b30;
    font-size:14px;
    margin-top:8px;
}

.form input.contact-error,
.form textarea.contact-error{
    border:1px solid #ff3b30 !important;
}

#RecaptchaField2.contact-error{
    border:1px solid #ff3b30;
    border-radius:6px;
    padding:4px;
}


/* ---------- Lead form messages (tonic-leads shared script) ---------- */
.form .tl-error { color: #f2a19a; font-family: var(--font-label); font-size: 13px; line-height: 1.4; margin-top: -4px; }
.form input.is-invalid, .form textarea.is-invalid, .form select.is-invalid { border-color: #E5484D !important; }
.custom-multiselect:has(input.is-invalid) .custom-multiselect__trigger { border-color: #E5484D; }
.form .tl-status { font-family: var(--font-label); font-size: 14px; line-height: 1.45; color: #d6d2cf; }
.form .tl-status.is-error { color: #f2a19a; }
.tl-turnstile:empty { display: none; }
.tl-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Fix: picking options in "What are you looking for?" widened the whole card.
   Grid/flex items default to min-width:auto, so the selected-options text (one long
   unbroken line) forced the column wider. Let the columns shrink; the label truncates. ---------- */
.hero__grid > *, .final-cta__grid > * { min-width: 0; }
.lead-card, .lead-card .form, .custom-multiselect { min-width: 0; max-width: 100%; }
.custom-multiselect__trigger { min-width: 0; max-width: 100%; box-sizing: border-box; }
.custom-multiselect__label { flex: 1 1 auto; min-width: 0; }
