/* ---------- the "after the explosion" site: liquid glass over an aurora ---------- */
.modern {
  --acc: #ffb86b;
  --acc-ink: #1f1608;
  position: fixed; inset: 0; z-index: 30;
  overflow-y: auto; overflow-x: hidden;
  background: #0e1013;
  color: #f4f6fb;
  font-family: "Inter", "Segoe UI", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  opacity: 0; transition: opacity .45s ease;
  outline: none;
  scroll-behavior: smooth;
}
.modern.is-on { opacity: 1; }
.modern[hidden] { display: none; }

/* background: graphite, one warm key light, a cool fill, a dot grid, and the program's name etched in */
.m-bg {
  position: fixed; inset: 0; overflow: hidden; pointer-events: none; z-index: 0;
  background:
    radial-gradient(1100px 720px at 8% -12%, rgba(255, 176, 97, .28), transparent 62%),
    radial-gradient(900px 700px at 102% 108%, rgba(96, 150, 255, .15), transparent 60%),
    linear-gradient(180deg, #101318, #0e1013 40%, #0b0d11);
}
.m-bg .beam {            /* a slow sweep of the key light across the page */
  position: absolute; left: -12%; top: -25%; width: 44%; height: 150%;
  background: linear-gradient(100deg, transparent 25%, rgba(255, 176, 97, .09) 50%, transparent 75%);
  transform: rotate(8deg); filter: blur(28px);
  animation: beam 16s ease-in-out infinite alternate;
}
@keyframes beam { to { transform: rotate(8deg) translateX(22%); opacity: .6; } }
.m-bg .grid {
  position: absolute; inset: 0; opacity: .14;
  background-image: radial-gradient(rgba(255, 255, 255, .55) 1px, transparent 1.4px);
  background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 45% 35%, #000 20%, transparent 100%);
  mask-image: radial-gradient(ellipse 70% 60% at 45% 35%, #000 20%, transparent 100%);
}
.m-bg .mark {            /* SKILLS.SYS, outlined, in the old machine's typeface */
  position: absolute; right: -1vw; top: 7vh;
  font: 400 clamp(64px, 13vw, 190px)/1 "Press Start 2P", monospace;
  color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .075);
  white-space: nowrap; user-select: none;
}
.m-bg::after {           /* grain so the glass has something to refract */
  content: ""; position: absolute; inset: 0; opacity: .06;
  background-image: radial-gradient(rgba(255, 255, 255, .9) .6px, transparent .7px);
  background-size: 3px 3px;
}

/* icons */
.ic { width: 20px; height: 20px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.card-ic .ic { width: 22px; height: 22px; }
.m-back .ic, .m-btn .ic { width: 17px; height: 17px; margin-right: 8px; }
.m-logo-chip .ic { width: 17px; height: 17px; margin-right: 8px; color: var(--acc); }
.m-soft h2 .ic { width: 18px; height: 18px; margin-right: 10px; vertical-align: -3px; color: var(--acc); }

/* liquid glass */
.glass {
  position: relative;
  background: linear-gradient(135deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .05) 55%, rgba(255, 255, 255, .10));
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  backdrop-filter: blur(22px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 28px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .55),
    inset 0 -1px 0 rgba(255, 255, 255, .08),
    inset 1px 0 0 rgba(255, 255, 255, .18),
    0 24px 60px rgba(0, 0, 0, .35);
  overflow: hidden;
  isolation: isolate;
}
.glass::before {        /* moving specular highlight, follows the pointer */
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 0;
  background: radial-gradient(420px circle at var(--mx, 30%) var(--my, 10%), rgba(255, 255, 255, .22), rgba(255, 255, 255, .05) 35%, transparent 60%);
  opacity: .9; transition: opacity .3s;
}
.glass::after {         /* bright rim, like light bending along a thick glass edge */
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; pointer-events: none; z-index: 0;
  background: linear-gradient(120deg, rgba(255, 255, 255, .7), rgba(255, 255, 255, 0) 30%, rgba(255, 255, 255, 0) 65%, rgba(255, 255, 255, .45));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.glass > * { position: relative; z-index: 1; }

/* top bar */
.m-top {
  position: sticky; top: 0; z-index: 5;
  display: flex; align-items: center; gap: 14px;
  padding: 18px clamp(16px, 4vw, 48px);
}
.m-logo {
  width: 46px; height: 46px; display: grid; place-items: center;
  border-radius: 16px; text-decoration: none;
  font: 700 15px "Sora", sans-serif; color: #fff; letter-spacing: .04em;
}
.m-nav { display: flex; gap: 4px; padding: 6px; border-radius: 18px; }
.m-nav a { padding: 9px 14px; border-radius: 12px; color: rgba(255, 255, 255, .82); text-decoration: none; font-size: 14px; font-weight: 500; transition: background .2s, color .2s; }
.m-nav a:hover, .m-nav a:focus-visible { background: rgba(255, 255, 255, .14); color: #fff; outline: none; }
.m-back {
  margin-left: auto; padding: 11px 16px; border-radius: 16px;
  color: #fff; font: 500 14px "Inter", sans-serif; cursor: pointer;
  transition: transform .2s;
}
.m-back:hover { transform: translateY(-1px); }
.m-back:focus-visible { outline: 2px solid #2dd4bf; outline-offset: 2px; }

/* layout */
.m-main { position: relative; z-index: 1; max-width: 1120px; margin: 0 auto; padding: 4vh clamp(16px, 4vw, 48px) 60px; }
.m-kicker { margin: 0 0 14px; font: 600 12px/1 "Inter", sans-serif; letter-spacing: .18em; text-transform: uppercase; color: var(--acc); }
.m-acc { color: var(--acc); }
h1, .modern h2 { font-family: "Sora", "Inter", sans-serif; letter-spacing: -.02em; }
.m-hero { padding: 8vh 0 6vh; max-width: 820px; }
.m-hero h1 { margin: 0 0 20px; font-size: clamp(38px, 6.4vw, 78px); line-height: 1.02; font-weight: 700; }
.m-lead { margin: 0 0 26px; max-width: 640px; font-size: clamp(16px, 1.6vw, 19px); line-height: 1.6; color: rgba(255, 255, 255, .78); }
.m-pills { display: flex; flex-wrap: wrap; gap: 10px; }
.pill { padding: 10px 16px; border-radius: 999px; font-size: 13px; font-weight: 500; color: #fff; }

/* skill cards */
.m-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; margin: 10px 0 24px; }
.card { padding: 26px 26px 24px; transform-style: preserve-3d; transition: transform .35s cubic-bezier(.2, .7, .2, 1), box-shadow .35s; }
.card:hover { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), 0 30px 70px rgba(0, 0, 0, .45), 0 0 0 1px rgba(255, 255, 255, .08); }
.card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.card-ic {
  width: 46px; height: 46px; border-radius: 14px;
  display: grid; place-items: center; color: var(--acc);
  background: rgba(255, 255, 255, .10); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45);
}
.card-n { font: 500 12px/1 ui-monospace, "SF Mono", Menlo, Consolas, monospace; letter-spacing: .12em; color: rgba(255, 255, 255, .45); }
.card h2 { margin: 0 0 8px; font-size: 21px; font-weight: 600; }
.card p { margin: 0 0 16px; font-size: 14.5px; line-height: 1.55; color: rgba(255, 255, 255, .72); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips span {
  padding: 7px 11px; border-radius: 10px; font-size: 12.5px; font-weight: 500;
  background: rgba(255, 255, 255, .09); border: 1px solid rgba(255, 255, 255, .14); color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25);
}
.chips .hot { background: rgba(255, 184, 107, .16); border-color: rgba(255, 184, 107, .55); }

/* AI section */
.m-ai { display: grid; grid-template-columns: 1.1fr 1fr; gap: 28px; align-items: center; padding: 34px; margin: 18px 0 24px; }
.m-ai h2 { margin: 0 0 14px; font-size: clamp(26px, 3.4vw, 40px); line-height: 1.1; font-weight: 700; }
.m-ai-text p:last-child { margin: 0; font-size: 15.5px; line-height: 1.6; color: rgba(255, 255, 255, .78); }
.m-ai-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.m-ai-list li { padding: 16px 18px; border-radius: 18px; display: grid; gap: 4px; }
.m-ai-list b { font-weight: 600; font-size: 15px; }
.m-ai-list span { font-size: 13.5px; line-height: 1.5; color: rgba(255, 255, 255, .72); }
.m-logos { display: flex; gap: 10px; flex-wrap: wrap; margin: 0 0 18px; }
.m-logo-chip { display: inline-flex; align-items: center; padding: 9px 16px 9px 12px; border-radius: 999px; font-weight: 600; font-size: 14px; }

/* soft skills */
.m-soft { padding: 10px 6px 24px; }
.m-soft h2 { margin: 0 0 14px; font-size: 22px; font-weight: 600; }

/* contact */
.m-contact { padding: 40px 36px; margin: 10px 0 30px; text-align: center; }
.m-contact h2 { margin: 0 auto 12px; max-width: 640px; font-size: clamp(28px, 4vw, 46px); line-height: 1.08; font-weight: 700; }
.m-contact > p { margin: 0 auto 26px; max-width: 520px; color: rgba(255, 255, 255, .78); font-size: 16px; line-height: 1.6; }
.m-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.m-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 22px; border-radius: 16px; border: 1px solid rgba(255, 255, 255, .22);
  color: #fff; text-decoration: none; font: 600 15px "Inter", sans-serif; cursor: pointer;
  transition: transform .2s, box-shadow .2s;
}
.m-btn:hover { transform: translateY(-2px); }
.m-btn:focus-visible { outline: 2px solid #2dd4bf; outline-offset: 2px; }
.m-btn.primary { background: var(--acc); color: var(--acc-ink); border-color: transparent; box-shadow: 0 14px 34px rgba(255, 184, 107, .28); }
.m-btn:focus-visible, .m-back:focus-visible { outline-color: var(--acc); }
.m-soft h2 { display: flex; align-items: center; }
.m-fine { margin: 22px auto 0 !important; font-size: 13.5px !important; color: rgba(255, 255, 255, .55) !important; }
.m-foot { padding: 10px 0 20px; text-align: center; font-size: 13px; color: rgba(255, 255, 255, .45); }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(26px); filter: blur(10px); transition: opacity .8s cubic-bezier(.2, .7, .2, 1) var(--d, 0s), transform .8s cubic-bezier(.2, .7, .2, 1) var(--d, 0s), filter .8s ease var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; filter: none; }

/* copy feedback */
.m-toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 40;
  padding: 12px 18px; border-radius: 14px;
  transform: translate(-50%, 20px); opacity: 0;
  transition: transform .3s, opacity .3s;
  font: 500 14px "Inter", sans-serif; color: #fff;
  pointer-events: none;
}
.m-toast.is-on { transform: translate(-50%, 0); opacity: 1; }

@media (max-width: 760px) {
  .m-nav { display: none; }
  .m-ai { grid-template-columns: 1fr; padding: 24px; }
  .m-contact { padding: 30px 20px; }
  .card { padding: 22px 20px; }
  .glass, .card { border-radius: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .m-bg .beam { animation: none; }
  .reveal { transition: none; opacity: 1; transform: none; filter: none; }
  .modern { scroll-behavior: auto; }
}
