/* =========================================================
   Parul Sharma — Portfolio · Homepage
   One typeface (Poppins), light by default, dark on toggle.
   ========================================================= */

:root {
  --font: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;

  --bg: #F7F6F2;
  --surface: #FFFFFF;
  --ink: #141414;
  --ink-2: #3A3A38;
  --muted: #6E6E68;
  --line: rgba(20, 20, 20, .09);
  --accent: #12A27A;
  --accent-soft: #D9F3E9;
  --on-accent: #FFFFFF;
  --shadow: 0 30px 60px -30px rgba(20, 30, 25, .25);

  --tint-arbor: #E4F1EB;   --tag-arbor: #1F7A5C;
  --tint-oracle: #F8E9E3;  --tag-oracle: #B5462A;
  --tint-deloitte: #ECEEF5; --tag-deloitte: #8E1F24;
  --tint-opal: #FFF2C6;    --tag-opal: #7A5A00;

  --blob-a: #BFEBD9;
  --blob-b: #FFE3A8;

  --radius-lg: 32px;
  --radius-md: 20px;
  --nav-h: 76px;
  --gutter: clamp(16px, 4vw, 48px);
  --maxw: 1240px;
  --ease: cubic-bezier(.22, 1, .36, 1);

  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #0D0F0E;
  --surface: #161917;
  --ink: #F1F0EA;
  --ink-2: #CFCEC8;
  --muted: #9A9A93;
  --line: rgba(255, 255, 255, .1);
  --accent: #4BE0A7;
  --accent-soft: #143328;
  --on-accent: #08130F;
  --shadow: 0 30px 70px -30px rgba(0, 0, 0, .7);

  --tint-arbor: #13221C;   --tag-arbor: #6FE0B5;
  --tint-oracle: #261915;  --tag-oracle: #FF9E80;
  --tint-deloitte: #171A24; --tag-deloitte: #FF8C8F;
  --tint-opal: #262012;    --tag-opal: #FFD45E;

  --blob-a: #0F3A2C;
  --blob-b: #3A2C0D;

  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  transition: background-color .5s var(--ease), color .5s var(--ease);
  overflow-x: clip;
}
main { overflow-x: clip; }
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
::selection { background: var(--accent); color: var(--on-accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 8px; }

.container { width: 100%; max-width: calc(var(--maxw) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }

.skip-link {
  position: fixed; top: 12px; left: 12px; z-index: 200;
  background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 999px;
  transform: translateY(-200%); transition: transform .3s var(--ease);
}
.skip-link:focus { transform: none; }

/* ---------- Scroll progress ---------- */
.progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 120; pointer-events: none; }
.progress span { display: block; height: 100%; background: var(--accent); transform-origin: 0 50%; transform: scaleX(0); }

/* ---------- Header ---------- */
/* Locked header: always pinned to the top on every screen size */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--nav-h);
  display: flex; align-items: center;
  transform: none !important; opacity: 1 !important; visibility: visible !important;
}
.nav::before {
  content: ""; position: absolute; inset: 0;
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter: saturate(160%) blur(16px); -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid var(--line);
  opacity: 0; transition: opacity .4s var(--ease);
}
.nav.is-scrolled::before { opacity: 1; }
.nav__inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 16px; }

.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 17px; letter-spacing: -.01em; }
.brand img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; background: var(--accent-soft); transition: transform .6s var(--ease); }
.brand:hover img { transform: rotate(-12deg) scale(1.08); }

.nav__links { display: flex; gap: 6px; padding: 6px; border-radius: 999px; background: color-mix(in srgb, var(--surface) 70%, transparent); border: 1px solid var(--line); }
.nav__links a { position: relative; padding: 8px 18px; border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--muted); transition: color .3s, background-color .3s; }
.nav__links a:hover { color: var(--ink); }
.nav__links a.is-active { color: var(--ink); background: var(--bg); box-shadow: 0 1px 0 var(--line); }

.nav__actions { display: flex; align-items: center; gap: 8px; }

/* Theme toggle */
.theme-toggle {
  width: 44px; height: 44px; display: grid; place-items: center;
  border-radius: 50%; border: 1px solid var(--line); background: var(--surface);
  transition: transform .4s var(--ease), background-color .4s;
}
.theme-toggle:hover { transform: rotate(-15deg) scale(1.06); }
.theme-toggle__icon { overflow: visible; }
.theme-toggle__sun { transform-origin: center; transition: transform .6s var(--ease); }
.theme-toggle__mask { transition: transform .6s var(--ease); }
.theme-toggle__rays { transform-origin: center; transition: transform .6s var(--ease), opacity .4s; }
[data-theme="dark"] .theme-toggle__sun { transform: scale(1.75); }
[data-theme="dark"] .theme-toggle__mask { transform: translate(-9px, 5px); }
[data-theme="dark"] .theme-toggle__rays { transform: rotate(45deg) scale(.4); opacity: 0; }

/* Mobile menu */
.menu-btn { display: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); position: relative; }
.menu-btn span { position: absolute; left: 13px; right: 13px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .4s var(--ease); }
.menu-btn span:first-child { transform: translateY(-4px); }
.menu-btn span:last-child { transform: translateY(4px); }
.menu-btn[aria-expanded="true"] span:first-child { transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { transform: rotate(-45deg); }

.mobile-menu {
  position: absolute; top: calc(var(--nav-h) - 6px); left: var(--gutter); right: var(--gutter);
  display: grid; gap: 4px; padding: 10px; border-radius: var(--radius-md);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
  animation: menuIn .45s var(--ease);
}
.mobile-menu[hidden] { display: none; }
.mobile-menu a { padding: 14px 16px; border-radius: 12px; font-size: 18px; font-weight: 500; }
.mobile-menu a:hover { background: var(--bg); }
@keyframes menuIn { from { opacity: 0; transform: translateY(-8px) scale(.98); } }

/* ---------- Buttons ---------- */
.btn {
  --pad: 16px 26px;
  display: inline-flex; align-items: center; gap: 10px; padding: var(--pad);
  border-radius: 999px; font-weight: 500; font-size: 15px; line-height: 1;
  position: relative; overflow: hidden; isolation: isolate;
  transition: color .4s var(--ease), border-color .4s, box-shadow .4s;
  will-change: transform;
}
.btn svg { transition: transform .4s var(--ease); }
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  transform: translateY(101%); transition: transform .5s var(--ease);
}
.btn:hover::before { transform: none; }
.btn--primary { background: var(--ink); color: var(--bg); }
.btn--primary::before { background: var(--accent); }
.btn--primary:hover { color: var(--on-accent); box-shadow: 0 14px 30px -12px color-mix(in srgb, var(--accent) 70%, transparent); }
.btn--primary:hover svg { transform: translateY(2px); }
.btn--ghost { border: 1px solid color-mix(in srgb, var(--ink) 22%, transparent); }
.btn--ghost::before { background: var(--ink); }
.btn--ghost:hover { color: var(--bg); border-color: var(--ink); }
.btn--ghost:hover svg { transform: translate(2px, -2px); }

/* ---------- Hero ---------- */
.hero { position: relative; padding-top: calc(var(--nav-h) + clamp(40px, 9vh, 110px)); padding-bottom: 0; }
.hero__blob { position: absolute; z-index: -1; border-radius: 50%; filter: blur(70px); opacity: .7; pointer-events: none; transition: background-color .6s; }
.hero__blob--a { width: 42vw; max-width: 560px; aspect-ratio: 1; background: var(--blob-a); top: 8%; right: -8%; animation: float 14s ease-in-out infinite; }
.hero__blob--b { width: 30vw; max-width: 380px; aspect-ratio: 1; background: var(--blob-b); bottom: -10%; left: -8%; animation: float 18s ease-in-out infinite reverse; }
@keyframes float { 50% { transform: translate(-40px, 30px) scale(1.08); } }

/* "Hello! I'm Parul" pill — lives in the header as the home link */
.hello {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 4px 16px 4px 4px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line);
  font-weight: 500; font-size: 15px; white-space: nowrap;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.hello:hover { transform: translateY(-1px); box-shadow: 0 10px 24px -14px rgba(0,0,0,.35); }
.hello__avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; background: var(--accent-soft); transition: transform .6s var(--ease); }
.hello:hover .hello__avatar { transform: rotate(-12deg) scale(1.06); }
.wave { display: inline-block; transform-origin: 70% 70%; animation: wave 2.4s ease-in-out infinite; }
@keyframes wave { 0%, 60%, 100% { transform: rotate(0); } 10%, 30% { transform: rotate(16deg); } 20% { transform: rotate(-8deg); } 40% { transform: rotate(-4deg); } 50% { transform: rotate(10deg); } }

.hero__grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  align-items: center; gap: clamp(32px, 5vw, 80px);
}
/* Tagline pill above the title */
.hero__tagline {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 20px; padding: 7px 16px 7px 12px;
  border-radius: 999px; border: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 70%, transparent);
  font-size: 14px; font-weight: 500; color: var(--ink-2); white-space: nowrap;
}
.hero__tagline-spark { color: #FEAA04; font-size: 13px; line-height: 1; }
.hero__title {
  margin: 0; font-weight: 600; letter-spacing: -.04em; line-height: 1.02;
  font-size: clamp(42px, 5.6vw, 84px);
}
.line { display: block; overflow: hidden; padding-bottom: .06em; }
.line__inner { display: inline-block; }
.dot { color: var(--accent); }

.hero__lead { margin: clamp(20px, 2.4vw, 28px) 0 0; max-width: 36ch; font-size: clamp(17px, 1.7vw, 21px); line-height: 1.55; color: var(--ink-2); font-weight: 300; }
.hero__lead strong { font-weight: 500; color: var(--ink); }
.pill { display: inline-block; padding: 0 .55em; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(28px, 3vw, 40px); }

/* Hero video card */
.hero__media { position: relative; }
.video-card {
  position: relative; display: block; aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg); overflow: hidden;
  background: var(--surface); box-shadow: var(--shadow);
  isolation: isolate; cursor: pointer;
}
.video-card__video { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.video-card::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(to top, rgba(0,0,0,.35), transparent 45%);
  opacity: 0; transition: opacity .5s var(--ease);
}
.video-card:hover .video-card__video { transform: scale(1.04); }
.video-card:hover::after, .video-card:focus-visible::after { opacity: 1; }
.video-card__open {
  position: absolute; left: 16px; bottom: 16px; z-index: 2;
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px;
  background: rgba(255,255,255,.92); color: #141414; font-size: 13px; font-weight: 600;
  opacity: 0; transform: translateY(8px); transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.video-card:hover .video-card__open, .video-card:focus-visible .video-card__open { opacity: 1; transform: none; }
.video-card__sound { position: absolute; right: 16px; bottom: 16px; z-index: 3; }
@media (hover: none) { .video-card__open { opacity: 1; transform: none; } }

/* Stats: three small cards with an icon, a big figure and a label */
.stats { list-style: none; margin: 72px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.stats li {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 16px; align-items: center;
  padding: 20px 22px; border-radius: var(--radius-md);
  background: transparent; border: 1px solid var(--line);
  transition: transform .5s var(--ease), border-color .4s;
}
/* Hover: lift, with the sweater yellow on the card and icon-tile outlines */
.stats li:hover { transform: translateY(-4px); border-color: color-mix(in srgb, #FEAA04 70%, transparent); }
.stats li:hover .stats__icon { border-color: color-mix(in srgb, #FEAA04 60%, transparent); }
.stats__icon {
  grid-row: 1 / span 2; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center;
  /* Transparent tile with a thin outline; icon in a softer black */
  background: transparent; color: var(--ink-2); border: 1px solid var(--line);
  transition: transform .6s var(--ease), border-color .4s;
}
.stats li:hover .stats__icon { transform: rotate(-8deg) scale(1.06); }
/* One title size for all three cards (figure or phrase) */
.stats strong { align-self: end; font-size: clamp(20px, 1.8vw, 26px); font-weight: 600; letter-spacing: -.025em; line-height: 1.15; }
/* Tablet & phone: still three across; the icon sits above the text to give the copy more width */
@media (max-width: 960px) {
  .stats li { grid-template-columns: 1fr; grid-template-rows: auto; row-gap: 10px; align-content: start; padding: 18px; }
  .stats__icon { grid-row: auto; }
  .stats strong { align-self: start; }
}
.stats__label { align-self: start; font-size: 14px; color: var(--muted); line-height: 1.4; }

/* ---------- Video chip ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border: 0; border-radius: 999px;
  background: rgba(15, 15, 15, .55); color: #fff; font-size: 13px; font-weight: 500;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: background-color .3s, transform .3s var(--ease);
}
.chip:hover { background: rgba(15, 15, 15, .75); transform: translateY(-2px); }
.chip[data-video="sound"] .chip__wave { display: none; }
.chip[data-video="sound"][aria-pressed="true"] .chip__wave { display: inline; }
.chip[data-video="sound"][aria-pressed="true"] .chip__mute { display: none; }

/* ---------- Skills strip: ticker with Core / AI tags ---------- */
.marquee {
  margin-top: 56px; /* exactly 56px below the stats cards */
  padding-block: 20px; border-block: 1px solid var(--line); overflow: hidden;
}
.marquee__track { display: flex; width: max-content; will-change: transform; }
.marquee ul { display: flex; list-style: none; margin: 0; padding: 0; }
.marquee li {
  display: flex; align-items: center; gap: 12px; white-space: nowrap;
  padding: 0 28px; border-right: 1px solid var(--line);
}
.tick__t { font-size: clamp(16px, 1.6vw, 20px); font-weight: 500; letter-spacing: -.01em; color: var(--ink); }
.tick__tag {
  font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 999px; background: var(--accent-soft); color: var(--accent);
}
/* AI skills: tagged in the yellow of the sweater in the intro video */
.tick__tag--ai { background: color-mix(in srgb, #FEAA04 18%, transparent); color: #B87400; }
[data-theme="dark"] .tick__tag--ai { color: #FEAA04; }
@media (max-width: 760px) {
  .hero__tagline { font-size: 12px; padding: 6px 12px 6px 10px; margin-bottom: 14px; }
  .marquee { padding-block: 16px; }
  .marquee li { gap: 10px; padding: 0 20px; }
  .tick__t { font-size: 15px; }
}

/* ---------- Section heads ---------- */
.work { padding-top: clamp(80px, 12vw, 160px); }
.section-head { display: grid; gap: 12px; margin-bottom: clamp(40px, 6vw, 72px); }
.eyebrow { margin: 0; display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 500; color: var(--accent); text-transform: uppercase; letter-spacing: .12em; }
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; border-radius: 2px; }
.section-title { margin: 0; font-weight: 600; font-size: clamp(38px, 6vw, 80px); letter-spacing: -.04em; line-height: 1.02; }
.section-title sup { font-size: .3em; font-weight: 500; color: var(--muted); vertical-align: top; position: relative; top: .5em; letter-spacing: 0; }
.section-sub { margin: 0; max-width: 46ch; color: var(--muted); font-size: 17px; }

/* ---------- Case cards (sticky stack) ---------- */
.cases { display: grid; gap: clamp(20px, 3vw, 32px); }
/* Reading pause: extra scroll room after each card, so it rests fully visible
   (readable and clickable) before the next card starts sliding over it */
.case:not(:last-child) { margin-bottom: var(--case-dwell, 60vh); }
@media (max-width: 760px) { .case:not(:last-child) { --case-dwell: 42vh; } }
/* The last card also rests at the top (same pause as the others) before the stack scrolls away.
   A margin on a sticky card counts as part of the card and stops it sticking, so an empty
   spacer after it provides the room instead. */
.cases::after { content: ""; height: 60vh; }
@media (max-width: 760px) { .cases::after { height: 42vh; } }
.case { position: sticky; top: calc(var(--nav-h) + 16px); }
.case:nth-child(2) { top: calc(var(--nav-h) + 32px); }
.case:nth-child(3) { top: calc(var(--nav-h) + 48px); }
.case:nth-child(4) { top: calc(var(--nav-h) + 64px); }
.case__inner {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; gap: clamp(24px, 4vw, 64px);
  min-height: min(640px, calc(100vh - var(--nav-h) - 100px));
  padding: clamp(24px, 4vw, 56px);
  border-radius: var(--radius-lg); background: var(--tint);
  /* Outline stays crisp while the content fades, so stacked cards read as a deck */
  border: 1px solid color-mix(in srgb, var(--tag) 28%, transparent);
  box-shadow: 0 -14px 34px -20px rgba(0, 0, 0, .28);
  transform-origin: 50% 0; will-change: transform;
  transition: background-color .5s var(--ease);
}
/* Dimming layer: transparent by default, fades in only while the next card slides over */
.case__shade {
  position: absolute; inset: 0; z-index: 5; pointer-events: none;
  background: var(--tint); opacity: 0; border-radius: inherit;
}
.case__num { display: inline-block; font-size: 14px; font-weight: 600; color: var(--tag); padding: 4px 12px; border-radius: 999px; background: color-mix(in srgb, var(--tag) 12%, transparent); }
.case__title { margin: 16px 0 12px; font-size: clamp(34px, 4.6vw, 60px); font-weight: 600; letter-spacing: -.04em; line-height: 1.02; }
.case__desc { margin: 0; font-size: clamp(16px, 1.4vw, 18px); color: var(--ink-2); max-width: 40ch; }
.case__meta { margin: 24px 0 28px; display: grid; gap: 10px; }
.case__meta div { display: grid; grid-template-columns: 84px 1fr; gap: 12px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 14px; }
.case__meta dt { color: var(--muted); }
.case__meta dd { margin: 0; font-weight: 500; }

.link-arrow { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px; padding-bottom: 4px; background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat; transition: background-size .5s var(--ease), gap .4s var(--ease); }
.link-arrow:hover { background-size: 100% 2px; gap: 16px; }

.case__media { position: relative; display: block; perspective: 1000px; cursor: none; }
.case__media img { width: 100%; height: auto; transition: transform .7s var(--ease); filter: drop-shadow(0 30px 40px rgba(0,0,0,.16)); will-change: transform; }
.case__media:hover > img:first-child { transform: scale(1.03); }
.case__media--duo .case__phone {
  position: absolute; width: 26%; right: -2%; bottom: -8%;
  filter: drop-shadow(0 24px 30px rgba(0,0,0,.22));
}
.case__media--duo:hover .case__phone { transform: translateY(-12px) rotate(-3deg); }

/* ---------- Custom cursor (desktop only) ---------- */
.cursor {
  position: fixed; left: 0; top: 0; z-index: 150; pointer-events: none;
  width: 108px; height: 108px; margin: -54px 0 0 -54px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--accent); color: var(--on-accent);
  transform: scale(0); opacity: 0;
  transition: transform .45s var(--ease), opacity .3s;
}
.cursor.is-active { transform: scale(1); opacity: 1; }
.cursor__label { font-size: 13px; font-weight: 600; }

/* ---------- Contact ---------- */
.contact { padding-block: clamp(110px, 16vw, 220px) clamp(60px, 8vw, 100px); text-align: center; display: grid; justify-items: center; gap: 24px; }
.contact__title { margin: 0; font-weight: 600; font-size: clamp(44px, 8.4vw, 128px); letter-spacing: -.045em; line-height: 1; }
.contact__title em { font-style: italic; font-weight: 400; color: var(--accent); }
.contact__links { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(248px, 1fr); justify-content: center; gap: 12px; margin-top: 16px; }
.contact__links .btn { justify-content: center; } /* all three buttons share the widest one's width */
.contact-pop { position: relative; z-index: 5; display: grid; }
button.btn { border: 0; cursor: pointer; font: inherit; font-weight: 500; font-size: 15px; }

/* Contact details card: drops down from "Contact me", same width as the button, floats over what's below */
.contact-card {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0; padding: 14px 16px 6px;
  border-radius: 20px; background: var(--surface); border: 1px solid var(--line);
  box-shadow: 0 18px 40px -12px rgba(20, 20, 20, .22); text-align: left;
  opacity: 0; transform: translateY(-6px); transform-origin: top center; transition: opacity .25s var(--ease), transform .35s var(--ease);
}
.contact-card.is-open { opacity: 1; transform: none; }
.contact-card[hidden] { display: none; }
.contact-card__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 2px; }
.contact-card__title { margin: 0; font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.contact-card__close {
  width: 30px; height: 30px; display: grid; place-items: center; padding: 0; margin-right: -4px;
  border-radius: 50%; border: 1px solid var(--line); background: transparent; color: var(--ink); cursor: pointer;
  transition: transform .4s var(--ease), border-color .3s;
}
.contact-card__close:hover { transform: rotate(90deg); border-color: color-mix(in srgb, var(--ink) 30%, transparent); }
.contact-card__row { padding: 10px 0; border-top: 1px solid var(--line); }
.contact-card__head + .contact-card__row { border-top: 0; }
.contact-card__meta { display: flex; align-items: center; gap: 6px; margin-bottom: 2px; }
.contact-card__icon { display: grid; place-items: center; color: var(--muted); }
.contact-card__meta small { font-size: 12px; color: var(--muted); }
.contact-card__row a { display: block; font-size: 14px; font-weight: 500; color: var(--ink); white-space: nowrap; }
.contact-card__row a:hover { color: var(--accent); }
.contact-card__copy {
  margin-left: auto; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line); background: transparent;
  font: inherit; font-size: 12px; font-weight: 500; color: var(--ink); cursor: pointer; transition: border-color .3s, background-color .3s, color .3s;
}
.contact-card__copy:hover { border-color: color-mix(in srgb, #FEAA04 70%, transparent); }
.contact-card__copy.is-done { background: var(--accent-soft); color: var(--accent); border-color: transparent; }
[data-theme="dark"] .contact-card { box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .6); }

/* ---------- Footer ---------- */
.footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-block: 28px 40px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.footer p { margin: 0; }
.to-top:hover { color: var(--ink); }

/* ---------- Reveal helpers (only when JS runs) ---------- */
.js [data-hero], .js .reveal { opacity: 0; transform: translateY(28px); }
.js .line__inner { transform: translateY(110%); }

/* ---------- Theme switch transition ---------- */
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; }
  /* Video sits below the text here, so "AI Product Designer." goes on ONE line,
     sized to the available width (the phrase is ~9.4em wide; 10.3 leaves a little breathing room) */
  .hero__title { white-space: nowrap; font-size: min(68px, calc((100vw - 2 * var(--gutter)) / 10.3)); }
  .hero__title .line { display: inline-block; vertical-align: top; }
  .hero__lead { max-width: 48ch; }
  .case__inner { grid-template-columns: 1fr; min-height: 0; gap: 20px; }
  .case__media { order: -1; width: fit-content; max-width: 100%; margin-inline: auto; }
  /* Keep the thumbnail short so a whole card fits on screen and can stack */
  .case__media > img:first-child { max-height: 34vh; width: auto; margin-inline: auto; }
  .case__desc { max-width: none; }
}
@media (max-width: 760px) {
  :root { --nav-h: 68px; --radius-lg: 24px; }
  .nav__links { display: none; }
  .menu-btn { display: inline-block; }
  .hello { font-size: 14px; gap: 8px; padding-right: 12px; }
  .hello__avatar { width: 32px; height: 32px; }
  .hero__cta { width: 100%; }
  .hero__cta .btn { flex: 1 1 auto; justify-content: center; }
  /* Phone: three compact cards side by side, icon on top */
  .stats { gap: 8px; }
  .stats li { padding: 14px 12px; row-gap: 8px; }
  .stats__icon { width: 34px; height: 34px; border-radius: 10px; }
  .stats__icon svg { width: 16px; height: 16px; }
  .stats strong { font-size: 15px; line-height: 1.25; }
  .stats__label { font-size: 11.5px; line-height: 1.4; }
  .video-card__open { left: 10px; bottom: 10px; padding: 8px 12px; font-size: 12px; }
  .video-card__sound { right: 10px; bottom: 10px; }
  .chip span { display: none; }
  .chip { padding: 10px; }
  /* Compact phone card */
  .case__inner { padding: 20px; gap: 14px; }
  .case__media > img:first-child { max-height: 28svh; }
  .case__title { font-size: 30px; margin: 10px 0 6px; }
  .case__desc { font-size: 15px; line-height: 1.5; }
  .case__meta { margin: 14px 0 16px; gap: 6px; }
  .case__meta div { grid-template-columns: 72px 1fr; padding-top: 6px; font-size: 13px; }
  .contact__links { grid-auto-flow: row; width: 100%; }
  .footer { justify-content: center; text-align: center; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js [data-hero], .js .reveal, .js .line__inner { opacity: 1 !important; transform: none !important; }
  .cursor { display: none; }
}
