/* ==========================================================================
   Arushi Jain — personal site
   ========================================================================== */

:root {
  --bg: #0a0b10;
  --bg-alt: #0e1017;
  --surface: #14171f;
  --surface-2: #191d27;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);

  --text: #eceef4;
  --text-muted: #a3abbb;
  --text-dim: #767f90;

  --accent: #8b7bff;
  --accent-2: #3ad0c0;
  --accent-soft: rgba(139, 123, 255, 0.14);

  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;

  --wrap: 1120px;
  --radius: 16px;
  --radius-sm: 10px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

h1, h2, h3 {
  margin: 0;
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 600;
}

p {
  margin: 0 0 1.05em;
}

p:last-child {
  margin-bottom: 0;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 28px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--accent);
  color: #0a0b10;
  padding: 10px 18px;
  border-radius: 0 0 8px 0;
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  left: 0;
}

:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 3px;
  border-radius: 4px;
}

/* --------------------------------------------------------------- header -- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), backdrop-filter 0.3s var(--ease);
  border-bottom: 1px solid transparent;
}

.site-header.is-stuck {
  background: rgba(10, 11, 16, 0.78);
  backdrop-filter: saturate(150%) blur(14px);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  border-bottom-color: var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 600;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #0a0b10;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand-name {
  font-size: 16px;
  letter-spacing: -0.01em;
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav a {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 15px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.site-nav .nav-cta {
  margin-left: 8px;
  color: var(--text);
  border: 1px solid var(--line-strong);
}

.site-nav .nav-cta:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 0 10px;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 1.5px;
  background: var(--text);
  transition: transform 0.25s var(--ease), opacity 0.2s var(--ease);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* ----------------------------------------------------------------- hero -- */

.hero {
  position: relative;
  padding: 168px 0 110px;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: -320px;
  left: 50%;
  width: 1100px;
  height: 760px;
  transform: translateX(-52%);
  background:
    radial-gradient(closest-side, rgba(139, 123, 255, 0.22), transparent 70%),
    radial-gradient(closest-side, rgba(58, 208, 192, 0.14), transparent 70%);
  background-position: 30% 40%, 75% 60%;
  background-repeat: no-repeat;
  background-size: 70% 90%, 60% 80%;
  filter: blur(10px);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.85fr);
  gap: 72px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 22px;
  padding: 7px 15px 7px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  font-size: 13.5px;
  color: var(--text-muted);
  letter-spacing: 0.01em;
}

.pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 0 0 rgba(58, 208, 192, 0.55);
  animation: pulse 2.4s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(58, 208, 192, 0.5); }
  70% { box-shadow: 0 0 0 9px rgba(58, 208, 192, 0); }
  100% { box-shadow: 0 0 0 0 rgba(58, 208, 192, 0); }
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7.5vw, 5rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  margin-bottom: 10px;
}

.hero-role {
  margin: 0 0 24px;
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  font-weight: 500;
  color: transparent;
  background: linear-gradient(100deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
}

.hero-role .sep {
  opacity: 0.5;
  margin: 0 6px;
}

.hero-lede {
  max-width: 54ch;
  font-size: 1.06rem;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.hero-sub {
  max-width: 54ch;
  font-size: 0.98rem;
  color: var(--text-dim);
  margin-bottom: 32px;
  line-height: 1.6;
}

.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin: -4px 0 6px;
}

.project-links a {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-2);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}

.project-links a:hover {
  color: var(--text);
  border-bottom-color: var(--accent);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 26px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease);
}

.btn-primary {
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  color: #0a0b10;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px -12px rgba(139, 123, 255, 0.7);
}

.btn-ghost {
  border-color: var(--line-strong);
  color: var(--text);
}

.btn-ghost:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  background: var(--accent-soft);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 26px;
  margin-bottom: 26px;
  font-size: 14.5px;
  color: var(--text-dim);
}

.hero-meta li {
  position: relative;
  padding-left: 16px;
}

.hero-meta li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.8;
}

.hero-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}

.hero-socials a {
  font-size: 15px;
  color: var(--text-muted);
  text-decoration: none;
  padding-bottom: 3px;
  border-bottom: 1px solid var(--line-strong);
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.hero-socials a:hover {
  color: var(--text);
  border-color: var(--accent-2);
}

.hero-portrait {
  position: relative;
  justify-self: center;
  width: 100%;
  max-width: 360px;
}

.hero-portrait img {
  width: 100%;
  height: auto;
  border-radius: 22px;
  border: 1px solid var(--line);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.9);
  filter: saturate(1.02);
}

.portrait-badge {
  position: absolute;
  left: -22px;
  bottom: 28px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-width: 220px;
  padding: 13px 17px;
  border-radius: 14px;
  border: 1px solid var(--line-strong);
  background: rgba(20, 23, 31, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 20px 40px -22px rgba(0, 0, 0, 0.9);
}

.portrait-badge strong {
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-2);
}

.portrait-badge span {
  font-size: 14px;
  line-height: 1.4;
  color: var(--text);
}

/* -------------------------------------------------------------- sections -- */

.section {
  padding: 104px 0;
  border-top: 1px solid var(--line);
}

.section-alt {
  background: var(--bg-alt);
}

.section-head {
  max-width: 640px;
  margin-bottom: 56px;
}

.section-label {
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4vw, 2.7rem);
  font-weight: 500;
}

.section-foot {
  margin-top: 40px;
  color: var(--text-dim);
  font-size: 15px;
}

.section-foot a {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--accent);
}

.muted {
  color: var(--text-dim);
  font-weight: 400;
}

.dot {
  margin: 0 7px;
  color: var(--text-dim);
}

/* ---------------------------------------------------------------- about -- */

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 64px;
  align-items: start;
}

.about-text p {
  color: var(--text-muted);
  font-size: 1.02rem;
}

.about-text p:first-child {
  color: var(--text);
  font-size: 1.12rem;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.stat {
  padding: 22px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  line-height: 1.1;
  margin-bottom: 8px;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat span {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-muted);
}

/* ------------------------------------------------------------- timeline -- */

.timeline {
  position: relative;
  display: grid;
  gap: 8px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 32px;
  padding: 32px 0;
  border-top: 1px solid var(--line);
}

.timeline-item:first-child {
  border-top: none;
  padding-top: 0;
}

.timeline-when {
  font-size: 14px;
  color: var(--text-dim);
  letter-spacing: 0.01em;
  padding-top: 4px;
}

.timeline-body h3 {
  font-size: 1.3rem;
  margin-bottom: 6px;
}

.timeline-org {
  margin: 0 0 18px;
  font-size: 15px;
  color: var(--accent-2);
}

.timeline-body > ul:not(.tags) {
  display: grid;
  gap: 10px;
  margin-bottom: 20px;
}

.timeline-body > ul:not(.tags) li {
  position: relative;
  padding-left: 20px;
  font-size: 15.5px;
  color: var(--text-muted);
  line-height: 1.6;
}

.timeline-body > ul:not(.tags) li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  border: 1px solid var(--accent);
}

/* ----------------------------------------------------------------- tags -- */

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tags li {
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035);
  font-size: 13px;
  color: var(--text-muted);
  white-space: nowrap;
}

/* ---------------------------------------------------------------- cards -- */

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}

.edu-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}

.edu-note {
  margin: 18px 0 0;
  font-size: 14.5px;
  color: var(--text-dim);
}

.side-project {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  grid-column: 1 / -1;
  margin: 0;
  padding: 20px 24px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  background: transparent;
}

.side-project .card-when {
  margin-bottom: 6px;
}

.side-project h3 {
  margin: 0 0 6px;
  font-size: 1.05rem;
}

.side-project p {
  margin: 0;
  max-width: 62ch;
  font-size: 14.5px;
  color: var(--text-muted);
}

.side-project > a {
  flex-shrink: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-2);
  text-decoration: none;
}

.side-project > a:hover {
  color: var(--text);
}

.card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease), background 0.25s var(--ease);
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  background: var(--surface-2);
}

.card-feature {
  grid-column: 1 / -1;
  background: linear-gradient(150deg, rgba(139, 123, 255, 0.1), rgba(58, 208, 192, 0.05)), var(--surface);
}

.card-feature-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  gap: 28px;
  align-items: start;
}

.card-feature-copy {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.arch-diagram {
  margin: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(8, 10, 16, 0.45);
}

.arch-diagram figcaption {
  margin: 0 0 14px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-2);
}

.arch-flow {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.arch-flow > li {
  position: relative;
  display: block;
  padding: 12px 14px 12px 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  counter-increment: step;
}

.arch-flow > li::before {
  content: counter(step);
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
  color: #0a0b10;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

.arch-title {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
}

.arch-desc {
  display: block;
  margin-top: 3px;
  font-size: 12px;
  color: var(--text-dim);
  line-height: 1.35;
}

.arch-pipeline-text {
  margin: 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(8, 10, 16, 0.45);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.5;
}

.arch-pipeline-text span {
  margin: 0 6px;
  color: var(--accent-2);
  font-weight: 500;
}

.card-quiet {
  background: transparent;
}

.card-top h3 {
  font-size: 1.25rem;
}

.card-top h3 a {
  text-decoration: none;
  background-image: linear-gradient(var(--accent), var(--accent));
  background-repeat: no-repeat;
  background-size: 0% 1.5px;
  background-position: 0 100%;
  transition: background-size 0.3s var(--ease);
}

.card-top h3 a:hover {
  background-size: 100% 1.5px;
}

.card-when {
  margin: 0 0 8px;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.card-org {
  margin: -4px 0 4px;
  font-size: 15px;
  color: var(--accent-2);
}

.card p {
  font-size: 15.5px;
  color: var(--text-muted);
  margin: 0;
}

.card .tags {
  padding-top: 2px;
}

/* --------------------------------------------------------------- skills -- */

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.skill-group {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.skill-group h3 {
  margin-bottom: 16px;
  font-size: 1.02rem;
  color: var(--text);
}

/* -------------------------------------------------------------- contact -- */

.section-contact {
  position: relative;
  padding: 100px 0 110px;
  background:
    radial-gradient(900px 420px at 50% 0%, rgba(139, 123, 255, 0.12), transparent 70%),
    var(--bg);
}

.contact-shell {
  max-width: 720px;
  margin: 0 auto;
  padding: 44px 40px 40px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(160deg, rgba(139, 123, 255, 0.08), rgba(58, 208, 192, 0.04)), var(--surface);
}

.contact-intro {
  text-align: center;
  margin-bottom: 32px;
}

.contact-intro h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 2.9rem);
  font-weight: 500;
  margin-bottom: 14px;
}

.contact-lede {
  max-width: 42ch;
  margin: 0 auto 20px;
  color: var(--text-muted);
}

.contact-email {
  display: inline-block;
  font-size: clamp(1.05rem, 2.4vw, 1.35rem);
  font-weight: 600;
  text-decoration: none;
  word-break: break-word;
  background: linear-gradient(100deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  transition: opacity 0.2s var(--ease);
}

.contact-email:hover {
  opacity: 0.78;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 22px;
}

.contact-links a {
  display: inline-block;
  padding: 9px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 14px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.contact-links a:hover {
  color: var(--text);
  border-color: var(--accent);
  background: var(--accent-soft);
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(8, 10, 16, 0.55);
  color-scheme: dark;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-row {
  display: grid;
  gap: 8px;
  text-align: left;
}

.form-row label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.form-row input,
.form-row textarea {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: #12151d;
  color: var(--text);
  font: inherit;
  line-height: 1.4;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.form-row input::placeholder,
.form-row textarea::placeholder {
  color: var(--text-dim);
}

.form-row input:focus,
.form-row textarea:focus {
  border-color: var(--accent);
  background: #161a24;
  box-shadow: 0 0 0 3px rgba(139, 123, 255, 0.18);
}

.form-row input:-webkit-autofill,
.form-row input:-webkit-autofill:hover,
.form-row input:-webkit-autofill:focus,
.form-row textarea:-webkit-autofill {
  -webkit-text-fill-color: var(--text);
  -webkit-box-shadow: 0 0 0 1000px #12151d inset;
  transition: background-color 9999s ease-in-out 0s;
}

.form-row textarea {
  resize: vertical;
  min-height: 140px;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 4px;
}

.contact-form .btn {
  border: none;
  cursor: pointer;
  min-width: 160px;
  justify-content: center;
}

.contact-form .btn:disabled {
  opacity: 0.65;
  cursor: wait;
  transform: none;
}

.form-status {
  margin: 0;
  font-size: 14px;
  color: var(--accent-2);
}

.form-status.is-error {
  color: #ff8f8f;
}

/* --------------------------------------------------------------- footer -- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 30px 0;
  background: var(--bg-alt);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  justify-content: space-between;
  font-size: 14px;
  color: var(--text-dim);
}

.footer-inner p {
  margin: 0;
}

/* -------------------------------------------------------------- reveals -- */

/* Scoped to .js so content stays visible if the script fails to load. */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  will-change: opacity, transform;
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------------------------------------------------------- breakpoints -- */

@media (max-width: 980px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 52px;
  }

  .hero-portrait {
    order: -1;
    max-width: 290px;
    justify-self: start;
  }

  .portrait-badge {
    left: auto;
    right: -18px;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .card-feature-layout {
    grid-template-columns: 1fr;
  }

  .contact-shell {
    padding: 32px 20px 24px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

@media (max-width: 760px) {
  body {
    font-size: 16px;
  }

  .wrap {
    padding: 0 20px;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: absolute;
    top: 76px;
    left: 12px;
    right: 12px;
    padding: 10px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    background: rgba(14, 16, 23, 0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 24px 50px -24px rgba(0, 0, 0, 0.9);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.22s var(--ease), transform 0.22s var(--ease), visibility 0.22s;
  }

  .site-nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
  }

  .site-nav a {
    display: block;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
  }

  .site-nav .nav-cta {
    margin: 6px 0 0;
    text-align: center;
  }

  .hero {
    padding: 132px 0 80px;
  }

  .section {
    padding: 76px 0;
  }

  .section-head {
    margin-bottom: 40px;
  }

  .about-stats {
    grid-template-columns: 1fr;
  }

  .card,
  .skill-group {
    padding: 24px 22px;
  }

  .project-grid,
  .edu-grid,
  .skills-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}
