/* Hybrid Caravan — QLG Media
   Quiet technical British. Graphite, ink, warm paper, copper. */

:root {
  --ink: #0b0c10;
  --ink-2: #14161c;
  --graphite: #1c1f27;
  --graphite-2: #2a2e38;
  --paper: #f3eee6;
  --paper-2: #e8e1d6;
  --warm: #d8d0c4;
  --mute: #8a847a;
  --mute-on-dark: #b7b0a6;
  --copy: #1a1c20;
  --copy-on-dark: #ede8df;
  --copper: #c17a45;
  --copper-2: #a86435;
  --copper-soft: rgba(193, 122, 69, 0.22);
  --rule: rgba(26, 28, 32, 0.16);
  --rule-on-dark: rgba(237, 232, 223, 0.14);
  --serif: "Instrument Serif", "Iowan Old Style", "Palatino Linotype", Palatino, serif;
  --sans: "DM Sans", "Gill Sans", "Gill Sans MT", Calibri, sans-serif;
  --measure: 38rem;
  --page: 1120px;
  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  --section: clamp(4.5rem, 10vw, 8.5rem);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

html:focus-within {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  position: relative;
  color: var(--copy);
  background: var(--paper);
  font-family: var(--sans);
  font-optical-sizing: auto;
  font-size: 1.0625rem;
  line-height: 1.55;
  font-weight: 400;
  letter-spacing: -0.011em;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

h1, h2, h3, p, ul, ol, figure, blockquote {
  margin: 0;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: inherit;
}

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

a:hover {
  color: var(--copper);
}

:focus {
  outline: none;
}

:focus-visible {
  outline: 2px solid var(--copper);
  outline-offset: 3px;
}

::selection {
  background: var(--copper-soft);
  color: var(--ink);
}

.skip {
  position: absolute;
  left: var(--gutter);
  top: -4rem;
  z-index: 30;
  padding: 0.5rem 0.8rem;
  background: var(--paper);
  color: var(--ink);
}

.skip:focus {
  top: 0.6rem;
}

.kicker {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 1rem;
}

.kicker-on-dark {
  color: var(--copper);
}

/* —— Masthead —— */

.masthead {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.35rem var(--gutter);
  color: var(--copy-on-dark);
  mix-blend-mode: normal;
}

.wordmark {
  font-family: var(--serif);
  font-size: 1.2rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  line-height: 1;
}

.wordmark:hover {
  color: var(--paper);
}

.mast-nav {
  display: flex;
  align-items: baseline;
  gap: 1.4rem;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.mast-co {
  color: var(--mute-on-dark);
}

.mast-nav a {
  text-decoration: none;
  border-bottom: 1px solid rgba(237, 232, 223, 0.35);
  padding-bottom: 0.12rem;
}

.mast-nav a:hover {
  border-bottom-color: var(--copper);
  color: var(--paper);
}

/* —— Hero —— */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: var(--copy-on-dark);
  background: var(--ink);
  isolation: isolate;
}

.hero-shot {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(120% 80% at 70% 30%, #2a241c 0%, var(--ink) 62%);
}

.hero-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 62%;
}

.hero-veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(11, 12, 16, 0.55) 0%, rgba(11, 12, 16, 0) 28%),
    linear-gradient(to top, rgba(11, 12, 16, 0.94) 0%, rgba(11, 12, 16, 0.42) 42%, rgba(11, 12, 16, 0.18) 100%),
    linear-gradient(to right, rgba(11, 12, 16, 0.45) 0%, rgba(11, 12, 16, 0) 48%);
}

.hero-copy {
  position: relative;
  z-index: 2;
  padding: 0 var(--gutter) clamp(5.5rem, 10vh, 7.5rem);
  max-width: 46rem;
}

.hero h1 {
  font-size: clamp(2.85rem, 7.6vw, 6.4rem);
  line-height: 0.96;
  font-weight: 400;
  color: var(--paper);
}

.standfirst {
  margin-top: 1.4rem;
  max-width: 28rem;
  font-size: clamp(1.05rem, 1.6vw, 1.22rem);
  line-height: 1.45;
  color: var(--mute-on-dark);
}

.hero-continue {
  position: absolute;
  z-index: 2;
  right: var(--gutter);
  bottom: 2rem;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--mute-on-dark);
}

.hero-continue::before {
  content: "";
  display: block;
  width: 1px;
  height: 2.4rem;
  margin: 0 auto 0.7rem;
  background: var(--copper);
}

.hero-continue:hover {
  color: var(--paper);
}

/* —— Shared frames —— */

.frame {
  margin: 0;
  background: var(--graphite);
  overflow: hidden;
}

.frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 3 / 2;
}

/* —— How it works —— */

.how {
  padding: var(--section) var(--gutter) calc(var(--section) * 0.7);
  background: var(--paper);
}

.section-intro {
  max-width: 40rem;
  margin-bottom: clamp(2.8rem, 6vw, 4.8rem);
}

.section-intro h2,
.talk-intro h2,
.honest h2 {
  font-size: clamp(2rem, 4.4vw, 3.35rem);
  line-height: 1.08;
  margin-bottom: 1.15rem;
}

.lede,
.talk-intro p,
.honest p,
.chapter-copy p,
.how-copy p {
  color: #3d3f45;
}

.lede {
  max-width: var(--measure);
  font-size: 1.12rem;
}

.how-list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: clamp(2.5rem, 6vw, 5rem);
}

.how-item {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(1.4rem, 4vw, 3.5rem);
  align-items: end;
}

.how-item:nth-child(even) {
  grid-template-columns: 0.85fr 1.15fr;
}

.how-item:nth-child(even) .frame {
  order: 2;
}

.how-copy {
  padding-bottom: 0.4rem;
  max-width: 28rem;
}

.num {
  font-family: var(--serif);
  font-size: 1.15rem;
  color: var(--copper);
  letter-spacing: 0.04em;
  margin-bottom: 0.55rem;
}

.how-copy h3,
.chapter-copy h3 {
  font-size: clamp(1.7rem, 2.6vw, 2.25rem);
  margin-bottom: 0.8rem;
}

/* —— Why it matters —— */

.why {
  background: var(--ink);
  color: var(--copy-on-dark);
  padding: var(--section) 0 calc(var(--section) * 0.55);
}

.section-intro-dark {
  padding: 0 var(--gutter);
}

.section-intro-dark .lede {
  color: var(--mute-on-dark);
}

.chapter {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 0;
  margin-top: clamp(2.2rem, 5vw, 3.6rem);
  align-items: stretch;
  min-height: min(72vh, 640px);
}

.chapter-flip {
  grid-template-columns: 0.85fr 1.15fr;
}

.chapter-flip .chapter-shot {
  order: 2;
}

.chapter-shot {
  min-height: 320px;
}

.chapter-shot img {
  aspect-ratio: auto;
  height: 100%;
  min-height: 320px;
}

.chapter-copy {
  padding: clamp(1.8rem, 4vw, 3.4rem) var(--gutter);
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 36rem;
}

.chapter-copy h3 {
  color: var(--paper);
}

.chapter-copy p {
  color: var(--mute-on-dark);
}

.chapter-copy p + p {
  margin-top: 0.9rem;
}

/* —— Honest concept —— */

.honest {
  background: var(--paper-2);
  padding: var(--section) var(--gutter);
  display: grid;
  justify-items: start;
  max-width: none;
}

.honest > * {
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}

.honest h2 {
  margin-bottom: 1.4rem;
}

.honest p + p {
  margin-top: 0.9rem;
}

.honest::before {
  content: "";
  display: block;
  width: 2.6rem;
  height: 1px;
  background: var(--copper);
  margin: 0 auto 1.6rem;
  max-width: none;
}

/* —— Talk / form —— */

.talk {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 5vw, 5rem);
  padding: var(--section) var(--gutter);
  background: var(--paper);
  border-top: 1px solid var(--rule);
}

.talk-intro {
  max-width: 26rem;
  padding-top: 0.2rem;
}

.interest {
  max-width: 36rem;
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.35rem 1.6rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin: 0;
}

.field-wide {
  grid-column: 1 / -1;
}

.field label {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #5c5852;
}

.opt {
  text-transform: lowercase;
  letter-spacing: 0;
  font-weight: 400;
  color: var(--mute);
  margin-left: 0.35rem;
}

.field input,
.field textarea {
  width: 100%;
  appearance: none;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(26, 28, 32, 0.28);
  border-radius: 0;
  padding: 0.55rem 0 0.65rem;
  color: var(--copy);
  font-family: inherit;
  font-size: 1.05rem;
  line-height: 1.4;
  letter-spacing: inherit;
}

.field textarea {
  resize: vertical;
  min-height: 6.5rem;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #b0aaa0;
}

.field input:hover,
.field textarea:hover {
  border-bottom-color: rgba(26, 28, 32, 0.5);
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-bottom-color: var(--copper);
}

.form-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.4rem;
  margin-top: 2rem;
}

.btn {
  appearance: none;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--paper);
  background: var(--ink);
  border: 1px solid var(--ink);
  padding: 0.85rem 1.45rem;
  cursor: pointer;
  transition: background 160ms var(--ease), color 160ms var(--ease), border-color 160ms var(--ease);
}

.btn:hover:not(:disabled) {
  background: var(--copper);
  border-color: var(--copper);
  color: var(--paper);
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.form-status {
  min-height: 1.3em;
  font-size: 0.95rem;
  color: var(--mute);
}

.form-status.is-success {
  color: #2d5a3d;
}

.form-status.is-error {
  color: #8a3a2a;
}

.form-status.is-pending {
  color: var(--mute);
}

/* —— Footer —— */

.site-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.6rem 2rem;
  padding: 1.4rem var(--gutter) 1.7rem;
  background: var(--ink);
  color: var(--mute-on-dark);
  font-size: 0.82rem;
  letter-spacing: 0.01em;
}

.site-foot p {
  margin: 0;
}

/* —— Result pages from interest.php —— */

.result-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
}

.result-body .masthead {
  color: var(--copy);
}

.result-body .mast-co {
  color: var(--mute);
}

.result-body .wordmark:hover {
  color: var(--copper);
}

.result-body .mast-nav a {
  border-bottom-color: rgba(26, 28, 32, 0.28);
}

.result-body .mast-nav a:hover {
  color: var(--copper);
  border-bottom-color: var(--copper);
}

.result-main {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 7rem var(--gutter) 4rem;
}

.result-card {
  max-width: 32rem;
}

.result-card h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  margin: 0.4rem 0 1rem;
}

.result-card p {
  color: #3d3f45;
  margin-bottom: 1.6rem;
}

.result-card a {
  color: var(--copper-2);
}

/* —— Responsive —— */

@media (max-width: 860px) {
  .how-item,
  .how-item:nth-child(even),
  .chapter,
  .chapter-flip,
  .talk {
    grid-template-columns: 1fr;
  }

  .how-item:nth-child(even) .frame,
  .chapter-flip .chapter-shot {
    order: 0;
  }

  .how-copy {
    padding-bottom: 0;
  }

  .chapter,
  .chapter-flip {
    min-height: 0;
  }

  .hero-continue {
    display: none;
  }

  .fields {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 560px) {
  .hero {
    min-height: 92svh;
  }

  .hero h1 {
    font-size: clamp(2.5rem, 12vw, 3.4rem);
  }

  .masthead {
    padding-top: 1.1rem;
  }
}

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

  .btn {
    transition: none;
  }
}

@media print {
  .masthead,
  .hero-continue,
  .talk,
  .site-foot {
    position: static;
  }

  .hero {
    min-height: 0;
    color: #000;
    background: #fff;
  }

  .hero-shot,
  .hero-veil {
    display: none;
  }

  .why {
    background: #fff;
    color: #000;
  }
}
