/* =========================================================
   Anshika Doogar  ·  Portfolio
   Editorial design system, extracted from the Framer source.
   ========================================================= */

:root {
  /* Colour tokens — Anshika Doogar design system */
  --paper:      #efece3;
  --paper-2:    #e5e2d8;
  --paper-card: #f6f3ec;
  --ink:        #16150f;
  --ink-soft:   rgba(22,21,15,.65);
  --ink-faint:  rgba(22,21,15,.62);   /* WCAG-AA: small metadata/eyebrow text needs >=4.5:1 on paper */
  --navy:       #001666;
  --navy-deep:  #001148;
  --charcoal:   #2A3132;
  --pink:       #ff3d7f;
  --pink-text:  #c9215e;
  --pink-soft:  #ffc9de;
  --lime:       #88ED2F;
  --lime-deep:  #6BCB18;
  --on-lime:    #14240A;
  --orange:     #e2502b;
  --blue:       #2b4bff;
  --green:      #1f9d57;   /* deep accent green (disciplines star, services 04, status dot) */
  --mint:       #a6f0c6;   /* soft hero-highlight mint */
  --yellow:     #ffe14d;
  --lightblue:  #c9d8ff;
  --line:       rgba(22,21,15,0.12);
  --line-soft:  rgba(22,21,15,0.07);

  /* Type */
  --display: "Archivo Black", sans-serif;
  --serif: "EB Garamond", Georgia, "Times New Roman", serif;
  --sans:  "Space Grotesk", system-ui, -apple-system, sans-serif;
  --mono:  "Space Mono", "SF Mono", Menlo, monospace;

  /* Radius — one calmer system; big surfaces stop reading "over-rounded" */
  --r-sm: 12px;
  --r-md: 16px;
  --r-lg: 20px;
  --r-xl: 26px;

  /* Layout */
  --maxw: 1240px;
  --gutter: clamp(20px, 5vw, 64px);

  /* Shadow — tinted to the warm paper, modest blur (no ghost-card glows) */
  --shadow-sm: 0 1px 2px rgba(24,23,21,0.05), 0 4px 12px rgba(24,23,21,0.05);
  --shadow-md: 0 10px 30px rgba(24,23,21,0.09);
  --shadow-lg: 0 24px 60px rgba(24,23,21,0.14);

  /* Motion — Emil Kowalski easing + duration scale */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);          /* legacy alias */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);      /* entrances, hovers */
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);  /* on-screen movement */
  --ease-spring: cubic-bezier(0.34, 1.4, 0.5, 1);  /* tiny optional settle */
  --t-press: 130ms;   /* button press feedback */
  --t-hover: 200ms;   /* hover / color */
  --t-reveal: 560ms;  /* entrance reveal */
  --t-media: 720ms;   /* clip-path media reveal */
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 76px; -webkit-tap-highlight-color: transparent; }

body {
  margin: 0;
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-size: 17px;
  line-height: 1.55;
  overflow-x: clip;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* Keyboard focus visibility */
a:focus-visible, button:focus-visible, input:focus-visible,
textarea:focus-visible, select:focus-visible, [tabindex]:focus-visible {
  outline: 2.5px solid var(--navy);
  outline-offset: 2px;
  border-radius: 4px;
}

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

/* ---------- Layout helpers ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(38px, 3.4vw, 52px); position: relative; }
.section--tight { padding-block: clamp(24px, 2.6vw, 34px); }

/* Skip link for accessibility */
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--ink); color: var(--paper);
  padding: 10px 16px; border-radius: 10px; font-weight: 600;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; }

/* ---------- Type ---------- */
.eyebrow {
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ink-faint);
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 1px;
  background: currentColor;
  display: inline-block;
  flex: none;
}
.eyebrow--center::before { display: none; }

/* Space Mono numbered section labels — "(01) — LABEL" (doc-faithful) */
.eyebrow--num {
  font-family: var(--mono); font-weight: 400;
  font-size: .72rem; letter-spacing: .18em; text-transform: uppercase;
  display: block; margin-bottom: 10px;
}
.eyebrow--num::before { display: none; }
.eb-yellow { color: var(--yellow); }
.eb-blue   { color: var(--blue); }
.eb-pink   { color: var(--pink); }
.eb-green  { color: var(--green); }
.eb-orange { color: var(--orange); }

.display {
  font-family: var(--display);
  font-style: normal;
  font-weight: 400;
  color: var(--ink);
  line-height: .98;
  letter-spacing: -1.5px;
  margin: 0;
  overflow-wrap: break-word;
}

.h-section {
  font-family: var(--display);
  font-style: normal;
  font-weight: 400;
  color: var(--ink);
  font-size: clamp(1.9rem, 4.5vw, 3.4rem);
  line-height: 1.04;
  letter-spacing: -1px;
  margin: 0;
  overflow-wrap: break-word;
}

.lede {
  font-size: clamp(1.05rem, 1.7vw, 1.35rem);
  color: var(--ink-soft);
  line-height: 1.5;
  max-width: 46ch;
}

.mono {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  font-weight: 600;
  font-size: 1.02rem;
  padding: 0.95em 1.6em;
  border-radius: 999px;
  border: none;
  transition: transform var(--t-hover) var(--ease-out), box-shadow var(--t-hover) var(--ease-out), background var(--t-hover) var(--ease-out), border-color var(--t-hover) var(--ease-out);
  will-change: transform;
  text-align: center;
}
.btn .arr { transition: transform var(--t-hover) var(--ease-out); flex: none; }
.btn:hover .arr { transform: translate(3px, -3px); }
/* Emil: every pressable element confirms the press */
.btn:active { transform: scale(0.97); transition-duration: var(--t-press); }

.btn--lime { background: var(--lime); color: var(--on-lime); box-shadow: var(--shadow-sm); }
.btn--lime:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.btn--lime:active { transform: scale(0.97); }

.btn--ink { background: var(--ink); color: var(--paper); }
.btn--ink:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.btn--ink:active { transform: scale(0.97); }

.btn--ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn--ghost:hover { border-color: var(--ink); transform: translateY(-3px); }
.btn--ghost:active { transform: scale(0.97); }

.btn--pink { background: var(--pink); color: #fff; box-shadow: var(--shadow-sm); }
.btn--pink:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.btn--pink:active { transform: scale(0.97); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 0.45em;
  font-weight: 600; color: var(--navy);
  transition: color var(--t-hover) var(--ease-out);
}
.link-arrow .arr { transition: transform var(--t-hover) var(--ease-out); flex: none; }
.link-arrow:hover { color: var(--pink); }
.link-arrow:hover .arr { transform: translate(3px,-3px); }
.link-arrow:active { transform: translateX(1px); }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 80;
  padding: 16px 0;   /* horizontal gutter comes from the inner .wrap; don't double-pad (it misaligns the nav from page content and starves the brand-centering grid) */
  background: rgba(239,236,227,.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0,0,0,.1);
  transition: box-shadow .3s;
}
.nav.is-stuck {
  box-shadow: 0 4px 20px rgba(22,21,15,.08);
}
/* Brand-left, links-flow, CTA-right: a single flex row (not a centred-brand
   grid) so the bar reads as evenly weighted regardless of how many plain
   links sit in the middle group -- a centred-brand grid with lopsided left/
   right groups (2 items vs 5) read as visually unbalanced even though the
   brand itself was mathematically centred. */
.nav__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
}
.nav__brand { justify-self: start; }
.nav__links { display: flex; gap: 20px; align-items: center; flex-wrap: nowrap; justify-self: center; }
.nav__link.nav__cta { justify-self: end; }
.nav__link {
  font-size: .92rem; font-weight: 500; color: var(--ink-soft);
  position: relative; padding-block: 4px;
  transition: color var(--t-hover) var(--ease-out), transform var(--t-press) var(--ease-out);
}
.nav__link:active { transform: translateY(1px); }
.nav__link::after {
  content:""; position:absolute; left:0; bottom:0; height:1.5px; width:100%;
  background: var(--pink); transform: scaleX(0); transform-origin: left;
  transition: transform var(--t-hover) var(--ease-out);
}
.nav__link:hover { color: var(--ink); }
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); }
.nav__link.is-active { color: var(--ink); }
.nav__brand {
  font-family: var(--display); font-style: normal; font-weight: 400;
  font-size: .95rem; color: var(--ink); white-space: nowrap;
  letter-spacing: .2px; flex: none;
}
/* CTA: the single highlighted nav item (Contact), right-anchored -- keeps
   .nav__link for the shared active-state/close-on-tap JS and the mobile row
   treatment; this only adds the desktop pill chrome. Threshold matches the
   hamburger-menu cutoff below so the pill never appears inside the stacked
   mobile dropdown. */
@media (min-width: 901px) {
  .nav__link.nav__cta {
    background: var(--ink); color: var(--paper);
    padding: 9px 18px; border-radius: 999px; font-weight: 600; font-size: .88rem;
    display: inline-flex; align-items: center; gap: 6px;
    transition: transform var(--t-hover) var(--ease-out), box-shadow var(--t-hover) var(--ease-out);
  }
  .nav__link.nav__cta::after { display: none; }
  .nav__link.nav__cta:hover { color: var(--paper); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
  .nav__link.nav__cta:active { transform: translateY(0) scale(0.97); }
  .nav__cta-arr { display: inline-block; transition: transform var(--t-hover) var(--ease-out); }
  .nav__link.nav__cta:hover .nav__cta-arr { transform: translate(2px, -2px); }
}
.nav__menu-btn { display: none; }

/* ---------- Image placeholders ---------- */
/* Flat tinted surfaces, not diagonal stripes. An empty media slot should read
   as a quiet held space, never as decoration pretending to be art. */
.ph {
  position: relative;
  background: var(--paper-2);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  color: var(--ink-faint);
}
.ph__label {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.68rem; letter-spacing: 0.05em;
  text-transform: uppercase;
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 11px;
  color: var(--ink-soft);
  text-align: center;
  max-width: 88%;
}
.ph--tint-lime { background: #E7F7D2; }
.ph--tint-pink { background: #FBE2F0; }
.ph--tint-navy { background: #D7DEF4; }
.ph--tint-blue { background: #CADCFC; }

.ph > img { position:absolute; inset:0; width:100%; height:100%; object-fit: cover; }

/* ---------- Cards ---------- */
.card {
  background: var(--paper-card);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform var(--t-hover) var(--ease-out), box-shadow var(--t-hover) var(--ease-out);
}
.card:hover { transform: translateY(-5px); box-shadow: 0 26px 50px -26px rgba(0,0,0,.4); }
a.card:active, .card a:active { transform: scale(0.99); }

/* ---------- Scroll reveal ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--t-reveal) var(--ease-out), transform var(--t-reveal) var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}
[data-reveal].is-in { opacity: 1; transform: none; }
.no-anim [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
.no-anim .marquee__track { animation: none !important; }

/* ---------- Clip-path media reveal ----------
   Rides the existing is-in toggle: any image/video inside a revealing
   container wipes up from its lower edge. Pure CSS, transform/clip only. */
[data-reveal] .reveal-media,
[data-reveal].reveal-media-self {
  clip-path: inset(0 0 14% 0);
  opacity: 0.001;
  transition: clip-path var(--t-media) var(--ease-out), opacity var(--t-media) var(--ease-out);
  transition-delay: calc(var(--reveal-delay, 0ms) + 40ms);
}
[data-reveal].is-in .reveal-media,
[data-reveal].is-in.reveal-media-self { clip-path: inset(0 0 0 0); opacity: 1; }
.no-anim .reveal-media, .no-anim .reveal-media-self { clip-path: none !important; opacity: 1 !important; }

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  .reveal-media, .reveal-media-self { clip-path: none !important; opacity: 1 !important; }
  html { scroll-behavior: auto; }
}

/* ---------- Skeleton / shimmer loading ----------
   Reserves a grid's shape and shimmers until Supabase content lands. */
.skeleton {
  position: relative; overflow: hidden;
  background: var(--paper-2); border-radius: var(--r-md);
  border: 1px solid var(--line-soft);
}
.skeleton::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, transparent 20%, rgba(255,255,255,0.55) 50%, transparent 80%);
  transform: translateX(-100%);
  animation: skeleton-shimmer 1.35s var(--ease-in-out) infinite;
}
@keyframes skeleton-shimmer { to { transform: translateX(100%); } }
.skeleton-grid { display: grid; gap: clamp(18px, 2.4vw, 30px); }
@media (prefers-reduced-motion: reduce) { .skeleton::after { animation: none; opacity: .4; } }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; contain: paint; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { display: flex; width: max-content; gap: 16px; animation: marquee var(--mq-dur, 36s) linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee--rev .marquee__track { animation-direction: reverse; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee__track { animation: none; flex-wrap: wrap; justify-content: center; width: 100%; } }

.chip {
  display: inline-flex; align-items: center; gap: 0.5em;
  white-space: nowrap;
  font-weight: 600; font-size: 1.05rem;
  padding: 0.6em 1.15em;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  color: var(--ink);
  background: var(--paper-card);
  transition: transform var(--t-hover) var(--ease-out), border-color var(--t-hover) var(--ease-out), color var(--t-hover) var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .chip:hover { transform: translateY(-2px); border-color: var(--ink); }
}
/* decorative dot retired site-wide (kept as a no-op so legacy markup is clean) */
.chip__dot { display: none; }

/* ---------- Footer ---------- */

/* ---------- Utility ---------- */
.center { text-align: center; }
.muted { color: var(--ink-soft); }
.tilt-l { transform: rotate(-4deg); }
.tilt-r { transform: rotate(4deg); }
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }

/* ---------- Shared footer: file-folder stack ----------
   Header + folder zone sit on the site's paper so the footer blends out of the
   page; only the colour bars and the bottom anchor bar carry weight. */
.site-foot { background: var(--paper); color: var(--ink); padding-top: clamp(48px, 7vw, 70px); margin-top: 20px; overflow: hidden; }
.site-foot__head { max-width: 1080px; margin: 0 auto; padding: 0 5vw; text-align: center; }
.site-foot__eyebrow { font-family: var(--mono); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--pink-text); }
.site-foot__eyebrow::before { content: "\2014\00a0"; }
.site-foot__title { font-family: var(--display); font-weight: 400; font-size: clamp(30px, 5vw, 52px); letter-spacing: -1px; line-height: 1.02; color: var(--ink); margin: 14px 0 12px; }
.site-foot__sub { font-family: var(--serif); font-style: italic; font-size: clamp(1.1rem, 2.4vw, 1.3rem); color: var(--ink-soft); margin: 0 auto; max-width: 460px; }

/* Four full-bleed colour bars; each folder's tab pokes up over the bar above it,
   and increasing z-index stacks the tabs like files in a drawer. */
.site-foot__folders { margin-top: clamp(52px, 8vw, 74px); }
.folder { position: relative; display: block; text-decoration: none; color: inherit; }
.folder__tab {
  position: absolute; top: -34px; left: var(--tab-left, 6%);
  width: clamp(150px, 30vw, 250px); height: 38px;
  display: flex; align-items: center; padding: 0 24px;
  border-radius: 14px 14px 0 0;
  clip-path: polygon(0 0, 84% 0, 100% 100%, 0 100%);
  background: var(--fold); color: var(--fold-ink, #fff);
  font-family: var(--display); font-weight: 400; font-size: clamp(14px, 2.2vw, 18px);
  letter-spacing: .3px; text-transform: uppercase; white-space: nowrap; overflow: hidden;
}
.folder__bar {
  background: var(--fold); color: var(--fold-ink, #fff);
  padding: clamp(20px, 3.2vw, 26px) 6vw;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  transition: filter .2s var(--ease-out);
}
.folder__desc { font-family: var(--serif); font-style: italic; font-size: clamp(15px, 2.4vw, 19px); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.folder__arrow { font-family: var(--display); font-weight: 400; font-size: clamp(15px, 2.2vw, 18px); flex: none; }
.folder:active .folder__bar { filter: brightness(0.96); }
@media (hover: hover) and (pointer: fine) { .folder:hover .folder__bar { filter: brightness(1.06); } }
.folder--email      { z-index: 1; --fold: #8ecbff; --fold-ink: var(--ink); --tab-left: 6%; }
.folder--instagram  { z-index: 2; --fold: var(--pink); --tab-left: 36%; }
.folder--linkedin   { z-index: 3; --fold: var(--green); --tab-left: 64%; }
.folder--playground { z-index: 4; --fold: var(--orange); --tab-left: 22%; }

/* small screens: shrink + re-stagger the tabs so none run past the folder edge */
@media (max-width: 640px) {
  .folder__tab { top: -30px; height: 34px; width: clamp(116px, 40vw, 172px); padding: 0 15px; font-size: 13px; }
  .folder--email      { --tab-left: 4%; }
  .folder--instagram  { --tab-left: 30%; }
  .folder--linkedin   { --tab-left: 54%; }
  .folder--playground { --tab-left: 16%; }
}

/* Bottom anchor bar: full-width dark strip that grounds the page under the
   paper-coloured header + colour bars. */
.site-foot__bar {
  background: var(--ink); margin: 0; padding: 22px 5vw 30px;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
}
.site-foot__wordmark { font-family: var(--display); font-weight: 400; font-size: 18px; letter-spacing: -.5px; color: var(--paper); }
.site-foot__copy { font-size: 12.5px; color: rgba(239,236,227,.5); }
.site-foot__toplink { font-size: 12.5px; font-weight: 600; color: rgba(239,236,227,.7); text-decoration: none; }
.site-foot__toplink:hover { color: var(--yellow); }

/* =========================================================
   GLOW-UP LAYER  ·  texture, motion, depth (audit-driven)
   ========================================================= */

/* Context-aware focus ring: stays visible on dark/sexy surfaces */
:root { --focus-ring: var(--navy); }
a:focus-visible, button:focus-visible, input:focus-visible,
textarea:focus-visible, select:focus-visible, [tabindex]:focus-visible {
  outline: 2.5px solid var(--focus-ring);
  outline-offset: 2px; border-radius: 4px;
}
.bring, .cs-pull, .cs-ctablk { --focus-ring: var(--lime); }

/* Barely-there paper texture (premium grain, not a decorative filter).
   Kept far below the old .22 so it reads as material, never as an effect. */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 60; pointer-events: none;
  opacity: .035; mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Magnetic buttons / interactive lift driven by JS vars */
.btn.is-magnetic { transition: transform .18s var(--ease), box-shadow .35s var(--ease); }

/* Project card "View" bubble that trails the cursor */
.pc__media { overflow: hidden; }
.pc__bubble {
  position: absolute; top: 0; left: 0; z-index: 4; pointer-events: none;
  width: 78px; height: 78px; margin: -39px 0 0 -39px; border-radius: 50%;
  display: grid; place-items: center; gap: 2px;
  background: var(--navy); color: #fff; font-size: .72rem; font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase;
  transform: scale(0); transition: transform .3s var(--ease); will-change: transform;
}
.pc:hover .pc__bubble { transform: scale(1); }

/* FLIP filtering: smooth enter/exit + slide between layouts */
.is-flip { transition: transform .5s var(--ease); will-change: transform; }
.flip-enter { opacity: 0; transform: scale(.94) translateY(10px); }
.flip-enter.flip-in { opacity: 1; transform: none; transition: opacity .45s var(--ease), transform .45s var(--ease); }
.flip-leave { opacity: 0 !important; transform: scale(.94) !important; transition: opacity .3s var(--ease), transform .3s var(--ease) !important; }

/* Hero wordmark — solid navy. Gradient-clipped text was the single clearest
   AI tell on the page; emphasis now comes from weight, scale and the italic.
   The bottom reserve stays so italic descenders never clip. */
.grad-text {
  color: var(--navy);
  padding-bottom: 0.12em; margin-bottom: -0.12em;
}

/* Word-by-word reveal (JS splits .reveal-words into spans) */
.rw { display: inline-block; overflow: hidden; vertical-align: top; }
.rw > span { display: inline-block; transform: translateY(110%); transition: transform .8s var(--ease); transition-delay: var(--rw-delay, 0ms); }
.reveal-words.is-in .rw > span { transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  body::after { display: none; }
  .grad-text { animation: none; }
  .float { animation: none !important; }
  .rw > span { transform: none; }
}
@media (hover: none) {
  .pc__bubble { display: none; }
}

/* ---------- Responsive: tablet ---------- */
@media (max-width: 900px) {
  .section { padding-block: clamp(32px, 5vw, 48px); }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
}

/* ---------- Responsive: nav + mobile menu ----------
   Breakpoint is 900px, not the site's usual 760px: with Works/Archives/About/
   Resume/LinkedIn (+Notes on the homepage) flowing as one group between the
   brand and the Contact CTA, the full row has nowhere to fit between 761 and
   ~833px even at a tightened gap -- it wrapped into a ragged second line. Past
   900px there's comfortable room, so the hamburger menu now owns the whole
   761-900px tablet band instead of trying (and failing) to squeeze in. */
@media (max-width: 900px) {
  .nav__inner { display: grid; grid-template-columns: 1fr auto; column-gap: 12px; }
  .nav__links, .nav__cta { display: none; }
  .nav__brand { grid-column: 1; grid-row: 1; justify-self: start; text-align: left; font-size: 1.25rem; }
  .nav__menu-btn {
    display: inline-flex; align-items: center; grid-column: 2; grid-row: 1; justify-self: end;
    background: var(--ink); color: var(--paper); border: none;
    border-radius: 999px; padding: 9px 16px; font-weight: 600; font-size: .9rem;
    min-height: 44px;   /* meet the 44px touch-target minimum (sole mobile nav trigger) */
  }
  /* Open state: the link group, then the Contact CTA (now a plain full-width
     row -- its desktop pill chrome is scoped to min-width:901px), stack in
     normal grid flow below the bar. */
  .nav.open { background: var(--paper); box-shadow: var(--shadow-md); }
  .nav.open .nav__inner { row-gap: 0; }
  .nav.open .nav__links {
    display: flex; flex-direction: column; gap: 0;
    grid-column: 1 / -1; width: 100%; align-items: stretch; justify-content: flex-start;
    margin-top: 10px;
  }
  .nav.open .nav__cta { display: flex; grid-column: 1 / -1; width: 100%; margin-bottom: 6px; }
  .nav.open .nav__link { padding-block: 13px; font-size: 1.1rem; border-bottom: 1px solid var(--line-soft); }
  .nav.open .nav__link::after { display: none; }
  /* Same specificity as the rule above (2 classes each) -- must come after it
     in source order to win the cascade and strip the CTA's border-bottom. */
  .nav.open .nav__cta { border-bottom: none; }
}

@media (max-width: 380px) {
  .btn { font-size: 0.96rem; padding: 0.9em 1.3em; }
}

/* =========================================================
   DOC-FIDELITY LAYER  ·  Anshika Doogar.dc marquees + bands
   ========================================================= */

/* ---------- Work marquee (dark band: "Like. Share. Comment?") ---------- */
/* contain:paint walls off the wide (~3000px) max-content track so it can't be measured
   by iOS Safari's shrink-to-fit viewport algorithm — without it, iOS expands the whole
   page's layout viewport around the clipped track, forcing a pinch-zoom/pan to read. */
.work-mq { margin-top: clamp(40px,7vw,80px); padding: clamp(38px,5vw,52px) 0; background: var(--ink); color: var(--paper); overflow: hidden; contain: paint; }
.work-mq__head { display: flex; align-items: baseline; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin: 0 auto clamp(22px,3vw,30px); }
.work-mq__title { font-family: var(--display); font-weight: 400; font-size: clamp(30px,5vw,54px); letter-spacing: -1px; line-height: 1; margin: 10px 0 0; color: var(--paper); }
.work-mq__cta { background: transparent; border: 1.5px solid rgba(255,255,255,.3); color: var(--paper); font-size: .82rem; padding: 12px 22px; white-space: nowrap; }
.work-mq__cta:hover { background: var(--yellow); color: var(--ink); border-color: var(--yellow); transform: none; }
.work-mq__track { display: flex; width: max-content; gap: 20px; padding: 0 10px; animation: marquee 44s linear infinite; }
.work-mq:hover .work-mq__track { animation-play-state: paused; }
.work-mq__track img, .work-mq__track video { height: clamp(180px,26vw,230px); width: auto; border-radius: 8px; transform: rotate(var(--r,0deg)); object-fit: cover; display: block; }

/* ---------- Disciplines marquee (yellow band) ---------- */
.disc-mq { margin-top: clamp(14px,2vw,20px); padding: clamp(22px,3vw,30px) 0; background: var(--yellow); border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); overflow: hidden; contain: paint; }
.disc-mq__track { display: flex; width: max-content; align-items: center; gap: 34px; font-family: var(--display); font-weight: 400; font-size: clamp(30px,4.6vw,52px); text-transform: uppercase; letter-spacing: -1px; color: var(--ink); animation: marquee 30s linear infinite; }
.disc-mq__track span { white-space: nowrap; }
.disc-out { color: transparent; -webkit-text-stroke: 1.6px var(--ink); }
.disc-star { flex: none; }

/* ---------- Yellow button (doc contact CTA) ---------- */
.btn--yellow { background: var(--yellow); color: var(--ink); box-shadow: var(--shadow-sm); }
.btn--yellow:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.btn--yellow:active { transform: scale(0.97); }

/* ---------- Contact status dot ---------- */
.contact__status { display: inline-flex; align-items: center; gap: 8px; font-size: .78rem; color: rgba(239,236,227,.6); margin-bottom: 18px; }
.contact__status .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); animation: contact-blink 2s infinite; }
@keyframes contact-blink { 0%,45%,100% { opacity: 1; } 50%,95% { opacity: .25; } }

@media (prefers-reduced-motion: reduce) {
  .work-mq__track, .disc-mq__track { animation: none; flex-wrap: wrap; justify-content: center; width: 100%; }
  .contact__status .dot { animation: none; }
}
