/*
Theme Name: Eightsero
Theme URI: https://sero.gr/
Author: Orestis Serkelidis (Sero)
Author URI: https://sero.gr/
Description: Sero v2 — rebuilt around a global menu and Elementor-ready widgets. Based on the original Sero Portfolio theme.
Version: 0.1.0
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: eightsero
*/

/* Design tokens — overridden by the inline <style> Site Content prints */
:root {
  --sero-font-body:    'DM Sans', 'Helvetica Neue', Arial, sans-serif;
  --sero-font-heading: 'DM Sans', 'Helvetica Neue', Arial, sans-serif;
  --sero-size-body:    15px;
  --sero-size-heading: 60px; /* max of the clamp() on h1 */
  --sero-size-row:     26px; /* max of the clamp() on work list names */
  --sero-size-label:   10px;
  --sero-block-gap:    24px;
}

/* Global reset and momentum touch scrolling */
html, body,
#s-overlay,
.s-list,
.s-about-content {
  margin: 0;
  padding: 0;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: auto !important;
}

/* Horizontal-SPA shell — applied ONLY to the portfolio home page
 * (html.sero-home class is set by language_attributes filter).
 * Other pages (page.php) get a normal scrollable body. */
html.sero-home,
html.sero-home body {
  overflow: hidden !important;
  width: 100% !important;
  height: 100% !important;
  cursor: none !important;
}
html.sero-home body { background: #0E0E0D !important; }

/* ── LEAVE FADE ── smooth page-exit when clicking an external link */
body.sero-leaving { opacity: 0; transition: opacity .22s ease; }

#sero-root {
  position: fixed;
  inset: 0;
  z-index: 99999;
  font-family: var(--sero-font-body);
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

#sero-root * {
  /* padding:0 removed — it wiped all layout padding */
  box-sizing: border-box;
  margin: 0;
  font-family: inherit;
}

/* ── CURSOR ── */
#s-cur {
  display: none !important;
  position: fixed;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #fff;
  pointer-events: none;
  z-index: 999999;
  transform: translate(-50%, -50%);
  transition: width .2s, height .2s, background .2s;
}
#s-cur.big  { width: 40px; height: 40px; }
#s-cur.dark { background: #0E0E0D; }

/* Touch devices: restore native cursor and hide the custom dot.
   `cursor: none` on a touch screen still paints the #s-cur element as a
   stray circle when the user taps. */
@media (hover: none), (pointer: coarse) {
  html.sero-home,
  html.sero-home body { cursor: auto !important; }
  #s-cur { display: none !important; }
}

/* ── STAGE ── */
#s-stage {
  display: flex;
  width: 300vw;
  height: 100vh;
  transition: transform .62s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.s-pg {
  width: 100vw;
  height: 100vh;
  flex-shrink: 0;
  display: flex;
  flex-direction: column; /* nav on top, content below */
}

/* ══════════════════════════════════════
   NAV — lives inside each page as a row
   No fixed positioning, no z-index wars
══════════════════════════════════════ */
.s-nav {
  flex-shrink: 0;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-left: 52px;
  padding-right: 52px;
}

.s-logo {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.025em;
  background: none;
  border: none;
  cursor: none;
  line-height: 1;
  transition: opacity .2s;
}
.s-logo:hover { opacity: .45; }

.s-nav-links { display: flex; gap: 44px; }

.s-nav-btn {
  font-size: var(--sero-size-label);
  font-weight: 400;
  letter-spacing: .09em;
  text-transform: uppercase;
  background: none;
  border: none;
  cursor: none;
  opacity: .28;
  line-height: 1;
  transition: opacity .2s;
}
.s-nav-btn:hover { opacity: .65; }
.s-nav-btn.on    { opacity: 1; }

/* Hamburger — hidden on desktop, shown in the mobile @media block below */
.s-hamburger {
  display: none;
  width: 36px; height: 36px;
  padding: 0; margin: 0;
  background: none; border: none;
  cursor: pointer;
  position: relative;
  z-index: 10001;
}
.s-hamburger span {
  position: absolute;
  left: 6px; right: 6px;
  height: 1.5px;
  background: currentColor;
  transition: transform .25s ease, top .25s ease, opacity .2s ease;
}
.s-hamburger span:nth-child(1) { top: 13px; }
.s-hamburger span:nth-child(2) { top: 21px; }
.s-hamburger.is-open span:nth-child(1) { top: 17px; transform: rotate(45deg); }
.s-hamburger.is-open span:nth-child(2) { top: 17px; transform: rotate(-45deg); }

/* nav colors per page */
.s-pg-work .s-nav,
.s-pg-work .s-nav .s-logo,
.s-pg-work .s-nav .s-nav-btn    { color: #F4F2ED !important; }
.s-pg-about .s-nav,
.s-pg-about .s-nav .s-logo,
.s-pg-about .s-nav .s-nav-btn   { color: #0E0E0D !important; }
.s-pg-contact .s-nav,
.s-pg-contact .s-nav .s-logo,
.s-pg-contact .s-nav .s-nav-btn { color: #F4F2ED !important; }

/* ── DOTS ── */
#s-dots {
  position: fixed;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10000;
  transition: opacity .3s;
}
#s-dots.hide { opacity: 0; }

.s-dot {
  height: 4px; width: 4px;
  border-radius: 2px;
  opacity: .22;
  border: none;
  cursor: none;
  transition: width .35s cubic-bezier(0.16,1,0.3,1), transform .35s cubic-bezier(0.16,1,0.3,1), opacity .25s;
  will-change: width, transform;
}
.s-dot.on { width: 22px; opacity: 1; }
#s-dots .s-dot { background: #F4F2ED; }
.s-pg-about.on ~ #s-dots .s-dot { background: #0E0E0D; }


/* ══════════════════════
   WORK PAGE
══════════════════════ */
.s-pg-work {
  background: #0E0E0D;
}

.s-work-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding-left: 52px;
  padding-right: 52px;
  min-height: 0; /* crucial for flex scroll child */
}

.s-work-header {
  flex-shrink: 0;
  padding-bottom: 28px;
  border-bottom: 0.5px solid #252523;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.s-work-label { font-size: var(--sero-size-label); letter-spacing: .15em; text-transform: uppercase; color: #666663; }
.s-work-count { font-size: var(--sero-size-label); letter-spacing: .1em;  text-transform: uppercase; color: #3A3A38; }

.s-list {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding-bottom: 80px;
  scrollbar-width: none;
  min-height: 0;
  transform: translate3d(0, 0, 0);
  will-change: transform;
  contain: paint;
}
.s-list::-webkit-scrollbar { display: none; }

.s-row {
  display: grid;
  grid-template-columns: 44px 1fr max-content 52px;
  align-items: center;
  gap: 20px;
  padding-top: 22px;
  padding-bottom: 22px;
  border-bottom: 0.5px solid #252523;
  text-decoration: none;
  color: #F4F2ED;
  cursor: none;
  position: relative;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .5s cubic-bezier(0.16,1,0.3,1),
              transform .5s cubic-bezier(0.16,1,0.3,1);
  will-change: transform, opacity;
  contain: layout paint;
}
.s-row.in { opacity: 1; transform: none; }

.s-row::after {
  content: '';
  position: absolute;
  bottom: -0.5px; left: 0; right: 0;
  height: 0.5px;
  background: #999896;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s cubic-bezier(0.16,1,0.3,1);
}
.s-row:hover::after { transform: scaleX(1); }

.s-row-num  { font-size: var(--sero-size-label); color: #3A3A38; letter-spacing: .05em; }
.s-row-name {
  font-size: clamp(16px, 2vw, var(--sero-size-row));
  font-weight: 500;
  letter-spacing: -.03em;
  line-height: 1;
  color: #F4F2ED;
  transition: transform .28s cubic-bezier(0.16,1,0.3,1);
}
.s-row:hover .s-row-name { transform: translateX(10px); }
.s-row-cat  { font-size: var(--sero-size-label); letter-spacing: .09em; text-transform: uppercase; color: #666663; text-align: right; }
.s-row-year { font-size: var(--sero-size-label); color: #3A3A38; letter-spacing: .04em; text-align: right; }

/* scroll fade */
.s-list-wrap {
  flex: 1;
  position: relative;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.s-list-fade {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 80px;
  background: linear-gradient(to top, #0E0E0D, transparent);
  pointer-events: none;
  z-index: 2;
}

/* hover preview */
#s-preview {
  position: fixed;
  width: 280px; height: 190px;
  border-radius: 3px;
  overflow: hidden;
  pointer-events: none;
  z-index: 99998;
  opacity: 0;
  transform: translate(-50%, -62%);
  transition: opacity .28s;
}
#s-preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
#s-preview.show { opacity: 1; }

/* ══════════════════════
   ABOUT PAGE
══════════════════════ */
.s-pg-about { background: #F4F2ED; }

.s-about-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding-left: 52px;
  padding-right: 52px;
  overflow-y: auto;
  transform: translate3d(0, 0, 0);
  will-change: transform;
  contain: paint;
}

.s-about-grid {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 96px;
  width: 100%;
  align-items: center;
  align-content: center;
  margin-top: 0;
  margin-bottom: 0;
  padding-top: 40px;
  padding-bottom: 40px;
}

.s-about-h {
  font-family: var(--sero-font-heading);
  font-size: clamp(34px, 4.5vw, var(--sero-size-heading));
  font-weight: 500;
  letter-spacing: -.04em;
  line-height: .9;
  color: #0E0E0D;
}
.s-about-h em { font-style: normal; color: #C8C5BC; }

.s-about-right { display: flex; flex-direction: column; gap: 32px; padding-top: 4px; }

.s-about-bio { font-size: var(--sero-size-body); line-height: 1.8; color: #666663; }
.s-about-bio strong { color: #0E0E0D; font-weight: 500; }

.s-facts { border-top: 0.5px solid #E2DFD8; }
.s-fact {
  display: flex; justify-content: space-between; align-items: baseline;
  padding-top: 12px; padding-bottom: 12px;
  border-bottom: 0.5px solid #E2DFD8;
}
.s-fact-l { font-size: var(--sero-size-label); letter-spacing: .1em; text-transform: uppercase; color: #C8C5BC; }
.s-fact-r { font-size: 12px; color: #666663; }

/* ══════════════════════
   CONTACT PAGE
══════════════════════ */
.s-pg-contact { background: #0E0E0D; }

.s-contact-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding-left: 52px;
  padding-right: 52px;
}

.s-contact-grid {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 96px;
  align-items: end;
  align-content: center;
  padding-bottom: 40px;
}

.s-contact-h {
  font-family: var(--sero-font-heading);
  font-size: clamp(34px, 4.5vw, var(--sero-size-heading));
  font-weight: 500;
  letter-spacing: -.04em;
  line-height: .9;
  color: #F4F2ED;
}
.s-contact-h em { font-style: normal; color: #3A3A38; }

.s-contact-rows { border-top: 0.5px solid #252523; }
.s-contact-row {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 18px; padding-bottom: 18px;
  border-bottom: 0.5px solid #252523;
}
.s-contact-type { font-size: var(--sero-size-label); letter-spacing: .1em; text-transform: uppercase; color: #666663; }
.s-contact-val  { font-size: 13px; color: #F4F2ED; text-decoration: none; cursor: none; letter-spacing: -.01em; transition: opacity .2s; }
.s-contact-val:hover { opacity: .35; }
.s-contact-val.dim   { opacity: .28; cursor: default; }

.s-contact-foot {
  margin-top: auto;
  padding-top: 24px; padding-bottom: 40px;
  border-top: 0.5px solid #252523;
  display: flex; justify-content: space-between;
}
.s-contact-note { font-size: var(--sero-size-label); letter-spacing: .08em; text-transform: uppercase; color: #3A3A38; }

.s-work-foot {
  flex-shrink: 0;
  margin-top: auto;
  padding-top: 24px; padding-bottom: 40px;
  border-top: 0.5px solid #252523;
  display: flex; justify-content: space-between;
}
.s-work-note { font-size: var(--sero-size-label); letter-spacing: .08em; text-transform: uppercase; color: #3A3A38; }

.s-about-foot {
  flex-shrink: 0;
  margin-top: auto;
  padding-top: 24px; padding-bottom: 40px;
  border-top: 0.5px solid #E2DFD8;
  display: flex; justify-content: space-between;
  width: 100%;
}
.s-about-note { font-size: var(--sero-size-label); letter-spacing: .08em; text-transform: uppercase; color: #C8C5BC; }

/* ══════════════════════
   PROJECT OVERLAY
══════════════════════ */
#s-overlay {
  position: fixed;
  inset: 0;
  z-index: 50000;
  background: #F4F2ED;
  overflow-y: auto;
  scrollbar-width: none;
  transform: translateY(100%);
  transition: transform 0.32s cubic-bezier(0.3, 0, 0.8, 0.15); /* exit transition (fast ease-in) */
  will-change: transform;
  contain: paint;
}
#s-overlay::-webkit-scrollbar { display: none; }
#s-overlay.open {
  transform: translateY(0);
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1); /* entry transition (premium ease-out) */
}

.s-back-bar {
  position: sticky;
  top: 0; z-index: 10;
  height: 72px;
  padding-left: 52px; padding-right: 52px;
  background: #F4F2ED;
  border-bottom: 0.5px solid #E2DFD8;
  display: flex; align-items: center;
}
.s-back-btn {
  display: flex; align-items: center; gap: 10px;
  background: none; border: none;
  font-size: var(--sero-size-label); letter-spacing: .09em; text-transform: uppercase;
  color: #999896; cursor: none; transition: color .2s;
}
.s-back-btn:hover { color: #0E0E0D; }
.s-back-circle {
  width: 28px; height: 28px;
  border: 0.5px solid #E2DFD8; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: border-color .2s;
}
.s-back-btn:hover .s-back-circle { border-color: #999896; }

.s-proj-body {
  padding-top: 56px; padding-bottom: 80px;
  padding-left: 52px; padding-right: 52px;
  max-width: 1200px;
}

.s-proj-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.s-proj-badge {
  font-size: var(--sero-size-label); letter-spacing: .1em; text-transform: uppercase;
  color: #999896; padding: 4px 10px;
  border: 0.5px solid #E2DFD8; border-radius: 99px;
}

.s-proj-h {
  font-family: var(--sero-font-heading);
  font-size: clamp(32px, 4.5vw, var(--sero-size-heading));
  font-weight: 500; letter-spacing: -.035em;
  line-height: .95; color: #0E0E0D;
  margin-top: 12px;
  margin-bottom: 80px;
}

.s-proj-info-bar {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 20px;
}
.s-proj-inline-specs {
  display: flex;
  flex-wrap: wrap;
  column-gap: 40px;
  row-gap: 12px;
  align-items: center;
}
.s-proj-inline-spec {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
}
.s-spec-l {
  font-size: var(--sero-size-label);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #A5A29A;
  font-weight: 500;
}
.s-spec-r {
  font-size: 13px;
  color: #2E2E2D;
  font-weight: 500;
  letter-spacing: -.01em;
}
.s-proj-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin-top: 10px;
  margin-bottom: 10px;
}
.s-proj-tag {
  font-size: 9px;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border: 0.5px solid #E2DFD8;
  border-radius: 99px;
  color: #7E7C75;
  background: rgba(14, 14, 13, 0.02);
  font-weight: 500;
}
.s-proj-body-text {
  max-width: 820px;
  margin-bottom: 20px;
}
.s-proj-desc {
  font-size: 14.5px;
  line-height: 1.75;
  color: #555552;
  letter-spacing: -.005em;
}

.s-proj-imgs { display: flex; flex-direction: column; gap: var(--sero-block-gap, 24px); }
.s-img-row { display: grid; }
.s-img-row.r1 { grid-template-columns: 1fr; }
.s-img-row.r2 { grid-template-columns: 1fr 1fr; gap: 3px; }

/* inline text block between images */
.s-proj-block-text {
  font-size: var(--sero-size-body);
  line-height: 1.8;
  color: #666663;
  max-width: 680px;
  white-space: pre-wrap;
}
.s-proj-block-text strong { color: #0E0E0D; font-weight: 500; }
.s-proj-block-text em { color: #999896; font-style: normal; }

.s-img { overflow: hidden; border-radius: 2px; background: #E2DFD8; }
.s-img img,
.s-img video {
  width: 100%; height: auto; display: block; background: #0E0E0D;
  will-change: transform;
  backface-visibility: hidden;
  transform: translate3d(0, 0, 0);
}
.s-img-ph { width: 100%; aspect-ratio: 4/3; display: flex; align-items: center; justify-content: center; color: #C8C5BC; font-size: var(--sero-size-label); letter-spacing: .1em; text-transform: uppercase; }

.s-proj-foot {
  margin-top: 80px;
  padding-top: 24px;
  border-top: 0.5px solid #E2DFD8;
  display: flex;
  justify-content: space-between;
}
.s-proj-foot span {
  font-size: var(--sero-size-label);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #999896;
}

.s-next-strip {
  border-top: 0.5px solid #E2DFD8;
  padding-top: 32px; padding-bottom: 32px;
  padding-left: 52px; padding-right: 52px;
  display: flex; justify-content: space-between; align-items: center;
  cursor: none; transition: background .2s; background: #F4F2ED;
}
.s-next-strip:hover { background: #E2DFD8; }
.s-next-lbl { font-size: var(--sero-size-label); letter-spacing: .1em; text-transform: uppercase; color: #999896; margin-bottom: 6px; }
.s-next-ttl { font-size: 20px; font-weight: 500; letter-spacing: -.02em; color: #0E0E0D; }
.s-next-arr { font-size: 22px; color: #999896; }

/* fade utility */
.s-fu { opacity: 0; transform: translateY(14px); transition: opacity .6s cubic-bezier(0.16,1,0.3,1), transform .6s cubic-bezier(0.16,1,0.3,1); }
.s-fu.d1 { transition-delay: .08s; }
.s-fu.d2 { transition-delay: .16s; }
.s-fu.in { opacity: 1; transform: none; }

/* mobile */
@media (max-width: 680px) {
  .s-nav { padding-left: 24px; padding-right: 24px; height: 64px; }
  .s-work-content { padding-left: 24px; padding-right: 24px; }
  .s-about-content { padding-left: 24px; padding-right: 24px; }
  .s-contact-content { padding-left: 24px; padding-right: 24px; }
  .s-back-bar { padding-left: 24px; padding-right: 24px; }
  .s-proj-body { padding-left: 24px; padding-right: 24px; }
  .s-next-strip { padding-left: 24px; padding-right: 24px; }
  .s-row { grid-template-columns: 32px 1fr max-content; gap: 10px; }
  .s-row-year { display: none; }
  .s-about-grid, .s-contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .s-img-row.r2 { grid-template-columns: 1fr; }


  /* ── Mobile nav: hamburger toggles a full-panel menu ── */
  .s-hamburger { display: inline-flex; }

  .s-nav .s-nav-links,
  .sero-stand-nav .s-nav-links {
    position: fixed;
    top: 64px; left: 0; right: 0;
    bottom: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 28px;
    padding: 40px 24px;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform .35s cubic-bezier(0.16,1,0.3,1);
    z-index: 10000;
  }
  .s-nav.is-open .s-nav-links,
  .sero-stand-nav.is-open .s-nav-links { transform: translateX(0); }

  /* Enlarge links inside the panel for tap targets */
  .s-nav .s-nav-links .s-nav-btn,
  .sero-stand-nav .s-nav-links .s-nav-btn {
    font-size: 18px;
    letter-spacing: .04em;
    opacity: 1;
  }

  /* Panel background per page (matches each page's own bg) */
  .s-pg-work    .s-nav .s-nav-links,
  .s-pg-contact .s-nav .s-nav-links { background: #0E0E0D; }
  .s-pg-about   .s-nav .s-nav-links { background: #F4F2ED; }
  .sero-stand-nav .s-nav-links      { background: #F4F2ED; color: #0E0E0D; }
  .sero-stand-nav .s-nav-links .s-nav-btn { color: #0E0E0D !important; }
}

/* ══════════════════════════════════════════════════════
 * STANDARD PAGES (page.php) — same header as home, standard content below
 * ══════════════════════════════════════════════════════ */
body.sero-standalone {
  background: #F4F2ED;
  color: #0E0E0D;
  font-family: var(--sero-font-body);
  font-size: var(--sero-size-body);
  line-height: 1.6;
  min-height: 100vh;
}

.sero-stand-nav {
  position: sticky; top: 0; z-index: 9999;
  height: 80px;
  background: transparent !important;
  color: var(--sero-stand-nav-color, #F4F2ED) !important;
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  padding-left: 52px;
  padding-right: 52px;
}
.sero-stand-nav .s-nav-links { display: flex !important; gap: 44px; }
.sero-stand-nav .s-logo,
.sero-stand-nav .s-nav-btn { color: var(--sero-stand-nav-color, #F4F2ED) !important; }
.sero-stand-nav a.s-nav-btn,
.sero-stand-nav a.s-logo { text-decoration: none !important; }

.sero-page-body {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 52px 120px;
}
.sero-page-title {
  font-family: var(--sero-font-heading);
  font-size: clamp(32px, 5vw, var(--sero-size-heading));
  font-weight: 500;
  letter-spacing: -.04em;
  line-height: .92;
  margin: 0 0 32px;
  color: #0E0E0D;
}
.sero-page-content { color: #0E0E0D; }
.sero-page-content p { margin: 0 0 1.2em; line-height: 1.8; }
.sero-page-content a { color: #0E0E0D; }
.sero-page-content img { max-width: 100%; height: auto; }
.sero-page-content h2,
.sero-page-content h3 {
  font-family: var(--sero-font-heading);
  letter-spacing: -.02em;
  margin: 1.6em 0 .6em;
}

@media (max-width: 680px) {
  .sero-stand-nav { padding-left: 24px; padding-right: 24px; height: 64px; }
  .sero-page-body { padding: 40px 24px 80px; }
}

/* ══════════════════════════════════════════════════════
 * WORK LIST — view toggle (list / grid)
 * ══════════════════════════════════════════════════════ */
.s-view-toggle {
  display: flex;
  padding: 3px;
  border: 0.5px solid #252523;
  border-radius: 99px;
  gap: 0;
}
.s-view-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 28px;
  background: none;
  border: none;
  color: #666663;
  cursor: none;
  border-radius: 99px;
  transition: background .2s ease, color .2s ease;
}
.s-view-btn:hover { color: #F4F2ED; }
.s-view-btn.on { background: #252523; color: #F4F2ED; }
.s-view-btn svg { display: block; }

/* Thumb cell — rendered in every row, hidden in list mode, shown in grid mode */
.s-row-thumb {
  display: none;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #1a1a1a;
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 32px;
}
.s-row-thumb img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform .6s cubic-bezier(0.16,1,0.3,1), filter .6s cubic-bezier(0.16,1,0.3,1);
  will-change: transform, filter;
  backface-visibility: hidden;
  transform: translate3d(0, 0, 0);
  filter: invert(0);
}
.s-row-thumb:hover img {
  transform: scale(1.03);
  filter: invert(1);
}
.s-row-thumb-empty { width: 100%; height: 100%; background: #151514; }

/* ── Grid mode ── */
.s-list.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px 28px;
  padding-top: 10px;
  padding-bottom: 80px;
}
.s-list.grid .s-row {
  display: block;
  grid-template-columns: none;
  gap: 0;
  padding: 0;
  border-bottom: none;
  position: relative;
}
.s-list.grid .s-row::after { display: none; }
.s-list.grid .s-row-thumb { display: block; }
.s-list.grid .s-row-num   { display: none; }
.s-list.grid .s-row-year  { display: none; }
.s-list.grid .s-row-name {
  font-size: clamp(15px, 1.2vw, 18px);
  display: block;
  margin-bottom: 14px;
  color: #F4F2ED;
}
.s-list.grid .s-row:hover .s-row-name { transform: none; }
.s-list.grid .s-row-cat {
  display: block;
  text-align: left;
  color: #666663;
}

@media (max-width: 1100px) {
  .s-list.grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
  .s-list.grid { grid-template-columns: 1fr; gap: 24px; }
}

/* ══════════════════════════════════════════════════════
 * Grid tile — thumb on top; name (left) + category (right) on one line below
 * ══════════════════════════════════════════════════════ */
.s-list.grid .s-row {
  display: grid !important;
  grid-template-columns: 1fr auto !important;
  grid-template-rows: auto auto !important;
  grid-template-areas:
    "thumb thumb"
    "name  cat" !important;
  gap: 0 !important;
  column-gap: 16px !important;
  align-items: baseline !important;
  align-content: start !important;  /* pack rows at top — no stretch */
  align-self: start !important;     /* don't let outer grid stretch me */
  text-align: left !important;
  padding: 0 !important;
  border-bottom: none !important;
  position: relative !important;
}
.s-list.grid .s-row-thumb {
  grid-area: thumb !important;
  margin-bottom: 24px !important;
  width: 100% !important;
}
.s-list.grid .s-row-name {
  grid-area: name !important;
  margin: 0 !important;
  line-height: 1.1;
  text-align: left !important;
}
.s-list.grid .s-row-cat {
  grid-area: cat !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  color: #666663 !important;
  letter-spacing: .09em;
  text-align: right !important;
}

/* ════════════════════════════════════════════════════════
   Eightsero global cursor (dot + ring with difference blend)
   ════════════════════════════════════════════════════════ */
.es-cur-dot,
.es-cur-ring {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 2147483647;
  will-change: transform;
  mix-blend-mode: difference;
  opacity: 0;
  transform: translate(-50%, -50%);
  transition: opacity .25s ease, background-color .2s ease;
}
.es-cur-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #ffffff;
}
.es-cur-ring {
  width: 32px; height: 32px;
  border: 1px solid #ffffff;
  border-radius: 50%;
  background: transparent;
}
html.es-cur-on .es-cur-dot,
html.es-cur-on .es-cur-ring { opacity: 1; }

.es-cur-ring.hover {
  background: rgba(255, 255, 255, 0.12);
}

/* Hide native cursor across the site when the custom one is active */
html.es-cur-on,
html.es-cur-on body,
html.es-cur-on a,
html.es-cur-on button { cursor: none; }
/* Keep native cursor inside form inputs (better UX for typing) */
html.es-cur-on input:not([type="submit"]):not([type="button"]),
html.es-cur-on textarea,
html.es-cur-on select { cursor: auto; }

/* Touch devices: hide the custom cursor entirely */
@media (hover: none), (pointer: coarse) {
  .es-cur-dot, .es-cur-ring { display: none !important; }
  html, body { cursor: auto !important; }
}

/* ── Tactile active scale feedback (Emil Kowalski guidelines) ── */
.s-logo:active,
.s-nav-btn:active,
.s-back-btn:active,
.s-view-btn:active,
.s-dot:active,
.s-row:active,
.s-next-strip:active {
  transform: scale(0.975) !important;
  transition: transform 0.05s ease-out !important;
}
