/* ============================================================
   EDGEHILL & EHRE
   Palette and type are fixed by the brand guide. Do not add a
   second accent hue. Crimson is an accent and a header colour,
   never a page fill behind body copy.
   ============================================================ */

:root {
  --crimson: #7A1420;
  --crimson-deep: #5E0F19;
  --cream: #F5F1E8;
  --cream-deep: #EFE9DC;
  --ink: #1A1A1A;
  --ink-soft: #575049;
  --rule: rgba(122, 20, 32, 0.20);
  --rule-faint: rgba(26, 26, 26, 0.10);

  --display: "Playfair Display", "Times New Roman", serif;
  --body: "Libre Franklin", "Helvetica Neue", Arial, sans-serif;

  --measure: 34rem;
  --wide: 68rem;
  --gutter: clamp(1.5rem, 5vw, 4rem);
}

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

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

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

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: inherit; }

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

.skip {
  position: absolute; left: -9999px;
  background: var(--crimson); color: var(--cream);
  padding: 0.75rem 1.25rem; z-index: 100;
  font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase;
}
.skip:focus { left: 1rem; top: 1rem; }

/* ---------------------------------------------- structure */

.shell {
  width: 100%;
  max-width: var(--wide);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.narrow { max-width: var(--measure); }

.band { padding-block: clamp(3.5rem, 9vw, 7rem); }
.band--tight { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.band--ruled { border-top: 1px solid var(--rule); }
.band--sunk { background: var(--cream-deep); }

/* ---------------------------------------------- masthead */

.masthead {
  position: sticky; top: 0; z-index: 50;
  background: rgba(245, 241, 232, 0.94);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--rule);
}

.masthead__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; min-height: 4.5rem;
}

.wordmark {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(0.95rem, 1.7vw, 1.15rem);
  letter-spacing: 0.24em;
  color: var(--crimson);
  text-decoration: none;
  white-space: nowrap;
}
.wordmark .amp { font-style: italic; letter-spacing: 0.1em; }

.nav { display: flex; gap: clamp(1rem, 2.6vw, 2.25rem); align-items: center; }

.nav a {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--ink-soft);
  text-decoration: none;
  padding-block: 0.4rem;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.nav a:hover { color: var(--crimson); border-bottom-color: var(--crimson); }
.nav a[aria-current="page"] { color: var(--crimson); border-bottom-color: var(--rule); }

@media (max-width: 40rem) {
  .masthead__inner { flex-direction: column; align-items: flex-start; padding-block: 1rem; gap: 0.75rem; }
  .nav { flex-wrap: wrap; gap: 1rem 1.25rem; }
}

/* ---------------------------------------------- type */

.eyebrow {
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--crimson);
  margin: 0 0 1.5rem;
}
.eyebrow--quiet { color: var(--ink-soft); font-weight: 500; }

h1, h2, h3 { font-family: var(--display); font-weight: 400; color: var(--ink); margin: 0; }

h1 {
  font-size: clamp(2.4rem, 6.2vw, 4.4rem);
  line-height: 1.06;
  letter-spacing: -0.015em;
}

h2 {
  font-size: clamp(1.65rem, 3.4vw, 2.5rem);
  line-height: 1.16;
  margin-bottom: 1.5rem;
}

h3 {
  font-family: var(--body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--crimson);
  margin-bottom: 0.75rem;
}

p { margin: 0 0 1.25rem; max-width: var(--measure); }
p:last-child { margin-bottom: 0; }

.lede {
  font-size: clamp(1.05rem, 1.8vw, 1.22rem);
  line-height: 1.62;
  color: var(--ink);
}

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

.small {
  font-size: 0.82rem;
  line-height: 1.65;
  color: var(--ink-soft);
}

.rule-short {
  width: 3.5rem; height: 1px;
  background: var(--crimson);
  border: 0; margin: 2rem 0;
}

/* ---------------------------------------------- hero */

.hero { position: relative; overflow: hidden; padding-block: clamp(4rem, 12vw, 9rem); }

.hero__mark {
  position: absolute;
  right: -6vw; top: 50%;
  transform: translateY(-48%);
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(18rem, 38vw, 38rem);
  line-height: 0.72;
  color: var(--crimson);
  opacity: 0.07;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

.hero__inner { position: relative; z-index: 1; }

.hero p { max-width: 32rem; }
@media (max-width: 52rem) { .hero__mark { display: none; } }

/* ---------------------------------------------- links and actions */

.link {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--crimson);
  text-decoration: none;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--rule);
  transition: border-color 0.25s ease, color 0.25s ease;
}
.link:hover { border-bottom-color: var(--crimson); color: var(--crimson-deep); }

.link-row { display: flex; flex-wrap: wrap; gap: 2rem; margin-top: 2.5rem; }

.inline-link {
  color: var(--crimson);
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
  transition: border-color 0.2s ease;
}
.inline-link:hover { border-bottom-color: var(--crimson); }

/* ---------------------------------------------- columns */

.cols {
  display: grid;
  gap: clamp(2rem, 4vw, 3.5rem);
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
}

.col { border-top: 1px solid var(--rule); padding-top: 1.5rem; }
.col p { margin-bottom: 0; }

.split {
  display: grid;
  gap: clamp(2rem, 5vw, 5rem);
  grid-template-columns: minmax(0, 0.55fr) minmax(0, 2fr);
  align-items: start;
}
@media (max-width: 52rem) { .split { grid-template-columns: 1fr; gap: 1rem; } }

/* ---------------------------------------------- process rail */

.process { list-style: none; margin: 0; padding: 0; position: relative; }

.process::before {
  content: "";
  position: absolute;
  left: 0.5rem; top: 0.6rem; bottom: 0.6rem;
  width: 1px; background: var(--rule);
}

.process li {
  position: relative;
  padding-left: 2.6rem;
  padding-bottom: 2.25rem;
}
.process li:last-child { padding-bottom: 0; }

.process li::before {
  content: attr(data-step);
  position: absolute;
  left: 0; top: 0.15rem;
  width: 1.05rem; height: 1.05rem;
  background: var(--cream);
  color: var(--crimson);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  display: flex; align-items: center; justify-content: center;
}

.process h3 { margin-bottom: 0.4rem; }
.process p { margin-bottom: 0; }

/* ---------------------------------------------- glyph grid */

.glyphs {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
}
@media (max-width: 44rem) { .glyphs { grid-template-columns: repeat(3, 1fr); } }

.glyph {
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  aspect-ratio: 1 / 1.15;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  color: var(--crimson);
  transition: background-color 0.35s ease;
}
.glyph:hover { background: rgba(122, 20, 32, 0.04); }

.glyph__mark {
  font-family: var(--display);
  font-size: clamp(1.6rem, 4vw, 2.5rem);
  line-height: 1;
}

.glyph__label {
  font-size: 0.56rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--ink-soft);
  text-align: center;
  padding-inline: 0.4rem;
}

/* ---------------------------------------------- terms list */

.terms { margin: 0; }
.terms > div {
  display: grid;
  grid-template-columns: minmax(0, 9.5rem) minmax(0, 1fr);
  gap: 1rem clamp(1.5rem, 4vw, 3rem);
  padding-block: 1.5rem;
  border-top: 1px solid var(--rule-faint);
}
.terms > div:first-child { border-top: 1px solid var(--rule); }
.terms dt {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--crimson);
  padding-top: 0.2rem;
}
.terms dd { margin: 0; }
.terms dd p { margin-bottom: 0; max-width: 38rem; }
@media (max-width: 54rem) { .terms > div { grid-template-columns: 1fr; gap: 0.4rem; } }

/* ---------------------------------------------- contact */

.contact-lines { margin: 0 0 2.5rem; }
.contact-lines a {
  font-family: var(--display);
  font-size: clamp(1.15rem, 2.6vw, 1.75rem);
  color: var(--crimson);
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
  word-break: break-word;
  transition: border-color 0.2s ease;
}
.contact-lines a:hover { border-bottom-color: var(--crimson); }

.field { margin-bottom: 1.5rem; }
.field label {
  display: block;
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 0.5rem;
}
.field input, .field textarea {
  width: 100%;
  font-family: var(--body);
  font-size: 0.95rem;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--rule);
  padding: 0.6rem 0;
  transition: border-color 0.2s ease;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-bottom-color: var(--crimson);
}
.field textarea { resize: vertical; min-height: 6rem; line-height: 1.6; }

.submit {
  font-family: var(--body);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--cream);
  background: var(--crimson);
  border: 0;
  padding: 1rem 2.25rem;
  cursor: pointer;
  transition: background-color 0.2s ease;
}
.submit:hover { background: var(--crimson-deep); }

.form-note { margin-top: 1.25rem; }

/* ---------------------------------------------- footer */

.foot {
  border-top: 1px solid var(--rule);
  padding-block: clamp(2.5rem, 5vw, 4rem);
}

.foot__grid {
  display: grid;
  gap: 2rem clamp(2rem, 5vw, 4rem);
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  margin-bottom: 3rem;
}

.foot__grid h3 { margin-bottom: 1rem; }

.foot__links { list-style: none; margin: 0; padding: 0; }
.foot__links li { margin-bottom: 0.55rem; }
.foot__links a {
  font-size: 0.85rem;
  color: var(--ink-soft);
  text-decoration: none;
  transition: color 0.2s ease;
}
.foot__links a:hover { color: var(--crimson); }

.foot__base {
  display: flex; flex-wrap: wrap; justify-content: space-between;
  gap: 1rem; padding-top: 1.75rem;
  border-top: 1px solid var(--rule-faint);
}

.motto {
  font-family: var(--display);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--crimson);
  margin: 0;
}

.foot__base p { margin: 0; font-size: 0.75rem; color: var(--ink-soft); }

/* ---------------------------------------------- reveal */

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.7s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}
