/* Digital Dreamers — matches the Pegasus business cards */

@font-face { font-family: "Cormorant Garamond"; font-weight: 500; font-style: normal; font-display: swap; src: url("/fonts/cormorant-garamond-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-weight: 600; font-style: normal; font-display: swap; src: url("/fonts/cormorant-garamond-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-weight: 500; font-style: italic; font-display: swap; src: url("/fonts/cormorant-garamond-latin-500-italic.woff2") format("woff2"); }
@font-face { font-family: "Jost"; font-weight: 300; font-display: swap; src: url("/fonts/jost-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: "Jost"; font-weight: 400; font-display: swap; src: url("/fonts/jost-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Jost"; font-weight: 500; font-display: swap; src: url("/fonts/jost-latin-500-normal.woff2") format("woff2"); }

:root {
  --night: #0B0B0C;
  --night-2: #131315;
  --paper: #F7F5F0;
  --mute: #A9A59C;
  --gold: #C9A24B;
  --gold-soft: rgba(201, 162, 75, 0.38);
  --gold-faint: rgba(201, 162, 75, 0.16);
  --error: #E38B78;

  --serif: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --sans: "Jost", "Avenir Next", "Segoe UI", sans-serif;

  --gutter: clamp(20px, 5vw, 72px);
  --max: 1180px;
}

* { box-sizing: border-box; }
html { color-scheme: dark; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--night);
  color: var(--paper);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
::selection { background: var(--gold); color: var(--night); }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; border-radius: 2px; }

.skip {
  position: absolute; left: -9999px; top: 12px;
  background: var(--gold); color: var(--night); padding: 8px 14px; text-decoration: none; z-index: 10;
}
.skip:focus { left: 12px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Header ---------- */
.site-header { position: relative; z-index: 3; }
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 28px; padding-bottom: 28px;
}
.wordmark {
  font-family: var(--serif); font-weight: 500; font-size: 1.6rem; line-height: 1;
  text-decoration: none; letter-spacing: 0.005em;
}
.nav { display: flex; gap: clamp(18px, 3vw, 36px); align-items: center; }
.nav a {
  text-decoration: none; font-size: 0.95rem; font-weight: 400; color: var(--mute);
  padding: 6px 0; border-bottom: 1px solid transparent;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--paper); border-bottom-color: var(--gold); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--sans); font-size: 1rem; font-weight: 400; letter-spacing: 0.02em;
  color: var(--paper); background: transparent; text-decoration: none; cursor: pointer;
  border: 1px solid var(--gold); padding: 15px 26px; border-radius: 999px;
  transition: background-color .2s ease, color .2s ease;
}
.btn::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--gold);
  box-shadow: 0 0 0 4px var(--gold-faint);
}
.btn:hover { background: var(--gold); color: var(--night); }
.btn:hover::before { background: var(--night); box-shadow: none; }
.btn[disabled] { opacity: .55; cursor: progress; }

/* ---------- Hero (card front) ---------- */
.hero { position: relative; overflow: hidden; min-height: min(88vh, 820px); display: flex; flex-direction: column; }
.hero-sky {
  position: absolute; inset: 0; pointer-events: none;
}
.hero-sky svg { position: absolute; right: -6%; top: 4%; width: min(56vw, 820px); height: auto; }
.hero .wrap { position: relative; z-index: 2; margin-top: auto; padding-bottom: clamp(56px, 10vh, 110px); }
.hero h1 {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(3.1rem, 8.4vw, 7.25rem); line-height: 0.94; letter-spacing: -0.012em;
  margin: 0 0 22px; max-width: 11ch;
}
.tagline {
  font-size: 0.8rem; font-weight: 400; letter-spacing: 0.32em; text-transform: uppercase; color: var(--gold);
  margin: 0 0 30px;
}
.hero .lede { font-size: clamp(1.08rem, 1.5vw, 1.25rem); max-width: 44ch; color: var(--paper); margin: 0 0 38px; }

/* constellation draw-in: the page's one motion moment */
.sky-line { stroke-dasharray: 400; stroke-dashoffset: 400; animation: draw 2.2s ease-out forwards; }
.sky-star { opacity: 0; animation: appear 1.4s ease-out forwards; }
.enif-core { animation: appear 1s ease-out 1.6s forwards, pulse 5s ease-in-out 3s infinite; opacity: 0; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes appear { to { opacity: var(--o, 1); } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .72; } }

@media (prefers-reduced-motion: reduce) {
  .sky-line { animation: none; stroke-dashoffset: 0; }
  .sky-star, .enif-core { animation: none; opacity: var(--o, 1); }
  .btn { transition: none; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(80px, 12vw, 150px) 0; }
.section + .section { padding-top: 0; }
.h2 {
  font-family: var(--serif); font-weight: 500; font-size: clamp(2.2rem, 4.4vw, 3.4rem);
  line-height: 1.04; margin: 0 0 24px; letter-spacing: -0.005em;
}
.prose { max-width: 60ch; color: var(--paper); }
.prose p { margin: 0 0 1em; }
.muted { color: var(--mute); }

/* About: text + proof */
.about { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(40px, 7vw, 110px); align-items: end; }
.proof { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--gold-soft); }
.proof li { padding: 6px 0 22px 28px; position: relative; }
.proof li:last-child { padding-bottom: 6px; }
.proof li::before {
  content: ""; position: absolute; left: -4px; top: 22px; width: 7px; height: 7px; border-radius: 50%; background: var(--gold);
}
.proof strong { display: block; font-family: var(--serif); font-weight: 500; font-size: 2.6rem; line-height: 1.1; color: var(--paper); }
.proof span { color: var(--mute); font-size: 0.98rem; }

/* Services: three nodes on one line */
.services-head { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: end; margin-bottom: clamp(48px, 7vw, 84px); }
.services-head p { margin: 0; color: var(--mute); max-width: 48ch; }
.network { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 4vw, 56px); position: relative; }
.network::before {
  content: ""; position: absolute; left: 0; right: 0; top: 5px; height: 1px;
  background: linear-gradient(90deg, var(--gold-soft), var(--gold-soft) 85%, transparent);
}
.network li { position: relative; padding-top: 44px; }
.network li::before {
  content: ""; position: absolute; left: 0; top: 0; width: 11px; height: 11px; border-radius: 50%;
  background: var(--night); border: 1px solid var(--gold);
}
.network li:first-child::before { background: var(--gold); box-shadow: 0 0 0 6px var(--gold-faint); }
.network h3 { font-family: var(--serif); font-weight: 500; font-size: 1.75rem; line-height: 1.15; margin: 0 0 14px; }
.network p { margin: 0; color: var(--mute); max-width: 36ch; }

/* ---------- Card back: lit node + content ---------- */
.card-back { position: relative; overflow: hidden; border-top: 1px solid var(--gold-faint); }
.section.card-back { padding-top: clamp(72px, 10vw, 130px); }
.card-back .wrap { position: relative; display: grid; grid-template-columns: 160px 1fr; gap: clamp(20px, 4vw, 56px); align-items: start; }
.node-col { position: relative; min-height: 130px; }
.node-col svg { position: absolute; left: 0; top: 0; width: 160px; height: 140px; overflow: visible; }
.card-back .h2 { margin-top: 6px; }
.card-back .prose { margin-bottom: 34px; }

/* Contact page */
.contact-main { overflow: hidden; }
.contact-top { padding-top: clamp(48px, 8vw, 96px); padding-bottom: clamp(80px, 10vw, 130px); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(40px, 7vw, 100px); align-items: start; }
.contact-title { font-family: var(--serif); font-weight: 500; font-size: clamp(2.8rem, 6vw, 4.6rem); line-height: 0.98; margin: 0 0 22px; }
.direct { margin-top: 40px; list-style: none; padding: 0; }
.direct li { margin-bottom: 10px; }
.direct a { text-decoration: none; border-bottom: 1px solid var(--gold-soft); }
.direct a:hover { border-bottom-color: var(--gold); }

.form { display: grid; gap: 22px; }
.field { display: grid; gap: 8px; }
.field label { font-size: 0.95rem; color: var(--paper); font-weight: 400; }
.field .hint { color: var(--mute); font-weight: 300; }
.field input, .field textarea {
  width: 100%; font: inherit; color: var(--paper);
  background: var(--night-2); border: 1px solid rgba(247, 245, 240, 0.14); border-radius: 6px;
  padding: 14px 16px; transition: border-color .15s ease;
}
.field textarea { min-height: 170px; resize: vertical; line-height: 1.55; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-faint); }
.field input:user-invalid, .field textarea:user-invalid { border-color: var(--error); }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { min-height: 1.6em; margin: 0; font-size: 0.98rem; }
.form-status.ok { color: var(--gold); }
.form-status.err { color: var(--error); }
.sent { border-left: 1px solid var(--gold); padding: 8px 0 8px 24px; }
.sent h2 { font-family: var(--serif); font-weight: 500; font-size: 2rem; margin: 0 0 8px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--gold-faint); }
.site-footer .wrap {
  display: flex; flex-wrap: wrap; gap: 14px 32px; align-items: center; justify-content: space-between;
  padding-top: 34px; padding-bottom: 40px; color: var(--mute); font-size: 0.92rem;
}
.site-footer nav { display: flex; gap: 24px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--paper); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .about, .services-head, .contact-grid { grid-template-columns: 1fr; }
  .network { grid-template-columns: 1fr; gap: 40px; }
  .network::before { left: 5px; right: auto; top: 6px; bottom: 6px; width: 1px; height: auto; background: var(--gold-soft); }
  .network li { padding-top: 0; padding-left: 40px; }
  .hero-sky svg { width: 125vw; right: -38vw; top: 4%; opacity: .75; }
  .card-back .wrap { grid-template-columns: 1fr; }
  .node-col { min-height: 96px; }
}
@media (max-width: 520px) {
  .site-header .wrap { padding-top: 20px; padding-bottom: 20px; }
  .wordmark { font-size: 1.35rem; }
  .hero { min-height: 92vh; }
  .tagline { letter-spacing: 0.24em; font-size: 0.72rem; }
  .btn { width: 100%; justify-content: center; }
}

/* About page */
.about-page .lede { font-size: clamp(1.15rem, 1.7vw, 1.35rem); margin: 0 0 1.4em; }
.about-split { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: clamp(40px, 7vw, 110px); align-items: start; }
.believe { padding-top: clamp(0px, 2vw, 28px); }
.believe-title { font-family: var(--serif); font-weight: 500; font-size: clamp(1.7rem, 2.6vw, 2.2rem); line-height: 1.1; margin: 0 0 22px; color: var(--paper); }
.beliefs { list-style: none; margin: 0; padding: 0 0 0 28px; border-left: 1px solid var(--gold-soft); }
@media (max-width: 900px) { .about-split { grid-template-columns: 1fr; } }
.beliefs li { padding: 6px 0 18px; }
.beliefs li:last-child { padding-bottom: 6px; }
.beliefs strong { font-weight: 400; color: var(--paper); font-family: var(--serif); font-size: 1.25em; }
.beliefs li { color: var(--mute); }
.team { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); }
.person { border: 1px solid var(--gold-soft); background: var(--night-2); border-radius: 6px; padding: clamp(24px, 3vw, 40px); }
.person h3 { font-family: var(--serif); font-weight: 500; font-size: 1.9rem; line-height: 1.1; margin: 0 0 6px; }
.person .role { color: var(--gold); margin: 0 0 1.2em; font-size: 0.95rem; letter-spacing: 0.02em; }
.person p { margin: 0 0 1em; }
@media (max-width: 800px) { .team { grid-template-columns: 1fr; } }
.believe-cta { margin-top: 36px; }

/* Legal pages */
.legal h2 { font-family: var(--serif); font-weight: 500; font-size: 1.7rem; line-height: 1.15; margin: 1.8em 0 0.5em; }
.legal a { color: var(--paper); text-decoration-color: var(--gold); text-underline-offset: 3px; }
