/* ============================================
   The HE Creative Agency — styles.css
   ============================================ */

/* ----- Reset & Variables ----- */

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

:root {
  --white:    #FAFAF8;
  --grey-1:   #F4F3EF;
  --grey-2:   #ECEAE3;
  --grey-3:   #E2DFD7;
  --grey-4:   #D4D0C7;
  --mid:      #C4BFB6;
  --charcoal: #4A4744;
  --dark:     #2C2A28;
  --black:    #1A1917;

  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans:  'Jost', system-ui, -apple-system, sans-serif;

  --max-w: 1320px;
  --pad:   clamp(24px, 5vw, 80px);
  --gap-xl: clamp(120px, 16vw, 220px);
  --ease:     cubic-bezier(0.25, 0.1, 0.25, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--black);
  background: var(--white);
  cursor: none;
  overflow-x: hidden;
}

img  { display: block; width: 100%; height: 100%; object-fit: cover; }
a    { color: inherit; text-decoration: none; }
ul   { list-style: none; }
button { font-family: inherit; }

/* ----- Custom Cursor ----- */

.cursor-glass {
  position: fixed; top: 0; left: 0;
  width: 52px; height: 72px;
  pointer-events: none; z-index: 9999;
  transform: translate(-50%, -50%);
  opacity: 0; will-change: left, top;
  transition: opacity 0.3s, transform 0.2s var(--ease);
}

.cursor-glass img {
  width: 100%; height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.15));
}

.cursor-dot {
  position: fixed; top: 0; left: 0;
  width: 5px; height: 5px;
  background: var(--black); border-radius: 50%;
  pointer-events: none; z-index: 10000;
  transform: translate(-50%, -50%);
  opacity: 0; will-change: left, top;
  transition: opacity 0.3s, width 0.25s, height 0.25s;
}

body.cursor-on .cursor-glass,
body.cursor-on .cursor-dot { opacity: 1; }
body.cursor-hover .cursor-glass { transform: translate(-50%, -50%) scale(1.2) rotate(-8deg); }
body.cursor-hover .cursor-dot   { width: 8px; height: 8px; }

/* ----- Logomark ----- */

.logomark {
  position: relative; display: inline-block; padding: 0 3px;
}
.logomark span {
  font-family: var(--serif); font-size: 28px; font-weight: 300;
  letter-spacing: 0.06em; color: var(--black); display: block; line-height: 1;
}
.logomark-rule {
  position: absolute; top: 50%; left: -2px; right: -2px;
  height: 0.7px; background: var(--black); transform: translateY(-50%);
}
.logomark-light span { color: var(--white); }
.logomark-light .logomark-rule { background: var(--white); }

/* ----- Handle label (appears at top of each section) ----- */

.handle {
  font-size: 9px; font-weight: 400; letter-spacing: 0.26em;
  text-transform: lowercase; color: var(--mid);
  margin-bottom: 24px; display: block;
}

/* ----- Navigation ----- */

.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 0 var(--pad);
  background: #DEDEDE;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid #CACACA;
  transition: background 0.4s var(--ease), border-color 0.4s;
}
.nav.scrolled {
  background: #DEDEDE;
  border-color: #CACACA;
}
.nav-inner {
  max-width: var(--max-w); margin: 0 auto; height: 72px;
  display: grid; grid-template-columns: 1fr auto 1fr;
  align-items: center; gap: 32px;
}
.nav-left  { display: flex; gap: 32px; align-items: center; }
.nav-right { display: flex; gap: 32px; align-items: center; justify-content: flex-end; }
.nav-link {
  font-size: 10.5px; font-weight: 400; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--charcoal); transition: color 0.2s; white-space: nowrap;
}
.nav-link:hover { color: var(--black); }
.nav-logo { justify-self: center; }
.nav-logo-img {
  height: 52px; width: auto; display: block;
  object-fit: contain;
}

.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: none; padding: 4px;
  position: absolute; right: var(--pad);
}
.hamburger span {
  display: block; width: 22px; height: 1px; background: var(--black);
  transition: transform 0.3s var(--ease);
}
.hamburger.open span:first-child { transform: translateY(3px) rotate(45deg); }
.hamburger.open span:last-child  { transform: translateY(-3px) rotate(-45deg); }

/* ----- Mobile Menu ----- */

.mobile-menu {
  position: fixed; inset: 0; background: var(--white); z-index: 99;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity 0.4s var(--ease);
}
.mobile-menu.open { opacity: 1; pointer-events: all; }
.mobile-menu-links { display: flex; flex-direction: column; align-items: center; gap: 28px; }
.mobile-link {
  font-family: var(--serif); font-size: clamp(36px, 9vw, 60px);
  font-weight: 300; color: var(--black); transition: color 0.2s;
}

/* ----- Shared Layout ----- */

.section-wrap { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--pad); }

.section-eyebrow {
  font-size: 9.5px; font-weight: 400; letter-spacing: 0.26em;
  text-transform: uppercase; color: var(--mid); margin-bottom: 28px;
}
.section-heading {
  font-family: var(--serif);
  font-size: clamp(40px, 6vw, 82px);
  font-weight: 300; line-height: 1.06;
  color: var(--black); margin-bottom: 64px;
}
.section-heading em { font-style: italic; }

/* ----- Scroll Reveal ----- */

.reveal, .fade-up {
  opacity: 0; transform: translateY(32px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
.reveal.visible, .fade-up.visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.12s; }
.delay-2 { transition-delay: 0.24s; }
.delay-3 { transition-delay: 0.38s; }

/* ----- HERO ----- */

.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; background: var(--white);
}

/* Giant transparent HE logomark watermark */
.hero-watermark {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none; user-select: none;
  opacity: 0.055; z-index: 0;
  width: min(88vw, 80vh);
}
.hero-watermark span {
  font-family: var(--serif);
  font-size: min(88vw, 80vh);
  font-weight: 300; color: var(--black);
  line-height: 0.82; display: block;
  text-align: center; letter-spacing: 0.04em;
}
.hero-watermark-rule {
  position: absolute; top: 50%; left: -8%; right: -8%;
  height: 1.5px; background: var(--black);
  transform: translateY(-50%);
}

/* Hero content — left-aligned split layout */
.hero-center {
  position: relative; z-index: 2;
  width: 100%; max-width: var(--max-w);
  padding: 104px var(--pad) 88px;
  display: flex; flex-direction: column; align-items: flex-start; gap: 20px;
}
.hero-center .handle { font-size: 9px; color: var(--mid); margin-bottom: 0; }

.hero-meta {
  display: flex; align-items: center; gap: 10px;
  font-size: 10px; font-weight: 400;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--charcoal);
}
.sep { color: var(--mid); }

.hero-slogan {
  font-family: var(--serif);
  font-size: clamp(44px, 7.5vw, 110px);
  font-weight: 300; line-height: 1.18;
  color: var(--black); text-align: left; flex: 1;
}
.hero-slogan em { font-style: italic; }

/* Word-level reveal spans injected by JS */
.hero-slogan .word {
  display: inline-block; overflow: hidden;
  vertical-align: bottom;
}
.hero-slogan .word-inner {
  display: inline-block;
  transform: translateY(105%);
  transition: transform 1s var(--ease-out);
}
.hero-slogan.revealed .word-inner { transform: translateY(0); }

/* Hero split: slogan left, services right */
.hero-split {
  display: flex; justify-content: space-between;
  align-items: flex-end; width: 100%; gap: 60px;
  margin: 12px 0 20px;
}
.hero-services {
  text-align: right; flex-shrink: 0;
  display: flex; flex-direction: column; gap: 12px;
  padding-bottom: 14px;
}
.hero-services p {
  font-family: var(--sans); font-size: 11px; font-weight: 400;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--charcoal);
}
.hero-scroll-btn {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-size: 9px; font-weight: 400; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--charcoal);
  transition: color 0.2s; margin-top: 12px;
}
.hero-scroll-btn:hover { color: var(--black); }
.hero-scroll-btn svg { animation: bounce 2.2s ease-in-out infinite; }
@keyframes bounce { 0%,100%{transform:translateY(0)} 50%{transform:translateY(7px)} }

/* Model image anchored bottom-right */
.hero-aside {
  position: absolute; bottom: 0; right: 0;
  width: clamp(220px, 28vw, 420px);
  height: clamp(280px, 55vh, 620px);
  overflow: hidden; z-index: 1;
}
.hero-aside img { object-position: center top; }

/* ----- TICKER ----- */

.ticker { overflow: hidden; padding: 16px 0; }

.ticker-dark { background: var(--black); }
.ticker-dark .ticker-track span { color: rgba(250,250,248,0.7); }
.ticker-dark .tick-dot { color: rgba(250,250,248,0.3) !important; }

.ticker-light { background: var(--grey-2); border-top: 1px solid var(--grey-3); border-bottom: 1px solid var(--grey-3); }
.ticker-light .ticker-track span { color: var(--charcoal); }
.ticker-light .tick-dot { color: var(--mid) !important; }

.ticker-track {
  display: inline-flex; align-items: center; gap: 28px;
  white-space: nowrap; animation: ticker 32s linear infinite;
  will-change: transform;
}
.ticker-track-rev { animation: ticker-rev 28s linear infinite; }

.ticker-track span {
  font-size: 10.5px; font-weight: 400;
  letter-spacing: 0.14em; text-transform: uppercase;
}
.tick-dot { color: var(--mid) !important; }

@keyframes ticker     { from{transform:translateX(0)} to{transform:translateX(-50%)} }
@keyframes ticker-rev { from{transform:translateX(-50%)} to{transform:translateX(0)} }

/* ----- SCROLL TEXT STRIP ----- */

.scroll-text-wrap {
  overflow: hidden; padding: clamp(48px, 7vw, 88px) 0;
  background: var(--grey-1);
  display: flex; flex-direction: column; gap: 12px;
}
.scroll-text-line {
  font-family: var(--serif);
  font-size: clamp(48px, 8vw, 110px);
  font-weight: 300; line-height: 1.1;
  color: var(--grey-3); white-space: nowrap;
  will-change: transform; letter-spacing: 0.04em;
  display: block;
}

/* ----- ABOUT ----- */

.about { padding: var(--gap-xl) 0; background: var(--white); }

.about-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(48px, 7vw, 100px); align-items: start;
}
.about-left .section-heading { margin-bottom: 36px; }

.about-body {
  font-size: 15px; font-weight: 300; line-height: 1.9;
  color: var(--charcoal); margin-bottom: 28px;
}
.about-stats {
  display: flex; gap: clamp(20px, 4vw, 56px);
  margin-top: 64px; padding-top: 36px; border-top: 1px solid var(--grey-2);
}
.stat { display: flex; flex-direction: column; gap: 5px; }
.stat-n {
  font-family: var(--serif); font-size: 42px;
  font-weight: 300; color: var(--black); line-height: 1;
}
.stat-l {
  font-size: 10px; font-weight: 400; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--mid);
}

/* About images */
.about-images { position: relative; }
.about-img-main {
  width: 100%; aspect-ratio: 3/4; overflow: hidden;
}
.about-img-main img { transition: transform 0.7s var(--ease-out); }
.about-img-main:hover img { transform: scale(1.03); }

/* Divider line below about grid */
.section-divider {
  height: 1px; background: var(--grey-3);
  margin: clamp(64px, 8vw, 110px) 0;
}


/* Parallax utility */
.parallax-img img { will-change: transform; }

/* ----- WHAT IS A CREATIVE AGENCY ----- */

.brand-info { background: var(--grey-1); padding: var(--gap-xl) 0; position: relative; overflow: hidden; }

.brand-info-watermark {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none; user-select: none;
  opacity: 0.055; z-index: 0;
  width: 160vw;
}
.brand-info-watermark img {
  width: 100%; height: auto; object-fit: contain; display: block;
}
.brand-info-editorial { max-width: 720px; }
.brand-info-editorial .section-heading { margin-bottom: 36px; }
.brand-info-desc {
  font-family: var(--serif);
  font-size: clamp(19px, 2.4vw, 28px);
  font-weight: 300; font-style: italic;
  line-height: 1.7; color: var(--charcoal);
  max-width: 620px;
}

/* ----- SERVICES ----- */

.services { padding: var(--gap-xl) 0; background: var(--grey-2); }
.services-head { margin-bottom: 64px; }
.services-head .section-heading { margin-bottom: 0; }
.services-list { display: flex; flex-direction: column; }

.service {
  display: grid; grid-template-columns: 56px 1fr;
  align-items: center; gap: 28px; padding: 32px 0;
  border-bottom: 1px solid rgba(26,25,23,0.08);
  transition: padding-left 0.3s var(--ease-out);
}
.service:first-child { border-top: 1px solid rgba(26,25,23,0.08); }
.service-n { font-size: 10.5px; letter-spacing: 0.12em; color: var(--mid); transition: color 0.3s; }
.service-name {
  font-family: var(--serif); font-size: clamp(22px, 3vw, 32px);
  font-weight: 300; color: var(--black); margin-bottom: 6px;
  transition: transform 0.35s var(--ease-out);
}
.service-desc { font-size: 13px; font-weight: 300; line-height: 1.75; color: var(--charcoal); max-width: 500px; }
.service-arrow { font-size: 18px; color: var(--mid); justify-self: end; transition: color 0.3s, transform 0.35s var(--ease-out); }

.service:hover { padding-left: 8px; }
.service:hover .service-n     { color: var(--charcoal); }
.service:hover .service-name  { transform: translateX(4px); }
.service:hover .service-arrow { color: var(--black); transform: translateX(8px); }

/* ----- EDITORIAL GALLERY ----- */

.gallery { background: var(--black); padding: 4px; }
.gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 45vw 45vw;
  gap: 4px;
}
.gallery-cell { overflow: hidden; position: relative; }
.gallery-full { grid-column: span 2; grid-row: 1; }
.gallery-tall { /* right cell, row 2 */ }

.gallery-cell img { transition: transform 0.8s var(--ease-out); }
.gallery-cell:hover img { transform: scale(1.04); }

/* ----- LET'S TALK STRATEGY ----- */

.lets-talk {
  padding: clamp(140px, 20vw, 260px) 0;
  background: var(--white); text-align: center;
}
.lets-talk-heading {
  font-family: var(--serif);
  font-size: clamp(52px, 8vw, 120px);
  font-weight: 300; line-height: 1.06;
  color: var(--black);
}
.lets-talk-heading em { font-style: italic; }


/* ----- IMAGE STRIP ----- */

.img-strip {
  width: 100%; height: clamp(520px, 80vw, 900px);
  overflow: hidden;
}
.img-strip img {
  object-fit: cover; object-position: center center;
  transition: transform 0.8s var(--ease-out);
  image-rendering: -webkit-optimize-contrast;
}
.img-strip:hover img { transform: scale(1.02); }

/* ----- PROCESS ----- */

.process { padding: var(--gap-xl) 0; background: var(--grey-2); }
.process .section-heading { margin-bottom: 72px; }
.process-row {
  display: flex; align-items: flex-start;
  overflow-x: auto; scrollbar-width: none; padding-bottom: 4px;
}
.process-row::-webkit-scrollbar { display: none; }
.process-step { flex: 1; min-width: 160px; }
.process-sep {
  font-size: 22px; color: var(--mid); flex-shrink: 0;
  padding: 10px 12px 0; align-self: flex-start;
}
.step-n {
  display: block; font-size: 10px; font-weight: 400;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--mid); margin-bottom: 18px;
}
.step-name {
  font-family: var(--serif); font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 300; color: var(--black); margin-bottom: 10px;
}
.step-body { font-size: 13px; font-weight: 300; line-height: 1.75; color: var(--charcoal); }

/* ----- CONTACT ----- */

.contact { padding: var(--gap-xl) 0; background: var(--white); }
.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(60px, 8vw, 120px); align-items: start;
}
.contact-left .section-heading { margin-bottom: 48px; }

.contact-email {
  display: block; font-family: var(--serif);
  font-size: clamp(14px, 1.6vw, 19px); font-weight: 300;
  color: var(--black); padding-bottom: 14px;
  border-bottom: 1px solid var(--grey-2); margin-bottom: 22px;
  transition: border-color 0.25s;
}
.contact-email:hover { border-color: var(--black); }
.contact-socials { display: flex; flex-direction: column; gap: 10px; }
.contact-social {
  font-size: 10.5px; font-weight: 400; letter-spacing: 0.12em;
  text-transform: lowercase; color: var(--charcoal); transition: color 0.2s;
}
.contact-social:hover { color: var(--black); }

/* Form */
.field { margin-bottom: 32px; }
.field-label {
  display: block; font-size: 9.5px; font-weight: 400;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--mid); margin-bottom: 10px;
}
.field-input {
  display: block; width: 100%; border: none;
  border-bottom: 1px solid var(--grey-2); background: transparent;
  padding: 10px 0; font-family: var(--sans); font-size: 14px;
  font-weight: 300; color: var(--black); outline: none;
  transition: border-color 0.25s;
}
.field-input::placeholder { color: var(--mid); }
.field-input:focus { border-color: var(--black); }
.field-textarea { resize: vertical; min-height: 96px; line-height: 1.6; }

.form-btn {
  display: inline-flex; align-items: center; gap: 14px;
  background: var(--black); color: var(--white); border: none;
  padding: 16px 32px; font-family: var(--sans); font-size: 10.5px;
  font-weight: 400; letter-spacing: 0.16em; text-transform: uppercase;
  cursor: none; margin-top: 8px;
  transition: background 0.3s, gap 0.3s var(--ease-out);
}
.form-btn:hover { background: var(--dark); gap: 20px; }
.form-success {
  font-size: 13px; font-weight: 300; color: var(--charcoal);
  margin-top: 16px; min-height: 20px; opacity: 0; transition: opacity 0.4s;
}
.form-success.show { opacity: 1; }

/* ----- FOOTER ----- */

.footer {
  background: var(--black); padding: 48px var(--pad);
  border-top: 1px solid rgba(255,255,255,0.07);
}
.footer-inner {
  max-width: var(--max-w); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.footer-copy {
  font-size: 11px; font-weight: 300;
  color: rgba(250,250,248,0.35); letter-spacing: 0.05em;
}
.footer-ig {
  font-size: 10.5px; font-weight: 400; letter-spacing: 0.12em;
  text-transform: lowercase; color: rgba(250,250,248,0.35); transition: color 0.2s;
}
.footer-ig:hover { color: var(--white); }

/* ----- RESPONSIVE ----- */

@media (max-width: 1024px) {
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 52px; }
  .about-img-detail { left: 0; width: 44%; }
  .brand-info-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-rows: 56vw 56vw; }
}

@media (max-width: 768px) {
  .nav-left, .nav-right { display: none; }
  .nav-inner { grid-template-columns: 1fr; justify-items: center; }
  .hamburger { display: flex; }

  .hero-center { padding-top: 110px; }
  .hero-aside { width: 40vw; height: 50vh; }

  .service { grid-template-columns: 44px 1fr; gap: 16px; }
  .service-arrow { display: none; }

  .gallery-grid { grid-template-columns: 1fr; grid-template-rows: auto; }
  .gallery-full { grid-column: span 1; }
  .gallery-cell { aspect-ratio: 4/3; }

  .brand-cards-grid { grid-template-columns: 1fr; gap: 20px; }
  .brand-cards-grid .brand-card:nth-child(2),
  .brand-cards-grid .brand-card:nth-child(3) { display: none; }

  .process-row { flex-direction: column; gap: 28px; }
  .process-sep { display: none; }
  .process-step { border-bottom: 1px solid var(--grey-2); padding-bottom: 24px; min-width: unset; }

  .about-img-detail { display: none; }
  .about-images { padding-bottom: 0; }

  .footer-inner { flex-direction: column; text-align: center; gap: 14px; }
}

@media (max-width: 480px) {
  .about-stats { flex-wrap: wrap; gap: 20px; }
  .hero-slogan { font-size: clamp(36px, 11vw, 56px); }
  .hero-aside { width: 50vw; }
}

/* ----- Reduced Motion ----- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .ticker-track, .ticker-track-rev { animation: none; }
  .cursor-glass, .cursor-dot { display: none; }
  body { cursor: auto; }
}
