@font-face {
  font-family: "Stereofidelic";
  src: url("../fonts/stereofidelic.otf") format("opentype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Loungy";
  src: url("../fonts/fontdinerdotcom-loungy.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
  --zlxv-black: #10100f;
  --zlxv-cream: #f6f0df;
  --zlxv-paper: #fbf7ec;
  --zlxv-red: #b7352f;
  --zlxv-green: #315f48;
  --zlxv-line: rgba(16, 16, 15, 0.18);
}

body {
  color: var(--zlxv-black);
  background: var(--zlxv-paper);
  font-family: Georgia, "Times New Roman", serif;
}

.home-page {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background: #d61b14;
  font-family: "League Spartan", Futura, "Century Gothic", sans-serif;
}

.home-page,
.home-page *,
.home-page *::before,
.home-page *::after {
  box-sizing: border-box;
}

.home-stage {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
}

.home-stage::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: url("../img/home-bg-standard.jpg");
  background-position: center;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  content: "";
  filter: saturate(1.24) contrast(1.06);
}

.home-plaque {
  position: absolute;
  top: 35%;
  left: clamp(2rem, 14vw, 20rem);
  z-index: 1;
  display: block;
  width: min(66vw, 1120px);
  height: auto;
}

.home-plaque-mobile {
  display: none;
}

.home-rail {
  position: absolute;
  top: 0;
  right: clamp(2rem, 4vw, 4.5rem);
  z-index: 2;
  width: clamp(170px, 13.25vw, 225px);
  padding-top: clamp(1.5rem, 7.5vh, 5rem);
  padding-bottom: 1.5rem;
}

.home-portrait {
  display: block;
  width: min(100%, 20vh);
  aspect-ratio: 1 / 1;
  margin-left: auto;
  border: 2px solid var(--zlxv-black);
  object-fit: cover;
}

.home-contact {
  display: block;
  margin: 0.45rem 0 clamp(2.25rem, 6.5vh, 4.25rem) 0.85rem;
  padding: 0;
  border: 0;
  color: var(--zlxv-black);
  background: transparent;
  font-size: clamp(1.15rem, 1.8vw, 1.8rem);
  font-weight: 500;
  line-height: 1;
}

.home-popup-trigger {
  font-family: inherit;
  text-align: left;
  cursor: pointer;
}

.home-popup-trigger:focus {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

.home-contact:hover,
.home-contact:focus {
  color: #ffd400;
}

.home-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(0.15rem, 0.55vh, 0.4rem);
  padding: 0.45rem 0.65rem 0.55rem;
  background: #d61b14 url("../img/nav-red-texture.jpg") center / cover no-repeat;
}

.home-nav-break {
  display: none;
}

.home-nav a {
  color: var(--zlxv-black);
  font-size: clamp(2rem, min(3.15vw, 5.2vh), 3.5rem);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 0.93;
  text-decoration: none;
  text-transform: uppercase;
}

.home-nav a:hover,
.home-nav a:focus,
.home-nav .active {
  color: #ffd400;
  text-decoration: none;
}

.home-socials {
  margin-top: clamp(2rem, 5vh, 3.75rem);
  padding: 0.6rem 0.75rem 0.7rem;
  color: #ffd400;
  background: #17388f url("../img/social-blue-texture.jpg") center / cover no-repeat;
  font-size: clamp(1rem, min(1.65vw, 2.5vh), 1.55rem);
  font-weight: 700;
  line-height: 1.25;
}

.home-socials button {
  display: block;
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
}

.home-socials button:hover,
.home-socials button:focus {
  color: var(--zlxv-black);
}

.home-socials .home-handle {
  margin-bottom: clamp(1.25rem, 3.5vh, 2.25rem);
}

.home-social-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.home-socials .home-social-toggle {
  display: none;
}

.home-social-menu {
  display: block;
}

.home-modal-content {
  position: relative;
  padding: clamp(2rem, 6vw, 4rem);
  border: 4px solid var(--zlxv-black);
  border-radius: 0;
  color: var(--zlxv-black);
  background: #d61b14;
  box-shadow: 12px 12px 0 #ffd400;
  font-family: "League Spartan", Futura, "Century Gothic", sans-serif;
}

/* Keep the dialog out of document flow even if the Bootstrap CDN is slow. */
.home-modal {
  display: none;
}

.home-modal.show {
  display: block;
}

.home-modal-content h2 {
  margin: 0 0 0.75rem;
  color: #ffd400;
  font-size: clamp(2.25rem, 7vw, 4.5rem);
  font-weight: 900;
  line-height: 0.9;
  text-transform: uppercase;
}

.home-modal-content > p:last-child {
  max-width: 22rem;
  margin: 0;
  font-size: clamp(1.05rem, 2.5vw, 1.35rem);
  font-weight: 700;
  line-height: 1.2;
}

.home-modal-mark {
  margin: 0 0 1.5rem;
  font-family: "Stereofidelic", Impact, sans-serif;
  font-size: clamp(2rem, 6vw, 3.75rem);
  line-height: 0.9;
}

.home-modal-close {
  position: absolute;
  top: 0.65rem;
  right: 0.85rem;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 0;
  color: var(--zlxv-black);
  background: transparent;
  font-size: 2.5rem;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
}

.home-modal-close:hover,
.home-modal-close:focus {
  color: #ffd400;
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

.section-page {
  min-width: 320px;
  margin: 0;
  color: var(--zlxv-black);
  background: #999999;
  font-family: "League Spartan", Futura, "Century Gothic", sans-serif;
}

.section-stage {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
}

.section-rail {
  position: absolute;
  top: 34%;
  right: clamp(1.75rem, 5vw, 5rem);
  width: clamp(145px, 13vw, 205px);
}

.section-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
}

.section-nav a {
  color: var(--zlxv-black);
  font-size: clamp(2rem, min(3.1vw, 5.3vh), 3.35rem);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 0.93;
  text-transform: uppercase;
}

.section-nav a:hover,
.section-nav a:focus,
.section-nav .active {
  color: #ffb700;
  text-decoration: none;
}

.story-content,
.theory-content {
  width: calc(100% - clamp(235px, 22vw, 340px));
  max-width: 1080px;
  padding: clamp(4.5rem, 12vh, 8rem) clamp(2.5rem, 8vw, 8rem) 4rem;
}

.story-title {
  margin: 0 0 clamp(3rem, 7vh, 5rem);
  font-size: clamp(2.25rem, min(3.6vw, 6vh), 4rem);
  font-weight: 900;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
}

.story-entry {
  margin-bottom: clamp(3rem, 8vh, 5.5rem);
}

.story-entry h2 {
  margin: 0 0 1.25rem;
  font-size: clamp(1.35rem, 2.1vw, 2rem);
  font-weight: 900;
  line-height: 1;
}

.story-entry p,
.theory-intro,
.theory-notes {
  margin: 0;
  font-size: clamp(1.2rem, min(1.95vw, 3.2vh), 1.75rem);
  font-weight: 500;
  line-height: 1.28;
}

.theory-content {
  max-width: none;
  padding-top: clamp(2.75rem, 7vh, 5rem);
}

.theory-title {
  display: flex;
  align-items: baseline;
  justify-content: center;
  margin: 0 0 clamp(2.75rem, 7vh, 5rem);
  font-size: clamp(2.7rem, min(5vw, 8.5vh), 5.5rem);
  font-weight: 900;
  line-height: 0.9;
  text-transform: uppercase;
  white-space: nowrap;
}

.streetpop-word {
  margin-left: 0.25em;
  font-family: "Stereofidelic", Impact, sans-serif;
  font-size: 1.15em;
  font-weight: normal;
}

.theory-title sup {
  align-self: flex-start;
  margin-top: 0.15em;
  font-size: 0.28em;
  line-height: 1;
}

.theory-intro {
  max-width: 1060px;
}

.theory-notes {
  margin-top: clamp(2.25rem, 6vh, 4.5rem);
  font-weight: 700;
}

.theory-slogan {
  margin: clamp(6rem, 18vh, 12rem) 0 0;
  font-family: "Loungy", Georgia, serif;
  font-size: clamp(2rem, min(4vw, 6.5vh), 4.5rem);
  line-height: 1;
  white-space: nowrap;
}

.catalogue-content {
  width: calc(100% - clamp(235px, 22vw, 340px));
  max-width: 1080px;
  padding: clamp(4.5rem, 12vh, 8rem) clamp(2.5rem, 8vw, 8rem) 4rem;
}

.catalogue-title {
  margin: 0 0 clamp(4rem, 10vh, 7rem);
  font-size: clamp(2.5rem, min(4vw, 6.5vh), 4.25rem);
  font-weight: 900;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
}

.catalogue-entry {
  margin: 0;
}

.catalogue-image-link {
  display: block;
  color: inherit;
}

.catalogue-image-link:focus {
  outline: 3px solid #ffb700;
  outline-offset: 4px;
}

.catalogue-image {
  display: block;
  width: 100%;
  height: auto;
  border: 2px solid var(--zlxv-black);
  box-shadow: 0 2px 5px rgba(16, 16, 15, 0.32);
}

.catalogue-caption,
.catalogue-intro {
  font-size: clamp(1.2rem, min(1.95vw, 3.2vh), 1.75rem);
  font-weight: 500;
  line-height: 1.28;
}

.catalogue-caption {
  margin: clamp(2.75rem, 7vh, 5rem) 0 0;
}

.catalogue-caption strong {
  font-weight: 900;
  text-transform: uppercase;
}

.trade-page .catalogue-content {
  padding-top: clamp(2rem, 5vh, 3.5rem);
}

.trade-page .catalogue-title {
  margin-bottom: 1rem;
}

.catalogue-intro {
  margin: 0 0 clamp(4rem, 10vh, 7rem);
}

a {
  color: var(--zlxv-red);
}

a:hover,
a:focus {
  color: #84231f;
}

.site-header {
  border-bottom: 1px solid var(--zlxv-line);
  background: var(--zlxv-paper);
}

.site-header > .container {
  min-height: 74px;
}

.brand-mark {
  color: var(--zlxv-black);
  font-family: "Stereofidelic", Georgia, serif;
  font-size: 2.35rem;
  line-height: 1;
  text-decoration: none;
}

.brand-mark:hover,
.brand-mark:focus {
  color: var(--zlxv-black);
  text-decoration: none;
}

.site-nav {
  justify-content: flex-end;
  gap: 1.15rem;
  margin-left: auto;
}

.site-nav a {
  color: var(--zlxv-black);
  font-family: "Loungy", Georgia, serif;
  font-size: 1.2rem;
  letter-spacing: 0.02em;
  line-height: 1;
  text-transform: uppercase;
}

.site-nav a:hover,
.site-nav a:focus,
.site-nav .active {
  color: var(--zlxv-red);
  text-decoration: none;
}

.hero {
  min-height: calc(100vh - 78px);
  background-image: linear-gradient(rgba(16, 16, 15, 0.24), rgba(16, 16, 15, 0.42)), url("../img/homepage-background.jpg");
  background-position: center;
  background-size: cover;
  color: var(--zlxv-cream);
}

.hero-inner {
  max-width: 860px;
  padding-top: 12vh;
  padding-bottom: 14vh;
}

.hero-title {
  font-family: "Stereofidelic", Georgia, serif;
  font-size: clamp(4rem, 13vw, 9rem);
  line-height: 0.85;
}

.hero-kicker,
.section-kicker {
  font-family: "Loungy", Georgia, serif;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero-text {
  max-width: 34rem;
  font-size: 1.15rem;
}

.page-main {
  padding-top: 4rem;
  padding-bottom: 5rem;
}

.page-title {
  font-family: "Stereofidelic", Georgia, serif;
  font-size: clamp(3rem, 8vw, 6rem);
  line-height: 0.9;
}

.intro-text {
  max-width: 46rem;
  font-size: 1.1rem;
}

.placeholder-panel,
.work-card {
  border: 1px solid var(--zlxv-line);
  background: rgba(255, 255, 255, 0.34);
}

.placeholder-panel {
  padding: 1.5rem;
}

.placeholder-image {
  min-height: 240px;
  border: 1px dashed rgba(16, 16, 15, 0.32);
  background: rgba(255, 255, 255, 0.28);
}

.work-card {
  height: 100%;
}

.work-thumb {
  aspect-ratio: 4 / 3;
  border-bottom: 1px solid var(--zlxv-line);
  background: rgba(49, 95, 72, 0.12);
}

.meta-list {
  padding-left: 0;
  list-style: none;
}

.meta-list li {
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--zlxv-line);
}

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

@media (min-width: 1600px) {
  .home-stage::before {
    background-image: url("../img/home-bg-desktop.jpg");
  }
}

@media (max-width: 1399.98px) and (min-width: 576px) {
  .home-plaque {
    top: 40%;
    left: 4vw;
    width: min(68vw, calc(96vw - 260px));
  }
}

@media (max-width: 1199.98px) and (min-width: 576px) and (orientation: portrait) {
  .home-stage::before {
    background-image: url("../img/home-bg-portrait.jpg");
  }
}

@media (min-width: 576px) and (max-height: 760px) {
  .home-rail {
    padding-top: 1rem;
  }

  .home-portrait {
    width: min(100%, 17vh);
  }

  .home-contact {
    margin: 0.35rem 0 1.25rem 0.5rem;
    font-size: clamp(1rem, 1.6vw, 1.35rem);
  }

  .home-socials {
    margin-top: 1.25rem;
    font-size: clamp(0.82rem, 1.4vw, 1rem);
    line-height: 1.15;
  }

  .home-socials .home-handle {
    margin-bottom: 1rem;
  }
}

@media (max-width: 767.98px) {
  .section-rail {
    top: 1rem;
    right: 1rem;
    width: 112px;
  }

  .section-nav {
    gap: 0.05rem;
  }

  .section-nav a {
    font-size: 1.45rem;
  }

  .story-content,
  .theory-content,
  .catalogue-content {
    width: 100%;
    padding: 11rem 1.5rem 3rem;
  }

  .story-title {
    margin-bottom: 3rem;
    font-size: clamp(2rem, 10vw, 2.75rem);
    text-align: left;
  }

  .story-entry {
    margin-bottom: 3.25rem;
  }

  .theory-title {
    display: block;
    font-size: clamp(2.5rem, 11vw, 3.5rem);
    white-space: normal;
  }

  .streetpop-word {
    display: inline-block;
    margin-left: 0;
  }

  .theory-slogan {
    margin-top: 5rem;
    font-size: clamp(2rem, 10vw, 3rem);
    white-space: normal;
  }

  .catalogue-title {
    margin-bottom: 3rem;
    font-size: clamp(2rem, 10vw, 2.75rem);
    text-align: left;
  }

  .trade-page .catalogue-content {
    padding-top: 11rem;
  }

  .trade-page .catalogue-title {
    margin-bottom: 1rem;
  }

  .catalogue-intro {
    margin-bottom: 3rem;
  }

  .catalogue-caption {
    margin-top: 2rem;
  }

  .brand-mark {
    font-size: 1.85rem;
  }

  .site-nav {
    width: 100%;
    margin-top: 0.75rem;
    margin-left: 0;
    justify-content: flex-start;
    gap: 0.65rem 1rem;
  }

  .site-nav a {
    font-size: 1.05rem;
  }

  .hero {
    min-height: auto;
  }

  .hero-inner {
    padding-top: 5rem;
    padding-bottom: 5rem;
  }
}

@media (max-width: 991.98px) and (max-height: 550px) and (orientation: landscape) {
  .home-stage {
    min-height: 100vh;
  }

  .home-stage::before {
    background-image: url("../img/home-bg-landscape.jpg");
  }

  .home-plaque {
    top: 38%;
    left: 2vw;
    width: min(66vw, calc(100vw - 150px));
  }

  .home-rail {
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0.5rem 1rem;
  }

  .home-top {
    display: block;
    width: auto;
  }

  .home-profile {
    position: absolute;
    top: 0.5rem;
    right: 1rem;
    width: clamp(68px, 10vw, 92px);
  }

  .home-portrait {
    width: clamp(68px, 10vw, 92px);
    margin: 0;
  }

  .home-contact {
    margin: 0;
    max-width: 100%;
    font-size: 0.8rem;
    text-align: right;
  }

  .home-nav {
    position: absolute;
    top: 0.5rem;
    left: 1rem;
    display: flex;
    flex-flow: row nowrap;
    gap: clamp(0.35rem, 1.2vw, 0.8rem);
    width: calc(100% - clamp(68px, 10vw, 92px) - 3rem);
    max-width: none;
    padding: 0.35rem 0.45rem 0.4rem;
  }

  .home-nav a {
    font-size: clamp(0.8rem, 2.2vw, 1.25rem);
    line-height: 0.9;
    white-space: nowrap;
  }

  .home-socials {
    position: absolute;
    right: 1rem;
    top: clamp(7rem, 33vh, 9rem);
    bottom: auto;
    width: clamp(68px, 10vw, 92px);
    margin: 0;
    max-width: 100%;
    font-size: clamp(0.62rem, 1.65vw, 0.82rem);
    line-height: 1.08;
  }

  .home-socials .home-handle {
    margin-bottom: 0.55rem;
  }

  .section-rail {
    top: 0.75rem;
    right: 0.75rem;
    width: 102px;
  }

  .section-nav a {
    font-size: clamp(1.05rem, 3.2vw, 1.4rem);
  }

  .story-content,
  .theory-content,
  .catalogue-content {
    width: 100%;
    padding: 1.5rem 8.5rem 2.5rem 1.5rem;
  }

  .story-title {
    margin-bottom: 2rem;
    font-size: clamp(1.65rem, 5.5vw, 2.5rem);
  }

  .story-entry {
    margin-bottom: 2.5rem;
  }

  .story-entry h2 {
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
  }

  .story-entry p,
  .theory-intro,
  .theory-notes {
    font-size: clamp(0.95rem, 2.6vw, 1.2rem);
  }

  .theory-title {
    margin-bottom: 1.75rem;
    font-size: clamp(2rem, 6.5vw, 3rem);
  }

  .theory-notes {
    margin-top: 1.75rem;
  }

  .theory-slogan {
    margin-top: 3rem;
    font-size: clamp(1.8rem, 6vw, 2.75rem);
  }

  .catalogue-title {
    margin-bottom: 2rem;
    font-size: clamp(1.65rem, 5.5vw, 2.5rem);
  }

  .trade-page .catalogue-content {
    padding-top: 1.5rem;
  }

  .catalogue-caption,
  .catalogue-intro {
    font-size: clamp(0.95rem, 2.6vw, 1.2rem);
  }

  .catalogue-intro {
    margin-bottom: 2rem;
  }

  .catalogue-caption {
    margin-top: 1.5rem;
  }

  .site-header > .container {
    min-height: 58px;
    padding-top: 0.45rem;
    padding-bottom: 0.45rem;
  }

  .brand-mark {
    font-size: 1.55rem;
  }

  .site-nav {
    width: auto;
    margin-top: 0;
    margin-left: auto;
    justify-content: flex-end;
    gap: 0.75rem;
  }

  .site-nav a {
    font-size: 0.95rem;
  }

  .hero-inner {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
  }

  .hero-title {
    font-size: clamp(3.5rem, 16vh, 5.5rem);
  }

  .page-main {
    padding-top: 2.25rem;
    padding-bottom: 3rem;
  }
}

@media (max-width: 575.98px) and (orientation: portrait) {
  .home-stage {
    min-height: 100vh;
    min-height: 100svh;
    overflow: hidden;
  }

  .home-stage::before {
    background-image: url("../img/home-bg-portrait.jpg");
  }

  .home-plaque {
    display: none;
  }

  .home-rail {
    position: static;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    margin: 0;
    min-height: 100vh;
    min-height: 100svh;
    overflow-x: hidden;
    padding: 0.65rem;
  }

  .home-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 100%;
  }

  .home-profile {
    position: static;
    order: 2;
    align-self: center;
    width: clamp(96px, 30vw, 132px);
    margin: 0.75rem auto 0;
  }

  .home-portrait {
    width: 100%;
    margin: 0;
  }

  .home-contact {
    margin: 0;
    max-width: 100%;
    font-size: clamp(0.78rem, 3.5vw, 1rem);
    text-align: center;
  }

  .home-nav {
    position: static;
    order: 1;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.22rem clamp(0.35rem, 1.8vw, 0.5rem);
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0.35rem 0.4rem 0.4rem;
  }

  .home-nav a {
    font-size: clamp(0.75rem, 3.6vw, 1rem);
    line-height: 1;
    text-align: center;
  }

  .home-nav-break {
    display: block;
    flex: 0 0 100%;
    height: 0;
  }

  .home-plaque-mobile {
    display: block;
    align-self: center;
    width: 95%;
    max-width: 100%;
    height: auto;
    margin: 1rem auto 0.85rem;
  }

  .home-socials {
    position: static;
    align-self: center;
    display: flex;
    width: auto;
    flex-direction: column;
    align-items: center;
    margin: 0 auto;
    max-width: 100%;
    font-size: clamp(0.78rem, 3.5vw, 0.92rem);
    line-height: 1.18;
    text-align: center;
  }

  .home-socials .home-handle {
    margin-bottom: 1.5rem;
  }

  .home-socials button {
    max-width: 100%;
    text-align: center;
  }
}

/* Homepage composition based on the original stencil-wall mockup. */
.home-stage::before {
  background-image: url("../img/stencil-wall-desktop-v2.jpg");
  background-position: center;
  background-size: 100% 100%;
  filter: saturate(1.08) contrast(1.03);
}

.home-plaque {
  top: 43%;
  left: 17%;
  width: min(52vw, 960px);
  height: auto;
  filter: drop-shadow(0 4px 3px rgba(16, 16, 15, 0.34));
}

.home-rail {
  right: clamp(0.75rem, 1.7vw, 2rem);
  width: clamp(155px, 13.25vw, 225px);
  padding-top: clamp(2rem, 7vh, 6rem);
}

.home-portrait {
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
  box-shadow: 0 3px 4px rgba(16, 16, 15, 0.28);
}

.home-contact {
  margin: 0.55rem 0 clamp(2.75rem, 6vh, 5rem) 0.85rem;
}

.home-nav,
.home-socials {
  background: transparent;
}

.home-nav {
  gap: clamp(0.2rem, 0.65vh, 0.5rem);
  padding: 0;
}

.home-nav a {
  font-size: clamp(2rem, min(3.05vw, 5vh), 3.45rem);
  text-shadow: 0 1px rgba(255, 255, 255, 0.12);
}

.home-socials {
  margin-top: clamp(2.5rem, 6.5vh, 5.5rem);
  padding: 0 0 0 0.2rem;
  color: #ffd400;
  text-shadow: 0 1px rgba(16, 16, 15, 0.4);
}

@media (min-width: 901px) and (max-height: 1000px) {
  .home-rail {
    padding-top: 3vh;
  }

  .home-portrait {
    width: min(100%, 19vh);
    margin-left: auto;
  }

  .home-contact {
    margin: 0.35rem 0 3vh 0.65rem;
    font-size: clamp(1rem, 1.6vw, 1.35rem);
  }

  .home-nav a {
    font-size: clamp(1.75rem, min(2.8vw, 4.25vh), 3rem);
  }

  .home-socials {
    margin-top: 4vh;
    font-size: clamp(0.88rem, min(1.45vw, 2.2vh), 1.3rem);
    line-height: 1.18;
  }

  .home-socials .home-handle {
    margin-bottom: 2.5vh;
  }
}

@media (min-width: 1600px) {
  .home-stage::before {
    background-image: url("../img/stencil-wall-desktop-v2.jpg");
  }
}

@media (max-width: 1399.98px) and (min-width: 576px) {
  .home-plaque {
    top: 44%;
    left: 13%;
    width: min(54vw, calc(96vw - 235px));
  }
}

@media (max-width: 1199.98px) and (min-width: 576px) and (orientation: portrait) {
  .home-stage::before {
    background-image: url("../img/stencil-wall-home.jpg");
  }
}

@media (min-width: 576px) and (max-width: 900px) and (orientation: portrait) {
  .home-stage::before {
    background-position: 58% center;
    background-size: cover;
  }

  .home-plaque {
    top: 43%;
    left: 4%;
    width: 70%;
  }

  .home-rail {
    position: relative;
    top: auto;
    right: auto;
    width: 100%;
    min-height: 100vh;
    min-height: 100svh;
    padding: 1rem;
  }

  .home-profile {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: clamp(112px, 19vw, 150px);
  }

  .home-contact {
    margin: 0.35rem 0 0;
    font-size: clamp(1rem, 2.7vw, 1.35rem);
    text-align: center;
  }

  .home-nav {
    width: calc(100% - clamp(145px, 24vw, 190px));
    padding: 0.65rem 0.8rem 0.75rem;
    background: #a51f2c url("../img/responsive-nav-red.jpg") center / cover no-repeat;
    box-shadow: 0 3px 4px rgba(16, 16, 15, 0.25);
  }

  .home-nav a {
    font-size: clamp(2rem, 6vw, 3rem);
  }

  .home-socials {
    position: absolute;
    right: 1.25rem;
    bottom: 1.5rem;
    width: clamp(155px, 26vw, 205px);
    margin: 0;
    padding: 0.8rem 1rem;
    font-size: clamp(1rem, 2.8vw, 1.3rem);
    background: #152f68 url("../img/responsive-social-blue.jpg") center / cover no-repeat;
    box-shadow: 0 3px 4px rgba(16, 16, 15, 0.25);
  }
}

@media (max-width: 991.98px) and (max-height: 550px) and (orientation: landscape) {
  .home-stage::before {
    background-image: url("../img/stencil-wall-home.jpg");
    background-position: center;
    background-size: 100% 100%;
  }

  .home-plaque {
    top: 40%;
    left: 7%;
    width: min(56vw, calc(100vw - 165px));
  }

  .home-rail {
    width: 100%;
  }

  .home-nav {
    background: #a51f2c url("../img/responsive-nav-red.jpg") center / cover no-repeat;
    box-shadow: 0 2px 3px rgba(16, 16, 15, 0.28);
  }

  .home-socials {
    background: #152f68 url("../img/responsive-social-blue.jpg") center / cover no-repeat;
    box-shadow: 0 2px 3px rgba(16, 16, 15, 0.28);
  }
}

@media (max-width: 575.98px) and (orientation: portrait) {
  .home-page {
    min-width: 0;
  }

  .home-stage {
    overflow-x: hidden;
    overflow-y: visible;
  }

  .home-stage::before {
    background-image: url("../img/stencil-wall-home.jpg");
    background-position: 60% center;
    background-size: cover;
  }

  .home-rail {
    width: 100%;
    padding: 0.65rem;
  }

  .home-profile {
    margin-top: 0.3rem;
  }

  .home-contact {
    margin: 0.3rem auto 0;
    font-size: clamp(1.15rem, 5.4vw, 1.35rem);
  }

  .home-nav {
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 0.28rem;
    width: min(72%, 230px);
    padding: 0.45rem 0.65rem 0.5rem;
    background: #a51f2c url("../img/responsive-nav-red.jpg") center / cover no-repeat;
    box-shadow: 0 3px 4px rgba(16, 16, 15, 0.25);
  }

  .home-nav a {
    font-size: clamp(1rem, 4.7vw, 1.15rem);
    line-height: 0.96;
    padding: 0.12rem 0.35rem;
  }

  .home-nav-break {
    display: none;
  }

  .home-socials {
    margin: 0 auto;
    padding: 0.75rem 1rem 0.85rem;
    background: #152f68 url("../img/responsive-social-blue.jpg") center / cover no-repeat;
    box-shadow: 0 3px 4px rgba(16, 16, 15, 0.25);
    line-height: 1.1;
  }

  .home-socials .home-social-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    font-size: clamp(1.05rem, 5vw, 1.25rem);
    line-height: 1;
    white-space: nowrap;
  }

  .home-socials .home-social-toggle:hover,
  .home-socials .home-social-toggle:focus,
  .home-socials .home-social-toggle[aria-expanded="true"] {
    color: #fff1a8;
  }

  .home-social-toggle-icon {
    min-width: 0.8em;
    font-size: 1.2em;
    line-height: 0.8;
    text-align: center;
  }

  .home-social-menu {
    display: none;
  }

  .home-socials.is-open .home-social-menu {
    display: block;
    margin-top: 0.75rem;
  }

  .home-socials .home-handle {
    margin-bottom: 0.6rem;
  }

  .home-plaque-mobile {
    width: 82%;
    height: auto;
    margin: 0.2rem auto;
    filter: drop-shadow(0 3px 2px rgba(16, 16, 15, 0.34));
  }
}

@media (min-width: 901px) and (min-height: 551px) {
  .home-nav,
  .home-socials {
    transform: translateX(clamp(-90px, -4vw, -56px));
  }
}

/* Tablets and similarly sized screens use a compact desktop-style rail
   instead of the wide header treatment. */
@media (min-width: 576px) and (max-width: 1199.98px) and (min-height: 551px) {
  .home-stage::before {
    background-image: url("../img/stencil-wall-desktop-v2.jpg");
    background-position: center;
    background-size: 100% 100%;
  }

  .home-plaque {
    top: 43%;
    left: 4%;
    width: min(68vw, calc(96vw - 215px));
  }

  .home-rail {
    position: absolute;
    top: 0;
    right: clamp(0.75rem, 2vw, 1.25rem);
    width: clamp(155px, 18vw, 190px);
    min-height: 0;
    padding: clamp(1rem, 3vh, 2rem) 0 1rem;
  }

  .home-top {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .home-profile {
    position: static;
    align-self: center;
    width: min(100%, 150px);
  }

  .home-portrait {
    width: 100%;
    margin: 0;
  }

  .home-contact {
    margin: 0.55rem auto clamp(2rem, 4vh, 3rem);
    color: #ffd400;
    font-size: clamp(1.15rem, 2.15vw, 1.45rem);
    font-weight: 700;
    text-align: center;
    text-shadow: 0 1px 1px rgba(16, 16, 15, 0.7);
  }

  .home-nav {
    position: static;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: flex-start;
    gap: clamp(0.2rem, 0.6vh, 0.4rem);
    width: 100%;
    padding: 0;
    background: transparent;
    box-shadow: none;
    transform: translateX(-0.75rem);
  }

  .home-nav a {
    font-size: clamp(1.65rem, min(3.5vw, 4vh), 2.35rem);
    line-height: 0.93;
    white-space: nowrap;
  }

  .home-nav-break {
    display: none;
  }

  .home-socials {
    position: static;
    width: 100%;
    margin: clamp(2rem, 4.5vh, 3.5rem) 0 0;
    padding: 0;
    font-size: clamp(0.95rem, min(1.9vw, 2vh), 1.2rem);
    line-height: 1.18;
    background: transparent;
    box-shadow: none;
    transform: translateX(-0.75rem);
  }

  .home-socials .home-handle {
    margin-bottom: clamp(1.25rem, 2.5vh, 2rem);
  }

  .home-socials .home-social-toggle {
    display: none;
  }

  .home-social-menu {
    display: block;
  }

  .home-plaque-mobile {
    display: none;
  }
}
