/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  --bg:     #ffffff;
  --ink:    #0a0a0a;
  --accent: #d81e05;
  --line:   #0a0a0a;
  --mute:   #5a5a5a;

  --mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, monospace;
  --sans: "Inter", -apple-system, sans-serif;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --container: 1280px;
  --gutter: clamp(1rem, 3vw, 2rem);
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; tab-size: 2; scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { text-wrap: balance; line-height: 1; letter-spacing: -0.02em; font-weight: 800; text-transform: uppercase; }
::selection { background: var(--ink); color: var(--bg); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* =============================================================
   3. Utilities
   ============================================================= */
.container { max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.skip-link {
  position: fixed; top: -100px; left: 1rem;
  padding: .6rem 1rem; background: var(--ink); color: var(--bg);
  z-index: 9999; font-family: var(--mono); font-weight: 700;
}
.skip-link:focus { top: 1rem; }
.kicker { font-family: var(--mono); font-size: .78rem; letter-spacing: .04em; color: var(--accent); font-weight: 700; margin-bottom: .8rem; }
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s var(--ease-out), transform .5s var(--ease-out); }
.reveal.is-visible { opacity: 1; transform: none; }
.hairline-top { border-top: 1px solid var(--line); }
.hairline-bottom { border-bottom: 1px solid var(--line); }

/* =============================================================
   4. Typography
   ============================================================= */
h1 { font-size: clamp(2.6rem, 7vw, 5.2rem); }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
h3 { font-size: clamp(1.1rem, 1.8vw, 1.3rem); }
em { font-style: normal; color: var(--accent); }
.section-lede { max-width: 46ch; color: var(--mute); font-size: 1.02rem; font-family: var(--mono); }

/* =============================================================
   5. Components
   ============================================================= */
.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: 1rem 1.7rem;
  font-family: var(--mono); font-weight: 700; font-size: .88rem; letter-spacing: .02em; text-transform: uppercase;
  border: 1px solid var(--ink);
  transition: background .3s var(--ease-out), color .3s var(--ease-out);
}
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary:hover { background: var(--accent); border-color: var(--accent); }
.btn-ghost { background: var(--bg); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--bg); }

/* =============================================================
   6. Nav
   ============================================================= */
.nav {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem var(--gutter);
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.nav-brand { font-family: var(--mono); font-weight: 800; font-size: 1.1rem; letter-spacing: -0.01em; text-transform: uppercase; }
.nav-links { display: none; align-items: center; gap: 2rem; font-family: var(--mono); font-size: .82rem; font-weight: 600; text-transform: uppercase; }
.nav-links a { position: relative; }
.nav-links a:hover { color: var(--accent); }
@media (min-width: 960px) { .nav-links { display: flex; } }
.nav-cta { display: none; }
@media (min-width: 720px) { .nav-cta { display: inline-flex; padding: .7rem 1.2rem; } }
.nav-toggle { display: inline-flex; width: 40px; height: 40px; align-items: center; justify-content: center; }
@media (min-width: 960px) { .nav-toggle { display: none; } }
.nav-toggle-bars { width: 20px; height: 14px; position: relative; }
.nav-toggle-bars i { position: absolute; left: 0; width: 100%; height: 2px; background: var(--ink); transition: transform .3s var(--ease-out), opacity .3s var(--ease-out); }
.nav-toggle-bars i:nth-child(1) { top: 0; }
.nav-toggle-bars i:nth-child(2) { top: 6px; }
.nav-toggle-bars i:nth-child(3) { top: 12px; }
.nav.is-open .nav-toggle-bars i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav.is-open .nav-toggle-bars i:nth-child(2) { opacity: 0; }
.nav.is-open .nav-toggle-bars i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.nav-mobile {
  position: fixed; inset: 0; z-index: 90;
  background: var(--ink); color: var(--bg);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2rem;
  transform: translateY(-100%); transition: transform .45s var(--ease-out);
}
.nav-mobile.is-open { transform: translateY(0); }
.nav-mobile a { font-family: var(--mono); font-weight: 800; font-size: 1.6rem; text-transform: uppercase; }
@media (min-width: 960px) { .nav-mobile { display: none; } }

/* =============================================================
   7. Hero
   ============================================================= */
.hero { border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: 1fr; }
@media (min-width: 720px) { .hero-grid { grid-template-columns: 1fr 1fr; } }
.hero-text { padding: clamp(2.5rem, 6vw, 4.5rem) var(--gutter); display: flex; flex-direction: column; justify-content: center; }
@media (min-width: 720px) { .hero-text { border-right: 1px solid var(--line); } }
.hero-title { max-width: 10ch; }
.hero-sub { margin-top: 1.2rem; max-width: 40ch; font-family: var(--mono); font-size: .98rem; color: var(--mute); }
.hero-rating { display: inline-flex; align-items: center; gap: .5rem; margin-top: 1.4rem; font-family: var(--mono); font-size: .88rem; font-weight: 700; }
.hero-rating .stars { color: var(--accent); letter-spacing: 1px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.hero-media { position: relative; min-height: 340px; }
@media (min-width: 720px) { .hero-media { min-height: 0; } }
.hero-media picture, .hero-media img { width: 100%; height: 100%; object-fit: cover; }

/* =============================================================
   8. Grid manifesto
   ============================================================= */
.manifesto { border-bottom: 1px solid var(--line); }
.manifesto .grid-12 {
  display: grid; grid-template-columns: 1fr; gap: 1px; background: var(--line);
}
@media (min-width: 720px) { .manifesto .grid-12 { grid-template-columns: 7fr 5fr; } }
.manifesto .grid-12 > div { background: var(--bg); padding: clamp(2rem, 5vw, 3rem) var(--gutter); }
.manifesto p { font-family: var(--mono); font-size: 1rem; color: var(--mute); }

/* =============================================================
   9. Services — numbered grid
   ============================================================= */
.services { padding: clamp(3rem, 7vw, 5rem) 0; border-bottom: 1px solid var(--line); }
.section-head { margin-bottom: clamp(2rem, 5vw, 3rem); }
.dept-grid { display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--line); }
@media (min-width: 720px) { .dept-grid { grid-template-columns: repeat(2, 1fr); } }
.dept-item { padding: 1.6rem 0; border-bottom: 1px solid var(--line); }
@media (min-width: 720px) { .dept-item:nth-child(odd) { padding-right: 2rem; border-right: 1px solid var(--line); } .dept-item:nth-child(even) { padding-left: 2rem; } }
.dept-item .num { font-family: var(--mono); font-size: .82rem; color: var(--accent); font-weight: 700; }
.dept-item h3 { margin-top: .5rem; margin-bottom: .5rem; }
.dept-item p { color: var(--mute); font-size: .95rem; font-family: var(--mono); }

/* =============================================================
   10. Gallery
   ============================================================= */
.gallery { padding: clamp(3rem, 7vw, 5rem) 0; border-bottom: 1px solid var(--line); }
.gallery-grid { display: grid; gap: 1px; background: var(--line); grid-template-columns: repeat(2, 1fr); border: 1px solid var(--line); }
@media (min-width: 720px) { .gallery-grid { grid-template-columns: repeat(4, 1fr); } }
.gallery-item { position: relative; overflow: hidden; aspect-ratio: 3/4; background: var(--bg); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.1); transition: filter .4s var(--ease-out); }
.gallery-item:hover img { filter: grayscale(0) contrast(1.05); }

/* =============================================================
   11. Stat counter band
   ============================================================= */
.stats { border-bottom: 1px solid var(--line); }
.stats-grid { display: grid; grid-template-columns: 1fr; }
@media (min-width: 720px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }
.stat { padding: clamp(2.5rem, 6vw, 4rem) var(--gutter); text-align: center; }
@media (min-width: 720px) { .stat:first-child { border-right: 1px solid var(--line); } }
.stat-num { font-family: var(--mono); font-weight: 800; font-size: clamp(3rem, 8vw, 5rem); }
.stat-label { font-family: var(--mono); font-size: .85rem; color: var(--mute); text-transform: uppercase; margin-top: .5rem; }

/* =============================================================
   12. Demo notice
   ============================================================= */
.demo-notice { background: var(--ink); color: var(--bg); }
.demo-notice-inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .6rem;
  padding: .8rem var(--gutter); text-align: center; font-family: var(--mono); font-size: .8rem;
}
.demo-notice strong { color: var(--accent); }

/* =============================================================
   13. FAQ
   ============================================================= */
.faq { padding: clamp(3rem, 7vw, 5rem) 0; border-bottom: 1px solid var(--line); }
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.3rem 0; text-align: left; font-family: var(--mono); font-weight: 700; text-transform: uppercase; font-size: .92rem;
}
.faq-q .plus { font-size: 1.2rem; color: var(--accent); transition: transform .3s var(--ease-out); flex-shrink: 0; font-family: var(--mono); }
.faq-item.is-open .faq-q .plus { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s var(--ease-out); }
.faq-a p { padding: 0 0 1.3rem; color: var(--mute); font-family: var(--mono); font-size: .92rem; max-width: 60ch; }

/* =============================================================
   14. CTA + Footer
   ============================================================= */
.cta { padding: clamp(3.5rem, 8vw, 6rem) var(--gutter); text-align: center; border-bottom: 1px solid var(--line); }
.cta h2 { max-width: 16ch; margin-inline: auto; }
.cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; margin-top: 2rem; }

.footer { padding: clamp(2.5rem, 5vw, 3.5rem) 0 2rem; font-family: var(--mono); }
.footer-grid { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer-brand { font-weight: 800; font-size: 1.1rem; text-transform: uppercase; margin-bottom: .6rem; }
.footer h4 { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: .8rem; color: var(--mute); }
.footer ul { display: grid; gap: .5rem; font-size: .88rem; list-style: none; padding: 0; }
.footer a:hover { color: var(--accent); }
.footer-bottom { margin-top: 2.5rem; padding-top: 1.2rem; border-top: 1px solid var(--line); font-size: .76rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem; }

/* =============================================================
   15. Reduced motion
   ============================================================= */
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
