:root {
  color-scheme: light dark;
  --paper: #f5f2ea;
  --paper-2: #efeadd;
  --ink: #1a1916;
  --ink-soft: #565048;
  --ink-faint: #8c8578;
  --rule: #d8d1c1;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #14130f;
    --paper-2: #1c1a14;
    --ink: #ece5d6;
    --ink-soft: #a49b88;
    --ink-faint: #6f6857;
    --rule: #2e2a20;
  }
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
}

body {
  background-color: var(--paper);
  overflow-x: hidden;
  /* subtle paper grain */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
  color: var(--ink);
  font-family: ui-sans-serif, "Helvetica Neue", Helvetica, "Segoe UI", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.5;
}

.page {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  padding: clamp(1.4rem, 3.5vw, 2.6rem);
  max-width: 1360px;
  margin: 0 auto;
}

/* ---- header ------------------------------------------------------------- */
.masthead {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

.wordmark {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
}

.masthead .status {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
}

.status .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ink-soft);
  display: inline-block;
}

/* ---- main --------------------------------------------------------------- */
.hero {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
  padding: clamp(2rem, 6vh, 5rem) 0;
}

.copy { max-width: 34rem; min-width: 0; }
.stage { min-width: 0; }

.copy h2 { overflow-wrap: break-word; }

.eyebrow {
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0 0 1.4rem;
}

.copy h2 {
  font-size: clamp(2.4rem, 6vw, 4.1rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  font-weight: 600;
  margin: 0 0 1.5rem;
}

.copy p {
  font-size: clamp(1.02rem, 1.4vw, 1.18rem);
  color: var(--ink-soft);
  margin: 0 0 1.1rem;
  max-width: 30rem;
}

.copy p.lead { color: var(--ink); }

.contact {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  margin-top: 1.6rem;
  font-size: 1.02rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
  transition: gap 0.2s ease, opacity 0.2s ease;
}
.contact:hover { gap: 0.85em; opacity: 0.7; }
.contact .arrow { transition: transform 0.2s ease; }
.contact:hover .arrow { transform: translateX(2px); }

/* ---- globe -------------------------------------------------------------- */
.stage {
  display: flex;
  justify-content: center;
  align-items: center;
}

#globe {
  width: clamp(260px, 40vw, 560px);
  height: clamp(260px, 40vw, 560px);
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

/* ---- footer ------------------------------------------------------------- */
.foot {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid var(--rule);
  padding-top: 1.1rem;
  font-size: 0.74rem;
  letter-spacing: 0.04em;
  color: var(--ink-faint);
}
.foot a { color: var(--ink-faint); text-decoration: none; }
.foot a:hover { color: var(--ink); }

/* ---- responsive --------------------------------------------------------- */
@media (max-width: 820px) {
  /* flex column on mobile: globe hero on top, copy below, centered vertically */
  .hero {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 1rem;
  }
  .stage { order: -1; margin-bottom: 2.75rem; }
  .copy { max-width: 100%; }
  #globe {
    width: clamp(220px, 68vw, 380px);
    height: clamp(220px, 68vw, 380px);
    max-width: 100%;
  }
  .copy h2 { font-size: clamp(2.2rem, 10vw, 3.2rem); }
  .foot { flex-direction: column; gap: 0.4rem; }
}
