:root {
  --bg: #ffffff;
  --bg-raised: #f7f5f2;
  --bg-field: #ffffff;
  --ink: #1d1b19;
  --ink-soft: #5f5850;
  --accent: #e9b44c;
  --accent-deep: #d9a23a;
  --rule: #d9d4cc;
  --accent-wash: #fdf5e4;
  --font: "Schibsted Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 18px/1.6 var(--font);
}

h1, h2, h3 {
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin: 0;
}
h1 { font-size: clamp(2.5rem, 5.2vw, 4rem); max-width: 20ch; }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); margin-bottom: 1.25rem; }

p { margin: 0 0 1.1em; max-width: 62ch; }
a { color: var(--accent); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
/* Narrow sections keep the hero's left edge; only the text measure shrinks */
.narrow > * { max-width: 760px; }

/* Hero: words left, portrait right, tied together by the accent block behind the photo */
.hero { padding: 88px 0 96px; }
.hero .wrap {
  display: grid;
  padding-right: 40px;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 56px;
  align-items: end;
}
.hero-text { padding-bottom: 24px; }
.lead {
  font-size: 1.2rem;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 1.5rem 0 1.5rem;
  max-width: 54ch;
}
.ask-line { font-weight: 500; margin: 0 0 1.25rem; max-width: 54ch; }
.portrait { position: relative; margin: 0; }
.portrait::before {
  content: "";
  position: absolute;
  inset: 28px -20px -20px 28px;
  background: var(--accent);
}
.portrait img {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 9 / 11;
  object-fit: cover;
  object-position: 50% 20%;
}

.actions { display: flex; flex-wrap: wrap; gap: 14px 18px; align-items: center; }

.button {
  display: inline-block;
  background: var(--accent);
  color: #1d1b19;
  border: 2px solid var(--accent);
  border-radius: 6px;
  padding: 13px 26px;
  font: 700 1rem var(--font);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 120ms ease, border-color 120ms ease;
}
.button:hover { background: var(--accent-deep); border-color: var(--accent-deep); }
.button:disabled { opacity: 0.6; cursor: default; }
.button.secondary { background: transparent; color: var(--ink); border-color: var(--rule); }
.button.secondary:hover { border-color: var(--ink-soft); }

section { padding: 80px 0; }
section.alt { background: var(--bg-raised); }

.problem p:first-of-type::first-letter {
  font-weight: 700;
  font-size: 3.4em;
  float: left;
  line-height: 0.75;
  padding: 7px 8px 0 0;
  color: var(--accent);
}

.ideas-intro { max-width: 62ch; margin-bottom: 2.5rem; color: var(--ink-soft); }
.ideas {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px 48px;
}
.ideas li { border-top: 2px solid var(--accent); padding-top: 16px; color: var(--ink-soft); }
.ideas strong {
  display: block;
  color: var(--ink);
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin-bottom: 0.4rem;
}

/* The ask: the one loud moment on the page */
.ask {
  background: var(--accent);
  color: var(--bg);
  padding: 96px 0;
}
.ask h2 { max-width: 16ch; }
.ask p { color: #3a2e14; font-size: 1.1rem; }
.ask .button { background: var(--bg); color: var(--ink); border-color: var(--bg); margin-top: 0.5rem; }
.ask .button:hover { background: #000; border-color: #000; }
.ask .wrap {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 48px;
  align-items: start;
}

.form { margin-top: 2rem; display: grid; gap: 18px; max-width: 640px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form label { display: grid; gap: 6px; font-weight: 500; font-size: 0.95rem; }
.form input, .form textarea, .field {
  font: 400 1rem var(--font);
  padding: 12px 14px;
  border: 1.5px solid var(--rule);
  border-radius: 6px;
  background: var(--bg-field);
  color: var(--ink);
  width: 100%;
}
.form input::placeholder, .form textarea::placeholder, .field::placeholder { color: #8a8278; }
.form input:focus, .form textarea:focus, .field:focus { border-color: var(--accent); outline: none; }
.form .button { justify-self: start; }
.label-text { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.optional { font-weight: 400; font-size: 0.85rem; color: var(--ink-soft); white-space: nowrap; }
.hp { position: absolute; left: -9999px; }
.form-message { margin: 0; min-height: 1.6em; }
.form-message.success { color: var(--ink); font-weight: 500; }
.form-message.error { color: #b3402a; }

.site-footer {
  border-top: 1px solid var(--rule);
  padding: 28px 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

/* Survey */
.survey { padding: 72px 0 96px; }
.survey .wrap > * { max-width: 720px; }
.survey h1 { max-width: 18ch; }
.survey-intro p:not(.lead) { color: var(--ink-soft); }
.survey-intro .button { margin-top: 0.75rem; }

.progress { margin-bottom: 40px; }
.progress-text { margin: 0 0 8px; font-size: 0.9rem; color: var(--ink-soft); }
.progress-bar { height: 4px; background: var(--rule); border-radius: 2px; overflow: hidden; }
.progress-bar span { display: block; height: 100%; width: 0; background: var(--accent); transition: width 240ms ease; }
@media (prefers-reduced-motion: reduce) { .progress-bar span { transition: none; } }

section.step { padding: 0; }
.step h2 { margin-bottom: 2rem; }
.step h2:focus { outline: none; }
.q { display: block; border: 0; margin: 0 0 40px; padding: 0; min-width: 0; }
.q legend, .q-label { font-weight: 700; font-size: 1.15rem; line-height: 1.35; padding: 0; margin-bottom: 12px; }
.q-label { display: flex; }
.q legend + .choices, .q legend + .scale, .q legend + .row-2 { margin-top: 0; }
.hint { margin: -6px 0 12px; font-size: 0.95rem; color: var(--ink-soft); }
select.field { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink-soft) 50%), linear-gradient(135deg, var(--ink-soft) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
.field.other { margin-top: 10px; }

.choices { display: grid; gap: 8px; }
.choices.cols { grid-template-columns: 1fr 1fr; }
.choices.row { grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); }
.choice {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1.5px solid var(--rule);
  border-radius: 6px;
  background: var(--bg-field);
  line-height: 1.3;
  cursor: pointer;
  transition: border-color 120ms ease;
}
.choice:hover { border-color: var(--ink-soft); }
.choice:has(input:checked) { border-color: var(--accent); background: var(--accent-wash); }
.choice:has(input:focus-visible) { outline: 3px solid var(--accent); outline-offset: 2px; }
.choice:has(input:disabled) { opacity: 0.45; cursor: default; }
.choice input { accent-color: var(--accent); width: 18px; height: 18px; margin: 0; flex: none; }
.choice input:focus-visible { outline: none; }

.scale { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.scale .choice { flex-direction: column; gap: 6px; padding: 12px 0; font-weight: 700; }
.scale-ends { display: flex; justify-content: space-between; margin-top: 8px; font-size: 0.9rem; color: var(--ink-soft); }

.rank input { position: absolute; opacity: 0; pointer-events: none; }
.rank .choice { position: relative; }
.rank-badge {
  flex: none;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border: 1.5px solid var(--rule);
  border-radius: 50%;
  font-weight: 700;
  font-size: 0.85rem;
}
.rank .choice:has(input:checked) .rank-badge { background: var(--accent); border-color: var(--accent); color: var(--ink); }

.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.sub-label { display: grid; gap: 6px; font-size: 0.95rem; color: var(--ink-soft); }

.step-nav { display: flex; gap: 12px; margin-top: 8px; }
.survey-form .form-message { margin-top: 16px; }

.survey-done h1:focus { outline: none; }
.survey-done h2 { margin-top: 3rem; margin-bottom: 0.75rem; font-size: clamp(1.4rem, 2.4vw, 1.8rem); }
.survey-done .lead { margin-bottom: 0; }

@media (max-width: 640px) {
  .survey { padding: 48px 0 72px; }
  .choices.cols, .row-2 { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .hero { padding: 48px 0 64px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 48px; padding-right: 20px; }
  .hero-text { padding-bottom: 0; }
  .portrait { max-width: 420px; margin-right: 20px; }
  .ideas { grid-template-columns: 1fr; gap: 28px; }
  .ask .wrap { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 640px) {
  body { font-size: 17px; }
  section { padding: 56px 0; }
  .ask { padding: 64px 0; }
  .form .row { grid-template-columns: 1fr; }
  .wrap { padding: 0 16px; }
  .portrait::before { inset: 20px -16px -16px 20px; }
}
