/* ==========================================================================
   Sadia Rahman Ettala — portfolio
   Palette: noren indigo · rice · salmon · wasabi
   ========================================================================== */

@font-face {
  font-family: "Bricolage";
  src: url("../fonts/bricolage.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "DM Mono";
  src: url("../fonts/dmmono-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "DM Mono";
  src: url("../fonts/dmmono-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --indigo-950: #0e1428;
  --indigo-900: #141b33;
  --indigo-800: #1c2547;
  --indigo-700: #2a3563;
  --rice: #f6f4ee;
  --rice-2: #ebe8df;
  --paper: #ffffff;
  --ink: #141b33;
  --salmon: #ff7a59;
  --salmon-ink: #c2401f;
  --wasabi: #b9d15c;
  --mute-d: #a9b1d0;
  --mute-l: #565d78;
  --line-d: rgba(246, 244, 238, 0.14);
  --line-l: rgba(20, 27, 51, 0.14);

  --display: "Bricolage", "Helvetica Neue", Arial, sans-serif;
  --mono: "DM Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --wrap: 1200px;
  --pad: clamp(1.25rem, 4vw, 3rem);
  --sec: clamp(5rem, 11vw, 9.5rem);
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 5.5rem;
}

body {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  line-height: 1.6;
  color: var(--ink);
  background: var(--indigo-900);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
::selection { background: var(--salmon); color: var(--ink); }

:focus-visible {
  outline: 3px solid var(--salmon);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap { width: min(100% - 2 * var(--pad), var(--wrap)); margin-inline: auto; }
.vh {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}
.skip {
  position: fixed; left: 1rem; top: -4rem; z-index: 200;
  background: var(--salmon); color: var(--ink); padding: 0.6rem 1rem;
  border-radius: 999px; font-weight: 600; transition: top 0.2s;
}
.skip:focus { top: 1rem; }

.mono {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ---------- scroll progress ---------- */
.progress {
  position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 120;
  background: var(--salmon);
  transform-origin: 0 50%;
  transform: scaleX(var(--scroll, 0));
}

/* ---------- header ---------- */
.header {
  position: fixed; top: 0.9rem; left: 0; right: 0; z-index: 100;
  pointer-events: none;
}
.header__bar {
  pointer-events: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  width: min(100% - 2 * var(--pad), var(--wrap));
  margin-inline: auto;
  padding: 0.5rem 0.6rem 0.5rem 0.75rem;
  border-radius: 999px;
  background: rgba(14, 20, 40, 0.72);
  border: 1px solid var(--line-d);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  color: var(--rice);
  transition: background 0.3s, box-shadow 0.3s;
}
.header.is-scrolled .header__bar {
  background: rgba(14, 20, 40, 0.9);
  box-shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.5);
}
.brand { display: flex; align-items: center; gap: 0.65rem; font-weight: 700; letter-spacing: -0.01em; }
.brand svg { width: 38px; height: 38px; flex: none; }
.brand__name { line-height: 1.05; font-size: 0.98rem; }
.brand__name small {
  display: block; font-family: var(--mono); font-weight: 400;
  font-size: 0.62rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--mute-d);
}
.brand:hover .logo-spin { transform: rotate(180deg); }
.logo-spin { transform-origin: 24px 24px; transition: transform 0.9s var(--ease-out); }

.nav { display: flex; align-items: center; gap: 0.2rem; }
.nav a {
  padding: 0.5rem 0.85rem; border-radius: 999px; font-size: 0.92rem; font-weight: 500;
  color: var(--mute-d); transition: color 0.2s, background 0.2s;
}
.nav a:hover, .nav a[aria-current="true"] { color: var(--rice); background: rgba(246, 244, 238, 0.08); }

.header__end { display: flex; align-items: center; gap: 0.5rem; }
.lang {
  display: flex; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.08em;
  border: 1px solid var(--line-d); border-radius: 999px; overflow: hidden;
}
.lang a, .lang span { padding: 0.45rem 0.6rem; color: var(--mute-d); }
.lang [aria-current] { background: var(--rice); color: var(--ink); }
.lang a:hover { color: var(--rice); }

.btn {
  display: inline-flex; align-items: center; gap: 0.55rem;
  padding: 0.85rem 1.35rem; border-radius: 999px;
  font-weight: 650; font-size: 0.98rem; line-height: 1;
  transition: transform 0.25s var(--ease), background 0.25s, color 0.25s, box-shadow 0.25s;
  white-space: nowrap;
}
.btn svg { width: 1.05em; height: 1.05em; transition: transform 0.25s var(--ease); }
.btn:hover svg { transform: translate(2px, -2px); }
.btn--salmon { background: var(--salmon); color: var(--ink); }
.btn--salmon:hover { transform: translateY(-2px); box-shadow: 0 12px 28px -10px rgba(255, 122, 89, 0.7); }
.btn--ghost { border: 1px solid var(--line-d); color: var(--rice); }
.btn--ghost:hover { background: var(--rice); color: var(--ink); }
.btn--sm { padding: 0.65rem 1rem; font-size: 0.88rem; }

.menu-btn {
  display: none; width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--line-d); position: relative;
}
.menu-btn span, .menu-btn span::before {
  content: ""; position: absolute; left: 11px; right: 11px; height: 2px; background: var(--rice);
  border-radius: 2px; transition: transform 0.3s var(--ease);
}
.menu-btn span { top: 15px; }
.menu-btn span::before { left: 0; right: 0; top: 7px; }
.menu-btn[aria-expanded="true"] span { transform: translateY(3.5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span::before { transform: translateY(-7px) rotate(-90deg); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: min(100svh, 1100px);
  padding: clamp(7.5rem, 14vh, 10rem) 0 clamp(3rem, 7vh, 5rem);
  background:
    radial-gradient(600px circle at var(--mx, 70%) var(--my, 30%), rgba(255, 122, 89, 0.16), transparent 65%),
    linear-gradient(180deg, var(--indigo-950), var(--indigo-900) 55%, var(--indigo-800));
  color: var(--rice);
  overflow: hidden;
  display: flex; align-items: center;
}
.hero__rings {
  position: absolute; right: -18vw; top: -22vw; width: 78vw; max-width: 1100px; aspect-ratio: 1;
  pointer-events: none; opacity: 0.55;
  animation: drift 60s linear infinite;
}
.hero__rings circle { fill: none; stroke: var(--line-d); }
.hero__rings .dash { stroke-dasharray: 2 14; stroke: rgba(255, 122, 89, 0.5); stroke-linecap: round; }
@keyframes drift { to { transform: rotate(360deg); } }

.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.85fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.7rem;
  color: var(--mute-d);
}
.eyebrow::before {
  content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--wasabi);
  box-shadow: 0 0 0 0 rgba(185, 209, 92, 0.6);
  animation: pulse 2.2s infinite;
}
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(185, 209, 92, 0); } 100% { box-shadow: 0 0 0 0 rgba(185, 209, 92, 0); } }

.hero h1 {
  margin: 1.4rem 0 1.6rem;
  font-size: clamp(3.6rem, 11.4vw, 9.25rem);
  font-weight: 800;
  line-height: 0.86;
  letter-spacing: -0.045em;
  text-transform: uppercase;
  font-stretch: 85%;
}
.hero h1 .line { display: block; overflow: hidden; padding-block: 0.04em; }
.hero h1 .line > span { display: block; }
.hero h1 .line:nth-child(2) > span { color: #8f9ac6; }
.hero h1 .line:nth-child(3) > span { color: var(--salmon); }

.hero__roles {
  display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.5rem;
}
.hero__roles li {
  font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 0.45rem 0.8rem; border: 1px solid var(--line-d); border-radius: 999px;
}
.hero__lead { max-width: 34rem; font-size: clamp(1.1rem, 1rem + 0.5vw, 1.35rem); line-height: 1.45; color: #d8dcee; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }

/* receipt */
.printer { position: relative; width: min(100%, 340px); justify-self: end; }
.printer__slot {
  position: relative; z-index: 2; height: 22px; border-radius: 12px;
  background: linear-gradient(180deg, #2c3766, #0c1124);
  box-shadow: inset 0 -6px 0 -2px #05070f, 0 14px 30px -12px rgba(0, 0, 0, 0.7);
}
.printer__slot::after {
  content: ""; position: absolute; right: 16px; top: 8px; width: 6px; height: 6px; border-radius: 50%;
  background: var(--wasabi); animation: blink 1.1s steps(2) 6;
}
@keyframes blink { 50% { opacity: 0.2; } }
.printer__feed { overflow: hidden; margin: -8px 12px 0; padding-bottom: 14px; }
.receipt {
  --s: 7px;
  background: var(--paper); color: var(--ink);
  font-family: var(--mono); font-size: 0.74rem; line-height: 1.55;
  padding: 1.6rem 1.15rem 1.9rem;
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / calc(2 * var(--s)) 100%;
  mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / calc(2 * var(--s)) 100%;
  transform-origin: 50% 0;
}
.receipt__head { text-align: center; }
.receipt__head strong { display: block; font-family: var(--display); font-weight: 800; font-size: 1.15rem; letter-spacing: -0.02em; line-height: 1.1; }
.receipt hr { border: 0; border-top: 1.5px dashed rgba(20, 27, 51, 0.45); margin: 0.7rem 0; }
.receipt dl > div, .receipt__row { display: flex; justify-content: space-between; gap: 1rem; }
.receipt dd { text-align: right; font-weight: 500; }
.receipt li { display: flex; justify-content: space-between; }
.receipt li b { color: var(--salmon-ink); font-weight: 500; }
.receipt__total { font-weight: 500; font-size: 0.8rem; }
.barcode {
  height: 38px; margin: 0.9rem 0 0.5rem;
  background: repeating-linear-gradient(90deg,
    var(--ink) 0 2px, transparent 2px 4px, var(--ink) 4px 5px, transparent 5px 8px,
    var(--ink) 8px 11px, transparent 11px 12px, var(--ink) 12px 13px, transparent 13px 17px);
}
.receipt__thanks { text-align: center; letter-spacing: 0.08em; }

.badge {
  position: absolute; z-index: 3; left: -92px; bottom: -40px;
  width: 128px; height: 128px;
}
.badge__text { animation: drift 22s linear infinite; transform-origin: 50% 50%; }
.badge text { font-family: var(--mono); font-size: 9.4px; letter-spacing: 0.16em; fill: var(--rice); text-transform: uppercase; }

.scroll-cue {
  position: absolute; left: 50%; bottom: 1.4rem; transform: translateX(-50%);
  color: var(--mute-d); display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
}
.scroll-cue i { width: 1px; height: 34px; background: linear-gradient(var(--rice), transparent); animation: cue 1.8s var(--ease) infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); } 60% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }

/* hero intro animation (only with JS, only when motion is OK) */
@media (prefers-reduced-motion: no-preference) {
  .js .hero h1 .line > span { transform: translateY(112%); }
  .js .hero [data-in] { opacity: 0; transform: translateY(18px); }
  .js .receipt { transform: translateY(-102%); }
  .js .badge { opacity: 0; transform: scale(0.6) rotate(-40deg); }

  .js.is-ready .hero h1 .line > span { transform: none; transition: transform 1.1s var(--ease-out); }
  .js.is-ready .hero h1 .line:nth-child(2) > span { transition-delay: 0.09s; }
  .js.is-ready .hero h1 .line:nth-child(3) > span { transition-delay: 0.18s; }
  .js.is-ready .hero [data-in] { opacity: 1; transform: none; transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); transition-delay: calc(0.35s + var(--i, 0) * 0.09s); }
  .js.is-ready .receipt { animation: print 2.6s steps(26, end) 0.7s forwards, sway 7s ease-in-out 3.6s infinite alternate; }
  .js.is-ready .badge { opacity: 1; transform: none; transition: opacity 0.6s 2.6s, transform 1s var(--ease-out) 2.6s; }
}
@keyframes print { to { transform: translateY(0); } }
@keyframes sway { from { transform: rotate(-0.7deg); } to { transform: rotate(0.9deg); } }

/* ---------- marquee ---------- */
.marquee {
  background: var(--salmon); color: var(--ink);
  padding: 1.1rem 0; overflow: hidden;
  transform: rotate(-1.4deg) scale(1.03);
  margin-block: -1.2rem; position: relative; z-index: 2;
  border-block: 2px solid var(--ink);
}
.marquee__track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee ul { display: flex; flex: none; }
.marquee li {
  font-size: clamp(1.4rem, 3.2vw, 2.4rem); font-weight: 800; text-transform: uppercase;
  letter-spacing: -0.02em; font-stretch: 85%; white-space: nowrap;
  display: flex; align-items: center;
}
.marquee li::after {
  content: ""; width: 0.5em; height: 0.5em; margin-inline: 0.8em; border-radius: 50%;
  background: var(--ink); box-shadow: 0 0 0 0.12em var(--salmon), 0 0 0 0.2em var(--ink);
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
.sec { padding-block: var(--sec); position: relative; }
.sec--light { background: var(--rice); color: var(--ink); }
.sec--dark { background: var(--indigo-900); color: var(--rice); }
.sec__label { display: flex; align-items: center; gap: 0.8rem; margin-bottom: 1.4rem; }
.sec--light .sec__label { color: var(--salmon-ink); }
.sec--dark .sec__label { color: var(--salmon); }
.sec__label::before { content: ""; width: 2.2rem; height: 1.5px; background: currentColor; }
.h2 {
  font-size: clamp(2.3rem, 6vw, 4.9rem);
  font-weight: 800; line-height: 0.95; letter-spacing: -0.04em; font-stretch: 88%;
  text-wrap: balance;
}
.h2 em { font-style: normal; color: var(--salmon-ink); }
.sec--dark .h2 em { color: var(--salmon); }
.lede { font-size: clamp(1.1rem, 1rem + 0.45vw, 1.3rem); line-height: 1.55; max-width: 38rem; }
.sec--light .lede { color: #2b3250; }
.sec--dark .lede { color: #cfd4e8; }

/* reveal */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { opacity: 0; transform: translateY(30px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); transition-delay: calc(var(--i, 0) * 0.09s); }
  .js [data-reveal].in { opacity: 1; transform: none; }
}

/* ---------- about ---------- */
.about__top { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(2rem, 6vw, 5rem); align-items: end; }
.proof { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: clamp(3rem, 6vw, 5rem); }
.card {
  background: var(--paper); border: 1.5px solid var(--ink); border-radius: 22px;
  padding: 1.6rem 1.5rem 1.7rem; position: relative;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.js [data-reveal].card.in { transition-delay: 0s; }
.card:hover { transform: translate(-4px, -4px); box-shadow: 8px 8px 0 var(--ink); }
.card__n { position: absolute; top: 1.3rem; right: 1.4rem; color: var(--mute-l); }
.card svg { width: 46px; height: 46px; margin-bottom: 1.6rem; }
.card svg * { fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.card svg .a { stroke: var(--salmon-ink); }
.card h3 { font-size: 1.5rem; font-weight: 750; letter-spacing: -0.025em; line-height: 1.1; margin-bottom: 0.6rem; }
.card p { color: #343b58; font-size: 1rem; }
@media (prefers-reduced-motion: no-preference) {
  .js .card svg * { stroke-dasharray: 1; stroke-dashoffset: 1; }
  .js .card.in svg * { stroke-dashoffset: 0; transition: stroke-dashoffset 1.3s var(--ease) 0.25s; }
}

.count {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: clamp(3rem, 6vw, 5rem); border-top: 1.5px solid var(--ink);
}
.count > div { padding: 1.5rem 1rem 0 0; border-right: 1px solid var(--line-l); padding-left: 1.2rem; }
.count > div:first-child { padding-left: 0; }
.count > div:last-child { border-right: 0; }
.count dt {
  font-size: clamp(3.6rem, 9vw, 7rem); font-weight: 800; line-height: 0.85;
  letter-spacing: -0.05em; font-variant-numeric: tabular-nums;
}
.count > div:last-child dt { color: var(--salmon-ink); }
.count dd { margin-top: 0.7rem; color: var(--mute-l); max-width: 14rem; }
.count dd b { display: block; color: var(--ink); font-family: var(--display); font-size: 1.05rem; letter-spacing: 0; text-transform: none; font-weight: 700; }

/* ---------- experience / tickets ---------- */
.exp__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr); gap: 2rem; align-items: end; margin-bottom: clamp(3rem, 6vw, 4.5rem); }
.rail {
  position: relative; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; padding-top: 34px;
}
.rail::before {
  content: ""; position: absolute; top: 0; left: calc(-1 * var(--pad)); right: calc(-1 * var(--pad)); height: 16px;
  background: linear-gradient(180deg, #56618f, #262f57 55%, #0c1124);
  border-radius: 3px; box-shadow: 0 10px 22px -8px rgba(0, 0, 0, 0.8);
}
.ticket {
  --r: -1.2deg;
  position: relative; color: var(--ink);
  transform: rotate(var(--r)); transform-origin: 50% -26px;
  filter: drop-shadow(0 26px 22px rgba(0, 0, 0, 0.45));
  transition: transform 0.6s var(--ease-out);
}
.ticket__paper {
  background: var(--paper);
  padding: 2rem clamp(1.3rem, 3vw, 2.2rem) 2.3rem;
  --s: 8px;
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / calc(2 * var(--s)) 100%;
  mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / calc(2 * var(--s)) 100%;
}
.ticket:nth-child(2) { --r: 1.6deg; }
.ticket:hover { transform: rotate(0deg) translateY(4px); }
.ticket__clip {
  position: absolute; z-index: 2; top: -36px; left: 50%; width: 54px; height: 30px; margin-left: -27px;
}
.ticket__meta { display: flex; justify-content: space-between; gap: 1rem; color: var(--mute-l); padding-bottom: 0.9rem; border-bottom: 1.5px dashed rgba(20, 27, 51, 0.4); }
.ticket__meta b { color: var(--salmon-ink); font-weight: 500; }
.ticket h3 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1; margin: 1.2rem 0 0.4rem; font-stretch: 88%; }
.ticket__role { font-weight: 600; color: #343b58; margin-bottom: 1.3rem; }
.ticket ul { display: grid; gap: 0.55rem; }
.ticket li { display: grid; grid-template-columns: 1.5rem 1fr; gap: 0.5rem; align-items: start; font-size: 1rem; line-height: 1.4; }
.ticket li::before {
  content: ""; width: 1.15rem; height: 1.15rem; margin-top: 0.12rem; border: 1.5px solid var(--ink); border-radius: 4px;
  background: var(--wasabi) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='%23141b33' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 80% no-repeat;
}
@media (prefers-reduced-motion: no-preference) {
  .js .ticket[data-reveal] { opacity: 0; transform: rotate(10deg); transition: none; }
  .js .ticket[data-reveal].in { opacity: 1; animation: swing 1.5s var(--ease) both; animation-delay: calc(var(--i, 0) * 0.18s); }
  .js .ticket[data-reveal].settled { animation: none; transform: rotate(var(--r)); transition: transform 0.6s var(--ease-out); }
  .js .ticket[data-reveal].settled:hover { transform: rotate(0deg) translateY(4px); }
  .js .ticket li { opacity: 0; transform: translateX(-10px); }
  .js .ticket.in li { opacity: 1; transform: none; transition: opacity 0.5s, transform 0.5s var(--ease); transition-delay: calc(0.5s + var(--n, 0) * 0.08s); }
}
@keyframes swing {
  0% { transform: rotate(10deg); opacity: 0; }
  20% { opacity: 1; }
  40% { transform: rotate(-5deg); }
  62% { transform: rotate(3deg); }
  82% { transform: rotate(-1deg); }
  100% { transform: rotate(var(--r)); opacity: 1; }
}

/* ---------- menu (skills) ---------- */
.menu-card {
  background: var(--paper); border: 1.5px solid var(--ink); border-radius: 28px;
  padding: clamp(1.6rem, 5vw, 4rem); margin-top: clamp(2.5rem, 5vw, 4rem);
  box-shadow: 10px 10px 0 var(--ink);
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(2rem, 4vw, 3.5rem);
  position: relative;
}
.course h3 { display: flex; align-items: baseline; gap: 0.7rem; font-size: 1.55rem; font-weight: 800; letter-spacing: -0.03em; padding-bottom: 0.9rem; border-bottom: 1.5px solid var(--ink); margin-bottom: 0.4rem; }
.course h3 span { color: var(--salmon-ink); }
.dish { padding: 0.95rem 0; border-bottom: 1px dashed var(--line-l); position: relative; }
.dish__name { display: flex; align-items: baseline; gap: 0.5rem; font-weight: 700; font-size: 1.12rem; letter-spacing: -0.01em; }
.dish__name::after { content: ""; flex: 1; border-bottom: 2px dotted rgba(20, 27, 51, 0.35); transform: translateY(-0.25em); min-width: 1rem; }
.dish__name i {
  order: 2; font-style: normal; width: 0.7rem; height: 0.7rem; border-radius: 50%; background: var(--salmon);
  border: 1.5px solid var(--ink); flex: none; align-self: center; transition: transform 0.35s var(--ease-out), background 0.3s;
}
.dish:hover .dish__name i { transform: scale(1.7); background: var(--wasabi); }
.dish__note { color: var(--mute-l); margin-top: 0.15rem; text-transform: none; letter-spacing: 0.01em; font-size: 0.82rem; }

/* ---------- shift ---------- */
.shift { background: var(--indigo-800); }
.shift__track { position: relative; margin-top: clamp(3rem, 6vw, 5rem); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.2rem; padding-top: 3.2rem; }
.shift__line { position: absolute; top: 12px; left: 0; right: 0; height: 2px; background: var(--line-d); }
.shift__line i { position: absolute; inset: 0; background: var(--salmon); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }
.shift__line b {
  position: absolute; top: 50%; left: calc(var(--p, 0) * 100%); width: 26px; height: 26px; margin: -13px 0 0 -13px;
  border-radius: 50%; background: var(--salmon); border: 3px solid var(--indigo-800);
  box-shadow: 0 0 0 2px var(--salmon), 0 0 24px 4px rgba(255, 122, 89, 0.5);
}
.step { position: relative; padding: 1.4rem 1.3rem 1.6rem; border: 1px solid var(--line-d); border-radius: 20px; background: rgba(14, 20, 40, 0.35); transition: background 0.5s, border-color 0.5s, transform 0.5s var(--ease); }
.step::before { content: ""; position: absolute; top: calc(-3.2rem + 8px); left: 1.3rem; width: 10px; height: 10px; border-radius: 50%; background: var(--indigo-800); border: 2px solid var(--mute-d); transition: 0.4s; }
.step.is-on { background: var(--rice); color: var(--ink); border-color: var(--rice); transform: translateY(-6px); }
.step.is-on::before { background: var(--salmon); border-color: var(--salmon); }
.step__k { color: var(--salmon); transition: color 0.4s; }
.step.is-on .step__k { color: var(--salmon-ink); }
.step h3 { font-size: 1.9rem; font-weight: 800; letter-spacing: -0.035em; line-height: 1; margin: 0.5rem 0 0.9rem; }
.step li { position: relative; padding-left: 1.1rem; font-size: 0.98rem; line-height: 1.4; margin-top: 0.45rem; color: #cfd4e8; transition: color 0.4s; }
.step.is-on li { color: #2b3250; }
.step li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 0.45rem; height: 2px; background: currentColor; }

/* ---------- languages & education ---------- */
.langs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: clamp(2.5rem, 5vw, 4rem); }
.tongue {
  border: 1.5px solid var(--ink); border-radius: 22px; padding: 1.5rem; min-height: 15rem;
  display: flex; flex-direction: column; justify-content: space-between;
  background: var(--paper); transition: background 0.5s var(--ease), color 0.5s, transform 0.5s var(--ease);
}
.tongue__hi { font-size: clamp(2.2rem, 4.4vw, 3.5rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1.05; }
.tongue[lang="bn"] .tongue__hi { letter-spacing: 0; font-family: "Kohinoor Bangla", "Noto Sans Bengali", "Hind Siliguri", "Vrinda", var(--display); line-height: 1.3; }
.tongue__name { font-weight: 750; font-size: 1.25rem; letter-spacing: -0.02em; }
.tongue .mono { color: var(--mute-l); transition: color 0.5s; }
.tongue.is-on { background: var(--ink); color: var(--rice); transform: translateY(-6px); }
.tongue.is-on .tongue__hi { color: var(--salmon); }
.tongue.is-on .mono { color: var(--mute-d); }

.edu { margin-top: clamp(3.5rem, 7vw, 6rem); display: grid; grid-template-columns: minmax(0, 0.5fr) minmax(0, 1fr); gap: 2rem; }
.edu h3 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 800; letter-spacing: -0.035em; line-height: 1; }
.edu li { display: grid; grid-template-columns: 9.5rem 1fr; gap: 1rem; padding: 1.2rem 0; border-top: 1.5px solid var(--ink); align-items: baseline; }
.edu li:last-child { border-bottom: 1.5px solid var(--ink); }
.edu li .mono { color: var(--salmon-ink); }
.edu li b { display: block; font-size: 1.3rem; font-weight: 750; letter-spacing: -0.02em; line-height: 1.2; }
.edu li span { color: var(--mute-l); }

/* ---------- contact ---------- */
.contact { background: var(--indigo-950); color: var(--rice); padding-block: var(--sec) 2rem; overflow: hidden; position: relative; }
.contact__plate { position: absolute; right: -14rem; bottom: -14rem; width: 44rem; opacity: 0.5; animation: drift 80s linear infinite reverse; pointer-events: none; }
.contact__plate circle { fill: none; stroke: var(--line-d); }
.contact__plate .dash { stroke: rgba(255, 122, 89, 0.5); stroke-dasharray: 2 14; stroke-linecap: round; }
.next {
  font-size: clamp(2.9rem, 10.4vw, 9rem); font-weight: 800; line-height: 0.88;
  letter-spacing: -0.045em; text-transform: uppercase; font-stretch: 85%; position: relative;
}
.next span { display: block; }
.next .o { color: #8f9ac6; }
.next .s { color: var(--salmon); }
.contact__grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); margin-top: clamp(3rem, 6vw, 5rem); align-items: end; }
.mail {
  display: inline-block; font-size: clamp(1.25rem, 3.3vw, 2.5rem); font-weight: 750; letter-spacing: -0.03em;
  background: linear-gradient(var(--salmon), var(--salmon)) 0 100% / 100% 2px no-repeat;
  padding-bottom: 0.15em; transition: background-size 0.4s var(--ease), color 0.3s; word-break: break-all;
}
.mail:hover { background-size: 100% 100%; color: var(--ink); }
.contact__list { display: grid; gap: 0; }
.contact__list > div { display: grid; grid-template-columns: 7rem 1fr; gap: 1rem; padding: 1rem 0; border-top: 1px solid var(--line-d); align-items: baseline; }
.contact__list dt { color: var(--mute-d); }
.contact__list dd { font-size: 1.15rem; font-weight: 600; }
.contact__list a:hover { color: var(--salmon); }
.copy { margin-left: 0.6rem; color: var(--mute-d); border: 1px solid var(--line-d); border-radius: 999px; padding: 0.3rem 0.65rem; transition: 0.2s; }
.copy:hover { color: var(--ink); background: var(--rice); }

.footer { position: relative; margin-top: clamp(4rem, 8vw, 7rem); padding-top: 1.5rem; border-top: 1px solid var(--line-d); display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center; color: var(--mute-d); }
.footer a:hover { color: var(--rice); }
.footer .brand { color: var(--rice); }

/* ---------- intro ---------- */
.intro { display: none; }
.intro-on { overflow: hidden; }
.intro-on .intro {
  display: block; position: fixed; inset: 0; z-index: 300; color: var(--rice);
  animation: intro-failsafe 0s 7s forwards;
}
@keyframes intro-failsafe { to { visibility: hidden; } }
.intro__base {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: radial-gradient(60vmax circle at 50% 50%, rgba(255, 122, 89, 0.14), transparent 60%), var(--indigo-950);
}
.intro__mark { width: min(52vw, 300px); overflow: visible; }
.intro__mark * { transform-box: fill-box; transform-origin: center; }
.intro__ring { fill: none; stroke: var(--line-d); stroke-width: 1.5; stroke-dasharray: 1; stroke-dashoffset: 1; animation: intro-draw 0.9s var(--ease) 0.05s forwards; }
.intro__fill { fill: none; stroke: var(--salmon); stroke-width: 3; stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--ip, 0)); transform-box: view-box; transform-origin: 100px 100px; transform: rotate(-90deg); }
.intro__orbit { transform-box: view-box; transform-origin: 100px 100px; transform: rotate(calc(var(--ip, 0) * 360deg)); }
.intro__orbit circle { fill: var(--salmon); filter: drop-shadow(0 0 6px rgba(255, 122, 89, 0.9)); }
.intro__dash { fill: none; stroke: rgba(255, 122, 89, 0.55); stroke-width: 2; stroke-dasharray: 2 12; stroke-linecap: round; opacity: 0; animation: intro-fade 0.5s 0.2s forwards, drift 14s linear infinite reverse; }
.intro__plate { fill: var(--rice); transform: scale(0); animation: intro-pop 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) 0.25s forwards; }
.intro__dots { fill: none; stroke: var(--ink); stroke-width: 2.4; stroke-dasharray: 3 8.5; stroke-linecap: round; opacity: 0; animation: intro-fade 0.4s 0.6s forwards, drift 10s linear infinite; }
.intro__core { fill: var(--salmon); transform: scale(0); animation: intro-pop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.5s forwards; }
.intro__s { fill: none; stroke: var(--ink); stroke-width: 3.2; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; transform-box: view-box; transform-origin: 0 0; animation: intro-draw 0.7s var(--ease) 0.85s forwards; }
@keyframes intro-draw { to { stroke-dashoffset: 0; } }
@keyframes intro-fade { to { opacity: 1; } }
@keyframes intro-pop { to { transform: scale(1); } }

.intro__word { position: absolute; left: 0; right: 0; top: calc(50% + min(26vw, 150px) + 2.2rem); text-align: center; font-size: 0.9rem; letter-spacing: 0.3em; overflow: hidden; height: 1.6em; }
.intro__word span { display: block; animation: intro-word 0.4s var(--ease-out) both; }
@keyframes intro-word { from { transform: translateY(110%); } }
.intro__tl, .intro__tr, .intro__bl, .intro__br { position: absolute; color: var(--mute-d); opacity: 0; animation: intro-fade 0.6s 0.3s forwards; }
.intro__tl { top: var(--pad); left: var(--pad); }
.intro__tr { top: var(--pad); right: var(--pad); }
.intro__bl { bottom: var(--pad); left: var(--pad); }
.intro__br { bottom: calc(var(--pad) - 0.6rem); right: var(--pad); color: var(--rice); font-weight: 800; font-size: clamp(3rem, 9vw, 6.5rem); line-height: 1; letter-spacing: -0.05em; font-variant-numeric: tabular-nums; }
.intro__br small { font-size: 0.9rem; letter-spacing: 0.1em; color: var(--salmon); margin-left: 0.3rem; vertical-align: top; }

.intro__flash { position: absolute; inset: 0; display: flex; clip-path: circle(0 at 50% 50%); transition: clip-path 0.75s cubic-bezier(0.7, 0, 0.2, 1); }
.intro__flash i { flex: 1; margin-right: -1px; background: var(--salmon); transition: transform 0.85s cubic-bezier(0.76, 0, 0.24, 1); }
.intro__flash i:nth-child(2) { transition-delay: 0.06s; }
.intro__flash i:nth-child(3) { transition-delay: 0.12s; }
.intro__flash i:nth-child(4) { transition-delay: 0.18s; }
.intro__flash i:nth-child(5) { transition-delay: 0.24s; }
.intro__shout {
  position: absolute; inset: 0; display: grid; place-items: center; text-align: center; color: var(--ink);
  font-size: clamp(3rem, 14vw, 12rem); font-weight: 800; line-height: 0.9; letter-spacing: -0.05em; text-transform: uppercase;
  opacity: 0; transform: translateY(0.35em) scale(0.92); transition: opacity 0.35s, transform 0.7s var(--ease-out);
}
.intro.is-flash .intro__flash { clip-path: circle(75vmax at 50% 50%); }
.intro.is-flash .intro__shout { opacity: 1; transform: none; transition-delay: 0.28s; }
.intro.is-out { pointer-events: none; }
.intro.is-out .intro__base { visibility: hidden; }
.intro.is-out .intro__flash { clip-path: none; }
.intro.is-out .intro__flash i { transform: translateY(-101%); }
.intro.is-out .intro__shout { opacity: 0; transform: translateY(-0.6em); transition: opacity 0.3s, transform 0.5s cubic-bezier(0.7, 0, 0.84, 0); transition-delay: 0s; }

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
  .nav {
    position: fixed; inset: 0; z-index: -1; flex-direction: column; justify-content: center; gap: 0.4rem;
    background: var(--indigo-950); opacity: 0; visibility: hidden; transition: opacity 0.3s, visibility 0.3s;
    pointer-events: auto;
  }
  .nav a { font-size: clamp(2rem, 8vw, 3rem); font-weight: 800; letter-spacing: -0.03em; color: var(--rice); padding: 0.3rem 1rem; }
  .nav.is-open { opacity: 1; visibility: visible; }
  .menu-btn { display: block; }
  .header__bar { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(14, 20, 40, 0.94); }
  .header .btn { display: none; }
}
@media (max-width: 900px) {
  .hero { display: block; }
  .hero__grid, .about__top, .exp__head, .rail, .contact__grid, .edu { grid-template-columns: minmax(0, 1fr); }
  .printer { justify-self: center; margin-top: 1rem; }
  .badge { left: auto; right: -18px; bottom: -30px; width: 104px; height: 104px; }
  .scroll-cue { display: none; }
  .proof, .langs { grid-template-columns: minmax(0, 1fr); }
  .tongue { min-height: 11rem; }
  .menu-card { grid-template-columns: minmax(0, 1fr); box-shadow: 6px 6px 0 var(--ink); }
  .count { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 1.5rem; }
  .count > div:nth-child(2) { border-right: 0; }
  .count > div:nth-child(3) { padding-left: 0; }
  .ticket:nth-child(2) { margin-top: 2.5rem; }
  .shift__track { grid-template-columns: minmax(0, 1fr); padding-top: 0; padding-left: 2.6rem; }
  .shift__line { top: 0; bottom: 0; left: 11px; right: auto; width: 2px; height: auto; }
  .shift__line i { transform-origin: 50% 0; transform: scaleY(var(--p, 0)); }
  .shift__line b { left: 50%; top: calc(var(--p, 0) * 100%); }
  .step::before { top: 1.7rem; left: calc(-2.6rem + 7px); }
  .step.is-on { transform: translateX(4px); }
  .edu li { grid-template-columns: minmax(0, 1fr); gap: 0.2rem; }
}
@media (max-width: 600px) {
  .hero h1 { font-size: 17.5vw; }
}
@media (max-width: 480px) {
  .brand__name small { display: none; }
  .contact__list > div { grid-template-columns: minmax(0, 1fr); gap: 0.1rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
}

@media print {
  .header, .progress, .marquee, .scroll-cue, .hero__rings, .badge { display: none !important; }
  body, .sec, .hero, .contact { background: #fff !important; color: #000 !important; }
}
