:root {
  --color-primary: #b83262;
  --color-secondary: #5f7d68;
  --color-accent: #d77943;
  --color-background: #fbf4ef;
  --color-surface: #fffaf6;
  --color-ink: #241d1a;
  --color-muted: #6f615a;
  --color-line: rgba(36, 29, 26, 0.14);
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --radius-card: 8px;
  --shadow-sm: 0 1px 2px rgba(36, 29, 26, 0.08);
  --shadow-md: 0 12px 30px rgba(36, 29, 26, 0.12);
  --shadow-lg: 0 24px 70px rgba(36, 29, 26, 0.18);
  --container: min(1160px, calc(100vw - 40px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

section[id] {
  scroll-margin-top: 94px;
}

body {
  margin: 0;
  background: var(--color-background);
  color: var(--color-ink);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  letter-spacing: 0;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

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

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid rgba(215, 121, 67, 0.75);
  outline-offset: 4px;
}

.site-header {
  position: fixed;
  top: 16px;
  left: 50%;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  width: min(1080px, calc(100vw - 32px));
  min-height: 58px;
  padding: 7px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  background: rgba(35, 29, 26, 0.72);
  color: #fffaf6;
  backdrop-filter: blur(16px);
  transform: translateX(-50%);
}

.brand-mark {
  display: inline-grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 200ms ease, border-color 200ms ease;
}

.brand-mark:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.46);
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: clamp(14px, 3vw, 34px);
  font-size: 0.83rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-links a {
  border-bottom: 1px solid transparent;
  color: rgba(255, 250, 246, 0.82);
  cursor: pointer;
  transition: color 200ms ease, border-color 200ms ease;
}

.nav-links a:hover {
  border-color: currentColor;
  color: #fff;
}

.header-cta {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  border-radius: 8px;
  background: #fffaf6;
  color: var(--color-ink);
  font-size: 0.88rem;
  font-weight: 800;
  cursor: pointer;
  transition: background-color 200ms ease, color 200ms ease;
}

.header-cta:hover {
  background: var(--color-accent);
  color: #fff;
}

.menu-toggle,
.mobile-menu {
  display: none;
}

.header-cta svg,
.menu-toggle svg,
.mobile-menu-cta svg,
.btn svg,
.video-card svg,
.proof-card svg,
.gallery-dialog button svg {
  width: 18px;
  height: 18px;
  stroke-width: 1.9;
  flex: 0 0 auto;
}

.section-dark,
.section-ink {
  color: #fffaf6;
}

.section-light {
  background: var(--color-background);
}

.section-cream {
  background: #f7eadf;
}

.hero {
  position: relative;
  min-height: 92svh;
  overflow: hidden;
  padding: 118px 0 34px;
  isolation: isolate;
}

.hero-bg,
.hero-bg img,
.contact-bg,
.contact-bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-bg img,
.contact-bg img {
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(21, 17, 15, 0.87) 0%, rgba(21, 17, 15, 0.56) 45%, rgba(21, 17, 15, 0.16) 100%),
    rgba(21, 17, 15, 0.34);
}

.hero-bg {
  z-index: -2;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.7fr);
  align-items: center;
  gap: clamp(28px, 7vw, 88px);
  width: var(--container);
  min-height: calc(92svh - 220px);
  margin: 0 auto;
}

.hero-copy,
.hero-panel,
.intro-copy,
.intro-text,
.section-heading > *,
.offer-card,
.proof-card {
  min-width: 0;
}

.eyebrow,
.section-kicker {
  margin: 0 0 16px;
  color: var(--color-accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero h1,
.intro h2,
.section-heading h2,
.contact h2 {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  letter-spacing: 0;
  line-height: 0.96;
}

.hero h1 {
  max-width: 760px;
  font-size: clamp(4.2rem, 12vw, 10.5rem);
  font-weight: 700;
}

.hero-subtitle {
  max-width: 620px;
  margin: 24px 0 0;
  color: rgba(255, 250, 246, 0.84);
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.btn {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
  cursor: pointer;
  transition: background-color 200ms ease, border-color 200ms ease, color 200ms ease, box-shadow 200ms ease, transform 200ms ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--color-accent);
  color: #fff;
  box-shadow: 0 16px 34px rgba(215, 121, 67, 0.28);
}

.btn-primary:hover {
  background: #c96631;
}

.btn-secondary {
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.08);
  color: #fffaf6;
}

.btn-secondary:hover {
  border-color: rgba(255, 255, 255, 0.58);
  background: rgba(255, 255, 255, 0.16);
}

.btn-instagram svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.1;
}

.hero-panel {
  position: relative;
  align-self: end;
  max-width: 390px;
  margin-left: auto;
}

.hero-panel > img {
  width: 100%;
  aspect-ratio: 4 / 5;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  object-fit: cover;
  box-shadow: var(--shadow-lg);
}

.snapshot {
  position: absolute;
  right: -18px;
  bottom: 22px;
  width: min(260px, 86%);
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 8px;
  background: rgba(36, 29, 26, 0.78);
  backdrop-filter: blur(14px);
}

.snapshot span {
  display: block;
  margin-bottom: 8px;
  color: rgba(255, 250, 246, 0.68);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.snapshot strong {
  display: block;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.35rem;
  line-height: 1.12;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  width: var(--container);
  margin: 34px auto 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(14px);
}

.hero-metrics div {
  min-height: 96px;
  padding: 18px;
  background: rgba(36, 29, 26, 0.36);
}

.hero-metrics span {
  display: block;
  margin-bottom: 12px;
  color: rgba(255, 250, 246, 0.58);
  font-size: 0.74rem;
  font-weight: 800;
}

.hero-metrics strong {
  display: block;
  font-size: clamp(1.05rem, 2vw, 1.45rem);
}

.intro,
.portfolio,
.work,
.proof,
.offer {
  padding: clamp(72px, 10vw, 126px) 0;
}

.intro-grid,
.section-heading,
.proof-grid,
.offer-grid {
  width: var(--container);
  margin: 0 auto;
}

.intro > .section-kicker {
  width: var(--container);
  margin-inline: auto;
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(300px, 0.75fr);
  gap: clamp(28px, 8vw, 96px);
  align-items: start;
}

.intro h2,
.section-heading h2,
.contact h2 {
  font-size: clamp(2.4rem, 5.8vw, 5.1rem);
}

.intro-text {
  color: var(--color-muted);
  font-size: clamp(1rem, 1.5vw, 1.18rem);
}

.intro-text p {
  margin: 0;
}

.intro-text p + p {
  margin-top: 20px;
}

.content-strip {
  overflow: hidden;
  border-block: 1px solid var(--color-line);
}

.strip-track {
  display: flex;
  width: max-content;
  will-change: transform;
}

.strip-group {
  display: flex;
  flex: 0 0 auto;
  gap: clamp(28px, 7vw, 76px);
  padding: 26px clamp(28px, 7vw, 76px) 26px 0;
}

.strip-group span {
  color: var(--color-ink);
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.5rem, 4vw, 3.2rem);
  white-space: nowrap;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.5fr);
  gap: clamp(22px, 7vw, 86px);
  align-items: end;
  margin-bottom: clamp(32px, 6vw, 64px);
}

.section-heading p:last-child {
  margin: 0;
  color: var(--color-muted);
  font-size: 1.02rem;
}

.portfolio-groups {
  width: var(--container);
  margin: 0 auto;
}

.portfolio-group + .portfolio-group {
  margin-top: clamp(54px, 8vw, 88px);
}

.portfolio-group-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--color-line);
}

.portfolio-group-heading h3 {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1;
}

.portfolio-group-heading span {
  color: var(--color-muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.video-card {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 9 / 16;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 8px;
  background: #2b2522;
  color: #fffaf6;
  font: inherit;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  isolation: isolate;
  transition: box-shadow 200ms ease, transform 200ms ease;
}

.video-grid-three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.video-grid-seven {
  grid-template-columns: repeat(8, minmax(0, 1fr));
}

.video-grid-seven .video-card {
  grid-column: span 2;
}

.video-grid-seven .video-card:nth-last-child(3) {
  grid-column: 2 / span 2;
}

.video-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.video-card::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(180deg, rgba(36, 29, 26, 0.02) 42%, rgba(36, 29, 26, 0.64) 100%),
    rgba(36, 29, 26, 0.18);
  pointer-events: none;
}

.video-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 450ms ease;
}

.video-card:hover img {
  transform: scale(1.03);
}

.video-card span {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 1;
  color: #fffaf6;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.13em;
}

.video-card svg {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 1;
  display: grid;
  width: 44px;
  height: 44px;
  padding: 12px;
  border: 1px solid rgba(255, 250, 246, 0.32);
  border-radius: 999px;
  background: rgba(36, 29, 26, 0.55);
  backdrop-filter: blur(10px);
}

.video-dialog {
  width: min(520px, calc(100vw - 24px));
  max-height: calc(100dvh - 24px);
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 250, 246, 0.16);
  border-radius: 8px;
  background: #181513;
  color: #fffaf6;
  box-shadow: var(--shadow-lg);
}

.video-dialog::backdrop {
  background: rgba(18, 15, 13, 0.82);
  backdrop-filter: blur(10px);
}

.video-dialog-shell {
  display: flex;
  max-height: calc(100dvh - 24px);
  flex-direction: column;
}

.video-dialog-header {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
  padding: 12px 14px 12px 18px;
  border-bottom: 1px solid rgba(255, 250, 246, 0.13);
}

.video-dialog-header span {
  display: block;
  margin-bottom: 2px;
  color: #f6a46f;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.video-dialog-header h2 {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.35rem;
  line-height: 1.1;
}

.video-dialog-close {
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255, 250, 246, 0.22);
  border-radius: 8px;
  background: transparent;
  color: #fffaf6;
  cursor: pointer;
  transition: background-color 200ms ease, border-color 200ms ease;
}

.video-dialog-close:hover {
  border-color: rgba(255, 250, 246, 0.5);
  background: rgba(255, 250, 246, 0.1);
}

.video-dialog-close svg {
  width: 20px;
  height: 20px;
}

.video-player {
  position: relative;
  min-height: 0;
  flex: 1 1 auto;
  aspect-ratio: 9 / 16;
  background: #000;
}

.video-player video,
.video-player iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: contain;
  background: #000;
}

.masonry-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-rows: repeat(4, minmax(0, 1fr));
  gap: 14px;
  width: var(--container);
  aspect-ratio: 1.1 / 1;
  margin: 0 auto;
}

.gallery-item {
  position: relative;
  min-width: 0;
  min-height: 0;
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  background: #e8ddd5;
  box-shadow: var(--shadow-sm);
  cursor: zoom-in;
}

.gallery-item-left-feature {
  grid-column: 1;
  grid-row: 1 / span 2;
}

.gallery-item:nth-child(2) {
  grid-column: 2;
  grid-row: 1;
}

.gallery-item:nth-child(3) {
  grid-column: 3;
  grid-row: 1;
}

.gallery-item:nth-child(4) {
  grid-column: 4;
  grid-row: 1;
}

.gallery-item-center-feature {
  grid-column: 2 / span 2;
  grid-row: 2 / span 2;
}

.gallery-item-right-feature {
  grid-column: 4;
  grid-row: 2 / span 2;
}

.gallery-item:nth-child(7) {
  grid-column: 1;
  grid-row: 3;
}

.gallery-item:nth-child(8) {
  grid-column: 1;
  grid-row: 4;
}

.gallery-item-center-footer {
  grid-column: 2 / span 2;
  grid-row: 4;
}

.gallery-item:nth-child(10) {
  grid-column: 4;
  grid-row: 4;
}

.gallery-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 450ms ease;
}

.gallery-item:hover img {
  transform: scale(1.03);
}

.gallery-item:focus-visible {
  outline-offset: 5px;
}

.gallery-item figcaption {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 7px 10px;
  border-radius: 8px;
  background: rgba(36, 29, 26, 0.72);
  color: #fffaf6;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
}

.gallery-item:first-child figcaption {
  min-width: 78px;
  white-space: nowrap;
}

.section-ink {
  background: #241d1a;
}

.section-ink .section-heading p:last-child,
.section-ink .section-kicker {
  color: rgba(255, 250, 246, 0.66);
}

.proof {
  padding-block: clamp(64px, 8vw, 92px);
}

.proof .section-heading {
  grid-template-columns: minmax(0, 0.75fr) minmax(250px, 0.35fr);
  margin-bottom: 36px;
}

.proof .section-heading h2 {
  max-width: 760px;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
}

.logo-row {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1px;
  width: var(--container);
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid rgba(255, 250, 246, 0.16);
  border-radius: 8px;
  background: rgba(255, 250, 246, 0.16);
}

.logo-tile {
  display: grid;
  min-height: 104px;
  place-items: center;
  background: #fffaf6;
  padding: 20px 14px;
  cursor: pointer;
  transition: background-color 200ms ease;
}

.logo-tile:hover {
  background: #f2e3d8;
}

.logo-tile img {
  width: 100%;
  height: auto;
  max-width: 128px;
  object-fit: contain;
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-top: 28px;
  border-block: 1px solid rgba(255, 250, 246, 0.16);
}

.proof-card {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 16px;
  min-height: 112px;
  padding: 22px 26px;
  border-right: 1px solid rgba(255, 250, 246, 0.16);
}

.proof-card:last-child {
  border-right: 0;
}

.proof-card svg {
  width: 24px;
  height: 24px;
  color: var(--color-accent);
}

.proof-card h3,
.offer-card h3 {
  margin: 28px 0 10px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.75rem;
  line-height: 1.08;
}

.proof-card p {
  margin: 0;
  color: rgba(255, 250, 246, 0.68);
}

.proof-card h3 {
  margin: 0 0 4px;
  font-size: 1.25rem;
}

.proof-card p {
  font-size: 0.88rem;
}

.offer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.offer-card {
  display: flex;
  overflow: hidden;
  border: 1px solid var(--color-line);
  border-radius: 8px;
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
  transition: border-color 200ms ease, box-shadow 200ms ease, transform 200ms ease;
}

.offer-card:hover {
  border-color: rgba(184, 50, 98, 0.34);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.offer-card.featured {
  border-color: rgba(215, 121, 67, 0.5);
  background:
    linear-gradient(135deg, rgba(215, 121, 67, 0.12), transparent 42%),
    var(--color-surface);
}

.offer-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.offer-card-body {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  padding: 24px;
}

.offer-card span {
  color: var(--color-secondary);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.offer-card h3 {
  margin-top: 12px;
}

.offer-card p {
  flex: 1 1 auto;
  min-height: 78px;
  margin: 0 0 22px;
  color: var(--color-muted);
}

.offer-card strong {
  display: block;
  color: var(--color-primary);
  font-size: 1.15rem;
  font-weight: 800;
}

.contact {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  isolation: isolate;
  display: grid;
  align-items: center;
}

.contact-bg {
  z-index: -2;
}

.contact-bg img {
  object-position: center 42%;
}

.contact-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(22, 18, 16, 0.88), rgba(22, 18, 16, 0.46)),
    rgba(22, 18, 16, 0.24);
}

.contact-inner {
  width: var(--container);
  margin: 0 auto;
}

.contact h2 {
  max-width: 840px;
}

.site-footer {
  display: flex;
  min-height: 82px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: var(--container);
  margin: 0 auto;
  color: var(--color-muted);
  font-size: 0.9rem;
}

.gallery-dialog {
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fffaf6;
}

.gallery-dialog::backdrop {
  background: rgba(15, 12, 11, 0.92);
  backdrop-filter: blur(10px);
}

.gallery-dialog-shell {
  position: relative;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) 64px;
  align-items: center;
  width: 100%;
  height: 100%;
  padding: 28px;
}

.gallery-preview {
  display: flex;
  min-width: 0;
  height: min(86vh, 900px);
  margin: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.gallery-preview img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: calc(100% - 48px);
  border-radius: 8px;
  object-fit: contain;
  box-shadow: var(--shadow-lg);
  user-select: none;
}

.gallery-preview figcaption {
  display: flex;
  width: min(100%, 900px);
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 14px;
  color: rgba(255, 250, 246, 0.76);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.gallery-dialog button {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(36, 29, 26, 0.62);
  color: #fffaf6;
  cursor: pointer;
  backdrop-filter: blur(12px);
  transition: background-color 200ms ease, border-color 200ms ease;
}

.gallery-dialog button:hover {
  border-color: rgba(255, 255, 255, 0.58);
  background: rgba(255, 255, 255, 0.16);
}

.gallery-dialog-close {
  position: absolute;
  top: 22px;
  right: 22px;
  z-index: 2;
}

.gallery-dialog-nav {
  justify-self: center;
}

.enhanced .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.enhanced .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: auto auto;
    justify-content: space-between;
  }

  .nav-links {
    display: none;
  }

  .header-cta {
    display: none;
  }

  .menu-toggle {
    display: inline-grid;
    width: 44px;
    height: 44px;
    place-items: center;
    justify-self: end;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    color: #fffaf6;
    cursor: pointer;
  }

  .menu-icon-close {
    display: none;
  }

  .site-header.menu-active .menu-icon-open {
    display: none;
  }

  .site-header.menu-active .menu-icon-close {
    display: block;
  }

  .mobile-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    display: block;
    width: 100%;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 8px;
    background: rgba(35, 29, 26, 0.96);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    backdrop-filter: blur(18px);
    transition: opacity 200ms ease, visibility 200ms ease, transform 200ms ease;
  }

  .site-header.menu-active .mobile-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .mobile-menu nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px;
  }

  .mobile-menu nav a,
  .mobile-menu-cta {
    display: flex;
    min-height: 44px;
    align-items: center;
    padding: 0 14px;
    border-radius: 6px;
    color: rgba(255, 250, 246, 0.86);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 200ms ease, color 200ms ease;
  }

  .mobile-menu nav a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
  }

  .mobile-menu-cta {
    justify-content: center;
    gap: 9px;
    margin-top: 6px;
    background: #fffaf6;
    color: var(--color-ink);
  }

  .hero {
    min-height: auto;
    padding-top: 104px;
  }

  .hero-inner,
  .intro-grid,
  .section-heading {
    grid-template-columns: 1fr;
  }

  .hero-inner {
    min-height: auto;
  }

  .hero-panel {
    max-width: 100%;
    margin-left: 0;
  }

  .hero-panel > img {
    height: auto;
  }

  .snapshot {
    right: 16px;
  }

  .hero-metrics,
  .offer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .proof-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .video-grid,
  .video-grid-three,
  .video-grid-seven {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .video-grid-seven .video-card {
    grid-column: auto;
  }

  .video-grid-seven .video-card:nth-last-child(3) {
    grid-column: auto;
  }

  .video-grid-seven .video-card:last-child,
  .video-grid-three .video-card:last-child {
    grid-column: 1 / -1;
    width: calc(50% - 7px);
    justify-self: center;
  }

  .masonry-gallery {
    grid-auto-flow: dense;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: none;
    grid-auto-rows: clamp(180px, 28vw, 260px);
    aspect-ratio: auto;
  }

  .gallery-item,
  .gallery-item:nth-child(n) {
    grid-column: auto;
    grid-row: auto;
  }

  .gallery-item.tall {
    grid-row: span 2;
  }

  .gallery-item.gallery-item-center-feature {
    grid-column: span 2;
    grid-row: span 2;
  }

  .gallery-item.wide {
    grid-column: span 2;
  }

  .logo-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .proof .section-heading {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-bottom: 28px;
  }

  .proof .section-heading p:last-child {
    max-width: 430px;
    justify-self: start;
  }

  .section-heading p:last-child {
    white-space: normal;
  }

  .proof-card {
    padding-inline: 18px;
  }
}

@media (max-width: 640px) {
  :root {
    --container: min(100vw - 28px, 1160px);
  }

  .site-header {
    top: 10px;
    width: calc(100vw - 20px);
    grid-template-columns: auto auto;
  }

  .mobile-menu nav {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding: 104px 0 20px;
  }

  .hero-bg img {
    object-position: 58% center;
  }

  .hero-overlay {
    background:
      linear-gradient(180deg, rgba(21, 17, 15, 0.3) 0%, rgba(21, 17, 15, 0.4) 38%, rgba(21, 17, 15, 0.92) 100%),
      rgba(21, 17, 15, 0.14);
  }

  .hero-inner {
    display: grid;
    min-height: 0;
    grid-template-columns: 1fr;
    align-items: start;
    gap: 24px;
  }

  .hero-copy {
    width: 100%;
    padding-bottom: 0;
  }

  .hero .eyebrow {
    margin-bottom: 10px;
  }

  .hero h1 {
    max-width: 330px;
    font-size: 4.35rem;
    line-height: 0.86;
  }

  .hero-subtitle {
    max-width: 340px;
    margin-top: 18px;
    font-size: 0.94rem;
    line-height: 1.48;
  }

  .hero-panel {
    display: block;
    width: min(82vw, 360px);
    margin: 0 auto;
  }

  .hero-panel > img {
    width: 100%;
    aspect-ratio: 399 / 716;
    object-position: center;
  }

  .snapshot {
    right: -8px;
    bottom: 16px;
    padding: 14px;
  }

  .snapshot strong {
    font-size: 1.08rem;
  }

  .hero-actions {
    flex-direction: row;
    align-items: stretch;
    margin-top: 22px;
  }

  .hero-actions .btn-primary {
    width: auto;
    flex: 1 1 auto;
    padding-inline: 14px;
    font-size: 0.84rem;
  }

  .hero-actions .btn-secondary {
    width: 48px;
    flex: 0 0 48px;
    padding: 0;
  }

  .hero-actions .btn-secondary span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .contact-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
  }

  .contact-actions .btn {
    width: 100%;
    padding-inline: 12px;
  }

  .contact-actions .btn-primary {
    grid-column: 1 / -1;
  }

  .proof-grid,
  .offer-grid {
    grid-template-columns: 1fr;
  }

  .hero-metrics {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 22px;
  }

  .hero-metrics div {
    min-height: 62px;
    padding: 10px 8px;
  }

  .hero-metrics span {
    margin-bottom: 5px;
    font-size: 0.62rem;
  }

  .hero-metrics strong {
    font-size: 0.78rem;
  }

  .logo-row {
    grid-template-columns: 1fr;
    gap: 8px;
    border: 0;
    background: transparent;
  }

  .portfolio-group + .portfolio-group {
    margin-top: 52px;
  }

  .portfolio-group-heading {
    margin-bottom: 14px;
  }

  .portfolio-group-heading h3 {
    font-size: 2rem;
  }

  .video-grid,
  .video-grid-three,
  .video-grid-seven {
    display: flex;
    width: calc(100vw - 14px);
    margin-left: -7px;
    gap: 9px;
    padding: 0 7px 12px;
    overflow-x: auto;
    scroll-padding-inline: 7px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .video-grid::-webkit-scrollbar {
    display: none;
  }

  .video-grid .video-card,
  .video-grid-seven .video-card:nth-last-child(3),
  .video-grid-seven .video-card:last-child,
  .video-grid-three .video-card:last-child {
    width: min(68vw, 252px);
    flex: 0 0 min(68vw, 252px);
    scroll-snap-align: start;
  }

  .masonry-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 154px;
    grid-template-rows: none;
    gap: 8px;
  }

  .gallery-item,
  .gallery-item:nth-child(n) {
    grid-column: auto;
    grid-row: span 1;
    min-height: 0;
  }

  .gallery-item.tall {
    grid-column: auto;
    grid-row: span 2;
  }

  .gallery-item.wide {
    grid-column: span 2;
    grid-row: span 1;
  }

  .gallery-item.gallery-item-center-feature {
    grid-column: span 2;
    grid-row: span 2;
  }

  .gallery-item:last-child {
    grid-column: span 2;
    min-height: 0;
  }

  .gallery-item img {
    min-height: 0;
  }

  .gallery-item figcaption {
    left: 8px;
    bottom: 8px;
    max-width: calc(100% - 16px);
    padding: 6px 8px;
    font-size: 0.65rem;
    line-height: 1.08;
  }

  .proof .section-heading {
    gap: 12px;
    margin-bottom: 22px;
  }

  .proof .section-heading h2 {
    max-width: 350px;
    font-size: clamp(2.38rem, 11vw, 3.05rem);
  }

  .proof .section-heading p:last-child {
    max-width: 300px;
    font-size: 0.9rem;
    line-height: 1.45;
  }

  .logo-tile {
    min-height: 102px;
    padding: 14px;
    border-radius: 8px;
  }

  .logo-tile img {
    max-width: min(180px, 70%);
  }

  .proof-grid {
    gap: 0;
    margin-top: 20px;
  }

  .proof-card {
    min-height: 86px;
    grid-template-columns: 28px minmax(0, 1fr);
    padding: 18px 14px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 250, 246, 0.14);
  }

  .proof-card h3,
  .proof-card p {
    overflow-wrap: anywhere;
  }

  .proof-card:last-child {
    border-bottom: 0;
  }

  .offer-card p {
    min-height: 0;
  }

  .offer-card-body {
    padding: 18px;
  }

  .offer-card h3 {
    margin: 10px 0 8px;
    font-size: 1.38rem;
  }

  .offer-card p {
    margin-bottom: 16px;
    font-size: 0.9rem;
    line-height: 1.45;
  }

  .offer-card strong {
    font-size: 1.02rem;
  }

  .site-footer {
    justify-content: center;
    padding: 22px 0;
    text-align: center;
  }

  .gallery-dialog-shell {
    display: flex;
    padding: 62px 14px 20px;
    touch-action: pan-y;
  }

  .gallery-preview {
    width: 100%;
    height: 100%;
  }

  .gallery-preview img {
    max-height: calc(100% - 58px);
  }

  .gallery-dialog-nav {
    display: none;
  }

  .gallery-dialog-close {
    top: 12px;
    right: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
