/* ─── Fonts ─────────────────────────────────────────────── */

@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/playfair-display-latin-400-normal.woff2') format('woff2');
}

@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('assets/fonts/playfair-display-latin-700-normal.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/inter-latin-400-normal.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('assets/fonts/inter-latin-500-normal.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('assets/fonts/inter-latin-600-normal.woff2') format('woff2');
}

/* ─── Tokens ─────────────────────────────────────────────── */

:root {
  --cream:  #F5F0E8;
  --olive:  #6B7C45;
  --orange: #D4845A;
  --tan:    #C4A882;
  --dark:   #2C2C2C;

  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans:  'Inter', system-ui, sans-serif;

  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 48px;
  --space-xl: 96px;

  --radius-sm:   8px;
  --radius-md:   16px;
  --radius-pill: 999px;
}

/* ─── Reset ─────────────────────────────────────────────── */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--cream);
  background-image:
    linear-gradient(rgba(196,168,130,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(196,168,130,0.07) 1px, transparent 1px);
  background-size: 40px 40px;
  color: var(--dark);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.5;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ─── Nav ────────────────────────────────────────────────── */

.nav {
  position: fixed;
  top: var(--space-sm);
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  width: max-content;
}

.nav-pill-container {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: 10px 28px;
  background: rgba(245, 240, 232, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: var(--radius-pill);
  border: 1px solid rgba(44, 44, 44, 0.10);
  transition: background 0.35s ease, border-color 0.35s ease;
}

.nav.scrolled .nav-pill-container {
  background: var(--dark);
  border-color: transparent;
}

.nav-label {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 500;
  color: var(--dark);
  min-height: 44px;
  display: flex;
  align-items: center;
  padding: 0 2px;
  transition: color 0.25s ease;
  border-radius: 4px;
}

.nav.scrolled .nav-label {
  color: var(--cream);
}

.nav-label.active {
  font-weight: 600;
}

.nav-label:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}

@media (max-width: 768px) {
  .nav-pill-container {
    padding: 6px 12px;
    gap: 12px;
  }
  .nav-label {
    font-size: 0.875rem;
  }
}

/* ─── Hero ───────────────────────────────────────────────── */

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(100px, 16vh, 180px) var(--space-lg) clamp(80px, 12vh, 140px);
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

.hero-text {
  text-align: center;
}

.hero-name {
  font-family: var(--font-serif);
  font-size: clamp(3.5rem, 8.5vw, 8rem);
  font-weight: 700;
  font-style: italic;
  color: #bc4749;
  line-height: 1.0;
  margin-bottom: var(--space-sm);
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.hero-tagline {
  font-family: var(--font-sans);
  font-size: clamp(0.8rem, 1.6vw, 1.2rem);
  font-weight: 600;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--orange);
  line-height: 1;
  opacity: 1;
}

/* ─── Pocket ─────────────────────────────────────────────── */

.pocket-outer {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: clamp(420px, 62vw, 580px);
  overflow: visible;
}

.hero-pocket {
  overflow: visible;
}

.pocket-graphic {
  overflow: hidden;
  border-radius: var(--radius-sm);
  position: relative;
  z-index: 2;
}

.pocket-graphic img {
  width: 100%;
  height: auto;
  display: block;
}

.cards-container {
  position: absolute;
  top: -44px;
  left: 0;
  right: 0;
  height: 200px;
  overflow: visible;
  z-index: 1;
}

/* ─── Polaroid Cards ─────────────────────────────────────── */

/* ─── Hero Cards (base) ──────────────────────────────── */

.hero-card {
  position: absolute;
  left: 50%;
  margin-left: -100px;
  width: 200px;
  /* Stamp perforation: scalloped semicircular cuts along all four edges.    */
  /* background-image = the perforated frame (white + transparent holes).    */
  /* background-color = the fill (overridden per card-type below).           */
  background-image:
    radial-gradient(circle at 50% 0%,   transparent 8px, white 8.5px) /* top    */,
    radial-gradient(circle at 50% 100%, transparent 8px, white 8.5px) /* bottom */,
    radial-gradient(circle at 0%   50%, transparent 8px, white 8.5px) /* left   */,
    radial-gradient(circle at 100% 50%, transparent 8px, white 8.5px) /* right  */;
  background-position: -8px 0,   -8px 100%, 0    -8px, 100% -8px;
  background-size:     16px 14px, 16px 14px, 14px 16px, 14px  16px;
  background-repeat:   repeat-x,  repeat-x,  repeat-y,  repeat-y;
  background-color: white;
  border-radius: 2px;
  box-shadow: 0 16px 52px rgba(44,44,44,0.38), 0 4px 14px rgba(44,44,44,0.18);
  cursor: pointer;
  transform-origin: center bottom;
  z-index: 1;
  padding-bottom: 26px;
}

.hero-card:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}

@media (hover: none) {
  .hero-card:active {
    opacity: 0.92;
    transform: scale(0.97);
  }
}

/* ─── Card 1: Polaroid ───────────────────────────────── */

.card-polaroid {
  padding: 14px 14px 38px;
  background-color: white;
}

.polaroid-scene {
  width: 100%;
  height: 160px;
  position: relative;
  overflow: hidden;
  border-radius: 3px;
}

.polaroid-sky {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #87CEEB 0%, #FDB97D 70%, #F4956A 100%);
}

.polaroid-mountains {
  position: absolute;
  bottom: 40px;
  left: 0;
  right: 0;
  height: 60px;
}

.polaroid-mountains::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 12px;
  width: 0;
  height: 0;
  border-left: 44px solid transparent;
  border-right: 44px solid transparent;
  border-bottom: 56px solid #4A5E30;
}

.polaroid-mountains::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 14px;
  width: 0;
  height: 0;
  border-left: 34px solid transparent;
  border-right: 34px solid transparent;
  border-bottom: 44px solid #5A6E40;
}

.polaroid-ground {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40px;
  background: linear-gradient(180deg, #6B8C3A 0%, #4E6A28 100%);
}

.polaroid-figure {
  position: absolute;
  bottom: 38px;
  left: 50%;
  transform: translateX(-50%);
  width: 14px;
  height: 26px;
  background: #2C2C2C;
  border-radius: 7px 7px 3px 3px;
}

.polaroid-figure::before {
  content: '';
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
  width: 12px;
  height: 12px;
  background: #D4A878;
  border-radius: 50%;
}

.stamp-denom {
  position: absolute;
  bottom: 5px;
  left: 0;
  right: 0;
  text-align: center;
  font-family: var(--font-sans);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #999;
  text-transform: uppercase;
}

/* ─── Card 2: Sticky Note ────────────────────────────── */

.card-sticky {
  background-color: #FFF8D6;
  padding: 16px 16px 14px;
  min-height: 148px;
}

.card-sticky::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 26px;
  height: 26px;
  background: linear-gradient(225deg, white 50%, #E8E0A0 50%);
  box-shadow: -2px 2px 5px rgba(0,0,0,0.10);
}

.sticky-text {
  font-family: var(--font-serif);
  font-size: 0.75rem;
  line-height: 1.5;
  color: #3D4E28;
  margin: 0;
}

/* ─── Card 3: UI Mockup ──────────────────────────────── */

.card-mockup {
  background-color: white;
  padding: 14px 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 148px;
}

.mockup-phone {
  width: 80px;
  height: 140px;
  background: #1A1A2C;
  border-radius: 12px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0,0,0,0.35);
}

.phone-notch {
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 5px;
  background: #0D0D1A;
  border-radius: 3px;
  z-index: 2;
}

.phone-screen {
  position: absolute;
  top: 16px;
  left: 4px;
  right: 4px;
  bottom: 10px;
  background: #F8F6F2;
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 5px 4px 4px;
}

.phone-topbar {
  height: 8px;
  background: #6B7C45;
  border-radius: 3px;
  flex-shrink: 0;
}

.phone-row {
  height: 9px;
  background: #E0D8CC;
  border-radius: 3px;
  flex-shrink: 0;
}

.phone-row--short {
  width: 70%;
}

.phone-bottombar {
  margin-top: auto;
  height: 7px;
  background: #D4845A;
  border-radius: 3px;
  flex-shrink: 0;
}

/* ─── Card 4: Map ────────────────────────────────────── */

.card-map {
  background-color: #E8DCC8;
  min-height: 148px;
  overflow: hidden;
  position: relative;
}

.map-streets {
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(0deg,   transparent, transparent 14px, rgba(255,255,255,0.72) 14px, rgba(255,255,255,0.72) 16px),
    repeating-linear-gradient(90deg,  transparent, transparent 14px, rgba(255,255,255,0.72) 14px, rgba(255,255,255,0.72) 16px);
}

.map-streets::before {
  content: '';
  position: absolute;
  top: 24px;
  left: 18px;
  width: 42px;
  height: 32px;
  background: radial-gradient(ellipse at 40% 40%, #D4C8A8 60%, transparent 60%);
  opacity: 0.65;
}

.map-streets::after {
  content: '';
  position: absolute;
  top: 52px;
  right: 16px;
  width: 34px;
  height: 26px;
  background: radial-gradient(ellipse at 60% 60%, #C8BCA0 60%, transparent 60%);
  opacity: 0.58;
}

.map-pin {
  position: absolute;
  top: 30px;
  left: 50%;
  width: 24px;
  height: 24px;
  background: #BC4749;
  border-radius: 50% 50% 50% 0;
  transform: translateX(-50%) rotate(-45deg);
  box-shadow: 0 3px 10px rgba(188,71,73,0.5);
}

.map-pin-dot {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 9px;
  height: 9px;
  background: white;
  border-radius: 50%;
}

.map-city-pill {
  position: absolute;
  bottom: 9px;
  left: 50%;
  transform: translateX(-50%);
  background: white;
  color: #D4845A;
  font-family: var(--font-sans);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 3px 10px;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(44,44,44,0.18);
}

/* ─── Hero Sparkle Decorations ───────────────────────── */

.hero-sparkle {
  position: absolute;
  pointer-events: none;
  clip-path: polygon(
    50% 0%, 54% 44%, 100% 50%, 54% 56%,
    50% 100%, 46% 56%, 0% 50%, 46% 44%
  );
}

.hero-sparkle--tl {
  width: 48px; height: 48px;
  background: var(--olive);
  opacity: 0.55;
  top: 12%;
  left: 8%;
}

.hero-sparkle--tr {
  width: 36px; height: 36px;
  background: var(--orange);
  opacity: 0.5;
  top: 18%;
  right: 10%;
}

.hero-sparkle--ml {
  width: 24px; height: 24px;
  background: var(--tan);
  opacity: 0.65;
  top: 42%;
  left: 14%;
}

.hero-sparkle--mr {
  width: 40px; height: 40px;
  background: var(--orange);
  opacity: 0.42;
  top: 35%;
  right: 7%;
}

/* ─── Section shared ─────────────────────────────────────── */

.section-heading {
  font-family: var(--font-serif);
  font-size: 3rem;
  font-weight: 700;
  color: #bc4749;
  margin-bottom: var(--space-lg);
  text-align: center;
}

/* ─── Bento ──────────────────────────────────────────────── */

/* ─── About Bento ────────────────────────────────────────── */

.bento-section {
  padding: var(--space-xl) var(--space-lg);
  max-width: 1200px;
  margin: 0 auto;
}

.bento-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr;
  grid-template-rows: 215px 215px;
  gap: 14px;
}

.bento-card {
  padding: 22px 24px;
  border-radius: var(--radius-sm);
  position: relative;
  overflow: hidden;
}

.bento-card:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}

.bento-card--sanity  {
  grid-column: 1; grid-row: 1 / 3;
  background: var(--olive);
  overflow: visible; /* allow polaroids to breathe */
}
.bento-card--learning {
  grid-column: 2 / 4; grid-row: 1;
  background: #C97A4A;
}
.bento-card--reading {
  grid-column: 2; grid-row: 2;
  background: var(--cream);
  border: 1.5px solid rgba(44,44,44,0.10);
}
.bento-card--education {
  grid-column: 3; grid-row: 2;
  background: var(--olive);
}

.bento-label {
  display: block;
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.bento-card--sanity  .bento-label,
.bento-card--learning .bento-label,
.bento-card--education .bento-label { color: rgba(255,255,255,0.92); }
.bento-card--reading .bento-label  { color: var(--dark); }

.bento-body {
  font-family: var(--font-sans);
  font-size: 0.86rem;
  line-height: 1.55;
  margin: 0;
}

.bento-card--sanity  .bento-body,
.bento-card--learning .bento-body { color: rgba(255,255,255,0.80); }
.bento-card--reading .bento-body  { color: var(--dark); }

/* ── Panel 1 postcards ───────────────────── */

.bento-postcards-intro {
  font-family: var(--font-sans);
  font-size: 0.80rem;
  color: rgba(255,255,255,0.72);
  font-style: italic;
  margin: 10px 0 0;
}

.bento-postcards {
  position: relative;
  height: 210px;
  margin-top: 14px;
}

.bento-postcard {
  position: absolute;
  width: 230px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.30), 0 2px 6px rgba(0,0,0,0.12);
  border-radius: 2px;
  cursor: pointer;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), z-index 0s, box-shadow 0.35s ease;
}

.bento-postcard img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 2px;
}

.bento-postcard--back {
  left: 50%;
  margin-left: -130px;
  top: 22px;
  transform: rotate(-7deg);
  z-index: 1;
}

.bento-postcard--front {
  left: 50%;
  margin-left: -100px;
  top: 4px;
  transform: rotate(5deg);
  z-index: 2;
}

.bento-postcard--back:hover {
  transform: rotate(-2deg) translateY(-12px) scale(1.04);
  z-index: 3;
  box-shadow: 0 16px 36px rgba(0,0,0,0.38), 0 4px 10px rgba(0,0,0,0.16);
}

.bento-postcard--front:hover {
  transform: rotate(2deg) translateY(-12px) scale(1.04);
  z-index: 3;
  box-shadow: 0 16px 36px rgba(0,0,0,0.38), 0 4px 10px rgba(0,0,0,0.16);
}

/* ── Panel 2: skill pills ────────────────── */

.bento-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}

.bento-pill {
  background: rgba(255,255,255,0.90);
  border-radius: 999px;
  padding: 5px 13px;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 500;
  color: #3A2C1A;
  white-space: nowrap;
}

/* ── Panel 3: reading ────────────────────── */

.bento-book {
  margin-top: 10px;
  position: relative;
}

.bento-book-art {
  position: absolute;
  top: -4px;
  right: -6px;
  width: 110px;
  height: 110px;
  pointer-events: none;
}

.bba-circle--lg {
  position: absolute;
  right: 0; top: 0;
  width: 88px;
  height: 88px;
  border: 16px solid var(--olive);
  border-radius: 50%;
  opacity: 0.16;
}

.bba-circle--md {
  position: absolute;
  left: 4px;
  bottom: 6px;
  width: 48px;
  height: 48px;
  background: var(--orange);
  border-radius: 50%;
  opacity: 0.18;
}

.bba-line {
  position: absolute;
  width: 100px;
  height: 3px;
  background: var(--dark);
  top: 54px;
  left: -4px;
  opacity: 0.12;
  transform: rotate(-38deg);
}

.bento-book-title {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.2;
  margin: 0 0 5px;
}

.bento-book-author {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  color: #888;
  margin: 0;
}

/* ── Panel 4: writings fan ───────────────── */

.bento-edu {
  margin-top: 14px;
}

.bento-edu-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--orange);
  color: white;
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 700;
  border-radius: 50%;
  margin-bottom: 12px;
}

.bento-edu-school {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  color: white;
  line-height: 1.4;
  margin: 0 0 6px;
}

.bento-edu-major {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 700;
  font-style: italic;
  color: white;
  margin: 0 0 8px;
}

.bento-edu-note {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  color: rgba(255,255,255,0.72);
  margin: 0;
  line-height: 1.5;
}

/* ── Mobile ──────────────────────────────── */

@media (max-width: 768px) {
  .bento-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }
  .bento-card--sanity  { grid-column: 1; grid-row: auto; min-height: 380px; }
  .bento-card--learning { grid-column: 1; grid-row: auto; }
  .bento-card--reading { grid-column: 1; grid-row: auto; }
  .bento-card--education { grid-column: 1; grid-row: auto; min-height: 200px; }
}

/* ─── Work / Case Study ──────────────────────────────────── */

.work-section {
  padding: var(--space-xl) var(--space-lg);
  max-width: 1200px;
  margin: 0 auto;
}

.case-study {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  align-items: start;
  padding: var(--space-lg);
  background: white;
  border-radius: var(--radius-md);
  border: 1.5px solid rgba(44,44,44,0.07);
  box-shadow: 0 2px 16px rgba(44,44,44,0.06);
}

.case-study-title {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: var(--space-xs);
  line-height: 1.15;
}

.case-study-summary {
  font-family: var(--font-sans);
  font-size: 1.125rem;
  color: var(--dark);
  line-height: 1.65;
  margin-bottom: var(--space-md);
  max-width: 48ch;
  opacity: 0.85;
}

.case-study-metrics {
  display: flex;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
  flex-wrap: wrap;
}

.metric-number {
  display: block;
  font-family: var(--font-sans);
  font-size: 2rem;
  font-weight: 700;
  color: var(--olive);
  line-height: 1.1;
}

.metric:nth-child(2) .metric-number { color: var(--orange); }
.metric:nth-child(3) .metric-number { color: var(--olive); }

.metric-label {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  color: var(--dark);
  opacity: 0.65;
  margin-top: 2px;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 24px;
  background: var(--dark);
  color: var(--cream);
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 500;
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  text-decoration: none;
}

.cta-button:hover {
  background: var(--cream);
  color: var(--dark);
  border-color: var(--dark);
}

.cta-button:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}

.cta-button:active {
  opacity: 0.85;
}

.work-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.work-card {
  background: white;
  border-radius: var(--radius-md);
  border: 1.5px solid rgba(44,44,44,0.07);
  box-shadow: 0 2px 16px rgba(44,44,44,0.06);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.work-card:hover {
  box-shadow: 0 8px 32px rgba(44,44,44,0.13);
  transform: translateY(-3px);
}

.work-card-img {
  width: 100%;
  height: 260px;
  overflow: hidden;
  background: var(--cream);
}

.work-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
}

/* ── Work card carousel ─────────────────────── */

.work-carousel {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  height: 100%;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.carousel-track img {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  pointer-events: none;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.45);
  color: white;
  border: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, opacity 0.2s ease;
  opacity: 0;
}

.work-card:hover .carousel-btn {
  opacity: 1;
}

.carousel-btn:hover {
  background: rgba(0, 0, 0, 0.72);
}

.carousel-btn--prev { left: 10px; }
.carousel-btn--next { right: 10px; }

.carousel-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 5px;
  z-index: 2;
}

.carousel-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.carousel-dot.active {
  background: white;
  transform: scale(1.3);
}

.work-card-body {
  padding: 22px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.work-card-tag {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--orange);
}

.work-card-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.2;
  margin: 0;
}

.work-card-desc {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--dark);
  opacity: 0.72;
  margin: 0;
  flex: 1;
}

@media (max-width: 768px) {
  .case-study { grid-template-columns: 1fr; }
  .work-grid  { grid-template-columns: 1fr; }
}

/* ─── Footer ─────────────────────────────────────────────── */

.site-footer {
  text-align: center;
  padding: var(--space-lg);
  font-family: var(--font-sans);
  font-size: 0.875rem;
  color: var(--dark);
  opacity: 0.45;
}

/* ─── Mobile hero ────────────────────────────────────────── */

@media (max-width: 768px) {
  .hero {
    padding: clamp(80px, 14vh, 140px) var(--space-sm) clamp(60px, 10vh, 100px);
  }

  .pocket-outer {
    width: clamp(320px, 92vw, 440px);
  }
}

/* ─── Accessibility ──────────────────────────────────────── */

:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}

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

/* ─── Sparkle particles ──────────────────────────────────── */

.sparkle-particle {
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  border-radius: 50%;
  clip-path: polygon(
    50% 0%, 61% 35%, 98% 35%, 68% 57%,
    79% 91%, 50% 70%, 21% 91%, 32% 57%,
    2% 35%, 39% 35%
  );
  transition: opacity 600ms ease, transform 600ms ease;
}
