/* ------------------------------------------------------------------
   ZENOTTO DESIGN CO
   Warm minimal design system. Clay #C8A89C on plaster and espresso.
   ------------------------------------------------------------------ */

/* ---------- Scaling System by Osmo [https://osmo.supply/] ---------- */
:root {
  --size-unit: 16;
  --size-container-ideal: 1440;
  --size-container-min: 992px;
  --size-container-max: 1920px;
  --size-container: clamp(var(--size-container-min), 100vw, var(--size-container-max));
  --size-font: calc(var(--size-container) / (var(--size-container-ideal) / var(--size-unit)));
}
@media screen and (max-width: 991px) {
  :root { --size-container-ideal: 834; --size-container-min: 768px; --size-container-max: 991px; }
}
@media screen and (max-width: 767px) {
  :root { --size-container-ideal: 550; --size-container-min: 480px; --size-container-max: 767px; }
}
@media screen and (max-width: 479px) {
  :root { --size-container-ideal: 390; --size-container-min: 320px; --size-container-max: 479px; }
}

/* ---------- Tokens ---------- */
:root {
  --clay: #C8A89C;
  --clay-deep: #B08D7F;
  --ivory: #FAF7F2;
  --plaster: #F1EBE3;
  --sand: #E5DCD0;
  --taupe: #A99789;
  --umber: #6B5A4E;
  --espresso: #2B241E;
  --ink: #221C17;
  --ink-soft: #57493F;
  --hairline: rgba(34, 28, 23, 0.14);
  --hairline-light: rgba(250, 247, 242, 0.2);

  --font-display: "Cormorant Garamond", "Times New Roman", serif;
  --font-body: "Archivo", "Helvetica Neue", Arial, sans-serif;

  --gutter: 2.5em;
  --ease-osmo: cubic-bezier(0.625, 0.05, 0, 1);
  --dur: 0.735s;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  height: 100%;
  /* Reserve the scrollbar column permanently. Lenis removes the scrollbar
     whenever it is stopped (page transitions, open menu, open lightbox);
     without a reserved gutter the page widens and every image resizes. */
  scrollbar-gutter: stable;
}
/* Lenis stops with overflow:clip, which is not a scroll container and so
   drops the reserved gutter. hidden keeps it. */
.lenis:not(.lenis-autoToggle).lenis-stopped { overflow: hidden; }
body {
  font-family: var(--font-body);
  font-size: var(--size-font);
  font-weight: 300;
  line-height: 1.6;
  color: var(--ink);
  background-color: var(--ivory);
  -webkit-font-smoothing: antialiased;
  min-height: 100%;
}
img, svg, video { display: block; max-width: 100%; }
/* Images carry width/height attributes to reserve space, so height must be
   released back to the aspect ratio. Sized rules below still override. */
img { height: auto; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
a { color: inherit; }
ul, ol { list-style: none; }
::selection { background: var(--clay); color: var(--ivory); }

/* ---------- Type ---------- */
.display, h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: 0.01em;
}
.t-hero    { font-size: 6.5em; }
.t-xl      { font-size: 4.25em; }
.t-lg      { font-size: 3em;   }
.t-md      { font-size: 1.875em; line-height: 1.2; }
.t-quote   { font-size: 2.25em; line-height: 1.3; }
.t-label {
  font-family: var(--font-body);
  font-size: 0.6875em;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  line-height: 1.4;
}
.t-body-lg { font-size: 1.1875em; line-height: 1.55; }
.t-muted   { color: var(--ink-soft); }
.is--dark .t-muted, .footer .t-muted, .menu .t-muted { color: #C3B3A5; }
.u-caps    { text-transform: uppercase; }

@media screen and (max-width: 767px) {
  .t-hero  { font-size: 4em; }
  .t-xl    { font-size: 3em; }
  .t-lg    { font-size: 2.375em; }
  .t-quote { font-size: 1.75em; }
}

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--size-container); margin-left: auto; margin-right: auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.section { padding-top: 8em; padding-bottom: 8em; position: relative; }
.section.is--tight { padding-top: 5em; padding-bottom: 5em; }
.section.is--dark { background-color: var(--espresso); color: var(--ivory); }
.section.is--plaster { background-color: var(--plaster); }
.hairline-top { border-top: 1px solid var(--hairline); }
.is--dark .hairline-top { border-top-color: var(--hairline-light); }

@media screen and (max-width: 767px) {
  :root { --gutter: 1.25em; }
  .section { padding-top: 5em; padding-bottom: 5em; }
}

/* ---------- Media / placeholders ---------- */
.media { position: relative; overflow: hidden; background-color: var(--sand); }
.media > img {
  width: 100%; height: 100%;
  object-fit: cover;
  will-change: transform;
}
.media.is--frame { border-radius: 0.25em; }
.ratio-45 { aspect-ratio: 4 / 5; }
.ratio-32 { aspect-ratio: 3 / 2; }
.ratio-11 { aspect-ratio: 1 / 1; }
.ratio-169 { aspect-ratio: 16 / 9; }

/* Parallax inner images get extra height to travel inside their mask.
   Descendant, not child: a <picture> may sit between for art direction. */
[data-parallax] img { height: 118%; }
/* Keep <picture> out of the layout so percentage heights still resolve
   against the masking element. */
.media picture, .hero__media picture { display: contents; }

/* ---------- Logo (recolorable via mask) ---------- */
.logo-mask {
  display: block;
  aspect-ratio: 1276 / 303;
  background-color: currentColor;
  -webkit-mask: url("../assets/zenotto-logo.svg") no-repeat center / contain;
  mask: url("../assets/zenotto-logo.svg") no-repeat center / contain;
}

/* ---------- Header ---------- */
.header {
  position: fixed;
  z-index: 50;
  top: 0; left: 0; right: 0;
  transition: background-color 0.45s var(--ease-osmo), border-color 0.45s var(--ease-osmo), transform 0.6s var(--ease-osmo);
  border-bottom: 1px solid transparent;
}
.header.is--scrolled {
  background-color: rgba(250, 247, 242, 0.86);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--hairline);
}
.header.is--hidden { transform: translateY(-102%); }
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2em;
  padding: 1.4em var(--gutter);
}
.header__logo { display: block; width: 11.5em; color: var(--ink); }
.header__logo .logo-mask { width: 100%; }
.header__nav { display: flex; align-items: center; gap: 2.25em; }
.header__link {
  text-decoration: none;
  color: inherit;
}
.header__link[aria-current="page"] { color: var(--clay-deep); }

/* Hamburger */
.burger {
  display: none;
  width: 2.75em; height: 2.75em;
  position: relative;
  z-index: 61;
}
.burger__line {
  display: block;
  width: 1.9em; height: 1.5px;
  background-color: currentColor;
  position: absolute;
  left: 50%; top: 50%;
  transition: transform 0.5s var(--ease-osmo);
}
.burger__line:nth-child(1) { transform: translate(-50%, calc(-50% - 0.24em)); }
.burger__line:nth-child(2) { transform: translate(-50%, calc(-50% + 0.24em)); }
.burger.is--open .burger__line:nth-child(1) { transform: translate(-50%, -50%) rotate(45deg); }
.burger.is--open .burger__line:nth-child(2) { transform: translate(-50%, -50%) rotate(-45deg); }

@media screen and (max-width: 767px) {
  .header__nav { display: none; }
  .burger { display: flex; }
  .header__logo { width: 9.5em; }
}

/* Header sits above the open menu overlay, recolored for dark ground */
body.menu-open .header {
  z-index: 70;
  color: var(--ivory);
  background-color: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  border-bottom-color: transparent;
  transform: none;
}
body.menu-open .header__logo { color: var(--ivory); }
body.menu-open .header__nav { display: none; }

/* ---------- Mobile menu overlay ---------- */
.menu {
  position: fixed; inset: 0; z-index: 60;
  background-color: var(--espresso);
  color: var(--ivory);
  display: flex; flex-direction: column;
  padding: var(--gutter);
  padding-bottom: 3em;
  visibility: hidden;
  clip-path: inset(0 0 100% 0);
}
.menu__links {
  flex: 1;
  display: flex; flex-direction: column;
  justify-content: center; align-items: flex-start;
  gap: 0.35em;
}
.menu__item { overflow: hidden; padding-bottom: 0.1em; }
.menu__link {
  font-family: var(--font-display);
  font-size: 3.25em;
  line-height: 1.15;
  white-space: nowrap;
  text-decoration: none;
  display: inline-flex; align-items: baseline; gap: 0.35em;
  width: fit-content;
}
@media screen and (max-width: 479px) {
  .menu__link { font-size: 2.6em; }
}
.menu__link[aria-current="page"] { color: var(--clay); }
.menu__index { font-family: var(--font-body); font-size: 0.3em; letter-spacing: 0.15em; color: var(--clay); }
.menu__meta {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 2em;
  border-top: 1px solid var(--hairline-light);
  padding-top: 1.5em;
}
.menu__socials { display: flex; gap: 1.25em; }

/* ---------- Footer ---------- */
.footer { background-color: var(--espresso); color: var(--ivory); overflow: clip; }
.footer__cta { padding: 7em 0 5em; }
.footer__cta-title { max-width: 8em; }
.footer__cta-row {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 3em; flex-wrap: wrap; margin-top: 2.5em;
}
.footer__grid {
  display: flex; justify-content: space-between; gap: 3em; flex-wrap: wrap;
  padding: 3.5em 0;
  border-top: 1px solid var(--hairline-light);
}
.footer__col { display: flex; flex-direction: column; gap: 0.65em; min-width: 10em; }
.footer__col .t-label { color: var(--taupe); margin-bottom: 0.75em; }
.footer__link { text-decoration: none; width: fit-content; }
.footer__socials { display: flex; gap: 1.1em; align-items: center; }
.footer__icon { width: 2em; height: 2em; opacity: 0.85; transition: opacity 0.3s, transform 0.5s var(--ease-osmo); }
.footer__icon:hover { opacity: 1; transform: translateY(-0.15em); }
.footer__icon svg { width: 100%; height: 100%; }
.footer__icon svg path, .footer__icon svg circle { fill: var(--ivory); }
.footer__base {
  display: flex; justify-content: space-between; align-items: center; gap: 1.5em; flex-wrap: wrap;
  padding: 1.5em 0 2em;
  color: var(--taupe);
  font-size: 0.8125em;
}
.footer__logo { color: var(--clay); width: 10em; }
.footer__logo .logo-mask { width: 100%; }

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  width: fit-content;
  align-self: flex-start;
  display: inline-flex; align-items: center; gap: 0.9em;
  padding: 1.05em 1.9em;
  border: 1px solid currentColor;
  border-radius: 10em;
  text-decoration: none;
  overflow: hidden;
  transition: color 0.5s var(--ease-osmo), border-color 0.5s var(--ease-osmo);
}
.btn::before {
  content: "";
  position: absolute; inset: -1px;
  background-color: var(--espresso);
  border-radius: inherit;
  transform: translateY(101%);
  transition: transform 0.6s var(--ease-osmo);
  z-index: 0;
}
.btn > * { position: relative; z-index: 1; }
.btn__label { display: block; overflow: hidden; }
.btn__label > span {
  display: block;
  transition: transform 0.6s var(--ease-osmo);
}
.btn__label > span::after {
  content: attr(data-text);
  display: block;
  position: absolute; top: 100%; left: 0;
}
.btn:hover { color: var(--ivory); }
.btn:hover::before { transform: translateY(0); }
.btn:hover .btn__label > span { transform: translateY(-100%); }
.btn__label > span { position: relative; }
.btn.is--light::before { background-color: var(--clay); }
.btn.is--light:hover { color: var(--espresso); border-color: var(--clay); }
.btn__dot { width: 0.4em; height: 0.4em; border-radius: 50%; background-color: var(--clay); }
.btn.btn--sm {
  padding: 1.05em 2em;
  font-size: 0.875em;
  align-self: center;
  /* Faint plate so the CTA holds its shape over a busy hero. Invisible
     against the ivory pages, readable over glass and greenery. */
  background-color: rgba(250, 247, 242, 0.55);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.footer__cta-row .btn { align-self: auto; }

/* ---------- Underline Link Animation by Osmo ---------- */
[data-underline-link] { text-decoration: none; position: relative; }
[data-underline-link]::before,
[data-underline-link="alt"]::before,
[data-underline-link="alt"]::after {
  content: "";
  position: absolute;
  bottom: -0.19em; left: 0;
  width: 100%; height: 1px;
  background-color: currentColor;
  transition: transform var(--dur) var(--ease-osmo);
  transform-origin: right;
  transform: scaleX(0) rotate(0.001deg);
}
[data-underline-link="alt"]::before {
  transform-origin: left;
  transform: scaleX(1) rotate(0.001deg);
  transition-delay: 0.3s;
}
[data-underline-link="alt"]::after {
  transform-origin: right;
  transform: scaleX(0) rotate(0.001deg);
  transition-delay: 0s;
}
@media (hover: hover) and (pointer: fine) {
  [data-hover]:hover [data-underline-link]::before,
  [data-underline-link]:hover::before {
    transform-origin: left;
    transform: scaleX(1) rotate(0.001deg);
  }
  [data-hover]:hover [data-underline-link="alt"]::before,
  [data-underline-link="alt"]:hover::before {
    transform-origin: right;
    transform: scaleX(0) rotate(0.001deg);
    transition-delay: 0s;
  }
  [data-hover]:hover [data-underline-link="alt"]::after,
  [data-underline-link="alt"]:hover::after {
    transform-origin: left;
    transform: scaleX(1) rotate(0.001deg);
    transition-delay: 0.3s;
  }
}

/* Arrow link */
.link-arrow {
  display: inline-flex; align-items: center; gap: 0.6em;
  text-decoration: none;
  width: fit-content;
  flex: none;
  white-space: nowrap;
}
.link-arrow svg { width: 0.85em; height: 0.85em; transition: transform 0.5s var(--ease-osmo); }
.link-arrow:hover svg { transform: translateX(0.35em); }

/* ---------- Page transition (Osmo wipe, rebranded) ---------- */
.transition { z-index: 100; pointer-events: none; position: fixed; inset: 0; overflow: clip; }
.transition__panel {
  background-color: var(--espresso);
  justify-content: center; align-items: center;
  width: 100%; height: 100%;
  display: flex;
  position: absolute; top: 100%; left: 0;
  visibility: hidden;
}
.transition__label {
  color: var(--clay);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.875em;
  display: inline-flex; gap: 0.6em;
}

/* ---------- Preloader ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 110;
  background-color: var(--espresso);
  display: flex; align-items: center; justify-content: center;
  color: var(--clay);
}
.preloader__logo { width: min(30em, 72vw); }
.preloader__logo .logo-mask { width: 100%; }
html.is--loading { overflow: hidden; }

/* ---------- Hero (home) ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  color: var(--ink);
}
.hero__media { position: absolute; inset: 0; overflow: hidden; }
/* Only as much overshoot as the parallax travel needs: every extra percent
   magnifies the source and crops the sides. */
.hero__media img { width: 100%; height: 106%; object-fit: cover; }
/* Two washes shaped to where type actually sits: a short one under the
   header, a longer one under the wordmark block. Multi-stop so the falloff
   reads as light rather than a visible band. */
.hero__scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(to bottom,
      rgba(250, 247, 242, 0.86) 0%,
      rgba(250, 247, 242, 0.66) 5%,
      rgba(250, 247, 242, 0.38) 10%,
      rgba(250, 247, 242, 0.14) 15%,
      rgba(250, 247, 242, 0) 21%),
    linear-gradient(to top,
      rgba(250, 247, 242, 0.97) 0%,
      rgba(250, 247, 242, 0.91) 9%,
      rgba(250, 247, 242, 0.72) 19%,
      rgba(250, 247, 242, 0.44) 30%,
      rgba(250, 247, 242, 0.18) 40%,
      rgba(250, 247, 242, 0) 52%);
}
@media screen and (max-width: 767px) {
  /* The name, studio line and meta stack taller on a phone */
  .hero__scrim {
    background:
      linear-gradient(to bottom,
        rgba(250, 247, 242, 0.88) 0%,
        rgba(250, 247, 242, 0.6) 5%,
        rgba(250, 247, 242, 0.28) 10%,
        rgba(250, 247, 242, 0) 16%),
      linear-gradient(to top,
        rgba(250, 247, 242, 0.97) 0%,
        rgba(250, 247, 242, 0.93) 14%,
        rgba(250, 247, 242, 0.78) 26%,
        rgba(250, 247, 242, 0.5) 38%,
        rgba(250, 247, 242, 0.2) 50%,
        rgba(250, 247, 242, 0) 62%);
  }
}
.hero__content { position: relative; padding-bottom: 2.8em; }
.hero__row {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 2em; flex-wrap: wrap;
}
.hero__name {
  font-size: 8.25em;
  line-height: 0.94;
  letter-spacing: 0.005em;
}
.hero__studio { margin-top: 1.6em; }
.hero__meta-side { text-align: right; line-height: 1.9; }
@media screen and (max-width: 767px) {
  .hero__name { font-size: 3.9em; }
  .hero__studio { margin-top: 1.2em; }
  .hero__row { align-items: flex-end; }
  /* The name and studio line carry the hero on a phone; the location
     repeats in the menu and footer, so it just crowds the image here. */
  .hero__meta-side { display: none; }
}

/* ---------- Editorial blocks ---------- */
.intro__grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 4em; align-items: end; }
.intro__copy { display: flex; flex-direction: column; gap: 1.75em; max-width: 34em; }
@media screen and (max-width: 767px) { .intro__grid { grid-template-columns: 1fr; gap: 2.5em; } }

.split { display: grid; grid-template-columns: repeat(2, 1fr); gap: 5em; align-items: center; }
.split__copy { display: flex; flex-direction: column; gap: 1.6em; max-width: 30em; }
@media screen and (max-width: 767px) { .split { grid-template-columns: 1fr; gap: 2.5em; } }

.section-head {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 2em;
  flex-wrap: wrap;
  margin-bottom: 3.5em;
}
@media screen and (max-width: 767px) {
  /* Let the link drop to its own line rather than wrap mid-phrase */
  .section-head { gap: 1.25em; align-items: flex-start; }
}

/* ---------- Featured work (home) ---------- */
.featured { display: flex; flex-direction: column; gap: 6em; }
.featured__item { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1.5em; text-decoration: none; }
.featured__item:nth-child(odd)  .featured__visual { grid-column: 1 / span 8; }
.featured__item:nth-child(odd)  .featured__info   { grid-column: 10 / span 3; }
.featured__item:nth-child(even) .featured__visual { grid-column: 5 / span 8; order: 2; }
.featured__item:nth-child(even) .featured__info   { grid-column: 1 / span 3; order: 1; }
.featured__info {
  display: flex; flex-direction: column; justify-content: flex-end; gap: 0.6em;
  padding-bottom: 0.5em;
}
.featured__title { transition: color 0.4s; }
.featured__item:hover .featured__title { color: var(--clay-deep); }
.featured__visual .media { height: 100%; }
.featured__visual img { transition: transform 1.1s var(--ease-osmo); }
.featured__item:hover .featured__visual img { transform: scale(1.045); }
.featured__index { color: var(--taupe); }
@media screen and (max-width: 767px) {
  .featured { gap: 3.5em; }
  .featured__item, .featured__item:nth-child(even) { display: flex; flex-direction: column; gap: 1.1em; }
  .featured__visual { order: 1 !important; }
  .featured__info { order: 2 !important; }
}

/* ---------- Directional List Hover by Osmo (services) ---------- */
.directional-list { color: var(--ivory); flex-flow: column; width: 100%; display: flex; position: relative; }
.directional-list__item {
  grid-column-gap: 1.5em;
  color: inherit;
  justify-content: space-between; align-items: center;
  margin-top: -1px;
  padding: 2.4em 1.5em;
  text-decoration: none;
  display: flex;
  position: relative;
  overflow: hidden;
}
.directional-list__num { flex: none; min-width: 3.5em; color: var(--clay); position: relative; }
.directional-list__name { flex: 1; position: relative; font-size: 2.25em; line-height: 1.1; font-family: var(--font-display); }
.directional-list__desc { min-width: 26%; max-width: 26%; position: relative; color: var(--taupe); font-size: 0.9375em; transition: color 0.4s; }
.directional-list__arrow { flex: none; position: relative; width: 1.1em; opacity: 0; transform: translateX(-0.5em); transition: opacity 0.4s, transform 0.6s var(--ease-osmo); }
.directional-list__item:hover .directional-list__arrow { opacity: 1; transform: translateX(0); }
.directional-list__item:hover .directional-list__desc { color: var(--ivory); }
.directional-list__border {
  z-index: 2; opacity: 0.25;
  background-color: currentColor;
  width: 100%; height: 1px;
  position: absolute; bottom: 0; left: 0;
}
.directional-list__border.is--item { top: 0; bottom: auto; }
.directional-list__hover-tile {
  background-color: rgba(200, 168, 156, 0.12);
  width: 100%; height: 100%;
  position: absolute; top: 0; left: 0;
}
[data-directional-hover-tile] {
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  transform: translateY(-100%);
  will-change: transform;
}
@media screen and (max-width: 767px) {
  .directional-list__desc { display: none; }
  .directional-list__item { padding: 1.6em 0.25em; }
  .directional-list__name { font-size: 1.5em; }
}

/* ---------- Quote ---------- */
.quote { max-width: 26em; margin: 0 auto; text-align: center; }
.quote__attr { margin-top: 2em; color: var(--ink-soft); }

/* ---------- Line Reveal Testimonials (Osmo) ---------- */
.testimonial-lines {
  column-gap: 1.25em;
  row-gap: 3em;
  flex-flow: wrap;
  justify-content: flex-start;
  align-items: flex-start;
  display: flex;
}
.testimonial-lines__controls {
  column-gap: 0.75em;
  flex-flow: row;
  justify-content: flex-start;
  align-items: flex-start;
  width: 25%;
  display: flex;
}
.testimonial-lines__main {
  row-gap: 3em;
  flex-flow: column;
  flex: 1;
  justify-content: flex-start;
  align-items: flex-start;
  display: flex;
}
.testimonial-lines__button {
  background-color: transparent;
  border: 1px solid var(--hairline);
  border-radius: 100em;
  justify-content: center;
  align-items: center;
  width: 3em; height: 3em;
  padding: 0;
  display: flex;
  transition: color 0.4s var(--ease-osmo), background-color 0.4s var(--ease-osmo), border-color 0.4s var(--ease-osmo);
}
.testimonial-lines__button:hover {
  color: var(--ivory);
  background-color: var(--ink);
  border-color: var(--ink);
}
.testimonial-lines__arrow { width: 0.7em; }
.testimonial-lines__main-details {
  column-gap: 1.5em;
  flex-flow: row;
  justify-content: flex-start;
  align-items: center;
  display: flex;
}
.testimonial-lines__count { width: 1ch; display: inline-block; }
.testimonial-lines__p { margin-bottom: 0; font-size: 1em; line-height: 1.35; }
.testimonial-lines__main-details .testimonial-lines__p { letter-spacing: 0.18em; }
.testimonial-lines__p.is--faded { color: var(--ink-soft); opacity: 0.6; }
.testimonial-lines__collection { width: 100%; }
.testimonial-lines__list { width: 100%; display: grid; position: relative; }
.testimonial-lines__item {
  row-gap: 2.5em;
  opacity: 0;
  visibility: hidden;
  flex-flow: column;
  grid-area: 1 / 1;
  justify-content: flex-start;
  align-items: flex-start;
  width: 100%;
  display: flex;
  position: relative;
}
.testimonial-lines__item.is--active { opacity: 1; visibility: visible; }
.testimonial-lines__h {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 2.375em;
  line-height: 1.2;
  letter-spacing: 0.01em;
  width: 100%;
  margin: 0;
  border: 0;
  padding: 0;
}
/* SplitText mask wrappers need room for descenders. GSAP 3.13 names the
   wrapper text-mask-line-mask, so match both that and Osmo's original. */
.text-line-mask,
.testimonial-lines [class*="line-mask"] { padding-bottom: 0.12em; margin-bottom: -0.12em; }
.testimonial-lines__item-details {
  column-gap: 1.25em;
  flex-flow: row;
  justify-content: flex-start;
  align-items: center;
  display: flex;
}
@media screen and (max-width: 767px) {
  .testimonial-lines { row-gap: 2.5em; }
  .testimonial-lines__controls { order: 9999; width: 100%; }
  .testimonial-lines__main { row-gap: 2em; }
  .testimonial-lines__item { row-gap: 1.75em; }
  .testimonial-lines__h { font-size: 1.625em; }
}

/* ---------- Instagram / feed ---------- */
.feed__grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1em; }
.feed__item { text-decoration: none; position: relative; }
.feed__item .media { border-radius: 0.2em; }
.feed__item img { transition: transform 0.9s var(--ease-osmo), opacity 0.4s; }
.feed__item:hover img { transform: scale(1.05); }
@media screen and (max-width: 767px) { .feed__grid { grid-template-columns: repeat(2, 1fr); gap: 0.6em; } }

/* ---------- Page hero (interior pages) ---------- */
.page-hero { padding-top: 11em; padding-bottom: 3.5em; }
.page-hero__row { display: flex; justify-content: space-between; align-items: flex-end; gap: 2em; flex-wrap: wrap; }
@media screen and (max-width: 767px) {
  /* The desktop lead-in leaves roughly half a phone screen empty before any
     content, so the title sits closer under the header. */
  .page-hero { padding-top: 7.5em; padding-bottom: 1.75em; }
  .section.is--tight { padding-top: 3em; padding-bottom: 3em; }
}

/* ---------- Projects grid + filters (Osmo Layout Grid Flip, adapted) ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 0.5em; padding: 2em 0 3em; }
@media screen and (max-width: 767px) { .filters { padding: 1.25em 0 1.75em; } }
.filter-btn {
  border: 1px solid var(--hairline);
  border-radius: 100em;
  padding: 0.7em 1.4em;
  transition: color 0.3s, background-color 0.3s, border-color 0.3s;
}
.filter-btn:hover { border-color: var(--ink); }
.filter-btn.is--active { color: var(--ivory); background-color: var(--ink); border-color: var(--ink); }

[data-layout-status] { --columns: 3; --column-gap: 1.5em; }
.layout-grid { padding-bottom: 8em; }
.layout-grid__list {
  grid-row-gap: 3.5em;
  column-gap: var(--column-gap);
  flex-flow: wrap;
  display: flex;
  position: relative;
}
.layout-grid__item {
  will-change: transform;
  position: relative;
  width: calc((100% - (var(--columns) - 1) * var(--column-gap)) / var(--columns));
}
.layout-grid__item.is--wide { width: calc((100% - (var(--columns) - 1) * var(--column-gap)) / var(--columns) * 2 + var(--column-gap)); }
.layout-grid__item.is--hidden { display: none; }
.layout-grid__card { flex-flow: column; width: 100%; display: flex; position: relative; text-decoration: none; }
.layout-grid__card-visual { aspect-ratio: 4 / 5; border-radius: 0.25em; overflow: hidden; }
.is--wide .layout-grid__card-visual { aspect-ratio: auto; height: 100%; min-height: 0; }
.is--wide .layout-grid__card { height: 100%; }
.is--wide .layout-grid__card-visual { flex: 1; }
.layout-grid__card-img { object-fit: cover; width: 100%; height: 100%; transition: transform 1s var(--ease-osmo); }
.layout-grid__card:hover .layout-grid__card-img { transform: scale(1.045); }
.layout-grid__card-details {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1em;
  margin-top: 1em;
}
.layout-grid__card-title { font-size: 1.375em; line-height: 1.25; transition: color 0.35s; }
.layout-grid__card:hover .layout-grid__card-title { color: var(--clay-deep); }
.layout-grid__card-sub { color: var(--taupe); }
@media screen and (max-width: 767px) {
  [data-layout-status] { --columns: 1; --column-gap: 0em; }
  .layout-grid__item.is--wide { width: 100%; }
}

/* ---------- Project detail ---------- */
.project-hero { position: relative; min-height: 92svh; display: flex; align-items: flex-end; color: var(--ivory); }
.project-hero__media { position: absolute; inset: 0; overflow: hidden; }
.project-hero__media img { width: 100%; height: 114%; object-fit: cover; }
.project-hero__scrim { position: absolute; inset: 0; background: linear-gradient(to top, rgba(34,28,23,0.62), rgba(34,28,23,0.05) 55%); }
.project-hero__content { position: relative; width: 100%; padding-bottom: 3em; }
.project-meta {
  display: flex; gap: 4em; flex-wrap: wrap;
  padding: 1.8em 0;
}
.project-meta__item { display: flex; flex-direction: column; gap: 0.35em; }
.project-meta__item .t-label { color: var(--taupe); }
@media screen and (max-width: 767px) {
  /* Wrapping four items at a 4em gap leaves a ragged 1/1/2 stack and a lot
     of dead space. A fixed 2x2 grid reads as a spec sheet instead. */
  .project-meta {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5em 1.25em;
    padding: 1.5em 0;
  }
}

.project-story { max-width: 44em; margin: 0 auto; display: flex; flex-direction: column; gap: 1.75em; }

/* ---------- Horizontal Scrolling Sections by Osmo ---------- */
.horizontal__wrap {
  flex-flow: row;
  min-height: 100dvh;
  display: flex;
  overflow: hidden;
  background-color: var(--espresso);
}
.horizontal__panel { flex: none; width: auto; display: flex; align-items: center; }
.horizontal__panel-inner { width: auto; height: 100%; padding: 4.5em 1.25em; display: flex; align-items: center; }
.horizontal__panel:first-child .horizontal__panel-inner { padding-left: var(--gutter); }
.horizontal__panel:last-child .horizontal__panel-inner { padding-right: var(--gutter); }
.horizontal__figure { height: calc(100dvh - 10em); display: flex; flex-direction: column; gap: 0.9em; margin: 0; }
.horizontal__figure.is--portrait { width: calc((100dvh - 13em) * 0.75); }
.horizontal__figure.is--landscape { width: calc((100dvh - 13em) * 1.45); }
.horizontal__figure [data-lightbox="trigger-parent"] { flex: 1; min-height: 0; }
.horizontal__figure .gallery-item__button { height: 100%; }
.horizontal__figure img { height: 100%; width: 100%; max-width: none; object-fit: cover; border-radius: 0.25em; }
.horizontal__caption { color: var(--taupe); }
@media screen and (max-width: 767px) {
  .horizontal__wrap { flex-flow: column; min-height: 0; padding: 1.5em 0 2.5em; }
  .horizontal__panel { width: 100%; }
  .horizontal__panel-inner { width: 100%; padding: 1em var(--gutter); }
  .horizontal__figure, .horizontal__figure.is--portrait, .horizontal__figure.is--landscape { height: auto; width: 100%; }
  .horizontal__figure img { width: 100%; height: auto; max-width: 100%; }
}

/* ---------- Gallery grid (Osmo Lightbox Setup) ---------- */
.gallery-group { position: relative; }
.gallery-grid {
  column-gap: 1.25em;
  row-gap: 3em;
  flex-flow: wrap;
  justify-content: flex-start;
  align-items: flex-start;
  width: 100%;
  display: flex;
}
.gallery-grid__item { width: calc(33.3333% - 0.8333em); }
.gallery-item__img {
  border-radius: 0.25em;
  width: 100%;
  height: auto;
  transition: opacity 0.5s var(--ease-osmo);
}
/* No transform/overflow on the tiles: GSAP Flip animates the image itself
   out of this grid, and either one would distort the motion. */
.gallery-grid:hover .gallery-item__img { opacity: 0.62; }
.gallery-grid__item:hover .gallery-item__img { opacity: 1; }
@media screen and (max-width: 767px) {
  .gallery-grid { column-gap: 0.75em; row-gap: 1.5em; }
  .gallery-grid__item { width: calc(50% - 0.375em); }
}

/* ---------- Lightbox by Osmo ---------- */
.gallery-item__button {
  outline-offset: -1px;
  background-color: transparent;
  border: none;
  border-radius: 0.25em;
  width: 100%;
  padding: 0;
  cursor: zoom-in;
}
.gallery-item__button:focus-visible { outline-offset: 3px; outline: 1px solid var(--clay); }
.lightbox-wrap {
  z-index: 100;
  justify-content: center; align-items: center;
  width: 100%; height: 100dvh;
  display: none;
  position: fixed; inset: 0% 0% auto;
}
.lightbox-wrap.is-active { display: flex; }
/* Claim horizontal gestures for paging, leave pinch-zoom to the browser */
.lightbox-wrap { touch-action: pan-y pinch-zoom; }
.lightbox-img__wrap { width: 90vw; height: calc(100svh - 10em); }
.lightbox-img__list { justify-content: center; align-items: center; width: 100%; height: 100%; display: flex; position: relative; }
.lightbox-img__item {
  visibility: hidden;
  justify-content: center; align-items: center;
  width: 100%; height: 100%;
  display: flex;
  position: absolute;
}
.lightbox-img__item.is-active { visibility: visible; }
.lightbox-img { object-fit: contain; border-radius: 0.25em; min-width: auto; max-height: 100%; }
.lightbox-img__item img { object-fit: contain !important; min-width: auto; width: auto; max-height: 100%; }
.lightbox-nav {
  z-index: 2; color: var(--ivory);
  justify-content: space-between; align-items: center;
  display: flex;
  position: absolute; bottom: 2em; left: 2em; right: 2em;
}
.lightbox-nav__col { width: 33.333%; }
.lightbox-nav__col.start { justify-content: flex-start; align-items: center; display: flex; }
.lightbox-nav__col.center { grid-column-gap: 2em; justify-content: center; align-items: center; display: flex; }
.lightbox-nav__col.end { justify-content: flex-end; align-items: center; display: flex; }
.lightbox-nav__text { margin-bottom: 0; font-size: 0.875em; letter-spacing: 0.08em; text-transform: uppercase; }
.lightbox-nav__button {
  grid-column-gap: 0.5em;
  background-color: transparent;
  justify-content: flex-start; align-items: center;
  margin: -1em; padding: 1em;
  display: flex;
}
.lightbox-nav__dot {
  background-color: var(--clay);
  border-radius: 10em;
  width: 0.375em; height: 0.375em;
  margin-bottom: -0.1em;
  transition: transform 0.45s var(--ease-osmo);
}
.lightbox-nav__button:hover .lightbox-nav__dot { transform: scale(1.6); }

/* Scrimless variant: the image sits on the page, so the controls invert */
[data-lightbox-scrim="none"] .lightbox-nav { color: var(--ink); }
[data-lightbox-scrim="none"] .lightbox-nav__dot { background-color: var(--clay-deep); }
[data-lightbox-scrim="none"] .lightbox-img { box-shadow: 0 2em 5em rgba(34, 28, 23, 0.16); }

/* ---------- About page ---------- */
.about-hero__grid { display: grid; grid-template-columns: 7fr 5fr; gap: 4em; align-items: end; }
@media screen and (max-width: 767px) { .about-hero__grid { grid-template-columns: 1fr; gap: 2em; } }
.principles { display: flex; flex-direction: column; }
.principle {
  display: grid; grid-template-columns: 4em 1fr 1.2fr; gap: 2em;
  padding: 2.5em 0;
  border-top: 1px solid var(--hairline);
}
.is--dark .principle { border-top-color: var(--hairline-light); }
.principle__num { color: var(--clay-deep); }
.is--dark .principle__num { color: var(--clay); }
@media screen and (max-width: 767px) {
  .principle { grid-template-columns: 2.5em 1fr; }
  .principle__desc { grid-column: 2; }
}

/* ---------- Next project ---------- */
.next-project { display: block; text-decoration: none; position: relative; overflow: hidden; }
.next-project__media { position: absolute; inset: 0; }
.next-project__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-osmo); }
.next-project:hover .next-project__media img { transform: scale(1.05); }
.next-project__scrim { position: absolute; inset: 0; background-color: rgba(34, 28, 23, 0.55); transition: background-color 0.6s; }
.next-project:hover .next-project__scrim { background-color: rgba(34, 28, 23, 0.4); }
.next-project__content {
  position: relative;
  min-height: 55svh;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1em;
  color: var(--ivory);
  text-align: center;
  padding: 5em var(--gutter);
}

/* ---------- Reveal helpers ---------- */
[data-reveal] { opacity: 0; transform: translateY(2.2em); }
html.no-js [data-reveal], html.is--reduced [data-reveal] { opacity: 1; transform: none; }
.line-mask .line { overflow: hidden; }

/* ---------- Utility ---------- */
.hide-mobile { display: initial; }
.show-mobile { display: none; }
@media screen and (max-width: 767px) {
  .hide-mobile { display: none; }
  .show-mobile { display: initial; }
}
