/* ============================================================
   Sivakumar — Personal Portfolio
   Contact page only: "The Honeycomb". Loaded AFTER css/style.css, so
   the shared dark-sunset theme, loader, cursor, header and footer are
   untouched. Every class here is either new (hc-*, c-*, brief-*) or
   scoped to body[data-page="contact"].
   Sections: Intro, Scene + background, Branch, Comb + cells, Bees,
   Flight layer + card, Buttons, CTA + quick row, Brief popup,
   Responsive, Reduced motion.
   ============================================================ */

:root {
  --c-gold: #f5b83d;
  --c-orange: #ff8a3d;
  --c-ember: #ff6a2b;
  --c-line: rgba(245, 184, 61, 0.35);
  --c-ink: #1a1206;
  --c-brown: #3a2210;
}

/* ---------- Intro ---------- */
.c-intro { padding: clamp(3rem, 7vw, 5rem) 0 0.5rem; text-align: center; }
.c-eyebrow {
  margin: 0 0 1rem;
  font: 700 0.78rem/1 "Inter", sans-serif;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--c-gold);
}
.c-title {
  margin: 0 0 1rem;
  font: 700 clamp(2.8rem, 7vw, 5.2rem) / 1.02 "Playfair Display", serif;
  color: #f3ebe0;
}
.c-line { max-width: 560px; margin: 0 auto; color: var(--muted); font-size: 1.08rem; }
.js .c-intro > * { opacity: 0; transform: translateY(24px); }
.c-ready .c-intro > * {
  animation: cRise 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) both;
  animation-delay: calc(var(--i, 0) * 120ms);
}
@keyframes cRise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/* ---------- Scene + background ---------- */
.scene {
  position: relative;
  overflow: hidden; /* NB: no mask/isolation here, they would clip the mobile bottom-sheet card */
  width: 100%;
  margin: 0;
  min-height: 640px; /* js/contact.js sets the real height from the comb size */
  padding: 0;
}
.hc-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.scene-bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 8%, #000 92%, transparent);
  background:
    radial-gradient(ellipse 36% 48% at 34% 56%, rgba(245, 184, 61, 0.12), transparent 70%),
    radial-gradient(ellipse 42% 42% at 84% 88%, rgba(255, 106, 43, 0.1), transparent 70%);
}
/* a slow "god ray" falling diagonally from the top left */
.god-ray {
  position: absolute; top: -20%; left: -6%; width: 42%; height: 160%;
  background: linear-gradient(90deg, transparent, rgba(255, 214, 140, 0.5) 50%, transparent);
  transform: rotate(-26deg); transform-origin: 0 0;
  filter: blur(30px);
  opacity: 0.25;
  animation: cRay 8s ease-in-out infinite alternate;
}
@keyframes cRay { from { opacity: 0.25; } to { opacity: 0.4; } }
.pollen { position: absolute; inset: 0; width: 100%; height: 100%; filter: blur(1px); }

/* layers inside the scene */
.hc-branch { position: absolute; left: 0; top: 0; z-index: 2; height: auto; overflow: visible; pointer-events: none; }
.hc-comb-pos { position: absolute; z-index: 3; pointer-events: none; }
.hc-ambient { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
.fly-layer { position: absolute; inset: 0; z-index: 6; pointer-events: none; }
.c-sound {
  position: absolute; right: 14px; bottom: 14px; z-index: 5;
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--c-line); background: rgba(20, 14, 10, 0.7);
  color: #f3ebe0; font-size: 1rem; cursor: pointer;
  transition: border-color 0.2s ease;
}
.c-sound:hover { border-color: var(--c-gold); }
.c-sound:focus-visible { outline: 2px solid var(--c-gold); outline-offset: 3px; }
.c-noscript { position: absolute; left: 1rem; top: 1rem; z-index: 8; color: var(--muted); list-style: none; padding: 0; }

/* ---------- The branch (grows in, leaves pop, leaves rustle) ---------- */
.hc-grow { stroke-dasharray: 1 2; stroke-dashoffset: 1; }
.is-grown .hc-grow { stroke-dashoffset: 0; transition: stroke-dashoffset 1.2s cubic-bezier(0.45, 0.1, 0.25, 1); }
.hc-leaf-pop { transform: scale(0); }
.is-grown .hc-leaf-pop { animation: cPop 0.55s cubic-bezier(0.2, 1.4, 0.4, 1) forwards; animation-delay: var(--d, 1000ms); }
@keyframes cPop { to { transform: scale(1); } }
.hc-leaf-rustle { animation: cRustle 4s ease-in-out infinite; }
@keyframes cRustle { 0%, 100% { transform: rotate(-3deg); } 50% { transform: rotate(3deg); } }
.hc-leaf { stroke: var(--c-gold); stroke-opacity: 0.5; stroke-width: 1.1; }
.hc-leaf-vein { fill: none; stroke: #1d2510; stroke-opacity: 0.6; stroke-width: 1.2; }

/* ---------- The comb ---------- */
.hc-comb-pos { width: 560px; height: 560px; }
.hc-comb-drop { width: 100%; height: 100%; opacity: 0; }
.hc-comb {
  position: relative; width: 560px; height: 560px;
  transform-origin: 280px 0; /* pendulum pivot: where the stem meets the branch */
  filter: drop-shadow(0 0 40px rgba(245, 184, 61, 0.35));
  will-change: transform;
}
.hc-comb-back { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.hc-drips { position: absolute; inset: 0; pointer-events: none; }
.hc-drop { position: absolute; width: 12px; height: 18px; transform-origin: 50% 0; transform: scaleY(0); }
.hc-drop svg { display: block; }

/* one cell = one button. The hex path is the only clickable area. */
.hc-cell {
  position: absolute; width: 140px; height: 140px; margin: 0; padding: 0;
  border: 0; background: none; font: inherit; color: var(--c-brown);
  cursor: pointer; outline: none; pointer-events: none;
  -webkit-tap-highlight-color: transparent;
  --k: 1; --ty: 0px; --hs: 1;
  transform: translateY(var(--ty)) scale(calc(var(--k) * var(--hs)));
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.hc-cell-big { --k: 1.25; z-index: 2; }
.hc-cell:hover, .hc-cell:focus-visible { --ty: -4px; --hs: 1.06; z-index: 3; }
.hc-cell:active, .hc-cell.is-squash { --hs: 0.96; transition-duration: 0.1s; }
.hc-cell-svg { display: block; width: 100%; height: 100%; overflow: visible; transition: filter 0.25s ease; }
.hc-cell-svg * { pointer-events: auto; }
.hc-cell-svg .hc-focus { pointer-events: none; }

.hc-rim { fill: none; stroke: #8a4e10; stroke-width: 3; stroke-linejoin: round; transition: stroke 0.25s ease; }
.hc-rim-hi { fill: none; stroke: #ffe3a3; stroke-opacity: 0.4; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hc-gloss { fill: #fff; fill-opacity: 0.18; }
.hc-ico { color: var(--c-brown); overflow: visible; }
.hc-lbl { font: 700 9px "Inter", sans-serif; letter-spacing: 0.02em; fill: var(--c-brown); }
.hc-lbl-big { font-size: 8px; }
.hc-focus { fill: none; stroke: var(--c-gold); stroke-width: 2; opacity: 0; }
.hc-cell:focus-visible .hc-focus { opacity: 1; }

/* centre cell: brighter, with a slow glow pulse */
.hc-cell-big .hc-cell-svg { filter: brightness(1.08) saturate(1.1); }
.hc-pulse {
  position: absolute; inset: -6%; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(255, 200, 90, 0.65), transparent 66%);
  opacity: 0.4; animation: cPulse 2.4s ease-in-out infinite alternate;
}
@keyframes cPulse { from { opacity: 0.4; } to { opacity: 0.8; } }

/* hover / focus: rim brightens, warm glow, a tiny bee peeks out of the hole */
.hc-cell:hover .hc-cell-svg, .hc-cell:focus-visible .hc-cell-svg { filter: drop-shadow(0 0 10px rgba(255, 190, 80, 0.75)) brightness(1.05); }
.hc-cell:hover .hc-rim, .hc-cell:focus-visible .hc-rim { stroke: #e8a020; }
.hc-peek { transform: translateY(26px); transition: transform 0.32s cubic-bezier(0.2, 0.8, 0.2, 1); }
.hc-cell:hover .hc-peek, .hc-cell:focus-visible .hc-peek { transform: translateY(1px); }
.hc-eye { transform-box: fill-box; transform-origin: 50% 50%; }
.hc-cell:hover .hc-eye, .hc-cell:focus-visible .hc-eye { animation: cBlink 2.2s ease-in-out infinite; }
@keyframes cBlink { 0%, 88%, 100% { transform: scaleY(1); } 93% { transform: scaleY(0.1); } }

/* ---- engraved wax details ---- */
.hc-rim { stroke: #5a300a; stroke-opacity: 0.6; }
.hc-ico-hi { color: #fff1c2; opacity: 0.6; }
.hc-lbl-hi { fill: #fff1c2; opacity: 0.55; }
.hc-ridge { fill: none; stroke: #a86a1b; stroke-opacity: 0.28; stroke-width: 1.4; stroke-linecap: round; }
.hc-hole-ring { fill: none; stroke: var(--c-gold); stroke-width: 1.4; stroke-opacity: 0; transition: stroke-opacity 0.3s ease; }
.hc-cell.is-visited .hc-hole-ring { stroke-opacity: 0.6; }

/* ---- card is out: the hole is empty (the bee has left), gold outline ---- */
.hc-cell.is-active .hc-cell-svg { filter: brightness(0.82) drop-shadow(0 0 7px rgba(245, 184, 61, 0.85)); }
.hc-cell.is-active .hc-rim { stroke: var(--c-gold); stroke-opacity: 1; }
.hc-cell.is-active .hc-peek { animation: none !important; transform: translateY(32px) !important; }

/* ---- curious bees: after its card was shown, a bee keeps peeking out ---- */
.hc-peek { transform-box: fill-box; transform-origin: 50% 100%; }
.hc-eyes { transform: translate(var(--ex, 0px), var(--ey, 0px)); } /* eyes follow the cursor */
.hc-cell.is-visited .hc-peek { animation: cCurious 5.4s ease-in-out infinite; animation-delay: var(--cd, 0s); }
@keyframes cCurious {
  0%, 52% { transform: translateY(26px); }
  60% { transform: translateY(1px); }
  66% { transform: translateY(1px) rotate(-9deg); }
  72% { transform: translateY(1px) rotate(9deg); }
  78% { transform: translateY(1px) rotate(0); }
  90%, 100% { transform: translateY(26px); }
}
.hc-cell.is-visited:hover .hc-peek, .hc-cell.is-visited:focus-visible .hc-peek, .hc-cell.is-eager .hc-peek {
  animation: none; transform: translateY(-1px);
}
.hc-ant { transform-box: fill-box; transform-origin: 50% 100%; }
.hc-cell:hover .hc-ant, .hc-cell:focus-visible .hc-ant, .hc-cell.is-visited .hc-ant, .hc-cell.is-eager .hc-ant { animation: cAnt 0.45s ease-in-out infinite alternate; }
.hc-ant-r { animation-delay: -0.2s !important; }
@keyframes cAnt { from { transform: rotate(-14deg); } to { transform: rotate(14deg); } }
/* right after its card is closed the bee pops out and the whole cell hops, twice */
.hc-cell.is-eager { animation: cHop 0.8s ease-out 3; }
@keyframes cHop { 0%, 100% { translate: 0 0; } 28% { translate: 0 -7px; } 52% { translate: 0 0; } 72% { translate: 0 -3px; } }

.hc-bubble {
  position: absolute; left: 0; top: 0; z-index: 2; opacity: 0; pointer-events: none; white-space: nowrap;
  padding: 0.38rem 0.75rem; border-radius: 999px;
  background: linear-gradient(135deg, #ffd27a, #e9a637); color: var(--c-brown);
  font: 700 0.8rem/1 "Inter", sans-serif; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  transition: opacity 0.3s ease;
}
.hc-bubble::after {
  content: ""; position: absolute; left: 50%; bottom: -4px; width: 9px; height: 9px;
  background: #e9a637; transform: translateX(-50%) rotate(45deg); border-radius: 0 0 2px 0;
}

.hc-tip {
  position: absolute; left: 50%; top: -4px; z-index: 5;
  transform: translate(-50%, 6px); white-space: nowrap; pointer-events: none;
  padding: 0.4rem 0.7rem; border-radius: 999px;
  background: rgba(20, 14, 10, 0.92); border: 1px solid var(--c-line);
  color: #f6e6c4; font: 600 0.74rem/1 "Inter", sans-serif;
  opacity: 0; transition: opacity 0.2s ease, transform 0.25s ease;
}
.hc-cell:hover .hc-tip, .hc-cell:focus-visible .hc-tip { opacity: 1; transform: translate(-50%, -4px); }
.hc-cell.is-active .hc-tip { opacity: 0; }
@media (hover: none) { .hc-tip { display: none; } }

/* ---------- Bees ---------- */
.hc-bee { position: absolute; left: 0; top: 0; pointer-events: none; will-change: transform; }
.hc-bee-bob { width: 100%; height: 100%; animation: cBob 0.18s ease-in-out infinite alternate; }
@keyframes cBob { from { transform: translateY(-1px); } to { transform: translateY(1px); } }
.hc-bee.is-hover .hc-bee-bob { animation: cHover 1.6s ease-in-out infinite alternate; }
@keyframes cHover { from { transform: translateY(-3px); } to { transform: translateY(3px); } }
.hc-bee-svg { display: block; width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.35)); }
.hc-wing ellipse { fill: #dcefff; fill-opacity: 0.55; stroke: #fff; stroke-opacity: 0.65; stroke-width: 0.6; }
.hc-wing path { fill: none; stroke: #fff; stroke-opacity: 0.55; stroke-width: 0.5; }
.hc-wing-ghost ellipse { fill-opacity: 0.18; stroke: none; }
.hc-wing { transform-box: fill-box; transform-origin: 50% 100%; animation: cFlap 0.06s ease-in-out infinite alternate; }
.hc-w2 { animation-delay: -0.03s; }
.hc-wing-ghost { animation-duration: 0.05s; animation-delay: -0.02s; }
@keyframes cFlap { from { transform: scaleY(1); } to { transform: scaleY(0.3); } }

/* ---------- Flight layer: thread, sparkles, card ---------- */
.hc-thread-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.hc-thread { fill: none; stroke: var(--c-gold); stroke-width: 1.5; stroke-linecap: round; filter: drop-shadow(0 0 3px rgba(245, 184, 61, 0.9)); }
.hc-spark { position: absolute; width: 5px; height: 5px; border-radius: 50%; background: #ffd66e; box-shadow: 0 0 8px var(--c-gold); pointer-events: none; }

.hc-card-wrap { position: absolute; left: 0; top: 0; transform-origin: 50% 0; pointer-events: auto; will-change: transform; }
.hc-card-wrap::before {
  content: ""; position: absolute; inset: 0; border-radius: 20px; pointer-events: none;
  box-shadow: 0 0 40px rgba(245, 184, 61, 0.18), 0 30px 60px rgba(0, 0, 0, 0.5);
  opacity: 0; transition: opacity 0.45s ease;
}
.hc-card-wrap.is-open::before { opacity: 1; }
.hc-card-wrap > .hc-bee { z-index: 3; }
.hc-card {
  position: relative; padding: 1.75rem; border-radius: 20px; outline: none; color: #f3ebe0;
  background: rgba(24, 18, 14, 0.82);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border: 1px solid var(--c-line);
}
.hc-card.is-rolled { clip-path: inset(0 0 86% 0 round 20px); }
.hc-card.is-rolled .hc-line { opacity: 0; }
.hc-card-pattern { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 20px; opacity: 0.05; pointer-events: none; }
.hc-card-close {
  position: absolute; top: 0.85rem; right: 0.85rem; z-index: 2;
  width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid var(--c-line); background: rgba(0, 0, 0, 0.3); color: #f3ebe0; cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.hc-card-close:hover { color: var(--c-gold); border-color: var(--c-gold); }
.hc-card-close:focus-visible { outline: 2px solid var(--c-gold); outline-offset: 3px; }
.hc-card-inner { position: relative; }
.hc-badge svg { display: block; width: 58px; height: 58px; overflow: visible; }
.hc-badge-ico { color: var(--c-brown); }
.hc-card-title { margin: 0.8rem 0 0.25rem; font: 700 1.55rem/1.2 "Playfair Display", serif; }
.hc-card-value { margin: 0 0 0.5rem; font: 700 clamp(1.2rem, 2.2vw, 1.65rem) / 1.25 "Inter", sans-serif; color: var(--c-gold); overflow-wrap: anywhere; }
.hc-card-note { margin: 0 0 1.3rem; color: var(--muted); font-size: 1rem; }
.hc-card-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; }

/* mobile: the card is a bottom sheet pinned to the screen */
.hc-card-wrap.is-sheet {
  position: fixed; left: 8px; right: 8px; top: auto; bottom: 8px;
  width: auto !important; max-width: 400px; margin-inline: auto;
  transform: none !important; z-index: 40;
}

/* ---------- Buttons ---------- */
.hc-btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.7rem 1.3rem; border-radius: 999px; border: 1px solid transparent;
  font: 700 0.9rem/1 "Inter", sans-serif; text-decoration: none; cursor: pointer;
  transition: box-shadow 0.25s ease, transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}
.hc-btn-primary { background: linear-gradient(135deg, var(--c-gold), var(--c-ember)); color: var(--c-ink); box-shadow: 0 6px 20px rgba(255, 138, 61, 0.25); }
.hc-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 0 3px rgba(245, 184, 61, 0.2), 0 8px 30px rgba(255, 138, 61, 0.55); }
.hc-btn-ghost { background: transparent; border-color: rgba(245, 184, 61, 0.6); color: var(--c-gold); }
.hc-btn-ghost:hover { transform: translateY(-2px); background: rgba(245, 184, 61, 0.12); }
.hc-btn:focus-visible, .brief-text-btn:focus-visible, .brief-close:focus-visible, .brief-chip:focus-visible, .brief-field input:focus-visible {
  outline: 2px solid var(--c-gold); outline-offset: 3px;
}
.hc-btn:disabled { opacity: 0.4; cursor: not-allowed; box-shadow: none; transform: none; filter: grayscale(0.4); }
.hc-btn-big { padding: 1.05rem 2.3rem; font-size: 1.05rem; }
.hc-action { position: relative; display: inline-flex; }
.hc-toast {
  position: absolute; left: 50%; bottom: calc(100% + 8px); z-index: 4;
  width: 78px; height: 66px; display: grid; place-items: center; pointer-events: none;
  clip-path: polygon(25% 3%, 75% 3%, 100% 50%, 75% 97%, 25% 97%, 0 50%);
  background: linear-gradient(135deg, #ffd27a, #e9a637); color: var(--c-brown);
  font: 700 0.72rem/1 "Inter", sans-serif;
  transform: translate(-50%, -10px);
}

/* ---------- Big button + quick access ---------- */
.c-cta { text-align: center; padding: 1.4rem 0 0.4rem; }
.c-quick { text-align: center; padding: 1.4rem 0 4.5rem; }
.c-quick-line { margin: 0 0 1rem; color: var(--muted); }
.c-quick-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; }
.c-hex { display: block; width: 62px; height: 62px; color: var(--c-gold); transition: color 0.25s ease, transform 0.2s ease; }
.c-hex svg { display: block; width: 100%; height: 100%; overflow: visible; }
.c-hex-bg { fill: rgba(245, 184, 61, 0.08); stroke: rgba(245, 184, 61, 0.5); stroke-width: 1.6; stroke-linejoin: round; transition: fill 0.25s ease, stroke 0.25s ease; }
.c-hex:hover, .c-hex:focus-visible { color: var(--c-ink); transform: translateY(-2px); }
.c-hex:hover .c-hex-bg, .c-hex:focus-visible .c-hex-bg { fill: var(--c-gold); stroke: var(--c-gold); }
.c-hex:focus-visible { outline: 2px solid var(--c-gold); outline-offset: 3px; border-radius: 12px; }

/* ---------- Brief popup ("Get your video edited") ---------- */
html.brief-lock, html.brief-lock body { overflow: hidden; }
.brief-overlay {
  position: fixed; inset: 0; z-index: 10050; display: grid; place-items: center; padding: 1.5rem;
  background: radial-gradient(ellipse at 30% 20%, rgba(255, 138, 61, 0.14), transparent 60%), rgba(13, 11, 10, 0.86);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  opacity: 0; transition: opacity 0.35s ease;
}
.brief-overlay[hidden] { display: none; }
.brief-overlay.is-open { opacity: 1; }
.brief-frame { position: relative; width: min(680px, 100%); max-height: min(calc(100vh - 2rem), calc(100dvh - 2rem), 740px); display: flex; }
.hc-bee-brief { z-index: 5; }
.brief-dialog {
  position: relative; width: 100%; display: flex; flex-direction: column; overflow: hidden;
  max-height: inherit; padding: 2.8rem 2.2rem 1.6rem; border-radius: 24px; color: #f3ebe0;
  background: linear-gradient(160deg, rgba(38, 28, 20, 0.95), rgba(16, 12, 10, 0.97));
  border: 1px solid var(--c-line);
  box-shadow: 0 0 60px rgba(245, 184, 61, 0.12), 0 0 120px rgba(255, 106, 43, 0.12), 0 40px 80px rgba(0, 0, 0, 0.6);
  transform: translateY(24px) scale(0.97);
  transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.brief-overlay.is-open .brief-dialog { transform: none; }
.brief-dialog:focus { outline: none; }
.brief-letterbox { position: absolute; left: 0; right: 0; height: 14px; background: #000; transform: scaleY(0); transition: transform 0.5s 0.1s ease; z-index: 3; }
.brief-letterbox.top { top: 0; transform-origin: top; }
.brief-letterbox.bottom { bottom: 0; transform-origin: bottom; }
.brief-overlay.is-open .brief-letterbox { transform: scaleY(1); }
.brief-close {
  position: absolute; top: 1.4rem; right: 1.2rem; z-index: 4; width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--c-line); background: rgba(0, 0, 0, 0.35); color: #f3ebe0; cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.brief-close:hover { color: var(--c-gold); border-color: var(--c-gold); }
.brief-kicker { margin: 0 0 1.1rem; flex-shrink: 0; font: 700 0.75rem/1 "Inter", sans-serif; letter-spacing: 0.24em; text-transform: uppercase; color: var(--c-gold); }

/* progress styled like clips on an editing track */
.brief-progress {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 0 0 1.6rem; padding: 6px; flex-shrink: 0; list-style: none;
  border-radius: 10px; border: 1px solid rgba(255, 255, 255, 0.06);
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 22px), #0b0908;
}
.brief-clip {
  padding: 0.55rem 0.7rem; border-radius: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.06); color: var(--muted);
  font: 600 0.8rem/1.1 "Inter", sans-serif; transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
.brief-clip span { margin-right: 0.35rem; font-family: "Press Start 2P", monospace; font-size: 0.55rem; opacity: 0.7; }
.brief-clip.is-done { background: rgba(245, 184, 61, 0.16); border-color: rgba(245, 184, 61, 0.35); color: #f3ebe0; }
.brief-clip.is-active { background: linear-gradient(135deg, var(--c-gold), var(--c-orange)); border-color: transparent; color: var(--c-ink); box-shadow: 0 0 18px rgba(245, 184, 61, 0.35); }

.brief-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 0.25rem; margin: -0.25rem; }
.brief-panel h3 { margin: 0 0 1.1rem; font-family: "Playfair Display", serif; font-size: clamp(1.5rem, 3.2vw, 2rem); line-height: 1.2; }
.brief-panel h4 { margin: 1.6rem 0 0.9rem; font-family: "Playfair Display", serif; font-size: 1.2rem; }
/* panels cut in: fade + slide + slight blur */
.brief-panel.is-active { animation: cCut 0.45s ease both; }
@keyframes cCut { from { opacity: 0; transform: translateX(18px); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }

.brief-chips { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.brief-chip {
  display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.7rem 1.1rem; border-radius: 999px;
  border: 1px solid rgba(245, 184, 61, 0.25); background: rgba(255, 255, 255, 0.03); color: #f3ebe0;
  font: 500 0.95rem/1 "Inter", sans-serif; cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.brief-chip:hover { transform: translateY(-2px); border-color: var(--c-gold); }
.brief-chip[aria-pressed="true"] {
  background: linear-gradient(135deg, rgba(245, 184, 61, 0.28), rgba(255, 106, 43, 0.22)); border-color: var(--c-gold); color: #fff;
  box-shadow: 0 0 22px rgba(245, 184, 61, 0.4), inset 0 0 12px rgba(245, 184, 61, 0.15);
}
.brief-field { display: grid; gap: 0.5rem; margin-top: 1.5rem; font: 500 0.9rem/1.3 "Inter", sans-serif; color: var(--muted); }
.brief-field em { font-style: normal; opacity: 0.7; }
.brief-field input {
  width: 100%; padding: 0.85rem 1rem; border-radius: 12px; border: 1px solid rgba(245, 184, 61, 0.25);
  background: rgba(0, 0, 0, 0.35); color: #f3ebe0; font: 400 0.95rem/1.2 "Inter", sans-serif;
}
.brief-field input::placeholder { color: rgba(185, 169, 152, 0.6); }
.brief-nav { flex-shrink: 0; display: flex; justify-content: space-between; gap: 1rem; margin-top: 1.2rem; padding-bottom: 0.4rem; }
.brief-nav[hidden] { display: none; }

/* final "script card" */
.brief-final { text-align: center; }
.brief-script {
  margin: 0 auto 1.6rem; padding: 1.6rem 1.4rem; max-width: 480px; border-radius: 16px;
  background: linear-gradient(160deg, rgba(245, 184, 61, 0.1), rgba(255, 106, 43, 0.06));
  border: 1px dashed rgba(245, 184, 61, 0.45); box-shadow: 0 0 40px rgba(245, 184, 61, 0.15);
}
.brief-script-label { margin: 0 0 0.7rem; font-family: "Press Start 2P", monospace; font-size: 0.6rem; letter-spacing: 0.12em; color: var(--c-gold); }
.brief-summary { margin: 0; font-family: "Playfair Display", serif; font-size: 1.25rem; line-height: 1.5; }
.brief-idea { margin: 0.8rem 0 0; color: var(--muted); font-style: italic; }
.brief-final-actions { display: flex; flex-direction: column; align-items: center; gap: 0.8rem; margin-top: 1.2rem; }
.brief-final-actions .hc-btn { min-width: 220px; }
.brief-text-btn { border: 0; background: none; color: var(--muted); font: 500 0.9rem/1 "Inter", sans-serif; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.brief-text-btn:hover { color: var(--c-gold); }

/* ---------- Responsive ---------- */
@media (max-width: 599px) {
  .c-line { font-size: 1rem; }
  .brief-overlay { padding: 0; align-items: end; }
  .brief-frame { width: 100%; max-height: 100dvh; height: 100dvh; }
  .brief-dialog { min-height: 100dvh; border-radius: 0; padding: 3.4rem 1.25rem 1.6rem; transform: translateY(40px); }
  .brief-letterbox { display: none; }
  .brief-clip { font-size: 0.72rem; padding: 0.5rem; }
  .brief-clip span { display: none; }
  .brief-chip { font-size: 0.9rem; padding: 0.65rem 0.95rem; }
  .c-hex { width: 56px; height: 56px; }
}

/* ---------- Reduced motion: no sway, drips, pollen, ambient bees or flights ---------- */
@media (prefers-reduced-motion: reduce) {
  .god-ray, .hc-leaf-rustle, .hc-pulse, .hc-bee-bob { animation: none; }
  .pollen, .hc-ambient { display: none; }
  .is-grown .hc-grow { transition: none; }
  .is-grown .hc-leaf-pop { animation: none; transform: scale(1); }
  .c-ready .c-intro > * { animation: none; }
  .js .c-intro > * { opacity: 1; transform: none; }
  .hc-cell, .hc-peek, .hc-cell-svg { transition: none; }
  .hc-cell.is-visited .hc-peek, .hc-cell.is-eager, .hc-ant { animation: none !important; }
  .hc-cell.is-visited .hc-peek { transform: translateY(26px); }
  .brief-overlay, .brief-dialog, .brief-letterbox { transition: none; }
  .brief-dialog { transform: none; }
  .brief-panel.is-active { animation: none; }
  .brief-chip { transition: none; }
}
