/* =====================================================================
   FEMDOM SERBIA — STYLESHEET
   Sections are grouped by component so maintenance is predictable.
   Change the variables below to update the site's shared design tokens.
   ===================================================================== */

/* <----- 01. DESIGN TOKENS: colors, fonts, and shared measurements -----> */
:root {
  --bg: #090909;
  --panel: #111111;
  --panel-2: #171717;
  --text: #f4f0eb;
  --muted: #b8b5b2;
  --red: #e50920;
  --line: #292727;

  --font-display: "Oswald", Impact, sans-serif;
  --font-serif: "Cormorant Garamond", Georgia, serif;
  --font-body: "DM Sans", Arial, sans-serif;

  --content-width: 1160px;
  --page-gutter: 5vw;
  --header-height: 86px;
  --section-space: 105px;
}

/* <----- 02. RESET AND BASE ELEMENTS -----> */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 16px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.7;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
}

button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 4px;
}

/* <----- 03. SHARED TYPOGRAPHY AND BUTTONS -----> */
.display-heading {
  margin: 20px 0;
  font-family: var(--font-display);
  font-size: clamp(38px, 5vw, 64px);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.025em;
}

.display-heading em {
  color: var(--red);
  font-family: var(--font-serif);
  font-weight: 500;
  font-style: italic;
  letter-spacing: -0.035em;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 13px 18px;
  border: 1px solid transparent;
  cursor: pointer;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button span {
  font-size: 14px;
}

.button--primary {
  background: var(--red);
  color: #ffffff;
}

.button--primary:hover {
  background: #bd071a;
}

.button--outline {
  border-color: #756c68;
  background: rgb(9 9 9 / 28%);
  color: var(--text);
}

.button--outline:hover {
  border-color: var(--red);
}

.eyebrow,
.section-label,
.accent-label {
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.section-label {
  margin: 0;
  color: #9f9994;
}

.section-label span {
  margin-right: 8px;
  color: var(--red);
}

/* <----- 04. HEADER AND NAVIGATION -----> */
.site-header {
  position: sticky;
  z-index: 30;
  top: 0;
  display: flex;
  height: var(--header-height);
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-inline: max(calc((100vw - var(--content-width)) / 2), var(--page-gutter));
  border-bottom: 1px solid rgb(255 255 255 / 3%);
  background: rgb(9 9 9 / 91%);
  backdrop-filter: blur(16px);
}

/* <----- LOGO: FS tail SVG; sizing preserves header clearance; desktop header sizing lives here -----> */
.wordmark {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  width: 56px;
  max-width: 100%;
  line-height: 0;
}

.wordmark__image {
  display: block;
  width: 100%;
  height: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 1.4vw, 24px);
  white-space: nowrap;
  color: #d7d2ce;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.main-nav a:not(.main-nav__contact):hover {
  color: var(--red);
}

.main-nav__contact {
  padding: 10px 14px;
  border: 1px solid #494242;
}

.main-nav__contact span {
  margin-left: 10px;
  color: var(--red);
}

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 25px;
  height: 1px;
  margin: 7px;
  background: var(--text);
}

/* <----- RESPONSIVE NAVIGATION: use the drawer before the full link list becomes crowded -----> */
.main-nav > a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
}

@media (max-width: 1280px) {
  .menu-toggle {
    display: block;
  }

  .main-nav {
    position: absolute;
    top: calc(var(--header-height) - 1px);
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-height: calc(100dvh - var(--header-height));
    overflow-y: auto;
    font-size: 11px;
    padding: 18px 22px 25px;
    border-bottom: 1px solid var(--line);
    background: var(--panel);
  }

  .main-nav.is-open {
    display: flex;
  }

  .main-nav > a {
    padding: 13px 0;
    border-bottom: 1px solid var(--line);
  }

  .main-nav .main-nav__contact {
    margin-top: 12px;
    padding: 12px;
  }

}

/* <----- 05. HERO: editorial photo collage and main headline -----> */
.hero {
  position: relative;
  display: flex;
  min-height: max(700px, calc(100svh - var(--header-height)));
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  background: var(--bg);
}

.hero__collage {
  position: absolute;
  z-index: -2;
  inset: 0;
  display: grid;
  grid-template-columns: 1.15fr 0.75fr 0.75fr 1fr;
  grid-template-rows: 1fr 0.85fr;
  gap: 5px;
  padding: 0 5px 5px;
  opacity: 0.82;
}

.hero-photo {
  position: relative;
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 3.5%);
  background-color: #1b1718;
  background-position: center;
  background-size: cover;
}

/* The gradient is first so it sits above the photo. The final gradient is a fallback. */
.hero-photo--one {
  grid-column: 1;
  grid-row: 1 / 3;
  background-image: linear-gradient(140deg, rgb(229 9 32 / 13%), transparent 50%), url("../images/hero-01.jpg"), radial-gradient(ellipse at 50% 25%, #49383a 0, #211a1b 50%, #0b0a0a 85%);
}

.hero-photo--two {
  grid-column: 2;
  grid-row: 1;
  background-image: linear-gradient(140deg, rgb(229 9 32 / 10%), transparent 55%), url("../images/hero-02.jpg"), radial-gradient(ellipse at 45% 30%, #3b3030 0, #201b1b 45%, #0e0d0d 85%);
}

.hero-photo--three {
  grid-column: 3;
  grid-row: 1;
  background-image: linear-gradient(140deg, rgb(229 9 32 / 10%), transparent 55%), url("../images/hero-03.jpg"), radial-gradient(ellipse at 45% 30%, #3b3030 0, #201b1b 45%, #0e0d0d 85%);
}

.hero-photo--four {
  grid-column: 4;
  grid-row: 1 / 3;
  background-image: linear-gradient(140deg, rgb(229 9 32 / 13%), transparent 50%), url("../images/hero-04.jpg"), radial-gradient(ellipse at 50% 25%, #49383a 0, #211a1b 50%, #0b0a0a 85%);
}

.hero-photo--five {
  grid-column: 2;
  grid-row: 2;
  background-image: linear-gradient(140deg, rgb(229 9 32 / 10%), transparent 55%), url("../images/hero-05.jpg"), radial-gradient(ellipse at 45% 30%, #3b3030 0, #201b1b 45%, #0e0d0d 85%);
}

.hero-photo--six {
  grid-column: 3;
  grid-row: 2;
  background-image: linear-gradient(140deg, rgb(229 9 32 / 10%), transparent 55%), url("../images/hero-06.jpg"), radial-gradient(ellipse at 45% 30%, #3b3030 0, #201b1b 45%, #0e0d0d 85%);
}

.hero__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgb(9 9 9 / 95%) 0%, rgb(9 9 9 / 82%) 29%, rgb(9 9 9 / 44%) 55%, rgb(9 9 9 / 22%) 100%), linear-gradient(0deg, rgb(9 9 9 / 82%) 0%, transparent 28%, rgb(9 9 9 / 15%) 100%);
}

.hero__content {
  position: relative;
  z-index: 2;
  width: min(var(--content-width), 90%);
  margin-inline: auto;
  padding: 100px 0 135px;
  pointer-events: none;
}

.hero__content a {
  pointer-events: auto;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
}

.eyebrow span {
  display: inline-block;
  width: 28px;
  height: 1px;
  background: var(--red);
}

/* <----- HERO HEADLINE: unified typography -----> */
/* <----- HERO HEADLINE: spacing below the eyebrow and above the description -----> */
.hero h1 {
  max-width: 850px;
  margin: 26px 0 18px; /* Reduced bottom gap from 24px to 18px. */
  font-family: var(--font-display);
  font-size: clamp(64px, 7.6vw, 108px);
  font-weight: 600;
  line-height: 0.94;
  letter-spacing: -0.035em;
}

/* <----- SECOND LINE: same font, red accent -----> */
.hero h1 em {
  display: inline-block;
  color: var(--red);
  font-family: inherit;
  font-size: 0.88em;
  font-weight: 400;
  font-style: normal;
  letter-spacing: -0.025em;
  white-space: nowrap;
}

/* <----- HERO DESCRIPTION: readable width and comfortable line spacing -----> */
.hero__description {
  max-width: 460px; /* Gives the text slightly more horizontal room on desktop. */
  margin: 0; /* Removes default paragraph margins for predictable alignment. */
  color: #d0cbc7; /* Keeps the existing muted white text color. */
  font-size: 14px; /* Preserves the current body text size. */
  line-height: 1.8; /* Keeps the text comfortably spaced vertically. */
}


.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero__footer {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 18px max(calc((100vw - var(--content-width)) / 2), var(--page-gutter));
  border-top: 1px solid rgb(255 255 255 / 13%);
  color: #c0b9b4;
  font-size: 8px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.hero__footer a span {
  margin-left: 9px;
  color: var(--red);
}


/* <----- 06. ABOUT: studio introduction -----> */
.section {
  max-width: var(--content-width);
  margin-inline: auto;
  padding-block: var(--section-space);
}

/* <----- ABOUT FRAME: portrait and introduction with a subtle bottom divider -----> */
.section--about {
  margin-inline: max(calc((100% - var(--content-width)) / 2), var(--page-gutter));
  padding-block: clamp(64px, 7vw, 96px) clamp(44px, 5vw, 64px);
  border-bottom: 1px solid var(--line);
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
  align-items: center;
  gap: clamp(40px, 6vw, 88px);
  margin-top: 32px;
}

/* <----- PORTRAIT: natural aspect ratio, no overlay or forced crop -----> */
.about-portrait {
  min-width: 0;
  margin: 0;
}

.about-portrait img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
}

.about-portrait figcaption {
  margin-top: 12px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.06em;
}

.about-portrait figcaption span {
  color: var(--text);
}

.about-content {
  min-width: 0;
}

.about-grid h2 {
  margin: 0 0 24px;
  font-size: clamp(38px, 4.3vw, 60px);
  line-height: 1.12;
  text-wrap: balance;
}

.about-copy {
  max-width: 510px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
}

.about-copy p {
  margin: 0 0 16px;
}

/* <----- PERSONAL LABEL: a small accent, separate from the main body text -----> */
.about-copy__label {
  margin-bottom: 14px;
  color: var(--red);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.about-copy__lead {
  color: var(--text);
}

/* <----- PRINCIPLES: wraps naturally on narrow screens without fixed widths -----> */
.about-principles {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin: 26px 0 0;
  padding: 18px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
  color: #d0cbc7;
  font-size: 11px;
}

.about-principles li::before {
  display: inline-block;
  width: 4px;
  height: 4px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--red);
  vertical-align: middle;
  content: "";
}

/* <----- 07. PORTFOLIO: responsive project grid and captions -----> */
.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 35px;
}

.section-heading p {
  max-width: 330px;
  color: var(--muted);
  font-size: 12px;
}

/* <----- PORTFOLIO INTRODUCTION: direct heading and a readable supporting line -----> */
/* <----- PORTFOLIO INTRODUCTION: heading and supporting description -----> */
.section--portfolio .section-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 20px clamp(40px, 6vw, 80px);
  margin-top: 22px;
}

/* <----- HEADING: retain the existing fonts with cleaner spacing -----> */
.section--portfolio .section-heading h2 {
  flex: 0 1 auto;
  min-width: 0;
  margin: 0;
  line-height: 1.12;
}

/* <----- ITALIC ACCENT: balance the apparent size of "work" -----> */
.section--portfolio .section-heading h2 em {
  display: inline-block;
  font-size: 1.08em;
  white-space: nowrap;
}

/* <----- DESCRIPTION: keep the supporting text readable and close -----> */
.section--portfolio .section-heading p {
  flex: 0 1 300px;
  max-width: 300px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.75;
  text-wrap: pretty;
}

/* <----- MOBILE INTRODUCTION: stack the description below the heading -----> */
@media (max-width: 650px) {
  .section--portfolio .section-heading {
    display: block;
    margin-top: 18px;
  }

  .section--portfolio .section-heading h2 {
    margin: 0 0 14px;
    font-size: clamp(38px, 10vw, 44px);
  }

  .section--portfolio .section-heading p {
    max-width: 32ch;
    margin: 0;
  }
}

/* <----- GALLERY FRAME: stable height and complete images, without stretching -----> */
.section--portfolio {
  min-width: 0;
  margin-inline: max(calc((100% - var(--content-width)) / 2), var(--page-gutter));
}

.gallery {
  min-width: 0;
  margin-top: 32px;
}

.gallery__stage {
  border: 1px solid var(--line);
  background: #101010;
  touch-action: pan-y pinch-zoom;
}

.gallery__open {
  position: relative;
  display: block;
  height: clamp(360px, 48vw, 620px);
}

.gallery__image {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.gallery__expand {
  position: absolute;
  right: 14px;
  bottom: 14px;
  padding: 7px 11px;
  border: 1px solid #514949;
  background: rgb(9 9 9 / 85%);
  color: var(--text);
  font-size: 10px;
  letter-spacing: 0.04em;
}

/* <----- CONTROLS: usable touch targets and a quiet image counter -----> */
.gallery__toolbar,
.gallery__controls,
.gallery-lightbox__header,
.gallery-lightbox__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.gallery__toolbar {
  padding-block: 18px;
}

.gallery__category {
  margin: 0 0 3px;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.gallery__count {
  margin: 0;
  color: var(--text);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.gallery__arrow {
  display: inline-flex;
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid #514949;
  border-radius: 50%;
  background: transparent;
  color: var(--text);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

/* <----- GALLERY NAVIGATION: consistent icons and labelled desktop controls -----> */
.gallery__arrow {
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}

.gallery__arrow svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.gallery__controls .gallery__arrow {
  width: auto;
  min-width: 120px;
  gap: 12px;
  padding-inline: 18px;
  border-radius: 999px;
}

.gallery__control-label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.06em;
}

.gallery__arrow:hover {
  border-color: var(--red);
  background: var(--red);
  color: #ffffff;
}

.gallery__arrow:active {
  background: #bd071a;
}

/* <----- THUMBNAILS: a horizontally scrollable strip with a visible selection -----> */
.gallery__thumbnails {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 5px 3px 12px;
  scrollbar-width: thin;
  scrollbar-color: #615252 var(--panel);
}

.gallery__thumb {
  display: block;
  width: 88px;
  flex: 0 0 88px;
  padding: 3px;
  border: 1px solid #3e3535;
  opacity: 0.65;
}

.gallery__thumb img {
  width: 100%;
  height: 62px;
  object-fit: cover;
}

.gallery__thumb:hover,
.gallery__thumb[aria-current="true"] {
  opacity: 1;
}

.gallery__thumb[aria-current="true"] {
  border-color: var(--red);
  box-shadow: inset 0 0 0 1px var(--red);
}

.gallery__hint {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 11px;
}

/* <----- LIGHTBOX: full photographs and native modal keyboard support -----> */
.gallery-lightbox {
  width: min(1180px, calc(100vw - 32px));
  max-width: none;
  max-height: calc(100dvh - 32px);
  padding: 16px;
  border: 1px solid #514949;
  background: var(--bg);
  color: var(--text);
  overscroll-behavior: contain;
}

.gallery-lightbox::backdrop {
  background: rgb(0 0 0 / 94%);
}

.gallery-lightbox__header h3 {
  margin: 0;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
}

.gallery-lightbox__image {
  width: 100%;
  height: min(68dvh, 800px);
  margin-block: 12px;
  object-fit: contain;
  touch-action: pan-y pinch-zoom;
}

.gallery-lightbox__footer p {
  margin: 0;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

/* Explicitly preserve hidden controls before JavaScript initialises. */
.gallery [hidden] {
  display: none;
}

/* <----- 08. CASTING: photo slideshow, invitation, locations, and eligibility -----> */
.casting {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  border-block: 1px solid var(--line);
  background: var(--panel);
}

/* <----- SLIDESHOW FRAME: stable dimensions and full, uncropped photographs -----> */
.casting__slideshow {
  position: relative;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  min-width: 0;
  min-height: 640px;
  border-right: 1px solid var(--line);
  background: #0d0d0d;
}

.casting__slides {
  position: relative;
  min-width: 0;
  min-height: 560px;
  overflow: hidden;
}

.casting__slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 800ms ease, visibility 0s linear 800ms;
}

.casting__slide.is-active {
  opacity: 1;
  visibility: visible;
  transition: opacity 800ms ease, visibility 0s linear 0s;
}

.casting__slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* <----- SLIDE CONTROLS: selectors and a pause button beneath the photographs -----> */
.casting__slide-controls {
  display: flex;
  min-height: 68px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px clamp(18px, 3vw, 36px);
  border-top: 1px solid var(--line);
}

.casting__slideshow [hidden] {
  display: none;
}

.casting__slide-count {
  min-width: 54px;
  color: var(--muted);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.08em;
}

.casting__slide-selectors {
  display: flex;
  align-items: center;
  gap: 2px;
}

.casting__slide-selector {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.casting__slide-selector span {
  width: 22px;
  height: 2px;
  background: #68615e;
  transition: background-color 180ms ease;
}

.casting__slide-selector[aria-current="true"] span,
.casting__slide-selector:hover span {
  background: var(--red);
}

.casting__playback {
  display: inline-flex;
  min-width: 80px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 10px;
  border: 1px solid #494242;
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  font-size: 11px;
  cursor: pointer;
}

.casting__playback:hover:not(:disabled) {
  border-color: var(--red);
}

.casting__playback:disabled {
  color: var(--muted);
  cursor: default;
}

.casting__playback svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Manual selections are announced; automatic changes do not interrupt reading. */
.casting__slide-status {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  margin: -1px;
  padding: 0;
  border: 0;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* <----- CASTING COPY: comfortable text size and a controlled reading width -----> */
.casting__content {
  min-width: 0;
  align-self: center;
  padding: 72px clamp(32px, 5vw, 80px);
}

.accent-label {
  margin-top: 25px;
  color: var(--red);
}

.casting__content h2 {
  margin: 13px 0 26px;
  line-height: 1.12;
}

.casting__content > p:not(.section-label, .accent-label, .casting__note) {
  max-width: 52ch;
  margin-block: 0 18px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
}

.location-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 26px 0;
  padding: 0;
  list-style: none;
}

.location-list li {
  padding: 8px 10px;
  border: 1px solid #393131;
  color: #d0c9c4;
  font-size: 11px;
  line-height: 1.6;
}

.casting__note {
  max-width: 52ch;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

@media (prefers-reduced-motion: reduce) {
  .casting__slide,
  .casting__slide.is-active {
    transition: none;
  }
}

/* <----- 09. CONTACT: direct email and the future website-enquiry path -----> */
.contact-final {
  margin-inline: max(calc((100% - var(--content-width)) / 2), var(--page-gutter));
}

.contact-final .contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  align-items: start;
  gap: clamp(32px, 5vw, 72px);
  margin-top: 32px;
}

.contact-final .contact-intro {
  position: relative;
  isolation: isolate;
  align-self: stretch;
  min-width: 0;
  min-height: 580px;
}

/* <----- CONTACT PHOTOGRAPH: soft backdrop confined to the introduction -----> */
.contact-final .contact-intro::before {
  position: absolute;
  z-index: -1;
  inset: -24px -20px;
  background-image:
    linear-gradient(180deg, rgb(9 9 9 / 90%), rgb(9 9 9 / 70%) 40%, rgb(9 9 9 / 35%) 75%, var(--bg)),
    linear-gradient(90deg, rgb(9 9 9 / 35%), transparent 45%, rgb(9 9 9 / 70%)),
    url("../images/5269.jpg");
  background-position: center, center, 50% 42%;
  background-size: cover;
  background-repeat: no-repeat;
  pointer-events: none;
  content: "";
}

.contact-final .contact-intro h2 {
  margin: 0 0 24px;
  font-size: clamp(38px, 4vw, 56px);
  line-height: 1.14;
}

.contact-final .contact-intro > p {
  color: var(--muted);
  max-width: 40ch;
  margin: 0;
  font-size: 14px;
  line-height: 1.8;
}

.contact-direct {
  margin-top: 30px;
  padding: 24px;
  border: 1px solid var(--line);
  background: var(--panel);
}


.contact-direct h3,
.contact-form__intro h3 {
  margin: 0 0 16px;
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 500;
  line-height: 1.2;
}

.contact-direct__email {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 14px;
  padding-block: 8px;
  border-bottom: 1px solid var(--red);
  font-size: 14px;
  overflow-wrap: anywhere;
}

.contact-direct__email svg,
.contact-form__actions svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-direct__email svg {
  color: var(--red);
}

.contact-direct__email:hover {
  color: var(--red);
}

.contact-direct__note {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.75;
}

.contact-final .contact-intro > .contact-intro__locations {
  margin-top: 24px;
  font-size: 12px;
}

.form-field--full {
  grid-column: 1 / -1;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #827b77;
}

/* <----- ENQUIRY PANEL: stable field names for later backend integration -----> */
.contact-final .contact-form--panel {
  display: block;
  min-width: 0;
  padding: clamp(24px, 3vw, 32px);
  border: 1px solid var(--line);
  background: var(--panel);
}

.contact-preview-note {
  margin: 0;
  padding-left: 12px;
  border-left: 1px solid var(--red);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.75;
}

.contact-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  min-width: 0;
  gap: 18px;
  margin: 26px 0 0;
  padding: 0;
  border: 0;
}

.contact-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  margin: -1px;
  padding: 0;
  border: 0;
  clip-path: inset(50%);
  white-space: nowrap;
}

.contact-final .contact-form label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  color: #d1cbc6;
  text-transform: uppercase;
  min-width: 0;
  font-size: 10px;
  letter-spacing: 0.08em;
}

.contact-final .contact-form :is(input, select, textarea) {
  color: var(--text);
  width: 100%;
  border: 1px solid #393333;
  border-radius: 0;
  font-family: var(--font-body);
  min-height: 48px;
  padding: 12px;
  background: var(--bg);
  font-size: 16px;
  line-height: 1.5;
}

/* <----- TOPIC DROPDOWN: readable text and native arrow on the dark form -----> */
.contact-final .contact-form select {
  color-scheme: dark;
}

.contact-final .contact-form select:invalid {
  color: var(--muted);
}

.contact-final .contact-form select option {
  background: var(--bg);
  color: var(--text);
}

.contact-final .contact-form textarea {
  min-height: 155px;
  resize: vertical;
}

.contact-final .contact-form :is(input, select, textarea):focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

.contact-optional {
  color: var(--muted);
  font-size: 10px;
  text-transform: none;
}

.contact-final .contact-form .contact-consent {
  flex-direction: row;
  align-items: flex-start;
  gap: 10px;
  font-size: 12px;
  line-height: 1.7;
  letter-spacing: 0;
  text-transform: none;
}

.contact-final .contact-form input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-height: 0;
  flex: 0 0 18px;
  margin: 2px 0 0;
  padding: 0;
  accent-color: var(--red);
}

.contact-form__actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.contact-form__actions .button {
  min-width: 0;
  min-height: 50px;
  gap: 10px;
  padding: 12px;
  font-size: 9px;
  letter-spacing: 0.06em;
}

.contact-final .form-status {
  margin: 18px 0 0;
  color: var(--text);
  font-size: 12px;
  line-height: 1.75;
}

.contact-final .form-status:empty {
  display: none;
}

/* <----- 10. FOOTER: brand, useful section links, email, and locations -----> */
.site-footer.site-footer--expanded {
  border-top: 1px solid var(--line);
  display: block;
  padding: 0;
  background: var(--panel);
}

.footer-shell {
  max-width: var(--content-width);
  margin-inline: max(calc((100% - var(--content-width)) / 2), var(--page-gutter));
  padding-block: 48px 24px;
}

.footer-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr) minmax(0, 1fr);
  gap: 40px;
}

.footer-brand .wordmark {
  width: 80px;
}

.footer-brand > p {
  margin: 20px 0 8px;
  color: var(--text);
  font-family: var(--font-serif);
  font-size: 22px;
}

.footer-brand > .footer-brand__description {
  max-width: 30ch;
  margin: 0;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 12px;
  line-height: 1.8;
}

.footer-navigation h3,
.footer-contact h3 {
  margin: 0 0 14px;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-navigation a,
.footer-contact > a {
  display: flex;
  min-height: 38px;
  align-items: center;
  color: var(--text);
  font-size: 12px;
  overflow-wrap: anywhere;
}

/* <----- FOOTER CONTACT: matching SVG icons and aligned text columns -----> */
.footer-contact {
  min-width: 0;
}

.footer-contact > .footer-contact__email,
.footer-contact__locations {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  column-gap: 12px;
}

.footer-contact > .footer-contact__email {
  min-height: 44px;
  align-items: center;
}

.footer-contact__email > span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.footer-contact__icon {
  display: block;
  width: 18px;
  height: 18px;
  color: var(--red);
}

.footer-contact__locations {
  align-items: start;
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.9;
}

.footer-contact__locations > .footer-contact__icon {
  /* Align the pin with the first line of city text. */
  margin-top: 2px;
}

.footer-contact__cities {
  min-width: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow-wrap: anywhere;
}

.footer-navigation a:hover,
.footer-contact > a:hover,
.footer-back-top:hover {
  color: var(--red);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  margin-top: 32px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.footer-bottom small {
  color: var(--muted);
  font-size: 11px;
}

.footer-back-top {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 14px;
  font-size: 11px;
}

.footer-back-top span {
  color: var(--red);
}

/* <----- MOBILE CONTACT AND FOOTER: one-column form and comfortable controls -----> */
@media (max-width: 760px) {
  .contact-final {
    margin-inline: 22px;
  }

  .contact-final .contact-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
    margin-top: 26px;
  }

  /* Keep the photo above the form and fade its lower edge into the page. */
  .contact-final .contact-intro {
    min-height: 480px;
  }

  .contact-final .contact-intro::before {
    inset: -16px -18px 0;
    background-position: center, center, 50% 32%;
  }

  .contact-final .contact-intro h2 {
    font-size: clamp(34px, 8.8vw, 44px);
  }

  .contact-fields,
  .contact-form__actions {
    grid-template-columns: minmax(0, 1fr);
  }

  .contact-form__actions .button {
    font-size: 10px;
  }

  .footer-shell {
    margin-inline: 22px;
    padding-top: 40px;
  }

  .footer-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 20px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-navigation a {
    min-height: 44px;
  }
}

@media (max-width: 380px) {
  .footer-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* <----- 11. TABLET: adapt navigation, section spacing, and grids -----> */
@media (max-width: 900px) {
  :root {
    --page-gutter: 5vw;
    --section-space: 80px;
  }


  .hero__content {
    width: 88%;
  }

  .hero h1 {
    font-size: clamp(58px, 9vw, 86px);
  }

  .section {
    margin-inline: 5vw;
  }

  .casting__content {
    padding: 55px 35px;
  }



}

/* <----- 12. MOBILE: navigation drawer, stacked sections, and compact collage -----> */
@media (max-width: 650px) {
  :root {
    --header-height: 74px;
    --section-space: 70px;
  }

  .site-header {
    padding-inline: 22px;
  }

  /* <----- MOBILE LOGO: compact mark fits the 74px header beside the menu toggle -----> */
  .site-header .wordmark {
    width: 48px;
  }

  .hero {
    min-height: 650px;
    min-height: max(650px, calc(100svh - var(--header-height)));
    align-items: flex-end;
  }

  .hero__collage {
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: 1fr 1fr 1fr;
    gap: 3px;
    padding: 0 3px 3px;
  }

  .hero-photo--one {
    grid-column: 1;
    grid-row: 1 / 3;
  }

  .hero-photo--two {
    grid-column: 2;
    grid-row: 1;
  }

  .hero-photo--three {
    grid-column: 3;
    grid-row: 1 / 3;
  }

  .hero-photo--four {
    grid-column: 2;
    grid-row: 2 / 4;
  }

  .hero-photo--five {
    grid-column: 1;
    grid-row: 3;
  }

  .hero-photo--six {
    grid-column: 3;
    grid-row: 3;
  }

  .hero__shade {
    background: linear-gradient(0deg, rgb(9 9 9 / 97%) 0%, rgb(9 9 9 / 85%) 35%, rgb(9 9 9 / 36%) 75%, rgb(9 9 9 / 28%) 100%), linear-gradient(90deg, rgb(9 9 9 / 25%), transparent);
  }

  .hero__content {
    width: auto;
    margin: 0;
    padding: 80px 22px 110px;
  }

  .hero h1 {
    margin: 23px 0 18px;
    font-size: clamp(53px, 14vw, 76px);
  }

  .hero__description {
    max-width: 330px;
    font-size: 13px;
  }

  .hero__actions {
    gap: 8px;
  }

  .button {
    gap: 12px;
    padding: 12px 13px;
    font-size: 8px;
  }

  .hero__footer {
    padding: 13px 22px;
    font-size: 7px;
  }

  .hero__footer > a {
    white-space: nowrap;
  }

  .hero__footer > span {
    max-width: 65%;
  }


  .section {
    margin-inline: 22px;
  }

  .display-heading {
    font-size: 44px;
  }

  /* <----- ABOUT ON MOBILE: heading, compact portrait, then introduction -----> */
  .section--about {
    padding-block: 48px;
  }

  .section--about .about-grid {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    gap: 20px;
    margin-top: 24px;
  }

  /* Let the introduction's children share the mobile grid with the portrait. */
  .about-content {
    display: contents;
  }

  .about-copy__label {
    grid-row: 1;
    margin: 0;
  }

  .about-grid h2 {
    grid-row: 2;
    margin: 0;
    font-size: clamp(32px, 8.3vw, 40px);
    line-height: 1.12;
  }

  /* Crop with CSS only: the original image file remains unchanged. */
  .about-portrait {
    grid-row: 3;
    width: 100%;
    margin: 4px 0;
  }

  .about-portrait img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    object-position: 50% 42%;
  }

  .about-portrait figcaption {
    margin-top: 10px;
    font-size: 10px;
    letter-spacing: 0.03em;
  }

  .about-copy {
    grid-row: 4;
    max-width: none;
    font-size: 14px;
    line-height: 1.75;
  }

  .about-copy p:last-child {
    margin-bottom: 0;
  }

  .about-principles {
    grid-row: 5;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin: 0;
    padding-top: 18px;
    font-size: 12px;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .section-heading {
    display: block;
  }

  .section-heading p {
    margin-top: 0;
  }







  /* <----- GALLERY ON MOBILE: compact icons retain comfortable touch targets -----> */
  .gallery__controls {
    gap: 8px;
  }

  .gallery__controls .gallery__arrow {
    width: 46px;
    min-width: 46px;
    height: 46px;
    padding: 0;
    border-radius: 50%;
  }

  .gallery__control-label {
    display: none;
  }

  .section--portfolio .section-heading h2 {
    margin-bottom: 14px;
    font-size: clamp(38px, 10vw, 44px);
  }

  .section--portfolio .section-heading p {
    max-width: 32ch;
    margin-block: 0;
  }

  /* <----- GALLERY ON MOBILE: full-width stage and compact thumbnail strip -----> */
  .section--portfolio {
    margin-inline: 22px;
  }

  .gallery {
    margin-top: 24px;
  }

  .gallery__open {
    height: clamp(300px, 85vw, 440px);
  }

  .gallery__thumb {
    width: 72px;
    flex-basis: 72px;
  }

  .gallery__thumb img {
    height: 52px;
  }

  .gallery-lightbox {
    width: calc(100vw - 16px);
    max-height: calc(100dvh - 16px);
    padding: 12px;
  }

  .gallery-lightbox__image {
    height: 60dvh;
  }

  /* <----- MOBILE CASTING: heading, compact slideshow, then application details -----> */
  .casting {
    grid-template-columns: minmax(0, 1fr);
    padding: 40px 22px 48px;
  }

  /* Share the parent grid without changing the desktop HTML structure. */
  .casting__content {
    display: contents;
  }

  .casting__content > .section-label {
    grid-row: 1;
    margin: 0;
  }

  .casting__content > .accent-label {
    grid-row: 2;
    margin: 16px 0 0;
  }

  .casting__content h2 {
    grid-row: 3;
    margin: 14px 0 24px;
    font-size: clamp(36px, 9.4vw, 44px);
    line-height: 1.12;
  }

  .casting__content h2 em {
    font-size: 1.05em;
  }

  /* The photographs remain uncropped; all three share one stable frame. */
  .casting__slideshow {
    grid-row: 4;
    min-height: 0;
    margin: 0 0 26px;
    border: 1px solid var(--line);
  }

  .casting__slides {
    min-height: 0;
    height: clamp(260px, 78vw, 360px);
  }

  /* Centre the selectors and keep the count and playback control at the edges. */
  .casting__slide-controls {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    min-height: 60px;
    gap: 8px;
    padding: 8px 12px;
  }

  .casting__slide-count {
    min-width: 0;
    justify-self: start;
    font-size: 10px;
    letter-spacing: 0.04em;
  }

  .casting__slide-selectors {
    justify-self: center;
    gap: 0;
  }

  .casting__slide-selector {
    width: 44px;
    height: 44px;
  }

  .casting__slide-selector span {
    width: 18px;
  }

  .casting__playback {
    justify-self: end;
  }

  /* The two body paragraphs fill the rows after the slideshow. */
  .casting__content > p:not(.section-label, .accent-label, .casting__note) {
    max-width: none;
    margin: 0 0 16px;
    font-size: 14px;
    line-height: 1.8;
  }

  .casting .location-list {
    grid-row: 7;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 7px;
    margin: 8px 0 24px;
  }

  .casting .location-list li {
    padding: 8px 11px;
    font-size: 12px;
    line-height: 1.6;
  }

  .casting__content > .button {
    grid-row: 8;
    justify-self: stretch;
    min-height: 50px;
    gap: 16px;
    font-size: 10px;
  }

  .casting__content > .casting__note {
    grid-row: 9;
    max-width: none;
    margin: 16px 0 0;
    font-size: 11px;
    line-height: 1.75;
  }



}

/* <----- NARROW PHONES: retain 44px touch targets within the slideshow toolbar -----> */
@media (max-width: 380px) {
  .casting__playback {
    width: 44px;
    min-width: 44px;
    padding: 0;
  }

  .casting__playback-label {
    display: none;
  }
}

/* <----- 13. ACCESSIBILITY: reduce motion when requested by the visitor -----> */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}






/* <----- LARGE DESKTOPS: expand shared content while retaining readable gutters -----> */
@media (min-width: 1200px) {
  :root {
    --content-width: clamp(1160px, 84vw, 1520px);
  }
}
/* <----- DESKTOP PORTFOLIO AND CASTING: balanced frames for complete photographs -----> */
@media (min-width: 1001px) {
  /* Keep the gallery heading, frame, controls, and thumbnails on one alignment. */
  .section--portfolio {
    width: calc(100% - var(--page-gutter) - var(--page-gutter));
    max-width: 1120px;
    margin-inline: auto;
  }

  /* A narrower image column balances the slideshow with its accompanying copy. */
  .casting {
    width: calc(100% - var(--page-gutter) - var(--page-gutter));
    max-width: 1320px;
    margin-inline: auto;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    border-inline: 1px solid var(--line);
  }

  .casting__slideshow {
    min-height: 0;
  }

  .casting__slides {
    min-height: 0;
    height: clamp(520px, 36vw, 620px);
  }

  .casting__content {
    padding: 48px clamp(32px, 4vw, 64px);
  }
}
/* <----- DESKTOP ABOUT TRIAL: centred frame, wider portrait, and shorter divider -----> */
@media (min-width: 1001px) {
  .section--about {
    width: calc(100% - var(--page-gutter) - var(--page-gutter));
    max-width: 1160px;
    margin-inline: auto;
  }

  .section--about .about-grid {
    grid-template-columns: minmax(0, clamp(300px, 22vw, 340px)) minmax(0, 1fr);
    gap: clamp(40px, 5vw, 72px);
  }

  .section--about .about-principles {
    max-width: 510px;
  }
}
/* <----- SUBTLE INTERACTION POLISH: colour changes without image zoom -----> */
@media (prefers-reduced-motion: no-preference) {
  .main-nav a,
  .contact-direct__email,
  .footer-navigation a,
  .footer-contact > a,
  .footer-back-top,
  .opportunities__enquiry,
  .project-rates__enquiry,
  .working__enquiry,
  .interests__toggle {
    transition: color 180ms ease, border-color 180ms ease, background-color 180ms ease;
  }
}