/* ============================================================
   page-contact.css — contact.html-specific styles
   Plan 01-C: extracted from contact.html lines 24-279.
   Loaded AFTER base.css. Shared rules (reset, :root, .frame,
   .topbar, .btn, footer shell) live in base.css.
   D-12 / D-14 / D-34: tweak-panel, variant/density, and
   typographic placeholder selectors removed.
   ============================================================ */

/* ------------------------------------------------------------
   Page-level overrides (preserve original page-specific tweaks
   from contact.html that diverge from the shared base)
   ------------------------------------------------------------ */
body { min-height: 100vh; }
.frame { max-width: 76rem; }                                  /* contact uses wider frame */
.top-cta { border-color: var(--accent); color: var(--accent); }
.top-cta:hover { background: rgba(0,255,229,0.06); }

/* Stronger button radii on this page (matches original .95rem 1.5rem padding) */
.btn { padding: .95rem 1.5rem; }

/* ------------------------------------------------------------
   HERO
   ------------------------------------------------------------ */
.hero { padding: 5rem 0 4rem; border-bottom: 1px solid var(--line); position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(50% 40% at 85% 0%, color-mix(in oklab, var(--accent) 10%, transparent), transparent 60%),
    repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px 6rem);
  opacity: .55;
  mask: linear-gradient(180deg, #000 30%, transparent);
}
.hero > .frame { position: relative; z-index: 1; }
.hero-top { display: flex; justify-content: space-between; align-items: baseline; gap: 2rem; flex-wrap: wrap; margin-bottom: 3.5rem; }
.hero-top .crumb { display: inline-flex; align-items: center; gap: .65rem; }
.hero-top .crumb::before { content: ""; width: .4rem; height: .4rem; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px color-mix(in oklab, var(--accent) 25%, transparent); }
.hero-top .status { font-family: var(--font-mono); font-size: .6875rem; letter-spacing: .14em; text-transform: uppercase; color: var(--fg-mute); display: inline-flex; align-items: center; gap: .55rem; padding: .45rem .75rem; border: 1px solid var(--line); border-radius: .4rem; }
.hero-top .status::before { content: ""; width: .4rem; height: .4rem; border-radius: 50%; background: #68d391; box-shadow: 0 0 0 3px rgba(104,211,145,.2); }
.hero-top .status b { color: var(--fg); font-weight: 500; }
.status-dot { width: .4rem; height: .4rem; border-radius: 50%; background: #68d391; box-shadow: 0 0 0 3px rgba(104,211,145,.2); }
.status-strip { display: inline-flex; align-items: center; gap: .55rem; }

.hero h1 { font-weight: 600; letter-spacing: -.045em; line-height: .93; font-size: clamp(3.25rem, 9vw, 8rem); max-width: 16ch; text-wrap: balance; }
.hero h1 em { font-style: italic; font-family: var(--font-serif); font-weight: 400; color: var(--accent); letter-spacing: -.02em; }
.hero .kicker { display: grid; grid-template-columns: 2fr 1.25fr; gap: 3rem; align-items: end; margin-top: 4rem; padding-top: 2.5rem; border-top: 1px solid var(--line); }
.hero .kicker p { font-family: var(--font-serif); font-style: italic; font-weight: 400; font-size: clamp(1.25rem, 1.7vw, 1.625rem); line-height: 1.4; color: var(--fg); max-width: 36ch; text-wrap: pretty; }
.hero .kicker p em { font-style: italic; color: var(--accent); }
.hero .kicker .sig { font-family: var(--font-mono); font-size: .6875rem; letter-spacing: .14em; color: var(--fg-mute); text-transform: uppercase; line-height: 1.8; text-align: right; }
.hero .kicker .sig b { color: var(--fg); font-weight: 500; }

/* Signature block (used inline) */
.signature { font-family: var(--font-mono); font-size: .6875rem; letter-spacing: .14em; color: var(--fg-mute); text-transform: uppercase; line-height: 1.8; }
.sig-line { color: var(--fg); font-weight: 500; }
.sig-attr { color: var(--fg-mute); }

/* ------------------------------------------------------------
   ROUTES — four ways to reach us
   ------------------------------------------------------------ */
.routes { border-bottom: 1px solid var(--line); padding: 6rem 0; }
.routes-head { display: grid; grid-template-columns: 1fr 2fr; gap: 3rem; align-items: end; margin-bottom: 3.5rem; }
.routes-head h2 { font-weight: 600; letter-spacing: -.035em; line-height: 1; font-size: clamp(1.75rem, 3.25vw, 2.75rem); text-wrap: balance; }
.routes-head h2 em { font-style: italic; font-family: var(--font-serif); font-weight: 400; color: var(--accent); }
.routes-head .sec-meta { justify-self: end; font-family: var(--font-mono); font-size: .6875rem; letter-spacing: .14em; color: var(--fg-mute); text-transform: uppercase; }
.routes-grid, .method-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 1rem; overflow: hidden; }
.route, .method { background: var(--bg); padding: 2.25rem 1.75rem 2rem; min-height: 16rem; display: flex; flex-direction: column; transition: background .2s; text-align: left; position: relative; }
.route:hover, .method:hover { background: var(--bg-2); }
.route .rn, .method-icon { font-family: var(--font-mono); font-size: .6875rem; letter-spacing: .18em; color: var(--fg-mute); }
.route h3, .method-body h3 { margin-top: 2.5rem; font-family: var(--font-serif); font-style: italic; font-weight: 400; font-size: 1.875rem; letter-spacing: -.015em; line-height: 1.05; color: var(--fg); }
.route .rb, .method-body p { margin-top: 1rem; font-size: .875rem; line-height: 1.55; color: var(--fg-dim); flex: 1; }
.route .ract { margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px dashed var(--line); font-family: var(--font-mono); font-size: .75rem; letter-spacing: .04em; color: var(--fg); display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.route .ract small { display: block; margin-top: .4rem; font-size: .625rem; letter-spacing: .14em; text-transform: uppercase; color: var(--fg-mute); }
.route .ract .arr { color: var(--fg-mute); transition: color .15s, transform .15s; }
.route:hover .ract .arr { color: var(--accent); transform: translateX(3px); }
.route .ract a { border-bottom: 1px solid var(--line-2); padding-bottom: 1px; transition: color .15s, border-color .15s; }
.route .ract a:hover { color: var(--accent); border-color: var(--accent); }

/* ------------------------------------------------------------
   FACES — who picks up
   ------------------------------------------------------------ */
.faces { background: var(--bg-2); border-bottom: 1px solid var(--line); padding: 6rem 0; }
.faces-head { display: grid; grid-template-columns: 1fr 2fr; gap: 3rem; align-items: end; margin-bottom: 3.5rem; }
.faces-head h2 { font-weight: 600; letter-spacing: -.035em; line-height: 1; font-size: clamp(1.75rem, 3.25vw, 2.75rem); max-width: 18ch; text-wrap: balance; }
.faces-head h2 em { font-style: italic; font-family: var(--font-serif); font-weight: 400; color: var(--accent); }
.faces-head p { font-size: 1rem; color: var(--fg-dim); line-height: 1.6; max-width: 38ch; }
.faces-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; align-items: stretch; max-width: 56rem; margin: 0 auto; }
.who { display: flex; flex-direction: column; gap: 1rem; padding: 1.5rem; background: var(--bg); border: 1px solid var(--line); border-radius: .75rem; }
.who-top { display: flex; align-items: center; gap: 1rem; }
.who-ph { width: 3.5rem; height: 3.5rem; border-radius: 50%; background: #f4f4f2; overflow: hidden; flex-shrink: 0; border: 1px solid var(--line); }
.who-ph img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; display: block; }
.who-nm { display: flex; flex-direction: column; gap: .15rem; min-width: 0; }
.who-nm b { font-size: .95rem; font-weight: 600; letter-spacing: -.005em; color: var(--fg); }
.who-nm span { font-family: var(--font-mono); font-size: .625rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.who-body { font-size: .8125rem; line-height: 1.55; color: var(--fg-dim); flex: 1; }
.who-body em { font-family: var(--font-serif); font-style: italic; color: var(--fg); font-size: .9375rem; }
.who-foot { font-family: var(--font-mono); font-size: .625rem; letter-spacing: .1em; text-transform: uppercase; color: var(--fg-mute); padding-top: .85rem; border-top: 1px dashed var(--line); display: flex; justify-content: space-between; }
.who-foot b { color: var(--fg); font-weight: 500; }
.who.bot { justify-content: center; text-align: center; align-items: center; border-style: dashed; border-color: var(--line-2); background: transparent; }
.who.bot .crossed { font-family: var(--font-serif); font-style: italic; font-weight: 400; font-size: 1.625rem; line-height: 1.2; color: var(--fg-mute); text-decoration: line-through; text-decoration-color: color-mix(in oklab, var(--accent) 60%, transparent); text-decoration-thickness: 2px; }
.who.bot .crossed-sub { margin-top: 1rem; font-size: .875rem; color: var(--fg-dim); max-width: 24ch; line-height: 1.5; }
.who.bot .stamp { margin-top: 1.25rem; font-family: var(--font-mono); font-size: .625rem; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); border: 1px solid color-mix(in oklab, var(--accent) 40%, var(--line)); padding: .4rem .65rem; border-radius: .35rem; }

/* ------------------------------------------------------------
   MAIN FORM — composer
   ------------------------------------------------------------ */
.compose { padding: 7rem 0 5rem; border-bottom: 1px solid var(--line); position: relative; }
.compose .head { text-align: center; max-width: 38rem; margin: 0 auto 4rem; }
.compose .head .micro { display: block; margin-bottom: 1.25rem; }
.compose .head h2 { font-weight: 600; letter-spacing: -.035em; line-height: 1; font-size: clamp(2.25rem, 4.5vw, 3.75rem); text-wrap: balance; }
.compose .head h2 em { font-style: italic; font-family: var(--font-serif); font-weight: 400; color: var(--accent); }
.compose .head p { margin-top: 1.5rem; font-size: 1rem; color: var(--fg-dim); line-height: 1.6; max-width: 30rem; margin-left: auto; margin-right: auto; }

.composer { max-width: 44rem; margin: 0 auto; background: var(--bg-2); border: 1px solid var(--line); border-radius: 1rem; padding: 2.5rem; position: relative; }
.composer .ctag { position: absolute; top: -1px; left: 2rem; transform: translateY(-50%); background: var(--bg); padding: 0 .75rem; font-family: var(--font-mono); font-size: .625rem; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); border: 1px solid color-mix(in oklab, var(--accent) 40%, var(--line)); border-radius: .3rem; line-height: 1.8; }

.intent-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; margin-bottom: 2rem; }
.intent { padding: .9rem .8rem; border: 1px solid var(--line); background: var(--bg); border-radius: .5rem; cursor: pointer; text-align: center; transition: all .15s; display: flex; flex-direction: column; gap: .2rem; align-items: center; }
.intent:hover { border-color: var(--line-2); }
.intent.on { border-color: var(--accent); background: color-mix(in oklab, var(--accent) 8%, var(--bg)); }
.intent b { font-size: .8125rem; font-weight: 600; color: var(--fg); letter-spacing: -.005em; }
.intent span { font-family: var(--font-mono); font-size: .5625rem; letter-spacing: .14em; text-transform: uppercase; color: var(--fg-mute); }
.intent.on span { color: var(--accent); }

.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { display: flex; flex-direction: column; gap: .4rem; }
.field.full { grid-column: span 2; }
.field label { font-family: var(--font-mono); font-size: .625rem; letter-spacing: .14em; text-transform: uppercase; color: var(--fg-mute); display: flex; align-items: center; justify-content: space-between; }
.field label .req { color: var(--accent); letter-spacing: 0; }
.field input, .field textarea, .field select {
  background: var(--bg); border: 1px solid var(--line); border-radius: .45rem;
  padding: .85rem 1rem; font-size: .9375rem; color: var(--fg);
  transition: border-color .15s, background .15s;
  width: 100%; resize: vertical;
}
.field textarea { min-height: 7rem; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--accent); }
.field input::placeholder, .field textarea::placeholder { color: var(--fg-mute); }
.field .hint { font-size: .75rem; color: var(--fg-mute); line-height: 1.4; }

.form-foot { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-top: 1.75rem; padding-top: 1.75rem; border-top: 1px solid var(--line); }
.form-foot .legal { font-size: .75rem; color: var(--fg-mute); max-width: 22rem; line-height: 1.5; }
.form-foot .legal a { color: var(--fg-dim); border-bottom: 1px solid var(--line-2); }

.success { display: none; flex-direction: column; gap: 1.25rem; padding: 2.5rem 2rem; text-align: center; }
.success.on { display: flex; }
.success .sc { width: 3rem; height: 3rem; border-radius: 50%; border: 1px solid var(--accent); color: var(--accent); display: flex; align-items: center; justify-content: center; margin: 0 auto; }
.success h3 { font-family: var(--font-serif); font-style: italic; font-weight: 400; font-size: 2rem; letter-spacing: -.015em; }
.success p { font-size: .9375rem; color: var(--fg-dim); max-width: 30rem; margin: 0 auto; line-height: 1.6; }
.composer.done .intent-row, .composer.done form { display: none; }
.composer.done .success { display: flex; }

/* ─── Phase 2 / D-18 consent checkbox skin (D-CD-06) ──────────────────────
   Tone matches .legal microcopy (small, dim) but with checkbox interaction. */
.consent {
  display: flex; align-items: flex-start; gap: .65rem;
  font-size: .75rem; color: var(--fg-dim); line-height: 1.5;
  margin-bottom: 1.25rem; flex: 1 1 100%;
}
.consent input[type="checkbox"] {
  flex: 0 0 auto; margin-top: .15rem;
  width: 1rem; height: 1rem;
  accent-color: var(--accent);
  cursor: pointer;
}
.consent a { color: var(--fg); border-bottom: 1px solid var(--line-2); }
.consent a:hover { border-bottom-color: var(--accent); }

/* ─── Phase 2 / D-22 inline error banner (MAIL-12) ────────────────────────
   Hidden by default via the [hidden] attribute; Plan 05 toggles + sets text. */
.form-error {
  background: color-mix(in oklab, var(--accent) 8%, var(--bg));
  border: 1px solid color-mix(in oklab, var(--accent) 40%, var(--line));
  border-radius: .45rem;
  padding: .85rem 1rem;
  font-size: .875rem; color: var(--fg);
  margin-bottom: 1rem;
}
.form-error[hidden] { display: none; }

/* ─── Phase 2: submit-button disabled state (preserves --gradient-cta) ────
   Plan 05's submitForm sets button.disabled=true during inflight fetch. */
.btn:disabled, .btn[disabled] {
  opacity: 0.6;
  cursor: wait;
  transform: none !important;
}

/* ------------------------------------------------------------
   FAQ
   ------------------------------------------------------------ */
.faq { padding: 6rem 0; border-bottom: 1px solid var(--line); }
.faq-head { margin-bottom: 3rem; display: grid; grid-template-columns: 1fr 2fr; gap: 3rem; align-items: end; }
.faq-head h2 { font-weight: 600; letter-spacing: -.03em; line-height: 1; font-size: clamp(1.75rem, 3vw, 2.5rem); text-wrap: balance; max-width: 14ch; }
.faq-head h2 em { font-style: italic; font-family: var(--font-serif); font-weight: 400; color: var(--accent); }
.faq-head p { font-size: .9375rem; color: var(--fg-dim); line-height: 1.6; max-width: 38ch; }
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { display: flex; justify-content: space-between; align-items: center; gap: 2rem; padding: 1.75rem 0; cursor: pointer; list-style: none; transition: color .15s; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary h4 { font-size: 1.125rem; font-weight: 500; letter-spacing: -.01em; color: var(--fg); }
.faq-item summary .sign { font-family: var(--font-mono); font-size: 1.25rem; color: var(--fg-mute); transition: color .15s, transform .2s; line-height: 1; flex-shrink: 0; }
.faq-item[open] summary .sign { color: var(--accent); transform: rotate(45deg); }
.faq-item summary:hover h4 { color: var(--accent); }
.faq-item .ans { padding: 0 3rem 1.75rem 0; font-size: .9375rem; color: var(--fg-dim); line-height: 1.65; max-width: 58ch; }
.faq-item .ans em { font-family: var(--font-serif); font-style: italic; color: var(--fg); }

/* ------------------------------------------------------------
   LOCATION
   ------------------------------------------------------------ */
.place { padding: 6rem 0; border-bottom: 1px solid var(--line); background: var(--bg-2); }
.place-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 3.5rem; align-items: stretch; }
.place-info h2 { font-weight: 600; letter-spacing: -.03em; line-height: 1; font-size: clamp(1.75rem, 3vw, 2.5rem); text-wrap: balance; max-width: 14ch; }
.place-info h2 em { font-style: italic; font-family: var(--font-serif); font-weight: 400; color: var(--accent); }
.place-info p { margin-top: 1.5rem; font-size: 1rem; color: var(--fg-dim); line-height: 1.6; max-width: 34ch; }
.addr { margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem 2rem; }
.addr .k { font-family: var(--font-mono); font-size: .625rem; letter-spacing: .14em; text-transform: uppercase; color: var(--fg-mute); margin-bottom: .35rem; }
.addr .v { font-size: .9375rem; color: var(--fg); line-height: 1.5; }
.addr .v small { display: block; margin-top: .3rem; color: var(--fg-mute); font-family: var(--font-mono); font-size: .6875rem; letter-spacing: .04em; line-height: 1.4; }
.addr .v a { border-bottom: 1px solid var(--line-2); padding-bottom: 1px; transition: all .15s; }
.addr .v a:hover { color: var(--accent); border-color: var(--accent); }

.mapcard { position: relative; background: var(--bg); border: 1px solid var(--line); border-radius: 1rem; overflow: hidden; min-height: 22rem; display: flex; flex-direction: column; }
.mapcard::before {
  content: ""; position: absolute; inset: 0; opacity: .25;
  background:
    repeating-linear-gradient(45deg, var(--line) 0 1px, transparent 1px 2rem),
    repeating-linear-gradient(-45deg, var(--line) 0 1px, transparent 1px 2rem),
    radial-gradient(60% 40% at 50% 50%, color-mix(in oklab, var(--accent) 20%, transparent), transparent 75%);
}
.mapcard svg.streets { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .3; }
.mapcard .pin { position: absolute; top: 50%; left: 58%; transform: translate(-50%, -50%); z-index: 2; }
.mapcard .pin .dot { width: .85rem; height: .85rem; background: var(--accent); border-radius: 50%; box-shadow: 0 0 0 6px color-mix(in oklab, var(--accent) 25%, transparent), 0 0 0 14px color-mix(in oklab, var(--accent) 10%, transparent); animation: pulse-pin 2.4s ease-out infinite; }
@keyframes pulse-pin {
  0%, 100% { box-shadow: 0 0 0 6px color-mix(in oklab, var(--accent) 25%, transparent), 0 0 0 14px color-mix(in oklab, var(--accent) 10%, transparent); }
  50%      { box-shadow: 0 0 0 10px color-mix(in oklab, var(--accent) 15%, transparent), 0 0 0 22px color-mix(in oklab, var(--accent) 0%, transparent); }
}
.mapcard .pin .tag { position: absolute; top: -2.5rem; left: 50%; transform: translateX(-50%); font-family: var(--font-mono); font-size: .625rem; letter-spacing: .14em; text-transform: uppercase; color: var(--fg); background: var(--bg-2); border: 1px solid var(--line-2); padding: .4rem .65rem; border-radius: .35rem; white-space: nowrap; }
.mapcard .pin .tag::after { content: ""; position: absolute; bottom: -4px; left: 50%; transform: translateX(-50%) rotate(45deg); width: 8px; height: 8px; background: var(--bg-2); border-right: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.mapcard .coord { position: absolute; bottom: 1rem; left: 1rem; z-index: 2; font-family: var(--font-mono); font-size: .625rem; letter-spacing: .06em; color: var(--fg-mute); }
.mapcard .coord b { color: var(--fg); font-weight: 500; }
.mapcard .mapact { position: absolute; bottom: 1rem; right: 1rem; z-index: 2; font-family: var(--font-mono); font-size: .6875rem; letter-spacing: .12em; text-transform: uppercase; padding: .45rem .7rem; border: 1px solid var(--line-2); border-radius: .35rem; background: var(--bg-2); color: var(--fg); transition: all .15s; }
.mapcard .mapact:hover { border-color: var(--accent); color: var(--accent); }

/* ------------------------------------------------------------
   STRIP FOOTER (contact-page footer override:
   single-row layout instead of the multi-column shared one)
   ------------------------------------------------------------ */
footer { padding: 2.5rem 0 2rem; }
footer .foot-grid { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; align-items: center; padding-bottom: 0; border-bottom: none; }
footer .foot-grid span { font-family: var(--font-mono); font-size: .6875rem; color: var(--fg-mute); letter-spacing: .06em; }
footer .foot-grid a { color: var(--fg-dim); font-size: .8125rem; padding: .25rem .6rem; border-radius: .3rem; }
footer .foot-grid a:hover { color: var(--fg); background: rgba(255,255,255,.04); }

/* ------------------------------------------------------------
   Mobile breakpoint
   ------------------------------------------------------------ */
@media (max-width: 960px) {
  .nav { display: none; }
  .hero .kicker { grid-template-columns: 1fr; gap: 1.5rem; }
  .hero .kicker .sig { text-align: left; }
  .routes-head, .faces-head, .faq-head, .place-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .routes-grid, .method-grid { grid-template-columns: 1fr 1fr; }
  .faces-row { grid-template-columns: 1fr; }
  .fields { grid-template-columns: 1fr; }
  .field.full { grid-column: span 1; }
  .form-foot { flex-direction: column; align-items: stretch; }
  .form-foot .btn { justify-content: center; }
  .composer { padding: 1.75rem; }
  .intent-row { grid-template-columns: 1fr; }
  .addr { grid-template-columns: 1fr; }
}
