/* =========================================================
   Wilma Giglio — site styles
   Layout rhythm modelled on luxury-house home pages:
   full-bleed imagery, small centred type, black & white.
   ========================================================= */

:root {
  --black: #000;
  --white: #fff;
  --grey-50: #f3f3f3;
  --grey-200: #e2e2e2;
  --grey-400: #a8a8a8;
  --grey-500: #6e6e6e;
  --grey-700: #3a3a3a;
  --warm: #f4efe9;
  --sand: #eee4d8;

  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;

  --bar-h: 36px;
  --header-h: 72px;
  --pad: clamp(20px, 4vw, 56px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--black);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html.no-scroll { overflow: hidden; }

/* ---------- section scrolling ----------
   main.js glides from section to section on every device (class "js-sections" on
   <html>). While it runs, the browser's own bounce / pull-to-refresh at the page
   edges is switched off so it doesn't fight the glide. */
html.js-sections { overscroll-behavior-y: none; }
/* sections focused after an in-page link glide shouldn't draw an outline */
[tabindex="-1"]:focus { outline: none; }

img { display: block; max-width: 100%; }

/* icons from the inline sprite at the top of index.html; sized by font-size like text */
.icon {
  display: inline-block;
  flex-shrink: 0;
  width: 1em;
  height: 1em;
  fill: currentColor;
  vertical-align: -.125em;
}
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }

[hidden] { display: none !important; }

:focus-visible { outline: 1px solid currentColor; outline-offset: 4px; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 12px; top: -60px;
  z-index: 200;
  background: var(--black);
  color: var(--white);
  padding: 10px 16px;
  font-size: 14px;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* ---------- shared type ---------- */

.eyebrow {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.section-title {
  font-size: clamp(22px, 1.9vw, 26px);
  font-weight: 500;
  line-height: 1.2;
  margin-bottom: 14px;
}

.display-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(42px, 4.6vw, 64px);
  line-height: 1.02;
  margin-bottom: 32px;
}

.section-head {
  text-align: center;
  padding: 0 var(--pad);
  margin-bottom: clamp(36px, 5vw, 64px);
}

.section-lead,
.intro__text,
.banner__text { text-wrap: balance; }

.section-lead {
  max-width: 32em;
  margin: 0 auto;
  font-size: 15px;
  color: var(--grey-500);
}

.cta-row {
  display: flex;
  justify-content: center;
  gap: 32px;
}

.cta {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  padding-bottom: 5px;
  border-bottom: 1px solid currentColor;
  transition: opacity .2s;
}
.cta:hover { opacity: .65; }

/* ---------- top: announcement bar + header ---------- */

.site-top {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  color: var(--white);
}

.announce {
  position: relative;
  height: var(--bar-h);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--black);
  color: var(--white);
  font-size: 13px;
  padding: 0 48px;
  transition: height .35s var(--ease);
}
.announce a { text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.announce a:hover { text-decoration: underline; text-underline-offset: 3px; }
.announce__close {
  position: absolute;
  right: 14px; top: 50%;
  transform: translateY(-50%);
  width: 32px; height: 32px;
  display: grid; place-items: center;
  font-size: 13px;
}
.site-top.is-solid .announce,
.site-top.no-announce .announce { height: 0; }

.header {
  height: var(--header-h);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 var(--pad);
  transition: background-color .35s, color .35s, box-shadow .35s;
}
.site-top.is-solid .header {
  background: var(--white);
  color: var(--black);
  box-shadow: 0 1px 0 var(--grey-200);
}

.header__left,
.header__right { display: flex; align-items: center; gap: 26px; }
.header__right { justify-content: flex-end; }

.header__btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  height: 44px;
}
.header__btn .icon { font-size: 24px; line-height: 1; }

.header__link { font-size: 15px; text-decoration: none; }
.header__link:hover { text-decoration: underline; text-underline-offset: 4px; }
.header__icon { font-size: 18px; line-height: 1; text-decoration: none; }

.wordmark {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 28px;
  line-height: 1;
  letter-spacing: .22em;
  margin-right: -.22em; /* balance the trailing tracking */
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
}

/* language picker: "EN ▾" opens a small white list */
.lang { position: relative; }
.lang__toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 44px;
  font-size: 14px;
  letter-spacing: .06em;
}
.lang__toggle .icon { font-size: 10px; transition: transform .35s var(--ease); }
.lang.is-open .lang__toggle .icon { transform: rotate(180deg); }

.lang__list {
  position: absolute;
  top: calc(100% + 2px);
  right: -16px;
  z-index: 5;
  min-width: 156px;
  padding: 8px 0;
  background: var(--white);
  color: var(--black);
  box-shadow: 0 12px 32px rgba(0, 0, 0, .14);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity .25s ease, transform .35s var(--ease), visibility 0s .35s;
}
.lang.is-open .lang__list {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity .25s ease, transform .35s var(--ease), visibility 0s;
}
.lang__list button {
  display: block;
  width: 100%;
  padding: 9px 20px;
  text-align: left;
  font-size: 14px;
  transition: background-color .2s;
}
.lang__list button:hover { background: var(--grey-50); }
.lang__list button[aria-pressed="true"] { font-weight: 600; }

/* ---------- side menu ---------- */

.menu {
  position: fixed;
  inset: 0;
  z-index: 100;
  visibility: hidden;
  transition: visibility 0s .45s;
}
.menu.is-open { visibility: visible; transition: visibility 0s; }

.menu__scrim {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .4);
  opacity: 0;
  transition: opacity .45s var(--ease);
}
.menu.is-open .menu__scrim { opacity: 1; }

.menu__panel {
  position: absolute;
  inset: 0 auto 0 0;
  width: min(460px, 100%);
  display: flex;
  flex-direction: column;
  padding: 14px var(--pad) 40px;
  background: var(--white);
  color: var(--black);
  transform: translateX(-100%);
  transition: transform .45s var(--ease);
  overflow-y: auto;
}
.menu.is-open .menu__panel { transform: none; }

.menu__close {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 44px;
  font-size: 15px;
}

.menu__list { margin-top: 48px; }
.menu__list a {
  position: relative;
  z-index: 0;
  display: block;
  margin: 0 calc(var(--pad) * -1); /* the hover band spans the whole panel */
  padding: 6px var(--pad);
  font-family: var(--serif);
  font-size: clamp(36px, 5vw, 46px);
  line-height: 1.15;
  text-decoration: none;
  transition: text-indent .5s var(--ease);
}
/* hover: a sand band sweeps in from the left, the word eases right, an arrow fades in */
.menu__list a::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--sand);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .5s var(--ease);
}
.menu__list a::after {
  content: "\2192";
  position: absolute;
  top: 50%;
  right: var(--pad);
  font-family: var(--sans);
  font-size: 22px;
  opacity: 0;
  transform: translate(-14px, -50%);
  transition: opacity .35s ease, transform .5s var(--ease);
}
.menu__list a:is(:hover, :focus-visible) { text-indent: 16px; }
.menu__list a:is(:hover, :focus-visible)::before { transform: scaleX(1); }
.menu__list a:is(:hover, :focus-visible)::after { opacity: 1; transform: translate(0, -50%); }
.menu__list a:focus-visible { outline-offset: -3px; }

.menu__foot { margin-top: auto; padding-top: 40px; }
.menu__label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.socials { display: flex; gap: 20px; font-size: 19px; line-height: 1; }
.socials a { text-decoration: none; opacity: .85; transition: opacity .2s; }
.socials a:hover { opacity: 1; }

/* ---------- hero ---------- */

.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  background: #0b1422;
  color: var(--white);
}

.hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 55% 45%;
  animation: hero-settle 9s var(--ease) both;
}

@keyframes hero-settle {
  from { transform: scale(1.07); }
  to { transform: scale(1); }
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 50%;
  background: linear-gradient(to top, rgba(0, 0, 0, .5), transparent);
  pointer-events: none;
}

.hero__content {
  position: absolute;
  inset: auto 0 clamp(40px, 8vh, 84px);
  z-index: 1;
  padding: 0 var(--pad);
  text-align: center;
}

.hero__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(48px, 7vw, 96px);
  line-height: 1;
  margin-bottom: 26px;
}

/* ---------- intro + tabs + tiles ---------- */

.intro {
  padding: clamp(56px, 7vw, 88px) var(--pad) 28px;
  text-align: center;
}

.intro__text {
  max-width: 31em;
  margin: 0 auto 30px;
  font-size: 16px;
  color: var(--grey-700);
}

.tabs { position: relative; display: inline-flex; gap: 30px; }

.tab {
  padding: 4px 0 9px;
  font-size: 15px;
  color: var(--grey-500);
  transition: color .35s ease;
}
.tab:hover,
.tab[aria-selected="true"] { color: var(--black); }
.tab:focus-visible { outline-width: 1px; outline-offset: 6px; }

/* one underline that slides and stretches to the selected tab (position set in main.js) */
.tabs__indicator {
  position: absolute;
  left: 0;
  bottom: 0;
  width: var(--w, 0);
  height: 1px;
  background: var(--black);
  transform: translateX(var(--x, 0));
  transition: transform .5s var(--ease), width .5s var(--ease);
}
.tabs__indicator.is-static { transition: none; }

.tiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  margin-top: 28px;
}

/* switching tabs: the old photos fade down and out, the new ones rise in one after another */
.tiles.is-leaving {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .28s ease, transform .28s ease;
}
.tiles.is-entering .tile { animation: tile-in .7s var(--ease) both; }
.tiles.is-entering .tile:nth-child(2) { animation-delay: .07s; }
.tiles.is-entering .tile:nth-child(3) { animation-delay: .14s; }
.tiles.is-entering .tile:nth-child(4) { animation-delay: .21s; }

@keyframes tile-in {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: none; }
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.tile { display: block; text-decoration: none; }

.tile__media {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--grey-50);
}
.tile__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .9s var(--ease);
}
.tile:hover .tile__media img { transform: scale(1.04); }

.tile__caption {
  padding: 16px 12px 30px;
  text-align: center;
  font-size: 14px;
  font-weight: 500;
}

/* ---------- full-bleed banner ---------- */

.banner {
  position: relative;
  /* exactly one screen below the header, so it fills the view when the page glides to it */
  height: calc(100vh - var(--header-h));
  height: calc(100svh - var(--header-h));
  overflow: hidden;
  color: var(--white);
}

.banner__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 40%;
}

.banner--light { color: var(--black); }

.banner__content {
  position: absolute;
  inset: auto 0 clamp(40px, 8vh, 84px);
  z-index: 1;
  padding: 0 var(--pad);
  text-align: center;
}

.banner__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(42px, 5vw, 68px);
  line-height: 1;
  margin-bottom: 14px;
}

.banner__text {
  max-width: 30em;
  margin: 0 auto 24px;
  font-size: 15px;
}

/* ---------- biography ---------- */

.bio {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(32px, 6vw, 104px);
  align-items: start;
  max-width: 1360px;
  margin: 0 auto;
  padding: clamp(72px, 9vw, 136px) var(--pad);
}

.bio__media {
  position: sticky;
  top: calc(var(--header-h) + 28px);
}
.bio__media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 18%;
}

.bio__body { max-width: 35em; padding-top: 6px; }
.bio__body > p:not(.eyebrow):not(.bio__sign) { margin-bottom: 1.15em; color: var(--grey-700); }
.bio strong { color: var(--black); font-weight: 600; }

.bio__sign {
  margin-top: 28px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 44px;
  line-height: 1;
}

/* ---------- career (black band) ---------- */

.career {
  background: var(--black);
  color: var(--white);
  padding: clamp(80px, 10vw, 136px) var(--pad);
}
.career__inner { max-width: 1280px; margin: 0 auto; }
.career .section-lead { color: var(--grey-400); }

.timeline {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
}
/* each item draws its own piece of the line, so every wrapped row gets one */
.timeline li { position: relative; padding: 28px 24px 0 0; border-top: 1px solid #333; }
.timeline li::before {
  content: "";
  position: absolute;
  top: -4px; left: 0;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--white);
}
.timeline__when {
  display: block;
  margin-bottom: 12px;
  font-family: var(--serif);
  font-size: 34px;
  line-height: 1;
  font-variant-numeric: lining-nums; /* Cormorant's old-style "16" reads like "i6" */
}
.timeline p { font-size: 14px; line-height: 1.5; color: #bcbcbc; }

.career__sub {
  margin: clamp(80px, 9vw, 120px) 0 28px;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.roles { border-top: 1px solid #333; }
.roles li {
  position: relative;
  z-index: 0;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid #333;
  transition: padding .5s var(--ease);
}
/* hover: a dark band sweeps in and the row eases inward */
.roles li::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: #1a1a1a;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .5s var(--ease);
}
.roles li:hover { padding-inline: 20px; }
.roles li:hover::before { transform: scaleX(1); }
.roles__name {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(34px, 4.4vw, 62px);
  line-height: 1.05;
}
.roles__ballet {
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--grey-400);
  text-align: right;
}

/* ---------- quote (split) ---------- */

.quote {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100svh - var(--header-h));
  background: var(--warm);
}
.quote__media { position: relative; }
.quote__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.quote__body {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(56px, 8vw, 120px) var(--pad);
}
.quote blockquote {
  min-width: 0;
  max-width: min(11em, 100%);
  text-wrap: balance;
  text-align: center;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(34px, 3.8vw, 58px);
  line-height: 1.12;
}

/* ---------- gallery carousel ---------- */

.gallery { padding: clamp(80px, 10vw, 128px) 0 clamp(72px, 8vw, 104px); }

.carousel { position: relative; }

.carousel__track {
  display: flex;
  gap: 2px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}
.carousel__track::-webkit-scrollbar { display: none; }

.carousel__item {
  flex: 0 0 calc((100% - 6px) / 4);
  scroll-snap-align: start;
}
.carousel__item a { display: block; aspect-ratio: 3 / 4; overflow: hidden; background: var(--grey-50); }
.carousel__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .9s var(--ease);
}
.carousel__item a:hover img { transform: scale(1.04); }

.carousel__arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 46px; height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 2px 14px rgba(0, 0, 0, .14);
  font-size: 16px;
  transform: translateY(-50%);
  transition: opacity .25s;
}
.carousel__arrow--prev { left: 18px; }
.carousel__arrow--next { right: 18px; }
.carousel__arrow[disabled] { opacity: 0; pointer-events: none; }

.progress {
  position: relative;
  width: min(240px, 50vw);
  height: 2px;
  margin: 44px auto 0;
  overflow: hidden;
  background: var(--grey-200);
}
.progress__bar {
  position: absolute;
  inset: 0 auto 0 0;
  width: 30%;
  background: var(--black);
}

/* ---------- contact ---------- */

.contact {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--grey-200);
}
.contact__media { position: relative; }
.contact__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
}

.contact__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 680px;
  padding: clamp(64px, 8vw, 128px) clamp(24px, 6vw, 112px);
}
.contact__lead { color: var(--grey-500); font-size: 15px; }

.contact__mail {
  align-self: flex-start;
  margin: 18px 0 48px;
  font-family: var(--serif);
  font-size: clamp(26px, 2.6vw, 36px);
  line-height: 1.2;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  overflow-wrap: anywhere;
  transition: opacity .3s ease;
}
.contact__mail:hover { opacity: .55; }

.form { display: grid; gap: 26px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }

.field { display: grid; gap: 4px; }
.field span {
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--grey-500);
}
.field input,
.field textarea {
  width: 100%;
  padding: 10px 0;
  border: 0;
  border-bottom: 1px solid #c4c4c4;
  border-radius: 0;
  background: transparent;
  font: inherit;
  font-size: 16px;
  color: var(--black);
  resize: vertical;
  transition: border-color .2s;
}
.field input:focus,
.field textarea:focus { outline: none; border-bottom-color: var(--black); }

.form__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 6px; }

.btn {
  padding: 15px 46px;
  border: 1px solid var(--black);
  background: var(--black);
  color: var(--white);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  transition: background-color .25s, color .25s;
}
.btn:hover { background: var(--white); color: var(--black); }

.btn[disabled] { opacity: .5; cursor: progress; }

.form__status { flex: 1 1 220px; font-size: 14px; color: var(--grey-700); }
.form__status:empty { display: none; }
.form__status[data-state="sent"] { color: var(--black); font-weight: 500; }
.form__status[data-state="error"] { color: #9b2c2c; }
.form__status a { color: inherit; }

.contact__social { margin-top: 56px; }

/* ---------- footer ---------- */

.footer {
  background: var(--black);
  color: var(--white);
  padding: clamp(64px, 7vw, 96px) var(--pad) 0;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  max-width: 1360px;
  margin: 0 auto;
  padding-bottom: 64px;
}

.footer .wordmark { font-size: 26px; }
.footer__tag { margin: 16px 0 26px; font-size: 14px; color: var(--grey-400); }

.footer h3 {
  margin-bottom: 18px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.footer__col li { margin-bottom: 10px; }
.footer__col a { font-size: 14px; color: #cfcfcf; text-decoration: none; overflow-wrap: anywhere; }
.footer__col a:hover { color: var(--white); text-decoration: underline; text-underline-offset: 3px; }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  max-width: 1360px;
  margin: 0 auto;
  padding: 22px 0 28px;
  border-top: 1px solid #2b2b2b;
  font-size: 12px;
  color: var(--grey-400);
}

.footer__lang button { color: var(--grey-400); }
.footer__lang button:hover { color: var(--white); }
.footer__lang button[aria-pressed="true"] { color: var(--white); text-decoration: underline; text-underline-offset: 4px; }

/* Matador Studio credit */
.powered {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--grey-400);
  text-decoration: none;
  transition: color .2s;
}
.powered img { width: 22px; height: 22px; transition: transform .35s var(--ease); }
.powered strong { color: var(--white); font-weight: 600; }
.powered:hover { color: var(--white); }
.powered:hover img { transform: rotate(-8deg) scale(1.08); }

/* ---------- lightbox ---------- */

.lightbox {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(0, 0, 0, .95);
  color: var(--white);
}
.lightbox[open] { display: grid; place-items: center; animation: fade-in .3s var(--ease); }
.lightbox::backdrop { background: transparent; }

.lightbox__figure { display: grid; justify-items: center; gap: 14px; }
.lightbox__figure img {
  max-width: min(92vw, 1280px);
  max-height: 84vh;
  object-fit: contain;
}
.lightbox__figure figcaption { font-size: 12px; letter-spacing: .14em; color: var(--grey-400); }

.lightbox__close {
  position: absolute;
  top: 18px; right: 20px;
  width: 48px; height: 48px;
  display: grid; place-items: center;
  font-size: 20px;
}
.lightbox__nav {
  position: absolute;
  top: 50%;
  width: 56px; height: 56px;
  display: grid; place-items: center;
  font-size: 26px;
  transform: translateY(-50%);
  opacity: .8;
}
.lightbox__nav:hover { opacity: 1; }
.lightbox__close,
.lightbox__nav { border-radius: 50%; transition: background-color .25s, opacity .25s; }
.lightbox__close:hover,
.lightbox__nav:hover { background: rgba(255, 255, 255, .08); }
.lightbox :focus-visible { outline: 1px solid rgba(255, 255, 255, .7); outline-offset: 2px; }
.lightbox__figure img { will-change: transform, opacity; }
.lightbox__nav--prev { left: 10px; }
.lightbox__nav--next { right: 10px; }

/* ---------- responsive ---------- */

@media (max-width: 1100px) {
  .timeline { grid-template-columns: repeat(3, 1fr); row-gap: 44px; }
  .footer__grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .carousel__item { flex-basis: calc((100% - 4px) / 2.4); }

  .bio { grid-template-columns: 1fr; }
  .bio__media { position: static; max-width: 560px; }

  .quote,
  .contact { grid-template-columns: minmax(0, 1fr); }
  .quote__media { min-height: 0; aspect-ratio: 4 / 5; }
  .contact__media { min-height: 0; aspect-ratio: 4 / 3; }
  .contact__body { max-width: none; }
}

@media (max-width: 700px) {
  :root { --header-h: 60px; --bar-h: 34px; }

  .hide-sm { display: none; }
  .announce { font-size: 12px; }
  .header__left, .header__right { gap: 16px; }
  .wordmark { font-size: 19px; letter-spacing: .16em; margin-right: -.16em; }

  /* the banner becomes image-then-text so the photo isn't cropped to a sliver */
  .banner { height: auto; min-height: 0; }
  .banner__img { position: static; height: auto; aspect-ratio: 4 / 3; object-position: 45% 50%; }
  .banner__content { position: static; padding: 32px var(--pad) 48px; }
  .banner:not(.banner--light) { background: var(--black); }

  .timeline {
    grid-template-columns: 1fr;
    row-gap: 32px;
    border-left: 1px solid #333;
    margin-left: 4px;
  }
  .timeline li { padding: 0 0 0 26px; border-top: 0; }
  .timeline li::before { top: 10px; left: -4px; }

  .roles li { flex-direction: column; gap: 6px; }
  .roles__ballet { text-align: left; }

  .carousel__item { flex-basis: 78%; }
  .carousel__arrow { display: none; }

  .form__row { grid-template-columns: 1fr; }

  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
  .carousel__track { scroll-behavior: auto; }
}
