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

:root {
  --radius: 1.25rem;
  --brand-cream: #fff7fb;
  --brand-ink: #4a1830;
  --brand-red: #d62969;
  --brand-mint: #ffd4e3;
  --brand-blue: #8f1d4c;
  --brand-yellow: #ffe7f0;
  --background: var(--brand-cream);
  --foreground: var(--brand-ink);
  --card: #fffafd;
  --primary: var(--brand-red);
  --primary-foreground: #fcfcfc;
  --secondary: var(--brand-mint);
  --secondary-foreground: var(--brand-ink);
  --muted: #fbe8f0;
  --muted-foreground: #704159;
  --accent: var(--brand-yellow);
  --border: #6f1d4630;
  --max-width: 80rem;
}

html {
  scroll-behavior: smooth;
  scrollbar-color: var(--brand-red) var(--brand-cream);
  scrollbar-width: thin;
}

::-webkit-scrollbar { width: 12px; }
::-webkit-scrollbar-track { border-left: 2px solid var(--foreground); background: var(--brand-cream); }
::-webkit-scrollbar-thumb { background: var(--brand-red); border: 2px solid var(--foreground); border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: var(--foreground); }

body {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--foreground);
  background: var(--background);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
  font-feature-settings: "ss01", "cv11";
  animation: pageFadeIn 0.5s ease forwards;
}

@keyframes pageFadeIn { from { opacity: 0; } to { opacity: 1; } }

h1, h2, h3, h4 {
  font-family: 'Bricolage Grotesque', system-ui, sans-serif;
  letter-spacing: -0.03em;
  font-weight: 800;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }

:focus-visible { outline: 3px solid #fff; outline-offset: 3px; border-radius: 8px; box-shadow: 0 0 0 6px var(--foreground); }

.skip-link {
  position: absolute; top: -100%; left: 1rem;
  padding: 0.5rem 1rem; background: var(--brand-red); color: #fff;
  font-weight: 700; border-radius: 999px; z-index: 1000;
  transition: top 150ms ease;
}
.skip-link:focus { top: 1rem; }

/* ---------- Utility classes (matching Tailwind output) ---------- */
.mx-auto { margin-inline: auto; }
.max-w-7xl { max-width: var(--max-width); }
.px-5 { padding-inline: 1.25rem; }
.sm\:px-8 { padding-inline: 2rem; }
.pt-12 { padding-top: 3rem; }
.pb-20 { padding-bottom: 5rem; }
.sm\:pt-20 { padding-top: 5rem; }
.sm\:pb-28 { padding-bottom: 7rem; }
.py-24 { padding-block: 6rem; }
.mt-4 { margin-top: 1rem; }
.mt-5 { margin-top: 1.25rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-7 { margin-top: 1.75rem; }
.mt-8 { margin-top: 2rem; }
.mt-10 { margin-top: 2.5rem; }
.mt-12 { margin-top: 3rem; }
.mb-2 { margin-bottom: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-5 { gap: 1.25rem; }
.gap-7 { gap: 1.75rem; }
.gap-10 { gap: 2.5rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-5 > * + * { margin-top: 1.25rem; }
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.grid { display: grid; }
.hidden { display: none; }
.items-center { align-items: center; }
.items-end { align-items: flex-end; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.text-center { text-align: center; }
.text-left { text-align: left; }
.font-bold { font-weight: 700; }
.font-extrabold { font-weight: 800; }
.font-semibold { font-weight: 600; }
.font-medium { font-weight: 500; }
.font-light { font-weight: 300; }
.italic { font-style: italic; }
.uppercase { text-transform: uppercase; }
.tracking-tight { letter-spacing: -0.025em; }
.tracking-widest { letter-spacing: 0.1em; }
.leading-\[0\.95\] { line-height: 0.95; }
.leading-\[1\.02\] { line-height: 1.02; }
.leading-relaxed { line-height: 1.625; }
.opacity-70 { opacity: 0.7; }
.opacity-80 { opacity: 0.8; }
.opacity-90 { opacity: 0.9; }

/* Font sizes */
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-base { font-size: 1rem; line-height: 1.5rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-3xl { font-size: 1.875rem; line-height: 1.2; }
.text-4xl { font-size: 2.25rem; line-height: 1; }
.text-5xl { font-size: 3rem; line-height: 1; }
.text-6xl { font-size: 3.75rem; line-height: 1; }
.text-7xl { font-size: 4.5rem; line-height: 1; }
.text-8xl { font-size: 6rem; line-height: 1; }
.sm\:text-5xl { font-size: 3rem; line-height: 1; }
.sm\:text-6xl { font-size: 3.75rem; line-height: 1; }
.sm\:text-7xl { font-size: 4.5rem; line-height: 1; }
.lg\:text-8xl { font-size: 6rem; line-height: 1; }

/* Border radius */
.rounded-full { border-radius: 9999px; }
.rounded-2xl { border-radius: calc(var(--radius) + 8px); }
.rounded-3xl { border-radius: calc(var(--radius) + 12px); }
.rounded-\[2\.5rem\] { border-radius: 2.5rem; }
.rounded-xl { border-radius: calc(var(--radius) + 4px); }
.rounded-2xl { border-radius: calc(var(--radius) + 8px); }

/* Border */
.border { border-style: solid; border-width: 1px; }
.border-2 { border-style: solid; border-width: 2px; }
.border-b { border-bottom-style: solid; border-bottom-width: 1px; }
.border-t { border-top-style: solid; border-top-width: 1px; }
.border-foreground\/15 { border-color: rgba(17, 22, 31, 0.15); }
.border-foreground\/5 { border-color: rgba(17, 22, 31, 0.05); }
.border-background\/30 { border-color: rgba(250, 247, 238, 0.3); }

/* Colors */
.text-foreground { color: var(--foreground); }
.text-background { color: var(--background); }
.text-primary { color: var(--primary); }
.text-primary-foreground { color: var(--primary-foreground); }
.text-secondary-foreground { color: var(--secondary-foreground); }
.text-muted-foreground { color: var(--muted-foreground); }
.text-accent-foreground { color: var(--brand-ink); }
.bg-background { background-color: var(--background); }
.bg-card { background-color: var(--card); }
.bg-foreground { background-color: var(--foreground); }
.bg-primary { background-color: var(--primary); }
.bg-primary\/40 { background-color: rgba(210, 77, 69, 0.4); }
.bg-secondary { background-color: var(--secondary); }
.bg-secondary\/60 { background-color: rgba(160, 222, 188, 0.6); }
.bg-secondary\/30 { background-color: rgba(160, 222, 188, 0.3); }
.bg-accent { background-color: var(--accent); }
.bg-accent\/20 { background-color: rgba(249, 221, 115, 0.2); }
.bg-accent\/50 { background-color: rgba(249, 221, 115, 0.5); }
.bg-blue { background-color: var(--brand-blue); }
.bg-red { background-color: var(--brand-red); }
.bg-white\/10 { background-color: rgba(255, 255, 255, 0.1); }
.bg-white\/15 { background-color: rgba(255, 255, 255, 0.15); }
.bg-white\/30 { background-color: rgba(255, 255, 255, 0.3); }
.bg-foreground\/10 { background-color: rgba(17, 22, 31, 0.1); }
.bg-background\/10 { background-color: rgba(250, 247, 238, 0.1); }
.bg-background\/85 { background-color: rgba(250, 247, 238, 0.85); }

/* Position */
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.sticky { position: sticky; }
.inset-0 { inset: 0; }
.top-0 { top: 0; }
.z-10 { z-index: 10; }
.z-20 { z-index: 20; }
.z-40 { z-index: 40; }
.z-50 { z-index: 50; }
.z-\[9999\] { z-index: 9999; }

/* Overflow */
.overflow-hidden { overflow: hidden; }
.overflow-x-hidden { overflow-x: hidden; }

/* Shadows */
.card-shadow { box-shadow: 0 1px rgba(17, 22, 31, 0.06), 0 14px 32px -18px rgba(17, 22, 31, 0.16); }
.hard-shadow { box-shadow: 3px 3px rgba(17, 22, 31, 0.55); }

/* Transitions */
.transition { transition: all 150ms ease; }
.transition-transform { transition: transform 150ms ease; }
.hover\:-translate-y-0\.5:hover { transform: translateY(-2px); }
.hover\:-translate-y-1:hover { transform: translateY(-4px); }
.hover\:scale-105:hover { transform: scale(1.05); }
.hover\:bg-foreground:hover { background-color: var(--foreground); }
.hover\:text-background:hover { color: var(--background); }
.hover\:bg-background\/20:hover { background-color: rgba(250, 247, 238, 0.2); }
.hover\:bg-accent:hover { background-color: var(--accent); }
.hover\:text-primary:hover { color: var(--primary); }
.hover\:text-foreground:hover { color: var(--foreground); }
.hover\:hard-shadow:hover { box-shadow: 3px 3px rgba(17, 22, 31, 0.55); }
.duration-700 { transition-duration: 700ms; }

/* Pointer */
.pointer-events-none { pointer-events: none; }

/* Misc */
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.w-full { width: 100%; }
.h-full { height: 100%; }
.aspect-\[4\/3\] { aspect-ratio: 4/3; }
.aspect-square { aspect-ratio: 1; }
.col-span-2 { grid-column: span 2; }
/* Hero card col-span handled above */
.sr-only { clip-path: inset(50%); white-space: nowrap; width: 1px; height: 1px; margin: -1px; padding: 0; position: absolute; overflow: hidden; border: 0; }

/* ---------- Squiggle underline ---------- */
.squiggle {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 12'><path d='M2 6 Q 17 -1 32 6 T 62 6 T 92 6 T 122 6' fill='none' stroke='%23a8dcc4' stroke-width='3' stroke-linecap='round' opacity='0.85'/></svg>");
  background-position: 0 92%;
  background-repeat: no-repeat;
  background-size: 100% 0.35em;
  padding-bottom: 0.1em;
}

/* ---------- Animations ---------- */
@keyframes blob {
  0%, to { transform: translate(0) scale(1); }
  33% { transform: translate(30px, -20px) scale(1.05); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
}
.animate-blob { animation: 14s ease-in-out infinite blob; }

@keyframes ping {
  75%, to { opacity: 0; transform: scale(2); }
}
.animate-ping { animation: 1s cubic-bezier(0, 0, 0.2, 1) infinite ping; }

@keyframes pulse {
  50% { opacity: 0.5; }
}
.animate-pulse { animation: 2s cubic-bezier(0.4, 0, 0.6, 1) infinite pulse; }

/* ---------- Scroll Reveal ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.4s ease, transform 0.4s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .animate-blob { animation: none; }
  .cursor, .cursor-dot { display: none; }
}

/* ==========================================================================
   CUSTOM CURSOR (matching aimanhanif)
   ========================================================================== */
.cursor, .cursor-dot {
  position: fixed; top: 0; left: 0; pointer-events: none;
  border-radius: 50%; transform: translate(-50%, -50%);
  will-change: transform;
  box-shadow: 3px 3px rgba(17, 22, 31, 0.9);
  z-index: 9999999;
}
.cursor {
  width: 40px; height: 40px;
  border: 2.5px solid var(--brand-ink);
  background: var(--brand-mint);
  opacity: 0;
  transition: opacity 200ms ease, background-color 200ms ease, border-radius 200ms ease;
}
.cursor-dot {
  width: 16px; height: 16px;
  border: 2px solid var(--brand-ink);
  background: var(--brand-red);
  opacity: 0;
  transition: background-color 150ms ease, border-radius 150ms ease;
}
.cursor.is-active { opacity: 1; }
.cursor-dot.is-active { opacity: 1; }
.cursor.is-hover { border-radius: 10px; background: var(--brand-yellow); }
.cursor-dot.is-hover { border-radius: 4px; background: var(--brand-blue); }

@media (hover: none) and (pointer: coarse) { .cursor, .cursor-dot { display: none !important; } }
@media (hover: hover) and (pointer: fine) { * { cursor: none !important; } }

/* ==========================================================================
   NAVIGATION
   ========================================================================== */
.nav {
  position: sticky; top: 0; z-index: 40;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  background: rgba(250, 247, 238, 0.7);
  border-bottom: 1px solid var(--border);
}
.nav__inner {
  max-width: var(--max-width); margin: 0 auto;
  padding: 0 1.25rem; height: 4rem;
  display: flex; align-items: center; justify-content: space-between;
}
@media (min-width: 640px) { .nav__inner { padding: 0 2rem; } }
.nav__logo {
  display: flex; align-items: center; gap: 0.5rem;
  font-family: 'Bricolage Grotesque', system-ui, sans-serif;
  font-size: 1.25rem; font-weight: 800; letter-spacing: -0.03em;
}
.nav__logo-badge {
  display: inline-grid; place-items: center;
  width: 2.25rem; height: 2.25rem;
  background: var(--foreground); color: var(--background);
  border-radius: calc(var(--radius) + 4px);
  font-size: 0.875rem; font-weight: 800;
  font-family: 'Bricolage Grotesque', system-ui, sans-serif;
}
.nav__links { display: none; }
@media (min-width: 768px) { .nav__links { display: flex; gap: 1.75rem; } }
.nav__links a {
  font-size: 0.875rem; font-weight: 500;
  transition: color 150ms ease;
}
.nav__links a:hover { color: var(--primary); }
.nav__links a.nav__link--active { color: var(--primary); }
.nav__actions { display: flex; align-items: center; gap: 0.75rem; }
.nav__menu-btn {
  display: flex; width: 44px; height: 44px;
  flex-direction: column; align-items: center; justify-content: center;
  gap: 6px; border-radius: 12px;
}
@media (min-width: 768px) { .nav__menu-btn { display: none; } }
.nav__menu-bar {
  display: block; width: 20px; height: 2.5px;
  background: var(--foreground); border-radius: 2px;
  transition: transform 250ms ease, opacity 150ms ease;
}
.nav__menu-btn[aria-expanded="true"] .nav__menu-bar:first-child { transform: translateY(4.25px) rotate(45deg); }
.nav__menu-btn[aria-expanded="true"] .nav__menu-bar:last-child { transform: translateY(-4.25px) rotate(-45deg); }

.mobile-menu { display: none; padding: 1rem 1.25rem; background: var(--background); border-bottom: 1px solid var(--border); }
.mobile-menu[aria-hidden="false"] { display: block; }
.mobile-menu__links { display: flex; flex-direction: column; gap: 0.25rem; }
.mobile-menu__links a {
  font-size: 1rem; font-weight: 500; color: var(--muted-foreground);
  padding: 1rem; border-radius: var(--radius); transition: all 150ms ease; min-height: 48px; display: flex; align-items: center;
}
.mobile-menu__links a:hover { color: var(--foreground); background: rgba(17, 22, 31, 0.05); }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative;
  padding-top: 4rem; padding-bottom: 4rem;
}
@media (min-width: 640px) { .hero { padding-top: 2rem; padding-bottom: 3rem; } }

.hero__blob {
  position: absolute; border-radius: 50%;
  filter: blur(64px); pointer-events: none;
}
.hero__blob--1 { width: 18rem; height: 18rem; background: var(--brand-mint); opacity: 0.6; top: -2.5rem; left: -5rem; animation: blob 14s ease-in-out infinite; }
.hero__blob--2 { width: 18rem; height: 18rem; background: var(--brand-accent); opacity: 0.5; top: 10rem; right: -5rem; animation: blob 14s ease-in-out infinite; animation-delay: -6s; }

.hero__inner {
  max-width: var(--max-width); margin: 0 auto;
  padding: 0 1.25rem;
  display: grid; gap: 2.5rem; align-items: center;
  position: relative; z-index: 1;
}
@media (min-width: 640px) { .hero__inner { padding: 0 2rem; } }
@media (min-width: 1024px) { .hero__inner { grid-template-columns: 1.3fr 1fr; } }

.hero__badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  border-radius: 9999px;
  border: 1px solid rgba(17, 22, 31, 0.15);
  background: var(--card);
  padding: 0.375rem 1rem;
  font-size: 0.875rem; font-weight: 500;
  box-shadow: 0 1px rgba(17, 22, 31, 0.06), 0 14px 32px -18px rgba(17, 22, 31, 0.16);
  position: relative;
  z-index: 1;
}
.hero__badge-dot {
  position: relative; width: 0.5rem; height: 0.5rem;
}
.hero__badge-dot::before {
  content: ''; position: absolute; inset: 0;
  border-radius: 50%; background: var(--primary);
  opacity: 0.75; animation: ping 1s cubic-bezier(0, 0, 0.2, 1) infinite;
}
.hero__badge-dot::after {
  content: ''; position: relative; display: block;
  width: 0.5rem; height: 0.5rem;
  border-radius: 50%; background: var(--primary);
}

.hero__name {
  margin-top: 1.5rem;
  font-size: 3rem; line-height: 0.95; letter-spacing: -0.03em;
}
@media (min-width: 640px) { .hero__name { font-size: 4.5rem; } }
@media (min-width: 1024px) { .hero__name { font-size: 6rem; } }
.hero__name-red { color: var(--primary); }
.hero__name-italic { font-style: italic; font-weight: 300; }
.hero__name-squiggle { position: relative; display: inline; }

.hero__description {
  margin-top: 1.75rem; max-width: 36rem;
  font-size: 1.125rem; line-height: 1.625;
  color: var(--muted-foreground);
}
.hero__ctas {
  margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 0.75rem;
}
.hero__socials {
  margin-top: 2rem; display: flex; align-items: center; gap: 1.25rem;
  font-size: 0.875rem; color: var(--muted-foreground);
}
.hero__socials a { display: inline-flex; align-items: center; gap: 0.5rem; transition: color 150ms ease; }
.hero__socials a:hover { color: var(--foreground); }
.hero__socials svg { width: 1rem; height: 1rem; }

/* Hero cards grid */
.hero__cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.hero-card {
  position: relative;
  overflow: hidden;
  border-radius: calc(var(--radius) + 12px);
  border: 2px solid #11161f;
  transition: transform 150ms ease;
  box-shadow: 3px 3px rgba(17, 22, 31, 0.55);
}
.hero-card:hover { transform: translateY(-2px); }
.hero-card__inner {
  position: relative;
  z-index: 1;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.hero-card__icon {
  display: inline-grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: calc(var(--radius) + 4px);
  backdrop-filter: blur(8px);
  font-size: 1.25rem;
}
.hero-card__title {
  margin-top: 1rem;
  font-size: 1.5rem;
  font-weight: 800;
  font-family: 'Bricolage Grotesque', system-ui, sans-serif;
  letter-spacing: -0.03em;
}
.hero-card__subtitle {
  margin-top: 0.25rem;
  font-size: 0.875rem;
  line-height: 1.4;
  opacity: 0.9;
}
.hero-card__blob {
  position: absolute;
  right: -1.5rem;
  bottom: -1.5rem;
  width: 7rem;
  height: 7rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  pointer-events: none;
}

/* Card colors */
div.hero-card--green {
  background-color: #a0debc !important;
  color: #11161f;
}
div.hero-card--green .hero-card__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  justify-content: center;
  min-height: 140px;
}
div.hero-card--green .hero-card__icon {
  background: rgba(255, 255, 255, 0.4);
}
div.hero-card--green .hero-card__blob {
  width: 18rem;
  height: 18rem;
  right: -3rem;
  bottom: -3rem;
}
div.hero-card--red {
  background-color: #d24d45 !important;
  color: #fff;
}
div.hero-card--red .hero-card__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  justify-content: center;
  min-height: 120px;
}
div.hero-card--red .hero-card__icon {
  background: rgba(255, 255, 255, 0.3);
}
div.hero-card--blue {
  background-color: #346ecd !important;
  color: #fff;
}
div.hero-card--blue .hero-card__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  justify-content: center;
  min-height: 120px;
}
div.hero-card--blue .hero-card__icon {
  background: rgba(255, 255, 255, 0.3);
}
div.hero-card--yellow {
  background-color: #f9dd73 !important;
  color: #11161f;
}
div.hero-card--yellow .hero-card__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  justify-content: center;
  min-height: 120px;
}
div.hero-card--yellow .hero-card__icon {
  background: rgba(255, 255, 255, 0.4);
}
div.hero-card--yellow .hero-card__blob {
  width: 18rem;
  height: 18rem;
  right: -3rem;
  bottom: -3rem;
}
div.col-span-2 {
  grid-column: span 2;
}
div.hero-card--green.col-span-2 {
  aspect-ratio: auto;
}

/* ==========================================================================
   SECTION LABEL (pill badge)
   ========================================================================== */
.section-pill {
  display: inline-flex; align-items: center; gap: 0.5rem;
  border-radius: 9999px;
  background: var(--foreground); color: var(--background);
  padding: 0.375rem 1rem;
  font-size: 0.75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em;
}
.section-pill svg { width: 0.875rem; height: 0.875rem; }

/* ==========================================================================
   ABOUT
   ========================================================================== */
.about { position: relative; padding: 6rem 0; }
.about__inner {
  max-width: var(--max-width); margin: 0 auto; padding: 0 1.25rem;
}
@media (min-width: 640px) { .about__inner { padding: 0 2rem; } }
.about__content {
  margin-top: 1.5rem;
  display: grid; gap: 2.5rem; align-items: start;
}
@media (min-width: 1024px) { .about__content { grid-template-columns: 1fr 1.4fr; } }
.about__photo {
  position: relative; overflow: hidden;
  border-radius: calc(var(--radius) + 12px);
  aspect-ratio: 1; border: 2px solid var(--foreground);
  box-shadow: 3px 3px rgba(17, 22, 31, 0.55);
}
.about__photo-bg {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  background: var(--accent); color: var(--brand-ink);
}
.about__text h2 {
  font-size: 2.25rem; line-height: 1.02;
}
@media (min-width: 640px) { .about__text h2 { font-size: 3.75rem; } }
.about__text p {
  margin-top: 1rem; font-size: 1.125rem; line-height: 1.625;
  color: var(--muted-foreground);
}

/* ==========================================================================
   SKILLS
   ========================================================================== */
.skills { position: relative; padding: 6rem 0; }
.skills__inner { max-width: var(--max-width); margin: 0 auto; padding: 0 1.25rem; }
@media (min-width: 640px) { .skills__inner { padding: 0 2rem; } }
.skills__header { margin-bottom: 3rem; }
.skills__grid { display: grid; gap: 1.25rem; }
@media (min-width: 640px) { .skills__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 768px) { .skills__grid { grid-template-columns: repeat(3, 1fr); } }

.skill-card {
  position: relative; overflow: hidden;
  border-radius: calc(var(--radius) + 12px);
  padding: 1.5rem;
  transition: transform 150ms ease;
}
.skill-card:hover { transform: translateY(-4px); }
.skill-card__title {
  font-family: 'Bricolage Grotesque', system-ui, sans-serif;
  font-size: 1.125rem; font-weight: 800;
  letter-spacing: -0.03em; margin-bottom: 1rem;
}
.skill-card__list { display: flex; flex-direction: column; gap: 0.25rem; }
.skill-card__list li { font-size: 0.875rem; font-weight: 500; opacity: 0.9; }
.skill-card__blob {
  position: absolute; right: -1.5rem; bottom: -1.5rem;
  width: 9rem; height: 9rem; border-radius: 50%;
  background: rgba(255, 255, 255, 0.15); pointer-events: none;
}

.skill-card--green { background: var(--brand-mint); color: var(--secondary-foreground); }
.skill-card--red { background: var(--brand-red); color: #fff; }
.skill-card--blue { background: var(--brand-blue); color: #fff; }
.skill-card--yellow { background: var(--brand-yellow); color: var(--brand-ink); }
.skill-card--purple { background: #9b7dd4; color: #fff; }
.skill-card--teal { background: #5ec4b6; color: #fff; }
.skill-card--orange { background: #f5a623; color: var(--brand-ink); }
.skill-card--pink { background: #e88dba; color: #fff; }
.skill-card--indigo { background: #7c8eda; color: #fff; }

/* ==========================================================================
   PROJECTS
   ========================================================================== */
.projects { position: relative; padding: 6rem 0; }
.projects__inner { max-width: var(--max-width); margin: 0 auto; padding: 0 1.25rem; }
@media (min-width: 640px) { .projects__inner { padding: 0 2rem; } }
.projects__header { margin-bottom: 3rem; }
.projects__list {
  display: grid; gap: 1.25rem;
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 640px) { .projects__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .projects__list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Project cards — aimanhanif.com style */
.project-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: calc(var(--radius) + 12px);
  overflow: hidden;
  border: 2px solid var(--brand-ink);
  box-shadow: 3px 3px rgba(17, 22, 31, 0.55);
  transition: transform 150ms ease;
}
.project-card:hover { transform: translateY(-4px); }

/* Preview area (dark top) */
.project-card__preview {
  position: relative;
  background: #11161f;
  padding: 1.5rem;
  min-height: 16rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
@media (min-width: 640px) { .project-card__preview { min-height: 18rem; padding: 1.75rem; } }
@media (min-width: 1024px) { .project-card__preview { min-height: 20rem; } }

.project-card__screenshot {
  display: block;
  width: 85%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  max-width: 22rem;
  flex-shrink: 0;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  border: 1px solid rgba(255,255,255,0.1);
  transition: transform 300ms ease;
}
.project-card:hover .project-card__screenshot { transform: scale(1.03); }

/* No screenshot placeholder */
.project-card__placeholder {
  display: flex; flex-direction: column;
  align-items: center; gap: 0.75rem;
  color: rgba(255,255,255,0.4);
}
.project-card__placeholder-icon {
  font-size: 3rem; opacity: 0.3;
}
.project-card__placeholder-text {
  font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em;
  opacity: 0.4;
}

/* Status badge (PINNED / LIVE) */
.project-card__status {
  position: absolute; top: 1rem; left: 1rem;
  display: inline-flex; align-items: center; gap: 0.375rem;
  background: var(--brand-ink); color: var(--brand-cream);
  padding: 0.3rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.6875rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  z-index: 2;
}
.project-card__status svg { width: 0.75rem; height: 0.75rem; }

/* Number badge (#01) */
.project-card__number {
  position: absolute; top: 1rem; right: 1rem;
  background: var(--brand-cream); color: var(--brand-ink);
  padding: 0.3rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.6875rem; font-weight: 700;
  font-family: 'Space Mono', monospace;
  letter-spacing: 0.05em;
  z-index: 2;
}

/* Info area (colored bottom) */
.project-card__info {
  padding: 1.25rem;
  position: relative;
  display: flex;
  flex: 1;
  flex-direction: column;
}

.project-card__name {
  font-family: 'Bricolage Grotesque', system-ui, sans-serif;
  font-size: 1.5rem; font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
@media (min-width: 640px) { .project-card__name { font-size: 1.75rem; } }

.project-card__url {
  margin-top: 0.375rem;
  font-size: 0.8125rem;
  opacity: 0.7;
}

.project-card__description {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  line-height: 1.6;
  opacity: 0.85;
}

.project-card__tags {
  margin-top: 0.75rem;
  margin-bottom: 1rem;
  display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center;
}

.project-card__tag {
  display: inline-block;
  padding: 0.2rem 0.625rem;
  border-radius: 9999px;
  font-size: 0.6875rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em;
  border: 1.5px solid currentColor;
  opacity: 0.7;
}

.project-card__visit {
  display: inline-flex; align-items: center; gap: 0.5rem;
  margin-top: auto;
  align-self: flex-start;
  padding: 0.625rem 1.25rem;
  background: var(--brand-ink); color: var(--brand-cream);
  border-radius: 9999px;
  font-size: 0.8125rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  text-decoration: none;
  transition: transform 150ms ease, box-shadow 150ms ease;
}
.project-card__visit:hover {
  transform: translateY(-2px);
  box-shadow: 3px 3px rgba(17,22,31,0.55);
}
.project-card__visit svg { width: 0.875rem; height: 0.875rem; }

/* Private label */
.project-card__private {
  display: inline-flex; align-items: center; gap: 0.375rem;
  margin-top: auto;
  align-self: flex-start;
  padding: 0.625rem 1.25rem;
  background: rgba(17,22,31,0.15); color: currentColor;
  border-radius: 9999px;
  font-size: 0.8125rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  opacity: 0.5;
}

/* Card color themes */
.project-card--green .project-card__info { background: var(--brand-mint); color: var(--secondary-foreground); }
.project-card--red .project-card__info { background: var(--brand-red); color: #fff; }
.project-card--blue .project-card__info { background: var(--brand-blue); color: #fff; }
.project-card--yellow .project-card__info { background: var(--brand-yellow); color: var(--brand-ink); }
.project-card--purple .project-card__info { background: #9b7dd4; color: #fff; }
.project-card--teal .project-card__info { background: #5ec4b6; color: #fff; }

/* ==========================================================================
   EXPERIENCE
   ========================================================================== */
.experience { position: relative; padding: 6rem 0; }
.experience__inner { max-width: var(--max-width); margin: 0 auto; padding: 0 1.25rem; }
@media (min-width: 640px) { .experience__inner { padding: 0 2rem; } }
.experience__header { margin-bottom: 3rem; }
.experience__roles { display: flex; flex-direction: column; gap: 1.25rem; margin-bottom: 3rem; }

.role-card {
  position: relative; overflow: hidden;
  border-radius: calc(var(--radius) + 12px);
  padding: 1.25rem 1.25rem;
  transition: transform 150ms ease;
  box-shadow: 0 1px rgba(17, 22, 31, 0.06), 0 14px 32px -18px rgba(17, 22, 31, 0.16);
}
.role-card:hover { transform: translateY(-4px); }
.role-card__blob {
  position: absolute; right: -2.5rem; top: -2.5rem;
  width: 11rem; height: 11rem; border-radius: 50%;
  background: rgba(255, 255, 255, 0.15); pointer-events: none;
  transition: transform 700ms ease;
}
.role-card:hover .role-card__blob { transform: scale(1.25); }

.role-card__header {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 1rem;
}
.role-card__date {
  font-size: 0.75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em; opacity: 0.8;
}
.role-card__title {
  margin-top: 0.5rem; font-size: 1.5rem; font-weight: 800;
  font-family: 'Bricolage Grotesque', system-ui, sans-serif;
  letter-spacing: -0.03em;
}
@media (min-width: 640px) { .role-card__title { font-size: 1.875rem; } }
.role-card__company { margin-top: 0.25rem; font-size: 0.875rem; opacity: 0.9; }
.role-card__description { margin-top: 0.75rem; font-size: 0.875rem; line-height: 1.625; }
.role-card__content { display: grid; gap: 1.5rem; }
@media (min-width: 1024px) { .role-card__content { grid-template-columns: 1fr 2fr; } }

.role-card--green { background: var(--brand-mint); color: var(--secondary-foreground); }
.role-card--red { background: var(--brand-red); color: #fff; }
.role-card--blue { background: var(--brand-blue); color: #fff; }

.experience__skills { display: grid; gap: 1.25rem; }
@media (min-width: 640px) { .experience__skills { grid-template-columns: repeat(2, 1fr); } }

.skill-area {
  border-radius: calc(var(--radius) + 12px);
  padding: 1.25rem;
  transition: transform 150ms ease;
}
.skill-area:hover { transform: translateY(-4px) rotate(-0.5deg); }
.skill-area h3 {
  font-family: 'Bricolage Grotesque', system-ui, sans-serif;
  font-size: 1rem; font-weight: 800; letter-spacing: -0.03em;
}
.skill-area p { margin-top: 0.25rem; font-size: 0.875rem; opacity: 0.8; }

.skill-area--green { background: var(--brand-mint); color: var(--secondary-foreground); }
.skill-area--red { background: var(--brand-red); color: #fff; }
.skill-area--blue { background: var(--brand-blue); color: #fff; }
.skill-area--yellow { background: var(--brand-yellow); color: var(--brand-ink); }

/* ==========================================================================
   PROCESS
   ========================================================================== */
.process { position: relative; padding: 6rem 0; }
.process__inner { max-width: var(--max-width); margin: 0 auto; padding: 0 1.25rem; }
@media (min-width: 640px) { .process__inner { padding: 0 2rem; } }
.process__header { margin-bottom: 3rem; }
.process__flow { display: grid; gap: 1.25rem; }
@media (min-width: 640px) { .process__flow { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 768px) { .process__flow { grid-template-columns: repeat(3, 1fr); } }

.process-step {
  border-radius: calc(var(--radius) + 12px);
  padding: 1.5rem; text-align: center;
  transition: transform 150ms ease;
}
.process-step:hover { transform: translateY(-4px) rotate(-1deg); }
.process-step__num {
  font-family: 'Space Mono', monospace;
  font-size: 1.5rem; font-weight: 700; opacity: 0.4;
  display: block; margin-bottom: 0.5rem;
}
.process-step h3 {
  font-family: 'Bricolage Grotesque', system-ui, sans-serif;
  font-size: 1.125rem; font-weight: 800; letter-spacing: -0.03em;
}
.process-step p { margin-top: 0.25rem; font-size: 0.875rem; opacity: 0.8; }

.process-step--green { background: var(--brand-mint); color: var(--secondary-foreground); }
.process-step--red { background: var(--brand-red); color: #fff; }
.process-step--blue { background: var(--brand-blue); color: #fff; }
.process-step--yellow { background: var(--brand-yellow); color: var(--brand-ink); }
.process-step--purple { background: #9b7dd4; color: #fff; }
.process-step--teal { background: #5ec4b6; color: #fff; }

/* ==========================================================================
   CONTACT
   ========================================================================== */
.contact {
  position: relative; padding: 6rem 0;
}
.contact__inner { max-width: var(--max-width); margin: 0 auto; padding: 0 1.25rem; }
@media (min-width: 640px) { .contact__inner { padding: 0 2rem; } }
.contact__card {
  position: relative; overflow: hidden;
  border-radius: 2.5rem;
  background: var(--foreground); color: var(--background);
  padding: 2.5rem;
}
@media (min-width: 640px) { .contact__card { padding: 4rem; } }
.contact__blob {
  position: absolute; border-radius: 50%; filter: blur(64px); pointer-events: none;
}
.contact__blob--1 { width: 18rem; height: 18rem; background: rgba(210, 77, 69, 0.4); top: -5rem; right: -5rem; }
.contact__blob--2 { width: 18rem; height: 18rem; background: rgba(160, 222, 188, 0.3); bottom: -5rem; left: -5rem; }

.contact__header {
  display: inline-flex; align-items: center; gap: 0.5rem;
  border-radius: 9999px;
  background: var(--foreground); color: var(--background);
  padding: 0.375rem 1rem;
  font-size: 0.75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em;
}
.contact__title {
  margin-top: 1.25rem;
  font-size: 2.25rem; line-height: 1.02;
}
@media (min-width: 640px) { .contact__title { font-size: 4.5rem; } }
.contact__text {
  margin-top: 1rem; max-width: 36rem;
  font-size: 1rem; line-height: 1.625; opacity: 0.8;
}
@media (min-width: 640px) { .contact__text { font-size: 1.125rem; } }

.contact-form {
  position: relative;
  z-index: 1;
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  max-width: 52rem;
}
.contact-form__field { display: flex; flex-direction: column; gap: 0.5rem; }
.contact-form__field--full { grid-column: 1 / -1; }
.contact-form__field label {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.contact-form__field input,
.contact-form__field select,
.contact-form__field textarea {
  width: 100%;
  border: 1px solid rgba(250, 247, 238, 0.25);
  border-radius: 0.875rem;
  background: rgba(250, 247, 238, 0.1);
  color: var(--background);
  padding: 0.875rem 1rem;
  font: inherit;
  outline: none;
  transition: border-color 150ms ease, background 150ms ease, box-shadow 150ms ease;
}
.contact-form__field select {
  min-height: 3.25rem;
  color: var(--background);
  color-scheme: dark;
  cursor: pointer;
  appearance: none;
  padding-right: 3rem;
  background-image: linear-gradient(45deg, transparent 50%, #faf7ee 50%), linear-gradient(135deg, #faf7ee 50%, transparent 50%);
  background-position: calc(100% - 1.25rem) 50%, calc(100% - 0.95rem) 50%;
  background-size: 0.4rem 0.4rem, 0.4rem 0.4rem;
  background-repeat: no-repeat;
}
.contact-form__field select:invalid { color: rgba(250, 247, 238, 0.62); }
.contact-form__field select option {
  background: var(--foreground);
  color: var(--background);
}
.contact-form__field select option[disabled] { color: #aeb3bb; }
.contact-form__field textarea { min-height: 9rem; resize: vertical; }
.contact-form__field input:focus,
.contact-form__field select:focus,
.contact-form__field textarea:focus {
  border-color: var(--brand-mint);
  background: rgba(250, 247, 238, 0.15);
  box-shadow: 0 0 0 3px rgba(160, 222, 188, 0.2);
}
.contact-form__field textarea::placeholder { color: rgba(250, 247, 238, 0.5); }
.contact-form__hint,
.contact-form__privacy { font-size: 0.75rem; line-height: 1.5; opacity: 0.7; }
.contact-form__footer { display: flex; align-items: center; gap: 1rem; }
.contact-form__submit { flex: 0 0 auto; }
.contact-form__submit[disabled] { cursor: wait; opacity: 0.65; transform: none; }
.contact-form__privacy a { text-decoration: underline; text-underline-offset: 0.2em; }
.contact-form__status { min-height: 1.5rem; font-size: 0.875rem; font-weight: 600; }
.contact-form__status.is-success { color: var(--brand-mint); }
.contact-form__status.is-error { color: #ff9c96; }
.contact-form__honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.contact__buttons {
  margin-top: 2.5rem; display: flex; flex-wrap: wrap; gap: 0.75rem;
}
.contact__links {
  margin-top: 2.5rem;
  display: grid; gap: 1rem;
}
@media (min-width: 640px) { .contact__links { grid-template-columns: repeat(3, 1fr); } }

.contact-link {
  border-radius: calc(var(--radius) + 4px);
  background: rgba(250, 247, 238, 0.1);
  border: 1px solid rgba(250, 247, 238, 0.15);
  padding: 1.25rem; transition: background 150ms ease; height: 100%;
}
.contact-link:hover { background: rgba(250, 247, 238, 0.2); }
.contact-link__label {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em; opacity: 0.8;
}
.contact-link__label svg { width: 1.25rem; height: 1.25rem; }
.contact-link__value { margin-top: 0.5rem; font-weight: 600; }

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  border-radius: 9999px; font-weight: 600;
  padding: 0.75rem 1.5rem;
  transition: all 150ms ease;
  min-height: 44px; touch-action: manipulation;
}
.btn svg { width: 1rem; height: 1rem; }
.btn--primary { background: var(--foreground); color: var(--background); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 3px 3px rgba(17, 22, 31, 0.55); }
.btn--outline { border: 2px solid var(--foreground); background: var(--card); color: var(--foreground); }
.btn--outline:hover { background: var(--accent); }
.btn--red { background: var(--brand-red); color: #fff; border: none; }
.btn--red:hover { transform: scale(1.05); }
.btn--green { background: #25D366; color: #fff; border: none; }
.btn--green:hover { transform: scale(1.05); }
.btn--ghost { border: 2px solid rgba(250, 247, 238, 0.3); background: rgba(250, 247, 238, 0.1); color: var(--background); }
.btn--ghost:hover { background: rgba(250, 247, 238, 0.2); }
.btn--small { font-size: 0.75rem; padding: 0.25rem 0.625rem; min-height: 28px; }

/* Tech tags */
.tech-tag {
  display: inline-flex; align-items: center; gap: 0.375rem;
  border-radius: 9999px;
  background: var(--background); color: var(--foreground);
  padding: 0.375rem 0.75rem;
  font-size: 0.875rem; font-weight: 600;
  border: 2px solid rgba(17, 22, 31, 0.1);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  transition: transform 150ms ease;
}
.tech-tag:hover { transform: translateY(-2px); }
.tech-tag svg { width: 0.875rem; height: 0.875rem; opacity: 0.7; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  border-top: 1px solid rgba(17, 22, 31, 0.1);
  padding: 2rem 0;
}
.footer__inner {
  max-width: var(--max-width); margin: 0 auto;
  padding: 0 1.25rem;
  display: flex; flex-direction: column; align-items: center;
  gap: 0.75rem; text-align: center;
  font-size: 0.75rem; color: var(--muted-foreground);
}
@media (min-width: 640px) {
  .footer__inner { flex-direction: row; justify-content: space-between; text-align: left; font-size: 0.875rem; padding: 0 2rem; }
}
.footer a { transition: color 150ms ease; }
.footer a:hover { color: var(--foreground); }

/* ==========================================================================
   BACK TO TOP
   ========================================================================== */
.back-to-top {
  position: fixed; bottom: 1rem; right: 1rem; z-index: 50;
  display: inline-flex; align-items: center; gap: 0.5rem;
  border-radius: 9999px;
  border: 2px solid var(--foreground); background: var(--card);
  padding: 0.5rem 1rem;
  font-size: 0.875rem; font-weight: 700;
  box-shadow: 3px 3px rgba(17, 22, 31, 0.55);
  opacity: 0; transform: translateY(12px);
  pointer-events: none;
  transition: opacity 250ms ease, transform 500ms cubic-bezier(0.34, 1.56, 0.64, 1);
}
.back-to-top.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.back-to-top:hover { background: var(--foreground); color: var(--background); }

/* ==========================================================================
   CACHE CONSENT
   ========================================================================== */
.cache-banner {
  position: fixed; bottom: 1rem; left: 1rem; z-index: 999999;
  max-width: 28rem;
  background: var(--card); color: var(--foreground);
  border: 2px solid var(--foreground);
  border-radius: calc(var(--radius) + 12px);
  padding: 1.5rem;
  box-shadow: 3px 3px rgba(17, 22, 31, 0.55);
  transform: translateY(120%); transition: transform 250ms ease;
}
.cache-banner.visible { transform: translateY(0); }
.cache-banner[hidden] { display: none; }
.cache-banner__title {
  font-family: 'Bricolage Grotesque', system-ui, sans-serif;
  font-size: 1rem; font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 0.5rem;
}
.cache-banner__text { font-size: 0.875rem; color: var(--muted-foreground); line-height: 1.625; margin-bottom: 1rem; }
.cache-banner__actions { display: flex; gap: 0.5rem; }
.cache-banner__actions .btn--primary { background: var(--foreground); color: var(--background); border: 2px solid var(--foreground); border-radius: 9999px; padding: 0.5rem 1.25rem; font-size: 0.875rem; font-weight: 700; }
.cache-banner__actions .btn--outline { background: transparent; color: var(--foreground); border: 2px solid var(--foreground); border-radius: 9999px; padding: 0.5rem 1.25rem; font-size: 0.875rem; font-weight: 700; }
body.cache-visible .back-to-top { bottom: 5rem; left: 1rem; }
@media (max-width: 639px) {
  .cache-banner { left: 0.5rem; right: 0.5rem; bottom: 0.5rem; max-width: none; }
  body.cache-visible .back-to-top { bottom: 12rem; }
}

/* ==========================================================================
   RESPONSIVE — Mobile First
   ========================================================================== */

/* --- Small screens (up to 639px) --- */
@media (max-width: 639px) {
  /* Nav */
  .nav__inner { padding: 0 1rem; height: 3.5rem; }
  .nav__links { display: none; }
  .nav__menu-btn { display: flex; }
  .nav__logo { font-size: 1.125rem; }
  .nav__logo-badge { width: 2rem; height: 2rem; font-size: 0.75rem; }
  .nav__actions .btn--red { padding: 0.375rem 0.75rem; font-size: 0.75rem; }

  /* Hero */
  .hero { padding-top: 3.5rem; padding-bottom: 2rem; }
  .hero__inner { grid-template-columns: 1fr; gap: 2rem; padding: 0 1rem; }
  .hero__name { font-size: 2.25rem; line-height: 0.95; }
  .hero__description { font-size: 1rem; max-width: none; }
  .hero__ctas { flex-direction: column; gap: 0.5rem; }
  .hero__ctas .btn { width: 100%; text-align: center; }
  .hero__socials { flex-wrap: wrap; gap: 1rem; font-size: 0.8125rem; }
  .hero__cards { grid-template-columns: 1fr; gap: 0.75rem; }
  div.col-span-2, div.hero-card--green.col-span-2, div.hero-card--yellow.col-span-2 { grid-column: span 1; }
  div.hero-card--green.col-span-2 { aspect-ratio: auto; }
  .hero-card__title { font-size: 1.25rem; }
  .hero__blob { display: none; }

  /* Section pills */
  .section-pill { font-size: 0.6875rem; padding: 0.25rem 0.75rem; }

  /* About */
  .about { padding: 3rem 0; }
  .about__inner { padding: 0 1rem; }
  .about__text h2 { font-size: 1.75rem; line-height: 1.02; }
  .about__text p { font-size: 1rem; }
  .about__photo { display: none; }

  /* Skills */
  .skills { padding: 3rem 0; }
  .skills__inner { padding: 0 1rem; }
  .skills__grid { grid-template-columns: 1fr; gap: 0.75rem; }
  .skill-card { padding: 1.25rem; }
  .skill-card__title { font-size: 1rem; }

  /* Projects */
  .projects { padding: 3rem 0; }
  .projects__inner { padding: 0 1rem; }
  .projects__list { grid-template-columns: 1fr; gap: 0.75rem; }
  .project-card__preview { min-height: 12rem; }
  .project-card__name { font-size: 1.25rem; }
  .project-card__info { padding: 1rem; }

  /* Experience */
  .experience { padding: 3rem 0; }
  .experience__inner { padding: 0 1rem; }
  .experience__roles { gap: 0.75rem; }
  .role-card { padding: 1.25rem; }
  .role-card__title { font-size: 1.25rem; }
  .role-card__content { grid-template-columns: 1fr; }
  .experience__skills { grid-template-columns: 1fr; gap: 0.75rem; }

  /* Process */
  .process { display: none; }

  /* Contact */
  .contact { padding: 3rem 0; }
  .contact__inner { padding: 0 1rem; }
  .contact__card { padding: 1.5rem; border-radius: 1.5rem; }
  .contact__title { font-size: 1.75rem; }
  .contact__text { font-size: 0.9375rem; }
  .contact__buttons { flex-direction: column; }
  .contact__buttons .btn { width: 100%; text-align: center; }
  .contact__links { grid-template-columns: 1fr; gap: 0.5rem; }
  .contact-form { grid-template-columns: 1fr; }
  .contact-form__field--full { grid-column: auto; }
  .contact-form__footer { align-items: stretch; flex-direction: column; }
  .contact-form__submit { width: 100%; }

  /* Footer */
  .footer { padding: 1.5rem 0; }
  .footer__inner { padding: 0 1rem; flex-direction: column; text-align: center; gap: 0.5rem; }

  /* Back to top */
  .back-to-top { bottom: 0.5rem; right: 0.5rem; font-size: 0.75rem; padding: 0.375rem 0.75rem; }

  /* Cache banner */
  #cookie-banner { left: 0.5rem; right: 0.5rem; bottom: 0.5rem; max-width: none; padding: 1rem; }
}

/* --- Medium screens (640px - 767px) --- */
@media (min-width: 640px) and (max-width: 767px) {
  .hero__inner { grid-template-columns: 1fr; gap: 2rem; }
  .hero__name { font-size: 3.5rem; }
  .hero__cards { grid-template-columns: repeat(2, 1fr); }
  div.hero-card--green.col-span-2, div.hero-card--yellow.col-span-2 { grid-column: span 2; }
  .skills__grid { grid-template-columns: repeat(2, 1fr); }  .projects__list { grid-template-columns: repeat(2, 1fr); }
  .role-card__content { grid-template-columns: 1fr; }
  .experience__skills { grid-template-columns: repeat(2, 1fr); }
}

/* --- Medium screens (768px - 1023px) --- */
@media (min-width: 768px) and (max-width: 1023px) {
  .hero__inner { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .hero__name { font-size: 3.5rem; }
  .projects__list { grid-template-columns: repeat(2, 1fr); }
  .skills__grid { grid-template-columns: repeat(3, 1fr); }
  .role-card__content { grid-template-columns: 1fr 2fr; }
  .experience__skills { grid-template-columns: repeat(2, 1fr); }
  .contact__links { grid-template-columns: repeat(3, 1fr); }
}

/* --- Large screens (1024px+) --- */
@media (min-width: 1024px) {
  .hero__inner { grid-template-columns: 1.3fr 1fr; }
  .hero__name { font-size: 4.5rem; }
  .projects__list { grid-template-columns: repeat(3, 1fr); }
  .skills__grid { grid-template-columns: repeat(3, 1fr); }
  .role-card__content { grid-template-columns: 1fr 2fr; }
  .contact__links { grid-template-columns: repeat(3, 1fr); }
}

/* ==========================================================================
   KHU CHOOSES LILI
   The fetched portfolio system remains the base. These components translate
   it into a pink, heart-filled scrapbook for this couple's story.
   ========================================================================== */

:root {
  --brand-cream: #fff7fb;
  --brand-ink: #4a1830;
  --brand-red: #d62969;
  --brand-mint: #ffd4e3;
  --brand-blue: #8f1d4c;
  --brand-yellow: #ffe7f0;
  --background: var(--brand-cream);
  --foreground: var(--brand-ink);
  --card: #fffafd;
  --muted: #fbe8f0;
  --muted-foreground: #704159;
  --accent: #ffb7d1;
  --border: #6f1d4630;
  --primary: var(--brand-red);
  --love-gutter: clamp(1rem, 4vw, 2rem);
  --love-section: clamp(4.5rem, 9vw, 8rem);
}

body { min-width: 20rem; }
main { overflow: clip; }
section { scroll-margin-top: 5rem; }
.nav__logo-accent { color: var(--brand-red); }
.nav__logo-badge { border-radius: 50%; background: var(--brand-red); color: #fff; }
.nav { background: rgba(255, 247, 251, 0.94); border-bottom-color: rgba(143, 29, 76, 0.18); }

.music-quick-toggle {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.9rem;
  border: 2px solid var(--foreground);
  border-radius: 999px;
  background: var(--card);
  color: var(--foreground);
  font-size: 0.8rem;
  font-weight: 700;
}
.music-quick-toggle:hover { background: var(--accent); }
.music-quick-toggle__mark { width: 0.9rem; height: 1rem; background: none; }
.music-quick-toggle__mark::before { content: '♥'; color: var(--brand-red); line-height: 1; }
.music-quick-toggle[aria-pressed="true"] .music-quick-toggle__mark::before { color: var(--brand-blue); }

.eyebrow {
  margin: 0 0 1rem;
  font-family: 'Space Mono', monospace;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-red);
}
.eyebrow--light { color: var(--brand-mint); }
.eyebrow::before { content: '♡ '; }

.love-hero {
  min-height: calc(100dvh - 4rem);
  display: grid;
  align-items: center;
  padding: clamp(3.5rem, 8vw, 7rem) 0;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='72' viewBox='0 0 24 24'%3E%3Cpath d='M12 21S3 15.6 3 9a5 5 0 0 1 9-3 5 5 0 0 1 9 3c0 6.6-9 12-9 12Z' fill='%23d62969' fill-opacity='.08'/%3E%3C/svg%3E"),
    linear-gradient(135deg, #fffafd 0%, #ffe7f0 100%);
  background-size: 72px 72px, auto;
}
.love-hero__inner,
.story-section__inner,
.memories-section__inner,
.reasons-section__inner,
.numbers-section__inner,
.films-section__inner {
  width: min(100%, var(--max-width));
  margin-inline: auto;
  padding-inline: var(--love-gutter);
}
.love-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(18rem, 0.72fr);
  gap: clamp(2.5rem, 7vw, 7rem);
  align-items: center;
}
.love-hero__copy { min-width: 0; }
.love-hero__title {
  max-width: 12ch;
  font-size: clamp(3.5rem, 7.8vw, 7.7rem);
  line-height: 0.88;
  letter-spacing: -0.065em;
}
.love-hero__title span {
  display: block;
  color: var(--brand-red);
  font-style: italic;
  font-weight: 500;
}
.love-hero__title span::after { content: ' ♥'; font-size: 0.42em; font-style: normal; vertical-align: top; }
.love-hero__intro {
  max-width: 39rem;
  margin-top: 2rem;
  color: var(--muted-foreground);
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  line-height: 1.75;
}
.love-hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.love-hero__signature {
  margin-top: 2rem;
  font-family: 'Space Mono', monospace;
  font-weight: 700;
  color: var(--foreground);
}
.hero-portrait {
  position: relative;
  margin: 0;
  transform: rotate(2.5deg);
}
.hero-portrait__frame {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border: 3px solid var(--foreground);
  border-radius: 1.25rem;
  background: var(--brand-yellow);
  box-shadow: 10px 10px 0 var(--foreground);
}
.hero-portrait img { width: 100%; height: 100%; object-fit: cover; }
.hero-portrait figcaption {
  position: absolute;
  right: -1.2rem;
  bottom: -1.5rem;
  width: min(15rem, 72%);
  padding: 1rem;
  border: 2px solid var(--foreground);
  background: var(--brand-mint);
  box-shadow: 4px 4px 0 var(--foreground);
  transform: rotate(-5deg);
}
.hero-portrait figcaption span,
.hero-portrait figcaption strong { display: block; }
.hero-portrait figcaption span { font-family: 'Space Mono', monospace; font-size: 0.72rem; }
.hero-portrait figcaption strong { margin-top: 0.25rem; }

.story-section { padding: var(--love-section) 0; }
.section-intro { max-width: 50rem; }
.section-intro h2,
.reasons-section__heading h2 {
  font-size: clamp(2.8rem, 6vw, 5.5rem);
  line-height: 0.95;
}
.section-intro > p:last-child {
  max-width: 34rem;
  margin-top: 1.25rem;
  color: var(--muted-foreground);
  font-size: 1.05rem;
  line-height: 1.7;
}
.section-intro--split {
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(15rem, 0.6fr);
  gap: 3rem;
  align-items: end;
}
.section-intro--split > p:last-child { margin: 0; }

.story-track { margin-top: clamp(3rem, 7vw, 6rem); }
.story-beat {
  min-height: 14rem;
  display: grid;
  grid-template-columns: 7rem minmax(0, 1fr);
  gap: clamp(1.25rem, 4vw, 4rem);
  align-items: start;
  padding: clamp(1.5rem, 4vw, 3.5rem);
  border: 2px solid var(--foreground);
}
.story-beat + .story-beat { border-top: 0; }
.story-beat:nth-child(2) { margin-left: 8%; }
.story-beat:nth-child(3) { margin-right: 8%; }
.story-beat--mint { background: #ffd4e3; }
.story-beat--red { background: var(--brand-red); color: #fff; }
.story-beat--blue { background: var(--brand-blue); color: #fff; }
.story-beat--red .story-beat__number,
.story-beat--blue .story-beat__number { opacity: 0.82; }
.story-beat__number {
  font-family: 'Space Mono', monospace;
  font-size: clamp(2.4rem, 6vw, 5rem);
  font-weight: 700;
  line-height: 1;
  opacity: 0.55;
}
.story-beat__kicker { font-family: 'Space Mono', monospace; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; }
.story-beat h3 { margin-top: 0.5rem; font-size: clamp(1.8rem, 4vw, 3.5rem); line-height: 1; }
.story-beat div > p:last-child { max-width: 43rem; margin-top: 1rem; line-height: 1.75; }

.letter-section { padding: var(--love-section) var(--love-gutter); background: #ffc1d7; }
.letter-section__inner {
  width: min(100%, 68rem);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 0.55fr 1.45fr;
  gap: clamp(2rem, 7vw, 7rem);
  align-items: center;
  padding: clamp(2rem, 6vw, 5rem);
  border: 3px solid var(--foreground);
  background: var(--brand-blue);
  color: #fff;
  box-shadow: 12px 12px 0 var(--brand-red);
}
.letter-section__stamp {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 2px dashed var(--brand-mint);
  border-radius: 50%;
  color: var(--brand-mint);
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 800;
  transform: rotate(-8deg);
}
.letter-section__copy h2 { font-size: clamp(2.5rem, 5vw, 4.8rem); line-height: 0.98; }
.letter-section__copy > p:not(.eyebrow) { margin-top: 1.25rem; max-width: 45rem; line-height: 1.75; color: #fff7fb; }
.letter-section__copy .btn { margin-top: 2rem; }

.memories-section { padding: var(--love-section) 0; background: #fffafd; }
.memory-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(0.9rem, 2vw, 1.35rem);
  width: min(100%, 68rem);
  margin: 3.5rem auto 0;
  align-items: start;
}
.memory {
  min-width: 0;
  margin: 0;
  padding: 0.65rem 0.65rem 0.9rem;
  border: 2px solid var(--foreground);
  border-radius: 0.75rem;
  background: #fffafd;
  box-shadow: 5px 5px 0 var(--brand-red);
}
.memory:nth-child(1) { margin-top: 1rem; transform: rotate(-1.25deg); }
.memory:nth-child(2) { margin-top: 3.5rem; transform: rotate(1deg); }
.memory--wide { transform: rotate(-0.75deg); }
.memory:nth-child(4) { margin-top: 2rem; transform: rotate(1.5deg); }
.memory img { width: 100%; height: clamp(13rem, 21vw, 17rem); object-fit: cover; object-position: center; background: var(--muted); }
.memory figcaption { padding: 0.9rem 0.25rem 0; font-weight: 700; }
.memory figcaption::before { content: '♥ '; color: var(--brand-red); }

.reasons-section { padding: var(--love-section) 0; background: #ffd4e3; }
.reasons-section .eyebrow { color: var(--brand-blue); }
.reasons-section__inner { display: grid; grid-template-columns: minmax(16rem, 0.75fr) minmax(0, 1.25fr); gap: clamp(3rem, 8vw, 8rem); }
.reasons-section__heading { position: sticky; top: 7rem; align-self: start; }
.reason-lines { border-top: 2px solid var(--foreground); }
.reason-lines p { display: grid; grid-template-columns: 3rem 1fr auto; gap: 1rem; padding: 1.25rem 0; border-bottom: 2px solid var(--foreground); font-size: clamp(1.05rem, 2vw, 1.45rem); font-weight: 700; }
.reason-lines p::after { content: '♡'; color: var(--brand-red); }
.reason-lines span { font-family: 'Space Mono', monospace; font-size: 0.75rem; padding-top: 0.35rem; }
.reason-lines p { transition: background-color 180ms ease, padding-left 180ms ease; }
.reason-lines p::after { transition: color 180ms ease; }
.reason-lines p:hover { background: rgba(214, 41, 105, 0.08); padding-left: 0.75rem; }
.reason-lines p:hover::after { content: '♥'; }

.numbers-section { padding: var(--love-section) 0; }
.numbers-grid { display: grid; grid-template-columns: 0.7fr 0.7fr 1.3fr; gap: 1rem; margin-top: 4rem; }
.numbers-grid div { min-width: 0; padding: clamp(1.25rem, 3vw, 2.5rem); border: 2px solid var(--foreground); }
.numbers-grid div:nth-child(1) { background: var(--brand-red); color: #fff; }
.numbers-grid div:nth-child(2) { background: var(--brand-blue); color: #fff; }
.numbers-grid div:nth-child(3) { background: var(--brand-yellow); }
.numbers-grid dt { font-size: 0.8rem; font-weight: 700; }
.numbers-grid dd { margin: 0.5rem 0 0; font-family: 'Bricolage Grotesque', sans-serif; font-size: clamp(2.5rem, 6vw, 5.2rem); font-weight: 800; line-height: 1; overflow-wrap: anywhere; }

.music-section { padding: var(--love-section) var(--love-gutter); background: var(--brand-blue); color: #fff; }
.music-section .eyebrow { color: var(--brand-mint); }
.music-section__inner { width: min(100%, 58rem); margin-inline: auto; display: grid; grid-template-columns: minmax(12rem, 16rem) minmax(0, 1fr); gap: clamp(2.5rem, 7vw, 5rem); align-items: center; }
.record-cover { --record-size: clamp(12rem, 22vw, 16rem); width: var(--record-size); margin: 0; justify-self: center; transform: rotate(-3deg); }
.record-cover img { width: var(--record-size); height: var(--record-size); object-fit: cover; object-position: 50% 36%; border: 3px solid var(--foreground); border-radius: 1rem; box-shadow: 9px 9px 0 var(--foreground); }
.record-cover figcaption { display: inline-block; margin-top: -1rem; margin-left: 1rem; padding: 0.55rem 0.8rem; background: var(--brand-yellow); color: var(--foreground); border: 2px solid var(--foreground); font-family: 'Space Mono', monospace; font-size: 0.75rem; font-weight: 700; transform: rotate(3deg); }
.player h2 { font-size: clamp(3.2rem, 7vw, 6rem); line-height: 0.9; }
.player__artist { margin-top: 0.6rem; font-size: 1.15rem; }
.player__timeline { display: grid; grid-template-columns: 3rem minmax(0, 1fr) 3rem; gap: 0.75rem; align-items: center; margin-top: 2.5rem; font-family: 'Space Mono', monospace; font-size: 0.7rem; }
.player__timeline input { width: 100%; accent-color: var(--brand-yellow); min-height: 44px; }
.player__button { min-height: 52px; display: inline-flex; align-items: center; gap: 0.75rem; margin-top: 1.25rem; padding: 0.65rem 1.1rem; border: 2px solid var(--foreground); border-radius: 999px; background: var(--brand-yellow); color: var(--foreground); font-weight: 800; box-shadow: 4px 4px 0 var(--foreground); }
.player__button:hover { transform: translate(-1px, -1px); box-shadow: 6px 6px 0 var(--foreground); }
.player__button-icon { width: 1.4rem; text-align: center; }
.player__status { min-height: 1.5rem; margin-top: 1rem; font-size: 0.85rem; color: #fff; }

.films-section { padding: var(--love-section) 0; }
.film-player { margin-top: 4rem; border: 3px solid var(--foreground); border-radius: 1rem; overflow: hidden; background: var(--foreground); box-shadow: 8px 8px 0 var(--brand-red); }
.film-player video { display: block; width: 100%; max-height: 76vh; aspect-ratio: 16 / 9; object-fit: contain; background: #000; }
.film-player__caption { display: flex; justify-content: space-between; gap: 1rem; align-items: center; padding: 1rem 1.25rem; color: #fff; }
.film-player__caption span { font-family: 'Space Mono', monospace; color: var(--brand-mint); font-size: 0.75rem; text-transform: uppercase; }
.episode-list { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0.75rem; margin-top: 2rem; }
.episode { min-width: 0; min-height: 44px; padding: 0.5rem; border: 2px solid var(--foreground); border-radius: 0.75rem; background: #fff; text-align: left; transition: transform 150ms ease, background 150ms ease; }
.episode:hover { transform: translateY(-3px); }
.episode.is-active { background: var(--brand-yellow); box-shadow: 4px 4px 0 var(--foreground); }
.episode img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border: 1px solid var(--foreground); background: #000; }
.episode span { display: block; margin-top: 0.65rem; font-size: 0.75rem; line-height: 1.35; font-weight: 700; }
.episode b { display: block; margin-bottom: 0.25rem; font-family: 'Space Mono', monospace; color: var(--brand-red); }

.countdown-section { padding: var(--love-section) var(--love-gutter); background: var(--brand-red); color: #fff; }
.countdown-section .eyebrow--light { color: #fff; }
.countdown-section__inner { width: min(100%, var(--max-width)); margin-inline: auto; display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(3rem, 8vw, 8rem); align-items: center; }
.countdown-section h2 { font-size: clamp(2.8rem, 6vw, 5.5rem); line-height: 0.95; }
.countdown { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 2px solid #fff; }
.countdown div { min-width: 0; padding: clamp(1rem, 2vw, 1.5rem); text-align: center; }
.countdown div + div { border-left: 2px solid #fff; }
.countdown strong { display: block; font-family: 'Space Mono', monospace; font-size: clamp(1.65rem, 4vw, 3rem); }
.countdown span { display: block; margin-top: 0.35rem; font-size: 0.7rem; text-transform: uppercase; }

.love-dialog { width: min(42rem, calc(100% - 2rem)); max-height: calc(100dvh - 2rem); margin: auto; padding: 0; border: 3px solid var(--foreground); border-radius: 1rem; background: var(--brand-yellow); color: var(--foreground); box-shadow: 10px 10px 0 var(--foreground); }
.love-dialog::backdrop { background: rgba(17, 22, 31, 0.75); }
.love-dialog__topline { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 0.75rem 1rem; border-bottom: 2px solid var(--foreground); font-family: 'Space Mono', monospace; font-size: 0.72rem; text-transform: uppercase; }
.love-dialog__close { min-width: 58px; min-height: 44px; padding: 0.5rem; border: 2px solid var(--foreground); border-radius: 999px; background: #fff; font-weight: 700; }
.love-dialog__close:hover { background: var(--brand-mint); }
.love-dialog__paper { padding: clamp(1.5rem, 5vw, 4rem); background: var(--brand-cream); }
.love-dialog__paper h2 { font-size: clamp(2.3rem, 6vw, 4rem); }
.love-dialog__paper > p:not(.eyebrow) { margin-top: 1rem; font-size: clamp(1rem, 2vw, 1.12rem); line-height: 1.8; }
.love-dialog__signoff { padding-top: 1rem; font-weight: 700; font-style: italic; color: var(--brand-red); }

main > section { position: relative; isolation: isolate; }
main > section > * { position: relative; z-index: 1; }
main > section::before,
main > section::after {
  position: absolute;
  z-index: 0;
  color: var(--brand-red);
  font-family: Georgia, serif;
  line-height: 1;
  pointer-events: none;
  opacity: 0.16;
}
main > section::before { content: '♥'; top: 1.25rem; left: clamp(0.75rem, 3vw, 2.5rem); font-size: clamp(2.5rem, 5vw, 5rem); transform: rotate(-12deg); }
main > section::after { content: '♡'; right: clamp(0.75rem, 3vw, 2.5rem); bottom: 1.25rem; font-size: clamp(3rem, 7vw, 7rem); transform: rotate(9deg); }
main > section:nth-child(even)::before { content: '♡'; left: auto; right: clamp(0.75rem, 3vw, 2.5rem); }
main > section:nth-child(even)::after { content: '♥'; right: auto; left: clamp(0.75rem, 3vw, 2.5rem); }

.story-section,
.numbers-section,
.films-section {
  background-color: var(--brand-cream);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='88' viewBox='0 0 24 24'%3E%3Cpath d='M12 21S3 15.6 3 9a5 5 0 0 1 9-3 5 5 0 0 1 9 3c0 6.6-9 12-9 12Z' fill='none' stroke='%23d62969' stroke-opacity='.09' stroke-width='.8'/%3E%3C/svg%3E");
  background-size: 88px 88px;
}

.footer { border-top: 0; background: var(--foreground); color: #fff; }
.footer a:hover { color: var(--brand-mint); }
.back-to-top { border: 2px solid var(--foreground); background: var(--brand-mint); color: var(--foreground); }

@media (max-width: 900px) {
  .love-hero {
    background:
      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='72' viewBox='0 0 24 24'%3E%3Cpath d='M12 21S3 15.6 3 9a5 5 0 0 1 9-3 5 5 0 0 1 9 3c0 6.6-9 12-9 12Z' fill='%23d62969' fill-opacity='.08'/%3E%3C/svg%3E"),
      linear-gradient(135deg, #fffafd 0%, #ffe7f0 100%);
    background-size: 72px 72px, auto;
  }
  .love-hero__inner { grid-template-columns: 1fr; }
  .love-hero__copy { position: relative; z-index: 1; }
  .hero-portrait { width: min(85%, 30rem); margin-inline: auto; }
  .story-beat:nth-child(2), .story-beat:nth-child(3) { margin-inline: 0; }
  .letter-section__inner { grid-template-columns: 1fr; }
  .letter-section__stamp { width: 9rem; }
  .memory-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); width: min(100%, 42rem); }
  .memory:nth-child(1), .memory--wide { margin-top: 0; }
  .memory:nth-child(2), .memory:nth-child(4) { margin-top: 1.5rem; }
  .reasons-section__inner { grid-template-columns: 1fr; }
  .reasons-section__heading { position: static; }
  .episode-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .countdown-section__inner { grid-template-columns: 1fr; }
}

@media (max-width: 639px) {
  :root { --love-section: 4rem; }
  .nav__logo > span:last-child { display: none; }
  .music-quick-toggle { padding-inline: 0.75rem; }
  #music-quick-label { font-size: 0; }
  #music-quick-label::after { content: 'Song'; font-size: 0.72rem; }
  .love-hero { min-height: auto; padding: 3.75rem 0 4.5rem; }
  .love-hero__title { font-size: clamp(3rem, 15vw, 4.6rem); }
  .love-hero__actions { flex-direction: column; }
  .love-hero__actions .btn { width: 100%; }
  .hero-portrait { width: calc(100% - 1rem); }
  .hero-portrait figcaption { right: -0.5rem; }
  .section-intro--split { grid-template-columns: 1fr; gap: 1.25rem; }
  .story-beat { grid-template-columns: 3rem minmax(0, 1fr); min-height: 0; padding: 1.25rem; }
  .story-beat__number { font-size: 1.8rem; }
  .letter-section { padding-inline: 1rem; }
  .letter-section__inner { padding: 1.5rem; box-shadow: 7px 7px 0 var(--brand-red); }
  .letter-section__stamp { width: 6rem; font-size: 1.5rem; }
  .memory-grid { width: calc(100% - 0.5rem); gap: 0.75rem; margin-top: 2rem; }
  .memory { padding: 0.45rem 0.45rem 0.7rem; box-shadow: 4px 4px 0 var(--brand-red); }
  .memory:nth-child(1), .memory:nth-child(3) { margin-top: 0; transform: rotate(-0.75deg); }
  .memory:nth-child(2), .memory:nth-child(4) { margin-top: 1rem; transform: rotate(0.75deg); }
  .memory img { height: min(44vw, 10.75rem); }
  .memory figcaption { padding: 0.6rem 0.15rem 0; font-size: 0.78rem; line-height: 1.35; }
  .numbers-grid { grid-template-columns: 1fr; }
  .music-section { padding-inline: 1rem; }
  .music-section__inner { grid-template-columns: 1fr; gap: 2.25rem; }
  .record-cover { --record-size: min(64vw, 14rem); margin-inline: auto; }
  .episode-list { grid-template-columns: 1fr 1fr; }
  .film-player__caption { align-items: flex-start; flex-direction: column; }
  .countdown { grid-template-columns: 1fr 1fr; }
  .countdown div:nth-child(3) { border-left: 0; }
  .countdown div:nth-child(n+3) { border-top: 2px solid #fff; }
  .love-dialog { width: calc(100% - 1rem); max-height: calc(100dvh - 1rem); box-shadow: 5px 5px 0 var(--foreground); }
}

@media (prefers-reduced-motion: reduce) {
  body { animation: none; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}

/* The imported portfolio used a custom cursor. This project uses the native
   cursor because there is no custom cursor element and native state is clearer. */
@media (hover: hover) and (pointer: fine) {
  * { cursor: auto !important; }
  a, button, input[type="range"] { cursor: pointer !important; }
}

/* Informal late-night theme, inspired by the relaxed mood of lkstory.my.
   Existing project fonts stay unchanged. */
:root {
  --brand-cream: #100a0d;
  --brand-ink: #fff1f6;
  --brand-red: #be185d;
  --brand-mint: #f9a8d4;
  --brand-blue: #831843;
  --brand-yellow: #2a1722;
  --background: #100a0d;
  --foreground: #fff1f6;
  --card: #1a1117;
  --primary: #be185d;
  --primary-foreground: #fff;
  --secondary: #2a1722;
  --secondary-foreground: #fff1f6;
  --muted: #26151e;
  --muted-foreground: #d6bdc8;
  --accent: #3b1729;
  --border: rgba(244, 114, 182, 0.24);
}

html { scrollbar-color: #be185d #100a0d; }
body { background: #100a0d; color: var(--foreground); }
::-webkit-scrollbar-track { border-left-color: rgba(244, 114, 182, 0.2); background: #100a0d; }
::-webkit-scrollbar-thumb { border-color: #100a0d; background: #be185d; }

.nav { background: rgba(16, 10, 13, 0.86); border-bottom: 1px solid rgba(244, 114, 182, 0.16); }
.nav__logo-badge { background: #f472b6; color: #100a0d; box-shadow: 0 0 18px rgba(244, 114, 182, 0.25); }
.nav__logo-accent,
.nav__links a:hover,
.nav__links a.nav__link--active { color: #f472b6; }
.nav__menu-bar { background: #fff1f6; }
.mobile-menu { background: #160d12; border-bottom-color: rgba(244, 114, 182, 0.2); }
.mobile-menu__links a { color: #d6bdc8; }
.mobile-menu__links a:hover { color: #fff1f6; background: rgba(244, 114, 182, 0.1); }
.music-quick-toggle { border-color: rgba(244, 114, 182, 0.42); background: rgba(42, 23, 34, 0.8); color: #fff1f6; }
.music-quick-toggle:hover { background: #3b1729; }
.music-quick-toggle__mark::before,
.music-quick-toggle[aria-pressed="true"] .music-quick-toggle__mark::before { color: #f472b6; }

.eyebrow,
.reasons-section .eyebrow,
.music-section .eyebrow { color: #f472b6; }
.eyebrow--light,
.countdown-section .eyebrow--light { color: #f9a8d4; }

.love-hero {
  background:
    radial-gradient(circle at 50% 40%, rgba(190, 24, 93, 0.22), transparent 34rem),
    radial-gradient(circle at 13% 18%, rgba(244, 114, 182, 0.08), transparent 16rem),
    #100a0d;
  background-size: auto;
}
.love-hero { min-height: auto; padding: clamp(6rem, 10vw, 9rem) 0; text-align: center; }
.love-hero__inner { width: min(100%, 68rem); grid-template-columns: 1fr; gap: 3.5rem; }
.love-hero__copy { max-width: 58rem; margin-inline: auto; }
.love-hero__title { max-width: 15ch; margin-inline: auto; font-size: clamp(3.4rem, 7vw, 6.8rem); line-height: 0.94; letter-spacing: -0.055em; }
.love-hero__title span { color: #f472b6; text-shadow: 0 0 28px rgba(244, 114, 182, 0.28); }
.love-hero__title span::after { font-size: 0.3em; }
.love-hero__intro { max-width: 36rem; margin-inline: auto; color: #d6bdc8; }
.love-hero__actions { justify-content: center; }
.love-hero__signature { color: #f472b6; opacity: 0.78; }
.hero-portrait { width: min(74vw, 21rem); margin-inline: auto; transform: rotate(1.5deg); }
.hero-portrait__frame { border: 1px solid rgba(244, 114, 182, 0.48); border-radius: 2rem; background: #1a1117; box-shadow: 0 18px 60px rgba(190, 24, 93, 0.18); }
.hero-portrait figcaption { right: -1rem; border: 1px solid rgba(244, 114, 182, 0.5); border-radius: 1rem; background: #2a1722; color: #fff1f6; box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35); }

main > section::before,
main > section::after { color: #f472b6; opacity: 0.12; }

.story-section,
.memories-section,
.numbers-section,
.films-section { background: #100a0d; background-image: none; }
.section-intro h2,
.reasons-section__heading h2 { font-size: clamp(2.5rem, 5vw, 4.7rem); }
.story-track { display: grid; gap: 1rem; }
.story-beat,
.story-beat + .story-beat { min-height: 0; border: 1px solid rgba(244, 114, 182, 0.22); border-radius: 1.5rem; }
.story-beat:nth-child(2),
.story-beat:nth-child(3) { margin-inline: 0; }
.story-beat--mint { background: #1a1117; }
.story-beat--red { background: #2a101d; color: #fff1f6; }
.story-beat--blue { background: #21101a; color: #fff1f6; }
.story-beat__number { color: #f472b6; opacity: 0.68; }

.letter-section { background: #160d12; }
.letter-section__inner { border: 1px solid rgba(244, 114, 182, 0.35); border-radius: 2rem; background: #1a1117; box-shadow: 0 22px 70px rgba(190, 24, 93, 0.14); }
.letter-section__stamp { border-color: #f472b6; color: #f9a8d4; }
.letter-section__copy > p:not(.eyebrow) { color: #d6bdc8; }

.memory { border: 1px solid rgba(244, 114, 182, 0.28); border-radius: 1.25rem; background: #1a1117; box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3); }
.memory img { border-radius: 0.8rem; }
.memory figcaption::before { color: #f472b6; }

.reasons-section { background: #160d12; }
.reason-lines { border-top-color: rgba(244, 114, 182, 0.22); }
.reason-lines p { border-bottom-color: rgba(244, 114, 182, 0.22); }
.reason-lines span,
.reason-lines p::after { color: #f472b6; }
.reason-lines p:hover { background: rgba(244, 114, 182, 0.09); }
.reason-lines p:hover::after { color: #f9a8d4; }

.numbers-grid { gap: 0.85rem; }
.numbers-grid div,
.numbers-grid div:nth-child(1),
.numbers-grid div:nth-child(2),
.numbers-grid div:nth-child(3) { border: 1px solid rgba(244, 114, 182, 0.24); border-radius: 1.25rem; background: #1a1117; color: #fff1f6; }
.numbers-grid dd { color: #f472b6; }

.music-section { background: radial-gradient(circle at 35% 50%, rgba(190, 24, 93, 0.18), transparent 25rem), #160d12; color: #fff1f6; }
.record-cover img { border: 1px solid rgba(244, 114, 182, 0.5); border-radius: 1.5rem; box-shadow: 0 18px 44px rgba(190, 24, 93, 0.2); }
.record-cover figcaption { border: 1px solid rgba(244, 114, 182, 0.5); border-radius: 0.75rem; background: #2a1722; color: #fff1f6; }
.player__timeline input { accent-color: #f472b6; }
.player__button { border-color: #f472b6; background: #be185d; color: #fff; box-shadow: 0 10px 28px rgba(190, 24, 93, 0.24); }
.player__button:hover { box-shadow: 0 12px 34px rgba(190, 24, 93, 0.32); }
.player__status { color: #d6bdc8; }

.film-player { border: 1px solid rgba(244, 114, 182, 0.32); border-radius: 1.5rem; background: #0a0608; box-shadow: 0 20px 55px rgba(190, 24, 93, 0.14); }
.film-player__caption span,
.episode b { color: #f472b6; }
.episode { border: 1px solid rgba(244, 114, 182, 0.24); border-radius: 1rem; background: #1a1117; color: #fff1f6; }
.episode.is-active { border-color: #f472b6; background: #2a1722; box-shadow: 0 0 22px rgba(244, 114, 182, 0.12); }
.episode img { border-color: rgba(244, 114, 182, 0.25); border-radius: 0.65rem; }

.countdown-section { background: radial-gradient(circle at 75% 50%, rgba(244, 114, 182, 0.13), transparent 28rem), #210d17; color: #fff1f6; }
.countdown { overflow: hidden; border: 1px solid rgba(244, 114, 182, 0.38); border-radius: 1.25rem; }
.countdown div + div { border-left-color: rgba(244, 114, 182, 0.28); }
.countdown strong { color: #f9a8d4; }

.love-dialog { border: 1px solid rgba(244, 114, 182, 0.45); background: #2a1722; color: #fff1f6; box-shadow: 0 30px 90px rgba(0, 0, 0, 0.55); }
.love-dialog::backdrop { background: rgba(8, 4, 6, 0.82); }
.love-dialog__topline { border-bottom-color: rgba(244, 114, 182, 0.28); }
.love-dialog__close { border-color: rgba(244, 114, 182, 0.45); background: #1a1117; }
.love-dialog__close:hover { background: #3b1729; }
.love-dialog__paper { background: #160d12; }
.love-dialog__paper > p:not(.eyebrow) { color: #d6bdc8; }
.love-dialog__signoff { color: #f9a8d4; }

.btn--primary { background: #be185d; color: #fff; }
.btn--primary:hover { box-shadow: 0 10px 28px rgba(190, 24, 93, 0.3); }
.btn--outline { border-color: rgba(244, 114, 182, 0.55); background: rgba(26, 17, 23, 0.72); color: #fff1f6; }
.btn--outline:hover { background: #3b1729; }
.btn--red { background: #be185d; color: #fff; }
.footer { background: #0a0608; color: #d6bdc8; border-top: 1px solid rgba(244, 114, 182, 0.12); }
.footer a:hover { color: #f472b6; }
.back-to-top { border-color: rgba(244, 114, 182, 0.48); background: #2a1722; color: #fff1f6; }

@media (max-width: 900px) {
  .love-hero {
    background:
      radial-gradient(circle at 50% 30%, rgba(190, 24, 93, 0.2), transparent 24rem),
      #100a0d;
  }
}

@media (max-width: 639px) {
  .love-hero { padding: 5rem 0 4.5rem; }
  .love-hero__title { font-size: clamp(3rem, 14vw, 4.5rem); }
  .hero-portrait { width: min(78vw, 19rem); }
  .story-beat { border-radius: 1.1rem; }
  .memory { box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28); }
  .letter-section__inner { border-radius: 1.4rem; box-shadow: 0 18px 42px rgba(190, 24, 93, 0.12); }
  .countdown div:nth-child(n+3) { border-top-color: rgba(244, 114, 182, 0.28); }
}
