/* =============================================
   HUMAN — Brand Agency
   Font: Helvetica Neue (system), no Google Fonts
   ============================================= */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
  color: #000;
  background-color: #fff;
}

/* ---- Typography ---- */
h1, h2, h3, h4, h5, h6 {
  font-weight: 400;
}

h1 { font-size: 48px; line-height: 1.15; }
h2 { font-size: 36px; line-height: 1.2; }
h3 { font-size: 18px; line-height: 1.4; }

p { line-height: 1.7; }

a {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

a:hover { opacity: 0.6; }

/* =============================================
   HEADER / NAV
   ============================================= */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 30px 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.3s ease, padding 0.3s ease;
  background-color: transparent;
}

/* Over dark hero: logo and nav are white */
header:not(.scrolled):not(.solid) .logo img {
  filter: brightness(0) invert(1);
}

header:not(.scrolled):not(.solid) nav a {
  color: #fff;
}

header:not(.scrolled):not(.solid) .hamburger span {
  background-color: #fff;
}

/* Scrolled or sub-page solid header */
header.scrolled,
header.solid {
  background-color: rgba(255, 255, 255, 0.97);
  padding: 18px 60px;
  box-shadow: 0 1px 0 rgba(0,0,0,0.08);
}

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

.logo img {
  width: 200px;
  height: auto;
  display: block;
  transition: width 0.3s ease, filter 0.3s ease;
}

header.scrolled .logo img,
header.solid .logo img {
  width: 160px;
  /* Force logo dark on white header regardless of original image color */
  filter: brightness(0);
}

/* Nav */
nav {
  display: flex;
  gap: 40px;
  align-items: center;
}

nav a {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.3px;
  color: #000;
  transition: opacity 0.2s ease;
}

nav a:hover { opacity: 0.5; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 6px;
  background: none;
  border: none;
  padding: 4px;
  position: relative;
  z-index: 1001;
}

.hamburger span {
  width: 24px;
  height: 1.5px;
  background-color: #000;
  transition: transform 0.3s ease, opacity 0.3s ease, background-color 0.3s ease;
  display: block;
}

.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5.5px, 5.5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5.5px, -5.5px); }

/* =============================================
   HERO — Fullscreen Video
   ============================================= */
.hero {
  width: 100%;
  height: 100vh;
  background: #000;
  position: relative;
  overflow: hidden;
  /* Override section constraints if hero is inside a section */
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

.hero video {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  object-fit: cover;
}

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

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

footer .divider,
.footer-divider {
  background-color: #333;
}

/* =============================================
   SECTION BASE
   ============================================= */
section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 100px 60px;
}

/* Section labels — small uppercase */
.section-label {
  font-size: 11px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: #888;
  margin-bottom: 40px;
  display: block;
}

/* Section headings */
.section-heading {
  font-size: 40px;
  font-weight: 400;
  line-height: 1.15;
  margin-bottom: 60px;
  color: #000;
}

/* Text links */
.text-link {
  font-size: 13px;
  letter-spacing: 0.3px;
  color: #000;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.text-link:hover { opacity: 0.5; }

/* =============================================
   INTRODUCTION SECTION
   ============================================= */
.intro-section {
  padding-bottom: 80px;
}

.intro-text {
  font-size: 30px;
  font-weight: 400;
  line-height: 1.4;
  max-width: 900px;
  color: #000;
}

/* =============================================
   CASE STUDIES
   ============================================= */
.cases-section {}

.case-studies {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 60px;
}

.case-study {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.case-study.visible {
  opacity: 1;
  transform: translateY(0);
}

.case-study img {
  width: 100%;
  height: auto;
  display: block;
  margin-bottom: 20px;
  aspect-ratio: 4/3;
  object-fit: cover;
  transition: opacity 0.3s ease;
}

.case-study:hover img { opacity: 0.85; }

.case-study h3 {
  font-size: 15px;
  font-weight: 400;
  margin-bottom: 6px;
  color: #000;
}

.case-study p {
  font-size: 13px;
  color: #888;
  margin: 0;
}

.see-more {
  text-align: center;
  padding-top: 20px;
}

.see-more a {
  font-size: 13px;
  letter-spacing: 0.3px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* =============================================
   PREVIOUS EXPERIENCE
   ============================================= */
.experience-section .section-heading {
  margin-bottom: 20px;
}

.experience-subtitle {
  font-size: 13px;
  color: #888;
  margin-bottom: 40px;
}

.experience-brands {
  font-size: 26px;
  font-weight: 400;
  line-height: 1.5;
  color: #000;
  margin-bottom: 40px;
  max-width: 900px;
}

/* =============================================
   SERVICES GRID
   ============================================= */
.services-section {}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  margin-bottom: 60px;
  background-color: #e8e8e8;
  border: 1px solid #e8e8e8;
}

.service-item {
  background: #fff;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.service-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.service-text {
  padding: 50px 40px;
  display: flex;
  align-items: center;
}

.service-text h3 {
  font-size: 16px;
  font-weight: 400;
  color: #000;
  line-height: 1.3;
}

.service-image img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  display: block;
}

.discover-link {
  text-align: center;
  padding-top: 10px;
}

/* =============================================
   ABOUT SECTION
   ============================================= */
.about-section {}

.about-section .section-heading {
  margin-bottom: 30px;
}

.about-text {
  font-size: 18px;
  line-height: 1.7;
  max-width: 700px;
  color: #333;
  margin-bottom: 40px;
}

/* =============================================
   FOOTER
   ============================================= */
footer {
  background-color: #000;
  color: #fff;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 60px 40px;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 80px;
  margin-bottom: 60px;
}

.footer-heading {
  font-size: 28px;
  font-weight: 400;
  color: #fff;
  margin-bottom: 20px;
}

.footer-desc {
  font-size: 14px;
  line-height: 1.7;
  color: #888;
  max-width: 320px;
}

.footer-col {
  padding-top: 6px;
}

.footer-col p,
.footer-col a {
  font-size: 13px;
  color: #888;
  line-height: 1.8;
  display: block;
  margin-bottom: 4px;
}

.footer-col a:hover { color: #fff; opacity: 1; }

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

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

/* =============================================
   ABOUT IMAGES
   ============================================= */
.about-images {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  margin-top: 60px;
}

.about-image img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  display: block;
}

/* =============================================
   FOOTER LABELS
   ============================================= */
.footer-label {
  font-size: 11px;
  color: #555;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  display: block;
  margin-top: 20px;
  margin-bottom: 4px;
}

.footer-newsletter {
  display: block;
  margin-top: 20px;
  font-size: 13px;
  color: #888;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-newsletter:hover { color: #fff; opacity: 1; }

/* =============================================
   SUB-PAGE HERO (Offering, Process, etc.)
   ============================================= */
.page-hero {
  width: 100%;
  min-height: 60vh;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  padding: 80px 60px;
  margin-top: 80px;
  position: relative;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.35);
}

.page-hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.page-hero h1 {
  color: #fff;
  font-size: 42px;
}

/* Sub-page first section offset */
.subpage-content {
  padding-top: 120px;
}

/* =============================================
   SERVICE CATEGORIES (Offering page)
   ============================================= */
.service-category {
  padding: 50px 0;
  border-bottom: 1px solid #e8e8e8;
}

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

.service-category h3 {
  font-size: 22px;
  font-weight: 400;
  margin-bottom: 15px;
}

.service-category p {
  font-size: 15px;
  color: #555;
  max-width: 700px;
  line-height: 1.8;
}

/* =============================================
   PROCESS STEPS
   ============================================= */
.process-steps { margin-top: 60px; }

.step {
  padding: 60px 0;
  border-bottom: 1px solid #e8e8e8;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.step.visible { opacity: 1; transform: translateY(0); }
.step:last-child { border-bottom: none; }

.step-number {
  font-size: 11px;
  font-weight: 400;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 20px;
}

.step h3 {
  font-size: 26px;
  font-weight: 400;
  margin-bottom: 20px;
}

.step p {
  max-width: 680px;
  color: #555;
  font-size: 15px;
}

/* =============================================
   WORK GRID — overlay card layout
   ============================================= */

/* Full-bleed version used on work.html (no section wrapper) */
.work-grid-full {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  background: #000;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  margin-top: 60px;
}

.work-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.6s ease;
  background: #111;
}

.work-item.visible { opacity: 1; }

.work-item img {
  width: 100%;
  height: 420px;
  display: block;
  object-fit: cover;
  transition: transform 0.5s ease, opacity 0.5s ease;
}

.work-item:hover img {
  transform: scale(1.04);
  opacity: 0.7;
}

.work-item-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 30px 28px;
  background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, transparent 100%);
  color: #fff;
  transform: translateY(6px);
  transition: transform 0.3s ease;
}

.work-item:hover .work-item-info { transform: translateY(0); }

.work-item-info h3 {
  font-size: 16px;
  font-weight: 400;
  margin-bottom: 4px;
  color: #fff;
}

.work-item-info p {
  font-size: 12px;
  color: rgba(255,255,255,0.7);
  margin: 0;
  letter-spacing: 0.2px;
}

/* Coming soon placeholder */
.work-item-placeholder {
  width: 100%;
  height: 420px;
  background: #1a1a1a;
  display: flex;
  align-items: center;
  justify-content: center;
}

.work-item-placeholder span {
  font-size: 12px;
  color: #555;
  letter-spacing: 1px;
  text-transform: uppercase;
}

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

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

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

.contact-person .name {
  font-size: 15px;
  font-weight: 400;
  color: #000;
  margin-bottom: 6px;
  display: block;
}

.contact-person .role {
  font-size: 13px;
  color: #888;
  margin-bottom: 6px;
  display: block;
}

.contact-person a {
  font-size: 13px;
  color: #000;
  text-decoration: underline;
  text-underline-offset: 3px;
}

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

.newsletter-section h2 {
  margin-bottom: 15px;
}

.newsletter-section p {
  color: #555;
  margin-bottom: 30px;
}

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

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

.email-input-group input:focus {
  border-color: #000;
  background: #fff;
}

.email-input-group button {
  padding: 14px 28px;
  background: #000;
  color: #fff;
  border: none;
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s ease;
}

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

/* =============================================
   MOBILE MENU — Full Overlay
   ============================================= */
@media (max-width: 900px) {
  header { padding: 24px 30px; }
  header.scrolled, header.solid { padding: 18px 30px; }

  .hamburger { display: flex; }

  nav {
    position: fixed;
    inset: 0;
    background: #000;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 32px;
    z-index: 998;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
  }

  nav.active {
    display: flex;
    opacity: 1;
  }

  nav a {
    color: #fff !important;
    font-size: 20px;
    letter-spacing: 0.5px;
  }

  /* Hamburger spans always white on mobile overlay page */
  .hamburger.active span { background-color: #fff !important; }
}

/* =============================================
   RESPONSIVE — Tablet / Mobile
   ============================================= */
@media (max-width: 1024px) {
  .case-studies { grid-template-columns: repeat(2, 1fr); }
  .work-grid { grid-template-columns: repeat(2, 1fr); }
  .work-grid-full { grid-template-columns: repeat(2, 1fr); }
  .footer-content { grid-template-columns: 1fr 1fr; gap: 50px; }
  .footer-brand { grid-column: 1 / -1; }
  h1 { font-size: 38px; }
  .intro-text { font-size: 24px; }
  .experience-brands { font-size: 22px; }
}

@media (max-width: 768px) {
  section { padding: 70px 24px; }
  .footer-inner { padding: 60px 24px 30px; }
  h1 { font-size: 30px; }
  h2 { font-size: 26px; }
  .intro-text { font-size: 20px; }
  .case-studies { grid-template-columns: 1fr; }
  .work-grid { grid-template-columns: 1fr; }
  .work-grid-full { grid-template-columns: 1fr; }
  .work-item img { height: 280px; }
  .work-item-placeholder { height: 280px; }
  .services-grid { grid-template-columns: 1fr; }
  .footer-content { grid-template-columns: 1fr; gap: 40px; }
  .footer-brand { grid-column: auto; }
  .experience-brands { font-size: 18px; }
  .email-input-group { flex-direction: column; }
  .page-hero { padding: 60px 24px; }
  .page-hero h1 { font-size: 28px; }
}

/* =============================================
   ANIMATIONS
   ============================================= */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.intro-text {
  animation: fadeIn 0.8s ease 0.2s both;
}
