/* Manovica — brand tokens */
:root {
  --ember: #FF5A1F;
  --midnight: #0A0A0A;
  --charcoal: #141414;
  --graphite: #2A2A2A;
  --ash: #A8A29C;
  --bone: #F5F2EE;

  --font-head: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 16px;
  --radius-sm: 10px;
  --container: 1160px;
  --header-h: 72px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--midnight);
  color: var(--bone);
  font-family: var(--font-body);
  font-size: 1.0625rem; /* 17px */
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3 {
  font-family: var(--font-head);
  line-height: 1.1;
  margin: 0;
  color: var(--bone);
}
h1 { font-weight: 700; letter-spacing: -0.03em; }
h2 { font-weight: 600; letter-spacing: -0.025em; font-size: clamp(2rem, 5vw, 3.25rem); }
h3 { font-weight: 600; letter-spacing: -0.02em; font-size: 1.375rem; }

p { margin: 0; }

a { color: var(--bone); text-decoration-color: var(--ember); text-underline-offset: 3px; }
a:hover { color: var(--ember); }

:focus-visible {
  outline: 3px solid var(--ember);
  outline-offset: 3px;
  border-radius: 6px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  left: 16px; top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--ember);
  color: var(--midnight);
  font-weight: 600;
  border-radius: var(--radius-sm);
  text-decoration: none;
}
.skip-link:focus { top: 12px; color: var(--midnight); }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.container.narrow { max-width: 820px; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 26px;
  border-radius: 999px;
  border: 2px solid transparent;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { transform: translateY(-1px); }

.btn-primary { background: var(--ember); color: var(--midnight); }
.btn-primary:hover { background: #ff7140; color: var(--midnight); }

.btn-secondary { border-color: var(--graphite); color: var(--bone); background: transparent; }
.btn-secondary:hover { border-color: var(--bone); color: var(--bone); }

/* Header button stays quiet while the hero CTA is on screen, then turns orange.
   Keeps one orange call-to-action per screen. */
.btn-header {
  min-height: 42px;
  padding: 8px 20px;
  border-color: var(--graphite);
  color: var(--bone);
}
.btn-header:hover { border-color: var(--bone); color: var(--bone); }
.site-header.is-past-hero .btn-header { background: var(--ember); border-color: var(--ember); color: var(--midnight); }
.site-header.is-past-hero .btn-header:hover { background: #ff7140; color: var(--midnight); }
.site-header.cta-visible .btn-header { background: transparent; border-color: var(--graphite); color: var(--bone); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(10, 10, 10, 0.82);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.site-header.is-scrolled { border-bottom-color: var(--graphite); }

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand img { height: 28px; width: auto; }

.nav { display: flex; align-items: center; gap: 32px; }
.nav ul { list-style: none; display: flex; gap: 28px; margin: 0; padding: 0; }
.nav ul a {
  color: var(--ash);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 6px 0;
}
.nav ul a:hover { color: var(--bone); }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  background: transparent;
  border: 1px solid var(--graphite);
  border-radius: var(--radius-sm);
  color: var(--bone);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav-toggle svg {
  width: 22px; height: 22px; margin: auto;
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round;
}
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  min-height: calc(100svh - var(--header-h));
  display: flex;
  align-items: center;
  padding: 80px 0 96px;
  text-align: center;
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-glow {
  position: absolute;
  left: 50%; top: 55%;
  width: min(900px, 140vw);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(255, 90, 31, 0.22), rgba(255, 90, 31, 0.06) 55%, transparent 75%);
  filter: blur(10px);
  animation: glow 9s ease-in-out infinite alternate;
}
@keyframes glow {
  from { transform: translate(-50%, -50%) scale(0.9); opacity: .75; }
  to   { transform: translate(-50%, -50%) scale(1.08); opacity: 1; }
}
.hero-loop {
  position: absolute;
  left: 50%; top: 50%;
  width: min(1100px, 130vw);
  transform: translate(-50%, -46%);
  opacity: 0.16;
  overflow: visible;
}
.hero-loop path {
  fill: none;
  stroke: var(--ember);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}
.loop-path { animation: draw-loop 10s cubic-bezier(.6, 0, .3, 1) infinite; }
.loop-arrow { animation: draw-arrow 10s ease-out infinite; }
@keyframes draw-loop {
  0%   { stroke-dashoffset: 1; opacity: 1; }
  55%  { stroke-dashoffset: 0; opacity: 1; }
  88%  { stroke-dashoffset: 0; opacity: 1; }
  100% { stroke-dashoffset: 0; opacity: 0; }
}
@keyframes draw-arrow {
  0%, 52% { stroke-dashoffset: 1; opacity: 1; }
  64%  { stroke-dashoffset: 0; opacity: 1; }
  88%  { stroke-dashoffset: 0; opacity: 1; }
  100% { stroke-dashoffset: 0; opacity: 0; }
}

.hero-inner { position: relative; }
.eyebrow {
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ash);
  margin-bottom: 18px;
}
.hero .eyebrow { margin-bottom: 24px; }
.hero h1 {
  font-size: clamp(2.75rem, 9vw, 6.5rem);
  line-height: 1;
  max-width: 12ch;
  margin: 0 auto;
}
.highlight {
  display: inline-block;
  margin-top: 0.12em;
  padding: 0.02em 0.18em 0.08em;
  background: var(--ember);
  color: var(--midnight);
  border-radius: 6px;
}
.hero-sub {
  max-width: 620px;
  margin: 28px auto 0;
  font-size: clamp(1.0625rem, 2.2vw, 1.1875rem);
  color: var(--ash);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 40px;
}

/* Sections */
.section { padding: clamp(72px, 11vw, 128px) 0; }
.section + .section { border-top: 1px solid var(--graphite); }
.section-head { max-width: 680px; margin-bottom: 48px; }
.section-intro { margin-top: 16px; color: var(--ash); }
.lead { margin-top: 20px; font-size: clamp(1.0625rem, 2.2vw, 1.25rem); color: var(--ash); }

/* Problem */
.problem h2 { font-size: clamp(2.5rem, 7vw, 4.5rem); }
.problem-list { list-style: none; padding: 0; margin: 40px 0 0; }
.problem-list li {
  display: flex;
  gap: 20px;
  align-items: baseline;
  padding: 22px 0;
  border-bottom: 1px solid var(--graphite);
  font-size: clamp(1.0625rem, 2.4vw, 1.3rem);
}
.problem-list li:first-child { border-top: 1px solid var(--graphite); }
.problem-num { font-family: var(--font-head); font-weight: 600; color: var(--ember); font-size: 0.9rem; min-width: 2ch; }
.problem-close { margin-top: 32px; font-family: var(--font-head); font-weight: 600; font-size: clamp(1.25rem, 3vw, 1.6rem); letter-spacing: -0.02em; }

/* Cards and grids */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: var(--charcoal);
  border: 1px solid var(--graphite);
  border-radius: var(--radius);
  padding: 32px;
  transition: border-color .2s;
}
.card:hover { border-color: #3d3d3d; }
.card h3 { margin-bottom: 12px; }
.card p { color: var(--ash); }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: none; }
.step-num {
  display: block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 3rem;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--ember);
  margin-bottom: 28px;
}

/* Services */
.service-icon {
  width: 44px; height: 44px;
  padding: 10px;
  margin-bottom: 24px;
  border-radius: 12px;
  background: rgba(255, 90, 31, 0.1);
  fill: none;
  stroke: var(--ember);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Builds */
.build { padding: 16px 16px 28px; }
.build h3, .build p { padding: 0 12px; }
.video-placeholder {
  position: relative;
  aspect-ratio: 16 / 9;
  margin-bottom: 22px;
  border-radius: var(--radius-sm);
  border: 1px dashed #4a4a4a;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 90, 31, 0.10), transparent 60%),
    var(--midnight);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.video-placeholder iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.badge {
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bone);
  padding: 8px 14px;
  border: 1px solid var(--graphite);
  border-radius: 999px;
  background: var(--charcoal);
}

/* Why */
.why-item { padding-top: 24px; border-top: 2px solid var(--ember); }
.why-item h3 { margin-bottom: 12px; }
.why-item p { color: var(--ash); }

/* CTA */
.cta { position: relative; overflow: hidden; text-align: center; }
.cta::before {
  content: "";
  position: absolute;
  left: 50%; top: 0;
  width: min(900px, 140vw);
  aspect-ratio: 2 / 1;
  transform: translate(-50%, -40%);
  background: radial-gradient(closest-side, rgba(255, 90, 31, 0.16), transparent 75%);
  pointer-events: none;
}
.cta-inner { position: relative; }
.cta h2 { font-size: clamp(2.25rem, 6vw, 4rem); }
.cta .lead { max-width: 560px; margin: 20px auto 36px; }
.booking-placeholder {
  margin-top: 48px;
  padding: 40px 24px;
  border: 1px dashed #4a4a4a;
  border-radius: var(--radius);
  background: var(--charcoal);
  color: var(--ash);
}
.booking-label {
  font-family: var(--font-head);
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--bone);
  margin-bottom: 8px;
}

/* FAQ */
.faq { border-top: 1px solid var(--graphite); }
.faq details { border-bottom: 1px solid var(--graphite); }
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 24px 0;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(1.125rem, 2.6vw, 1.3rem);
  letter-spacing: -0.015em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: none;
  width: 14px; height: 14px;
  background:
    linear-gradient(var(--ember), var(--ember)) center / 100% 2px no-repeat,
    linear-gradient(var(--ember), var(--ember)) center / 2px 100% no-repeat;
  transition: transform .25s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--ember); }
.faq-body { padding: 0 0 26px; color: var(--ash); max-width: 680px; }

/* Footer */
.site-footer { border-top: 1px solid var(--graphite); padding: 56px 0 32px; }
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 32px;
}
.footer-brand img { height: 28px; width: auto; margin-bottom: 14px; }
.footer-brand p { color: var(--ash); }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; color: var(--ash); }
.footer-links a { color: var(--bone); }
.footer-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--graphite); color: var(--ash); font-size: 0.9rem; }

/* Responsive */
@media (max-width: 960px) {
  .grid-3, .steps { grid-template-columns: 1fr; }
  .why { gap: 32px; }
}

@media (max-width: 820px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: absolute;
    top: var(--header-h);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    padding: 8px 24px 24px;
    background: var(--midnight);
    border-bottom: 1px solid var(--graphite);
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav ul a { display: block; padding: 14px 0; font-size: 1.05rem; border-bottom: 1px solid var(--graphite); }
  .btn-header { min-height: 48px; }
  .grid-2 { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .container { padding: 0 20px; }
  .card { padding: 26px 22px; }
  .build { padding: 12px 12px 24px; }
  .build h3, .build p { padding: 0 8px; }
  .hero { padding: 56px 0 72px; min-height: auto; }
  .hero-actions .btn { width: 100%; }
  .brand img { height: 24px; }
}

/* Respect reduced motion: no looping animation, show the finished drawing */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
  .hero-glow { animation: none; }
  .loop-path, .loop-arrow { animation: none; stroke-dashoffset: 0; }
  .btn:hover { transform: none; }
}
