/* ============================================================
   Jahtofunmi Osho — landing page
   Paper + ink + indigo. Clash Display / Switzer.
   ============================================================ */

:root {
  --paper: #f5f3ee;
  --ink: #16141f;
  --ink-soft: #4d4a59;
  --line: rgba(22, 20, 31, 0.12);
  --accent: #5b3df5;
  --accent-ink: #2a1a86;

  /* deck card hues — light → saturated, like the reference */
  --card1-bg: #eceaff;
  --card1-ink: #241a6b;
  --card2-bg: #cfc2ff;
  --card2-ink: #1d1356;
  --card3-bg: #5b3df5;
  --card3-ink: #f1edff;
  --card4-bg: #17103b;
  --card4-ink: #e9e4ff;

  --font-display: "Clash Display", "Helvetica Neue", sans-serif;
  --font-body: "Switzer", "Helvetica Neue", Arial, sans-serif;

  --pad: clamp(1.25rem, 4vw, 4rem);
  --radius-lg: clamp(1.25rem, 2.5vw, 2rem);

  /* cap readable content width on large monitors; full-bleed backgrounds still
     span edge-to-edge. --gutter grows past --pad once the viewport exceeds
     --max-w so content stays centred. */
  --max-w: 1440px;
  --gutter: max(var(--pad), calc((100% - var(--max-w)) / 2));
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}
html.lenis,
html.lenis body {
  height: auto;
}
.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

::selection {
  background: var(--accent);
  color: #fff;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

a {
  color: inherit;
  text-decoration: none;
}
ul {
  list-style: none;
}
em {
  font-style: italic;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-weight: 500;
  font-size: 1rem;
  padding: 0.9em 1.5em;
  border-radius: 99px;
  border: 1px solid var(--ink);
  transition:
    transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1),
    background 0.3s,
    color 0.3s,
    border-color 0.3s;
  will-change: transform;
}
.btn--primary {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.btn--primary:hover {
  background: var(--accent);
  border-color: var(--accent);
  transform: translateY(-2px);
}
.btn--ghost:hover {
  background: var(--ink);
  color: var(--paper);
  transform: translateY(-2px);
}
.btn--small {
  padding: 0.55em 1.1em;
  font-size: 0.9rem;
  background: var(--ink);
  color: var(--paper);
}
.btn--small:hover {
  background: var(--accent);
  border-color: var(--accent);
}
.btn--big {
  font-size: clamp(1.05rem, 1.5vw, 1.3rem);
  padding: 1em 1.8em;
}
.btn__note {
  font-size: 0.72em;
  opacity: 0.6;
  font-weight: 400;
}
.btn__arrow {
  display: inline-block;
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.btn:hover .btn__arrow {
  transform: translateX(4px);
}

/* ---------- nav ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem var(--gutter);
  transition:
    background 0.4s,
    box-shadow 0.4s,
    padding 0.4s;
}
.nav.is-scrolled {
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line);
  padding-block: 0.65rem;
}
.nav__logo {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}
.nav__logo img {
  width: 36px;
  height: 36px;
  display: block;
  border-radius: 6px;
}
.nav__links {
  display: flex;
  gap: 1.75rem;
  font-size: 0.95rem;
  font-weight: 500;
}
.nav__links a {
  position: relative;
  opacity: 0.75;
  transition: opacity 0.25s;
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 1.5px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.nav__links a:hover {
  opacity: 1;
}
.nav__links a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--pad) * 2) var(--gutter) clamp(2rem, 5vh, 4rem);
  overflow: clip;
}
.hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-size: 0.9rem;
  font-weight: 500;
  border: 1px solid var(--line);
  background: color-mix(in srgb, #fff 55%, transparent);
  border-radius: 99px;
  padding: 0.45em 1em;
  margin-bottom: clamp(1.5rem, 3vh, 2.5rem);
}
.hero__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2fb344;
  box-shadow: 0 0 0 0 rgba(47, 179, 68, 0.5);
  animation: pulse 2.2s infinite;
}
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(47, 179, 68, 0.45);
  }
  70% {
    box-shadow: 0 0 0 9px rgba(47, 179, 68, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(47, 179, 68, 0);
  }
}
.hero__title {
  font-size: clamp(2.6rem, 7.2vw, 6.5rem);
  text-wrap: balance;
  margin-bottom: clamp(1.75rem, 4vh, 3rem);
  text-align: center;
}
.hero__title em {
  color: var(--accent);
}
.line {
  display: block;
  overflow: hidden;
}
.line__inner {
  display: block;
  will-change: transform;
}
.hero__bottom {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  gap: 1.5rem 3rem;
  margin-bottom: clamp(1.75rem, 4vh, 3rem);
}
.hero__copy {
  max-width: 38em;
  color: var(--ink-soft);
  text-align: center;
}
.hero__cta {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.hero__states {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
  padding-top: 1.1rem;
}
.hero__states li {
  display: flex;
  align-items: center;
}
.hero__states li:not(:last-child)::after {
  content: "·";
  margin: 0 0.9em;
  color: var(--accent);
  font-size: 1.4em;
}
.hero__glow {
  position: absolute;
  z-index: 1;
  top: -20%;
  right: -12%;
  width: min(58vw, 900px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(
    circle at 40% 40%,
    rgba(91, 61, 245, 0.16),
    rgba(207, 194, 255, 0.1) 45%,
    transparent 70%
  );
  filter: blur(20px);
  pointer-events: none;
}

/* ---------- marquee ---------- */
.marquee {
  border-block: 1px solid var(--line);
  overflow: clip;
  padding: 1rem 0;
  background: var(--ink);
  color: var(--paper);
}
.marquee__track {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  width: max-content;
  white-space: nowrap;
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.6vw, 1.35rem);
  font-weight: 500;
  will-change: transform;
}
.marquee__track i {
  font-style: normal;
  color: var(--accent);
  font-size: 0.8em;
}

/* ---------- sections (shared) ---------- */
.section {
  padding: clamp(5rem, 12vh, 9rem) var(--gutter);
}
.section__head {
  margin-bottom: clamp(2.5rem, 6vh, 4.5rem);
}
.section__label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}
.section__title {
  font-size: clamp(2rem, 4.5vw, 3.6rem);
  text-wrap: balance;
}

/* ---------- where ---------- */
/* subtitle that sits under a section title (Where I help, Selected work) */
.section__intro {
  max-width: 42ch;
  margin-top: clamp(0.85rem, 2vh, 1.25rem);
  color: var(--ink-soft);
  font-size: clamp(1.05rem, 1.4vw, 1.3rem);
  line-height: 1.45;
}
.where__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.where__card {
  position: relative;
  isolation: isolate; /* contain the spotlight ::before behind the content */
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 2.5vw, 2.25rem);
  background: #fff;
  transition:
    transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 0.4s,
    border-color 0.4s;
}
/* cursor-tracked spotlight (--mx/--my set in main.js) */
.where__card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(
    340px circle at var(--mx, 50%) var(--my, 0%),
    color-mix(in srgb, var(--accent) 15%, transparent),
    transparent 60%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
}
.where__card:hover {
  transform: translateY(-6px);
  border-color: color-mix(in srgb, var(--accent) 35%, var(--line));
  box-shadow: 0 26px 50px -26px
    color-mix(in srgb, var(--accent) 40%, rgba(22, 20, 31, 0.22));
}
.where__card:hover::before {
  opacity: 1;
}
.where__num {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 2.4em;
  height: 2.4em;
  border-radius: 50%;
  border: 1px solid var(--line);
  font-family: var(--font-display);
  font-weight: 600;
  margin-bottom: 1.4rem;
  background: var(--paper);
  color: var(--ink);
  /* keep the badge on a stable compositing layer so the letter isn't
     re-rasterized (and nudged ~1px) when the scale transition settles */
  will-change: transform;
  transition:
    background 0.35s,
    color 0.35s,
    border-color 0.35s,
    transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}
/* expanding ring on hover */
.where__num::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid var(--accent);
  opacity: 0;
  transform: scale(0.8);
  transition:
    opacity 0.45s ease,
    transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.where__card:hover .where__num {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  transform: scale(1.06);
}
.where__card:hover .where__num::after {
  opacity: 0.45;
  transform: scale(1.18);
}
.where__card h3 {
  position: relative;
  font-size: clamp(1.25rem, 1.8vw, 1.55rem);
  margin-bottom: 0.8rem;
}
/* accent underline that draws in on hover (echoes the nav links) */
.where__card h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.4rem;
  width: 2.5rem;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.where__card:hover h3::after {
  transform: scaleX(1);
}
.where__card p {
  color: var(--ink-soft);
  font-size: 0.98rem;
}

/* ---------- deck (drag carousel) ---------- */
.deck {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(4rem, 10vh, 7rem) 0 clamp(3rem, 7vh, 5rem);
  overflow: clip;
}
.deck__head {
  padding: 0 var(--gutter);
  margin-bottom: clamp(2rem, 5vh, 3.5rem);
}
.deck__head .section__title {
  color: var(--paper);
}
.deck__stage {
  position: relative;
  width: 100%;
  /* No clipping here: tilted cards need vertical room. Horizontal containment
     (edge peeks, off-screen cards) is handled by .deck's `overflow: clip`. */
  overflow: visible;
  cursor: grab; /* fallback for no-JS / touch; JS hides it for the badge */
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-y; /* let the page scroll vertically; we own horizontal */
  outline: none;
}
.deck__stage:focus-visible {
  box-shadow: inset 0 0 0 2px var(--accent);
}

.deck__card {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(64vw, 1080px);
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 3vw, 3.25rem);
  /* desktop: text leads on the left, the image is a smaller panel on the right */
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  grid-template-areas:
    "head visual"
    "body visual";
  align-content: start;
  column-gap: clamp(1.75rem, 3.5vw, 3.5rem);
  row-gap: clamp(1.1rem, 2.4vh, 1.75rem);
  background: var(--c-bg);
  color: var(--c-ink);
  box-shadow: 0 50px 90px -50px rgba(0, 0, 0, 0.6);
  will-change: transform, opacity;
  /* JS sets transform (includes translate(-50%,-50%)) + opacity */
  transform: translate(-50%, -50%);
}
.deck__card--1 {
  --c-bg: var(--card1-bg);
  --c-ink: var(--card1-ink);
}
.deck__card--2 {
  --c-bg: var(--card2-bg);
  --c-ink: var(--card2-ink);
}
.deck__card--3 {
  --c-bg: var(--card3-bg);
  --c-ink: var(--card3-ink);
}
.deck__card--4 {
  --c-bg: var(--card4-bg);
  --c-ink: var(--card4-ink);
}
.deck__cardhead {
  grid-area: head;
  display: flex;
  align-items: baseline;
  gap: 1rem;
}
.deck__index {
  font-family: var(--font-display);
  font-weight: 500;
  opacity: 0.65;
}
.deck__cardhead h3 {
  font-size: clamp(1.8rem, 3.2vw, 2.8rem);
  font-weight: 600;
}
.deck__visual {
  grid-area: visual;
  position: relative;
  align-self: stretch;
  min-height: clamp(200px, 28vh, 320px);
  border-radius: calc(var(--radius-lg) * 0.7);
  background: color-mix(in srgb, #fff 88%, var(--c-bg));
  display: grid;
  place-items: center;
  overflow: clip;
}
/* lighter panels on the dark cards so the 3D service art and its soft shadows read clearly */
.deck__card--3 .deck__visual,
.deck__card--4 .deck__visual {
  background: color-mix(in srgb, #fff 90%, var(--c-bg));
}
.deck__visual img {
  /* absolute so the image fills the panel without its height driving the card's */
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: clamp(1.25rem, 3vh, 2.75rem);
  box-sizing: border-box;
  pointer-events: none; /* let drags pass straight through to the carousel */
  -webkit-user-drag: none;
  user-select: none;
}
.deck__cardfoot {
  grid-area: body;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.deck__lede {
  font-size: clamp(1.05rem, 1.4vw, 1.3rem);
  max-width: 34em;
  line-height: 1.45;
  opacity: 0.95;
}
.deck__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.deck__chips li {
  font-size: 0.82rem;
  font-weight: 500;
  padding: 0.35em 0.85em;
  border-radius: 99px;
  border: 1px solid color-mix(in srgb, var(--c-ink) 30%, transparent);
}

/* cursor-following drag badge — replaces the native cursor while hovering a card */
.deck__badge {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 300;
  width: 5.25rem;
  height: 5.25rem;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.22),
    0 16px 38px -12px rgba(0, 0, 0, 0.6);
}

/* dots */
.deck__dots {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  margin-top: clamp(2rem, 5vh, 3rem);
}
.deck__dot {
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 99px;
  border: none;
  padding: 0;
  background: rgba(245, 243, 238, 0.28);
  cursor: pointer;
  transition:
    width 0.4s cubic-bezier(0.2, 0.8, 0.2, 1),
    background 0.3s;
}
.deck__dot.is-active {
  width: 2rem;
  background: var(--accent);
}

/* --- deck visuals: plan --- */
.plan {
  width: min(70%, 420px);
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.plan__row {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.plan__check {
  flex: none;
  width: 1.35em;
  height: 1.35em;
  border-radius: 50%;
  border: 1.5px solid var(--card1-ink);
  display: grid;
  place-items: center;
  font-size: 0.8rem;
  color: #fff;
}
.plan__row--done .plan__check {
  background: var(--accent);
  border-color: var(--accent);
}
.plan__bar {
  height: 0.7em;
  width: var(--w);
  border-radius: 99px;
  background: color-mix(in srgb, var(--card1-ink) 22%, transparent);
}
.plan__row--done .plan__bar {
  background: color-mix(in srgb, var(--card1-ink) 45%, transparent);
}
.plan__row--active .plan__bar {
  background: var(--accent);
}
.plan__tag {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.2em 0.7em;
  border-radius: 99px;
  background: var(--accent);
  color: #fff;
}
.plan__tag--muted {
  background: transparent;
  border: 1px dashed currentColor;
  color: var(--card1-ink);
  opacity: 0.6;
}
.plan__row--wait {
  opacity: 0.55;
}

/* --- deck visuals: phone --- */
.phone {
  position: relative;
  width: clamp(120px, 9vw, 150px);
  aspect-ratio: 9 / 18;
  border-radius: 1.6rem;
  border: 3px solid var(--card2-ink);
  background: #fff;
  padding: 0.9rem 0.7rem;
  box-shadow: 0 24px 48px -20px rgba(29, 19, 86, 0.45);
}
.phone__notch {
  width: 38%;
  height: 0.45rem;
  border-radius: 99px;
  background: var(--card2-ink);
  margin: 0 auto 0.8rem;
}
.phone__screen {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.phone__hero {
  height: 3.4rem;
  border-radius: 0.7rem;
  background: linear-gradient(135deg, var(--accent), #9d7bff);
}
.phone__line {
  height: 0.5rem;
  width: var(--w);
  border-radius: 99px;
  background: color-mix(in srgb, var(--card2-ink) 25%, transparent);
}
.phone__pill {
  margin-top: 0.3rem;
  font-size: 0.62rem;
  font-weight: 700;
  text-align: center;
  background: var(--card2-ink);
  color: #fff;
  border-radius: 99px;
  padding: 0.45em 0;
}
.orbit {
  position: absolute;
  display: grid;
  place-items: center;
  width: 2.6em;
  height: 2.6em;
  border-radius: 50%;
  font-size: 0.85rem;
  font-weight: 700;
  background: #fff;
  color: var(--card2-ink);
  box-shadow: 0 10px 24px -8px rgba(29, 19, 86, 0.35);
}
.orbit--a {
  top: 18%;
  left: 22%;
}
.orbit--b {
  top: 56%;
  right: 20%;
  background: var(--accent);
  color: #fff;
}
.orbit--c {
  bottom: 14%;
  left: 30%;
}

/* --- deck visuals: chart --- */
.chart {
  position: relative;
  width: min(70%, 420px);
  height: clamp(140px, 22vh, 200px);
  display: flex;
  align-items: flex-end;
  gap: clamp(0.5rem, 1.2vw, 1rem);
}
.chart__bar {
  flex: 1;
  height: var(--h);
  border-radius: 0.5rem 0.5rem 0 0;
  background: rgba(241, 237, 255, 0.35);
}
.chart__bar--hot {
  background: #b6ff3d;
}
.chart__line {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.chart__line path {
  stroke: #b6ff3d;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 420;
  stroke-dashoffset: 420;
}

/* --- deck visuals: code --- */
.code {
  width: min(78%, 460px);
  border-radius: 0.9rem;
  background: #0d0a24;
  border: 1px solid rgba(233, 228, 255, 0.14);
  padding: 1rem 1.1rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.code__dots {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 0.3rem;
}
.code__dots i {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: rgba(233, 228, 255, 0.25);
}
.code__row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.code__ln {
  font-size: 0.62rem;
  opacity: 0.4;
  font-family: ui-monospace, monospace;
  width: 1.4em;
}
.code__tok {
  height: 0.55rem;
  width: var(--w);
  border-radius: 99px;
  background: rgba(233, 228, 255, 0.3);
}
.code__tok--key {
  background: #8f7bff;
}
.code__tok--str {
  background: #5dd6a2;
}
.code__tok--del {
  background: rgba(255, 110, 110, 0.45);
  position: relative;
}
.code__tok--del::after {
  content: "";
  position: absolute;
  inset: 50% 0 auto;
  height: 1.5px;
  background: #ff6e6e;
}
.code__badge {
  font-size: 0.62rem;
  font-weight: 700;
  color: #b6ff3d;
  border: 1px solid rgba(182, 255, 61, 0.4);
  border-radius: 99px;
  padding: 0.15em 0.7em;
}
.code__status {
  font-size: 0.75rem;
  font-weight: 600;
  color: #5dd6a2;
  margin-top: 0.3rem;
}

/* ---------- work ---------- */
.work__list {
  border-top: 1px solid var(--line);
}
.work__item {
  border-bottom: 1px solid var(--line);
}
.work__link {
  display: grid;
  grid-template-columns: 3rem 1fr 2.2fr auto 2rem;
  align-items: center;
  gap: clamp(1rem, 2.5vw, 2.5rem);
  padding: clamp(1.4rem, 3vh, 2.2rem) clamp(0.5rem, 1.5vw, 1.5rem);
  border-radius: 1rem;
  transition:
    background 0.35s,
    color 0.35s;
}
.work__link:hover {
  background: var(--ink);
  color: var(--paper);
}
.work__idx {
  font-family: var(--font-display);
  opacity: 0.45;
  font-size: 0.95rem;
}
.work__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.4rem, 2.6vw, 2.2rem);
  letter-spacing: -0.02em;
}
.work__desc {
  font-size: 0.92rem;
  color: var(--ink-soft);
  max-width: 46em;
  transition: color 0.35s;
}
.work__link:hover .work__desc {
  color: color-mix(in srgb, var(--paper) 75%, transparent);
}
.work__tags {
  display: flex;
  gap: 0.4rem;
}
.work__tags i {
  font-style: normal;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.3em 0.8em;
  border-radius: 99px;
  border: 1px solid currentColor;
  opacity: 0.65;
  white-space: nowrap;
}
.work__arrow {
  font-size: 1.3rem;
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.work__link:hover .work__arrow {
  transform: translate(4px, -4px);
  color: #b6ff3d;
}

/* ---------- quotes ---------- */
.quotes {
  padding-top: 0;
}
/* auto-scrolling testimonial marquee (animated in main.js; pauses on hover) */
.quotes__marquee {
  overflow: clip;
  -webkit-mask-image: linear-gradient(
    to right,
    transparent,
    #000 6%,
    #000 94%,
    transparent
  );
  mask-image: linear-gradient(
    to right,
    transparent,
    #000 6%,
    #000 94%,
    transparent
  );
}
.quotes__track {
  display: flex;
  width: max-content;
  will-change: transform;
}
.quotes__card {
  flex: none;
  width: clamp(290px, 26vw, 400px);
  margin-right: clamp(1rem, 1.5vw, 1.5rem);
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 2vw, 2rem);
  background: #fff;
}
.quotes__card::before {
  content: "\201C"; /* decorative opening quote */
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 2.6rem;
  line-height: 0.8;
  color: var(--accent);
  opacity: 0.28;
  margin-bottom: 0.4rem;
}
.quotes__card p {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 1.2vw, 1.15rem);
  line-height: 1.4;
  margin-bottom: 1.4rem;
}
.quotes__card cite {
  margin-top: auto;
  font-style: normal;
  font-size: 0.9rem;
  color: var(--ink-soft);
}
.quotes__byline {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.quotes__avatar {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}
.quotes__avatar--initials {
  display: grid;
  place-items: center;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
}
.quotes__byline cite {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}
.quotes__byline strong {
  color: var(--ink);
  font-weight: 600;
}
.quotes__byline cite > span {
  font-size: 0.85rem;
}

/* ---------- why ---------- */
.why {
  background: #fff;
  border-block: 1px solid var(--line);
}
.why__body {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
.why__copy p {
  color: var(--ink-soft);
  max-width: 38em;
}
.why__copy p + p {
  margin-top: 1.2rem;
}
.why__stats {
  display: flex;
  flex-direction: column;
}
.why__stats li {
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: baseline;
  column-gap: 0.5rem;
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--line);
}
.why__stats li:first-child {
  border-top: 1px solid var(--line);
}
.why__num {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.6rem, 5vw, 4rem);
  line-height: 1;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.why__unit {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.3rem;
  color: var(--accent);
}
.why__stats p {
  font-size: 0.9rem;
  color: var(--ink-soft);
  text-align: right;
}

/* ---------- cta ---------- */
.cta {
  padding: clamp(6rem, 16vh, 11rem) var(--gutter);
  text-align: center;
  background: var(--ink);
  color: var(--paper);
}
.cta__title {
  font-size: clamp(3.4rem, 11vw, 9.5rem);
  font-weight: 600;
  margin-bottom: clamp(1.5rem, 3vh, 2.5rem);
}
.cta__title em {
  color: var(--accent);
  -webkit-text-stroke: 0;
}
.cta__copy {
  max-width: 36em;
  margin: 0 auto clamp(2rem, 4vh, 3rem);
  opacity: 0.75;
}
.cta .btn--primary {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
}
.cta .btn--primary:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

/* ---------- footer ---------- */
.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  padding: 1.5rem var(--gutter);
  font-size: 0.88rem;
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
}
.footer a:hover {
  color: var(--accent);
}

/* ---------- reveal defaults (JS adds motion; this is the no-JS fallback) ---------- */
[data-reveal] {
  opacity: 1;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1024px) {
  /* desktop-only credibility line */
  .hero__states {
    display: none;
  }

  .work__link {
    grid-template-columns: 2.2rem 1fr 2rem;
  }
  .work__desc {
    grid-column: 2;
  }
  .work__tags {
    grid-column: 2;
  }
  .work__arrow {
    grid-row: 1;
    grid-column: 3;
  }
}

@media (max-width: 860px) {
  .nav__links {
    display: none;
  }

  .hero {
    align-items: center;
  }
  .hero__bottom {
    flex-direction: column;
  }
  .hero__states {
    flex-direction: column;
    gap: 0.6rem;
  }
  .hero__states li:not(:last-child)::after {
    content: none;
  }
  .hero__states li::before {
    content: "";
    width: 0.5em;
    height: 0.5em;
    border-radius: 50%;
    background: var(--accent);
    margin-right: 0.7em;
  }

  .where__grid {
    grid-template-columns: 1fr;
  }
  .why__body {
    grid-template-columns: 1fr;
  }
  .why__stats p {
    text-align: left;
  }
  .why__stats li {
    grid-template-columns: auto auto 1fr;
  }

  /* deck carousel: near-full-width cards on phones (badge is desktop-only) */
  .deck__card {
    width: min(82vw, 460px);
    min-height: auto;
    /* revert to a single-column stack on phones */
    display: flex;
    flex-direction: column;
    gap: clamp(1rem, 4vw, 1.5rem);
  }
  .deck__visual {
    min-height: 190px;
  }
}

/* phones only: trim the eyebrow to its core label (tablets & up keep the full text) */
@media (max-width: 600px) {
  .hero__eyebrow-extra {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  /* no marquee scroll: let the testimonials wrap into a static, readable grid */
  .quotes__marquee {
    overflow: visible;
    -webkit-mask-image: none;
    mask-image: none;
  }
  .quotes__track {
    width: auto; /* override max-content so the cards can actually wrap */
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    transform: none !important;
  }
  .quotes__card {
    margin-right: 0;
  }
}
