/* Camille Thoral — site statique */
:root {
  --bg: #0b0b0b;
  --fg: #f2f1ee;
  --muted: #8b8a86;
  --line: rgba(255,255,255,.14);
  --gap: clamp(10px, 1.4vw, 20px);
  --pad: clamp(18px, 4vw, 56px);
  --ease: cubic-bezier(.2,.7,.2,1);
  --font: "Figtree", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 400 16px/1.55 var(--font); -webkit-font-smoothing: antialiased; }
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
p a, dd a, .lede a, .note a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
p a:hover, dd a:hover { color: var(--muted); }
h1, h2 { margin: 0; font-weight: 600; letter-spacing: -.03em; line-height: .95; }
::selection { background: var(--fg); color: var(--bg); }

.skip { position: absolute; left: -999px; top: 8px; background: var(--fg); color: var(--bg); padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }

/* Header */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--pad);
  background: linear-gradient(rgba(11,11,11,.92), rgba(11,11,11,.6) 70%, rgba(11,11,11,0));
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.logo img { height: 34px; width: auto; }
.site-header nav { display: flex; gap: clamp(14px, 2.4vw, 32px); font-size: 15px; font-weight: 500; }
.site-header nav a { position: relative; padding: 4px 0; color: #fff; }
.site-header nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease); }
.site-header nav a:hover::after, .site-header nav a[aria-current]::after { transform: scaleX(1); transform-origin: left; }

main { padding: 0 var(--pad); }
.eyebrow { margin: 0 0 18px; font-size: 13px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.lede { font-size: clamp(18px, 1.7vw, 24px); line-height: 1.4; max-width: 34ch; color: var(--fg); }

/* Home */
.hero { min-height: 78vh; display: flex; flex-direction: column; justify-content: flex-end; padding: 120px 0 clamp(40px, 7vw, 96px); }
.hero h1 { font-size: clamp(24px, 5vw, 84px); line-height: 1; }
.hero .lede { margin: clamp(24px, 3vw, 40px) 0 0; max-width: 40ch; }
.section-head { display: flex; justify-content: space-between; padding: 14px 0; border-top: 1px solid var(--line); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(28px, 4vw, 64px) var(--gap); padding: 12px 0 clamp(60px, 9vw, 140px); }
.card figure { margin: 0; overflow: hidden; aspect-ratio: 4 / 3; background: #161616; }
.card img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease), opacity .6s; }
.card:hover img { transform: scale(1.035); }
.card-meta { display: grid; grid-template-columns: 44px 1fr auto; align-items: baseline; gap: 8px; padding-top: 14px; }
.card-meta .num { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.card-meta h2 { font-size: clamp(22px, 2.4vw, 34px); letter-spacing: -.02em; line-height: 1.1; }
.card-meta .tags { font-size: 13px; color: var(--muted); text-align: right; }
.card:nth-child(4n+2), .card:nth-child(4n+3) { }
@media (min-width: 900px) { .card:nth-child(even) { margin-top: 12vw; } .card:nth-child(even) + .card { margin-top: -6vw; } .card:first-child { margin-top: 0; } }

/* Project */
.p-head { padding: 130px 0 clamp(28px, 4vw, 56px); }
.back { display: inline-block; margin-bottom: 40px; font-size: 14px; color: var(--muted); transition: color .3s; }
.back:hover { color: var(--fg); }
.p-head h1 { font-size: clamp(44px, 8vw, 132px); }
.p-hero .m { margin: 0; }
.p-hero img, .p-hero video { width: 100%; }
.p-info { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(28px, 6vw, 120px); padding: clamp(40px, 6vw, 96px) 0; border-bottom: 1px solid var(--line); margin-bottom: var(--gap); }
.intro { margin: 0; font-size: clamp(18px, 1.6vw, 23px); line-height: 1.45; max-width: 46ch; }
.intro strong { font-weight: 600; }
.meta { margin: 0; display: grid; gap: 18px; align-content: start; font-size: 15px; }
.meta div { display: grid; grid-template-columns: 140px 1fr; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.meta div:last-child { border-bottom: 0; }
.meta dt { color: var(--muted); }
.meta dd { margin: 0; }
.p-media { display: grid; gap: var(--gap); }
.m { margin: 0; background: #141414; }
.m img, .m video { width: 100%; }
.m figcaption { padding: 10px 0 0; font-size: 13px; color: var(--muted); background: var(--bg); }
.m.v video { background: #000; }
.row { display: grid; gap: var(--gap); align-items: start; }
.row.pair { grid-template-columns: 1fr 1fr; }
.row.trio { grid-template-columns: repeat(3, 1fr); }
.label { margin: clamp(30px, 4vw, 60px) 0 0; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
blockquote { margin: clamp(40px, 7vw, 120px) auto; max-width: 30ch; font-size: clamp(22px, 2.6vw, 38px); line-height: 1.25; letter-spacing: -.01em; text-align: center; }
blockquote strong { font-weight: 600; }
.note { font-size: 13px; color: var(--muted); }
.p-nav { display: grid; grid-template-columns: 1fr 1fr; margin-top: clamp(60px, 9vw, 140px); border-top: 1px solid var(--line); }
.p-nav a { display: flex; flex-direction: column; gap: 10px; padding: 34px 0 60px; font-size: clamp(26px, 4vw, 64px); font-weight: 600; letter-spacing: -.03em; line-height: 1; transition: opacity .3s; }
.p-nav a span { font-size: 13px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.p-nav .next { text-align: right; align-items: flex-end; }
.p-nav .prev { opacity: .45; }
.p-nav a:hover { opacity: 1; }
.p-nav:hover .next:not(:hover) { opacity: .45; }

/* Galleries */
.g-head { padding: 130px 0 clamp(30px, 4vw, 60px); display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; }
.g-head h1 { font-size: clamp(44px, 8vw, 132px); }
.g-head p { margin: 0; color: var(--muted); max-width: 32ch; }
.gallery { columns: 3 280px; column-gap: var(--gap); padding-bottom: clamp(60px, 9vw, 140px); }
.g-item { display: block; margin-bottom: var(--gap); break-inside: avoid; overflow: hidden; background: #141414; cursor: zoom-in; }
.g-item img { width: 100%; transition: transform .9s var(--ease), opacity .4s; }
.g-item:hover img { transform: scale(1.03); }

/* Lightbox */
.lb { position: fixed; inset: 0; z-index: 90; display: none; place-items: center; background: rgba(8,8,8,.96); }
.lb.open { display: grid; }
.lb img { max-width: 92vw; max-height: 88vh; width: auto; object-fit: contain; }
.lb button { position: absolute; background: none; border: 0; color: var(--fg); font: 500 15px var(--font); padding: 18px; cursor: pointer; }
.lb .close { top: 8px; right: 8px; }
.lb .prev { left: 4px; top: 50%; transform: translateY(-50%); font-size: 28px; }
.lb .next { right: 4px; top: 50%; transform: translateY(-50%); font-size: 28px; }
.lb .count { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); font-size: 13px; color: var(--muted); }

/* Bio */
.bio { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(30px, 6vw, 110px); padding: 130px 0 clamp(60px, 9vw, 140px); align-items: start; }
.portrait { margin: 0; position: sticky; top: 100px; }
.portrait img { width: 100%; filter: grayscale(.15); }
.bio h1 { font-size: clamp(40px, 6vw, 96px); }
.bio .lede { margin: 30px 0 50px; }
.bio .label { display: block; margin: 0 0 16px; }
.current { display: grid; gap: 12px; padding: 26px 0; border-top: 1px solid var(--line); }
.current .logo-free img { height: 40px; width: auto; filter: brightness(0) invert(1); }
.clients { padding: 26px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.clients ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; align-items: center; }
.clients img { max-height: 34px; width: auto; filter: brightness(0) invert(1); opacity: .85; }
.btn { display: inline-flex; margin-top: 36px; padding: 14px 22px; border: 1px solid var(--fg); border-radius: 100px; font-weight: 500; transition: background .3s, color .3s; }
.btn:hover { background: var(--fg); color: var(--bg); }

/* Footer */
.site-footer { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 28px var(--pad) 34px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.site-footer a:hover { color: var(--fg); }

/* Reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } * { transition: none !important; scroll-behavior: auto !important; } }

/* Mobile */
@media (max-width: 760px) {
  .site-header { padding: 14px var(--pad); }
  .logo img { height: 26px; }
  .site-header nav { gap: 14px; font-size: 14px; }
  .grid { grid-template-columns: 1fr; }
  .card-meta { grid-template-columns: 34px 1fr; }
  .card-meta .tags { grid-column: 2; text-align: left; }
  .hero { min-height: 70vh; }
  .p-info, .bio { grid-template-columns: 1fr; }
  .meta div { grid-template-columns: 110px 1fr; }
  .row.pair, .row.trio { grid-template-columns: 1fr; }
  .portrait { position: static; }
  .clients ul { grid-template-columns: repeat(2, 1fr); }
  .p-nav { grid-template-columns: 1fr; }
  .p-nav .prev { display: none; }
}
