/* ============================================================================
   HYPERSHARE, the Aubury edition. The sheet, the share marks, the floating
   button. Everything in the site's own tokens: linen, buttermilk, parchment,
   sage forest, Playfair and Inter. Mobile first: a sheet that rises from the
   bottom, the card preview held at the top while you choose; on a wide screen
   a two-column studio. No grey, no gold, no shadows heavier than a whisper.
   ============================================================================ */
:root {
  --hs-ground: var(--morning, #F7F5F0);
  --hs-paper: var(--linen, #E8E2D4);
  --hs-card: var(--buttermilk, #F5EDE0);
  --hs-ink: var(--ink, #1A1A1A);
  --hs-body: var(--text-body, #4A4A4A);
  --hs-soft: var(--text-muted, #8A8275);
  --hs-rule: var(--parchment, #D4C5A9);
  --hs-forest: var(--forest, #3D5740);
  --hs-deep: var(--forest-deep, #2C3E2D);
  --hs-night: var(--forest-night, #151E17);
  --hs-honey: var(--honey, #E8D9C0);
  --hs-serif: var(--serif, 'Playfair Display', Georgia, serif);
  --hs-sans: var(--sans, 'Inter', -apple-system, sans-serif);
  --hs-z: 12000;
}

/* ---------------------------------------------------------------- the sheet */
.hs-sheet { position: fixed; inset: 0; z-index: var(--hs-z); display: none; font-family: var(--hs-sans); color: var(--hs-ink); -webkit-font-smoothing: antialiased; }
.hs-sheet.on { display: block; }
body.hs-open { overflow: hidden; }
.hs-scrim { position: absolute; inset: 0; background: rgba(21, 30, 23, 0.55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: hsFade .25s ease both; }
.hs-box { position: absolute; left: 0; right: 0; bottom: 0; top: max(24px, env(safe-area-inset-top)); background: var(--hs-ground); border-radius: 18px 18px 0 0; display: flex; flex-direction: column; overflow: hidden; animation: hsRise .38s cubic-bezier(.2, .8, .2, 1) both; box-shadow: 0 -18px 60px rgba(21, 30, 23, .25); }
@keyframes hsRise { from { transform: translateY(6%); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes hsFade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .hs-box, .hs-scrim { animation: none; } }

.hs-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px 12px; border-bottom: 1px solid var(--hs-rule); flex: 0 0 auto; }
.hs-head::before { content: ""; position: absolute; top: 8px; left: 50%; width: 40px; height: 4px; margin-left: -20px; border-radius: 2px; background: var(--hs-rule); }
.hs-title { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.15; }
.hs-kicker { font-size: 10px; letter-spacing: .22em; text-transform: uppercase; color: var(--hs-soft); font-weight: 600; }
.hs-h { font-family: var(--hs-serif); font-weight: 400; font-size: 22px; color: var(--hs-ink); }
.hs-icon { appearance: none; border: 1px solid var(--hs-rule); background: transparent; color: var(--hs-ink); width: 38px; height: 38px; padding: 0; line-height: 1; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; flex: 0 0 auto; transition: background .15s, border-color .15s; }
.hs-icon svg { width: 18px; height: 18px; flex: 0 0 18px; }
.hs-icon:hover { background: var(--hs-card); border-color: var(--hs-forest); }
.hs-icon[hidden] { display: none !important; }

.hs-body { flex: 1 1 auto; min-height: 0; overflow: auto; -webkit-overflow-scrolling: touch; padding-bottom: max(24px, env(safe-area-inset-bottom)); }
.hs-body[hidden], .hs-lib[hidden] { display: none !important; }
.hs-main { position: sticky; top: 0; z-index: 2; background: var(--hs-ground); padding: 12px 16px 10px; border-bottom: 1px solid var(--hs-rule); }
.hs-stage { position: relative; margin: 0 auto; width: min(100%, 300px); max-height: 38svh; aspect-ratio: 1080 / 1350; border-radius: 6px; overflow: hidden; background: var(--hs-paper); box-shadow: 0 10px 30px rgba(21, 30, 23, .14); touch-action: none; }
.hs-stage.tall { width: min(100%, 250px); aspect-ratio: 1080 / 1920; }
@media (hover: none) { .hs-actions [data-act="copy-image"] { display: none; } }
@supports (height: 1svh) { .hs-stage { width: auto; height: 40svh; max-width: 100%; aspect-ratio: 1080 / 1350; } .hs-stage.tall { width: auto; height: 46svh; aspect-ratio: 1080 / 1920; } }
.hs-canvas { display: block; width: 100%; height: 100%; cursor: grab; }
.hs-canvas.drag { cursor: grabbing; }
.hs-hint { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); font-size: 11px; letter-spacing: .04em; padding: 5px 10px; border-radius: 999px; background: rgba(21, 30, 23, .55); color: #FAF8F3; pointer-events: none; opacity: 0; transition: opacity .3s; white-space: nowrap; }
.hs-stage:hover .hs-hint, .hs-stage.hint .hs-hint { opacity: 1; }
.hs-live { display: inline-flex; align-items: center; align-self: center; font-size: 10px; letter-spacing: .2em; text-transform: uppercase; font-weight: 600; padding: 4px 8px 3px; border-radius: 999px; background: rgba(250, 248, 243, .92); color: var(--hs-forest); }
.hs-live[hidden] { display: none; }
.hs-live::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--hs-forest); margin-right: 6px; vertical-align: 1px; animation: hsPulse 1.4s ease-in-out infinite; }
@keyframes hsPulse { 50% { opacity: .35; } }

.hs-fmt { display: flex; justify-content: center; gap: 8px; margin: 10px 0 0; }
.hs-dock[hidden] { display: none !important; }
.hs-dock { flex: 0 0 auto; padding: 10px 16px max(12px, env(safe-area-inset-bottom)); border-top: 1px solid var(--hs-rule); background: var(--hs-ground); }
.hs-actions { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.hs-actions .hs-btn:not(.primary) { flex-direction: column; gap: 4px; min-height: 52px; padding: 7px 4px; font-size: 10.5px; letter-spacing: .03em; border-radius: 12px; }
.hs-actions .hs-btn:not(.primary) svg { width: 18px; height: 18px; }
.hs-btn { appearance: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 14px; border-radius: 999px; border: 1px solid var(--hs-rule); background: var(--hs-card); color: var(--hs-ink); font: 500 13px/1 var(--hs-sans); letter-spacing: .02em; cursor: pointer; transition: background .15s, border-color .15s, transform .15s; }
.hs-btn svg { width: 17px; height: 17px; flex: 0 0 auto; }
.hs-btn:hover { border-color: var(--hs-forest); background: var(--hs-paper); }
.hs-btn:active { transform: translateY(1px); }
.hs-btn.primary { background: var(--hs-forest); border-color: var(--hs-forest); color: #FAF8F3; grid-column: 1 / -1; font-weight: 600; font-size: 14px; min-height: 48px; margin-bottom: 2px; }
.hs-btn.primary:hover { background: var(--hs-deep); border-color: var(--hs-deep); }
.hs-btn.wide { width: 100%; }
.hs-btn[hidden] { display: none !important; }
.hs-msg { margin: 8px 2px 0; min-height: 1.2em; font-size: 12.5px; color: var(--hs-forest); line-height: 1.4; }
.hs-msg.bad { color: #8A3B2E; }
.hs-msg:empty { margin: 0; min-height: 0; }
.hs-qr { display: flex; gap: 14px; align-items: center; margin-top: 10px; padding: 12px; border: 1px solid var(--hs-rule); border-radius: 10px; background: var(--hs-card); }
.hs-qr[hidden] { display: none; }
.hs-qr canvas { width: 120px; height: 120px; flex: 0 0 auto; border-radius: 6px; }
.hs-qr p { margin: 0; font-size: 12.5px; line-height: 1.45; color: var(--hs-body); }

/* the chips, the segmented controls */
.hs-chip { appearance: none; border: 1px solid var(--hs-rule); background: transparent; color: var(--hs-ink); padding: 9px 14px; border-radius: 999px; font: 500 12.5px/1.15 var(--hs-sans); letter-spacing: .02em; cursor: pointer; display: inline-flex; flex-direction: column; align-items: flex-start; gap: 3px; transition: background .15s, border-color .15s, color .15s; }
.hs-chip small { font-size: 10.5px; color: var(--hs-soft); font-weight: 400; letter-spacing: 0; }
.hs-chip.on { background: var(--hs-forest); border-color: var(--hs-forest); color: #FAF8F3; }
.hs-chip.on small { color: rgba(250, 248, 243, .75); }
.hs-fmt .hs-chip { flex-direction: row; align-items: baseline; gap: 6px; padding: 8px 16px; }
.hs-seg { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.hs-seg .hs-chip { border-radius: 10px; padding: 10px 12px; width: 100%; }
.hs-seg.small { display: flex; flex-wrap: wrap; }
.hs-seg.small .hs-chip { width: auto; border-radius: 999px; padding: 7px 12px; }

/* the controls */
.hs-controls { padding: 6px 16px 24px; }
.hs-group { padding: 16px 0 14px; border-bottom: 1px solid var(--hs-rule); }
.hs-group:last-child { border-bottom: 0; }
.hs-group h4 { margin: 0 0 10px; font: 600 10.5px/1 var(--hs-sans); letter-spacing: .22em; text-transform: uppercase; color: var(--hs-soft); }
.hs-row { display: flex; flex-wrap: wrap; gap: 8px; }
.hs-sub { margin-top: 12px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.hs-sub[hidden] { display: none; }
.hs-layouts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.hs-lay { appearance: none; border: 1px solid var(--hs-rule); background: transparent; border-radius: 10px; padding: 6px 6px 8px; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 6px; font: 500 11px/1 var(--hs-sans); color: var(--hs-ink); min-width: 0; transition: border-color .15s, background .15s; }
.hs-lay .th { display: block; width: 100%; aspect-ratio: 1080 / 1350; border-radius: 4px; overflow: hidden; background: var(--hs-paper); }
.hs-stage.tall ~ * .hs-lay .th, .hs-sheet.story .hs-lay .th { aspect-ratio: 1080 / 1920; }
.hs-lay .th canvas { display: block; width: 100%; height: 100%; object-fit: cover; }
.hs-lay.on { border-color: var(--hs-forest); background: var(--hs-card); box-shadow: inset 0 0 0 1px var(--hs-forest); }
.hs-swatches { gap: 10px; }
.hs-sw { appearance: none; border: 0; background: transparent; padding: 0; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 5px; font: 500 10.5px/1 var(--hs-sans); color: var(--hs-soft); }
.hs-sw span { display: block; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--hs-rule); box-shadow: inset 0 0 0 2px var(--hs-ground); transition: transform .15s, box-shadow .15s; }
.hs-sw.on span { box-shadow: inset 0 0 0 2px var(--hs-ground), 0 0 0 2px var(--hs-forest); transform: scale(1.06); }
.hs-sw.on { color: var(--hs-ink); }
.hs-pos { display: grid; grid-template-columns: repeat(3, 26px); grid-template-rows: repeat(2, 26px); gap: 4px; }
.hs-pos button { appearance: none; border: 1px solid var(--hs-rule); background: transparent; border-radius: 6px; cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0; }
.hs-pos button i { display: block; width: 8px; height: 8px; border-radius: 2px; background: var(--hs-rule); }
.hs-pos button.on { border-color: var(--hs-forest); background: var(--hs-card); }
.hs-pos button.on i { background: var(--hs-forest); }
.hs-field { display: grid; grid-template-columns: 76px minmax(0, 1fr); align-items: center; gap: 10px; margin: 0 0 8px; }
.hs-field[hidden] { display: none; }
.hs-field span { font: 500 11px/1 var(--hs-sans); letter-spacing: .08em; text-transform: uppercase; color: var(--hs-soft); }
.hs-field input { width: 100%; min-width: 0; font: 400 16px/1.3 var(--hs-serif); color: var(--hs-ink); background: var(--hs-card); border: 1px solid var(--hs-rule); border-radius: 8px; padding: 9px 12px; }
.hs-field input:focus { outline: none; border-color: var(--hs-forest); }
.hs-toggles { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 12px; }
.hs-toggles label { display: inline-flex; align-items: center; gap: 7px; font: 400 13px/1 var(--hs-sans); color: var(--hs-body); cursor: pointer; }
.hs-toggles input { accent-color: var(--hs-forest); width: 16px; height: 16px; margin: 0; }
.hs-toggles span[hidden] { display: none; }
.hs-zoom { display: flex; align-items: center; gap: 10px; }
.hs-zoom label { flex: 1; display: flex; align-items: center; gap: 10px; font: 500 11px/1 var(--hs-sans); letter-spacing: .08em; text-transform: uppercase; color: var(--hs-soft); }
.hs-zoom input[type=range] { flex: 1; accent-color: var(--hs-forest); }
.hs-note { margin: 8px 0 0; font-size: 12px; line-height: 1.5; color: var(--hs-soft); }
a.hs-note { display: block; color: var(--hs-forest); text-decoration: none; margin-top: 10px; }
a.hs-note:hover { text-decoration: underline; }
.hs-more .hs-btn { margin-top: 2px; }
[data-project-only][hidden], [data-detail-only][hidden], [data-mark-only][hidden] { display: none !important; }

/* the library, inside the sheet */
.hs-lib { flex: 1 1 auto; min-height: 0; overflow: auto; padding: 16px 16px max(24px, env(safe-area-inset-bottom)); }
.hs-libhead h3 { margin: 4px 0 4px; font: 400 24px/1.15 var(--hs-serif); }
.hs-libhead p { margin: 0 0 16px; font-size: 13px; color: var(--hs-soft); }
.hs-libproj { margin: 0 0 22px; }
.hs-libproj h4 { margin: 0 0 8px; font: 600 10.5px/1 var(--hs-sans); letter-spacing: .22em; text-transform: uppercase; color: var(--hs-soft); }
.hs-libhero { appearance: none; border: 0; padding: 0; background: transparent; cursor: pointer; display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; align-items: center; text-align: left; width: 100%; margin-bottom: 8px; color: var(--hs-ink); }
.hs-libhero img { width: 96px; height: 72px; object-fit: cover; border-radius: 6px; display: block; }
.hs-libhero span { display: flex; flex-direction: column; gap: 3px; }
.hs-libhero strong { font: 400 20px/1.1 var(--hs-serif); }
.hs-libhero small { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--hs-soft); }
.hs-librow { display: flex; gap: 6px; overflow-x: auto; scroll-snap-type: x proximity; padding-bottom: 6px; scrollbar-width: thin; }
.hs-librow button { appearance: none; border: 0; padding: 0; background: transparent; cursor: pointer; flex: 0 0 auto; width: 84px; height: 84px; border-radius: 6px; overflow: hidden; scroll-snap-align: start; position: relative; }
.hs-librow button img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.hs-librow button:hover img { transform: scale(1.05); }
.hs-librow button i { position: absolute; left: 6px; bottom: 6px; font: 600 9px/1 var(--hs-sans); letter-spacing: .16em; text-transform: uppercase; padding: 3px 6px; border-radius: 999px; background: rgba(250, 248, 243, .9); color: var(--hs-forest); font-style: normal; }

/* ---------------------------------------------------------------- wide screens: the studio */
@media (min-width: 900px) {
  .hs-box { top: 50%; left: 50%; right: auto; bottom: auto; transform: translate(-50%, -50%); width: min(1140px, calc(100vw - 48px)); height: min(880px, calc(100vh - 40px)); border-radius: 16px; animation: hsPop .32s cubic-bezier(.2, .8, .2, 1) both; display: grid; grid-template-columns: minmax(0, 1fr) 430px; grid-template-rows: auto minmax(0, 1fr) auto; grid-template-areas: "head head" "main ctrl" "dock ctrl"; }
  @keyframes hsPop { from { transform: translate(-50%, -48%); opacity: 0; } to { transform: translate(-50%, -50%); opacity: 1; } }
  .hs-head::before { display: none; }
  .hs-head { grid-area: head; padding: 16px 22px; }
  .hs-body { display: contents; }
  .hs-body[hidden] { display: none !important; }
  .hs-main { grid-area: main; position: relative; border-bottom: 0; border-right: 1px solid var(--hs-rule); padding: 22px 26px 10px; overflow: auto; display: flex; flex-direction: column; justify-content: center; }
  .hs-stage, .hs-stage.tall { width: auto; height: min(560px, 100%); max-height: 100%; }
  .hs-stage { aspect-ratio: 1080 / 1350; } .hs-stage.tall { aspect-ratio: 1080 / 1920; }
  .hs-controls { grid-area: ctrl; overflow: auto; padding: 4px 22px 22px; border-left: 0; }
  .hs-dock { grid-area: dock; border-top: 0; border-right: 1px solid var(--hs-rule); padding: 8px 26px 20px; }
  .hs-actions { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hs-actions .hs-btn:not(.primary) { flex-direction: row; min-height: 42px; font-size: 12px; padding: 8px 10px; border-radius: 999px; white-space: nowrap; }
  .hs-lib { grid-area: main / main / ctrl / ctrl; grid-column: 1 / -1; grid-row: 2 / 4; padding: 20px 26px; }
  .hs-lib[hidden] { display: none !important; }
  .hs-librow button { width: 96px; height: 96px; }
}
.hs-lib:not([hidden]) ~ .hs-dock { display: none; }

/* ---------------------------------------------------------------- the marks on the page */
.hs-mark { position: absolute; right: 12px; bottom: 12px; z-index: 3; appearance: none; border: 0; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px 0 9px; border-radius: 999px; background: rgba(250, 248, 243, .92); color: var(--hs-forest); font: 600 11px/1 var(--hs-sans); letter-spacing: .14em; text-transform: uppercase; box-shadow: 0 4px 14px rgba(21, 30, 23, .18); opacity: 0; transform: translateY(4px); transition: opacity .25s, transform .25s, background .15s; -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.hs-mark svg { width: 15px; height: 15px; }
.hs-mark:hover { background: #FAF8F3; }
[data-hs-wrapped]:hover .hs-mark, [data-hs-wrapped]:focus-within .hs-mark, .hs-mark:focus-visible { opacity: 1; transform: none; }
@media (hover: none) { .hs-mark { opacity: 1; transform: none; padding: 0 9px; } .hs-mark span { display: none; } .hs-mark svg { width: 16px; height: 16px; } }
.hero-bg .hs-mark { bottom: auto; top: 96px; right: 16px; }
.hs-inline { appearance: none; border: 1px solid var(--hs-rule); background: transparent; color: var(--hs-forest); cursor: pointer; display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; padding: 10px 18px; border-radius: 999px; font: 600 11px/1 var(--hs-sans); letter-spacing: .16em; text-transform: uppercase; transition: background .15s, border-color .15s; }
.hs-inline svg { width: 15px; height: 15px; }
.hs-inline:hover { background: var(--hs-card); border-color: var(--hs-forest); }

/* the floating share button, quiet, bottom right */
.hs-fab { position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: calc(var(--hs-z) - 1); appearance: none; border: 0; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 16px 0 13px; border-radius: 999px; background: var(--hs-forest); color: #FAF8F3; font: 600 11px/1 var(--hs-sans); letter-spacing: .16em; text-transform: uppercase; box-shadow: 0 8px 24px rgba(21, 30, 23, .28); transition: background .15s, transform .2s; }
.hs-fab svg { width: 18px; height: 18px; }
.hs-fab:hover { background: var(--hs-deep); transform: translateY(-1px); }
body.hs-open .hs-fab { display: none; }
@media (max-width: 640px) {
  .hs-fab { height: 48px; width: 48px; padding: 0; justify-content: center; border-radius: 50%; box-shadow: 0 6px 18px rgba(21, 30, 23, .26); transition: transform .28s ease, opacity .28s ease; }
  .hs-fab span { display: none; }
  .hs-fab svg { width: 20px; height: 20px; }
  .hs-fab.hs-fab--away { transform: translateY(96px); opacity: 0; pointer-events: none; }
}
body:has(.navbar-menu--open) .hs-fab { opacity: 0; pointer-events: none; }
.hs-mark { min-width: 34px; min-height: 34px; }

/* the guided first run: three captions, once */
.hs-guide { position: absolute; left: 0; right: 0; bottom: 0; z-index: 5; display: flex; justify-content: center; padding: 0 16px max(16px, env(safe-area-inset-bottom)); pointer-events: none; }
.hs-guide-card { pointer-events: auto; background: var(--hs-night); color: #F5EDE0; border-radius: 14px; padding: 14px 16px 12px; width: min(100%, 360px); display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; align-items: center; box-shadow: 0 14px 40px rgba(21, 30, 23, .35); animation: hsRise .3s ease both; }
.hs-guide-n { grid-column: 1 / -1; font: 600 10px/1 var(--hs-sans); letter-spacing: .2em; text-transform: uppercase; color: var(--hs-honey); }
.hs-guide-card p { margin: 0; font: 400 17px/1.3 var(--hs-serif); grid-column: 1 / -1; }
.hs-guide-card .hs-btn.primary { grid-column: 1; margin: 4px 0 0; min-height: 40px; font-size: 13px; }
.hs-guide-skip { appearance: none; border: 0; background: transparent; color: rgba(245, 237, 224, .7); font: 500 12px/1 var(--hs-sans); cursor: pointer; padding: 8px 4px; margin-top: 4px; }
.hs-guide-skip:hover { color: #F5EDE0; }
.hs-ring { box-shadow: 0 0 0 3px var(--hs-ground), 0 0 0 5px var(--hs-forest) !important; border-radius: 12px; }
@media (min-width: 900px) { .hs-guide { justify-content: flex-start; padding-left: 26px; } }

/* v4.2: moving cards. The primary button turns deep forest when the recorded clip is ready for its tap. */
.hs-btn.primary.hs-ready { background: #2C3E2D; box-shadow: 0 0 0 3px rgba(61, 87, 64, .28); }
.hs-btn[disabled] { opacity: .75; cursor: progress; }
.hs-films .hs-note { margin: -2px 0 10px; }
