@font-face {
  font-family: "Instrument Serif";
  src: url("/fonts/instrument-serif-400.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  --ivory: #f6f4ee;
  --navy: #0d1b2a;
  --navy-muted: rgba(246, 244, 238, 0.56);
  --line: rgba(246, 244, 238, 0.76);
  --typeface: "Instrument Serif", Georgia, "Times New Roman", serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  color: var(--ivory);
  background: var(--navy);
  font-family: var(--typeface);
}

html:has(.actions details[open]),
body:has(.actions details[open]) {
  overflow: hidden;
}

a,
summary {
  color: inherit;
}

.page {
  display: grid;
  grid-template-rows: 1fr auto 1fr;
  min-height: 100svh;
  padding: clamp(28px, 4vw, 60px);
  overflow: hidden;
}

.ornament {
  width: 140px;
  height: auto;
  fill: none;
  stroke: var(--line);
  stroke-width: 1;
  stroke-linecap: round;
}

.ornament-top {
  justify-self: center;
}

.hero {
  display: grid;
  grid-template-columns: minmax(245px, 330px) minmax(410px, 610px);
  align-items: center;
  gap: clamp(44px, 6vw, 84px);
  margin: 0 auto;
}

.illustration {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 360px;
  opacity: 0;
  transform: translateY(8px);
  animation: reveal 900ms 100ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.logo-crop {
  position: relative;
  z-index: 1;
  width: 112%;
  height: 360px;
  overflow: hidden;
}

.logo-crop img {
  position: absolute;
  top: 59%;
  left: 50%;
  display: block;
  width: 190%;
  max-width: none;
  height: auto;
  transform: translate(-50%, -50%);
}

.intro {
  position: relative;
  opacity: 0;
  transform: translateY(8px);
  animation: reveal 900ms 230ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.identity {
  display: flex;
  align-items: center;
  gap: 13px;
}

h1 {
  margin: 0;
  font-size: clamp(52px, 5.4vw, 78px);
  font-weight: 400;
  letter-spacing: 0.025em;
  line-height: 0.9;
}

.identity-rule {
  width: 1px;
  height: 55px;
  background: currentColor;
}

.monogram {
  font-size: 28px;
  letter-spacing: -0.035em;
}

.proposition {
  max-width: 590px;
  margin: 25px 0 0;
  font-size: clamp(18px, 1.55vw, 23px);
  line-height: 1.38;
  text-wrap: balance;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 28px;
  margin-top: 34px;
  font-size: 18px;
}

.actions > a,
.actions summary {
  text-decoration: none;
  cursor: pointer;
  list-style: none;
  transition: opacity 180ms ease;
}

.actions summary::-webkit-details-marker {
  display: none;
}

.actions > a:hover,
.actions summary:hover {
  opacity: 0.55;
}

.actions span {
  display: inline-block;
  margin-left: 7px;
  transition: transform 180ms ease;
}

.actions > a:hover span,
.actions summary:hover span {
  transform: translateX(3px);
}

.about-panel,
.deck-panel {
  position: fixed;
  z-index: 10;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 30px;
  padding: 40px;
  color: var(--ivory);
  background: var(--navy);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate3d(0, 100%, 0);
  will-change: transform, opacity;
  transition:
    transform 720ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 440ms ease,
    visibility 0s linear 720ms;
}

.about[open] > .about-panel,
.deck[open] > .deck-panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate3d(0, 0, 0);
  transition-delay: 0s;
}

.panel-back {
  justify-self: start;
  color: rgba(246, 244, 238, 0.58);
  font-size: 17px;
  text-decoration: none;
  opacity: 0;
  transform: translateY(14px);
  transition:
    color 180ms ease,
    opacity 260ms ease,
    transform 520ms cubic-bezier(0.22, 1, 0.36, 1);
}

.panel-back:hover {
  color: var(--ivory);
}

.about-content,
.deck-content {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 330ms ease,
    transform 620ms cubic-bezier(0.22, 1, 0.36, 1);
}

.about[open] .panel-back,
.deck[open] .panel-back,
.about[open] .about-content,
.deck[open] .deck-content {
  opacity: 1;
  transform: translateY(0);
}

.about[open] .panel-back,
.deck[open] .panel-back {
  transition-delay: 260ms;
}

.about[open] .about-content,
.deck[open] .deck-content {
  transition-delay: 340ms;
}

.about-content {
  width: min(700px, 78vw);
}

.about-kicker {
  margin: 0 0 21px;
  color: rgba(246, 244, 238, 0.56);
  font-size: 15px;
  letter-spacing: 0.075em;
  text-transform: uppercase;
}

.about-content > p:not(.about-kicker) {
  max-width: 650px;
  margin: 0 0 17px;
  font-size: clamp(18px, 1.5vw, 22px);
  line-height: 1.4;
}

.about-content .about-closing {
  margin-top: 28px;
}

.deck-content {
  width: min(680px, 78vw);
}

.deck-kicker {
  margin: 0 0 20px;
  color: rgba(246, 244, 238, 0.56);
  font-size: 15px;
  letter-spacing: 0.075em;
}

.deck-content h2 {
  margin: 0;
  font-size: clamp(44px, 5vw, 70px);
  font-weight: 400;
  line-height: 1;
}

.deck-intro {
  max-width: 560px;
  margin: 22px 0 0;
  color: rgba(246, 244, 238, 0.72);
  font-size: clamp(18px, 1.5vw, 22px);
  line-height: 1.4;
}

.deck-form {
  width: min(620px, 100%);
  margin-top: 42px;
}

.deck-form label {
  display: block;
  margin-bottom: 11px;
  color: rgba(246, 244, 238, 0.56);
  font-size: 14px;
  letter-spacing: 0.04em;
}

.deck-form-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  border-bottom: 1px solid rgba(246, 244, 238, 0.44);
}

.deck-form input[type="email"] {
  min-width: 0;
  padding: 13px 0 14px;
  color: var(--ivory);
  background: transparent;
  border: 0;
  border-radius: 0;
  outline: none;
  font: inherit;
  font-size: 21px;
}

.deck-form input[type="email"]::placeholder {
  color: rgba(246, 244, 238, 0.34);
}

.outside-perspective-form input[type="text"]:not(.honey-field) {
  min-width: 0;
  padding: 13px 0 14px;
  color: var(--ivory);
  background: transparent;
  border: 0;
  border-radius: 0;
  outline: none;
  font: inherit;
  font-size: 21px;
}

.outside-perspective-form
  input[type="text"]:not(.honey-field)::placeholder {
  color: rgba(246, 244, 238, 0.34);
}

.outside-perspective-form .deck-form-row + label {
  margin-top: 22px;
}

.deck-form-row:focus-within {
  border-color: var(--ivory);
}

.deck-form button {
  padding: 13px 0 14px;
  color: var(--ivory);
  background: transparent;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-size: 18px;
  white-space: nowrap;
  transition: opacity 180ms ease;
}

.deck-form button:hover,
.deck-form button:focus-visible {
  opacity: 0.58;
}

.deck-note {
  max-width: 500px;
  margin: 13px 0 0;
  color: rgba(246, 244, 238, 0.38);
  font-size: 13px;
  line-height: 1.4;
}

.deck-confirmation {
  margin-top: 42px;
}

.deck-confirmation p {
  margin: 0 0 16px;
  font-size: clamp(24px, 2.3vw, 32px);
}

.deck-confirmation a {
  color: rgba(246, 244, 238, 0.68);
  font-size: 18px;
  text-decoration: none;
}

.honey-field {
  position: absolute;
  left: -10000px;
}

[hidden] {
  display: none !important;
}

.company-type {
  margin: 29px 0 0;
  color: var(--ivory);
  font-size: 15px;
}

footer {
  align-self: end;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

footer .ornament {
  width: 148px;
  transform: scaleY(-1);
}

footer p {
  margin: 0;
  color: rgba(246, 244, 238, 0.38);
  font-size: 11px;
  letter-spacing: 0.055em;
}

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

@media (max-width: 760px) {
  .page {
    display: flex;
    min-height: 100svh;
    flex-direction: column;
    justify-content: space-between;
    gap: 28px;
    padding: 25px 23px 22px;
    overflow: visible;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 18px;
    width: min(100%, 470px);
  }

  .illustration {
    width: 200px;
    min-height: 210px;
  }

  .logo-crop {
    height: 210px;
  }

  .identity {
    gap: 9px;
  }

  h1 {
    font-size: clamp(43px, 13.7vw, 63px);
  }

  .identity-rule {
    height: 42px;
  }

  .monogram {
    font-size: 22px;
  }

  .proposition {
    margin-top: 19px;
    font-size: 18px;
  }

  .actions {
    gap: 20px;
    margin-top: 23px;
    font-size: 17px;
  }

  .company-type {
    margin-top: 22px;
    font-size: 13px;
  }

  .about-panel,
  .deck-panel {
    place-content: start center;
    overflow-y: auto;
  }

  .about-content,
  .deck-content {
    width: min(100%, 470px);
  }

  .about-content > p:not(.about-kicker) {
    font-size: 18px;
  }

  .deck-content h2 {
    font-size: clamp(42px, 13vw, 58px);
  }

  .deck-form {
    margin-top: 34px;
  }

  .deck-form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .deck-form button {
    justify-self: start;
    padding-top: 4px;
  }

  .ornament-top,
  footer .ornament {
    width: 104px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
}

@media (max-height: 860px) {
  .outside-perspective .deck-panel {
    place-content: start center;
    overflow-y: auto;
  }
}
