/* =========================================================
   Anjali Devi — v2  "Bright Bold Editorial"
   Palette: bone paper · ink · electric blue
   ========================================================= */

:root {
  --paper:    #ece6d9;
  --paper-2:  #e3dccb;
  --ink:      #131210;
  --ink-2:    #1c1a17;
  --blue:     #2b2bf0;
  --blue-ink: #1414c8;
  --muted:    #6f6a5f;
  --muted-d:  #9b9587;
  --line:     rgba(19,18,16,0.14);
  --line-l:   rgba(236,230,217,0.16);

  --f-disp: "Bricolage Grotesque", sans-serif;
  --f-body: "Inter", sans-serif;
  --f-serif:"Instrument Serif", serif;

  --pad: clamp(1.25rem, 4vw, 4.5rem);
  --ease: cubic-bezier(0.62, 0.05, 0.23, 0.99);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-weight: 400;
  line-height: 1.45;
  overflow-x: hidden;
  cursor: none;
}
@media (pointer: coarse) { body { cursor: auto; } }

a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; height: 100%; object-fit: cover; }
::selection { background: var(--blue); color: var(--paper); }

.display { font-family: var(--f-disp); font-weight: 700; line-height: 0.9; letter-spacing: -0.03em; }
.display em, em.serif { font-family: var(--f-serif); font-style: italic; font-weight: 400; }
.line { display: block; overflow: hidden; padding-bottom: 0.04em; }
.line__in { display: block; }

/* =========================================================
   Loader
   ========================================================= */
.loader {
  position: fixed; inset: 0; z-index: 200; background: var(--ink); color: var(--paper);
  display: flex; flex-direction: column; justify-content: flex-end; padding: var(--pad);
}
.loader__bar { width: 100%; height: 2px; background: var(--line-l); overflow: hidden; }
.loader__bar span { display: block; height: 100%; width: 0; background: var(--blue); }
.loader__meta { display: flex; justify-content: space-between; margin-top: 1rem;
  font-family: var(--f-disp); font-size: clamp(1rem, 2vw, 1.4rem); letter-spacing: -0.01em; }
.loader__num { color: var(--muted-d); font-variant-numeric: tabular-nums; }

/* =========================================================
   Cursor
   ========================================================= */
.cursor {
  position: fixed; top: 0; left: 0; width: 14px; height: 14px; margin: -7px 0 0 -7px;
  border-radius: 50%; background: var(--blue); z-index: 300; pointer-events: none;
  display: flex; align-items: center; justify-content: center;
  transition: width .35s var(--ease), height .35s var(--ease), background .3s;
  mix-blend-mode: normal;
}
.cursor.is-hover { width: 64px; height: 64px; margin: -32px 0 0 -32px; background: var(--blue); }
.cursor.is-label { width: 84px; height: 84px; margin: -42px 0 0 -42px; }
.cursor__label {
  font-family: var(--f-disp); font-size: 0.72rem; color: var(--paper);
  opacity: 0; transform: scale(0.6); transition: opacity .3s, transform .3s; text-transform: lowercase;
}
.cursor.is-label .cursor__label { opacity: 1; transform: scale(1); }
@media (pointer: coarse) { .cursor { display: none; } }

/* =========================================================
   Nav
   ========================================================= */
.nav {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 90;
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.3rem var(--pad);
  transition: transform .5s var(--ease);
}
.nav.is-hidden { transform: translateY(-110%); }
.nav__brand { font-family: var(--f-disp); font-weight: 700; font-size: 1.15rem; letter-spacing: -0.01em; }
.nav__brand span { color: var(--blue); }
.nav__menu { display: flex; align-items: center; gap: clamp(1rem, 2.4vw, 2.2rem); font-size: 0.9rem; }
.nav__menu a:not(.nav__pill) { position: relative; }
.nav__menu a:not(.nav__pill)::after {
  content: ""; position: absolute; left: 0; bottom: -4px; width: 0; height: 1.5px; background: var(--ink);
  transition: width .4s var(--ease);
}
.nav__menu a:not(.nav__pill):hover::after { width: 100%; }
.nav__pill { background: var(--ink); color: var(--paper); border-radius: 100px; padding: 0.5rem 1.15rem; transition: background .3s; }
.nav__pill:hover { background: var(--blue); }
/* inverted colours when the nav sits over a dark / blue section */
.nav.is-on-dark { color: var(--paper); }
.nav.is-on-dark .nav__menu a:not(.nav__pill)::after { background: var(--paper); }
.nav.is-on-dark .nav__pill { background: var(--paper); color: var(--ink); }
.nav.is-on-dark .nav__pill:hover { background: var(--blue); color: var(--paper); }
@media (max-width: 620px) { .nav__menu a:not(.nav__pill) { display: none; } }

/* =========================================================
   Buttons
   ========================================================= */
.btn {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--f-disp); font-weight: 600; font-size: 1rem;
  padding: 0.95rem 1.6rem; border-radius: 100px; border: 1.5px solid var(--ink);
  transition: background .35s var(--ease), color .35s var(--ease), transform .35s var(--ease);
}
.btn--solid { background: var(--ink); color: var(--paper); }
.btn--solid:hover { background: var(--blue); border-color: var(--blue); transform: translateY(-3px); }
.btn--solid .btn__arrow { transition: transform .35s var(--ease); }
.btn--solid:hover .btn__arrow { transform: translate(3px,-3px); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); transform: translateY(-3px); }

/* =========================================================
   HERO
   ========================================================= */
.hero { min-height: 100svh; padding: 0 var(--pad); display: flex; flex-direction: column; position: relative; }
.hero__topbar {
  display: flex; justify-content: space-between; gap: 1rem;
  padding-top: clamp(6rem, 13vh, 8.5rem);
  border-bottom: 1px solid var(--line); padding-bottom: 1.2rem;
}
.eyebrow { font-size: 0.78rem; letter-spacing: 0.04em; color: var(--muted); text-transform: uppercase; }
.eyebrow--mid { color: var(--ink); }
.star { color: var(--blue); font-style: normal; }
@media (max-width: 720px) { .eyebrow--mid { display: none; } }

.hero__core {
  flex: 1; display: flex; align-items: center; justify-content: space-between;
  gap: 2rem; position: relative; padding: clamp(2rem, 5vh, 4rem) 0;
}
.hero__name {
  font-size: clamp(4.5rem, 19vw, 21rem);
  letter-spacing: -0.045em;
}
.hero__name em { color: var(--blue); font-family: var(--f-disp); font-style: normal; }

.hero__portrait {
  position: relative; width: clamp(160px, 22vw, 340px); aspect-ratio: 4/5;
  flex-shrink: 0; border-radius: 4px; overflow: hidden; align-self: flex-end;
  margin-bottom: clamp(1rem, 4vh, 3rem);
}
.hero__portrait canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; z-index: 2; }
.hero__portrait img { position: absolute; inset: 0; z-index: 1; }
.hero__portrait.gl-ready img { opacity: 0; }

@media (max-width: 860px) {
  .hero__core { flex-direction: column; align-items: flex-start; justify-content: center; gap: 1.5rem; }
  .hero__portrait { width: 52vw; align-self: flex-end; }
}

.hero__bottom {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem;
  border-top: 1px solid var(--line); padding: 1.6rem 0 clamp(4rem, 9vh, 6rem);
}
.hero__lead { max-width: 44ch; font-size: clamp(1rem, 1.5vw, 1.2rem); color: var(--muted); line-height: 1.5; }
.hero__lead strong { color: var(--ink); font-weight: 500; }
.hero__actions { display: flex; gap: 0.8rem; flex-shrink: 0; flex-wrap: wrap; }
@media (max-width: 720px) { .hero__bottom { flex-direction: column; align-items: flex-start; } }

.hero__scroll {
  position: absolute; left: 50%; bottom: 1.4rem; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
  font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted);
}
.hero__scroll-bar { width: 1px; height: 38px; background: var(--line); position: relative; overflow: hidden; }
.hero__scroll-bar::after { content: ""; position: absolute; inset: 0; background: var(--blue);
  transform: translateY(-100%); animation: drop 1.8s var(--ease) infinite; }
@keyframes drop { 0% { transform: translateY(-100%);} 55%,100% { transform: translateY(100%);} }
@media (max-width: 720px) { .hero__scroll { display: none; } }

/* =========================================================
   Strip / marquee  (dark)
   ========================================================= */
.strip { background: var(--ink); color: var(--paper); padding: 1.3rem 0; overflow: hidden; }
.strip__track {
  display: flex; align-items: center; gap: 2rem; width: max-content; white-space: nowrap;
  font-family: var(--f-disp); font-weight: 600; font-size: clamp(1.4rem, 4vw, 3rem);
  letter-spacing: -0.02em; will-change: transform;
}
.strip__track i { color: var(--blue); font-style: normal; font-size: 0.7em; }

/* =========================================================
   Shared section heads
   ========================================================= */
section.about, section.expertise, section.work, section.contact { padding: clamp(5rem,11vh,9rem) var(--pad); }
.head { margin-bottom: clamp(2.5rem, 6vw, 4.5rem); }
.head__idx { display: inline-block; font-size: 0.82rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--blue); margin-bottom: 1.4rem; }
.head__idx--light { color: var(--blue); }
.head__idx--contrast { color: var(--paper); }
.head__title { font-size: clamp(2.4rem, 7vw, 6rem); margin-top: 0.4rem; }

/* =========================================================
   About
   ========================================================= */
.about__big {
  font-family: var(--f-disp); font-weight: 600; letter-spacing: -0.02em;
  font-size: clamp(1.7rem, 5vw, 4.2rem); line-height: 1.1; max-width: 20ch;
  margin-bottom: clamp(3rem, 7vw, 6rem);
}
.about__big em { font-family: var(--f-serif); font-style: italic; font-weight: 400; }
.about__big .ink-hl { color: var(--blue); }
.reveal-text .word { display: inline-block; opacity: 0.18; transition: opacity .15s linear; }

.about__grid { display: grid; grid-template-columns: 0.8fr 1.4fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.about__img { aspect-ratio: 4/5; overflow: hidden; border-radius: 4px; }
.about__img img { transition: transform 1.1s var(--ease); filter: saturate(0.92); }
.about__img:hover img { transform: scale(1.05); }
.about__cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px,1fr)); gap: clamp(1.5rem,3vw,2.5rem); }
.about__col-no { color: var(--blue); font-family: var(--f-disp); font-size: 0.85rem; }
.about__cols h4 { font-family: var(--f-disp); font-weight: 600; font-size: 1.2rem; margin: 0.5rem 0 0.7rem; }
.about__cols p { color: var(--muted); font-size: 0.96rem; }
@media (max-width: 760px) { .about__grid { grid-template-columns: 1fr; } }

/* =========================================================
   Stats  (dark)
   ========================================================= */
.stats { background: var(--ink); color: var(--paper); padding: clamp(4.5rem,10vh,8rem) var(--pad); }
.stats__head { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 1rem; margin-bottom: clamp(2.5rem,6vw,4rem); }
.stats__head p { color: var(--muted-d); max-width: 32ch; }
.stats__grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 0; }
.stat { padding: clamp(1.5rem,3vw,2.2rem) 1.5rem clamp(1.5rem,3vw,2.2rem) 0; border-top: 1px solid var(--line-l); }
.stat__num { display: block; font-family: var(--f-disp); font-weight: 700; font-size: clamp(3rem, 8vw, 7rem); line-height: 0.88; letter-spacing: -0.04em; color: var(--blue); }
.stat__label { display: block; margin-top: 0.9rem; font-size: 0.88rem; color: var(--muted-d); max-width: 16ch; }
@media (max-width: 760px) { .stats__grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 420px) { .stats__grid { grid-template-columns: 1fr; } }

/* =========================================================
   Expertise cards
   ========================================================= */
.head { display: flex; flex-direction: column; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.card {
  position: relative; border: 1.5px solid var(--line); border-radius: 14px;
  padding: clamp(1.6rem, 2.5vw, 2.2rem); background: var(--paper);
  display: flex; flex-direction: column; min-height: 280px;
  transition: transform .45s var(--ease), background .45s var(--ease), color .45s var(--ease), border-color .45s;
}
.card:hover { transform: translateY(-6px); background: var(--ink); color: var(--paper); border-color: var(--ink); }
.card__no { font-family: var(--f-disp); font-weight: 700; font-size: 0.9rem; color: var(--blue); }
.card h3 { font-family: var(--f-disp); font-weight: 700; font-size: clamp(1.3rem,2vw,1.7rem); letter-spacing: -0.02em; margin: auto 0 0.8rem; padding-top: 1.5rem; }
.card p { color: var(--muted); font-size: 0.92rem; transition: color .45s; }
.card:hover p { color: var(--muted-d); }
.card__tags { list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 1.2rem; }
.card__tags li { font-size: 0.72rem; border: 1px solid var(--line); border-radius: 100px; padding: 0.25rem 0.65rem; color: var(--muted); transition: border-color .45s, color .45s; }
.card:hover .card__tags li { border-color: var(--line-l); color: var(--muted-d); }
.card--accent { background: var(--blue); color: var(--paper); border-color: var(--blue); }
.card--accent .card__no { color: var(--paper); }
.card--accent p { color: rgba(236,230,217,0.78); }
.card--accent .card__tags li { border-color: var(--line-l); color: var(--paper); }
.card--accent:hover { background: var(--ink); border-color: var(--ink); transform: translateY(-6px); }
.card--tools { justify-content: flex-start; }
.card--tools h3 { margin: 0 0 1.2rem; padding-top: 1rem; }
.card__cloud { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.card__cloud span { font-size: 0.78rem; border: 1px solid var(--line); border-radius: 100px; padding: 0.3rem 0.7rem; color: var(--muted); transition: border-color .45s, color .45s; }
.card--tools:hover .card__cloud span { border-color: var(--line-l); color: var(--muted-d); }
@media (max-width: 920px) { .cards { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 560px) { .cards { grid-template-columns: 1fr; } .card { min-height: 0; } }

/* =========================================================
   Experience
   ========================================================= */
.jobs { list-style: none; }
.job {
  display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(1.5rem,5vw,5rem);
  padding: clamp(1.8rem,4vw,3rem) 0; border-top: 1px solid var(--line);
  transition: padding-left .5s var(--ease);
}
.jobs .job:last-child { border-bottom: 1px solid var(--line); }
.job:hover { padding-left: clamp(0.6rem, 2vw, 1.6rem); }
.job__period { font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.job__role h3 { font-family: var(--f-disp); font-weight: 700; font-size: clamp(1.5rem,3.5vw,2.8rem); line-height: 1.02; letter-spacing: -0.025em; margin: 0.5rem 0; transition: color .35s; }
.job:hover .job__role h3 { color: var(--blue); }
.job__co { color: var(--muted); font-size: 0.95rem; }
.job__points { list-style: none; display: grid; gap: 0.7rem; align-content: start; padding-top: 0.4rem; }
.job__points li { position: relative; padding-left: 1.4rem; color: var(--muted); font-size: 0.96rem; }
.job__points li::before { content: "→"; position: absolute; left: 0; color: var(--blue); }
.job__points b { color: var(--ink); font-weight: 600; }
@media (max-width: 760px) { .job { grid-template-columns: 1fr; gap: 1rem; } }

/* =========================================================
   Credentials  (dark)
   ========================================================= */
.certs { background: var(--ink); color: var(--paper); padding: clamp(4rem,9vh,7rem) var(--pad); }
.certs__row { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.5rem; }
.certs__row span {
  font-family: var(--f-disp); font-weight: 500; font-size: clamp(0.95rem,1.6vw,1.25rem);
  border: 1px solid var(--line-l); border-radius: 100px; padding: 0.55rem 1.1rem; color: var(--paper);
  transition: background .3s, color .3s, border-color .3s;
}
.certs__row span:hover { background: var(--blue); border-color: var(--blue); }

/* =========================================================
   Contact  (electric blue)
   ========================================================= */
.contact { background: var(--blue); color: var(--paper); }
.contact__big { font-size: clamp(2.8rem, 12vw, 11rem); margin: 0.6rem 0 clamp(2.5rem,6vw,4rem); }
.contact__big em { color: var(--ink); }
.contact__mail {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--f-disp); font-weight: 600; font-size: clamp(1.3rem, 4.5vw, 3.4rem);
  letter-spacing: -0.02em; will-change: transform; margin-bottom: clamp(3rem,7vw,4.5rem);
  border-bottom: 2px solid transparent; transition: border-color .35s;
}
.contact__mail i { font-style: normal; transition: transform .35s var(--ease); display: inline-block; }
.contact__mail:hover { border-color: var(--paper); }
.contact__mail:hover i { transform: translate(6px,-6px); }
.contact__links { display: flex; flex-wrap: wrap; gap: clamp(1.2rem,4vw,3rem); border-top: 1px solid var(--line-l); padding-top: 1.8rem; font-family: var(--f-disp); font-weight: 500; font-size: 1.1rem; }
.contact__links a { position: relative; }
.contact__links a::after { content: ""; position: absolute; left: 0; bottom: -4px; width: 0; height: 2px; background: var(--paper); transition: width .4s var(--ease); }
.contact__links a:hover::after { width: 100%; }

/* =========================================================
   Footer
   ========================================================= */
.footer {
  background: var(--ink); color: var(--paper);
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem;
  padding: 1.8rem var(--pad); font-size: 0.82rem;
}
.footer__mid { color: var(--muted-d); }
.footer button { background: none; border: none; font: inherit; color: var(--paper); cursor: none; }
@media (pointer: coarse) { .footer button { cursor: pointer; } }

/* =========================================================
   Reduced motion
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .line__in, .word { transform: none !important; opacity: 1 !important; }
}
