/* =========================================================
   EZ Maintenance • About Page — Refined Visual System
   (drop-in replacement for your current CSS)
   ========================================================= */

/* ---------- Theme / tokens ---------- */
:root {
  /* Colors */
  --bg: #0b0f15;
  --surface: rgba(20, 24, 31, 0.6);
  --ink: #1d2a33;
  --text: #e9edf3;
  --muted: #b8c4d1;

  --brand: #4ea3ff;
  --brand-ink: #0a1b2e;
  --accent: #f59e0b;

  --cream: #f5f0e3;
  --cream-ink: #20262f;

  /* Elevation & radii */
  --shadow-sm: 0 6px 14px rgba(0, 0, 0, 0.18);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --radius: 16px;

  /* Layout */
  --container-pad: clamp(14px, 2.4vw, 28px);
  --content-w: 1200px;

  /* Motion */
  --speed-fast: 0.12s;
  --speed: 0.22s;
  --easing: cubic-bezier(0.22, 0.61, 0.36, 1);
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --speed-fast: 0s;
    --speed: 0s;
  }
}

/* ---------- Resets / base ---------- */
* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
}
html {
  scroll-behavior: smooth;
}

/* =========================
   Global Buttons (Gold + Black Outline on Hover)
   ========================= */

/* Theme tokens (tweak as needed) */
:root{
  --btn-gold: #ffd166;
  --btn-ink:  #2f2310;
}

/* Base: covers <button>, <a class="btn">, <input type="submit">, etc. */
button,
input[type="button"],
input[type="submit"],
input[type="reset"],
a.btn,
.btn {
  -webkit-appearance: none;
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;

  padding: .65rem 1rem;
  border-radius: 999px;
  border: 2px solid transparent;

  background: var(--btn-gold);
  color: var(--btn-ink);
  font: inherit;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;

  transition: border-color .15s ease, transform .08s ease;
  min-height: 40px; /* comfy target */
}

/* Hover: only add a black outline; keep gold fill */
button:hover,
input[type="button"]:hover,
input[type="submit"]:hover,
input[type="reset"]:hover,
a.btn:hover,
.btn:hover {
  border-color: #000;           /* black outline */
}

/* Focus: accessible, clear ring */
button:focus-visible,
input[type="button"]:focus-visible,
input[type="submit"]:focus-visible,
input[type="reset"]:focus-visible,
a.btn:focus-visible,
.btn:focus-visible {
  outline: 3px solid #000;
  outline-offset: 2px;
}

/* Active: tiny press feedback */
button:active,
input[type="button"]:active,
input[type="submit"]:active,
input[type="reset"]:active,
a.btn:active,
.btn:active {
  transform: translateY(1px);
}

/* Disabled */
button:disabled,
input[type="button"]:disabled,
input[type="submit"]:disabled,
input[type="reset"]:disabled,
.btn[aria-disabled="true"],
a.btn[aria-disabled="true"] {
  opacity: .55;
  cursor: not-allowed;
  pointer-events: none;
}

/* Size helpers (optional) */
.btn-sm,
a.btn.btn-sm {
  padding: .5rem .8rem;
  min-height: 36px;
  font-weight: 600;
}

.btn-lg,
a.btn.btn-lg {
  padding: .8rem 1.2rem;
  min-height: 46px;
  font-weight: 800;
}

/* Block (full width) */
.btn-block,
a.btn.btn-block {
  width: 100%;
}

/* Ghost variant (transparent by default; hover gets same black outline) */
.btn-ghost,
a.btn.btn-ghost {
  background: transparent;
  color: var(--btn-ink);
  border-color: transparent;
}
.btn-ghost:hover,
a.btn.btn-ghost:hover {
  border-color: #000;  /* black outline on hover */
}

/* Visible Secondary (light button with strong contrast) */
.btn-secondary,
a.btn.btn-secondary {
  background: #ffffff;
  color: #0b1219;
  border: 2px solid #000;     /* clearly visible at rest */
}
.btn-secondary:hover,
a.btn.btn-secondary:hover {
  /* keep it clean—no fill change, outline already visible via border */
  filter: brightness(1.02);
}

body {
  margin: 0;
  font-family: Poppins, system-ui, -apple-system, Segoe UI, Roboto, Arial,
    Helvetica, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}
:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 10px;
}

.container {
  width: min(var(--content-w), 94%);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
  width: auto;
  height: auto;
  background: #000;
  color: #fff;
  padding: 0.55rem 0.8rem;
  border-radius: 0.55rem;
  z-index: 9999;
}
/* ========= Header (light, compact, 150px logo without negative margins) ========= */
.site-header{
  position:fixed; inset:0 0 auto 0; z-index:40;
  background:linear-gradient(180deg, rgba(255,255,255,.95), rgba(255,255,255,.78));
  color:#0b1219;
  backdrop-filter:saturate(120%) blur(8px);
  transition:background .25s ease, box-shadow .25s ease, transform .25s ease;
  padding-top: env(safe-area-inset-top);
  overflow:visible; /* allow visual overhang of the logo */
}
.site-header.scrolled{
  background:rgba(255,255,255,.98);
  box-shadow:0 6px 24px rgba(0,0,0,.08);
}

/* Compact row */
.nav-row{
  --navH: 82px;                 /* compact bar height */
  display:flex; align-items:center; gap:.6rem;
  padding:.2rem 0;
  min-height:var(--navH);
}

/* Brand: reserve width, keep height to nav height, absolutely place logo */
.brand{
  position:relative;
  display:flex; align-items:center;
  gap:.6rem;
  height:var(--navH);          /* keeps header compact */
  min-width:190px;             /* space so nav doesn’t collide with logo */
}

/* Logo: full 150px centered vertically; does not grow header */
.brand-logo{
  position:absolute; left:0; top:50%;
  transform:translateY(-50%);
  height:150px; width:auto; display:block;
}

/* Desktop nav tighter to fit beside the big logo */
.nav-desktop{ margin-left:auto; }
.nav-list{
  display:flex; gap:.85rem; list-style:none; padding:0; margin:0;
}
.nav-list a{
  font-size:1rem; line-height:1;
  color:#0e1620; opacity:.9;
  transition:opacity .15s ease, color .15s ease;
}
.nav-list a:hover{ opacity:1; color:#000; }

/* Desktop CTA (compact) */
.nav-cta{ margin-left:.5rem; }
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:.4rem;
  padding:.44rem .75rem; border-radius:999px; border:1px solid transparent;
  font-weight:600; min-height:36px;
  transition:transform .12s ease, background .2s ease, border-color .2s ease, filter .2s ease;
}
.btn-cta{ background:#ffd166; color:#2f2310; }

/* Subtle divider under white header */
.site-header::after{
  content:""; position:absolute; left:0; right:0; bottom:0; height:1px;
  background:linear-gradient(90deg, transparent, rgba(0,0,0,.06), transparent);
}

/* ========================
   Mobile pill toggle (clean)
   ======================== */
#navToggle.hamburger{
  display:none !important;                 /* shown below ≤1024px */
  background:transparent !important;
  border:2px solid var(--cta, #ffd166);    /* yellow outline */
  border-radius:999px;
  min-height:42px; min-width:60px;
  padding:8px 14px;
  box-shadow:none !important;
  position:relative; z-index:65;
  line-height:0; cursor:pointer;
  -webkit-appearance:none; appearance:none;

  display:inline-flex; flex-direction:column; align-items:center; justify-content:center; gap:6px;
}
#navToggle.hamburger .bar{
  width:22px; height:2px;
  background:#0b1219;                      /* dark bars vs light header */
  border-radius:2px; opacity:1 !important; transform:none !important;
}
#navToggle.hamburger:hover{ background:rgba(255,209,102,.08) !important; }
#navToggle.hamburger:active{ transform:translateY(1px); }
#navToggle.hamburger:focus-visible{
  outline:3px solid rgba(255,209,102,.6); outline-offset:2px;
}
#navToggle[aria-expanded="true"] .bar{ transform:none !important; opacity:1 !important; }

/* ========================
   Drawer / Scrim
   ======================== */
.scrim{
  position:fixed; inset:0; background:rgba(0,0,0,.75); backdrop-filter:blur(2px);
  z-index:80; opacity:0; visibility:hidden; transition:opacity .2s ease;
}
.scrim.active{ opacity:1; visibility:visible; }

.drawer{
  position:fixed; top:0; right:0; left:0; width:100vw; height:auto; max-height:100vh; overflow-y:auto;
  background:#0a0f17 !important; color:var(--text, #e8eef6); z-index:90;
  transform:translateX(100%); transition:transform .25s ease;
  display:flex; flex-direction:column; padding-bottom: env(safe-area-inset-bottom);
}
.drawer.open{ transform:translateX(0); }

/* Drawer header: sticky, readable, no logo */
.drawer-header{
  position: sticky; top: 0; z-index: 2;
  display: flex; align-items: center; justify-content: space-between;
  padding: max(1rem, env(safe-area-inset-top)) 1.25rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
  background: #0a0f17; /* matches drawer bg for seamless stickiness */
  color: #fff;
}

/* Title styling */
.drawer-title{
  font-size: 1rem; font-weight: 700; letter-spacing: .01em;
  line-height: 1; user-select: none;
}

/* Close button: big target, clean focus, hover */
.icon-btn{
  background: transparent; border: 0; color: #fff; cursor: pointer;
  display: inline-grid; place-items: center;
  width: 44px; height: 44px; border-radius: 10px; /* 44px min touch target */
  transition: background .15s ease, transform .12s ease;
}
.icon-btn:hover{ background: rgba(255,255,255,.08); }
.icon-btn:active{ transform: translateY(1px); }
.icon-btn:focus-visible{
  outline: 0;
  box-shadow: 0 0 0 3px rgba(255,209,102,.6); /* yellow focus ring to match brand CTA */
}

/* Slightly bolder “X” for legibility on dark bg */
.icon-btn--close span{ font-size: 1.15rem; line-height: 1; }

/* Keep footer logo nicely separated */
.drawer-footer{
  padding: 1rem; border-top: 1px solid rgba(255,255,255,.08);
}
.drawer-footer .drawer-brand{
  display: grid; place-items: center; padding-top: .75rem; opacity: .9;
}
.drawer-footer .drawer-brand .brand-logo--drawer{ height: 40px; }

/* Motion sensitivity */
@media (prefers-reduced-motion: reduce){
  .icon-btn{ transition: none !important; }
}


/* Links stack and scroll if needed */
.drawer-body{
  display:flex; flex-direction:column; padding:1rem; gap:.25rem;
  background:transparent !important; flex:1 1 auto; /* pushes footer to bottom */
}
.drawer-link{ padding:.9rem 1rem; border-radius:.8rem; opacity:.95; color:#e8eef6; min-height:44px; }
.drawer-link:hover{ background:rgba(255,255,255,.08); opacity:1; }

/* Footer stays at bottom; contains CTA + small logo */
.drawer-footer{
  padding:1rem; border-top:1px solid rgba(255,255,255,.08);
}
.drawer-footer .drawer-brand{
  display:grid; place-items:center; padding-top:.75rem; opacity:.9;
}
.brand-logo--drawer{ height:40px; width:auto; display:block; }

/* ========================
   Responsive
   ======================== */
@media (max-width:1024px){
  #navToggle.hamburger{ display:inline-flex !important; }
  .nav-desktop{ display:none !important; }
  .nav-cta{ display:none !important; }
  .nav-row > #navToggle{ margin-left:auto; } /* push toggle to right on mobile */
}

@media (max-width:560px){
  .nav-row{ --navH: 54px; }
  .brand{ min-width:160px; }
  /* keep 150px; if it crowds, set 130–140px here instead */
  .brand-logo{ height:150px; }
}

/* Screen-reader helper */
.sr-only{
  position:absolute; width:1px; height:1px; padding:0; margin:-1px;
  overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; border:0;
}
/* Slightly smaller logo on small phones */
@media (max-width: 560px){
  .brand-logo{
    height: 106px;      /* was 150px */
    max-height: 140px;  /* gentle cap */
  }
  .brand{ min-width: 150px; } /* keep nav from colliding */
}

/* ---------- Generic sections ---------- */
.section {
  padding: clamp(4rem, 8vh, 5rem) 0;
}
.section.cream {
  background: var(--cream);
  color: var(--cream-ink);
}
.section.forest {
  background: #121826;
}

/* =========================================================
   ABOUT — Banner
   ========================================================= */
.about-hero {
  position: relative;
  min-height: 48vh;
  display: grid;
  align-items: end;
  isolation: isolate;
}
.about-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.92) saturate(1.03);
  transform: scale(1.02);
  transform-origin: center;
}
.about-hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(
      80% 60% at 20% 40%,
      rgba(10, 15, 23, 0.25),
      transparent 60%
    ),
    linear-gradient(
      180deg,
      rgba(8, 12, 18, 0.45) 0%,
      rgba(8, 12, 18, 0.62) 55%,
      rgba(8, 12, 18, 0.92) 100%
    );
}
.about-hero-inner {
  position: relative;
  padding: calc(18vh + 48px) 0 10vh;
}
.about-hero h1 {
  margin: 0;
  font-family: "Playfair Display", serif;
  font-weight: 700;
  letter-spacing: -0.01em;
  font-size: clamp(2.2rem, 1.1rem + 3.8vw, 4rem);
  color: #fff;
}
.about-hero .script {
  font-style: italic;
  color: var(--accent);
  text-shadow: 0 4px 22px rgba(245, 158, 11, 0.25);
}

/* =========================================================
   ABOUT — Split (media stack + copy)  •  Polished visuals
   ========================================================= */

/* --- Optional tokens (safe fallbacks) --- */
:root {
  --radius-sm: 12px;
  --radius: 16px;
  --radius-lg: 20px;
  --hairline: rgba(0, 0, 0, 0.06);
  --hairline-strong: rgba(0, 0, 0, 0.12);
  --surface: #ffffff;
  --ink: #0f1720;
  --muted-ink: #3b4952;
  --shadow-sm: 0 6px 14px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 10px 25px rgba(0, 0, 0, 0.08), 0 2px 6px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 18px 45px rgba(0, 0, 0, 0.16), 0 6px 16px rgba(0, 0, 0, 0.08);
}

/* ——— Split grid ——— */
.split-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(1rem, 3.2vw, 2.25rem);
  align-items: center;
  isolation: isolate;
}

/* ——— Media stack ——— */
.media-stack {
  display: grid;
  gap: clamp(0.8rem, 2.2vw, 1.25rem);
}
.media-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: linear-gradient(var(--surface), var(--surface)) padding-box,
    linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0)) border-box;
  border: 1px solid transparent;
  box-shadow: var(--shadow-md);
  transition: transform var(--speed) var(--easing),
    box-shadow var(--speed) var(--easing), filter var(--speed) var(--easing);
  will-change: transform;
}
.media-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  filter: saturate(1.03);
}
.media-card > img,
.media-card > video,
.media-card picture,
.media-card canvas {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

/* Video play affordance */
.media-card.video {
  contain: paint;
}
.media-card.video .play {
  position: absolute;
  inset: auto auto 14px 14px;
  width: 54px;
  height: 54px;
  border-radius: 999px;
  border: 0;
  display: grid;
  place-items: center;
  font-weight: 800;
  background: rgba(0, 0, 0, 0.64);
  color: #fff;
  cursor: pointer;
  backdrop-filter: blur(4px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  transition: transform var(--speed-fast) var(--easing),
    background var(--speed) var(--easing), box-shadow var(--speed) var(--easing);
}
.media-card.video .play::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 999px;
  box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.14);
  animation: pulseRing 2.2s var(--easing) infinite;
}
.media-card.video .play:hover {
  transform: translateY(-1px);
  background: rgba(0, 0, 0, 0.75);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.32);
}
.media-card.video .play:focus-visible {
  outline: 2px solid #7cc4ff;
  outline-offset: 3px;
}
@keyframes pulseRing {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.14);
  }
  70% {
    box-shadow: 0 0 0 12px rgba(255, 255, 255, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
  }
}

/* ——— Copy block ——— */
.split-copy h2 {
  margin: 0 0 0.5rem;
  font-family: "Playfair Display", serif;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.2px;
  font-size: clamp(1.7rem, 1rem + 2.3vw, 2.65rem);
  color: var(--cream-ink);
}
.split-copy p {
  margin: 0 0 1.05rem;
  color: var(--muted-ink);
  font-size: clamp(0.98rem, 0.3vw + 0.95rem, 1.05rem);
}
.section:not(.cream) .split-copy h2 {
  color: #fff;
}
.section:not(.cream) .split-copy p {
  color: var(--muted);
}

/* =========================================================
   ABOUT — Values / benefits  •  Elevated + legible
   ========================================================= */
.values-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(1rem, 3.2vw, 2.25rem);
  align-items: start;
}
.values-lead h3 {
  margin: 0.25rem 0 0.5rem;
  font-family: "Playfair Display", serif;
  font-weight: 700;
  font-size: clamp(1.9rem, 1rem + 2.6vw, 2.9rem);
  color: var(--cream-ink);
  letter-spacing: 0.2px;
  text-wrap: balance;
}
.values-lead p {
  margin-top: 0.25rem;
  font-size: clamp(1rem, 0.25vw + 0.98rem, 1.06rem);
  line-height: 1.55;
  /* slightly lighter than body on light bg for comfort */
  color: color-mix(in oklab, var(--muted-ink), #ffffff 12%);
}
.section:not(.cream) .values-lead h3 {
  color: #f3f7fb;
}
.section:not(.cream) .values-lead p {
  color: #c9d6e4;
}

.values-list {
  display: grid;
  gap: 1rem;
}

.val-card {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 0.85rem;
  padding: 0.9rem 1rem;
  border-radius: var(--radius);
  background: linear-gradient(var(--surface), var(--surface)) padding-box,
    linear-gradient(180deg, rgba(7, 113, 255, 0.22), rgba(7, 113, 255, 0))
      border-box;
  border: 1px solid transparent;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12), 0 2px 6px rgba(0, 0, 0, 0.06);
  transition: transform var(--speed) var(--easing),
    box-shadow var(--speed) var(--easing),
    border-color var(--speed) var(--easing), filter var(--speed) var(--easing);
}
.val-card:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: var(--shadow-lg);
  filter: saturate(1.04);
  border-image: linear-gradient(
      180deg,
      rgba(78, 163, 255, 0.45),
      rgba(78, 163, 255, 0)
    )
    1;
}
.val-ico {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 1rem;
  font-weight: 700;
  color: #0a1b2e;
  background: radial-gradient(
    120% 120% at 30% 20%,
    #eef6ff 0%,
    #e6f0ff 42%,
    #deebff 100%
  );
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6),
    0 6px 18px rgba(64, 118, 255, 0.18);
}
.val-card h4 {
  margin: 0.1rem 0 0.15rem;
  color: #1f2a35;
  font-weight: 700;
  letter-spacing: 0.15px;
  line-height: 1.2;
  font-size: clamp(
    1.02rem,
    0.35vw + 1rem,
    1.12rem
  ); /* smaller to avoid wrapping */
  text-wrap: balance;
}
@media (min-width: 640px) {
  .val-card h4 {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis; /* hard stop on wider screens */
  }
}
.val-card p {
  margin: 0;
  color: #566370; /* lighter for readability against bg */
  font-size: clamp(0.93rem, 0.2vw + 0.9rem, 0.98rem);
  line-height: 1.45;
}

/* =========================================================
   ABOUT — CTA  •  Airy & responsive
   ========================================================= */
.about-cta .cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.1rem;
  padding: clamp(0.9rem, 1.2vw, 1.25rem);
  border-radius: var(--radius-lg);
  background: linear-gradient(
    180deg,
    rgba(233, 237, 243, 0.1),
    rgba(233, 237, 243, 0.04)
  );
  border: 1px solid rgba(233, 237, 243, 0.16);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}
.about-cta h3 {
  margin: 0;
  color: #e9edf3;
  font-weight: 700;
  letter-spacing: 0.2px;
  font-size: clamp(1.35rem, 1rem + 1.6vw, 2rem);
}
.about-cta .btn-ghost {
  color: #e9edf3;
  border-color: rgba(233, 237, 243, 0.28);
  backdrop-filter: blur(3px);
}
.about-cta .btn-ghost:hover {
  background: rgba(233, 237, 243, 0.1);
}

/* =========================================================
   Dark section / non-cream adjustments (cards pop more)
   ========================================================= */
.section:not(.cream) .media-card,
.section:not(.cream) .val-card {
  background: linear-gradient(#0b1117, #0b1117) padding-box,
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0))
      border-box;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45), 0 4px 10px rgba(0, 0, 0, 0.25);
}
.section:not(.cream) .val-card h4 {
  color: #eaf2fa;
}
.section:not(.cream) .val-card p {
  color: #bcd0e2;
}
.section:not(.cream) .val-ico {
  background: radial-gradient(
    120% 120% at 30% 20%,
    #13202e 0%,
    #0f1a25 42%,
    #0c1620 100%
  );
  color: #dce8f7;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 6px 18px rgba(0, 0, 0, 0.35);
}
.section:not(.cream) .media-card:hover,
.section:not(.cream) .val-card:hover {
  filter: saturate(1.06);
}

/* ---------- Accessibility / Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .media-card,
  .val-card,
  .media-card.video .play {
    transition: none;
  }
  .media-card:hover,
  .val-card:hover {
    transform: none;
  }
  .media-card.video .play::after {
    animation: none;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .split-grid {
    grid-template-columns: 1fr;
  }
  .values-grid {
    grid-template-columns: 1fr;
  }
  .about-cta .cta-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
@media (max-width: 720px) {
  .about-hero-inner {
    padding: calc(22vh + 56px) 0 9vh;
  }
  .media-card > img,
  .media-card > video {
    aspect-ratio: 16 / 11;
  }
  .media-card.video .play {
    inset: auto 12px 12px auto;
  }
}
/* =========================================================
   ABOUT — Split (media stack + copy)  •  Polished visuals
   ========================================================= */

/* --- Optional tokens (safe fallbacks) --- */
:root {
  --radius-sm: 12px;
  --radius: 16px;
  --radius-lg: 20px;
  --hairline: rgba(0, 0, 0, 0.06);
  --hairline-strong: rgba(0, 0, 0, 0.12);
  --surface: #ffffff;
  --ink: #0f1720;
  --muted-ink: #3b4952;
  --shadow-sm: 0 6px 14px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 10px 25px rgba(0, 0, 0, 0.08), 0 2px 6px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 18px 45px rgba(0, 0, 0, 0.16), 0 6px 16px rgba(0, 0, 0, 0.08);
}

/* ——— Split grid ——— */
.split-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(1rem, 3.2vw, 2.25rem);
  align-items: center;
  isolation: isolate;
}

/* ——— Media stack ——— */
.media-stack {
  display: grid;
  gap: clamp(0.8rem, 2.2vw, 1.25rem);
}
.media-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: linear-gradient(var(--surface), var(--surface)) padding-box,
    linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0)) border-box;
  border: 1px solid transparent;
  box-shadow: var(--shadow-md);
  transition: transform var(--speed) var(--easing),
    box-shadow var(--speed) var(--easing), filter var(--speed) var(--easing);
  will-change: transform;
}
.media-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  filter: saturate(1.03);
}
.media-card > img,
.media-card > video,
.media-card picture,
.media-card canvas {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

/* Video play affordance */
.media-card.video {
  contain: paint;
}
.media-card.video .play {
  position: absolute;
  inset: auto auto 14px 14px;
  width: 54px;
  height: 54px;
  border-radius: 999px;
  border: 0;
  display: grid;
  place-items: center;
  font-weight: 800;
  background: rgba(0, 0, 0, 0.64);
  color: #fff;
  cursor: pointer;
  backdrop-filter: blur(4px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  transition: transform var(--speed-fast) var(--easing),
    background var(--speed) var(--easing), box-shadow var(--speed) var(--easing);
}
.media-card.video .play::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 999px;
  box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.14);
  animation: pulseRing 2.2s var(--easing) infinite;
}
.media-card.video .play:hover {
  transform: translateY(-1px);
  background: rgba(0, 0, 0, 0.75);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.32);
}
.media-card.video .play:focus-visible {
  outline: 2px solid #7cc4ff;
  outline-offset: 3px;
}
@keyframes pulseRing {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.14);
  }
  70% {
    box-shadow: 0 0 0 12px rgba(255, 255, 255, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
  }
}

/* ——— Copy block ——— */
.split-copy h2 {
  margin: 0 0 0.5rem;
  font-family: "Playfair Display", serif;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.2px;
  font-size: clamp(1.7rem, 1rem + 2.3vw, 2.65rem);
  color: var(--cream-ink);
}
.split-copy p {
  margin: 0 0 1.05rem;
  color: var(--muted-ink);
  font-size: clamp(0.98rem, 0.3vw + 0.95rem, 1.05rem);
}
.section:not(.cream) .split-copy h2 {
  color: #fff;
}
.section:not(.cream) .split-copy p {
  color: var(--muted);
}

/* =========================================================
   ABOUT — Values / benefits  •  Elevated + legible
   ========================================================= */
.values-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(1rem, 3.2vw, 2.25rem);
  align-items: start;
}
.values-lead h3 {
  margin: 0.25rem 0 0.5rem;
  font-family: "Playfair Display", serif;
  font-weight: 700;
  font-size: clamp(1.9rem, 1rem + 2.6vw, 2.9rem);
  color: var(--cream-ink);
  letter-spacing: 0.2px;
  text-wrap: balance;
}
.values-lead p {
  margin-top: 0.25rem;
  font-size: clamp(1rem, 0.25vw + 0.98rem, 1.06rem);
  line-height: 1.55;
  color: color-mix(
    in oklab,
    var(--muted-ink),
    #ffffff 12%
  ); /* lighter for comfort */
}
.section:not(.cream) .values-lead h3 {
  color: #f3f7fb;
}
.section:not(.cream) .values-lead p {
  color: #c9d6e4;
}

.values-list {
  display: grid;
  gap: 1rem;
}

.val-card {
  /* theme-aware title colors */
  --val-title-light: #0e1a24;
  --val-title-dark: #f2f8ff;

  display: grid;
  grid-template-columns: minmax(40px, auto) 1fr; /* narrow icon, wider text */
  align-items: start;
  gap: 0.85rem;
  padding: 0.9rem 1rem;
  border-radius: var(--radius);
  background: linear-gradient(var(--surface), var(--surface)) padding-box,
    linear-gradient(180deg, rgba(7, 113, 255, 0.22), rgba(7, 113, 255, 0))
      border-box;
  border: 1px solid transparent;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12), 0 2px 6px rgba(0, 0, 0, 0.06);
  transition: transform var(--speed) var(--easing),
    box-shadow var(--speed) var(--easing),
    border-color var(--speed) var(--easing), filter var(--speed) var(--easing);
}
.val-card:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: var(--shadow-lg);
  filter: saturate(1.04);
  border-image: linear-gradient(
      180deg,
      rgba(78, 163, 255, 0.45),
      rgba(78, 163, 255, 0)
    )
    1;
}
.val-ico {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 1rem;
  font-weight: 700;
  color: #0a1b2e;
  background: radial-gradient(
    120% 120% at 30% 20%,
    #eef6ff 0%,
    #e6f0ff 42%,
    #deebff 100%
  );
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6),
    0 6px 18px rgba(64, 118, 255, 0.18);
}

/* ===== Value card title (h4) — visibility & contrast ===== */
.val-card h4 {
  position: relative;
  z-index: 1;
  margin: 0.1rem 0 0.15rem;
  color: var(--val-title-light);
  font-weight: 750;
  letter-spacing: 0.2px;
  line-height: 1.18;
  font-size: clamp(1.08rem, 0.4vw + 1rem, 1.18rem); /* larger for clarity */
  text-wrap: balance;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.45); /* subtle lift on light */
}
.section:not(.cream) .val-card h4 {
  color: var(--val-title-dark);
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.55), 0 0 6px rgba(0, 0, 0, 0.25); /* soft glow on dark */
}

/* Smarter truncation: wide screens truncate, small screens wrap */
@media (min-width: 700px) {
  .val-card h4 {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
  }
}
@media (max-width: 699.98px) {
  .val-card h4 {
    white-space: normal;
    text-overflow: clip;
    overflow: visible;
  }
}

.val-card p {
  margin: 0;
  color: #566370; /* lighter for readability */
  font-size: clamp(0.93rem, 0.2vw + 0.9rem, 0.98rem);
  line-height: 1.45;
}

/* =========================================================
   ABOUT — CTA  •  Airy & responsive
   ========================================================= */
.about-cta .cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.1rem;
  padding: clamp(0.9rem, 1.2vw, 1.25rem);
  border-radius: var(--radius-lg);
  background: linear-gradient(
    180deg,
    rgba(233, 237, 243, 0.1),
    rgba(233, 237, 243, 0.04)
  );
  border: 1px solid rgba(233, 237, 243, 0.16);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}
.about-cta h3 {
  margin: 0;
  color: #e9edf3;
  font-weight: 700;
  letter-spacing: 0.2px;
  font-size: clamp(1.35rem, 1rem + 1.6vw, 2rem);
}
.about-cta {
  color: #e9edf3;
  border-color: rgba(233, 237, 243, 0.28);
  backdrop-filter: blur(3px);
}
.about-cta:hover {
  background: rgba(233, 237, 243, 0.1);
}

/* =========================================================
   Dark section / non-cream adjustments (cards pop more)
   ========================================================= */
.section:not(.cream) .media-card,
.section:not(.cream) .val-card {
  background: linear-gradient(#0b1117, #0b1117) padding-box,
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0))
      border-box;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45), 0 4px 10px rgba(0, 0, 0, 0.25);
}
.section:not(.cream) .val-card p {
  color: #bcd0e2;
}
.section:not(.cream) .val-ico {
  background: radial-gradient(
    120% 120% at 30% 20%,
    #13202e 0%,
    #0f1a25 42%,
    #0c1620 100%
  );
  color: #dce8f7;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 6px 18px rgba(0, 0, 0, 0.35);
}
.section:not(.cream) .media-card:hover,
.section:not(.cream) .val-card:hover {
  filter: saturate(1.06);
}

/* ---------- Accessibility / Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .media-card,
  .val-card,
  .media-card.video .play {
    transition: none;
  }
  .media-card:hover,
  .val-card:hover {
    transform: none;
  }
  .media-card.video .play::after {
    animation: none;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .split-grid {
    grid-template-columns: 1fr;
  }
  .values-grid {
    grid-template-columns: 1fr;
  }
  .about-cta .cta-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
@media (max-width: 720px) {
  .about-hero-inner {
    padding: calc(22vh + 56px) 0 9vh;
  }
  .media-card > img,
  .media-card > video {
    aspect-ratio: 16 / 11;
  }
  .media-card.video .play {
    inset: auto 12px 12px auto;
  }
}
