/* =========================================================
   Puja Kumari — Portfolio
   Static build of the Figma frame "Portfolio-home" (43:17)
   Design canvas: 1440px, 240px side gutters → 960px content
   ========================================================= */

/* ---------- self-hosted variable fonts (no third-party requests) ---------- */
@font-face {
  font-family: 'Gabarito';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('assets/fonts/gabarito-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Gabarito';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('assets/fonts/gabarito-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('assets/fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('assets/fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- tokens ---------- */
:root {
  /* colour */
  --ink:            #070707;
  --ink-strong:     #0f0f0f;
  --body:           #323131;
  --violet:         #7967ff;
  --violet-deep:    #6052cc;
  --violet-soft:    #bcb5ee;
  --violet-mist:    #f0eeff;
  --violet-line:    #d0c9ff;
  --chip-bg:        rgba(188, 181, 238, 0.2);
  --warm-line:      #e7e0d8;
  --grey-surface:   #f9f9f9;
  --grey-line:      #d3d3d3;
  --green:          #06b23f;
  --white:          #ffffff;
  --peach:          #fde1da;
  --cream:          #fff9e5;

  /* type */
  --font-display: "Gabarito", "Trebuchet MS", system-ui, sans-serif;
  --font-body:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* layout */
  --content:      960px;
  --gutter:       clamp(20px, 5.5vw, 240px);
  --radius-card:  44px;
  --radius-tile:  24px;
  --radius-media: 16px;

  /* effects */
  --shadow-card:    0 10px 12px rgba(0, 0, 0, 0.05);
  --shadow-nav:     0 6px 12px rgba(0, 129, 199, 0.24);
  --shadow-portrait:0 16px 32px rgba(43, 35, 32, 0.08);

  --nav-h: 100px;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
img { display: block; max-width: 100%; }
a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--violet);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  padding: 12px 20px;
  background: var(--ink);
  color: var(--white);
  border-radius: 0 0 12px 0;
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus { left: 0; }

.container {
  width: 100%;
  max-width: var(--content);
  margin-inline: auto;
}

section[id] { scroll-margin-top: var(--nav-h); }

/* =========================================================
   NAV  — Figma 43:169 (720 × 60 pill, floating at y = 40)
   ========================================================= */
.nav-wrap {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  display: flex;
  justify-content: center;
  padding: 20px 16px 0;
  pointer-events: none;
}

.nav {
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(720px, 100%);
  padding: 12px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.6);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-nav);
  transition: background 0.25s ease, box-shadow 0.25s ease;
}

.nav.is-scrolled {
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 8px 20px rgba(0, 129, 199, 0.18);
}

.nav__logo { display: flex; flex: none; border-radius: 50%; }
.nav__logo img { width: 36px; height: 36px; }

.nav__right {
  display: flex;
  align-items: center;
  gap: 28px;
  padding-right: 12px;
}

.nav__link {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14px;
  line-height: 22px;
  color: var(--ink-strong);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.18s ease;
}
.nav__link:hover { color: var(--violet); }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border: 1px solid #000;
  border-radius: 100px;
  white-space: nowrap;
}
.badge__dot { width: 6px; height: 6px; flex: none; }
.badge__text {
  font-weight: 500;
  font-size: 10px;
  line-height: 14px;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--ink-strong);
}

/* =========================================================
   HERO — Figma 43:19
   ========================================================= */
.hero {
  padding: clamp(150px, 16.7vw, 240px) var(--gutter) clamp(90px, 14vw, 200px);
  background: radial-gradient(ellipse 50% 50% at 50% 50%, var(--violet-mist) 39.39%, var(--white) 100%);
}

.hero__inner {
  display: flex;
  flex-direction: column;
  gap: clamp(24px, 3vw, 44px);
  text-align: center;
}

.hero__headline {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(34px, 5.4vw, 64px);
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-wrap: pretty;
}
.accent { color: var(--violet); white-space: nowrap; }

.hero__sub { display: flex; flex-direction: column; gap: 1.4em; }

.hero__sub-lead {
  font-size: clamp(17px, 2vw, 24px);
  line-height: 1.4;
  color: var(--ink);
  text-wrap: pretty;
}
.hero__sub-small {
  font-size: clamp(14px, 1.3vw, 16px);
  line-height: 1.4;
  color: var(--ink);
}

/* =========================================================
   RIBBON — Figma 43:24
   ========================================================= */
.ribbon {
  padding: 16px var(--gutter);
  background: linear-gradient(90deg,
    var(--white) 0%,
    var(--violet-soft) 20%,
    var(--violet-deep) 50%,
    var(--violet-soft) 80%,
    var(--white) 100%);
}
.ribbon__text {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(13px, 1.55vw, 20px);
  line-height: 1.6;
  text-align: center;
  text-transform: uppercase;
  color: var(--white);
  text-wrap: balance;
}

/* =========================================================
   SECTION SHELL
   ========================================================= */
.section {
  padding: clamp(64px, 8.3vw, 120px) var(--gutter);
  background: var(--white);
}
.section--about { padding-block: clamp(56px, 6.7vw, 96px); }

.section__head {
  display: flex;
  flex-direction: column;
  gap: 20px;
  text-align: center;
  margin-bottom: 40px;
}

.section__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(34px, 4.9vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.015em;
  color: var(--ink);
  text-align: center;
  text-wrap: balance;
}
.section__title--md {
  font-size: clamp(30px, 4.2vw, 48px);
  line-height: 1.1;
  margin-bottom: 48px;
}

.section__lede {
  font-size: clamp(14px, 1.2vw, 16px);
  line-height: 1.6;
  color: var(--body);
  text-wrap: pretty;
}

/* =========================================================
   WORK CARDS — Figma 43:26
   ========================================================= */
.work { display: flex; flex-direction: column; gap: 24px; }
.work__pair { display: flex; gap: 24px; align-items: stretch; }

.card {
  position: relative;
  padding: clamp(24px, 3vw, 44px);
  border: 1px solid var(--warm-line);
  border-radius: var(--radius-card);
  background: var(--white);
  box-shadow: var(--shadow-card);
  transition: transform 0.3s cubic-bezier(.2,.7,.3,1), box-shadow 0.3s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 28px rgba(0, 0, 0, 0.08);
}

.card--feature {
  display: flex;
  align-items: center;
  gap: clamp(24px, 3vw, 44px);
  border-color: var(--violet-line);
}

.card--peach,
.card--cream {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: clamp(24px, 3vw, 44px);
  align-items: center;
}
.card--peach {
  background: radial-gradient(ellipse 59% 59% at 51% 41%, var(--peach) 0%, var(--white) 100%);
}
.card--cream {
  background: radial-gradient(ellipse 64% 64% at 50% 36%, var(--cream) 0%, var(--white) 100%);
}

.card__media {
  width: 100%;
  border-radius: var(--radius-media);
  overflow: hidden;
  flex: none;
}
.card__media img {
  width: 100%;
  height: 340px;
  object-fit: contain;
}
.card__media--cover img { object-fit: cover; }

.card__media--feature {
  width: 466px;
  max-width: 50%;
}
.card__media--feature img { height: 414px; }

.card__body {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
}
.card__body--split { justify-content: space-between; flex: 1 1 auto; }

.card__stack { display: flex; flex-direction: column; gap: 16px; }
.card__heading { display: flex; flex-direction: column; gap: 8px; }

.card__eyebrow {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 12px;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--ink);
}

.card__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(22px, 2.3vw, 28px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-wrap: balance;
}

.card__copy { display: flex; flex-direction: column; gap: 1.6em; }
.card__copy p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--body);
  text-wrap: pretty;
}

.card__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-top: 10px;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.26px;
  text-transform: uppercase;
  color: var(--ink);
}
.card__link img { width: 16px; height: 16px; }
.card:hover .card__link img { transform: translateX(3px); }
.card__link img { transition: transform 0.25s ease; }

/* ---------- chips ---------- */
.chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
}
.chips--center { justify-content: center; gap: 20px 12px; }

.chip {
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--chip-bg);
  font-weight: 700;
  font-size: 11px;
  line-height: normal;
  letter-spacing: 0.88px;
  text-transform: uppercase;
  color: var(--body);
  white-space: nowrap;
}
.chip--lg {
  padding: 6px 12px;
  font-size: 13px;
  letter-spacing: 0.26px;
  color: var(--ink);
}

/* =========================================================
   ABOUT — Figma 43:105
   ========================================================= */
.about {
  display: flex;
  align-items: center;
  gap: clamp(32px, 5.5vw, 80px);
  margin-bottom: 48px;
}

.about__copy {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.about__copy p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--body);
  text-wrap: pretty;
}
.about__lead { font-weight: 700; }
/* Figma sets this lead line on a single row in the 440px column; a hair of
   tracking reproduces that break without changing the perceived type size. */
@media (min-width: 901px) {
  .about__lead { letter-spacing: -0.013em; }
}
.about__copy strong { font-weight: 700; }

.portrait {
  position: relative;
  flex: none;
  width: 440px;
  height: 440px;
}
.portrait__blob {
  position: absolute;
  left: -100px;
  top: 0;
  width: 500px;
  height: 500px;
  pointer-events: none;
}
.portrait__img {
  position: relative;
  width: 440px;
  height: 440px;
  object-fit: cover;
  border-radius: var(--radius-tile);
  box-shadow: var(--shadow-portrait);
}
.portrait__stamp {
  position: absolute;
  left: -30px;
  top: 374px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  border-radius: 40px;
  background: var(--violet);
}
.portrait__stamp img { width: 32px; height: 32px; }

/* =========================================================
   EXPERIENCE — Figma 46:714
   ========================================================= */
.section__lede--tight { max-width: 760px; margin-inline: auto; }

.xp { display: flex; flex-direction: column; gap: 28px; }

.role {
  padding: clamp(24px, 3vw, 44px);
  border: 1px solid var(--grey-line);
  border-radius: var(--radius-tile);
  background: var(--grey-surface);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: transform 0.3s cubic-bezier(.2,.7,.3,1), box-shadow 0.3s ease;
}
.role:hover { transform: translateY(-3px); box-shadow: 0 16px 24px rgba(0,0,0,.07); }

.role--current {
  background: var(--white);
  border-color: var(--violet-line);
}

.xp__previous { display: flex; flex-direction: column; gap: 14px; }
.xp__previous .role { padding: 32px clamp(24px, 3vw, 44px); }

.xp__label {
  font-weight: 700;
  font-size: 15px;
  line-height: normal;
  color: var(--ink);
}

.role__date {
  font-family: var(--font-display);
  font-size: 12px;
  line-height: 1.4;
  color: var(--ink);
}

.role__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.role__org {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(20px, 1.9vw, 24px);
  line-height: 1.1;
  color: var(--ink);
}
.role__title {
  flex: none;
  font-weight: 500;
  font-size: 14px;
  line-height: 1.6;
  color: var(--body);
  text-align: right;
}

.role__copy p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--body);
  text-wrap: pretty;
}

.xp__outro {
  margin-top: 40px;
  font-size: clamp(14px, 1.2vw, 16px);
  line-height: 1.4;
  text-align: center;
  color: var(--ink);
  text-wrap: balance;
}
.xp__outro strong { font-weight: 700; }

/* =========================================================
   CONTACT — Figma 43:156
   ========================================================= */
.contact {
  padding: clamp(56px, 5.5vw, 80px) var(--gutter) 40px;
  background: radial-gradient(ellipse 50% 50% at 50% 50%, var(--violet-mist) 39.39%, var(--white) 100%);
}
.contact__inner {
  display: flex;
  flex-direction: column;
  gap: clamp(56px, 8.3vw, 120px);
}

.contact__block { display: flex; flex-direction: column; gap: 24px; }

.contact__title {
  text-wrap: pretty;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 4.2vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.015em;
  text-align: center;
  color: var(--ink);
}

.contact__content { display: flex; flex-direction: column; gap: 16px; }

.contact__lede {
  font-size: clamp(14px, 1.2vw, 16px);
  line-height: 1.4;
  text-align: center;
  color: var(--ink);
  text-wrap: pretty;
}

.contact__links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.contact__meta {
  font-size: clamp(14px, 1.2vw, 16px);
  line-height: 1.6;
  text-align: center;
  color: var(--body);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 44px;
  border-radius: 200px;
  background: var(--ink);
  color: var(--white);
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  transition: transform 0.22s ease, background 0.22s ease;
}
.btn:hover { background: var(--violet); transform: translateY(-2px); }

.contact__secondary {
  font-weight: 600;
  font-size: 16px;
  color: var(--ink);
  text-decoration: underline;
  text-underline-position: from-font;
}
.contact__secondary:hover { color: var(--violet); }

.contact__footer {
  font-size: 14px;
  text-align: center;
  color: var(--violet);
}

/* =========================================================
   REVEAL
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(.2,.7,.3,1);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* =========================================================
   RESPONSIVE
   ========================================================= */

/* ---- ≤1100px: feature card stacks, portrait shrinks ---- */
@media (max-width: 1100px) {
  .card--feature { flex-direction: column; align-items: stretch; }
  .card__media--feature { width: 100%; max-width: none; }
  .card__media--feature img { height: clamp(260px, 42vw, 414px); }

  .portrait {
    width: clamp(280px, 38vw, 440px);
    height: clamp(280px, 38vw, 440px);
  }
  .portrait__img { width: 100%; height: 100%; }
  .portrait__blob {
    width: 114%;
    height: 114%;
    left: -23%;
    top: 0;
  }
  .portrait__stamp {
    width: 64px;
    height: 64px;
    left: -20px;
    top: auto;
    bottom: 12px;
  }
  .portrait__stamp img { width: 26px; height: 26px; }
}

/* ---- ≤900px: pairs stack, about stacks ---- */
@media (max-width: 900px) {
  :root { --radius-card: 32px; }

  .work__pair { flex-direction: column; }

  .about {
    flex-direction: column-reverse;
    align-items: center;
    gap: 40px;
  }
  .about__copy { width: 100%; }
  .about__copy p { font-size: 15px; }

  .role__head { flex-direction: column; align-items: flex-start; gap: 4px; }
  .role__title { text-align: left; }
}

/* ---- ≤700px: mobile ---- */
@media (max-width: 700px) {
  :root {
    --radius-card: 28px;
    --radius-tile: 20px;
    --nav-h: 88px;
  }

  .nav { padding: 10px; gap: 10px; }
  .nav__right { gap: 16px; padding-right: 6px; }
  .nav__logo img { width: 32px; height: 32px; }

  .section__head { margin-bottom: 28px; }

  .card__copy p,
  .about__copy p,
  .role__copy p { font-size: 15px; }

  .chips--center { gap: 10px; }
  .chip { font-size: 10.5px; }
  .chip--lg { font-size: 12px; }

  .card__media img { height: clamp(220px, 58vw, 300px); }

  .xp { gap: 20px; }
  .xp__outro { margin-top: 28px; }

  .btn { width: 100%; max-width: 320px; }
}

/* ---- ≤420px: tighten the nav ---- */
@media (max-width: 420px) {
  .badge { display: none; }
  .nav__right { gap: 18px; padding-right: 8px; }
}

/* ---- motion & print ---- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

@media print {
  .nav-wrap { display: none; }
  .card, .role { box-shadow: none; break-inside: avoid; }
  .reveal { opacity: 1; transform: none; }
}
