@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  color-scheme: dark;
  --bg: #080a0d;
  --surface: #10151b;
  --surface-raised: #141c22;
  --line: #252f38;
  --text: #f4f6f8;
  --muted: #a0aab6;
  --subtle: #75818d;
  --accent: #b5f36a;
  --accent-soft: rgba(181, 243, 106, .1);
  --mono: "DM Mono", monospace;
  --sans: "Manrope", Arial, sans-serif;
  --content: 1280px;
  --gutter: clamp(20px, 4vw, 36px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  min-width: 320px;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(ellipse at 78% 8%, rgba(93, 128, 55, .1), transparent 30%),
    var(--bg);
  font-family: var(--sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; }
img, svg { max-width: 100%; }
::selection { color: #10130b; background: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
[ id ] { scroll-margin-top: 24px; }

/* Shared navigation */
.nav {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100%, var(--content));
  height: 82px;
  margin: 0 auto;
  padding: 0 var(--gutter);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.brand {
  flex: 0 0 auto;
  font-size: 27px;
  font-weight: 800;
  letter-spacing: -.08em;
}
.brand span { color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: clamp(14px, 2.2vw, 28px); }
.nav-links a {
  color: var(--muted);
  font-size: 12px;
  transition: color .2s ease;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--accent); }
.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  cursor: pointer;
}
.menu-toggle span {
  display: block;
  width: 19px;
  height: 2px;
  margin: 4px 0;
  border-radius: 2px;
  background: var(--text);
  transition: transform .2s ease, opacity .2s ease;
}
.menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-6px) rotate(-45deg); }
.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  transform: translateY(-160%);
  border-radius: 6px;
  color: #10130b;
  background: var(--accent);
  font-size: 12px;
  font-weight: 800;
}
.skip-link:focus { transform: translateY(0); }

/* Type and reusable elements */
.eyebrow {
  margin: 0 0 18px;
  color: var(--accent);
  font: 500 11px var(--mono);
  letter-spacing: .18em;
}
.eyebrow-divider { padding: 0 5px; color: #68717c; }
.page-lead, .lead { color: var(--muted); line-height: 1.9; }
.page-lead { max-width: 650px; margin: 0; font-size: 15px; }
.lead { max-width: 590px; font-size: 16px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 13px 20px;
  border: 1px solid transparent;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 700;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.button:hover { transform: translateY(-2px); }
.button.primary { color: #10130b; background: var(--accent); }
.button.primary:hover { background: #c8ff88; }
.button.ghost { border-color: var(--line); background: #0d1116; }
.button.ghost:hover { border-color: #566348; }

/* Home hero */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  align-items: center;
  gap: 50px;
  width: min(100%, var(--content));
  min-height: 690px;
  margin: 0 auto;
  padding: 100px var(--gutter) 86px;
}
.hero-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .2;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 70px 70px;
  mask-image: linear-gradient(to bottom, #000, transparent 85%);
}
.hero-content, .hero-card { position: relative; min-width: 0; }
.hero h1, .page-hero h1 {
  margin: 0 0 24px;
  font-size: clamp(48px, 6.5vw, 82px);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -.06em;
}
.hero h1 span, .page-hero h1 span, .overview-heading h2 span,
.home-contact h2 span, .skills-note h2 span, .education-feature h2 span,
.about-page-grid h2 span, .subpage-heading span { color: var(--accent); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 24px;
  margin-top: 48px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: #89939f;
  font: 10px var(--mono);
}
.hero-proof span:first-child { color: #d8e1d0; }
.hero-proof i, .tag i, .terminal-status i {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(181, 243, 106, .6);
}
.hero-proof i, .tag i { margin-right: 8px; }
.hero-card { display: flex; min-height: 370px; align-items: center; justify-content: center; }
.terminal-main {
  width: min(100%, 430px);
  padding: 0;
  overflow: hidden;
  border: 1px solid #303b45;
  border-radius: 12px;
  background: linear-gradient(145deg, #151c22, #0e1217);
  box-shadow: 0 30px 100px rgba(0, 0, 0, .5), 0 0 70px rgba(181, 243, 106, .05);
}
.terminal-head {
  display: flex;
  height: 48px;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
  color: #687581;
  font: 10px var(--mono);
}
.dots { display: flex; gap: 6px; margin: 0; }
.dots b { width: 7px; height: 7px; border-radius: 50%; background: #3b4048; }
.dots b:first-child { background: #e57d70; }
.dots b:nth-child(2) { background: #e7bd66; }
.dots b:nth-child(3) { background: #8acb70; }
.terminal-body { padding: 28px 25px 22px; color: #aab4bf; font: 12px/2 var(--mono); }
.terminal-body p { margin: 0; }
.terminal-body strong { color: #d6f5b0; font-weight: 500; }
.terminal-body .indent { padding-left: 24px; }
.muted { color: #656c78; }
.code-green { color: var(--accent); }
.terminal-divider { height: 1px; margin: 24px 0 18px; background: var(--line); }
.terminal-status { display: flex; align-items: center; gap: 10px; color: #9aa5ae; font-size: 10px; }
.terminal-status i { box-shadow: none; }
.floating-chip {
  position: absolute;
  padding: 11px 14px;
  border: 1px solid #303a42;
  border-radius: 8px;
  color: #c6d0d7;
  background: #12191e;
  box-shadow: 0 12px 30px #0008;
  font: 10px var(--mono);
}
.chip-one { top: 34px; right: -5px; }
.chip-two { bottom: 26px; left: -20px; }
.chip-icon { margin-right: 7px; color: var(--accent); font-size: 14px; }

/* Home overview and footer */
.home-overview {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 70px;
  max-width: 1210px;
  margin: 0 auto;
  padding: 75px var(--gutter) 100px;
  border-top: 1px solid var(--line);
}
.overview-heading h2, .home-contact h2, .skills-note h2,
.about-page-grid h2, .subpage-heading {
  margin: 0;
  font-size: clamp(38px, 5vw, 58px);
  line-height: 1.08;
  letter-spacing: -.055em;
}
.overview-links { border-top: 1px solid var(--line); }
.overview-links a {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 25px;
  align-items: center;
  gap: 14px;
  padding: 20px 4px;
  border-bottom: 1px solid var(--line);
  transition: padding .2s ease, color .2s ease;
}
.overview-links a:hover { padding-left: 12px; color: var(--accent); }
.overview-number, .skill-count { color: var(--accent); font: 11px var(--mono); }
.overview-links b { display: block; font-size: 14px; }
.overview-links small { display: block; margin-top: 4px; color: var(--muted); font-size: 11px; }
.overview-links i { color: var(--accent); font-size: 18px; font-style: normal; }
.home-contact {
  padding: 90px 24px 105px;
  border-top: 1px solid var(--line);
  background: radial-gradient(ellipse at 50% 100%, #28351e55, transparent 65%);
  text-align: center;
}
.home-contact h2 { margin-bottom: 28px; }
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  max-width: 1210px;
  margin: 0 auto;
  padding: 26px var(--gutter);
  border-top: 1px solid var(--line);
  color: var(--subtle);
  font: 10px var(--mono);
}
.footer-brand { font-size: 20px; }
.site-footer a:hover { color: var(--accent); }

/* Inner page headers and sections */
.page-hero {
  position: relative;
  max-width: var(--content);
  margin: 0 auto;
  padding: 105px var(--gutter) 55px;
}
.page-hero h1 { margin-bottom: 22px; }
.section {
  max-width: var(--content);
  margin: 0 auto;
  padding: 90px var(--gutter);
}
.page-section { padding-top: 45px; }
.page-section + .page-section { padding-top: 35px; }

/* Project cards */
.projects { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.project {
  display: flex;
  min-width: 0;
  min-height: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #29323b;
  border-radius: 13px;
  background: linear-gradient(160deg, #131920, #0e1217);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.project:hover { transform: translateY(-5px); border-color: #52634a; box-shadow: 0 22px 50px #0005; }
.project-featured { border-color: #4a5a3b; }
.project-visual {
  position: relative;
  display: flex;
  height: 205px;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.project-visual::before {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 32px 32px;
  content: "";
  mask-image: linear-gradient(to bottom, #000, transparent);
}
.visual-farlords { background: radial-gradient(ellipse at 50% 55%, #4a572c 0, #20291d 32%, #10161a 75%); }
.visual-soong { background: radial-gradient(ellipse at 50% 50%, #253e54 0, #14212d 43%, #10161b 78%); }
.visual-mines { background: radial-gradient(ellipse at 50% 50%, #31442c 0, #18251e 44%, #10161b 80%); }
.visual-roblox { background: radial-gradient(ellipse at 50% 50%, #393050 0, #211c30 45%, #10151c 80%); }
.visual-kicker { position: absolute; top: 18px; left: 20px; color: #a7b2ad; font: 9px var(--mono); letter-spacing: .16em; }
.visual-emblem, .visual-orbit {
  display: grid;
  width: 92px;
  height: 92px;
  place-items: center;
  border: 1px solid rgba(210, 235, 164, .45);
  border-radius: 50%;
  color: #e2f4c8;
  font: 800 42px var(--sans);
  letter-spacing: -.12em;
  text-shadow: 0 0 25px #b5f36a88;
  box-shadow: 0 0 50px #b5f36a18, inset 0 0 30px #b5f36a12;
}
.visual-orbit { border-color: #75b6d277; color: #c3e4fa; font-size: 44px; box-shadow: 0 0 55px #5ba7d52b, inset 0 0 30px #5ba7d51b; }
.visual-caption { position: relative; margin-top: 14px; color: #e4ebdf; font: 700 11px var(--mono); letter-spacing: .22em; }
.visual-soong .visual-caption { color: #c8e6fa; }
.visual-line { position: absolute; bottom: 25px; width: 65%; height: 1px; background: linear-gradient(90deg, transparent, #a7c77c88, transparent); }
.mini-dashboard {
  display: grid;
  width: 190px;
  height: 112px;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  padding: 13px;
  transform: perspective(500px) rotateX(8deg);
  border: 1px solid #819a7180;
  border-radius: 8px;
  background: #111a17dd;
  box-shadow: 0 15px 35px #0006;
}
.mini-dashboard span { height: 5px; border-radius: 5px; background: #52684a; }
.mini-dashboard b { grid-column: 1 / 4; margin: 4px 0; color: #c7e6ac; font: 8px var(--mono); }
.mini-dashboard i { height: 20px; border: 1px solid #52684a; border-radius: 4px; background: #263626; }
.visual-mines .visual-caption { position: absolute; right: 18px; bottom: 13px; color: #d3edc3; font-size: 9px; }
.flow-visual { display: flex; align-items: center; gap: 8px; }
.flow-visual b { padding: 10px 9px; border: 1px solid #766b9a; border-radius: 5px; color: #e1d9ff; background: #29243b; font: 8px var(--mono); }
.flow-visual i { color: #b9a8e6; font-style: normal; }
.visual-roblox .visual-caption { position: absolute; bottom: 15px; left: 20px; color: #d8d0f2; }
.project-content { display: flex; min-height: 260px; flex: 1; flex-direction: column; padding: 24px 26px 26px; }
.project-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 22px; color: #89939f; font: 9px var(--mono); letter-spacing: .08em; }
.tag { color: var(--accent); font-size: 9px; letter-spacing: .1em; white-space: nowrap; }
.tag-muted { color: #8b96a1; }
.project h3 { margin: 0 0 9px; font-size: 23px; letter-spacing: -.04em; }
.project p { color: #a4aeb8; font-size: 12px; line-height: 1.85; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; padding-top: 22px; }
.chips span { padding: 6px 8px; border: 1px solid #303a43; border-radius: 5px; color: #b9c3cc; background: #ffffff04; font: 9px var(--mono); }
.project a { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 22px; padding-top: 17px; border-top: 1px solid var(--line); font-size: 11px; }
.project a:hover { color: var(--accent); }
.project a b { font-size: 16px; }
.project-note { margin-top: 22px; color: #89939f; font: 10px var(--mono); }

/* Skills, education and about */
.skill-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); overflow: hidden; border: 1px solid var(--line); border-radius: 12px; }
.skill-grid > div { min-height: 150px; padding: 26px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: linear-gradient(145deg, #11171d, #0c1015); }
.skill-count { display: block; margin-bottom: 17px; font-size: 9px; }
.skill-grid h3 { margin: 0 0 7px; font-size: 15px; }
.skill-grid p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.8; }
.skills-note { margin-top: 55px; padding: 40px; border: 1px solid var(--line); border-radius: 12px; background: linear-gradient(140deg, #141b19, #0e1318); }
.skills-note h2 { font-size: clamp(32px, 4vw, 46px); }
.skills-note p { max-width: 650px; color: var(--muted); font-size: 13px; line-height: 1.9; }
.education-feature {
  display: flex;
  max-width: 900px;
  align-items: center;
  gap: 36px;
  padding: 42px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(140deg, #151e1a, #10151b);
}
.education-mark {
  display: grid;
  width: 100px;
  height: 100px;
  flex: 0 0 100px;
  place-items: center;
  border: 1px solid #728c58;
  border-radius: 16px;
  color: #e4f5d0;
  font: 800 25px var(--mono);
  box-shadow: inset 0 0 35px #b5f36a0b;
}
.education-mark span { color: var(--accent); }
.education-feature h2 { margin: 8px 0 12px; font-size: clamp(24px, 4vw, 38px); line-height: 1.2; letter-spacing: -.04em; }
.education-feature p, .education-context p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.9; }
.education-context { max-width: 700px; padding: 42px 0 10px; }
.education-context h3 { margin: 0 0 10px; font-size: 18px; }
.about-page-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 80px; }
.about-page-grid .about-copy p { margin-top: 0; margin-bottom: 22px; }
.about-copy p { color: var(--muted); font-size: 13px; line-height: 2; }
.subpage-heading { margin-bottom: 30px; }
.process-list { border-top: 1px solid var(--line); }
.process-list > div { display: grid; grid-template-columns: 70px 1fr 1.3fr; align-items: center; gap: 24px; padding: 23px 4px; border-bottom: 1px solid var(--line); }
.process-list span { color: var(--accent); font: 11px var(--mono); }
.process-list h3 { margin: 0; font-size: 16px; }
.process-list p { margin: 0; color: var(--muted); font-size: 12px; }

/* Contact */
.contact-panel { max-width: 650px; padding: 38px; border: 1px solid var(--line); border-radius: 12px; background: linear-gradient(145deg, #151d19, #10151b); }
.contact-panel h2 { margin: 5px 0; font-size: 34px; }
.contact-panel p, .contact-note { color: var(--muted); font-size: 13px; line-height: 1.9; }
.contact-note { margin-top: 24px; }

/* Responsive layout */
@media (max-width: 900px) {
  .menu-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: calc(100% + 1px);
    right: 0;
    left: 0;
    display: none;
    align-items: stretch;
    flex-direction: column;
    gap: 0;
    padding: 12px var(--gutter) 18px;
    border-bottom: 1px solid var(--line);
    background: #0d1217;
    box-shadow: 0 18px 35px #0008;
  }
  .nav-links.is-open { display: flex; }
  .nav-links a { display: block; padding: 13px 4px; border-bottom: 1px solid rgba(255,255,255,.06); font-size: 13px; }
  .hero { min-height: 0; grid-template-columns: 1fr; gap: 35px; padding-top: 75px; padding-bottom: 65px; }
  .hero-card { min-height: 310px; margin: 0 15px 10px; }
  .chip-one { right: -15px; }
  .chip-two { left: -15px; }
  .home-overview { grid-template-columns: 1fr; gap: 30px; padding-top: 65px; padding-bottom: 75px; }
  .page-hero { padding-top: 75px; padding-bottom: 35px; }
  .page-section { padding-top: 35px; }
  .about-page-grid { grid-template-columns: 1fr; gap: 25px; }
  .skill-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .process-list > div { grid-template-columns: 42px 1fr; gap: 10px 16px; }
  .process-list p { grid-column: 2; }
}
@media (max-width: 600px) {
  .nav { height: 70px; }
  .hero { padding: 62px 20px 50px; }
  .hero h1 { font-size: clamp(43px, 11vw, 56px); }
  .lead { font-size: 14px; }
  .hero-proof { flex-direction: column; gap: 10px; margin-top: 32px; }
  .hero-card { min-height: 270px; margin: 0 8px; }
  .terminal-body { padding: 22px 17px; font-size: 10px; }
  .floating-chip { padding: 9px 10px; font-size: 8px; }
  .chip-one { top: 15px; right: -13px; }
  .chip-two { bottom: 12px; left: -12px; }
  .page-hero { padding: 62px 20px 28px; }
  .page-hero h1 { font-size: clamp(42px, 11vw, 52px); }
  .page-lead { font-size: 13px; }
  .section { padding: 70px 20px; }
  .page-section { padding-top: 30px; }
  .projects, .skill-grid { grid-template-columns: 1fr; }
  .project-visual { height: 180px; }
  .project-content { min-height: 0; padding: 21px; }
  .skill-grid > div { min-height: 0; padding: 22px; }
  .skills-note, .contact-panel { padding: 25px; }
  .education-feature { align-items: flex-start; flex-direction: column; gap: 22px; padding: 24px; }
  .education-mark { width: 72px; height: 72px; flex-basis: 72px; }
  .education-feature h2 { overflow-wrap: anywhere; }
  .process-list > div { grid-template-columns: 32px minmax(0, 1fr); padding: 19px 0; }
  .home-contact { padding: 85px 20px; }
  .site-footer { align-items: flex-start; flex-direction: column; margin: 0 20px; padding: 22px 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
