/* =====================================================================
   Titan Cloud Education — site styles
   Dark navy + electric blue, gold logo. Built to the approved template.
   ===================================================================== */

:root {
  --bg:        #04070d;
  --bg-2:      #070c15;
  --panel:     #0b1320;
  --panel-2:   #0f1a2b;
  --line:      rgba(125, 165, 225, .14);
  --line-2:    rgba(125, 165, 225, .26);
  --text:      #eaf0f8;
  --muted:     #9aa9bd;
  --dim:       #6b7a90;
  --blue:      #2f8dff;
  --blue-2:    #62adff;
  --blue-glow: rgba(47, 141, 255, .45);
  --gold:      #d9a93b;

  --radius:    14px;
  --radius-lg: 20px;
  --max:       1180px;
  --font:      "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }

.wrap { width: min(100% - 40px, var(--max)); margin-inline: auto; }
.section { padding: 96px 0; position: relative; }
.section--tight { padding: 64px 0; }
.section--line { border-top: 1px solid var(--line); }

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

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

/* ---------- type ---------- */
.eyebrow {
  display: inline-block;
  font-size: 12px; font-weight: 700; letter-spacing: .26em; text-transform: uppercase;
  color: var(--blue-2); margin: 0 0 14px;
}
h1, h2, h3 { margin: 0; line-height: 1.12; letter-spacing: -.02em; }
h1 { font-size: clamp(40px, 5.6vw, 66px); font-weight: 800; }
h2 { font-size: clamp(30px, 3.6vw, 44px); font-weight: 800; }
h3 { font-size: 19px; font-weight: 700; }
.accent { color: var(--blue); }
.lead { font-size: 18px; color: #c8d3e2; max-width: 560px; }
.muted { color: var(--muted); }
.center { text-align: center; }
.section-head { max-width: 780px; margin: 0 auto 52px; text-align: center; }
.section-head p { color: var(--muted); margin: 14px auto 0; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 15px;
  padding: 13px 22px; border-radius: 10px;
  border: 1px solid transparent;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
  cursor: pointer; white-space: nowrap;
}
.btn svg { width: 17px; height: 17px; }
.btn--primary {
  background: linear-gradient(180deg, #3b95ff, #1f7ff5);
  color: #fff; box-shadow: 0 10px 28px -10px var(--blue-glow);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 34px -10px var(--blue-glow); }
.btn--ghost { border-color: var(--line-2); color: var(--text); background: rgba(255,255,255,.02); }
.btn--ghost:hover { border-color: var(--blue); background: rgba(47,141,255,.08); }
.btn--pill { border-radius: 999px; }
.btn--sm { padding: 9px 16px; font-size: 14px; }
.btn.is-pending { opacity: .55; cursor: not-allowed; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(4, 7, 13, .72);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 48px; width: auto; }
/* icon-only logo, so the name is set in type beside it */
.brand-name { display: flex; flex-direction: column; font-size: 19px; font-weight: 800;
  letter-spacing: -.01em; line-height: 1; color: #fff; white-space: nowrap; }
.brand-name small { font-size: 10px; font-weight: 700; letter-spacing: .34em; text-transform: uppercase;
  color: var(--blue-2); margin-top: 5px; }
.site-nav { display: flex; align-items: center; gap: 34px; }
.site-nav ul { display: flex; gap: 30px; list-style: none; margin: 0; padding: 0; }
.site-nav a { font-size: 15px; font-weight: 600; color: #c2cddc; position: relative; padding: 6px 0; }
.site-nav ul a:hover, .site-nav ul a[aria-current="page"] { color: #fff; }
.site-nav ul a[aria-current="page"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px;
  background: var(--blue); border-radius: 2px;
}
.nav-toggle {
  display: none; background: none; border: 1px solid var(--line-2); color: var(--text);
  width: 44px; height: 44px; border-radius: 10px; cursor: pointer;
}
.nav-toggle svg { width: 22px; height: 22px; }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: 72px 0 0;
  background:
    radial-gradient(900px 520px at 78% 38%, rgba(47,141,255,.20), transparent 62%),
    radial-gradient(600px 400px at 10% 90%, rgba(47,141,255,.07), transparent 70%),
    var(--bg);
}
.hero::before {                           /* faint server-room grid */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(98,173,255,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(98,173,255,.06) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 70% at 70% 40%, #000 20%, transparent 75%);
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: 24px; align-items: end; }
.hero-copy { padding-bottom: 72px; }
.hero-copy h1 { margin-bottom: 22px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 30px 0 40px; }
.hero-perks { display: flex; flex-wrap: wrap; gap: 28px; list-style: none; padding: 0; margin: 0; }
.hero-perks li { display: flex; align-items: center; gap: 12px; font-size: 14px; color: #c2cddc; line-height: 1.3; }
.hero-perks svg { width: 26px; height: 26px; color: var(--blue-2); flex: none; }

.hero-visual { position: relative; align-self: stretch; min-height: 600px; }
/* the cutout is landscape (raised hand), so it owns the bottom of the column
   and the cloud + tracks live in the open space above it */
.hero-visual .cutout {
  position: absolute; bottom: 0; right: -3%;
  width: min(650px, 114%); max-width: none;
  filter: drop-shadow(-14px -8px 38px rgba(47,141,255,.34));
  -webkit-mask-image: linear-gradient(to bottom, #000 78%, transparent 100%);
          mask-image: linear-gradient(to bottom, #000 78%, transparent 100%);
}
.neon-cloud {
  position: absolute; top: 34px; left: 6%;
  width: 210px; color: var(--blue-2);
  filter: drop-shadow(0 0 10px rgba(98,173,255,.9)) drop-shadow(0 0 28px rgba(47,141,255,.6));
  opacity: .95;
}
.hero-tracks {
  position: absolute; right: 0; top: 30px;
  list-style: none; margin: 0; padding: 0 0 0 16px;
  border-left: 1px solid var(--line-2);
  font-size: 12px; font-weight: 700; letter-spacing: .2em; color: #c7d3e3;
}
.hero-tracks li { padding: 5px 0; }
.hero-tracks li:last-child { color: var(--blue-2); }

/* ---------- pillars (Learn / Build / Grow / Join) ---------- */
.pillars { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-2); }
.pillar-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.pillar { text-align: center; padding: 46px 26px; }
.pillar + .pillar { border-left: 1px solid var(--line); }
.pillar svg { width: 46px; height: 46px; color: var(--blue-2); margin: 0 auto 16px; }
.pillar p { margin: 8px auto 0; color: var(--muted); font-size: 14.5px; max-width: 220px; line-height: 1.5; }

/* ---------- story ---------- */
.story-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.video-card {
  position: relative; display: block; border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--line-2);
  box-shadow: 0 30px 60px -30px rgba(0,0,0,.8), 0 0 0 1px rgba(47,141,255,.05);
  transition: transform .25s ease, border-color .25s ease;
}
.video-card:hover { transform: translateY(-4px); border-color: var(--blue); }
.video-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.play { position: absolute; top: 16px; right: 16px; }       /* corner: the thumbnail carries its own title */
.play span {
  width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(47,141,255,.95); box-shadow: 0 0 0 8px rgba(47,141,255,.2), 0 10px 24px rgba(0,0,0,.55);
  transition: transform .2s ease;
}
.video-card:hover .play span { transform: scale(1.08); }
.play svg { width: 24px; height: 24px; color: #fff; margin-left: 3px; }
.story-copy p { color: #c3cedd; }
.story-copy h2 { margin-bottom: 22px; }
.story-copy .btn { margin-top: 12px; }

/* ---------- stats ---------- */
.stats { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-2); }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { display: flex; gap: 16px; align-items: flex-start; padding: 36px 24px; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat svg { width: 34px; height: 34px; color: var(--blue-2); flex: none; margin-top: 2px; }
.stat strong { display: block; font-size: 21px; font-weight: 800; line-height: 1.15; }
.stat span { color: var(--muted); font-size: 14px; line-height: 1.45; display: block; margin-top: 4px; }

/* ---------- credentials ---------- */
.cred-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.cred {
  position: relative; background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 26px 24px 24px; overflow: hidden;
  transition: border-color .2s ease, transform .2s ease;
}
.cred:hover { border-color: var(--line-2); transform: translateY(-3px); }
.cred::after {
  content: ""; position: absolute; right: -40px; top: -40px; width: 140px; height: 140px;
  background: radial-gradient(circle, rgba(47,141,255,.16), transparent 70%);
}
.cred-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.badge {
  width: 58px; height: 64px; display: grid; place-items: center; flex: none;
  clip-path: polygon(50% 0, 100% 18%, 100% 72%, 50% 100%, 0 72%, 0 18%);
  background: linear-gradient(160deg, #3d9bff, #1459c7);
}
.badge svg { width: 26px; height: 26px; color: #fff; }
.cred--sec .badge { background: linear-gradient(160deg, #ff6b61, #b3261e); }
.cred--fund .badge { background: linear-gradient(160deg, #6fa5d8, #2d5d8f); }
.level {
  font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase;
  padding: 6px 10px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--blue-2);
}
.cred--expert .level { color: var(--gold); border-color: rgba(217,169,59,.45); background: rgba(217,169,59,.07); }
.cred .code { font-size: 30px; font-weight: 800; letter-spacing: -.01em; line-height: 1; }
.cred h3 { font-size: 16px; margin-top: 8px; color: #d8e1ee; }
.cred p { color: var(--muted); font-size: 14px; margin: 10px 0 0; line-height: 1.55; }
.cred-foot { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px 22px; margin-top: 40px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 600; color: #cbd6e4;
  padding: 9px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel);
}
.chip svg { width: 16px; height: 16px; color: var(--blue-2); }

/* ---------- socials ---------- */
.social-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; grid-auto-rows: 1fr; gap: 18px; }
.social-card {
  position: relative; display: flex; flex-direction: column; gap: 14px;
  padding: 26px; border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line); overflow: hidden;
  transition: transform .2s ease, border-color .2s ease;
}
.social-card:hover { transform: translateY(-4px); border-color: var(--brand, var(--blue)); }
.social-card::before {
  content: ""; position: absolute; inset: auto -30% -60% auto; width: 240px; height: 240px;
  background: radial-gradient(circle, color-mix(in srgb, var(--brand, var(--blue)) 26%, transparent), transparent 70%);
  pointer-events: none;
}
.social-card .icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: var(--brand, var(--blue)); color: #fff;
}
.social-card .icon svg { width: 26px; height: 26px; }
.social-card h3 { font-size: 21px; }
.social-card p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.55; }
.social-card .go { margin-top: auto; font-weight: 700; font-size: 14px; color: var(--text); display: inline-flex; gap: 8px; align-items: center; }
.social-card .go svg { width: 15px; height: 15px; transition: transform .2s ease; }
.social-card:hover .go svg { transform: translateX(4px); }
.social-card--feature { grid-row: span 2; }
.social-card--feature .icon { width: 64px; height: 64px; }
.social-card--feature h3 { font-size: 28px; }
.yt-latest { font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--blue-2); margin-top: 6px; }
.yt-preview { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 12px; border: 1px solid var(--line-2); }
.social-card.is-pending { cursor: default; }
.social-card.is-pending .go { color: var(--dim); }
.yt  { --brand: #ff2b2b; }
.tt  { --brand: #1f1f28; }
.tt .icon { box-shadow: -3px -3px 0 #25f4ee inset, 3px 3px 0 #fe2c55 inset; }
.ig  { --brand: #d6297a; }
.ig .icon { background: radial-gradient(circle at 30% 110%, #fdd66b 0%, #f4743b 30%, #d6297a 60%, #8a3ab9 100%); }
.li  { --brand: #0a66c2; }
.xx  { --brand: #2a2f38; }

/* ---------- join / email ---------- */
.join {
  border-radius: 24px; overflow: hidden; position: relative;
  background:
    radial-gradient(600px 300px at 90% 0%, rgba(47,141,255,.22), transparent 70%),
    linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line-2);
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; padding: 52px;
}
.join ul { padding: 0; margin: 18px 0 0; list-style: none; }
.join li { display: flex; gap: 12px; align-items: flex-start; padding: 7px 0; color: #c9d4e2; }
.join li svg { width: 20px; height: 20px; color: var(--blue-2); flex: none; margin-top: 3px; }
.signup { align-self: center; }
.signup label { display: block; font-weight: 700; margin-bottom: 10px; }
.field { display: flex; gap: 10px; }
.field input {
  flex: 1; min-width: 0; font: inherit; color: var(--text);
  background: #060b14; border: 1px solid var(--line-2); border-radius: 10px; padding: 13px 16px;
}
.field input::placeholder { color: var(--dim); }
.field input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(47,141,255,.2); }
.form-note { font-size: 13px; color: var(--muted); margin: 12px 0 0; min-height: 1.2em; }
.fine { font-size: 13px; color: var(--dim); margin-top: 14px; }

/* ---------- CTA band (mountains) ---------- */
.cta-band {
  position: relative; overflow: hidden; text-align: center;
  padding: 120px 0 130px;
  background:
    radial-gradient(700px 260px at 50% 30%, rgba(47,141,255,.18), transparent 70%),
    linear-gradient(180deg, #060b14 0%, #0a1422 55%, #0c1826 100%);
  border-top: 1px solid var(--line);
}
.cta-band .mountains { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 62%; }
.cta-band .wrap { position: relative; }
.cta-band h2 { margin-bottom: 12px; }
.cta-band p { color: #c3cedd; margin: 0 0 30px; }

/* ---------- page hero (inner pages) ---------- */
.page-hero {
  padding: 84px 0 64px; position: relative; overflow: hidden;
  background: radial-gradient(800px 380px at 80% 0%, rgba(47,141,255,.18), transparent 65%), var(--bg);
  border-bottom: 1px solid var(--line);
}
.page-hero h1 { font-size: clamp(38px, 5vw, 58px); max-width: 820px; }
.page-hero .lead { margin-top: 18px; max-width: 680px; }

/* ---------- timeline ---------- */
.timeline { position: relative; list-style: none; margin: 0; padding: 0; }
.timeline::before {
  content: ""; position: absolute; left: 27px; top: 10px; bottom: 60px; width: 2px;
  background: linear-gradient(180deg, var(--blue), rgba(47,141,255,.15));
}
.tl-item { position: relative; display: grid; grid-template-columns: 56px 1fr; gap: 26px; padding-bottom: 38px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-dot {
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; z-index: 1;
  background: var(--panel-2); border: 2px solid var(--blue); color: var(--blue-2);
}
.tl-dot svg { width: 24px; height: 24px; }
.tl-item--now .tl-dot { background: var(--blue); color: #fff; box-shadow: 0 0 0 8px rgba(47,141,255,.16); }
.tl-body { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px 26px; }
.tl-body .eyebrow { margin-bottom: 6px; }
.tl-body p { color: #c3cedd; margin: 10px 0 0; }
.tl-body .chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.tl-body .chip { font-size: 13px; padding: 6px 11px; }

/* ---------- generic cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px;
}
.card svg.ico { display: block; width: 34px; height: 34px; color: var(--blue-2); margin-bottom: 16px; }
.card p { color: var(--muted); margin: 10px 0 0; font-size: 15px; }
.card .btn { margin-top: 20px; }
.card-num { display: block; font-size: 12px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; color: var(--blue-2); }
.card--quote { text-align: center; padding: 48px; }
.card--quote blockquote { margin: 0; font-size: clamp(22px, 2.6vw, 30px); font-weight: 700; line-height: 1.35; }
.card--quote cite { display: block; margin-top: 16px; font-style: normal; color: var(--muted); font-size: 15px; }

.video-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.video-grid h3 { margin-top: 16px; }
.video-grid p { color: var(--muted); margin: 6px 0 0; font-size: 15px; }

.upnext { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.upnext li {
  display: flex; align-items: center; gap: 16px; padding: 16px 20px;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
}
.upnext .tag {
  font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--blue-2);
  border: 1px solid var(--line-2); border-radius: 999px; padding: 5px 10px; white-space: nowrap;
}

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--bg); padding: 36px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-inner .brand img { height: 52px; }
.footer-nav { display: flex; gap: 24px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.footer-nav a { font-size: 14px; color: #b8c4d4; }
.footer-nav a:hover { color: #fff; }
.social-row { display: flex; gap: 10px; }
.social-row a {
  width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center;
  border: 1px solid var(--line-2); color: #d5deea; transition: all .18s ease;
}
.social-row a:hover { border-color: var(--blue); color: #fff; background: rgba(47,141,255,.1); }
.social-row a.is-pending { opacity: .45; }
.social-row svg { width: 18px; height: 18px; }
.copyright { width: 100%; text-align: right; color: var(--dim); font-size: 13px; margin: 18px 0 0; }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { padding-bottom: 20px; }
  .hero-visual { min-height: 0; height: clamp(300px, 72vw, 520px); }
  .hero-visual .cutout { left: 50%; right: auto; transform: translateX(-50%); width: min(560px, 100%); }
  .neon-cloud { left: auto; right: 4%; top: 0; width: 170px; }
  .hero-tracks { display: none; }
  .story-grid, .join, .contact-grid { grid-template-columns: 1fr; }
  .cred-grid, .card-grid { grid-template-columns: repeat(2, 1fr); }
  .social-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: auto; }
  .social-card--feature { grid-row: auto; grid-column: span 2; }
  .pillar-grid, .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .pillar:nth-child(3), .stat:nth-child(3) { border-left: 0; }
  .pillar:nth-child(n+3), .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 760px) {
  .section { padding: 72px 0; }
  .site-nav {
    position: absolute; top: 76px; left: 0; right: 0; flex-direction: column; align-items: stretch;
    gap: 0; padding: 12px 20px 22px; background: rgba(4,7,13,.97); border-bottom: 1px solid var(--line);
    display: none;
  }
  .site-nav.is-open { display: flex; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav ul a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .site-nav ul a[aria-current="page"]::after { display: none; }
  .site-nav .btn { margin-top: 16px; justify-content: center; }
  .nav-toggle { display: grid; place-items: center; }
  .cred-grid, .card-grid, .video-grid, .social-grid, .pillar-grid, .stat-grid { grid-template-columns: 1fr; }
  .social-card--feature { grid-column: auto; }
  .pillar + .pillar, .stat + .stat { border-left: 0; border-top: 1px solid var(--line); }
  .join { padding: 32px 24px; }
  .field { flex-direction: column; }
  .hero-perks { gap: 18px; }
  .copyright { text-align: left; }
  .neon-cloud { width: 118px; }
}

/* ---------- home hero: big logo ---------- */
.hero-visual .hero-logo {
  position: absolute; left: 40%; top: 50%; transform: translate(-50%, -46%);   /* left of centre: clears the CLOUD / DEVOPS list */
  width: min(520px, 90%);
  filter: drop-shadow(0 0 36px rgba(47,141,255,.38)) drop-shadow(0 18px 40px rgba(0,0,0,.5));
}

/* ---------- about hero: photo beside the heading ---------- */
.page-hero--split { padding-bottom: 0; }
.page-hero--split .page-hero-grid { align-items: center; }
.page-hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 32px; align-items: end; }
.page-hero-copy { padding-bottom: 64px; }
/* ---------- about hero portrait ---------- */
.page-hero-portrait { position: relative; width: 100%; max-width: 440px; justify-self: end; margin: 40px 70px 40px 0; }
.portrait-frame { position: relative; }

/* framed panel the full size of the photo, sitting just outside its edges */
.portrait-panel {
  position: absolute; inset: -14px; z-index: 0;
  border-radius: 30px; border: 1px solid rgba(98,173,255,.36);
  background:
    radial-gradient(120% 60% at 50% 0%, rgba(47,141,255,.26), transparent 65%),
    linear-gradient(rgba(98,173,255,.07) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(90deg, rgba(98,173,255,.07) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(180deg, #0d1a2e, #080f1b);
  box-shadow: 0 0 0 6px rgba(47,141,255,.05), 0 40px 80px -30px rgba(0,0,0,.9), 0 0 70px -24px rgba(47,141,255,.5);
}
.portrait-panel::before,
.portrait-panel::after {                              /* glowing accents on the top and bottom edges */
  content: ""; position: absolute; left: 18%; right: 18%; height: 2px;
  background: linear-gradient(90deg, transparent, var(--blue-2), transparent);
  box-shadow: 0 0 14px 2px rgba(98,173,255,.6);
}
.portrait-panel::before { top: -1px; }
.portrait-panel::after  { bottom: -1px; }
.portrait-panel i {                                   /* corner brackets */
  position: absolute; width: 26px; height: 26px; border: 3px solid var(--blue-2); opacity: .85;
}
.portrait-panel i:nth-child(1) { left: 14px;  top: 14px;    border-right: 0; border-bottom: 0; border-radius: 10px 0 0 0; }
.portrait-panel i:nth-child(2) { right: 14px; top: 14px;    border-left: 0;  border-bottom: 0; border-radius: 0 10px 0 0; }
.portrait-panel i:nth-child(3) { left: 14px;  bottom: 14px; border-right: 0; border-top: 0;    border-radius: 0 0 0 10px; }
.portrait-panel i:nth-child(4) { right: 14px; bottom: 14px; border-left: 0;  border-top: 0;    border-radius: 0 0 10px 0; }

.page-hero-photo {
  position: relative; z-index: 1; width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: 18px;
  /* soft fade only near the edges, so the whole photo shows */
  -webkit-mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent),
                      linear-gradient(to bottom, transparent, #000 10%, #000 84%, transparent);
  -webkit-mask-composite: source-in;
          mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent),
                      linear-gradient(to bottom, transparent, #000 10%, #000 84%, transparent);
          mask-composite: intersect;
}

/* floating info cards */
.portrait-chip {
  position: absolute; z-index: 2; display: flex; align-items: center; gap: 10px;
  padding: 10px 14px 10px 10px; border-radius: 14px;
  background: rgba(8,15,27,.84); border: 1px solid var(--line-2);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 14px 30px -12px rgba(0,0,0,.8);
  font-size: 12px; line-height: 1.3; color: var(--muted); white-space: nowrap;
}
.portrait-chip b { display: block; color: var(--text); font-size: 13.5px; }
.portrait-chip svg {
  width: 34px; height: 34px; padding: 7px; border-radius: 10px; flex: none;
  color: #fff; background: linear-gradient(160deg, #3d9bff, #1459c7);
}
.portrait-chip--gold svg { background: linear-gradient(160deg, #f0c25a, #b07f16); }
/* kept inside the page-hero margins: left cards stay clear of the intro text, right cards clear of the edge */
.portrait-chip--a { left: -14%; top: 7%; }     /* top left     */
.portrait-chip--b { right: -13%; top: 32%; }   /* upper right  */
.portrait-chip--c { left: -15%; top: 76%; }    /* lower left   */
.portrait-chip--d { right: -12%; bottom: 3%; } /* bottom right */

@media (max-width: 1020px) {
  .hero-visual .hero-logo { left: 50%; width: min(420px, 80%); }
}
/* the portrait plus its floating cards needs ~560px, so stack earlier than the rest of the site */
@media (max-width: 1180px) {
  .page-hero-grid { grid-template-columns: 1fr; }
  .page-hero-copy { padding-bottom: 8px; }
  /* single column: cards would cover the face, so they sit in a grid under the photo */
  .page-hero-portrait { justify-self: center; max-width: 560px; margin: 24px 0 40px; }
  .portrait-frame { max-width: min(340px, calc(100% - 32px)); margin: 14px auto 0; }   /* room for the frame's 14px overhang */
  .portrait-chips { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 32px; }
  .portrait-chip { position: static; white-space: normal; }
}
@media (max-width: 420px) {
  .portrait-chips { grid-template-columns: 1fr; }
}
