:root {
  color-scheme: dark;
  --bg: #0b1117;
  --bg-soft: #101923;
  --surface: rgba(17, 27, 38, 0.78);
  --surface-strong: rgba(20, 33, 45, 0.92);
  --line: rgba(166, 217, 226, 0.16);
  --line-strong: rgba(166, 217, 226, 0.28);
  --text: #eff8fb;
  --muted: #9fb0bc;
  --subtle: #6f8591;
  --accent: #581ed6;
  --accent-strong: #8d63f2;
  --accent-deep: #36118f;
  --warning: #d7b46a;
  --shadow: 0 28px 70px rgba(2, 8, 14, 0.38);
  --radius-sm: 8px;
  --radius-md: 8px;
  --radius-lg: 8px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 18% 8%, rgba(88, 30, 214, 0.18), transparent 28rem),
    linear-gradient(135deg, rgba(215, 180, 106, 0.05), transparent 24rem),
    var(--bg);
  color: var(--text);
  font-family: "Geist", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.32;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, #000 0%, transparent 70%);
}

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

button,
input,
textarea {
  font: inherit;
}

.site-shell {
  position: relative;
  overflow: hidden;
}

main,
section {
  min-width: 0;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid transparent;
  transition: background 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.site-header.is-scrolled {
  background: rgba(11, 17, 23, 0.82);
  border-color: var(--line);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(18px);
}

.navbar {
  width: calc(100% - 40px);
  max-width: var(--max);
  min-height: 76px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(88, 30, 214, 0.26), rgba(255, 255, 255, 0.04));
  color: var(--accent-strong);
  font-family: "Geist Mono", monospace;
  font-size: 0.82rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.brand-text {
  letter-spacing: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  backdrop-filter: blur(16px);
}

.nav-links a {
  position: relative;
  padding: 9px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
  transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

.nav-links a:hover,
.nav-links a.is-active {
  color: var(--text);
  background: rgba(88, 30, 214, 0.14);
}

.nav-links a:active {
  transform: scale(0.98);
}

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

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
  border-radius: 2px;
  transition: transform 180ms ease;
}

.menu-toggle.is-open span:first-child {
  transform: translateY(3.5px) rotate(45deg);
}

.menu-toggle.is-open span:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}

.section {
  position: relative;
  padding: 118px 0;
}

.section-panel {
  position: relative;
  min-height: 100dvh;
  padding: 116px 0 96px;
  display: grid;
  align-items: center;
}

.section-tinted {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0));
  border-block: 1px solid rgba(255, 255, 255, 0.04);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  align-items: center;
  gap: clamp(40px, 6vw, 86px);
}

.hero-grid > *,
.split-layout > *,
.experience-layout > *,
.education-grid > *,
.contact-grid > * {
  min-width: 0;
}

.eyebrow {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--accent-strong);
  font-family: "Geist Mono", monospace;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
  opacity: 0.72;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 9ch;
  margin-bottom: 12px;
  font-size: clamp(4.15rem, 10vw, 8.7rem);
  font-weight: 800;
  line-height: 0.88;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2.2rem, 4.7vw, 4.8rem);
  font-weight: 760;
  line-height: 0.98;
  letter-spacing: 0;
}

h3 {
  color: var(--text);
  font-size: 1.16rem;
  line-height: 1.25;
}

.hero-role {
  margin-bottom: 22px;
  color: var(--accent);
  font-family: "Geist Mono", monospace;
  font-size: clamp(1rem, 1.8vw, 1.24rem);
  font-weight: 600;
}

.hero-text,
.section-heading p,
.about-content p,
.timeline-card p,
.project-card p,
.contact-copy p {
  color: var(--muted);
  font-size: 1.04rem;
}

.hero-text {
  max-width: 68ch;
  margin-bottom: 34px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0 20px;
  font-weight: 700;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, color 180ms ease;
  cursor: pointer;
}

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

.btn:active {
  transform: translateY(1px) scale(0.98);
}

.btn-primary {
  background: var(--accent);
  color: #061313;
  box-shadow: 0 16px 36px rgba(88, 30, 214, 0.2);
}

.btn-primary:hover {
  background: var(--accent-strong);
}

.btn-secondary,
.btn-ghost {
  border-color: var(--line-strong);
  color: var(--text);
  background: rgba(255, 255, 255, 0.045);
}

.btn-secondary:hover,
.btn-ghost:hover {
  border-color: rgba(88, 30, 214, 0.5);
  background: rgba(88, 30, 214, 0.12);
}

.hero-visual {
  position: relative;
  min-height: 520px;
}

.visual-orbit {
  position: absolute;
  inset: 12% 8% 16% 3%;
  border: 1px solid rgba(88, 30, 214, 0.26);
  border-radius: 42% 58% 48% 52%;
  background:
    linear-gradient(135deg, rgba(88, 30, 214, 0.14), transparent 55%),
    rgba(255, 255, 255, 0.02);
  animation: floatShape 9s ease-in-out infinite alternate;
}

.terminal-card,
.dashboard-card,
.automation-card,
.timeline-card,
.skill-card,
.education-card,
.project-card,
.contact-form {
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(18px);
}

.terminal-card {
  position: absolute;
  top: 22px;
  right: 0;
  width: min(430px, 100%);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.terminal-topbar {
  display: flex;
  gap: 7px;
  padding: 15px 18px;
  border-bottom: 1px solid var(--line);
}

.terminal-topbar span {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--subtle);
}

.terminal-topbar span:nth-child(2) {
  background: var(--warning);
}

.terminal-topbar span:nth-child(3) {
  background: var(--accent);
}

.terminal-body {
  padding: 24px;
  color: #c8dbe0;
  font-family: "Geist Mono", monospace;
  font-size: 0.82rem;
}

.code-line {
  min-height: 28px;
  white-space: nowrap;
  overflow-wrap: anywhere;
}

.code-line .muted {
  color: var(--accent-strong);
}

.code-line.success {
  color: var(--accent);
}

.dashboard-card {
  position: absolute;
  left: 8px;
  bottom: 86px;
  width: 330px;
  border-radius: var(--radius-lg);
  padding: 24px;
}

.metric {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.metric span {
  color: var(--muted);
  font-size: 0.88rem;
}

.metric strong {
  color: var(--text);
  font-family: "Geist Mono", monospace;
  font-size: 1.1rem;
}

.signal-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  height: 126px;
  align-items: end;
}

.signal-grid span {
  border-radius: 999px 999px 5px 5px;
  background: linear-gradient(180deg, var(--accent-strong), rgba(88, 30, 214, 0.1));
  animation: bars 2.8s ease-in-out infinite;
}

.signal-grid span:nth-child(1) {
  height: 42%;
}

.signal-grid span:nth-child(2) {
  height: 76%;
  animation-delay: 140ms;
}

.signal-grid span:nth-child(3) {
  height: 58%;
  animation-delay: 280ms;
}

.signal-grid span:nth-child(4) {
  height: 92%;
  animation-delay: 420ms;
}

.signal-grid span:nth-child(5) {
  height: 64%;
  animation-delay: 560ms;
}

.signal-grid span:nth-child(6) {
  height: 84%;
  animation-delay: 700ms;
}

.automation-card {
  position: absolute;
  right: 28px;
  bottom: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  width: min(315px, 88%);
  border-radius: var(--radius-md);
  padding: 17px;
}

.automation-card strong,
.automation-card span {
  display: block;
}

.automation-card > div > span {
  color: var(--muted);
  font-size: 0.86rem;
}

.status-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 7px rgba(88, 30, 214, 0.12);
}

.split-layout,
.experience-layout,
.education-grid,
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(36px, 6vw, 86px);
}

.section-heading {
  max-width: 700px;
}

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

.about-content p {
  margin-bottom: 18px;
}

.quick-facts {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  margin-top: 32px;
}

.quick-facts article {
  min-height: 128px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.035);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.quick-facts article:nth-child(1),
.quick-facts article:nth-child(2) {
  grid-column: span 3;
}

.quick-facts article:nth-child(n + 3) {
  grid-column: span 2;
}

.quick-facts article:hover {
  transform: translateY(-4px);
  border-color: rgba(88, 30, 214, 0.42);
  background: rgba(88, 30, 214, 0.08);
}

.quick-facts strong
 {
  display: block;
  margin-bottom: 8px;
  color: var(--text);
  font-size: 1.35rem;
  line-height: 1.05;
}

.span-text {
  color: var(--text) !important;
  font-size: 1.35rem !important;
}


.quick-facts span {
  color: var(--muted);
  font-size: 0.93rem;
}


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

.skill-card {
  min-height: 215px;
  grid-column: span 2;
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.skill-card:nth-child(1),
.skill-card:nth-child(6) {
  grid-column: span 3;
}

.skill-card:hover,
.project-card:hover,
.timeline-card:hover,
.education-card:hover {
  transform: translateY(-5px);
  border-color: rgba(88, 30, 214, 0.44);
  background: var(--surface-strong);
}

.skill-card h3 {
  margin-bottom: 18px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.tag-list span {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  padding: 6px 11px;
  background: rgba(255, 255, 255, 0.04);
  color: #d8e9ed;
  font-size: 0.88rem;
  font-weight: 600;
}

.ai-card {
  background:
    linear-gradient(135deg, rgba(88, 30, 214, 0.13), rgba(215, 180, 106, 0.045)),
    var(--surface);
}

.timeline {
  position: relative;
  display: grid;
  gap: 22px;
}

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

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

.timeline-marker {
  position: relative;
  z-index: 1;
  width: 21px;
  height: 21px;
  margin-top: 29px;
  border: 1px solid rgba(88, 30, 214, 0.86);
  border-radius: 999px;
  background: var(--bg);
  box-shadow: 0 0 0 8px rgba(88, 30, 214, 0.12);
}

.timeline-card {
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.period {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--accent);
  font-family: "Geist Mono", monospace;
  font-size: 0.84rem;
  font-weight: 600;
}

.timeline-card h3 {
  margin-bottom: 5px;
  font-size: 1.45rem;
}

.timeline-card strong {
  display: block;
  margin-bottom: 14px;
  color: #dcecef;
}

.timeline-card p {
  margin-bottom: 0;
}

.education-card {
  align-self: start;
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.institution {
  display: block;
  margin-bottom: 14px;
  color: var(--accent);
  font-family: "Geist Mono", monospace;
  font-size: 0.86rem;
  font-weight: 600;
}

.education-card h3 {
  margin-bottom: 10px;
  font-size: 1.45rem;
}

.education-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.project-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.project-thumb {
  position: relative;
  flex: 0 0 auto;
  margin: 0;
  aspect-ratio: 16 / 9;
  min-height: 0;
  overflow: hidden;
  background: #0d1720;
}

.project-thumb::before {
  content: "";
  position: absolute;
  inset: 18px;
  z-index: 1;
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-md);
}

.project-thumb span {
  position: absolute;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
}

.project-thumb-image {
  border-bottom: 1px solid var(--line);
  background: #0f161f;
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.04);
}

.project-thumb-image img {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 72%;
  filter: saturate(0.96) contrast(1.04);
  transition: opacity 180ms ease, transform 260ms cubic-bezier(0.16, 1, 0.3, 1);
}

.project-thumb-image img.is-switching {
  opacity: 0;
  transform: scale(1.015);
}

.project-version-switch {
  position: absolute;
  right: 28px;
  bottom: 28px;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(2, 44px);
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(11, 17, 23, 0.82);
  box-shadow: 0 12px 28px rgba(2, 8, 14, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
}

.project-version-switch button {
  min-height: 36px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-family: "Geist Mono", monospace;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

.project-version-switch button:hover {
  color: var(--text);
}

.project-version-switch button[aria-pressed="true"] {
  background: var(--accent);
  color: #fff;
}

.project-version-switch button:active {
  transform: scale(0.96);
}

.project-version-switch button:focus-visible {
  outline: 2px solid var(--accent-strong);
  outline-offset: 2px;
}

.project-thumb-mobile img {
  object-position: center center;
}

.project-thumb-one {
  background:
    linear-gradient(135deg, rgba(88, 30, 214, 0.34), transparent 52%),
    linear-gradient(315deg, rgba(215, 180, 106, 0.15), transparent 50%),
    #0d1720;
}

.project-thumb-two {
  background:
    linear-gradient(135deg, rgba(54, 112, 182, 0.24), transparent 55%),
    #101923;
}

.project-thumb-three {
  background:
    linear-gradient(135deg, rgba(88, 30, 214, 0.26), transparent 58%),
    #111923;
}

.project-thumb span:nth-child(1) {
  left: 36px;
  top: 38px;
  width: 42%;
  height: 18px;
}

.project-thumb span:nth-child(2) {
  left: 36px;
  top: 78px;
  width: 66%;
  height: 74px;
}

.project-thumb span:nth-child(3) {
  right: 36px;
  bottom: 36px;
  width: 34%;
  height: 48px;
  background: rgba(88, 30, 214, 0.28);
}

.project-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 26px;
}

.project-content h3 {
  margin-bottom: 10px;
  font-size: 1.34rem;
}

.project-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: auto;
  padding-top: 22px;
}

.text-link {
  color: var(--accent-strong);
  font-weight: 700;
  transition: color 180ms ease, transform 180ms ease;
}

.text-link:hover {
  color: var(--text);
}

.text-link:active {
  transform: translateY(1px);
}

.muted-link {
  color: var(--muted);
}

.compact span {
  min-height: 30px;
  font-size: 0.8rem;
}

.contact-section {
  padding-bottom: 96px;
}

.contact-grid {
  align-items: start;
}

.contact-copy h2 {
  max-width: 9ch;
}

.contact-links {
  display: grid;
  gap: 12px;
  margin-top: 30px;
}

.contact-links a {
  display: grid;
  gap: 2px;
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  transition: color 180ms ease, padding-left 180ms ease;
}

.contact-links a:hover {
  padding-left: 8px;
  color: var(--text);
}

.contact-links span {
  color: var(--accent);
  font-family: "Geist Mono", monospace;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
}

.contact-form {
  display: grid;
  gap: 18px;
  border-radius: var(--radius-lg);
  padding: 30px;
}

.form-row {
  display: grid;
  gap: 8px;
}

label {
  color: #dcecef;
  font-weight: 700;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(3, 10, 16, 0.38);
  color: var(--text);
  outline: none;
  padding: 13px 14px;
  transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

textarea {
  resize: vertical;
  min-height: 142px;
}

input::placeholder,
textarea::placeholder {
  color: var(--subtle);
}

input:focus,
textarea:focus {
  border-color: rgba(88, 30, 214, 0.68);
  background: rgba(3, 10, 16, 0.52);
  box-shadow: 0 0 0 4px rgba(88, 30, 214, 0.12);
}

.form-row small {
  min-height: 18px;
  color: #f4a7a0;
  font-size: 0.82rem;
}

.form-submit {
  width: fit-content;
  margin-top: 4px;
}

.form-status {
  min-height: 24px;
  margin: 0;
  color: var(--accent-strong);
  font-weight: 700;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(6, 12, 18, 0.52);
}

.footer-inner {
  min-height: 96px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: var(--muted);
}

.footer-inner p {
  margin: 0;
}

.footer-inner a {
  color: var(--accent);
  font-weight: 700;
}

.reveal {
  transition: opacity 560ms cubic-bezier(0.16, 1, 0.3, 1), transform 560ms cubic-bezier(0.16, 1, 0.3, 1);
}

.js .reveal {
  opacity: 0;
  transform: translateY(22px);
}

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

@keyframes floatShape {
  from {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }
  to {
    transform: translate3d(0, -16px, 0) rotate(4deg);
  }
}

@keyframes bars {
  0%,
  100% {
    transform: scaleY(0.88);
    opacity: 0.72;
  }
  50% {
    transform: scaleY(1);
    opacity: 1;
  }
}

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

@media (max-width: 980px) {
  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 76px;
    left: 20px;
    right: 20px;
    display: grid;
    gap: 6px;
    padding: 14px;
    border-radius: 18px;
    background: rgba(11, 17, 23, 0.96);
    box-shadow: var(--shadow);
    transform: translateY(-10px);
    opacity: 0;
    visibility: hidden;
    transition: transform 180ms ease, opacity 180ms ease, visibility 180ms ease;
  }

  .nav-links.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-links a {
    border-radius: 12px;
  }

  .hero-grid,
  .split-layout,
  .experience-layout,
  .education-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 470px;
  }

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

  .skill-card,
  .skill-card:nth-child(1),
  .skill-card:nth-child(6) {
    grid-column: auto;
  }

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

}

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

  .section {
    padding: 78px 0;
  }

  .section-panel {
    padding: 92px 0 70px;
  }

  h1 {
    max-width: 8ch;
    font-size: clamp(3.4rem, 21vw, 5.2rem);
  }

  h2 {
    font-size: clamp(2rem, 12vw, 3.1rem);
  }

  .hero-actions,
  .project-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-copy,
  .hero-text,
  .hero-role,
  .hero-actions,
  .eyebrow {
    max-width: min(100%, 340px);
  }

  .btn,
  .form-submit {
    width: 100%;
  }

  .hero-visual {
    display: grid;
    gap: 12px;
    min-height: auto;
    overflow: hidden;
  }

  .terminal-card,
  .dashboard-card,
  .automation-card {
    position: relative;
    inset: auto;
    width: min(100%, 340px);
  }

  .visual-orbit {
    display: none;
  }

  .dashboard-card {
    padding: 20px;
  }

  .code-line {
    white-space: normal;
  }

  .eyebrow {
    max-width: 100%;
  }

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

  .quick-facts article:nth-child(1),
  .quick-facts article:nth-child(2),
  .quick-facts article:nth-child(n + 3) {
    grid-column: auto;
  }

  .timeline-card,
  .education-card,
  .contact-form {
    padding: 22px;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
  }
}
