/* Contact page. The hero photograph stays dark in both themes (like the
   Approach hero); the paper cards stay paper. The page canvas, kickers, and
   the table sketch flip with the theme. All copy is HTML overlaid on the
   backgrounds so it stays editable. */

/* ---------- Hero ---------- */

body {
  background: #0f0d0b;
}

.contact-page-hero {
  position: relative;
  overflow: hidden;
  min-height: clamp(440px, 36vw, 560px);
  display: flex;
  align-items: flex-start;
  padding: clamp(7rem, 10vw, 9rem) var(--page-edge) 4rem;
  background-color: #0f0d0b;
  background-image: none !important;
  isolation: isolate;
}
.contact-page-hero::before {
  content: none !important;
  background: none !important;
}
.contact-page-hero-art {
  background: none !important;
}
.contact-page-hero-art {
  position: absolute;
  inset: 0;
  width: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.contact-page-hero-art img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: right center;
}
.contact-page-hero-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(10, 8, 6, .85) 0%, rgba(10, 8, 6, .55) 32%, transparent 55%);
}
.contact-page-hero-copy { position: relative; z-index: 1; max-width: 560px; }
.contact-page-hero-copy .section-kicker { color: var(--orange); }
.contact-page-hero-copy h1 {
  margin: .6rem 0 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.2rem, 3.6vw, 3rem);
  line-height: 1.1;
  color: #f2e8d6;
  text-shadow: 0 2px 14px rgba(0, 0, 0, .5);
}
.contact-page-hero-rule { display: block; width: 2.6rem; height: 3px; margin: 1.5rem 0 1.2rem; background: var(--orange); }
.contact-page-hero-body { margin: 0; max-width: 34rem; color: #f2e8d6; font-size: 1rem; line-height: 1.65; text-shadow: 0 1px 10px rgba(0, 0, 0, .5); }

/* ---------- How we work together ---------- */

.how-we-work {
  padding: 0;
  background: #0f0d0b;
}

.how-we-work-paper {
  position: relative;
  width: 100%;
  margin: 0;
  overflow: hidden;
  color: #17130e;
  background-color: #ead7b7;
  background-image:
    radial-gradient(ellipse at 14% 24%, rgba(82, 57, 30, .055), transparent 38%),
    radial-gradient(ellipse at 82% 72%, rgba(255, 255, 255, .12), transparent 42%),
    linear-gradient(104deg, rgba(255, 255, 255, .05), rgba(84, 57, 28, .025));
}

.how-we-work-paper::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .28;
  background-image:
    repeating-linear-gradient(7deg, transparent 0 11px, rgba(78, 52, 27, .018) 12px 13px),
    repeating-linear-gradient(97deg, transparent 0 17px, rgba(255, 255, 255, .025) 18px 19px);
}

.how-we-work-content {
  position: relative;
  z-index: 1;
  width: min(var(--max), calc(100% - (2 * var(--page-edge))));
  margin: 0 auto;
  padding: clamp(4.5rem, 7vw, 6.5rem) 0 clamp(3rem, 5vw, 4.75rem);
}

.how-we-work-intro {
  max-width: 720px;
}

.how-we-work-intro .section-kicker {
  margin-bottom: .8rem;
  color: #7b3b18;
}

.how-we-work-intro h2 {
  margin: 0 0 1.2rem;
  max-width: 680px;
  font-family: var(--serif);
  font-size: clamp(2rem, 3.8vw, 3.25rem);
  font-weight: 500;
  line-height: 1.12;
  color: #17130e;
}

.how-we-work-intro > p:last-child {
  margin: 0;
  max-width: 650px;
  font-size: 1rem;
  line-height: 1.7;
}

.work-moments {
  position: relative;
  margin-top: clamp(3.25rem, 6vw, 5.25rem);
}

.work-moments-connector {
  position: absolute;
  top: 1rem;
  left: 4%;
  width: 92%;
  height: 5rem;
  overflow: visible;
  pointer-events: none;
}

.work-moments-connector path {
  fill: none;
  stroke: rgba(58, 47, 34, .46);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-dasharray: 3 7;
}

.work-moments ol {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.work-moment {
  min-width: 0;
}

.work-moment-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 4.75rem;
  height: 4.75rem;
  margin: 0 0 1.4rem;
  background: #ead7b7;
  border: 1px solid rgba(58, 47, 34, .56);
  border-radius: 50%;
  color: #7b3b18;
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: .04em;
  box-shadow: 0 0 0 .65rem #ead7b7;
}

.work-moment h3 {
  margin: 0 0 .75rem;
  max-width: 17rem;
  font-family: var(--serif);
  font-size: clamp(1.25rem, 1.8vw, 1.55rem);
  font-weight: 600;
  line-height: 1.25;
  color: #21190f;
}

.work-moment p {
  margin: 0;
  max-width: 19rem;
  font-size: .92rem;
  line-height: 1.65;
  color: #403426;
}

@media (max-width: 900px) {
  .work-moments-connector {
    display: none;
  }

  .work-moments ol {
    grid-template-columns: 1fr;
    gap: 2.25rem;
  }

  .work-moment {
    position: relative;
    display: grid;
    grid-template-columns: 4.5rem minmax(0, 1fr);
    column-gap: 1.25rem;
    padding-bottom: .25rem;
  }

  .work-moment:not(:last-child)::after {
    content: "";
    position: absolute;
    left: 2.2rem;
    top: 4.5rem;
    bottom: -1.75rem;
    border-left: 1px dashed rgba(58, 47, 34, .42);
    transform: rotate(-1deg);
  }

  .work-moment-mark {
    grid-row: 1 / span 2;
    width: 4.5rem;
    height: 4.5rem;
    margin: 0;
  }

  .work-moment h3,
  .work-moment p {
    max-width: 34rem;
  }
}

@media (max-width: 620px) {
  .how-we-work {
    padding-inline: 0;
  }

  .how-we-work-paper {
  }

  .how-we-work-content {
    padding-inline: 0;
  }
}

/* ---------- Conversation paths ---------- */

.contact-paths {
  width: 100%;
  margin: 0;
  padding: clamp(2.5rem, 5vw, 4rem) var(--page-edge) clamp(3rem, 5vw, 4.5rem);
  background: linear-gradient(180deg, #0f0d0b 0%, #0b0907 100%);
  border-top: none;
}
.paths-heading,
.paths-sub,
.paths-grid {
  width: min(100%, var(--max));
  margin-inline: auto;
}
.paths-heading {
  margin-top: 0;
  margin-bottom: .65rem;
  color: var(--cream);
  font-family: var(--serif);
  font-size: clamp(2rem, 3.8vw, 3.25rem);
  font-weight: 500;
  line-height: 1.12;
}
.paths-sub {
  margin-top: 0;
  margin-bottom: 2.6rem;
  color: var(--cream);
  font-size: .95rem;
}

.paths-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: clamp(1.25rem, 2.5vw, 2.25rem);
}
.path-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  min-height: clamp(330px, 29vw, 410px);
  padding: clamp(1.75rem, 2.8vw, 2.4rem);
  overflow: hidden;
  color: #2a2015;
  background-color: #e6d2ad;
  background-image:
    radial-gradient(ellipse at 16% 18%, rgba(255, 255, 255, .2), transparent 36%),
    radial-gradient(ellipse at 88% 82%, rgba(97, 65, 31, .08), transparent 42%),
    repeating-linear-gradient(8deg, transparent 0 12px, rgba(78, 52, 27, .018) 13px 14px),
    repeating-linear-gradient(98deg, transparent 0 18px, rgba(255, 255, 255, .035) 19px 20px);
  border: 1px solid rgba(93, 64, 32, .2);
  border-radius: 2px;
  box-shadow: 0 16px 28px rgba(0, 0, 0, .24);
}
.path-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 28px rgba(92, 59, 26, .07);
}
.paths-grid .path-card:nth-child(n) {
  aspect-ratio: auto;
  background-image:
    radial-gradient(ellipse at 16% 18%, rgba(255, 255, 255, .2), transparent 36%),
    radial-gradient(ellipse at 88% 82%, rgba(97, 65, 31, .08), transparent 42%),
    repeating-linear-gradient(8deg, transparent 0 12px, rgba(78, 52, 27, .018) 13px 14px),
    repeating-linear-gradient(98deg, transparent 0 18px, rgba(255, 255, 255, .035) 19px 20px);
  transform: none;
}
[data-theme="light"] .path-card {
  box-shadow: 0 14px 24px rgba(70, 50, 25, .22);
}

.path-pin,
.path-tape {
  display: none;
}

.path-card h2 {
  position: relative;
  z-index: 1;
  min-height: 3.75em;
  margin: 0 0 .9rem;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.35rem, 1.9vw, 1.65rem);
  line-height: 1.25;
  color: #2a2015;
}
.path-rule {
  position: relative;
  z-index: 1;
  display: block;
  width: 2.2rem;
  height: 2px;
  margin-bottom: 1rem;
  background: var(--action-fill);
  opacity: .85;
}
.path-card p {
  position: relative;
  z-index: 1;
  margin: 0 0 1.4rem;
  font-size: .92rem;
  line-height: 1.6;
}
.path-link {
  position: relative;
  z-index: 1;
  margin-top: auto;
  color: var(--action-fill);
  text-decoration: none;
  font-weight: 700;
  font-size: .95rem;
}
.path-link:hover,
.path-link:focus-visible {
  text-decoration: underline;
}
.path-link span {
  display: inline-block;
  transition: transform .2s;
}
.path-link:hover span {
  transform: translateX(4px);
}

/* ---------- Closer ---------- */

.contact-closer {
  width: 100%;
  margin: 0;
  padding: clamp(2rem, 4vw, 3.5rem) var(--page-edge) clamp(2.5rem, 5vw, 4rem);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  border-top: none;
  background: linear-gradient(180deg, #0f0d0b 0%, #0b0907 100%);
}
.closer-sketch {
  width: clamp(180px, 18vw, 235px);
  flex-shrink: 0;
  mix-blend-mode: screen;
  filter: contrast(1.35) brightness(1.08);
}
.closer-sketch-light {
  display: none;
  mix-blend-mode: multiply;
  filter: contrast(1.25) brightness(1.05);
}
[data-theme="light"] .closer-sketch { display: none; }
[data-theme="light"] .closer-sketch-light { display: block; }

.closer-copy { flex: 0 1 360px; }
.closer-title { margin: 0 0 1rem; font-family: var(--serif); font-weight: 500; font-size: clamp(1.5rem, 2.6vw, 2.1rem); line-height: 1.3; color: var(--cream); }
.closer-title em { color: var(--orange); }
.closer-body { margin: 0; color: var(--muted); font-size: .95rem; line-height: 1.6; }

.closer-note {
  flex-shrink: 0;
  width: clamp(260px, 26vw, 330px);
  padding: 1.5rem 1.8rem 1.7rem;
  background-image: url('assets/contact-ps.png');
  background-size: 100% 100%;
  transform: rotate(-1.6deg);
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, .3));
  color: #33240f;
  font-family: "Caveat", cursive;
}
.closer-note-ps { display: inline-block; margin: 0 0 .5rem; padding-bottom: .1rem; border-bottom: 2px solid var(--action-fill); font-size: 1.5rem; font-weight: 600; }
.closer-note p:not(.closer-note-ps) { margin: 0 0 .6rem; font-size: 1.25rem; font-weight: 500; line-height: 1.25; }
.closer-note p:last-child { margin-bottom: 0; }

/* ---------- Responsive ---------- */

@media (max-width: 1050px) {
  .paths-grid { gap: 1.25rem; }
  .path-card { min-height: 340px; padding: 1.6rem; }
  .path-card h2 { font-size: 1.3rem; }
  .contact-closer { flex-wrap: wrap; }
  .closer-copy { min-width: 240px; }
}

@media (max-width: 780px) {
  .contact-page-hero-art img { object-position: 68% center; }
  .paths-grid { grid-template-columns: 1fr; max-width: 520px; }
  .path-card { min-height: 300px; padding: 1.75rem; }
  .path-card h2 { min-height: 0; font-size: 1.4rem; }
  .contact-closer { flex-direction: column; align-items: center; text-align: center; }
  .closer-copy { flex: none; width: min(100%, 360px); }
  .closer-note { transform: rotate(-1deg); }
}
