/* ===================================================================
   Techno Creators — site stylesheet
   Dark tech theme. Hand-written; only what the pages actually use.
   1. Tokens      5. Buttons      9. Cards / grids
   2. Reset       6. Header      10. Sections
   3. Layout      7. Hero        11. Forms
   4. Type        8. Marquee     12. Footer / utilities
=================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  --bg: #0b0b12;
  --bg-alt: #111827;
  --bg-card: rgba(255, 255, 255, 0.03);
  --bg-elevated: #14141f;
  --text: #f1f5f9;
  --text-muted: #94a3b8;
  --text-subtle: #64748b;
  --brand: #6366f1;
  --brand-hover: #4f46e5;
  --brand-soft: rgba(99, 102, 241, 0.12);
  --brand-line: rgba(99, 102, 241, 0.22);
  --accent: #f59e0b;
  --green: #22c55e;
  --border: rgba(148, 163, 184, 0.14);
  --radius: 14px;
  --radius-sm: 10px;
  --maxw: 1180px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- 2. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 4px; }
::selection { background: rgba(99, 102, 241, 0.35); color: #fff; }
::-webkit-scrollbar { width: 9px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: rgba(99, 102, 241, 0.45); border-radius: 99px; }

/* ---------- 3. Layout ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 20px; }
.section { padding-block: clamp(64px, 9vw, 112px); position: relative; }
.section--alt { background: var(--bg-alt); }
.section--line { border-top: 1px solid var(--border); }
.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
@media (max-width: 960px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
}

/* ---------- 4. Type ---------- */
h1, h2, h3, h4 { margin: 0 0 .6em; font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); font-weight: 800; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.2rem; font-weight: 600; letter-spacing: -0.01em; }
p { margin: 0 0 1rem; color: var(--text-muted); }
.lead { font-size: clamp(1.02rem, 1.6vw, 1.18rem); color: var(--text-muted); max-width: 62ch; }
.eyebrow {
  display: inline-block; font-family: var(--mono); font-size: .75rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase; color: var(--brand); margin-bottom: 1rem;
}
.eyebrow--amber { color: var(--accent); }
.mono { font-family: var(--mono); }
.gradient-text {
  background: linear-gradient(120deg, #a5b4fc 0%, #6366f1 45%, #f59e0b 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.section-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head--center { margin-inline: auto; text-align: center; }
.text-center { text-align: center; }

/* ---------- 5. Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .85rem 1.6rem; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: .95rem; line-height: 1;
  transition: background .25s var(--ease), box-shadow .25s var(--ease), transform .25s var(--ease), border-color .25s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--brand); color: #fff; }
.btn--primary:hover { background: var(--brand-hover); box-shadow: 0 0 26px rgba(99, 102, 241, 0.45); }
.btn--ghost { border-color: var(--brand-line); color: var(--text); background: rgba(255, 255, 255, 0.02); }
.btn--ghost:hover { border-color: var(--brand); background: var(--brand-soft); }
.btn--amber { background: var(--accent); color: #1a1205; }
.btn--amber:hover { background: #fbbf24; box-shadow: 0 0 26px rgba(245, 158, 11, 0.4); }
.btn--lg { padding: 1rem 2rem; font-size: 1rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.arrow { transition: transform .25s var(--ease); }
.btn:hover .arrow, .link:hover .arrow { transform: translateX(4px); }
.link { display: inline-flex; align-items: center; gap: .4rem; color: var(--brand); font-weight: 600; font-size: .95rem; }
.link:hover { color: #a5b4fc; }

/* ---------- 6. Header ---------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 90;
  background: transparent; border-bottom: 1px solid transparent;
  transition: background .3s ease, border-color .3s ease, backdrop-filter .3s ease;
}
.header.is-stuck {
  background: rgba(11, 11, 18, 0.88);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--border);
}
.header__inner { display: flex; align-items: center; gap: 18px; height: 76px; }
.header__logo img { height: 44px; width: auto; }
.nav { margin-left: auto; }
.nav__list { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav__link {
  display: block; padding: .55rem .85rem; border-radius: 8px;
  font-size: .9375rem; font-weight: 600; color: var(--text-muted);
  transition: color .2s ease, background .2s ease;
}
.nav__link:hover { color: var(--text); background: rgba(255, 255, 255, 0.04); }
.nav__link[aria-current="page"] { color: var(--text); }
.nav__link[aria-current="page"]::after {
  content: ''; display: block; height: 2px; margin-top: 4px; border-radius: 2px;
  background: linear-gradient(90deg, var(--brand), var(--accent));
}
.header__cta { margin-left: 8px; }
.nav-toggle {
  display: none; margin-left: auto; width: 44px; height: 44px; border-radius: 10px;
  background: rgba(255, 255, 255, 0.05); border: 1px solid var(--border); color: var(--text);
  align-items: center; justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ''; display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px;
  transition: transform .25s var(--ease), opacity .2s ease;
}
.nav-toggle span::before { transform: translateY(-6px); }
.nav-toggle span::after { transform: translateY(4px); }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-2px) rotate(-45deg); }
@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .header__cta { display: none; }
  .nav {
    position: fixed; inset: 76px 0 auto; margin: 0;
    background: rgba(11, 11, 18, 0.98); border-bottom: 1px solid var(--border);
    padding: 12px 20px 22px; display: none;
  }
  .nav.is-open { display: block; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav__link { padding: .8rem .6rem; font-size: 1rem; }
  .nav__link[aria-current="page"]::after { display: none; }
  .nav__cta-mobile { margin-top: 12px; }
}

/* ---------- 7. Hero ---------- */
.hero { position: relative; padding-top: 148px; padding-bottom: clamp(60px, 8vw, 96px); overflow: hidden; }
.hero::before {
  content: ''; position: absolute; top: -180px; right: -140px; width: 680px; height: 680px; z-index: 0;
  background: radial-gradient(ellipse 50% 55% at 60% 50%, rgba(99, 102, 241, 0.16) 0%, transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: radial-gradient(rgba(148, 163, 184, 0.16) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 35%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 35%, #000 20%, transparent 75%);
  animation: drift 9s ease-in-out infinite;
}
.hero > .container { position: relative; z-index: 1; }
.hero__title { margin-bottom: 1.1rem; }
.hero__stats { display: flex; flex-wrap: wrap; gap: clamp(24px, 5vw, 56px); margin-top: 44px; }
.stat__num { font-family: var(--mono); font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 700; color: var(--text); line-height: 1.1; }
.stat__num span { color: var(--brand); }
.stat__label { font-size: .875rem; color: var(--text-subtle); }

/* terminal card */
.terminal { position: relative; border-radius: 17px; }
.terminal::before {
  content: ''; position: absolute; inset: -1px; border-radius: 17px; z-index: 0;
  background: linear-gradient(180deg, rgba(99, 102, 241, 0.65) 0%, transparent 35%, transparent 65%, rgba(245, 158, 11, 0.45) 100%);
  background-size: 100% 200%; animation: shimmer 3.4s linear infinite;
}
.terminal__inner {
  position: relative; z-index: 1; background: rgba(13, 13, 20, 0.94);
  border: 1px solid var(--brand-line); border-radius: 16px; overflow: hidden;
  box-shadow: 0 0 60px rgba(99, 102, 241, 0.12);
}
.terminal__bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.terminal__dot { width: 11px; height: 11px; border-radius: 50%; background: #334155; }
.terminal__dot:nth-child(1) { background: #ef4444; }
.terminal__dot:nth-child(2) { background: var(--accent); }
.terminal__dot:nth-child(3) { background: var(--green); }
.terminal__file { margin-left: 8px; font-family: var(--mono); font-size: .78rem; color: var(--text-subtle); }
.terminal__body { padding: 20px; font-family: var(--mono); font-size: .82rem; line-height: 1.9; overflow-x: auto; }
.terminal__body .c-key { color: #818cf8; }
.terminal__body .c-str { color: #34d399; }
.terminal__body .c-com { color: #475569; font-style: italic; }
.terminal__body .c-fn { color: var(--accent); }
.cursor {
  display: inline-block; width: 8px; height: 1em; background: var(--brand);
  vertical-align: text-bottom; animation: blink 1s step-end infinite;
}

/* ---------- 8. Marquee ---------- */
.marquee { overflow: hidden; border-block: 1px solid var(--border); padding-block: 18px; background: rgba(255, 255, 255, 0.015); }
.marquee__track { display: flex; width: max-content; animation: marquee 26s linear infinite; }
.marquee__item {
  display: flex; align-items: center; gap: 10px; padding-inline: 26px;
  font-family: var(--mono); font-size: .85rem; color: var(--text-subtle); white-space: nowrap;
}
.marquee__item::before { content: '//'; color: var(--brand); }
.marquee:hover .marquee__track { animation-play-state: paused; }

/* ---------- 9. Cards ---------- */
.card {
  background: var(--bg-card); border: 1px solid var(--brand-line); border-radius: var(--radius);
  padding: 30px; height: 100%;
  transition: transform .3s var(--ease), border-color .3s ease, box-shadow .3s ease;
}
.card:hover { transform: translateY(-4px); border-color: rgba(99, 102, 241, 0.5); box-shadow: 0 10px 34px rgba(99, 102, 241, 0.13); }
.card__icon {
  width: 46px; height: 46px; border-radius: 12px; background: var(--brand-soft);
  display: grid; place-items: center; margin-bottom: 18px; font-size: 1.2rem;
  transition: background .3s ease;
}
.card:hover .card__icon { background: rgba(99, 102, 241, 0.26); }
.card__icon--amber { background: rgba(245, 158, 11, 0.14); }
.card:hover .card__icon--amber { background: rgba(245, 158, 11, 0.26); }
.card h3 { margin-bottom: .5rem; }
.card p:last-child { margin-bottom: 0; }
.card--pillar { padding: 34px; }
.card--flat { background: transparent; border-color: var(--border); }

.list-check { list-style: none; display: grid; gap: 10px; margin-top: 18px; }
.list-check li { position: relative; padding-left: 28px; color: var(--text-muted); font-size: .95rem; }
.list-check li::before {
  content: '✓'; position: absolute; left: 0; top: -1px; width: 19px; height: 19px; border-radius: 50%;
  background: var(--brand-soft); color: #a5b4fc; font-size: .7rem; display: grid; place-items: center;
}

/* work cards */
.work { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); background: var(--bg-elevated); }
.work img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .6s var(--ease), filter .4s ease; filter: saturate(.85); }
.work:hover img { transform: scale(1.06); filter: saturate(1); }
.work__body { position: absolute; inset: auto 0 0; padding: 20px; background: linear-gradient(0deg, rgba(8, 8, 14, 0.94) 25%, transparent 100%); }
.work__tag { font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.work__title { font-size: 1.05rem; font-weight: 600; margin: 4px 0 0; }

/* timeline */
.timeline { list-style: none; position: relative; padding-left: 28px; }
.timeline::before { content: ''; position: absolute; left: 6px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(180deg, var(--brand), rgba(245, 158, 11, 0.5)); }
.timeline li { position: relative; padding-bottom: 28px; }
.timeline li::before {
  content: ''; position: absolute; left: -28px; top: 7px; width: 14px; height: 14px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--brand);
}
.timeline li:last-child { padding-bottom: 0; }
.timeline__year { font-family: var(--mono); font-size: .78rem; color: var(--accent); letter-spacing: .08em; }
.timeline h3 { margin: 2px 0 .35rem; font-size: 1.05rem; }
.timeline p { margin: 0; font-size: .95rem; }

/* testimonials */
.quote { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px; height: 100%; }
.quote p { color: var(--text); font-size: .98rem; }
.quote__who { display: flex; align-items: center; gap: 12px; margin-top: 20px; }
.quote__who img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; }
.quote__name { font-weight: 600; font-size: .92rem; }
.quote__role { font-size: .82rem; color: var(--text-subtle); }
.stars { color: var(--accent); font-size: .85rem; letter-spacing: 2px; }

/* steps */
.step { position: relative; padding-top: 44px; }
.step__num { position: absolute; top: 0; left: 0; font-family: var(--mono); font-size: 2rem; font-weight: 700; color: rgba(99, 102, 241, 0.35); line-height: 1; }

/* accordion */
.accordion { border-top: 1px solid var(--border); }
.accordion__item { border-bottom: 1px solid var(--border); }
.accordion__btn {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: none; border: 0; color: var(--text); text-align: left;
  padding: 22px 0; font-size: 1.02rem; font-weight: 600; line-height: 1.4;
}
.accordion__btn:hover { color: #a5b4fc; }
.accordion__icon { flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--brand-soft); color: #a5b4fc; display: grid; place-items: center; font-size: 1rem; transition: transform .3s var(--ease); }
.accordion__btn[aria-expanded="true"] .accordion__icon { transform: rotate(45deg); }
.accordion__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .32s var(--ease); }
.accordion__panel[data-open="true"] { grid-template-rows: 1fr; }
.accordion__panel > div { overflow: hidden; }
.accordion__panel p { padding-bottom: 22px; margin: 0; max-width: 72ch; }

/* page hero (inner pages) */
.page-hero { position: relative; padding: 148px 0 clamp(44px, 6vw, 72px); border-bottom: 1px solid var(--border); overflow: hidden; }
.page-hero::before {
  content: ''; position: absolute; top: -200px; left: 50%; width: 900px; height: 520px; transform: translateX(-50%); z-index: 0;
  background: radial-gradient(ellipse 50% 50% at 50% 50%, rgba(99, 102, 241, 0.15), transparent 70%);
}
.page-hero > .container { position: relative; z-index: 1; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; font-size: .82rem; color: var(--text-subtle); margin-bottom: 18px; font-family: var(--mono); }
.breadcrumb li + li::before { content: '/'; margin-right: 8px; color: rgba(148, 163, 184, 0.4); }
.breadcrumb a:hover { color: var(--brand); }

/* CTA band */
.cta-band { position: relative; overflow: hidden; border: 1px solid var(--brand-line); border-radius: 20px; padding: clamp(32px, 5vw, 56px); background: linear-gradient(135deg, rgba(99, 102, 241, 0.16), rgba(245, 158, 11, 0.08)); }
.cta-band h2 { margin-bottom: .4rem; }

/* ---------- 11. Forms ---------- */
.form { display: grid; gap: 16px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 620px) { .form__row { grid-template-columns: 1fr; } }
.field label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: 7px; color: var(--text); }
.field input, .field select, .field textarea {
  width: 100%; padding: .85rem 1rem; border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--border);
  color: var(--text); font: inherit; font-size: .95rem;
  transition: border-color .2s ease, background .2s ease;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--text-subtle); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); background: rgba(99, 102, 241, 0.07); }
.field--error input, .field--error textarea, .field--error select { border-color: #ef4444; }
.field__error { display: none; font-size: .8rem; color: #f87171; margin-top: 6px; }
.field--error .field__error { display: block; }
.form__note { font-size: .82rem; color: var(--text-subtle); }
.form__status { display: none; padding: 14px 16px; border-radius: var(--radius-sm); font-size: .92rem; }
.form__status.is-ok { display: block; background: rgba(34, 197, 94, 0.12); border: 1px solid rgba(34, 197, 94, 0.4); color: #86efac; }
.form__status.is-err { display: block; background: rgba(239, 68, 68, 0.12); border: 1px solid rgba(239, 68, 68, 0.4); color: #fca5a5; }
.hp { position: absolute; left: -9999px; opacity: 0; }

/* contact details */
.contact-item { display: flex; gap: 14px; align-items: flex-start; padding: 18px 0; border-bottom: 1px solid var(--border); }
.contact-item:last-child { border-bottom: 0; }
.contact-item__icon { width: 40px; height: 40px; flex: none; border-radius: 11px; background: var(--brand-soft); display: grid; place-items: center; }
.contact-item__label { font-size: .8rem; color: var(--text-subtle); font-family: var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.contact-item a { font-weight: 600; }
.contact-item a:hover { color: var(--brand); }

/* ---------- 12. Footer ---------- */
.footer { background: #08080e; border-top: 1px solid var(--border); padding-block: clamp(48px, 6vw, 72px) 0; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; }
@media (max-width: 900px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer__grid { grid-template-columns: 1fr; } }
.footer__logo img { height: 42px; margin-bottom: 16px; }
.footer h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--text-subtle); font-family: var(--mono); margin-bottom: 14px; }
.footer__links { list-style: none; display: grid; gap: 9px; }
.footer__links a { font-size: .93rem; color: var(--text-muted); }
.footer__links a:hover { color: var(--brand); }
.footer__bottom {
  margin-top: 44px; padding-block: 22px; border-top: 1px solid var(--border);
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center;
  font-size: .85rem; color: var(--text-subtle);
}
.footer__bottom a:hover { color: var(--brand); }
.social { display: flex; gap: 10px; }
.social a {
  width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--border); color: var(--text-muted);
  transition: color .2s ease, border-color .2s ease, transform .2s var(--ease);
}
.social a:hover { color: var(--brand); border-color: var(--brand); transform: translateY(-2px); }

/* ---------- Animations ---------- */
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
@keyframes shimmer { 0% { background-position: 0% 0%; } 100% { background-position: 0% 200%; } }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes drift { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

[data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
[data-reveal].is-visible { opacity: 1; transform: none; }
[data-reveal][data-delay="1"] { transition-delay: .09s; }
[data-reveal][data-delay="2"] { transition-delay: .18s; }
[data-reveal][data-delay="3"] { transition-delay: .27s; }
[data-reveal][data-delay="4"] { transition-delay: .36s; }

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

/* ---------- Utilities ---------- */
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 200; padding: 12px 18px; background: var(--brand); color: #fff; border-radius: 0 0 8px 0; }
.skip-link:focus { left: 0; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.mt-3 { margin-top: 24px; } .mt-4 { margin-top: 36px; }
.muted { color: var(--text-muted); }
.small { font-size: .88rem; }
.badge {
  display: inline-flex; align-items: center; gap: 7px; padding: .4rem .85rem; border-radius: 999px;
  background: var(--brand-soft); border: 1px solid var(--brand-line);
  font-family: var(--mono); font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; color: #a5b4fc;
}
.badge--amber { background: rgba(245, 158, 11, 0.12); border-color: rgba(245, 158, 11, 0.3); color: #fcd34d; }
.prose h2 { margin-top: 2.2em; }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 20px; color: var(--text-muted); margin-bottom: 1rem; }
.prose li { margin-bottom: .4rem; }
.prose { max-width: 76ch; }

/* ===================================================================
   13. MOTION LAYER
   Scroll-driven reveals, pointer effects and ambient animation.
   Everything here degrades to "no movement" under prefers-reduced-motion
   (see the override block at the end of this section).
=================================================================== */

/* ---- page entrance ---- */
@keyframes slideDown { from { transform: translateY(-100%); opacity: 0; } }
.header { animation: slideDown .75s var(--ease) both; }

@keyframes loadIn { from { opacity: 0; transform: translateY(26px); } }
.load-in { animation: loadIn .8s var(--ease) both; animation-delay: calc(var(--i, 0) * 110ms); }

/* ---- headline word reveal ---- */
@keyframes wordIn { to { opacity: 1; transform: none; filter: blur(0); } }
[data-split] .w { display: inline-block; }
[data-split].is-split .w {
  opacity: 0; transform: translateY(.5em) rotate(1.5deg); filter: blur(7px);
  animation: wordIn .7s var(--ease) forwards;
  animation-delay: calc(var(--i) * 52ms);
}

/* ---- scroll progress ---- */
.scroll-progress {
  position: fixed; inset: 0 0 auto; height: 3px; z-index: 100;
  background: linear-gradient(90deg, var(--brand), var(--accent));
  transform: scaleX(0); transform-origin: 0 50%; will-change: transform;
}

/* ---- back to top ---- */
.to-top {
  position: fixed; right: 18px; bottom: 18px; z-index: 95;
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(99, 102, 241, .18); border: 1px solid var(--brand-line); color: #fff;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  opacity: 0; transform: translateY(14px) scale(.9); pointer-events: none;
  transition: opacity .35s var(--ease), transform .35s var(--ease), background .25s ease;
}
.to-top.is-on { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--brand); transform: translateY(-3px); }

/* ---- ambient hero aurora ---- */
@keyframes aurora {
  0%   { transform: translate3d(0, 0, 0) scale(1);       opacity: .8; }
  50%  { transform: translate3d(-46px, 28px, 0) scale(1.14); opacity: 1; }
  100% { transform: translate3d(34px, -22px, 0) scale(1.05);  opacity: .85; }
}
.hero::before {
  background:
    radial-gradient(ellipse 46% 52% at 64% 40%, rgba(99, 102, 241, .22), transparent 70%),
    radial-gradient(ellipse 38% 44% at 32% 66%, rgba(245, 158, 11, .13), transparent 70%);
  animation: aurora 17s ease-in-out infinite alternate;
}
.page-hero::before { animation: aurora 20s ease-in-out infinite alternate; }

/* ---- reveal variants + stagger ---- */
[data-reveal] { transition-delay: calc(var(--i, 0) * 75ms); }
[data-reveal="left"]  { transform: translateX(-32px); }
[data-reveal="right"] { transform: translateX(32px); }
[data-reveal="zoom"]  { transform: scale(.93); }
[data-reveal].is-visible { transform: none; }
[data-reveal="clip"] {
  opacity: 1; transform: none; clip-path: inset(0 0 100% 0);
  transition: clip-path 1s var(--ease);
}
[data-reveal="clip"].is-visible { clip-path: inset(0 0 0 0); }

/* ---- pointer spotlight on cards ---- */
.card, .quote { position: relative; overflow: hidden; }
.card::after, .quote::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 50%), rgba(99, 102, 241, .16), transparent 62%);
  transition: opacity .4s ease;
}
.card:hover::after, .quote:hover::after { opacity: 1; }
.card__icon { transition: background .3s ease, transform .45s var(--ease); }
.card:hover .card__icon { transform: translateY(-3px) rotate(-7deg); }

/* ---- button shine ---- */
.btn { position: relative; overflow: hidden; }
.btn--primary::before, .btn--amber::before {
  content: ''; position: absolute; top: 0; left: -130%; width: 55%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .38), transparent);
  transform: skewX(-20deg); transition: left .65s var(--ease);
}
.btn--primary:hover::before, .btn--amber:hover::before { left: 140%; }

/* ---- nav underline ---- */
.nav__link { position: relative; }
.nav__link::before {
  content: ''; position: absolute; left: .85rem; right: .85rem; bottom: .34rem; height: 2px;
  background: linear-gradient(90deg, var(--brand), var(--accent));
  transform: scaleX(0); transform-origin: left; transition: transform .32s var(--ease);
}
.nav__link:hover::before { transform: scaleX(1); }

/* ---- work cards ---- */
.work { transition: transform .45s var(--ease), box-shadow .45s ease; will-change: transform; }
.work:hover { box-shadow: 0 26px 64px rgba(0, 0, 0, .5); border-color: var(--brand-line); }
.work__body { transition: transform .45s var(--ease); }
.work:hover .work__body { transform: translateY(-5px); }
.work__tag { display: inline-block; transition: color .3s ease, transform .4s var(--ease); }
.work:hover .work__tag { transform: translateX(3px); }

/* ---- floating terminal (parallax on the wrapper, float on the inner card) ---- */
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-13px); } }
.terminal { transform: translateY(var(--py, 0px)); will-change: transform; }
.terminal__inner { animation: float 8s ease-in-out infinite; }
.terminal__body code { display: block; }

/* ---- timeline progress ---- */
.timeline::before { background: rgba(148, 163, 184, .18); }
.timeline::after {
  content: ''; position: absolute; left: 6px; top: 6px; width: 2px; border-radius: 2px;
  height: var(--tl, 0%); background: linear-gradient(180deg, var(--brand), var(--accent));
  transition: height .25s linear;
}
.timeline li::before { transition: border-color .4s ease, box-shadow .4s ease, transform .4s var(--ease); }
.timeline li.is-visible::before {
  border-color: var(--accent); box-shadow: 0 0 0 6px rgba(245, 158, 11, .12); transform: scale(1.12);
}

/* ---- stats ---- */
.stat__num { text-shadow: 0 0 28px rgba(99, 102, 241, .28); }

/* ---- marquee polish ---- */
.marquee {
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.marquee__item { transition: color .3s ease; }
.marquee__item:hover { color: var(--text); }

/* ---- accordion content ---- */
.accordion__panel p { opacity: 0; transform: translateY(-6px); transition: opacity .35s ease .06s, transform .35s var(--ease) .06s; }
.accordion__panel[data-open="true"] p { opacity: 1; transform: none; }
.accordion__btn { transition: color .25s ease, padding-left .3s var(--ease); }
.accordion__btn:hover { padding-left: 6px; }

/* ---- links & steps ---- */
.step__num { transition: color .4s ease, transform .5s var(--ease); }
.step:hover .step__num { color: rgba(99, 102, 241, .75); transform: translateY(-4px); }
.list-check li::before { transition: transform .35s var(--ease), background .3s ease; }
.list-check li:hover::before { transform: scale(1.18); background: rgba(99, 102, 241, .3); }
.cta-band { transition: border-color .4s ease, box-shadow .4s ease; }
.cta-band:hover { border-color: var(--brand); box-shadow: 0 0 50px rgba(99, 102, 241, .14); }

/* ---- reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  .header, .load-in, [data-split].is-split .w, .terminal__inner, .hero::before, .page-hero::before { animation: none !important; }
  .terminal { transform: none !important; }
  [data-split].is-split .w { opacity: 1; transform: none; filter: none; }
  .load-in { opacity: 1; transform: none; }
  .scroll-progress, .to-top { transition: none; }
  [data-reveal="clip"] { clip-path: none; }
}

/* ---- hero scroll cue ---- */
@keyframes cueLine { 0% { transform: scaleY(0); transform-origin: top; } 45% { transform: scaleY(1); transform-origin: top; } 55% { transform: scaleY(1); transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }
.scroll-cue {
  display: flex; align-items: center; gap: 12px; margin-top: 46px;
  font-family: var(--mono); font-size: .72rem; letter-spacing: .18em;
  text-transform: uppercase; color: var(--text-subtle);
}
.scroll-cue__line { display: block; width: 1px; height: 46px; background: linear-gradient(180deg, var(--brand), transparent); animation: cueLine 2.6s ease-in-out infinite; }
@media (max-width: 960px) { .scroll-cue { display: none; } }
@media (prefers-reduced-motion: reduce) { .scroll-cue__line { animation: none; } }

/* ---- fixes: duplicate header CTA, scroll cue placement ---- */
.nav__cta-mobile { display: none; }            /* desktop: header CTA only */
@media (max-width: 900px) {
  .nav__cta-mobile { display: block; }         /* mobile: in-menu CTA only */
}
.scroll-cue { margin-top: 38px; }

/* ===================================================================
   14. TOPBAR, DROPDOWN NAV, FORM BLOCKS  (PHP build)
=================================================================== */

/* ---- top contact bar ---- */
.topbar {
  position: fixed; inset: 0 0 auto; z-index: 91;
  background: #07070d; border-bottom: 1px solid var(--border);
  font-size: .82rem;
}
.topbar__inner { display: flex; align-items: center; gap: 22px; height: 38px; }
.topbar__item a, .topbar__item { color: var(--text-subtle); display: inline-flex; align-items: center; gap: 7px; }
.topbar__item a:hover { color: var(--brand); }
.topbar__item--wide { margin-left: auto; }
.topbar__wa {
  padding: .28rem .8rem; border-radius: 999px; font-weight: 600; font-size: .78rem;
  background: rgba(34, 197, 94, .14); border: 1px solid rgba(34, 197, 94, .35); color: #86efac;
  transition: background .25s ease, transform .25s var(--ease);
}
.topbar__wa:hover { background: rgba(34, 197, 94, .24); transform: translateY(-1px); }
.header { top: 38px; }
.hero, .page-hero { padding-top: 186px; }
@media (max-width: 900px) {
  .topbar__item--wide, .topbar__item:nth-child(2) { display: none; }
  .topbar__item--wide { margin-left: 0; }
  .topbar__inner { gap: 14px; justify-content: space-between; }
  .nav { top: 114px; inset: 114px 0 auto; }
}

/* ---- dropdown navigation ---- */
.nav__item { position: relative; }
.nav__caret { font-size: .7em; opacity: .7; margin-left: 5px; }
.subnav {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 232px; z-index: 5;
  list-style: none; padding: 8px; border-radius: 12px;
  background: rgba(14, 14, 22, .98); border: 1px solid var(--brand-line);
  box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
}
.nav__item:hover .subnav, .nav__item:focus-within .subnav { opacity: 1; visibility: visible; transform: none; }
.subnav a {
  display: block; padding: .55rem .75rem; border-radius: 8px;
  font-size: .9rem; color: var(--text-muted); white-space: nowrap;
}
.subnav a:hover { background: var(--brand-soft); color: var(--text); }
@media (max-width: 900px) {
  .subnav {
    position: static; opacity: 1; visibility: visible; transform: none;
    background: transparent; border: 0; box-shadow: none; padding: 0 0 6px 14px;
    border-left: 1px solid var(--border); margin: 0 0 6px 10px;
  }
  .nav__caret { display: none; }
}

/* ---- enquiry form block ---- */
.enquiry { background: var(--bg-card); border: 1px solid var(--brand-line); border-radius: var(--radius); padding: clamp(22px, 3vw, 34px); }
.enquiry__title { font-size: clamp(1.4rem, 2.4vw, 1.9rem); margin-bottom: .4rem; }
.enquiry__intro { margin-bottom: 1.4rem; }
.enquiry .form { margin-top: 0; }

/* ---- footer additions ---- */
.footer__contact { list-style: none; display: grid; gap: 7px; margin-top: 14px; font-size: .92rem; }
.footer__contact a { color: var(--text-muted); }
.footer__contact a:hover { color: var(--brand); }
.footer__legal { display: flex; flex-wrap: wrap; gap: 16px; }

/* ---- product / service page bits ---- */
.module-list { list-style: none; display: grid; gap: 14px; counter-reset: mod; }
.module-list li {
  position: relative; padding: 20px 22px 20px 62px; border-radius: var(--radius-sm);
  background: var(--bg-card); border: 1px solid var(--border);
  transition: border-color .3s ease, transform .3s var(--ease);
}
.module-list li:hover { border-color: var(--brand-line); transform: translateX(3px); }
.module-list li::before {
  counter-increment: mod; content: counter(mod, decimal-leading-zero);
  position: absolute; left: 22px; top: 20px;
  font-family: var(--mono); font-size: .8rem; font-weight: 700; color: var(--brand);
}
.module-list h3 { font-size: 1.02rem; margin-bottom: .3rem; }
.module-list p { margin: 0; font-size: .93rem; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.chip {
  padding: .35rem .8rem; border-radius: 999px; font-family: var(--mono); font-size: .76rem;
  background: rgba(255, 255, 255, .04); border: 1px solid var(--border); color: var(--text-muted);
}
.pill-nav { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }
.pill-nav a {
  padding: .5rem 1rem; border-radius: 999px; font-size: .88rem; font-weight: 600;
  background: rgba(255, 255, 255, .03); border: 1px solid var(--border); color: var(--text-muted);
  transition: all .25s var(--ease);
}
.pill-nav a:hover, .pill-nav a[aria-current="true"] { border-color: var(--brand); color: var(--text); background: var(--brand-soft); }

/* ===================================================================
   15. HERO BALANCE — fill the right column, tighten the headline
=================================================================== */

/* Headline: slightly smaller cap so it stops running to four lines */
.hero__title { font-size: clamp(2rem, 4.1vw, 3.1rem); }

/* Wider hero columns, top-aligned so both sides start together */
.hero .split { grid-template-columns: 1fr 1fr; align-items: start; }
.hero .split > div:first-child { padding-top: 6px; }

/* Right column stack: terminal + two quick links */
.hero-aside { display: grid; gap: 18px; align-content: start; }
.terminal__body { font-size: .8rem; }
.terminal__body .c-ok { color: var(--green); }

.hero-mini { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hero-mini__card {
  display: grid; gap: 4px; padding: 18px 20px; border-radius: var(--radius-sm);
  background: var(--bg-card); border: 1px solid var(--border);
  transition: border-color .3s ease, transform .3s var(--ease), background .3s ease;
}
.hero-mini__card:hover { border-color: var(--brand); transform: translateY(-3px); background: rgba(99, 102, 241, .07); }
.hero-mini__label {
  font-family: var(--mono); font-size: .68rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--brand);
}
.hero-mini__label--amber { color: var(--accent); }
.hero-mini__card strong { font-size: .95rem; font-weight: 600; line-height: 1.35; }
.hero-mini__go { font-size: .82rem; color: var(--text-subtle); }
.hero-mini__card:hover .hero-mini__go { color: var(--text-muted); }

@media (max-width: 1100px) {
  .hero .split { grid-template-columns: 1fr; }
  .hero-aside { max-width: 620px; }
}
@media (max-width: 520px) {
  .hero-mini { grid-template-columns: 1fr; }
}

/* ---- overflow guard: let grid/flex children shrink below content width ----
   Without min-width:0 a wide <pre> (the hero terminal) forces its grid column
   wider than the viewport, which clipped the whole page on phones.          */
.split > *, .grid > *, .hero-aside > *, .footer__grid > * { min-width: 0; }
.terminal, .terminal__inner { max-width: 100%; }
.terminal__body { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.marquee__track { max-width: none; }

/* ---- tighten the hero: no scroll cue, less dead space below ---- */
.scroll-cue { display: none; }
.hero { padding-bottom: clamp(36px, 4vw, 56px); }
.hero__stats { margin-top: 36px; }

/* ---- terminal: no downward parallax ----
   The hero terminal sits directly above the two quick-link cards with only a
   small gap. Translating it down on scroll made it cover them, so the depth
   effect is now carried by the float animation on the inner card alone.      */
.terminal { transform: none; will-change: auto; }
.hero-aside { gap: 22px; }

/* ---- four hero stats: tidy 2x2 block instead of an uneven wrap ---- */
.hero__stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px clamp(20px, 3vw, 40px);
}
.hero__stats .stat__num { font-size: clamp(1.7rem, 3vw, 2.35rem); }
@media (max-width: 420px) { .hero__stats { grid-template-columns: 1fr 1fr; gap: 20px; } }

/* ---- native controls follow the dark theme ----
   The open <select> popup is drawn by the browser, not by our CSS, so it was
   rendering as a light list with near-white text. color-scheme fixes the popup,
   scrollbars and date pickers; the explicit option colours cover older browsers. */
:root { color-scheme: dark; }
.field select { background-color: #14141f; }
.field select option,
.field select optgroup {
  background-color: #14141f;
  color: #f1f5f9;
}
.field input, .field textarea { background-color: rgba(255, 255, 255, 0.04); }

/* ---- testimonial avatars: initials, not stock faces ---- */
.quote__avatar {
  width: 42px; height: 42px; flex: none; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--brand-soft); border: 1px solid var(--brand-line);
  color: #a5b4fc; font-family: var(--mono); font-size: .82rem; font-weight: 600;
  letter-spacing: .04em;
}

/* ---- team cards ---- */
.person {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; height: 100%; position: relative; overflow: hidden;
  transition: transform .3s var(--ease), border-color .3s ease, box-shadow .3s ease;
}
.person:hover { transform: translateY(-4px); border-color: var(--brand-line); box-shadow: 0 10px 34px rgba(99, 102, 241, .1); }
.person__head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.person__photo {
  width: 62px; height: 62px; flex: none; border-radius: 50%; object-fit: cover;
  border: 1px solid var(--brand-line);
}
.person__photo--empty {
  display: grid; place-items: center;
  background: var(--brand-soft); color: #a5b4fc;
}
.person__name { font-size: 1.05rem; margin: 0 0 2px; }
.person__role { margin: 0; font-size: .85rem; color: var(--text-subtle); }
.person .chip-row { margin-top: 14px; }

/* ---- grouped stack labels (About) ---- */
.stack-label {
  font-size: .72rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--text-subtle); font-family: var(--mono);
  margin: 20px 0 8px;
}

/* ---- footer address ---- */
.footer__address {
  font-style: normal; font-size: .9rem; color: var(--text-muted);
  margin-top: 14px; line-height: 1.7;
}

/* ---- course facts strip ---- */
.facts {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1px; margin: 0 0 clamp(32px, 4vw, 48px);
  background: var(--border); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden;
}
.facts__item { background: var(--bg-elevated); padding: 20px 22px; }
.facts dt {
  font-family: var(--mono); font-size: .7rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--text-subtle); margin-bottom: 6px;
}
.facts dd { margin: 0; font-size: .95rem; font-weight: 600; color: var(--text); line-height: 1.45; }
.facts dd a { color: var(--brand); }
.facts dd a:hover { text-decoration: underline; }

/* ---- product interface shots ---- */
.shot { margin: 0; }
.shot img {
  width: 100%; border-radius: var(--radius); border: 1px solid var(--brand-line);
  box-shadow: 0 18px 44px rgba(0, 0, 0, .45);
  transition: transform .4s var(--ease), border-color .3s ease;
}
.shot:hover img { transform: translateY(-4px); border-color: var(--brand); }
.shot figcaption { display: block; margin-top: 14px; }
.shot figcaption strong { display: block; font-size: 1rem; margin-bottom: 4px; color: var(--text); }
.shot figcaption span { font-size: .9rem; color: var(--text-muted); line-height: 1.6; }

/* ---- syllabus module headings ---- */
.module-no {
  display: block; font-size: .7rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--brand); margin-bottom: 3px;
}
.accordion__btn > span:first-child { display: block; }

/* ---- split columns start together ----
   Default centring left a large gap above short columns (e.g. the enquiry form
   beside a long syllabus). Top-aligned is right for every split on the site. */
.split { align-items: start; }
.split--center { align-items: center; }

/* ---- facts strip: bordered tiles, so unused grid cells never show ---- */
.facts {
  background: transparent;
  border: 0;
  gap: 12px;
  overflow: visible;
}
.facts__item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
}

/* ---- hero stats: fit however many there are ---- */
.hero__stats { grid-template-columns: repeat(auto-fit, minmax(148px, 1fr)); }
