/* ===== Corkscrew story v2: dark surreal scenes, no long scrolling ===== */
@font-face { font-family: Figtree; font-weight: 400; font-style: normal; font-display: swap; src: url(/assets/figtree_n4.3c0838aba1701047e60be6a99a1b0a40ce9b8419.woff2) format("woff2"); }
@font-face { font-family: Figtree; font-weight: 400; font-style: italic; font-display: swap; src: url(/assets/figtree_i4.89f7a4275c064845c304a4cf8a4a586060656db2.woff2) format("woff2"); }
@font-face { font-family: Figtree; font-weight: 600; font-style: normal; font-display: swap; src: url(/assets/figtree_n6.9d1ea52bb49a0a86cfd1b0383d00f83d3fcc14de.woff2) format("woff2"); }

:root { --ink: #0a0a0a; --bone: #ece6da; --bone-2: #b3ab9d; --gold: #e9b949; --paper: #ebe2cd;
  --thin: 300; --font: 'Figtree', system-ui, sans-serif; --type: 'Special Elite', 'Courier New', monospace; --font-body-family: 'Figtree'; }
* { box-sizing: border-box; }
html { font-size: 62.5%; scroll-behavior: smooth; scroll-padding-top: 0; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ink); color: var(--bone); font: 400 1.8rem/1.6 var(--font); overflow-x: hidden; }
a { color: inherit; }
button { font: inherit; color: inherit; }
.kicker { font: var(--thin) 1.25rem/1.4 var(--font); letter-spacing: .45em; text-transform: uppercase; color: var(--bone-2); margin: 0 0 1.8rem; }
.kicker b { color: var(--gold); font-weight: 400; }
h2 { font: var(--thin) clamp(3rem, 4.2vw, 5.4rem)/1.08 var(--font); margin: 0 0 1.8rem; }
.note { color: var(--bone-2); font: italic 1.4rem var(--font); }
.grain { position: fixed; inset: -50%; z-index: 90; pointer-events: none; opacity: .06;
  background-image: 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='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: s-grain 1s steps(4) infinite; }
@keyframes s-grain { 25% { transform: translate(-3%, 2%) } 50% { transform: translate(2%, -3%) } 75% { transform: translate(-1%, 3%) } }

/* ---------- every chapter is a darkened collage with a torch that follows you ---------- */
.scene { position: relative; min-height: 100vh; overflow: hidden; --sx: 70%; --sy: 40%; }
.scene-bg { position: absolute; inset: 0; background: center/cover no-repeat; opacity: .55;
  -webkit-mask-image: radial-gradient(circle 32vmax at var(--sx) var(--sy), #000 0%, rgba(0,0,0,.28) 55%, rgba(0,0,0,.07) 100%);
          mask-image: radial-gradient(circle 32vmax at var(--sx) var(--sy), #000 0%, rgba(0,0,0,.28) 55%, rgba(0,0,0,.07) 100%); }
.scene:after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 18vh; background: linear-gradient(transparent, var(--ink)); pointer-events: none; }

/* ---------- header: the O is the menu ---------- */
.s-head { position: fixed; top: 0; left: 0; right: 0; z-index: 80; display: flex; align-items: center; justify-content: space-between; height: 8rem;
  padding: 0 4.8rem; pointer-events: none; mix-blend-mode: difference; }
.s-logo { display: flex; height: 3.2rem; pointer-events: auto; overflow: hidden; align-self: center; line-height: 0; }
.s-logo img { min-height: 0; }
.s-logo img { height: 100%; width: auto; }
.s-logo .o { cursor: pointer; transform-origin: 50% 49%; transition: transform .6s cubic-bezier(.6,0,.2,1); }
.s-logo .o:hover { transform: rotate(-40deg); }
.s-head .s-mlink { display: block; line-height: 1; align-self: center; pointer-events: auto; font: var(--thin) 1.2rem var(--font); letter-spacing: .45em; text-transform: uppercase; text-decoration: none; color: #fff; }
@media (max-width: 749px) { .s-head { padding: 0 2rem; height: 6rem; align-items: center; } .s-logo { height: 2.4rem; } }
.s-menu { position: fixed; inset: 0; z-index: 85; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2.2rem;
  background: #0a0a0a url('/images/files/CorkscrewMinds_header.webp') center/cover; visibility: hidden;
  clip-path: circle(0 at var(--mx, 6%) var(--my, 4%)); transition: clip-path .9s cubic-bezier(.7,0,.2,1), visibility 0s .9s; }
.s-menu:before { content: ""; position: absolute; inset: 0; background: rgba(8,8,8,.78); }
.menu-open .s-menu { visibility: visible; clip-path: circle(150% at var(--mx, 6%) var(--my, 4%)); transition: clip-path .9s cubic-bezier(.7,0,.2,1); }
.s-menu a { position: relative; text-decoration: none; font: var(--thin) clamp(3.6rem, 7.5vw, 9rem)/1 var(--font); letter-spacing: .08em; text-transform: uppercase; }
.s-menu a:hover { color: var(--gold); }
.s-menu small { position: relative; color: var(--bone-2); font: var(--thin) 1.2rem var(--font); letter-spacing: .45em; text-transform: uppercase; }
.menu-open .s-logo .o { transform: rotate(720deg); }

/* ---------- 1. hero ---------- */
.s-hero { display: flex; align-items: center; padding: 12rem 4.8rem 8rem; }
.s-hero-in { position: relative; z-index: 2; max-width: 110rem; }
.s-hero h1 { margin: 0 0 2.8rem; font: var(--thin) clamp(4.2rem, 7.2vw, 9.6rem)/1 var(--font); }
.s-hero h1 .w { display: inline-block; transform-origin: 50% 100%; opacity: 0; transform: rotateX(-90deg) translateY(.3em);
  transition: transform 1.1s cubic-bezier(.2,.8,.2,1), opacity .8s; transition-delay: calc(var(--i) * 90ms + 200ms); }
.s-hero h1 em { font-style: normal; color: var(--gold); }
.ready .s-hero h1 .w { opacity: 1; transform: none; }
.s-hero .lede { max-width: 60rem; color: var(--bone-2); font-size: 2rem; margin: 0 0 3rem; opacity: 0; transition: opacity 1.2s 1.4s; }
.traits { display: flex; flex-wrap: wrap; gap: 1rem 1.2rem; margin: 0; padding: 0; list-style: none; opacity: 0; transition: opacity 1.2s 1.8s; }
.ready .s-hero .lede, .ready .traits { opacity: 1; }
.traits li { border: 1px solid rgba(236,230,218,.28); border-radius: 99px; padding: .7rem 1.6rem; font: var(--thin) 1.25rem var(--font); letter-spacing: .3em; text-transform: uppercase; }
@media (max-width: 749px) { .s-hero { padding: 11rem 2rem 7rem; } .s-hero .lede { font-size: 1.7rem; } }

/* ---------- 2. the secret war: torn memo strips drifting from the typewriter ---------- */
.s-file { padding: 13rem 4.8rem 6rem; }
.s-file .scene-bg { --pos: 20% 50%; background-position: 15% 50%; }
.file-intro { position: relative; z-index: 2; max-width: 40rem; }
.file-intro p { color: var(--bone-2); }
.strips { position: absolute; z-index: 2; top: 11rem; bottom: 5rem; right: 4.8rem; width: min(58vw, 76rem); }
.strip { position: absolute; width: min(36vw, 46rem); padding: 2rem 2.6rem 1.8rem; background: var(--paper); color: #2b2620; font: 400 1.5rem/1.65 var(--type);
  box-shadow: 0 18px 40px rgba(0,0,0,.55); transform: rotate(var(--r)); animation: drift 9s ease-in-out infinite; animation-delay: var(--d);
  clip-path: polygon(0 3%, 6% 0, 14% 4%, 22% 1%, 31% 3%, 40% 0, 52% 3%, 63% 1%, 74% 4%, 85% 1%, 94% 3%, 100% 0, 100% 97%, 93% 100%, 82% 96%, 71% 99%, 60% 96%, 49% 100%, 37% 97%, 25% 100%, 14% 96%, 5% 100%, 0 96%);
  background-image: radial-gradient(rgba(120,95,50,.12) 1px, transparent 1px); background-size: 5px 5px; transition: transform .5s cubic-bezier(.2,.8,.2,1); }
.strip:nth-child(1) { left: 2%; top: 0; padding-right: 13rem; } .strip:nth-child(2) { left: 30%; top: 22%; }
.strip:nth-child(3) { left: 6%; top: 50%; } .strip:nth-child(4) { left: 34%; top: 72%; }
@keyframes drift { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
.strip:hover { animation-play-state: paused; transform: rotate(0deg) scale(1.03); z-index: 3; }
.strip h3 { margin: 0 0 .4rem; font: 400 1.35rem/1.4 var(--type); letter-spacing: .14em; text-transform: uppercase; color: #6b2a20; }
.strip p { margin: 0; }
.strip a { display: inline-block; margin-top: .8rem; color: #a3241c; }
.strip .stamp { position: absolute; right: 1.8rem; top: 1.2rem; border: 2px solid #a3241c; color: #a3241c; padding: .2rem .8rem; font: 400 1.2rem/1.2 var(--type);
  letter-spacing: .2em; text-transform: uppercase; transform: rotate(9deg); opacity: .8; }
.redact { position: relative; white-space: nowrap; }
.redact:after { content: ""; position: absolute; left: -.2em; right: -.2em; top: .12em; bottom: -.05em; background: #141210; transform-origin: right; transition: transform .7s cubic-bezier(.6,0,.2,1); }
.redact.open:after { transform: scaleX(0); }
@media (max-width: 899px) {
  .s-file { padding: 10rem 2rem 6rem; }
  .strips { position: relative; inset: auto; width: auto; margin-top: 3rem; display: flex; flex-direction: column; gap: 2rem; }
  .strip { position: relative; left: auto !important; top: auto !important; width: 100%; font-size: 1.4rem; }
  .strip:nth-child(even) { margin-left: 1.6rem; width: calc(100% - 1.6rem); }
}

/* ---------- 3. the minds: a colourful crowd of heads that open ---------- */
.s-minds { padding: 13rem 4.8rem 6rem; }
.minds-intro { position: relative; z-index: 2; max-width: 52rem; }
.heads { position: relative; z-index: 2; margin-top: 7rem; }
.bit { position: absolute; z-index: 5; height: auto; filter: drop-shadow(0 8px 14px rgba(0,0,0,.5)); pointer-events: none; }
.head { position: absolute; display: block; aspect-ratio: 300/366; text-decoration: none; outline: none; transform: rotate(var(--r)) scale(var(--s));
  transition: transform .5s cubic-bezier(.2,.8,.2,1); -webkit-tap-highlight-color: transparent; }
.head .lid, .head .jaw { position: absolute; inset: 0; background: center/100% 100% no-repeat; }
.head .jaw { z-index: 1; clip-path: inset(49.6% 0 0 0); filter: drop-shadow(0 10px 16px rgba(0,0,0,.55)); }
.head .lid { z-index: 3; clip-path: inset(0 0 50% 0); transform-origin: 8% 48%; transition: transform .7s cubic-bezier(.3,1.4,.4,1); }
.head .inside { position: absolute; z-index: 2; left: 16%; right: 16%; top: 40%; height: 18%; border-radius: 50%; background: radial-gradient(#000 35%, rgba(0,0,0,0) 72%); opacity: 0; transition: opacity .3s; }
/* the rainbow that pours out of the open head */
.head .burst { position: absolute; z-index: 2; left: 50%; top: 50%; width: 260%; aspect-ratio: 2 / 1; transform: translate(-50%, -100%) scale(.1); transform-origin: 50% 100%;
  opacity: 0; pointer-events: none; mix-blend-mode: screen; border-radius: 999px 999px 0 0;
  background: conic-gradient(from -90deg at 50% 100%, #ff3b3b 0deg 22deg, #ff9f1c 22deg 44deg, #ffe14d 44deg 66deg, #4dff88 66deg 88deg, #33d6ff 88deg 110deg, #6c63ff 110deg 132deg, #ff4dd2 132deg 154deg, #ff3b3b 154deg 180deg, transparent 180deg);
  -webkit-mask-image: radial-gradient(circle at 50% 100%, transparent 14%, #000 22%, #000 46%, transparent 70%);
          mask-image: radial-gradient(circle at 50% 100%, transparent 14%, #000 22%, #000 46%, transparent 70%);
  transition: transform .8s cubic-bezier(.2,1.2,.3,1), opacity .3s; }
.head .sp { position: absolute; z-index: 4; left: 50%; top: 44%; width: 14px; height: 14px; margin: -7px 0 0 -7px; background: var(--c); opacity: 0; pointer-events: none;
  clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%); filter: drop-shadow(0 0 6px var(--c)) drop-shadow(0 0 2px #fff); }
.head .card { position: absolute; z-index: 6; left: 50%; bottom: 118%; width: 22rem; padding: 1.4rem 1.6rem 1.2rem; background: var(--paper); color: #2b2620;
  transform: translate(-50%, 70%) scale(.2); opacity: 0; pointer-events: none; transform-origin: 50% 100%;
  transition: transform .6s cubic-bezier(.2,1.3,.3,1) .08s, opacity .25s .08s; box-shadow: 0 16px 34px rgba(0,0,0,.55);
  clip-path: polygon(0 4%, 10% 0, 24% 3%, 40% 0, 58% 3%, 76% 0, 90% 3%, 100% 0, 100% 100%, 0 100%); }
.head .card .yr { font: 400 2.2rem/1 var(--font); color: #a07914; margin-bottom: .4rem; }
.head .card b { display: block; font: 600 1.25rem/1.3 var(--font); letter-spacing: .14em; text-transform: uppercase; margin-bottom: .4rem; }
.head .card span { display: block; font: 400 1.35rem/1.45 var(--font); }
.head .card em { display: block; margin-top: .7rem; font: normal 400 1.05rem var(--font); letter-spacing: .3em; text-transform: uppercase; color: #a3241c; }
.head:hover, .head:focus-visible, .head.open { z-index: 60 !important; transform: rotate(0deg) scale(calc(var(--s) * 1.14)); }
.head:hover .lid, .head:focus-visible .lid, .head.open .lid { transform: rotate(-52deg) translate(-14%, -30%); }
.head:hover .inside, .head:focus-visible .inside, .head.open .inside { opacity: 1; }
.head:hover .burst, .head:focus-visible .burst, .head.open .burst { opacity: .95; transform: translate(-50%, -100%) scale(1); }
.head:hover .sp, .head:focus-visible .sp, .head.open .sp { animation: sp-fly 1.1s cubic-bezier(.2,.8,.3,1) var(--dl) forwards, sp-twinkle 1.2s ease-in-out calc(var(--dl) + 1.1s) infinite; }
@keyframes sp-fly { 0% { opacity: 0; transform: translate(0, 0) scale(.2) rotate(0deg); } 25% { opacity: 1; }
  100% { opacity: 1; transform: translate(var(--tx), var(--ty)) scale(var(--z)) rotate(180deg); } }
@keyframes sp-twinkle { 0%, 100% { opacity: 1; transform: translate(var(--tx), var(--ty)) scale(var(--z)) rotate(180deg); }
  50% { opacity: .35; transform: translate(var(--tx), var(--ty)) scale(calc(var(--z) * .55)) rotate(225deg); } }
.head:hover .card, .head:focus-visible .card, .head.open .card { opacity: 1; transform: translate(-50%, 0) scale(1); }
@media (max-width: 899px) { .s-minds { padding: 10rem 2rem 6rem; } .head .card { width: 19rem; } .heads { margin-top: 10rem; } }

/* ---------- 4. the four doors ---------- */
.s-doors { padding: 13rem 4.8rem 6rem; display: flex; flex-direction: column; }
.doors-intro { position: relative; z-index: 2; max-width: 60rem; }
.doors { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(4, 1fr); gap: 3.2rem; margin: 3.2rem 0 3rem; max-width: 110rem; }
.door { background: none; border: 0; padding: 0; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 1.6rem; -webkit-tap-highlight-color: transparent; }
.door .win { display: block; width: min(100%, 22rem); aspect-ratio: 1; border-radius: 50%; background: center/cover no-repeat; filter: grayscale(.9) brightness(.55);
  box-shadow: 0 0 0 1px rgba(233,185,73,.4), 0 0 0 10px rgba(10,10,10,.6), 0 0 0 11px rgba(233,185,73,.25);
  transition: filter .6s, transform .9s cubic-bezier(.2,.8,.2,1), box-shadow .6s, background-size 1.2s; background-size: 120%; }
.door:hover .win { filter: grayscale(.3) brightness(.85); transform: rotate(-8deg); }
.door.on .win { filter: none; transform: rotate(-14deg) scale(1.06); background-size: 150%;
  box-shadow: 0 0 0 2px var(--gold), 0 0 0 12px rgba(10,10,10,.6), 0 0 0 13px rgba(233,185,73,.6), 0 0 60px rgba(233,185,73,.25); }
.door .lbl { font: var(--thin) 1.6rem var(--font); letter-spacing: .4em; text-transform: uppercase; color: var(--bone-2); transition: color .3s; }
.door .lbl i { display: block; font-style: normal; font-size: 1.1rem; color: var(--gold); margin-bottom: .4rem; }
.door.on .lbl { color: var(--bone); }
.door-text { position: relative; z-index: 2; max-width: 74rem; min-height: 19rem; }
.dt { position: absolute; inset: 0 auto auto 0; opacity: 0; transform: translateY(1.4rem); transition: opacity .5s, transform .6s; pointer-events: none; }
.dt.on { position: relative; opacity: 1; transform: none; pointer-events: auto; }
.dt .q { font: italic 400 clamp(2.2rem, 2.6vw, 3rem)/1.3 var(--font); margin: 0 0 1.2rem; color: var(--bone); }
.dt p { color: var(--bone-2); margin: 0 0 1.2rem; }
.dt .eg { border-left: 2px solid var(--gold); padding-left: 1.6rem; color: var(--bone); }
.dt .eg a { color: var(--gold); text-decoration: none; }
@media (max-width: 749px) {
  .s-doors { padding: 10rem 2rem 6rem; }
  .doors { grid-template-columns: repeat(2, 1fr); gap: 2.4rem 1.6rem; }
  .door .win { width: 13rem; } .door .lbl { font-size: 1.3rem; letter-spacing: .3em; }
  .dt p { font-size: 1.6rem; }
}

/* ---------- ending ---------- */
.s-end { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 10rem 2rem 12rem; }
.s-end .scene-bg { opacity: .45; }
.end-in { position: relative; z-index: 2; max-width: 64rem; }
.s-end h2 { font-size: clamp(4.4rem, 8vw, 10rem); }
.s-end p { color: var(--bone-2); }
.btn { display: inline-block; margin-top: 2rem; padding: 1.6rem 3.2rem; border: 1px solid var(--gold); color: var(--gold); text-decoration: none;
  font: var(--thin) 1.3rem var(--font); letter-spacing: .4em; text-transform: uppercase; transition: background .3s, color .3s; background: rgba(10,10,10,.4); }
.btn:hover { background: var(--gold); color: var(--ink); }
.s-end footer { position: absolute; z-index: 3; bottom: 3rem; left: 0; right: 0; display: flex; justify-content: center; gap: 3.2rem; font: var(--thin) 1.15rem var(--font); letter-spacing: .4em; text-transform: uppercase; }
.s-end footer a { text-decoration: none; color: var(--bone-2); } .s-end footer a:hover { color: var(--gold); }

@media (prefers-reduced-motion: reduce) {
  .grain, .strip { animation: none; }
  .s-hero h1 .w, .head, .head .lid, .head .card, .door .win { transition: none; }
  .head .sp { animation: none !important; }
}

/* sub-lines, gains list and small print (v3 wording) */
.sub { color: var(--bone-2); max-width: 52rem; margin: 0 0 1rem; }
.gains { list-style: none; padding: 0; margin: 3rem auto 1rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.4rem; text-align: left; max-width: 80rem; }
.gains li { border-top: 1px solid rgba(233,185,73,.45); padding-top: 1.4rem; color: var(--bone-2); font-size: 1.6rem; }
.gains b { display: block; color: var(--bone); font: 400 1.3rem var(--font); letter-spacing: .35em; text-transform: uppercase; margin-bottom: .6rem; }
.s-end .small { font-size: 1.4rem; margin-top: 1.4rem; }
.end-in { max-width: 84rem; }
@media (max-width: 749px) { .gains { grid-template-columns: 1fr; gap: 1.6rem; } }

/* opening screen v3: reward the unlock, then ask the question */
.s-hero .lede .hl { color: var(--bone); }
.ask { margin-top: 3.6rem; padding-top: 2.8rem; border-top: 1px solid rgba(233,185,73,.4); max-width: 90rem; opacity: 0; transition: opacity 1.2s 2.1s; }
.ready .ask { opacity: 1; }
.ask-q { margin: 0 0 1.6rem; font: var(--thin) clamp(2.6rem, 3.4vw, 4.2rem)/1.15 var(--font); }
.ask-q em { font-style: normal; color: var(--gold); }
.ask-eg { list-style: none; padding: 0; margin: 0 0 2.8rem; display: flex; flex-wrap: wrap; gap: .9rem 1rem; max-width: 86rem; }
.ask-eg li { border: 1px solid rgba(236,230,218,.28); border-radius: 99px; padding: .6rem 1.5rem; font: italic 400 1.4rem var(--font); color: var(--bone-2); background: rgba(10,10,10,.35);
  opacity: 0; transform: translateY(.8rem); transition: opacity .6s, transform .7s cubic-bezier(.2,.8,.2,1), border-color .3s, color .3s; transition-delay: calc(2.3s + var(--i) * 90ms); }
.ready .ask-eg li { opacity: 1; transform: none; }
.ask-eg li:hover { border-color: var(--gold); color: var(--bone); }
.ask-go { display: flex; flex-wrap: wrap; align-items: center; gap: 1.6rem 3.2rem; }
.btn-solid { margin-top: 0; background: var(--gold); color: var(--ink); }
.btn-solid:hover { background: var(--bone); color: var(--ink); }
.btn-text { font: var(--thin) 1.3rem var(--font); letter-spacing: .35em; text-transform: uppercase; text-decoration: none; color: var(--bone-2); }
.btn-text:hover { color: var(--gold); }
@media (max-width: 749px) { .ask { margin-top: 2.8rem; padding-top: 2rem; } .ask-eg li { font-size: 1.25rem; padding: .5rem 1.2rem; } }
@media (max-width: 749px) { .ask-eg li:nth-child(n+5):nth-child(-n+9) { display: none; } } /* phones: six status quos, so the button stays in view */

/* ---------- status quo pills are buttons now ---------- */
.ask-eg li { cursor: pointer; user-select: none; }
.ask-eg li:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.ask-eg li.other { font-style: normal; color: var(--gold); border-color: rgba(233,185,73,.5); }
.ask-tip { margin: -1.6rem 0 2.4rem; color: var(--bone-2); font: italic 1.35rem var(--font); opacity: 0; transition: opacity 1s 3.2s; }
.ready .ask-tip { opacity: 1; }
.end-go { display: flex; flex-wrap: wrap; gap: 1.6rem; justify-content: center; margin-top: 2rem; }
.end-go .btn { margin-top: 0; }

/* ---------- the guided conversation drawer ---------- */
html.cq-open { overflow: hidden; }
.cq { position: fixed; inset: 0; z-index: 95; visibility: hidden; }
.cq.on { visibility: visible; }
.cq-scrim { position: absolute; inset: 0; background: rgba(5,5,5,.6); opacity: 0; transition: opacity .4s; backdrop-filter: blur(3px); }
.cq.on .cq-scrim { opacity: 1; }
.cq-panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(52rem, 100%); display: flex; flex-direction: column; background: #121110;
  border-left: 1px solid rgba(233,185,73,.3); transform: translateX(102%); transition: transform .55s cubic-bezier(.2,.8,.2,1); box-shadow: -30px 0 60px rgba(0,0,0,.5); }
.cq.on .cq-panel { transform: none; }
.cq-head { display: flex; justify-content: space-between; align-items: flex-start; padding: 2.6rem 2.8rem 1.4rem; }
.cq-head h2 { font: var(--thin) 2.8rem/1.1 var(--font); margin: 0; }
.cq-k { margin: 0 0 .6rem; font: var(--thin) 1.1rem var(--font); letter-spacing: .4em; text-transform: uppercase; color: var(--gold); }
.cq-x { background: none; border: 0; color: var(--bone-2); font-size: 3.2rem; line-height: 1; cursor: pointer; padding: 0 .4rem; }
.cq-x:hover { color: var(--gold); }
.cq-doors { display: flex; gap: 1.2rem; padding: 0 2.8rem 1.6rem; border-bottom: 1px solid rgba(236,230,218,.1); }
.cq-dot { position: relative; width: 4.2rem; height: 4.2rem; border-radius: 50%; background: center/cover; filter: grayscale(1) brightness(.4);
  box-shadow: 0 0 0 1px rgba(233,185,73,.3); transition: filter .5s, box-shadow .5s, transform .5s; }
.cq-dot i { position: absolute; left: 50%; top: 100%; transform: translateX(-50%); margin-top: .5rem; font: normal var(--thin) .95rem var(--font); letter-spacing: .2em; text-transform: uppercase; color: var(--bone-2); white-space: nowrap; opacity: 0; transition: opacity .4s; }
.cq-doors { padding-bottom: 2.6rem; }
.cq-dot.on { filter: none; box-shadow: 0 0 0 2px var(--gold); }
.cq-dot.now { transform: rotate(-12deg) scale(1.1); } .cq-dot.now i { opacity: 1; }
.cq-doors { gap: 2.4rem; }
.cq-log { flex: 1; overflow-y: auto; padding: 2rem 2.8rem; display: flex; flex-direction: column; gap: 1.2rem; overscroll-behavior: contain; }
.cq-msg { max-width: 88%; padding: 1.2rem 1.6rem; border-radius: 1.6rem; font-size: 1.6rem; line-height: 1.5; animation: cq-in .35s ease-out; }
@keyframes cq-in { from { opacity: 0; transform: translateY(.8rem); } }
.cq-msg.bot { align-self: flex-start; background: #1d1b18; color: var(--bone); border-bottom-left-radius: .4rem; }
.cq-msg.me { align-self: flex-end; background: var(--gold); color: var(--ink); border-bottom-right-radius: .4rem; }
.cq-msg strong { font-weight: 600; color: #fff; }
.cq-door { display: flex; align-items: center; gap: .8rem; margin-bottom: .8rem; font: var(--thin) 1.1rem var(--font); letter-spacing: .3em; text-transform: uppercase; color: var(--gold); }
.cq-door span { width: 2.6rem; height: 2.6rem; border-radius: 50%; background: center/cover; box-shadow: 0 0 0 1px var(--gold); }
.cq-typing { display: inline-flex; gap: .4rem; padding: .3rem 0; }
.cq-typing b { width: .7rem; height: .7rem; border-radius: 50%; background: var(--bone-2); animation: cq-dot 1s infinite; }
.cq-typing b:nth-child(2) { animation-delay: .15s; } .cq-typing b:nth-child(3) { animation-delay: .3s; }
@keyframes cq-dot { 0%, 60%, 100% { opacity: .25; transform: none; } 30% { opacity: 1; transform: translateY(-3px); } }
.cq-sum { background: var(--paper); color: #2b2620; padding: 1.6rem 1.8rem; border-radius: .6rem; margin: .2rem 0; }
.cq-sum .cq-k { color: #a07914; } .cq-sq { margin: 0 0 1rem; font: 400 1.9rem/1.25 var(--font); }
.cq-sum ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .8rem; }
.cq-sum li { font-size: 1.45rem; } .cq-sum b { display: block; font: 600 1.05rem var(--font); letter-spacing: .25em; text-transform: uppercase; color: #6b2a20; }
.cq-sum em { color: #8a8174; }
.cq-msg.bot:has(.cq-sum) { background: none; padding: 0; max-width: 100%; }
.cq-quick { display: flex; flex-wrap: wrap; gap: .8rem; padding: 0 2.8rem 1.2rem; }
.cq-quick button { background: none; border: 1px solid rgba(233,185,73,.55); color: var(--bone); border-radius: 99px; padding: .8rem 1.6rem; font: 400 1.35rem var(--font); cursor: pointer; }
.cq-quick button:first-child { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.cq-quick button:hover { border-color: var(--bone); }
.cq-form { display: flex; gap: .8rem; padding: 0 2.8rem; }
.cq-form input { flex: 1; min-width: 0; background: #1d1b18; border: 1px solid rgba(236,230,218,.18); border-radius: 99px; color: var(--bone); padding: 1.3rem 1.8rem; font: 400 1.6rem var(--font); outline: none; }
.cq-form input:focus { border-color: var(--gold); }
.cq-form button { width: 4.8rem; flex: none; border-radius: 50%; border: 0; background: var(--gold); color: var(--ink); font-size: 2rem; cursor: pointer; }
.cq-note { margin: 0; padding: 1.2rem 2.8rem 2rem; font: italic 1.2rem var(--font); color: #7d766b; }
@media (max-width: 749px) {
  .cq-panel { top: 6vh; width: 100%; border-left: 0; border-top: 1px solid rgba(233,185,73,.3); border-radius: 1.8rem 1.8rem 0 0; transform: translateY(102%); }
  .cq-head, .cq-doors, .cq-log, .cq-quick, .cq-form, .cq-note { padding-left: 1.8rem; padding-right: 1.8rem; }
  .cq-head h2 { font-size: 2.3rem; } .cq-msg { font-size: 1.5rem; }
  .cq-form input { font-size: 16px; } /* stops iPhone zooming in */
}

/* ---------- tap-only conversation v2 ---------- */
.cq-steps { list-style: none; margin: 0; padding: 0 2.8rem 1.6rem; display: grid; grid-template-columns: repeat(4, 1fr); gap: .6rem; border-bottom: 1px solid rgba(236,230,218,.1); counter-reset: s; }
.cq-steps li { counter-increment: s; font: var(--thin) 1rem/1.3 var(--font); letter-spacing: .2em; text-transform: uppercase; color: #6f685e; padding-top: .9rem; border-top: 2px solid rgba(236,230,218,.12); transition: color .4s, border-color .4s; }
.cq-steps li.done { color: var(--bone-2); border-color: rgba(233,185,73,.55); }
.cq-steps li.now { color: var(--gold); border-color: var(--gold); }
.cq-quick { max-height: 46vh; overflow-y: auto; }
.cq-quick button { text-align: left; }
.cq-quick button:first-child { background: none; color: var(--bone); border-color: rgba(233,185,73,.55); }
.cq-quick button:hover { background: rgba(233,185,73,.12); border-color: var(--gold); }
.cq-card { background: var(--paper); color: #2b2620; border-radius: .8rem; padding: 1.8rem 1.8rem 1.4rem; display: grid; gap: 1.2rem; }
.cq-msg.bot:has(.cq-card) { background: none; padding: 0; max-width: 100%; width: 100%; }
.cq-card .cq-k { color: #a07914; margin: 0; }
.cq-card .cq-sq { margin: -.6rem 0 0; font: 400 2rem/1.2 var(--font); }
.cq-vs { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.cq-vs > div { border-radius: .6rem; padding: 1.1rem 1.2rem; font-size: 1.4rem; line-height: 1.45; }
.cq-vs .straight { background: #ddd3bd; color: #6d655a; }
.cq-vs .straight s { text-decoration-color: rgba(163,36,28,.6); text-decoration-thickness: 1px; }
.cq-vs .twist { background: #1a1816; color: var(--bone); }
.cq-vs b, .cq-row b, .cq-mind b { display: block; font: 600 1rem var(--font); letter-spacing: .24em; text-transform: uppercase; margin-bottom: .5rem; text-decoration: none; }
.cq-vs .straight b { color: #8a8174; display: block; } .cq-vs .twist b { color: var(--gold); }
.cq-row { font-size: 1.5rem; line-height: 1.45; } .cq-row b { color: #6b2a20; }
.cq-mind { display: flex; gap: 1.2rem; align-items: center; text-decoration: none; color: inherit; border-top: 1px solid rgba(43,38,32,.15); padding-top: 1.2rem; font-size: 1.4rem; line-height: 1.45; }
.cq-mind > span:first-child { flex: none; width: 5.2rem; height: 6.4rem; background: center/cover; border-radius: 50%; }
.cq-mind b { color: #a07914; } .cq-mind em { font-style: normal; color: #a3241c; white-space: nowrap; }
.cq-end { flex-direction: column; align-items: stretch; max-height: none; }
.cq-notelabel { font: 400 1.4rem var(--font); color: var(--bone); } .cq-notelabel span { color: var(--bone-2); font-style: italic; }
.cq-end textarea { width: 100%; resize: vertical; background: #1d1b18; border: 1px solid rgba(236,230,218,.18); border-radius: 1rem; color: var(--bone); padding: 1.2rem 1.4rem; font: 400 1.5rem/1.45 var(--font); outline: none; }
.cq-end textarea:focus { border-color: var(--gold); }
.cq-endgo { display: flex; flex-wrap: wrap; gap: .8rem; }
.cq-quick.cq-end button.go { background: var(--gold); color: var(--ink); border-color: var(--gold); font-weight: 600; }
.cq-quick.cq-end button.go:hover { background: var(--bone); border-color: var(--bone); }
@media (max-width: 749px) { .cq-steps { padding-left: 1.8rem; padding-right: 1.8rem; } .cq-steps li { font-size: .85rem; letter-spacing: .12em; }
  .cq-vs { grid-template-columns: 1fr; } .cq-end textarea { font-size: 16px; } }

/* ===== the opening conversation (full screen, starts after the O) ===== */
html.tk-open { overflow: hidden; }
.tk { position: fixed; inset: 0; z-index: 96; background: #080807; display: flex; flex-direction: column; visibility: hidden; opacity: 0;
  transition: opacity .6s, visibility 0s .6s; }
.tk.on { visibility: visible; opacity: 1; transition: opacity .6s; }
.tk-bg { position: absolute; inset: 0; background: url('/images/files/CorkscrewMinds_header.webp') center/cover; opacity: .38;
  -webkit-mask-image: radial-gradient(circle 30vmax at var(--lx, 30%) var(--ly, 40%), #000, rgba(0,0,0,.15) 60%, rgba(0,0,0,.05));
          mask-image: radial-gradient(circle 30vmax at var(--lx, 30%) var(--ly, 40%), #000, rgba(0,0,0,.15) 60%, rgba(0,0,0,.05));
  animation: tk-light 14s ease-in-out infinite alternate; }
@property --lx { syntax: '<percentage>'; inherits: false; initial-value: 30%; }
@property --ly { syntax: '<percentage>'; inherits: false; initial-value: 40%; }
@keyframes tk-light { 0% { --lx: 20%; --ly: 30%; } 25% { --lx: 75%; --ly: 25%; } 50% { --lx: 85%; --ly: 70%; } 75% { --lx: 35%; --ly: 75%; } 100% { --lx: 15%; --ly: 45%; } }
.tk-head { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; padding: 2.2rem 4.8rem; }
.tk-logo { display: flex; height: 3rem; } .tk-logo img { height: 100%; width: auto; }
.tk.on .tk-logo .o { animation: tk-o 1.4s cubic-bezier(.6,0,.2,1) .2s; transform-origin: 50% 49%; }
@keyframes tk-o { from { transform: rotate(-360deg); } }
.tk-min { background: none; border: 0; cursor: pointer; color: var(--bone-2); font: var(--thin) 1.2rem var(--font); letter-spacing: .35em; text-transform: uppercase; }
.tk-min:hover { color: var(--gold); } .tk-min span { display: inline-block; margin-left: .4rem; }
.tk-col { position: relative; z-index: 2; flex: 1; min-height: 0; width: 100%; max-width: 68rem; margin: 0 auto; display: flex; flex-direction: column; padding: 0 2rem; }
.tk-log { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 1.2rem; padding: 2rem 0 1.6rem; scrollbar-width: none; overscroll-behavior: contain;
  -webkit-mask-image: linear-gradient(transparent, #000 4rem); mask-image: linear-gradient(transparent, #000 4rem); }
.tk-log::-webkit-scrollbar { display: none; }
.tk-log > :first-child { margin-top: auto; }
.tk-msg { max-width: 82%; padding: 1.3rem 1.8rem; border-radius: 1.8rem; font-size: 1.8rem; line-height: 1.5; animation: tk-in .4s ease-out; }
@keyframes tk-in { from { opacity: 0; transform: translateY(1rem); } }
.tk-msg.bot { align-self: flex-start; background: rgba(28,26,23,.88); color: var(--bone); border-bottom-left-radius: .5rem; backdrop-filter: blur(4px); }
.tk-msg.me { align-self: flex-end; background: var(--gold); color: var(--ink); border-bottom-right-radius: .5rem; }
.tk-msg strong { font-weight: 600; color: #fff; }
.tk-msg.rich { background: none; padding: 0; max-width: 100%; backdrop-filter: none; }
.tk-typing { display: inline-flex; gap: .45rem; padding: .3rem 0; }
.tk-typing b { width: .8rem; height: .8rem; border-radius: 50%; background: var(--bone-2); animation: cq-dot 1s infinite; }
.tk-typing b:nth-child(2) { animation-delay: .15s; } .tk-typing b:nth-child(3) { animation-delay: .3s; }
.tk-quick { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .9rem; padding: .4rem 0 1rem; min-height: 5.6rem; }
.tk-quick button { background: rgba(10,10,10,.5); border: 1px solid rgba(233,185,73,.6); color: var(--bone); border-radius: 99px; padding: 1rem 1.9rem; font: 400 1.55rem var(--font); cursor: pointer; transition: background .25s, border-color .25s; animation: tk-in .4s ease-out backwards; }
.tk-quick button:nth-child(2) { animation-delay: .08s; } .tk-quick button:nth-child(3) { animation-delay: .16s; } .tk-quick button:nth-child(n+4) { animation-delay: .24s; }
.tk-quick button:hover { background: rgba(233,185,73,.15); border-color: var(--gold); }
.tk-quick button.ghost { border-color: transparent; color: var(--bone-2); font-style: italic; }
.tk-quick button.ghost:hover { background: none; color: var(--gold); }
.tk-note { margin: 0; padding: 0 0 1.6rem; text-align: center; font: italic 1.15rem var(--font); color: #6d665c; }
/* rich messages */
.tk-memo { position: relative; max-width: 50rem; background: var(--paper); color: #2b2620; padding: 1.8rem 2.2rem 1.6rem; font: 400 1.55rem/1.65 var(--type); transform: rotate(-1deg);
  box-shadow: 0 14px 30px rgba(0,0,0,.5); background-image: radial-gradient(rgba(120,95,50,.12) 1px, transparent 1px); background-size: 5px 5px;
  clip-path: polygon(0 3%, 8% 0, 20% 3%, 34% 0, 48% 3%, 62% 0, 76% 3%, 90% 0, 100% 2%, 100% 97%, 90% 100%, 76% 97%, 62% 100%, 48% 97%, 34% 100%, 20% 97%, 8% 100%, 0 97%); }
.tk-msg:nth-child(even) .tk-memo { transform: rotate(1deg); }
.tk-memo p { margin: 0; } .tk-memo .stamp { display: inline-block; margin-bottom: .6rem; border: 2px solid #a3241c; color: #a3241c; padding: .1rem .7rem; font-size: 1.15rem; letter-spacing: .2em; text-transform: uppercase; transform: rotate(-2deg); }
.tk-heads { display: flex; gap: 1rem; flex-wrap: wrap; }
.tk-heads a { display: flex; flex-direction: column; align-items: center; text-decoration: none; width: 9.6rem; }
.tk-heads span { width: 8.4rem; height: 10.2rem; background: center/cover; transition: transform .4s cubic-bezier(.2,1.4,.3,1); filter: drop-shadow(0 8px 12px rgba(0,0,0,.5)); }
.tk-heads a:nth-child(odd) span { transform: rotate(-5deg); } .tk-heads a:nth-child(even) span { transform: rotate(4deg); }
.tk-heads a:hover span { transform: scale(1.1) rotate(0); }
.tk-heads b { margin-top: .5rem; font: 400 1.5rem var(--font); color: var(--gold); } .tk-heads i { font: normal var(--thin) 1.15rem/1.25 var(--font); text-align: center; color: var(--bone-2); }
.tk-doors { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; max-width: 64rem; }
.tk-doors div { display: flex; flex-direction: column; align-items: center; text-align: center; }
.tk-doors span { width: 9rem; height: 9rem; border-radius: 50%; background: center/cover; box-shadow: 0 0 0 2px var(--gold), 0 0 0 7px rgba(10,10,10,.6), 0 0 0 8px rgba(233,185,73,.3); margin-bottom: 1rem; }
.tk-doors div:nth-child(odd) span { transform: rotate(-10deg); }
.tk-doors b { font: var(--thin) 1.15rem var(--font); letter-spacing: .25em; text-transform: uppercase; color: var(--gold); margin-bottom: .3rem; }
.tk-doors i { font: normal 400 1.35rem/1.35 var(--font); color: var(--bone-2); }
.tk-card { background: var(--paper); color: #2b2620; border-radius: .8rem; padding: 2rem; display: grid; gap: 1.2rem; max-width: 56rem; }
.tk-card .k { margin: 0; font: var(--thin) 1.1rem var(--font); letter-spacing: .4em; text-transform: uppercase; color: #a07914; }
.tk-card .sq { margin: -.6rem 0 0; font: 400 2.1rem/1.2 var(--font); }
.tk-card .vs { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.tk-card .vs > div { border-radius: .6rem; padding: 1.1rem 1.3rem; font-size: 1.45rem; line-height: 1.45; }
.tk-card .straight { background: #ddd3bd; color: #6d655a; } .tk-card .straight s { text-decoration-color: rgba(163,36,28,.6); }
.tk-card .twist { background: #1a1816; color: var(--bone); }
.tk-card b { display: block; font: 600 1rem var(--font); letter-spacing: .24em; text-transform: uppercase; margin-bottom: .5rem; }
.tk-card .straight b { color: #8a8174; } .tk-card .twist b { color: var(--gold); }
.tk-card .row { font-size: 1.55rem; line-height: 1.45; } .tk-card .row b { color: #6b2a20; }
.tk-card .mind { display: flex; gap: 1.2rem; align-items: center; text-decoration: none; color: inherit; border-top: 1px solid rgba(43,38,32,.15); padding-top: 1.2rem; font-size: 1.45rem; line-height: 1.45; }
.tk-card .mind > span:first-child { flex: none; width: 5.2rem; height: 6.4rem; background: center/cover; }
.tk-card .mind b { color: #a07914; } .tk-card .mind em { font-style: normal; color: #a3241c; white-space: nowrap; }
.tk-form { width: 100%; display: grid; gap: 1rem; }
.tk-form textarea { width: 100%; resize: vertical; background: rgba(28,26,23,.9); border: 1px solid rgba(236,230,218,.2); border-radius: 1.2rem; color: var(--bone); padding: 1.3rem 1.6rem; font: 400 1.6rem/1.45 var(--font); outline: none; }
.tk-form textarea:focus { border-color: var(--gold); }
.tk-form > div { display: flex; flex-wrap: wrap; gap: .9rem; justify-content: flex-end; }
.tk-quick .tk-form button.go { background: var(--gold); color: var(--ink); border-color: var(--gold); font-weight: 600; }
/* the minimised chat */
.tk-bubble { position: fixed; z-index: 70; right: 2.4rem; bottom: 2.4rem; display: flex; align-items: center; gap: 1rem; padding: .8rem 1.8rem .8rem .8rem; border-radius: 99px;
  background: var(--gold); color: var(--ink); border: 0; cursor: pointer; font: 600 1.35rem var(--font); box-shadow: 0 10px 30px rgba(0,0,0,.5);
  transform: translateY(150%); transition: transform .5s cubic-bezier(.2,1.3,.3,1); }
.tk-bubble.on { transform: none; }
.tk-bubble img { width: 3.6rem; height: 3.6rem; padding: .7rem; border-radius: 50%; background: var(--ink); animation: tk-o 6s ease-in-out infinite; transform-origin: 50% 50%; }
@media (max-width: 749px) {
  .tk-head { padding: 1.6rem 2rem; } .tk-logo { height: 2.2rem; } .tk-min { font-size: 1rem; letter-spacing: .2em; }
  .tk-msg { font-size: 1.6rem; max-width: 90%; } .tk-quick button { font-size: 1.45rem; padding: .9rem 1.5rem; }
  .tk-doors { grid-template-columns: repeat(2, 1fr); } .tk-doors span { width: 7.4rem; height: 7.4rem; }
  .tk-heads a { width: 8.4rem; } .tk-heads span { width: 7.2rem; height: 8.8rem; }
  .tk-card .vs { grid-template-columns: 1fr; } .tk-form textarea { font-size: 16px; }
  .tk-bubble { right: 1.6rem; bottom: 1.6rem; }
}
@media (prefers-reduced-motion: reduce) { .tk-bg, .tk-bubble img { animation: none; } }
