/* ============================================================
   Delicious · Bakery & Café, Los Cristianos
   Chalkboard brand system → website
   Colours, type & textures lifted from the brand book (brand.css)
   ============================================================ */

:root {
  /* 4 primary brand colours */
  --slate:       #1B1F22;  /* board / dark base */
  --chalk:       #F2EFE6;  /* warm chalk white */
  --chalk-blue:  #7DD0E8;  /* primary painted accent */
  --peach:       #F2B87D;  /* warm secondary */
  --mint:        #A7D7A1;  /* supporting */

  --chalk-dim:   rgba(242, 239, 230, 0.68);
  --chalk-faint: rgba(242, 239, 230, 0.38);
  --chalk-line:  rgba(242, 239, 230, 0.20);

  --card:        #1a1d1f;
  --card-head:   #15181a;
  --deep:        #0e1113;

  /* Type */
  --f-display:  "Permanent Marker", "Bradley Hand", cursive;
  --f-headline: "Anton", "Oswald", sans-serif;
  --f-label:    "Oswald", "Bebas Neue", sans-serif;
  --f-script:   "Caveat", "Kalam", cursive;
  --f-body:     "Cabin", "Inter", system-ui, sans-serif;

  --maxw: 1320px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--chalk);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;

  /* Chalkboard texture as a FIXED page background (never clips scroll) */
  background-color: #1e2528;
  background-image:
    radial-gradient(ellipse 60% 18% at 35% 38%, rgba(255,255,255,0.045), transparent 70%),
    radial-gradient(ellipse 45% 14% at 70% 65%, rgba(255,255,255,0.04),  transparent 70%),
    radial-gradient(ellipse 50% 12% at 20% 78%, rgba(255,255,255,0.03),  transparent 70%),
    radial-gradient(ellipse at center, transparent 40%, rgba(0,0,0,0.35) 100%),
    linear-gradient(170deg, #26302f 0%, #1a2123 50%, #141a1c 100%);
  background-attachment: fixed;
  background-size: cover;
}
/* fixed grain overlay — purely decorative, no layout impact */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='300' height='300'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' seed='4'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.22 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  opacity: 0.20; mix-blend-mode: screen;
}

a { color: inherit; }

img { max-width: 100%; display: block; }

/* ============ Chalkboard texture (reusable) ============ */
.board {
  position: relative;
  background-color: #1e2528;
  background-image:
    radial-gradient(ellipse 60% 18% at 35% 38%, rgba(255,255,255,0.045), transparent 70%),
    radial-gradient(ellipse 45% 14% at 70% 65%, rgba(255,255,255,0.04),  transparent 70%),
    radial-gradient(ellipse 50% 12% at 20% 78%, rgba(255,255,255,0.03),  transparent 70%),
    radial-gradient(ellipse at center, transparent 40%, rgba(0,0,0,0.35) 100%),
    linear-gradient(170deg, #26302f 0%, #1a2123 50%, #141a1c 100%);
  overflow: hidden;
  isolation: isolate;
}
.board::before {
  content: ""; position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='300' height='300'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' seed='4'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.22 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  opacity: 0.30; mix-blend-mode: screen; pointer-events: none; z-index: 1;
}
.board::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 12% 30%, rgba(255,255,255,0.07), transparent 1.2%),
    radial-gradient(circle at 78% 14%, rgba(255,255,255,0.05), transparent 0.8%),
    radial-gradient(circle at 45% 88%, rgba(255,255,255,0.05), transparent 1.4%),
    radial-gradient(circle at 88% 62%, rgba(255,255,255,0.05), transparent 1%),
    radial-gradient(circle at 22% 72%, rgba(255,255,255,0.04), transparent 1.2%);
  pointer-events: none; z-index: 1;
}
.board > * { position: relative; z-index: 2; }

/* ============ Type helpers ============ */
.eyebrow {
  font-family: var(--f-label);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 12px;
  color: var(--chalk-faint);
}
.script  { font-family: var(--f-script); color: var(--chalk-dim); }
.label   { font-family: var(--f-label); text-transform: uppercase; letter-spacing: 0.14em; }
.headline{ font-family: var(--f-headline); text-transform: uppercase; letter-spacing: 0.02em; line-height: 0.92; }

.painted-underline { display: inline-block; position: relative; }
.painted-underline::after {
  content: ""; position: absolute; left: -3%; right: -3%; bottom: -10px; height: 4px;
  background: currentColor; border-radius: 2px;
  clip-path: polygon(0 50%, 4% 0, 10% 80%, 18% 20%, 25% 90%, 35% 10%, 45% 80%, 55% 20%, 65% 75%, 75% 30%, 85% 85%, 92% 25%, 100% 50%);
  opacity: 0.9;
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ============ Buttons ============ */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--f-label); text-transform: uppercase; letter-spacing: 0.14em;
  font-size: 13px; font-weight: 600;
  padding: 13px 22px; border-radius: 7px;
  border: 1.5px solid var(--chalk-blue); color: var(--slate);
  background: var(--chalk-blue); cursor: pointer; text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(125,208,232,0.25); }
.btn.ghost { background: transparent; color: var(--chalk-blue); }
.btn.ghost:hover { background: rgba(125,208,232,0.10); box-shadow: none; }
.btn.peach { background: var(--peach); border-color: var(--peach); color: var(--slate); }
.btn.peach:hover { box-shadow: 0 10px 22px rgba(242,184,125,0.25); }

/* ============ Nav ============ */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(14,17,19,0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--chalk-line);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 80px; }
.nav-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.nav-logo .pill { background: #15191c; padding: 7px 11px; border-radius: 5px; box-shadow: inset 0 1px 0 rgba(255,255,255,0.06); }
.nav-logo .pill img { height: 44px; }
.nav-logo .tag { font-family: var(--f-label); text-transform: uppercase; letter-spacing: 0.2em; font-size: 10px; color: var(--chalk-faint); }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a {
  font-family: var(--f-label); text-transform: uppercase; letter-spacing: 0.14em;
  font-size: 13px; text-decoration: none; color: var(--chalk-dim);
  transition: color .15s ease;
}
.nav-links a:hover { color: var(--chalk-blue); }
.nav-links .btn { color: var(--slate); }
.nav-toggle { display: none; background: none; border: 0; color: var(--chalk); cursor: pointer; padding: 6px; }
.nav-toggle svg { width: 26px; height: 26px; }

/* ============ Hero ============ */
.hero { position: relative; min-height: 86vh; display: flex; align-items: center; overflow: hidden; }
.hero .wrap { position: relative; z-index: 2; width: 100%; padding-top: 60px; padding-bottom: 60px; }

/* Hero background video + scrim */
.hero-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero-bg video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity 1.2s ease;
}
.hero-bg video.ready { opacity: 0.45; }
.hero-scrim {
  position: absolute; inset: 0;
  /* keep text legible: darker on the left where the headline sits */
  background:
    linear-gradient(90deg, rgba(14,17,19,0.92) 0%, rgba(14,17,19,0.72) 42%, rgba(14,17,19,0.45) 100%),
    linear-gradient(0deg, rgba(14,17,19,0.85) 0%, transparent 40%);
}
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; }

.open-flag {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--f-label); text-transform: uppercase; letter-spacing: 0.18em;
  font-size: 12px; color: var(--mint);
  border: 1px solid var(--chalk-line); border-radius: 999px;
  padding: 7px 14px; margin-bottom: 22px;
}
.open-flag .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 3px rgba(167,215,161,0.2); }
.open-flag.shut { color: var(--peach); }
.open-flag.shut .dot { background: var(--peach); box-shadow: 0 0 0 3px rgba(242,184,125,0.2); }

.hero h1 {
  font-family: var(--f-display);
  font-size: clamp(46px, 7vw, 92px);
  line-height: 0.98; margin: 0 0 6px;
  color: var(--chalk); transform: rotate(-1deg);
}
.hero h1 .blue { color: var(--chalk-blue); display: block; }
.hero .sub {
  font-family: var(--f-script); font-size: clamp(22px, 3vw, 30px);
  color: var(--peach); transform: rotate(-1deg); margin: 14px 0 26px;
}
.hero p.lead { color: var(--chalk-dim); max-width: 46ch; margin: 0 0 30px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-card {
  border-radius: 16px; border: 8px solid #5b3f2d;
  box-shadow: 0 30px 60px rgba(0,0,0,0.5), inset 0 0 0 2px rgba(0,0,0,0.4);
  min-height: 360px; padding: 30px;
  display: flex; flex-direction: column; justify-content: space-between; text-align: center;
}
.hero-card .top .eyebrow { color: var(--chalk-blue); }
.hero-card .big {
  font-family: var(--f-display); font-size: clamp(34px, 5vw, 46px);
  line-height: 0.98; margin-top: 12px; transform: rotate(-1deg); color: var(--chalk);
}
.hero-card .mid { font-family: var(--f-script); font-size: 22px; color: var(--peach); }
.hero-card .bot { font-family: var(--f-label); text-transform: uppercase; letter-spacing: 0.18em; font-size: 11px; color: var(--chalk-faint); }

/* ============ Section scaffolding ============ */
.section { padding: 78px 0; }
.section.alt { background: #0b0e10; }
.section-head { margin-bottom: 40px; }
.section-head .eyebrow { display: block; margin-bottom: 10px; }
.section-head h2 {
  font-family: var(--f-headline); text-transform: uppercase;
  font-size: clamp(32px, 5vw, 52px); line-height: 0.95; margin: 0; letter-spacing: 0.01em;
}
.section-head h2 .blue { color: var(--chalk-blue); }
.section-head .desc { font-family: var(--f-script); font-size: 21px; color: var(--chalk-dim); margin-top: 12px; }

/* ============ Values strip ============ */
.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.value {
  background: var(--card); border: 1px solid var(--chalk-line); border-radius: 12px;
  padding: 24px 22px; text-align: center;
}
.value .word { font-family: var(--f-display); font-size: 30px; color: var(--chalk-blue); transform: rotate(-2deg); line-height: 0.95; }
.value .sub { font-family: var(--f-script); font-size: 16px; color: var(--chalk-dim); margin-top: 8px; }

/* ============ Menu ============ */
.menu-tabs { display: flex; gap: 12px; margin-bottom: 28px; flex-wrap: wrap; }
.menu-tab {
  font-family: var(--f-label); text-transform: uppercase; letter-spacing: 0.16em;
  font-size: 14px; padding: 11px 26px; border-radius: 8px;
  background: transparent; color: var(--chalk-dim);
  border: 1.5px solid var(--chalk-line); cursor: pointer;
  transition: all .15s ease;
}
.menu-tab:hover { color: var(--chalk); border-color: var(--chalk-faint); }
.menu-tab.active { background: var(--chalk-blue); color: var(--slate); border-color: var(--chalk-blue); }
.menu-served { font-family: var(--f-script); font-size: 19px; color: var(--peach); margin-bottom: 26px; }

.menu-columns { columns: 2; column-gap: 30px; }
.menu-group {
  break-inside: avoid; -webkit-column-break-inside: avoid;
  background: var(--card); border: 1px solid var(--chalk-line); border-radius: 12px;
  padding: 22px 24px; margin-bottom: 30px;
}
.menu-group h3 {
  font-family: var(--f-display); color: var(--chalk-blue); font-size: 26px;
  margin: 0 0 4px; transform: rotate(-0.8deg); letter-spacing: 0.01em;
}
.menu-group .gnote { font-family: var(--f-script); font-size: 17px; color: var(--peach); margin-bottom: 6px; }
.menu-group .gblurb { font-size: 14.5px; color: var(--chalk-dim); margin: 4px 0 16px; line-height: 1.4; }

.menu-item {
  display: flex; align-items: baseline; gap: 10px;
  padding: 9px 0; border-bottom: 1px dotted var(--chalk-line);
}
.menu-item:last-child { border-bottom: 0; }
.menu-item .mi-name { font-weight: 500; color: var(--chalk); }
.menu-item .mi-name .badge {
  display: inline-block; vertical-align: middle; margin-left: 7px;
  font-family: var(--f-label); text-transform: uppercase; letter-spacing: 0.08em;
  font-size: 9px; padding: 2px 6px; border-radius: 4px; line-height: 1.4;
}
.menu-item .badge.v  { background: rgba(167,215,161,0.16); color: var(--mint); border: 1px solid rgba(167,215,161,0.4); }
.menu-item .badge.gf { background: rgba(125,208,232,0.14); color: var(--chalk-blue); border: 1px solid rgba(125,208,232,0.4); }
.menu-item .mi-desc { display: block; font-size: 13.5px; color: var(--chalk-dim); font-weight: 400; margin-top: 2px; line-height: 1.35; }
.menu-item .mi-dots { flex: 1 1 auto; border-bottom: 1px dotted var(--chalk-line); transform: translateY(-4px); min-width: 14px; }
.menu-item .mi-price {
  font-family: var(--f-headline); font-size: 18px; color: var(--peach);
  white-space: nowrap; letter-spacing: 0.02em;
}
.menu-foot {
  margin-top: 8px; font-family: var(--f-label); text-transform: uppercase;
  letter-spacing: 0.16em; font-size: 11px; color: var(--chalk-faint); text-align: center;
}

/* ============ About ============ */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.about-body p { color: var(--chalk-dim); margin: 0 0 18px; }
.about-body p strong { color: var(--chalk); font-weight: 600; }
.about-quote {
  font-family: var(--f-display); font-size: clamp(28px, 4vw, 40px); color: var(--chalk);
  line-height: 1.05; transform: rotate(-1deg); margin: 0 0 18px;
}
.about-quote .blue { color: var(--chalk-blue); }
.about-side { display: grid; gap: 16px; }
.stat-card {
  background: var(--card); border: 1px solid var(--chalk-line); border-radius: 12px; padding: 24px;
}
.stat-card .stars { color: var(--peach); font-size: 22px; letter-spacing: 3px; }
.stat-card .big { font-family: var(--f-headline); font-size: 44px; line-height: 1; margin: 6px 0; }
.stat-card .sub { color: var(--chalk-dim); font-size: 14px; }

/* ============ Visit ============ */
.visit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.visit-card { background: var(--card); border: 1px solid var(--chalk-line); border-radius: 14px; overflow: hidden; }
.visit-card .vc-body { padding: 30px; }
.info-row { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--chalk-line); }
.info-row:last-child { border-bottom: 0; }
.info-row .ico { color: var(--chalk-blue); flex: 0 0 auto; margin-top: 2px; }
.info-row .ico svg { width: 22px; height: 22px; }
.info-row .k { font-family: var(--f-label); text-transform: uppercase; letter-spacing: 0.16em; font-size: 11px; color: var(--chalk-faint); margin-bottom: 3px; }
.info-row .v { color: var(--chalk); }
.info-row .v a { color: var(--chalk-blue); text-decoration: none; }
.info-row .v a:hover { text-decoration: underline; }
.hours-list { list-style: none; margin: 0; padding: 0; }
.hours-list li { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px dotted var(--chalk-line); }
.hours-list li:last-child { border-bottom: 0; }
.hours-list .day { color: var(--chalk-dim); }
.hours-list .hrs { font-family: var(--f-label); letter-spacing: 0.06em; color: var(--chalk); }
.hours-list li.today .day, .hours-list li.today .hrs { color: var(--chalk-blue); }
.map-embed { width: 100%; height: 100%; min-height: 420px; border: 0; filter: grayscale(0.2) contrast(1.05); }
.map-frame { border-radius: 14px; overflow: hidden; border: 1px solid var(--chalk-line); min-height: 420px; }

/* ============ Footer ============ */
.foot { border-top: 1px solid var(--chalk-line); padding: 54px 0 34px; background: #0b0e10; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; }
.foot .pill { background: #15191c; padding: 9px 13px; border-radius: 6px; display: inline-block; }
.foot .pill img { height: 38px; }
.foot p { color: var(--chalk-dim); font-size: 14.5px; margin: 14px 0 0; max-width: 34ch; }
.foot h4 { font-family: var(--f-label); text-transform: uppercase; letter-spacing: 0.18em; font-size: 12px; color: var(--chalk-faint); margin: 0 0 14px; }
.foot a { color: var(--chalk-dim); text-decoration: none; display: block; padding: 4px 0; font-size: 14.5px; }
.foot a:hover { color: var(--chalk-blue); }
.foot-base {
  margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--chalk-line);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  font-family: var(--f-label); text-transform: uppercase; letter-spacing: 0.18em; font-size: 11px; color: var(--chalk-faint);
}

/* ============ Reveal-on-scroll ============ */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ============ Responsive ============ */
/* Tablet / small-laptop band: stack the big 2-col layouts but keep
   multi-column content that still has room (menu, footer). */
@media (max-width: 900px) {
  .hero-grid, .about-grid, .visit-grid { grid-template-columns: 1fr; }
  .hero-card { min-height: 280px; }
  .values { grid-template-columns: 1fr 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; position: absolute; top: 80px; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: rgba(14,17,19,0.97); border-bottom: 1px solid var(--chalk-line); padding: 12px 24px 20px;
  }
  .nav-links.open a { padding: 12px 0; width: 100%; border-bottom: 1px solid var(--chalk-line); }
  .nav-links.open .btn { margin-top: 12px; }
  .nav-toggle { display: block; }
}
/* below ~700px the menu's two columns get too narrow → single column */
@media (max-width: 700px) {
  .menu-columns { columns: 1; }
  .foot-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .values { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .btn:hover { transform: none; }
}

/* ============ Catering & events (highlighted band) ============ */
.catering-band { border-radius: 18px; border: 1px solid var(--chalk-line); padding: 52px 44px; }
.catering-band .eyebrow { display: block; color: var(--chalk-blue); }
.cb-title { font-family: var(--f-headline); text-transform: uppercase; letter-spacing: 0.01em; font-size: clamp(34px, 5.5vw, 58px); line-height: 0.95; margin: 12px 0 0; }
.cb-title .blue { color: var(--chalk-blue); }
.cb-pitch { font-family: var(--f-display); color: var(--peach); font-size: clamp(24px, 4vw, 40px); transform: rotate(-1.5deg); margin: 12px 0 16px; }
.cb-lead { color: var(--chalk-dim); max-width: 62ch; margin: 0 0 32px; }
.catering-tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.tier { background: rgba(0,0,0,0.30); border: 1px solid var(--chalk-line); border-radius: 12px; padding: 24px; }
.tier-name { font-family: var(--f-display); color: var(--chalk-blue); font-size: 24px; transform: rotate(-1deg); line-height: 1; }
.tier-sub { color: var(--chalk-dim); font-size: 14.5px; line-height: 1.45; margin: 14px 0; }
.tier-for { font-family: var(--f-label); text-transform: uppercase; letter-spacing: 0.12em; font-size: 10.5px; color: var(--peach); border-top: 1px dotted var(--chalk-line); padding-top: 12px; }
.cb-cta { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; margin-top: 32px; }
.cb-cta-line { font-family: var(--f-script); font-size: 22px; color: var(--chalk); flex: 1 1 320px; transform: rotate(-0.5deg); }
.cb-foot { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--chalk-line); color: var(--chalk-dim); font-size: 14.5px; }
.cb-foot strong { color: var(--chalk); }
/* tablet: 3 tiers get tight once the page is stacking → go 1-col */
@media (max-width: 900px) {
  .catering-tiers { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .catering-band { padding: 34px 22px; }
}

/* ============ Clip gallery (reels) ============ */
/* Flex-wrap so any number of reels stays centred with no orphan rows.
   Fixed reel width + capped height keeps portrait clips tidy on widescreen. */
.clip-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; }
.clip-card {
  position: relative; aspect-ratio: 9 / 16; border-radius: 14px; overflow: hidden;
  border: 1px solid var(--chalk-line); background: #0f1113; cursor: pointer; padding: 0;
  display: block;
  flex: 0 1 300px; max-width: 320px;
  max-height: min(72vh, 560px);
}
.clip-card img.poster, .clip-card video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block;
}
.clip-card .play {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; z-index: 2;
  transition: opacity .2s ease;
}
.clip-card .play svg { width: 58px; height: 58px; filter: drop-shadow(0 6px 14px rgba(0,0,0,0.55)); }
.clip-card .cap {
  position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 2; text-align: left;
  font-family: var(--f-display); color: var(--chalk); font-size: 18px; line-height: 1; transform: rotate(-2deg);
  text-shadow: 0 2px 10px rgba(0,0,0,0.65);
}
.clip-card::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(0,0,0,0.15) 0%, transparent 35%, transparent 60%, rgba(0,0,0,0.5) 100%);
}
.clip-card.playing .play, .clip-card.playing .cap, .clip-card.playing::after { opacity: 0; pointer-events: none; }
.clip-card.playing video { z-index: 3; }
.clip-note {
  text-align: center; margin-top: 20px;
  font-family: var(--f-label); text-transform: uppercase; letter-spacing: 0.16em; font-size: 11px; color: var(--chalk-faint);
}
/* phones: two reels per row, each taking just under half the width */
@media (max-width: 620px) {
  .clip-card { flex: 0 1 calc(50% - 9px); max-width: calc(50% - 9px); max-height: none; }
}
@media (max-width: 380px) { .clip-card .cap { font-size: 15px; } }

/* ============ Wide & ultra-wide screens (placed last to win the cascade) ============ */
@media (min-width: 1500px) {
  :root { --maxw: 1500px; }
  body { font-size: 18px; }
  .clip-card { flex-basis: 340px; max-width: 360px; }
}
@media (min-width: 1900px) {
  :root { --maxw: 1720px; }
  .clip-card { flex-basis: 380px; max-width: 400px; max-height: min(74vh, 640px); }
}
