/* ============================================================
   AVIRAJ VIRAPE — sections.css
   All section-specific layouts & components
   ============================================================ */

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: 100px;
  padding-bottom: 60px;
  overflow: hidden;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr 440px;
  gap: 60px;
  align-items: center;
}

.hero__col { display: flex; flex-direction: column; }

/* Eyebrow */
.hero__eyebrow { margin-bottom: 28px; }

/* Headline */
.hero__h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(44px, 8.5vw, 100px);
  line-height: 0.96;
  letter-spacing: -0.04em;
  margin-bottom: 32px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.hero__h1 .l { display: block; overflow: visible; }
.hero__h1 .muted { color: var(--text-3); }
.hero__h1 .amber { color: var(--accent); }

/* Typing row */
.hero__type {
  font-family: var(--font-mono);
  font-size: 17px;
  letter-spacing: 0.04em;
  color: var(--text-2);
  margin-bottom: 20px;
  min-height: 26px;
}
.cursor {
  display: inline-block;
  color: var(--accent);
  font-weight: 300;
  margin-left: 2px;
}

/* Quote */
.hero__quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(16px, 1.6vw, 20px);
  color: var(--accent);
  margin-bottom: 18px;
  letter-spacing: -0.01em;
}

/* Desc */
.hero__desc {
  color: var(--text-2);
  font-size: 16px;
  line-height: 1.65;
  max-width: 520px;
  margin-bottom: 36px;
}

/* CTAs */
.hero__cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

/* Chips */
.hero__chips { margin-top: 4px; }

/* Rise animation (triggered when .hero gains .lit) */
.hero__rise {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.hero.lit .hero__rise { opacity: 1; transform: none; }
.hero.lit .hero__rise[data-d="1"] { transition-delay: 0.10s; }
.hero.lit .hero__rise[data-d="2"] { transition-delay: 0.20s; }
.hero.lit .hero__rise[data-d="3"] { transition-delay: 0.30s; }
.hero.lit .hero__rise[data-d="4"] { transition-delay: 0.40s; }
.hero.lit .hero__rise[data-d="5"] { transition-delay: 0.50s; }

/* ---------- ID CARD ---------- */
.idwrap {
  perspective: 1000px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.idcard {
  width: 400px;
  max-width: 100%;
  background: var(--card);
  border: 1px solid var(--border-2);
  border-radius: 22px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform 0.18s var(--ease), box-shadow 0.3s var(--ease);
  box-shadow: 0 40px 80px -20px var(--shadow-ink), 0 0 0 1px var(--faint-line);
  will-change: transform;
  /* shimmer variable */
  --mx: 50%; --my: 50%;
  position: relative;
  overflow: hidden;
}
.idcard::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--mx) var(--my), rgba(242,169,59,0.08) 0%, transparent 60%);
  pointer-events: none;
  border-radius: inherit;
  transition: opacity 0.3s;
}

.idcard__notch {
  width: 54px; height: 6px; border-radius: 3px;
  background: var(--border-2);
  margin: 0 auto;
}

.idcard__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.idcard__org {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  color: var(--text-3);
  line-height: 1.5;
  text-transform: uppercase;
}
.idcard__org b { display: block; color: var(--accent); margin-top: 3px; }
.idcard__chip {
  width: 32px; height: 32px;
  border-radius: 7px;
  background: linear-gradient(135deg, var(--accent-deep), var(--accent));
  box-shadow: 0 2px 12px rgba(242,169,59,0.3);
}

/* Photo frame inside card */
.idcard__photo {
  width: 100%;
  aspect-ratio: 4/5;
  border-radius: 12px;
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,0.025) 0 12px, transparent 12px 24px),
    var(--card-2);
}
.idcard__photo img { object-position: 50% 20%; }

.idcard__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.03em;
  color: var(--text);
}
.idcard__role {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: -8px;
}

.idcard__meta {
  display: flex;
  gap: 24px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
}
.idcard__meta div { display: flex; flex-direction: column; gap: 3px; }
.idcard__meta b { font-size: 10.5px; color: var(--text); display: block; }

.idcard__barcode {
  height: 32px;
  background: repeating-linear-gradient(
    90deg,
    var(--border-2) 0px, var(--border-2) 2px,
    transparent 2px, transparent 4px,
    var(--text-3) 4px, var(--text-3) 5px,
    transparent 5px, transparent 8px,
    var(--border-2) 8px, var(--border-2) 11px,
    transparent 11px, transparent 13px,
    var(--text-3) 13px, var(--text-3) 15px,
    transparent 15px, transparent 19px,
    var(--border-2) 19px, var(--border-2) 22px,
    transparent 22px, transparent 23px
  );
  border-radius: 3px;
  opacity: 0.6;
}

/* Scroll cue */
.scrollcue {
  position: absolute;
  bottom: 34px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-3);
}
.scrollcue .arr {
  color: var(--accent);
  animation: bounce 1.8s ease-in-out infinite;
  font-size: 16px;
}
@keyframes bounce { 0%,100% { transform: translateY(0); } 50% { transform: translateY(6px); } }

/* ============================================================
   ABOUT
   ============================================================ */
.about__grid {
  display: grid;
  grid-template-columns: 1fr 440px;
  gap: 80px;
  align-items: start;
}

.about__story { display: flex; flex-direction: column; gap: 18px; }
.about__story .label { margin-bottom: 4px; }
.about__story p { color: var(--text-2); font-size: 16px; line-height: 1.7; }
.about__story .lead {
  font-family: var(--font-display);
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.02em;
}
.about__story .amber { color: var(--accent); }
.about__story .section-title { margin-top: 10px; }

/* Photo */
.about__photo {
  width: 100%;
  aspect-ratio: 3/4;
  border-radius: 18px;
  margin-bottom: 20px;
  animation: aboutFloat 6s ease-in-out infinite;
}
.about__photo.is-active { animation: none; }
@keyframes aboutFloat {
  0%, 100% { transform: perspective(1000px) translateY(0) rotateX(0) rotateY(0); }
  50%      { transform: perspective(1000px) translateY(-8px) rotateX(1.2deg) rotateY(-1.2deg); }
}

/* Stats grid */
.statgrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.stat {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: border-color 0.25s var(--ease);
}
.stat:hover { border-color: var(--accent); }
.stat__n {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 32px;
  letter-spacing: -0.04em;
  color: var(--accent);
  line-height: 1;
}
.stat__l {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
  line-height: 1.4;
}

/* ============================================================
   ARSENAL
   ============================================================ */
/* Category filter pills */
.ars-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 36px;
}
.ars-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-2);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 10px 18px;
  cursor: pointer;
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease), background 0.25s var(--ease);
}
.ars-pill svg { width: 14px; height: 14px; }
.ars-pill:hover { border-color: var(--border-2); color: var(--text); }
.ars-pill.is-on {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim);
}

/* Tech tile grid */
.ars-tiles {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}
.ars-tiles.in { animation: none; }
.ars-tiles.in .ars-tile {
  animation: tileRise 0.55s var(--ease) backwards;
  animation-delay: calc(var(--i, 0) * 0.03s);
}
@keyframes tileRise {
  from { transform: translateY(16px) scale(0.97); }
  to   { transform: none; }
}

.ars-tile {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 128px;
  padding: 20px 12px;
  background: linear-gradient(165deg, #1d160b 0%, #15120e 48%, #101010 100%);
  border: 1px solid rgba(242, 169, 59, 0.16);
  border-radius: 16px;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease),
              box-shadow 0.3s var(--ease), opacity 0.35s var(--ease), filter 0.35s var(--ease);
}
.ars-tile::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(85% 55% at 50% 0%, rgba(242, 169, 59, 0.10), transparent 72%);
  pointer-events: none;
  border-radius: inherit;
}
.ars-tile:hover {
  border-color: rgba(242, 169, 59, 0.6);
  transform: translateY(-4px);
  box-shadow: 0 22px 55px -16px rgba(242, 169, 59, 0.28);
}
html[data-theme="light"] .ars-tile {
  background: linear-gradient(165deg, #ffffff 0%, #fbf7ef 50%, #f4eee1 100%);
  border-color: rgba(207, 132, 24, 0.22);
}
html[data-theme="light"] .ars-tile::before {
  background: radial-gradient(85% 55% at 50% 0%, rgba(207, 132, 24, 0.10), transparent 72%);
}
html[data-theme="light"] .ars-tile:hover {
  border-color: rgba(207, 132, 24, 0.55);
  box-shadow: 0 22px 50px -18px rgba(207, 132, 24, 0.30);
}
.ars-tile.is-dim {
  opacity: 0.22;
  filter: saturate(0.2);
  transform: scale(0.97);
}

.ars-tile__icon {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
  filter: drop-shadow(0 0 10px rgba(242, 169, 59, 0.25));
}
.ars-tile__icon img { width: 38px; height: 38px; object-fit: contain; }
.ars-tile__icon svg { width: 36px; height: 36px; }

.ars-tile__name {
  font-family: var(--font-mono);
  font-size: 13.5px;
  letter-spacing: 0.05em;
  color: var(--text);
  text-align: center;
  line-height: 1.35;
  text-shadow: 0 1px 2px rgba(0,0,0,0.35);
}
html[data-theme="light"] .ars-tile__name { text-shadow: none; }
.ars-tile:hover .ars-tile__name { color: var(--accent-bright); }

.ars-tile--more {
  border-style: dashed;
  border-color: var(--border-2);
  background: transparent;
}
.ars-tile--more::before { display: none; }
.ars-tile__plus {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 32px;
  line-height: 1;
  color: var(--accent);
}

/* ============================================================
   MISSIONS
   ============================================================ */
.mission {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 60px 0;
  border-top: 1px solid var(--border);
}
.mission:first-of-type { border-top: none; padding-top: 0; }

.mission__media {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 18px;
}
/* Project screenshots: show the WHOLE UI, never crop/zoom */
.mission__media img {
  object-fit: contain;
  background: var(--card-2);
  padding: 10px;
}
/* reverse the hover zoom for these tiles — keep image at true size */
.mission__media.is-tilt.is-active img { transform: none; }

/* Ambient life for project tiles (since they no longer zoom) */
.mission__media { animation: tileFloat 7s ease-in-out infinite; }
.mission__media.is-active { animation: none; }
.mission:nth-of-type(2) .mission__media { animation-delay: -2.3s; }
.mission:nth-of-type(3) .mission__media { animation-delay: -4.6s; }
@keyframes tileFloat {
  0%, 100% { transform: perspective(1000px) translateY(0) rotateX(0) rotateY(0); }
  50%      { transform: perspective(1000px) translateY(-7px) rotateX(1deg) rotateY(-1deg); }
}
/* Glossy sheen sweep across the screenshot on hover */
.mission__media::before {
  content: '';
  position: absolute; top: 0; left: -65%;
  width: 45%; height: 100%;
  background: linear-gradient(105deg, transparent, rgba(255,255,255,0.22), transparent);
  transform: skewX(-18deg);
  z-index: 3; pointer-events: none; opacity: 0;
}
.mission__media.is-active::before { animation: tileSheen 0.95s var(--ease); }
@keyframes tileSheen {
  0%   { left: -65%; opacity: 0; }
  12%  { opacity: 1; }
  100% { left: 135%; opacity: 0; }
}

.mission__body { display: flex; flex-direction: column; gap: 14px; }

.mission__no {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-3);
}

.mission__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(26px, 3vw, 36px);
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--text);
}

.mission__tag {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--accent);
  font-style: italic;
}

.mission__desc {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-2);
}

.mission__stack { margin-top: 4px; }

.mission__links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 6px;
}
.mission__link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-2);
  transition: color 0.22s var(--ease);
  cursor: pointer;
}
.mission__link svg { width: 14px; height: 14px; }
.mission__link:hover { color: var(--accent); }

/* Thumbnail is a link to the live app */
a.mission__media { display: block; color: inherit; text-decoration: none; }
.mission__metrics { flex-wrap: wrap; gap: 18px 32px; margin: 4px 0 22px; }
a.mission__media:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

/* "Live" badge next to the project number */
.mission__no { display: flex; align-items: center; gap: 12px; }
.mission__live {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 9px; border-radius: 999px;
  border: 1px solid var(--border); color: var(--accent);
  letter-spacing: 0.14em;
}
.mission__live .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 8px var(--accent);
}
.mission__desc b { color: var(--text); font-weight: 600; }
.mission__note {
  margin-top: 12px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.04em;
  color: var(--text-3);
}
.missions__more { display: flex; justify-content: center; margin-top: 24px; }

/* Section titles in About / Missions render without the drawn underline
   (moved here from an inline <style> that sat outside </html>) */
#about :is(h1,h2,h3,h4,h5,h6) path,
#missions :is(h1,h2,h3,h4,h5,h6) path { opacity: 0 !important; }

/* Alternate layout: odd missions — image right */
.mission:nth-child(even) .mission__media { order: 2; }
.mission:nth-child(even) .mission__body  { order: 1; }

/* ============================================================
   JOURNEY — features
   ============================================================ */
.feature {
  padding: 52px 0;
  border-top: 1px solid var(--border);
}
.feature:first-of-type { border-top: none; padding-top: 0; }

.feature__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
}
.feature--flip .feature__grid { direction: rtl; }
.feature--flip .feature__grid > * { direction: ltr; }

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

.feature__kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
}

.feature__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(28px, 3.8vw, 52px);
  letter-spacing: -0.04em;
  line-height: 0.98;
  color: var(--text);
}

.feature__sub {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 16px;
  color: var(--text-2);
  margin-top: -6px;
}

.feature__text {
  font-size: 15px;
  line-height: 1.72;
  color: var(--text-2);
  max-width: 480px;
}

.feature__metrics {
  display: flex;
  gap: 36px;
  padding: 20px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.feature__metric .n {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 28px;
  letter-spacing: -0.04em;
  color: var(--accent);
}
.feature__metric .l {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
  line-height: 1.5;
  margin-top: 4px;
}

.feature__tagline {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--accent);
  text-transform: uppercase;
}

/* Wide showcase (Fix with Me) */
.feature--wide { display: flex; flex-direction: column; gap: 28px; }
.showcase__text { max-width: 760px; }
.showcase__strip { display: block; width: 100%; border-radius: 18px; overflow: hidden; }
.showcase__strip img { display: block; width: 100%; height: auto; }
.pipeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.pipeline__step {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 14px;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text-2);
}
.pipeline__step b { font-family: var(--font-display); font-size: 17px; color: var(--text); letter-spacing: -0.02em; }
.pipeline__no { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.2em; color: var(--accent); }
@media (max-width: 980px) { .pipeline { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .pipeline { grid-template-columns: 1fr; } }

/* Media frame */
.feature__media .frame {
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: 18px;
}

/* Research pub table */
.pub {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.pub__row {
  display: flex;
  padding: 11px 16px;
  border-bottom: 1px solid var(--border);
  gap: 16px;
}
.pub__row:last-child { border-bottom: none; }
.pub__k {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
  min-width: 72px;
  padding-top: 1px;
}
.pub__v {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--text-2);
}

/* ============================================================
   VISION
   ============================================================ */
.vision {
  padding: clamp(100px, 15vh, 180px) 0;
  text-align: center;
  position: relative;
}
.vision::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 50%, rgba(242,169,59,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.vision__big {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(30px, 5.5vw, 72px);
  letter-spacing: -0.04em;
  line-height: 1.08;
  color: var(--text);
  max-width: 920px;
  margin: 22px auto 48px;
}
.vision__big .amber { color: var(--accent); }

.vision__domains {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 44px;
}
.vision__domain {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-3);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 20px;
  transition: all 0.25s var(--ease);
}
.vision__domain:hover { border-color: var(--accent); color: var(--accent); }

.vision__coda {
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-2);
  max-width: 640px;
  margin: 0 auto;
}
.vision__coda .accent-text { color: var(--accent); }

/* ============================================================
   CONTACT
   ============================================================ */
.contact { text-align: center; }
.contact .label { justify-content: center; }
.contact .section-head { text-align: center; }

.contact__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(52px, 9vw, 120px);
  letter-spacing: -0.05em;
  line-height: 0.9;
  margin: 16px 0 24px;
}
.contact__title .amber { color: var(--accent); }

.contact__sub {
  font-size: 17px;
  line-height: 1.65;
  color: var(--text-2);
  max-width: 520px;
  margin: 0 auto 52px;
}

/* Contact link cards */
.contact__links {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  margin-bottom: 44px;
}

.clink {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  background: linear-gradient(168deg, #1d160b 0%, #15120e 50%, #101010 100%);
  border: 1px solid rgba(242, 169, 59, 0.16);
  border-radius: 16px;
  padding: 28px 20px;
  transition: all 0.28s var(--ease);
  cursor: pointer;
}
.clink::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(85% 55% at 50% 0%, rgba(242, 169, 59, 0.10), transparent 72%);
  pointer-events: none;
  border-radius: inherit;
}
.clink svg {
  width: 26px; height: 26px;
  color: var(--accent);
  transition: transform 0.25s var(--ease);
}
.clink:hover {
  border-color: rgba(242, 169, 59, 0.6);
  transform: translateY(-4px);
  box-shadow: 0 22px 55px -16px rgba(242, 169, 59, 0.28);
}
html[data-theme="light"] .clink {
  background: linear-gradient(168deg, #ffffff 0%, #fbf7ef 50%, #f4eee1 100%);
  border-color: rgba(207, 132, 24, 0.22);
}
html[data-theme="light"] .clink::before {
  background: radial-gradient(85% 55% at 50% 0%, rgba(207, 132, 24, 0.10), transparent 72%);
}
html[data-theme="light"] .clink:hover {
  border-color: rgba(207, 132, 24, 0.55);
  box-shadow: 0 22px 50px -18px rgba(207, 132, 24, 0.30);
}
.clink:hover svg { transform: scale(1.15); }
.clink .k {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-3);
}
.clink .v {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--text-2);
  word-break: break-all;
  text-align: center;
}
.clink:hover .v { color: var(--accent); }

.contact__cta {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 60px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .hero__grid { grid-template-columns: 1fr 380px; gap: 40px; }
  .ars-tiles { grid-template-columns: repeat(4, 1fr); }
  .contact__links { grid-template-columns: repeat(3, 1fr); }
  .circuit { display: none; }
}

@media (max-width: 860px) {
  /* Hero */
  .hero__grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }
  .idwrap { display: flex; justify-content: center; }
  .idcard { width: 340px; }

  /* About */
  .about__grid { grid-template-columns: 1fr; gap: 40px; }
  .about__photo { aspect-ratio: 3/2; }

  /* Arsenal */
  .ars-tiles { grid-template-columns: repeat(3, 1fr); }
  .hero-orbit { width: 480px; height: 480px; opacity: 0.4; }

  /* Missions */
  .mission {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .mission:nth-child(even) .mission__media { order: 0; }
  .mission:nth-child(even) .mission__body  { order: 0; }

  /* Journey */
  .feature__grid { grid-template-columns: 1fr; gap: 32px; }
  .feature--flip .feature__grid { direction: ltr; }

  /* Contact */
  .contact__links { grid-template-columns: 1fr 1fr; }
  .contact__title { font-size: clamp(44px, 11vw, 80px); }
}

@media (max-width: 560px) {
  .ars-tiles { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .ars-tile { min-height: 110px; }
  .ars-pill { padding: 9px 14px; font-size: 11px; }
  .contact__links { grid-template-columns: 1fr; }
  .hero__cta { flex-direction: column; }
  .statgrid { grid-template-columns: 1fr 1fr; }
  .feature__metrics { gap: 24px; }
}

/* ============================================================
   SVG FX — swoosh, title draw-ins, orbit, circuit
   ============================================================ */
@keyframes drawPath { to { stroke-dashoffset: 0; } }

/* Hero swoosh under the accent word */
.amber--swoosh { position: relative; display: inline-block; }
.hero-swoosh {
  position: absolute;
  left: -2%; bottom: -0.10em;
  width: 104%; height: 0.26em;
  overflow: visible;
  pointer-events: none;
}
.hero-swoosh .sw {
  fill: none;
  stroke: var(--accent);
  stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: 330;
  stroke-dashoffset: 330;
}
.hero-swoosh .sw--glow {
  stroke: var(--accent-bright);
  stroke-width: 13;
  filter: url(#swooshGlow);
  opacity: 0.8;
}
.hero.lit .hero-swoosh .sw { animation: drawPath 0.9s var(--ease) 1.0s forwards; }
.hero.lit .hero-swoosh .sw--glow {
  animation: drawPath 0.9s var(--ease) 1.0s forwards,
             swooshPulse 2.6s ease-in-out 2.1s infinite;
}
@keyframes swooshPulse { 0%, 100% { opacity: 0.45; } 50% { opacity: 0.95; } }

/* Section-title underline draw-in (injected by JS) */
.title-line {
  display: block;
  width: 120px; height: 10px;
  margin-top: 16px;
  overflow: visible;
}
.title-line path {
  fill: none;
  stroke: var(--accent);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 175;
  stroke-dashoffset: 175;
  opacity: 0.9;
}
.section-title.in .title-line path { animation: drawPath 0.9s var(--ease) 0.55s forwards; }

/* Orbiting rings behind the ID card */
.idwrap { position: relative; }
.hero-orbit {
  position: absolute;
  left: 50%; top: 50%;
  width: 660px; height: 660px;
  transform: translate(-50%, -50%);
  pointer-events: none;
  opacity: 0.55;
}
.hero-orbit .ring { fill: none; stroke: rgba(242,169,59,0.22); stroke-width: 1; }
.hero-orbit .ring--dash { stroke-dasharray: 3 14; }
.hero-orbit .ring--faint { stroke: var(--faint-line); }
.hero-orbit .sat { fill: var(--accent); }
.hero-orbit .orbit { transform-origin: 300px 300px; animation: orbitSpin 70s linear infinite; }
.hero-orbit .orbit--rev { animation-duration: 95s; animation-direction: reverse; }
@keyframes orbitSpin { to { transform: rotate(360deg); } }

/* Journey circuit line (desktop only; scroll-driven) */
.journey .wrap { position: relative; }
.circuit {
  position: absolute;
  left: 10px; top: 10px; bottom: 10px;
  width: 3px;
}
.circuit svg { width: 100%; height: 100%; display: block; overflow: visible; }
.circuit path {
  fill: none;
  stroke: var(--accent);
  stroke-width: 3px;
  opacity: 0.8;
  filter: drop-shadow(0 0 6px rgba(242, 169, 59, 0.5));
}
.circuit-node {
  position: absolute;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 14px; height: 14px;
  border-radius: 50%;
  border: 1.5px solid var(--accent);
  background: var(--bg);
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.circuit-node.lit {
  background: var(--accent);
  box-shadow: 0 0 18px var(--accent-glow);
}
.circuit-head {
  position: absolute;
  left: 50%; top: 0;
  transform: translate(-50%, -50%);
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--accent-bright);
  box-shadow: 0 0 18px var(--accent), 0 0 5px var(--accent-bright);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}
.circuit-head.on { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .hero-orbit .orbit { animation: none; }
  .hero-swoosh .sw, .title-line path { stroke-dashoffset: 0; animation: none; }
}
.feature__body > .mission__link { margin-top: 18px; }

/* Education list in About (reuses the .pub table styling) */
.edu { margin-top: 28px; }
.edu__head {
  display: block; margin-bottom: 10px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--text-3);
}
.edu .pub__k { flex: 0 0 92px; }
.edu__dim { color: var(--text-3); }

/* ---------- More projects grid ---------- */
.more-head { margin: 72px 0 28px; }
.more-head__title {
  margin-top: 14px;
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(22px, 2.6vw, 30px); letter-spacing: -0.02em; color: var(--text);
}
.pgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
@media (max-width: 980px) { .pgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .pgrid { grid-template-columns: 1fr; } }
.pcard {
  display: flex; flex-direction: column;
  border: 1px solid var(--border); border-radius: 16px;
  background: var(--card); overflow: hidden;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.pcard:hover { border-color: var(--border-2); transform: translateY(-3px); }
.pcard__media {
  display: block; aspect-ratio: 16/9; border: 0; border-radius: 0;
  border-bottom: 1px solid var(--border); background: #fff;
}
.pcard__media img { object-fit: cover; object-position: top center; }
.pcard__body { display: flex; flex-direction: column; gap: 12px; padding: 18px 18px 20px; flex: 1; }
.pcard__title {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  font-family: var(--font-display); font-weight: 700; font-size: 18px;
  letter-spacing: -0.01em; color: var(--text);
}
.pcard__title .mission__live { font-family: var(--font-mono); font-size: 10px; font-weight: 400; }
.pcard__desc { font-size: 14px; line-height: 1.6; color: var(--text-2); }
.pcard__chips .chip { font-size: 11px; }
.pcard .mission__links { margin-top: auto; }
