/* IKONIST — Faz 1 prototype. One accent, hairlines, paper panels on charcoal. */

:root {
  /* Violet-black system (owner, 2026-11-11). One scale from ink to lilac, one electric accent. */
  --ink: #0b0a10;          /* violet-black ground */
  --ink-2: #14121c;
  --ink-3: #1d1a29;
  --bone: #ece9f3;
  --bone-dim: rgba(236, 233, 243, 0.6);
  --bone-faint: rgba(236, 233, 243, 0.32);
  --line: rgba(236, 233, 243, 0.12);
  --violet: #7b5cff;       /* the accent: active states, caret, focus */
  --violet-deep: #2b2060;
  --lilac: #cfc4ff;
  --signal: var(--violet);
  --accent: var(--bone);   /* primary buttons are bone on ink */
  --accent-ink: #0b0a10;
  --paper: #e9e6f0;
  --paper-ink: #121019;
  --paper-line: rgba(18, 16, 25, 0.16);
  --dot: 123, 92, 255;
  --dot-alpha: 0.34;
  --lens-ink: #0b0a10;
  --lens-violet: #6a4cf0;
  --lens-lilac: #d8ceff;

  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --sans: "Geist", "Helvetica Neue", Arial, sans-serif;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --mono: "Geist Mono", ui-monospace, Menlo, monospace;

  --gutter: clamp(16px, 2.2vw, 32px);
  --ease: cubic-bezier(0.2, 0.7, 0, 1);
  color-scheme: dark;
}

/* Consulting: same system, heavier and colder. The violet drains to slate. */
body[data-area="business-consulting"] {
  --signal: #a9a6c4;
  --violet: #a9a6c4;
  --paper: #e3e3e8;
  --dot: 150, 148, 180;
  --lens-violet: #55536e;
  --lens-lilac: #d9d8e6;
}
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 50; background: var(--accent); color: var(--accent-ink); padding: 10px 14px; font-family: var(--mono); font-size: 12px; }
.skip:focus { top: 12px; }
:focus-visible { outline: 1px solid var(--signal); outline-offset: 3px; }

#field { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }

/* ---------- loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 40; background: var(--ink);
  display: grid; place-items: center; transition: opacity 0.7s var(--ease), visibility 0.7s;
}
.loader-word {
  font-size: clamp(48px, 11vw, 168px); line-height: 1; clip-path: inset(0 100% 0 0);
  animation: wipe 1.1s var(--ease) 0.1s forwards;
}
.loader-count { position: absolute; right: var(--gutter); bottom: var(--gutter); color: var(--bone-dim); }
.loader.done { opacity: 0; visibility: hidden; }
@keyframes wipe { to { clip-path: inset(0 0 0 0); } }

/* ---------- frame ---------- */
.frame {
  position: relative; z-index: 1; height: 100dvh;
  display: grid; grid-template-columns: 288px minmax(0, 1.15fr) minmax(0, 0.85fr);
}

/* ---------- rail ---------- */
.rail {
  display: flex; flex-direction: column; justify-content: space-between; gap: 32px;
  padding: var(--gutter); border-right: 1px solid var(--line);
  background: linear-gradient(to right, var(--ink) 60%, transparent);
}
/* Wordmark: Optima Semi Bold. Replace with the official SVG logo when it arrives;
   until then the font stack falls back to Apple's Optima (Bold) and close humanist sans faces. */
.wordmark, .loader-word {
  font-family: "Optima nova", "Optima LT Std", "Optima", "URW Classico", "Candara", "Segoe UI", sans-serif;
  font-weight: 600; font-variation-settings: normal; letter-spacing: 0.06em; text-transform: uppercase;
}
.wordmark { display: inline-block; text-decoration: none; font-size: 32px; line-height: 1; }
.tag { color: var(--bone-dim); margin: 10px 0 0; }
.areas ol { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.areas li { border-bottom: 1px solid var(--line); }
.area {
  width: 100%; display: grid; grid-template-columns: 30px 1fr 10px; align-items: center; gap: 8px;
  padding: 13px 0; background: none; border: 0; text-align: left; cursor: pointer; color: var(--bone-dim);
  transition: color 0.3s;
}
.area .t { font-size: 15px; font-variation-settings: "wdth" 110; font-weight: 500; }
.area .dot { width: 7px; height: 7px; border-radius: 50%; border: 1px solid var(--bone-faint); transition: background 0.3s, border-color 0.3s, box-shadow 0.3s; }
.area:hover { color: var(--bone); }
.area.on { color: var(--bone); }
.area.on .dot { background: var(--signal); border-color: var(--signal); box-shadow: 0 0 0 4px rgba(123, 92, 255, 0.2); }
.readout { margin: 0; display: grid; gap: 6px; color: var(--bone-dim); }
.readout div { display: grid; grid-template-columns: 82px 1fr; }
.readout dt { color: var(--bone-faint); }
.readout dd { margin: 0; }
.rail-foot { display: grid; gap: 8px; color: var(--bone-dim); }
.rail-foot a { text-decoration: none; }
.rail-foot a:hover { color: var(--signal); }
.badge { color: var(--accent); }

/* ---------- conversation ---------- */
.talk { display: flex; flex-direction: column; min-height: 0; padding: 0 var(--gutter); }
.thread {
  flex: 1; overflow-y: auto; padding: 18vh 0 24px; scrollbar-width: none;
  mask-image: linear-gradient(to bottom, transparent 0, #000 16vh);
}
.thread::-webkit-scrollbar { display: none; }

.msg { margin: 0 0 30px; transition: opacity 0.6s var(--ease); animation: rise 0.7s var(--ease) both; }
.msg.old { opacity: 0.34; }
.msg.ik p {
  margin: 0; max-width: 24ch; font-family: var(--serif); font-weight: 300;
  font-size: clamp(26px, 2.5vw, 40px); line-height: 1.16; letter-spacing: -0.012em;
}
.msg.ik p + p { margin-top: 0.5em; }
.msg.ik.lead p:first-child { color: var(--bone-dim); }
/* consulting speaks in the same serif as every other area (owner, 2026-11-14) */
.msg.you { display: grid; grid-template-columns: 52px 1fr; gap: 10px; color: var(--bone-dim); }
.msg.you .who { color: var(--bone-faint); padding-top: 4px; }
.msg.you p { margin: 0; font-size: 17px; line-height: 1.45; max-width: 52ch; white-space: pre-wrap; }
.msg.notice p { font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em; color: var(--signal); max-width: 52ch; }
.streaming p:last-child::after {
  content: ""; display: inline-block; width: 0.5em; height: 0.9em; margin-left: 0.12em;
  background: var(--signal); vertical-align: -0.08em; animation: blink 0.9s steps(1) infinite;
}
.thinking { display: flex; gap: 6px; padding: 14px 0; }
.thinking i { width: 6px; height: 6px; border-radius: 50%; background: var(--signal); animation: pulse 1.1s var(--ease) infinite; }
.thinking i:nth-child(2) { animation-delay: 0.15s; }
.thinking i:nth-child(3) { animation-delay: 0.3s; }

@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes pulse { 0%, 100% { opacity: 0.2; transform: scale(0.7); } 50% { opacity: 1; transform: scale(1); } }

/* ---------- input ---------- */
.say { padding: 14px 0 var(--gutter); border-top: 1px solid var(--line); background: linear-gradient(to top, var(--ink) 70%, transparent); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.chips[hidden] { display: none; }
.chip {
  background: none; border: 1px solid var(--line); border-radius: 999px; padding: 8px 13px;
  color: var(--bone-dim); cursor: pointer; transition: border-color 0.25s, color 0.25s;
}
.chip:hover { border-color: var(--accent); color: var(--bone); }
.say-row { display: grid; grid-template-columns: 26px 1fr auto; align-items: end; gap: 10px; border-bottom: 1px solid var(--bone-faint); padding-bottom: 10px; }
.say-row:focus-within { border-color: var(--signal); }
.caret { color: var(--signal); font-size: 18px; padding-bottom: 6px; }
textarea {
  width: 100%; resize: none; background: transparent; border: 0; outline: none; max-height: 30vh;
  font-size: clamp(19px, 1.6vw, 24px); line-height: 1.35; padding: 2px 0; color: var(--bone);
  font-variation-settings: "wdth" 100;
}
textarea::placeholder { color: var(--bone-faint); }
textarea:focus-visible { outline: none; }
.send {
  background: var(--accent); color: var(--accent-ink); border: 0; border-radius: 999px;
  padding: 10px 16px; cursor: pointer; transition: transform 0.25s var(--ease), opacity 0.25s;
}
.send:hover { transform: translateX(3px); }
.send:disabled { opacity: 0.35; cursor: default; transform: none; }
.hint { color: var(--bone-faint); margin: 10px 0 0; text-transform: none; letter-spacing: 0.02em; font-size: 10px; }
.hint a { color: var(--bone-dim); text-underline-offset: 3px; text-decoration-color: rgba(236, 233, 243, .3); }
.hint a:hover { color: var(--bone); }

/* ---------- stage ---------- */
.stage { position: relative; min-height: 0; border-left: 1px solid var(--line); overflow-y: auto; scrollbar-width: none; }
.stage::-webkit-scrollbar { display: none; }
.orbit {
  position: sticky; top: 0; height: 100dvh; display: grid; place-items: center; align-content: center; gap: 18px;
  transition: height 0.9s var(--ease), opacity 0.9s var(--ease);
}
.orbit svg { width: min(78%, 440px); overflow: visible; transition: width 0.9s var(--ease); }
.ring { fill: none; stroke: var(--bone-faint); stroke-width: 1; stroke-dasharray: 1 6; vector-effect: non-scaling-stroke; }
.r2 { stroke-dasharray: 1 4; }
.core { fill: var(--signal); }
.spokes { transform-origin: 0 0; transition: transform 1.6s var(--ease); }
.node circle { fill: var(--ink); stroke: var(--bone-dim); stroke-width: 1; vector-effect: non-scaling-stroke; transition: fill 0.4s, stroke 0.4s, r 0.4s; }
.node.on circle { fill: var(--signal); stroke: var(--signal); r: 7; }
.orbit-cap { color: var(--bone-faint); margin: 0; text-align: center; }
.stage.has-cards .orbit { height: 210px; opacity: 0.85; }
.stage.has-cards .orbit svg { width: 150px; }
.stage.has-cards .orbit-cap { display: none; }
.cards { display: grid; gap: 14px; padding: 0 var(--gutter) var(--gutter); }

/* ---------- cards ---------- */
.card {
  background: var(--paper); color: var(--paper-ink); padding: clamp(20px, 2vw, 30px); border-radius: 3px;
  animation: lift 0.9s var(--ease) both;
}
@keyframes lift { from { opacity: 0; transform: translateY(30px); clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
.card .k { display: flex; justify-content: space-between; color: rgba(21, 21, 19, 0.55); margin: 0 0 22px; }
.card h2 {
  margin: 0 0 18px; font-weight: 800; font-variation-settings: "wdth" 125; text-transform: uppercase;
  font-size: clamp(30px, 3vw, 50px); line-height: 0.9; letter-spacing: -0.01em;
}
.card p { font-family: var(--serif); font-size: 17px; line-height: 1.45; margin: 0 0 12px; }
.card .sub { border-top: 1px solid var(--paper-line); margin-top: 18px; padding-top: 14px; }
.card .sub .mono { color: rgba(21, 21, 19, 0.55); margin: 0 0 6px; }
.card .sub p { font-family: var(--display); font-size: 14px; line-height: 1.5; }

.work .art {
  aspect-ratio: 4 / 3; margin: -6px 0 18px; border-radius: 2px; position: relative; overflow: hidden;
  background:
    radial-gradient(circle at 50% 50%, #1d7a12 1.4px, transparent 1.9px) 0 0 / 8px 8px,
    radial-gradient(120% 90% at 30% 20%, #0f1a0c, #050604);
}
.work .art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.work .art span {
  position: absolute; left: 14px; bottom: 12px; right: 14px; font-weight: 800; font-variation-settings: "wdth" 125;
  text-transform: uppercase; font-size: 22px; line-height: 0.95; color: var(--bone);
}
.work h3 { margin: 0 0 10px; font-size: 22px; font-weight: 600; font-variation-settings: "wdth" 110; }
.work dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; margin: 0 0 14px; }
.work dt { color: rgba(21, 21, 19, 0.5); }
.work dd { margin: 0; }
.work .draft { color: #8a5a00; }

.brief { background: var(--ink-2); color: var(--bone); border: 1px solid var(--signal); }
.brief .k { color: var(--bone-faint); }
.brief .k b { color: var(--signal); font-weight: 500; }
.brief dl { display: grid; grid-template-columns: 110px 1fr; gap: 8px 12px; margin: 0; font-size: 14px; }
.brief dt { color: var(--bone-faint); }
.brief dd { margin: 0; }

.meeting { background: var(--accent); color: var(--accent-ink); }
.meeting .k { color: rgba(17, 17, 15, 0.6); }
.meeting a {
  display: flex; justify-content: space-between; align-items: end; text-decoration: none;
  font-weight: 800; font-variation-settings: "wdth" 125; text-transform: uppercase;
  font-size: clamp(26px, 2.4vw, 40px); line-height: 0.92;
}
.meeting a span { transition: transform 0.3s var(--ease); }
.meeting a:hover span { transform: translateX(6px); }

/* ---------- language switch ---------- */
.lang { display: flex; gap: 4px; margin-bottom: 6px; }
.lang button {
  background: none; border: 1px solid var(--line); border-radius: 999px; padding: 5px 10px; cursor: pointer;
  color: var(--bone-dim); font: inherit; letter-spacing: inherit; text-transform: inherit;
}
.lang button[aria-pressed="true"] { border-color: var(--bone); color: var(--bone); }
.lang button:hover { color: var(--bone); }

/* ---------- choices (the visitor's answers, in their own words) ---------- */
.choices { display: grid; gap: 6px; margin: 0 0 16px; }
.choices[hidden] { display: none; }
.choice {
  display: grid; grid-template-columns: 26px 1fr; align-items: baseline; gap: 10px; width: 100%;
  text-align: left; background: rgba(235, 230, 218, 0.03); border: 1px solid var(--line); border-radius: 3px;
  padding: 11px 14px; cursor: pointer; color: var(--bone);
  font-size: 16px; font-variation-settings: "wdth" 100; line-height: 1.3;
  transition: border-color 0.25s, background 0.25s, transform 0.35s var(--ease);
  animation: rise 0.6s var(--ease) both;
}
.choice .key { color: var(--bone-faint); font-size: 10px; }
.choice:hover, .choice:focus-visible { border-color: var(--signal); background: rgba(235, 230, 218, 0.06); transform: translateX(4px); outline: none; }
.choice:hover .key, .choice:focus-visible .key { color: var(--signal); }
.choice.ghost { grid-template-columns: 1fr; background: none; border-style: dashed; color: var(--bone-dim); width: auto; justify-self: start; padding: 8px 14px; font-size: 14px; }

.say.locked .say-row { opacity: 0.45; }
.nw { white-space: nowrap; }
.msg.you.skipped p { color: var(--bone-faint); font-style: italic; }

/* recap list inside an IKONIST message (consulting check-back) */
.recap { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 18px 0 0; padding: 14px 0 0; border-top: 1px solid var(--line); color: var(--bone-dim); max-width: 46ch; }
.recap dt { color: var(--bone-faint); }
.recap dd { margin: 0; color: var(--bone); text-transform: none; letter-spacing: 0.02em; font-size: 12px; }

/* ---------- brief form (inline in the conversation, rebuilt 2026-11-13) ---------- */
.card.contact { max-width: 620px; margin: 0 0 30px; display: grid; gap: 18px; padding: 24px; border: 1px solid rgba(236,233,243,.14); border-radius: 18px;
  background: radial-gradient(ellipse 80% 70% at 100% 0%, rgba(123,92,255,.16), transparent 60%), rgba(16,14,23,.92); }
.contact .k { margin: 0; color: var(--bone-faint); }
.contact-lead { margin: 0 !important; font: 300 15.5px/1.55 var(--sans) !important; color: var(--bone-dim); max-width: 52ch; }
.fgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 14px; }
.fgrid .fld:last-child { grid-column: 1 / -1; }
.fld { display: grid; gap: 7px; min-width: 0; }
.fld-l { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.fld-l label { font: 500 11px/1.2 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--bone); }
.fld-tag { font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--bone-faint); }
.fld.req .fld-tag { color: var(--violet-2, #a28dff); }
.fld input { width: 100%; min-height: 50px; padding: 13px 15px; border: 1px solid rgba(236,233,243,.2); border-radius: 12px; background: rgba(236,233,243,.045);
  color: var(--bone); font: 400 16px/1.3 var(--sans); caret-color: var(--signal); transition: border-color .25s, background .25s, box-shadow .25s; -webkit-appearance: none; appearance: none; }
.fld input::placeholder { color: rgba(236,233,243,.34); }
.fld input:hover { border-color: rgba(236,233,243,.34); }
.fld input:focus { outline: none; border-color: var(--signal); background: rgba(123,92,255,.08); box-shadow: 0 0 0 4px rgba(123,92,255,.18); }
.fld input:-webkit-autofill { -webkit-text-fill-color: var(--bone); -webkit-box-shadow: 0 0 0 40px #1a1726 inset; caret-color: var(--bone); }
.fld-e { margin: 0 !important; min-height: 0; font: 400 12.5px/1.4 var(--sans) !important; color: #ffa799; }
.fld-e:empty { display: none; }
.fld.bad input { border-color: #ff8a78; box-shadow: 0 0 0 4px rgba(255,138,120,.14); }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; margin: 0 !important; }
.consent { position: relative; display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; cursor: pointer; font: 400 13.5px/1.5 var(--sans); color: var(--bone-dim); }
.consent input { position: absolute; opacity: 0; width: 22px; height: 22px; margin: 0; cursor: pointer; }
.consent .box { width: 22px; height: 22px; border-radius: 6px; border: 1px solid rgba(236,233,243,.34); background: rgba(236,233,243,.045); display: grid; place-items: center; transition: background .2s, border-color .2s; }
.consent .box::after { content: ""; width: 10px; height: 6px; border: 2px solid var(--ink); border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px) scale(0); transition: transform .2s var(--ease); }
.consent input:checked + .box { background: var(--bone); border-color: var(--bone); }
.consent input:checked + .box::after { transform: rotate(-45deg) translate(1px, -1px) scale(1); }
.consent input:focus-visible + .box { outline: 2px solid var(--signal); outline-offset: 3px; }
.consent.bad .box { border-color: #ff8a78; }
.consent a { color: var(--bone); text-underline-offset: 3px; }
.consent-e { margin-top: -10px !important; padding-left: 34px; }
.contact .error { margin: 0 !important; font: 400 13.5px/1.5 var(--sans) !important; color: #ffa799; }
.contact .error:empty { display: none; }
.actions { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; padding-top: 4px; }
.submit { display: inline-flex; align-items: center; gap: 12px; min-height: 50px; padding: 0 22px; border: 0; border-radius: 999px; background: var(--bone); color: var(--ink); font: 500 12px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; cursor: pointer; transition: background .3s, transform .3s var(--ease); }
.submit i { font-style: normal; transition: transform .4s var(--ease); }
.submit:hover { background: var(--lilac); }
.submit:hover i { transform: translateX(4px); }
.submit:disabled { cursor: progress; opacity: .75; }
.submit.busy i { animation: send-pulse 1s var(--ease) infinite; }
@keyframes send-pulse { 50% { transform: translateX(6px); opacity: .4; } }
.later { background: none; border: 0; color: var(--bone-faint); cursor: pointer; text-decoration: underline; text-underline-offset: 4px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; padding: 8px 0; }
.later:hover { color: var(--bone); }
.contact :focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; }
.contact .fld input:focus-visible { outline: none; }
@media (max-width: 640px) {
  .card.contact { padding: 18px; border-radius: 14px; gap: 16px; }
  .fgrid { grid-template-columns: 1fr; }
  .actions { flex-direction: column; align-items: stretch; gap: 8px; }
  .submit { justify-content: center; }
}

/* ---------- narrow screens: one column, cards inline in the thread ---------- */
@media (max-width: 1100px) {
  .frame { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .rail { flex-direction: row; align-items: center; padding: 14px var(--gutter); border-right: 0; border-bottom: 1px solid var(--line); background: var(--ink); }
  .rail .tag, .readout, .rail-foot, .areas .label { display: none; }
  .wordmark { font-size: 24px; }
  .areas ol { display: flex; gap: 14px; border: 0; }
  .areas li { border: 0; }
  .area { grid-template-columns: auto; padding: 4px; }
  .area .n, .area .t { display: none; }
  .area .dot { width: 9px; height: 9px; }
  .stage { display: none; }
  .thread { padding-top: 10vh; }
  .thread .card { margin: 0 0 24px; }
  .msg.ik p { max-width: 30ch; }
  .choices { gap: 5px; margin-bottom: 12px; }
  .choice { padding: 9px 12px; font-size: 15px; }
  .choice .key { display: none; }
  .choice { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .msg.you { grid-template-columns: 1fr; gap: 2px; }
  .hint { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .loader { display: none; }
}

.work .buy { display: inline-block; margin-top: 4px; color: var(--paper-ink); text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.work .art img { aspect-ratio: auto; }

/* ---------- area conversation pages ---------- */
body.talkpage { font-family: var(--sans); }
body.talkpage .loader-word { font-family: var(--display); font-weight: 800; font-variation-settings: "wdth" 62; text-transform: uppercase; letter-spacing: -0.005em; font-size: clamp(48px, 10vw, 180px); }
body.talkpage #field { pointer-events: none; }
body.talkpage::before { /* keeps the thread readable over the form */
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(11,10,16,.96) 0%, rgba(11,10,16,.9) 45%, rgba(11,10,16,.2) 78%, rgba(11,10,16,.35) 100%);
}
a.area { text-decoration: none; }
.rail-area { display: grid; gap: 8px; padding: 18px 0 0; border-top: 1px solid var(--line); }
.rail-area .label { color: var(--violet); margin: 0; }
.rail-title { margin: 0; font-family: var(--display); font-weight: 800; font-variation-settings: "wdth" 62; text-transform: uppercase; font-size: 46px; line-height: .88; letter-spacing: -.005em; }
.rail-line { margin: 0; color: var(--bone-dim); font-size: 13px; line-height: 1.45; }
.stage { border-left: 1px solid var(--line); background: transparent; }

/* media stage (sound, story) */
.stage-media { position: relative; margin: 0; aspect-ratio: 4 / 3; overflow: hidden; border-bottom: 1px solid var(--line); }
.stage-media img, .stage-media video { width: 100%; height: 100%; object-fit: cover; display: block; }
.stage-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(11,10,16,.8), rgba(11,10,16,0) 42%); pointer-events: none; }
.stage-media figcaption { position: absolute; left: 20px; right: 20px; bottom: 16px; z-index: 1; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.stage-media figcaption b { font-family: var(--display); font-weight: 800; font-variation-settings: "wdth" 62; text-transform: uppercase; font-size: 26px; line-height: 1; }
.stage-media figcaption span { color: var(--bone-dim); }

.talk-seo { position: relative; z-index: 2; padding: 40px var(--gutter); max-width: 70ch; }
@media (max-width: 1100px) {
  .rail-area, .rail .readout { display: none; }
  body.talkpage::before { background: rgba(11,10,16,.84); }
}
@media (prefers-reduced-motion: reduce) {
  .wf::after, .ev-bar i, .ev-ok { animation: none; }
  .ev-ok { opacity: 1; }
}

/* conversation cards: same quiet editorial language as the stage column */
.cards { padding: 0; gap: 0; }
.card { background: rgba(11,10,16,.7); color: var(--bone); border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 24px 26px 26px; box-shadow: none; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.card .k { color: var(--bone-faint); margin: 0 0 14px; font-size: 10.5px; }
.card h2 { color: var(--bone); }
.card p { font-family: var(--sans); font-size: 13.5px; line-height: 1.55; color: var(--bone-dim); }
.card .sub { border-top-color: var(--line); }
.card .sub .mono { color: var(--bone-faint); }
.work .art { border-radius: 4px; overflow: hidden; background: var(--ink-2); aspect-ratio: 1; margin-bottom: 14px; }
.work .art img { aspect-ratio: 1; width: 100%; height: 100%; object-fit: cover; filter: grayscale(.4) brightness(.9); transition: filter .8s var(--ease); }
.work:hover .art img { filter: none; }
.work h3 { font-family: var(--display); font-weight: 800; font-variation-settings: "wdth" 62; text-transform: uppercase; font-size: 26px; line-height: .95; color: var(--bone); margin: 0 0 10px; }
.work dt { color: var(--bone-faint); }
.work dd { color: var(--bone-dim); }
.work .buy { color: var(--bone); border-bottom-color: var(--signal); }
@media (max-width: 1100px) { .thread .card { border: 1px solid var(--line); border-radius: 10px; } }

/* rail refinements: no numbering, quiet tagline */
.area { grid-template-columns: 1fr 10px; }
.rail .tag { font-size: 8.5px; letter-spacing: .2em; color: var(--bone-faint); white-space: nowrap; margin-top: 12px; }
.rail-top { display: grid; gap: 0; }

/* rail, compact (2026-11-12) */
.rail-area { padding-top: 16px; gap: 6px; }
.rail-title { font-size: 34px; line-height: .9; }
html:lang(tr) .rail-title { line-height: .96; }
.rail-line { font-size: 12px; }
.areas .label { font-size: 9.5px; letter-spacing: .16em; color: var(--bone-faint); }
.area { padding: 10px 0; }
.area .t { font-size: 13px; }
.readout { gap: 3px; font-size: 9.5px; letter-spacing: .1em; }
.readout div { grid-template-columns: 70px 1fr; }
.readout dt { color: var(--bone-faint); }
.readout dd { color: var(--bone-dim); font-variant-numeric: tabular-nums; }
/* rail dock: contact, overview and language as one instrument (2026-11-13) */
.rail-foot { gap: 0; }
.dock { display: grid; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: rgba(20, 18, 28, .55); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.dock-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 44px; padding: 0 14px; text-decoration: none; border-bottom: 1px solid var(--line); transition: background .3s, color .3s; }
.dock .mailx.dock-mail { width: auto; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 0 14px 0 12px; font-size: 13px; color: var(--bone); background: none; }
.dock .mailx.dock-mail span { flex: 1; }
.dock .mailx.dock-mail .mailx-arrow { opacity: .5; transform: none; }
.dock .mailx.dock-mail:hover { background: rgba(123, 92, 255, .1); }
.dock .mailx.dock-mail:hover .mailx-arrow { opacity: 1; transform: translateX(3px); }
.rail-foot .classic { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--bone-dim); }
.rail-foot .classic i { font-style: normal; color: var(--bone-faint); transition: transform .4s var(--ease), color .3s; }
.rail-foot .classic:hover { color: var(--bone); background: rgba(236, 233, 243, .04); }
.rail-foot .classic:hover i { color: var(--signal); transform: translate(2px, -2px); }
.dock-lang { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin: 0; padding: 5px; }
.dock-lang::before { content: ""; position: absolute; top: 5px; bottom: 5px; left: 5px; width: calc(50% - 5px); border-radius: 9px; background: var(--bone); transition: transform .45s var(--ease); }
html[lang="tr"] .dock-lang::before { transform: translateX(100%); }
.dock-lang button { position: relative; z-index: 1; border: 0; border-radius: 9px; padding: 7px 0; font-size: 10px; letter-spacing: .16em; color: var(--bone-dim); background: none; transition: color .3s; }
.dock-lang button[aria-pressed="true"] { color: var(--ink); }
.dock-lang button:not([aria-pressed="true"]):hover { color: var(--bone); }

/* ---------- mobile: stage as a sheet, compact cards (2026-11-13) ---------- */
.stage-open, .stage-head { display: none; }
@media (max-width: 1100px) {
  .rail { gap: 12px; }
  .stage-open { display: inline-flex; align-items: center; gap: 7px; margin-left: auto; order: 3; padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px; background: rgba(123,92,255,.12); color: var(--bone); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; cursor: pointer; }
  .stage-open i { width: 6px; height: 6px; border-radius: 50%; background: var(--violet); box-shadow: 0 0 0 3px rgba(123,92,255,.25); }
  .rail .areas { order: 2; }
  .stage { display: block !important; position: fixed; left: 0; right: 0; bottom: 0; top: 7vh; z-index: 60; border-left: 0; border-top: 1px solid var(--line); border-radius: 18px 18px 0 0;
    background: #0b0a10; overflow-y: auto; -webkit-overflow-scrolling: touch; transform: translateY(102%); transition: transform .55s var(--ease); box-shadow: 0 -30px 60px rgba(0,0,0,.6); }
  .stage.open { transform: none; }
  .stage-head { position: sticky; top: 0; z-index: 3; display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; background: rgba(11,10,16,.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
  .stage-head::before { content: ""; position: absolute; left: 50%; top: 6px; width: 36px; height: 4px; margin-left: -18px; border-radius: 2px; background: rgba(236,233,243,.25); }
  .stage-head .mono { font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--bone-dim); }
  .stage-close { all: unset; cursor: pointer; font: 500 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--bone-dim); padding: 6px 2px; }
  .stage-media { display: block; }
  .stage .sp, .stage .ds, .stage .ft, .stage .mi { padding-left: 18px; padding-right: 18px; }
  .stage .cards { display: none; }
  /* conversation cards inside the thread: compact, same language as the stage */
  .thread .card { padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: rgba(20,18,28,.85); margin: 0 0 22px; }
  .thread .card.work { display: grid; grid-template-columns: 76px 1fr; gap: 2px 14px; align-items: start; }
  .thread .card.work .k { grid-column: 1 / -1; margin-bottom: 10px; }
  .thread .card.work .art { grid-row: span 3; width: 76px; height: 76px; aspect-ratio: 1; margin: 0; border-radius: 6px; }
  .thread .card.work h3 { font-size: 20px; margin: 0 0 4px; }
  .thread .card.work dl { display: none; }
  .thread .card.work p { font-size: 12.5px; margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .thread .card.work .buy { grid-column: 2; font-size: 11px; }
  .thread .card.service h2 { font-size: 28px; }
}
@media (max-width: 1100px) {
  html:has(body.talkpage), body.talkpage { overflow-x: clip; }
  .frame { width: 100%; max-width: 100vw; }
  .rail { padding: 12px 16px; gap: 10px; min-width: 0; max-width: 100vw; }
  .rail .wordmark { font-size: 21px; }
  .rail .areas ol { gap: 2px; }
  .rail .area { padding: 6px 5px; }
  .rail .area .dot { width: 8px; height: 8px; }
  .stage-open { padding: 6px 10px; font-size: 10px; letter-spacing: .1em; flex: none; }
}
@media (max-width: 1100px) {
  .rail .area { grid-template-columns: auto; width: auto; }
  .rail .areas { flex: none; }
}
@media (max-width: 1100px) {
  .stage-media figcaption b { font-size: 20px; }
  .stage-media figcaption { flex-direction: column; align-items: flex-start; gap: 4px; }
}

/* book covers keep their own proportion; never cropped (2026-11-13) */
.work .art.book { aspect-ratio: 4 / 3; display: grid; place-items: center; padding: 18px 0;
  background: radial-gradient(ellipse 60% 70% at 50% 50%, rgba(123,92,255,.16), rgba(11,10,16,0) 70%), var(--ink-2); }
.work .art.book img { width: auto; height: 100%; max-width: 70%; aspect-ratio: 808 / 1172; object-fit: contain; border-radius: 2px;
  filter: none; box-shadow: 0 14px 28px -12px rgba(0,0,0,.9), 0 0 0 1px rgba(236,233,243,.06); }
@media (max-width: 1100px) {
  .thread .card.work .art.book { width: 76px; height: 106px; aspect-ratio: auto; padding: 0; background: none; }
  .thread .card.work .art.book img { width: 100%; height: 100%; max-width: none; object-fit: cover; }
}
/* page transition title: always centred */
body.talkpage .loader { text-align: center; }
body.talkpage .loader-word { display: block; max-width: 92vw; margin: 0 auto; text-align: center; line-height: .9; }
/* book covers: fixed inside the frame, whole cover visible at every width */
.work .art.book { position: relative; display: block; padding: 0; aspect-ratio: 4 / 3; height: auto; }
.work .art.book img { position: absolute; top: 7%; bottom: 7%; left: 0; right: 0; margin: auto; height: 86%; width: auto; max-width: 80%; aspect-ratio: 808 / 1172; object-fit: contain; }
@media (max-width: 1100px) {
  .thread .card.work .art.book { position: relative; width: 76px; height: 106px; aspect-ratio: auto; }
  .thread .card.work .art.book img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; }
}

/* ---------- mobile area strip: named tabs instead of bare dots (2026-11-13) ---------- */
.rail .ov-link { display: none; }
@media (max-width: 1100px) {
  .rail { flex-wrap: wrap; row-gap: 10px; padding-bottom: 10px; }
  .rail .areas { order: 5; flex: 1 0 100%; margin: 0 -16px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
    mask-image: linear-gradient(90deg, transparent 0, #000 14px, #000 calc(100% - 28px), transparent 100%); }
  .rail .areas::-webkit-scrollbar { display: none; }
  .rail .areas ol { display: flex; gap: 6px; padding: 0 16px; width: max-content; border: 0; }
  .rail .areas li { border: 0; }
  .rail .area { display: inline-flex; align-items: center; padding: 6px 12px 6px; border: 1px solid var(--line); border-radius: 999px; white-space: nowrap; color: var(--bone-dim); background: rgba(236,233,243,.02); }
  .rail .area .t { display: inline; font-size: 12px; font-weight: 500; }
  .rail .area .dot, .rail .area .n { display: none; }
  .rail .area.on { color: var(--bone); border-color: var(--violet); background: rgba(123,92,255,.16); }
  .rail .ov-link { display: block; }
  .rail .ov-link a { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; border: 1px dashed rgba(236,233,243,.22); color: var(--bone-faint); text-decoration: none; font-size: 12px; white-space: nowrap; }
  .stage-open { margin-left: auto; }
}

/* ---------- talk pages on short / landscape screens ---------- */
@media (max-width: 1100px) and (max-height: 560px) and (orientation: landscape) {
  .rail { flex-wrap: nowrap; padding: 8px 16px; gap: 12px; }
  .rail .wordmark { font-size: 18px; }
  .rail .areas { order: 2; flex: 1 1 auto; min-width: 0; margin: 0; }
  .rail .areas ol { padding: 0 8px; }
  .rail .area { padding: 4px 10px; }
  .rail .area .t, .rail .ov-link a { font-size: 11px; }
  .stage-open { order: 3; padding: 5px 10px; }
  .talk { padding: 0 24px; }
  .thread { padding: 14px 0 10px; mask-image: linear-gradient(to bottom, transparent 0, #000 22px); }
  .msg { margin-bottom: 14px; }
  .msg.ik p { font-size: 19px; line-height: 1.22; max-width: 52ch; }
  .msg.you, .msg.you p { font-size: 13px; }
  .choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; max-height: 34vh; overflow-y: auto; margin-bottom: 6px; }
  .choice { padding: 8px 12px; font-size: 13px; }
  .say .label, .say .hint { display: none; }
  .say-row { padding: 6px 0; }
  .say textarea { font-size: 15px; }
  .stage { top: 4vh; }
}
@media (min-width: 1101px) and (max-height: 760px) {
  .rail { padding-top: 18px; padding-bottom: 18px; gap: 18px; }
  .rail-title { font-size: 28px; }
  .readout { display: none; }
  .msg.ik p { font-size: clamp(22px, 2.1vw, 32px); }
}

/* sheet: dim the page with the sheet's own shadow, so nothing sits above it (2026-11-13) */
@media (max-width: 1100px) {
  .stage.open { box-shadow: 0 0 0 100vmax rgba(0,0,0,.6), 0 -30px 60px rgba(0,0,0,.6); }
  body.sheet .frame { z-index: 5; }
  .stage { overscroll-behavior: contain; touch-action: pan-y; }
  .stage-close { padding: 10px 4px; min-width: 64px; text-align: right; }
}
@media (max-width: 1100px) and (min-width: 600px) {
  .stage > *:not(.stage-head) { max-width: 600px; margin-left: auto; margin-right: auto; }
  .stage .stage-media { border-radius: 10px; overflow: hidden; margin-top: 16px; }
}
@media (max-width: 1100px) and (max-height: 560px) and (orientation: landscape) {
  .stage > *:not(.stage-head) { max-width: 520px; }
  .stage .ft-hero { aspect-ratio: 16 / 9; }
}

/* ---------- Insights entry points on the conversation pages (2026-11-13) ---------- */
.ins-pill { display: inline-flex; align-items: center; gap: 8px; padding: 8px 13px 7px; border: 1px solid rgba(236,233,243,.22); border-radius: 999px; color: var(--bone); text-decoration: none; font: 500 10.5px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; transition: border-color .3s, background .3s; }
.ins-pill i { width: 6px; height: 6px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 0 3px rgba(123,92,255,.2); }
.ins-pill:hover { border-color: var(--signal); background: rgba(123,92,255,.14); }
.iknst { display: inline-flex; align-items: baseline; gap: 6px; padding: 5px 10px 4px; border-radius: 999px; background: var(--bone); color: var(--ink); font-size: 10px; letter-spacing: .08em; text-transform: lowercase; line-height: 1; }
.iknst b { font-weight: 700; }
.stage-bar { position: sticky; top: 0; z-index: 6; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 18px; background: rgba(11,10,16,.78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.rail-ins { display: none; }
@media (max-width: 1100px) {
  .stage-bar { display: none; }
  .rail-ins { display: inline-flex; align-items: center; order: 3; margin-left: auto; padding: 6px 11px; border: 1px solid rgba(236,233,243,.2); border-radius: 999px; color: var(--bone); text-decoration: none; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; flex: none; white-space: nowrap; }
  .rail-ins:hover { border-color: var(--signal); }
  .rail .stage-open { margin-left: 0; }
}
@media (max-width: 360px) {
  .rail .wordmark { font-size: 18px; }
  .rail-ins, .stage-open { padding: 5px 8px; letter-spacing: .06em; }
}
/* the brief form keeps its own frame wherever the thread cards are restyled */
.thread .card.contact { padding: 24px; border: 1px solid rgba(236,233,243,.14); border-radius: 18px; background: radial-gradient(ellipse 80% 70% at 100% 0%, rgba(123,92,255,.16), transparent 60%), rgba(16,14,23,.94); }
@media (max-width: 640px) { .thread .card.contact { padding: 18px; border-radius: 14px; } }
.contact, .contact * { box-sizing: border-box; }
.contact .fld-e, .contact .contact-lead + .fgrid .fld-e, .contact p.consent-e { color: #ffa799; }
.contact .fld-e { font-size: 12.5px !important; line-height: 1.4 !important; margin: 0 !important; }
.fld { align-content: start; }

/* ---------- conversation pages: logo lockup (2026-11-13) ----------
   Wordmark and line as one locked unit, exactly the same width, one colour (reversed on dark),
   no added elements. SVG textLength keeps the two widths equal whatever font the system uses. */
.rail-top { display: block; padding-bottom: 6px; }
.lockup { display: block; width: min(100%, 200px); text-decoration: none; color: var(--bone); }
.lockup svg { display: block; width: 100%; height: auto; overflow: visible; }
.lk-w { font-family: "Optima nova", "Optima LT Std", "Optima", "URW Classico", "Candara", "Segoe UI", sans-serif; font-weight: 600; font-size: 43px; fill: var(--bone); }
.lk-t { font-family: var(--mono); font-weight: 500; font-size: 8.2px; fill: rgba(236,233,243,.55); transition: fill .4s; }
.lockup:hover .lk-t, .lockup:focus-visible .lk-t { fill: var(--bone); }
.lockup:focus-visible { outline: 2px solid var(--signal); outline-offset: 6px; }
.rail-wm { display: none; color: var(--bone); }
@media (max-width: 1100px) {
  .lockup { display: none; }
  .rail-wm { display: inline-block; font-size: 21px; }
}


/* stage bar: the Insights link sits on the right edge, in line with the header grid */
.stage-bar { justify-content: flex-end; }

/* ---------- answer box (2026-11-14): a clear composer card, not a bare underline ---------- */
.say { padding: 10px 0 calc(var(--gutter) + env(safe-area-inset-bottom)); border-top: 0; background: linear-gradient(to top, var(--ink) 78%, rgba(11,10,16,0)); }
.say > .label { display: block; margin: 0 0 8px 4px; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--bone-dim); }
.say-row { grid-template-columns: 22px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 8px 8px 8px 16px; border: 1px solid rgba(236,233,243,.2); border-radius: 18px;
  background: rgba(22,20,31,.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 18px 40px -22px rgba(0,0,0,.9); transition: border-color .3s, box-shadow .3s, opacity .3s; }
.say:not(.locked) .say-row { border-color: rgba(162,141,255,.45); }
.say-row:focus-within { border-color: var(--signal); box-shadow: 0 0 0 4px rgba(123,92,255,.18), 0 18px 40px -22px rgba(0,0,0,.9); }
.caret { padding: 0; font-size: 16px; line-height: 1; align-self: center; }
.say textarea { font-family: var(--sans); font-size: 17px; line-height: 1.4; padding: 8px 0; min-height: 40px; letter-spacing: 0; }
.say textarea::placeholder { color: rgba(236,233,243,.42); font-family: var(--sans); }
.say .send { min-height: 42px; padding: 0 18px; border-radius: 12px; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; display: inline-flex; align-items: center; gap: 8px; }
.say.locked .say-row { opacity: .7; background: rgba(22,20,31,.7); }
.say.locked .caret { color: var(--bone-faint); }
.say.ready .say-row { animation: say-ready 1.4s var(--ease) 1; }
@keyframes say-ready { 0% { box-shadow: 0 0 0 0 rgba(123,92,255,.55); } 100% { box-shadow: 0 0 0 14px rgba(123,92,255,0); } }
.say .hint { margin: 8px 0 0 4px; }
@media (max-width: 1100px) {
  .say { padding: 8px 0 calc(12px + env(safe-area-inset-bottom)); }
  .say > .label { display: none; }
  .say-row { padding: 6px 6px 6px 14px; border-radius: 16px; }
  .say textarea { font-size: 16px; min-height: 38px; }
  .say .send { min-height: 40px; padding: 0 14px; }
}
@media (max-width: 1100px) and (max-height: 560px) and (orientation: landscape) {
  .say { padding-bottom: calc(8px + env(safe-area-inset-bottom)); }
  .say-row { padding: 4px 4px 4px 12px; }
  .say textarea { min-height: 32px; padding: 4px 0; font-size: 15px; }
  .say .send { min-height: 34px; }
}
@media (prefers-reduced-motion: reduce) { .say.ready .say-row { animation: none; } }

/* talk pages: no default body margin (it pushed the 100dvh frame 16px past the screen) */
html, body { margin: 0; }

/* ══════════ conversation pages on phones and tablets, v4 (2026-11-14) ══════════
   One header, two rows, one grammar:
   row 1 = the site header everywhere else (wordmark | language · Insights · menu, all 40px tall);
   row 2 = one joined instrument: the area you are in (label + name, opens the list) and Explore.
   The list under it holds the five areas and the overview. Desktop (>1100px) is untouched.   */
.rail-bar, .ctx { display: none; }
@media (max-width: 1100px) {
  .rail { position: relative; z-index: 30; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "logo bar" "ctx ctx";
    align-items: center; column-gap: 12px; row-gap: 14px; flex-wrap: nowrap;
    padding: calc(14px + env(safe-area-inset-top)) var(--gutter) 14px;
    background: linear-gradient(180deg, rgba(11,10,16,.98), rgba(11,10,16,.92)); border-bottom: 1px solid var(--line); }
  .rail-top { grid-area: logo; padding: 0; display: flex; align-items: center; }
  .rail-wm { font-size: 24px !important; line-height: 1; }
  .rail-ins { display: none !important; }
  /* row 1 tools: three controls, one height */
  .rail-bar { grid-area: bar; display: flex; align-items: center; gap: 8px; }
  .rail-lang { display: grid; place-items: center; width: 40px; height: 40px; box-sizing: border-box; border: 1px solid rgba(236,233,243,.22); border-radius: 50%;
    color: var(--bone); text-decoration: none; font-size: 11px; letter-spacing: .08em; background: rgba(20,18,28,.5); transition: border-color .3s, background .3s; }
  .rail-lang:hover { border-color: var(--violet); background: rgba(123,92,255,.14); }
  .rail-bar .ins-pill { height: 40px; box-sizing: border-box; padding: 0 15px; gap: 8px; font-size: 10.5px; letter-spacing: .12em; }
  /* row 2: the instrument */
  .ctx { grid-area: ctx; display: grid; grid-template-columns: minmax(0, 1fr) auto; height: 56px; box-sizing: border-box; overflow: hidden;
    border: 1px solid rgba(236,233,243,.14); border-radius: 16px;
    background: linear-gradient(180deg, rgba(236,233,243,.055), rgba(236,233,243,.02)); transition: border-color .3s; }
  .rail.pick .ctx { border-color: rgba(162,141,255,.6); }
  .area-pick { all: unset; box-sizing: border-box; display: grid; grid-template-columns: minmax(0, 1fr) 14px; grid-template-rows: auto auto; align-content: center; column-gap: 12px; row-gap: 3px;
    padding: 0 16px 0 18px; height: 100%; cursor: pointer; color: var(--bone); min-width: 0; transition: background .3s; }
  .area-pick .ap-k { grid-column: 1; font-size: 9.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--bone-faint); line-height: 1; }
  .area-pick .ap-n { grid-column: 1; font-family: var(--display); font-weight: 800; font-variation-settings: "wdth" 62; text-transform: uppercase; font-size: 21px; line-height: .95; letter-spacing: .005em;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .area-pick svg { grid-column: 2; grid-row: 1 / span 2; align-self: center; width: 14px; height: 14px; fill: none; stroke: var(--bone-dim); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; transition: transform .35s var(--ease), stroke .3s; }
  .area-pick:hover, .rail.pick .area-pick { background: rgba(236,233,243,.04); }
  .area-pick:hover svg, .rail.pick .area-pick svg { stroke: var(--bone); }
  .rail.pick .area-pick svg { transform: rotate(180deg); }
  .area-pick:focus-visible, .stage-open:focus-visible { outline: 2px solid var(--violet); outline-offset: -4px; border-radius: 14px; }
  .rail .stage-open { all: unset; box-sizing: border-box; display: flex; align-items: center; justify-content: center; gap: 10px; height: 100%; padding: 0 20px;
    border-left: 1px solid rgba(236,233,243,.12); background: rgba(123,92,255,.13); color: var(--bone); cursor: pointer;
    font: 500 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; text-align: center; transition: background .3s; }
  .rail .stage-open i { width: 7px; height: 7px; flex: none; border-radius: 50%; background: var(--violet); box-shadow: 0 0 0 3px rgba(123,92,255,.25); }
  .rail .stage-open:hover { background: rgba(123,92,255,.22); }
  /* the list */
  .rail .areas { position: absolute; left: var(--gutter); right: var(--gutter); top: calc(100% + 8px); z-index: 40; display: none; order: 0; flex: none; margin: 0; padding: 8px;
    overflow: visible; mask-image: none; -webkit-mask-image: none; border: 1px solid rgba(236,233,243,.14); border-radius: 18px; background: rgba(17,15,24,.97);
    -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: 0 0 0 100vmax rgba(5,4,9,.55), 0 30px 60px -20px rgba(0,0,0,.8); }
  .rail.pick .areas { display: block; animation: pick-in .32s var(--ease); }
  .rail .areas .label { display: block; margin: 8px 12px 8px; font-size: 9.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--bone-faint); }
  .rail .areas ol { display: grid; gap: 2px; width: auto; padding: 0; }
  .rail .area { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; box-sizing: border-box; min-height: 52px; padding: 0 14px;
    border: 0; border-radius: 12px; background: none; white-space: normal; color: var(--bone-dim); }
  .rail .area .t { display: inline; font-family: var(--display); font-weight: 800; font-variation-settings: "wdth" 62; text-transform: uppercase; font-size: 22px; line-height: 1; letter-spacing: .005em; }
  .rail .area .dot { display: block; width: 8px; height: 8px; border: 1px solid var(--bone-faint); border-radius: 50%; }
  .rail .area:hover, .rail .area:focus-visible { background: rgba(236,233,243,.05); color: var(--bone); outline: none; }
  .rail .area.on { color: var(--bone); background: rgba(123,92,255,.14); border: 0; }
  .rail .area.on .dot { background: var(--violet); border-color: var(--violet); box-shadow: 0 0 0 4px rgba(123,92,255,.22); }
  .rail .areas .ov-link { display: block !important; margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--line); }
  .rail .areas .ov-link a { display: flex; align-items: center; justify-content: space-between; min-height: 48px; padding: 0 14px; border: 0; border-radius: 12px;
    color: var(--bone-dim); font: 500 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; text-decoration: none; }
  .rail .areas .ov-link a:hover { background: rgba(236,233,243,.05); color: var(--bone); }
  /* conversation */
  .thread { padding-top: 7vh; }
  .choices { gap: 8px; margin-bottom: 12px; }
  .choice { padding: 13px 16px; border-radius: 12px; font-size: 16px; line-height: 1.3; background: rgba(22,20,31,.72); border-color: rgba(236,233,243,.12); }
  .choice:hover, .choice:focus-visible { transform: none; }
  .say { padding: 10px 0 calc(20px + env(safe-area-inset-bottom)); }
  .say-row { min-height: 56px; box-sizing: border-box; padding: 7px 7px 7px 16px; border-radius: 18px; }
  .say textarea { min-height: 40px; }
  .say .send { min-height: 42px; border-radius: 12px; }
}
@keyframes pick-in { from { opacity: 0; transform: translateY(-6px); } }
@media (prefers-reduced-motion: reduce) { .rail.pick .areas { animation: none; } }
@media (max-width: 380px) {
  .rail { column-gap: 8px; }
  .rail-wm { font-size: 21px !important; }
  .rail-bar { gap: 6px; }
  .rail-bar .ins-pill { padding: 0 11px; letter-spacing: .08em; }
  .rail-bar .ins-pill i { display: none; }
  .rail .stage-open { padding: 0 14px; letter-spacing: .1em; }
  .area-pick .ap-n { font-size: 19px; }
}

/* tablets in portrait (iPad mini to iPad Pro 13"): one centred column, larger type */
@media (min-width: 700px) and (max-width: 1100px) and (min-height: 700px) {
  .rail { padding-left: max(var(--gutter), calc((100% - 780px) / 2)); padding-right: max(var(--gutter), calc((100% - 780px) / 2));
    padding-top: calc(24px + env(safe-area-inset-top)); padding-bottom: 20px; row-gap: 18px; }
  .rail-wm { font-size: 28px !important; }
  .rail-bar { gap: 10px; }
  .rail-lang, .rail-bar .sh-menu { width: 46px; height: 46px; }
  .rail-lang { font-size: 12px; }
  .rail-bar .ins-pill { height: 46px; padding: 0 20px; font-size: 12px; }
  .ctx { height: 68px; border-radius: 20px; }
  .area-pick { padding: 0 22px 0 24px; row-gap: 5px; }
  .area-pick .ap-k { font-size: 10.5px; }
  .area-pick .ap-n { font-size: 28px; }
  .rail .stage-open { padding: 0 30px; font-size: 12.5px; }
  .rail .areas { left: max(var(--gutter), calc((100% - 780px) / 2)); right: max(var(--gutter), calc((100% - 780px) / 2)); padding: 10px; }
  .rail .area { min-height: 62px; padding: 0 18px; }
  .rail .area .t { font-size: 28px; }
  .rail .areas .ov-link a { min-height: 56px; font-size: 12px; padding: 0 18px; }
  .talk { width: 100%; max-width: calc(780px + 2 * var(--gutter)); box-sizing: border-box; justify-self: center; padding: 0 var(--gutter); }
  .thread { padding-top: 10vh; }
  .msg.ik p { font-size: clamp(32px, 3.9vw, 42px); line-height: 1.14; max-width: 27ch; }
  .msg.you p { font-size: 19px; }
  .msg.you { grid-template-columns: 64px 1fr; }
  .choices { gap: 10px; margin-bottom: 16px; }
  .choice { padding: 17px 22px; font-size: 18.5px; border-radius: 14px; }
  .say { padding-bottom: calc(28px + env(safe-area-inset-bottom)); }
  .say-row { min-height: 64px; padding: 8px 8px 8px 20px; border-radius: 20px; }
  .say textarea { font-size: 19px; min-height: 46px; }
  .say .send { min-height: 48px; padding: 0 22px; font-size: 12px; border-radius: 14px; }
  .caret { font-size: 18px; }
  .say .hint { display: block; font-size: 11px; margin: 12px 0 0 6px; }
  .thread .card { padding: 20px; }
  .thread .card p { font-size: 15px; }
  .thread .card.work { grid-template-columns: 110px 1fr; }
  .thread .card.work .art { width: 110px; height: 110px; }
  .stage { top: 5vh; }
  .stage > *:not(.stage-head) { max-width: 780px; }
}

/* phones and tablets turned sideways: one row, nothing wraps */
@media (max-width: 1100px) and (max-height: 560px) and (orientation: landscape) {
  .rail { grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "logo ctx bar"; row-gap: 0; column-gap: 14px;
    padding: calc(8px + env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) 8px max(16px, env(safe-area-inset-left)); }
  .rail-wm { font-size: 20px !important; }
  .rail-lang, .rail-bar .sh-menu { width: 36px; height: 36px; }
  .rail-bar .ins-pill { height: 36px; }
  .ctx { height: 40px; border-radius: 12px; max-width: 460px; }
  .area-pick .ap-k { display: none; }
  .area-pick .ap-n { font-size: 17px; }
  .rail .stage-open { padding: 0 16px; font-size: 10px; }
  .rail .areas { left: auto; right: auto; width: min(420px, calc(100% - 32px)); max-height: calc(100vh - 70px); overflow-y: auto; }
  .rail .area { min-height: 42px; }
  .rail .area .t { font-size: 18px; }
  .thread { padding-top: 14px; }
  .say { padding-bottom: calc(10px + env(safe-area-inset-bottom)); }
  .say-row { min-height: 46px; padding: 4px 4px 4px 14px; }
  .choice { padding: 9px 12px; font-size: 13.5px; }
}
@media (max-width: 1100px) and (max-height: 560px) and (orientation: landscape) {
  .area-pick { grid-template-rows: auto; row-gap: 0; }
  .area-pick svg { grid-row: 1; }
  .rail .areas { left: max(16px, env(safe-area-inset-left)); }
}

/* ── desktop: overview and language in the top-right bar of the stage (owner, 2026-11-14) ──
   One row, one height (36px), one grammar: a quiet text link, a two-letter segmented switch,
   the Insights pill. The rail dock keeps only "Contact us".                                 */
.stage-bar { justify-content: flex-end; gap: 14px; min-height: 64px; box-sizing: border-box; padding: 0 var(--gutter); }
.sb-ov { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 4px; color: var(--bone-dim); text-decoration: none; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; transition: color .3s; }
.sb-ov i { font-style: normal; color: var(--bone-faint); transition: transform .35s var(--ease), color .3s; }
.sb-ov:hover { color: var(--bone); } .sb-ov:hover i { color: var(--signal); transform: translate(2px, -2px); }
.sb-lang { position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; height: 36px; box-sizing: border-box; padding: 3px; border: 1px solid rgba(236,233,243,.18); border-radius: 999px; background: rgba(20,18,28,.5); }
.sb-lang > * { display: grid; place-items: center; min-width: 38px; border-radius: 999px; font-size: 10.5px; letter-spacing: .12em; color: var(--bone-dim); text-decoration: none; transition: color .3s, background .3s; }
.sb-lang [aria-current] { background: var(--bone); color: var(--ink); }
.sb-lang a:hover { color: var(--bone); background: rgba(236,233,243,.06); }
.stage-bar .ins-pill { height: 36px; box-sizing: border-box; padding: 0 15px; }
.sb-ov:focus-visible, .sb-lang a:focus-visible, .stage-bar .ins-pill:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; }
.stage-bar .sb-ov + .sb-lang { margin-left: 4px; }
.dock .mailx.dock-mail:last-child { border-bottom: 0; }
.sb-ov .s { display: none; }
@media (min-width: 1101px) and (max-width: 1360px) { .sb-ov .l { display: none; } .sb-ov .s { display: inline; } }

/* wordmark size (owner, 2026-11-14): one step back from the last enlargement */
.lockup { width: min(100%, 210px); }
@media (max-width: 1100px) { .rail-wm { font-size: 25px !important; } }
@media (max-width: 380px) { .rail-wm { font-size: 22px !important; } }
@media (max-width: 340px) { .rail-wm { font-size: 20px !important; } }
@media (min-width: 700px) and (max-width: 1100px) and (min-height: 700px) { .rail-wm { font-size: 29px !important; } }
@media (max-width: 1100px) and (max-height: 560px) and (orientation: landscape) { .rail-wm { font-size: 21px !important; } }
