/* ───────────────────────────────────────────────────────────────────────────
   OSPREXON — Hero section
   Practical landing-page layout:
   • Compact navbar (logo / wordmark / menu) sized for desktop UX.
   • Frame split into safe zones: corners hold cards, centre holds copy.
   • Cards never enter the headline column → no overlap, ever.
   ─────────────────────────────────────────────────────────────────────── */

:root {
  --color-bg: #ffffff;
  --color-ink: #000000;
  --color-ink-soft: #727272;
  --color-frame-border: #e6e6e6;
  --color-frame-bg: #fcfcfc;
  --color-frame-dots: #d4d4d4;

  --color-cta: #f29900;
  --color-cta-shadow: #fff288;

  --color-svc-app: #00bc0d;
  --color-svc-web: #df8d00;
  --color-svc-chat: #2295bc;
  --color-svc-ai: #0033ff;

  --font-display: "Instrument Serif", "Times New Roman", serif;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --ease-soft: cubic-bezier(0.22, 1, 0.36, 1);

  /* Layout tokens */
  --page-pad-x: clamp(0.75rem, 2.4vw, 2rem);
  --frame-radius: clamp(1.25rem, 2.8vw, 2.25rem);
  --frame-pad: clamp(0.75rem, 2vw, 1.5rem);

  /* Shared content container width + per-section vertical rhythm.
     All non-hero sections center their content with these tokens so spacing
     is consistent regardless of which section sets its own background. */
  --container-w: 1240px;
  --container-pad-x: clamp(1.1rem, 4vw, 2rem);
  --section-pad-y: clamp(3.5rem, 8vw, 7rem);

  /* Card width caps — midway between original layout and the larger pass. */
  --card-w-side: clamp(185px, 23vw, 293px);
  --card-w-wins: clamp(208px, 25.5vw, 318px);

  /* Centre safe-zone for hero copy — wide enough to keep
     "Code, build & deploy" on a single line at peak font size. */
  --hero-text-w: min(72%, 920px);
}

html {
  /* Lenis owns scroll smoothing — native smooth-scroll fights the wheel. */
  scroll-behavior: auto;
  /* Reserve scrollbar space so layout never jumps when overlays open/close. */
  scrollbar-gutter: stable;
  /* Modern viewport unit for short / mobile browsers (URL bar collapse). */
  --vh: 1svh;
}

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

html,
body {
  min-height: 100%;
  background: var(--color-bg);
  color: var(--color-ink);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  /* Hard guard: never allow horizontal scroll anywhere on the page. */
  max-width: 100vw;
}

/* Lenis smooth-scroll (required for wheel + ScrollTrigger pin to cooperate) */
html.lenis,
html.lenis body {
  height: auto;
}
html.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}
html.lenis.lenis-stopped body {
  overflow: hidden;
}
.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

/* Belt-and-suspenders against any descendant accidentally measuring wider
   than the viewport (long unbroken text, oversized SVGs, transformed
   absolute children, etc.). overflow-x: clip on body alone occasionally
   leaks under Safari with sticky/pinned children; this pins the cap. */
body > * {
  max-width: 100vw;
}

img,
svg,
video,
canvas {
  display: block;
  max-width: 100%;
  height: auto;
}

img {
  user-select: none;
  -webkit-user-drag: none;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--color-cta);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Headings & long-form text — let the browser balance line breaks on
   modern engines so titles stop orphaning a single trailing word. */
h1,
h2,
h3,
.hero__title,
.about-os__title,
.finder-heading,
.pricing__title,
.closing__title {
  text-wrap: balance;
}
p,
.hero__tagline,
.about-os__lede,
.pricing__sub,
.closing__sub {
  text-wrap: pretty;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

ul {
  list-style: none;
}

/* ────────────── Page shell ────────────── */
.page-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.page {
  flex: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 1400px;
  margin-inline: auto;
  /* Respect device safe-area insets (notches, rounded corners). */
  padding-inline: max(var(--page-pad-x), env(safe-area-inset-left));
  padding-bottom: clamp(1.5rem, 3.5vh, 2.4rem);
}

/* ────────────── Compact navbar ──────────────
   Tight, balanced 3-col grid. Designed to read as a real header bar,
   not as a hero element. Heights stay modest at every breakpoint. */
.site-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: clamp(0.5rem, 1.5vw, 1rem);
  padding-block: clamp(0.55rem, 1.6vh, 1rem);
  width: 100%;
}

.logo {
  justify-self: start;
  display: block;
  width: clamp(38px, 4.6vw, 56px);
  height: auto;
  aspect-ratio: 91 / 86;
}

.logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-wordmark {
  justify-self: center;
  grid-column: 2;
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.3rem, 2.9vw, 2.3rem);
  line-height: 1;
  letter-spacing: 0.04em;
  text-align: center;
  white-space: nowrap;
}

.menu {
  justify-self: end;
  grid-column: 3;
  display: flex;
  align-items: center;
  gap: clamp(0.4rem, 0.8vw, 0.75rem);
}

.menu__label {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: clamp(1rem, 1.8vw, 1.55rem);
  letter-spacing: -0.01em;
  line-height: 1;
  color: var(--color-ink);
}

.menu__toggle {
  position: relative;
  z-index: 60;
  width: clamp(26px, 3vw, 34px);
  height: clamp(26px, 3vw, 34px);
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  gap: 4.5px;
  padding: 4px 3px;
  transition: opacity 0.2s var(--ease-soft);
}

.menu__toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: #14151a;
  border-radius: 2px;
  transform-origin: center;
  transition:
    transform 0.42s var(--ease-soft),
    opacity 0.32s var(--ease-soft),
    background 0.4s var(--ease-soft);
}

.menu__toggle:hover {
  opacity: 0.7;
}

/* Below ~480px, drop the textual "Menu" label so the hamburger never crowds
   the centred wordmark. The button alone keeps the touch target healthy. */
@media (max-width: 480px) {
  .menu__label {
    display: none;
  }
}

/* Hamburger → X morph when overlay is open (light panel = dark bars) */
.menu__toggle[aria-expanded="true"] span {
  background: #14151a;
}
.menu__toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.menu__toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.menu__toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* ────────────── Hero frame (dotted panel) ────────────── */
.frame {
  position: relative;
  width: 100%;
  margin-inline: auto;
  margin-top: clamp(0.4rem, 1.2vh, 0.85rem);
  flex: 1;
  min-height: clamp(500px, 68vh, 760px);
  padding: var(--frame-pad);
  border: 1px solid var(--color-frame-border);
  border-radius: var(--frame-radius);
  background-color: var(--color-frame-bg);
  background-image: radial-gradient(
    circle,
    var(--color-frame-dots) 1px,
    transparent 1.4px
  );
  background-size: 22px 22px;
  background-position: 11px 11px;
  overflow: hidden;
}

/* ────────────── Cards — strictly corner-anchored ──────────────
   Each card lives in its own corner zone with a hard width cap.
   Combined with the centre safe-zone for hero copy, they cannot overlap. */
.card {
  position: absolute;
  margin: 0;
  line-height: 0;
  will-change: transform, opacity;
  pointer-events: none;
}

.card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.card--todo {
  top: 5%;
  left: 1.5%;
  width: var(--card-w-side);
  aspect-ratio: 1;
  z-index: 1;
}

.card--deadlines {
  top: 5%;
  right: 1.5%;
  left: auto;
  width: var(--card-w-side);
  aspect-ratio: 442 / 380;
  z-index: 1;
}

.card--wins {
  bottom: 6%;
  left: 1.5%;
  width: var(--card-w-wins);
  aspect-ratio: 470 / 360;
  z-index: 1;
}

/* ────────────── Hero copy — protected centre column ────────────── */
.hero-text {
  position: absolute;
  left: 50%;
  top: 46%;
  transform: translate(-50%, -50%);
  width: var(--hero-text-w);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: clamp(0.85rem, 2vh, 1.35rem);
  pointer-events: none;
  /* Headline always sits above the floating hero cards. */
  z-index: 10;
}

.hero__tagline,
.hero__title,
.hero__cta {
  position: relative;
  z-index: 10;
}

.hero__cta {
  pointer-events: auto;
  display: flex;
  justify-content: center;
  width: 100%;
  margin-top: 0;
  z-index: 6;
  flex-shrink: 0;
}

.hero__cta .cta {
  max-width: 100%;
}

.hero__tagline {
  width: 100%;
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: clamp(1.05rem, 1.9vw, 1.65rem);
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--color-ink);
  text-align: center;
  display: block;
  margin: 0;
}

.hero__tagline .dash {
  letter-spacing: -0.05em;
  margin-right: 0.3em;
  color: var(--color-ink-soft);
}

.hero__tagline em {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
}

.hero__title {
  margin: 0 0 -0.2em;
  width: 100%;
  font-family: var(--font-sans);
  font-weight: 700;
  /* Midway between original headline scale and the larger emphasis pass. */
  font-size: clamp(2.325rem, 5.7vw, 5.25rem);
  line-height: 1.04;
  letter-spacing: -0.052em;
  color: var(--color-ink);
}

.hero__title-line {
  display: block;
  overflow: hidden;
  line-height: 1.04;
  /* Room for descenders (g, y) inside the split-text mask */
  padding-bottom: 0.14em;
  margin-bottom: -0.1em;
  perspective: 600px;
  /* Each title line is its own visual row — never let the browser
     wrap "Code, build & deploy" or "every single idea" mid-phrase. */
  white-space: nowrap;
}
.hero__title-line .motion-line {
  display: block;
  overflow: hidden;
  line-height: 1.04;
  padding-bottom: 0.14em;
}
.hero__title-line .motion-word {
  display: inline-block;
  letter-spacing: inherit;
  will-change: transform, opacity;
}

.hero__title-line--muted {
  font-weight: 600;
  color: var(--color-ink-soft);
  letter-spacing: -0.065em;
  /* Pull CTA up while keeping descenders (g, y) visible */
  margin-bottom: -0.14em;
}

.cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.45rem, 1vw, 0.85rem);
  padding: clamp(0.65rem, 1.4vh, 0.95rem) clamp(1.25rem, 2.8vw, 2rem);
  min-height: clamp(52px, 6.6vh, 68px);
  border: 0;
  cursor: pointer;
  font: inherit;
  text-decoration: none;

  background: #f29900;
  color: #ffffff;
  border-radius: 13px;
  box-shadow: 0 8px 4px #fff288;

  transform: rotate(-2.73deg);
  transform-origin: center;
  transition:
    transform 0.45s var(--ease-soft),
    box-shadow 0.45s var(--ease-soft);
  will-change: transform;
}

.cta__label {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: clamp(1rem, 1.6vw, 1.35rem);
  letter-spacing: -0.02em;
  line-height: 1;
  white-space: nowrap;
}

.cta__arrow {
  width: clamp(20px, 2.1vw, 24px);
  height: clamp(20px, 2.1vw, 24px);
  color: #ffffff;
  flex-shrink: 0;
  transition: transform 0.4s var(--ease-soft);
}

.cta:hover {
  transform: rotate(-2.73deg) translateY(-2px) scale(1.02);
  box-shadow: 0 10px 6px #fff288;
}

.cta:hover .cta__arrow {
  transform: translateX(5px);
}

.cta:active {
  transform: rotate(-2.73deg) translateY(2px) scale(0.99);
  box-shadow: 0 4px 3px #fff288;
}

.cta:focus-visible {
  outline-color: rgba(242, 153, 0, 0.95);
}

/* ────────────── Service cards — bottom-right cluster ────────────── */
.service-cards {
  position: absolute;
  right: 2.2%;
  bottom: 5%;
  width: clamp(223px, 26vw, 298px);
  height: clamp(169px, 20vw, 228px);
  pointer-events: none;
  z-index: 4;
}

.svc-card {
  position: absolute;
  width: clamp(102px, 12.1vw, 137px);
  height: clamp(69px, 8vw, 93px);

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 1px;

  background: #ffffff;
  border: 1px solid #d7d7d7;
  border-radius: 9px;
  box-shadow: 6px 6px 12px rgba(0, 0, 0, 0.14);

  pointer-events: auto;
  cursor: pointer;
  transform-origin: center center;
  transition:
    transform 0.5s var(--ease-soft),
    box-shadow 0.5s var(--ease-soft);
  will-change: transform;
}

.svc-card__title,
.svc-card__sub {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: clamp(0.77rem, 1.1vw, 0.96rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.svc-card--web {
  top: 0;
  left: 0;
  transform: rotate(-4.71deg);
  color: var(--color-svc-web);
  z-index: 4;
}

.svc-card--app {
  top: 4%;
  right: 0;
  left: auto;
  transform: rotate(-4.71deg);
  color: var(--color-svc-app);
  z-index: 3;
}

.svc-card--ai {
  bottom: 0;
  left: 6%;
  transform: rotate(-4.17deg);
  color: var(--color-svc-ai);
  z-index: 4;
}

.svc-card--chat {
  bottom: 4%;
  right: 0;
  transform: rotate(-4.71deg);
  color: var(--color-svc-chat);
  z-index: 3;
}

.svc-card:hover {
  box-shadow: 10px 10px 18px rgba(0, 0, 0, 0.2);
}

.svc-card--app:hover,
.svc-card--web:hover,
.svc-card--chat:hover,
.svc-card--ai:hover {
  transform: rotate(-2.2deg) translateY(-4px) scale(1.025);
}

/* ────────────── Subtle Watermarks ──────────────
   Giant, heavily transparent logos cropped at the edges 
   to imply attention to detail without distracting from content. */
.watermark-logo {
  position: absolute;
  pointer-events: none;
  z-index: 0;
  opacity: 0.08;
  background-image: url('../images/logo%20warm%20gold%20flipped.png');
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  user-select: none;
}

.watermark-logo--clients {
  background-image: url('../images/logo%20warm%20gold.png');
  top: -10%;
  right: -5%;
  width: clamp(700px, 90vw, 1200px);
  aspect-ratio: 1;
  transform: rotate(-15deg);
}

.watermark-logo--footer {
  bottom: -20%;
  right: -10%;
  left: auto;
  width: clamp(500px, 70vw, 900px);
  aspect-ratio: 1;
  transform: rotate(15deg);
}

/* ────────────── Responsive polish ──────────────
   Keep the exact art direction while tuning composition, spacing,
   and touch targets across desktop/tablet/mobile + short-height screens. */
@media (max-width: 1280px) {
  :root {
    --hero-text-w: min(74%, 860px);
  }
}

@media (max-width: 1100px) {
  :root {
    --card-w-side: clamp(158px, 19.5vw, 230px);
    --card-w-wins: clamp(180px, 21.5vw, 255px);
    --hero-text-w: min(78%, 760px);
  }

  .hero__title {
    font-size: clamp(2rem, 4.85vw, 4.1rem);
  }

  .service-cards {
    width: clamp(260px, 28vw, 298px);
  }
}

@media (max-width: 960px) {
  :root {
    --card-w-side: clamp(128px, 18.5vw, 185px);
    --card-w-wins: clamp(150px, 20.5vw, 210px);
    --hero-text-w: min(86%, 640px);
  }

  .frame {
    min-height: clamp(500px, 66vh, 680px);
  }

  .hero-text {
    width: var(--hero-text-w);
    top: 44%;
    gap: clamp(0.7rem, 1.8vh, 1.1rem);
  }

  .hero__tagline {
    font-size: clamp(0.96rem, 2vw, 1.38rem);
  }

  .hero__title {
    font-size: clamp(1.88rem, 5.1vw, 3.72rem);
  }

  .service-cards {
    width: clamp(170px, 26vw, 224px);
    height: clamp(132px, 21vw, 182px);
  }

  .svc-card {
    width: clamp(82px, 12.4vw, 105px);
    height: clamp(56px, 8vw, 72px);
  }

  .cta {
    transform: rotate(-2deg);
  }

  .cta:hover {
    transform: rotate(-2deg) translateY(-2px) scale(1.015);
  }
}

@media (max-width: 768px) {
  :root {
    /* Same decorative card scale as desktop — no mobile shrink. */
    --card-w-side: clamp(185px, 23vw, 293px);
    --card-w-wins: clamp(208px, 25.5vw, 318px);
    --hero-text-w: min(90%, 520px);
  }

  /* Use small viewport units so mobile URL-bar collapse doesn't make the
     frame jitter or overflow; clamp the height between a usable floor and
     the available viewport. */
  .frame {
    flex: 0 0 auto;
    height: clamp(640px, 94vw, 720px);
    min-height: 0;
  }

  .hero-text {
    top: 43%;
    gap: clamp(0.6rem, 1.6vh, 0.95rem);
    padding-inline: clamp(0.35rem, 3vw, 0.75rem);
  }

  .hero__title {
    font-size: clamp(1.85rem, 7.5vw, 3.1rem);
    line-height: 1.06;
  }

  .hero__tagline {
    font-size: clamp(1rem, 3.6vw, 1.25rem);
  }

  /* Allow titles to wrap once we drop below the desktop centre column,
     otherwise long lines force the parent wider than the frame. */
  .hero__title-line {
    white-space: normal;
  }

  .hero__cta .cta {
    min-width: 0;
    width: auto;
    max-width: min(100%, 240px);
  }

  .cta {
    min-height: 44px;
    padding: 0.55rem 1rem;
    gap: 0.45rem;
  }

  .cta__label {
    font-size: clamp(0.9rem, 2.8vw, 1rem);
  }

  .cta__arrow {
    width: 18px;
    height: 18px;
  }
}

@media (max-width: 640px) {
  :root {
    --hero-text-w: min(92%, 380px);
  }

  .frame {
    height: clamp(610px, 150vw, 700px);
    min-height: 0;
    padding: clamp(0.6rem, 2vw, 1rem);
  }

  .hero-text {
    top: 43%;
    width: var(--hero-text-w);
    gap: 0.65rem;
  }

  .hero__title {
    font-size: clamp(1.75rem, 8vw, 2.65rem);
  }

  .hero__tagline {
    font-size: clamp(0.98rem, 3.8vw, 1.15rem);
  }

  .card--wins {
    bottom: 5%;
    left: 1.5%;
    width: var(--card-w-wins);
  }

  .hero__cta .cta {
    width: auto;
    max-width: min(100%, 228px);
    justify-content: center;
  }

  .cta {
    min-height: 44px;
    padding: 0.5rem 0.95rem;
    transform: rotate(-1.5deg);
  }
  .cta:hover {
    transform: rotate(-1.5deg) translateY(-2px) scale(1.015);
  }
  .cta:active {
    transform: rotate(-1.5deg) translateY(2px) scale(0.99);
  }
}

@media (max-width: 480px) {
  :root {
    --hero-text-w: min(94%, 330px);
  }

  .card--todo {
    top: 2%;
    left: 1%;
    width: var(--card-w-side);
  }

  .card--deadlines {
    top: 2%;
    right: 1%;
    width: var(--card-w-side);
  }

  .card--wins {
    bottom: 4%;
    left: 1.5%;
    width: var(--card-w-wins);
  }

  .frame {
    height: clamp(590px, 148vw, 670px);
    min-height: 0;
    border-radius: clamp(1rem, 4vw, 1.5rem);
  }

  .hero-text {
    top: 42%;
    gap: 0.55rem;
  }

  .hero__tagline {
    font-size: clamp(0.95rem, 3.6vw, 1.1rem);
    line-height: 1.38;
  }

  .hero__title {
    font-size: clamp(1.65rem, 8.2vw, 2.35rem);
  }

  .hero__cta .cta {
    max-width: min(100%, 220px);
  }

  .cta {
    padding-inline: 0.85rem;
    min-height: 44px;
  }

  .cta__label {
    font-size: 0.88rem;
    white-space: normal;
    line-height: 1.15;
    text-align: center;
  }
}

/* iPhone 12/13/14 mini + Galaxy S8 class (390 / 360px). Keeps the cards
   strictly clear of the centre copy without yet collapsing the layout. */
@media (max-width: 390px) {
  .frame {
    height: clamp(580px, 160vw, 640px);
    min-height: 0;
  }

  .hero-text {
    top: 41%;
    width: min(96%, 300px);
    gap: 0.5rem;
  }

  .hero__title {
    font-size: clamp(1.55rem, 8.8vw, 2.1rem);
  }

  .hero__tagline {
    font-size: clamp(0.92rem, 3.8vw, 1.05rem);
  }

  .hero__cta .cta {
    max-width: min(100%, 210px);
    width: auto;
  }

  .cta {
    min-height: 44px;
    padding-inline: 0.7rem;
    gap: 0.35rem;
  }

  .cta__label {
    font-size: 0.86rem;
  }
}

/* Short viewports — keep CTA tucked under headline, clear of service cards */
@media (max-height: 700px) and (max-width: 768px) {
  .frame {
    height: auto;
    min-height: clamp(520px, 92vh, 640px);
    min-height: clamp(520px, 92svh, 640px);
  }

  .hero-text {
    top: 40%;
    gap: 0.45rem;
  }

  .hero__title {
    font-size: clamp(1.5rem, 6.5vw, 2rem);
    line-height: 1.06;
  }

  .hero__tagline {
    font-size: clamp(0.9rem, 3.2vw, 1rem);
  }

  .cta {
    min-height: 44px;
    padding-block: 0.5rem;
  }
}

@media (max-height: 820px) and (min-width: 761px) {
  :root {
    --card-w-side: clamp(132px, 15vw, 195px);
    --card-w-wins: clamp(150px, 17vw, 215px);
    --hero-text-w: min(72%, 820px);
  }

  .frame {
    min-height: clamp(440px, 72vh, 580px);
    min-height: clamp(440px, 72svh, 580px);
  }

  .hero-text {
    top: 42%;
    gap: clamp(0.6rem, 1.4vh, 0.9rem);
  }

  .hero__title {
    font-size: clamp(1.95rem, 3.6vw, 3.35rem);
    line-height: 1.05;
  }

  .hero__tagline {
    font-size: clamp(0.95rem, 1.8vw, 1.2rem);
  }

  .service-cards {
    width: clamp(190px, 20vw, 248px);
    height: clamp(118px, 15vw, 155px);
    bottom: 9%;
  }

  /* Keep corner cards from crowding the CTA on 1366×768-class laptops. */
  .card--wins {
    width: clamp(140px, 16vw, 200px);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}



/* ────────────── Ultra-narrow: ≤320px (Galaxy Fold, budget Androids) ────── */
@media (max-width: 320px) {
  :root {
    --hero-text-w: min(98%, 280px);
    --page-pad-x: 0.5rem;
    --frame-pad: 0.5rem;
    --card-w-side: clamp(120px, 38vw, 160px);
    --card-w-wins: clamp(130px, 42vw, 170px);
  }

  .frame {
    height: clamp(540px, 170vw, 620px);
    min-height: 0;
    border-radius: clamp(0.75rem, 3vw, 1.25rem);
  }

  .hero-text {
    top: 40%;
    gap: 0.4rem;
  }

  .hero__tagline {
    font-size: clamp(0.82rem, 3.8vw, 0.98rem);
    line-height: 1.35;
  }

  .hero__title {
    font-size: clamp(1.35rem, 9.5vw, 1.85rem);
    line-height: 1.08;
  }

  .hero__cta .cta {
    max-width: min(100%, 190px);
  }

  .cta {
    padding-inline: 0.6rem;
    min-height: 42px;
    gap: 0.3rem;
    border-radius: 10px;
  }

  .cta__label {
    font-size: 0.82rem;
  }

  .cta__arrow {
    width: 16px;
    height: 16px;
  }

  .brand-wordmark {
    font-size: clamp(0.95rem, 5.5vw, 1.15rem);
    letter-spacing: 0.01em;
  }

  .site-header {
    gap: 0.3rem;
    padding-block: 0.4rem;
  }

  .logo {
    width: clamp(32px, 10vw, 40px);
  }

  .service-cards {
    width: clamp(140px, 46vw, 180px);
    height: clamp(108px, 36vw, 140px);
  }

  .svc-card {
    width: clamp(66px, 22vw, 85px);
    height: clamp(46px, 15vw, 60px);
  }

  .svc-card__title,
  .svc-card__sub {
    font-size: clamp(0.6rem, 2.2vw, 0.75rem);
  }
}
