/* ═══════════════════════════════════════════════════════════════════
   LUPID CONTACT PAGE — self-contained styles
   Mirrors the cosmic obsidian language from /index.html and /blog/
   for visual continuity, plus contact-specific layout primitives.
   ═══════════════════════════════════════════════════════════════════ */

* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  background: #0B0C0E; color: #E7E4DC;
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ─── Design tokens (kept identical to the rest of the site) ─── */
:root {
  --font-sans:  'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-mono:  'Geist Mono', 'JetBrains Mono', ui-monospace, Menlo, Consolas, monospace;
  --font-serif: 'Newsreader', 'Iowan Old Style', Georgia, serif;
  --ink:       #0B0C0E;
  --vellum:    #12141A;
  --bone:      #E7E4DC;
  --bone-2:    #BFBDB4;
  --bone-3:    #7F7E77;
  --rule:      rgba(231,228,220,0.10);
  --rule-2:    rgba(231,228,220,0.18);
  --signal:    #C9DFE4;
  --ember:     #D4A574;
}

/* ─── Page grain (matches /blog/) ─── */
body::before {
  content:''; position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    radial-gradient(900px 600px at 20% -10%, rgba(212,165,116,0.035), transparent 60%),
    radial-gradient(1000px 700px at 90% 120%, rgba(201,223,228,0.028), transparent 55%);
}
body::after {
  content:''; position: fixed; inset: 0; pointer-events: none; z-index: 1; opacity: 0.45;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.9  0 0 0 0 0.88  0 0 0 0 0.82  0 0 0 0.035 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  mix-blend-mode: overlay;
}

/* ─── Atmospheric ember + cool wash ─── */
.atmosphere {
  position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden;
}
.atmosphere::before {
  content: ''; position: absolute;
  top: -10%; right: -8%;
  width: 70vw; max-width: 900px; height: 70vh; max-height: 700px;
  background: radial-gradient(ellipse at center, rgba(212,165,116,0.040) 0%, rgba(212,165,116,0.012) 35%, transparent 65%);
}
.atmosphere::after {
  content: ''; position: absolute;
  bottom: -20%; left: -10%;
  width: 60vw; max-width: 800px; height: 60vh; max-height: 600px;
  background: radial-gradient(ellipse at center, rgba(201,223,228,0.020) 0%, transparent 60%);
}

.wrap { max-width: 1360px; margin: 0 auto; padding: 0 32px; position: relative; z-index: 2; }
section { position: relative; z-index: 2; }

/* ─── Reveal-on-scroll ─── */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 800ms cubic-bezier(.2,.7,.2,1), transform 800ms cubic-bezier(.2,.7,.2,1); }
[data-reveal].in { opacity: 1; transform: translateY(0); }
[data-reveal-delay="1"] { transition-delay: 90ms; }
[data-reveal-delay="2"] { transition-delay: 180ms; }
[data-reveal-delay="3"] { transition-delay: 270ms; }
[data-reveal-delay="4"] { transition-delay: 360ms; }

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1 !important; transform: none !important; }
}

/* ═══════════════════════════════════════════════════════════════════
   NAV — mirrors marketing & blog
   ═══════════════════════════════════════════════════════════════════ */
nav {
  position: sticky; top: 0; z-index: 20;
  background: rgba(11,12,14,0.78);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid var(--rule);
}
.nav-in { max-width: 1360px; margin: 0 auto; padding: 18px 32px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; }
.mark-lock { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.mark-lock svg { width: 22px; height: 22px; color: var(--bone); }
.mark-lock .wd { font-size: 14px; letter-spacing: 0.3em; color: var(--bone); text-transform: uppercase; font-weight: 500; }
.mark-lock .meta { font-family: var(--font-mono); font-size: 10px; color: var(--bone-3); letter-spacing: 0.12em; padding-left: 12px; border-left: 1px solid var(--rule); }
.nav-links { display: flex; gap: 36px; justify-content: center; }
.nav-links a { color: var(--bone-2); font-size: 13px; text-decoration: none; letter-spacing: 0.01em; transition: color 180ms; font-weight: 400; position: relative; padding-bottom: 4px; }
.nav-links a:hover { color: var(--bone); }
.nav-links a.active { color: var(--bone); }
.nav-links a.active::after {
  content: ''; position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px; background: var(--ember); opacity: 0.6;
}
.nav-right { display: flex; gap: 14px; align-items: center; justify-content: flex-end; }
.nav-right a { color: var(--bone-2); font-size: 13px; text-decoration: none; }
.nav-right a:hover { color: var(--bone); }

/* ─── Buttons ─── */
.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px;
  font-family: var(--font-sans); font-size: 13px; font-weight: 500; letter-spacing: 0.01em;
  border: 1px solid var(--rule-2); background: transparent; color: var(--bone); cursor: pointer;
  text-decoration: none; transition: all 160ms ease; border-radius: 2px;
}
.btn:hover { border-color: var(--bone); background: rgba(231,228,220,0.04); }
.btn.primary { background: var(--bone); color: var(--ink); border-color: var(--bone); }
.btn.primary:hover { background: var(--ember); border-color: var(--ember); color: var(--ink); }
.btn .arr { display: inline-block; transition: transform 180ms ease; }
.btn:hover .arr { transform: translateX(3px); }
.btn:focus-visible { outline: 2px solid rgba(231,228,220,0.45); outline-offset: 3px; }

/* ─── Chapter eyebrow ─── */
.chapter { display: flex; align-items: baseline; gap: 16px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; color: var(--bone-3); text-transform: uppercase; margin-bottom: 40px; flex-wrap: wrap; }
.chapter .num { color: var(--ember); font-weight: 500; }
.chapter .dash { color: var(--bone-3); }
.chapter .t { color: var(--bone-2); }

/* ═══════════════════════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════════════════════ */
.contact-hero { padding: 100px 0 60px; border-bottom: 1px solid var(--rule); }
.contact-hero h1 {
  font-family: var(--font-serif); font-weight: 300;
  font-size: clamp(2.75rem, 5.6vw, 4.5rem);
  line-height: 1.04; letter-spacing: -0.022em;
  margin: 0; color: var(--bone); font-optical-sizing: auto;
  max-width: 880px;
}
.contact-hero h1 em { font-style: italic; color: var(--ember); font-weight: 300; }
.contact-hero .lede {
  margin-top: 28px; max-width: 680px;
  font-family: var(--font-serif); font-size: 18px; line-height: 1.55; color: var(--bone-2);
}

/* ═══════════════════════════════════════════════════════════════════
   CONTACT METHODS — three-card grid
   ═══════════════════════════════════════════════════════════════════ */
.contact-methods { padding: 80px 0 40px; }
.methods-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.method {
  display: flex;
  flex-direction: column;
  padding: 32px 28px 28px;
  background: linear-gradient(180deg, rgba(231,228,220,0.020), transparent 75%);
  border: 1px solid var(--rule);
  border-radius: 4px;
  text-decoration: none;
  color: inherit;
  transition: border-color 240ms ease, background 240ms ease, transform 240ms ease;
  position: relative;
  overflow: hidden;
}
.method::before {
  content: ''; position: absolute; inset: 0;
  pointer-events: none;
  box-shadow: inset 0 1px 0 rgba(231,228,220,0.04);
}
.method:hover {
  border-color: var(--rule-2);
  background: linear-gradient(180deg, rgba(231,228,220,0.040), transparent 75%);
}

.method.primary {
  background: linear-gradient(180deg, rgba(212,165,116,0.060), rgba(212,165,116,0) 70%);
  border-color: rgba(212,165,116,0.35);
}
.method.primary:hover {
  border-color: rgba(212,165,116,0.55);
  background: linear-gradient(180deg, rgba(212,165,116,0.090), rgba(212,165,116,0) 75%);
}

.method .label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bone-3);
  margin-bottom: 28px;
  display: flex; align-items: center; gap: 8px;
}
.method.primary .label { color: var(--ember); }

.method h3 {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: 26px;
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin: 0 0 14px;
  color: var(--bone);
  word-break: break-word;
}
.method.primary h3 em,
.method h3 em { font-style: italic; color: var(--ember); }

.method p {
  font-family: var(--font-serif);
  font-size: 15px;
  line-height: 1.55;
  color: var(--bone-2);
  margin: 0 0 24px;
  flex: 1;
}

.method .action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bone);
  padding-top: 18px;
  border-top: 1px solid var(--rule);
}
.method .action .arr {
  color: var(--ember);
  transition: transform 220ms ease;
}
.method:hover .action .arr { transform: translateX(5px); }

/* ═══════════════════════════════════════════════════════════════════
   WHAT TO EXPECT — 3 numbered cards
   ═══════════════════════════════════════════════════════════════════ */
.expect { padding: 100px 0 60px; }
.expect-head { margin-bottom: 56px; }
.expect-head h2 {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(2rem, 3.4vw, 2.75rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin: 0;
  color: var(--bone);
  font-optical-sizing: auto;
}
.expect-head h2 em { font-style: italic; color: var(--ember); }

.expect-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.expect-item {
  border-top: 1px solid var(--rule);
  padding: 28px 0 0;
  position: relative;
}
.expect-item::before {
  content: ''; position: absolute;
  top: -1px; left: 0; width: 32px;
  height: 1px; background: var(--ember);
}
.expect-item .num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--ember);
  margin-bottom: 14px;
  display: block;
}
.expect-item h3 {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 19px;
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin: 0 0 12px;
  color: var(--bone);
}
.expect-item p {
  font-family: var(--font-serif);
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--bone-2);
  margin: 0;
}

/* ═══════════════════════════════════════════════════════════════════
   CALENDAR EMBED
   ═══════════════════════════════════════════════════════════════════ */
.calendar-section { padding: 80px 0 80px; border-top: 1px solid var(--rule); }
.cal-head { margin-bottom: 40px; max-width: 720px; }
.cal-head h2 {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(2rem, 3.4vw, 2.75rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin: 0;
  color: var(--bone);
  font-optical-sizing: auto;
}
.cal-head h2 em { font-style: italic; color: var(--ember); }
.cal-head .cal-sub {
  margin-top: 18px;
  font-family: var(--font-serif);
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--bone-3);
}
.cal-head .cal-sub a {
  color: var(--ember);
  text-decoration: none;
  border-bottom: 1px solid rgba(212,165,116,0.4);
  transition: border-color 200ms ease;
}
.cal-head .cal-sub a:hover { border-bottom-color: var(--ember); }

/* Calendar shell — wraps the cross-origin Google iframe in a brand-matched
   container with a top 'chrome' bar (operator-interface aesthetic) and a
   bottom attribution row. The iframe itself gets a controlled CSS filter
   to approximate dark mode without reaching into Google's DOM. */
.cal-shell {
  position: relative;
  background: #0C0E12;
  border: 1px solid rgba(212,165,116,0.22);
  border-radius: 6px;
  overflow: hidden;
  box-shadow:
    0 32px 96px -32px rgba(0,0,0,0.85),
    0 0 0 1px rgba(212,165,116,0.04),
    0 0 80px -40px rgba(212,165,116,0.16);
  transition: border-color 320ms ease, box-shadow 320ms ease;
}
.cal-shell:hover {
  border-color: rgba(212,165,116,0.42);
  box-shadow:
    0 32px 96px -32px rgba(0,0,0,0.88),
    0 0 0 1px rgba(212,165,116,0.10),
    0 0 100px -32px rgba(212,165,116,0.28);
}

.cal-chrome-top {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 20px;
  background: #08090B;
  border-bottom: 1px solid var(--rule);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bone-3);
}
.cal-chrome-top .pulse {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--signal);
  box-shadow: 0 0 0 0 var(--signal);
  animation: cal-pulse 2.2s infinite;
  flex-shrink: 0;
}
@keyframes cal-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(201,223,228,0.55); }
  70%  { box-shadow: 0 0 0 6px rgba(201,223,228,0); }
  100% { box-shadow: 0 0 0 0 rgba(201,223,228,0); }
}
.cal-chrome-top .chrome-label { color: var(--bone-2); }
.cal-chrome-top .chrome-meta {
  margin-left: auto;
  color: var(--bone-3);
  font-size: 10px;
  letter-spacing: 0.14em;
}
.cal-chrome-top .chrome-meta b { color: var(--ember); font-weight: 500; }

.cal-iframe-host {
  position: relative;
  background: #0C0E12;
  min-height: 760px;
}
.cal-iframe-host iframe {
  display: block;
  width: 100%;
  height: 760px;
  border: 0;
  background: #f5efe6;
  /* Filter trick: the cross-origin iframe is a CSS firewall, but we can
     filter the rendered pixels of the iframe element. invert + hue-rotate
     approximates dark mode while keeping color roles roughly intact.
     The 0.92 (not 1.0) invert keeps a small amount of warmth so it doesn't
     look fully flipped; the contrast/saturation tweaks compensate. */
  filter: invert(0.92) hue-rotate(180deg) contrast(0.95) saturate(1.05);
}

/* Loading hint visible until the iframe paints. The filter affects this
   too, so we color it as it would render *post-filter*. */
.cal-iframe-host .cal-loading {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f5efe6;
  color: #555;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  pointer-events: none;
  transition: opacity 320ms ease;
}
.cal-shell.loaded .cal-iframe-host .cal-loading { opacity: 0; }

.cal-attribution {
  margin-top: 18px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bone-3);
  text-align: center;
}
.cal-attribution a {
  color: var(--bone-2);
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
  transition: color 200ms ease, border-color 200ms ease;
}
.cal-attribution a:hover {
  color: var(--ember);
  border-bottom-color: rgba(212,165,116,0.4);
}

@media (max-width: 480px) {
  .cal-iframe-host,
  .cal-iframe-host iframe { min-height: 640px; height: 640px; }
  .cal-chrome-top { padding: 10px 14px; font-size: 9.5px; gap: 10px; }
  .cal-chrome-top .chrome-meta { font-size: 9px; }
}

/* ═══════════════════════════════════════════════════════════════════
   SECURITY DISCLOSURE
   ═══════════════════════════════════════════════════════════════════ */
.security-row { padding: 60px 0 100px; }
.security-block {
  max-width: 720px;
  padding: 28px 32px;
  border: 1px solid var(--rule);
  border-left: 2px solid var(--ember);
  background: rgba(11,12,14,0.4);
  border-radius: 2px;
}
.security-block .label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ember);
  display: block;
  margin-bottom: 12px;
}
.security-block p {
  font-family: var(--font-serif);
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--bone-2);
  margin: 0;
}
.security-block a {
  color: var(--ember);
  text-decoration: none;
  border-bottom: 1px solid rgba(212,165,116,0.4);
  transition: border-color 200ms ease;
}
.security-block a:hover { border-bottom-color: var(--ember); }

/* ═══════════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════════ */
footer { padding: 80px 0 40px; border-top: 1px solid var(--rule); position: relative; z-index: 2; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 32px; margin-bottom: 72px; }
.foot-brand svg { width: 28px; height: 28px; color: var(--bone); }
.foot-brand .wd { font-size: 14px; letter-spacing: 0.3em; color: var(--bone); text-transform: uppercase; font-weight: 500; margin-top: 12px; }
.foot-brand p { font-size: 13px; color: var(--bone-3); margin-top: 14px; max-width: 280px; line-height: 1.55; }
footer a { display: block; font-size: 13px; color: var(--bone-2); text-decoration: none; padding: 5px 0; transition: color 160ms; }
footer a:hover { color: var(--bone); }
.foot-bar {
  padding-top: 28px; border-top: 1px solid var(--rule);
  display: flex; justify-content: space-between;
  font-family: var(--font-mono); font-size: 10.5px;
  color: var(--bone-3); letter-spacing: 0.1em;
}

/* ═══════════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════════ */
@media (max-width: 960px) {
  .nav-in { grid-template-columns: 1fr auto; padding: 14px 20px; }
  .nav-links { display: none; }
  .nav-right a:not(.btn) { display: none; }

  .methods-grid { grid-template-columns: 1fr; gap: 16px; }
  .expect-grid { grid-template-columns: 1fr; gap: 32px; }

  .foot-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .wrap { padding: 0 20px; }
  .mark-lock .meta { display: none; }

  .contact-hero { padding: 60px 0 40px; }
  .contact-hero h1 { font-size: clamp(2rem, 8vw, 2.5rem); }
  .contact-hero .lede { font-size: 16px; }

  .contact-methods { padding: 48px 0 24px; }
  .method { padding: 24px 22px 22px; }
  .method h3 { font-size: 22px; }

  .expect { padding: 64px 0 40px; }
  .expect-grid { gap: 28px; }

  .calendar-section { padding: 56px 0 56px; }
  .cal-frame, .cal-frame iframe { min-height: 640px; height: 640px; }

  .security-row { padding: 40px 0 64px; }
  .security-block { padding: 22px 20px; }

  .foot-grid { grid-template-columns: 1fr; gap: 28px; margin-bottom: 40px; }
  footer { padding: 48px 0 28px; }
  .foot-bar { flex-direction: column; gap: 6px; }
}
