/* ============================================================
   Attila Technologies — Design System
   Style: Swiss Modernism + Trust & Authority
   Palette: Deep navy + tech blue + cyan accent + amber trust
   ============================================================ */

:root {
  /* Brand — heraldic gold / bronze on warm dark (matches crest logo) */
  --navy:        #14110A;  /* warm near-black (dark sections) */
  --navy-2:      #221B10;  /* espresso */
  --gold:        #D4AF37;  /* bright metallic gold (dark bg / decor) */
  --gold-light:  #F0D77B;
  --gold-grad-a: #EBCB5A;
  --gold-grad-b: #A9772B;  /* bronze */
  --primary:     #7E5F10;  /* deep gold — readable text/links on light */
  --primary-600: #6B4E0F;
  --primary-700: #57400C;
  --accent:      #A9772B;  /* bronze (gradient 2nd stop) */
  --accent-2:    #8E2B20;  /* crimson (sword-grip highlight) */
  --bronze:      #A9824B;
  --on-primary:  #1A1510;  /* dark text on gold buttons */

  /* Neutrals (warm / parchment) */
  --bg:          #FFFFFF;
  --surface:     #FAF6EC;  /* parchment */
  --surface-2:   #F2EAD6;
  --card:        #FFFFFF;
  --text:        #1C1810;  /* warm near-black */
  --muted:       #6E6453;  /* warm grey */
  --border:      #EAE2CF;
  --border-strong:#D8CDB3;

  /* Effects */
  --radius-sm: 10px;
  --radius:    16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(28,24,16,.06), 0 1px 3px rgba(28,24,16,.08);
  --shadow:    0 8px 24px -8px rgba(28,24,16,.20);
  --shadow-lg: 0 24px 60px -20px rgba(20,17,10,.45);
  --ring:      0 0 0 3px rgba(212,175,55,.45);
  --gold-grad: linear-gradient(135deg, var(--gold-grad-a), var(--gold-grad-b));

  /* Type scale */
  --font-head: 'Lexend', system-ui, sans-serif;
  --font-body: 'Source Sans 3', system-ui, sans-serif;

  --maxw: 1180px;
  --header-h: 72px;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; color: var(--text); }
h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); font-weight: 700; }
h3 { font-size: 1.3rem; font-weight: 600; }
p  { margin: 0 0 1rem; }
a  { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
ul { margin: 0; padding: 0; list-style: none; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.ico { width: 20px; height: 20px; flex: none; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 1000;
  background: var(--primary); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 6px; }

/* ---------- Buttons ---------- */
.btn {
  --bg-btn: var(--primary);
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  font-family: var(--font-head); font-weight: 600; font-size: .98rem;
  padding: .72em 1.3em; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
  white-space: nowrap; line-height: 1;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn-lg { padding: .95em 1.7em; font-size: 1.02rem; }
.btn-block { width: 100%; }

.btn-primary { background: var(--gold-grad); color: var(--on-primary); box-shadow: 0 8px 20px -8px rgba(169,119,43,.8); }
.btn-primary:hover { filter: brightness(1.06); box-shadow: 0 12px 28px -8px rgba(169,119,43,.9); transform: translateY(-1px); }

.btn-outline { background: transparent; color: var(--text); border-color: var(--border-strong); }
.btn-outline:hover { border-color: var(--gold-grad-b); color: var(--primary); transform: translateY(-1px); }

.btn-ghost { background: transparent; color: var(--text); padding: .55em .8em; }
.btn-ghost:hover { color: var(--primary); }

.btn-light { background: #fff; color: var(--primary-700); }
.btn-light:hover { transform: translateY(-1px); box-shadow: var(--shadow); }

.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.btn-outline-light:hover { background: rgba(255,255,255,.12); border-color: #fff; transform: translateY(-1px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .25s ease, border-color .25s ease, background .25s ease;
}
.site-header.scrolled { box-shadow: var(--shadow-sm); border-color: var(--border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand-img { height: 42px; width: auto; display: block; filter: drop-shadow(0 2px 4px rgba(20,17,10,.25)); }
.brand-text { display: inline-flex; flex-direction: column; line-height: 1; }
.brand-text b { font-family: 'Cinzel', serif; font-weight: 700; font-size: 1.22rem; letter-spacing: .01em; color: #8B6914; }
.brand-text i { font-family: 'Cinzel', serif; font-style: normal; font-weight: 600; font-size: .56rem; letter-spacing: .34em; text-transform: uppercase; color: var(--bronze, #A9824B); margin-top: 3px; }
.brand-footer .brand-img { height: 46px; }
.brand-footer .brand-text b { color: var(--gold-light); }
.brand-footer .brand-text i { color: #c7b489; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  position: relative; font-family: var(--font-head); font-weight: 500; font-size: .98rem;
  color: var(--text); padding: .5em .8em; border-radius: 8px; transition: color .15s ease, background .15s ease;
}
.nav a::after {
  content: ""; position: absolute; left: 50%; bottom: 4px; width: 0; height: 2px; border-radius: 2px;
  background: var(--primary); transform: translateX(-50%); transition: width .2s ease;
}
.nav a:hover { color: var(--primary); }
.nav a:hover::after, .nav a.active::after { width: 22px; }
.nav a.active { color: var(--primary); }

.header-actions { display: flex; align-items: center; gap: 8px; }
.btn-call span { font-weight: 600; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .25s ease, opacity .2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--navy); color: #fff; padding: clamp(48px, 8vw, 96px) 0 clamp(56px, 9vw, 110px); }
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.grid-glow {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(ellipse 80% 70% at 70% 10%, #000 30%, transparent 75%);
}
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; }
.blob-1 { width: 420px; height: 420px; background: var(--gold); top: -120px; right: -60px; opacity: .35; }
.blob-2 { width: 360px; height: 360px; background: var(--accent-2); bottom: -140px; left: -80px; opacity: .3; }

.hero-inner { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-head); font-weight: 500; font-size: .85rem; letter-spacing: .02em; color: #ece0c4; background: rgba(212,175,55,.10); border: 1px solid rgba(212,175,55,.28); padding: .45em .9em; border-radius: 999px; margin-bottom: 22px; }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(212,175,55,.25); }
.hero h1 { color: #fff; }
.grad { background: linear-gradient(100deg, var(--gold-light), var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { font-size: 1.16rem; color: #d8cdb3; max-width: 36ch; margin-bottom: 28px; }
.hero .lead strong { color: #fff; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 26px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 18px; }
.hero-trust li { display: inline-flex; align-items: center; gap: 7px; font-size: .95rem; color: #d8cdb3; }
.hero-trust .ico { width: 18px; height: 18px; color: var(--gold); }

.hero-card {
  background: linear-gradient(180deg, rgba(255,255,255,.12), rgba(255,255,255,.04));
  border: 1px solid rgba(255,255,255,.16); border-radius: var(--radius-lg);
  padding: 22px; box-shadow: var(--shadow-lg); backdrop-filter: blur(6px);
}
.hero-card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.live { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-head); font-weight: 600; font-size: .85rem; color: #fff; }
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 0 rgba(52,211,153,.7); animation: pulse 2s infinite; }
.hero-card-rating { font-size: .9rem; color: var(--gold); }
.hero-card-rating em { color: #fff; font-style: normal; font-weight: 700; }
.hero-card-body { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hcard-stat { background: rgba(212,175,55,.07); border: 1px solid rgba(212,175,55,.16); border-radius: var(--radius-sm); padding: 16px; }
.hcard-stat strong { display: block; font-family: var(--font-head); font-size: 1.9rem; font-weight: 800; line-height: 1; color: var(--gold-light); }
.hcard-stat span { font-size: .82rem; color: #c9bda0; }
.hero-card-foot { display: flex; align-items: center; gap: 10px; margin-top: 16px; padding-top: 16px; border-top: 1px solid rgba(212,175,55,.18); font-family: var(--font-head); font-weight: 500; font-size: .9rem; color: #ece0c4; }
.hero-card-foot .ico { color: var(--gold); }

@keyframes pulse { 0%{ box-shadow: 0 0 0 0 rgba(52,211,153,.6);} 70%{ box-shadow: 0 0 0 8px rgba(52,211,153,0);} 100%{ box-shadow: 0 0 0 0 rgba(52,211,153,0);} }

/* ---------- Stats strip ---------- */
.stats { background: var(--navy-2); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 22px 22px; }
.stat { text-align: center; padding: 10px; color: #fff; }
.stat strong { display: block; font-family: var(--font-head); font-size: 1.9rem; font-weight: 800; background: linear-gradient(100deg, var(--gold-light), var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { font-size: .9rem; color: #cabd9f; }

/* ---------- Sections ---------- */
.section { padding: clamp(56px, 8vw, 100px) 0; }
.section-head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.kicker { display: inline-block; font-family: var(--font-head); font-weight: 600; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; color: var(--primary); margin-bottom: 12px; }
.section-head p { color: var(--muted); font-size: 1.08rem; }

/* ---------- Features ---------- */
.features { background: var(--surface); }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--border-strong); }
.feature-ico { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 14px; color: var(--primary); background: linear-gradient(135deg, rgba(212,175,55,.18), rgba(169,119,43,.16)); margin-bottom: 18px; }
.feature-ico svg { width: 26px; height: 26px; }
.feature-card p { color: var(--muted); margin: 0; }

/* ---------- Courses ---------- */
.course-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.course-card { position: relative; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px 24px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.course-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--primary); }
.course-card.featured { border-color: var(--gold-grad-b); box-shadow: 0 18px 44px -18px rgba(169,119,43,.55); }
.course-card.featured::before { content: ""; position: absolute; inset: 0; border-radius: var(--radius); padding: 1px; background: var(--gold-grad); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.ribbon { position: absolute; top: -11px; right: 18px; font-family: var(--font-head); font-weight: 700; font-size: .72rem; letter-spacing: .05em; text-transform: uppercase; color: var(--on-primary); background: var(--gold-grad); padding: .35em .8em; border-radius: 999px; box-shadow: var(--shadow-sm); }
.level { align-self: flex-start; font-family: var(--font-head); font-weight: 600; font-size: .72rem; letter-spacing: .04em; text-transform: uppercase; padding: .3em .7em; border-radius: 999px; margin-bottom: 14px; }
.level-1 { color: #7E5F10; background: #F4EAC9; }
.level-2 { color: #6B4E0F; background: #ECDDB4; }
.level-3 { color: #8E2B20; background: #F6DAD3; }
.level-4 { color: #5B4636; background: #EBE0CF; }
.course-card h3 { margin-bottom: 2px; font-size: 1.5rem; font-weight: 800; }
.course-sub { font-size: .85rem; color: var(--muted); margin-bottom: 14px; font-weight: 600; }
.course-card > p { color: var(--muted); font-size: .96rem; }
.course-list { margin: 6px 0 20px; display: grid; gap: 8px; }
.course-list li { position: relative; padding-left: 26px; font-size: .92rem; color: var(--text); }
.course-list li::before { content: ""; position: absolute; left: 0; top: 7px; width: 16px; height: 16px; border-radius: 50%; background: rgba(169,119,43,.16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237E5F10' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/11px no-repeat; }
.course-cta { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-head); font-weight: 600; font-size: .95rem; color: var(--primary); background: none; border: 0; padding: 0; cursor: pointer; text-align: left; }
.course-cta .ico { width: 17px; height: 17px; transition: transform .2s ease; }
.course-cta:hover .ico { transform: translateX(4px); }

/* ---------- Brochure CTA ---------- */
.brochure-cta { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 32px; padding: 24px 28px; border-radius: var(--radius-lg); background: linear-gradient(120deg, var(--navy), var(--navy-2)); color: #fff; box-shadow: var(--shadow); }
.brochure-cta strong { display: block; font-family: var(--font-head); font-size: 1.2rem; color: var(--gold-light); }
.brochure-cta span { color: #d8cdb3; font-size: .95rem; }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(12,9,4,.62); backdrop-filter: blur(3px); animation: fadeIn .2s ease; }
.modal-card { position: relative; width: 100%; max-width: 720px; max-height: 90vh; overflow-y: auto; background: var(--card); border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow-lg); animation: modalIn .28s cubic-bezier(.2,.8,.2,1); }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes modalIn { from { opacity: 0; transform: translateY(20px) scale(.98); } }
.modal-close { position: absolute; top: 16px; right: 16px; width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--border); background: var(--card); border-radius: 10px; cursor: pointer; color: var(--muted); transition: all .15s ease; }
.modal-close:hover { color: var(--accent-2); border-color: var(--accent-2); }
.modal-close svg { width: 18px; height: 18px; }
.modal-head { margin-bottom: 14px; padding-right: 40px; }
.modal-head h3 { font-size: 1.9rem; margin: 8px 0 2px; }
.modal-sub { color: var(--muted); font-weight: 600; font-size: .9rem; margin: 0; }
.modal-blurb { color: var(--text); font-size: 1.02rem; }
.modal-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 20px 0; }
.modal-meta div { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px 14px; }
.modal-meta span { display: block; font-size: .76rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-family: var(--font-head); font-weight: 600; }
.modal-meta strong { font-family: var(--font-head); font-size: .98rem; }
.modal-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 24px; }
.modal-cols h4 { font-family: var(--font-head); font-size: .95rem; margin: 0 0 10px; color: var(--primary-700); }
.modal-list { display: grid; gap: 9px; }
.modal-list li { position: relative; padding-left: 24px; font-size: .92rem; color: var(--text); }
.modal-list li::before { content: ""; position: absolute; left: 0; top: 6px; width: 14px; height: 14px; border-radius: 50%; background: rgba(169,119,43,.16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237E5F10' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/10px no-repeat; }
.modal-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.modal-actions .btn { flex: 1; min-width: 180px; }

/* Brochure lead form */
.lead-form .field { margin-bottom: 14px; }
.lead-form label { display: block; font-family: var(--font-head); font-weight: 600; font-size: .9rem; margin-bottom: 6px; }
.lead-form input, .lead-form select { width: 100%; font-size: 1rem; padding: .75em 1em; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); background: #fff; min-height: 48px; }
.lead-form input:focus, .lead-form select:focus { outline: none; border-color: var(--gold-grad-b); box-shadow: var(--ring); }
.modal-success { text-align: center; padding: 14px 0; }
.ms-tick { width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 50%; display: grid; place-items: center; font-size: 2rem; color: #fff; background: var(--gold-grad); }
.modal-success h3 { margin: 0 0 6px; }
.modal-success p { color: var(--muted); margin-bottom: 18px; }

@media (max-width: 600px) {
  .modal-card { padding: 24px 20px; }
  .modal-meta, .modal-cols { grid-template-columns: 1fr; }
  .modal-head h3 { font-size: 1.5rem; }
}

/* ---------- Interactive network lab ---------- */
.netlab { background: var(--navy); color: #fff; position: relative; overflow: hidden; }
.netlab::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(212,175,55,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(212,175,55,.05) 1px, transparent 1px); background-size: 44px 44px; mask-image: radial-gradient(ellipse 70% 60% at 40% 40%, #000, transparent 75%); pointer-events: none; }
.netlab .section-head h2 { color: #fff; }
.netlab .section-head p { color: #d8cdb3; }
.netlab-wrap { position: relative; display: grid; grid-template-columns: 1.5fr 1fr; gap: 36px; align-items: center; }
.netlab-diagram svg { width: 100%; height: auto; display: block; overflow: visible; }

.net-links line { stroke: rgba(212,175,55,.35); stroke-width: 2; stroke-dasharray: 5 6; animation: dash 18s linear infinite; }
.packet { fill: var(--gold-light); filter: drop-shadow(0 0 6px rgba(240,215,123,.9)); }

.net-node { cursor: pointer; }
.net-node:focus { outline: none; }
.node-bg { fill: rgba(255,255,255,.06); stroke: var(--gold); stroke-width: 2; transition: fill .2s ease, stroke .2s ease, r .2s ease; }
.node-ico { fill: none; stroke: var(--gold-light); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.node-label { fill: #d8cdb3; font-family: var(--font-head); font-weight: 600; font-size: 15px; }
.net-node:hover .node-bg, .net-node:focus .node-bg, .net-node.active .node-bg { fill: rgba(212,175,55,.2); stroke: var(--gold-light); stroke-width: 3; filter: drop-shadow(0 0 10px rgba(212,175,55,.7)); }
.net-node:hover .node-label, .net-node.active .node-label { fill: #fff; }

.netlab-info { background: linear-gradient(180deg, rgba(255,255,255,.1), rgba(255,255,255,.04)); border: 1px solid rgba(212,175,55,.25); border-radius: var(--radius-lg); padding: 30px; box-shadow: var(--shadow-lg); min-height: 220px; }
.ni-badge { display: inline-block; font-family: var(--font-head); font-weight: 600; font-size: .76rem; letter-spacing: .04em; text-transform: uppercase; color: var(--on-primary); background: var(--gold-grad); padding: .3em .8em; border-radius: 999px; margin-bottom: 16px; }
.netlab-info h3 { color: #fff; font-size: 1.5rem; margin: 0 0 10px; }
.netlab-info p { color: #d4cbb6; font-size: 1.02rem; margin: 0; }

@media (max-width: 860px) {
  .netlab-wrap { grid-template-columns: 1fr; gap: 24px; }
  .netlab-info { min-height: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .packet { display: none; }
  .net-links line { animation: none; }
}

/* ---------- About ---------- */
.about { background: var(--surface); }
.about-inner { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: center; }
.about-card { background: linear-gradient(165deg, var(--navy), var(--navy-2)); color: #fff; border-radius: var(--radius-lg); padding: 34px; box-shadow: var(--shadow-lg); position: relative; overflow: hidden; }
.about-card::after { content: ""; position: absolute; width: 240px; height: 240px; border-radius: 50%; background: radial-gradient(circle, rgba(212,175,55,.35), transparent 70%); top: -80px; right: -80px; }
.about-avatar { width: 76px; height: 76px; border-radius: 20px; display: grid; place-items: center; font-family: var(--font-head); font-weight: 800; font-size: 1.8rem; color: var(--on-primary); background: var(--gold-grad); margin-bottom: 16px; box-shadow: var(--shadow); }
.about-card h3 { color: #fff; font-size: 1.6rem; margin-bottom: 2px; }
.about-role { color: var(--gold); font-weight: 600; margin-bottom: 16px; }
.about-badge { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-head); font-weight: 600; font-size: .85rem; color: #f3ead2; background: rgba(212,175,55,.12); border: 1px solid rgba(212,175,55,.24); padding: .45em .9em; border-radius: 999px; margin-bottom: 22px; }
.about-badge .ico { width: 16px; height: 16px; color: var(--gold); }
.about-points { display: grid; gap: 12px; position: relative; }
.about-points li { position: relative; padding-left: 28px; color: #ded2b6; font-size: .98rem; }
.about-points li::before { content: ""; position: absolute; left: 0; top: 6px; width: 18px; height: 18px; border-radius: 50%; background: rgba(212,175,55,.14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23D4AF37' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/12px no-repeat; }
.about-copy .kicker { color: var(--primary); }
.about-copy > p { color: var(--muted); font-size: 1.06rem; }
.about-facts { display: grid; gap: 14px; margin: 24px 0 28px; }
.about-facts div { display: flex; align-items: center; gap: 12px; font-weight: 500; }
.about-facts .ico { color: var(--primary); }

/* ---------- Stories / Testimonials ---------- */
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.testimonial { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease; }
.testimonial:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.stars { color: var(--gold); letter-spacing: 2px; margin-bottom: 12px; font-size: 1.05rem; }
.testimonial blockquote { margin: 0 0 20px; font-size: 1.04rem; color: var(--text); }
.testimonial figcaption { display: flex; align-items: center; gap: 12px; }
.t-avatar { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-head); font-weight: 700; color: var(--on-primary); background: var(--gold-grad); }
.testimonial figcaption strong { display: block; font-family: var(--font-head); }
.testimonial figcaption em { font-style: normal; font-size: .88rem; color: var(--muted); }

/* ---------- Interactive network canvas ---------- */
.net-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; }

/* ---------- Rotating headline word ---------- */
.rotator { display: inline-block; transition: opacity .4s ease, transform .4s ease; min-width: 1ch; }
.rotator.swap { opacity: 0; transform: translateY(-10px); }

/* ---------- Hero network motion ---------- */
.net { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .9; }
.net-lines path { stroke-dasharray: 6 8; animation: dash 16s linear infinite; }
.net-flow path { stroke-dasharray: 14 220; stroke-dashoffset: 0; filter: drop-shadow(0 0 6px rgba(240,215,123,.9)); animation: flow 4.5s linear infinite; }
.net-flow path:nth-child(2) { animation-delay: 2.2s; animation-duration: 5.5s; }
.net-nodes circle { filter: drop-shadow(0 0 6px rgba(255,255,255,.8)); animation: nodePulse 3s ease-in-out infinite; }
.net-nodes circle:nth-child(2n) { animation-delay: 1s; }
.net-nodes circle:nth-child(3n) { animation-delay: 1.8s; }
@keyframes dash { to { stroke-dashoffset: -140; } }
@keyframes flow { 0% { stroke-dashoffset: 234; } 100% { stroke-dashoffset: -234; } }
@keyframes nodePulse { 0%,100% { opacity: .5; r: 4; } 50% { opacity: 1; } }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-22px); } }
.blob-1 { animation: float 9s ease-in-out infinite; }
.blob-2 { animation: float 11s ease-in-out infinite reverse; }
.hero-card { animation: float 8s ease-in-out infinite; }

/* ---------- Placements ---------- */
.placements { margin-top: 64px; }
.logo-marquee { position: relative; overflow: hidden; margin: 8px 0 40px; padding: 6px 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.logo-track { display: inline-flex; align-items: center; gap: 52px; white-space: nowrap; animation: marquee 40s linear infinite; will-change: transform; }
.logo-marquee:hover .logo-track { animation-play-state: paused; }
.logo-track img { height: 50px; width: auto; max-width: 180px; object-fit: contain; flex: none; opacity: 1; transition: transform .25s ease; }
.logo-track img:hover { transform: scale(1.1); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.placement-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.placed { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.placed:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--border-strong); }
.placed-top { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.placed-avatar { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; font-family: var(--font-head); font-weight: 700; font-size: .85rem; color: var(--on-primary); background: var(--gold-grad); }
.placed-co { font-family: var(--font-head); font-weight: 700; font-size: .9rem; color: var(--primary-700); }
.placed strong { display: block; font-family: var(--font-head); font-size: 1.02rem; }
.certs { font-size: .8rem; color: var(--muted); font-weight: 600; }
.placement-note { text-align: center; color: var(--muted); margin-top: 24px; font-style: italic; }

/* Full placement directory */
.placement-all { margin-top: 48px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 26px; box-shadow: var(--shadow-sm); }
.pa-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-bottom: 6px; }
.pa-head h3 { margin: 0; font-size: 1.3rem; }
.pa-search { position: relative; flex: 1; min-width: 240px; max-width: 380px; }
.pa-search .ico { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); width: 18px; height: 18px; pointer-events: none; }
.pa-search input { width: 100%; font-family: var(--font-body); font-size: 1rem; padding: .7em 1em .7em 2.6em; border: 1px solid var(--border-strong); border-radius: 999px; background: var(--surface); transition: border-color .15s ease, box-shadow .15s ease, background .15s ease; }
.pa-search input:focus { outline: none; border-color: var(--primary); background: #fff; box-shadow: var(--ring); }
.pa-count { font-size: .9rem; color: var(--muted); margin: 8px 0 14px; font-weight: 600; }

.pa-table { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.pa-row { display: grid; grid-template-columns: 1.6fr 1.2fr 1.6fr 1fr; gap: 12px; align-items: center; padding: 13px 18px; border-bottom: 1px solid var(--border); font-size: .94rem; }
.pa-row:last-child { border-bottom: 0; }
#placeList .pa-row:nth-child(even) { background: var(--surface); }
#placeList .pa-row:hover { background: var(--surface-2); }
.pa-head-row { background: var(--navy); color: var(--gold-light); font-family: var(--font-head); font-weight: 600; font-size: .8rem; letter-spacing: .04em; text-transform: uppercase; }
.pa-name { display: flex; align-items: center; gap: 10px; font-weight: 600; font-family: var(--font-head); color: var(--text); }
.pa-ava { width: 30px; height: 30px; flex: none; border-radius: 8px; display: grid; place-items: center; font-size: .72rem; font-weight: 700; color: var(--on-primary); background: var(--gold-grad); }
.pa-cert { color: var(--primary-700); font-weight: 600; font-size: .85rem; }
.pa-co { color: var(--text); }
.pa-loc { color: var(--muted); }
.pa-actions { text-align: center; margin-top: 20px; }

@media (max-width: 760px) {
  .pa-table { border: 0; }
  .pa-head-row { display: none; }
  .pa-row { grid-template-columns: 1fr; gap: 4px; border: 1px solid var(--border); border-radius: var(--radius-sm); margin-bottom: 10px; padding: 14px 16px; }
  #placeList .pa-row:nth-child(even) { background: var(--card); }
  .pa-cert::before { content: "Certification: "; color: var(--muted); font-weight: 400; }
  .pa-co::before { content: "Company: "; color: var(--muted); }
  .pa-loc::before { content: "Location: "; color: var(--muted); }
}

/* ---------- Certified students ---------- */
.cert-stats { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; margin-bottom: 42px; }
.cert-stat { text-align: center; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px 12px; transition: transform .2s ease, box-shadow .2s ease; }
.cert-stat:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.cert-stat strong { display: block; font-family: var(--font-head); font-size: 2rem; font-weight: 800; line-height: 1; background: linear-gradient(135deg, #A9772B, #6B4E0F); -webkit-background-clip: text; background-clip: text; color: #7E5F10; -webkit-text-fill-color: transparent; }
.cert-stat span { font-size: .82rem; color: var(--muted); margin-top: 4px; display: block; }

.cbadge { display: inline-block; font-family: var(--font-head); font-weight: 700; font-size: .66rem; letter-spacing: .03em; padding: .2em .5em; border-radius: 6px; margin-right: 9px; vertical-align: middle; }
.cbadge-CCNA { color: #7E5F10; background: #F4EAC9; }
.cbadge-CCNP { color: #6B4E0F; background: #ECDDB4; }
.cbadge-CCIE { color: #8E2B20; background: #F6DAD3; }
.cbadge-CCIP, .cbadge-Cisco { color: #5B4636; background: #EBE0CF; }

.cert-row { grid-template-columns: 1.5fr 1.5fr .7fr 1fr; }
.ca-exam { color: var(--text); }
.ca-score { font-weight: 700; color: var(--primary-700); font-variant-numeric: tabular-nums; }
.ca-date { color: var(--muted); font-variant-numeric: tabular-nums; }

@media (max-width: 980px) {
  .cert-stats { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 760px) {
  .cert-stats { grid-template-columns: repeat(2, 1fr); }
  .cert-row { grid-template-columns: 1fr; }
  .ca-exam::before { content: "Exam: "; color: var(--muted); }
  .ca-score::before { content: "Score: "; color: var(--muted); font-weight: 400; }
  .ca-date::before { content: "Date: "; color: var(--muted); }
}

/* ---------- Lab gallery ---------- */
.gallery { background: var(--surface); }
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; gap: 16px; }
.gallery-item { position: relative; margin: 0; overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.gallery-item.gi-tall { grid-row: span 2; }
.gallery-item.gi-wide { grid-column: span 2; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 16px 12px; color: #fff; font-family: var(--font-head); font-weight: 600; font-size: .95rem; background: linear-gradient(180deg, transparent, rgba(7,19,48,.85)); }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(120deg, var(--primary-700), var(--primary)); color: #fff; position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px); background-size: 40px 40px; mask-image: radial-gradient(ellipse at 80% 50%, #000, transparent 70%); pointer-events: none; }
.cta-inner { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: clamp(40px, 6vw, 64px) 22px; flex-wrap: wrap; }

/* Animated motion-graphics background */
.cta-fx { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.fx-aurora { position: absolute; width: 420px; height: 420px; border-radius: 50%; filter: blur(80px); opacity: .5; }
.fx-aurora { background: radial-gradient(circle, #f0d77b, transparent 70%); top: -160px; left: -80px; animation: ctaFloat 12s ease-in-out infinite; }
.fx-aurora-2 { background: radial-gradient(circle, #fff, transparent 70%); opacity: .22; top: auto; bottom: -200px; left: auto; right: -60px; animation: ctaFloat 15s ease-in-out infinite reverse; }
.fx-beam { position: absolute; top: -50%; left: -30%; width: 40%; height: 200%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.25), transparent); transform: skewX(-18deg); animation: ctaBeam 7s ease-in-out infinite; }
@keyframes ctaFloat { 0%,100% { transform: translate(0,0); } 50% { transform: translate(40px,30px); } }
@keyframes ctaBeam { 0% { left: -40%; } 55%,100% { left: 130%; } }
.cta-inner h2 { color: #fff; margin-bottom: 6px; }
.cta-inner p { color: #d9e4ff; margin: 0; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- FAQ ---------- */
.faq { background: var(--surface); }
.faq-inner { max-width: 800px; }
.faq-list { display: grid; gap: 12px; }
.faq-item { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 4px 22px; box-shadow: var(--shadow-sm); transition: border-color .2s ease; }
.faq-item[open] { border-color: var(--gold-grad-b); }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; cursor: pointer; list-style: none; padding: 16px 0; font-family: var(--font-head); font-weight: 600; font-size: 1.05rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-mark { position: relative; flex: none; width: 18px; height: 18px; }
.faq-mark::before, .faq-mark::after { content: ""; position: absolute; background: var(--primary); border-radius: 2px; transition: transform .25s ease, opacity .2s ease; }
.faq-mark::before { top: 8px; left: 0; width: 18px; height: 2px; }
.faq-mark::after { top: 0; left: 8px; width: 2px; height: 18px; }
.faq-item[open] .faq-mark::after { transform: rotate(90deg); opacity: 0; }
.faq-item p { margin: 0 0 18px; color: var(--muted); }
.faq-item a { color: var(--primary); font-weight: 600; }

/* ---------- Contact ---------- */
.contact-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.contact-info .kicker { color: var(--primary); }
.contact-info > p { color: var(--muted); font-size: 1.06rem; }
.contact-list { display: grid; gap: 18px; margin: 26px 0; }
.contact-list li { display: flex; align-items: flex-start; gap: 14px; }
.c-ico { display: grid; place-items: center; width: 46px; height: 46px; flex: none; border-radius: 12px; color: var(--primary); background: linear-gradient(135deg, rgba(212,175,55,.18), rgba(169,119,43,.16)); }
.c-ico svg { width: 22px; height: 22px; }
.contact-list strong { display: block; font-family: var(--font-head); font-size: .9rem; color: var(--muted); font-weight: 600; margin-bottom: 2px; }
.contact-list a { font-weight: 600; }
.contact-list a:hover { color: var(--primary); }

.social { display: flex; gap: 10px; }
.social-link { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--border); color: var(--muted); transition: all .2s ease; }
.social-link svg { width: 20px; height: 20px; }
.social-link:hover { color: var(--on-primary); background: var(--gold-grad); border-color: var(--gold-grad-b); transform: translateY(-2px); }

.contact-form { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 30px; box-shadow: var(--shadow); }
.field { margin-bottom: 16px; }
.field label { display: block; font-family: var(--font-head); font-weight: 600; font-size: .92rem; margin-bottom: 7px; }
.req { color: #dc2626; }
.field input, .field select, .field textarea {
  width: 100%; font-family: var(--font-body); font-size: 1rem; color: var(--text);
  padding: .8em 1em; border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  background: #fff; transition: border-color .15s ease, box-shadow .15s ease; min-height: 48px;
}
.field textarea { min-height: auto; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--primary); box-shadow: var(--ring); }
.field input.invalid, .field select.invalid { border-color: #dc2626; box-shadow: 0 0 0 3px rgba(220,38,38,.18); }
.err { display: block; min-height: 1.1em; color: #dc2626; font-size: .82rem; margin-top: 5px; }
.form-note { font-size: .82rem; color: var(--muted); margin: 12px 0 0; text-align: center; }

/* ---------- Contact map ---------- */
.map-section { margin-top: 60px; }
.map-head { text-align: center; margin-bottom: 24px; }
.map-head h3 { font-size: clamp(1.4rem, 3vw, 2rem); margin: 0; }
.map-frame { position: relative; border-radius: var(--radius-lg); padding: 6px; background: var(--gold-grad); box-shadow: var(--shadow-lg); }
.contact-map { width: 100%; height: 440px; border: 0; border-radius: 18px; display: block; filter: grayscale(.15) contrast(1.04); }
.map-card {
  position: absolute; top: 26px; left: 26px; width: 300px; max-width: calc(100% - 52px);
  background: rgba(255,255,255,.96); backdrop-filter: blur(10px);
  border: 1px solid rgba(212,175,55,.4); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow-lg); animation: float 8s ease-in-out infinite;
}
.map-card-logo { height: 46px; width: auto; margin-bottom: 10px; }
.map-card strong { display: block; font-family: var(--font-head); font-size: 1.15rem; margin-bottom: 12px; }
.map-card p { display: flex; gap: 9px; align-items: flex-start; margin: 0 0 8px; font-size: .92rem; color: var(--muted); }
.map-card p svg { width: 18px; height: 18px; color: var(--primary); flex: none; margin-top: 2px; }
.map-card-btns { display: flex; gap: 8px; margin-top: 14px; }
.map-card-btns .btn { flex: 1; padding: .62em 1em; font-size: .92rem; }
@media (max-width: 760px) {
  .contact-map { height: 300px; }
  .map-card {
    position: static; width: auto; max-width: none; margin-top: 6px;
    animation: none; backdrop-filter: none; border-radius: 14px;
  }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #cdbf9f; padding-top: 56px; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 32px; padding-bottom: 40px; }
.brand-footer { color: #fff; margin-bottom: 16px; }
.footer-brand p { max-width: 32ch; color: #b3a684; font-size: .96rem; }
.footer-col h4 { color: var(--gold-light); font-family: var(--font-head); font-size: .95rem; margin-bottom: 16px; letter-spacing: .02em; }
.footer-col a, .footer-col span { display: block; color: #b3a684; font-size: .94rem; padding: 5px 0; transition: color .15s ease; }
.footer-col a:hover { color: var(--gold); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 22px; border-top: 1px solid rgba(212,175,55,.14); font-size: .85rem; color: #8c7f63; }

/* ---------- Floating WhatsApp ---------- */
.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 90; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: #25D366; box-shadow: 0 10px 26px -8px rgba(37,211,102,.8); transition: transform .2s ease, box-shadow .2s ease; }
.wa-float svg { width: 30px; height: 30px; }
.wa-float:hover { transform: scale(1.07); box-shadow: 0 14px 30px -8px rgba(37,211,102,.9); }

/* ---------- Sticky mobile action bar ---------- */
.mobile-bar { display: none; }
@media (max-width: 760px) {
  .mobile-bar {
    display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 6px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 96;
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
    background: rgba(20,17,10,.97); backdrop-filter: blur(8px);
    border-top: 1px solid rgba(212,175,55,.3);
  }
  .mb-btn {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
    min-height: 50px; border-radius: 12px; color: #ece0c4; font-family: var(--font-head);
    font-weight: 600; font-size: .74rem; background: rgba(212,175,55,.1); border: 1px solid rgba(212,175,55,.18);
  }
  .mb-btn svg { width: 20px; height: 20px; }
  .mb-btn:active { transform: scale(.97); }
  .mb-wa { color: #6ee7a8; background: rgba(37,211,102,.12); border-color: rgba(37,211,102,.25); }
  .mb-primary { color: var(--on-primary); background: var(--gold-grad); border: 0; }
  .wa-float { display: none; }
  /* keep footer + anchors clear of the fixed bar */
  .footer-bottom { padding-bottom: calc(80px + env(safe-area-inset-bottom)); }
  html { scroll-padding-bottom: 84px; }
}

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }

/* ============================================================
   MOTION GRAPHICS
   ============================================================ */

/* Scroll progress bar */
.scroll-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 200; background: linear-gradient(90deg, var(--gold-grad-b), var(--gold-light)); box-shadow: 0 0 12px rgba(212,175,55,.7); }

/* Floating gold particles (hero) */
.particles { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.particle { position: absolute; bottom: -12px; border-radius: 50%; background: radial-gradient(circle, #f4dd8c 0%, rgba(212,175,55,.5) 50%, rgba(212,175,55,0) 70%); opacity: 0; animation: rise linear infinite; }
@keyframes rise {
  0%   { transform: translateY(0) translateX(0) scale(.5); opacity: 0; }
  12%  { opacity: .9; }
  85%  { opacity: .45; }
  100% { transform: translateY(-92vh) translateX(var(--drift, 20px)) scale(1.1); opacity: 0; }
}

/* Logo glow + hover */
.brand-img { animation: logoGlow 4.5s ease-in-out infinite; transition: transform .35s cubic-bezier(.34,1.56,.64,1); }
.brand:hover .brand-img { transform: scale(1.09) rotate(-2deg); }
@keyframes logoGlow {
  0%,100% { filter: drop-shadow(0 2px 4px rgba(20,17,10,.3)); }
  50%     { filter: drop-shadow(0 3px 12px rgba(212,175,55,.7)); }
}

/* Gold shimmer on hero headline + stat numbers */
.grad {
  background: linear-gradient(100deg, var(--gold-light), var(--gold));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* Ken Burns on gallery images */
.gallery-item img { animation: kenburns 20s ease-in-out infinite alternate; }
.gallery-item:nth-child(2) img { animation-delay: -5s; }
.gallery-item:nth-child(3) img { animation-delay: -10s; }
.gallery-item:nth-child(4) img { animation-delay: -15s; }
.gallery-item:hover img { animation-play-state: paused; }
@keyframes kenburns { 0% { transform: scale(1.03) translate(0,0); } 100% { transform: scale(1.15) translate(-2%,-2%); } }

/* Featured course card pulsing glow */
.course-card.featured { animation: featuredGlow 3.6s ease-in-out infinite; }
@keyframes featuredGlow {
  0%,100% { box-shadow: 0 18px 44px -18px rgba(169,119,43,.5); }
  50%     { box-shadow: 0 18px 56px -12px rgba(212,175,55,.85); }
}

/* Primary button sheen sweep */
.btn-primary { position: relative; overflow: hidden; }
.btn-primary::after { content: ""; position: absolute; top: 0; left: -130%; width: 55%; height: 100%; background: linear-gradient(115deg, transparent, rgba(255,255,255,.55), transparent); transform: skewX(-20deg); transition: left .6s ease; pointer-events: none; }
.btn-primary:hover::after { left: 150%; }

/* 3D tilt (JS-driven) */
.feature-grid, .course-grid, .placement-grid, .testimonial-grid { perspective: 1100px; }
[data-tilt] { transition: transform .18s ease; transform-style: preserve-3d; will-change: transform; }

/* CTA crest watermark */
.cta-crest { position: absolute; right: -10px; bottom: -24px; width: 300px; max-width: 42%; opacity: .12; pointer-events: none; animation: breathe 6.5s ease-in-out infinite; }
@keyframes breathe {
  0%,100% { transform: scale(1) rotate(0deg); opacity: .10; }
  50%     { transform: scale(1.06) rotate(2.5deg); opacity: .2; }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; gap: 36px; }
  .hero .lead { max-width: none; }
  .about-inner { grid-template-columns: 1fr; gap: 36px; }
  .course-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-grid, .testimonial-grid { grid-template-columns: 1fr; }
  .placement-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .nav, .btn-call { display: none; }
  .nav-toggle { display: flex; }
  .nav.open {
    display: flex; position: absolute; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: #fff; border-bottom: 1px solid var(--border); box-shadow: var(--shadow);
    padding: 12px 16px 18px;
  }
  .nav.open a { padding: .8em .6em; font-size: 1.05rem; border-radius: 8px; }
  .nav.open a::after { display: none; }
  .nav.open a:hover { background: var(--surface); }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 4px; }
  .contact-inner { grid-template-columns: 1fr; gap: 32px; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 24px; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 480px) {
  .course-grid { grid-template-columns: 1fr; }
  .placement-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; grid-auto-rows: 200px; }
  .gallery-item.gi-wide { grid-column: span 1; }
  .gallery-item.gi-tall { grid-row: span 1; }
  .footer-inner { grid-template-columns: 1fr; }
  .hero-card-body { grid-template-columns: 1fr 1fr; }
}

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