/* Landing access buttons v6 — oval pills, SL badge only, SpaceX trails.
   Glass stays intact; bits are an overlay. */

/* Let the row grow wider than the 1200px well on large screens (left-aligned with the title). */
.hero .w.hc{overflow:visible}
.pillars.p3{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:22px;
  width:min(1496px, calc(100vw - 56px));
  max-width:none;
  margin:8px 0 18px;
  padding:20px 0 28px 0;
  position:relative;
  z-index:6;
  align-items:stretch;
}
/* Full-hero overlay so bits can fly freely (not clipped to a button or the 1200px well). */
header.hero{overflow:visible}
.hero .w.hc,.pillars.p3{overflow:visible}
canvas#access-bits{
  position:absolute;inset:0;width:100%;height:100%;
  pointer-events:none;z-index:8;display:block;
}

/* v6 glass pills — fully rounded ends, shorter; frost / hairline / gloss always visible */
.pillars.p3 .pb{
  --g:0;
  --accent:#67e8f9;
  --glow:rgba(34,211,238,.75);
  position:relative;
  display:flex;
  align-items:center;
  gap:16px;
  height:116px;
  min-height:116px;
  min-width:0;
  padding:0 28px 0 18px;
  border-radius:58px; /* height/2 — fully rounded pill caps */
  color:#fff;
  text-decoration:none;
  isolation:isolate;
  background:
    linear-gradient(160deg,rgba(255,255,255,.32) 0%,rgba(255,255,255,.11) 34%,rgba(255,255,255,.05) 62%,rgba(255,255,255,.16) 100%),
    rgba(10,14,36,.24);
  -webkit-backdrop-filter:blur(20px) saturate(175%) brightness(1.08);
  backdrop-filter:blur(20px) saturate(175%) brightness(1.08);
  box-shadow:
    inset 0 1.5px 0 rgba(255,255,255,.78),
    inset 0 14px 18px -14px rgba(255,255,255,.5),
    inset 0 -12px 20px -12px color-mix(in srgb, var(--accent) 40%, transparent),
    inset -1px -1px 0 rgba(4,8,24,.3),
    0 26px 34px -22px rgba(0,0,0,.7),
    0 18px 40px -24px color-mix(in srgb, var(--accent) 70%, transparent),
    0 12px 30px -22px rgba(34,211,238,.55);
  transition:transform .45s cubic-bezier(.2,.7,.2,1),box-shadow .45s,background .45s;
  animation:none; /* no float — keeps bits aligned and glass crisp */
  will-change:transform;
  box-sizing:border-box;
}
.pillars.p3 .pb[data-p="teaching"]{--accent:#c4b5fd;--glow:rgba(167,139,250,.8)}
.pillars.p3 .pb[data-p="development"]{--accent:#f0abfc;--glow:rgba(236,72,153,.75)}

/* iridescent hairline */
.pillars.p3 .pb::before{
  content:"";position:absolute;inset:0;border-radius:inherit;padding:1.2px;z-index:-1;pointer-events:none;
  background:linear-gradient(120deg,rgba(255,255,255,.95),color-mix(in srgb,var(--accent) 80%,#fff) 18%,rgba(255,255,255,.1) 36%,rgba(244,114,182,.5) 58%,rgba(250,204,21,.3) 72%,rgba(167,139,250,.85) 86%,rgba(255,255,255,.75));
  -webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);
  -webkit-mask-composite:xor;mask-composite:exclude;
}
/* glossy top reflection — follows the fully rounded pill cap */
.pillars.p3 .pb::after{
  content:"";position:absolute;inset:1px 1px 48% 1px;
  border-radius:57px 57px 40% 40%/57px 57px 14px 14px;
  pointer-events:none;z-index:-1;
  background:linear-gradient(180deg,rgba(255,255,255,.3),rgba(255,255,255,0));
}
.pillars.p3 .pb .shine{
  position:absolute;inset:0;border-radius:inherit;pointer-events:none;z-index:2;
  background:linear-gradient(105deg,transparent 28%,rgba(255,255,255,.2) 48%,transparent 64%);
  opacity:0;transition:opacity .45s;
}
.pillars.p3 .pb .sl-badge,
.pillars.p3 .pb .pt{position:relative;z-index:3}

.pillars.p3 .pb .sl-badge{
  flex:none;width:48px;height:48px;border-radius:16px;display:grid;place-items:center;
  background:linear-gradient(160deg,rgba(255,255,255,.22),rgba(255,255,255,.05)),rgba(7,10,28,.42);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.5),0 0 18px -6px var(--glow);
  border:1px solid rgba(255,255,255,.22);
}
.pillars.p3 .pb .sl-badge svg{width:34px;height:34px;display:block;filter:drop-shadow(0 0 4px rgba(124,58,237,.35))}
.pillars.p3 .pb .pt{display:flex;flex-direction:column;justify-content:center;min-width:0;flex:1}
.pillars.p3 .pb .pt b{
  font-size:20px;font-weight:800;letter-spacing:.11em;line-height:1.1;text-transform:uppercase;
  text-shadow:0 1px 3px rgba(0,0,0,.55);display:block;white-space:nowrap;overflow-wrap:normal;
}
.pillars.p3 .pb[data-p="development"] .pt b{font-size:16.5px;letter-spacing:.08em;line-height:1.12;white-space:nowrap}
.pillars.p3 .pb .pt small{
  font-size:13.5px;font-weight:500;color:#dbeafe;opacity:.92;margin-top:5px;letter-spacing:0;
  line-height:1.32;text-shadow:0 1px 3px rgba(0,0,0,.55);white-space:normal;overflow:visible;
  text-wrap:pretty;max-width:100%;
  display:block;-webkit-line-clamp:unset;-webkit-box-orient:unset;overflow:visible;
}

/* SpaceX-style mission trail: thin luminous streak from the end of the last subtitle line */
.pillars.p3 .pb .subend{display:inline-flex;align-items:center;gap:10px;width:100%;max-width:100%;vertical-align:bottom}
.pillars.p3 .pb .subend .subtxt{flex:none;white-space:nowrap}
.pillars.p3 .pb .trail{position:relative;flex:1 1 auto;min-width:36px;height:12px;align-self:center;overflow:hidden;pointer-events:none}
/* soft bloom at the origin — a wake, not a knob */
.pillars.p3 .pb .trail::after{
  content:"";position:absolute;left:0;top:50%;width:18px;height:7px;
  transform:translateY(-50%);
  background:radial-gradient(ellipse at 0% 50%, color-mix(in srgb,var(--accent) 70%,#fff), color-mix(in srgb,var(--accent) 25%,transparent) 55%, transparent 75%);
  opacity:.7;pointer-events:none;
}
/* hairline streak that fades toward the pill edge */
.pillars.p3 .pb .trail::before{
  content:"";position:absolute;left:0;right:0;top:50%;height:1px;transform:translateY(-50%);
  border-radius:1px;
  background:linear-gradient(90deg,var(--accent) 0%, color-mix(in srgb,var(--accent) 60%,#fff) 8%, color-mix(in srgb,var(--accent) 35%,transparent) 42%, transparent 100%);
  box-shadow:0 0 3px color-mix(in srgb,var(--accent) 55%,transparent);
  opacity:.8;
}
.pillars.p3 .pb .trail i{ /* very faint timeline ticks */
  position:absolute;left:0;right:0;top:50%;height:4px;transform:translateY(-50%);pointer-events:none;
  background:repeating-linear-gradient(90deg, color-mix(in srgb,var(--accent) 55%,#fff) 0 1px, transparent 1px 13px);
  -webkit-mask-image:linear-gradient(90deg,#000 0 12%,transparent 78%);
  mask-image:linear-gradient(90deg,#000 0 12%,transparent 78%);
  opacity:.22;
}

/* area icons removed in v6 — SL badge is enough */
.pillars.p3 .pb .ico{display:none !important}
.pillars.p3 .pb .pi,.pillars.p3 .pb .arw{display:none}

/* Hover enlarge — glass stays fully intact; bits are drawn on #access-bits */
.pillars.p3 .pb.is-hover,
.pillars.p3 .pb.is-click,
.pillars.p3 .pb:hover,
.pillars.p3 .pb:focus-visible{
  transform:translateY(-8px) scale(1.14);
  z-index:7;
  outline:none;
  background:
    linear-gradient(160deg,rgba(255,255,255,.34) 0%,rgba(255,255,255,.12) 34%,rgba(255,255,255,.06) 62%,rgba(255,255,255,.18) 100%),
    rgba(10,14,36,.28);
  box-shadow:
    inset 0 1.5px 0 rgba(255,255,255,.9),
    inset 0 14px 18px -14px rgba(255,255,255,.65),
    inset 0 -12px 20px -10px color-mix(in srgb, var(--accent) 55%, transparent),
    0 0 0 1.5px color-mix(in srgb, var(--accent) 55%, transparent),
    0 0 44px -2px var(--glow),
    0 36px 50px -18px rgba(0,0,0,.8),
    0 24px 60px -16px color-mix(in srgb, var(--accent) 80%, transparent);
}
.pillars.p3 .pb.is-hover .shine,
.pillars.p3 .pb:hover .shine,
.pillars.p3 .pb:focus-visible .shine{opacity:1}

.hero .dots{position:relative;z-index:3;margin-top:18px}
.hero .cap{position:relative;z-index:3}

/* Mid desktops (e.g. 1366): slightly smaller so 3 columns fit the viewport */
@media(max-width:1599px){
  .pillars.p3{width:100%;max-width:100%;gap:16px;padding:16px 0 22px}
  .pillars.p3 .pb{
    height:100px;min-height:100px;padding:0 22px 0 16px;gap:12px;
    border-radius:50px;
  }
  .pillars.p3 .pb::after{border-radius:49px 49px 40% 40%/49px 49px 12px 12px}
  .pillars.p3 .pb .sl-badge{width:42px;height:42px;border-radius:14px}
  .pillars.p3 .pb .sl-badge svg{width:30px;height:30px}
  .pillars.p3 .pb .pt b{font-size:17px;letter-spacing:.09em}
  .pillars.p3 .pb[data-p="development"] .pt b{font-size:14px;letter-spacing:.07em}
  .pillars.p3 .pb .pt small{font-size:12.5px;margin-top:4px}
  .pillars.p3 .pb .trail{min-width:28px;height:10px}
  .pillars.p3 .pb .subend{gap:8px}
  .pillars.p3 .pb.is-hover,
  .pillars.p3 .pb.is-click,
  .pillars.p3 .pb:hover,
  .pillars.p3 .pb:focus-visible{transform:translateY(-6px) scale(1.10)}
}
@media(max-width:1180px){
  .pillars.p3{gap:12px}
  .pillars.p3 .pb{
    height:92px;min-height:92px;padding:0 18px 0 14px;gap:10px;
    border-radius:46px;
  }
  .pillars.p3 .pb::after{border-radius:45px 45px 40% 40%/45px 45px 12px 12px}
  .pillars.p3 .pb .sl-badge{width:38px;height:38px;border-radius:12px}
  .pillars.p3 .pb .sl-badge svg{width:26px;height:26px}
  .pillars.p3 .pb .pt b{font-size:15px;letter-spacing:.07em}
  .pillars.p3 .pb[data-p="development"] .pt b{font-size:12.5px;letter-spacing:.05em}
  .pillars.p3 .pb .pt small{font-size:11.5px}
  .pillars.p3 .pb .trail{min-width:22px}
}

/* Beat leftover .p4 column stacking (the hero nav still has class "pillars p4 p3"). */
@media(max-width:700px){
  .pillars.p3 .pb{
    flex-direction:row;
    align-items:center;
  }
}

/* Stack on tablet / mobile — no overlap */
@media(max-width:900px){
  .pillars.p3{
    grid-template-columns:1fr;
    max-width:520px;
    width:100%;
    gap:14px;
    padding:12px 0 20px;
  }
  .pillars.p3 .pb{
    height:auto;
    min-height:100px;
    padding:16px 22px 16px 16px;
    gap:14px;
    border-radius:50px;
    transform:none;
  }
  .pillars.p3 .pb::after{border-radius:49px 49px 40% 40%/49px 49px 12px 12px}
  .pillars.p3 .pb .pt b{font-size:18px;letter-spacing:.1em}
  .pillars.p3 .pb[data-p="development"] .pt b{font-size:16px;letter-spacing:.08em;white-space:nowrap}
  .pillars.p3 .pb .pt small{font-size:13.5px}
  .pillars.p3 .pb .sl-badge{width:46px;height:46px;border-radius:15px}
  .pillars.p3 .pb .sl-badge svg{width:32px;height:32px}
  .pillars.p3 .pb .trail{min-width:40px}
  .pillars.p3 .pb.is-hover,
  .pillars.p3 .pb.is-click,
  .pillars.p3 .pb:hover,
  .pillars.p3 .pb:focus-visible{transform:translateY(-4px) scale(1.04)}
}
@media(max-width:420px){
  .pillars.p3 .pb{padding:14px 18px 14px 14px;gap:12px;min-height:92px;border-radius:46px}
  .pillars.p3 .pb::after{border-radius:45px 45px 40% 40%/45px 45px 12px 12px}
  .pillars.p3 .pb .sl-badge{width:42px;height:42px;border-radius:14px}
  .pillars.p3 .pb .sl-badge svg{width:30px;height:30px}
  .pillars.p3 .pb .pt b{font-size:16.5px;letter-spacing:.08em}
  .pillars.p3 .pb[data-p="development"] .pt b{font-size:13.5px;letter-spacing:.05em;white-space:nowrap}
  .pillars.p3 .pb .pt small{font-size:12.5px}
  /* shorter trails on narrow phones so subtitles keep the room */
  .pillars.p3 .pb .trail{max-width:56px;min-width:24px;flex:0 1 56px;height:10px}
  .pillars.p3 .pb .subend{gap:8px}
  .pillars.p3 .pb .trail i{opacity:.12}
}

@media(prefers-reduced-motion:reduce){
  .pillars.p3 .pb,
  .pillars.p3 .pb .shine,
  .pillars.p3 .pb.is-hover,
  .pillars.p3 .pb.is-click,
  .pillars.p3 .pb:hover,
  .pillars.p3 .pb:focus-visible{
    transition:none;transform:none;animation:none;
  }
}

/* Nav: new short labels; "Software Development" needs a little room */
@media(max-width:1180px) and (min-width:861px){
  .menu>li>a{padding:10px 8px;font-size:13px}
}
