/* ============================================================
   RKBF — RK Bold Finance Ltd
   Premium dark marketing site. Hand-written CSS, no framework.
   Sections:
     1. Design tokens (CSS variables)
     2. Base / reset
     3. Layout helpers
     4. Buttons
     5. Animated background
     6. Nav
     7. Hero
     8. Stats
     9. Sections / shared heading
    10. About
    11. Timeline
    12. Projects
    13. Skills
    14. Highlights
    15. Contact
    16. Footer
    17. Scroll-reveal + counters
    18. Responsive
    19. Reduced motion
============================================================ */

/* ---------- 1. Design tokens ---------- */
:root {
  /* Base surfaces */
  --bg:        #070b14;   /* near-black navy */
  --bg-2:      #0a1020;
  --surface:   rgba(255, 255, 255, 0.04);
  --surface-2: rgba(255, 255, 255, 0.06);
  --border:    rgba(255, 255, 255, 0.10);
  --border-2:  rgba(255, 255, 255, 0.18);

  /* Text */
  --text:      #eaf0ff;
  --muted:     #9aa6bf;
  --muted-2:   #6b7794;

  /* Accents */
  --blue:      #2f6bff;
  --cyan:      #22d3ee;
  --teal:      #06b6d4;
  --amber:     #fbbf24;

  /* Gradients */
  --grad: linear-gradient(120deg, #2f6bff 0%, #22d3ee 60%, #34e0c4 100%);
  --grad-text: linear-gradient(110deg, #5b8cff 0%, #22d3ee 55%, #34e0c4 100%);
  --grad-amber: linear-gradient(120deg, #fbbf24, #fb923c);

  /* Effects */
  --glass-blur: blur(14px);
  --shadow: 0 24px 60px -24px rgba(3, 8, 24, 0.9);
  --glow: 0 0 0 1px rgba(47, 107, 255, 0.4), 0 18px 50px -12px rgba(47, 107, 255, 0.45);

  --radius: 18px;
  --radius-sm: 12px;
  --maxw: 1160px;

  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-display: 'Space Grotesk', var(--font-body);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- 2. Base / reset ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 { font-family: var(--font-display); line-height: 1.1; margin: 0; font-weight: 600; }
p { margin: 0; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }

::selection { background: rgba(47, 107, 255, 0.35); color: #fff; }

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

/* Visible focus for keyboard users */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px;
}

/* ---------- 3. Layout helpers ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.section { padding: clamp(72px, 11vw, 140px) 0; position: relative; }

.kicker {
  text-transform: uppercase; letter-spacing: 0.18em; font-size: 0.78rem; font-weight: 600;
  color: var(--cyan); margin-bottom: 14px;
}

.section__head { max-width: 720px; margin-bottom: clamp(40px, 6vw, 64px); }
.section__title { font-size: clamp(1.8rem, 4vw, 2.75rem); letter-spacing: -0.02em; }

.glass {
  background: var(--surface);
  border: 1px solid var(--border);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-radius: var(--radius);
}

/* ---------- 4. Buttons ---------- */
.btn {
  --pad-y: 12px; --pad-x: 22px;
  display: inline-flex; align-items: center; gap: 10px; justify-content: center;
  padding: var(--pad-y) var(--pad-x);
  border-radius: 999px; font-weight: 600; font-size: 0.95rem;
  border: 1px solid transparent; cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease);
  will-change: transform;
}
.btn--sm { --pad-y: 9px; --pad-x: 18px; font-size: 0.88rem; }
.btn--lg { --pad-y: 15px; --pad-x: 30px; font-size: 1rem; }
.btn--block { width: 100%; }

.btn--primary {
  background: var(--grad); color: #061021;
  box-shadow: var(--glow);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(47,107,255,.6), 0 26px 60px -14px rgba(34,211,238,.55); }

.btn--ghost { background: var(--surface); color: var(--text); border-color: var(--border-2); }
.btn--ghost:hover { transform: translateY(-2px); border-color: var(--cyan); background: var(--surface-2); }

/* ---------- 5. Animated background ---------- */
.bg-fx { position: fixed; inset: 0; z-index: -1; overflow: hidden; background:
    radial-gradient(1200px 600px at 70% -10%, rgba(47,107,255,.12), transparent 60%),
    radial-gradient(900px 500px at 10% 20%, rgba(34,211,238,.08), transparent 55%),
    var(--bg);
}
.grid-overlay {
  position: absolute; inset: -2px;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 80%);
}
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.5; will-change: transform; }
.blob--blue  { width: 520px; height: 520px; background: #1e50d8; top: -120px; left: -80px; animation: float1 18s var(--ease) infinite; }
.blob--cyan  { width: 460px; height: 460px; background: #0e7490; top: 30%; right: -120px; animation: float2 22s var(--ease) infinite; }
.blob--amber { width: 320px; height: 320px; background: #b45309; bottom: -100px; left: 30%; opacity: .35; animation: float3 26s var(--ease) infinite; }

@keyframes float1 { 50% { transform: translate(60px, 80px) scale(1.1); } }
@keyframes float2 { 50% { transform: translate(-70px, 40px) scale(1.05); } }
@keyframes float3 { 50% { transform: translate(40px, -60px) scale(1.12); } }

/* ---------- 6. Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), backdrop-filter 0.3s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(7, 11, 20, 0.72);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--border);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.nav__links { display: flex; align-items: center; gap: 28px; }
.nav__links a:not(.btn) { color: var(--muted); font-size: 0.95rem; font-weight: 500; transition: color .2s; }
.nav__links a:not(.btn):hover { color: var(--text); }

/* Logo wordmark — recreated crisp from the original R|K|B|F mark */
.logo__mark { display: inline-flex; font-family: var(--font-display); font-weight: 700; letter-spacing: 0.02em; font-size: 1.25rem; }
.logo__mark span { padding: 0 9px; border-right: 1px solid var(--border-2); color: var(--text); }
.logo__mark span:first-child { padding-left: 0; }
.logo__mark span:last-child {
  border-right: 0; padding-right: 0;
}

.nav__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav__toggle span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .3s, opacity .3s; }
.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); }

.nav__mobile {
  display: none; flex-direction: column; gap: 6px; padding: 16px 24px 24px;
  background: rgba(7,11,20,.96); border-bottom: 1px solid var(--border);
}
.nav__mobile a:not(.btn) { padding: 12px 8px; color: var(--muted); border-bottom: 1px solid var(--border); }
.nav__mobile.is-open { display: flex; }

/* ---------- 7. Hero ---------- */
.hero { position: relative; padding: clamp(116px, 16vw, 168px) 0 clamp(56px, 8vw, 96px); }
.hero__container { display: flex; flex-direction: column; align-items: center; }

/* Centered headline */
.hero__head { text-align: center; max-width: 880px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.85rem; color: var(--muted); margin-bottom: 22px;
  border: 1px solid var(--border); padding: 7px 14px; border-radius: 999px; background: var(--surface);
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 12px var(--cyan); }

.hero__title { font-size: clamp(2.4rem, 6.5vw, 4.4rem); letter-spacing: -0.03em; }
.hero__title-grad {
  display: block; background: var(--grad-text);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__tagline { margin: 22px auto 0; font-size: clamp(1.05rem, 2vw, 1.3rem); color: var(--muted); max-width: 46ch; }

.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: clamp(28px, 4vw, 44px); justify-content: center; }

.hero__meta { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 26px; color: var(--muted-2); font-size: 0.88rem; justify-content: center; }
.hero__meta li { position: relative; padding-left: 18px; }
.hero__meta li::before { content: ""; position: absolute; left: 0; top: 8px; width: 7px; height: 7px; border-radius: 2px; background: var(--grad); }

/* Constellation layout: cards | figure | cards */
.constellation {
  position: relative;
  width: 100%;
  max-width: 1080px;
  margin-top: clamp(32px, 5vw, 60px);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: clamp(8px, 2.5vw, 36px);
}
.constellation__lines { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.cline { stroke-dasharray: 5 9; animation: dashMove 5s linear infinite; }
.cnode { animation: nodePulse 2.6s ease-in-out infinite; }
@keyframes dashMove { to { stroke-dashoffset: -140; } }
@keyframes nodePulse { 0%, 100% { opacity: .4; } 50% { opacity: 1; } }

.orbit { display: flex; flex-direction: column; gap: clamp(22px, 4vw, 52px); z-index: 2; }

/* Central figure */
.constellation__center { position: relative; justify-self: center; z-index: 1; }
.hero-spot {
  position: absolute; inset: -34%; z-index: -1; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(34,211,238,.34), rgba(47,107,255,.14) 55%, transparent 74%);
  filter: blur(18px);
  animation: spotPulse 6s ease-in-out infinite;
}
@keyframes spotPulse { 0%, 100% { opacity: .8; transform: scale(1); } 50% { opacity: 1; transform: scale(1.06); } }

.portrait-frame {
  position: relative; width: min(310px, 64vw); aspect-ratio: 4 / 5;
  border-radius: 22px; overflow: hidden; border: 1px solid var(--border-2);
  box-shadow: var(--shadow);
  background: linear-gradient(160deg, rgba(47,107,255,.18), rgba(34,211,238,.08));
}
.portrait-frame::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 72%, rgba(7,11,20,.32));
}
.portrait-frame img { width: 100%; height: 100%; object-fit: cover; }

/* Feature cards (the four glassmorphic pills) */
.feature-card {
  position: relative; display: flex; align-items: center; gap: 14px;
  padding: 16px 18px; border-radius: 18px;
  border: 1px solid var(--border-2);
  background: var(--surface-2);
  backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.feature-card:hover { transform: translateY(-4px); }
.feature-card__body { display: flex; flex-direction: column; gap: 2px; }
.feature-card__title { font-family: var(--font-display); font-weight: 600; font-size: 1.02rem; color: var(--text); }
.feature-card__sub { font-size: 0.82rem; color: var(--muted); }
.feature-card__icon {
  flex: 0 0 auto; width: 36px; height: 36px; display: grid; place-items: center;
  border-radius: 50%; font-size: 1rem; border: 1px solid var(--border-2);
  transition: background .3s, color .3s, transform .3s;
}
.feature-card:hover .feature-card__icon { transform: rotate(45deg); }

/* Icons face the central figure: right column icon on the left, left column on the right */
.orbit--left .feature-card { flex-direction: row-reverse; text-align: right; }
.orbit--right .feature-card { text-align: left; }

/* Per-card accent glows */
.feature-card--blue   { border-color: rgba(47,107,255,.45);  background: linear-gradient(135deg, rgba(47,107,255,.20), rgba(47,107,255,.03)); }
.feature-card--blue   .feature-card__icon { color: #6f9bff; border-color: rgba(47,107,255,.6); }
.feature-card--blue:hover { box-shadow: 0 18px 50px -16px rgba(47,107,255,.6); border-color: rgba(47,107,255,.8); }
.feature-card--purple { border-color: rgba(168,85,247,.45); background: linear-gradient(135deg, rgba(168,85,247,.20), rgba(168,85,247,.03)); }
.feature-card--purple .feature-card__icon { color: #c084fc; border-color: rgba(168,85,247,.6); }
.feature-card--purple:hover { box-shadow: 0 18px 50px -16px rgba(168,85,247,.6); border-color: rgba(168,85,247,.8); }
.feature-card--amber  { border-color: rgba(251,146,60,.45);  background: linear-gradient(135deg, rgba(251,146,60,.20), rgba(251,146,60,.03)); }
.feature-card--amber  .feature-card__icon { color: #fbbf24; border-color: rgba(251,146,60,.6); }
.feature-card--amber:hover { box-shadow: 0 18px 50px -16px rgba(251,146,60,.55); border-color: rgba(251,146,60,.8); }
.feature-card--green  { border-color: rgba(52,211,153,.45);  background: linear-gradient(135deg, rgba(52,211,153,.20), rgba(52,211,153,.03)); }
.feature-card--green  .feature-card__icon { color: #34e0c4; border-color: rgba(52,211,153,.6); }
.feature-card--green:hover { box-shadow: 0 18px 50px -16px rgba(52,211,153,.55); border-color: rgba(52,211,153,.8); }

.scroll-hint { position: absolute; left: 50%; bottom: 24px; transform: translateX(-50%); width: 26px; height: 42px; border: 1px solid var(--border-2); border-radius: 14px; display: grid; place-items: start center; padding-top: 8px; }
.scroll-hint span { width: 4px; height: 8px; border-radius: 4px; background: var(--cyan); animation: scrolldot 1.6s infinite; }
@keyframes scrolldot { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- 8. Stats ---------- */
.stats { padding: clamp(20px, 4vw, 40px) 0 clamp(40px, 6vw, 60px); }
.stats__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.stat { padding: 32px 28px; text-align: left; }
.stat__num {
  font-family: var(--font-display); font-weight: 700; font-size: clamp(2.6rem, 5vw, 3.6rem); line-height: 1;
  background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent;
  display: flex; align-items: baseline;
}
.stat__label { color: var(--muted); margin-top: 14px; font-size: 0.98rem; }

/* ---------- 9. About ---------- */
.about__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 5vw, 56px); align-items: start; }
.about__lead p { color: var(--muted); font-size: 1.1rem; margin-bottom: 18px; }
.about__lead strong { color: var(--text); }
.about__creds { font-size: 0.92rem !important; color: var(--muted-2) !important; border-top: 1px solid var(--border); padding-top: 16px; margin-top: 22px; }
.about__points { display: grid; gap: 16px; }
.about__points li { padding: 22px 24px; }
.about__points h3 { font-size: 1.1rem; margin-bottom: 6px; }
.about__points p { color: var(--muted); font-size: 0.95rem; }

/* ---------- 10. Timeline ---------- */
.timeline { position: relative; margin-left: 8px; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--blue), var(--cyan), transparent); }
.timeline__item { position: relative; padding-left: 42px; margin-bottom: 26px; }
.timeline__dot { position: absolute; left: 0; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: var(--bg); border: 2px solid var(--cyan); box-shadow: 0 0 14px rgba(34,211,238,.6); }
.timeline__card { padding: 24px 26px; transition: transform .3s var(--ease), border-color .3s; }
.timeline__card:hover { transform: translateX(6px); border-color: var(--border-2); }
.timeline__date { display: inline-block; font-size: 0.8rem; font-weight: 600; letter-spacing: .04em; color: var(--amber); margin-bottom: 8px; }
.timeline__card h3 { font-size: 1.18rem; margin-bottom: 8px; }
.timeline__org { font-family: var(--font-body); font-weight: 500; font-size: 0.92rem; color: var(--muted); }
.timeline__card p { color: var(--muted); }

/* ---------- 11. Projects ---------- */
.projects__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.project-card { overflow: hidden; display: flex; flex-direction: column; transition: transform .35s var(--ease), border-color .35s, box-shadow .35s; }
.project-card:hover { transform: translateY(-8px); border-color: var(--border-2); box-shadow: var(--shadow); }
.project-card__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.project-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.project-card:hover .project-card__media img { transform: scale(1.06); }
.project-card__tag {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  font-size: 0.74rem; font-weight: 600; letter-spacing: .03em;
  padding: 6px 12px; border-radius: 999px;
  background: rgba(7,11,20,.6); border: 1px solid var(--border-2); backdrop-filter: blur(6px);
}
.project-card__body { padding: 22px 24px 26px; }
.project-card__body h3 { font-size: 1.25rem; margin-bottom: 6px; }
.project-card__role { color: var(--cyan); font-size: 0.85rem; font-weight: 600; margin-bottom: 12px; }
.project-card__body p:last-child { color: var(--muted); font-size: 0.95rem; }

/* ---------- 12. Skills ---------- */
.skills__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.skill-card { padding: 28px 26px; transition: transform .3s var(--ease), border-color .3s, background .3s; }
.skill-card:hover { transform: translateY(-6px); border-color: var(--border-2); background: var(--surface-2); }
.skill-card--wide { grid-column: span 1; }
.skill-card__icon {
  width: 48px; height: 48px; display: grid; place-items: center; border-radius: 12px;
  font-size: 1.4rem; margin-bottom: 18px;
  background: linear-gradient(135deg, rgba(47,107,255,.25), rgba(34,211,238,.15));
  border: 1px solid var(--border-2); color: var(--cyan);
}
.skill-card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.skill-card p { color: var(--muted); font-size: 0.95rem; }

/* ---------- 13. Highlights ---------- */
.highlights__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.highlight-card { padding: 28px 26px; position: relative; overflow: hidden; transition: transform .3s var(--ease), border-color .3s; }
.highlight-card:hover { transform: translateY(-6px); border-color: var(--border-2); }
.highlight-card::before { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 3px; background: var(--grad); opacity: .8; }
.highlight-card__label { display: inline-block; font-size: 0.72rem; text-transform: uppercase; letter-spacing: .14em; font-weight: 600; color: var(--amber); margin-bottom: 14px; }
.highlight-card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.highlight-card p { color: var(--muted); font-size: 0.95rem; }

/* ---------- 14. Contact ---------- */
.contact__inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.contact__lead { color: var(--muted); margin-top: 18px; font-size: 1.08rem; max-width: 40ch; }
.contact__channels { margin-top: 30px; display: grid; gap: 14px; }
.contact__channels li { display: flex; gap: 16px; align-items: baseline; }
.contact__channels span:first-child { width: 80px; color: var(--muted-2); font-size: 0.85rem; text-transform: uppercase; letter-spacing: .08em; }
.contact__channels a { color: var(--cyan); }

.contact__form { padding: 32px 30px; display: grid; gap: 18px; }
.field { display: grid; gap: 8px; }
.field label { font-size: 0.9rem; font-weight: 500; color: var(--muted); }
.field input, .field textarea {
  width: 100%; padding: 13px 15px; border-radius: var(--radius-sm);
  background: rgba(7,11,20,.5); border: 1px solid var(--border); color: var(--text);
  font-family: inherit; font-size: 0.98rem; transition: border-color .2s, background .2s;
}
.field input::placeholder, .field textarea::placeholder { color: var(--muted-2); }
.field input:focus, .field textarea:focus { border-color: var(--cyan); background: rgba(7,11,20,.7); outline: none; }
.field textarea { resize: vertical; min-height: 120px; }
.field.is-invalid input, .field.is-invalid textarea { border-color: #f87171; }
.field__error { color: #f87171; font-size: 0.82rem; min-height: 1em; }
.form-status { font-size: 0.92rem; margin-top: 4px; min-height: 1.2em; }
.form-status.is-success { color: #34e0c4; }
.form-status.is-error { color: #f87171; }

/* Honeypot (anti-spam) — hidden from humans and assistive tech */
.hp-field { position: absolute !important; left: -9999px !important; top: auto; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

/* "I'm not a robot" checkbox */
.field--check { gap: 6px; }
.checkbox { display: inline-flex; align-items: center; gap: 11px; cursor: pointer; font-size: 0.95rem; color: var(--muted); user-select: none; }
.checkbox input { position: absolute; opacity: 0; width: 0; height: 0; }
.checkbox__box {
  width: 22px; height: 22px; flex: 0 0 auto; border-radius: 6px;
  border: 1px solid var(--border-2); background: rgba(7,11,20,.5);
  display: grid; place-items: center; transition: background .2s, border-color .2s;
}
.checkbox__box::after {
  content: ""; width: 6px; height: 11px; margin-top: -2px;
  border: solid #061021; border-width: 0 2px 2px 0;
  transform: rotate(45deg) scale(0); transition: transform .2s var(--ease);
}
.checkbox input:checked + .checkbox__box { background: var(--grad); border-color: transparent; }
.checkbox input:checked + .checkbox__box::after { transform: rotate(45deg) scale(1); }
.checkbox input:focus-visible + .checkbox__box { outline: 2px solid var(--cyan); outline-offset: 2px; }
.field--check.is-invalid .checkbox__box { border-color: #f87171; }

/* ---------- 15. Footer ---------- */
.footer { border-top: 1px solid var(--border); padding: 56px 0 32px; background: rgba(7,11,20,.5); }
.footer__inner { display: flex; flex-wrap: wrap; gap: 32px; justify-content: space-between; align-items: start; }
.footer__brand { max-width: 420px; }
.footer__brand p { color: var(--muted); margin-top: 16px; font-size: 0.95rem; }
.footer__links { display: flex; flex-wrap: wrap; gap: 20px; }
.footer__links a { color: var(--muted); font-size: 0.95rem; transition: color .2s; }
.footer__links a:hover { color: var(--text); }

/* Subsidiary companies */
.footer__subs { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 26px; margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--border); }
.footer__subs-label { text-transform: uppercase; letter-spacing: .14em; font-size: 0.72rem; font-weight: 600; color: var(--muted-2); }
.footer__subs ul { display: flex; flex-wrap: wrap; gap: 12px 26px; }
.footer__subs li { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 0.92rem; }
.footer__subs .flag { width: 22px; height: 16px; border-radius: 3px; overflow: hidden; flex: 0 0 auto; box-shadow: 0 0 0 1px var(--border-2); line-height: 0; }
.footer__subs .flag svg { width: 100%; height: 100%; display: block; }
.footer__subs .cc { font-size: 0.68rem; font-weight: 600; letter-spacing: .06em; color: var(--muted-2); border: 1px solid var(--border-2); border-radius: 5px; padding: 1px 5px; }

.footer__bottom { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--border); color: var(--muted-2); font-size: 0.85rem; }

/* ---------- 17. Scroll-reveal ---------- */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
[data-reveal].in-view { opacity: 1; transform: none; }
/* Stagger items within a grid */
[data-reveal]:nth-child(2) { transition-delay: .08s; }
[data-reveal]:nth-child(3) { transition-delay: .16s; }
[data-reveal]:nth-child(4) { transition-delay: .24s; }

/* ---------- 18. Responsive ---------- */
@media (max-width: 900px) {
  /* Stack the constellation: figure first, then cards full-width */
  .constellation { grid-template-columns: 1fr; max-width: 460px; gap: 18px; }
  .constellation__lines { display: none; }
  .constellation__center { order: -1; margin-bottom: 6px; }
  .orbit { gap: 14px; }
  .orbit--left .feature-card { flex-direction: row; text-align: left; }
  .about__grid, .contact__inner { grid-template-columns: 1fr; }
  .stats__grid, .projects__grid, .skills__grid, .highlights__grid { grid-template-columns: repeat(2, 1fr); }
  .nav__links { display: none; }
  .nav__toggle { display: flex; }
}
@media (max-width: 560px) {
  .stats__grid, .projects__grid, .skills__grid, .highlights__grid { grid-template-columns: 1fr; }
  .container { padding: 0 18px; }
  .hero__meta { gap: 8px 16px; }
}

/* ---------- 19. 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; }
  [data-reveal] { opacity: 1; transform: none; }
  .blob { animation: none; }
}
