/* ============================================================
   Lumière Web — two-tone system
   Off-white / off-black ONLY. Tints of each for depth.
   ============================================================ */

:root {
  --paper: #f1ede4;
  --paper-dim: #e6e1d5;
  --ink: #161513;
  --ink-soft: #232220;
  --line: rgba(22, 21, 19, 0.16);
  --line-inv: rgba(241, 237, 228, 0.18);
  --serif: 'Bodoni Moda', serif;
  --sans: 'Work Sans', sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 350;
  /* clip, not hidden: hidden makes body a scroll container and breaks position: sticky */
  overflow-x: hidden;
  overflow-x: clip;
}

html { scroll-behavior: smooth; }

/* hide the scrollbar, keep scrolling */
html { scrollbar-width: none; -ms-overflow-style: none; }
::-webkit-scrollbar { display: none; }

::selection { background: var(--ink); color: var(--paper); }

h1, h2, h3, .serif {
  font-family: var(--serif);
  font-weight: 700;
  margin: 0;
  line-height: 0.95;
  letter-spacing: -0.01em;
}

a { color: inherit; text-decoration: none; }
p { line-height: 1.65; margin: 0 0 1.2em; }

/* Custom cursor — inverts over everything it passes */
.cursor {
  position: fixed;
  top: 0; left: 0;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: #fff;
  mix-blend-mode: difference;
  pointer-events: none;
  z-index: 10000;
  transform: translate(-50%, -50%);
  will-change: transform;
}
@media (pointer: fine) {
  html, body, a, button, iframe { cursor: none; }
}
@media (hover: none), (pointer: coarse) {
  .cursor { display: none; }
}

/* Loader */
#loader {
  position: fixed;
  inset: 0;
  background: var(--ink);
  color: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: clamp(18px, 2.4vw, 26px);
  font-style: italic;
  z-index: 9999;
  text-align: center;
  padding: 0 20px;
  transition: opacity 0.6s ease;
}

#content { opacity: 0; transition: opacity 0.8s ease; }

/* ============================== NAV ============================== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px clamp(20px, 4vw, 56px);
  z-index: 100;
  mix-blend-mode: difference;
  color: #f1ede4; /* difference-inverts against anything below */
}
.nav a { color: #f1ede4; }
.nav .wordmark {
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: 0.02em;
}
.nav-links {
  display: flex;
  gap: clamp(16px, 2.5vw, 36px);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}
.nav-links a { position: relative; padding: 4px 0; }
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }

/* ============================== HERO ============================== */
/* Hero pins in place; everything after scrolls up over it */
.hero { position: sticky; top: 0; height: 100vh; z-index: 0; }
main > :not(.hero) { position: relative; z-index: 1; }
.hero iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}
.wm-cover {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 175px;
  height: 175px;
  background: #000;
}
.hero-cue {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #f1ede4;
  mix-blend-mode: difference;
  pointer-events: none;
}

/* ============================== SECTION SHELL ============================== */
section { position: relative; }
.pad { padding: clamp(90px, 12vw, 160px) clamp(20px, 5vw, 72px); }

.display {
  font-size: clamp(42px, 7vw, 108px);
}
.display .word {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
}
.display .word > span {
  display: inline-block;
  will-change: transform;
}

/* Sections with a photographic background: grayscale image + dark overlay,
   content layered above; .bg gets mouse parallax in site.js */
.has-bg { overflow: hidden; }
.has-bg .bg {
  position: absolute;
  inset: -6%;
  background-size: cover;
  background-position: center;
  filter: grayscale(1);
  z-index: 0;
  will-change: transform;
}
.has-bg .bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(22, 21, 19, 0.82);
}
.has-bg > :not(.bg) { z-index: 1; }
.has-bg > :not(.bg, .ghost) { position: relative; }

/* Big ghost text used for parallax depth */
.ghost {
  position: absolute;
  font-family: var(--serif);
  font-size: clamp(120px, 22vw, 340px);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px var(--line);
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
  z-index: 0;
}
.inverted .ghost { -webkit-text-stroke-color: var(--line-inv); }

/* Inverted (off-black) sections */
.inverted {
  background: var(--ink);
  color: var(--paper);
}
.inverted ::selection { background: var(--paper); color: var(--ink); }

/* ============================== MANIFESTO ============================== */
.manifesto {
  background: var(--paper);
  box-shadow: 0 -30px 80px rgba(22, 21, 19, 0.35);
}
/* "depth" ghost sits behind the heading; heading floats above it */
.manifesto .display,
.manifesto .manifesto-body,
.manifesto .no3d {
  position: relative;
  z-index: 1;
}
.depth-ghost { -webkit-text-stroke-width: 1.5px; }
.manifesto-body {
  max-width: 620px;
  margin-top: 48px;
  font-size: clamp(16px, 1.4vw, 19px);
}

/* The no-3D credibility card */
.no3d {
  position: relative;
  max-width: 560px;
  margin: 72px 0 0 auto;
  padding: 40px 44px 44px;
  background: var(--ink);
  color: var(--paper);
  font-size: clamp(16px, 1.4vw, 19px);
}
.no3d strong {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.35em;
  display: block;
  margin-bottom: 12px;
  line-height: 1.15;
}

/* ============================== MARQUEE ============================== */
.marquee {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
  background: var(--paper);
  white-space: nowrap;
}
.marquee-track {
  display: inline-flex;
  gap: 48px;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(20px, 2.4vw, 34px);
  will-change: transform;
}
.marquee-track span { flex: none; }

/* ============================== WORK ============================== */
.work { z-index: 2; }
.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin: 64px 0 0;
  position: relative;
  z-index: 1;
}
.work-card {
  /* subgrid: heading / meta / body / link rows align across all cards */
  display: grid;
  grid-template-rows: subgrid;
  grid-row: span 4;
  align-content: start;
  position: relative;
  background: var(--paper);
  color: var(--ink);
  padding: 40px 36px 44px;
  transition: background 0.3s ease;
}
.work-card:hover { background: var(--paper-dim); }
.work-card h3 {
  font-size: clamp(30px, 3.4vw, 52px);
  margin-bottom: 14px;
}
.work-card .meta {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  opacity: 0.55;
  margin-bottom: 26px;
}
.work-card p { max-width: 42ch; font-size: 15px; }
.work-card .go {
  justify-self: start;
  align-self: end;
  margin-top: 26px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  border-bottom: 1px solid currentColor;
  padding-bottom: 3px;
}
/* .jagged elements get a sawtooth clip-path generated in site.js */

/* ============================== TEAM (sticky under process) ============================== */
.stack { position: relative; }
.team {
  position: sticky;
  top: 0;
  background: var(--paper);
}
.team.pad { padding-top: clamp(70px, 8vw, 110px); padding-bottom: clamp(70px, 8vw, 110px); }
.team-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 64px);
  margin-top: 48px;
  align-items: center;
}
.person {
  position: relative;
  padding: 36px 34px 42px;
  background: var(--ink);
  color: var(--paper);
}
.person .role { opacity: 0.65; }
.person h3 { font-size: clamp(28px, 3vw, 44px); margin-bottom: 6px; }
.person .role {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  opacity: 0.55;
  margin-bottom: 22px;
}
.person p { font-size: 15px; }

/* Process scrolls up OVER the pinned team section */
.process {
  position: relative;
  z-index: 3;
  box-shadow: 0 -30px 80px rgba(22, 21, 19, 0.35);
}
.steps { margin-top: 64px; }
.step {
  display: grid;
  grid-template-columns: 90px 1fr 1fr;
  gap: clamp(16px, 3vw, 48px);
  padding: 38px 0;
  border-top: 1px solid var(--line-inv);
  align-items: baseline;
}
.step .num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 30px;
  opacity: 0.5;
}
.step h3 { font-size: clamp(24px, 2.6vw, 40px); }
.step p { font-size: 15px; opacity: 0.85; margin: 0; }

.pricing {
  margin-top: 90px;
  max-width: 720px;
}
.pricing h3 { font-size: clamp(30px, 3.6vw, 56px); margin-bottom: 24px; }
.pricing p { font-size: clamp(16px, 1.4vw, 19px); }

/* ============================== BOOKING ============================== */
.booking { background: var(--paper); z-index: 4; }
.booking .display { max-width: 14ch; }
.calendly-wrap {
  margin-top: 48px;
  border: 1px solid var(--line);
  background: var(--paper);
}
.calendly-inline-widget { min-width: 320px; height: 760px; }

/* ============================== FOOTER ============================== */
.footer {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(80px, 10vw, 140px) clamp(20px, 5vw, 72px) 40px;
  position: relative;
  z-index: 4;
}
.footer .big {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(56px, 11vw, 180px);
  line-height: 0.9;
  margin-bottom: 64px;
}
.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line-inv);
  padding-top: 28px;
  font-size: 13px;
}
.footer-row a { border-bottom: 1px solid var(--line-inv); padding-bottom: 2px; }

/* ============================== MOBILE ============================== */
@media (max-width: 760px) {
  .nav-links { display: none; }
  .nav .book-link { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: 0.14em; border-bottom: 1px solid currentColor; }
  .work-grid { grid-template-columns: 1fr; }
  .work-card { grid-row: auto; grid-template-rows: auto; }
  .team-grid { grid-template-columns: 1fr; }
  .step { grid-template-columns: 56px 1fr; }
  .step p { grid-column: 2; }
  .no3d { margin-left: 0; padding: 32px 28px 36px; }
  .calendly-inline-widget { height: 900px; }
  .ghost { display: none; }
}
@media (min-width: 761px) {
  .nav .book-link { display: none; }
}
