@font-face {
  font-family: "Zalando Sans";
  src: url("assets/zalando-sans-regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Zalando Sans";
  src: url("assets/zalando-sans-semibold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Zalando Sans";
  src: url("assets/zalando-sans-light.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Zalando Sans";
  src: url("assets/zalando-sans-medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --cream: #eae5da;
  --ink: #260203;
  --blue: #1e38ed;
  --hero-max-width: 1920px;
  --logo-width: 176px;
  font-family: "Zalando Sans", Arial, sans-serif;
  color: var(--ink);
  background: var(--cream);
}

* { box-sizing: border-box; }
body { margin: 0; }
button, a { -webkit-tap-highlight-color: transparent; }

/* All artwork uses one 1440 × 860 reference plane. cqw is scoped to
   this container, so this also scales correctly inside an embedded preview. */
.hero {
  position: relative;
  width: 100%;
  max-width: var(--hero-max-width);
  margin-inline: auto;
  container-type: inline-size;
  aspect-ratio: 1437.78 / 860;
  isolation: isolate;
  overflow: clip;
  background: var(--cream);
}

.hero__art {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero__shape {
  position: absolute;
  left: calc(-0.011 / 1437.78 * 100%);
  top: calc(0 / 1437.78 * 100cqw);
  width: calc(926.717 / 1437.78 * 100%);
  height: calc(861 / 1437.78 * 100cqw);
  transform: rotate(180deg);
}

.hero__photo-frame {
  position: absolute;
  left: calc(673.989 / 1437.78 * 100%);
  top: calc(134.216 / 1437.78 * 100cqw);
  width: calc(552.844 / 1437.78 * 100%);
  aspect-ratio: 552.844 / 514.784;
}

/* Figma exports this masked photo rotated. Keep the exact asset and
   reverse its rotation; never stretch or re-create its diagonal. */
.hero__photo-window {
  position: absolute;
  left: 50%;
  top: 50%;
  width: calc(514.784 / 552.844 * 100%);
  height: calc(552.844 / 514.784 * 100%);
  transform: translate(-50%, -50%) rotate(-90deg);
}

.hero__photo { display: block; width: 100%; height: 100%; }

/* The exported alpha silhouette is the mask: its corners never move.
   A modest image overscan supplies the pixels needed for parallax. */
.hero__photo-window {
  -webkit-mask: url("assets/optimized/hero-mask.png") center / 100% 100% no-repeat;
  mask: url("assets/optimized/hero-mask.png") center / 100% 100% no-repeat;
  mask-mode: alpha;
}

.hero__square {
  position: absolute;
  right: 0;
  bottom: 0;
  width: calc(211 / 1437.78 * 100%);
  aspect-ratio: 1;
  background: var(--blue);
}

.hero__brand {
  position: absolute;
  top: calc(63.543 / 1437.78 * 100cqw);
  left: calc(59.49 / 1437.78 * 100%);
  width: var(--logo-width);
  aspect-ratio: 248.927 / 84.902;
}

.hero__brand img { display: block; width: 100%; height: 100%; }
.hero__nmls {
  position: absolute;
  left: calc(59.49 / 1437.78 * 100%);
  bottom: calc(59 / 1437.78 * 100cqw);
  margin: 0;
  font-size: 12px;
  font-weight: 400;
  line-height: 1;
  color: #655550;
}
.hero__brand:focus-visible { outline: 2px solid var(--ink); outline-offset: 6px; }

.hero__contact {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  position: absolute;
  right: 0;
  top: calc(63.771 / 1437.78 * 100cqw);
  width: calc(211 / 1437.78 * 100%);
  height: calc(70.445 / 1437.78 * 100cqw);
  min-height: 44px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: var(--blue);
  color: var(--cream);
  font-family: inherit;
  font-size: max(14px, calc(21 / 1437.78 * 100cqw));
  font-weight: 500;
  letter-spacing: .0366em;
  opacity: 1;
}

.hero__heading {
  position: absolute;
  top: calc(281.211 / 1437.78 * 100cqw);
  left: calc(59.49 / 1437.78 * 100%);
  width: calc(575.121 / 1437.78 * 100%);
  margin: 0;
  font-size: calc(48 / 1437.78 * 100cqw);
  font-weight: 300;
  line-height: 1.2;
  letter-spacing: -.020833em;
  text-box-trim: trim-both;
  text-box-edge: cap alphabetic;
}

.hero__heading span { display: block; }

/* Mobile is a separate composition. The artwork remains uniformly scaled
   on the same reference plane, below readable, naturally flowing copy. */
@media (max-width: 599px) {
  .hero { aspect-ratio: auto; }
  .hero__header {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 24px 0 0 24px;
  }
  .hero__brand { position: static; flex-shrink: 0; }
  .hero__contact {
    position: static;
    width: 124px;
    height: 48px;
    flex-shrink: 0;
    font-size: 14px;
  }
  .hero__heading {
    position: relative;
    top: auto;
    left: auto;
    width: auto;
    margin: 64px 24px 36px;
    max-width: 18ch;
    font-size: clamp(32px, 7.6cqw, 48px);
    line-height: 1.15;
  }
  .hero__art {
    position: relative;
    inset: auto;
    width: 100%;
    aspect-ratio: 780 / 681.94;
    overflow: clip;
    container-type: inline-size;
  }
  .hero__shape {
    left: calc(-614 / 780 * 100%);
    top: calc(-134.216 / 780 * 100cqw);
    width: calc(926.717 / 780 * 100%);
    height: calc(861 / 780 * 100cqw);
  }
  .hero__photo-frame {
    left: calc(60 / 780 * 100%);
    top: 0;
    width: calc(552.844 / 780 * 100%);
  }
  .hero__square { width: calc(167.156 / 780 * 100%); }
  .hero__heading span { display: inline; }
  /* Art follows the heading visually and in layout; decorative DOM is hidden. */
  .hero { display: flex; flex-direction: column; }
  .hero__art { order: 1; }
}

@media (max-width: 359px) {
  .hero__header { gap: 12px; padding-left: 20px; }
  .hero__contact { width: 112px; }
  .hero__heading { margin-inline: 20px; }
}

/* Keep the entire page on the hero's capped reference width. */
.page-section {
  width: 100%;
  max-width: var(--hero-max-width);
  margin-inline: auto;
  container-type: inline-size;
}

.eyebrow {
  margin: 0;
  font-size: .875rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: .11em;
  text-transform: uppercase;
}

/* One continuous photo under the original 1438 × 525 Figma cutout.
   The rectangular lower panel is live HTML, so copy can grow without
   ever stretching the diagonal artwork. */
.mission {
  position: relative;
  isolation: isolate;
  overflow: clip;
  display: grid;
  grid-template-columns: calc(676.453 / 1438 * 100%) 1fr;
  grid-template-rows: auto auto;
  background: var(--cream);
}

.mission__art {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.mission__photo-frame { position: absolute; top: 0; left: 0; width: calc(1433 / 1438 * 100%); height: max(100%, calc(1001 / 1438 * 100cqw)); overflow: hidden; }
.mission__photo {
  position: absolute;
  object-fit: cover;
  width: 170.35%;
  height: 126.7%;
  left: -31.09%;
  top: -8.52%;
}
.mission__cutout {
  position: absolute;
  inset: 0 auto auto 0;
  display: block;
  width: 100%;
  height: calc(525 / 1438 * 100cqw);
}

.mission__intro {
  grid-column: 1;
  grid-row: 1;
  width: 100%;
  min-height: calc(525 / 1438 * 100cqw);
  padding: calc(144 / 1440 * 100cqw) calc(65 / 1440 * 100cqw) calc(80 / 1440 * 100cqw) calc(59.49 / 1437.78 * 100cqw);
  color: var(--cream);
}
.mission__intro .eyebrow { font-size: 1rem; letter-spacing: .1875em; }
.mission__intro > p {
  max-width: 493.56px;
  margin: calc(36 / 1440 * 100cqw) 0 0;
  font-size: clamp(1.5rem, calc(30 / 1440 * 100cqw), 1.875rem);
  font-weight: 300;
  line-height: 1.4;
}
.mission__detail {
  grid-column: 2;
  grid-row: 2;
  background: var(--cream);
  min-height: calc(472 / 1438 * 100cqw);
  padding: calc(80 / 1440 * 100cqw) calc(128 / 1440 * 100cqw) calc(68 / 1440 * 100cqw) calc(140 / 1440 * 100cqw);
  font-size: clamp(1rem, calc(18 / 1440 * 100cqw), 1.125rem);
  line-height: 1.5;
}
.mission__detail p { margin: 0; }
.mission__detail p + p { margin-top: 1.5em; }
.mission__mobile-photo { display: none; }

.contact {
  padding: 74px 24px 64px;
  background: #dcd7cc;
  scroll-margin-top: 24px;
}
.contact:focus { outline: none; }
.contact__inner { width: min(100%, 480px); margin-inline: auto; }
.contact .eyebrow { text-align: center; }
.contact h2 {
  margin: 32px 0 48px;
  font-weight: 400;
  font-size: clamp(2rem, 3.333cqw, 3rem);
  line-height: 1.1;
  letter-spacing: -.024em;
  text-align: center;
}
.form-field { display: grid; gap: 8px; margin-bottom: 40px; }
.form-field label { font-size: .875rem; font-weight: 600; line-height: 1.4; letter-spacing: .107em; text-transform: uppercase; }
.form-field input, .form-field select {
  min-width: 0;
  width: 100%;
  min-height: 56px;
  padding: 16px;
  border: 1px solid transparent;
  border-radius: 0;
  font: 400 1rem/1.5 "Zalando Sans", Arial, sans-serif;
  color: var(--ink);
  background: var(--cream);
}
.form-field input::placeholder { color: #665954; opacity: 1; }
.form-field select {
  appearance: none;
  padding-right: 44px;
  background-image: url("assets/select-chevron.svg");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 12px 7px;
  cursor: pointer;
}
.contact__submit {
  width: 100%;
  min-height: 64px;
  border: 0;
  border-radius: 2px;
  padding: 16px 24px;
  background: var(--blue);
  color: var(--cream);
  font: 500 1.25rem/1.4 "Zalando Sans", Arial, sans-serif;
  cursor: pointer;
}
.contact__submit:disabled { cursor: not-allowed; opacity: 1; }
.form-note, .form-status { font-size: .875rem; line-height: 1.5; margin: 16px 0 0; }
.form-note { color: #665954; }
.form-status:empty { display: none; }

.footer {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 64px;
  min-height: 300px;
  padding: 48px clamp(24px, 5.555vw, 80px);
  background: var(--ink);
  color: var(--cream);
}
.footer__top, .footer__bottom { display: flex; align-items: flex-start; justify-content: space-between; gap: 40px; }
.footer__brand { position: relative; display: block; width: var(--logo-width); aspect-ratio: 211.1 / 72; flex: 0 0 auto; }
.footer__mark { position: absolute; left: 0; top: 0; width: 34.107%; height: 100%; }
.footer__wordmark { position: absolute; left: 38.266%; top: 27.889%; width: 61.734%; height: 53.367%; }
.footer__legal { display: grid; gap: 12px; font-size: 15px; line-height: 1.5; font-weight: 300; }
.footer__legal a { color: inherit; text-decoration: none; }
.footer__legal a:hover { text-decoration: underline; text-underline-offset: .2em; }
.footer__legal small { font-size: .75rem; opacity: .7; }
.footer__bottom { align-items: baseline; flex-wrap: wrap; }
.footer__bottom p { margin: 0; font-size: 1rem; font-weight: 500; line-height: 1.4; }
.footer__bottom small { font-size: .75rem; line-height: 1.5; flex-shrink: 0; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; }
.hero__contact:focus-visible, .contact__submit:focus-visible { outline-color: var(--ink); outline-offset: -6px; }
.footer a:focus-visible { outline-color: var(--cream); }
@media (hover: hover) {
  .hero__contact:hover, .contact__submit:not(:disabled):hover { background: #172cc4; }
}

/* Preserve the desktop composition on tablets, with readable text that
   fits above the unchanged geometric junction. */
@media (min-width: 600px) and (max-width: 1199px) {
  .mission__intro { padding-top: calc(90 / 1440 * 100cqw); padding-bottom: 20px; }
  .mission__intro .eyebrow { font-size: 14px; }
  .mission__intro > p { font-size: clamp(16px, calc(30 / 1440 * 100cqw), 24px); }
  .mission__detail { padding-inline: 32px; }
}
/* Switch to the separate Figma mobile composition only on phones. */
@media (max-width: 599px) {
  .mission { display: flex; flex-direction: column; }
  .mission__intro {
    min-height: auto;
    padding: 64px clamp(24px, 6vw, 72px) 0;
    background: var(--ink);
  }
  .mission__intro > p { max-width: 28ch; margin-top: 28px; font-size: clamp(1.5rem, 3vw, 1.875rem); }
  .mission__art { position: relative; height: auto; aspect-ratio: 1438 / 997; z-index: auto; }
  .mission__detail {
    min-height: auto;
    padding: 48px clamp(24px, 6vw, 72px) 64px;
    font-size: 1rem;
  }
  .mission__detail p { max-width: 65ch; margin-inline: auto; }
  .mission__detail p + p { margin-top: 1.5em; }
}
@media (max-width: 599px) {
  .hero { display: block; height: calc(771 / 390 * 100cqw - 32px); }
  .hero__header { position: static; padding: 0; }
  .hero__brand { position: absolute; top: calc(59 / 390 * 100cqw - 32px); left: 25px; }
  .hero__contact { position: absolute; top: calc(63 / 390 * 100cqw - 32px); right: 15px; width: 138px; font-size: 16px; }
  .hero__heading { position: absolute; top: calc(174 / 390 * 100cqw - 32px); left: 25px; width: calc(100% - 40px); max-width: none; margin: 0; font-size: calc(36 / 390 * 100cqw); line-height: 1.2; letter-spacing: -1px; }
  .hero__art { position: absolute; inset: -32px 0 auto; aspect-ratio: auto; height: calc(100% + 32px); }
  .hero__shape { left: calc(-79.798 / 390 * 100%); top: calc(-42.202 / 390 * 100cqw); width: calc(476.596 / 390 * 100%); height: calc(465 / 390 * 100cqw); transform: rotate(90deg); }
  .hero__photo-frame { left: calc(25 / 390 * 100%); top: calc(429 / 390 * 100cqw); width: calc(265.651 / 390 * 100%); aspect-ratio: 265.651 / 241.724; }
  .hero__photo-window { width: calc(241.724 / 265.651 * 100%); height: calc(265.651 / 241.724 * 100%); mask-image: url("assets/optimized/hero-mask-mobile.png"); -webkit-mask-image: url("assets/optimized/hero-mask-mobile.png"); }
  .hero__square { width: calc(99.374 / 390 * 100%); }
  .hero__nmls { left: 25px; bottom: 24px; }
  .mission__intro { min-height: calc(231 / 390 * 100cqw); padding: 44px 25px 24px; }
  .mission__intro .eyebrow { font-size: 14px; letter-spacing: 3px; }
  .mission__intro > p { max-width: none; margin-top: 24px; font-size: 20px; line-height: 1.4; }
  .mission__art { aspect-ratio: 390 / 500; background: linear-gradient(var(--ink) 74.2%, var(--cream) 74.2%); }
  .mission__photo-frame, .mission__cutout { display: none; }
  .mission__mobile-photo { display: block; width: 100%; height: 100%; }
  .mission__detail { padding: 48px 20px; }
  .contact { padding: 64px 20px; }
  .contact h2 { margin-bottom: 48px; font-size: 32px; letter-spacing: -1.15px; }
  .form-field label { font-size: 12px; letter-spacing: 1.5px; }
  .contact__submit { font-size: 16px; }
  .footer { padding: 40px 20px; gap: 80px; }
  .footer__top { flex-direction: column; gap: 62px; }
  .footer__legal { font-size: 16px; }
  .footer__bottom { flex-wrap: nowrap; align-items: flex-end; gap: 16px; }
  .footer__bottom p { max-width: 28ch; font-size: 14px; }
  .footer__bottom small { width: 142px; text-align: right; }
}
@media (max-width: 359px) {
  .hero__brand { left: 20px; }
  .hero__contact { right: 12px; width: 100px; font-size: 14px; }
  .hero__heading { left: 20px; }
  .hero__nmls { left: 20px; }
  .mission__intro { padding-inline: 20px; }
}

/* Native scroll timelines avoid scroll handlers and layout measurements.
   Browsers without support retain the exact, static Figma composition. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) and (min-width: 960px) and (hover: hover) and (pointer: fine) {
    .hero__photo-frame { view-timeline: --hero-photo block; }
    .mission__art { view-timeline: --mission-photo block; }
    .hero__photo {
      animation: hero-photo-drift 1s linear both;
      animation-timeline: --hero-photo;
      animation-range: entry 0% exit 100%;
    }
    .mission__photo {
      animation: mission-photo-drift 1s linear both;
      animation-timeline: --mission-photo;
      animation-range: entry 0% exit 100%;
    }
  }
}

@keyframes hero-photo-drift {
  from { transform: translateX(-1.4%) scale(1.1); }
  to { transform: translateX(1.4%) scale(1.1); }
}
@keyframes mission-photo-drift {
  from { transform: translateY(8px); }
  to { transform: translateY(-8px); }
}

/* Simple reading pages: the same tan canvas and body typography. */
.legal-page { background: var(--cream); font-size: 1.125rem; line-height: 1.5; }
.legal-page a { color: inherit; text-underline-offset: .2em; }
.legal-header {
  max-width: 1280px;
  margin-inline: auto;
  padding: 48px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}
.legal-header > a:last-child { font-size: 1rem; }
.legal-logo { position: relative; display: block; width: var(--logo-width); flex-shrink: 0; }
.legal-logo img { display: block; width: 100%; height: auto; }
.legal-content { max-width: 800px; margin-inline: auto; padding-inline: 24px; overflow-wrap: anywhere; }
.legal-content { padding-block: 32px 64px; }
.legal-content h1 { margin: 0 0 32px; font-size: clamp(2rem, 4vw, 3rem); line-height: 1.15; font-weight: 300; letter-spacing: -.025em; }
.legal-content h2 { margin: 40px 0 16px; font-size: 1.25rem; line-height: 1.4; font-weight: 500; }
.legal-content p { margin: 0 0 20px; }
.legal-content ul { padding-left: 24px; margin: 0 0 24px; }
.legal-content li + li { margin-top: 12px; }
.legal-table-wrap { overflow-x: auto; margin-block: 24px; }
.legal-content table { border-collapse: collapse; width: 100%; font-size: 1rem; }
.legal-content th, .legal-content td { padding: 16px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid #c6bfb2; }
.legal-content th { font-weight: 500; }
.legal-content th:first-child { width: 25%; }
.legal-content th:last-child, .legal-content td:last-child {
  width: 8rem;
  min-width: 7rem;
  overflow-wrap: normal;
  word-break: normal;
}
@media (max-width: 599px) {
  .legal-header { padding: 24px; }
  .legal-page { font-size: 1rem; }
  .legal-content { padding-top: 24px; }
  .legal-content th, .legal-content td { padding: 12px 8px; }
}

/* Prepare scroll text before its first visible frame, so entering the viewport
   never paints it fully visible before the observer starts the fade. */
@media (prefers-reduced-motion: no-preference) {
  .scroll-reveals-ready :is(.mission__intro > *, .mission__detail > p, .contact__inner > .eyebrow, #contact-heading):not(.reveal-complete) {
    opacity: 0;
  }
}

/* Keep the mobile header anchored while reducing both elements proportionally. */
@media (max-width: 599px) {
  .hero__brand { scale: .9; transform-origin: top left; }
  .hero__contact { scale: .9; transform-origin: top right; }
}

/* Legal-page branding follows the homepage's capped coordinate plane. */
.legal-header {
  max-width: var(--hero-max-width); container-type: inline-size; padding: 0; align-items: flex-start;
}
.legal-logo {
  width: calc(var(--logo-width) * 1.1); aspect-ratio: 248.927 / 84.902;
  margin: calc(63.543 / 1437.78 * 100cqw) 0 48px calc(59.49 / 1437.78 * 100cqw);
}
.legal-logo img { height: 100%; }
.legal-header > a:not(.legal-logo) { margin: calc(63.543 / 1437.78 * 100cqw) calc(59.49 / 1437.78 * 100cqw) 24px 0; }
@media (max-width: 599px) {
  .legal-logo { width: calc(var(--logo-width) * .9); margin-top: calc(59 / 390 * 100cqw - 32px); margin-left: 25px; }
  .legal-header > a:not(.legal-logo) { margin-top: calc(59 / 390 * 100cqw - 32px); margin-right: 25px; }
}
@media (max-width: 359px) { .legal-logo { margin-left: 20px; } }

/* Shared footer presentation on the homepage and legal pages. */
.footer { font-size: 16px; line-height: normal; -webkit-font-smoothing: antialiased; }
.footer { padding-top: clamp(88px, 8.4vw, 120px); padding-bottom: clamp(64px, 6vw, 88px); }
.footer__legal { justify-items: end; text-align: right; margin-left: auto; }
.footer__legal a { width: fit-content; }
@media (prefers-reduced-motion: reduce) { .footer__legal a { transition: none; } }
.footer__brand { width: calc(var(--logo-width) * 1.1); }
@media (hover: hover) and (pointer: fine) {
  .footer__legal a { text-decoration: none; background: linear-gradient(currentColor, currentColor) left bottom / 0 1px no-repeat; transition: background-size 200ms ease-out; }
  .footer__legal a:hover { background-size: 100% 1px; text-decoration: none; }
}
