/* intro.css : the intro's own styles (v7): opening name lock, community panels, end screen. Loaded after play.css (uses its tokens). */
#intro.ip-ended .i-skip { display: none; }

/* ---- opening: my name locks beside my portrait, decoding on 16ths ---- */
.ip-id { position: absolute; left: 6vw; top: 31%; width: 40vw; padding-left: 18px; border-left: 3px solid var(--peak); }
.ip-id i { display: block; font-style: normal; font-family: var(--hud); font-size: clamp(11px, 1.05vw, 14px); letter-spacing: .32em; color: var(--text-g); margin-bottom: 10px; }
.ip-id b { display: block; min-height: 1.84em; font-family: var(--display); font-style: italic; font-weight: 800; font-size: clamp(30px, 4.4vw, 74px); line-height: .92; color: #fbfff9; text-shadow: 0 0 2px rgba(255,255,255,.6), 0 0 22px rgba(54,255,18,.45); }
.ip-id span { display: block; min-height: 1.4em; margin-top: 12px; font-family: var(--hud); font-size: clamp(11px, 1.05vw, 15px); letter-spacing: .12em; color: var(--cyan); }

/* ---- COMMUNITY: YouTube and LinkedIn, equal weight ---- */
.ip-com { position: absolute; left: 5vw; right: 5vw; bottom: calc(10% + 16px); display: grid; grid-template-columns: 1fr 1fr; gap: 4vw; }
.ip-card { position: relative; padding: 16px 22px 14px 74px; background: rgba(1, 12, 3, .74); box-shadow: inset 0 0 0 1px rgba(54, 255, 18, .4); }
.ip-card::before { content: ''; position: absolute; inset: -6px; pointer-events: none; --c: var(--peak);
  background: linear-gradient(var(--c), var(--c)) 0 0 / 16px 2px no-repeat, linear-gradient(var(--c), var(--c)) 0 0 / 2px 16px no-repeat,
    linear-gradient(var(--c), var(--c)) 100% 100% / 16px 2px no-repeat, linear-gradient(var(--c), var(--c)) 100% 100% / 2px 16px no-repeat; }
.ip-card svg { position: absolute; left: 18px; top: 18px; width: 40px; height: 40px; fill: none; stroke: var(--cyan); stroke-width: 2; stroke-linecap: round; }
.ip-card h3 { margin: 0; font-family: var(--hud); font-weight: 400; font-size: clamp(11px, 1.05vw, 15px); letter-spacing: .2em; color: var(--cyan); }
.ip-card .ip-n { display: block; margin: 4px 0 2px; font-family: var(--display); font-style: italic; font-weight: 800; font-size: clamp(42px, 5.6vw, 90px); line-height: .9; color: #fbfff9; font-variant-numeric: tabular-nums; text-shadow: 0 0 2px rgba(255,255,255,.6), 0 0 22px rgba(54,255,18,.45); }
.ip-card span { display: block; font-family: var(--hud); font-size: clamp(10px, .95vw, 14px); letter-spacing: .16em; color: var(--peak); }
.ip-card em { display: block; margin-top: 8px; font-style: normal; font-family: var(--hud); font-size: clamp(12px, 1.2vw, 17px); letter-spacing: .1em; color: var(--hazard); font-variant-numeric: tabular-nums; }
.ip-card em b { color: #fbfff9; }

/* ---- the end screen: HUD lock-up + prompts ---- */
.ip-end { position: absolute; z-index: 4; left: 50vw; right: 4vw; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; align-items: flex-start; gap: 8px; --fill: 0; }
.ip-kick { margin: 0; font-family: var(--hud); font-size: clamp(11px, 1.05vw, 14px); letter-spacing: .34em; color: var(--text-g); opacity: 0; transition: opacity .3s; }
.ip-end.hit .ip-kick { opacity: 1; }
.ip-wm { display: block; width: min(46vw, 760px); height: auto; overflow: visible; margin-left: -1.2vw; }
.ip-wm text { font-family: var(--display); font-style: italic; font-weight: 800; font-size: 172px; }
.ip-wm .wt { fill: url(#ipShim); fill-opacity: var(--fill); stroke: #36ff12; stroke-width: 2.5; stroke-dasharray: 760; stroke-dashoffset: 760; transition: fill-opacity .12s; }
.ip-wm .wr { fill: #ff2d55; opacity: 0; } .ip-wm .wc { fill: #7ffcd5; opacity: 0; }
.ip-end.hit .ip-wm { filter: drop-shadow(0 0 16px rgba(54, 255, 18, .5)); }
.ip-end.hit .ip-wm .wt { animation: wgl .5s linear both; }
.ip-end.hit .ip-wm .wr { animation: wgr .5s steps(1) both; }
.ip-end.hit .ip-wm .wc { animation: wgc .5s steps(1) both; }
@keyframes wgl { 0% { transform: translateX(10px) skewX(-10deg); clip-path: inset(0 0 46% 0); } 12% { transform: translateX(-8px); clip-path: inset(40% 0 0 0); }
  24% { transform: translateX(5px); clip-path: inset(0 0 0 0); } 40% { transform: translateX(-2px); } 60%, 100% { transform: none; } }
@keyframes wgr { 0% { opacity: .9; transform: translate(-16px, 0); clip-path: inset(8% 0 58% 0); } 16% { transform: translate(12px, 2px); clip-path: inset(52% 0 18% 0); }
  32% { opacity: .7; transform: translate(-7px, 0); clip-path: inset(30% 0 40% 0); } 48% { transform: translate(4px, 0); clip-path: inset(72% 0 4% 0); } 64% { opacity: .35; transform: translate(-2px, 0); clip-path: none; } 80%, 100% { opacity: 0; } }
@keyframes wgc { 0% { opacity: .9; transform: translate(16px, 0); clip-path: inset(60% 0 10% 0); } 16% { transform: translate(-12px, -2px); clip-path: inset(14% 0 60% 0); }
  32% { opacity: .7; transform: translate(7px, 0); clip-path: inset(44% 0 26% 0); } 48% { transform: translate(-4px, 0); clip-path: inset(2% 0 76% 0); } 64% { opacity: .35; transform: translate(2px, 0); clip-path: none; } 80%, 100% { opacity: 0; } }
.ip-name { margin: 2px 0 0; min-height: 1em; font-family: var(--display); font-style: italic; font-weight: 800; font-size: clamp(24px, 3vw, 50px); line-height: 1; letter-spacing: .02em; color: #fbfff9; white-space: nowrap; text-shadow: 0 0 2px rgba(255,255,255,.6), 0 0 20px rgba(54,255,18,.4); }
.ip-role { margin: 0; min-height: 1.4em; font-family: var(--hud); font-size: clamp(11px, 1.1vw, 16px); letter-spacing: .14em; color: var(--cyan); }
.ip-cur { display: inline-block; width: .55em; height: 1em; margin-left: 3px; vertical-align: -.15em; background: var(--peak); opacity: 0; }
.ip-end.hit .ip-cur { opacity: 1; animation: ipblink .52s steps(1) infinite; }
@keyframes ipblink { 50% { opacity: 0; } }
.ip-cta { display: flex; gap: 18px; margin-top: 22px; visibility: hidden; pointer-events: none; }
.ip-end.cta .ip-cta { visibility: visible; pointer-events: auto; }
.ip-btn { position: relative; display: inline-flex; flex-direction: column; align-items: flex-start; gap: 3px; min-width: 220px; padding: 14px 28px 12px 20px; border: 0; cursor: pointer; text-decoration: none;
  font-family: var(--display); font-style: italic; font-weight: 800; font-size: clamp(20px, 1.9vw, 30px); letter-spacing: .06em; line-height: 1; transition: box-shadow .18s, filter .18s, background .18s; }
.ip-btn small { font-family: var(--hud); font-style: normal; font-weight: 400; font-size: clamp(10px, .8vw, 12px); letter-spacing: .16em; opacity: .85; }
.ip-btn.pri { background: var(--peak); color: var(--on-slab); box-shadow: 0 0 24px rgba(54, 255, 18, .45); }
.ip-btn.sec { background: rgba(2, 16, 3, .78); color: var(--core); box-shadow: inset 0 0 0 1px var(--peak); }
.ip-btn::before { content: ''; position: absolute; inset: -7px; pointer-events: none; --c: var(--peak); transition: inset .18s;
  background: linear-gradient(var(--c), var(--c)) 0 0 / 14px 2px no-repeat, linear-gradient(var(--c), var(--c)) 0 0 / 2px 14px no-repeat,
    linear-gradient(var(--c), var(--c)) 100% 0 / 14px 2px no-repeat, linear-gradient(var(--c), var(--c)) 100% 0 / 2px 14px no-repeat,
    linear-gradient(var(--c), var(--c)) 0 100% / 14px 2px no-repeat, linear-gradient(var(--c), var(--c)) 0 100% / 2px 14px no-repeat,
    linear-gradient(var(--c), var(--c)) 100% 100% / 14px 2px no-repeat, linear-gradient(var(--c), var(--c)) 100% 100% / 2px 14px no-repeat; }
.ip-btn::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(100deg, transparent 35%, rgba(255, 255, 255, .5) 50%, transparent 65%) no-repeat; background-size: 300% 100%; animation: ipsweep 2.6s linear infinite; }
.ip-btn.sec::after { animation-delay: 1.3s; opacity: .5; }
@keyframes ipsweep { 0% { background-position: 120% 0; } 45%, 100% { background-position: -40% 0; } }
.ip-end.cta .ip-btn { animation: ipin .38s cubic-bezier(.1, .9, .2, 1) both; }
.ip-end.cta .ip-btn.sec { animation-delay: .12s; }
@keyframes ipin { 0% { clip-path: inset(-20px 100% -20px -20px); filter: brightness(2.2); } 100% { clip-path: inset(-20px -20px -20px -20px); filter: none; } }
.ip-btn:hover::before, .ip-btn:focus-visible::before { inset: -11px; --c: #fbfff9; }
.ip-btn.pri:hover, .ip-btn.pri:focus-visible { background: #8dff6e; box-shadow: 0 0 38px rgba(54, 255, 18, .75); }
.ip-btn.sec:hover, .ip-btn.sec:focus-visible { background: rgba(4, 32, 10, .9); box-shadow: inset 0 0 0 1px var(--peak), 0 0 26px rgba(54, 255, 18, .4); }
.ip-btn:focus-visible { outline: 2px solid #fbfff9; outline-offset: 5px; }

/* reduced motion: fade only */
.ip-end.rm .wr, .ip-end.rm .wc { display: none; }
.ip-end.rm .ip-wm .wt { stroke: none; animation: none; transition: fill-opacity .6s; }
.ip-end.rm .ip-btn, .ip-end.rm .ip-btn::after { animation: none; }
.ip-end.rm .ip-cta { opacity: 0; transition: opacity .6s; } .ip-end.rm.cta .ip-cta { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .ip-btn::after { animation: none; } .ip-end.hit .ip-cur { animation: none; } }

/* phone / tall */
@media (max-aspect-ratio: 1/1) {
  .ip-id { left: 6vw; right: 6vw; width: auto; top: auto; bottom: calc(6.5% + 22px); }
  .ip-id b { font-size: 10vw; }
  .ip-id span { font-size: 11px; letter-spacing: .06em; }
  .ip-com { top: calc(6.5% + 44px); bottom: calc(6.5% + 14px); grid-template-columns: 1fr; align-content: space-between; gap: 0; }
  .ip-card { padding: 12px 14px 10px 62px; }
  .ip-card svg { left: 12px; top: 14px; width: 36px; height: 36px; }
  .ip-card .ip-n { font-size: 13vw; }
  .ip-card span, .ip-card h3 { font-size: 10.5px; letter-spacing: .1em; }
  .ip-card em { font-size: 12px; letter-spacing: .06em; }
  .ip-end { left: 5vw; right: 5vw; top: auto; bottom: calc(3.5% + env(safe-area-inset-bottom)); transform: none; align-items: center; text-align: center; gap: 6px; }
  .ip-wm { width: 84vw; margin-left: 0; }
  .ip-name { font-size: 6.6vw; }
  .ip-role { font-size: 10px; letter-spacing: .06em; }
  .ip-cta { flex-direction: column; align-self: stretch; gap: 14px; margin-top: 14px; }
  .ip-btn { min-width: 0; align-items: center; padding: 13px 16px 11px; font-size: 22px; }
}

/* v8: the 3D world, a small third prompt under the two (only shown when world.html is in the build) */
.ip-3d { display: inline-block; margin-top: 14px; font-family: var(--hud); font-size: 13px; letter-spacing: .16em; color: var(--cyan); text-decoration: none; padding: 6px 12px; border: 1px solid rgba(127, 252, 213, .45); visibility: hidden; pointer-events: none; }
.ip-end.cta .ip-3d { visibility: visible; pointer-events: auto; }
.ip-3d:hover, .ip-3d:focus-visible { color: #fbfff9; border-color: #fbfff9; outline: none; }
.ip-3d[hidden] { display: none; }
.ip-btn[hidden] { display: none; }   /* v8t: ENTER 3D WORLD only when world.html is in the build */
.ip-card svg.ip-logo { stroke: none; }   /* v8: the real brand marks keep their own fills */
.p-lab.w .p-wlogo { display: block; height: clamp(26px, 3.2vw, 44px); width: auto; max-width: 14ch; object-fit: contain; margin-bottom: 4px; }   /* v8: employer logos, shape and colours untouched */
.ip-card.noico { padding-left: 22px; }   /* v8: the logos are the big 3D marks in the scene now */
@media (max-aspect-ratio: 1/1) { .ip-card.noico { padding-left: 14px; } }
.p-lab.w .p-wlogo.chip { background: #fff; padding: 4px 8px; }
.p-lab.w i.ln { color: var(--core); font-size: clamp(11px, 1vw, 14px); letter-spacing: .04em; }   /* v8h: one line of context under a WORK stop (employers not on my site yet) */
.p-lab.w:has(> i.ln) { width: 36ch; }
@media (max-aspect-ratio: 1/1) { .p-lab.w:has(> i.ln) { width: 30ch; } .p-lab.w:has(> i.ln) i { font-size: 12px; letter-spacing: .03em; } .p-lab.w i.ln { font-size: 11px; } }
