:root {
  color-scheme: light;
  --ink: #171512;
  --muted: #6e675d;
  --paper: #f6f1e8;
  --paper-deep: #ebe3d6;
  --panel: #fffaf1;
  --panel-soft: #efe7da;
  --line: rgba(23, 21, 18, 0.14);
  --gold: #9b8547;
  --gold-deep: #887d00;
  --stone: #d6cab9;
  --white: #ffffff;
  --black: #030303;
  --max: 1180px;
  --header-height: 76px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, rgba(255, 250, 241, 0.62), rgba(246, 241, 232, 0) 520px),
    var(--paper);
  color: var(--ink);
}

body::selection {
  background: rgba(155, 133, 71, 0.22);
}

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

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

p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
  margin: 0;
}

h1,
h2,
h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: 0;
  margin: 0;
}

h1 {
  max-width: 980px;
  color: var(--ink);
  font-size: clamp(3rem, 8vw, 7.6rem);
  line-height: 0.94;
}

h2 {
  font-size: clamp(2rem, 4.3vw, 4.7rem);
  line-height: 1;
}

h3 {
  font-size: clamp(1.35rem, 2vw, 2rem);
  line-height: 1.12;
}

.site-header {
  align-items: center;
  background: rgba(246, 241, 232, 0.78);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(23, 21, 18, 0.06);
  display: grid;
  gap: 22px;
  grid-template-columns: auto 1fr auto;
  height: var(--header-height);
  left: 0;
  padding: 0 clamp(18px, 4vw, 56px);
  position: fixed;
  right: 0;
  top: 0;
  transition: border-color 240ms ease, background 240ms ease, box-shadow 240ms ease;
  z-index: 20;
}

.site-header.is-scrolled {
  background: rgba(246, 241, 232, 0.96);
  border-color: var(--line);
  box-shadow: 0 18px 50px rgba(23, 21, 18, 0.08);
}

.brand-mark,
.site-nav,
.header-cta,
.button,
.text-link {
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-mark {
  align-items: center;
  display: inline-flex;
  gap: 12px;
  min-width: 0;
}

.brand-logo-wide {
  height: 38px;
  object-fit: contain;
  width: 108px;
}

.brand-logo-wrap {
  align-items: center;
  background: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.22);
  display: inline-flex;
  height: 38px;
  justify-content: center;
  padding: 4px;
  width: 38px;
}

.brand-logo {
  height: 100%;
  object-fit: contain;
  width: 100%;
}

.brand-name {
  color: var(--ink);
  white-space: nowrap;
}

.site-nav {
  display: flex;
  gap: clamp(16px, 3vw, 36px);
  justify-content: center;
}

.site-nav a {
  color: rgba(23, 21, 18, 0.68);
  position: relative;
}

.site-nav a::after {
  background: currentColor;
  bottom: -8px;
  content: "";
  height: 1px;
  left: 0;
  position: absolute;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 260ms ease;
  width: 100%;
}

.site-nav a:hover,
.text-link:hover {
  color: var(--gold);
}

.site-nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header-cta {
  border: 1px solid rgba(23, 21, 18, 0.42);
  color: var(--ink);
  padding: 13px 16px;
  transition: background 220ms ease, color 220ms ease, transform 220ms ease;
}

.header-cta:hover {
  background: var(--ink);
  color: var(--paper);
  transform: translateY(-1px);
}

.hero {
  align-items: end;
  display: grid;
  min-height: 96vh;
  overflow: hidden;
  padding: calc(var(--header-height) + 9vh) clamp(18px, 5vw, 70px) 7vh;
  position: relative;
}

.hero::after {
  background: linear-gradient(90deg, rgba(155, 133, 71, 0.3), rgba(155, 133, 71, 0));
  bottom: 0;
  content: "";
  height: 1px;
  left: clamp(18px, 5vw, 70px);
  position: absolute;
  right: clamp(18px, 5vw, 70px);
  z-index: 4;
}

.hero-video,
.hero-overlay {
  height: 100%;
  inset: 0;
  position: absolute;
  width: 100%;
}

.hero-video {
  object-fit: cover;
  transform: scale(1.04);
}

body.is-ready .hero-video {
  animation: heroSettle 1800ms cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(246, 241, 232, 0.9), rgba(246, 241, 232, 0.54) 46%, rgba(246, 241, 232, 0.1)),
    linear-gradient(0deg, rgba(246, 241, 232, 0.92), rgba(246, 241, 232, 0.04) 44%);
}

.hero-content {
  max-width: var(--max);
  position: relative;
  z-index: 2;
}

.hero-content .eyebrow,
.hero-content h1,
.hero-actions {
  opacity: 0;
  transform: translateY(18px);
}

body.is-ready .hero-content .eyebrow,
body.is-ready .hero-content h1,
body.is-ready .hero-actions {
  animation: riseIn 850ms cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

body.is-ready .hero-content h1 {
  animation-delay: 120ms;
}

body.is-ready .hero-actions {
  animation-delay: 240ms;
}

.hero .eyebrow {
  color: rgba(23, 21, 18, 0.68);
}

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

.button {
  align-items: center;
  border: 1px solid currentColor;
  display: inline-flex;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  position: relative;
  transition: background 220ms ease, border-color 220ms ease, color 220ms ease, transform 220ms ease;
}

.button-light {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.button-ghost {
  color: var(--ink);
}

.button-outline {
  color: var(--ink);
}

.button:hover {
  transform: translateY(-2px);
}

.button-ghost:hover,
.button-outline:hover {
  background: rgba(23, 21, 18, 0.06);
}

.hero-panel {
  background: rgba(255, 250, 241, 0.88);
  border: 1px solid var(--line);
  bottom: 6vh;
  color: var(--ink);
  max-width: 340px;
  padding: 24px;
  box-shadow: 0 28px 80px rgba(23, 21, 18, 0.12);
  position: absolute;
  right: clamp(18px, 5vw, 70px);
  z-index: 3;
}

body.is-ready .hero-panel {
  animation: panelReveal 900ms 380ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.hero-panel strong {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.55rem;
  font-weight: 400;
  line-height: 1.12;
  margin-bottom: 12px;
}

.hero-panel p {
  font-size: 0.93rem;
}

.hero-panel span,
.case-kicker,
.case-card span,
.video-frame span,
.process-steps span,
.metrics span,
.eyebrow {
  color: var(--gold);
  display: block;
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.section-grid,
.case-studies,
.reel-band,
.portfolio-note,
.contact,
.metrics {
  margin-inline: auto;
  max-width: var(--max);
  padding: clamp(72px, 10vw, 130px) clamp(18px, 4vw, 40px);
}

.section-grid {
  display: grid;
  gap: clamp(28px, 7vw, 96px);
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
}

.intro {
  border-top: 1px solid var(--line);
}

.intro-copy {
  display: grid;
  gap: 22px;
}

.metrics {
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(3, 1fr);
  padding-top: 0;
}

.metrics div {
  background: var(--panel);
  border: 1px solid var(--line);
  min-height: 230px;
  padding: clamp(22px, 3vw, 34px);
  transition: background 240ms ease, border-color 240ms ease, transform 240ms ease;
}

.metrics div:hover {
  background: var(--white);
  border-color: rgba(155, 133, 71, 0.34);
  transform: translateY(-3px);
}

.metrics strong {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.7rem;
  font-weight: 400;
  line-height: 1.1;
  margin-bottom: 16px;
}

.section-heading {
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  margin-bottom: 44px;
}

.case-feature {
  background: var(--panel);
  border: 1px solid var(--line);
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(340px, 0.88fr);
  margin-bottom: 22px;
  overflow: hidden;
}

.case-media {
  display: block;
  overflow: hidden;
}

.case-media img {
  height: 100%;
  min-height: 520px;
  object-fit: cover;
  transition: transform 900ms cubic-bezier(0.2, 0.8, 0.2, 1);
  width: 100%;
}

.case-feature:hover .case-media img,
.case-media:hover img {
  transform: scale(1.035);
}

.case-copy {
  align-self: end;
  padding: clamp(28px, 5vw, 58px);
}

.case-copy p {
  margin: 18px 0 28px;
}

.fact-list {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 0;
  margin: 0;
}

.fact-list div {
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 18px;
  grid-template-columns: 0.38fr 1fr;
  padding: 15px 0;
}

.fact-list dt {
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.fact-list dd {
  color: var(--muted);
  line-height: 1.55;
  margin: 0;
}

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

.case-card {
  background: var(--panel);
  border: 1px solid var(--line);
  display: block;
  min-width: 0;
  overflow: hidden;
  transition: border-color 240ms ease, box-shadow 240ms ease, transform 240ms ease;
}

.case-card:hover {
  border-color: rgba(155, 133, 71, 0.44);
  box-shadow: 0 24px 70px rgba(23, 21, 18, 0.1);
  transform: translateY(-4px);
}

.case-card img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 700ms cubic-bezier(0.2, 0.8, 0.2, 1);
  width: 100%;
}

.case-card:hover img {
  transform: scale(1.045);
}

.case-card div {
  padding: 24px;
}

.case-card p {
  margin-top: 14px;
}

.case-card-text {
  align-items: end;
  display: flex;
  min-height: 100%;
}

.case-card-text div {
  padding: clamp(24px, 4vw, 38px);
}

.reel-band {
  background: var(--paper-deep);
  border-block: 1px solid var(--line);
  max-width: none;
}

.reel-band > div {
  margin-inline: auto;
  max-width: var(--max);
}

.reel-copy {
  padding-inline: clamp(18px, 4vw, 40px);
}

.reel-copy h2 {
  max-width: 820px;
}

.reel-grid {
  display: grid;
  gap: 22px;
  grid-template-columns: 1fr 1fr;
  margin-top: 42px;
  padding-inline: clamp(18px, 4vw, 40px);
}

.video-frame {
  background: var(--panel);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: border-color 240ms ease, box-shadow 240ms ease, transform 240ms ease;
}

.video-frame:hover {
  border-color: rgba(155, 133, 71, 0.38);
  box-shadow: 0 22px 64px rgba(23, 21, 18, 0.09);
  transform: translateY(-3px);
}

.video-frame video {
  aspect-ratio: 16 / 9;
  background: var(--black);
  height: auto;
  object-fit: cover;
  width: 100%;
}

.video-frame-contain video {
  object-fit: contain;
}

.video-frame div {
  padding: 22px;
}

.video-frame p {
  font-size: 0.93rem;
}

.service-list {
  display: grid;
  gap: 1px;
}

.service-list article {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 22px;
  grid-template-columns: minmax(190px, 0.5fr) minmax(0, 1fr);
  padding: 26px 0;
  transition: border-color 240ms ease, padding-left 240ms ease;
}

.service-list article:last-child {
  border-bottom: 1px solid var(--line);
}

.service-list article:hover {
  border-color: rgba(155, 133, 71, 0.42);
  padding-left: 12px;
}

.portfolio-note {
  border-top: 1px solid var(--line);
  display: grid;
  gap: clamp(28px, 7vw, 96px);
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  padding-top: 0;
}

.portfolio-note p {
  margin-bottom: 24px;
}

.text-link {
  border-bottom: 1px solid currentColor;
  color: var(--ink);
  padding-bottom: 6px;
  transition: color 220ms ease, padding-bottom 220ms ease;
}

.text-link:hover {
  padding-bottom: 9px;
}

.contact {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 40px;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.72fr);
}

.contact-card {
  background: var(--panel);
  border: 1px solid var(--line);
  padding: clamp(26px, 4vw, 44px);
}

.scroll-progress {
  background: linear-gradient(90deg, var(--gold), rgba(155, 133, 71, 0.16));
  height: 2px;
  left: 0;
  position: fixed;
  top: 0;
  transform: scaleX(0);
  transform-origin: left;
  width: 100%;
  z-index: 40;
}

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

.site-footer {
  align-items: center;
  border-top: 1px solid var(--line);
  color: var(--muted);
  display: flex;
  font-size: 0.86rem;
  justify-content: space-between;
  padding: 24px clamp(18px, 4vw, 56px);
}

.project-body {
  background: var(--paper);
}

.case-page-hero {
  min-height: 88vh;
  overflow: hidden;
  position: relative;
}

.case-page-hero::after {
  background:
    linear-gradient(90deg, rgba(246, 241, 232, 0.9), rgba(246, 241, 232, 0.34)),
    linear-gradient(0deg, rgba(246, 241, 232, 0.9), rgba(246, 241, 232, 0.02) 46%);
  content: "";
  inset: 0;
  position: absolute;
}

.case-page-hero img {
  height: 88vh;
  object-fit: cover;
  transform: scale(1.03);
  width: 100%;
}

body.is-ready .case-page-hero img {
  animation: heroSettle 1600ms cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.case-page-title {
  bottom: clamp(34px, 8vw, 88px);
  left: clamp(18px, 5vw, 70px);
  max-width: 980px;
  position: absolute;
  right: clamp(18px, 5vw, 70px);
  z-index: 2;
}

body.is-ready .case-page-title {
  animation: riseIn 850ms 140ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.case-page-title .eyebrow {
  color: rgba(23, 21, 18, 0.66);
}

.project-overview,
.project-stat-grid,
.project-gallery,
.project-navigation {
  margin-inline: auto;
  max-width: var(--max);
  padding-inline: clamp(18px, 4vw, 40px);
}

.project-overview {
  border-top: 1px solid var(--line);
  display: grid;
  gap: clamp(28px, 7vw, 96px);
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  padding-block: clamp(72px, 10vw, 130px);
}

.project-copy {
  display: grid;
  gap: 22px;
}

.project-stat-grid {
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(4, 1fr);
  padding-bottom: clamp(72px, 9vw, 110px);
}

.project-stat-grid div {
  background: var(--panel);
  border: 1px solid var(--line);
  min-height: 150px;
  padding: 24px;
  transition: background 240ms ease, border-color 240ms ease, transform 240ms ease;
}

.project-stat-grid div:hover {
  background: var(--white);
  border-color: rgba(155, 133, 71, 0.34);
  transform: translateY(-3px);
}

.project-stat-grid span {
  color: var(--gold);
  display: block;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.project-stat-grid strong {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  font-weight: 400;
  line-height: 1.18;
}

.project-gallery {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(3, 1fr);
  padding-bottom: clamp(72px, 9vw, 110px);
}

.project-gallery img,
.project-gallery video {
  aspect-ratio: 4 / 3;
  background: var(--black);
  border: 1px solid var(--line);
  height: 100%;
  object-fit: cover;
  transition: transform 700ms cubic-bezier(0.2, 0.8, 0.2, 1);
  width: 100%;
}

.project-gallery img:hover,
.project-gallery video:hover {
  transform: scale(1.025);
}

.project-gallery video {
  object-fit: contain;
}

.project-navigation {
  align-items: center;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  padding-block: 28px;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 760ms cubic-bezier(0.2, 0.8, 0.2, 1), transform 760ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

.reveal-delay-1 {
  transition-delay: 90ms;
}

.reveal-delay-2 {
  transition-delay: 180ms;
}

@keyframes riseIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes panelReveal {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroSettle {
  to {
    transform: scale(1);
  }
}

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

  .reveal,
  .hero-content .eyebrow,
  .hero-content h1,
  .hero-actions {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .site-nav {
    display: none;
  }

  .hero {
    min-height: 90vh;
  }

  .hero-panel {
    display: none;
  }

  .section-grid,
  .section-heading,
  .case-feature,
  .reel-grid,
  .portfolio-note,
  .contact,
  .project-overview {
    grid-template-columns: 1fr;
  }

  .metrics,
  .case-grid,
  .project-stat-grid,
  .project-gallery {
    grid-template-columns: repeat(2, 1fr);
  }

  .case-media img {
    min-height: 340px;
  }
}

@media (max-width: 640px) {
  :root {
    --header-height: 66px;
  }

  .site-header {
    gap: 12px;
  }

  .brand-logo-wide {
    height: 28px;
    width: 82px;
  }

  .header-cta {
    padding: 11px 12px;
  }

  .hero {
    min-height: 88vh;
    padding-bottom: 42px;
  }

  .hero-actions,
  .contact-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .metrics,
  .case-grid,
  .project-stat-grid,
  .project-gallery,
  .service-list article,
  .fact-list div {
    grid-template-columns: 1fr;
  }

  .fact-list div {
    gap: 6px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .project-navigation {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }
}
