:root {
  --bg: #f4f2ed;
  --paper: #fbfaf7;
  --ink: #111111;
  --muted: #5f5d57;
  --line: rgba(17, 17, 17, 0.16);
  --max: 1600px;

  /* Desktop spacing */
  --page-gap: 24px;
  --image-gap-y: 24px;
  --image-gap-x: 18px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, Helvetica, Arial, sans-serif;
}

body {
  min-height: 100vh;
}

a {
  color: inherit;
}

.exhibition-info {
  margin-top: clamp(50px, 3.5vh, 36px);
  padding-top: 18px;
  padding-bottom: 10px;
  border-top: 1px solid var(--line);
}

.exhibition-label {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 700;
}

.exhibition-details {
  margin-top: 8px;
  margin-bottom: 8px;
  margin: clamp(18px, 2.5vh, 24px, 24px) 0 0;
  font-size: clamp(0.88rem, 1vw, 0.98rem);
}

/* --------------------------------
   DESKTOP
   The image height is tied directly
   to the viewport using svh.
-------------------------------- */

.hero {
  width: min(calc(100% - (2 * var(--page-gap))), var(--max));

  /* Uses the visible viewport height directly */
  min-height: calc(100svh - (2 * var(--page-gap)));
  height: auto;
  min-height: 0;

  margin: var(--page-gap) auto;

  display: flex;

  background: var(--paper);
  border: 1px solid var(--line);
}

.hero__visual {
  align-self: stretch;

  flex: 0 0 auto;
  width: auto;
  min-width: 0;
  max-width: 55%;

  padding: var(--image-gap-y) var(--image-gap-x);

  border-right: 1px solid var(--line);

  display: flex;
  align-items: center;
  justify-content: center;

  overflow: hidden;
}

.hero__visual img {
  display: block;

  height: 100%;
  width: auto;

  max-width: 100%;
  max-height: 100%;

  object-fit: contain;
  object-position: center;

  filter: saturate(0.85) contrast(0.98);
}

.hero__content {
  flex: 1 1 0;
  min-width: 0;

  padding:
    clamp(20px, 3vh, 30px)
    clamp(24px, 3vw, 34px)
    clamp(20px, 3vh, 28px);

  display: flex;
  flex-direction: column;
}

.brand {
  font-size: 0.93rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.language-switcher {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}

.language-switcher a {
  text-decoration: none;
  color: var(--muted);
}

.language-switcher a[aria-current="page"] {
  color: var(--ink);
  border-bottom: 1px solid currentColor;
}

.language-switcher span {
  color: var(--line);
}

.hero__copy {
  margin: auto 0;
  max-width: 700px;
}

.eyebrow {
  margin: 28px 0 clamp(28px, 2.4vh, 20px);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
}

h1 {
  margin: 0;
  font-size: clamp(3rem, min(5vw, 7vh), 6rem);
  line-height: 0.95;
  letter-spacing: -0.055em;
  font-weight: 500;
}

.intro {
  max-width: 620px;
  margin: clamp(32px, 4.5vh, 44px) 0 0;
  font-size: clamp(1.15rem, 1.35vw, 1.35rem);
  line-height: 1.5;
}

.audience {
  max-width: 590px;
  margin: clamp(18px, 2.5vh, 24px) 0 0;
  font-size: clamp(1rem, 1.1vw, 1.1rem);
  line-height: 1.5;
}

.actions {
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: clamp(32px, 4.5vh, 44px);
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.button {
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: 160ms ease;
}

.button--primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;

  background: var(--ink);
  color: #fff;
  border: 1px solid var(--ink);
}

.button--primary:hover {
  background: transparent;
  color: var(--ink);
}

.button--text {
  border-bottom: 1px solid currentColor;
  padding-bottom: 3px;
}

.button--text:hover {
  opacity: 0.55;
}

.hero__footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;

  padding-top: 22px;
  border-top: 1px solid var(--line);

  color: var(--muted);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* --------------------------------
   SMALL / MEDIUM LAPTOP
-------------------------------- */

@media (min-width: 921px) and (max-width: 1200px) {
  :root {
    --page-gap: 18px;
    --image-gap-y: 22px;
    --image-gap-x: 14px;
  }

  .hero__visual {
    max-width: 48%;
  }

  .hero__content {
    padding: 24px 28px 22px;
  }

  h1 {
    font-size: clamp(3rem, 5vw, 4.6rem);
  }

  .intro {
    margin-top: 32px;
    font-size: 1rem;
  }

  .audience {
    margin-top: 18px;
    font-size: 0.9rem;
  }

  .actions {
    margin-top: 32px;
  }
}

/* Very short desktop screens */
@media (min-width: 921px) and (max-height: 760px) {
  :root {
    --page-gap: 16px;
    --image-gap-y: 20px;
    --image-gap-x: 14px;
  }

  .hero__visual {
    max-width: 46%;
  }

  .hero__content {
    padding: 18px 24px 16px;
  }

  .eyebrow {
    margin-bottom: 10px;
  }

  h1 {
    font-size: clamp(2.6rem, min(4.5vw, 6vh), 4.4rem);
  }

  .intro {
    margin-top: 26px;
    font-size: 0.96rem;
    line-height: 1.42;
  }

  .audience {
    margin-top: 14px;
    font-size: 0.86rem;
    line-height: 1.42;
  }

  .actions {
    margin-top: 26px;
  }

  .hero__footer {
    padding-top: 14px;
  }
}

/* --------------------------------
   MOBILE / NARROW TABLET
-------------------------------- */

@media (max-width: 920px) {
  :root {
    --page-gap: 12px;
  }

  .hero {
    width: calc(100% - 24px);
    height: auto;
    min-height: 0;
    margin: 12px auto;

    display: block;
  }

  .hero__visual {
    width: 100%;
    height: auto;
    max-width: none;

    padding: 20px 14px;

    border-right: 0;
    border-bottom: 1px solid var(--line);

    display: flex;
    justify-content: center;
    align-items: center;
  }

  .hero__visual img {
    width: auto;
    height: auto;

    max-width: 100%;
    max-height: 70svh;

    object-fit: contain;
  }

  .hero__content {
    min-width: 0;
    min-height: auto;
    padding: 24px 20px;
  }

  .hero__copy {
    margin: 64px 0 72px;
  }

  h1 {
    font-size: clamp(3rem, 5vw, 4.6rem);
  }

  .hero__footer {
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .hero__copy {
    margin: 48px 0 56px;
  }

  .actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .button--primary {
    width: 100%;
  }
}


@media (max-width: 520px) {
  .topbar {
    gap: 12px;
  }

  .language-switcher {
    font-size: 0.74rem;
  }

  h1 {
    font-size: clamp(2.6rem, min(4.5vw, 6vh), 4.4rem);
  }
  
    .form-field label {
    display: block;
  }

  .form-field input {
    display: block;
    width: 100%;
    margin-top: 6px;
  }
}

.beta-signup {
  width: 100%;
  margin: 0;
}

.beta-signup h2 {
  margin: 0 0 10px;
  font-size: 1.6rem;
  line-height: 1.15;
  letter-spacing: -0.03em;
  font-weight: 500;
}

.beta-signup button {
  margin-top: 12px;
  cursor: pointer;
}

.form-field {
  margin-bottom: 18px;
}

.form-field label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.form-field label span {
  color: var(--muted);
  font-weight: 400;
}

.form-field input {
  width: 70%;
  padding: 6px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  outline: none;
}

.form-field input:focus {
  border-bottom-color: var(--ink);
}

.beta-form button {
  margin-top: 12px;
  border: 0;
  cursor: pointer;
}

.form-contact {
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.5;
}

.form-contact a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.form-success {
  margin-top: 28px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
  line-height: 1.5;
}

.form-success p {
  margin: 0;
}

.form-success__title {
  margin-bottom: 10px !important;
  font-size: 1.2rem;
  font-weight: 700;
}