/* Jérôme Wolf — Premium Refonte 2026 (lightweight, accessible, fast)
   Design: zen + modern, subtle glow, big typography, glass surfaces.
*/

:root{
  /* Zen Aura palette (sand + sage + olive + copper) */
  --bg:  #F6F3EA;      /* sand */
  --bg2: #EFE9DD;      /* warm sand */
  --surface: rgba(255,255,255,.62);
  --surface2: rgba(255,255,255,.44);
  --text:#141A16;
  --muted: rgba(20,26,22,.72);

  --sage:#6E8A74;       /* mid sage */
  --deep-sage:#2F4A3A;  /* deep sage */
  --olive:#6B6A3A;      /* muted olive */
  --copper:#B77A4A;     /* soft copper */

  --accent: var(--deep-sage);
  --accent2: var(--sage);
  --mint:#A9B9A7;       /* soft */
  --border: rgba(47,74,58,.16);

  --radius: 22px;
  --radius2: 16px;
  --max: 1120px;

  --shadow: 0 22px 60px rgba(11,18,14,.14);
  --shadow2: 0 10px 26px rgba(11,18,14,.10);

  --focus: rgba(110,138,116,.45);
}

/* Dark theme (toggle) */
html[data-theme="dark"]{
  --bg:#0B0F0D;
  --bg2:#0F1512;
  --surface: rgba(18,24,20,.58);
  --surface2: rgba(18,24,20,.40);
  --text:#F2F4F1;
  --muted: rgba(242,244,241,.72);

  --border: rgba(169,185,167,.18);
  --shadow: 0 26px 70px rgba(0,0,0,.55);
  --shadow2: 0 14px 36px rgba(0,0,0,.45);

  --focus: rgba(169,185,167,.35);
}

*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  color:var(--text);
  background:
    radial-gradient(900px 620px at 16% 8%, rgba(169,185,167,.20), transparent 62%),
    radial-gradient(820px 560px at 84% 22%, rgba(110,138,116,.14), transparent 58%),
    radial-gradient(680px 520px at 52% 102%, rgba(183,122,74,.10), transparent 64%),
    linear-gradient(180deg, var(--bg), var(--bg2));
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Apple Color Emoji","Segoe UI Emoji";
  line-height: 1.55;
  overflow-x:hidden;
  position: relative;
}

/* Keep animated layers behind the UI */
body > *{ position: relative; z-index: 1; }

/* Subtle grain overlay (very small) */
body::before{
  content:"";
  position:fixed;
  inset:0;
  pointer-events:none;
  opacity:.06;
  mix-blend-mode: multiply;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='.35'/%3E%3C/svg%3E");
}
html[data-theme="dark"] body::before{ opacity:.10; mix-blend-mode: screen; }

/* Aurora wash + ultra subtle spotlight */
body::after{
  content:"";
  position:fixed;
  inset:-2px;
  pointer-events:none;
  z-index:0;
  opacity:.38;
  filter: blur(22px) saturate(1.05);
  background:
    radial-gradient(480px 360px at var(--mx, 20%) var(--my, 18%), rgba(183,122,74,.12), transparent 62%),
    radial-gradient(620px 420px at 22% 18%, rgba(110,138,116,.16), transparent 62%),
    radial-gradient(520px 380px at 86% 26%, rgba(169,185,167,.14), transparent 62%),
    radial-gradient(520px 360px at 68% 88%, rgba(107,106,58,.10), transparent 62%);
  transform: translate3d(0,0,0);
  animation: jw-aurora 18s ease-in-out infinite alternate;
}

@keyframes jw-aurora{
  0%{ transform: translate3d(-1.2%, -0.6%, 0) scale(1.02); }
  100%{ transform: translate3d(1.4%, 0.8%, 0) scale(1.04); }
}

@media (prefers-reduced-motion: reduce){
  body::after{ animation: none; }
}

a{ color:inherit; }
a:hover{ color: var(--accent2); }

/* Premium underline for content links */
main a:not(.btn):not(.icon):not(.brand-link):not(.lang-switch){
  text-decoration: none;
  background-image: linear-gradient(90deg, rgba(183,122,74,.55), rgba(110,138,116,.65));
  background-size: 100% 1px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size .22s ease;
}
main a:not(.btn):not(.icon):not(.brand-link):not(.lang-switch):hover{
  background-size: 100% 2px;
}
:focus-visible{ outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 10px; }

.skip{
  position:absolute;
  left:-999px;
  top:10px;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow2);
  z-index: 1000;
}
.skip:focus{ left: 20px; }

.wrap{ max-width: var(--max); margin:0 auto; padding:0 20px; }
.small{ font-size: 14px; color: var(--muted); }
.kicker{
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}

h1,h2,h3{
  font-family: "Fraunces", ui-serif, "Iowan Old Style","Palatino Linotype",Palatino,Georgia,serif;
  letter-spacing: .2px;
}
h1{ font-size: clamp(34px, 3.6vw, 52px); line-height: 1.08; margin: 10px 0 0; }
h2{ font-size: clamp(26px, 2.4vw, 36px); line-height: 1.18; margin: 10px 0 0; }
h3{ font-size: 20px; line-height: 1.25; margin: 0; }

/* Smaller display heading (used for the "Harmaniac" block on the homepage) */
.h2--sm{ font-size: clamp(20px, 2.0vw, 28px); line-height: 1.2; margin-top: 6px; }

/* Header / nav */
header{
  position:sticky;
  top:0;
  z-index:50;
  background: rgba(246,243,234,.70);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
html[data-theme="dark"] header{ background: rgba(11,15,13,.58); }

.nav{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 12px 0;
  gap: 12px;
}
.brand{
  font-weight: 720;
  letter-spacing: .2px;
}
.brand-link{ text-decoration:none; display:flex; flex-direction:column; gap:2px; }
.brand-name{ font-size: 15px; display:flex; align-items:center; gap:10px; }
.brand-logo{ width:60px; height:auto; flex:0 0 auto; }

.brand-role{ font-size: 12px; color: var(--muted); }

.menu{
  display:flex;
  align-items:center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 14px;
}
.menu a{
  text-decoration:none;
  position: relative;
  padding: 9px 12px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}
.menu a::after{
  content:"";
  position:absolute;
  left: 12px;
  right: 12px;
  bottom: 6px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(183,122,74,.55), transparent);
  transform: scaleX(0);
  transform-origin: 50% 50%;
  transition: transform .22s ease;
  opacity: .9;
}
.menu a:hover::after,
.menu a[aria-current="page"]::after{
  transform: scaleX(1);
}
.menu a:hover{ background: rgba(169,185,167,.16); border-color: rgba(110,138,116,.28); transform: translateY(-1px); }
.menu a[aria-current="page"]{
  background: rgba(169,185,167,.22);
  border-color: rgba(110,138,116,.32);
}

.icons{ display:flex; align-items:center; gap:10px; }
.icon{
  width: 52px; height: 52px;
  display:inline-flex; align-items:center; justify-content:center;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface2);
  box-shadow: var(--shadow2);
  transition: transform .18s ease, background .18s ease;
}
.icon:hover{ transform: translateY(-1px); background: var(--surface); }
.icon svg{ width: 30px; height:30px; opacity:.92; }

/* Buttons */
.btn{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding: 12px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow2);
  text-decoration:none;
  font-size: 14px;
  transition: transform .18s ease, background .18s ease, filter .18s ease;
}
.btn:hover{ transform: translateY(-1px); }
.btn:active{ transform: translateY(0); }
.btn.primary{
  background: linear-gradient(135deg, var(--accent), rgba(47,74,58,.86));
  color: #fff;
  border-color: rgba(47,74,58,.38);
}
.btn.primary:hover{ filter: brightness(1.06); }

/* Sections */
main{ padding-bottom: 56px; }
.section{ padding: 56px 0; }
.hr{ border:0; border-top: 1px solid var(--border); margin: 18px 0; }

.hero{
  position: relative;
  padding: 72px 0 52px;
  overflow:hidden;
}
.hero::after{
  content:"";
  position:absolute; inset:-2px;
  background: radial-gradient(800px 380px at 25% 0%, rgba(169,185,167,.22), transparent 60%),
              radial-gradient(620px 340px at 85% 20%, rgba(110,138,116,.15), transparent 55%);
  pointer-events:none;
}
.hero > .wrap{ position: relative; z-index: 1; }
.hero .lead{
  font-size: 17px;
  color: var(--muted);
  max-width: 62ch;
}

/* Cards */
.card{
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow:hidden;
}
.pad{ padding: 18px; }
.card-title{
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}
.pill{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(169,185,167,.14);
  font-size: 12px;
  color: var(--text);
}

/* Grid system */
.grid{
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}
.col-12{ grid-column: span 12; }
.col-6{ grid-column: span 6; }
@media (max-width: 900px){
  .col-6{ grid-column: span 12; }
}

/* Project cards (Zen Aura bento) */
.project-card{ display:flex; flex-direction:column; gap: 12px; position: relative; }
.project-card::before{
  content:"";
  position:absolute; inset:0;
  border-radius: var(--radius);
  pointer-events:none;
  background: radial-gradient(520px 220px at 20% 0%, rgba(110,138,116,.12), transparent 60%),
              radial-gradient(520px 220px at 85% 20%, rgba(183,122,74,.10), transparent 62%);
  opacity: .9;
}
.project-card > *{ position: relative; }

.project-screen-btn{
  width: 100%;
  border: 0;
  padding: 0;
  background: none;
  cursor: pointer;
  text-align: left;
}
.project-screen{
  position: relative;
  width: 100%;
  aspect-ratio: 16/10;
  border-radius: calc(var(--radius2) + 4px);
  overflow:hidden;
  border: 1px solid rgba(47,74,58,.18);
  box-shadow: 0 18px 46px rgba(11,18,14,.14);
  background: radial-gradient(240px 160px at 30% 30%, rgba(169,185,167,.28), transparent 60%),
              linear-gradient(135deg, rgba(47,74,58,.18), rgba(110,138,116,.10));
}
.project-screen img{ width:100%; height:100%; object-fit: cover; display:block; transform: scale(1.01); transition: transform .35s ease; }
.project-screen::after{
  content:"";
  position:absolute; inset:0;
  background: linear-gradient(180deg, rgba(0,0,0,.00), rgba(0,0,0,.22));
  pointer-events:none;
}
.project-screen-btn:hover .project-screen img{ transform: scale(1.045); }
.project-screen-btn:hover .project-screen{ box-shadow: 0 24px 60px rgba(11,18,14,.16); }

.project-play{
  position:absolute; inset:0;
  display:grid;
  place-items:center;
  pointer-events:none;
}
.project-play span{
  width: 44px; height:44px;
  border-radius: 999px;
  display:grid; place-items:center;
  color: #fff;
  border: 1px solid rgba(255,255,255,.32);
  background: rgba(11,15,13,.36);
  backdrop-filter: blur(8px);
  box-shadow: 0 10px 24px rgba(0,0,0,.25);
}

.project-head{ display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap: 10px; }
.project-name{ font-weight: 720; letter-spacing: .2px; }
.project-meta{ color: var(--muted); font-size: 14px; }
.project-card p{ margin: 0; }
.project-media{ margin-top: 6px; display:grid; gap: 10px; }
.project-media .media-row{ display:flex; flex-wrap:wrap; gap:10px; }

.pill.pill-copper{
  background: rgba(183,122,74,.12);
  border-color: rgba(183,122,74,.22);
}

/* Project video tiles ("small screens") */
.video-tile{
  width: 100%;
  display:flex;
  align-items:center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--surface2);
  box-shadow: var(--shadow2);
  cursor: pointer;
  text-align: left;
  transition: transform .18s ease, background .18s ease;
}
.video-tile:hover{ background: var(--surface); transform: translateY(-1px); }
.video-tile:active{ transform: translateY(0); }

.video-screen-shell{ position: relative; flex: 0 0 auto; width: 128px; }
.video-screen{
  position: relative;
  aspect-ratio: 16/10;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 10px 22px rgba(11,18,14,.12);
  background: radial-gradient(120px 80px at 40% 30%, rgba(169,185,167,.28), transparent 60%),
              linear-gradient(135deg, rgba(47,74,58,.18), rgba(110,138,116,.10));
}
.video-screen img{ width:100%; height:100%; object-fit:cover; display:block; }
.video-screen::before{
  content:"";
  position:absolute; inset:0;
  background: linear-gradient(180deg, rgba(0,0,0,.06), rgba(0,0,0,.22));
  pointer-events:none;
}
.video-play{ position:absolute; inset:0; display:grid; place-items:center; }
.video-play > span{
  width: 34px; height:34px;
  border-radius: 999px;
  display:grid; place-items:center;
  background: rgba(255,255,255,.86);
  border: 1px solid rgba(0,0,0,.12);
  box-shadow: 0 10px 22px rgba(0,0,0,.12);
  font-size: 14px;
}
html[data-theme="dark"] .video-screen::before{ background: linear-gradient(180deg, rgba(0,0,0,.20), rgba(0,0,0,.55)); }
html[data-theme="dark"] .video-play > span{ background: rgba(18,24,20,.78); border-color: rgba(255,255,255,.16); color:#fff; }

.video-meta{ display:flex; flex-direction:column; gap: 2px; min-width: 0; }
.video-title{ font-weight: 700; font-size: 14px; line-height: 1.25; }
.video-note{ font-size: 12px; color: var(--muted); }

/* Media frames */
.media-frame{
  width: 100%;
  border-radius: var(--radius2);
  border: 1px solid var(--border);
  overflow:hidden;
  background: rgba(0,0,0,.08);
}
html[data-theme="dark"] .media-frame{ background: rgba(255,255,255,.06); }
.media-aspect-16x9{ aspect-ratio: 16/9; }
.media-frame iframe, .media-frame video{
  width:100%; height:100%;
  display:block;
}

/* Media lists */
.media-list{ display:grid; gap: 12px; }
.media-item{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--surface2);
}
.media-item strong{ font-size: 14px; }
.media-item .btn{ box-shadow:none; }

/* Gallery (masonry-style) */
.gallery{
  column-count: 3;
  column-gap: 14px;
}
@media (max-width: 900px){ .gallery{ column-count: 2; } }
@media (max-width: 520px){ .gallery{ column-count: 1; } }

.gi{
  break-inside: avoid;
  margin: 0 0 14px;
}
/* Give "wide" shots a full-row editorial feel */
.gi.wide{ column-span: all; }

.gi img{
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius2);
  border: 1px solid var(--border);
  box-shadow: var(--shadow2);
  cursor: zoom-in;
  transition: transform .22s ease, filter .22s ease;
}
.gi img:hover{ transform: translateY(-2px); filter: saturate(1.04) contrast(1.02); }

/* Footer */
footer{ padding: 56px 0; border-top: 1px solid var(--border); }
.footer-grid{
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 18px;
}
@media (max-width: 900px){ .footer-grid{ grid-template-columns: 1fr; } }
.sep{ border:0; border-top: 1px solid var(--border); margin: 16px 0; }

/* Modal */
dialog{
  width: min(980px, calc(100% - 24px));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 0;
  z-index: 1000;
}
/* Some mobile browsers render <dialog> in the page flow.
   Force it to behave like a real viewport modal when open. */
dialog[open]{
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
  max-height: min(82vh, 720px);
  overflow: auto;
}
@media (max-width: 520px){
  dialog[open]{ max-height: 86vh; }
}
dialog::backdrop{
  background: rgba(0,0,0,.46);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 220ms ease;
}
dialog[open]::backdrop{ opacity: 1; }
dialog[open]{
  animation: jwDialogIn 260ms cubic-bezier(.2,.8,.2,1);
}
@keyframes jwDialogIn{
  from{ opacity: 0; transform: translateY(10px) scale(.98); }
  to{ opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes jwBackdropIn{
  from{ opacity: 0; }
  to{ opacity: 1; }
}
@media (prefers-reduced-motion: reduce){
  dialog::backdrop{ transition: none; }
  dialog[open]{ animation: none; }
}
.modal-backdrop{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.46);
  backdrop-filter: blur(4px);
  z-index: 999;
  opacity: 0;
  animation: jwBackdropIn 220ms ease forwards;
}
body.modal-open{ overflow: hidden; }
.modal-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}
.modal-body{ padding: 16px; }
.close{
  border: 1px solid var(--border);
  background: var(--surface2);
  padding: 8px 10px;
  border-radius: 999px;
  cursor:pointer;
}
.modal-img{
  width: 100%;
  height: auto;
  border-radius: var(--radius2);
  display:block;
}

/* Lightbox layout (inside dialog) */
.jw-lightbox{
  display:grid;
  grid-template-columns: 44px 1fr 44px;
  align-items:center;
  gap: 10px;
}
@media (max-width: 520px){
  .jw-lightbox{ grid-template-columns: 36px 1fr 36px; }
}
.jw-lb-btn{
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface2);
  cursor:pointer;
  box-shadow: var(--shadow2);
  font-size: 22px;
  line-height: 1;
}

/* Utilities */
.mt-0{ margin-top: 0; }
.mt-6{ margin-top: 6px; }
.mt-10{ margin-top: 10px; }
.mt-12{ margin-top: 12px; }
.mt-14{ margin-top: 14px; }
.mb-10{ margin-bottom: 10px; }
.mb-12{ margin-bottom: 12px; }
.mb-14{ margin-bottom: 14px; }
.w-100{ width: 100%; }
.flex-wrap-gap{ display:flex; flex-wrap:wrap; gap: 10px; align-items:center; }
.muted-inline{ color: var(--muted); }

/* A11y */
.sr-only{
  position:absolute; width:1px; height:1px; padding:0; margin:-1px;
  overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0;
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce){
  *{ scroll-behavior:auto !important; transition:none !important; animation:none !important; }
  .gi img:hover{ transform:none; }
  .menu a:hover, .btn:hover, .icon:hover{ transform:none; }
}


/* Interactions (jw-interactions.js) */
[data-reveal]{ opacity:0; transform: translateY(10px); transition: opacity .45s ease, transform .45s ease; transition-delay: var(--reveal-delay, 0ms); }
[data-reveal].is-in{ opacity:1; transform: none; }

[data-tilt]{ transform: perspective(900px) rotateX(var(--tilt-rx, 0deg)) rotateY(var(--tilt-ry, 0deg)); transform-style: preserve-3d; transition: transform .18s ease; }
[data-tilt].is-tilting{ transition: none; }

html.jw-ready body{ opacity:1; }
html.jw-leaving body{ opacity:.0; transition: opacity .18s ease; }

/* Home mini audio player */
.jw-audio{
  display:flex;
  align-items:center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--surface2);
}
.jw-audio-btn{
  width: 38px; height: 38px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  cursor:pointer;
  box-shadow: var(--shadow2);
}
.jw-audio-bar{
  flex: 1 1 auto;
  height: 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(0,0,0,.06);
  overflow:hidden;
  cursor:pointer;
}
html[data-theme="dark"] .jw-audio-bar{ background: rgba(255,255,255,.06); }
.jw-audio-fill{
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, rgba(110,138,116,.8), rgba(47,74,58,.85));
}
.jw-audio-time{ font-size: 12px; color: var(--muted); white-space: nowrap; }


/* Layout helpers used in existing pages */
.nav-right{ display:flex; align-items:center; gap: 12px; }

/* 12-col spans */
.col-1{ grid-column: span 1; } .col-2{ grid-column: span 2; } .col-3{ grid-column: span 3; }
.col-4{ grid-column: span 4; } .col-5{ grid-column: span 5; } .col-7{ grid-column: span 7; }
.col-8{ grid-column: span 8; } .col-9{ grid-column: span 9; } .col-10{ grid-column: span 10; } .col-11{ grid-column: span 11; }
@media (max-width: 900px){
  .col-5,.col-7,.col-8,.col-9,.col-10,.col-11{ grid-column: span 12; }
}

/* Lists */
.list{
  margin: 12px 0 0;
  padding-left: 18px;
}
.list li{ margin: 8px 0; color: var(--muted); }
.list strong{ color: var(--text); }

/* Notes */
.note{
  margin-top: 10px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px dashed var(--border);
  background: rgba(169,185,167,.10);
  color: var(--muted);
}

/* Home hero media */
.hero-media{
  position:absolute;
  inset:0;
  overflow:hidden;
  z-index:0;
}
.hero-video{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .7s ease;
}
.hero-video.is-on{ opacity: 1; }
.hero-wash{
  position:absolute;
  inset:0;
  z-index:1;
  background: radial-gradient(900px 420px at 18% 10%, rgba(246,243,234,.35), transparent 62%),
              linear-gradient(180deg, rgba(246,243,234,.30), rgba(246,243,234,.86));
  pointer-events:none;
}
html[data-theme="dark"] .hero-wash{
  background: radial-gradient(900px 420px at 18% 10%, rgba(11,15,13,.12), transparent 60%),
              linear-gradient(180deg, rgba(11,15,13,.22), rgba(11,15,13,.78));
}
.hero-inner{
  position: relative;
  z-index: 2;
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 18px;
  align-items: start;
}
@media (max-width: 900px){ .hero-inner{ grid-template-columns: 1fr; } }

.hero-name{
  font-size: 14px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}
.cta{ display:flex; flex-wrap:wrap; gap: 10px; margin-top: 14px; }

/* Home — Selected projects */
.sel-stack{ display:grid; gap: 12px; margin-top: 12px; }
.sel-card{
  display:grid;
  grid-template-columns: 98px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.55);
  box-shadow: var(--shadow1);
  position: relative;
  overflow: hidden;
}
html[data-theme="dark"] .sel-card{ background: rgba(18,24,20,.42); }
.sel-screen{
  width: 98px;
  height: 66px;
  border-radius: 14px;
  border: 1px solid var(--border);
  overflow: hidden;
  background: rgba(0,0,0,.04);
  position: relative;
  cursor: pointer;
}
.sel-screen img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.02);
  transition: transform .35s ease, filter .35s ease;
}
.sel-play{
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 18px;
  color: rgba(255,255,255,.92);
  text-shadow: 0 10px 30px rgba(0,0,0,.45);
  opacity: .95;
}
.sel-badge{
  position: absolute;
  left: 8px;
  bottom: 8px;
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(0,0,0,.45);
  color: #fff;
  backdrop-filter: blur(6px);
}
.sel-screen-link{ display:block; text-decoration:none; }
.sel-title{ font-size: 16px; line-height: 1.15; }
.sel-meta{ font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.sel-links{ margin-top: 6px; font-size: 12.5px; color: var(--muted); }
.sel-link{ color: var(--text); text-decoration: none; border-bottom: 1px solid transparent; }
.sel-link:hover{ border-bottom-color: currentColor; }
.dot{ margin: 0 6px; opacity: .6; }

@media (hover:hover){
  .sel-card:hover .sel-screen img{ transform: scale(1.06); filter: saturate(1.06) contrast(1.03); }
  .sel-card:hover{ box-shadow: var(--shadow2); }
}
@media (max-width: 520px){
  .sel-card{ grid-template-columns: 1fr; }
  .sel-screen{ width: 100%; height: 160px; }
}



/* Fixed “Now playing” pill */
.jw-now{
  position: fixed;
  right: 14px;
  bottom: calc(env(safe-area-inset-bottom) + 14px);
  z-index: 9998;
  max-width: min(320px, calc(100% - 28px));
  display: none;
  align-items:center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}
.jw-now.is-on{ display: inline-flex; }
.jw-now strong{ font-size: 13px; }
.jw-now .jw-now-sub{ font-size: 12px; color: var(--muted); }
.jw-now button{
  width: 34px; height: 34px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface2);
  cursor:pointer;
}

/* Floating Book / Contact */
.jw-float-contact{
  position: fixed;
  left: 14px;
  bottom: calc(env(safe-area-inset-bottom) + 14px);
  z-index: 9997;
}
.jw-float-contact a{
  display:inline-flex;
  align-items:center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 999px;
  border: 1px solid rgba(47,74,58,.22);
  background: rgba(246,243,234,.74);
  box-shadow: var(--shadow);
  text-decoration:none;
}
html[data-theme="dark"] .jw-float-contact a{ background: rgba(11,15,13,.62); }
.jw-float-contact a:hover{ transform: translateY(-1px); }

/* Image cover helpers */
.img-cover-lg,.img-cover-sm{
  width:100%;
  object-fit: cover;
  display:block;
}
.img-cover-lg{ height: 420px; }
.img-cover-sm{ height: 220px; }
@media (max-width: 900px){ .img-cover-lg{ height: 320px; } }


/* Gear (auto-render) */
.gear-grid{
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
  margin-top: 18px;
}
.gear-card{
  grid-column: span 12;
  padding: 18px 18px;
  border-radius: 18px;
  background: var(--surface-1, rgba(255,255,255,.72));
  border: 1px solid var(--line, rgba(0,0,0,.08));
  box-shadow: 0 10px 30px rgba(0,0,0,.05);
}
.gear-card h3{
  margin: 0;
  font-size: 1.05rem;
  letter-spacing: .01em;
}
.gear-list{
  margin: 10px 0 0;
  padding-left: 1.1rem;
}
.gear-list li{
  margin: .22rem 0;
}
@media (min-width: 840px){
  .gear-card{ grid-column: span 4; }
}


/* Modal (cinema) */
.jw-modal{ position: fixed; inset: 0; z-index: 1000; display: none; }
.jw-modal.is-open{ display: block; }
.jw-modal__backdrop{ position: absolute; inset: 0; background: rgba(20,22,20,.55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; transition: opacity .18s ease; }
.jw-modal.is-open .jw-modal__backdrop{ opacity: 1; }
.jw-modal__panel{ position: absolute; left: 50%; top: 50%; transform: translate(-50%, -46%) scale(.98); width: min(920px, 92vw); max-height: 88vh; background: rgba(255,255,255,.92); border: 1px solid rgba(40,60,45,.18); border-radius: 18px; box-shadow: 0 24px 70px rgba(0,0,0,.25); overflow: hidden; opacity: 0; transition: opacity .22s ease, transform .22s ease; }
.jw-modal.is-open .jw-modal__panel{ opacity: 1; transform: translate(-50%, -50%) scale(1); }
html.jw-modal-lock, html.jw-modal-lock body{ overflow: hidden; }
.jw-modal__close{ position: absolute; top: 10px; right: 10px; width: 38px; height: 38px; border-radius: 12px; border: 1px solid rgba(40,60,45,.18); background: rgba(255,255,255,.9); cursor: pointer; font-size: 22px; line-height: 1; }
.jw-modal__title{ padding: 14px 52px 10px 16px; font-weight: 600; font-size: 14px; opacity: .85; }
.jw-modal__body{ padding: 0 16px 16px; }
.jw-modal__video, .jw-modal__iframe{ width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: 14px; background: #000; }
@media (prefers-reduced-motion: reduce){
  .jw-modal__backdrop, .jw-modal__panel{ transition: none !important; }
}
