:root {
  color-scheme: light;
  --ink: #171513;
  --muted: #6d6761;
  --paper: #f4f1ed;
  --stone: #d6d0c7;
  --clay: #9a725a;
  --deep: #24211e;
  --line: rgba(23, 21, 19, 0.16);
  --white: #fffaf4;
  --header: rgba(244, 241, 237, 0.84);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
}

img {
  display: block;
  max-width: 100%;
  object-fit: cover;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  align-items: center;
  background: var(--header);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid transparent;
  display: flex;
  height: 92px;
  justify-content: space-between;
  left: 0;
  padding: 0 clamp(20px, 4vw, 64px);
  position: fixed;
  right: 0;
  top: 0;
  transition: border-color 240ms ease, background 240ms ease;
  z-index: 20;
}

.site-header.is-scrolled {
  background: rgba(244, 241, 237, 0.94);
  border-color: var(--line);
}

.brand {
  align-items: center;
  display: flex;
  width: clamp(190px, 18vw, 280px);
}

.brand img,
.brand .custom-logo {
  height: auto;
  max-height: 72px;
  object-fit: contain;
  object-position: left center;
  width: 100%;
}

.desktop-nav {
  display: flex;
  gap: clamp(18px, 2.6vw, 42px);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.desktop-menu {
  align-items: center;
  display: flex;
  gap: clamp(18px, 2.6vw, 42px);
  list-style: none;
  margin: 0;
  padding: 0;
}

.desktop-nav a,
.mobile-nav a,
.text-link {
  position: relative;
}

.desktop-nav a::after,
.mobile-nav a::after,
.text-link::after {
  background: currentColor;
  bottom: -6px;
  content: "";
  height: 1px;
  left: 0;
  position: absolute;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 220ms ease;
  width: 100%;
}

.desktop-nav a:hover::after,
.mobile-nav a:hover::after,
.text-link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.menu-button {
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 0;
  color: var(--ink);
  display: none;
  font: inherit;
  height: 42px;
  min-width: 74px;
  text-transform: uppercase;
}

.mobile-nav {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  display: none;
  gap: 18px;
  left: 0;
  padding: 98px 24px 24px;
  position: fixed;
  right: 0;
  top: 0;
  z-index: 10;
}

.hero {
  min-height: 92vh;
  overflow: hidden;
  position: relative;
}

.hero-slider,
.hero-slide {
  height: 92vh;
  min-height: inherit;
}

.hero-slide {
  inset: 0;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  transition: opacity 950ms ease, transform 1200ms ease;
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
  z-index: 1;
}

.photo-watermark,
.watermark-frame::after,
.feature-media::after,
.catalog-card::before,
.chapter-slide::before,
.motion-reel::before,
.social-feed a::before,
.home-chapter-preview::after {
  background: url("../img/perfacto-logo-transparent.png") center / contain no-repeat;
  bottom: clamp(14px, 2.4vw, 30px);
  content: "";
  filter: brightness(0) invert(1);
  height: clamp(30px, 4vw, 56px);
  opacity: 0.34;
  pointer-events: none;
  position: absolute;
  right: clamp(14px, 2.4vw, 30px);
  width: clamp(108px, 13vw, 190px);
  z-index: 4;
}

.watermark-frame {
  display: block;
  margin: 0;
  overflow: hidden;
  position: relative;
}

.watermark-frame img {
  display: block;
}

.hero-slide img {
  animation: heroDrift 14s ease-in-out infinite alternate;
  height: 92vh;
  inset: 0;
  position: absolute;
  width: 100%;
  z-index: 0;
}

.hero-slide::after {
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.58), rgba(0, 0, 0, 0.08) 64%, rgba(0, 0, 0, 0));
  content: "";
  inset: 0;
  position: absolute;
  z-index: 1;
}

.hero-copy {
  bottom: clamp(36px, 8vw, 108px);
  color: var(--white);
  left: clamp(22px, 7vw, 96px);
  max-width: min(720px, 74vw);
  opacity: 0;
  position: absolute;
  transform: translateY(22px);
  transition: opacity 720ms ease 280ms, transform 720ms ease 280ms;
  z-index: 2;
}

.hero-slide.is-active .hero-copy {
  opacity: 1;
  transform: translateY(0);
}

.eyebrow,
.kicker {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  margin: 0 0 18px;
  text-transform: uppercase;
}

.hero h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.8rem, 9vw, 8.4rem);
  font-weight: 400;
  line-height: 0.9;
  margin: 0 0 24px;
  max-width: 760px;
}

.hero p:not(.eyebrow) {
  font-size: clamp(1rem, 1.5vw, 1.28rem);
  line-height: 1.7;
  margin: 0 0 30px;
  max-width: 540px;
}

.hero-controls {
  bottom: clamp(24px, 4vw, 54px);
  display: flex;
  gap: 12px;
  position: absolute;
  right: clamp(22px, 5vw, 70px);
  z-index: 4;
}

.hero-controls button {
  background: rgba(255, 250, 244, 0.12);
  border: 1px solid rgba(255, 250, 244, 0.42);
  border-radius: 0;
  color: var(--white);
  cursor: pointer;
  font: inherit;
  font-size: 0.72rem;
  height: 42px;
  letter-spacing: 0.14em;
  min-width: 54px;
  transition: background 220ms ease, color 220ms ease;
}

.hero-controls button.is-active {
  background: var(--white);
  color: var(--deep);
}

.hero-progress {
  background: rgba(255, 250, 244, 0.22);
  bottom: 0;
  height: 3px;
  left: 0;
  position: absolute;
  right: 0;
  z-index: 5;
}

.hero-progress span {
  background: var(--white);
  display: block;
  height: 100%;
  transform: scaleX(0);
  transform-origin: left;
}

.hero-progress span.is-running {
  animation: progressFill 6.2s linear forwards;
}

.text-link {
  display: inline-block;
  font-size: 0.76rem;
  letter-spacing: 0.18em;
  padding-bottom: 8px;
  text-transform: uppercase;
}

.section-pad {
  padding: clamp(70px, 11vw, 150px) clamp(22px, 6vw, 92px);
}

.intro h2,
.business h2,
.feature-copy h2,
.chapter-heading h2,
.footer h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.1rem, 5vw, 5rem);
  font-weight: 400;
  line-height: 1.03;
  margin: 0;
}

.intro {
  margin: 0 auto;
  max-width: 1420px;
}

.intro h2 {
  max-width: 1100px;
}

.intro-grid {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 34px;
  grid-template-columns: 1fr 1fr;
  margin-top: clamp(38px, 7vw, 82px);
  padding-top: 34px;
}

.intro-grid p,
.feature-copy p,
.chapter-text p,
.business p,
.footer address {
  color: var(--muted);
  font-size: clamp(1rem, 1.16vw, 1.1rem);
  line-height: 1.78;
  margin: 0;
}

.project-data {
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.project-data div {
  border-right: 1px solid var(--line);
  display: grid;
  gap: 12px;
  min-height: 150px;
  padding: clamp(24px, 3vw, 42px);
}

.project-data div:last-child {
  border-right: 0;
}

.project-data span {
  color: var(--muted);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.project-data strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.2rem, 2vw, 2rem);
  font-weight: 400;
  line-height: 1.08;
}

.feature-band {
  background: var(--deep);
  color: var(--white);
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  min-height: 760px;
}

.feature-media {
  overflow: hidden;
  position: relative;
}

.feature-media img {
  height: 100%;
  min-height: 520px;
  width: 100%;
}

.feature-copy {
  align-content: center;
  display: grid;
  padding: clamp(42px, 6vw, 90px);
}

.feature-copy p {
  color: rgba(255, 250, 244, 0.72);
  margin-top: 28px;
  max-width: 460px;
}

.catalog {
  border-bottom: 1px solid var(--line);
}

.catalog-heading {
  align-items: end;
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, 0.82fr) minmax(280px, 0.18fr);
  margin-bottom: clamp(34px, 6vw, 78px);
}

.catalog-heading h2,
.page-hero-copy h1,
.chapters-page .chapter-text h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.1rem, 5vw, 5rem);
  font-weight: 400;
  line-height: 1.03;
  margin: 0;
}

.catalog-grid {
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(4, 1fr);
}

.catalog-card {
  aspect-ratio: 4 / 5;
  background: var(--deep);
  color: var(--white);
  min-height: 420px;
  overflow: hidden;
  position: relative;
}

.catalog-card.large {
  grid-column: span 2;
  grid-row: span 2;
}

.catalog-card.wide {
  aspect-ratio: 2 / 1;
  grid-column: span 2;
  min-height: 300px;
}

.catalog-card img {
  height: 100%;
  inset: 0;
  position: absolute;
  transform: scale(1.02);
  transition: transform 900ms ease, filter 420ms ease;
  width: 100%;
}

.catalog-card::after {
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.66), rgba(0, 0, 0, 0.08) 58%);
  content: "";
  inset: 0;
  position: absolute;
  z-index: 1;
}

.catalog-card::before {
  z-index: 2;
}

.catalog-card div {
  bottom: 28px;
  display: grid;
  gap: 12px;
  left: 28px;
  max-width: min(420px, calc(100% - 56px));
  position: absolute;
  right: 28px;
  transform: translateY(12px);
  transition: transform 500ms ease;
  z-index: 2;
}

.catalog-card span {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.catalog-card strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.35rem, 2.4vw, 3.2rem);
  font-weight: 400;
  line-height: 1.02;
}

.catalog-card:hover img {
  filter: contrast(1.04) saturate(0.92);
  transform: scale(1.09);
}

.catalog-card:hover div {
  transform: translateY(0);
}

.stylebook {
  display: grid;
  gap: clamp(56px, 8vw, 120px);
}

.chapter-heading {
  align-items: end;
  display: grid;
  gap: 22px;
  grid-template-columns: 1fr auto;
}

.chapter-cta {
  border: 1px solid var(--line);
  display: inline-grid;
  font-size: 0.74rem;
  height: 48px;
  letter-spacing: 0.14em;
  padding: 0 22px;
  place-items: center;
  text-transform: uppercase;
}

.chapter {
  align-items: center;
  display: grid;
  gap: clamp(30px, 6vw, 86px);
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.28fr);
}

.home-chapter-preview {
  overflow: hidden;
  position: relative;
}

.chapter-reverse {
  grid-template-columns: minmax(0, 1.28fr) minmax(280px, 0.72fr);
}

.chapter-reverse .chapter-text {
  order: 2;
}

.chapter-gallery-shell {
  min-width: 0;
}

.chapter-slideshow {
  background: var(--ink);
  overflow: hidden;
  position: relative;
}

.chapter-slide {
  inset: 0;
  margin: 0;
  opacity: 0;
  position: absolute;
  transform: scale(1.015);
  transition: opacity 620ms ease, transform 900ms ease;
}

.chapter-slide::before {
  z-index: 3;
}

.chapter-slide.is-active {
  opacity: 1;
  position: relative;
  transform: scale(1);
  z-index: 1;
}

.chapter-slide img {
  aspect-ratio: 16 / 10;
  display: block;
  height: auto;
  transition: filter 400ms ease, transform 700ms ease;
  width: 100%;
}

.chapter-caption {
  background: rgba(23, 21, 19, 0.72);
  bottom: 18px;
  color: var(--white);
  font-size: 0.72rem;
  left: 18px;
  letter-spacing: 0.12em;
  max-width: calc(100% - 36px);
  padding: 10px 14px;
  position: absolute;
  text-transform: uppercase;
  z-index: 4;
}

.chapter:hover .chapter-slide.is-active img {
  filter: contrast(1.04) saturate(0.94);
  transform: scale(1.015);
}

.chapter-arrow {
  background: rgba(10, 10, 10, 0.52);
  border: 1px solid rgba(255, 255, 255, 0.38);
  color: var(--white);
  cursor: pointer;
  font-size: 0;
  height: 48px;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  transition: background 250ms ease, border-color 250ms ease;
  width: 48px;
  z-index: 3;
}

.chapter-arrow::before {
  border: solid currentColor;
  border-width: 0 1px 1px 0;
  content: "";
  display: block;
  height: 11px;
  left: 50%;
  position: absolute;
  top: 50%;
  width: 11px;
}

.chapter-arrow:hover {
  background: rgba(10, 10, 10, 0.75);
  border-color: rgba(255, 255, 255, 0.72);
}

.chapter-arrow-prev {
  left: 18px;
}

.chapter-arrow-prev::before {
  transform: translate(-35%, -50%) rotate(135deg);
}

.chapter-arrow-next {
  right: 18px;
}

.chapter-arrow-next::before {
  transform: translate(-65%, -50%) rotate(-45deg);
}

.chapter-thumbs {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: thin;
}

.chapter-thumb {
  background: transparent;
  border: 0;
  cursor: pointer;
  flex: 0 0 clamp(82px, 8vw, 126px);
  opacity: 0.56;
  padding: 0;
  transition: opacity 240ms ease, transform 240ms ease;
}

.chapter-thumb.is-active,
.chapter-thumb:hover {
  opacity: 1;
  transform: translateY(-2px);
}

.chapter-thumb img {
  aspect-ratio: 5 / 4;
  display: block;
  height: auto;
  min-height: 0;
  width: 100%;
}

.chapter-text {
  max-width: 480px;
}

.chapter-text span {
  color: var(--clay);
  display: inline-block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
  margin-bottom: 28px;
}

.chapter-text h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 3.8vw, 4.5rem);
  font-weight: 400;
  line-height: 1;
  margin: 0 0 24px;
}

.motion-section {
  background: var(--deep);
  color: var(--white);
  display: grid;
  gap: clamp(34px, 6vw, 90px);
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.28fr);
  overflow: hidden;
  padding: clamp(58px, 9vw, 120px) clamp(22px, 6vw, 92px);
}

.motion-copy {
  align-content: center;
  display: grid;
}

.motion-copy h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4.6vw, 5rem);
  font-weight: 400;
  line-height: 1.02;
  margin: 0 0 28px;
}

.motion-copy p:not(.kicker) {
  color: rgba(255, 250, 244, 0.72);
  font-size: clamp(1rem, 1.16vw, 1.1rem);
  line-height: 1.76;
  margin: 0;
  max-width: 460px;
}

.motion-reel {
  aspect-ratio: 16 / 10;
  max-width: 100%;
  min-height: 440px;
  min-width: 0;
  overflow: hidden;
  position: relative;
  width: 100%;
}

.motion-reel::after {
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.64), rgba(0, 0, 0, 0.04) 54%);
  content: "";
  inset: 0;
  position: absolute;
  z-index: 3;
}

.motion-reel::before {
  z-index: 4;
}

.motion-reel img {
  height: 100%;
  inset: 0;
  opacity: 0;
  position: absolute;
  transform: scale(1.06);
  width: 100%;
}

.motion-reel img:nth-child(1) {
  animation: reelOne 15s infinite;
}

.motion-reel img:nth-child(2) {
  animation: reelTwo 15s infinite;
}

.motion-reel img:nth-child(3) {
  animation: reelThree 15s infinite;
}

.reel-caption {
  bottom: clamp(20px, 4vw, 48px);
  color: var(--white);
  display: grid;
  gap: 12px;
  left: clamp(20px, 4vw, 48px);
  max-width: min(460px, calc(100% - 40px));
  position: absolute;
  z-index: 4;
}

.reel-caption span {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.reel-caption strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.6rem, 3vw, 3.4rem);
  font-weight: 400;
  line-height: 1.06;
}

.page-hero {
  min-height: 760px;
  overflow: hidden;
  position: relative;
}

.page-hero img {
  animation: heroDrift 14s ease-in-out infinite alternate;
  height: 760px;
  width: 100%;
}

.page-hero::after {
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.66), rgba(0, 0, 0, 0.1) 68%);
  content: "";
  inset: 0;
  position: absolute;
}

.page-hero-copy {
  bottom: clamp(54px, 8vw, 110px);
  color: var(--white);
  left: clamp(22px, 7vw, 96px);
  max-width: 820px;
  position: absolute;
  z-index: 2;
}

.page-hero-copy p:not(.eyebrow) {
  font-size: clamp(1rem, 1.5vw, 1.24rem);
  line-height: 1.72;
  max-width: 560px;
}

.chapter-index {
  background: rgba(244, 241, 237, 0.9);
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(6, minmax(180px, 1fr));
  overflow-x: auto;
  position: sticky;
  top: 76px;
  z-index: 8;
}

.chapter-index a {
  border-right: 1px solid var(--line);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  min-height: 62px;
  padding: 24px;
  text-transform: uppercase;
}

.chapter-index a:last-child {
  border-right: 0;
}

.chapters-page {
  scroll-margin-top: 150px;
}

.chapters-page .chapter {
  scroll-margin-top: 170px;
}

.chapter-gallery {
  scroll-margin-top: 140px;
}

.quote-band {
  align-items: center;
  background: var(--stone);
  display: flex;
  min-height: 430px;
  padding: clamp(50px, 9vw, 120px);
}

.quote-band blockquote {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 5vw, 5.2rem);
  font-weight: 400;
  line-height: 1.06;
  margin: 0;
  max-width: 1180px;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.gallery img {
  aspect-ratio: 3 / 4;
  cursor: zoom-in;
  height: 100%;
  width: 100%;
}

.gallery .watermark-frame img {
  aspect-ratio: 3 / 4;
  height: 100%;
  width: 100%;
}

[data-lightbox-src] {
  cursor: zoom-in;
}

.has-lightbox {
  overflow: hidden;
}

.image-lightbox {
  align-items: center;
  background: rgba(18, 16, 14, 0.92);
  display: grid;
  inset: 0;
  opacity: 0;
  padding: clamp(18px, 4vw, 56px);
  pointer-events: none;
  position: fixed;
  transition: opacity 220ms ease;
  z-index: 999;
}

.image-lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.image-lightbox img {
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
  display: block;
  justify-self: center;
  max-height: min(86vh, 980px);
  max-width: min(92vw, 1480px);
  object-fit: contain;
}

.image-lightbox-close {
  background: rgba(255, 250, 244, 0.96);
  border: 0;
  color: var(--ink);
  cursor: pointer;
  font-size: 0.72rem;
  justify-self: end;
  letter-spacing: 0.14em;
  margin-bottom: 16px;
  min-height: 44px;
  padding: 0 18px;
  text-transform: uppercase;
}

.media-section {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
}

.media-heading {
  align-items: end;
  display: grid;
  gap: 30px;
  grid-template-columns: 1fr minmax(220px, 0.24fr);
  margin-bottom: clamp(38px, 6vw, 82px);
}

.media-heading h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.1rem, 5vw, 5rem);
  font-weight: 400;
  line-height: 1.03;
  margin: 0;
  max-width: 980px;
}

.media-profile {
  border: 1px solid var(--line);
  display: grid;
  gap: 10px;
  min-height: 118px;
  padding: 24px;
  transition: background 240ms ease, color 240ms ease;
}

.media-profile span,
.media-feature span,
.social-feed span,
.social-strip a {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.media-profile strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
  font-weight: 400;
  line-height: 1;
}

.media-profile:hover {
  background: var(--deep);
  color: var(--white);
}

.media-layout {
  display: grid;
  gap: 1px;
  grid-template-columns: minmax(0, 1.36fr) minmax(280px, 0.64fr);
}

.media-layout > * {
  min-width: 0;
}

.media-feature {
  aspect-ratio: 16 / 10;
  background: var(--deep);
  color: var(--white);
  display: block;
  max-width: 100%;
  min-height: 560px;
  min-width: 0;
  overflow: hidden;
  position: relative;
  width: 100%;
}

.media-feature img {
  height: 100%;
  inset: 0;
  position: absolute;
  transform: scale(1.02);
  transition: transform 1000ms ease, filter 480ms ease;
  width: 100%;
}

.media-feature::before {
  border: 1px solid rgba(255, 250, 244, 0.54);
  border-radius: 999px;
  color: var(--white);
  content: "Play";
  display: grid;
  font-size: 0.72rem;
  height: 76px;
  letter-spacing: 0.16em;
  place-items: center;
  position: absolute;
  right: clamp(22px, 4vw, 48px);
  text-transform: uppercase;
  top: clamp(22px, 4vw, 48px);
  width: 76px;
  z-index: 3;
}

.media-feature::after {
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.08) 58%);
  content: "";
  inset: 0;
  position: absolute;
  z-index: 1;
}

.media-feature .photo-watermark {
  z-index: 3;
}

.media-feature div {
  bottom: clamp(26px, 4vw, 54px);
  display: grid;
  gap: 16px;
  left: clamp(24px, 4vw, 54px);
  max-width: min(620px, calc(100% - 48px));
  position: absolute;
  right: clamp(24px, 4vw, 54px);
  z-index: 2;
}

.media-feature strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 5rem);
  font-weight: 400;
  line-height: 1.02;
  overflow-wrap: anywhere;
}

.media-feature:hover img {
  filter: contrast(1.05) saturate(0.9);
  transform: scale(1.09);
}

.social-feed {
  display: grid;
  gap: 1px;
}

.social-feed a {
  background: var(--deep);
  color: var(--white);
  min-height: 186px;
  overflow: hidden;
  position: relative;
}

.social-feed img {
  height: 100%;
  inset: 0;
  opacity: 0.86;
  position: absolute;
  transform: scale(1.02);
  transition: opacity 320ms ease, transform 700ms ease;
  width: 100%;
}

.social-feed a::after {
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.68), rgba(0, 0, 0, 0.04) 62%);
  content: "";
  inset: 0;
  position: absolute;
  z-index: 1;
}

.social-feed a::before {
  bottom: 18px;
  height: 30px;
  right: 18px;
  width: 106px;
  z-index: 2;
}

.social-feed span {
  bottom: 24px;
  left: 24px;
  position: absolute;
  right: 24px;
  z-index: 2;
}

.social-feed a:hover img {
  opacity: 1;
  transform: scale(1.08);
}

.instagram-embed-panel {
  background: #f6f1ea;
  border: 1px solid var(--line);
  display: grid;
  min-height: 560px;
  padding: clamp(18px, 2.5vw, 34px);
}

.instagram-frame {
  align-content: center;
  background: rgba(255, 250, 244, 0.68);
  border: 1px solid rgba(37, 34, 29, 0.1);
  display: grid;
  justify-items: center;
  min-height: 100%;
  overflow: hidden;
  padding: 18px;
}

.instagram-frame > * {
  max-width: 100%;
}

.instagram-frame iframe {
  border: 0;
  max-width: 100%;
  min-height: 480px;
  width: 100%;
}

.instagram-frame .instagram-media {
  margin: 0 auto !important;
  min-width: 0 !important;
  width: 100% !important;
}

.social-strip {
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: clamp(34px, 5vw, 70px);
}

.social-strip a {
  border-right: 1px solid var(--line);
  min-height: 68px;
  padding: 26px;
  transition: background 220ms ease, color 220ms ease;
}

.social-strip a:last-child {
  border-right: 0;
}

.social-strip a:hover {
  background: var(--deep);
  color: var(--white);
}

.blog-preview,
.blog-archive {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.blog-heading {
  align-items: end;
  display: grid;
  gap: 22px;
  grid-template-columns: 1fr auto;
  margin-bottom: clamp(34px, 6vw, 78px);
}

.blog-heading h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.1rem, 5vw, 5rem);
  font-weight: 400;
  line-height: 1.03;
  margin: 0;
  max-width: 980px;
}

.post-grid {
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(3, 1fr);
}

.post-card {
  background: var(--white);
  min-width: 0;
}

.post-card a {
  display: grid;
  min-height: 100%;
}

.post-image-frame img,
.post-card img {
  aspect-ratio: 4 / 5;
  height: auto;
  width: 100%;
}

.post-card div {
  border: 1px solid var(--line);
  border-top: 0;
  display: grid;
  gap: 16px;
  padding: clamp(22px, 3vw, 34px);
}

.post-card span,
.post-empty span {
  color: var(--clay);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.post-card h2,
.post-card h3,
.post-empty h2,
.post-empty h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.7rem, 2.6vw, 3.1rem);
  font-weight: 400;
  line-height: 1.04;
  margin: 0;
}

.post-card p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.72;
  margin: 0;
}

.post-empty {
  border: 1px solid var(--line);
  display: grid;
  gap: 18px;
  grid-column: 1 / -1;
  min-height: 260px;
  padding: clamp(28px, 5vw, 64px);
}

.pagination-wrap {
  margin-top: clamp(34px, 5vw, 70px);
}

.pagination-wrap .nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.pagination-wrap a,
.pagination-wrap span {
  border: 1px solid var(--line);
  display: inline-grid;
  min-height: 44px;
  min-width: 44px;
  padding: 12px 16px;
  place-items: center;
}

.single-content {
  margin: 0 auto;
  max-width: 980px;
}

.single-content > * {
  margin-left: auto;
  margin-right: auto;
  max-width: 760px;
}

.single-content p,
.single-content li {
  color: var(--muted);
  font-size: clamp(1.05rem, 1.3vw, 1.22rem);
  line-height: 1.85;
}

.single-content h2,
.single-content h3 {
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  line-height: 1.08;
  margin-top: 2.2em;
}

.single-content h2 {
  font-size: clamp(2rem, 3.8vw, 4rem);
}

.single-content h3 {
  font-size: clamp(1.6rem, 2.8vw, 2.8rem);
}

.single-content img,
.single-content figure,
.single-content .wp-block-image {
  max-width: 100%;
}

.single-content figure {
  margin-bottom: 42px;
  margin-top: 42px;
}

.single-content figcaption {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.5;
  margin-top: 12px;
}

.post-navigation {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 1px;
  grid-template-columns: 1fr 1fr;
}

.post-navigation a {
  border: 1px solid var(--line);
  display: block;
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  padding: 22px;
  text-transform: uppercase;
}

.business {
  align-items: start;
  display: grid;
  gap: clamp(32px, 6vw, 88px);
  grid-template-columns: 1fr 0.62fr;
}

.footer {
  background: var(--deep);
  color: var(--white);
  display: grid;
  gap: clamp(32px, 5vw, 80px);
  grid-template-columns: 0.8fr 0.8fr 1fr;
  padding: clamp(56px, 8vw, 110px) clamp(22px, 6vw, 92px);
}

.footer-logo {
  display: inline-block;
  margin-top: 22px;
  max-width: min(380px, 74vw);
}

.footer-logo img {
  display: block;
  filter: brightness(0) invert(1);
  height: auto;
  opacity: 0.94;
  width: 100%;
}

.footer address {
  color: rgba(255, 250, 244, 0.72);
  font-style: normal;
}

.contact-form {
  display: grid;
  gap: 16px;
}

.contact-form label {
  color: rgba(255, 250, 244, 0.72);
  display: grid;
  font-size: 0.72rem;
  gap: 8px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.contact-form input,
.contact-form textarea {
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(255, 250, 244, 0.32);
  border-radius: 0;
  color: var(--white);
  font: inherit;
  min-height: 42px;
  outline: none;
  padding: 10px 0;
}

.contact-form textarea {
  min-height: 96px;
  resize: vertical;
}

.contact-form button {
  background: var(--white);
  border: 1px solid var(--white);
  border-radius: 0;
  color: var(--deep);
  cursor: pointer;
  font: inherit;
  height: 48px;
  letter-spacing: 0.14em;
  margin-top: 8px;
  text-transform: uppercase;
}

.floating-whatsapp {
  align-items: center;
  background: #17382f;
  border: 1px solid rgba(255, 250, 244, 0.22);
  bottom: 28px;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.26);
  color: var(--white);
  display: inline-flex;
  gap: 14px;
  min-height: 62px;
  padding: 10px 22px 10px 10px;
  position: fixed;
  right: 28px;
  transition: background 220ms ease, border-color 220ms ease, transform 220ms ease;
  z-index: 90;
}

.floating-whatsapp span {
  align-items: center;
  background: rgba(255, 250, 244, 0.95);
  color: #17382f;
  display: inline-flex;
  font-size: 0.68rem;
  height: 42px;
  justify-content: center;
  letter-spacing: 0.08em;
  width: 42px;
}

.floating-whatsapp strong {
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.floating-whatsapp:hover {
  background: #102820;
  border-color: rgba(255, 250, 244, 0.42);
  transform: translateY(-3px);
}

.floating-whatsapp:hover span {
  background: var(--white);
  color: #102820;
}

@media (max-width: 900px) {
  .desktop-nav {
    display: none;
  }

  .menu-button {
    display: inline-grid;
    place-items: center;
  }

  .mobile-nav.is-open {
    display: grid;
  }

  .hero,
  .hero-slider,
  .hero-slide,
  .hero-slide img {
    min-height: 760px;
  }

  .hero-slide img {
    height: 760px;
  }

  .intro-grid,
  .feature-band,
  .catalog-heading,
  .media-heading,
  .media-layout,
  .chapter,
  .chapter-reverse,
  .motion-section,
  .business,
  .footer {
    grid-template-columns: 1fr;
  }

  .project-data {
    grid-template-columns: 1fr 1fr;
  }

  .project-data div:nth-child(2) {
    border-right: 0;
  }

  .chapter-reverse .chapter-text {
    order: 0;
  }

  .gallery {
    grid-template-columns: 1fr 1fr;
  }

  .catalog-grid {
    grid-template-columns: 1fr 1fr;
  }

  .catalog-card,
  .catalog-card.large,
  .catalog-card.wide {
    aspect-ratio: 4 / 5;
    grid-column: auto;
    grid-row: auto;
    min-height: 360px;
  }

  .chapter-heading {
    grid-template-columns: 1fr;
  }

  .blog-heading,
  .post-navigation {
    grid-template-columns: 1fr;
  }

  .chapter-index {
    grid-template-columns: repeat(5, minmax(190px, 1fr));
  }

  .media-feature {
    min-height: 480px;
  }

  .instagram-embed-panel {
    min-height: 500px;
  }

  .social-feed {
    grid-template-columns: repeat(3, 1fr);
  }

  .social-feed a {
    min-height: 220px;
  }

  .post-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .site-header {
    height: 76px;
    padding-inline: 18px;
  }

  .brand {
    width: 168px;
  }

  .brand img,
  .brand .custom-logo {
    max-height: 56px;
  }

  .hero,
  .hero-slider,
  .hero-slide,
  .hero-slide img {
    min-height: 680px;
  }

  .hero-slide img {
    height: 680px;
  }

  .hero-slide::after {
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.08) 72%);
  }

  .hero-copy {
    bottom: 112px;
    left: 20px;
    right: 20px;
  }

  .hero h1 {
    font-size: clamp(3.4rem, 18vw, 5.6rem);
  }

  .hero-controls {
    bottom: 18px;
    left: 20px;
    right: auto;
  }

  .section-pad {
    padding-inline: 20px;
  }

  .feature-copy {
    padding: 44px 20px 58px;
  }

  .project-data {
    grid-template-columns: 1fr;
  }

  .project-data div {
    border-right: 0;
  }

  .motion-section {
    padding-inline: 20px;
  }

  .motion-reel {
    min-height: 360px;
  }

  .catalog-grid,
  .social-feed,
  .social-strip {
    grid-template-columns: 1fr;
  }

  .chapter-index {
    grid-template-columns: repeat(3, minmax(180px, 1fr));
  }

  .chapter-thumbs {
    margin-top: 8px;
  }

  .chapter-thumb {
    flex-basis: 88px;
  }

  .chapter-arrow {
    height: 42px;
    width: 42px;
  }

  .catalog-card,
  .catalog-card.large,
  .catalog-card.wide {
    min-height: 420px;
  }

  .floating-whatsapp {
    bottom: 16px;
    min-height: 48px;
    padding: 6px 12px 6px 6px;
    right: 16px;
  }

  .floating-whatsapp span {
    height: 34px;
    width: 34px;
  }

  .catalog-card div {
    bottom: 24px;
    left: 20px;
    right: 20px;
  }

  .media-profile {
    min-height: auto;
  }

  .media-feature {
    min-height: 520px;
  }

  .media-feature::before {
    height: 62px;
    width: 62px;
  }

  .social-strip a {
    border-bottom: 1px solid var(--line);
    border-right: 0;
  }

  .social-strip a:last-child {
    border-bottom: 0;
  }

  .page-hero,
  .page-hero img {
    min-height: 640px;
  }

  .page-hero img {
    height: 640px;
  }

  .page-hero::after {
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.08) 72%);
  }

  .page-hero-copy {
    bottom: 44px;
    left: 20px;
    right: 20px;
  }

  .chapter-index {
    position: static;
  }

  .gallery {
    grid-template-columns: 1fr;
  }

  .home-gallery {
    display: none;
  }

  .home-chapter-preview {
    display: none;
  }
}

@keyframes heroDrift {
  from {
    transform: scale(1.02) translate3d(-1.2%, 0, 0);
  }

  to {
    transform: scale(1.09) translate3d(1.2%, -1%, 0);
  }
}

@keyframes progressFill {
  from {
    transform: scaleX(0);
  }

  to {
    transform: scaleX(1);
  }
}

@keyframes reelOne {
  0%,
  35% {
    opacity: 1;
    transform: scale(1.06) translateX(0);
  }

  45%,
  100% {
    opacity: 0;
    transform: scale(1.12) translateX(-3%);
  }
}

@keyframes reelTwo {
  0%,
  28% {
    opacity: 0;
    transform: scale(1.08) translateX(3%);
  }

  38%,
  68% {
    opacity: 1;
    transform: scale(1.02) translateX(0);
  }

  78%,
  100% {
    opacity: 0;
    transform: scale(1.1) translateX(-2%);
  }
}

@keyframes reelThree {
  0%,
  62% {
    opacity: 0;
    transform: scale(1.08) translateY(2%);
  }

  72%,
  100% {
    opacity: 1;
    transform: scale(1.02) translateY(0);
  }
}

.hero .hero-slide {
  inset: 0;
  position: absolute;
}
