:root {
  --bg: #07090d;
  --bg-soft: #0d1118;
  --panel: #111722;
  --panel-2: #151d2a;
  --text: #f5f7fb;
  --muted: #aab3c3;
  --ink: #11141a;
  --ink-muted: #4d5665;
  --line: rgba(255, 255, 255, 0.12);
  --line-dark: rgba(17, 20, 26, 0.12);
  --accent: #76d8ff;
  --accent-2: #9f86ff;
  --accent-3: #59f0c7;
  --white: #ffffff;
  --max-width: 1180px;
  --radius: 22px;
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.28);
  --font-display: "Arial Narrow", "Roboto Condensed", Impact, sans-serif;
  --font-body: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: var(--font-body);
  line-height: 1.65;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

img,
svg {
  max-width: 100%;
}

code {
  font-size: 0.9em;
}

.container {
  width: min(var(--max-width), calc(100% - 40px));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 9999;
  padding: 10px 14px;
  border-radius: 8px;
  color: var(--ink);
  background: var(--white);
  transform: translateY(-160%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  border-bottom: 1px solid transparent;
  transition: background 220ms ease, border-color 220ms ease, backdrop-filter 220ms ease;
}

.site-header.scrolled {
  background: rgba(7, 9, 13, 0.84);
  border-color: var(--line);
  backdrop-filter: blur(16px);
}

.navbar {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 9px;
  text-decoration: none;
  letter-spacing: 0.03em;
}

.brand-name {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  font-weight: 900;
  letter-spacing: 0.035em;
}

.brand-role {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-menu a,
.text-button {
  position: relative;
  color: #e7ebf2;
  background: none;
  border: 0;
  padding: 8px 0;
  text-decoration: none;
  font-size: 0.88rem;
  cursor: pointer;
}

.nav-menu a::after,
.text-button::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 2px;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.nav-menu a:hover::after,
.nav-menu a.active::after,
.text-button:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: var(--white);
  transition: transform 180ms ease, opacity 180ms ease;
}

.hero {
  position: relative;
  min-height: 760px;
  display: grid;
  place-items: center;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 68%, rgba(91, 137, 255, 0.28), transparent 34%),
    radial-gradient(circle at 50% 35%, rgba(118, 216, 255, 0.09), transparent 42%),
    linear-gradient(180deg, #050609 0%, #07090d 48%, #0a0e16 100%);
}

.hero-grid {
  position: absolute;
  inset: 0;
  z-index: -4;
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(118, 216, 255, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(118, 216, 255, 0.12) 1px, transparent 1px);
  background-size: 70px 70px;
  mask-image: linear-gradient(to bottom, transparent 0%, black 30%, black 70%, transparent 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -3;
  background:
    linear-gradient(115deg, transparent 46%, rgba(118, 216, 255, 0.07) 48%, transparent 50%),
    linear-gradient(65deg, transparent 44%, rgba(159, 134, 255, 0.07) 46%, transparent 48%);
  background-size: 260px 260px;
  opacity: 0.45;
}

.hero-content {
  position: relative;
  z-index: 4;
  text-align: center;
  padding: 160px 0 230px;
}

.eyebrow,
.section-kicker,
.project-tag,
.resume-label,
.visual-label {
  margin: 0;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 18px auto 22px;
  max-width: 1000px;
  font-family: var(--font-display);
  font-size: clamp(3.1rem, 8vw, 7.2rem);
  font-weight: 900;
  line-height: 0.92;
  letter-spacing: -0.025em;
  text-transform: uppercase;
}

.hero h1 span {
  display: block;
  font-size: clamp(1.7rem, 6vw, 4.6rem);
  white-space: nowrap;
  color: transparent;
  background: linear-gradient(90deg, #fff 0%, #a8e6ff 48%, #b8a7ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.hero-summary {
  max-width: 800px;
  margin: 0 auto;
  color: #c6ceda;
  font-size: clamp(1rem, 2vw, 1.2rem);
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: #071018;
  background: linear-gradient(100deg, var(--accent), #b0c8ff);
  box-shadow: 0 10px 30px rgba(118, 216, 255, 0.18);
}

.button-secondary {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.05);
}

.button-secondary:hover {
  border-color: var(--accent);
}

.horizon {
  position: absolute;
  inset: auto 0 0;
  height: 285px;
  z-index: 1;
  pointer-events: none;
}

.horizon-glow {
  position: absolute;
  left: 50%;
  top: 18px;
  width: 145%;
  height: 220px;
  border-radius: 50% 50% 0 0;
  background:
    radial-gradient(ellipse at center top, rgba(160, 186, 255, 0.9) 0%, rgba(102, 126, 206, 0.42) 25%, rgba(27, 35, 63, 0.08) 63%, transparent 71%);
  transform: translateX(-50%);
  filter: blur(2px);
}

.horizon-surface {
  position: absolute;
  left: 50%;
  top: 72px;
  width: 130%;
  height: 360px;
  border-radius: 50% 50% 0 0;
  transform: translateX(-50%);
  background:
    radial-gradient(circle at 22% 23%, rgba(255, 255, 255, 0.18) 0 1px, transparent 2px),
    radial-gradient(circle at 67% 18%, rgba(255, 255, 255, 0.14) 0 1px, transparent 2px),
    radial-gradient(circle at 48% 35%, rgba(255, 255, 255, 0.12) 0 1px, transparent 2px),
    linear-gradient(180deg, #5d6997 0%, #34405e 31%, #151d2b 75%, #0a0d13 100%);
  background-size: 34px 34px, 47px 47px, 61px 61px, auto;
  box-shadow: inset 0 16px 35px rgba(181, 203, 255, 0.25);
}

.orbit {
  position: absolute;
  border: 1px solid rgba(118, 216, 255, 0.16);
  border-radius: 50%;
  pointer-events: none;
}

.orbit-one {
  width: 530px;
  height: 530px;
  top: 70px;
  right: -240px;
}

.orbit-two {
  width: 330px;
  height: 330px;
  left: -150px;
  top: 210px;
  border-color: rgba(159, 134, 255, 0.18);
}

.intro-band {
  color: var(--ink);
  background: var(--white);
  border-bottom: 1px solid var(--line-dark);
}

.intro-band-content {
  display: grid;
  gap: 22px;
  padding: 74px 0;
  text-align: center;
}

.intro-band p {
  max-width: 980px;
  margin: 0 auto;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.4vw, 2rem);
  font-weight: 800;
  line-height: 1.35;
  text-transform: uppercase;
}

.intro-band strong {
  color: #385ac9;
}

.section {
  padding: 112px 0;
}

.about-section,
.projects-section,
.resume-section {
  color: var(--ink);
  background: #f5f7fb;
}

.experience-section,
.skills-section,
.contact-section {
  background: var(--bg);
}

.section-heading {
  max-width: 780px;
  margin-bottom: 50px;
}

.section-heading h2,
.contact-copy h2 {
  margin: 12px 0 0;
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5vw, 4.8rem);
  line-height: 1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.about-section .section-kicker,
.projects-section .section-kicker,
.resume-section .section-kicker {
  color: #3b5cc8;
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(300px, 0.75fr);
  gap: 36px;
  align-items: start;
}

.about-copy {
  max-width: 760px;
  color: var(--ink-muted);
  font-size: 1.08rem;
}

.about-copy p:first-child {
  margin-top: 0;
}

.profile-card {
  padding: 28px;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 18px 50px rgba(19, 25, 38, 0.08);
}

.profile-monogram {
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  margin-bottom: 24px;
  border-radius: 22px;
  color: #071018;
  background: linear-gradient(135deg, var(--accent), #c2b7ff);
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 900;
}

.profile-card dl {
  margin: 0;
}

.profile-card dl > div {
  padding: 14px 0;
  border-top: 1px solid var(--line-dark);
}

.profile-card dt {
  color: #6b7481;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.profile-card dd {
  margin: 4px 0 0;
  font-weight: 700;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 56px;
}

.metrics article {
  min-height: 160px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  border: 1px solid var(--line-dark);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.7);
}

.metrics strong {
  font-family: var(--font-display);
  font-size: 3.6rem;
  line-height: 1;
}

.metrics span {
  margin-top: 8px;
  color: var(--ink-muted);
  font-size: 0.88rem;
}

.experience-section .section-heading h2,
.skills-section .section-heading h2,
.contact-copy h2 {
  color: var(--white);
}

.timeline {
  position: relative;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 220px;
  top: 10px;
  bottom: 10px;
  width: 1px;
  background: linear-gradient(var(--accent), rgba(255, 255, 255, 0.08));
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 64px;
  padding: 0 0 64px;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-marker {
  position: absolute;
  left: 214px;
  top: 7px;
  width: 13px;
  height: 13px;
  border: 3px solid var(--bg);
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 1px rgba(118, 216, 255, 0.5), 0 0 28px rgba(118, 216, 255, 0.42);
}

.timeline-meta p {
  margin: 0;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.timeline-meta span {
  color: var(--muted);
  font-size: 0.82rem;
}

.timeline-content {
  padding: 0 0 34px;
  border-bottom: 1px solid var(--line);
}

.timeline-content h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 2rem;
  line-height: 1.1;
  text-transform: uppercase;
}

.timeline-content h4 {
  margin: 8px 0 18px;
  color: #b8c1cf;
  font-size: 1rem;
  font-weight: 700;
}

.timeline-content ul,
.project-details {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
}

.timeline-content li + li,
.project-details li + li {
  margin-top: 7px;
}

.split-heading {
  max-width: none;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
}

.split-heading > div:first-child {
  max-width: 760px;
}

.project-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.filter-button {
  padding: 9px 14px;
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  color: var(--ink);
  background: transparent;
  font-size: 0.8rem;
  font-weight: 800;
  cursor: pointer;
  transition: color 160ms ease, background 160ms ease, border-color 160ms ease;
}

.filter-button:hover,
.filter-button.active {
  color: var(--white);
  border-color: #243f9d;
  background: #243f9d;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.project-card {
  overflow: hidden;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 18px 50px rgba(20, 29, 48, 0.07);
  transition: transform 220ms ease, box-shadow 220ms ease, opacity 180ms ease;
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 70px rgba(20, 29, 48, 0.13);
}

.project-card.hidden {
  display: none;
}

.project-visual {
  position: relative;
  min-height: 230px;
  overflow: hidden;
  display: grid;
  place-items: center;
  color: var(--white);
  background:
    radial-gradient(circle at 20% 20%, rgba(118, 216, 255, 0.2), transparent 34%),
    linear-gradient(135deg, #0c1220, #18233b 58%, #121624);
}

.visual-label {
  position: absolute;
  top: 18px;
  left: 20px;
  color: rgba(255, 255, 255, 0.68);
}

.project-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.project-body {
  padding: 28px;
}

.project-body h3 {
  margin: 10px 0 12px;
  font-family: var(--font-display);
  font-size: 1.85rem;
  line-height: 1.05;
  text-transform: uppercase;
}

.project-body > p:not(.project-tag) {
  color: var(--ink-muted);
}

.project-details {
  color: #596273;
  font-size: 0.92rem;
}

.one-line-symbols {
  width: 82%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.one-line-symbols span {
  display: grid;
  place-items: center;
  min-width: 58px;
  height: 58px;
  padding: 8px;
  border: 1px solid rgba(118, 216, 255, 0.55);
  border-radius: 12px;
  font-size: 0.68rem;
  font-weight: 800;
}

.one-line-symbols i {
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 15px rgba(118, 216, 255, 0.6);
}

.pcb-board {
  position: relative;
  width: 72%;
  height: 145px;
  border: 2px solid rgba(89, 240, 199, 0.55);
  border-radius: 18px;
  background:
    radial-gradient(circle, rgba(89, 240, 199, 0.35) 0 2px, transparent 3px) 0 0 / 22px 22px,
    rgba(4, 40, 36, 0.45);
}

.chip {
  position: absolute;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 7px;
  color: #071018;
  background: #8ef4d5;
  font-size: 0.63rem;
  font-weight: 900;
}

.chip-main {
  width: 72px;
  height: 48px;
  top: 48px;
  left: 50%;
  transform: translateX(-50%);
}

.chip-one {
  width: 46px;
  height: 34px;
  top: 22px;
  left: 20px;
}

.chip-two {
  width: 52px;
  height: 36px;
  right: 18px;
  bottom: 18px;
}

.trace {
  position: absolute;
  display: block;
  height: 2px;
  background: #8ef4d5;
}

.trace-one {
  width: 90px;
  top: 40px;
  left: 56px;
  transform: rotate(22deg);
}

.trace-two {
  width: 100px;
  right: 48px;
  bottom: 54px;
  transform: rotate(-18deg);
}

.trace-three {
  width: 76px;
  left: 38px;
  bottom: 32px;
}

.waveform {
  width: 74%;
  height: 92px;
  background:
    radial-gradient(ellipse at center, transparent 47%, var(--accent) 49% 51%, transparent 53%) 0 0 / 80px 92px repeat-x;
  filter: drop-shadow(0 0 8px rgba(118, 216, 255, 0.55));
}

.meter-readout {
  position: absolute;
  bottom: 28px;
  padding: 10px 18px;
  border: 1px solid rgba(118, 216, 255, 0.42);
  border-radius: 9px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.logic-row {
  display: flex;
  align-items: center;
  gap: 18px;
}

.logic-row span,
.logic-row strong {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border: 1px solid rgba(159, 134, 255, 0.6);
  border-radius: 13px;
  font-size: 1rem;
}

.logic-row strong {
  color: var(--accent-2);
  font-size: 1.6rem;
}

.binary-display {
  position: absolute;
  bottom: 26px;
  letter-spacing: 0.55em;
  color: #cbc3ff;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.rf-line {
  position: relative;
  width: 78%;
  height: 46px;
  border-top: 3px solid #f8c15c;
  border-bottom: 3px solid #f8c15c;
}

.rf-line::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 6px;
  background: #f8c15c;
  transform: translateY(-50%);
  box-shadow: 0 0 24px rgba(248, 193, 92, 0.5);
}

.rf-line span {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  padding: 6px 10px;
  border-radius: 6px;
  color: #19140b;
  background: #f8c15c;
  font-size: 0.76rem;
  font-weight: 900;
  transform: translate(-50%, -50%);
}

.rf-band {
  position: absolute;
  bottom: 24px;
  color: #f8d58e;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
}

.signal-rings {
  position: relative;
  width: 145px;
  height: 145px;
  border: 1px solid rgba(118, 216, 255, 0.38);
  border-radius: 50%;
}

.signal-rings::before,
.signal-rings::after {
  content: "";
  position: absolute;
  inset: 20px;
  border: 1px solid rgba(118, 216, 255, 0.48);
  border-radius: 50%;
}

.signal-rings::after {
  inset: 42px;
  border-color: rgba(159, 134, 255, 0.75);
}

.iot-node {
  position: absolute;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  color: #071018;
  background: var(--accent);
  font-size: 0.7rem;
  font-weight: 900;
  box-shadow: 0 0 34px rgba(118, 216, 255, 0.5);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.skill-panel {
  position: relative;
  min-height: 360px;
  padding: 32px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent),
    var(--panel);
}

.skill-panel::after {
  content: "";
  position: absolute;
  right: -45px;
  bottom: -55px;
  width: 180px;
  height: 180px;
  border: 1px solid rgba(118, 216, 255, 0.1);
  border-radius: 50%;
}

.skill-number {
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 900;
}

.skill-panel h3 {
  margin: 16px 0 28px;
  font-family: var(--font-display);
  font-size: 2rem;
  line-height: 1.05;
  text-transform: uppercase;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.skill-tags span {
  padding: 8px 11px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  color: #cbd3df;
  background: rgba(255, 255, 255, 0.035);
  font-size: 0.78rem;
}

.resume-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.78fr);
  gap: 60px;
  align-items: start;
}

.resume-card {
  padding: 34px;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 18px 55px rgba(20, 29, 48, 0.08);
}

.resume-card > div + div {
  margin-top: 30px;
  padding-top: 30px;
  border-top: 1px solid var(--line-dark);
}

.resume-card h3 {
  margin: 6px 0;
  font-family: var(--font-display);
  font-size: 1.65rem;
  text-transform: uppercase;
}

.resume-card p:not(.resume-label) {
  margin: 6px 0;
  color: var(--ink-muted);
}

.resume-card .button {
  margin-top: 30px;
}

.contact-section {
  position: relative;
  overflow: hidden;
}

.contact-section::before {
  content: "";
  position: absolute;
  width: 600px;
  height: 600px;
  right: -300px;
  top: -260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(118, 216, 255, 0.13), transparent 68%);
}

.contact-layout {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, 0.8fr);
  gap: 64px;
  align-items: start;
}

.contact-copy p:not(.section-kicker) {
  max-width: 680px;
  color: var(--muted);
  font-size: 1.08rem;
}

.contact-card {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(10px);
}

.contact-item + .contact-item {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.contact-item > span {
  display: block;
  margin-bottom: 5px;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.contact-item a {
  color: var(--white);
  font-size: 1.06rem;
  font-weight: 700;
  text-decoration-color: rgba(118, 216, 255, 0.45);
  text-underline-offset: 4px;
}

.contact-item p {
  margin: 0;
}

.contact-item small {
  display: block;
  margin-top: 6px;
  color: #7f8998;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #050609;
}

.footer-content {
  min-height: 94px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: #8e98a8;
  font-size: 0.82rem;
}

.footer-content a {
  color: #c5cedb;
  text-decoration: none;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 620ms ease, transform 620ms ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .brand-role {
    display: none;
  }

  .nav-toggle {
    display: block;
    z-index: 1002;
  }

  .nav-menu {
    position: fixed;
    inset: 0;
    z-index: 1001;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 26px;
    padding: 90px 30px 40px;
    background: rgba(7, 9, 13, 0.97);
    transform: translateX(100%);
    transition: transform 240ms ease;
  }

  .nav-menu.open {
    transform: translateX(0);
  }

  .nav-menu a,
  .text-button {
    font-size: 1.45rem;
    font-family: var(--font-display);
    text-transform: uppercase;
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  .about-layout,
  .resume-layout,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .profile-card {
    max-width: 520px;
  }

  .metrics {
    grid-template-columns: repeat(2, 1fr);
  }

  .timeline::before {
    left: 18px;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 12px;
    padding-left: 54px;
  }

  .timeline-marker {
    left: 12px;
  }

  .project-grid,
  .skills-grid {
    grid-template-columns: 1fr 1fr;
  }

  .split-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .project-filters {
    justify-content: flex-start;
  }
}

@media (max-width: 680px) {
  .container {
    width: min(100% - 28px, var(--max-width));
  }

  .navbar {
    min-height: 70px;
  }

  .hero {
    min-height: 700px;
  }

  .hero-content {
    padding: 130px 0 225px;
  }

  .hero h1 {
    font-size: clamp(3rem, 15vw, 5.2rem);
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    width: min(100%, 330px);
    margin-inline: auto;
  }

  .horizon {
    height: 235px;
  }

  .horizon-surface {
    top: 84px;
    width: 170%;
  }

  .section {
    padding: 82px 0;
  }

  .intro-band-content {
    padding: 56px 0;
  }

  .metrics,
  .project-grid,
  .skills-grid {
    grid-template-columns: 1fr;
  }

  .metrics article {
    min-height: 130px;
  }

  .project-visual {
    min-height: 205px;
  }

  .one-line-symbols {
    width: 90%;
    gap: 6px;
  }

  .one-line-symbols span {
    min-width: 46px;
    height: 48px;
    padding: 4px;
    font-size: 0.57rem;
  }

  .timeline-item {
    padding-left: 42px;
  }

  .timeline::before {
    left: 11px;
  }

  .timeline-marker {
    left: 5px;
  }

  .footer-content {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding: 24px 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media print {
  .site-header,
  .hero-actions,
  .project-filters,
  .site-footer,
  .resume-print {
    display: none !important;
  }

  body {
    color: #111;
    background: #fff;
  }

  .hero {
    min-height: auto;
    color: #111;
    background: #fff;
  }

  .hero-content {
    padding: 40px 0;
  }

  .hero h1 span,
  .eyebrow {
    color: #111;
    -webkit-text-fill-color: #111;
  }

  .hero-summary {
    color: #333;
  }

  .horizon,
  .hero-grid,
  .orbit {
    display: none;
  }

  .section,
  .intro-band-content {
    padding: 34px 0;
  }

  .experience-section,
  .skills-section,
  .contact-section {
    color: #111;
    background: #fff;
  }

  .experience-section .section-heading h2,
  .skills-section .section-heading h2,
  .contact-copy h2,
  .timeline-content h3,
  .skill-panel h3 {
    color: #111;
  }

  .timeline-content ul,
  .contact-copy p:not(.section-kicker),
  .timeline-meta span {
    color: #333;
  }

  .timeline::before,
  .timeline-marker {
    display: none;
  }

  .timeline-item {
    grid-template-columns: 150px 1fr;
    gap: 24px;
  }

  .project-card,
  .skill-panel,
  .contact-card,
  .resume-card,
  .profile-card {
    break-inside: avoid;
    color: #111;
    background: #fff;
    box-shadow: none;
  }

  .project-grid,
  .skills-grid {
    grid-template-columns: 1fr 1fr;
  }

  .contact-item a,
  .contact-item p {
    color: #111;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* Smart mirror project visual */
.mirror-visual {
  background:
    radial-gradient(circle at 50% 42%, rgba(118, 216, 255, 0.22), transparent 34%),
    linear-gradient(135deg, #090d16, #172238 60%, #1a1730);
}

.mirror-frame {
  position: relative;
  width: 150px;
  height: 170px;
  display: grid;
  place-items: center;
  border: 5px solid rgba(211, 226, 255, 0.8);
  border-radius: 42% 42% 16px 16px;
  background: linear-gradient(145deg, rgba(255,255,255,0.12), rgba(118,216,255,0.04));
  box-shadow: 0 0 42px rgba(118, 216, 255, 0.2), inset 0 0 24px rgba(255,255,255,0.08);
}

.mirror-face {
  position: relative;
  width: 70px;
  height: 92px;
  border: 1px solid rgba(118, 216, 255, 0.65);
  border-radius: 46% 46% 42% 42%;
}

.face-point {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 9px rgba(118, 216, 255, 0.9);
}

.point-one { left: 17px; top: 27px; }
.point-two { right: 17px; top: 27px; }
.point-three { left: 50%; top: 47px; transform: translateX(-50%); }
.point-four { left: 22px; bottom: 19px; }
.point-five { right: 22px; bottom: 19px; }

.mirror-caption {
  position: absolute;
  bottom: 10px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.16em;
}

/* Product / app portfolio visuals */
.learnwell-visual {
  background:
    radial-gradient(circle at 76% 24%, rgba(89, 240, 199, 0.24), transparent 30%),
    linear-gradient(135deg, #08131d, #102b3d 56%, #11322f);
}

.learnwell-window {
  width: min(82%, 390px);
  height: 154px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.32);
}

.learnwell-topbar {
  height: 23px;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0 9px;
  background: #e8eef4;
}

.learnwell-topbar span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #9aa7b6;
}

.learnwell-layout {
  height: calc(100% - 23px);
  display: grid;
  grid-template-columns: 31% 1fr;
  color: #12202e;
}

.learnwell-sidebar {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 15px 12px;
  color: #efffff;
  background: #183d4a;
}

.learnwell-sidebar b {
  font-size: 0.64rem;
  letter-spacing: 0.13em;
}

.learnwell-sidebar i {
  display: block;
  width: 76%;
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.24);
}

.learnwell-dashboard {
  padding: 14px;
}

.learnwell-dashboard strong {
  font-size: 0.78rem;
}

.learnwell-stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin: 10px 0;
}

.learnwell-stat-row span {
  display: grid;
  place-items: center;
  height: 27px;
  border-radius: 7px;
  color: #153445;
  background: #dff6f0;
  font-size: 0.58rem;
  font-weight: 900;
}

.learnwell-chart {
  height: 42px;
  display: flex;
  align-items: end;
  gap: 7px;
  padding: 6px 9px;
  border-radius: 8px;
  background: #f1f5f8;
}

.learnwell-chart i {
  flex: 1;
  border-radius: 4px 4px 2px 2px;
  background: #2f8894;
}

.learnwell-chart i:nth-child(1) { height: 38%; }
.learnwell-chart i:nth-child(2) { height: 60%; }
.learnwell-chart i:nth-child(3) { height: 78%; }
.learnwell-chart i:nth-child(4) { height: 94%; }

.app-phone {
  position: relative;
  width: 142px;
  height: 188px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.38);
  border-radius: 25px;
  box-shadow: 0 22px 44px rgba(0, 0, 0, 0.32);
}

.phone-speaker {
  position: absolute;
  top: 7px;
  left: 50%;
  width: 37px;
  height: 4px;
  border-radius: 999px;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.42);
}

.yummers-visual {
  background:
    radial-gradient(circle at 23% 24%, rgba(255, 211, 105, 0.24), transparent 30%),
    linear-gradient(135deg, #20120c, #5a2518 58%, #26130f);
}

.yummers-phone {
  padding: 25px 11px 10px;
  color: #2c180d;
  background: linear-gradient(180deg, #fff9ed, #ffe3b0);
}

.yummers-wordmark {
  color: #9a3e1c;
  font-family: var(--font-display);
  font-size: 1.04rem;
  font-weight: 900;
  letter-spacing: 0.06em;
}

.food-search {
  margin-top: 9px;
  padding: 7px 8px;
  border-radius: 8px;
  color: #8b715e;
  background: rgba(255, 255, 255, 0.8);
  font-size: 0.48rem;
}

.food-card {
  height: 73px;
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 8px;
  border-radius: 10px;
  color: #fff;
  background:
    radial-gradient(circle at 72% 27%, #ffb249 0 13%, transparent 14%),
    linear-gradient(135deg, #7d311d, #de6d2f);
}

.food-card span {
  align-self: flex-start;
  padding: 2px 5px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.25);
  font-size: 0.43rem;
}

.food-card b {
  margin-top: auto;
  font-size: 0.68rem;
}

.food-nav {
  display: flex;
  justify-content: space-around;
  margin-top: 9px;
}

.food-nav i {
  width: 19px;
  height: 4px;
  border-radius: 999px;
  background: #cba17f;
}

.delicioso-visual {
  background:
    radial-gradient(circle at 76% 23%, rgba(255, 208, 64, 0.27), transparent 28%),
    radial-gradient(circle at 24% 76%, rgba(255, 100, 94, 0.2), transparent 30%),
    linear-gradient(135deg, #3a1013, #8f2828 55%, #3c1716);
}

.delicioso-phone {
  padding: 22px 10px 10px;
  color: #3a1714;
  background: linear-gradient(180deg, #fff8dd, #ffd887);
}

.red-panda-mark {
  position: relative;
  width: 48px;
  height: 41px;
  margin: 4px auto 2px;
  border-radius: 48% 48% 44% 44%;
  background: #c95731;
  box-shadow: inset 0 -10px 0 rgba(91, 32, 24, 0.16);
}

.panda-ear {
  position: absolute;
  top: -6px;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: #50221f;
}

.panda-ear.left { left: 1px; }
.panda-ear.right { right: 1px; }

.panda-eye {
  position: absolute;
  top: 14px;
  width: 10px;
  height: 12px;
  border-radius: 50%;
  background: #fff2d8;
}

.panda-eye::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 3px;
  height: 4px;
  border-radius: 50%;
  background: #2e1714;
}

.panda-eye.left { left: 8px; transform: rotate(-17deg); }
.panda-eye.right { right: 8px; transform: rotate(17deg); }

.panda-nose {
  position: absolute;
  left: 50%;
  bottom: 7px;
  width: 8px;
  height: 6px;
  border-radius: 50%;
  transform: translateX(-50%);
  background: #2e1714;
}

.delicioso-wordmark {
  text-align: center;
  color: #9b2e27;
  font-family: var(--font-display);
  font-size: 0.89rem;
  font-weight: 900;
  letter-spacing: 0.07em;
}

.delicioso-chips {
  display: flex;
  justify-content: center;
  gap: 5px;
  margin: 6px 0;
}

.delicioso-chips span {
  padding: 3px 6px;
  border-radius: 999px;
  color: #8c322c;
  background: rgba(255, 255, 255, 0.68);
  font-size: 0.43rem;
  font-weight: 800;
}

.delicioso-card {
  height: 43px;
  padding: 7px;
  border-radius: 9px;
  color: #fff;
  background: linear-gradient(120deg, #e85b38, #9d302b);
}

.delicioso-card b {
  display: block;
  font-size: 0.48rem;
}

.delicioso-card i {
  display: block;
  width: 66%;
  height: 5px;
  margin-top: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
}

@media (max-width: 680px) {
  .learnwell-window {
    width: 88%;
  }
}
