/* AdCrest — The Ridgeline (light) */
:root {
  --chalk: #FAF9F5;
  --sand: #EFEAE0;
  --graphite: #14181C;
  --ochre: #C08A2E;
  --aubergine: #3B2A4A;
  --stone: #5C5852;
  --graphite-soft: rgba(20, 24, 28, 0.9);
  --ochre-dark: #9A6A1E;
  --aubergine-dark: #2D1F3A;
  --chalk-muted: rgba(250, 249, 245, 0.92);
  --shadow-soft: 0 18px 48px rgba(20, 24, 28, 0.08);
  --shadow-card: 0 12px 32px rgba(20, 24, 28, 0.06);
  --font-display: "Newsreader", Georgia, serif;
  --font-body: "Instrument Sans", system-ui, sans-serif;
  --font-mono: "Spline Sans Mono", ui-monospace, monospace;
  --section-pad: clamp(4rem, 8vw, 8.75rem);
  --measure: 42rem;
  --transition: 0.35s ease;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--graphite);
  background: var(--chalk);
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  content-visibility: auto;
}

a {
  color: currentColor;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover { opacity: 0.82; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 0.75em;
}

h1 { font-size: clamp(2.75rem, 5.5vw, 5rem); }
h2 { font-size: clamp(2rem, 3.5vw, 2.85rem); }
h3 { font-size: clamp(1.35rem, 2vw, 1.6rem); font-weight: 600; }

p { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }

ul, ol { margin: 0 0 1.15em; padding-left: 1.35em; }
li { margin-bottom: 0.45em; }

.surface-chalk { background: var(--chalk); color: var(--graphite); }
.surface-sand { background: var(--sand); color: var(--graphite); }
.surface-graphite { background: var(--graphite); color: var(--chalk); }
.surface-aubergine { background: var(--aubergine); color: var(--chalk); }
.surface-ochre { background: var(--ochre); color: var(--chalk); }

.ridge-texture {
  position: relative;
  isolation: isolate;
}
.ridge-texture::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.035;
  background-image: repeating-linear-gradient(
    135deg,
    transparent 0,
    transparent 3px,
    rgba(20, 24, 28, 0.025) 3px,
    rgba(20, 24, 28, 0.025) 4px
  );
}

.container {
  width: min(100% - 2.5rem, 72rem);
  margin-inline: auto;
}

.container--wide {
  width: min(100% - 2.5rem, 84rem);
  margin-inline: auto;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ochre-dark);
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.eyebrow__mark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--graphite);
  letter-spacing: 0.04em;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.45rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 2px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: filter var(--transition), box-shadow var(--transition), transform var(--transition);
}

.btn--primary {
  background: var(--ochre-dark);
  color: var(--chalk);
  border-color: var(--ochre-dark);
}
.btn--primary:hover {
  filter: brightness(0.94);
  box-shadow: var(--shadow-soft);
  opacity: 1;
}

.btn--secondary {
  background: transparent;
  color: var(--graphite);
  border-color: var(--graphite);
}
.btn--secondary:hover {
  box-shadow: var(--shadow-card);
  opacity: 1;
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.5rem;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: background var(--transition), box-shadow var(--transition), border-color var(--transition);
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  background: var(--chalk);
  border-bottom-color: rgba(20, 24, 28, 0.12);
  box-shadow: 0 4px 24px rgba(20, 24, 28, 0.04);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
}

.brand__monogram {
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  border: 1px solid rgba(20, 24, 28, 0.15);
  border-radius: 2px;
  background: rgba(250, 249, 245, 0.6);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.site-nav a {
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
}

.site-nav a.is-active {
  text-decoration: underline;
  text-underline-offset: 0.25em;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--graphite);
  color: var(--graphite);
  padding: 0.45rem 0.65rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  cursor: pointer;
}

/* Hero — THE MASTHEAD */
.hero-masthead {
  min-height: 94vh;
  padding-top: 5.5rem;
  padding-bottom: 2rem;
  display: flex;
  flex-direction: column;
}

.hero-masthead__rule {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--graphite);
  margin-bottom: 0;
}

.hero-masthead__edition {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--stone);
}

.hero-masthead__kicker {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: right;
  max-width: 20rem;
  line-height: 1.5;
  color: var(--stone);
}

.hero-masthead__title {
  max-width: 16ch;
  margin-top: 2rem;
  font-size: clamp(2.85rem, 5.8vw, 5.25rem);
}

.hero-masthead__title em {
  font-style: normal;
  color: var(--aubergine-dark);
}

.hero-masthead__deck {
  max-width: 36rem;
  color: var(--graphite-soft);
  margin-top: 1.25rem;
  font-size: 1.1rem;
}

.hero-masthead__pair {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1rem;
  margin-top: 2.5rem;
  align-items: start;
}

.masthead-frame {
  position: relative;
  display: block;
  line-height: 0;
  height: fit-content;
  border: 1px solid rgba(20, 24, 28, 0.18);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.masthead-frame--primary {
  border-bottom: 3px solid var(--ochre);
  align-self: start;
}

.masthead-frame--secondary {
  align-self: end;
  margin-bottom: -1.5rem;
  border-left: 3px solid var(--aubergine);
}

.masthead-frame img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.masthead-frame--primary img { aspect-ratio: 16 / 10; }
.masthead-frame--secondary img { aspect-ratio: 4 / 5; }

.masthead-frame__cap {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  line-height: 1.5;
  padding: 0.65rem 0.85rem;
  background: linear-gradient(transparent, rgba(20, 24, 28, 0.72));
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--chalk);
}

.hero-masthead__trust {
  margin-top: auto;
  padding-top: 2.5rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--stone);
  text-transform: uppercase;
}

/* Pull-quote band */
.pull-band {
  padding-block: clamp(3rem, 6vw, 5rem);
  border-block: 1px solid rgba(20, 24, 28, 0.1);
}

.pull-band__inner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2rem;
  align-items: center;
}

.pull-band__glyph {
  font-family: var(--font-display);
  font-size: clamp(4rem, 8vw, 6rem);
  line-height: 1;
  color: var(--ochre);
  opacity: 0.35;
}

.pull-band__quote {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  line-height: 1.28;
  margin: 0;
  max-width: 28ch;
}

.pull-band__attr {
  margin-top: 1rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--stone);
}

/* Method columns */
.method-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid rgba(20, 24, 28, 0.12);
  margin-top: 2.5rem;
}

.method-col {
  padding: 2rem 1.5rem;
  border-right: 1px solid rgba(20, 24, 28, 0.1);
  background: var(--chalk);
  position: relative;
}
.method-col:last-child { border-right: none; }

.method-col__elev {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  color: var(--ochre-dark);
  margin-bottom: 0.65rem;
}

.method-col__line {
  position: absolute;
  top: 0;
  left: 1.5rem;
  right: 1.5rem;
  height: 2px;
  background: linear-gradient(90deg, var(--ochre), transparent);
  opacity: 0.5;
}

/* Contour stack */
.contour-stack {
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
}

.contour-item {
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 1.25rem;
  padding: 1.75rem 0;
  border-bottom: 1px solid rgba(20, 24, 28, 0.1);
  position: relative;
}

.contour-item:first-child { border-top: 1px solid rgba(20, 24, 28, 0.1); }

.contour-item__index {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--ochre-dark);
  padding-top: 0.2rem;
}

.contour-item__svg {
  position: absolute;
  left: 0;
  top: 50%;
  width: 2rem;
  height: 1px;
  background: var(--aubergine);
  opacity: 0.35;
  transform: translateY(-50%);
}

.contour-item h3 { margin-bottom: 0.45em; font-size: 1.25rem; }
.contour-item p { color: var(--graphite-soft); margin: 0; }

/* Sections */
.section {
  padding-block: var(--section-pad);
}

.section-head {
  max-width: var(--measure);
  margin-bottom: 3rem;
}

.section-head--center {
  text-align: center;
  margin-inline: auto;
}

.card-grid {
  display: grid;
  gap: 1.5rem;
}

.card-grid--3 { grid-template-columns: repeat(3, 1fr); }
.card-grid--2 { grid-template-columns: repeat(2, 1fr); }

.sand-card {
  background: var(--sand);
  border: 1px solid rgba(20, 24, 28, 0.1);
  padding: 2rem;
  box-shadow: var(--shadow-card);
}

.work-teaser {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.work-card {
  border: 1px solid rgba(250, 249, 245, 0.12);
  background: rgba(250, 249, 245, 0.04);
}

.work-card img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
  width: 100%;
}

.work-card__body { padding: 1.5rem; }

.surface-aubergine h2,
.surface-aubergine h3 {
  color: var(--chalk);
}

.surface-aubergine .work-card__body p,
.surface-aubergine p {
  color: var(--chalk-muted);
}

.surface-aubergine .btn--secondary {
  border-color: var(--chalk);
  color: var(--chalk);
}

.surface-aubergine .btn--secondary:hover {
  background: rgba(250, 249, 245, 0.1);
}

.surface-aubergine .eyebrow {
  color: #E8B85A;
}

.surface-aubergine .eyebrow__mark {
  color: var(--chalk);
}

.neighbourhood {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.hours-table {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  width: 100%;
  border-collapse: collapse;
}
.hours-table td {
  padding: 0.45rem 0;
  border-bottom: 1px solid rgba(20, 24, 28, 0.1);
}

.page-hero {
  padding-top: 7rem;
  padding-bottom: 3rem;
}

.page-hero__lead {
  max-width: var(--measure);
  color: var(--graphite-soft);
  font-size: 1.12rem;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.framed-photo {
  border: 1px solid rgba(20, 24, 28, 0.15);
  box-shadow: var(--shadow-card);
}
.framed-photo img { width: 100%; }

.service-block {
  padding: 2.5rem 0;
  border-bottom: 1px solid rgba(20, 24, 28, 0.1);
}
.service-block:first-child { padding-top: 0; }

.faq-list details {
  border-bottom: 1px solid rgba(20, 24, 28, 0.12);
  padding: 1.25rem 0;
}
.faq-list summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 1.05rem;
  list-style: none;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list .faq-answer { margin-top: 0.85rem; color: var(--graphite-soft); }

.form-surface {
  background: var(--sand);
  border: 1px solid rgba(20, 24, 28, 0.12);
  padding: 2rem;
  box-shadow: var(--shadow-card);
}

.form-group { margin-bottom: 1.25rem; }

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 0.4rem;
}

.form-group input:not([type="checkbox"]),
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 0.85rem;
  font-family: var(--font-body);
  font-size: 1rem;
  border: 1px solid rgba(20, 24, 28, 0.2);
  border-radius: 2px;
  background: var(--chalk);
  color: var(--graphite);
}

.form-group textarea { min-height: 9rem; resize: vertical; }

.form-check {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.92rem;
}

.form-check input[type="checkbox"] {
  width: 1.1rem;
  height: 1.1rem;
  margin: 0.2rem 0 0;
  padding: 0;
  flex-shrink: 0;
  accent-color: var(--ochre-dark);
}

.form-group.form-check label,
.form-check label {
  display: block;
  flex: 1;
  font-weight: 400;
  margin-bottom: 0;
  line-height: 1.55;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-notice {
  padding: 1rem 1.25rem;
  background: rgba(192, 138, 46, 0.12);
  border: 1px solid rgba(192, 138, 46, 0.35);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.legal-prose {
  max-width: 46rem;
}
.legal-prose h2 {
  font-size: 1.45rem;
  margin-top: 2.5rem;
}
.legal-prose h2:first-child { margin-top: 0; }

.disclaimer-box {
  margin-top: 2rem;
  padding: 1.5rem;
  border: 1px solid rgba(20, 24, 28, 0.12);
  background: rgba(239, 234, 224, 0.45);
  font-size: 0.92rem;
}

.site-footer {
  padding: 4rem 0 2rem;
  border-top: 1px solid rgba(250, 249, 245, 0.12);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.footer-grid a { text-decoration: none; display: block; margin-bottom: 0.35rem; font-size: 0.92rem; }

.footer-meta {
  font-size: 0.85rem;
  color: rgba(250, 249, 245, 0.88);
  line-height: 1.6;
}

.footer-disclaimer {
  font-size: 0.78rem;
  color: rgba(250, 249, 245, 0.78);
  line-height: 1.55;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(250, 249, 245, 0.12);
}

.footer-copy {
  margin-top: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: rgba(250, 249, 245, 0.7);
}

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  padding: 1.25rem;
  background: var(--graphite);
  color: var(--chalk);
  box-shadow: 0 -8px 32px rgba(20, 24, 28, 0.15);
  transform: translateY(100%);
  transition: transform 0.4s ease;
}
.cookie-banner.is-visible { transform: translateY(0); }

.cookie-banner__inner {
  width: min(100% - 2rem, 72rem);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.5rem;
  align-items: center;
}

.cookie-banner p { font-size: 0.88rem; margin: 0; }

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.cookie-actions button {
  padding: 0.55rem 1rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 2px;
  cursor: pointer;
  border: 1px solid rgba(250, 249, 245, 0.35);
  background: transparent;
  color: var(--chalk);
}
.cookie-actions button:hover { background: rgba(250, 249, 245, 0.08); }
.cookie-actions .btn-accept { background: var(--ochre-dark); border-color: var(--ochre-dark); }

.cookie-custom {
  display: none;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(250, 249, 245, 0.15);
}
.cookie-custom.is-open { display: block; }

.cookie-custom label {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
}

.error-page {
  min-height: 70vh;
  display: flex;
  align-items: center;
  padding-top: 6rem;
}

.js .reveal {
  opacity: 1;
  transform: none;
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.js .reveal:not(.is-visible) {
  opacity: 0.001;
  transform: translateY(16px);
}

@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;
  }
  .js .reveal:not(.is-visible) {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 960px) {
  .card-grid--3,
  .card-grid--2,
  .method-grid,
  .pull-band__inner,
  .work-teaser,
  .neighbourhood,
  .split,
  .footer-grid,
  .hero-masthead__pair {
    grid-template-columns: 1fr;
  }

  .masthead-frame--secondary {
    margin-bottom: 0;
  }

  .method-col { border-right: none; border-bottom: 1px solid rgba(20, 24, 28, 0.1); }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--chalk);
    padding: 1rem 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(20, 24, 28, 0.12);
    box-shadow: var(--shadow-soft);
  }
  .site-nav.is-open { display: flex; }
  .nav-toggle { display: block; }
  .header-inner { position: relative; }

  .hero-masthead { min-height: 82vh; }
  .hero-masthead__rule { flex-direction: column; align-items: flex-start; }
  .hero-masthead__kicker { text-align: left; max-width: none; }

  .cookie-banner__inner { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .masthead-frame--primary img { aspect-ratio: 4 / 3; }
}
