/* Layout: a light, greyscale bento of soft-cornered rectangles. The wordmark is the
   hero and docks into the top bar; offerings live in stacked folders; one aura is
   the only colour on the page. Single light theme by design. */
:root {
  color-scheme: light;
  /* Palette: Warmest Greys — #16181A #414448 #7A7E85 #BABCBE #FFFFFF.
     Light surfaces are tints of #BABCBE toward white. */
  --paper: #f5f6f6;      /* page */
  --card: #eaebec;       /* light tile */
  --card-2: #e0e1e2;     /* mid tile */
  --card-3: #d4d6d7;     /* deeper tile */
  --ink: #16181a;        /* off-black */
  --ink-2: #414448;      /* secondary text */
  --ink-3: #666a70;      /* muted: #7A7E85 deepened for small-label contrast */
  --line: #babcbe;       /* rules */
  --night: #16181a;      /* dark tiles */
  --night-2: #25272a;
  --on-night: #f1f2f2;
  --on-night-2: #a0a3a7;

  --display: "Special Elite", "Courier New", Courier, monospace;
  --body: "Lato", "Helvetica Neue", Arial, sans-serif;

  --r: 16px;
  --r-sm: 9px;
  --gap: 10px;
  --header-h: 72px;
  --mast-H: calc(72px + 11.4vw);
  --ease: cubic-bezier(.2, .7, .1, 1);
  --gutter: clamp(16px, 2.6vw, 36px);
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .14 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --grain-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .3 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 20px); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
  overflow-x: hidden;
}
@media (min-width: 1100px) {
  body { padding-right: max(84px, env(safe-area-inset-right, 0px)); }
}
body::before {
  content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px);
  z-index: 60; background: var(--paper);
}
img { max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
svg { display: block; }

.sr, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip:focus { position: fixed; top: 12px; left: 12px; z-index: 100; background: var(--ink); color: var(--paper); padding: 8px 14px; border-radius: var(--r-sm); }

/* ---------- Type ---------- */
.eyebrow { margin: 0; font: 700 12px/1.3 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.display { margin: 0; font: 400 clamp(42px, 6vw, 92px)/1 var(--display); letter-spacing: -.02em; text-wrap: balance; }
.h1 { margin: 0; font: 400 clamp(42px, 5.6vw, 84px)/1 var(--display); letter-spacing: -.02em; text-wrap: balance; }
.h2 { margin: 0; font: 400 clamp(30px, 3.6vw, 50px)/1.08 var(--display); letter-spacing: -.015em; text-wrap: balance; }
.h3 { margin: 0; font: 400 clamp(24px, 2.2vw, 31px)/1.15 var(--display); text-wrap: balance; }
p { margin: 0; }
.muted { color: var(--ink-2); }
.dim { color: var(--on-night-2); }
.small { font-size: 14px; line-height: 1.5; }

/* Placeholder markers */
.ph {
  display: inline-block; vertical-align: middle; margin-left: 6px;
  font: 700 10px/1 var(--body); letter-spacing: .1em; text-transform: uppercase;
  padding: 4px 6px; border: 1px dashed currentColor; border-radius: 5px; color: var(--ink-3);
}
.ph-dark { color: var(--on-night-2); }
.ph-inline { border-bottom: 2px dashed var(--ink-3); }
.ph-price { text-decoration: underline dashed var(--ink-3) 1px; text-underline-offset: 4px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 22px; border-radius: var(--r-sm); border: 1.5px solid transparent;
  font: 700 15px/1 var(--body); letter-spacing: .01em; text-decoration: none; cursor: pointer;
  transition: transform .35s var(--ease), background-color .25s, color .25s, box-shadow .35s var(--ease);
  white-space: nowrap;
}
@media (hover: hover) { .btn:hover { transform: translateY(-2px); box-shadow: 0 6px 0 -1px var(--line); } }
.btn:active { transform: translateY(0); box-shadow: none; }
.btn-sm { height: 38px; padding: 0 16px; font-size: 14px; }
.btn-lg { height: 58px; padding: 0 30px; font-size: 17px; }
.btn-ink { background: var(--ink); color: var(--paper); }
@media (hover: hover) { .btn-ink:hover { background: #000; } }
.btn-line { background: transparent; color: var(--ink); border-color: var(--ink); }
@media (hover: hover) { .btn-line:hover { background: var(--ink); color: var(--paper); } }
.btn-paper { background: var(--on-night); color: var(--ink); }
@media (hover: hover) { .btn-paper:hover { background: #fff; box-shadow: 0 6px 0 -1px #000; } }

.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px;
  border-radius: var(--r-sm); border: 1.5px solid var(--ink); background: transparent; color: var(--ink);
  cursor: pointer; transition: background-color .25s, color .25s, transform .35s var(--ease);
}
.icon-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
@media (hover: hover) { .icon-btn:hover { background: var(--ink); color: var(--paper); transform: rotate(-6deg); } }
.icon-btn-lg { width: 58px; height: 58px; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 700; text-decoration: none;
  border-bottom: 1.5px solid currentColor; padding-bottom: 2px; width: fit-content;
}
.link-arrow svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; transition: transform .35s var(--ease); }
@media (hover: hover) { .link-arrow:hover svg { transform: translateX(5px); } }

/* ---------- Masthead ---------- */
.masthead {
  position: fixed; z-index: 40; left: 0; right: 0; top: env(safe-area-inset-top, 0px);
  height: var(--mast-H); background: var(--paper); border-bottom: 1.5px solid var(--ink);
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
  overflow: hidden;
}
.mast-row { position: relative; height: var(--header-h); display: flex; align-items: center; justify-content: flex-end; gap: clamp(16px, 2.4vw, 36px); }
.mast-logo {
  position: absolute; left: 0; top: 0; width: 100%; color: var(--ink);
  transform-origin: 0 0; transform: translateY(var(--header-h)); will-change: transform;
}
.mast-nav { display: flex; gap: clamp(16px, 2.2vw, 32px); }
.mast-nav a { text-decoration: none; font: 700 13px/1 var(--body); letter-spacing: .12em; text-transform: uppercase; background: linear-gradient(var(--ink), var(--ink)) 0 100% / 0 1.5px no-repeat; padding-bottom: 4px; transition: background-size .4s var(--ease); }
.mast-nav a.is-active { background-size: 100% 1.5px; }
@media (hover: hover) { .mast-nav a:hover { background-size: 100% 1.5px; } }
.mast-actions { display: flex; align-items: center; gap: 10px; }
.logo { display: block; width: 100%; height: auto; fill: currentColor; overflow: visible; }
.menu-btn {
  display: inline-flex; align-items: center; gap: 10px; height: 38px; padding: 0 14px;
  border: 1.5px solid var(--ink); border-radius: var(--r-sm); background: var(--paper); color: var(--ink);
  font: 700 14px/1 var(--body); cursor: pointer;
}
.menu-lines { display: grid; gap: 5px; width: 22px; }
.menu-lines i { display: block; height: 1.5px; background: currentColor; transition: transform .35s var(--ease); }
@media (hover: hover) { .menu-btn:hover .menu-lines i:first-child { transform: translateX(4px); } }
@media (hover: hover) { .menu-btn:hover .menu-lines i:last-child { transform: translateX(-4px); } }

/* ---------- Hero ---------- */
.hero { padding-top: calc(var(--mast-H) + env(safe-area-inset-top, 0px) + var(--gap)); }
.hero-panel {
  position: relative; background-color: var(--card); border-radius: var(--r);
  padding: clamp(22px, 3.4vw, 48px); display: grid; gap: clamp(28px, 5vw, 64px); overflow: hidden;
}
.hero-nav { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.hero-col { display: grid; gap: 12px; align-content: start; border-top: 1.5px solid var(--ink); padding-top: 14px; background: #fafbfb; }
.hero-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.hero-col a { text-decoration: none; font-weight: 700; font-size: 17px; background: linear-gradient(var(--ink), var(--ink)) 0 100% / 0 1.5px no-repeat; transition: background-size .4s var(--ease); }
@media (hover: hover) { .hero-col a:hover { background-size: 100% 1.5px; } }
.hero-intro { display: flex; justify-content: space-between; align-items: end; gap: 24px 40px; flex-wrap: wrap; }
.hero-lede { max-width: 34ch; font-size: clamp(18px, 1.6vw, 22px); line-height: 1.45; color: var(--ink-2); }
.hero-cta { display: flex; gap: 10px; flex-wrap: wrap; }
.gridpaper {
  background-color: #fafbfb;
  background-image: linear-gradient(#e3e4e5 1px, transparent 1px), linear-gradient(90deg, #e3e4e5 1px, transparent 1px);
  background-size: 22px 22px; background-position: -1px -1px;
  box-shadow: inset 0 0 0 1px var(--line);
}
.hero-title { margin: 0; font: 400 clamp(46px, 8vw, 128px)/1 var(--display); letter-spacing: -.02em; }
.circled { position: relative; display: inline-block; }
.scribble { position: absolute; left: -9%; top: -14%; width: 118%; height: 128%; overflow: visible; pointer-events: none; }
.circled { isolation: isolate; }
.scribble-under { left: -13%; top: 62%; width: 112%; height: 122%; z-index: -1; }
.circled.is-line-start { margin-bottom: .62em; } /* word wrapped (phones): push the next line below the underline */
.circled.is-line-start .scribble-under { left: -4%; width: 106%; } /* signature swoosh, behind the word */
/* Ink-pen circle. main.js builds a filled, tapered pen stroke (.scribble-ink: thin at both
   ends, thickest mid-way) and, every frame, draws just the part that the hidden centre
   line's "draw" animation says should show. Without JS the plain line shows instead.
   No non-scaling-stroke: Safari/Firefox measure dashes on screen and break pathLength="1". */
.scribble path { fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-dasharray: 1; stroke-dashoffset: 0; }
.scribble .scribble-ink { fill: var(--ink); stroke: none; stroke-dasharray: none; }
.scribble .scribble-draw { stroke: none; } /* still animates; main.js reads its progress */
/* draws in (1.6s), holds, then wipes off in the same direction and starts again */
.js .scribble .scribble-draw { animation: draw 5s .4s var(--ease) infinite both; }
@keyframes draw {
  0% { stroke-dashoffset: 1; }
  32%, 76% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: -1; }
}

/* ---------- Sections ---------- */
.section { padding-block: clamp(56px, 8vw, 120px) 0; }
.hero + .section { padding-top: var(--gap); }
.sec-head { display: grid; gap: 14px; margin-bottom: clamp(28px, 4vw, 48px); max-width: 760px; }
.sec-sub { max-width: 52ch; }

.grain { background-image: var(--grain); background-size: 160px; }
.grain-dark { background-image: var(--grain-dark); background-size: 160px; }

/* ---------- Bento ---------- */
.bento {
  display: grid; gap: var(--gap);
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-areas:
    "st st st st st st st au au au au au"
    "fb fb fb fb fb fb fb fb fb fb fb fb"
    "qu qu qu qu sa sa sa sa li li li li";
}
.tile { border-radius: var(--r); background: var(--card); padding: clamp(22px, 2.6vw, 36px); position: relative; overflow: hidden; min-width: 0; }
.tile-statement { grid-area: st; display: grid; gap: 40px; align-content: space-between; min-height: 440px; background: var(--card); }
.statement-foot { display: flex; gap: 12px; align-items: center; }
.tile-aura { grid-area: au; background-color: #ecedee; min-height: 440px; padding: 0; }
.tile-aura canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.orbit { position: absolute; width: 58%; right: -6%; top: -8%; animation: spin 40s linear infinite; }
.orbit text { font: 400 12px var(--display); letter-spacing: .08em; fill: var(--ink); }
.spark { position: absolute; width: 34px; height: 34px; fill: none; stroke: var(--ink); stroke-width: 4.5; stroke-linecap: round; }
.spark-a { left: 9%; bottom: 10%; animation: spin 16s linear infinite reverse; }
/* Larger spark in the "Come back to your own energy" tile, turning the other way */
.spark-b { right: 7%; top: 9%; width: clamp(84px, 9vw, 140px); height: clamp(84px, 9vw, 140px); animation: spin 24s linear infinite; }
/* Narrower tiles: the heading fills the top, so the spark moves to the bottom-right corner */
@media (max-width: 1250px) { .spark-b { top: auto; bottom: 9%; width: 92px; height: 92px; } }
@media (max-width: 760px) { .spark-b { bottom: 37px; right: 18px; width: 44px; height: 44px; } }
@media (max-width: 359px) { .spark-b { display: none; } }
.half-dot { position: absolute; left: 10%; top: 10%; width: 26px; height: 26px; border-radius: 50%; border: 3px solid var(--ink); background: linear-gradient(90deg, var(--ink) 50%, transparent 50%); }
@keyframes spin { to { transform: rotate(360deg); } }

/* Bento row tones follow the folder ramp: lightest → deeper → off-black (.tile-line).
   Text greys are set per tile so labels stay readable (4.5:1+). */
.tile-quote { grid-area: qu; display: grid; grid-template-rows: auto minmax(0, 1fr) auto auto; gap: 20px; background-color: #e7e7e7; --ink-2: #414448; --ink-3: #61646a; min-height: 320px; }
.quote-mark { width: 30px; fill: var(--ink); }
.tile-quote blockquote {
  margin: 0; align-self: center; font-size: clamp(20px, 1.7vw, 25px); line-height: 1.35; color: var(--ink-2); white-space: pre-line;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 5; overflow: hidden; transition: opacity .45s var(--ease);
}
/* Rotating review: a random one fades in every few seconds; long ones get "Continue reading +" */
.tile-quote.is-open blockquote { display: block; -webkit-line-clamp: unset; overflow: visible; }
.quote-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 24px; }
.quote-who { font-size: 14px; color: var(--ink-3); transition: opacity .45s var(--ease); }
.tile-quote.is-long .quote-more, .tile-quote.is-open .quote-more { display: inline-flex; }
.tile-quote.is-swapping blockquote, .tile-quote.is-swapping .quote-who { opacity: 0; }
.tile-quote .link-arrow { justify-self: start; }
.cite { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; font-size: 15px; }
.tile-start { grid-area: sa; display: grid; gap: 14px; align-content: start; background-color: #a0a3a7; --ink-2: #1f2124; --ink-3: #34373a; }
.tile-start .link-arrow { margin-top: auto; }
/* Bold text link with no underline; lime underline grows on hover (accent.css) */
.inline-link { color: var(--ink); font-weight: 700; text-decoration: none; }
.tile-line { grid-area: li; display: grid; gap: 14px; align-content: start; background-color: var(--night); color: var(--on-night); }
.tile-line .eyebrow { color: var(--on-night-2); }
.live-row { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--on-night-2); flex-wrap: wrap; }
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--on-night); box-shadow: 0 0 0 0 rgba(241,242,242,.6); animation: pulse 2.2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(241,242,242,0); } 100% { box-shadow: 0 0 0 0 rgba(241,242,242,0); } }

.tile { transition: transform .5s var(--ease); }
@media (hover: hover) { .tile-start:hover, .tile-quote:hover { transform: translateY(-4px); } }

/* ---------- Folders ---------- */
.folders { position: relative; display: flow-root; } /* keeps the last folder's margin inside so all folders land level */
.folder-anchor { display: block; height: 0; }
.folder {
  --tab-h: 48px;
  --body-h: clamp(460px, calc(100vh - var(--header-h) - 140px), 560px);
  /* stack centres in the space below the header (never closer than 14px to it) */
  position: sticky;
  top: max(calc(var(--header-h) + env(safe-area-inset-top, 0px) + 14px),
           calc(var(--header-h) + (100vh - var(--header-h) - var(--tab-h) - var(--body-h)) / 2));
  padding-top: var(--tab-h);
  margin-bottom: 28px;
  pointer-events: none; /* the empty strip beside each tab lets clicks reach the tabs behind */
}
.folder-tab, .folder-body { pointer-events: auto; }
.folder.is-front { z-index: 1; }
.folder-tab {
  position: absolute; top: 0; left: calc(var(--i) * 19.4%); height: calc(var(--tab-h) + 1px);
  width: min(19%, 230px); padding: 0 18px; text-align: left;
  border: 0; border-radius: var(--r) var(--r) 0 0; cursor: pointer;
  font: 400 16px/1 var(--display); color: inherit;
  transition: padding .35s var(--ease);
}
.folder-tab::after { content: "↗"; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); opacity: 0; transition: opacity .25s, transform .35s var(--ease); font-weight: 400; }
@media (hover: hover) { .folder-tab:hover { padding-left: 22px; } }
@media (hover: hover) { .folder-tab:hover::after { opacity: 1; transform: translate(3px, -50%); } }
.folder-tab.is-active { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 2px; }
.folder-body {
  border-radius: 0 var(--r) var(--r) var(--r);
  height: var(--body-h);
  padding: clamp(24px, 3vw, 44px);
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 64px);
  overflow: auto; scrollbar-width: none; box-shadow: 0 -10px 30px -18px rgba(0,0,0,.25);
}
.folder-body::-webkit-scrollbar { display: none; } /* still scrolls on short screens, just no bar */
/* Opening a service: the left side widens to 2/3 and the list shrinks to the right 1/3 */
@media (min-width: 761px) {
  .folder-body { transition: grid-template-columns .6s cubic-bezier(.65, 0, .35, 1); }
  .folder.is-detail .folder-body { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
  .folder.is-detail .folder-body { column-gap: clamp(24px, 2.6vw, 40px); }
  .folder.is-detail .folder-intro .intro-desc { max-width: 92%; }
  /* compact, stacked rows while the list is narrow */
  .folder.is-detail .row { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "main main" "meta meta" "info info" "price btn"; gap: 6px 12px; padding: 16px 0; }
  .folder.is-detail .row h4 { font-size: 17px; }
  .folder.is-detail .row p { font-size: 14px; }
  .folder.is-detail .row .row-price, .folder.is-detail .row .btn { margin-top: 6px; }
  .folder.is-detail .row .price { justify-self: start; }
}
/* Folder depth ramp: #E7E7E7 → palette greys → #16181A (Membership, below).
   Each folder sets its own text greys so labels stay readable (4.5:1+) on it. */
.folder { --fold-bg: var(--card); }
.folder[style*="--i:0"] { --fold-bg: #e7e7e7; --ink-2: #414448; --ink-3: #61646a; }
.folder[style*="--i:1"] { --fold-bg: #d0d1d2; --ink-2: #414448; --ink-3: #575a60; }
.folder[style*="--i:2"] { --fold-bg: #babcbe; --ink-2: #2a2c2f; --ink-3: #484b50; --line: #a0a3a7; }
.folder[style*="--i:3"] { --fold-bg: #a0a3a7; --ink-2: #1f2124; --ink-3: #34373a; --line: #7a7e85; }
.folder .folder-tab, .folder .folder-body { background: var(--fold-bg); }
.folder-dark .folder-tab, .folder-dark .folder-body { background: var(--night) !important; color: var(--on-night); }
.folder-dark .row p, .folder-dark .row-meta { color: var(--on-night-2); }
.folder-dark .rows, .folder-dark .row { border-color: #34373a; }

.folder-intro { display: grid; gap: 18px; align-content: start; }
.folder-intro > p { max-width: 40ch; font-size: 18px; }

/* ---------- Service detail inside a folder ("More info +") ---------- */
.row h4 { transition: opacity .3s; }
/* the open service folds out of the list, its contents sliding left as it goes */
.row { transition: height .52s cubic-bezier(.65, 0, .35, 1), padding .52s cubic-bezier(.65, 0, .35, 1), border-color .3s; }
.row > * { transition: transform .45s var(--ease), opacity .3s; }
.row.is-collapsed, .row.is-unfolding { overflow: hidden; }
.row.is-collapsed { padding-top: 0; padding-bottom: 0; border-bottom-color: transparent; }
.row.is-collapsed > * { transform: translateX(-48px); opacity: 0; }
/* …and its details arrive on the left sliding in from the right */
.folder-intro > .intro-desc, .folder-intro > .detail-extra, .folder-intro > .detail-less { transition: opacity .4s .1s, transform .55s var(--ease); }
.folder-intro.is-arriving > .intro-desc, .folder-intro.is-arriving > .detail-extra, .folder-intro.is-arriving > .detail-less { transform: translateX(36px); opacity: 0; }
.row.is-active h4 { opacity: .22; }
.row.is-returning h4 { opacity: 0; transition: none; }
.row-info, .folder-back, .detail-less {
  border: 0; background: none; padding: 0; color: var(--ink); cursor: pointer;
  font: 700 12px/1 var(--body); letter-spacing: .1em; text-transform: uppercase; white-space: nowrap;
}
.row-info { grid-area: info; justify-self: start; margin-top: 4px; }
.row-main.is-clickable { cursor: pointer; }
.row-info i, .detail-less i, .folder-back span { font-style: normal; font-weight: 400; font-size: 15px; }
.folder-dark .row-info, .folder-dark .folder-back, .folder-dark .detail-less { color: var(--on-night); }
.folder-back { justify-self: start; display: inline-flex; gap: 8px; align-items: center; }
.folder-intro > .h2, .folder-intro > p, .folder-intro > .folder-back, .folder-intro > .detail-less, .detail-extra { transition: opacity .22s; }
.folder-intro.is-leaving > * { opacity: 0; }
.folder:not(.is-detail) .folder-back, .folder:not(.is-detail) .detail-extra, .folder:not(.is-detail) .detail-less { display: none; }
.folder.is-detail .folder-intro > :not(.h2):not(.intro-desc):not(.folder-back):not(.detail-extra):not(.detail-less) { display: none; }
.folder.is-detail .folder-intro > .h2 { font-size: clamp(28px, 3vw, 42px); }
/* detail order: back → title → details/price/button → description (keeps the button in view) */
.folder.is-detail .folder-back { order: 0; }
.folder.is-detail .folder-intro > .h2 { order: 1; }
.folder.is-detail .detail-extra { order: 2; }
.folder.is-detail .intro-desc { order: 3; }
.folder.is-detail .detail-less { order: 4; justify-self: start; }
.folder.is-detail .intro-desc { max-width: 46ch; font-size: 17px; line-height: 1.6; color: var(--ink-2); white-space: pre-line; }
.folder-dark.is-detail .intro-desc { color: var(--on-night-2); }
.detail-extra { display: grid; gap: 14px; opacity: 0; transition: opacity .4s .15s; }
.detail-extra.is-shown { opacity: 1; }
/* placeholder tags stay in the data/CMS but aren't shown in the open view */
.detail-ph, .detail-meta .ph { display: none; }
.folder.is-detail .folder-intro { gap: 12px; }
.folder.is-detail .folder-intro > .h2 { margin-bottom: 2px; }
.folder.is-detail .detail-extra { gap: 10px; }
.detail-buy { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.detail-price { font: 900 30px/1 var(--body); letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.fly-ghost { position: fixed; z-index: 80; margin: 0; pointer-events: none; transform-origin: 0 0; }
/* "What is energy clearing?" as a dictionary entry on an index card */
.define-card {
  margin: 2px 0 0; padding: 12px 16px 14px; border-radius: 6px; background: #fcfcfc; color: var(--ink);
  box-shadow: 0 1px 0 var(--line), 0 12px 22px -20px rgba(0,0,0,.45); transform: rotate(-.6deg);
  display: grid; gap: 6px; max-width: 46ch;
}
.define-head { margin: 0; padding-bottom: 7px; border-bottom: 2px solid var(--ink); display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 10px; }
.define-word { font: 400 21px/1.1 var(--display); }
.define-say { font-size: 13px; color: var(--ink-3); }
.define-head i { font: 400 13px var(--display); font-style: normal; }
.define-def { margin: 0; font-size: 14px; line-height: 1.45; color: var(--ink-2); }
.mini-cards { margin: 8px 0 0; display: grid; gap: 10px; }
.mini-cards div { background: rgba(255,255,255,.45); border-radius: var(--r-sm); padding: 14px 16px; }
.mini-cards dt { font-weight: 900; }
.mini-cards dd { margin: 4px 0 0; font-size: 15px; color: var(--ink-2); }
.note-card { background: var(--paper); border-radius: var(--r-sm); padding: 16px 18px; display: grid; gap: 10px; transform: rotate(-1deg); }
.checks { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: 15px; }
.checks li { padding-left: 26px; position: relative; }
.checks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 14px; height: 14px; border: 1.5px solid var(--ink); border-radius: 4px; }
/* Tick inside each box (lime, see accent.css) */
/* Brush-stroke tick: tapered at both ends, heavy through the turn, overshooting the box */
.checks li::after {
  content: ""; position: absolute; left: -2px; top: -11px; width: 29px; height: 29px; background-color: var(--ink);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M1.4 12.4C3.6 11 6 12.4 7.6 14.6L9.3 17C12.6 10.8 17 5.6 22.9 1.4C23.5 1 24.1 1.8 23.6 2.3C18.6 7.6 14.7 13.8 11.9 21.3C11.1 23.3 8.7 23.5 7.4 21.8L3.4 16.2C2.7 15.1 2.1 13.9 1.4 12.4Z'/%3E%3C/svg%3E") no-repeat center / contain; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M1.4 12.4C3.6 11 6 12.4 7.6 14.6L9.3 17C12.6 10.8 17 5.6 22.9 1.4C23.5 1 24.1 1.8 23.6 2.3C18.6 7.6 14.7 13.8 11.9 21.3C11.1 23.3 8.7 23.5 7.4 21.8L3.4 16.2C2.7 15.1 2.1 13.9 1.4 12.4Z'/%3E%3C/svg%3E") no-repeat center / contain;
}

.rows { list-style: none; margin: 0; padding: 0; border-top: 1.5px solid var(--ink); align-self: start; }
.folder-dark .rows { border-top-color: var(--on-night); }
.row {
  display: grid; grid-template-columns: minmax(0, 1fr) auto auto; grid-template-areas: "main price btn" "meta price btn" "info price btn";
  align-items: center; gap: 4px 20px; padding: 20px 0; border-bottom: 1px solid rgba(0,0,0,.14);
}
.row-main { grid-area: main; min-width: 0; }
.row h4 { margin: 0; font: 900 20px/1.2 var(--body); letter-spacing: -.01em; }
.row p { font-size: 15px; color: var(--ink-2); }
.row-meta { grid-area: meta; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
/* "What it is" line under each service title, same style as the meta line */
.row .row-main p.row-kind, .folder.is-detail .row .row-main p.row-kind { margin: 2px 0 4px; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.folder-dark .row .row-main p.row-kind { color: var(--on-night-2); }
.row-price { grid-area: price; font-weight: 900; font-size: 17px; font-variant-numeric: tabular-nums; }
.row .btn { grid-area: btn; }

/* Price with currency picker (1:1 sessions) */
.rows-wrap { align-self: start; display: grid; gap: 14px; }
.price { display: grid; justify-items: center; gap: 6px; }
.price-amt { white-space: nowrap; font-size: 23px; line-height: 1.1; }
.cur-select {
  appearance: none; -webkit-appearance: none; cursor: pointer;
  font: 700 11px/1 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3);
  padding: 5px 22px 5px 9px; border: 1px solid var(--line); border-radius: 999px;
  background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23666a70' stroke-width='1.4'/%3E%3C/svg%3E") no-repeat right 8px center / 8px 5px;
  transition: border-color .2s, color .2s;
}
.cur-select:focus-visible { border-color: var(--ink); color: var(--ink); }
@media (hover: hover) { .cur-select:hover { border-color: var(--ink); color: var(--ink); } }
.cur-select:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.cur-note { margin: 0; font-size: 13px; color: var(--ink-3); justify-self: end; text-align: right; }

/* ---------- Notepad ---------- */
.notepad {
  --lh: 34px; --margin: clamp(40px, 6vw, 84px);
  position: relative; border-radius: var(--r);
  background-color: #fcfcfc;
  background-image:
    linear-gradient(90deg, transparent 0 calc(var(--margin) - 1px), #cbcdce calc(var(--margin) - 1px) var(--margin), transparent var(--margin)),
    repeating-linear-gradient(180deg, transparent 0 calc(var(--lh) - 1px), #dcddde calc(var(--lh) - 1px) var(--lh));
  background-position: 0 0, 0 18px;
  padding: calc(var(--lh) * 2) clamp(20px, 4vw, 60px) calc(var(--lh) * 2) calc(var(--margin) + clamp(16px, 3vw, 40px));
  box-shadow: 0 1px 0 var(--line), 0 18px 40px -30px rgba(0,0,0,.35);
}
.notepad::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 22px; border-radius: var(--r) var(--r) 0 0;
  background: radial-gradient(circle at 12px 11px, var(--paper) 4.5px, transparent 5px) 0 0 / 34px 22px repeat-x, var(--ink);
}
.notepad-head { display: grid; gap: 10px; margin-bottom: var(--lh); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--lh) 32px; }
.steps li { display: grid; gap: 10px; align-content: start; }
.step-n { display: grid; place-items: center; width: 40px; height: 40px; border: 1.5px solid var(--ink); border-radius: var(--r-sm); font: 400 19px/1 var(--display); background: #fcfcfc; }
.steps h3 { margin: 0 0 4px; font: 900 20px/1.2 var(--body); }
.steps p { color: var(--ink-2); font-size: 16px; line-height: var(--lh); }
.sticky-note {
  position: absolute; right: clamp(16px, 4vw, 56px); top: 36px; width: 230px; padding: 18px;
  background: var(--card-2); border-radius: 6px; transform: rotate(3deg);
  font-size: 15px; line-height: 1.4; box-shadow: 0 10px 20px -14px rgba(0,0,0,.4);
  transition: transform .5s var(--ease);
}
@media (hover: hover) { .sticky-note:hover { transform: rotate(-1deg) scale(1.03); } }

/* ---------- Reviews marquee ----------
   main.js drifts the track, and handles drag / swipe / arrows and opening long reviews. */
.marquee {
  overflow: hidden; padding-block: 20px; touch-action: pan-y; cursor: grab;
  margin-left: calc(-1 * max(var(--gutter), env(safe-area-inset-left, 0px)));
  margin-right: calc(-1 * max(var(--gutter), env(safe-area-inset-right, 0px)));
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.marquee.is-dragging { cursor: grabbing; user-select: none; -webkit-user-select: none; }
@media (min-width: 1100px) { .marquee { margin-right: -84px; } }
.marquee-track { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: var(--gap); width: max-content; will-change: transform; }
html:not(.js) .marquee-track { animation: marquee 55s linear infinite; }
@keyframes marquee { to { transform: translateX(calc(-50% - var(--gap) / 2)); } }
.review {
  --open-ease: cubic-bezier(.65, 0, .35, 1);
  position: relative; width: 320px; aspect-ratio: 1; max-width: 80vw; flex: none;
  display: grid; grid-template-rows: auto minmax(0, 1fr) auto; align-content: space-between; gap: 16px; padding: 26px;
  border-radius: var(--r); background: var(--card); overflow: hidden;
  transition: transform .5s var(--ease), width .7s var(--open-ease), height .7s var(--open-ease);
}
@media (hover: hover) {
  .marquee:not(.is-dragging) .review:not(.is-open):nth-child(odd):hover { transform: rotate(-2.5deg) translateY(-8px); }
  .marquee:not(.is-dragging) .review:not(.is-open):nth-child(even):hover { transform: rotate(2.5deg) translateY(-8px); }
}
.review p { font: 400 21px/1.3 var(--display); align-self: center; margin: 0; white-space: pre-line; } /* keeps paragraph breaks */
.review.is-long p { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 5; overflow: hidden; }
.review.is-open, .review.is-closing { aspect-ratio: auto; max-width: none; }
.review.is-open p { display: block; -webkit-line-clamp: unset; overflow: visible; align-self: start; }
.review .tag { justify-self: start; font: 700 11px/1 var(--body); letter-spacing: .12em; text-transform: uppercase; border: 1.5px solid currentColor; border-radius: 6px; padding: 6px 8px; }
.review-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.review .who { font-size: 14px; color: var(--ink-3); }
.review-more {
  display: none; align-items: center; gap: 8px; padding: 0; border: 0; background: none; color: inherit; cursor: pointer;
  font: 700 12px/1 var(--body); letter-spacing: .1em; text-transform: uppercase; white-space: nowrap;
}
.review-more i { display: inline-grid; place-items: center; width: 24px; height: 24px; border: 1.5px solid currentColor; border-radius: 50%; font: 400 16px/1 var(--body); font-style: normal; transition: transform .4s var(--ease); }
@media (hover: hover) { .review-more:hover i { transform: rotate(90deg); } }
.review.is-long .review-more, .review.is-open .review-more { display: inline-flex; }
.review-close {
  position: absolute; top: 18px; right: 18px; width: 34px; height: 34px; display: grid; place-items: center;
  border: 1.5px solid currentColor; border-radius: 50%; background: none; color: inherit; cursor: pointer;
  font: 400 20px/1 var(--body); opacity: 0; pointer-events: none; transform: scale(.8);
  transition: opacity .3s, transform .4s var(--ease);
}
.review.is-open .review-close { opacity: 1; pointer-events: auto; transform: none; transition-delay: .35s; }
@media (hover: hover) { .review-close:hover { transform: rotate(90deg); } }
.type-rest { visibility: hidden; }
.type-caret { display: inline-block; width: 0; height: 1.05em; margin-right: -2px; border-right: 2px solid currentColor; vertical-align: -.15em; animation: caret-blink .8s steps(1) infinite; }
@keyframes caret-blink { 50% { opacity: 0; } }
.review-dark { background: var(--night); color: var(--on-night); }
.review-dark .who { color: var(--on-night-2); }
.review-grey { background: var(--card-3); }
/* random tones (main.js), from the folder ramp; text greys kept readable on each */
.review-tone-1 { background-color: #e7e7e7; --ink-3: #61646a; }
.review-tone-2 { background-color: #d0d1d2; --ink-3: #575a60; }
.review-tone-3 { background-color: #babcbe; --ink-3: #484b50; }
.review-tone-4 { background-color: #a0a3a7; --ink-3: #34373a; }
.marquee-controls { display: flex; justify-content: flex-end; gap: 8px; margin-top: 4px; }
@media (hover: hover) { .marquee-controls .icon-btn:last-child:hover { transform: rotate(6deg); } /* right arrow tilts right, mirroring the left */ }

/* ---------- The Line ---------- */
.line-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--gap); }
.tile-member { background-color: var(--night); color: var(--on-night); display: grid; gap: 22px; align-content: start; }
.tile-member .eyebrow { color: var(--on-night-2); }
.line-lede { max-width: 46ch; font-size: 18px; color: #d6d7d8; }
.vault { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.vault li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 12px 14px; border-radius: var(--r-sm); background: var(--night-2); transition: background-color .25s, transform .35s var(--ease); }
@media (hover: hover) { .vault li:hover { background: #35383c; transform: translateX(4px); } }
.vault-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 7px; background: var(--on-night); color: var(--ink); }
.vault-icon svg { width: 16px; height: 16px; fill: currentColor; stroke: currentColor; stroke-width: 0; }
.vault li:nth-child(n+3) .vault-icon { background: transparent; color: var(--on-night-2); border: 1.5px solid #414448; }
.vault li:nth-child(n+3) .vault-icon svg { fill: none; stroke-width: 1.8; }
.vault-title { font-weight: 700; }
.vault-len { font-size: 14px; color: var(--on-night-2); font-variant-numeric: tabular-nums; }
.member-cta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }

.tile-letter { display: grid; gap: 18px; align-content: start; background: var(--card); }
.tiers { display: grid; gap: 8px; }
.tier { cursor: pointer; }
.tier input { position: absolute; opacity: 0; }
.tier-box { display: grid; gap: 2px; padding: 14px 16px 14px 46px; border: 1.5px solid var(--line); border-radius: var(--r-sm); position: relative; background: var(--paper); transition: border-color .2s; }
.tier-box::before { content: ""; position: absolute; left: 16px; top: 17px; width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid var(--ink); }
.tier-box > span { font-size: 14px; color: var(--ink-2); }
.tier input:checked + .tier-box { border-color: var(--ink); }
.tier input:checked + .tier-box::before { background: radial-gradient(circle, var(--ink) 4px, transparent 4.5px); }
.tier input:focus-visible + .tier-box { outline: 2px solid var(--ink); outline-offset: 2px; }
.signup { display: flex; gap: 8px; flex-wrap: wrap; }
.signup input {
  flex: 1 1 200px; min-width: 0; height: 48px; padding: 0 14px; border-radius: var(--r-sm);
  border: 1.5px solid var(--ink); background: var(--paper); color: var(--ink); font: 400 16px var(--body);
}
.form-msg { min-height: 21px; color: var(--ink-2); }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 5vw, 72px); align-items: center; }
.portrait { position: relative; margin: 0; max-width: 100%; }
.photo { display: block; border-radius: var(--r); object-fit: cover; filter: grayscale(1) contrast(1.05); transition: filter .7s var(--ease), transform .7s var(--ease); background: var(--card-3); }
@media (hover: hover) { .photo:hover { filter: none; } }
.photo-main { width: 100%; height: auto; aspect-ratio: 4 / 5; }
@media (hover: none) { .photo { filter: grayscale(.15); } }
.about-text { display: grid; gap: 20px; }
.about-lede { font-size: clamp(20px, 1.8vw, 24px); line-height: 1.45; max-width: 36ch; }
.about-text > .muted { max-width: 60ch; }
.facts { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.facts li { display: grid; align-content: start; gap: 6px; padding-top: 12px; border-top: 1.5px solid var(--ink); font-weight: 700; }
.fact-lines { display: grid; gap: 4px; font-size: 15px; font-weight: 400; line-height: 1.4; color: var(--ink-2); }
.fact-lines b { font-weight: 700; color: var(--ink); }
.fact-time { font-size: 11px; font-variant-numeric: tabular-nums; }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(24px, 5vw, 72px); }
.faq-list { border-top: 1.5px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 48px 22px 0; position: relative;
  font: 700 clamp(18px, 1.5vw, 21px)/1.35 var(--body);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 4px; top: 50%; width: 30px; height: 30px; margin-top: -15px;
  border: 1.5px solid var(--ink); border-radius: 8px;
  background: linear-gradient(var(--ink), var(--ink)) center / 12px 1.5px no-repeat, linear-gradient(var(--ink), var(--ink)) center / 1.5px 12px no-repeat;
  transition: transform .35s var(--ease), background-color .2s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
@media (hover: hover) { .faq summary:hover::after { background-color: var(--card-2); } }
.faq details p { padding: 0 48px 24px 0; color: var(--ink-2); max-width: 62ch; white-space: pre-line; }
.faq-main { min-width: 0; display: grid; }
/* "See more questions +": main.js shows the first 4, then 4 more per click */
.faq-more {
  justify-self: end; display: inline-flex; align-items: center; gap: 10px; margin-top: 22px; padding: 4px 0;
  border: 0; background: none; color: var(--ink); cursor: pointer;
  font: 700 13px/1 var(--body); letter-spacing: .1em; text-transform: uppercase;
}
.faq-more[hidden] { display: none; }
/* "Ask a question" sits on the left of the same row, text only */
.faq-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 22px; }
.faq-foot .faq-more { margin-top: 0; margin-left: auto; }
.faq-ask { padding: 4px 0; color: var(--ink); text-decoration: none; font: 700 13px/1 var(--body); letter-spacing: .1em; text-transform: uppercase; }
@media (max-width: 420px) { .faq-foot { gap: 12px; } .faq-ask, .faq-foot .faq-more { font-size: 12px; letter-spacing: .07em; } .faq-foot .faq-more { gap: 8px; } }
/* line the icon's centre up with the question toggles (30px boxes, 4px in = 19px from the edge) */
.faq-more { margin-right: 6px; }
.faq-more.is-collapse { margin-right: 15px; }
.faq-more i { display: inline-grid; place-items: center; width: 26px; height: 26px; border: 1.5px solid currentColor; border-radius: 50%; font: 400 17px/1 var(--body); font-style: normal; transition: transform .4s var(--ease); }
@media (hover: hover) { .faq-more:hover i { transform: rotate(90deg); } }
/* "Collapse all ⌃": text only, the circled + becomes a small up chevron */
.faq-more.is-collapse i { width: 8px; height: 8px; border: 0; border-left: 1.8px solid currentColor; border-top: 1.8px solid currentColor; border-radius: 0; font-size: 0; transform: translateY(2px) rotate(45deg); }
@media (hover: hover) { .faq-more.is-collapse:hover i { transform: translateY(-1px) rotate(45deg); } }
.faq details.is-new { animation: faq-in .5s var(--ease) both; animation-delay: var(--d, 0s); }
@keyframes faq-in { from { opacity: 0; transform: translateY(10px); } }

/* ---------- Footer ---------- */
.footer { padding-bottom: max(var(--gutter), env(safe-area-inset-bottom, 0px)); }
.footer-panel { background-color: var(--night); color: var(--on-night); border-radius: var(--r); padding: clamp(26px, 4vw, 56px); display: grid; gap: 40px; overflow: hidden; }
.footer-panel .eyebrow { color: var(--on-night-2); margin-bottom: 14px; }
.footer-top { display: flex; justify-content: space-between; align-items: end; gap: 32px; flex-wrap: wrap; }
.footer-actions { display: grid; gap: 14px; justify-items: start; }
.email-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.email { font-weight: 700; font-size: 18px; user-select: all; text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat; transition: background-size .4s var(--ease); }
@media (hover: hover) { .email:hover { background-size: 100% 1.5px; } }
.copy-btn { height: 30px; padding: 0 10px; border-radius: 7px; border: 1.5px solid #54575c; background: transparent; color: var(--on-night); font: 700 12px var(--body); letter-spacing: .08em; text-transform: uppercase; cursor: pointer; }
@media (hover: hover) { .copy-btn:hover { border-color: var(--on-night); } }
.footer-links { display: flex; gap: 8px 28px; flex-wrap: wrap; border-top: 1px solid #34373a; padding-top: 22px; }
.footer-links a { text-decoration: none; font-weight: 700; color: var(--on-night-2); transition: color .2s; }
@media (hover: hover) { .footer-links a:hover { color: var(--on-night); } }
.footer-mark { color: var(--on-night); }
.disclaimer { max-width: 80ch; }

/* ---------- Drawer ---------- */
.drawer { position: fixed; inset: 0; z-index: 80; }
.drawer-scrim { position: absolute; inset: 0; background: rgba(22,24,26,.35); opacity: 0; transition: opacity .35s; }
.drawer-panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(460px, 100%);
  background: var(--paper); display: grid; grid-template-rows: auto 1fr auto; gap: 24px;
  padding: calc(20px + env(safe-area-inset-top, 0px)) max(28px, env(safe-area-inset-right, 0px)) calc(28px + env(safe-area-inset-bottom, 0px)) 28px;
  transform: translateX(100%); transition: transform .5s var(--ease); overflow-y: auto;
  border-radius: var(--r) 0 0 var(--r);
}
.drawer.is-open .drawer-scrim { opacity: 1; }
.drawer.is-open .drawer-panel { transform: none; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; }
.drawer-links { list-style: none; margin: 0; padding: 0; display: grid; align-content: start; }
.drawer-links a {
  display: flex; justify-content: space-between; align-items: center; padding: 10px 0;
  border-bottom: 1px solid var(--line); text-decoration: none;
  font: 400 clamp(26px, 3.8vh, 38px)/1.15 var(--display);
  transition: padding .35s var(--ease);
}
.drawer-links a::after { content: "→"; font-weight: 400; font-size: .6em; opacity: 0; transition: opacity .25s; }
.drawer-links a.is-active { padding-left: 12px; }
@media (hover: hover) { .drawer-links a:hover { padding-left: 12px; } }
.drawer-links a.is-active::after { opacity: 1; }
@media (hover: hover) { .drawer-links a:hover::after { opacity: 1; } }
.drawer-foot { display: grid; gap: 12px; justify-items: start; }

/* ---------- Right rail ---------- */
.rail { position: fixed; z-index: 35; right: max(18px, env(safe-area-inset-right, 0px)); top: 50%; transform: translateY(-50%); display: none; }
@media (min-width: 1100px) { .rail { display: block; } }
.rail ol { list-style: none; margin: 0; padding: 10px 0; display: grid; gap: 2px; }
/* Only the lines open the rail; the hidden labels ignore the cursor until it's open,
   so they never block buttons underneath */
.rail, .rail a, .rail span { pointer-events: none; }
.rail a {
  display: flex; align-items: center; justify-content: flex-end; gap: 12px; height: 26px;
  text-decoration: none; color: var(--ink-3);
}
.rail a::after {
  content: ""; box-sizing: content-box; width: 18px; height: 100%; padding-left: 10px; flex: none;
  background: linear-gradient(currentColor, currentColor) center / 100% 1.5px no-repeat content-box;
  transition: width .4s var(--ease); pointer-events: auto;
}
.rail span {
  font: 700 12px/1 var(--body); letter-spacing: .1em; text-transform: uppercase; white-space: nowrap;
  opacity: 0; transform: translateX(8px); transition: opacity .3s, transform .4s var(--ease);
  background: var(--paper); padding: 5px 7px; border-radius: 6px;
}
.rail a:focus-visible span { opacity: 1; transform: none; }
@media (hover: hover) { .rail:hover span { opacity: 1; transform: none; } }
@media (hover: hover) { .rail:hover a, .rail:hover span { pointer-events: auto; } }
.rail a.is-active { color: var(--ink); }
.rail a.is-active::after { width: 38px; }
@media (hover: hover) { .rail a:hover { color: var(--ink); } }
@media (hover: hover) { .rail a:hover::after { width: 30px; } }

/* ---------- Toast ---------- */
.toast {
  position: fixed; z-index: 90; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  max-width: min(440px, calc(100vw - 32px)); padding: 14px 18px; border-radius: var(--r-sm);
  background: var(--ink); color: var(--paper); font-size: 15px; line-height: 1.4;
  transition: opacity .3s, transform .4s var(--ease);
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Reveal (content is visible at rest; this only adds a lift) ---------- */
.js .reveal { transform: translateY(26px); transition: transform 1s var(--ease); }
.js .reveal.in { transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .mast-nav { display: none; }
  .bento { grid-template-areas: "st st st st st st st st st st st st" "au au au au au au au au au au au au" "fb fb fb fb fb fb fb fb fb fb fb fb" "qu qu qu qu qu qu sa sa sa sa sa sa" "li li li li li li li li li li li li"; }
  .tile-statement { min-height: 0; }
  .tile-aura { min-height: 380px; }
  .hero-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sticky-note { position: relative; right: auto; top: auto; margin-top: var(--lh); }
  .line-grid, .about, .faq { grid-template-columns: minmax(0, 1fr); }
  .portrait { max-width: 520px; }
}
@media (max-width: 760px) {
  :root { --header-h: 60px; }
  body { font-size: 16px; }
  .bento { grid-template-areas: "st st st st st st st st st st st st" "au au au au au au au au au au au au" "fb fb fb fb fb fb fb fb fb fb fb fb" "qu qu qu qu qu qu qu qu qu qu qu qu" "sa sa sa sa sa sa sa sa sa sa sa sa" "li li li li li li li li li li li li"; }
  .mast-book { display: none; }
  .hero-nav { gap: 20px 16px; }
  .hero-col a { font-size: 15px; }
  /* Folders become a plain stack of labelled cards on phones */
  .folder { position: relative; top: auto; margin-bottom: 14px; }
  .folder-tab { left: 0; width: auto; padding-right: 40px; pointer-events: none; }
  .folder-tab::after { display: none; }
  .folder-body { height: auto; grid-template-columns: minmax(0, 1fr); border-radius: 0 var(--r) var(--r) var(--r); overflow: visible; }
  .row { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "main main" "meta meta" "info info" "price btn"; gap: 6px 12px; }
  .price { justify-self: start; }
  .cur-note { justify-self: start; text-align: left; }
  .row-price { margin-top: 8px; }
  .row .btn { margin-top: 8px; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .facts { grid-template-columns: minmax(0, 1fr); }
  /* One review at a time, full content width with the usual side margins */
  .review { width: calc(100vw - max(var(--gutter), env(safe-area-inset-left, 0px)) - max(var(--gutter), env(safe-area-inset-right, 0px))); max-width: none; aspect-ratio: auto; height: 300px; }
  .marquee-track { gap: max(var(--gutter), env(safe-area-inset-right, 0px)); }
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .review p { font-size: 20px; }
  .orbit { width: 72%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { transform: none; }
  .marquee-track { flex-wrap: wrap; width: auto; align-items: flex-start; }
  .marquee { overflow: visible; -webkit-mask-image: none; mask-image: none; margin-inline: 0; cursor: auto; }
  .marquee-controls { display: none; }
}

/* Phones with Reduce Motion still get the one-card carousel (cards fade instead of slide) */
@media (prefers-reduced-motion: reduce) and (max-width: 760px) {
  .marquee-track { flex-wrap: nowrap; width: max-content; align-items: center; }
  .marquee {
    overflow: hidden; cursor: grab;
    margin-left: calc(-1 * max(var(--gutter), env(safe-area-inset-left, 0px)));
    margin-right: calc(-1 * max(var(--gutter), env(safe-area-inset-right, 0px)));
  }
  .marquee-controls { display: flex; }
}

/* ---------- Policy pages ---------- */
.legal-nav { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.legal-nav a { font-size: 13px; color: var(--on-night-2); text-decoration: none; transition: color .2s; }
@media (hover: hover) { .legal-nav a:hover { color: var(--on-night); text-decoration: underline; text-underline-offset: 3px; } }

.legal-head { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; padding: 22px clamp(16px, 4vw, 48px); border-bottom: 1.5px solid var(--ink); }
.legal-logo { color: var(--ink); display: block; width: min(300px, 60vw); }
.legal-logo .logo { display: block; width: 100%; height: auto; }
.legal { max-width: 72ch; margin: 0 auto; padding: clamp(40px, 7vw, 88px) 16px 80px; }
.legal .h1 { font-size: clamp(36px, 5vw, 60px); margin-top: 12px; }
.legal-updated { margin: 16px 0 0; font-size: 14px; color: var(--ink-3); }
.legal-body { margin-top: 40px; color: var(--ink-2); }
.legal-body h2 { margin: 40px 0 10px; font: 400 clamp(22px, 2.4vw, 28px)/1.2 var(--display); color: var(--ink); }
.legal-body p, .legal-body ul { margin: 0 0 16px; }
.legal-body ul { padding-left: 20px; }
.legal-body li { margin-bottom: 8px; }
.legal-body strong { color: var(--ink); }
.legal-body a { color: var(--ink); text-underline-offset: 3px; }
.legal-links { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-top: 56px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 14px; }
.legal-links a { color: var(--ink-2); text-decoration: none; }
@media (hover: hover) { .legal-links a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; } }
.legal-links a[aria-current] { color: var(--ink); font-weight: 700; }

/* ---------- Split-flap board (quote with a changing word) ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.tile-board { grid-area: fb; background: var(--night); padding: clamp(20px, 3.4vw, 52px) clamp(18px, 3vw, 48px); container-type: inline-size; }
.board { --cols: 29; --cg: clamp(2px, .32cqi, 5px); --cell: min(62px, calc((100cqi - (var(--cols) - 1) * var(--cg)) / var(--cols))); display: grid; gap: calc(var(--cg) * 4); }
@container (max-width: 720px) { .board { --cols: 16; } }
.board-row { display: flex; flex-wrap: wrap; gap: var(--cg); }
.board-word { display: flex; gap: var(--cg); }
.flap {
  --r: calc(var(--cell) * .1);
  position: relative; flex: none; width: var(--cell); height: calc(var(--cell) * 1.36);
  perspective: calc(var(--cell) * 7); font: 400 calc(var(--cell) * .98)/1 var(--display); color: var(--on-night);
}
.f-top, .f-bot, .f-leaf { position: absolute; left: 0; right: 0; height: 50%; overflow: hidden; }
.f-top, .f-leaf-top { top: 0; background: linear-gradient(#2c2f33, #26292c); border-radius: var(--r) var(--r) 0 0; }
.f-bot, .f-leaf-bot { bottom: 0; background: linear-gradient(#212326, #1c1e21); border-radius: 0 0 var(--r) var(--r); }
.f-leaf { z-index: 2; backface-visibility: hidden; will-change: transform; }
.f-leaf-top { transform-origin: 50% 100%; }
.f-leaf-bot { transform-origin: 50% 0; transform: rotateX(90deg); }
.flap b { position: absolute; left: 0; right: 0; height: 200%; display: grid; place-items: center; font-weight: 400; padding-top: .06em; }
.f-top b, .f-leaf-top b { top: 0; }
.f-bot b, .f-leaf-bot b { bottom: 0; }
.flap::after { content: ""; position: absolute; z-index: 3; left: 0; right: 0; top: 50%; height: max(1px, calc(var(--cell) * .035)); transform: translateY(-50%); background: #0c0d0e; }
/* The changing word: same tiles, bigger lime letters */
.board-slot .flap { color: var(--lime); font-size: calc(var(--cell) * 1.3); }
.nowrap { white-space: nowrap; }

/* ---------- How it works: margin menu switches between offering types ---------- */
@media (min-width: 761px) {
  .notepad { --margin: clamp(170px, 15vw, 220px); }
  .hiw-menu { position: absolute; left: 0; top: calc(var(--lh) * 2 - 8px); width: var(--margin); padding: 0 18px 0 clamp(16px, 2vw, 28px); display: grid; }
  .hiw-menu button { height: var(--lh); text-align: left; }
}
@media (min-width: 1001px) { .notepad-head { padding-right: 270px; } }
.hiw-menu button {
  appearance: none; border: 0; background: none; padding: 0; cursor: pointer; justify-self: start;
  font: 700 13px/1 var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); position: relative; transition: color .2s;
}
.hiw-menu button span, .hiw-menu button { white-space: nowrap; }
@media (hover: hover) { .hiw-menu button:hover { color: var(--ink); } }
.hiw-menu button[aria-selected="true"] { color: var(--ink); }
.hiw-menu button::after { content: ""; position: absolute; left: -4px; right: -4px; bottom: 9px; height: 8px; z-index: -1; border-radius: 2px; transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); background: var(--card-2); }
.hiw-menu button[aria-selected="true"]::after { transform: scaleX(1); }
.hiw-menu button:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 3px; }
.hiw-menu { isolation: isolate; }
.hiw-panels { display: grid; }
.hiw-panel { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity .35s var(--ease), visibility 0s .35s; }
.hiw-panel.is-active { opacity: 1; visibility: visible; transition: opacity .35s var(--ease) .05s; }
/* Heading and steps drift up slightly as they appear; the sticky note stays put */
.hiw-panel > .notepad-head, .hiw-panel > .steps { transform: translateY(6px); transition: transform .35s var(--ease); }
.hiw-panel.is-active > .notepad-head, .hiw-panel.is-active > .steps { transform: none; transition-delay: .05s; }
.hiw-pick { display: none; }
@media (max-width: 760px) {
  /* Phones: a dropdown (the phone's own picker) instead of the margin menu */
  .hiw-menu { display: none; }
  .hiw-pick { display: block; position: relative; margin-bottom: var(--lh); }
  .hiw-pick select {
    appearance: none; -webkit-appearance: none; width: 100%; height: 48px; padding: 0 48px 0 16px;
    border: 1.5px solid var(--ink); border-radius: var(--r-sm); background: #fcfcfc; color: var(--ink); cursor: pointer;
    font: 700 13px/1 var(--body); letter-spacing: .1em; text-transform: uppercase;
  }
  .hiw-pick select:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
  .hiw-pick svg { position: absolute; right: 16px; top: 50%; width: 20px; height: 20px; transform: translateY(-50%); pointer-events: none; fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
}
@media (prefers-reduced-motion: reduce) { .hiw-panel, .hiw-panel.is-active, .hiw-panel > * { transition: none; transform: none; } }

/* ---------- Touch screens: hover effects would stick after a tap, so buttons and links
   show the same effect only while pressed and spring back when released. ---------- */
@media (hover: none) {
  a, button, summary, select { -webkit-tap-highlight-color: transparent; }
  .btn:active { transform: translateY(-2px); box-shadow: 0 6px 0 -1px var(--line); }
  .btn-ink:active { background: #000; }
  .btn-line:active { background: var(--ink); color: var(--paper); }
  .btn-paper:active { background: #fff; box-shadow: 0 6px 0 -1px #000; }
  .icon-btn:active { background: var(--ink); color: var(--paper); transform: rotate(-6deg); }
  .link-arrow:active svg { transform: translateX(5px); }
  .mast-nav a:active { background-size: 100% 1.5px; }
  .menu-btn:active .menu-lines i:first-child { transform: translateX(4px); }
  .menu-btn:active .menu-lines i:last-child { transform: translateX(-4px); }
  .hero-col a:active { background-size: 100% 1.5px; }
  .folder-tab:active { padding-left: 22px; }
  .folder-tab:active::after { opacity: 1; transform: translate(3px, -50%); }
  .cur-select:active { border-color: var(--ink); color: var(--ink); }
  .review-more:active i { transform: rotate(90deg); }
  .review-close:active { transform: rotate(90deg); }
  .marquee-controls .icon-btn:last-child:active { transform: rotate(6deg); } /* right arrow tilts right, mirroring the left */
  .faq summary:active::after { background-color: var(--card-2); }
  .faq-more:active i { transform: rotate(90deg); }
  .faq-more.is-collapse:active i { transform: translateY(-1px) rotate(45deg); }
  .email:active { background-size: 100% 1.5px; }
  .copy-btn:active { border-color: var(--on-night); }
  .footer-links a:active { color: var(--on-night); }
  .drawer-links a:active { padding-left: 12px; }
  .drawer-links a:active::after { opacity: 1; }
  .legal-nav a:active { color: var(--on-night); text-decoration: underline; text-underline-offset: 3px; }
  .legal-links a:active { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
  .hiw-menu button:active { color: var(--ink); }
}

/* Opened review in the bento: the quote widens to two-thirds and the two tiles beside it stack */
.bento.quote-open {
  grid-template-areas:
    "st st st st st st st au au au au au"
    "fb fb fb fb fb fb fb fb fb fb fb fb"
    "qu qu qu qu qu qu qu qu sa sa sa sa"
    "qu qu qu qu qu qu qu qu li li li li";
}
@media (max-width: 1000px) {
  .bento.quote-open { grid-template-areas: "st st st st st st st st st st st st" "au au au au au au au au au au au au" "fb fb fb fb fb fb fb fb fb fb fb fb" "qu qu qu qu qu qu qu qu qu qu qu qu" "sa sa sa sa sa sa li li li li li li"; }
}
@media (max-width: 760px) {
  .bento.quote-open { grid-template-areas: "st st st st st st st st st st st st" "au au au au au au au au au au au au" "fb fb fb fb fb fb fb fb fb fb fb fb" "qu qu qu qu qu qu qu qu qu qu qu qu" "sa sa sa sa sa sa sa sa sa sa sa sa" "li li li li li li li li li li li li"; }
}

/* Tighter folders: main.js adds .is-compact whenever the tallest folder wouldn't fit on
   screen at normal spacing (also forced on short screens), so no folder scrolls inside */
#folders.is-compact .row { padding: 11px 0; }
#folders.is-compact .folder.is-detail .row { padding: 11px 0; gap: 4px 12px; }
#folders.is-compact .folder.is-detail .row .row-price, #folders.is-compact .folder.is-detail .row .btn { margin-top: 2px; }
#folders.is-compact .note-card { padding: 12px 16px; gap: 7px; }
#folders.is-compact .checks { gap: 3px; font-size: 14px; }
#folders.is-compact .row p { font-size: 14px; }
#folders.is-compact .row .row-main p.row-kind { margin: 1px 0 3px; }
#folders.is-compact .price { gap: 3px; }
#folders.is-compact .price-amt { font-size: 21px; }
#folders.is-compact .folder-body { padding-top: 30px; padding-bottom: 30px; }
@media (min-width: 761px) and (max-height: 780px) {
  .row { padding: 11px 0; }
  .folder.is-detail .row { padding: 11px 0; gap: 4px 12px; }
  .folder.is-detail .row .row-price, .folder.is-detail .row .btn { margin-top: 2px; }
  .note-card { padding: 12px 16px; gap: 7px; }
  .checks { gap: 3px; font-size: 14px; }
}

/* ---------- Modalities: each opens a small pop-up card ---------- */
.mod-link {
  appearance: none; border: 0; background: none; padding: 0; margin: 0; justify-self: start; text-align: left;
  font: 700 15px/1.4 var(--body); color: var(--ink); cursor: pointer;
}
/* Session lines: bold way + lighter detail, as before */
.fact-lines .mod-link:has(b) { font-weight: 400; color: var(--ink-2); }
.mod-link b { font-weight: 700; color: var(--ink); }
.mod-link:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 3px; }
.mod-dialog {
  width: min(480px, calc(100vw - 32px)); padding: 30px 30px 32px; border: 0; border-radius: var(--r);
  background: #fcfcfc; color: var(--ink); box-shadow: 10px 10px 0 var(--ink);
}
.mod-dialog[open] { display: grid; gap: 10px; animation: mod-in .35s var(--ease); }
.mod-dialog .h3 { padding-right: 48px; }
.mod-desc { margin: 4px 0 0; font-size: 16px; line-height: 1.6; color: var(--ink-2); }
.mod-book { justify-self: start; margin-top: 8px; }
.mod-dialog [hidden] { display: none; }
.mod-close { position: absolute; top: 18px; right: 18px; width: 38px; height: 38px; }
.mod-dialog::backdrop { background: rgba(22,24,26,.45); backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px); }
@keyframes mod-in { from { opacity: 0; transform: translateY(10px) scale(.98); } }
@media (prefers-reduced-motion: reduce) { .mod-dialog[open] { animation: none; } }

/* ---------- Tally form pop-ups: match the site's pop-up cards ---------- */
.tally-overlay { background-color: rgba(22, 24, 26, .45) !important; }
.tally-popup > div { border-radius: var(--r) !important; }
.tally-popup iframe { border-radius: var(--r) !important; }

/* ---------- Price block: options, "From", pre-order sale ---------- */
.price-line { display: inline-flex; align-items: baseline; gap: 6px; white-space: nowrap; }
.price-from, .price-unit { font-size: 13px; font-weight: 700; color: var(--ink-3); letter-spacing: .02em; }
.price-was { font-size: 15px; font-weight: 700; color: var(--ink-3); text-decoration-thickness: 1.5px; }
.price-alt { font-size: 13px; font-weight: 700; color: var(--ink-2); white-space: nowrap; }
.price-badge { font: 900 10.5px/1 var(--body); letter-spacing: .1em; text-transform: uppercase; padding: 5px 8px; border-radius: 999px; background: var(--ink); color: var(--paper); white-space: nowrap; }
.folder-dark .price-from, .folder-dark .price-unit, .folder-dark .price-was { color: var(--on-night-2); }
.folder-dark .price-alt { color: var(--on-night); }

/* ---------- Flip-board capture: pause, handles, share pop-up ---------- */
.board-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; margin-top: clamp(14px, 1.6vw, 22px); }
.board-handles { margin: 0; display: flex; gap: 6px 16px; flex-wrap: wrap; font: 700 12px/1.3 var(--body); letter-spacing: .08em; color: var(--on-night-2); opacity: 0; transform: translateY(4px); transition: opacity .4s var(--ease), transform .4s var(--ease); }
.tile-board.is-paused .board-handles { opacity: 1; transform: none; }
.board-caps { margin-left: auto; display: flex; gap: 8px; }
.board-cap .cap-short { display: none; }
@container (max-width: 520px) { .board-cap .cap-long { display: none; } .board-cap .cap-short { display: inline; } }
.board-cap {
  display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px 0 9px;
  border: 1.5px solid #3a3d41; border-radius: 5px; background: transparent; color: var(--on-night); cursor: pointer;
  font: 700 10px/1 var(--body); letter-spacing: .1em; text-transform: uppercase; transition: border-color .2s, background-color .2s, color .2s;
}
.board-cap svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.board-cap:focus-visible { outline: 2px solid var(--on-night); outline-offset: 3px; }
.cap-dialog {
  width: min(460px, calc(100vw - 32px)); max-height: calc(100vh - 32px); max-height: calc(100svh - 32px); padding: 26px 26px 24px; overscroll-behavior: contain; border: 0; border-radius: var(--r);
  background: #000; color: #fff; box-shadow: 10px 10px 0 var(--ink); overflow: auto;
}
.cap-dialog .cap-sizes button, .cap-dialog .cap-download, .cap-dialog .icon-btn { border-radius: 6px; }
.cap-dialog .eyebrow { color: rgba(255,255,255,.6); }
.cap-head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; min-width: 0; }
.cap-dialog .cap-head .h3 { padding-right: 0; white-space: nowrap; font-size: clamp(22px, 2.2vw, 31px); }
.cap-socials { display: inline-flex; gap: 4px; flex: none; }
.cap-ig { display: inline-grid; place-items: center; width: 36px; height: 36px; flex: none; color: #fff; transition: color .25s, transform .35s var(--ease); }
.cap-ig svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.cap-dialog .icon-btn { border-color: #fff; color: #fff; }
.cap-frame { display: grid; max-width: 100%; }
.cap-row { display: flex; gap: 8px; width: 100%; }
.cap-row .cap-download { flex: 1; width: auto; }
.cap-row .cap-download[hidden] { display: none; }
.cap-zoom {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 16px; flex: none;
  border: 1.5px solid #fff; border-radius: 6px; background: transparent; color: #fff; cursor: pointer;
  font: 700 15px/1 var(--body); letter-spacing: .01em; transition: border-color .25s, color .25s;
}
@media (max-width: 600px) { .cap-zoom { width: 48px; padding: 0; } .cap-zoom span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; } }
.cap-zoom svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cap-preview img, .cap-preview video { cursor: zoom-in; }
.cap-handle { justify-self: start; margin-top: -8px; padding: 0; border: 0; background: none; cursor: pointer; font: 400 15px/1.2 var(--display); color: rgba(255,255,255,.7); transition: color .2s; }
.cap-full { position: fixed; inset: 0; z-index: 5; display: grid; place-items: center; padding: 64px 16px 24px; background: rgba(0,0,0,.94); cursor: zoom-out; animation: cap-fade .3s var(--ease); }
.cap-full[hidden] { display: none; }
.cap-full img, .cap-full video { max-width: calc(100vw - 32px); max-height: calc(100vh - 88px); max-height: calc(100svh - 88px); width: auto; height: auto; border-radius: 6px; box-shadow: 0 0 0 1px #2e3135; }
.cap-full-close { position: absolute; top: 14px; right: 14px; }
@keyframes cap-fade { from { opacity: 0; } }
.cap-dialog[open] { display: grid; gap: 12px; animation: cap-in .5s var(--ease); }
.cap-dialog::backdrop { background: rgba(22,24,26,.5); backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px); }
@keyframes cap-in { from { opacity: 0; transform: translateX(48px); } }
.cap-dialog .h3 { padding-right: 48px; }
.cap-close { position: absolute; top: 16px; right: 16px; width: 38px; height: 38px; }
.cap-preview { display: grid; place-items: center; min-height: 160px; }
.cap-preview img { display: block; max-width: 100%; max-height: max(160px, min(calc(100vh - 310px), 420px)); max-height: max(160px, min(calc(100svh - 310px), 420px)); width: auto; height: auto; border-radius: 6px; box-shadow: 0 0 0 1px #2e3135, 0 14px 28px -10px rgba(255,255,255,.07); transition: opacity .25s; }
.cap-preview img.is-loading { opacity: .35; }
.cap-preview video { display: block; max-width: 100%; max-height: max(160px, min(calc(100vh - 310px), 420px)); max-height: max(160px, min(calc(100svh - 310px), 420px)); width: auto; height: auto; border-radius: 6px; box-shadow: 0 0 0 1px #2e3135, 0 14px 28px -10px rgba(255,255,255,.07); background: #16181a; }
.cap-preview video[hidden], .cap-preview img[hidden], .cap-full [hidden] { display: none; }
.cap-actions { position: relative; display: grid; }
.cap-sizes, .cap-save { grid-area: 1 / 1; transition: opacity .35s var(--ease), transform .45s var(--ease); }
.cap-sizes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.cap-sizes button {
  display: grid; gap: 4px; justify-items: center; padding: 9px 8px; border: 1.5px solid #fff; border-radius: 6px;
  background: #000; color: #fff; cursor: pointer; transition: background-color .2s, border-color .2s, color .2s;
}
.cap-sizes b { font: 700 17px/1 var(--body); font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.cap-sizes span { font: 700 10px/1.2 var(--body); letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.62); transition: color .2s; white-space: nowrap; }
.cap-sizes { align-self: center; }
@media (max-width: 420px) { .cap-sizes button { padding: 9px 4px; } .cap-sizes span { font-size: 9px; letter-spacing: .08em; } }
.cap-save { display: grid; gap: 8px; justify-items: center; align-content: center; opacity: 0; transform: scale(.94); pointer-events: none; }
.cap-dialog .cap-download { background: #000; color: #fff; border-color: #fff; box-shadow: 0 0 0 var(--lime); transition: background-color .2s, color .2s, border-color .2s, transform .2s var(--ease), box-shadow .2s var(--ease); }
.cap-dialog .cap-row { padding: 0 4px 4px 0; }
.cap-download { width: 100%; justify-content: center; gap: 10px; }
.cap-download svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cap-change { border: 0; background: none; padding: 4px; cursor: pointer; font: 700 12px/1 var(--body); letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.6); transition: color .25s; }
.cap-dialog.is-chosen .cap-sizes { opacity: 0; transform: scale(.94); pointer-events: none; }
.cap-dialog.is-chosen .cap-save { opacity: 1; transform: none; pointer-events: auto; }
@media (prefers-reduced-motion: reduce) { .cap-dialog[open], .cap-full { animation: none; } }

/* Desktop: a wider pop-up. The preview sits on the left at a set height; the label, heading and
   buttons sit together on the right, centred beside it. Below 900px it stacks as on phones. */
@media (min-width: 900px) {
  .cap-dialog { --cap-h: min(calc(100vh - 120px), 520px); --cap-h: min(calc(100svh - 120px), 520px); width: fit-content; max-width: calc(100vw - 48px); padding: 30px 34px 30px 30px; grid-template-columns: auto 270px; grid-template-rows: 1fr auto auto auto auto 1fr; column-gap: 40px; }
  .cap-dialog > .cap-preview { grid-column: 1; grid-row: 1 / -1; min-height: 0; }
  .cap-dialog > .eyebrow, .cap-dialog > .cap-head, .cap-dialog > .cap-handle, .cap-dialog > .cap-actions { grid-column: 2; }
  .cap-dialog > .eyebrow { grid-row: 2; }
  .cap-dialog > .cap-head { grid-row: 3; }
  .cap-dialog > .cap-handle { grid-row: 4; margin-bottom: 12px; }
  .cap-dialog > .cap-actions { grid-row: 5; }
  .cap-dialog .cap-head .h3 { font-size: 26px; }
  .cap-preview img, .cap-preview video { height: var(--cap-h); max-height: none; width: auto; max-width: none; }
  .cap-sizes { grid-template-columns: 1fr; gap: 8px; }
  .cap-sizes button { justify-items: start; text-align: left; padding: 11px 14px; }
  .cap-dialog .cap-row { flex-direction: column; }
  .cap-row .cap-download, .cap-row .cap-zoom { width: 100%; flex: none; }
  .cap-row .cap-zoom { order: 2; }
  .cap-save { justify-items: stretch; }
  .cap-change { justify-self: center; }
}
}

/* Social: footer icons + handle, and the small Instagram / TikTok chooser the handle opens */
.footer-social { display: flex; align-items: center; gap: 6px; margin-top: 4px; }
.social-ico { display: inline-grid; place-items: center; width: 36px; height: 36px; color: var(--on-night); transition: color .2s, transform .35s var(--ease); }
.social-ico svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.footer-handle { margin-left: 6px; padding: 0; border: 0; background: none; cursor: pointer; font: 400 17px/1 var(--display); color: var(--on-night-2); transition: color .2s; }
.social-dialog {
  width: min(340px, calc(100vw - 32px)); padding: 26px 26px 24px; border: 0; border-radius: var(--r);
  background: #000; color: #fff; overflow: visible;
}
.social-dialog[open] { display: grid; gap: 10px; animation: cap-fade .3s var(--ease); }
.social-dialog::backdrop { background: rgba(22,24,26,.5); backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px); }
.social-dialog .eyebrow { color: rgba(255,255,255,.6); }
.social-dialog .h3 { font-size: clamp(19px, 6.4vw, 24px); padding-right: 44px; overflow-wrap: anywhere; }
.social-links { display: grid; gap: 8px; margin-top: 8px; }
.social-link {
  display: flex; align-items: center; justify-content: center; gap: 10px; height: 48px; border: 1.5px solid #fff; border-radius: 6px;
  color: #fff; text-decoration: none; font: 700 15px/1 var(--body); transition: transform .2s var(--ease), box-shadow .2s var(--ease), background-color .2s, color .2s, border-color .2s;
}
.social-link svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.social-close { position: absolute; top: 16px; right: 16px; width: 38px; height: 38px; border-color: #fff; color: #fff; border-radius: 6px; }
@media (prefers-reduced-motion: reduce) { .social-dialog[open] { animation: none; } }

/* While a pop-up is open the page behind it stays put. On phones, scrolling the page shows or hides the
   browser bar, which changes the screen height under the pop-up. Sizes use svh (the steady height) too. */
html { scrollbar-gutter: stable; }
html:has(dialog[open]) { overflow: hidden; }
dialog { overscroll-behavior: contain; }

/* Narrow phones (iPhone SE and similar): tighter pop-up padding, a shorter Download label, nothing wider than the box */
.cap-dialog > * { min-width: 0; }
.cap-row .cap-download { min-width: 0; padding: 0 14px; }
@media (max-width: 400px) {
  .cap-dialog, .social-dialog { padding: 22px 20px 20px; }
  .cap-close, .social-close { top: 14px; right: 14px; }
  .cap-more { display: none; }
  .cap-dialog .cap-head .h3 { font-size: 22px; }
  .cap-ig svg { width: 26px; height: 26px; }
  .cap-ig { width: 32px; height: 32px; }
}
