:root {
  color-scheme: light dark;
  --canvas: #f4f6f5;
  --paper: #fbfaf5;
  --surface: #ffffff;
  --surface-soft: #e9eeeb;
  --ink: #17232b;
  --body: #46535a;
  --muted: #68757b;
  --navy: #102b3c;
  --accent: #566b45;
  --accent-hover: #465b37;
  --accent-on: #ffffff;
  --rule: rgba(23, 35, 43, 0.15);
  --rule-strong: rgba(23, 35, 43, 0.3);
  --error: #a33131;
  --shadow: 0 28px 70px rgba(16, 43, 60, 0.16);
  --max: 1260px;
  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  --sans: "Avenir Next", Avenir, "Segoe UI", Helvetica, Arial, sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --canvas: #0c1922;
    --paper: #f8f4e9;
    --surface: #13242f;
    --surface-soft: #1c303b;
    --ink: #eef1ef;
    --body: #c4cdca;
    --muted: #9caaa6;
    --navy: #07131b;
    --accent: #b8c7a7;
    --accent-hover: #c9d5bc;
    --accent-on: #172019;
    --rule: rgba(238, 241, 239, 0.15);
    --rule-strong: rgba(238, 241, 239, 0.32);
    --error: #ffaaa4;
    --shadow: 0 34px 90px rgba(0, 0, 0, 0.4);
  }
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--canvas);
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: clip;
  background: var(--canvas);
  color: var(--body);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.62;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img { display: block; width: 100%; height: auto; }
a { color: inherit; }
button, input { font: inherit; }
h1, h2, h3, p, dl, dd { margin-top: 0; }
h1, h2, h3 { color: var(--ink); }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  min-height: 48px;
  padding: 0.75rem 1rem;
  transform: translateY(-180%);
  background: var(--ink);
  color: var(--canvas);
  text-decoration: none;
}

.skip-link:focus { transform: translateY(0); }

.shell,
.site-header,
.site-footer {
  width: min(calc(100% - (2 * var(--gutter))), var(--max));
  margin-inline: auto;
}

.site-header {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--rule);
}

.brand {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--ink);
  font-size: 0.74rem;
  font-weight: 750;
  letter-spacing: 0.11em;
  text-decoration: none;
  text-transform: uppercase;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  background: var(--navy);
  color: #f7f3ea;
  font-size: 0.56rem;
  letter-spacing: 0.08em;
}

.header-link {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 650;
  text-underline-offset: 0.3em;
}

.hero {
  width: min(calc(100% - (2 * var(--gutter))), var(--max));
  min-height: calc(100dvh - 76px);
  margin-inline: auto;
  padding-block: clamp(2rem, 5vw, 4.5rem);
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(420px, 1.05fr);
  align-items: center;
  gap: clamp(2.5rem, 6vw, 6.5rem);
}

.hero-copy { max-width: 660px; }
.hero-copy,
.hero-art,
.lead-form,
.field,
.consent span { min-width: 0; }

.eyebrow {
  margin-bottom: 1rem;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 780;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1 {
  max-width: 12ch;
  margin-bottom: 1.35rem;
  font-size: clamp(2.8rem, 5.2vw, 5.35rem);
  font-weight: 720;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.hero-lede {
  max-width: 58ch;
  margin-bottom: 1.5rem;
  font-size: clamp(1.02rem, 1.5vw, 1.18rem);
  line-height: 1.55;
}

.lead-form {
  position: relative;
  width: 100%;
  max-width: 650px;
  padding: clamp(1.15rem, 2.5vw, 1.6rem);
  background: var(--surface);
  box-shadow: 0 16px 40px rgba(16, 43, 60, 0.08);
}

@media (prefers-color-scheme: dark) {
  .lead-form { box-shadow: none; }
}

.form-heading {
  margin-bottom: 0.85rem;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

.form-heading h2 {
  margin-bottom: 0;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.form-heading span {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 780;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.field label {
  display: block;
  margin-bottom: 0.42rem;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 700;
}

.field label span { color: var(--muted); font-weight: 500; }

.field input {
  width: 100%;
  min-height: 50px;
  border: 1px solid var(--rule-strong);
  border-radius: 2px;
  padding: 0.75rem 0.85rem;
  background: var(--canvas);
  color: var(--ink);
  transition: border-color 180ms var(--ease), box-shadow 180ms var(--ease);
}

.field input:hover { border-color: var(--ink); }
.field input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); outline: 0; }
.field input[aria-invalid="true"] { border-color: var(--error); }

.field-error {
  min-height: 1.25rem;
  margin: 0.25rem 0 0;
  color: var(--error);
  font-size: 0.75rem;
}

.field-error:empty { display: none; }

.website-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.consent {
  min-height: 48px;
  margin-top: 0.15rem;
  display: grid;
  grid-template-columns: 20px 1fr;
  align-items: start;
  gap: 0.72rem;
  color: var(--body);
  cursor: pointer;
  font-size: 0.82rem;
  line-height: 1.45;
}

.consent input {
  width: 20px;
  height: 20px;
  margin: 0.1rem 0 0;
  accent-color: var(--accent);
}

.submit-button {
  width: 100%;
  min-height: 52px;
  border: 0;
  border-radius: 2px;
  padding: 0.85rem 1.25rem;
  background: var(--accent);
  color: var(--accent-on);
  cursor: pointer;
  font-weight: 760;
  transition: background 180ms var(--ease), transform 180ms var(--ease);
}

.submit-button:hover { background: var(--accent-hover); }
.submit-button:active { transform: translateY(1px); }
.submit-button:disabled { cursor: wait; opacity: 0.72; }
.button-progress { display: none; }
.lead-form.is-loading .button-label { display: none; }
.lead-form.is-loading .button-progress { display: inline; }

.form-status {
  min-height: 1.5rem;
  margin: 0.65rem 0 0;
  color: var(--body);
  font-size: 0.82rem;
}

.form-status.is-error { color: var(--error); }
.form-status.is-success { color: var(--accent); font-weight: 700; }
.form-status a { text-underline-offset: 0.25em; }

.hero-art { min-width: 0; }

.art-frame {
  position: relative;
  padding: clamp(0.55rem, 1.5vw, 1rem);
  background: var(--navy);
  box-shadow: var(--shadow);
  transform: rotate(1.2deg);
}

.art-frame::before {
  position: absolute;
  inset: 0.45rem;
  border: 1px solid rgba(247, 243, 234, 0.38);
  content: "";
  pointer-events: none;
}

.art-note {
  max-width: 52ch;
  margin: 1.5rem 0 0 auto;
  padding-left: 1rem;
  border-left: 3px solid var(--accent);
  color: var(--muted);
  font-size: 0.82rem;
}

.principle-band {
  padding: clamp(2.25rem, 5vw, 4.5rem) var(--gutter);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--rule);
  border-block: 1px solid var(--rule);
}

.principle-band p {
  margin: 0;
  padding-inline: clamp(1rem, 5vw, 5rem);
  background: var(--canvas);
  color: var(--ink);
  font-size: clamp(1.5rem, 3.2vw, 3rem);
  font-weight: 650;
  letter-spacing: -0.04em;
  line-height: 1.08;
}

.inside {
  padding-block: clamp(5rem, 10vw, 9rem);
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  gap: clamp(3rem, 8vw, 8rem);
}

.section-copy { align-self: start; position: sticky; top: 2rem; }
.section-copy h2,
.deliverable-copy h2,
.proof-copy h2 {
  margin-bottom: 1.5rem;
  font-size: clamp(2rem, 4vw, 4rem);
  font-weight: 680;
  letter-spacing: -0.045em;
  line-height: 1.04;
}

.section-copy > p:last-child,
.deliverable-copy > p,
.proof-copy > p {
  max-width: 60ch;
  font-size: 1.05rem;
}

.prompt-path {
  margin: 0;
  padding: 0;
  list-style: none;
}

.prompt-path li {
  padding: 1.65rem 0;
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 1.25rem;
  border-bottom: 1px solid var(--rule);
}

.prompt-path li:first-child { padding-top: 0; }
.path-number { color: var(--accent); font-size: 0.78rem; font-weight: 780; letter-spacing: 0.08em; }
.prompt-path h3 { margin-bottom: 0.45rem; font-size: 1.25rem; letter-spacing: -0.02em; }
.prompt-path p { margin-bottom: 0; }

.deliverable {
  padding-block: clamp(4rem, 9vw, 8rem);
  display: grid;
  grid-template-columns: minmax(340px, 0.85fr) minmax(0, 1.15fr);
  align-items: center;
  gap: clamp(3rem, 8vw, 8rem);
  border-top: 1px solid var(--rule);
}

.deliverable-image {
  max-width: 520px;
  padding: clamp(1rem, 3vw, 2rem);
  background: var(--surface-soft);
}

.deliverable-image img { box-shadow: 0 20px 50px rgba(16, 43, 60, 0.12); }

.output-list { margin: 2.2rem 0 0; }
.output-list div { padding: 1rem 0; display: grid; grid-template-columns: 110px 1fr; gap: 1rem; border-bottom: 1px solid var(--rule); }
.output-list dt { color: var(--muted); font-size: 0.76rem; font-weight: 720; letter-spacing: 0.08em; text-transform: uppercase; }
.output-list dd { color: var(--ink); }

.proof-spread {
  margin-bottom: clamp(4rem, 9vw, 8rem);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  background: var(--navy);
  color: #d8e0dd;
}

.proof-image { min-height: 100%; overflow: hidden; }
.proof-image img { height: 100%; object-fit: cover; }
.proof-copy { padding: clamp(2rem, 6vw, 5.5rem); align-self: center; }
.proof-copy h2 { color: #f7f3ea; }
.proof-copy > p { color: #d8e0dd; }
.proof-copy .small-print { margin-top: 2rem; color: #aebbb6; font-size: 0.84rem; }

.site-footer {
  min-height: 150px;
  padding-block: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.82rem;
}

.site-footer strong { color: var(--ink); }
.site-footer p { margin-bottom: 0; }
.site-footer a { text-underline-offset: 0.25em; }

.silk-enter { animation: silk-in 700ms var(--ease) both; }
.silk-delay { animation-delay: 110ms; }

@keyframes silk-in {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 960px) {
  .hero { grid-template-columns: minmax(0, 1fr); padding-top: 2.5rem; }
  .hero-copy { max-width: 760px; }
  h1 { max-width: 13ch; }
  .hero-art { max-width: 780px; }
  .inside { grid-template-columns: 1fr; }
  .section-copy { position: static; max-width: 720px; }
  .prompt-path { max-width: 760px; }
  .deliverable { grid-template-columns: 0.8fr 1.2fr; gap: 3rem; }
  .proof-spread { grid-template-columns: 1fr; }
  .proof-image { max-height: 640px; }
}

@media (max-width: 700px) {
  .site-header { min-height: 68px; }
  .brand { font-size: 0.65rem; letter-spacing: 0.08em; }
  .brand-mark { width: 34px; height: 34px; }
  .header-link { display: none; }
  .hero { min-height: auto; padding-block: 2.5rem 4rem; }
  h1 { max-width: 12ch; font-size: clamp(2.35rem, 10.5vw, 2.75rem); letter-spacing: -0.045em; }
  .hero-lede { margin-bottom: 1.5rem; }
  .art-frame { transform: none; }
  .principle-band { grid-template-columns: 1fr; padding: 0; }
  .principle-band p { padding: 2.25rem var(--gutter); }
  .inside { padding-block: 5rem; }
  .prompt-path li { grid-template-columns: 60px 1fr; gap: 0.8rem; }
  .deliverable { grid-template-columns: 1fr; }
  .deliverable-image { max-width: none; }
  .output-list div { grid-template-columns: 1fr; gap: 0.35rem; }
  .proof-spread { width: 100%; margin-bottom: 0; }
  .site-footer { align-items: flex-start; flex-direction: column; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
