/* Patton Contractors, round 7 preview. One house, one day. */

@font-face {
  font-family: 'Archivo';
  src: url('/assets/fonts/archivo-latin.woff2') format('woff2');
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Archivo';
  src: url('/assets/fonts/archivo-latin-italic.woff2') format('woff2');
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: italic;
  font-display: swap;
}

@property --ground { syntax: '<color>'; inherits: true; initial-value: #e4e8e2; }
@property --fg { syntax: '<color>'; inherits: true; initial-value: #121b19; }
@property --fg-2 { syntax: '<color>'; inherits: true; initial-value: #3d4b47; }
@property --rule { syntax: '<color>'; inherits: true; initial-value: rgb(18 27 25 / .2); }

:root {
  --limestone: #e4e8e2;
  --limestone-deep: #d5dbd3;
  --paper: #f3f4ef;
  --ink: #121b19;
  --ink-2: #3d4b47;
  --patton: #3e5c59;
  --field: #2c4643;
  --field-fg: #eef1ea;
  --field-fg-2: #c6d4ce;
  --night: #0e1b1e;
  --night-fg: #eeede6;
  --night-fg-2: #a8b7b4;
  --amber: #eaa640;
  --amber-deep: #d18a22;
  --nameplate: #ffffff; /* the logo's own background, kept exact */
  --error: #9e2a1d;
  --accent-ink: #3e5c59; /* accent as text or chart mark on light grounds: 5.9:1 on limestone */

  --ground: var(--limestone);
  --fg: var(--ink);
  --fg-2: var(--ink-2);
  --rule: rgb(18 27 25 / .2);

  --gutter: clamp(20px, 4.2vw, 64px);
  --header-h: 72px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);

  --text: 'Archivo', 'Arial Narrow', sans-serif;
  color-scheme: light;
}

@media (max-width: 767px) {
  :root { --header-h: 60px; }
}


@media (prefers-color-scheme: dark) {
  :root {
    --limestone: #172120;
    --limestone-deep: #1f2b29;
    --paper: #1d2826;
    --ink: #e6ebe5;
    --ink-2: #a9b6b1;
    --error: #ff9c8a;
    --accent-ink: #eaa640;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }

/* Hidden means hidden, whatever display a component sets. */
[hidden] { display: none !important; }


html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
  scrollbar-color: #5e6d69 #0e1412;
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--fg);
  font-family: var(--text);
  font-stretch: 100%;
  font-size: 1.125rem;
  line-height: 1.55;
  font-kerning: normal;
  font-feature-settings: 'kern', 'liga';
  caret-color: var(--amber-deep);
  overflow-x: clip;
}

::selection { background: var(--amber); color: #121b19; }

img, video { display: block; max-width: 100%; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .22em; }

:where(a, button, input, textarea, select, summary, [tabindex]):focus-visible {
  outline: 3px solid var(--fg);
  outline-offset: 3px;
  box-shadow: 0 0 0 3px var(--ground);
}

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: var(--gutter); top: -100px; z-index: 100;
  background: var(--amber); color: #121b19; padding: 12px 16px; font-weight: 650; text-decoration: none;
}
.skip:focus { top: 12px; }

/* ---------- Type ---------- */

.display, h1, h2 {
  font-stretch: 118%;
  font-weight: 300;
  letter-spacing: -0.04em;
  line-height: .96;
  text-wrap: balance;
  margin: 0;
}

h1 { font-size: clamp(2.8rem, 1.3rem + 4.4vw, 6rem); }
h2 { font-size: clamp(2.1rem, 1.3rem + 2.1vw, 3.7rem); }
h3 { font-stretch: 112%; font-weight: 700; font-size: 1.25rem; line-height: 1.2; margin: 0; letter-spacing: -0.01em; }

p { margin: 0; }
.lede { font-size: clamp(1.15rem, 1.05rem + .4vw, 1.35rem); line-height: 1.45; color: var(--fg-2); max-width: 34ch; text-wrap: pretty; }
.body { color: var(--fg-2); max-width: 58ch; text-wrap: pretty; }
.body strong { color: var(--fg); font-weight: 650; }
.note { font-stretch: 88%; font-size: .875rem; line-height: 1.4; color: var(--fg-2); }

/* ---------- Actions ---------- */

/* Pill buttons. A small amber lamp marks the main action wherever it appears. */
.btn {
  display: inline-flex; align-items: center; gap: .65em;
  min-height: 50px; padding: 0 22px 0 18px;
  background: var(--fg); color: var(--ground);
  font: inherit; font-stretch: 104%; font-weight: 600; font-size: 1rem; letter-spacing: 0;
  text-decoration: none; border: 0; border-radius: 999px; cursor: pointer; white-space: nowrap;
  transition: background-color .25s var(--ease-out), transform .25s var(--ease-out), box-shadow .25s var(--ease-out);
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 10px 22px -12px rgb(0 0 0 / .45); }
.btn:active { transform: translateY(1px) scale(.99); box-shadow: none; }
.btn .arrow { width: 18px; height: 18px; flex: none; transition: transform .25s var(--ease-out); }
.btn:hover .arrow { transform: translateX(3px); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.btn--ink { background: var(--ink); color: var(--paper); }

.lamp {
  width: 8px; height: 8px; flex: none; border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 3px rgb(234 166 64 / .22), 0 0 12px 1px rgb(234 166 64 / .75);
}

.btn--quiet {
  background: transparent; color: var(--fg);
  box-shadow: inset 0 0 0 1.5px var(--fg);
}
.btn--quiet:hover { background: color-mix(in srgb, var(--fg) 10%, transparent); box-shadow: inset 0 0 0 1.5px var(--fg); }

/* The underline is real text decoration, so a link that wraps is underlined line by
   line (a single drawn line once ran through the second line and read as struck out). */
.textlink {
  display: inline-flex; align-items: center; gap: .55em;
  min-height: 44px;
  font-stretch: 104%; font-weight: 600; font-size: 1rem; color: var(--fg);
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .42em;
  text-decoration-color: currentColor; transition: text-decoration-color .3s var(--ease-out);
}
.textlink:hover { text-decoration-color: transparent; }
.textlink .arrow { width: 16px; height: 16px; transition: transform .3s var(--ease-out); }
.textlink:hover .arrow { transform: translateX(3px); }

.arrow { stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: square; }

/* ---------- Header ---------- */

/* Two floating pieces: Patton's nameplate (the mark keeps its own colours on
   its own light plate) and a dark glass pill holding the links and the action. */
.site-header {
  position: sticky; top: 0; z-index: 40;
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 0 var(--gutter);
  color: var(--cream, #f3efe6);
}

.nameplate {
  display: flex; align-items: center; flex: none;
  height: 46px; padding: 0 16px;
  background: var(--nameplate); border-radius: 12px;
  box-shadow: 0 8px 24px -14px rgb(0 0 0 / .55), 0 0 0 1px rgb(0 0 0 / .05);
  text-decoration: none;
}
.nameplate img { height: 28px; width: auto; }

.site-nav {
  display: flex; align-items: center; gap: 4px;
  padding: 4px;
  background: rgb(12 18 17 / .62);
  -webkit-backdrop-filter: blur(16px) saturate(1.3); backdrop-filter: blur(16px) saturate(1.3);
  border-radius: 999px;
  box-shadow: 0 0 0 1px rgb(255 255 255 / .08), 0 10px 30px -18px rgb(0 0 0 / .6);
}
.navlinks { display: flex; align-items: center; }
.site-nav a.navlink {
  display: inline-flex; align-items: center; min-height: 42px; padding: 0 16px;
  color: #f3efe6; text-decoration: none; border-radius: 999px;
  font-stretch: 100%; font-weight: 500; font-size: .94rem;
  transition: background-color .25s var(--ease-out);
}
.site-nav a.navlink:hover, .site-nav a.navlink[aria-current='page'] { background: rgb(255 255 255 / .1); }
.site-nav .btn { min-height: 42px; padding: 0 18px 0 15px; font-size: .94rem; background: #f3efe6; color: #0e1412; }

.menu-toggle { display: none; }

.page .site-nav { background: rgb(14 20 18 / .88); }
@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .site-nav { background: rgb(12 18 17 / .9); }
}
@media (max-width: 1100px) {
  .navlinks, .site-nav > a.navlink { display: none; }
  .site-nav, .page .site-nav, :root[data-head='light'] .home .site-nav { background: none; padding: 0; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .site-nav .btn { box-shadow: 0 8px 22px -12px rgb(0 0 0 / .6), 0 0 0 1px rgb(0 0 0 / .06); }
}
@media (max-width: 900px) {
  .navlinks, .site-nav > a.navlink { display: none; }
  .site-nav, .page .site-nav, :root[data-head='light'] .home .site-nav { background: none; padding: 0; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .site-nav .btn { box-shadow: 0 8px 22px -12px rgb(0 0 0 / .6), 0 0 0 1px rgb(0 0 0 / .06); }
}
@media (max-width: 767px) {
  .site-header { padding: 0 max(12px, env(safe-area-inset-left)); }
  .nameplate { height: 42px; padding: 0 12px; border-radius: 10px; }
  .nameplate img { height: 24px; }
  .site-nav .btn { min-height: 40px; padding: 0 14px 0 12px; font-size: .9rem; }
}

/* ---------- Lists ---------- */

.details { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; max-width: 34rem; }
.details li { padding: 11px 0; border-top: 1px solid var(--rule); font-size: 1.02rem; color: var(--fg); }
.details li:last-child { border-bottom: 1px solid var(--rule); }

/* ---------- Sections ---------- */

.section { padding: clamp(80px, 11vw, 150px) var(--gutter); }
.wrap { max-width: 1320px; margin: 0 auto; }

/* Plan */
.plan { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 88px); align-items: start; }
.plan-intro { display: grid; gap: 22px; position: sticky; top: calc(var(--header-h) + 32px); }
.plan-figure { margin: 18px 0 0; }
.plan-figure img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.plan-figure figcaption { margin-top: 10px; }

/* The planning tools: three numbered blocks, all visible, in order. */
.plan-tools { display: grid; gap: clamp(52px, 6vw, 84px); }
.plan-block { padding-top: 24px; border-top: 2px solid var(--fg); }
.plan-h { display: flex; align-items: center; gap: 14px; margin: 0 0 16px; text-wrap: balance; font-weight: 400; font-stretch: 112%; font-size: clamp(1.45rem, 1.15rem + 1vw, 1.95rem); letter-spacing: -0.02em; line-height: 1.15; }
.plan-n { flex: none; display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--accent-ink); color: var(--ground); font-size: 1.05rem; font-weight: 650; font-stretch: 100%; letter-spacing: 0; }
.seg-label { margin: 0 0 10px; font-weight: 600; font-size: 1rem; }
.panel-lead { color: var(--fg-2); max-width: 56ch; margin-bottom: 24px; }

.segmented { display: inline-flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.segmented button {
  min-height: 44px; padding: 0 18px; border-radius: 999px; cursor: pointer;
  background: transparent; color: var(--fg); border: 1.5px solid var(--rule);
  font: inherit; font-stretch: 100%; font-size: .95rem; font-weight: 560;
}
.segmented button[aria-pressed='true'] { border-color: var(--fg); background: var(--fg); color: var(--ground); }

.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li { border-top: 1px solid var(--rule); }
.checklist li:last-child { border-bottom: 1px solid var(--rule); }
.check { display: grid; grid-template-columns: 28px 1fr; gap: 14px; align-items: start; padding: 15px 0; cursor: pointer; }
.check input { appearance: none; width: 24px; height: 24px; margin: 1px 0 0; border: 1.5px solid var(--fg-2); border-radius: 6px; background: transparent; cursor: pointer; display: grid; place-items: center; }
.check input::after { content: ''; width: 12px; height: 7px; border-left: 2.5px solid #121b19; border-bottom: 2.5px solid #121b19; transform: rotate(-45deg) translate(1px, -1px) scale(0); transition: transform .2s var(--ease-out); }
.check input:checked { background: var(--amber); border-color: var(--amber); }
.check input:checked::after { transform: rotate(-45deg) translate(1px, -1px) scale(1); }
.check span { font-size: 1.02rem; line-height: 1.45; }
.check input:checked + span { color: var(--fg); }
.gather-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; margin-top: 26px; }
.gather-count { color: var(--fg-2); font-size: .95rem; }
.gather-showing { margin: -8px 0 14px; }

.season-now { font-size: 1.12rem; line-height: 1.5; max-width: 52ch; margin-bottom: 30px; text-wrap: pretty; }
.season-now strong { font-weight: 650; }
.season { width: 100%; border-collapse: collapse; table-layout: fixed; font-variant-numeric: tabular-nums; }
.season th, .season td { padding: 0; font-weight: 400; }
.season thead th { font-stretch: 80%; font-size: .75rem; color: var(--fg-2); text-align: center; padding-bottom: 10px; position: relative; }
.season thead th.is-now { color: var(--fg); font-weight: 750; }
.season thead th:first-child { width: 34%; }
.season tbody th { text-align: left; font-stretch: 94%; font-size: .9375rem; padding: 12px 14px 12px 0; border-top: 1px solid var(--rule); line-height: 1.25; }
.season td { border-top: 1px solid var(--rule); padding: 0 1.5px; position: relative; }
.season td i { display: block; height: 22px; }
.season td[data-fit='2'] i { background: var(--accent-ink); }
.season td[data-fit='1'] i { box-shadow: inset 0 0 0 1.5px var(--accent-ink); }
.season td.is-now::after, .season thead th.is-now::after { content: ''; position: absolute; inset: 0 auto 0 50%; width: 1.5px; background: var(--fg); transform: translateX(-50%); opacity: .7; }
.season thead th.is-now::after { top: auto; height: 6px; bottom: 0; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 18px; color: var(--fg-2); font-size: .875rem; }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.legend i { width: 22px; height: 12px; display: inline-block; }
.legend .good { background: var(--accent-ink); }
.legend .maybe { box-shadow: inset 0 0 0 1.5px var(--accent-ink); }
.legend .none, .season td[data-fit='0'] i { box-shadow: inset 0 -1.5px 0 var(--rule); }
.season-note { margin-top: 18px; }

.questions { list-style: none; margin: 0; padding: 0; counter-reset: q; }
.questions li { display: grid; grid-template-columns: 2.4rem 1fr; gap: 10px; padding: 16px 0; border-top: 1px solid var(--rule); font-size: 1.08rem; line-height: 1.45; }
.questions li:last-child { border-bottom: 1px solid var(--rule); }
.questions li::before { counter-increment: q; content: counter(q); font-stretch: 118%; font-weight: 750; color: var(--accent-ink); }

@media (max-width: 900px) {
  .plan { grid-template-columns: minmax(0, 1fr); }
  .plan-intro { position: static; }
}
@media (max-width: 560px) {
  .season thead th { font-size: .75rem; }
  .season thead th:first-child { width: 38%; }
  .season tbody th { font-size: .8125rem; }
}

/* Close */
.close { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.close-copy { display: grid; gap: 26px; }
.choices { list-style: none; margin: 8px 0 0; padding: 0; }
.choices li { border-top: 1px solid var(--rule); }
.choices li:last-child { border-bottom: 1px solid var(--rule); }
.choice {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 68px; padding: 10px 4px;
  text-decoration: none; color: var(--fg);
  font-stretch: 112%; font-weight: 700; font-size: clamp(1.25rem, 1.05rem + .7vw, 1.6rem); letter-spacing: -0.01em;
  transition: color .25s;
}
.choice > span { transition: transform .35s var(--ease-out); }
.choice .arrow { width: 26px; height: 26px; flex: none; color: var(--amber); transition: transform .35s var(--ease-out); }
.choice:hover > span, .choice:focus-visible > span { transform: translateX(12px); }
.choice:hover .arrow, .choice:focus-visible .arrow { transform: translateX(4px); }
.choice small { display: block; font-stretch: 100%; font-weight: 400; font-size: .9375rem; color: var(--fg-2); letter-spacing: 0; margin-top: 2px; }

.close-figure { margin: 0; position: relative; }
.close-figure figcaption { margin-top: 14px; min-height: 1.4em; }

@media (max-width: 900px) {
  .close { grid-template-columns: minmax(0, 1fr); }
  .close-figure { order: -1; }
}
/* Phones: the choices come first; the drawing closes the page beneath them. */
@media (max-width: 767px) {
  .close-figure { order: 0; margin-top: 8px; }
}

/* Footer */
.site-footer { padding: 56px var(--gutter) 40px; border-top: 1px solid var(--rule); }
.footer-grid { max-width: 1320px; margin: 0 auto; display: grid; grid-template-columns: auto 1fr auto; gap: 28px 48px; align-items: start; }
.footer-plate { background: var(--nameplate); padding: 14px 18px; display: inline-flex; border-radius: 12px; }
.footer-plate img { height: 44px; width: auto; }
.footer-grid nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.footer-grid nav a { text-decoration: none; min-height: 36px; display: inline-flex; align-items: center; }
.footer-grid nav a:hover { text-decoration: underline; }
.footer-note { grid-column: 1 / -1; padding-top: 24px; border-top: 1px solid var(--rule); max-width: 90ch; }
@media (max-width: 767px) { .footer-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Inner pages (start, work) ---------- */

.page { min-height: 100svh; }
.page-head { display: grid; gap: 18px; max-width: 760px; }
.crumb { display: inline-flex; }

/* Work detail */
.work { display: grid; grid-template-columns: minmax(0, 400px) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: start; margin-top: 48px; }
.work figure { margin: 0; max-width: 400px; }
.work img { width: 100%; max-width: 400px; aspect-ratio: 400 / 284; height: auto; }
.work figcaption { margin-top: 12px; }
.work-copy { display: grid; gap: 22px; max-width: 56ch; }
.work-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; }
.others { margin-top: clamp(64px, 8vw, 110px); padding-top: 28px; border-top: 1px solid var(--rule); }
.others ul { list-style: none; margin: 20px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 24px 40px; }
.others a { display: grid; grid-template-columns: 120px auto; gap: 16px; align-items: center; text-decoration: none; min-height: 44px; }
.others img { width: 120px; aspect-ratio: 400 / 284; height: auto; }
.others a:hover span { text-decoration: underline; }
@media (max-width: 767px) { .work { grid-template-columns: minmax(0, 1fr); } }

/* Start */
.start { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 80px); align-items: start; margin-top: 44px; }
.demo-note {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 14px 16px; margin-bottom: 34px; border-radius: 10px;
  background: var(--limestone-deep); color: var(--ink);
  font-size: .95rem; line-height: 1.45;
}
.demo-note::before { content: ''; flex: none; width: 4px; align-self: stretch; background: var(--amber); }

.form { display: grid; gap: 0; }
.group { border: 0; margin: 0; padding: 26px 0 30px; border-top: 1px solid var(--rule); min-width: 0; }
.group legend { float: left; width: 100%; }
.group legend + * { clear: both; }
.group legend, .group > .label { padding: 0; display: flex; gap: 14px; align-items: baseline; font-stretch: 110%; font-weight: 600; font-size: 1.2rem; line-height: 1.25; margin-bottom: 16px; }
.group .num { font-stretch: 100%; font-weight: 300; font-style: italic; color: var(--accent-ink); min-width: 1.4rem; }
.group .optional { font-stretch: 90%; font-weight: 450; font-size: .9rem; color: var(--fg-2); }
/* "Optional" follows its question's last word, however the question wraps. */
.group .legend-text .optional { margin-left: .2em; white-space: nowrap; }
.hint { color: var(--fg-2); font-size: .95rem; margin: -6px 0 12px 0; }

.options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.option { position: relative; }
.option input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.option span {
  display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 12px 14px;
  border: 1.5px solid var(--rule); border-radius: 12px; background: var(--paper);
  font-size: 1rem; line-height: 1.3; font-weight: 520;
  transition: border-color .2s, background-color .2s;
}
.option span::before { content: ''; flex: none; width: 16px; height: 16px; border: 1.5px solid var(--fg-2); border-radius: 50%; background: var(--paper); box-shadow: inset 0 0 0 3px var(--paper); transition: background-color .2s; }
.option input:checked + span { border-color: var(--fg); }
.option input:checked + span::before { background: var(--fg); border-color: var(--fg); }
.option input:focus-visible + span { outline: 3px solid var(--fg); outline-offset: 3px; }
.option input:hover + span { border-color: var(--fg-2); }
@media (max-width: 520px) { .options { grid-template-columns: minmax(0, 1fr); } }

.field { display: grid; gap: 8px; }
.field + .field { margin-top: 18px; }
.field label { font-weight: 600; font-size: 1rem; }
.input, .textarea {
  width: 100%; min-height: 52px; padding: 12px 14px;
  background: var(--paper); color: var(--fg);
  border: 1.5px solid var(--fg-2); border-radius: 10px;
  font: inherit; font-size: 1.0625rem; line-height: 1.4;
}
.textarea { min-height: 150px; resize: vertical; }
.input::placeholder, .textarea::placeholder { color: var(--ink-2); opacity: 1; font-style: italic; font-stretch: 94%; }
.input[aria-invalid='true'], .textarea[aria-invalid='true'] { border-color: var(--error); box-shadow: inset 0 0 0 1px var(--error); }
.error { color: var(--error); font-weight: 600; font-size: .95rem; display: flex; gap: 8px; align-items: baseline; }
.error[hidden] { display: none; }
.field-short { max-width: 22rem; }
@media (max-width: 480px) { .field-short { max-width: none; } }

.error-summary { padding: 18px 20px; margin-bottom: 28px; border: 2px solid var(--error); border-radius: 12px; background: var(--paper); scroll-margin-top: calc(var(--header-h) + 16px); }
.error-summary h2 { font-size: 1.25rem; font-stretch: 110%; margin-bottom: 8px; }
.error-summary ul { margin: 0; padding-left: 1.2em; }
.error-summary a { color: var(--error); font-weight: 600; }

.ready-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.ready-list[hidden] { display: none; }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 6px 0 14px; border-radius: 999px; background: var(--limestone-deep); color: var(--fg); font-size: .9rem; }
.chip button { min-width: 36px; min-height: 36px; border: 0; background: none; color: inherit; cursor: pointer; font: inherit; font-size: 1.2rem; line-height: 1; }

.submit-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; padding-top: 26px; border-top: 1px solid var(--rule); }

/* The brief sheet */
.brief-col { position: sticky; top: calc(var(--header-h) + 24px); }
.sheet {
  background: var(--paper); color: var(--fg); border-radius: 14px;
  padding: clamp(22px, 2.4vw, 34px);
  box-shadow: 0 1px 0 rgb(18 27 25 / .06), 0 24px 50px -30px rgb(18 27 25 / .45);
  position: relative;
}
.sheet-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-bottom: 14px; border-bottom: 2px solid var(--fg); }
.sheet-head h2 { font-size: 1.5rem; font-stretch: 112%; letter-spacing: -0.02em; }
.sheet-head .note { white-space: nowrap; }
.subject { font-stretch: 94%; font-size: .9375rem; padding: 12px 0; border-bottom: 1px solid var(--rule); color: var(--fg-2); overflow-wrap: anywhere; }
.subject b { color: var(--fg); font-weight: 650; }
.sheet dl { margin: 0; display: grid; }
.sheet dl > div { display: grid; grid-template-columns: 7.2rem minmax(0, 1fr); gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--rule); }
.sheet dl > div[hidden] { display: none; }
.sheet dt { font-stretch: 90%; font-size: .875rem; color: var(--fg-2); padding-top: 1px; }
.sheet dd { margin: 0; font-size: 1rem; line-height: 1.45; overflow-wrap: anywhere; white-space: pre-line; }
.sheet dd.empty { color: var(--fg-2); font-style: italic; }

.stamp {
  margin-top: 18px; padding: 14px 16px;
  border: 2px solid var(--fg); display: grid; gap: 6px;
}
.stamp[hidden] { display: none; }
.stamp strong { font-stretch: 112%; font-weight: 780; font-size: 1.1rem; }
.sheet-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.sheet-actions .btn { max-width: 100%; white-space: normal; padding-top: 10px; padding-bottom: 10px; }
.sheet-actions[hidden] { display: none; }
.sheet-foot { margin-top: 14px; }

@media (max-width: 960px) {
  .start { grid-template-columns: minmax(0, 1fr); }
  .brief-col { position: static; }
}

/* Print: the brief alone, clean on paper */
@media print {
  body { background: #fff; color: #111; }
  .site-header, .site-footer, .form-col, .skip, .sheet-actions, .page-head, .demo-note { display: none !important; }
  .start { display: block; margin: 0; }
  .brief-col { position: static; }
  .brief-col, .sheet {
    --fg: #121b19; --fg-2: #3d4b47; --ink: #121b19; --ink-2: #3d4b47;
    --paper: #fff; --rule: rgb(18 27 25 / .2);
    color-scheme: light;
  }
  .sheet { box-shadow: none; padding: 0; background: var(--paper); }
}

/* ======================================================================
   Motion and graphic layer
   ====================================================================== */

@keyframes slide-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* Season bars grow through the year. */
.home-ready .season td i { transform: scaleX(0); transform-origin: left; transition: transform .55s var(--ease-out); transition-delay: calc(var(--row, 0) * 90ms + var(--m, 0) * 32ms); }
.home-ready .season.is-grown td i { transform: scaleX(1); }

/* Checklist rows answer a tap. */
.check span { transition: color .25s; }
.check:hover input { border-color: var(--fg); }

/* ---------- The drawn house ---------- */

.house { width: 100%; height: auto; display: block; overflow: visible; --line: rgb(238 237 230 / .78); }
.house .ln { fill: none; stroke: var(--line); stroke-width: 1.4; stroke-linejoin: miter; transition: stroke .5s var(--ease-out), opacity .5s var(--ease-out); }
.house .ln.thin { stroke-width: .9; }
.house--paper .ln { stroke-width: 4.2; }
.house--paper .ln.thin { stroke-width: 2.6; }
.house--paper .lap-line { stroke-width: 2.4; }
.house .fillnight { fill: var(--night); }
.house .lap-line { stroke: rgb(238 237 230 / .13); stroke-width: 1; transition: stroke .5s; }
.house .h-wash { fill: #c9785f; opacity: 0; transition: opacity .7s var(--ease-out); }
.house .glass { fill: #1a2d31; transition: fill .8s var(--ease-out), opacity .6s; transition-delay: calc(var(--i, 0) * 160ms); }
.house .glow { opacity: 0; transition: opacity 1s var(--ease-out); } /* radial gradient, not a blur filter: Safari ignores filters on SVG elements */
.house .h-lamp { transition: fill .6s; }

/* draw-in */
.js .house .ln { stroke-dasharray: 1; stroke-dashoffset: 1; }
.js .house .lap-line { opacity: 0; transition: opacity 1s var(--ease-out) 1.2s, stroke .5s; }
.js .house.is-drawn .ln { stroke-dashoffset: 0; transition: stroke-dashoffset 1.6s var(--ease-in-out), stroke .5s var(--ease-out); }
.js .house.is-drawn .lap-line { opacity: 1; }
.js .house.is-drawn .h-shell .ln { transition-delay: .15s, 0s; }
.js .house.is-drawn .h-porch .ln { transition-delay: .55s, 0s; }
.js .house.is-drawn .h-windows .ln { transition-delay: .85s, 0s; }
.js .house.is-drawn .h-steps .ln, .js .house.is-drawn .h-plants .ln, .js .house.is-drawn .h-lantern .ln { transition-delay: 1.1s, 0s; }

/* evening: lights come on window by window, then the porch lamp */
.house.is-lit .glass { fill: #f0b457; }
.house.is-lit .h-windows .glass { opacity: .9; }
.house.is-lit .glow { opacity: .8; transition-delay: .9s; }
.house.is-lit .h-lamp { fill: #f7c77a; }

/* highlights follow the choice being considered */
.house[data-highlight] .h-shell .ln, .house[data-highlight] .h-porch .ln, .house[data-highlight] .h-steps .ln, .house[data-highlight] .h-plants .ln { stroke: rgb(238 237 230 / .4); }
.house[data-highlight='remodeling'] .glass { fill: #ffc56b; opacity: 1; transition-delay: 0s; }
.house[data-highlight='remodeling'] .h-windows .ln { stroke: #ffd592; }
.house[data-highlight='painting'] .h-wash { opacity: .5; }
.house[data-highlight='painting'] .h-shell .ln, .house[data-highlight='painting'] .h-porch .ln, .house[data-highlight='painting'] .h-windows .ln { stroke: #fbf7ee; }
.house[data-highlight='painting'] .glass { opacity: .3; transition-delay: 0s; }
.house[data-highlight='exterior'] .h-shell .ln, .house[data-highlight='exterior'] .h-porch .ln, .house[data-highlight='exterior'] .h-steps .ln, .house[data-highlight='exterior'] .h-plants .ln { stroke: var(--amber); }
.house[data-highlight='exterior'] .lap-line { stroke: rgb(234 166 64 / .5); }
.house[data-highlight='exterior'] .glass { opacity: .3; transition-delay: 0s; }
.house[data-highlight='other'] .h-shell .ln, .house[data-highlight='other'] .h-porch .ln, .house[data-highlight='other'] .h-steps .ln, .house[data-highlight='other'] .h-plants .ln { stroke: #fbf7ee; }


/* ---------- Form and brief motion ---------- */

.start-section { padding-top: clamp(40px, 6vw, 80px); }
.textarea--short { min-height: 96px; }
.timing-detail { margin-top: 16px; }
.reply-field { margin-top: 16px; }
.ready-label { width: 100%; margin-bottom: 2px; }

/* Each line of the brief inks in as it is written. */
.sheet dd { position: relative; }
.sheet dd::after { content: ''; position: absolute; left: 0; bottom: -1px; width: 100%; height: 2px; background: var(--amber); transform: scaleX(0); transform-origin: left; opacity: 0; pointer-events: none; }
@keyframes ink-line { 0% { transform: scaleX(0); opacity: 1; } 45% { transform: scaleX(1); opacity: 1; } 100% { transform: scaleX(1); opacity: 0; } }
.sheet dd.is-inked::after { animation: ink-line 1.4s var(--ease-out) both; }


@keyframes stamp { 0% { opacity: 0; transform: scale(1.18) rotate(-3deg); } 60% { opacity: 1; transform: scale(.98) rotate(-1deg); } 100% { opacity: 1; transform: rotate(-1deg); } }
.stamp:not([hidden]) { animation: stamp .55s var(--ease-out) both; transform-origin: 30% 50%; }
.sheet.is-done { box-shadow: 0 1px 0 rgb(18 27 25 / .06), 0 30px 60px -28px rgb(18 27 25 / .55); }

.chip { animation: slide-in .4s var(--ease-out) both; }
.error:not([hidden]) { animation: slide-in .3s var(--ease-out) both; }

.work-details { margin-top: 4px; }
.others h2 { font-size: .875rem; font-stretch: 88%; font-weight: 600; letter-spacing: 0; }
.crumb { margin-bottom: 8px; }

/* The brief's letterhead: the same house, drawn in ink on paper. */
.sheet-house { padding: 18px 0 6px; border-bottom: 1px solid var(--rule); }
.house--paper { max-width: 230px; margin: 0 auto; --line: color-mix(in srgb, var(--fg) 78%, transparent); }
.house--paper .fillnight { fill: var(--paper); }
.house--paper .lap-line { stroke: color-mix(in srgb, var(--fg) 14%, transparent); }
.house--paper .glass { fill: color-mix(in srgb, var(--fg) 8%, var(--paper)); }
.house--paper.is-lit .glass { fill: color-mix(in srgb, var(--fg) 8%, var(--paper)); }
.house--paper .glow { display: none; }
.house--paper[data-highlight] .h-shell .ln, .house--paper[data-highlight] .h-porch .ln, .house--paper[data-highlight] .h-steps .ln, .house--paper[data-highlight] .h-plants .ln { stroke: color-mix(in srgb, var(--fg) 35%, transparent); }
.house--paper[data-highlight='remodeling'] .glass { fill: var(--amber); }
.house--paper[data-highlight='remodeling'] .h-windows .ln { stroke: var(--amber-deep); }
.house--paper[data-highlight='painting'] .h-wash { opacity: .45; }
.house--paper[data-highlight='painting'] .h-shell .ln, .house--paper[data-highlight='painting'] .h-porch .ln, .house--paper[data-highlight='painting'] .h-windows .ln { stroke: var(--fg); }
.house--paper[data-highlight='painting'] .glass { opacity: 1; }
.house--paper[data-highlight='exterior'] .h-shell .ln, .house--paper[data-highlight='exterior'] .h-porch .ln, .house--paper[data-highlight='exterior'] .h-steps .ln, .house--paper[data-highlight='exterior'] .h-plants .ln { stroke: var(--amber-deep); }
.house--paper[data-highlight='exterior'] .lap-line { stroke: color-mix(in srgb, var(--amber-deep) 55%, transparent); }
.house--paper[data-highlight='exterior'] .glass { opacity: 1; }
.house--paper[data-highlight='other'] .ln { stroke: var(--fg); }


/* Touch targets: every control at least 44px tall on touch screens. */
@media (pointer: coarse), (max-width: 767px) {
  .film-btn { min-height: 44px; }
  .chip button { min-height: 44px; min-width: 44px; }
  .footer-grid nav a { min-height: 44px; }
  .season thead th { font-size: .75rem; }
}

/* The brief: confirmation sits at the top of the sheet. */
.stamp { margin: 16px 0 4px; border-radius: 10px; }
.sheet-actions { margin: 12px 0 8px; }
@media (max-width: 767px) { .house--paper { max-width: 150px; } }

/* The drawn house's own pause control. */
.house-key-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; }
.house-key-row .note { margin: 0; }
.house-toggle { flex: none; color: var(--fg); }

/* The drawn house: once drawn, lines join cleanly (no dash pattern left behind). */
.js .house.is-settled .ln { stroke-dasharray: none; stroke-dashoffset: 0; transition: stroke .5s var(--ease-out); }


/* The planning illustration never outgrows a short screen. */
.plan-figure img { max-height: 60svh; }

/* ======================================================================
   Candidate 8
   ====================================================================== */

/* The header floats over film and over light pages: its focus ring carries its own contrast. */
.site-header :focus-visible { outline: 2px solid #f3efe6; outline-offset: 3px; box-shadow: 0 0 0 5px #0b100f; }
.page .site-header .nameplate:focus-visible { outline-color: #0b100f; box-shadow: 0 0 0 5px #f3efe6; }

/* Small screens: the action reads "Tell Patton"; the rest stays in its accessible name. */
@media (max-width: 480px) {
  .cta-more { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

.house[data-highlight='repair'] .h-shell .ln, .house[data-highlight='repair'] .h-porch .ln, .house[data-highlight='repair'] .h-steps .ln, .house[data-highlight='repair'] .h-plants .ln { stroke: var(--amber); }
.house--paper[data-highlight='repair'] .ln { stroke: var(--amber-deep); }
.footer-plate { padding: 10px 14px; border-radius: 10px; justify-self: start; }
.footer-plate img { height: 30px; }

p, li { text-wrap: pretty; }

/* The tab strip scrolls sideways, which would clip an outside focus ring: draw it inside. */
/* Tabs: room for a focus ring inside the scrolling strip, without moving the text off
   the content edge; the selected underline stays visible while focused. */

/* Headline phrases that never break apart (every page). */
.nowrap { white-space: nowrap; }
@media (max-width: 767px) { .page-head h1 { font-size: min(8.1vw, 2.6rem); } }

/* ======================================================================
   Photos of the space: four framed views that fill with the visitor's own photos
   ====================================================================== */
.sketches { position: absolute; width: 0; height: 0; overflow: hidden; }
.shots-wrap { container-type: inline-size; }
.shots { list-style: none; margin: 4px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 12px; }
@container (min-width: 600px) { .shots { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; } }
.shot { display: grid; gap: 10px; align-content: start; min-width: 0; }

.shot-frame {
  position: relative; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; isolation: isolate;
  background:
    linear-gradient(90deg, transparent calc(100% / 3 - .5px), var(--grid) 0 calc(100% / 3 + .5px), transparent 0 calc(200% / 3 - .5px), var(--grid) 0 calc(200% / 3 + .5px), transparent 0),
    linear-gradient(transparent calc(100% / 3 - .5px), var(--grid) 0 calc(100% / 3 + .5px), transparent 0 calc(200% / 3 - .5px), var(--grid) 0 calc(200% / 3 + .5px), transparent 0),
    radial-gradient(130% 100% at 50% 36%, var(--paper) 50%, color-mix(in srgb, var(--paper) 86%, var(--fg)));
  box-shadow: inset 0 0 0 1px var(--rule);
  color: color-mix(in srgb, var(--fg) 58%, transparent);
  --grid: color-mix(in srgb, var(--fg) 6%, transparent);
  transition: box-shadow .25s var(--ease-out), color .25s;
}
.shot-sketch { position: absolute; left: 50%; top: 8%; height: 58%; width: auto; aspect-ratio: 4 / 3; transform: translateX(-50%); transition: transform .5s var(--ease-out), opacity .4s; }
.shot-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.shot-img[hidden] { display: none; }

/* Viewfinder corners, in amber: they close in on hover and lock on when a photo lands. */
.shot-corners {
  position: absolute; inset: 9px; z-index: 2; pointer-events: none;
  --c: var(--amber-deep); --l: 13px; --t: 2px;
  background:
    linear-gradient(var(--c), var(--c)) top left / var(--l) var(--t), linear-gradient(var(--c), var(--c)) top left / var(--t) var(--l),
    linear-gradient(var(--c), var(--c)) top right / var(--l) var(--t), linear-gradient(var(--c), var(--c)) top right / var(--t) var(--l),
    linear-gradient(var(--c), var(--c)) bottom left / var(--l) var(--t), linear-gradient(var(--c), var(--c)) bottom left / var(--t) var(--l),
    linear-gradient(var(--c), var(--c)) bottom right / var(--l) var(--t), linear-gradient(var(--c), var(--c)) bottom right / var(--t) var(--l);
  background-repeat: no-repeat;
  transition: transform .45s var(--ease-out), opacity .3s;
}
/* The real file input covers its frame (invisible, untouchable), so a screen reader's
   focus box sits on the frame rather than on a 1px dot in its corner. */
.shot-input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; pointer-events: none; }
.shot-hit { position: absolute; inset: 0; z-index: 3; display: flex; align-items: flex-end; justify-content: center; padding: 10px; cursor: pointer; border-radius: inherit; }
.shot-add {
  display: inline-flex; align-items: center; gap: 7px; min-height: 28px; padding: 0 12px 0 10px; border-radius: 999px;
  background: color-mix(in srgb, var(--paper) 88%, transparent); box-shadow: inset 0 0 0 1px var(--rule);
  color: var(--fg); font-size: .8125rem; font-weight: 600; font-stretch: 104%;
  transition: background-color .25s, box-shadow .25s;
}
.shot-add::before {
  content: ''; width: 10px; height: 10px; flex: none;
  background: linear-gradient(currentColor, currentColor) center / 100% 1.6px no-repeat, linear-gradient(currentColor, currentColor) center / 1.6px 100% no-repeat;
}
@media (hover: hover) {
  .shot-frame:hover { color: color-mix(in srgb, var(--fg) 80%, transparent); }
  .shot-frame:hover .shot-corners { transform: scale(.93); }
  .shot-frame:hover .shot-sketch { transform: translateX(-50%) scale(1.04); }
  .shot-frame:hover .shot-add { box-shadow: inset 0 0 0 1.5px var(--fg); }
}
.shot-input:focus-visible ~ .shot-hit { outline: 3px solid var(--fg); outline-offset: -3px; }
/* Over a photo the ring is two-tone, so it reads on light and dark pictures alike. */
.has-photo .shot-input:focus-visible ~ .shot-hit { outline: 3px solid #f3efe6; outline-offset: -3px; box-shadow: inset 0 0 0 6px #0b100f; }
.shot-frame.is-over { box-shadow: inset 0 0 0 2px var(--amber-deep); }
.shot-frame.is-over .shot-corners { transform: scale(.88); }

/* Filled: the sketch, the grid and the prompt give way to the photo. */
.has-photo .shot-frame { background: #0b100f; box-shadow: 0 1px 0 rgb(18 27 25 / .06), 0 14px 26px -18px rgb(18 27 25 / .55); }
.has-photo .shot-sketch, .has-photo .shot-add { opacity: 0; }
.has-photo:not(.is-developing) .shot-corners { opacity: 0; }
@keyframes develop {
  0% { opacity: 0; filter: grayscale(1) brightness(1.7) contrast(.55) blur(3px); transform: scale(1.05); }
  28% { opacity: 1; }
  100% { opacity: 1; filter: none; transform: none; }
}
@keyframes lock-on {
  0% { transform: scale(1); opacity: 1; }
  32% { transform: scale(.8); opacity: 1; }
  58% { transform: scale(.86); opacity: 1; }
  100% { transform: scale(1.04); opacity: 0; }
}
.is-developing .shot-img { animation: develop 1.5s var(--ease-out) both; }
.is-developing .shot-corners { --c: #f3efe6; animation: lock-on 1s var(--ease-out) both; }

.shot-remove {
  position: absolute; top: 2px; right: 2px; z-index: 4; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 999px;
  background: radial-gradient(circle closest-side, rgb(11 16 15 / .64) 15px, transparent 15.5px); color: #f3efe6; cursor: pointer;
  animation: slide-in .4s .5s var(--ease-out) both;
}
.shot-remove[hidden] { display: none; }
.shot-remove::before, .shot-remove::after { content: ''; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.6px; margin: -.8px 0 0 -6px; background: currentColor; border-radius: 1px; transform: rotate(45deg); }
.shot-remove::after { transform: rotate(-45deg); }
.shot-remove:hover { background: radial-gradient(circle closest-side, rgb(11 16 15 / .86) 15px, transparent 15.5px); }
.shot-remove:focus-visible { outline: none; box-shadow: none; background: radial-gradient(circle closest-side, rgb(11 16 15 / .86) 15px, #f3efe6 15.5px 18px, #0b100f 18.5px 21px, transparent 21.5px); }

.shot-cap { display: grid; gap: 2px; margin: 0; line-height: 1.3; }
.shot-cap b { display: flex; align-items: baseline; gap: 8px; font-weight: 600; font-stretch: 104%; font-size: .975rem; }
.shot-n {
  flex: none; display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; transform: translateY(-1px);
  box-shadow: inset 0 0 0 1.25px var(--fg-2); color: var(--fg-2); font-size: .75rem; font-weight: 600; font-style: normal; font-stretch: 100%;
  transition: background-color .3s, color .3s, box-shadow .3s;
}
.has-photo .shot-n { background: var(--fg); color: var(--paper); box-shadow: none; }
.shot-how { padding-left: 30px; color: var(--fg-2); font-size: .875rem; font-stretch: 96%; }
/* Narrow phones: the add button keeps only its plus, so the sketch stays clear. */
@container (max-width: 340px) {
  .shot-add { width: 32px; min-height: 32px; padding: 0; justify-content: center; font-size: 0; gap: 0; }
  .shot-add::before { width: 12px; height: 12px; }
  .shot-sketch { height: 54%; }
}
.shots-status { margin: 14px 0 0; min-height: 1.4em; }
.shots-status:empty { margin: 0; min-height: 0; }

/* In the brief: the photos as a row of small prints, set down one at a time. */
.sheet dl > .row-photos { grid-template-columns: minmax(0, 1fr); gap: 10px; }
.brief-shots { list-style: none; margin: 0 0 8px; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.brief-shots li { position: relative; min-width: 0; }
.brief-shots img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 3px; background: #0b100f; box-shadow: 0 1px 0 rgb(18 27 25 / .08), 0 8px 14px -10px rgb(18 27 25 / .6); }
.brief-shots li { display: grid; gap: 5px; align-content: start; }
.brief-shots span { font-size: .75rem; font-weight: 600; line-height: 1.25; color: var(--fg-2); overflow-wrap: anywhere; white-space: normal; }
/* A new print drops onto the sheet and lands at its own tilt. */
@keyframes set-down { from { opacity: 0; transform: translateY(-10px) rotate(calc(var(--tilt, 0deg) - 4deg)) scale(1.08); } to { opacity: 1; transform: rotate(var(--tilt, 0deg)); } }
.brief-shots li.is-new { animation: set-down .7s var(--ease-out) both; }
.row-photos .note { display: block; white-space: normal; }
@media print { .brief-shots img { box-shadow: none; } }

/* A second contact the visitor gave earlier is named, with a way to drop it. */
.also-note { margin: 14px 0 0; max-width: 34rem; font-size: .95rem; color: var(--fg-2); animation: slide-in .35s var(--ease-out) both; }
.also-note[hidden] { display: none; }
.linkbtn { background: none; border: 0; padding: 0; min-height: 32px; color: var(--fg); font: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: .2em; cursor: pointer; }
@media (pointer: coarse) { .linkbtn { min-height: 44px; } }

/* Footer links and the inquiry page header meet the 44px touch size too. */
.footer-grid nav a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; }
@media (pointer: coarse), (max-width: 767px) {
  .site-nav .btn { min-height: 44px; }
  .nameplate { height: 44px; }
}

/* The inline "Remove it" keeps a 44px tap area without stretching its line. */
.also-note .linkbtn { display: inline; min-height: 0; padding: 12px 2px; margin: -12px 0; }

/* The drawn house: window glass appears with its frame, not before it. */
.js .house:not(.is-drawn) .glass { opacity: 0; }
/* Stills mode (no page script): the house is simply drawn, lit, with no replay button. */
:is(.no-run, html:not(.js)) .house .ln { stroke-dasharray: none; stroke-dashoffset: 0; }
:is(.no-run, html:not(.js)) .house .lap-line { opacity: 1; }
:is(.no-run, html:not(.js)) .house .glass { opacity: 1; fill: #f0b457; }
:is(.no-run, html:not(.js)) [data-house-replay] { display: none; }

/* Tabs: the selected underline sits under the text, not under the focus padding. */
.hint-skip { display: block; margin-top: 4px; color: var(--fg); font-weight: 500; }

/* ======================================================================
   Candidate 13
   ====================================================================== */

/* The header carries a band of the page's own ground behind its pills on every page, so
   content scrolling up never shows between or under them. */
.page .site-header::before {
  content: ''; position: absolute; z-index: -1; inset: 0 0 auto 0; height: calc(var(--header-h) + 14px); pointer-events: none;
  background: linear-gradient(180deg, var(--head-c) 0, var(--head-c) calc(var(--header-h) - 8px), rgb(0 0 0 / 0) 100%);
}
.page { --head-c: #e4e8e2; }
@media (prefers-color-scheme: dark) { .page { --head-c: #172120; } }

/* Small text breathes a little more; form questions break in balanced lines. */
.note, .hint { word-spacing: .05em; }
.group legend, .group > .label { text-wrap: balance; }

/* The brief's photos are prints: a white border, a slight turn, a short caption. */
.brief-shots li { background: #fff; padding: 5px 5px 7px; border-radius: 2px; box-shadow: 0 1px 0 rgb(18 27 25 / .06), 0 8px 14px -10px rgb(18 27 25 / .6); transform: rotate(var(--tilt, 0deg)); }
.brief-shots li:nth-child(odd) { --tilt: -1.4deg; }
.brief-shots li:nth-child(even) { --tilt: 1.1deg; }
.brief-shots img { border-radius: 0; box-shadow: none; }
.brief-shots span { color: #3d4b47; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 767px) { .brief-shots { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 14px; } }
.sheet-head .sheet-for { white-space: normal; text-align: right; line-height: 1.35; }

/* Phones: a small pill shows the brief filling in below the form, and takes you to it. */
.brief-peek {
  position: fixed; z-index: 30; right: max(14px, env(safe-area-inset-right)); bottom: max(14px, env(safe-area-inset-bottom));
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 0 16px; border-radius: 999px;
  background: #121b19; color: #f3efe6; text-decoration: none; font-weight: 600; font-size: .9rem;
  box-shadow: 0 12px 26px -12px rgb(0 0 0 / .6);
  animation: slide-in .4s var(--ease-out) both;
}
.brief-peek[hidden] { display: none; }
/* Room under the form, so the pill never sits on the last field or the send button. */
@media (max-width: 960px) { .form { padding-bottom: 64px; } }
.brief-peek .arrow { width: 16px; height: 16px; }
@media (min-width: 961px) { .brief-peek { display: none !important; } }
@media (max-width: 1100px) and (prefers-color-scheme: light) { .page .site-nav .btn { box-shadow: inset 0 0 0 1px rgb(18 27 25 / .24), 0 8px 22px -12px rgb(0 0 0 / .45); } }
/* The header button's focus is two-tone on every page, band and ground: cream outline,
   near-black ring (it overrides the button's own edge and shadow rules above). */
.site-header .site-nav .btn:focus-visible { outline: 2px solid #f3efe6; outline-offset: 3px; box-shadow: 0 0 0 5px #0b100f; }
/* One logo on phones and short landscape screens: the header's. The footer doesn't repeat
   it there (at the page's end the two would stack under the header band). */
@media (max-width: 767px), (max-height: 560px) and (orientation: landscape) { .footer-plate { display: none; } }
/* The light inquiry page gets a light scrollbar. */
@media (prefers-color-scheme: light) { html:has(> body.page) { scrollbar-color: #9aa7a2 #e4e8e2; } }
@media (max-width: 480px) {
  .sheet-head { flex-direction: column; align-items: flex-start; gap: 6px; }
  .sheet-head .sheet-for { text-align: left; }
  .sheet dl > div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
}
/* Whole phrases ("Nothing was sent.") stay together, except where even one no longer
   fits: the narrowest screens, or very large text (which narrows the CSS viewport). */
@media (max-width: 359px) {
  .sheet-head .nowrap, .stamp .nowrap { white-space: normal; }
}
