:root {
  --paper: #f8f7f3;
  --white: #ffffff;
  --ink: #161616;
  --muted: #65676d;
  --line: #dad8d0;
  --cobalt: #1247ff;
  --cobalt-dark: #0a2bb4;
  --warm: #c7b89b;
  --green: #31584b;
  --shadow: 0 18px 55px rgba(16, 20, 30, .09);
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  line-height: 1.6;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: .08em; text-underline-offset: .18em; }
:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 3px; }

.skip-link {
  position: absolute;
  left: 1rem;
  top: .5rem;
  z-index: 20;
  padding: .6rem .8rem;
  background: var(--ink);
  color: var(--white);
  transform: translateY(-150%);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--line);
  background: rgba(248, 247, 243, .94);
  backdrop-filter: blur(14px);
}

.nav-wrap {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem;
  align-items: center;
  max-width: 1180px;
  margin: 0 auto;
  padding: .82rem 1.2rem;
}

.brand {
  display: grid;
  gap: .08rem;
  text-decoration: none;
}

.brand strong {
  font-family: var(--serif);
  font-size: 1.42rem;
  line-height: 1;
  font-weight: 500;
}

.brand span {
  color: var(--cobalt);
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.nav-toggle {
  display: none;
  width: 2.7rem;
  height: 2.7rem;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  border-radius: 0;
  cursor: pointer;
}

.nav-toggle span,
.nav-toggle::before,
.nav-toggle::after {
  content: "";
  display: block;
  width: 1.2rem;
  height: 2px;
  margin: .25rem auto;
  background: currentColor;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .28rem;
}

.site-nav a,
.header-mail {
  padding: .55rem .7rem;
  font-size: .9rem;
  text-decoration: none;
  border-bottom: 2px solid transparent;
}

.site-nav a[aria-current="page"] {
  color: var(--cobalt-dark);
  border-bottom-color: var(--cobalt);
}

.header-mail {
  color: var(--cobalt-dark);
  white-space: nowrap;
}

main { min-height: 68vh; }

.page-shell,
.legal-shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 3rem 1.2rem 4rem;
}

.hero {
  max-width: 1280px;
  margin: 0 auto;
  padding: 2.3rem 1.2rem 4rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(300px, .78fr);
  gap: clamp(1.3rem, 3.4vw, 3.8rem);
  align-items: end;
}

.kicker,
.caption-code {
  color: var(--cobalt);
  font-size: .76rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  font-weight: 700;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.05;
  font-weight: 520;
}

h1,
.display {
  font-family: var(--serif);
  font-size: clamp(2.45rem, 7vw, 6.7rem);
  max-width: 11ch;
}

h2 {
  font-family: var(--serif);
  font-size: clamp(2rem, 4.8vw, 4.2rem);
  max-width: 13ch;
}

h3 {
  font-size: 1.08rem;
  margin-bottom: .45rem;
}

.lede {
  max-width: 44rem;
  color: #303238;
  font-size: clamp(1.05rem, 1.55vw, 1.28rem);
}

.hero-copy {
  display: grid;
  gap: 1.2rem;
}

.hero-actions,
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
}

.button {
  display: inline-flex;
  min-height: 2.85rem;
  align-items: center;
  justify-content: center;
  padding: .75rem 1rem;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--white);
  text-decoration: none;
  font-weight: 700;
  cursor: pointer;
}

.button.secondary {
  background: transparent;
  color: var(--ink);
}

.button.cobalt {
  background: var(--cobalt);
  border-color: var(--cobalt);
}

.plate {
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.photo-frame {
  position: relative;
  padding: .72rem .72rem 2.25rem;
  background: var(--white);
  border: 1px solid var(--line);
}

.photo-frame img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #e9e7df;
}

.photo-frame.portrait img { aspect-ratio: 4 / 5; }
.photo-frame.square img { aspect-ratio: 1 / 1; }

.photo-caption {
  position: absolute;
  left: .72rem;
  right: .72rem;
  bottom: .5rem;
  display: flex;
  justify-content: space-between;
  gap: .8rem;
  color: var(--cobalt);
  font-size: .78rem;
  line-height: 1.25;
}

.contact-strip {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: .35rem;
  margin-top: 1.1rem;
}

.contact-strip span {
  min-height: 3.2rem;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, #fff, #eeeeea);
}

.contact-strip span:nth-child(2n) { border-top: 5px solid var(--cobalt); }
.contact-strip span:nth-child(3n) { background: #e4e0d6; }

.section {
  border-top: 1px solid var(--line);
  padding: 3.5rem 0;
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(220px, .62fr) minmax(0, 1fr);
  gap: clamp(1.2rem, 4vw, 4rem);
}

.text-stack { display: grid; gap: 1rem; align-content: start; }
.text-stack p { margin: 0; color: #33363b; }

.measure { max-width: 45rem; }

.index-list,
.process-list,
.legal-shell ul,
.legal-shell ol {
  padding-left: 1.1rem;
}

.index-list li,
.process-list li {
  margin: .55rem 0;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.card {
  padding: 1rem;
  background: var(--white);
  border: 1px solid var(--line);
}

.card .number {
  display: inline-flex;
  width: 2rem;
  height: 2rem;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  background: var(--cobalt);
  color: var(--white);
  font-weight: 800;
}

.quote-note {
  border-left: 5px solid var(--cobalt);
  padding: .2rem 0 .2rem 1rem;
  color: #2d3036;
}

.brief-layout {
  display: grid;
  grid-template-columns: minmax(0, .98fr) minmax(300px, .74fr);
  gap: 1.2rem;
  align-items: start;
}

form {
  display: grid;
  gap: 1rem;
}

.field,
.choice-group {
  display: grid;
  gap: .35rem;
}

label,
legend {
  font-weight: 750;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #bdbab1;
  border-radius: 0;
  background: var(--white);
  color: var(--ink);
  padding: .82rem .9rem;
  font: inherit;
}

textarea { min-height: 9rem; resize: vertical; }

fieldset {
  border: 1px solid var(--line);
  margin: 0;
  padding: 1rem;
}

.checks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .55rem;
}

.check {
  display: flex;
  gap: .55rem;
  align-items: flex-start;
  font-weight: 500;
}

.check input {
  width: 1.1rem;
  min-width: 1.1rem;
  margin-top: .25rem;
}

.form-message,
.summary-panel {
  padding: 1rem;
  border: 1px solid var(--line);
  background: #fff;
}

.form-message[hidden] { display: none; }
.form-message.error { border-color: #b84040; color: #832525; }
.form-message.ok { border-color: #2e6b4e; color: #23543d; }

.summary-panel {
  position: sticky;
  top: 5.5rem;
}

.summary-panel h2 { font-size: 1.55rem; max-width: none; }
.summary-panel dl { margin: 0; display: grid; gap: .75rem; }
.summary-panel dt { color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; }
.summary-panel dd { margin: .15rem 0 0; font-weight: 750; }

.site-footer {
  border-top: 1px solid var(--line);
  background: #101114;
  color: #f2f0ea;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr .9fr;
  gap: 1.5rem;
  max-width: 1180px;
  margin: 0 auto;
  padding: 2.5rem 1.2rem;
}

.footer-grid a { color: #fff; }
.footer-grid p { color: #d5d2c9; margin: .35rem 0; }

.legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
}

.cookie-banner {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 30;
  width: min(33rem, calc(100vw - 2rem));
  padding: 1rem;
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: var(--shadow);
}

.cookie-banner[hidden] { display: none; }
.cookie-banner p { margin: .35rem 0 1rem; color: #303238; }

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
}

.text-button {
  border: 1px solid var(--line);
  background: var(--white);
  min-height: 2.55rem;
  padding: .6rem .8rem;
  cursor: pointer;
}

.legal-shell {
  max-width: 900px;
}

.legal-shell h1 { max-width: 13ch; }
.legal-shell h2 { font-size: 1.7rem; max-width: none; margin-top: 2rem; }
.legal-shell p { color: #303238; }

@media (max-width: 860px) {
  .nav-wrap {
    grid-template-columns: 1fr auto;
  }

  .nav-toggle { display: block; }
  .header-mail { display: none; }

  .site-nav {
    grid-column: 1 / -1;
    display: none;
    justify-content: flex-start;
    padding-top: .5rem;
  }

  .site-nav.is-open { display: flex; }

  .site-nav a {
    flex: 1 1 42%;
    border: 1px solid var(--line);
    background: var(--white);
  }

  .hero-grid,
  .section-grid,
  .brief-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .cards,
  .checks {
    grid-template-columns: 1fr;
  }

  .summary-panel { position: static; }
}

@media (max-width: 540px) {
  .page-shell,
  .legal-shell,
  .hero {
    padding-left: .9rem;
    padding-right: .9rem;
  }

  h1,
  .display {
    font-size: clamp(2.25rem, 15vw, 3.9rem);
  }

  .contact-strip { grid-template-columns: repeat(3, 1fr); }
  .hero-actions .button,
  .button-row .button { width: 100%; }
}

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