/* ==========================================================================
   Section layouts — home + subpages
   ========================================================================== */

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 800px;
  overflow: clip;
  display: flex;
  align-items: flex-end;
}
/* rotating 3D cylinder carousel — viewed from its far side (concave arc) */
.hero-slider {
  position: absolute;
  top: 42px; left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 1800px;
  height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 650px;
  z-index: 1;
  pointer-events: none;
}
/* edge fades: cheap gradient overlays instead of a mask — masking an
   animating 3D subtree forces per-frame offscreen rasterization */
.hero-slider::before,
.hero-slider::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 18%;
  z-index: 2;
}
.hero-slider::before { left: 0; background: linear-gradient(90deg, var(--bg-dark), transparent); }
.hero-slider::after { right: 0; background: linear-gradient(270deg, var(--bg-dark), transparent); }
.hero-slider .ring {
  position: relative;
  width: 640px; height: 360px;   /* 16:9 cards on every screen */
  transform-style: preserve-3d;
  animation: hero-spin 90s linear infinite;
  will-change: transform;
}
@keyframes hero-spin {
  from { transform: translateZ(-470px) scale(var(--ring-scale, 1.45)) rotateY(0deg); }
  to   { transform: translateZ(-470px) scale(var(--ring-scale, 1.45)) rotateY(360deg); }
}
.hero-slider .card {
  position: absolute;
  inset: 0;
  transform: rotateY(var(--a)) translateZ(-1449px);
  backface-visibility: hidden;
  border-radius: 23px;
  overflow: hidden;
  background: var(--bg-dark-2);
}
.hero-slider .card img { width: 100%; height: 100%; object-fit: cover; }
@media (prefers-reduced-motion: reduce) { .hero-slider .ring { animation: none; } }
/* laptop: kattaroq halqa + kuchliroq yon perspektiva */
@media (min-width: 1200px) {
  .hero-slider { perspective: 210px; height: 560px; transform: translateX(-50%) scaleY(1.25); }
  .hero-slider .ring { --ring-scale: 3.99; }
}

.hero-portrait {
  position: absolute;
  left: 50%; top: 120px;
  transform: translateX(-50%);
  width: 540px;
  aspect-ratio: 0.7665;
  z-index: 2;
  pointer-events: none;
  -webkit-mask: linear-gradient(#000 55%, transparent 90%);
  mask: linear-gradient(#000 55%, transparent 90%);
}
.hero-portrait img { width: 100%; height: 100%; object-fit: cover; object-position: top; }

/* hero text = centered 580px column (as in reference) */
.hero .container {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 580px;
  padding: 0 0 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.hero-title-block .eyebrow { margin-bottom: 9px; }
.hero-sub {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
}
.hero-quote {
  max-width: 46%;
  font-family: var(--sans);
  font-size: 15px;
  letter-spacing: -0.02em;
  line-height: 1.4;
  color: var(--ink-dim);
}
.hero-quote b { color: var(--ink); font-weight: 400; }
.hero-quote .sig { margin-top: 20px; text-align: center; }

@media (max-width: 809px) {
  /* hero'ni bitta kompozit qatlamga birlashtiramiz — rasm/karusel/matn
     scroll paytida sinxron yuradi (desinxron "sakrash" yo'qoladi) */
  .hero { min-height: 92svh; transform: translateZ(0); }
  .hero .container { padding: 0 20px 40px; }
  .hero-sub { flex-direction: column-reverse; }
  .hero-quote { max-width: 100%; }
  .hero-portrait { width: min(90vw, 425px); top: 90px; }

  /* mobil: laptop kabi konkav silindr — kichik perspective tufayli yon
     kartalar (kameraga yaqin) katta, o'rtadagilar (uzoqda) kichik ko'rinadi.
     Kichik radius (-800) kartalarni bir-biriga zich qiladi. Kartalar 640×360
     (aniq 16:9) — old karta ekranda ham aynan 16:9 proyeksiyalanadi. */
  .hero-slider { top: 20px; height: 460px; perspective: 210px; }
  .hero-slider .ring { height: 360px; --ring-scale: 1.55; }
  /* radius -1050: kartalar orasida ochiqroq bo'shliq; 48px burchak
     proyeksiyada laptop'dagi 23px kabi oval ko'rinadi */
  .hero-slider .card { transform: rotateY(var(--a)) translateZ(-1050px); border-radius: 48px; }
}

/* ---------- section heading pattern (Works / Idea Archive) ---------- */
.sec-head {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  align-items: start;
  gap: 32px;
  margin-bottom: 90px;
}
.sec-head .h2 { white-space: pre-line; }
.sec-head-right { position: relative; text-align: left; }
.sec-head-right .word-1 { display: block; }
.sec-head-right .word-2 { display: block; text-align: right; margin-top: -0.12em; }
.sec-head-right .cap {
  position: absolute;
  top: 0.5em; right: 0;
  max-width: 250px;
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.45;
  letter-spacing: normal;
}
@media (max-width: 809px) {
  .sec-head { grid-template-columns: 1fr; }
  .sec-head-right .cap { position: static; margin-top: 16px; }
}

/* ---------- WORKS grid ---------- */
.works-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 24px;
  row-gap: 90px;
}
.works-grid .col-r { transform: translateY(160px); }
.work-card { display: block; }
.work-card .thumb { overflow: clip; }
.work-card .thumb img {
  width: 100%;
  aspect-ratio: var(--ar, 583/400);
  object-fit: cover;
  transition: transform 0.9s var(--ease-out);
}
.work-card:hover .thumb img { transform: scale(1.05); }
.work-card .tags { margin-top: 22px; }
.work-card .h3 { margin-top: 10px; transition: color var(--t-fast); }
.work-card:hover .h3 { color: var(--gold); }
@media (max-width: 809px) {
  .works-grid { grid-template-columns: 1fr; row-gap: 56px; }
  .works-grid .col-r { transform: none; }
}

.allworks {
  margin-top: 220px;
  padding-top: 56px;
  border-top: 1px solid var(--line-dark);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.allworks a.big {
  font-family: var(--serif);
  font-size: clamp(48px, 7vw, 96px);
  color: var(--ink-dim);
  display: inline-flex;
  align-items: center;
  gap: 28px;
  line-height: 1;
  transition: color var(--t-fast);
}
.allworks a.big:hover { color: var(--ink); }
.allworks a.big svg { width: 0.6em; height: 0.6em; }
.allworks .thumb { width: 282px; flex: 0 0 auto; }
@media (max-width: 809px) {
  .allworks { margin-top: 120px; flex-direction: column; align-items: flex-start; }
}

/* ---------- WHY US (sticky pin + zoom, as in reference) ---------- */
/* ---------- THE CIRCLE — hamkorlar kolofoni ---------- */
.circle .eyebrow { display: inline-flex; margin-bottom: 28px; }
.circle-title { max-width: 15ch; }
/* sarlavha ichidagi avatar klasteri — em o'lchamda, h2 bilan birga masshtablanadi */
.circle-title .w.av-cluster {
  display: inline-flex;
  align-items: center;
  vertical-align: -0.1em;
  padding: 0 0.06em;
}
.circle-title .av-cluster img {
  width: 0.72em; height: 0.72em;
  border-radius: 50%;
  border: 2px solid var(--bg-dark);
  background: var(--bg-dark-2);
  margin-left: -0.26em;
  transition: margin-left var(--t-fast) var(--ease-out);
}
.circle-title .av-cluster img:first-child { margin-left: 0; }
.circle-note {
  display: block;
  text-align: right;
  margin: 44px 0 12px;
  color: var(--ink-dim);
}
.circle-roster {
  list-style: none; margin: 0; padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 80px;
  border-bottom: 1px solid var(--line-dark);
}
.circle-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 18px 0;
  border-top: 1px solid var(--line-dark);
}
.circle-face {
  width: 52px; height: 52px;
  border-radius: 50%;
  border: 1px solid var(--line-dark);
  background: var(--bg-dark-2);
  transition: border-color var(--t-fast) var(--ease-out), transform var(--t-fast) var(--ease-out);
}
.circle-name {
  font-family: var(--serif);
  font-size: 21px; font-weight: 400;
  line-height: 1.2;
  color: var(--ink);
}
.circle-role { color: var(--ink-dim); text-align: right; }
@media (hover: hover) {
  .circle-title .av-cluster:hover img { margin-left: 0.06em; }
  .circle-title .av-cluster:hover img:first-child { margin-left: 0; }
  .circle-row:hover .circle-face { border-color: var(--gold); transform: scale(1.06); }
}
@media (max-width: 809px) {
  .circle .eyebrow { margin-bottom: 20px; }
  .circle-note { text-align: left; margin: 30px 0 8px; }
  .circle-roster { grid-template-columns: 1fr; column-gap: 0; }
  .circle-row { padding: 14px 0; gap: 14px; }
  .circle-face { width: 44px; height: 44px; }
  .circle-name { font-size: 19px; }
}

.whyus {
  position: relative;
  padding: 100px 20px;
  overflow: clip;
}
.whyus-pin {
  position: sticky;
  top: 120px;
  height: 560px;
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
}
.whyus-pattern {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 63px 63px;
  opacity: 0.6;
  -webkit-mask: radial-gradient(50% 50%, #000 0%, transparent 100%);
  mask: radial-gradient(50% 50%, #000 0%, transparent 100%);
  z-index: 0;
}
.whyus-side {
  flex: 1 0 0;
  max-width: 280px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 48px;
  position: relative;
  z-index: 1;
}
.whyus-side.left  { align-items: flex-end; text-align: right; }
.whyus-side.right { align-items: flex-start; text-align: left; }
.whyus-side .stat {
  opacity: 0;
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
.whyus-side.left .stat  { transform: translate(-200px, 200px); }
.whyus-side.right .stat { transform: translate(200px, 200px); }
.whyus-side .stat.in { opacity: 1; transform: none; }
.stat .num {
  font-family: var(--serif);
  font-size: 80px;
  letter-spacing: -0.04em;
  color: var(--gold);
  line-height: 1;
}
.stat .mono-caption { margin-top: 8px; display: block; }

.whyus-card {
  position: relative;
  flex: 1.2 0 0;
  max-width: 60%;
  height: 560px;
  padding: 24px 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: var(--ink);
  z-index: 1;
}
.whyus-zoom {
  position: absolute;
  inset: 0;
  background: var(--bg-dark);
  transform-origin: center;
  z-index: -1;
  will-change: transform;
}
.whyus-card .h2 { margin-top: 15px; color: var(--ink); }
.whyus-card-bottom { display: flex; align-items: flex-end; justify-content: flex-end; gap: 16px; }
.whyus-card-bottom .sig { font-size: 38px; flex: 0 0 auto; }
.whyus-card-bottom p { font-size: 14px; text-align: right; color: var(--ink-dim); max-width: 210px; }
.whyus-space { height: 150vh; }

@media (max-width: 809px) {
  .whyus-pin { position: static; height: auto; flex-direction: column; align-items: stretch; }
  .whyus-side { max-width: 100%; height: auto; gap: 32px; padding: 32px 0; }
  .whyus-side.left, .whyus-side.right { align-items: flex-start; text-align: left; }
  /* mobil: scroll-choreografiya o'rniga yengil fade-up reveal (IO, main.js) */
  .whyus-side.left .stat, .whyus-side.right .stat {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.55s var(--ease-out), transform 0.55s var(--ease-out);
  }
  .whyus-side .stat:nth-child(2) { transition-delay: 0.12s; }
  .whyus-side.left .stat.in, .whyus-side.right .stat.in { opacity: 1; transform: none; }
  .whyus-card {
    max-width: 100%; order: -1; height: auto; min-height: 420px; gap: 48px;
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
  }
  .whyus-card.in { opacity: 1; transform: none; }
  .whyus-zoom { transform: none !important; will-change: auto; }
  .whyus-space { display: none; }
}
@media (max-width: 809px) and (prefers-reduced-motion: reduce) {
  .whyus-side .stat, .whyus-card { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ---------- EXPERTISE / SERVICES ---------- */
.expertise .container {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 64px;
  align-items: start;
}
.expertise-left .h2 { margin-bottom: 44px; }
.expertise-left .photo { max-width: 420px; }
/* shaffof laptop mockup — ramka/soya kerak emas (soya PNG ichida) */
.expertise-left .photo img { width: 100%; }
.expertise-left .body-dim { margin-top: 26px; max-width: 350px; }

.services .eyebrow { margin-bottom: 10px; }
.services .acc-item { border-bottom: 1px solid var(--line-cream); }
.services .acc-head {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 26px 0;
  font-family: var(--serif);
  font-size: clamp(24px, 2.4vw, 34px);
  text-align: left;
}
.services .acc-item.open {
  background: var(--bg-dark);
  color: var(--ink);
  border-bottom-color: transparent;
}
.services .acc-item.open .acc-head { padding-left: 24px; padding-right: 24px; }
.services .acc-item.open .acc-body { padding: 0 24px; }
.services .acc-body {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.55s var(--ease-out), padding 0.4s;
}
.services .acc-body ul { padding-bottom: 26px; }
.services .acc-body li {
  font-family: var(--sans);
  font-size: 16px;
  color: var(--ink-dim);
  padding: 7px 0 7px 20px;
  position: relative;
}
.services .acc-body li::before { content: '•'; position: absolute; left: 4px; color: var(--ink-dim); }
.acc-icon { position: relative; width: 16px; height: 16px; flex: 0 0 auto; }
.acc-icon::before, .acc-icon::after {
  content: ''; position: absolute; inset: 50% auto auto 0;
  width: 16px; height: 1.5px; background: currentColor;
  transition: transform 0.4s var(--ease-out);
}
.acc-icon::after { transform: rotate(90deg); }
.acc-item.open .acc-icon::after { transform: rotate(0deg); }
@media (max-width: 809px) {
  .expertise .container { grid-template-columns: 1fr; }
}

/* ---------- HOW WE WORK ---------- */
.how .rule-head {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-bottom: 40px;
}
.how .rule-head .hairline { flex: 1; }
.how-step {
  display: grid;
  grid-template-columns: 200px 1fr 555px;
  gap: 40px;
  align-items: start;
  padding: 88px 0;
  border-bottom: 1px solid var(--line-dark);
}
.how-step:last-child { border-bottom: 0; }
.how-step .num {
  font-family: var(--serif);
  font-size: clamp(72px, 9vw, 148px);
  line-height: 0.9;
  color: var(--ink-faint);
}
.how-step .txt { display: flex; flex-direction: column; min-height: 320px; }
.how-step .txt .h2 { max-width: 360px; }
.how-step .txt .body-dim { margin-top: auto; max-width: 350px; padding-top: 120px; }
.how-step .thumb img { aspect-ratio: 555/320; object-fit: cover; width: 100%; }
@media (max-width: 1199px) {
  .how-step { grid-template-columns: 120px 1fr; }
  .how-step .thumb { grid-column: 2; }
}
@media (max-width: 809px) {
  .how-step { grid-template-columns: 1fr; padding: 48px 0; }
  .how-step .txt { min-height: unset; }
  .how-step .txt .body-dim { padding-top: 24px; }
  .how-step .thumb { grid-column: 1; }
}

/* ---------- PRICING ---------- */
.pricing-head { margin-bottom: 64px; }
.pricing-head .h2 { margin-top: 14px; }
.pricing-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 980px;
  margin: 0 auto;
}
.price-card {
  padding: 44px 40px 40px;
  display: flex;
  flex-direction: column;
  min-height: 560px;
}
.price-card.light { background: #fdfbf5; box-shadow: 0 24px 60px rgba(23,21,15,0.08); }
.price-card.dark { background: var(--bg-dark); color: var(--ink); }
.price-card .top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--line-cream);
}
.price-card.dark .top { border-bottom-color: var(--line-dark); }
.price-card .top .h3 { font-size: clamp(26px, 2.4vw, 34px); line-height: 1.1; }
.price-card .top p { font-size: 14px; color: var(--dark-ink-dim); align-self: center; }
.price-card.dark .top p { color: var(--ink-dim); }
.price-card ul { padding: 30px 0; flex: 1; }
.price-card li {
  padding: 8px 0 8px 20px;
  position: relative;
  font-size: 16px;
  color: var(--dark-ink-dim);
}
.price-card.dark li { color: var(--ink-dim); }
.price-card li::before { content: '•'; position: absolute; left: 2px; color: var(--gold); }
.price-card .bottom {
  border-top: 1px solid var(--line-cream);
  padding-top: 28px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}
.price-card.dark .bottom { border-top-color: var(--line-dark); }
.price-card .from { display: block; margin-bottom: 6px; }
.price-card .amount {
  font-family: var(--serif);
  font-size: clamp(44px, 4.6vw, 64px);
  line-height: 1;
}
.price-card .amount small {
  font-size: 17px;
  color: var(--dark-ink-dim);
  font-family: var(--serif);
}
.price-card.dark .amount small { color: var(--ink-dim); }
@media (max-width: 809px) {
  .pricing-cards { grid-template-columns: 1fr; }
  .price-card { min-height: unset; min-width: 0; }
  .price-card .bottom { flex-wrap: wrap; }
  .price-card .top { grid-template-columns: 1fr; }
}

/* ---------- TESTIMONIALS ---------- */
.testi .container {
  display: grid;
  grid-template-columns: 1fr 380px 1fr;
  gap: 40px;
  align-items: start;
}
.testi-left .h2 { margin-top: 14px; }
.tcard {
  background: var(--bg-dark-2);
  padding: 26px;
  min-height: 520px;
  display: flex;
  flex-direction: column;
}
.tprogress { display: flex; gap: 6px; margin-bottom: 26px; }
.tprogress span { flex: 1; height: 2px; background: var(--line-dark); transition: background var(--t-fast); }
.tprogress span.active { background: var(--gold); }
.tcard-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: auto; }
.tcard-top .qmark { font-family: var(--serif); font-size: 64px; color: var(--gold); line-height: 0.5; margin-top: 20px; }
.tcard-arrows { display: flex; gap: 14px; }
.tcard-arrows button { color: var(--ink-dim); transition: color var(--t-fast); }
.tcard-arrows button:hover { color: var(--ink); }
.tcard-arrows svg { width: 22px; height: 22px; }
.tslides { position: relative; margin-top: 40px; }
.tslide { position: absolute; inset: 0; opacity: 0; transition: opacity 0.6s ease; pointer-events: none; display: flex; flex-direction: column; }
.tslide.active { position: relative; opacity: 1; pointer-events: auto; }
.tslide .quote {
  font-family: var(--serif);
  font-size: clamp(20px, 1.8vw, 26px);
  line-height: 1.3;
  flex: 1;
}
.tslide .who {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--line-dark);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
}
.tslide .who img { width: 30px; height: 30px; border-radius: 50%; }
.tslide .who .nm { color: var(--ink-dim); }
.testi-right { align-self: end; text-align: right; display: flex; flex-direction: column; align-items: flex-end; }
.testi-right .num { font-family: var(--serif); font-size: clamp(56px, 5.6vw, 80px); letter-spacing: -0.04em; color: var(--gold); line-height: 1; }
.testi-right .mono-caption { color: var(--ink-dim); margin-top: 10px; max-width: 240px; }
@media (max-width: 1023px) {
  .testi .container { grid-template-columns: 1fr; }
  .tcard { max-width: 440px; }
}

/* ---------- ARCHIVE / DESIGN EXPLORATION ---------- */
.archive {
  background:
    radial-gradient(rgba(23,21,15,0.14) 1px, transparent 1.4px);
  background-size: 26px 26px;
  background-color: var(--bg-cream);
  color: var(--dark-ink);
}
.folder { margin-top: 8px; }
.folder-tab {
  display: inline-block;
  background: var(--bg-cream-2);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--dark-ink-dim);
  padding: 10px 40px 10px 18px;
  clip-path: polygon(0 0, calc(100% - 26px) 0, 100% 100%, 0 100%);
}
.folder-body {
  background: var(--bg-cream-2);
  padding: clamp(24px, 6vw, 90px);
}
.archive-grid {
  columns: 3;
  column-gap: 44px;
}
.archive-item { break-inside: avoid; margin-bottom: 56px; }
.archive-item img {
  border: 5px solid #fff;
  box-shadow: 0 10px 26px rgba(23,21,15,0.10);
  width: 100%;
}
.archive-item .row {
  display: flex;
  justify-content: space-between;
  margin-top: 12px;
  font-size: 14px;
  color: var(--dark-ink-dim);
}
@media (max-width: 1023px) { .archive-grid { columns: 2; } }
@media (max-width: 639px) { .archive-grid { columns: 1; } }

/* ---------- ABOUT ME banner (light) ---------- */
.aboutme {
  position: relative;
  overflow: clip;
  min-height: 620px;
  display: flex;
  align-items: center;
  background: var(--bg-cream);
  color: var(--dark-ink);
}
.aboutme .container {
  position: relative; z-index: 1;
  width: 100%;
  display: grid;
  grid-template-columns: 0.8fr 0.6fr 1.6fr;
  gap: 32px;
  align-items: center;
}
.aboutme .quote { font-size: 14px; color: var(--dark-ink-dim); max-width: 260px; }
.aboutme-right { text-align: left; }
.aboutme-right .word-2 { text-align: right; display: block; margin-top: -0.1em; }
.aboutme .pill-row { grid-column: 3; justify-self: end; margin-top: 24px; }
@media (max-width: 809px) {
  .aboutme .container { grid-template-columns: 1fr; }
  .aboutme .pill-row { grid-column: 1; justify-self: start; }
}

/* ---------- FAQ ---------- */
.faq .container {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 80px;
  align-items: start;
}
.faq-left { display: flex; flex-direction: column; min-height: 420px; }
.faq-left .h2 { margin-top: 14px; }
.faq-left .foot { margin-top: auto; display: flex; align-items: center; gap: 24px; }
.faq-left .foot p { max-width: 170px; }
.faq .acc-item { border-bottom: 1px solid var(--line-dark); }
.faq .acc-head {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  text-align: left;
  padding: 30px 0;
  font-family: var(--serif);
  font-size: clamp(20px, 1.9vw, 27px);
}
.faq .acc-body { overflow: hidden; max-height: 0; transition: max-height 0.55s var(--ease-out); }
.faq .acc-body p { color: var(--ink-dim); padding-bottom: 28px; max-width: 560px; }
@media (max-width: 809px) {
  .faq .container { grid-template-columns: 1fr; gap: 40px; }
  .faq-left { min-height: unset; gap: 32px; }
}

/* ---------- FOOTER ---------- */
.footer {
  position: relative;
  padding-top: 120px;
  overflow: clip;
}
.footer .avail { margin-bottom: 30px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.18em; color: var(--ink-dim); }
.footer .avail b { color: var(--ink); font-weight: 500; }
.footer .avail .dot { color: var(--gold); }
.footer-collab {
  font-family: var(--serif);
  color: var(--gold);
  font-size: clamp(72px, 15.5vw, 236px);
  line-height: 0.9;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.footer-mid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px 120px;
  margin-top: 48px;
}
.footer-contacts .grp { margin-bottom: 36px; }
.footer-contacts .mono-caption { color: var(--ink-dim); display: block; margin-bottom: 6px; }
.footer-contacts a {
  font-family: var(--serif);
  font-size: clamp(20px, 1.8vw, 26px);
  position: relative;
}
.footer-contacts a:hover { color: var(--gold); }
.footer-links-sm { margin-top: 80px; }
.footer-links-sm a { display: block; font-family: var(--serif); font-size: 17px; color: var(--ink-dim); line-height: 1.7; transition: color var(--t-fast); }
.footer-links-sm a:hover { color: var(--ink); }
.footer-nav .eyebrow { margin-bottom: 10px; }
.footer-nav hr { margin-bottom: 8px; }
.footer-nav > a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--serif);
  font-size: clamp(26px, 2.4vw, 34px);
  padding: 16px 0;
  border-bottom: 1px solid var(--line-dark);
  transition: color var(--t-fast), padding-left var(--t-fast);
}
.footer-nav > a:hover { color: var(--gold); padding-left: 10px; }
.footer-cta { margin-top: 36px; display: flex; justify-content: flex-end; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 16px;
  padding: 28px 0 26px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--ink-dim);
}
@media (max-width: 1023px) {
  .footer-collab { white-space: normal; }
  .footer-mid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   SUBPAGES
   ========================================================================== */

/* ----- shared page hero (photo bg) ----- */
.page-hero {
  position: relative;
  overflow: clip;
  min-height: 86vh;
  display: flex;
  align-items: flex-end;
}
.page-hero .bg { position: absolute; inset: -10% 0; }
.page-hero .bg img { width: 100%; height: 100%; object-fit: cover; }
.page-hero .bg::after { content: ''; position: absolute; inset: 0; background: rgba(12,11,10,0.66); }
/* light theme: qora parda o'rniga krem parda — qora ink matn va nav o'qiladi */
html.light .page-hero .bg::after { background: rgba(249,246,237,0.9); }
.page-hero .container { position: relative; z-index: 1; width: 100%; padding-bottom: 80px; }
.page-hero .eyebrow { color: var(--gold); margin-bottom: 20px; }
.page-hero .intro {
  max-width: 460px;
  margin-left: auto;
  margin-top: 26px;
  color: var(--ink-dim);
}

/* ----- about: origins ----- */
.origins .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}
.origins .photo { position: relative; }
.origins .photo .cap {
  position: absolute;
  left: 24px; bottom: 22px;
  font-family: var(--serif);
  font-size: 19px;
  max-width: 280px;
  line-height: 1.3;
}
.origins-right { display: flex; flex-direction: column; }
.origins-right .h2 { max-width: 420px; }
.origins-right .body-dim { margin: 40px 0 60px auto; max-width: 300px; }
.origins-right .display-xl { margin-top: auto; }
.origins-right .display-xl .word-2 { display: block; text-align: right; margin-top: -0.12em; }
@media (max-width: 809px) { .origins .container { grid-template-columns: 1fr; } }

/* ----- about: vision ----- */
.vision {
  position: relative; overflow: clip;
}
.vision .bg { position: absolute; inset: 0; }
.vision .bg img { width: 100%; height: 100%; object-fit: cover; }
.vision .bg::after { content: ''; position: absolute; inset: 0; background: rgba(12,11,10,0.8); }
html.light .vision .bg::after { background: rgba(249,246,237,0.92); }
.vision .container { position: relative; z-index: 1; }
.vision-head {
  display: grid;
  grid-template-columns: 0.8fr 1.6fr;
  gap: 32px;
  align-items: start;
  margin-bottom: 110px;
}
.principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 44px;
}
.principle { border-top: 1px solid var(--line-dark); padding-top: 26px; text-align: center; }
.principle .h3 { margin-bottom: 14px; }
.principle p { color: var(--ink-dim); font-size: 15px; max-width: 300px; margin: 0 auto; }
@media (max-width: 809px) {
  .vision-head { grid-template-columns: 1fr; }
  .principles { grid-template-columns: 1fr; }
}

/* ----- about: journey ----- */
.journey .container {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 64px;
  align-items: start;
}
.journey-left .h2 { margin-bottom: 8px; }
.jrow {
  border-top: 1px solid var(--line-dark);
  padding: 26px 0 64px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 24px;
  opacity: 0.45;
  transition: opacity var(--t-fast);
}
.jrow.active, .jrow:hover { opacity: 1; }
.jrow .years { font-family: var(--serif); font-size: clamp(24px, 2.2vw, 32px); }
.jrow .years b { color: var(--gold); font-weight: 400; }
.jrow .co { font-family: var(--serif); font-size: clamp(22px, 2vw, 28px); justify-self: end; }
.jrow .role { grid-column: 2; justify-self: end; }
@media (max-width: 809px) { .journey .container { grid-template-columns: 1fr; } }

/* ----- about: beyond collage ----- */
.beyond { position: relative; padding: 160px 0 120px; overflow: clip; }
.beyond .display-xl { text-align: center; position: relative; z-index: 1; }
.beyond .display-xl .word-2 { display: block; margin-top: -0.08em; padding-left: 2.2em; }
.collage { position: relative; margin-top: -60px; min-height: 900px; }
.collage img { position: absolute; }
.collage .c1 { width: 25%; right: 8%; top: 0; }
.collage .c2 { width: 24%; left: 6%; top: 220px; }
.collage .c3 { width: 24%; right: 17%; top: 380px; }
.collage .c4 { width: 22%; left: 30%; top: 620px; }
.collage .c5 { width: 24%; left: 55%; top: 700px; }
@media (max-width: 809px) {
  .collage { min-height: unset; margin-top: 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
  .collage img { position: static; width: 100%; }
}

/* ----- works page ----- */
.filter-tabs {
  display: flex;
  gap: 36px;
  border-bottom: 1px solid var(--line-dark);
  margin: 70px 0 70px;
}
.filter-tabs button {
  font-family: var(--serif);
  font-size: 17px;
  color: var(--ink-dim);
  padding-bottom: 14px;
  border-bottom: 1px solid transparent;
  margin-bottom: -1px;
  transition: color var(--t-fast), border-color var(--t-fast);
}
.filter-tabs button.active { color: var(--gold); border-bottom-color: var(--gold); }
.filter-tabs button:hover { color: var(--ink); }
@media (max-width: 639px) { .filter-tabs { flex-wrap: wrap; gap: 18px; } }

/* ----- contact ----- */
.contact-hero { padding-top: calc(var(--nav-h) + 60px); }
.contact-split { position: relative; }
.contact-split .word-1 { color: var(--ink); }
.contact-split .cap {
  position: absolute;
  left: 38%; top: 30%;
  max-width: 260px;
  font-size: 14px;
  color: var(--ink-dim);
  letter-spacing: normal;
  line-height: 1.45;
}
.contact-split .word-2 { display: block; text-align: right; margin-top: -0.1em; }
.contact-form { max-width: 760px; margin: 90px auto 0; }
.cf-field { margin-bottom: 44px; }
.cf-field label { display: block; margin-bottom: 10px; }
.cf-field input, .cf-field textarea {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line-dark);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 22px;
  padding: 8px 0 14px;
  outline: none;
  transition: border-color var(--t-fast);
  resize: vertical;
}
.cf-field input:focus, .cf-field textarea:focus { border-bottom-color: var(--gold); }
.cf-bottom { display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.cf-bottom p { max-width: 260px; font-size: 14px; }
@media (max-width: 809px) {
  .contact-split .cap { position: static; display: block; margin: 16px 0; }
  .cf-bottom { flex-direction: column; align-items: flex-start; }
}

/* ----- blog ----- */
.blog-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px 24px;
  margin-top: 90px;
}
.post-card .thumb { overflow: clip; }
.post-card .thumb img { aspect-ratio: 16/9; object-fit: cover; width: 100%; transition: transform 0.9s var(--ease-out); }
.post-card:hover .thumb img { transform: scale(1.05); }
.post-card .meta { margin-top: 20px; }
.post-card .meta .date { color: var(--ink-dim); }
.post-card .h3 { margin-top: 8px; font-size: clamp(24px, 2.2vw, 32px); max-width: 480px; }
@media (max-width: 809px) { .blog-grid { grid-template-columns: 1fr; } }

/* ----- work detail ----- */
.detail-hero { padding-top: calc(var(--nav-h) + 80px); }
.detail-hero .tags { margin-bottom: 18px; }
.detail-hero .display-l { max-width: 900px; }
.detail-hero .cover { margin-top: 70px; }
.detail-hero .cover img { width: 100%; aspect-ratio: 2280/1240; object-fit: cover; }
.detail-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr)) 1.6fr;
  gap: 32px;
  padding: 56px 0;
}
.detail-meta .mono-caption { color: var(--ink-dim); display: block; margin-bottom: 10px; }
.detail-meta .val { font-family: var(--serif); font-size: clamp(20px, 1.9vw, 27px); line-height: 1.25; }
.detail-meta .desc { color: var(--ink-dim); }
.detail-live { border-top: 1px solid var(--line-dark); padding: 34px 0 90px; }
.detail-live a {
  font-family: var(--serif);
  font-size: clamp(24px, 2.2vw, 32px);
  display: inline-flex;
  align-items: center;
  gap: 16px;
  transition: color var(--t-fast);
}
.detail-live a:hover { color: var(--gold); }
.detail-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 120px; }
.detail-next { text-align: center; padding: 100px 0 140px; }
.detail-next .mono-caption { display: block; margin-bottom: 18px; }
.detail-next a { font-family: var(--serif); font-size: clamp(40px, 5vw, 72px); color: var(--ink-dim); transition: color var(--t-fast); }
.detail-next a:hover { color: var(--gold); }
@media (max-width: 809px) {
  .detail-meta { grid-template-columns: 1fr 1fr; }
  .detail-gallery { grid-template-columns: 1fr; }
}
