/* ====== Tokens ====== */
:root {
  --paper: #ffffff;
  --cloud: #f5f5f7;
  --mist: #fafafa;

  --ink: #1d1d1f;
  --slate: #6e6e73;
  --gold: #96591a;
  --gold-glow: rgba(214, 158, 92, 0.4);

  --glass-fill: rgba(255, 255, 255, 0.55);
  --glass-fill-hover: rgba(255, 255, 255, 0.8);
  --glass-border: rgba(29, 29, 31, 0.08);
  --glass-border-strong: rgba(29, 29, 31, 0.14);
  --hairline: rgba(29, 29, 31, 0.1);

  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --container: 1180px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; }

body {
  position: relative;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

img, svg { display: block; max-width: 100%; }

::selection { background: var(--gold); color: var(--paper); }

:focus-visible {
  outline: 1.5px solid var(--gold);
  outline-offset: 3px;
}

/* subtle paper-grain texture */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: 0.018;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ambient warm pools trailing down the page — variants of white, not color */
.atmosphere {
  z-index: 0;
  pointer-events: none;
}

.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.5;
}

.glow-1 {
  width: 680px;
  height: 680px;
  top: 560px;
  left: 4%;
  background: radial-gradient(circle, var(--gold-glow) 0%, transparent 70%);
  opacity: 0.14;
}

.glow-2 {
  width: 760px;
  height: 760px;
  top: 1480px;
  right: 2%;
  background: radial-gradient(circle, var(--cloud) 0%, transparent 70%);
  opacity: 0.9;
}

.glow-3 {
  width: 600px;
  height: 600px;
  top: 2320px;
  left: 28%;
  background: radial-gradient(circle, var(--gold-glow) 0%, transparent 70%);
  opacity: 0.1;
}

.section-inner {
  position: relative;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

.caption {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 18px;
}

.section-title {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: clamp(1.8rem, 3.2vw, 2.7rem);
  letter-spacing: -0.01em;
  line-height: 1.15;
  color: var(--ink);
  margin-bottom: 24px;
  max-width: 22ch;
}

.lede {
  color: var(--slate);
  font-size: 1rem;
  line-height: 1.7;
  max-width: 60ch;
  margin-bottom: 56px;
}

.pull-quote {
  font-weight: 200;
  font-size: clamp(1.3rem, 2.3vw, 1.75rem);
  line-height: 1.5;
  letter-spacing: -0.005em;
  color: var(--ink);
  max-width: 46ch;
}

.footnote {
  margin-top: 40px;
  color: var(--slate);
  font-size: 0.82rem;
  line-height: 1.6;
  max-width: 70ch;
}

/* ====== Nav — hidden over the hero, earns its appearance ====== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease), border-color 0.7s var(--ease);
}

.nav.is-visible,
.nav:focus-within {
  opacity: 1;
  transform: translateY(0);
  border-bottom-color: var(--hairline);
  pointer-events: auto;
}

.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 18px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wordmark {
  display: flex;
  align-items: center;
}

.logo-mark {
  height: 21px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.01em;
}

.nav-link {
  position: relative;
  color: var(--slate);
  transition: color 0.25s var(--ease);
}

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

.nav-contact {
  color: var(--ink);
  background: var(--glass-fill);
  border: 1px solid var(--glass-border);
  padding: 7px 16px;
  border-radius: 100px;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}

.nav-contact:hover {
  background: var(--glass-fill-hover);
  border-color: var(--glass-border-strong);
}

/* ====== Hero — a warmth surfacing in the white, off-center ====== */
.genesis {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--paper);
}

.genesis-point {
  position: absolute;
  top: 32%;
  left: 62%;
  width: 620px;
  height: 620px;
  transform: translate(-50%, -50%) scale(0.7);
  border-radius: 50%;
  background: radial-gradient(circle, #fff8ec 0%, #ffedcf 22%, rgba(255, 237, 207, 0.35) 48%, rgba(255, 255, 255, 0) 72%);
  filter: blur(60px);
  opacity: 0;
  animation: point-arrive 2.8s var(--ease-soft) forwards, point-breathe 10s ease-in-out 2.8s infinite;
}

@keyframes point-arrive {
  from { opacity: 0; transform: translate(-50%, -50%) scale(0.6); }
  to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

@keyframes point-breathe {
  0%, 100% { opacity: 0.75; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.04); }
}

.genesis-content {
  position: relative;
  z-index: 1;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px 14vh;
  width: 100%;
}

.genesis-word {
  font-family: var(--font-body);
  font-weight: 200;
  font-size: clamp(2.6rem, 6.6vw, 5.2rem);
  letter-spacing: -0.01em;
  color: var(--ink);
  opacity: 0;
  filter: blur(6px);
  transform: translateY(10px);
  animation: arrive 2s var(--ease-soft) 1.1s forwards;
}

.genesis-xp {
  display: inline-block;
  font-size: 0.36em;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--gold);
  vertical-align: middle;
  margin-left: 0.35em;
  opacity: 0;
  filter: blur(6px);
  animation: arrive 1.6s var(--ease-soft) 2.5s forwards;
}

.genesis-line {
  margin-top: 22px;
  font-weight: 300;
  font-size: clamp(0.95rem, 1.3vw, 1.05rem);
  letter-spacing: 0.01em;
  color: var(--slate);
  opacity: 0;
  filter: blur(6px);
  transform: translateY(10px);
  animation: arrive 1.6s var(--ease-soft) 3.3s forwards;
}

.genesis-stage {
  margin-top: 20px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.68rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--slate);
  opacity: 0;
  animation: arrive 1.6s var(--ease-soft) 4.3s forwards;
}

.stage-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
}

@keyframes arrive {
  from { opacity: 0; filter: blur(6px); transform: translateY(10px); }
  to { opacity: 1; filter: blur(0); transform: translateY(0); }
}

.scroll-hint {
  position: absolute;
  bottom: 40px;
  left: 50%;
  width: 1px;
  height: 34px;
  background: linear-gradient(to bottom, transparent, var(--glass-border-strong) 40%, transparent);
  opacity: 0;
  animation: arrive 1.6s var(--ease-soft) 5.3s forwards;
}

/* ====== Glass panels ====== */
.glass-card {
  position: relative;
  background: var(--glass-fill);
  border: 1px solid var(--glass-border);
  border-radius: 18px;
  padding: 36px 32px;
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  box-shadow: 0 12px 34px rgba(29, 29, 31, 0.04);
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease), transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.glass-card:hover {
  background: var(--glass-fill-hover);
  border-color: var(--glass-border-strong);
  transform: translateY(-3px);
  box-shadow: 0 18px 42px rgba(29, 29, 31, 0.07);
}

.card-icon {
  width: 30px;
  height: 30px;
  color: var(--slate);
  margin-bottom: 26px;
  transition: color 0.35s var(--ease);
}

.glass-card:hover .card-icon { color: var(--gold); }

.glass-card h3 {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1.08rem;
  margin-bottom: 12px;
  color: var(--ink);
}

.glass-card p {
  font-size: 0.92rem;
  font-weight: 300;
  color: var(--slate);
  line-height: 1.65;
}

.glass-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.parent-grid { grid-template-columns: repeat(3, 1fr); }

.parent-source {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}

.tier-caption { margin-top: 80px; }

.tier-grid { grid-template-columns: repeat(3, 1fr); }

.line-grid { grid-template-columns: repeat(2, 1fr); }

.status-tag {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.status-active { color: var(--gold); }
.status-open { color: var(--slate); }

/* ====== About ====== */
.about {
  position: relative;
  padding: 100px 0 130px;
  background: var(--paper);
}

.about .pull-quote { margin-top: 8px; }

/* ====== Services ====== */
.services {
  position: relative;
  padding: 100px 0 140px;
  background: var(--cloud);
}

/* ====== Architecture ====== */
.architecture {
  position: relative;
  padding: 100px 0 140px;
  background: var(--paper);
}

.spec-row {
  display: flex;
  flex-wrap: wrap;
  gap: 32px 44px;
  margin-bottom: 64px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--hairline);
}

.spec-row span {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1.15rem;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.spec-row small {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--slate);
}

/* ====== Why ====== */
.why {
  position: relative;
  padding: 100px 0 160px;
  background: var(--cloud);
}

/* ====== Footer ====== */
.footer {
  position: relative;
  border-top: 1px solid var(--hairline);
  padding: 56px 0;
  background: var(--paper);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-brand p {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.78rem;
  color: var(--slate);
  margin-top: 8px;
  letter-spacing: 0.01em;
}

.footer-logo-mark { height: 22px; }

.footer-meta {
  display: flex;
  align-items: center;
  gap: 28px;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 400;
}

.footer-meta a { color: var(--slate); }
.footer-meta a:hover { color: var(--gold); }
.footer-copy { color: var(--slate); opacity: 0.7; }

/* ====== Reveal-on-scroll: comes into focus ====== */
.reveal {
  opacity: 0;
  filter: blur(10px);
  transform: translateY(18px);
  transition: opacity 0.9s var(--ease-soft), filter 0.9s var(--ease-soft), transform 0.9s var(--ease-soft);
}

.reveal.is-visible {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
}

/* stagger cards within a grid slightly */
.glass-grid .reveal:nth-child(2) { transition-delay: 0.08s; }
.glass-grid .reveal:nth-child(3) { transition-delay: 0.16s; }
.glass-grid .reveal:nth-child(4) { transition-delay: 0.24s; }

/* ====== Responsive ====== */
@media (max-width: 900px) {
  .glass-grid { grid-template-columns: repeat(2, 1fr); }
  .parent-grid { grid-template-columns: repeat(2, 1fr); }
  .tier-grid { grid-template-columns: 1fr; }
  .nav-links { gap: 20px; }
  .genesis-point { left: 74%; width: 440px; height: 440px; }
}

@media (max-width: 640px) {
  .glass-grid, .parent-grid, .tier-grid, .line-grid { grid-template-columns: 1fr; }
  .nav-links a:not(.nav-contact) { display: none; }
  .section-inner { padding: 0 22px; }
  .genesis-content { padding: 0 22px 12vh; }
  .about, .services, .why { padding: 96px 0; }
  .architecture { padding: 80px 0 96px; }
  .genesis-point { left: 80%; width: 320px; height: 320px; }
  .spec-row { gap: 24px 32px; }
}

/* ====== Reduced motion ====== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .genesis-point { animation: none; opacity: 1; transform: translate(-50%, -50%) scale(1); }
  .genesis-word, .genesis-xp, .genesis-line, .genesis-stage, .scroll-hint {
    animation: none;
    opacity: 1;
    filter: none;
    transform: none;
  }
  .nav { transition: none; }
  .reveal {
    opacity: 1;
    filter: none;
    transform: none;
    transition: none;
  }
}
