/* Preserve page content, hero heights and the existing section order. */
:root { --grey-500: #696969; --grey-400: #707070; }
.section-label, footer .f-brand, footer .f-copy, footer .f-links a { color: #696969; }
.btn-gradient, .nav-cta-link, .mobile-overlay-cta a, .btn-blue {
  background: linear-gradient(135deg, #0866c6, #08739b) !important;
  color: #fff !important;
}
nav.scrolled .nav-links a { color: #626262; }
nav:not(.scrolled) .nav-links a { color: rgba(255,255,255,.85); }
.contact-grid, .contact-form-wrap .cf-row, .cta-inner-card .cf-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.contact-grid > *, .cf-row > *, .info-card > *, .info-text { min-width: 0; }
.info-text p, .info-text a { overflow-wrap: anywhere; }
.info-icon { flex-shrink: 0; }
.wpcf7-form input:not([type="submit"]), .wpcf7-form textarea, .wpcf7-form select { max-width: 100%; font-size: 16px; }
.cta-inner-card .wpcf7-form input:not([type="submit"]), .cta-inner-card .wpcf7-form textarea,
.contact-form-wrap .wpcf7-form input:not([type="submit"]), .contact-form-wrap .wpcf7-form textarea { font-size: 16px; }
.cta-inner-card .wpcf7-form label, .contact-form-wrap .wpcf7-form label { color: #626262; font-size: .75rem; }
.cta-inner-card .cf-note, .contact-form-wrap .cf-note, .info-text h4 { color: #626262; }
.cta-inner-card .wpcf7-form input::placeholder, .cta-inner-card .wpcf7-form textarea::placeholder,
.contact-form-wrap .wpcf7-form input::placeholder, .contact-form-wrap .wpcf7-form textarea::placeholder { color: #707070; opacity: 1; }
.cta-inner-card .cf-group > p, .contact-form-wrap .cf-group > p { margin: 0; max-width: none; }
.cf-group > p > label + br { display: none; }
.cf-submit > p { display: contents; }
.cf-submit .wpcf7-spinner:empty { display: none; }
.wpcf7-not-valid-tip { display: block; color: #a51b25; font-size: .875rem; line-height: 1.5; margin-top: .4rem; }
.wpcf7-response-output:not(:empty) { color: #333; background: #fff; padding: 1rem; border: 2px solid #777; border-radius: 10px; margin-top: 1rem; }
.wpcf7-form.sent .wpcf7-response-output { border-color: #287342; }
.wpcf7-form.invalid .wpcf7-response-output, .wpcf7-form.failed .wpcf7-response-output { border-color: #a51b25; }
.wpcf7 .screen-reader-response { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.dm-sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.menu-toggle { width: 44px; height: 44px; flex: 0 0 44px; }
.menu-toggle span { width: 28px; left: 8px; }
.menu-toggle span:nth-child(1) { top: 12px; }
.menu-toggle span:nth-child(3) { bottom: 12px; }
.menu-toggle.open span:nth-child(1) { top: 50%; }
.menu-toggle.open span:nth-child(3) { bottom: 50%; }
.mobile-overlay:not(.open), .lightbox:not(.open) { visibility: hidden; }
.mobile-overlay[hidden], .lightbox[hidden] { display: none !important; }
nav.menu-open { background: #141414 !important; }
nav.menu-open .nav-logo { color: #fff !important; }
.mobile-overlay { overflow-y: auto; padding: 88px 24px 100px; }
.mobile-overlay-links a { color: #c8c8c8; }
.mobile-overlay-footer span, .mobile-overlay-footer a { color: #c8c8c8; overflow-wrap: anywhere; }
.mobile-overlay-footer { padding: 0 24px; }
.cs-hero { padding-top: 96px; }
.cs-breadcrumb { overflow-wrap: anywhere; }
/* Set focal points only on portraits; preserve the existing landscape crops. */
img[data-dm-portrait] { object-position: 50% var(--dm-focal-y, 20%); }
.cs-hero-bg img[data-dm-portrait] { object-position: 50% 12%; }
.sv-gallery-item:has(img[data-dm-portrait]) img { object-position: 50% 15%; }
.cs-gallery-item img[data-dm-portrait] { object-position: 50% 15%; }
.sv-project-card img[data-dm-portrait], .p-item img[data-dm-portrait], .work-item img[data-dm-portrait] { object-position: 50% 15%; }

/* Portrait case studies: show the whole photograph instead of cropping it to a wide box.
   Add the --portrait classes in the page. In the hero, put a second copy of the photograph
   (class="cs-fill") after the first; the copy's backdrop fills the rest of the width.
   Set --portrait-ratio on the page if the photographs are not 2:3. */
.cs-gallery-grid--portrait { max-width: 960px; margin-inline: auto; }
.cs-gallery-grid--portrait .cs-gallery-item { aspect-ratio: var(--portrait-ratio, 2 / 3); }

.cs-hero-bg--portrait img { position: absolute; max-width: none; opacity: 1; }
/* The copy is enlarged from its top-left corner, so only the photograph's backdrop shows. */
.cs-hero-bg--portrait img.cs-fill {
  inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 0 0;
  transform: translate(-6%, -14%) scale(3.4); transform-origin: 0 0;
  filter: blur(8px) brightness(0.95); z-index: 0;
}
.cs-hero-bg--portrait img:not(.cs-fill) {
  top: 0; height: 100%; width: auto; aspect-ratio: var(--portrait-ratio, 2 / 3);
  right: max(clamp(1.5rem, 4vw, 3rem), calc((100% - 1180px) / 2));
  filter: brightness(0.95); z-index: 1;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 18%, #000 82%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 18%, #000 82%, transparent 100%);
}
.cs-hero-bg--portrait::before {
  content: ''; position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(90deg, rgba(10,10,10,0.62) 0%, rgba(10,10,10,0.35) 45%, rgba(10,10,10,0) 75%);
}
.cs-hero-bg--portrait::after { z-index: 2; }
/* Photographs on a white studio backdrop (add cs-portrait--light): the hero is dimmed
   all the way across so the white heading and menu stay readable. */
.cs-hero-bg--portrait.cs-portrait--light::before {
  background: linear-gradient(90deg, rgba(10,10,10,0.8) 0%, rgba(10,10,10,0.62) 45%, rgba(10,10,10,0.42) 100%);
}
@media (max-width: 1000px) {
  .cs-gallery-grid.cs-gallery-grid--portrait { grid-template-columns: repeat(3, 1fr); }
  .cs-hero-bg--portrait::before { background: rgba(10,10,10,0.5); }
  .cs-hero-bg--portrait.cs-portrait--light::before { background: rgba(10,10,10,0.62); }
}
@media (max-width: 700px) {
  .cs-gallery-grid.cs-gallery-grid--portrait { grid-template-columns: repeat(2, 1fr); }
  .cs-hero-bg--portrait img:not(.cs-fill) { left: 0; right: 0; margin-inline: auto; }
}

/* Mosaic gallery for landscape case studies. Twelve columns; every cell is 3:2 like the
   photographs, so nothing is cropped. The lead photograph is twice the size of the rest,
   and an upright photograph (--tall) stands beside it at full height. */
.cs-gallery-grid.cs-gallery-grid--mosaic { grid-template-columns: repeat(12, minmax(0, 1fr)); }
.cs-gallery-grid--mosaic .cs-gallery-item { grid-column: span 4; aspect-ratio: 3 / 2; }
.cs-gallery-grid--mosaic .cs-gallery-item--lead { grid-column: span 8; grid-row: span 2; }
.cs-gallery-grid--mosaic .cs-gallery-item--tall { grid-row: span 2; aspect-ratio: auto; }
.cs-gallery-grid--mosaic .cs-gallery-item--quarter { grid-column: span 3; }
.cs-gallery-grid--mosaic .cs-gallery-item--half { grid-column: span 6; }
.cs-gallery-grid--mosaic .cs-gallery-item--tall img[data-dm-portrait],
.cs-gallery-grid--mosaic .cs-gallery-item--tall img { object-position: 50% 50%; }
@media (max-width: 700px) {
  .cs-gallery-grid--mosaic .cs-gallery-item,
  .cs-gallery-grid--mosaic .cs-gallery-item--quarter { grid-column: span 6; }
  .cs-gallery-grid--mosaic .cs-gallery-item--lead,
  .cs-gallery-grid--mosaic .cs-gallery-item--end { grid-column: span 12; grid-row: auto; }
}
.lightbox { padding: 80px 72px; }
.lightbox img { max-width: 100%; max-height: calc(100dvh - 160px); }
.lightbox-close, .lightbox-nav { z-index: 3; background: #242424; border-color: #999; color: #fff; }
.lightbox-close svg, .lightbox-nav svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lightbox-counter { color: #ddd; }
.lightbox-img { touch-action: pan-y pinch-zoom; }
.cs-gallery-item:focus-visible, a:focus-visible, button:focus-visible,
.cs-meta-value a:focus-visible, .cs-breadcrumb a:focus-visible, .cs-back:focus-visible,
.cs-overview-text a:focus-visible, .sv-features p a:focus-visible {
  outline: 3px solid #0872c9 !important; outline-offset: 4px;
}
.lightbox button:focus-visible { outline-color: #fff !important; }
.filter-tab, .tg-filter { color: #626262; }
.tg-filter.active { background: #292929; color: #fff; }
.reveal { opacity: 1; transform: none; }
.dm-reveals .reveal:not(.visible) { opacity: 0; transform: translateY(20px); }
.dm-reveals .reveal.visible { opacity: 1; transform: none; }
.t-marquee-wrap { overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; cursor: auto; padding-bottom: 12px; }
.t-marquee-row { transform: none !important; transition: none !important; }
.t-marquee-row > * { scroll-snap-align: start; }
.dm-review-controls { display: flex; justify-content: flex-end; gap: 12px; margin-top: 12px; }
.dm-review-controls button { min-width: 44px; min-height: 44px; padding: 8px 14px; border: 1px solid #888; border-radius: 24px; color: #333; background: #fff; font: inherit; cursor: pointer; }
.dm-review-controls button:disabled { opacity: .45; cursor: default; }
@media (max-width: 1000px) {
  .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .bio-photo { position: relative; top: auto; }
}
@media (max-width: 700px) {
  .contact-form-wrap .cf-row, .cta-inner-card .cf-row { grid-template-columns: minmax(0, 1fr); }
  .contact-form-wrap { padding: 28px 20px; }
  .cta-card { padding-left: 12px; padding-right: 12px; }
  .cta-inner-card { padding: 28px 16px; }
  .cta-inner-card .wpcf7-form input:not([type="submit"]), .cta-inner-card .wpcf7-form textarea,
  .contact-form-wrap .wpcf7-form input:not([type="submit"]), .contact-form-wrap .wpcf7-form textarea { font-size: 16px; }
  .cta-inner-card .cf-submit input[type="submit"] { width: 100%; justify-content: center; }
  .contact-form-wrap .cf-submit { flex-direction: column; align-items: stretch; text-align: center; }
  .cs-hero { padding-top: 92px; }
  .cs-hero-bg img[data-dm-portrait] { object-position: 50% 20%; }
  .lightbox { padding: 80px 12px 96px; }
  .lightbox img { max-height: calc(100dvh - 176px); }
  .lightbox-prev, .lightbox-next { top: auto; bottom: 24px; transform: none; }
  .lightbox-prev { left: 24px; } .lightbox-next { right: 24px; }
  .lightbox-counter { bottom: 38px; }
  .filter-inner { flex-wrap: wrap; overflow: visible; }
}
@media (max-height: 500px) {
  .mobile-overlay { justify-content: flex-start; padding-top: 72px; padding-bottom: 24px; }
  .mobile-overlay-links { gap: 0; margin-bottom: 12px; }
  .mobile-overlay-links a { font-size: 1.3rem; }
  .mobile-overlay-footer { position: static; margin-top: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal, .dm-reveals .reveal:not(.visible) { opacity: 1; transform: none; }
  .marquee-track { flex-wrap: wrap; justify-content: center; }
  .marquee-track .marquee-item:nth-child(n+9) { display: none; }
}

@media (max-width: 700px) {

  /* Separate captions from photographs so long project names have room. */
  .sv-projects-header { margin-bottom: 2rem; }
  .sv-projects-grid { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
  .sv-project-card { aspect-ratio: auto; display: flex; flex-direction: column; background: #f5f5f5; border: 1px solid #e5e5e5; }
  .sv-project-card img { display: block; width: 100%; height: auto; aspect-ratio: 3/2; flex: none; }
  .sv-project-card:hover img { transform: none; }
  .sv-project-card-overlay, .sv-project-card:hover .sv-project-card-overlay { position: static; inset: auto; padding: 1.125rem; background: none; }
  .sv-project-card-title { color: #141414; font-size: 1.125rem; line-height: 1.35; margin-bottom: .375rem; }
  .sv-project-card-meta { color: #626262; line-height: 1.5; }

  
}

/* 1.3.2: give the long email address the full mobile card width. */
@media (max-width: 700px) {
  .contact-info .info-card[href^="mailto:"] {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr);
    gap: .75rem;
    padding: 1.25rem 1rem;
  }
  .contact-info .info-card[href^="mailto:"] .info-icon { width: 32px; height: 32px; border-radius: 10px; }
  .contact-info .info-card[href^="mailto:"] .info-icon svg { width: 20px; height: 20px; }
  .contact-info .info-card[href^="mailto:"] .info-text { display: contents; }
  .contact-info .info-card[href^="mailto:"] h4 { margin: 0; }
  .contact-info .info-card[href^="mailto:"] p { grid-column: 1 / -1; font-size: clamp(.8125rem, 3.6vw, .95rem); }
}

@media (max-width: 360px) {
  .contact-info .info-card[href^="mailto:"] { padding-left: .5rem; padding-right: .5rem; }
  .contact-info .info-card[href^="mailto:"] .info-icon { margin-left: .5rem; }
  .contact-info .info-card[href^="mailto:"] h4 { margin-left: .5rem; }
  .contact-info .info-card[href^="mailto:"] p { text-align: center; }
}

/* 1.3.3: enquiry section as photograph + form, side by side.
   The photograph is shown at full brightness with the heading over it; the form sits on white.
   Fields are filled light grey without a visible border. */
.cta-card.cta-split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  min-height: 640px;
  padding: 0;
  text-align: left;
  background: #fff;
  color: #141414;
  border: 1px solid #e0e0e0;
}
.cta-split .cta-photo {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(1.5rem, 3.5vw, 2.75rem);
  background: #141414;
  color: #fff;
}
.cta-split .cta-card-bg img { opacity: 1; object-position: 50% 30%; }
.cta-split .cta-card-bg img[data-dm-portrait] { object-position: 50% var(--dm-focal-y, 20%); }
.cta-split .cta-card-bg::after {
  background: linear-gradient(to top, rgba(10,10,10,.94) 0%, rgba(10,10,10,.78) 30%, rgba(10,10,10,0) 70%);
}
.cta-split .cta-photo-text { position: relative; z-index: 1; }
.cta-split .cta-photo-text h2 {
  font-size: clamp(1.9rem, 3.3vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.08;
  text-wrap: balance;
  margin: 0 0 .75rem;
  color: #fff;
}
.cta-split .cta-photo-text p {
  max-width: 38ch;
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
  text-wrap: balance;
  color: rgba(255,255,255,.88);
}
.cta-split .cta-inner-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: none;
  margin: 0;
  padding: clamp(1.5rem, 4vw, 3.25rem);
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  text-align: left;
}
.cta-split .cta-inner-card .wpcf7-form { max-width: none; margin: 0; }
.cta-split .cta-inner-card .cf-row { gap: 1rem; }
.cta-split .cta-inner-card .cf-group { margin-bottom: 1rem; }
.cta-split .cta-inner-card .wpcf7-form label {
  font-size: .875rem;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.3;
  text-transform: none;
  color: #333;
  margin-bottom: .4rem;
}
/* Required and optional markers are drawn here, so label text stays clean for screen readers and form notifications.
   Standard forms star the required fields; the enquiry section tags the optional one instead. */
.wpcf7-form .cf-group:not(.cf-optional) label::after { content: " *"; color: var(--blue); font-weight: 400; }
.cta-split .wpcf7-form .cf-group:not(.cf-optional) label::after { content: none; }
.cta-split .wpcf7-form .cf-optional label::after {
  content: "optional";
  float: right;
  font-size: .8125rem;
  font-weight: 400;
  color: #626262;
}
.cta-split .cta-inner-card .wpcf7-form input:not([type="submit"]),
.cta-split .cta-inner-card .wpcf7-form textarea {
  padding: .8rem .9rem;
  border: 1.5px solid transparent;
  border-radius: 10px;
  background: #efefef;
  color: #141414;
  transition: background-color .2s, border-color .2s, box-shadow .2s;
}
.cta-split .cta-inner-card .wpcf7-form textarea { height: 7.5rem; min-height: 7.5rem; }
.cta-split .cta-inner-card .wpcf7-form input::placeholder,
.cta-split .cta-inner-card .wpcf7-form textarea::placeholder { color: #666; opacity: 1; }
.cta-split .cta-inner-card .wpcf7-form input:not([type="submit"]):hover,
.cta-split .cta-inner-card .wpcf7-form textarea:hover { background: #e6e6e6; }
.cta-split .cta-inner-card .wpcf7-form input.wpcf7-not-valid:not([type="submit"]),
.cta-split .cta-inner-card .wpcf7-form textarea.wpcf7-not-valid { border-color: #a51b25; }
.cta-split .cta-inner-card .wpcf7-form input:not([type="submit"]):focus,
.cta-split .cta-inner-card .wpcf7-form textarea:focus {
  background: #fff;
  border-color: #0872c9;
  box-shadow: 0 0 0 3px rgba(8,114,201,.28);
}
.cta-split .cta-inner-card .cf-submit {
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: .75rem 1.25rem;
  margin-top: 1.5rem;
}
.cta-split .cta-inner-card .cf-submit input[type="submit"] { min-height: 48px; font-size: .95rem; }
.cta-split .cta-inner-card .cf-note { font-size: .875rem; }
.cta-split .cta-inner-card .cta-direct {
  max-width: none;
  margin: 1.75rem 0 0;
  padding-top: 1.25rem;
  border-top: 1px solid #e0e0e0;
  font-size: .9rem;
  line-height: 1.5;
  color: #626262;
}
.cta-split .cta-direct a { color: #141414; font-weight: 600; overflow-wrap: anywhere; text-underline-offset: 3px; }

@media (max-width: 860px) {
  .cta-card.cta-split { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .cta-split .cta-photo { min-height: 340px; }
  .cta-split .cta-card-bg::after {
    background: linear-gradient(to top, rgba(10,10,10,.94) 0%, rgba(10,10,10,.8) 45%, rgba(10,10,10,.1) 95%);
  }
}
@media (max-width: 700px) {
  .cta-card.cta-split { padding: 0; }
  .cta-split .cta-inner-card { padding: 1.5rem 1.25rem; }
  .cta-split .cta-inner-card .cf-row { gap: 0; }
  .cta-split .cta-inner-card .cf-submit { flex-direction: column; align-items: stretch; text-align: center; }
}

/* Static site: enquiry form sending state. */
.wpcf7-form.submitting .wpcf7-submit { opacity: .6; cursor: progress; }
