@font-face {
  font-family: "Cinzel";
  src: url("fonts/Cinzel-VariableFont_wght.ttf") format("truetype");
  font-weight: 400 950;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #000;
  --text: #f4f1ea;
  --muted: #9b9890;
  --line: #262626;
  --field: #090909;
  --focus: #ffffff;
  --max-width: 1520px;
  --title-width: min(100% - 40px, 1120px);
  --hero-title-size: clamp(3.1rem, 11vw, 14.2rem);
  --banner-height: clamp(320px, 46vw, 680px);
  --pixel-cream: #f4f1ea;
  --pixel-white: #ffffff;
  --pixel-gray: #aaa49a;
  --pixel-ink: #050505;
  --title-font: "Cinzel", "Times New Roman", serif;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  color: var(--text);
  font-family: var(--title-font);
  font-size: 16px;
  text-rendering: geometricPrecision;
}

body {
  position: relative;
  min-height: 100vh;
  margin: 0;
  background-color: var(--bg);
  background-image: linear-gradient(rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.9)),
    url("village-background.jpg");
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  color: var(--text);
}

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

a:hover {
  color: #fff;
}

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

address {
  color: var(--text);
  font-style: normal;
  line-height: 1.7;
}

.site-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: 100%;
  margin: 0 auto;
  padding: 21px clamp(22px, 3vw, 42px) 21px 20px;
}

.speaker-strip {
  position: absolute;
  inset: 0 clamp(180px, 17vw, 270px) 0 clamp(14px, 1.8vw, 28px);
  display: grid;
  grid-template-columns: repeat(11, auto);
  column-gap: clamp(4px, 0.65vw, 10px);
  justify-content: space-between;
  align-items: start;
  justify-items: start;
  pointer-events: none;
  z-index: 0;
}

.speaker-strip img {
  width: clamp(26px, 3vw, 46px);
  height: clamp(26px, 3vw, 46px);
  object-fit: contain;
  opacity: 1;
  filter: contrast(1.18) brightness(1.08);
}

.mobile-speaker-strip {
  display: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  text-transform: uppercase;
}

.brand-name,
.site-nav a,
.eyebrow,
.column-label,
button {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-nav {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(18px, 3vw, 42px);
  z-index: 1;
}

.site-nav a {
  color: var(--muted);
  transition: color 160ms ease;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--text);
}

.instagram-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
}

.instagram-link svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.footer-instagram {
  margin-top: 32px;
}

.info-grid .info-column:nth-child(2) .footer-instagram {
  margin-left: auto;
}

.hero,
.page-hero {
  width: 100%;
  margin: 0 auto;
  padding: clamp(46px, 6.5vw, 96px) 0 clamp(56px, 9vw, 120px);
  text-align: center;
}

.hero {
  min-height: clamp(180px, 27vw, 420px);
}

.page-hero {
  min-height: clamp(180px, 27vw, 420px);
}

.page-hero {
  padding-bottom: clamp(44px, 8vw, 92px);
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--muted);
}

h1 {
  display: inline-block;
  max-width: calc(100% - 40px);
  margin: 0 auto;
  color: var(--text);
  font-family: var(--title-font);
  font-size: var(--hero-title-size);
  font-weight: 950;
  letter-spacing: 0;
  line-height: 0.78;
  min-height: 0.78em;
  text-align: center;
  text-transform: uppercase;
  transform: scaleX(1.08) scaleY(0.94);
  transform-origin: center;
  white-space: nowrap;
  text-shadow: 0 2px 22px rgba(0, 0, 0, 0.82);
}

.loading-title {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.045em;
  min-width: min(92vw, 10.1em);
  font-feature-settings: "kern" 0, "liga" 0;
  font-kerning: none;
}

.loading-char {
  display: inline-block;
  min-width: 0.5em;
  opacity: 1;
}

.loading-space {
  min-width: 0.34em;
}

.loading-char.is-flickering {
  animation: loadingFlicker 110ms steps(1, end);
}

.loading-cursor {
  display: inline-block;
  width: 0.38em;
  height: 0.58em;
  margin-left: 0.04em;
  background: var(--pixel-cream);
  transform: translateY(0.03em);
  animation: cursorBlink 520ms steps(1, end) infinite;
}

.loading-title.is-complete .loading-cursor {
  display: none;
}

@keyframes cursorBlink {
  0%,
  48% {
    opacity: 1;
  }

  49%,
  100% {
    opacity: 0;
  }
}

@keyframes loadingFlicker {
  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.9;
  }
}

.page-hero h1 {
  font-size: var(--hero-title-size);
}

.thank-you-copy {
  margin: clamp(24px, 4vw, 44px) 0 0;
  color: var(--text);
  font-size: clamp(1rem, 2vw, 1.4rem);
  text-transform: uppercase;
}

.return-link {
  display: inline-block;
  margin-top: 28px;
  color: var(--text);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background-image: linear-gradient(currentColor, currentColor);
  background-position: 0 100%;
  background-repeat: no-repeat;
  background-size: 0 1px;
  transition: background-size 180ms ease;
}

.return-link:hover {
  background-size: 100% 1px;
}

.image-strip {
  position: relative;
  width: 100%;
  height: var(--banner-height);
  overflow: hidden;
  border-top: 2px solid var(--text);
  border-bottom: 2px solid var(--text);
  background: #080808;
  box-shadow: 0 -34px 80px rgba(0, 0, 0, 0.45),
    0 34px 80px rgba(0, 0, 0, 0.55);
}

.image-strip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 36%;
  filter: grayscale(1) contrast(1.18);
}

.wave-marquee {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.42);
}

.save-file-text {
  color: var(--text);
  display: block;
  max-width: calc(100% - 32px);
  font-size: clamp(1rem, 2.4vw, 2.7rem);
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1;
  overflow: hidden;
  padding: 14px 18px;
  text-align: center;
  text-transform: uppercase;
  text-shadow: 1px 0 0 var(--pixel-gray), -1px 0 0 var(--pixel-ink);
  white-space: nowrap;
  will-change: opacity, transform;
}

.save-file-char {
  display: inline-block;
  min-width: 0.62em;
  will-change: contents, opacity;
}

.save-file-text.is-resolved {
  animation: saveSettle 180ms steps(2, end) both;
}

@keyframes saveSettle {
  0% {
    opacity: 0.94;
    transform: translateX(-1px);
  }

  50% {
    opacity: 1;
    transform: translateX(1px);
  }

  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

.info-grid,
.contact-layout {
  display: grid;
  width: min(100% - 40px, var(--max-width));
  margin: 0 auto;
  padding: clamp(44px, 7vw, 86px) 0;
  border-bottom: 1px solid rgba(244, 241, 234, 0.28);
}

.info-grid {
  grid-template-columns: minmax(260px, 1fr) minmax(190px, 0.48fr);
  gap: clamp(34px, 6vw, 96px);
  width: var(--title-width);
  text-align: left;
}

.info-grid .info-column:nth-child(2) {
  text-align: right;
}

.contact-stack {
  display: inline-grid;
  justify-items: center;
  gap: 24px;
  text-align: center;
}

.contact-layout {
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.75fr);
  gap: clamp(42px, 9vw, 140px);
  align-items: start;
  text-align: center;
}

.info-column,
.direct-contact {
  min-width: 0;
}

.column-label {
  display: block;
  margin: 0 0 24px;
  color: var(--muted);
}

.contact-page-link {
  display: inline-block;
  transition: color 160ms ease;
}

.contact-page-link:hover {
  color: var(--text);
}

.info-grid .column-label {
  color: var(--text);
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  line-height: 1;
}

.text-links {
  display: grid;
  gap: 26px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.text-links a {
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
}

.text-links a,
address a,
.contact-page-link {
  color: var(--text);
  background-image: linear-gradient(currentColor, currentColor);
  background-position: 0 100%;
  background-repeat: no-repeat;
  background-size: 0 1px;
  transition: background-size 180ms ease, color 180ms ease;
}

address a[href^="mailto:"] {
  font-family: var(--title-font);
  font-variant-caps: normal;
  letter-spacing: 0.02em;
  text-transform: lowercase;
}

.text-links a:hover,
address a:hover,
.contact-page-link:hover {
  background-size: 100% 1px;
}

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

.form-row {
  display: grid;
  gap: 10px;
}

label {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-layout label,
.direct-contact .column-label {
  color: var(--text);
  font-size: clamp(1rem, 1.35vw, 1.25rem);
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.9);
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--field);
  color: var(--text);
  font: inherit;
  line-height: 1.5;
  outline: none;
  padding: 16px 18px;
  transition: border-color 160ms ease, background-color 160ms ease;
}

textarea {
  min-height: 180px;
  resize: vertical;
}

input:focus,
textarea:focus {
  border-color: var(--focus);
  background: #050505;
}

button {
  justify-self: center;
  border: 1px solid var(--text);
  border-radius: 0;
  background: var(--text);
  color: var(--bg);
  cursor: pointer;
  font-family: var(--title-font);
  padding: 16px 24px;
  transition: background-color 160ms ease, color 160ms ease;
}

button:hover {
  background: transparent;
  color: var(--text);
}

.success-message {
  margin: 0;
  color: var(--text);
  font-size: clamp(1.5rem, 4vw, 3.4rem);
  font-weight: 800;
  line-height: 1.1;
  text-align: center;
  text-transform: uppercase;
}

.contact-form.is-success {
  min-height: 360px;
  align-content: start;
  justify-items: center;
  padding-top: clamp(18px, 4vw, 44px);
}

.contact-form.is-success .form-row,
.contact-form.is-success button {
  display: none;
}

.direct-contact {
  display: grid;
  gap: 34px;
  border-left: 1px solid rgba(244, 241, 234, 0.32);
  padding-left: clamp(28px, 5vw, 70px);
  text-align: center;
  justify-items: center;
}

@media (max-width: 760px) {
  body {
    background-attachment: scroll;
    background-image: linear-gradient(rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.88)),
      url("mobile-background-top.jpg"),
      linear-gradient(rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.9)),
      url("village-background.jpg");
    background-position: center top, center top, center top, center top;
    background-repeat: no-repeat, no-repeat, no-repeat, repeat-y;
    background-size: 100% auto, 100% auto, cover, cover;
  }

  .site-header {
    width: 100%;
    padding: 17px 18px 17px 14px;
  }

  .speaker-strip {
    display: none;
  }

  .mobile-speaker-strip {
    display: grid;
    grid-template-columns: repeat(11, auto);
    justify-content: center;
    align-items: center;
    column-gap: 5px;
    width: min(100% - 28px, var(--max-width));
    margin: 0 auto;
    order: 1;
  }

  .mobile-speaker-strip img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    opacity: 1;
    filter: contrast(1.18) brightness(1.08);
  }

  .site-nav {
    gap: 14px;
  }

  .hero,
  .page-hero,
  .contact-layout {
    width: min(100% - 28px, var(--max-width));
  }

  .info-grid {
    width: min(100% - 28px, var(--max-width));
  }

  .hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: auto;
    padding-top: clamp(20px, 6vw, 34px);
    padding-bottom: 0;
  }

  h1 {
    order: 2;
    max-width: min(100% - 44px, 342px);
    color: #ffffff;
    font-size: clamp(2rem, 8.8vw, 4.2rem);
    line-height: 0.82;
    min-height: 0.82em;
    margin-top: clamp(18px, 5vw, 28px);
    margin-bottom: clamp(18px, 5vw, 28px);
    text-shadow: none;
    transform: scaleX(1.02) scaleY(0.94);
  }

  .image-strip {
    height: 390px;
  }

  .save-file-text {
    display: grid;
    justify-items: center;
    gap: 0.18em;
    max-width: calc(100% - 18px);
    max-height: calc(100% - 18px);
    font-size: clamp(1.12rem, 6.4vw, 2.15rem);
    letter-spacing: 0.02em;
    line-height: 0.9;
    padding: 8px 6px;
    transform-origin: center;
    white-space: normal;
  }

  .save-file-char {
    min-width: 0.48em;
  }

  .save-file-word {
    display: block;
    white-space: nowrap;
  }

  .info-grid,
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .info-grid {
    text-align: center;
  }

  .info-grid .info-column:nth-child(2) {
    text-align: center;
  }

  .direct-contact {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 38px 0 0;
  }

  button {
    width: 100%;
  }
}
