/* ============================================================
   style.css — Pooja Patel Portfolio · 2026
   Tokens → Reset → Nav → Sidebar → Sections → Weekends
   Case Study → Responsive
   ============================================================ */


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

:root {
  --bg:            #f9fbf9;
  --ink:           #000;
  --ink-secondary: rgba(0,0,0,0.5);
  --ink-muted:     #828282;
  --border:        #d7d7d7;
  --surface:       #fff;
  --surface-muted: #e6e6e6;

  --font-mono:  'Fragment Mono', monospace;
  --font-sans:  'DM Sans', sans-serif;
  --font-body:  'DM Sans', sans-serif;
  --font-label: 'Fragment Mono', monospace;

  --sidebar-w:  279px;
  --nav-h:      110px;
  --pad:         44px;
  --content-gap: 220px;

  --t:      0.2s ease;
  --t-fast: 0.12s ease;
}

html.dark {
  --bg:            #000;
  --ink:           #fff;
  --ink-secondary: rgba(255,255,255,0.5);
  --ink-muted:     rgba(255,255,255,0.38);
  --border:        rgba(255,255,255,0.12);
  --surface:       #141414;
  --surface-muted: #222;
}

/* ── Theme B — Chalk ──────────────────────────────────────── */
html.theme-b {
  --bg:            #FCFAF7;
  --ink:           #1C1410;
  --ink-secondary: rgba(28,20,16,0.5);
  --ink-muted:     rgba(28,20,16,0.45);
  --border:        rgba(28,20,16,0.15);
  --surface:       #F2EBE0;
}
html.theme-b.dark {
  --bg:            #000;
  --ink:           #fff;
  --ink-secondary: rgba(255,255,255,0.5);
  --ink-muted:     rgba(255,255,255,0.38);
  --border:        rgba(255,255,255,0.12);
  --surface:       #141414;
}

/* ── Theme C — Slate ──────────────────────────────────────── */
html.theme-c {
  --bg:            #F5F7FA;
  --ink:           #10141A;
  --ink-secondary: rgba(16,20,26,0.5);
  --ink-muted:     rgba(16,20,26,0.45);
  --border:        rgba(16,20,26,0.12);
  --surface:       #E4E8EE;
}
html.theme-c.dark {
  --bg:            #000;
  --ink:           #fff;
  --ink-secondary: rgba(255,255,255,0.5);
  --ink-muted:     rgba(255,255,255,0.38);
  --border:        rgba(255,255,255,0.12);
  --surface:       #141414;
}


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

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  scroll-snap-type: y mandatory;
  scroll-padding-top: var(--nav-h);
  overflow-x: hidden;
}

body {
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color var(--t), color var(--t);
}

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

button {
  font-family: inherit;
  background: none;
  border: none;
  cursor: pointer;
  color: inherit;
  padding: 0;
}

a:focus-visible,
button:focus-visible {
  outline: 1px solid var(--ink);
  outline-offset: 4px;
}

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


/* ── Navigation ───────────────────────────────────────────── */

.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--pad);
  background: var(--bg);
  z-index: 200;
  transition: background-color var(--t);
}

.nav-brand {
  font-family: var(--font-mono);
  font-size: 16px;
  letter-spacing: 0.32px;
  color: var(--ink);
  transition: color var(--t);
}

.nav-links {
  display: flex;
  gap: 50px;
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.28px;
}

.nav-links a {
  color: var(--ink-secondary);
  transition: color var(--t);
}
.nav-links a.active,
.nav-links a:hover { color: var(--ink); }

/* mobile hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--ink);
  transition: background-color var(--t);
}


/* ── Sidebar ──────────────────────────────────────────────── */

.sidebar {
  position: fixed;
  top: var(--nav-h);
  left: 0;
  width: var(--sidebar-w);
  height: calc(100vh - var(--nav-h));
  padding: var(--pad);
  display: flex;
  flex-direction: column;
  justify-content: center;
  z-index: 100;
  pointer-events: none;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.28px;
  pointer-events: all;
  transform: translateY(-60px);
}

.sidebar-link {
  color: var(--ink-secondary);
  text-transform: uppercase;
  transition: color var(--t);
  display: block;
  width: fit-content;
}
.sidebar-link.active,
.sidebar-link:hover { color: var(--ink); }

.sidebar-icons {
  position: absolute;
  bottom: var(--pad);
  left: var(--pad);
  display: flex;
  align-items: center;
  gap: 22px;
  pointer-events: all;
}

.icon-btn {
  opacity: 0.7;
  transition: opacity var(--t);
  display: flex;
  align-items: center;
  line-height: 0;
  color: var(--ink);
}
.icon-btn:hover { opacity: 1; }

.icon-moon { display: none; }
html.dark .icon-sun  { display: none; }
html.dark .icon-moon { display: block; }

.icon-shuffle { transition: transform 0.3s ease; }
.icon-shuffle.spin { transform: rotate(180deg); }


/* ── Page layout ──────────────────────────────────────────── */

.page-main {
  margin-left: var(--sidebar-w);
  padding-top: var(--nav-h);
}


/* ── Intro section ────────────────────────────────────────── */

.section-intro {
  position: relative;
  min-height: calc(100vh - var(--nav-h));
  display: flex;
  flex-direction: column;
  padding: 18vh var(--pad) 80px var(--content-gap);
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.intro-tabs {
  display: flex;
  gap: 11px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.intro-tab {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1;
  padding: 6px 20px;
  height: 34px;
  border-radius: 100px;
  border: 1px solid var(--border);
  color: var(--ink);
  background: transparent;
  transition: background var(--t), color var(--t), border-color var(--t);
  white-space: nowrap;
}
.intro-tab.active {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

.intro-headline-wrap {
  max-width: 820px;
}

.intro-headline {
  font-family: var(--font-sans);
  font-size: clamp(42px, 5.1vw, 72px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.intro-headline[hidden] { display: none; }

.intro-arrow {
  margin-top: auto;
  padding-top: 40px;
  padding-bottom: 120px;
  left: var(--content-gap);
  color: var(--ink);
  opacity: 0.7;
  line-height: 0;
}


/* ── Values section ───────────────────────────────────────── */

.section-values {
  min-height: calc(100vh - var(--nav-h));
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 435px var(--pad) 80px var(--content-gap);
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background-color: var(--border);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.value-item {
  display: flex;
  flex-direction: column;
  gap: 23px;
  padding: 22px;
  background: var(--bg);
}

.value-num {
  font-family: var(--font-label);
  font-size: 12px;
  color: var(--ink-muted);
  font-style: normal;
}

.value-title {
  font-family: var(--font-sans);
  font-size: 30px;
  font-weight: 400;
  line-height: 35px;
  letter-spacing: -0.6px;
  color: var(--ink);
}

.value-desc {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-muted);
}


/* ── Work section ─────────────────────────────────────────── */

.section-work {
  min-height: calc(100vh - var(--nav-h));
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px var(--pad) 80px var(--content-gap);
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.work-tabs-row {
  display: flex;
  align-items: flex-start;
  gap: 0;
  margin-bottom: 60px;
  position: relative;
}

.work-tabs {
  display: flex;
  gap: 8px;
}

.work-tab {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1;
  padding: 7px 18px;
  height: 34px;
  min-width: 155px;
  text-align: center;
  border-radius: 100px;
  border: 1px solid var(--border);
  color: var(--ink);
  background: transparent;
  white-space: nowrap;
  transition: background var(--t), color var(--t), border-color var(--t);
}
.work-tab.active {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

.work-tab-content { display: none; }
.work-tab-content.active { display: block; }

/* Case studies tab wrapper */
.cs-tab-wrap {
  position: relative;
}

/* Case studies sticker */
@keyframes cs-bounce-in {
  0%   { opacity: 0; transform: translateY(5px); }
  70%  { opacity: 1; transform: translateY(-2px); }
  100% { opacity: 1; transform: translateY(0); }
}

.cs-sticker {
  display: flex;
  align-items: center;
  gap: 6px;
  position: absolute;
  bottom: calc(100% + 4px);
  left: 70px;
  color: var(--ink-muted);
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
}
.cs-sticker.visible {
  visibility: visible;
  animation: cs-bounce-in 0.35s cubic-bezier(0.25, 0, 0.3, 1) forwards;
}
.cs-sticker-arrow {
  flex-shrink: 0;
  width: 52px;
  height: 36px;
  opacity: 0.7;
  transform: scaleX(-1);
}
.cs-sticker-text {
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.4;
  color: var(--ink-secondary);
  max-width: 110px;
  padding-bottom: 6px;
}

/* Highlights layout */
.work-project {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding: 80px 0;
  border-top: 1px solid var(--border);
}
.work-project:first-child { border-top: none; padding-top: 0; }

.work-project-text {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.work-project-label {
  font-family: var(--font-label);
  font-size: 13px;
  color: var(--ink-muted);
  letter-spacing: 0.02em;
}

.work-project-title {
  font-family: var(--font-body);
  font-size: clamp(28px, 2.8vw, 48px);
  font-weight: 400;
  line-height: 1.1;
  color: var(--ink);
}

.work-project-desc {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-muted);
}

.work-project-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-label);
  font-size: 13px;
  color: var(--ink);
  margin-top: 4px;
  transition: opacity var(--t);
}
.work-project-link:hover { opacity: 0.6; }

.work-project-visuals {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  overflow: hidden;
}

.work-mockup {
  background: var(--surface-muted);
  border-radius: 14px;
  flex: 1;
  height: 340px;
  min-width: 0;
}
.work-mockup.dark-bg { background: #1a1a1a; }

/* Case studies list */
.cs-list-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: start;
  padding: 48px 0;
  border-top: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  transition: opacity var(--t);
}
.cs-list-item:first-child { border-top: none; padding-top: 0; }

.cs-list-text { display: flex; flex-direction: column; gap: 14px; }

.cs-list-label {
  font-family: var(--font-label);
  font-size: 13px;
  color: var(--ink-muted);
}

.cs-list-title {
  font-family: var(--font-body);
  font-size: clamp(26px, 2.4vw, 40px);
  font-weight: 400;
  line-height: 1.1;
  color: var(--ink);
}

.cs-list-desc {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-muted);
  max-width: 520px;
}

.cs-list-link {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity var(--t);
}

.cs-list-link:hover { opacity: 0.5; }

.cs-list-thumb {
  background: var(--surface-muted);
  border-radius: 14px;
  width: 240px;
  height: 180px;
  flex-shrink: 0;
  overflow: hidden;
}
.cs-list-thumb img { width: 100%; height: 100%; object-fit: cover; }


/* ── Contact section ──────────────────────────────────────── */

.section-contact {
  min-height: calc(100vh - var(--nav-h));
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px var(--pad) 80px var(--content-gap);
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.contact-item {
  display: flex;
  flex-direction: column;
  gap: 23px;
  padding: 40px 0;
  border-bottom: 1px solid var(--border);
}
.contact-item:first-child { padding-top: 0; }
.contact-item:last-child { border-bottom: none; }

.contact-label {
  font-family: var(--font-label);
  font-size: 12px;
  color: var(--ink-muted);
  text-transform: uppercase;
}

.contact-value {
  font-family: var(--font-sans);
  font-size: 30px;
  font-weight: 400;
  line-height: 35px;
  letter-spacing: -0.6px;
  color: var(--ink);
  transition: opacity var(--t);
}
a.contact-item:hover .contact-value { opacity: 0.6; }


/* ── Weekends page ────────────────────────────────────────── */

.weekends-main {
  margin-left: var(--sidebar-w);
  padding-top: var(--nav-h);
}

.weekend-section {
  position: relative;
  padding: 240px var(--pad) 120px var(--content-gap);
  min-height: 1200px;
  overflow: visible;
}

.weekend-header {
  display: flex;
  flex-direction: column;
  gap: 22px;
  max-width: 517px;
  margin-bottom: 80px;
  position: relative;
  z-index: 1;
}

/* Polaroids pinned to top of section (above the header) */
.polaroid-abs {
  position: absolute;
}

.weekend-label {
  font-family: var(--font-label);
  font-size: 13px;
  color: var(--ink);
}

.weekend-title {
  font-family: var(--font-body);
  font-size: 48px;
  font-weight: 400;
  line-height: 1.0;
  color: var(--ink);
}

.weekend-desc {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink);
}

/* Polaroid photo field */
.polaroid-field {
  position: relative;
  height: 900px;
  margin-bottom: 60px;
  overflow: visible;
}

@keyframes polaroid-wiggle {
  0%   { rotate: 0deg;    scale: 1; }
  40%  { rotate: -1.5deg; scale: 1.02; }
  100% { rotate: 0deg;    scale: 1.02; }
}

.polaroid {
  position: absolute;
  background: #fff;
  padding: 16px;
  border-radius: 32px;
  width: 320px;
  box-shadow: 0 4px 32px rgba(0,0,0,0.06);
  transition: box-shadow var(--t);
}
.polaroid:hover {
  box-shadow: 0 12px 56px rgba(0,0,0,0.14);
  animation: polaroid-wiggle 0.45s ease forwards;
  z-index: 10;
}

.polaroid-img {
  width: 100%;
  height: 250px;
  background: var(--surface-muted);
  border-radius: 20px 20px 0 0;
  overflow: hidden;
}

.polaroid-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.polaroid-caption {
  padding: 10px 6px 4px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.polaroid-caption p {
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.5;
  color: #555;
}


/* ── Case study pages ─────────────────────────────────────── */

/* backward-compat aliases for 01-invoicing.html class names */
.cs-eyebrow      { font-family: var(--font-label); font-size: 13px; color: var(--ink-muted); margin-bottom: 24px; }
.cs-header-rule  { border: none; border-top: 1px solid var(--border); margin: 40px 0 0; }
.cs-meta         { display: grid; grid-template-columns: repeat(4,1fr); gap: 32px; padding: 40px 0 0; }
.cs-hero-image   { padding: 0 var(--pad) 0 calc(var(--sidebar-w) + var(--content-gap)); margin: 40px 0; }
.cs-hero-img-placeholder { background: var(--surface-muted); border-radius: 14px; aspect-ratio: 16/9; width: 100%; }
.cs-img-col      { background: var(--surface-muted); border-radius: 14px; aspect-ratio: 4/3; }
.cs-annotation   { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 20px 24px; font-size: 14px; line-height: 1.6; color: var(--ink-muted); }
.cs-impact       { background: var(--ink); color: var(--bg); padding: 80px var(--pad) 80px calc(var(--sidebar-w) + var(--content-gap)); }
.cs-impact .cs-stat-number { color: var(--bg); }
.cs-impact .cs-stat-label  { color: rgba(255,255,255,0.55); }
.cs-caption      { font-family: var(--font-label); font-size: 12px; color: var(--ink-muted); margin-top: 10px; }
.cs-next-strip   { border-top: 1px solid var(--border); padding: 60px var(--pad) 80px calc(var(--sidebar-w) + var(--content-gap)); display: flex; flex-direction: column; gap: 12px; }
.cs-next-label-text { font-family: var(--font-label); font-size: 12px; color: var(--ink-muted); }
.cs-next-title   { font-family: var(--font-body); font-size: 32px; font-weight: 400; color: var(--ink); }
.cs-next-strip:hover .cs-next-title { opacity: 0.6; }

.cs-page {
  margin-left: var(--sidebar-w);
  padding-top: var(--nav-h);
  max-width: 1600px;
}

.cs-hero {
  padding: 80px var(--pad) 80px var(--content-gap);
  border-bottom: 1px solid var(--border);
}

.cs-overline {
  font-family: var(--font-label);
  font-size: 13px;
  color: var(--ink-muted);
  margin-bottom: 24px;
}

.cs-title {
  font-family: var(--font-body);
  font-size: clamp(36px, 3.5vw, 56px);
  font-weight: 400;
  line-height: 1.08;
  color: var(--ink);
  max-width: 760px;
  margin-bottom: 32px;
}

.cs-lede {
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-muted);
  max-width: 640px;
}

.cs-meta-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 48px var(--pad) 48px var(--content-gap);
}

.cs-meta-item { display: flex; flex-direction: column; gap: 8px; }

.cs-meta-label {
  font-family: var(--font-label);
  font-size: 12px;
  color: var(--ink-muted);
}

.cs-meta-value {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 400;
  color: var(--ink);
}

.cs-body {
  padding: 80px var(--pad) 80px var(--content-gap);
  max-width: 780px;
}

.cs-chapter-title {
  font-family: var(--font-sans);
  font-size: 30px;
  font-weight: 400;
  letter-spacing: -0.4px;
  color: var(--ink);
  margin-bottom: 24px;
}

.cs-body-text {
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-muted);
  margin-bottom: 32px;
}

.cs-img-row {
  display: grid;
  gap: 16px;
  margin: 40px 0;
}
.cs-img-row.cols-2 { grid-template-columns: 1fr 1fr; }
.cs-img-row.cols-3 { grid-template-columns: 1fr 1fr 1fr; }

.cs-img-placeholder {
  background: var(--surface-muted);
  border-radius: 14px;
  aspect-ratio: 4/3;
}

.cs-pull-quote {
  font-family: var(--font-sans);
  font-size: 26px;
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -0.3px;
  color: var(--ink);
  border-left: 2px solid var(--ink);
  padding-left: 28px;
  margin: 48px 0;
}

.cs-stat-grid {
  background: var(--ink);
  color: var(--bg);
  padding: 80px var(--pad) 80px var(--content-gap);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  margin: 80px 0;
}

.cs-stat-number {
  font-family: var(--font-sans);
  font-size: clamp(42px, 4vw, 72px);
  font-weight: 400;
  letter-spacing: -2px;
  line-height: 1;
  margin-bottom: 12px;
}

.cs-stat-label {
  font-family: var(--font-label);
  font-size: 13px;
  color: rgba(255,255,255,0.6);
}

.cs-live-link {
  padding: 48px var(--pad) 48px var(--content-gap);
  border-top: 1px solid var(--border);
}

.cs-live-btn {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity var(--t);
}

.cs-live-btn:hover { opacity: 0.5; }

.cs-next {
  border-top: 1px solid var(--border);
  padding: 60px var(--pad) 80px var(--content-gap);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cs-next-label {
  font-family: var(--font-label);
  font-size: 12px;
  color: var(--ink-muted);
}

.cs-next-title {
  font-family: var(--font-body);
  font-size: 32px;
  font-weight: 400;
  color: var(--ink);
  transition: opacity var(--t);
}
.cs-next:hover .cs-next-title { opacity: 0.6; }


/* ── Responsive ───────────────────────────────────────────── */

@media (max-width: 1200px) {
  :root { --content-gap: 120px; }
}

@media (max-width: 1024px) {
  :root { --content-gap: 60px; }

  .values-grid { grid-template-columns: repeat(2, 1fr); }

  .work-project { grid-template-columns: 1fr; gap: 32px; }
  .work-project-visuals { overflow-x: auto; max-width: 100%; }

  .cs-meta-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .cs-stat-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root {
    --nav-h:      64px;
    --pad:        24px;
    --content-gap: 0px;
    --sidebar-w:  0px;
  }

  .site-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: var(--nav-h);
    z-index: 200;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
  }
  .sidebar { display: none; }

  .page-main,
  .weekends-main,
  .cs-page { margin-left: 0; }

  html { scroll-snap-type: none; }

  .section-intro { min-height: calc(100dvh - var(--nav-h)); justify-content: flex-start; padding: 18vh var(--pad) 80px; scroll-snap-align: none; }

  .section-values,
  .section-work,
  .section-contact { min-height: unset; justify-content: flex-start; padding: 100px var(--pad); scroll-snap-align: none; }

  .intro-arrow { margin-top: auto; padding-bottom: 40px; }

  .weekend-section { padding-left: var(--pad); padding-right: var(--pad); }

  .cs-hero,
  .cs-body,
  .cs-next { padding-left: 22px; padding-right: 22px; }

  .cs-meta-grid { padding-left: 22px; padding-right: 22px; }
  .cs-stat-grid { padding-left: 22px; padding-right: 22px; }

  .nav-links { display: none; }
  .nav-hamburger { display: flex; }

  .intro-headline { font-size: clamp(44px, 12vw, 64px); }

  .values-grid { grid-template-columns: 1fr; }

  .cs-sticker { display: none; }

  .page-main {
    overflow-x: clip;
    max-width: 100%;
  }

  .section-intro,
  .section-values,
  .section-contact {
    overflow-x: clip;
    max-width: 100%;
  }

  .section-work {
    overflow: visible;
    max-width: 100%;
  }

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

  .cs-list-item { grid-template-columns: 1fr; }
  .cs-list-thumb { width: 100%; }

  .weekend-title { font-size: 36px; }

  /* Stack polaroids vertically on mobile */
  .weekend-section {
    padding-top: 60px;
    min-height: unset;
  }

  .polaroid-abs,
  .polaroid-field .polaroid {
    position: static;
    transform: none !important;
    width: 100%;
    margin-bottom: 16px;
  }

  .polaroid-field {
    position: static;
    height: auto;
    display: flex;
    flex-direction: column;
    margin-bottom: 0;
  }

  .polaroid-img { height: 220px; }

  .cs-stat-grid { grid-template-columns: repeat(2, 1fr); }
  .cs-meta-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
}


/* ── Password gate ─────────────────────────────────────────── */

.pp-gate {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
}

.pp-gate-inner {
  width: 100%;
  max-width: 320px;
  padding: 0 24px;
  text-align: center;
}

.pp-gate-brand {
  margin: 0 0 32px;
  font-family: var(--font-mono);
  font-size: 15px;
  letter-spacing: 0.3px;
  color: var(--ink);
}

.pp-gate-label {
  margin: 0 0 16px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.26px;
  color: var(--ink-secondary);
}

.pp-gate-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pp-gate-form input {
  width: 100%;
  padding: 12px 16px;
  font-family: var(--font-sans);
  font-size: 16px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--border);
  outline: none;
  transition: border-color var(--t);
}

.pp-gate-form input:focus {
  border-color: var(--ink);
}

.pp-gate-form button {
  padding: 12px 16px;
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.28px;
  color: var(--bg);
  background: var(--ink);
  border: none;
  cursor: pointer;
  transition: opacity var(--t);
}

.pp-gate-form button:hover {
  opacity: 0.85;
}

.pp-gate-error {
  margin: 4px 0 0;
  font-family: var(--font-mono);
  font-size: 12px;
  color: #c44;
}
