:root {
  --navy-950: #041126;
  --navy-900: #071831;
  --navy-850: #0a2040;
  --navy-800: #0d2a52;
  --blue-700: #1748c9;
  --blue-600: #245dff;
  --blue-500: #3972ff;
  --cyan-400: #62dcff;
  --cyan-200: #bcefff;
  --cyan-100: #e5f9ff;
  --mist: #f2f7ff;
  --white: #ffffff;
  --ink: #10233f;
  --slate: #4e627d;
  --line: #d7e3f2;
  --header-height: 78px;
  --shadow-soft: 0 24px 60px rgba(7, 35, 77, 0.12);
  --shadow-card: 0 14px 36px rgba(12, 43, 86, 0.08);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --content-width: 1180px;
  --font-sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 24px);
}

body {
  margin: 0;
  min-width: 0;
  overflow-x: clip;
  background: var(--navy-950);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1.02rem;
  line-height: 1.68;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.menu-open,
body.chatbot-open {
  position: fixed;
  right: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
  overscroll-behavior: none;
  top: var(--page-scroll-lock-offset, 0);
}

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

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

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

button {
  font: inherit;
}

:focus-visible {
  outline: 3px solid var(--cyan-400);
  outline-offset: 4px;
}

::selection {
  background: var(--cyan-200);
  color: var(--navy-950);
}

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

h1,
h2,
h3 {
  color: var(--navy-950);
  font-weight: 760;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

h1 {
  max-width: 780px;
  margin-bottom: 1.5rem;
  font-size: clamp(2.75rem, 6.1vw, 5.75rem);
}

h1 em {
  color: var(--cyan-400);
  font-style: normal;
}

h2 {
  max-width: 760px;
  margin-bottom: 1.25rem;
  font-size: clamp(2rem, 4vw, 3.75rem);
}

h3 {
  font-size: clamp(1.2rem, 2vw, 1.55rem);
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 2000;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  background: var(--white);
  color: var(--navy-950);
  font-weight: 750;
  transform: translateY(-160%);
  transition: transform 180ms ease;
}

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

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.content-shell,
.nav-shell,
.hero-shell {
  width: min(calc(100% - 40px), var(--content-width));
  margin-inline: auto;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  height: var(--header-height);
  border-bottom: 1px solid transparent;
  background: rgba(4, 17, 38, 0.68);
  color: var(--white);
  backdrop-filter: blur(18px);
  transition: background 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}

.site-header.is-scrolled {
  border-color: rgba(188, 239, 255, 0.12);
  background: rgba(4, 17, 38, 0.94);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.16);
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 100%;
  gap: 2rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 0.75rem;
  font-weight: 760;
}

.brand-logo {
  display: block;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
}

.brand-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-name {
  font-size: 1.02rem;
  letter-spacing: -0.01em;
}

.primary-navigation {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(0.8rem, 1.4vw, 1.45rem);
  font-size: 0.88rem;
  font-weight: 680;
}

.primary-navigation > a:not(.nav-cv) {
  position: relative;
  padding-block: 0.9rem;
  color: rgba(255, 255, 255, 0.76);
  transition: color 160ms ease;
}

.primary-navigation > a:not(.nav-cv)::after {
  position: absolute;
  right: 0;
  bottom: 0.55rem;
  left: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--cyan-400);
  content: "";
  opacity: 0;
  transform: scaleX(0.3);
  transition: opacity 160ms ease, transform 160ms ease;
}

.primary-navigation > a:hover,
.primary-navigation > a.is-active {
  color: var(--white);
}

.primary-navigation > a:hover::after,
.primary-navigation > a.is-active::after {
  opacity: 1;
  transform: scaleX(1);
}

.language-status {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  gap: 0.45rem;
  padding: 0.4rem 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.76rem;
}

.globe-icon {
  color: var(--cyan-400);
  font-size: 1.1rem;
  line-height: 1;
}

.nav-cv {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0.65rem 1rem;
  border: 1px solid rgba(98, 220, 255, 0.45);
  border-radius: 999px;
  background: rgba(36, 93, 255, 0.14);
  color: var(--white);
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.nav-cv:hover {
  border-color: var(--cyan-400);
  background: rgba(36, 93, 255, 0.36);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  padding: 11px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  margin-block: 5px;
  border-radius: 3px;
  background: var(--white);
  transition: transform 180ms ease, opacity 180ms ease;
}

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

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

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

.hero {
  position: relative;
  display: grid;
  min-height: max(760px, 100svh);
  align-items: center;
  overflow: hidden;
  padding: calc(var(--header-height) + 70px) 0 78px;
  background:
    radial-gradient(circle at 86% 34%, rgba(36, 93, 255, 0.24), transparent 31%),
    radial-gradient(circle at 11% 72%, rgba(98, 220, 255, 0.09), transparent 24%),
    linear-gradient(135deg, var(--navy-950) 0%, var(--navy-900) 58%, #09295a 100%);
  color: var(--white);
}

.hero::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 120px;
  background: linear-gradient(transparent, rgba(4, 17, 38, 0.42));
  content: "";
  pointer-events: none;
}

.hero-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.34;
  pointer-events: none;
}

.hero-pattern::before {
  position: absolute;
  top: 18%;
  left: -3%;
  width: 42%;
  height: 55%;
  background-image:
    linear-gradient(rgba(98, 220, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(98, 220, 255, 0.07) 1px, transparent 1px);
  background-size: 62px 62px;
  content: "";
  mask-image: linear-gradient(90deg, black, transparent);
  transform: perspective(500px) rotateY(18deg) rotateZ(-4deg);
}

.hero-pattern::after {
  position: absolute;
  top: 27%;
  left: 9%;
  width: 11px;
  height: 11px;
  border: 2px solid var(--cyan-400);
  border-radius: 50%;
  box-shadow:
    170px 72px 0 -2px var(--cyan-400),
    340px -36px 0 -3px var(--blue-500),
    410px 148px 0 -2px var(--cyan-400);
  content: "";
}

.hero-shell {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
  align-items: center;
  gap: clamp(3rem, 6vw, 6rem);
}

.eyebrow,
.section-kicker {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1.2rem;
  color: var(--blue-600);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

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

.eyebrow > span {
  width: 26px;
  height: 1px;
  background: currentColor;
}

.hero h1 {
  color: var(--white);
}

.hero-intro {
  margin-bottom: 0.7rem;
  color: var(--cyan-200);
  font-size: clamp(0.92rem, 1.25vw, 1.04rem);
  font-weight: 720;
  letter-spacing: 0.01em;
}

.hero-role {
  margin-bottom: 0.85rem;
  color: rgba(255, 255, 255, 0.74);
  font-size: clamp(0.78rem, 1.05vw, 0.9rem);
  font-weight: 600;
  line-height: 1.5;
}

.hero-role span {
  margin-inline: 0.25rem;
  color: var(--blue-500);
}

.hero-message {
  max-width: 640px;
  margin-bottom: 1.2rem;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1.08rem, 1.7vw, 1.35rem);
  line-height: 1.65;
}

.supporting-line {
  margin-bottom: 2rem;
  color: var(--cyan-200);
  font-size: 0.88rem;
  font-weight: 680;
  letter-spacing: 0.03em;
}

.supporting-line span {
  margin-inline: 0.4rem;
  color: var(--blue-500);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-bottom: 2.2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0.8rem 1.35rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 750;
  transition: transform 170ms ease, box-shadow 170ms ease, background 170ms ease, border-color 170ms ease;
}

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

.button-primary {
  background: var(--blue-600);
  color: var(--white);
  box-shadow: 0 12px 28px rgba(36, 93, 255, 0.3);
}

.button-primary:hover {
  background: var(--blue-500);
  box-shadow: 0 16px 34px rgba(36, 93, 255, 0.4);
}

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

.button-secondary:hover {
  border-color: var(--cyan-400);
  background: rgba(98, 220, 255, 0.08);
}

.role-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.role-list li {
  padding: 0.42rem 0.72rem;
  border: 1px solid rgba(188, 239, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  color: rgba(255, 255, 255, 0.67);
  font-size: 0.76rem;
}

.portrait-stage {
  position: relative;
  width: min(100%, 470px);
  margin-inline: auto;
}

.portrait-frame {
  position: relative;
  z-index: 2;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border: 0;
  border-radius: 34px;
  background: var(--navy-800);
  box-shadow: 0 28px 62px rgba(0, 0, 0, 0.25);
}

.portrait-frame::after {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(to bottom, transparent 62%, rgba(7, 24, 49, 0.7) 100%),
    linear-gradient(90deg, rgba(7, 24, 49, 0.26), transparent 17%, transparent 83%, rgba(7, 24, 49, 0.26));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.045);
  content: "";
  pointer-events: none;
}

.portrait-frame picture,
.portrait-frame img {
  width: 100%;
  height: 100%;
}

.portrait-frame picture {
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 84%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 84%, transparent 100%);
}

.portrait-frame img {
  object-fit: cover;
  object-position: 50% 38%;
}

.portrait-stage::before {
  position: absolute;
  z-index: 3;
  top: 17%;
  right: -10px;
  width: 1px;
  height: 38%;
  background: linear-gradient(transparent, rgba(98, 220, 255, 0.6), transparent);
  content: "";
}

.portrait-stage::after {
  position: absolute;
  z-index: 0;
  top: 17%;
  right: -4%;
  width: 70%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(36, 93, 255, 0.22);
  content: "";
  filter: blur(65px);
}

.portrait-orbit {
  position: absolute;
  z-index: 1;
  inset: -7% -12% 10% -12%;
  border: 1px dashed rgba(98, 220, 255, 0.18);
  border-radius: 48%;
  transform: rotate(-8deg);
}

.orbit-node {
  position: absolute;
  width: 11px;
  height: 11px;
  border: 2px solid var(--cyan-400);
  border-radius: 50%;
  background: var(--navy-900);
  box-shadow: 0 0 0 6px rgba(98, 220, 255, 0.08);
}

.node-a { top: 15%; left: 8%; }
.node-b { top: 58%; right: -1%; }
.node-c { bottom: 6%; left: 18%; }

.portrait-label {
  position: absolute;
  z-index: 4;
  right: -1.2rem;
  bottom: 2.2rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.8rem 1rem;
  border: 1px solid rgba(188, 239, 255, 0.2);
  border-radius: 12px;
  background: rgba(7, 24, 49, 0.88);
  color: var(--white);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(12px);
  font-size: 0.82rem;
  font-weight: 700;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan-400);
  box-shadow: 0 0 0 5px rgba(98, 220, 255, 0.12);
}

.scroll-cue {
  position: absolute;
  z-index: 3;
  bottom: 22px;
  left: 50%;
  display: grid;
  width: 32px;
  height: 48px;
  place-items: start center;
  padding-top: 9px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  transform: translateX(-50%);
}

.scroll-cue span {
  width: 4px;
  height: 9px;
  border-radius: 999px;
  background: var(--cyan-400);
  animation: scroll-cue 1.8s ease-in-out infinite;
}

@keyframes scroll-cue {
  0%, 100% { opacity: 0.35; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(16px); }
}

.section {
  position: relative;
  padding-block: clamp(4rem, 6.5vw, 5.75rem);
  scroll-margin-top: calc(var(--header-height) + 20px);
}

#about {
  padding-block: clamp(3.6rem, 5.5vw, 5rem);
}

.section-light {
  background: var(--white);
}

.section-mist {
  background:
    linear-gradient(135deg, rgba(98, 220, 255, 0.06), transparent 35%),
    var(--mist);
}

.section-dark {
  overflow: hidden;
  background:
    radial-gradient(circle at 83% 17%, rgba(36, 93, 255, 0.16), transparent 24%),
    var(--navy-900);
  color: rgba(255, 255, 255, 0.72);
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  align-items: start;
  gap: clamp(2.5rem, 6vw, 5.5rem);
}

.about-copy {
  padding-top: 0.3rem;
}

.about-copy .lead {
  margin-bottom: 1.4rem;
  color: var(--ink);
  font-size: clamp(1.1rem, 2vw, 1.42rem);
  font-weight: 620;
  line-height: 1.65;
}

.about-copy > p:not(.lead) {
  max-width: 680px;
  color: var(--slate);
  font-size: 1.08rem;
  line-height: 1.72;
}

.focus-strip {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2.2rem;
  padding-top: 1.35rem;
  border-top: 1px solid var(--line);
  color: var(--blue-700);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.focus-strip i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--cyan-400);
}

.section-heading {
  margin-bottom: clamp(2rem, 3.5vw, 3.2rem);
}

.section-heading h2 {
  margin-bottom: 0;
}

.section-heading-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 3rem;
}

.section-heading-row > p {
  max-width: 440px;
  margin-bottom: 0.6rem;
  color: var(--slate);
  font-size: 1.03rem;
  line-height: 1.7;
}

.heading-on-dark h2 {
  color: var(--white);
}

.heading-on-dark > p {
  color: rgba(255, 255, 255, 0.72);
}

.capability-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1.25rem, 3vw, 2.5rem);
  border-top: 1px solid rgba(23, 72, 201, 0.16);
}

.capability-card {
  position: relative;
  min-height: 0;
  overflow: visible;
  padding: 2rem 0;
  border: 0;
  border-bottom: 1px solid rgba(23, 72, 201, 0.16);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transition: border-color 180ms ease;
}

.capability-card:hover {
  border-color: var(--blue-600);
  box-shadow: none;
  transform: none;
}

.capability-card::after {
  display: none;
}

.capability-index {
  position: static;
  display: block;
  margin-bottom: 1.4rem;
  color: var(--blue-700);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.72rem;
  font-weight: 750;
}

.capability-symbol {
  position: relative;
  width: 66px;
  height: 66px;
  margin-bottom: 2.35rem;
  border: 1px solid rgba(36, 93, 255, 0.13);
  border-radius: 18px;
  background: linear-gradient(145deg, var(--cyan-100), rgba(36, 93, 255, 0.08));
}

.flow-symbol span {
  position: absolute;
  width: 10px;
  height: 10px;
  border: 2px solid var(--blue-600);
  border-radius: 50%;
  background: var(--white);
}

.flow-symbol span:nth-child(1) { top: 15px; left: 13px; }
.flow-symbol span:nth-child(2) { top: 28px; right: 12px; }
.flow-symbol span:nth-child(3) { bottom: 10px; left: 18px; }

.flow-symbol::before,
.flow-symbol::after {
  position: absolute;
  height: 1px;
  background: var(--blue-600);
  content: "";
  transform-origin: left;
}

.flow-symbol::before { top: 23px; left: 22px; width: 28px; transform: rotate(18deg); }
.flow-symbol::after { top: 38px; left: 24px; width: 27px; transform: rotate(-28deg); }

.support-symbol::before {
  position: absolute;
  inset: 17px;
  border: 2px solid var(--blue-600);
  border-radius: 50%;
  content: "";
}

.support-symbol::after {
  position: absolute;
  bottom: 13px;
  left: 50%;
  width: 22px;
  height: 10px;
  border: 2px solid var(--blue-600);
  border-top: 0;
  border-radius: 0 0 12px 12px;
  content: "";
  transform: translateX(-50%);
}

.support-symbol span {
  position: absolute;
  top: 14px;
  width: 6px;
  height: 22px;
  border-radius: 4px;
  background: var(--blue-600);
}

.support-symbol span:first-child { left: 12px; }
.support-symbol span:last-child { right: 12px; }

.email-symbol span {
  position: absolute;
  inset: 16px 12px;
  border: 2px solid var(--blue-600);
  border-radius: 5px;
}

.email-symbol span::before,
.email-symbol span::after {
  position: absolute;
  top: 4px;
  width: 21px;
  height: 2px;
  background: var(--blue-600);
  content: "";
}

.email-symbol span::before { left: 1px; transform: rotate(34deg); }
.email-symbol span::after { right: 1px; transform: rotate(-34deg); }

.qa-symbol::before {
  position: absolute;
  top: 14px;
  right: 14px;
  bottom: 14px;
  left: 14px;
  border: 2px solid var(--blue-600);
  border-radius: 50%;
  content: "";
}

.qa-symbol::after {
  position: absolute;
  right: 10px;
  bottom: 12px;
  width: 19px;
  height: 3px;
  border-radius: 2px;
  background: var(--blue-600);
  content: "";
  transform: rotate(48deg);
}

.qa-symbol span:first-child {
  position: absolute;
  top: 29px;
  left: 23px;
  width: 9px;
  height: 5px;
  border-bottom: 2px solid var(--blue-600);
  border-left: 2px solid var(--blue-600);
  transform: rotate(-45deg);
}

.capability-card h3 {
  margin-bottom: 0.7rem;
}

.capability-card p {
  margin-bottom: 0;
  color: var(--slate);
  font-size: 1rem;
  line-height: 1.68;
}

.project-pattern {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(98, 220, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(98, 220, 255, 0.035) 1px, transparent 1px);
  background-size: 70px 70px;
  mask-image: linear-gradient(to bottom, transparent, black 20%, black 80%, transparent);
  pointer-events: none;
}

.project-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
}

.project-card {
  overflow: hidden;
  border: 1px solid rgba(188, 239, 255, 0.12);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.045);
  transition: border-color 190ms ease, transform 190ms ease, background 190ms ease;
}

.project-card:not(.project-card-featured) {
  display: flex;
  flex-direction: column;
}

.project-card:not(.project-card-featured) .project-body {
  flex: 1;
}

.project-card:hover {
  border-color: rgba(98, 220, 255, 0.35);
  background: rgba(255, 255, 255, 0.065);
  transform: translateY(-5px);
}

.project-card-featured {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
}

.project-visual {
  position: relative;
  min-height: 290px;
  overflow: hidden;
  border-bottom: 1px solid rgba(188, 239, 255, 0.1);
  background:
    radial-gradient(circle at 65% 35%, rgba(98, 220, 255, 0.15), transparent 29%),
    linear-gradient(145deg, rgba(36, 93, 255, 0.24), rgba(4, 17, 38, 0.3));
}

.project-card-featured .project-visual {
  min-height: 430px;
  border-right: 1px solid rgba(188, 239, 255, 0.1);
  border-bottom: 0;
}

.project-visual::before {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(98, 220, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(98, 220, 255, 0.055) 1px, transparent 1px);
  background-size: 42px 42px;
  content: "";
}

.visual-label {
  position: absolute;
  z-index: 2;
  top: 1.25rem;
  left: 1.4rem;
  color: var(--cyan-400);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.65rem;
  font-weight: 760;
  letter-spacing: 0.14em;
}

.visual-node {
  position: absolute;
  z-index: 2;
  display: grid;
  width: 88px;
  height: 88px;
  place-items: center;
  border: 1px solid rgba(98, 220, 255, 0.42);
  border-radius: 50%;
  background: rgba(7, 24, 49, 0.82);
  color: var(--white);
  box-shadow: 0 0 0 10px rgba(98, 220, 255, 0.035);
  font-size: 0.72rem;
  font-weight: 700;
}

.source-node { top: 28%; left: 12%; }
.review-node { top: 48%; left: 45%; }
.delivery-node { top: 22%; right: 10%; }

.visual-path {
  position: absolute;
  z-index: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--cyan-400), var(--blue-500));
  transform-origin: left;
}

.path-one { top: 46%; left: 25%; width: 26%; transform: rotate(16deg); }
.path-two { top: 49%; left: 57%; width: 25%; transform: rotate(-25deg); }

.signal {
  position: absolute;
  z-index: 3;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan-400);
  box-shadow: 0 0 14px var(--cyan-400);
}

.signal-one { top: 47%; left: 35%; }
.signal-two { top: 39%; right: 27%; }

.mail-stack {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 31%;
  width: 148px;
  height: 105px;
  transform: translate(-50%, -40%);
}

.mail-stack span {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(98, 220, 255, 0.48);
  border-radius: 12px;
  background: rgba(7, 24, 49, 0.84);
}

.mail-stack span:nth-child(2) { transform: translate(16px, -16px); opacity: 0.7; }
.mail-stack span:nth-child(3) { transform: translate(32px, -32px); opacity: 0.4; }

.mail-stack span:first-child::before,
.mail-stack span:first-child::after {
  position: absolute;
  top: 21px;
  width: 82px;
  height: 1px;
  background: var(--cyan-400);
  content: "";
}

.mail-stack span:first-child::before { left: 5px; transform: rotate(30deg); }
.mail-stack span:first-child::after { right: 5px; transform: rotate(-30deg); }

.control-lines {
  position: absolute;
  z-index: 2;
  top: 39%;
  right: 14%;
  width: 120px;
}

.control-lines i {
  display: block;
  height: 4px;
  margin-block: 18px;
  border-radius: 4px;
  background: rgba(188, 239, 255, 0.24);
}

.control-lines i::after {
  display: block;
  width: 16px;
  height: 16px;
  border: 3px solid var(--navy-900);
  border-radius: 50%;
  background: var(--cyan-400);
  content: "";
  transform: translate(40px, -6px);
}

.control-lines i:nth-child(2)::after { transform: translate(78px, -6px); }
.control-lines i:nth-child(3)::after { transform: translate(24px, -6px); }

.browser-frame {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  width: 70%;
  height: 60%;
  padding: 25% 11% 10%;
  border: 1px solid rgba(98, 220, 255, 0.38);
  border-radius: 14px;
  background: rgba(7, 24, 49, 0.8);
  box-shadow: 24px 24px 0 rgba(36, 93, 255, 0.08);
  transform: translate(-50%, -42%);
}

.browser-bar {
  position: absolute;
  inset: 0 0 auto;
  height: 28px;
  border-bottom: 1px solid rgba(98, 220, 255, 0.18);
}

.browser-bar::before {
  position: absolute;
  top: 11px;
  left: 13px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan-400);
  box-shadow: 12px 0 rgba(98, 220, 255, 0.5), 24px 0 rgba(98, 220, 255, 0.25);
  content: "";
}

.browser-copy {
  display: block;
  height: 7px;
  margin-bottom: 14px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.76);
}

.line-long { width: 78%; }
.line-short { width: 53%; background: rgba(188, 239, 255, 0.38); }

.browser-action {
  display: block;
  width: 72px;
  height: 25px;
  margin-top: 24px;
  border-radius: 999px;
  background: var(--blue-600);
}

.project-body {
  padding: clamp(1.6rem, 3.5vw, 2.5rem);
}

.project-number {
  float: right;
  color: rgba(98, 220, 255, 0.3);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.82rem;
}

.project-type {
  margin-bottom: 0.6rem;
  color: var(--cyan-400);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.project-card h3 {
  margin-bottom: 1rem;
  color: var(--white);
  font-size: clamp(1.55rem, 3vw, 2.2rem);
}

.project-body > p:not(.project-type, .project-note) {
  color: rgba(255, 255, 255, 0.78);
  font-size: 1rem;
  line-height: 1.72;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.project-tags li {
  padding: 0.4rem 0.68rem;
  border: 1px solid rgba(188, 239, 255, 0.15);
  border-radius: 7px;
  color: var(--cyan-200);
  font-size: 0.75rem;
  font-weight: 650;
}

.project-note {
  margin: 1.25rem 0 0;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(188, 239, 255, 0.1);
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.84rem;
  line-height: 1.65;
}

.projects-section {
  border-block: 1px solid rgba(23, 72, 201, 0.1);
  background: #edf3f9;
}

.projects-section .section-heading {
  padding-bottom: clamp(1.75rem, 3vw, 2.5rem);
  border-bottom: 1px solid rgba(16, 35, 63, 0.16);
}

.projects-section .section-heading-row > p {
  color: #41566f;
}

.project-list {
  border-top: 1px solid rgba(16, 35, 63, 0.16);
}

.project-entry {
  display: grid;
  grid-template-columns: minmax(150px, 0.36fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 5.75rem);
  padding-block: clamp(2.5rem, 5vw, 4.25rem);
  border-bottom: 1px solid rgba(16, 35, 63, 0.16);
}

.project-index {
  align-self: start;
}

.projects-section .project-number {
  display: block;
  margin-bottom: 1.25rem;
  color: var(--blue-700);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.project-category {
  max-width: 180px;
  margin-bottom: 0;
  color: #4a6079;
  font-size: 0.78rem;
  font-weight: 760;
  letter-spacing: 0.09em;
  line-height: 1.5;
  text-transform: uppercase;
}

.project-content {
  max-width: 790px;
}

.project-content h3 {
  margin-bottom: 1rem;
  color: var(--navy-950);
  font-size: clamp(1.7rem, 3vw, 2.55rem);
}

.project-content > p {
  max-width: 760px;
  margin-bottom: 1.6rem;
  color: #3f546d;
  font-size: 1.04rem;
  line-height: 1.72;
}

.project-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  padding: 0;
  border-top: 1px solid rgba(16, 35, 63, 0.12);
  list-style: none;
}

.project-details li {
  position: relative;
  padding: 0.8rem 1rem 0.8rem 1.15rem;
  border-bottom: 1px solid rgba(16, 35, 63, 0.12);
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 650;
  line-height: 1.5;
}

.project-details li::before {
  position: absolute;
  top: 1.33rem;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--blue-600);
  content: "";
}

.project-action {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 44px;
  margin-top: 1.5rem;
  padding-block: 0.35rem;
  border-bottom: 1px solid rgba(23, 72, 201, 0.32);
  color: var(--blue-700);
  font-size: 0.9rem;
  font-weight: 760;
  transition: border-color 160ms ease, color 160ms ease;
}

.project-action:hover {
  border-color: var(--blue-600);
  color: var(--blue-600);
}

.experience-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  align-items: start;
  gap: clamp(2.5rem, 6vw, 5.5rem);
}

.experience-heading {
  position: sticky;
  top: calc(var(--header-height) + 48px);
}

.experience-heading > p:last-child {
  max-width: 440px;
  color: var(--slate);
  font-size: 1.03rem;
  line-height: 1.7;
}

.experience-list {
  display: grid;
  gap: 1rem;
}

.experience-card {
  position: relative;
  padding: clamp(1.45rem, 3vw, 2.1rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: 0 8px 24px rgba(12, 43, 86, 0.055);
}

.experience-card::before {
  position: absolute;
  top: 2.3rem;
  left: -6px;
  width: 11px;
  height: 11px;
  border: 3px solid var(--white);
  border-radius: 50%;
  background: var(--blue-600);
  box-shadow: 0 0 0 1px rgba(36, 93, 255, 0.25);
  content: "";
}

.experience-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1rem;
  color: var(--blue-700);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.75rem;
  font-weight: 750;
}

.experience-location {
  padding: 0.28rem 0.58rem;
  border-radius: 999px;
  background: var(--mist);
  color: var(--slate);
  font-family: var(--font-sans);
  font-size: 0.68rem;
}

.experience-card h3 {
  margin-bottom: 0.4rem;
}

.organization {
  margin-bottom: 1.05rem;
  color: var(--slate);
  font-weight: 650;
}

.experience-card ul {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--slate);
  font-size: 1rem;
  line-height: 1.68;
}

.experience-card li {
  margin-block: 0.48rem;
  padding-left: 0.35rem;
}

.experience-card li::marker {
  color: var(--blue-600);
}

.education-section {
  padding-block: clamp(3.1rem, 5vw, 4.25rem);
  background: var(--cyan-100);
}

.education-layout {
  display: grid;
  grid-template-columns: minmax(220px, 0.6fr) minmax(0, 1.4fr);
  align-items: start;
  gap: clamp(2.5rem, 7vw, 6rem);
}

.education-heading h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 4vw, 3.3rem);
}

.education-list {
  border-top: 1px solid rgba(23, 72, 201, 0.2);
}

.education-entry {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding-block: 1.25rem;
  border-bottom: 1px solid rgba(23, 72, 201, 0.2);
}

.education-entry h3 {
  margin-bottom: 0.25rem;
  color: var(--navy-950);
  font-size: 1.08rem;
  letter-spacing: -0.02em;
}

.education-entry p {
  margin-bottom: 0;
  color: var(--slate);
  font-size: 0.92rem;
}

.education-entry time {
  flex: 0 0 auto;
  color: var(--blue-700);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.8rem;
  font-weight: 800;
}

.education-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.7fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
  padding: clamp(1.75rem, 4vw, 2.75rem);
  border: 1px solid rgba(23, 72, 201, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow-card);
}

.education-card h2 {
  margin-bottom: 0;
  font-size: clamp(1.9rem, 4vw, 3.2rem);
}

.education-detail {
  padding-left: 2rem;
  border-left: 2px solid var(--blue-600);
}

.education-detail p {
  margin-bottom: 0.2rem;
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.55;
}

.education-detail time {
  color: var(--blue-700);
  font-size: 0.85rem;
  font-weight: 800;
}

.contact-section {
  overflow: hidden;
  padding-block: clamp(3.5rem, 5vw, 4.5rem);
  background: var(--navy-900);
  color: var(--white);
}

.contact-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.25;
  pointer-events: none;
}

.contact-pattern::before {
  position: absolute;
  right: -8%;
  bottom: -35%;
  width: 56%;
  aspect-ratio: 1;
  border: 1px solid rgba(98, 220, 255, 0.25);
  border-radius: 50%;
  box-shadow:
    0 0 0 70px rgba(98, 220, 255, 0.025),
    0 0 0 140px rgba(98, 220, 255, 0.02);
  content: "";
}

.contact-layout {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(2.5rem, 6vw, 5rem);
}

.contact-copy h2 {
  color: var(--white);
}

.contact-copy > p:last-child {
  max-width: 590px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 1.07rem;
  line-height: 1.7;
}

.contact-actions {
  display: grid;
  align-content: center;
  gap: 0;
}

.email-action {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  justify-content: space-between;
  gap: 2.5rem;
  min-height: 48px;
  padding: 0.78rem 1rem;
  border: 1px solid rgba(98, 220, 255, 0.32);
  border-radius: 8px;
  background: var(--blue-600);
  color: var(--white);
  font-size: 0.94rem;
  font-weight: 750;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.email-action:hover {
  border-color: var(--cyan-400);
  background: var(--blue-700);
  transform: translateY(-2px);
}

.social-group > p {
  margin-bottom: 0.8rem;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.78rem;
  font-weight: 720;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.social-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.62rem;
}

.social-links a {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(188, 239, 255, 0.18);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.82);
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease, transform 160ms ease;
}

.social-links a:hover {
  border-color: rgba(98, 220, 255, 0.6);
  background: rgba(98, 220, 255, 0.08);
  color: var(--cyan-400);
  transform: translateY(-2px);
}

.social-links svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.social-links a[aria-label="Instagram"] svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.contact-link {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  min-height: 80px;
  padding: 0.9rem 1.1rem;
  border: 1px solid rgba(188, 239, 255, 0.14);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.045);
  transition: border-color 170ms ease, background 170ms ease, transform 170ms ease;
}

.contact-link:hover {
  border-color: rgba(98, 220, 255, 0.48);
  background: rgba(98, 220, 255, 0.075);
  transform: translateX(4px);
}

.contact-icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 12px;
  background: rgba(36, 93, 255, 0.24);
  color: var(--cyan-400);
  font-weight: 800;
}

.linkedin-icon {
  font-family: Arial, sans-serif;
  font-size: 0.92rem;
}

.contact-link small,
.contact-link strong {
  display: block;
}

.contact-link small {
  margin-bottom: 0.16rem;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-link strong {
  overflow-wrap: anywhere;
  color: var(--white);
  font-size: clamp(0.84rem, 1.5vw, 0.98rem);
}

.contact-link > i {
  color: var(--cyan-400);
  font-style: normal;
}

.site-footer {
  padding-block: 2.15rem;
  border-top: 1px solid rgba(188, 239, 255, 0.1);
  background: var(--navy-950);
  color: rgba(255, 255, 255, 0.72);
}

.footer-layout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2.75rem;
}

.footer-layout p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.84rem;
  line-height: 1.5;
}

.footer-layout strong {
  color: rgba(255, 255, 255, 0.82);
}

.footer-social-links {
  flex: 0 1 auto;
}

.footer-social-links a {
  border-color: rgba(188, 239, 255, 0.28);
  background: rgba(255, 255, 255, 0.025);
  color: rgba(255, 255, 255, 0.94);
}

.back-to-top {
  position: fixed;
  z-index: 900;
  right: 18px;
  bottom: 18px;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(98, 220, 255, 0.32);
  border-radius: 50%;
  background: rgba(7, 24, 49, 0.9);
  color: var(--cyan-400);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 170ms ease, transform 170ms ease, background 170ms ease;
  backdrop-filter: blur(12px);
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top.is-obscured {
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
}

.back-to-top.is-chatbot-open {
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
}

.back-to-top:hover {
  background: var(--blue-600);
  color: var(--white);
}

.portfolio-chatbot {
  position: fixed;
  z-index: 950;
  right: 18px;
  bottom: 78px;
  color: var(--ink);
  font-family: var(--font-sans);
  line-height: 1.5;
}

.chatbot-launcher {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.72rem 1rem;
  border: 1px solid rgba(98, 220, 255, 0.48);
  border-radius: 999px;
  background: linear-gradient(135deg, var(--blue-700), var(--blue-600));
  color: var(--white);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.28);
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 760;
  transition: transform 170ms ease, background 170ms ease, opacity 170ms ease;
}

.chatbot-launcher:hover {
  background: linear-gradient(135deg, var(--blue-600), var(--blue-500));
  transform: translateY(-2px);
}

.chatbot-icon {
  position: relative;
  display: block;
  width: 19px;
  height: 16px;
  border: 2px solid currentColor;
  border-radius: 6px;
}

.chatbot-icon::after {
  position: absolute;
  bottom: -5px;
  left: 3px;
  width: 7px;
  height: 7px;
  border-bottom: 2px solid currentColor;
  border-left: 2px solid currentColor;
  background: transparent;
  content: "";
  transform: skewY(-35deg);
}

.chatbot-panel {
  display: flex;
  width: min(380px, calc(100vw - 36px));
  max-height: min(670px, calc(100vh - var(--header-height) - 94px));
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(98, 220, 255, 0.34);
  border-radius: 22px;
  background: var(--white);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.34);
}

.chatbot-panel[hidden] {
  display: none;
}

.chatbot-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1rem 0.95rem 1.1rem;
  background: linear-gradient(135deg, var(--navy-900), var(--navy-800));
  color: var(--white);
}

.chatbot-title {
  margin: 0;
  color: var(--white);
  font-size: 1rem;
  letter-spacing: -0.01em;
}

.chatbot-close {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(188, 239, 255, 0.3);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
  cursor: pointer;
  font-size: 1.35rem;
  line-height: 1;
}

.chatbot-close:hover {
  background: rgba(98, 220, 255, 0.14);
}

.chatbot-body {
  min-height: 0;
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 1rem 1.1rem 1.1rem;
  overscroll-behavior: contain;
}

.chatbot-intro {
  margin-bottom: 0.95rem;
  color: var(--slate);
  font-size: 0.9rem;
  line-height: 1.58;
}

.chatbot-questions {
  display: grid;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.chatbot-question {
  width: 100%;
  padding: 0.68rem 0.78rem;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--mist);
  color: var(--navy-900);
  cursor: pointer;
  font-size: 0.83rem;
  font-weight: 700;
  line-height: 1.35;
  text-align: left;
  transition: border-color 150ms ease, background 150ms ease, color 150ms ease;
}

.chatbot-question:hover {
  border-color: rgba(36, 93, 255, 0.5);
  background: var(--cyan-100);
  color: var(--blue-700);
}

.chatbot-response {
  margin-top: 0.95rem;
  padding: 0.85rem;
  border-left: 3px solid var(--cyan-400);
  border-radius: 0 11px 11px 0;
  background: #edf8ff;
}

.chatbot-response[hidden] {
  display: none;
}

.chatbot-response p {
  margin-bottom: 0;
  color: var(--ink);
  font-size: 0.88rem;
  line-height: 1.58;
}

.chatbot-response .chatbot-user-question {
  margin-bottom: 0.35rem;
  color: var(--blue-700);
  font-size: 0.76rem;
  font-weight: 760;
}

.chatbot-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.75rem;
}

.chatbot-action {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0.58rem 0.72rem;
  border-radius: 9px;
  background: var(--blue-700);
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 760;
}

.chatbot-action:hover {
  background: var(--blue-600);
}

.chatbot-form {
  display: grid;
  flex: 0 0 auto;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.5rem;
  margin: 0;
  padding: 0.8rem 1.1rem 1rem;
  border-top: 1px solid var(--line);
  background: var(--white);
}

.chatbot-input {
  min-width: 0;
  min-height: 44px;
  padding: 0.65rem 0.72rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: 0.84rem;
}

.chatbot-input::placeholder {
  color: #6b7b90;
}

.chatbot-submit {
  min-width: 58px;
  min-height: 44px;
  padding: 0.65rem 0.78rem;
  border: 0;
  border-radius: 10px;
  background: var(--navy-900);
  color: var(--white);
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 760;
}

.chatbot-submit:hover {
  background: var(--blue-700);
}

.portfolio-chatbot.is-open .chatbot-launcher,
.portfolio-chatbot.is-footer-visible .chatbot-launcher,
.portfolio-chatbot.is-protected-content-visible .chatbot-launcher {
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  visibility: hidden;
}

.js [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 600ms ease, transform 600ms cubic-bezier(0.22, 1, 0.36, 1);
}

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

.js .capability-card:nth-child(2),
.js .project-card:nth-child(2) { transition-delay: 80ms; }
.js .capability-card:nth-child(3),
.js .project-card:nth-child(3) { transition-delay: 160ms; }
.js .capability-card:nth-child(4) { transition-delay: 240ms; }
.js .project-entry:nth-child(2) { transition-delay: 70ms; }
.js .project-entry:nth-child(3) { transition-delay: 140ms; }

@media (max-width: 1080px) {
  :root {
    --header-height: 72px;
  }

  .menu-toggle {
    display: block;
  }

  .primary-navigation {
    z-index: 2;
    position: absolute;
    top: calc(100% + 1px);
    right: 20px;
    left: 20px;
    display: grid;
    max-height: calc(100svh - var(--header-height) - 20px);
    justify-content: stretch;
    gap: 0;
    overflow-y: auto;
    padding: 0.75rem;
    border: 1px solid rgba(188, 239, 255, 0.15);
    border-radius: 0 0 18px 18px;
    background: rgba(4, 17, 38, 0.995);
    box-shadow: 0 22px 45px rgba(0, 0, 0, 0.3);
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 170ms ease, transform 170ms ease, visibility 170ms ease;
  }

  body.menu-open::before {
    position: fixed;
    z-index: 990;
    inset: var(--header-height) 0 0;
    background: rgba(1, 8, 23, 0.86);
    backdrop-filter: blur(4px);
    content: "";
    pointer-events: none;
  }

  .primary-navigation.is-open {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
    transform: translateY(0);
  }

  .primary-navigation > a:not(.nav-cv) {
    min-height: 46px;
    padding: 0.72rem 0.8rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  }

  .primary-navigation > a:not(.nav-cv)::after {
    display: none;
  }

  .language-status {
    justify-self: start;
    margin: 0.8rem;
  }

  .nav-cv {
    justify-content: center;
    margin: 0.4rem 0.2rem 0.2rem;
  }

  .hero-shell {
    grid-template-columns: minmax(0, 1.05fr) minmax(330px, 0.75fr);
    gap: 3.5rem;
  }

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

  .capability-card {
    min-height: 0;
  }
}

@media (max-width: 840px) {
  .hero {
    min-height: auto;
    padding-top: calc(var(--header-height) + 72px);
  }

  .hero-shell {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    max-width: 720px;
  }

  .portrait-stage {
    width: min(74vw, 420px);
    margin-top: 1rem;
  }

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

  .experience-heading {
    position: static;
    margin-bottom: 0;
  }

  .section-heading-row {
    display: block;
  }

  .section-heading-row > p {
    margin-top: 0.9rem;
  }

  .project-card-featured {
    display: block;
  }

  .project-card-featured .project-visual {
    min-height: 340px;
    border-right: 0;
    border-bottom: 1px solid rgba(188, 239, 255, 0.1);
  }
}

@media (max-width: 680px) {
  .content-shell,
  .nav-shell,
  .hero-shell {
    width: min(calc(100% - 28px), var(--content-width));
  }

  .brand-name {
    max-width: 8.5rem;
    font-size: 0.84rem;
    line-height: 1.15;
  }

  .brand-logo {
    width: 38px;
    height: 38px;
  }

  .nav-shell {
    gap: 0.8rem;
  }

  .primary-navigation {
    right: 14px;
    left: 14px;
  }

  .hero {
    padding-top: calc(var(--header-height) + 52px);
  }

  .hero-shell {
    gap: 1.7rem;
  }

  .hero-intro {
    margin-bottom: 0.55rem;
    font-size: 0.92rem;
  }

  .hero-role {
    margin-bottom: 0.7rem;
    font-size: 0.8rem;
  }

  .scroll-cue {
    display: none;
  }

  .eyebrow {
    align-items: flex-start;
    font-size: 0.7rem;
    line-height: 1.5;
  }

  .supporting-line {
    line-height: 1.8;
  }

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

  .hero-actions {
    margin-bottom: 0.8rem;
  }

  .section {
    padding-block: 3.5rem;
  }

  .portrait-stage {
    width: min(78vw, 360px);
  }

  .portrait-frame {
    aspect-ratio: 4 / 5;
    border-radius: 24px;
  }

  .portrait-frame img {
    object-position: 50% 38%;
  }

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

  .project-entry {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding-block: 2.4rem;
  }

  .projects-section .project-number {
    margin-bottom: 0.55rem;
  }

  .project-category {
    max-width: none;
  }

  .project-content > p {
    font-size: 1rem;
  }

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

  .capability-card {
    min-height: 0;
  }

  .project-card-featured {
    grid-column: auto;
  }

  .visual-node {
    width: 70px;
    height: 70px;
    font-size: 0.62rem;
  }

  .source-node { left: 7%; }
  .delivery-node { right: 6%; }

  .education-card,
  .education-layout {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 1.5rem;
  }

  .education-detail {
    padding-left: 1.2rem;
  }

  .contact-link {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .contact-link > i {
    display: none;
  }

  .email-action {
    width: 100%;
  }

  .back-to-top {
    right: calc(12px + env(safe-area-inset-right));
    bottom: calc(14px + env(safe-area-inset-bottom));
    width: 42px;
    height: 42px;
  }

  .portfolio-chatbot {
    right: calc(12px + env(safe-area-inset-right));
    bottom: calc(74px + env(safe-area-inset-bottom));
  }

  .portfolio-chatbot:not(.is-open) {
    right: calc(8px + env(safe-area-inset-right));
    bottom: calc(64px + env(safe-area-inset-bottom));
  }

  .chatbot-panel {
    width: calc(100vw - 40px);
    height: min(72vh, 560px);
    max-height: calc(100vh - var(--header-height) - 84px);
    border-radius: 18px;
  }

  @supports (height: 1dvh) {
    .chatbot-panel {
      height: min(72dvh, 560px);
      max-height: calc(100dvh - var(--header-height) - 84px);
    }
  }

  .portfolio-chatbot:not(.is-open) .chatbot-launcher {
    width: 44px;
    min-height: 44px;
    padding: 0;
  }

  .chatbot-launcher-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .footer-layout {
    display: block;
    text-align: center;
  }

  .footer-social-links {
    justify-content: center;
    margin-bottom: 1.25rem;
  }
}

@media (max-width: 380px) {
  h1 {
    font-size: 2.45rem;
  }

  .role-list li {
    font-size: 0.7rem;
  }

  .contact-link {
    gap: 0.7rem;
    padding-inline: 0.8rem;
  }

  .contact-icon {
    width: 38px;
    height: 38px;
  }

  .chatbot-body {
    padding: 0.9rem;
  }

  .chatbot-header {
    padding-inline: 0.9rem;
  }

  .chatbot-question {
    padding-block: 0.62rem;
  }
}

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

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

  .js [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

@media print {
  .site-header,
  .scroll-cue,
  .back-to-top,
  .portfolio-chatbot {
    display: none;
  }

  .hero {
    min-height: auto;
    padding-top: 3rem;
  }

  .section {
    padding-block: 3rem;
  }
}
