/* sethurama.com shared styles: base look + the interactive layer */
:root {
  --purple: #4E2A84;      /* the page: same purple as the business card */
  --white: #FFFFFF;
  --lavender: #CDBEF0;    /* secondary text */
  --rule: #7B5DB0;        /* hairline and decorative rings */
  --green: #4BCB86;       /* links and the one dot, as on the card */
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--purple); overflow-x: hidden; }   /* keeps body as its own clipping box (see body) */
::selection { background: var(--lavender); color: var(--purple); }
body {
  font-family: "IBM Plex Sans", system-ui, sans-serif;
  background: var(--purple);
  color: var(--white);
  min-height: 100vh;
  line-height: 1.6;
  position: relative;
  overflow-x: hidden;
  overflow-x: clip;   /* stops the rings widening the page on phones (was 520px wide on a 390px screen) */
  display: flex;
  align-items: center;
}

/* Decorative rings, borrowed from the Credpage mark, bleeding off the top-right corner */
.rings { position: absolute; top: -150px; right: -140px; width: 440px; height: 440px; pointer-events: none; }
.rings circle { fill: none; stroke: var(--white); stroke-opacity: .06; stroke-linecap: round; }
@media (max-width: 700px) { .rings { width: 320px; height: 320px; top: -120px; right: -130px; } }

main { width: 100%; max-width: 880px; margin: 0 auto; padding: 88px 28px; position: relative; }
@media (min-width: 760px) { main { padding: 104px 64px; } }

/* Name, with the aside sitting on its baseline like the credentials on the card */
.name { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 22px; }
h1 {
  font-family: "Source Serif 4", Georgia, serif;
  font-weight: 600;
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
}
.aka { color: var(--lavender); font-size: 1.1rem; }

/* Hairline with a single green dot: the card's divider, without the label */
.rule { position: relative; height: 1px; background: var(--rule); margin: 40px 0 36px; max-width: 640px; }
.rule::after {
  content: ""; position: absolute; left: 44%; top: 50%;
  width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px;
  border-radius: 50%; background: var(--green);
}

.lede { font-size: 1.15rem; }
.write { margin-top: 40px; font-size: 1.05rem; }

a { color: var(--green); font-weight: 500; text-decoration: none; border-bottom: 1px solid transparent; }
a:hover { border-bottom-color: var(--green); }
a:focus-visible { outline: 2px solid var(--white); outline-offset: 4px; border-radius: 3px; }

/* One quiet settle on load: lines arrive in reading order, once */
.in { opacity: 0; transform: translateY(4px); animation: settle .5s cubic-bezier(.2,0,.2,1) forwards; animation-delay: calc(var(--i, 0) * 80ms); }
@keyframes settle { to { opacity: 1; transform: none; } }

/* ---------- Interactive layer (all hand-written, no libraries) ---------- */
/* WebGL water + gravitational lens: replaces the SVG rings once the GPU is ready */
.fx-gl { position: fixed; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; }
html.gl .rings { visibility: hidden; }
main { transition: opacity .6s ease, transform .6s ease; }

/* Particle name: the real h1 stays in the page for SEO and screen readers */
.fx-name { position: absolute; pointer-events: none; }
h1.px { color: transparent; }

/* Words and logos sit on springs */
.w { display: inline-block; }
.write a { display: inline-block; }

/* ECG divider + defibrillator */
.rule.ecg { background: transparent; }
.rule.ecg::after { display: none; }
.fx-ecg { position: absolute; left: 0; top: -36px; height: 72px; pointer-events: none; }
.defib { position: absolute; left: 44%; top: 0; width: 36px; height: 36px; margin: -18px 0 0 -18px; padding: 0; border: 0; border-radius: 50%; background: transparent; cursor: pointer; }
.defib:focus-visible { outline: 2px solid var(--white); outline-offset: 2px; }
.clear-msg { position: absolute; left: calc(44% + 16px); top: -30px; font-size: .72rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--lavender); opacity: 0; transition: opacity .15s; pointer-events: none; white-space: nowrap; }
.fx-flash { position: fixed; inset: 0; background: var(--green); opacity: 0; pointer-events: none; z-index: 30; }

/* Throwable Stackio cube */
.ventures svg.sk { touch-action: none; }
.sk .grab { cursor: grab; }
.fx-cube { position: fixed; left: 0; top: 0; z-index: 40; pointer-events: none; overflow: visible; }

/* Hidden stacking game */
html.game main { pointer-events: none; }
.fx-game { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 50; touch-action: none; cursor: pointer; outline: none; }
html { touch-action: manipulation; }   /* no double-tap zoom: double tap toggles the water */

/* Dock, bottom right: Rain, Music, Play. Quiet until hovered; the same element on the page and in the game */
.dock { position: fixed; right: 16px; bottom: 14px; z-index: 53; display: flex; align-items: center; gap: 4px; }
.dock > button { width: 36px; height: 36px; padding: 9px; border: 0; border-radius: 50%; background: transparent; color: var(--lavender); cursor: pointer; opacity: .42; transition: opacity .25s, transform .25s, background .25s, color .25s; display: grid; place-items: center; position: relative; }
.dock:hover > button, .dock:focus-within > button, .dock.open > button, html.game .dock > button { opacity: .85; }
.dock > button:hover { opacity: 1; transform: translateY(-2px); color: var(--white); }
.dock > button:focus-visible, .mpanel button:focus-visible { outline: 2px solid var(--white); outline-offset: 2px; }
.dock > button[aria-pressed="true"] { opacity: 1; color: var(--purple); background: var(--lavender); }
.dock svg { display: block; width: 100%; height: 100%; overflow: visible; }
.play { padding: 7px !important; }
html.game .play { opacity: 0 !important; pointer-events: none; }
/* Music button shows a tiny equaliser while playing */
.music .eq { display: none; position: absolute; inset: 0; align-items: flex-end; justify-content: center; gap: 2px; padding: 11px 10px; }
.music.on .note { display: none; }
.music.on .eq { display: flex; }
.eq i { width: 3px; height: 30%; background: currentColor; border-radius: 1px; animation: eq .9s ease-in-out infinite; }
.eq i:nth-child(2) { animation-delay: -.3s; } .eq i:nth-child(3) { animation-delay: -.6s; }
@keyframes eq { 0%,100% { height: 25%; } 50% { height: 95%; } }
@media (prefers-reduced-motion: reduce) { .eq i { animation: none; height: 60%; } }
.mpanel { position: absolute; right: 0; bottom: calc(100% + 10px); width: 236px; padding: 14px 16px 12px; background: rgba(62,32,108,.94); border: 1px solid var(--rule); border-radius: 14px; box-shadow: 0 12px 32px rgba(20,8,45,.35); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.mpanel[hidden] { display: none; }
.mtitle { font-size: .82rem; color: var(--lavender); margin-bottom: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mbtns { display: flex; justify-content: center; gap: 14px; margin-bottom: 10px; }
.mb { width: 34px; height: 34px; padding: 8px; border: 0; border-radius: 50%; background: transparent; color: var(--white); cursor: pointer; }
.mb:hover { background: rgba(255,255,255,.08); }
.mb.pp { background: var(--white); color: var(--purple); width: 40px; height: 40px; padding: 11px; }
.mb svg { display: block; width: 100%; height: 100%; }
.slider { display: flex; align-items: center; gap: 10px; font-size: .78rem; color: var(--lavender); margin-top: 6px; }
.slider span { width: 38px; }
.slider input { flex: 1; accent-color: var(--green); height: 18px; }

/* Wet-glass layer for the shake splash (pointer-events none) */
.fx-glass { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 52; pointer-events: none; }

/* Rain layer, over everything (pointer-events none) */
.fx-rain { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 51; pointer-events: none; }

/* In the game the page fades away completely; only the three venture logos stay, as a faint watermark */
html.game main > * { opacity: 0 !important; transition: opacity .5s ease; }
html.game main > .ventures { opacity: .08 !important; }
html.game .fx-name { opacity: 0 !important; }
main > * { transition: opacity .6s ease; }

/* In-game controls */
.game-ui { position: fixed; top: 16px; right: 16px; z-index: 53; display: flex; gap: 8px; }
.game-ui button { font: 500 13px "IBM Plex Sans", system-ui, sans-serif; color: var(--lavender); background: rgba(78,42,132,.55); border: 1px solid var(--rule); border-radius: 999px; padding: 6px 13px; cursor: pointer; display: flex; align-items: center; gap: 6px; }
.game-ui button:hover { color: var(--white); border-color: var(--lavender); }
.game-ui button[aria-pressed="true"] { color: var(--purple); background: var(--lavender); border-color: var(--lavender); }
.game-ui button:focus-visible { outline: 2px solid var(--white); outline-offset: 2px; }
.game-ui svg { width: 15px; height: 15px; }

.tip { position: fixed; left: 50%; bottom: 72px; transform: translate(-50%, 6px); z-index: 54; padding: 7px 15px; font-size: .8rem; color: var(--lavender); background: rgba(62,32,108,.92); border: 1px solid var(--rule); border-radius: 999px; opacity: 0; pointer-events: none; transition: opacity .4s, transform .4s; white-space: nowrap; }
.tip.show { opacity: 1; transform: translate(-50%, 0); }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Score board at the end of the game: same frosted panel, pills and type as the rest of the site */
.game-board { position: fixed; left: 50%; top: 50%; z-index: 54; width: min(340px, calc(100vw - 40px)); padding: 26px 26px 18px; transform: translate(-50%, -46%) scale(.97); opacity: 0;
  text-align: center; background: rgba(62,32,108,.94); border: 1px solid var(--rule); border-radius: 20px; box-shadow: 0 18px 48px rgba(20,8,45,.45);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); transition: opacity .3s ease, transform .35s cubic-bezier(.2,0,.2,1); }
.game-board.show { opacity: 1; transform: translate(-50%, -50%); }
.gb-label { font-size: .72rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--green); }
.gb-score { font-family: "Source Serif 4", Georgia, serif; font-weight: 600; font-size: 4.4rem; line-height: 1; margin-top: 8px; font-variant-numeric: tabular-nums; }
.gb-sub { color: var(--lavender); font-size: .95rem; margin-top: 4px; }
.gb-stats { display: flex; justify-content: center; gap: 18px; margin: 14px 0 20px; font-size: .85rem; color: var(--lavender); }
.gb-stats b { color: var(--white); font-weight: 500; }
.game-board button { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; border: 0; border-radius: 999px; cursor: pointer; font: 500 .98rem "IBM Plex Sans", system-ui, sans-serif; transition: background .2s, transform .2s, color .2s; }
.game-board button:active { transform: scale(.98); }
.game-board button:focus-visible { outline: 2px solid var(--white); outline-offset: 3px; }
.gb-share { padding: 12px 18px; background: var(--green); color: #12301F; }
.gb-share:hover { background: #5ad895; }
.gb-share svg { width: 19px; height: 19px; }
.gb-again { margin-top: 10px; padding: 12px 18px; background: var(--white); color: var(--purple); }
.gb-again:hover { background: var(--lavender); }
.gb-back { margin-top: 6px; padding: 10px; background: transparent; color: var(--lavender); }
.gb-back:hover { color: var(--white); }
@media (prefers-reduced-motion: reduce) { .game-board { transition: none; } }

/* Small social icons beside the existing email link */
.social-links { display: inline-flex; align-items: center; vertical-align: middle; gap: .5em; margin-left: 1em; }
.social-links a, .social-links .social-placeholder { display: inline-flex; align-items: center; justify-content: center; width: 1.25em; height: 1.5em; color: var(--lavender); border-bottom: 0; }
.social-links a:hover { color: var(--green); }
.social-links svg { display: block; width: 1em; height: 1em; }
/* LinkedIn's square sits inside 20 of its 24 units, GitHub's mark fills ~22, so scale it up to look the same size */
.social-links .social-placeholder svg { transform: scale(1.11); }
.social-links .social-placeholder { cursor: default; opacity: .45; }
