/* ============================================================
   NASAH — Design System
   Architectural minimalism · warm near-black · single gold mark
   Type: Fraunces (display) / Hanken Grotesk (text) / IBM Plex Mono (data)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300..600;1,9..144,300..500&family=Hanken+Grotesk:wght@300;400;500;600&family=IBM+Plex+Mono:wght@400;500&display=swap');

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

:root {
  /* Surfaces — warm near-black, layered */
  --black:        #0c0b0a;
  --black-mid:    #100f0d;
  --black-soft:   #151310;
  --black-hover:  #1b1916;
  --black-border: #262320;
  --hairline:     #211e1b;

  /* Ink */
  --white:        #f4f1ea;
  --white-dim:    #c9c3b6;
  --white-muted:  #8a847790;
  --white-faint:  #6f6a5f;

  /* Accent — refined gold, used sparingly */
  --accent:       #c8a96e;
  --accent-soft:  #d9c293;
  --accent-dim:   rgba(200, 169, 110, 0.12);
  --accent-line:  rgba(200, 169, 110, 0.30);

  /* Type */
  --display: 'Fraunces', Georgia, serif;
  --sans:    'Hanken Grotesk', system-ui, sans-serif;
  --mono:    'IBM Plex Mono', ui-monospace, monospace;

  --header-height: 88px;
  --gutter: clamp(24px, 6vw, 96px);
  --maxw: 1320px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--sans);
  background-color: var(--black);
  color: var(--white-dim);
  min-height: 100vh;
  line-height: 1.6;
  font-weight: 300;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Faint atmospheric warmth — no flat black */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(120% 80% at 85% -10%, rgba(200,169,110,0.05), transparent 55%),
    radial-gradient(90% 60% at 0% 105%, rgba(200,169,110,0.03), transparent 60%);
}

::selection {
  background: var(--accent);
  color: var(--black);
}

a { color: inherit; }

img { max-width: 100%; }

/* ───────────────────────────────────────── HEADER ── */

header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-height);
  background: rgba(12, 11, 10, 0.72);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid var(--hairline);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--gutter);
  z-index: 1000;
}

.header-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  z-index: 2;
}

.site-logo {
  height: 52px;
  width: auto;
  object-fit: contain;
  display: block;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  position: relative;
  text-decoration: none;
  color: var(--white-muted);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 10px 16px;
  transition: color 0.3s var(--ease);
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 16px; right: 16px;
  bottom: 4px;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}

.nav-link:hover { color: var(--white); }
.nav-link:hover::after,
.nav-link.active::after { transform: scaleX(1); }
.nav-link.active { color: var(--white); }

.nav-link.nav-cta {
  color: var(--accent);
  border: 1px solid var(--accent-line);
  border-radius: 2px;
  margin-left: 12px;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.nav-link.nav-cta::after { display: none; }
.nav-link.nav-cta:hover {
  background: var(--accent);
  color: var(--black);
  border-color: var(--accent);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 6px;
  z-index: 2;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--white);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.hamburger.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

.mobile-nav {
  display: none;
  position: fixed;
  top: var(--header-height);
  left: 0; right: 0;
  background: rgba(12, 11, 10, 0.97);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--hairline);
  padding: 16px var(--gutter) 28px;
  z-index: 999;
  flex-direction: column;
  gap: 2px;
}
.mobile-nav.open { display: flex; }
.mobile-nav .nav-link {
  width: 100%;
  padding: 16px 0;
  font-size: 14px;
  border-bottom: 1px solid var(--hairline);
}
.mobile-nav .nav-link::after { display: none; }
.mobile-nav .nav-link.nav-cta {
  margin: 12px 0 0;
  text-align: center;
  padding: 16px;
  border: 1px solid var(--accent-line);
}

/* ───────────────────────────────────────── PAGE ── */

.page {
  padding-top: var(--header-height);
  position: relative;
  z-index: 1;
}

section {
  padding: clamp(64px, 9vw, 140px) var(--gutter);
  position: relative;
}

/* Shared inner max-width helper */
.inner { max-width: var(--maxw); margin: 0 auto; }

/* ───────────────────────────────────────── TYPE ── */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--accent-line);
}

.section-label { /* legacy hook used by some inline styles */
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

.section-title {
  font-family: var(--display);
  font-optical-sizing: auto;
  font-size: clamp(30px, 4.6vw, 58px);
  font-weight: 350;
  color: var(--white);
  line-height: 1.04;
  letter-spacing: -0.018em;
  margin-bottom: 22px;
}
.section-title em {
  font-style: italic;
  color: var(--accent);
}

.section-subtitle {
  font-size: 16px;
  color: var(--white-dim);
  max-width: 520px;
  line-height: 1.8;
  font-weight: 300;
}

.lead {
  font-size: clamp(16px, 1.5vw, 19px);
  color: var(--white-dim);
  line-height: 1.85;
  font-weight: 300;
  max-width: 560px;
}

.divider {
  width: 40px;
  height: 1px;
  background: var(--accent-line);
  margin-bottom: 28px;
}

/* ───────────────────────────────────────── BUTTONS ── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: gap 0.3s var(--ease), color 0.3s var(--ease), background 0.3s var(--ease), border-color 0.3s var(--ease);
}

.btn .arrow { transition: transform 0.3s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

.btn-primary {
  background: var(--accent);
  color: var(--black);
  padding: 14px 26px;
  border-radius: 2px;
}
.btn-primary:hover { background: var(--accent-soft); }

.btn-outline {
  color: var(--white);
  padding: 14px 26px;
  border: 1px solid var(--black-border);
  border-radius: 2px;
}
.btn-outline:hover { border-color: var(--accent-line); color: var(--accent); }

/* Quiet text link with underline */
.btn-text {
  color: var(--white);
  padding-bottom: 6px;
  border-bottom: 1px solid var(--accent-line);
}
.btn-text:hover { color: var(--accent); }

/* ───────────────────────────────────────── TAG ── */

.tag {
  display: inline-block;
  padding: 5px 12px;
  border: 1px solid var(--black-border);
  border-radius: 100px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white-faint);
}
.tag.accent {
  border-color: var(--accent-line);
  color: var(--accent);
  background: var(--accent-dim);
}

/* ───────────────────────────────────────── CONTACT ── */

.contact-section {
  border-top: 1px solid var(--hairline);
  background: var(--black-mid);
}

.contact-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--hairline);
  border-left: 1px solid var(--hairline);
}

.contact-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 36px 32px 32px;
  border-right: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  text-decoration: none;
  color: inherit;
  transition: background 0.35s var(--ease);
  position: relative;
}
.contact-card::after {
  content: '';
  position: absolute;
  left: 0; top: 0;
  height: 2px; width: 0;
  background: var(--accent);
  transition: width 0.4s var(--ease);
}
.contact-card:hover { background: var(--black-soft); }
.contact-card:hover::after { width: 100%; }

.contact-card-type {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}
.contact-card-value {
  font-family: var(--display);
  font-size: 19px;
  font-weight: 350;
  color: var(--white);
  line-height: 1.35;
  letter-spacing: -0.01em;
}
.contact-card-hint {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--white-faint);
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.contact-card-hint::before {
  content: '↗';
  color: var(--accent);
}

/* ───────────────────────────────────────── FOOTER ── */

footer {
  border-top: 1px solid var(--hairline);
  padding: 48px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  background: var(--black);
}
.footer-left {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.footer-copy, .footer-group {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--white-faint);
  letter-spacing: 0.04em;
}
.footer-group strong { color: var(--white-muted); font-weight: 500; }
.footer-links { display: flex; gap: 28px; }
.footer-links a {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--white-faint);
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: color 0.3s var(--ease);
}
.footer-links a:hover { color: var(--accent); }

/* ───────────────────────────────────────── PROMO PILL ── */

.promo-pill {
  position: fixed;
  bottom: 26px;
  right: 26px;
  z-index: 9998;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 16px 13px 18px;
  background: rgba(20, 18, 15, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--accent-line);
  border-radius: 100px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.5);
  transform: translateY(0);
  transition: transform 0.4s var(--ease), opacity 0.4s var(--ease);
  animation: pill-in 0.7s var(--ease) 0.6s both;
}
.promo-pill.hide {
  transform: translateY(140%);
  opacity: 0;
  pointer-events: none;
}
@keyframes pill-in {
  from { transform: translateY(140%); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
.promo-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  box-shadow: 0 0 0 0 var(--accent-line);
  animation: promo-ping 2.4s ease-out infinite;
}
@keyframes promo-ping {
  0%   { box-shadow: 0 0 0 0 rgba(200,169,110,0.5); }
  70%  { box-shadow: 0 0 0 9px rgba(200,169,110,0); }
  100% { box-shadow: 0 0 0 0 rgba(200,169,110,0); }
}
.promo-text {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: var(--white);
  text-transform: uppercase;
  white-space: nowrap;
}
.promo-text b { color: var(--accent); font-weight: 500; }
.promo-close {
  background: none;
  border: none;
  color: var(--white-faint);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  padding: 4px;
  transition: color 0.25s var(--ease);
}
.promo-close:hover { color: var(--white); }

/* ───────────────────────────────────────── REVEAL ── */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .promo-pill { animation: none; }
  .promo-dot { animation: none; }
  * { scroll-behavior: auto !important; }
}

/* ───────────────────────────────────────── SCROLLBAR ── */

::-webkit-scrollbar { width: 9px; }
::-webkit-scrollbar-track { background: var(--black); }
::-webkit-scrollbar-thumb { background: var(--black-border); }
::-webkit-scrollbar-thumb:hover { background: var(--white-faint); }

/* ───────────────────────────────────────── RESPONSIVE ── */

@media (max-width: 1024px) {
  .contact-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root { --header-height: 64px; }
  .site-logo { height: 40px; width: auto; }
  .header-nav { display: none; }
  .hamburger { display: flex; }

  .contact-grid { grid-template-columns: 1fr; }
  .contact-head { margin-bottom: 36px; }

  footer { flex-direction: column; align-items: flex-start; }

  .promo-pill { left: 16px; right: 16px; bottom: 16px; justify-content: center; }
  .promo-text { white-space: normal; font-size: 10.5px; }
}
