/* Soltis — Core components */

/* ========== CURSOR ========== */
/* Custom cursor removed - the site uses the browser's native pointer. */
.cursor-dot, .cursor-ring, .cursor-text { display: none !important; }
[data-cursor] { cursor: pointer; }

/* ========== PROGRESS SIDEBAR ========== */
.side {
  position: fixed; top: 0; bottom: 0; right: 0; z-index: 40;
  width: 56px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 14px;
  pointer-events: none;
  mix-blend-mode: difference;
  color: #fff;
}
.side-num { font-family: var(--mono); font-size: 10px; letter-spacing: 0.2em; writing-mode: vertical-rl; transform: rotate(180deg); margin-bottom: 20px; }
.side-dots { display: flex; flex-direction: column; gap: 12px; pointer-events: auto; }
.side-dot { position: relative; width: 4px; height: 4px; border-radius: 50%; background: rgba(255,255,255,0.3); cursor: pointer; transition: background .3s, transform .3s; }
.side-dot.active { background: #fff; transform: scale(1.8); }
.side-dot:hover { background: #fff; }
.side-dot::before {
  content: attr(data-label);
  position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
  font-family: var(--mono); font-size: 9px; letter-spacing: 0.2em; text-transform: uppercase; color: #fff;
  white-space: nowrap; opacity: 0; pointer-events: none;
  transition: opacity .25s;
}
.side-dot:hover::before, .side-dot.active::before { opacity: 1; }
.side-time { font-family: var(--mono); font-size: 11px; letter-spacing: 0.15em; margin-top: 20px; }
.side-time .t { font-family: var(--display); font-size: 27px; font-weight: 300; letter-spacing: -0.02em; text-transform: none; display: block; margin-top: 4px; font-variant-numeric: tabular-nums; }

/* ========== NAV ========== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: grid; grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 22px 40px;
  mix-blend-mode: difference;
  color: #fff;
}
.nav::before {
  content: '';
  position: absolute; inset: 0;
  background: rgba(180,180,175,0.13);
  backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: -1;
}
.nav:hover::before { opacity: 1; }
.nav-left, .nav-right { display: flex; gap: 26px; align-items: center; }
.nav-right { justify-content: flex-end; }
.nav a { font-family: var(--mono); font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; opacity: .85; transition: opacity .2s; cursor: pointer; }
.nav a:hover { opacity: 1; }
.nav-logo { font-family: var(--display); font-size: 24px; font-weight: 400; letter-spacing: -0.02em; }
.nav-logo sup { font-family: var(--mono); font-size: 8px; vertical-align: super; margin-left: 4px; letter-spacing: 0.15em; opacity: .7; }
.nav-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--brass); display: inline-block; margin-right: 8px; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.3} }

/* ========== INTRO ========== */
.intro {
  position: fixed; inset: 0; z-index: 100;
  background: var(--ink);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  pointer-events: none;
  transition: opacity .8s .4s, visibility 0s 1.4s;
}
.intro.hidden { opacity: 0; visibility: hidden; }
.intro-wrap { position: relative; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.intro-title {
  font-family: var(--display); font-weight: 300;
  font-size: min(28vw, 440px); line-height: 1; letter-spacing: -0.06em;
  color: var(--bone); position: relative; z-index: 2;
  display: flex; gap: 0.02em;
}
.intro-title .ch { display: inline-block; transform: translateY(100%); opacity: 0; animation: introIn .9s cubic-bezier(.2,.7,.3,1) forwards; }
.intro-title .ch:nth-child(1){animation-delay:.1s}
.intro-title .ch:nth-child(2){animation-delay:.16s}
.intro-title .ch:nth-child(3){animation-delay:.22s}
.intro-title .ch:nth-child(4){animation-delay:.28s}
.intro-title .ch:nth-child(5){animation-delay:.34s}
.intro-title .ch:nth-child(6){animation-delay:.4s}
.intro-title .ch:nth-child(7){animation-delay:.85s}
@keyframes introIn { to { transform: translateY(0); opacity: 1; } }
.intro-title .ch.italic { font-style: italic; color: var(--brass); }

.intro-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(201,160,102,0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(201,160,102,0.06) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0; animation: gridFade 1.2s .8s forwards;
}
@keyframes gridFade { to { opacity: 1; } }
.intro-meta {
  position: absolute; bottom: 40px; left: 40px; right: 40px;
  display: flex; justify-content: space-between;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(242,234,216,0.5); opacity: 0; animation: metaFade .8s 1s forwards;
}
@keyframes metaFade { to { opacity: 1; } }
.intro-loader {
  position: absolute; left: 50%; bottom: 80px; transform: translateX(-50%);
  width: 180px; height: 1px; background: rgba(242,234,216,0.2); overflow: hidden; opacity: 0;
  animation: metaFade .4s .6s forwards;
}
.intro-loader::after { content: ''; display: block; height: 100%; background: var(--brass); width: 100%; transform: translateX(-100%); animation: loaderFill 1.4s .6s cubic-bezier(.55,.05,.35,1) forwards; }
@keyframes loaderFill { to { transform: translateX(0); } }

/* ========== HERO ========== */
.hero {
  position: relative;
  min-height: 100vh; height: 100vh;
  display: flex; align-items: flex-end;
  padding: 0 40px 40px;
  overflow: hidden;
  background: var(--ink);
}
.hero-bg { position: absolute; inset: 0; }
.hero-bg-img {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  filter: saturate(0.8) contrast(1.05) brightness(0.68);
  opacity: 0;
  transform: scale(1.08);
  transition: opacity 1.6s cubic-bezier(.4,0,.2,1), transform 14s linear;
}
.hero-bg-img.active { opacity: 1; transform: scale(1); }
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(14,16,10,0.25) 0%, transparent 30%, transparent 55%, rgba(14,16,10,0.7) 100%);
}
.hero-inner { position: relative; z-index: 2; width: 100%; }

.hero-top {
  position: absolute; top: 100px; left: 40px; right: 40px;
  display: grid; grid-template-columns: auto 1fr auto;
  gap: 40px;
  align-items: start;
}
.hero-top-l {
  border-left: 1px solid rgba(242,234,216,0.3);
  padding: 4px 0 4px 14px;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(242,234,216,0.8); line-height: 2;
}
.hero-top-c { text-align: center; }
.hero-top-c .kicker { font-family: var(--mono); font-size: 10px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--brass-soft); }
.hero-top-r { text-align: right; font-family: var(--mono); font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(242,234,216,0.8); line-height: 2; }

.hero-title {
  font-family: var(--display); font-weight: 300;
  font-size: clamp(48px, 7.2vw, 112px); line-height: 1.0; letter-spacing: -0.04em;
  margin: 0 0 40px; max-width: 100%;
  word-spacing: 0.04em;
}
.hero-title .word { display: inline-block; overflow: hidden; vertical-align: top; padding: 0.08em 0.05em 0.12em; margin: -0.08em -0.05em -0.12em; }
.hero-title .word > span { display: inline-block; transform: translateY(110%); opacity: 0; animation: heroWord 1.1s cubic-bezier(.2,.7,.3,1) forwards; }
@keyframes heroWord { to { transform: translateY(0); opacity: 1; } }
.hero-title .itb { font-style: italic; color: var(--brass-soft); }

.hero-foot {
  display: grid; grid-template-columns: 1fr auto 1fr;
  gap: 40px; align-items: end;
  padding-top: 24px; border-top: 1px solid rgba(242,234,216,0.25);
}
/* Full white with a soft shadow so it stays legible over a bright hero photo
   (it was a low-contrast grey/tan before and vanished on daylight images). */
.hero-lede { font-family: var(--display); font-size: clamp(18px, 1.3vw, 22px); line-height: 1.55; max-width: 520px; color: #ffffff; font-weight: 400; text-shadow: 0 1px 16px rgba(0,0,0,0.55), 0 0 2px rgba(0,0,0,0.35); }
.hero-lede .it { font-style: italic; color: #ffffff; }
.hero-scroll {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 9px; letter-spacing: 0.25em; text-transform: uppercase;
}
.hero-scroll .line { width: 1px; height: 40px; background: rgba(242,234,216,0.3); position: relative; overflow: hidden; }
.hero-scroll .line::after { content: ''; position: absolute; inset: 0; background: var(--brass); transform: translateY(-100%); animation: scrollLine 2s cubic-bezier(.4,0,.2,1) infinite; }
@keyframes scrollLine { 0% { transform: translateY(-100%); } 100% { transform: translateY(100%); } }
.hero-proj-meta { text-align: right; font-family: var(--mono); font-size: 9px; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(242,234,216,0.65); line-height: 1.8; }
.hero-proj-meta b { color: var(--bone); font-weight: 500; }

.hero-indicator { position: absolute; top: 50%; right: 80px; transform: translateY(-50%); display: flex; flex-direction: column; gap: 10px; z-index: 3; }
.hero-indicator .d { width: 22px; height: 1px; background: rgba(242,234,216,0.3); transition: background .4s, width .4s; cursor: pointer; }
.hero-indicator .d.active { background: var(--brass); width: 36px; }

/* ========== MARQUEE ========== */
.marq-sec { padding: 0; background: var(--ink); border-top: 1px solid rgba(242,234,216,0.12); border-bottom: 1px solid rgba(242,234,216,0.12); overflow: hidden; }
.marq {
  display: flex; gap: 48px;
  font-family: var(--display); font-weight: 300; font-size: clamp(40px, 6vw, 96px); letter-spacing: -0.03em; line-height: 1;
  padding: 30px 0; white-space: nowrap;
  animation: marqMove 40s linear infinite;
  width: max-content;
}
.marq span { display: inline-flex; align-items: center; gap: 48px; }
.marq .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--brass); flex-shrink: 0; }
.marq .it { font-style: italic; color: var(--brass-soft); }
@keyframes marqMove { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ========== CHAPTER LABEL (reusable) ========== */
.chapter {
  padding: 140px 40px 80px;
  display: grid; grid-template-columns: 180px 1fr 1fr;
  gap: 60px;
  align-items: baseline;
  border-top: 1px solid rgba(242,234,216,0.12);
  background: var(--ink);
}
.chapter-num { font-family: var(--mono); font-size: 10px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--brass); }
.chapter-num .line { display: block; width: 40px; height: 1px; background: var(--brass); margin-top: 14px; }
.chapter-title { font-family: var(--display); font-size: clamp(56px, 7vw, 104px); font-weight: 300; letter-spacing: -0.04em; line-height: 0.95; margin: 0; }
.chapter-title .it { font-style: italic; color: var(--brass-soft); }
.chapter-lede { font-family: var(--display); font-size: clamp(19px, 1.35vw, 23px); line-height: 1.6; color: rgba(242,234,216,0.78); max-width: 520px; font-weight: 400; }
.chapter-lede .it { font-style: italic; color: var(--brass-soft); }

/* ========== SECTION WRAPS ========== */
section { position: relative; }
.dark { background: var(--ink); color: var(--bone); }
.cream { background: var(--cream); color: var(--ink); }
.cream .chapter { background: transparent; border-top-color: rgba(26,29,20,0.12); }
.cream .chapter-num { color: var(--olive-d); }
.cream .chapter-num .line { background: var(--olive-d); }
.cream .chapter-title .it { color: var(--olive-d); }
.cream .chapter-lede { color: var(--stone); }
.cream .chapter-lede .it { color: var(--olive-d); }

/* ========== UTILS ========== */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 1.1s cubic-bezier(.2,.7,.3,1), transform 1.1s cubic-bezier(.2,.7,.3,1); }
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: .12s; }
.reveal-delay-2 { transition-delay: .24s; }
.reveal-delay-3 { transition-delay: .36s; }
.reveal-delay-4 { transition-delay: .48s; }
.reveal-delay-5 { transition-delay: .6s; }

/* ========== CINEMATIC: word-by-word mask reveal for chapter titles ========== */
.chapter-title .wm {
  display: inline-block; overflow: hidden; vertical-align: top;
  margin-right: 0.24em; line-height: 1;
  /* Descender room: 'J', 'g', 'y' were being clipped by overflow:hidden.
     The negative margin cancels the padding so layout is unchanged. */
  padding-bottom: 0.2em; margin-bottom: -0.2em;
}
.chapter-title .wm > i {
  display: inline-block; transform: translateY(130%);
  transition: transform 1.2s cubic-bezier(.2,.7,.3,1);
  font-style: inherit;
}
.chapter-title.in .wm > i { transform: translateY(0); }
.chapter-title .wm:nth-child(1) > i { transition-delay: .05s; }
.chapter-title .wm:nth-child(2) > i { transition-delay: .14s; }
.chapter-title .wm:nth-child(3) > i { transition-delay: .23s; }
.chapter-title .wm:nth-child(4) > i { transition-delay: .32s; }
.chapter-title .wm:nth-child(5) > i { transition-delay: .41s; }
.chapter-title .wm:nth-child(6) > i { transition-delay: .50s; }

/* Section-number hairline draws in */
.chapter-num .line { transform: scaleX(0); transform-origin: 0 50%; transition: transform 1.4s .2s cubic-bezier(.7,0,.3,1); }
.chapter.in .chapter-num .line { transform: scaleX(1); }

/* ========== CINEMATIC: image mask-reveal ========== */
.mask-reveal { position: relative; overflow: hidden; }
.mask-reveal > img,
.mask-reveal > .mr-content {
  transform: scale(1.15);
  transition: transform 1.8s cubic-bezier(.2,.7,.3,1);
}
.mask-reveal::after {
  content: ''; position: absolute; inset: 0;
  background: var(--ink);
  transform: translateX(0);
  transition: transform 1.4s cubic-bezier(.76,0,.24,1);
  z-index: 2;
}
.mask-reveal.cream-wipe::after { background: var(--cream); }
.mask-reveal.in > img,
.mask-reveal.in > .mr-content { transform: scale(1); }
.mask-reveal.in::after { transform: translateX(101%); }

/* ========== CINEMATIC: brass filament draw ========== */
@keyframes filamentDraw { 0% { transform: scaleX(0); } 100% { transform: scaleX(1); } }
.filament {
  display: block; height: 1px; width: 60px; background: var(--brass);
  transform-origin: 0 50%; transform: scaleX(0);
}
.filament.in { animation: filamentDraw 1.6s cubic-bezier(.7,0,.3,1) forwards; }

/* ========== CINEMATIC: atelier card stagger + spotlight ========== */
.atelier-card { opacity: 0; transform: translateY(60px); transition: opacity 1.3s cubic-bezier(.2,.7,.3,1), transform 1.3s cubic-bezier(.2,.7,.3,1); }
.atelier-card.in { opacity: 1; transform: translateY(0); }
.atelier-card:nth-child(1) { transition-delay: 0s; }
.atelier-card:nth-child(2) { transition-delay: .12s; }
.atelier-card:nth-child(3) { transition-delay: .24s; }
.atelier-card:nth-child(4) { transition-delay: .36s; }

.atelier-card-img {
  position: relative;
}
.atelier-card-img::before {
  content: ''; position: absolute; inset: 0; background: var(--cream);
  transform: translateY(0); transition: transform 1.6s .15s cubic-bezier(.76,0,.24,1);
  z-index: 2; pointer-events: none;
}
.atelier-card.in .atelier-card-img::before { transform: translateY(-101%); }

/* Atelier hover: portrait shifts into warm, cinematic focus */
.atelier-card-img img { transition: transform 2s cubic-bezier(.2,.7,.3,1), filter 1s cubic-bezier(.2,.7,.3,1); filter: saturate(0.35) contrast(1.05) brightness(0.85); }
.atelier-card:hover .atelier-card-img img {
  transform: scale(1.08);
  filter: saturate(0.55) contrast(1.1) brightness(0.95) sepia(.08);
}
.atelier-card-img::after {
  background: radial-gradient(ellipse at 50% 80%, rgba(201,160,102,0) 0%, rgba(14,16,10,0) 50%, rgba(14,16,10,0.35) 100%);
  transition: opacity .8s;
}
.atelier-card:hover .atelier-card-img::after {
  background: radial-gradient(ellipse at 50% 50%, rgba(201,160,102,0.15) 0%, rgba(14,16,10,0) 50%, rgba(14,16,10,0.45) 100%);
}

/* Animated golden hairline under atelier name on hover */
.atelier-card-name { position: relative; }
.atelier-card-name::after {
  content: ''; position: absolute; left: 0; bottom: -6px; width: 100%; height: 1px;
  background: var(--olive-d); transform: scaleX(0); transform-origin: 0 50%;
  transition: transform .8s cubic-bezier(.7,0,.3,1);
}
.atelier-card:hover .atelier-card-name::after { transform: scaleX(1); }

/* Quote shimmer fade-in on hover */
.atelier-card-quote {
  max-height: 0; opacity: 0; overflow: hidden;
  transition: max-height .8s cubic-bezier(.7,0,.3,1), opacity .6s .1s, margin-top .6s;
  margin-top: 0 !important;
}
.atelier-card:hover .atelier-card-quote {
  max-height: 120px; opacity: 1; margin-top: 14px !important;
}

/* ========== CINEMATIC: marquee slow-luxe (velvet) ========== */
.marq { animation-duration: 80s !important; }
.marq span { font-size: clamp(56px, 8vw, 100px) !important; }

/* ========== CHAPTER sub-num badge animation ========== */
.chapter-num {
  opacity: 0; transform: translateY(12px);
  transition: opacity 1s, transform 1s;
}
.chapter.in .chapter-num { opacity: 1; transform: translateY(0); }

.chapter-lede {
  opacity: 0; transform: translateY(20px);
  transition: opacity 1.2s .6s cubic-bezier(.2,.7,.3,1), transform 1.2s .6s cubic-bezier(.2,.7,.3,1);
}
.chapter.in .chapter-lede { opacity: 1; transform: translateY(0); }

/* ========== PAGE AMBIENT: subtle floating brass orb (atelier atmosphere) ========== */
.ambient-orb {
  position: fixed; top: 30%; left: -200px; width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(201,160,102,0.08), transparent 65%);
  pointer-events: none; z-index: 0;
  filter: blur(40px);
  animation: orbDrift 32s ease-in-out infinite;
}
.ambient-orb.two {
  top: 60%; left: auto; right: -250px;
  width: 500px; height: 500px;
  animation-duration: 44s; animation-delay: -10s;
  background: radial-gradient(circle at 70% 70%, rgba(122,138,91,0.09), transparent 65%);
}
@keyframes orbDrift {
  0%,100% { transform: translate(0,0); }
  25% { transform: translate(80px, -60px); }
  50% { transform: translate(140px, 40px); }
  75% { transform: translate(40px, 100px); }
}

/* ========== Ink Quill signature (manifesto section) ========== */
.manifesto-quote { position: relative; }
.manifesto-quote::before {
  content: ''; position: absolute; left: -40px; top: 0.4em; width: 2px; height: 0;
  background: linear-gradient(to bottom, var(--brass), transparent);
  transition: height 2.2s cubic-bezier(.7,0,.3,1);
}
.manifesto-inner.in .manifesto-quote::before { height: 80%; }

@media (max-width: 900px) {
  .manifesto-quote::before { display: none; }
}
