/* ─── DESIGN TOKENS — Pellicule (chaud, organique) ──────────── */
:root {
  --bg:       #F4EFE6;
  --bg-nav:   #ECE7DC;
  --bg-slide: #1A1714;
  --text:     #1C1814;
  --muted:    #8C7B6B;
  --accent:   #A0683A;
  --border:   rgba(28, 24, 20, 0.1);
  --border-l: rgba(28, 24, 20, 0.06);
  --ff-d:     'Cormorant Garamond', Georgia, serif;
  --ff-b:     'Space Grotesk', system-ui, sans-serif;
  --nav-h:    58px;
  --ease:     cubic-bezier(0.16, 1, 0.3, 1);
  --px:       clamp(24px, 5vw, 72px);
}

/* ─── RESET ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--ff-b);
  font-weight: 300;
  font-size: 15px;
  line-height: 1.65;
  overflow-x: hidden;
  cursor: none;
}

img    { display: block; max-width: 100%; }
a      { color: inherit; text-decoration: none; }
button { background: none; border: none; color: inherit; font: inherit; cursor: none; }
ul     { list-style: none; }

/* ─── CURSOR ─────────────────────────────────────────────────── */
.cursor {
  position: fixed; top: 0; left: 0;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  pointer-events: none; z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width .3s var(--ease), height .3s var(--ease),
              background .25s, border .25s;
  will-change: left, top;
}
.cursor.hover {
  width: 36px; height: 36px;
  background: transparent;
  border: 1.5px solid var(--accent);
}
.cursor.press { transform: translate(-50%, -50%) scale(.7); }

/* ─── NAV ────────────────────────────────────────────────────── */
nav {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: var(--bg-nav);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--px);
  z-index: 200;
}

.nav-logo {
  font-family: var(--ff-d); font-weight: 300;
  font-size: 13px; letter-spacing: .28em;
  text-transform: uppercase; color: var(--text);
  transition: color .3s;
}
.nav-logo:hover { color: var(--accent); }

.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a {
  font-size: 11px; font-weight: 400; letter-spacing: .18em;
  text-transform: uppercase; color: var(--muted);
  transition: color .3s; position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -3px; left: 0;
  width: 0; height: 1px; background: var(--accent);
  transition: width .35s var(--ease);
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

.nav-burger {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; cursor: pointer; padding: 10px;
  touch-action: manipulation; -webkit-tap-highlight-color: transparent;
}
.nav-burger span {
  display: block; height: 2px; width: 100%; background: var(--text);
  transition: transform .35s var(--ease), opacity .25s;
}
.nav-burger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.nav-mobile {
  display: none;
  position: fixed;
  top: var(--nav-h); left: 0; right: 0; bottom: 0;
  width: 100%; height: calc(100% - var(--nav-h));
  background: var(--bg-nav);
  flex-direction: column; align-items: center; justify-content: center;
  gap: 32px; z-index: 190; overflow: hidden;
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  font-family: var(--ff-d); font-size: clamp(24px, 8vw, 40px);
  font-weight: 300; font-style: italic; color: var(--muted);
  transition: color .3s;
}
.nav-mobile a:hover { color: var(--text); }

/* ─── PAGE SHELL ─────────────────────────────────────────────── */
#app {
  padding-top: var(--nav-h); min-height: 100vh;
  opacity: 1; transition: opacity .22s ease;
}
#app.out { opacity: 0; pointer-events: none; }

/* ─── HOME ───────────────────────────────────────────────────── */
.home-wrap {
  padding: clamp(32px, 4vw, 56px) var(--px) clamp(48px, 6vw, 80px);
}

/* Headline above grid */
.home-headline {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: clamp(24px, 3vw, 40px);
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.home-headline-title {
  font-family: var(--ff-d); font-size: clamp(11px, 1.2vw, 14px);
  font-weight: 300; letter-spacing: .3em; text-transform: uppercase;
  color: var(--muted);
}
.home-headline-count {
  font-size: 11px; letter-spacing: .15em; color: var(--muted);
}

/* Grid */
.home-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 2.5vw, 32px);
}

/* Card */
.g-card {
  display: flex; flex-direction: column;
  cursor: none;
  transition: transform .45s var(--ease);
}
.g-card:hover { transform: translateY(-5px); }

.g-card-img {
  aspect-ratio: 3 / 2;
  overflow: hidden;
  margin-bottom: 14px;
  background: var(--border-l);
}
.g-card-img img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform .7s var(--ease);
}
.g-card:hover .g-card-img img { transform: scale(1.05); }

.g-card-body { padding: 0 2px; }

.g-card-series {
  font-size: 9.5px; letter-spacing: .22em;
  text-transform: uppercase; color: var(--accent);
  margin-bottom: 5px;
}
.g-card-title {
  font-family: var(--ff-d); font-weight: 400; font-style: italic;
  font-size: clamp(16px, 1.6vw, 22px); line-height: 1.2;
  color: var(--text); display: flex; align-items: center; gap: 8px;
}
.g-card-arrow {
  display: inline-block; font-style: normal;
  color: var(--accent); font-size: 14px;
  opacity: 0; transform: translateX(-6px);
  transition: opacity .35s, transform .35s var(--ease);
}
.g-card:hover .g-card-arrow { opacity: 1; transform: translateX(0); }

/* Entrance */
@keyframes cardIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.g-card { animation: cardIn .65s var(--ease) both; }
.g-card:nth-child(1)  { animation-delay: .00s; }
.g-card:nth-child(2)  { animation-delay: .06s; }
.g-card:nth-child(3)  { animation-delay: .10s; }
.g-card:nth-child(4)  { animation-delay: .14s; }
.g-card:nth-child(5)  { animation-delay: .18s; }
.g-card:nth-child(6)  { animation-delay: .22s; }
.g-card:nth-child(7)  { animation-delay: .26s; }
.g-card:nth-child(8)  { animation-delay: .29s; }
.g-card:nth-child(9)  { animation-delay: .32s; }
.g-card:nth-child(10) { animation-delay: .35s; }
.g-card:nth-child(11) { animation-delay: .38s; }

/* ─── PROJECT — SLIDESHOW ────────────────────────────────────── */

/* Compact top bar inside project */
.proj-topbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  padding: 0 var(--px);
  height: 50px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-nav);
}
.proj-topbar-back {
  font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--muted); display: flex; align-items: center; gap: 8px;
  transition: color .3s; flex-shrink: 0;
}
.proj-topbar-back:hover { color: var(--text); }

.proj-topbar-center {
  flex: 1; text-align: center; overflow: hidden;
}
.proj-topbar-series {
  font-size: 9.5px; letter-spacing: .22em;
  text-transform: uppercase; color: var(--accent);
}
.proj-topbar-title {
  font-family: var(--ff-d); font-size: clamp(14px, 1.3vw, 17px);
  font-style: italic; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.proj-topbar-count {
  font-size: 11px; letter-spacing: .12em; color: var(--muted);
  flex-shrink: 0; text-align: right; min-width: 52px;
}

/* Slideshow container — fills viewport below nav + topbar */
.slideshow {
  display: flex; align-items: stretch;
  height: calc(100vh - var(--nav-h) - 50px);
  background: var(--bg-slide);
  user-select: none;
}

.slide-arrow {
  width: clamp(44px, 6vw, 72px);
  display: flex; align-items: center; justify-content: center;
  color: rgba(232, 228, 220, 0.3);
  font-size: 18px; flex-shrink: 0;
  transition: color .3s, background .3s;
  cursor: none;
}
.slide-arrow:hover {
  color: rgba(232, 228, 220, 0.85);
  background: rgba(255,255,255,.04);
}

.slide-area {
  flex: 1; display: flex; align-items: center; justify-content: center;
  padding: 24px 0; overflow: hidden;
}

.slide-img {
  max-width: 100%; max-height: 100%;
  width: auto; height: auto;
  object-fit: contain; display: block;
  transition: opacity .22s ease;
}
.slide-img.changing { opacity: 0; }

/* Slide info panel */
.slide-panel {
  width: 240px;
  flex-shrink: 0;
  border-left: 1px solid rgba(232,228,220,0.07);
  padding: 32px 24px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0;
  scrollbar-width: none;
}
.slide-panel::-webkit-scrollbar { display: none; }

.slide-panel-series {
  font-size: 9px; letter-spacing: .24em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 8px;
}
.slide-panel-title {
  font-family: var(--ff-d); font-size: clamp(16px, 1.4vw, 20px);
  font-weight: 300; font-style: italic; line-height: 1.2;
  color: rgba(232,228,220,0.9); margin-bottom: 20px;
}
.slide-panel-rule {
  width: 24px; height: 1px; background: var(--accent); margin-bottom: 20px;
}

.slide-panel-meta { display: flex; flex-direction: column; margin-bottom: 20px; }
.slide-panel-item {
  border-top: 1px solid rgba(232,228,220,0.07);
  padding: 10px 0;
}
.slide-panel-item:last-child { border-bottom: 1px solid rgba(232,228,220,0.07); }
.slide-panel-item dt {
  font-size: 8.5px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 3px;
}
.slide-panel-item dd {
  font-size: 12px; color: rgba(232,228,220,0.7); line-height: 1.5;
}

.slide-panel-desc {
  font-size: 12px; line-height: 1.8; color: rgba(232,228,220,0.5);
  margin-top: 12px;
}
.slide-panel-desc--en { font-style: italic; }

/* Dot indicators */
.slide-dots {
  display: flex; justify-content: center; align-items: center;
  gap: 6px; padding: 10px var(--px);
  background: var(--bg-slide);
}
.slide-dot {
  width: 4px; height: 4px; border-radius: 50%;
  background: rgba(232,228,220,.2);
  transition: background .3s, transform .3s;
  flex-shrink: 0;
}
.slide-dot.active {
  background: var(--accent);
  transform: scale(1.4);
}

/* Project info (below the fold) */
.proj-info {
  display: flex; gap: clamp(32px, 6vw, 80px);
  padding: clamp(44px, 6vh, 72px) var(--px);
  border-bottom: 1px solid var(--border);
}
.proj-info-left { flex: 1; }
.proj-info-right { width: 220px; flex-shrink: 0; padding-top: 4px; }

.proj-series {
  font-size: 10px; letter-spacing: .25em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 12px;
}
.proj-title {
  font-family: var(--ff-d); font-size: clamp(34px, 4.5vw, 62px);
  font-weight: 300; font-style: italic; line-height: 1.05;
  color: var(--text); margin-bottom: 24px;
}
.proj-rule { width: 32px; height: 1px; background: var(--accent); margin-bottom: 20px; }
.proj-desc {
  font-size: 14px; line-height: 1.8; color: var(--muted); max-width: 480px;
}
.proj-desc + .proj-desc { margin-top: 12px; font-style: italic; }

.proj-meta { display: flex; flex-direction: column; }
.proj-meta-item { border-top: 1px solid var(--border); padding: 12px 0; }
.proj-meta-item:last-child { border-bottom: 1px solid var(--border); }
.proj-meta-label {
  font-size: 9.5px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 4px;
}
.proj-meta-value { font-size: 13px; color: var(--text); }

/* Project prev/next navigation */
.proj-nav {
  display: flex; justify-content: space-between; align-items: center;
  padding: 44px var(--px);
}
.proj-nav-btn {
  display: flex; align-items: center; gap: 10px;
  font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--muted); transition: color .3s;
}
.proj-nav-btn:hover { color: var(--text); }
.proj-nav-btn span {
  font-family: var(--ff-d); font-size: 14px; font-style: italic;
  letter-spacing: .04em; text-transform: none;
}
.proj-nav-home {
  font-size: 10px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--muted); transition: color .3s;
}
.proj-nav-home:hover { color: var(--text); }

/* ─── BIO ────────────────────────────────────────────────────── */
.bio-wrap {
  max-width: 700px; margin: 0 auto;
  padding: clamp(56px, 10vh, 112px) var(--px) 80px;
}
.bio-headline {
  font-family: var(--ff-d); font-size: clamp(36px, 5vw, 58px);
  font-weight: 300; font-style: italic;
  color: var(--text); margin-bottom: 56px;
}
.bio-section { margin-bottom: 48px; }
.bio-s-title {
  font-size: 10px; letter-spacing: .25em; text-transform: uppercase;
  color: var(--accent); padding-bottom: 14px;
  border-bottom: 1px solid var(--border); margin-bottom: 22px;
}
.bio-entry {
  display: flex; gap: 24px;
  font-size: 14px; line-height: 1.75; margin-bottom: 14px;
}
.bio-year { color: var(--accent); flex-shrink: 0; width: 72px; font-size: 12px; padding-top: 2px; }
.bio-text { color: var(--muted); }
.bio-text strong { color: var(--text); font-weight: 400; }
.bio-text em { font-style: italic; }
.bio-text a { color: var(--accent); border-bottom: 1px solid transparent; transition: border-color .3s; }
.bio-text a:hover { border-color: var(--accent); }

/* ─── CONTACT ────────────────────────────────────────────────── */
.contact-wrap {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  min-height: calc(100vh - var(--nav-h));
  text-align: center; padding: 60px var(--px);
}
.contact-title {
  font-family: var(--ff-d); font-size: clamp(40px, 6vw, 80px);
  font-weight: 300; font-style: italic; color: var(--text); margin-bottom: 14px;
}
.contact-sub { font-size: 12px; letter-spacing: .14em; color: var(--muted); margin-bottom: 52px; }
.contact-email {
  font-family: var(--ff-d); font-size: clamp(18px, 2.8vw, 28px);
  font-weight: 300; color: var(--accent);
  border-bottom: 1px solid currentColor; padding-bottom: 3px; transition: color .3s;
}
.contact-email:hover { color: var(--text); }
.contact-ig {
  margin-top: 36px; font-size: 11px; letter-spacing: .2em;
  text-transform: uppercase; color: var(--muted); transition: color .3s;
}
.contact-ig:hover { color: var(--text); }

/* ─── FOOTER ─────────────────────────────────────────────────── */
footer {
  padding: 28px var(--px); border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 10.5px; letter-spacing: .12em; color: var(--muted);
}

/* ─── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 920px) {
  .home-grid { grid-template-columns: repeat(2, 1fr); }

  .proj-info { flex-direction: column; gap: 32px; }
  .proj-info-right { width: 100%; }
  .proj-meta { flex-direction: row; flex-wrap: wrap; gap: 0 40px; }
  .proj-meta-item { width: calc(50% - 20px); }

  .slide-panel { width: 180px; padding: 24px 16px; }
}

@media (max-width: 600px) {
  :root { --nav-h: 52px; }
  body   { cursor: auto; }
  button { cursor: pointer; }
  .cursor { display: none; }

  .nav-links { display: none; }
  .nav-burger { display: flex; }

  .home-grid { grid-template-columns: 1fr; }

  .slideshow { height: calc(100svh - var(--nav-h) - 50px); }
  .slide-arrow { width: 36px; }
  .slide-panel { display: none; }

  .proj-topbar-series { display: none; }

  .proj-nav { flex-direction: column; gap: 20px; text-align: center; }

  .bio-entry { flex-direction: column; gap: 4px; }
  .bio-year  { width: auto; }
}
