/* SmartCluster — VARIANT 7: Cinematic editorial (v6 + v3 hybrid) */

/* ============ RESET / BASE ============ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Lora', Georgia, serif;
  font-weight: 400;
  font-size: 17px;
  line-height: 1.65;
  color: #1c1917;
  background: #faf5ee;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

::selection { background: #d97706; color: #faf5ee; }

/* ============ COLOR TOKENS ============ */
:root {
  --c-black:   #0a0a0a;
  --c-dark:    #1c1917;
  --c-cream:   #faf5ee;
  --c-cream-2: #f3ebda;
  --c-amber:   #d97706;
  --c-amber-d: #b45309;
  --c-warm:    #78716c;
  --c-warm-l:  #a8a29e;
  --c-rule:    #e7e0cf;
  --c-rule-d:  rgba(255,255,255,.18);
}

/* ============ TYPOGRAPHY HELPERS ============ */
.ce-kicker {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--c-amber);
}
.ce-kicker.dim { color: var(--c-warm-l); }

.ce-h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 800;
  font-size: clamp(36px, 5.4vw, 76px);
  line-height: 1.06;
  letter-spacing: -0.018em;
  color: var(--c-dark);
  margin: 18px 0 22px;
}
.ce-h2 em {
  font-style: italic;
  font-weight: 400;
  color: var(--c-amber);
}
.ce-h2.light { color: var(--c-cream); }
.ce-h2.light em { color: #f3c163; }

.ce-deck {
  font-family: 'Lora', Georgia, serif;
  font-size: 18px;
  line-height: 1.6;
  color: var(--c-warm);
  max-width: 620px;
  margin: 0;
}
.ce-deck.dim { color: rgba(250,245,238,.66); }

/* Chapter head — vintage editorial nameplate */
.ce-chapter-head {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--c-warm);
  margin-bottom: 8px;
}
.ce-chap-num { color: var(--c-amber); font-weight: 600; }
.ce-chap-rule {
  width: 40px; height: 1px; background: currentColor; opacity: .35;
}
.ce-chap-title { color: var(--c-dark); }
.ce-chapter-head.light .ce-chap-title { color: var(--c-cream); }
.ce-chapter-head.light { color: var(--c-warm-l); }

/* Drop cap — amber 80px Playfair italic float */
.ce-drop {
  float: left;
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: 80px;
  line-height: 0.85;
  color: var(--c-amber);
  margin: 8px 14px 0 0;
  padding: 0;
}

/* ============ HEADER ============ */
.ce-head {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 80;
  padding: 18px 0;
  background: transparent;
  transition: background .35s ease, padding .25s ease, border-color .35s ease;
  border-bottom: 1px solid transparent;
}
.ce-head.scrolled {
  background: rgba(250,245,238,.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 12px 0;
  border-bottom-color: var(--c-rule);
}
.ce-head-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.ce-logo {
  display: flex; flex-direction: column; line-height: 1;
  color: var(--c-cream);
  transition: color .35s ease;
}
.ce-head.scrolled .ce-logo { color: var(--c-dark); }
.ce-mark {
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  font-size: 22px;
  letter-spacing: -0.01em;
}
.ce-logo-sub {
  font-family: 'Inter', sans-serif;
  font-size: 9px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  opacity: .75;
  margin-top: 4px;
}
.ce-nav {
  display: flex; gap: 28px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.ce-nav a {
  color: rgba(250,245,238,.85);
  transition: color .2s ease;
  position: relative;
  padding: 4px 0;
}
.ce-head.scrolled .ce-nav a { color: var(--c-dark); }
.ce-nav a:hover { color: var(--c-amber); }
.ce-right { display: flex; align-items: center; gap: 14px; }

/* ============ VERTICAL TOC ============ */
.ce-toc {
  position: fixed;
  top: 50%;
  left: 28px;
  transform: translateY(-50%);
  z-index: 60;
  opacity: 0;
  pointer-events: none;
  transition: opacity .4s ease;
}
.ce-toc.visible { opacity: 1; pointer-events: auto; }
.ce-toc-track {
  position: absolute;
  left: 16px; top: 8px; bottom: 8px;
  width: 1px;
  background: rgba(120,113,108,.25);
}
.ce-toc-fill {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 0;
  background: var(--c-amber);
  transition: height .15s ease;
}
.ce-toc-list {
  list-style: none;
  margin: 0; padding: 0 0 0 38px;
  display: flex; flex-direction: column; gap: 10px;
}
.ce-toc-list li {
  cursor: pointer;
  display: flex; align-items: center; gap: 10px;
  opacity: .5;
  transition: opacity .25s ease, color .25s ease;
}
.ce-toc-list li:hover, .ce-toc-list li.active { opacity: 1; }
.ce-toc-num {
  font-family: 'Playfair Display', serif;
  font-size: 14px;
  width: 30px;
  color: var(--c-warm);
}
.ce-toc-num em { font-style: italic; }
.ce-toc-list li.active .ce-toc-num { color: var(--c-amber); }
.ce-toc-lbl {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-warm);
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity .25s ease, transform .25s ease;
}
.ce-toc-list li:hover .ce-toc-lbl,
.ce-toc-list li.active .ce-toc-lbl {
  opacity: 1; transform: translateX(0);
}

/* ============ 01 · HERO ============ */
.ce-hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 720px;
  overflow: hidden;
  background: var(--c-black);
  color: var(--c-cream);
}
.ce-hero-photo {
  position: absolute;
  inset: -10% 0 -10% 0;
  z-index: 1;
  will-change: transform;
}
.ce-hero-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(15%) contrast(1.08) brightness(.82);
}
.ce-hero-grad {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(180deg, rgba(10,10,10,.55) 0%, rgba(10,10,10,0) 30%, rgba(10,10,10,0) 50%, rgba(10,10,10,.85) 100%),
    linear-gradient(90deg, rgba(10,10,10,.35) 0%, rgba(10,10,10,0) 50%);
}
.ce-hero-inner {
  position: relative;
  z-index: 3;
  max-width: 1320px;
  height: 100%;
  margin: 0 auto;
  padding: 0 38px 130px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.ce-hero-inner .ce-kicker { color: #f3c163; margin-bottom: 30px; }
.ce-hero-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 800;
  font-size: clamp(56px, 11vw, 144px);
  line-height: 0.95;
  letter-spacing: -0.025em;
  margin: 0 0 36px;
  max-width: 1100px;
}
.ce-hero-title .ce-line {
  display: block;
  opacity: 0;
  transform: translateY(28px);
  animation: ceLineUp .9s cubic-bezier(.2,.7,.1,1) forwards;
}
.ce-hero-title .ce-line:nth-child(1) { animation-delay: .15s; }
.ce-hero-title .ce-line:nth-child(2) { animation-delay: .32s; }
.ce-hero-title .ce-line:nth-child(3) { animation-delay: .49s; }
.ce-hero-title em {
  font-style: italic;
  font-weight: 400;
  color: #f3c163;
}
.ce-hero-title .ce-dot { color: var(--c-amber); }
@keyframes ceLineUp {
  to { opacity: 1; transform: translateY(0); }
}
.ce-hero-deck {
  font-family: 'Lora', Georgia, serif;
  font-size: clamp(17px, 1.5vw, 21px);
  line-height: 1.55;
  color: rgba(250,245,238,.86);
  max-width: 640px;
  margin: 0;
  opacity: 0;
  animation: ceLineUp .9s cubic-bezier(.2,.7,.1,1) .65s forwards;
}
.ce-scroll-cue {
  position: absolute;
  bottom: 38px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  color: rgba(250,245,238,.62);
}
.ce-cue-lbl {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}
.ce-cue-line {
  display: block;
  width: 1px;
  height: 56px;
  background: linear-gradient(180deg, transparent, var(--c-amber));
  animation: ceCue 2s ease-in-out infinite;
}
@keyframes ceCue {
  0%, 100% { transform: scaleY(.5); transform-origin: top; }
  50% { transform: scaleY(1); }
}
.ce-cap {
  position: absolute;
  z-index: 4;
  bottom: 24px;
  right: 38px;
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(250,245,238,.55);
  text-align: right;
  max-width: 320px;
}
.ce-cap.right { right: 38px; left: auto; }

/* ============ 02 · INTRO — Cream editorial ============ */
.ce-intro {
  background: var(--c-cream);
  padding: clamp(80px, 12vw, 170px) 38px clamp(70px, 10vw, 140px);
}
.ce-intro-inner {
  max-width: 880px;
  margin: 0 auto;
}
.ce-lead {
  font-family: 'Lora', Georgia, serif;
  font-size: clamp(19px, 1.8vw, 24px);
  line-height: 1.6;
  color: var(--c-dark);
  margin: 30px 0 26px;
}
.ce-lead::after { content: ""; display: block; clear: both; }
.ce-body {
  font-family: 'Lora', Georgia, serif;
  font-size: 18px;
  line-height: 1.72;
  color: #44403c;
  margin: 0 0 32px;
}
.ce-body em { color: var(--c-amber-d); font-weight: 500; }
.ce-byline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding-top: 24px;
  border-top: 1px solid var(--c-rule);
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--c-warm);
}
.ce-by-r { color: var(--c-dark); }

/* ============ 03 · STATS — Dark with parallax photo backdrops ============ */
.ce-stats {
  background: var(--c-black);
  color: var(--c-cream);
  padding: clamp(80px, 11vw, 150px) 38px clamp(20px, 4vw, 70px);
}
.ce-stats-head {
  max-width: 1320px;
  margin: 0 auto clamp(50px, 7vw, 90px);
  text-align: center;
}
.ce-stats-head .ce-chap-title,
.ce-stats-head .ce-chap-rule { color: var(--c-warm-l); }
.ce-stats-head .ce-chapter-head { justify-content: center; }
.ce-stat-row {
  max-width: 1320px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
}
.ce-stat {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--c-dark);
}
.ce-stat-bg {
  position: absolute;
  inset: -10% 0 -10% 0;
  z-index: 1;
  will-change: transform;
}
.ce-stat-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(35%) contrast(1.05) brightness(.55);
  transition: filter .8s ease;
}
.ce-stat:hover .ce-stat-bg img { filter: grayscale(0%) contrast(1.1) brightness(.7); }
.ce-stat-grad {
  position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(180deg, rgba(10,10,10,.35) 0%, rgba(10,10,10,0) 35%, rgba(10,10,10,0) 55%, rgba(10,10,10,.92) 100%);
}
.ce-stat-text {
  position: relative;
  z-index: 3;
  height: 100%;
  padding: 36px 30px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.ce-stat-big {
  display: block;
  font-family: 'Playfair Display', serif;
  font-weight: 800;
  font-size: clamp(72px, 9vw, 130px);
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: var(--c-cream);
}
.ce-stat-big sup {
  font-size: 0.45em;
  font-weight: 400;
  font-style: italic;
  vertical-align: super;
  color: var(--c-amber);
}
.ce-stat-rule {
  display: block;
  width: 40px;
  height: 2px;
  background: var(--c-amber);
  margin: 18px 0 14px;
}
.ce-stat-lbl {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(250,245,238,.78);
  line-height: 1.45;
}

/* ============ 04 · GROUPS — Cream 2-col grid ============ */
.ce-groups {
  background: var(--c-cream);
  padding: clamp(80px, 12vw, 160px) 38px;
}
.ce-section-head {
  max-width: 1100px;
  margin: 0 auto clamp(50px, 7vw, 90px);
}
.ce-groups-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 56px;
  row-gap: 0;
}
.ce-grp {
  padding: 30px 0;
  border-top: 1px solid var(--c-rule);
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 22px;
  align-items: start;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .7s ease, transform .7s ease;
}
.ce-grp.in-view { opacity: 1; transform: translateY(0); }
.ce-grp:last-child, .ce-grp:nth-last-child(2):nth-child(odd) {
  border-bottom: 1px solid var(--c-rule);
}
.ce-grp-num {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  color: var(--c-amber);
  line-height: 1;
}
.ce-grp-num em { font-style: italic; font-weight: 400; }
.ce-grp-name {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 22px;
  line-height: 1.2;
  color: var(--c-dark);
  margin: 0 0 8px;
}
.ce-grp-sub {
  font-family: 'Lora', serif;
  font-size: 15px;
  line-height: 1.55;
  color: var(--c-warm);
  margin: 0;
}

/* ============ 05/07/09 · PULL QUOTES ============ */
.ce-quote {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--c-black);
  color: var(--c-cream);
  padding: clamp(70px, 10vw, 130px) 38px;
}
.ce-quote-photo {
  position: absolute;
  inset: -10% 0 -10% 0;
  z-index: 1;
  will-change: transform;
}
.ce-quote-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(60%) contrast(1.05) brightness(.5);
}
.ce-quote-grad {
  position: absolute; inset: 0; z-index: 2;
  background:
    radial-gradient(ellipse at center, rgba(10,10,10,.45) 0%, rgba(10,10,10,.85) 100%);
}
.ce-quote-inner {
  position: relative;
  z-index: 3;
  max-width: 920px;
  text-align: center;
}
.ce-quote-mark {
  display: block;
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(120px, 16vw, 220px);
  line-height: 0.7;
  color: var(--c-amber);
  opacity: .85;
  margin-bottom: -20px;
}
.ce-quote-text {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(28px, 3.8vw, 56px);
  line-height: 1.22;
  letter-spacing: -0.012em;
  color: var(--c-cream);
  margin: 0 0 40px;
  quotes: none;
}
.ce-quote-cite {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-style: normal;
}
.ce-cite-name {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 18px;
  color: #f3c163;
  letter-spacing: 0.01em;
}
.ce-cite-role {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(250,245,238,.6);
}

/* ============ 06 · KONFERENCIE · PHOTO CAROUSEL ============ */
.ce-conf {
  background: var(--c-dark);
  color: var(--c-cream);
  padding: clamp(80px, 11vw, 150px) 0 clamp(80px, 10vw, 130px);
  position: relative;
}
.ce-conf-head {
  max-width: 1200px;
  margin: 0 auto clamp(50px, 7vw, 80px);
  padding: 0 38px;
  text-align: center;
}
.ce-conf-head .ce-chapter-head { justify-content: center; }
.ce-carousel {
  position: relative;
  max-width: 1320px;
  margin: 0 auto;
  height: clamp(440px, 72vh, 720px);
  overflow: hidden;
}
.ce-slides {
  position: relative;
  width: 100%; height: 100%;
}
.ce-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s cubic-bezier(.4,0,.2,1);
  pointer-events: none;
}
.ce-slide.active { opacity: 1; pointer-events: auto; }
.ce-slide img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(20%) contrast(1.05) brightness(.78);
}
.ce-slide-grad {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,10,10,.4) 0%, rgba(10,10,10,0) 30%, rgba(10,10,10,0) 50%, rgba(10,10,10,.95) 100%);
}
.ce-slide-text {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 50px 70px 60px;
  max-width: 920px;
}
.ce-slide-yr {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--c-amber);
  margin-bottom: 16px;
}
.ce-slide-title {
  font-family: 'Playfair Display', serif;
  font-weight: 800;
  font-size: clamp(38px, 5.5vw, 78px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
  color: var(--c-cream);
}
.ce-slide-title em { font-style: italic; font-weight: 400; color: #f3c163; }
.ce-slide-meta {
  font-family: 'Lora', serif;
  font-size: 16px;
  color: rgba(250,245,238,.78);
  margin: 0;
}
.ce-car-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 56px; height: 56px;
  background: rgba(10,10,10,.45);
  border: 1px solid rgba(250,245,238,.25);
  color: var(--c-cream);
  font-size: 28px;
  line-height: 1;
  display: flex; align-items: center; justify-content: center;
  z-index: 5;
  transition: background .25s ease, border-color .25s ease, color .25s ease;
}
.ce-car-btn:hover { background: var(--c-amber); border-color: var(--c-amber); color: var(--c-black); }
.ce-car-btn.prev { left: 24px; }
.ce-car-btn.next { right: 24px; }
.ce-car-dots {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  display: flex; gap: 10px;
  z-index: 5;
}
.ce-dot {
  width: 26px; height: 2px;
  background: rgba(250,245,238,.3);
  border: 0;
  padding: 0;
  transition: background .25s ease, width .25s ease;
}
.ce-dot.active { background: var(--c-amber); width: 40px; }
.ce-car-count {
  position: absolute;
  top: 24px; right: 30px;
  z-index: 5;
  font-family: 'Playfair Display', serif;
  font-size: 16px;
  color: rgba(250,245,238,.85);
}
.ce-car-count em { font-style: italic; }
.ce-car-count .ce-sl { color: rgba(250,245,238,.4); margin: 0 4px; }

/* ============ 08 · PROJEKTY — Cream 3-col cards ============ */
.ce-proj {
  background: var(--c-cream-2);
  padding: clamp(80px, 12vw, 160px) 38px;
}
.ce-proj .ce-section-head {
  max-width: 1280px;
}
.ce-proj-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 44px;
}
.ce-proj-card {
  display: flex;
  flex-direction: column;
}
.ce-proj-fig {
  position: relative;
  margin: 0 0 22px;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #e7e0cf;
}
.ce-proj-fig img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(10%) contrast(1.05);
  transition: transform .9s ease;
}
.ce-proj-card:hover .ce-proj-fig img { transform: scale(1.04); }
.ce-proj-fig figcaption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 28px 18px 14px;
  background: linear-gradient(180deg, transparent, rgba(10,10,10,.85));
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(250,245,238,.85);
}
.ce-proj-tag {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--c-amber);
  margin-bottom: 10px;
}
.ce-proj-title {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 24px;
  line-height: 1.18;
  color: var(--c-dark);
  margin: 0 0 16px;
}
.ce-proj-body {
  font-family: 'Lora', serif;
  font-size: 15px;
  line-height: 1.65;
  color: #44403c;
  margin: 0 0 18px;
}
.ce-proj-body::after { content: ""; display: block; clear: both; }
.ce-proj-body .ce-drop {
  font-size: 56px;
  margin: 6px 10px 0 0;
}
.ce-proj-link {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-amber-d);
  border-bottom: 1px solid currentColor;
  padding-bottom: 3px;
  align-self: flex-start;
  transition: color .2s ease;
}
.ce-proj-link:hover { color: var(--c-amber); }
.ce-proj-link.muted { color: var(--c-warm); border-color: transparent; }

/* ============ 10 · MEMBERS ============ */
.ce-mem {
  background: var(--c-cream);
  padding: clamp(80px, 12vw, 160px) 38px clamp(80px, 11vw, 140px);
}
.ce-mem .ce-section-head { max-width: 1280px; }
.ce-mem-list {
  max-width: 1280px;
  margin: 0 auto clamp(70px, 9vw, 110px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 42px;
}
.ce-mem-col {
  border-top: 2px solid var(--c-dark);
  padding-top: 16px;
}
.ce-mem-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 14px;
}
.ce-mem-h {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 22px;
  color: var(--c-dark);
}
.ce-mem-h em { font-style: italic; font-weight: 400; color: var(--c-amber); }
.ce-mem-num {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--c-warm);
}
.ce-mem-col ul {
  list-style: none;
  margin: 0; padding: 0;
}
.ce-mem-col li {
  font-family: 'Lora', serif;
  font-size: 15px;
  line-height: 1.45;
  padding: 9px 0;
  border-bottom: 1px dotted var(--c-rule);
  color: var(--c-dark);
}
.ce-mem-col li:last-child { border-bottom: 0; }

.ce-mem-sub {
  font-family: 'Playfair Display', serif;
  font-weight: 800;
  font-size: clamp(28px, 3.5vw, 44px);
  color: var(--c-dark);
  margin: 0 auto 32px;
  max-width: 1280px;
  padding-top: 30px;
  border-top: 1px solid var(--c-rule);
}
.ce-mem-sub em { font-style: italic; font-weight: 400; color: var(--c-amber); }

/* Masonry — CSS columns */
.ce-masonry {
  max-width: 1280px;
  margin: 0 auto;
  column-count: 3;
  column-gap: 22px;
}
.ce-mtile {
  break-inside: avoid;
  margin: 0 0 22px;
  position: relative;
  overflow: hidden;
  background: #e7e0cf;
}
.ce-mtile img {
  width: 100%;
  height: auto;
  display: block;
  filter: grayscale(15%) contrast(1.05);
  transition: transform .8s ease, filter .8s ease;
}
.ce-mtile:hover img { transform: scale(1.04); filter: grayscale(0%) contrast(1.1); }
.ce-mtile.t1 img, .ce-mtile.t5 img { aspect-ratio: 4 / 5; object-fit: cover; }
.ce-mtile.t2 img, .ce-mtile.t6 img { aspect-ratio: 4 / 3; object-fit: cover; }
.ce-mtile.t3 img, .ce-mtile.t7 img { aspect-ratio: 1 / 1; object-fit: cover; }
.ce-mtile.t4 img, .ce-mtile.t8 img { aspect-ratio: 3 / 4; object-fit: cover; }
.ce-mtile figcaption {
  padding: 12px 4px 6px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.ce-mfig-name {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-weight: 400;
  font-size: 17px;
  color: var(--c-dark);
}
.ce-mfig-sub {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-warm);
}

/* ============ 11 · CTA ============ */
.ce-cta {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--c-black);
  color: var(--c-cream);
  padding: clamp(80px, 11vw, 140px) 38px;
}
.ce-cta-photo {
  position: absolute;
  inset: -10% 0 -10% 0;
  z-index: 1;
  will-change: transform;
}
.ce-cta-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(40%) contrast(1.1) brightness(.4);
}
.ce-cta-grad {
  position: absolute; inset: 0; z-index: 2;
  background:
    linear-gradient(180deg, rgba(10,10,10,.55) 0%, rgba(10,10,10,.85) 100%);
}
.ce-cta-inner {
  position: relative;
  z-index: 3;
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
}
.ce-cta-inner .ce-kicker { color: #f3c163; margin-bottom: 26px; }
.ce-cta-title {
  font-family: 'Playfair Display', serif;
  font-weight: 800;
  font-size: clamp(46px, 7vw, 96px);
  line-height: 1.04;
  letter-spacing: -0.022em;
  color: var(--c-cream);
  margin: 0 0 24px;
}
.ce-cta-title em { font-style: italic; font-weight: 400; color: #f3c163; }
.ce-cta-deck {
  font-family: 'Lora', serif;
  font-size: 19px;
  line-height: 1.55;
  color: rgba(250,245,238,.82);
  max-width: 620px;
  margin: 0 auto 40px;
}
.ce-cta-actions {
  display: flex;
  gap: 18px;
  justify-content: center;
  flex-wrap: wrap;
}
.ce-btn {
  display: inline-flex;
  align-items: center;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 18px 32px;
  transition: background .25s ease, color .25s ease, border-color .25s ease;
}
.ce-btn.ghost {
  border: 1px solid var(--c-amber);
  color: var(--c-amber);
  background: transparent;
}
.ce-btn.ghost:hover { background: var(--c-amber); color: var(--c-black); }
.ce-btn.link {
  color: rgba(250,245,238,.7);
  padding: 18px 8px;
}
.ce-btn.link:hover { color: var(--c-cream); }

/* ============ FOOTER ============ */
.ce-foot {
  background: var(--c-black);
  color: rgba(250,245,238,.75);
  padding: 70px 38px 28px;
  border-top: 1px solid rgba(250,245,238,.08);
}
.ce-foot-inner { max-width: 1320px; margin: 0 auto; }
.ce-foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 44px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(250,245,238,.1);
}
.ce-foot-col { display: flex; flex-direction: column; gap: 8px; }
.ce-foot-col h4 {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--c-amber);
  margin: 0 0 8px;
}
.ce-foot-col a, .ce-foot-col span, .ce-foot-col p {
  font-family: 'Lora', serif;
  font-size: 14px;
  color: rgba(250,245,238,.75);
  margin: 0;
  line-height: 1.55;
}
.ce-foot-col a:hover { color: var(--c-amber); }
.ce-foot-mark {
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  font-size: 26px;
  color: var(--c-cream);
  line-height: 1;
}
.ce-foot-tag {
  font-family: 'Playfair Display', serif;
  font-size: 14px;
  color: var(--c-warm-l);
  margin-bottom: 6px;
}
.ce-foot-tag em { font-style: italic; color: #f3c163; }
.ce-foot-base {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 22px;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: rgba(250,245,238,.45);
}
.ce-foot-base em { font-style: italic; }

/* ============ REVEAL ANIMATIONS ============ */
.ce-h2, .ce-deck, .ce-section-head, .ce-proj-card, .ce-mem-col, .ce-mtile {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .8s ease, transform .8s ease;
}
.ce-h2.in-view, .ce-deck.in-view, .ce-section-head.in-view,
.ce-proj-card.in-view, .ce-mem-col.in-view, .ce-mtile.in-view {
  opacity: 1; transform: translateY(0);
}

/* ============ MOBILE — 768px ============ */
@media (max-width: 1024px) {
  .ce-head-inner { padding: 0 24px; gap: 18px; }
  .ce-nav { display: none; }
  .ce-toc { display: none; }
  .ce-stat-row { grid-template-columns: repeat(2, 1fr); }
  .ce-proj-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .ce-mem-list { grid-template-columns: 1fr 1fr; gap: 36px; }
  .ce-masonry { column-count: 2; }
  .ce-groups-grid { grid-template-columns: 1fr; column-gap: 0; }
  .ce-groups-grid .ce-grp { border-bottom: 0; }
  .ce-groups-grid .ce-grp:last-child { border-bottom: 1px solid var(--c-rule); }
  .ce-foot-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 768px) {
  body { font-size: 16px; }
  .ce-head { padding: 12px 0; }
  .ce-head-inner { padding: 0 18px; gap: 12px; }
  .ce-logo-sub { display: none; }
  .ce-hero { height: 80vh; min-height: 560px; }
  .ce-hero-inner { padding: 0 22px 90px; }
  .ce-hero-title { font-size: clamp(48px, 14vw, 80px); margin-bottom: 22px; }
  .ce-hero-deck { font-size: 16px; }
  .ce-cap { right: 18px; left: 18px; max-width: none; text-align: left; font-size: 9px; }
  .ce-scroll-cue { bottom: 22px; }

  .ce-intro, .ce-groups, .ce-proj, .ce-mem, .ce-stats { padding-left: 22px; padding-right: 22px; }
  .ce-intro-inner { padding: 0; }
  .ce-drop { font-size: 64px; margin-right: 10px; }
  .ce-byline { flex-direction: column; align-items: flex-start; gap: 6px; }

  .ce-stat-row { grid-template-columns: 1fr; gap: 4px; }
  .ce-stat { aspect-ratio: 4 / 3; }
  .ce-stat-text { padding: 28px 22px; }
  .ce-stat-big { font-size: 84px; }

  .ce-groups-grid { grid-template-columns: 1fr; column-gap: 0; }
  .ce-grp { grid-template-columns: 44px 1fr; gap: 16px; padding: 22px 0; }
  .ce-grp-num { font-size: 22px; }
  .ce-grp-name { font-size: 19px; }

  .ce-quote { min-height: 80vh; padding: 70px 22px; }
  .ce-quote-text { font-size: clamp(24px, 6vw, 36px); }
  .ce-quote-mark { font-size: 110px; margin-bottom: -10px; }

  .ce-conf-head { padding: 0 22px; }
  .ce-carousel { height: 480px; }
  .ce-slide-text { padding: 30px 24px 50px; }
  .ce-car-btn { width: 44px; height: 44px; font-size: 22px; }
  .ce-car-btn.prev { left: 12px; }
  .ce-car-btn.next { right: 12px; }
  .ce-car-count { top: 16px; right: 18px; font-size: 14px; }

  .ce-proj-grid { grid-template-columns: 1fr; gap: 50px; }
  .ce-mem-list { grid-template-columns: 1fr; gap: 32px; }
  .ce-masonry { column-count: 1; }

  .ce-cta { min-height: 70vh; padding: 80px 22px; }
  .ce-cta-deck { font-size: 17px; }

  .ce-foot { padding: 50px 22px 22px; }
  .ce-foot-grid { grid-template-columns: 1fr; gap: 32px; padding-bottom: 32px; }
  .ce-foot-base { flex-direction: column; gap: 8px; padding-top: 18px; }
}

/* ============ ACCESSIBILITY ============ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .ce-hero-title .ce-line, .ce-hero-deck { opacity: 1; transform: none; }
}
