/* ============================================================
   Orchard Studio® — 1:1 Replica Stylesheet
   ============================================================ */

@font-face {
  font-family: "Open Sauce Sans";
  src: url("./assets/fonts/OpenSauceSans-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Open Sauce Sans";
  src: url("./assets/fonts/OpenSauceSans-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Open Sauce Sans";
  src: url("./assets/fonts/OpenSauceSans-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Open Sauce Sans";
  src: url("./assets/fonts/OpenSauceSans-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Open Sauce One";
  src: url("./assets/fonts/OpenSauceOne-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Switzer";
  src: url("./assets/fonts/Switzer-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Switzer";
  src: url("./assets/fonts/Switzer-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Switzer";
  src: url("./assets/fonts/Switzer-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ---------- Theme Tokens ---------- */
:root,
[data-theme="light"] {
  --font-cjk: "Source Han Sans SC", "Source Han Sans CN", "Noto Sans SC", "思源黑体", "思源黑体 CN", sans-serif;
  --bg-primary: #ffffff;
  --bg-surface: #f7f7f7;
  --bg-dark: #212121;
  --bg-footer: #000000;
  --text-primary: #000000;
  --text-muted: #7a7a7a;
  --text-subtle: #999999;
  --text-faint: #c2c2c2;
  --text-on-dark: #ffffff;
  --nav-bg: rgba(0, 0, 0, 0.24);
  --nav-border: rgba(255, 255, 255, 0.14);
  --nav-text: #ffffff;
  --nav-menu-bg: rgba(18, 18, 18, 0.88);
  --cursor-bg: #000000;
  --cursor-text: #ffffff;
  --viewer-veil: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] {
  --bg-primary: #0b0b0b;
  --bg-surface: #1b1b1b;
  --bg-dark: #161616;
  --bg-footer: #000000;
  --text-primary: #ffffff;
  --text-muted: #9a9a9a;
  --text-subtle: #7a7a7a;
  --text-faint: #454545;
  --text-on-dark: #ffffff;
  --nav-bg: rgba(255, 255, 255, 0.14);
  --nav-border: rgba(255, 255, 255, 0.2);
  --nav-text: #ffffff;
  --nav-menu-bg: rgba(22, 22, 22, 0.92);
  --cursor-bg: #ffffff;
  --cursor-text: #000000;
  --viewer-veil: rgba(11, 11, 11, 0.14);
}

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

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  transition: background-color 0.35s ease, color 0.35s ease;
}

body {
  font-family: "Switzer", var(--font-cjk);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  overflow-x: clip;
  transition: background-color 0.35s ease, color 0.35s ease;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

img,
video {
  display: block;
}

/* ============================================================
   G1: Top Floating Frosted Glass Nav Pill
   ============================================================ */
.nav-wrapper {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 0 16px;
  z-index: 100;
  pointer-events: none;
}

.nav-pill {
  pointer-events: auto;
  width: min(559px, 100%);
  height: 54px;
  padding: 8px 10px 8px 24px;
  border-radius: 80px;
  background-color: var(--nav-bg);
  border: 1px solid var(--nav-border);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: var(--nav-text);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

/* Left nav items: evenly distributed on the left side */
.nav-links {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 1;
  max-width: 280px;
}

.nav-link {
  font-family: "Open Sauce One", "Open Sauce Sans", var(--font-cjk);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  line-height: 1.4;
  color: var(--nav-text);
  opacity: 0.92;
  transition: opacity 0.2s ease, transform 0.2s ease;
  white-space: nowrap;
}

.nav-link:hover {
  opacity: 1;
}

/* Right controls matching Screenshot 1 */
.nav-controls {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

/* Half-filled circle Light/Dark toggle */
.theme-toggle-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--nav-text);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.2s ease;
}

.theme-toggle-btn:hover {
  opacity: 0.85;
}

[data-theme="dark"] .theme-toggle-btn .theme-icon {
  transform: rotate(180deg);
}

.theme-icon {
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Language Switcher Pill (EN ⌄) */
.lang-dropdown {
  position: relative;
}

.lang-pill-btn {
  height: 34px;
  padding: 0 12px 0 14px;
  border-radius: 999px;
  border: 1.5px solid rgba(255, 255, 255, 0.9);
  background: transparent;
  color: var(--nav-text);
  font-family: "Open Sauce Sans", "Switzer", var(--font-cjk);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background-color 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}

.lang-pill-btn:hover {
  background-color: rgba(255, 255, 255, 0.12);
}

.lang-chevron {
  transition: transform 0.25s ease;
}

.lang-dropdown.is-open .lang-chevron {
  transform: rotate(180deg);
}

.lang-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 132px;
  padding: 6px;
  border-radius: 16px;
  background-color: var(--nav-menu-bg);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  display: flex;
  flex-direction: column;
  gap: 2px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px) scale(0.97);
  transition: opacity 0.2s ease, transform 0.22s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.2s;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.32);
}

.lang-dropdown.is-open .lang-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.lang-option {
  width: 100%;
  padding: 8px 12px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  transition: background-color 0.18s ease, color 0.18s ease;
}

.lang-option:hover,
.lang-option.is-active {
  background-color: rgba(255, 255, 255, 0.14);
  color: #ffffff;
}

.lang-option-sub {
  font-size: 11px;
  opacity: 0.65;
}

/* ============================================================
   S1: Split-Screen Full-Viewport Hero
   ============================================================ */
.hero-section {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 680px;
  overflow: clip;
  background-color: #000000;
}

.hero-media {
  position: absolute;
  top: 0;
  width: 50%;
  height: 100%;
  overflow: hidden;
}

.hero-media-inner {
  width: 100%;
  height: 100%;
  opacity: 0.001;
  transform: scale(1.2);
  will-change: transform, opacity;
  transition: transform 0.95s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1);
}

body.is-loaded .hero-media-inner {
  opacity: 1;
  transform: scale(1);
}

.hero-media-left {
  left: 0;
}

.hero-media-right {
  right: 0;
}

.hero-asset {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
}

.hero-split-item {
  display: inline-block;
  opacity: 0.001;
  transform: translate3d(0, 18px, 0);
  will-change: transform, opacity;
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1), transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-split-item.is-shown {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.hero-title .hero-split-item {
  transform: translate3d(0, 42px, 0);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.95s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-title .hero-split-item.is-shown {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.hero-overlay {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 1920px;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(6, minmax(50px, 1fr));
  gap: clamp(90px, 15.5vh, 200px) 20px;
  z-index: 2;
  pointer-events: none;
}

.hero-caption {
  grid-column: span 2;
  font-family: "Switzer", var(--font-cjk);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.4;
  color: #ffffff;
}

.hero-title {
  grid-column: span 6;
  font-family: "Open Sauce Sans", var(--font-cjk);
  font-size: clamp(64px, 9vw, 140px);
  font-weight: 600;
  letter-spacing: -0.06em;
  line-height: 0.94;
  color: #ffffff;
  text-align: left;
}

/* ============================================================
   S2: Editorial Statement Section
   ============================================================ */
.statement-section {
  width: 100%;
  background-color: var(--bg-primary);
  transition: background-color 0.35s ease;
}

.statement-inner {
  width: 100%;
  max-width: 1920px;
  margin: 0 auto;
  padding: 200px 20px 0;
  display: grid;
  grid-template-columns: repeat(8, minmax(50px, 1fr));
  gap: 0;
}

.statement-left {
  grid-column: span 2;
}

.statement-spacer {
  grid-column: span 2;
}

.statement-right {
  grid-column: span 4;
}

.statement-intro {
  font-family: "Switzer", var(--font-cjk);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.4;
  color: var(--text-muted);
  max-width: 380px;
}

.statement-display {
  font-family: "Open Sauce Sans", var(--font-cjk);
  font-size: clamp(32px, 4.1vw, 64px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.06;
  color: var(--text-primary);
  padding-right: 12px;
}

.statement-indent {
  display: inline-block;
  width: 24%;
}

html[lang="zh"] .statement-display {
  letter-spacing: -0.02em;
  line-height: 1.24;
}

html[lang="zh"] .statement-indent {
  width: 2em;
}

.reveal-word {
  display: inline-block;
  white-space: nowrap;
  margin-right: 0.26em;
}

html[lang="zh"] .reveal-word {
  margin-right: 0;
}

.reveal-char {
  display: inline-block;
  opacity: 0.001;
  transform: translate3d(0, 10px, 0);
  transition: opacity 0.42s cubic-bezier(0.22, 1, 0.36, 1), transform 0.48s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.reveal-char.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

/* ============================================================
   S3: Featured Works (5 Stacked 50/50 Rows)
   ============================================================ */
.works-section {
  width: 100%;
  background-color: var(--bg-primary);
  transition: background-color 0.35s ease;
}

.works-list {
  width: 100%;
  max-width: 1920px;
  margin: 0 auto;
  padding: 120px 0 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.work-row {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(6, minmax(50px, 1fr));
  gap: 10px;
  padding: 0;
  align-items: start;
}

.work-row-link {
  cursor: pointer;
}

.work-media-col {
  grid-column: span 3;
  width: 100%;
}

.work-media-shell {
  width: 100%;
  aspect-ratio: 1.4875;
  min-height: 642px;
  overflow: hidden;
  display: flex;
  align-items: flex-start;
}

.work-media-reveal {
  position: relative;
  width: 100%;
  height: 40px;
  overflow: hidden;
  transform: translateZ(0px);
  contain: paint;
  will-change: height;
}

.work-asset {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  transform-origin: 50% 50%;
  backface-visibility: hidden;
  pointer-events: none;
  transform: translate3d(0px, -20px, 0px) scale(2);
  will-change: transform;
}

.work-info-col {
  grid-column: span 3;
  padding: 0 20px 0 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.work-title {
  font-family: "Switzer", var(--font-cjk);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.4;
  color: var(--text-primary);
}

.work-client {
  font-family: "Switzer", var(--font-cjk);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.4;
  color: var(--text-muted);
}

/* ============================================================
   S4: Clients Section
   ============================================================ */
.clients-section {
  position: relative;
  width: 100%;
  background-color: var(--bg-primary);
  transition: background-color 0.35s ease;
}

.clients-inner {
  width: 99%;
  max-width: 1920px;
  margin: 0 auto;
  padding: 120px 20px 180px;
  display: grid;
  grid-template-columns: repeat(8, minmax(50px, 1fr));
  gap: 0;
}

.clients-industries {
  grid-column: span 2;
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.industry-item {
  font-family: "Switzer", var(--font-cjk);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.4;
  color: var(--text-primary);
}

.clients-spacer {
  grid-column: span 1;
}

.clients-names-col {
  grid-column: span 5;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.clients-names-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.client-name {
  font-family: "Open Sauce Sans", var(--font-cjk);
  font-size: clamp(36px, 4.1vw, 64px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.04;
  color: var(--text-primary);
  opacity: 1;
  transition: color 0.35s ease;
}

/* ============================================================
   S7: Full-Viewport Black Footer (Slides Over Sticky S4)
   ============================================================ */
.footer-section {
  position: relative;
  z-index: 10;
  width: 100%;
  min-height: 100vh;
  background-color: var(--bg-footer);
  color: #ffffff;
  padding: 60px 20px 24px;
  display: flex;
  flex-direction: column;
}

.footer-inner {
  width: 100%;
  max-width: 1920px;
  margin: 0 auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 48px;
}

.footer-wordmark-row {
  width: 100%;
}

.footer-wordmark {
  font-family: "Open Sauce Sans", var(--font-cjk);
  font-size: clamp(40px, 4.1vw, 64px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  color: #ffffff;
}

.footer-meta-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(50px, 1fr));
  gap: 24px 10px;
}

.footer-col-nav {
  grid-column: span 3;
}

.footer-col-contact {
  grid-column: span 2;
}

.footer-col-address {
  grid-column: span 1;
}

.footer-label {
  font-family: "Switzer", var(--font-cjk);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.4;
  color: #7a7a7a;
  margin-bottom: 12px;
}

.footer-nav-columns {
  display: flex;
  gap: clamp(48px, 12vw, 200px);
}

.footer-nav-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* Footer 3D Dual-Text Flip Link (Exact Framer .framer-hIrXG mechanic) */
.footer-link {
  position: relative;
  display: inline-block;
  height: 20px;
  overflow: clip;
  font-family: "Switzer", var(--font-cjk);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 20px;
  color: #ffffff;
  perspective: 600px;
}

.footer-link-track {
  display: flex;
  flex-direction: column;
  gap: 25px;
  transform: translate3d(0, 0, 0);
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.footer-link-text {
  display: block;
  height: 20px;
  line-height: 20px;
  transform-style: preserve-3d;
  transform-origin: left center;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.35s ease;
}

.footer-link-text.is-primary {
  transform: rotate(0deg) rotateY(0deg);
}

.footer-link-text.is-secondary {
  transform: rotate(25deg) rotateY(25deg);
}

.footer-link:hover .footer-link-track {
  transform: translate3d(0, -45px, 0);
}

.footer-link:hover .footer-link-text.is-primary {
  transform: rotate(25deg) rotateY(25deg);
}

.footer-link:hover .footer-link-text.is-secondary {
  transform: rotate(0deg) rotateY(0deg);
}

.footer-address-text {
  font-family: "Switzer", var(--font-cjk);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.4;
  color: #ffffff;
}

/* Bottom 5-Slot Graphic Showcase */
.footer-showcase {
  width: 100%;
  display: flex;
  flex-direction: row;
  gap: 0;
  margin-top: auto;
}

.footer-slot {
  width: 20%;
  aspect-ratio: 0.8;
  overflow: hidden;
  position: relative;
}

.footer-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transition: opacity 0.38s ease;
}

.footer-slot.is-active img {
  opacity: 1;
}

/* Bottom Legal & Social Row */
.footer-bottom-row {
  display: grid;
  grid-template-columns: repeat(6, minmax(50px, 1fr));
  gap: 12px 10px;
  align-items: center;
  padding-top: 12px;
}

.footer-copyright {
  grid-column: span 3;
  font-family: "Switzer", var(--font-cjk);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: #7a7a7a;
}

.footer-legal-links {
  grid-column: span 2;
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-social-links {
  grid-column: span 1;
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

/* ============================================================
   Responsive Adjustments
   ============================================================ */
@media (max-width: 1024px) {
  .statement-inner {
    padding-top: 120px;
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .statement-left,
  .statement-right {
    grid-column: span 1;
  }

  .statement-spacer {
    display: none;
  }

  .work-row {
    grid-template-columns: 1fr;
    min-height: auto;
    margin-bottom: 48px;
  }

  .work-media-col,
  .work-info-col {
    grid-column: span 1;
  }

  .work-info-col {
    padding: 12px 20px 0;
  }

  .clients-inner {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 80px 20px 120px;
  }

  .clients-industries,
  .clients-names-col {
    grid-column: span 1;
    position: static;
  }

  .clients-spacer {
    display: none;
  }

  .footer-meta-grid,
  .footer-bottom-row {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-col-nav,
  .footer-col-contact,
  .footer-col-address,
  .footer-copyright,
  .footer-legal-links,
  .footer-social-links {
    grid-column: span 1;
  }
}

@media (max-width: 640px) {
  .nav-pill {
    padding: 8px 8px 8px 16px;
    gap: 12px;
  }

  .nav-links {
    max-width: 180px;
  }

  .nav-link {
    font-size: 12px;
  }

  .hero-media {
    width: 100%;
    height: 50%;
  }

  .hero-media-right {
    top: 50%;
  }

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

  .hero-caption,
  .hero-title {
    grid-column: span 1;
  }
}
