:root {
  --ink: #0d1220;
  --ink-2: #151a2d;
  --paper: #f4f0e8;
  --paper-2: #fffaf0;
  --muted: #647084;
  --line: rgba(255, 255, 255, 0.12);
  --line-dark: rgba(13, 18, 32, 0.14);
  --cyan: #10c8d2;
  --violet: #7c4dff;
  --coral: #f05d52;
  --green: #9bc53d;
  --shadow: 0 24px 70px rgba(13, 18, 32, 0.22);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  background:
    linear-gradient(90deg, rgba(13, 18, 32, 0.04) 1px, transparent 1px),
    linear-gradient(rgba(13, 18, 32, 0.04) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 82%, transparent);
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(18px, 5vw, 72px);
  color: var(--paper-2);
  background: rgba(13, 18, 32, 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: var(--ink);
  background: var(--cyan);
  border-radius: 8px;
  font-size: 13px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-nav a {
  padding: 10px 12px;
  color: rgba(255, 250, 240, 0.78);
  text-decoration: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 800;
}

.site-nav a:hover {
  color: var(--cyan);
  background: rgba(16, 200, 210, 0.1);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  margin: 5px 0;
  background: var(--paper-2);
}

.hero {
  position: relative;
  display: grid;
  min-height: calc(100vh - 71px);
  place-items: center;
  padding: clamp(54px, 8vw, 108px) clamp(18px, 5vw, 72px);
  color: var(--paper-2);
  background:
    linear-gradient(135deg, rgba(124, 77, 255, 0.18), transparent 34%),
    linear-gradient(160deg, var(--ink), #10192d 54%, #082630);
  overflow: hidden;
}

.ai-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  opacity: 0.72;
  pointer-events: none;
}

.hero::before,
.hero::after {
  position: absolute;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.08);
  transform: rotate(45deg);
}

.hero::before {
  width: 220px;
  height: 220px;
  left: -72px;
  top: 160px;
}

.hero::after {
  width: 310px;
  height: 310px;
  right: -120px;
  bottom: -92px;
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(980px, 100%);
  text-align: center;
}

.hero-photo {
  width: 116px;
  height: 116px;
  margin: 0 auto 24px;
  padding: 5px;
  background: linear-gradient(135deg, var(--cyan), var(--violet), var(--coral));
  border-radius: 50%;
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.32);
  animation: floatPortrait 5s ease-in-out infinite;
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  border: 4px solid var(--ink);
  border-radius: 50%;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 14px;
  font-size: clamp(46px, 7vw, 92px);
  line-height: 0.98;
  letter-spacing: 0;
}

h1 span {
  display: block;
  color: transparent;
  background: linear-gradient(90deg, var(--cyan), var(--violet), var(--coral));
  background-clip: text;
}

h2 {
  max-width: 780px;
  margin-bottom: 0;
  font-size: clamp(32px, 4.8vw, 58px);
  line-height: 1.02;
  letter-spacing: 0;
}

h3 {
  font-size: 22px;
  line-height: 1.15;
}

.role-line {
  margin-bottom: 22px;
  color: rgba(255, 250, 240, 0.72);
  font-size: clamp(20px, 2.6vw, 28px);
}

.role-line strong {
  color: var(--green);
}

.hero-text {
  max-width: 780px;
  margin: 0 auto;
  color: rgba(255, 250, 240, 0.72);
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.7;
}

.hero-actions,
.social-row,
.contact-actions,
.section-actions,
.mini-tags,
.skill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-actions {
  justify-content: center;
  margin: 34px 0 24px;
}

.section-actions {
  align-items: center;
  margin-top: 22px;
}

.section-actions.centered {
  justify-content: center;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 20px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 900;
  text-decoration: none;
  font: inherit;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.button.compact {
  min-height: 42px;
  padding: 10px 14px;
  font-size: 14px;
}

.button:hover,
.social-row a:hover,
.demo-card:hover,
.project-card:hover,
.skill-card:hover,
.timeline-item:hover,
.credential-grid article:hover {
  transform: translateY(-4px);
}

.button.primary:hover {
  box-shadow: 0 14px 34px rgba(16, 200, 210, 0.24);
}

.button.primary {
  color: var(--ink);
  background: var(--cyan);
}

.button.secondary {
  color: var(--paper-2);
  background: rgba(124, 77, 255, 0.18);
  border-color: rgba(124, 77, 255, 0.52);
}

.button.ghost {
  color: var(--paper-2);
  background: transparent;
  border-color: rgba(255, 250, 240, 0.22);
}

.button.live-site {
  position: relative;
  gap: 10px;
  color: var(--ink);
  background: var(--green);
  border-color: rgba(13, 18, 32, 0.8);
  box-shadow: 0 14px 34px rgba(13, 18, 32, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.button.live-site::before {
  width: 8px;
  height: 8px;
  content: "";
  background: var(--ink);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(13, 18, 32, 0.08);
}

.button.live-site:hover {
  background: #b8df47;
  border-color: var(--ink);
  box-shadow: 0 18px 42px rgba(13, 18, 32, 0.24);
}

.social-row {
  justify-content: center;
}

.social-row a {
  padding: 10px 12px;
  color: rgba(255, 250, 240, 0.76);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease, color 180ms ease;
}

.stats-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 1px;
  color: var(--paper-2);
  background: var(--ink);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.stats-strip div {
  min-height: 108px;
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 22px clamp(18px, 4vw, 44px);
  background: rgba(255, 255, 255, 0.04);
  animation: statGlow 5s ease-in-out infinite;
}

.stats-strip div:nth-child(2) {
  animation-delay: 0.4s;
}

.stats-strip div:nth-child(3) {
  animation-delay: 0.8s;
}

.stats-strip div:nth-child(4) {
  animation-delay: 1.2s;
}

.stats-strip div:nth-child(5) {
  animation-delay: 1.6s;
}

.stats-strip strong {
  color: var(--green);
  font-size: 22px;
}

.stats-strip span {
  color: rgba(255, 250, 240, 0.72);
}

.section {
  padding: clamp(72px, 9vw, 124px) clamp(18px, 5vw, 72px);
}

.section-heading {
  display: grid;
  grid-template-columns: 0.58fr 1.42fr;
  gap: clamp(22px, 5vw, 72px);
  align-items: start;
  margin-bottom: 34px;
}

.section-heading.center {
  display: block;
  max-width: 820px;
  margin-inline: auto;
  text-align: center;
}

.about-layout {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: 18px;
}

.about-copy,
.about-cards article,
.skill-card,
.timeline-item,
.project-card,
.credential-grid article,
.contact-panel,
.contact-form {
  background: var(--paper-2);
  border: 1px solid var(--line-dark);
  border-radius: 8px;
  box-shadow: 0 12px 36px rgba(13, 18, 32, 0.06);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.about-copy {
  padding: clamp(24px, 4vw, 36px);
}

.about-copy p,
.about-cards p,
.timeline-item p,
.project-card p,
.credential-grid p,
.contact-panel p {
  color: var(--muted);
  line-height: 1.68;
}

.about-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.about-cards article,
.skill-card,
.project-card,
.credential-grid article {
  padding: clamp(20px, 3vw, 30px);
}

.about-cards span,
.credential-grid span {
  display: inline-grid;
  min-width: 42px;
  height: 42px;
  margin-bottom: 18px;
  place-items: center;
  color: var(--ink);
  background: var(--cyan);
  border-radius: 8px;
  font-weight: 900;
}

.skills {
  color: var(--paper-2);
  background: var(--ink);
}

.skills .section-heading h2 {
  margin-inline: auto;
}

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

.skill-card {
  color: var(--paper-2);
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--line);
  box-shadow: none;
}

.skill-card.flip-card {
  min-height: 280px;
  padding: 0;
  background: transparent;
  border: 0;
  perspective: 1200px;
  box-shadow: none;
}

.skill-card.wide {
  grid-column: span 4;
}

.skill-card h3 {
  color: var(--green);
}

.skill-flip {
  position: relative;
  min-height: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 720ms cubic-bezier(0.22, 1, 0.36, 1);
}

.flip-card:hover .skill-flip,
.flip-card:focus .skill-flip,
.flip-card:focus-within .skill-flip,
.flip-card.is-flipped .skill-flip {
  transform: rotateY(180deg);
}

.skill-face {
  min-height: 280px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  padding: clamp(20px, 3vw, 30px);
  color: var(--paper-2);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  border-radius: 8px;
  backface-visibility: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.skill-front {
  align-items: center;
  justify-content: center;
  text-align: center;
}

.skill-front h3 {
  margin: 0;
  font-size: clamp(28px, 3vw, 38px);
}

.skill-back {
  position: absolute;
  inset: 0;
  align-items: flex-start;
  justify-content: center;
  background:
    linear-gradient(135deg, rgba(16, 200, 210, 0.2), rgba(124, 77, 255, 0.18)),
    rgba(255, 255, 255, 0.08);
  transform: rotateY(180deg);
}

.skill-back p {
  margin: 0;
  color: rgba(255, 250, 240, 0.76);
  line-height: 1.62;
}

.skill-kicker {
  width: fit-content;
  padding: 7px 9px;
  color: var(--ink);
  background: var(--cyan);
  border-radius: 8px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.skill-list span,
.mini-tags span {
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 850;
}

.skill-list span {
  color: rgba(255, 250, 240, 0.86);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--line);
}

.experience {
  background: #e8eee8;
}

.timeline {
  display: grid;
  gap: 14px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 24px;
  padding: clamp(20px, 3vw, 30px);
}

.timeline-date,
.project-top span {
  color: var(--coral);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mini-tags span {
  color: var(--ink);
  background: rgba(16, 200, 210, 0.14);
  border: 1px solid rgba(16, 200, 210, 0.28);
}

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

.project-card {
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.project-card.featured {
  grid-column: span 2;
  color: var(--paper-2);
  background:
    linear-gradient(135deg, rgba(16, 200, 210, 0.16), rgba(124, 77, 255, 0.22)),
    var(--ink-2);
  border-color: rgba(255, 255, 255, 0.1);
}

.startlearning-card {
  gap: 22px;
}

.project-card.featured p {
  color: rgba(255, 250, 240, 0.75);
}

.project-card.featured .mini-tags span {
  color: var(--paper-2);
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--line);
}

.project-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.project-top a {
  color: var(--cyan);
  font-weight: 900;
}

.browser-preview {
  overflow: hidden;
  background: #f7f3ea;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
}

.browser-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  color: rgba(255, 250, 240, 0.78);
  background: #0a0f1b;
}

.browser-bar span {
  width: 10px;
  height: 10px;
  background: var(--coral);
  border-radius: 50%;
}

.browser-bar span:nth-child(2) {
  background: var(--green);
}

.browser-bar span:nth-child(3) {
  background: var(--cyan);
}

.browser-bar strong {
  margin-left: auto;
  font-size: 12px;
}

.browser-screen {
  min-height: 220px;
  display: grid;
  align-content: center;
  gap: 14px;
  padding: clamp(22px, 4vw, 34px);
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(13, 18, 32, 0.07) 1px, transparent 1px),
    linear-gradient(rgba(13, 18, 32, 0.07) 1px, transparent 1px),
    var(--paper-2);
  background-size: 34px 34px;
}

.browser-screen p {
  margin: 0;
  color: var(--coral);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.browser-screen h3 {
  max-width: 440px;
  margin: 0;
  color: var(--ink);
  font-size: clamp(28px, 4vw, 46px);
}

.preview-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.preview-pill-row span {
  padding: 8px 10px;
  color: var(--ink);
  background: rgba(16, 200, 210, 0.15);
  border: 1px solid rgba(16, 200, 210, 0.28);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 850;
}

.demo-showcase {
  margin-top: 18px;
}

.demo-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin: 48px 0 18px;
}

.demo-heading h3 {
  max-width: 620px;
  margin-bottom: 0;
  font-size: clamp(28px, 4vw, 44px);
}

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

.demo-card {
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.9fr);
  color: var(--ink);
  background: var(--paper-2);
  border: 1px solid var(--line-dark);
  border-radius: 8px;
  text-decoration: none;
  box-shadow: 0 16px 44px rgba(13, 18, 32, 0.12);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.demo-card:first-child {
  grid-column: span 2;
}

.demo-card:not(:first-child) {
  grid-template-columns: 1fr;
}

.demo-card img {
  width: 100%;
  height: 100%;
  min-height: 300px;
  object-fit: cover;
  object-position: top center;
  transition: transform 420ms ease;
}

.demo-card:not(:first-child) img {
  min-height: 220px;
  max-height: 240px;
  height: 240px;
}

.demo-card:hover img {
  transform: scale(1.045);
}

.demo-card div {
  display: grid;
  align-content: center;
  gap: 12px;
  padding: clamp(20px, 3vw, 30px);
}

.demo-card div span {
  color: var(--coral);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.demo-card h4 {
  margin: 0;
  font-size: clamp(24px, 3vw, 34px);
}

.demo-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.demo-card strong {
  color: var(--ink);
}

.launched {
  color: var(--paper-2);
  background:
    radial-gradient(1200px 500px at 15% 0%, rgba(16, 200, 210, 0.18), transparent 60%),
    radial-gradient(900px 500px at 90% 100%, rgba(124, 77, 255, 0.22), transparent 60%),
    linear-gradient(160deg, #0a1020, #10232c);
}

.launched-inner {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(24px, 5vw, 56px);
  align-items: start;
}

.launched-copy {
  display: grid;
  gap: 18px;
}

.launched-copy .eyebrow {
  color: var(--cyan);
}

.launched-copy h2 {
  margin: 0;
  color: var(--paper-2);
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.12;
}

.launched-copy h2 a {
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 2px solid rgba(16, 200, 210, 0.4);
}

.launched-copy h2 a:hover {
  border-bottom-color: var(--cyan);
}

.launched-copy > p {
  color: rgba(255, 250, 240, 0.78);
  line-height: 1.7;
  max-width: 560px;
}

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  width: fit-content;
  color: var(--green);
  background: rgba(155, 197, 61, 0.12);
  border: 1px solid rgba(155, 197, 61, 0.35);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.live-dot {
  width: 8px;
  height: 8px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(155, 197, 61, 0.6);
  animation: livePulse 1.6s ease-out infinite;
}

@keyframes livePulse {
  0% { box-shadow: 0 0 0 0 rgba(155, 197, 61, 0.55); }
  70% { box-shadow: 0 0 0 10px rgba(155, 197, 61, 0); }
  100% { box-shadow: 0 0 0 0 rgba(155, 197, 61, 0); }
}

.launched-highlights {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 6px 0 4px;
  padding: 0;
  list-style: none;
}

.launched-highlights li {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
}

.launched-highlights strong {
  color: var(--paper-2);
  font-size: 14px;
}

.launched-highlights span {
  color: rgba(255, 250, 240, 0.68);
  font-size: 13px;
  line-height: 1.55;
}

.launched .launched-tags span {
  color: var(--paper-2);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
}

.launched-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}

.launched-preview {
  position: sticky;
  top: 96px;
  overflow: hidden;
  background: #0a0f1b;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

.launched-shot {
  display: block;
  overflow: hidden;
  background: #000;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.launched-shot img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  transition: transform 480ms ease;
}

.launched-shot:hover img {
  transform: scale(1.02);
}

.launched-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: rgba(255, 255, 255, 0.1);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.launched-meta > div {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  background: #0a0f1b;
}

.launched-meta strong {
  color: rgba(255, 250, 240, 0.55);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.launched-meta span {
  color: var(--paper-2);
  font-size: 14px;
  font-weight: 800;
}

.launched-meta .status-live {
  color: var(--green);
}

.credentials {
  background: #fff7e8;
}

.credential-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.contact-section {
  display: grid;
  grid-template-columns: 0.92fr 1fr;
  gap: clamp(22px, 5vw, 72px);
  color: var(--paper-2);
  background: linear-gradient(160deg, var(--ink), #10232c);
}

.contact-panel,
.contact-form {
  color: var(--paper-2);
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--line);
  box-shadow: none;
}

.contact-panel {
  padding: clamp(24px, 4vw, 38px);
}

.contact-panel p {
  color: rgba(255, 250, 240, 0.72);
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: clamp(20px, 3vw, 30px);
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: rgba(255, 250, 240, 0.88);
  font-size: 14px;
  font-weight: 850;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 13px 14px;
  color: var(--paper-2);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 0;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(16, 200, 210, 0.14);
}

.contact-form textarea {
  resize: vertical;
}

.form-note {
  min-height: 24px;
  margin: 0;
  color: var(--green);
  font-weight: 800;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 24px clamp(18px, 5vw, 72px);
  color: var(--paper-2);
  background: #070b14;
}

.site-footer a {
  color: var(--cyan);
  font-weight: 850;
}

.motion-item {
  opacity: 0.72;
  transform: translateY(18px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.motion-item.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.motion-item:nth-child(2n) {
  transition-delay: 80ms;
}

.motion-item:nth-child(3n) {
  transition-delay: 140ms;
}

@keyframes floatPortrait {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes statGlow {
  0%,
  100% {
    background: rgba(255, 255, 255, 0.04);
  }
  50% {
    background: rgba(16, 200, 210, 0.08);
  }
}

@media (max-width: 1040px) {
  .section-heading,
  .about-layout,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .skills-grid,
  .project-grid,
  .demo-grid,
  .credential-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .launched-inner {
    grid-template-columns: 1fr;
  }

  .launched-preview {
    position: static;
  }

  .skill-card.wide,
  .project-card.featured,
  .demo-card:first-child {
    grid-column: span 2;
  }

  .demo-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 740px) {
  .site-header {
    align-items: center;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 70px;
    left: 18px;
    right: 18px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
    background: var(--ink-2);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
  }

  .site-nav.open {
    display: flex;
  }

  .hero {
    min-height: auto;
    padding-top: 46px;
  }

  .ai-bg {
    opacity: 0.46;
  }

  .hero::before,
  .hero::after {
    display: none;
  }

  .hero-photo {
    width: 92px;
    height: 92px;
  }

  h1 {
    font-size: clamp(42px, 13vw, 58px);
  }

  .hero-text {
    font-size: 16px;
  }

  .hero-actions,
  .contact-actions {
    flex-direction: column;
  }

  .hero-actions .button,
  .contact-actions .button {
    width: 100%;
  }

  .stats-strip,
  .about-cards,
  .skills-grid,
  .project-grid,
  .demo-grid,
  .credential-grid {
    grid-template-columns: 1fr;
  }

  .demo-heading {
    display: block;
  }

  .demo-heading h3 {
    font-size: clamp(22px, 6vw, 32px);
    margin-bottom: 8px;
  }

  .demo-card {
    grid-template-columns: 1fr;
  }

  .demo-card img {
    min-height: 200px;
    max-height: 220px;
    width: 100%;
  }

  .demo-card div {
    padding: 16px;
    gap: 8px;
  }

  .demo-card h4 {
    font-size: 18px;
  }

  .demo-card p {
    font-size: 14px;
  }

  .skill-card.wide,
  .project-card.featured,
  .demo-card:first-child {
    grid-column: span 1;
  }

  .timeline-item {
    grid-template-columns: 1fr;
  }

  .launched-highlights {
    grid-template-columns: 1fr;
  }

  .launched-meta {
    grid-template-columns: 1fr;
  }

  .launched-actions {
    flex-direction: column;
  }

  .launched-actions .button {
    width: 100%;
    text-align: center;
  }

  .section {
    padding-inline: 22px;
  }

  .site-footer {
    flex-direction: column;
  }
}

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