/* ═══════════════════════════════════════════════════════════════════
   MIRELLE SINE — iOS Software Engineer
   Layout: Claude Design handoff  ·  Hero blob + glass frame: original
   ═══════════════════════════════════════════════════════════════════ */

/* ── Tokens ──────────────────────────────────────────────────────── */
:root {
  /* Ink */
  --ink:        #2a2135;
  --ink-2:      #3a3048;
  --ink-3:      #4a4056;
  --body:       #5c5468;
  --muted:      #6f6780;

  /* Brand */
  --pink:       #e0489c;
  --pink-soft:  #f9c9e8;
  --magenta:    #b3479f;
  --violet:     #7a3fe0;
  --violet-2:   #6d34d6;
  --violet-3:   #8f34c0;
  --violet-deep:#5b21b6;

  /* Original palette kept for the hero blob */
  --blob-a:     #ffbdd6;
  --blob-b:     #a78bfa;

  /* Gold (award) */
  --gold:       #7a5c14;
  --gold-2:     #8a6a1f;

  /* Surfaces */
  --surface:      rgba(255, 255, 255, 0.72);
  --surface-solid:#ffffff;
  --line:         rgba(122, 63, 224, 0.12);
  --line-strong:  rgba(122, 63, 224, 0.28);
  --edge:         rgba(255, 255, 255, 0.9);

  /* Gradients */
  --grad-brand: linear-gradient(120deg, var(--pink), var(--violet));
  --grad-text:  linear-gradient(115deg, var(--pink) 6%, var(--violet) 78%);
  --grad-blob:  linear-gradient(135deg, var(--blob-a), var(--blob-b));
  --grad-page:  linear-gradient(180deg, #fdf6fb 0%, #faf6fe 38%, #fdf8fb 72%, #f9f5fd 100%);

  /* Shadows */
  --sh-card:  0 26px 70px rgba(122, 63, 224, 0.1);
  --sh-lift:  0 30px 80px rgba(122, 63, 224, 0.12);
  --sh-float: 0 16px 40px rgba(122, 63, 224, 0.16);
  --sh-photo: 0 34px 80px rgba(122, 63, 224, 0.18);
  --sh-cta:   0 14px 32px rgba(122, 63, 224, 0.3);

  /* Type */
  --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --sans:  'DM Sans', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Helvetica, sans-serif;

  /* Motion */
  --ease: cubic-bezier(.16, .84, .28, 1);

  /* Layout */
  --shell:  1380px;
  --gutter: clamp(18px, 3.5vw, 48px);
  --header: 62px;
}

/* ── Reset ───────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header) + 16px);
  background: #fdf8fc;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}

body {
  position: relative; /* containing block for the background orbs */
  isolation: isolate; /* own stacking context: keeps the z:-1 orbs above the body background */
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  color: var(--ink);
  background: var(--grad-page);
  background-repeat: no-repeat;
  background-size: 100% 100%;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: opacity 240ms ease;
}

/* language switch: crossfade instead of an abrupt reflow */
body.is-lang-fading { opacity: 0; }

h1, h2, h3, p, dl, dd, figure { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: var(--ink); text-decoration: none; }

::selection { background: var(--violet); color: #fff; }

:focus-visible {
  outline: 2px solid var(--violet);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  top: -60px;
  left: 12px;
  z-index: 200;
  padding: 10px 18px;
  border-radius: 0 0 12px 12px;
  background: var(--violet);
  color: #fff;
  font-size: 14px;
  transition: top 220ms var(--ease);
}
.skip-link:focus { top: 0; color: #fff; }

.shell {
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Grain — barely there, but it kills the flat-gradient look */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: 0.32;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
}

/* ── Ambience: cursor glow + drifting colour orbs ────────────────── */
.glow {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 40;
  width: 620px;
  height: 620px;
  margin: -310px 0 0 -310px;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(closest-side, rgba(224, 72, 156, 0.09), rgba(122, 63, 224, 0.06) 45%, transparent 72%);
  opacity: 0;
  transition: opacity 700ms ease;
  will-change: transform;
}

.orb {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  filter: blur(70px);
  pointer-events: none;
}
.orb--1 {
  top: 3%;
  right: -170px;
  width: 480px;
  height: 480px;
  background: radial-gradient(closest-side, rgba(224, 72, 156, 0.17), transparent 70%);
  animation: orbDrift 18s ease-in-out infinite alternate;
}
.orb--2 {
  top: 44%;
  left: -200px;
  width: 560px;
  height: 560px;
  background: radial-gradient(closest-side, rgba(122, 63, 224, 0.16), transparent 70%);
  animation: orbDrift 23s ease-in-out -7s infinite alternate-reverse;
}
@keyframes orbDrift {
  to { transform: translate3d(46px, 64px, 0) scale(1.09); }
}

/* ── Typography primitives ───────────────────────────────────────── */
.h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
}
.h2--display { font-size: clamp(2rem, 5vw, 3.6rem); letter-spacing: -0.025em; }
.h2 em, .h3 em { font-style: italic; color: var(--magenta); }
.h2 em.grad {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--violet-3);
}

.h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.6rem, 3.4vw, 2.4rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
}

.kicker {
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--violet-3);
}

.lede {
  max-width: 62ch;
  font-size: 16.5px;
  line-height: 1.72;
  color: var(--body);
  text-wrap: pretty;
}
.lede--center { margin-inline: auto; max-width: 52ch; text-align: center; }
.lede + .lede { margin-top: 16px; }

.pill {
  display: inline-block;
  padding: 8px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(122, 63, 224, 0.18);
  font-size: 13px;
  color: var(--violet-2);
}

.badge-soft {
  font-size: 13.5px;
  color: var(--body);
  padding: 8px 15px;
  border-radius: 999px;
  background: rgba(122, 63, 224, 0.07);
  white-space: nowrap;
}

.is-accent { color: var(--violet-2); }

/* ── Buttons ─────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 26px;
  border-radius: 999px;
  font-size: 14.5px;
  line-height: 1;
  white-space: nowrap;
  transition: transform 380ms var(--ease), box-shadow 380ms ease,
              background 320ms ease, border-color 320ms ease, color 320ms ease;
}
.btn--sm { padding: 10px 20px; font-size: 13.5px; }

.btn--solid {
  position: relative;
  overflow: hidden;
  background: var(--grad-brand);
  color: #fff;
  box-shadow: var(--sh-cta);
}
.btn--solid::after,
.btn--light::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 32%, rgba(255, 255, 255, 0.38) 50%, transparent 68%);
  transform: translateX(-130%) skewX(-14deg);
  pointer-events: none;
}
.btn--solid:hover::after,
.btn--light:hover::after { animation: shine 750ms ease; }

@keyframes shine {
  to { transform: translateX(130%) skewX(-14deg); }
}
.btn--solid:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 18px 40px rgba(122, 63, 224, 0.45); }

.btn--ghost {
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.6);
  color: #5c3fa8;
}
.btn--ghost:hover { border-color: var(--violet); background: #fff; transform: translateY(-2px); }

.btn--light { position: relative; overflow: hidden; background: #fff; color: #6a2fc9; box-shadow: 0 16px 40px rgba(0, 0, 0, 0.16); padding: 16px 30px; }
.btn--light:hover { background: var(--pink-soft); color: #6a2fc9; transform: translateY(-2px); }

.btn--outline { border: 1px solid rgba(255, 255, 255, 0.55); color: #fff; padding: 16px 30px; }
.btn--outline:hover { background: rgba(255, 255, 255, 0.14); color: #fff; transform: translateY(-2px); }

/* ── Chips ───────────────────────────────────────────────────────── */
.chips { display: flex; flex-wrap: wrap; gap: 9px; }
.chips li {
  transition: transform 360ms var(--ease), box-shadow 360ms ease,
              border-color 360ms ease, background 360ms ease, color 360ms ease;
}

.chips--outline li {
  padding: 8px 15px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(122, 63, 224, 0.16);
  color: #5c4d70;
  font-size: 13px;
}
.chips--outline li:hover {
  transform: translateY(-3px);
  background: linear-gradient(120deg, rgba(224, 72, 156, 0.15), rgba(122, 63, 224, 0.15));
  border-color: transparent;
  color: #5b2f9c;
  box-shadow: 0 10px 22px rgba(122, 63, 224, 0.18);
}

.chips--soft { gap: 8px; }
.chips--soft li {
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(122, 63, 224, 0.08);
  color: #5c4d70;
  font-size: 12.5px;
}
.chips--soft li:hover {
  transform: translateY(-3px);
  background: linear-gradient(120deg, rgba(224, 72, 156, 0.16), rgba(122, 63, 224, 0.16));
  color: #5b2f9c;
}

.chips--lg { gap: 10px; justify-content: center; }
.chips--lg li {
  padding: 11px 20px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(122, 63, 224, 0.14);
  font-size: clamp(0.92rem, 1.5vw, 1.1rem);
  color: var(--ink-2);
}
.chips--lg li:hover {
  transform: translateY(-4px);
  background: linear-gradient(120deg, rgba(224, 72, 156, 0.16), rgba(122, 63, 224, 0.16));
  border-color: transparent;
  color: #5b2f9c;
  box-shadow: 0 12px 28px rgba(122, 63, 224, 0.24);
}

/* ── Header ──────────────────────────────────────────────────────── */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 60;
  background: rgba(253, 248, 252, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(122, 63, 224, 0.1);
}

.site-header__inner {
  height: var(--header);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.logo {
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: -0.01em;
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.logo__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--grad-brand);
}

.nav { display: flex; align-items: center; gap: clamp(12px, 2.2vw, 30px); font-size: 14px; }
.nav__link {
  position: relative;
  color: rgba(42, 33, 53, calc(0.52 + 0.48 * var(--on, 0)));
  transition: color 300ms ease;
}
.nav__link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  height: 2px;
  width: 100%;
  border-radius: 2px;
  background: var(--grad-brand);
  transform: scaleX(var(--on, 0));
  transform-origin: 0 50%;
  transition: transform 420ms var(--ease);
}

.site-header__actions { display: flex; align-items: center; gap: 12px; }

.lang {
  display: flex;
  padding: 3px;
  border-radius: 999px;
  background: rgba(122, 63, 224, 0.08);
  border: 1px solid rgba(122, 63, 224, 0.1);
}
.lang__btn {
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--muted);
  transition: background 300ms ease, color 300ms ease;
}
.lang__btn[aria-pressed='true'] {
  background: #fff;
  color: var(--violet);
  box-shadow: 0 2px 8px rgba(122, 63, 224, 0.14);
}

.site-header__rail { height: 2px; background: rgba(122, 63, 224, 0.1); }
.site-header__bar {
  height: 100%;
  background: linear-gradient(90deg, var(--pink), var(--violet));
  transform: scaleX(0);
  transform-origin: 0 50%;
}

.burger { display: none; width: 34px; height: 34px; position: relative; }
.burger span {
  position: absolute;
  left: 7px;
  width: 20px;
  height: 1.5px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 320ms var(--ease), opacity 220ms ease;
}
.burger span:nth-child(1) { top: 14px; }
.burger span:nth-child(2) { top: 20px; }
.burger[aria-expanded='true'] span:nth-child(1) { transform: translateY(3px) rotate(45deg); }
.burger[aria-expanded='true'] span:nth-child(2) { transform: translateY(-3px) rotate(-45deg); }

.mobile-nav {
  position: fixed;
  top: calc(var(--header) + 2px);
  left: 0;
  right: 0;
  z-index: 59;
  display: grid;
  gap: 2px;
  padding: 14px var(--gutter) 22px;
  background: rgba(253, 248, 252, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 20px 40px rgba(122, 63, 224, 0.1);
}
.mobile-nav[hidden] { display: none; }

.mobile-nav a {
  padding: 13px 4px;
  font-size: 17px;
  border-bottom: 1px solid var(--line);
}
.mobile-nav__cta {
  margin-top: 10px;
  border: 0 !important;
  border-radius: 999px;
  background: var(--grad-brand);
  color: #fff !important;
  text-align: center;
  font-size: 15px !important;
}

/* ── Hero ────────────────────────────────────────────────────────── */
.hero {
  padding: clamp(110px, 16vh, 180px) 0 clamp(48px, 8vh, 96px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(330px, 100%), 1fr));
  gap: clamp(28px, 4vw, 72px);
  align-items: center;
}

.hero__greeting { font-size: 15px; color: var(--violet-2); }

.hero__name {
  margin-top: 8px;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(3.2rem, 9vw, 7rem);
  line-height: 0.96;
  letter-spacing: -0.025em;
  background: linear-gradient(115deg, var(--pink) 0%, var(--violet) 38%, var(--magenta) 64%, var(--pink) 92%);
  background-size: 240% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--violet-3);
  animation: inkFlow 11s ease-in-out infinite alternate;
}

@keyframes inkFlow {
  from { background-position: 0% 50%; }
  to   { background-position: 100% 50%; }
}

.hero__role {
  margin-top: clamp(14px, 2.4vh, 22px);
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.8vw, 2.1rem);
  line-height: 1.24;
  letter-spacing: -0.01em;
  color: var(--ink-3);
}
.hero__role em { font-style: italic; color: var(--magenta); }

.hero__desc {
  margin-top: clamp(18px, 3vh, 28px);
  max-width: 46ch;
  font-size: 16.5px;
  line-height: 1.72;
  color: #635a72;
  text-wrap: pretty;
}

.hero__copy .chips { margin-top: clamp(20px, 3.4vh, 30px); }

.hero__actions {
  margin-top: clamp(24px, 4vh, 36px);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Photo stage — this is the piece carried over from the first build */
.hero__stage {
  position: relative;
  justify-self: center;
  width: min(100%, 460px);
  padding-top: clamp(36px, 13%, 62px);
  perspective: 900px;
}

.hero__aura {
  position: absolute;
  inset: -8% -6% 4% -6%;
  border-radius: 50%;
  background: radial-gradient(closest-side,
              rgba(224, 72, 156, 0.2),
              rgba(122, 63, 224, 0.12) 60%,
              transparent 76%);
  filter: blur(8px);
  pointer-events: none;
}

/* The glass square. No overflow here: the portrait rises out the top. */
.hero__frame {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 34px;
  background: linear-gradient(170deg, rgba(255, 255, 255, 0.9), rgba(250, 240, 252, 0.5));
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--edge);
  box-shadow: var(--sh-photo);
}

/* clips decorative layers (blob, halo) to the rounded card */
.frame-clip {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  overflow: hidden;
}

/* photo window: open at the top so the cutout pops out of the card,
   clipped at the sides and bottom so it stays inside the rounded corners */
.frame-pop {
  position: absolute;
  inset: -36% 0 0;
  overflow: hidden;
  border-radius: 0 0 34px 34px;
  z-index: 2;
}
.about__frame .frame-pop { border-radius: 0 0 30px 30px; }

.frame-pop img {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  margin-inline: auto;
  height: auto;
  max-width: none;
  filter: drop-shadow(0 18px 28px rgba(53, 27, 88, 0.22));
}

/* The purple blob */
.hero__blob {
  position: absolute;
  inset: 6% 4% 16%;
  border-radius: 60% 40% 55% 45% / 50% 60% 40% 50%;
  background: var(--grad-blob);
  opacity: 0.72;
  filter: blur(14px);
  will-change: border-radius, transform;
  animation: blobMorph 8s ease-in-out infinite alternate;
}

@keyframes blobMorph {
  0%   { border-radius: 60% 40% 55% 45% / 50% 60% 40% 50%; transform: scale(1) rotate(0deg); }
  20%  { border-radius: 40% 60% 70% 30% / 60% 30% 70% 40%; }
  40%  { border-radius: 70% 30% 40% 60% / 40% 70% 30% 60%; transform: scale(1.04) rotate(3deg); }
  60%  { border-radius: 45% 55% 65% 35% / 55% 45% 55% 45%; }
  80%  { border-radius: 55% 45% 35% 65% / 45% 65% 35% 55%; transform: scale(0.97) rotate(-3deg); }
  100% { border-radius: 35% 65% 45% 55% / 65% 35% 65% 35%; transform: scale(1.02) rotate(1deg); }
}

.hero__portrait { width: 94%; }

/* Floating cards */
.float-anchor {
  position: absolute;
  z-index: 3;
  pointer-events: none;
}

.float-card {
  display: grid;
  gap: 3px;
  padding: 13px 18px;
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--sh-float);
}
.float-card__kicker {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-2);
}
.float-card__title {
  font-family: var(--serif);
  font-size: 21px;
  line-height: 1.1;
  color: var(--gold);
}
.float-card__value {
  font-family: var(--serif);
  font-size: 23px;
  line-height: 1;
  color: var(--violet);
}
.float-card__strong { font-size: 13px; font-weight: 500; }
.float-card__label { font-size: 11.5px; color: var(--muted); }

/* Inside the frame by default; the cards only overhang once there is
   enough gutter to hold them (see the min-width rule below). */
.float-anchor--award   { top: 3%;    left: 0;    max-width: 92%; }
.float-anchor--reach   { bottom: 7%; right: 0; }
.float-anchor--years   { top: 4%;    left: 0; }
.float-anchor--academy { bottom: 6%; right: 0; }

@media (min-width: 1200px) {
  .float-anchor--award   { left: -6%; }
  .float-anchor--reach   { right: -6%; }
  .float-anchor--years   { left: -6%; }
  .float-anchor--academy { right: -6%; }
}

.float-anchor--award   .float-card { animation: floatY 5s   ease-in-out infinite; }
.float-anchor--reach   .float-card { animation: floatY 5s   ease-in-out -2.5s infinite; }
.float-anchor--years   .float-card { animation: floatY 5.6s ease-in-out infinite; }
.float-anchor--academy .float-card { animation: floatY 5.6s ease-in-out -2.8s infinite; }

@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-9px); }
}

/* Sparkles */
.spark {
  position: absolute;
  z-index: 2;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  opacity: 0.6;
  animation: floatStar 6s ease-in-out infinite;
  pointer-events: none;
}
.spark--1 { top: 8%;  right: -3%; font-size: 1.4rem; }
.spark--2 { top: 58%; right: -5%; font-size: 1rem;   animation-delay: -2s; }
.spark--3 { top: 22%; left: -5%;  font-size: 0.9rem; animation-delay: -4s; }

@keyframes floatStar {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  33%      { transform: translateY(-14px) rotate(10deg); }
  66%      { transform: translateY(7px) rotate(-8deg); }
}

/* ── Section shells ──────────────────────────────────────────────── */
.section--impact    { padding: clamp(30px, 5vh, 70px) 0; }
.section--work      { padding: clamp(40px, 7vh, 90px) 0 0; }
.section--about     { padding: clamp(56px, 9vh, 110px) 0 clamp(40px, 7vh, 90px); }
.section--expertise { padding: clamp(30px, 5vh, 70px) 0 clamp(56px, 9vh, 120px); }

.section__head { text-align: center; max-width: 60ch; margin-inline: auto; }
.section__head .h2 { margin-top: 18px; }
.section__head .lede { margin-top: 16px; }

.panel {
  border-radius: clamp(20px, 3vw, 34px);
  background: var(--surface);
  border: 1px solid var(--edge);
  box-shadow: var(--sh-card);
  padding: clamp(24px, 4vw, 56px);
}

.panel__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.panel__head .h2 { margin-top: 10px; }
.panel .lede { margin-top: 20px; }

.panel__foot {
  margin-top: clamp(18px, 2.6vw, 26px);
  padding-top: 18px;
  border-top: 1px solid rgba(122, 63, 224, 0.14);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  font-size: 13.5px;
  color: var(--body);
}

/* ── Impact stats ────────────────────────────────────────────────── */
.stats {
  margin-top: clamp(24px, 4vh, 40px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr));
  gap: clamp(14px, 2vw, 22px);
}

.stat {
  border-radius: 20px;
  padding: clamp(20px, 2.6vw, 28px);
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--line);
  transition: transform 420ms var(--ease), box-shadow 420ms ease;
}
.stat:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(122, 63, 224, 0.12); }

.stat--hero {
  background: linear-gradient(160deg, rgba(224, 72, 156, 0.1), rgba(122, 63, 224, 0.07));
  border-color: rgba(122, 63, 224, 0.14);
}

.stat__value {
  font-family: var(--serif);
  font-size: clamp(2.6rem, 6vw, 3.8rem);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--violet);
  font-variant-numeric: tabular-nums;
}
.stat__value--grad {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--violet-3);
}
.stat__label { margin-top: 12px; font-size: 14px; line-height: 1.5; color: var(--body); }

.meter {
  margin-top: 16px;
  height: 5px;
  border-radius: 3px;
  background: rgba(122, 63, 224, 0.12);
  overflow: hidden;
}
.meter__fill { height: 100%; background: linear-gradient(90deg, var(--pink), var(--violet)); }

.notes {
  margin-top: clamp(14px, 2vw, 22px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr));
  gap: clamp(12px, 1.6vw, 18px);
}
.note {
  padding: 18px 20px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(122, 63, 224, 0.1);
}
.note__kicker {
  font-size: 11.5px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--violet-3);
}
.note__text { margin-top: 9px; font-size: 14px; line-height: 1.62; color: var(--body); }

/* ── Featured case ───────────────────────────────────────────────── */
.feature {
  margin-top: clamp(28px, 5vh, 56px);
  border-radius: clamp(20px, 3vw, 34px);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--edge);
  box-shadow: var(--sh-lift);
}

.feature__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); }

.feature__body {
  padding: clamp(24px, 3.4vw, 48px);
  display: flex;
  flex-direction: column;
  gap: 18px;
  justify-content: center;
}

.award { align-self: flex-start; display: grid; gap: 5px; }
.award__kicker {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-2);
}
.award__title {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  line-height: 1.05;
  color: var(--gold);
}
.award__sub { font-size: 12.5px; color: var(--muted); }

.feature__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2rem, 4.6vw, 3.2rem);
  line-height: 1.04;
  letter-spacing: -0.025em;
}
.feature__desc { max-width: 46ch; font-size: 16.5px; line-height: 1.72; color: var(--body); }

.feature__facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
  gap: 1px;
  background: rgba(122, 63, 224, 0.1);
  border-top: 1px solid rgba(122, 63, 224, 0.1);
}
.fact { background: rgba(255, 255, 255, 0.9); padding: 18px 20px; }
.fact__k {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--violet-3);
}
.fact--gold .fact__k { color: var(--gold-2); }
.fact__t { margin-top: 8px; font-size: 14px; line-height: 1.6; color: var(--body); }

/* ── Slideshows ──────────────────────────────────────────────────── */
.slides { position: relative; overflow: hidden; background: #efe7f6; }
.slides--feature { min-height: clamp(280px, 42vh, 440px); }
.slides--card { flex: 1; min-height: 190px; }

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 900ms ease, transform 1400ms var(--ease);
}
.slide:first-of-type { opacity: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; }

.slides__dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 7px;
  z-index: 3;
}
.slides__dots button {
  width: 22px;
  height: 5px;
  padding: 0;
  border-radius: 3px;
  background: rgba(255, 255, 255, calc(0.45 + 0.55 * var(--on, 0)));
  box-shadow: 0 2px 8px rgba(42, 33, 53, 0.3);
  transition: background 400ms ease;
}

/* ── Project index + panels ──────────────────────────────────────── */
.projects { margin-top: clamp(16px, 2.4vw, 26px); padding: clamp(22px, 3.4vw, 44px); }

.projects__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: clamp(18px, 2.6vh, 28px);
}
.hint {
  font-size: 12.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.projects__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: clamp(18px, 2.6vw, 36px);
  align-items: start;
}

.index__row {
  width: 100%;
  display: grid;
  grid-template-columns: 26px 1fr auto;
  gap: 14px;
  align-items: center;
  text-align: left;
  padding: 15px 10px 15px 0;
  border-bottom: 1px solid rgba(122, 63, 224, 0.14);
  background: linear-gradient(90deg, rgba(122, 63, 224, calc(0.07 * var(--on, 0))), rgba(122, 63, 224, 0));
}
.index__row--last { border-bottom: 0; }

.index__n { font-size: 11px; color: var(--muted); }
.index__name {
  display: inline-block;
  font-family: var(--serif);
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  letter-spacing: -0.015em;
  transform: translateX(calc(6px * var(--on, 0)));
  transition: transform 480ms var(--ease);
}
.index__stack { display: block; margin-top: 3px; font-size: 12.5px; color: var(--muted); }

.index__tag {
  font-size: 11px;
  color: var(--violet-2);
  opacity: var(--on, 0);
  transition: opacity 380ms ease;
  white-space: nowrap;
}
.index__tag--gold {
  opacity: 1;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(154, 116, 32, 0.06);
  border: 1px solid rgba(154, 116, 32, 0.38);
  color: var(--gold);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.stack {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-height: clamp(460px, 62vh, 640px);
}
.stack--flat { min-height: 220px; }
.stack > * {
  grid-area: 1 / 1;
  opacity: 0;
  transition: opacity 520ms ease, transform 620ms var(--ease);
}
.stack > *:first-child { opacity: 1; }

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: 24px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 20px 50px rgba(122, 63, 224, 0.1);
}
.card--dark { background: #221b2e; color: #f7f3fb; border-color: transparent; }
.card--dark .card__text { color: rgba(247, 243, 251, 0.84); }
.card--dark .card__kicker { color: #e2b9f6; }
.card--dark .meta > div { border-color: rgba(247, 243, 251, 0.16); }
.card--dark .meta dt { color: rgba(247, 243, 251, 0.6); }

.card--tint {
  background: linear-gradient(160deg, rgba(224, 72, 156, 0.13), rgba(122, 63, 224, 0.11));
  border-color: rgba(122, 63, 224, 0.18);
}
.card--prose { justify-content: center; padding: clamp(22px, 3vw, 38px); }

.card__body { padding: 20px 22px; }
.card__kicker {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--violet-3);
}
.card__display {
  margin-top: 14px;
  font-family: var(--serif);
  font-size: clamp(1.2rem, 2.2vw, 1.7rem);
  line-height: 1.4;
  color: var(--ink-2);
}
.card__text { margin-top: 12px; font-size: 15px; line-height: 1.64; color: var(--body); }
.card--prose .card__text { margin-top: 16px; font-size: 14.5px; line-height: 1.66; max-width: 46ch; }

.tag-gold {
  display: inline-block;
  padding: 6px 13px;
  border-radius: 999px;
  background: rgba(154, 116, 32, 0.06);
  border: 1px solid rgba(154, 116, 32, 0.38);
  color: var(--gold);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.meta { margin-top: 14px; display: grid; gap: 8px; font-size: 13.5px; }
.meta > div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}
.meta > div:last-child { padding-bottom: 0; border-bottom: 0; }
.meta dt { color: var(--muted); }
.meta dd { margin: 0; text-align: right; }
.meta--wide { margin-top: 20px; gap: 9px; max-width: 380px; font-size: 14px; }
.meta--wide > div { padding-bottom: 9px; border-color: rgba(122, 63, 224, 0.18); }

/* Phone mock-ups */
.phones {
  flex: 1;
  min-height: 190px;
  display: flex;
  gap: 18px;
  justify-content: center;
  align-items: flex-end;
  padding-top: 26px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(122, 63, 224, 0.06), rgba(224, 72, 156, 0.07));
}
.phone {
  position: relative;
  width: 136px;
  aspect-ratio: 460 / 1000;
  border-radius: 26px 26px 0 0;
  padding: 6px 6px 0;
  background: var(--ink);
  box-shadow: 0 -10px 34px rgba(42, 33, 53, 0.16);
}
.phone--drop { margin-bottom: -22px; }
.phone__screen {
  position: absolute;
  inset: 6px 6px 0;
  border-radius: 20px 20px 0 0;
  overflow: hidden;
  opacity: 0;
  transition: opacity 900ms ease, transform 1400ms var(--ease);
}
.phone__screen:first-of-type { opacity: 1; }
.phone__screen img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; cursor: zoom-in; }

/* ── About ───────────────────────────────────────────────────────── */
.about {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: clamp(28px, 4.5vw, 72px);
  align-items: center;
}

.about__stage {
  position: relative;
  justify-self: center;
  width: min(100%, 470px);
  padding-top: clamp(48px, 16%, 78px);
}

.about__glow {
  position: absolute;
  inset: 4% -6% -4% -6%;
  border-radius: 42px;
  background: radial-gradient(closest-side,
              rgba(122, 63, 224, 0.16),
              rgba(224, 72, 156, 0.1) 60%,
              transparent 78%);
  pointer-events: none;
}

.about__frame {
  position: relative;
  aspect-ratio: 6 / 5;
  border-radius: 30px;
  background: linear-gradient(170deg, rgba(255, 255, 255, 0.92), rgba(246, 238, 253, 0.55));
  border: 1px solid var(--edge);
  box-shadow: 0 30px 70px rgba(122, 63, 224, 0.16);
}
.about__photo { width: 86%; }

/* soft echo of the hero blob, behind her */
.about__halo {
  position: absolute;
  inset: -24% 10% 18%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(122, 63, 224, 0.2), rgba(224, 72, 156, 0.12) 55%, transparent 78%);
  filter: blur(10px);
}

.about__copy .h2 { margin-top: 14px; }
.about__copy .lede { margin-top: 20px; max-width: 54ch; line-height: 1.78; }

.pillars {
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(215px, 100%), 1fr));
  gap: 12px;
}
.pillar {
  display: grid;
  gap: 5px;
  padding: 16px 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--line);
  transition: transform 400ms var(--ease), box-shadow 400ms ease;
}
.pillar:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(122, 63, 224, 0.12); }
.pillar__t { font-family: var(--serif); font-size: 17px; }
.pillar__s { font-size: 12.5px; color: var(--muted); }

/* ── Expertise ───────────────────────────────────────────────────── */
.expertise { margin-top: clamp(22px, 3.6vh, 38px); text-align: center; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.filter {
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 13.5px;
  border: 1px solid rgba(122, 63, 224, calc(0.16 + 0.5 * var(--on, 0)));
  background: rgba(255, 255, 255, calc(0.8 + 0.2 * var(--on, 0)));
  color: rgba(42, 33, 53, calc(0.76 + 0.24 * var(--on, 0)));
  transition: border-color 380ms ease, background 380ms ease, transform 380ms var(--ease);
}
.filter:hover { transform: translateY(-2px); border-color: rgba(122, 63, 224, 0.5); }

.expertise .stack { margin-top: clamp(20px, 3.2vh, 34px); }
.skills { display: grid; gap: 16px; justify-items: center; align-content: start; }
.skills__note {
  max-width: 52ch;
  font-size: 14.5px;
  line-height: 1.66;
  color: var(--body);
}

/* ── Contact / footer ────────────────────────────────────────────── */
.contact {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--violet-deep) 0%, var(--violet) 46%, #b13a9c 100%);
  color: #fff;
}
.contact::before,
.contact::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(64px);
  pointer-events: none;
}
.contact::before {
  width: 560px;
  height: 560px;
  left: -160px;
  top: -140px;
  background: rgba(249, 201, 232, 0.22);
  animation: drift1 17s ease-in-out infinite alternate;
}
.contact::after {
  width: 660px;
  height: 660px;
  right: -200px;
  bottom: -180px;
  background: rgba(91, 33, 182, 0.5);
  animation: drift2 21s ease-in-out infinite alternate;
}
@keyframes drift1 { to { transform: translate3d(70px, 46px, 0) scale(1.12); } }
@keyframes drift2 { to { transform: translate3d(-80px, -52px, 0) scale(1.07); } }

.contact__inner {
  position: relative;
  z-index: 1;
  padding-block: clamp(60px, 11vh, 140px) clamp(26px, 4vh, 44px);
  text-align: center;
}
.contact__kicker {
  font-size: 12.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
}
.contact__title {
  margin: 18px auto 0;
  max-width: 22ch;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.2rem, 6.4vw, 4.8rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
}
.contact__title em { font-style: italic; color: var(--pink-soft); }
.contact__desc {
  margin: 22px auto 0;
  max-width: 52ch;
  font-size: 17px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.86);
  text-wrap: pretty;
}
.contact__actions {
  margin-top: clamp(28px, 5vh, 44px);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
.contact__email {
  display: inline-block;
  margin-top: 22px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14.5px;
  letter-spacing: 0.01em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.28);
  transition: color 240ms ease, border-color 240ms ease;
}
.contact__email:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.7);
}

.contact__foot {
  margin-top: clamp(48px, 9vh, 100px);
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.24);
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: space-between;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.78);
}
.contact__name { font-family: var(--serif); font-size: 16px; color: #fff; }

/* ── Lightbox ────────────────────────────────────────────────────── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-rows: 1fr auto;
  align-items: center;
  gap: clamp(8px, 2vw, 24px);
  padding: clamp(16px, 4vw, 48px);
  background: rgba(28, 20, 40, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  opacity: 0;
  transition: opacity 260ms ease;
}
.lightbox.is-open { opacity: 1; }
.lightbox[hidden] { display: none; }

.lightbox__img {
  grid-column: 2;
  grid-row: 1;
  justify-self: center;
  max-width: 100%;
  max-height: 82vh;
  width: auto;
  border-radius: 16px;
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.5);
  transform: scale(0.97);
  transition: transform 320ms var(--ease);
}
.lightbox.is-open .lightbox__img { transform: scale(1); }

.lightbox__caption {
  grid-column: 1 / -1;
  grid-row: 2;
  text-align: center;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.72);
}

.lightbox__nav {
  grid-row: 1;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 28px;
  line-height: 1;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  transition: background 220ms ease, transform 220ms var(--ease);
}
.lightbox__nav:hover { background: rgba(255, 255, 255, 0.22); transform: scale(1.08); }
.lightbox__nav--prev { grid-column: 1; }
.lightbox__nav--next { grid-column: 3; }

.lightbox__close {
  position: absolute;
  top: clamp(12px, 3vw, 28px);
  right: clamp(12px, 3vw, 28px);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 17px;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  transition: background 220ms ease;
}
.lightbox__close:hover { background: rgba(255, 255, 255, 0.22); }

body.is-locked { overflow: hidden; }

/* ── Responsive ──────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .nav, .nav__cta { display: none; }
  .burger { display: block; }
}

@media (max-width: 720px) {
  .hero { padding-top: clamp(96px, 14vh, 130px); }
  .hero__stage { width: min(100%, 380px); margin-top: 8px; }
  .float-card { padding: 10px 14px; }
  .spark { display: none; }
  .orb { display: none; }
  /* keep the decorative glows inside the gutter so nothing widens the page */
  .hero__aura  { inset: -6% -4% 4% -4%; }
  .about__glow { inset: 4% -4% -4% -4%; }
  .stack { min-height: 0; }
  .projects__grid { gap: 24px; }
  .contact__foot { justify-content: center; text-align: center; }
}

@media (max-width: 420px) {
  .float-card__title { font-size: 18px; }
  .float-card__kicker { font-size: 9px; letter-spacing: 0.14em; }
  .lightbox__nav { width: 40px; height: 40px; font-size: 24px; }
}

/* ── Reduced motion ──────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__blob,
  .float-card,
  .spark { animation: none !important; }
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* ── Print ───────────────────────────────────────────────────────── */
@media print {
  .site-header, .mobile-nav, .lightbox, .slides__dots, .glow, .orb, body::after { display: none !important; }
  body { background: #fff; }
  .stack > * { opacity: 1 !important; position: static !important; }
}
