/* ==========================================================================
   Lexfolio — Rylee Simpson portfolio
   Lean, flat surfaces: no layered blur shadows, no fixed gradient layers,
   no infinite animations. Motion is opacity/transform only.
   ========================================================================== */

:root{
  --bg:#f6f7f9;
  --surface:#ffffff;
  --surface-2:#eef0f3;
  --text:#0d1117;
  --muted:#5b6472;
  --line:rgba(13,17,23,.09);
  --line-strong:rgba(13,17,23,.16);
  --accent:#0a8fe0;
  --accent-soft:rgba(10,143,224,.12);
  --invert-bg:#0d1117;
  --invert-text:#ffffff;
  --stage:#1b1e25;
  --shadow:0 1px 2px rgba(13,17,23,.06), 0 8px 24px rgba(13,17,23,.06);
  --shadow-lg:0 2px 4px rgba(13,17,23,.06), 0 24px 48px rgba(13,17,23,.12);

  --radius:16px;
  --radius-sm:10px;
  --max:1240px;
  --gutter:clamp(16px, 4vw, 40px);
  --topbar-h:64px;

  --font:"Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-display:"Inter Tight", "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --ease:cubic-bezier(.2,.8,.2,1);
  color-scheme:light;
}

html[data-theme="dark"]{
  --bg:#0a0b0d;
  --surface:#121418;
  --surface-2:#1a1d23;
  --text:#eef1f5;
  --muted:#99a2b0;
  --line:rgba(255,255,255,.08);
  --line-strong:rgba(255,255,255,.16);
  --accent:#5cc2ff;
  --accent-soft:rgba(92,194,255,.14);
  --invert-bg:#eef1f5;
  --invert-text:#0a0b0d;
  --stage:#1a1d23;
  --shadow:0 1px 2px rgba(0,0,0,.4);
  --shadow-lg:0 24px 48px rgba(0,0,0,.5);
  color-scheme:dark;
}

@font-face{
  font-family:"Metropolis";
  src:url("assets/fonts/metropolis/Metropolis-ExtraBold.otf") format("opentype");
  font-weight:800;
  font-style:normal;
  font-display:swap;
}

*,*::before,*::after{box-sizing:border-box}
img,video,svg{max-width:100%;display:block}
html{
  scroll-behavior:smooth;
  scroll-padding-top:calc(var(--topbar-h) + 16px);
  -webkit-text-size-adjust:100%;
}
body{
  margin:0;
  font-family:var(--font);
  font-size:16px;
  line-height:1.6;
  color:var(--text);
  background:var(--bg);
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}
a{color:inherit;text-decoration:none}
button,input,textarea,select{font:inherit;color:inherit}
h1,h2,h3{font-family:var(--font-display);margin:0;letter-spacing:-.025em;line-height:1.1;font-weight:700}
p{margin:0}
:focus-visible{outline:2px solid var(--accent);outline-offset:3px;border-radius:6px}
::selection{background:var(--accent-soft)}

.wrap{width:100%;max-width:var(--max);margin:0 auto;padding:0 var(--gutter)}
.skip{position:absolute;left:-999px;top:8px;z-index:200;padding:10px 14px;border-radius:8px;background:var(--surface);box-shadow:var(--shadow-lg)}
.skip:focus{left:16px}
.small{font-size:13px;color:var(--muted)}
.msg{margin:0;font-size:14px;color:var(--muted)}

svg{fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  height:46px;padding:0 20px;border-radius:999px;
  border:1px solid var(--line-strong);
  background:transparent;
  font-size:15px;font-weight:600;letter-spacing:-.005em;
  cursor:pointer;white-space:nowrap;
  transition:background-color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease), color .2s var(--ease);
}
.btn:hover{border-color:var(--text);background:var(--surface)}
.btn:active{transform:scale(.98)}
.btn svg{width:18px;height:18px}
.btn.primary{background:var(--invert-bg);color:var(--invert-text);border-color:var(--invert-bg)}
.btn.primary:hover{background:var(--accent);border-color:var(--accent);color:#fff}
.btn-sm{height:38px;padding:0 16px;font-size:14px}

.icon-btn{
  width:40px;height:40px;display:inline-grid;place-items:center;
  border-radius:999px;border:1px solid transparent;background:transparent;cursor:pointer;
  color:var(--text);transition:background-color .2s var(--ease), border-color .2s var(--ease);
}
.icon-btn:hover{background:var(--surface-2)}
.icon-btn svg{width:20px;height:20px}

/* Legacy pill (used by login / register / settings pages) */
.pill{
  display:inline-flex;align-items:center;gap:8px;
  height:38px;padding:0 14px;border-radius:999px;
  border:1px solid var(--line);background:transparent;cursor:pointer;
  font-size:14px;font-weight:500;color:var(--muted);
  transition:color .2s var(--ease), border-color .2s var(--ease);
}
.pill:hover{color:var(--text);border-color:var(--line-strong)}
.pill.primary{background:var(--invert-bg);color:var(--invert-text);border-color:var(--invert-bg)}
.theme-toggle-icon{width:16px;text-align:center}

/* Theme toggle icons */
.theme-toggle .i-moon{display:none}
html[data-theme="dark"] .theme-toggle .i-sun{display:none}
html[data-theme="dark"] .theme-toggle .i-moon{display:block}

/* ---------- Top bar ---------- */
.top-sentinel{position:absolute;top:0;height:1px;width:1px}
.topbar{
  position:sticky;top:0;z-index:80;
  background:var(--bg);
  border-bottom:1px solid transparent;
  transition:border-color .25s var(--ease);
}
.topbar.scrolled{border-bottom-color:var(--line)}
.topbar-inner{display:flex;align-items:center;justify-content:space-between;gap:16px;height:var(--topbar-h)}
.brand{display:flex;align-items:center;gap:12px;min-width:0}
.brand > span:last-child{display:flex;flex-direction:column;line-height:1.2;min-width:0}
.brand-mark{
  width:36px;height:36px;flex:none;border-radius:10px;
  display:grid;place-items:center;
  background:var(--invert-bg);color:var(--invert-text);
}
.brand-mark::before{content:"RS";font-family:var(--font-display);font-weight:700;font-size:13px;letter-spacing:.02em}
.brand-name{font-family:var(--font-display);font-weight:700;font-size:15px;letter-spacing:-.01em;white-space:nowrap}
.brand-sub{font-size:12px;color:var(--muted)}

.nav{display:flex;align-items:center;gap:4px}
.nav-link{
  padding:8px 14px;border-radius:999px;font-size:14px;font-weight:500;color:var(--muted);
  transition:color .2s var(--ease), background-color .2s var(--ease);
}
.nav-link:hover{color:var(--text)}
.nav-link.active{color:var(--text);background:var(--surface-2)}
.topbar-actions{display:flex;align-items:center;gap:8px}
.menu-btn{display:none}

@media (max-width: 820px){
  .menu-btn{display:inline-grid}
  .hide-sm{display:none}
  #primaryNav{
    position:absolute;left:0;right:0;top:var(--topbar-h);
    flex-direction:column;align-items:stretch;gap:2px;
    padding:8px var(--gutter) 16px;
    background:var(--bg);border-bottom:1px solid var(--line);
    opacity:0;visibility:hidden;transform:translateY(-6px);
    transition:opacity .2s var(--ease), transform .2s var(--ease), visibility 0s linear .2s;
  }
  .nav-open #primaryNav{opacity:1;visibility:visible;transform:none;transition-delay:0s}
  .nav-link{padding:12px 14px;font-size:16px}
}

/* ---------- Hero ---------- */
.hero{
  display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);
  gap:clamp(32px,5vw,72px);align-items:center;
  padding-top:clamp(40px,7vw,96px);padding-bottom:clamp(40px,6vw,72px);
}
.hero-badge{
  display:inline-flex;align-items:center;gap:10px;
  padding:4px 14px 4px 4px;border-radius:999px;
  border:1px solid var(--line);background:var(--surface);
  font-size:13px;font-weight:500;color:var(--muted);
}
.hero-avatar{width:30px;height:30px;border-radius:50%;object-fit:cover;object-position:center 18%}
.status-dot{
  display:inline-block;width:8px;height:8px;margin-right:8px;border-radius:50%;
  background:#22c55e;box-shadow:0 0 0 3px rgba(34,197,94,.18);vertical-align:1px;
}
.hero-copy{container-type:inline-size}
.hero h1{
  margin-top:22px;
  font-family:"Metropolis", var(--font-display);
  font-weight:800;
  /* Sized to the column width so the full name always stays on one line. */
  font-size:min(96px, 14cqi);
  letter-spacing:-.03em;line-height:1;
  white-space:nowrap;
}
.hero-role{
  margin-top:18px;
  font-family:var(--font-display);font-weight:600;
  font-size:clamp(18px,2vw,22px);letter-spacing:-.01em;color:var(--text);
}
.hero-summary{margin-top:14px;max-width:54ch;font-size:17px;color:var(--muted)}
.hero-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:30px}

.stats{display:grid;grid-template-columns:repeat(3,auto);justify-content:start;margin:40px 0 0;padding:0}
.stat{padding:0 28px;border-left:1px solid var(--line)}
.stat:first-child{padding-left:0;border-left:0}
.stat dt{font-size:13px;color:var(--muted)}
.stat dd{margin:0 0 2px;font-family:var(--font-display);font-weight:700;font-size:32px;letter-spacing:-.03em;line-height:1.1}
.stat dd small{font-size:15px;font-weight:600;color:var(--muted);margin-left:4px;letter-spacing:0}
.stat{display:flex;flex-direction:column-reverse}

.hero-reel{position:relative}
.reel{
  position:relative;display:block;width:100%;padding:0;border:0;cursor:pointer;
  aspect-ratio:16/10;border-radius:20px;overflow:hidden;
  background:var(--stage) center/cover no-repeat;
  box-shadow:var(--shadow-lg);
}
.reel video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:0;transition:opacity .6s var(--ease)}
.reel video.ready{opacity:1}
.reel-overlay{
  position:absolute;inset:0;display:flex;flex-direction:column;justify-content:space-between;align-items:flex-start;
  padding:18px;text-align:left;color:#fff;
  background:linear-gradient(to top, rgba(0,0,0,.62), rgba(0,0,0,0) 45%);
}
.play-chip{
  align-self:flex-end;display:inline-flex;align-items:center;gap:6px;
  height:34px;padding:0 14px 0 10px;border-radius:999px;
  background:rgba(255,255,255,.92);color:#0d1117;font-size:13px;font-weight:600;
  transition:transform .25s var(--ease);
}
.play-chip svg{width:16px;height:16px;fill:currentColor;stroke:none}
.reel:hover .play-chip{transform:scale(1.05)}
.reel-caption{display:flex;flex-direction:column;gap:2px}
.reel-label{font-size:12px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;opacity:.75}
.reel-title{font-family:var(--font-display);font-weight:600;font-size:18px;letter-spacing:-.01em}

/* ---------- Clients strip ---------- */
.clients{
  display:flex;align-items:center;gap:24px;
  padding-top:22px;padding-bottom:22px;
}
.clients{border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.clients-label{flex:none;font-size:12px;font-weight:600;letter-spacing:.1em;text-transform:uppercase;color:var(--muted)}
.clients-list{
  display:flex;flex-wrap:wrap;gap:8px 32px;margin:0;padding:0;list-style:none;
  font-family:var(--font-display);font-weight:600;font-size:16px;color:var(--muted);letter-spacing:-.01em;
}

/* ---------- Sections ---------- */
.section{padding-top:clamp(72px,10vw,128px)}
.section-head{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-bottom:28px}
.eyebrow{font-size:13px;font-weight:600;letter-spacing:.1em;text-transform:uppercase;color:var(--accent);margin-bottom:12px}
.section h2{font-size:clamp(32px,4.4vw,52px);letter-spacing:-.035em}
.section-sub{margin-top:12px;max-width:60ch;font-size:17px;color:var(--muted)}

/* ---------- Work ---------- */
.filters{
  display:flex;gap:8px;margin-bottom:28px;
  overflow-x:auto;scrollbar-width:none;-webkit-overflow-scrolling:touch;
  margin-left:calc(var(--gutter) * -1);margin-right:calc(var(--gutter) * -1);
  padding:2px var(--gutter);
}
.filters::-webkit-scrollbar{display:none}
.filter{
  flex:none;display:inline-flex;align-items:center;gap:8px;
  height:40px;padding:0 16px;border-radius:999px;
  border:1px solid var(--line);background:transparent;cursor:pointer;
  font-size:14px;font-weight:500;color:var(--muted);
  transition:color .2s var(--ease), border-color .2s var(--ease), background-color .2s var(--ease);
}
.filter:hover{color:var(--text);border-color:var(--line-strong)}
.filter[aria-selected="true"]{background:var(--invert-bg);border-color:var(--invert-bg);color:var(--invert-text)}
.filter-count{font-size:12px;opacity:.6;font-variant-numeric:tabular-nums}

.work-grid{
  display:grid;grid-template-columns:repeat(3,minmax(0,1fr));
  gap:clamp(16px,2.4vw,28px) clamp(16px,2vw,24px);
}
@media (max-width: 980px){.work-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width: 560px){.work-grid{grid-template-columns:1fr}}

.work-card{display:flex;flex-direction:column;gap:14px;min-width:0}
.work-media{
  position:relative;display:block;width:100%;padding:0;border:0;cursor:pointer;
  aspect-ratio:16/10;border-radius:var(--radius);overflow:hidden;
  background:var(--surface-2);
  isolation:isolate;
}
.work-media img,
.work-media video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.work-media img{transition:transform .5s var(--ease), opacity .3s var(--ease)}
.work-media video{opacity:0;transition:opacity .3s var(--ease)}
.work-media video.ready{opacity:1}
.work-media:hover img{transform:scale(1.03)}
.work-media.is-image{background:var(--stage)}
.work-media.is-image img{object-fit:contain;padding:6%}
.work-media.is-image.light-stage{background:#fff}
.work-media .badge{
  position:absolute;left:12px;bottom:12px;z-index:2;
  display:inline-flex;align-items:center;gap:6px;
  height:28px;padding:0 10px;border-radius:999px;
  background:rgba(10,11,13,.72);color:#fff;font-size:12px;font-weight:600;
  opacity:0;transform:translateY(4px);transition:opacity .2s var(--ease), transform .2s var(--ease);
}
.work-media .badge svg{width:13px;height:13px;fill:currentColor;stroke:none}
.work-media:hover .badge,.work-media:focus-visible .badge{opacity:1;transform:none}
@media (hover: none){.work-media .badge{opacity:1;transform:none}}
.work-media:focus-visible{outline-offset:4px;border-radius:var(--radius)}

.work-meta{display:flex;flex-direction:column;gap:4px;padding:0 2px}
.work-title{
  font-family:var(--font-display);font-weight:600;font-size:17px;letter-spacing:-.01em;line-height:1.3;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;
}
.work-cat{font-size:14px;color:var(--muted)}

/* ---------- Expertise ---------- */
.expertise-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
@media (max-width: 1024px){.expertise-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width: 560px){.expertise-grid{grid-template-columns:1fr}}
.skill{
  display:flex;flex-direction:column;gap:12px;
  padding:28px 24px;border-radius:var(--radius);
  background:var(--surface);border:1px solid var(--line);
}
.skill-num{font-family:var(--font-display);font-weight:600;font-size:14px;color:var(--accent)}
.skill h3{font-size:20px;letter-spacing:-.02em;margin-top:24px}
.skill p{font-size:15px;color:var(--muted)}

.tools{display:flex;align-items:center;gap:24px;flex-wrap:wrap;margin-top:32px}
.tools-label{font-size:12px;font-weight:600;letter-spacing:.1em;text-transform:uppercase;color:var(--muted)}
.tools-list{display:flex;flex-wrap:wrap;gap:10px;margin:0;padding:0;list-style:none}
.tools-list li{
  display:inline-flex;align-items:center;gap:10px;
  height:44px;padding:0 16px 0 8px;border-radius:999px;
  border:1px solid var(--line);background:var(--surface);
  font-size:14px;font-weight:500;
}
.tools-list img{width:28px;height:28px;object-fit:contain}

/* ---------- About ---------- */
.about-grid{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr);gap:clamp(32px,6vw,80px);align-items:start}
@media (max-width: 860px){.about-grid{grid-template-columns:1fr}}
.about-photo{margin:0;position:sticky;top:calc(var(--topbar-h) + 24px)}
@media (max-width: 860px){.about-photo{position:static;max-width:320px}}
.about-photo img{width:100%;aspect-ratio:4/5;object-fit:cover;object-position:center 20%;border-radius:20px;background:var(--surface-2)}
.about-body{
  margin-top:24px;font-size:17px;line-height:1.75;color:var(--muted);
  white-space:pre-line;max-width:64ch;
}
.about-body::first-line{color:var(--text)}
.facts{
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0;margin:36px 0 0;
  border-top:1px solid var(--line);
}
.facts > div{padding:18px 0;border-bottom:1px solid var(--line)}
.facts > div:nth-child(odd){padding-right:16px}
.facts dt{font-size:13px;color:var(--muted)}
.facts dd{margin:2px 0 0;font-weight:600}
@media (max-width: 480px){.facts{grid-template-columns:1fr}}

/* ---------- Contact ---------- */
.contact-panel{
  display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.1fr);gap:clamp(32px,5vw,64px);
  padding:clamp(28px,5vw,56px);border-radius:24px;
  background:var(--surface);border:1px solid var(--line);
}
@media (max-width: 860px){.contact-panel{grid-template-columns:1fr}}
.contact-email{
  display:inline-flex;align-items:center;gap:10px;margin-top:28px;
  font-family:var(--font-display);font-weight:600;font-size:clamp(17px,2vw,20px);
  border-bottom:1px solid var(--line-strong);padding-bottom:4px;
  transition:color .2s var(--ease), border-color .2s var(--ease);
  overflow-wrap:anywhere;
}
.contact-email svg{width:20px;height:20px;flex:none}
.contact-email:hover{color:var(--accent);border-color:var(--accent)}

.contact-form{display:grid;grid-template-columns:1fr 1fr;gap:16px}
@media (max-width: 520px){.contact-form{grid-template-columns:1fr}}
.field-full{grid-column:1/-1}
.field{display:flex;flex-direction:column;gap:8px;margin:0}
.field label{font-size:13px;font-weight:500;color:var(--muted)}
.field input,
.field textarea,
.field select{
  width:100%;padding:12px 14px;border-radius:var(--radius-sm);
  border:1px solid var(--line-strong);background:var(--bg);
  font-size:15px;outline:none;
  transition:border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field textarea{min-height:150px;resize:vertical;line-height:1.5}
.field input:focus,
.field textarea:focus{border-color:var(--accent);box-shadow:0 0 0 4px var(--accent-soft)}
.form-actions{display:flex;align-items:center;gap:16px;flex-wrap:wrap;margin-top:4px}
.form-actions .msg{flex:1 1 220px}
.msg.ok{color:#16a34a}
.msg.error{color:#dc2626}
.msg a{text-decoration:underline}
.btn[disabled]{opacity:.6;cursor:progress}
.hp{position:absolute;left:-9999px;width:1px;height:1px;opacity:0}

/* ---------- Footer ---------- */
.footer{margin-top:clamp(72px,10vw,128px);border-top:1px solid var(--line);padding:32px 0 40px}
.footer-inner{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}
.footer-name{font-family:var(--font-display);font-weight:700;letter-spacing:-.01em}
.footer-links{display:flex;gap:24px;font-size:14px;color:var(--muted)}
.footer-links a:hover,.footer a:hover{color:var(--text)}
.footer-admin{opacity:.55}

/* ---------- Lightbox ---------- */
.lightbox{
  width:min(1200px, calc(100vw - 32px));max-width:none;max-height:calc(100dvh - 32px);
  padding:0;border:0;border-radius:20px;overflow:hidden;
  background:#0a0b0d;color:#eef1f5;
}
.lightbox::backdrop{background:rgba(5,6,8,.82)}
.lightbox[open]{animation:lb-in .22s var(--ease)}
@keyframes lb-in{from{opacity:0;transform:scale(.98)}}
.lightbox-inner{position:relative;display:flex;flex-direction:column;max-height:calc(100dvh - 32px)}
.lightbox-bar{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 14px 14px 22px;border-bottom:1px solid rgba(255,255,255,.08)}
.lightbox-text{min-width:0}
.lightbox-title{font-family:var(--font-display);font-weight:600;font-size:16px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.lightbox-cat{font-size:13px;color:#99a2b0}
.lightbox-actions{display:flex;align-items:center;gap:8px;flex:none}
.lightbox .btn{color:#eef1f5;border-color:rgba(255,255,255,.18)}
.lightbox .btn:hover{background:rgba(255,255,255,.08);border-color:rgba(255,255,255,.4)}
.lightbox .icon-btn{color:#eef1f5}
.lightbox .icon-btn:hover{background:rgba(255,255,255,.08)}
.lightbox-stage{display:grid;place-items:center;min-height:0;flex:1;background:#000}
.lightbox-stage video,
.lightbox-stage img{width:100%;height:auto;max-height:calc(100dvh - 32px - 70px);object-fit:contain}
.lightbox-stage img{padding:24px;background:#16181d}
.lightbox-stage.light img{background:#fff}
.lightbox-nav{
  position:absolute;top:50%;z-index:2;width:44px;height:44px;margin-top:10px;
  display:grid;place-items:center;border-radius:999px;border:0;cursor:pointer;
  background:rgba(10,11,13,.6);color:#fff;
  transition:background-color .2s var(--ease);
}
.lightbox-nav:hover{background:rgba(10,11,13,.9)}
.lightbox-nav svg{width:20px;height:20px}
.lightbox-nav.prev{left:12px}
.lightbox-nav.next{right:12px}
@media (max-width: 560px){
  .lightbox-nav{top:auto;bottom:12px;margin:0}
  .lightbox .btn{display:none}
}

/* ---------- Reveal on scroll (only when JS is running) ---------- */
.js [data-reveal]{opacity:0;transform:translateY(16px);transition:opacity .7s var(--ease), transform .7s var(--ease)}
.js [data-reveal].in{opacity:1;transform:none}
.work-card{animation:card-in .5s var(--ease) both}
@keyframes card-in{from{opacity:0;transform:translateY(10px)}}

@media (prefers-reduced-motion: reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{animation:none !important;transition:none !important}
  .js [data-reveal]{opacity:1;transform:none}
}

/* ---------- Responsive hero ---------- */
@media (max-width: 900px){
  .hero{grid-template-columns:1fr}
  .hero-reel{order:2}
  .clients{flex-direction:column;align-items:flex-start;gap:12px}
}
@media (max-width: 520px){
  .stats{grid-template-columns:repeat(3,minmax(0,1fr))}
  .stat{padding:0 12px}
  .stat dt{font-size:12px;line-height:1.35}
  .stat dd{font-size:26px}
  .hero-badge{font-size:12px}
  .clients-list{font-size:15px;gap:6px 20px}
}

/* ==========================================================================
   Auth pages (login / register / settings)
   ========================================================================== */
.auth{min-height:calc(100vh - 220px);display:grid;place-items:center;padding:48px 0}
.auth-card{
  width:min(440px,100%);padding:32px;border-radius:20px;
  background:var(--surface);border:1px solid var(--line);box-shadow:var(--shadow);
}
.auth-card h1{font-size:26px;margin:4px 0 12px}
.auth-card .field{margin:14px 0}
.auth-card .btn{margin-top:6px}

/* ==========================================================================
   Admin editor (visible only to logged-in admin)
   ========================================================================== */
.admin-fab{position:fixed;right:20px;bottom:20px;z-index:90;display:none}
.site-admin-session .admin-fab{display:block}
.admin-fab button{
  width:52px;height:52px;border-radius:16px;cursor:pointer;font-size:20px;
  border:1px solid var(--line-strong);background:var(--surface);box-shadow:var(--shadow-lg);
}
.admin-dock{
  position:fixed;right:20px;bottom:84px;z-index:90;
  width:min(400px, calc(100vw - 40px));max-height:calc(100vh - 160px);overflow:auto;
  display:none;padding:14px;border-radius:16px;
  background:var(--surface);border:1px solid var(--line-strong);box-shadow:var(--shadow-lg);
}
.admin-dock.open{display:block}
.admin-row{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.admin-row .btn,.admin-actions .btn{height:36px;padding:0 14px;font-size:13px}
.admin-note{margin:10px 2px 2px;color:var(--muted);font-size:12px;line-height:1.45}
.editable-on [data-edit],
.editable-on [data-edit-work-title],
.editable-on [data-edit-work-category]{outline:1.5px dashed var(--accent);outline-offset:4px;border-radius:4px}
[contenteditable="true"]{cursor:text}
.edit-remove{display:none}

.admin-panel{margin-top:12px;padding-top:10px;border-top:1px solid var(--line)}
.admin-panel-head{display:flex;justify-content:space-between;align-items:baseline;gap:10px}
.admin-panel-body{margin-top:10px;display:grid;gap:10px}
.admin-subhead{font-size:11px;color:var(--muted);font-weight:600;letter-spacing:.1em;text-transform:uppercase}
.admin-rowline{display:grid;gap:8px}
.admin-rowline input,.admin-rowline select{
  width:100%;padding:8px 10px;border-radius:8px;
  border:1px solid var(--line-strong);background:var(--bg);outline:none;font-size:13px;
}
.admin-mini{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.admin-chipwrap{display:flex;gap:6px;flex-wrap:wrap}
.admin-chip{border:1px solid var(--line-strong);background:var(--surface-2);padding:5px 10px;border-radius:999px;cursor:pointer;font-size:12px}
.admin-actions{display:flex;gap:8px;flex-wrap:wrap}
.admin-select{min-width:160px}
