/* =========================================================
   BOXED MEDIA — landing site
   Editorial dark aesthetic, warm amber accent
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght,SOFT,WONK@0,9..144,200..900,0..100,0..1;1,9..144,200..900,0..100,0..1&family=Geist:wght@300;400;500;600&family=Geist+Mono:wght@400;500&display=swap');

:root {
  --bg: #0c0a09;
  --bg-elev: #15110e;
  --bg-card: #18130f;
  --line: rgba(245, 241, 234, 0.08);
  --line-strong: rgba(245, 241, 234, 0.16);
  --text: #faf6ef;
  --text-dim: #a8a094;
  --text-mute: #6b6359;
  --accent: #f59e0b;
  --accent-deep: #b45309;
  --accent-glow: rgba(245, 158, 11, 0.18);

  --font-display: 'Fraunces', 'Times New Roman', serif;
  --font-body: 'Geist', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'Geist Mono', 'SF Mono', Menlo, monospace;

  --max-w: 1280px;
  --pad-x: clamp(1.25rem, 4vw, 3.5rem);
}

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

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Subtle warm grain — adds depth without distraction */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: 0.035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Soft amber glow behind hero */
body::after {
  content: '';
  position: fixed;
  top: -20vh;
  right: -20vw;
  width: 70vw;
  height: 70vw;
  pointer-events: none;
  z-index: -1;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 60%);
  filter: blur(40px);
}

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

/* ===== Navigation ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem var(--pad-x);
  background: rgba(12, 10, 9, 0.72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  font-variation-settings: 'opsz' 9, 'SOFT' 50;
}

.brand-mark {
  width: 22px;
  height: 22px;
  border: 1.5px solid var(--accent);
  border-radius: 4px;
  position: relative;
  display: inline-block;
}
.brand-mark::after {
  content: '';
  position: absolute;
  inset: 4px;
  background: var(--accent);
  border-radius: 1px;
}

.nav-links {
  display: flex;
  gap: 2rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
}
.nav-links a {
  position: relative;
  padding: 0.25rem 0;
  transition: color 0.2s ease;
}
.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: var(--accent); }

/* ===== Layout helpers ===== */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-mute);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.eyebrow::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--accent);
}

/* ===== Hero (home) ===== */
.hero {
  padding: clamp(4rem, 12vh, 9rem) var(--pad-x) clamp(3rem, 8vh, 6rem);
  max-width: var(--max-w);
  margin: 0 auto;
  position: relative;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(3.5rem, 11vw, 9.5rem);
  line-height: 0.9;
  letter-spacing: -0.04em;
  margin: 1.5rem 0 1.5rem;
  font-variation-settings: 'opsz' 144, 'SOFT' 30, 'WONK' 1;
}
.hero-title .it {
  font-style: italic;
  font-weight: 300;
  color: var(--accent);
  font-variation-settings: 'opsz' 144, 'SOFT' 100, 'WONK' 1;
}

.hero-sub {
  max-width: 38ch;
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--text-dim);
  line-height: 1.55;
  margin: 0 0 2.5rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 1.5rem;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.btn:hover {
  border-color: var(--text);
  transform: translateY(-1px);
}
.btn-primary {
  background: var(--accent);
  color: #1a0f00;
  border-color: var(--accent);
  font-weight: 600;
}
.btn-primary:hover {
  background: #fbbf24;
  border-color: #fbbf24;
  box-shadow: 0 8px 24px -8px var(--accent-glow);
}
.btn .arrow {
  transition: transform 0.25s ease;
}
.btn:hover .arrow { transform: translateX(3px); }

/* ===== Section headers ===== */
.section {
  padding: clamp(3rem, 8vh, 6rem) 0;
  border-top: 1px solid var(--line);
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 3rem;
  gap: 2rem;
  flex-wrap: wrap;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  margin: 0;
  letter-spacing: -0.02em;
  line-height: 1.1;
  font-variation-settings: 'opsz' 144, 'SOFT' 50;
}
.section-title em {
  font-style: italic;
  color: var(--accent);
  font-weight: 300;
}

.section-meta {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-mute);
}

/* ===== Service grid ===== */
.services {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
}

.service {
  display: flex;
  flex-direction: column;
  padding: 2rem 1.75rem 1.75rem;
  background: var(--bg-card);
  position: relative;
  min-height: 260px;
  transition: background 0.3s ease;
  overflow: hidden;
}
.service::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, var(--accent-glow), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.service:hover { background: var(--bg-elev); }
.service:hover::before { opacity: 1; }

.service-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-mute);
  margin-bottom: 1.5rem;
}

.service-name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 2rem;
  letter-spacing: -0.02em;
  line-height: 1;
  margin: 0 0 0.5rem;
  font-variation-settings: 'opsz' 144, 'SOFT' 40;
}

.service-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 1rem;
}

.service-desc {
  color: var(--text-dim);
  font-size: 0.92rem;
  line-height: 1.55;
  flex: 1;
  margin: 0 0 1.5rem;
}

.service-link {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text);
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  transition: color 0.2s ease;
}
.service-link span { letter-spacing: 0.02em; }
.service:hover .service-link { color: var(--accent); }
.service:hover .service-link .arrow { transform: translateX(4px); }
.service-link .arrow { transition: transform 0.25s ease; }

/* ===== About page ===== */
.page-hero {
  padding: clamp(4rem, 10vh, 7rem) var(--pad-x) clamp(2rem, 5vh, 4rem);
  max-width: var(--max-w);
  margin: 0 auto;
}

.page-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(3rem, 8vw, 6.5rem);
  line-height: 0.95;
  letter-spacing: -0.035em;
  margin: 1.5rem 0 1.5rem;
  font-variation-settings: 'opsz' 144, 'SOFT' 30, 'WONK' 1;
}
.page-title em {
  font-style: italic;
  color: var(--accent);
  font-weight: 300;
}

.page-lede {
  max-width: 52ch;
  font-size: clamp(1.1rem, 1.5vw, 1.35rem);
  color: var(--text-dim);
  line-height: 1.55;
}

/* ===== Long-form content ===== */
.prose {
  display: grid;
  grid-template-columns: minmax(0, 220px) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 5rem);
  padding: clamp(3rem, 6vh, 5rem) 0;
  border-top: 1px solid var(--line);
}
@media (max-width: 760px) {
  .prose {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

.prose-label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-mute);
  position: sticky;
  top: 5rem;
  align-self: start;
}
.prose-label span {
  display: block;
  color: var(--accent);
  margin-bottom: 0.4rem;
}

.prose-body h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.75rem, 3vw, 2.4rem);
  letter-spacing: -0.02em;
  margin: 0 0 1.5rem;
  line-height: 1.15;
  font-variation-settings: 'opsz' 144, 'SOFT' 50;
}
.prose-body h2 em {
  font-style: italic;
  color: var(--accent);
  font-weight: 300;
}

.prose-body h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.25rem;
  margin: 2.25rem 0 0.75rem;
  font-variation-settings: 'opsz' 60;
}

.prose-body p {
  color: var(--text-dim);
  font-size: 1rem;
  line-height: 1.7;
  margin: 0 0 1.1rem;
  max-width: 62ch;
}

.prose-body strong {
  color: var(--text);
  font-weight: 500;
}

.prose-body a {
  color: var(--accent);
  border-bottom: 1px solid var(--accent-deep);
  transition: color 0.2s ease, border-color 0.2s ease;
}
.prose-body a:hover {
  color: #fbbf24;
  border-color: #fbbf24;
}

/* Numbered step list */
.steps {
  list-style: none;
  counter-reset: step;
  padding: 0;
  margin: 1.25rem 0 1.5rem;
  display: grid;
  gap: 1.25rem;
}
.steps li {
  counter-increment: step;
  padding: 1.1rem 1.25rem 1.1rem 3.75rem;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 6px;
  position: relative;
  color: var(--text-dim);
  line-height: 1.55;
  max-width: 62ch;
}
.steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  top: 1.1rem;
  left: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 500;
}
.steps li strong { color: var(--text); }

/* FAQ */
.faq details {
  border-top: 1px solid var(--line);
  padding: 1.4rem 0;
  cursor: pointer;
}
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.15rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  color: var(--text);
  font-variation-settings: 'opsz' 60, 'SOFT' 40;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  font-family: var(--font-mono);
  font-weight: 300;
  font-size: 1.5rem;
  color: var(--accent);
  transition: transform 0.25s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p {
  margin: 0.85rem 0 0;
  color: var(--text-dim);
  line-height: 1.65;
  max-width: 62ch;
}

/* ===== Footer ===== */
.footer {
  margin-top: 4rem;
  padding: 2.5rem var(--pad-x);
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-mute);
  flex-wrap: wrap;
  gap: 1rem;
}
.footer a { color: var(--text-dim); transition: color 0.2s ease; }
.footer a:hover { color: var(--accent); }

/* ===== Reveal-on-load ===== */
@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
.rise { animation: rise 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.d1 { animation-delay: 0.05s; }
.d2 { animation-delay: 0.15s; }
.d3 { animation-delay: 0.28s; }
.d4 { animation-delay: 0.42s; }
.d5 { animation-delay: 0.55s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
