/* ==========================================================================
   Kaya Kelly — Portfolio
   Design system: white / pink / red / ink, BBH Bartle + Jura + Nothing You Could Do
   ========================================================================== */

@font-face {
  font-family: 'BBH Bartle';
  src: url('../Fonts/BBH_Bartle/BBHBartle-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'Jura';
  src: url('../Fonts/Jura/Jura-VariableFont_wght.ttf') format('truetype');
  font-weight: 300 700;
  font-style: normal;
}

@font-face {
  font-family: 'Nothing You Could Do';
  src: url('../Fonts/Nothing_You_Could_Do/NothingYouCouldDo-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
}

:root {
  --white: #ffffff;
  --accent: #c2447a;
  --accent-soft: #f4d3e1;
  --accent-strong: #e0142c;
  --ink: #141414;
  --ink-soft: rgba(20, 20, 20, 0.72);

  --font-display: 'BBH Bartle', sans-serif;
  --font-body: 'Jura', sans-serif;
  --font-accent: 'Nothing You Could Do', cursive;
  --font-logo: 'Nothing You Could Do', cursive;

  --ease: cubic-bezier(0.65, 0, 0.35, 1);
  --nav-h: 96px;
  --gutter: clamp(1.25rem, 4vw, 3.5rem);
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 18px;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Pages can opt into a themed image cursor by setting --page-cursor on
   body[data-page="..."] (see below); everywhere else falls back to the
   dot + ring custom cursor (cursor: none, drawn by main.js). */
@media (hover: hover) and (pointer: fine) {
  body {
    cursor: var(--page-cursor, none);
  }
  a,
  button,
  .cursor-target {
    cursor: var(--page-cursor, none);
  }
}

body[data-page="paintings.html"] { --page-cursor: url("../cursors/fish.png") 16 16, auto; }
body[data-page="photography.html"] { --page-cursor: url("../cursors/banana.png") 16 16, auto; }
body[data-page="info.html"] { --page-cursor: url("../cursors/star.png") 16 16, auto; }
body[data-page="writing.html"] { --page-cursor: url("../cursors/donut.png") 16 16, auto; }
body[data-page="index.html"] { --page-cursor: url("../cursors/orchid.png") 16 16, auto; }
body[data-page="marketing.html"] { --page-cursor: url("../cursors/strawberry.png") 16 16, auto; }

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

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

ul {
  list-style: none;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.01em;
}

.eyebrow {
  font-family: var(--font-accent);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  color: var(--accent);
  font-weight: 400;
  line-height: 1;
  display: inline-block;
}

.label {
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--accent);
}

/* ==========================================================================
   Custom cursor
   ========================================================================== */

.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  will-change: transform;
}

.cursor-dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  transition: opacity 0.2s var(--ease);
}

.cursor-ring {
  width: 34px;
  height: 34px;
  border: 1px solid var(--accent);
  transition: width 0.25s var(--ease), height 0.25s var(--ease), opacity 0.2s var(--ease), border-color 0.25s var(--ease);
  opacity: 0.7;
}

.cursor-ring.is-active {
  width: 60px;
  height: 60px;
  opacity: 1;
  background: var(--accent-soft);
}

.cursor-dot.is-hidden,
.cursor-ring.is-hidden {
  opacity: 0;
}

@media (hover: none), (pointer: coarse) {
  .cursor-dot,
  .cursor-ring {
    display: none;
  }
}

/* ==========================================================================
   Page transition veil
   ========================================================================== */

.page-veil {
  position: fixed;
  inset: 0;
  background: var(--white);
  z-index: 10000;
  pointer-events: none;
  opacity: 1;
}

body.is-loaded .page-veil {
  animation: veil-out 0.7s var(--ease) forwards;
}

body.is-leaving .page-veil {
  animation: veil-in 0.5s var(--ease) forwards;
}

@keyframes veil-out {
  from { opacity: 1; }
  to { opacity: 0; }
}

@keyframes veil-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

body:not(.is-loaded) .page-veil {
  opacity: 1;
}

body.is-loaded:not(.is-leaving) .page-veil {
  pointer-events: none;
}

/* ==========================================================================
   Header / inline nav
   ========================================================================== */

.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.8rem var(--gutter);
  mix-blend-mode: normal;
}

.site-logo {
  font-family: var(--font-logo);
  font-weight: 400;
  font-size: 2.4rem;
  color: var(--white);
  letter-spacing: 0.01em;
  transition: color 0.3s var(--ease);
}

.site-header.on-light .site-logo {
  color: var(--ink);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.6vw, 2.4rem);
}

.site-nav a {
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--white);
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}

.site-header.on-light .site-nav a {
  color: var(--ink);
}

.site-nav a.is-current {
  color: var(--accent);
  border-color: var(--accent);
}

.site-nav a:hover {
  color: var(--accent-strong);
  border-color: var(--accent-strong);
}

.site-nav-sub {
  font-family: var(--font-accent);
  font-size: 0.5em;
  color: var(--accent);
  margin-left: 0.3em;
  vertical-align: middle;
}

/* ==========================================================================
   Hero (home) — fullscreen looping background video
   ========================================================================== */

.hero-video {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 560px;
  overflow: hidden;
  background: var(--ink);
}

.hero-video-el {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Slight zoom/crop — works out to ~3/4cm off each side on a 13" MacBook's
     ~28.7cm-wide display. */
  transform: scale(1.053);
}

.hero-video::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(20, 20, 20, 0.32) 0%, rgba(20, 20, 20, 0) 22%, rgba(20, 20, 20, 0) 78%, rgba(20, 20, 20, 0.32) 100%);
}

/* ==========================================================================
   Sections / editorial layout
   ========================================================================== */

.section {
  padding: clamp(4rem, 10vw, 8rem) var(--gutter);
}

/* ==========================================================================
   Scroll reveal
   ========================================================================== */

[data-animate] {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

[data-animate].in-view {
  opacity: 1;
  transform: translateY(0);
}

[data-animate="fade"] {
  transform: none;
}

/* A rule that widens from the centre outward when revealed */
[data-widen] {
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 1.1s var(--ease);
}

[data-widen].in-view {
  transform: scaleX(1);
}

[data-animate-group] > * {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

[data-animate-group].in-view > * {
  opacity: 1;
  transform: translateY(0);
}

[data-animate-group].in-view > *:nth-child(1) { transition-delay: 0s; }
[data-animate-group].in-view > *:nth-child(2) { transition-delay: 0.08s; }
[data-animate-group].in-view > *:nth-child(3) { transition-delay: 0.16s; }
[data-animate-group].in-view > *:nth-child(4) { transition-delay: 0.24s; }
[data-animate-group].in-view > *:nth-child(5) { transition-delay: 0.32s; }
[data-animate-group].in-view > *:nth-child(6) { transition-delay: 0.4s; }
[data-animate-group].in-view > *:nth-child(n+7) { transition-delay: 0.46s; }

/* ==========================================================================
   Page header (non-home pages)
   ========================================================================== */

.page-hero {
  padding: calc(var(--nav-h) + 3.5rem) var(--gutter) 3rem;
  background: var(--white);
}

.page-hero .label {
  margin-bottom: 1rem;
  display: block;
}

.page-hero h1 {
  font-size: clamp(2.6rem, 7vw, 5.5rem);
  line-height: 1;
}

.page-hero p {
  margin-top: 1.4rem;
  max-width: 100ch;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.page-hero.text-center {
  text-align: center;
}

.page-hero.text-center p {
  margin-left: auto;
  margin-right: auto;
}

.page-hero .widen-rule {
  max-width: 340px;
  margin-top: 2.2rem;
}

.page-hero.text-center .widen-rule {
  margin-left: auto;
  margin-right: auto;
}

/* ==========================================================================
   Galleries
   ========================================================================== */

.gallery {
  columns: 3;
  column-gap: clamp(1rem, 2vw, 1.75rem);
  padding: 0 var(--gutter) 4rem;
}

.gallery.cols-2 {
  columns: 2;
}

.gallery.cols-4 {
  columns: 4;
}

.gallery-item {
  position: relative;
  display: block;
  break-inside: avoid;
  margin-bottom: clamp(1rem, 2vw, 1.75rem);
  overflow: hidden;
}

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.6s var(--ease);
}

.gallery-item:hover img {
  transform: scale(1.02);
}

.gallery-item-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 1.1rem 1.2rem;
  background: linear-gradient(180deg, rgba(20, 20, 20, 0) 55%, rgba(20, 20, 20, 0.72) 100%);
  opacity: 0;
  transition: opacity 0.5s var(--ease);
}

.gallery-item:hover .gallery-item-overlay {
  opacity: 1;
}

.gallery-item-overlay span {
  color: var(--white);
  font-size: 0.95rem;
  letter-spacing: 0.03em;
}

.gallery-item-overlay .painting-medium {
  display: block;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
  margin-top: 0.3rem;
}

/* Bespoke collage layout: hand-arranged rows where cell widths are set
   (via JS, from each photo's real aspect ratio + actual gap pixels) so
   every cell in a row shares the exact same height — zero cropping,
   zero distortion, edges aligned. */
.collage {
  display: flex;
  flex-direction: column;
  gap: clamp(0.6rem, 1.6vw, 1.4rem);
  padding: 0 var(--gutter) 4rem;
}

.collage-row {
  display: flex;
  align-items: flex-start;
  gap: clamp(0.6rem, 1.6vw, 1.4rem);
}

.collage-cell {
  min-width: 0;
}

.collage-cell img {
  display: block;
  width: 100%;
  height: auto;
}

.collage-stack {
  display: flex;
  flex-direction: column;
  gap: clamp(0.6rem, 1.6vw, 1.4rem);
}

.collage-cell.collage-toggle {
  position: relative;
}

.collage-cell.collage-toggle img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  pointer-events: none;
}

.collage-cell.collage-toggle img.is-active {
  opacity: 1;
  pointer-events: auto;
}

.collage-cell--zoom {
  overflow: hidden;
}

.collage-cell--zoom img {
  transform: scale(var(--zoom, 1));
  transform-origin: center center;
}

@media (max-width: 700px) {
  .collage-row {
    flex-direction: column !important;
  }
  .collage-cell {
    flex: 1 1 auto !important;
  }
}

/* Painting grid gets more room + caption beneath. Full artwork always visible, no cropping. */
.painting-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: calc(clamp(2rem, 5vw, 5rem) + 1cm) clamp(2rem, 5vw, 4rem);
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 var(--gutter) 5rem;
}

.painting-card figure {
  overflow: hidden;
}

.painting-card img {
  display: block;
  width: calc(100% + 6px);
  margin: 0 -3px;
  max-width: none;
  height: auto;
  transition: transform 0.6s var(--ease);
}

.painting-card:hover img {
  transform: scale(1.02);
}

.painting-card figcaption {
  margin-top: 1.1rem;
}

.painting-card h3 {
  font-family: var(--font-accent);
  font-size: 2.1rem;
  font-weight: 400;
}

.painting-card--full {
  grid-column: 1 / -1;
}

.painting-card--shrink {
  padding: 0 96px;
}

.painting-card--crop-top img {
  margin-top: -1cm;
}

.painting-card--align-end {
  align-self: end;
}

.painting-card--smaller {
  padding: 0 48px;
}

.painting-card--bigger {
  margin: 0 -24px;
}

@media (max-width: 640px) {
  .painting-card--shrink,
  .painting-card--smaller {
    padding: 0;
  }

  .painting-card--bigger {
    margin: 0;
  }

  .painting-card--crop-top img {
    margin-top: -0.5cm;
  }
}

.painting-card .painting-medium {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
  margin: 0.35rem 0 0.7rem;
}

.painting-card .painting-desc {
  color: var(--ink-soft);
  font-size: 0.95rem;
  max-width: 46ch;
  white-space: pre-line;
}

.painting-card--wide-text .painting-desc {
  max-width: none;
}

.painting-card--side-by-side {
  display: flex;
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
}

.painting-card--side-by-side figure {
  flex: 1 1 55%;
  min-width: 0;
}

.painting-card--side-by-side figcaption {
  flex: 1 1 45%;
  margin-top: 0;
}

.painting-card--side-by-side .painting-desc {
  max-width: none;
}

.painting-card--img-bigger figure {
  flex: 1 1 68%;
}

.painting-card--img-bigger figcaption {
  flex: 1 1 32%;
}

.painting-card--img-much-bigger figure {
  flex: 1 1 82%;
}

.painting-card--img-much-bigger figcaption {
  flex: 1 1 18%;
}

@media (max-width: 800px) {
  .painting-card--side-by-side {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .painting-card--side-by-side figcaption {
    margin-top: 1.1rem;
  }
}

/* Event labeled sections */
.event-group {
  padding: 0 0 2rem;
}

.event-group-header {
  padding: 3rem var(--gutter) 1.5rem;
  border-top: 1px solid var(--accent-soft);
}

.event-group-header--first {
  padding-top: calc(var(--nav-h) + 3.5rem);
  border-top: none;
}

.event-group-header--no-border {
  border-top: none;
  padding-top: 0;
}

.event-group-header h2 {
  font-family: var(--font-accent);
  font-size: 2.1rem;
  font-weight: 400;
}

.event-group-header p {
  color: var(--ink-soft);
  margin-top: 0.5rem;
  max-width: 60ch;
}

.event-group-header h2.event-heading--label {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--accent);
}

.event-group-header .event-sub-label {
  display: block;
  margin-top: 0.6rem;
}

.event-video-wrap {
  padding: 0 var(--gutter) 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.event-video {
  display: block;
  width: 100%;
  height: auto;
  background: #000;
  cursor: pointer;
}

.event-video-desc {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 var(--gutter) 2rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
  text-align: center;
}

/* Film grainy aesthetic — a full-bleed sub-section within the photography page */
.film-subsection {
  position: relative;
  overflow: hidden;
  background: var(--white);
  padding: 1px 0 3rem;
}

.film-subsection .gallery-item img {
  filter: grayscale(12%) contrast(1.05) saturate(0.9);
}

.film-subsection .film-grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

.film-subgroup-header {
  position: relative;
  z-index: 2;
  padding: 2.5rem var(--gutter) 1.2rem;
}

.film-subgroup-header--first {
  padding-top: 0;
}

.film-subgroup-header .label {
  color: var(--accent);
}

#portraits,
#events,
#film,
#other-pretty-things {
  scroll-margin-top: var(--nav-h);
}

/* ==========================================================================
   Lightbox
   ========================================================================== */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(20, 20, 20, 0.97);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s var(--ease);
  padding: clamp(1.2rem, 5vw, 4rem);
}

.lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-inner {
  display: flex;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  max-width: 1200px;
  width: 100%;
  align-items: center;
  transform: translateY(20px);
  opacity: 0;
  transition: transform 0.5s var(--ease), opacity 0.5s var(--ease);
}

.lightbox.is-open .lightbox-inner {
  transform: translateY(0);
  opacity: 1;
}

.lightbox-media {
  flex: 1 1 60%;
  max-height: 82vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-media img {
  max-height: 82vh;
  max-width: 100%;
  width: auto;
  object-fit: contain;
}

.lightbox-caption {
  flex: 1 1 32%;
  color: var(--white);
  max-width: 420px;
}

.lightbox-caption .label {
  color: var(--accent);
}

.lightbox-caption h3 {
  font-family: var(--font-accent);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  margin: 0.7rem 0 0.5rem;
}

.lightbox-caption .painting-medium {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
  margin-bottom: 1rem;
}

.lightbox-caption p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1rem;
  white-space: pre-line;
}

.lightbox-close {
  position: absolute;
  top: clamp(1.2rem, 4vw, 2.5rem);
  right: clamp(1.2rem, 4vw, 2.5rem);
  background: none;
  border: none;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 1rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.lightbox-close .x {
  font-size: 1.4rem;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  color: var(--white);
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.lightbox-nav:hover {
  border-color: var(--accent-strong);
  background: var(--accent-soft);
}

.lightbox-prev { left: clamp(0.8rem, 3vw, 2rem); }
.lightbox-next { right: clamp(0.8rem, 3vw, 2rem); }

/* ==========================================================================
   Simple single-column pages (info / writing / marketing)
   ========================================================================== */

.single-col {
  max-width: 640px;
  margin: 0 auto;
  padding: calc(var(--nav-h) + 4rem) var(--gutter) 6rem;
}

.single-col--wide {
  max-width: 860px;
}

.info-photo {
  width: 100%;
  margin-bottom: 2.5rem;
}

.info-photo img {
  display: block;
  width: 100%;
  height: auto;
}

.info-intro {
  display: flex;
  align-items: center;
  gap: clamp(3rem, 7vw, 7rem);
  max-width: 1400px;
  margin: 0 auto;
  padding: calc(var(--nav-h) + 3rem) var(--gutter) 8rem;
}

.info-intro .info-photo {
  flex: 0 0 clamp(280px, 42vw, 520px);
  margin-bottom: 0;
}

.info-intro-text {
  flex: 1 1 auto;
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--ink);
}

.info-intro-text .info-call {
  margin-top: 2.2rem;
}

.info-intro-text .info-call a {
  color: inherit;
  font: inherit;
}

@media (max-width: 760px) {
  .info-intro {
    flex-direction: column;
    align-items: flex-start;
  }
  .info-intro .info-photo {
    flex: none;
    width: 100%;
    max-width: 320px;
  }
}

.placeholder-text {
  color: var(--accent);
  font-style: italic;
  opacity: 0.85;
}

.info-block {
  margin-bottom: 2.4rem;
}

.info-block h2 {
  font-family: var(--font-accent);
  color: var(--accent);
  font-size: 2rem;
  margin-bottom: 0.6rem;
}

.info-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem 2rem;
}

.info-links a {
  border-bottom: 1px solid var(--accent);
  padding-bottom: 2px;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.info-links a:hover {
  color: var(--accent-strong);
}

.writing-piece {
  padding-bottom: 3rem;
  margin-bottom: 3rem;
  border-bottom: 1px solid var(--accent-soft);
}

.writing-piece:last-child {
  border-bottom: none;
}

.writing-piece h2 {
  font-family: var(--font-accent);
  font-weight: 400;
  font-size: 2.1rem;
  line-height: 1.2;
  margin-bottom: 0.6rem;
}

.writing-piece .label {
  display: block;
  margin-bottom: 0.8rem;
}

.writing-piece p a {
  color: var(--accent);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 1px;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.writing-piece p a:hover {
  color: var(--accent-strong);
  border-color: var(--accent-strong);
}

.coming-soon {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--nav-h) + 2rem) var(--gutter) 6rem;
}

.coming-soon .eyebrow {
  margin-bottom: 1.2rem;
}

.coming-soon h1 {
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  color: var(--accent);
  letter-spacing: 0.05em;
}

.client-section {
  padding: 3rem var(--gutter);
  border-top: 1px solid var(--accent-soft);
}

.client-section--first {
  padding-top: calc(var(--nav-h) + 3.5rem);
  border-top: none;
}

.client-section h2 {
  font-family: var(--font-accent);
  font-size: 2.1rem;
  font-weight: 400;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  padding: 3rem var(--gutter);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  border-top: 1px solid var(--accent-soft);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.site-footer a:hover {
  color: var(--accent-strong);
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.footer-social a {
  display: inline-flex;
  color: inherit;
  transition: color 0.3s ease;
}

.footer-social a:hover {
  color: var(--accent-strong);
}

.footer-social svg {
  width: 17px;
  height: 17px;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 900px) {
  .painting-grid { grid-template-columns: 1fr; }
  .gallery { columns: 2; }
  .gallery.cols-4 { columns: 2; }
  .lightbox-inner { flex-direction: column; }
  .lightbox-media img { max-height: 50vh; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .gallery { columns: 1; }
  .gallery.cols-4 { columns: 1; }

  /* Stacked header: shrink the logo to one line, stack nav links vertically,
     then push --nav-h out so page content clears the taller header. */
  :root { --nav-h: 235px; }
  .site-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.9rem;
    padding: 1.2rem 1rem;
  }
  .site-logo { font-size: 1.5rem; }
  .site-nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    max-width: none;
    overflow: visible;
  }
  .site-nav::-webkit-scrollbar { display: none; }
  .site-nav a { font-size: 0.65rem; letter-spacing: 0.12em; white-space: nowrap; }

  /* Unify + shrink the three editorial title styles. */
  .painting-card h3,
  .event-group-header h2,
  .writing-piece h2 {
    font-size: 1.7rem;
  }
}
