/* Empyreus — design tokens, base styles, layout and sections. No JavaScript anywhere. */

:root {
  --ink: #0B1026;
  --ink-2: #141A3A;
  --ink-3: #1C2450;
  --ember: #E8712B;
  --ember-text: #B0491B;
  --gold: #F2B85A;
  --paper: #F5F1E8;
  --paper-2: #EAE4D6;
  --line: #D9D2C2;
  --line-ink: rgba(245, 241, 232, 0.14);
  --text: #1A1A2E;
  --muted: #5B6078;
  --on-ink: #F5F1E8;
  --on-ink-muted: #A9B0CC;
  --font-display: "Instrument Serif", Georgia, "Times New Roman", serif;
  --font-body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --container: 1120px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 8px;
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
}

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

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--font-display); font-weight: 400; line-height: 1.05; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.75rem, 8vw, 5.5rem); }
h2 { font-size: clamp(2.25rem, 5vw, 3.5rem); margin-bottom: 1rem; }
h3 { font-size: 1.6rem; margin-bottom: 0.5rem; }
p { margin: 0 0 1rem; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
:focus-visible { outline: 3px solid var(--ember); outline-offset: 3px; }

.skip-link {
  position: absolute; top: 8px; left: -999px; z-index: 100;
  padding: 0.6rem 1rem; background: var(--ember); color: var(--ink);
  font-weight: 600; border-radius: var(--radius); text-decoration: none;
}
.skip-link:focus { left: 8px; }

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

/* Top bar */
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem 2rem; padding-block: 1.25rem; position: relative; z-index: 2;
}
.wordmark { font-family: var(--font-display); font-size: 1.75rem; letter-spacing: 0.01em; text-decoration: none; }
.topbar nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; font-size: 0.95rem; font-weight: 500; }
.topbar nav a { text-decoration: none; opacity: 0.85; }
.topbar nav a:hover, .topbar nav a:focus-visible { opacity: 1; text-decoration: underline; }
.page-header { background: var(--ink); color: var(--on-ink); border-bottom: 1px solid var(--line-ink); }

/* Hero */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--ink); color: var(--on-ink);
  display: flex; flex-direction: column; min-height: min(92vh, 900px);
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(55% 40% at 50% 102%, rgba(232, 113, 43, 0.55) 0%, rgba(232, 113, 43, 0.12) 45%, rgba(232, 113, 43, 0) 72%),
    radial-gradient(120% 90% at 50% -10%, var(--ink-3) 0%, var(--ink) 60%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: var(--grain); opacity: 0.16; mix-blend-mode: soft-light;
}
.hero-body {
  flex: 1; display: flex; flex-direction: column; justify-content: center;
  padding-block: clamp(3rem, 10vw, 7rem) clamp(4rem, 12vw, 8rem);
}
.eyebrow { font-size: 0.85rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); margin-bottom: 1.5rem; }
.hero h1 { max-width: 12ch; margin-bottom: 1.5rem; }
.hero h1 em { font-style: italic; color: var(--gold); }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.35rem); line-height: 1.55; color: var(--on-ink-muted); max-width: 40rem; margin-bottom: 2.25rem; }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem 1rem; margin-bottom: 3rem; }
.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3rem; padding: 0.75rem 1.5rem; border-radius: 999px;
  font-weight: 600; text-decoration: none; border: 1px solid transparent;
  transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.button--primary { background: var(--ember); color: var(--ink); }
.button--primary:hover { background: var(--gold); transform: translateY(-1px); }
.button--ghost { border-color: var(--line-ink); color: var(--on-ink); }
.button--ghost:hover { border-color: var(--gold); color: var(--gold); }
.facts-strip { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem 2rem; font-size: 0.9rem; color: var(--on-ink-muted); }
.facts-strip li { display: flex; align-items: center; gap: 0.6rem; }
.facts-strip li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.horizon { height: 1px; opacity: 0.7; background: linear-gradient(90deg, transparent 0%, var(--gold) 30%, var(--gold) 70%, transparent 100%); }

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}
.hero [data-rise] { animation: rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.hero [data-rise="1"] { animation-delay: 0.05s; }
.hero [data-rise="2"] { animation-delay: 0.15s; }
.hero [data-rise="3"] { animation-delay: 0.28s; }
.hero [data-rise="4"] { animation-delay: 0.4s; }
.hero [data-rise="5"] { animation-delay: 0.52s; }

/* Sections */
.section { padding-block: clamp(4rem, 10vw, 7.5rem); }
.section--paper { background: var(--paper); color: var(--text); }
.section--ink { background: var(--ink-2); color: var(--on-ink); }
.kicker { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ember-text); margin-bottom: 0.75rem; }
.section--ink .kicker { color: var(--gold); }
.intro { font-size: 1.15rem; color: var(--muted); max-width: 40rem; margin-bottom: 2.5rem; }
.section--ink .intro { color: var(--on-ink-muted); }

/* Services */
.grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card {
  background: rgba(255, 255, 255, 0.45); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.75rem 1.5rem 1.5rem;
}
.card-index { display: block; font-family: var(--font-display); font-style: italic; font-size: 1.5rem; color: var(--ember-text); margin-bottom: 1rem; }
.card p { margin: 0; color: var(--muted); font-size: 1rem; }

/* Approach */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 2rem; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.steps li { border-top: 1px solid var(--line-ink); padding-top: 1.5rem; }
.step-index { display: block; font-family: var(--font-display); font-size: 3.5rem; line-height: 1; color: var(--gold); margin-bottom: 0.75rem; }
.steps p { margin: 0; color: var(--on-ink-muted); }

/* Company */
.company { display: grid; gap: 3rem; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); align-items: start; }
.facts { margin: 0; display: grid; gap: 0.75rem; border-top: 2px solid var(--ink); padding-top: 1.25rem; }
.facts div { display: flex; justify-content: space-between; gap: 1rem; border-bottom: 1px solid var(--line); padding-bottom: 0.75rem; }
.facts dt { color: var(--muted); font-size: 0.9rem; }
.facts dd { margin: 0; font-weight: 500; text-align: right; }

/* Contact */
.contact-email {
  display: inline-block; font-family: var(--font-display);
  font-size: clamp(1.9rem, 5vw, 3.25rem); line-height: 1.1;
  color: var(--gold); text-decoration: none; border-bottom: 2px solid var(--ember);
  margin-bottom: 2rem; overflow-wrap: anywhere;
}
.contact-email:hover { color: var(--on-ink); border-color: var(--gold); }
address { font-style: normal; color: var(--on-ink-muted); line-height: 1.7; }

/* Footer */
.footer { background: var(--ink); color: var(--on-ink-muted); padding-block: 2.5rem; font-size: 0.85rem; border-top: 1px solid var(--line-ink); }
.legal { margin-bottom: 0.5rem; line-height: 1.7; }
.footer a { color: var(--on-ink); }
.footer-links { margin: 0; }

/* Inner pages */
.prose { max-width: 44rem; }
.prose h1 { font-size: clamp(2.5rem, 6vw, 4rem); margin-bottom: 1rem; }
.prose h2 { font-size: 1.75rem; margin-top: 2.5rem; margin-bottom: 0.5rem; }
.prose a { color: var(--ember-text); }
.notfound { min-height: 70vh; display: flex; align-items: center; }
.notfound h1 { margin-bottom: 1rem; }

/* Responsive */
@media (max-width: 960px) {
  .grid, .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .company { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .grid, .steps { grid-template-columns: 1fr; }
  .topbar { padding-block: 1rem; }
  .topbar nav ul { gap: 0.25rem 1rem; font-size: 0.9rem; }
  .hero { min-height: auto; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero [data-rise] { animation: none; }
  .button { transition: none; }
}
