/* ========================================
   HERO SECTION
   ======================================== */
.hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  background-color: var(--ink);
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(to bottom, rgb(20 20 20 / 18%) 0%, rgb(20 20 20 / 35%) 60%, rgb(20 20 20 / 60%) 100%);
  z-index: 1;
}

/* Grain texture overlay */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.07'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 2;
}

.hero .container {
  position: relative;
  z-index: 3;
  padding-top: 100px; /* offset the fixed 72px nav */
  padding-bottom: 100px;
}

.hero-content {
  max-width: 900px;
}

/* Eyebrow */
.hero-eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 400;
  text-transform: uppercase;
  color: var(--brass);
  letter-spacing: 0.22em;
  margin-bottom: 28px;
  opacity: 0; /* GSAP will animate this in */
}

/* H1 */
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 7rem);
  font-weight: 300;
  line-height: 1.05;
  color: var(--text-invert);
  margin-bottom: 32px;
  white-space: normal;
}

.hero h1 .brass-italic {
  color: var(--brass);
  font-style: italic;
}

/* Subtitle */
.hero-sub {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  font-weight: 300;
  color: rgba(244, 240, 235, 0.72);
  max-width: 500px;
  margin-bottom: 44px;
  line-height: 1.7;
  opacity: 0; /* GSAP animated */
}

/* CTAs */
.hero-ctas {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  opacity: 0; /* GSAP animated */
}

/* Bottom stats bar */
.hero-stats {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 22px var(--gutter);
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 48px;
}

.hero-stats .stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.hero-stats .stat-value {
  font-family: var(--font-stat);
  font-size: 1.6rem;
  color: var(--brass);
  line-height: 1;
}

.hero-stats .stat-label {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  color: rgba(244, 240, 235, 0.55);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.hero-stats .stat-divider {
  width: 1px;
  height: 36px;
  background: rgba(255, 255, 255, 0.12);
}

/* ========================================
   MARQUEE
   ======================================== */
.marquee {
  background-color: var(--ink-soft);
  height: 56px;
  overflow: hidden;
  display: flex;
  align-items: center;
  white-space: nowrap;
  border-top: 1px solid rgba(201,169,110,0.25);
  border-bottom: 1px solid rgba(201,169,110,0.25);
}
.marquee-inner {
  display: inline-flex;
  align-items: center;
  animation: scrollLeft 40s linear infinite;
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--text-xl);
  color: var(--brass);
  will-change: transform;
}
.marquee:hover .marquee-inner { animation-play-state: paused; }
@keyframes scrollLeft {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ========================================
   STUDIO / WHO WE ARE
   ======================================== */
.studio-split {
  display: grid;
  grid-template-columns: 60% 40%;
  gap: 80px;
  align-items: start;
}
.studio-split blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 3.2rem);
  font-style: italic;
  color: var(--ink);
  line-height: 1.25;
  margin-bottom: 32px;
  border: none;
  padding: 0;
}
.studio-split .brass-rule {
  width: 80px;
  height: 1px;
  background: var(--brass);
  border: none;
  margin-bottom: 0;
}
.studio-split .copy p {
  margin-bottom: 18px;
  font-size: var(--text-base);
  color: var(--text-primary);
  line-height: 1.85;
}
.studio-split .studio-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--brass);
  font-weight: 500;
  text-transform: uppercase;
  font-size: var(--text-sm);
  letter-spacing: 0.08em;
  margin-top: 24px;
  transition: gap var(--duration-fast);
}
.studio-split .studio-link:hover { gap: 14px; }

/* ========================================
   SERVICES GRID
   ======================================== */
.section-eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--brass);
  margin-bottom: 14px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  margin-top: 60px;
}
.service-card {
  border: 1px solid rgba(255,255,255,0.06);
  padding: 48px 40px;
  background: var(--ink-soft);
  transition: transform 0.35s var(--ease-out), border-color 0.35s ease;
}
.service-card:hover {
  border-color: var(--brass);
  transform: translateY(-6px);
}
.service-card .icon-wrap {
  width: 52px;
  height: 52px;
  border: 1px solid rgba(201,169,110,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
}
.service-card i { font-size: 26px; color: var(--brass); }
.service-card h3 {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  font-weight: 500;
  color: var(--text-invert);
  margin-bottom: 14px;
  line-height: 1.3;
}
.service-card p { font-size: var(--text-sm); color: var(--text-muted); margin-bottom: 28px; line-height: 1.8; }
.service-card a { color: var(--brass); font-size: var(--text-sm); letter-spacing: 0.05em; }
.service-card a:hover { color: var(--brass-pale); }

/* ========================================
   SPACE RATIO VISUALISER
   ======================================== */
.visualiser-container {
  background: var(--white);
  padding: 60px;
  border-radius: 2px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.08);
  margin-top: 60px;
}
.visualiser-input-group {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 50px;
  flex-wrap: wrap;
}
.visualiser-input-group label {
  font-size: clamp(1.1rem, 2vw, 1.6rem);
  font-family: var(--font-body);
  color: var(--text-primary);
}
.visualiser-input-group input {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-family: var(--font-body);
  font-weight: 300;
  border: none;
  border-bottom: 2px solid var(--brass);
  width: 120px;
  text-align: center;
  background: transparent;
  color: var(--ink);
  outline: none;
  padding: 4px 0;
  transition: border-color var(--duration-fast);
}
.visualiser-input-group input:focus { border-color: var(--ink); }

.visualiser-chart { display: flex; flex-direction: column; gap: 18px; }
.chart-bar-wrapper { display: flex; align-items: center; gap: 0; }
.chart-bar-label {
  width: 160px;
  flex-shrink: 0;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-primary);
}
.chart-bar-track {
  flex-grow: 1;
  height: 10px;
  background: var(--chalk-mid);
  border-radius: 5px;
  overflow: hidden;
  margin: 0 24px;
}
.chart-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--brass) 0%, var(--brass-pale) 100%);
  width: 0;
  border-radius: 5px;
  transition: width 0.9s var(--ease-out);
}
.chart-bar-value {
  width: 140px;
  flex-shrink: 0;
  text-align: right;
  font-size: var(--text-xs);
  color: var(--text-muted);
  letter-spacing: 0.03em;
}

.visualiser-result {
  border-top: 1px solid var(--chalk-mid);
  padding-top: 40px;
  margin-top: 40px;
  text-align: center;
}
.visualiser-total {
  font-family: var(--font-stat);
  font-size: clamp(2.5rem, 4vw, 4rem);
  color: var(--brass);
  margin-bottom: 12px;
  letter-spacing: 0.02em;
}
.visualiser-note {
  color: var(--text-muted);
  font-size: var(--text-xs);
  margin-bottom: 30px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* ========================================
   PORTFOLIO TEASER GRID
   ======================================== */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  margin-top: 60px;
  margin-bottom: 50px;
}
.project-card {
  position: relative;
  height: 440px;
  background-size: cover;
  background-position: center;
  overflow: hidden;
  cursor: default;
  transition: filter 0.6s var(--ease-out);
  filter: grayscale(100%) brightness(0.35);
}
.project-card:hover { filter: grayscale(0%) brightness(0.75); }
.project-card .badge {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--brass);
  color: var(--ink);
  padding: 5px 12px;
  font-size: 10px;
  font-family: var(--font-body);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  animation: pulseBadge 2.5s ease-in-out infinite;
}
.project-card .info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 30px 24px 24px;
  background: linear-gradient(to top, rgba(20,20,20,0.9) 0%, transparent 100%);
}
.project-card .info h3 {
  font-size: var(--text-xl);
  color: var(--white);
  margin-bottom: 6px;
}
.project-card .info p { margin: 0; font-size: var(--text-xs); color: rgba(255,255,255,0.6); text-transform: uppercase; letter-spacing: 0.1em; }

@keyframes pulseBadge {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

/* ========================================
   PROCESS TIMELINE
   ======================================== */
.process-timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 70px;
  position: relative;
}
.process-timeline::before {
  content: '';
  position: absolute;
  top: 48px;
  left: 5%;
  width: 90%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--brass) 20%, var(--brass) 80%, transparent);
}
.process-step {
  position: relative;
  z-index: 2;
  padding: 0 20px;
}
.process-step::before {
  content: '';
  position: absolute;
  top: 40px;
  left: 20px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--brass);
  border: 3px solid var(--chalk);
  box-shadow: 0 0 0 1px var(--brass);
}
.process-num {
  font-family: var(--font-stat);
  font-size: 5rem;
  color: rgba(201,169,110,0.12);
  line-height: 1;
  margin-bottom: 16px;
}
.process-step h3 {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--text-lg);
  margin-bottom: 12px;
  color: var(--text-primary);
}
.process-step p { font-size: var(--text-sm); color: var(--text-muted); line-height: 1.75; }

/* ========================================
   VALUE PROPS
   ======================================== */
.value-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-top: 60px;
}
.value-card {
  padding: 50px 48px;
  border: 1px solid rgba(255,255,255,0.05);
  transition: background var(--duration-fast);
}
.value-card:hover { background: rgba(255,255,255,0.03); }
.value-card-icon {
  font-size: 1.5rem;
  color: var(--brass);
  display: block;
  margin-bottom: 20px;
}
.value-card h3 {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--text-lg);
  color: var(--text-invert);
  margin-bottom: 12px;
  position: relative;
  padding-top: 20px;
}
.value-card h3::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 48px;
  height: 2px;
  background: var(--brass);
}
.value-card p { font-size: var(--text-sm); color: var(--text-muted); line-height: 1.75; }

/* ========================================
   JOURNAL TEASER
   ======================================== */
.journal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 60px;
  margin-bottom: 50px;
}
.journal-card { display: flex; flex-direction: column; }
.journal-card-img {
  overflow: hidden;
  position: relative;
  margin-bottom: 22px;
  aspect-ratio: 16/9;
  min-height: 200px;
  background: var(--chalk-mid); /* fallback bg while image loads */
}
.journal-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
  display: block;
}
.journal-card:hover img { transform: scale(1.04); }
.journal-card .cat {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--brass);
  color: var(--ink);
  font-size: 10px;
  font-family: var(--font-body);
  font-weight: 600;
  padding: 4px 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  z-index: 2;
}
.journal-card h3 {
  font-size: var(--text-xl);
  line-height: 1.3;
  margin-bottom: 12px;
  color: var(--ink);
}
.journal-card .excerpt {
  font-size: var(--text-sm);
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 20px;
  line-height: 1.7;
  flex-grow: 1;
}
.journal-card .meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--text-sm);
  padding-top: 16px;
  border-top: 1px solid var(--chalk-mid);
}
.journal-card .meta a { color: var(--brass); font-weight: 500; }
.journal-card .meta span { color: var(--text-muted); display: flex; align-items: center; gap: 5px; }

/* ========================================
   LOCATION STRIP
   ======================================== */
.location-strip { text-align: center; padding: 80px 0; }
.location-strip .label {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  margin-bottom: 24px;
}
.location-strip .cities {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 28px;
  margin-bottom: 18px;
}
.location-strip .city-name {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 5.5rem);
  font-weight: 300;
  color: var(--text-invert);
  letter-spacing: 0.04em;
  line-height: 1;
}
.location-strip .city-dot {
  color: var(--brass);
  font-size: 2rem;
  line-height: 1;
}
.location-strip .sub {
  font-size: var(--text-sm);
  color: var(--text-muted);
}

/* ========================================
   CTA BANNER
   ======================================== */
.cta-banner {
  text-align: center;
  padding: 120px var(--gutter);
  background: var(--chalk);
}
.cta-banner .eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--brass);
  margin-bottom: 16px;
}
.cta-banner h2 {
  font-size: clamp(2.5rem, 5vw, 5rem);
  color: var(--ink);
  margin-bottom: 20px;
  line-height: 1.1;
}
.cta-banner p {
  max-width: 480px;
  margin: 0 auto 40px;
  font-size: var(--text-lg);
  color: var(--text-muted);
  line-height: 1.7;
}
.cta-banner .btn-filled {
  min-width: 260px;
  height: 58px;
  font-size: var(--text-base);
  margin-bottom: 20px;
}
.cta-banner .phone-line {
  margin-top: 16px;
  color: var(--text-muted);
  font-size: var(--text-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 1023px) {
  .hero-stats { display: none; }
  .studio-split, .services-grid, .portfolio-grid, .value-grid, .journal-grid { grid-template-columns: 1fr; }
  .process-timeline { grid-template-columns: 1fr; gap: 50px; }
  .process-timeline::before { top: 0; left: 28px; width: 1px; height: 100%; background: var(--brass); }
  .process-step::before { top: 0; left: 20px; }
  .process-step { padding-left: 60px; }
  .location-strip .cities { flex-direction: column; gap: 8px; }
  .location-strip .city-dot { display: none; }
}

@media (max-width: 767px) {
  .hero h1 { font-size: clamp(2.2rem, 10vw, 3rem); }
  .hero-ctas { flex-direction: column; }
  .visualiser-container { padding: 30px 24px; }
  .chart-bar-label { width: 110px; font-size: 0.75rem; }
  .chart-bar-value { width: 100px; }
  .value-card { padding: 36px 24px; }
  .studio-split { gap: 40px; }
  .journal-card-img {
    aspect-ratio: auto;
    min-height: 0;
    height: auto;
  }
  .journal-card img {
    width: 100%;
    height: auto;
    max-width: 100%;
  }
}
