@import url('https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700&family=Montserrat:wght@600;700;800&display=swap');

:root {
  --u: 8px;
  --bg-white: #fff;
  --bg-grey: #f5f5f3;
  --bg-dark: #0d0d0d;
  --bg-mid: #111;
  --text-main: #111;
  --text-muted: #6b6b6b;
  --border-color: #111;
  --transition-smooth: all 0.5s cubic-bezier(.2, .7, .2, 1);
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Lato', sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--text-main);
  background-color: var(--bg-white);
  -webkit-font-smoothing: antialiased;
}

body {
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Typography */
h1, h2, h3, .wordmark {
  font-family: var(--font-heading);
  text-transform: uppercase;
}

h1 {
  font-size: clamp(3rem, 9vw, 7.5rem);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: .95;
  color: #fff;
}

h2 {
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -.015em;
  line-height: 1.05;
}

h3 {
  font-size: 1.5rem;
  font-weight: 700;
}

.section-label {
  font-size: .7rem;
  letter-spacing: .35em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.section-label::before {
  content: "";
  display: inline-block;
  width: 40px;
  height: 1px;
  background: var(--border-color);
  margin-right: 12px;
}

.lead {
  font-size: 1.25rem;
  font-weight: 400;
  margin-bottom: 1.5rem;
}

.muted {
  color: var(--text-muted);
}

/* Progress Bar */
.progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  background: var(--bg-dark);
  width: 0%;
  z-index: 1000;
}

/* Header & Nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-white);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
  padding: 1.5rem 0;
}

.site-header.scrolled {
  border-bottom: 1px solid var(--border-color);
  padding: 1rem 0;
}

.nav-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  text-decoration: none;
  color: var(--text-main);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: .1em;
}

.logo-slot {
  display: inline-block;
  width: 30px;
  height: 30px;
  background: var(--bg-dark);
  margin-right: 10px;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-main);
  margin: 4px 0;
}

.main-nav {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: var(--bg-white);
  padding: 2rem 0;
  transform: translateY(-100%);
  transition: transform 0.4s ease;
  border-bottom: 1px solid var(--border-color);
}

.site-header.nav-open .main-nav {
  transform: translateY(0);
}

.main-nav ul {
  display: flex;
  justify-content: center;
  list-style: none;
  gap: 3rem;
}

.main-nav a {
  text-decoration: none;
  color: var(--text-main);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  position: relative;
}

.main-nav a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--text-main);
  transition: width 0.3s ease;
}

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

/* Hero Section */
.hero {
  position: relative;
  height: 100vh;
  background: linear-gradient(rgba(0,0,0,.55), rgba(0,0,0,.55)), url('../img/hero.jpg?v=2') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-frame {
  position: absolute;
  inset: 40px;
  border: 1px solid rgba(255,255,255,0.3);
  pointer-events: none;
  animation: heroFrameDraw 1.4s ease forwards;
  animation-delay: 0.5s;
}

@keyframes heroFrameDraw {
  from { transform: scale(0.96); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  padding: 0 24px;
}

.hero-title {
  margin-bottom: 1.5rem;
  animation: fadeUp 0.8s ease forwards;
  animation-delay: 0.2s;
}

.hero-sub {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  animation: fadeUp 0.8s ease forwards;
  animation-delay: 0.45s;
}

.hero-motto {
  font-style: italic;
  margin-bottom: 2.5rem;
  animation: fadeUp 0.8s ease forwards;
  animation-delay: 0.7s;
}

.hero-services {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 3rem;
  animation: fadeUp 0.8s ease forwards;
  animation-delay: 0.95s;
}

.hero-meta {
  font-size: 0.8rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  animation: fadeUp 0.8s ease forwards;
  animation-delay: 1.1s;
}

/* Scroll Cue */
.scroll-cue {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 60px;
  background: rgba(255,255,255,0.3);
}

.scroll-cue::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 10px;
  background: #fff;
  animation: scrollDot 2s infinite;
}

@keyframes scrollDot {
  0% { top: 0; }
  100% { top: 100%; }
}

/* Layout & Sections */
.section {
  padding: 120px 0;
}

.section--alt { background-color: var(--bg-grey); }
.section--dark { background-color: var(--bg-dark); color: #fff; }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
}

.section-head span.section-index {
  font-size: 0.8rem;
  letter-spacing: .2em;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.split--reverse {
  grid-template-columns: 1fr 1fr;
}

.split--reverse .photo {
  order: 2;
}

.framed {
  border: 1px solid var(--border-color);
  padding: 40px;
}

/* Media Elements */
.photo {
  margin: 0;
  overflow: hidden;
  position: relative;
}

.photo img {
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: transform 1.2s ease;
}

.photo:hover img {
  transform: scale(1.04);
}

.photo::after {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(255,255,255,0.6);
  pointer-events: none;
}

.photo--tri { clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.photo--diag { clip-path: polygon(0 0, 100% 0, 100% 78%, 0 100%); }
.photo--outline::before {
  content: "";
  position: absolute;
  top: 16px;
  left: 16px;
  right: 16px;
  bottom: 16px;
  border: 1px solid var(--border-color);
  z-index: -1;
}

/* Grids */
.list-grid, .quality-grid {
  display: grid;
  gap: 1px;
  background: var(--border-color);
  border: 1px solid var(--border-color);
  list-style: none;
}

.list-grid li, .quality-grid .q-item {
  background: var(--bg-white);
  padding: 30px;
  transition: var(--transition-smooth);
}

.section--dark .list-grid li, .section--dark .quality-grid .q-item {
  background: var(--bg-dark);
}

.quality-grid .q-item:hover {
  background: #f0f0ee;
  transform: translateY(-4px);
  border-color: var(--border-color);
}

.quality-grid { grid-template-columns: repeat(3, 1fr); }
.list-grid { grid-template-columns: repeat(2, 1fr); }

/* Stats & Timeline */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin: 40px 0;
}

.stat-value {
  font-size: 4rem;
  font-weight: 800;
  display: block;
  line-height: 1;
}

.stat-label {
  font-size: .7rem;
  letter-spacing: .3em;
  text-transform: uppercase;
}

.timeline {
  position: relative;
  padding: 40px 0;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--border-color);
}

/* Process & Quote */
.process {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.process-step {
  flex: 1 1 300px;
  padding: 40px;
  border: 1px solid var(--border-color);
}

.process-step span {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.quote {
  text-align: center;
  padding: 80px 0;
  margin: 40px 0;
}

.quote blockquote {
  font-style: italic;
  font-size: 2rem;
  max-width: 800px;
  margin: 0 auto 2rem;
  padding: 40px;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.section--dark .quote blockquote {
  border-color: #fff;
}

.quote cite {
  font-size: .7rem;
  letter-spacing: .3em;
  text-transform: uppercase;
}

/* Buttons & Forms */
.btn {
  display: inline-block;
  padding: 1rem 2rem;
  border: 1px solid var(--border-color);
  text-decoration: none;
  color: var(--text-main);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .28em;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
  transition: var(--transition-smooth);
}

.btn--light {
  color: #fff;
  border-color: #fff;
}

.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--border-color);
  transition: left 0.4s ease;
  z-index: -1;
}

.btn:hover {
  color: #fff;
}

.btn:hover::before {
  left: 0;
}

.btn--light:hover {
  color: var(--bg-dark);
}

.btn--light:hover::before {
  background: #fff;
}

.contact-list dl {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.contact-list dt {
  font-weight: 700;
  text-transform: uppercase;
  font-size: .8rem;
  margin-bottom: 0.5rem;
}

/* Footer */
.site-footer {
  background: var(--bg-dark);
  color: #fff;
  padding: 60px 0;
}

.footer-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-wrap .brand {
  font-size: 0.8rem;
  opacity: 0.6;
}

/* Animations & Utilities */
@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    transition: none;
    opacity: 1;
    transform: none;
}
}

/* Breakpoints */
@media (max-width: 900px) {
  .split, .split--reverse {
    grid-template-columns: 1fr;
  }
  .split--reverse .photo {
    order: 1;
  }
  .quality-grid {
    grid-template-columns: 1fr;
  }
  .list-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .section {
    padding: 72px 0;
  }
  .hero-title {
    font-size: 3rem;
  }
  .hero-sub {
    font-size: 1.2rem;
  }
  .nav-toggle {
    display: block;
  }
  .nav-wrap {
    padding: 1rem;
  }
}
