/* ==========================================================================
   Double Dot — rebuilt from the WordPress (Snapster/Elementor) site
   ========================================================================== */

:root {
  --ink: #111111;
  --text: rgba(17, 17, 17, 0.7);
  --muted: #8e8f9a;
  --nav: #414141;
  --nav-active: #000000;
  --nav-bar: #464646;
  --filter: #525252;
  --social: #69727d;
  --footer-bg: #d5dcde;
  --field-bg: #e9e9e9;

  --font-serif: "Playfair Display", Georgia, serif;
  --font-sans: "Mulish", "Muli", Arial, sans-serif;
  --font-ui: "Roboto", Arial, sans-serif;

  --header-h: 92px;
  --gutter: 65px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: #fff;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.86;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-serif);
  font-weight: 400;
}

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

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

/* ---------- Header ---------- */

.site-header {
  position: relative;
  z-index: 50;
  height: var(--header-h);
  background: #fafafa url("../img/white-watercolor-paper-background-texture.jpg") center / cover;
}

.site-header__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  /* nav and social icons sit on the logo's bottom line */
  align-items: end;
  height: 100%;
  padding: 0 40px 18px;
}

.header-social {
  display: flex;
  gap: 30px;
  align-items: center;
}

.header-social a {
  display: inline-flex;
  width: 15px;
  height: 15px;
  color: var(--social);
  transition: color .2s;
}

.header-social a:hover { color: var(--ink); }
.header-social svg { width: 100%; height: 100%; fill: currentColor; }

.site-logo { display: block; }
.site-logo img { width: 104px; height: auto; }

.main-nav {
  justify-self: end;
  display: flex;
  align-items: center;
  /* drop the text baseline (not its line box) onto the logo's bottom */
  margin-bottom: -4px;
}

.main-nav ul {
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
}

.main-nav a {
  position: relative;
  display: block;
  padding: 0 20px;
  color: var(--nav);
  font-family: var(--font-ui);
  font-size: 16px;
  font-weight: 500;
  line-height: 20px;
  transition: color .3s;
}

/* the current page gets a small dot to the left of its label */
.main-nav a::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 50%;
  width: 6px;
  height: 6px;
  margin-top: -3px;
  border-radius: 50%;
  background: var(--nav-active);
  opacity: 0;
  transform: scale(0);
  transition: opacity .3s, transform .3s;
}

.main-nav a:hover { color: var(--nav-active); }

.main-nav a[aria-current="page"] {
  color: var(--nav-active);
  font-weight: 700;
}

.main-nav a:hover::after {
  opacity: .35;
  transform: scale(1);
}

.main-nav a[aria-current="page"]::after {
  opacity: 1;
  transform: scale(1);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
}

.nav-toggle svg { width: 22px; height: 22px; fill: currentColor; }

/* ---------- Page heading ---------- */

.page-heading {
  padding-top: 20px;
  text-align: center;
}

.page-heading h1,
.section-title {
  font-size: 45px;
  line-height: 1.13;
}

.page-heading p {
  max-width: 660px;
  margin: 20px auto 0;
}

/* ---------- Hero slider ---------- */

.hero {
  position: relative;
  /* fill exactly what is left of the first screen under the header */
  height: calc(100vh - var(--header-h));
  height: calc(100svh - var(--header-h));
  min-height: 460px;
  max-height: 1000px;
  overflow: hidden;
  background: #222;
  color: #fff;
  --band-h: 269px;
  --band-top: calc(50% - var(--band-h) / 2);
}

.hero__slice {
  position: absolute;
  left: 0;
  right: 0;
  overflow: hidden;
}

.hero__slice--top { top: 0; height: var(--band-top); }
.hero__slice--mid { top: var(--band-top); height: var(--band-h); }
.hero__slice--bot { top: calc(var(--band-top) + var(--band-h)); bottom: 0; }

/* every slice holds a full-size frame so the three pieces line up */
.hero__frame {
  position: absolute;
  left: 0;
  right: 0;
  height: var(--hero-h, 100vh);
}

.hero__slice--top .hero__frame { top: 0; }
.hero__slice--mid .hero__frame { top: calc(var(--band-top) * -1); }
.hero__slice--bot .hero__frame { top: calc((var(--band-top) + var(--band-h)) * -1); }

.hero__frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  clip-path: inset(0 0 0 0);
  transform: scale(1.04);
  transition: transform 8s linear;
}

.hero__frame img.is-active {
  opacity: 1;
  z-index: 1;
  transform: scale(1);
}

.hero__frame img.is-entering {
  opacity: 1;
  z-index: 2;
  animation: slice-in-next 1.1s cubic-bezier(.77, 0, .18, 1) both;
}

.hero.is-reverse .hero__frame img.is-entering { animation-name: slice-in-prev; }

.hero__slice--top img.is-entering,
.hero__slice--bot img.is-entering { animation-delay: .14s; }

@keyframes slice-in-next {
  from { clip-path: inset(0 0 0 100%); }
  to   { clip-path: inset(0 0 0 0); }
}

@keyframes slice-in-prev {
  from { clip-path: inset(0 100% 0 0); }
  to   { clip-path: inset(0 0 0 0); }
}

.hero::after {
  /* the thin frame lines around the middle band */
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: var(--band-top);
  height: var(--band-h);
  border-top: 1px solid rgba(255, 255, 255, .3);
  border-bottom: 1px solid rgba(255, 255, 255, .3);
  pointer-events: none;
  z-index: 3;
}

.hero__content {
  position: absolute;
  left: 105px;
  right: 105px;
  top: var(--band-top);
  height: var(--band-h);
  z-index: 4;
  display: grid;
  place-items: center;
  text-align: center;
}

.hero__text {
  grid-area: 1 / 1;
  opacity: 0;
  visibility: hidden;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .8s ease, visibility 0s .8s;
}

.hero__text.is-active {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity .8s ease .45s, transform .9s ease .45s, visibility 0s;
}

.hero__title {
  margin: 0 0 6px;
  color: #fff;
  font-family: var(--font-serif);
  font-size: 70px;
  line-height: 1.22;
  font-weight: 400;
}

.btn-outline-light {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 200px;
  height: 56px;
  padding: 0 30px;
  border: 1px solid rgba(255, 255, 255, .6);
  color: #fff;
  font-size: 11px;
  letter-spacing: 2.8px;
  text-transform: uppercase;
  transition: background .3s, color .3s;
}

.btn-outline-light:hover { background: #fff; color: var(--ink); }

.hero__arrow {
  position: absolute;
  top: var(--band-top);
  height: var(--band-h);
  width: 45px;
  z-index: 5;
  border: 0;
  background: #fff;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 2.8px;
  transition: width .3s;
}

.hero__arrow span {
  display: inline-block;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.hero__arrow--next span { transform: none; }
.hero__arrow--prev { left: 0; }
.hero__arrow--next { right: 0; }
.hero__arrow:hover { width: 55px; }

.hero__pager {
  position: absolute;
  left: 40px;
  bottom: 42px;
  z-index: 5;
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hero__pager li { display: flex; align-items: center; }

.hero__pager li + li::before {
  content: "";
  width: 17px;
  height: 1px;
  margin: 0 8px;
  background: rgba(255, 255, 255, .8);
}

.hero__pager button {
  width: 35px;
  height: 21px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 1px;
  transition: background .3s, color .3s;
}

.hero__pager button[aria-current="true"] { background: #fff; color: var(--ink); }

/* "scroll down" cue: a faint line at the bottom centre with a bright
   segment that keeps running down it */
.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 0;
  z-index: 5;
  width: 31px;
  height: 90px;
  margin-left: -15px;
  overflow: hidden;
}

.hero__scroll::before,
.hero__scroll::after {
  content: "";
  position: absolute;
  left: 14px;
  width: 2px;
  border-radius: 1px;
}

.hero__scroll::before {
  top: 0;
  bottom: 0;
  background: rgba(255, 255, 255, .45);
}

.hero__scroll::after {
  top: 0;
  height: 36px;
  background: #fff;
  animation: scroll-cue 2.2s cubic-bezier(.65, 0, .35, 1) infinite;
}

.hero__scroll:hover::before { background: rgba(255, 255, 255, .6); }
.hero__scroll:focus-visible { outline: 1px solid #fff; outline-offset: 2px; }

@keyframes scroll-cue {
  0%   { transform: translateY(-36px); opacity: 0; }
  25%  { opacity: 1; }
  80%  { opacity: 1; }
  100% { transform: translateY(90px); opacity: 0; }
}

/* ---------- Gallery ---------- */

.portfolio-section { padding: 128px 0 0; }
.portfolio-section .section-title { text-align: center; }
.portfolio-section--page { padding: 40px 0 0; }
.container--wide { max-width: none; padding: 0 30px; }

.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 10px;
  margin: 8px 0 20px;
  padding: 0;
  list-style: none;
}

.gallery-filters button {
  position: relative;
  padding: 7px 14px 7px 18px;
  border: 0;
  background: transparent;
  color: var(--filter);
  font-family: var(--font-ui);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.86;
  transition: color .3s;
}

/* same marker as the main menu: a small dot left of the selected label */
.gallery-filters button::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 50%;
  width: 6px;
  height: 6px;
  margin-top: -3px;
  border-radius: 50%;
  background: #000;
  opacity: 0;
  transform: scale(0);
  transition: opacity .3s, transform .3s;
}

.gallery-filters button:hover { color: #000; }

.gallery-filters button[aria-pressed="true"] {
  color: #000;
  font-weight: 700;
}

.gallery-filters button:hover::before {
  opacity: .35;
  transform: scale(1);
}

.gallery-filters button[aria-pressed="true"]::before {
  opacity: 1;
  transform: scale(1);
}

.gallery {
  position: relative;
  transition: height .35s ease;
}

.gallery__item {
  position: absolute;
  display: block;
  overflow: hidden;
  background: #eee;
  cursor: zoom-in;
  transition: opacity .35s ease, transform .35s ease;
}

.gallery__item.is-hidden {
  opacity: 0;
  transform: scale(.94);
  pointer-events: none;
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.08);
  transition: transform .8s cubic-bezier(.2, .7, .2, 1);
}

.gallery__item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .28);
  opacity: 0;
  transition: opacity .4s;
}

.gallery__item:hover img,
.gallery__item:focus-visible img { transform: scale(1); }

.gallery__item:hover::after,
.gallery__item:focus-visible::after { opacity: 1; }

.gallery__item:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

/* ---------- Clients strip ---------- */

.clients { padding: 20px 0 0; }

.clients__rule {
  height: 1px;
  margin: 0 0 26px;
  border: 0;
  background: rgba(17, 17, 17, .35);
}

.clients__label {
  margin: 0;
  text-align: center;
}

.logo-track {
  overflow: hidden;
  padding: 78px 0 0;
}

.logo-track__rail {
  display: flex;
  align-items: center;
  gap: 55px;
  transition: transform 1s ease;
}

.logo-track__rail img {
  flex: 0 0 calc((100% - 55px * 7) / 8);
  width: calc((100% - 55px * 7) / 8);
  max-height: 58px;
  object-fit: contain;
}

/* ---------- About ---------- */

.team {
  padding: 140px 0 180px;
}

.team__row {
  display: grid;
  grid-template-columns: 316px minmax(0, 574px);
  justify-content: center;
  align-items: center;
  max-width: 1000px;
  margin: 0 auto;
}

.team__row + .team__row { margin-top: 150px; }

.member-card { width: 150px; justify-self: start; margin-left: 32px; }

.member-card__media {
  position: relative;
  overflow: hidden;
}

.member-card__media img {
  width: 100%;
  aspect-ratio: 150 / 203;
  object-fit: cover;
}

.member-card__social {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 24%;
  width: 47%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #fff;
  clip-path: inset(100% 0 0 0);
  transition: clip-path .45s cubic-bezier(.6, 0, .2, 1);
}

.member-card:hover .member-card__social,
.member-card:focus-within .member-card__social { clip-path: inset(0 0 0 0); }

.member-card__social a {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 47px;
  color: var(--ink);
}

.member-card__social svg { width: 18px; height: 18px; fill: currentColor; }
.member-card__social a:hover { color: var(--muted); }

.member-card h3 {
  margin-top: 10px;
  font-size: 20px;
  line-height: 1.35;
}

.member-card p {
  margin: 0;
  color: #54595f;
  line-height: 2.1;
}

.member-bio { text-align: center; }

.member-bio h2 {
  font-size: 45px;
  line-height: 1.13;
}

.member-bio .member-bio__role { margin: 20px 0 15px; }
.member-bio p { margin: 0; }

/* ---------- Contact ---------- */

.contact {
  padding: 50px 0 30px;
}

.contact-form {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
}

.field { margin: 0 0 22px; }

.field label {
  display: block;
  margin: 0 0 8px;
  color: var(--text);
}

.field input,
.field textarea {
  display: block;
  width: 100%;
  height: 58px;
  margin: 0;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 0;
  background: var(--field-bg);
  color: var(--ink);
  font: inherit;
  transition: border-color .2s, background .2s;
  -webkit-appearance: none;
  appearance: none;
}

.field textarea {
  height: 200px;
  padding: 16px 20px;
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  outline: 0;
  border-color: var(--ink);
  background: #fff;
}

.field.has-error input,
.field.has-error textarea { border-color: #b3261e; }

.field__error {
  display: none;
  margin-top: 6px;
  color: #b3261e;
  font-size: 12px;
}

.field.has-error .field__error { display: block; }

.contact-form__actions {
  display: flex;
  justify-content: center;
  margin-top: 30px;
}

.btn-outline-dark {
  min-width: 140px;
  height: 56px;
  padding: 0 34px;
  border: 1px solid var(--ink);
  background: #fff;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 2.8px;
  text-transform: uppercase;
  transition: background .3s, color .3s;
}

.btn-outline-dark:hover:not(:disabled) { background: var(--ink); color: #fff; }
.btn-outline-dark:disabled { opacity: .5; cursor: default; }

.form-status {
  min-height: 26px;
  margin: 16px 0 0;
  text-align: center;
}

.form-status.is-success { color: #1e7a3c; }
.form-status.is-error { color: #b3261e; }

/* image carousel below the form */
.photo-carousel {
  position: relative;
  margin: 30px 0 0;
  overflow: hidden;
}

.photo-carousel__rail {
  display: flex;
  gap: 10px;
  transition: transform .8s ease;
}

.photo-carousel__slide {
  flex: 0 0 calc((100% - 20px) / 3);
  height: 200px;
  padding: 0;
  border: 0;
  background: #eee;
  cursor: zoom-in;
}

.photo-carousel__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-carousel__arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 40px;
  height: 40px;
  margin-top: -20px;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(237, 237, 237, .9);
}

.photo-carousel__arrow svg { width: 20px; height: 20px; fill: currentColor; }
.photo-carousel__arrow--prev { left: 0; }
.photo-carousel__arrow--next { right: 0; }

/* ---------- Footer ---------- */

.site-footer {
  margin-top: 30px;
  padding: 66px 20px 64px;
  background: var(--footer-bg);
  text-align: center;
}

.site-footer__logo { display: inline-block; }
.site-footer__logo img { width: 54px; height: auto; }

.footer-social {
  display: flex;
  justify-content: center;
  gap: 36px;
  margin: 22px 0 20px;
}

.footer-social a {
  display: inline-flex;
  color: var(--ink);
  transition: opacity .2s;
}

.footer-social a:hover { opacity: .55; }
.footer-social svg { width: 12px; height: 12px; fill: currentColor; }

.site-footer__copy {
  margin: 0;
  color: var(--muted);
  font-family: var(--font-serif);
  font-size: 11px;
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: 3.3px;
  text-transform: uppercase;
}

/* ==========================================================================
   Lightbox with filmstrip
   ========================================================================== */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  grid-template-rows: 56px minmax(0, 1fr) auto;
  background: #0c0c0c;
  color: #e8e8e8;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease, visibility 0s .3s;
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity .3s ease;
}

.lightbox__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px 0 24px;
}

.lightbox__counter {
  font-size: 11px;
  letter-spacing: 2.8px;
  color: #a9a9a9;
}

.lightbox__counter strong { color: #fff; font-weight: 400; }

.lightbox__tools { display: flex; gap: 4px; }

.lightbox__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #d6d6d6;
  transition: background .2s, color .2s;
}

.lightbox__btn:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.lightbox__btn:focus-visible { outline: 2px solid #fff; outline-offset: -2px; }
.lightbox__btn svg { width: 22px; height: 22px; fill: currentColor; }

.lightbox__stage {
  position: relative;
  display: flex;
  justify-content: center;
  min-height: 0;
  padding: 0 80px 10px;
  touch-action: pan-y;
}

/* caption on top, photo fills the rest */
.lightbox__figure {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  justify-items: center;
  width: 100%;
  min-height: 0;
  margin: 0;
}

.lightbox__caption {
  max-width: 720px;
  padding: 0 0 16px;
  text-align: center;
  transition: opacity .35s ease;
}

.lightbox__caption:empty { padding: 0; }

.lightbox__place {
  display: block;
  margin-bottom: 4px;
  color: #9a9a9a;
  font-size: 11px;
  letter-spacing: 2.8px;
  text-transform: uppercase;
}

.lightbox__title {
  display: block;
  color: #fff;
  font-family: var(--font-serif);
  font-size: 22px;
  line-height: 1.3;
}

.lightbox__frame {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 0;
}

.lightbox__img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
  user-select: none;
  -webkit-user-drag: none;
  transition: opacity .35s ease, transform .35s ease;
}

.lightbox__img.is-loading {
  opacity: 0;
  transform: scale(.985);
}

.lightbox__stage.is-busy .lightbox__caption { opacity: 0; }

.lightbox__spinner {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 34px;
  height: 34px;
  margin: -17px 0 0 -17px;
  border: 2px solid rgba(255, 255, 255, .15);
  border-top-color: #fff;
  border-radius: 50%;
  opacity: 0;
  animation: lb-spin .8s linear infinite;
  transition: opacity .2s;
  pointer-events: none;
}

.lightbox__stage.is-busy .lightbox__spinner { opacity: 1; }

@keyframes lb-spin { to { transform: rotate(360deg); } }

.lightbox__nav {
  position: absolute;
  top: 50%;
  width: 56px;
  height: 56px;
  margin-top: -28px;
}

.lightbox__nav svg { width: 28px; height: 28px; }
.lightbox__nav--prev { left: 14px; }
.lightbox__nav--next { right: 14px; }

/* filmstrip: thumbnails float on the backdrop, the current one is larger */
.filmstrip {
  --thumb-h: 58px;
  --thumb-h-active: 84px;
  display: flex;
  align-items: center;
  gap: 10px;
  height: calc(var(--thumb-h-active) + 34px);
  padding: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

/* spacers so the first and last thumbnails can sit in the middle */
.filmstrip::before,
.filmstrip::after {
  content: "";
  flex: 0 0 calc(50% - 50px);
}

.filmstrip::-webkit-scrollbar { display: none; }

.filmstrip__thumb {
  position: relative;
  flex: 0 0 auto;
  height: var(--thumb-h);
  padding: 0;
  border: 0;
  border-radius: 3px;
  overflow: hidden;
  background: #222;
  opacity: .38;
  transition: height .3s ease, opacity .3s ease, box-shadow .3s ease;
}

.filmstrip__thumb img {
  height: 100%;
  width: auto;
  pointer-events: none;
}

.filmstrip__thumb:hover { opacity: .7; }

.filmstrip__thumb[aria-current="true"] {
  height: var(--thumb-h-active);
  opacity: 1;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .6);
}

.filmstrip__thumb:focus-visible { opacity: 1; outline: 2px solid #8ab4ff; outline-offset: 2px; }

body.lightbox-open { overflow: hidden; }

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

@media (max-width: 1024px) {
  :root { --gutter: 30px; }

  .site-header__inner { grid-template-columns: auto 1fr auto; align-items: center; padding: 0 24px; }
  .header-social { display: none; }
  .site-logo { grid-column: 1; }

  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; grid-column: 3; }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: block;
    background: #fff;
    box-shadow: 0 12px 24px rgba(0, 0, 0, .08);
    clip-path: inset(0 0 100% 0);
    transition: clip-path .35s ease;
  }

  .main-nav.is-open { clip-path: inset(0 0 -40px 0); }
  .main-nav ul { flex-direction: column; padding: 8px 0; }
  .main-nav a { padding: 14px 24px; }
  .main-nav a::after { left: 10px; }

  .hero { height: 80vh; min-height: 480px; --band-h: 230px; }
  .hero__title { font-size: 48px; }
  .hero__content { left: 60px; right: 60px; }

  .portfolio-section { padding-top: 80px; }

  .team__row { grid-template-columns: 1fr; row-gap: 40px; justify-items: center; }
  .member-card { margin-left: 0; justify-self: center; text-align: center; }
  .team__row + .team__row { margin-top: 100px; }

  .photo-carousel__slide { flex-basis: calc((100% - 10px) / 2); }

  .logo-track__rail img {
    flex-basis: calc((100% - 55px * 3) / 4);
    width: calc((100% - 55px * 3) / 4);
  }
}

@media (max-width: 767px) {
  :root { --header-h: 90px; --gutter: 16px; }

  .site-logo img { width: 100px; }

  .hero { height: 70vh; min-height: 420px; --band-h: 200px; }
  .hero__title { font-size: 34px; }
  .hero__content { left: 40px; right: 40px; }
  .hero__arrow { width: 32px; }
  .hero__arrow:hover { width: 32px; }
  .hero__pager { left: 16px; bottom: 20px; }
  .hero__scroll { height: 60px; }
  .btn-outline-light { min-width: 0; height: 48px; padding: 0 22px; }

  .page-heading h1,
  .section-title,
  .member-bio h2 { font-size: 34px; }

  .portfolio-section { padding-top: 60px; }
  .gallery-filters button { padding: 6px 10px 6px 16px; font-size: 15px; }
  .gallery-filters button::before { left: 3px; }

  .team { padding: 70px 0 90px; }

  .photo-carousel__slide { flex-basis: 100%; height: 220px; }

  .lightbox { grid-template-rows: 50px minmax(0, 1fr) auto; }
  .lightbox__stage { padding: 0 0 8px; }
  .lightbox__nav { display: none; }
  .lightbox__caption { padding: 0 16px 12px; }
  .lightbox__title { font-size: 18px; }
  .filmstrip { --thumb-h: 44px; --thumb-h-active: 64px; gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }

  /* keep the scroll cue as a still line instead of a flicker */
  .hero__scroll::after { animation: none; transform: translateY(40px); }
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
