/* Contact — full-bleed background with hero text overlaid bottom-left and a
   floating macOS-style app window bleeding off the right edge. Fully themed:
   every surface/text uses light-dark() tokens, so it adapts to light & dark.
   The background is a placeholder for now; a generated image drops into
   .contact-bg later (one background-image line). */
.contact {
  position: relative;
  min-height: calc(100vh - 64px);
  overflow: hidden;
  background: var(--bg-base);
}

.contact-bg {
  position: absolute;
  inset: 0;
  background: #03071c url('../img/contact-bg.webp') 28% center / cover no-repeat;
}
.contact-scrim {
  position: absolute;
  inset: 0;
  /* fixed dark wash — light on top (let the aqua show), heavier at the bottom
     where the hero text sits, so it reads in both themes */
  background:
    linear-gradient(90deg, rgba(3, 7, 28, 0.55) 0%, rgba(3, 7, 28, 0.16) 28%, rgba(3, 7, 28, 0) 50%),
    linear-gradient(180deg, rgba(3, 7, 28, 0) 42%, rgba(3, 7, 28, 0.72) 100%);
}

/* hero — overlaid, bottom-left */
.contact-hero {
  position: absolute;
  left: clamp(24px, 5vw, 80px);
  bottom: clamp(48px, 9vh, 110px);
  z-index: 2;
  max-width: 30rem;
}
/* hero sits on the fixed wallpaper, so its colours are fixed (light) in both themes */
.contact-hero .eyebrow { margin-bottom: 16px; color: #a9c9ff; }
.contact-title {
  font-size: var(--fs-display);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: var(--lh-tight);
  color: #f6f8ff;
  margin-bottom: 18px;
  text-wrap: balance;
}
.contact-lede {
  font-size: 17px;
  line-height: var(--lh-base);
  color: #cdd6ec;
  margin-bottom: 30px;
}
.contact-hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 0;
  background: #f5f5f7;
  color: #0b0b0d;
  font-size: 15px;
  font-weight: 700;
  transition: transform var(--t-base), background var(--t-base);
}
.contact-hero-cta:hover { transform: translateY(-1px); background: #fff; }

/* floating app window */
.contact-app {
  position: absolute;
  z-index: 2;
  top: 56px;
  left: 46%;
  right: -6%;
  bottom: -56px;
  display: flex;
  flex-direction: column;
  background: var(--bg-page);
  border: 1px solid var(--border-hairline);
  border-radius: 0;
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.55);
  overflow: hidden;
}

.contact-app-titlebar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-hairline);
  flex: 0 0 auto;
}
.contact-app-dot { width: 11px; height: 11px; border-radius: 50%; }
.contact-app-dot.is-r { background: #ff5f57; }
.contact-app-dot.is-y { background: #febc2e; }
.contact-app-dot.is-g { background: #28c840; }

.contact-app-shell {
  display: flex;
  flex: 1;
  min-height: 0;
}

/* left icon rail */
.contact-app-rail {
  flex: 0 0 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 0 22px;
  border-right: 1px solid var(--border-hairline);
}
.contact-rail-icons { display: flex; flex-direction: column; gap: 8px; }
.contact-rail-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 0;
  color: var(--text-tertiary);
}
.contact-rail-icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.contact-rail-icon.is-active { background: var(--text-strong); color: var(--bg-page); }

/* main content */
.contact-app-main {
  flex: 1;
  min-width: 0;
  padding: 30px 34px;
  overflow: hidden;
}
.contact-app-head { margin-bottom: 24px; }
.contact-app-head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
}
.contact-app-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-strong);
}
.contact-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 4px 9px;
  border: 1px solid var(--border-hairline);
  border-radius: 0;
}
.contact-app-action {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: 0;
  background: var(--surface-2);
  border: 1px solid var(--border-hairline);
  color: var(--text-tertiary);
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
  cursor: default;
  user-select: none;
}
.contact-app-sub {
  font-size: 14.5px;
  line-height: var(--lh-base);
  color: var(--text-muted);
  max-width: 52ch;
}

.contact-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.contact-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px 20px 22px;
  border: 1px solid var(--border-hairline);
  border-radius: 0;
  background: var(--surface-1);
  transition: background var(--t-base), border-color var(--t-base);
}
.contact-card:hover {
  background: var(--surface-2);
  border-color: var(--border-strong);
}
.contact-card-kind {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.contact-card-title { font-size: 16px; font-weight: 700; color: var(--text-strong); letter-spacing: -0.01em; }
.contact-card-body { font-size: 13.5px; line-height: var(--lh-base); color: var(--text-muted); }
.contact-card-meta {
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text-base);
}

/* mobile — stack: background banner + hero, then the window in normal flow */
@media (max-width: 900px) {
  .contact { min-height: 0; overflow: visible; }
  .contact-bg { bottom: auto; height: 440px; }
  .contact-scrim {
    bottom: auto;
    height: 440px;
    background: linear-gradient(180deg, rgba(3, 7, 28, 0) 0%, rgba(3, 7, 28, 0.82) 100%);
  }
  .contact-hero {
    position: relative;
    left: auto;
    bottom: auto;
    padding: 120px clamp(20px, 6vw, 40px) 36px;
    max-width: none;
  }
  .contact-app {
    position: relative;
    inset: auto;
    margin: 0 12px 48px;
    bottom: auto;
  }
  .contact-app-rail { display: none; }
  .contact-app-main { padding: 24px 22px; }
}
@media (max-width: 560px) {
  .contact-cards { grid-template-columns: 1fr; }
  .contact-app-head-row { flex-direction: column; align-items: flex-start; }
}
