/* =========================================================
   AJIRO — STYLE SYSTEM (INDEX = WHITE, P1 PAGE = GRAY)
   Goal: minimal, consistent, and predictable.
   ========================================================= */

/* =========================
   FONT
   ========================= */
@font-face {
  font-family: "Ajirotype";
  src: url("Ajirotype.otf") format("opentype");
  font-weight: normal;
  font-style: normal;
}

/* =========================
   TOKENS / VARIABLES
   ========================= */
:root {
  --header-h: 60px;
  --footer-h: 60px;

  /* HOME = WHITE TEXT (restored) */
  --text-color: #ffffff;

  /* TYPE SCALE */
  --fs-title: clamp(2.5rem, 4.8vw, 4.8rem);
  --fs-body: clamp(1.12rem, 1.8vw, 1.32rem);
  --fs-small: clamp(0.95rem, 1.2vw, 1rem);

  /* P1 = BLACK TEXT */
  --p1-text-color: #000000;
  --p1-border-color: #000000;
  --p1-hover-bg: #000000;
}

/* =========================
   BASE RESET
   ========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Ajirotype", sans-serif;
  font-weight: 400;
  font-synthesis: none;
  color: var(--text-color);
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
a,
button,
input,
textarea,
label,
span {
  font-weight: inherit;
}

html,
body {
  height: 100%;
  overflow: hidden; /* home page behavior (page 2 overrides below) */
}

html,
body.home {
  height: auto;
  min-height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
}

/* =========================
   VIDEO BACKGROUND (HOME)
   ========================= */
video {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  pointer-events: none;
  background: #ffffff; /* fallback while video loads */
}

.bg {
  width: 100%;
  height: 100vh;
  position: relative;
}

.bg::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 90px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #ffffff);
  pointer-events: none;
}

/* =========================
   LAYOUT SPACING (HOME)
   ========================= */
.content {
  padding-top: var(--header-h);
  padding-bottom: var(--footer-h);
}

/* =========================
   HERO (HOME)
   ========================= */
.hero {
  height: calc(100vh - var(--header-h) - var(--footer-h));
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.hero h1 {
  font-size: var(--fs-title);
  letter-spacing: 0.08em;
  margin-bottom: 1.4rem;
}

.container {
  padding-inline: 24px;
}

.founders-section {
  position: relative;
  background: #ffffff;
  padding: 96px 24px calc(32px + var(--footer-h));
}

.founders-shell {
  width: min(1200px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(320px, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.founders-visual {
  position: relative;
}

.founders-image-frame {
  position: relative;
  width: min(100%, 560px);
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: linear-gradient(145deg, rgba(0, 0, 0, 0.03), rgba(0, 0, 0, 0.01));
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.founders-image {
  width: 100%;
  display: block;
  height: auto;
}

.founders-copy {
  display: grid;
  gap: 18px;
}

.founders-intro {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  align-items: start;
}

.founders-mark {
  width: clamp(100px, 10vw, 140px);
  height: auto;
  display: block;
}

.eyebrow {
  color: rgba(0, 0, 0, 0.52);
  font-size: var(--fs-small);
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.founders-copy h2 {
  color: #000000;
  font-size: var(--fs-title);
  line-height: 0.98;
  letter-spacing: 0.04em;
}

.founders-copy p {
  color: rgba(0, 0, 0, 0.72);
  font-size: var(--fs-body);
  line-height: 1.7;
  max-width: 62ch;
}

.founders-lead {
  color: #000000;
}

.project-section {
  background: #ffffff;
  padding: 0 24px calc(96px + var(--footer-h));
}

.project-shell {
  width: min(1200px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(320px, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}

.project-media,
.project-copy {
  display: grid;
  gap: 24px;
}

.project-image-frame,
.project-video-frame {
  width: min(100%, 560px);
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #ffffff;
  box-shadow:
    0 18px 48px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.project-image {
  width: 100%;
  display: block;
  height: auto;
}

.project-video-frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.project-video {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.project-copy h2 {
  color: #000000;
  font-size: var(--fs-title);
  line-height: 0.98;
  letter-spacing: 0.04em;
}

.project-copy p {
  color: rgba(0, 0, 0, 0.72);
  font-size: var(--fs-body);
  line-height: 1.7;
  max-width: 62ch;
}

.project-lead {
  color: #000000;
}

.project-specs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 8px;
}

.project-spec {
  padding: 18px 20px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.9);
}

.project-spec h3 {
  color: #000000;
  font-size: var(--fs-body);
  margin-bottom: 8px;
}

.project-spec p {
  color: rgba(0, 0, 0, 0.6);
  font-size: var(--fs-small);
  line-height: 1.4;
}

@media (max-width: 900px) {
  .founders-shell {
    grid-template-columns: 1fr;
  }

  .project-shell {
    grid-template-columns: 1fr;
  }

  .founders-copy h2 {
    max-width: 12ch;
  }

  .founders-intro {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .founders-section {
    padding-top: 72px;
    padding-bottom: calc(28px + var(--footer-h));
  }

  .project-section {
    padding-bottom: calc(72px + var(--footer-h));
  }

  .founders-copy h2 {
    max-width: none;
  }

  .project-specs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* =========================
   HEADER (SHARED)
   ========================= */
.header {
  position: fixed;
  top: 0;
  width: 100%;
  height: var(--header-h);
  background: #ffffff;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2;
}

.logo {
  height: 20px;
}

.logo-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

/* =========================
   FOOTER (SHARED)
   ========================= */
.footer {
  position: fixed;
  bottom: 0;
  width: 100%;
  height: var(--footer-h);
  background: #ffffff;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2;
}

.socials {
  display: flex;
  gap: 28px;
}

.socials img {
  height: 22px;
  transition: transform 0.25s ease;
}

.socials img:hover {
  transform: translateY(-2px);
}

/* =========================
   CTA BUTTON (DEFAULT = HOME WHITE)
   ========================= */
.cta-button,
#fade {
  display: inline-block;
  padding: 16px 32px;
  border-radius: 999px;
  border: 3px solid #ffffff;

  font-size: var(--fs-body);
  letter-spacing: 0.08em;
  text-decoration: none;

  opacity: 0;
  transition:
    opacity 0.6s ease,
    transform 0.25s ease,
    background 0.25s ease,
    color 0.25s ease,
    border 0.25s ease;
}

.cta-button:hover,
#fade:hover {
  background: #ffffff;
  color: #000000;
  transform: translateY(-2px);
}

.project-section .project-cta {
  width: fit-content;
  opacity: 1;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border: 3px solid var(--p1-border-color);
  color: var(--p1-text-color);
}

.project-section .project-cta:hover {
  background: var(--p1-hover-bg);
  color: #ffffff;
}

/* =========================================================
   PAGE 2 — P1 IMAGE + BUTTON
   ========================================================= */

html,
body.page {
  height: auto;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  background: #ffffff;
}

/* P1 text override = BLACK */
body.page * {
  color: var(--p1-text-color);
}

body.page .header,
body.page .footer {
  background: #ffffff;
}

/* Page container */
.image-page {
  padding-top: calc(var(--header-h) + 10px);
  padding-bottom: calc(var(--footer-h) + 10px);
  display: flex;
  justify-content: center;
}

/* Stack image + button */
.product-center {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  text-align: center;
}

/* Remove default margins */
.product-center h1,
.product-center h2,
.product-center h3,
.product-center p {
  margin: 0;
}

/* P1 image */
.hero-bike {
  width: min(1100px, 92vw);
  height: auto;
  display: block;
  object-fit: contain;
}

.exploded-caption {
  font-size: var(--fs-body);
  letter-spacing: 0.04em;
}

/* P1 CTA */
body.page .cta-button,
body.page #fade {
  opacity: 1;
  display: inline-flex;
  justify-content: center;
  align-items: center;

  border: 3px solid var(--p1-border-color);
}

/* P1 CTA hover */
body.page .cta-button:hover,
body.page #fade:hover {
  background: var(--p1-hover-bg);
  color: #ffffff;
}

.specs {
  width: 100%;
  padding: 10px 10px;
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  text-align: center;
  background: #ffffff;
}

.spec {
  flex: 1;
  min-width: 0;
}

.spec h2 {
  font-size: var(--fs-body);
  letter-spacing: 0.08em;
  margin-bottom: 12px;
  white-space: nowrap;
}

.spec p {
  font-size: var(--fs-small);
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.reservation-page {
  width: min(760px, 100%);
  margin: 0 auto;
  padding: calc(var(--header-h) + 48px) 24px calc(var(--footer-h) + 48px);
}

.reservation-card {
  display: grid;
  gap: 32px;
  padding: 0;
}

.reservation-copy {
  display: grid;
  gap: 16px;
}

.reservation-copy h1 {
  color: #000000;
  font-size: var(--fs-title);
  line-height: 0.98;
  letter-spacing: 0.04em;
}

.reservation-copy p {
  color: rgba(0, 0, 0, 0.72);
  font-size: var(--fs-body);
  line-height: 1.7;
  max-width: 36ch;
}

.reservation-form {
  display: grid;
  gap: 20px;
}

.form-field {
  display: grid;
  gap: 10px;
}

.form-field label {
  color: #000000;
  font-size: var(--fs-body);
  letter-spacing: 0.08em;
}

.form-field input {
  width: 100%;
  padding: 18px 20px;
  border: 1.5px solid rgba(0, 0, 0, 0.14);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  color: #000000;
  font-size: var(--fs-body);
  outline: none;
  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.form-field input:focus {
  border-color: rgba(0, 0, 0, 0.42);
  box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.06);
}

.reservation-actions {
  display: grid;
  gap: 14px;
  padding-top: 8px;
}

.reservation-actions .cta-button {
  cursor: pointer;
  background: transparent;
  width: fit-content;
}

.reservation-next-link {
  text-align: center;
}

.form-status {
  min-height: 1.7em;
  color: rgba(0, 0, 0, 0.72);
  font-size: var(--fs-small);
  letter-spacing: 0.04em;
}

.form-status.is-error {
  color: #a12424;
}

.form-status.is-success {
  color: #0b6b36;
}

@media (max-width: 640px) {
  .reservation-page {
    padding-top: calc(var(--header-h) + 32px);
    padding-bottom: calc(var(--footer-h) + 32px);
  }
}
