/* NUVOY LLC — design system. No build step, no dependencies, no external requests. */

/* ─────────── fonts (self-hosted, works everywhere incl. mainland China) ─────────── */

@font-face {
  font-family: 'Fraunces';
  src: url('/assets/fonts/fraunces-latin.woff2') format('woff2-variations');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('/assets/fonts/inter-latin.woff2') format('woff2-variations');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

/* ─────────── tokens ─────────── */

:root {
  --bg:        #fbf8f6;   /* warm paper, not stark white */
  --surface:   #ffffff;
  --sunk:      #f3ece9;
  --ink:       #1a1416;   /* warm near-black */
  --muted:     #6e6167;
  --line:      #e7ddd9;
  --brand:     #b4436c;   /* deep rose */
  --brand-ink: #ffffff;
  --brand-deep:#7e2a49;
  --blush:     #f8eaef;
  --gold:      #c08a4e;

  --radius:    14px;
  --radius-lg: 22px;
  --maxw:      1140px;

  --shadow-sm: 0 1px 2px rgba(26,20,22,.05);
  --shadow:    0 2px 4px rgba(26,20,22,.04), 0 12px 32px -8px rgba(26,20,22,.10);
  --shadow-lg: 0 4px 8px rgba(26,20,22,.05), 0 24px 56px -12px rgba(126,42,73,.20);

  --display: 'Fraunces', Georgia, 'Songti SC', serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC',
          'Hiragino Sans GB', 'Microsoft YaHei', Roboto, Helvetica, Arial, sans-serif;

  --ease: cubic-bezier(.22,.61,.36,1);
  --ease-out: cubic-bezier(.16,1,.3,1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:        #14100f;
    --surface:   #1c1718;
    --sunk:      #241d1f;
    --ink:       #f4eeec;
    --muted:     #a99ba0;
    --line:      #322a2c;
    --brand:     #f090b0;
    --brand-ink: #2b0f1c;
    --brand-deep:#f8bdd0;
    --blush:     #2a1a21;
    --gold:      #dcae76;
    --shadow-sm: 0 1px 2px rgba(0,0,0,.4);
    --shadow:    0 2px 4px rgba(0,0,0,.3), 0 12px 32px -8px rgba(0,0,0,.5);
    --shadow-lg: 0 4px 8px rgba(0,0,0,.35), 0 24px 56px -12px rgba(0,0,0,.6);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 26px; }
.narrow { max-width: 780px; }

/* ─────────── cross-page view transitions (progressive enhancement) ─────────── */

@view-transition { navigation: auto; }

/* ─────────── header ─────────── */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.site-header.scrolled {
  border-bottom-color: var(--line);
  background: color-mix(in srgb, var(--bg) 94%, transparent);
}

.nav { display: flex; align-items: center; gap: 28px; height: 72px; }

.logo {
  font-family: var(--display);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: .01em;
  color: var(--ink);
  display: flex; align-items: center; gap: 10px;
}
.logo:hover { text-decoration: none; }

.logo-mark {
  width: 30px; height: 30px; border-radius: 50% 50% 50% 8px;
  background: linear-gradient(145deg, var(--brand), var(--gold));
  display: grid; place-items: center;
  color: #fff; font-size: 14px; font-weight: 700;
  font-family: var(--sans);
  transition: transform .5s var(--ease-out);
}
.logo:hover .logo-mark { transform: rotate(-12deg) scale(1.06); }

.nav-links { display: flex; gap: 26px; margin-left: auto; align-items: center; }
.nav-links a {
  color: var(--muted); font-size: 15px; font-weight: 500;
  position: relative; padding: 4px 0;
}
.nav-links a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0;
  height: 1.5px; background: var(--brand);
  transform: scaleX(0); transform-origin: right;
  transition: transform .4s var(--ease-out);
}
.nav-links a:hover { color: var(--ink); text-decoration: none; }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }

/* ─────────── buttons ─────────── */

.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 13px 26px; border-radius: 999px;
  font-size: 15px; font-weight: 600; font-family: var(--sans);
  border: 1px solid transparent; cursor: pointer;
  position: relative; overflow: hidden;
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out),
              background .3s var(--ease), color .3s var(--ease);
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary { background: var(--brand); color: var(--brand-ink); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--brand-deep); box-shadow: var(--shadow-lg); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }

/* ─────────── type ─────────── */

section { padding: 96px 0; position: relative; }
section.soft { background: var(--sunk); }

.eyebrow {
  font-size: 12.5px; font-weight: 600; letter-spacing: .16em;
  text-transform: uppercase; color: var(--brand);
  margin: 0 0 18px; display: flex; align-items: center; gap: 12px;
}
.eyebrow::after {
  content: ''; height: 1px; flex: 0 0 44px;
  background: linear-gradient(90deg, var(--brand), transparent);
}

h1 {
  font-family: var(--display);
  font-size: clamp(40px, 6.4vw, 76px);
  line-height: 1.04;
  letter-spacing: -.025em;
  font-weight: 500;
  margin: 0 0 24px;
  font-variation-settings: 'opsz' 120, 'SOFT' 20;
}
h1 em {
  font-style: italic; color: var(--brand);
  font-variation-settings: 'opsz' 144, 'SOFT' 60, 'WONK' 1;
}

h2 {
  font-family: var(--display);
  font-size: clamp(29px, 3.9vw, 42px);
  line-height: 1.15; letter-spacing: -.02em;
  font-weight: 500; margin: 0 0 18px;
  font-variation-settings: 'opsz' 72, 'SOFT' 16;
}

h3 {
  font-size: 18.5px; letter-spacing: -.008em;
  margin: 0 0 10px; font-weight: 600;
}

.lede { font-size: 19.5px; color: var(--muted); margin: 0 0 32px; max-width: 60ch; line-height: 1.65; }

.hero { padding: 120px 0 100px; }
.hero .btns { display: flex; gap: 14px; flex-wrap: wrap; }

/* soft ambient wash behind hero */
.hero::before {
  content: ''; position: absolute; inset: -20% -10% auto -10%; height: 130%;
  background:
    radial-gradient(60% 50% at 78% 18%, color-mix(in srgb, var(--brand) 13%, transparent), transparent 70%),
    radial-gradient(50% 45% at 12% 8%, color-mix(in srgb, var(--gold) 11%, transparent), transparent 70%);
  pointer-events: none; z-index: -1;
}

/* ─────────── grids & cards ─────────── */

.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px;
  position: relative; overflow: hidden;
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out),
              border-color .4s var(--ease);
}
.card::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(160deg, color-mix(in srgb, var(--brand) 6%, transparent), transparent 55%);
  opacity: 0; transition: opacity .5s var(--ease);
  pointer-events: none;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--brand) 35%, var(--line)); }
.card:hover::before { opacity: 1; }
.card p { color: var(--muted); margin: 0; }

.icon {
  width: 44px; height: 44px; border-radius: 13px;
  background: var(--blush); color: var(--brand);
  display: grid; place-items: center;
  margin-bottom: 18px;
  transition: transform .5s var(--ease-out), background .4s var(--ease);
}
.card:hover .icon { transform: scale(1.08) rotate(-6deg); background: color-mix(in srgb, var(--brand) 18%, var(--blush)); }

.tag {
  display: inline-block; font-size: 11.5px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  background: var(--blush); color: var(--brand);
  padding: 5px 12px; border-radius: 999px; margin-bottom: 14px;
}

/* ─────────── image slots (designed placeholders until real photos land) ─────────── */

.shot {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background:
    linear-gradient(135deg, var(--blush), color-mix(in srgb, var(--gold) 14%, var(--sunk)));
  border: 1px solid var(--line);
  aspect-ratio: 4 / 5;
  display: grid; place-items: center;
  color: color-mix(in srgb, var(--muted) 70%, transparent);
  font-size: 13px; letter-spacing: .1em; text-transform: uppercase;
  position: relative;
  transition: transform .6s var(--ease-out);
}
.shot img { width: 100%; height: 100%; object-fit: cover; }
.shot-wide { aspect-ratio: 16 / 10; }
.card:hover .shot { transform: scale(1.03); }

/* ─────────── marquee ─────────── */

.marquee {
  overflow: hidden; border-block: 1px solid var(--line);
  background: var(--surface); padding: 18px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex; gap: 46px; width: max-content;
  animation: marquee 34s linear infinite;
}
.marquee span {
  font-family: var(--display); font-size: 19px; font-style: italic;
  color: var(--muted); white-space: nowrap;
  display: flex; align-items: center; gap: 46px;
}
.marquee span::after { content: '✦'; color: var(--brand); font-style: normal; font-size: 13px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ─────────── scroll reveal ─────────── */

/* Elements only start hidden when JS has confirmed it is running (html.js-motion).
   Without JS — blocked, errored, old browser — the page renders fully visible. */
.js-motion [data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .85s var(--ease-out), transform .85s var(--ease-out);
  transition-delay: var(--d, 0ms);
  will-change: opacity, transform;
}
.js-motion [data-reveal].in { opacity: 1; transform: none; }

/* ─────────── prose (legal pages) ─────────── */

.prose { max-width: 780px; }
.prose h2 { font-size: 25px; margin: 46px 0 14px; }
.prose h3 { font-size: 17.5px; margin: 30px 0 8px; }
.prose p, .prose li { color: var(--muted); }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin: 7px 0; }
.prose strong { color: var(--ink); }
.updated {
  font-size: 14px; color: var(--muted);
  padding: 10px 16px; background: var(--sunk);
  border-radius: 999px; display: inline-block;
  border: 1px solid var(--line);
}

/* ─────────── contact rows ─────────── */

.contact-row {
  display: flex; gap: 18px; align-items: flex-start;
  padding: 22px 0; border-bottom: 1px solid var(--line);
  transition: padding-left .4s var(--ease);
}
.contact-row:last-child { border-bottom: 0; }
.contact-row:hover { padding-left: 8px; }
.contact-row .label { min-width: 160px; font-weight: 600; font-size: 15px; }
.contact-row .value { color: var(--muted); }
.contact-row .value a { font-weight: 600; }
@media (max-width: 620px) { .contact-row { flex-direction: column; gap: 5px; } }

/* ─────────── footer ─────────── */

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--sunk);
  padding: 64px 0 40px; font-size: 14.5px;
}
.foot-grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1fr; gap: 36px; }
.foot-grid h4 {
  font-size: 12.5px; text-transform: uppercase; letter-spacing: .12em;
  color: var(--muted); margin: 0 0 14px; font-weight: 700;
}
.foot-grid ul { list-style: none; padding: 0; margin: 0; }
.foot-grid li { margin: 8px 0; }
.foot-grid a { color: var(--muted); transition: color .25s var(--ease); }
.foot-grid a:hover { color: var(--brand); }

.legal-line {
  margin-top: 42px; padding-top: 24px; border-top: 1px solid var(--line);
  color: var(--muted); font-size: 13.5px;
  display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap;
}
.cards-accepted { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.cards-accepted span {
  border: 1px solid var(--line); border-radius: 999px;
  padding: 4px 12px; font-size: 12px; font-weight: 600;
  color: var(--muted); background: var(--surface);
}

.currency-note {
  font-size: 14.5px; color: var(--muted);
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 16px 20px;
  display: block; margin-top: 30px;
}

/* ─────────── responsive ─────────── */

@media (max-width: 900px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  section { padding: 68px 0; }
  .hero { padding: 84px 0 72px; }
  .nav-links .hide-sm { display: none; }
}
@media (max-width: 540px) {
  .wrap { padding: 0 18px; }
  .nav { gap: 12px; height: 64px; }
  .nav-links { gap: 15px; }
  .nav-links a { font-size: 14px; white-space: nowrap; }
  .logo { font-size: 19px; }
  .card { padding: 24px; }
}

/* ─────────── accessibility: honour reduced motion ─────────── */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  .marquee-track { animation: none; }
}

:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 4px; }
