/* Graham Trust. Direction: the owner's reference, lusion.co.
   Pale cool ground, near-black ink, one electric blue, huge regular-weight type,
   media in rounded frames, pill buttons, a ribbon that draws itself on scroll.
   Old family photos are toned in the same blue. */

@font-face { font-family: "General Sans"; src: url("../fonts/general-sans-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "General Sans"; src: url("../fonts/general-sans-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "General Sans"; src: url("../fonts/general-sans-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --bg: #eff0f7;
  --ink: #0c0d12;
  --muted: #4c5068;
  --card: #e2e4f0;
  --dark: #0e0f15;
  --on-dark: #f3f4fa;
  --accent: #2f3cff;
  --accent-soft: #9aa2ff;
  --todo: #ffe08a;

  --font: "General Sans", system-ui, sans-serif;
  --t-label: 0.8125rem;
  --t-body: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  --t-lead: clamp(1.25rem, 0.9rem + 1.3vw, 2.25rem);
  --t-head: clamp(2rem, 1.3rem + 2.8vw, 3.75rem);
  --t-display: clamp(2.4rem, 0.5rem + 9vw, 9.5rem);
  --t-year: clamp(3rem, 0.8rem + 5.6vw, 7rem);

  --m: clamp(1rem, 5vw, 4.5rem);          /* page margin, everywhere */
  --gap: clamp(1rem, 2vw, 1.75rem);
  --section: clamp(6rem, 14vw, 14rem);
  --r: clamp(16px, 1.8vw, 26px);          /* the one corner radius for media */
  --ease: cubic-bezier(0.19, 1, 0.22, 1);
  --focus: var(--accent);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font);
  font-size: var(--t-body); line-height: 1.5; -webkit-font-smoothing: antialiased; overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
button, input { font: inherit; color: inherit; }
h1, h2, h3, p, figure, blockquote, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; }
a { color: inherit; text-underline-offset: 0.25em; text-decoration-thickness: 1px; }
::selection { background: var(--accent); color: #fff; }
:root { caret-color: var(--accent); accent-color: var(--accent); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; left: var(--m); top: -4rem; z-index: 100; background: var(--ink); color: var(--on-dark); padding: 0.75rem 1rem; border-radius: 999px; }
.skip:focus { top: 1rem; }

/* Placeholders the trust must fill in. Loud on purpose so none ships unnoticed. */
.todo { background: var(--todo); color: var(--ink); padding: 0 0.3em; border-radius: 4px; }

/* ------------------------------------------------------------- type -- */
.display { font-size: var(--t-display); font-weight: 400; line-height: 0.92; letter-spacing: -0.045em; }
.display > span:not(.w) { display: block; }
.display .indent { padding-left: 1.4em; }
.lead { font-size: var(--t-lead); line-height: 1.35; letter-spacing: -0.01em; }
.label { font-size: var(--t-label); font-weight: 500; letter-spacing: 0.02em; text-transform: uppercase; line-height: 1.4; }

/* ------------------------------------------------------------ pills -- */
.pill {
  display: inline-flex; align-items: center; gap: 0.65rem; min-height: 2.75rem; padding: 0.55rem 1.3rem;
  border: 0; border-radius: 999px; cursor: pointer; text-decoration: none; white-space: nowrap;
  font-size: var(--t-label); font-weight: 500; letter-spacing: 0.02em; text-transform: uppercase;
  transition: background-color 300ms var(--ease), color 300ms var(--ease), transform 300ms var(--ease);
}
.pill:hover { transform: translateY(-2px); }
.pill:active { transform: translateY(0); }
.pill--dark { background: #262838; color: var(--on-dark); }
.pill--dark:hover { background: var(--accent); }
.pill--light { background: var(--card); color: var(--ink); }
.pill--light:hover { background: var(--ink); color: var(--on-dark); }
.pill--white { background: #fff; color: var(--ink); }
.pill--white:hover { background: var(--accent); color: #fff; }
.dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.dots { position: relative; width: 5px; height: 5px; margin-right: 7px; border-radius: 50%; background: currentColor; }
.dots::after { content: ""; position: absolute; left: 7px; top: 0; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }

/* -------------------------------------------------------------- bar -- */
.bar { position: fixed; inset: 0 0 auto; z-index: 50; display: flex; align-items: center; justify-content: space-between; padding: 1.5rem var(--m); pointer-events: none; }
.bar > * { pointer-events: auto; }
.bar__mark {
  display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0.5rem 0; border-radius: 999px;
  font-size: var(--t-body); font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase;
  text-decoration: none; color: var(--ink);
  transition: background-color 400ms var(--ease), padding 400ms var(--ease), box-shadow 400ms var(--ease);
}
/* Once scrolling starts the logo becomes a pill, like the buttons beside it. */
.bar.is-scrolled .pill { /* floats over content with the bar. taste-skill-ignore */ box-shadow: 0 2px 6px rgb(12 13 18 / 0.08), 0 8px 24px -8px rgb(12 13 18 / 0.18); }
.bar.is-scrolled .bar__mark, body.menu-open .bar__mark {
  background: var(--bg); padding-inline: 1.3rem; /* part of the sticky bar, floats over content. taste-skill-ignore */ box-shadow: 0 2px 6px rgb(12 13 18 / 0.08), 0 8px 24px -8px rgb(12 13 18 / 0.18);
}
.bar__actions { display: flex; gap: 0.6rem; }
.menu {
  position: fixed; inset: 0; z-index: 45; background: var(--dark); color: var(--on-dark); --focus: #fff;
  display: grid; align-items: end; padding: 7rem var(--m) var(--m);
}
.menu[hidden] { display: none; }
.menu ul { list-style: none; }
.menu a { display: inline-block; font-size: clamp(2.5rem, 1rem + 6vw, 6.5rem); line-height: 1.05; letter-spacing: -0.04em; text-decoration: none; padding-block: 0.1em; transition: color 300ms var(--ease), transform 300ms var(--ease); }
.menu a:hover { color: var(--accent-soft); transform: translateX(0.15em); }

/* ------------------------------------------------------------ frames -- */
.frame { position: relative; overflow: hidden; border-radius: var(--r); background: var(--card); }
.frame img { width: 100%; height: 100%; object-fit: cover; }
[data-bend] { transform: skewY(var(--bend, 0deg)) scale(var(--squash, 1)); transform-origin: center; will-change: transform; }

/* "+" marks under a frame, as on the reference */
.marks { display: flex; justify-content: space-between; align-items: center; margin-top: 0.9rem; font-size: var(--t-body); line-height: 1; }
.marks__label { font-size: var(--t-label); font-weight: 500; letter-spacing: 0.02em; text-transform: uppercase; }

/* ----------------------------------------------------------- carousel -- */
.slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.06); transition: opacity 1.2s ease, transform 7s linear; }
.slide.is-on { opacity: 1; transform: scale(1); }
.carousel__ui {
  position: absolute; right: 0.9rem; bottom: 0.9rem; z-index: 3; display: flex; align-items: center; gap: 0.15rem;
  padding: 0.25rem; border-radius: 999px; background: rgb(14 15 21 / 0.72); --focus: #fff;
}
.carousel__toggle { width: 2.75rem; height: 2.75rem; border: 0; border-radius: 50%; background: #fff; color: var(--ink); display: grid; place-items: center; cursor: pointer; transition: background-color 300ms var(--ease), color 300ms var(--ease); }
.carousel__toggle:hover { background: var(--accent); color: #fff; }
.carousel__toggle svg { width: 1rem; height: 1rem; }
.carousel__dots { display: flex; }
.carousel__dots button { width: 2.75rem; height: 2.75rem; padding: 0 0.35rem; border: 0; background: none; display: grid; place-items: center; cursor: pointer; }
.carousel__bar { display: block; width: 100%; height: 4px; border-radius: 2px; background: rgb(255 255 255 / 0.35); overflow: hidden; }
.carousel__bar i { display: block; width: 100%; height: 100%; background: #fff; transform: scaleX(0); transform-origin: left; }
.carousel__dots [aria-current] .carousel__bar i { animation: fill 5.5s linear forwards; }
.carousel__dots button:hover .carousel__bar { background: rgb(255 255 255 / 0.6); }
.carousel__dots [aria-current] .carousel__bar { background: rgb(255 255 255 / 0.7); }
.is-paused .carousel__dots [aria-current] .carousel__bar i { animation-play-state: paused; }
@keyframes fill { to { transform: scaleX(1); } }

/* --------------------------------------------------------------- hero -- */
.hero { padding: 6.5rem var(--m) 0; }
.hero__intro {
  max-width: 26ch; margin-left: 26%; margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
  font-size: var(--t-lead); font-weight: 400; line-height: 1.15; letter-spacing: -0.02em;
}
.hero__frame { height: max(22rem, calc(100svh - 17rem)); }

/* ----------------------------------------------------------- statement -- */
.statement {
  position: relative; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap);
  padding: var(--section) var(--m) calc(var(--section) * 0.6); isolation: isolate;
}
.ribbon { position: absolute; inset: 4% 0 -18% 0; width: 100%; height: 114%; z-index: -1; overflow: visible; pointer-events: none; }
.ribbon path { fill: none; stroke: var(--accent); stroke-width: clamp(14px, 2vw, 30px); stroke-linecap: round; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: var(--draw, 1); }
.statement__title { grid-column: 1 / -1; }
.statement__title .indent { padding-left: 1.6em; }
.statement__body { grid-column: 7 / 13; margin-top: clamp(3rem, 7vw, 7rem); display: grid; gap: 2rem; justify-items: start; align-content: start; }
.statement__photo { grid-column: 1 / 6; grid-row: 2; margin-top: clamp(4rem, 12vw, 12rem); aspect-ratio: 4 / 3; }

/* --------------------------------------------------------------- reel -- */
.reel { padding: calc(var(--section) * 0.5) var(--m) var(--section); }
.reel__frame { height: min(86svh, 56vw); min-height: 24rem; transform: scale(var(--grow, 0.86)); transform-origin: center top; background: var(--dark); }
.reel__frame::after { content: ""; position: absolute; inset: 0; pointer-events: none; /* neutral scrim over the photo, under the title. taste-skill-ignore */ background: radial-gradient(ellipse 70% 45% at 50% 50%, rgb(8 9 20 / 0.5), transparent 75%); }
.reel__title {
  position: absolute; inset: 0; z-index: 2; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 0 0.35em;
  color: #fff; font-size: var(--t-display); font-weight: 400; letter-spacing: -0.03em; line-height: 1; text-transform: uppercase; text-align: center; padding: 1rem;
}
.reel__play {
  display: inline-grid; place-items: center; width: 1.45em; height: 0.95em; border-radius: 999px; background: #fff; color: var(--ink);
  transition: transform 400ms var(--ease), background-color 300ms var(--ease);
}
.reel__play svg { width: 0.32em; height: 0.32em; fill: currentColor; }
.reel__play:hover { transform: scale(1.08); background: var(--accent); color: #fff; }
.reel__play:focus-visible { outline-color: #fff; }

/* ------------------------------------------------------------ founded -- */
.founded { padding: var(--section) var(--m); }
.founded__title .indent { padding-left: 2.2em; }
.founded__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); margin-top: clamp(3rem, 8vw, 8rem); align-items: start; }
.founded__photo { grid-column: 1 / 5; aspect-ratio: 1 / 1; }
.founded__text { grid-column: 6 / 11; display: grid; gap: 1.25rem; }
.founded__text .label { color: var(--muted); margin-top: 1.5rem; }
.founded__text .label:first-child { margin-top: 0; }
.quote p { font-size: var(--t-lead); line-height: 1.3; letter-spacing: -0.01em; }
.names { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.names li { background: var(--card); border-radius: 999px; padding: 0.35rem 0.9rem; }
.founded__photo2 { grid-column: 11 / 13; margin-top: 40%; aspect-ratio: 553 / 768; }

/* ------------------------------------------------------------ moments -- */
.moments { padding: 0 var(--m) var(--section); }
.moments__grid { list-style: none; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); grid-auto-flow: row dense; align-items: start; }
.moment { display: block; border-radius: var(--r); overflow: hidden; background: var(--card); }
.moment img { width: 100%; height: auto; transition: transform 900ms var(--ease); }
.moment:hover img { transform: scale(1.05); }
.m-a { grid-column: 2 / 6; }
.m-b { grid-column: 7 / 13; margin-top: 26vh; }
.m-c { grid-column: 1 / 4; margin-top: 10vh; }
.m-d { grid-column: 5 / 11; margin-top: 4vh; }
.m-e { grid-column: 9 / 13; margin-top: 12vh; }
.m-f { grid-column: 2 / 7; margin-top: 8vh; }
.m-g { grid-column: 3 / 9; margin-top: 14vh; }
.m-h { grid-column: 10 / 13; margin-top: 6vh; }
.m-i { grid-column: 1 / 6; margin-top: 12vh; }
.m-j { grid-column: 8 / 12; margin-top: 4vh; }

/* ----------------------------------------------------------- timeline -- */
.album__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.album__note { max-width: 30ch; text-align: right; padding-bottom: 1em; color: var(--muted); }
.timeline { padding: 0 var(--m) var(--section); }
.timeline__list { list-style: none; display: grid; gap: clamp(3.5rem, 7vw, 7rem); }
.tl__link { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: start; text-decoration: none; }
.tl__year { grid-column: 1 / 4; font-size: var(--t-year); line-height: 0.85; letter-spacing: -0.05em; color: var(--accent); }
.tl__body { grid-column: 4 / 8; display: grid; gap: 1rem; justify-items: start; padding-top: 0.4rem; }
.tl__title { font-size: var(--t-lead); line-height: 1.1; letter-spacing: -0.02em; }
.tl__story { max-width: 40ch; }
.tl__meta { color: var(--muted); }
.tl__media { grid-column: 8 / 13; aspect-ratio: 16 / 10.5; }
.tl__media img { transition: transform 900ms var(--ease); }
.tl__link:hover .tl__media img { transform: scale(1.06); }
.tl__error { color: var(--muted); }

/* --------------------------------------------------------------- story -- */
.story { padding: 7rem var(--m) var(--section); }
.story__back { margin-top: clamp(3rem, 6vw, 5rem); }
.story__meta { color: var(--muted); margin-top: 1.25rem; }
.story__text { max-width: 46ch; margin-top: 1.5rem; }
.story__grid { list-style: none; columns: 3 280px; column-gap: var(--gap); margin-top: clamp(3rem, 6vw, 5rem); }
.story__grid li { break-inside: avoid; margin-bottom: var(--gap); }
.is-video { position: relative; }
.is-video::after { /* play badge on video posters */
  content: ""; position: absolute; left: 50%; top: 50%; width: 4rem; height: 2.75rem; translate: -50% -50%;
  border-radius: 999px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 5v14l11-7z' fill='%230c0d12'/%3E%3C/svg%3E") center / 1.1rem no-repeat;
  transition: transform 300ms var(--ease);
}
.is-video:hover::after { transform: scale(1.08); }
.story-nav { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); margin-top: calc(var(--section) * 0.5); }
.story-nav__link { display: grid; gap: 0.6rem; padding: clamp(1.5rem, 3vw, 2.5rem); background: var(--card); border-radius: var(--r); text-decoration: none; transition: background-color 300ms var(--ease), color 300ms var(--ease); }
.story-nav__link .label { color: var(--muted); }
.story-nav__link:hover { background: var(--ink); color: var(--on-dark); }
.story-nav__link:hover .label { color: #b9bcd0; }
.story-nav__link.is-next { grid-column: 2; text-align: right; }
.story-nav__title { font-size: var(--t-lead); line-height: 1.1; letter-spacing: -0.02em; }

/* ----------------------------------------------------------- facebook -- */
.facebook { padding: 0 var(--m) var(--section); }
.facebook__card {
  background: var(--dark); color: var(--on-dark); --focus: #fff; border-radius: var(--r);
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: var(--gap); padding: clamp(1.5rem, 4vw, 4rem); align-items: center;
}
.facebook__text { display: grid; gap: 1.75rem; justify-items: start; max-width: 36rem; }
.facebook__title { font-size: var(--t-head); font-weight: 400; line-height: 1; letter-spacing: -0.035em; }
.facebook__num { font-size: var(--t-display); line-height: 0.9; margin-bottom: -1rem; color: var(--accent-soft); letter-spacing: -0.05em; }
.facebook__text p { color: #c9cbdb; }
.facebook__photo { aspect-ratio: 4 / 3; }

/* --------------------------------------------------------------- fees -- */
.fees { padding: 0 var(--m) var(--section); }
.fees__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); margin-top: clamp(2.5rem, 5vw, 4.5rem); align-items: start; }
.fees__amount { grid-column: 1 / 6; display: grid; gap: 0.75rem; justify-items: start; }
.fees__amount .label { color: var(--muted); }
.price { font-size: var(--t-head); letter-spacing: -0.03em; line-height: 1.05; overflow-wrap: anywhere; }
.fees__amount > p:last-child { max-width: 34ch; margin-top: 1.25rem; }
.fees__pay { grid-column: 6 / 13; background: var(--card); border-radius: var(--r); padding: clamp(1.25rem, 3vw, 2.75rem); display: grid; gap: 1rem; }
.fees__pay .label { color: var(--muted); margin-top: 1.5rem; }
.fees__pay .label:first-child { margin-top: 0; }
.bank { display: grid; gap: 0.35rem; }
.bank > div { display: grid; grid-template-columns: 10rem 1fr auto; align-items: center; gap: 1rem; background: var(--bg); border-radius: 12px; padding: 0.6rem 0.6rem 0.6rem 1rem; }
.bank dt { color: var(--muted); }
.bank dd { font-variant-numeric: tabular-nums; min-width: 0; overflow-wrap: anywhere; }
.copy {
  min-height: 2.75rem; padding: 0.4rem 1.1rem; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--ink); color: var(--on-dark); font-size: var(--t-label); font-weight: 500; letter-spacing: 0.02em; text-transform: uppercase;
  transition: background-color 300ms var(--ease);
}
.copy:hover { background: var(--accent); }
.copy.is-done { background: var(--accent); }
.ref { background: var(--bg); border-radius: 12px; padding: 1rem; }
.ref label { display: block; color: var(--muted); margin-bottom: 0.6rem; }
.ref__row { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }
.ref input { flex: 1 1 12rem; min-height: 2.75rem; padding: 0.5rem 1.1rem; border: 1.5px solid #b9bcd0; border-radius: 999px; background: #fff; }
.ref input::placeholder { color: var(--muted); opacity: 1; }
.ref input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-color: var(--accent); }
.ref__out { font-size: var(--t-lead); letter-spacing: 0.01em; font-variant-numeric: tabular-nums; min-width: 8ch; }
.pop { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.75rem; }

/* ---------------------------------------------------------- directions -- */
.directions { padding: 0 var(--m) var(--section); }
.directions__map { margin-top: clamp(2.5rem, 5vw, 4.5rem); height: min(70svh, 44rem); min-height: 22rem; }
.directions__map iframe { width: 100%; height: 100%; border: 0; display: block; }
.directions__info { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); margin-top: clamp(2rem, 4vw, 3.5rem); }
.directions__info > div { display: grid; gap: 0.9rem; align-content: start; }
.directions__info .label { color: var(--muted); }
.gps { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem; font-weight: 500; font-variant-numeric: tabular-nums; }
.links { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.steps { padding-left: 1.2rem; display: grid; gap: 0.5rem; }
.directions__photos { display: grid; grid-template-columns: 1.6fr 1fr; gap: var(--gap); margin-top: clamp(2.5rem, 5vw, 4rem); align-items: end; }
.directions__photos .frame:first-child { aspect-ratio: 914 / 512; }
.directions__photos .frame:last-child { aspect-ratio: 690 / 800; }
.caption { margin-top: 0.9rem; font-size: var(--t-label); font-weight: 500; letter-spacing: 0.02em; text-transform: uppercase; color: var(--muted); }

/* ------------------------------------------------------------- footer -- */
.foot { background: var(--dark); color: var(--on-dark); --focus: #fff; padding: clamp(4rem, 8vw, 7rem) var(--m) 1.5rem; border-radius: var(--r) var(--r) 0 0; }
.foot__top { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem var(--gap); }
.foot .label { color: #9a9db3; margin-bottom: 0.9rem; }
.foot ul { list-style: none; }
.foot ul li { display: block; padding-block: 0.35rem; }
.foot a { text-decoration: none; display: inline-block; }
.foot a:hover { color: var(--accent-soft); }
.foot__mark { font-size: clamp(3rem, 0.5rem + 13.4vw, 16.5rem); line-height: 0.85; letter-spacing: -0.055em; white-space: nowrap; margin-top: clamp(4rem, 9vw, 8rem); }
.foot__base { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 2rem; font-size: var(--t-label); text-transform: uppercase; letter-spacing: 0.02em; }

/* ----------------------------------------------------------- lightbox -- */
.lightbox {
  width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: var(--dark); color: var(--on-dark); --focus: #fff; overscroll-behavior: contain; touch-action: pan-y pinch-zoom;
}
.lightbox::backdrop { background: var(--dark); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox__fig { display: grid; justify-items: center; gap: 1rem; padding: 5rem 5rem 6rem; max-width: 100%; max-height: 100%; }
.lightbox__img { max-width: 100%; max-height: calc(100dvh - 11rem); width: auto; height: auto; border-radius: 14px; user-select: none; -webkit-user-drag: none; }
.lightbox__video { max-width: 100%; max-height: calc(100dvh - 11rem); border-radius: 14px; background: #000; }
.lightbox__video[hidden], .lightbox__img[hidden] { display: none; }
.lightbox__cap { max-width: 60ch; text-align: center; color: #c9cbdb; }
.lightbox__btn {
  position: absolute; width: 3.25rem; height: 3.25rem; display: grid; place-items: center; padding: 0.85rem;
  border: 0; border-radius: 50%; background: #262838; color: var(--on-dark); cursor: pointer; transition: background-color 300ms var(--ease);
}
.lightbox__btn:hover { background: var(--accent); }
.lightbox__btn svg { width: 100%; height: 100%; }
.lightbox__prev { left: 1.25rem; top: 50%; translate: 0 -50%; }
.lightbox__next { right: 1.25rem; top: 50%; translate: 0 -50%; }
.lightbox__close { right: 1.25rem; top: 1.25rem; }
.lightbox__count { position: absolute; left: 1.5rem; top: 2.1rem; }
.lightbox__story { position: absolute; left: 50%; bottom: 1.25rem; translate: -50% 0; }
.lightbox__story[hidden] { display: none; }

/* ------------------------------------------------------------ reveals -- */
/* Only hidden when script runs; content never depends on it. */
.js [data-reveal] { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1.2s var(--ease); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.w > span { display: inline-block; transform: translateY(110%); transition: transform 1.2s var(--ease); transition-delay: calc(var(--i, 0) * 45ms); }
.is-in .w > span, .w.is-in > span { transform: none; }

/* -------------------------------------------------------------- tablet -- */
@media (max-width: 1100px) {
  .hero__intro { margin-left: 0; }
  .statement__body { grid-column: 6 / 13; background: var(--bg); border-radius: var(--r); padding: 1.25rem; margin-right: -1.25rem; }
  .founded__photo { grid-column: 1 / 6; }
  .founded__text { grid-column: 7 / 13; }
  .founded__photo2 { display: none; }
  .fees__amount { grid-column: 1 / -1; margin-bottom: 2.5rem; }
  .fees__pay { grid-column: 1 / -1; }
}

/* --------------------------------------------------------------- phone -- */
@media (max-width: 760px) {
  .bar { padding: 1rem var(--m); }
  .bar .pill--dark { display: none; }
  .bar__mark { font-size: var(--t-label); }
  .hero { padding-top: 5rem; }
  .hero__frame { height: 62svh; }
  .frame .slide--whole { object-fit: contain; } /* all six men stay in view on a narrow screen */
  .marks span:not(.marks__label):nth-child(2), .marks span:not(.marks__label):nth-child(4) { display: none; }
  .statement { display: block; }
  .statement__body { margin: 2.5rem -1.25rem 0; }
  .statement__photo { margin-top: 3rem; width: 82%; }
  .display .indent, .statement__title .indent, .founded__title .indent { padding-left: 0.9em; }
  .reel__frame { height: 70svh; min-height: 0; }
  .founded__grid { display: block; margin-top: 3rem; }
  .founded__photo { width: 72%; margin-bottom: 2.5rem; }
  .moments__grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .moments__grid li:nth-child(odd) { grid-column: 1 / 5; }
  .moments__grid li:nth-child(even) { grid-column: 3 / 7; }
  .moments__grid li { margin-top: 1.5rem; }
  .moments__grid li:first-child { margin-top: 0; }
  .album__head { display: block; }
  .album__note { text-align: left; margin-top: 1.25rem; padding: 0; }
  .tl__link { display: flex; flex-direction: column; gap: 1.25rem; }
  .tl__media { order: 1; width: 100%; }
  .tl__body { order: 2; padding-top: 0; }
  .story { padding-top: 5.5rem; }
  .story-nav { grid-template-columns: 1fr; }
  .story-nav__link.is-next { grid-column: auto; }
  .facebook__card { grid-template-columns: 1fr; }
  .facebook__photo { order: -1; }
  .bank > div { grid-template-columns: 1fr auto; }
  .bank dt { grid-column: 1 / -1; }
  .directions__info { grid-template-columns: 1fr; gap: 2.25rem; }
  .directions__photos { grid-template-columns: 1fr; }
  .foot__top { grid-template-columns: 1fr 1fr; }
  .foot__top > div:last-child { grid-column: 1 / -1; }
  .lightbox__fig { padding: 4.5rem 0.75rem 9rem; }
  .lightbox__img, .lightbox__video { max-height: calc(100dvh - 12rem); }
  .lightbox__prev, .lightbox__next { top: auto; bottom: 1.25rem; translate: none; }
}

@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { transform: none; transition: opacity 400ms ease; }
  .w > span { transform: none; transition: none; }
  [data-bend] { transform: none; }
  .reel__frame { transform: none; }
  .slide { transition: opacity 400ms ease; transform: none; }
  .ribbon path { stroke-dashoffset: 0; }
  .pill, .moment img, .tl__media img, .menu a, .story-nav__link { transition: none; }
}
