/* ==========================================================================
   Lovepop Vietnam — site styles
   ========================================================================== */

:root {
  --paper: #f7f1e8;
  --paper-2: #ede4d5;
  --paper-3: #e3d7c4;
  --ink: #1a1f2b;
  --ink-2: #252c3b;
  --muted: #5e6674;
  --coral: #d42a3a;
  --coral-deep: #a3172a;
  --blush: #f9e1e3;
  --teal: #1c6b64;
  --teal-soft: #d8ebe7;
  --gold: #c99a4b;
  --line: rgba(26, 31, 43, 0.12);
  --white: #fffdf9;
  --shadow-sm: 0 2px 6px rgba(26, 31, 43, 0.06), 0 8px 20px rgba(26, 31, 43, 0.05);
  --shadow: 0 24px 60px -18px rgba(26, 31, 43, 0.22), 0 6px 18px rgba(26, 31, 43, 0.06);
  --shadow-lg: 0 40px 90px -30px rgba(26, 31, 43, 0.38);
  --serif: "Fraunces", "Palatino Linotype", Palatino, serif;
  --sans: "Outfit", "Segoe UI", sans-serif;
  --max: 1180px;
  --header: 78px;
  --radius: 22px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header) + 16px); }

html:not([lang="en"]) [lang="en"] { display: none !important; }
html[lang="en"] [lang="vi"] { display: none !important; }

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(1100px 520px at 105% -8%, rgba(212, 42, 58, 0.09), transparent 58%),
    radial-gradient(900px 480px at -12% 18%, rgba(28, 107, 100, 0.08), transparent 52%),
    radial-gradient(700px 420px at 50% 110%, rgba(201, 154, 75, 0.08), transparent 60%),
    var(--paper);
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Fine paper grain over the whole page */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: 0.35;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.45 0 0 0 0 0.38 0 0 0 0 0.3 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

::selection { background: var(--coral); color: #fff; }

img { max-width: 100%; display: block; }
address { font-style: normal; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, p { margin-top: 0; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  background: var(--ink);
  color: white;
  padding: 8px 12px;
  z-index: 120;
  border-radius: 8px;
}
.skip:focus { top: 12px; }

.wrap {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
}

/* ---------- Scroll progress ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 110;
  transform-origin: 0 50%;
  transform: scaleX(0);
  background: linear-gradient(90deg, var(--coral), var(--gold), var(--teal));
  pointer-events: none;
}

/* ---------- Top bar ---------- */
.topbar {
  background: var(--ink);
  color: #f6f1e8;
  font-size: 0.82rem;
  letter-spacing: 0.01em;
}
.topbar .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 9px 0;
  flex-wrap: wrap;
}
.topbar span { opacity: 0.82; }
.topbar a { color: #fff; text-underline-offset: 3px; text-decoration-color: rgba(255,255,255,.35); transition: text-decoration-color .2s; }
.topbar a:hover { text-decoration-color: var(--coral); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header);
  display: flex;
  align-items: center;
  backdrop-filter: saturate(160%) blur(18px);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  background: rgba(247, 241, 232, 0.78);
  border-bottom: 1px solid transparent;
  transition: height .35s var(--ease), background .35s, border-color .35s, box-shadow .35s;
}
.site-header.is-scrolled {
  height: 64px;
  background: rgba(255, 253, 249, 0.86);
  border-bottom-color: var(--line);
  box-shadow: 0 10px 30px -18px rgba(26, 31, 43, 0.25);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 22px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  margin-right: auto;
}
.logo {
  display: block;
  height: 40px;
  width: auto;
  max-width: min(210px, 56vw);
  object-fit: contain;
  transition: height .35s var(--ease), transform .4s var(--ease-spring);
}
.brand:hover .logo { transform: scale(1.04) rotate(-1deg); }
.site-header.is-scrolled .logo { height: 34px; }
.logo-footer { height: 34px; margin: 0 0 14px; }

.nav {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav a {
  position: relative;
  text-decoration: none;
  color: var(--muted);
  font-size: 0.96rem;
  padding: 8px 12px;
  border-radius: 999px;
  transition: color .25s, background .25s;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 4px;
  height: 2px;
  border-radius: 2px;
  background: var(--coral);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .35s var(--ease);
}
.nav a:hover { color: var(--ink); }
.nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav a[aria-current="page"] { color: var(--ink); font-weight: 500; }
.nav a[aria-current="page"]::after { transform: scaleX(1); }

.lang-switch {
  position: relative;
  display: flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}
.lang-switch button {
  position: relative;
  z-index: 1;
  border: 0;
  background: transparent;
  padding: 5px 11px;
  border-radius: 999px;
  cursor: pointer;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  transition: color .25s, background .25s;
}
.lang-switch button:hover { color: var(--ink); }
.lang-switch button[aria-pressed="true"] {
  background: var(--ink);
  color: white;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
  cursor: pointer;
}
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--ink);
  position: relative;
  margin: 0 auto;
  transition: transform .3s var(--ease), background .2s;
}
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
}
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.site-header.is-open .nav-toggle-bars { background: transparent; }
.site-header.is-open .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.site-header.is-open .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Type ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  color: var(--coral-deep);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.74rem;
  font-weight: 600;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1.5px;
  background: currentColor;
  border-radius: 2px;
}
h1, h2, .serif { font-family: var(--serif); font-weight: 560; letter-spacing: -0.03em; }
h1 {
  font-size: clamp(2.7rem, 5.4vw, 5rem);
  line-height: 1.02;
  margin-bottom: 20px;
}
h1 em, h2 em {
  font-style: italic;
  font-weight: 520;
  color: var(--coral);
  position: relative;
  white-space: nowrap;
}
.scribble {
  position: absolute;
  left: -2%;
  bottom: -0.18em;
  width: 104%;
  height: 0.32em;
  overflow: visible;
  pointer-events: none;
}
.scribble path {
  fill: none;
  stroke: var(--gold);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-dasharray: 420;
  stroke-dashoffset: 420;
  animation: draw 1.4s .6s var(--ease) forwards;
}
@keyframes draw { to { stroke-dashoffset: 0; } }

.lede {
  font-size: 1.18rem;
  color: var(--muted);
  max-width: 38rem;
}
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--teal);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.74rem;
  font-weight: 600;
  margin-bottom: 12px;
}
.kicker::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: currentColor;
  transform: rotate(45deg);
}
.section-head { max-width: 46rem; margin-bottom: 34px; }
.section-head p:not(.kicker) { color: var(--muted); font-size: 1.08rem; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .kicker { justify-content: center; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 24px;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .3s, border-color .3s, color .3s;
}
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform .8s var(--ease);
}
.btn:hover::after { transform: translateX(120%); }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn .arrow { transition: transform .35s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn-coral {
  background: linear-gradient(135deg, var(--coral), var(--coral-deep));
  color: white;
  box-shadow: 0 12px 26px -12px rgba(212, 42, 58, 0.7);
}
.btn-coral:hover { box-shadow: 0 18px 34px -12px rgba(212, 42, 58, 0.75); }
.btn-ghost { border-color: rgba(26, 31, 43, 0.22); background: rgba(255, 253, 249, 0.5); }
.btn-ghost:hover { border-color: var(--ink); background: var(--white); }
.btn-light,
.company .btn-light { background: var(--white); color: var(--ink); }
.btn-light:hover { background: #fff; }
.btn-outline-light { border-color: rgba(255,255,255,.3); color: #fff; }
.btn-outline-light:hover { border-color: #fff; background: rgba(255,255,255,.06); }

/* ---------- Hero ---------- */
.hero-wrap { position: relative; overflow: hidden; }
.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 56px;
  align-items: center;
  padding: 72px 0 56px;
}
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 34px;
  color: var(--muted);
  font-size: 0.9rem;
}
.hero-badges span { display: inline-flex; align-items: center; gap: 8px; }
.hero-badges span::before {
  content: "";
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--teal-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%231c6b64' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat;
}

.hero-frame {
  margin: 0;
  position: relative;
  perspective: 1200px;
}
.hero-frame .stack {
  position: relative;
  transform-style: preserve-3d;
  transition: transform .6s var(--ease);
}
.hero-frame .stack::before,
.hero-frame .stack::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 26px;
  z-index: -1;
}
.hero-frame .stack::before {
  background: var(--blush);
  transform: rotate(-4deg) translate(-14px, 10px);
  box-shadow: var(--shadow-sm);
}
.hero-frame .stack::after {
  background: var(--teal-soft);
  transform: rotate(3deg) translate(16px, 14px);
  z-index: -2;
}
.hero-frame img {
  width: 100%;
  height: auto;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  border-radius: 26px;
  box-shadow: var(--shadow-lg);
  border: 6px solid var(--white);
}
.hero-frame figcaption {
  position: absolute;
  left: -22px;
  bottom: 28px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 253, 249, 0.94);
  backdrop-filter: blur(8px);
  padding: 10px 16px 10px 10px;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 500;
  box-shadow: var(--shadow);
  animation: bob 6s ease-in-out infinite;
}
.hero-frame figcaption::before {
  content: "";
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--blush) url("../images/logo-mark.png") center / 60% no-repeat;
}

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* Floating paper confetti */
.confetti { position: absolute; inset: 0; pointer-events: none; z-index: -1; }
.confetti i {
  position: absolute;
  display: block;
  width: 18px;
  height: 18px;
  opacity: 0.85;
  animation: drift 14s ease-in-out infinite;
}
.confetti .c-heart {
  background: var(--coral);
  clip-path: path("M9 16.5 1.8 9.4A4.3 4.3 0 0 1 9 3.6a4.3 4.3 0 0 1 7.2 5.8Z");
}
.confetti .c-petal { background: #f2a5ae; border-radius: 0 100% 0 100%; }
.confetti .c-leaf { background: var(--teal); border-radius: 100% 0 100% 0; width: 14px; height: 14px; }
.confetti .c-tri { background: var(--gold); clip-path: polygon(50% 0, 100% 100%, 0 100%); width: 14px; height: 14px; }
.confetti .c-dot { background: var(--ink); border-radius: 50%; width: 8px; height: 8px; opacity: .5; }
@keyframes drift {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(10px, -18px) rotate(40deg); }
  50% { transform: translate(-6px, -30px) rotate(-20deg); }
  75% { transform: translate(-12px, -12px) rotate(30deg); }
}

/* ---------- Marquee ---------- */
.marquee {
  position: relative;
  overflow: hidden;
  padding: 18px 0;
  border-block: 1px solid var(--line);
  background: rgba(255, 253, 249, 0.55);
  -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;
  width: max-content;
  gap: 0;
  animation: marquee 38s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-group { display: flex; align-items: center; flex: none; }
.marquee b { font-weight: inherit; }
.marquee-group > span {
  display: inline-flex;
  align-items: center;
  gap: 28px;
  padding-right: 28px;
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2.4vw, 1.9rem);
  font-style: italic;
  color: var(--ink);
  white-space: nowrap;
}
.marquee-group > span::after {
  content: "";
  width: 14px;
  height: 14px;
  background: var(--coral);
  clip-path: path("M7 13 1.4 7.3A3.4 3.4 0 0 1 7 2.8a3.4 3.4 0 0 1 5.6 4.5Z");
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { position: relative; padding: 84px 0; }
.section.tight { padding-top: 0; }
.section h2 { font-size: clamp(2.1rem, 3.6vw, 3.3rem); line-height: 1.06; margin-bottom: 14px; }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.split.top { align-items: start; }
.frame { margin: 0; position: relative; }
.split img, .frame img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  object-fit: cover;
}
.frame-paper { position: relative; }
.frame-paper::before {
  content: "";
  position: absolute;
  inset: 18px -18px -18px 18px;
  border-radius: var(--radius);
  background: repeating-linear-gradient(45deg, rgba(212,42,58,.12) 0 2px, transparent 2px 12px);
  z-index: -1;
}
.frame-paper img { box-shadow: var(--shadow); }
.split.reverse { direction: rtl; }
.split.reverse > * { direction: ltr; }
.caption { color: var(--muted); font-size: 0.86rem; margin-top: 12px; }

.img-zoom { overflow: hidden; border-radius: var(--radius); }
.img-zoom img { transition: transform 1.2s var(--ease); }
.img-zoom:hover img { transform: scale(1.06); }

/* ---------- Stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-radius: 28px;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.stat {
  position: relative;
  padding: 30px 26px;
}
.stat + .stat::before {
  content: "";
  position: absolute;
  left: 0;
  top: 24px;
  bottom: 24px;
  width: 1px;
  background: var(--line);
}
.stat strong {
  display: block;
  font-family: var(--serif);
  font-size: clamp(2.2rem, 3.6vw, 3rem);
  font-weight: 560;
  line-height: 1;
  letter-spacing: -0.04em;
  margin-bottom: 10px;
  background: linear-gradient(135deg, var(--ink) 30%, var(--coral));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat p { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* ---------- Cards ---------- */
.paper-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 34px;
  box-shadow: var(--shadow-sm);
}

.culture-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.culture-card {
  overflow: hidden;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.culture-card::after {
  content: "";
  position: absolute;
  right: -60px;
  top: -60px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212,42,58,.14), transparent 70%);
  transition: transform .8s var(--ease);
}
.culture-card:nth-child(2)::after { background: radial-gradient(circle, rgba(28,107,100,.16), transparent 70%); }
.culture-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.culture-card:hover::after { transform: scale(1.5); }
.culture-card h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); }
.culture-card p:last-child { margin-bottom: 0; color: var(--muted); }
.culture-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: var(--blush);
  color: var(--coral);
  margin-bottom: 20px;
}
.culture-card:nth-child(2) .culture-icon { background: var(--teal-soft); color: var(--teal); }
.culture-icon svg { width: 26px; height: 26px; }

/* Mission & values board */
.values-board {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  margin-top: 22px;
  border-radius: 32px;
  padding: clamp(28px, 5vw, 64px);
  color: var(--ink);
  background:
    radial-gradient(640px 280px at 0% 0%, rgba(212,42,58,.10), transparent 60%),
    radial-gradient(640px 300px at 100% 100%, rgba(28,107,100,.12), transparent 60%),
    var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.values-board::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(rgba(26,31,43,.07) 1px, transparent 1px);
  background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 75%);
  mask-image: linear-gradient(180deg, #000, transparent 75%);
}
.values-label {
  color: var(--teal);
  letter-spacing: .18em;
  text-transform: uppercase;
  font-size: .74rem;
  font-weight: 600;
  margin-bottom: 18px;
}
.values-statement {
  font-family: var(--serif);
  font-weight: 560;
  letter-spacing: -0.035em;
  font-size: clamp(2rem, 4.4vw, 3.7rem);
  line-height: 1.14;
  color: var(--ink);
  margin-bottom: clamp(30px, 5vw, 52px);
}
.v-word {
  --v: var(--coral);
  position: relative;
  z-index: 0;
  display: inline-block;
  font-style: italic;
  font-weight: 520;
  transition: color .4s var(--ease), transform .45s var(--ease-spring);
}
.v-word::after {
  content: "";
  position: absolute;
  left: -2%;
  right: -2%;
  bottom: .08em;
  height: .22em;
  z-index: -1;
  border-radius: 4px;
  background: var(--v);
  opacity: .28;
  transform: scaleX(1);
  transform-origin: left;
  transition: transform 1s .3s var(--ease);
}
.js-motion .values-board.reveal:not(.is-visible) .v-word::after { transform: scaleX(0); }
.v-word[data-v~="engineering"] { --v: #e98a6b; }
.v-word[data-v~="magic"] { --v: var(--gold); }
.v-word[data-v~="connection"] { --v: #3aa597; }

.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.value {
  --v: var(--coral);
  position: relative;
  padding: 24px 22px 22px;
  border-radius: 22px;
  background: rgba(255, 253, 249, 0.85);
  border: 1px solid var(--line);
  transition: transform .5s var(--ease), background .4s, border-color .4s;
}
.value[data-v="engineering"] { --v: #e98a6b; }
.value[data-v="connection"] { --v: #3aa597; }
.value[data-v="magic"] { --v: var(--gold); }
.value:hover { transform: translateY(-6px); background: #fff; border-color: var(--v); box-shadow: var(--shadow); }
.value-no {
  position: absolute;
  top: 20px;
  right: 22px;
  font-family: var(--serif);
  font-size: .95rem;
  color: rgba(26,31,43,.28);
}
.value-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  margin-bottom: 18px;
  color: var(--v);
  background: color-mix(in srgb, var(--v) 14%, white);
  transition: transform .5s var(--ease-spring);
}
.value:hover .value-icon { transform: rotate(-10deg) scale(1.1); }
.value-icon svg { width: 22px; height: 22px; }
.value h3 { font-family: var(--serif); font-weight: 560; font-size: 1.45rem; letter-spacing: -.02em; color: var(--ink); margin-bottom: 8px; }
.value h3 small { font-family: var(--sans); font-size: .8rem; font-weight: 400; color: var(--v); letter-spacing: 0; }
.value p { margin: 0; color: var(--muted); font-size: .96rem; }

/* Hovering a value lights up its word in the statement */
.values-board:has(.value[data-v="hunger"]:hover) .v-word[data-v~="hunger"],
.values-board:has(.value[data-v="engineering"]:hover) .v-word[data-v~="engineering"],
.values-board:has(.value[data-v="connection"]:hover) .v-word[data-v~="connection"],
.values-board:has(.value[data-v="magic"]:hover) .v-word[data-v~="magic"] {
  color: var(--v);
  transform: translateY(-4px) rotate(-1.5deg);
}

/* Spotlight that follows the pointer (set by JS) */
.spotlight { --mx: 50%; --my: 50%; }
.spotlight::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(380px circle at var(--mx) var(--my), rgba(212, 42, 58, 0.08), transparent 60%);
  opacity: 0;
  transition: opacity .4s;
}
.spotlight:hover::before { opacity: 1; }

/* ---------- Steps / timeline ---------- */
.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 28px 24px 26px;
  border-radius: 22px;
  background: var(--white);
  border: 1px solid var(--line);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .5s;
}
.step::after {
  content: "";
  position: absolute;
  left: 24px;
  right: 24px;
  top: 0;
  height: 3px;
  border-radius: 0 0 4px 4px;
  background: linear-gradient(90deg, var(--coral), var(--gold));
  transform: scaleX(.18);
  transform-origin: left;
  transition: transform .6s var(--ease);
}
.step:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.step:hover::after { transform: scaleX(1); }
.step > span {
  display: block;
  font-family: var(--serif);
  color: var(--coral);
  font-size: 2.3rem;
  line-height: 1;
  letter-spacing: -0.04em;
  margin-bottom: 18px;
}
.step h3 { font-size: 1.18rem; margin-bottom: 8px; }
.step p { color: var(--muted); margin: 0; font-size: 0.98rem; }

.timeline .step > span { font-size: 2.6rem; }
.timeline::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -26px;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--line) 0 8px, transparent 8px 16px);
}
.timeline .step::before {
  content: "";
  position: absolute;
  top: -33px;
  left: 24px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--paper);
  border: 3px solid var(--coral);
}

/* ---------- Gallery ---------- */
.gallery {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  grid-template-rows: 270px 270px;
  gap: 16px;
}
.gallery a, .gallery figure {
  margin: 0;
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  display: block;
  isolation: isolate;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .5s var(--ease), transform .5s var(--ease);
}
.gallery a::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(26, 31, 43, 0.62));
  opacity: .7;
  transition: opacity .5s;
}
.gallery a:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.gallery a:hover::after { opacity: 1; }
.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
  transition: transform 1.2s var(--ease);
}
.gallery a:hover img { transform: scale(1.08); }
.gallery .wide { grid-row: 1 / span 2; }
.gallery .span-two { grid-column: 2 / span 2; }
.gallery figcaption, .tile-label {
  position: absolute;
  z-index: 1;
  left: 18px;
  right: 18px;
  bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #fff;
  font-family: var(--serif);
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}
.tile-label::after {
  content: "→";
  font-family: var(--sans);
  font-size: 1rem;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 253, 249, 0.95);
  color: var(--ink);
  transform: translateX(-8px) scale(.8);
  opacity: 0;
  transition: transform .45s var(--ease-spring), opacity .3s;
}
.gallery a:hover .tile-label::after { transform: none; opacity: 1; }

/* ---------- Product cards ---------- */
.products {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.product {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 14px;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.product:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.product .img-zoom { border-radius: 18px; margin-bottom: 18px; }
.product img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.product .body { padding: 0 10px 12px; }
.product h3 { font-family: var(--serif); font-weight: 560; font-size: 1.6rem; letter-spacing: -0.03em; margin-bottom: 6px; }
.product p { color: var(--muted); margin: 0; }
.tag {
  position: absolute;
  top: 26px;
  left: 26px;
  z-index: 1;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 253, 249, 0.92);
  backdrop-filter: blur(6px);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--coral-deep);
}

/* ---------- Facts (support) ---------- */
.facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.fact {
  position: relative;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 28px;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.fact:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.fact-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--blush);
  color: var(--coral);
  margin-bottom: 18px;
  transition: transform .5s var(--ease-spring);
}
.fact:hover .fact-icon { transform: rotate(-8deg) scale(1.08); }
.fact-icon svg { width: 22px; height: 22px; }
.fact strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 560;
  letter-spacing: -0.03em;
  margin-bottom: 6px;
}
.fact p { margin-bottom: 4px; }
.fact p:last-child { color: var(--muted); margin: 0; }

.checklist { list-style: none; padding: 0; margin: 18px 0 24px; display: grid; gap: 12px; }
.checklist li {
  position: relative;
  padding: 14px 16px 14px 52px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 50%;
  width: 22px;
  height: 22px;
  margin-top: -11px;
  border-radius: 50%;
  background: var(--teal-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%231c6b64' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}

/* ---------- Company / dark block ---------- */
.company {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--ink);
  color: #f6f1e8;
  border-radius: 32px;
  padding: clamp(28px, 5vw, 56px);
  box-shadow: var(--shadow-lg);
}
.company::before,
.company::after {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  filter: blur(10px);
}
.company::before {
  width: 420px;
  height: 420px;
  right: -140px;
  top: -160px;
  background: radial-gradient(circle, rgba(212,42,58,.45), transparent 65%);
}
.company::after {
  width: 380px;
  height: 380px;
  left: -160px;
  bottom: -200px;
  background: radial-gradient(circle, rgba(28,107,100,.5), transparent 65%);
}
.company a { color: white; }
.company .kicker { color: #f3b6bf; }
.company h2 { color: #fff; }
.info-table { width: 100%; border-collapse: collapse; margin-top: 10px; }
.info-table th, .info-table td {
  text-align: left;
  vertical-align: top;
  padding: 14px 14px 14px 0;
  border-bottom: 1px solid rgba(246, 241, 232, 0.12);
  font-weight: 400;
}
.info-table tr { transition: background .3s; }
.company .info-table tr:hover { background: rgba(255,255,255,.03); }
.company .info-table th { color: #b9b2a6; width: 34%; }
.paper-card .info-table th,
.paper-card .info-table td { border-bottom-color: var(--line); }
.paper-card .info-table th { color: var(--muted); width: 34%; }
.paper-card .info-table tr:hover { background: rgba(26,31,43,.02); }

/* ---------- CTA ---------- */
.cta {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  padding: clamp(28px, 5vw, 52px);
  border-radius: 32px;
  background: linear-gradient(135deg, #fbe6e8, #f6efe2 60%, #e3f0ec);
  border: 1px solid var(--line);
}
.cta::after {
  content: "";
  position: absolute;
  z-index: -1;
  right: -40px;
  bottom: -60px;
  width: 260px;
  height: 260px;
  background: var(--coral);
  opacity: .08;
  clip-path: path("M130 240 18 129A66 66 0 0 1 130 40a66 66 0 0 1 112 89Z");
  animation: bob 8s ease-in-out infinite;
}
.cta h2 { margin-bottom: 8px; }
.cta p { margin: 0; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  margin-top: 40px;
  background: var(--ink);
  color: #d9d3c8;
  padding: 64px 0 30px;
  overflow: hidden;
}
.site-footer::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--coral), var(--gold), var(--teal));
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 36px;
}
.footer-brand {
  font-family: var(--serif);
  font-size: 2rem;
  margin: 0 0 8px;
}
.site-footer h2 {
  font-family: var(--sans);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 16px;
}
.site-footer p { margin-bottom: 6px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 8px 0; }
.site-footer a { text-decoration: none; color: #d9d3c8; transition: color .25s; }
.site-footer a:hover { color: #fff; }
.site-footer li a { display: inline-flex; align-items: center; gap: 8px; }
.site-footer li a::before {
  content: "";
  width: 0;
  height: 1.5px;
  background: var(--coral);
  transition: width .3s var(--ease);
}
.site-footer li a:hover::before { width: 12px; }
.site-footer address { font-style: normal; margin-bottom: 10px; }
.footer-base {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 44px;
  padding-top: 20px;
  border-top: 1px solid rgba(246, 241, 232, 0.12);
  color: #9b9588;
  font-size: 0.9rem;
}
.footer-base p { margin: 0; }
.fine { color: var(--muted); font-size: 0.92rem; }
.site-footer .fine { color: #9b9588; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero-wrap { position: relative; overflow: hidden; }
.page-hero { position: relative; padding: 76px 0 24px; max-width: 900px; }
.page-hero h1 { font-size: clamp(2.5rem, 4.6vw, 4.2rem); }
.page-hero-wrap .confetti { z-index: 0; }

/* ---------- Legal ---------- */
.legal { max-width: 780px; }
.legal a, .paper-card a, .fact a, .lede a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(212,42,58,.45); transition: text-decoration-color .2s, color .2s; }
.legal a:hover, .paper-card a:hover, .fact a:hover { color: var(--coral-deep); text-decoration-color: var(--coral); }
.company a:not(.btn) { text-decoration: underline; text-underline-offset: 3px; }
.legal h2 { font-size: 1.6rem; margin: 1.8em 0 0.5em; padding-top: 0.6em; border-top: 1px solid var(--line); }
.legal h3 { font-size: 1.12rem; margin: 1.3em 0 0.3em; }
.legal ul, .legal ol { padding-left: 1.2em; }
.legal li { margin: 0.4em 0; }
.legal li::marker { color: var(--coral); }
.summary {
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--coral);
  border-radius: 18px;
  padding: 20px 22px;
  margin: 18px 0 18px;
  box-shadow: var(--shadow-sm);
}
.summary p:last-child { margin-bottom: 0; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 16px; }
.form h2 { font-size: 1.9rem; margin-bottom: 4px; }
.form label { display: grid; gap: 7px; font-size: 0.92rem; font-weight: 500; }
.form input, .form select, .form textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: #fffefb;
  border-radius: 14px;
  padding: 13px 15px;
  font-weight: 400;
  transition: border-color .25s, box-shadow .25s, background .25s;
}
.form input:hover, .form select:hover, .form textarea:hover { border-color: rgba(26,31,43,.25); }
.form textarea { min-height: 150px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus {
  outline: none;
  border-color: var(--teal);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(28, 107, 100, 0.14);
}
.form .btn { justify-self: start; }
.form-note { color: var(--muted); font-size: 0.9rem; margin: 0; }
.form-status {
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--teal-soft);
  color: var(--teal);
  font-size: 0.92rem;
  margin: 0;
}

.map {
  width: 100%;
  min-height: 360px;
  border: 0;
  border-radius: 26px;
  background: var(--paper-2);
  box-shadow: var(--shadow);
  filter: saturate(.85) contrast(1.02);
}

/* ---------- 404 ---------- */
.notfound {
  min-height: 100vh;
  display: grid;
  place-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.notfound .big {
  font-family: var(--serif);
  font-size: clamp(7rem, 22vw, 15rem);
  line-height: .9;
  letter-spacing: -0.06em;
  margin: 0 0 10px;
  background: linear-gradient(135deg, var(--coral), var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: bob 5s ease-in-out infinite;
}
.notfound .eyebrow { justify-content: center; }
.notfound .actions { justify-content: center; }

/* ---------- Cookie notice ---------- */
.cookie {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 60;
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  width: min(720px, calc(100% - 32px));
  margin: 0 auto;
  background: rgba(26, 31, 43, 0.94);
  backdrop-filter: blur(10px);
  color: white;
  border-radius: 18px;
  padding: 14px 16px 14px 20px;
  box-shadow: var(--shadow-lg);
  animation: rise .7s .8s var(--ease) both;
}
.cookie p { margin: 0; font-size: 0.92rem; }
.cookie a { color: white; }
.cookie button {
  border: 0;
  background: white;
  color: var(--ink);
  border-radius: 999px;
  padding: 9px 18px;
  cursor: pointer;
  flex: none;
  font-weight: 500;
  transition: transform .3s var(--ease);
}
.cookie button:hover { transform: scale(1.05); }
.cookie.is-leaving { animation: sink .45s var(--ease) forwards; }
@keyframes rise { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }
@keyframes sink { to { opacity: 0; transform: translateY(30px); } }

/* ---------- Back to top ---------- */
.to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 55;
  width: 50px;
  height: 50px;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  background: var(--ink);
  color: #fff;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(16px) scale(.9);
  pointer-events: none;
  transition: opacity .4s, transform .4s var(--ease), background .3s;
}
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--coral); }
.to-top svg { width: 20px; height: 20px; }
body.has-cookie .to-top { bottom: 96px; }

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

/* ---------- Motion: reveal on scroll (only when JS is running) ---------- */
.js-motion .reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
  transition-delay: var(--delay, 0s);
}
.js-motion .reveal.from-left { transform: translateX(-40px); }
.js-motion .reveal.from-right { transform: translateX(40px); }
.js-motion .reveal.zoom { transform: scale(.94); }
.js-motion .reveal.is-visible { opacity: 1; transform: none; }

/* Hero entrance */
.js-motion .intro > * {
  opacity: 0;
  transform: translateY(24px);
  animation: intro .9s var(--ease) forwards;
}
.js-motion .intro > *:nth-child(1) { animation-delay: .05s; }
.js-motion .intro > *:nth-child(2) { animation-delay: .15s; }
.js-motion .intro > *:nth-child(3) { animation-delay: .25s; }
.js-motion .intro > *:nth-child(4) { animation-delay: .35s; }
.js-motion .intro > *:nth-child(5) { animation-delay: .45s; }
.js-motion .intro > *:nth-child(6) { animation-delay: .55s; }
.js-motion .intro > *:nth-child(7) { animation-delay: .65s; }
.js-motion .intro-art {
  opacity: 0;
  animation: introArt 1.3s .25s var(--ease) forwards;
}
@keyframes intro { to { opacity: 1; transform: none; } }
@keyframes introArt {
  from { opacity: 0; transform: translateY(30px) rotate(2deg) scale(.96); }
  to { opacity: 1; transform: none; }
}

/* Image reveal wipe */
.js-motion .wipe { position: relative; }
.js-motion .wipe::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--paper-2);
  transform-origin: right;
  transition: transform 1.1s var(--ease);
  z-index: 2;
}
.js-motion .wipe.is-visible::after { transform: scaleX(0); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero, .split, .facts, .steps, .footer-grid, .culture-grid, .products { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr 1fr; }
  .hero { gap: 64px; padding-top: 48px; }
  .split { gap: 40px; }
  .steps { grid-template-columns: 1fr 1fr; }
  .products { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3)::before { display: none; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .split.reverse { direction: ltr; }
  .gallery { grid-template-columns: 1fr 1fr; grid-template-rows: none; }
  .gallery .wide { grid-row: auto; grid-column: 1 / -1; aspect-ratio: 16 / 10; }
  .gallery .span-two { grid-column: auto; }
  .gallery a, .gallery figure { aspect-ratio: 1; }
  .cta { flex-direction: column; align-items: flex-start; }
  .timeline::before, .timeline .step::before { display: none; }
  .hero-frame figcaption { left: 12px; }
}

@media (max-width: 800px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    background: rgba(255, 253, 249, 0.98);
    border-bottom: 1px solid var(--line);
    padding: 10px 20px 18px;
    box-shadow: 0 20px 40px -20px rgba(26,31,43,.3);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity .3s var(--ease), transform .3s var(--ease), visibility 0s .3s;
  }
  .site-header.is-open .nav {
    visibility: visible;
    opacity: 1;
    transform: none;
    transition: opacity .3s var(--ease), transform .3s var(--ease);
  }
  .nav a { padding: 13px 12px; width: 100%; border-radius: 12px; }
  .nav a::after { display: none; }
  .nav a[aria-current="page"] { background: var(--blush); color: var(--coral-deep); }
  .site-header .wrap { position: static; }
  .section { padding: 60px 0; }
  .gallery { grid-template-columns: 1fr; }
  .products, .steps, .footer-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }
  .topbar span { display: none !important; }
  .topbar .wrap { justify-content: center; }
  .confetti i { opacity: .45; }
  .paper-card { padding: 24px; }
  .info-table th, .info-table td { display: block; width: auto !important; padding: 4px 0; border: 0; }
  .info-table tr { display: block; padding: 10px 0; border-bottom: 1px solid var(--line); }
  .company .info-table tr { border-bottom-color: rgba(246, 241, 232, 0.12); }
}

@media (max-width: 520px) {
  .stats { grid-template-columns: 1fr; }
  .stat + .stat::before { display: none; }
  .stat + .stat { border-top: 1px solid var(--line); }
  .cookie { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .marquee-track { animation: none; }
  .js-motion .reveal, .js-motion .intro > *, .js-motion .intro-art { opacity: 1; transform: none; }
  .js-motion .wipe::after { display: none; }
}
