.hero{
  position: relative;
  overflow: hidden;          /* ensures pattern doesn’t spill */
  padding-bottom: 4rem;   /* ⬅️ increase until the gap feels right */
}
.hero-grid{
  position: absolute;
  inset: 0;                  /* full cover */
  width: 100%;
  height: 100%;
  stroke: rgba(255,255,255,.4);   /* light white lines */
  pointer-events: none;      /* clicks go through */
  z-index: 0;            /* sit above the section bg */  /* OPTIONAL subtle fill like original React code */
  fill: rgba(255,255,255,.15);
}
/* Replace hero__inner’s margin rules with this (or keep and add class in markup) */
.hero__inner{ max-width: var(--container-wide); margin: 0 auto; padding-left: var(--pad-x); padding-right: var(--pad-x); }

.hero__inner--centered {
  text-align: center;
}
.hero__headline {
  font-family: 'Inter', sans-serif;
  margin: 0 0 1.5rem;
}
.hero__subcopy {
  max-width: 760px;
  margin: 0 auto 2rem;
  color: #4b5563;
  font-size: 1.125rem;
  line-height: 1.7;
}
.hero__cta {
  margin-top: 1rem;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
}
.btn {
  display: inline-flex;
  align-items: center;
  padding: .9rem 1.5rem;
  border-radius: .6rem;
  text-decoration: none;
}
.btn--primary {
  background: #1C64F2;
  color: #fff;
}
.hero__imagewrap {
  margin-top: 4rem;
  position: relative;
  border-radius: .75rem;
  overflow: hidden;
}
.hero__image {
  width: 100%;
  height: auto;
  display: block;
}
/* Make the floating circular play button visible & centered */
/* keep the inline CTA button normal */
.hero__play { position: static; height:auto; width:auto; border-radius:.5rem; box-shadow:none; }

/* use this class ONLY when you want a circular overlay on an image */
.hero__play--overlay{
  position: absolute; inset: 0; margin: auto;
  height: 64px; width: 64px; border-radius: 999px; border: 0;
  background: #fff; box-shadow: 0 4px 20px rgba(0,0,0,.15);
  display: flex; align-items: center; justify-content: center;
  z-index: 5; pointer-events: auto;
}

/* Inline video frame in the hero */
.hero__videowrap {
  position: relative;
  width: 100%;
  max-width: 2200px;
  margin: 2rem auto 0;
  border-radius: 12px;
  overflow: hidden;
  background: #000; /* behind the Vimeo chrome */
}

/* Aspect helpers (keep your 16:9; add others if you want to crop bars) */
.ratio-16x9 { padding-top: 56.25%; }      /* 16:9 default */
.ratio-21x9 { padding-top: 42.857%; }     /* 21:9 – crops top/bottom a bit */
.ratio-2x1  { padding-top: 50%; }         /* 2:1  – gentle crop */

/* Make the iframe fill and *cover* the box (no letterbox) */
.hero__videowrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
  object-fit: cover;      /* key: fills the frame, crops if needed */
  object-position: center;
}

@media (min-width: 1200px){
  .hero__videowrap { max-width: 2200px; } /* make it wider on large screens */
}


.gradient-text{
  background: linear-gradient(90deg, #1A56DB, #14b8a6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Global font defaults */
body,
p,
span,
a,
li,
button,
input,
textarea {
  font-family: 'Inter', sans-serif;
}

body {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;      /* 16px base */
  font-weight: 400;     /* Regular */
  line-height: 1.6;     /* Comfortable for paragraphs */
  color: #111827;       /* Neutral gray-900 for body text */
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Inter', sans-serif;
  font-weight: 700; /* default strong weight, adjust per heading if needed */
  line-height: 1.2;
  margin: 0 0 1rem;
}

h1 { font-weight: 800; }
h2 { font-weight: 700; }
h3 { font-weight: 600; }

/* Letter spacing for uppercased small headers */
h6 {
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #6b7280; /* lighter gray for subtlety */
}

html { scroll-behavior: smooth; }

/* --- Tile sizing (single source of truth) --- */
:root{
  --tile-gap: 16px;           /* space between tiles / grid lines */
  --tile-size: 224px;         /* base tile; tweak to taste */
  --tile-opaque: 0.08;        /* opacity of “denser” tiles */
  --tile-stroke: rgba(255,255,255,0.35);
  --tile-wash:   rgba(255,255,255,0.08);
  --tile-blur:   8px;
}

/* responsive scale (optional) */
@media (min-width: 640px){ :root{ --tile-size: 256px; } }
@media (min-width:1024px){ :root{ --tile-size: 288px; } }
@media (min-width:1280px){ :root{ --tile-size: 320px; } }

.hero { position: relative; overflow: hidden; }

/* Tiles container sits above the gradient and below content */
.hero-tiles{
  position: absolute; inset: 0;
  z-index: 0; pointer-events: none; overflow: hidden;
}

/* Global frosted wash + big color blobs (keeps your look) */
.hero-tiles::before{
  content:""; position:absolute; inset:0;
  background:
    radial-gradient(60vw 60vh at 10% 15%, rgba(99,102,241,.12), transparent 60%),
    radial-gradient(50vw 50vh at 80% 25%, rgba(56,189,248,.10), transparent 60%),
    radial-gradient(60vw 50vh at 45% 75%, rgba(45,212,191,.10), transparent 60%),
    var(--tile-wash);
  -webkit-backdrop-filter: blur(var(--tile-blur)) saturate(120%);
          backdrop-filter: blur(var(--tile-blur)) saturate(120%);
}

/* Opaque checker + grid lines in one layer */
.hero-tiles::after{
  content:""; position:absolute; inset:0;

  /* one tile stride */
  --cell: calc(var(--tile-size) + var(--tile-gap));

  /* TOP (lines) then BASE (checker) — order matters */
  background:
    /* vertical lines */
    repeating-linear-gradient(
      to right,
      var(--tile-stroke) 0 1px,
      transparent 1px var(--cell)
    ),
    /* horizontal lines */
    repeating-linear-gradient(
      to bottom,
      var(--tile-stroke) 0 1px,
      transparent 1px var(--cell)
    ),
    /* checker of denser tiles — REAL squares, aligned to grid */
    conic-gradient(
      rgba(255,255,255,var(--tile-opaque)) 25%,
      transparent 0 50%,
      rgba(255,255,255,var(--tile-opaque)) 0 75%,
      transparent 0
    );

  /* The checker repeats every 2×cell so each filled block is exactly 1×cell */
  background-size:
    var(--cell) var(--cell),       /* vertical lines stride */
    var(--cell) var(--cell),       /* horizontal lines stride */
    calc(var(--cell)*2) calc(var(--cell)*2);  /* checker stride */

  background-position: 0 0, 0 0, var(--cell) var(--cell);

  background-repeat: repeat, repeat, repeat;
}

/* Real content above the overlay */
.hero > *:not(.hero-tiles){ position: relative; z-index: 2; }

/* Optional: if you keep the old SVG grid, ensure it’s hidden or z-indexed below: */
.hero-grid { display: none !important; }

@supports not ((-webkit-backdrop-filter: blur(0)) or (backdrop-filter: blur(0))) {
  .hero-tiles::before{ background: rgba(255,255,255,.14); }
}

