:root {
  --paper: #f1f1f1;
  --ink: #1d1d1d;
  --white: #ffffff;
  --muted: #7f7f7f;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: "EB Garamond", "Adobe Garamond Pro";
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 90vh;
  padding: 62px 20px 48px;
  padding-top: max(62px, env(safe-area-inset-top, 0px));
  background: url("assets/hero-bg.jpg") center bottom / cover no-repeat;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  /* background: linear-gradient(
    180deg,
    rgba(9, 22, 40, 0.16) 0%,
    rgba(14, 14, 14, 0.58) 58%,
    rgba(14, 14, 14, 0.68) 100%
  ); */
  background-color: rgba(0, 0, 0, 0.3);
}

.brand {
  position: absolute;
  top: 40px;
  left: 48px;
  z-index: 2;
  color: var(--white);
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}

.lang-switcher {
  position: absolute;
  top: 40px;
  right: 48px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.lang-link {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.2s ease;
  padding: 8px 4px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  -webkit-tap-highlight-color: transparent;
}

.lang-link:hover {
  color: var(--white);
}

.lang-link.is-active {
  color: var(--white);
  cursor: default;
  pointer-events: none;
}

.lang-sep {
  color: rgba(255, 255, 255, 0.5);
  user-select: none;
}

.brand strong {
  display: block;
  font-family: "EB Garamond", "Adobe Garamond Pro";
  font-size: 34px;
  font-weight: 700;
}

.brand span {
  font-size: 11px;
  font-weight: 600;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  color: var(--white);
}

.hero-logo {
  width: 325px;
  display: block;
  margin: 0 auto 16px;
}

.hero-title {
  margin: 40px auto;
  width: min(100%, 820px);
  font-family: "EB Garamond", "Adobe Garamond Pro";
  font-size: 36px;
  line-height: 1.15;
}

.hero-subtitle {
  margin: 16px auto 0;
  width: min(100%, 980px);
  font-family: "EB Garamond", "Adobe Garamond Pro";
  font-size: 40px;
  line-height: 1.2;
  font-weight: 600;
}

.hero-note {
  margin: 14px auto 0;
  width: min(100%, 980px);
  font-family: "EB Garamond", "Adobe Garamond Pro";
  font-size: 26px;
  line-height: 1.25;
}

.newsletter {
  margin: 50px auto 0;
  width: min(100%, 550px);
  display: grid;
  gap: 12px;
}

.field {
  width: 100%;
  height: 48px;
  /* border: 1px solid rgba(255, 255, 255, 0.28); */
  border: none;
  border-radius: 999px;
  /* background: rgba(0, 0, 0, 0.48); */
  background-color: rgba(112, 112, 112, 0.9);
  color: var(--white);
  padding: 0 24px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  /* text-transform: uppercase; */
  outline: none;
}

.field::placeholder {
  color: rgba(255, 255, 255, 0.92);
}

.field:focus {
  border-color: rgba(255, 255, 255, 0.75);
}

.consent {
  margin-top: 5px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: rgba(255, 255, 255, 0.94);
  font-size: 15px;
  font-weight: bold;
  line-height: 1.35;
  text-align: left;
  padding-left: 20px;
}

.consent input {
  margin-top: 2px;
}

.consent a {
  color: inherit;
}

.submit-btn {
  /* width: 110px; */
  width: 280px;
  height: 48px;
  margin: 5px auto;
  padding: 0 24px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  /* background: rgba(0, 0, 0, 0.48); */
  background: #ffffff;
  /* color: var(--white); */
  color: #000000;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  outline: none;
}

.submit-btn:hover {
  background: rgba(0, 0, 0, 0.48); 
  color: var(--white);
}

.submit-btn:focus {
  border-color: rgba(255, 255, 255, 0.75);
}

.submit-btn:disabled {
  opacity: 0.6;
  cursor: wait;
}

.form-message {
  margin: 0;
  min-height: 18px;
  color: #d9f9df;
  font-size: 14px;
  text-align: left;
  font-weight: bold;
}

.form-message.error {
  color: #ff7676;
}

/* Success state: hide form, highlight thank-you message */
.newsletter.is-submitted .field,
.newsletter.is-submitted .consent,
.newsletter.is-submitted .submit-btn {
  display: none;
}

.newsletter.is-submitted .form-message {
  margin: 40px auto 0;
  padding: 24px 32px;
  min-height: auto;
  font-size: 28px;
  line-height: 1.35;
  text-align: center;
  color: #fff;
  background: rgba(0, 0, 0, 0.35);
  border-radius: 12px;
  max-width: 520px;
}

.memory {
  background: var(--paper);
  padding: 80px 20px 60px;
  text-align: center;
}

.memory h2 {
  margin: 0;
  font-family: "EB Garamond", "Adobe Garamond Pro";
  font-size: 40px;
  line-height: 48px;
  font-weight: 100;
}

.video-embed {
  width: min(100%, 1211px);
  margin: 80px auto 0;
  border: 0;
  border-radius: 0px !important;
  background: #000;
  overflow: hidden;
  display: block;
  aspect-ratio: 1211 / 696;
  box-shadow: 0 22px 52px rgba(0, 0, 0, 0.12);
}

.logo-black {
  width: 240px;
  margin-top: 50px;
}

.site-footer {
  padding: 14px 80px 20px;
  border-top: 1px solid #e8e8e8;
  color: #5f5f5f;
  font-family: "EB Garamond", "Adobe Garamond Pro";
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background-color: #ffffff;
}


.social {
  display: flex;
  gap: 8px;
}

.social a {
  /* width: 36px;
  height: 36px;
  border: 1px solid rgba(30, 30, 30, 0.72);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center; */
  color: #1f1f1f;
  text-decoration: none;
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
  margin: 0 5px;
}

.social a:hover {
  /* color: #fff;
  background-color: #1f1f1f;
  border-color: #1f1f1f; */
}

[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  transition-delay: var(--delay, 0s);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Tablet */
@media (max-width: 900px) {
  .hero {
    min-height: 760px;
    height: auto;
    min-height: 100vh;
    padding: 56px 24px 40px;
    background-position: center top;
  }

  .brand {
    top: 24px;
    left: 24px;
  }

  .brand img {
    width: 110px;
  }

  .hero-title {
    font-size: 32px;
    margin: 28px auto;
  }

  .hero-note {
    font-size: 22px;
    margin: 12px auto 0;
  }

  .hero-subtitle {
    font-size: 28px;
  }

  .hero-logo {
    width: 280px;
  }

  .newsletter {
    margin: 36px auto 0;
    gap: 12px;
  }

  .consent {
    font-size: 12px;
  }

  .memory {
    padding: 60px 24px 48px;
  }

  .memory h2 {
    font-size: 32px;
    line-height: 40px;
  }

  .video-embed {
    margin: 48px auto 0;
    border-radius: 20px;
  }

  .logo-black {
    width: 200px;
    margin-top: 40px;
  }

  .site-footer {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px 24px;
    gap: 16px;
  }

  .newsletter.is-submitted .form-message {
    font-size: 24px;
    padding: 20px 24px;
    margin: 28px auto 0;
  }
}

/* Mobile */
@media (max-width: 620px) {
  .hero {
    min-height: 100vh;
    padding: 52px 16px 32px;
  }

  .brand {
    top: 20px;
    left: 16px;
  }

  .brand img {
    width: 100px;
  }

  .lang-switcher {
    top: 20px;
    right: 16px;
    font-size: 13px;
    gap: 4px;
  }

  .hero-logo {
    width: 240px;
    margin: 0 auto 12px;
  }

  .hero-title {
    font-size: 26px;
    margin: 20px auto;
    line-height: 1.2;
  }

  .hero-note {
    font-size: 18px;
    margin: 10px auto 0;
  }

  .newsletter {
    margin: 28px auto 0;
    gap: 10px;
    width: 100%;
  }

  .field {
    padding: 0 18px;
    font-size: 11px;
    letter-spacing: 0.16em;
    height: 48px;
    min-height: 48px;
  }

  .consent {
    font-size: 11px;
    padding-left: 0;
  }

  .submit-btn {
    width: 100%;
    min-height: 48px;
  }

  .memory {
    padding: 48px 16px 40px;
  }

  .memory h2 {
    font-size: 26px;
    line-height: 34px;
  }

  .video-embed {
    margin: 32px auto 0;
    border-radius: 16px;
  }

  .logo-black {
    width: 180px;
    margin-top: 32px;
  }

  .site-footer {
    padding: 16px;
    font-size: 14px;
    align-items: center;
    text-align: center;
  }

  .newsletter.is-submitted .form-message {
    font-size: 20px;
    padding: 16px 20px;
    margin: 24px auto 0;
  }
}

/* Small phones */
@media (max-width: 400px) {
  .hero {
    padding: 48px 14px 28px;
  }

  .brand img {
    width: 90px;
  }

  .hero-logo {
    width: 200px;
  }

  .hero-title {
    font-size: 22px;
    margin: 16px auto;
  }

  .hero-note {
    font-size: 16px;
  }

  .memory h2 {
    font-size: 22px;
    line-height: 30px;
  }

  .newsletter.is-submitted .form-message {
    font-size: 18px;
    padding: 14px 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}
