/* Studio — Interactive Brand Identity prototype.
   Chrome design language: tinted paper + deep forest ink + lime accent,
   pill controls, large radii. The brand under edit paints the canvas. */

:root {
  --paper: #f5f7ef;
  --paper-deep: #eaeede;
  --forest: #0e1d19;
  --forest-2: #16281f;
  --line-light: #dde3d2;
  --lime: #d6ff7e;
  --lime-ink: #14200c;
  --muted-light: #5f6b60;

  --chrome-bg: #0e1613;
  --chrome-panel: #14201b;
  --chrome-line: #24322b;
  --chrome-ink: #ecf1ea;
  --chrome-muted: #8da294;
  --canvas-bg: #17231e;
  --radius: 16px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --display-font: "Inter Tight", "Segoe UI", sans-serif;
}

.hl { color: var(--lime); }

/* global craft */
::selection { background: var(--lime); color: var(--lime-ink); }
html { scrollbar-color: var(--chrome-line) transparent; }
body::-webkit-scrollbar { width: 10px; }
body::-webkit-scrollbar-track { background: transparent; }
body::-webkit-scrollbar-thumb {
  background: var(--chrome-line);
  border-radius: 5px;
  border: 2px solid var(--chrome-bg);
}
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }

.topbar-kit {
  font-family: Consolas, monospace;
  color: var(--lime);
  border: 1px solid var(--chrome-line);
  border-radius: 999px;
  padding: 3px 11px;
}
@media (max-width: 720px) {
  .wordmark-sub { display: none; }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--chrome-bg);
  color: var(--chrome-ink);
  font-family: "Figtree", "Segoe UI", -apple-system, "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
}

/* view gating */
body.in-landing .topbar, body.in-quiz .topbar { display: none; }
body:not(.in-quiz) .quiz { display: none; }
body:not(.in-landing) .landing { display: none; }

.dot-accent { color: var(--lime); }

/* ---------- pills & controls ---------- */
.pill {
  font: inherit;
  font-weight: 600;
  border-radius: 999px;
  border: 1px solid var(--chrome-line);
  background: transparent;
  color: inherit;
  padding: 8px 18px;
  cursor: pointer;
  transition: transform 0.18s var(--ease), background 0.18s, border-color 0.18s, filter 0.18s;
}
.pill:hover { transform: translateY(-1px); border-color: var(--chrome-muted); }
.pill:active { transform: translateY(0); }
.pill.primary {
  background: var(--lime);
  border-color: var(--lime);
  color: var(--lime-ink);
}
.pill.primary:hover { filter: brightness(1.06); }
.pill.primary:disabled {
  opacity: 0.35; cursor: not-allowed; transform: none; filter: none;
}
.pill.big { padding: 13px 28px; font-size: 16px; }
.pill.small { font-size: 12.5px; padding: 5px 14px; }
button:focus-visible, select:focus-visible, input:focus-visible, .style-card:focus-visible, .chip:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 2px;
}

/* ================= BRIEF: a paper sheet floating on chrome ================= */
.quiz {
  min-height: 100vh;
  background: var(--chrome-bg);
  padding: 6vh 4vw 10vh;
}
.brief-grid {
  max-width: 1240px;
  margin: 0 auto;
  background: var(--paper);
  color: var(--forest);
  border-radius: 24px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  padding: 7vh 5vw 8vh;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.9fr);
  gap: 5vw;
  align-items: start;
}
@media (max-width: 640px) { .quiz { padding: 3vh 3vw 6vh; } }
.b-head { margin-bottom: 40px; }
.b-group { margin-bottom: 44px; }
.b-label {
  font-family: Consolas, monospace;
  color: var(--muted-light);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line-light);
}
.b-cta { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.quiz .pill { border-color: var(--line-light); }
.quiz .pill:hover { border-color: var(--forest); }
.quiz .pill.primary { background: var(--forest); border-color: var(--forest); color: var(--paper); }
.quiz .pill.primary:hover { filter: none; background: var(--forest-2); }

/* brief image import */
.b-import { margin-top: 14px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.b-import-zone {
  flex: 1;
  min-width: 240px;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted-light);
  background: transparent;
  border: 1.5px dashed var(--line-light);
  border-radius: 12px;
  padding: 13px 16px;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.2s, color 0.2s;
}
.b-import-zone:hover, .b-import-zone.drag-over { border-color: var(--forest); color: var(--forest); }
.b-import-zone.dz-error { animation: dzshake 0.4s; border-color: #c0392b; }
.b-import-result { display: flex; align-items: center; gap: 10px; }
.b-import-result img {
  width: 44px; height: 44px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--line-light);
}
.b-strip-mini { display: flex; gap: 5px; }
.b-strip-mini .b-sw { width: 18px; height: 18px; border-radius: 5px; flex: none; }

.b-preview {
  position: sticky;
  top: 6vh;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.b-preview-label { font-family: Consolas, monospace; color: var(--muted-light); }
.b-preview .pv-lockup { min-height: 210px; }
.b-preview .pv-social { max-width: 100%; aspect-ratio: 4 / 3; }
.b-strip { display: flex; gap: 8px; }
.b-strip .b-sw {
  flex: 1;
  height: 30px;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.08);
}
.b-scope {
  font-family: Consolas, monospace;
  color: var(--muted-light);
  line-height: 1.7;
}
@media (max-width: 960px) {
  .brief-grid { grid-template-columns: 1fr; }
  .b-preview { position: static; order: -1; }
}

.q-progress {
  font-family: "Inter Tight", monospace;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--muted-light);
  margin-bottom: 14px;
}
.q-title {
  font-family: "Inter Tight", sans-serif;
  font-size: clamp(30px, 5vw, 44px);
  font-weight: 600;
  letter-spacing: -0.025em;
  margin: 0 0 10px;
  text-wrap: balance;
}
.q-hint { color: var(--muted-light); margin: 0 0 26px; font-size: 15px; }

.q-field { display: block; margin: 22px 0; font-weight: 600; font-size: 14px; }
.q-field .opt { color: var(--muted-light); font-weight: 400; }
.q-field-label { display: block; margin-bottom: 12px; }
.q-field input {
  display: block;
  width: 100%;
  max-width: 480px;
  margin-top: 10px;
  padding: 14px 18px;
  font: inherit;
  font-weight: 500;
  font-size: 17px;
  background: #ffffff;
  color: var(--forest);
  border: 1px solid var(--line-light);
  border-radius: 14px;
  transition: border-color 0.18s;
}
.q-field input:hover { border-color: var(--muted-light); }
.q-field input::placeholder { color: #a8b0a2; font-weight: 400; }

/* chips */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.chip {
  font: inherit;
  font-weight: 600;
  font-size: 14px;
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid var(--line-light);
  background: #ffffff;
  color: var(--forest);
  cursor: pointer;
  transition: transform 0.15s var(--ease), background 0.15s, border-color 0.15s, color 0.15s;
}
.chip:hover { transform: translateY(-1px); border-color: var(--forest); }
.chip[aria-pressed="true"] {
  background: var(--forest);
  border-color: var(--forest);
  color: var(--lime);
}
.chip:disabled { opacity: 0.55; cursor: default; }
.big-chips .chip { padding: 13px 22px; font-size: 15px; }
.chip .chip-note { font-weight: 400; opacity: 0.6; font-size: 0.85em; margin-left: 6px; }

/* style cards */
.style-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 14px;
}
.style-card {
  border: 1px solid var(--line-light);
  border-radius: 18px;
  background: #ffffff;
  padding: 0;
  overflow: hidden;
  cursor: pointer;
  text-align: left;
  font: inherit;
  transition: transform 0.2s var(--ease), box-shadow 0.2s, border-color 0.2s;
}
.style-card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(14, 29, 25, 0.1); }
.style-card[aria-pressed="true"] {
  border-color: var(--forest);
  box-shadow: 0 0 0 2px var(--forest), 0 12px 28px rgba(14, 29, 25, 0.12);
}
.style-swatch {
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 52px;
  line-height: 1;
}
.style-meta { padding: 14px 16px 16px; }
.style-meta .s-name { font-weight: 700; font-size: 15px; margin-bottom: 3px; color: var(--forest); }
.style-meta .s-desc { font-size: 12.5px; color: var(--muted-light); line-height: 1.45; }
.style-dots { display: flex; gap: 5px; margin-top: 10px; }
.style-dots span { width: 14px; height: 14px; border-radius: 50%; border: 1px solid rgba(0,0,0,0.12); }


/* marquee */
.marquee {
  overflow: hidden;
  border-top: 1px solid var(--chrome-line);
  border-bottom: 1px solid var(--chrome-line);
  padding: 16px 0;
  background: var(--chrome-panel);
}
.marquee-track {
  display: flex;
  gap: 44px;
  width: max-content;
  font-family: "Inter Tight", sans-serif;
  font-weight: 600;
  font-size: 15px;
  color: var(--muted-light);
  white-space: nowrap;
  will-change: transform;
}
.marquee-track .dot-sep { color: var(--forest); }

@media (prefers-reduced-motion: reduce) {
  * { transition-duration: 0.01ms !important; }
}

/* ================= TOPBAR ================= */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--chrome-line);
  background: var(--chrome-panel);
  position: sticky;
  top: 0;
  z-index: 10;
}
.topbar-left { display: flex; align-items: baseline; gap: 10px; }
.wordmark { font-weight: 800; font-size: 17px; letter-spacing: -0.01em; }
.wordmark-sub {
  font-family: "Inter Tight", Consolas, monospace;
  font-size: 11px;
  color: var(--chrome-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.topbar-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
select.pill {
  appearance: none;
  padding-right: 30px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%238da294' fill='none' stroke-width='1.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-color: transparent;
}
select.pill option { background: var(--chrome-panel); color: var(--chrome-ink); }

/* ================= WORKSPACE ================= */
.workspace {
  display: grid;
  grid-template-columns: 300px 1fr;
  min-height: calc(100vh - 57px);
}
.panel-handle { display: none; }
@media (max-width: 900px) {
  .workspace { grid-template-columns: 1fr; }
  .previews { padding-bottom: 110px; }
  .panel {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 60;
    max-height: 74vh;
    border-right: none;
    border-top: 1px solid var(--chrome-line);
    border-radius: 18px 18px 0 0;
    transform: translateY(calc(100% - 54px));
    transition: transform 0.35s var(--ease);
    box-shadow: 0 -18px 50px rgba(0, 0, 0, 0.5);
    padding-top: 0;
  }
  body.panel-open .panel { transform: none; }
  .panel-handle {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 18px 0 12px;
    border: none;
    font: inherit;
    font-weight: 700;
    color: var(--chrome-ink);
    cursor: pointer;
    position: sticky;
    top: 0;
    background: var(--chrome-panel);
    z-index: 2;
  }
  .panel-handle::before {
    content: "";
    position: absolute;
    top: 7px; left: 50%;
    transform: translateX(-50%);
    width: 38px; height: 4px;
    border-radius: 2px;
    background: var(--chrome-line);
  }
  .panel-handle::after { content: "▲"; font-size: 9px; transition: transform 0.3s; }
  body.panel-open .panel-handle::after { transform: rotate(180deg); }
}

.panel {
  border-right: 1px solid var(--chrome-line);
  background: var(--chrome-panel);
  padding: 18px 18px 40px;
  overflow-y: auto;
}
.panel-group { margin-bottom: 26px; }
.panel-group h2 {
  font-family: "Inter Tight", Consolas, monospace;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--chrome-muted);
  margin: 0 0 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--chrome-line);
}
.panel label {
  display: block;
  margin-bottom: 12px;
  font-size: 12.5px;
  color: var(--chrome-muted);
}
.panel input[type="text"], .panel select {
  display: block;
  width: 100%;
  margin-top: 5px;
  padding: 8px 12px;
  font: inherit;
  background: var(--chrome-bg);
  color: var(--chrome-ink);
  border: 1px solid var(--chrome-line);
  border-radius: 10px;
  transition: border-color 0.15s;
}
.panel input[type="text"]:hover, .panel select:hover { border-color: var(--chrome-muted); }
.panel input[type="range"] { width: 100%; margin-top: 8px; accent-color: var(--lime); }
.panel .val { color: var(--chrome-ink); float: right; font-variant-numeric: tabular-nums; }

/* image → palette dropzone */
.dropzone {
  border: 1.5px dashed var(--chrome-line);
  border-radius: 12px;
  background: var(--chrome-bg);
  padding: 0;
  margin-bottom: 10px;
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.2s, background 0.2s;
}
.dropzone:hover, .dropzone:focus-visible { border-color: var(--lime); }
.dropzone.drag-over { border-color: var(--lime); background: var(--chrome-panel); }
.dz-idle {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 18px 12px;
  text-align: center;
}
.dz-title { font-weight: 650; font-size: 13px; color: var(--chrome-ink); }
.dz-sub { font-size: 11px; color: var(--chrome-muted); }
.dz-result { position: relative; }
.dz-result img { display: block; width: 100%; height: auto; }
.dz-dot {
  position: absolute;
  width: 16px; height: 16px;
  border-radius: 50%;
  border: 2.5px solid #ffffff;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.45);
  transform: translate(-50%, -50%);
}
.dz-actions { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.dz-status {
  font-family: Consolas, monospace;
  color: var(--chrome-muted);
  min-height: 15px;
  margin-bottom: 10px;
}
.dropzone.dz-error { animation: dz-shake 0.35s; border-color: #e8935a; }
@keyframes dz-shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  50% { transform: translateX(5px); }
  75% { transform: translateX(-3px); }
}
@media (prefers-reduced-motion: reduce) {
  .dropzone.dz-error { animation: none; }
}

/* full-window drop overlay */
.drop-overlay[hidden] { display: none; }
.drop-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(10, 16, 13, 0.82);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4vw;
  pointer-events: none;
}
.drop-overlay-box {
  width: 100%;
  height: 100%;
  border: 2px dashed var(--lime);
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display-font);
  font-size: clamp(24px, 4vw, 44px);
  font-weight: 650;
  letter-spacing: -0.02em;
  color: var(--lime);
}

.panel-advanced {
  margin-top: 6px;
  border: 1px solid var(--chrome-line);
  border-radius: 10px;
  padding: 0 12px;
}
.panel-advanced summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--chrome-muted);
}
.panel-advanced summary::-webkit-details-marker { display: none; }
.panel-advanced summary::after { content: "+"; font-size: 14px; }
.panel-advanced[open] summary::after { content: "\2212"; }
.panel-advanced[open] { padding-bottom: 10px; }
.panel-advanced label:first-of-type { margin-top: 2px; }

.color-row { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.color-row input[type="color"] {
  width: 34px; height: 34px;
  padding: 0; border: 1px solid var(--chrome-line);
  border-radius: 10px; background: none; cursor: pointer;
}
.color-row .role { flex: 1; font-size: 12.5px; color: var(--chrome-ink); }
.color-row .hex {
  font-family: Consolas, "Cascadia Mono", monospace;
  font-size: 11.5px;
  color: var(--chrome-muted);
  text-transform: uppercase;
}

.small-chips .chip {
  font-size: 12px;
  padding: 6px 13px;
  background: var(--chrome-bg);
  border-color: var(--chrome-line);
  color: var(--chrome-ink);
}
.small-chips .chip[aria-pressed="true"] {
  background: var(--lime);
  border-color: var(--lime);
  color: var(--lime-ink);
}

/* ================= PREVIEWS ================= */
.previews {
  padding: 24px;
  background:
    radial-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px) 0 0 / 22px 22px,
    var(--canvas-bg);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  align-content: start;
}
@media (max-width: 640px) { .previews { padding: 14px; gap: 14px; } }
.pv { cursor: zoom-in; }
.preview-card:hover .preview-label::after { content: " · click to zoom"; color: var(--lime); }
.preview-card { min-width: 0; }
.preview-card.wide { grid-column: 1 / -1; }
.preview-card[hidden] { display: none; }
.preview-label {
  font-family: "Inter Tight", Consolas, monospace;
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--chrome-muted);
  margin-bottom: 8px;
}
.pv {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
  transition: background 0.35s, color 0.35s, transform 0.25s var(--ease), box-shadow 0.25s;
}
.pv::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.preview-card:hover .pv {
  transform: translateY(-3px);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.4);
}
.pv > * { position: relative; z-index: 1; }

/* shared preview atoms */
.pv-mono {
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  opacity: 0.65;
}
.pv-ghost {
  position: absolute;
  z-index: 0;
  right: -4%;
  bottom: -22%;
  font-size: 240px;
  line-height: 1;
  opacity: 0.05;
  pointer-events: none;
  user-select: none;
}
.pv-rule { height: 1px; width: 100%; opacity: 0.18; background: currentColor; }

.pv-lockup {
  min-height: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 30px 28px 24px;
  text-align: center;
}
.pv-lockup .brand-name { font-size: 27px; letter-spacing: -0.01em; }
.pv-lockup .brand-tagline { font-size: 13px; opacity: 0.72; margin-top: 3px; }
.pv-lockup .lockup-meta {
  margin-top: 14px;
  display: flex;
  gap: 18px;
  justify-content: center;
}

.pv-bizcard {
  aspect-ratio: 1.7 / 1;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
}
.pv-bizcard .row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.pv-bizcard .person { font-size: 16px; font-weight: 650; letter-spacing: -0.01em; }
.pv-bizcard .contact { font-size: 9.5px; line-height: 1.8; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.75; }

.pv-social {
  aspect-ratio: 1 / 1;
  max-width: 380px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.pv-social .headline { font-size: 25px; line-height: 1.14; letter-spacing: -0.015em; text-wrap: balance; }
.pv-social .social-top { display: flex; justify-content: space-between; align-items: center; }
.pv-social .foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 12px; }
.pv-social .foot-left { display: flex; align-items: center; gap: 10px; }

.pv-badge {
  aspect-ratio: 3 / 4.1;
  max-width: 250px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 5px;
}
.pv-badge .lanyard {
  width: 46px; height: 9px;
  border-radius: 5px;
  margin-bottom: 12px;
  opacity: 0.25;
  border: 1.5px solid currentColor;
}
.pv-badge .badge-name { font-size: 20px; font-weight: 650; margin-top: 12px; letter-spacing: -0.01em; }
.pv-badge .badge-role { font-size: 11px; opacity: 0.7; }
.pv-badge .badge-bottom {
  margin-top: auto;
  width: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  text-align: left;
}
.pv-badge .badge-bottom svg { opacity: 0.85; flex-shrink: 0; }

.pv-deck {
  aspect-ratio: 16 / 9;
  padding: 26px 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.pv-deck .deck-frame {
  position: absolute;
  inset: 12px;
  border: 1px solid currentColor;
  opacity: 0.14;
  border-radius: 6px;
  pointer-events: none;
}
.pv-deck .deck-top { display: flex; justify-content: space-between; align-items: center; }
.pv-deck .deck-brand { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; }
.pv-deck .deck-title { font-size: clamp(26px, 3.6vw, 42px); line-height: 1.05; letter-spacing: -0.025em; max-width: 17ch; text-wrap: balance; }
.pv-deck .deck-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pv-deck .deck-foot-left { display: flex; align-items: center; gap: 12px; }

.pv-hero {
  min-height: 320px;
  padding: 26px 36px 30px;
  display: flex;
  flex-direction: column;
}
.pv-hero nav { display: flex; justify-content: space-between; align-items: center; font-size: 12.5px; }
.pv-hero nav .links { display: flex; gap: 18px; align-items: center; opacity: 0.85; }
.pv-hero nav .nav-cta {
  padding: 6px 15px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
}
.pv-hero .hero-body { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 13px; max-width: 580px; padding: 18px 0; }
.pv-hero h1 { margin: 0; font-size: clamp(28px, 4.2vw, 44px); line-height: 1.05; letter-spacing: -0.028em; text-wrap: balance; }
.pv-hero p { margin: 0; font-size: 14.5px; opacity: 0.75; max-width: 46ch; }
.pv-hero .cta-row { display: flex; gap: 10px; margin-top: 4px; }
.pv-hero .cta {
  padding: 10px 22px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  border: none;
  cursor: default;
}
.pv-hero .cta.ghosted { background: transparent; border: 1px solid currentColor; opacity: 0.7; }
.pv-hero .hero-stats {
  display: flex;
  gap: 34px;
  padding-top: 14px;
}
.pv-hero .stat .stat-num { font-size: 21px; font-weight: 650; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }

.logo-mark svg { display: block; }

/* ================= REPORT: paper pages floating on chrome ================= */
.report { background: var(--chrome-bg); min-height: 100vh; color: #17181d; }
.report-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding: 14px 24px;
  background: var(--chrome-panel);
  border-bottom: 1px solid var(--chrome-line);
  position: sticky;
  top: 0;
  color: var(--chrome-ink);
  z-index: 10;
}
.report-toolbar-right { display: flex; gap: 10px; flex-wrap: wrap; }
.report-pages { max-width: 820px; margin: 0 auto; padding: 32px 20px 80px; }
.report-page {
  background: #ffffff;
  border: none;
  border-radius: 8px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.4);
  padding: 56px 60px;
  margin-bottom: 28px;
  min-height: 500px;
}
.report-page .rp-label {
  font-family: "Inter Tight", Consolas, monospace;
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #9aa295;
  margin-bottom: 20px;
}
.report-page h2 { font-size: 24px; margin: 0 0 16px; letter-spacing: -0.01em; }
.report-page p { line-height: 1.6; max-width: 62ch; }

.rp-cover {
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  text-align: center; gap: 18px; min-height: 640px;
}
.rp-cover .rp-title { font-size: 38px; margin: 0; letter-spacing: -0.02em; }
.rp-cover .rp-sub { color: #7d857a; font-size: 14px; }

.rp-scope { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 28px; margin-top: 24px; }
.rp-scope-item {
  display: flex; align-items: baseline; gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid #eef0e9;
  font-size: 15px;
}
.rp-scope-item .tick { color: #3f6d4e; font-weight: 700; }
.rp-scope-item.excluded { color: #a7ada2; }
.rp-scope-item.excluded .tick { color: #d3d8cc; }
@media (max-width: 640px) { .rp-scope { grid-template-columns: 1fr; } }

.rp-swatches { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 14px; margin-top: 24px; }
.rp-swatch .chip-block { height: 84px; border-radius: 10px; border: 1px solid rgba(0,0,0,0.08); }
.rp-swatch .sw-role { font-size: 12.5px; font-weight: 600; margin-top: 8px; }
.rp-swatch .sw-hex { font-family: Consolas, monospace; font-size: 11.5px; color: #7d857a; text-transform: uppercase; }

.rp-type-specimen { margin-top: 18px; padding: 18px 0; border-top: 1px solid #ecece6; }
.rp-type-specimen .spec-label { font-family: "Inter Tight", Consolas, monospace; font-size: 10.5px; font-weight: 600; color: #9aa295; text-transform: uppercase; letter-spacing: 0.14em; margin-bottom: 8px; }
.rp-type-specimen .spec-sample { font-size: 30px; line-height: 1.25; }
.rp-type-specimen .spec-body { font-size: 15px; line-height: 1.6; max-width: 60ch; }

.rp-apps { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 20px; }
.rp-apps .pv-social { max-width: none; }
@media (max-width: 700px) { .rp-apps { grid-template-columns: 1fr; } }

.rp-refs li { margin-bottom: 10px; line-height: 1.55; max-width: 60ch; }

.rp-foot {
  display: flex;
  justify-content: space-between;
  margin-top: 48px;
  padding-top: 14px;
  border-top: 1px solid #ecece6;
  font-family: Consolas, monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #9aa295;
}

@page { size: A4; margin: 14mm; }
@media print {
  .no-print, .topbar { display: none !important; }
  body { background: #ffffff; }
  .report { background: #ffffff; }
  .report-pages { max-width: none; padding: 0; }
  .report-page {
    border: none; border-radius: 0; margin: 0;
    page-break-after: always;
    min-height: auto;
    padding: 24px 8px;
  }
  .rp-cover { min-height: 88vh; }
}

/* lightbox: click a preview to inspect it large */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 400;
  background: rgba(8, 12, 10, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 4vw;
  cursor: zoom-out;
}
.lightbox[hidden] { display: none; }
.lightbox-inner { width: min(470px, 60vw); }
.lightbox-inner .pv { zoom: 1.5; }
.lightbox-inner .pv { cursor: zoom-out; box-shadow: 0 40px 120px rgba(0, 0, 0, 0.6); }
.lightbox-inner .pv-social { max-width: none; }
.lightbox-inner .pv-badge { max-width: 420px; margin: 0 auto; }
.lightbox-hint { font-family: Consolas, monospace; color: var(--chrome-muted); }

/* ================= LANDING ================= */
.landing {
  background: var(--chrome-bg);
  color: var(--chrome-ink);
  overflow-x: clip;
}

/* loader: the mark assembles itself, then the screen wipes away */
.loader {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--chrome-bg);
  color: var(--chrome-ink);
}
.loader-inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 26px;
}
.loader-mark svg { display: block; }
.loader-word {
  font-family: var(--display-font);
  font-weight: 700;
  font-size: clamp(22px, 3vw, 32px);
  letter-spacing: -0.02em;
}
.loader-dot { color: var(--lime); }

/* nav */
.lnav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 5vw;
  background: rgba(14, 22, 19, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.lnav .wordmark { font-size: 19px; }
.lnav-right { display: flex; align-items: center; gap: 20px; }
.lnav-right a {
  position: relative;
  color: var(--chrome-muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: color 0.2s;
}
.lnav-right a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -4px;
  height: 1.5px; width: 100%;
  background: var(--lime);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s var(--ease);
}
.lnav-right a:hover { color: var(--chrome-ink); }
.lnav-right a:hover::after { transform: scaleX(1); transform-origin: left; }

/* hero */
.l-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 14vh 5vw 10vh;
  overflow: hidden;
}
.l-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.l-flow {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}
.l-hero-bg {
  position: absolute;
  z-index: 1;
  top: 4%;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--display-font);
  font-weight: 800;
  font-size: clamp(120px, 21vw, 420px);
  letter-spacing: -0.03em;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(214, 255, 126, 0.13);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}
.l-title {
  position: relative;
  z-index: 2;
  font-family: var(--display-font);
  font-size: clamp(54px, 10vw, 148px);
  font-weight: 650;
  letter-spacing: -0.045em;
  line-height: 0.96;
  margin: 0 0 30px;
}
.l-line { display: block; overflow: hidden; }
.l-line > span { display: block; }
.l-sub {
  position: relative;
  z-index: 2;
  max-width: 46ch;
  font-size: 17px;
  line-height: 1.65;
  color: var(--chrome-muted);
  margin: 0 0 30px;
}
.l-hero-actions {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.l-hint { font-family: Consolas, monospace; color: var(--chrome-muted); }
.landing .pill.primary { background: var(--lime); border-color: var(--lime); color: var(--lime-ink); }

/* theme wardrobe (footer, low-key) */
.l-wear {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}
.l-wear-label { font-family: Consolas, monospace; color: var(--chrome-muted); }
.l-wear .chips { margin: 0; }
.l-wear .chip {
  background: transparent;
  border-color: var(--chrome-line);
  color: var(--chrome-ink);
  font-size: 12.5px;
  padding: 7px 15px;
}
.l-wear .chip:hover { border-color: var(--chrome-muted); }
.l-wear .chip[aria-pressed="true"] {
  background: var(--lime);
  border-color: var(--lime);
  color: var(--lime-ink);
}

/* floating hero cards */
.l-hero-cards {
  position: absolute;
  right: 3vw;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
  pointer-events: none;
}
.l-card-wrap { position: absolute; will-change: transform; }
.l-card-wrap:nth-child(1) { right: 16vw; top: -260px; }
.l-card-wrap:nth-child(2) { right: 1vw; top: -120px; }
.l-card-wrap:nth-child(3) { right: 12vw; top: 130px; }
.l-card {
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5);
  border-radius: var(--radius);
}
.l-card.pv-lockup { width: 250px; min-height: 0; padding: 26px 20px; }
.l-card.pv-lockup .brand-name { font-size: 20px; }
.l-card.pv-social { width: 235px; padding: 18px; }
.l-card.pv-social .headline { font-size: 17px; }
.l-card.pv-deck { width: 330px; padding: 18px 20px; }
.l-card.pv-deck .deck-title { font-size: 20px; }
@media (max-width: 1100px) { .l-hero-cards { display: none; } }

.l-scrollhint {
  position: absolute;
  bottom: 26px;
  left: 5vw;
  font-family: Consolas, monospace;
  color: var(--chrome-muted);
}
.l-scrollhint::after {
  content: "";
  display: inline-block;
  width: 40px;
  height: 1px;
  background: var(--lime);
  margin-left: 10px;
  vertical-align: middle;
}

/* section heads */
.l-sec-head { padding: 16vh 5vw 6vh; }
.l-eyebrow {
  font-family: Consolas, monospace;
  color: var(--lime);
  margin-bottom: 18px;
}
.l-eyebrow::before {
  content: "";
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--lime);
  margin-right: 10px;
}
.l-h2 {
  font-family: var(--display-font);
  font-size: clamp(38px, 6.5vw, 92px);
  font-weight: 650;
  letter-spacing: -0.04em;
  line-height: 0.98;
  margin: 0;
}

/* horizontal work section */
.l-work-pin {
  height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
@media (pointer: coarse) {
  /* touch: native swipe with snap instead of pinned scrub */
  .l-work-pin {
    height: auto;
    overflow-x: auto;
    padding: 4vh 0 6vh;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }
  .l-case { scroll-snap-align: center; }
  /* touch: assembly scene reads as a static stacked section */
  .l-asm-pin { height: auto; padding: 4vh 5vw 8vh; }
  .asm-copy .asm-step { opacity: 1 !important; }
}
.l-track {
  display: flex;
  gap: 4vw;
  padding: 0 8vw;
  width: max-content;
  will-change: transform;
}
.l-case { width: min(430px, 72vw); flex-shrink: 0; }
.l-case .l-tile { transition: transform 0.4s var(--ease); }
.l-case:hover .l-tile { transform: scale(0.985) rotate(-0.4deg); }
.l-case-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 16px 4px 0;
}
.l-case-meta .cname {
  font-family: "Inter Tight", sans-serif;
  font-weight: 650;
  font-size: 19px;
  letter-spacing: -0.01em;
}
.l-case-meta .ctag {
  font-family: Consolas, monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--chrome-muted);
}

/* assembly: one pinned scene where a brand system builds itself */
.l-num {
  font-family: var(--display-font);
  font-weight: 800;
  font-size: clamp(34px, 4vw, 54px);
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(214, 255, 126, 0.4);
}
.l-asm-pin {
  height: 100vh;
  display: flex;
  align-items: center;
  padding: 0 5vw;
}
.l-asm-stage {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 5vw;
  width: 100%;
  align-items: center;
}
.asm-visual {
  position: relative;
  background: var(--chrome-panel);
  border: 1px solid var(--chrome-line);
  border-radius: 24px;
  padding: 40px 30px;
  min-height: 62vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 26px;
  overflow: hidden;
}
.asm-mark svg { display: block; }
.asm-palette { display: flex; gap: 10px; }
.asm-palette .asm-sw {
  width: 42px; height: 42px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.09);
}
.asm-type {
  display: flex;
  align-items: baseline;
  gap: 16px;
  font-family: var(--display-font);
}
.asm-type .asm-ag { font-size: 54px; font-weight: 650; letter-spacing: -0.03em; line-height: 1; }
.asm-type .asm-typemeta { font-family: Consolas, monospace; }
.asm-apps { display: flex; gap: 14px; align-items: flex-start; }
.asm-apps .pv { box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4); }
.asm-apps .l-card.pv-social { width: 170px; padding: 14px; }
.asm-apps .l-card.pv-social .headline { font-size: 13px; }
.asm-apps .l-card.pv-bizcard { width: 210px; padding: 14px 16px; }
.asm-copy .asm-step {
  padding: 3.6vh 0;
  border-top: 1px solid var(--chrome-line);
  opacity: 0.22;
}
.asm-copy .asm-step h3 {
  font-family: var(--display-font);
  font-size: clamp(22px, 2.6vw, 34px);
  font-weight: 650;
  letter-spacing: -0.02em;
  margin: 10px 0 0;
}
.asm-copy .asm-step p {
  margin: 8px 0 0;
  color: var(--chrome-muted);
  line-height: 1.65;
  max-width: 46ch;
  font-size: 15px;
}
.l-sec-note {
  font-family: Consolas, monospace;
  color: var(--chrome-muted);
  margin: 18px 0 0;
}
@media (max-width: 900px) {
  .l-asm-pin { height: auto; padding: 6vh 5vw; }
  .l-asm-stage { grid-template-columns: 1fr; }
  .asm-visual { min-height: 46vh; }
}

/* manifesto */
.l-manifesto { padding: 18vh 5vw; }
.m-line {
  font-family: var(--display-font);
  font-size: clamp(30px, 5.4vw, 76px);
  font-weight: 650;
  letter-spacing: -0.035em;
  line-height: 1.06;
  margin: 0 0 0.35em;
}

/* cta */
.l-cta {
  min-height: 92vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8vh;
  padding: 8vh 5vw 5vh;
}
.l-bigbtn {
  width: clamp(240px, 30vw, 320px);
  aspect-ratio: 1;
  border-radius: 50%;
  border: none;
  background: var(--lime);
  color: var(--lime-ink);
  font-family: var(--display-font);
  font-size: clamp(20px, 2.4vw, 28px);
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.15;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: transform 0.35s var(--ease);
}
.l-bigbtn:hover { transform: scale(1.05); }
.l-bigbtn:focus-visible { outline: 3px solid var(--chrome-ink); outline-offset: 4px; }
.l-foot {
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  font-family: Consolas, monospace;
  color: var(--chrome-muted);
}

/* ================= ART DIRECTION CHAT DOCK ================= */
.ad-dock {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 80;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}
.ad-panel {
  width: min(360px, calc(100vw - 44px));
  background: var(--chrome-panel);
  border: 1px solid var(--chrome-line);
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.ad-panel[hidden] { display: none; }
.ad-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid var(--chrome-line);
  font-family: Consolas, monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--chrome-muted);
}
.ad-head button {
  background: none;
  border: none;
  color: var(--chrome-muted);
  font-size: 14px;
  cursor: pointer;
  padding: 2px 6px;
}
.ad-head button:hover { color: var(--chrome-ink); }
.ad-log {
  max-height: 300px;
  overflow-y: auto;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13px;
  line-height: 1.5;
}
.ad-msg { max-width: 92%; padding: 9px 13px; border-radius: 12px; }
.ad-msg.user {
  align-self: flex-end;
  background: var(--lime);
  color: var(--lime-ink);
  border-bottom-right-radius: 4px;
  font-weight: 600;
}
.ad-msg.agent {
  align-self: flex-start;
  background: var(--chrome-bg);
  border: 1px solid var(--chrome-line);
  border-bottom-left-radius: 4px;
  color: var(--chrome-ink);
}
.ad-msg.agent ul { margin: 6px 0 0; padding-left: 16px; }
.ad-msg.agent li { margin: 2px 0; }
.ad-chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  padding: 0 16px 10px;
}
.ad-chips .chip {
  font-size: 11.5px;
  padding: 5px 11px;
  background: var(--chrome-bg);
  border-color: var(--chrome-line);
  color: var(--chrome-ink);
}
.ad-form {
  display: flex;
  gap: 8px;
  padding: 10px 12px 12px;
  border-top: 1px solid var(--chrome-line);
}
.ad-form input {
  flex: 1;
  font: inherit;
  font-size: 13px;
  background: var(--chrome-bg);
  color: var(--chrome-ink);
  border: 1px solid var(--chrome-line);
  border-radius: 999px;
  padding: 8px 14px;
}
.ad-form input::placeholder { color: var(--chrome-muted); }
@media (max-width: 640px) {
  .ad-dock { right: 12px; bottom: 76px; }
}

/* agent message media */
.ad-attach {
  background: var(--chrome-bg);
  border: 1px solid var(--chrome-line);
  border-radius: 999px;
  width: 36px;
  flex: none;
  font-size: 15px;
  cursor: pointer;
  transition: border-color 0.18s;
}
.ad-attach:hover { border-color: var(--chrome-muted); }
.ad-msg .msg-img {
  display: block;
  max-width: 180px;
  max-height: 140px;
  border-radius: 8px;
  object-fit: cover;
}
.ad-msg .msg-strip { display: flex; gap: 5px; margin: 8px 0; }
.ad-msg .msg-sw {
  width: 22px; height: 22px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.ad-msg .msg-sugs { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 9px; }
.ad-msg .msg-sugs .chip {
  font-size: 11.5px;
  padding: 5px 11px;
  background: var(--chrome-panel);
  border: 1px solid var(--chrome-line);
  color: var(--chrome-ink);
}
.ad-msg .msg-sugs .chip:hover { border-color: var(--lime); color: var(--lime); }
.ad-msg .msg-note {
  display: block;
  margin-top: 8px;
  font-size: 11px;
  color: var(--chrome-muted);
}
