/* CHARM / ชาม — single source of truth.
   One direction: tight all-caps Helvetica + the metallic-bowl photo (asset/Group 9.png),
   warm terracotta / olive / cream / brown palette. Editing this file changes the page. */

:root {
  --ink: #1D1D1D;        /* body text on light */
  --headline: #2B2727;   /* display headings (warm near-black) */
  --paper: #F3F1EC;      /* page ground */
  --cream: #F5F2EC;      /* text on dark */
  --brown: #3A2F23;      /* inspiration + marquee bar */
  --panel: #DFD8CC;      /* site header */
  --panel-2: #DCD8CF;    /* artists section */
  --blue: #9DB2B0;       /* inspiration section */
  --olive: #948439;      /* illustrations section */
  --terracotta: #9E4A1B; /* eyebrows + display accents — AA 4.5 on paper, AA 3 on panels */
  --rose: #CDA9A2;       /* accents on --brown — AA 4.5 on brown */
  --marquee-x: #E9B487;  /* marquee separators on --brown */
  --line: rgba(29, 29, 29, .2);
  --sans: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --mono: 'DM Mono', ui-monospace, Menlo, monospace;
}

* { box-sizing: border-box; }
html, body { max-width: 100%; overflow-x: hidden; }
/* smooth scrolling is handled by Lenis (see index.html); keep native scroll-behavior off */
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.5 var(--sans);
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
p, h1, h2, h3 { margin: 0; }

/* ---------- header ---------- */
.site-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  /*height: 0px;*/

  padding: 24px 8vw;
  background: var(--panel);
}
.header-logo img { height: 50px ; width: auto; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 560px;
  overflow: hidden;
  padding: 84px 8vw 72px;
  background: var(--paper) url('asset/Group 9.png') center bottom / cover no-repeat;
  color: var(--ink);
}
/* Paper scrim over the photo: heavy under the text column, clearing to the right
   so the engraved bowl still reads. Keeps headline + subline >= 8:1 on any crop. */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(
    105deg,
    rgba(243, 241, 236, .93) 0%,
    rgba(243, 241, 236, .82) 46%,
    rgba(243, 241, 236, .42) 66%,
    rgba(243, 241, 236, .10) 84%,
    rgba(243, 241, 236, 0) 100%
  );
}
.hero-copy {
  position: relative;
  z-index: 1;
  align-self: flex-end;
  min-width: 0;
  max-width: 520px;
}
.hero h1 {
  margin: 0;
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(52px, 8vw, 104px);
  line-height: .9;
  letter-spacing: -.01em;
  color: var(--headline);
  overflow-wrap: break-word;
}
.hero h1 span { display: inline-block; }
.hero-intro {
  max-width: 420px;
  padding: 26px 0;
  font-size: 16px;
  line-height: 1.45;
  overflow-wrap: break-word;
}
.hero-tagline {
  margin-top: 22px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink);
}
.hero-tagline strong { font-weight: 500; color: var(--headline); }

/* ---------- marquee ---------- */
.marquee {
  overflow: hidden;
  padding: 12px 0;
  background: var(--brown);
  color: var(--cream);
  font-family: var(--mono);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .12em;
  text-transform: uppercase;
  white-space: nowrap;
}
.marquee div { animation: marquee 25s linear infinite; }
.marquee span { margin: 0 18px; color: var(--marquee-x); font-size: 16px; }

/* ---------- shared section scaffold ---------- */
.section { padding: 80px 8vw; }
.eyebrow {
  display: block;
  margin-bottom: 20px;
  font-family: var(--mono);
  font-size: 16px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--terracotta);
}
.section-heading h2,
.artists-intro h2,
.inspiration-grid h2 {
  margin: 0;
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(40px, 5vw, 68px);
  line-height: .95;
  letter-spacing: -.04em;
  color: var(--headline);
}
h2 em { font-style: italic; color: var(--terracotta); }

.inspiration-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8vw;
  padding-top: 78px;
}
.story-grid,
.inspiration-story {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  justify-items: center;
  text-align: center;
  padding-top: 78px;
}
.story-copy,
.inspiration-grid p,
.inspiration-copy p,
.artists-intro p {
  max-width: 520px;
  font-size: 17px;
  line-height: 1.45;
}
.story-copy,
.inspiration-copy { max-width: 560px; }
.story-copy p + p,
.inspiration-copy p + p { margin-top: 24px; }

/* ---------- illustrations ---------- */
.illustrations { background: var(--olive); }
.illustration-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 24vw;
}
.illustration-row img { height: 80px; width: auto; }

.ritual-demo { margin: 56px auto 0; max-width: 300px; text-align: center; }
.ritual-demo img { width: 100%; height: auto; }
.ritual-demo figcaption {
  margin-top: 18px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .12em;
  line-height: 1.5;
  text-transform: uppercase;
  color: var(--terracotta);
}

/* ---------- inspiration ---------- */
.inspiration { background: var(--blue) url('asset/bg-blue.jpg') center / cover no-repeat; color: var(--ink); }
.inspiration-story { padding-bottom: 70px; }
.inspiration-story .eyebrow { color: var(--brown); }
.inspiration-grid h2 { color: var(--headline); }
.inspiration-grid h2 em { color: var(--brown); }
.inspiration-ending {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  justify-items: center;
  text-align: center;
  padding-top: 28px;
}
.inspiration-ending > p { max-width: 560px; font-size: 19px; line-height: 1.35; }
.inspiration-ending > p:nth-child(2) { color: var(--brown); font-weight: 700; }
.quote-lines {
  font-weight: 700;
  font-size: clamp(24px, 3vw, 42px);
  line-height: 1.08;
  color: var(--headline);
}

/* ---------- artists ---------- */
.artists { background: var(--panel-2); }
.artists-intro {
  display: grid;
  gap: 12px;
  align-items: end;
  padding-top: 24px;
}
.artist-list {
  display: flex;
  gap: 24px; 
  flex-wrap: wrap;
  justify-content: left;
  padding-top: 48px;
}
.artist-list article { display: flex; align-items: center; gap: 16px; }
.artist-image {
  flex-shrink: 0;
  width: 84px;
  height: 84px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background-position: center;
  background-size: cover;
  filter: saturate(.85);
}
.portrait-one { background-image: url('asset/pinky.jpg'); }
.portrait-two { background-image: url('asset/fai.jpg'); }
.artist-meta { padding-top: 0; }
.artist-meta span {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink);
}
.artists-intro h2 {
  font-size: clamp(22px, 2.6vw, 32px);
  margin-bottom: 0;
}

.artist-meta h3 {
  margin-top: 8px;
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
}
.artist-meta p {
  margin-top: 6px;
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  color: var(--ink);
}
.artist-meta a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.artist-meta a:hover { color: var(--terracotta); }

/* ---------- footer ---------- */
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: var(--ink);
  color: var(--cream);
  padding: 30px 5vw;
}
.footer-logo img { width: 148px; }
.site-footer p {
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1.6;
  text-transform: uppercase;
}

/* ---------- motion ---------- */
@keyframes enter      { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes enter-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes marquee    { to { transform: translateX(-50%); } }

/* staggered entrance: hero copy (0) → tagline (100) → marquee (200) */
.hero-copy > h1,
.hero-intro,
.hero-tagline,
.marquee {
  animation: enter 360ms cubic-bezier(.2, .6, .2, 1) both;
}
.hero-copy > h1,
.hero-intro   { animation-delay: 0ms; }
.hero-tagline { animation-delay: 100ms; }
.marquee      { animation-delay: 200ms; }

@media (prefers-reduced-motion: reduce) {
  .hero-copy > h1,
  .hero-intro,
  .hero-tagline,
  .marquee { animation-name: enter-fade; }  /* fade only, no slide */
  .marquee div { animation: none; }          /* no continuous scroll */
}

/* ---------- responsive ---------- */
@media (max-width: 1200px) {
  .site-footer {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 16px;
  }
}
@media (max-width: 1024px) {
  .site-header { padding-top: 40px; padding-bottom: 40px; }
}
@media (max-width: 767px) {
  .marquee div { animation-duration: 50s; }  /* half speed on mobile */
}
@media (max-width: 700px) {
  .site-header { padding: 32px 6vw; }
  .header-logo img { height: 30px; }

  .hero {
    align-items: flex-start;
    min-height: 460px;
    padding: 76px 6vw 48px;
    background-size: cover;
    background-position: center;
  }
  .hero::before {
    background: linear-gradient(
      180deg,
      rgba(243, 241, 236, .95) 0%,
      rgba(243, 241, 236, .9) 46%,
      rgba(243, 241, 236, .64) 76%,
      rgba(243, 241, 236, .28) 100%
    );
  }
  .hero-copy { align-self: flex-start; max-width: 100%; }
  .hero h1 { font-size: clamp(34px, 10vw, 48px); line-height: .98; }
  .hero-intro { max-width: 100%; font-size: 15px; }
  .hero-tagline { font-size: 10px; letter-spacing: .08em; }

  .marquee { font-size: 12px; }

  .section { padding: 75px 6vw; }
  .story-grid,
  .inspiration-grid,
  .artists-intro { grid-template-columns: 1fr; gap: 30px 0; padding-top: 48px; }
  /* keep display lines inside the viewport (they each sit on one unbreakable line) */
  .section-heading h2,
  .artists-intro h2,
  .inspiration-grid h2 { font-size: clamp(30px, 7vw, 40px); }
  .quote-lines { font-size: clamp(20px, 5.5vw, 32px); }

  .illustration-row { flex-direction: column; gap: 40px; }
  .illustration-row img { height: 130px; }

  .inspiration-story { padding-bottom: 48px; }
  .inspiration-ending { grid-template-columns: 1fr; }
  .inspiration-ending > p:last-child { grid-column: auto; }
  .inspiration-ending > p,
  .quote-lines { margin-top: 24px; }
  .inspiration-ending > p:first-child { margin-top: 0; }

  .artist-list { flex-direction: column; gap: 28px; }

}
