/* ============================================
   ZontaHuxter — Luxury Design & Build
   ============================================ */

:root {
  --color-bg: #f7f4ef;
  --color-bg-dark: #1a1814;
  --color-text: #1a1814;
  --color-text-muted: #6b6560;
  --color-accent: #8b7355;
  --color-accent-light: #c4a882;
  --color-border: rgba(26, 24, 20, 0.12);
  --color-white: #faf8f5;

  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'DM Sans', system-ui, sans-serif;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

  --header-height: 80px;
  --container: min(1200px, 92vw);
}

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

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

html.lenis, html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

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

body.menu-open {
  overflow: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

address {
  font-style: normal;
}

.container {
  width: var(--container);
  margin-inline: auto;
}

.hidden {
  position: absolute;
  left: -9999px;
}

/* ---- Custom Cursor ---- */
.cursor,
.cursor-dot {
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.3s var(--ease-out), height 0.3s var(--ease-out), background 0.3s;
}

.cursor {
  width: 40px;
  height: 40px;
  border: 1px solid var(--color-accent);
  opacity: 0.5;
}

.cursor-dot {
  width: 6px;
  height: 6px;
  background: var(--color-accent);
}

.cursor.hover {
  width: 60px;
  height: 60px;
  background: rgba(139, 115, 85, 0.08);
  opacity: 1;
}

@media (max-width: 768px) {
  body { cursor: auto; }
  .cursor, .cursor-dot { display: none; }
}

/* ---- Loader ---- */
.loader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: var(--color-bg-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s var(--ease-out), visibility 0.8s;
  animation: loaderAutoHide 3.2s var(--ease-out) forwards;
}

.loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  animation: none;
}

html:not(.js) .loader {
  display: none;
}

@keyframes loaderAutoHide {
  0%, 75% { opacity: 1; visibility: visible; }
  100% { opacity: 0; visibility: hidden; pointer-events: none; }
}

.loader-inner {
  text-align: center;
  color: var(--color-white);
}

.loader-mark {
  height: clamp(52px, 10vw, 78px);
  width: auto;
  display: block;
  margin: 0 auto 1.25rem;
  filter: brightness(0) invert(1);
}

.loader-logo {
  font-family: var(--font-serif);
  font-size: clamp(1.15rem, 3vw, 1.75rem);
  letter-spacing: 0.12em;
  display: block;
  margin-bottom: 2rem;
}

.loader-bar {
  width: 200px;
  height: 1px;
  background: rgba(255,255,255,0.2);
  margin: 0 auto 1.5rem;
  overflow: hidden;
}

.loader-progress {
  height: 100%;
  width: 0%;
  background: var(--color-accent-light);
  transition: width 0.1s linear;
  animation: loaderFill 1.8s var(--ease-out) forwards;
}

@keyframes loaderFill {
  to { width: 100%; }
}

.loader-text {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}

/* ---- Header ---- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  transition: background 0.4s var(--ease-out), backdrop-filter 0.4s;
}

.header.scrolled {
  background: rgba(247, 244, 239, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
}

.header-solid {
  background: rgba(247, 244, 239, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 0 clamp(1.5rem, 4vw, 3rem);
}

.nav-logo {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  letter-spacing: 0.08em;
  font-weight: 400;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
}

.nav-mark {
  height: 34px;
  width: auto;
  display: block;
  flex-shrink: 0;
}

.nav-logo-lockup {
  height: 48px;
  width: auto;
  display: block;
}

.nav-logo-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  line-height: 1.1;
}

.nav-logo-text span:first-child {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  letter-spacing: 0.08em;
}

.nav-logo-text span:last-child {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  font-weight: 400;
  text-transform: none;
  opacity: 1;
}

body.home .header:not(.scrolled) {
  color: var(--color-white);
  background: transparent;
  backdrop-filter: none;
  border-bottom: none;
  box-shadow: none;
}

body.home .header:not(.scrolled) .nav-mark {
  filter: brightness(0) invert(1);
}

body.home .header:not(.scrolled) .nav-cta {
  border-color: rgba(255, 255, 255, 0.35);
}

body.home .header:not(.scrolled) .nav-cta:hover {
  background: var(--color-white);
  color: var(--color-text);
  border-color: var(--color-white);
}

body.home .header:not(.scrolled) .nav-toggle span {
  background: var(--color-white);
}

body.home .header:not(.scrolled) .nav-links a::after {
  background: var(--color-accent-light);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2.5rem;
}

.nav-links a {
  font-size: 0.8125rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  position: relative;
  transition: color 0.3s;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-accent);
  transition: width 0.4s var(--ease-out);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-cta {
  font-size: 0.8125rem;
  letter-spacing: 0.05em;
  padding: 0.75rem 1.5rem;
  border: 1px solid var(--color-border);
  transition: background 0.3s, border-color 0.3s;
}

.nav-cta:hover {
  background: var(--color-text);
  color: var(--color-white);
  border-color: var(--color-text);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 1px;
  background: var(--color-text);
  transition: transform 0.3s;
}

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: var(--color-bg-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s, visibility 0.5s;
}

.mobile-menu.open {
  opacity: 1;
  visibility: visible;
}

.mobile-menu nav {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  text-align: center;
}

.mobile-menu a {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 8vw, 3.5rem);
  color: var(--color-white);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s, transform 0.4s;
}

.mobile-menu.open a {
  opacity: 1;
  transform: translateY(0);
}

.mobile-menu.open a:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu.open a:nth-child(2) { transition-delay: 0.15s; }
.mobile-menu.open a:nth-child(3) { transition-delay: 0.2s; }
.mobile-menu.open a:nth-child(4) { transition-delay: 0.25s; }

@media (max-width: 900px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
}

/* ---- Typography ---- */
.section-label {
  font-size: 0.6875rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 1.5rem;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}

.section-title em {
  font-style: italic;
  color: var(--color-accent);
}

.section-intro {
  font-size: 1.125rem;
  color: var(--color-text-muted);
  max-width: 540px;
  line-height: 1.7;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 1rem 2rem;
  transition: all 0.4s var(--ease-out);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--color-text);
  color: var(--color-white);
  border: 1px solid var(--color-text);
}

.btn-primary:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
}

.btn-ghost {
  background: transparent;
  border: 1px solid var(--color-border);
}

.btn-ghost:hover {
  border-color: var(--color-text);
}

.btn-large {
  padding: 1.25rem 2.5rem;
  font-size: 0.875rem;
}

.link-arrow {
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent);
  transition: letter-spacing 0.4s var(--ease-out);
}

.link-arrow:hover {
  letter-spacing: 0.15em;
}

/* ---- Reveal Animations ---- */
html.js .reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}

html.js .reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Hero ---- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-top: calc(var(--header-height) + 3.25rem);
  padding-bottom: clamp(3rem, 8vw, 6rem);
}

.hero-meta {
  position: absolute;
  top: calc(var(--header-height) + 2rem);
  left: clamp(1.5rem, 4vw, 3rem);
  right: clamp(1.5rem, 4vw, 3rem);
  display: flex;
  justify-content: flex-end;
  font-size: 0.6875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-white);
  z-index: 2;
}

.hero-image-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #1a1814;
}

.hero-image {
  position: absolute;
  top: -12%;
  left: 0;
  width: 100%;
  height: 124%;
  will-change: transform;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(26, 24, 20, 0.08) 0%,
    rgba(26, 24, 20, 0.12) 40%,
    rgba(26, 24, 20, 0.72) 100%
  );
}

.hero-watermark {
  position: absolute;
  right: clamp(0.5rem, 5vw, 4rem);
  top: calc(var(--header-height) + 3rem);
  height: clamp(120px, 26vw, 260px);
  width: auto;
  opacity: 0.16;
  filter: brightness(0) invert(1);
  z-index: 2;
  pointer-events: none;
  user-select: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 clamp(1.5rem, 4vw, 3rem);
  max-width: 800px;
  color: var(--color-white);
}

.hero-brand {
  display: flex;
  align-items: center;
  gap: 1.45rem;
  margin-bottom: 3.75rem;
}

.hero-mark {
  height: clamp(58px, 8.5vw, 92px);
  width: auto;
  display: block;
  filter: brightness(0) invert(1);
}

@media (max-width: 500px) {
  .hero-watermark {
    opacity: 0.1;
    top: calc(var(--header-height) + 2.5rem);
  }

  .hero-brand {
    gap: 0.85rem;
    margin-bottom: 3rem;
  }
}

.hero-brand-rule {
  width: 1px;
  height: clamp(48px, 7.2vw, 72px);
  background: var(--color-accent-light);
  opacity: 0.85;
  flex-shrink: 0;
}

.hero-brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.hero-brand-text strong {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 3.6vw, 2.55rem);
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1;
}

.hero-brand-text span {
  font-size: 0.75rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  opacity: 0.72;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(1.9rem, 5vw, 4.5rem);
  font-weight: 300;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}

.hero-title .line {
  display: block;
  overflow: visible;
  white-space: nowrap;
  padding-bottom: 0.12em;
}

.hero-title em {
  font-style: italic;
  color: var(--color-accent-light);
}

.hero-desc {
  font-size: 1.125rem;
  line-height: 1.7;
  opacity: 0.85;
  max-width: 560px;
  margin-bottom: 1rem;
}

.hero-desc + .hero-desc {
  margin-bottom: 2.5rem;
}

.hero-actions {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 0.55rem;
  width: auto;
  max-width: 24rem;
}

.hero-actions .btn {
  flex: 1 1 0;
  min-width: 0;
  justify-content: center;
  text-align: center;
  padding: 0.62rem 0.85rem;
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.hero-actions .btn-primary {
  background: var(--color-bg);
  color: var(--color-text);
  border-color: var(--color-bg);
}

.hero-actions .btn-primary:hover {
  background: var(--color-white);
  border-color: var(--color-white);
  color: var(--color-text);
}

.hero-actions .btn-ghost {
  color: var(--color-white);
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.06);
}

.hero-actions .btn-ghost:hover {
  background: var(--color-white);
  color: var(--color-text);
  border-color: var(--color-white);
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  right: clamp(1.5rem, 4vw, 3rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  color: rgba(255,255,255,0.6);
  font-size: 0.625rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  z-index: 2;
}

.scroll-line {
  width: 1px;
  height: 60px;
  background: rgba(255,255,255,0.3);
  position: relative;
  overflow: hidden;
}

.scroll-line::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--color-accent-light);
  animation: scrollPulse 2s infinite;
}

@keyframes scrollPulse {
  0% { top: -100%; }
  100% { top: 100%; }
}

/* ---- Disciplines ---- */
.disciplines {
  padding: clamp(5rem, 12vw, 10rem) 0;
  overflow: visible;
}

.disciplines-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 2px;
  margin-top: 4rem;
  border: 2px solid var(--color-border);
  background: var(--color-border);
  isolation: isolate;
}

.discipline-card {
  background: var(--color-bg);
  padding: clamp(1.5rem, 2.4vw, 2.5rem);
  position: relative;
  z-index: 0;
  border: none;
  cursor: default;
  transform-origin: center center;
  transition: transform 0.5s var(--ease-out), opacity 0.45s var(--ease-out), box-shadow 0.5s var(--ease-out);
}

a.discipline-card {
  display: block;
  color: inherit;
  cursor: pointer;
  text-decoration: none;
}

a.discipline-card .discipline-more {
  display: inline-block;
  margin-top: 1.25rem;
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-accent);
}

@media (hover: hover) and (pointer: fine) and (min-width: 769px) {
  .disciplines-grid:hover .discipline-card {
    opacity: 0.32;
    transform: scale(0.96);
  }

  .disciplines-grid:hover .discipline-card:hover {
    z-index: 3;
    opacity: 1;
    transform: translateY(-18px) scale(1.38);
    box-shadow: 0 0 0 2px var(--color-border);
  }

  .discipline-card:hover .discipline-line {
    width: 80px;
  }
}

.discipline-num {
  font-size: 0.6875rem;
  letter-spacing: 0.2em;
  color: var(--color-accent);
  display: block;
  margin-bottom: 2rem;
}

.discipline-card h3 {
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 1.5vw, 1.6rem);
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.discipline-card p {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

.discipline-line {
  width: 40px;
  height: 1px;
  background: var(--color-accent);
  margin-top: 2rem;
  transition: width 0.5s var(--ease-out);
}


@media (max-width: 1100px) {
  .disciplines-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {
  .disciplines-grid {
    grid-template-columns: repeat(2, 1fr);
    margin-top: 2.5rem;
  }

  .discipline-card {
    padding: 1.1rem 1.15rem;
  }

  .discipline-num {
    margin-bottom: 0.7rem;
  }

  .discipline-card h3 {
    margin-bottom: 0.45rem;
  }

  .discipline-line {
    margin-top: 1rem;
  }
}

@media (max-width: 500px) {
  .disciplines-grid {
    grid-template-columns: 1fr;
  }
}

/* ---- Work Preview ---- */
.work-preview {
  padding: clamp(5rem, 12vw, 10rem) 0;
  background: var(--color-white);
}

.work-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 4rem;
  gap: 2rem;
  flex-wrap: wrap;
}

.projects-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  grid-template-rows: auto auto;
  gap: 1.5rem;
}

.project-card {
  display: block;
  position: relative;
  overflow: hidden;
  group: project;
}

.project-featured {
  grid-row: span 2;
  display: flex;
  flex-direction: column;
  overflow: visible;
}

.project-image {
  overflow: hidden;
  aspect-ratio: 4/3;
}

.project-featured .project-image {
  aspect-ratio: auto;
  flex: 1 1 auto;
  height: auto;
  min-height: 500px;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease-out);
  will-change: transform;
}

.project-card:hover .project-image img {
  transform: scale(1.06);
}

.project-info {
  padding: 1.5rem 0;
}

.project-info h3 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: 0.25rem;
  transition: color 0.3s;
}

.project-card:hover .project-info h3 {
  color: var(--color-accent);
}

.project-info p {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  letter-spacing: 0.05em;
}

.project-case {
  display: block;
  margin-top: 0.75rem;
  font-size: 0.6875rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-accent);
}

@media (max-width: 768px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }
  .project-featured {
    grid-row: auto;
  }
  .project-featured .project-image {
    min-height: 300px;
  }
}

/* ---- Philosophy ---- */
.philosophy {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 80vh;
}

.philosophy-image {
  overflow: hidden;
  position: relative;
  min-height: 80vh;
  background: #e8e4dc;
}

.philosophy-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
}

.philosophy-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(3rem, 8vw, 6rem);
}

.philosophy-text {
  font-size: 1.125rem;
  color: var(--color-text-muted);
  line-height: 1.8;
  max-width: 480px;
  margin-bottom: 1rem;
}

.philosophy-text + .philosophy-text {
  margin-bottom: 3rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 1.5rem;
  align-items: start;
  border-top: 1px solid var(--color-border);
  padding-top: 2.5rem;
}

.stat {
  display: grid;
  grid-template-rows: clamp(2.75rem, 5vw, 4rem) auto;
  row-gap: 0.75rem;
  min-width: 0;
}

.stat-number {
  font-family: var(--font-serif);
  font-size: clamp(2.75rem, 5vw, 4rem);
  font-weight: 300;
  display: block;
  line-height: 1;
  margin: 0;
  align-self: end;
  white-space: nowrap;
}

.stat-number-text {
  font-size: clamp(1.7rem, 3vw, 2.45rem);
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 0.6875rem;
  letter-spacing: 0.2em;
  color: var(--color-text-muted);
  line-height: 1.3;
  text-transform: uppercase;
}

.philosophy-inline {
  display: block;
  min-height: auto;
  padding: clamp(4rem, 10vw, 8rem) 0;
}

@media (max-width: 768px) {
  .philosophy {
    grid-template-columns: 1fr;
  }
  .philosophy-image {
    min-height: 50vh;
    max-height: 50vh;
  }
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* ---- CTA ---- */
.cta-section {
  padding: clamp(5rem, 12vw, 10rem) 0;
  text-align: center;
  background: var(--color-bg-dark);
  color: var(--color-white);
}

.cta-section .section-label {
  color: var(--color-accent-light);
}

.cta-section .section-title em {
  color: var(--color-accent-light);
}

.cta-text {
  font-size: 1.125rem;
  color: rgba(255,255,255,0.7);
  max-width: 520px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

/* ---- Footer ---- */
.footer {
  padding: clamp(3rem, 6vw, 5rem) 0 2rem;
  border-top: 1px solid var(--color-border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-mark {
  height: 42px;
  width: auto;
  display: block;
  margin-bottom: 0.85rem;
}

.footer-logo {
  font-family: var(--font-serif);
  font-size: 1rem;
  letter-spacing: 0.2em;
  display: block;
  margin-bottom: 1rem;
}

.footer-brand p {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  max-width: 320px;
  line-height: 1.7;
}

.footer-col h4 {
  font-size: 0.6875rem;
  letter-spacing: 0.2em;
  margin-bottom: 1.25rem;
}

.footer-col address,
.footer-col ul {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  line-height: 1.8;
}

.footer-col ul {
  list-style: none;
}

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom a:hover,
.footer-cookie-settings:hover {
  color: var(--color-accent);
}

.footer-cookie-settings {
  background: none;
  border: none;
  font: inherit;
  letter-spacing: inherit;
  text-transform: uppercase;
  color: inherit;
  cursor: pointer;
  padding: 0;
}

/* ---- Legal pages ---- */
.legal-section {
  padding: 0 0 clamp(4rem, 10vw, 8rem);
}

.legal-content {
  max-width: 42rem;
}

.legal-content h2 {
  font-family: var(--font-serif);
  font-size: 1.65rem;
  font-weight: 400;
  margin: 2.75rem 0 1rem;
}

.legal-content p,
.legal-content li {
  color: var(--color-text-muted);
  line-height: 1.75;
  margin-bottom: 1rem;
}

.legal-content ul {
  padding-left: 1.15rem;
  margin-bottom: 1.25rem;
}

.legal-content a {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.legal-content a:hover {
  color: var(--color-accent);
}

.legal-content strong {
  color: var(--color-text);
  font-weight: 500;
}

.legal-table-wrap {
  overflow-x: auto;
  margin: 1.5rem 0 2rem;
  border: 1px solid var(--color-border);
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.legal-table th,
.legal-table td {
  text-align: left;
  padding: 0.85rem 1rem;
  vertical-align: top;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text-muted);
  line-height: 1.5;
}

.legal-table th {
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text);
  font-weight: 500;
  background: var(--color-white);
}

.legal-table tr:last-child td {
  border-bottom: none;
}

.service-body {
  padding: 0 0 clamp(3rem, 6vw, 5rem);
}

.service-body .studio-text {
  max-width: 40rem;
}

.service-body .studio-text h2:not(:first-child) {
  margin-top: 2.75rem;
}

.service-related-wrap {
  padding: 0 0 clamp(5rem, 10vw, 8rem);
}

.service-related {
  margin-top: 0;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border);
}

.service-related ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
}

.service-related a {
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--color-text-muted);
}

.service-related a:hover,
.service-related a[aria-current="page"] {
  color: var(--color-accent);
  text-decoration: none;
}

/* ---- Cookie banner ---- */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10050;
  background: var(--color-white);
  border-top: 1px solid var(--color-border);
  padding: 1.25rem 0 calc(1.25rem + env(safe-area-inset-bottom));
  box-shadow: 0 -12px 40px rgba(26, 24, 20, 0.06);
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-banner-inner {
  width: var(--container);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.25rem 2rem;
}

.cookie-banner-copy {
  flex: 1 1 28rem;
  max-width: 44rem;
}

.cookie-banner-copy p {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--color-text-muted);
}

.cookie-banner-copy a {
  text-decoration: underline;
  text-underline-offset: 0.16em;
}

.cookie-banner-copy a:hover {
  color: var(--color-accent);
}

.cookie-banner-actions {
  display: flex;
  flex-shrink: 0;
  gap: 0.75rem;
  margin-left: auto;
}

.cookie-banner .btn {
  padding: 0.85rem 1.35rem;
  font-size: 0.75rem;
}

@media (max-width: 1100px) {
  .cookie-banner-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .cookie-banner-actions {
    margin-left: 0;
    justify-content: flex-start;
  }
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* ---- Page Hero (inner pages) ---- */
.page-hero {
  padding: calc(var(--header-height) + 4rem) 0 4rem;
}

.page-title {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 300;
  line-height: 1.05;
  margin-bottom: 1.5rem;
}

.page-title em {
  font-style: italic;
  color: var(--color-accent);
}

.page-intro {
  font-size: 1.125rem;
  color: var(--color-text-muted);
  max-width: 560px;
  line-height: 1.7;
}

/* ---- Work Archive ---- */
.work-archive {
  padding: 2rem 0 clamp(5rem, 10vw, 8rem);
}

.archive-grid {
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

.archive-item {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  align-items: start;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 4rem;
}

.archive-image {
  overflow: hidden;
  aspect-ratio: 16/10;
}

.archive-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease-out);
}

.archive-item:hover .archive-image img {
  transform: scale(1.04);
}

.archive-num {
  font-size: 0.6875rem;
  letter-spacing: 0.2em;
  color: var(--color-accent);
  display: block;
  margin-bottom: 1rem;
}

.archive-info h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 400;
  margin-bottom: 0.5rem;
}

.archive-info p {
  color: var(--color-text-muted);
  font-size: 0.9375rem;
  margin-bottom: 1.5rem;
}

.archive-expand {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  font-family: inherit;
}

.archive-detail {
  grid-column: 1 / -1;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.6s var(--ease-out), padding 0.6s;
}

.archive-item.expanded .archive-detail {
  max-height: 48rem;
  padding-top: 1.5rem;
}

.archive-detail p {
  font-size: 1.0625rem;
  color: var(--color-text-muted);
  line-height: 1.8;
  max-width: 680px;
}

@media (max-width: 768px) {
  .archive-item {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* ---- Studio ---- */
.studio-story {
  padding: 2rem 0 clamp(5rem, 10vw, 8rem);
}

.studio-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.studio-text h2 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  margin-bottom: 1.5rem;
}

.studio-text p {
  font-size: 1.0625rem;
  color: var(--color-text-muted);
  line-height: 1.8;
  margin-bottom: 1.25rem;
}

.studio-image {
  overflow: hidden;
}

.studio-image img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  object-position: center 30%;
}

.studio-team {
  padding-bottom: clamp(4rem, 8vw, 6rem);
}

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

.team-card {
  padding: 2.5rem;
  border: 1px solid var(--color-border);
  transition: border-color 0.4s, background 0.4s;
}

.team-card:hover {
  border-color: var(--color-accent);
  background: var(--color-white);
}

.team-card h3 {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 400;
  margin-bottom: 0;
}

.team-role {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-accent);
  display: block;
  margin-bottom: 1rem;
}

.team-card p {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  line-height: 1.7;
}

@media (max-width: 768px) {
  .studio-split, .team-grid {
    grid-template-columns: 1fr;
  }
}

/* ---- Contact ---- */
.contact-section {
  padding: 2rem 0 clamp(5rem, 10vw, 8rem);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
  align-items: start;
}

.form-group {
  margin-bottom: 1.75rem;
}

.form-group label {
  display: block;
  font-size: 0.6875rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  color: var(--color-text-muted);
}

.form-group input,
.form-group textarea {
  width: 100%;
  font-family: var(--font-sans);
  font-size: 1rem;
  padding: 1rem 0;
  border: none;
  border-bottom: 1px solid var(--color-border);
  background: transparent;
  color: var(--color-text);
  transition: border-color 0.3s;
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--color-accent);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-form .btn[disabled] {
  opacity: 0.6;
  pointer-events: none;
}

.form-legal {
  margin-top: 1rem;
  font-size: 0.6875rem;
  line-height: 1.55;
  letter-spacing: 0.01em;
  color: rgba(107, 101, 96, 0.72);
  max-width: 28rem;
}

.form-legal a {
  text-decoration: underline;
  text-underline-offset: 0.14em;
}

.form-legal a:hover {
  color: var(--color-text-muted);
}

.form-status {
  margin-top: 1.25rem;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--color-text-muted);
}

.form-status.is-error {
  color: #8a3a32;
}

.contact-block {
  margin-bottom: 2.5rem;
}

.contact-block h3 {
  font-size: 0.6875rem;
  letter-spacing: 0.2em;
  margin-bottom: 1rem;
}

.contact-block address,
.contact-block p,
.contact-block a {
  font-size: 1rem;
  color: var(--color-text-muted);
  line-height: 1.8;
}

.contact-block a:hover {
  color: var(--color-accent);
}

.contact-note {
  padding: 1.5rem;
  border-left: 2px solid var(--color-accent);
  margin-top: 1rem;
}

.contact-note p {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  line-height: 1.7;
}

@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

/* ---- Portrait phones ---- */
@media (max-width: 768px) {
  :root {
    --header-height: 68px;
    --container: min(1200px, calc(100vw - 2rem));
  }

  body.menu-open .nav-toggle span {
    background: var(--color-white);
  }

  .nav {
    padding: 0 1.1rem 0 1rem;
  }

  .nav-mark {
    height: 28px;
  }

  .nav-logo {
    gap: 0.5rem;
    min-width: 0;
  }

  .nav-logo-lockup {
    height: 40px;
  }

  .nav-logo-text span:first-child {
    font-size: 1.05rem;
  }

  .nav-logo-text span:last-child {
    font-size: 0.82rem;
  }

  .nav-toggle {
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
  }

  .hero {
    min-height: 100svh;
    padding-top: calc(var(--header-height) + 2.25rem);
    padding-bottom: 2.25rem;
  }

  .hero-overlay {
    background: linear-gradient(
      to bottom,
      rgba(26, 24, 20, 0.28) 0%,
      rgba(26, 24, 20, 0.2) 35%,
      rgba(26, 24, 20, 0.82) 100%
    );
  }

  .hero-meta {
    top: calc(var(--header-height) + 0.35rem);
    left: 1rem;
    right: 3.5rem;
    justify-content: flex-start;
    font-size: 0.6rem;
    letter-spacing: 0.12em;
    line-height: 1.4;
  }

  .hero-watermark {
    display: none;
  }

  .hero-content {
    padding: 0 1rem;
    max-width: none;
  }

  .hero-brand {
    gap: 0.75rem;
    margin-bottom: 1.5rem;
  }

  .hero-mark {
    height: 44px;
  }

  .hero-brand-rule {
    height: 36px;
  }

  .hero-brand-text strong {
    font-size: 1.45rem;
  }

  .hero-brand-text span {
    font-size: 0.625rem;
    letter-spacing: 0.2em;
  }

  .hero-title {
    font-size: clamp(1.85rem, 8.4vw, 2.45rem);
    line-height: 1.15;
    margin-bottom: 1.15rem;
  }

  .hero-title .line {
    white-space: normal;
    padding-bottom: 0.04em;
  }

  .hero-desc {
    font-size: 0.9375rem;
    line-height: 1.6;
    margin-bottom: 0.85rem;
  }

  .hero-desc + .hero-desc {
    margin-bottom: 1.5rem;
  }

  .hero-actions {
    gap: 0.4rem;
    max-width: 20rem;
  }

  .hero-actions .btn {
    padding: 0.55rem 0.4rem;
    font-size: clamp(0.52rem, 2.2vw, 0.64rem);
    letter-spacing: 0.06em;
  }

  .scroll-indicator {
    display: none;
  }

  .disciplines,
  .work-preview,
  .cta-section {
    padding: 3.5rem 0;
  }

  .disciplines {
    overflow: hidden;
  }

  .disciplines-grid {
    grid-template-columns: 1fr;
    margin-top: 2rem;
    overflow: hidden;
  }

  .disciplines-grid:hover .discipline-card,
  .disciplines-grid:hover .discipline-card:hover,
  .discipline-card:hover {
    opacity: 1;
    transform: none;
    box-shadow: none;
    z-index: auto;
  }

  .discipline-card {
    padding: 0.9rem 1.1rem 0.8rem;
    transform: none;
  }

  .discipline-num {
    margin-bottom: 0.45rem;
  }

  .discipline-card:hover .discipline-line {
    width: 40px;
  }

  .discipline-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.3rem;
  }

  .discipline-card p {
    font-size: 0.8125rem;
    line-height: 1.45;
  }

  .discipline-line {
    margin-top: 0.7rem;
  }

  .section-title {
    font-size: clamp(2rem, 9vw, 2.75rem);
  }

  .section-intro,
  .page-intro,
  .cta-text,
  .philosophy-text {
    font-size: 1rem;
  }

  .work-header {
    margin-bottom: 2rem;
    align-items: flex-start;
  }

  .project-featured .project-image {
    min-height: 240px;
  }

  .philosophy-content {
    padding: 2.25rem 0;
  }

  .philosophy-image {
    min-height: 42vh;
    max-height: 42vh;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    row-gap: 1.25rem;
  }

  .stat-number {
    white-space: normal;
  }

  .page-hero {
    padding: calc(var(--header-height) + 2.25rem) 0 2.25rem;
  }

  .page-title {
    font-size: clamp(2.25rem, 11vw, 3.25rem);
    line-height: 1.1;
  }

  .archive-grid {
    gap: 2.5rem;
  }

  .archive-item {
    gap: 1.15rem;
    padding-bottom: 2.5rem;
  }

  .archive-expand {
    min-height: 44px;
  }

  .studio-split {
    gap: 2rem;
  }

  .team-card {
    padding: 1.5rem;
  }

  .contact-form .btn-large {
    width: 100%;
    justify-content: center;
  }

  .footer {
    padding: 2.5rem 0 1.5rem;
  }

  .footer-grid {
    gap: 2rem;
    margin-bottom: 2rem;
  }

  .footer-col a,
  .footer-brand p {
    overflow-wrap: anywhere;
  }

  .footer-bottom {
    font-size: 0.625rem;
    letter-spacing: 0.06em;
    flex-direction: column;
    align-items: flex-start;
  }

  .cookie-banner-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 1.15rem;
  }

  .cookie-banner-actions {
    flex-direction: column;
  }

  .cookie-banner .btn {
    width: 100%;
    justify-content: center;
  }

  .legal-content h2 {
    font-size: 1.35rem;
  }

  .cta-section .btn-large {
    width: calc(100% - 0.5rem);
    max-width: 22rem;
    justify-content: center;
  }
}

/* ---- iOS paging swipe ---- */
html, body {
  overscroll-behavior-x: none;
}

.zh-swipe-stage {
  position: relative;
  z-index: 2;
  min-height: 100%;
  min-height: 100svh;
  background: var(--color-bg);
  touch-action: pan-y;
}

.zh-swipe-peek {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: var(--color-bg);
  overflow: auto;
  overflow-x: hidden;
  scrollbar-width: none;
  visibility: hidden;
  transform: none;
}

.zh-swipe-peek::-webkit-scrollbar {
  display: none;
}

.zh-swipe-peek.is-on-top {
  z-index: 3;
}

html.zh-swiping .zh-swipe-peek.is-active {
  visibility: visible;
}

.zh-swipe-peek .reveal {
  opacity: 1 !important;
  transform: none !important;
}

.zh-swipe-peek .loader,
.zh-swipe-peek .cookie-banner,
.zh-swipe-peek .cursor,
.zh-swipe-peek .cursor-dot {
  display: none !important;
}

.zh-swipe-fallback {
  min-height: 100%;
  background: var(--color-bg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2.5rem 1.75rem;
}

.zh-swipe-fallback-title {
  font-family: var(--font-serif);
  font-size: clamp(2.75rem, 12vw, 4.5rem);
  font-weight: 300;
  line-height: 1.05;
  color: var(--color-text);
}

html.zh-swiping,
html.zh-swiping body {
  overflow: hidden;
}
