/* ==========================================================================
   Apex Window — design system
   Single stylesheet, no build step. Edit tokens below to re-skin the site.
   ========================================================================== */

/* --- Tokens -------------------------------------------------------------- */
:root {
  /* Brand — warm charcoal ground, champagne gold accent.
     The --navy-* / --clay-* names are kept so every rule below keeps working;
     only the values changed. Re-skin the whole site from right here. */
  --navy-900: #16120e;
  --navy-800: #221c15;
  --navy-700: #33291f;
  --navy-100: #f0e9df;
  /* clay-600 is the text-weight gold (5.7:1 on white); clay-500 is the fill
     gold, which carries dark text, not white; clay-400 is the hover fill. */
  --clay-600: #7f6229;
  --clay-500: #c2a15c;
  --clay-400: #d5b87d;
  --clay-100: #f6efe1;

  /* Neutrals — warm-tinted, not pure grey */
  --ink: #1b1713;
  --ink-soft: #5b5248;
  --ink-faint: #71685c; /* 5.5:1 on white, 5.0:1 on --surface-alt */
  --line: #e3ddd3;
  --line-soft: #efeae2;
  --surface: #ffffff;
  --surface-alt: #f8f5f0;

  /* Type */
  --font-display: "Playfair Display", "Iowan Old Style", "Palatino Linotype",
    Palatino, Georgia, "Times New Roman", serif;
  --font-sans: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --step--1: clamp(0.82rem, 0.79rem + 0.13vw, 0.89rem);
  --step-0: clamp(1rem, 0.96rem + 0.18vw, 1.09rem);
  --step-1: clamp(1.2rem, 1.12rem + 0.36vw, 1.44rem);
  --step-2: clamp(1.45rem, 1.3rem + 0.7vw, 1.9rem);
  --step-3: clamp(1.75rem, 1.5rem + 1.2vw, 2.5rem);
  --step-4: clamp(2.1rem, 1.66rem + 2.1vw, 3.4rem);
  --step-5: clamp(2.6rem, 1.7rem + 4.2vw, 5rem);
  --step-6: clamp(3.1rem, 1.5rem + 7.4vw, 8rem);

  /* Space + shape */
  --gutter: clamp(1.15rem, 0.9rem + 1.2vw, 2rem);
  --section-y: clamp(3.5rem, 2.6rem + 4vw, 6.5rem);
  --radius: 4px;
  --radius-lg: 8px;
  --shadow-sm: 0 1px 2px rgba(30, 24, 17, 0.06),
    0 4px 12px rgba(30, 24, 17, 0.05);
  --shadow-md: 0 2px 6px rgba(30, 24, 17, 0.07),
    0 14px 34px rgba(30, 24, 17, 0.09);
  --maxw: 1180px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1,
h2,
h3,
h4 {
  margin: 0 0 0.5em;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

/* Display serif on the big type only — small headings stay sans for
   legibility, which is also what gives the pairing its contrast. */
h1,
h2 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.015em;
}

h1 {
  font-size: var(--step-4);
}
h2 {
  font-size: var(--step-3);
}
h3 {
  font-size: var(--step-1);
  font-weight: 800;
}

p,
ul,
ol,
dl {
  margin: 0 0 1rem;
}

a {
  color: var(--navy-700);
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--clay-600);
}

hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 2rem 0;
}

:focus-visible {
  outline: 3px solid var(--clay-500);
  outline-offset: 3px;
  border-radius: 2px;
}

/* --- Layout helpers ------------------------------------------------------ */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container--narrow {
  max-width: 760px;
}

.section {
  padding-block: var(--section-y);
}

.section--tight {
  padding-block: clamp(2.5rem, 2rem + 2vw, 4rem);
}

.section--alt {
  background: var(--surface-alt);
}

.section--ink {
  background: var(--navy-900);
  color: #e8e0d4;
}

.section--ink h2,
.section--ink h3 {
  color: #fff;
}

.section-head {
  max-width: 62ch;
  margin-bottom: clamp(2rem, 1.6rem + 1.6vw, 3rem);
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.eyebrow {
  display: block;
  margin-bottom: 0.75rem;
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--clay-600);
}

.section--ink .eyebrow {
  color: #d9bd7f;
}

.lede {
  font-size: var(--step-1);
  line-height: 1.55;
  color: var(--ink-soft);
  font-weight: 400;
}

.section--ink .lede {
  color: #ddd3c4;
}

.muted {
  color: var(--ink-soft);
}

.small {
  font-size: var(--step--1);
}

.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-link {
  position: absolute;
  left: 0.5rem;
  top: -4rem;
  z-index: 200;
  padding: 0.7rem 1.1rem;
  background: var(--navy-900);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  border-radius: var(--radius);
  transition: top 0.15s ease;
}

.skip-link:focus {
  top: 0.5rem;
  color: #fff;
}

/* --- Buttons ------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  border: 2px solid transparent;
  border-radius: var(--radius);
  font: inherit;
  font-weight: 700;
  font-size: var(--step-0);
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.16s ease, border-color 0.16s ease,
    color 0.16s ease, transform 0.16s ease;
}

.btn:active {
  transform: translateY(1px);
}

/* Gold fill takes dark text — white on this gold is only 2.4:1. */
.btn--primary {
  background: var(--clay-500);
  border-color: var(--clay-500);
  color: var(--navy-900);
}

.btn--primary:hover {
  background: var(--clay-400);
  border-color: var(--clay-400);
  color: var(--navy-900);
}

.btn--secondary {
  background: transparent;
  border-color: currentColor;
  color: var(--navy-800);
}

.btn--secondary:hover {
  background: var(--navy-800);
  border-color: var(--navy-800);
  color: #fff;
}

/* Outline button on any dark ground. .cta must be listed: it is not a
   .section--ink, so without it the label inherits the dark ink colour and
   lands invisibly on the dark band. */
.section--ink .btn--secondary,
.hero .btn--secondary,
.cta .btn--secondary,
.band .btn--secondary {
  color: #fff;
}

.section--ink .btn--secondary:hover,
.hero .btn--secondary:hover,
.cta .btn--secondary:hover,
.band .btn--secondary:hover {
  background: #fff;
  border-color: #fff;
  color: var(--navy-900);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

/* --- Header -------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.topbar {
  background: var(--navy-900);
  color: #d6cbba;
  font-size: var(--step--1);
}

.topbar__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem 1.25rem;
  padding-block: 0.5rem;
}

.topbar a {
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}

.topbar a:hover {
  color: #d9bd7f;
  text-decoration: underline;
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.85rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--ink);
}

.brand__mark {
  flex: none;
  width: 34px;
  height: 34px;
  color: var(--clay-500);
}

.brand__name {
  display: block;
  font-size: 1.12rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  line-height: 1.1;
}

.brand__tag {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.85rem;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font: inherit;
  font-weight: 700;
  font-size: var(--step--1);
  color: var(--ink);
  cursor: pointer;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 0.2rem + 1.4vw, 1.75rem);
}

.nav__link {
  position: relative;
  padding-block: 0.35rem;
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-soft);
  white-space: nowrap;
}

.nav__link:hover {
  color: var(--navy-800);
}

.nav__link[aria-current="page"] {
  color: var(--navy-800);
}

.nav__link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: var(--clay-500);
}

.nav .btn {
  padding: 0.6rem 1.1rem;
  font-size: var(--step--1);
}

@media (max-width: 900px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem var(--gutter) 1.25rem;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
  }

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

  .nav__link {
    padding-block: 0.85rem;
    font-size: var(--step-0);
    border-bottom: 1px solid var(--line-soft);
  }

  .nav__link[aria-current="page"]::after {
    display: none;
  }

  .nav .btn {
    margin-top: 1rem;
    padding: 0.85rem 1.5rem;
    font-size: var(--step-0);
  }
}

/* --- Hero ---------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--navy-900);
  color: #fff;
}

/* Photograph sits behind everything; the scrim below keeps text readable. */
.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 55%;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
      100deg,
      rgba(18, 14, 10, 0.95) 0%,
      rgba(18, 14, 10, 0.88) 38%,
      rgba(18, 14, 10, 0.58) 68%,
      rgba(18, 14, 10, 0.42) 100%
    ),
    linear-gradient(to top, rgba(18, 14, 10, 0.55), transparent 45%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: min(92vh, 60rem);
  padding-block: clamp(6rem, 4rem + 8vw, 9rem) clamp(3rem, 2rem + 3vw, 4.5rem);
}

.hero__copy {
  max-width: 46rem;
}

/* Oversized display headline — the main lever on how the page reads. */
.hero h1 {
  margin-bottom: 0.3em;
  font-family: var(--font-display);
  font-size: var(--step-6);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.022em;
  color: #fff;
  text-shadow: 0 2px 40px rgba(12, 8, 4, 0.5);
}

.hero h1 em {
  display: block;
  font-style: normal;
  color: var(--clay-500);
}

.hero__lede {
  max-width: 44ch;
  font-size: var(--step-1);
  line-height: 1.5;
  color: #e5dcd0;
}

/* Thin rule + scroll cue anchoring the bottom of the hero */
.hero__foot {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-bottom: 1.75rem;
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.68);
}

.hero__foot::before {
  content: "";
  position: absolute;
  top: -1.5rem;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.22);
}

.hero__scroll {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: inherit;
  text-decoration: none;
}

.hero__scroll svg {
  width: 15px;
  height: 15px;
  animation: nudge 2.4s ease-in-out infinite;
}

@keyframes nudge {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}

@media (max-width: 700px) {
  .hero__foot {
    display: none;
  }

  .hero__inner {
    min-height: min(88vh, 44rem);
  }
}

@media (max-width: 700px) {
  .hero::after {
    background: linear-gradient(
      175deg,
      rgba(18, 14, 10, 0.9) 0%,
      rgba(18, 14, 10, 0.86) 55%,
      rgba(18, 14, 10, 0.94) 100%
    );
  }
}

/* --- Photographs --------------------------------------------------------- */
.media {
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--surface-alt);
}

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

.media--tall img {
  aspect-ratio: 4 / 5;
}

figure.media {
  margin: 0;
}

figure.media figcaption {
  padding: 0.75rem 1rem 0.9rem;
  font-size: var(--step--1);
  color: var(--ink-soft);
  background: var(--surface-alt);
}

.section--ink figure.media figcaption {
  color: #cfc4b3;
  background: rgba(255, 255, 255, 0.07);
}

/* Full-bleed band with a photo behind it */
.band {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: var(--navy-900);
}

.band__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.band::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    95deg,
    rgba(18, 14, 10, 0.94) 0%,
    rgba(18, 14, 10, 0.86) 45%,
    rgba(18, 14, 10, 0.55) 100%
  );
}

.band__inner {
  position: relative;
  z-index: 1;
  max-width: 46rem;
  padding-block: clamp(3.5rem, 2.6rem + 4vw, 6rem);
}

/* A normal section with a photograph behind it. Pair with .section--ink. */
.section--photo {
  position: relative;
  overflow: hidden;
}

.section--photo > .section__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.section--photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    115deg,
    rgba(18, 14, 10, 0.95) 0%,
    rgba(18, 14, 10, 0.9) 50%,
    rgba(18, 14, 10, 0.78) 100%
  );
}

.section--photo > .container {
  position: relative;
  z-index: 1;
}

.band h2 {
  color: #fff;
}

.band p {
  color: #e0d7c9;
}

.hero__points {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin: 1.75rem 0 0;
  padding: 0;
  list-style: none;
  font-size: var(--step--1);
  font-weight: 600;
  color: #ddd3c4;
}

.hero__points li {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.hero__points svg {
  flex: none;
  width: 16px;
  height: 16px;
  color: #d9bd7f;
}

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

  .hero__art {
    max-width: 420px;
    margin-inline: auto;
  }
}

/* --- Trust strip --------------------------------------------------------- */
.strip {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.strip__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1px;
  background: var(--line);
  border-inline: 1px solid var(--line);
}

.strip__item {
  padding: 1.5rem 1.25rem;
  background: var(--surface);
  text-align: center;
}

.strip__item strong {
  display: block;
  font-size: var(--step-1);
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--navy-800);
}

.strip__item span {
  display: block;
  margin-top: 0.15rem;
  font-size: var(--step--1);
  color: var(--ink-soft);
}

/* --- Card grids ---------------------------------------------------------- */
.grid {
  display: grid;
  gap: clamp(1rem, 0.7rem + 1.2vw, 1.75rem);
}

.grid--2 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid--3 {
  grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
}

.grid--4 {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.card {
  display: flex;
  flex-direction: column;
  padding: clamp(1.25rem, 1rem + 0.8vw, 1.85rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.card h3 {
  margin-bottom: 0.35rem;
}

.card p:last-child {
  margin-bottom: 0;
}

.card__icon {
  width: 40px;
  height: 40px;
  margin-bottom: 1rem;
  color: var(--clay-500);
}

.card__meta {
  margin-top: auto;
  padding-top: 1rem;
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* Product card with window diagram */
.product {
  overflow: hidden;
  padding: 0;
}

.product__figure {
  display: grid;
  place-items: center;
  padding: 1.75rem 1rem;
  background: linear-gradient(160deg, var(--navy-100), #fbf8f3);
  border-bottom: 1px solid var(--line);
}

.product__figure svg {
  width: 100%;
  max-width: 165px;
  height: auto;
  color: var(--navy-800);
}

.product__body {
  padding: 1.35rem clamp(1.1rem, 0.9rem + 0.6vw, 1.6rem) 1.5rem;
}

.product__body h3 {
  font-size: var(--step-0);
  font-weight: 800;
  letter-spacing: 0.01em;
}

.product__body p {
  margin: 0;
  font-size: var(--step--1);
  line-height: 1.6;
  color: var(--ink-soft);
}

/* --- Feature list -------------------------------------------------------- */
.feature-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 1.15rem;
}

.feature-list li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 0.85rem;
  align-items: start;
}

.feature-list svg {
  width: 22px;
  height: 22px;
  margin-top: 0.2rem;
  color: var(--clay-500);
}

.feature-list strong {
  display: block;
  color: var(--ink);
}

.section--ink .feature-list strong {
  color: #fff;
}

.feature-list span {
  color: var(--ink-soft);
  font-size: var(--step--1);
  line-height: 1.6;
}

.section--ink .feature-list span {
  color: #cfc4b3;
}

/* --- Split layout -------------------------------------------------------- */
.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(2rem, 1.2rem + 3vw, 4rem);
  align-items: center;
}

/* --- Process steps ------------------------------------------------------- */
.steps {
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
  gap: clamp(1.25rem, 1rem + 1vw, 2rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps li {
  counter-increment: step;
  padding-top: 1.35rem;
  border-top: 3px solid var(--line);
}

.steps li::before {
  content: "0" counter(step);
  display: block;
  margin-bottom: 0.5rem;
  font-size: var(--step--1);
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--clay-500);
}

.steps h3 {
  font-size: var(--step-0);
  font-weight: 800;
}

.steps p {
  margin: 0;
  font-size: var(--step--1);
  color: var(--ink-soft);
}

.section--ink .steps li {
  border-top-color: rgba(255, 255, 255, 0.22);
}

.section--ink .steps p {
  color: #cfc4b3;
}

/* --- FAQ ----------------------------------------------------------------- */
.faq {
  border-top: 1px solid var(--line);
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 0;
  font-size: var(--step-0);
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "";
  flex: none;
  width: 11px;
  height: 11px;
  border-right: 2px solid var(--clay-500);
  border-bottom: 2px solid var(--clay-500);
  transform: rotate(45deg) translateY(-3px);
  transition: transform 0.2s ease;
}

.faq details[open] summary::after {
  transform: rotate(-135deg) translateY(-3px);
}

.faq details p {
  margin: 0 0 1.15rem;
  max-width: 72ch;
  color: var(--ink-soft);
}

/* --- CTA band ------------------------------------------------------------ */
.cta {
  background: var(--navy-800);
  color: #fff;
}

.cta__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem 2.5rem;
  padding-block: clamp(2.5rem, 2rem + 2vw, 3.75rem);
}

.cta h2 {
  margin: 0 0 0.35rem;
  color: #fff;
}

.cta p {
  margin: 0;
  max-width: 52ch;
  color: #ddd3c4;
}

.cta .btn-row {
  margin-top: 0;
}

/* --- Contact blocks ------------------------------------------------------ */
.contact-list {
  display: grid;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

.contact-list dt {
  font-size: var(--step--1);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.contact-list dd {
  margin: 0.2rem 0 0;
  font-size: var(--step-1);
  font-weight: 600;
  line-height: 1.4;
}

.contact-list dd a {
  text-decoration: none;
  color: var(--navy-800);
}

.contact-list dd a:hover {
  color: var(--clay-600);
  text-decoration: underline;
}

.contact-list .small {
  font-size: var(--step--1);
  font-weight: 400;
  color: var(--ink-soft);
}

/* --- Forms --------------------------------------------------------------- */
.form {
  padding: clamp(1.4rem, 1.1rem + 1.2vw, 2.25rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.field {
  margin-bottom: 1.15rem;
}

.field > label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.03em;
}

.field .req {
  color: var(--clay-600);
}

.field .hint {
  display: block;
  margin-top: 0.3rem;
  font-size: var(--step--1);
  color: var(--ink-faint);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.72rem 0.85rem;
  font: inherit;
  font-size: var(--step-0);
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

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

.field input:hover,
.field select:hover,
.field textarea:hover {
  border-color: var(--ink-faint);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--navy-700);
  box-shadow: 0 0 0 3px rgba(51, 41, 31, 0.18);
}

.field input[aria-invalid="true"],
.field select[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-color: #c0392b;
  box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.14);
}

/* Not scoped to .field — the consent checkbox carries its own wrapper. */
.error {
  display: none;
  margin-top: 0.3rem;
  font-size: var(--step--1);
  font-weight: 600;
  color: #b03024;
}

.is-invalid .error {
  display: block;
}

.field-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 0 1rem;
}

.consent {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 0.7rem;
  align-items: start;
  margin-bottom: 1.35rem;
  font-size: var(--step--1);
  line-height: 1.55;
  color: var(--ink-soft);
}

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

/* Honeypot — hidden from people, visible to naive bots */
.hp {
  position: absolute !important;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form__status {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  font-size: var(--step--1);
  font-weight: 600;
}

.form__status:empty {
  display: none;
}

.form__status[data-state="ok"] {
  background: #e8f4ec;
  border: 1px solid #b4dcc3;
  color: #1d6a3a;
}

.form__status[data-state="error"] {
  background: #fdeceb;
  border: 1px solid #f3c2be;
  color: #a52c21;
}

/* --- Footer -------------------------------------------------------------- */
.site-footer {
  background: var(--navy-900);
  color: #c8bdac;
  font-size: var(--step--1);
}

.footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
  gap: 2rem clamp(1.5rem, 1rem + 2vw, 3rem);
  padding-block: clamp(2.75rem, 2.2rem + 2vw, 4rem);
}

.site-footer h2,
.site-footer h3 {
  margin-bottom: 0.85rem;
  font-size: var(--step--1);
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
}

.site-footer .brand {
  color: #fff;
  margin-bottom: 1rem;
}

.site-footer .brand__tag {
  color: #a89d8c;
}

.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.55rem;
}

.site-footer a {
  color: #e0d7c9;
  text-decoration: none;
}

.site-footer a:hover {
  color: #fff;
  text-decoration: underline;
}

.site-footer address {
  font-style: normal;
  line-height: 1.7;
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-block: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.13);
  color: #a89d8c;
}

.footer__bottom ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
}

/* --- Page header (interior pages) ---------------------------------------- */
.page-head {
  padding-block: clamp(2.75rem, 2.2rem + 2.5vw, 4.5rem);
  background: var(--surface-alt);
  border-bottom: 1px solid var(--line);
}

.page-head h1 {
  margin-bottom: 0.5rem;
}

.page-head p {
  max-width: 62ch;
  margin: 0;
  font-size: var(--step-1);
  color: var(--ink-soft);
}

.breadcrumb {
  margin: 0 0 0.85rem;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  font-size: var(--step--1);
  color: var(--ink-faint);
}

.breadcrumb a {
  color: var(--ink-faint);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--clay-600);
  text-decoration: underline;
}

.breadcrumb li + li::before {
  content: "/";
  margin-right: 0.4rem;
  color: var(--line);
}

/* --- Prose (legal pages) ------------------------------------------------- */
.prose h2 {
  margin-top: 2.5rem;
  font-size: var(--step-2);
}

.prose h3 {
  margin-top: 1.75rem;
}

.prose li {
  margin-bottom: 0.4rem;
}

.prose ul,
.prose ol {
  padding-left: 1.25rem;
}

/* --- Scroll reveal ------------------------------------------------------- */
/* Only applied once JS confirms support; without it everything stays visible. */
.js-reveal .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.js-reveal .reveal.is-visible {
  opacity: 1;
  transform: none;
}

.js-reveal .reveal[data-delay="1"] { transition-delay: 0.09s; }
.js-reveal .reveal[data-delay="2"] { transition-delay: 0.18s; }
.js-reveal .reveal[data-delay="3"] { transition-delay: 0.27s; }

/* --- Showcase: large image with copy alongside --------------------------- */
.showcase {
  display: grid;
  gap: clamp(1.5rem, 0.8rem + 3vw, 4rem);
  align-items: center;
}

@media (min-width: 860px) {
  .showcase {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .showcase--flip .showcase__media {
    order: 2;
  }
}

.showcase + .showcase {
  margin-top: clamp(3rem, 2rem + 4vw, 6rem);
}

.showcase__media {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--surface-alt);
}

.showcase__media img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.showcase__media:hover img {
  transform: scale(1.04);
}

/* Number sitting over the corner of the image */
.showcase__index {
  position: absolute;
  left: 0;
  bottom: 0;
  padding: 0.55rem 1.1rem;
  background: var(--clay-500);
  color: var(--navy-900);
  font-size: var(--step--1);
  font-weight: 800;
  letter-spacing: 0.16em;
}

.showcase__copy h3 {
  font-size: var(--step-2);
  letter-spacing: -0.025em;
}

.showcase__copy p {
  max-width: 46ch;
  color: var(--ink-soft);
}

.showcase__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.35rem 0 0;
  padding: 0;
  list-style: none;
}

.showcase__tags li {
  padding: 0.35rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 100px;
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--ink-soft);
}

/* --- Statement type ------------------------------------------------------ */
.statement {
  max-width: 24ch;
  font-family: var(--font-display);
  font-size: var(--step-5);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.018em;
}

/* Fill gold is too light for text on white — use the text-weight gold. */
.statement em {
  font-style: normal;
  color: var(--clay-600);
}

.section--ink .statement em {
  color: #d9bd7f;
}

/* --- Motion preferences -------------------------------------------------- */
@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;
  }
}

/* --- Print --------------------------------------------------------------- */
@media print {
  .site-header,
  .cta,
  .btn,
  .nav-toggle {
    display: none !important;
  }

  body {
    color: #000;
  }
}
