/* Local editorial draft. Original opening and native identity motion are retained. */
:root {
  --draft-control-time: 180ms;
  --draft-picture-time: 460ms;
  --draft-rule: #41483b;
}

/* Desktop section boundaries meet the sticky header. Phone reference offsets stay intact. */
@media (min-width: 1025px), (min-width: 761px) and (pointer: fine) {
  html { scroll-padding-top: var(--site-header-height, 108px); }
  #work, #services, #process, #studio, #contact { scroll-margin-top: 0; }
}
@media (min-width: 1100px) {
  /* Studio shares the Services row, whose existing top padding is 80px. */
  #studio { scroll-margin-top: 80px; }
}

/* A persistent, semantic marker also follows manual scrolling. */
.site-nav > a[aria-current="location"]::after {
  width: 100%;
  height: 2px;
  background: #66774f;
}
.site-nav > a:focus-visible::after { width: 100%; }
.nav-contact, .header-brief {
  transition: background-color var(--draft-control-time), color var(--draft-control-time);
}

/* Film index: stronger editorial hierarchy, the same four approved 16:10 frames. */
.work-gallery-section .section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(240px, .7fr);
  align-items: end;
  gap: 48px;
}
.work-gallery-section .section-heading h2 {
  font-size: clamp(58px, 5.9vw, 88px);
  line-height: 1.02;
  letter-spacing: -.035em;
}
.work-gallery-section .section-heading > p {
  margin: 0;
  padding-bottom: 4px;
  max-width: 310px;
  font-size: clamp(20px, 1.7vw, 25px);
  line-height: 1.4;
}
.work-gallery-section .section-label,
.services-section .section-label,
.process-section .section-label,
.contact-section .section-label {
  font-size: 11px;
  letter-spacing: .14em;
}
.work-gallery-section .work-grid { gap: 52px 28px; }
.work-gallery-section .work-meta { gap: 20px; padding-top: 20px; }
.work-gallery-section .work-meta .film-category {
  font-size: 11px;
  letter-spacing: .075em;
  color: #c2cbb9;
  margin-bottom: 9px;
}
.work-gallery-section .work-meta h3 { font-size: clamp(28px, 2.65vw, 38px); }
.work-gallery-section .work-meta h3 button { min-height: 44px; }
.work-gallery-section .work-meta p:not(.film-category) {
  color: #bec5b8;
  font-size: 14px;
  line-height: 1.55;
  margin-top: 5px;
}
.work-gallery-section .work-duration { font-size: 13px; margin-top: 29px; }
.work-gallery-section .work-footnote {
  max-width: 850px;
  font-size: 12px;
  line-height: 1.65;
  color: #bec5b8;
  border-color: var(--draft-rule);
}
.work-gallery-section .image-action {
  width: 56px;
  height: 56px;
  background: #161916b8;
  border-color: #ffffffb0;
  transition: background-color var(--draft-control-time), color var(--draft-control-time);
}
.work-gallery-section .image-action svg { fill: currentColor; }
.work-gallery-section .work-image > img { transition: transform var(--draft-picture-time) ease-out; }
.work-gallery-section .work-image:focus-visible { outline-offset: 5px; }
.work-gallery-section .work-image:focus-visible .image-action {
  background: var(--accent);
  color: var(--ink);
  border-color: var(--accent);
}

/* One visual response per control, with keyboard parity and no hidden content. */
.service-row { transition: background-color var(--draft-control-time); }
.service-enquire {
  min-width: 44px;
  min-height: 44px;
  transition: background-color var(--draft-control-time), border-color var(--draft-control-time);
}
.service-enquire .arrow { transition: transform var(--draft-control-time); }
.service-row:focus-within { background: #c1cbb51f; }
.service-enquire:focus-visible { background: #c1cbb5; border-color: #687c51; }
.process-story-copy > p:not(.film-category) { font-size: 16px; line-height: 1.65; }
.process-story-copy .text-link { min-height: 44px; font-size: 14px; }

@media (min-width: 761px) {
  .services-studio-pair .service-row p { font-size: 15px; line-height: 1.65; }
  .services-studio-pair .service-row { grid-template-columns: minmax(0, .9fr) minmax(0, 1fr) 44px; }
}

@media (hover: hover) and (pointer: fine) {
  .work-gallery-section .work-image:hover > img { transform: scale(1.018); }
  .work-gallery-section .work-image:hover .image-action {
    background: var(--accent);
    color: var(--ink);
    border-color: var(--accent);
  }
  .service-row:hover { background: #c1cbb51f; }
  .service-enquire:hover { background: #c1cbb5; border-color: #687c51; }
  .service-enquire:hover .arrow { transform: translate(2px, -2px); }
}

@media (max-width: 900px) {
  .site-header .site-nav { padding-top: 12px; padding-bottom: 18px; box-shadow: 0 16px 28px #171c1414; }
  .site-header .site-nav > a { min-height: 48px; display: flex; align-items: center; padding-block: 12px; }
  .site-header .site-nav > a::after { bottom: 7px; }
  .site-header .site-nav > a[aria-current="location"] { font-weight: 650; }
  .site-header .site-nav > a[aria-current="location"]::after { width: 32px; }
  .brand { min-width: 44px; min-height: 44px; }
  .menu-toggle { min-width: 66px; min-height: 48px; }
}

@media (max-width: 760px) {
  .work-gallery-section .section-heading { display: block; }
  .work-gallery-section .section-heading h2 { font-size: clamp(40px, 11.55vw, 68px); line-height: 1.07; }
  .work-gallery-section .section-heading > p { margin-top: 20px; max-width: 350px; font-size: 18px; line-height: 1.5; }
  .work-gallery-section .work-grid { gap: 42px; }
  .work-gallery-section .work-meta { gap: 12px; padding-top: 14px; }
  .work-gallery-section .work-meta h3 { font-size: clamp(27px, 7.4vw, 38px); }
  .work-gallery-section .work-meta .film-category { font-size: 10px; letter-spacing: .06em; }
  .work-gallery-section .work-meta p:not(.film-category) { font-size: 13px; }
  .work-gallery-section .work-duration { font-size: 12px; margin-top: 30px; }
  .work-gallery-section .image-action { width: 48px; height: 48px; right: 16px; bottom: 16px; }
  .services-studio-pair .service-row { grid-template-columns: minmax(0, 1fr) 44px; gap: 16px 12px; }
  .services-studio-pair .service-row h3 { grid-column: 1; font-size: clamp(27px, 7.4vw, 38px); }
  .services-studio-pair .service-row p { grid-column: 1 / -1; grid-row: 2; max-width: 100%; font-size: 14px; line-height: 1.65; }
  .services-studio-pair .service-enquire { grid-column: 2; grid-row: 1; width: 44px; height: 44px; margin: 0; }
  .services-studio-pair .service-enquire .arrow { width: 20px; height: 20px; }
  .process-story-copy > p:not(.film-category) { font-size: 14px; }
  .dialog-tabs button { min-height: 44px; }
  .dialog-close { min-width: 72px; min-height: 44px; }
  .brief-form-help, .brief-copy-status { font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .work-gallery-section .work-image > img,
  .work-gallery-section .image-action,
  .service-enquire, .service-enquire .arrow,
  .service-row, .nav-contact, .header-brief { transition: none; }
  .work-gallery-section .work-image:hover > img,
  .service-enquire:hover .arrow { transform: none; }
}
