/* ============================================================
   BLIND MIKE brand system
   Palette: cobalt on light gray, frosted-glass surfaces
   ============================================================ */
:root{
  --bg:        #EDEFF3;
  --bg-2:      #E3E8F0;
  --ink:       #0A1020;
  --ink-soft:  #333D52;
  --muted:     #5A6478;   /* 6.0:1 on --bg */
  --line:      rgba(10,16,32,.10);
  --line-2:    rgba(10,16,32,.16);
  --glass:     rgba(255,255,255,.62);
  --glass-2:   rgba(255,255,255,.44);
  --glass-brd: rgba(255,255,255,.75);
  --accent:      #2563EB;  /* fills; white text on it = 4.6:1 */
  --accent-ink:  #1D4ED8;  /* accent text on light = 6.3:1 */
  --accent-deep: #14306E;
  --shadow-sm: 0 1px 2px rgba(10,16,32,.05), 0 4px 12px rgba(10,16,32,.05);
  --shadow-md: 0 2px 6px rgba(10,16,32,.06), 0 16px 40px rgba(10,16,32,.09);
  --shadow-lg: 0 8px 24px rgba(10,16,32,.08), 0 32px 80px rgba(10,16,32,.13);
  --r-sm: 12px; --r-md: 18px; --r-lg: 28px; --r-xl: 40px;
  --space-section: clamp(72px, 10vw, 132px);
}

*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; -webkit-text-size-adjust:100%; }
body{
  margin:0;
  background:var(--bg);
  color:var(--ink);
  font-family:Inter, system-ui, sans-serif;
  font-size:16px;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}

/* Ambient background wash ------------------------------------ */
.page-bg{
  position:fixed; inset:0; z-index:-1; pointer-events:none;
  background:
    radial-gradient(52rem 42rem at 12% -8%,  rgba(59,130,246,.20), transparent 62%),
    radial-gradient(46rem 40rem at 92% 4%,   rgba(129,140,248,.17), transparent 60%),
    radial-gradient(50rem 44rem at 78% 92%,  rgba(37,99,235,.13),  transparent 62%),
    linear-gradient(178deg, var(--bg) 0%, var(--bg-2) 55%, var(--bg) 100%);
}
.page-bg::after{ /* subtle grain so large flat areas don't band */
  content:""; position:absolute; inset:0; opacity:.32;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.42'/%3E%3C/svg%3E");
}

/* Glass surfaces --------------------------------------------- */
.glass{
  background:var(--glass);
  -webkit-backdrop-filter:blur(18px) saturate(155%);
  backdrop-filter:blur(18px) saturate(155%);
  border:1px solid var(--glass-brd);
  box-shadow:var(--shadow-md);
}
.glass-soft{
  background:var(--glass-2);
  -webkit-backdrop-filter:blur(14px) saturate(140%);
  backdrop-filter:blur(14px) saturate(140%);
  border:1px solid rgba(255,255,255,.62);
  box-shadow:var(--shadow-sm);
}
/* Fallback for browsers without backdrop-filter */
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){
  .glass{ background:rgba(255,255,255,.90); }
  .glass-soft{ background:rgba(255,255,255,.84); }
}

/* Typography ------------------------------------------------- */
.eyebrow{
  font-family:'JetBrains Mono', monospace;
  font-size:.72rem; letter-spacing:.18em; text-transform:uppercase;
  color:var(--accent-ink); font-weight:500;
}
.display{
  font-weight:800; letter-spacing:-.04em; line-height:.92;
  color:var(--ink); text-wrap:balance;
}
h1,h2,h3,h4{ text-wrap:balance; }
p{ text-wrap:pretty; }
.lede{ color:var(--ink-soft); font-size:clamp(1rem,.96rem + .3vw,1.125rem); line-height:1.7; }
.muted{ color:var(--muted); }
.stat-num{ font-family:'JetBrains Mono',monospace; font-variant-numeric:tabular-nums; letter-spacing:-.03em; }
.pullquote{ font-family:'Playfair Display',Georgia,serif; font-style:italic; }
/* URLs, emails and pasted user content must never blow out the layout */
.breakable{ overflow-wrap:anywhere; min-width:0; }

/* Buttons ---------------------------------------------------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:.55rem;
  min-height:48px; padding:0 1.4rem; border-radius:999px;
  font-weight:600; font-size:.95rem; line-height:1;
  cursor:pointer; border:1px solid transparent; text-decoration:none;
  transition:transform .18s cubic-bezier(.2,.7,.3,1), box-shadow .18s ease,
             background-color .18s ease, color .18s ease, border-color .18s ease;
}
.btn:active{ transform:scale(.97); }
.btn-primary{ background:var(--accent); color:#fff; box-shadow:0 6px 18px rgba(37,99,235,.34); }
.btn-primary:hover{ background:#1D4ED8; box-shadow:0 10px 26px rgba(37,99,235,.42); transform:translateY(-2px); }
.btn-ghost{ background:rgba(255,255,255,.66); color:var(--ink); border-color:var(--line-2); }
.btn-ghost:hover{ background:#fff; border-color:var(--accent); color:var(--accent-ink); transform:translateY(-2px); }
.btn:disabled,.btn[aria-disabled="true"]{
  opacity:.45; cursor:not-allowed; transform:none; box-shadow:none;
}

/* Icon buttons keep a 44px+ hit area even when the glyph is small */
.icon-btn{
  display:inline-flex; align-items:center; justify-content:center;
  width:46px; height:46px; border-radius:999px;
  background:rgba(255,255,255,.72); border:1px solid var(--line-2);
  color:var(--ink-soft); cursor:pointer;
  transition:transform .18s ease, background-color .18s ease, color .18s ease, border-color .18s ease;
}
.icon-btn:hover{ background:var(--accent); color:#fff; border-color:var(--accent); transform:translateY(-2px); }

/* Focus: never removed, always visible on both light and dark */
:where(a,button,input,textarea,select,[tabindex]):focus-visible{
  outline:3px solid var(--accent-ink);
  outline-offset:3px;
  border-radius:6px;
}
.on-dark:focus-visible{ outline-color:#fff; }

/* Cards ------------------------------------------------------ */
.card{
  border-radius:var(--r-lg); padding:1.75rem;
  transition:transform .3s cubic-bezier(.2,.7,.3,1), box-shadow .3s ease;
}
.card-hover:hover{ transform:translateY(-6px); box-shadow:var(--shadow-lg); }

.chip{
  display:inline-flex; align-items:center; gap:.45rem;
  padding:.4rem .85rem; border-radius:999px;
  background:rgba(255,255,255,.68); border:1px solid var(--line);
  font-size:.8rem; font-weight:500; color:var(--ink-soft);
}

/* Section rhythm --------------------------------------------- */
.section{ padding-block:var(--space-section); }
/* Sticky nav must not cover a section when it is jumped to via an anchor */
section[id]{ scroll-margin-top:104px; }
.wrap{ width:100%; max-width:1240px; margin-inline:auto; padding-inline:clamp(20px,5vw,48px); }

/* Scroll reveal ---------------------------------------------- */
.js .reveal{ opacity:0; transform:translateY(22px); }
.reveal{ transition:opacity .7s cubic-bezier(.2,.7,.3,1), transform .7s cubic-bezier(.2,.7,.3,1); }
.reveal.is-in{ opacity:1; transform:none; }

/* Embrace gallery -------------------------------------------- */
.embrace-tile{
  position:relative; display:block; width:100%; padding:0; border:0;
  border-radius:var(--r-md); overflow:hidden; cursor:pointer;
  background:#111; aspect-ratio:3/2;
  box-shadow:var(--shadow-sm);
  transition:transform .35s cubic-bezier(.2,.7,.3,1), box-shadow .35s ease;
}
.embrace-tile img{
  width:100%; height:100%; object-fit:cover; display:block;
  filter:grayscale(1) contrast(1.04);
  transition:transform .5s cubic-bezier(.2,.7,.3,1), opacity .3s ease;
}
.embrace-tile:hover{ transform:translateY(-4px); box-shadow:var(--shadow-lg); }
.embrace-tile:hover img{ transform:scale(1.05); }
.embrace-tile::after{
  content:""; position:absolute; inset:0;
  background:linear-gradient(to top, rgba(10,16,32,.42), transparent 46%);
  opacity:0; transition:opacity .35s ease;
}
.embrace-tile:hover::after,.embrace-tile:focus-visible::after{ opacity:1; }

/* Lightbox --------------------------------------------------- */
.lightbox{
  position:fixed; inset:0; z-index:100; display:none;
  align-items:center; justify-content:center;
  padding:clamp(12px,3vw,40px);
  background:rgba(8,12,22,.90);
  -webkit-backdrop-filter:blur(10px); backdrop-filter:blur(10px);
}
.lightbox[open],.lightbox.is-open{ display:flex; }
.lightbox img{
  max-width:100%; max-height:78vh; object-fit:contain;
  border-radius:var(--r-md); box-shadow:0 30px 90px rgba(0,0,0,.6);
}

/* Forms ------------------------------------------------------ */
.field-label{ display:block; font-size:.85rem; font-weight:600; color:var(--ink-soft); margin-bottom:.4rem; }
.field{
  width:100%; min-height:48px; padding:.8rem 1rem;
  border-radius:var(--r-sm); border:1px solid var(--line-2);
  background:rgba(255,255,255,.78); color:var(--ink);
  font:inherit; font-size:16px; /* 16px stops iOS zoom-on-focus */
  transition:border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}
.field::placeholder{ color:#8A93A6; }
.field:hover{ background:#fff; }
.field:focus{ outline:none; border-color:var(--accent); box-shadow:0 0 0 4px rgba(37,99,235,.18); background:#fff; }
.field[aria-invalid="true"]{ border-color:#B91C1C; background:#FFF7F7; }
.field-error{ display:none; margin-top:.4rem; font-size:.82rem; font-weight:500; color:#B3261E; }
.field-error.is-shown{ display:flex; gap:.35rem; align-items:flex-start; }
.field-help{ margin-top:.4rem; font-size:.8rem; color:var(--muted); }
textarea.field{ min-height:140px; resize:vertical; }
select.field{ appearance:none; background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' stroke='%235A6478' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M5 8l5 5 5-5'/%3E%3C/svg%3E"); background-repeat:no-repeat; background-position:right 14px center; padding-right:44px; }

/* Skip link -------------------------------------------------- */
.skip-link{
  position:absolute; left:16px; top:-100px; z-index:200;
  padding:.8rem 1.2rem; border-radius:999px;
  background:var(--accent); color:#fff; font-weight:600; text-decoration:none;
  transition:top .2s ease;
}
.skip-link:focus{ top:16px; }

/* Nav -------------------------------------------------------- */
.nav-link{
  position:relative; padding:.55rem .2rem; font-size:.94rem; font-weight:500;
  color:var(--ink-soft); text-decoration:none; transition:color .18s ease;
}
.nav-link::after{
  content:""; position:absolute; left:0; right:0; bottom:0; height:2px;
  background:var(--accent); border-radius:2px;
  transform:scaleX(0); transform-origin:left; transition:transform .25s cubic-bezier(.2,.7,.3,1);
}
.nav-link:hover{ color:var(--ink); }
.nav-link:hover::after,.nav-link[aria-current="page"]::after{ transform:scaleX(1); }
.nav-link[aria-current="page"]{ color:var(--accent-ink); font-weight:600; }

/* Hero ambient motion ----------------------------------------
   The snow footage is vertical 9:16, so it is never shown cropped
   here. It sits behind the frosted panel as diffuse moving light.
   A white scrim guarantees text contrast on every frame. --------- */
.hero-stage{
  position:relative; isolation:isolate;
  /* Always padded, so starting the video causes no layout shift.
     With no video this reads as ordinary breathing room. */
  padding:clamp(14px,2.4vw,36px);
}
.hero-video,
.hero-scrim{ position:absolute; inset:0; z-index:0; display:none; }
/* Cover-cropping a 9:16 source into a wide band lands on the dark treeline;
   pull the window up to the sky and ridges so the frame stays light. */
.hero-video{ width:100%; height:100%; object-fit:cover; object-position:50% 16%; }
.hero-scrim{ z-index:1; background:rgba(255,255,255,.22); }
.hero-stage.has-motion .hero-video,
.hero-stage.has-motion .hero-scrim{ display:block; }
.hero-stage > .glass{ position:relative; z-index:2; }
/* The footage reads in the padded frame, never behind the copy: at 4.5:1 the
   muted body text needs its backdrop ~91% white, which would hide the video
   anyway. So the panel goes near-opaque once motion is running. */
.hero-stage.has-motion > .glass{ background:rgba(255,255,255,.93); }
.motion-toggle{
  position:absolute; z-index:3; display:none;
  right:clamp(20px,2.6vw,36px); bottom:clamp(20px,2.6vw,36px);
  background:rgba(255,255,255,.92); border-color:rgba(10,16,32,.14);
  box-shadow:var(--shadow-sm);
}
.hero-stage.has-motion .motion-toggle{ display:inline-flex; }

/* On-location video frame, shown at its native vertical ratio */
.reel-frame{
  position:relative; margin-inline:auto; width:100%; max-width:330px;
  aspect-ratio:9/16; border-radius:var(--r-lg); overflow:hidden;
  background:#0B1220; box-shadow:var(--shadow-lg);
  border:1px solid rgba(255,255,255,.6);
}
.reel-frame video{ width:100%; height:100%; object-fit:cover; display:block; }

/* Hero portrait ---------------------------------------------- */
.portrait-frame{
  position:relative; border-radius:var(--r-xl); overflow:hidden;
  background:linear-gradient(170deg,#DFDCD8,#CFCCC8);
  box-shadow:var(--shadow-lg);
  border:1px solid rgba(255,255,255,.6);
}
.portrait-frame img{ width:100%; height:100%; object-fit:cover; object-position:50% 22%; display:block; }
.portrait-frame::after{
  content:""; position:absolute; inset:0;
  background:linear-gradient(to top, rgba(237,239,243,.85) 0%, rgba(237,239,243,0) 32%);
}

/* Respect the user's motion preference ----------------------- */
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  *,*::before,*::after{
    animation-duration:.001ms !important; animation-iteration-count:1 !important;
    transition-duration:.001ms !important; scroll-behavior:auto !important;
  }
  .js .reveal{ opacity:1 !important; transform:none !important; }
}
