/* Camgoz&Co — base styles */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

:root {
  /* palette defaults — overridden by Tweaks */
  --bg: #0d1f1a;
  --bg-soft: #122620;
  --ink: #e8e1d1;
  --ink-soft: rgba(232, 225, 209, 0.62);
  --ink-faint: rgba(232, 225, 209, 0.32);
  --gold: #c9a961;
  --gold-bright: #d9bd76;
  --line: rgba(232, 225, 209, 0.14);
  --line-strong: rgba(232, 225, 209, 0.28);

  /* type */
  --f-display: "Bodoni Moda", "Playfair Display", "Amiri", "Didot", "Bodoni 72", serif;
  --f-body: "Cormorant Garamond", "Playfair Display", "Amiri", "EB Garamond", serif;
  --f-ui: "Jost", "Inter", ui-sans-serif, system-ui, sans-serif;
}

/* Per-language type tweaks — Arabic & Cyrillic need different fallbacks */
html[lang="ar"] {
  --f-display: "Amiri", "Bodoni Moda", serif;
  --f-body: "Amiri", "Cormorant Garamond", serif;
  --f-ui: "Amiri", "Jost", ui-sans-serif, sans-serif;
}
html[lang="ru"] {
  --f-display: "Playfair Display", "Bodoni Moda", "Didot", serif;
  --f-body: "Playfair Display", "Cormorant Garamond", serif;
}

html, body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 18px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  overflow-x: hidden;
}

::selection { background: var(--gold); color: var(--bg); }

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

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

h1, h2, h3, h4, p, dl, dd { margin: 0; }
h1, h2, h3, h4 { font-weight: 400; }

.cc-app {
  min-height: 100vh;
  background: var(--bg);
  position: relative;
}

/* ─── Grain / film texture ─── */
.cc-grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  opacity: 0.06;
  mix-blend-mode: overlay;
  background-image: url("assets/grain.svg");
}

/* ─── Top navigation ─── */
.cc-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 22px 48px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  font-family: var(--f-ui);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  background: linear-gradient(180deg, rgba(13,31,26,0.72) 0%, rgba(13,31,26,0) 100%);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.cc-nav.is-scrolled {
  background: rgba(13,31,26,0.92);
  border-bottom: 0.5px solid var(--line);
}
.cc-nav-mono {
  font-family: var(--f-display);
  font-size: 18px;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--ink);
  font-style: italic;
  font-weight: 400;
  justify-self: center;
  white-space: nowrap;
}
.cc-nav-mono em { font-style: normal; color: inherit; }
.cc-nav-links {
  display: flex;
  gap: 32px;
  justify-self: start;
}
.cc-nav-links a { transition: color 0.25s; cursor: pointer; }
.cc-nav-links a:hover { color: var(--gold); }
.cc-nav-right {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 28px;
}
.cc-langwrap {
  position: relative;
}
.cc-lang {
  background: none;
  border: 0.5px solid var(--line-strong);
  border-radius: 999px;
  color: var(--ink-soft);
  padding: 6px 12px 6px 12px;
  font-size: 10px;
  letter-spacing: 0.16em;
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--f-ui);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
}
.cc-lang:hover { color: var(--gold); border-color: var(--gold); }
.cc-lang-globe { font-size: 12px; line-height: 1; opacity: 0.7; }
.cc-lang-code { letter-spacing: 0.18em; }
.cc-lang-caret { font-size: 8px; opacity: 0.7; transition: transform 0.2s; }
.cc-langwrap.is-open .cc-lang-caret { transform: rotate(180deg); }
.cc-langwrap.is-open .cc-lang {
  color: var(--gold);
  border-color: var(--gold);
}
.cc-lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 200px;
  background: rgba(13, 31, 26, 0.96);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  backdrop-filter: blur(20px) saturate(160%);
  border: 0.5px solid var(--line-strong);
  padding: 6px;
  z-index: 200;
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.45);
  animation: cc-lang-menu-in 0.22s cubic-bezier(.2,.7,.3,1) both;
}
html[dir="rtl"] .cc-lang-menu { right: auto; left: 0; }
@keyframes cc-lang-menu-in {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.cc-lang-item {
  appearance: none;
  background: transparent;
  border: 0;
  width: 100%;
  padding: 10px 14px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  color: var(--ink-soft);
  cursor: pointer;
  font-family: var(--f-ui);
  text-align: left;
  transition: color 0.2s, background 0.2s;
}
.cc-lang-item:hover { color: var(--gold); background: rgba(201, 169, 97, 0.06); }
.cc-lang-item.is-active { color: var(--gold); }
.cc-lang-item-code {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.cc-lang-item-label {
  font-family: var(--f-display);
  font-style: italic;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.01em;
}
html[lang="ar"] .cc-lang-item-label { font-style: normal; font-size: 15px; }
html[dir="rtl"] .cc-lang-item { text-align: right; }

/* ─── Side rails (year + scroll indicator) ─── */
.cc-rail {
  position: fixed;
  top: 50%;
  transform: translateY(-50%) rotate(-90deg);
  font-family: var(--f-ui);
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-faint);
  z-index: 50;
  pointer-events: none;
}
.cc-rail-l { left: 16px; transform-origin: left center; transform: translateY(-50%) rotate(-90deg) translateX(-50%); }
.cc-rail-r { right: 28px; transform-origin: right center; transform: translateY(-50%) rotate(90deg) translateX(50%); }

/* ─── Section scaffolding ─── */
.cc-section {
  position: relative;
  padding: 140px 48px;
}
.cc-section-meta {
  display: flex;
  align-items: baseline;
  gap: 18px;
  font-family: var(--f-ui);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 80px;
}
.cc-section-meta .n {
  font-family: var(--f-display);
  font-style: italic;
  font-size: 32px;
  font-weight: 300;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--gold);
  line-height: 1;
}
.cc-section-meta .bar {
  height: 0.5px;
  flex: 1;
  background: var(--line);
  align-self: center;
  max-width: 220px;
}

/* ─── Display headlines ─── */
.cc-display {
  font-family: var(--f-display);
  font-weight: 400;
  font-style: normal;
  line-height: 0.94;
  letter-spacing: -0.018em;
  font-size: clamp(56px, 9vw, 176px);
  color: var(--ink);
}
.cc-display em {
  font-style: italic;
  font-weight: 300;
  color: var(--gold);
}
.cc-display-md {
  font-family: var(--f-display);
  font-weight: 400;
  line-height: 0.96;
  letter-spacing: -0.015em;
  font-size: clamp(48px, 7vw, 124px);
  color: var(--ink);
}
.cc-display-md em {
  font-style: italic;
  font-weight: 300;
  color: var(--gold);
}

/* ─── HERO ─── */
.cc-hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  padding: 0;
  display: flex;
  flex-direction: column;
}

/* HERO variation A — full image */
.cc-hero-full .cc-hero-bg {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(13,31,26,0.45) 0%, rgba(13,31,26,0.2) 35%, rgba(13,31,26,0.92) 100%),
    url("https://images.unsplash.com/photo-1515562141207-7a88fb7ce338?w=2400&q=85") center/cover no-repeat;
  filter: saturate(0.85) brightness(0.85);
}
.cc-hero-full .cc-hero-inner {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 48px 56px;
  gap: 24px;
}
.cc-hero-full .cc-hero-eyebrow {
  font-family: var(--f-ui);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
}
.cc-hero-full .cc-hero-title {
  max-width: 1400px;
}
.cc-hero-full .cc-hero-foot {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) auto auto;
  align-items: end;
  gap: 32px;
}
.cc-hero-full .cc-hero-sub {
  font-family: var(--f-body);
  font-size: 20px;
  line-height: 1.45;
  color: var(--ink-soft);
  max-width: 420px;
  font-style: italic;
  font-weight: 300;
}

/* HERO variation B — split */
.cc-hero-split { display: grid; grid-template-columns: 1.2fr 1fr; min-height: 100vh; }
.cc-hero-split .cc-hero-text {
  padding: 140px 56px 56px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 2;
}
.cc-hero-split .cc-hero-eyebrow {
  font-family: var(--f-ui);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 36px;
}
.cc-hero-split .cc-hero-sub {
  font-family: var(--f-body);
  font-size: 22px;
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 460px;
  margin-top: 56px;
  font-style: italic;
  font-weight: 300;
}
.cc-hero-split .cc-hero-img {
  background:
    linear-gradient(90deg, rgba(13,31,26,0.4) 0%, transparent 30%),
    url("https://images.unsplash.com/photo-1617038260897-41a1f14a8ca0?w=2000&q=85") center/cover no-repeat;
  filter: saturate(0.9);
}

/* HERO variation C — typography */
.cc-hero-type {
  padding: 140px 48px 0;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.cc-hero-type .cc-hero-eyebrow {
  font-family: var(--f-ui);
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 56px;
  margin-top: 80px;
}
.cc-hero-type .cc-hero-title { line-height: 0.86; }
.cc-hero-type .cc-hero-sub {
  font-family: var(--f-body);
  font-size: 22px;
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 540px;
  margin: 48px auto 0;
  font-style: italic;
  font-weight: 300;
}
.cc-hero-type .cc-hero-accent {
  margin: 56px auto 0;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, rgba(217,189,118,0.5), transparent 60%),
    url("https://images.unsplash.com/photo-1599643477877-530eb83abc8e?w=1200&q=85") center/cover no-repeat;
  filter: saturate(0.85);
  position: relative;
}
.cc-hero-type .cc-hero-accent::after {
  content: "";
  position: absolute;
  inset: -16px;
  border: 0.5px solid var(--gold);
  border-radius: 50%;
  opacity: 0.6;
}

/* HERO ctas */
.cc-cta-row { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.cc-btn {
  font-family: var(--f-ui);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 16px 28px;
  border-radius: 0;
  border: 0.5px solid var(--gold);
  background: var(--gold);
  color: var(--bg);
  cursor: pointer;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.cc-btn:hover { background: var(--gold-bright); border-color: var(--gold-bright); transform: translateY(-1px); }
.cc-btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.cc-btn-ghost:hover { background: transparent; border-color: var(--gold); color: var(--gold); transform: translateY(-1px); }
.cc-btn .arr { display: inline-block; transition: transform 0.25s; }
.cc-btn:hover .arr { transform: translateX(4px); }

/* Direct CTA — for "direct" tone */
.cc-btn-direct {
  padding: 18px 32px;
  font-size: 12px;
  letter-spacing: 0.18em;
}

/* Scroll indicator */
.cc-scroll {
  position: absolute;
  bottom: 24px;
  right: 56px;
  font-family: var(--f-ui);
  font-size: 9px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ink-faint);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  z-index: 3;
}
.cc-hero-full .cc-scroll { display: none; }
.cc-scroll-line {
  width: 0.5px;
  height: 44px;
  background: var(--ink-faint);
  position: relative;
  overflow: hidden;
}
.cc-scroll-line::after {
  content: "";
  position: absolute;
  top: -50%;
  left: 0;
  width: 0.5px;
  height: 50%;
  background: var(--gold);
  animation: cc-scroll 2.4s ease-in-out infinite;
}
@keyframes cc-scroll {
  0% { top: -50%; }
  100% { top: 100%; }
}

/* ─── MANIFESTO ─── */
.cc-manifesto {
  background: var(--bg);
  padding-top: 180px;
}
.cc-manifesto-body {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 120px;
  align-items: end;
}
.cc-manifesto-text {
  font-family: var(--f-body);
  font-size: 22px;
  line-height: 1.55;
  color: var(--ink-soft);
  font-style: italic;
  font-weight: 300;
  max-width: 460px;
  align-self: end;
}
.cc-pillars {
  margin-top: 140px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  border-top: 0.5px solid var(--line);
  padding-top: 56px;
}
.cc-pillar { display: flex; flex-direction: column; gap: 16px; }
.cc-pillar-n {
  font-family: var(--f-display);
  font-style: italic;
  font-size: 18px;
  color: var(--gold);
  font-weight: 300;
}
.cc-pillar-k {
  font-family: var(--f-display);
  font-size: 32px;
  line-height: 1.05;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.cc-pillar-v {
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.5;
  color: var(--ink-soft);
  font-style: italic;
  font-weight: 300;
  max-width: 280px;
}

/* ─── ATELIER ─── */
.cc-atelier { background: var(--bg-soft); }
.cc-atelier-grid {
  margin-top: 100px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 0.5px solid var(--line);
}
.cc-step {
  padding: 56px 32px 56px 0;
  border-right: 0.5px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
  transition: background 0.4s;
}
.cc-step:last-child { border-right: 0; }
.cc-step:hover { background: rgba(201, 169, 97, 0.04); }
.cc-step-n {
  font-family: var(--f-display);
  font-style: italic;
  font-size: 14px;
  letter-spacing: 0.1em;
  color: var(--gold);
  padding-left: 32px;
}
.cc-step:first-child .cc-step-n { padding-left: 0; }
.cc-step-t {
  font-family: var(--f-display);
  font-size: 38px;
  line-height: 1;
  color: var(--ink);
  letter-spacing: -0.01em;
  padding-left: 32px;
}
.cc-step:first-child .cc-step-t { padding-left: 0; }
.cc-step-d {
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-soft);
  font-style: italic;
  font-weight: 300;
  padding-left: 32px;
  max-width: 280px;
}
.cc-step:first-child .cc-step-d { padding-left: 0; }

/* ─── PARTNERS ─── */
.cc-partners { background: var(--bg); }
.cc-partners-lede {
  margin-top: 40px;
  font-family: var(--f-body);
  font-size: 22px;
  line-height: 1.5;
  font-style: italic;
  font-weight: 300;
  color: var(--ink-soft);
  max-width: 520px;
}

/* Partner — stacked variation (default) */
.cc-partners-stacked { margin-top: 120px; display: flex; flex-direction: column; gap: 120px; }
.cc-partner-card {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 80px;
  align-items: center;
}
.cc-partner-card.is-alt { grid-template-columns: 1fr 1.1fr; }
.cc-partner-card.is-alt .cc-partner-img-wrap { order: 2; }
.cc-partner-img-wrap {
  position: relative;
  aspect-ratio: 5 / 6;
  overflow: hidden;
}
.cc-partner-img {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  filter: saturate(0.85);
  transition: transform 1.2s cubic-bezier(.2,.7,.3,1);
}
.cc-partner-card:hover .cc-partner-img { transform: scale(1.04); }
.cc-partner-lockup {
  font-family: var(--f-display);
  font-size: 15px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
  white-space: nowrap;
  flex-wrap: wrap;
}
.cc-partner-lockup .x {
  font-style: italic;
  font-size: 22px;
  color: var(--gold);
  font-weight: 300;
  letter-spacing: 0;
  text-transform: none;
}
.cc-partner-name {
  font-family: var(--f-display);
  font-size: clamp(40px, 5vw, 72px);
  line-height: 1.0;
  color: var(--ink);
  letter-spacing: -0.015em;
  margin-bottom: 24px;
}
.cc-partner-name em { font-style: italic; font-weight: 300; }
.cc-partner-tag {
  font-family: var(--f-ui);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 40px;
}
.cc-partner-desc {
  font-family: var(--f-body);
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink-soft);
  font-style: italic;
  font-weight: 300;
  max-width: 420px;
}

/* Partner — grid variation */
.cc-partners-grid {
  margin-top: 120px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 80px 64px;
}
.cc-partners-grid .cc-partner-card {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.cc-partners-grid .cc-partner-img-wrap { aspect-ratio: 4 / 5; }
.cc-partners-grid .cc-partner-name { font-size: clamp(32px, 3vw, 44px); }
.cc-partners-grid .cc-partner-desc { font-size: 16px; }

/* Partner — marquee variation */
.cc-partners-marquee { margin-top: 120px; overflow: hidden; }
.cc-partners-marquee .cc-partner-card {
  display: flex;
  flex-direction: column;
  gap: 20px;
  flex: 0 0 420px;
  scroll-snap-align: start;
}
.cc-partners-marquee .cc-partner-img-wrap { aspect-ratio: 4 / 5; }
.cc-partners-marquee-track {
  display: flex;
  gap: 32px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 4px 4px 24px;
  margin: 0 -4px;
  scrollbar-width: thin;
}
.cc-partners-marquee-track::-webkit-scrollbar { height: 4px; }
.cc-partners-marquee-track::-webkit-scrollbar-track { background: var(--line); }
.cc-partners-marquee-track::-webkit-scrollbar-thumb { background: var(--gold); }
.cc-partners-marquee .cc-partner-name { font-size: 30px; margin-bottom: 8px; }
.cc-partners-marquee .cc-partner-desc { font-size: 15px; line-height: 1.5; }

/* ─── Partners gallery (frameless horizontal strip) ─── */
.cc-gx-section {
  padding-top: 100px;
  padding-bottom: 80px;
}

.cc-gx-counter {
  font-family: var(--f-display);
  display: flex;
  align-items: baseline;
  gap: 6px;
  color: var(--gold);
  letter-spacing: 0.01em;
}
.cc-gx-counter-inline { justify-self: start; }
.cc-gx-counter-now { font-size: 32px; font-style: italic; font-weight: 300; line-height: 1; }
.cc-gx-counter-sep { font-size: 18px; opacity: 0.6; }
.cc-gx-counter-tot { font-size: 16px; opacity: 0.6; font-style: italic; }

.cc-gx-wrap {
  /* break out of the section's 48px horizontal padding so the strip bleeds edge-to-edge */
  margin: 0 -48px;
  position: relative;
}
.cc-gx-track {
  display: flex;
  align-items: stretch;
  gap: 0;
  padding: 0;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  cursor: grab;
  user-select: none;
  scroll-behavior: smooth;
}
.cc-gx-track::-webkit-scrollbar { display: none; }

.cc-gx-tile {
  flex: 0 0 auto;
  position: relative;
  display: block;
  scroll-snap-align: start;
  text-decoration: none;
  color: inherit;
  width: clamp(280px, 32vw, 480px);
  aspect-ratio: 4 / 5;
}

.cc-gx-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-color: var(--bg-soft);
  filter: saturate(0.88);
  transition: filter 0.5s;
  overflow: hidden;
}
.cc-gx-tile:hover .cc-gx-img { filter: saturate(1.05); }
.cc-gx-tile:hover .cc-gx-cap { opacity: 1; transform: translateY(0); }

.cc-gx-num {
  position: absolute;
  top: 20px;
  left: 20px;
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 300;
  font-size: 22px;
  color: #fff;
  mix-blend-mode: difference;
  letter-spacing: 0.02em;
  z-index: 2;
}

.cc-gx-cap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 56px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.55) 100%);
  color: #fff;
  opacity: 0.92;
  transform: translateY(0);
  transition: opacity 0.4s, transform 0.4s;
  z-index: 2;
}
.cc-gx-lockup {
  font-family: var(--f-ui);
  font-size: 9.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-bright);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.cc-gx-lockup .x {
  font-family: var(--f-display);
  font-style: italic;
  font-size: 15px;
  text-transform: none;
  letter-spacing: 0;
  color: var(--gold-bright);
  font-weight: 300;
}
.cc-gx-piece {
  font-family: var(--f-display);
  font-size: 18px;
  font-weight: 400;
  color: #fff;
  letter-spacing: -0.005em;
  line-height: 1.25;
}

/* end-card hint */
.cc-gx-end {
  flex: 0 0 auto;
  width: clamp(220px, 22vw, 320px);
  aspect-ratio: 4 / 5;
  border: 0.5px dashed var(--line-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
}
.cc-gx-end-label {
  font-family: var(--f-display);
  font-style: italic;
  font-size: 20px;
  color: var(--ink-soft);
  line-height: 1.3;
  max-width: 180px;
}

/* controls row */
.cc-gx-controls {
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  align-items: center;
  gap: 32px;
  margin-top: 56px;
  padding: 24px 0 8px;
  border-top: 0.5px solid var(--line);
}
.cc-gx-hint {
  font-family: var(--f-ui);
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.cc-gx-progress {
  height: 1px;
  background: var(--line);
  position: relative;
  overflow: hidden;
}
.cc-gx-progress-bar {
  position: absolute;
  inset: 0;
  background: var(--gold);
  transform-origin: left center;
  transform: scaleX(0);
  transition: transform 0.18s linear;
}
.cc-gx-arrows {
  display: flex;
  gap: 8px;
  justify-self: end;
}
.cc-gx-arrow {
  appearance: none;
  background: transparent;
  border: 0.5px solid var(--line-strong);
  border-radius: 0;
  width: 48px;
  height: 48px;
  color: var(--ink-soft);
  font-family: var(--f-display);
  font-size: 20px;
  cursor: pointer;
  transition: all 0.2s;
}
.cc-gx-arrow:hover {
  border-color: var(--gold);
  color: var(--gold);
}
.cc-gx-arrow-glyph { display: inline-block; }
html[dir="rtl"] .cc-gx-arrow-glyph { transform: scaleX(-1); }

/* ─── CONTACT ─── */
.cc-contact { background: var(--bg-soft); padding-bottom: 80px; }
.cc-contact-body {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 100px;
  align-items: end;
  margin-top: 64px;
}
.cc-contact-text {
  font-family: var(--f-body);
  font-size: 24px;
  line-height: 1.5;
  color: var(--ink-soft);
  font-style: italic;
  font-weight: 300;
  max-width: 460px;
}
.cc-contact-actions { display: flex; flex-direction: column; gap: 16px; }
.cc-contact-meta {
  margin-top: 120px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  padding-top: 48px;
  border-top: 0.5px solid var(--line);
}
.cc-contact-meta dt {
  font-family: var(--f-ui);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 12px;
}
.cc-contact-meta dd {
  margin: 0;
  font-family: var(--f-display);
  font-size: 20px;
  color: var(--ink);
  line-height: 1.3;
}

/* ─── FOOTER ─── */
.cc-footer {
  padding: 56px 48px 40px;
  background: var(--bg);
  border-top: 0.5px solid var(--line);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: end;
  gap: 32px;
}
.cc-footer-tagline {
  font-family: var(--f-display);
  font-style: italic;
  font-size: 18px;
  color: var(--ink-soft);
  font-weight: 300;
  max-width: 320px;
  line-height: 1.4;
}
.cc-footer-mark {
  font-family: var(--f-display);
  font-size: 56px;
  letter-spacing: 0.01em;
  line-height: 1;
  color: var(--ink);
  text-align: center;
  font-style: italic;
  font-weight: 400;
}
.cc-footer-mark em { font-style: normal; color: inherit; }
.cc-footer-meta {
  justify-self: end;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-end;
  font-family: var(--f-ui);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
  text-align: right;
}
.cc-footer-meta .domain { color: var(--gold); letter-spacing: 0.16em; }

/* ─── Scroll reveal ─── */
/* Elements are visible by default; JS adds .cc-reveal-init at mount to
   hide them, then .is-in to fade them in. This way captures still show
   content even if the animation pipeline is short-circuited. */
.cc-reveal-init {
  opacity: 0;
  transform: translateY(24px);
}
.cc-reveal {
  transition: opacity 1.0s cubic-bezier(.2,.7,.3,1), transform 1.0s cubic-bezier(.2,.7,.3,1);
  will-change: opacity, transform;
}
.cc-reveal.is-in {
  opacity: 1 !important;
  transform: translateY(0) !important;
}
.cc-reveal[data-delay="1"] { transition-delay: 0.08s; }
.cc-reveal[data-delay="2"] { transition-delay: 0.18s; }
.cc-reveal[data-delay="3"] { transition-delay: 0.28s; }
.cc-reveal[data-delay="4"] { transition-delay: 0.38s; }
.cc-reveal[data-delay="5"] { transition-delay: 0.48s; }

/* Word-by-word reveal on hero — auto-plays via CSS animation */
.cc-hero .cc-display .word {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  /* Pad room below for descenders ("g", "y", "p", ".") so tight
     line-height + overflow:hidden don't clip the tails. Compensated
     by negative margin so vertical rhythm is unchanged. */
  padding-bottom: 0.22em;
  margin-bottom: -0.22em;
}
.cc-hero .cc-display .word-inner {
  display: inline-block;
  transform: translateY(110%);
  animation: cc-wordin 1.3s cubic-bezier(.2,.8,.2,1) forwards;
  animation-delay: var(--wd, 0s);
}
@keyframes cc-wordin {
  to { transform: translateY(0); }
}
.cc-hero .cc-display .word:nth-of-type(1) .word-inner { --wd: 0.05s; }
.cc-hero .cc-display .word:nth-of-type(2) .word-inner { --wd: 0.18s; }
.cc-hero .cc-display .word:nth-of-type(3) .word-inner { --wd: 0.32s; }
.cc-hero .cc-display .word:nth-of-type(4) .word-inner { --wd: 0.46s; }
.cc-hero .cc-display .word:nth-of-type(5) .word-inner { --wd: 0.6s; }
.cc-hero .cc-display .word:nth-of-type(6) .word-inner { --wd: 0.74s; }
.cc-hero .cc-display .word:nth-of-type(7) .word-inner { --wd: 0.88s; }

/* ─── MODERN STYLE OVERRIDES ───────────────────────────────────────
   Activated by `html[data-style="modern"]`. Less filigree, tighter type,
   sparser gold, larger negative space — high-fashion editorial direction. */

html[data-style="modern"] {
  --f-display: "Newsreader", "Bodoni Moda", serif;
  --f-body: "Albert Sans", "Jost", ui-sans-serif, system-ui, sans-serif;
  --f-ui: "Albert Sans", "Jost", ui-sans-serif, system-ui, sans-serif;

  /* Less golden — use a muted warm cream for emphasis, save gold for true accents */
  --accent: var(--ink);
  --accent-dim: var(--ink-soft);
}

/* Display: drop the italic decoration on em, use weight contrast instead */
html[data-style="modern"] .cc-display {
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 0.95;
  font-size: clamp(56px, 9.5vw, 184px);
}
html[data-style="modern"] .cc-display em {
  font-style: italic;
  font-weight: 300;
  color: var(--ink-soft); /* not gold — softer hierarchy */
}
html[data-style="modern"] .cc-display-md {
  letter-spacing: -0.025em;
}
html[data-style="modern"] .cc-display-md em {
  font-style: italic;
  font-weight: 300;
  color: var(--ink-soft);
}

/* Section meta — flatten the gold number, use mono-style label only */
html[data-style="modern"] .cc-section-meta { margin-bottom: 56px; }
html[data-style="modern"] .cc-section-meta .n {
  font-family: var(--f-ui);
  font-style: normal;
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* Hero — bigger, calmer */
html[data-style="modern"] .cc-hero-full .cc-hero-bg {
  background:
    linear-gradient(180deg, rgba(13,31,26,0.25) 0%, rgba(13,31,26,0.1) 35%, rgba(13,31,26,0.95) 100%),
    url("https://images.unsplash.com/photo-1515562141207-7a88fb7ce338?w=2400&q=85") center/cover no-repeat;
}
html[data-style="modern"] .cc-hero-full .cc-hero-eyebrow {
  color: var(--ink-soft);
  font-size: 11px;
  letter-spacing: 0.22em;
}

/* Body / pillars — sans-serif, tighter */
html[data-style="modern"] .cc-manifesto-text,
html[data-style="modern"] .cc-hero-sub,
html[data-style="modern"] .cc-partners-lede,
html[data-style="modern"] .cc-contact-text,
html[data-style="modern"] .cc-step-d,
html[data-style="modern"] .cc-pillar-v {
  font-style: normal;
  font-weight: 400;
  letter-spacing: -0.005em;
  line-height: 1.55;
}
html[data-style="modern"] .cc-pillar-k {
  font-family: var(--f-display);
  font-weight: 400;
  letter-spacing: -0.015em;
}
html[data-style="modern"] .cc-pillar-n {
  font-family: var(--f-ui);
  font-style: normal;
  font-weight: 500;
  color: var(--ink-faint);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* Atelier steps — Roman numerals out, simple numbers in modern style */
html[data-style="modern"] .cc-step-n {
  font-family: var(--f-ui);
  font-style: normal;
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
html[data-style="modern"] .cc-step-t {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: 32px;
  letter-spacing: -0.015em;
}

/* Buttons — flatter, slightly more padding, no gold fill by default */
html[data-style="modern"] .cc-btn {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: none;
  font-size: 12px;
}
html[data-style="modern"] .cc-btn:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--bg);
}
html[data-style="modern"] .cc-btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
html[data-style="modern"] .cc-btn-ghost:hover {
  background: transparent;
  color: var(--gold);
  border-color: var(--gold);
}

/* Hide ornamental Latin rails — they feel old-world */
html[data-style="modern"] .cc-rail { display: none; }

/* Nav — calmer monogram */
html[data-style="modern"] .cc-nav-mono {
  font-family: var(--f-display);
  font-style: normal;
  font-weight: 400;
  font-size: 18px;
  letter-spacing: -0.005em;
}
html[data-style="modern"] .cc-nav-mono em {
  font-weight: 400;
  margin: 0 1px;
}
html[data-style="modern"] .cc-nav-links a {
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0.04em;
  font-size: 13px;
}
html[data-style="modern"] .cc-nav { font-size: 13px; letter-spacing: 0.04em; text-transform: none; }
html[data-style="modern"] .cc-lang { text-transform: uppercase; }

/* Footer monogram */
html[data-style="modern"] .cc-footer-mark {
  font-family: var(--f-display);
  font-style: normal;
  font-weight: 400;
  letter-spacing: -0.01em;
  font-size: 48px;
}
html[data-style="modern"] .cc-footer-mark em {
  font-weight: 400;
}
html[data-style="modern"] .cc-footer-tagline {
  font-family: var(--f-body);
  font-style: normal;
  font-weight: 400;
}

/* Gallery — tighten captions, drop the heavy gradient */
html[data-style="modern"] .cc-gx-cap {
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.4) 100%);
  padding: 64px 20px 20px;
}
html[data-style="modern"] .cc-gx-lockup {
  color: var(--ink);
  font-weight: 500;
}
html[data-style="modern"] .cc-gx-lockup .x {
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 400;
  color: var(--ink);
}
html[data-style="modern"] .cc-gx-piece {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: 19px;
  letter-spacing: -0.01em;
}
html[data-style="modern"] .cc-gx-num {
  font-family: var(--f-ui);
  font-style: normal;
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.18em;
}
html[data-style="modern"] .cc-gx-counter-now {
  font-family: var(--f-display);
  font-style: normal;
  color: var(--ink);
}
html[data-style="modern"] .cc-gx-counter-tot {
  font-style: normal;
  color: var(--ink-faint);
}
html[data-style="modern"] .cc-gx-counter-sep { color: var(--ink-faint); }
html[data-style="modern"] .cc-gx-arrow {
  border-radius: 999px;
  width: 44px;
  height: 44px;
}

/* Contact — labels in clean sans */
html[data-style="modern"] .cc-contact-meta dd {
  font-family: var(--f-display);
  font-weight: 400;
  letter-spacing: -0.01em;
}
html[dir="rtl"] .cc-display em { font-style: normal; }
html[dir="rtl"] .cc-section-meta .bar { /* bar still occupies width */ }
html[lang="ar"] .cc-display { letter-spacing: 0; line-height: 1.05; }
html[lang="ar"] .cc-display em { font-weight: 700; }
/* Hero title is the brand signature and stays LTR + Bodoni Moda across languages */
.cc-hero-title {
  direction: ltr;
  font-family: "Bodoni Moda", "Playfair Display", "Didot", serif;
}
/* gallery: caption + lockup keep their own dir */
.cc-gx-lockup { direction: ltr; }
html[dir="rtl"] .cc-gx-track { /* flex naturally reverses; scroll-snap still works */ }
/* Side rails stay in place — they read as graphic watermarks */
html[dir="rtl"] .cc-rail-l { direction: ltr; }
html[dir="rtl"] .cc-rail-r { direction: ltr; }

/* ─── Responsive ─── */

/* Tablet & smaller laptops */
@media (max-width: 1100px) {
  .cc-section { padding: 110px 36px; }
  .cc-nav { padding: 20px 36px; }
  .cc-manifesto-body { gap: 64px; }
  .cc-pillars { gap: 32px; }
  .cc-gx-wrap { margin: 0 -36px; }
  .cc-footer { padding: 56px 36px 36px; }
}

/* Mobile */
@media (max-width: 820px) {
  :root { font-size: 16px; }

  /* Nav — keep monogram centered, swap links for a hamburger */
  .cc-nav {
    padding: 14px 20px;
    grid-template-columns: auto 1fr auto;
  }
  .cc-nav-links { display: none; }
  .cc-nav-mono { font-size: 16px; justify-self: center; }
  .cc-nav-right { gap: 12px; }

  /* Mobile menu toggle (hamburger) */
  .cc-burger {
    appearance: none;
    background: none;
    border: 0;
    width: 36px;
    height: 36px;
    padding: 0;
    cursor: pointer;
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    color: var(--ink);
    justify-self: start;
  }
  .cc-burger i {
    display: block;
    width: 22px;
    height: 0.5px;
    background: currentColor;
    transition: transform 0.3s, opacity 0.3s;
  }
  .cc-burger.is-open i:nth-child(1) { transform: translateY(2.75px) rotate(45deg); }
  .cc-burger.is-open i:nth-child(2) { opacity: 0; }
  .cc-burger.is-open i:nth-child(3) { transform: translateY(-2.75px) rotate(-45deg); }

  /* Mobile menu overlay */
  .cc-menu {
    position: fixed;
    inset: 0;
    background: rgba(13, 31, 26, 0.98);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    z-index: 90;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 32px;
    padding: 80px 24px 48px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
  }
  .cc-menu.is-open {
    opacity: 1;
    visibility: visible;
  }
  .cc-menu a {
    font-family: var(--f-display);
    font-size: 40px;
    line-height: 1.1;
    color: var(--ink);
    text-align: center;
    letter-spacing: -0.01em;
  }
  html[data-style="modern"] .cc-menu a { font-weight: 400; }

  /* Section padding & spacing — tighter for small screens */
  .cc-section { padding: 88px 20px; }
  .cc-section-meta { margin-bottom: 48px; gap: 12px; }
  .cc-rail { display: none; }

  /* Hero */
  .cc-hero { min-height: 100svh; }
  .cc-hero-full .cc-hero-inner {
    padding: 0 20px 36px;
    gap: 20px;
    /* leave more room above for the nav and below for browser chrome */
    justify-content: flex-end;
  }
  .cc-hero-full .cc-hero-bg {
    background-position: 65% center;
  }
  .cc-hero-full .cc-hero-eyebrow { font-size: 10px; letter-spacing: 0.22em; }
  .cc-hero-full .cc-hero-foot {
    grid-template-columns: 1fr;
    align-items: stretch;
    gap: 20px;
  }
  .cc-hero-full .cc-hero-sub { font-size: 17px; max-width: 100%; }
  .cc-hero-split { grid-template-columns: 1fr; min-height: 100svh; }
  .cc-hero-split .cc-hero-img { min-height: 55svh; order: -1; }
  .cc-hero-split .cc-hero-text { padding: 80px 20px 48px; }
  .cc-hero-type { padding: 110px 20px 0; }
  .cc-hero-type .cc-hero-accent { width: 180px; height: 180px; margin-top: 32px; }

  /* Display headlines smaller on mobile */
  .cc-display { font-size: clamp(44px, 13vw, 80px); line-height: 1.0; }
  .cc-display-md { font-size: clamp(36px, 10vw, 64px); line-height: 1.02; }
  /* Hero descender padding stays — already on .word */

  /* CTA buttons — stack full-width, larger hit targets */
  .cc-cta-row { flex-direction: column; align-items: stretch; gap: 12px; width: 100%; }
  .cc-btn { padding: 18px 24px; justify-content: space-between; font-size: 12px; min-height: 52px; }
  .cc-btn .arr { margin-left: auto; }

  /* Manifesto */
  .cc-manifesto-body { grid-template-columns: 1fr; gap: 32px; }
  .cc-manifesto-text { font-size: 18px; max-width: 100%; }
  .cc-pillars { grid-template-columns: 1fr; gap: 28px; padding-top: 32px; margin-top: 56px; }
  .cc-pillar { gap: 8px; }
  .cc-pillar-k { font-size: 24px; }
  .cc-pillar-v { font-size: 15px; max-width: 100%; }

  /* Atelier */
  .cc-atelier-grid { grid-template-columns: 1fr; margin-top: 56px; }
  .cc-step {
    border-right: 0;
    border-bottom: 0.5px solid var(--line);
    padding: 28px 0;
    gap: 12px;
  }
  .cc-step:last-child { border-bottom: 0; }
  .cc-step-n, .cc-step-t, .cc-step-d { padding-left: 0; }
  .cc-step-t { font-size: 28px; }
  .cc-step-d { font-size: 15px; max-width: 100%; }

  /* Partner — legacy layouts collapse */
  .cc-partner-card, .cc-partner-card.is-alt { grid-template-columns: 1fr; gap: 24px; }
  .cc-partner-card.is-alt .cc-partner-img-wrap { order: -1; }
  .cc-partners-grid { grid-template-columns: 1fr; gap: 56px 0; }

  /* Gallery — narrower tiles, tighter caption */
  .cc-gx-section { padding: 88px 0 56px; }
  .cc-gx-wrap { margin: 0; }
  .cc-gx-track { padding: 0; }
  .cc-gx-tile { width: 80vw; }
  .cc-gx-cap { padding: 48px 16px 16px; }
  .cc-gx-lockup { font-size: 9px; letter-spacing: 0.18em; }
  .cc-gx-piece { font-size: 16px; }
  .cc-gx-num { top: 14px; left: 14px; font-size: 18px; }
  .cc-gx-end { width: 65vw; }
  .cc-gx-controls {
    grid-template-columns: 1fr auto;
    gap: 16px;
    padding: 20px 20px 0;
    margin-top: 24px;
  }
  .cc-gx-hint { font-size: 9px; }
  .cc-gx-counter-inline { display: none; }
  .cc-gx-progress { grid-column: 1 / -1; order: 3; height: 1px; margin-top: 8px; }
  .cc-gx-arrows { justify-self: end; }
  .cc-gx-arrow { width: 40px; height: 40px; font-size: 16px; }

  /* Contact */
  .cc-contact-body { grid-template-columns: 1fr; gap: 32px; margin-top: 48px; }
  .cc-contact-text { font-size: 19px; max-width: 100%; }
  .cc-contact-actions { width: 100%; }
  .cc-contact-meta {
    grid-template-columns: 1fr 1fr;
    gap: 24px 16px;
    margin-top: 64px;
    padding-top: 32px;
  }
  .cc-contact-meta dd { font-size: 17px; }
  .cc-contact-meta dt { font-size: 9px; }

  /* Footer */
  .cc-footer {
    padding: 48px 20px 32px;
    grid-template-columns: 1fr;
    gap: 28px;
    text-align: left;
  }
  .cc-footer-mark { text-align: left; font-size: 36px; }
  .cc-footer-meta { justify-self: start; align-items: flex-start; text-align: left; font-size: 9px; }
  .cc-footer-tagline { font-size: 15px; max-width: 100%; }

  /* Language menu — open above the button on small screens */
  .cc-lang { padding: 6px 10px; font-size: 10px; }
  .cc-lang-menu {
    min-width: 180px;
    right: 0;
    /* keep menu inside viewport when nav is sticky near top */
  }

  /* Tweaks panel — let host place it; just trim its width */
  .twk-panel { max-width: calc(100vw - 32px) !important; }
}

/* Extra small — phones in narrow portrait */
@media (max-width: 420px) {
  .cc-section { padding: 72px 16px; }
  .cc-nav { padding: 12px 16px; }
  .cc-hero-full .cc-hero-inner { padding: 0 16px 28px; }
  .cc-display { font-size: clamp(36px, 12vw, 64px); }
  .cc-display-md { font-size: clamp(30px, 10vw, 52px); }
  .cc-step-t { font-size: 24px; }
  .cc-menu a { font-size: 32px; }
  .cc-footer { padding: 36px 16px 24px; }
  .cc-contact-meta { grid-template-columns: 1fr; gap: 20px; }
}
