/* Isabella Teubal — portfolio styles (matches the Figma design, 1280px desktop / 375px mobile) */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap; src: url('/fonts/inter-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: italic; font-weight: 500; font-display: swap; src: url('/fonts/inter-latin-500-italic.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 700; font-display: swap; src: url('/fonts/inter-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: italic; font-weight: 700; font-display: swap; src: url('/fonts/inter-latin-700-italic.woff2') format('woff2'); }
:root {
  --ink: #000;
  --muted: rgba(0, 0, 0, 0.55);
  --line: rgba(0, 0, 0, 0.1);
  --pad: 64px;          /* page side margin */
  --grid-pad: 62px;     /* projects grid side margin */
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.45;
  letter-spacing: -0.005em;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { display: block; }
h1, h2, p { margin: 0; font-weight: 500; }
em { font-style: italic; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── Header & footer ─────────────────────────────────────── */
.site-header {
  display: flex; align-items: center; justify-content: space-between;
  height: 87px; padding: 0 var(--pad);
}
.logo img { width: 56px; height: 56px; object-fit: cover; }
.site-header nav { display: flex; gap: 32px; }
.site-header nav a:hover, .site-header nav a[aria-current] { opacity: 0.55; }

.site-footer {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 141px; padding: 18px 58px 18px var(--pad);
  border-top: 1px solid var(--line);
  margin-top: 32px;
}
.site-footer nav { display: flex; flex-direction: column; gap: 8px; text-align: right; color: var(--muted); }
.site-footer nav a:hover { color: var(--ink); }

/* ── Photos: always fill their box edge to edge ─────────── */
.photo { position: relative; width: 100%; overflow: hidden; background: #f2f2f2; }
.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo img.cropped { inset: auto; max-width: none; object-fit: fill; }
.photo iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ── Buttons ─────────────────────────────────────────────── */
.pill-row { display: flex; justify-content: center; }
.pill {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 13px 26px; border: 1px solid #000; border-radius: 999px;
  background: transparent; color: #000; font-size: 15px; line-height: 1.2;
  text-decoration: none !important;
  transition: background 0.25s ease, color 0.25s ease;
}
.pill::after { content: '→'; display: inline-block; transition: transform 0.25s ease; }
.pill.pill-down::after { content: '↓'; }
.pill:hover, .pill:focus-visible { background: #000; color: #fff; }
.pill:hover::after { transform: translateX(4px); }
.pill.pill-down:hover::after { transform: translateY(3px); }
.pill-small { font-size: 13px; padding: 10px 20px; gap: 10px; }

/* ── Home ────────────────────────────────────────────────── */
.intro { text-align: center; padding: 21px var(--pad) 22px; font-size: 18px; }
.features { display: flex; flex-direction: column; }
.feature { position: relative; display: block; }
.feature-caption {
  position: absolute; left: 34px; bottom: 52px;
  color: #fff; font-size: 14px; font-weight: 700; letter-spacing: -0.02em;
  display: flex; flex-direction: column; pointer-events: none;
}
.feature-caption em { font-weight: 700; }
.more { padding: 32px 0 24px; }

/* ── Projects grid ──────────────────────────────────────── */
.projects { max-width: 1280px; margin: 0 auto; padding: 40px var(--grid-pad) 40px; }
.tile-section + .tile-section { margin-top: 40px; }
.tile-section h2 { font-size: 16px; margin-bottom: 16px; }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px 6px; }
.tile { display: block; }
.tile-label {
  display: flex; justify-content: space-between; gap: 12px;
  margin-top: 6px; font-size: 11px; letter-spacing: -0.02em;
}
.tile-label em { white-space: nowrap; }
.tile-label.underlined { text-decoration: underline; text-underline-offset: 2px; }
a.tile:hover .photo img { opacity: 0.85; }
.decks p { font-size: 13px; margin-bottom: 16px; }

/* ── Project pages ──────────────────────────────────────── */
.film { max-width: 1280px; margin: 0 auto; padding: 56px var(--pad) 40px; }
.film h1 { font-size: 20px; display: flex; flex-direction: column; margin-bottom: 16px; }
.film h1 em { font-weight: 500; }
.film .pill-row, .zine .pill-row { margin-top: 140px; }

.zine { max-width: 1280px; margin: 0 auto; padding: 92px 94px 40px; display: flex; flex-direction: column; gap: 19px; }
.zine .pill-row { margin-top: 72px; }

.gallery { max-width: 1280px; margin: 0 auto; padding: 30px var(--pad) 40px; }
.gallery section + section { margin-top: 56px; }
.gallery h2 { font-size: 20px; margin-bottom: 20px; }
.gallery .grid { display: grid; grid-template-columns: repeat(var(--cols, 4), 1fr); gap: 12px; }

/* ── Text pages (Bio, Contact) ──────────────────────────── */
.text-page { max-width: 659px; margin: 0 auto; padding: 36px 0 80px; font-size: 18px; }
.text-page h1 { font-size: 20px; margin-bottom: 14px; }
.text-page p + p { margin-top: 26px; }
.text-page .photo { margin: 48px 0; }
.text-page a { text-decoration: underline; text-underline-offset: 2px; }
.text-page strong { font-weight: 700; }
.contact { text-align: center; padding: 145px 0 200px; min-height: 50vh; }

/* ── Tablet ─────────────────────────────────────────────── */
@media (max-width: 900px) {
  :root { --pad: 32px; --grid-pad: 32px; }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .gallery .grid { grid-template-columns: repeat(3, 1fr); }
  .zine { padding: 48px var(--pad) 40px; }
  .text-page { padding-left: var(--pad); padding-right: var(--pad); }
}

/* ── Phone (matches the 375px mobile frames) ───────────── */
@media (max-width: 600px) {
  :root { --pad: 24px; --grid-pad: 16px; }
  .site-header { height: auto; padding: 32px var(--pad) 24px; align-items: flex-start; }
  .logo img { width: 55px; height: 55px; }
  .site-header { align-items: center; }
  .site-header nav { gap: 16px; font-size: 14px; flex-wrap: nowrap; }
  .intro { padding: 0 var(--pad) 24px; font-size: 14px; }
  .feature-caption { left: 10px; bottom: 16px; font-size: 10px; }
    .more { padding: 24px 0; }
  .pill { font-size: 14px; padding: 12px 22px; }
  .tiles { grid-template-columns: 1fr; gap: 20px; }
  .tile-label { font-size: 12px; }
  .film { padding-top: 24px; }
  .film h1 { font-size: 18px; }
  .film .pill-row { margin-top: 40px; }
  .zine { padding: 24px var(--grid-pad) 40px; gap: 12px; }
  .zine .pill-row { margin-top: 40px; }
  .gallery .grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .text-page { font-size: 16px; padding-top: 16px; }
  .contact { padding: 80px var(--pad) 120px; }
  .site-footer { padding: 32px var(--pad); min-height: 117px; align-items: flex-start; }
  .site-footer nav { font-size: 12px; }
}

/* ── Photo essays (Istanbul, Greece, People, Storm King, Film, Gabriela Hearst) ── */
.essay h1 { font-size: 20px; padding: 36px 104px 14px; max-width: 1280px; margin: 0 auto; }
.essay-intro { font-size: 20px; max-width: 1280px; margin: 0 auto; padding: 0 64px 70px; }
.essay:has(.essay-intro) h1 { display: none; }
.essay:has(.essay-intro) .essay-intro { padding-top: 56px; }
.canvas { position: relative; width: 100%; max-width: 1280px; margin: 0 auto; overflow: hidden; }
.canvas .photo { background: none; }
.essay .pill-row { margin: 80px 0 40px; }

/* ── Text page (Endeavor) ── */
.prose { max-width: 1280px; margin: 0 auto; padding: 36px var(--pad) 80px; font-size: 20px; }
.prose h1 { font-size: 20px; margin-bottom: 52px; }
.prose h2 { font-size: 20px; font-weight: 700; margin: 34px 0 16px; }
.prose p + p { margin-top: 29px; }
.prose a { text-decoration: underline; text-underline-offset: 2px; }

/* ── Personal Curation ── */
.stack { max-width: 1280px; margin: 0 auto; padding: 36px 92px 80px 92px; font-size: 20px; }
.stack h1 { font-size: 20px; margin: 0 0 14px 12px; }
.stack-text { margin-top: 32px; }
.stack-text a { text-decoration: underline; text-underline-offset: 2px; }

/* ── CV ── */

.cv { max-width: 1280px; margin: 0 auto; padding: 36px 106px 80px; font-size: 17px; }
.cv h1 { font-size: 20px; margin-bottom: 30px; }
.cv h2 { font-size: 17px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; margin: 34px 0 14px; }
.cv strong { font-weight: 700; }
.cv-name { font-size: 19px; margin-bottom: 26px; }
.cv a { text-decoration: underline; text-underline-offset: 2px; }
.cv-item + .cv-item { margin-top: 18px; }
.cv-line { display: flex; justify-content: space-between; gap: 24px; }
.cv-dates { white-space: nowrap; }
.cv ul { margin: 2px 0 0; padding-left: 27px; }
.cv .pill-row { margin-top: 70px; }

@media (max-width: 900px) {
  .essay h1 { padding-left: var(--pad); padding-right: var(--pad); }
  .essay-intro { padding-left: var(--pad); padding-right: var(--pad); }
  .stack { padding-left: var(--pad); padding-right: var(--pad); }
  .stack h1 { margin-left: 0; }
  .cv { padding-left: var(--pad); padding-right: var(--pad); }
}
@media (max-width: 600px) {
  .essay h1 { padding-top: 16px; font-size: 18px; }
  .essay-intro { font-size: 16px; padding: 16px var(--pad) 32px; }
  .essay .pill-row { margin: 40px 0 24px; }
  .prose, .stack { font-size: 16px; padding-top: 16px; }
  .prose h1, .prose h2 { font-size: 17px; }
  .prose h1 { margin-bottom: 28px; }
  .cv { font-size: 15px; padding-top: 16px; }
  .cv-line { flex-direction: column; gap: 0; }
  .cv-dates { font-style: italic; }
}
.logo img { mix-blend-mode: multiply; }

/* ── Endeavor ── */
.endv { max-width: 1280px; margin: 0 auto; padding: 56px var(--pad) 40px; }
.endv h1 { font-size: 20px; display: flex; flex-direction: column; margin-bottom: 72px; }
.endv h1 em { font-weight: 500; font-size: 16px; margin-top: 2px; }
.endv > * + * { margin-top: 96px; }
.endv h1 + * { margin-top: 0; }
.endv-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.endv-pair .endv-grid { --cols: 2 !important; grid-template-columns: repeat(2, 1fr); }
.endv-sec h2 { font-size: 16px; }
.endv-sec h2 a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.endv-text { font-size: 13px; color: var(--muted); margin: 4px 0 16px; max-width: 640px; }
.inline-link { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; white-space: nowrap; }
.endv-grid { display: grid; grid-template-columns: repeat(var(--cols, 4), 1fr); gap: 6px; }
.ph-box { background: #f0f0f0; }
.photo video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 900px) {
  .endv-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 600px) {
  .endv { padding-top: 24px; }
  .endv h1 { font-size: 18px; margin-bottom: 48px; }
  .endv > * + * { margin-top: 64px; }
  .endv-pair { grid-template-columns: 1fr; row-gap: 64px; }
  .endv-grid { grid-template-columns: repeat(2, 1fr); }
  .endv-tall { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; margin-right: calc(-1 * var(--pad)); padding-right: var(--pad); scrollbar-width: none; }
  .endv-tall > * { flex: 0 0 44%; scroll-snap-align: start; }
}
.logo img { mix-blend-mode: multiply; }

/* ── Endeavor: visual chapters ── */
.endv { max-width: 1280px; margin: 0 auto; padding: 24px var(--pad) 40px; }
.ph { position: absolute; inset: 0; background: #ececec; display: flex; align-items: center; justify-content: center; padding: 12px; text-align: center; }
.ph span { font-size: 12px; color: rgba(0,0,0,0.4); }
.media { position: absolute; inset: 0; display: block; }
.media img, .media video { width: 100%; height: 100%; object-fit: cover; display: block; }
a.media:hover img, a.media:hover video { opacity: 0.88; }

.endv-hero { display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: end; padding: 32px 0 24px; }
.endv-hero h1 { font-size: clamp(56px, 9vw, 120px); line-height: 0.9; letter-spacing: -0.05em; margin-bottom: 32px; }
.endv-hero p { font-size: 20px; max-width: 460px; }

.chapter { padding-top: 120px; }
.chapter-head { display: grid; grid-template-columns: 64px 1fr; column-gap: 16px; margin-bottom: 40px; max-width: 880px; }
.chapter-no { font-size: 13px; color: rgba(0,0,0,0.45); padding-top: 6px; grid-row: span 2; }
.chapter-head h2 { font-size: 28px; font-weight: 700; letter-spacing: -0.02em; }
.chapter-head h2 a { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.chapter-head p { font-size: 18px; color: rgba(0,0,0,0.6); margin-top: 6px; }

.phones { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.phone { position: relative; aspect-ratio: 9 / 19; border-radius: 28px; border: 6px solid #000; overflow: hidden; background: #000; }
.phone .ph { border-radius: 22px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; border-top: 1px solid var(--line); padding-top: 24px; }
.stats strong { display: block; font-size: 48px; letter-spacing: -0.04em; line-height: 1; }
.stats span { font-size: 13px; color: rgba(0,0,0,0.5); }
.stat-ph strong { color: rgba(0,0,0,0.2); }

.strip { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; margin-right: calc(-1 * var(--pad)); padding-right: var(--pad); scrollbar-width: thin; }
.strip-item { position: relative; flex: 0 0 auto; width: 340px; aspect-ratio: 4 / 5; scroll-snap-align: start; }
.li-card { border: 1px solid #000; display: flex; flex-direction: column; justify-content: space-between; padding: 24px; }
.li-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.li-label { font-size: 22px; font-weight: 700; }
.li-go::after { content: ' →'; }
.li-card:hover { background: #000; color: #fff; }

.copy { display: grid; grid-template-columns: 1.4fr 1fr; gap: 56px; align-items: center; }
.quotes blockquote { margin: 0 0 36px; font-size: clamp(24px, 3vw, 38px); line-height: 1.2; letter-spacing: -0.03em; }
.quotes .q-ph { color: rgba(0,0,0,0.25); }
.chat-phone { border: 6px solid #000; border-radius: 32px; padding: 20px 16px 28px; background: #efeae2; aspect-ratio: 9 / 16; max-width: 340px; justify-self: center; width: 100%; display: flex; flex-direction: column; gap: 12px; }
.chat-top { font-size: 12px; text-align: center; color: rgba(0,0,0,0.55); margin-bottom: 8px; }
.bubble { background: #fff; border-radius: 4px 14px 14px 14px; padding: 10px 12px; font-size: 14px; max-width: 88%; box-shadow: 0 1px 0 rgba(0,0,0,0.08); }
.bubble-ph { color: rgba(0,0,0,0.3); min-height: 64px; }

.ig-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.ig-cell { position: relative; aspect-ratio: 4 / 5; }
.ig-big { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }

@media (max-width: 900px) {
  .endv-hero { grid-template-columns: 1fr; gap: 28px; }
  .phones { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; margin-right: calc(-1 * var(--pad)); padding-right: var(--pad); }
  .phone { flex: 0 0 46%; scroll-snap-align: start; }
  .copy { grid-template-columns: 1fr; }
  .ig-grid { grid-template-columns: repeat(2, 1fr); }
  .ig-big { grid-row: auto; aspect-ratio: 4 / 5; }
  .chat-phone { max-width: 280px; }
}
@media (max-width: 600px) {
  .chapter { padding-top: 72px; }
  .chapter-head { grid-template-columns: 40px 1fr; margin-bottom: 24px; }
  .chapter-head h2 { font-size: 21px; }
  .chapter-head p { font-size: 15px; }
  .endv-hero p { font-size: 16px; }
  .phone { flex-basis: 62%; border-width: 5px; }
  .stats strong { font-size: 32px; }
  .strip-item { width: 72vw; }
}

/* ── Projects: side index ── */
.projects.with-index { display: grid; grid-template-columns: 180px 1fr; column-gap: 40px; align-items: start; padding-left: var(--pad); }
.proj-index { position: sticky; top: 32px; display: flex; flex-direction: column; gap: 10px; font-size: 14px; padding-top: 2px; }
.proj-index a { color: rgba(0,0,0,0.4); transition: color 0.2s; width: fit-content; }
.proj-index a:hover { color: var(--ink); }
.proj-index a.on { color: var(--ink); }
.proj-index a.on::before { content: '— '; }
.proj-list .tile-section[hidden] { display: none; }
.proj-list .tile-section:not([hidden]) ~ .tile-section:not([hidden]) { margin-top: 40px; }
.proj-list .tile-section + .tile-section { margin-top: 0; }
@media (max-width: 900px) {
  .projects.with-index { grid-template-columns: 1fr; padding-left: var(--grid-pad); }
  .proj-index { position: sticky; top: 0; z-index: 5; flex-direction: row; gap: 18px; overflow-x: auto; white-space: nowrap; background: #fff; padding: 12px 0; margin-bottom: 16px; scrollbar-width: none; }
  .proj-index a { flex: 0 0 auto; }
  .proj-index a.on::before { content: ''; }
  .proj-index a.on { text-decoration: underline; text-underline-offset: 4px; }
}

/* ── Personal Curation: side-scrolling row ── */
.curation { padding: 56px 0 40px; }
.curation h1 { font-size: 20px; max-width: 1280px; margin: 0 auto 24px; padding: 0 var(--pad); }
.carousel .track {
  display: flex; gap: 6px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding: 0 var(--pad); scroll-padding: 0 var(--pad); scrollbar-width: none; outline: none;
}
.carousel .track::-webkit-scrollbar { display: none; }
.carousel .slide { flex: 0 0 auto; width: clamp(170px, 16vw, 215px); scroll-snap-align: start; }
.carousel-nav { display: flex; align-items: center; justify-content: flex-end; gap: 8px; max-width: 1280px; margin: 16px auto 0; padding: 0 var(--pad); font-size: 13px; color: var(--muted); }
.arrow { width: 32px; height: 32px; border-radius: 50%; border: 1px solid #000; background: transparent; color: #000; font: inherit; font-size: 13px; line-height: 1; padding: 0; cursor: pointer; transition: background 0.2s, color 0.2s, opacity 0.2s; }
.arrow:hover:not(:disabled) { background: #000; color: #fff; }
.arrow:disabled { opacity: 0.25; cursor: default; }
.curation-text { max-width: 1280px; margin: 40px auto 0; padding: 0 var(--pad); font-size: 16px; }
.curation-text a { text-decoration: underline; text-underline-offset: 2px; }
@media (max-width: 600px) {
  .curation { padding-top: 24px; }
  .curation h1 { font-size: 18px; }
  .carousel .slide { width: 44vw; }
  .curation-text { font-size: 14px; margin-top: 28px; }
}

a.canvas-link:hover img { opacity: 0.85; }

/* Bio text a little smaller */
.bio { font-size: 16px; }
.bio p + p { margin-top: 22px; }
@media (max-width: 600px) { .bio { font-size: 15px; } }
@media (max-width: 600px) { .endv h1 em { font-size: 15px; } }

/* ── Shorts: looping videos in an even grid ── */
.shorts { max-width: 1280px; margin: 0 auto; padding: 56px var(--pad) 40px; }
.shorts h1 { font-size: 20px; margin-bottom: 24px; }
.shorts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.short { position: relative; overflow: hidden; background: #f0f0f0; aspect-ratio: 16 / 9; }
.short video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 900px) { .shorts-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) {
  .shorts { padding-top: 24px; }
  .shorts h1 { font-size: 18px; }
  .shorts-grid { grid-template-columns: 1fr; }
}

/* Shorts: click to watch full screen */
button.short { border: 0; padding: 0; margin: 0; cursor: pointer; display: block; width: 100%; font: inherit; }
button.short:hover video { opacity: 0.85; }
button.short:focus-visible { outline: 2px solid #000; outline-offset: 2px; }
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(255,255,255,0.97); display: flex; align-items: center; justify-content: center; padding: 64px 80px; }
.lightbox[hidden] { display: none; }
.lb-video { max-width: 100%; max-height: 100%; background: #000; display: block; }
.lb-close { position: absolute; top: 18px; right: 24px; width: 40px; height: 40px; border: 0; background: none; font-size: 30px; line-height: 1; cursor: pointer; color: #000; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%; border: 1px solid #000; background: transparent; color: #000; font-size: 15px; cursor: pointer; transition: background 0.2s, color 0.2s; }
.lb-nav:hover { background: #000; color: #fff; }
.lb-prev { left: 24px; }
.lb-next { right: 24px; }
@media (max-width: 600px) {
  .lightbox { padding: 64px 0 80px; }
  .lb-nav { top: auto; bottom: 20px; transform: none; }
  .lb-prev { left: calc(50% - 52px); }
  .lb-next { right: calc(50% - 52px); }
  .lb-close { top: 12px; right: 12px; }
}
.short img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
a.tile:hover .short video, a.tile:hover .short img { opacity: 0.85; }
/* Endeavor: vertical 9:16 tiles, 4 per row */
.endv-flat .shorts-grid { grid-template-columns: repeat(4, 1fr); }
.endv-flat .short { aspect-ratio: 9 / 16; }
@media (max-width: 600px) { .endv-flat .shorts-grid { grid-template-columns: repeat(2, 1fr); } }

/* Same footer on every page: always at the bottom of the screen, same line and spacing */
body { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
body > main { flex: 1 0 auto; }
.site-footer { flex-shrink: 0; }

/* Personal Curation: continuous scroll */
.marquee { overflow: hidden; width: 100%; }
.marquee-track { display: flex; gap: 6px; width: max-content; animation: marquee calc(var(--count) * 4s) linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee .slide { flex: 0 0 auto; width: clamp(240px, 23vw, 320px); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(calc(-50% - 3px)); } }
@media (max-width: 600px) { .marquee .slide { width: 66vw; } }
@media (prefers-reduced-motion: reduce) {
  .marquee { overflow-x: auto; }
  .marquee-track { animation: none; }
}

/* Personal Curation: two rows, opposite directions */
.marquees { display: flex; flex-direction: column; gap: 6px; }
.marquees .marquee .slide { width: clamp(200px, 18vw, 250px); }
.marquee.reverse .marquee-track { animation-direction: reverse; }
@media (max-width: 600px) { .marquees .marquee .slide { width: 48vw; } }

/* Personal Curation: still, edge-to-edge grid with no gaps */
.curation-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0; width: 100%; }
.curation-grid .photo { background: #f0f0f0; }
.curation-grid a.tile:hover img { opacity: 0.85; }
@media (max-width: 900px) { .curation-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 600px) { .curation-grid { grid-template-columns: repeat(2, 1fr); } }

.curation h1 { margin-bottom: 4px; }
.curation-sub { margin: 0 auto 24px; color: var(--ink); }

/* Gallery: click to view full size */
button.zoom { border: 0; padding: 0; margin: 0; background: none; cursor: zoom-in; display: block; width: 100%; }
button.zoom:hover img { opacity: 0.88; }
button.zoom:focus-visible { outline: 2px solid #000; outline-offset: 2px; }
.lb-img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }

.gallery-sub { font-size: 16px; color: var(--ink); margin: -16px 0 20px; }
@media (max-width: 600px) { .gallery-sub { font-size: 14px; } }
@media (max-width: 340px) { .site-header nav { gap: 12px; font-size: 13px; } }

.endv-flat h1 + .endv-sub { margin: -18px 0 24px; }
@media (max-width: 600px) { .cv-contact { white-space: nowrap; font-size: min(15px, 3.55vw); letter-spacing: -0.01em; } }

/* CV: minimal two-column layout */
.cv3 { max-width: 1280px; margin: 0 auto; padding: 36px var(--pad) 80px; font-size: 17px; line-height: 1.45; }
.cv3-row { display: grid; grid-template-columns: 260px 1fr; column-gap: 40px; }
.cv3-row + .cv3-row { margin-top: 1.1em; }
.cv3 h1 { font-size: inherit; font-weight: 500; margin: 0; }
.cv3-text p { margin: 0; }
.cv3-text p + p { margin-top: 0.8em; }
.cv3 a { text-decoration: underline; text-underline-offset: 2px; }
.cv3 a:hover { opacity: 0.55; }
@media (max-width: 700px) {
  .cv3 { font-size: 15px; }
  .cv3-row { grid-template-columns: 1fr; }
  .cv3-label { color: var(--muted); margin-bottom: 4px; }
  .cv3-row + .cv3-row { margin-top: 1.4em; }
}

/* Buttons shown as plain underlined text links */
.pill, .pill-small, .pill-grey {
  display: inline; padding: 0; border: 0; border-radius: 0; background: none !important; color: var(--ink) !important;
  -webkit-backdrop-filter: none; backdrop-filter: none;
  font-size: inherit; text-decoration: underline !important; text-underline-offset: 3px; text-decoration-thickness: 1px;
}
.pill::after { content: none; }
.pill:hover, .pill:focus-visible { opacity: 0.55; }
.decks a { text-decoration: underline; text-underline-offset: 2px; }
.decks a:hover { opacity: 0.55; }

/* Footer: no logo, small black links on the right */
.site-footer { justify-content: flex-end; }
.site-footer nav { color: var(--ink); font-size: 14px; }
.site-footer nav a:hover { color: var(--ink); opacity: 0.55; }
@media (max-width: 600px) { .site-footer { align-items: center; } .site-footer nav { font-size: 12px; } }
.site-footer { border-top: 0; }
/* shorter footer */
.site-footer { min-height: 0; padding-top: 20px; padding-bottom: 24px; margin-top: 16px; }
@media (max-width: 600px) { .site-footer { min-height: 0; padding-top: 16px; padding-bottom: 20px; } }
.site-footer { padding-top: 12px; padding-bottom: 18px; } .site-footer nav { gap: 4px; }

/* Film pages: smaller video, smaller subtitle */
.film h1 em { font-size: 16px; margin-top: 2px; }
.film .photo.video, .film > .photo { max-width: 760px; }
.shorts h1 + .shorts-sub { margin: -20px 0 24px; }
@media (max-width: 600px) { .film h1 em { font-size: 14px; } }

/* Editorial rows (Gabriela Hearst) */
.ed-rows { max-width: 1280px; margin: 0 auto; padding: 0 var(--pad); display: flex; flex-direction: column; gap: 6px; }
.ed-row { display: grid; grid-template-columns: repeat(var(--n), 1fr); gap: 6px; }
@media (max-width: 600px) { .ed-rows { padding: 0; } }
@media (max-width: 600px) { .ed .essay-intro { white-space: nowrap; font-size: min(15px, 2.7vw); letter-spacing: -0.01em; } }
