/* ===========================================================
   convive · site — design tokens & base
   Paleta terrosa: creme dominante, terracota acento, grafite texto
   =========================================================== */
:root {
  /* core palette */
  --ink:        #2A2623;
  --ink-soft:   #5E544B;
  --ink-faint:  #8A7E72;

  --terra:      #C36A4D;
  --terra-deep: #A4502F;
  --terra-700:  #B65E40;
  --peach:      #E7C1A4;
  --peach-soft: #F0D9C6;

  --sand:       #EADCC8;
  --cream:      #F2E8D9;
  --paper:      #FAF4EA;
  --white:      #FFFDF8;
  --line:       #E5D8C6;
  --line-soft:  #EEE4D5;

  /* functional, earthy */
  --waiting:    #CF8A3A;
  --done:       #74815A;
  --active:     #C36A4D;

  /* type */
  --serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --sans:  'Hanken Grotesk', system-ui, -apple-system, sans-serif;
  --mono:  'JetBrains Mono', ui-monospace, monospace;

  /* rhythm */
  --maxw: 1200px;
  --radius: 18px;
  --radius-lg: 26px;
  --shadow-sm: 0 2px 8px rgba(42,38,35,0.06);
  --shadow-md: 0 16px 40px -20px rgba(42,38,35,0.28), 0 2px 6px rgba(42,38,35,0.05);
  --shadow-lg: 0 36px 80px -36px rgba(42,38,35,0.42), 0 4px 12px rgba(42,38,35,0.06);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 90px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
::selection { background: var(--terra); color: var(--paper); }

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

h1, h2, h3 { margin: 0; font-weight: 400; letter-spacing: -0.015em; }
p { margin: 0; }

/* brand wordmark */
.wordmark {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 0.9;
  white-space: nowrap;
}

/* shared layout */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 32px; }
.eyebrow {
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--terra-deep);
}
.serif-display {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.04;
}

/* scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1);
}
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 0;
  border-radius: 999px;
  padding: 14px 24px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: transform .18s cubic-bezier(.2,.7,.2,1), background .18s, color .18s, box-shadow .18s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn-primary { background: var(--terra); color: var(--paper); box-shadow: 0 8px 20px -10px rgba(195,106,77,.7); }
.btn-primary:hover { background: var(--terra-deep); transform: translateY(-2px); box-shadow: 0 14px 28px -12px rgba(164,80,47,.75); }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: #1c1916; transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: var(--ink); transform: translateY(-2px); }
.btn-lg { padding: 17px 30px; font-size: 16.5px; }

/* section scaffolding */
.section { padding: clamp(40px, 6vh, 72px) 0; position: relative; }
.section-cream { background: var(--cream); }
.section-paper { background: var(--paper); }
.section-terra { background: var(--terra); color: var(--paper); }
.section-ink  { background: var(--ink); color: var(--paper); }

.sec-head { max-width: 740px; }
.sec-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(34px, 4.6vw, 58px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-top: 18px;
}
.sec-lead {
  font-size: clamp(17px, 1.5vw, 20px);
  color: var(--ink-soft);
  line-height: 1.55;
  margin-top: 20px;
  max-width: 600px;
}
.section-terra .sec-lead, .section-ink .sec-lead { color: rgba(250,244,234,.82); }
.section-terra .eyebrow { color: var(--paper); opacity: .8; }

em.it { font-style: italic; }

/* utility cards */
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.dim { color: var(--ink-soft); }
.tnum { font-variant-numeric: tabular-nums; }

/* responsive base */
@media (max-width: 720px) {
  body { font-size: 16px; }
  .wrap { padding: 0 20px; }
  .section { padding: clamp(36px, 5vh, 60px) 0; }
}

/* ── scroll progress bar ── */
#scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: linear-gradient(90deg, var(--terra), var(--terra-deep));
  z-index: 200; transition: width .08s linear;
  box-shadow: 0 0 10px rgba(195,106,77,.5);
}

/* ── kinetic brand ribbon (marquee) ── */
.marquee {
  background: var(--terra); color: var(--paper);
  overflow: hidden; white-space: nowrap; padding: 18px 0;
  border-top: 1px solid rgba(250,244,234,.18); border-bottom: 1px solid rgba(250,244,234,.18);
}
.marquee-track { display: inline-flex; align-items: center; gap: 0; animation: marquee 26s linear infinite; will-change: transform; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item {
  display: inline-flex; align-items: center; gap: 26px; padding-right: 26px;
  font-family: var(--serif); font-style: italic; font-weight: 500;
  font-size: clamp(20px, 2.4vw, 32px); letter-spacing: -.01em;
}
.marquee-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--paper); opacity: .7; flex-shrink: 0; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ── idle float on hero center phone ── */
@keyframes floatY { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.phone-float { animation: floatY 5.5s ease-in-out infinite; }

/* ── soft sheen sweep on terracotta CTA band ── */
@keyframes sheen { 0% { transform: translateX(-120%); } 60%,100% { transform: translateX(120%); } }

/* ── nav logo: smiles + i-dot hops every 10s ── */
@keyframes cvHop {
  0%      { transform: translateY(0); }
  3%      { transform: translateY(-0.62em) scaleY(1.12); }
  6.5%    { transform: translateY(0) scaleX(1.18) scaleY(0.78); }
  9.5%    { transform: translateY(-0.16em); }
  12.5%   { transform: translateY(0); }
  100%    { transform: translateY(0); }
}
.cv-idot { animation: cvHop 10s ease-in-out infinite; transform-origin: 50% 100%; }
@keyframes cvSmile {
  0%   { transform: scaleY(1); }
  4%   { transform: scaleY(1.5); }
  9%   { transform: scaleY(0.95); }
  13%  { transform: scaleY(1); }
  100% { transform: scaleY(1); }
}
.cv-asmile { transform-origin: 50% 0%; animation: cvSmile 10s ease-in-out infinite; }

@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
  .phone-float { animation: none; }
  #scroll-progress { transition: none; }
  .cv-idot, .cv-asmile { animation: none !important; }
}
