@font-face {
  font-family: "Source Sans Pro";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/SourceSansPro-Regular.woff2") format("woff2");
}

@font-face {
  font-family: "Source Sans Pro";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/SourceSansPro-SemiBold.woff2") format("woff2");
}

@font-face {
  font-family: "Source Sans Pro";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/SourceSansPro-Bold.woff2") format("woff2");
}

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

:root {
  color-scheme: light;
  --orange: #ff6e00;
  --red: #f21b34;
  --teal: #009e9b;
  --navy: #102c72;
  --ink: #050505;
  --paper: #eeeeee;
  --font-body: "Source Sans Pro", "Helvetica Neue", Arial, sans-serif;
  --font-display: "Candice", Georgia, serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

figure {
  margin: 0;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

.skip-link,
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link:focus {
  z-index: 10;
  top: 1rem;
  left: 1rem;
  width: auto;
  height: auto;
  padding: 0.75rem 1rem;
  background: white;
  color: var(--ink);
  clip: auto;
  clip-path: none;
}

/* ---------- Header ---------- */

.site-header {
  position: relative;
  z-index: 5;
  display: flex;
  height: 100px;
  align-items: center;
  padding: 0 clamp(1.25rem, 4.7vw, 60px);
  background: var(--orange);
  color: white;
}

.brand {
  flex: 0 0 auto;
  width: 130px;
}

.brand img {
  width: 100%;
  height: auto;
}

.site-nav {
  display: flex;
  flex: 1;
  justify-content: center;
  gap: 38px;
  padding-right: 110px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.site-nav a {
  transition: opacity 180ms ease;
}

.site-nav a:hover {
  opacity: 0.75;
}

.language {
  position: absolute;
  top: 50%;
  right: 96px;
  transform: translateY(-50%);
  font-size: 13px;
  font-weight: 600;
}

.language-button {
  padding: 0.4rem 0.3rem;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
}

.language-menu {
  position: absolute;
  top: 100%;
  right: 0;
  z-index: 3;
  min-width: 7.5rem;
  margin: 0.5rem 0 0;
  padding: 0.25rem 0;
  border-radius: 6px;
  background: white;
  box-shadow: 0 8px 20px rgb(0 0 0 / 18%);
  list-style: none;
}

.language-menu[hidden] {
  display: none;
}

.language-menu button {
  display: block;
  width: 100%;
  padding: 0.55rem 1rem;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.language-menu button:hover,
.language-menu button[aria-current="true"] {
  color: var(--orange);
}

.menu-toggle {
  position: absolute;
  top: 50%;
  right: 60px;
  display: flex;
  width: 34px;
  height: 26px;
  flex-direction: column;
  justify-content: space-between;
  padding: 0;
  border: 0;
  background: transparent;
  color: white;
  cursor: pointer;
  transform: translateY(-50%);
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 1px;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(12px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-12px) rotate(-45deg);
}

/* ---------- Preorder bar ---------- */

.preorder-bar {
  display: flex;
  height: 70px;
  align-items: center;
  justify-content: center;
  gap: 40px;
  padding: 0 1rem;
  background: white;
  color: #333;
  font-size: 15px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.preorder-bar p {
  margin: 0;
}

.preorder-bar strong {
  font-weight: 700;
  color: var(--ink);
}

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 3.25rem;
  border: 0;
  border-radius: 10px;
  background: var(--orange);
  color: white;
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: background-color 160ms ease, transform 160ms ease;
}

.button:hover {
  background: #e86000;
}

.button:active {
  transform: translateY(1px);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  height: 810px;
  overflow: hidden;
  background: #b5e5eb;
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 55%;
}

/* ---------- 2x2 grid ---------- */

.story-grid {
  display: grid;
  grid-template-columns: repeat(2, 640px);
  justify-content: center;
}

.cell {
  position: relative;
  display: flex;
  height: 835px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #fff;
}

.cell-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cell-board {
  padding: 25px 0 40px;
}

.board-image {
  height: 690px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

.board-caption {
  margin: 14px 0 12px;
  color: #666;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-align: center;
  text-transform: uppercase;
}



/* ---------- Manifesto band ---------- */

.manifesto,
.brand-band {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 60px;
  background: var(--orange);
  color: white;
}

.manifesto {
  height: 200px;
  justify-content: space-between;
  padding: 0 clamp(1.25rem, 15vw, 15rem) 0 clamp(1.25rem, 33vw, 420px);
}

.manifesto-copy {
  max-width: 370px;
  margin: 0;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.2;
}

.manifesto-title {
  width: 292px;
  margin: 0;
}

.manifesto-title .wordmark-img {
  filter: brightness(0) invert(1);
}

/* ---------- Road trip photo ---------- */

.roadtrip {
  height: 870px;
  overflow: hidden;
}

.roadtrip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 55%;
}

/* ---------- Birth of the brand ---------- */

.brand-band {
  display: grid;
  height: 200px;
  grid-template-columns: 287px 278px 278px;
  column-gap: 43px;
  align-items: center;
  justify-content: center;
  padding: 0 1.25rem;
}

.brand-title {
  width: 287px;
  margin: 0;
}

.brand-title .wordmark-img {
  filter: brightness(0) invert(1);
}

.brand-text {
  font-size: 12px;
  line-height: 1.35;
  text-align: justify;
}

.brand-text p {
  margin: 0 0 10px;
}

/* ---------- Who's Franky ---------- */

.franky-story {
  display: grid;
  grid-template-columns: 640px 640px;
  justify-content: center;
  background: #fff;
  color: #555;
}

.story-copy {
  display: flex;
  height: 650px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 40px 40px;
}

.section-wordmark {
  width: 300px;
  margin: 0 0 36px;
}

.wordmark-img {
  width: 100%;
  height: auto;
}

.wordmark-text {
  display: none;
  font-family: var(--font-display);
  font-size: 74px;
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 0.85;
  text-align: center;
  -webkit-text-stroke: 1.5px currentColor;
}

.wordmark-text-large {
  font-size: 72px;
}

:root[lang="fr"] .wordmark-img {
  display: none;
}

:root[lang="fr"] .wordmark-text {
  display: block;
}

.manifesto-title .wordmark-text,
.brand-title .wordmark-text {
  color: white;
  font-size: 54px;
  white-space: nowrap;
}

.franky-story .wordmark-text,
.construction-copy .wordmark-text {
  color: #f2121e;
}

.story-copy p {
  max-width: 265px;
  margin: 0 0 22px;
  font-size: 14px;
  line-height: 1.45;
}

.franky-art {
  height: 650px;
  overflow: hidden;
}

.franky-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- Construction (white) ---------- */

.construction {
  display: grid;
  grid-template-columns: 640px 640px;
  align-items: center;
  justify-content: center;
  min-height: 700px;
  padding: 120px 0 160px;
  background: #fff;
}

.construction-art {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 260px;
  margin-left: 35px;
  margin-right: 25px;
  background: white;
}

.construction-art img {
  width: 580px;
  height: auto;
}

.construction-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 40px;
  color: #555;
}

.construction-copy .section-wordmark {
  width: 420px;
  margin-bottom: 40px;
}

.construction-copy p {
  max-width: 262px;
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
}

/* ---------- Responsive ---------- */

@media (max-width: 1280px) {
  .story-grid,
  .franky-story,
  .construction {
    grid-template-columns: 1fr 1fr;
  }

  .story-grid {
    grid-template-columns: 1fr 1fr;
  }

  .cell {
    height: min(835px, 65.2vw);
  }

  .story-grid .cell-board {
    padding-top: 1.5rem;
  }

  .board-image {
    height: calc(100% - 170px);
  }

  .franky-story {
    grid-template-columns: 1fr 1fr;
  }

  .story-copy,
  .franky-art {
    height: min(650px, 50.8vw);
  }
}

@media (max-width: 900px) {
  .site-header {
    height: 72px;
  }

  .brand {
    width: 96px;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 1.25rem 1rem;
    background: var(--orange);
    box-shadow: 0 12px 18px rgb(0 0 0 / 12%);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 0.85rem 0;
    border-top: 1px solid rgb(255 255 255 / 24%);
  }

  .language {
    right: 60px;
  }

  .menu-toggle {
    right: 1.25rem;
  }

  .preorder-bar {
    height: auto;
    flex-wrap: wrap;
    gap: 12px;
    padding: 14px 1rem;
    font-size: 11px;
    letter-spacing: 0.06em;
    text-align: center;
  }

  .hero {
    height: 420px;
  }

  .story-grid,
  .franky-story,
  .construction {
    grid-template-columns: minmax(0, 1fr);
    justify-content: stretch;
  }

  .preorder-bar .button {
    min-height: 44px;
    padding: 0.7rem 2rem;
  }

  .cell,
  .cell-board {
    height: auto;
    min-height: 0;
    padding: 2rem 1rem;
  }

  .cell-photo {
    height: 80vw;
  }

  .board-image {
    height: 110vw;
    max-width: 80%;
  }

  .manifesto {
    height: auto;
    flex-direction: column;
    gap: 1.5rem;
    padding: 2.5rem 1.25rem;
    text-align: center;
  }

  .manifesto-title {
    width: 220px;
  }

  .roadtrip {
    height: 70vw;
  }

  .brand-band {
    height: auto;
    grid-template-columns: minmax(0, 1fr);
    row-gap: 1.5rem;
    padding: 2.5rem 1.25rem;
  }

  .brand-title {
    width: 220px;
  }

  .brand-text {
    font-size: 14px;
    text-align: left;
  }

  .story-copy,
  .franky-art {
    height: auto;
  }

  .story-copy {
    padding: 3rem 1.5rem;
  }

  .franky-art {
    height: 100vw;
  }

  .construction {
    padding: 3rem 1.25rem;
  }

  .construction-art {
    height: auto;
    margin: 0;
    padding: 1.5rem 0;
  }

  .construction-art img {
    width: 100%;
  }
}

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

/* ---------- Checkout dialog ---------- */

body:has(.checkout[open]) {
  overflow: hidden;
}

.checkout {
  position: fixed;
  inset: 0;
  margin: auto;
  width: min(960px, calc(100vw - 2rem));
  max-height: calc(100vh - 2rem);
  padding: 0;
  border: 0;
  border-radius: 16px;
  background: white;
  box-shadow: 0 30px 80px rgb(0 0 0 / 35%);
  color: #1a1f36;
  overflow: auto;
}

.checkout::backdrop {
  background: rgb(0 0 0 / 70%);
}

.checkout-close {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  z-index: 2;
  width: 2.25rem;
  height: 2.25rem;
  border: 0;
  border-radius: 50%;
  background: rgb(26 31 54 / 7%);
  color: #4f566b;
  cursor: pointer;
  font-size: 1.5rem;
  line-height: 1;
}

.checkout-close:hover {
  background: rgb(26 31 54 / 14%);
}

.checkout-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.checkout-pane {
  padding: 2.5rem 2.5rem 2.25rem;
}

.checkout-payment {
  background: #f6f8fa;
  border-left: 1px solid #e3e8ee;
}

.checkout h2 {
  margin: 0 0 1.25rem;
  font-size: 1.5rem;
  font-weight: 700;
}

.checkout h3 {
  margin: 1.5rem 0 0.75rem;
  font-size: 0.95rem;
  font-weight: 700;
}

.checkout-payment h3:first-child {
  margin-top: 0.35rem;
}

.checkout-models {
  display: flex;
  gap: 0.6rem;
  margin: 0;
  padding: 0;
  border: 0;
}

.checkout-models legend {
  margin-bottom: 0.5rem;
  padding: 0;
  font-size: 0.8rem;
  font-weight: 600;
  color: #4f566b;
}

.model-option {
  position: relative;
  flex: 1;
}

.model-option input {
  position: absolute;
  opacity: 0;
}

.model-option span {
  display: block;
  padding: 0.75rem 1rem;
  border: 1px solid #d5dbe1;
  border-radius: 8px;
  background: white;
  cursor: pointer;
  font-weight: 600;
  text-align: center;
}

.model-option input:checked + span {
  border-color: var(--orange);
  box-shadow: 0 0 0 1px var(--orange);
  color: var(--orange);
}

.model-option input:focus-visible + span {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}

.field {
  margin-bottom: 0.9rem;
}

.field label {
  display: block;
  margin-bottom: 0.3rem;
  color: #4f566b;
  font-size: 0.8rem;
  font-weight: 600;
}

.field input,
.field select {
  width: 100%;
  min-height: 2.6rem;
  padding: 0.6rem 0.75rem;
  border: 1px solid #d5dbe1;
  border-radius: 7px;
  background: white;
  color: #1a1f36;
  font: inherit;
  font-size: 1rem;
  box-shadow: 0 1px 1px rgb(0 0 0 / 4%);
  transition: border-color 140ms ease, box-shadow 140ms ease;
}

.field input:focus,
.field select:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgb(255 110 0 / 22%);
  outline: 0;
}

.field input[aria-invalid="true"] {
  border-color: #df1b41;
}

.field-error {
  min-height: 0;
  margin: 0.25rem 0 0;
  color: #df1b41;
  font-size: 0.78rem;
}

.field-error:empty {
  display: none;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
}

.summary {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e3e8ee;
}

.summary-image {
  width: 44px;
  height: 84px;
  object-fit: contain;
  border-radius: 6px;
  background: white;
}

.summary-text {
  flex: 1;
}

.summary-text p,
.summary-price,
.summary-total {
  margin: 0;
}

.summary-name {
  font-weight: 700;
}

.summary-sub {
  color: #6b7385;
  font-size: 0.8rem;
}

.summary-price {
  font-weight: 600;
}

.summary-total {
  display: flex;
  justify-content: space-between;
  padding: 0.9rem 0 0.25rem;
}

.checkout-pay {
  width: 100%;
  margin-top: 0.5rem;
}

.checkout-status {
  min-height: 1.2rem;
  margin: 0.8rem 0 0;
  color: #4f566b;
  font-size: 0.85rem;
  line-height: 1.4;
}

.checkout-status.is-error {
  color: #df1b41;
}

@media (max-width: 760px) {
  .checkout {
    width: 100vw;
    max-width: 100vw;
    height: 100%;
    max-height: 100%;
    border-radius: 0;
  }

  .checkout-form {
    grid-template-columns: minmax(0, 1fr);
  }

  .checkout-pane {
    padding: 2rem 1.25rem;
  }

  .checkout-payment {
    border-top: 1px solid #e3e8ee;
    border-left: 0;
  }
}

/* ---------- Footer ---------- */

.site-footer {
  padding: 3.5rem clamp(1.25rem, 5vw, 60px) 2rem;
  background: var(--orange);
  color: white;
}

.footer-inner {
  display: flex;
  max-width: 1160px;
  margin: 0 auto;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.footer-contact {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2rem;
  font-style: normal;
}

.footer-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
  text-align: center;
}

.footer-item svg {
  width: 40px;
  height: 40px;
  fill: currentColor;
}

.footer-item p {
  margin: 0;
  font-size: 15px;
  line-height: 1.45;
}

.footer-item a {
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 3px;
  transition: text-decoration-color 160ms ease;
}

.footer-item a:hover {
  text-decoration-color: currentColor;
}

.footer-social {
  display: flex;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-social a {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1.5px solid rgb(255 255 255 / 80%);
  border-radius: 50%;
  transition: background-color 160ms ease, color 160ms ease;
}

.footer-social a:hover {
  background: white;
  color: var(--orange);
}

.footer-social svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.footer-legal {
  width: 100%;
  margin: 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgb(255 255 255 / 35%);
  font-size: 13px;
  text-align: center;
}

@media (max-width: 900px) {
  .footer-contact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  .footer-contact {
    grid-template-columns: minmax(0, 1fr);
  }
}
