:root {
  --bg: #050505;
  --bg-soft: #0b0b0b;
  --panel: rgba(255, 255, 255, 0.055);
  --line: rgba(255, 255, 255, 0.12);
  --text: #f4f4f4;
  --muted: rgba(244, 244, 244, 0.68);
  --muted-2: rgba(244, 244, 244, 0.46);
  --max: 1180px;
  --header-h: 76px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img, video { max-width: 100%; display: block; }

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(18px, 4vw, 56px);
  background: linear-gradient(to bottom, rgba(0,0,0,.62), rgba(0,0,0,0));
  transition: background .25s ease, border-color .25s ease;
}
.site-header.is-scrolled {
  background: rgba(5, 5, 5, 0.78);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-weight: 650;
}
.brand img { width: 38px; height: 38px; object-fit: contain; }
.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 13px;
  color: rgba(255,255,255,.78);
}
.site-nav a { position: relative; }
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -7px;
  width: 0;
  height: 1px;
  background: white;
  transition: width .25s ease;
}
.site-nav a:hover::after { width: 100%; }
.nav-toggle { display: none; }

.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  display: grid;
  align-items: end;
  padding: calc(var(--header-h) + 60px) clamp(20px, 5vw, 70px) 70px;
}
.hero-poster, .hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-video { z-index: 1; }
.hero-poster { z-index: 0; }
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    radial-gradient(circle at 70% 40%, rgba(0,0,0,0.05), rgba(0,0,0,0.42) 45%, rgba(0,0,0,0.82) 100%),
    linear-gradient(to top, rgba(0,0,0,.82), rgba(0,0,0,.12) 48%, rgba(0,0,0,.35));
}
.hero-content {
  position: relative;
  z-index: 3;
  max-width: 860px;
}
.eyebrow, .section-kicker {
  margin: 0 0 18px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .22em;
  color: var(--muted-2);
  font-weight: 700;
}
h1, h2, h3, p { margin-top: 0; }
h1 {
  max-width: 980px;
  margin-bottom: 24px;
  font-size: clamp(44px, 7.2vw, 106px);
  line-height: .88;
  letter-spacing: -0.075em;
  font-weight: 760;
}
.hero-text {
  max-width: 640px;
  margin-bottom: 34px;
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.45;
  color: var(--muted);
}
.hero-actions, .contact-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  border: 1px solid rgba(255,255,255,.22);
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.button:hover { transform: translateY(-2px); }
.button.primary { background: white; color: #050505; }
.button.secondary {
  background: rgba(255,255,255,.08);
  color: white;
  backdrop-filter: blur(12px);
}
.scroll-cue {
  position: absolute;
  right: clamp(20px, 5vw, 70px);
  bottom: 72px;
  z-index: 3;
  writing-mode: vertical-rl;
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.section {
  padding: clamp(78px, 10vw, 140px) clamp(20px, 5vw, 70px);
  border-top: 1px solid var(--line);
}
.section-grid, .section-heading, .work-list, .service-grid, .contact-panel {
  max-width: var(--max);
  margin: 0 auto;
}
.section-grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: clamp(40px, 8vw, 110px);
}
.section h2 {
  max-width: 880px;
  font-size: clamp(34px, 5.2vw, 74px);
  line-height: .98;
  letter-spacing: -0.055em;
  margin-bottom: 22px;
}
.section p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
  max-width: 760px;
}
.section-heading { margin-bottom: 48px; }

.work-list { display: grid; gap: 34px; }
.work-card {
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(280px, .72fr);
  gap: 28px;
  align-items: stretch;
  padding: 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 28px;
}
.work-media {
  overflow: hidden;
  border-radius: 20px;
  background: #111;
  aspect-ratio: 16 / 9;
}
.work-media video { width: 100%; height: 100%; object-fit: cover; }
.work-copy {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 12px 10px 12px 4px;
}
.work-index {
  color: var(--muted-2) !important;
  font-size: 12px !important;
  letter-spacing: .2em;
}
.work-copy h3 {
  margin-bottom: 12px;
  font-size: clamp(26px, 3.4vw, 44px);
  letter-spacing: -0.045em;
  line-height: 1;
}
.work-copy p { font-size: 15px; line-height: 1.55; }
.work-copy span {
  margin-top: 26px;
  color: var(--muted-2);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .12em;
}

.services { background: var(--bg-soft); }
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.service-grid article {
  min-height: 300px;
  padding: 28px;
  background: rgba(255,255,255,.045);
  border: 1px solid var(--line);
  border-radius: 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.service-grid span {
  color: var(--muted-2);
  font-size: 12px;
  letter-spacing: .18em;
}
.service-grid h3 {
  font-size: 24px;
  letter-spacing: -0.035em;
  margin-bottom: 14px;
}
.service-grid p { font-size: 15px; line-height: 1.58; }

.about {
  background:
    radial-gradient(circle at 20% 0%, rgba(255,255,255,.08), transparent 30%),
    #050505;
}

.contact {
  background: #050505;
}
.contact-panel {
  padding: clamp(36px, 7vw, 70px);
  border: 1px solid var(--line);
  border-radius: 34px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.09), rgba(255,255,255,.035));
}
.contact-panel h2 { max-width: 820px; }

.contact-video-section {
  position: relative;
  overflow: hidden;
  min-height: 88svh;
  display: grid;
  align-items: center;
}
.contact-bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.contact-video-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 70% 40%, rgba(0,0,0,.08), rgba(0,0,0,.55) 48%, rgba(0,0,0,.9) 100%),
    linear-gradient(to top, rgba(0,0,0,.86), rgba(0,0,0,.28));
}
.contact-video-section .contact-panel {
  position: relative;
  z-index: 2;
  backdrop-filter: blur(18px);
  background:
    linear-gradient(135deg, rgba(0,0,0,.52), rgba(0,0,0,.28)),
    rgba(255,255,255,.06);
}

.site-footer {
  min-height: 92px;
  padding: 0 clamp(20px, 5vw, 70px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted-2);
  font-size: 13px;
  border-top: 1px solid var(--line);
}

@media (max-width: 880px) {
  :root { --header-h: 68px; }
  .site-header { padding-inline: 18px; }
  .brand span { display: none; }
  .nav-toggle {
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 999px;
    background: rgba(255,255,255,.05);
    display: grid;
    place-content: center;
    gap: 6px;
  }
  .nav-toggle span {
    display: block;
    width: 17px;
    height: 1px;
    background: white;
    transition: transform .2s ease;
  }
  .nav-toggle.is-open span:first-child { transform: translateY(3.5px) rotate(45deg); }
  .nav-toggle.is-open span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
  .site-nav {
    position: fixed;
    top: calc(var(--header-h) + 8px);
    left: 18px;
    right: 18px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 14px;
    background: rgba(5,5,5,.92);
    border: 1px solid var(--line);
    border-radius: 22px;
    backdrop-filter: blur(18px);
  }
  .site-nav.is-open { display: flex; }
  .site-nav a {
    padding: 16px;
    border-bottom: 1px solid rgba(255,255,255,.08);
  }
  .site-nav a:last-child { border-bottom: 0; }
  .hero {
    align-items: end;
    padding: calc(var(--header-h) + 56px) 20px 42px;
  }
  h1 {
    font-size: clamp(42px, 13vw, 76px);
    line-height: .9;
  }
  .hero-text {
    font-size: 16px;
    max-width: 94%;
  }
  .button { width: 100%; }
  .scroll-cue { display: none; }
  .section { padding: 76px 20px; }
  .section-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .section h2 { font-size: clamp(34px, 10vw, 56px); }
  .work-card {
    grid-template-columns: 1fr;
    padding: 12px;
    border-radius: 22px;
  }
  .work-copy { padding: 12px 6px 10px; }
  .service-grid { grid-template-columns: 1fr; }
  .service-grid article { min-height: 220px; }
  .contact-panel { border-radius: 24px; }
  .contact-video-section { min-height: 78svh; }
  .site-footer {
    min-height: 120px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-video,
  .contact-bg-video {
    display: none;
  }
  * { transition: none !important; }
}


/* v3 additions */
.intro-grid {
  grid-template-columns: 190px minmax(0, .95fr) minmax(280px, .75fr);
  align-items: center;
}

.intro-image {
  margin: 0;
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid var(--line);
  background: #111;
  aspect-ratio: 4 / 5;
}

.intro-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-layout {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(320px, .65fr);
  gap: clamp(32px, 6vw, 86px);
  align-items: start;
}

.about-copy h2 {
  max-width: 760px;
}

.certifications {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 34px;
  max-width: 720px;
}

.certifications div {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 18px;
  background: rgba(255,255,255,.045);
}

.certifications span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted-2);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .14em;
}

.certifications strong {
  font-size: 18px;
  letter-spacing: -0.02em;
}

.about-media {
  display: grid;
  gap: 18px;
}

.about-photo {
  width: 100%;
  border-radius: 28px;
  border: 1px solid var(--line);
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: #111;
}

.certificate-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.certificate-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: #111;
}

@media (max-width: 980px) {
  .intro-grid {
    grid-template-columns: 1fr;
  }

  .intro-image {
    aspect-ratio: 16 / 10;
  }

  .about-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 880px) {
  .certifications {
    grid-template-columns: 1fr;
  }

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


/* v4 about/certificates cleanup */
.certification-single {
  grid-template-columns: minmax(0, 1fr);
  max-width: 420px;
}



.about-media {
  align-self: start;
}

@media (max-width: 880px) {
  .certification-single {
    max-width: 100%;
  }
}


/* Certificate image: keep full document visible, no crop */
.certificate-photo {
  width: 100%;
  max-height: 320px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: #ffffff;
  padding: 10px;
  object-fit: contain;
  aspect-ratio: auto;
}
