/* ============================================================
   Aryan Vahabpour — Portfolio
   Cosmic / nebula theme · dark blue + black
   ============================================================ */

:root {
  --bg:        #05070f;
  --bg-2:      #070b18;
  --ink:       #eaf0ff;
  --muted:     #9aa7c7;
  --faint:     #5e6a8a;
  --blue:      #4f8cff;
  --blue-2:    #7aa7ff;
  --cyan:      #67e8ff;
  --violet:    #9b6bff;
  --line:      rgba(122, 167, 255, 0.14);
  --card:      rgba(18, 26, 48, 0.45);
  --card-brd:  rgba(122, 167, 255, 0.16);
  --glass:     rgba(8, 12, 26, 0.55);
  --max:       1180px;
  --ease:      cubic-bezier(0.22, 1, 0.36, 1);
  --font:      'Inter', system-ui, sans-serif;
  --display:   'Space Grotesk', 'Inter', sans-serif;
  --mono:      'JetBrains Mono', monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: rgba(79, 140, 255, 0.35); color: #fff; }

a { color: inherit; text-decoration: none; }

.inline-link {
  color: var(--blue-2);
  text-decoration: underline;
  text-decoration-color: rgba(122, 167, 255, 0.4);
  text-underline-offset: 3px;
  transition: color 0.3s var(--ease), text-decoration-color 0.3s var(--ease);
}
.inline-link:hover { color: var(--cyan); text-decoration-color: var(--cyan); }

/* ---------- Background layers ---------- */
#bg-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -3;
  display: block;
}

.bg-fallback {
  position: fixed;
  inset: 0;
  z-index: -4;
  background:
    radial-gradient(60% 50% at 75% 15%, rgba(75, 60, 160, 0.35), transparent 70%),
    radial-gradient(55% 45% at 20% 80%, rgba(30, 70, 170, 0.30), transparent 70%),
    radial-gradient(90% 70% at 50% 50%, #060a16, #04060d 80%);
}

.grain {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Scroll progress ---------- */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--cyan), var(--blue), var(--violet));
  z-index: 100;
  box-shadow: 0 0 12px rgba(79, 140, 255, 0.7);
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px clamp(18px, 4vw, 48px);
  transition: background 0.4s var(--ease), backdrop-filter 0.4s var(--ease), padding 0.4s var(--ease);
}
.nav.scrolled {
  background: var(--glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  padding-top: 10px;
  padding-bottom: 10px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}
.brand__text {
  font-family: var(--display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 2px;
  background: linear-gradient(90deg, var(--blue-2), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- 3D cube monogram ---------- */
.cube-scene {
  width: 44px;
  height: 44px;
  perspective: 480px;
}
.cube {
  position: relative;
  width: 44px;
  height: 44px;
  transform-style: preserve-3d;
  animation: cube-spin 14s linear infinite;
}
@keyframes cube-spin {
  from { transform: rotateX(-20deg) rotateY(0deg); }
  to   { transform: rotateX(-20deg) rotateY(360deg); }
}
.cube__face {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-weight: 700;
  font-size: 22px;
  color: var(--blue-2);
  background: linear-gradient(145deg, rgba(20, 32, 64, 0.85), rgba(10, 16, 36, 0.85));
  border: 1px solid rgba(122, 167, 255, 0.45);
  border-radius: 8px;
  box-shadow: inset 0 0 16px rgba(79, 140, 255, 0.25);
  backface-visibility: visible;
}
.cube__face--top,
.cube__face--bottom { font-size: 11px; letter-spacing: 1px; color: var(--cyan); }
.cube__face--front  { transform: translateZ(22px); }
.cube__face--back   { transform: rotateY(180deg) translateZ(22px); }
.cube__face--right  { transform: rotateY(90deg) translateZ(22px); }
.cube__face--left   { transform: rotateY(-90deg) translateZ(22px); }
.cube__face--top    { transform: rotateX(90deg) translateZ(22px); }
.cube__face--bottom { transform: rotateX(-90deg) translateZ(22px); }

/* ---------- Nav links ---------- */
.nav__links { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 34px); }
.nav__link {
  font-size: 15px;
  color: var(--muted);
  position: relative;
  transition: color 0.3s var(--ease);
}
.nav__link::after {
  content: '';
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--blue));
  transition: width 0.35s var(--ease);
}
.nav__link:hover { color: var(--ink); }
.nav__link:hover::after { width: 100%; }
.nav__link--cta {
  padding: 8px 18px;
  border: 1px solid var(--card-brd);
  border-radius: 999px;
  color: var(--blue-2);
}
.nav__link--cta::after { display: none; }
.nav__link--cta:hover {
  background: rgba(79, 140, 255, 0.12);
  box-shadow: 0 0 24px rgba(79, 140, 255, 0.25);
}

.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 6px;
}
.nav__burger span {
  width: 26px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.35s var(--ease), opacity 0.25s var(--ease);
}
.nav__burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger.open span:nth-child(2) { opacity: 0; }
.nav__burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 120px clamp(18px, 6vw, 90px) 80px;
  max-width: var(--max);
  margin: 0 auto;
}
.hero__inner { max-width: 760px; }

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  color: var(--blue-2);
  background: rgba(79, 140, 255, 0.08);
  border: 1px solid var(--card-brd);
  padding: 7px 15px;
  border-radius: 999px;
  margin-bottom: 26px;
}
.status-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 0 rgba(103, 232, 255, 0.7);
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(103, 232, 255, 0.6); }
  70%  { box-shadow: 0 0 0 10px rgba(103, 232, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(103, 232, 255, 0); }
}

.hero__eyebrow {
  font-family: var(--mono);
  color: var(--faint);
  letter-spacing: 1px;
  font-size: 15px;
  margin-bottom: 10px;
}
.hero__eyebrow .mono { color: var(--blue); }

.hero__title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(46px, 9vw, 104px);
  line-height: 0.98;
  letter-spacing: -2px;
  margin-bottom: 18px;
}
.grad-text {
  background: linear-gradient(100deg, #ffffff 10%, var(--blue-2) 55%, var(--violet) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__role {
  font-family: var(--mono);
  font-size: clamp(16px, 2.4vw, 22px);
  color: var(--cyan);
  min-height: 1.6em;
  margin-bottom: 22px;
}
.caret { animation: blink 1s steps(1) infinite; color: var(--blue); }
@keyframes blink { 50% { opacity: 0; } }

.hero__sub {
  font-size: clamp(16px, 2vw, 19px);
  color: var(--muted);
  max-width: 620px;
  margin-bottom: 36px;
}
.hero__sub strong { color: var(--ink); font-weight: 600; }

.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 38px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 500;
  padding: 13px 26px;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s var(--ease);
  will-change: transform;
}
.btn--primary {
  background: linear-gradient(100deg, var(--blue), var(--violet));
  color: #fff;
  box-shadow: 0 10px 30px -8px rgba(79, 140, 255, 0.6);
}
.btn--primary:hover { box-shadow: 0 14px 40px -6px rgba(123, 107, 255, 0.7); }
.btn--ghost {
  border: 1px solid var(--card-brd);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.02);
}
.btn--ghost:hover { background: rgba(79, 140, 255, 0.1); }

.hero__socials { display: flex; gap: 20px; font-size: 21px; }
.hero__socials a, .contact__socials a {
  color: var(--faint);
  transition: color 0.3s var(--ease), transform 0.3s var(--ease);
}
.hero__socials a:hover, .contact__socials a:hover {
  color: var(--blue-2);
  transform: translateY(-4px);
}

.scroll-hint {
  position: absolute;
  bottom: 28px; left: 50%;
  transform: translateX(-50%);
  width: 24px; height: 40px;
  border: 2px solid var(--faint);
  border-radius: 14px;
}
.scroll-hint span {
  position: absolute;
  top: 8px; left: 50%;
  width: 4px; height: 8px;
  margin-left: -2px;
  background: var(--blue-2);
  border-radius: 2px;
  animation: scroll-dot 1.8s infinite;
}
@keyframes scroll-dot {
  0% { opacity: 0; transform: translateY(0); }
  40% { opacity: 1; }
  80%, 100% { opacity: 0; transform: translateY(14px); }
}

/* ============================================================
   SECTIONS
   ============================================================ */
.section {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(70px, 12vh, 130px) clamp(18px, 6vw, 90px);
}
.section__head {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 54px;
}
.section__index {
  font-family: var(--mono);
  color: var(--blue);
  font-size: 16px;
}
.section__title {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(30px, 5vw, 46px);
  letter-spacing: -1px;
}
.section__title::after {
  content: '';
  display: inline-block;
  width: clamp(40px, 14vw, 220px);
  height: 1px;
  margin-left: 18px;
  vertical-align: middle;
  background: linear-gradient(90deg, var(--line), transparent);
}

/* ---------- About ---------- */
.about {
  display: grid;
  grid-template-columns: 0.85fr 1.3fr;
  gap: clamp(30px, 5vw, 64px);
  align-items: start;
}
.about__media { position: relative; }
/* soft glow behind the framed portrait */
.about__media::before {
  content: '';
  position: absolute;
  inset: -10% -14%;
  z-index: 0;
  background: radial-gradient(60% 60% at 50% 45%, rgba(79, 140, 255, 0.30), transparent 70%);
  filter: blur(10px);
}
.about__photo-wrap {
  position: relative;
  z-index: 1;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--card-brd);
  box-shadow: 0 30px 70px -32px rgba(79, 140, 255, 0.55);
}
.about__photo-wrap img {
  width: 100%;
  display: block;
  filter: grayscale(0.15) contrast(1.06);
  transition: filter 0.5s var(--ease), transform 0.6s var(--ease);
}
.about__photo-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 58%, rgba(6, 10, 22, 0.55));
}
.about__photo-wrap:hover img { filter: grayscale(0) contrast(1.1); }
.about__body p { color: var(--muted); margin-bottom: 18px; font-size: 17px; }
.about__body strong { color: var(--ink); font-weight: 600; }

.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 28px 0 32px;
}
.stat {
  flex: 1;
  min-width: 130px;
  background: var(--card);
  border: 1px solid var(--card-brd);
  border-radius: 14px;
  padding: 18px;
  backdrop-filter: blur(6px);
}
.stat__num {
  display: block;
  font-family: var(--display);
  font-weight: 700;
  font-size: 30px;
  background: linear-gradient(100deg, var(--cyan), var(--blue-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat__label { font-size: 13px; color: var(--faint); }

.about__subhead {
  font-family: var(--display);
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--faint);
  margin-bottom: 14px;
}
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--blue-2);
  padding: 7px 14px;
  border: 1px solid var(--card-brd);
  border-radius: 999px;
  background: rgba(79, 140, 255, 0.05);
  transition: background 0.3s var(--ease), transform 0.3s var(--ease);
}
.chip:hover { background: rgba(79, 140, 255, 0.16); transform: translateY(-3px); }

/* ---------- Timeline ---------- */
.timeline { list-style: none; position: relative; padding-left: 8px; }
.timeline::before {
  content: '';
  position: absolute;
  left: 7px; top: 6px; bottom: 6px;
  width: 2px;
  background: linear-gradient(180deg, var(--blue), var(--violet), transparent);
}
.timeline__item { position: relative; padding-left: 38px; margin-bottom: 26px; }
.timeline__dot {
  position: absolute;
  left: 0; top: 8px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--blue);
  box-shadow: 0 0 14px rgba(79, 140, 255, 0.7);
}
.timeline__card {
  background: var(--card);
  border: 1px solid var(--card-brd);
  border-radius: 16px;
  padding: 22px 24px;
  backdrop-filter: blur(8px);
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.timeline__card:hover {
  border-color: rgba(122, 167, 255, 0.4);
  box-shadow: 0 18px 50px -20px rgba(79, 140, 255, 0.5);
}
.timeline__date {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--cyan);
  letter-spacing: 0.5px;
}
.timeline__card h3 {
  font-family: var(--display);
  font-size: 20px;
  margin: 6px 0 2px;
}
.timeline__org { font-size: 14px; color: var(--blue-2); }
.timeline__card p { color: var(--muted); font-size: 15px; margin-top: 10px; }

/* cards with an org emblem on the left (education + experience) */
.timeline__card--logo { display: flex; align-items: center; gap: 22px; }
.timeline__main { flex: 1; min-width: 0; }
.timeline__logo {
  flex-shrink: 0;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  overflow: hidden;
  display: grid;
  place-items: center;
  position: relative;
  border: 1px solid rgba(122, 167, 255, 0.3);
  box-shadow: 0 0 0 6px rgba(79, 140, 255, 0.06), 0 0 28px rgba(79, 140, 255, 0.25);
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
.timeline__card--logo:hover .timeline__logo {
  transform: scale(1.06);
  box-shadow: 0 0 0 6px rgba(79, 140, 255, 0.1), 0 0 36px rgba(79, 140, 255, 0.45);
}
.timeline__logo img { width: 100%; height: 100%; }

/* coin backgrounds */
.timeline__logo--dark-coin  { background: radial-gradient(circle at 50% 40%, #14182b, #000); }
.timeline__logo--light-coin { background: radial-gradient(circle at 50% 35%, #ffffff, #eef2fb); }

/* full-bleed black-square crests (Waterloo, Huawei): fill + feathered edges */
.timeline__logo--bleed img {
  object-fit: cover;
  transform: scale(1.04);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 70%, transparent 96%);
  mask-image: radial-gradient(circle at 50% 50%, #000 70%, transparent 96%);
}
/* transparent / contained logos */
.timeline__logo--contain img { object-fit: contain; padding: 9px; }
.timeline__logo--uoft img { padding: 5px; transform: scale(1.12); }
.timeline__logo--ford img { padding: 8px; }
.timeline__logo--sigmaxl img { padding: 7px; }
/* Huawei: show the whole black square (flower + wordmark); black corners blend into the dark coin */
.timeline__logo--huawei img {
  object-fit: contain;
  transform: none;
  padding: 1px;
  -webkit-mask-image: none;
  mask-image: none;
}

/* generic fallback emblem (no logo provided) */
.timeline__logo--generic i { font-size: 26px; color: var(--cyan); }

@media (max-width: 480px) {
  .timeline__card--logo { gap: 16px; }
  .timeline__logo { width: 66px; height: 66px; }
}

/* ---------- Publication ---------- */
.pub {
  margin-top: 30px;
  padding: 26px 28px;
  border-radius: 18px;
  border: 1px solid var(--card-brd);
  background:
    radial-gradient(120% 160% at 0% 0%, rgba(123, 107, 255, 0.14), transparent 55%),
    var(--card);
  backdrop-filter: blur(8px);
}
.pub__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.5px;
  color: var(--cyan);
  text-transform: uppercase;
}
.pub__title {
  font-family: var(--display);
  font-size: clamp(18px, 2.6vw, 23px);
  margin: 12px 0 8px;
  line-height: 1.25;
}
.pub__link {
  color: inherit;
  transition: color 0.3s var(--ease);
}
.pub__link i {
  font-size: 0.62em;
  margin-left: 6px;
  color: var(--blue-2);
  transition: transform 0.3s var(--ease);
  display: inline-block;
}
.pub__link:hover { color: var(--cyan); }
.pub__link:hover i { transform: translate(2px, -2px); color: var(--cyan); }
.pub__authors { color: var(--muted); font-size: 15px; }
.pub__authors strong { color: var(--blue-2); }
.pub__venue { color: var(--faint); font-size: 14px; margin-top: 4px; }
.pub__hl { color: var(--cyan); }

/* ---------- Projects ---------- */
.projects {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 26px;
}
.project {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--card-brd);
  backdrop-filter: blur(8px);
  transition: transform 0.45s var(--ease), border-color 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
.project:hover {
  border-color: rgba(122, 167, 255, 0.45);
  box-shadow: 0 26px 60px -24px rgba(79, 140, 255, 0.55);
}
.project__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #070b18 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Cpath d='M0 0h40v40H0z' fill='none'/%3E%3C/svg%3E");
  display: grid;
  place-items: center;
}
.project__media::after {
  content: 'loading demo…';
  position: absolute;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--faint);
  opacity: 0.6;
  animation: blink 1.4s infinite;
}
.project__media.loaded::after { display: none; }
.project__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0;
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.project__media.loaded img { opacity: 1; }
.project:hover .project__media img { transform: scale(1.05); }

/* badge media (Bochord — no GIF) */
.project__media--badge {
  flex-direction: column;
  gap: 16px;
  background:
    radial-gradient(80% 90% at 50% 40%, rgba(79, 140, 255, 0.22), transparent 70%),
    linear-gradient(160deg, #0a1124, #060a16);
}
.project__media--badge::after { content: none; }
.project__media--badge i {
  font-size: 64px;
  background: linear-gradient(120deg, var(--cyan), var(--blue-2), var(--violet));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 18px rgba(79, 140, 255, 0.5));
}
.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--ink);
  padding: 7px 16px;
  border-radius: 999px;
  border: 1px solid var(--card-brd);
  background: rgba(8, 12, 26, 0.6);
}
.badge-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #3ddc84;
  box-shadow: 0 0 0 0 rgba(61, 220, 132, 0.7);
  animation: pulse 2.4s infinite;
}
.project--feature { border-color: rgba(122, 167, 255, 0.3); }
.project__body { padding: 22px 24px 26px; }
.project__tag {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--cyan);
  letter-spacing: 0.4px;
}
.project__body h3 {
  font-family: var(--display);
  font-size: 22px;
  margin: 8px 0 8px;
}
.project__body p { color: var(--muted); font-size: 15px; }

/* ---------- Awards (flip cards) ---------- */
.awards__hint {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--faint);
  margin: -34px 0 26px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.awards__hint i { color: var(--blue-2); }

.awards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 18px;
}
.award {
  /* reset button */
  appearance: none;
  border: 0;
  background: none;
  padding: 0;
  margin: 0;
  font: inherit;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  height: 138px;
  perspective: 1300px;
}
.award__inner {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.7s var(--ease);
}
.award.flipped .award__inner { transform: rotateY(180deg); }

.award__face {
  position: absolute;
  inset: 0;
  display: flex;
  border-radius: 16px;
  background: var(--card);
  border: 1px solid var(--card-brd);
  backdrop-filter: blur(8px);
  padding: 20px 22px;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transition: border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.award:hover .award__face {
  border-color: rgba(122, 167, 255, 0.4);
  box-shadow: 0 18px 50px -22px rgba(79, 140, 255, 0.5);
}

.award__front { align-items: center; gap: 18px; }
.award__front > i:first-child {
  flex-shrink: 0;
  font-size: 22px;
  width: 48px; height: 48px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: var(--cyan);
  background: rgba(79, 140, 255, 0.1);
  border: 1px solid var(--card-brd);
}
.award__body { flex: 1; }
.award__body h3 {
  font-family: var(--display);
  font-size: 16.5px;
  font-weight: 600;
  line-height: 1.3;
}
.award__years {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--blue-2);
}
.award__flip-ico {
  position: absolute;
  top: 16px; right: 16px;
  font-size: 13px;
  color: var(--faint);
  transition: color 0.3s var(--ease), transform 0.5s var(--ease);
}
.award:hover .award__flip-ico { color: var(--cyan); transform: rotate(180deg); }

.award__back {
  transform: rotateY(180deg);
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(123, 107, 255, 0.16), transparent 55%),
    var(--card);
}
.award__amount {
  font-family: var(--display);
  font-weight: 700;
  font-size: 26px;
  background: linear-gradient(100deg, var(--cyan), var(--blue-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.award__amount small { font-size: 14px; -webkit-text-fill-color: var(--faint); color: var(--faint); }
.award__detail { font-size: 13.5px; color: var(--muted); line-height: 1.5; }

/* ---------- Contact ---------- */
.section--contact { text-align: center; padding-bottom: 60px; }
.contact { max-width: 640px; margin: 0 auto; }
.contact__eyebrow {
  font-family: var(--mono);
  color: var(--blue);
  letter-spacing: 1px;
  margin-bottom: 12px;
}
.contact__title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(34px, 7vw, 64px);
  letter-spacing: -1.5px;
  background: linear-gradient(100deg, #fff, var(--blue-2), var(--violet));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: 16px;
}
.contact__sub { color: var(--muted); margin-bottom: 30px; font-size: 17px; }
.contact .btn { margin: 0 auto; }
.contact__socials {
  display: flex;
  justify-content: center;
  gap: 24px;
  font-size: 24px;
  margin-top: 34px;
}

.footer {
  max-width: var(--max);
  margin: 60px auto 0;
  padding: 26px clamp(18px, 6vw, 90px);
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 13px;
  color: var(--faint);
}
.footer__made { font-family: var(--mono); }

/* ============================================================
   REVEAL ANIMATIONS
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  transition-delay: calc(var(--d, 0) * 90ms);
}
.reveal.in { opacity: 1; transform: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 860px) {
  .nav__links {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(76vw, 320px);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 28px;
    padding: 40px;
    background: rgba(7, 11, 24, 0.92);
    backdrop-filter: blur(18px);
    border-left: 1px solid var(--line);
    transform: translateX(105%);
    transition: transform 0.45s var(--ease);
  }
  .nav__links.open { transform: translateX(0); }
  .nav__link { font-size: 20px; }
  .nav__burger { display: flex; z-index: 60; }

  .about { grid-template-columns: 1fr; }
  .about__media { max-width: 280px; }
}

@media (max-width: 560px) {
  .hero { padding-top: 110px; }
  .stats { gap: 10px; }
  .stat { min-width: calc(50% - 6px); }
  .footer { flex-direction: column; align-items: center; text-align: center; }
  .section__title::after { width: 30px; }
}

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