/* ============================================================
   KALIMNIR, Creative Strategist
   Base #0A0A0A is the logo's own background, so the wordmark
   seams invisibly. Accent #E3A72F is sampled from its dot.
   ============================================================ */

:root {
  --ink:      #0A0A0A;
  --ink-lift: #0E0E0E;
  --surface:  #121212;
  --line:     #1E1E1E;
  --line-lit: #2A2A2A;
  --text:     #F5F4F2;
  --muted:    #8A8783;
  --accent:   #E3A72F;
  --accent-d: #B8871F;

  --display: "Syne", system-ui, sans-serif;
  --body:    "Plus Jakarta Sans", system-ui, sans-serif;
  --serif:   "Bodoni Moda", Georgia, serif;
  --mono:    "JetBrains Mono", ui-monospace, monospace;

  --wrap: 1200px;
  --gut:  clamp(1.25rem, 4vw, 3rem);

  --silk:  cubic-bezier(0.16, 1, 0.30, 1);
  --ease:  cubic-bezier(0.22, 1, 0.36, 1);
  --inout: cubic-bezier(0.65, 0, 0.35, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
  overflow-x: clip;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

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

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

/* slim, quiet scrollbar */
* { scrollbar-width: thin; scrollbar-color: var(--line-lit) transparent; }
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb {
  background: var(--line-lit);
  border-radius: 10px;
  border: 3px solid var(--ink);
}
*::-webkit-scrollbar-thumb:hover { background: #3A3A3A; }

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: var(--ink);
  padding: 0.75rem 1.25rem;
  font-weight: 600;
  z-index: 300;
}
.skip:focus { left: 0; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gut);
}

/* ── film grain, the tactile layer ────────────────────────── */

/* inset:0 with a shifting background-position, never a negative inset,
   which would push the document's scroll width past the viewport */
.grain {
  position: fixed;
  inset: 0;
  z-index: 400;
  pointer-events: none;
  opacity: 0.038;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  animation: grainShift 8s steps(6) infinite;
}

@keyframes grainShift {
  0%   { background-position:   0px    0px; }
  20%  { background-position: -22px   14px; }
  40%  { background-position:  16px  -20px; }
  60%  { background-position: -14px  -12px; }
  80%  { background-position:  20px    8px; }
  100% { background-position:   0px    0px; }
}

/* ── shared type ──────────────────────────────────────────── */

.eyebrow {
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0 0 1.75rem;
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
  display: inline-block;
  box-shadow: 0 0 0 0 rgba(227, 167, 47, 0.5);
  animation: pulse 4.5s var(--inout) infinite;
}

@keyframes pulse {
  0%, 70%, 100% { box-shadow: 0 0 0 0 rgba(227, 167, 47, 0.45); }
  35%           { box-shadow: 0 0 0 7px rgba(227, 167, 47, 0); }
}

/* ── buttons ──────────────────────────────────────────────── */

.btn {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--body);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  padding: 1rem 1.75rem;
  border-radius: 3px;
  border: 1px solid transparent;
  cursor: pointer;
  will-change: transform;
  transition: background 0.5s var(--silk), color 0.5s var(--silk),
              border-color 0.5s var(--silk), transform 0.5s var(--silk),
              box-shadow 0.5s var(--silk);
}
.btn > span { position: relative; z-index: 2; }

/* sheen sweep */
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  transform: translateX(-110%) skewX(-18deg);
  transition: transform 0.9s var(--silk);
}
.btn:hover::after { transform: translateX(110%) skewX(-18deg); }

.btn--solid {
  background: var(--text);
  color: var(--ink);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.5) inset;
}
.btn--solid::after { background: linear-gradient(90deg, transparent, rgba(10, 10, 10, 0.14), transparent); }
.btn--solid:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px -10px rgba(227, 167, 47, 0.45),
              0 1px 0 rgba(255, 255, 255, 0.5) inset;
  background: #FFFDF8;
}

.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line-lit);
}
.btn--ghost::after { background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.09), transparent); }
.btn--ghost:hover {
  transform: translateY(-2px);
  border-color: rgba(227, 167, 47, 0.55);
  color: var(--accent);
  background: rgba(227, 167, 47, 0.04);
}

.btn--sm { padding: 0.68rem 1.25rem; font-size: 0.875rem; }
.btn--block { width: 100%; padding-block: 1.1rem; }

/* ── navigation ───────────────────────────────────────────── */

.nav {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(10, 10, 10, 0.6);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  transition: background 0.6s var(--silk);
}
.nav::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-lit) 20%, var(--line-lit) 80%, transparent);
  opacity: 0;
  transition: opacity 0.6s var(--silk);
}
.nav.is-stuck { background: rgba(10, 10, 10, 0.88); }
.nav.is-stuck::after { opacity: 1; }

.nav__inner {
  max-width: var(--wrap);
  margin-inline: auto;
  padding: 1.1rem var(--gut);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

/* screen blend drops the logo JPEG's black box onto the page base */
.nav__brand img {
  height: 26px;
  width: auto;
  mix-blend-mode: screen;
  transition: opacity 0.5s var(--silk);
}
.nav__brand:hover img { opacity: 0.78; }

.nav__links { display: flex; align-items: center; gap: 2.25rem; }

.nav__links > a:not(.btn) {
  font-size: 0.9375rem;
  color: var(--muted);
  position: relative;
  padding-block: 0.3rem;
  overflow: hidden;
  transition: color 0.45s var(--silk);
}
.nav__links > a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.55s var(--silk);
}
.nav__links > a:not(.btn):hover { color: var(--text); }
.nav__links > a:not(.btn):hover::after { transform: scaleX(1); transform-origin: left; }

.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  background: none;
  border: 1px solid var(--line);
  border-radius: 3px;
  cursor: pointer;
  transition: border-color 0.45s var(--silk);
}
.nav__toggle:hover { border-color: var(--line-lit); }
.nav__toggle span {
  display: block;
  width: 16px;
  height: 1.5px;
  margin-inline: auto;
  background: var(--text);
  transition: transform 0.45s var(--silk), opacity 0.45s var(--silk);
}
.nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(3.25px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child  { transform: translateY(-3.25px) rotate(-45deg); }

.nav__mobile {
  display: none;
  flex-direction: column;
  padding: 0.25rem var(--gut) 1.75rem;
  border-top: 1px solid var(--line);
}
.nav__mobile a:not(.btn) {
  padding: 1rem 0;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  transition: color 0.4s var(--silk), padding-left 0.4s var(--silk);
}
.nav__mobile a:not(.btn):hover { color: var(--text); padding-left: 0.4rem; }
.nav__mobile .btn { margin-top: 1.25rem; }

/* ── hero ─────────────────────────────────────────────────── */

.hero {
  position: relative;
  overflow: hidden;
  padding-top: clamp(3rem, 7vw, 6rem);
  padding-bottom: clamp(4rem, 8vw, 7rem);
}

/* the dot plane: a wave travelling across a field of individual points,
   confined to the lower band so it reads as ground rather than backdrop */
.hero__field {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 42%;
  min-height: 190px;
  z-index: 0;
  pointer-events: none;
  display: block;
  -webkit-mask-image: linear-gradient(to top, #000 0%, #000 54%, transparent 97%);
  mask-image: linear-gradient(to top, #000 0%, #000 54%, transparent 97%);
}

.hero__grid {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gut);
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(300px, 0.78fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}

/* --fit is a safety scalar set from JS: if a nowrap line ever measures
   wider than its column, it shrinks until it clears the portrait */
.hero__title {
  font-family: var(--display);
  font-weight: 800;
  font-size: calc(clamp(2.1rem, 4vw, 3.15rem) * var(--fit, 1));
  line-height: 1.02;
  letter-spacing: -0.038em;
  margin: 0 0 2.5rem;
}

/* each line rides up out of its own mask */
.hero__title .line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.09em;
  margin-bottom: -0.09em;
}
.hero__title .line__in {
  display: block;
  white-space: nowrap;
}
.js .hero__title .line__in {
  transform: translateY(112%);
  opacity: 0;
}
.js .hero.is-lit .hero__title .line__in {
  transform: none;
  opacity: 1;
  transition: transform 1.15s var(--silk), opacity 1.15s var(--silk);
}
.js .hero.is-lit .line:nth-child(1) .line__in { transition-delay: 0.10s; }
.js .hero.is-lit .line:nth-child(2) .line__in { transition-delay: 0.22s; }
.js .hero.is-lit .line:nth-child(3) .line__in { transition-delay: 0.34s; }

.hero__title .line:nth-child(3) .line__in { color: var(--muted); }

/* eyebrow and CTAs settle in after the headline */
.js .hero__eyebrow,
.js .hero__cta,
.js .hero__media {
  opacity: 0;
  transform: translateY(20px);
}
.js .hero.is-lit .hero__eyebrow,
.js .hero.is-lit .hero__cta,
.js .hero.is-lit .hero__media {
  opacity: 1;
  transform: none;
  transition: opacity 1.1s var(--silk), transform 1.1s var(--silk);
}
.js .hero.is-lit .hero__eyebrow { transition-delay: 0.05s; }
.js .hero.is-lit .hero__cta     { transition-delay: 0.52s; }
.js .hero.is-lit .hero__media   { transition-delay: 0.30s; }

.hero__cta { display: flex; flex-wrap: wrap; gap: 0.9rem; }

/* square, contained, hairline. A blend is not available here: the portrait's
   own backdrop is mid-grey against a #0A0A0A page, so a fade reads as a
   failed vignette rather than an edge treatment. */
.portrait {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 0;
  overflow: hidden;
  background: var(--surface);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.9);
  transition: box-shadow 0.8s var(--silk), border-color 0.8s var(--silk);
}
.portrait:hover {
  border-color: var(--line-lit);
  box-shadow: 0 46px 90px -40px rgba(0, 0, 0, 0.95),
              0 0 60px -30px rgba(227, 167, 47, 0.28);
}
.portrait img {
  width: 100%;
  height: auto; /* required, or the height attribute overrides aspect-ratio */
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 18%;
  filter: contrast(1.05) saturate(0.88) brightness(0.92);
  transition: transform 1.4s var(--silk), filter 1.4s var(--silk);
}
.portrait:hover img {
  transform: scale(1.04);
  filter: contrast(1.09) saturate(1) brightness(1);
}

/* diagonal light passing over the frame */
.portrait__sheen {
  position: absolute;
  inset: -40%;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 42%, rgba(255, 255, 255, 0.07) 50%, transparent 58%);
  transform: translateX(-70%);
  transition: transform 1.3s var(--silk);
}
.portrait:hover .portrait__sheen { transform: translateX(70%); }

/* the bottom fade is gone on purpose: a contained frame and a dissolve into
   the page are contradictory instructions, and doing both read as indecision */

/* ── partners marquee ─────────────────────────────────────── */

.partners {
  position: relative;
  padding-block: clamp(2.5rem, 5vw, 4rem);
}
.partners::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line) 20%, var(--line) 80%, transparent);
}
.partners__label { margin-bottom: 2.25rem; }

.marquee {
  position: relative;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
}

.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 46s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }

@keyframes marquee {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}

.marquee__set {
  display: flex;
  align-items: center;
  gap: clamp(2.75rem, 6vw, 5.5rem);
  list-style: none;
  margin: 0;
  padding: 0 clamp(1.4rem, 3vw, 2.75rem);
}
.marquee__set li { flex: none; }

/* every canvas is an identical 480x132, so one height normalises all six */
.marquee__set img {
  height: clamp(46px, 5.4vw, 62px);
  width: auto;
  opacity: 0.48;
  transition: opacity 0.6s var(--silk), transform 0.6s var(--silk);
}
.marquee__set img:hover { opacity: 0.95; transform: scale(1.05); }

/* ── sections ─────────────────────────────────────────────── */

.section {
  position: relative;
  padding-block: clamp(4.5rem, 9vw, 8.5rem);
}
.section::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line) 18%, var(--line) 82%, transparent);
}

.section__title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.8rem, 3.6vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  max-width: 20ch;
  margin: 0;
}

/* ── case studies ─────────────────────────────────────────── */

.case {
  position: relative;
  padding-top: clamp(3rem, 7vw, 6rem);
}
.case > * { position: relative; z-index: 1; }

/* pointer-tracked wash, set from JS */
.case::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  border-radius: 8px;
  background: radial-gradient(460px circle at var(--mx, 50%) var(--my, 50%),
              rgba(227, 167, 47, 0.055), transparent 62%);
  transition: opacity 0.7s var(--silk);
}
.case:hover::before { opacity: 1; }

.case__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr);
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: start;
}

/* grid items default to min-width:auto, which lets an oversized descendant
   (here the 952px dashboard capture) set the track's minimum */
.case__body,
.case__side,
.case__grid > .proof,
.hero__copy,
.hero__media,
.form,
.direct { min-width: 0; }
.case__grid--alt > .case__body { order: 2; }
.case__grid--alt > .case__side { order: 1; }

/* the receipt spans full width, its labels fall under 7px in a column */
.case__grid > .proof {
  grid-column: 1 / -1;
  margin-top: clamp(2rem, 4vw, 3.25rem);
}

.case__head { margin-bottom: 1.6rem; }

.case__name {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.85rem, 3.4vw, 2.7rem);
  line-height: 1.05;
  letter-spacing: -0.032em;
  margin: 0 0 0.5rem;
}

.case__role {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0;
}

.case__text {
  color: var(--muted);
  max-width: 54ch;
  margin: 0 0 1.2rem;
  font-weight: 300;
}
.case__text--quiet { font-size: 0.96rem; opacity: 0.82; }

/* the send sequence, where order carries meaning */
.rail {
  position: relative;
  margin: 2.25rem 0 2rem;
  padding-left: 1.75rem;
}
.rail::before {
  content: "";
  position: absolute;
  left: 0; top: 0.5rem; bottom: 0.5rem;
  width: 1px;
  background: linear-gradient(to bottom, var(--line-lit), rgba(227, 167, 47, 0.4));
}

.rail__item {
  position: relative;
  font-family: var(--mono);
  font-size: 0.83rem;
  letter-spacing: 0.02em;
  color: var(--muted);
  padding-block: 0.68rem;
  transition: color 0.5s var(--silk), transform 0.5s var(--silk);
}
.rail__item:hover { color: var(--text); transform: translateX(5px); }

.rail__node {
  position: absolute;
  left: calc(-1.75rem - 4px);
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ink);
  border: 1px solid var(--line-lit);
  transition: background 0.5s var(--silk), border-color 0.5s var(--silk), box-shadow 0.5s var(--silk);
}
.rail__item:hover .rail__node {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 14px rgba(227, 167, 47, 0.6);
}

/* ── stats ────────────────────────────────────────────────── */

.case__side { display: flex; flex-direction: column; gap: 2.5rem; }

.stat__label {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.7rem;
}

/* serif returns here, echoing the wordmark */
.stat__figure {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.9rem, 6vw, 4.4rem);
  line-height: 1;
  letter-spacing: -0.02em;
  margin: 0;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(160deg, var(--text) 30%, var(--accent) 140%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.growth__row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0 0 0.6rem;
  flex-wrap: wrap;
}

.growth__from, .growth__to {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.growth__from { color: var(--muted); }
.growth__to   { color: var(--accent); }

.growth__arrow {
  flex: 1 1 40px;
  min-width: 40px;
  height: 1px;
  background: linear-gradient(to right, var(--line-lit), var(--accent));
  position: relative;
}
.growth__arrow::after {
  content: "";
  position: absolute;
  right: 0; top: 50%;
  transform: translateY(-50%);
  border-left: 5px solid var(--accent);
  border-top: 3.5px solid transparent;
  border-bottom: 3.5px solid transparent;
}

.growth__note { font-size: 0.85rem; color: var(--muted); margin: 0; font-weight: 300; }

/* ── proof (the cropped dashboard) ────────────────────────── */

.proof { margin: 0; }

.proof__frame {
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: 0;
  padding: clamp(0.5rem, 1.5vw, 1.1rem);
  max-width: 100%;   /* the scroll container must never exceed its column */
  overflow-x: auto;
  overscroll-behavior-x: contain;
  box-shadow: 0 30px 60px -35px rgba(0, 0, 0, 0.9);
  transition: transform 0.8s var(--silk), box-shadow 0.8s var(--silk);
}
.proof:hover .proof__frame {
  transform: translateY(-3px);
  box-shadow: 0 36px 70px -35px rgba(0, 0, 0, 0.95);
}

/* never upscale past native, the screenshot goes soft above 952px */
.proof__frame img { width: 100%; height: auto; max-width: 952px; margin-inline: auto; }

.proof__cap {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 1rem;
}

/* ── result block ─────────────────────────────────────────── */

.result__line {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  color: var(--text);
  font-size: 1rem;
  margin: 0 0 0.75rem;
  max-width: 42ch;
  font-weight: 300;
}
.result__line .dot { transform: translateY(-3px); }

/* ── video ────────────────────────────────────────────────── */

.video { margin: 0; }

.video__frame {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 0;
  overflow: hidden;
  background: var(--surface);
  max-width: 640px;
  box-shadow: 0 30px 60px -35px rgba(0, 0, 0, 0.9);
  transition: border-color 0.8s var(--silk), box-shadow 0.8s var(--silk);
}
.video__frame:hover {
  border-color: var(--line-lit);
  box-shadow: 0 36px 70px -35px rgba(0, 0, 0, 0.95),
              0 0 55px -30px rgba(227, 167, 47, 0.25);
}
.video__frame video {
  width: 100%;
  height: auto;
  aspect-ratio: 640 / 368;
  object-fit: cover;
  transition: transform 1.4s var(--silk);
}
.video__frame:hover video { transform: scale(1.035); }

.video__sound {
  position: absolute;
  right: 0.8rem;
  bottom: 0.8rem;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
  background: rgba(10, 10, 10, 0.62);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--line-lit);
  border-radius: 3px;
  padding: 0.5rem 0.75rem;
  cursor: pointer;
  transition: border-color 0.5s var(--silk), color 0.5s var(--silk), background 0.5s var(--silk);
}
.video__sound:hover {
  border-color: rgba(227, 167, 47, 0.6);
  color: var(--accent);
  background: rgba(10, 10, 10, 0.8);
}

/* ── contact ──────────────────────────────────────────────── */

.contact__title {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.04;
  letter-spacing: -0.036em;
  margin: 0 0 clamp(2.5rem, 5vw, 4rem);
  max-width: 16ch;
}
.contact__title em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: -0.01em;
}

.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}

.field { margin-bottom: 1.5rem; }

.field label {
  display: block;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.6rem;
  transition: color 0.45s var(--silk);
}
.field:focus-within label { color: var(--accent); }

.field input,
.field textarea {
  width: 100%;
  background: var(--ink-lift);
  border: 1px solid var(--line);
  border-radius: 3px;
  color: var(--text);
  font-family: var(--body);
  font-size: 1rem;
  padding: 1rem 1.1rem;
  transition: border-color 0.5s var(--silk), background 0.5s var(--silk), box-shadow 0.5s var(--silk);
}
.field textarea { resize: vertical; min-height: 140px; line-height: 1.6; }

/* #827F7B clears 4.5:1 on the field background, the darker grey did not */
.field input::placeholder,
.field textarea::placeholder { color: #827F7B; opacity: 1; }

.field input:hover,
.field textarea:hover { border-color: var(--line-lit); }

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: rgba(227, 167, 47, 0.55);
  background: var(--surface);
  box-shadow: 0 0 0 3px rgba(227, 167, 47, 0.09);
}

.field.is-bad input,
.field.is-bad textarea { border-color: #B4453A; }

.field__err {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  color: #D2695C;
  margin: 0.5rem 0 0;
}

/* honeypot: off-screen, untabbable, never announced */
.hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.form__status {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  line-height: 1.6;
  margin: 1.1rem 0 0;
  color: var(--muted);
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  opacity: 0;
  transform: translateY(6px);
}
.form__status.is-in {
  opacity: 1;
  transform: none;
  transition: opacity 0.6s var(--silk), transform 0.6s var(--silk);
}
.form__status:empty { display: none; }

.form__status.is-ok  { color: var(--accent); }
.form__status.is-err { color: #D2695C; }

/* a marker dot that matches the page's own punctuation */
.form__status.is-ok::before,
.form__status.is-err::before {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  transform: translateY(-2px);
}
.form__status.is-ok::before {
  box-shadow: 0 0 12px rgba(227, 167, 47, 0.7);
}

.direct { border-left: 1px solid var(--line); padding-left: clamp(1.5rem, 3vw, 2.5rem); }

.direct__label {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.8rem;
}
.direct__label--sp { margin-top: 2.75rem; }

.direct__mail {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.15rem, 2.2vw, 1.6rem);
  letter-spacing: -0.022em;
  line-height: 1.2;
  word-break: break-word;
  border-bottom: 1px solid var(--line-lit);
  padding-bottom: 3px;
  transition: color 0.5s var(--silk), border-color 0.5s var(--silk);
}
.direct__mail:hover { color: var(--accent); border-color: var(--accent); }

.direct__link {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 1.05rem;
  font-weight: 500;
  transition: color 0.5s var(--silk), gap 0.5s var(--silk);
}
.direct__link:hover { color: var(--accent); gap: 1.1rem; }

.direct__arrow { width: 20px; height: 1px; background: currentColor; position: relative; }
.direct__arrow::after {
  content: "";
  position: absolute;
  right: 0; top: 50%;
  transform: translateY(-50%);
  border-left: 5px solid currentColor;
  border-top: 3.5px solid transparent;
  border-bottom: 3.5px solid transparent;
}

.direct__social { display: flex; gap: 1.75rem; flex-wrap: wrap; }
.direct__social a {
  position: relative;
  font-size: 0.95rem;
  color: var(--muted);
  padding-bottom: 3px;
  transition: color 0.5s var(--silk);
}
.direct__social a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.55s var(--silk);
}
.direct__social a:hover { color: var(--text); }
.direct__social a:hover::after { transform: scaleX(1); transform-origin: left; }

/* ── footer ───────────────────────────────────────────────── */

.foot {
  position: relative;
  padding-block: 2.5rem;
}
.foot::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line) 20%, var(--line) 80%, transparent);
}
.foot__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.foot__inner p { margin: 0; }
.foot__inner a { transition: color 0.5s var(--silk); }
.foot__inner a:hover { color: var(--accent); }

/* ── reveal, only active while JS runs ────────────────────── */

.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 1.05s var(--silk), transform 1.05s var(--silk);
}
.js .reveal.is-in { opacity: 1; transform: none; }

/* ── responsive ───────────────────────────────────────────── */

@media (max-width: 980px) {
  /* minmax(0,·) everywhere: a bare 1fr takes its minimum from the widest
     child's min-content, so one oversized element blows the whole column out
     past the viewport and the page gets clipped on the right */
  .hero__grid { grid-template-columns: minmax(0, 1fr); gap: 3rem; }
  .hero__media { max-width: 440px; }
  .hero__title { font-size: calc(clamp(1.9rem, 6.2vw, 3.2rem) * var(--fit, 1)); }

  .case__grid { grid-template-columns: minmax(0, 1fr); gap: 2.75rem; }
  .case__grid--alt > .case__body { order: 1; }
  .case__grid--alt > .case__side { order: 2; }

  .contact__grid { grid-template-columns: minmax(0, 1fr); }
  .direct {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding-left: 0;
    padding-top: 2.75rem;
  }
}

@media (max-width: 720px) {
  .nav__links { display: none; }
  .nav__toggle { display: flex; }
  .nav__mobile.is-open { display: flex; }

  .hero { padding-top: 2.5rem; }
  .hero__media { max-width: 100%; }
  .portrait img { aspect-ratio: 4 / 4.4; }

  .contact__title { max-width: 100%; }
  .foot__inner { flex-direction: column; align-items: flex-start; }

  /* below this the dashboard labels stop being legible, so let it scroll */
  .proof__frame img { width: auto; min-width: 620px; max-width: none; margin-inline: 0; }
  .proof__cap::after { content: ", scroll to see all metrics"; }

  .marquee__track { animation-duration: 32s; }

  .hero__field { height: 30%; min-height: 150px; }
}

@media (max-width: 480px) {
  body { font-size: 1rem; }
  .btn { width: 100%; }
  .hero__cta { flex-direction: column; align-items: stretch; }
  .growth__row { gap: 0.75rem; }
  .hero__title { font-size: calc(clamp(1.55rem, 7.2vw, 2.3rem) * var(--fit, 1)); }
}

/* ── reduced motion ───────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .grain { animation: none; }
  .marquee__track { animation: none; transform: none; }
  .marquee {
    overflow-x: auto;
    -webkit-mask-image: none;
    mask-image: none;
  }
  .js .reveal { opacity: 1; transform: none; }
  .js .hero__title .line__in,
  .js .hero__eyebrow,
  .js .hero__cta,
  .js .hero__media { opacity: 1; transform: none; }
  .portrait:hover img,
  .video__frame:hover video { transform: none; }
  .hero__field { display: none; }
}
