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

:root {
  --bg: #f4f4f1;
  --bg-soft: #ffffff;
  --ink: #0f0f0f;
  --muted: #575757;
  --dark: #111114;
  --dark-soft: #1b1b1f;
  --accent: #ff9f1c;
  --accent-soft: #f5c16c;
  --line: rgba(15, 15, 15, 0.13);
  --line-soft: rgba(255, 255, 255, 0.2);
  --radius: 1.2rem;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Outfit', 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 15% 10%, rgba(255, 159, 28, 0.08), transparent 28%),
    var(--bg);
  line-height: 1.5;
}

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

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

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 1.4rem;
  background: rgba(244, 244, 241, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(15, 15, 15, 0.07);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-weight: 700;
  font-size: 1rem;
}

.brand img { width: 34px; height: 34px; object-fit: contain; }

.top-nav {
  display: none;
  gap: 1.4rem;
  font-size: .93rem;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.top-nav a,
.mobile-nav a {
  color: var(--dark);
}

.phone-pill {
  padding: .55rem .95rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-weight: 600;
  font-size: .9rem;
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg-soft);
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  padding: 0 10px;
  cursor: pointer;
}

.menu-button span {
  display: block;
  height: 2px;
  width: 20px;
  background: var(--dark);
}

.mobile-nav {
  position: fixed;
  right: 1rem;
  top: 80px;
  width: min(86vw, 360px);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: .75rem;
  display: flex;
  flex-direction: column;
  gap: .4rem;
  box-shadow: 0 18px 34px rgba(15, 15, 15, 0.1);
}

.mobile-nav a {
  padding: .65rem .8rem;
  border-radius: 10px;
}

.mobile-nav a:focus { background: rgba(255, 159, 28, 0.12); }

.mobile-phone {
  border-top: 1px solid var(--line);
  margin-top: .25rem;
  padding-top: .8rem;
  font-weight: 700;
}

.site-header.is-scrolled {
  box-shadow: 0 8px 20px rgba(15, 15, 15, 0.08);
}

main {
  width: min(1120px, calc(100vw - 2rem));
  margin: 0 auto;
  padding: 2.2rem 0 4rem;
}

.section {
  padding: 3.5rem 0;
  border-top: 1px solid var(--line);
}

.section-head { max-width: 760px; }

.kicker {
  margin: 0;
  text-transform: uppercase;
  font-size: .75rem;
  letter-spacing: .16em;
  color: var(--muted);
  font-weight: 700;
}

h1, h2, h3 {
  margin: 0;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.1rem, 5vw, 3.55rem);
  margin-top: .45rem;
  max-width: 19ch;
}

.section h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.5rem);
  margin-top: .35rem;
}

h3 { font-size: 1.12rem; }

.hero-text,
.section-lead,
.contact p { max-width: 64ch; }

.hero {
  position: relative;
  padding-top: 2.4rem;
  padding-bottom: 2.6rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 2rem;
  align-items: stretch;
}

.hero-copy {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.7rem;
  background: linear-gradient(150deg, #ffffff 0%, #f9f9f5 100%);
  box-shadow: 0 18px 40px rgba(15, 15, 15, 0.07);
}

.hero-text {
  font-size: 1.05rem;
  color: #333;
  margin: 1rem 0 1.3rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: .8rem 1.05rem;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform .25s ease, box-shadow .25s ease;
}

.btn:hover,
.btn:focus-visible { transform: translateY(-1px); }

.btn-primary {
  background: linear-gradient(95deg, var(--accent), var(--accent-soft));
  color: #141414;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.btn-secondary {
  background: #111114;
  color: #f6f6f4;
}

.quick-stats {
  margin-top: 1.2rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .65rem;
}

.quick-stats div {
  border: 1px dashed var(--line);
  border-radius: .9rem;
  padding: .7rem .8rem;
  background: #fff;
}

.quick-stats strong { font-size: 1.35rem; display: block; }

.hero-media { position: relative; }

.hero-media-frame {
  border-radius: 1.6rem;
  border: 1px solid var(--line);
  overflow: hidden;
  height: 100%;
  min-height: 340px;
}

.hero-media img { width: 100%; height: 100%; object-fit: cover; }

.focus-card {
  position: absolute;
  right: 0.9rem;
  bottom: 0.8rem;
  width: min(360px, 94%);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line-soft);
  border-radius: 1rem;
  padding: .9rem .95rem;
  backdrop-filter: blur(4px);
}

.focus-card h2 { font-size: 1.1rem; margin: .35rem 0; }

.services-grid {
  margin-top: 1.2rem;
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr;
  gap: .9rem;
}

.card {
  border: 1px solid var(--line);
  border-radius: 1.1rem;
  overflow: hidden;
  background: var(--bg-soft);
}

.card-large { grid-row: span 2; }

.card-large img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.card img {
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
}

.card-body { padding: 1rem; }

.card-body span,
.timeline span,
.timeline span::before {
  font-family: 'JetBrains Mono', monospace;
  color: #444;
}

.card-body p,
.timeline p { color: #4e4e4e; font-size: .97rem; }

.timeline {
  margin: 1.2rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .8rem;
}

.timeline li {
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 1rem;
  background: var(--bg-soft);
}

.timeline span {
  width: 2rem;
  height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  margin-bottom: .6rem;
}

.timeline span::after {
  content: '';
  display: inline;
}

.gallery-grid {
  margin-top: 1.2rem;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: .85rem;
}

.gallery-grid figure {
  margin: 0;
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
}

.gallery-grid figure.wide {
  grid-column: 1 / -1;
}

.gallery-grid img { width: 100%; height: 100%; aspect-ratio: 16/10; object-fit: cover; }

.contact {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 1rem;
  align-items: stretch;
}

.contact-copy,
.contact-panel {
  border-radius: 1.2rem;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  padding: 1.3rem;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
  margin-top: 1rem;
}

.contact-panel {
  display: grid;
  gap: .3rem;
  background: linear-gradient(180deg, #151518, #222226);
  color: #f6f6f4;
}

.contact-panel a {
  padding: .32rem 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.2);
}

.site-footer {
  width: min(1120px, calc(100vw - 2rem));
  margin: 0 auto 2rem;
  border-top: 1px solid var(--line);
  padding-top: 1.2rem;
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: .92rem;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.section h2,
.section .section-lead,
.card-body,
.timeline,
.contact { opacity: 0; transform: translateY(22px); }

.section.is-visible h2,
.section.is-visible .section-lead,
.section.is-visible .card-body,
.section.is-visible .timeline,
.section.is-visible .contact {
  opacity: 1;
  transform: translateY(0);
  transition: all .8s cubic-bezier(.16,1,.3,1);
}

.hero.hero-copy,
.hero.hero-media, .hero.hero-media img {
  opacity: 0;
  transform: translateY(18px);
}

.hero.is-visible .hero-copy,
.hero.is-visible .hero-media,
.hero.is-visible .hero-media img {
  opacity: 1;
  transform: translateY(0);
  transition: all .75s cubic-bezier(.16,1,.3,1);
}

.hero.is-visible .hero-copy { transition-delay: .06s; }
.hero.is-visible .hero-media { transition-delay: .16s; }

.mobile-phone {
  margin-top: .25rem;
  border-top: 1px solid var(--line);
  padding-top: .8rem;
}

@media (min-width: 981px) {
  .top-nav { display: flex; }
  .menu-button { display: none; }
  .mobile-nav { display: none !important; }
}

@media (max-width: 980px) {
  .top-nav { display: none; }
  .phone-pill { display: none; }

  .hero-grid {
    grid-template-columns: 1fr;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .card-large { grid-row: auto; }
  .timeline { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .contact { grid-template-columns: 1fr; }
  .menu-button { display: inline-flex; }
}

@media (max-width: 720px) {
  .menu-button { display: inline-flex; }
  .site-header { padding: 0 .95rem; }
  .brand span { display: none; }

  .hero {
    margin-left: -0.35rem;
    margin-right: -0.35rem;
    width: calc(100% + .7rem);
    padding-top: 1.8rem;
  }

  .hero-grid { gap: 1rem; }
  .hero-copy { padding: 1rem; }
  .hero-media-frame { min-height: 250px; }
  .focus-card {
    width: calc(100% - 1rem);
    left: 0.5rem;
    right: auto;
  }

  .quick-stats { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }

  .site-footer {
    margin-bottom: 1.2rem;
    display: block;
  }
}
