/* Contact & Fit Call.
   Moonlit sea imagery throughout, so the cold branch per the Tide Rule.
   Built from sections/contact/BUILD.md + design-reference.png. */

.ct-page {
  --surface: #0b1113; --surface-deep: #060b0d;
  --cream: #f4ece0;
  --gutter: clamp(26px, 4.3vw, 86px);
  --nav-menu-ground: rgba(8, 20, 22, .97);
  /* the frame's edge pins sit 7px outside the rule; keep the rule at least 8px
     in so they never cross the screen edge on a phone */
  --frame-inset: max(1.2vw, 8px);
  --ct-overscan: 96px;   /* must exceed the parallax drift in contact-parallax.js */
  background: var(--surface);
}
.ct-page .deco-frame { inset: var(--frame-inset); }
/* Diamond Pin Rule: pins take the surface they sit in */
.ct-page .ct-hero .deco-frame i { background: var(--surface); }

/* ---------- Head: the photograph is the ground ---------- */
.ct-hero {
  position: relative; isolation: isolate;
  display: flex; align-items: flex-end;
  min-height: clamp(560px, 88vh, 920px);
  padding: calc(1.8vh + 78px + clamp(24px, 4vh, 56px)) var(--gutter) clamp(34px, 5vh, 72px);
}
.ct-hero-ground {
  position: absolute; inset: var(--frame-inset); z-index: -2;
  overflow: hidden; background: var(--surface-deep);
}
/* overhangs top and bottom so the drift never reveals an edge */
.ct-hero-art {
  position: absolute; left: 0; width: 100%;
  top: calc(-1 * var(--ct-overscan)); height: calc(100% + 2 * var(--ct-overscan));
  object-fit: cover; object-position: 58% 52%;
  transform: translate3d(0, var(--ct-drift, 0px), 0);
  will-change: transform;
}
@media (prefers-reduced-motion: reduce) {
  .ct-hero-art { transform: none; }
}
/* Wash, Not Panel: a directional gradient carries the copy, never a glass pane */
.ct-hero::before {
  content: ""; position: absolute; inset: var(--frame-inset); z-index: -1; pointer-events: none;
  background:
    linear-gradient(100deg, rgba(6,11,13,.95) 0%, rgba(6,11,13,.82) 34%, rgba(6,11,13,.3) 68%, rgba(6,11,13,.12) 100%),
    linear-gradient(180deg, rgba(6,11,13,.72) 0%, rgba(6,11,13,0) 26%);
}

.ct-hero-grid {
  position: relative; z-index: 2; width: 100%;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, clamp(360px, 34vw, 520px));
  gap: clamp(30px, 4vw, 76px); align-items: end;
}

.ct-intro .deco-eyebrow { margin-bottom: clamp(16px, 2.4vh, 32px); }

.ct-title {
  font: 900 clamp(40px, 5vw, 96px)/.92 var(--display);
  letter-spacing: -.042em; word-spacing: .05em; color: var(--ink);
}
.ct-title span { display: block; }

.ct-sub {
  margin-top: clamp(14px, 2.2vh, 30px); max-width: 20em;
  font: 300 clamp(18px, 1.5vw, 30px)/1.42 var(--serif); color: var(--ink);
}
.ct-body {
  margin-top: clamp(12px, 1.8vh, 22px); max-width: 26em;
  font: 300 clamp(15px, 1.12vw, 21px)/1.56 var(--serif); color: var(--cream);
}
.ct-strap {
  margin-top: clamp(18px, 2.8vh, 40px);
  font: 400 clamp(10px, .82vw, 15px)/1 var(--mono);
  letter-spacing: .26em; text-transform: uppercase; color: var(--cream);
}

/* ---- the fit-call plate: an opaque card, never a glass panel ---- */
.ct-fit {
  position: relative;
  padding: clamp(22px, 2.4vw, 44px);
  background: var(--surface-deep); border: 1px solid var(--accent-line);
}
.ct-fit u {
  position: absolute; width: 16px; height: 16px; border: 1px solid var(--accent); text-decoration: none;
}
.ct-fit u.tl { top: 6px; left: 6px; border-right: 0; border-bottom: 0; }
.ct-fit u.tr { top: 6px; right: 6px; border-left: 0; border-bottom: 0; }
.ct-fit u.bl { bottom: 6px; left: 6px; border-right: 0; border-top: 0; }
.ct-fit u.br { bottom: 6px; right: 6px; border-left: 0; border-top: 0; }

.ct-fit-head {
  display: flex; align-items: center; gap: 12px;
  font: 500 clamp(10px, .82vw, 15px)/1 var(--mono);
  letter-spacing: .26em; text-transform: uppercase; color: var(--accent);
}
.ct-fit-head b { flex: 0 0 auto; width: 9px; height: 9px; background: var(--accent); }
.ct-fit-head i { flex: 0 0 34px; height: 1px; background: var(--accent-line); }
.ct-num { color: var(--cream); }

.ct-fit-grid {
  display: grid; grid-template-columns: clamp(96px, 9vw, 150px) minmax(0, 1fr);
  gap: clamp(16px, 1.8vw, 30px); align-items: center;
  margin-top: clamp(18px, 2.6vh, 34px);
}
.ct-compass { display: block; width: 100%; height: auto; color: var(--accent); }

.ct-fit-title {
  font: 700 clamp(19px, 1.62vw, 32px)/1.22 "Playfair Display", Georgia, serif;
  color: var(--ink); text-wrap: balance;
}
.ct-nb { white-space: nowrap; }   /* "30-minute" must not break at its hyphen */
.ct-fit-body {
  margin-top: clamp(8px, 1.2vh, 14px);
  font: 300 clamp(14px, 1.04vw, 19px)/1.5 var(--serif); color: var(--cream);
}

.ct-fit-cta { display: flex; justify-content: center; margin-top: clamp(20px, 3vh, 36px); }
/* the page's single primary action, so it carries Tiffany like the nav plate */
.ct-fit-cta { border-color: var(--action); }
.ct-fit-cta svg { color: var(--action); }
.ct-fit-cta:hover { background: rgba(134, 209, 205, .12); }

.ct-fit-note {
  margin-top: clamp(12px, 1.8vh, 20px); text-align: center;
  font: 400 clamp(9px, .74vw, 13px)/1 var(--mono);
  letter-spacing: .24em; text-transform: uppercase; color: var(--accent);
}

/* ---- margin rail: the instrument panel down the right edge ---- */
.ct-rail {
  position: absolute; z-index: 2;
  right: calc(var(--frame-inset) + clamp(12px, 1.3vw, 24px)); top: 50%; transform: translateY(-50%);
  width: 72px; display: grid; gap: clamp(26px, 5vh, 64px);
  font: 400 11px/1.55 var(--mono);
  letter-spacing: .2em; text-transform: uppercase; color: var(--accent); opacity: .75;
}
/* the hero keeps a lane clear on the right so the rail never crowds the plate */
@media (min-width: 1281px) {
  .ct-hero { padding-right: calc(var(--gutter) + 92px); }
}

/* ---------- The note ---------- */
.ct-form { padding: clamp(36px, 6vh, 86px) var(--gutter) clamp(52px, 9vh, 120px); }

.ct-plate {
  position: relative;
  padding: clamp(24px, 3.2vw, 62px);
  background: var(--surface-deep); border: 1px solid var(--accent-line);
}
.ct-plate u {
  position: absolute; width: 18px; height: 18px; border: 1px solid var(--accent); text-decoration: none;
}
.ct-plate u.tl { top: 6px; left: 6px; border-right: 0; border-bottom: 0; }
.ct-plate u.tr { top: 6px; right: 6px; border-left: 0; border-bottom: 0; }
.ct-plate u.bl { bottom: 6px; left: 6px; border-right: 0; border-top: 0; }
.ct-plate u.br { bottom: 6px; right: 6px; border-left: 0; border-top: 0; }

.ct-plate-head {
  display: flex; align-items: center; gap: clamp(14px, 2vw, 34px); flex-wrap: wrap;
  margin-bottom: clamp(24px, 3.4vh, 46px);
}
.ct-plate-head .deco-eyebrow { flex: 1 1 320px; margin-bottom: 0; }
.ct-req {
  font: 400 clamp(9px, .74vw, 13px)/1 var(--mono);
  letter-spacing: .2em; text-transform: uppercase; color: var(--cream); opacity: .7;
}
.ct-req b { color: var(--accent); }

/* ---- fields ---- */
.ct-fields {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 32px);
}
.ct-field { display: grid; gap: 10px; align-content: start; }
.ct-field--wide { grid-column: span 2; }

.ct-field label {
  font: 400 clamp(9px, .76vw, 13px)/1.2 var(--mono);
  letter-spacing: .22em; text-transform: uppercase; color: var(--cream);
}
.ct-field label b { color: var(--accent); }
.ct-field label span { opacity: .6; }

.ct-field input,
.ct-field textarea,
.ct-field select {
  width: 100%; display: block;
  padding: clamp(12px, 1.5vh, 18px) clamp(12px, 1vw, 18px);
  background: var(--surface); border: 1px solid var(--accent-line); border-radius: 0;
  font: 300 clamp(15px, 1.06vw, 19px)/1.4 var(--serif); color: var(--ink);
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.ct-field textarea { resize: vertical; min-height: clamp(120px, 16vh, 190px); }
.ct-field ::placeholder { color: rgba(244, 236, 224, .38); }
.ct-field input:hover,
.ct-field textarea:hover,
.ct-field select:hover { border-color: var(--accent); }
.ct-field input:focus-visible,
.ct-field textarea:focus-visible,
.ct-field select:focus-visible {
  outline: 2px solid var(--action); outline-offset: 2px; border-color: var(--action);
}

/* select: square, with a drawn chevron rather than the platform control */
.ct-select { position: relative; display: block; }
.ct-select select { appearance: none; -webkit-appearance: none; padding-right: 44px; cursor: pointer; }
.ct-select::after {
  content: ""; position: absolute; right: 16px; top: 50%; width: 11px; height: 7px; margin-top: -3px;
  background: var(--accent); pointer-events: none;
  clip-path: polygon(0 0, 50% 100%, 100% 0, 88% 0, 50% 76%, 12% 0);
}
.ct-select select option { background: var(--surface); color: var(--ink); }

/* ---- send ---- */
.ct-plate-foot {
  display: flex; align-items: center; gap: clamp(18px, 2.6vw, 44px); flex-wrap: wrap;
  margin-top: clamp(24px, 3.4vh, 46px);
}
.ct-plate-foot .bp-cta { margin-top: 0; cursor: pointer; background: transparent; }
.ct-foot-note {
  flex: 1 1 300px; padding-left: clamp(18px, 2.6vw, 44px);
  border-left: 1px solid var(--accent-line);
  font: 300 clamp(14px, 1.02vw, 19px)/1.5 var(--serif); color: var(--cream); max-width: 34em;
}
/* ---------- Shared shell responsive ----------
   Copied from blueprint-page.css: these nav and footer rules live per page, not
   in blueprint-shared.css. Without them the nav plate sits off-screen on a phone. */
/* The nav spark was removed from contact.html on 2026-10-09, so the rule that
   hid it below 1180px went with it. It was purely ornamental here: unlike the
   works, journal and article navs, this one never gave it margin-right:auto,
   and measuring the bar at 1600, 1300 and 1100 showed nothing moved without it. */
@media (max-width: 1024px) {
  .ct-page .nav { padding-left: 32px; background: rgba(8, 20, 22, .82); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
  .ct-page .foot-grid { grid-template-columns: 1fr 1fr; gap: 5vh 6vw; }
  .ct-page .foot-col + .foot-col { border-left: 0; padding-left: 0; }
  .ct-page .foot-col:first-child { grid-column: 1 / -1; }
  .ct-page .foot-sub { max-width: none; }
  .ct-page .foot-base { flex-wrap: wrap; justify-content: center; text-align: center; row-gap: 14px; }
  .ct-page .foot-base i { min-width: 40px; }
}
@media (max-width: 640px) {
  .ct-page .nav { height: 64px; padding: 0 12px 0 16px; }
  .ct-page .nav-end::before { display: none; }
  .ct-page .nav .bp-cta { padding: 10px 16px; font-size: 12px; letter-spacing: .08em; gap: 0; white-space: nowrap; }
  .ct-page .nav .bp-cta svg { display: none; }
  .ct-page .nav .bp-cta::before, .ct-page .nav .bp-cta::after,
  .ct-page .nav .bp-cta i::before, .ct-page .nav .bp-cta i::after { width: 7px; height: 7px; left: auto; right: auto; }
  .ct-page .nav .bp-cta::before { left: 4px; top: 4px; }
  .ct-page .nav .bp-cta::after { right: 4px; bottom: 4px; }
  .ct-page .nav .bp-cta i::before { right: 4px; top: 4px; }
  .ct-page .nav .bp-cta i::after { left: 4px; bottom: 4px; }
  .ct-page .brand img { height: 26px; margin-left: calc(26px * -0.15); }
  .ct-page .foot-grid { grid-template-columns: 1fr; gap: 4.5vh; }
  .ct-page .foot-form { flex-direction: column; }
  .ct-page .foot-join { justify-content: center; }
  .ct-page .foot-base i { display: none; }
  .ct-page .foot-base { flex-direction: column; gap: 16px; }
  .ct-hero { padding-top: calc(64px + 1.8vh + 24px); }
}

/* ---------- Tablet / phone ---------- */
@media (max-width: 1280px) {
  .ct-rail { display: none; }
}
@media (max-width: 1040px) {
  .ct-hero { min-height: 0; align-items: stretch; }
  .ct-hero-grid { grid-template-columns: minmax(0, 1fr); gap: clamp(26px, 4vh, 44px); }
  /* stacked: the sea reads at the top, the copy sits on a vertical wash below */
  .ct-hero-art { object-position: 62% 32%; }
  .ct-hero::before {
    background: linear-gradient(180deg, rgba(6,11,13,.62) 0%, rgba(6,11,13,.42) 22%, rgba(6,11,13,.88) 52%, rgba(6,11,13,.96) 100%);
  }
  .ct-title { max-width: 11em; }
  .ct-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .ct-fields, .ct-field--wide { grid-template-columns: minmax(0, 1fr); grid-column: auto; }
  .ct-fit-grid { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; }
  .ct-compass { max-width: 118px; }
  .ct-foot-note { padding-left: 0; border-left: 0; }
  .ct-plate-foot .bp-cta { width: 100%; justify-content: center; }
  /* keep both plate labels on one line in a narrow plate */
  .ct-fit-cta, .ct-plate-foot .bp-cta {
    gap: 12px; padding-inline: 14px; font-size: 12px; letter-spacing: .1em; white-space: nowrap;
  }
}
