/* ==========================================================
   Student Profile — main stylesheet
   Palette: pool teal, coral, aqua-white
   Type: Sora (headings) + Plus Jakarta Sans (body)
   ========================================================== */
:root {
  --bg: #F4FAFA;
  --bg-alt: #E6F2F2;
  --surface: #FFFFFF;
  --ink: #0D1F24;
  --muted: #4D6369;
  --line: #D3E4E5;
  --accent: #0E7C86;
  --gold: #D2492F;
  --gold-soft: #FF8A68;
  --rust: #0B6B74;
  --band: #072A31;
  --band-2: #0C4652;
  --band-ink: #F1F5F9;
  --band-muted: #A3C4C8;
  --f-display: "Sora", "Segoe UI", system-ui, sans-serif;
  --f-body: "Plus Jakarta Sans", system-ui, "Segoe UI", Arial, sans-serif;
  --radius: 20px;
  --header-h: 72px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--f-body); font-size: 16px; line-height: 1.7;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--gold-soft); outline-offset: 3px;
}
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 500; line-height: 1.08; margin: 0; text-wrap: balance; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 480px) { .container { padding: 0 18px; } }

.eyebrow {
  display: inline-flex; align-items: center; gap: .75rem;
  font-size: .72rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--gold);
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--f-body); font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  padding: 1rem 1.7rem; border-radius: 999px; border: 1px solid transparent;
  text-decoration: none; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease, background .2s, color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-gold { background: linear-gradient(120deg, #0E7C86, #FF8A68); color: #fff; box-shadow: 0 12px 30px -14px rgba(255,138,104,.7); }
.btn-ghost { border-color: rgba(241,245,249,.4); color: var(--band-ink); background: transparent; }
.btn-ghost:hover { background: rgba(241,245,249,.08); }
.btn-outline { border-color: var(--accent); color: var(--accent); background: transparent; }
.btn-outline:hover { background: var(--accent); color: #fff; }

/* ---------- Announcement + Header ---------- */
.announce {
  background: var(--accent); color: var(--band-ink);
  font-size: .78rem; font-weight: 600; letter-spacing: .05em; text-align: center;
  padding: 9px 16px; display: flex; align-items: center; justify-content: center; gap: .6rem;
}
.announce i { width: 6px; height: 6px; border-radius: 50%; background: var(--gold-soft); flex: none; }

.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: rgba(255,255,255,.94); backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .25s, box-shadow .25s;
}
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px -18px rgba(7,42,49,.35); }
.site-header .container { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }

.brand { display: inline-flex; align-items: center; gap: .75rem; text-decoration: none; color: var(--ink); }
.brand-mark {
  width: 42px; height: 42px; border-radius: 50%;
  background: linear-gradient(135deg, #0E7C86, #FF8A68); color: #fff;
  display: grid; place-items: center; font-family: var(--f-display); font-size: 1.1rem; font-weight: 600; letter-spacing: .03em;
}
.brand-text { display: grid; line-height: 1.15; }
.brand-text strong { font-family: var(--f-display); font-size: 1.35rem; font-weight: 600; }
.brand-text small { font-size: .68rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

.main-nav ul { display: flex; align-items: center; gap: 1.9rem; }
.main-nav a {
  position: relative; text-decoration: none; color: var(--ink);
  font-size: .82rem; font-weight: 600; letter-spacing: .04em; padding: .4rem 0;
}
.main-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
  background: var(--gold-soft); transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.main-nav a:hover::after, .main-nav a.active::after { transform: scaleX(1); }
.main-nav a.active { color: var(--accent); }
.header-cta { padding: .75rem 1.3rem; font-size: .74rem; }

.menu-toggle {
  display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--surface); cursor: pointer; align-items: center; justify-content: center; flex-direction: column; gap: 5px;
}
.menu-toggle span { width: 18px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s, opacity .25s; }
.menu-open .menu-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 980px) {
  .menu-toggle { display: inline-flex; }
  .header-cta { display: none; }
  .main-nav {
    position: fixed; inset: var(--header-h) 0 auto 0; background: var(--bg);
    border-bottom: 1px solid var(--line); box-shadow: 0 20px 40px -20px rgba(7,42,49,.35);
    max-height: 0; overflow: hidden; transition: max-height .35s ease;
  }
  .menu-open .main-nav { max-height: 80vh; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: .5rem 24px 1.25rem; }
  .main-nav a { display: block; padding: .95rem 0; font-size: 1rem; border-bottom: 1px solid var(--line); }
  .main-nav a::after { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: var(--band-ink);
  background:
    radial-gradient(900px 420px at 85% 10%, rgba(255,138,104,.16), transparent 60%),
    radial-gradient(700px 500px at 0% 100%, var(--band-2), transparent 70%),
    var(--band);
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: repeating-linear-gradient(135deg, rgba(255,255,255,.02) 0 2px, transparent 2px 6px);
}
.hero .container {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.25fr .9fr; gap: clamp(2rem, 6vw, 5rem); align-items: center;
  padding-top: clamp(3.5rem, 8vw, 6.5rem); padding-bottom: clamp(3.5rem, 8vw, 6.5rem);
}
.hero .eyebrow { color: var(--gold-soft); }
.hero h1 { font-size: clamp(3.2rem, 9vw, 6.8rem); letter-spacing: -.02em; line-height: .95; margin-top: 1.4rem; }
.hero h1 em { display: block; font-style: italic; font-weight: 400; font-size: .5em; color: var(--gold-soft); margin-top: .7rem; line-height: 1.15; letter-spacing: 0; }
.hero-lede { margin-top: 1.6rem; max-width: 46ch; color: var(--band-muted); font-size: 1.05rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 2.2rem; }
.hero-social { display: flex; gap: .6rem; margin-top: 2.2rem; }
.hero-social a {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(241,245,249,.25);
  display: grid; place-items: center; color: var(--band-ink); transition: background .2s, border-color .2s;
}
.hero-social a:hover { background: rgba(241,245,249,.1); border-color: var(--gold-soft); }
.hero-social svg { width: 17px; height: 17px; fill: currentColor; }

.portrait { position: relative; justify-self: center; width: min(100%, 370px); }
.portrait-frame {
  aspect-ratio: 4 / 5; border-radius: 999px 999px 22px 22px; padding: 10px;
  border: 1px solid rgba(255,138,104,.55); animation: rise .9s cubic-bezier(.2,.8,.2,1) both;
}
.portrait-inner {
  position: relative; width: 100%; height: 100%; border-radius: inherit; overflow: hidden;
  background: radial-gradient(120% 80% at 50% 0%, #1B7480, #072A31 70%);
  display: grid; place-items: center;
}
.portrait-inner .monogram {
  font-family: var(--f-display); font-style: italic; font-size: clamp(5rem, 13vw, 8rem);
  color: #F1F5F9; letter-spacing: -.04em; line-height: 1; text-align: center;
}
.portrait-inner .monogram small {
  display: block; font-family: var(--f-body); font-style: normal; font-size: .68rem; letter-spacing: .3em;
  text-transform: uppercase; color: var(--gold-soft); margin-top: .6rem;
}
.portrait-inner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.seal {
  position: absolute; left: -18px; bottom: 36px; width: 114px; height: 114px; border-radius: 50%;
  background: var(--bg); color: var(--ink); border: 1px solid var(--gold-soft);
  display: grid; place-items: center; text-align: center; box-shadow: 0 18px 40px -16px rgba(0,0,0,.55);
  animation: rise 1.1s .15s cubic-bezier(.2,.8,.2,1) both;
}
.seal::before { content: ""; position: absolute; inset: 6px; border-radius: 50%; border: 1px dashed rgba(210,73,47,.6); }
.seal b { display: block; font-family: var(--f-display); font-size: 2rem; font-weight: 600; line-height: 1; color: var(--gold); }
.seal span { font-size: .6rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
@keyframes rise { from { transform: translateY(18px); opacity: .3; } to { transform: none; opacity: 1; } }

@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; }
  .portrait { width: min(100%, 300px); }
  .seal { left: auto; right: -6px; width: 98px; height: 98px; }
  .seal b { font-size: 1.6rem; }
}

/* ---------- Stats strip ---------- */
.stats { background: var(--surface); border-bottom: 1px solid var(--line); }
.stats .container { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 2rem 1.4rem; border-left: 1px solid var(--line); display: grid; gap: .3rem; }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat b { font-family: var(--f-display); font-size: clamp(2.1rem, 4.5vw, 3rem); font-weight: 500; line-height: 1; font-variant-numeric: lining-nums tabular-nums; }
.stat b small { font-size: .45em; color: var(--muted); }
.stat span { font-size: .7rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 760px) {
  .stats .container { grid-template-columns: 1fr 1fr; }
  .stat { padding: 1.5rem 1rem; }
  .stat:nth-child(odd) { border-left: 0; padding-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* ---------- Sections ---------- */
.section { padding: clamp(4.5rem, 9vw, 7rem) 0; }
.section-alt { background: var(--bg-alt); }
.section-head { display: grid; gap: 1rem; margin-bottom: clamp(2.2rem, 5vw, 3.5rem); max-width: 720px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; justify-items: center; }
.section-head h2 { font-size: clamp(2.4rem, 5.5vw, 3.8rem); letter-spacing: -.015em; }
.section-head h2 em { color: var(--gold); font-weight: 400; }
.section-head p { color: var(--muted); font-size: 1.02rem; }

/* About */
.about-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.pull {
  font-family: var(--f-display); font-style: italic; font-size: clamp(1.7rem, 3.4vw, 2.4rem); line-height: 1.25;
  border-top: 1px solid var(--gold); padding-top: 1.5rem;
}
.pull::before { content: "\201C"; display: block; font-size: 3.6rem; line-height: .6; color: var(--gold); margin-bottom: .5rem; }
.about-text { display: grid; gap: 1.1rem; color: var(--muted); }
.about-text p:first-child { color: var(--ink); font-size: 1.08rem; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem 2rem; margin-top: 1.8rem; padding-top: 1.6rem; border-top: 1px solid var(--line); }
.facts dt { font-size: .66rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: .2rem 0 0; font-weight: 600; }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .facts { grid-template-columns: 1fr; } }

/* Education */
.edu-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(2rem, 5vw, 3.5rem); align-items: start; }
.edu-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.4rem, 3vw, 2.2rem); }
.edu-top { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-bottom: 1.2rem; border-bottom: 1px solid var(--line); margin-bottom: .5rem; }
.edu-top h3 { font-size: 1.9rem; }
.edu-top p { color: var(--muted); font-size: .92rem; }
.edu-badge { align-self: start; font-size: .7rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; padding: .45rem .85rem; border-radius: 999px; background: rgba(255,138,104,.15); color: var(--gold); white-space: nowrap; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 480px; font-size: .92rem; }
th, td { text-align: left; padding: .9rem .5rem; border-bottom: 1px solid var(--line); }
tbody tr:last-child td { border-bottom: 0; }
th { font-size: .64rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
td.code { font-weight: 800; letter-spacing: .04em; color: var(--accent); white-space: nowrap; font-size: .8rem; }
td.course { font-family: var(--f-display); font-size: 1.2rem; }
.num { text-align: right; font-variant-numeric: tabular-nums; }
td.grade { font-family: var(--f-display); font-size: 1.3rem; font-weight: 600; color: var(--gold); }
td.grade.ip { font-family: var(--f-body); font-size: .66rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.progress-box { margin-top: 1.4rem; }
.progress-row { display: flex; justify-content: space-between; font-size: .78rem; font-weight: 700; color: var(--muted); }
.bar { height: 8px; border-radius: 99px; background: var(--line); overflow: hidden; margin-top: .45rem; }
.bar i { display: block; height: 100%; width: 65.6%; border-radius: inherit; background: linear-gradient(90deg, #0E7C86, #FF8A68); }
.school-list { display: grid; gap: 1rem; }
.school { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem 1.5rem; }
.school .yr { font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--rust); }
.school h4 { font-size: 1.45rem; margin-top: .3rem; }
.school p { color: var(--muted); font-size: .9rem; margin-top: .25rem; }
@media (max-width: 900px) { .edu-grid { grid-template-columns: 1fr; } }

/* Projects */
.projects-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 1.3rem; }
.project {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.7rem;
  display: flex; flex-direction: column; gap: .75rem; transition: transform .25s, border-color .25s, box-shadow .25s;
}
.project:hover { transform: translateY(-4px); border-color: var(--gold); box-shadow: 0 24px 44px -30px rgba(7,42,49,.5); }
.project .tagline { font-size: .68rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--rust); }
.project h3 { font-size: 1.75rem; }
.project p { color: var(--muted); font-size: .95rem; }
.project.featured {
  grid-row: span 2; background: var(--band); color: var(--band-ink); border-color: var(--band);
  padding: clamp(1.6rem, 4vw, 2.6rem); position: relative; overflow: hidden; min-height: 440px;
}
.project.featured::before {
  content: ""; position: absolute; right: -90px; top: -90px; width: 330px; height: 330px; border-radius: 50%;
  background: repeating-conic-gradient(rgba(255,138,104,.4) 0 4deg, transparent 4deg 15deg);
  -webkit-mask: radial-gradient(circle, transparent 52%, #000 53%, #000 70%, transparent 71%);
          mask: radial-gradient(circle, transparent 52%, #000 53%, #000 70%, transparent 71%);
}
.project.featured > * { position: relative; }
.project.featured .tagline { color: var(--gold-soft); }
.project.featured h3 { font-size: clamp(2rem, 4vw, 2.8rem); max-width: 14ch; }
.project.featured p { color: var(--band-muted); max-width: 48ch; }
.figures { display: flex; flex-wrap: wrap; gap: 2rem; margin-top: auto; padding-top: 1.3rem; border-top: 1px solid rgba(241,245,249,.18); }
.figures b { display: block; font-family: var(--f-display); font-size: 2.2rem; font-weight: 500; line-height: 1; color: var(--gold-soft); }
.figures span { font-size: .66rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--band-muted); }
.tags { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: auto; padding-top: .4rem; }
.tag { font-size: .7rem; font-weight: 600; padding: .25rem .7rem; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.project.featured .tag { border-color: rgba(241,245,249,.25); color: var(--band-ink); }
@media (max-width: 860px) { .projects-grid { grid-template-columns: 1fr; } .project.featured { grid-row: auto; min-height: 0; } }

/* Experience */
.timeline { border-top: 1px solid var(--line); }
.timeline li { display: grid; grid-template-columns: 200px 1fr auto; gap: 2rem; padding: 1.9rem 0; border-bottom: 1px solid var(--line); align-items: start; }
.timeline .when { font-size: .76rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); padding-top: .55rem; }
.timeline h3 { font-size: clamp(1.6rem, 3vw, 2.05rem); }
.timeline .org { display: block; font-size: .85rem; font-weight: 600; color: var(--accent); margin-top: .2rem; }
.timeline p { color: var(--muted); margin-top: .6rem; max-width: 62ch; }
.timeline .type { font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: .35rem .75rem; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); white-space: nowrap; margin-top: .45rem; }
@media (max-width: 760px) { .timeline li { grid-template-columns: 1fr; gap: .35rem; } .timeline .type { justify-self: start; } }

/* Skills */
.skills-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; }
.skill-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem; }
.skill-card .icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: rgba(14,124,134,.1); color: var(--accent); margin-bottom: 1.1rem; }
.skill-card .icon svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.skill-card h3 { font-size: 1.65rem; margin-bottom: 1rem; }
.meter { display: grid; gap: .85rem; }
.meter li { display: grid; gap: .35rem; font-size: .9rem; }
.meter .row { display: flex; justify-content: space-between; gap: 1rem; }
.meter .row span:last-child { font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.meter .track { height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; }
.meter .track i { display: block; height: 100%; background: var(--gold-soft); border-radius: inherit; }
@media (max-width: 900px) { .skills-grid { grid-template-columns: 1fr; } }

/* Achievements */
.awards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.3rem; }
.award { text-align: center; padding: 2rem 1.3rem; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); display: grid; justify-items: center; gap: .6rem; }
.award .medal { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--gold-soft); color: var(--gold); font-family: var(--f-display); font-size: 1.5rem; font-weight: 600; position: relative; }
.award .medal::before { content: ""; position: absolute; inset: 5px; border-radius: 50%; border: 1px dashed rgba(210,73,47,.5); }
.award h3 { font-size: 1.4rem; }
.award .yr { font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--rust); }
.award p { color: var(--muted); font-size: .88rem; }
@media (max-width: 960px) { .awards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .awards { grid-template-columns: 1fr; } }

/* Activities band */
.band { background: var(--band); color: var(--band-ink); }
.band .section-head h2 em { color: var(--gold-soft); }
.band .section-head p { color: var(--band-muted); }
.band .eyebrow { color: var(--gold-soft); }
.activities { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; }
.activity { padding: 1.8rem; border-radius: var(--radius); border: 1px solid rgba(241,245,249,.14); background: rgba(255,255,255,.03); }
.activity .role { font-size: .7rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-soft); }
.activity h3 { font-size: 1.6rem; margin-top: .5rem; }
.activity p { color: var(--band-muted); font-size: .92rem; margin-top: .6rem; }
@media (max-width: 900px) { .activities { grid-template-columns: 1fr; } }

/* Contact */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 6vw, 4.5rem); align-items: start; }
.contact-info { display: grid; gap: 1.2rem; }
.info-item { display: flex; gap: 1rem; align-items: flex-start; padding: 1.2rem 1.3rem; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.info-item .icon { width: 42px; height: 42px; border-radius: 12px; flex: none; display: grid; place-items: center; background: rgba(255,138,104,.15); color: var(--gold); }
.info-item .icon svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.info-item small { display: block; font-size: .66rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.info-item a, .info-item span { font-weight: 600; color: var(--ink); text-decoration: none; overflow-wrap: anywhere; }
.availability { display: inline-flex; align-items: center; gap: .55rem; font-size: .82rem; font-weight: 700; color: #4C7A3B; }
.availability::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #5C9A3B; box-shadow: 0 0 0 4px rgba(92,154,59,.18); }

.contact-form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.5rem, 4vw, 2.5rem); display: grid; gap: 1.1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.field { display: grid; gap: .4rem; }
.field label { font-size: .7rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.field input, .field textarea, .field select {
  width: 100%; font: inherit; font-size: .95rem; color: var(--ink); background: var(--bg);
  border: 1px solid var(--line); border-radius: 12px; padding: .85rem 1rem; transition: border-color .2s, background .2s;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--accent); background: var(--surface); outline: none; }
.field.invalid input, .field.invalid textarea { border-color: var(--rust); }
.field .err { font-size: .78rem; color: var(--rust); min-height: 0; }
.hp { position: absolute; left: -9999px; }
.form-status { font-size: .9rem; font-weight: 600; padding: .9rem 1rem; border-radius: 12px; }
.form-status.ok { background: rgba(92,154,59,.12); color: #3F6B2E; }
.form-status.bad { background: rgba(193,80,46,.1); color: var(--rust); }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--band); color: var(--band-muted); padding-top: 4.5rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 2.5rem; padding-bottom: 3.5rem; }
.site-footer .brand { color: var(--band-ink); }
.site-footer .brand-text small { color: var(--band-muted); }
.footer-about { margin-top: 1.1rem; font-size: .92rem; max-width: 34ch; }
.site-footer h4 { font-family: var(--f-body); font-size: .72rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-soft); margin-bottom: 1.1rem; }
.site-footer ul { display: grid; gap: .6rem; font-size: .92rem; }
.site-footer a { color: var(--band-muted); text-decoration: none; transition: color .2s; }
.site-footer a:hover { color: var(--band-ink); }
.footer-bottom { border-top: 1px solid rgba(241,245,249,.12); padding: 1.4rem 0 1.8rem; font-size: .8rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

/* Back to top */
.to-top {
  position: fixed; right: 20px; bottom: 20px; z-index: 40; width: 46px; height: 46px; border-radius: 50%;
  border: 0; cursor: pointer; background: linear-gradient(135deg, #0E7C86, #FF8A68); color: #fff;
  display: grid; place-items: center; box-shadow: 0 12px 26px -12px rgba(7,42,49,.6);
  opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .25s, transform .25s;
}
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2.2; }

/* Reveal on scroll (content is visible by default; JS adds the animation) */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }

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

/* ---------- Additions for CV content ---------- */
.pull.plain::before { display: none; }
.pull.plain { font-style: normal; }
.pull.plain em { color: var(--gold); }
.chips { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: 1rem; }
.chip { font-size: .74rem; font-weight: 600; padding: .3rem .75rem; border-radius: 999px; background: rgba(14,124,134,.08); color: var(--accent); }
.result { font-family: var(--f-display); font-size: 1.35rem; font-weight: 600; color: var(--gold); white-space: nowrap; }
.edu-note { margin-top: 1.4rem; padding: 1rem 1.2rem; border-radius: 14px; background: rgba(255,138,104,.12); font-size: .92rem; }
.edu-note b { color: var(--gold); }
.list-plain { display: grid; gap: .55rem; font-size: .93rem; }
.list-plain li { display: flex; gap: .65rem; align-items: baseline; }
.list-plain li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--gold-soft); flex: none; transform: translateY(-2px); }
.skill-card p.lead { color: var(--muted); font-size: .92rem; margin-bottom: 1rem; }

.honors-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 3rem; border-top: 1px solid var(--gold); }
.honor { display: grid; grid-template-columns: 56px 1fr; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.honor .y { font-size: .8rem; font-weight: 800; color: var(--gold); font-variant-numeric: tabular-nums; }
.honor p { font-size: .95rem; }
.honor p b { font-weight: 700; }
@media (max-width: 860px) { .honors-grid { grid-template-columns: 1fr; } }

.swim-highlights { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; margin-bottom: 2.5rem; }
.swim-card { padding: 1.6rem; border-radius: var(--radius); border: 1px solid rgba(241,245,249,.14); background: rgba(255,255,255,.04); display: grid; gap: .45rem; align-content: start; }
.swim-card b { font-family: var(--f-display); font-size: 2.6rem; font-weight: 500; line-height: 1; color: var(--gold-soft); }
.swim-card h3 { font-size: 1.35rem; }
.swim-card span { font-size: .7rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--band-muted); }
@media (max-width: 960px) { .swim-highlights { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .swim-highlights { grid-template-columns: 1fr; } }

details.more { border-top: 1px solid rgba(241,245,249,.16); }
details.more summary { cursor: pointer; list-style: none; padding: 1.2rem 0; font-size: .78rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-soft); display: flex; justify-content: space-between; align-items: center; }
details.more summary::-webkit-details-marker { display: none; }
details.more summary::after { content: "+"; font-size: 1.4rem; font-weight: 400; transition: transform .25s; }
details.more[open] summary::after { transform: rotate(45deg); }
.medal-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 3rem; padding-bottom: 1rem; }
.medal-list li { display: grid; grid-template-columns: 56px 1fr; gap: 1rem; padding: .7rem 0; border-bottom: 1px solid rgba(241,245,249,.1); font-size: .9rem; color: var(--band-muted); }
.medal-list li .y { color: var(--gold-soft); font-weight: 800; font-size: .8rem; }
@media (max-width: 760px) { .medal-list { grid-template-columns: 1fr; } }

.wins { margin-top: 2.5rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.4rem, 3vw, 2rem); }
.wins h3 { font-size: 1.7rem; margin-bottom: 1rem; }
.wins ul { display: grid; grid-template-columns: 1fr 1fr; gap: 0 2.5rem; }
.wins li { display: flex; justify-content: space-between; gap: 1rem; padding: .7rem 0; border-bottom: 1px solid var(--line); font-size: .93rem; }
.wins li span:last-child { font-weight: 800; color: var(--gold); font-size: .8rem; }
@media (max-width: 760px) { .wins ul { grid-template-columns: 1fr; } }
.activities.light .activity { background: var(--surface); border-color: var(--line); }
.activities.light .activity h3 { color: var(--ink); }
.activities.light .activity p { color: var(--muted); }
.activities.light .activity .role { color: var(--rust); }

/* ---------- Sora / Plus Jakarta Sans tuning ---------- */
h1, h2, h3, h4 { font-weight: 600; letter-spacing: -.025em; }
.hero h1 { font-size: clamp(2.8rem, 7.5vw, 5.6rem); font-weight: 700; letter-spacing: -.045em; line-height: 1; }
.hero h1 em { font-style: normal; font-weight: 400; font-size: .38em; letter-spacing: -.01em; line-height: 1.3; margin-top: 1rem; }
.section-head h2 { font-size: clamp(2rem, 4.6vw, 3.2rem); letter-spacing: -.035em; }
.section-head h2 em, .pull.plain em { font-style: normal; }
.pull { font-size: clamp(1.35rem, 2.6vw, 1.8rem); font-weight: 500; letter-spacing: -.02em; line-height: 1.4; }
.portrait-inner .monogram { font-style: normal; font-weight: 700; letter-spacing: -.06em; font-size: clamp(4rem, 11vw, 6.5rem); }
.brand-text strong { font-size: 1.1rem; font-weight: 700; letter-spacing: -.02em; }
.brand-mark { font-size: .95rem; font-weight: 700; }
.stat b { font-size: clamp(1.8rem, 3.8vw, 2.5rem); font-weight: 700; letter-spacing: -.03em; }
.result, td.grade { font-size: 1.05rem; font-weight: 700; }
td.course { font-size: 1rem; font-weight: 600; }
.project h3 { font-size: 1.35rem; }
.project.featured h3 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); max-width: 18ch; }
.timeline h3 { font-size: clamp(1.25rem, 2.4vw, 1.55rem); }
.school h4, .award h3, .activity h3, .swim-card h3 { font-size: 1.15rem; }
.swim-card b { font-size: 2rem; font-weight: 700; letter-spacing: -.03em; }
.award .medal { font-size: 1.05rem; font-weight: 700; }
.seal b { font-size: 1.6rem; font-weight: 700; letter-spacing: -.03em; }
.wins h3, .skill-card h3, .edu-top h3 { font-size: 1.35rem; }

/* ---------- Professional polish ---------- */
.hero::after { display: none; }
.hero { background: radial-gradient(1100px 600px at 80% 20%, #0C4652 0%, transparent 60%), #072A31; }
.eyebrow::before { display: none; }
.eyebrow { letter-spacing: .16em; }
.btn { border-radius: 10px; letter-spacing: .02em; text-transform: none; font-size: .95rem; font-weight: 700; padding: .95rem 1.6rem; }
.btn-gold { background: #FF7A55; color: #fff; box-shadow: none; }
.btn-gold:hover { background: #F2643D; }
.header-cta { background: #0E7C86; padding: .7rem 1.25rem; font-size: .88rem; }
.header-cta:hover { background: #0B6B74; }
.btn-ghost { border-color: rgba(241,245,249,.35); }
.brand-mark { background: #0E7C86; border-radius: 10px; }
.main-nav a { font-size: .9rem; letter-spacing: 0; }
.main-nav a.active { color: #0E7C86; }
.main-nav a::after { background: #FF7A55; }
.announce { background: #072A31; border-bottom: 1px solid rgba(255,255,255,.08); font-weight: 500; letter-spacing: .01em; }
.announce i { background: #FF7A55; }
.to-top { background: #0E7C86; border-radius: 12px; }
.bar i { background: #0E7C86; }

/* Photo frame: clean rounded rectangle */
.portrait { width: min(100%, 400px); }
.portrait-frame { border: 0; padding: 0; border-radius: 24px; aspect-ratio: 4 / 5; box-shadow: 0 40px 80px -30px rgba(0,0,0,.6); }
.portrait-inner { border-radius: 24px; background: linear-gradient(160deg, #136D78 0%, #0A3640 100%); }
.portrait-inner .monogram { font-size: clamp(3.5rem, 8vw, 5rem); opacity: .9; }
.portrait-inner .monogram small { color: rgba(241,245,249,.7); letter-spacing: .2em; }
.seal { border-radius: 16px; width: auto; height: auto; padding: 1rem 1.25rem; left: -28px; bottom: 40px; background: #fff; border: 0; box-shadow: 0 20px 40px -18px rgba(0,0,0,.5); text-align: left; }
.seal::before { display: none; }
.seal b { color: #0D1F24; font-size: 1.8rem; }
.seal span { color: #4D6369; letter-spacing: .08em; }
.portrait::after { content: "IOAI 2026 · Team Pakistan"; position: absolute; right: -20px; top: 36px; background: #FF7A55; color: #fff; font-size: .78rem; font-weight: 700; padding: .55rem .9rem; border-radius: 10px; box-shadow: 0 16px 30px -14px rgba(0,0,0,.5); }
@media (max-width: 900px) { .seal { left: 12px; right: auto; bottom: 16px; width: auto; height: auto; } .portrait::after { right: 12px; top: 16px; } }

/* Cards: quieter borders, consistent radius */
.project, .edu-card, .school, .skill-card, .award, .wins, .contact-form, .info-item, .activity { border-radius: 16px; }
.project:hover { border-color: #0E7C86; box-shadow: 0 24px 48px -32px rgba(7,42,49,.45); }
.award .medal { border-radius: 14px; border: 0; background: #E6F2F2; color: #0E7C86; }
.award .medal::before { display: none; }
.pull { border-top: 0; padding-top: 0; padding-left: 1.4rem; border-left: 3px solid #FF7A55; }
.honors-grid { border-top: 0; }
.chip { background: #E6F2F2; color: #0B6B74; }
.edu-badge { background: #FFE9E2; color: #D2492F; border-radius: 8px; }
.timeline .type { border-radius: 8px; }
.tag { border-radius: 8px; }

/* ---------- Gallery + lightbox ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.g-item { position: relative; border: 0; padding: 0; cursor: zoom-in; border-radius: 14px; overflow: hidden; background: #E6F2F2; aspect-ratio: 4 / 3; }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.g-item:hover img { transform: scale(1.04); }
.g-item span { position: absolute; left: 0; right: 0; bottom: 0; padding: 2rem .9rem .75rem; color: #fff; font-size: .85rem; font-weight: 600; text-align: left; background: linear-gradient(transparent, rgba(7,42,49,.85)); opacity: 0; transition: opacity .25s; }
.g-item:hover span, .g-item:focus-visible span { opacity: 1; }
@media (hover: none) { .g-item span { opacity: 1; } }
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(4,20,24,.94); display: flex; align-items: center; justify-content: center; padding: 60px 70px; }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: 100%; max-height: 100%; display: grid; gap: .8rem; justify-items: center; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 160px); border-radius: 10px; object-fit: contain; }
.lightbox figcaption { color: #E6F2F2; font-size: .95rem; text-align: center; }
.lightbox button { position: absolute; border: 0; background: rgba(255,255,255,.1); color: #fff; width: 48px; height: 48px; border-radius: 12px; font-size: 1.8rem; line-height: 1; cursor: pointer; }
.lightbox button:hover { background: rgba(255,255,255,.2); }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 14px; top: 50%; transform: translateY(-50%); }
@media (max-width: 600px) { .lightbox { padding: 70px 12px; } .lb-prev, .lb-next { top: auto; bottom: 14px; transform: none; } }

/* Menu fit with 9 items */
.brand-text small { white-space: nowrap; }
.main-nav ul { gap: 1.4rem; }
@media (max-width: 1240px) and (min-width: 981px) { .main-nav ul { gap: 1rem; } .main-nav a { font-size: .84rem; } .header-cta { display: none; } }

/* ===================== Hero version 2: light split ===================== */
.hero2 { background:
    radial-gradient(800px 500px at 100% 0%, #DDF0F0 0%, transparent 60%),
    linear-gradient(#fff, #F4FAFA); overflow: hidden; }
.hero2 .container { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; padding-top: clamp(3rem, 7vw, 5.5rem); padding-bottom: clamp(3rem, 7vw, 5.5rem); }
.hero2 .container > * { min-width: 0; }
.h2-pill { display: inline-flex; align-items: center; gap: .6rem; padding: .5rem 1rem; border-radius: 999px; background: #fff; border: 1px solid #D3E4E5; font-size: .82rem; font-weight: 600; color: #0D1F24; box-shadow: 0 6px 18px -12px rgba(7,42,49,.4); }
.h2-pill i { width: 8px; height: 8px; border-radius: 50%; background: #FF7A55; box-shadow: 0 0 0 4px rgba(255,122,85,.2); flex: none; }
.hero2 h1 { font-size: clamp(3.4rem, 9vw, 7rem); font-weight: 700; letter-spacing: -.055em; line-height: .92; margin-top: 1.4rem; color: #0D1F24; }
.hero2 h1 span { color: #FF7A55; }
.h2-lede { margin-top: 1.5rem; font-size: 1.12rem; color: #4D6369; max-width: 44ch; }
.h2-lede b { color: #0D1F24; font-weight: 700; }
.hero2 .hero-actions { margin-top: 2rem; }
.h2-stats { display: grid; grid-template-columns: repeat(4, auto); justify-content: start; margin: 2.6rem 0 0; }
.h2-stats div { padding: 0 1.5rem; border-left: 1px solid #D3E4E5; }
.h2-stats div:first-child { padding-left: 0; border-left: 0; }
.h2-stats dt { font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #4D6369; }
.h2-stats dd { margin: .2rem 0 0; font-family: var(--f-display); font-size: 1.45rem; font-weight: 700; letter-spacing: -.03em; color: #0E7C86; white-space: nowrap; }
.h2-visual { position: relative; justify-self: center; width: min(100%, 440px); padding: 30px 0; }
.h2-lanes { position: absolute; top: 0; bottom: 0; left: 18%; right: -30px; border-radius: 28px;
  background: repeating-linear-gradient(90deg, transparent 0 60px, rgba(255,255,255,.45) 60px 62px), linear-gradient(160deg, #19A3AE, #0E7C86); }
.h2-lanes::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 8px; transform: translateY(-50%);
  background: repeating-linear-gradient(90deg, #FF7A55 0 14px, #fff 14px 28px); opacity: .85; }
.h2-photo { position: relative; aspect-ratio: 4 / 5; border-radius: 24px; overflow: hidden; background: linear-gradient(160deg, #0C4652, #072A31); box-shadow: 0 40px 70px -30px rgba(7,42,49,.6); display: grid; place-items: center; width: 86%; }
.h2-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.h2-mono { font-family: var(--f-display); font-weight: 700; font-size: clamp(3.5rem, 9vw, 5rem); letter-spacing: -.06em; color: #F1F5F9; text-align: center; line-height: 1; }
.h2-mono small { display: block; font-family: var(--f-body); font-size: .68rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: rgba(241,245,249,.65); margin-top: .7rem; }
.h2-float { position: absolute; background: #fff; border-radius: 14px; padding: .85rem 1.1rem .85rem 1.3rem; box-shadow: 0 22px 40px -20px rgba(7,42,49,.55); display: grid; gap: .1rem; max-width: 240px; text-align: left; }
.h2-float b { font-family: var(--f-display); font-size: 1rem; letter-spacing: -.02em; color: #0D1F24; }
.h2-float span { font-size: .78rem; color: #4D6369; }
.h2-float::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px; border-radius: 3px; background: #FF7A55; }
.h2-float.f1 { right: -30px; top: 14%; }
.h2-float.f2 { right: -10px; bottom: 12%; }
.h2-float.f2::before { background: #0E7C86; }
@media (max-width: 900px) {
  .hero2 .container { grid-template-columns: 1fr; }
  .h2-visual { width: min(100%, 380px); }
  .h2-lanes { right: 0; }
  .h2-float.f1, .h2-float.f2 { right: 0; }
}
@media (max-width: 560px) { .h2-stats { grid-template-columns: 1fr 1fr; gap: 1rem 0; } .h2-stats div:nth-child(3) { padding-left: 0; border-left: 0; } }

/* ===================== Hero version 3: dark centered ===================== */
.hero3 { position: relative; overflow: hidden; color: #F1F5F9; text-align: center;
  background: radial-gradient(700px 420px at 50% 0%, #0E5561 0%, transparent 70%), #072A31; }
.h3-bgword { position: absolute; left: 50%; top: 52%; transform: translate(-50%, -50%); font-family: var(--f-display); font-weight: 700; font-size: clamp(8rem, 26vw, 22rem); letter-spacing: -.06em; line-height: 1; color: transparent; -webkit-text-stroke: 1px rgba(241,245,249,.08); white-space: nowrap; pointer-events: none; user-select: none; }
.hero3 .container { position: relative; display: grid; justify-items: center; padding-top: clamp(3.5rem, 7vw, 5rem); padding-bottom: clamp(3rem, 6vw, 4rem); }
.h3-avatar { position: relative; width: 132px; height: 132px; border-radius: 50%; padding: 5px; background: conic-gradient(#FF7A55, #19A3AE, #FF7A55); margin-bottom: 1.6rem; }
.h3-avatar span { width: 100%; height: 100%; border-radius: 50%; border: 4px solid #072A31; display: grid; place-items: center; background: linear-gradient(160deg, #136D78, #0A3640); font-family: var(--f-display); font-weight: 700; font-size: 2.4rem; letter-spacing: -.05em; }
.h3-avatar img { position: absolute; inset: 5px; width: calc(100% - 10px); height: calc(100% - 10px); border-radius: 50%; border: 4px solid #072A31; object-fit: cover; }
.hero3 .eyebrow { color: #FF8A68; }
.hero3 h1 { font-size: clamp(3rem, 9vw, 6.5rem); font-weight: 700; letter-spacing: -.05em; line-height: 1; margin-top: 1rem; }
.h3-tag { margin-top: 1rem; font-size: clamp(1.05rem, 2.2vw, 1.35rem); color: #A3C4C8; max-width: 40ch; }
.hero3 .hero-actions { justify-content: center; margin-top: 2rem; }
.h3-stats { display: grid; grid-template-columns: repeat(4, 1fr); width: 100%; max-width: 900px; margin-top: clamp(2.5rem, 6vw, 4rem); border-top: 1px solid rgba(241,245,249,.12); }
.h3-stats div { padding: 1.5rem 1rem 0; display: grid; gap: .25rem; border-left: 1px solid rgba(241,245,249,.12); }
.h3-stats div:first-child { border-left: 0; }
.h3-stats b { font-family: var(--f-display); font-size: clamp(1.6rem, 3.5vw, 2.3rem); font-weight: 700; letter-spacing: -.04em; color: #fff; }
.h3-stats span { font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #A3C4C8; }
.h3-rope { height: 10px; background: repeating-linear-gradient(90deg, #FF7A55 0 18px, #F1F5F9 18px 36px, #19A3AE 36px 54px, #F1F5F9 54px 72px); opacity: .9; }
@media (max-width: 640px) { .h3-stats { grid-template-columns: 1fr 1fr; } .h3-stats div:nth-child(3) { border-left: 0; } .h3-stats div:nth-child(n+3) { border-top: 1px solid rgba(241,245,249,.12); margin-top: 1.5rem; } }

/* The separate stats strip is redundant when the hero shows the numbers */
html[data-hero="2"] .stats, html[data-hero="3"] .stats { display: none; }

[hidden] { display: none !important; }

/* ===================== Stock photography ===================== */
/* Hero photo placeholders: Aitchison College gate, tinted teal */
.ph-place { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7,42,49,.05) 40%, rgba(7,42,49,.85)), url("../images/stock/aitchison-gate.jpg") center 30% / cover no-repeat; display: flex; align-items: flex-end; justify-content: center; padding: 1.4rem; }
.ph-place span { font-size: .7rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: rgba(241,245,249,.9); }
.portrait-inner, .h2-photo { position: relative; }
.h3-ph { background: url("../images/stock/aitchison-gate.jpg") center 25% / cover no-repeat !important; }

/* About: Minar-e-Pakistan */
.about-side { display: grid; gap: 2rem; align-content: start; }
.about-img, .edu-img { margin: 0; position: relative; border-radius: 16px; overflow: hidden; background: #E6F2F2; }
.about-img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: center 30%; }
.edu-img img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: center 60%; }
.about-img figcaption, .edu-img figcaption { position: absolute; left: 12px; bottom: 12px; background: rgba(7,42,49,.78); color: #F1F5F9; font-size: .74rem; font-weight: 600; padding: .35rem .7rem; border-radius: 8px; backdrop-filter: blur(4px); }

/* Swimming band: pool photo behind a deep teal wash */
#swimming.band { background: linear-gradient(180deg, rgba(7,42,49,.93), rgba(7,42,49,.88)), url("../images/stock/swimming-pool.jpg") center 70% / cover no-repeat; }

/* Footer credits */
.credits { border-top: 1px solid rgba(241,245,249,.12); padding: .9rem 0; font-size: .78rem; }
.credits summary { cursor: pointer; color: var(--band-muted); font-weight: 600; }
.credits p { margin-top: .6rem; max-width: 90ch; line-height: 1.6; }
.credits a { text-decoration: underline; }

/* Starter gallery label */
.g-note { margin-top: 1rem; font-size: .82rem; color: var(--muted); }

.h2-photo .ph-place span { display: none; }

.gallery-grid { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 800px) { .gallery-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .gallery-grid { grid-template-columns: 1fr; } }

/* ===================== Education redesign ===================== */
.campus { display: grid; grid-template-columns: 1.6fr 1fr 1fr; grid-template-rows: 220px 220px; gap: 12px; margin-bottom: clamp(2rem, 5vw, 3rem); }
.campus figure { margin: 0; position: relative; overflow: hidden; border-radius: 16px; background: #DCEDED; }
.campus img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.campus figure:hover img { transform: scale(1.05); }
.campus figcaption { position: absolute; left: 10px; bottom: 10px; background: rgba(7,42,49,.78); color: #F1F5F9; font-size: .72rem; font-weight: 700; letter-spacing: .04em; padding: .3rem .65rem; border-radius: 8px; backdrop-filter: blur(4px); }
.c-big { grid-row: 1 / 3; }
.c-big img { object-position: center 40%; }
.c-b { grid-row: 1 / 3; grid-column: 3; }
.c-a { grid-column: 2; grid-row: 1; }
.c-c { grid-column: 2; grid-row: 2; }
.c-d { display: none; }
@media (min-width: 1100px) {
  .campus { grid-template-columns: 1.5fr 1fr .8fr 1fr; }
  .c-d { display: block; grid-column: 4; grid-row: 1 / 3; }
  .c-d img { object-position: 65% center; }
}
@media (max-width: 760px) {
  .campus { grid-template-columns: 1fr 1fr; grid-template-rows: 200px 150px 150px; }
  .c-big { grid-column: 1 / 3; grid-row: 1; }
  .c-a { grid-column: 1; grid-row: 2; } .c-c { grid-column: 2; grid-row: 2; }
  .c-b { grid-column: 1 / 3; grid-row: 3; } .c-b img { object-position: center 70%; }
}

.edu-grid { grid-template-columns: 1.45fr 1fr; }
.quals { display: grid; }
.qual { display: grid; gap: .55rem; padding: 1.3rem 0; border-bottom: 1px solid var(--line); }
.qual:last-child { border-bottom: 0; }
.q-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; }
.q-head h4 { font-size: 1.2rem; font-weight: 700; }
.qual p { color: var(--muted); font-size: .95rem; }
.q-result { font-family: var(--f-display); font-size: 1.35rem; font-weight: 700; letter-spacing: -.02em; color: #D2492F; white-space: nowrap; }
.q-result small { font-size: .6em; color: var(--muted); font-weight: 600; }
.q-status { font-size: .7rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #0B6B74; background: #E6F2F2; padding: .35rem .7rem; border-radius: 999px; white-space: nowrap; }
.q-years { font-size: .78rem; font-weight: 700; color: var(--muted); letter-spacing: .04em; }
.qual .chips { margin-top: .2rem; }

.courses { display: grid; gap: 1rem; align-content: start; }
.courses-title { font-size: 1.15rem; font-weight: 700; margin-bottom: .2rem; }
.course { display: grid; grid-template-columns: 56px 1fr; gap: 1rem; align-items: start; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 1.3rem; transition: border-color .2s, transform .2s; }
.course:hover { border-color: #0E7C86; transform: translateX(4px); }
.c-logo { width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; background: #072A31; color: #FF8A68; font-family: var(--f-display); font-weight: 700; font-size: .78rem; letter-spacing: .02em; }
.course .yr { font-size: .7rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #0B6B74; }
.course h4 { font-size: 1.1rem; font-weight: 700; margin-top: .15rem; }
.course p { color: var(--muted); font-size: .9rem; margin-top: .3rem; }
@media (max-width: 900px) { .edu-grid { grid-template-columns: 1fr; } }

/* ===================== Honors redesign ===================== */
.tally { display: grid; grid-template-columns: repeat(5, 1fr); background: #072A31; border-radius: 20px; overflow: hidden; margin-bottom: 1.5rem; }
.t-item { padding: 1.4rem 1.2rem; display: grid; gap: .2rem; border-left: 1px solid rgba(241,245,249,.1); position: relative; }
.t-item:first-child { border-left: 0; }
.t-item::before { content: ""; position: absolute; left: 1.2rem; top: 0; width: 28px; height: 4px; border-radius: 0 0 4px 4px; }
.t-item b { font-family: var(--f-display); font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 700; letter-spacing: -.04em; color: #fff; line-height: 1.1; }
.t-item span { font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #A3C4C8; }
.t-first::before { background: #FF7A55; } .t-gold::before { background: #E8B52E; } .t-silver::before { background: #B9C4CC; } .t-bronze::before { background: #C47A43; } .t-prize::before { background: #19A3AE; }
@media (max-width: 760px) { .tally { grid-template-columns: repeat(3, 1fr); } .t-item:nth-child(4) { border-left: 0; } .t-item:nth-child(n+4) { border-top: 1px solid rgba(241,245,249,.1); } }
@media (max-width: 420px) { .tally { grid-template-columns: 1fr 1fr; } .t-item { border-left: 0 !important; } .t-item:nth-child(n+3) { border-top: 1px solid rgba(241,245,249,.1); } }

.feat-awards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; margin-bottom: 3rem; }
.fa { --c: #0E7C86; --c2: #E6F2F2; position: relative; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 1.6rem 1.4rem 1.5rem; display: grid; gap: .4rem; align-content: start; transition: transform .25s, box-shadow .25s; }
.fa::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--c); }
.fa:hover { transform: translateY(-4px); box-shadow: 0 24px 44px -30px rgba(7,42,49,.5); }
.fa-medal { width: 62px; height: 62px; border-radius: 50%; display: grid; place-items: center; margin-bottom: .6rem; background: radial-gradient(circle at 35% 30%, #fff 0%, var(--c2) 45%, var(--c) 100%); box-shadow: inset 0 -3px 6px rgba(0,0,0,.15), 0 8px 18px -10px var(--c); }
.fa-medal span { font-family: var(--f-display); font-weight: 700; font-size: 1.05rem; color: #0D1F24; }
.fa-yr { font-size: .7rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--c); filter: brightness(.8); }
.fa h3 { font-size: 1.2rem; font-weight: 700; }
.fa p { color: var(--muted); font-size: .9rem; }
.fa-first { --c: #FF7A55; --c2: #FFD9CC; }
.fa-gold { --c: #D9A21B; --c2: #FBE7A6; }
.fa-silver { --c: #8E9BA5; --c2: #E3E8EC; }
.fa-prize { --c: #0E7C86; --c2: #BFE6E8; }
@media (max-width: 960px) { .feat-awards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .feat-awards { grid-template-columns: 1fr; } }

.h-filter { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.5rem; }
.h-filter button { font: inherit; font-size: .85rem; font-weight: 600; padding: .55rem 1rem; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; transition: background .2s, border-color .2s, color .2s; }
.h-filter button small { font-size: .72rem; font-weight: 700; color: var(--muted); margin-left: .25rem; }
.h-filter button:hover { border-color: #0E7C86; }
.h-filter button.on { background: #072A31; border-color: #072A31; color: #fff; }
.h-filter button.on small { color: #FF8A68; }

.h-timeline { display: grid; gap: 0; border-top: 1px solid var(--line); }
.h-year { display: grid; grid-template-columns: 120px 1fr; gap: 1.5rem; padding: 1.4rem 0; border-bottom: 1px solid var(--line); }
.h-year[hidden] { display: none !important; }
.hy { font-family: var(--f-display); font-size: 2rem; font-weight: 700; letter-spacing: -.04em; color: #0D1F24; line-height: 1; padding-top: .25rem; }
.h-year ul { display: grid; gap: .7rem; }
.h-year li { display: grid; grid-template-columns: 74px 1fr; gap: 1rem; align-items: baseline; }
.h-year li p { font-size: .98rem; }
.h-year li i { font-style: normal; font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; text-align: center; padding: .3rem .5rem; border-radius: 6px; }
.tag-first { background: #FFE6DD; color: #C2412A; }
.tag-gold { background: #FBEDC4; color: #8A6400; }
.tag-silver { background: #E8ECEF; color: #4F5D67; }
.tag-bronze { background: #F5E2D3; color: #8E4F22; }
.tag-prize { background: #DDF0F1; color: #0B6B74; }
@media (max-width: 600px) { .h-year { grid-template-columns: 1fr; gap: .8rem; } .hy { font-size: 1.6rem; } .h-year li { grid-template-columns: 64px 1fr; gap: .7rem; } }

/* Course cards with campus photo */
.course.has-img { grid-template-columns: 1fr; padding: 0; overflow: hidden; gap: 0; }
.course.has-img > div { padding: 1.1rem 1.3rem 1.3rem; }
.c-img { margin: 0; position: relative; aspect-ratio: 16 / 7; overflow: hidden; background: #DCEDED; }
.c-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.course.has-img:hover .c-img img { transform: scale(1.05); }
.course.has-img:hover { transform: translateY(-3px); }
.c-img .c-logo { position: absolute; left: 1.3rem; bottom: -1px; width: auto; height: auto; padding: .4rem .75rem; border-radius: 10px 10px 0 0; font-size: .74rem; }

/* Hero photo: sharper, wider main-building shot */
.ph-place { background: linear-gradient(180deg, rgba(7,42,49,0) 55%, rgba(7,42,49,.8)), url("../images/stock/aitchison-main-building.jpg") 47% center / cover no-repeat; }
.h3-ph { background: url("../images/stock/aitchison-main-building.jpg") 47% 35% / 260% auto no-repeat !important; }
.hero[data-v="1"] .container { grid-template-columns: 1.1fr 1fr; }
.hero[data-v="1"] .portrait { width: min(100%, 540px); }
.hero[data-v="1"] .portrait-frame { aspect-ratio: 1 / 1; }
.h2-visual { width: min(100%, 500px); }
.h2-photo { aspect-ratio: 1 / 1; width: 88%; }
@media (max-width: 900px) { .hero[data-v="1"] .container { grid-template-columns: 1fr; } .hero[data-v="1"] .portrait { width: min(100%, 420px); } }

/* ===================== Experience & research redesign ===================== */
.research { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.3rem; margin-bottom: 3.5rem; }
.r-feature { grid-column: 1 / -1; display: grid; grid-template-columns: 1.05fr 1fr; gap: 0; background: #072A31; color: #F1F5F9; border-radius: 22px; overflow: hidden; }
.r-copy { padding: clamp(1.6rem, 4vw, 2.8rem); display: grid; gap: 1rem; align-content: start; }
.r-kicker { font-size: .7rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: #FF8A68; }
.r-kicker.dark { color: #D2492F; }
.r-feature h3 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 700; letter-spacing: -.035em; line-height: 1.1; }
.r-q { font-size: 1.05rem; color: #A3C4C8; border-left: 3px solid #FF7A55; padding-left: 1rem; font-style: italic; }
.r-meta { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 0; margin: .4rem 0 0; }
.r-meta div { padding: 0 1.4rem; border-left: 1px solid rgba(241,245,249,.15); }
.r-meta div:first-child { padding-left: 0; border-left: 0; }
.r-meta dt { font-size: .66rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #7FA4A9; }
.r-meta dd { margin: .2rem 0 0; font-weight: 600; font-size: .95rem; }
.r-feature .tags { margin-top: .4rem; }
.r-feature .tag { border-color: rgba(241,245,249,.25); color: #F1F5F9; }

/* AI pipeline illustration */
.r-visual { position: relative; display: grid; place-items: center; padding: 2rem 1.5rem; background:
    radial-gradient(500px 300px at 60% 40%, rgba(25,163,174,.28), transparent 70%),
    linear-gradient(rgba(241,245,249,.05) 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(90deg, rgba(241,245,249,.05) 1px, transparent 1px) 0 0 / 24px 24px,
    #0A333C; border-left: 1px solid rgba(241,245,249,.08); }
.pipe { display: flex; align-items: center; gap: .6rem; width: 100%; max-width: 520px; }
.p-step { flex: 1; display: grid; justify-items: center; gap: .7rem; min-width: 0; }
.p-step > span { font-size: .68rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #A3C4C8; text-align: center; }
.p-arrow { flex: none; width: 26px; height: 2px; background: linear-gradient(90deg, rgba(255,138,104,.2), #FF8A68); position: relative; margin-bottom: 1.6rem; }
.p-arrow::after { content: ""; position: absolute; right: -2px; top: -4px; border: 5px solid transparent; border-left-color: #FF8A68; }
.p-scan { position: relative; width: 100%; max-width: 130px; aspect-ratio: 1; border-radius: 14px; overflow: hidden;
  background: radial-gradient(circle at 55% 50%, #8B5A3C 0 14%, #B07A57 15% 22%, transparent 23%), radial-gradient(circle at 40% 40%, #E9C2A6, #D8A988 70%); box-shadow: 0 14px 30px -14px rgba(0,0,0,.6); }
.p-scan b { position: absolute; left: 34%; top: 30%; width: 40%; height: 40%; border: 2px solid #FF7A55; border-radius: 6px; }
.p-scan b::after { content: "ROI"; position: absolute; left: -2px; top: -18px; font-size: .55rem; font-weight: 800; letter-spacing: .08em; background: #FF7A55; color: #fff; padding: 1px 4px; border-radius: 3px; }
.p-scan i { position: absolute; left: 0; right: 0; height: 30%; background: linear-gradient(transparent, rgba(25,163,174,.55), transparent); animation: scan 2.6s ease-in-out infinite; }
@keyframes scan { 0% { top: -30%; } 100% { top: 100%; } }
.p-net { width: 100%; max-width: 140px; }
.p-net .edges line { stroke: rgba(163,196,200,.35); stroke-width: 1; }
.p-net .nodes circle { fill: #0E7C86; stroke: #A3C4C8; stroke-width: 1.2; }
.p-net .nodes circle.hot { fill: #FF7A55; stroke: #FFD9CC; animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { r: 9; } }
.p-out { width: 100%; max-width: 130px; aspect-ratio: 1; border-radius: 14px; background: rgba(241,245,249,.06); border: 1px solid rgba(241,245,249,.14); padding: .9rem; display: grid; align-content: center; gap: .6rem; }
.p-out em { font-style: normal; font-size: .72rem; font-weight: 700; color: #F1F5F9; }
.p-bar { height: 8px; border-radius: 8px; background: rgba(241,245,249,.1); overflow: hidden; }
.p-bar i { display: block; height: 100%; width: 82%; background: #FF7A55; border-radius: inherit; }
.p-bar.alt i { width: 24%; background: #19A3AE; }

.r-card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s, border-color .25s; }
.r-card:hover { transform: translateY(-4px); border-color: #0E7C86; box-shadow: 0 26px 48px -32px rgba(7,42,49,.5); }
.r-img { margin: 0; position: relative; aspect-ratio: 16 / 7; overflow: hidden; background: #DCEDED; }
.r-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.r-card:hover .r-img img { transform: scale(1.05); }
.r-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 50%, rgba(7,42,49,.45)); }
.r-badge { position: absolute; z-index: 1; left: 1.3rem; bottom: 1rem; background: #fff; color: #072A31; font-size: .7rem; font-weight: 800; letter-spacing: .1em; padding: .4rem .7rem; border-radius: 8px; }
.r-body { padding: 1.5rem 1.6rem 1.6rem; display: flex; flex-direction: column; gap: .6rem; flex: 1; }
.r-body h3 { font-size: 1.45rem; font-weight: 700; letter-spacing: -.03em; }
.r-body p { color: var(--muted); font-size: .95rem; }
.r-body .tags { margin-top: auto; padding-top: .6rem; }

@media (max-width: 900px) { .r-feature { grid-template-columns: 1fr; } .r-visual { border-left: 0; border-top: 1px solid rgba(241,245,249,.08); } .research { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .r-meta { grid-template-columns: 1fr; gap: .6rem; } .r-meta div { padding: 0; border: 0; } .p-arrow { width: 14px; } }

/* Internships */
.sub-title { font-size: 1.5rem; font-weight: 700; letter-spacing: -.03em; margin-bottom: 1.2rem; }
.interns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; }
.intern { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 1.6rem; display: flex; flex-direction: column; gap: .35rem; transition: transform .25s, border-color .25s; }
.intern:hover { transform: translateY(-4px); border-color: #0E7C86; }
.i-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: .8rem; }
.i-icon { width: 48px; height: 48px; border-radius: 14px; background: #E6F2F2; color: #0E7C86; display: grid; place-items: center; }
.i-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.intern:first-child .i-icon { background: #FFE6DD; color: #D2492F; }
.i-status { font-size: .66rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; padding: .35rem .7rem; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.i-status.live { border-color: transparent; background: rgba(92,154,59,.14); color: #3F6B2E; display: inline-flex; align-items: center; gap: .4rem; }
.i-status.live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #5C9A3B; }
.i-date { font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #D2492F; }
.intern h4 { font-size: 1.2rem; font-weight: 700; letter-spacing: -.02em; }
.i-org { font-size: .88rem; font-weight: 600; color: #0E7C86; }
.intern p { color: var(--muted); font-size: .92rem; margin-top: .4rem; }
.i-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: auto; padding-top: 1.1rem; border-top: 1px solid var(--line); }
.intern p { margin-bottom: 1.1rem; }
.i-stats b { display: block; font-family: var(--f-display); font-size: 1.4rem; font-weight: 700; letter-spacing: -.03em; color: #0D1F24; }
.i-stats span { font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 960px) { .interns { grid-template-columns: 1fr; } }

/* Slim campus strip after the academic record */
.campus-strip { display: grid; grid-template-columns: 1fr 1fr 1.6fr; gap: 12px; margin-top: clamp(2rem, 4vw, 3rem); }
.campus-strip figure { margin: 0; position: relative; height: 240px; overflow: hidden; border-radius: 16px; background: #DCEDED; }
.campus-strip img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.campus-strip figure:nth-child(2) img { object-position: center 60%; }
.campus-strip figure:nth-child(3) img { object-position: center 88%; }
.campus-strip figure:hover img { transform: scale(1.05); }
.campus-strip figcaption { position: absolute; left: 10px; bottom: 10px; background: rgba(7,42,49,.78); color: #F1F5F9; font-size: .72rem; font-weight: 700; padding: .3rem .65rem; border-radius: 8px; }
@media (max-width: 760px) { .campus-strip { grid-template-columns: 1fr 1fr; } .campus-strip figure { height: 170px; } .campus-strip figure:nth-child(3) { grid-column: 1 / -1; } }

/* Single Aitchison banner */
.campus-strip { grid-template-columns: 1fr; }
.campus-strip figure { height: clamp(220px, 30vw, 360px); }
.campus-strip figure:nth-child(1) img { object-position: center 82%; }
.campus-strip figcaption { left: 16px; bottom: 16px; font-size: .8rem; padding: .45rem .85rem; }
@media (max-width: 760px) { .campus-strip { grid-template-columns: 1fr; } .campus-strip figure { height: 200px; } }

/* ---------- Honors polish ---------- */
/* Tally: colored dot beside each label instead of tabs poking out of the bar */
.t-item::before { display: none; }
.t-item span { display: inline-flex; align-items: center; gap: .55rem; }
.t-item span::before { content: ""; width: 9px; height: 9px; border-radius: 50%; flex: none; background: currentColor; }
.t-first span::before { background: #FF7A55; }
.t-gold span::before { background: #E8B52E; }
.t-silver span::before { background: #B9C4CC; }
.t-bronze span::before { background: #C47A43; }
.t-prize span::before { background: #19A3AE; }
.t-item { padding: 1.5rem 1.4rem; }

/* Award cards: clean edges, no cap strip */
.fa::before { display: none; }
.fa { border-color: var(--line); }
.fa:hover { border-color: var(--c); }

/* Medals: flat, with a ring */
.fa-medal { width: 58px; height: 58px; background: var(--c2); box-shadow: none; border: 2px solid var(--c); outline: 4px solid color-mix(in srgb, var(--c2) 55%, transparent); outline-offset: 0; }
.fa-medal span { font-size: 1rem; color: #0D1F24; }
.fa-silver .fa-medal span { color: #3F4B54; }

/* ---------- NYAS card: AI app illustration ---------- */
.r-art { background:
    radial-gradient(420px 220px at 50% 55%, rgba(25,163,174,.35), transparent 70%),
    linear-gradient(rgba(241,245,249,.05) 1px, transparent 1px) 0 0 / 22px 22px,
    linear-gradient(90deg, rgba(241,245,249,.05) 1px, transparent 1px) 0 0 / 22px 22px,
    #072A31; display: grid; place-items: center; }
.r-art::after { display: none; }
.ra-net { position: absolute; inset: 0; width: 100%; height: 100%; }
.ra-edges path { fill: none; stroke: rgba(163,196,200,.28); stroke-width: 1.2; }
.ra-nodes circle { fill: #0E7C86; stroke: #A3C4C8; stroke-width: 1.2; }
.ra-nodes circle:nth-child(4), .ra-nodes circle:nth-child(11) { fill: #FF7A55; stroke: #FFD9CC; animation: raPulse 2s ease-in-out infinite; }
.ra-nodes circle:nth-child(11) { animation-delay: 1s; }
@keyframes raPulse { 50% { opacity: .45; } }
.ra-ring { position: absolute; width: 170px; height: 170px; border-radius: 50%;
  background: conic-gradient(#E5243B 0 21.2deg, #DDA63A 0 42.4deg, #4C9F38 0 63.5deg, #C5192D 0 84.7deg, #FF3A21 0 105.9deg, #26BDE2 0 127.1deg, #FCC30B 0 148.2deg, #A21942 0 169.4deg, #FD6925 0 190.6deg, #DD1367 0 211.8deg, #FD9D24 0 232.9deg, #BF8B2E 0 254.1deg, #3F7E44 0 275.3deg, #0A97D9 0 296.5deg, #56C02B 0 317.6deg, #00689D 0 338.8deg, #19486A 0 360deg);
  -webkit-mask: radial-gradient(circle, transparent 70px, #000 71px); mask: radial-gradient(circle, transparent 70px, #000 71px);
  opacity: .9; animation: raSpin 40s linear infinite; }
@keyframes raSpin { to { transform: rotate(360deg); } }
.ra-phone { position: relative; width: 74px; height: 136px; border-radius: 16px; background: #0D1F24; border: 2px solid #A3C4C8; padding: 14px 7px 8px; box-shadow: 0 18px 30px -12px rgba(0,0,0,.6); }
.ra-notch { position: absolute; top: 5px; left: 50%; transform: translateX(-50%); width: 22px; height: 4px; border-radius: 4px; background: #2D4762; }
.ra-screen { height: 100%; border-radius: 9px; background: linear-gradient(170deg, #F4FAFA, #DDF0F1); display: grid; align-content: start; justify-items: center; gap: 6px; padding: 9px 6px; }
.ra-dial { width: 40px; height: 40px; border-radius: 50%; background: conic-gradient(#FF7A55 0 72%, #D3E4E5 0); display: grid; place-items: center; }
.ra-dial b { width: 28px; height: 28px; border-radius: 50%; background: #F4FAFA; }
.ra-line { height: 5px; border-radius: 5px; background: #A3C4C8; justify-self: start; }
.ra-line.w80 { width: 80%; } .ra-line.w60 { width: 60%; background: #D3E4E5; }
.ra-chips { display: flex; gap: 3px; justify-self: start; }
.ra-chips span { width: 14px; height: 9px; border-radius: 3px; background: #0E7C86; }
.ra-chips span:nth-child(2) { background: #19A3AE; } .ra-chips span:nth-child(3) { background: #FF7A55; }
.ra-tag { position: absolute; font-size: .66rem; font-weight: 800; letter-spacing: .1em; color: #F1F5F9; background: rgba(241,245,249,.1); border: 1px solid rgba(241,245,249,.25); padding: .25rem .55rem; border-radius: 6px; backdrop-filter: blur(4px); }
.ra-tag.t1 { right: 16%; top: 18%; } .ra-tag.t2 { right: 10%; bottom: 18%; }
.r-card:hover .r-art .ra-ring { animation-duration: 12s; }
@media (prefers-reduced-motion: reduce) { .ra-ring, .ra-nodes circle { animation: none; } }
