/* ==========================================================================
   TRAYVOX LABS : pages.css
   Inner pages: Work, About, Contact and legal.
   Tokens and shared pieces (.tlink, .label, .img-failed, CTA) live in base.css.

   Contents
     1. Work: header and filters
     2. Work: bento grid and cards
     3. Work: lab cards (artwork)
     4. Work: responsive
     5. About
     6. Contact
     7. Legal (Privacy, Terms)
   ========================================================================== */

/* ---------- 1. Work: header and filters ---------- */
.work-head { padding-bottom: var(--s-7); }
.work-title { margin-top: var(--s-6); }
.work-title .dot { color: var(--signal); }
.work-sub { margin-top: var(--s-5); max-width: 34rem; }

.work-section { padding-bottom: var(--s-9); }
.work-filters { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-bottom: var(--s-7); }
.filter {
  min-height: 44px;
  padding: .7rem 1.35rem;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-pill);
  transition: color var(--t-med) var(--ease), border-color var(--t-med) var(--ease), background var(--t-med) var(--ease);
}
.filter[aria-pressed="true"] { background: var(--accent-fill); border-color: var(--accent-fill); color: var(--on-accent); }
@media (hover: hover) {
  .filter[aria-pressed="false"]:hover { color: var(--text); border-color: var(--signal); }
}

/* ---------- 2. Work: bento grid and cards ----------
   Spans come from data-span. work.js recomputes them after a filter so the
   visible cards always fill whole rows. */
.work-grid {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(.75rem, 1.6vw, 1.5rem);
}
.work-card { grid-column: span 6; display: flex; min-width: 0; }
.work-card[hidden] { display: none; }
.work-card[data-span="12"] { grid-column: span 12; }
.work-card[data-span="7"] { grid-column: span 7; }
.work-card[data-span="6"] { grid-column: span 6; }
.work-card[data-span="5"] { grid-column: span 5; }
.work-card[data-span="4"] { grid-column: span 4; }

.wc {
  --tint: color-mix(in srgb, var(--accent) 9%, var(--surface-2));
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--accent) 20%, var(--line));
  border-radius: var(--r-md);
  background:
    radial-gradient(40rem 20rem at 100% 100%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 70%),
    var(--tint);
  transition: transform .6s var(--ease), box-shadow .6s var(--ease);
}
.wc-media {
  position: relative;
  flex: 1 1 auto;
  aspect-ratio: 16 / 10;
  min-height: 0;
  overflow: hidden;
  background: color-mix(in srgb, var(--accent) 22%, var(--surface-2));
}
.wc-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 0;
  transition: transform 1.1s var(--ease);
}
.wc-body { display: grid; gap: var(--s-3); padding: var(--s-5); }
.wc-title { display: flex; align-items: center; gap: var(--s-4); }
.wc-icon { flex: none; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line-strong); }
.wc-name { font-size: clamp(1.5rem, 1.1rem + 1.5vw, 2.5rem); line-height: 1.04; }
.wc-kind::before {
  content: '';
  display: inline-block;
  width: .6em; height: .6em;
  margin-right: .75em;
  border-radius: 50%;
  background: var(--accent);
}
.wc-line { color: var(--muted); max-width: 30rem; }
.wc-links { display: flex; flex-wrap: wrap; gap: 0 var(--s-6); margin-top: var(--s-1); }

@media (hover: hover) {
  .wc:hover {
    transform: translate3d(0, -6px, 0);
    box-shadow: 0 40px 80px -40px color-mix(in srgb, var(--accent) 60%, transparent);
  }
  .wc:hover .wc-img { transform: scale(1.05); }
}
.wc:focus-within { box-shadow: 0 40px 80px -40px color-mix(in srgb, var(--accent) 60%, transparent); }

/* ---------- 3. Work: lab cards (artwork, not app screens) ---------- */
.work-card--lab .wc { border-color: color-mix(in srgb, var(--signal) 22%, var(--line)); }
.work-card--lab .wc-media { aspect-ratio: 1200 / 904; background: var(--base); }
.work-card--lab .wc-img { object-position: 78% 50%; transform: scale(1.04); }
.work-card--lab .wc-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(20, 20, 22, .72) 0%, rgba(20, 20, 22, .3) 42%, rgba(20, 20, 22, 0) 62%);
  pointer-events: none;
}
.wc-lab-copy {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--s-5);
  padding: var(--s-5);
  pointer-events: none;
}
.wc-lab-copy .wc-name { max-width: 7.5em; font-size: clamp(1.5rem, 1rem + 1.6vw, 2.75rem); line-height: 1; }
.wc-lab-copy .wc-name::before {
  content: '';
  display: block;
  width: 3rem; height: 1px;
  margin-bottom: var(--s-4);
  background: var(--signal);
}
@media (hover: hover) {
  .work-card--lab .wc:hover .wc-img { transform: scale(1.09); }
}

/* ---------- 4. Work: responsive ---------- */
@media (max-width: 900px) {
  .work-card, .work-card[data-span] { grid-column: span 12; }
}
@media (max-width: 760px) {
  .work-filters { margin-bottom: var(--s-6); }
  .wc-body { padding: var(--s-4); }
}

/* ---------- 5. About ---------- */
.about-hero { padding-bottom: var(--s-9); }
.about-title {
  margin-top: var(--s-6);
  max-width: 14ch;
  font-size: clamp(2.6rem, 1rem + 6.9vw, 8.25rem);
  line-height: .95;
}
.dot { color: var(--signal); }
.about-hero-foot { display: flex; justify-content: flex-end; margin-top: var(--s-8); }
.about-hero-foot .lead { max-width: 34rem; }

.about-split {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--s-5);
  row-gap: var(--s-5);
}
.about-side { grid-column: 1 / span 3; padding-top: .6rem; }
.about-main { grid-column: 4 / span 9; display: grid; gap: var(--s-7); }
.about-statement { max-width: 20ch; font-size: clamp(2rem, 1.1rem + 3.6vw, 5rem); line-height: 1.02; }
.about-copy { margin-left: auto; margin-right: 0; }

/* Who we are: portrait sits in the empty left column under the label */
.about-who-img {
  grid-column: 1 / span 3;
  grid-row: 2;
  align-self: stretch;
  justify-self: stretch;
  width: 100%;
  height: auto;
  min-height: 0;
  object-fit: cover;
  object-position: 50% 40%;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
}
.about-split > .about-side { grid-row: 1; }
.about-split > .about-main { grid-row: 1 / span 2; }

/* What we do: glass objects sit right of and behind the heading, fading into the page */
.about-caps { position: relative; }
.about-what-img {
  display: block;
  width: 100%;
  height: auto;
  margin-top: var(--s-6);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 34%), linear-gradient(180deg, transparent 0%, #000 16%, #000 52%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent 0%, #000 34%), linear-gradient(180deg, transparent 0%, #000 16%, #000 52%, transparent 100%);
  mask-composite: intersect;
  pointer-events: none;
}
@media (min-width: 1000px) {
  .about-what-img {
    position: absolute;
    top: var(--s-8);
    right: 0;
    width: min(58vw, 62rem);
    margin-top: 0;
    z-index: 0;
  }
  .about-caps .container { position: static; }
  .about-caps .container > :not(.about-what-img) { position: relative; z-index: 1; }
}
/* How we work / Values: one picture per step and value, heading each column */
.about-card-img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--base-deep);
  margin-bottom: var(--s-2);
}
.about-copy p { color: var(--muted); }

.caps-title { margin-top: var(--s-4); max-width: 12ch; }
.caps { list-style: none; padding: 0; margin-top: var(--s-8); }
.cap {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--s-5);
  align-items: baseline;
  padding-block: var(--s-7);
  border-top: 1px solid var(--line-strong);
}
.cap:last-child { border-bottom: 1px solid var(--line-strong); }
.cap-num { grid-column: 1 / span 1; }
.cap-name { grid-column: 2 / span 6; font-size: clamp(2rem, 1rem + 3.8vw, 5rem); line-height: 1; }
.cap-text { grid-column: 9 / span 4; color: var(--muted); }

.process {
  list-style: none;
  padding: 0;
  margin-top: var(--s-8);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--s-6) var(--s-5);
  align-items: start;
}
.pstep {
  display: grid;
  gap: var(--s-4);
  padding-top: var(--s-5);
  border-top: 1px solid var(--signal);
}
.pstep:nth-child(2) { margin-top: var(--s-6); }
.pstep:nth-child(3) { margin-top: var(--s-8); }
.pstep:nth-child(4) { margin-top: calc(var(--s-8) + var(--s-6)); }
.pstep p { color: var(--muted); max-width: 22rem; }
.pstep-name { font-size: clamp(2rem, 1.2rem + 3vw, 4rem); }

.values {
  list-style: none;
  padding: 0;
  margin-top: var(--s-8);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s-7) var(--s-6);
}
.value { display: grid; gap: var(--s-4); align-content: start; padding-top: var(--s-5); border-top: 1px solid var(--line-strong); }
.value:nth-child(2) { margin-top: var(--s-7); }
.value:nth-child(3) { margin-top: var(--s-8); }
.value p { color: var(--muted); max-width: 22rem; }
.value-name { font-size: clamp(1.75rem, 1rem + 2.6vw, 3.5rem); }

.entity-line {
  margin-top: var(--s-9);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: .08em;
  line-height: 1.7;
  color: var(--muted);
  max-width: 44rem;
}

@media (max-width: 900px) {
  .about-side, .about-main { grid-column: 1 / -1; }
  .about-split > .about-side, .about-split > .about-main, .about-who-img { grid-row: auto; }
  .about-copy { margin-left: 0; }
  .cap-num, .cap-name, .cap-text { grid-column: 1 / -1; }
  .cap { row-gap: var(--s-3); padding-block: var(--s-6); }
  .cap-text { max-width: 34rem; }
  .process { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pstep:nth-child(n) { margin-top: 0; }
  .pstep:nth-child(even) { margin-top: var(--s-6); }
  .values { grid-template-columns: 1fr; }
  .value:nth-child(n) { margin-top: 0; }
}
@media (max-width: 560px) {
  .process { grid-template-columns: 1fr; }
  .pstep:nth-child(even) { margin-top: 0; }
  .about-hero-foot { justify-content: flex-start; margin-top: var(--s-6); }
}

/* ---------- 6. Contact ---------- */
.contact-page { padding-bottom: var(--s-9); }
.contact-title {
  margin-top: var(--s-6);
  max-width: 15ch;
  font-size: clamp(2.6rem, 1rem + 6.6vw, 8rem);
  line-height: .95;
}
.contact-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--s-5);
  row-gap: var(--s-8);
  margin-top: var(--s-8);
  align-items: start;
}
.contact-intro { grid-column: 1 / span 5; display: grid; gap: var(--s-7); }
.contact-form { grid-column: 7 / span 6; }

.contact-details { display: grid; }
.cd-item {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: var(--s-4);
  padding-block: var(--s-5);
  border-top: 1px solid var(--line-strong);
}
.cd-item:last-child { border-bottom: 1px solid var(--line-strong); }
.cd-item dt { padding-top: .35rem; }
.cd-item dd { font-family: var(--font-display); font-weight: 500; font-size: var(--fs-h3); line-height: 1.3; letter-spacing: -0.02em; overflow-wrap: anywhere; }
.cd-item address { font-style: normal; font-family: var(--font-body); font-weight: 400; font-size: var(--fs-body); letter-spacing: 0; color: var(--muted); line-height: 1.6; }
.cd-link { display: inline-block; padding-block: .25rem; transition: color var(--t-med) var(--ease); }
@media (hover: hover) { .cd-link:hover { color: var(--signal); } }
.cd-map { margin-top: var(--s-2); }

.contact-form {
  display: grid;
  gap: var(--s-2);
  padding: clamp(1.5rem, 1rem + 2.5vw, 3rem);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-lg);
}
.field-label { margin-top: var(--s-4); }
.field-label:first-child { margin-top: 0; }
.contact-form input, .contact-form textarea {
  width: 100%;
  min-height: 52px;
  padding: .85rem 1rem;
  font-size: 1rem;
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  transition: border-color var(--t-med) var(--ease), background var(--t-med) var(--ease);
}
.contact-form textarea { resize: vertical; min-height: 9rem; }
.contact-form ::placeholder { color: var(--dim); opacity: 1; }
.contact-form input:focus-visible, .contact-form textarea:focus-visible { outline: 2px solid var(--signal); outline-offset: 2px; border-color: var(--signal); }
.contact-form .btn { margin-top: var(--s-5); justify-self: start; }
.form-note { margin-top: var(--s-2); font-size: var(--fs-sm); color: var(--muted); }
.form-note a { color: var(--text); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: .25em; }
@media (hover: hover) { .form-note a:hover { color: var(--signal); text-decoration-color: var(--signal); } }
.form-done { margin-top: var(--s-4); padding: var(--s-4) var(--s-5); font-size: var(--fs-sm); color: var(--text); border: 1px solid var(--signal); border-radius: var(--r-md); background: rgba(20, 184, 166, .08); }
.form-done[hidden] { display: none; }

@media (max-width: 900px) {
  .contact-intro, .contact-form { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .cd-item { grid-template-columns: 1fr; gap: var(--s-1); }
  .contact-form .btn { justify-self: stretch; white-space: normal; text-align: center; }
}

/* ---------- 7. Legal (Privacy, Terms) ----------
   Calm long-form reading: about 70 characters per line, generous leading. */
.legal-head { padding-bottom: var(--s-8); }
.legal-title { margin-top: var(--s-5); max-width: 12ch; }
.legal-meta { margin-top: var(--s-5); }
.legal { padding-bottom: var(--s-10); }
.legal-inner { max-width: 64ch; margin-left: min(14vw, 12rem); font-size: var(--fs-body); line-height: 1.8; }
.legal-inner > * + * { margin-top: var(--s-5); }
.legal-inner p, .legal-inner li { color: #CBD0D8; }
.legal-inner strong { color: var(--text); font-weight: 600; }
.legal-inner h2 {
  margin-top: var(--s-8);
  padding-top: var(--s-5);
  border-top: 1px solid var(--line-strong);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.25rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--text);
}
.legal-inner h2 + * { margin-top: var(--s-4); }
.legal-inner ul { list-style: none; padding: 0; display: grid; gap: var(--s-4); }
.legal-inner li { position: relative; padding-left: 1.6rem; }
.legal-inner li::before { content: ''; position: absolute; left: 0; top: .85em; width: .7rem; height: 1px; background: var(--signal); }
.legal-inner a { color: var(--text); text-decoration: underline; text-decoration-color: var(--signal); text-underline-offset: .25em; }
@media (hover: hover) { .legal-inner a:hover { color: var(--signal); } }
.legal-inner .entity-line { margin-top: var(--s-8); }
@media (max-width: 900px) { .legal-inner { margin-left: 0; } }

/* eyebrow-to-heading rhythm and cap alignment */
.about-caps .label + h2, .about-process .label + h2, .about-values .label + h2 { margin-top: var(--s-4); }
.cap { align-items: start; }
.cap-num { padding-top: 1rem; }
.cap-text { padding-top: .9rem; }
@media (max-width: 900px) { .cap-num, .cap-text { padding-top: 0; } }

/* ---------- 8. Page backdrop art (every page except home) ----------
   A decorative <img> inside an absolutely positioned wrapper at the top of
   <main>. Scrims fade it into --base on the left and at the bottom so text
   keeps its contrast. core.js adds a slow intro and a scroll drift under
   html.js:not(.reduced); without them the image is simply visible. */
main:has(> .page-bg-wrap) { position: relative; isolation: isolate; }
.page-bg-wrap {
  --bg-o: .9;
  position: absolute;
  top: 0; left: 0; right: 0;
  height: min(112svh, 70rem);
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  -webkit-user-select: none; user-select: none;
}
.page-bg-wrap--about { --bg-o: .62; }
.page-bg-wrap--contact { --bg-o: .66; }
.page-bg-wrap--legal { --bg-o: .4; }
.page-bg {
  position: absolute;
  top: -6%; right: 0;
  width: 100%; height: 112%;
  max-width: none;
  object-fit: cover;
  object-position: right top;
  opacity: var(--bg-o);
  translate: 0 var(--py, 0px); /* scroll drift, driven by core.js */
  transform-origin: 85% 25%;
  will-change: transform, opacity;
}
html.js:not(.reduced) .page-bg {
  opacity: 0;
  scale: 1.07;
  transition: opacity 1.8s var(--ease), scale 2.6s var(--ease);
}
html.js:not(.reduced) .page-bg.is-in { opacity: var(--bg-o); scale: 1; }
.page-bg-wrap::before, .page-bg-wrap::after { content: ''; position: absolute; inset: 0; pointer-events: none; }
/* left scrim: solid under the text column, gone by about 70% across */
.page-bg-wrap::before {
  background: linear-gradient(90deg, var(--base) 0%, var(--base) 22%, rgba(20, 20, 22,.82) 40%, rgba(20, 20, 22,.35) 58%, rgba(20, 20, 22,0) 75%);
}
/* bottom scrim: melts into the page */
.page-bg-wrap::after {
  background: linear-gradient(180deg, rgba(20, 20, 22,.55) 0%, rgba(20, 20, 22,0) 18%, rgba(20, 20, 22,0) 30%, rgba(20, 20, 22,.75) 68%, var(--base) 92%);
}
@media (max-width: 760px) {
  .page-bg-wrap { top: 40svh; height: 60svh; }
  .page-bg-wrap--legal { top: 40svh; }
  .page-bg-wrap { --bg-k: .8; }
  .page-bg { top: 0; height: 100%; opacity: calc(var(--bg-o) * var(--bg-k)); object-position: 70% top; }
  html.js:not(.reduced) .page-bg.is-in { opacity: calc(var(--bg-o) * var(--bg-k)); }
  .page-bg-wrap::before { background: linear-gradient(90deg, rgba(20, 20, 22,.7) 0%, rgba(20, 20, 22,.3) 45%, rgba(20, 20, 22,0) 80%); }
  .page-bg-wrap::after { background: linear-gradient(180deg, var(--base) 0%, rgba(20, 20, 22,0) 30%, rgba(20, 20, 22,0) 55%, var(--base) 98%); }
}

/* ---------- 9. Start creating ----------
   One thing at a time. Steps swap in place (hidden attribute) and fade up with
   transform and opacity only. Reduced motion: no animation, steps just switch. */
.start-page { position: relative; padding-bottom: var(--s-9); min-height: 100svh; overflow: clip; }
.start-glow {
  position: absolute;
  top: -10%; right: -15%;
  width: min(70rem, 120vw); aspect-ratio: 1;
  background: radial-gradient(closest-side, rgba(20, 184, 166, .12), rgba(20, 184, 166, .04) 55%, rgba(20, 184, 166, 0));
  pointer-events: none;
  z-index: 0;
}
html:not(.reduced) .start-glow { animation: startGlow 14s ease-in-out infinite alternate; }
@keyframes startGlow { from { transform: translate3d(0, 0, 0) scale(1); opacity: .8; } to { transform: translate3d(-6%, 8%, 0) scale(1.08); opacity: 1; } }
.start-wrap { position: relative; z-index: 1; max-width: 72rem; }
.start-page .label--dot { margin-bottom: var(--s-6); }
.start-title { max-width: 14ch; font-size: clamp(2.5rem, 1rem + 6.4vw, 7rem); line-height: .96; }
.start-lead { margin-top: var(--s-5); }
.start-app[hidden], .start-step[hidden], .start-nojs[hidden] { display: none; }

.start-progress { height: 2px; margin-bottom: var(--s-7); background: var(--line); overflow: hidden; border-radius: 2px; }
.start-bar { display: block; height: 100%; background: var(--signal); transform: scaleX(.06); transform-origin: left center; transition: transform 900ms var(--ease); }

.start-step { display: block; }
html:not(.reduced) .start-step.is-in > * { animation: stepIn 800ms var(--ease) both; animation-delay: calc(var(--i, 0) * 70ms); }
@keyframes stepIn { from { opacity: 0; transform: translate3d(0, 22px, 0); } to { opacity: 1; transform: none; } }
.start-step > :nth-child(2) { --i: 1; }
.start-step > :nth-child(3) { --i: 2; }
.start-step > :nth-child(4) { --i: 3; }
.start-title:focus, .start-q:focus, .brief-title:focus { outline: none; }

/* fields (shared look with the contact form) */
.start-idea, .start-ask, .start-card { display: grid; gap: var(--s-2); }
.start-idea { margin-top: var(--s-7); max-width: 60rem; }
.start-card { padding: clamp(1.5rem, 1rem + 2.5vw, 3rem); background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r-lg); max-width: 40rem; margin-top: var(--s-6); }
.start-idea textarea, .start-ask input, .start-card input, .start-card textarea {
  width: 100%;
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  padding: .85rem 1rem;
  min-height: 52px;
  font-size: 1rem;
  transition: border-color var(--t-med) var(--ease), background var(--t-med) var(--ease);
}
.start-idea textarea {
  display: block;
  min-height: 9.5rem;
  padding: 1.25rem 1.4rem;
  font-size: clamp(1.15rem, 1rem + .8vw, 1.6rem);
  line-height: 1.4;
  border-radius: var(--r-lg);
  resize: none;
  overflow: hidden;
}
.start-ask input { font-size: clamp(1.1rem, 1rem + .6vw, 1.4rem); padding: 1rem 1.2rem; min-height: 60px; }
.start-card textarea { resize: vertical; min-height: 9rem; }
.start-idea ::placeholder, .start-ask ::placeholder, .start-card ::placeholder { color: var(--dim); opacity: 1; }
.start-idea textarea:focus-visible, .start-ask input:focus-visible, .start-card input:focus-visible, .start-card textarea:focus-visible { outline: 2px solid var(--signal); outline-offset: 2px; border-color: var(--signal); }
.start-card .btn { margin-top: var(--s-5); justify-self: start; max-width: 100%; }
.start-card .form-done { margin-top: var(--s-4); }
.start-card .field-label { margin-top: var(--s-4); }
.start-card .field-label:first-child { margin-top: 0; }
.idea-meta { display: flex; justify-content: space-between; gap: var(--s-5); align-items: flex-start; }
.idea-meta .form-note { max-width: 44rem; margin-top: var(--s-1); }
.idea-count { white-space: nowrap; padding-top: .35rem; }
.idea-count.is-over { color: var(--signal); }
.start-error { margin: 0; font-size: var(--fs-sm); color: var(--signal); }
.start-error:not(:empty) { margin-top: var(--s-1); }
.start-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3) var(--s-4); margin-top: var(--s-5); }
.start-back { display: inline-flex; align-items: center; gap: var(--s-2); min-height: 44px; padding-inline: var(--s-3); font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
@media (hover: hover) { .start-back:hover { color: var(--signal); } .start-back:hover .back-arrow { transform: translateX(-4px); } }
.back-arrow { display: inline-block; transition: transform var(--t-med) var(--ease); }

/* examples */
.examples { margin-top: var(--s-7); display: grid; gap: var(--s-3); }
.example-list { display: flex; flex-wrap: wrap; gap: var(--s-3); list-style: none; padding: 0; }
.chip {
  min-height: 44px;
  padding: .6rem 1.1rem;
  font-size: var(--fs-sm);
  color: var(--text);
  text-align: left;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-pill);
  transition: border-color var(--t-med) var(--ease), color var(--t-med) var(--ease), transform var(--t-med) var(--ease);
}
.chip:active { transform: scale(.98); }
@media (hover: hover) { .chip:hover { border-color: var(--signal); color: var(--signal); } }

/* question screen */
.trail { list-style: none; padding: 0; display: grid; gap: var(--s-3); margin-bottom: var(--s-7); max-width: 44rem; }
.trail li { display: grid; gap: 2px; padding-left: var(--s-4); border-left: 1px solid var(--line-strong); font-size: var(--fs-sm); color: var(--muted); line-height: 1.45; }
.trail .t-label { font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.trail .t-text { overflow-wrap: anywhere; }
.start-q { max-width: 22ch; }
.start-ask { margin-top: var(--s-7); max-width: 48rem; }

/* thinking */
.think-line { position: relative; width: min(24rem, 100%); height: 2px; margin-top: var(--s-6); background: var(--line); overflow: hidden; border-radius: 2px; }
.think-line span { position: absolute; inset: 0; width: 40%; background: var(--signal); transform: translateX(-100%); }
html:not(.reduced) .think-line span { animation: thinkSlide 2.2s var(--ease) infinite; }
html.reduced .think-line span { width: 100%; transform: none; opacity: .5; }
@keyframes thinkSlide { from { transform: translateX(-100%); } to { transform: translateX(260%); } }

/* brief document */
.brief { margin-top: var(--s-5); padding: clamp(1.5rem, 1rem + 3vw, 4rem); background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r-lg); }
.brief-title { max-width: 16ch; font-size: clamp(2.2rem, 1rem + 5vw, 5.5rem); line-height: .98; }
.brief-summary { margin-top: var(--s-5); max-width: 46rem; color: var(--text); }
.brief-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-6) var(--s-7); margin-top: var(--s-7); }
.brief-block { display: grid; gap: var(--s-3); align-content: start; padding-top: var(--s-4); border-top: 1px solid var(--line-strong); min-width: 0; }
.brief-block--wide { grid-column: 1 / -1; }
.brief-block p, .brief-list li { color: #CBD0D8; overflow-wrap: anywhere; }
.brief-list { list-style: none; padding: 0; display: grid; gap: var(--s-3); }
.brief-list li { position: relative; padding-left: 1.6rem; }
.brief-list li::before { content: ''; position: absolute; left: 0; top: .85em; width: .7rem; height: 1px; background: var(--signal); }
.brief-caps { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: var(--s-2); }
.brief-caps li { padding: .45rem 1rem; font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: .12em; text-transform: uppercase; color: var(--signal); border: 1px solid var(--signal); border-radius: var(--r-pill); }
.brief .form-note { margin-top: var(--s-6); }
.brief .start-actions { margin-top: var(--s-6); }

/* decision */
.decision { margin-top: var(--s-9); padding-top: var(--s-7); border-top: 1px solid var(--line-strong); }
.decision-title { font-size: clamp(2.6rem, 1rem + 7vw, 7rem); line-height: .95; }
.decision-title .dot { color: var(--signal); }
.decision .lead { margin-top: var(--s-5); }
.decision-alt { margin-top: var(--s-6); color: var(--muted); }
.decision-alt .tlink { color: var(--text); }

@media (max-width: 760px) {
  .brief-grid { grid-template-columns: 1fr; }
  .idea-meta { flex-direction: column; gap: var(--s-2); }
  .start-card .btn, .start-actions .btn-solid { white-space: normal; text-align: center; }
  .start-actions .btn { flex: 1 1 auto; }
  .start-card .btn { justify-self: stretch; }
}
@media (prefers-reduced-motion: reduce) {
  .start-glow, .think-line span, .start-step.is-in > * { animation: none !important; }
  .start-bar { transition: none; }
}

/* Start page: the whole first step (heading, idea box, button, examples) fits one screen */
@media (min-width: 761px) {
  .start-page.page-top { padding-top: clamp(5.5rem, 11vh, 8rem); }
  .start-progress { margin-bottom: clamp(1rem, 3vh, var(--s-7)); }
  .start-title { font-size: min(clamp(2.5rem, 1rem + 6.4vw, 7rem), 10.5vh); }
  .start-idea { margin-top: clamp(1rem, 3.2vh, var(--s-7)); }
  .start-idea textarea { min-height: 0; height: clamp(5.5rem, 13vh, 9.5rem); }
  .start-actions { margin-top: clamp(.75rem, 2vh, var(--s-5)); }
  .examples { margin-top: clamp(1rem, 3vh, var(--s-7)); }
}

@media (max-width: 999px) {
  .about-split > .about-side, .about-split > .about-main { grid-column: 1 / -1; grid-row: auto; }
  .about-copy { margin-left: 0; }
  .about-who-img { grid-column: 1 / -1; grid-row: auto; order: 3; width: 100%; max-width: 420px; height: auto; aspect-ratio: 900 / 1195; align-self: start; }
}
