:root {
  --ink: #0b0b09;
  --surface: #11100d;
  --surface-deep: #050504;

  --paper: #ead7ad;
  --paper-2: #f4e7c7;
  --muted: #bca77c;
  --copy: #d6c49e;

  --line: rgba(234, 215, 173, 0.25);
  --line-strong: rgba(234, 215, 173, 0.55);

  --max-width: 1180px;
  --reading-width: 760px;

  --header-height: 102px;

  --section-space: clamp(72px, 9vw, 110px);
  --card-padding: clamp(22px, 4vw, 34px);
}


/* =========================================================
   RESET / BASE
   ========================================================= */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding-top: var(--header-height);

  background: var(--ink);
  color: var(--paper);

  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.5;
}

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

a {
  color: inherit;
}

button,
input,
textarea,
select {
  font: inherit;
}

.wrap {
  width: min(calc(100% - 32px), var(--max-width));
  margin-inline: auto;
}


/* =========================================================
   HEADER
   ========================================================= */

.site-header {
  position: fixed;

  top: 0;
  left: 0;
  right: 0;

  z-index: 100;

  background: rgba(11, 11, 9, 0.98);

  border-bottom: 2px solid var(--line-strong);

  box-shadow:
    0 8px 28px rgba(0, 0, 0, 0.32);

  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.nav-wrap {
  min-height: var(--header-height);

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 20px;

  padding-top: 12px;
  padding-bottom: 12px;
}


/* =========================================================
   HEADER LOGO
   ========================================================= */

.site-logo {
  flex: 0 0 auto;

  display: block;

  width: 170px;

  text-decoration: none;
}

.site-logo img {
  display: block;

  width: 100%;
  height: auto;

  object-fit: contain;
}


/* =========================================================
   HEADER NAV
   ========================================================= */

.site-nav {
  flex: 1;

  display: grid;

  grid-template-columns:
    repeat(4, minmax(0, 1fr));

  grid-template-rows:
    repeat(2, minmax(0, 1fr));

  gap: 10px;
}


/*
 * First three buttons occupy their original full height.
 */
.site-nav .nav-button:nth-child(1),
.site-nav .nav-button:nth-child(2),
.site-nav .nav-button:nth-child(3) {
  grid-row: 1 / 3;
}


/*
 * About + Contact share the fourth column.
 */
.site-nav .nav-button:nth-child(4) {
  grid-column: 4;
  grid-row: 1;
}

.site-nav .nav-button:nth-child(5) {
  grid-column: 4;
  grid-row: 2;
}


.site-nav a,
.nav-button {
  min-height: 66px;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 8px 10px;

  position: relative;

  color: var(--paper-2);

  background:
    linear-gradient(
      180deg,
      rgba(234, 215, 173, 0.10),
      rgba(234, 215, 173, 0.035)
    );

  border: 2px solid rgba(234, 215, 173, 0.9);

  text-align: center;

  text-decoration: none;
  text-transform: uppercase;

  font-family:
    "Rockwell Extra Bold",
    Rockwell,
    "Arial Black",
    Georgia,
    serif;

  font-size: clamp(0.78rem, 1.3vw, 1.05rem);

  font-weight: 900;

  line-height: 0.95;

  letter-spacing: -0.025em;

  box-shadow:
    inset 0 0 0 3px var(--ink),
    inset 0 0 0 4px rgba(234, 215, 173, 0.4),
    0 3px 0 rgba(188, 167, 124, 0.28);

  cursor: pointer;

  transition:
    border-color 150ms ease,
    color 150ms ease,
    transform 150ms ease,
    background 150ms ease,
    box-shadow 150ms ease;
}


/*
 * The two stacked buttons need to be shorter.
 */
.site-nav .nav-button:nth-child(4),
.site-nav .nav-button:nth-child(5) {
  min-height: 0;

  padding-top: 5px;
  padding-bottom: 7px;

  font-size: clamp(0.66rem, 1.05vw, 0.88rem);

  line-height: 0.88;
}


.site-nav a::after,
.nav-button::after {
  content: "◆";

  position: absolute;

  bottom: 4px;
  left: 50%;

  transform: translateX(-50%);

  color: rgba(234, 215, 173, 0.8);

  font-family: Georgia, serif;

  font-size: 0.36rem;
}


/*
 * Smaller ornament on stacked About / Contact buttons.
 */
.site-nav .nav-button:nth-child(4)::after,
.site-nav .nav-button:nth-child(5)::after {
  bottom: 2px;

  font-size: 0.27rem;
}


.site-nav a:hover,
.site-nav a:focus-visible,
.nav-button:hover,
.nav-button:focus-visible {
  color: var(--ink);

  border-color: var(--paper-2);

  background: var(--paper);

  box-shadow:
    inset 0 0 0 3px var(--paper),
    inset 0 0 0 4px var(--ink),
    0 4px 0 rgba(188, 167, 124, 0.5);

  transform: translateY(-2px);

  outline: none;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after,
.nav-button:hover::after,
.nav-button:focus-visible::after {
  color: var(--ink);
}

.site-nav a:active,
.nav-button:active {
  transform: translateY(1px);

  box-shadow:
    inset 0 0 0 3px var(--paper),
    inset 0 0 0 4px var(--ink);
}


/* =========================================================
   GLOBAL SECTIONS
   ========================================================= */

.page-section {
  padding: var(--section-space) 0;
}

.page-section + .page-section {
  border-top: 1px solid rgba(234, 215, 173, 0.08);
}


/* =========================================================
   GLOBAL TYPE
   ========================================================= */

.eyebrow {
  margin: 0 0 12px;

  color: var(--muted);

  text-transform: uppercase;

  font-family:
    Arial,
    Helvetica,
    sans-serif;

  font-size: 0.7rem;

  font-weight: 800;

  line-height: 1.3;

  letter-spacing: 0.2em;
}

h1,
h2,
h3 {
  margin-top: 0;

  text-transform: uppercase;

  line-height: 0.95;

  letter-spacing: -0.04em;
}

h1 {
  margin-bottom: 26px;

  color: var(--paper-2);

  font-size: clamp(3.2rem, 9vw, 7rem);

  line-height: 0.88;

  letter-spacing: -0.055em;
}

h2 {
  font-size: clamp(2.5rem, 7vw, 5rem);
}

h3 {
  font-size: clamp(1.8rem, 4vw, 3rem);
}

.section-heading {
  max-width: 980px;

  margin-bottom: clamp(26px, 5vw, 42px);
}

.section-heading .eyebrow {
  margin-bottom: 10px;
}

.section-title {
  margin: 0;

  color: var(--paper-2);

  font-size: clamp(2.6rem, 7vw, 5.4rem);

  line-height: 0.88;

  letter-spacing: -0.05em;
}

.home-hero-copy {
  max-width: 720px;

  margin: 0;

  color: var(--copy);

  font-size: clamp(1.05rem, 2vw, 1.3rem);

  line-height: 1.65;
}

.home-hero-copy strong {
  color: var(--paper-2);
}


/* =========================================================
   HOME HERO
   ========================================================= */

.home-hero {
  min-height:
    calc(100svh - var(--header-height));

  display: grid;

  place-items: center;

  padding: 70px 0;

  text-align: center;
}

.home-hero-inner {
  max-width: 960px;
}

.home-logo {
  width: min(100%, 900px);

  height: auto;

  margin: 0 auto 38px;

  object-fit: contain;
}

.home-hero h1 {
  margin-bottom: 22px;
}

.home-hero .home-hero-copy {
  margin-inline: auto;
}


/* =========================================================
   HOME STATEMENT
   ========================================================= */

.home-statement {
  margin: 0 0 22px;

  color: var(--paper-2);

  font-size: clamp(2.6rem, 7vw, 5.6rem);

  line-height: 0.9;

  letter-spacing: -0.055em;
}

.home-hero-punch {
  max-width: 720px;

  margin: 24px auto 0;

  color: var(--copy);

  font-size: clamp(1.05rem, 2.2vw, 1.35rem);

  line-height: 1.6;
}

.home-hero-punch strong {
  color: var(--paper-2);

  font-size: 1.08em;
}


/* =========================================================
   HOME DIRECTION NAVIGATION
   ========================================================= */

.home-directions {
  padding-top: 78px;
  padding-bottom: 78px;

  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.direction-grid {
  display: grid;

  grid-template-columns:
    repeat(3, minmax(0, 1fr));

  gap: 14px;
}

.direction-button {
  min-height: 118px;

  display: grid;

  grid-template-columns:
    auto 1fr auto;

  align-items: center;

  gap: 16px;

  padding: 18px 20px;

  position: relative;

  color: var(--paper-2);

  background:
    linear-gradient(
      180deg,
      rgba(234, 215, 173, 0.075),
      rgba(234, 215, 173, 0.025)
    );

  border: 2px solid rgba(234, 215, 173, 0.82);

  text-decoration: none;

  box-shadow:
    inset 0 0 0 3px var(--ink),
    inset 0 0 0 4px rgba(234, 215, 173, 0.24),
    0 4px 0 rgba(188, 167, 124, 0.2);

  cursor: pointer;

  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease;
}

.direction-number {
  align-self: start;

  padding-top: 3px;

  color: var(--muted);

  font-family:
    Arial,
    Helvetica,
    sans-serif;

  font-size: 0.62rem;

  font-weight: 900;

  letter-spacing: 0.15em;
}

.direction-content {
  min-width: 0;

  display: flex;

  flex-direction: column;

  gap: 8px;
}

.direction-title {
  display: block;

  font-family:
    "Rockwell Extra Bold",
    Rockwell,
    "Arial Black",
    Georgia,
    serif;

  font-size: clamp(1.15rem, 2.3vw, 1.65rem);

  font-weight: 900;

  line-height: 0.95;

  letter-spacing: -0.035em;

  text-transform: uppercase;
}

.direction-description {
  display: block;

  color: var(--muted);

  font-family:
    Arial,
    Helvetica,
    sans-serif;

  font-size: 0.68rem;

  font-weight: 800;

  line-height: 1.25;

  letter-spacing: 0.08em;

  text-transform: uppercase;
}

.direction-arrow {
  display: grid;

  place-items: center;

  width: 38px;
  height: 38px;

  flex-shrink: 0;

  color: var(--ink);

  background: var(--paper);

  border: 1px solid var(--paper-2);

  font-family:
    Arial,
    Helvetica,
    sans-serif;

  font-size: 1.25rem;

  font-weight: 900;

  line-height: 1;

  box-shadow:
    2px 2px 0 rgba(188, 167, 124, 0.4);

  animation:
    direction-arrow-nudge
    3.4s
    ease-in-out
    infinite;
}

.direction-button:hover,
.direction-button:focus-visible {
  border-color: var(--paper-2);

  background: rgba(234, 215, 173, 0.10);

  box-shadow:
    inset 0 0 0 3px var(--ink),
    inset 0 0 0 4px rgba(234, 215, 173, 0.42),
    0 6px 0 rgba(188, 167, 124, 0.28);

  transform: translateY(-2px);

  outline: none;
}

.direction-button:active {
  transform: translateY(1px);
}


/* =========================================================
   LEGACY CATEGORY CARDS
   ========================================================= */

.category-grid {
  display: grid;

  grid-template-columns:
    repeat(3, 1fr);

  gap: 14px;
}

.category-card {
  min-height: 220px;

  padding: 24px;

  display: flex;

  flex-direction: column;

  justify-content: flex-end;

  position: relative;

  background: var(--surface);

  border: 1px solid var(--line);

  text-decoration: none;

  overflow: hidden;

  transition:
    border-color 170ms ease,
    transform 170ms ease;
}

.category-card:hover,
.category-card:focus-visible {
  border-color: var(--paper);

  transform: translateY(-2px);

  outline: none;
}

.category-number {
  position: absolute;

  top: 22px;
  left: 24px;

  color: var(--muted);

  font-family:
    Arial,
    Helvetica,
    sans-serif;

  font-size: 0.68rem;

  font-weight: 800;

  letter-spacing: 0.15em;
}

.category-card h3 {
  margin-bottom: 12px;
}

.category-card p {
  margin: 0;

  color: #d1bf99;

  font-family:
    Arial,
    Helvetica,
    sans-serif;
}


/* =========================================================
   PROJECT CARDS
   ========================================================= */

.project-grid {
  display: grid;

  grid-template-columns:
    repeat(3, 1fr);

  gap: 14px;
}

.project-card {
  display: block;

  background: var(--surface);

  border: 1px solid var(--line);

  color: inherit;

  text-decoration: none;

  overflow: hidden;

  transition:
    border-color 170ms ease,
    transform 170ms ease,
    box-shadow 170ms ease;
}

a.project-card:hover,
a.project-card:focus-visible {
  border-color: var(--paper);

  box-shadow:
    0 5px 0 rgba(188, 167, 124, 0.18);

  transform: translateY(-2px);

  outline: none;
}

.project-card-media {
  aspect-ratio: 4 / 3;

  background: var(--surface-deep);

  overflow: hidden;
}

.project-card-media img,
.project-card-media video {
  width: 100%;
  height: 100%;

  object-fit: cover;

  transition: transform 350ms ease;
}

a.project-card:hover .project-card-media img,
a.project-card:focus-visible .project-card-media img {
  transform: scale(1.025);
}

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

.project-card-body h3 {
  margin-bottom: 7px;

  font-size: 1.4rem;
}

.project-card-body p {
  margin: 0;

  color: var(--muted);

  font-family:
    Arial,
    Helvetica,
    sans-serif;

  font-size: 0.78rem;

  line-height: 1.5;

  text-transform: uppercase;

  letter-spacing: 0.08em;
}


/* =========================================================
   PROJECT ACTION BUTTON
   ========================================================= */

.project-card-link {
  display: inline-flex;

  align-items: center;
  justify-content: center;

  min-height: 42px;

  margin-top: 16px;

  padding: 10px 14px;

  color: var(--ink);

  background: var(--paper);

  border: 1px solid var(--paper-2);

  font-family:
    Arial,
    Helvetica,
    sans-serif;

  font-size: 0.68rem;

  font-weight: 900;

  line-height: 1;

  letter-spacing: 0.12em;

  text-decoration: none;

  text-transform: uppercase;

  box-shadow:
    3px 3px 0 rgba(188, 167, 124, 0.35);

  animation:
    action-nudge
    3.2s
    ease-in-out
    infinite;

  transition:
    background 150ms ease,
    color 150ms ease,
    transform 150ms ease,
    box-shadow 150ms ease;
}

.project-card-link:hover,
.project-card-link:focus-visible {
  color: var(--paper-2);

  background: var(--ink);

  box-shadow:
    3px 3px 0 rgba(234, 215, 173, 0.45);

  outline: 1px solid var(--paper);
  outline-offset: 2px;
}


/* =========================================================
   PROJECT DETAIL GRID
   ========================================================= */

.project-detail-grid {
  display: grid;

  grid-template-columns:
    repeat(2, minmax(0, 1fr));

  gap: 14px;

  align-items: stretch;
}

.project-detail-grid > div:not(.project-detail-card) {
  min-width: 0;
}

.project-detail-grid > div:not(.project-detail-card) > img,
.project-detail-grid > div:not(.project-detail-card) > video {
  width: 100%;
  height: 100%;

  min-height: 320px;

  object-fit: cover;
}


/* =========================================================
   PROJECT DETAIL CARDS
   ========================================================= */

.project-detail-card {
  padding: var(--card-padding);

  background:
    linear-gradient(
      180deg,
      rgba(234, 215, 173, 0.035),
      rgba(234, 215, 173, 0.012)
    ),
    var(--surface);

  border: 1px solid var(--line);
}

.project-detail-card .eyebrow {
  margin-bottom: 12px;
}

.project-detail-card h2 {
  margin-bottom: 20px;

  color: var(--paper-2);

  font-size: clamp(2rem, 5vw, 4rem);

  line-height: 0.9;
}

.project-detail-card h3 {
  margin-bottom: 16px;

  color: var(--paper-2);

  font-size: clamp(1.55rem, 3.5vw, 2.6rem);

  line-height: 0.95;
}

.project-detail-card p {
  max-width: var(--reading-width);

  margin: 0 0 18px;

  color: #d1bf99;

  font-family:
    Arial,
    Helvetica,
    sans-serif;

  font-size: clamp(0.95rem, 1.8vw, 1.08rem);

  line-height: 1.65;
}

.project-detail-card p:last-child {
  margin-bottom: 0;
}


/* =========================================================
   PROJECT GALLERY
   ========================================================= */

.project-gallery {
  display: grid;

  grid-template-columns:
    repeat(2, minmax(0, 1fr));

  gap: 14px;
}

.project-media-placeholder {
  min-height: 360px;

  display: grid;

  place-items: center;

  background: var(--surface-deep);

  border: 1px solid var(--line);

  color: rgba(234, 215, 173, 0.35);

  font-family:
    Arial,
    Helvetica,
    sans-serif;

  font-size: 0.72rem;

  font-weight: 800;

  letter-spacing: 0.14em;

  text-transform: uppercase;
}

.project-gallery img,
.project-gallery video {
  width: 100%;
  height: 100%;

  min-height: 360px;

  object-fit: cover;

  border: 1px solid var(--line);
}


/* =========================================================
   SHARED VIDEO CARD SYSTEM
   ========================================================= */

.video-card {
  max-width: 720px;

  background: var(--surface);

  border: 1px solid var(--line);

  overflow: hidden;

  box-shadow:
    0 10px 34px rgba(0, 0, 0, 0.16);
}

.ranchero-video-card {
  margin-top: 32px;
}

.video-frame {
  position: relative;

  width: 100%;

  background: var(--surface-deep);

  overflow: hidden;
}

.video-frame video {
  display: block;

  width: 100%;
  height: auto;

  background: var(--surface-deep);
}


/* =========================================================
   SHARED CUSTOM VIDEO COVER
   ========================================================= */

.video-cover {
  position: absolute;

  inset: 0;

  display: flex;

  align-items: flex-end;

  padding: 28px;

  cursor: pointer;

  background:
    linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.02) 20%,
      rgba(0, 0, 0, 0.18) 52%,
      rgba(0, 0, 0, 0.86) 100%
    );

  transition:
    opacity 180ms ease,
    visibility 180ms ease;
}

.video-cover:hover .video-play,
.video-cover:focus-visible .video-play {
  box-shadow:
    0 0 0 7px rgba(234, 215, 173, 0.20),
    0 8px 30px rgba(0, 0, 0, 0.55);
}

.video-cover:focus-visible {
  outline: 2px solid var(--paper);
  outline-offset: -4px;
}

.video-cover.is-hidden {
  opacity: 0;

  visibility: hidden;

  pointer-events: none;
}

.video-cover-content {
  width: 100%;
}

.video-cover-kicker {
  display: block;

  margin-bottom: 10px;

  color: rgba(255, 255, 255, 0.78);

  font-family:
    Arial,
    Helvetica,
    sans-serif;

  font-size: 0.65rem;

  font-weight: 900;

  letter-spacing: 0.18em;

  text-transform: uppercase;
}

.video-cover-title {
  display: block;

  max-width: 590px;

  color: #fff;

  font-family:
    Arial,
    Helvetica,
    sans-serif;

  font-size: clamp(1.7rem, 5vw, 3.6rem);

  font-weight: 900;

  line-height: 0.95;

  letter-spacing: -0.045em;

  text-transform: uppercase;

  text-shadow:
    0 2px 4px rgba(0, 0, 0, 0.45),
    0 5px 20px rgba(0, 0, 0, 0.75);
}


/* =========================================================
   SHARED PLAY BUTTON
   ========================================================= */

.video-play {
  position: absolute;

  top: 50%;
  left: 50%;

  width: 74px;
  height: 74px;

  display: grid;

  place-items: center;

  transform: translate(-50%, -50%);

  border: 2px solid var(--paper-2);

  border-radius: 50%;

  background: rgba(11, 11, 9, 0.76);

  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);

  box-shadow:
    0 0 0 5px rgba(234, 215, 173, 0.14),
    0 6px 25px rgba(0, 0, 0, 0.45);

  animation:
    video-breathe
    2.2s
    ease-in-out
    infinite;

  transition:
    box-shadow 150ms ease;
}

.video-play::before {
  content: "";

  width: 0;
  height: 0;

  margin-left: 5px;

  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 16px solid #fff;
}

.video-play::after {
  content: "PLAY";

  position: absolute;

  top: calc(100% + 9px);
  left: 50%;

  transform: translateX(-50%);

  color: #fff;

  font-family:
    Arial,
    Helvetica,
    sans-serif;

  font-size: 0.58rem;

  font-weight: 900;

  line-height: 1;

  letter-spacing: 0.16em;

  text-shadow: 0 2px 8px #000;
}


/* =========================================================
   SHARED VIDEO BODY
   ========================================================= */

.video-card-body {
  padding: 22px;
}

.video-card-body .eyebrow {
  margin-bottom: 8px;
}

.video-card-body h3 {
  margin-bottom: 12px;

  color: var(--paper-2);

  font-size: clamp(1.8rem, 4vw, 2.8rem);
}

.video-card-body p {
  margin: 0;

  color: var(--copy);

  font-family:
    Arial,
    Helvetica,
    sans-serif;

  font-size: 0.9rem;

  line-height: 1.55;
}


/* =========================================================
   CLICKABLE CUE ANIMATIONS
   ========================================================= */

@keyframes direction-arrow-nudge {

  0%,
  78%,
  100% {
    transform: translateX(0);
  }

  85% {
    transform: translateX(4px);
  }

  92% {
    transform: translateX(0);
  }

  96% {
    transform: translateX(3px);
  }

}

@keyframes action-nudge {

  0%,
  78%,
  100% {
    transform: translateX(0);
  }

  84% {
    transform: translateX(4px);
  }

  90% {
    transform: translateX(0);
  }

  95% {
    transform: translateX(3px);
  }

}

@keyframes video-breathe {

  0%,
  100% {
    transform:
      translate(-50%, -50%)
      scale(1);
  }

  50% {
    transform:
      translate(-50%, -50%)
      scale(1.07);
  }

}


/* =========================================================
   SCROLL REVEAL
   ========================================================= */

.has-reveal-motion
.scroll-reveal {
  opacity: 0;

  transform:
    translateY(12px)
    scale(1.008);

  transition:
    opacity 520ms ease,
    transform 520ms ease;
}

.has-reveal-motion
.scroll-reveal.is-visible {
  opacity: 1;

  transform:
    translateY(0)
    scale(1);
}


/* =========================================================
   RANDOM UNCLE MIKE LINK TRANSITION
   ========================================================= */

.site-text-transition {
  position: fixed;

  inset: 0;

  z-index: 1000;

  display: flex;

  justify-content: center;

  align-items: flex-end;

  padding:
    24px
    18px
    max(
      28px,
      env(safe-area-inset-bottom)
    );

  background: rgba(0, 0, 0, 0.58);

  opacity: 0;

  visibility: hidden;

  pointer-events: none;
}


/* =========================================================
   WESTERN BADGE SHELL
   ========================================================= */

.site-text-transition-inner {
  position: relative;

  width: min(100%, 820px);

  min-height: 190px;

  display: flex;

  justify-content: center;

  align-items: center;

  padding: 42px 68px;

  text-align: center;

  background: var(--paper);

  clip-path: polygon(
    19% 0%,
    81% 0%,
    87% 7%,
    90% 13%,
    97% 17%,
    100% 29%,
    96% 40%,
    96% 60%,
    100% 71%,
    97% 83%,
    90% 87%,
    87% 93%,
    81% 100%,
    19% 100%,
    13% 93%,
    10% 87%,
    3% 83%,
    0% 71%,
    4% 60%,
    4% 40%,
    0% 29%,
    3% 17%,
    10% 13%,
    13% 7%
  );

  filter:
    drop-shadow(
      0 14px 28px
      rgba(0, 0, 0, 0.55)
    );
}

.site-text-transition-inner::before {
  content: "";

  position: absolute;

  inset: 4px;

  z-index: 0;

  background: var(--ink);

  clip-path: polygon(
    19% 0%,
    81% 0%,
    87% 7%,
    90% 13%,
    97% 17%,
    100% 29%,
    96% 40%,
    96% 60%,
    100% 71%,
    97% 83%,
    90% 87%,
    87% 93%,
    81% 100%,
    19% 100%,
    13% 93%,
    10% 87%,
    3% 83%,
    0% 71%,
    4% 60%,
    4% 40%,
    0% 29%,
    3% 17%,
    10% 13%,
    13% 7%
  );
}

.site-text-transition-inner::after {
  content: "";

  position: absolute;

  inset: 14px;

  z-index: 1;

  border:
    1px solid
    rgba(234, 215, 173, 0.78);

  clip-path: polygon(
    19% 0%,
    81% 0%,
    87% 7%,
    90% 13%,
    97% 17%,
    100% 29%,
    96% 40%,
    96% 60%,
    100% 71%,
    97% 83%,
    90% 87%,
    87% 93%,
    81% 100%,
    19% 100%,
    13% 93%,
    10% 87%,
    3% 83%,
    0% 71%,
    4% 60%,
    4% 40%,
    0% 29%,
    3% 17%,
    10% 13%,
    13% 7%
  );

  pointer-events: none;
}


/* =========================================================
   TRANSITION PHRASE
   ========================================================= */

.site-transition-line {
  position: relative;

  z-index: 2;

  max-width: 100%;

  color: var(--paper-2);

  font-family:
    "Rockwell Extra Bold",
    Rockwell,
    "Arial Black",
    Georgia,
    serif;

  font-size: clamp(2rem, 6vw, 4.7rem);

  font-weight: 900;

  line-height: 0.88;

  letter-spacing: -0.055em;

  text-transform: uppercase;

  text-shadow:
    0 3px 0 rgba(0, 0, 0, 0.85),
    0 8px 22px rgba(0, 0, 0, 0.78);

  transform-origin: center center;
}


/* =========================================================
   TRANSITION VARIANTS
   ========================================================= */

.site-transition-line.is-wide {
  font-size: clamp(1.65rem, 5vw, 4rem);

  letter-spacing: -0.055em;
}

.site-transition-line.is-short {
  font-size: clamp(2.8rem, 8vw, 6rem);
}

.site-transition-line.is-stacked {
  font-size: clamp(2rem, 6vw, 4.6rem);

  line-height: 0.82;
}


/* =========================================================
   ACTIVE BADGE ANIMATION
   ========================================================= */

.site-text-transition.is-active {
  visibility: visible;

  animation:
    uncle-mike-transition-shell
    1400ms
    ease-out
    both;
}

.site-text-transition.is-active
.site-text-transition-inner {
  animation:
    uncle-mike-transition-badge
    1400ms
    cubic-bezier(
      0.18,
      0.82,
      0.2,
      1
    )
    both;
}

.site-text-transition.is-active
.site-transition-line {
  animation:
    uncle-mike-transition-text
    1400ms
    cubic-bezier(
      0.18,
      0.82,
      0.2,
      1
    )
    both;
}

@keyframes uncle-mike-transition-shell {

  0% {
    opacity: 0;
  }

  7% {
    opacity: 1;
  }

  88% {
    opacity: 1;
  }

  100% {
    opacity: 0;
  }

}

@keyframes uncle-mike-transition-badge {

  0% {
    transform:
      translateY(30px)
      scale(0.92);
  }

  18% {
    transform:
      translateY(-3px)
      scale(1.018);
  }

  28% {
    transform:
      translateY(0)
      scale(1);
  }

  88% {
    transform:
      translateY(0)
      scale(1);
  }

  100% {
    transform:
      translateY(5px)
      scale(0.985);
  }

}

@keyframes uncle-mike-transition-text {

  0% {
    opacity: 0;

    transform:
      translateY(12px)
      scale(0.93);
  }

  9% {
    opacity: 1;
  }

  21% {
    opacity: 1;

    transform:
      translateY(-1px)
      scale(1.025);
  }

  30% {
    transform:
      translateY(0)
      scale(1);
  }

  88% {
    opacity: 1;

    transform:
      translateY(0)
      scale(1);
  }

  100% {
    opacity: 0;

    transform:
      translateY(2px)
      scale(0.99);
  }

}


/* =========================================================
   FOOTER
   ========================================================= */

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

.footer-wrap {
  min-height: 80px;

  display: flex;

  align-items: center;

  justify-content: space-between;

  gap: 24px;

  color: var(--muted);

  font-family:
    Arial,
    Helvetica,
    sans-serif;

  font-size: 0.68rem;

  font-weight: 700;

  text-transform: uppercase;

  letter-spacing: 0.08em;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 800px) {

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

  .direction-button {
    min-height: 96px;
  }

  .category-grid,
  .project-grid,
  .project-detail-grid,
  .project-gallery {
    grid-template-columns: 1fr;
  }

  .project-detail-grid > div:not(.project-detail-card) > img,
  .project-detail-grid > div:not(.project-detail-card) > video {
    height: auto;

    min-height: 0;
  }

  .category-card {
    min-height: 220px;
  }

  .video-card {
    max-width: 600px;

    margin-inline: auto;
  }

  .nav-wrap {
    gap: 12px;
  }

  .site-logo {
    width: 130px;
  }

  .site-nav {
    gap: 7px;
  }

  .site-nav a,
  .nav-button {
    min-height: 62px;

    padding: 7px 5px;

    font-size: 0.82rem;
  }

  .site-nav .nav-button:nth-child(4),
  .site-nav .nav-button:nth-child(5) {
    min-height: 0;

    padding: 4px 4px 6px;

    font-size: 0.7rem;
  }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 560px) {

  :root {
    --header-height: 88px;

    --section-space: 64px;

    --card-padding: 22px;
  }

  .wrap {
    width:
      min(
        calc(100% - 20px),
        var(--max-width)
      );
  }

  .nav-wrap {
    min-height: var(--header-height);

    width: calc(100% - 16px);

    gap: 7px;

    padding-top: 9px;
    padding-bottom: 9px;
  }

  .site-logo {
    width: 82px;

    flex-shrink: 0;
  }

  .site-nav {
    flex: 1;

    grid-template-columns:
      1.05fr
      0.82fr
      1.2fr
      0.92fr;

    grid-template-rows:
      1fr
      1fr;

    gap: 5px;
  }

  .site-nav a,
  .nav-button {
    min-width: 0;

    min-height: 60px;

    padding:
      6px 3px 10px;

    border-width: 2px;

    font-size: 0.62rem;

    line-height: 0.9;

    letter-spacing: -0.04em;

    box-shadow:
      inset 0 0 0 2px var(--ink),
      inset 0 0 0 3px rgba(234, 215, 173, 0.4),
      0 2px 0 rgba(188, 167, 124, 0.25);
  }

  .site-nav .nav-button:nth-child(4),
  .site-nav .nav-button:nth-child(5) {
    min-height: 0;

    padding:
      3px
      2px
      5px;

    font-size: 0.5rem;

    line-height: 0.82;
  }

  .site-nav a::after,
  .nav-button::after {
    bottom: 3px;

    font-size: 0.27rem;
  }

  .site-nav .nav-button:nth-child(4)::after,
  .site-nav .nav-button:nth-child(5)::after {
    bottom: 1px;

    font-size: 0.2rem;
  }


  /* ---------------------------------------------------------
     MOBILE TYPE / SECTIONS
     --------------------------------------------------------- */

  .page-section {
    padding: var(--section-space) 0;
  }

  h1 {
    font-size: clamp(2.8rem, 14vw, 4.7rem);
  }

  h2 {
    font-size: clamp(2.4rem, 12vw, 4rem);
  }

  h3 {
    font-size: clamp(1.55rem, 8vw, 2.5rem);
  }

  .section-heading {
    margin-bottom: 26px;
  }

  .section-title {
    font-size: clamp(2.5rem, 13vw, 4rem);
  }

  .eyebrow {
    font-size: 0.64rem;

    letter-spacing: 0.17em;
  }

  .project-detail-card p {
    font-size: 0.96rem;
  }


  /* ---------------------------------------------------------
     MOBILE HOME
     --------------------------------------------------------- */

  .home-hero {
    min-height:
      calc(
        100svh -
        var(--header-height)
      );

    padding: 60px 0 80px;
  }

  .home-logo {
    width: 100%;

    margin-bottom: 28px;
  }

  .home-statement {
    font-size: clamp(2.5rem, 12vw, 4rem);
  }

  .home-hero-copy,
  .home-hero-punch {
    font-size: 1rem;
  }


  /* ---------------------------------------------------------
     MOBILE DIRECTION BUTTONS
     --------------------------------------------------------- */

  .home-directions {
    padding-top: 60px;
    padding-bottom: 60px;
  }

  .direction-grid {
    gap: 10px;
  }

  .direction-button {
    min-height: 82px;

    grid-template-columns:
      auto 1fr auto;

    gap: 11px;

    padding: 13px 14px;
  }

  .direction-number {
    font-size: 0.55rem;
  }

  .direction-content {
    gap: 5px;
  }

  .direction-title {
    font-size: clamp(1rem, 5.5vw, 1.3rem);
  }

  .direction-description {
    font-size: 0.56rem;

    letter-spacing: 0.055em;
  }

  .direction-arrow {
    width: 34px;
    height: 34px;

    font-size: 1.1rem;
  }


  /* ---------------------------------------------------------
     MOBILE PROJECTS
     --------------------------------------------------------- */

  .project-media-placeholder,
  .project-gallery img,
  .project-gallery video {
    min-height: 260px;
  }

  .project-card-link {
    min-height: 42px;

    padding: 10px 13px;

    font-size: 0.68rem;
  }


  /* ---------------------------------------------------------
     MOBILE VIDEO
     --------------------------------------------------------- */

  .video-cover {
    padding: 20px;
  }

  .video-cover-title {
    font-size: clamp(1.6rem, 8vw, 2.7rem);
  }

  .video-play {
    width: 62px;
    height: 62px;
  }

  .video-play::before {
    border-top-width: 8px;

    border-bottom-width: 8px;

    border-left-width: 13px;
  }


  /* ---------------------------------------------------------
     MOBILE NAVIGATION BADGE
     --------------------------------------------------------- */

  .site-text-transition {
    padding:
      16px
      10px
      max(
        72px,
        calc(
          env(safe-area-inset-bottom)
          + 54px
        )
      );
  }

  .site-text-transition-inner {
    width: 100%;

    min-height: 150px;

    padding: 34px;
  }

  .site-transition-line {
    font-size: clamp(1.65rem, 8vw, 3rem);

    line-height: 0.88;
  }

  .site-transition-line.is-wide {
    font-size: clamp(1.25rem, 6.4vw, 2.4rem);
  }

  .site-transition-line.is-short {
    font-size: clamp(2.35rem, 11vw, 4.4rem);
  }

  .site-transition-line.is-stacked {
    font-size: clamp(1.65rem, 8vw, 3rem);

    line-height: 0.82;
  }


  /* ---------------------------------------------------------
     MOBILE FOOTER
     --------------------------------------------------------- */

  .footer-wrap {
    padding: 24px 0;

    align-items: flex-start;

    flex-direction: column;

    justify-content: center;
  }

}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

  html {
    scroll-behavior: auto;
  }

  .has-reveal-motion
  .scroll-reveal {
    opacity: 1;

    transform: none;

    transition: none;
  }

  .site-text-transition {
    display: none;
  }

  .project-card,
  .project-card-media img {
    transition: none;
  }

  .project-card-link,
  .direction-arrow,
  .video-play {
    animation: none;
  }

}


/* =========================================================
   COMPACT PROJECT VIDEO SYSTEM
   Attention-first mobile presentation
   ========================================================= */

/*
 * Keep project videos visually substantial without allowing
 * portrait footage to consume an entire phone screen.
 */

@media (max-width: 560px) {

  .video-card {
    width: 100%;
    max-width: 100%;
    margin-inline: auto;
  }

  .video-frame {
    height: 55svh;
    max-height: 520px;
    min-height: 360px;
  }

  .video-frame video {
    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;
  }

  .video-cover {
    height: 100%;
    padding: 18px;
  }

  .video-cover-title {
    max-width: 92%;

    font-size: clamp(1.45rem, 7vw, 2.25rem);
    line-height: 0.92;
  }

  .video-cover-kicker {
    margin-bottom: 7px;

    font-size: 0.58rem;
  }

  .video-play {
    width: 58px;
    height: 58px;
  }

  .video-card-body {
    padding: 17px 18px;
  }

  .video-card-body h3 {
    margin-bottom: 6px;

    font-size: clamp(1.45rem, 7vw, 2rem);
  }

  .video-card-body p {
    font-size: 0.84rem;
  }

}


/*
 * Give videos a controlled size on larger screens too.
 */

@media (min-width: 561px) {

  .video-frame {
    max-height: 680px;
  }

  .video-frame video {
    max-height: 680px;

    object-fit: cover;
  }

}
