/* ==========================================================================
   VERSION 4 · "DrNo" — three glass cards on textured black
   --------------------------------------------------------------------------
   STYLE RULES: change colors, fonts and sizes here.
   Accent colors come from colorGuide-10-13-2026.png.
   ========================================================================== */
:root {
  color-scheme: dark;

  /* Accent colors (color guide) */
  --slate:  #424874;
  --teal:   #048ba8;
  --green:  #4cb944;
  --red:    #ab3428;
  --orange: #f29e4c;

  /* Neutrals, nudged slightly toward the slate */
  --bg: #0c0d12;
  --text: #f2f3f7;
  --text-muted: rgba(226, 229, 240, 0.62);
  --line: rgba(255, 255, 255, 0.10);

  /* Glass: a faint frosted fill, a 1px gradient edge and a soft glow */
  --glass: rgba(255, 255, 255, 0.045);
  --glass-hover: rgba(255, 255, 255, 0.07);
  --glass-blur: 16px;
  --edge-white: rgba(255, 255, 255, 0.55);   /* brightest part of the edge */
  --edge-faint: rgba(255, 255, 255, 0.06);   /* quietest part of the edge */
  --glow-strength: 0.35;                     /* colored glow around each box at rest (0 = none) */
  --glow-top: 0.42;                          /* teal glow under the banner */
  --glow-bottom: 0.32;                       /* glow above the footer */
  --glow-reach: clamp(240px, 28vw, 400px);   /* how far each glow spreads before fading to black */

  /* Dust particles video, screen-blended so only the specks show (0 = off) */
  --dust-opacity: 0.28;

  /* Banner fill: how solid it is at the sides and in the middle (0 = clear, 1 = solid).
     0.2 = 80% transparent, 0.4 = 60% transparent. The thin edge lines are separate. */
  --bar-fill-sides: 0.2;
  --bar-fill-middle: 0.4;
  --bar-blur: 6px;

  /* Background texture strength (0 = off). Subtle by design. */
  --texture-opacity: 0.32;

  /* Video tint before hover (uses the slate accent) */
  --tint: var(--slate);
  --tint-strength: 0.7;

  /* Title text resting opacity */
  --label-resting-opacity: 0.55;

  /* Fonts */
  --font: "Helvetica Now Display", "Helvetica Neue", Helvetica, Arial, sans-serif;

  /* Sizes */
  --size-wordmark: 1.25rem;
  --size-nav: 0.9375rem;
  --size-slogan: clamp(1.75rem, 3.6vw, 3.5rem);
  --size-card: clamp(1.05rem, 1.5vw, 1.4rem);
  --size-small: 0.8125rem;

  /* Layout */
  --gutter: clamp(16px, 2.6vw, 36px);
  --gap: clamp(14px, 1.8vw, 26px);
  --bezel: clamp(4px, 0.45vw, 6px);      /* glass rim around each video */
  --radius: 14px;
  --bar-height: 64px;
  --max: 1500px;
  --client-slots: 8;   /* logo spaces in the clients row */
}
/* ======================= end of style rules ============================== */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font); font-size: 1rem; line-height: 1.4;
  letter-spacing: -0.01em; -webkit-font-smoothing: antialiased;
  /* Depth: lighter in the middle, darker toward the edges, so the content sits above it */
  background-image:
    radial-gradient(90% 70% at 50% 35%, #171923 0%, rgba(12,13,18,0) 70%),
    radial-gradient(140% 120% at 50% 50%, var(--bg) 55%, #060609 100%);
  background-attachment: fixed;
}
/* Band above the sticky banner on phones with a notch */
body::before {
  content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px);
  z-index: 50; background: #121318;
}
a { color: inherit; text-decoration: none; }
video { display: block; }

/* Paper texture, overlay-blended so it only adds grain and creases */
/* Glows: start at the banner and the footer, then fade gradually to black before reaching the boxes */
:root {
  --glow-fade-down: linear-gradient(to bottom, #000 0%, rgba(0,0,0,.75) 18%, rgba(0,0,0,.42) 40%, rgba(0,0,0,.16) 64%, rgba(0,0,0,.04) 84%, transparent 100%);
  --glow-fade-up:   linear-gradient(to top,    #000 0%, rgba(0,0,0,.75) 18%, rgba(0,0,0,.42) 40%, rgba(0,0,0,.16) 64%, rgba(0,0,0,.04) 84%, transparent 100%);
}
.glow-top {
  position: absolute; left: 0; right: 0; top: env(safe-area-inset-top, 0px);
  height: calc(var(--glow-reach) + var(--bar-height)); z-index: -1; pointer-events: none;
  background: radial-gradient(60% var(--glow-reach) at 45% var(--bar-height), color-mix(in srgb, var(--teal) calc(var(--glow-top) * 100%), transparent), transparent 100%);
  /* Black from the top down to halfway up the banner, building to full strength at the
     banner's bottom edge, then the same gradual fade to black below it */
  --fade: linear-gradient(to bottom, transparent 0, transparent calc(var(--bar-height) * .5), #000 var(--bar-height),
    rgba(0,0,0,.75) calc(var(--bar-height) + var(--glow-reach) * .18),
    rgba(0,0,0,.42) calc(var(--bar-height) + var(--glow-reach) * .40),
    rgba(0,0,0,.16) calc(var(--bar-height) + var(--glow-reach) * .64),
    rgba(0,0,0,.04) calc(var(--bar-height) + var(--glow-reach) * .84), transparent 100%);
  -webkit-mask-image: var(--fade); mask-image: var(--fade);
}

/* Floating dust particles */
.dust {
  position: fixed; inset: 0; width: 100%; height: 100%; object-fit: cover;
  z-index: -1; pointer-events: none; mix-blend-mode: screen;
  opacity: 0; transition: opacity 1.5s ease;
}
.dust.is-ready { opacity: var(--dust-opacity); }

.texture {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: url("../images/paper-texture.jpg") center / cover no-repeat;
  mix-blend-mode: overlay; opacity: var(--texture-opacity);
}

.wrap, .bar__inner, .page, .foot__inner {
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}

/* ---------- Top banner: glass ---------- */
.bar {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 40;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0) 60%),
    linear-gradient(90deg,
      rgb(14 15 21 / var(--bar-fill-sides)) 0%,
      rgb(14 15 21 / var(--bar-fill-middle)) 50%,
      rgb(14 15 21 / var(--bar-fill-sides)) 100%);
  backdrop-filter: blur(var(--bar-blur)) saturate(140%); -webkit-backdrop-filter: blur(var(--bar-blur)) saturate(140%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.10), 0 14px 30px -18px rgba(0, 0, 0, 0.9);
}
/* Delicate edge along the bottom, picking up the color guide */
.bar::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, transparent 0%, var(--orange) 14%, rgba(255,255,255,.7) 30%, var(--teal) 48%, rgba(255,255,255,.25) 64%, var(--green) 80%, transparent 100%);
  opacity: .7;
}
.bar__inner {
  max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto;
  height: var(--bar-height);
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.bar__mark { display: flex; align-items: center; gap: 12px; white-space: nowrap; }
.bar__name {
  font-size: var(--size-wordmark); font-weight: 700; letter-spacing: -0.02em; text-transform: uppercase;
  /* Glass reflection: a soft diagonal band of light across the letters */
  background: linear-gradient(115deg, #ffffff 0%, #ffffff 34%, #aab4c8 44%, #f4f6fb 50%, #ffffff 56%, #c9d0de 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.6));
}
.bar__role { font-size: var(--size-small); color: var(--text-muted); }
.bar__contact { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 28px); font-size: var(--size-nav); }
.bar__contact a { opacity: 0.85; transition: opacity .2s, color .2s; white-space: nowrap; }
.bar__contact a:hover, .bar__contact a:focus-visible { opacity: 1; }
.bar__contact .bar__cta {
  --accent: var(--red);
  position: relative; opacity: 1; padding: 8px 16px; border-radius: 999px;
  background: var(--glass); transition: box-shadow .25s, background .25s;
}
.bar__contact .bar__cta::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(120deg, var(--accent), var(--edge-white) 35%, var(--edge-faint) 70%, color-mix(in srgb, var(--accent) 60%, transparent));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.bar__contact .bar__cta:hover, .bar__contact .bar__cta:focus-visible {
  background: var(--glass-hover); box-shadow: 0 0 18px -4px var(--accent);
}

/* ---------- Slogan line ---------- */
.page { max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding-block: clamp(36px, 6vw, 88px) clamp(40px, 6vw, 88px); }
.intro { display: grid; gap: clamp(12px, 1.4vw, 18px); margin-bottom: clamp(28px, 3.8vw, 52px); }
.slogan, .summary { text-shadow: 0 2px 14px rgba(0, 0, 0, 0.85); }
/* Summary runs the full width of the page; phones get the shorter version */
.summary {
  margin: 0; max-width: none; font-size: clamp(0.95rem, 1.15vw, 1.1875rem); line-height: 1.6;
  color: var(--text-muted); text-wrap: pretty;
}
.summary__short { display: none; }
/* Tagline: one line on desktop, free to wrap to two lines on phones */
.slogan {
  margin: 0; max-width: none; white-space: nowrap;
  font-size: var(--size-slogan); font-weight: 600; letter-spacing: -0.03em; line-height: 1.1;
  text-wrap: balance; color: var(--text);
}

/* ---------- Three glass cards ---------- */
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }

.card {
  --accent: var(--teal);
  position: relative; width: 100%; max-width: 100%; aspect-ratio: 1 / 1;
  padding: var(--bezel); border: 0; border-radius: var(--radius); cursor: pointer;
  color: inherit; font: inherit; text-align: left;
  background: linear-gradient(160deg, rgba(255,255,255,0.08), rgba(255,255,255,0.015) 45%, rgba(255,255,255,0.04)), var(--glass);
  backdrop-filter: blur(var(--glass-blur)) saturate(140%); -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(140%);
  box-shadow:
    0 0 40px -16px color-mix(in srgb, var(--accent) calc(var(--glow-strength) * 100%), transparent),
    0 24px 44px -22px rgba(0, 0, 0, 0.95);
  transition: box-shadow .4s ease, transform .4s ease, background .4s ease;
}
.card--reel { --accent: var(--orange); }
/* 1px gradient edge: accent color at the top-left, a white highlight, fading out, accent again at the far corner */
.card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; z-index: 3;
  background: linear-gradient(135deg,
    var(--accent) 0%, var(--edge-white) 18%, var(--edge-faint) 42%,
    var(--edge-faint) 62%, color-mix(in srgb, var(--accent) 70%, transparent) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: .8; transition: opacity .4s ease;
}
/* Soft reflection across the top of the glass */
.card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 3;
  background: radial-gradient(120% 60% at 20% -10%, rgba(255,255,255,.14), rgba(255,255,255,0) 55%);
}
.card.is-hot {
  transform: translateY(-2px);
  background: linear-gradient(160deg, rgba(255,255,255,0.10), rgba(255,255,255,0.02) 45%, rgba(255,255,255,0.05)), var(--glass-hover);
  box-shadow:
    0 0 46px -10px color-mix(in srgb, var(--accent) 70%, transparent),
    0 26px 48px -22px rgba(0, 0, 0, 0.95);
}
.card.is-hot::before { opacity: 1; }
.card.is-menu { z-index: 6; }

/* The window the video plays in, set inside the glass */
.card__screen {
  position: relative; display: block; width: 100%; height: 100%;
  border-radius: calc(var(--radius) - var(--bezel)); overflow: hidden; background: #050507;
  box-shadow: 0 0 0 1px rgba(255,255,255,.06);
}
.card video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; filter: grayscale(1) brightness(0.8) contrast(1.05);
  transition: opacity .5s ease, filter .6s ease, transform 1.2s cubic-bezier(.2,.7,.2,1);
}
.card.has-video video { opacity: 1; }
.card.is-hot video { filter: none; transform: scale(1.03); }
.card__tint {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: var(--tint); mix-blend-mode: color; opacity: var(--tint-strength); transition: opacity .6s ease;
}
.card.is-hot .card__tint { opacity: 0; }
.card__glare {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background:
    linear-gradient(118deg, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0.05) 30%, rgba(255,255,255,0) 30.4%),
    linear-gradient(118deg, rgba(255,255,255,0) 72%, rgba(255,255,255,0.05) 72.3%, rgba(255,255,255,0) 82%);
  transition: opacity .5s ease;
}
.card.is-hot .card__glare { opacity: .55; }
.card__shade {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(to bottom, rgba(0,0,0,.72) 0%, rgba(0,0,0,.18) 34%, rgba(0,0,0,0) 60%);
}
.card__label {
  position: absolute; left: clamp(14px, 1.4vw, 20px); top: clamp(12px, 1.3vw, 18px); z-index: 3;
  max-width: calc(100% - 32px);
  font-size: var(--size-card); font-weight: 700; letter-spacing: -0.02em; line-height: 1.15;
  background: linear-gradient(90deg, #ffffff 0%, #ffffff 35%, var(--accent) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  opacity: var(--label-resting-opacity); transition: opacity .45s ease;
  white-space: pre-wrap;
}
/* Whole-card click target (opens the pop-up player) */
.card__hit {
  position: absolute; inset: 0; z-index: 2; border: 0; padding: 0; margin: 0;
  background: none; border-radius: inherit; cursor: pointer;
}
.card__hit:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* Title + skill menu sit above the click target, top-left */
.card__head {
  position: absolute; z-index: 5;
  left: calc(var(--bezel) + clamp(14px, 1.4vw, 20px)); top: calc(var(--bezel) + clamp(12px, 1.3vw, 18px));
  max-width: calc(100% - 2 * var(--bezel) - 32px);
}
.card__head .card__label { position: static; max-width: none; display: inline-block; }
button.card__label { border: 0; padding: 4px 6px 4px 0; margin: 0; font-family: inherit; cursor: pointer; }
button.card__label:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.card--menu .card__label:not(.is-tri)::after {
  content: "▾"; display: inline-block; margin-left: .35em; font-size: .6em; vertical-align: .2em;
  color: var(--accent); -webkit-text-fill-color: var(--accent); transition: transform .25s ease;
}
.card.is-menu .card__label:not(.is-tri)::after { transform: rotate(180deg); }

.card__menu {
  list-style: none; margin: 8px 0 0; padding: 6px; min-width: 200px;
  border-radius: 12px; position: relative;
  background: rgba(14, 15, 21, 0.72);
  backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.12), 0 0 30px -10px color-mix(in srgb, var(--accent) 60%, transparent), 0 18px 36px -16px rgba(0,0,0,.9);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s;
}
.card.is-menu .card__menu { opacity: 1; visibility: visible; transform: none; transition: opacity .2s ease, transform .2s ease; }
.card__opt {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 8px 12px; border: 0; border-radius: 8px; background: none; cursor: pointer;
  font: inherit; font-size: clamp(0.9rem, 1vw, 1rem); font-weight: 500; letter-spacing: -0.01em;
  color: var(--text-muted); text-align: left; white-space: nowrap;
  transition: background .15s ease, color .15s ease;
}
.card__opt::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%; flex: none;
  background: var(--accent); opacity: 0; transition: opacity .15s ease;
}
.card__opt:hover, .card__opt:focus-visible { background: rgba(255,255,255,.07); color: var(--text); outline: none; }
.card__opt.is-current { color: var(--text); }
.card__opt.is-current::before { opacity: 1; }

/* Resting state: a right-facing triangle in the card's accent */
.card__label.is-tri { background: none; color: var(--accent); opacity: .9; font-size: calc(var(--size-card) * 0.9); }
.card.is-hot .card__label, .card.is-shown .card__label { opacity: 1; }

/* ---------- Client logos ---------- */
.clients { margin-top: clamp(56px, 8vw, 110px); }
.clients__title {
  margin: 0 0 22px; font-size: var(--size-small); font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted);
}
/* Logos keep their true proportions (sized by height only) and are spread evenly across the row */
.clients__row {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: clamp(20px, 3vw, 44px);
}
.client { flex: none; display: flex; align-items: center; justify-content: center; }
.client img {
  display: block; width: auto; max-width: none; height: var(--logo-h, clamp(48px, 5vw, 72px));
  object-fit: contain; opacity: .62; transition: opacity .3s ease;
}
/* Wordmarks are balanced by eye against the round seals */
.client--fox img    { --logo-h: clamp(28px, 2.9vw, 42px); }
.client--natgeo img { --logo-h: clamp(26px, 2.7vw, 40px); }
.client--espn img   { --logo-h: clamp(20px, 2.1vw, 30px); }
.client:hover img { opacity: 1; }

/* ---------- Pop-up player ---------- */
.modal {
  position: fixed; inset: 0; z-index: 100; display: none;
  align-items: center; justify-content: center;
  padding: max(16px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) max(16px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
  background: rgba(5, 5, 8, 0.94);
}
.modal.is-open { display: flex; }
.modal__inner { width: 100%; max-width: 1280px; }
.modal__frame {
  position: relative; aspect-ratio: 16 / 9; max-width: 100%; border-radius: var(--radius); overflow: hidden; background: #000;
  box-shadow: 0 0 0 1px rgba(255,255,255,.14), 0 0 50px -14px rgba(242,158,76,.45);
}
.modal__frame video { position: absolute; inset: 0; width: 100%; height: 100%; }
.modal__title { margin-top: 14px; font-size: 1.375rem; font-weight: 700; letter-spacing: -0.02em; }
.modal__desc { color: var(--text-muted); font-size: 0.9375rem; margin-top: 4px; }
.modal__more { color: var(--orange); text-decoration: none; white-space: nowrap; }
.modal__more:hover, .modal__more:focus-visible { text-decoration: underline; }
.modal__fallback { position: absolute; inset: 0; display: grid; place-items: center; }
.modal__fallback video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .45; }
.modal__watch {
  position: relative; padding: 14px 26px; border-radius: 999px;
  background: var(--orange); color: #111; font-weight: 700; font-size: 1.0625rem; text-decoration: none;
  box-shadow: 0 10px 30px -10px rgba(0,0,0,.8);
}
.modal__watch:hover, .modal__watch:focus-visible { filter: brightness(1.08); outline: 2px solid #fff; outline-offset: 3px; }
.modal__close {
  position: absolute; top: calc(10px + env(safe-area-inset-top, 0px)); right: calc(16px + env(safe-area-inset-right, 0px)); z-index: 2;
  background: none; border: 0; color: var(--text); font-size: 2rem; line-height: 1; cursor: pointer; opacity: .8;
}
.modal__close:hover, .modal__close:focus-visible { opacity: 1; }

/* ---------- Footer ---------- */
.foot { position: relative; margin-top: clamp(40px, 6vw, 90px); }
.foot::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, transparent 0%, var(--green) 20%, rgba(255,255,255,.5) 40%, var(--teal) 60%, var(--orange) 82%, transparent 100%);
  opacity: .55;
}
.foot::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: var(--glow-reach); z-index: -1; pointer-events: none;
  background: radial-gradient(60% 100% at 55% 100%, color-mix(in srgb, var(--teal) calc(var(--glow-bottom) * 100%), transparent), transparent 100%);
  -webkit-mask-image: var(--glow-fade-up); mask-image: var(--glow-fade-up);
}
.foot__inner {
  max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding-block: 28px 36px;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px;
  color: var(--text-muted); font-size: var(--size-small);
}
.foot a:hover { color: var(--text); }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) { .bar__role { display: none; } }
@media (max-width: 760px) {
  .grid { grid-template-columns: minmax(0, 1fr); max-width: 520px; }
  .slogan { white-space: normal; max-width: 18ch; }
  .summary__full { display: none; }
  .summary__short { display: inline; }
  .clients__row { justify-content: center; gap: 22px 28px; }
}
@media (max-width: 600px) {
  .bar__contact .bar__email { display: none; }
  .bar__name { font-size: 1.0625rem; }
  .bar__contact { gap: 14px; font-size: 0.875rem; }
  .bar__contact .bar__cta { padding: 7px 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .card, .card video, .card::before, .card__label { transition: none; }
  .card.is-hot { transform: none; }
}
