/* ==========================================================
   Stephanie Zapolska — site styles
   Colours and fonts are set once here, in :root.
   ========================================================== */

@font-face { font-family: 'Inter'; src: url('fonts/inter-regular.woff') format('woff'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('fonts/inter-medium.woff') format('woff'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('fonts/inter-bold.woff') format('woff'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Lora'; src: url('fonts/lora-italic.woff') format('woff'); font-weight: 400 700; font-style: italic; font-display: swap; }

:root {
  --paper: #f6f3f0;          /* page background (from the reference) */
  --ink: #111111;            /* main text colour */
  --dark: #151515;           /* dark sections */
  --on-dark: #f6f3f0;
  --accent: #1325ed;         /* PAIR blue */
  --rule: rgba(17, 17, 17, 0.85);
  --muted: rgba(17, 17, 17, 0.55);
  --sans: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --serif: Didot, 'Bodoni 72', 'Lora', Georgia, serif;
  --pad: clamp(18px, 4vw, 56px);       /* left/right page margin */
  --gap: clamp(20px, 3vw, 40px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 70px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: clamp(15px, 0.35vw + 14px, 18px); line-height: 1.35; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
figure { margin: 0; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 400; }
ul { margin: 0; padding: 0; list-style: none; }

.wrap { width: 100%; max-width: 1600px; margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
.section-pad { padding-top: clamp(28px, 4vw, 48px); padding-bottom: clamp(80px, 12vw, 180px); }
.serif { font-family: var(--serif); font-style: italic; font-weight: 400; }
.small-caps { font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; }
.muted { color: var(--muted); }

.dark { background: var(--dark); color: var(--on-dark); --rule: rgba(246, 243, 240, 0.7); --muted: rgba(246, 243, 240, 0.55); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 60px; padding: 0 var(--pad); background: rgba(246, 243, 240, 0.94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--rule); }
.wordmark { font-size: 1.35rem; font-weight: 700; letter-spacing: -0.07em; }
.site-nav { display: flex; gap: clamp(16px, 2.4vw, 40px); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; }
.site-nav a, .links a, .footer-meta a, .list-items a { border-bottom: 1px solid transparent; transition: border-color 0.2s; }
.site-nav a:hover, .links a:hover, .footer-meta a:hover, .list-items a:hover { border-color: currentColor; }
.menu-button { display: none; border: 0; background: none; padding: 10px 0; font: inherit; font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: inherit; cursor: pointer; }

/* ---------- Section markers: "01   Founded platform   Launching…" ---------- */
.marker { display: grid; grid-template-columns: 1fr 2fr 1fr; gap: 16px; padding-bottom: 10px; border-bottom: 1px solid var(--rule); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; }
.marker span:last-child:not(:nth-child(2)) { text-align: right; }

/* ---------- Two-column text block ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: clamp(32px, 8vw, 140px); align-items: end; padding: clamp(48px, 8vw, 120px) 0; }
.display { font-size: clamp(2.2rem, 4.6vw, 5rem); line-height: 0.98; letter-spacing: -0.03em; }
.big { font-size: clamp(3.4rem, 9vw, 9.5rem); line-height: 0.86; letter-spacing: -0.04em; }
.sub { font-size: clamp(1.9rem, 3vw, 3.2rem); line-height: 1; letter-spacing: -0.02em; margin: 14px 0 22px; }
.body-copy p + p, .feature-copy p + p, .festival p + p { margin-top: 1.1em; }
.lead { font-size: 1.2em; }
.links { display: flex; flex-wrap: wrap; gap: 14px 32px; font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; }

/* ---------- Hero ---------- */
.hero { padding-top: 20px; padding-bottom: clamp(48px, 7vw, 100px); }
.kicker-row { display: flex; justify-content: space-between; gap: 16px; padding-bottom: 10px; border-bottom: 1px solid var(--rule); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: var(--gap); align-items: end; padding-top: clamp(28px, 4vw, 56px); }
.hero-text { display: flex; flex-direction: column; justify-content: space-between; height: 100%; gap: 40px; }
.hero-name { line-height: 0.82; }
.hero-first { display: block; font-weight: 700; font-size: clamp(3.3rem, 10.5vw, 11rem); letter-spacing: -0.065em; }
.hero-last { display: block; font-size: clamp(3.5rem, 11vw, 11.5rem); letter-spacing: -0.04em; padding-left: 0.32em; }
.hero-statement { max-width: 24ch; font-size: clamp(1.15rem, 1.6vw, 1.7rem); line-height: 1.18; letter-spacing: -0.015em; }
.hero-email { align-self: flex-start; font-size: 0.95rem; letter-spacing: 0.05em; }
.hero-image img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }

.profile { padding-bottom: 20px; }

/* ---------- SOUND MOUSSE ---------- */
.mousse-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding-top: clamp(40px, 6vw, 90px); }
.mousse-logo { width: min(62%, 720px); }
.mousse-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.mousse-gallery .g-wide { grid-column: 1 / -1; }
.mousse-gallery img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.mousse-gallery .g-wide img { aspect-ratio: 21 / 9; }
figcaption { padding-top: 9px; font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; }
figcaption a:hover { text-decoration: underline; }

/* ---------- Film ---------- */
.section-title { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding-top: clamp(48px, 7vw, 100px); }
.section-title .small-caps { max-width: 240px; text-align: right; }
/* Film stills: a scattered pile. Each still's position, size and tilt come from
   the --x / --y / --w / --r values in index.html (--px / --py / --pw / --pr on phones).
   Hover (or tap on a phone) brings a still to the front. */
.stills { position: relative; aspect-ratio: 1440 / 1900; margin-top: clamp(60px, 9vw, 140px); }
.still { position: absolute; left: var(--x); top: var(--y); width: var(--w); z-index: var(--z); padding: 0; border: 0; background: none; cursor: pointer; transform: rotate(var(--r)); transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.45s ease; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18); }
.still img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.still:hover, .still:focus-visible, .still.is-front { z-index: 100; transform: rotate(0deg) scale(1.12); box-shadow: 0 24px 50px rgba(0, 0, 0, 0.35); outline: none; }

/* ---------- Lists (reference style: title | name | items) ---------- */
.list { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr); gap: var(--gap); margin-top: clamp(80px, 11vw, 160px); padding-top: clamp(40px, 6vw, 90px); border-top: 1px solid var(--rule); }
.list-flush { margin-top: 0; border-top: 0; }
.list-title { font-size: 1.1rem; font-weight: 700; line-height: 1.15; letter-spacing: 0.01em; text-transform: uppercase; }
.list-rows { display: flex; flex-direction: column; gap: clamp(36px, 5vw, 64px); }
.list-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: var(--gap); line-height: 1.25; }
.list-name { text-transform: uppercase; }
.list-name .count { color: var(--muted); }
.list-items li + li { margin-top: 2px; }
.list-items .muted { margin-left: 0.5em; font-size: 0.85em; }
.list-items li.muted { margin-left: 0; font-size: 1em; }
.list-items p { max-width: 60ch; }

/* ---------- Film work from every position (portrait + floating stats) ---------- */
.position { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: var(--gap); align-items: center; margin-top: clamp(80px, 11vw, 160px); border-top: 1px solid var(--rule); }
.position-stage { position: relative; aspect-ratio: 780 / 640; margin-top: clamp(30px, 4vw, 60px); }
.position-portrait { position: absolute; bottom: 0; left: calc(-1 * (var(--pad) + max(0px, (100vw - 1600px) / 2))); height: 82%; width: auto; max-width: none; aspect-ratio: 1 / 1; object-fit: cover; }
.star-stat { position: absolute; left: var(--x); top: var(--y); display: flex; flex-direction: column; align-items: center; gap: 4px; max-width: 9.5em; text-align: center; font-size: 0.82rem; line-height: 1.2; }
.star-stat b { display: block; font-family: var(--serif); font-style: italic; font-weight: 400; font-size: clamp(2rem, 3.4vw, 3.4rem); line-height: 0.9; letter-spacing: -0.03em; }
.star-stat i { font-style: normal; font-size: 0.9rem; }
.position-text { padding: clamp(40px, 5vw, 70px) 0; }
.position-title { margin: 14px 0 28px; font-size: clamp(2.4rem, 4.4vw, 4.8rem); line-height: 0.95; letter-spacing: -0.03em; }
.position-text p + p { margin-top: 1.1em; }
.note { max-width: 640px; margin: clamp(60px, 8vw, 110px) 0 0 auto; padding-top: 16px; border-top: 1px solid var(--rule); }
.note p + p { margin-top: 12px; }

/* ---------- Artwork ---------- */

/* ---------- Artwork: folder strips ----------
   Each cover is a tall strip with a grey paper edge and a numbered tab.
   Hover widens a strip; click/tap (class is-open) opens it to a full square. */
.folders { --h: clamp(420px, 48vw, 720px); --band: clamp(14px, 1.4vw, 22px); --paper: #c9c8c4; display: flex; height: var(--h); margin-top: clamp(20px, 4vw, 60px); }
.folders-label { flex: 0 0 clamp(70px, 7vw, 110px); display: flex; flex-direction: column; justify-content: space-between; padding: 18px 0; background: #0e0e0e; writing-mode: vertical-rl; transform: rotate(180deg); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(246,243,240,0.7); align-items: center; }
.folders-label span:last-child { color: rgba(246,243,240,0.4); }
.folder { position: relative; flex: 1 1 0; min-width: 0; margin: 0; cursor: pointer; outline: none; background-color: var(--paper); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.18 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); transition: flex 0.55s cubic-bezier(0.2, 0.8, 0.2, 1); box-shadow: -6px 0 14px rgba(0,0,0,0.45); }
.folder img { position: absolute; top: 3%; bottom: 3%; left: var(--band); right: 0; width: calc(100% - var(--band)); height: 94%; object-fit: cover; }
.folder-tab { position: absolute; z-index: 2; top: var(--tab); left: calc(var(--band) * -1.6); width: calc(var(--band) * 2.2); height: clamp(90px, 9vw, 140px); display: flex; align-items: center; justify-content: center; border-radius: 9px 0 0 9px; background-color: var(--paper); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.18 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); color: #222; font-size: clamp(0.8rem, 1.1vw, 1.05rem); font-weight: 500; writing-mode: vertical-rl; transform: rotate(180deg); border-radius: 0 9px 9px 0; }
.folder figcaption { position: absolute; left: var(--band); right: 0; bottom: 3%; padding: 40px 16px 14px; display: flex; flex-direction: column; gap: 2px; background: linear-gradient(transparent, rgba(0,0,0,0.75)); color: #f6f3f0; font-size: 0.85rem; line-height: 1.25; text-transform: none; letter-spacing: 0; opacity: 0; transition: opacity 0.3s ease; pointer-events: none; }
.folder figcaption b { font-weight: 700; font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; }
.folder figcaption span { color: rgba(246,243,240,0.6); font-size: 0.72rem; letter-spacing: 0.04em; text-transform: uppercase; }
.folder:hover, .folder:focus-visible { flex-grow: 2.2; }
.folder.is-open { flex: 0 0 calc(var(--h) * 0.94 + var(--band)); }
.folder.is-open figcaption { opacity: 1; }

/* ---------- The Lodge ---------- */
.feature { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.feature img { width: 100%; }
.feature figure img { aspect-ratio: 16 / 9; object-fit: cover; }
.lodge-logo { width: min(100%, 300px); margin-bottom: 28px; }
.feature-copy .links { margin-top: 26px; }
.festival { display: grid; grid-template-columns: minmax(120px, 240px) minmax(0, 1fr); gap: clamp(20px, 4vw, 56px); align-items: center; max-width: 920px; margin: clamp(70px, 10vw, 140px) 0 0 auto; padding-top: 24px; border-top: 1px solid var(--rule); }
.festival .small-caps:last-child { margin-top: 24px; }

/* ---------- PAIR ---------- */
.accent { color: var(--accent); }
.pair-heading { font-family: var(--sans); font-weight: 400; letter-spacing: -0.045em; line-height: 1; }
.pair-heading em { font-size: 1.08em; letter-spacing: -0.02em; }
.pair-logo { width: min(60%, 560px); margin: clamp(40px, 6vw, 80px) auto 0; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; padding-bottom: clamp(40px, 6vw, 80px); }
.tags li { border: 1px solid var(--accent); border-radius: 999px; padding: 8px 14px; color: var(--accent); font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; }
.pair-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); }
.pair-gallery img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.pair-gallery .p-wide { grid-column: 1 / -1; }

/* ---------- Footer ---------- */
.site-footer { padding: clamp(28px, 4vw, 48px) 0; }
.footer-kicker { padding-bottom: 10px; border-bottom: 1px solid var(--rule); }
.footer-invite { padding: clamp(80px, 14vw, 220px) 0 clamp(40px, 5vw, 80px); font-size: clamp(3rem, 9vw, 10rem); line-height: 0.88; letter-spacing: -0.04em; }
.footer-email { margin-bottom: clamp(60px, 10vw, 140px); font-size: clamp(1rem, 1.6vw, 1.4rem); }
.footer-meta { display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; }
.footer-links { display: flex; gap: 24px; }
.footer-meta > a { justify-self: end; }

/* ==========================================================
   TABLET (up to 1024px wide)
   ========================================================== */
@media (max-width: 1024px) {
  .split { grid-template-columns: 1fr; gap: 28px; align-items: start; }
  .split .body-copy { max-width: 620px; margin-left: auto; }
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr); }
    .list { grid-template-columns: 1fr; gap: 32px; }
  .feature { grid-template-columns: 1fr; }
  .feature-copy { max-width: 620px; margin-left: auto; }
}

/* ==========================================================
   PHONE (up to 700px wide)
   ========================================================== */
@media (max-width: 700px) {
  .menu-button { display: block; }
  .site-nav { position: absolute; top: 100%; left: 0; right: 0; display: none; flex-direction: column; gap: 0; padding: 8px var(--pad) 16px; background: var(--paper); border-bottom: 1px solid var(--rule); font-size: 0.85rem; }
  .site-nav a { padding: 12px 0; border-bottom: 1px solid rgba(17, 17, 17, 0.12); }
  .site-nav.open { display: flex; }

  .marker { grid-template-columns: auto 1fr; }
  .marker span:nth-child(2) { text-align: right; }
  .marker span:nth-child(3) { display: none; }
  .kicker-row span:last-child { display: none; }

  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero-text { gap: 22px; }
  .hero-first { font-size: 20vw; }
  .hero-last { font-size: 21vw; padding-left: 0.2em; }
  .hero-statement { max-width: none; }
  .hero-image { order: 2; }

  .mousse-head { flex-direction: column; align-items: flex-start; }
  .mousse-logo { width: 100%; }
  .mousse-gallery { grid-template-columns: 1fr; }
  .mousse-gallery .g-wide img { aspect-ratio: 16 / 9; }
  .section-title { flex-direction: column; align-items: flex-start; }
  .section-title .small-caps { text-align: left; }
      .stills { aspect-ratio: 390 / 2300; }
  .still { left: var(--px); top: var(--py); width: var(--pw); transform: rotate(var(--pr)); }
  .still.is-front { transform: rotate(0deg) scale(1.08); }

  .position { grid-template-columns: 1fr; gap: 0; }
  .position-stage { aspect-ratio: 358 / 640; }
  .position-portrait { height: 54%; }
  .star-stat { left: var(--px); top: var(--py); max-width: 7.5em; font-size: 0.74rem; }
  .star-stat b { font-size: 2.1rem; }
  .folders { flex-direction: column; height: auto; --band: 12px; }
  .folders-label { flex: none; writing-mode: horizontal-tb; transform: none; flex-direction: row; padding: 12px 14px; gap: 12px; font-size: 0.62rem; }
  .folder { flex: none; height: 64px; transition: height 0.5s cubic-bezier(0.2, 0.8, 0.2, 1); box-shadow: 0 -6px 14px rgba(0,0,0,0.45); }
  .folder img { top: var(--band); bottom: 0; left: 3%; right: 3%; width: 94%; height: calc(100% - var(--band)); }
  .folder-tab { top: calc(var(--band) * -1.4); left: auto; right: var(--tab); width: 64px; height: calc(var(--band) * 2.2); writing-mode: horizontal-tb; transform: none; border-radius: 8px 8px 0 0; font-size: 0.75rem; }
  .folder figcaption { left: 3%; right: 3%; bottom: 0; }
  .folder:hover, .folder:focus-visible { flex-grow: 0; }
  .folder.is-open { flex: none; height: calc((100vw - 2 * var(--pad)) * 0.94 + 12px); }
  .list-row { grid-template-columns: 1fr; gap: 8px; }
  .list-name { font-weight: 500; }
  .list-items .muted { display: block; margin-left: 0; }
  .list-items li + li { margin-top: 10px; }

      .festival { grid-template-columns: 100px 1fr; }
  .pair-logo { width: 80%; }
  .pair-gallery { grid-template-columns: 1fr; }
  .footer-meta { grid-template-columns: 1fr auto; }
  .footer-links { grid-column: 1 / -1; order: -1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
