@font-face {
  font-family: 'TeX Gyre Pagella';
  src: url('/fonts/texgyrepagella-regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

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

:root {
  --black:   #000000;
  --white:   #FFFFFF;
  --gray-1:  #555555;
  --gray-2:  #808080;
  --gray-3:  #AAAAAA;
  --gray-4:  #D5D5D5;
  --nav-w:   14vw;
  --max-w:   1600px;
  --font-display: 'Jost', sans-serif;
  --font-accent:  'TeX Gyre Pagella', 'Palatino Linotype', serif;
  --font-body:    'Jost', sans-serif;
}

html, body {
  height: 100%;
}

body {
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 10px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  background: var(--black);
}

/* ── FULL-PAGE BACKGROUND ── */
.page-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background-image: url('/assets/midtown.webp');
  background-size: cover;
  background-position: center 30%;
  pointer-events: none;
}

.page-bg-overlay {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: rgba(0,0,0,0.65);
  pointer-events: none;
}

/* ── FOOTER FIXED AT BOTTOM ──
   footer is in page flow, snaps to top when 50% visible. */
footer {
  position: relative;
  width: 100%;
  min-height: 100vh;
  background: var(--black);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.page-wrapper {
  position: relative;
  z-index: 1;
  background: transparent;
}

/* ── RIGHT-SIDE NAV ── */
.side-nav {
  position: fixed;
  right: 0;
  top: 0;
  width: 14vw;
  height: 100vh;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity 0.4s ease;
}

.side-nav.hidden {
  opacity: 0;
  pointer-events: none;
}

.side-nav-logo {
  display: block;
  margin-bottom: 12px;
}

.side-nav-logo img {
  width: 12.39vw;
  height: auto;
  display: block;
}

.side-nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.side-nav-links a {
  display: block;
  font-family: var(--font-display);
  font-size: max(16px, 1.25vw);
  font-weight: 400;
  letter-spacing: 0;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--gray-3);
  padding: 7px 0;
  text-align: center;
  transition: color 0.2s;
  white-space: nowrap;
}

.side-nav-links a:hover,
.side-nav-links a.active { color: var(--white); }

/* Book a Consultation square button */
.side-nav-book {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 10.59vw;
  height: 10.59vw;
  border: 1px solid var(--white);
  outline: 0.5px solid var(--white);
  outline-offset: 1.5px;
  text-decoration: none;
  margin-top: 12px;
  transition: opacity 0.2s;
}

.side-nav-book:hover { opacity: 0.6; }

.side-nav-book span {
  display: block;
  font-family: var(--font-display);
  font-size: max(16px, 1.25vw);
  font-weight: 400;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--white);
  line-height: 1.3;
  text-align: center;
}




/* ── SCROLL HINT ── */
.hero-scroll-hint {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0.5;
  animation: scrollBounce 2s ease-in-out infinite;
}

.hero-scroll-hint span {
  font-family: var(--font-display);
  font-size: max(11px, 0.86vw);
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--white);
}

.hero-scroll-line {
  width: 1px;
  height: 32px;
  background: linear-gradient(to bottom, var(--white), transparent);
}

.hero-scroll-arrow {
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid var(--white);
  margin-top: -4px;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}


/* ── SNAP SCROLL ── */
.snap-section {
  min-height: 100vh;
}

/* ── PAGE CONTENT ── */
.page-content {
  position: relative;
  z-index: 1;
}

/* ── SECTIONS ── */
section {
  padding: 100px 48px;
  padding-right: calc(var(--nav-w) + 48px);
  max-width: var(--max-w);
  margin: 0 auto;
}

.section-label {
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gray-2);
  margin-bottom: 56px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,0.12);
}

/* ── HERO ── */
.hero-section {
  height: 100vh;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
}

.hero {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 48px;
  text-align: center;
}

.buffer-section {
  height: 30vh;
  pointer-events: none;
}

.hero-logo {
  height: 5vh;
  width: auto;
  margin-bottom: 48px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.hero-question {
  font-family: var(--font-display);
  font-size: clamp(16px, 2vw, 22px);
  font-weight: 300;
  color: var(--gray-3);
  letter-spacing: 0.04em;
  margin-bottom: 16px;
  text-align: center;
}



.hero-answer {
  font-family: var(--font-display);
  font-size: clamp(36px, 6vw, 80px);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 40px;
}

.hero-sub {
  font-size: 15px;
  font-weight: 300;
  line-height: 1.85;
  color: var(--gray-3);
  max-width: 560px;
  text-align: center;
  margin: 0 auto;
}

/* ── SECTION WRAPPERS ── */
.section-wrap {
  background: rgba(0,0,0,0.72);
}

.section-wrap-dark {
  background: rgba(0,0,0,0.88);
}

/* ── PROBLEM ── */
.problem-text {
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 38px);
  font-weight: 300;
  line-height: 1.5;
  letter-spacing: 0.02em;
  max-width: 820px;
  color: var(--gray-4);
}

.problem-text strong {
  font-weight: 400;
  color: var(--white);
}

/* ── SERVICES ── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid rgba(255,255,255,0.1);
  margin-top: 8px;
}

.service-item {
  padding: 40px 36px;
  border-right: 1px solid rgba(255,255,255,0.1);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.service-item:nth-child(3n) { border-right: none; }
.service-item:nth-child(n+4) { border-bottom: none; }

.service-number {
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.2em;
  color: var(--gray-2);
  margin-bottom: 20px;
}

.service-name {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 14px;
  line-height: 1.3;
}

.service-desc {
  font-size: 13px;
  font-weight: 300;
  color: var(--gray-2);
  line-height: 1.75;
}

.services-note {
  margin-top: 36px;
  font-size: 13px;
  font-weight: 300;
  color: var(--gray-2);
  max-width: 560px;
  line-height: 1.75;
}

/* ── CASE STUDY ── */
.case-layout {
  display: grid;
  grid-template-columns: 1fr 1.8fr;
  gap: 100px;
  align-items: start;
}

.case-meta {
  position: sticky;
  top: 60px;
}

.case-client {
  font-family: var(--font-accent);
  font-size: 32px;
  font-weight: 400;
  line-height: 1.2;
  color: var(--white);
  margin-bottom: 8px;
}

.case-client-zh {
  font-family: var(--font-accent);
  font-size: 16px;
  font-weight: 400;
  color: var(--gray-2);
  margin-bottom: 36px;
}

.case-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gray-2);
  border: 1px solid rgba(255,255,255,0.15);
  padding: 6px 12px;
  margin: 0 6px 8px 0;
}

.case-body h3 {
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gray-2);
  margin: 44px 0 16px;
}

.case-body h3:first-child { margin-top: 0; }

.case-body p {
  font-size: 14px;
  font-weight: 300;
  line-height: 1.9;
  color: var(--gray-3);
}

.deliverables {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid rgba(255,255,255,0.1);
  margin-top: 16px;
}

.deliverable {
  padding: 14px 18px;
  font-size: 12px;
  font-weight: 300;
  color: var(--gray-2);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  border-right: 1px solid rgba(255,255,255,0.1);
  line-height: 1.4;
}

.deliverable:nth-child(even) { border-right: none; }
.deliverable:nth-last-child(-n+2) { border-bottom: none; }

.case-result {
  margin-top: 44px;
  padding: 28px 32px;
  border-left: 1px solid var(--gray-1);
}

.case-result p {
  font-family: var(--font-accent);
  font-size: 19px;
  font-weight: 400;
  font-style: italic;
  line-height: 1.6;
  color: var(--gray-4);
}

/* ── WHO ── */
.who-list {
  border-top: 1px solid rgba(255,255,255,0.1);
}

.who-item {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 48px;
  align-items: baseline;
  padding: 28px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.who-name {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
}

.who-desc {
  font-size: 13px;
  font-weight: 300;
  color: var(--gray-2);
  line-height: 1.75;
}

/* ── ABOUT ── */
.about-layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 100px;
  align-items: start;
}

.about-headline {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 40px);
  font-weight: 300;
  letter-spacing: 0.04em;
  line-height: 1.3;
  color: var(--white);
}

.about-headline em {
  font-style: italic;
  color: var(--gray-3);
}

.about-body p {
  font-size: 14px;
  font-weight: 300;
  line-height: 1.9;
  color: var(--gray-2);
  margin-bottom: 20px;
}

.about-body p:last-child { margin-bottom: 0; }

.about-credit {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray-2);
}

/* ── CTA ── */
.cta-section {
  text-align: center;
  padding: 120px 48px;
  padding-right: calc(var(--nav-w) + 48px);
  max-width: var(--max-w);
  margin: 0 auto;
}

.cta-headline {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 56px);
  font-weight: 300;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.2;
  color: var(--white);
  max-width: 700px;
  margin: 0 auto 56px;
}

.cta-button {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--white);
  border: 1px solid var(--gray-1);
  padding: 18px 48px;
  transition: border-color 0.2s;
}

.cta-button:hover { border-color: var(--white); }

.cta-sub {
  margin-top: 24px;
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.1em;
  color: var(--gray-2);
}

/* ── FOOTER ── */
.footer-inner {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-columns {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
}

.footer-col {
  margin-right: 10vw;
}

.footer-col:last-child {
  margin-right: 0;
}

.footer-col-heading {
  font-family: var(--font-display);
  font-size: max(16px, 1.25vw);
  font-weight: 500;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 15px;
  display: inline-block;
  transform: scaleX(1);
  transform-origin: left;
}

.footer-col-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.footer-col-links a {
  font-family: var(--font-display);
  font-size: max(16px, 1.25vw);
  font-weight: 400;
  line-height: 2em;
  color: #AAAAAA;
  text-decoration: none;
  letter-spacing: 0;
  display: inline-block;
  transform: scaleX(1);
  transform-origin: left;
  transition: color 0.2s;
}

.footer-col-links a:hover { color: var(--white); }

.footer-social {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 4px;
}

.footer-social a {
  display: flex;
  align-items: center;
  width: 18px;
  height: 18px;
  transition: opacity 0.2s;
}

.footer-social a:hover { opacity: 0.6; }

.footer-social svg {
  width: 18px;
  height: 18px;
  fill: #AAAAAA;
}

.footer-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  margin-bottom: 5%;
}

.footer-copy {
  font-family: var(--font-accent);
  font-size: max(14px, 1.094vw);
  font-weight: 300;
  letter-spacing: 0;
  line-height: normal;
  color: var(--white);
}

/* ── RESPONSIVE ── */
@media (max-width: 1100px) {
  :root { --nav-w: 120px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .service-item:nth-child(3n) { border-right: 1px solid rgba(255,255,255,0.1); }
  .service-item:nth-child(2n) { border-right: none; }
  .service-item:nth-child(n+5) { border-bottom: none; }
  .service-item:nth-child(4) { border-bottom: 1px solid rgba(255,255,255,0.1); }
  .case-layout { grid-template-columns: 1fr; gap: 56px; }
  .case-meta { position: static; }
  .about-layout { grid-template-columns: 1fr; gap: 48px; }
  .footer-columns { grid-template-columns: repeat(2, minmax(120px, 180px)); gap: 40px 60px; }
}

@media (max-width: 768px) {
  :root { --nav-w: 0px; }
  .side-nav { display: none; }
  section { padding: 72px 24px; }
  .hero { padding: 0 24px; }
  .cta-section { padding: 80px 24px; }
  .services-grid { grid-template-columns: 1fr; }
  .service-item { border-right: none !important; }
  .service-item:last-child { border-bottom: none; }
  .who-item { grid-template-columns: 1fr; gap: 8px; }
  .deliverables { grid-template-columns: 1fr; }
  .deliverable { border-right: none !important; }
  .deliverable:nth-last-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,0.1); }
  .deliverable:last-child { border-bottom: none; }
  .footer-inner { padding: 40px 24px 32px; }
  .footer-columns { grid-template-columns: repeat(2, 1fr); gap: 32px 40px; }
  .footer-bottom { padding: 20px 24px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
