:root {
  color-scheme: dark;
  --bg: #0a0b0a;
  --ink: #f2efe7;
  --muted: #8b9187;
  --green: #7ce3a3;
  --line: #20241f;
  --green-dim: rgba(124, 227, 163, 0.45);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  overscroll-behavior: none;
  scrollbar-width: none;
  background: var(--bg);
}

html::-webkit-scrollbar {
  display: none;
}

html:not(.ready) {
  overflow: hidden;
}

body {
  min-height: 100%;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: "Space Grotesk", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 1px solid var(--green);
  outline-offset: 3px;
}

#space {
  width: 1px;
  pointer-events: none;
}

#stage {
  position: fixed;
  inset: 0;
  z-index: 2;
}

#stage canvas {
  display: block;
  cursor: grab;
  touch-action: pan-y;
}

.vignette,
.grain,
.scrim {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.vignette {
  z-index: 7;
  background: radial-gradient(115% 92% at 50% 42%, transparent 52%, rgba(0, 0, 0, 0.66) 100%);
}

.grain {
  z-index: 7;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
}

.scrim {
  z-index: 4;
  top: auto;
  height: 46vh;
  display: none;
  background: linear-gradient(180deg, rgba(8, 9, 8, 0) 0%, rgba(8, 9, 8, 0.9) 78%);
}

#iris {
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 6;
  display: grid;
  place-items: center;
  width: 6px;
  height: 6px;
  border: 1px solid rgba(124, 227, 163, 0.55);
  border-radius: 50%;
  box-shadow:
    0 0 0 200vmax #0a0b0a,
    0 0 90px rgba(124, 227, 163, 0.1);
  pointer-events: none;
  transform: translate(-50%, -50%);
  will-change: width, height;
}

#irisText {
  color: #cdeed9;
  font: 600 11px "JetBrains Mono", monospace;
  letter-spacing: 0.32em;
  opacity: 0;
  text-indent: 0.32em;
  white-space: nowrap;
  transition: opacity 400ms ease;
}

#irisText.is-visible {
  opacity: 1;
}

#actA {
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 8;
  width: min(920px, 88vw);
  color: #8f968c;
  font: 500 clamp(18px, 2vw, 31px) / 1.85 "JetBrains Mono", monospace;
  letter-spacing: 0.1em;
  pointer-events: none;
  text-align: center;
  transform: translate(-50%, -50%);
  white-space: pre;
}

.intro-name {
  color: #e9e6dd;
  font-size: 1.15em;
  font-weight: 600;
  letter-spacing: 0.14em;
}

.cursor {
  display: inline-block;
  width: 0.52em;
  height: 1.08em;
  background: var(--green);
  vertical-align: -0.16em;
  animation: blink 1.1s steps(1) infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

#scrollCue {
  position: fixed;
  left: 50%;
  bottom: 5vh;
  z-index: 8;
  display: grid;
  justify-items: center;
  gap: 12px;
  color: #5f6b60;
  font: 600 9.5px "JetBrains Mono", monospace;
  letter-spacing: 0.34em;
  pointer-events: none;
  text-indent: 0.34em;
  transform: translateX(-50%);
}

#scrollCue i {
  position: relative;
  width: 1px;
  height: 46px;
  overflow: hidden;
  background: #20241f;
}

#scrollCue i::after {
  content: "";
  position: absolute;
  left: 0;
  top: -18px;
  width: 1px;
  height: 18px;
  background: linear-gradient(180deg, transparent, var(--green));
  animation: cue 1.5s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes cue {
  to {
    top: 46px;
  }
}

.topbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 26px;
  pointer-events: none;
  transition:
    opacity 700ms ease 250ms,
    transform 700ms ease 250ms,
    visibility 0s;
}

body:not(.intro-done) .topbar {
  opacity: 0;
  transform: translateY(-12px);
  visibility: hidden;
  transition:
    opacity 400ms ease,
    transform 400ms ease,
    visibility 0s 400ms;
}

.topbar > * {
  pointer-events: auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 13px;
  border: 0;
  background: none;
  cursor: pointer;
}

.brand-mark {
  display: block;
  width: 42px;
  height: 42px;
  overflow: hidden;
  border: 1px solid #2c2f2c;
  border-radius: 50%;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-name {
  color: #e9e6dd;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.panel-nav {
  position: absolute;
  left: 50%;
  top: 50%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(16, 18, 16, 0.55);
  backdrop-filter: blur(8px);
  transform: translate(-50%, -50%);
}

.nav-dot {
  width: 9px;
  height: 9px;
  border: 0;
  border-radius: 99px;
  background: #3c403c;
  cursor: pointer;
  transition: 350ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.nav-dot:hover {
  background: #6a716a;
}

.nav-dot.is-active {
  width: 30px;
  background: var(--green);
  box-shadow: 0 0 14px rgba(124, 227, 163, 0.55);
}

.terminal-button {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 16px;
  border: 1px solid var(--green-dim);
  border-radius: 10px;
  background: rgba(124, 227, 163, 0.05);
  color: #cdeed9;
  cursor: pointer;
  font: 600 11px "JetBrains Mono", monospace;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: 300ms ease;
}

.terminal-button:hover {
  background: rgba(124, 227, 163, 0.14);
  box-shadow: 0 0 26px rgba(124, 227, 163, 0.16);
  color: #eafff2;
}

.terminal-button svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

#content {
  position: fixed;
  inset: 0;
  z-index: 5;
  pointer-events: none;
}

#panelWrap {
  position: absolute;
  inset: 0;
}

.panel {
  position: absolute;
  left: 50%;
  top: 16vh;
  width: min(760px, 48vw);
  height: 72vh;
  opacity: 0;
  transform: translate(-50%, 30px);
  transition:
    opacity 500ms ease,
    transform 500ms cubic-bezier(0.2, 0.7, 0.2, 1),
    visibility 0s 500ms;
  visibility: hidden;
}

.panel.is-active {
  opacity: 1;
  transform: translate(-50%, 0);
  transition:
    opacity 650ms ease 120ms,
    transform 650ms cubic-bezier(0.2, 0.7, 0.2, 1) 120ms;
  visibility: visible;
}

.panel:not(.panel-wide) {
  text-align: center;
}

.panel:not(.panel-wide) .lead {
  margin-right: auto;
  margin-left: auto;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 450ms ease,
    transform 450ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.panel.is-active .reveal {
  opacity: 1;
  transform: none;
  transition-delay: calc(160ms + var(--d) * 80ms);
}

.kicker {
  margin-bottom: 24px;
  color: var(--green);
  font: 600 11px "JetBrains Mono", monospace;
  letter-spacing: 0.2em;
}

h1,
h2 {
  margin-bottom: 28px;
  color: #f4f1e8;
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 500;
  line-height: 0.98;
}

h1 {
  font-size: clamp(58px, 8.6vw, 132px);
}

h2 {
  font-size: clamp(36px, 4.4vw, 62px);
  line-height: 1.06;
}

.panel[data-section="About"] {
  top: 12vh;
  height: 78vh;
}

.panel[data-section="About"] h2 {
  margin-bottom: 22px;
  font-size: clamp(34px, 3.8vw, 56px);
}

.panel[data-section="About"] .lead {
  margin-bottom: 24px;
  font-size: clamp(14px, 0.95vw, 16px);
}

.panel[data-section="About"] .stats {
  margin-top: 22px;
}

.lead {
  max-width: 66ch;
  margin-bottom: 32px;
  color: rgba(237, 239, 231, 0.86);
  font-size: clamp(15px, 1.05vw, 18px);
  line-height: 1.55;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.65);
}

.tags,
.stats,
.socials,
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.tags span,
.socials button,
.socials a,
.actions a {
  padding: 11px 18px;
  border: 1px solid rgba(241, 238, 232, 0.28);
  border-radius: 999px;
  background: rgba(5, 8, 6, 0.58);
  color: #f0f3eb;
  font: 600 10.5px "JetBrains Mono", monospace;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: 300ms ease;
}

.socials button {
  cursor: pointer;
}

.tags span:hover,
.socials button:hover,
.socials a:hover,
.actions a:hover {
  border-color: var(--green);
  color: var(--green);
}

.stats {
  gap: 46px;
  margin-top: 36px;
}

.stats div {
  min-width: 126px;
  padding: 10px 12px;
  border: 1px solid rgba(241, 238, 232, 0.18);
  border-radius: 8px;
  background: rgba(5, 8, 6, 0.46);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}

.stats b {
  display: block;
  margin-bottom: 6px;
  color: #f4f1e8;
  font: 500 44px "Playfair Display", Georgia, serif;
}

.stats span,
.location {
  color: rgba(224, 230, 219, 0.76);
  font: 600 9.5px "JetBrains Mono", monospace;
  letter-spacing: 0.18em;
}

.actions {
  margin-top: 26px;
  pointer-events: auto;
}

.actions a:first-child {
  border-color: rgba(124, 227, 163, 0.48);
  background: rgba(124, 227, 163, 0.1);
}

.panel-scroll {
  overflow-y: auto;
  padding-right: 10px;
  scrollbar-width: thin;
  scrollbar-color: rgba(124, 227, 163, 0.35) transparent;
  pointer-events: auto;
}

.panel-scroll::-webkit-scrollbar {
  width: 6px;
}

.panel-scroll::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(124, 227, 163, 0.35);
}

.panel-wide {
  left: 50%;
  top: 11vh;
  width: min(1120px, 74vw);
  height: 80vh;
  transform: translate(-50%, 30px);
}

.panel-wide.is-active {
  transform: translate(-50%, 0);
}

.panel-projects {
  top: 8vh;
  height: 84vh;
  width: min(1380px, 88vw);
  overflow: visible;
  padding-right: 0;
}

.panel-projects h2 {
  margin-bottom: 18px;
  font-size: clamp(34px, 3.6vw, 54px);
  white-space: nowrap;
}

.panel-end {
  left: 50%;
  top: 13vh;
  width: min(780px, 64vw);
  height: auto;
  min-height: 48vh;
  text-align: center;
  transform: translate(-50%, 30px);
}

.panel-end.is-active {
  transform: translate(-50%, 0);
}

.panel-end .lead {
  margin-right: auto;
  margin-left: auto;
}

.work-row,
.path-row {
  display: flex;
  align-items: center;
  gap: 24px;
  width: 100%;
  padding: 21px 6px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: none;
  color: inherit;
  text-align: left;
  pointer-events: auto;
  transition: 300ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.project-card {
  position: relative;
  display: block;
  min-height: 0;
  margin-bottom: 0;
  padding: 10px;
  border: 1px solid rgba(241, 238, 232, 0.32);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.022)),
    rgba(0, 0, 0, 0.48);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 18px 48px rgba(0, 0, 0, 0.32);
  color: inherit;
  pointer-events: auto;
  transition:
    border-color 220ms ease,
    background 220ms ease,
    transform 220ms ease;
}

.project-layout {
  width: 100%;
  margin: 0 auto;
  overflow-x: auto;
  padding-bottom: 4px;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, auto));
  gap: 10px;
  min-width: 960px;
}

.coursera-projects {
  display: grid;
  gap: 10px;
  max-height: 63vh;
  overflow-y: auto;
  padding-right: 4px;
}

.coursera-projects::-webkit-scrollbar,
.project-grid::-webkit-scrollbar {
  width: 6px;
}

.coursera-projects::-webkit-scrollbar-thumb,
.project-grid::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(124, 227, 163, 0.32);
}

.project-card img {
  width: 100%;
  height: clamp(76px, 5.4vw, 96px);
  border: 1px solid rgba(241, 238, 232, 0.32);
  border-radius: 6px;
  object-fit: cover;
  object-position: top center;
  background: #111;
}

.coursera-card {
  min-height: 130px;
  background:
    radial-gradient(circle at 18px 18px, rgba(124, 227, 163, 0.28) 0 2px, transparent 3px),
    radial-gradient(circle at 42px 18px, rgba(241, 238, 232, 0.22) 0 2px, transparent 3px),
    linear-gradient(145deg, rgba(124, 227, 163, 0.07), rgba(255, 255, 255, 0.02)),
    rgba(0, 0, 0, 0.5);
}

.coursera-card span {
  padding-top: 26px;
}

.coursera-card-image {
  min-height: 0;
}

.coursera-card-image span {
  padding-top: 10px;
}

.coursera-card-image img {
  height: 118px;
  object-fit: cover;
}

.project-card em {
  position: absolute;
  right: 16px;
  top: 14px;
}

.project-card span {
  display: block;
  min-width: 0;
  padding: 9px 28px 0 2px;
}

.project-card p {
  margin-top: 6px;
  color: rgba(241, 238, 232, 0.68);
  font-size: 10.5px;
  line-height: 1.28;
}

.work-row {
  min-height: 82px;
}

.project-card:first-of-type,
.work-row:first-of-type,
.path-row:first-of-type {
  border-top: 1px solid var(--line);
}

.work-row {
  cursor: pointer;
}

.project-card:hover {
  border-color: rgba(124, 227, 163, 0.56);
  background:
    linear-gradient(145deg, rgba(124, 227, 163, 0.09), rgba(255, 255, 255, 0.03)),
    rgba(0, 0, 0, 0.42);
  transform: translateY(-3px);
}

.work-row:hover {
  padding-left: 18px;
  border-color: rgba(124, 227, 163, 0.5);
}

.project-card span,
.work-row span,
.path-row p {
  flex: 1;
}

.project-card b,
.work-row b,
.path-row b {
  display: block;
  margin-bottom: 5px;
  color: #f4f1e8;
  font: 500 clamp(14px, 1.05vw, 17px) "Playfair Display", Georgia, serif;
}

.project-card small,
.work-row small,
.path-row small {
  color: var(--muted);
  font: 600 8px "JetBrains Mono", monospace;
  letter-spacing: 0.1em;
}

.project-card em,
.work-row em,
.path-row > span {
  color: var(--green);
  font: normal 600 12px "JetBrains Mono", monospace;
  letter-spacing: 0.1em;
}

.panel-education {
  top: 10vh;
}

.education-list {
  counter-reset: education;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 20px;
}

.education-card {
  position: relative;
  overflow: hidden;
  counter-increment: education;
  min-height: 360px;
  padding: 76px 24px 24px;
  border: 1px solid rgba(241, 238, 232, 0.28);
  border-radius: 8px;
  background:
    radial-gradient(circle at 92% 16%, rgba(124, 227, 163, 0.22), transparent 28%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.085), rgba(255, 255, 255, 0.02)),
    rgba(0, 0, 0, 0.48);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 18px 42px rgba(0, 0, 0, 0.26);
}

.education-card::before {
  content: "0" counter(education);
  position: absolute;
  left: 22px;
  top: 18px;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(124, 227, 163, 0.52);
  border-radius: 50%;
  color: var(--green);
  font: 600 12px "JetBrains Mono", monospace;
  background: rgba(124, 227, 163, 0.08);
  box-shadow: 0 0 24px rgba(124, 227, 163, 0.12);
}

.education-card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--green), rgba(241, 238, 232, 0.12));
}

.education-card small {
  position: absolute;
  right: 18px;
  top: 22px;
  max-width: calc(100% - 90px);
  padding: 8px 10px;
  border: 1px solid rgba(241, 238, 232, 0.16);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.26);
  color: var(--green);
  font: 600 9px "JetBrains Mono", monospace;
  letter-spacing: 0.08em;
  text-align: right;
  text-transform: uppercase;
}

.education-card h3 {
  margin-top: 18px;
  color: #f4f1e8;
  font: 500 clamp(24px, 2.1vw, 34px) / 1.02 "Playfair Display", Georgia, serif;
}

.education-card b {
  display: block;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(241, 238, 232, 0.12);
  color: #cdeed9;
  font-size: 13px;
  line-height: 1.45;
}

.education-card p {
  margin-top: 20px;
  color: rgba(241, 238, 232, 0.66);
  font-size: 14px;
  line-height: 1.62;
}

.certificate-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
  margin: 0 auto;
}

.certificate-list a {
  display: grid;
  grid-template-rows: 136px auto auto;
  min-width: 0;
  min-height: 232px;
  padding: 13px;
  border: 1px solid rgba(241, 238, 232, 0.28);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02)),
    rgba(0, 0, 0, 0.46);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 18px 42px rgba(0, 0, 0, 0.26);
  transition:
    border-color 180ms ease,
    transform 180ms ease,
    background 180ms ease;
}

.certificate-list a:hover {
  border-color: rgba(124, 227, 163, 0.55);
  background: rgba(124, 227, 163, 0.06);
  transform: translateY(-2px);
}

.certificate-list span {
  display: block;
  min-height: 136px;
  margin-bottom: 10px;
  overflow: hidden;
  border: 1px solid rgba(241, 238, 232, 0.32);
  border-radius: 5px;
  color: var(--green);
  font: 600 13px "Playfair Display", Georgia, serif;
  background: #151815;
}

.certificate-list embed {
  width: 100%;
  height: 100%;
  border: 0;
  pointer-events: none;
}

.certificate-list b {
  color: #f4f1e8;
  font-size: 12px;
  line-height: 1.25;
}

.certificate-list small {
  align-self: end;
  margin-top: 8px;
  color: var(--muted);
  font: 600 9px "JetBrains Mono", monospace;
  letter-spacing: 0.1em;
}

.contact-stack {
  display: grid;
  gap: 10px;
  margin: 20px 0 24px;
  pointer-events: auto;
}

.contact-stack a {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  min-height: 58px;
  padding: 13px 0;
  border-top: 1px solid var(--line);
  transition:
    border-color 180ms ease,
    color 180ms ease,
    padding-left 180ms ease;
}

.contact-stack a:last-child {
  border-bottom: 1px solid var(--line);
}

.contact-stack a:hover {
  padding-left: 10px;
  border-color: rgba(124, 227, 163, 0.5);
  color: var(--green);
}

.contact-stack span {
  color: var(--muted);
  font: 700 10px "JetBrains Mono", monospace;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.contact-stack strong {
  min-width: 0;
  overflow-wrap: anywhere;
  color: #f4f1e8;
  font-size: clamp(15px, 1.5vw, 19px);
  font-weight: 600;
}

.panel[data-section="Skills"] {
  top: 7vh;
  width: min(1240px, 80vw);
  height: 78vh;
}

.panel[data-section="Skills"] h2 {
  margin-bottom: 8px;
  font-size: clamp(30px, 3.1vw, 46px);
  text-align: center;
}

.skill-showcase {
  display: grid;
  gap: 6px;
  max-height: none;
  padding: 0 6px;
  overflow: visible;
  scrollbar-width: thin;
  scrollbar-color: rgba(124, 227, 163, 0.35) transparent;
}

.skill-category {
  display: grid;
  gap: 5px;
  justify-items: center;
}

.skill-category h3 {
  margin: 0;
  color: #f4f1e8;
  font: 500 18px "Playfair Display", Georgia, serif;
}

.skill-tile-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0;
  max-width: 900px;
}

.skill-tile {
  display: grid;
  grid-template-rows: 44px auto;
  place-items: center;
  width: 96px;
  min-height: 82px;
  padding: 7px 5px;
  border: 1px solid rgba(241, 238, 232, 0.24);
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.078), rgba(255, 255, 255, 0.024)),
    rgba(4, 7, 5, 0.58);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 14px 32px rgba(0, 0, 0, 0.22);
}

.skill-icon {
  display: block;
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 13px;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.4), transparent 38%),
    rgba(124, 227, 163, 0.14);
  padding: 5px;
  color: var(--green);
  filter: drop-shadow(0 0 12px rgba(124, 227, 163, 0.24));
}

svg.skill-icon {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3;
}

.skill-icon-invert {
  filter:
    invert(1)
    drop-shadow(0 0 12px rgba(124, 227, 163, 0.24));
}

.aws-icon {
  background: rgba(255, 255, 255, 0.92);
  filter: drop-shadow(0 0 12px rgba(124, 227, 163, 0.18));
}

.flag-icon {
  padding: 5px;
  border-radius: 999px;
}

.skill-tile b {
  color: rgba(246, 244, 237, 0.92);
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1.22;
}

.skill-tile small {
  margin-top: -4px;
  color: rgba(224, 230, 219, 0.7);
  font: 600 10px "JetBrains Mono", monospace;
}

.language-grid .skill-tile {
  min-height: 86px;
}

.frontend-grid {
  flex-wrap: nowrap;
  max-width: none;
  width: min(100%, 1080px);
}

.frontend-grid .skill-tile {
  width: 10%;
  min-width: 0;
  padding-right: 3px;
  padding-left: 3px;
}

.mail {
  display: inline-flex;
  margin: 4px 0 36px;
  padding-bottom: 9px;
  border-bottom: 1px solid #3a3f3a;
  color: #f4f1e8;
  font: 500 clamp(26px, 3.2vw, 44px) "Playfair Display", Georgia, serif;
  pointer-events: auto;
  transition: 300ms ease;
}

.mail:hover {
  border-color: var(--green);
  color: var(--green);
}

#hint {
  position: fixed;
  left: 26px;
  bottom: 22px;
  z-index: 6;
  color: rgba(198, 210, 194, 0.72);
  font: 600 9.5px "JetBrains Mono", monospace;
  letter-spacing: 0.16em;
  opacity: 0;
  pointer-events: none;
  transition: opacity 900ms ease 400ms;
}

body.ready-state.intro-done #hint {
  opacity: 1;
}

#toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 40;
  max-width: 88vw;
  padding: 13px 20px;
  border: 1px solid var(--green-dim);
  border-radius: 10px;
  background: #10140f;
  color: #d9efe1;
  font: 600 11px "JetBrains Mono", monospace;
  letter-spacing: 0.08em;
  opacity: 0;
  pointer-events: none;
  text-align: center;
  transform: translate(-50%, 18px);
  transition: 350ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

#toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

#loader {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  background: var(--bg);
  transition:
    opacity 700ms ease 150ms,
    visibility 0s 900ms;
}

#loader.is-done {
  opacity: 0;
  visibility: hidden;
}

.loader-inner {
  display: grid;
  justify-items: center;
  gap: 20px;
  width: min(320px, 80vw);
}

.loader-name {
  color: #e9e6dd;
  font: 700 12px "Space Grotesk", sans-serif;
  letter-spacing: 0.34em;
}

.loader-bar {
  position: relative;
  display: block;
  width: 100%;
  height: 1px;
  background: #1d211d;
}

.loader-bar i {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  background: var(--green);
  box-shadow: 0 0 14px rgba(124, 227, 163, 0.7);
}

.loader-status {
  color: #5f6b60;
  font: 600 9.5px "JetBrains Mono", monospace;
  letter-spacing: 0.22em;
}

.noscript {
  position: fixed;
  inset: 0;
  z-index: 99;
  display: grid;
  place-items: center;
  background: var(--bg);
  color: var(--ink);
}

@media (max-width: 900px), (max-aspect-ratio: 0.95) {
  .topbar {
    padding: 15px 16px;
  }

  .brand-name,
  .terminal-button span {
    display: none;
  }

  .terminal-button {
    padding: 11px 13px;
  }

  .panel-nav {
    gap: 8px;
    padding: 9px 13px;
  }

  .scrim {
    display: block;
  }

  #panelWrap {
    inset: 0;
  }

  .panel {
    left: 6vw;
    right: 6vw;
    top: auto;
    bottom: 0;
    width: auto;
    height: 62vh;
    transform: translateY(30px);
  }

  .panel.is-active {
    transform: none;
  }

  .panel-wide {
    left: 6vw;
    right: 6vw;
    top: 14vh;
    bottom: auto;
    width: auto;
    height: 78vh;
    transform: translateY(30px);
  }

  .panel-wide.is-active {
    transform: none;
  }

  .panel-projects {
    top: 12vh;
    height: 78vh;
  }

  .panel-projects h2 {
    white-space: normal;
  }

  .panel[data-section="Skills"] {
    left: 6vw;
    right: 6vw;
    top: 8vh;
    width: auto;
    height: 78vh;
  }

  .skill-showcase {
    max-height: 56vh;
    overflow-y: auto;
  }

  .skill-tile {
    width: 112px;
    min-height: 98px;
  }

  .frontend-grid {
    flex-wrap: wrap;
  }

  .panel-end {
    left: 6vw;
    right: 6vw;
    top: 12vh;
    bottom: auto;
    width: auto;
    min-height: 44vh;
    transform: translateY(30px);
  }

  .panel-end.is-active {
    transform: none;
  }

  h1 {
    font-size: clamp(46px, 13vw, 84px);
  }

  .lead {
    font-size: 16px;
  }

  .stats {
    gap: 26px;
  }

  .stats b {
    font-size: 34px;
  }

  .certificate-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-height: 34vh;
    overflow-y: auto;
  }

  .project-layout {
    max-height: 54vh;
    overflow: auto;
    padding-right: 4px;
  }

  .project-grid {
    grid-template-columns: repeat(5, minmax(150px, 1fr));
    grid-template-rows: repeat(2, minmax(0, auto));
    min-width: 790px;
    max-height: none;
    overflow: visible;
    padding-right: 0;
  }

  .education-list {
    grid-template-columns: 1fr;
    max-height: 48vh;
    overflow-y: auto;
    padding-right: 4px;
  }

  .education-card {
    min-height: 0;
    padding: 18px;
  }

  .project-card {
    padding: 10px;
  }

  .project-card img {
    height: 96px;
  }

  .contact-stack {
    max-height: 34vh;
    overflow-y: auto;
  }

  .contact-stack a {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  #hint {
    display: none;
  }

  #actA {
    width: 88vw;
    font-size: clamp(14px, 4.2vw, 20px);
    line-height: 1.75;
    white-space: pre-wrap;
  }
}

@media (max-width: 560px) {
  .panel-nav {
    left: 49%;
    max-width: 44vw;
  }

  .nav-dot {
    width: 8px;
    height: 8px;
  }

  .nav-dot.is-active {
    width: 22px;
  }

  .certificate-list {
    grid-template-columns: 1fr;
  }

  .skill-tile {
    width: 104px;
    min-height: 106px;
    padding: 11px 8px 10px;
  }

  .skill-tile b {
    font-size: 12px;
  }

  h2 {
    font-size: clamp(32px, 10vw, 46px);
  }

  .work-row b,
  .project-card b,
  .path-row b {
    font-size: 22px;
  }

  .path-row {
    align-items: flex-start;
    gap: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
