:root {
  --bg: #0a0a0a;
  --fg: #ece8e1;
  --muted: #9a958c;
  --line: rgba(236, 232, 225, 0.18);
  --accent: #ece8e1;
  --font-display: "Poiret One", "Bodoni MT", "Didot", serif;
  --font-body: "Josefin Sans", "Gill Sans", sans-serif;
  --pad: clamp(1.25rem, 4vw, 3rem);
  --max: 56rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1.05rem;
  line-height: 1.55;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--fg);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.25em;
}

a:hover {
  opacity: 0.72;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--fg);
  color: var(--bg);
  padding: 0.5rem 1rem;
  z-index: 100;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.stage {
  position: relative;
}

.parallax {
  position: relative;
  height: calc(var(--slides, 5) * 100vh);
  height: calc(var(--slides, 5) * 100dvh);
}

.brand-pin {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 0;
  overflow: visible;
  pointer-events: none;
}

.hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  width: 100%;
  max-width: var(--max);
  height: 100vh;
  height: 100dvh;
  padding: var(--pad);
  margin: 0;
}

.brand {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.75rem, 9vw, 5.5rem);
  line-height: 1.05;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  mix-blend-mode: difference;
  text-shadow: 0 0 24px rgba(0, 0, 0, 0.35);
  animation: rise 1.1s ease both;
}

.tagline {
  margin: 1.25rem 0 0;
  max-width: 28rem;
  color: rgba(255, 255, 255, 0.85);
  font-size: clamp(0.95rem, 2.2vw, 1.1rem);
  font-weight: 300;
  letter-spacing: 0.06em;
  mix-blend-mode: difference;
  text-shadow: 0 0 18px rgba(0, 0, 0, 0.4);
  animation: rise 1.1s ease 0.18s both;
}

.parallax-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background: #0a0a0a;
}

.slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transform: scale(1.04) translate3d(0, -10%, 0);
  filter: blur(8px);
  will-change: opacity, transform, filter;
  transition: none;
}

.slide.is-active {
  opacity: 1;
}

.slide picture,
.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

@media (max-width: 768px) {
  .slide--fedora img {
    object-position: 28% center;
  }
}

.slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(10, 10, 10, 0.28), transparent 30%, transparent 70%, rgba(10, 10, 10, 0.45)),
    radial-gradient(ellipse at center, transparent 45%, rgba(10, 10, 10, 0.28) 100%);
  pointer-events: none;
}

.contact {
  position: relative;
  z-index: 5;
  padding: clamp(4rem, 12vw, 8rem) var(--pad) clamp(4rem, 10vw, 7rem);
  max-width: 28rem;
  margin: 0 auto;
  background: var(--bg);
}

.section-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.75rem, 4vw, 2.4rem);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.section-lead {
  margin: 0.85rem 0 2rem;
  color: var(--muted);
  font-size: 0.98rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.form-flip {
  perspective: 1200px;
  min-height: 22rem;
}

.form-flip-inner {
  position: relative;
  width: 100%;
  min-height: 22rem;
  transform-style: preserve-3d;
  transition: transform 0.7s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.form-flip.is-flipped .form-flip-inner {
  transform: rotateY(180deg);
}

.form-flip-front,
.form-flip-back {
  width: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.form-flip-front {
  position: relative;
}

.form-flip-back {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: rotateY(180deg);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  pointer-events: none;
}

.form-flip.is-flipped .form-flip-back {
  pointer-events: auto;
}

.form-flip.is-flipped .form-flip-front {
  pointer-events: none;
}

.form-thanks-msg {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2rem);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-align: center;
}

@media (prefers-reduced-motion: reduce) {
  .form-flip-inner {
    transition: none;
  }
}

.contact-form label {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  margin-bottom: 0.85rem;
  padding: 0.7rem 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: var(--fg);
  font: inherit;
  outline: none;
  transition: border-color 0.25s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-bottom-color: var(--fg);
}

.contact-form textarea {
  resize: vertical;
  min-height: 8rem;
}

.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.g-recaptcha {
  margin: 0.5rem 0 1rem;
}

.submit {
  align-self: flex-start;
  margin-top: 0.5rem;
  padding: 0.85rem 1.75rem;
  border: 1px solid var(--fg);
  background: transparent;
  color: var(--fg);
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease;
}

.submit:hover,
.submit:focus-visible {
  background: var(--fg);
  color: var(--bg);
}

.submit:disabled {
  opacity: 0.45;
  cursor: wait;
}

.form-status {
  min-height: 1.4em;
  margin: 0.75rem 0 0;
  font-size: 0.95rem;
  color: var(--muted);
}

.form-status.is-error {
  color: #d4a09a;
}

.form-status.is-ok {
  color: #b8c4a8;
}

.site-footer {
  position: relative;
  z-index: 5;
  padding: 2rem var(--pad) 3rem;
  max-width: var(--max);
  margin: 0 auto;
  border-top: 1px solid var(--line);
  background: var(--bg);
}

.site-footer p {
  margin: 0 0 0.55rem;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

.footer-links {
  margin-top: 1rem !important;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer-ig {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  opacity: 0.85;
  line-height: 0;
}

.footer-ig:hover {
  opacity: 1;
  color: var(--fg);
}

.legal {
  max-width: 36rem;
  margin: 0 auto;
  padding: var(--pad) var(--pad) 4rem;
}

.legal-title {
  margin: 1.5rem 0 0.35rem;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 6vw, 3rem);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.legal-updated {
  color: var(--muted);
  font-size: 0.85rem;
  margin-bottom: 2rem;
}

.legal h2 {
  margin: 2rem 0 0.6rem;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.25rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.legal p {
  color: #c9c4bb;
}

.legal code {
  font-size: 0.9em;
}

.back {
  margin: 0;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
}

.reveal {
  opacity: 0;
  transform: translateY(1.1rem);
  transition: opacity 0.9s ease, transform 0.9s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(1.25rem);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .brand,
  .tagline,
  .reveal {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .parallax {
    height: auto;
  }

  .parallax-stage {
    position: relative;
    height: auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 0 var(--pad) 4rem;
  }

  .slide {
    position: relative;
    inset: auto;
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    height: auto;
  }

  .slide picture,
  .slide img {
    height: auto;
    max-height: 70vh;
    object-fit: contain;
  }

  .brand-pin {
    position: relative;
    height: auto;
    overflow: visible;
  }

  .hero {
    position: relative;
    mix-blend-mode: normal;
    pointer-events: auto;
    height: auto;
    min-height: auto;
    padding-top: 4rem;
    padding-bottom: 2rem;
  }

  .brand,
  .tagline {
    color: var(--fg);
    mix-blend-mode: normal;
    text-shadow: none;
  }
}
