*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-weight: 460; font-family: var(--font-body); background: var(--flash-100); }
a { color: var(--blue-700); }
a:hover { color: var(--blue-700); }
img { max-width: 100%; }

@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes sm-anim-opacity-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes sm-anim-scale-in { from { transform: scale(1.28); } to { transform: scale(1); } }
@keyframes sm-anim-fade-up { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

button { border-radius: 0 !important; font: inherit; }

/* ---- Focus rings ---- */
.ds-btn-focus { display: inline-block; border-radius: 2px; }
.ds-btn-focus:has(.ds-btn:focus-visible) {
  box-shadow: 0 0 0 2px var(--focus-ring-inner), 0 0 0 5px var(--focus-ring-outer);
}
.sm-header__icon-btn:focus-visible,
.sm-modal__close:focus-visible,
.sm-footer__bottom a:focus-visible,
.sm-privacy-body .contact-link:focus-visible,
a:focus-visible {
  outline: 3px solid var(--focus-ring-inner);
  outline-offset: 2px;
}
.sm-header.is-scrolled .sm-header__icon-btn:focus-visible {
  outline-color: var(--focus-ring-outer);
}
.ds-field__input:focus-visible {
  border-color: var(--blue-700);
  box-shadow: 0 0 0 3px color-mix(in oklch, var(--blue-700) 45%, transparent);
}

#sm-root {
  --maxw: clamp(1180px, 91.67vw, 1760px);
  --pad-x: clamp(20px, 5vw, 56px);
  --pad-x-wide: clamp(24px, 6vw, 64px);
  --notch: clamp(28px, 4vw, 52px);
  --gap-lg: clamp(28px, 4.5vw, 60px);
  --box-pad: clamp(44px, 6vw, 88px) clamp(26px, 4vw, 48px);
  --agency-cols: 1.5fr 0.9fr;
  --stack-dir: row;
  --box-align: center;
  --wordmark-w: clamp(200px, 62vw, 780px);
  --why-cols: 1.05fr 0.95fr;
  --why-areas: "chip nums" "copy nums";
  --why-rowgap: 24px;
  background: var(--flash-100);
}
@media (max-width: 830px) {
  #sm-root { --agency-cols: 1fr; --stack-dir: column; --box-align: flex-start; }
}
@media (max-width: 860px) {
  #sm-root { --why-cols: 1fr 1fr; --why-areas: "chip copy" "nums nums"; --why-rowgap: 40px; }
}
@media (max-width: 650px) {
  #sm-root { --why-cols: 1fr; --why-areas: "chip" "copy" "nums"; --why-rowgap: 44px; --wordmark-w: 100%; }
}
@media (min-width: 651px) and (max-width: 860px) {
  .sm-why__copy { align-self: center; margin-top: 46px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-marquee] { animation: none !important; }
}

/* ---- Skip link ---- */
.sm-skip-link {
  position: fixed; top: -60px; left: 12px; z-index: 200;
  background: var(--navy-900); color: var(--lime-500); padding: 10px 16px;
  border-radius: var(--radius-m); transition: top 150ms ease-out;
  font-family: var(--font-body); font-weight: var(--weight-semibold); text-decoration: none;
}
.sm-skip-link:focus { top: 12px; }

/* ---- Header ---- */
.sm-header-sticky {
  position: sticky;
  top: 0;
  z-index: 30;
}
.sm-header-border.is-scrolled {
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 22px), calc(100% - 22px) 100%, 0 100%);
  background: var(--navy-950);
  transition: clip-path 180ms ease-out;
}
.sm-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px var(--pad-x);
  background: var(--lime-500);
  box-shadow: none;
  clip-path: none;
  transition: padding 180ms ease-out, background 180ms ease-out, box-shadow 180ms ease-out, clip-path 180ms ease-out;
}
.sm-header.is-scrolled {
  padding: 14px var(--pad-x);
  background: var(--navy-900);
  box-shadow: var(--shadow-m);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 23px), calc(100% - 22px) calc(100% - 1px), 0 calc(100% - 1px));
}
.sm-header__logo { height: 24px; }
.sm-header__logo img { height: 24px; display: block; }
.sm-header__logo .lime { display: none; }
.sm-header.is-scrolled .sm-header__logo .navy { display: none; }
.sm-header.is-scrolled .sm-header__logo .lime { display: block; }
.sm-header__actions { display: flex; align-items: center; }
.sm-header__icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}
.sm-header.is-scrolled .sm-header__icon-btn { display: none; }
.sm-header.is-scrolled .sm-header__icon-btn svg { stroke: var(--lime-500); }
.sm-header__cta {
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%);
}
.sm-header .sm-header__cta { display: none; }
.sm-header.is-scrolled .sm-header__cta { display: inline-block; }
.sm-header__cta .ds-btn-wrap { display: inline-block; overflow: hidden; }
@media (max-width: 360px) {
  .sm-header.is-scrolled .sm-header__cta { display: none; }
  .sm-header.is-scrolled .sm-header__icon-btn { display: flex; }
}

/* ---- Notched sections shared ---- */
.sm-notch {
  position: relative;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--notch)), calc(100% - var(--notch)) 100%, 0 100%);
}

/* ---- Hero ---- */
.sm-hero {
  z-index: 7;
  overflow: hidden;
  background: var(--navy-900);
  padding: clamp(96px, 13vw, 130px) var(--pad-x-wide) clamp(112px, 15vw, 160px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100svh;
}
.sm-hero__texture {
  position: absolute; inset: 0;
  background: url(../assets/textures/texture-navy.svg) center center / cover no-repeat;
  opacity: 0.5;
  pointer-events: none;
}
.sm-hero__glow {
  position: absolute; inset: 0;
  background: linear-gradient(215deg, rgba(198,245,0,0.22) 0%, rgba(198,245,0,0.05) 26%, rgba(11,31,58,0) 58%);
  pointer-events: none;
}
.sm-hero__fade {
  position: absolute; left: 0; right: 0; bottom: 0; height: 240px;
  background: linear-gradient(to bottom, rgba(6,13,24,0) 0%, var(--navy-950) 100%);
  pointer-events: none;
}
.sm-hero__inner {
  position: relative;
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: clamp(40px, 6vw, 72px);
}
.sm-wordmark { position: relative; width: var(--wordmark-w); }
.sm-wordmark img { display: block; width: 100%; height: auto; }
.sm-wordmark .lime-overlay {
  position: absolute; inset: 0; width: 100%; height: auto;
  clip-path: inset(64.5% 0 0 0);
  pointer-events: none;
}
.sm-hero__row {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: clamp(24px, 4vw, 48px);
  flex-wrap: wrap;
}
.sm-hero__copy {
  font-size: clamp(17px, 1.6vw, 21px);
  line-height: 1.5;
  color: color-mix(in oklch, var(--flash-white) 72%, transparent);
  max-width: 680px;
  margin: 0;
}
.sm-hero__copy span { display: block; }
.sm-notch-btn { display: inline-block; clip-path: polygon(0 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%); }
.sm-notch-btn .ds-btn-wrap { display: inline-block; overflow: hidden; }

/* ---- Agency section ---- */
.sm-agency {
  z-index: 6;
  margin-top: -52px;
  background: var(--navy-900);
  padding: clamp(96px, 12vw, 132px) var(--pad-x) clamp(64px, 9vw, 84px);
}
.sm-agency__inner { max-width: var(--maxw); margin: 0 auto; }
.sm-agency__grid { display: grid; grid-template-columns: var(--agency-cols); gap: var(--gap-lg); align-items: center; }
.sm-agency__box {
  align-self: stretch;
  min-width: 0;
  background: var(--blue-500);
  color: var(--navy-900);
  padding: var(--box-pad);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 28px), calc(100% - 28px) 100%, 0 100%);
  display: flex;
  flex-direction: var(--stack-dir);
  align-items: var(--box-align);
  gap: clamp(24px, 3vw, 48px);
}
.sm-agency__h2 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(44px, 5vw, 68px);
  line-height: 1.0;
  letter-spacing: -0.02em;
  color: var(--flash-100);
  margin: 0;
  overflow-wrap: break-word;
}
.sm-agency__h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(22px, 2.4vw, 28px);
  line-height: 1.25;
  color: var(--flash-100);
  margin: 0;
}
.sm-agency__h3 .underline-wrap { position: relative; white-space: nowrap; }
.sm-agency__h3 svg { position: absolute; left: 0; bottom: -7px; width: 100%; height: 8px; overflow: visible; }
.sm-agency__points { display: flex; flex-direction: column; gap: 18px; }
.sm-agency__point {
  display: flex; align-items: center; gap: 12px;
  font-size: clamp(16px, 1.8vw, 19px); font-weight: 600; color: var(--flash-100);
}
.sm-agency__point svg { flex-shrink: 0; }

/* ---- Why us section ---- */
.sm-why {
  z-index: 5;
  margin-top: -52px;
  background: var(--navy-950);
  padding: clamp(96px, 12vw, 132px) var(--pad-x) clamp(88px, 11vw, 120px);
}
.sm-why__inner {
  max-width: var(--maxw); margin: 0 auto;
  display: grid;
  grid-template-columns: var(--why-cols);
  grid-template-areas: var(--why-areas);
  column-gap: var(--gap-lg);
  row-gap: var(--why-rowgap);
  align-items: start;
}
.sm-eyebrow {
  display: block;
  font-family: var(--font-narrow);
  font-weight: 600;
  font-size: 19px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lime-500);
  margin-bottom: 20px;
}
.sm-why__chip { grid-area: chip; }
.sm-why__badge { align-self: start; background: var(--lime-500); clip-path: polygon(0 0, 100% 0, 100% calc(100% - 24px), calc(100% - 24px) 100%, 0 100%); padding: 2px; }
.sm-why__badge-inner {
  background: var(--navy-950);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 22px), calc(100% - 22px) 100%, 0 100%);
  padding: 28px 32px 32px;
}
.sm-why__headline {
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(34px, 3.6vw, 48px); line-height: 1.05; letter-spacing: -0.02em;
  color: var(--flash-100); margin: 0;
}
.sm-why__headline span { display: block; }
.sm-why__copy { grid-area: copy; }
.sm-why__copy p {
  font-size: clamp(16px, 1.7vw, 19px); line-height: 1.6; color: color-mix(in oklch, var(--flash-white) 78%, transparent);
  margin: 0; max-width: 460px;
}
.sm-why__copy .lead { position: relative; white-space: nowrap; color: var(--lime-500); font-weight: 600; }
.sm-why__copy .lead svg { position: absolute; left: 0; bottom: -7px; width: 100%; height: 9px; overflow: visible; }
.sm-why__nums { grid-area: nums; display: flex; flex-direction: column; gap: 16px; }
.sm-why__num-row {
  display: flex; align-items: stretch; transition: transform 220ms ease-out;
}
.sm-why__num-row:hover { transform: translateX(8px); }
.sm-why__num-digit {
  display: flex; align-items: center; justify-content: center;
  background: var(--flash-300); padding: 0 20px; flex-shrink: 0;
}
.sm-why__num-digit span {
  font-family: var(--font-display); font-weight: 900; font-size: clamp(28px, 3.4vw, 38px);
  color: var(--navy-900); line-height: 1;
}
.sm-why__num-body {
  flex: 1; background: var(--flash-300);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%);
  padding: 2px 2px 2px 0;
}
.sm-why__num-body-inner {
  height: 100%; background: var(--navy-950);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%);
  padding: 20px 24px;
}
.sm-why__num-body-inner h3 { font-family: var(--font-display); font-weight: 700; font-size: 18px; color: var(--flash-100); margin: 0 0 5px; }
.sm-why__num-body-inner p { font-size: 15px; line-height: 1.55; color: color-mix(in oklch, var(--flash-white) 72%, transparent); margin: 0; }

/* ---- Trusted-by marquee ---- */
.sm-trusted {
  z-index: 4;
  margin-top: -52px;
  background: var(--navy-900);
  padding: clamp(96px, 12vw, 124px) var(--pad-x) clamp(80px, 10vw, 108px);
}
.sm-trusted__inner { max-width: var(--maxw); margin: 0 auto; }
.sm-marquee-mask {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}
.sm-marquee-mask.is-dragging { cursor: grabbing; }
.sm-marquee {
  display: flex; width: max-content;
  animation: marquee 30s linear infinite;
}
.sm-marquee__item {
  width: min(240px, 62vw); height: min(150px, 40vw);
  margin-right: min(20px, 3vw);
  display: flex; align-items: center; justify-content: center;
  padding: 0 min(30px, 4vw);
}
.sm-marquee__item img {
  -webkit-user-drag: none;
  user-drag: none;
  pointer-events: none;
}
.sm-marquee__item img {
  max-width: 100%; width: auto; height: auto;
  filter: brightness(0) invert(1);
}
.sm-marquee__item--re img { max-height: min(96px, 24vw); }
.sm-marquee__item--market img { max-height: min(62px, 16vw); }
.sm-marquee__item--rs img { max-height: min(72px, 19vw); }
.sm-marquee__item--summits img { max-height: min(140px, 34vw); }

/* ---- CTA section ---- */
.sm-cta {
  position: relative;
  z-index: 3;
  overflow: hidden;
  margin-top: -52px;
  background: var(--navy-950);
  padding: clamp(110px, 18vw, 196px) var(--pad-x-wide) clamp(108px, 17vw, 192px);
}
.sm-cta__texture {
  position: absolute; inset: 0;
  background: url(../assets/textures/texture-lime-shapes.svg) center center / cover no-repeat;
  opacity: 0.28;
  -webkit-mask-image: linear-gradient(105deg, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.35) 40%, #000 100%), linear-gradient(180deg, transparent 0%, transparent 8%, #000 22%, #000 78%, transparent 92%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(105deg, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.35) 40%, #000 100%), linear-gradient(180deg, transparent 0%, transparent 8%, #000 22%, #000 78%, transparent 92%, transparent 100%);
  mask-composite: intersect;
  pointer-events: none;
}
.sm-cta__inner {
  position: relative; max-width: var(--maxw); margin: 0 auto;
  display: flex; flex-direction: column; align-items: flex-start; gap: clamp(28px, 4vw, 44px);
}
.sm-cta__wordmark { position: relative; width: clamp(200px, 62vw, 780px); }
.sm-cta__wordmark img { display: block; width: 100%; height: auto; }
.sm-cta__wordmark .lime-overlay { position: absolute; inset: 0; width: 100%; height: auto; clip-path: inset(64.5% 0 0 0); pointer-events: none; }
.sm-cta__copy { font-size: clamp(16px, 1.5vw, 18px); line-height: 1.55; color: color-mix(in oklch, var(--flash-white) 60%, transparent); margin: 0; max-width: 640px; }
.sm-cta__copy span { display: block; }

/* ---- Footer ---- */
.sm-footer {
  position: relative;
  z-index: 4;
  margin-top: -64px;
  background: var(--navy-900);
  color: var(--text-inverse);
  padding: clamp(48px, 7vw, 64px) var(--pad-x) 32px;
  clip-path: polygon(var(--notch) 0, 100% 0, 100% 100%, 0 100%, 0 var(--notch));
}
.sm-footer__inner { max-width: var(--maxw); margin: 0 auto; }
.sm-footer__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; flex-wrap: wrap; }
.sm-footer__brand { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.sm-footer__brand img { height: clamp(44px, 7vw, 60px); }
.sm-footer__brand p { margin: 0; font-size: 13px; opacity: 0.65; max-width: 440px; }
.sm-notch-btn--footer { display: inline-block; clip-path: polygon(0 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%); }
.sm-footer__bottom {
  margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.12);
  display: flex; justify-content: space-between; font-size: 13px; opacity: 0.6;
}
.sm-footer__bottom a { color: inherit; text-decoration: underline; cursor: pointer; background: none; border: none; font: inherit; padding: 0; }

/* ---- Modals ---- */
.sm-modal-overlay {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: center; justify-content: center;
  overflow-y: auto; -webkit-overflow-scrolling: touch;
  padding: clamp(16px, 4vw, 32px);
  background: color-mix(in oklch, var(--navy-900) 55%, transparent);
  opacity: 0;
  transition: opacity 220ms ease-out;
}
.sm-modal-overlay[hidden] { display: none; }
.sm-modal-overlay.is-visible { opacity: 1; }
.sm-modal {
  position: relative; background: var(--pure-white); border-radius: var(--radius-m);
  padding: clamp(24px, 5vw, 40px); width: 440px; max-width: 100%; margin: auto;
  box-shadow: var(--shadow-l); display: flex; flex-direction: column; gap: 16px; outline: none;
  opacity: 0;
  transform: scale(0.94) translateY(10px);
  transition: opacity 220ms ease-out, transform 220ms cubic-bezier(0.16,0.72,0.32,1);
}
.sm-modal-overlay.is-visible .sm-modal { opacity: 1; transform: scale(1) translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .sm-modal-overlay, .sm-modal { transition: none; }
}
.sm-modal--privacy {
  width: 640px;
  max-height: calc(100dvh - clamp(32px, 8vw, 48px));
  padding: 0;
}
.sm-modal__close {
  position: absolute; top: 14px; right: 14px; z-index: 2;
  width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--navy-900); background: none; border: none;
  border-radius: var(--radius-m); transition: background 150ms ease-out;
}
.sm-modal__close:hover { background: var(--surface-muted); }
.sm-modal--privacy .sm-modal__close { background: var(--pure-white); }
.sm-modal--privacy .sm-modal__close:hover { background: var(--surface-muted); }

.sm-success { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding: 12px 0; }
.sm-success[hidden] { display: none; }
.sm-success__icon { width: 56px; height: 56px; border-radius: 50%; background: var(--lime-500); display: flex; align-items: center; justify-content: center; }
.sm-success h2 { font-family: var(--font-display); font-weight: 900; font-size: 28px; color: var(--navy-900); margin: 0; }
.sm-success p { color: var(--text-secondary); font-size: 15px; margin: 0; }

.sm-modal h2.sm-modal__title { font-family: var(--font-display); font-weight: 900; font-size: 28px; color: var(--navy-900); margin: 0 0 6px; }
.sm-modal p.sm-modal__subtitle { color: var(--text-secondary); font-size: 15px; margin: 0; }

.sm-form-error {
  font-size: 14px; color: var(--danger);
  background: color-mix(in oklch, var(--danger) 10%, var(--pure-white));
  border: 1px solid color-mix(in oklch, var(--danger) 35%, var(--pure-white));
  border-radius: var(--radius-m); padding: 10px 14px;
}

.sm-privacy-body { overflow-y: auto; padding: clamp(24px, 5vw, 40px); color: var(--text-secondary); font-size: 15px; line-height: 1.6; }
.sm-privacy-body h2 { font-family: var(--font-display); font-weight: 900; font-size: 30px; color: var(--navy-900); margin: 0 0 4px; padding-right: 32px; }
.sm-privacy-body .updated { font-size: 13px; color: var(--text-muted); margin: 0 0 24px; }
.sm-privacy-body p { margin: 0 0 24px; }
.sm-privacy-body h3 { font-family: var(--font-display); font-weight: 800; font-size: 18px; color: var(--navy-900); margin: 0 0 8px; }
.sm-privacy-body .contact-link { color: var(--blue-700); text-decoration: underline; cursor: pointer; font-weight: 600; }

/* Reduced-motion / initial anim state handled in JS, but guard against FOUC */
[data-anim] { will-change: opacity, transform; }
