:root {
  --ink: #0b0b0c;
  --ink-raised: #151517;
  --ink-lifted: #1e1e21;
  --ink-field: #222226;
  --on-dark: #eceae5;
  --mute-dark: #a3a19b;
  --bone: #eeede9;
  --bone-deep: #e2e0da;
  --on-bone: #0b0b0c;
  --mute-bone: #55534f;
  --brass: #d2ae6d;
  --brass-hover: #e4c688;
  --brass-deep: #7a5a22;
  --error: #ef8f7d;

  --serif: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --sans: "Hanken Grotesk", system-ui, -apple-system, sans-serif;

  --gutter: clamp(16px, 3vw, 48px);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --bar-h: 72px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--on-dark);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
img { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--brass); color: var(--ink); }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }
html { scrollbar-color: #3a3a3f var(--ink); }

h1, h2, .paper-title {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.02;
  text-wrap: balance;
  margin: 0;
}
h1 { font-size: clamp(46px, 5.6vw, 92px); }
h2 { font-size: clamp(38px, 3.9vw, 64px); }

/* ---------- Bar ---------- */
.bar {
  position: sticky; top: 0; z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  height: var(--bar-h);
  padding: 0 var(--gutter);
  background: var(--ink);
}
.bar-logo img { width: 168px; height: auto; }
.bar-step { margin: 0; font-size: 15px; font-weight: 500; color: var(--on-dark); }
.bar-step #stepCount { color: var(--mute-dark); margin-left: 10px; font-variant-numeric: tabular-nums; }
.bar-save { margin: 0; font-size: 14px; color: var(--mute-dark); transition: color .4s; }
.bar-save.is-fresh { color: var(--brass); }
.bar-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--ink-lifted); }
.bar-progress span {
  display: block; height: 100%; width: 0; background: var(--brass);
  transition: width .7s var(--ease);
}
body[data-step="start"] .bar-step, body[data-step="start"] .bar-save { visibility: hidden; }

/* ---------- Steps ---------- */
.shell { padding: 0 var(--gutter); }
.step[hidden] { display: none !important; }

/* Welcome */
.step-start {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 88px);
  align-items: center;
  min-height: calc(100vh - var(--bar-h));
  padding: clamp(24px, 4vw, 56px) 0 clamp(40px, 5vw, 72px);
}
.start-photo { margin: 0; height: min(78vh, 760px); border-radius: 20px; overflow: hidden; }
.start-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 38% 50%; animation: drift 24s var(--ease) both; }
@keyframes drift { from { transform: scale(1.08); } to { transform: scale(1); } }
.start-copy { max-width: 600px; }
.lead { font-size: clamp(18px, 1.35vw, 21px); line-height: 1.55; margin: 28px 0 36px; color: var(--on-dark); max-width: 56ch; }
.start-list { list-style: none; padding: 0; margin: 48px 0 0; display: grid; gap: 4px; }
.start-list li {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 16px;
  padding: 14px 18px; background: var(--ink-raised); border-radius: 12px;
  font-size: 15px; color: var(--mute-dark);
}
.start-list strong { color: var(--on-dark); font-weight: 600; }
.start-sign { margin: 32px 0 0; font-family: var(--serif); font-size: 22px; color: var(--brass); }

/* Work area: form + brief */
.work { display: none; }
body:not([data-step="start"]):not([data-step="done"]) .work {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 460px);
  gap: clamp(40px, 6vw, 112px);
  padding: clamp(40px, 6vw, 88px) 0 120px;
  max-width: 1360px;
  margin: 0 auto;
}
.form { max-width: 720px; width: 100%; }
.intro { font-size: 18px; margin: 20px 0 44px; max-width: 54ch; }

/* Fields */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: block; margin: 0 0 22px; }
.field-other { margin: 16px 0 0; max-width: 520px; }
.cond.is-entering, .field.is-entering { animation: rise .5s var(--ease) both; }
.check-inline { display: block; margin: -10px 0 6px; }
.cond-row { margin-top: 14px; }

/* Folgefragen je Leistung */
.followups { display: grid; gap: 10px; margin: -14px 0 34px; }
.followups:not(:has(.fu:not([hidden]))) { display: none; }
.fu { background: var(--ink-raised); border-radius: 14px; padding: 22px 22px 4px; }
.fu.is-entering { animation: rise .5s var(--ease) both; }
.fu-title { font-family: var(--serif); font-weight: 500; font-size: 26px; line-height: 1.1; margin: 0 0 16px; color: var(--brass); }
.fu .choice { margin-bottom: 22px; }
.fu .tiles span { background: #26262a; }
.fu .tiles label:hover span { background: #2e2e33; }
.fu .tiles input:checked + span { background: var(--bone); }
.cond-row .field { margin: 0; }
.hint { font-size: 14px; color: var(--mute-dark); margin: 4px 0 34px; max-width: 60ch; }
.step-recht .note { margin: 8px 0 0; }

/* Uploads */
.drop { margin-top: 12px; }
.drop:not([hidden]) { animation: rise .5s var(--ease) both; }
.drop-zone {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  min-height: 132px; padding: 24px; text-align: center; cursor: pointer;
  background: var(--ink-raised); border-radius: 14px;
  box-shadow: inset 0 0 0 1.5px #34343a;
  transition: background-color .2s, box-shadow .2s, transform .25s var(--ease);
}
.drop-zone:hover { background: #1a1a1d; box-shadow: inset 0 0 0 1.5px #4a4a52; }
.drop-zone.is-over { background: #221f18; box-shadow: inset 0 0 0 2px var(--brass); transform: scale(1.01); }
.drop-zone input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer; }
.drop-zone:focus-within { box-shadow: inset 0 0 0 2px var(--brass); }
.drop-main { font-size: 16px; font-weight: 600; }
.drop-main u { color: var(--brass); text-underline-offset: 3px; }
.drop-limit { font-size: 14px; color: var(--mute-dark); }
.drop-note { margin: 10px 0 0; font-size: 14px; color: var(--error); }
.drop-note:empty { display: none; }
.drop-list { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 6px; }
.drop-list li {
  display: grid; grid-template-columns: 56px minmax(0, 1fr) 40px; align-items: center; gap: 14px;
  padding: 8px 8px 8px 8px; background: var(--ink-lifted); border-radius: 12px;
  animation: rise .4s var(--ease) both;
}
.drop-thumb {
  width: 56px; height: 56px; border-radius: 8px; overflow: hidden;
  display: grid; place-items: center; background: var(--bone); color: var(--on-bone);
  font-size: 12px; font-weight: 600;
}
.drop-thumb img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.drop-meta { display: grid; min-width: 0; }
.drop-name { font-size: 15px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.drop-size { font-size: 13px; color: var(--mute-dark); font-variant-numeric: tabular-nums; }
.drop-rm {
  width: 40px; height: 40px; border: 0; border-radius: 50%; cursor: pointer;
  display: grid; place-items: center; background: transparent; color: var(--mute-dark);
  transition: background-color .2s, color .2s;
}
.drop-rm:hover { background: #2e2e33; color: var(--on-dark); }
/* Fotos als Raster */
.drop-grid { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; }
.drop-grid li { position: relative; display: block; padding: 0; aspect-ratio: 1; overflow: hidden; }
.drop-grid .drop-thumb { width: 100%; height: 100%; border-radius: 12px; background: #2a2a2f; color: var(--on-dark); }
.drop-grid .drop-thumb img { object-fit: cover; padding: 0; }
.drop-grid .drop-meta { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 8px 6px; background: linear-gradient(transparent, rgba(0,0,0,.72)); }
.drop-grid .drop-name { font-size: 12px; color: #fff; }
.drop-grid .drop-size { display: none; }
.drop-grid .drop-rm { position: absolute; top: 6px; right: 6px; width: 32px; height: 32px; background: rgba(11,11,12,.75); color: #fff; }
.drop-grid .drop-rm:hover { background: var(--ink); }

/* Kundenlogo auf dem Brief */
.paper-client { margin-top: 26px; height: 56px; display: flex; align-items: center; }
.paper-client img { max-height: 56px; max-width: 200px; width: auto; object-fit: contain; }
.paper-client + .paper-title { margin-top: 14px; }
.field-other:not([hidden]) { animation: rise .5s var(--ease) both; }
.field > span, .choice legend {
  display: block; font-size: 15px; font-weight: 600; margin-bottom: 8px; color: var(--on-dark);
}
.field em, .choice legend em { font-style: normal; font-weight: 400; color: var(--mute-dark); margin-left: 6px; }
.field input, .field select, .field textarea {
  width: 100%;
  background: var(--ink-field);
  border: 1px solid #2e2e33;
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 17px;
  line-height: 1.45;
  transition: border-color .2s, background-color .2s;
  caret-color: var(--brass);
}
.field textarea { resize: vertical; min-height: 92px; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23a3a19b' stroke-width='1.6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 44px; }
.field input::placeholder, .field textarea::placeholder { color: #8d8b86; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #46464d; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brass); background: #26262a; }
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-color: var(--error); }
.err { display: block; color: var(--error); font-size: 14px; margin-top: 6px; }

/* Choice tiles */
.choice { border: 0; padding: 0; margin: 8px 0 34px; min-width: 0; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.tiles-wide { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.tiles-row { display: flex; flex-wrap: wrap; gap: 8px; }
.tiles label, .check { position: relative; cursor: pointer; }
.tiles input, .check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tiles span {
  display: flex; flex-direction: column; justify-content: center;
  min-height: 56px; height: 100%;
  padding: 14px 18px 14px 46px;
  background: var(--ink-lifted);
  border-radius: 12px;
  font-size: 16px; font-weight: 500; line-height: 1.3;
  transition: background-color .2s, color .2s, transform .2s var(--ease);
  position: relative;
}
.tiles-row span { min-height: 50px; padding: 12px 18px 12px 42px; }
.tiles span small { display: block; font-size: 14px; font-weight: 400; color: var(--mute-dark); margin-top: 3px; }
.tiles span::before {
  content: ""; position: absolute; left: 16px; top: 50%; width: 16px; height: 16px; margin-top: -8px;
  border-radius: 50%; background: var(--ink); box-shadow: inset 0 0 0 1.5px #5a5a60;
  transition: box-shadow .25s var(--ease), background-color .2s;
}
.tiles input[type="checkbox"] + span::before { border-radius: 4px; }
.tiles label:hover span { background: #26262a; }
.tiles label:active span { transform: scale(.985); }
.tiles input:checked + span { background: var(--bone); color: var(--on-bone); }
.tiles input:checked + span small { color: var(--mute-bone); }
.tiles input:checked + span::before { background: var(--brass-deep); box-shadow: inset 0 0 0 4px var(--bone), 0 0 0 1.5px var(--brass-deep); }
.tiles input[type="checkbox"]:checked + span::before { box-shadow: none; background: var(--brass-deep) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.2l2.6 2.6L12 5.4' fill='none' stroke='%23eeede9' stroke-width='1.8'/%3E%3C/svg%3E") center/16px no-repeat; }
.tiles input:focus-visible + span { outline: 2px solid var(--brass); outline-offset: 2px; }
.choice.is-invalid .tiles span { box-shadow: inset 0 0 0 1px var(--error); }

.check span { display: inline-flex; align-items: center; gap: 12px; font-size: 16px; padding: 8px 0; }
.check span::before {
  content: ""; width: 20px; height: 20px; border-radius: 5px; flex: none;
  background: var(--ink-field); box-shadow: inset 0 0 0 1.5px #5a5a60;
}
.check input:checked + span::before { background: var(--brass) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.2l2.6 2.6L12 5.4' fill='none' stroke='%230b0b0c' stroke-width='2'/%3E%3C/svg%3E") center/16px no-repeat; box-shadow: none; }
.check input:focus-visible + span { outline: 2px solid var(--brass); outline-offset: 3px; border-radius: 6px; }

/* Swatches */
.swatches { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.swatch { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; cursor: pointer; font-size: 14px; color: var(--mute-dark); }
.swatch input {
  width: 72px; height: 72px; padding: 0; border: 0; border-radius: 14px; cursor: pointer; background: none;
  box-shadow: 0 0 0 1.5px #4a4a52;
}
.swatch input::-webkit-color-swatch-wrapper { padding: 0; }
.swatch input::-webkit-color-swatch { border: 0; border-radius: 14px; }
.swatch input::-moz-color-swatch { border: 0; border-radius: 14px; }
.swatches.is-off .swatch { opacity: .3; pointer-events: none; }

/* Sliders */
.sliders { display: grid; gap: 6px; margin: 0 0 18px; }
.slider {
  display: grid; grid-template-columns: 150px minmax(0, 1fr) 150px; align-items: center; gap: 18px;
  padding: 16px 20px; background: var(--ink-raised); border-radius: 12px; font-size: 15px;
}
.sl-l { text-align: right; color: var(--mute-dark); }
.sl-r { color: var(--mute-dark); }
.slider input { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: transparent; cursor: pointer; }
.slider input::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: #3a3a3f; }
.slider input::-moz-range-track { height: 4px; border-radius: 4px; background: #3a3a3f; }
.slider input::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -9px; border-radius: 50%; background: var(--brass); transition: transform .2s var(--ease); }
.slider input::-moz-range-thumb { width: 22px; height: 22px; border: 0; border-radius: 50%; background: var(--brass); }
.slider input:active::-webkit-slider-thumb { transform: scale(1.18); }
.slider[data-side="l"] .sl-l, .slider[data-side="r"] .sl-r { color: var(--on-dark); }
.tone-out { font-family: var(--serif); font-size: clamp(24px, 2vw, 30px); line-height: 1.25; color: var(--brass); margin: 18px 0 40px; min-height: 2.5em; }

/* Notes */
.note { background: var(--ink-raised); border-radius: 12px; padding: 16px 20px; margin: -16px 0 36px; font-size: 16px; color: var(--on-dark); max-width: 60ch; }
.note strong { color: var(--brass); }

/* Calendar */
.cal { background: var(--bone); border-radius: 20px; overflow: hidden; height: 700px; }
.cal iframe { width: 100%; height: 100%; border: 0; display: block; }
.cal-alt { font-size: 15px; color: var(--mute-dark); margin: 14px 0 20px; }
.cal-alt a, .done-sent a { color: var(--brass); text-underline-offset: 3px; }
.check-booked span { font-weight: 600; }
.check-booked.is-auto span { color: var(--brass); }

/* Nav */
.nav { display: flex; gap: 12px; margin-top: 48px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 30px; border: 0; border-radius: 999px; cursor: pointer;
  font-size: 16px; font-weight: 600; text-decoration: none;
  transition: background-color .2s, color .2s, transform .25s var(--ease);
}
.btn:active { transform: scale(.97); }
.btn-brass { background: var(--brass); color: #15120c; }
.btn-brass:hover { background: var(--brass-hover); }
.btn-brass[aria-disabled="true"] { background: #4a4234; color: #a8a090; cursor: not-allowed; }
.btn-quiet { background: var(--ink-lifted); color: var(--on-dark); }
.btn-quiet:hover { background: #2a2a2f; }
.nav-hint { color: var(--error); font-size: 15px; min-height: 1.6em; margin: 14px 0 0; }

/* ---------- Brief (paper) ---------- */
.brief { position: relative; }
.brief-toggle { display: none; }
.paper {
  position: sticky; top: calc(var(--bar-h) + 24px);
  background: var(--bone); color: var(--on-bone);
  border-radius: 6px;
  padding: 32px 32px 36px;
  max-height: calc(100vh - var(--bar-h) - 48px);
  overflow: auto;
  scrollbar-color: #c9c6be var(--bone);
  transform: rotate(.6deg);
  box-shadow: 0 24px 60px -30px rgba(0,0,0,.6);
}
.paper::selection, .paper *::selection { background: var(--ink); color: var(--bone); }
.paper-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.paper-head img { width: 150px; }
.paper-date { margin: 0; font-size: 13px; color: var(--mute-bone); font-variant-numeric: tabular-nums; }
.paper-title { font-size: 38px; margin-top: 30px; }
.paper-sub { margin: 4px 0 0; font-size: 15px; color: var(--mute-bone); }
.paper-meter { height: 4px; background: var(--bone-deep); border-radius: 4px; margin-top: 18px; overflow: hidden; }
.paper-meter span { display: block; height: 100%; width: 0; background: var(--brass-deep); transition: width .6s var(--ease); }
.paper-pct { margin: 6px 0 0; font-size: 13px; color: var(--mute-bone); font-variant-numeric: tabular-nums; }
.paper-sec { margin-top: 26px; }
.paper-sec h3 { font-family: var(--serif); font-size: 22px; font-weight: 600; margin: 0 0 8px; }
.paper dl { margin: 0; display: grid; grid-template-columns: 122px minmax(0, 1fr); gap: 6px 14px; font-size: 14px; line-height: 1.45; }
.paper dt { color: var(--mute-bone); }
.paper dd { margin: 0; overflow-wrap: anywhere; border-radius: 3px; transition: background-color 1.2s; }
.paper dd:empty::before { content: "offen"; color: #a19e97; }
.paper dd.flash { background: rgba(210,174,109,.45); transition: none; }
.paper .chip { display: inline-block; width: 18px; height: 18px; border-radius: 4px; margin-right: 6px; vertical-align: -4px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.15); }

/* ---------- Done ---------- */
.step-done {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: clamp(32px, 6vw, 112px); align-items: center;
  min-height: calc(100vh - var(--bar-h));
  padding: clamp(32px, 5vw, 72px) 0;
  max-width: 1360px; margin: 0 auto;
}
.step-done h2 { font-size: clamp(42px, 4.6vw, 76px); }
.timeline { list-style: none; padding: 0; margin: 0 0 40px; display: grid; gap: 6px; max-width: 640px; }
.timeline li { padding: 18px 22px; background: var(--ink-raised); border-radius: 12px; font-size: 16px; }
.timeline strong { display: block; color: var(--brass); font-weight: 600; margin-bottom: 2px; }
.done-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.done-sent { color: var(--mute-dark); font-size: 15px; margin-top: 18px; }
.done-photo { margin: 0; border-radius: 20px; overflow: hidden; height: min(80vh, 760px); }
.done-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 30%; }

/* ---------- Motion ---------- */
.step.is-entering > * { animation: rise .7s var(--ease) both; }
.step.is-entering > *:nth-child(2) { animation-delay: .07s; }
.step.is-entering > *:nth-child(3) { animation-delay: .14s; }
.step.is-entering > *:nth-child(4) { animation-delay: .21s; }
.step.is-entering > *:nth-child(n+5) { animation-delay: .28s; }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
.paper.is-entering { animation: paperIn .9s var(--ease) both; }
@keyframes paperIn { from { opacity: 0; transform: translateY(40px) rotate(2.5deg); } to { opacity: 1; transform: rotate(.6deg); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  body:not([data-step="start"]):not([data-step="done"]) .work { grid-template-columns: 1fr; padding-bottom: 140px; }
  .bar-save { display: none; }
  .bar { grid-template-columns: auto 1fr; }
  .bar-step { text-align: right; }
  .brief { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; pointer-events: none; }
  .brief-toggle {
    pointer-events: auto;
    display: flex; justify-content: space-between; align-items: center;
    width: calc(100% - 2 * var(--gutter)); margin: 0 var(--gutter) 12px;
    min-height: 56px; padding: 0 22px; border: 0; border-radius: 999px; cursor: pointer;
    background: var(--bone); color: var(--on-bone); font-weight: 600; font-size: 16px;
    box-shadow: 0 16px 40px -16px rgba(0,0,0,.8);
  }
  .brief-pct { font-variant-numeric: tabular-nums; color: var(--brass-deep); }
  .paper {
    pointer-events: auto;
    position: fixed; left: 0; right: 0; bottom: 0; top: auto;
    max-height: 82vh; border-radius: 20px 20px 0 0; transform: translateY(105%);
    transition: transform .5s var(--ease); padding-bottom: 96px;
  }
  .brief.is-open .paper { transform: none; }
  .brief.is-open .brief-toggle { position: fixed; bottom: 0; left: 0; right: 0; z-index: 2; }
  .paper.is-entering { animation: none; }
  .step-start, .step-done { grid-template-columns: 1fr; min-height: 0; }
  .start-photo, .done-photo { height: 46vh; }
  .done-photo { order: -1; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .bar-logo img { width: 128px; }
  .bar-step #stepName { display: none; }
  .grid-2 { grid-template-columns: 1fr; gap: 0; }
  .tiles, .tiles-wide { grid-template-columns: 1fr; }
  .slider { grid-template-columns: 1fr 1fr; gap: 4px 12px; padding: 14px 16px; }
  .slider input { grid-column: 1 / -1; grid-row: 2; }
  .sl-l { text-align: left; }
  .sl-r { text-align: right; }
  .start-list li { grid-template-columns: 1fr; gap: 2px; }
  .intro { margin-bottom: 32px; }
  .cal { height: 640px; }
  .nav { position: static; }
  .nav .btn { flex: 1; }
  .start-photo { height: 38vh; }
}

/* ---------- Print: just the brief ---------- */
@media print {
  @page { margin: 16mm; }
  body { background: #fff; }
  .bar, .form, .start-photo, .step-start, .step-done, .brief-toggle { display: none !important; }
  .work { display: block !important; padding: 0 !important; }
  .brief { position: static !important; }
  .paper { position: static !important; transform: none !important; box-shadow: none; max-height: none; overflow: visible; background: #fff; padding: 0; }
  .paper-meter, .paper-pct, .paper-sub { display: none; }
}
