/* ==========================================================================
   AKHLAQUE NABI — PORTFOLIO v3
   Rebuilt from zero. Dark-first with a real light theme, fluid type,
   token-driven surfaces, and a canvas "ropes + Turing field" backdrop.
   --------------------------------------------------------------------------
   00 tokens          06 hero
   01 reset / base    07 ticker
   02 utilities       08 about / experience / skills / projects / certs / wins
   03 skip + progress 09 contact / footer / to-top / toast
   04 nav             10 reveal
   05 buttons         11 responsive · reduced-motion · print
   ========================================================================== */

/* ============================== 00 · TOKENS ============================== */
:root{
  /* type */
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --font-disp: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* fluid scale */
  --fs-h1:   clamp(46px, 9.5vw, 112px);
  --fs-h2:   clamp(27px, 4.2vw, 44px);
  --fs-h3:   clamp(17px, 1.5vw, 20px);
  --fs-body: clamp(15px, 1.05vw, 16.5px);
  --fs-lede: clamp(16px, 1.3vw, 18.5px);
  --fs-mono: clamp(11.5px, .9vw, 13px);

  /* rhythm */
  --wrap: 1180px;
  --gut: clamp(20px, 4.4vw, 40px);
  --sec-y: clamp(76px, 10vw, 132px);
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;

  --nav-h: 66px;
  --ease: cubic-bezier(.22, .68, 0, 1);

  color-scheme: dark;
}

/* ---- dark (default) ---- */
:root, [data-theme="dark"]{
  --bg:        #08080b;
  --bg-2:      #0c0c11;
  --surface:   #101017;
  --surface-2: #16161f;
  --surface-3: #1d1d28;

  --line:      rgba(244, 242, 238, .085);
  --line-2:    rgba(244, 242, 238, .17);

  --fg:        #f4f2ee;
  --fg-2:      #a8a4b3;
  --fg-3:      #7b768a;

  --accent:    #6f8cff;
  --accent-2:  #ffb454;
  --ok:        #5fe3a1;

  --accent-soft: rgba(111, 140, 255, .14);
  --amber-soft:  rgba(255, 180, 84, .12);
  --ok-soft:     rgba(95, 227, 161, .16);

  --shadow-sm: 0 2px 10px -4px rgba(0,0,0,.6);
  --shadow:    0 22px 48px -26px rgba(0,0,0,.85);
  --shadow-lg: 0 46px 90px -40px rgba(0,0,0,.92);

  /* canvas rope field */
  --rope-a: #6f8cff;
  --rope-b: #ffb454;
  --rope-alpha: .5;
  --rope-blend: lighter;

  color-scheme: dark;
}

/* ---- light ---- */
[data-theme="light"]{
  --bg:        #f7f6f3;
  --bg-2:      #fffefb;
  --surface:   #ffffff;
  --surface-2: #f3f1ec;
  --surface-3: #e9e6df;

  --line:      rgba(18, 18, 26, .10);
  --line-2:    rgba(18, 18, 26, .20);

  --fg:        #14141a;
  --fg-2:      #55515f;
  --fg-3:      #7c7688;

  --accent:    #3b4fd4;
  --accent-2:  #a35c00;
  --ok:        #0d8a52;

  --accent-soft: rgba(59, 79, 212, .10);
  --amber-soft:  rgba(163, 92, 0, .10);
  --ok-soft:     rgba(13, 138, 82, .13);

  --shadow-sm: 0 2px 8px -4px rgba(20,20,30,.18);
  --shadow:    0 20px 44px -28px rgba(20,20,30,.30);
  --shadow-lg: 0 40px 84px -44px rgba(20,20,30,.34);

  --rope-a: #3b4fd4;
  --rope-b: #c07000;
  --rope-alpha: .34;
  --rope-blend: multiply;

  color-scheme: light;
}

/* ============================ 01 · RESET / BASE =========================== */
*, *::before, *::after{ box-sizing: border-box; }
*{ margin: 0; padding: 0; }

html{
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 18px);
  -webkit-text-size-adjust: 100%;
}

body{
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background .4s var(--ease), color .4s var(--ease);
}

/* page-wide film grain — replaces the old hard grid */
body::after{
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.045'/%3E%3C/svg%3E");
}
[data-theme="light"] body::after{ opacity: .8; mix-blend-mode: multiply; }

img, svg{ display: block; max-width: 100%; }
a{ color: inherit; text-decoration: none; }
ul, ol{ list-style: none; }
button{ font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
strong{ color: var(--fg); font-weight: 600; }

h1, h2, h3{
  font-family: var(--font-disp);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -.02em;
  text-wrap: balance;
}

section{ position: relative; z-index: 1; }

::selection{ background: var(--accent); color: var(--bg); }

:focus-visible{
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 5px;
}
:focus:not(:focus-visible){ outline: none; }

/* icon strokes default */
svg{ fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ============================= 02 · UTILITIES ============================ */
.wrap{
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gut);
  position: relative;
  z-index: 1;
}

.mono{ font-family: var(--font-mono); font-size: var(--fs-mono); letter-spacing: .02em; }

.eyebrow{
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--accent-2);
  text-transform: uppercase;
  letter-spacing: .12em;
  margin-bottom: 16px;
}
.eyebrow::before{ content: "//"; color: var(--fg-3); }
.eyebrow.center{ justify-content: center; }

.led{
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 3px var(--ok-soft);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse{ 0%, 100%{ opacity: 1; } 50%{ opacity: .3; } }

.section{
  padding-block: var(--sec-y);
  border-top: 1px solid var(--line);
}
.section.alt{ background: var(--bg-2); }

.section-head{ max-width: 660px; margin-bottom: clamp(40px, 5.5vw, 66px); }
.section-head h2{ font-size: var(--fs-h2); }

/* tag pills */
.tags{ display: flex; flex-wrap: wrap; gap: 7px; }
.tags li{
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--fg-2);
  background: var(--surface-2);
  border: 1px solid var(--line);
  padding: 5px 10px;
  border-radius: var(--r-sm);
  transition: border-color .25s var(--ease), color .25s var(--ease);
}
.card:hover .tags li{ border-color: var(--line-2); }

/* generic card + pointer-tracked spotlight */
.card{
  position: relative;
  isolation: isolate;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: clamp(20px, 2.4vw, 28px);
  overflow: hidden;
  transition: transform .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease);
}
.card:hover{
  transform: translateY(-5px);
  border-color: var(--line-2);
  box-shadow: var(--shadow);
}
.spot::before{
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -1;
  border-radius: inherit;
  opacity: 0;
  transition: opacity .4s var(--ease);
  background: radial-gradient(
    260px circle at var(--mx, 50%) var(--my, 0%),
    var(--accent-soft), transparent 62%
  );
}
.spot:hover::before{ opacity: 1; }

.cards{ display: grid; gap: clamp(14px, 1.6vw, 20px); }

.link-arrow{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  padding-bottom: 3px;
  border-bottom: 1px solid var(--line-2);
  border-bottom-color: color-mix(in srgb, var(--accent) 40%, transparent);
  transition: gap .25s var(--ease), border-color .25s var(--ease);
}
.link-arrow svg{ width: 15px; height: 15px; }
.link-arrow:hover{ gap: 13px; border-color: var(--accent); }

/* ========================= 03 · SKIP + PROGRESS ========================== */
.skip-link{
  position: fixed;
  top: 10px;
  left: 50%;
  translate: -50% -180%;
  z-index: 200;
  background: var(--fg);
  color: var(--bg);
  font-family: var(--font-mono);
  font-size: 13px;
  padding: 10px 18px;
  border-radius: 99px;
  transition: translate .25s var(--ease);
}
.skip-link:focus-visible{ translate: -50% 0; }

.progress{
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  z-index: 120;
  background: transparent;
}
.progress-bar{
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width .12s linear;
}

/* ================================ 04 · NAV =============================== */
.nav{
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 110;
  background: var(--bg);
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.nav.scrolled{ border-bottom-color: var(--line); }

.nav-inner{
  max-width: var(--wrap);
  margin-inline: auto;
  padding: 0 var(--gut);
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.logo{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 14.5px;
  flex: 0 0 auto;
}
.logo-mark{
  width: 30px; height: 30px;
  display: grid; place-items: center;
  border-radius: 9px;
  background: linear-gradient(140deg, var(--accent), var(--accent-2));
  color: #08080b;
  font-family: var(--font-disp);
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: .02em;
}
.logo-text{ color: var(--fg); }

.nav-links{ display: flex; align-items: center; gap: clamp(14px, 1.8vw, 28px); }
.nav-links a{
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--fg-3);
  padding: 6px 0;
  transition: color .25s var(--ease);
}
.nav-idx{ font-size: 9.5px; color: var(--line-2); transition: color .25s var(--ease); }
.nav-links a::after{
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  height: 1px; width: 0;
  background: var(--accent);
  transition: width .3s var(--ease);
}
.nav-links a:hover{ color: var(--fg); }
.nav-links a:hover::after{ width: 100%; }
.nav-links a.active{ color: var(--fg); }
.nav-links a.active .nav-idx{ color: var(--accent); }
.nav-links a.active::after{ width: 100%; }

.nav-right{ display: flex; align-items: center; gap: 12px; flex: 0 0 auto; }

.nav-status{
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--ok);
  border: 1px solid var(--ok-soft);
  background: var(--ok-soft);
  background: color-mix(in srgb, var(--ok) 7%, transparent);
  padding: 5px 11px;
  border-radius: 99px;
  white-space: nowrap;
}

.icon-btn{
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--fg-2);
  transition: color .25s var(--ease), border-color .25s var(--ease), background .25s var(--ease);
}
.icon-btn:hover{ color: var(--fg); border-color: var(--line-2); background: var(--surface-2); }
.icon-btn svg{ width: 17px; height: 17px; }
.ico-sun{ display: none; }
[data-theme="dark"] .ico-sun{ display: block; }
[data-theme="dark"] .ico-moon{ display: none; }
[data-theme="light"] .ico-sun{ display: none; }
[data-theme="light"] .ico-moon{ display: block; }

/* burger */
.nav-toggle{
  display: none;
  width: 36px; height: 36px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.bars, .bars::before, .bars::after{
  content: "";
  display: block;
  width: 17px; height: 1.7px;
  background: var(--fg);
  border-radius: 2px;
  transition: transform .3s var(--ease), opacity .2s var(--ease);
}
.bars{ position: relative; }
.bars::before{ position: absolute; top: -5.5px; }
.bars::after{ position: absolute; top: 5.5px; }
.nav-toggle[aria-expanded="true"] .bars{ background: transparent; }
.nav-toggle[aria-expanded="true"] .bars::before{ transform: translateY(5.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars::after{ transform: translateY(-5.5px) rotate(-45deg); }

/* ============================== 05 · BUTTONS ============================= */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 13.5px;
  font-weight: 500;
  padding: 13px 22px;
  border-radius: 10px;
  border: 1px solid transparent;
  white-space: nowrap;
  transition: transform .28s var(--ease), background .28s var(--ease),
              border-color .28s var(--ease), box-shadow .28s var(--ease), color .28s var(--ease);
}
.btn svg{ width: 16px; height: 16px; }

.btn-primary{
  background: var(--fg);
  color: var(--bg);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover{
  transform: translateY(-3px);
  box-shadow: 0 16px 34px -14px color-mix(in srgb, var(--accent) 55%, transparent);
}
.btn-ghost{
  border-color: var(--line-2);
  color: var(--fg);
  background: var(--surface);
  background: color-mix(in srgb, var(--surface) 60%, transparent);
}
.btn-ghost:hover{ transform: translateY(-3px); border-color: var(--accent); color: var(--accent); }
.btn.copied{ border-color: var(--ok); color: var(--ok); }

/* =============================== 06 · HERO =============================== */
.hero{
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--nav-h) + clamp(38px, 6vw, 72px));
  padding-bottom: clamp(84px, 10vw, 128px);
  overflow: hidden;
}

/* rope / Turing field canvas */
.hero-canvas{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  display: block;
  pointer-events: none;
}
/* soft vignette + scrim so the rope field never fights the type */
.hero-veil{
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(100deg, var(--bg) 0%, color-mix(in srgb, var(--bg) 58%, transparent) 44%, transparent 70%),
    radial-gradient(125% 88% at 50% 46%, transparent 46%, var(--bg) 100%),
    radial-gradient(560px 420px at 88% 10%, var(--accent-soft), transparent 62%),
    radial-gradient(520px 400px at 4% 94%, var(--amber-soft), transparent 62%);
}

.hero-wrap{
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, .94fr);
  gap: clamp(34px, 5vw, 74px);
  align-items: center;
}

.hero-kicker{
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--fg-2);
  border: 1px solid var(--line);
  background: var(--surface);
  background: color-mix(in srgb, var(--surface) 70%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 7px 14px;
  border-radius: 99px;
  margin-bottom: clamp(18px, 2.4vw, 26px);
}

.hero-title{
  font-size: var(--fs-h1);
  font-weight: 700;
  line-height: .9;
  letter-spacing: -.04em;
}
.t-line{ display: block; }
.t-outline{
  color: var(--fg-3);
  margin-left: .06em;
}
@supports (-webkit-text-stroke: 1px black){
  .t-outline{
    color: transparent;
    -webkit-text-stroke: 1.4px var(--fg);
  }
}

.hero-role{
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: clamp(16px, 2vw, 22px);
  font-size: clamp(13px, 1.15vw, 15px);
  color: var(--accent);
  min-height: 1.6em;
}
.hero-role .chev{ color: var(--ok); }
.caret{
  display: inline-block;
  width: 8px;
  height: 1.05em;
  background: var(--accent-2);
  animation: blink 1.05s steps(2, start) infinite;
  translate: 0 .12em;
}
@keyframes blink{ 50%{ opacity: 0; } }

.hero-bio{
  margin-top: 20px;
  max-width: 54ch;
  color: var(--fg-2);
  font-size: var(--fs-lede);
}

.hero-facts{
  display: flex;
  flex-wrap: wrap;
  gap: clamp(14px, 2.4vw, 30px);
  margin-top: clamp(24px, 3vw, 34px);
  padding-top: clamp(20px, 2.6vw, 26px);
  border-top: 1px solid var(--line);
}
.hero-facts li{ display: flex; flex-direction: column; gap: 3px; }
.f-num{
  font-family: var(--font-disp);
  font-size: clamp(17px, 1.6vw, 21px);
  font-weight: 600;
  color: var(--fg);
}
.f-lbl{
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--fg-3);
}

.hero-ctas{
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(26px, 3.4vw, 36px);
}

.hero-socials{
  display: flex;
  flex-wrap: wrap;
  gap: clamp(16px, 2.2vw, 26px);
  margin-top: clamp(26px, 3.4vw, 38px);
}
.hero-socials a{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--fg-3);
  transition: color .25s var(--ease), transform .25s var(--ease);
}
.hero-socials a svg{ width: 15px; height: 15px; }
.hero-socials a:hover{ color: var(--fg); transform: translateY(-2px); }

/* ---- dev credential card ---- */
.hero-visual{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  animation: float 8s ease-in-out infinite;
}
@keyframes float{ 0%, 100%{ translate: 0 0; } 50%{ translate: 0 -13px; } }

.idcard{
  --rx: 0deg; --ry: 0deg;
  position: relative;
  width: min(100%, 344px);
  padding: 16px;
  border-radius: var(--r-lg);
  background:
    linear-gradient(160deg,
      color-mix(in srgb, var(--accent) 16%, var(--surface)) 0%,
      var(--surface) 42%,
      color-mix(in srgb, var(--accent-2) 13%, var(--surface)) 100%);
  border: 1px solid var(--line-2);
  box-shadow: var(--shadow-lg);
  transform: perspective(1000px) rotateX(var(--rx)) rotateY(var(--ry));
  transform-style: preserve-3d;
  transition: transform .45s var(--ease);
  overflow: hidden;
}
.idcard-sheen{
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity .4s var(--ease);
  background: radial-gradient(
    340px circle at var(--mx, 50%) var(--my, 0%),
    color-mix(in srgb, var(--fg) 14%, transparent), transparent 60%
  );
}
.idcard:hover .idcard-sheen{ opacity: 1; }

.idcard-head{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4px 12px;
  color: var(--fg-3);
  letter-spacing: .16em;
  font-size: 10px;
}
.idcard-led{
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 3px var(--ok-soft), 0 0 12px var(--ok);
  animation: pulse 2.4s ease-in-out infinite;
}

.idcard-photo{
  position: relative;
  aspect-ratio: 1;
  border-radius: 16px;
  overflow: hidden;
  background: var(--surface-2);
  border: 1px solid var(--line);
}
.idcard-photo img{
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 32%;
  filter: saturate(1.04) contrast(1.03);
  transition: scale .6s var(--ease);
}
.idcard:hover .idcard-photo img{ scale: 1.04; }
.idcard-scan{
  position: absolute; inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg, rgba(0,0,0,.14) 0 1px, transparent 1px 3px
  );
  mix-blend-mode: overlay;
  opacity: .55;
}
.idcard-photo .corner{
  position: absolute;
  width: 15px; height: 15px;
  border: 1.8px solid var(--accent-2);
  opacity: .9;
}
.corner.tl{ top: 8px; left: 8px; border-right: 0; border-bottom: 0; }
.corner.tr{ top: 8px; right: 8px; border-left: 0; border-bottom: 0; }
.corner.bl{ bottom: 8px; left: 8px; border-right: 0; border-top: 0; }
.corner.br{ bottom: 8px; right: 8px; border-left: 0; border-top: 0; }

.idcard-body{ padding: 15px 4px 0; }
.idcard-name{
  font-family: var(--font-disp);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -.02em;
  color: var(--fg);
}
.idcard-sub{ color: var(--accent); margin-top: 3px; font-size: 11.5px; }

.idcard-rows{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px 14px;
  margin-top: 15px;
  padding-top: 14px;
  border-top: 1px dashed var(--line-2);
  font-size: 10.5px;
}
.idcard-rows div{ display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.idcard-rows dt{ color: var(--fg-3); letter-spacing: .13em; font-size: 9px; }
.idcard-rows dd{ color: var(--fg); }
.idcard-rows dd.ok{ color: var(--ok); }

/* faux barcode */
.idcard-strip{
  height: 26px;
  margin-top: 15px;
  border-radius: 5px;
  background: repeating-linear-gradient(
    90deg,
    var(--fg) 0 2px, transparent 2px 4px,
    var(--fg) 4px 5px, transparent 5px 9px,
    var(--fg) 9px 12px, transparent 12px 14px
  );
  opacity: .3;
}

/* horizontal tech marquee */
.stack-rail{
  width: min(100%, 344px);
  overflow: hidden;
  border-block: 1px solid var(--line);
  padding-block: 9px;
  mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
}
.stack-track{
  display: inline-flex;
  gap: 22px;
  white-space: nowrap;
  animation: slide 26s linear infinite;
}
.stack-track span{
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-3);
  letter-spacing: .04em;
}
@keyframes slide{ from{ transform: translateX(0); } to{ transform: translateX(-50%); } }

/* scroll cue */
.scroll-cue{
  position: absolute;
  left: 50%;
  bottom: clamp(20px, 3vw, 34px);
  translate: -50% 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  font-size: 10px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--fg-3);
  transition: color .25s var(--ease);
}
.scroll-cue:hover{ color: var(--fg); }
.cue-line{
  width: 1px;
  height: 40px;
  background: linear-gradient(var(--line-2), transparent);
  position: relative;
  overflow: hidden;
}
.cue-line::after{
  content: "";
  position: absolute;
  inset-inline: 0;
  height: 12px;
  background: var(--accent);
  animation: cue 2.1s var(--ease) infinite;
}
@keyframes cue{
  0%{ transform: translateY(-14px); opacity: 0; }
  35%{ opacity: 1; }
  100%{ transform: translateY(42px); opacity: 0; }
}

/* ============================== 07 · TICKER ============================== */
.ticker{
  position: relative;
  z-index: 2;
  overflow: hidden;
  white-space: nowrap;
  background: var(--surface);
  border-block: 1px solid var(--line);
}
.ticker-track{
  display: inline-flex;
  align-items: center;
  animation: slide 34s linear infinite;
}
.ticker:hover .ticker-track{ animation-play-state: paused; }
.ticker-track span{
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--fg-2);
  padding: 15px 26px;
  border-right: 1px solid var(--line);
}
.ticker-track b{ color: var(--accent-2); font-weight: 500; }
.ticker-track .hl{ color: var(--accent); }

/* =========================== 08 · CONTENT BLOCKS ========================= */
/* ---- professional summary ---- */
.summary{
  position: relative;
  margin-bottom: clamp(38px, 5vw, 56px);
  padding: clamp(24px, 3.4vw, 38px) clamp(22px, 3.4vw, 40px);
  border: 1px solid var(--line-2);
  border-radius: var(--r-md);
  background:
    linear-gradient(180deg, var(--surface-2), var(--surface)),
    var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
}
/* accent spine on the leading edge */
.summary::before{
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
}
.summary-label{
  font-size: 10.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--fg-3);
  margin-bottom: 14px;
}
.summary-label::before{ content: "// "; color: var(--accent); }
.summary-body{
  font-size: var(--fs-lede);
  line-height: 1.72;
  color: var(--fg-2);
  text-wrap: pretty;
  max-width: 74ch;
}
.summary-body strong{ color: var(--fg); font-weight: 600; }
.summary-seek{
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px dashed var(--line-2);
  font-size: clamp(11px, 1vw, 12.5px);
  color: var(--accent);
}
.summary-seek .chev{ color: var(--ok); }

/* ---- education ---- */
.edu{
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(24px, 4vw, 54px);
  align-items: start;
  padding: clamp(24px, 3.4vw, 38px);
  border: 1px solid var(--line-2);
  border-radius: var(--r-md);
  background: var(--surface);
  box-shadow: var(--shadow);
  transition: border-color .3s var(--ease), transform .35s var(--ease);
}
.edu:hover{
  border-color: color-mix(in srgb, var(--accent) 34%, var(--line-2));
  transform: translateY(-2px);
}
.edu-date{
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11.5px;
  letter-spacing: .1em;
  color: var(--fg-3);
}
.edu-status{
  padding: 3px 9px;
  border: 1px solid var(--line-2);
  border-radius: 99px;
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ok);
  background: var(--ok-soft);
  background: color-mix(in srgb, var(--ok) 12%, transparent);
}
.edu-degree{
  margin-top: 12px;
  font-size: var(--fs-h3);
  text-wrap: balance;
}
.edu-school{ margin-top: 6px; color: var(--accent); font-size: clamp(11.5px, 1vw, 13px); }
.edu-core{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}
.edu-core li{
  padding: 5px 11px;
  border: 1px solid var(--line);
  border-radius: 99px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-3);
  background: var(--surface-2);
}
/* CGPA readout — right rail on desktop, stacked band on mobile */
.edu-cgpa{
  display: grid;
  justify-items: end;
  align-content: start;
  gap: 4px;
  min-width: 132px;
  padding-left: clamp(20px, 3vw, 34px);
  border-left: 1px solid var(--line);
}
.cgpa-num{
  font-family: var(--font-disp);
  font-size: clamp(34px, 4.4vw, 52px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.03em;
  color: var(--fg);
}
.cgpa-den{ font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--fg-3); }
.cgpa-bar{
  width: 100%;
  height: 4px;
  margin-top: 10px;
  border-radius: 99px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  overflow: hidden;
}
.cgpa-bar span{
  display: block;
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

/* ---- about ---- */
.about-grid{
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
  gap: clamp(30px, 4.5vw, 58px);
  align-items: start;
}
.about-copy p{ color: var(--fg-2); }
.about-copy p + p{ margin-top: 15px; }

.term{
  border: 1px solid var(--line-2);
  border-radius: var(--r-md);
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.term-bar{
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 11px 15px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
}
.term-dot{ width: 10px; height: 10px; border-radius: 50%; }
.term-dot.r{ background: #ff5f57; }
.term-dot.y{ background: #febc2e; }
.term-dot.g{ background: #28c840; }
.term-title{ margin-left: 6px; color: var(--fg-3); }

.term-body{
  padding: 18px 20px;
  font-family: var(--font-mono);
  font-size: clamp(11px, 1vw, 12.8px);
  line-height: 1.95;
  white-space: pre-wrap;
  word-break: break-word;
  color: var(--fg-2);
  overflow-x: auto;
}
.term-body .in{ color: var(--fg-3); }
.term-body .cmd{ color: var(--ok); }
.term-body .k{ color: var(--accent); }
.term-body .v{ color: var(--fg); }
.term-body .ok{ color: var(--ok); }
.term-body .caret{ width: 7px; height: .9em; translate: 0 .1em; }

.stats{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(12px, 1.4vw, 18px);
  margin-top: clamp(38px, 5vw, 62px);
}
.stats li{
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: clamp(16px, 1.9vw, 22px);
  transition: border-color .3s var(--ease), transform .3s var(--ease);
}
.stats li:hover{ border-color: var(--line-2); transform: translateY(-3px); }
.s-num{
  display: block;
  font-family: var(--font-disp);
  font-size: clamp(24px, 2.8vw, 32px);
  font-weight: 600;
  color: var(--fg);
  font-variant-numeric: tabular-nums;
}
.s-lbl{
  display: block;
  margin-top: 5px;
  font-size: 10px;
  letter-spacing: .1em;
  color: var(--fg-3);
  overflow-wrap: anywhere;
}

/* ---- experience ---- */
.timeline{ display: flex; flex-direction: column; }
.tl-item{
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: clamp(14px, 3vw, 34px);
  padding-block: clamp(26px, 3.4vw, 36px);
  border-top: 1px solid var(--line);
  position: relative;
}
.tl-item:last-child{ border-bottom: 1px solid var(--line); }
.tl-item::before{
  content: "";
  position: absolute;
  top: -1px; left: 0;
  height: 1px; width: 0;
  background: linear-gradient(90deg, var(--accent), transparent);
  transition: width .6s var(--ease);
}
.tl-item:hover::before{ width: 100%; }

.tl-meta{ display: flex; flex-direction: column; gap: 4px; padding-top: 4px; color: var(--fg-3); }
.tl-date{ color: var(--fg-2); }
.tl-role{ font-size: var(--fs-h3); }
.tl-org{ color: var(--accent); margin-top: 4px; }
.tl-desc{ margin-top: 13px; color: var(--fg-2); }
.tl-desc li{ position: relative; padding-left: 19px; }
.tl-desc li + li{ margin-top: 6px; }
.tl-desc li::before{
  content: "";
  position: absolute;
  left: 0; top: .72em;
  width: 10px; height: 1px;
  background: var(--fg-3);
}
.tl-body > .tags{ margin-top: 16px; }

/* ---- skills ---- */
.skills-grid{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
.skills-grid .card::after{
  content: attr(data-idx);
  position: absolute;
  top: 16px; right: 17px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--fg-3);
}
.skills-grid h3{ font-size: 15px; margin-bottom: 15px; padding-right: 30px; }

/* ---- projects ---- */
.projects-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
.project{ display: flex; flex-direction: column; }
.project.feature{
  grid-column: span 2;
  background:
    linear-gradient(135deg, var(--accent-soft), transparent 46%),
    var(--surface);
}
.p-top{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.p-num{ color: var(--fg-3); }
.badge{
  color: var(--accent-2);
  border: 1px solid var(--line-2);
  border-color: color-mix(in srgb, var(--accent-2) 38%, transparent);
  background: var(--amber-soft);
  padding: 4px 11px;
  border-radius: 99px;
  font-size: 10.5px;
  white-space: nowrap;
}
/* work-in-progress reads as a neutral state, not an award */
.badge.wip{
  color: var(--fg-3);
  border-color: var(--line-2);
  background: var(--surface-2);
}
.badge.wip::before{
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-right: 6px;
  border-radius: 50%;
  background: var(--accent-2);
  translate: 0 -1px;
  animation: pulse 2s var(--ease) infinite;
}
.project h3{ font-size: var(--fs-h3); margin-top: 15px; }
.project > p{ color: var(--fg-2); font-size: 14.5px; margin-top: 11px; flex: 1 1 auto; }
.project .tags{ margin-top: 18px; }
.more{ margin-top: clamp(22px, 3vw, 30px); }

/* ---- certifications ---- */
.certs{ display: flex; flex-direction: column; }
.cert{
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr) auto;
  gap: clamp(10px, 2.4vw, 26px);
  align-items: center;
  padding-block: 19px;
  border-top: 1px solid var(--line);
  transition: background .3s var(--ease), padding-inline .3s var(--ease);
}
.cert:last-child{ border-bottom: 1px solid var(--line); }
.cert:hover{
  background: var(--surface);
  padding-inline: 14px;
  border-radius: var(--r-sm);
}
.c-year{ color: var(--fg-3); }
.c-main{ display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.c-name{ font-family: var(--font-disp); font-weight: 600; font-size: 15.5px; color: var(--fg); }
.c-issuer{ color: var(--fg-2); }
.c-id{ color: var(--fg-3); text-align: right; font-size: 10.5px; }

/* ---- wins & responsibilities ---- */
.wins-grid{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
.win{ display: flex; flex-direction: column; }
.w-year{ color: var(--accent); }
.win h3{ font-size: 16.5px; margin-top: 10px; }
.w-copy{ color: var(--fg-2); font-size: 14px; margin-top: 10px; flex: 1 1 auto; }
.w-tagline{
  margin-top: 18px;
  padding-top: 13px;
  border-top: 1px dashed var(--line);
  color: var(--fg-3);
  font-size: 10.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
}

/* ============================== 09 · CONTACT ============================= */
.contact-inner{ max-width: 720px; margin-inline: auto; text-align: center; }
.contact-inner h2{ font-size: var(--fs-h2); }
.contact-lede{
  color: var(--fg-2);
  font-size: var(--fs-lede);
  margin-top: 16px;
  max-width: 58ch;
  margin-inline: auto;
}
.contact-actions{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: clamp(26px, 3.4vw, 34px);
}
.contact-email{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: clamp(26px, 3.4vw, 34px);
  font-size: clamp(15px, 2.4vw, 21px);
  color: var(--fg);
  border-bottom: 1px solid var(--line-2);
  padding-bottom: 8px;
  word-break: break-all;
  transition: color .25s var(--ease), border-color .25s var(--ease), gap .25s var(--ease);
}
.contact-email svg{ width: 16px; height: 16px; flex: 0 0 auto; }
.contact-email:hover{ color: var(--accent); border-color: var(--accent); gap: 15px; }

.contact-cards{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 12px;
  margin-top: clamp(34px, 4.4vw, 48px);
  text-align: left;
}
/* five cards in a two-up grid would leave an orphan — let the last one span */
.contact-cards li:last-child:nth-child(odd){ grid-column: 1 / -1; }
.contact-cards a{
  position: relative;
  display: grid;
  /* explicit areas — auto-placement would stack the label beside the value */
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas:
    "ico key arrow"
    "ico val arrow";
  align-items: center;
  gap: 2px 13px;
  height: 100%;
  padding: 15px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  transition: transform .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.contact-cards a:hover{
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: var(--shadow);
}
.cc-ico{
  grid-area: ico;
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 11px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--accent);
  transition: background .3s var(--ease), color .3s var(--ease);
}
.cc-ico svg{ width: 17px; height: 17px; }
.contact-cards a:hover .cc-ico{ background: var(--accent-soft); }
.cc-k{ grid-area: key; color: var(--fg-3); font-size: 9.5px; letter-spacing: .14em; align-self: end; }
.cc-v{ grid-area: val; color: var(--fg); font-size: 12px; align-self: start; overflow-wrap: anywhere; }
.cc-arrow{
  grid-area: arrow;
  width: 15px; height: 15px;
  flex: 0 0 auto;
  color: var(--fg-3);
  transition: color .3s var(--ease), transform .3s var(--ease);
}
.contact-cards a:hover .cc-arrow{ color: var(--accent); transform: translate(2px, -2px); }

/* ---- footer ---- */
.footer{
  border-top: 1px solid var(--line);
  padding-block: 26px;
  color: var(--fg-3);
  position: relative;
  z-index: 1;
}
.footer-inner{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.footer-links{ display: flex; flex-wrap: wrap; gap: 18px; }
.footer-links a{ transition: color .25s var(--ease); }
.footer-links a:hover{ color: var(--fg); }

/* ---- back to top ---- */
.to-top{
  position: fixed;
  right: clamp(14px, 2vw, 26px);
  bottom: clamp(14px, 2vw, 26px);
  z-index: 95;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: var(--surface-2);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--line-2);
  color: var(--fg);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px) scale(.9);
  transition: opacity .3s var(--ease), transform .3s var(--ease),
              visibility .3s var(--ease), border-color .25s var(--ease);
}
.to-top.show{ opacity: 1; visibility: visible; transform: none; }
.to-top:hover{ border-color: var(--accent); color: var(--accent); }
.to-top svg{ width: 18px; height: 18px; }

/* ---- toast ---- */
.toast{
  position: fixed;
  left: 50%;
  bottom: 26px;
  z-index: 200;
  translate: -50% 130%;
  display: flex;
  align-items: center;
  gap: 9px;
  max-width: calc(100vw - 32px);
  padding: 11px 20px;
  border-radius: 99px;
  background: var(--fg);
  color: var(--bg);
  font-family: var(--font-mono);
  font-size: 12.5px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transition: translate .45s var(--ease), opacity .35s var(--ease);
}
.toast.show{ translate: -50% 0; opacity: 1; }

/* ============================== 10 · REVEAL ============================== */
.reveal{
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
  transition-delay: var(--d, 0ms);
}
.reveal.in{ opacity: 1; transform: none; }

/* ============================ 11 · RESPONSIVE =========================== */
@media (max-width: 1080px){
  .nav-links{ gap: 16px; }
  .nav-idx{ display: none; }
}

@media (max-width: 980px){
  .hero{ padding-bottom: clamp(96px, 14vw, 132px); }
  .hero-wrap{ grid-template-columns: minmax(0, 1fr); gap: 44px; }
  .hero-visual{ order: 2; animation: none; }
  .hero-bio{ max-width: none; }
  /* single column stacks copy above the card, so the scrim runs top-down instead */
  .hero-veil{
    background:
      linear-gradient(180deg, var(--bg) 0%, color-mix(in srgb, var(--bg) 76%, transparent) 40%,
                      color-mix(in srgb, var(--bg) 34%, transparent) 72%, var(--bg) 100%),
      radial-gradient(150% 70% at 50% 40%, transparent 40%, var(--bg) 100%),
      radial-gradient(420px 320px at 92% 6%, var(--accent-soft), transparent 62%),
      radial-gradient(400px 300px at 4% 96%, var(--amber-soft), transparent 62%);
  }
  .about-grid{ grid-template-columns: minmax(0, 1fr); }
  .skills-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wins-grid{ grid-template-columns: minmax(0, 1fr); }
}

/* mobile nav sheet */
@media (max-width: 900px){
  .nav-status{ display: none; }
  .nav-toggle{ display: grid; }

  .nav-links{
    position: fixed;
    inset: var(--nav-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--gut) 22px;
    /* eight items make this a full sheet rather than a peek-through dropdown,
       so keep it opaque — the hero display type behind it was ghosting into
       the labels at 96% */
    background: var(--bg);
    background-image: linear-gradient(180deg, var(--surface), transparent 240px);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    /* short viewports (landscape phones) must still reach the last link */
    max-height: calc(100vh - var(--nav-h));
    max-height: calc(100dvh - var(--nav-h));
    overflow-y: auto;
    overscroll-behavior: contain;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition: opacity .3s var(--ease), transform .35s var(--ease), visibility .3s var(--ease);
  }
  .nav-links.open{ opacity: 1; visibility: visible; transform: none; }
  .nav-links a{
    font-size: 16px;
    padding: 15px 2px;
    border-bottom: 1px solid var(--line);
  }
  .nav-links a::after{ display: none; }
  .nav-idx{ display: inline; font-size: 10px; color: var(--accent); }
  body.nav-open{ overflow: hidden; }
}

@media (max-width: 760px){
  :root{ --nav-h: 60px; }
  .projects-grid{ grid-template-columns: minmax(0, 1fr); }
  .project.feature{ grid-column: span 1; }
  .stats{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tl-item{ grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .tl-meta{ flex-direction: row; gap: 12px; padding-top: 0; }
  .cert{ grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .c-id{ text-align: left; }
  /* CGPA rail becomes a band under the degree */
  .edu{ grid-template-columns: minmax(0, 1fr); }
  .edu-cgpa{
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas:
      "num den"
      "bar bar";
    justify-items: start;
    align-items: baseline;
    gap: 4px 10px;
    min-width: 0;
    padding: 18px 0 0;
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .cgpa-num{ grid-area: num; font-size: 40px; }
  .cgpa-den{ grid-area: den; }
  .cgpa-bar{ grid-area: bar; margin-top: 8px; align-self: center; }
  .footer-inner{ justify-content: center; text-align: center; }
}

@media (max-width: 560px){
  .skills-grid{ grid-template-columns: minmax(0, 1fr); }
  .logo-text{ display: none; }
  /* narrow measure — pull the padding in and tighten the leading so the
     summary reads as a paragraph rather than a column of short lines */
  .summary{ padding: 22px 18px; }
  .summary-body{ line-height: 1.62; }
  /* three facts wrap to an orphaned 2+1 — read them as a spec sheet instead */
  .hero-facts{ display: grid; gap: 0; }
  .hero-facts li{
    flex-direction: row;
    align-items: baseline;
    gap: 10px;
    padding: 9px 0;
    border-bottom: 1px solid var(--line);
  }
  .hero-facts li:last-child{ border-bottom: 0; padding-bottom: 0; }
  .f-lbl{ margin-left: auto; text-align: right; }
  .hero-ctas .btn{ flex: 1 1 100%; }
  .contact-actions .btn{ flex: 1 1 100%; }
  .idcard{ width: min(100%, 300px); }
  .stack-rail{ width: min(100%, 300px); }
  .scroll-cue{ display: none; }
}

@media (max-width: 380px){
  .idcard-rows{ grid-template-columns: 1fr; }
}

/* keep hover-only effects off touch devices */
@media (hover: none){
  .card:hover, .stats li:hover, .contact-cards a:hover, .to-top:hover{ transform: none; }
  .spot::before, .idcard-sheen{ display: none; }
}

/* ======================== reduced motion + print ======================== */
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *, *::before, *::after{
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal{ opacity: 1; transform: none; }
  .hero-visual{ animation: none; }
}

@media print{
  .nav, .hero-canvas, .hero-veil, .scroll-cue, .to-top, .toast,
  .progress, .ticker, .stack-rail, .skip-link{ display: none !important; }
  body{ background: #fff; color: #000; }
  body::after{ display: none; }
  .section{ padding-block: 24px; break-inside: avoid; }
  .card, .idcard{ box-shadow: none; border: 1px solid #ccc; }
  a{ text-decoration: underline; }
}
