/* =========================================================
  Dyven Group — Single (Dark) Theme
  ========================================================= */

/* ========== Tokens ========== */
:root {
  --primary: #8711c1;
  --accent: #2472FC;
  --bg: #0B0B0C;
  --text: #F5F5F5;
  --muted: #96979b;
  --surface: rgba(255, 255, 255, 0.02);
  --border: rgba(255, 255, 255, 0.34);
  --shadow: 0 10px 30px rgba(0, 0, 0, .35);

  --hero-top-gap: clamp(25px, 5vh, 50px);
  --about-media-max: 520px;
  --about-gap: clamp(70px, 8vw, 120px);
  --about-aspect: 4/3;

  --logo-size: clamp(72px, 6vw, 200px);
  --accent-1: #8711c1;
  --accent-2: #2472FC;
  --sep-height: 14px;
  --sep-alpha: .18;
  --sweep-angle: 115deg;
  --sweep-a: var(--accent-1);
  --sweep-b: var(--accent-2);

  --font-sans: "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --font-display: "Oswald", "Open Sans", sans-serif;
}

@media (max-width: 840px) {
  :root {
    --logo-size: 72px;
  }
}

@media (max-width: 600px) {
  :root {
    --logo-size: 150px;
  }
}

@media (max-width: 360px) {
  :root {
    --logo-size: 36px;
  }
}

@media (max-width: 300px) {
  :root {
    --logo-size: 28px;
  }
}

/* ========== Base ========== */
* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--font-sans);
  text-rendering: optimizeLegibility;
}

img,
video,
canvas,
svg {
  display: block;
}

.container {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 24px;
}

.muted {
  color: var(--muted);
}

.fineprint {
  color: var(--muted);
  font-size: .9rem;
}

/* ========== Buttons ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 16px;
  border-radius: 12px;
  border: 0.1em solid var(--border);
  background: transparent;
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: .15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn.primary {
  background: var(--primary);
  border-color: transparent;
  color: #fff;
}

.btn.outline {
  background: var(--primary);
  border-color: var(--primary);
  border-width: 1.5px;
}

.btn.small {
  height: 36px;
  padding: 0 12px;
  border-radius: 10px;
}

/* ========== Hero (header integrated) ========== */
.hero {
  position: relative;
  min-height: min(100vh, 920px);
  padding: var(--hero-top-gap) 0 80px;
  display: grid;
  place-items: start center;
  overflow: hidden;
  z-index: 1;
}

.hero-topline .nav a {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  opacity: .9;
  transition: color .2s ease, opacity .2s ease;
}

.hero-topline .nav a:visited {
  color: #fff;
}

.hero-topline .nav a:hover {
  color: var(--accent);
  opacity: .85;
  text-decoration: underline;
}

.hero-topline .nav a:active {
  color: var(--accent-1);
}

.hero-topline {
  display: flex;
  align-items: center;
  justify-content: space-between; /* spreads logo left, nav right */
  gap: 20px;
  margin: 0 0 20px;
  padding: 0 120px;
  width: 100%;
}


/* Brand logo behavior: mark on ≤840px, wordmark on ≥841px */
.brand .logo {
  display: none;
  height: var(--logo-size);
  width: auto;
  object-fit: contain;
}

@media (min-width: 841px) {
  .brand .logo-full {
    display: block;
  }
}

@media (max-width: 840px) {
  .brand .logo-mark {
    display: block;
  }
}

.hero-topline .nav {
  display: flex;
  margin-left: auto;
  align-items: center;
  gap: 16px;
}

/* Background video */
.bg-video {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  opacity: .22;              /* was .40 */
  background: transparent;   /* was var(--surface) */
}

.bg-video__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bg-video__veil {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(80% 60% at 30% 40%, color-mix(in oklab, var(--primary) 20%, transparent), transparent 60%),
    radial-gradient(80% 60% at 70% 50%, color-mix(in oklab, var(--accent) 18%, transparent), transparent 60%),
    linear-gradient(to bottom, rgba(0, 0, 0, .30), rgba(0, 0, 0, .30));
}

/* keep video ON on mobile (subtle) */
@media (max-width: 768px) {
  .bg-video__media {
    display: block !important;
  }

  .bg-video {
    background: none !important;
  }
}

.hero .bg-field {
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 60%;
  background:
    radial-gradient(80% 60% at 30% 40%, rgba(122, 44, 245, .35), transparent 60%),
    radial-gradient(80% 60% at 70% 50%, rgba(36, 114, 252, .35), transparent 60%);
  filter: blur(40px);
  pointer-events: none;
  z-index: -1;
}

.hero-inner {
  width: min(900px, 100%);
  text-align: center;
  margin: 0;
}

.hero-title {
  font-size: clamp(40px, 6.4vw, 72px);
  line-height: 1.05;
  margin: 0 0 12px;
  animation: breathe 6s ease-in-out infinite;
}

.hero-sub {
  font-size: clamp(16px, 2vw, 18px);
  opacity: .9;
  margin: 0 0 20px;
}

.hero-ctas {
  display: flex;
  justify-content: center;
  gap: 12px;
}

/* ===== Flip-style Venture Cards (source pattern, scoped) ===== */
#ventures .card--flip {
  position: relative;
  width: 100%;
  max-width: 350px;
  height: 400px;
  margin: 0 auto;
  background: linear-gradient(45deg, var(--surface), #251731), var(--bg);
  /* swap to var(--surface) for dark */
  border-radius: 15px;
  box-shadow: 0 15px 60px rgba(0, 0, 0, .5);
  overflow: hidden;
  transform: none !important;
  /* neutralize other hover transforms */
  transition: height .5s;
}

@media (min-width: 1240px) {
  #ventures .grid>.card--flip {
    max-width: 360px;
  }
}

/* Faces */
#ventures .card--flip .face {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

#ventures .card--flip .face.face1 {
  box-sizing: border-box;
  padding: 20px;
  text-align: center;
}

#ventures .card--flip .face.face1 .content {
  font-size: 1.05rem;
  font-weight: 500;
  margin: 0;
}

#ventures .card--flip .face.face1 h3 {
  margin: 0 0 .4rem;
  color: #fff;
  font-size: 1.6rem;
}

#ventures .card--flip .face.face1 p {
  color: #fff;
  margin: .25rem 0 1rem;
  font-weight: 300;
}

#ventures .card--flip .face.face1 .content {
  font-size: 1.05rem;
  font-weight: 500;
}

#ventures .card--flip .face.face1 h3 {
  margin: 0 0 .4rem;
  color: #fff;
}

#ventures .card--flip .face.face1 p {
  margin: .25rem 0 1rem;
  color: #fff;
}

/* Colored header bar (face2) */
#ventures .card--flip .face.face2 {
  border-radius: 15px;
  transition: .5s;
  display: flex;
  align-items: center;
  justify-content: center;
}

#ventures .card--flip:nth-child(1) .face.face2 {
  background: linear-gradient(45deg, #8000FF, #7401e7);
}

#ventures .card--flip:nth-child(2) .face.face2 {
  background: linear-gradient(45deg, #ffd500, #ae9102);
}

#ventures .card--flip:nth-child(3) .face.face2 {
  background: linear-gradient(45deg, #2355e6, #23d7f0);
}

/* glossy strip like original */
#ventures .card--flip .face.face2::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 50%;
  height: 100%;
  background: rgba(255, 255, 255, .10);
  border-radius: 15px 0 0 15px;
}

/* LOGO in the header (replaces the old <h2> number) */
#ventures .card--flip .face.face2 .logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  margin: 0;
}

#ventures .card--flip .face.face2 .brandmark {
  display: block;
  max-width: 72%;
  max-height: clamp(140px, 26vw, 200px);
  /* big like the original numbers */
  object-fit: contain;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, .2));
  transition: max-height .5s ease, transform .5s ease, opacity .3s ease;
}


/* Hover behavior (expand, collapse header bar, shrink number) */
@media (hover:hover) {
  #ventures .card--flip:hover {
    height: 500px;
  }

  /* was 350→500 for better content room */
  #ventures .card--flip:hover .face.face2 {
    height: 60px;
    border-radius: 0 0 15px 15px;
    box-shadow: 0 35px 80px rgba(0, 0, 0, .2);
  }

  #ventures .card--flip:hover .face.face2 h2 {
    font-size: 2em;
  }
}

/* ===== Flip cards: Mobile tap-to-reveal (no HTML change) ===== */

/* Desktop unchanged; hover handles expansion */
@media (hover:hover){
  #ventures .card--flip .face.face2{ cursor: default; }
}

/* Mobile / coarse pointers: start collapsed, tap header to open */
@media (hover:none), (pointer:coarse){

  /* collapsed baseline (matches desktop rest) */
    #ventures .card--flip{
    --m-collapsed-h: 340px;   /* was 400px */
    --m-open-h:      430px;   /* was 500px */
    max-width: 300px;         /* was 320/280 — shrink width a bit too */
    height: var(--m-collapsed-h);
  }
  #ventures .card--flip.is-open{ height: var(--m-open-h); }

  /* make header tappable and show a hint */
  #ventures .card--flip .face.face2{
    position: relative;
    cursor: pointer;
  }

  /* hint pill without extra markup */
  /* Mobile / coarse pointers: icon hint instead of text */
@media (hover:none), (pointer:coarse){
#ventures .card--flip .face.face2::after{
  content:"";
  position:absolute; right:12px; bottom:12px;
  width:44px; height:44px; border-radius:9999px;
  background: rgba(0,0,0,.22);
  border:1px solid rgba(255,255,255,.25);
  box-shadow:0 2px 6px rgba(0,0,0,.25);
  opacity:.95;

  background-image:url("data:image/svg+xml,%3Csvg xmlns='http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='1.8' fill='white' stroke='none'/%3E%3Ccircle cx='12' cy='12' r='6'/%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3C%2Fsvg%3E");
  background-repeat:no-repeat;
  background-position:center;
  background-size:60% 60%;
  animation: tapHint 1.8s ease-out infinite;
}

  @keyframes tapHint{
    0%   { transform: scale(1); box-shadow: 0 0 0 0 rgba(255,255,255,.32); }
    70%  { box-shadow: 0 0 0 10px rgba(255,255,255,0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255,255,255,0); }
  }

  /* Hide the hint once the card is open */
  #ventures .card--flip.is-open .face.face2::after{
    opacity: 0;
    animation: none;
  }
}


  /* opened state mirrors your desktop hover state */
  #ventures .card--flip.is-open{
    height: 500px;
  }
  #ventures .card--flip.is-open .face.face2{
    height: 60px;
    border-radius: 0 0 15px 15px;
    box-shadow: 0 35px 80px rgba(0,0,0,.2);
  }
  #ventures .card--flip.is-open .brandmark{
    max-height: 32px;        /* already defined in your flip-card CSS */
  }
  #ventures .card--flip.is-open .face.face2::after{
    opacity: 0;              /* hide hint once opened */
  }
}

/* ========== Sections / Cards ========== */
.section {
  padding: 200px 0;
}

.section-alt {
  background: linear-gradient(to bottom, color-mix(in oklab, var(--bg), #000 1%), var(--bg));
}

.section-title {
  font-size: 28px;
  margin: 0 0 24px;
}

#about .bullets>li {
  font-weight: 700;
  font-size: large;
  margin: 0 0 14px;
  color: var(--accent);
}

.grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

/* About layout */
.about-stack {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: var(--about-gap);
  align-items: center;
}

.about-stack .media-box {
  width: 100%;
  max-width: 720px;
  justify-self: end;
}

@media (max-width:1050px) {
  .about-stack {
    grid-template-columns: 1fr;
  }

  .about-stack .media-box {
    max-width: var(--about-media-max);
    justify-self: stretch;
  }
}

/* Video frame */
.media-box {
  margin: 0;
  border-radius: 28px;
  overflow: hidden;
  background: #000;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  position: relative;
  line-height: 0;
  aspect-ratio: var(--about-aspect);
}

.media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  backface-visibility: hidden;
  transform: translateZ(0);
}

/* ========== Contact Form ========== */
.contact-form {
  max-width: 760px;
  margin-inline: auto;
}

.form-grid {
  display: grid;
  gap: 12px;
  margin-bottom: 14px;
  grid-template-columns: repeat(2, 1fr);
}

.form-grid label {
  display: grid;
  gap: 6px;
}

.form-grid .span-2 {
  grid-column: 1/-1;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form input[type="file"],
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.34);
  color: var(--text);
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.contact-form ::placeholder {
  color: var(--muted);
}

.contact-form :is(input, textarea):focus {
  border-color: color-mix(in oklab, var(--primary), #fff 20%);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 22%, transparent);
}

/* Netlify honeypot */
.honeypot {
  position: absolute !important;
  left: -100vw !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* ========== Footer ========== */
.footer {
  position: relative;
  z-index: 1;
}

.footer .bg-video {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: .20;              /* was .32 */
  pointer-events: none;
  overflow: hidden;
  background: transparent;   /* was var(--surface) */
}

.footer .bg-video__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Footer veil tuned for readability vs hero */
.footer .bg-video__veil {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(80% 60% at 50% 90%, rgba(0,0,0,.40), transparent 60%),
    linear-gradient(to top, rgba(0,0,0,.22), rgba(0,0,0,.06));
}

/* Keep on for mobile as well (mirrors hero rule) */
@media (max-width:768px) {
  .footer .bg-video {
    background: none !important;
  }

  .footer .bg-video__media {
    display: block !important;
  }
}

.footer {
  background: var(--bg);
  color: var(--text);
  border-top: 1px solid var(--border);
}

.container {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 20px;
}

.footer-cta {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  padding: 28px 20px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(90deg, color-mix(in oklab, var(--primary) 20%, transparent), transparent);
}

.footer-cta h3 {
  font-size: 2.5rem;
  font-weight: 900;
  margin: 0;
}

@media (max-width:480px) {
  .footer-cta h3 {
    font-size: 1.8rem;
    text-align: center;
    font-weight: 800;
  }
}

.btn-ghost {
  background: transparent;
  color: var(--text);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  padding: 40px 20px;
}

@media (max-width:1024px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width:640px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-col {
  background: rgba(255,255,255,.06);                /* clearer glass */
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 16px;
  padding: 20px;
  backdrop-filter: blur(14px) saturate(140%);       /* stronger frost */
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  background-clip: padding-box;                     /* no halo on edges */
}

.footer-col h4 {
  margin: .25rem 0 1rem;
  font-size: 1rem;
  font-weight: 700;
}

.footer-col h2 {
  margin: .25rem 0 1rem;
  font-size: 1.30rem;
  font-weight: 700;
  color: var(--accent);
}

.footer-col h4:not(:first-of-type) {
  margin-top: 18px;
}

.footer-col .links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: .6rem;
}

.footer-col .links a {
  color: var(--text);
  text-decoration: none;
}

.footer-col .links a:hover {
  color: #2472FC;
  text-decoration: underline;
}

/* Footer contacts: put title and email on separate lines (title first) */
.footer-col .links li {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.footer-col .links li .hint {
  order: -1;
  display: block;
  font-weight: 600;
  color: var(--muted);
  line-height: 1.3;
}

.email {
  color: #2472FC;
}

.fineprint a {
  color: #2472FC;
  text-decoration: underline;
}

.footer-col .links li a {
  display: inline-block;
  font-weight: 700;
  line-height: 1.35;
}

/* Footer brand block + mini mark */
.footer .brand {
  display: block;
  text-align: center;
  margin: 4px 0 14px;
}

.mini-mark {
  width: 180px;
  max-width: 70%;
  height: auto;
  margin: 8px auto 16px;
  object-fit: contain;
}

@media (max-width: 840px) {
  .mini-mark {
    width: 140px;
    max-width: 60%;
  }
}

.address {
  margin: 1rem 0;
  color: var(--muted);
  font-style: normal;
  text-align: center;
}

/* Social icons row */
.socials {
  display: flex;
  gap: 16px;
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
}

.footer .socials {
  justify-content: center;
  align-items: center;
  margin: 18px auto 0;
  width: 100%;
  flex-wrap: wrap;
}

.footer .socials li {
  list-style: none;
}

.socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  transition: transform .12s ease, border-color .12s ease, background-color .12s ease;
}

.socials a:hover {
  transform: translateY(-1px);
}

.social-icon {
  width: 27px;
  height: 27px;
  display: block;
}

.footer-bottom {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-top: 1px solid var(--border);
  color: var(--muted);
}

.footer-bottom a {
  color: var(--muted);
  text-decoration: none;
}

.footer-bottom a:hover {
  color: var(--text);
}

.footer-bottom .dot {
  opacity: .6;
  margin-inline: .5rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Mobile: 2 lines, centered
   Line 1 = copyright (first child)
   Line 2 = all the links (rest) */

@media (max-width: 840px) {
  .footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    row-gap: 10px;
    /* vertical spacing between lines */
    column-gap: 12px;
    /* horizontal spacing between links */
    text-align: center;
  }

  /* Kill default margins so only row-gap applies */
  .footer-bottom>* {
    margin: 0;
  }

  /* Line 1 = copyright (first child) */
  .footer-bottom>:first-child {
    flex-basis: 100%;
  }

  /* If you keep a separate credits line, make it a full row too */
  .footer-bottom .credits {
    flex-basis: 100%;
  }

  .footer-bottom p,
  .footer-bottom a {
    line-height: 1.4;
  }
}

@media (max-width: 600px) {
  .footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    row-gap: 10px;
    /* vertical spacing between lines */
    column-gap: 12px;
    /* horizontal spacing between links */
    text-align: center;
  }

  /* Kill default margins so only row-gap applies */
  .footer-bottom>* {
    margin: 0;
  }

  /* Line 1 = copyright (first child) */
  .footer-bottom>:first-child {
    flex-basis: 100%;
  }

  /* If you keep a separate credits line, make it a full row too */
  .footer-bottom .credits {
    flex-basis: 100%;
  }

  .footer-bottom p,
  .footer-bottom a {
    line-height: 1.4;
  }
}

.credits a {
  font-weight: 600;
  font-weight: bold;
  text-decoration:underline;
  color: var(--accent);
}


/* ========== Reveal on scroll ========== */
.reveal {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .45s ease, transform .45s ease;
  will-change: transform;
}

.reveal.in {
  opacity: 1;
  transform: none;
}

/* ========== Responsive touch-ups ========== */
@media (max-width: 840px) {
  :root {
    --hero-top-gap: clamp(16px, 10vh, 48px);
    --logo-size: 100px;
    align-items: center;
  }
  .container {
    padding-inline: 16px;
  }

  .hero-topline .brand {
    --logo-size: 100px; 
  }

  .hero {
    display: block;
    min-height: auto;
    padding: var(--hero-top-gap) 16px 28px;
  }

  .hero-topline {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding: 0 16px;
    gap: 10px;
    justify-content: space-between;
  }

  .hero-topline .nav {
    order: 2;
    width: auto;                     /* shrink to content width */
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    justify-content: center;        /* keep links close together */
    gap: 28px;                    /* tighter cluster spacing */
    margin-left: 0;            /* cancel base push-right */
  }

  .hero-inner {
    text-align: center;
  }

  .hero-title {
    font-size: clamp(32px, 9vw, 40px);
    margin: 20px auto;
    padding-top: 35px;
    line-height: 1.1;
  }

  .hero-sub {
    font-size: clamp(14px, 4.2vw, 18px);
    margin: 0 0 14px;
    opacity: .95;
  }

  .hero-ctas {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin: 15px auto 0;
    max-width: 520px;
  }

  .hero .bg-field {
    height: 50%;
  }

  .grid {
    gap: 16px;
  }

  .about-stack {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .about-stack .media-box {
    max-width: min(100%, var(--about-media-max));
    justify-self: center;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .footer-wrap {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}

@media (max-width: 600px) {
  :root {
    --hero-top-gap: clamp(16px, 10vh, 48px);
    --logo-size: 100px;
    align-items: center;
  }

  .nav-link {
    font-size: .95rem;
    opacity: .95;
    gap: 7px;
  }

  .btn {
    height: 44px;
  }

  .btn.small {
    height: 40px;
  }

  .hero-ctas .btn {
    min-width: 100%;
  }

  .hero-sub {
    font-size: clamp(12px, 4vw, 16px);
    margin: 0 0 14px;
    opacity: .95;
  }

  .section {
    padding: 64px 0;
  }
}

@media (max-width: 360px) {
  :root {
    --logo-size: 100px;
    align-items: center;
  }

  .hero-topline {
    padding: 0 12px;
    gap: 10px;
  }

  .hero-ctas {
    gap: 8px;
  }
}

@media (max-width: 300px) {
  :root {
    --logo-size: 100px;
    --hero-top-gap: 20px;
    align-items: center;
  }

  .hero-topline {
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 0 10px;
  }

  .hero-topline .brand {
    align-self: center;
    margin-inline: auto;
  }

  .hero-topline .nav {
    order: 2;
    gap: 7px;
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }

  .nav-link {
    font-size: .9rem;
    margin-bottom: 50px;
    gap: 4px;
  }

  .hero-ctas .btn {
    min-width: 100%;
  }

  .about-stack .media-box {
    max-width: 92%;
  }
}

/* === Immersive width upgrade (desktop) === */
@media (min-width: 1240px) {
  .container {
    max-width: 1440px;
  }

  .hero-inner {
    width: min(1100px, 100%);
  }
}


/* Optional: subtle edge-to-edge feel via section background */
.section-immersive {
  padding: 96px 0;
  background:
    radial-gradient(80% 60% at 15% 20%, rgba(96, 1, 210, .10), transparent 60%),
    radial-gradient(70% 55% at 85% 30%, rgba(36, 114, 252, .10), transparent 60%),
    linear-gradient(to bottom, rgba(255, 255, 255, .02), transparent 40%);
}

.text-breathe {
  font-variation-settings: "wght" 450;
  animation: breathe 3s ease-in-out infinite;
}

@keyframes breathe {
  50% {
    font-variation-settings: "wght" 650;
    letter-spacing: .04em;
  }
}

/* ===== Section Separators (minimal, brand-aware) ===== */
.has-seps .section {
  position: relative;
  z-index: 0;
}

.has-seps .section:not(:last-of-type)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: var(--sep-height);
  pointer-events: none;
  z-index: 3;
}

.has-seps .section>* {
  position: relative;
  z-index: 4;
}

.has-seps .footer {
  border-top: 0;
}

.has-seps .section:has(+ .footer)::after {
  display: none;
}

.has-seps .section:not(:last-of-type)::after {
  bottom: 0;
}

.sep-wave {
  --sep-height: 16px;
}

.sep-wave .section:not(:last-of-type)::after {
  background:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 24' preserveAspectRatio='none'><defs><linearGradient id='g' x1='0' y1='0' x2='1' y2='0'><stop offset='0' stop-color='white' stop-opacity='0'/><stop offset='0.5' stop-color='white' stop-opacity='0.9'/><stop offset='1' stop-color='white' stop-opacity='0'/></linearGradient></defs><path d='M0,18 C40,12 80,24 120,18 C160,12 200,24 240,18' fill='none' stroke='url(#g)' stroke-width='2' stroke-linecap='round'/></svg>") center bottom / 100% 100% no-repeat,
    /* ↓ this is the key change: size the line to 1px */
    linear-gradient(90deg, transparent 0, var(--accent-1) 50%, transparent 100%) bottom / 100% 1px no-repeat;
  opacity: .70;
  /* whatever you prefer */
}

