/* ── Self-Hosted Fonts ── */
@font-face {
  font-family: 'Libre Baskerville';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/libre-baskerville-latin-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Libre Baskerville';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/libre-baskerville-latin-400italic.woff2') format('woff2');
}
@font-face {
  font-family: 'Libre Baskerville';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/libre-baskerville-latin-700.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/inter-latin-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/inter-latin-600.woff2') format('woff2');
}

/* ========================================================
   CONTROLLED CHAOS — Gallery Minimal mode
   Romy Ilano portfolio
   ======================================================== */

/* ── Type Scale (Five Levels — the gap is intentional) ── */
/* --type-massive → --type-body is a violent jump. That's the drama. */

/* ── Custom Properties ── */
:root {
  /* ── Typographic Voices ── */
  --font-display: 'Libre Baskerville', Georgia, serif;  /* editorial serif — display, headlines, handles */
  --font-body:    'Inter', system-ui, sans-serif;        /* systematic sans — body, labels, nav */

  /* ── Type Scale (Controlled Chaos) ── */
  --type-massive:  clamp(4rem, 8vw + 1rem, 12rem);    /* 64–192px — hero title */
  --type-headline: clamp(1.5rem, 3vw + 0.5rem, 3rem); /* 24–48px  — section heads, handles */
  --type-body:     clamp(1rem, 1.5vw, 1.25rem);         /* 16–20px  — body text (min 16px per TYPO-03) */
  --type-caption:  clamp(0.75rem, 0.8vw, 0.875rem);    /* 12–14px  — labels, overlines, nav (min 12px per D-02) */

  /* ── Color: Void mood ── */
  /* Monochrome base — color only from images */
  --bg:            #f8f6f3;
  --text:          #111111;
  --text-muted:    #777777;
  --text-faint:    #aaaaaa;
  --border:        rgba(0, 0, 0, 0.09);

  /* ── Work tile backgrounds (muted, low-saturation) ── */
  --tile-dark:     #111111;
  --tile-github:   #e8e5e0;
  --tile-hashnode: #eee0e8;
  --tile-mastodon: #e0daf2;
  --tile-photo:    #d4d0c9;
  --tile-linkedin:  #dce4f0;
  --tile-instagram: #f0dce4;
  --tile-project:   #e8e5e0;
  --tile-qr:        #f0ede8;

  /* ── Layout ── */
  --header-h:  56px;
  --page-x:    clamp(20px, 5vw, 60px);
  --grid-gap:  3px;

  /* ── Motion: Cascade reveal ── */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-snap:     cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Dark Mode: Void mood inverted ── */
@media (prefers-color-scheme: dark) {
  :root {
    --bg:           #0f0f0f;
    --text:         #f0ede8;
    --text-muted:   #888888;
    --text-faint:   #444444;
    --border:       rgba(255, 255, 255, 0.08);
    --tile-dark:    #f0ede8;   /* inverts to light */
    --tile-github:  #1e1e1e;
    --tile-hashnode:#1e1a1d;
    --tile-mastodon:#1a1820;
    --tile-photo:   #1a1a1a;
    --tile-linkedin:  #181c24;
    --tile-instagram: #231820;
    --tile-project:   #1e1e1c;
    --tile-qr:        #1a1a18;
  }
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  min-height: 100dvh; /* Dynamic viewport height for Safari WebView */
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }

/* ── Skip Link ── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 200;
  background: var(--text);
  color: var(--bg);
  padding: 8px 16px;
  font-family: var(--font-body);
  font-size: var(--type-caption);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.skip-link:focus { top: 16px; }

/* ══════════════════════════════════════════════════════
   HEADER — Swiss voice: systematic, precise
   ══════════════════════════════════════════════════════ */

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--page-x);
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}

.site-name {
  font-family: var(--font-display);
  font-size: clamp(0.85rem, 1.2vw, 1rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: opacity 0.2s var(--ease-snap);
}
.site-name:hover { opacity: 0.5; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-family: var(--font-body);
  font-size: var(--type-caption);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.site-nav a { transition: color 0.2s var(--ease-snap); }
.site-nav a:hover { color: var(--text); }

.nav-admin {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.3;
  transition: opacity 0.2s;
}
.nav-admin:hover { opacity: 1; }

/* ══════════════════════════════════════════════════════
   HERO — Monument voice: massive, architectural
   Mode: Gallery Minimal (breath: max, voice: whisper,
         but type SCALE is the drama)
   ══════════════════════════════════════════════════════ */

main { padding-top: var(--header-h); }

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(80px, 12vw, 160px) var(--page-x) clamp(64px, 8vw, 100px);
}

/* ── Hero video background ── */
.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
  animation: hero-bg-reveal 2s var(--ease-out-expo) both;
}

.hero-bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Overlay: keeps text legible over the photo */
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(248, 246, 243, 0.74);
}

@media (prefers-color-scheme: dark) {
  .hero-bg::after {
    background: rgba(15, 15, 15, 0.72);
  }
}

/* Raise hero text above the overlay */
.hero-eyebrow,
.hero-title,
.hero-sub {
  position: relative;
  z-index: 1;
}

@keyframes hero-bg-reveal {
  from { opacity: 0; transform: scale(1.07) translateY(0); }
  to   { opacity: 1; transform: scale(1)    translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-bg { animation: none; }
}

/* Cascade reveal animations */
@keyframes reveal-up {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-eyebrow {
  font-family: var(--font-body);
  font-size: var(--type-caption);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: clamp(20px, 3vw, 32px);

  /* Cascade: item 1 */
  animation: reveal-up 800ms var(--ease-out-expo) both;
  animation-delay: 0ms;
}

.hero-title {
  /* Monument voice: massive, architectural */
  font-family: var(--font-display);
  font-size: var(--type-massive);
  font-weight: 900;
  line-height: 0.88;
  letter-spacing: -0.03em;
  margin-bottom: clamp(32px, 5vw, 56px);

  /* The gap between this and --type-body below is the drama */

  /* Cascade: item 2 */
  animation: reveal-up 1000ms var(--ease-out-expo) both;
  animation-delay: 80ms;
}

.hero-sub {
  /* Swiss voice: body size, editorial measure */
  font-family: var(--font-body);
  font-size: var(--type-body);
  font-weight: 400;
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 42ch;
  background: #ffffff;
  padding: 4px 8px;

  /* Cascade: item 3 */
  animation: reveal-up 800ms var(--ease-out-expo) both;
  animation-delay: 200ms;
}

/* ══════════════════════════════════════════════════════
   WORK GRID — tight 3px gaps, Cargo mosaic
   ══════════════════════════════════════════════════════ */

/* ── Safari WebView fix: ensure grid fills viewport width ── */
.work-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--grid-gap);
  width: 100%;
  min-width: 0; /* Prevents grid blowout in Safari WebView */
}

.work-item {
  position: relative;
  overflow: hidden;
  display: block;
  cursor: pointer;
  width: 100%;
  min-width: 0; /* Critical for Safari grid item sizing */
  -webkit-box-flex: 1; /* Safari flex fallback */
}

.work-item::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.work-item:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: -2px;
  z-index: 2;
}

/* ── Grid placement ── */
.work-item--large     { grid-column: 1 / -1; }
.work-item--miromi    { grid-column: span 4; grid-row: span 2; }
.work-item--github    { grid-column: span 3; }
.work-item--hashnode  { grid-column: span 8; }
.work-item--mastodon  { grid-column: span 3; }
.work-item--linkedin  { grid-column: span 3; }
.work-item--instagram { grid-column: span 3; }
.work-item--project   { grid-column: span 4; }
.work-item--qr        { grid-column: 1 / -1; }

/* ── Aspect ratios via padding trick (no fixed heights) ── */
.work-item::before { content: ''; display: block; }
.work-item--large::before     { padding-bottom: 70%; }
.work-item--miromi::before    { padding-bottom: 0; }
.work-item--github::before    { padding-bottom: 45%; }
.work-item--hashnode::before  { padding-bottom: 45%; }
.work-item--mastodon::before  { padding-bottom: 45%; }
.work-item--linkedin::before  { padding-bottom: 45%; }
.work-item--instagram::before { padding-bottom: 45%; }
.work-item--project::before   { padding-bottom: 60%; }
.work-item--qr::before        { padding-bottom: 60%; }

/* ── Photo tile ── */
.work-item--photo { background: var(--tile-photo); }

.work-item--photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms var(--ease-out-expo);
}

.work-item--photo:hover img { transform: scale(1.04); }

/* Hover overlay — Reveal pattern */
.work-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  display: flex;
  align-items: flex-end;
  padding: clamp(20px, 3vw, 36px);
  transition: background 400ms var(--ease-snap);
  pointer-events: none;
}

.work-item--photo:hover .work-overlay {
  background: rgba(0, 0, 0, 0.48);
}

.work-overlay-title {
  font-family: var(--font-body);
  font-size: var(--type-caption);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 350ms var(--ease-snap), transform 350ms var(--ease-snap);
}

.work-item--photo:hover .work-overlay-title {
  opacity: 1;
  transform: translateY(0);
}

/* ── Arrow: Flow pattern — slides in on hover ── */
.work-arrow {
  position: absolute;
  top: clamp(16px, 2vw, 24px);
  right: clamp(20px, 2.5vw, 28px);
  font-size: 1rem;
  opacity: 0;
  transform: translate(-6px, 6px);
  transition: opacity 250ms var(--ease-snap), transform 250ms var(--ease-snap);
}

.work-item:hover .work-arrow {
  opacity: 0.7;
  transform: translate(0, 0);
}

/* ── Right photo tile (mexiko) — same image treatment as left ── */
.work-item--miromi { background: var(--tile-photo); }

/* ── Social tiles: Swiss voice — caption label, headline handle ── */
.work-item--github   { background: var(--tile-github); }
.work-item--hashnode { background: var(--tile-hashnode); }
.work-item--mastodon { background: var(--tile-mastodon); }
.work-item--linkedin  { background: var(--tile-linkedin); }
.work-item--instagram { background: var(--tile-instagram); }
.work-item--project   { background: var(--tile-project); }
.work-item--qr        { background: var(--tile-qr); cursor: default; }

.work-social-inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(16px, 2vw, 24px);
  gap: 6px;
  width: 100%;
  height: 100%;
  min-height: 100%;
}

.work-social-label {
  /* Swiss voice: caption — whispers while handle SHOUTS */
  font-family: var(--font-body);
  font-size: var(--type-caption);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.work-social-handle {
  /* The gap between caption label and headline handle is the tension */
  font-family: var(--font-display);
  font-size: var(--type-headline);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 0.95;
  color: var(--text);
  font-style: italic; /* Libre Baskerville italic adds elegance to social handles */
}

.work-item--github   .work-arrow { color: var(--text-muted); }
.work-item--hashnode .work-arrow { color: var(--text-muted); }
.work-item--mastodon .work-arrow { color: var(--text-muted); }
.work-item--linkedin  .work-arrow { color: var(--text-muted); }
.work-item--instagram .work-arrow { color: var(--text-muted); }
.work-item--project   .work-arrow { color: var(--text-muted); }

/* Hover: brightness only — no shadows, no lift */
.work-item--github:hover,
.work-item--hashnode:hover,
.work-item--mastodon:hover,
.work-item--linkedin:hover,
.work-item--instagram:hover,
.work-item--project:hover { filter: brightness(0.94); }

/* ── Project tiles: title + description, no brand icon ── */
.work-project-inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(16px, 2vw, 24px);
  gap: 8px;
}

.work-project-title {
  font-family: var(--font-body);
  font-size: clamp(1rem, 2vw, 1.5rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--text);
}

.work-project-desc {
  font-family: var(--font-body);
  font-size: var(--type-body);
  font-weight: 400;
  line-height: 1.5;
  color: var(--text-muted);
}

/* ── QR code tile: centered image + domain URL ── */
.work-qr-inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 16px;
}

.work-qr-image {
  min-width: 200px;
  width: 80%;
  max-width: 280px;
}

.work-qr-url {
  font-family: var(--font-body);
  font-size: var(--type-caption);
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ══════════════════════════════════════════════════════
   PROJECT SLIDER — full-width gallery tile
   ══════════════════════════════════════════════════════ */

.work-item--slider {
  grid-column: span 12;
  background: #e8e5e0;
  cursor: default;
  user-select: none;
}

.work-item--slider::before { padding-bottom: 36%; }

@media (prefers-color-scheme: dark) {
  .work-item--slider { background: #1e1e1c; }
}

.slider-track {
  position: absolute;
  inset: 0;
  display: flex;
  will-change: transform;
  transition: transform 500ms var(--ease-out-expo);
}

.slider-slide {
  flex: 0 0 100%;
  display: flex;
  align-items: flex-end;
  padding: clamp(24px, 4vw, 56px);
}

.slider-slide--1 {
  background:
    linear-gradient(rgba(232, 229, 224, 0.80), rgba(232, 229, 224, 0.80)),
    url('../assets/images/backgrounds/projects/poelove_hero.png') center / cover no-repeat;
}
.slider-slide--2 {
    background:
        linear-gradient(rgba(232, 229, 224, 0.80), rgba(232, 229, 224, 0.80)),
        url('../assets/images/backgrounds/projects/dioramaxr_hero.png') center / cover no-repeat;
 }
.slider-slide--3 {
  background:
    linear-gradient(rgba(232, 229, 224, 0.72), rgba(232, 229, 224, 0.72)),
    url('../assets/images/backgrounds/projects/starlostlovers_hero.png') center / cover no-repeat;
}
.slider-slide--4 { background: #dce4f0; }

@media (prefers-color-scheme: dark) {
  .slider-slide--1 { background: #1e1e1c; }
  .slider-slide--2 { background: #1a1820; }
  .slider-slide--3 { background: #1c1216; }
  .slider-slide--4 { background: #181c24; }
}

/* ── Miromi.com project card ── */
.work-item--miromisite {
  background:
    linear-gradient(to top, rgba(0,0,0,0.55) 40%, rgba(0,0,0,0.08) 100%),
    url('../assets/images/instagram/miromi_square.png') center / cover no-repeat;
}
.work-item--miromisite .work-project-title,
.work-item--miromisite .work-arrow { color: #fff; }
.work-item--miromisite .work-project-desc { color: rgba(255,255,255,0.80); }
.work-item--miromisite:hover { filter: brightness(0.90); }

/* ── Poelove project card ── */
.work-item--poelove {
  background:
    linear-gradient(to top, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0) 60%),
    url('../assets/images/backgrounds/projects/poelove_hero.png') center / cover no-repeat;
}
.work-item--poelove .work-project-title,
.work-item--poelove .work-arrow { color: #fff; }
.work-item--poelove .work-project-desc { color: rgba(255,255,255,0.80); }

/* ── Diorama XR project card ── */
.work-item--dioramaxr {
  background:
    linear-gradient(to top, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0) 60%),
    url('../assets/images/backgrounds/projects/dioramaxr_hero.png') center / cover no-repeat;
}
.work-item--dioramaxr .work-project-title,
.work-item--dioramaxr .work-arrow { color: #fff; }
.work-item--dioramaxr .work-project-desc { color: rgba(255,255,255,0.80); }

/* -- Conference 360 project card -- */
.work-item--conference360 {
  background:
    linear-gradient(to top, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0) 60%),
    url('../assets/images/backgrounds/projects/conference360_hero.png') center / cover no-repeat;
}
.work-item--conference360 .work-project-title,
.work-item--conference360 .work-arrow { color: #fff; }
.work-item--conference360 .work-project-desc { color: rgba(255,255,255,0.80); }

/* -- Hero card hover: scale up + overlay lighten (PROJ-03) -- */
.work-item--poelove,
.work-item--dioramaxr,
.work-item--conference360 {
  transition: transform 500ms cubic-bezier(0.16, 1, 0.3, 1);
  background-size: cover;
  background-position: center;
}

.work-item--poelove:hover,
.work-item--dioramaxr:hover,
.work-item--conference360:hover {
  transform: scale(1.04);
}

/* ── Star Lost Lovers project card ── */
.work-item--starlostlovers {
  background:
    linear-gradient(to top, rgba(0,0,0,0.65) 40%, rgba(0,0,0,0.10) 100%),
    url('../assets/images/backgrounds/projects/starlostlovers_hero.png') center / cover no-repeat;
}
.work-item--starlostlovers .work-project-title,
.work-item--starlostlovers .work-arrow { color: #fff; }
.work-item--starlostlovers .work-project-desc { color: rgba(255,255,255,0.80); }
.work-item--starlostlovers:hover { filter: brightness(0.90); }

.work-project-wip {
  position: absolute;
  top: clamp(12px, 1.5vw, 16px);
  right: clamp(12px, 1.5vw, 16px);
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(0,0,0,0.45);
  border: 1px solid rgba(255,255,255,0.30);
  border-radius: 4px;
  padding: 3px 7px;
}

.work-project-cta {
  display: inline-block;
  margin-top: 6px;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.slider-content {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 520px;
}

.slider-counter {
  font-family: var(--font-body);
  font-size: var(--type-caption);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.slider-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 700;
  font-style: italic;
  letter-spacing: -0.02em;
  line-height: 0.95;
  color: var(--text);
}

.slider-desc {
  font-family: var(--font-body);
  font-size: var(--type-body);
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 38ch;
  margin-top: 4px;
}

.slider-ctas {
  display: flex;
  gap: 20px;
  align-items: center;
  margin-top: 8px;
  flex-wrap: wrap;
}

.slider-cta {
  font-family: var(--font-body);
  font-size: var(--type-caption);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
  transition: opacity 0.2s var(--ease-snap);
}

.slider-cta:hover { opacity: 0.5; }

.slider-cta--secondary {
  color: var(--text-muted);
}

/* ── Project page CTA button ── */
.project-cta-section {
  padding: clamp(32px, 4vw, 48px) var(--page-x);
  border-top: 1px solid var(--border);
}

.project-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  border: 1px solid var(--text);
  font-family: var(--font-body);
  font-size: var(--type-caption);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
  transition: background 0.2s var(--ease-snap), color 0.2s var(--ease-snap);
}

.project-cta-btn:hover {
  background: var(--text);
  color: var(--bg);
}

.hero-cta {
  position: absolute;
  bottom: clamp(24px, 4vw, 40px);
  right: var(--page-x);
  z-index: 1;
}

/* Prev / next buttons */
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: 1px solid var(--border);
  color: var(--text);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  cursor: pointer;
  transition: background 0.2s var(--ease-snap), opacity 0.2s;
  z-index: 2;
}

.slider-btn:hover { background: var(--bg); }
.slider-btn--prev { left: clamp(16px, 2vw, 24px); }
.slider-btn--next { right: clamp(16px, 2vw, 24px); }

/* Footer: dots + all-projects link */
.slider-footer {
  position: absolute;
  bottom: clamp(16px, 2.5vw, 28px);
  right: clamp(16px, 2.5vw, 28px);
  display: flex;
  align-items: center;
  gap: 20px;
  z-index: 2;
}

.slider-dots {
  display: flex;
  gap: 6px;
}

.slider-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-faint);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s var(--ease-snap), transform 0.2s;
}

.slider-dot--active {
  background: var(--text);
  transform: scale(1.4);
}

.slider-all {
  font-family: var(--font-body);
  font-size: var(--type-caption);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.2s var(--ease-snap);
}

.slider-all:hover { color: var(--text); }

@media (max-width: 600px) {
  .work-item--slider::before { padding-bottom: 70%; }
  .slider-btn { display: none; }
  .slider-footer { left: clamp(16px, 2.5vw, 28px); justify-content: space-between; }
}

/* ══════════════════════════════════════════════════════
   ABOUT — Swiss editorial: grid, labels, measured body
   ══════════════════════════════════════════════════════ */

.about-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(48px, 6vw, 100px);
  padding: clamp(72px, 10vw, 120px) var(--page-x);
  border-top: 1px solid var(--border);
  margin-top: clamp(40px, 5vw, 56px);
  align-items: start;
}

.about-overline {
  font-family: var(--font-body);
  font-size: var(--type-caption);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 28px;
}

.about-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 24px;
  background: var(--border);
}

.about-avatar img { width: 100%; height: 100%; object-fit: cover; }

/* ── About — portrait photo ──────────────────────── */
.about-photo {
  width: 100%;
  max-width: 280px;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  margin-bottom: 24px;
  background: var(--border);
}
.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.about-body {
  font-family: var(--font-body);
  font-size: var(--type-body);
  font-weight: 400;
  line-height: 1.75;
  color: var(--text-muted);
  max-width: 38ch;
}

/* Link rows: Swiss system table */
.about-link-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  transition: color 0.2s var(--ease-snap);
}

.about-link-row:first-of-type { border-top: 1px solid var(--border); }
.about-link-row:hover { color: var(--text-muted); }

.about-link-label {
  font-family: var(--font-body);
  font-size: var(--type-caption);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
  width: 68px;
  flex-shrink: 0;
}

.about-link-value {
  font-family: var(--font-body);
  font-size: var(--type-body);
  font-weight: 400;
  flex: 1;
}

.about-link-arrow {
  font-size: var(--type-caption);
  color: var(--text-faint);
  margin-left: auto;
  flex-shrink: 0;
}

/* ── About — tech stack grid ─────────────────────── */
.about-stack-section {
  padding: clamp(48px, 6vw, 80px) var(--page-x);
  border-top: 1px solid var(--border);
}

.about-stack-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.about-stack-tag {
  font-family: var(--font-body);
  font-size: var(--type-caption);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
  border: 1px solid var(--border);
  padding: 6px 14px;
}

/* ══════════════════════════════════════════════════════
   VIDEO SECTIONS — three stacked domains
   ══════════════════════════════════════════════════════ */

.video-sections {
  padding: clamp(48px, 6vw, 80px) var(--page-x);
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: clamp(56px, 7vw, 96px);
}

.video-section .about-overline {
  margin-bottom: 16px;
}

/* Override lite-youtube-embed's max-width: 720px default */
.video-section lite-youtube {
  max-width: 100%;
  width: 100%;
}

.video-section .about-body {
  margin-top: 24px;
  max-width: 60ch;
}

/* ── About — CTA strip ──────────────────────────── */
.about-cta-strip {
  background: var(--tile-dark);
  color: var(--bg);
}

.about-cta-link {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  padding: clamp(56px, 8vw, 100px) var(--page-x);
  text-decoration: none;
  color: inherit;
  transition: opacity 0.2s var(--ease-snap);
}

.about-cta-link:hover { opacity: 0.8; }

.about-cta-label {
  font-family: var(--font-body);
  font-size: var(--type-caption);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bg);
  opacity: 0.6;
}

.about-cta-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 7vw, 7rem);
  font-weight: 700;
  font-style: italic;
  letter-spacing: -0.03em;
  line-height: 0.9;
  color: var(--bg);
}

.about-cta-arrow {
  font-size: clamp(1.5rem, 3vw, 3rem);
  color: var(--bg);
  opacity: 0.6;
  align-self: flex-start;
}

/* ══════════════════════════════════════════════════════
   FOOTER — Swiss caption voice
   ══════════════════════════════════════════════════════ */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 24px var(--page-x);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-body);
  font-size: var(--type-caption);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
}

/* ══════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════ */

@media (max-width: 900px) {
  .work-item--miromi    { grid-column: span 12; grid-row: span 1; }
  .work-item--github    { grid-column: span 3; }
  .work-item--hashnode  { grid-column: span 12; }
  .work-item--mastodon  { grid-column: span 3; }
  .work-item--linkedin  { grid-column: span 3; }
  .work-item--instagram { grid-column: span 3; }
  .work-item--project   { grid-column: span 4; }
  .work-item--qr        { grid-column: span 6; }

  .work-item--large::before  { padding-bottom: 60%; }
  .work-item--miromi::before { padding-bottom: 55%; }
  .work-item--github::before,
  .work-item--hashnode::before,
  .work-item--mastodon::before { padding-bottom: 55%; }
  .work-item--linkedin::before,
  .work-item--instagram::before { padding-bottom: 55%; }
  .work-item--project::before   { padding-bottom: 55%; }
  .work-item--qr::before        { padding-bottom: 55%; }

  .about-section { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  :root { --page-x: 20px; }

  .work-item--github    { grid-column: span 6; }
  .work-item--hashnode  { grid-column: span 12; }
  .work-item--mastodon  { grid-column: span 6; }
  .work-item--linkedin  { grid-column: span 6; }
  .work-item--instagram { grid-column: span 6; }
  .work-item--project   { grid-column: span 12; }
  .work-item--qr        { grid-column: span 12; }

  .work-item--github::before,
  .work-item--hashnode::before,
  .work-item--mastodon::before { padding-bottom: 42%; }

  .site-footer { flex-direction: column; gap: 6px; text-align: center; }
  .site-nav { gap: 16px; }
}

/* ══════════════════════════════════════════════════════
   REDUCED MOTION — disable cascade + image zoom
   ══════════════════════════════════════════════════════ */

@media (prefers-reduced-motion: reduce) {
  .hero-eyebrow,
  .hero-title,
  .hero-sub { animation: none; opacity: 1; transform: none; }

  .work-item--photo img,
  .work-item--poelove,
  .work-item--dioramaxr,
  .work-item--conference360,
  .work-overlay,
  .work-overlay-title,
  .work-arrow { transition: none; }
}

/* ── Fetch error banner ──────────────────────────────────── */
.fetch-error-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 16px;
  background: rgba(17, 17, 17, 0.95);
  color: #f8f6f3;
  font-family: var(--font-body);
  font-size: var(--type-body);
  font-weight: 400;
  line-height: 1.5;
}

.fetch-error-banner button {
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
  font-size: 1.25rem;
  opacity: 0.6;
  padding: 0;
  line-height: 1;
}

.fetch-error-banner button:hover {
  opacity: 1;
}
