/*
Theme Name: Felix Marye — Gutenberg
Theme URI: https://felixmarye.com
Author: Felix Marye
Author URI: https://felixmarye.com
Description: Thème sur-mesure pour le portfolio vidéaste/photographe/designer de Félix Marye. Style global (typographies, couleurs, curseur personnalisé, fenêtres de détail vidéo/photo/projet) ; le contenu des pages se construit avec des blocs Gutenberg natifs (aucun page builder requis).
Version: 1.0.21
Requires at least: 6.5
Requires PHP: 7.4
Text Domain: felix-marye-block-theme
*/

:root{
  --bg:#09080a;
  --bg-alt:#121013;
  --bg-elevated:#1a1719;
  --red:#d81e3f;
  --red-dim:#7a1327;
  --amber:#f0b357;
  --cream:#f4ede0;
  --cream-dim:#c9bfae;
  --muted:#7a736b;
  --line: rgba(244,237,224,0.09);
  --ff-display:'Fraunces', serif;
  --ff-body:'Bricolage Grotesque', sans-serif;
  --ease: cubic-bezier(.16,.84,.44,1);
}

*{margin:0;padding:0;box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{
  background:var(--bg);
  color:var(--cream);
  font-family:var(--ff-body);
  overflow-x:hidden;
  cursor:default;
  -webkit-font-smoothing:antialiased;
}
img,svg{display:block;max-width:100%;}
a{color:inherit;text-decoration:none;}
ul{list-style:none;}
button{font-family:inherit;background:none;border:none;color:inherit;cursor:pointer;}

/* ---------- grain overlay ---------- */
.grain{
  position:fixed;inset:0;z-index:200;pointer-events:none;
  opacity:.05;mix-blend-mode:overlay;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.vignette{
  position:fixed;inset:0;z-index:199;pointer-events:none;
  background:
    linear-gradient(180deg, rgba(5,4,5,.6) 0%, transparent 12%),
    linear-gradient(0deg, rgba(5,4,5,.6) 0%, transparent 12%),
    radial-gradient(ellipse at center, transparent 45%, rgba(0,0,0,.55) 100%);
}

/* ---------- custom cursor ---------- */
.cursor{
  position:fixed;top:0;left:0;width:10px;height:10px;border-radius:50%;
  background:var(--red);pointer-events:none;z-index:9999;
  transform:translate(-50%,-50%);transition:width .25s var(--ease),height .25s var(--ease),background .25s var(--ease);
  mix-blend-mode:difference;
}
.cursor.hover{width:44px;height:44px;background:var(--cream);}
@media (hover:none){ .cursor{display:none;} }

/* ---------- nav ---------- */
header.site-header{
  position:fixed;top:0;left:0;right:0;z-index:100;
  display:flex;align-items:center;justify-content:space-between;
  padding:28px 5vw;
  transition:padding .4s var(--ease), background .4s var(--ease), border-color .4s var(--ease);
  border-bottom:1px solid transparent;
}
header.site-header.scrolled{
  padding:16px 5vw;
  background:rgba(9,8,10,.86);
  backdrop-filter:blur(14px);
  border-bottom:1px solid var(--line);
}
.logo{
  font-family:var(--ff-display);
  font-style:normal;
  font-weight:500;
  font-size:1.35rem;
  letter-spacing:.02em;
}
.logo span{color:var(--red);font-style:normal;}
nav ul{display:flex;gap:2.6rem;}
nav a{
  font-size:.78rem;letter-spacing:.14em;text-transform:uppercase;
  color:var(--cream-dim);position:relative;padding-bottom:4px;
  transition:color .3s var(--ease);
}
nav a::after{
  content:'';position:absolute;left:0;bottom:0;width:0;height:1px;background:var(--red);
  transition:width .35s var(--ease);
}
nav a:hover{color:var(--cream);}
nav a:hover::after{width:100%;}
.nav-toggle{display:none;font-size:.78rem;letter-spacing:.1em;text-transform:uppercase;border:1px solid var(--line);padding:.5rem 1rem;}

/* ---------- hero ---------- */
.hero{
  position:relative;min-height:100svh;display:flex;flex-direction:column;justify-content:flex-end;
  padding:0 5vw 6rem;
  overflow:hidden;
}
.hero-photo{
  position:absolute;inset:0;z-index:-3;
  background-size:cover;background-position:center 35%;
  filter:saturate(.85) brightness(.8);
}
.hero-video{
  position:absolute;inset:0;z-index:-3;width:100%;height:100%;
  object-fit:cover;object-position:center 35%;
  filter:saturate(.85) brightness(.8);
}
.hero-bg{
  position:absolute;inset:0;z-index:-2;
  background:
    radial-gradient(120% 90% at 82% 8%, rgba(216,30,63,.4), transparent 55%),
    radial-gradient(90% 70% at 10% 100%, rgba(240,179,87,.16), transparent 60%),
    linear-gradient(180deg, rgba(10,9,11,.35) 0%, rgba(9,8,10,.6) 45%, rgba(5,4,5,.94) 100%);
}
.hero-watch-btn{border:none;cursor:pointer;}
.eyebrow{
  display:flex;align-items:center;gap:.7rem;
  font-size:.75rem;letter-spacing:.22em;text-transform:uppercase;color:var(--amber);
  margin-bottom:1.6rem;opacity:0;animation:rise .9s var(--ease) .15s forwards;
}
.eyebrow::before{content:'';width:8px;height:8px;border-radius:50%;background:var(--red);box-shadow:0 0 14px var(--red);animation:pulse 2s infinite;}
.hero h1{
  font-family:var(--ff-display);
  font-weight:400;
  line-height:.86;
  font-size:clamp(3.6rem, 10.5vw, 9.5rem);
  letter-spacing:-.01em;
  opacity:0;animation:rise 1s var(--ease) .3s forwards;
}
.hero h1 em{font-style:italic;font-weight:300;color:transparent;-webkit-text-stroke:1.5px var(--cream);}
.hero-sub{
  display:flex;gap:2.5rem;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;
  margin-top:2.6rem;padding-top:2.2rem;border-top:1px solid var(--line);
  opacity:0;animation:rise 1s var(--ease) .55s forwards;
}
.hero-tagline-row{display:flex;align-items:center;gap:1.5rem;flex-wrap:wrap;}
.hero-tagline{max-width:36ch;font-size:1.05rem;line-height:1.55;color:var(--cream-dim);}
.hero-tagline strong{color:var(--cream);font-weight:500;}
.hero-cta{display:flex;gap:1rem;flex-shrink:0;}
.btn{
  display:inline-flex;align-items:center;gap:.6rem;
  padding:1rem 1.7rem;font-size:.8rem;letter-spacing:.08em;text-transform:uppercase;font-weight:500;
  border-radius:2px;transition:transform .35s var(--ease), background .35s var(--ease), color .35s var(--ease);
}
.btn-primary{background:var(--cream);color:#0a090b;}
.btn-primary:hover{background:var(--red);color:var(--cream);transform:translateY(-3px);}
.btn-ghost{border:1px solid var(--line);color:var(--cream);}
.btn-ghost:hover{border-color:var(--cream-dim);transform:translateY(-3px);}
.btn svg{width:14px;height:14px;}

.scroll-cue{
  position:absolute;bottom:2.2rem;right:5vw;display:flex;align-items:center;gap:.6rem;
  font-size:.7rem;letter-spacing:.16em;text-transform:uppercase;color:var(--muted);
  writing-mode:vertical-rl;opacity:0;animation:rise 1s var(--ease) .8s forwards;
}
.scroll-cue .line{width:1px;height:46px;background:linear-gradient(var(--muted),transparent);}

@keyframes rise{from{opacity:0;transform:translateY(26px);}to{opacity:1;transform:translateY(0);}}
@keyframes pulse{0%,100%{opacity:1;}50%{opacity:.35;}}

/* ---------- category hub ---------- */
.cathub{padding:5rem 5vw 1rem;}
.cathub-head{margin-bottom:1.6rem;}
.cathub-head span{font-size:.75rem;color:var(--muted);letter-spacing:.1em;}
.cathub-head h2{font-family:var(--ff-display);font-weight:400;font-style:italic;font-size:clamp(1.6rem,3vw,2.4rem);}
/* Was a wrapping 4-column grid — converted to a horizontal-scroll carousel
   (matching the video/photo/project rows) so any number of categories fits
   in one strip with nav arrows, instead of overflowing onto a 2nd row. */
.cathub-carousel{position:relative;}
.cathub-grid{display:flex;gap:1.1rem;overflow-x:auto;scroll-snap-type:x proximity;scrollbar-width:none;padding-bottom:.3rem;}
.cathub-grid::-webkit-scrollbar{display:none;}
.cathub-tile{
  position:relative;flex:0 0 240px;aspect-ratio:4/5;border-radius:6px;overflow:hidden;background-size:cover!important;background-position:center!important;background:#111;
  scroll-snap-align:start;
  display:flex;align-items:flex-end;transition:transform .5s var(--ease);
}
.cathub-tile:hover{transform:translateY(-8px);}
.cathub-tile::after{content:'';position:absolute;inset:0;background:linear-gradient(0deg, rgba(5,4,5,.9) 0%, rgba(5,4,5,.1) 45%, rgba(5,4,5,.4) 100%);}
.cathub-tile span{position:relative;z-index:2;padding:1.2rem;font-size:.85rem;letter-spacing:.12em;text-transform:uppercase;font-weight:600;}
.cathub-nav{position:absolute;inset:0;z-index:20;display:flex;justify-content:space-between;pointer-events:none;}
.cathub-nav button{
  width:90px;border:none;pointer-events:auto;cursor:pointer;
  display:flex;align-items:center;justify-content:center;
  background:linear-gradient(90deg, rgba(5,4,5,.85) 0%, rgba(5,4,5,0) 100%);
  transition:background .3s var(--ease);
}
.cathub-nav button:last-child{background:linear-gradient(270deg, rgba(5,4,5,.85) 0%, rgba(5,4,5,0) 100%);}
.cathub-nav button:hover{background:linear-gradient(90deg, rgba(5,4,5,.95) 0%, rgba(5,4,5,.18) 100%);}
.cathub-nav button:last-child:hover{background:linear-gradient(270deg, rgba(5,4,5,.95) 0%, rgba(5,4,5,.18) 100%);}
@media (max-width:900px){ .cathub-tile{flex-basis:200px;} }

/* 4 categories or fewer: stretch tiles edge-to-edge instead of leaving
   leftover space at a fixed 240px width — no slider needed either.
   Restricted to wider screens on purpose: below 900px there isn't room to
   squeeze 4 tiles edge-to-edge without them becoming unreadably narrow, so
   mobile/tablet always keeps the fixed-width scrollable carousel (same
   .cathub-tile flex-basis:200px rule above) with working nav + dots. */
@media (min-width:901px){
  .cathub-grid.fit{overflow-x:visible;}
  .cathub-grid.fit .cathub-tile{flex:1 1 0;min-width:0;}
}

/* ---------- rows ---------- */
.rows{padding:5rem 0 2rem;}
/* without this, clicking a cathub category tile scrolls the target row's
   very top edge flush against the fixed header (or slightly under it),
   which reads as "too high" / cropped — this leaves breathing room. */
.row-block{margin-bottom:5rem;display:grid;scroll-margin-top:100px;}
.cathub{scroll-margin-top:100px;}
/* row-head is "unwrapped" via display:contents so its two children (title
   block + row-nav) become direct grid items of row-block: the title gets its
   own row, while row-nav shares row-track's exact grid cell (same row AND
   column) so the prev/next buttons float over the two ends of the carousel
   itself, on top of the edge thumbnails, instead of on the page background. */
.row-head{display:contents;}
.row-head > div:first-child{grid-row:1;grid-column:1;padding:0 5vw;margin-bottom:1.6rem;}
.row-head h2{
  font-family:var(--ff-display);font-weight:400;font-style:italic;
  font-size:clamp(1.6rem,3vw,2.4rem);
}
.row-head .row-index{font-size:.75rem;color:var(--muted);letter-spacing:.1em;}
/* height is capped to exclude .card-meta (tag+title+year sit below the image)
   so the nav zone stays over the thumbnail itself, never sinking down over
   the text — align-self:stretch alone centers across the *whole* row (image
   + text), which is what caused it to overlap the title/year.
   z-index:20 must outrank .card:hover's z-index:5, otherwise the hovered
   card's own stacking context rises above the nav and swallows the
   hover/click meant for it (popping its play-badge instead of scrolling). */
.row-nav{
  grid-row:2;grid-column:1;align-self:start;height:calc(100% - 84px);z-index:20;
  display:flex;justify-content:space-between;pointer-events:none;
}
/* The button itself IS the dark gradient fade — full height, 90px wide
   (deliberately under half the width of the smallest card variant, .tall at
   230px, so it never reaches the play-badge centered on the card). The whole
   strip is clickable, not just the circle, so aiming anywhere near the edge
   scrolls the row. */
.row-nav button{
  width:90px;height:100%;border:none;pointer-events:auto;cursor:pointer;
  display:flex;align-items:center;justify-content:center;
  background:linear-gradient(90deg, rgba(5,4,5,.85) 0%, rgba(5,4,5,0) 100%);
  transition:background .3s var(--ease);
}
.row-nav button:last-child{background:linear-gradient(270deg, rgba(5,4,5,.85) 0%, rgba(5,4,5,0) 100%);}
.row-nav button:hover{background:linear-gradient(90deg, rgba(5,4,5,.95) 0%, rgba(5,4,5,.18) 100%);}
.row-nav button:last-child:hover{background:linear-gradient(270deg, rgba(5,4,5,.95) 0%, rgba(5,4,5,.18) 100%);}
.row-nav-circle{
  width:38px;height:38px;border:1px solid var(--line);border-radius:50%;
  background:rgba(9,8,10,.55);backdrop-filter:blur(6px);color:var(--cream);
  display:flex;align-items:center;justify-content:center;transition:.3s var(--ease);
}
.row-nav button:hover .row-nav-circle{background:var(--cream);color:#0a090b;border-color:var(--cream);}
.row-nav svg{width:14px;height:14px;}

.row-track{
  grid-row:2;grid-column:1;
  display:flex;gap:1.1rem;overflow-x:auto;padding:0 5vw 1rem;scroll-snap-type:x proximity;
  scroll-padding-left:5vw;
  scrollbar-width:none;
}
.row-track::-webkit-scrollbar{display:none;}

.row-dots{grid-row:3;grid-column:1;display:flex;justify-content:center;gap:.5rem;margin-top:.6rem;}
.row-dot{width:6px;height:6px;padding:0;border:none;border-radius:3px;background:var(--line);cursor:pointer;transition:.3s var(--ease);}
.row-dot:hover{background:var(--cream-dim);}
.row-dot.active{width:20px;background:var(--cream);}

.card{
  position:relative;flex:0 0 calc((100% - 3*1.1rem)/4);
  scroll-snap-align:start;cursor:pointer;transition:transform .55s var(--ease);
}
.row-track.tall .card{flex:0 0 auto;width:230px;cursor:default;}
.row-track.wide .card{flex:0 0 auto;width:340px;}
.card:hover{transform:translateY(-10px) scale(1.02);z-index:5;}
.card-art{
  position:relative;width:100%;aspect-ratio:16/10;border-radius:6px;overflow:hidden;
  background-size:cover!important;background-position:center!important;background:#111;
}
.row-track.tall .card-art{aspect-ratio:2/3;}
.row-track.wide .card-art{aspect-ratio:4/3;}
.card-meta{padding:.85rem 0 0;}
.card-tag{font-size:.62rem;letter-spacing:.14em;text-transform:uppercase;color:var(--amber);margin-bottom:.4rem;display:block;}
.card-title{font-family:var(--ff-display);font-style:italic;font-weight:500;font-size:1.15rem;line-height:1.15;}
.card-time{font-size:.68rem;color:var(--cream-dim);margin-top:.35rem;display:block;}
.play-badge{
  position:absolute;top:50%;left:50%;z-index:2;width:56px;height:56px;border-radius:50%;
  background:rgba(9,8,10,.55);border:1px solid rgba(244,237,224,.25);
  display:flex;align-items:center;justify-content:center;backdrop-filter:blur(6px);
  opacity:0;transform:translate(-50%,-50%) scale(.7);transition:.35s var(--ease);
}
.card:hover .play-badge{opacity:1;transform:translate(-50%,-50%) scale(1);}
.play-badge svg{width:20px;height:20px;fill:var(--cream);}

/* ---------- spotlight ---------- */
.spotlight{
  position:relative;margin:2rem 5vw 7rem;border-radius:10px;overflow:hidden;
  min-height:70vh;display:flex;align-items:flex-end;
  background-size:cover;background-position:center;
}
.spotlight::before{
  content:'';position:absolute;inset:0;
  background:
    radial-gradient(120% 100% at 85% 0%, rgba(216,30,63,.45), transparent 60%),
    linear-gradient(0deg, #050405ea 0%, rgba(5,4,5,.45) 55%, rgba(5,4,5,.55) 100%);
}
.spotlight-content{position:relative;z-index:2;padding:3.5rem;max-width:680px;}
.spotlight-tag{font-size:.72rem;letter-spacing:.2em;text-transform:uppercase;color:var(--amber);display:flex;align-items:center;gap:.6rem;margin-bottom:1rem;}
.spotlight-tag::before{content:'';width:22px;height:1px;background:var(--amber);}
.spotlight h3{font-family:var(--ff-display);font-style:italic;font-weight:400;font-size:clamp(2.2rem,5vw,3.6rem);line-height:1;margin-bottom:1.2rem;}
.spotlight p{color:var(--cream-dim);line-height:1.65;margin-bottom:2rem;max-width:52ch;}

/* ---------- about ---------- */
.about{padding:8rem 5vw;display:grid;grid-template-columns:.85fr 1.15fr;gap:5vw;align-items:center;}
.about-portrait{
  position:relative;aspect-ratio:3/4;border-radius:8px;overflow:hidden;
  background-size:cover;background-position:top center;
  display:flex;align-items:flex-end;justify-content:center;
}
.about-portrait::before{
  content:'';position:absolute;inset:0;
  background:linear-gradient(0deg, rgba(5,4,5,.6) 0%, transparent 30%);
}
.about-portrait .frame-label{
  position:relative;z-index:2;font-family:var(--ff-display);font-style:italic;font-size:1.1rem;color:var(--cream);
  padding-bottom:1.4rem;
}
.about-portrait .corner{position:absolute;width:26px;height:26px;border:1px solid rgba(244,237,224,.5);z-index:2;}
.about-portrait .tl{top:16px;left:16px;border-right:none;border-bottom:none;}
.about-portrait .br{bottom:16px;right:16px;border-left:none;border-top:none;}

.about-copy .eyebrow{margin-bottom:1.4rem;animation:none;opacity:1;}
.about-copy h2{font-family:var(--ff-display);font-weight:400;font-style:italic;font-size:clamp(2rem,4vw,3.1rem);line-height:1.05;margin-bottom:1.6rem;}
.about-copy p{color:var(--cream-dim);line-height:1.75;max-width:56ch;margin-bottom:1.2rem;}
.about-copy p strong{color:var(--cream);font-weight:500;}

.skills{display:flex;flex-wrap:wrap;gap:.6rem;margin:2rem 0 2.6rem;}
.skill-pill{
  padding:.55rem 1.1rem;border:1px solid var(--line);border-radius:30px;font-size:.75rem;
  letter-spacing:.04em;color:var(--cream-dim);transition:.3s var(--ease);
}
.skill-pill:hover{border-color:var(--red);color:var(--cream);}

.stats{display:flex;gap:3rem;padding-top:2rem;border-top:1px solid var(--line);flex-wrap:wrap;}
.stat b{display:block;font-family:var(--ff-display);font-style:italic;font-size:2.2rem;color:var(--amber);}
.stat span{font-size:.72rem;letter-spacing:.1em;text-transform:uppercase;color:var(--muted);}

/* ---------- contact (folded into the About section) ---------- */
.about-contact{margin-top:2.2rem;padding-top:2rem;border-top:1px solid var(--line);}
.about-contact-label{display:block;font-size:.72rem;letter-spacing:.1em;text-transform:uppercase;color:var(--muted);margin-bottom:.9rem;}
.contact-links{display:flex;flex-direction:column;align-items:flex-start;gap:.9rem;}
.contact-email{
  display:inline-flex;align-items:center;gap:.8rem;font-size:1.1rem;
  padding-bottom:.4rem;border-bottom:1px solid var(--line);transition:.3s var(--ease);
}
.contact-email:hover{border-color:var(--red);color:var(--red);}
.contact-phone{color:var(--cream-dim);font-size:.9rem;letter-spacing:.04em;}

/* ---------- footer ---------- */
footer.site-footer{
  padding:3.5rem 5vw 2.5rem;border-top:1px solid var(--line);
  display:flex;flex-wrap:wrap;gap:2rem;justify-content:space-between;align-items:center;
}
.footer-social{display:flex;gap:1.4rem;}
.footer-social a{
  width:40px;height:40px;border:1px solid var(--line);border-radius:50%;
  display:flex;align-items:center;justify-content:center;transition:.3s var(--ease);
}
.footer-social a:hover{background:var(--red);border-color:var(--red);transform:translateY(-3px);}
.footer-social svg{width:15px;height:15px;}
.footer-nav{display:flex;gap:2rem;font-size:.75rem;letter-spacing:.08em;text-transform:uppercase;color:var(--cream-dim);}
.footer-nav li{list-style:none;}
.footer-nav a:hover{color:var(--cream);}
.footer-bottom{width:100%;display:flex;justify-content:space-between;flex-wrap:wrap;gap:1rem;margin-top:2rem;padding-top:1.6rem;border-top:1px solid var(--line);font-size:.72rem;color:var(--muted);letter-spacing:.04em;}

/* ---------- comment bubble ---------- */
.comment-bubble{position:fixed;right:1.6rem;bottom:1.6rem;z-index:300;}
.comment-bubble-toggle{
  width:56px;height:56px;border-radius:50%;border:1px solid var(--line);
  background:var(--red);color:var(--cream);cursor:pointer;
  display:flex;align-items:center;justify-content:center;
  box-shadow:0 8px 24px rgba(5,4,5,.5);transition:.3s var(--ease);
}
.comment-bubble-toggle:hover{background:var(--cream);color:#0a090b;transform:translateY(-3px);}
.comment-bubble-toggle svg{width:24px;height:24px;}
.comment-bubble.open .comment-bubble-toggle{background:var(--cream);color:#0a090b;}
.comment-bubble-panel{
  position:absolute;right:0;bottom:70px;width:300px;
  background:var(--bg-elevated);border:1px solid var(--line);border-radius:10px;
  padding:1.2rem;box-shadow:0 20px 50px rgba(0,0,0,.5);
  opacity:0;transform:translateY(12px) scale(.97);pointer-events:none;
  transition:opacity .3s var(--ease), transform .3s var(--ease);
}
.comment-bubble.open .comment-bubble-panel{opacity:1;transform:translateY(0) scale(1);pointer-events:auto;}
.comment-bubble-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:1rem;}
.comment-bubble-head span{font-family:var(--ff-display);font-style:italic;font-size:1.1rem;}
.comment-bubble-close{background:none;border:none;color:var(--cream-dim);cursor:pointer;font-size:1rem;line-height:1;}
.comment-bubble-close:hover{color:var(--cream);}
.comment-bubble-panel form{display:flex;flex-direction:column;gap:.6rem;}
.comment-bubble-panel label{font-size:.68rem;letter-spacing:.08em;text-transform:uppercase;color:var(--muted);margin-top:.3rem;}
.comment-bubble-panel input,
.comment-bubble-panel textarea{
  width:100%;background:var(--bg);border:1px solid var(--line);border-radius:6px;
  padding:.6rem .7rem;color:var(--cream);font-family:var(--ff-body);font-size:.85rem;resize:vertical;
}
.comment-bubble-panel input:focus,
.comment-bubble-panel textarea:focus{outline:none;border-color:var(--cream-dim);}
.comment-bubble-panel .btn{margin-top:.4rem;justify-content:center;width:100%;}
.comment-bubble-status{font-size:.75rem;margin-top:.5rem;min-height:1em;}
.comment-bubble-status.success{color:var(--amber);}
.comment-bubble-status.error{color:var(--red);}
@media (max-width:560px){
  .comment-bubble{right:1rem;bottom:1rem;}
  .comment-bubble-panel{width:min(300px, calc(100vw - 2rem));}
}

/* ---------- reveal ---------- */
.reveal{opacity:0;transform:translateY(30px);transition:opacity .8s var(--ease), transform .8s var(--ease);}
.reveal.in{opacity:1;transform:translateY(0);}

/* ---------- video/photo/project detail modal ---------- */
.modal{
  position:fixed;inset:0;z-index:500;display:flex;align-items:center;justify-content:center;
  padding:4vh 4vw;opacity:0;pointer-events:none;transition:opacity .4s var(--ease);
}
.modal.open{opacity:1;pointer-events:auto;}
.modal-backdrop{position:absolute;inset:0;background:rgba(5,4,5,.88);backdrop-filter:blur(6px);}
.modal-panel{
  position:relative;z-index:2;width:min(980px,100%);max-height:92vh;overflow:auto;
  background:var(--bg-elevated);border:1px solid var(--line);border-radius:10px;
  transform:translateY(24px) scale(.98);transition:transform .45s var(--ease);
}
.modal.open .modal-panel{transform:translateY(0) scale(1);}
/* .modal-close is a direct child of .modal (sibling of .modal-panel, NOT
   nested inside it) so it sits outside the video/panel instead of floating
   on top of it — .modal-panel has a transform which would otherwise become
   the containing block and trap an absolutely-positioned descendant. */
.modal-close{
  position:absolute;top:1.2rem;right:1.2rem;z-index:10;width:38px;height:38px;border-radius:50%;
  background:rgba(5,4,5,.75);border:1px solid var(--line);display:flex;align-items:center;justify-content:center;
  font-size:1rem;transition:.3s var(--ease);
}
.modal-close:hover{background:var(--red);}
.modal-player{position:relative;width:100%;aspect-ratio:16/9;background:#000;}
.modal-player iframe{position:absolute;inset:0;width:100%;height:100%;border:0;}
.modal-info{padding:2rem 2.2rem 2.4rem;}
.modal-info h3{font-family:var(--ff-display);font-style:italic;font-weight:500;font-size:1.9rem;margin-bottom:.6rem;}
.modal-info p{color:var(--cream-dim);line-height:1.65;max-width:64ch;}
.modal-meta{display:flex;gap:1rem;align-items:center;justify-content:space-between;flex-wrap:wrap;margin-bottom:.8rem;}
.modal-share{position:relative;display:flex;gap:.5rem;flex-wrap:wrap;}
.modal-share-btn{
  width:32px;height:32px;border:1px solid var(--line);border-radius:50%;padding:0;
  background:none;color:var(--cream);cursor:pointer;
  display:flex;align-items:center;justify-content:center;transition:.3s var(--ease);
}
.modal-share-btn:hover{background:var(--red);border-color:var(--red);transform:translateY(-2px);}
.modal-share-btn svg{width:13px;height:13px;}
.modal-share-toast{
  position:absolute;bottom:calc(100% + .6rem);right:0;background:var(--cream);color:#0a090b;
  font-size:.7rem;letter-spacing:.01em;padding:.4rem .7rem;border-radius:5px;white-space:nowrap;
  opacity:0;pointer-events:none;transform:translateY(4px);transition:.25s var(--ease);z-index:5;
}
.modal-share-toast.show{opacity:1;transform:translateY(0);}
@media (max-width:560px){ .modal-share-toast{white-space:normal;max-width:220px;right:auto;left:0;} }

/* ---------- video suggestions (inside the video player modal) ---------- */
.modal-suggestions{padding:1.6rem 2.2rem 2.4rem;border-top:1px solid var(--line);}
.suggestions-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:1rem;}
.suggestions-label{display:block;font-size:.7rem;letter-spacing:.14em;text-transform:uppercase;color:var(--muted);}
.suggestions-nav{display:flex;gap:.5rem;}
.suggestions-nav button{
  width:32px;height:32px;border-radius:50%;border:1px solid var(--line);
  background:rgba(9,8,10,.55);cursor:pointer;
  display:flex;align-items:center;justify-content:center;transition:.3s var(--ease);
}
.suggestions-nav button:hover{background:var(--cream);color:#0a090b;border-color:var(--cream);}
.suggestions-nav svg{width:13px;height:13px;}
.suggestions-track{display:flex;gap:1rem;overflow-x:auto;scrollbar-width:none;}
.suggestions-track::-webkit-scrollbar{display:none;}
.suggestion-item{flex:0 0 160px;cursor:pointer;}
.suggestion-art{width:100%;aspect-ratio:16/10;border-radius:6px;background-size:cover!important;background-position:center!important;background-color:#111;margin-bottom:.5rem;transition:transform .35s var(--ease);}
.suggestion-item:hover .suggestion-art{transform:scale(1.03);}
.suggestion-title{font-size:.78rem;color:var(--cream-dim);line-height:1.3;display:block;}
.suggestion-item:hover .suggestion-title{color:var(--cream);}

.photo-panel .modal-info{padding-bottom:1.4rem;}
.photo-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:.6rem;padding:0 2.2rem 2.2rem;}
.photo-grid img{width:100%;height:230px;object-fit:cover;border-radius:4px;display:block;cursor:pointer;transition:transform .35s var(--ease);}
.photo-grid img:hover{transform:scale(1.03);}
@media (max-width:700px){ .photo-grid{grid-template-columns:repeat(2,1fr);} }

/* ---------- photo lightbox (full-size, slider) ---------- */
.lightbox .modal-backdrop{background:rgba(5,4,5,.96);}
.lightbox #lightboxImage{
  position:relative;z-index:2;max-width:88vw;max-height:88vh;
  width:auto;height:auto;object-fit:contain;border-radius:4px;
}
.lightbox-nav{
  position:absolute;top:50%;transform:translateY(-50%);z-index:3;
  background:none;border:none;cursor:pointer;padding:0;
}
.lightbox-nav.prev{left:2vw;}
.lightbox-nav.next{right:2vw;}
.lightbox-nav .row-nav-circle{width:48px;height:48px;}
@media (max-width:700px){
  .lightbox-nav.prev{left:1vw;}
  .lightbox-nav.next{right:1vw;}
  .lightbox-nav .row-nav-circle{width:38px;height:38px;}
}

/* ---------- elementor content wrapper ---------- */
.site-content{position:relative;}

@media (max-width:900px){
  /* the "Menu" button (wired up in script.js) toggles nav.open — without JS,
     nav would just be permanently display:none and completely inaccessible
     below this breakpoint, which is what made mobile nav a dead end before. */
  nav{
    display:none;position:fixed;inset:0;z-index:150;
    background:rgba(9,8,10,.97);backdrop-filter:blur(10px);
    align-items:center;justify-content:center;
  }
  nav.open{display:flex;}
  nav ul{flex-direction:column;align-items:center;gap:2.2rem;}
  nav a{font-size:1.15rem;}
  .nav-toggle{display:block;position:relative;z-index:160;}
  .about{grid-template-columns:1fr;}
  .about-portrait{max-width:320px;}
  .hero-sub{flex-direction:column;align-items:flex-start;gap:1.6rem;}
  .card{flex-basis:calc((100% - 1.1rem)/2);}
}
@media (max-width:560px){
  .spotlight-content{padding:2rem;}
  .stats{gap:1.8rem;}
  .card{flex-basis:85%;}
}
