@import url('https://fonts.googleapis.com/css2?family=Big+Shoulders+Display:wght@600;700;800;900&family=Public+Sans:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  --bg: #14120e;
  --bg-alt: #1b1913;
  --bg-elevated: #211e17;
  --amber: #ffa500;
  --amber-deep: #c97a2b;
  --amber-dim: rgba(255, 165, 0, 0.14);
  --cream: #f4ede0;
  --muted: #a79d8a;
  --ink: #15120c;
  --line: rgba(255, 165, 0, 0.18);
  --font-display: 'Big Shoulders Display', sans-serif;
  --font-body: 'Public Sans', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --header-h: 84px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--cream);
  font-family: var(--font-body);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

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

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

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  margin: 0;
  color: var(--cream);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amber);
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--amber);
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 28px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  border-radius: 2px;
  border: 1px solid var(--amber);
  transition: transform .25s ease, background .25s ease, color .25s ease;
  white-space: nowrap;
}

.btn-solid {
  background: var(--amber);
  color: var(--ink);
}

.btn-solid:hover { background: var(--cream); border-color: var(--cream); transform: translateY(-2px); }

.btn-outline {
  color: var(--amber);
  background: transparent;
}

.btn-outline:hover { background: var(--amber-dim); transform: translateY(-2px); }

/* ===== Header ===== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 300;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background .3s ease, border-color .3s ease, height .3s ease;
}

.site-header.is-scrolled {
  background: rgba(20, 18, 14, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  height: 68px;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.site-logo img { height: 40px; width: auto; }

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 40px;
  margin: 0;
  padding: 0;
}

.main-nav a {
  position: relative;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--cream);
  padding: 6px 0;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0;
  height: 2px;
  background: var(--amber);
  transition: width .25s ease;
}

.main-nav a:hover::after,
.main-nav a:focus-visible::after { width: 100%; }

.header-right { display: flex; align-items: center; gap: 28px; }

.header-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--muted);
}

.header-phone:hover { color: var(--amber); }

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.menu-toggle span {
  width: 24px; height: 2px;
  background: var(--cream);
}

.nav-close { display: none; }

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.6s ease-in-out;
  z-index: -2;
}

.hero-slide.active { opacity: 1; }

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(20,18,14,0.55) 0%, rgba(20,18,14,0.72) 55%, var(--bg) 100%),
    linear-gradient(90deg, rgba(20,18,14,0.85) 0%, rgba(20,18,14,0.25) 55%);
}

.hero-inner {
  position: relative;
  padding-top: var(--header-h);
  max-width: 760px;
}

.hero h1 {
  font-size: clamp(30px, 7.4vw, 88px);
  line-height: 0.98;
  margin: 18px 0 26px;
  overflow-wrap: break-word;
}

.hero h1 span { color: var(--amber); }

.hero-sub {
  font-size: 17px;
  color: var(--cream);
  opacity: 0.82;
  max-width: 520px;
  margin: 0 0 36px;
}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-corner {
  position: absolute;
  right: 32px;
  bottom: 48px;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.08em;
  writing-mode: vertical-rl;
  display: none;
}

@media (min-width: 1000px) {
  .hero-corner { display: block; }
}

/* diagonal divider under hero */
.diagonal {
  position: relative;
  height: 72px;
  margin-top: -72px;
  z-index: 5;
  background: var(--bg);
  clip-path: polygon(0 100%, 100% calc(100% - 56px), 100% 100%);
}

/* ===== Reveal on scroll ===== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s ease, transform .7s ease;
}

.reveal.is-visible { opacity: 1; transform: none; }

.reveal-d1 { transition-delay: .1s; }
.reveal-d2 { transition-delay: .2s; }
.reveal-d3 { transition-delay: .3s; }
.reveal-d4 { transition-delay: .4s; }

/* ===== Sections ===== */
.section { padding: 120px 0; position: relative; }
.section-tight { padding: 90px 0; }
.section-alt { background: var(--bg-alt); }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 56px;
  flex-wrap: wrap;
}

.section-head h2 { font-size: clamp(34px, 4.2vw, 54px); line-height: 1.02; }

.section-index {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.1em;
}

/* ===== About split ===== */
.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-media { position: relative; }

.about-media .frame {
  position: absolute;
  inset: 18px -18px -18px 18px;
  border: 1px solid var(--amber);
  z-index: -1;
}

.about-media img { position: relative; }

.about-text p {
  color: var(--muted);
  margin: 0 0 18px;
  max-width: 46ch;
}

.about-text p:last-child { margin-bottom: 0; }

/* ===== Service bands ===== */
.service-band {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.service-band + .service-band {
  margin-top: 110px;
  padding-top: 110px;
  border-top: 1px solid var(--line);
}

.service-band.reverse .service-media { order: 2; }
.service-band.reverse .service-text { order: 1; }

.service-media { position: relative; }

.service-tag {
  position: absolute;
  top: 20px; left: 20px;
  background: var(--bg);
  border: 1px solid var(--amber);
  color: var(--amber);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  padding: 6px 12px;
}

.service-text h3 {
  font-size: clamp(26px, 3vw, 36px);
  margin-bottom: 24px;
  line-height: 1.05;
}

.service-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.service-list li {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  color: var(--cream);
  transition: padding-left .25s ease, color .25s ease;
}

.service-list li:first-child { padding-top: 0; }

.service-list li::before {
  content: "";
  flex: none;
  width: 6px; height: 6px;
  background: var(--amber);
  border-radius: 50%;
}

.service-list li:hover {
  padding-left: 8px;
  color: var(--amber);
}

/* ===== Contact ===== */
.contact-section { padding: 130px 0; }

.contact-card {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: clamp(36px, 6vw, 72px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  position: relative;
  overflow: hidden;
}

.contact-card::before {
  content: "";
  position: absolute;
  top: -40%; right: -10%;
  width: 420px; height: 420px;
  background: radial-gradient(circle, var(--amber-dim), transparent 70%);
  pointer-events: none;
}

.contact-card h2 { font-size: clamp(32px, 4vw, 48px); margin-bottom: 20px; }

.contact-lead { color: var(--muted); max-width: 40ch; margin: 0; }

.contact-data { list-style: none; margin: 0; padding: 0; }

.contact-data li {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.contact-data li:last-child { border-bottom: none; }

.contact-data .label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 6px;
}

.contact-data a:not(.btn):hover { color: var(--amber); }

.contact-data .big-link {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

/* ===== Footer ===== */
.site-footer {
  background: var(--bg);
  border-top: 1px solid var(--line);
  padding: 40px 0;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  font-size: 13px;
  color: var(--muted);
}

.footer-inner nav ul {
  list-style: none;
  display: flex;
  gap: 24px;
  margin: 0;
  padding: 0;
}

.footer-inner nav a:hover { color: var(--amber); }

/* ===== Mobile ===== */
@media (max-width: 960px) {
  .menu-toggle { display: flex; }
  .header-phone { display: none; }

  .main-nav {
    position: fixed;
    inset: 0 0 0 auto;
    width: 82%;
    max-width: 340px;
    background: var(--bg-elevated);
    border-left: 1px solid var(--line);
    transform: translateX(100%);
    transition: transform .35s ease;
    z-index: 400;
    padding: 110px 36px 40px;
  }

  .main-nav.open { transform: translateX(0); }

  .main-nav ul { flex-direction: column; gap: 30px; }
  .main-nav a { font-size: 20px; }

  .nav-overlay {
    display: none;
    position: fixed; inset: 0;
    background: rgba(10,9,6,0.6);
    z-index: 350;
  }

  .nav-overlay.open { display: block; }

  .main-nav .nav-close {
    display: block;
    position: absolute;
    top: 24px; right: 24px;
    background: none;
    border: none;
    color: var(--cream);
    font-size: 24px;
    cursor: pointer;
  }

  .about-grid,
  .service-band,
  .service-band.reverse,
  .contact-card {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .service-band .service-media,
  .service-band.reverse .service-media { order: 1; }
  .service-band .service-text,
  .service-band.reverse .service-text { order: 2; }

  .service-band + .service-band { margin-top: 60px; padding-top: 60px; }

  .about-media .frame { display: none; }

  .section { padding: 76px 0; }
  .contact-section { padding: 76px 0; }

  .footer-inner { flex-direction: column; text-align: center; }
  .footer-inner nav ul { flex-wrap: wrap; justify-content: center; }
}
