/* Chi Mai — chimai.ca : quiet luxury editorial, static, dependency-free */

:root {
  --ivory: #faf7f1;
  --ink: #1b1712;
  --ink-soft: #4a443b;
  --muted: #8a8177;
  --hairline: #e5ddd1;
  --deep-green: #0f2d2b;
  --serif: Didot, "Bodoni MT", "Playfair Display", "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Segoe UI", Inter, Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

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

body {
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* Only four links exist on the page: two CTAs + two social icons. */
a { color: inherit; }

.screen {
  max-width: 1120px;
  margin: 0 auto;
  padding-left: clamp(20px, 5vw, 56px);
  padding-right: clamp(20px, 5vw, 56px);
}

/* ---------- Screen 1 : hero ---------- */

.screen-hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: clamp(20px, 4vh, 36px) 0;
}

.wordmark {
  font-family: var(--serif);
  letter-spacing: 0.32em;
  font-size: 15px;
  text-indent: 0.32em;
}

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

.social a {
  display: inline-flex;
  color: var(--ink);
  transition: opacity 0.2s ease;
}

.social a:hover { opacity: 0.55; }

.social svg { width: 22px; height: 22px; }

.hero {
  flex: 1;
  display: flex;
  align-items: center;
  gap: clamp(32px, 6vw, 96px);
  padding: clamp(12px, 3vh, 32px) 0 clamp(28px, 5vh, 56px);
}

.hero-copy { flex: 1.1; }

.hero-copy h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(52px, 9vw, 128px);
  line-height: 1.02;
  letter-spacing: -0.01em;
}

.hero-line {
  margin-top: clamp(16px, 3vh, 28px);
  font-size: clamp(15px, 1.6vw, 19px);
  color: var(--ink-soft);
  max-width: 34ch;
  line-height: 1.65;
}

.hero-photo { flex: 0.9; display: flex; justify-content: center; }

.hero-photo img {
  width: min(100%, 380px);
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 999px 999px 6px 6px; /* soft editorial arch */
  display: block;
}

/* ---------- Screen 2 : products + experience ---------- */

.screen-main { padding-top: clamp(40px, 8vh, 88px); }

.section-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(30px, 4.4vw, 52px);
  letter-spacing: -0.01em;
  margin-bottom: clamp(28px, 5vh, 52px);
}

.card { margin-bottom: clamp(48px, 9vh, 96px); }

.card-logo {
  height: clamp(34px, 4.5vw, 52px);
  width: auto;
  display: block;
  margin-bottom: clamp(14px, 2.5vh, 22px);
}

.card-wordmark {
  font-family: var(--serif);
  font-size: clamp(34px, 4.5vw, 52px);
  display: block;
  margin-bottom: clamp(14px, 2.5vh, 22px);
  letter-spacing: 0.01em;
}

.card-desc {
  font-size: clamp(14px, 1.5vw, 17px);
  color: var(--ink-soft);
  margin-bottom: clamp(18px, 3.5vh, 32px);
  letter-spacing: 0.02em;
}

.shots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(10px, 2vw, 24px);
  margin-bottom: clamp(22px, 4vh, 40px);
  padding: 0 clamp(4px, 1.5vw, 24px); /* slight inset so the row breathes */
}

.shots img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: top;
  border-radius: 10px;
  display: block;
  border: 1px solid var(--hairline);
  transform: scale(0.95); /* 5% inset breathing room */
  transform-origin: center;
}

.cta {
  display: inline-block;
  background: var(--deep-green);
  color: #f7f4ec;
  text-decoration: none;
  font-size: 14px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 15px 34px;
  border-radius: 999px;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.cta:hover { opacity: 0.88; transform: translateY(-1px); }

/* ---------- Experience marquee ---------- */

.experience { margin-bottom: clamp(48px, 8vh, 80px); }

.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
  padding: clamp(10px, 2vh, 18px) 0;
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: clamp(48px, 7vw, 110px);
  width: max-content;
  animation: marquee 30s linear infinite;
}

.marquee-track img {
  height: clamp(44px, 6vw, 72px);
  width: auto;
  max-width: 220px;
  object-fit: contain;
  filter: grayscale(1) contrast(1.05);
  opacity: 0.85;
  flex-shrink: 0;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; flex-wrap: wrap; width: auto; }
}


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

footer {
  border-top: 1px solid var(--hairline);
  padding: clamp(24px, 4vh, 40px) 0 clamp(32px, 6vh, 64px);
  text-align: center;
}

/* ---------- Mobile : 2 screens total, photo always visible ---------- */

@media (max-width: 720px) {
  .screen-hero { min-height: 100svh; }

  .hero {
    flex-direction: column;
    justify-content: center;
    gap: 28px;
    text-align: center;
    padding-bottom: 40px;
  }

  .hero-copy h1 { font-size: clamp(48px, 15vw, 76px); }

  .hero-line { margin-left: auto; margin-right: auto; font-size: 15px; }

  .hero-photo img {
    width: min(64vw, 240px);
    aspect-ratio: 4 / 5;
  }

  .shots { grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 0 2px; }

  .card { margin-bottom: 56px; }

  .section-title { margin-bottom: 28px; }
}
