/* Dreamfluencing – design system
   Idea: the page wakes up. Night at the top, dawn, then daylight.
   One shape carries everything: the disc (sun, the gap, two people meeting). */

@font-face { font-family: "Fraunces"; src: url("fonts/fraunces-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/inter-Regular.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/inter-SemiBold.woff") format("woff"); font-weight: 600; font-display: swap; }

:root {
  --night: #1F2D47;
  --dawn: #E6B8B0;
  --day: #F8F2E9;
  --sun: #F3B63F;
  --moss: #4C5B42;
  --rose-deep: #A9545C;

  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --r: clamp(28px, 5vw, 72px);
  --pad: clamp(64px, 10vw, 140px);
  --gutter: clamp(20px, 5vw, 64px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--night); color: var(--night); font: 400 1.125rem/1.6 var(--body); }
h1, h2, h3, p, ul, figure { margin: 0; }
a { color: inherit; text-underline-offset: .18em; text-decoration-thickness: .08em; }
:focus-visible { outline: 3px solid currentColor; outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(100% - 2 * var(--gutter), 1180px); margin-inline: auto; position: relative; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--day); color: var(--night); padding: 10px 16px; border-radius: 999px; z-index: 20; }
.skip:focus { left: 8px; }

/* ---------- tones ---------- */
.t-night { background: var(--night); color: var(--day); --accent: var(--sun); --soft: rgba(248, 242, 233, .78); --line: rgba(248, 242, 233, .28); }
.t-dawn  { background: var(--dawn);  color: var(--night); --accent: var(--night); --soft: rgba(31, 45, 71, .86); --line: rgba(31, 45, 71, .3); }
.t-day   { background: var(--day);   color: var(--night); --accent: var(--rose-deep); --soft: rgba(31, 45, 71, .82); --line: rgba(31, 45, 71, .22); }
.t-sun   { background: var(--sun);   color: var(--night); --accent: var(--night); --soft: rgba(31, 45, 71, .9); --line: rgba(31, 45, 71, .35); }
.t-moss  { background: var(--moss);  color: var(--day); --accent: var(--sun); --soft: rgba(248, 242, 233, .86); --line: rgba(248, 242, 233, .3); }

/* ---------- bands: each one rises over the last like a horizon ---------- */
.band { position: relative; border-radius: var(--r) var(--r) 0 0; margin-top: calc(-1 * var(--r)); padding: var(--pad) 0 calc(var(--pad) + var(--r)); }
main > .band:first-child { border-radius: 0; margin-top: 0; padding-top: calc(var(--pad) + 72px); }
.foot.band { padding-bottom: 48px; }

/* ---------- type ---------- */
h1, h2, h3, .big, .foot-claim, .wordmark, .play-q { font-family: var(--display); font-weight: 600; letter-spacing: -.015em; }
h2 { font-size: clamp(2rem, 4.4vw, 3.4rem); line-height: 1.05; text-wrap: balance; }
h3 { font-size: clamp(1.4rem, 2.2vw, 1.75rem); line-height: 1.15; margin-bottom: .5em; }
p { max-width: 62ch; }
p + p { margin-top: 1em; }
.band p, .band li { color: var(--soft); }
.band h2 + p { margin-top: 1em; }

.page-h { font-size: clamp(2.6rem, 7.2vw, 6rem); line-height: .98; max-width: 14ch; text-wrap: balance; }
.lead { font-size: clamp(1.2rem, 2vw, 1.5rem); line-height: 1.45; margin-top: 1.4em; max-width: 34ch; color: inherit !important; }
.pagehead { overflow: hidden; }
.pagehead .wrap { min-height: 38vh; display: flex; flex-direction: column; justify-content: flex-end; }

.split { display: grid; gap: clamp(20px, 4vw, 56px); }
@media (min-width: 860px) { .split { grid-template-columns: 5fr 7fr; align-items: start; } }
.split-b { font-size: 1.15rem; }

/* ---------- buttons ---------- */
.btn { display: inline-block; padding: .85em 1.5em; border-radius: 999px; font-weight: 600; font-size: 1rem; line-height: 1.2; text-decoration: none; border: 2px solid currentColor; transition: transform .15s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-solid { background: var(--accent); border-color: var(--accent); color: var(--day); }
.t-night .btn-solid, .t-moss .btn-solid { color: var(--night); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 2em; max-width: none; }
.more { margin-top: 2em; }

/* ---------- header ---------- */
.site-head { position: absolute; inset: 0 0 auto 0; z-index: 10; padding-top: 22px; }
.on-night, .on-moss { color: var(--day); }
.on-dawn, .on-day, .on-sun { color: var(--night); }
.head-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.wordmark { font-size: 1.35rem; text-decoration: none; }
.nav { display: flex; flex-wrap: wrap; gap: 6px 22px; align-items: center; font-size: .98rem; }
.nav a { text-decoration: none; padding: 6px 0; }
.nav a:hover, .nav a[aria-current] { text-decoration: underline; }
.lang { border: 1.5px solid currentColor; border-radius: 999px; padding: 4px 12px !important; font-weight: 600; text-decoration: none; }
.nav-toggle { display: none; font: 600 1rem var(--body); color: inherit; background: none; border: 1.5px solid currentColor; border-radius: 999px; padding: 8px 16px; cursor: pointer; }
@media (max-width: 899px) {
  .js .nav-toggle { display: block; }
  .js .nav { display: none; position: absolute; left: var(--gutter); right: var(--gutter); top: 74px; flex-direction: column; align-items: flex-start; gap: 4px; background: var(--day); color: var(--night); padding: 20px 24px; border-radius: 24px; box-shadow: 0 18px 50px rgba(15, 22, 38, .35); font-size: 1.15rem; }
  .js .nav.open { display: flex; }
  .js .nav .lang { margin-top: 10px; }
  html:not(.js) .head-row { flex-direction: column; align-items: flex-start; }
}

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; min-height: 100svh; display: flex; align-items: center; padding: 130px 0 calc(var(--r) + 90px); }
.hero .wrap { z-index: 1; }
.hero-h { font-size: clamp(3.3rem, 11.5vw, 9.5rem); line-height: .92; letter-spacing: -.03em; }
.hero-sub { margin-top: 1.6em; max-width: 36ch; font-size: clamp(1.1rem, 1.7vw, 1.35rem); line-height: 1.5; color: var(--day); }
.sun { position: absolute; width: min(78vmin, 760px); aspect-ratio: 1; border-radius: 50%; right: -8vmin; bottom: -24vmin;
  background: radial-gradient(circle at 50% 45%, var(--sun) 0 34%, #EE9A6B 58%, var(--dawn) 78%, rgba(230, 184, 176, .0) 100%);
  box-shadow: 0 0 120px 40px rgba(230, 184, 176, .22); animation: rise 2.2s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes rise { from { transform: translateY(46%); opacity: .25; } to { transform: none; opacity: 1; } }
@media (max-width: 700px) { .sun { width: 92vmin; right: -30vmin; bottom: -44vmin; } .hero { align-items: flex-start; padding-top: 120px; padding-bottom: 46vmin; } }
.gate { min-height: 100vh; }

/* ---------- motifs (the disc) ---------- */
.motif { --s: clamp(72px, 10vw, 120px); display: flex; align-items: center; height: var(--s); margin-bottom: 28px; }
.motif i { display: block; flex: none; width: var(--s); height: var(--s); border-radius: 50%; }
.motif-one i { background: var(--sun); box-shadow: 0 0 0 10px rgba(243, 182, 63, .25), 0 0 0 22px rgba(243, 182, 63, .12); }
.motif-two i { background: var(--sun); }
.motif-two i + i { background: var(--dawn); margin-left: calc(var(--s) * -.32); opacity: .92; }
.t-dawn .motif-one i { background: var(--night); box-shadow: 0 0 0 10px rgba(31, 45, 71, .18), 0 0 0 22px rgba(31, 45, 71, .08); }
.t-day .motif-two i + i { background: var(--rose-deep); }
.t-sun .motif-two i:first-child { background: var(--night); }
.t-sun .motif-two i + i { background: var(--day); }
.motif-gap { --s: auto; height: clamp(110px, 16vw, 200px); justify-content: center; gap: clamp(18px, 4vw, 48px); margin: clamp(40px, 6vw, 72px) 0; }
.motif-gap i { width: auto; height: 100%; aspect-ratio: 1 / 2; border-radius: 999px 0 0 999px; background: var(--night); }
.motif-gap i + i { border-radius: 0 999px 999px 0; background: var(--sun); animation: breathe 5s ease-in-out infinite alternate; }
.motif-gap i:first-child { animation: breathe-l 5s ease-in-out infinite alternate; }
.t-night .motif-gap i:first-child { background: var(--dawn); }
@keyframes breathe { to { transform: translateX(14px); } }
@keyframes breathe-l { to { transform: translateX(-14px); } }
.pagehead .motif { --s: clamp(90px, 16vw, 220px); position: absolute; right: 0; top: -20px; margin: 0; }
@media (max-width: 700px) { .pagehead .motif { --s: 84px; position: static; margin-bottom: 32px; } }

/* ---------- duo ---------- */
.duo-h { margin-bottom: clamp(32px, 5vw, 64px); max-width: 18ch; }
.duo { display: grid; gap: clamp(36px, 6vw, 88px); }
@media (min-width: 760px) { .duo { grid-template-columns: 1fr 1fr; } }
.duo-col h3 { font-size: clamp(1.9rem, 4vw, 3rem); line-height: 1; margin-bottom: .6em; }
.duo-twist .duo-col:first-child h3 { opacity: .55; text-decoration: line-through; text-decoration-thickness: 3px; }
.duo-twist .duo-col + .duo-col h3 { color: var(--accent); }
.after { margin-top: clamp(36px, 5vw, 64px); font-size: 1.2rem; }

/* ---------- steps / qualities ---------- */
.steps { display: grid; gap: clamp(28px, 4vw, 48px); }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { border-top: 2px solid currentColor; padding-top: 20px; }
.eg { margin-top: 1em; font-size: 1rem; padding-left: 16px; border-left: 3px solid var(--accent); }
.note { margin-top: clamp(28px, 4vw, 44px); font-family: var(--display); font-size: clamp(1.25rem, 2.2vw, 1.6rem); line-height: 1.3; color: inherit !important; max-width: 30ch; }
.quals { display: grid; gap: clamp(28px, 4vw, 56px) clamp(32px, 6vw, 96px); margin-top: clamp(40px, 6vw, 72px); }
@media (min-width: 700px) { .quals { grid-template-columns: 1fr 1fr; } }
.qual h3 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); color: var(--accent); margin-bottom: .3em; }

/* ---------- lists ---------- */
.lines { list-style: none; padding: 0; }
.lines li { padding: 16px 0; border-top: 1px solid var(--line); }
.lines li:last-child { border-bottom: 1px solid var(--line); }

/* ---------- big statement ---------- */
.band-big { padding-block: clamp(80px, 13vw, 190px) calc(clamp(80px, 13vw, 190px) + var(--r)); }
.big { font-size: clamp(2.6rem, 8.6vw, 7.4rem); line-height: .96; letter-spacing: -.03em; max-width: 12ch; color: inherit !important; text-wrap: balance; }
.big-sub { margin-top: 1.4em; font-size: 1.2rem; }

/* ---------- interactive moment ---------- */
.play { position: relative; margin-top: clamp(40px, 6vw, 72px); background: var(--night); color: var(--day); border-radius: clamp(24px, 4vw, 48px); padding: clamp(28px, 5vw, 64px); overflow: hidden; }
.play p { color: var(--day); }
.play-disc { position: absolute; width: 300px; aspect-ratio: 1; border-radius: 50%; right: -110px; top: -130px; background: radial-gradient(circle, var(--sun) 0 40%, var(--dawn) 75%, transparent 100%); transition: transform .9s cubic-bezier(.2, .7, .2, 1); }
.play.on .play-disc { transform: scale(1.5); }
@media (max-width: 700px) { .play-disc { width: 150px; right: -70px; top: -85px; } .play { padding-top: 72px; } .play.on .play-disc { transform: scale(1.12); } }
.play-q { position: relative; font-size: clamp(1.7rem, 3.8vw, 2.8rem); line-height: 1.08; max-width: 16ch; }
.play-opts { position: relative; display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.chip { font: 600 1rem/1.2 var(--body); color: var(--day); background: transparent; border: 2px solid rgba(248, 242, 233, .55); border-radius: 999px; padding: .75em 1.2em; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.chip:hover { border-color: var(--day); }
.chip[aria-pressed="true"] { background: var(--sun); border-color: var(--sun); color: var(--night); }
.play-out { position: relative; margin-top: 32px; min-height: 7.5em; }
.play-a { font-size: clamp(1.15rem, 1.9vw, 1.4rem); line-height: 1.5; max-width: 40ch; }
.play-a:not([hidden]) { animation: arrive .6s ease both; }
@keyframes arrive { from { opacity: 0; transform: translateY(8px); } }
.play-idle { opacity: .7; }
.play-note { position: relative; font-size: .9rem; opacity: .7; margin-top: 12px; }

/* ---------- cta, slot, contact, legal ---------- */
.cta h2 { font-size: clamp(2.2rem, 5.4vw, 4.4rem); max-width: 16ch; }
.cta p { font-size: 1.2rem; }
.slot { max-width: 860px; }
.slot-box { aspect-ratio: 16 / 9; border: 2px dashed var(--line); border-radius: clamp(20px, 3vw, 40px); display: grid; place-items: center; padding: 24px; text-align: center; font-weight: 600; background: repeating-linear-gradient(135deg, transparent 0 18px, rgba(127, 127, 127, .07) 18px 36px); }
.slot figcaption { margin-top: 12px; font-size: .95rem; color: var(--soft); }
.contact-k { font-size: 1rem; font-weight: 600; margin-top: 1.6em; color: inherit !important; }
.contact-v { font-family: var(--display); font-size: clamp(1.7rem, 5.4vw, 4rem); line-height: 1.1; margin-top: .1em; max-width: none; overflow-wrap: anywhere; color: inherit !important; }
.contact-v a { text-decoration-thickness: 3px; text-decoration-color: var(--accent); }
.legal { max-width: 68ch; }
.legal h2 { font-size: 1.6rem; margin: 1.8em 0 .5em; }
.legal mark { background: var(--sun); color: var(--night); padding: 0 .3em; border-radius: 4px; }
.legal ul { padding-left: 1.2em; margin-top: 1em; }

/* ---------- person ---------- */
.person { max-width: 380px; }
.person img { display: block; width: 100%; height: auto; border-radius: 50%; box-shadow: 0 0 0 10px rgba(243, 182, 63, .9), 0 0 0 24px rgba(230, 184, 176, .35); margin: 24px; width: calc(100% - 48px); }
.person figcaption { margin-top: 28px; display: grid; gap: 2px; }
.person strong { font-family: var(--display); font-weight: 600; font-size: 1.5rem; }
.person span { color: var(--accent); font-weight: 600; }
.band-person h2 { margin-bottom: .6em; }

/* ---------- footer ---------- */
.foot-claim { font-size: clamp(1.5rem, 3.6vw, 2.6rem); line-height: 1.1; color: var(--day) !important; max-width: 20ch; }
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); }
.foot-nav { display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; font-size: .98rem; }
.foot-nav a { text-decoration: none; }
.foot-nav a:hover { text-decoration: underline; }
.foot-small { margin-top: 28px; font-size: .9rem; max-width: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
