:root {
  --bg: #0f1419;
  --bg-elevated: #171e26;
  --bg-soft: #1c2530;
  --surface: #222c38;
  --text: #e8eef4;
  --text-muted: #9aabbc;
  --accent: #d4a05a;
  --accent-strong: #e6b56e;
  --accent-dim: rgba(212, 160, 90, 0.16);
  --line: rgba(232, 238, 244, 0.1);
  --ok: #6fbf8a;
  --error: #e07a6a;
  --font-display: "Syne", system-ui, sans-serif;
  --font-body: "Source Sans 3", system-ui, sans-serif;
  --radius: 4px;
  --wrap: min(1120px, calc(100% - 2.5rem));
  --header-h: 4.25rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(212, 160, 90, 0.08), transparent 55%),
    radial-gradient(900px 500px at 100% 20%, rgba(90, 140, 180, 0.08), transparent 50%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent-strong);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: #f0c88a;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
}

h2 {
  font-size: clamp(1.85rem, 3.2vw, 2.6rem);
}

h3 {
  font-size: 1.2rem;
  margin-bottom: 0.4rem;
}

p {
  margin: 0 0 1rem;
}

.wrap {
  width: var(--wrap);
  margin-inline: auto;
}

.narrow {
  max-width: 42rem;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--accent);
  color: #111;
  padding: 0.5rem 1rem;
  z-index: 100;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  backdrop-filter: blur(12px);
  background: rgba(15, 20, 25, 0.78);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(15, 20, 25, 0.92);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: var(--accent);
  text-decoration: none;
  white-space: nowrap;
}

.brand:hover {
  color: var(--accent-strong);
}

.brand-logo {
  height: 42px;
  width: auto;
  object-fit: contain;
}

.brand-logo--new {
  height: 34px;
  max-width: min(280px, 58vw);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.35rem;
}

.site-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
}

.site-nav a:hover {
  color: var(--text);
}

.nav-cta {
  color: var(--bg) !important;
  background: var(--accent);
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius);
}

.nav-cta:hover {
  background: var(--accent-strong);
  color: var(--bg) !important;
}

.nav-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--line);
  background: transparent;
  border-radius: var(--radius);
  padding: 0.6rem;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--text);
  margin: 5px 0;
  transition: transform 0.2s ease;
}

/* Hero */
.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  display: grid;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(105deg, rgba(15, 20, 25, 0.92) 28%, rgba(15, 20, 25, 0.55) 58%, rgba(15, 20, 25, 0.75) 100%),
    linear-gradient(180deg, transparent 60%, var(--bg) 100%),
    repeating-linear-gradient(
      -18deg,
      transparent 0,
      transparent 11px,
      rgba(232, 238, 244, 0.03) 11px,
      rgba(232, 238, 244, 0.03) 12px
    ),
    radial-gradient(ellipse 80% 70% at 70% 40%, #2a3a4c 0%, #121820 70%);
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 18% 8% auto auto;
  width: min(42vw, 420px);
  height: min(42vw, 420px);
  border: 1px solid rgba(212, 160, 90, 0.22);
  border-radius: 50%;
  transform: translate(10%, -10%);
  animation: pulse-ring 7s ease-in-out infinite;
}

@keyframes pulse-ring {
  0%, 100% { opacity: 0.35; transform: translate(10%, -10%) scale(1); }
  50% { opacity: 0.7; transform: translate(10%, -10%) scale(1.04); }
}

.hero-inner {
  padding: 4.5rem 0 5rem;
}

.hero-eyebrow {
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.82rem;
  margin-bottom: 1rem;
}

.hero-title {
  font-family: var(--font-body);
  font-size: clamp(2.75rem, 7vw, 4.75rem);
  font-weight: 700;
  margin: 0 0 1.1rem;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.hero-lead {
  max-width: 34rem;
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  padding: 0.7rem 1.25rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--accent);
  color: #151914;
}

.btn-primary:hover {
  background: var(--accent-strong);
  color: #151914;
}

.btn-ghost {
  border-color: var(--line);
  color: var(--text);
  background: transparent;
}

.btn-ghost:hover {
  border-color: rgba(232, 238, 244, 0.28);
  color: var(--text);
}

/* Sections */
.section {
  padding: 5rem 0;
}

.section-alt {
  background: linear-gradient(180deg, rgba(28, 37, 48, 0.55), rgba(28, 37, 48, 0.2));
  border-block: 1px solid var(--line);
}

.section-band {
  background:
    linear-gradient(135deg, rgba(212, 160, 90, 0.12), transparent 45%),
    var(--bg-elevated);
  border-block: 1px solid var(--line);
}

.section-head {
  max-width: 40rem;
  margin-bottom: 2.5rem;
}

.section-lead {
  color: var(--text-muted);
  font-size: 1.12rem;
}

.prose p:last-child {
  margin-bottom: 0;
}

.prose-light {
  color: var(--text-muted);
  font-size: 1.12rem;
}

.service-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
}

.service-item {
  display: grid;
  grid-template-columns: minmax(11rem, 0.4fr) 1fr;
  gap: 1.25rem 2rem;
  padding: 1.35rem 0;
  border-top: 1px solid var(--line);
}

.service-item:last-child {
  border-bottom: 1px solid var(--line);
}

.service-item h3 {
  color: var(--text);
}

.service-item p {
  margin: 0;
  color: var(--text-muted);
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.work-item {
  padding: 1.5rem;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.work-item h3 {
  margin-top: 0;
  font-size: 1.1rem;
}

.work-item p {
  margin: 0;
  color: var(--text-muted);
}

.ai-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem 2.5rem;
}

.ai-item {
  padding-top: 1rem;
  border-top: 2px solid var(--accent);
}

.ai-item p {
  margin: 0;
  color: var(--text-muted);
}

.ai-note {
  margin-top: 3rem;
  padding: 1.75rem 2rem;
  max-width: 46rem;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
}

.ai-note h3 {
  margin-top: 0;
  font-size: 1.3rem;
}

.contact-block address {
  font-style: normal;
  margin: 1.5rem 0 1rem;
}

.contact-block .email-cloak a,
.email-cloak {
  color: var(--accent-strong);
}

.muted {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.site-footer {
  padding: 2.5rem 0 3rem;
  border-top: 1px solid var(--line);
  color: var(--text-muted);
  font-size: 0.95rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-inner strong {
  color: var(--text);
  display: block;
  margin-bottom: 0.35rem;
}

/* Reveal animation — only when JS enabled */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

.hero .reveal {
  transition-delay: 0.05s;
}

.hero .hero-title.reveal { transition-delay: 0.12s; }
.hero .hero-lead.reveal { transition-delay: 0.2s; }
.hero .hero-actions.reveal { transition-delay: 0.28s; }

@media (max-width: 860px) {
  .service-item {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .work-grid,
  .ai-grid {
    grid-template-columns: 1fr;
  }

  .nav-toggle {
    display: inline-block;
  }

  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.75rem 1.25rem 1.25rem;
    background: rgba(15, 20, 25, 0.97);
    border-bottom: 1px solid var(--line);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--line);
  }

  .nav-cta {
    margin-top: 0.5rem;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .hero-bg::after { animation: none; }
  .btn:hover { transform: none; }
}
