/* =========================================================
   WinROAS — premium dark performance-marketing landing
   Palette (locked): off-black + warm off-white + acid lime
   Type: Space Grotesk (display) / Manrope (body) / JetBrains Mono (numbers)
   Radius system: buttons pill, cards 20px, inputs 12px, chips pill
   ========================================================= */

:root {
  --bg: #08080a;
  --bg-tint: #0e0e11;
  --surface: #131317;
  --surface-2: #191920;
  --line: rgba(244, 244, 240, 0.09);
  --line-strong: rgba(244, 244, 240, 0.16);

  --text: #f4f4f0;
  --text-muted: #b7b7b1;     /* passes WCAG AA on --bg */
  --text-faint: #8a8a85;

  --accent: #c6f24e;
  --accent-deep: #aee02f;
  --accent-ink: #0a0c05;     /* text on accent, high contrast */

  --maxw: 1240px;
  --r-card: 20px;
  --r-input: 12px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-card: 0 24px 60px -32px rgba(0, 0, 0, 0.8);
  --shadow-accent: 0 18px 50px -18px rgba(198, 242, 78, 0.4);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background: url("assets/hero-bg.png") top center / 100% auto no-repeat, var(--bg);
  color: var(--text);
  font-family: "Manrope", system-ui, -apple-system, sans-serif;
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  line-height: 1.6;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* subtle fixed grain / depth, never on scrolling containers */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(120% 80% at 80% -10%, rgba(198, 242, 78, 0.04), transparent 55%),
    radial-gradient(90% 60% at 0% 0%, rgba(198, 242, 78, 0.03), transparent 50%);
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

h1, h2, h3 {
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.04;
}

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

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--accent); color: var(--accent-ink);
  padding: 0.6rem 1rem; border-radius: 0 0 12px 0; font-weight: 600;
}
.skip-link:focus { left: 0; }

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

a, button, summary, .pcard, .langtoggle__btn { touch-action: manipulation; }
/* tabular figures so animated/aligned numbers don't shift width */
.metric__num, .chartcard__value, .mini-stat__num { font-variant-numeric: tabular-nums; }

/* ---------- layout helpers ---------- */
.section {
  position: relative;
  z-index: 1;
  max-width: var(--maxw);
  margin-inline: auto;
  padding: clamp(4.5rem, 9vw, 8rem) clamp(1.25rem, 4vw, 2.5rem);
}
.section--tint {
  max-width: none;
  background: var(--bg-tint);
  border-block: 1px solid var(--line);
}
.section--tint > * {
  max-width: var(--maxw);
  margin-inline: auto;
}
.section__head { max-width: 760px; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section__title { font-size: clamp(2rem, 1.3rem + 3vw, 3.25rem); }

.eyebrow {
  display: inline-block;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.accent-word { color: var(--accent); font-style: italic; }

/* ---------- buttons ---------- */
.btn {
  --pad-y: 0.85rem; --pad-x: 1.5rem;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  padding: var(--pad-y) var(--pad-x);
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600; font-size: 1rem; line-height: 1;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease);
  white-space: nowrap;
}
.btn i { font-size: 1.1em; transition: transform 0.2s var(--ease); }
.btn--primary { background: var(--accent); color: var(--accent-ink); box-shadow: var(--shadow-accent); }
.btn--primary:hover { background: var(--accent-deep); transform: translateY(-2px); }
.btn--primary:hover i { transform: translateX(3px); }
.btn--primary:active { transform: translateY(0) scale(0.98); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.btn--sm { --pad-y: 0.6rem; --pad-x: 1.1rem; font-size: 0.9rem; }
.btn--lg { --pad-y: 1.05rem; --pad-x: 2rem; font-size: 1.05rem; }
.btn--block { width: 100%; }

/* ---------- nav ---------- */
#top-sentinel { position: absolute; top: 0; height: 1px; width: 1px; }
.nav {
  position: sticky; top: 0; z-index: 100;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), backdrop-filter 0.3s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(8, 8, 10, 0.72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line);
}
.nav__inner {
  max-width: var(--maxw); margin-inline: auto;
  height: 72px;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
}
.logo { display: inline-flex; align-items: center; gap: 0.6rem; font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 1.25rem; letter-spacing: -0.04em; }
.logo__mark {
  display: grid; place-items: center; width: 32px; height: 32px;
  background: var(--accent); color: var(--accent-ink);
  border-radius: 9px; font-size: 1.05rem;
}
.logo__accent { color: var(--accent); }

.nav__links { display: flex; gap: 2rem; }
.nav__links a { position: relative; color: var(--text-muted); font-weight: 500; font-size: 0.95rem; transition: color 0.2s var(--ease); }
.nav__links a:hover { color: var(--text); }
.nav__links a.is-current { color: var(--text); }
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -7px; height: 2px;
  background: var(--accent); border-radius: 2px;
  transform: scaleX(0); transform-origin: left; transition: transform 0.25s var(--ease);
}
.nav__links a:hover::after, .nav__links a.is-current::after { transform: scaleX(1); }
.nav__actions { display: flex; align-items: center; gap: 1rem; }
.langtoggle { display: inline-flex; padding: 3px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; }
.langtoggle__btn { font-family: "Space Grotesk", sans-serif; font-weight: 600; font-size: 0.8rem; color: var(--text-faint); background: transparent; border: none; cursor: pointer; padding: 0.42rem 0.85rem; border-radius: 999px; transition: background 0.2s var(--ease), color 0.2s var(--ease); }
.langtoggle__btn.is-active { background: var(--accent); color: var(--accent-ink); }
.langtoggle__btn:not(.is-active):hover { color: var(--text); }
.langtoggle--mobile { align-self: flex-start; margin: 0.6rem 0; }

.nav__burger {
  display: none; background: none; border: none; color: var(--text);
  font-size: 1.6rem; cursor: pointer; padding: 0.25rem;
}
.mobile-menu { display: none; }

/* ---------- hero ---------- */
.hero {
  position: relative; z-index: 1;
  max-width: var(--maxw); margin-inline: auto;
  padding: clamp(2.5rem, 6vw, 5rem) clamp(1.25rem, 4vw, 2.5rem) clamp(3.5rem, 7vw, 6rem);
  min-height: min(88vh, 880px);
  display: flex; align-items: center;
}
.hero__grid {
  width: 100%;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
}
.hero__title {
  font-size: clamp(2.75rem, 1.6rem + 5vw, 5rem);
  letter-spacing: -0.04em;
  margin-bottom: 1.5rem;
}
.hero__subtitle {
  font-size: clamp(1.05rem, 1rem + 0.4vw, 1.3rem);
  color: var(--text-muted);
  max-width: 34ch;
  margin-bottom: 2rem;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 1.25rem; }
.hero__reassure { font-size: 0.9rem; color: var(--text-faint); display: flex; align-items: center; gap: 0.4rem; }

/* hero chart card */
.hero__visual { justify-self: end; width: 100%; }
.chartcard {
  position: relative;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 1.6rem;
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.chartcard::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  pointer-events: none;
}
.chartcard__case {
  display: inline-flex; align-items: center; gap: 0.4rem; margin-bottom: 1rem;
  font-family: "JetBrains Mono", monospace; font-size: 0.66rem; font-weight: 600;
  letter-spacing: 0.13em; text-transform: uppercase; color: var(--text-faint);
}
.chartcard__case::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.chartcard__head { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 1.4rem; }
.chartcard__label { display: block; font-size: 0.82rem; color: var(--text-faint); margin-bottom: 0.35rem; }
.chartcard__value { font-family: "Space Grotesk", sans-serif; font-size: 2.4rem; font-weight: 700; letter-spacing: -0.04em; }
.chartcard__value small { font-size: 1.3rem; color: var(--accent); margin-left: 1px; }
.chartcard__delta {
  display: inline-flex; align-items: center; gap: 0.3rem;
  background: rgba(198, 242, 78, 0.12); color: var(--accent);
  font-family: "JetBrains Mono", monospace; font-size: 0.8rem; font-weight: 600;
  padding: 0.35rem 0.6rem; border-radius: 999px;
}
.chartcard__svg { width: 100%; height: 150px; display: block; }
.chart-grid line { stroke: var(--line); stroke-width: 1; }
.chart-area { opacity: 0; transition: opacity 0.8s var(--ease) 0.5s; }
.chart-line {
  fill: none; stroke: var(--accent); stroke-width: 3;
  stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 1; stroke-dashoffset: 1;
}
.chart-dots circle { fill: var(--bg); stroke: var(--accent); stroke-width: 3; opacity: 0; transition: opacity 0.3s var(--ease); }
.chartcard.is-drawn .chart-line { animation: draw 1.5s var(--ease) forwards; }
.chartcard.is-drawn .chart-area { opacity: 1; }
.chartcard.is-drawn .chart-dots circle { opacity: 1; }
.chartcard.is-drawn .chart-dots circle:nth-child(1) { transition-delay: 0.3s; }
.chartcard.is-drawn .chart-dots circle:nth-child(2) { transition-delay: 0.6s; }
.chartcard.is-drawn .chart-dots circle:nth-child(3) { transition-delay: 0.9s; }
.chartcard.is-drawn .chart-dots circle:nth-child(4) { transition-delay: 1.2s; }
.chartcard.is-drawn .chart-dots circle:nth-child(5) { transition-delay: 1.5s; }
@keyframes draw { to { stroke-dashoffset: 0; } }

.chartcard__axis { display: flex; justify-content: space-between; font-family: "JetBrains Mono", monospace; font-size: 0.7rem; color: var(--text-faint); margin-top: 0.6rem; padding-top: 0.6rem; }
.chartcard__foot { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1.2rem; padding-top: 1.2rem; border-top: 1px solid var(--line); }
.mini-stat__num { display: block; font-family: "Space Grotesk", sans-serif; font-size: 1.5rem; font-weight: 700; color: var(--accent); letter-spacing: -0.03em; }
.mini-stat__cap { font-size: 0.78rem; color: var(--text-faint); }

/* ---------- trust / stack ---------- */
.stack {
  position: relative; z-index: 1;
  max-width: var(--maxw); margin-inline: auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem) clamp(2rem, 4vw, 3rem);
  text-align: center;
}
.stack__bar {
  display: inline-flex;
  align-items: stretch;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  margin-bottom: 0.85rem;
}
/* native, on-theme Google Partner credential (no white pocket) */
.stack__partner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.85rem 1.35rem 0.85rem 1.2rem;
  background: var(--surface-2);
  border-radius: 17px 0 0 17px;
  flex: none;
  text-decoration: none;
  transition: background 0.18s var(--ease);
}
.stack__partner:hover { background: var(--bg-tint); }
.stack__partner:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.stack__g { display: block; flex: none; }
.stack__partner-text { display: flex; flex-direction: column; gap: 0.1rem; text-align: left; }
.stack__partner-label {
  display: inline-flex; align-items: center; gap: 0.35rem;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600; font-size: 0.95rem; letter-spacing: -0.01em;
  color: var(--text); line-height: 1.15;
}
.stack__partner-label i { color: #4285f4; font-size: 1rem; }
.stack__partner-sub { font-size: 0.72rem; color: var(--text-faint); line-height: 1.2; }
.stack__bar-sep { width: 1px; align-self: stretch; background: var(--line-strong); flex: none; }
.stack__caption {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1.1rem;
}
.stack__logos { display: inline-flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: clamp(1.25rem, 3.5vw, 2.25rem); padding: 1rem clamp(1.1rem, 3.5vw, 2rem); }
.stack__logos img { height: 30px; width: auto; }
/* hover tooltip with the service name (info hint, not a clickable affordance) */
.stack__logos li { position: relative; }
.stack__logos li[data-tip]::after {
  content: attr(data-tip);
  position: absolute; left: 50%; bottom: calc(100% + 12px);
  transform: translateX(-50%) translateY(4px);
  white-space: nowrap;
  background: var(--surface-2); color: var(--text);
  border: 1px solid var(--line-strong); border-radius: 8px;
  font-family: "Manrope", sans-serif; font-size: 0.74rem; font-weight: 500; letter-spacing: 0;
  padding: 0.35rem 0.6rem; box-shadow: var(--shadow-card);
  opacity: 0; pointer-events: none;
  transition: opacity 0.18s var(--ease), transform 0.18s var(--ease);
  z-index: 10;
}
.stack__logos li[data-tip]::before {
  content: ""; position: absolute; left: 50%; bottom: calc(100% + 7px);
  transform: translateX(-50%);
  border: 5px solid transparent; border-top-color: var(--surface-2);
  opacity: 0; transition: opacity 0.18s var(--ease); z-index: 10;
}
.stack__logos li[data-tip]:hover::after { opacity: 1; transform: translateX(-50%) translateY(0); }
.stack__logos li[data-tip]:hover::before { opacity: 1; }
/* same hover hint on the Google Partner credential */
.stack__partner[data-tip]::after {
  content: attr(data-tip);
  position: absolute; left: 50%; bottom: calc(100% + 12px);
  transform: translateX(-50%) translateY(4px);
  white-space: nowrap;
  background: var(--surface-2); color: var(--text);
  border: 1px solid var(--line-strong); border-radius: 8px;
  font-family: "Manrope", sans-serif; font-size: 0.74rem; font-weight: 500; letter-spacing: 0; text-transform: none;
  padding: 0.35rem 0.6rem; box-shadow: var(--shadow-card);
  opacity: 0; pointer-events: none;
  transition: opacity 0.18s var(--ease), transform 0.18s var(--ease);
  z-index: 10;
}
.stack__partner[data-tip]::before {
  content: ""; position: absolute; left: 50%; bottom: calc(100% + 7px);
  transform: translateX(-50%);
  border: 5px solid transparent; border-top-color: var(--surface-2);
  opacity: 0; transition: opacity 0.18s var(--ease); z-index: 10;
}
.stack__partner[data-tip]:hover::after { opacity: 1; transform: translateX(-50%) translateY(0); }
.stack__partner[data-tip]:hover::before { opacity: 1; }

/* ---------- metrics band ---------- */
.metrics {
  position: relative; z-index: 1;
  max-width: var(--maxw); margin-inline: auto;
  padding: clamp(2.5rem, 5vw, 4rem) clamp(1.25rem, 4vw, 2.5rem);
}
.metrics__grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden;
}
.metric { background: var(--bg); padding: clamp(1.5rem, 3vw, 2.25rem); }
.metric__num { font-family: "Space Grotesk", sans-serif; font-size: clamp(2.2rem, 1.2rem + 3vw, 3.4rem); font-weight: 700; letter-spacing: -0.04em; line-height: 1; }
.metric__num span { color: var(--accent); }
.metric__cap { display: block; margin-top: 0.7rem; color: var(--text-muted); font-size: 0.92rem; max-width: 22ch; }
.metrics__note { margin-top: 1rem; font-size: 0.8rem; color: var(--text-faint); }

/* ---------- bento (services) ---------- */
.bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: minmax(190px, auto);
  gap: 1rem;
}
.bento__cell {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: clamp(1.4rem, 2.5vw, 1.9rem);
  display: flex; flex-direction: column;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}
.bento__cell:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.bento__cell h3 { font-size: 1.3rem; margin-bottom: 0.6rem; }
.bento__cell p { color: var(--text-muted); font-size: 0.95rem; }
.bento__cell--lg { grid-column: span 1; grid-row: span 2; }
.bento__cell--wide { grid-column: span 2; }
.bento__icon {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(198, 242, 78, 0.1); color: var(--accent); font-size: 1.4rem; margin-bottom: 1.1rem;
}
.bento__icon--dark { background: rgba(10, 12, 5, 0.25); color: var(--accent-ink); }
.bento__cell--accent { background: linear-gradient(150deg, var(--accent), var(--accent-deep)); color: var(--accent-ink); border-color: transparent; }
.bento__cell--accent p { color: rgba(10, 12, 5, 0.78); }
.bento__cell--photo { background-size: cover; background-position: center; justify-content: flex-end; color: var(--text); min-height: 240px; }
.bento__cell--photo p { color: rgba(244, 244, 240, 0.85); }
.bento__viz { margin-top: auto; padding-top: 1.2rem; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.kw { font-family: "JetBrains Mono", monospace; font-size: 0.78rem; color: var(--text-muted); background: var(--surface-2); border: 1px solid var(--line); padding: 0.35rem 0.65rem; border-radius: 999px; }
.kw b { color: var(--accent); font-weight: 600; }

/* ---------- process ---------- */
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; counter-reset: step; }
.process__step { position: relative; padding-top: 2rem; border-top: 2px solid var(--line); }
.process__step::before {
  content: ""; position: absolute; top: -2px; left: 0; width: 38px; height: 2px; background: var(--accent);
}
.process__idx { font-family: "JetBrains Mono", monospace; font-size: 0.85rem; color: var(--accent); font-weight: 600; }
.process__step h3 { font-size: 1.4rem; margin: 0.5rem 0 0.6rem; }
.process__step p { color: var(--text-muted); font-size: 0.95rem; }

/* ---------- section lead ---------- */
.section__lead { color: var(--text-muted); font-size: 1.05rem; margin-top: 1rem; max-width: 60ch; }

/* ---------- portfolio gallery ---------- */
.portfolio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.pcard {
  display: block; text-align: left; padding: 0; cursor: pointer; font: inherit; color: inherit;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card);
  overflow: hidden; transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}
.pcard:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.pcard__media { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--surface-2); }
.pcard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s var(--ease); }
.pcard:hover .pcard__media img { transform: scale(1.04); }
.pcard__bar { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; padding: 1rem 1.1rem; }
.pcard__name { font-family: "Space Grotesk", sans-serif; font-weight: 600; font-size: 1rem; }
.pcard__tag { font-family: "JetBrains Mono", monospace; font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent); background: rgba(198, 242, 78, 0.1); padding: 0.32rem 0.6rem; border-radius: 999px; white-space: nowrap; }
.portfolio__hint { margin-top: 1.6rem; font-size: 0.9rem; color: var(--text-faint); display: flex; align-items: center; gap: 0.5rem; }
.portfolio__hint i { color: var(--accent); font-size: 1.1rem; }

/* ---------- lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(4, 4, 6, 0.92);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  overflow-y: auto; overscroll-behavior: contain;
  padding: clamp(1.25rem, 4vw, 3rem);
}
.lightbox[hidden] { display: none; }
.lightbox__close {
  position: fixed; top: 1.25rem; right: 1.25rem; z-index: 2;
  width: 48px; height: 48px; border-radius: 999px;
  display: grid; place-items: center; cursor: pointer;
  background: var(--surface); border: 1px solid var(--line-strong); color: var(--text); font-size: 1.4rem;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.lightbox__close:hover { border-color: var(--accent); color: var(--accent); }
.lightbox__inner { max-width: 1040px; margin: 0 auto; }
.lightbox__title { font-size: clamp(1.4rem, 1rem + 2vw, 2.1rem); margin-bottom: 1.5rem; padding-right: 3.5rem; }
.lightbox__images { display: grid; gap: 1rem; }
.lightbox__images img { width: 100%; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); }

/* ---------- about ---------- */
.about { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.about__media { position: relative; border-radius: var(--r-card); overflow: hidden; border: 1px solid var(--line); background: linear-gradient(160deg, var(--surface-2), var(--surface)); min-height: 320px; }
.about__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; filter: grayscale(0.15) contrast(1.02); }
.about__badge {
  position: absolute; left: 1rem; bottom: 1rem;
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: rgba(8, 8, 10, 0.78); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--line-strong); color: var(--accent);
  font-size: 0.82rem; font-weight: 600; padding: 0.5rem 0.85rem; border-radius: 999px;
}
.about__content p { color: var(--text-muted); margin-bottom: 1.1rem; max-width: 56ch; }
.about__content .section__title { margin-bottom: 1.4rem; }
.about__points { display: grid; gap: 0.7rem; margin-top: 1.5rem; }
.about__points li { display: flex; align-items: center; gap: 0.65rem; font-weight: 500; }
.about__points i { color: var(--accent); font-size: 1.2rem; flex-shrink: 0; }

/* ---------- principles ---------- */
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.principle { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 1.8rem; transition: transform 0.3s var(--ease), border-color 0.3s var(--ease); }
.principle:hover { transform: translateY(-3px); border-color: var(--line-strong); }
.principle > i { font-size: 1.8rem; color: var(--accent); display: block; margin-bottom: 1rem; }
.principle h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }
.principle p { color: var(--text-muted); font-size: 0.95rem; }

/* ---------- industries (labelled rows + per-row marquee, non-interactive) ---------- */
.industries { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.85rem; }
.iarow { display: flex; align-items: center; gap: 1.25rem; }
.iarow__label { flex: none; width: 152px; display: flex; align-items: baseline; gap: 0.5rem; font-family: "JetBrains Mono", monospace; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.07em; color: var(--accent); }
.iarow__label em { font-style: normal; color: var(--text-faint); font-size: 0.72rem; }
.imarquee { flex: 1; min-width: 0; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 4%, #000 92%, transparent); }
.imarquee__track { display: inline-flex; gap: 0.7rem; width: max-content; will-change: transform; animation: imarquee-l 42s linear infinite; }
.imarquee--reverse .imarquee__track { animation-name: imarquee-r; }
.imarquee:hover .imarquee__track { animation-play-state: paused; }
.imarquee__track.is-static { animation: none; }
@keyframes imarquee-l { to { transform: translateX(-50%); } }
@keyframes imarquee-r { from { transform: translateX(-50%); } to { transform: translateX(0); } }
.ipill { flex: none; white-space: nowrap; font-size: 0.92rem; color: var(--text-muted); background: var(--surface); border: 1px solid var(--line); padding: 0.55rem 1rem; border-radius: 999px; }

/* ---------- faq ---------- */
.faq { display: grid; gap: 0.75rem; max-width: 820px; }
.faq__item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-input); overflow: hidden; transition: border-color 0.25s var(--ease); }
.faq__item[open] { border-color: var(--line-strong); }
.faq__item summary {
  list-style: none; cursor: pointer; padding: 1.2rem 1.4rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  font-family: "Space Grotesk", sans-serif; font-weight: 600; font-size: 1.08rem;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary i { color: var(--accent); font-size: 1.2rem; transition: transform 0.3s var(--ease); flex-shrink: 0; }
.faq__item[open] summary i { transform: rotate(45deg); }
.faq__body { padding: 0 1.4rem 1.3rem; }
.faq__body p { color: var(--text-muted); max-width: 65ch; }

/* ---------- audit / final CTA ---------- */
.audit {
  position: relative; z-index: 1;
  max-width: var(--maxw); margin: clamp(2rem, 5vw, 4rem) auto; scroll-margin-top: 90px;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}
.audit__inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem);
  background:
    radial-gradient(120% 120% at 100% 0%, rgba(198, 242, 78, 0.1), transparent 50%),
    var(--surface);
  border: 1px solid var(--line-strong); border-radius: calc(var(--r-card) + 8px);
  padding: clamp(2rem, 5vw, 4rem);
}
.audit__title { font-size: clamp(1.8rem, 1.2rem + 2.5vw, 2.8rem); margin-bottom: 1rem; }
.audit__sub { color: var(--text-muted); font-size: 1.1rem; margin-bottom: 1.8rem; max-width: 42ch; }
.audit__list { display: grid; gap: 0.8rem; }
.audit__list li { display: flex; align-items: flex-start; gap: 0.65rem; color: var(--text); }
.audit__list i { color: var(--accent); font-size: 1.25rem; flex-shrink: 0; }

/* form */
.audit__form { display: grid; gap: 1.1rem; align-content: start; }
.field { display: grid; gap: 0.4rem; }
.field label { font-size: 0.9rem; font-weight: 600; color: var(--text); }
.field--required label::after { content: " *"; color: var(--accent); }
.field input, .field select {
  width: 100%; padding: 0.85rem 1rem; border-radius: var(--r-input);
  background: var(--bg); border: 1px solid var(--line-strong); color: var(--text);
  font-family: inherit; font-size: 1rem; transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.field input::placeholder { color: var(--text-faint); }
.field input:focus, .field select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(198, 242, 78, 0.18); }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='none' stroke='%23b7b7b1' stroke-width='2'%3E%3Cpath d='M3 5l4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.5rem; cursor: pointer; }
.field__hint { font-size: 0.8rem; color: var(--text-faint); }
.field__error { font-size: 0.8rem; color: #ff8b6b; min-height: 0; }
.field.has-error input { border-color: #ff8b6b; }
.audit__privacy { font-size: 0.78rem; color: var(--text-faint); text-align: center; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.form-success { display: flex; align-items: center; gap: 0.75rem; background: rgba(198, 242, 78, 0.1); border: 1px solid rgba(198, 242, 78, 0.3); border-radius: var(--r-input); padding: 1rem 1.2rem; color: var(--text); }
.form-success[hidden] { display: none; }   /* respect the hidden attribute (author display:flex would otherwise override it) */
.form-success i { color: var(--accent); font-size: 1.6rem; }

/* ---------- footer ---------- */
.footer { position: relative; z-index: 1; border-top: 1px solid var(--line); background: var(--bg-tint); margin-top: clamp(2rem, 5vw, 4rem); }
.footer__inner {
  max-width: var(--maxw); margin-inline: auto;
  padding: clamp(2.5rem, 5vw, 4rem) clamp(1.25rem, 4vw, 2.5rem) 2rem;
  display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 2rem;
}
.footer__brand p { color: var(--text-faint); font-size: 0.9rem; margin-top: 0.9rem; max-width: 30ch; }
.footer__badge { display: inline-block; flex: none; border-radius: 12px; transition: opacity 0.2s var(--ease), transform 0.2s var(--ease); }
.footer__badge:hover { opacity: 0.9; transform: translateY(-2px); }
.footer__badge:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.footer__badge img { height: 90px; width: auto; }
.footer__nav { display: flex; flex-direction: column; gap: 0.7rem; }
.footer__nav a { color: var(--text-muted); transition: color 0.2s var(--ease); }
.footer__nav a:hover { color: var(--accent); }
.footer__contacts { display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 1.25rem 1.5rem; }
.footer__contacts-links { display: flex; flex-direction: column; gap: 0.7rem; }
.footer__contacts a { color: var(--text-muted); display: inline-flex; align-items: center; gap: 0.5rem; transition: color 0.2s var(--ease); }
.footer__contacts a:hover { color: var(--accent); }
.footer__contacts i { color: var(--accent); font-size: 1.15rem; }
.footer__bottom {
  max-width: var(--maxw); margin-inline: auto;
  padding: 1.4rem clamp(1.25rem, 4vw, 2.5rem); border-top: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  font-size: 0.85rem; color: var(--text-faint);
}
.footer__bottom a { color: var(--accent); }

/* ---------- legal / prose pages (privacy, terms) ---------- */
.legal__top, .legal__foot { max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(1.25rem, 4vw, 2.5rem); }
.legal__top { height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; border-bottom: 1px solid var(--line); }
.legal__back { color: var(--text-muted); font-weight: 500; font-size: 0.95rem; display: inline-flex; align-items: center; gap: 0.4rem; transition: color 0.2s var(--ease); }
.legal__back:hover { color: var(--accent); }
.legal { max-width: 820px; margin: clamp(2.5rem, 6vw, 4.5rem) auto; padding: 0 clamp(1.25rem, 4vw, 2.5rem); }
.legal h1 { font-size: clamp(2rem, 1.4rem + 2.5vw, 3rem); margin-bottom: 1rem; }
.legal h2 { font-size: 1.5rem; margin: 2.4rem 0 0.8rem; }
.legal h3 { font-size: 1.15rem; margin: 1.6rem 0 0.4rem; }
.legal p { color: var(--text-muted); margin-bottom: 1rem; max-width: 72ch; }
.legal ul { list-style: disc; padding-left: 1.4rem; margin: 0 0 1rem; display: grid; gap: 0.4rem; max-width: 72ch; }
.legal li { color: var(--text-muted); }
.legal a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.legal strong { color: var(--text); font-weight: 600; }
.legal__foot { padding-block: 2rem; border-top: 1px solid var(--line); margin-top: clamp(2rem, 5vw, 4rem); color: var(--text-faint); font-size: 0.85rem; }
.legal__foot a { color: var(--accent); }

/* ---------- reveal animation (only hide when JS is present to reveal them) ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }
.reveal.is-visible { opacity: 1; transform: none; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1024px) {
  .hero__grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero { min-height: auto; padding-top: 3rem; }
  .hero__visual { justify-self: stretch; max-width: 520px; }
  .hero__subtitle { max-width: 46ch; }
  .about { grid-template-columns: 1fr; }
  .about__media { max-width: 380px; }
}

@media (max-width: 860px) {
  .nav__links, .nav__actions { display: none; }
  .nav__burger { display: block; }
  .nav.is-open .mobile-menu {
    display: flex; flex-direction: column; gap: 0.25rem;
    padding: 1rem clamp(1.25rem, 4vw, 2.5rem) 1.5rem;
    background: rgba(8, 8, 10, 0.96); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line);
  }
  .nav.is-open .mobile-menu a { padding: 0.85rem 0; color: var(--text); font-weight: 500; border-bottom: 1px solid var(--line); }
  .nav.is-open .mobile-menu a.btn { border: none; justify-content: center; margin-top: 0.75rem; }

  .metrics__grid { grid-template-columns: 1fr 1fr; }
  .bento { grid-template-columns: 1fr 1fr; }
  .bento__cell--lg { grid-row: span 1; }
  .bento__cell--wide { grid-column: span 2; }
  .process { grid-template-columns: 1fr 1fr; gap: 1.5rem 1.25rem; }
  .principles { grid-template-columns: 1fr 1fr; }
  .portfolio { grid-template-columns: 1fr 1fr; }
  .audit__inner { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .metrics__grid { grid-template-columns: 1fr; }
  .bento { grid-template-columns: 1fr; }
  .bento__cell--wide, .bento__cell--lg { grid-column: span 1; }
  .portfolio { grid-template-columns: 1fr; }
  .process { grid-template-columns: 1fr; }
  .principles { grid-template-columns: 1fr; }
  .iarow { flex-direction: column; align-items: flex-start; gap: 0.55rem; }
  .iarow__label { width: auto; }
  .imarquee { width: 100%; align-self: stretch; }
  .footer__inner { grid-template-columns: 1fr; gap: 2rem; }
  .hero__actions .btn { flex: 1; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .reveal { opacity: 1; transform: none; }
  .chart-line { stroke-dashoffset: 0; }
  .chart-area, .chart-dots circle { opacity: 1; }
  .imarquee { -webkit-mask-image: none; mask-image: none; }
  .imarquee__track { animation: none; flex-wrap: wrap; width: auto; justify-content: flex-start; }
}
