/* ==========================================================================
   shadmantaqi.com · hand built
   Palette and voice shared with the Phoenix × Automata brand system.
   ========================================================================== */

:root {
  --ink-0: #0A0F16;
  --ink-1: #0D1420;
  --ink-2: #141C29;
  --ink-3: #1C2635;
  --line: #1E2A3A;
  --line-soft: #182230;

  --text-hi: #E9EEF4;
  --text-mid: #94A5B4;
  --text-low: #5E7183;

  --amber: #E8A33D;
  --amber-hot: #F59E0B;
  --gold: #D9A441;
  --violet: #9C82E2;
  --violet-soft: #B39DEC;
  --rose: #E4715C;
  --green: #4EB586;
  --cyan: #4FC3D9;

  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", monospace;

  --radius: 18px;
  --container: 1120px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  color-scheme: dark;
  scrollbar-color: #223047 var(--ink-0);
}

body {
  background: var(--ink-0);
  color: var(--text-hi);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  overflow-x: hidden;
}

::selection { background: var(--amber); color: var(--ink-1); }

a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

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

.mono { font-family: var(--font-mono); }

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 32px);
}

/* Skip link, visible on keyboard focus only */
.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  background: var(--ink-2);
  border: 1px solid var(--line);
  color: var(--text-hi);
  font-size: .9rem;
  font-weight: 600;
  padding: 11px 20px;
  border-radius: 10px;
  transition: top .2s ease;
}
.skip-link:focus { top: 16px; }

/* Scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--ink-0); }
::-webkit-scrollbar-thumb { background: #223047; border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: #2C3D58; }

/* ==========================================================================
   Nav
   ========================================================================== */

.nav {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 50;
  transition: background .3s ease, border-color .3s ease, backdrop-filter .3s ease;
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  background: rgba(13, 20, 32, .82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line-soft);
}

.nav-inner {
  max-width: var(--container);
  margin-inline: auto;
  padding: 14px clamp(20px, 4vw, 32px);
  display: flex;
  align-items: center;
  gap: 24px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.wordmark .name {
  font-family: var(--font-display);
  font-size: 1.04rem;
  font-weight: 600;
  letter-spacing: .01em;
}
.wordmark .dot { color: var(--amber); }
.flame-mark { flex-shrink: 0; }

.nav-links {
  display: flex;
  gap: 26px;
  margin-inline: auto;
}
.nav-links a {
  font-size: .92rem;
  font-weight: 500;
  color: var(--text-mid);
  transition: color .2s ease;
  position: relative;
  padding-block: 4px;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 2px;
  border-radius: 1px;
  background: linear-gradient(90deg, var(--amber), var(--rose));
  transition: right .25s ease;
}
.nav-links a:hover,
.nav-links a[aria-current="true"] { color: var(--text-hi); }
.nav-links a:hover::after,
.nav-links a[aria-current="true"]::after { right: 0; }

.nav-social {
  display: flex;
  align-items: center;
  gap: 14px;
}
.icon-link {
  color: var(--text-mid);
  display: inline-flex;
  transition: color .2s ease, transform .2s ease;
}
.icon-link:hover { color: var(--text-hi); transform: translateY(-2px); }

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .98rem;
  padding: 14px 28px;
  border-radius: 12px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, filter .2s ease;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--amber-hot), var(--rose));
  color: #14100A;
  box-shadow: 0 8px 28px rgba(232, 130, 61, .28);
}
.btn-primary:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
  box-shadow: 0 12px 34px rgba(232, 130, 61, .38);
}

.btn-ghost {
  border-color: #33465F;
  color: var(--text-hi);
  background: rgba(20, 28, 41, .55);
}
.btn-ghost:hover {
  transform: translateY(-2px);
  border-color: var(--amber);
}

.btn-small { padding: 9px 18px; font-size: .88rem; border-radius: 10px; }

.arrow-link {
  color: var(--amber);
  font-weight: 500;
  font-size: .95rem;
  white-space: nowrap;
}
.arrow-link::after {
  content: " ↗";
  font-size: .85em;
  display: inline-block;
  transition: transform .2s ease;
}
.arrow-link:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 110px;
  padding-bottom: 60px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 820px 560px at 82% 8%, rgba(156, 130, 226, .16), transparent 62%),
    radial-gradient(ellipse 900px 600px at 8% 100%, rgba(232, 163, 61, .12), transparent 62%),
    linear-gradient(135deg, var(--ink-1), var(--ink-0));
  z-index: -2;
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(148, 165, 180, .10) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 20%, transparent 75%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
  width: 100%;
}

.eyebrow {
  color: var(--amber);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .38em;
  margin-bottom: 22px;
}

h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5.4vw, 4.15rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -.015em;
  margin-bottom: 24px;
}

.hl-amber {
  background: linear-gradient(92deg, #FFD166, var(--amber-hot));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hl-violet {
  background: linear-gradient(92deg, var(--violet-soft), var(--violet));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lede {
  color: var(--text-mid);
  font-size: 1.12rem;
  max-width: 56ch;
  margin-bottom: 34px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.cta-row.center { justify-content: center; }

.hero-social {
  margin-top: 26px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.social-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #2E4058;
  background: rgba(20, 28, 41, .55);
  color: var(--text-mid);
  transition: transform .2s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease;
}
.social-btn:hover {
  transform: translateY(-3px);
  border-color: var(--amber);
  color: var(--text-hi);
  box-shadow: 0 10px 24px rgba(0, 0, 0, .35);
}

/* Portrait */

.hero-portrait {
  position: relative;
  justify-self: center;
  width: min(100%, 420px);
}

.portrait-glow {
  position: absolute;
  inset: -12% -18%;
  background:
    radial-gradient(circle at 68% 22%, rgba(156, 130, 226, .34), transparent 58%),
    radial-gradient(circle at 26% 82%, rgba(232, 163, 61, .28), transparent 58%),
    radial-gradient(circle at 50% 55%, rgba(20, 28, 41, .9), transparent 72%);
  filter: blur(6px);
  z-index: -1;
}

.hero-portrait img {
  width: 100%;
  filter: drop-shadow(0 26px 46px rgba(0, 0, 0, .55));
  mask-image: linear-gradient(black 78%, transparent 99%);
  -webkit-mask-image: linear-gradient(black 78%, transparent 99%);
}

.float-chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: rgba(13, 20, 32, .62);
  backdrop-filter: blur(10px) saturate(1.2);
  -webkit-backdrop-filter: blur(10px) saturate(1.2);
  border: 1px solid rgba(148, 165, 180, .16);
  border-radius: 999px;
  padding: 8px 15px;
  font-size: .66rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-mid);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .3);
  animation: float 7s ease-in-out infinite alternate;
  white-space: nowrap;
}

.float-chip .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}
.dot-amber { background: var(--amber-hot); box-shadow: 0 0 10px rgba(245, 158, 11, .8); }
.dot-violet { background: var(--violet); box-shadow: 0 0 10px rgba(156, 130, 226, .8); }
.dot-cyan { background: var(--cyan); box-shadow: 0 0 10px rgba(79, 195, 217, .8); }
.dot-green { background: var(--green); box-shadow: 0 0 10px rgba(78, 181, 134, .8); }
.dot-rose { background: var(--rose); box-shadow: 0 0 10px rgba(228, 113, 92, .8); }

.chip-a { top: 4%; left: -12%; }
.chip-b { top: 13%; right: -12%; animation-delay: -3.5s; }
.chip-c { top: 28%; left: -14%; animation-delay: -1.8s; }
.chip-d { top: 37%; right: -12%; animation-delay: -5.2s; }

@keyframes float {
  from { transform: translateY(-4px); }
  to   { transform: translateY(6px); }
}

/* Embers */

.embers { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.ember {
  position: absolute;
  bottom: -12px;
  border-radius: 50%;
  opacity: 0;
  animation: rise linear infinite;
}
@keyframes rise {
  0%   { transform: translate(0, 0) scale(1); opacity: 0; }
  8%   { opacity: .85; }
  70%  { opacity: .4; }
  100% { transform: translate(var(--drift, 24px), -104vh) scale(.35); opacity: 0; }
}

/* Scroll cue */

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: .72rem;
  letter-spacing: .3em;
  color: var(--text-low);
  transition: color .2s ease;
}
.scroll-cue:hover { color: var(--amber); }
.cue-line {
  width: 1px;
  height: 34px;
  background: linear-gradient(var(--text-low), transparent);
  overflow: hidden;
  position: relative;
}
.cue-line::after {
  content: "";
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(var(--amber), transparent);
  animation: cue 2s ease-in-out infinite;
}
@keyframes cue {
  0%   { top: -100%; }
  60%, 100% { top: 100%; }
}

/* ==========================================================================
   Numbers
   ========================================================================== */

.numbers {
  border-block: 1px solid var(--line-soft);
  background: linear-gradient(180deg, rgba(20, 28, 41, .5), rgba(13, 20, 32, .2));
  padding-block: 44px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 24px;
}

.stat { text-align: center; }

.stat-n {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 2.6vw, 2.3rem);
  font-weight: 700;
  letter-spacing: -.01em;
  background: linear-gradient(180deg, var(--text-hi), #B9C6D2);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat-n .plus { color: var(--amber); -webkit-text-fill-color: var(--amber); }

.stat-l {
  display: block;
  margin-top: 4px;
  font-size: .78rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-low);
  font-weight: 500;
}

/* ==========================================================================
   Sections
   ========================================================================== */

.section {
  padding-block: clamp(84px, 10vw, 128px);
  scroll-margin-top: 40px;
  position: relative;
}

.section-head { max-width: 640px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head.center { margin-inline: auto; text-align: center; }

.index {
  color: var(--amber);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .3em;
  margin-bottom: 14px;
}
.index::after {
  content: "";
  display: inline-block;
  vertical-align: middle;
  width: 54px;
  height: 1px;
  margin-left: 14px;
  background: linear-gradient(90deg, var(--amber), transparent);
}
.section-head.center .index::after { display: none; }

h2 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.6vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -.01em;
  margin-bottom: 14px;
}

.sub { color: var(--text-mid); font-size: 1.05rem; }

/* ==========================================================================
   Company cards
   ========================================================================== */

.cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
}

.card {
  position: relative;
  background: linear-gradient(180deg, var(--ink-2), #10161F);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 32px 30px;
  overflow: hidden;
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
}
.card-phoenix::before { background: linear-gradient(90deg, var(--amber-hot), var(--rose)); }
.card-automata::before { background: linear-gradient(90deg, var(--violet), var(--cyan)); }

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 48px rgba(0, 0, 0, .4);
}
.card-phoenix:hover { border-color: rgba(232, 163, 61, .45); }
.card-automata:hover { border-color: rgba(156, 130, 226, .45); }

.card-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}

.card h3 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
}

.est {
  font-size: .74rem;
  color: var(--text-low);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 11px;
  white-space: nowrap;
}

.quote {
  font-style: italic;
  color: var(--text-mid);
  font-size: .98rem;
  margin-bottom: 16px;
}
.card-phoenix .quote { color: var(--amber); }
.card-automata .quote { color: var(--violet-soft); }

.card > p:not(.quote) { color: var(--text-mid); font-size: .99rem; }

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}
.tags li {
  font-size: .74rem;
  color: var(--text-mid);
  background: rgba(13, 20, 32, .6);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 12px;
}

.card-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--line-soft);
}
.card-automata .card-links .arrow-link { color: var(--violet-soft); }

/* ==========================================================================
   Timeline
   ========================================================================== */

.timeline {
  position: relative;
  max-width: 720px;
  padding-left: 34px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  border-radius: 1px;
  background: linear-gradient(180deg, var(--amber), var(--rose) 55%, var(--violet));
  opacity: .55;
}

.timeline li {
  position: relative;
  padding-bottom: 40px;
}
.timeline li:last-child { padding-bottom: 0; }

.timeline li::before {
  content: "";
  position: absolute;
  left: -34px;
  top: 7px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--ink-0);
  border: 3px solid var(--amber);
  box-shadow: 0 0 0 4px rgba(232, 163, 61, .12);
}
.timeline li:nth-child(5)::before,
.timeline li:nth-child(6)::before { border-color: var(--violet); box-shadow: 0 0 0 4px rgba(156, 130, 226, .12); }

.t-year {
  display: inline-block;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 8px;
}
.timeline li:nth-child(5) .t-year,
.timeline li:nth-child(6) .t-year { color: var(--violet-soft); }

.timeline p { color: var(--text-mid); max-width: 60ch; }

/* ==========================================================================
   Bookshelf
   ========================================================================== */

.shelf-wrap { max-width: 880px; margin-inline: auto; }

.shelf {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 10px;
  padding: 20px 18px 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.shelf::-webkit-scrollbar { display: none; }

.book {
  flex-shrink: 0;
  width: 58px;
  height: 236px;
  border-radius: 5px 5px 3px 3px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .28s cubic-bezier(.2, .7, .3, 1.2), box-shadow .28s ease;
  box-shadow: inset -8px 0 14px rgba(0, 0, 0, .32), inset 2px 0 3px rgba(255, 255, 255, .16), 0 4px 14px rgba(0, 0, 0, .4);
}
.book::before,
.book::after {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  height: 2px;
  border-radius: 1px;
  background: rgba(10, 15, 22, .5);
}
.book::before { top: 12px; }
.book::after { bottom: 26px; }

.book span {
  writing-mode: vertical-rl;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .8rem;
  letter-spacing: .04em;
  color: #10141C;
  max-height: 180px;
  overflow: hidden;
  text-align: center;
}

.book:hover {
  transform: translateY(-14px);
  box-shadow: inset -8px 0 14px rgba(0, 0, 0, .32), inset 2px 0 3px rgba(255, 255, 255, .16), 0 18px 30px rgba(0, 0, 0, .5);
}

.b-flagship { width: 74px; height: 264px; }
.b-flagship span { font-size: .88rem; max-height: 205px; }

.b-amber { background: linear-gradient(105deg, #F2B45C, var(--amber-hot)); }
.b-cyan  { background: linear-gradient(105deg, #6FD3E4, var(--cyan)); }
.b-violet{ background: linear-gradient(105deg, #B9A3EC, var(--violet)); }
.b-rose  { background: linear-gradient(105deg, #EC8B77, var(--rose)); }
.b-gold  { background: linear-gradient(105deg, #E5B95E, var(--gold)); }
.b-green { background: linear-gradient(105deg, #6BC79D, var(--green)); }
.b-soft  { background: linear-gradient(105deg, #C7B5F0, var(--violet-soft)); }
.b-ember { background: linear-gradient(105deg, #F4A25C, #E8823D); }

.b-lean {
  transform: rotate(-8deg) translateY(-4px);
  transform-origin: bottom left;
  margin-left: 4px;
  height: 218px;
}
.b-lean:hover { transform: rotate(0) translateY(-14px); }

.shelf-board {
  height: 12px;
  border-radius: 3px;
  background: linear-gradient(180deg, #26344A, #16202E);
  box-shadow: 0 10px 26px rgba(0, 0, 0, .5);
}

.shelf-note {
  margin-top: 26px;
  text-align: center;
  color: var(--text-low);
  font-size: .92rem;
}

/* ==========================================================================
   Stack
   ========================================================================== */

.stack-groups {
  display: grid;
  gap: 30px;
  max-width: 820px;
}

.stack-group h3 {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--text-low);
  margin-bottom: 14px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.chips li {
  font-family: var(--font-mono);
  font-size: .84rem;
  color: var(--text-mid);
  border: 1px solid #223047;
  background: rgba(20, 28, 41, .45);
  border-radius: 999px;
  padding: 8px 16px;
  transition: border-color .2s ease, color .2s ease, transform .2s ease;
}
.chips li:hover {
  border-color: var(--amber);
  color: var(--text-hi);
  transform: translateY(-2px);
}

.stack-note {
  margin-top: 40px;
  color: var(--text-low);
  font-size: .95rem;
  max-width: 62ch;
  border-left: 2px solid var(--amber);
  padding-left: 18px;
}

/* ==========================================================================
   Contact + footer
   ========================================================================== */

.contact { overflow: hidden; }
.contact-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 700px 420px at 50% 118%, rgba(232, 163, 61, .14), transparent 65%),
    radial-gradient(ellipse 600px 380px at 88% 0%, rgba(156, 130, 226, .1), transparent 65%);
  z-index: -1;
}

.footer {
  border-top: 1px solid var(--line-soft);
  padding: 46px 0 40px;
  background: linear-gradient(180deg, transparent, rgba(13, 20, 32, .8));
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
}

.flame-foot { animation: flicker 3.2s ease-in-out infinite; transform-origin: 50% 88%; }
@keyframes flicker {
  0%, 100% { transform: scale(1) rotate(0deg); }
  30%      { transform: scale(1.05) rotate(-1.6deg); }
  55%      { transform: scale(.97) rotate(1.2deg); }
  78%      { transform: scale(1.04) rotate(-.8deg); }
}

.why { color: var(--text-mid); font-size: .98rem; max-width: 52ch; }
.why strong { color: var(--text-hi); }

.fine { color: var(--text-low); font-size: .74rem; letter-spacing: .04em; }

/* ==========================================================================
   Reveal animation
   ========================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s cubic-bezier(.2, .6, .2, 1), transform .7s cubic-bezier(.2, .6, .2, 1);
  transition-delay: var(--d, 0s);
}
.reveal.in { opacity: 1; transform: none; }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; text-align: left; }
  .hero-portrait {
    width: min(78%, 340px);
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 9px;
  }
  .hero-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: -30px;
    position: relative;
  }
  .float-chip { position: static; animation: none; }
  .chip-c, .chip-d { display: none; }
  .scroll-cue { display: none; }
  .stats-grid { grid-template-columns: repeat(3, 1fr); gap: 30px 18px; }
  .cards { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  body { font-size: 1rem; }
  .nav-links { display: none; }
  .nav-inner { justify-content: space-between; }
  .hero { padding-top: 96px; }
  .eyebrow { letter-spacing: .26em; font-size: .74rem; }
  .lede { font-size: 1.03rem; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .shelf { justify-content: flex-start; }
  .book { width: 50px; height: 205px; }
  .b-flagship { width: 64px; height: 230px; }
  .b-lean { height: 190px; }
  .float-chip { font-size: .62rem; padding: 7px 12px; }
}

/* ==========================================================================
   Ticker
   ========================================================================== */

.ticker {
  overflow: hidden;
  border-bottom: 1px solid var(--line-soft);
  padding: 15px 0;
  background: rgba(13, 20, 32, .4);
}
.ticker-track {
  display: flex;
  align-items: center;
  gap: 34px;
  width: max-content;
  animation: tick 40s linear infinite;
}
.ticker-track span {
  font-family: var(--font-mono);
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--text-low);
  white-space: nowrap;
}
.ticker-track i { font-style: normal; font-size: .68rem; opacity: .75; }
@keyframes tick { to { transform: translateX(-50%); } }

/* ==========================================================================
   Products
   ========================================================================== */

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.product {
  background: linear-gradient(180deg, var(--ink-2), #10161F);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 22px 24px;
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.product:hover {
  transform: translateY(-5px);
  border-color: rgba(232, 163, 61, .4);
  box-shadow: 0 22px 48px rgba(0, 0, 0, .4);
}

.product h3 {
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.product > p { color: var(--text-mid); font-size: .93rem; }
.product-tag {
  margin-top: 14px;
  font-size: .68rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--amber);
}

.shot {
  height: 200px;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  background:
    radial-gradient(ellipse 70% 80% at 70% 0%, rgba(156, 130, 226, .1), transparent 60%),
    radial-gradient(ellipse 70% 80% at 10% 100%, rgba(232, 163, 61, .08), transparent 60%),
    #0B0F16;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  overflow: hidden;
}

/* browser skeleton */
.browser {
  width: 82%;
  background: var(--ink-1);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 14px 30px rgba(0, 0, 0, .4);
}
.browser-bar {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 7px 10px;
  background: var(--ink-2);
  border-bottom: 1px solid var(--line-soft);
}
.browser-bar i { width: 8px; height: 8px; border-radius: 50%; }
.browser-bar i:nth-child(1) { background: var(--rose); }
.browser-bar i:nth-child(2) { background: var(--amber); }
.browser-bar i:nth-child(3) { background: var(--green); }
.browser-bar span { margin-left: 8px; font-size: .6rem; letter-spacing: .12em; color: var(--text-low); }
.browser-body { display: flex; gap: 10px; padding: 10px; }
.b-side { display: flex; flex-direction: column; gap: 6px; width: 26%; }
.b-side b { height: 9px; border-radius: 3px; background: #1C2635; }
.b-side b:first-child { background: rgba(232, 163, 61, .55); }
.b-main { flex: 1; display: flex; flex-direction: column; gap: 7px; }
.b-video {
  height: 52px;
  border-radius: 5px;
  background: linear-gradient(135deg, #182233, #121A26);
  display: flex;
  align-items: center;
  justify-content: center;
}
.b-video span {
  width: 0; height: 0;
  border-left: 11px solid var(--amber);
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  margin-left: 3px;
}
.b-row { height: 8px; border-radius: 3px; background: #1C2635; }
.w80 { width: 80%; } .w70 { width: 70%; } .w60 { width: 60%; }

/* phone skeleton */
.phone {
  width: 118px;
  background: var(--ink-1);
  border: 2px solid #26344A;
  border-radius: 20px;
  padding: 9px 10px 11px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, .4);
}
.p-notch { width: 38px; height: 5px; border-radius: 3px; background: #26344A; margin: 0 auto 10px; }
.p-head { height: 9px; width: 70%; border-radius: 3px; background: rgba(156, 130, 226, .5); margin-bottom: 9px; }
.p-q { height: 7px; width: 92%; border-radius: 3px; background: #1C2635; margin-bottom: 8px; }
.p-opt { height: 15px; border: 1px solid #223047; border-radius: 6px; margin-bottom: 6px; }
.p-opt.sel { border-color: var(--amber); background: rgba(232, 163, 61, .16); }
.p-dots { display: flex; justify-content: center; gap: 4px; margin-top: 8px; }
.p-dots i { width: 4px; height: 4px; border-radius: 50%; background: #26344A; }
.p-dots i:first-child { background: var(--amber); }

/* call intelligence skeleton */
.callviz { width: 78%; }
.wave { display: flex; align-items: flex-end; gap: 4px; height: 58px; margin-bottom: 14px; }
.wave i {
  flex: 1;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--violet), var(--amber-hot));
  height: 22%;
  transform-origin: bottom;
  animation: wv 1.7s ease-in-out infinite alternate;
}
.wave i:nth-child(2n) { height: 55%; animation-delay: -.5s; }
.wave i:nth-child(3n) { height: 38%; animation-delay: -.9s; }
.wave i:nth-child(5n) { height: 72%; animation-delay: -1.3s; }
@keyframes wv { to { transform: scaleY(1.35); } }
.score { display: flex; flex-direction: column; gap: 8px; }
.s-row { display: flex; align-items: center; gap: 10px; }
.s-row span { font-size: .6rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-low); width: 52px; }
.s-row em {
  font-style: normal;
  display: block;
  flex: 1;
  height: 6px;
  border-radius: 3px;
  background: #1C2635;
  position: relative;
  overflow: hidden;
}
.s-row em::after {
  content: "";
  position: absolute;
  inset: 0;
  width: var(--w, 60%);
  border-radius: 3px;
  background: linear-gradient(90deg, var(--amber-hot), var(--rose));
}

/* ==========================================================================
   Flagship book
   ========================================================================== */

.flagship {
  margin-top: clamp(56px, 7vw, 88px);
  display: flex;
  align-items: center;
  gap: clamp(36px, 6vw, 72px);
  max-width: 880px;
  margin-inline: auto;
}

.book3d { perspective: 1000px; flex-shrink: 0; }
.b3-cover {
  width: 188px;
  height: 258px;
  background: linear-gradient(125deg, #F5BC66 0%, #E8A33D 55%, #DE8B33 100%);
  border-radius: 4px 10px 10px 4px;
  transform: rotateY(-24deg);
  transform-origin: left center;
  box-shadow: 26px 22px 44px rgba(0, 0, 0, .5), inset -10px 0 22px rgba(0, 0, 0, .18), inset 4px 0 6px rgba(255, 255, 255, .28);
  padding: 20px 18px 16px 24px;
  display: flex;
  flex-direction: column;
  transition: transform .4s ease;
  position: relative;
}
.b3-cover::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: rgba(16, 20, 28, .28);
}
.book3d:hover .b3-cover { transform: rotateY(-13deg); }
.b3-brand {
  font-size: .56rem;
  font-weight: 600;
  letter-spacing: .26em;
  color: rgba(16, 20, 28, .72);
  margin-bottom: 26px;
}
.b3-title {
  font-family: var(--font-display);
  font-size: 1.06rem;
  font-weight: 700;
  line-height: 1.3;
  color: #10141C;
}
.b3-flame { margin-top: auto; opacity: .8; }

.flagship-label {
  color: var(--amber);
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .3em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.flagship-copy h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 12px;
}
.flagship-copy p { color: var(--text-mid); margin-bottom: 16px; max-width: 46ch; }

/* ==========================================================================
   Beyond
   ========================================================================== */

.beyond-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.bcard {
  background: linear-gradient(180deg, var(--ink-2), #10161F);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 28px 24px;
  transition: transform .3s ease, border-color .3s ease;
}
.bcard:hover { transform: translateY(-4px); border-color: rgba(156, 130, 226, .4); }
.bcard h3 { font-family: var(--font-display); font-size: 1.14rem; font-weight: 700; }
.bcard .role {
  display: block;
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--amber);
  margin: 6px 0 12px;
}
.bcard p { color: var(--text-mid); font-size: .94rem; }

/* ==========================================================================
   Medal drawer
   ========================================================================== */

.medals {
  max-width: 760px;
  display: flex;
  flex-direction: column;
}

.medal-row {
  display: flex;
  gap: 26px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line-soft);
}
.medal-row:first-child { padding-top: 0; }
.medal-row:last-child { border-bottom: none; padding-bottom: 0; }

.medal-row h3 {
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 700;
  margin: 4px 0 8px;
}
.medal-row p { color: var(--text-mid); font-size: .96rem; max-width: 58ch; }

.m-label {
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--amber);
}

.medal {
  position: relative;
  width: 58px;
  height: 76px;
  flex-shrink: 0;
  margin-top: 4px;
}
.medal::before,
.medal::after {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 13px;
  height: 32px;
  border-radius: 2px;
  background: var(--mrib, #8A6A2F);
}
.medal::before { transform: translateX(-15px) rotate(16deg); opacity: .5; }
.medal::after { transform: translateX(2px) rotate(-16deg); opacity: .75; }
.medal i {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-style: normal;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: #10141C;
  background: radial-gradient(circle at 34% 28%, var(--m1, #F5BC66), var(--m2, #DE8B33));
  box-shadow: inset 0 0 0 4px rgba(16, 20, 28, .16), inset 0 -3px 6px rgba(16, 20, 28, .22), 0 10px 22px rgba(0, 0, 0, .4);
}

.m-gold   { --m1: #FFD684; --m2: #E8A33D; --mrib: #B07E2E; }
.m-bronze { --m1: #F0A276; --m2: #C96F4A; --mrib: #9A5638; }
.m-violet { --m1: #C9B6F2; --m2: #9C82E2; --mrib: #6F5AA8; }
.m-cyan   { --m1: #8ADCEA; --m2: #4FC3D9; --mrib: #35899B; }
.m-green  { --m1: #85D4AC; --m2: #4EB586; --mrib: #35805E; }

/* ==========================================================================
   Terminal
   ========================================================================== */

.stack-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 4vw, 56px);
  align-items: start;
}

.terminal {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #0A0F16;
  overflow: hidden;
  box-shadow: 0 22px 48px rgba(0, 0, 0, .45);
}
.term-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 11px 14px;
  background: var(--ink-2);
  border-bottom: 1px solid var(--line-soft);
}
.term-bar i { width: 11px; height: 11px; border-radius: 50%; }
.term-bar i:nth-child(1) { background: var(--rose); }
.term-bar i:nth-child(2) { background: var(--amber); }
.term-bar i:nth-child(3) { background: var(--green); }
.term-bar span { margin-left: 8px; font-size: .7rem; letter-spacing: .1em; color: var(--text-low); }
.term-body {
  margin: 0;
  padding: 16px 20px 18px;
  font-size: .8rem;
  line-height: 2;
  color: var(--text-hi);
}
.term-log {
  max-height: 300px;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  word-break: break-word;
}
.t-p { color: var(--green); white-space: nowrap; }
.t-o { color: var(--text-mid); }
.t-hint { color: var(--text-low); }
.t-hint b { color: var(--amber); font-weight: 600; }
.term-line { display: flex; align-items: center; gap: 8px; cursor: text; }
.term-input {
  flex: 1;
  min-width: 40px;
  background: transparent;
  border: 0;
  padding: 0;
  color: var(--text-hi);
  font: inherit;
  caret-color: var(--amber);
}
.term-input:focus { outline: none; }
.terminal:focus-within { border-color: rgba(232, 163, 61, .45); }

/* ==========================================================================
   Entrance exam
   ========================================================================== */

.quiz {
  max-width: 720px;
  background: linear-gradient(180deg, var(--ink-2), #10161F);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 28px 30px;
}

.quiz-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text-low);
  margin-bottom: 22px;
}
.quiz-dots { display: flex; gap: 5px; }
.quiz-dots i {
  width: 22px;
  height: 4px;
  border-radius: 2px;
  background: #223047;
  transition: background .3s ease;
}
.quiz-dots i.done { background: var(--green); }
.quiz-dots i.miss { background: var(--rose); }

.quiz-q {
  font-family: var(--font-display);
  font-size: 1.22rem;
  font-weight: 600;
  margin-bottom: 18px;
}

.quiz-opts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.quiz-opts button {
  display: flex;
  gap: 10px;
  text-align: left;
  font: inherit;
  font-size: .96rem;
  color: var(--text-hi);
  background: rgba(13, 20, 32, .6);
  border: 1px solid #223047;
  border-radius: 12px;
  padding: 14px 16px;
  cursor: pointer;
  transition: border-color .2s ease, transform .2s ease, background .2s ease;
}
.quiz-opts button:hover:not(:disabled) { border-color: var(--amber); transform: translateY(-2px); }
.quiz-opts button:disabled { cursor: default; }
.quiz-opts .key { color: var(--amber); font-family: var(--font-mono); font-size: .78rem; padding-top: 3px; }
.quiz-opts button.correct { border-color: var(--green); background: rgba(78, 181, 134, .14); }
.quiz-opts button.wrong { border-color: var(--rose); background: rgba(228, 113, 92, .14); animation: qshake .3s ease; }
@keyframes qshake {
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}

.quiz-result { text-align: center; padding: 10px 0 2px; }
.quiz-score {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  line-height: 1;
}
.quiz-score b { color: var(--amber); font-weight: 700; }
.quiz-verdict { color: var(--text-mid); margin: 14px auto 6px; max-width: 46ch; }
.quiz-time {
  font-family: var(--font-mono);
  font-size: .74rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-low);
}
.quiz-result .cta-row { justify-content: center; margin-top: 24px; }

/* ==========================================================================
   Ember bursts and the footer flame
   ========================================================================== */

.burst {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 999;
  animation: burst-fly ease-out forwards;
}
@keyframes burst-fly {
  from { transform: translate(0, 0) scale(1); opacity: 1; }
  to   { transform: translate(var(--bx, 0), var(--by, -160px)) scale(.4); opacity: 0; }
}

.flame-btn {
  background: none;
  border: 0;
  padding: 4px;
  cursor: pointer;
  border-radius: 50%;
  transition: transform .2s ease;
}
.flame-btn:hover { transform: scale(1.15); }
.flame-btn:active { transform: scale(.95); }

/* ==========================================================================
   FAQ
   ========================================================================== */

.faq { max-width: 720px; }
.faq details {
  background: linear-gradient(180deg, var(--ink-2), #10161F);
  border: 1px solid var(--line);
  border-radius: 14px;
  margin-bottom: 12px;
  overflow: hidden;
  transition: border-color .25s ease;
}
.faq details[open] { border-color: rgba(232, 163, 61, .35); }
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 22px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.02rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  color: var(--amber);
  font-size: 1.35rem;
  font-weight: 400;
  line-height: 1;
  transition: transform .25s ease;
  flex-shrink: 0;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 22px 20px; color: var(--text-mid); font-size: .97rem; }

/* ==========================================================================
   Ornaments and signature
   ========================================================================== */

.has-ornament { overflow: hidden; }
.bn-ornament {
  position: absolute;
  right: -1%;
  top: 4%;
  font-family: "Kohinoor Bangla", "Nirmala UI", "Noto Sans Bengali", sans-serif;
  font-size: clamp(7rem, 17vw, 14rem);
  font-weight: 700;
  line-height: 1;
  color: var(--text-hi);
  opacity: .028;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}
.bn-contact { right: auto; left: -1%; top: auto; bottom: 2%; }
.has-ornament .container { position: relative; z-index: 1; }

.signature {
  font-family: "Caveat", cursive;
  font-size: 2.8rem;
  color: var(--amber);
  opacity: .9;
  transform: rotate(-2.5deg);
  text-align: center;
  margin-top: 38px;
}

/* ==========================================================================
   Responsive for new sections
   ========================================================================== */

@media (max-width: 980px) {
  .product-grid { grid-template-columns: 1fr; }
  .stack-layout { grid-template-columns: 1fr; }
  .terminal { max-width: 560px; }
}

@media (max-width: 700px) {
  .flagship { flex-direction: column; text-align: center; gap: 40px; }
  .flagship-copy p { margin-inline: auto; }
  .b3-cover { transform: rotateY(-16deg); }
  .beyond-grid { grid-template-columns: 1fr; }
  .signature { font-size: 2.3rem; }
  .quiz { padding: 20px 18px 24px; }
  .quiz-opts { grid-template-columns: 1fr; }
  .quiz-top { flex-wrap: wrap; }
}

/* ==========================================================================
   Reduced motion
   ========================================================================== */

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