/* ==========================================================================
   Human V2 — Optimized CSS
   Instant load, faster animations, better mobile, semantic structure
   ========================================================================== */

/* Reset & Base */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.8;
  color: #1a1a1a;
  background-color: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography — proper hierarchy */
h1 {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 400;
  line-height: 1.2;
  color: #1a1a1a;
  margin-bottom: 20px;
}

h2 {
  font-size: clamp(24px, 3.5vw, 32px);
  font-weight: 400;
  line-height: 1.3;
  color: #1a1a1a;
  margin-bottom: 20px;
}

h3 {
  font-size: clamp(18px, 2.5vw, 24px);
  font-weight: 400;
  line-height: 1.4;
  color: #1a1a1a;
  margin-bottom: 12px;
}

h4 {
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #888;
  margin-bottom: 30px;
}

p {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.8;
  margin-bottom: 16px;
  color: #333;
}

a {
  color: #1a1a1a;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #666;
}

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

/* Skip to content for accessibility */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: #000;
  color: #fff;
  padding: 8px 16px;
  z-index: 10000;
  font-size: 14px;
}

.skip-link:focus {
  top: 0;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0);
  padding: 24px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.2s ease, padding 0.2s ease, box-shadow 0.2s ease;
}

.site-header.scrolled {
  background-color: rgba(255, 255, 255, 0.97);
  padding: 14px 48px;
  box-shadow: 0 1px 16px rgba(0, 0, 0, 0.06);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.logo a {
  display: flex;
  align-items: center;
}

.logo img {
  height: 28px;
  width: auto;
  filter: brightness(0) invert(1);
  transition: filter 0.2s ease;
}

.site-header.scrolled .logo img {
  filter: none;
}

.main-nav {
  display: flex;
  gap: 32px;
  align-items: center;
}

.main-nav a {
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.3px;
  color: #fff;
  transition: color 0.2s ease;
  position: relative;
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background-color: #fff;
  transition: width 0.2s ease;
}

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

.main-nav a:hover {
  color: rgba(255,255,255,0.8);
}

/* Scrolled state — dark links on white header */
.site-header.scrolled .main-nav a {
  color: #333;
}

.site-header.scrolled .main-nav a::after {
  background-color: #1a1a1a;
}

.site-header.scrolled .main-nav a:hover {
  color: #1a1a1a;
}

/* Mobile nav close button — only visible on mobile */
.nav-close {
  display: none;
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  font-size: 32px;
  color: #1a1a1a;
  cursor: pointer;
  line-height: 1;
  padding: 4px 8px;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
  padding: 8px;
  z-index: 1001;
}

.hamburger span {
  width: 24px;
  height: 2px;
  background-color: #fff;
  transition: transform 0.25s ease, opacity 0.2s ease, background-color 0.2s ease;
  transform-origin: center;
}

.site-header.scrolled .hamburger span {
  background-color: #1a1a1a;
}

.hamburger.active span {
  background-color: #1a1a1a;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ==========================================================================
   Hero Section — fullscreen video background
   ========================================================================== */
.hero {
  width: 100%;
  min-height: 100vh;
  background: #000;
  position: relative;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

/* ==========================================================================
   Sections
   ========================================================================== */
.section {
  padding: 80px 48px;
  max-width: 1200px;
  margin: 0 auto;
}

.section--dark {
  background-color: #1a1a1a;
  color: #fff;
  max-width: 100%;
}

.section--dark .section-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 48px;
}

.section--dark h1,
.section--dark h2,
.section--dark h3 {
  color: #fff;
}

.section--dark p {
  color: #ccc;
}

.section--dark .section-label {
  color: #666;
}

/* Dividers */
.divider {
  height: 1px;
  background-color: #e8e8e8;
  margin: 0;
}

/* Section Labels */
.section-label {
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #999;
  margin-bottom: 32px;
}

/* ==========================================================================
   Introduction
   ========================================================================== */
.introduction h2 {
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.25;
  max-width: 900px;
  font-weight: 400;
}

/* ==========================================================================
   Case Studies
   ========================================================================== */
.case-studies {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 48px;
}

.case-study {
  transition: transform 0.2s ease;
}

.case-study:hover {
  transform: translateY(-6px);
}

.case-study img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  margin-bottom: 16px;
  border-radius: 4px;
  transition: transform 0.2s ease;
}

.case-study:hover img {
  transform: scale(1.02);
}

.case-study h3 {
  font-size: 16px;
  font-weight: 400;
  margin-bottom: 6px;
  color: #1a1a1a;
}

.case-study p {
  font-size: 14px;
  color: #999;
  margin-bottom: 0;
}

.see-more {
  margin-top: 48px;
  text-align: center;
}

.see-more a {
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: color 0.2s ease;
}

/* ==========================================================================
   Experience
   ========================================================================== */
.experience-text {
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 400;
  line-height: 1.6;
  margin-bottom: 16px;
  color: #1a1a1a;
}

.experience-subtitle {
  font-size: 14px;
  color: #999;
  margin-bottom: 24px;
}

/* ==========================================================================
   Services Grid
   ========================================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 48px;
  margin: 48px 0;
  align-items: center;
}

.service-item h3 {
  font-size: 18px;
  font-weight: 400;
  margin-bottom: 12px;
}

.service-item p {
  font-size: 14px;
  color: #999;
}

.service-item img {
  width: 100%;
  border-radius: 4px;
}

/* ==========================================================================
   Page Heroes (offering, process, venture)
   ========================================================================== */
.page-hero {
  width: 100%;
  min-height: 500px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  position: relative;
  margin-top: 72px;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.2), rgba(0,0,0,0.4));
  z-index: 1;
}

.page-hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 40px 24px;
}

.page-hero h1 {
  color: #fff;
  font-size: clamp(32px, 5vw, 52px);
  text-shadow: 0 2px 20px rgba(0,0,0,0.2);
}

/* ==========================================================================
   Service Categories
   ========================================================================== */
.service-category {
  margin-bottom: 48px;
  padding-bottom: 32px;
  border-bottom: 1px solid #e8e8e8;
}

.service-category:last-child {
  border-bottom: none;
}

.service-category h3 {
  font-size: clamp(20px, 2.5vw, 24px);
  font-weight: 400;
  margin-bottom: 16px;
}

.service-category p {
  color: #666;
  line-height: 1.8;
}

/* ==========================================================================
   Process Steps
   ========================================================================== */
.process-steps {
  margin-top: 48px;
}

.step {
  margin-bottom: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid #e8e8e8;
}

.step:last-child {
  border-bottom: none;
}

.step-number {
  font-size: 13px;
  font-weight: 500;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.step h3 {
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 400;
  margin-bottom: 16px;
}

.step p {
  max-width: 700px;
  color: #666;
  line-height: 1.8;
}

/* ==========================================================================
   Work Grid
   ========================================================================== */
.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 48px;
}

.work-item {
  transition: transform 0.2s ease;
  cursor: pointer;
}

.work-item:hover {
  transform: translateY(-6px);
}

.work-item img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  margin-bottom: 16px;
  border-radius: 4px;
  transition: transform 0.2s ease;
}

.work-item:hover img {
  transform: scale(1.02);
}

.work-item h3 {
  font-size: 17px;
  font-weight: 400;
  margin-bottom: 6px;
}

.work-item p {
  font-size: 13px;
  color: #999;
  margin-bottom: 0;
}

.work-item--placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  background-color: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #e8e8e8;
  border-radius: 4px;
  margin-bottom: 16px;
}

.work-item--placeholder p {
  color: #999;
  font-size: 14px;
  text-align: center;
  margin: 0;
}

/* ==========================================================================
   Venture Page
   ========================================================================== */
.venture-intro {
  max-width: 800px;
  margin: 0 auto;
}

.venture-intro h2 {
  margin-bottom: 24px;
}

/* ==========================================================================
   Contact Page
   ========================================================================== */
.contact-section {
  max-width: 900px;
}

.contact-info {
  margin-top: 40px;
  padding-top: 40px;
  border-top: 1px solid #e8e8e8;
}

.contact-person {
  margin-bottom: 28px;
}

.contact-person h4 {
  font-size: 16px;
  text-transform: none;
  letter-spacing: 0;
  color: #1a1a1a;
  margin-bottom: 6px;
  font-weight: 500;
}

.contact-person p {
  font-size: 14px;
  color: #666;
  margin-bottom: 4px;
}

.contact-person a {
  font-size: 14px;
  color: #1a1a1a;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.newsletter-section {
  margin-top: 48px;
  padding-top: 48px;
  border-top: 1px solid #e8e8e8;
}

.email-input-group {
  display: flex;
  gap: 10px;
  margin-top: 24px;
  max-width: 500px;
}

.email-input-group input {
  flex: 1;
  padding: 14px 18px;
  font-size: 14px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background-color: #fafafa;
  transition: border-color 0.2s ease, background-color 0.2s ease;
  font-family: inherit;
}

.email-input-group input:focus {
  outline: none;
  border-color: #1a1a1a;
  background-color: #fff;
}

.email-input-group button {
  padding: 14px 28px;
  background-color: #1a1a1a;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  transition: background-color 0.2s ease;
  white-space: nowrap;
}

.email-input-group button:hover {
  background-color: #333;
}

/* ==========================================================================
   Blog / Insights Placeholder
   ========================================================================== */
.insights-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 32px;
}

.insight-card {
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.insight-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.insight-card__image {
  width: 100%;
  aspect-ratio: 16/9;
  background-color: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.insight-card__image span {
  font-size: 13px;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.insight-card__body {
  padding: 24px;
}

.insight-card__tag {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #999;
  margin-bottom: 8px;
}

.insight-card__body h3 {
  font-size: 18px;
  font-weight: 400;
  margin-bottom: 8px;
  line-height: 1.4;
}

.insight-card__body p {
  font-size: 14px;
  color: #666;
  margin-bottom: 0;
  line-height: 1.6;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background-color: #0a0a0a;
  color: #fff;
  padding: 72px 48px 36px;
}

.site-footer .footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-content {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-logo {
  margin-bottom: 16px;
}

.footer-logo img {
  height: 28px;
  width: auto;
  filter: brightness(0) invert(1);
}

.footer-text {
  font-size: 14px;
  line-height: 1.8;
  color: #999;
  max-width: 300px;
}

.footer-heading {
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  text-transform: none;
  letter-spacing: 0;
  margin-bottom: 16px;
}

.site-footer address {
  font-style: normal;
}

.site-footer address p,
.site-footer .footer-links a {
  font-size: 13px;
  color: #888;
  margin-bottom: 8px;
  display: block;
  transition: color 0.2s ease;
}

.site-footer .footer-links a:hover {
  color: #fff;
}

.site-footer a[href^="mailto"] {
  color: #ccc;
  font-size: 13px;
}

.site-footer a[href^="mailto"]:hover {
  color: #fff;
}

.footer-divider {
  height: 1px;
  background-color: #222;
  margin: 36px 0;
}

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

.footer-bottom p {
  font-size: 12px;
  color: #555;
  margin: 0;
}

/* ==========================================================================
   Animations — fast, subtle, no waiting
   ========================================================================== */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   Responsive — Tablet
   ========================================================================== */
@media (max-width: 1024px) {
  .section {
    padding: 64px 32px;
  }

  .site-header {
    padding: 20px 32px;
  }

  .site-header.scrolled {
    padding: 14px 32px;
  }

  .case-studies {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

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

  .work-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .footer-content {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }

  .insights-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

/* ==========================================================================
   Responsive — Mobile
   ========================================================================== */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-close {
    display: block;
  }

  .main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    gap: 28px;
    padding: 80px 32px 40px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 999;
  }

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

  .main-nav a {
    font-size: 20px;
    text-align: center;
  }

  .nav-cta {
    font-size: 16px;
    padding: 14px 32px;
  }

  .site-header {
    padding: 16px 20px;
  }

  .site-header.scrolled {
    padding: 12px 20px;
  }

  .section {
    padding: 48px 20px;
  }

  .hero {
    min-height: 85vh;
  }

  .hero-content {
    padding: 24px 20px;
  }

  .page-hero {
    min-height: 350px;
    margin-top: 60px;
  }

  .case-studies {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .work-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

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

  .footer-content {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .email-input-group {
    flex-direction: column;
  }

  .site-footer {
    padding: 48px 20px 24px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .insights-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .section--dark .section-inner {
    padding: 48px 20px;
  }
}

/* ==========================================================================
   Small phones
   ========================================================================== */
@media (max-width: 380px) {
  .hero h1 {
    font-size: 32px;
  }

  .section {
    padding: 36px 16px;
  }

  .site-header {
    padding: 14px 16px;
  }
}

/* Print styles */
@media print {
  .site-header, .hamburger, .hero::before {
    display: none;
  }

  .section {
    padding: 20px 0;
  }

  body {
    font-size: 12pt;
    color: #000;
  }
}
