*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #f4f4f2;
  --text: #111;
  --muted: #888;
  --border: #ddddd9;
}

html { font-size: 16px; }
body {
  font-family: 'Gotham', 'Figtree', sans-serif;
  background: var(--bg);
  color: var(--text);
  font-weight: 300;
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* ─── LOADER ─── */
#loader {
  position: fixed; inset: 0; background: #111;
  z-index: 99000;
  display: grid; grid-template-columns: 1fr 1fr;
  padding: 0;
  transition: opacity .6s ease;
}
#loader.fade-out { opacity: 0; pointer-events: none; }

.loader-title {
  font-family: 'Gotham', 'Figtree', sans-serif;
  font-size: 50px; font-weight: 700; letter-spacing: .04em;
  color: rgba(255,255,255,.9);
  line-height: 1.3; text-align: left;
  display: flex; align-items: center; justify-content: center;
  padding: 44px;
}

/* word-by-word reveal */
.loader-title .lw {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  margin-right: .28em;
}
.loader-title .lw span {
  display: inline-block;
  transform: translateY(115%);
  transition: transform .65s cubic-bezier(.16,1,.3,1);
}
.loader-title .lw.in span { transform: translateY(0); }

.loader-count {
  font-family: 'Figtree', sans-serif;
  font-size: 50px; font-weight: 300; letter-spacing: .04em;
  color: rgba(255,255,255,.9);
  font-variant-numeric: tabular-nums;
  display: flex; align-items: center; justify-content: center;
}

/* ─── CURSOR (morph only on home thumb) ─── */
#c-ring {
  position: fixed; width: 0; height: 0;
  border: none; border-radius: 50%;
  pointer-events: none; z-index: 99998;
  transform: translate(-50%,-50%);
  display: flex; align-items: center; justify-content: center;
  transition: width .2s ease, height .2s ease, background .2s ease, border .2s ease;
  overflow: hidden;
}
#c-ring.morph {
  width: 54px; height: 54px;
  background: #111; border: 1px solid #111;
}
#c-arr {
  opacity: 0; color: #fff; font-size: 15px;
  margin-left: 2px; transition: opacity .18s; pointer-events: none;
}
#c-ring.morph #c-arr { opacity: 1; }

/* cursor pointer on home thumb */
.thumb-wrap { cursor: pointer; }
#veil {
  position: fixed; inset: 0; background: #fff;
  z-index: 9000; pointer-events: none;
  opacity: 0; transition: opacity .35s ease;
}
#veil.show { opacity: 1; pointer-events: all; }

/* ─── NAV ─── */
header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 28px 44px;
  flex-shrink: 0;
  position: relative; z-index: 200;
}
.logo {
  font-size: 18px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; text-decoration: none; color: var(--text);
  position: relative;
}
.logo::after {
  content: ''; position: absolute; bottom: -2px; left: 0;
  width: 100%; height: 1px; background: var(--text);
  transform: scaleX(0); transform-origin: left;
  transition: transform .35s cubic-bezier(.76,0,.24,1);
}
.logo:hover::after { transform: scaleX(1); }

.nav-links { display: flex; gap: 36px; list-style: none; }
.stroke-link {
  position: relative; text-decoration: none; color: var(--text);
  font-size: 16px; font-weight: 400; letter-spacing: .12em; text-transform: uppercase;
}
.stroke-link::after {
  content: '';
  position: absolute; bottom: -2px; left: 0;
  width: 100%; height: 1px; background: var(--text);
  transform: scaleX(0); transform-origin: left;
  transition: transform .35s cubic-bezier(.76,0,.24,1);
}
.stroke-link:hover::after, .stroke-link.active::after { transform: scaleX(1); }

/* ─── PAGE SYSTEM ─── */
.page {
  display: none; flex: 1; min-height: 0;
  flex-direction: column; overflow: hidden;
}
.page.active { display: flex; }

/* ══════════════════════════
   HOME
══════════════════════════ */
#p-home { align-items: center; justify-content: center; position: relative; }
.home-side {
  position: absolute; top: 50%; transform: translateY(-50%);
  font-size: 16px; font-weight: 400; letter-spacing: .12em; text-transform: uppercase;
}
.home-side.left  { left: 44px; }
.home-side.right { right: 44px; }

.thumb-wrap {
  width: 520px; height: 292px;
  overflow: hidden; position: relative; background: #c8c8c6;
}
.thumb-wrap img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .6s ease;
}
.thumb-wrap:hover img { transform: scale(1.035); }

/* ══════════════════════════
   WORK — lemoncholy hover
══════════════════════════ */
#p-work { overflow-y: auto; scrollbar-width: none; }
#p-work::-webkit-scrollbar { display: none; }
#p-about { overflow-y: auto; scrollbar-width: none; }
#p-about::-webkit-scrollbar { display: none; }
.work-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 0; padding: 8px 44px 60px;
}
.w-card {
  position: relative; overflow: hidden;
  aspect-ratio: 16/9; background: #c5c5c3;
  cursor: pointer;
}
.w-card img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .55s ease;
}

/* white overlay */
.w-card::before {
  content: '';
  position: absolute; inset: 0; z-index: 1;
  background: rgba(244,244,242,.78);
  opacity: 0;
  transition: opacity .35s ease;
}
.w-card:hover::before { opacity: 1; }

/* centered title on hover */
.w-card-center {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center; gap: 8px;
  opacity: 0; transform: translateY(6px);
  transition: opacity .3s ease, transform .3s ease;
}
.w-card:hover .w-card-center { opacity: 1; transform: translateY(0); }
.w-card-center-title {
  font-size: 15px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--text);
}
.w-card-center-cat {
  font-size: 12px; font-weight: 300; letter-spacing: .06em;
  color: var(--muted);
}

/* ══════════════════════════
   PROJECT
══════════════════════════ */
#p-project { overflow-y: auto; scrollbar-width: none; }
#p-project::-webkit-scrollbar { display: none; }
.proj-wrap { padding: 16px 44px 80px; max-width: 1080px; margin: 0 auto; width: 100%; }
.proj-meta { display: flex; gap: 14px; align-items: center; margin-bottom: 20px; }
.proj-tag { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 400; }
.proj-title { font-size: 36px; font-weight: 700; letter-spacing: -.01em; margin-bottom: 28px; line-height: 1.1; }

/* ── Custom video player ── */
.proj-video {
  width: 100%; aspect-ratio: 16/9;
  background: #000; margin-bottom: 48px;
  position: relative; overflow: hidden;
  cursor: pointer;
}
.proj-video iframe {
  width: 100%; height: 100%; border: none; display: block;
  pointer-events: none; background:#000;
}

/* overlay to intercept clicks */
.vid-overlay {
  position: absolute; inset: 0; z-index: 10;
}

/* controls bar — hidden by default, shown on hover */
.vid-controls {
  position: absolute; bottom: 0; left: 0; right: 0;
  display: flex; flex-direction: row;
  align-items: center;
  padding: 0 14px 12px;
  z-index: 20;
  opacity: 0;
  transition: opacity .25s ease;
  pointer-events: none;
  gap: 12px;
}
.proj-video:hover .vid-controls { opacity: 1; pointer-events: all; }

/* timeline — takes all remaining space */
.vid-timeline {
  flex: 1; height: 3px;
  background: rgba(255,255,255,.5);
  border-radius: 2px; cursor: grab; position: relative;
  touch-action: none;
  user-select: none;
}
.vid-timeline::before {
  content: '';
  position: absolute;
  top: -16px; bottom: -16px;
  left: 0; right: 0;
}
.vid-timeline:active { cursor: grabbing; }
.vid-progress {
  height: 100%; background: #fff; border-radius: 2px;
  width: 0%; pointer-events: none;
  transition: width .25s linear;
}

/* buttons group — mute then fullscreen, right side */
.vid-btns {
  display: flex; align-items: center; gap: 8px; flex-shrink: 0;
}

/* fullscreen btn */
.vid-btn-fs {
  background: none; border: none; outline: none; cursor: pointer;
  padding: 2px; display: flex; align-items: center;
  opacity: 1; box-shadow: none;
}
.vid-btn-fs svg { width: 16px; height: 16px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* mute btn */
.vid-btn-mute {
  background: none; border: none; outline: none; cursor: pointer;
  padding: 2px; display: flex; align-items: center;
  opacity: 1; box-shadow: none;
}
.vid-btn-mute svg { width: 16px; height: 16px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* play button — centered, visible when paused */
.vid-play-btn {
  position: absolute; inset: 0; z-index: 15;
  display: flex; align-items: center; justify-content: center;
  pointer-events: none;
  opacity: 1;
  transition: opacity .2s ease;
}
.vid-play-btn.hidden { opacity: 0; }
.vid-play-btn svg {
  width: 72px; height: 72px;
  fill: #fff;
  transition: transform .18s ease;
}
/* rounded corners on the play triangle */
.vid-play-btn svg polygon { stroke: #fff; stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }
.proj-video:hover .vid-play-btn:not(.hidden) svg { transform: scale(1.08); }

.proj-desc { font-size: 15px; font-weight: 300; line-height: 1.85; color: var(--muted); max-width: 600px; white-space: pre-line; margin-bottom: 52px; }
#p-home .proj-video { margin-bottom: 22px; }
#p-home .proj-desc { margin-bottom: 0; }

.home-dl-links { display: flex; justify-content: flex-start; align-items: baseline; gap: 48px; width: 600px; max-width: 100%; margin-top: 10px; margin-bottom: 52px; }
.home-dl {
  font-size: 15px; font-weight: 400; letter-spacing: .04em;
  color: var(--text); text-decoration: none; position: relative; width: fit-content;
}
.home-dl::after {
  content: ''; position: absolute; bottom: -2px; left: 0;
  width: 100%; height: 1px; background: var(--text);
  transform: scaleX(0); transform-origin: left;
  transition: transform .32s cubic-bezier(.76,0,.24,1);
}
.home-dl:hover::after { transform: scaleX(1); }
.stills-lbl { font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; font-weight: 400; }
.stills-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 3px; }
.still { aspect-ratio: 16/9; overflow: hidden; background: #ccc; }
.still img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ══════════════════════════
   ABOUT
══════════════════════════ */

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  min-height: 100%;
  align-items: start;
}

/* LEFT + MIDDLE col span — bio block */
.about-left {
  grid-column: 1 / 3;
  display: flex; flex-direction: column;
  align-items: flex-start; justify-content: center;
  gap: 32px;
  padding: 0 60px 0 160px;
  min-height: 100%;
}
#p-about .about-grid { height: 100%; }

/* RIGHT col — connect, in the 3rd column */
.about-right {
  grid-column: 3 / 4;
  display: flex; flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 52px 44px 0 40px;
}
.about-right .col-head {
  font-size: 10px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--muted); font-weight: 400; margin-bottom: 6px;
}
.about-right-links { display: flex; flex-direction: column; gap: 4px; }
.about-right-links a {
  font-size: 40px; font-weight: 400; letter-spacing: -.02em; line-height: 1.2;
  color: var(--text); text-decoration: none; width: fit-content; position: relative;
}
.about-right-links a::after {
  content: ''; position: absolute; bottom: -1px; left: 0;
  width: 100%; height: 1.5px; background: var(--text);
  transform: scaleX(0); transform-origin: left;
  transition: transform .32s cubic-bezier(.76,0,.24,1);
}
.about-right-links a:hover::after { transform: scaleX(1); }

.about-bio {
  font-size: 15px; line-height: 1.85; font-weight: 300; color: #222;
  width: 100%;
  max-width: 580px;
  text-align: justify;
  hyphens: auto;
}

.reveal-word { display: inline; }
.reveal-word span { display: inline; }

.reel-link {
  font-size: 40px; font-weight: 400; letter-spacing: -.02em;
  color: var(--text); text-decoration: none; line-height: 1;
  display: inline-flex; align-items: center; gap: 10px;
  width: fit-content; position: relative;
}
.reel-link::after {
  content: ''; position: absolute; bottom: 0; left: 0;
  width: 100%; height: 1.5px; background: var(--text);
  transform: scaleX(0); transform-origin: left;
  transition: transform .4s cubic-bezier(.76,0,.24,1);
}
.reel-link:hover::after { transform: scaleX(1); }

/* contacts width = auto, limited by the reel-link text width naturally */
.about-contacts {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px 40px;
  width: fit-content;
  max-width: 385px;
}
.ctc h4 {
  font-size: 10px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 8px; font-weight: 400;
}
.ctc a {
  font-size: 15px; font-weight: 300; color: var(--text);
  text-decoration: none; display: inline-flex; align-items: center; gap: 4px;
  width: fit-content; position: relative;
}
.ctc a::after {
  content: ''; position: absolute; bottom: -1px; left: 0;
  width: 100%; height: 1px; background: var(--text);
  transform: scaleX(0); transform-origin: left;
  transition: transform .32s cubic-bezier(.76,0,.24,1);
}
.ctc a:hover::after { transform: scaleX(1); }


/* ─── FOOTER ─── */
footer {
  display: flex;
  justify-content: space-between; align-items: center;
  padding: 18px 44px;
  flex-shrink: 0; z-index: 200; position: relative;
  border-top: 1px solid var(--border);
  /* smooth slide-in from bottom instead of display:none flicker */
  transform: translateY(100%);
  opacity: 0;
  transition: transform .35s cubic-bezier(.16,1,.3,1), opacity .35s ease;
  pointer-events: none;
}
footer.visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: all;
}
/* white variant (work + project) */
footer.ft-white {
  background: var(--bg);
}
/* black variant (about) */
footer.ft-black {
  background: #111;
  border-top: none;
}
footer.ft-black .ft-l { color: #fff; }
footer.ft-black .ft-l::after { background: #fff; }
footer.ft-black .ft-c a { color: #fff; }
footer.ft-black .ft-c a::after { background: #fff; }
footer.ft-black .ft-r { color: rgba(255,255,255,.45); }

.ft-l {
  font-size: 13px; font-weight: 400; letter-spacing: .1em;
  text-transform: uppercase; color: var(--text);
  text-decoration: none; position: relative; cursor: pointer;
}
.ft-l::after {
  content: ''; position: absolute; bottom: -2px; left: 0;
  width: 100%; height: 1px; background: var(--text);
  transform: scaleX(0); transform-origin: left;
  transition: transform .32s cubic-bezier(.76,0,.24,1);
}
.ft-l:hover::after { transform: scaleX(1); }

.ft-c {
  position: absolute; left: 50%; transform: translateX(-50%);
  display: flex; gap: 28px;
}
.ft-c a {
  font-size: 13px; color: var(--text); text-decoration: none;
  font-weight: 400; letter-spacing: .1em; text-transform: uppercase;
  position: relative;
}
.ft-c a::after {
  content: ''; position: absolute; bottom: -2px; left: 0;
  width: 100%; height: 1px; background: var(--text);
  transform: scaleX(0); transform-origin: left;
  transition: transform .32s cubic-bezier(.76,0,.24,1);
}
.ft-c a:hover::after { transform: scaleX(1); }
.ft-r { font-size: 12px; color: var(--muted); font-weight: 300; white-space: nowrap; }

/* ─── BARBARA / PROJECT NAV FIX ─── */
.logo { font-family: "Gotham Bold", "Gotham", Arial, sans-serif; font-weight: 700; text-transform: uppercase; letter-spacing: .02em; }
.proj-title-row { display:flex; align-items:flex-start; justify-content:space-between; gap:28px; margin-bottom:28px; }
.proj-title-row .proj-title { margin-bottom:0; }
.project-dossier { flex-shrink:0; margin-top:5px; color:var(--text); }
.project-dossier::after { background:var(--text); }
.scroll-hint { position:absolute; right:14px; bottom:12px; z-index:12; color:#fff; font-size:9px; font-weight:300; letter-spacing:.10em; text-transform:uppercase; display:flex; flex-direction:column; align-items:flex-end; gap:2px; cursor:pointer; text-shadow:0 1px 4px rgba(0,0,0,.35); }
.scroll-hint .arrow { font-size:15px; line-height:1; }
.video-placeholder { position:absolute; inset:0; display:flex; align-items:center; justify-content:center; color:#fff; font-size:11px; letter-spacing:.14em; text-transform:uppercase; }
.proj-stills { display:grid; grid-template-columns:repeat(3,1fr); gap:3px; margin-top:28px; margin-bottom:52px; }
.proj-stills img { width:100%; aspect-ratio:16/9; object-fit:cover; display:block; }
@media (max-width:700px) { .proj-title-row { flex-direction:column; gap:10px; } .project-dossier { margin-top:0; } .proj-stills { grid-template-columns:1fr; } }
.home-dl, .project-dossier { color: var(--text); } .home-dl::after, .project-dossier::after { background: var(--text); }

/* ─── PROJECT INFO BELOW VIDEO ─── */
.proj-under-video {
  display:flex; justify-content:space-between; align-items:flex-start;
  gap:28px; margin-top:-28px; margin-bottom:90px;
}
.proj-under-video .proj-meta { margin-bottom:0; }
.proj-desc .desc-lead { font-weight:700; }
.scroll-hint {
  position:static; margin:0; padding:0; border:0; background:none;
  color:var(--text); font-family:inherit; font-size:9px; font-weight:300;
  letter-spacing:.10em; text-transform:uppercase; display:flex; flex-direction:column;
  align-items:flex-end; gap:2px; cursor:pointer; text-shadow:none; flex-shrink:0;
}
.scroll-hint .arrow { font-size:15px; line-height:1; }
.scroll-hint:hover { opacity:.6; }
.still { cursor:zoom-in; }
.still-lightbox {
  position:fixed; inset:0; z-index:100000; background:rgba(17,17,17,.94);
  display:flex; align-items:center; justify-content:center; padding:40px;
  opacity:0; pointer-events:none; transition:opacity .25s ease;
}
.still-lightbox.open { opacity:1; pointer-events:auto; }
.still-lightbox img { max-width:92vw; max-height:88vh; width:auto; height:auto; object-fit:contain; display:block; }
.still-lightbox-close {
  position:absolute; top:24px; right:32px; border:0; background:none; color:#fff;
  font:300 36px/1 'Figtree',sans-serif; cursor:pointer; padding:4px 8px;
}
@media (max-width:700px) {
  .proj-under-video { align-items:flex-start; }
  .proj-tag { font-size:9px; }
}

/* ─── HOME / BARBARA BRICE ─── */
#p-home .proj-wrap {
  margin-left: auto;
  margin-right: auto;
}
#p-home .proj-video {
  margin-left: auto;
  margin-right: auto;
}
