/* ============================================================
   CouVibe Studios — brand development & design
   Aesthetic: refined luxury / editorial. Warm greige palette,
   Cormorant Garamond display + Jost body. Restraint over noise.
   ============================================================ */

:root {
  --ivory:    #F4EFE7;
  --cream:    #ECE5D8;
  --paper:    #FBF9F4;
  --ink:      #2B2724;
  --ink-soft: #6F665B;
  --clay:     #9A7F69;
  --clay-lt:  #C9B7A2;
  --sage:     #8C9484;
  --dune:     #BBA98C;
  --line:     rgba(43, 39, 36, 0.14);
  --line-soft:rgba(43, 39, 36, 0.07);

  --maxw: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --r: 14px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: "Jost", system-ui, sans-serif;
  font-weight: 300;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  /* faint paper grain */
  background-image:
    radial-gradient(circle at 18% 12%, rgba(201,183,162,0.18), transparent 42%),
    radial-gradient(circle at 88% 78%, rgba(140,148,132,0.12), transparent 46%);
  background-attachment: fixed;
}

h1, h2, h3, .section-title {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.01em;
  margin: 0;
}

em { font-style: italic; }

a { color: inherit; text-decoration: none; }

.eyebrow {
  font-size: 0.74rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--clay);
  font-weight: 400;
  margin: 0 0 1.1rem;
}
.eyebrow--light { color: var(--clay-lt); }

/* ---------- top marquee ---------- */
.topbar {
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: var(--cream);
}
.topbar__track {
  display: flex;
  gap: 1.4rem;
  white-space: nowrap;
  padding: 0.5rem 0;
  font-size: 0.7rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-soft);
  width: max-content;
  animation: marquee 34s linear infinite;
}
.topbar__track .dot { color: var(--clay); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.1rem clamp(1.2rem, 4vw, 3rem);
  background: rgba(244, 239, 231, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-soft);
}
.nav__brand { display: flex; align-items: center; gap: 0.7rem; }
.nav__mark {
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.1rem;
  letter-spacing: 0.04em;
}
.nav__name {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.35rem;
  letter-spacing: 0.02em;
}
.nav__links { display: flex; gap: 1.9rem; }
.nav__links a {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  position: relative;
  padding-bottom: 2px;
  transition: color 0.3s var(--ease);
}
.nav__links a::after {
  content: "";
  position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--clay);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after { transform: scaleX(1); }
.nav__cta {
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0.6rem 1.2rem;
  border: 1px solid var(--ink);
  border-radius: 100px;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}
.nav__cta:hover { background: var(--ink); color: var(--ivory); }

/* ---------- buttons ---------- */
.btn {
  font-family: "Jost", sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0.85rem 1.6rem;
  border-radius: 100px;
  cursor: pointer;
  border: 1px solid var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn--solid { background: var(--ink); color: var(--ivory); }
.btn--solid:hover { background: #3a352f; }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--ivory); }
.btn--block { width: 100%; justify-content: center; }
.btn__icon {
  width: 8px; height: 8px; border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 4px rgba(154,127,105,0.25);
}

/* ---------- HERO ---------- */
.hero {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(3rem, 9vh, 7rem) clamp(1.2rem, 4vw, 3rem) clamp(3rem, 7vh, 5rem);
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.hero__title {
  font-size: clamp(2.8rem, 6.4vw, 5.4rem);
  margin: 0 0 1.6rem;
}
.hero__title em { color: var(--clay); }
.hero__lede {
  max-width: 30rem;
  color: var(--ink-soft);
  margin: 0 0 2.2rem;
}
.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero__stats {
  display: flex;
  gap: 2.6rem;
  margin: 3rem 0 0;
  padding-top: 1.8rem;
  border-top: 1px solid var(--line);
}
.hero__stats div dt {
  font-family: "Cormorant Garamond", serif;
  font-size: 2rem;
  line-height: 1;
}
.hero__stats div dd {
  margin: 0.35rem 0 0;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.hero__col--art { position: relative; min-height: 380px; }
.monogram {
  position: absolute;
  top: -28px; right: -10px;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(9rem, 16vw, 15rem);
  line-height: 0.8;
  color: transparent;
  -webkit-text-stroke: 1px var(--clay-lt);
  opacity: 0.7;
  z-index: 0;
  user-select: none;
}
.card--plan {
  position: relative;
  z-index: 1;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 2rem 1.9rem;
  box-shadow: 0 30px 60px -34px rgba(43,39,36,0.4);
  max-width: 360px;
  margin-left: auto;
}
.card__kicker {
  font-size: 0.72rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--clay);
  margin: 0 0 0.8rem;
}
.card__title {
  font-size: 1.7rem;
  margin: 0 0 1.4rem;
}
.card__list { list-style: none; margin: 0 0 1.5rem; padding: 0; }
.card__list li {
  display: flex;
  align-items: baseline;
  gap: 0.8rem;
  padding: 0.6rem 0;
  border-top: 1px solid var(--line-soft);
  font-size: 0.95rem;
  color: var(--ink-soft);
}
.card__list li span {
  font-family: "Cormorant Garamond", serif;
  color: var(--clay);
  font-size: 1rem;
}
.card__sign {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: 1.2rem;
  margin: 0;
  color: var(--ink);
}
.swatches {
  position: absolute;
  bottom: -22px; left: -14px;
  display: flex;
  gap: 8px;
  z-index: 2;
}
.swatches span {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--s);
  border: 2px solid var(--paper);
  box-shadow: 0 6px 14px -6px rgba(43,39,36,0.5);
}

/* ---------- generic section heads ---------- */
section { scroll-margin-top: 80px; }
.section-head { max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(1.2rem,4vw,3rem); }
.section-head--row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  flex-wrap: wrap;
}
.section-title { font-size: clamp(2.1rem, 4.4vw, 3.6rem); }
.section-note { max-width: 22rem; color: var(--ink-soft); margin: 0; }

/* ---------- SERVICES ---------- */
.services {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(4rem, 9vh, 7rem) clamp(1.2rem, 4vw, 3rem);
}
.services__grid {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}
.service {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  min-height: 220px;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), background 0.4s var(--ease);
}
.service--tall { grid-row: span 2; justify-content: space-between; }
.service--wide { grid-column: span 2; }
.service:hover {
  transform: translateY(-4px);
  box-shadow: 0 28px 50px -30px rgba(43,39,36,0.4);
}
.service__no {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.1rem;
  color: var(--clay);
  letter-spacing: 0.1em;
}
.service h3 {
  font-size: 1.9rem;
  margin: 0.7rem 0 0.6rem;
}
.service p { margin: 0; color: var(--ink-soft); font-size: 0.96rem; }
.service__tag {
  margin-top: auto;
  padding-top: 1.2rem;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--clay);
}

/* ---------- WORK ---------- */
.work {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(2rem, 5vh, 4rem) clamp(1.2rem, 4vw, 3rem) clamp(4rem,9vh,7rem);
}
.work__grid {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.6rem 1.4rem;
}
.project:nth-child(even) { transform: translateY(2.4rem); }
.project__frame {
  border-radius: var(--r);
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform 0.5s var(--ease);
}
.project:hover .project__frame { transform: scale(1.012); }
.project__frame[data-hue="sage"] { background: linear-gradient(150deg, #8C9484, #aeb3a4); }
.project__frame[data-hue="clay"] { background: linear-gradient(150deg, #9A7F69, #c4a98e); }
.project__frame[data-hue="ink"]  { background: linear-gradient(150deg, #2B2724, #4c453d); }
.project__frame[data-hue="dune"] { background: linear-gradient(150deg, #BBA98C, #d8c8ac); }
.project__logo {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  letter-spacing: 0.12em;
  color: var(--paper);
  mix-blend-mode: soft-light;
  opacity: 0.95;
}
.project__frame[data-hue="ink"] .project__logo { mix-blend-mode: normal; color: var(--cream); }
.project__meta { padding: 1rem 0.2rem 0; }
.project__meta h3 { font-size: 1.6rem; }
.project__meta p { margin: 0.2rem 0 0; color: var(--ink-soft); font-size: 0.9rem; }

/* ---------- PROCESS ---------- */
.process {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(4rem, 9vh, 7rem) clamp(1.2rem, 4vw, 3rem);
}
.steps {
  margin: 3rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
  counter-reset: step;
}
.steps li {
  border-top: 2px solid var(--ink);
  padding-top: 1.2rem;
}
.steps__no {
  font-family: "Cormorant Garamond", serif;
  font-size: 2.6rem;
  color: var(--clay-lt);
  line-height: 1;
}
.steps li h3 { font-size: 1.5rem; margin: 0.6rem 0 0.5rem; }
.steps li p { margin: 0; color: var(--ink-soft); font-size: 0.92rem; }

/* ---------- STUDIO ---------- */
.studio {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(2rem,5vh,4rem) clamp(1.2rem, 4vw, 3rem) clamp(4rem,9vh,7rem);
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.studio__body { color: var(--ink-soft); max-width: 34rem; }
.studio__quote {
  margin: 2rem 0 0;
  padding-left: 1.4rem;
  border-left: 2px solid var(--clay);
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: 1.6rem;
  line-height: 1.3;
}
.studio__quote cite {
  display: block;
  margin-top: 0.8rem;
  font-family: "Jost", sans-serif;
  font-style: normal;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.studio__plate {
  background: var(--ink);
  color: var(--ivory);
  border-radius: var(--r);
  aspect-ratio: 1;
  display: grid;
  place-content: center;
  text-align: center;
  gap: 1rem;
  padding: 2rem;
  box-shadow: 0 40px 70px -40px rgba(43,39,36,0.7);
}
.studio__plate-mark {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(4rem, 10vw, 7rem);
  line-height: 0.8;
}
.studio__plate p {
  margin: 0;
  font-size: 0.74rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--clay-lt);
}

/* ---------- DIGIDOLLS (featured product) ---------- */
.digidoll {
  background: var(--cream);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.digidoll__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(4rem, 9vh, 7rem) clamp(1.2rem, 4vw, 3rem);
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.digidoll__lede {
  color: var(--ink-soft);
  max-width: 34rem;
  margin: 0 0 1.6rem;
}
.digidoll__features {
  list-style: none;
  margin: 0 0 2.2rem;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}
.digidoll__features li {
  display: flex;
  align-items: baseline;
  gap: 0.7rem;
  font-size: 0.96rem;
  color: var(--ink);
}
.digidoll__features li span { color: var(--clay); font-size: 0.8rem; }

.digidoll__tiers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.tier {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 1.5rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.tier--feature {
  border-color: var(--clay);
  box-shadow: 0 28px 50px -34px rgba(43, 39, 36, 0.5);
}
.tier__flag {
  position: absolute;
  top: -0.7rem; right: 1.1rem;
  background: var(--clay);
  color: var(--paper);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.25rem 0.7rem;
  border-radius: 100px;
}
.tier h3 { font-size: 1.5rem; }
.tier__price {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.5rem;
  color: var(--clay);
  margin: 0;
}
.tier__note { margin: 0 0 0.4rem; color: var(--ink-soft); font-size: 0.88rem; }
.btn--sm {
  margin-top: auto;
  padding: 0.6rem 1.1rem;
  font-size: 0.68rem;
  justify-content: center;
}

.digidoll__media { position: relative; }
.digidoll__video {
  width: 100%;
  display: block;
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: var(--ink);
  aspect-ratio: 9 / 16;
  max-height: 560px;
  object-fit: cover;
  box-shadow: 0 40px 80px -44px rgba(43, 39, 36, 0.6);
}
.digidoll__badge {
  position: absolute;
  left: 1rem; bottom: 1rem;
  background: rgba(43, 39, 36, 0.82);
  color: var(--ivory);
  backdrop-filter: blur(6px);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0.4rem 0.8rem;
  border-radius: 100px;
}

/* ---------- CONTACT ---------- */
.contact {
  background: var(--ink);
  color: var(--ivory);
  margin-top: 2rem;
}
.contact__inner {
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(4rem,10vh,7rem) clamp(1.2rem,4vw,3rem);
  text-align: center;
}
.contact__title {
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  margin: 0 0 1.2rem;
}
.contact__sub {
  max-width: 38rem;
  margin: 0 auto 2.5rem;
  color: rgba(244, 239, 231, 0.72);
  font-size: 0.98rem;
}
.contact__form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  text-align: left;
}
.field { display: flex; flex-direction: column; gap: 0.5rem; }
.field--full { grid-column: 1 / -1; }
.field label {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--clay-lt);
}
.field input, .field textarea, .field select {
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(244,239,231,0.3);
  color: var(--ivory);
  font-family: "Jost", sans-serif;
  font-weight: 300;
  font-size: 1rem;
  padding: 0.6rem 0;
  resize: vertical;
  transition: border-color 0.3s var(--ease);
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-bottom-color: var(--clay-lt);
}
/* native select on a dark field — keep the chevron, theme the menu */
.field select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--clay-lt) 50%),
                    linear-gradient(135deg, var(--clay-lt) 50%, transparent 50%);
  background-position: right 0.2rem center, right calc(0.2rem - 5px) center;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 1.4rem;
}
.field select option { color: var(--ink); background: var(--paper); }
.field__opt { color: rgba(244,239,231,0.45); letter-spacing: 0.04em; }
.field input::placeholder, .field textarea::placeholder { color: rgba(244,239,231,0.35); }
.field__error {
  font-size: 0.74rem;
  color: #e0a98f;
  min-height: 1em;
  letter-spacing: 0.02em;
}
.contact__form .btn { grid-column: 1 / -1; margin-top: 0.6rem; border-color: var(--ivory); }
.contact__form .btn--solid { background: var(--ivory); color: var(--ink); }
.contact__form .btn--solid:hover { background: var(--cream); }
.contact__success {
  grid-column: 1 / -1;
  text-align: center;
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: 1.3rem;
  color: var(--clay-lt);
  margin: 0.4rem 0 0;
}
.contact__error {
  grid-column: 1 / -1;
  text-align: center;
  font-size: 0.9rem;
  color: #e0a98f;
  margin: 0.4rem 0 0;
}

/* ---------- FOOTER ---------- */
.footer {
  text-align: center;
  padding: 3rem 1.5rem;
  display: grid;
  gap: 0.6rem;
  place-items: center;
}
.footer__brand {
  display: flex; align-items: center; gap: 0.6rem;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.3rem;
}
.footer__brand .nav__mark { width: 32px; height: 32px; font-size: 0.95rem; }
.footer__line { margin: 0; color: var(--ink-soft); font-size: 0.9rem; }
.footer__small {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--clay);
}
.footer__build {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  padding: 0.5rem 1.1rem;
  border: 1px solid var(--ink);
  border-radius: 100px;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}
.footer__build:hover { background: var(--ink); color: var(--ivory); }

/* ============================================================
   AVATAR GUIDE
   ============================================================ */
.avatar-stage {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none; /* clicks pass through to send-walk handler on window */
}
.avatar {
  position: absolute;
  left: 0; top: 0;
  width: 108px;   /* a larger, more present guide; the rig inside is all % so it scales cleanly */
  /* JS drives translate via --x / --y */
  transform: translate3d(var(--x, 40px), var(--y, 60vh), 0);
  will-change: transform;
}
.avatar__body {
  position: relative;
  width: 100%;
  aspect-ratio: 374 / 1273;   /* matches assets/avatar.png */
  transform-origin: bottom center;
  /* facing flip only — the idle bob lives on the rig inside, so it never
     fights this scaleX the way a combined transform would. */
  transform: scaleX(var(--face, 1));
}
/* The rig holds the cut-out parts and carries the gentle idle bob of the
   whole body. */
.avatar__rig {
  position: absolute;
  inset: 0;
  filter: drop-shadow(0 16px 16px rgba(43,39,36,0.18));
}
.avatar__top,
.avatar__leg {
  position: absolute;
  display: block;
}
/* head + torso + hips. Drawn over the leg tops (z above) so the hip joints
   the legs pivot from stay hidden. 850 / 1273 of the figure's height. */
.avatar__top {
  top: 0; left: 0;
  width: 100%;
  height: 66.77%;
  z-index: 3;
}
/* Each leg reaches from the hip line down to the floor (573 / 1273 tall,
   starting at 700 / 1273). They stay planted — she stands, she doesn't walk. */
.avatar__leg {
  top: 54.99%;
  height: 45.01%;
}
.avatar__leg--l { left: 0;      width: 50.27%; z-index: 2; }
.avatar__leg--r { left: 50.27%; width: 49.73%; z-index: 1; }

/* idle — both feet planted, a slow breath-like bob */
.avatar__rig { animation: idleBob 2.4s var(--ease) infinite; }
@keyframes idleBob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-3px); }
}

.avatar__shadow {
  position: absolute;
  left: 50%; bottom: -6px;
  width: 60%; height: 14px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(43,39,36,0.26), transparent 70%);
  border-radius: 50%;
  z-index: -1;
}

/* speech bubble */
.avatar__bubble {
  position: absolute;
  left: 50%; bottom: calc(100% - 6px);
  transform: translate(-50%, 8px) scale(0.9);
  width: max-content;
  max-width: 240px;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.7rem 0.95rem;
  font-size: 0.84rem;
  line-height: 1.4;
  box-shadow: 0 18px 40px -22px rgba(43,39,36,0.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}
.avatar__bubble::after {
  content: "";
  position: absolute;
  left: 50%; top: 100%;
  transform: translateX(-50%);
  border: 7px solid transparent;
  border-top-color: var(--paper);
}
.avatar.show-bubble .avatar__bubble {
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
}

/* onboarding hint */
.hint {
  position: fixed;
  z-index: 70;
  left: 50%; bottom: 26px;
  transform: translateX(-50%);
  background: var(--ink);
  color: var(--ivory);
  border-radius: 14px;
  padding: 1rem 1.2rem;
  max-width: 440px;
  display: grid;
  gap: 0.35rem;
  box-shadow: 0 24px 50px -24px rgba(43,39,36,0.7);
  animation: hintIn 0.6s var(--ease) both;
}
@keyframes hintIn { from { opacity: 0; transform: translate(-50%, 20px); } }
.hint.is-hidden { display: none; }
.hint strong { font-family: "Cormorant Garamond", serif; font-size: 1.25rem; font-weight: 500; }
.hint span { font-size: 0.86rem; color: rgba(244,239,231,0.78); }
.hint kbd {
  font-family: "Jost", sans-serif;
  background: rgba(244,239,231,0.14);
  border-radius: 5px;
  padding: 1px 6px;
  font-size: 0.78rem;
}
.hint em { color: var(--clay-lt); font-style: normal; }
.hint button {
  justify-self: start;
  margin-top: 0.4rem;
  background: var(--ivory);
  color: var(--ink);
  border: none;
  border-radius: 100px;
  padding: 0.4rem 1.1rem;
  font-family: "Jost", sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero__col--art { order: -1; min-height: 320px; }
  .studio { grid-template-columns: 1fr; }
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .service--tall { grid-row: auto; }
  .service--wide { grid-column: span 2; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .digidoll__inner { grid-template-columns: 1fr; }
  .digidoll__media { order: -1; max-width: 420px; }
}
@media (max-width: 680px) {
  body { font-size: 16px; }
  .nav__links { display: none; }
  .work__grid, .services__grid, .contact__form { grid-template-columns: 1fr; }
  .service--wide { grid-column: auto; }
  .project:nth-child(even) { transform: none; }
  .steps { grid-template-columns: 1fr; }
  .hero__stats { gap: 1.4rem; flex-wrap: wrap; }
  .digidoll__tiers { grid-template-columns: 1fr; }
  .avatar { width: 84px; }
}

@media (prefers-reduced-motion: reduce) {
  .topbar__track { animation: none; }
  .avatar__rig { animation: none !important; }
  html { scroll-behavior: auto; }
}
