/* ==========================================================================
   SPOTTED: styles
   Mobile-first. Brand tokens first, then base, layout, components, sections.
   ========================================================================== */

/* ---------- 0. Fonts ---------- */
/* The Seasons (headings). Commercial font, so it isn't on Google Fonts:
   drop the licensed web files into assets/fonts/ with these names, or add an
   Adobe Fonts kit (family "the-seasons"). One cut (Bold, as in the mockup)
   serves every heading weight. Until then headings fall back to Bodoni Moda. */
@font-face {
  font-family: "The Seasons";
  src: local("The Seasons Bold"), local("TheSeasons-Bd"),
       url("assets/fonts/the-seasons-bold.woff2") format("woff2"),
       url("assets/fonts/the-seasons-bold.woff") format("woff");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ---------- 1. Tokens ---------- */
:root {
  /* Brand palette (Spotted Logo Guideline) */
  --brown: #3a1c0f;   /* primary */
  --cream: #fff7eb;   /* primary */
  --blue:  #bbd7ec;   /* accent, use sparingly */
  --black: #000000;   /* neutral */
  --white: #ffffff;   /* neutral */

  /* Roles */
  --bg: var(--cream);
  --ink: var(--brown);
  --ink-soft: #755e51;              /* brown at ~70% on cream, AA for body copy */
  --line: rgba(58, 28, 15, 0.14);
  --surface: var(--white);

  /* Type. Brown Pro Extra Bold is used as outlined artwork only (logo, "WORK WITH US"). */
  --font-serif: "The Seasons", "the-seasons", "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --font-sans: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  /* Heading weight, kept bold for legibility. The Bodoni Moda fallback also
     gets a small optical size, which thickens its hairlines. */
  --serif-weight: 700;
  --serif-opsz: 24;

  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-md: clamp(1.0625rem, 0.98rem + 0.35vw, 1.25rem);
  --fs-lg: clamp(1.25rem, 1.05rem + 0.9vw, 1.75rem);
  --fs-display: clamp(2.75rem, 1.2rem + 7vw, 7.25rem);
  --fs-hero: clamp(2.75rem, 1rem + 8vw, 8.5rem);

  /* Layout */
  --maxw: 1360px;
  --gutter: clamp(16px, 4vw, 48px);
  --section-y: clamp(72px, 9vw, 144px);
  --header-h: 72px;
  --radius: 2px;

  /* Showcase card height (width follows each card's aspect ratio) */
  --rail-h: 340px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 700ms;
}

@media (min-width: 640px)  { :root { --rail-h: 420px; } }
@media (min-width: 1100px) { :root { --rail-h: 500px; --header-h: 84px; } }

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: 1.6;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, video, svg { display: block; max-width: 100%; }
img { height: auto; }

h1, h2, h3, p, ul, dl, dd, figure { margin: 0; }
ul { padding: 0; list-style: none; }

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }

::selection { background: var(--blue); color: var(--brown); }

:focus-visible {
  outline: 2px solid var(--brown);
  outline-offset: 3px;
  border-radius: var(--radius);
}
.on-dark :focus-visible,
.site-footer :focus-visible { outline-color: var(--cream); }

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

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--brown); color: var(--cream);
  padding: 10px 16px; font-weight: 600; font-size: var(--fs-sm);
}
.skip-link:focus { top: 12px; }

.container {
  width: 100%;
  max-width: calc(var(--maxw) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- 3. Shared components ---------- */
.eyebrow {
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 14px;
}
.eyebrow a { color: var(--ink); border-bottom: 1px solid currentColor; }
.eyebrow a:hover { border-bottom-color: transparent; }

.section-title {
  font-family: var(--font-serif);
  font-weight: var(--serif-weight);
  font-size: var(--fs-display);
  line-height: 0.92;
  letter-spacing: -0.02em;
  font-variation-settings: "opsz" var(--serif-opsz);
}

.tag {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1;
  padding: 6px 8px 5px;
  background: var(--blue);
  color: var(--brown);
  border-radius: var(--radius);
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 14px 24px;
  background: var(--brown);
  color: var(--cream);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 999px;
  transition: background-color 250ms var(--ease), color 250ms var(--ease);
}
.button svg { width: 18px; height: 18px; transition: transform 300ms var(--ease); }
.button:hover { background: var(--black); }
.button:hover svg { transform: translateX(4px); }

.button--light { background: var(--cream); color: var(--brown); }
.button--light:hover { background: var(--white); color: var(--black); }

.text-link {
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.04em;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  transition: opacity 200ms;
}
.text-link:hover { opacity: 0.7; }

.email-link {
  font-weight: 700;
  border-bottom: 1px solid currentColor;
  overflow-wrap: anywhere;
}
.email-link:hover { border-bottom-color: transparent; }

/* Image hover: gentle zoom inside a clipped frame */
.frame { position: relative; overflow: hidden; background: rgba(58, 28, 15, 0.08); }
.frame img, .frame video {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 900ms var(--ease);
}
@media (hover: hover) {
  a:hover .frame img, a:hover .frame video { transform: scale(1.04); }
}

/* ---------- 4. Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--cream);
  border-bottom: 1px solid transparent;
  transition: border-color 300ms, box-shadow 300ms;
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 6px 24px -18px rgba(58, 28, 15, 0.4);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
}

/* The SVG already contains the 2x-pupil clear space on every side,
   so nothing may sit inside the image box. */
.brand { --logo-h: 50px; display: flex; flex-direction: column; align-items: flex-start; margin-left: calc(var(--logo-h) * -0.217); }
.brand__logo { height: var(--logo-h); width: auto; }
.brand__cities {
  /* aligns with the logo's artwork edge (clear space = 46/212 of the file height) */
  padding-left: calc(var(--logo-h) * 0.217);
  margin-bottom: 8px; /* sits outside the logo's clear-space box */
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  white-space: nowrap;
}
@media (min-width: 1100px) { .brand { --logo-h: 60px; } }

.nav-toggle {
  display: inline-grid;
  place-items: center;
  width: 44px; height: 44px;
  margin-right: -10px;
  background: none; border: 0;
}
.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  display: block;
  width: 22px; height: 1.5px;
  background: currentColor;
  transition: transform 300ms var(--ease), opacity 200ms;
}
.nav-toggle__bars { position: relative; }
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -7px; }
.nav-toggle__bars::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-7px) rotate(-45deg); }

.site-nav {
  position: absolute;
  top: 100%; left: 0; right: 0;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
  padding: 8px var(--gutter) 24px;
  display: none;
}
.site-nav.is-open { display: block; }
.js .site-nav.is-open { animation: navIn 300ms var(--ease); }
@keyframes navIn { from { opacity: 0; transform: translateY(-8px); } }

.site-nav a {
  display: block;
  padding: 14px 0;
  font-family: var(--font-serif);
  font-weight: var(--serif-weight);
  font-variation-settings: "opsz" var(--serif-opsz);
  font-size: 1.75rem;
  line-height: 1.1;
  border-bottom: 1px solid var(--line);
}

/* No JS: show the links inline so they still work */
html:not(.js) .nav-toggle { display: none; }
html:not(.js) .site-nav { position: static; display: block; padding: 0; border: 0; background: none; }
html:not(.js) .site-nav ul { display: flex; gap: 16px; flex-wrap: wrap; }
html:not(.js) .site-nav a { font-family: var(--font-sans); font-size: var(--fs-sm); border: 0; }

@media (min-width: 860px) {
  .nav-toggle { display: none; }
  .site-nav,
  .site-nav.is-open {
    position: static;
    display: block;
    padding: 0;
    border: 0;
    background: none;
    animation: none;
  }
  .site-nav ul { display: flex; align-items: center; gap: clamp(20px, 2.6vw, 40px); }
  .site-nav a {
    position: relative;
    padding: 6px 0;
    border: 0;
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
  }
  .site-nav a:not(.site-nav__cta)::after {
    content: "";
    position: absolute; left: 0; right: 0; bottom: 0;
    height: 1px; background: currentColor;
    transform: scaleX(0); transform-origin: right;
    transition: transform 400ms var(--ease);
  }
  .site-nav a:hover::after,
  .site-nav a[aria-current="true"]::after { transform: scaleX(1); transform-origin: left; }

  .site-nav__cta {
    padding: 10px 18px !important;
    border: 1px solid var(--brown) !important;
    border-radius: 999px;
    transition: background-color 250ms, color 250ms;
  }
  .site-nav__cta:hover { background: var(--brown); color: var(--cream); }
}

/* ---------- 5. Hero / lead story ---------- */
.hero { padding-top: clamp(8px, 1.5vw, 20px); }

.hero__media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: rgba(58, 28, 15, 0.08);
}
@media (min-width: 640px)  { .hero__media { aspect-ratio: 3 / 2; } }
@media (min-width: 1100px) { .hero__media { aspect-ratio: 2.1 / 1; } }

/* Slideshow: slides are stacked and cross-fade; the showing one slowly settles from a slight zoom */
.hero__slide {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  opacity: 0;
  transition: opacity 1400ms ease;
}
.hero__slide.is-active { opacity: 1; }
.js .hero__slide { transform: scale(1.06); transition: opacity 1400ms ease, transform 7000ms ease-out; }
.js .hero.is-loaded .hero__slide.is-active { transform: scale(1); }

.hero__toggle {
  position: absolute;
  right: clamp(16px, 3vw, 40px);
  bottom: clamp(16px, 3vw, 40px);
  z-index: 2;
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.25);
  color: var(--white);
  transition: background-color 200ms;
}
.hero__toggle:hover { background: rgba(0, 0, 0, 0.5); }
.hero__toggle:focus-visible { outline-color: var(--white); }
.hero__toggle svg { width: 18px; height: 18px; }
.hero__toggle .hero__icon-play,
.hero__toggle.is-paused .hero__icon-pause { display: none; }
.hero__toggle.is-paused .hero__icon-play { display: block; }

.hero__overlay {
  position: absolute;
  z-index: 1;
  inset: auto 0 0 0;
  padding: clamp(20px, 4vw, 56px);
  padding-top: 40%;
  color: var(--white);
  background: linear-gradient(to top, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0) 100%);
}

.hero__title {
  font-family: var(--font-serif);
  font-weight: var(--serif-weight);
  font-size: var(--fs-hero);
  line-height: 0.9;
  letter-spacing: -0.02em;
  font-variation-settings: "opsz" var(--serif-opsz);
  max-width: 11ch;
}
.hero__title em { font-style: italic; }

.js .hero__title { opacity: 0; transform: translateY(24px); transition: opacity 1000ms var(--ease) 250ms, transform 1000ms var(--ease) 250ms; }
.js .hero.is-loaded .hero__title { opacity: 1; transform: none; }

/* Intro: label left, copy right (stacked on mobile) */
.intro {
  display: grid;
  gap: 20px;
  padding-block: clamp(40px, 6vw, 88px) var(--section-y);
}
.intro__label {
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.intro__body { display: grid; gap: 20px; max-width: 62ch; color: var(--ink-soft); font-size: var(--fs-md); }
.intro__lede {
  font-family: var(--font-serif);
  font-size: var(--fs-lg);
  line-height: 1.3;
  color: var(--ink);
  font-weight: var(--serif-weight);
  font-variation-settings: "opsz" 14;
}
@media (min-width: 900px) {
  .intro { grid-template-columns: 1fr 2fr; gap: 48px; }
  .intro__label { padding-top: 0.6em; }
}

/* ---------- 6. Sliding albums (category albums) ---------- */
.album { padding-top: var(--section-y); border-top: 1px solid var(--line); }
.album--category { padding-top: clamp(16px, 2vw, 32px); padding-bottom: clamp(40px, 5vw, 72px); }
.album--category:last-child { padding-bottom: var(--section-y); }
.album--category { border-top: 0; }
.album--category .album__head { border-top: 1px solid var(--line); padding-top: clamp(28px, 4vw, 48px); }
.album__index { margin-bottom: 10px; }
.album.is-static .rail-controls { visibility: hidden; }

.album__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(28px, 4vw, 48px);
}

.rail-controls { display: flex; gap: 8px; }
.rail-btn {
  display: grid; place-items: center;
  width: 48px; height: 48px;
  border: 1px solid var(--brown);
  border-radius: 50%;
  background: transparent;
  transition: background-color 200ms, color 200ms, opacity 200ms;
}
.rail-btn svg { width: 20px; height: 20px; fill: currentColor; }
.rail-btn:hover:not(:disabled) { background: var(--brown); color: var(--cream); }
.rail-btn:disabled { opacity: 0.3; cursor: default; }
.js-autoplay .i-play { display: none; }
.js-autoplay[aria-pressed="true"] .i-play { display: block; }
.js-autoplay[aria-pressed="true"] .i-pause { display: none; }

.rail { position: relative; }

.rail__track {
  --rail-pad: max(var(--gutter), calc((100% - var(--maxw)) / 2));
  display: flex;
  gap: clamp(12px, 1.6vw, 24px);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--rail-pad);
  padding-inline: var(--rail-pad);
  padding-bottom: 8px;
  scrollbar-width: none;
  cursor: grab;
}
.rail__track::-webkit-scrollbar { display: none; }
.rail__track:focus-visible { outline-offset: -2px; }
.rail__track.is-dragging { cursor: grabbing; scroll-snap-type: none; scroll-behavior: auto; user-select: none; }
.rail__track.is-dragging a { pointer-events: none; }

.rail__progress {
  max-width: var(--maxw);
  margin: clamp(20px, 3vw, 32px) auto 0;
  width: calc(100% - var(--gutter) * 2);
  height: 1px;
  background: var(--line);
  position: relative;
  overflow: hidden;
}
.rail__progress span {
  position: absolute; inset: 0;
  background: var(--brown);
  transform-origin: left;
  transform: scaleX(var(--p, 0));
  transition: transform 200ms linear;
}

.ig-card {
  flex: 0 0 auto;
  width: calc(var(--rail-h) * var(--ar));
  scroll-snap-align: start;
}
.ig-card--post   { --ar: 0.8; }
.ig-card--square { --ar: 1; }
.ig-card--reel   { --ar: 0.5625; }

.ig-card a { display: block; }
.ig-card .frame { height: var(--rail-h); }
.ig-card img, .ig-card video { -webkit-user-drag: none; }
.ig-card video { position: absolute; inset: 0; opacity: 0; transition: opacity 400ms; }
.ig-card.is-playing video { opacity: 1; }

.ig-card__badge {
  position: absolute; top: 12px; right: 12px;
  display: grid; place-items: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  color: var(--white);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: opacity 300ms;
}
.ig-card__badge svg { width: 14px; height: 14px; fill: currentColor; margin-left: 2px; }
.ig-card.is-playing .ig-card__badge { opacity: 0; }

.ig-card__body { padding-top: 14px; display: grid; gap: 8px; justify-items: start; }
.ig-card__caption {
  font-size: var(--fs-md);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ig-card__meta { font-size: var(--fs-xs); color: var(--ink-soft); letter-spacing: 0.06em; }
.ig-card a:hover .ig-card__caption { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }

/* Audience stats: one card per platform. Followers large, then
   monthly views + engagement side by side. */
.audience {
  border-top: 1px solid var(--line);
  padding-block: var(--section-y) clamp(32px, 4vw, 56px);
}
.audience__grid { display: grid; gap: 56px; }
@media (min-width: 900px) { .audience__grid { grid-template-columns: 1fr 1fr; gap: clamp(48px, 6vw, 96px); } }
.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 16px;
  border-top: 1px solid var(--line);
}
.stats div { display: flex; flex-direction: column; padding-top: 24px; }
.stats div:first-child { grid-column: 1 / -1; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.stats div:nth-child(3) { padding-left: 24px; border-left: 1px solid var(--line); }
.stats dd {
  font-family: var(--font-serif);
  font-weight: var(--serif-weight);
  font-size: clamp(2.25rem, 1.6rem + 2vw, 3.25rem);
  line-height: 1;
  font-variation-settings: "opsz" 14;
}
.stats div:first-child dd { font-size: clamp(3.75rem, 2.4rem + 4.5vw, 6rem); }
.stats dt {
  order: 2;
  margin-top: 10px;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* ---------- 7. Category albums use the shared album styles above ---------- */

/* ---------- 8. Work with us ---------- */
.work {
  background: var(--white);
  padding-block: var(--section-y);
}
/* Set in Brown Pro Extra Bold (outlined artwork in assets/type/) */
.work__title {
  margin-bottom: clamp(36px, 5vw, 64px);
  line-height: 0;
}
.work__title img { width: min(100%, 760px); height: auto; }

.work__grid { display: grid; gap: 16px; }
@media (min-width: 900px) { .work__grid { grid-template-columns: 1fr 1fr; gap: 24px; } }

.work-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
  padding: clamp(28px, 4vw, 56px);
  background: var(--cream);
  font-size: var(--fs-md);
  color: var(--ink);
}
.work-card p { max-width: 58ch; }
.work-card__title {
  font-family: var(--font-serif);
  font-weight: var(--serif-weight);
  font-size: clamp(2rem, 1.4rem + 2.2vw, 3rem);
  line-height: 1;
  letter-spacing: -0.01em;
  font-variation-settings: "opsz" var(--serif-opsz);
  margin-bottom: 6px;
}
.work-card__lede { font-family: var(--font-serif); font-weight: var(--serif-weight); font-variation-settings: "opsz" 14; font-size: var(--fs-lg); line-height: 1.3; }
.work-card .button { margin-top: auto; }

/* Partnerships: the only card, so it runs full width with title left, copy right */
.work-card--feature { background: var(--cream); color: var(--brown); line-height: 1.7; }
.work-card--feature .work-card__head,
.work-card--feature .work-card__body { display: grid; gap: 18px; align-content: start; width: 100%; }
@media (min-width: 900px) {
  .work__grid { grid-template-columns: 1fr; }
  .work-card--feature { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; }
  .work-card--feature .work-card__lede { max-width: 18ch; }
}
.work-card__actions {
  margin-top: auto;
  padding-top: 12px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
}

/* ---------- 9. Footer ---------- */
.site-footer {
  --footer-line: rgba(255, 247, 235, 0.16);
  --footer-soft: rgba(255, 247, 235, 0.68);
  background: var(--brown);
  color: var(--cream);
  padding-top: clamp(56px, 7vw, 104px);
  font-size: var(--fs-sm);
}

.site-footer__top {
  display: grid;
  gap: 48px;
  padding-bottom: clamp(40px, 5vw, 72px);
}
@media (min-width: 1000px) {
  .site-footer__top { grid-template-columns: minmax(260px, 1fr) 2.4fr; gap: 64px; }
}

.site-footer__brand { display: grid; justify-items: start; align-content: start; gap: 20px; }
.site-footer__brand img { width: clamp(140px, 16vw, 188px); height: auto; margin-left: -10px; }
.site-footer__statement {
  max-width: 26ch;
  font-family: var(--font-serif);
  font-size: var(--fs-lg);
  line-height: 1.25;
  font-weight: var(--serif-weight);
  font-variation-settings: "opsz" 14;
}

.social-icons { display: flex; gap: 10px; margin-top: 4px; }
.social-icons a {
  display: grid; place-items: center;
  width: 44px; height: 44px;
  border: 1px solid var(--footer-line);
  border-radius: 50%;
  transition: background-color 200ms, color 200ms, border-color 200ms;
}
.social-icons a:hover { background: var(--cream); color: var(--brown); border-color: var(--cream); }
.social-icons svg { width: 20px; height: 20px; }

.site-footer__cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: 36px 24px; }
@media (min-width: 760px) { .site-footer__cols { grid-template-columns: repeat(4, auto); justify-content: space-between; gap: 40px; } }
@media (min-width: 1000px) {
  .site-footer__cols { padding-top: 6px; }
}

.site-footer__heading {
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--footer-line);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue);
}
.site-footer__links { display: grid; gap: 10px; }
.site-footer__links a {
  color: var(--cream);
  transition: color 200ms;
  overflow-wrap: anywhere;
}
.site-footer__links a:hover { color: var(--white); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.site-footer__handle, .site-footer__muted { color: var(--footer-soft); }

.site-footer__base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 32px;
  padding-block: 24px calc(24px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--footer-line);
  font-size: 0.75rem;
  color: var(--footer-soft);
}
.site-footer__tagline { font-family: var(--font-serif); font-weight: var(--serif-weight); font-style: italic; font-size: 0.9375rem; color: var(--cream); }
.site-footer__top-link { letter-spacing: 0.12em; text-transform: uppercase; font-size: 0.6875rem; font-weight: 600; color: var(--cream); }
.site-footer__top-link:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- 10. Scroll reveal ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
  transition-delay: var(--delay, 0ms);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- 11. Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
    scroll-behavior: auto !important;
  }
  .js .reveal, .js .hero__title { opacity: 1; transform: none; }
  .js .hero__slide { transform: none; }
  a:hover .frame img, a:hover .frame video { transform: none; }
}

/* ==========================================================================
   12. PHONE LAYOUT
   Everything below only applies on small screens. Laptop / desktop styles
   above are untouched. Elements only used on phones are hidden by default.
   ========================================================================== */
.mobile-cta,
.site-nav__extra { display: none; }

html { -webkit-tap-highlight-color: transparent; }

/* ---- Full-screen menu (phones + small tablets, where the hamburger shows) ---- */
@media (max-width: 859px) {
  body.menu-open { overflow: hidden; }

  .js .site-nav.is-open {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: calc(100vh - var(--header-h));
    height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    padding: 12px var(--gutter) calc(28px + env(safe-area-inset-bottom));
    border-bottom: 0;
  }
  .js .site-nav.is-open .site-nav__extra { display: grid; }

  .site-nav a {
    font-size: clamp(2.25rem, 11vw, 3rem);
    padding: 16px 0 14px;
    letter-spacing: -0.01em;
  }
  .site-nav li:last-child a { border-bottom: 0; }

  .site-nav__extra {
    gap: 10px;
    padding-top: 28px;
    border-top: 1px solid var(--line);
    font-size: var(--fs-base);
  }
  .site-nav .site-nav__extra a {
    font-family: var(--font-sans);
    font-size: var(--fs-md);
    padding: 6px 0;
    border: 0;
  }
  .site-nav .site-nav__email { font-weight: 700; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
  .site-nav__cities {
    margin-top: 8px;
    font-size: var(--fs-xs);
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--ink-soft);
  }
}

/* ---- Phones ---- */
@media (max-width: 639px) {
  :root {
    --header-h: 64px;
    --section-y: 64px;
    /* tall album cards: a 4:5 post fills ~84% of the screen width */
    --rail-h: min(105vw, 480px);
  }

  /* Header */
  .brand { --logo-h: 42px; }
  .brand__cities { font-size: 0.5625rem; letter-spacing: 0.22em; margin-bottom: 6px; }
  .nav-toggle { width: 48px; height: 48px; }

  /* Hero: full-bleed, near full-screen, like a magazine cover */
  .hero { padding-top: 0; }
  .hero > .container:first-child { padding-inline: 0; }
  .hero__media { aspect-ratio: 1 / 1; }
  .hero__overlay {
    padding: 0 var(--gutter) 28px;
    padding-top: 40%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.2) 60%, rgba(0, 0, 0, 0) 100%);
  }
  .hero__title { font-size: clamp(2.75rem, 13vw, 3.75rem); line-height: 0.9; }

  /* Intro */
  .intro { gap: 16px; padding-block: 36px 56px; }
  .intro__lede { font-size: 1.375rem; line-height: 1.32; }
  .intro__body { font-size: 1.0625rem; gap: 16px; }

  /* Section titles */
  .section-title { font-size: clamp(2.6rem, 12.5vw, 3.5rem); line-height: 0.95; text-wrap: balance; }

  /* Albums: swipe-first. Arrow buttons go (swipe is native); pause stays (accessibility). */
  .album__head { flex-wrap: nowrap; gap: 12px; margin-bottom: 20px; }
  .album--category { padding-top: 8px; padding-bottom: 40px; }
  .album--category .album__head { padding-top: 28px; }
  .album--category:last-child { padding-bottom: 64px; }
  .rail-controls .js-prev,
  .rail-controls .js-next { display: none; }
  .rail-btn { width: 44px; height: 44px; flex: none; }
  .rail__track { gap: 12px; cursor: auto; }
  .ig-card--square { --ar: 0.8; } /* squares crop to 4:5 so the row has one rhythm */
  .ig-card__body { padding-top: 12px; gap: 6px; }
  .ig-card__caption { font-size: 1.0625rem; }
  .ig-card a:active .frame img { transform: scale(0.985); transition-duration: 150ms; }
  .rail__progress { margin-top: 20px; }

  /* Stats */
  .audience { padding-block: 56px 24px; }
  .audience__grid { gap: 44px; }
  .stats div { padding-top: 20px; }
  .stats div:first-child { padding-bottom: 22px; }
  .stats div:nth-child(3) { padding-left: 20px; }
  .stats dd { font-size: 2.25rem; }
  .stats div:first-child dd { font-size: 3.75rem; }
  .stats dt { margin-top: 6px; font-size: 0.6875rem; }

  /* Work with us */
  .work__title { margin-bottom: 28px; }
  .work__title img { width: 50%; }
  .work__grid { gap: 12px; }
  .work-card { padding: 28px 22px 32px; gap: 16px; font-size: 1rem; }
  .work-card__title { font-size: 2.125rem; }
  .work-card__lede { font-size: 1.25rem; }
  .work-card--feature .work-card__body { font-size: 1.0625rem; }
  .work-card .button { width: 100%; justify-content: center; min-height: 56px; margin-top: 8px; }
  .work-card__actions { width: 100%; flex-direction: column; align-items: stretch; gap: 18px; padding-top: 0; }
  .work-card__actions .text-link { align-self: center; padding-block: 6px; }

  /* Footer */
  .site-footer { padding-top: 48px; }
  .site-footer__top { gap: 40px; padding-bottom: 36px; }
  .site-footer__brand img { width: 132px; margin-left: -8px; }
  .site-footer__statement { font-size: 1.25rem; }
  .site-footer__cols { gap: 32px 20px; }
  .site-footer__links { gap: 2px; }
  .site-footer__links a, .site-footer__links > li > span { display: block; padding-block: 9px; }
  .site-footer__handle { display: block; margin-top: 2px; }
  .site-footer__cols > :last-child { grid-column: 1 / -1; }
  .site-footer__base { flex-direction: column; align-items: flex-start; gap: 10px; padding-top: 20px; }

  /* Sticky contact bar */
  .mobile-cta {
    position: fixed;
    left: 12px; right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom));
    z-index: 40;
    display: flex;
    gap: 8px;
    padding: 6px;
    background: var(--brown);
    border-radius: 999px;
    box-shadow: 0 12px 32px -12px rgba(58, 28, 15, 0.55);
    transform: translateY(calc(100% + 24px));
    opacity: 0;
    visibility: hidden;
    transition: transform 450ms var(--ease), opacity 300ms, visibility 0s 450ms;
  }
  .mobile-cta.is-visible {
    transform: none;
    opacity: 1;
    visibility: visible;
    transition: transform 450ms var(--ease), opacity 300ms, visibility 0s;
  }
  body.menu-open .mobile-cta { opacity: 0; visibility: hidden; }

  .mobile-cta__main {
    flex: 1;
    display: grid;
    place-items: center;
    min-height: 48px;
    border-radius: 999px;
    background: var(--cream);
    color: var(--brown);
    font-size: var(--fs-sm);
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
  }
  .mobile-cta__icon {
    display: grid;
    place-items: center;
    width: 48px; height: 48px;
    flex: none;
    border-radius: 50%;
    color: var(--cream);
    border: 1px solid rgba(255, 247, 235, 0.35);
  }
  .mobile-cta__icon svg { width: 20px; height: 20px; }
  .mobile-cta :focus-visible { outline-color: var(--cream); }
}
