* {
  box-sizing: border-box
}

html {
  scroll-behavior: smooth
}

body {
  margin: 0;
  background: #09090b;
  color: #f4f4f5;
  font-family: "DM Sans", sans-serif;
  overflow-x: hidden;
  transition: background .35s, color .35s
}

body.light {
  background: #f3f3f1;
  color: #151515
}

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E");
  z-index: 20
}

.ambient {
  position: fixed;
  width: 46vw;
  height: 46vw;
  border-radius: 50%;
  filter: blur(120px);
  opacity: .12;
  pointer-events: none
}

.ambient-one {
  background: #4967ff;
  top: -18vw;
  right: -12vw
}

.ambient-two {
  background: #9b5cff;
  bottom: 12%;
  left: -28vw
}

.section {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 130px 0
}

.glass {
  background: rgba(255, 255, 255, .045);
  border: 1px solid rgba(255, 255, 255, .1);
  box-shadow: 0 18px 80px rgba(0, 0, 0, .15);
  backdrop-filter: blur(18px)
}

.light .glass {
  background: rgba(255, 255, 255, .65);
  border-color: rgba(0, 0, 0, .08)
}

.nav-wrap {
  position: fixed;
  top: 22px;
  left: 0;
  width: 100%;
  z-index: 10
}

.nav {
  width: min(1120px, calc(100% - 32px));
  height: 58px;
  margin: auto;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px 0 20px
}

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

.brand-mark {
  font-family: Manrope;
  font-size: 21px;
  color: #9e9eff
}

.nav-links {
  display: flex;
  gap: 26px
}

.nav a {
  color: inherit;
  text-decoration: none;
  font-size: 14px
}

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

.theme-toggle {
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 18px;
  width: 36px;
  height: 36px;
  cursor: pointer
}

.moon {
  display: none
}

.light .moon {
  display: inline
}

.light .sun {
  display: none
}

.nav-contact {
  padding: 10px 15px;
  background: #f4f4f5;
  color: #101012 !important;
  border-radius: 11px;
  font-weight: 600
}

.light .nav-contact {
  background: #171719;
  color: #fff !important
}

.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  align-items: center;
  gap: 40px;
  padding-top: 120px
}

.eyebrow {
  font: 500 14px "DM Mono";
  letter-spacing: .14em;
  color: #a5a5b0;
  display: flex;
  align-items: center;
  gap: 9px
}

.eyebrow span {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: #818cf8;
  border-radius: 50%;
  box-shadow: 0 0 16px #818cf8
}

.hero h1,
.section-heading h2,
.contact h2,
.about h2 {
  font: 700 clamp(48px, 7vw, 88px)/.98 Manrope;
  margin: 20px 0 25px;
  letter-spacing: -.065em
}

.hero h1 em,
.section-heading em,
.contact em,
.about em {
  font-style: normal;
  color: #a5b4fc
}

.hero-text {
  max-width: 650px;
  font-size: 18px;
  line-height: 1.7;
  color: #a7a7b0
}

.light .hero-text,
.light p {
  color: #65656c
}

.hero-cta,
.contact-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 34px
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 19px;
  border-radius: 13px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: .25s
}

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

.button-primary {
  background: #eef0ff;
  color: #161625
}

.button-ghost {
  border: 1px solid rgba(255, 255, 255, .13);
  color: inherit;
  background: rgba(255, 255, 255, .025)
}

.light .button-ghost {
  border-color: rgba(0, 0, 0, .12)
}

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

.core-orb {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 205px;
  height: 205px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 25%, #6f82ff, #282b57 55%, #12121d);
  box-shadow: 0 0 100px rgba(94, 108, 255, .28), inset 0 0 30px rgba(255, 255, 255, .2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font: 10px "DM Mono";
  letter-spacing: .14em
}

.core-orb b {
  font-size: 30px
}

.orbit {
  position: absolute;
  left: 50%;
  top: 50%;
  border: 1px solid rgba(165, 180, 252, .16);
  border-radius: 50%;
  transform: translate(-50%, -50%) rotate(-18deg)
}

.orbit-a {
  width: 410px;
  height: 170px
}

.orbit-b {
  width: 300px;
  height: 430px;
  transform: translate(-50%, -50%) rotate(40deg)
}

.floating-card {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, .13);
  background: rgba(20, 20, 28, .62);
  backdrop-filter: blur(16px);
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .25)
}

.light .floating-card {
  background: rgba(255, 255, 255, .76);
  border-color: rgba(0, 0, 0, .08)
}

.card-one {
  width: 210px;
  left: 2%;
  top: 13%;
  animation: float 6s ease-in-out infinite
}

.card-two {
  right: 0;
  top: 27%;
  animation: float 7s ease-in-out 1s infinite
}

.card-three {
  left: 13%;
  bottom: 11%;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: float 5.5s ease-in-out .5s infinite
}

.card-label,
small {
  font: 10px "DM Mono";
  letter-spacing: .08em;
  color: #9696a2
}

.metric-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 10px 0
}

.metric-row strong {
  font: 700 26px Manrope
}

.metric-row span {
  color: #7ff0a6
}

.spark {
  height: 45px;
  display: flex;
  align-items: end;
  gap: 5px
}

.spark i {
  width: 100%;
  background: linear-gradient(#8998ff, transparent);
  border-radius: 5px
}

.spark i:nth-child(1) {
  height: 25%
}

.spark i:nth-child(2) {
  height: 45%
}

.spark i:nth-child(3) {
  height: 37%
}

.spark i:nth-child(4) {
  height: 63%
}

.spark i:nth-child(5) {
  height: 58%
}

.spark i:nth-child(6) {
  height: 74%
}

.spark i:nth-child(7) {
  height: 85%
}

.spark i:nth-child(8) {
  height: 100%
}

.window-dots {
  display: flex;
  gap: 5px;
  margin-bottom: 14px
}

.window-dots i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #777
}

.code-card code {
  font: 12px/1.8 "DM Mono";
  color: #d2d2d8
}

.code-card code span {
  color: #a5b4fc
}

.code-card b {
  color: #77dfbb
}

.code-card em {
  color: #f5bf74
}

.mini-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: #37386c;
  display: grid;
  place-items: center
}

.mini-card strong {
  display: block;
  font-size: 13px;
  margin-top: 4px
}

@keyframes float {
  50% {
    transform: translateY(-13px)
  }
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 20px;
  overflow: hidden;
  background: rgba(255, 255, 255, .08)
}

.stats>div {
  min-height: 140px;
  background: #0c0c0f;
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center
}

.light .stats>div {
  background: #fafafa
}

.stats strong {
  font: 700 37px Manrope;
  letter-spacing: -.05em
}

.stats span {
  margin-top: 6px;
  color: #9696a2;
  font-size: 13px
}

.stat-stack {
  display: flex !important;
  gap: 7px;
  flex-wrap: wrap;
  align-content: center
}

.stat-stack span {
  font: 14px "DM Mono";
  border: 1px solid rgba(255, 255, 255, .12);
  padding: 7px;
  border-radius: 7px;
  margin: 0
}

.section-heading {
  margin-bottom: 52px
}

.section-heading h2 {
  font-size: clamp(40px, 5vw, 66px)
}

.bento-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 14px
}

.bento {
  padding: 32px;
  min-height: 280px;
  border-radius: 22px;
  background: rgba(255, 255, 255, .035);
  border: 1px solid rgba(255, 255, 255, .09);
  transition: .3s
}

.bento:hover,
.project:hover {
  transform: translateY(-5px);
  border-color: rgba(165, 180, 252, .4)
}

.light .bento,
.light .project {
  background: rgba(255, 255, 255, .48);
  border-color: rgba(0, 0, 0, .08)
}

.bento-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(129, 140, 248, .13);
  color: #a5b4fc;
  font-size: 21px
}

.bento h3,
.project h3 {
  font: 700 25px Manrope;
  margin: 55px 0 10px;
  letter-spacing: -.04em
}

.bento p,
.project p,
.experience-main p,
.about p,
.contact>p {
  color: #a4a4ae;
  line-height: 1.7;
  margin: 0
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 20px
}

.tags span,
.experience-metrics span {
  font: 14px "DM Mono";
  padding: 7px 9px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 7px;
  color: #aaaab5
}

.work .section-heading {
  margin-bottom: 40px
}

.project {
  border: 1px solid rgba(255, 255, 255, .09);
  background: rgba(255, 255, 255, .025);
  border-radius: 24px;
  padding: 30px;
  transition: .3s
}

.project-featured {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 45px;
  min-height: 510px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(87, 98, 210, .16), rgba(255, 255, 255, .025))
}

.project-number {
  font: 10px "DM Mono";
  letter-spacing: .13em;
  color: #8d8d9b
}

.project-content h3 {
  font-size: 48px;
  margin: 55px 0 12px
}

.text-link {
  display: inline-flex;
  gap: 8px;
  margin-top: 25px;
  color: #d7dbff;
  text-decoration: none;
  font-weight: 600
}

.utm-preview {
  align-self: center;
  background: rgba(9, 10, 20, .8);
  border: 1px solid rgba(150, 160, 255, .18);
  border-radius: 20px;
  padding: 20px;
  transform: rotate(3deg);
  box-shadow: 0 30px 70px rgba(0, 0, 0, .3)
}

.utm-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font: 10px "DM Mono";
  color: #a5a5b5
}

.preview-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #8b9bff
}

.utm-lines {
  display: grid;
  gap: 10px;
  margin: 22px 0
}

.utm-lines div {
  padding: 12px;
  border-radius: 9px;
  background: rgba(255, 255, 255, .045);
  display: flex;
  flex-direction: column;
  gap: 5px
}

.utm-lines b {
  font: 13px "DM Mono";
  font-weight: 400
}

.generated-url {
  font: 10px "DM Mono";
  padding: 13px;
  border-radius: 8px;
  background: rgba(125, 140, 255, .14);
  color: #b7c0ff;
  white-space: nowrap;
  overflow: hidden
}

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

.project-grid .project {
  min-height: 470px
}

.project-visual {
  height: 190px;
  border-radius: 15px;
  background: rgba(255, 255, 255, .035);
  display: flex;
  align-items: center;
  justify-content: center
}

.project-grid h3 {
  margin: 24px 0 10px
}

.ai-visual {
  gap: 8px;
  font: 11px "DM Mono";
  color: #b3b9ff
}

.ai-visual span {
  padding: 12px;
  border: 1px solid rgba(165, 180, 252, .18);
  border-radius: 8px
}

.ai-visual i {
  font-style: normal;
  color: #68687c
}

.bars {
  height: 120px;
  display: flex;
  align-items: end;
  gap: 9px
}

.bars i {
  width: 15px;
  background: linear-gradient(#8b99ff, rgba(139, 153, 255, .15));
  border-radius: 7px
}

.bars i:nth-child(1) {
  height: 35%
}

.bars i:nth-child(2) {
  height: 55%
}

.bars i:nth-child(3) {
  height: 48%
}

.bars i:nth-child(4) {
  height: 82%
}

.bars i:nth-child(5) {
  height: 70%
}

.bars i:nth-child(6) {
  height: 100%
}

.chart-visual {
  position: relative
}

.chart-label {
  position: absolute;
  bottom: 20px;
  right: 20px;
  font: 10px "DM Mono";
  color: #8b99ff
}

.alert-visual {
  flex-direction: column;
  gap: 8px
}

.alert-visual strong {
  font: 11px "DM Mono";
  letter-spacing: .1em;
  color: #ff9d9d
}

.pulse-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #ff7070;
  box-shadow: 0 0 0 0 rgba(255, 112, 112, .6);
  animation: pulse 2s infinite
}

@keyframes pulse {
  70% {
    box-shadow: 0 0 0 15px transparent
  }

  100% {
    box-shadow: 0 0 0 0 transparent
  }
}

.measurement-visual {
  gap: 22px;
  position: relative
}

.measurement-visual span {
  font: 9px "DM Mono";
  z-index: 1
}

.node {
  position: absolute;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #9ba7ff
}

.n1 {
  left: 22%;
  top: 35%
}

.n2 {
  left: 48%;
  top: 60%
}

.n3 {
  right: 22%;
  top: 31%
}

.node-line {
  position: absolute;
  width: 57%;
  height: 1px;
  background: #535783;
  transform: rotate(-3deg)
}

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

.experience-card {
  padding: 34px;
  border-radius: 22px;
  display: grid;
  grid-template-columns: 170px 1fr auto;
  gap: 30px
}

.experience-date {
  font: 14px "DM Mono";
  color: #92929d;
  padding-top: 7px
}

.experience-main h3 {
  font: 700 29px Manrope;
  margin: 0 0 4px;
  letter-spacing: -.04em
}

.experience-main h4 {
  font-size: 14px;
  margin: 0 0 15px
}

.experience-main h4 span {
  color: #8e8e99;
  font-weight: 400
}

.experience-main p {
  max-width: 650px
}

.experience-metrics {
  display: flex;
  flex-direction: column;
  gap: 7px;
  justify-content: center
}

.stack-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(255, 255, 255, .1)
}

.stack-grid article {
  padding: 28px 24px 25px;
  border-right: 1px solid rgba(255, 255, 255, .1);
  min-height: 210px
}

.stack-grid article:last-child {
  border: 0
}

.stack-grid span {
  font: 12px "DM Mono";
  color: #777
}

.stack-grid h3 {
  font: 700 21px Manrope;
  margin: 58px 0 10px
}

.stack-grid p {
  font-size: 13px;
  color: #9b9ba5;
  line-height: 1.7
}

.about-card {
  padding: 55px;
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 55px;
  border-radius: 28px
}

.profile-image {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 50%;
  border: 5px solid rgba(255, 255, 255, .08);
  box-shadow: 0 20px 50px rgba(0, 0, 0, .25)
}

.about h2 {
  font-size: 48px
}

.about p {
  max-width: 720px;
  font-size: 17px
}

.education {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  display: flex;
  flex-direction: column;
  gap: 6px
}

.education strong {
  font-size: 14px
}

.education span {
  font-size: 13px;
  color: #9696a1
}

.contact {
  position: relative;
  text-align: center;
  padding: 150px 0;
  overflow: hidden
}

.contact .eyebrow {
  justify-content: center
}

.contact h2 {
  font-size: clamp(48px, 7vw, 84px);
  position: relative
}

.contact>p {
  max-width: 620px;
  margin: auto;
  position: relative;
  font-size: 17px
}

.contact-actions {
  justify-content: center;
  position: relative
}

.contact-glow {
  position: absolute;
  width: 550px;
  height: 250px;
  background: #5f6ee9;
  opacity: .14;
  filter: blur(110px);
  left: 50%;
  top: 120px;
  transform: translateX(-50%)
}

.footer-links {
  margin-top: 65px;
  display: flex;
  justify-content: center;
  gap: 25px;
  flex-wrap: wrap;
  position: relative
}

.footer-links a {
  font: 14px "DM Mono";
  color: #a2a2ad;
  text-decoration: none
}

footer {
  width: min(1180px, calc(100% - 48px));
  margin: auto;
  padding: 25px 0;
  border-top: 1px solid rgba(255, 255, 255, .08);
  display: flex;
  justify-content: space-between;
  color: #777;
  font-size: 12px
}

.reveal {
  opacity: 0;
  transform: translateY(25px);
  transition: opacity .8s ease, transform .8s ease
}

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

.delay-1 {
  transition-delay: .1s
}

.delay-2 {
  transition-delay: .2s
}

.delay-3 {
  transition-delay: .3s
}

@media(max-width:900px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 140px
  }

  .hero-visual {
    height: 430px;
    max-width: 600px;
    width: 100%;
    margin: auto
  }

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

  .bento-grid {
    grid-template-columns: 1fr
  }

  .bento-wide {
    grid-column: auto
  }

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

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

  .experience-card {
    grid-template-columns: 1fr
  }

  .experience-metrics {
    flex-direction: row;
    justify-content: start;
    flex-wrap: wrap
  }

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

  .stack-grid article:nth-child(2) {
    border-right: 0
  }

  .about-card {
    grid-template-columns: 1fr
  }

  .nav-links {
    display: none
  }
}

@media(max-width:600px) {
  .section {
    width: min(100% - 32px, 1180px);
    padding: 85px 0
  }

  .nav {
    width: calc(100% - 20px)
  }

  .brand span:last-child {
    display: none
  }

  .nav-contact {
    padding: 9px 11px
  }

  .hero {
    min-height: auto
  }

  .hero h1 {
    font-size: 52px
  }

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

  .hero-visual {
    height: 350px
  }

  .orbit-a {
    width: 320px
  }

  .card-one {
    left: 0
  }

  .card-two {
    right: 0;
    transform: scale(.82);
    transform-origin: right center
  }

  .card-three {
    left: 5%;
    bottom: 5%
  }

  .stats {
    grid-template-columns: 1fr 1fr
  }

  .stats>div {
    min-height: 110px;
    padding: 20px
  }

  .stats strong {
    font-size: 28px
  }

  .project {
    padding: 22px
  }

  .project-content h3 {
    font-size: 38px
  }

  .utm-preview {
    transform: none
  }

  .stack-grid {
    grid-template-columns: 1fr
  }

  .stack-grid article {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
    min-height: 150px
  }

  .stack-grid h3 {
    margin: 25px 0 8px
  }

  .about-card {
    padding: 32px
  }

  .profile-image {
    width: 110px;
    height: 110px
  }

  .about h2 {
    font-size: 40px
  }

  .footer-links {
    flex-direction: column;
    gap: 15px
  }

  .contact {
    padding: 110px 0
  }

  footer {
    width: calc(100% - 32px);
    gap: 10px
  }

  .nav-actions {
    gap: 0
  }
}

/* =========================================================
   MOBILE / TABLET RESPONSIVE FIXES
   Desktop design remains unchanged.
   ========================================================= */

@media (max-width: 1100px) {
  .hero {
    grid-template-columns: 1fr 0.9fr;
    gap: 28px;
  }

  .hero h1 {
    font-size: clamp(48px, 6.4vw, 76px);
  }

  .hero-visual {
    height: 520px;
  }

  .card-one {
    left: 0;
  }

  .card-two {
    right: 0;
  }

  .card-three {
    left: 5%;
  }

  .experience-card {
    grid-template-columns: 150px 1fr;
  }

  .experience-metrics {
    grid-column: 2;
    flex-direction: row;
    justify-content: flex-start;
    flex-wrap: wrap;
  }
}

@media (max-width: 900px) {
  .nav-links {
    display: none;
  }

  .nav {
    width: calc(100% - 28px);
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 135px;
    padding-bottom: 80px;
    gap: 25px;
  }

  .hero-copy {
    width: 100%;
  }

  .hero h1 {
    max-width: 800px;
  }

  .hero-visual {
    width: min(100%, 620px);
    height: 430px;
    margin: 0 auto;
  }

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

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

  .bento-wide {
    grid-column: auto;
  }

  .project-featured {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .utm-preview {
    width: 100%;
    max-width: 620px;
    justify-self: center;
  }

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

  .experience-card {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .experience-metrics {
    grid-column: auto;
  }

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

  .stack-grid article:nth-child(2) {
    border-right: 0;
  }

  .about-card {
    grid-template-columns: 1fr;
    gap: 30px;
  }

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

  .industry-card {
    min-height: auto;
  }
}

@media (max-width: 600px) {
  .section {
    width: calc(100% - 32px);
    padding-top: 78px;
    padding-bottom: 78px;
  }

  .nav-wrap {
    top: 10px;
  }

  .nav {
    width: calc(100% - 20px);
    height: 54px;
    padding: 0 8px 0 12px;
    border-radius: 15px;
  }

  .brand {
    gap: 8px;
  }

  .header-profile-photo {
    width: 34px;
    height: 34px;
  }

  .brand span:last-child {
    display: none;
  }

  .nav-contact {
    padding: 9px 11px;
    font-size: 12px !important;
  }

  .hero {
    padding-top: 105px;
    padding-bottom: 55px;
    gap: 5px;
  }

  .eyebrow {
    font-size: 11px;
    letter-spacing: .1em;
  }

  .hero h1 {
    font-size: clamp(43px, 13vw, 62px);
    line-height: .98;
    margin: 17px 0 20px;
    letter-spacing: -.045em !important;
    word-spacing: normal;
  }

  .hero-text {
    font-size: 15px;
    line-height: 1.65;
    word-spacing: normal;
  }

  .hero-cta {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    margin-top: 25px;
  }

  .hero-cta .button {
    width: 100%;
    justify-content: center;
  }

  /*
   * Do not scale the entire hero visual with transform.
   * The old approach used fixed/relative offsets which caused clipping
   * and excessive whitespace on narrow screens.
   */
  .hero-visual {
    width: 100%;
    height: 345px;
    margin-top: 18px;
    overflow: visible;
  }

  .core-orb {
    width: 145px;
    height: 145px;
    font-size: 8px;
  }

  .core-orb b {
    font-size: 22px;
  }

  .orbit-a {
    width: min(290px, 82vw);
    height: 125px;
  }

  .orbit-b {
    width: min(220px, 65vw);
    height: 285px;
  }

  .floating-card {
    padding: 13px;
    border-radius: 14px;
  }

  .card-one {
    width: 155px;
    left: 0;
    top: 8%;
  }

  .card-two {
    width: 160px;
    right: 0;
    top: 25%;
    transform: none;
  }

  .card-three {
    left: 5%;
    bottom: 3%;
    max-width: 175px;
    padding: 11px;
  }

  .card-label,
  .floating-card small {
    font-size: 8px;
  }

  .metric-row {
    margin: 8px 0;
  }

  .metric-row strong {
    font-size: 21px;
  }

  .spark {
    height: 34px;
    gap: 3px;
  }

  .code-card code {
    font-size: 9px;
    line-height: 1.65;
  }

  .mini-icon {
    width: 32px;
    height: 32px;
    border-radius: 9px;
    flex: 0 0 auto;
  }

  .mini-card strong {
    font-size: 11px;
  }

  .stats {
    grid-template-columns: 1fr 1fr;
    border-radius: 15px;
  }

  .stats>div {
    min-height: 100px;
    padding: 17px;
  }

  .stats strong {
    font-size: 26px;
  }

  .stats span {
    font-size: 11px;
  }

  .stat-stack {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 6px !important;
  }

  .stat-stack span {
    font-size: 10px !important;
    padding: 8px 5px !important;
  }

  .section-heading {
    margin-bottom: 35px;
  }

  .section-heading h2,
  .contact h2,
  .about h2 {
    font-size: clamp(39px, 11.5vw, 56px);
    line-height: 1;
    letter-spacing: -.045em !important;
    word-spacing: normal;
  }

  .bento {
    min-height: auto;
    padding: 24px 20px 25px;
    border-radius: 18px;
  }

  .bento h3 {
    font-size: 22px;
    margin: 35px 0 10px;
  }

  .bento p,
  .project p,
  .experience-main p,
  .about p,
  .contact>p,
  .stack-grid p {
    font-size: 14px;
    line-height: 1.7;
    word-spacing: normal;
  }

  .tags span,
  .experience-metrics span {
    font-size: 11px;
  }

  .project {
    padding: 20px;
    border-radius: 18px;
  }

  .project-featured {
    gap: 25px;
  }

  .project-content h3 {
    font-size: clamp(34px, 10vw, 46px);
    line-height: 1;
    margin: 32px 0 12px;
  }

  .utm-preview {
    padding: 14px;
    transform: none;
    overflow: hidden;
  }

  .utm-lines div {
    padding: 10px;
  }

  .utm-lines b {
    font-size: 10px;
    overflow-wrap: anywhere;
  }

  .generated-url {
    font-size: 8px;
  }

  .utm-button {
    width: 100%;
    justify-content: center;
    box-sizing: border-box;
    padding: 13px 16px;
  }

  .project-grid {
    gap: 12px;
  }

  .project-grid .project {
    min-height: auto;
  }

  .project-visual {
    height: 155px;
  }

  .ai-visual {
    flex-wrap: wrap;
    padding: 15px;
  }

  .ai-visual span {
    padding: 9px;
  }

  .experience-card {
    padding: 24px 20px;
    border-radius: 18px;
  }

  .experience-date {
    font-size: 11px;
  }

  .experience-main h3 {
    font-size: 24px;
  }

  .experience-main h4 {
    font-size: 13px;
    line-height: 1.5;
  }

  .experience-metrics {
    gap: 6px;
  }

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

  .stack-grid article,
  .stack-grid article:nth-child(2) {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
    min-height: 0;
    padding: 23px 20px;
  }

  .stack-grid article:last-child {
    border-bottom: 0;
  }

  .stack-grid h3 {
    margin: 25px 0 8px;
    font-size: 20px;
  }

  .about-card {
    padding: 28px 22px;
    border-radius: 20px;
  }

  .profile-image {
    width: 105px;
    height: 105px;
  }

  .contact {
    padding: 90px 0;
  }

  .contact h2 {
    font-size: clamp(42px, 12vw, 62px);
  }

  .contact>p {
    font-size: 15px;
  }

  .contact-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .contact-actions .button {
    width: 100%;
    justify-content: center;
    box-sizing: border-box;
  }

  .footer-links {
    flex-direction: column;
    gap: 14px;
    margin-top: 45px;
  }

  footer {
    width: calc(100% - 32px);
    flex-direction: column;
    align-items: flex-start;
    gap: 9px;
    padding: 22px 0;
  }
}

@media (max-width: 380px) {
  .hero h1 {
    font-size: 42px;
  }

  .hero-visual {
    height: 315px;
  }

  .card-one {
    width: 140px;
  }

  .card-two {
    width: 145px;
  }

  .card-three {
    max-width: 155px;
  }

  .core-orb {
    width: 125px;
    height: 125px;
  }

  .orbit-a {
    width: 250px;
  }

  .orbit-b {
    width: 190px;
  }
}

/* =========================================================
   FINAL RESPONSIVE SAFETY
   ========================================================= */
html,
body {
  width: 100%;
  max-width: 100%;
}

body {
  overflow-x: hidden;
}

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

.hero,
.stats,
.bento-grid,
.project-featured,
.project-grid,
.timeline,
.stack-grid,
.about-card {
  min-width: 0;
}

.hero-copy,
.hero-visual,
.project-content,
.utm-preview,
.bento,
.project,
.experience-card,
.stack-grid article,
.about-card>div {
  min-width: 0;
}

@media (max-width: 600px) {
  .hero-visual {
    max-width: 100%;
    overflow: visible;
  }

  .hero-copy,
  .section-heading,
  .project-content,
  .about-card>div {
    overflow-wrap: anywhere;
  }

  .utm-preview {
    max-width: 100%;
  }
}

/* =========================================================
   HERO OVERLAY FIX
   The hero is designed to use the CSS orbit/cards, not a large photo.
   Force profile/header images to remain confined to their intended places.
   ========================================================= */

/* Never allow a profile/header image to become a hero-sized element. */
.hero img,
.hero picture,
.hero .profile-image,
.hero .header-profile-photo {
  display: none !important;
}

/* Keep the actual hero visual as the intended CSS composition. */
.hero-visual {
  position: relative !important;
  display: block !important;
  width: 100% !important;
  max-width: 620px !important;
  height: 570px !important;
  margin: 0 auto !important;
  overflow: visible !important;
}

/* Header photo remains a small circular profile image. */
.header-profile-photo {
  display: block !important;
  width: 40px !important;
  height: 40px !important;
  max-width: 40px !important;
  object-fit: cover !important;
  object-position: center top !important;
  border-radius: 50% !important;
}

/* Do not let any global image rule affect the header. */
.nav .header-profile-photo {
  position: relative !important;
  inset: auto !important;
  flex: 0 0 40px !important;
}

/* Desktop hero layout */
@media (min-width: 901px) {
  .hero {
    grid-template-columns: 1.15fr .85fr !important;
    min-height: 100vh !important;
    padding-top: 120px !important;
    gap: 40px !important;
  }

  .hero-copy {
    position: relative;
    z-index: 2;
  }

  .hero-visual {
    z-index: 1;
  }
}

/* Tablet */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr !important;
  }

  .hero-visual {
    width: 100% !important;
    max-width: 620px !important;
    height: 430px !important;
  }
}

/* Mobile */
@media (max-width: 600px) {
  .hero {
    padding-top: 105px !important;
  }

  .hero-visual {
    width: 100% !important;
    max-width: 100% !important;
    height: 345px !important;
    margin-top: 18px !important;
  }

  .nav .header-profile-photo {
    width: 34px !important;
    height: 34px !important;
    max-width: 34px !important;
    flex-basis: 34px !important;
  }
}

/* =========================================================
   INDUSTRIES SECTION — COMPONENT CONSISTENCY FIX
   ========================================================= */

/* Desktop: three balanced cards, matching the rest of the portfolio. */
.industries-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 14px !important;
  border: 0 !important;
  border-radius: 0 !important;
  overflow: visible !important;
  background: transparent !important;
}

.industry-card {
  min-width: 0 !important;
  min-height: 285px !important;
  padding: 28px !important;
  border: 1px solid rgba(255, 255, 255, .09) !important;
  border-radius: 22px !important;
  background: rgba(255, 255, 255, .035) !important;
  position: relative !important;
  display: flex !important;
  flex-direction: column !important;
  transition: transform .3s ease, border-color .3s ease, background .3s ease !important;
}

.industry-card:hover {
  transform: translateY(-5px) !important;
  border-color: rgba(165, 180, 252, .4) !important;
  background: rgba(255, 255, 255, .045) !important;
}

.light .industry-card {
  background: rgba(255, 255, 255, .48) !important;
  border-color: rgba(0, 0, 0, .08) !important;
}

.industry-number {
  display: block !important;
  margin: 0 0 32px !important;
  font: 12px "DM Mono", monospace !important;
  letter-spacing: .08em !important;
  color: #8d8d9b !important;
}

.industry-icon {
  width: 42px !important;
  height: 42px !important;
  margin: 0 0 auto !important;
  display: grid !important;
  place-items: center !important;
  border-radius: 12px !important;
  background: rgba(129, 140, 248, .13) !important;
  color: #a5b4fc !important;
  font-size: 21px !important;
}

.industry-card h3 {
  margin: 30px 0 10px !important;
  font: 700 24px/1.2 Manrope, sans-serif !important;
  letter-spacing: -.035em !important;
  word-spacing: normal !important;
}

.industry-card p {
  margin: 0 !important;
  color: #a4a4ae !important;
  font-size: 14px !important;
  line-height: 1.7 !important;
  word-spacing: normal !important;
}

.light .industry-card p {
  color: #65656c !important;
}

/* Tablet */
@media (max-width: 900px) {
  .industries-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 14px !important;
  }

  .industry-card {
    min-height: 260px !important;
  }
}

/* Mobile */
@media (max-width: 600px) {
  .industries-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  .industry-card {
    min-height: 0 !important;
    padding: 24px 20px !important;
    border-radius: 18px !important;
  }

  .industry-number {
    margin-bottom: 28px !important;
    font-size: 11px !important;
  }

  .industry-icon {
    margin-bottom: 0 !important;
  }

  .industry-card h3 {
    margin-top: 24px !important;
    font-size: 22px !important;
  }

  .industry-card p {
    font-size: 14px !important;
    line-height: 1.7 !important;
  }
}

/* Very small phones */
@media (max-width: 380px) {
  .industry-card {
    padding: 22px 18px !important;
  }

  .industry-card h3 {
    font-size: 20px !important;
  }
}

/* =========================================================
   MOBILE NAVIGATION
   Hamburger centered in the mobile header with the same
   desktop navigation options available in a dropdown.
   ========================================================= */

.mobile-menu-toggle {
  display: none;
  width: 38px;
  height: 38px;
  padding: 9px;
  margin: 0;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 10px;
  background: rgba(255, 255, 255, .045);
  color: inherit;
  cursor: pointer;
  flex: 0 0 38px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
}

.mobile-menu-toggle span {
  display: block;
  width: 16px;
  height: 1.5px;
  border-radius: 2px;
  background: currentColor;
  transition: transform .25s ease, opacity .2s ease;
}

.mobile-menu {
  display: none;
}

@media (max-width: 600px) {
  .nav {
    position: relative;
  }

  .mobile-menu-toggle {
    display: flex;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
  }

  .mobile-menu-toggle:hover {
    transform: translate(-50%, -50%);
  }

  .mobile-menu-toggle.active span:nth-child(1) {
    transform: translateY(5.5px) rotate(45deg);
  }

  .mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .mobile-menu-toggle.active span:nth-child(3) {
    transform: translateY(-5.5px) rotate(-45deg);
  }

  .mobile-menu {
    position: absolute;
    top: calc(100% + 9px);
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 15px;
    background: rgba(15, 15, 20, .94);
    box-shadow: 0 20px 50px rgba(0, 0, 0, .35);
    backdrop-filter: blur(18px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
    z-index: 20;
  }

  .mobile-menu.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .mobile-menu a {
    display: block;
    padding: 13px 14px;
    border-radius: 10px;
    color: inherit;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
  }

  .mobile-menu a:hover,
  .mobile-menu a:focus-visible {
    background: rgba(255, 255, 255, .07);
  }

  .light .mobile-menu {
    background: rgba(250, 250, 250, .96);
    border-color: rgba(0, 0, 0, .1);
  }

  .light .mobile-menu a:hover,
  .light .mobile-menu a:focus-visible {
    background: rgba(0, 0, 0, .05);
  }
}