/* The website's style on the brief journey - round 9, 9 November 2026.
   Oskar: "This has to be in the style of the website and actually the whole briefing
   journey as well." Loaded after styles.css, account.css and tactile.css, together with
   vendor/site-kit.js (pressed headlines, woven labels and 3D keys, built from the site's
   own code). The site's rules: one light from the top left, felt grounds, headlines
   pressed in, buttons and choices as lit objects, labels woven, no small print, no
   posters of glyphs, motion on twos. Behaviour is unchanged. */

:root { --display-word: 400 22px/1 var(--display); }
.display { font-family: var(--display); }

/* ---------------------------------------------------------------- the bar */
/* The site's wordmark, and no rule under the bar (the site's header has none). */
.wordmark { font: var(--display-word); letter-spacing: -0.02em; text-transform: uppercase; text-decoration: none; }
.wordmark .dot { font: inherit; margin: 0; vertical-align: baseline; letter-spacing: 0; color: var(--volt); }
.theme-volt .wordmark .dot { color: var(--blue); }
.theme-paper .wordmark, .account .wordmark, .theme-volt .wordmark { color: var(--blue); }
.top, .play-top { border-bottom: 0 !important; }
.edition, .hero-meta, .scene-caption, .complete-symbol { display: none !important; }

/* The progress: a groove pressed into the ground; the question you are on sits in Volt. */
.progress-track { height: 8px; gap: 4px; padding: 2px; border-radius: 6px; background: rgb(var(--t-shade) / 0.1);
  box-shadow: inset 1px 2px 3px rgb(var(--t-shade) / 0.32), inset -1px -1px 0 #ffffff40; }
.theme-blue .progress-track, .theme-ink .progress-track { background: rgb(0 0 0 / 0.22); box-shadow: inset 1px 2px 3px rgb(0 0 0 / 0.45), inset -1px -1px 0 #ffffff1c; }
.progress-piece { height: 4px; border-radius: 2px; background: transparent; }
.progress-piece.answered { background: var(--fg, var(--ink)); opacity: 0.55; }
.progress-piece.current, .theme-blue .progress-piece.current { height: 4px; background: var(--volt); opacity: 1; }
.theme-volt .progress-piece.current { background: var(--blue); }
.play-footer { border-top: 0; }

/* ---------------------------------------------------------------- grounds */
.arrival, .complete { position: relative; isolation: isolate; }
.arrival::before, .complete::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: var(--t-felt) 0 0 / 256px 256px; mix-blend-mode: hard-light; opacity: 0.36; }

/* ---------------------------------------------------------------- arrival */
.arrival-main { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: 6vw; align-items: center; min-height: calc(100svh - 96px - 64px); padding-top: 24px; padding-bottom: 24px; }
.hero-copy h1 { font-size: clamp(56px, 7.4vw, 128px); line-height: 0.9; letter-spacing: -0.04em; margin: 0 0 28px; }
.good-word { color: var(--volt); }
.hero-copy > p { font-size: 19px; line-height: 1.4; max-width: 31ch; color: #fff; }
.hero-actions { margin-top: 34px; }
.arrival-trays { display: grid; gap: 20px; width: 100%; max-width: 440px; justify-self: end; }
.arrival-footer { border-top: 0; justify-content: flex-end; gap: 28px; font: 500 12px var(--body); letter-spacing: 0; padding-bottom: 26px; }

/* ---------------------------------------------------------------- trays */
/* A tray pressed into the ground, like the stat tiles on the home page: yellow ribbed
   cloth on the blue and black grounds, blue felt on the paper and yellow ones. The ribs
   are grooves with a shaded top and a lit lower lip; they keep clear of the figures. */
.tray { position: relative; isolation: isolate; border-radius: 22px; overflow: hidden; }
.tray::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: var(--t-felt) 0 0 / 256px 256px; mix-blend-mode: hard-light; opacity: 0.28; }
.tray-volt { background: var(--volt); color: var(--ink);
  box-shadow: inset 3px 6px 12px rgb(120 86 0 / 0.42), inset 1px 1px 2px rgb(120 86 0 / 0.34), inset -1px -1px 0 #ffffff8c, 0 1px 0 #ffffff26; }
.tray-volt::before { content: ""; position: absolute; z-index: -1; top: 22px; bottom: 22px; right: 22px; left: var(--ribs-from, 54%);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100%25' height='26'%3E%3Crect x='0' y='9' width='100%25' height='7' rx='3.5' fill='%23c79f00'/%3E%3Crect x='0' y='9' width='100%25' height='3.4' rx='1.7' fill='%23785600' fill-opacity='.42'/%3E%3Crect x='1' y='15' width='99%25' height='1.4' rx='.7' fill='%23fff8c8' fill-opacity='.9'/%3E%3C/svg%3E") 0 0 / 100% 26px repeat-y; }
.tray-electric { background: var(--blue); color: #fff;
  box-shadow: inset 3px 6px 14px rgb(4 8 48 / 0.6), inset 1px 1px 2px rgb(4 8 48 / 0.5), inset -1px -1px 0 #ffffff2e, 0 1px 0 #ffffff59; }
/* the panels' old per-theme colours give way to the tray's */
.art-panel.tray.tray-volt { background: var(--volt); color: var(--ink); }
.art-panel.tray.tray-electric { background: var(--blue); color: #fff; }
.tray-num { position: relative; display: block; font: 400 clamp(120px, 12vw, 200px)/0.78 var(--display); letter-spacing: -0.05em; }
.tray-volt .tray-num { color: #e8c000; }
.tray-electric .tray-num { color: var(--volt); }
.tray-word { position: relative; font: 400 22px/1.02 var(--display); letter-spacing: -0.01em; text-transform: uppercase; }
.tray-label { position: relative; display: block; line-height: 0; max-width: 100%; }

.tray-stat { display: flex; flex-direction: column; justify-content: space-between; gap: 18px; min-height: 210px; padding: 26px 26px 24px; }
.tray-stat .tray-num { font-size: clamp(96px, 9vw, 150px); }

/* the panel beside each question: its number, and its chapter woven on a label */
.art-panel.tray { transform: none; border: 0; padding: 30px; display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start;
  --ribs-from: 30px; height: 430px; }
.art-panel.tray::before { top: 50%; }
.art-panel .tray-num { font-size: clamp(140px, 13vw, 230px); }
.name-art.tray { justify-content: center; align-items: center; --ribs-from: 30px; }
.name-art.tray::before { top: 30px; }
.name-art .tray-label { width: 100%; display: flex; justify-content: center; }
.name-art #live-brand { position: relative; inset: auto; max-height: none; overflow: visible; font: inherit; white-space: normal; }
.art-left .art-panel.tray { rotate: none; }

/* ---------------------------------------------------------------- receipt */
.complete h1 { letter-spacing: -0.04em; line-height: 0.92; }
.complete main > p { font-size: 18px; }

/* ---------------------------------------------------------------- 3D keys (site-kit.js) */
/* Once a key's 3D object is drawn its flat look steps aside: the object (label, icon,
   shadow) is in the canvas inside it. The key keeps its size, focus ring and everything
   a keyboard or screen reader needs. Until it is drawn it waits unseen, so it never
   flashes its flat look first. Without WebGL nothing changes. */
.is-3d { position: relative; isolation: isolate; overflow: visible !important; color: transparent !important; background: transparent !important; background-image: none !important;
  box-shadow: none !important; border-color: transparent !important; transform: none !important; translate: none !important; rotate: none !important; animation: none !important; transition: none !important; outline-offset: 6px; }
.is-3d::before, .is-3d::after { display: none !important; }
.is-3d > :not(canvas.ui3d) { visibility: hidden; }
/* cast keys (9 Nov late): the main keys sit in a socket pressed into the ground, as on the site */
:is(.cta, .back).is-3d::after { content: ""; display: block !important; position: absolute; inset: -4px; z-index: -1; pointer-events: none; border-radius: 10px;
  box-shadow: inset 2px 3px 3px rgb(4 8 48 / 0.36), inset -1px -1px 0 rgb(255 255 255 / 0.3); }
canvas.ui3d { position: absolute; z-index: 0; pointer-events: none; display: block; }
html.ui3d-on :is(.cta, .back, .add-button, .chip, .goal, .account-card):not(.is-3d) { visibility: hidden; }
/* the keys keep the site's proportions: a little more air than the old flat buttons */
.cta { border-radius: 10px; gap: 22px; }
.cta svg { flex: none; }
.back { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 10px; }
.chip { border-radius: 8px; }
.goal { border-radius: 14px; border: 0; }
/* a chosen goal is a Volt key seated into the page (site-kit seats anything aria-pressed) */
.goal.selected { background: var(--volt); color: var(--ink); }
.theme-volt .goal.selected { background: var(--blue); color: #fff; }

/* ---------------------------------------------------------------- the question list */
dialog { border: 0; border-radius: 24px; background: var(--paper); box-shadow: 0 30px 80px rgb(4 8 48 / 0.45); }
.deck-grid button { border: 0; border-radius: 14px; background: #fff;
  box-shadow: inset 1px 1px 0 #fff, 0 3px 0 rgb(var(--t-shade) / 0.32), 2px 6px 10px -2px rgb(var(--t-shade) / 0.28); }
.deck-grid button:hover { background: var(--volt); }
.deck-grid button:active { transform: translateY(3px); box-shadow: inset 1px 2px 4px rgb(var(--t-shade) / 0.3); }
.deck-heading > button { border-radius: 10px; }

/* ---------------------------------------------------------------- phone */
@media (max-width: 760px) {
  .arrival-main { grid-template-columns: 1fr; min-height: 0; gap: 34px; padding-top: 18px; }
  .arrival-trays { grid-template-columns: 1fr 1fr; max-width: none; justify-self: stretch; gap: 12px; }
  .tray-stat { min-height: 150px; padding: 18px 16px 16px; }
  .tray-stat .tray-num { font-size: 72px; }
  .tray-stat .tray-word { font-size: 15px; }
  .tray-volt.tray-stat::before { left: 60%; top: 18px; bottom: 18px; right: 14px; }
  .arrival-footer { justify-content: space-between; }
  .art-panel.tray { height: 230px; padding: 20px; }
  .art-panel .tray-num { font-size: 110px; }
}

/* ================================================================ round 10, 9 Nov */
/* Oskar: "when you press Start Your Brief, it's just a boring page ... still the old Otters
   branding". The sign-in and My briefs pages are the site's blue felt now: the pressed
   headline in white and Volt, the field pressed into the felt, the key in the wordmark's
   font, and the onboarding box in 3D beside it (the same box as the Onboarding page). */
.account.account-site { max-width: none; margin: 0; min-height: 100svh; padding: 0 clamp(20px, 5vw, 80px) 28px; display: flex; flex-direction: column;
  background: var(--blue); color: #fff; position: relative; isolation: isolate; --felt: .36; }
.account-top { display: flex; align-items: center; min-height: 88px; }
.account-site .wordmark { color: #fff; }
.account-site .wordmark .dot { color: var(--volt); }
.account-grid { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr); align-items: center; gap: 4vw; padding: 2vh 0 4vh; }
.account-site.has-box .account-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); }
.account-site h1 { font: 400 clamp(56px, 7.2vw, 124px)/0.9 var(--display); letter-spacing: -0.04em; margin: 0 0 34px; color: #fff; }
.account-site .good-word { color: var(--volt); }
.account-site form { max-width: 470px; }
.account-site .field > span { color: #fff; font-size: 14px; font-weight: 500; }
.account-site .field input { font-size: 18px; padding: 16px 18px; border-radius: 10px; }
.account-site #login-status, .account-copy > p { margin: 18px 0 26px; font-size: 16px; line-height: 1.45; color: #fff; opacity: 0.9; }
.account-site .quiet { color: #fff; }
.account-site footer { display: flex; justify-content: flex-end; gap: 26px; margin-top: 0; font: 500 13px var(--body); }
.account-site footer a { color: #fff; }
.account-box { position: relative; height: min(70svh, 640px); min-height: 320px; }
.account-box canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.account-site .account-list { margin-top: 30px; gap: 14px; }
.account-site .account-card { border: 0; border-radius: 12px; background: #fff; color: var(--ink); padding: 20px 22px; }
.account-site .account-actions { gap: 22px; }

/* the keys speak in the wordmark's font, like the site's (SEE OUR WORK) */
.cta { font-family: var(--display); font-weight: 400; text-transform: uppercase; letter-spacing: 0.08em; } /* 11 Nov: wider, the cast letters stand apart */
.next-area .cta { font-size: 13px; }

/* yellow is smooth: no grain on yellow trays or the yellow questions, only the ribs */
.tray-volt::after { content: none; }
.play.theme-volt::before { opacity: 0; }

/* Required / Optional as a woven label, not a yellow sticker */
.question-guidance .guidance-kind { background: none; outline: 0; box-shadow: none; padding: 0; min-height: 0; line-height: 0; }

/* more, not +: a chevron that turns, as on the site's Pick one */
.details > summary::after, .more > summary::after { content: ""; flex: none; width: 9px; height: 9px; margin: 4px 4px 0 0;
  border-right: 2.5px solid currentColor; border-bottom: 2.5px solid currentColor; rotate: 45deg; font: inherit; }
.details[open] > summary::after, .more[open] > summary::after { content: ""; rotate: -135deg; margin-top: 9px; }

@media (max-width: 760px) {
  .account-site.has-box .account-grid { grid-template-columns: 1fr; gap: 6px; padding-top: 0; }
  .account-box { order: -1; height: 34svh; min-height: 230px; margin: 0 -20px; }
  .account-site h1 { font-size: 15vw; margin-bottom: 22px; }
  .account-top { min-height: 72px; }
  .account-site footer { justify-content: flex-start; }
}
html.ui3d-on :is(.top-actions > .quiet, .footer-middle > #help):not(.is-3d) { visibility: hidden; }
.account-site.has-box .account-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
.account-site h1 { font-size: clamp(48px, 6.2vw, 112px); white-space: nowrap; }
.account-site .cta { font-size: 15px; padding: 18px 24px; min-height: 58px; }
@media (max-width: 760px) { .account-site.has-box .account-grid { grid-template-columns: 1fr; } .account-site h1 { font-size: 10.6vw; } }
/* drawn keys throw their shadow past their edge; never let that widen the page */
html, body { overflow-x: clip; }
/* the help key: ink on a white key, Volt once help is asked for (it was white text on white once drawn in 3D) */
.footer-middle > .quiet { background: #fff; color: var(--ink); border-radius: 8px; padding: 10px 14px; font-size: 12px; }
.footer-middle > .quiet[aria-pressed="true"] { background: var(--volt); color: var(--ink); }
/* cast keys (9 Nov late): every action in the wordmark's font, so its label is cast as letters like the site's keys */
:is(.top-actions > .quiet, .footer-middle > .quiet) { font-family: var(--display) !important; font-weight: 400 !important; text-transform: uppercase; letter-spacing: 0.08em; font-size: 11px !important; }

/* ================================================================ phone polish, 9 Nov night */
/* Oskar on his phone: "the text is overflowing here" (the 20 ran into its ribs, the words under
   them) and "the textures on the phone are horrible". On a phone the two trays lie one above the
   other, full width, with the figure and its words on the left and the ribs clear of them on the
   right, as on a laptop. The ribs always end on a whole rib, and the felt is finer and sharp. */
.tray-volt::before { background-repeat: no-repeat round; }
.arrival-footer { align-items: center; }
.arrival-footer > a, .arrival-footer > .quiet { display: inline-flex; align-items: center; min-height: 44px; padding: 0; font: inherit; }
@media (max-width: 760px) {
  .arrival-trays { grid-template-columns: 1fr; gap: 14px; }
  .tray-stat { min-height: 132px; padding: 20px 20px 18px; gap: 12px; }
  .tray-stat .tray-num { font-size: 68px; }
  .tray-stat .tray-word { font-size: 16px; }
  .tray-volt.tray-stat::before { left: 58%; top: 20px; bottom: 18px; right: 20px; }
  .arrival::before, .complete::before, .play::before, .account::before, .tray::after { background-size: 128px 128px; }
}
/* the top keys keep their label on one line (cast letters follow the page's own lines, so a
   wrapped label would be two rows of tiny letters); a little smaller on a phone so all three fit */
.top-actions > .quiet { white-space: nowrap; }
@media (max-width: 520px) {
  .top-actions { gap: 8px; }
  .top-actions > .quiet { font-size: 10px !important; letter-spacing: 0.06em; padding-inline: 10px; }
}
/* the question count was ink on the blue and black questions */
:is(.theme-blue, .theme-ink) .deck-link { color: #fff; }
/* 10 Nov: yellow trays have a quiet soft-lit felt again (Oskar: "make the yellow panels have texture") */
.tray-volt::after { content: ""; mix-blend-mode: soft-light; opacity: 0.55; background: var(--t-grain-felt, url('/tactile/grain/felt.webp')) 0 0 / 220px 220px; }
@media (max-width: 760px) { .tray-volt::after { background-size: 150px 150px; } }

/* 11 Nov 2026: the keys round the questions are readable on a phone (Oskar zoomed in to read "Ask Otters to help": it was
   11px on two cramped lines, the top keys 10px). The help key is one line, the top keys a size up. */
@media (max-width: 800px) {
  .play-footer .footer-middle > .quiet { font-size: 13px !important; white-space: nowrap; padding-inline: 18px !important; min-height: 46px; max-width: none; }
  .top-actions > .quiet { font-size: 11px !important; padding-inline: 11px; }
}
/* On a narrow phone the top bar keeps Add people and Save & close: My briefs is in the profile menu beside the count. */
@media (max-width: 440px) {
  .top-actions > [data-workspace] { display: none; }
}

/* Woven labels need a box: the kit's markup is a span sized by its own width and aspect ratio, and as an inline element
   it collapsed to nothing wherever its parent is an ordinary block, so the art panels (your brand's name on question 1,
   the chapter on the others) showed an empty tray (11 Nov, Oskar's phone). */
.woven-label { display: inline-block; vertical-align: middle; line-height: 0; }
