/* ==========================================================================
   VascEra — microsite styles
   Rebuilt from "VascEra Microsite Mockup.html" (fixed 1440x3160 canvas)
   as a responsive, mobile-first stylesheet.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Fonts (self-hosted — no third-party requests)
   -------------------------------------------------------------------------- */

@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 100 1000;
  font-display: swap;
  src: url('../fonts/dmsans-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'DM Sans';
  font-style: italic;
  font-weight: 100 1000;
  font-display: swap;
  src: url('../fonts/dmsans-italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Sora';
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url('../fonts/sora-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

/* --------------------------------------------------------------------------
   2. Design tokens
   -------------------------------------------------------------------------- */

:root {
  /* Surfaces */
  --bg: #0a090b;
  --bg-deep: #070608;
  --bg-nav: #120e12;
  --plum-900: #1c0c20;
  --plum-800: #1c0e18;
  --plum-700: #2a1226;
  --plum-500: #3a1742;
  --card: rgba(24, 12, 20, 0.88);

  /* Ink */
  --ink: #f5edea;
  --ink-2: #e6d6d1;
  --ink-3: #c9b7b3;
  --ink-on-accent: #2a0c14;

  /* Accent */
  --accent: #ee8e7a;
  --accent-soft: #f4a08a;
  --accent-bright: #ffc3b2;
  --grad: linear-gradient(90deg, #f59a74 0%, #e8588a 100%);

  /* Lines */
  --line: rgba(240, 138, 116, 0.18);
  --line-strong: rgba(240, 138, 116, 0.4);

  /* Type */
  --font-body: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-display: 'Sora', 'DM Sans', system-ui, sans-serif;

  /* Layout */
  /* 1440 canvas with 80px padding — matches the source design's content width,
     which the hero's 660px copy + 580px visual split depends on. */
  --gutter: clamp(1.25rem, 5vw, 5rem);
  --maxw: 1440px;
  --header-h: 72px;
  --radius: 16px;
  --radius-lg: 24px;

  /* Motion */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur: 0.45s;
}

@media (min-width: 1024px) {
  :root {
    --header-h: 88px;
  }
}

/* --------------------------------------------------------------------------
   3. Reset & base
   -------------------------------------------------------------------------- */

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

* {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

img {
  height: auto;
}

a {
  color: var(--accent-soft);
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--accent-bright);
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

/* Visible focus for every interactive element — the mockup had none. */
:focus-visible {
  outline: 3px solid var(--accent-bright);
  outline-offset: 3px;
  border-radius: 4px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -110%);
  z-index: 200;
  padding: 0.75rem 1.5rem;
  background: var(--accent);
  color: var(--ink-on-accent);
  font-weight: 700;
  text-decoration: none;
  border-radius: 0 0 10px 10px;
  transition: transform 0.2s var(--ease);
}

.skip-link:focus {
  transform: translate(-50%, 0);
  color: var(--ink-on-accent);
}

/* --------------------------------------------------------------------------
   4. Layout primitives
   -------------------------------------------------------------------------- */

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: clamp(3.5rem, 9vw, 7rem);
}

.eyebrow {
  font-size: clamp(0.75rem, 0.71rem + 0.2vw, 0.875rem);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

/* --------------------------------------------------------------------------
   5. Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.75rem 1.75rem;
  border: 0;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1.0625rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease),
    opacity 0.18s var(--ease);
}

.btn--primary {
  background: var(--grad);
  color: var(--ink-on-accent);
  box-shadow: 0 6px 24px -8px rgba(232, 88, 138, 0.6);
}

.btn--primary:hover {
  color: var(--ink-on-accent);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px -10px rgba(232, 88, 138, 0.75);
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line-strong);
}

.btn--ghost:hover {
  color: var(--ink);
  border-color: var(--accent);
  background: rgba(240, 138, 116, 0.08);
}

.btn--sm {
  min-height: 42px;
  padding: 0.5rem 1.25rem;
  font-size: 0.9375rem;
  border-radius: 10px;
}

.btn[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

/* --------------------------------------------------------------------------
   6. Header / navigation
   -------------------------------------------------------------------------- */

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(90deg, #120e12 0%, #2a1420 55%, #3a1a22 100%);
  border-bottom: 1px solid var(--line);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}

.header__logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.header__logo img {
  height: clamp(30px, 6vw, 44px);
  width: auto;
}

.nav__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  color: var(--ink);
  cursor: pointer;
}

.nav__toggle svg {
  width: 22px;
  height: 22px;
}

.nav__toggle .nav__icon--close,
.nav__toggle[aria-expanded='true'] .nav__icon--open {
  display: none;
}

.nav__toggle[aria-expanded='true'] .nav__icon--close {
  display: block;
}

.nav {
  display: none;
}

.nav[data-open='true'] {
  display: block;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  padding: 1rem var(--gutter) 1.75rem;
  background: #1a1018;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 24px 48px -16px rgba(0, 0, 0, 0.8);
}

.nav__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.nav__list a:not(.btn) {
  display: block;
  padding: 0.75rem 0;
  color: var(--ink-2);
  text-decoration: none;
  font-size: 1.0625rem;
  border-bottom: 1px solid rgba(240, 138, 116, 0.1);
}

.nav__list a:not(.btn):hover {
  color: var(--accent-bright);
}

.nav__list li:last-child {
  margin-top: 1rem;
}

.nav__list .btn {
  width: 100%;
}

@media (min-width: 900px) {
  .nav__toggle {
    display: none;
  }

  .nav,
  .nav[data-open='true'] {
    display: block;
    position: static;
    padding: 0;
    background: none;
    border: 0;
    box-shadow: none;
  }

  .nav__list {
    flex-direction: row;
    align-items: center;
    gap: clamp(1.25rem, 3vw, 2.5rem);
  }

  .nav__list a:not(.btn) {
    padding: 0;
    border: 0;
    font-size: 0.9375rem;
  }

  .nav__list li:last-child {
    margin-top: 0;
  }

  .nav__list .btn {
    width: auto;
  }
}

/* --------------------------------------------------------------------------
   7. Hero carousel
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  background: radial-gradient(
    circle at 78% 45%,
    #3b1642 0%,
    #1a0d1c 38%,
    #0a090b 70%
  );
  padding-block: clamp(2.5rem, 7vw, 5rem);
  overflow: hidden;
}

.hero__grid {
  display: grid;
  gap: clamp(2.5rem, 6vw, 3rem);
  align-items: center;
}

@media (min-width: 1024px) {
  .hero__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 580px);
    gap: 3.5rem;
  }
}

.hero__copy {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  min-width: 0;
}

/* Slides stack in the same grid cell so height is the tallest slide and
   nothing jumps as they cross-fade. */
.hero__slides {
  display: grid;
}

/* The outgoing slide clears quickly and the incoming one waits for it, so the
   two sets of text never sit on top of each other mid-fade. */
.hero__slide {
  grid-area: 1 / 1;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.18s var(--ease), transform 0.18s var(--ease),
    visibility 0s linear 0.18s;
}

.hero__slide[data-active='true'] {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity var(--dur) var(--ease) 0.18s,
    transform var(--dur) var(--ease) 0.18s, visibility 0s;
}

.hero__title {
  font-size: clamp(2.125rem, 1.3rem + 4vw, 4rem);
  color: var(--accent);
}

.hero__lede {
  font-size: clamp(1.0625rem, 1rem + 0.5vw, 1.3125rem);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 36ch;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.25rem;
}

.hero__textlink {
  font-size: 1.0625rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  padding-block: 0.5rem;
}

.hero__textlink:hover {
  color: var(--accent-bright);
  text-decoration-color: currentColor;
}

/* Carousel controls */
.carousel__controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.carousel__btn {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.18s var(--ease), border-color 0.18s var(--ease);
}

.carousel__btn:hover {
  background: rgba(240, 138, 116, 0.12);
  border-color: var(--accent);
}

.carousel__btn svg {
  width: 18px;
  height: 18px;
}

.carousel__btn .icon--play {
  display: none;
}

.carousel__btn[data-paused='true'] .icon--play {
  display: block;
}

.carousel__btn[data-paused='true'] .icon--pause {
  display: none;
}

.carousel__dots {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

/* The dot is 8px tall but the hit area is 44px — accessible target size
   without changing the visual design. */
.carousel__dot {
  position: relative;
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: rgba(245, 237, 234, 0.35);
  cursor: pointer;
  transition: width 0.3s var(--ease), background 0.3s var(--ease);
}

.carousel__dot::after {
  content: '';
  position: absolute;
  inset: -18px -6px;
}

.carousel__dot[aria-current='true'] {
  width: 36px;
  background: var(--accent);
}

.carousel__count {
  font-family: var(--font-display);
  font-size: 0.875rem;
  letter-spacing: 0.12em;
  color: var(--ink-3);
  margin-left: 0.25rem;
  font-variant-numeric: tabular-nums;
}

/* --------------------------------------------------------------------------
   8. Hero visuals
   -------------------------------------------------------------------------- */

.hero__visuals {
  display: grid;
  min-width: 0;
}

.viz {
  position: relative;
  grid-area: 1 / 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.18s var(--ease), visibility 0s linear 0.18s;
}

.viz[data-active='true'] {
  opacity: 1;
  visibility: visible;
  transition: opacity var(--dur) var(--ease) 0.18s, visibility 0s;
}

.viz__stage {
  position: relative;
  width: 100%;
  /* Smaller on narrow screens — at full size the square stage is mostly
     empty dark space and pushes the fact cards below the fold. */
  max-width: 340px;
  margin-inline: auto;
  aspect-ratio: 1;
}

@media (min-width: 1024px) {
  .viz__stage {
    max-width: 580px;
  }
}

.viz__rings,
.viz__draw {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* The glowing gradient disc at the centre of slides 1, 3 and 4. */
.viz__core {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 37.9%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(
    circle at 50% 42%,
    #ffb49a 0%,
    #f0707a 55%,
    #b8336a 100%
  );
  box-shadow: 0 0 60px 10px rgba(233, 85, 127, 0.35);
  display: grid;
  place-items: center;
}

.viz__core svg {
  width: 47%;
  height: 47%;
}

/* Ecosystem labels (slide 1) */
.viz__node {
  position: absolute;
  transform: translate(-50%, -50%);
  padding: 0.6em 1.1em;
  border-radius: 999px;
  background: var(--plum-800);
  border: 1px solid rgba(240, 138, 116, 0.55);
  font-size: clamp(0.75rem, 0.6rem + 0.7vw, 1rem);
  font-weight: 500;
  color: var(--ink);
  white-space: nowrap;
}

.viz__node--top {
  left: 50%;
  top: 12.07%;
}
.viz__node--right {
  left: 87.93%;
  top: 50%;
}
.viz__node--bottom {
  left: 50%;
  top: 87.93%;
}
.viz__node--left {
  left: 12.07%;
  top: 50%;
}

/* Floating fact cards. Mobile: a normal stacked list under the stage.
   Desktop: absolutely positioned over it, as in the original design. */
.viz__cards {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.viz__card {
  padding: 1rem 1.125rem;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--line-strong);
  backdrop-filter: blur(6px);
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.viz__card-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-soft);
}

.viz__card-text {
  font-size: 0.9375rem;
  line-height: 1.4;
  color: var(--ink);
}

.viz__check {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.9375rem;
  color: var(--ink);
}

.viz__check svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.viz__spark {
  width: 100%;
  height: auto;
}

@media (min-width: 1024px) {
  .viz__cards {
    position: absolute;
    inset: 0;
    display: block;
    pointer-events: none;
  }

  .viz__card {
    position: absolute;
    pointer-events: auto;
  }

  .viz__card--tl {
    left: 0;
    top: 6.9%;
    width: 43.1%;
  }

  .viz__card--br {
    right: 0;
    top: 72.4%;
    width: 46.5%;
  }

  .viz__card--bl {
    left: 0;
    top: 67.2%;
    width: 34.5%;
  }

  .viz__card--tr {
    right: 0;
    top: 19%;
    width: 32.8%;
  }
}

/* Patient phone mockup (slide 3). The phone is taller than a square stage,
   so this slide has no stage at all on mobile — it only takes on the 1:1 box
   at desktop, where the cards are positioned over it. */
.viz__phone {
  width: min(240px, 72%);
  margin-inline: auto;
  padding: 1.5rem 1.25rem;
  border-radius: 40px;
  background: linear-gradient(180deg, #2a1226 0%, #140a12 100%);
  border: 2px solid rgba(245, 237, 234, 0.25);
  box-shadow: 0 30px 80px rgba(233, 85, 127, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

@media (min-width: 1024px) {
  .viz--phone {
    aspect-ratio: 1;
  }

  .viz__phone {
    position: absolute;
    left: 50%;
    top: 10.3%;
    transform: translateX(-50%);
    width: 41.4%;
    height: 79.3%;
    margin: 0;
    justify-content: center;
  }
}

.viz__phone-notch {
  width: 70px;
  height: 6px;
  border-radius: 3px;
  background: rgba(245, 237, 234, 0.25);
  flex-shrink: 0;
}

.viz__phone-cta {
  width: 100%;
  min-height: 44px;
  border-radius: 12px;
  background: var(--grad);
  color: var(--ink-on-accent);
  font-weight: 700;
  font-size: 0.9375rem;
  display: grid;
  place-items: center;
}

/* Small inline data graphics */
.viz__bar {
  display: flex;
  height: 14px;
  border-radius: 7px;
  overflow: hidden;
}

.viz__bar > span:first-child {
  flex-grow: 3;
  background: #f59a74;
}

.viz__bar > span:last-child {
  flex-grow: 2;
  background: #5a2470;
}

.viz__bar-legend {
  display: flex;
  justify-content: space-between;
  font-size: 0.875rem;
  color: var(--ink);
}

.viz__bar-legend span:last-child {
  color: var(--ink-3);
}

.viz__columns {
  display: flex;
  align-items: flex-end;
  gap: 0.625rem;
  height: 60px;
}

.viz__columns i {
  width: 28px;
  border-radius: 4px;
  background: #f59a74;
}

/* --------------------------------------------------------------------------
   9. Brand intro
   -------------------------------------------------------------------------- */

.intro {
  background: radial-gradient(
      ellipse at 76% 58%,
      rgba(138, 68, 64, 0.55) 0%,
      rgba(138, 68, 64, 0) 58%
    ),
    linear-gradient(180deg, #0a090b 0%, #170b13 50%, #3a1742 100%);
}

.intro__grid {
  display: grid;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
  justify-items: center;
  text-align: center;
}

@media (min-width: 900px) {
  .intro__grid {
    grid-template-columns: minmax(0, 420px) minmax(0, 1fr);
    text-align: left;
    justify-items: start;
  }
}

.intro__logo {
  width: min(400px, 100%);
}

.intro__text {
  font-size: clamp(1.0625rem, 0.95rem + 0.75vw, 1.5rem);
  line-height: 1.6;
  color: #fbefeb;
  max-width: 62ch;
}

/* --------------------------------------------------------------------------
   10. Platform pillars
   -------------------------------------------------------------------------- */

.platform {
  position: relative;
  background: linear-gradient(180deg, #3a1742 0%, #1c0c20 55%, #0a090b 100%);
  overflow: hidden;
  /* Extra room below the pillars so the bright part of the hill sits under
     the text rather than behind it. */
  padding-bottom: clamp(6rem, 18vw, 15rem);
}

/* Held low and dimmed on small screens so the stacked pillar copy stays on
   dark background; the full-strength hill returns with the desktop cascade. */
.platform__hill {
  position: absolute;
  inset: auto 0 0 0;
  width: 100%;
  height: 34%;
  opacity: 0.6;
  pointer-events: none;
}

@media (min-width: 900px) {
  .platform__hill {
    height: 58%;
    opacity: 1;
  }
}

.platform__hill svg {
  width: 100%;
  height: 100%;
}

.platform__inner {
  position: relative;
  z-index: 1;
}

.platform__list {
  list-style: none;
  display: grid;
  gap: clamp(2.25rem, 5vw, 3rem);
  margin-top: clamp(2rem, 5vw, 3.5rem);
}

@media (min-width: 900px) {
  .platform__list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2.5rem;
    align-items: start;
  }

  /* The diagonal cascade from the original canvas. */
  .platform__item:nth-child(2) {
    margin-top: clamp(3rem, 8vw, 9.375rem);
  }

  .platform__item:nth-child(3) {
    margin-top: clamp(6rem, 16vw, 18.125rem);
  }
}

.platform__item {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  max-width: 42ch;
}

.platform__dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff4ef;
  box-shadow: 0 0 18px 6px rgba(245, 154, 116, 0.7);
}

.platform__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  line-height: 1.3;
}

.platform__body {
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  line-height: 1.55;
  color: #f0e4e0;
}

/* --------------------------------------------------------------------------
   11. Tagline banner
   -------------------------------------------------------------------------- */

.tagline {
  background: var(--bg);
  border-block: 1px solid var(--line);
  text-align: center;
}

.tagline p {
  font-family: var(--font-display);
  font-weight: 600;
  font-style: italic;
  font-size: clamp(1.75rem, 1rem + 3.4vw, 3.75rem);
  line-height: 1.15;
  color: var(--accent);
  max-width: 16ch;
  margin-inline: auto;
}

/* --------------------------------------------------------------------------
   12. Contact / demo request
   -------------------------------------------------------------------------- */

.contact {
  background: radial-gradient(circle at 50% 40%, #2a1226 0%, #0a090b 65%);
}

.contact__grid {
  display: grid;
  gap: clamp(2.5rem, 6vw, 4rem);
  align-items: start;
}

@media (min-width: 900px) {
  .contact__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    gap: clamp(3rem, 6vw, 5rem);
  }
}

.contact__title {
  font-size: clamp(1.75rem, 1.3rem + 2vw, 2.75rem);
  color: var(--ink);
  margin-top: 0.75rem;
}

.contact__lede {
  font-size: clamp(1rem, 0.95rem + 0.35vw, 1.125rem);
  color: var(--ink-3);
  margin-top: 1rem;
  max-width: 44ch;
}

.contact__direct {
  margin-top: 1.75rem;
  font-size: 0.9375rem;
  color: var(--ink-3);
}

.contact__direct a {
  font-weight: 500;
}

.form {
  display: grid;
  gap: 1.125rem;
  padding: clamp(1.5rem, 4vw, 2.25rem);
  background: rgba(24, 12, 20, 0.7);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(8px);
}

@media (min-width: 560px) {
  .form {
    grid-template-columns: 1fr 1fr;
  }

  .form__field--full,
  .form__footer {
    grid-column: 1 / -1;
  }
}

.form__field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-width: 0;
}

.form__field label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink-2);
}

.form__req {
  color: var(--accent-soft);
}

.form__field input,
.form__field select,
.form__field textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.7rem 0.9rem;
  background: rgba(10, 9, 11, 0.6);
  border: 1px solid rgba(240, 138, 116, 0.28);
  border-radius: 10px;
  color: var(--ink);
  transition: border-color 0.18s var(--ease), background 0.18s var(--ease);
}

.form__field textarea {
  min-height: 120px;
  resize: vertical;
}

.form__field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c9b7b3' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 20px;
  padding-right: 2.5rem;
}

.form__field input::placeholder,
.form__field textarea::placeholder {
  color: #8a7a78;
}

.form__field input:hover,
.form__field select:hover,
.form__field textarea:hover {
  border-color: var(--line-strong);
}

.form__field input:focus,
.form__field select:focus,
.form__field textarea:focus {
  border-color: var(--accent);
  background: rgba(10, 9, 11, 0.9);
}

.form__field[data-invalid='true'] input,
.form__field[data-invalid='true'] select,
.form__field[data-invalid='true'] textarea {
  border-color: #ff8a80;
}

.form__error:not(:empty) {
  font-size: 0.8125rem;
  line-height: 1.4;
  color: #ff9b92;
  margin-top: 0.1rem;
}

/* Honeypot — hidden from people, visible to naive bots. */
.form__trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-top: 0.25rem;
}

.form__consent {
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--ink-3);
  flex: 1 1 16ch;
}

.form__status {
  grid-column: 1 / -1;
  font-size: 0.9375rem;
  line-height: 1.5;
  padding: 0.875rem 1rem;
  border-radius: 10px;
  display: none;
}

.form__status[data-state='success'] {
  display: block;
  background: rgba(96, 200, 150, 0.12);
  border: 1px solid rgba(96, 200, 150, 0.45);
  color: #9fe3c4;
}

.form__status[data-state='error'] {
  display: block;
  background: rgba(255, 138, 128, 0.1);
  border: 1px solid rgba(255, 138, 128, 0.45);
  color: #ff9b92;
}

/* --------------------------------------------------------------------------
   13. Footer
   -------------------------------------------------------------------------- */

.footer {
  background: var(--bg-deep);
  border-top: 1px solid rgba(240, 138, 116, 0.12);
  padding-block: clamp(2.5rem, 6vw, 3.5rem);
}

.footer__disclaimer {
  font-size: 0.875rem;
  font-style: italic;
  line-height: 1.6;
  color: var(--ink-3);
  max-width: 90ch;
}

.footer__bar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.5rem;
  font-size: 0.875rem;
  color: var(--ink-3);
}

@media (min-width: 680px) {
  .footer__bar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.footer__links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.75rem;
}

/* Underlined so they read as links, not as body text. */
.footer__links a {
  color: var(--ink-2);
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
}

.footer__links a:hover {
  color: var(--accent-bright);
  text-decoration-color: currentColor;
}

/* --------------------------------------------------------------------------
   14. Legal / content sub-pages
   -------------------------------------------------------------------------- */

.page {
  padding-block: clamp(3rem, 8vw, 5.5rem);
  background: radial-gradient(
    ellipse at 50% 0%,
    #1c0c20 0%,
    #0a090b 60%
  );
  min-height: 60vh;
}

.page__title {
  font-size: clamp(2rem, 1.4rem + 2.6vw, 3rem);
  color: var(--ink);
  margin-top: 0.75rem;
}

.prose {
  max-width: 68ch;
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  color: var(--ink-2);
}

.prose h2 {
  font-size: clamp(1.25rem, 1.1rem + 0.7vw, 1.5rem);
  color: var(--accent);
  margin-top: 1rem;
}

.prose ul {
  padding-left: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.notice {
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius);
  border: 1px dashed rgba(240, 138, 116, 0.5);
  background: rgba(240, 138, 116, 0.07);
  color: var(--ink);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.notice strong {
  color: var(--accent-soft);
}

/* --------------------------------------------------------------------------
   15. Motion preferences
   -------------------------------------------------------------------------- */

@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;
    transition-delay: 0s !important;
    scroll-behavior: auto !important;
  }
}

/* --------------------------------------------------------------------------
   16. Print
   -------------------------------------------------------------------------- */

@media print {
  .header,
  .carousel__controls,
  .form,
  .skip-link {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }

  .hero__slide,
  .viz {
    opacity: 1 !important;
    visibility: visible !important;
  }
}
