/* ========================================================
   Elise Fotografie — zwart / wit / roze, stoer & editorial
   ======================================================== */

@import url('https://fonts.googleapis.com/css2?family=Anton&family=League+Spartan:wght@500;600;700&family=Inter:wght@300;400;500&family=Jost:wght@400;500&family=Outfit:wght@400;500&family=DM+Sans:wght@300;400;500&display=swap');

:root {
  --bg: #0a0a0a;
  --bg-alt: #111111;
  --text: #f3f3f0;
  --muted: #8f8f8f;
  --pink: #FF6A9A;
  --pink-dim: #7a1737;
  --border: #232323;

  --font-display: 'League Spartan', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-body: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  /* Handwritten script used for every date on the site. */
  --font-script: 'Jost', var(--font-body);
  /* The typeface Elise uses in her own layouts (shoot titles, home). */
  --font-elise: var(--font-display);
  /* Shoot descriptions. */
  --font-desc: 'DM Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

/* Home: pink behind the browser bars (status bar, toolbar) on phones,
   so there's no black strip above or below the pink hero. */
html:has(body.home),
body.home {
  background: var(--pink);
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

::selection {
  background: var(--pink);
  color: #0a0a0a;
}

.eyebrow {
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}

/* ── Hamburger menu (no bar) ── */

.nav-toggle {
  position: fixed;
  top: 32px;
  left: 32px;
  display: block;
  z-index: 110;
  background: none;
  border: none;
  width: 28px;
  height: 20px;
  cursor: pointer;
}

.logo {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 42px;
  letter-spacing: -0.12em;
  text-transform: lowercase;
  color: var(--pink);
}

/* Menu: a sidebar sliding in from the left (desktop and phone), over a
   dimmed backdrop that closes it when clicked. */
.sidebar-nav {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: min(380px, 85vw);
  overflow-y: auto;
  background: var(--bg);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  padding: 110px 48px 56px;
  visibility: hidden;
  transform: translateX(-100%);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s linear 0.4s;
  z-index: 105;
}

.nav-open .sidebar-nav {
  visibility: visible;
  transform: translateX(0);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s;
}

/* The backdrop has no colour and is hidden while the menu is closed.
   Safari on iPhone tints its top and bottom bars to match a
   full-screen fixed element, so a dark (even invisible) backdrop
   would turn those bars black on the pink home page. */
.nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 104;
  background: transparent;
  visibility: hidden;
  pointer-events: none;
  transition: background-color 0.35s ease, visibility 0s linear 0.35s;
}

.nav-open .nav-backdrop {
  background: rgba(0, 0, 0, 0.55);
  visibility: visible;
  pointer-events: auto;
  transition: background-color 0.35s ease, visibility 0s;
}

/* A growing pile of real photos in the empty space on the right of the
   fullscreen menu. It starts with a single photo; every few seconds a
   new one lands on top, stacking onto the previous ones, up to 5 —
   after that the oldest drops off as a new one arrives. Photos keep
   their own aspect ratio (object-fit: contain) so nothing is cropped. */
.nav-slideshow {
  display: none;
  position: absolute;
  top: 0;
  right: 0;
  width: 42vw;
  height: 100%;
  padding: 64px 140px 64px 32px;
  box-sizing: border-box;
}

.nav-slideshow-img {
  position: absolute;
  top: 50%;
  left: 50%;
  max-width: min(94%, 460px);
  max-height: 64vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 3px;
  background: #111;
  opacity: 0;
  transform: translate(-50%, -50%);
  transition: opacity 1s ease, transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.nav-slideshow-img.visible {
  opacity: 1;
}

@media (max-width: 900px) {
  .nav-slideshow {
    display: none;
  }
}

.sidebar-nav-top {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 76px;
}

.sidebar-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.sidebar-nav ul a {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(32px, 6vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.04em;
  text-transform: lowercase;
  color: var(--text);
  transition: color 0.25s ease;
}

.sidebar-nav ul a.active {
  color: var(--pink);
}

/* Hover colour only on devices with a real mouse, so a tapped link
   on a phone doesn't stay pink next to the active one. */
@media (hover: hover) {
  .sidebar-nav ul a:hover {
    color: var(--pink);
  }
}

.nav-divider {
  display: none;
}

.sidebar-nav .instagram-icon {
  display: inline-flex;
  color: var(--muted);
  transition: color 0.25s ease;
}

.sidebar-nav .instagram-icon:hover {
  color: var(--pink);
}

.sidebar-nav .instagram-icon svg {
  width: 22px;
  height: 22px;
}

.nav-toggle span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: all 0.3s ease;
}

.nav-toggle span:nth-child(1) { top: 0; }
.nav-toggle span:nth-child(2) { top: 9px; }
.nav-toggle span:nth-child(3) { top: 18px; }

.nav-open .nav-toggle span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}
.nav-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}
.nav-open .nav-toggle span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

body.home .nav-toggle span {
  background: #0a0a0a;
}

body.home.nav-open .nav-toggle span {
  background: var(--text);
}

/* ── Hero ── */

.hero {
  position: relative;
  height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--pink);
}

.hero-content {
  position: relative;
  z-index: 3;
  margin: 0 auto;
  padding: 0;
  text-align: center;
}

.hero-content h1 {
  font-family: var(--font-display);
  font-weight: 700;
  /* One line ("Elise Rozeveld" side by side), sized to fit. */
  font-size: clamp(48px, 8vw, 128px);
  line-height: 0.9;
  white-space: nowrap;
  /* Optical centring: the font sits its letters a little right of and above
     the middle of their box. */
  transform: translate(-0.05em, 0.11em);
  letter-spacing: -0.12em;
  color: #0a0a0a;
}

.hero-content h1 .phone-break {
  display: none;
}

/* The name sits exactly in the middle of the screen; the subtitle hangs
   below it without pushing the name off-centre. */
.hero-subtitle {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 1.1vw;
  font-family: 'Jost', var(--font-body);
  font-weight: 400;
  font-size: clamp(14px, 1.35vw, 22px);
  letter-spacing: 0.06em;
  line-height: 1.2;
  white-space: nowrap;
  color: #0a0a0a;
}

.hero-content h1 .accent {
  color: var(--pink);
}

/* ── Section shell ── */

section {
  padding: 140px 48px;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 64px;
  flex-wrap: wrap;
}

.section-head h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(36px, 6vw, 72px);
  text-transform: uppercase;
  line-height: 0.95;
  letter-spacing: -0.12em;
}

.section-head p {
  max-width: 380px;
  color: var(--muted);
  font-weight: 300;
  font-size: 14px;
}

/* ── Intro (home) ── */

.intro {
  padding-top: 120px;
  text-align: center;
}

.intro-statement {
  max-width: 760px;
  margin: 0 auto;
}

.intro-lead {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(26px, 4vw, 42px);
  line-height: 1.25;
  text-transform: uppercase;
  letter-spacing: -0.12em;
}

.intro-lead strong {
  color: var(--pink);
  font-weight: 500;
}

.intro-sub {
  margin: 28px auto 0;
  max-width: 460px;
  font-size: 15px;
  font-weight: 300;
  line-height: 1.8;
  color: var(--muted);
}

.intro .text-link {
  margin-top: 32px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 32px;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text);
  border-bottom: 1px solid var(--pink);
  padding-bottom: 6px;
  transition: gap 0.25s ease, color 0.25s ease;
}

.text-link:hover {
  gap: 16px;
  color: var(--pink);
}

/* ── Category teasers (home) ── */

.categories {
  padding: 0 48px 140px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
}

.category-tile {
  position: relative;
  height: 620px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

.category-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.category-tile img.align-top {
  object-position: top;
}

.category-tile::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,10,10,0.85), rgba(10,10,10,0.05) 55%);
  z-index: 1;
}

.category-tile:hover img {
  transform: scale(1.04);
}

.category-label {
  position: relative;
  z-index: 2;
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.category-label h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(40px, 5vw, 64px);
  text-transform: uppercase;
  letter-spacing: -0.12em;
}

.category-label .arrow {
  font-size: 28px;
  color: var(--text);
  transition: transform 0.3s ease;
}

.category-tile:hover .arrow {
  transform: translate(6px, -6px);
}

/* ── CTA band ── */

.cta-band {
  text-align: center;
}

.cta-band h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(40px, 8vw, 96px);
  text-transform: uppercase;
  line-height: 0.95;
  letter-spacing: -0.12em;
}

.cta-band .eyebrow {
  display: block;
  margin-bottom: 24px;
}

.cta-band .text-link {
  margin-top: 40px;
}

/* ── Portfolio grid (fashion/people) ── */

.page-header {
  padding: 160px 48px 96px;
  text-align: center;
}

.page-header .eyebrow {
  margin-bottom: 18px;
}

.page-header h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(48px, 7vw, 96px);
  line-height: 0.9;
  letter-spacing: -0.12em;
  color: var(--pink);
}

.page-header p {
  max-width: 460px;
  margin: 20px auto 0;
  color: var(--muted);
  font-weight: 300;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-flow: dense;
  gap: 6px;
  padding: 0 32px 140px;
}

.grid-item {
  aspect-ratio: 2 / 3;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  background: var(--bg-alt);
}

/* A photo that's actually landscape gets a landscape tile instead of
   being cropped into the same portrait box as everything else. */
.grid-item.landscape {
  grid-column: span 2;
  /* Spans 2 columns, so this needs to be exactly 2x a portrait tile's
     aspect-ratio (2/3 -> 4/3) for the row heights to match — anything
     taller leaves a gap below the portrait tiles sharing that row,
     since their aspect-ratio stops them from stretching to fill it. */
  aspect-ratio: 4 / 3;
}

.grid-item img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.5s ease;
}

/* Inside an opened shoot the photos still zoom slightly on hover. */
body.shoot-view .grid-item:hover img {
  transform: scale(1.04);
}

/* Overview hover: the cover darkens under a black veil with the shoot's
   title and date centered on it. Only cover tiles carry a caption, so
   tiles inside an opened shoot never show it. */
.grid-caption {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  padding: 16px;
  text-align: center;
  background: rgba(10, 10, 10, 0.6);
  color: #fff;
  font-family: var(--font-elise);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.grid-caption-title {
  font-family: var(--font-display);
  font-size: clamp(24px, 2.6vw, 46px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.06em;
}

.grid-caption-date {
  font-family: var(--font-script);
  font-size: clamp(13px, 1vw, 16px);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0.08em;
}

@media (hover: hover) {
  body:not(.shoot-view) .grid-item:hover .grid-caption {
    opacity: 1;
  }
}

/* Phones and touch screens (no hover) show each shoot's title with
   its date small underneath, quietly in the bottom corner of the
   cover. An opened shoot has no captions, so it stays as is. */
@media (hover: none), (max-width: 640px) {
  .grid-caption {
    opacity: 1;
    top: auto;
    align-items: flex-start;
    justify-content: flex-end;
    gap: 0.35em;
    padding: 28px 10px 10px;
    text-align: left;
    background: linear-gradient(to top, rgba(10, 10, 10, 0.55), rgba(10, 10, 10, 0));
  }

  .grid-caption-title {
    font-size: 17px;
    line-height: 1.05;
  }

  .grid-caption-date {
    font-size: 10px;
  }
}

/* ── About page ── */

.about-main {
  /* Photo + text as one block, centered on the page. */
  padding: 160px 48px 140px;
  display: grid;
  grid-template-columns: minmax(0, 480px) minmax(0, 560px);
  justify-content: center;
  gap: 80px;
  /* Text block sits vertically centered next to the photo. */
  align-items: center;
}

.about-media {
  position: sticky;
  top: 140px;
  max-width: 480px;
  width: 100%;
  justify-self: start;
  aspect-ratio: 3 / 4;
  overflow: hidden;
}

.about-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.6);
}

.about-main h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 0.9;
  letter-spacing: -0.12em;
  color: var(--pink);
}

.about-main .subtitle {
  margin-top: 14px;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.bio {
  margin-top: 44px;
}

.bio p {
  font-family: var(--font-desc);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.9;
  color: #e6e6e3;
  margin-bottom: 26px;
  max-width: 560px;
}

/* About: lead paragraph, quote, handwritten signature. */

@media (max-width: 640px) {
  }

.pull-quote {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(28px, 3.4vw, 44px);
  text-transform: uppercase;
  line-height: 1.15;
  letter-spacing: -0.12em;
  color: var(--text);
  border-left: 2px solid var(--pink);
  padding-left: 24px;
  margin: 48px 0;
  max-width: 560px;
}

.press-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  margin-top: 48px;
}

.press-list span {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ── Contact page ── */
/* Locked to exactly one viewport height — no scrolling on this page.
   The main block flexes to fill whatever space is left above the
   footer and centers its own content there, so it adapts to any
   screen height instead of relying on fixed padding that could
   overflow a short viewport. */

body.contact-page {
  height: 100vh;
  overflow: hidden;
}

body.contact-page .main-content {
  height: 100vh;
  display: flex;
  flex-direction: column;
}

body.contact-page footer {
  flex-shrink: 0;
}

.contact-main {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  /* Left edge in line with the menu icon (32px). */
  padding: 48px 48px 0 32px;
}

.contact-main h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(52px, min(13vw, 16.5vh), 176px);
  line-height: 0.8;
  letter-spacing: -0.12em;
  color: var(--pink);
  margin-bottom: clamp(28px, 7vh, 96px);
}

.contact-main h1 .tight {
  letter-spacing: -0.145em;
}

/* Contact: just the two addresses, large and white, stacked.
   On hover they turn pink and the arrow nudges up-right. */
.contact-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(4px, 1vh, 10px);
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3em;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(18px, min(2vw, 3.2vh), 30px);
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text);
  transition: color 0.25s ease;
}

.contact-link-arrow {
  flex-shrink: 0;
  width: 0.42em;
  height: 0.42em;
  /* Lift it to the middle of the letters (the line box also holds
     the descenders of g and y, which would push it down). */
  transform: translateY(-0.08em);
  color: rgba(243, 243, 240, 0.4);
  transition: transform 0.3s ease, color 0.25s ease;
}

.contact-link:hover {
  color: var(--pink);
}

.contact-link:hover .contact-link-arrow {
  color: var(--pink);
  transform: translate(3px, calc(-0.08em - 3px));
}

.instagram-icon {
  display: inline-flex;
  margin-top: 18px;
  color: var(--muted);
  transition: color 0.25s ease;
}

.instagram-icon:hover {
  color: var(--text);
}

.instagram-icon svg {
  width: 24px;
  height: 24px;
  display: block;
}

/* ── Shoot view (grid swaps in place) ── */

.close-shoot {
  display: none;
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  width: 52px;
  height: 52px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--pink);
  color: #0a0a0a;
  border: none;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
  transition: background 0.2s ease, transform 0.2s ease;
}

.close-shoot svg {
  width: 22px;
  height: 22px;
}

.close-shoot:hover {
  background: var(--text);
  transform: translateX(-50%) scale(1.06);
}

body.shoot-view .close-shoot {
  display: flex;
}

/* Intro above an opened shoot: title, date, description. */
.shoot-intro {
  grid-column: 1 / -1;
  padding: 0 0 56px;
  text-align: center;
  font-family: var(--font-elise);
  color: var(--text);
}

.shoot-intro-title {
  font-family: var(--font-display);
  font-size: clamp(34px, 3.6vw, 56px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.06em;
}

.shoot-intro-date {
  margin-top: 10px;
  font-family: var(--font-script);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0.08em;
  color: var(--text);
}

.shoot-intro-description {
  max-width: min(440px, 80vw);
  margin: 24px auto 0;
  font-family: var(--font-desc);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.7;
}

.shoot-intro-description h3 {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 20px;
  font-weight: 400;
  margin-bottom: 14px;
}

.shoot-intro-description p + p {
  margin-top: 14px;
}

.shoot-signature {
  color: var(--muted);
}

/* Photos crossfade in place inside their existing frame — no rebuild,
   no scrolling. Frames with no matching photo fade to black instead. */
.grid-item img.swap-out {
  opacity: 0 !important;
  transform: none !important;
}


/* ── Reveal animation ── */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ── Footer ── */

footer {
  padding: 40px 48px;
  display: flex;
  /* Credit sits on the same bottom line as the logo. */
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-credit {
  font-family: 'Outfit', var(--font-body);
  font-size: 13px;
  font-weight: 400;
  line-height: 1;
  color: #3e3e3c;
  /* Drop the baseline of the letters onto the bottom of the logo
     (line-height 1 leaves room below for the tails of g and y). */
  position: relative;
  top: 2px;
}

/* The whole credit line is one link; only "SLYM" is underlined. */
.footer-credit.slym-link {
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-credit.slym-link:hover {
  color: var(--muted);
}

.footer-credit .slym-credit {
  font-family: 'Anton', var(--font-display);
  font-weight: 400;
  font-style: italic;
  letter-spacing: 0.02em;
  text-decoration: underline;
}

.footer-logo {
  font-size: 44px;
}

/* Logo image (pink "er" on black, cropped to the letters). */
.logo {
  display: inline-block;
  line-height: 0;
}

.logo img {
  height: 40px;
  width: auto;
  /* The image's pure-black background would show as a box against the
     site's slightly lighter black — lighten lets the page show through. */
  mix-blend-mode: lighten;
}

/* ── Responsive ── */

@media (max-width: 900px) {
  .portfolio-grid { grid-template-columns: repeat(4, 1fr); }
  .categories { grid-template-columns: 1fr; }
  .category-tile { height: 460px; }
  .about-main { grid-template-columns: 1fr; }
  .about-media { position: relative; top: 0; aspect-ratio: 4/3; max-width: none; justify-self: stretch; }
  section { padding: 96px 32px; }

  .nav-toggle { top: 24px; left: 24px; }
  .sidebar-nav { padding: 90px 24px 40px; }

  .hero-photo-1 { width: 170px; height: 220px; transform: translate(calc(-50% - 80px), calc(-50% - 30px)) rotate(-7deg); }
  .hero-photo-2 { width: 145px; height: 190px; transform: translate(calc(-50% + 65px), calc(-50% - 65px)) rotate(5deg); }
  .hero-photo-3 { width: 155px; height: 200px; transform: translate(calc(-50% - 40px), calc(-50% + 60px)) rotate(4deg); }
  .hero-photo-4 { width: 135px; height: 175px; transform: translate(calc(-50% + 80px), calc(-50% + 40px)) rotate(-8deg); }

  .page-header { padding: 120px 24px 56px; }
  .portfolio-grid { grid-template-columns: repeat(4, 1fr); padding: 0 24px 96px; }
  .categories { padding: 0 24px 96px; }

  .about-main,
  .contact-main { padding: 120px 24px 96px; }

  body.contact-page .contact-main { padding: 90px 24px 0; }


  footer {
    padding: 48px 24px 32px;
  }
}

@media (max-width: 640px) {
  section { padding: 72px 24px; }
  .hero-content { padding: 0 24px; }
  /* On phones the name stacks on two lines, much larger. */
  .hero-content h1 { font-size: 22vw; line-height: 0.7; }
  .hero-content h1 .phone-break { display: inline; }

  /* Menu: bigger links and Instagram icon on phones. */
  .sidebar-nav ul { gap: 10px; }
  .sidebar-nav ul a { font-size: 44px; }
  .sidebar-nav .instagram-icon svg { width: 30px; height: 30px; }
  .hero-subtitle { margin-top: 4.5vw; font-size: 3.6vw; }

  .portfolio-grid { grid-template-columns: repeat(2, 1fr); gap: 4px; padding: 0 16px 96px; }

  /* Phones: credit a bit darker and centered on the logo's height
     (desktop keeps it on the logo's bottom line). */
  footer { align-items: center; }
  .footer-credit { color: #2b2b29; top: 0; }
  /* One edge for every page on phones: menu icon, photo grid, About
     photo and text, and the contact text all start 16px in. */
  .nav-toggle { left: 16px; }
  .about-main { padding-left: 16px; padding-right: 16px; }
  /* About photo on phones: narrower and taller (portrait), centered
     instead of the full width. */
  .about-media { aspect-ratio: 3 / 4; width: 62%; justify-self: center; }
  .about-main { padding-top: 140px; }
  body.contact-page .contact-main { padding-left: 16px; padding-right: 16px; }


  /* Bigger page titles and contact text on phones. */
  .page-header h1 { font-size: 76px; }
  .about-main h1 { font-size: 56px; }
  .contact-main h1 { font-size: 19vw; }
  .contact-link { font-size: 6.4vw; }
}

/* ── No capitals anywhere on the site ──
   Overrides every uppercase rule above; the SLYM wordmark keeps
   its own capitals. */
*, *::before, *::after {
  text-transform: lowercase !important;
}

.footer-credit .slym-credit {
  text-transform: none !important;
}

/* Names and the About text keep their normal capitals. */
.name,
.bio p,
.footer-credit {
  text-transform: none !important;
}

/* ── Home: waterfall ──
   Elise's chosen photos scattered loosely over the pink, each at its
   own proportions (never cropped). script.js lets every photo fall on
   its own and wrap back in above the top, so the loop has no jump.
   Phones get their own, two-lane scatter. */
.waterfall {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1;
}

.waterfall-set {
  position: relative;
}

.waterfall-photo {
  position: absolute;
  margin: 0;
  will-change: transform;
}

.waterfall-photo img {
  display: block;
  width: 100%;
  height: auto;
  /* Pink shines through the photos, like Elise's design. */
  opacity: 0.6;
}

/* Desktop + tablet: photos scattered freely in vw (a few small, mostly
   medium and large, spread so small ones never bunch up), each at its own
   proportions. Spacing also holds across the loop's seam. The painted face
   gets the big spot on the first screen. */
.waterfall-set { height: 208.3vw; }
.waterfall-photo:nth-child(1) { left: 82.0vw; top: 166.9vw; width: 15.5vw; }
.waterfall-photo:nth-child(2) { left: 75.1vw; top: 72.0vw; width: 20.6vw; }
.waterfall-photo:nth-child(3) { left: 5.8vw; top: 28.9vw; width: 15.5vw; }
.waterfall-photo:nth-child(4) { left: 56.1vw; top: 69.0vw; width: 15.5vw; }
.waterfall-photo:nth-child(5) { left: 3.0vw; top: 167.2vw; width: 15.5vw; }
.waterfall-photo:nth-child(6) { left: 44.5vw; top: 97.2vw; width: 16.8vw; }
.waterfall-photo:nth-child(7) { left: 7.0vw; top: 125.8vw; width: 23.0vw; }
.waterfall-photo:nth-child(8) { left: 11.9vw; top: 89.3vw; width: 19.0vw; }
.waterfall-photo:nth-child(9) { left: 74.5vw; top: 107.9vw; width: 23.0vw; }
.waterfall-photo:nth-child(10) { left: 79.4vw; top: 41.7vw; width: 16.6vw; }
.waterfall-photo:nth-child(11) { left: 72.7vw; top: 128.2vw; width: 22.5vw; }
.waterfall-photo:nth-child(12) { left: 28.9vw; top: 35.8vw; width: 22.6vw; }
.waterfall-photo:nth-child(13) { left: 57.2vw; top: 36.8vw; width: 15.5vw; }
.waterfall-photo:nth-child(14) { left: 40.0vw; top: 158.7vw; width: 15.5vw; }
.waterfall-photo:nth-child(15) { left: 21.0vw; top: 180.0vw; width: 15.5vw; }
.waterfall-photo:nth-child(16) { left: 43.2vw; top: 127.4vw; width: 16.9vw; }
.waterfall-photo:nth-child(17) { left: 48.3vw; top: 4.0vw; width: 16.6vw; }
.waterfall-photo:nth-child(18) { left: 58.6vw; top: 176.0vw; width: 16.9vw; }
.waterfall-photo:nth-child(19) { left: 4.1vw; top: 60.1vw; width: 15.5vw; }
.waterfall-photo:nth-child(20) { left: 8.4vw; top: 4.0vw; width: 28.4vw; }
.waterfall-photo:nth-child(21) { left: 76.3vw; top: 4.0vw; width: 19.1vw; }

@media (max-width: 640px) {
  .waterfall-set { height: 728.6vw; }
  .waterfall-photo:nth-child(1) { left: 52.0vw; top: 0.0vw; width: 39.9vw; }
  .waterfall-photo:nth-child(2) { left: 4.6vw; top: 678.6vw; width: 30.0vw; }
  .waterfall-photo:nth-child(3) { left: 7.9vw; top: 141.1vw; width: 45.1vw; }
  .waterfall-photo:nth-child(4) { left: 4.9vw; top: 213.8vw; width: 45.2vw; }
  .waterfall-photo:nth-child(5) { left: 8.4vw; top: 0.0vw; width: 30.7vw; }
  .waterfall-photo:nth-child(6) { left: 5.2vw; top: 286.6vw; width: 43.1vw; }
  .waterfall-photo:nth-child(7) { left: 45.4vw; top: 356.3vw; width: 46.4vw; }
  .waterfall-photo:nth-child(8) { left: 4.5vw; top: 56.0vw; width: 36.9vw; }
  .waterfall-photo:nth-child(9) { left: 6.8vw; top: 430.9vw; width: 48.5vw; }
  .waterfall-photo:nth-child(10) { left: 56.1vw; top: 213.8vw; width: 38.4vw; }
  .waterfall-photo:nth-child(11) { left: 56.2vw; top: 276.5vw; width: 38.4vw; }
  .waterfall-photo:nth-child(12) { left: 65.1vw; top: 141.1vw; width: 29.2vw; }
  .waterfall-photo:nth-child(13) { left: 47.6vw; top: 468.2vw; width: 46.8vw; }
  .waterfall-photo:nth-child(14) { left: 56.7vw; top: 543.5vw; width: 39.1vw; }
  .waterfall-photo:nth-child(15) { left: 4.5vw; top: 356.3vw; width: 32.3vw; }
  .waterfall-photo:nth-child(16) { left: 5.9vw; top: 543.5vw; width: 43.9vw; }
  .waterfall-photo:nth-child(17) { left: 54.3vw; top: 607.2vw; width: 37.5vw; }
  .waterfall-photo:nth-child(18) { left: 5.1vw; top: 614.4vw; width: 39.5vw; }
  .waterfall-photo:nth-child(19) { left: 7.1vw; top: 468.2vw; width: 31.8vw; }
  .waterfall-photo:nth-child(20) { left: 43.9vw; top: 678.6vw; width: 50.7vw; }
  .waterfall-photo:nth-child(21) { left: 50.3vw; top: 69.9vw; width: 44.2vw; }
}

