/* ==========================================================================
   100% aimanhanif.com style
   Fonts: Bricolage Grotesque (display) + Plus Jakarta Sans (body)
   Colors: cream bg, ink text, red accent, mint secondary, yellow accent, blue
   ========================================================================== */

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

:root {
  --radius: 1.25rem;
  --brand-cream: #faf7ee;
  --brand-ink: #11161f;
  --brand-red: #d24d45;
  --brand-mint: #a0debc;
  --brand-blue: #346ecd;
  --brand-yellow: #f9dd73;
  --background: var(--brand-cream);
  --foreground: var(--brand-ink);
  --card: #fff;
  --primary: var(--brand-red);
  --primary-foreground: #fcfcfc;
  --secondary: var(--brand-mint);
  --secondary-foreground: var(--brand-ink);
  --muted: #f2eee3;
  --muted-foreground: #4f5661;
  --accent: var(--brand-yellow);
  --border: #080d161f;
  --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 var(--brand-red); outline-offset: 3px; border-radius: 8px; }

.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; gap: 1rem;
}
@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: 1024px) { .nav__links { display: flex; align-items: center; gap: 1.25rem; } }
.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__actions { flex-shrink: 0; }
.nav__actions .btn { white-space: nowrap; padding: .5rem 1rem; font-size: .875rem; }
.nav__logo { flex-shrink: 0; }
.nav__menu-btn {
  display: flex; width: 44px; height: 44px; flex-shrink: 0;
  flex-direction: column; align-items: center; justify-content: center;
  gap: 6px; border-radius: 12px;
}
@media (min-width: 1024px) { .nav__menu-btn { display: none; } }
@media (max-width: 1023px) { .nav__actions > a, .nav__actions > form { 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; position: absolute; top: 100%; left: 0; right: 0; max-height: calc(100dvh - 4rem); overflow-y: auto; overscroll-behavior: contain; padding: 1rem 1.25rem; background: var(--background); border-bottom: 1px solid var(--border); box-shadow: 0 12px 20px rgba(17,22,31,.1); }
.mobile-menu[aria-hidden="false"] { display: block; }
@media (min-width: 1024px) { .mobile-menu[aria-hidden="false"] { display: none; } }
.mobile-menu__account { border-top: 1px solid var(--border); margin-top: .5rem; padding-top: .5rem; }
.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); }
.mobile-menu__links li form { width: 100%; }
.mobile-menu__links li button { width: 100%; min-height: 48px; padding: 1rem; text-align: left; color: var(--muted-foreground); font-size: 1rem; font-weight: 500; border-radius: var(--radius); }
.mobile-menu__links li button:hover { color: var(--foreground); background: rgba(17, 22, 31, 0.05); }
.mobile-menu__links li button.mobile-menu__logout { width: 100%; justify-content: center; margin-top: .5rem; color: #fff; background: var(--brand-red); }
.mobile-menu__links li button.mobile-menu__logout:hover { color: #fff; background: #b83f38; }
.mobile-menu__links li button.mobile-menu__logout { transform: none; text-align: center; }
.mobile-menu__links li a.mobile-menu__login { width: 100%; justify-content: center; margin-top: .5rem; color: #fff; background: #25D366; }
.mobile-menu__links li a.mobile-menu__login:hover { color: #fff; background: #20b957; }

/* ==========================================================================
   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;
  width: max-content;
  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; right: auto; }
@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; }
  .nav__inner { min-width: 0; }
  .nav__logo { flex-shrink: 0; }

  /* 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); }
}
