:root {
  --bg: #0a0e16;
  --bg-panel: #121826;
  --line: rgba(245, 246, 248, 0.10);
  --ink: #f5f6f8;
  --ink-dim: rgba(245, 246, 248, 0.72);
  --ink-faint: rgba(245, 246, 248, 0.45);
  --red: #c8202c;
  --red-dim: rgba(200, 32, 44, 0.14);
  --edge: 48px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  margin: 0;
  height: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  width: 100%;
  overflow: hidden;
  background: var(--bg);
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ink);
  position: relative;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
img { display: block; }

/* ---------- Full-bleed background photo ---------- */
.contact-bg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  z-index: 0;
}

.contact-overlay {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(8,11,18,0.42) 0%, rgba(8,11,18,0.10) 14%, rgba(10,13,20,0.10) 45%, rgba(10,13,20,0.34) 100%),
    linear-gradient(90deg, rgba(10,13,20,0) 30%, rgba(10,13,20,0.36) 68%, rgba(10,13,20,0.60) 100%);
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: calc(40px + env(safe-area-inset-top));
  padding-right: calc(var(--edge) + env(safe-area-inset-right));
  padding-bottom: 0;
  padding-left: calc(var(--edge) + env(safe-area-inset-left));
}

.brand-name {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink);
}

.brand-name a { text-decoration: none; color: inherit; }

.back-link {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-dim);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color 0.2s ease;
}

.back-link:hover { color: var(--ink); }
.back-link svg { width: 14px; height: 14px; }

/* ---------- Centered contact content ---------- */
.contact-center {
  position: fixed;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  pointer-events: none;
  text-align: right;
  padding: 0 calc(var(--edge) + env(safe-area-inset-right)) 64px calc(var(--edge) + env(safe-area-inset-left));
}

.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 18px;
  display: inline-block;
  padding: 6px 14px;
  border: 1px solid rgba(200, 32, 44, 0.4);
  background: var(--red-dim);
  border-radius: 2px;
}

.contact-center h1 {
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1;
  margin-bottom: 22px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  margin-bottom: 34px;
}

.contact-line {
  font-size: clamp(17px, 2.2vw, 22px);
  font-weight: 500;
  color: var(--ink-dim);
  text-decoration: none;
  letter-spacing: 0.01em;
  position: relative;
  padding-bottom: 4px;
  transition: color 0.25s ease;
  pointer-events: auto;
}

.contact-line::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: 0;
  height: 1px;
  width: 0;
  background: var(--red);
  transition: width 0.3s ease;
}

.contact-line:hover { color: var(--ink); }
.contact-line:hover::after { width: 100%; }

.contact-actions {
  display: flex;
  gap: 14px;
  pointer-events: auto;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 15px 24px;
  border-radius: 2px;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--red);
  color: #fff;
  border: 1px solid var(--red);
}

.btn-primary:hover {
  background: #a91a24;
  border-color: #a91a24;
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid rgba(245, 246, 248, 0.32);
}

.btn-ghost:hover {
  border-color: var(--ink);
  background: rgba(245, 246, 248, 0.08);
}

.btn svg { width: 15px; height: 15px; }

/* ---------- Footer ---------- */
.site-footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  justify-content: center;
  padding-top: 0;
  padding-right: calc(var(--edge) + env(safe-area-inset-right));
  padding-bottom: calc(36px + env(safe-area-inset-bottom));
  padding-left: calc(var(--edge) + env(safe-area-inset-left));
}

.footer-nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-link {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-dim);
  text-decoration: none;
  padding-bottom: 6px;
  border-bottom: 1px solid transparent;
  transition: color 0.25s ease, border-color 0.25s ease;
}

.nav-link:hover { color: var(--ink); }

.nav-link.active {
  color: var(--ink);
  border-color: var(--red);
}

.nav-divider {
  color: var(--ink-faint);
  font-size: 11px;
}

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
  :root { --edge: 20px; }

  .site-header { padding-top: calc(24px + env(safe-area-inset-top)); }

  .brand-name { font-size: 12px; letter-spacing: 0.2em; }

  .contact-center {
    align-items: flex-start;
    text-align: left;
    justify-content: flex-end;
    padding-bottom: 128px;
  }

  .contact-info { align-items: flex-start; }

  .contact-line::after { left: 0; right: auto; }

  .contact-actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 280px;
  }

  .site-footer { padding-bottom: calc(24px + env(safe-area-inset-bottom)); }

  .footer-nav { gap: 8px; }

  .nav-link { font-size: 10px; letter-spacing: 0.12em; white-space: nowrap; }

  .nav-divider { font-size: 10px; }
}

@media (max-height: 700px) and (min-width: 641px) {
  .contact-center h1 { font-size: clamp(30px, 5vw, 48px); margin-bottom: 14px; }
  .contact-info { margin-bottom: 22px; }
}
