/* 1. Theme tokens: the light mode uses the same layout and component styles. */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;450;500;550;600;650;700&family=Manrope:wght@400;500;600;650;700;750;800&display=swap');
:root {
  color-scheme:dark;
  --bg:#0b1525;
  --surface:#101e32;
  --card:#15243a;
  --card-hover:#192c46;
  --text:#edf2fa;
  --muted:#a7b6ca;
  --subtle:#8fa0b7;
  --line:#293a52;
  --accent:#82b3ff;
  --teal:#72cbbb;
  --button:#3269ba;
  --button-hover:#3572c8;
  --chip:#1c304a;
  --header:rgba(11,21,37,.95);
  --shadow:0 18px 50px rgba(0,0,0,.14);
  --font:'Inter',Arial,sans-serif;
  --heading:'Manrope',Arial,sans-serif
}
:root[data-theme=light] {
  color-scheme:light;
  --bg:#fff;
  --surface:#f3f6fb;
  --card:#fff;
  --card-hover:#f8faff;
  --text:#15273f;
  --muted:#53637a;
  --subtle:#5a6b82;
  --line:#dce4ef;
  --accent:#2c61a6;
  --teal:#177e74;
  --button:#285faf;
  --button-hover:#1f529b;
  --chip:#eaf0f9;
  --header:rgba(255,255,255,.96);
  --shadow:0 15px 45px rgba(29,59,96,.08)
}
/* 2. Base, accessibility, and shared components. */
* {
  box-sizing:border-box
}
html {
  scroll-behavior:smooth;
  scroll-padding-top:110px
}
body {
  margin:0;
  background:var(--bg);
  color:var(--text);
  font:400 1rem/1.7 var(--font);
  -webkit-font-smoothing:antialiased
}
h1,h2,h3,h4,p {
  margin:0
}
a {
  color:inherit;
  text-decoration:none
}
button {
  font:inherit
}
button,a,summary {
  touch-action:manipulation;
  -webkit-tap-highlight-color:transparent
}
button {
  cursor:pointer
}
button:disabled {
  cursor:not-allowed
}
button,a {
  transition:background .2s,border-color .2s,color .2s,transform .2s
}
::selection {
  background:#386eb2;
  color:#fff
}
:focus-visible {
  outline:3px solid var(--accent);
  outline-offset:5px
}
.wrap {
  max-width:1240px;
  width:calc(100% - 112px);
  margin:auto
}
.icon-library {
  position:absolute;
  width:0;
  height:0;
  overflow:hidden
}
.icon {
  width:22px;
  height:22px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.65;
  stroke-linecap:round;
  stroke-linejoin:round;
  flex-shrink:0
}
.sr-only {
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0
}
.skip-link {
  position:fixed;
  left:20px;
  top:-80px;
  z-index:100;
  background:var(--button);
  color:white;
  padding:10px 18px
}
.skip-link:focus {
  top:12px
}
.eyebrow {
  font-size:.75rem;
  line-height:1.5;
  letter-spacing:.13em;
  font-weight:600;
  color:var(--accent)
}
.button {
  display:inline-flex;
  justify-content:center;
  align-items:center;
  gap:12px;
  min-height:49px;
  padding:12px 20px;
  border:1px solid var(--line);
  border-radius:7px;
  font-size:.875rem;
  font-weight:550;
  line-height:1.4
}
.button .icon {
  width:18px;
  height:18px
}
.primary {
  background:var(--button);
  color:white;
  border-color:var(--button)
}
.primary:hover {
  background:var(--button-hover);
  border-color:var(--button-hover);
  transform:translateY(-2px);
  box-shadow:0 5px 18px #285fad25
}
.secondary {
  color:var(--text);
  background:transparent
}
.secondary:hover {
  background:var(--card-hover);
  border-color:var(--accent);
  transform:translateY(-2px)
}
.icon-button {
  display:grid;
  place-items:center;
  width:40px;
  height:40px;
  padding:8px;
  background:transparent;
  border:1px solid var(--line);
  border-radius:7px;
  color:var(--muted)
}
.icon-button:hover {
  color:var(--accent);
  border-color:var(--accent)
}
/* 3. Sticky desktop navigation and mobile disclosure menu. */
.site-header {
  position:sticky;
  top:0;
  z-index:30;
  background:var(--header);
  border-bottom:1px solid var(--line);
  backdrop-filter:blur(16px)
}
.nav-wrap {
  height:82px;
  display:flex;
  align-items:center;
  gap:28px
}
.brand {
  display:flex;
  align-items:center;
  gap:12px;
  white-space:nowrap;
  font-size:.9375rem;
  font-weight:650
}
.brand-mark {
  display:grid;
  place-items:center;
  width:38px;
  height:38px;
  background:var(--chip);
  border:1px solid var(--line);
  border-radius:8px;
  color:var(--accent);
  font-family:var(--heading);
  font-size:.875rem;
  font-weight:800
}
nav {
  margin-left:auto;
  display:flex;
  gap:25px
}
nav a {
  font-size:.8125rem;
  color:var(--muted);
  padding:9px 0;
  position:relative
}
nav a:hover,nav a[aria-current=location] {
  color:var(--accent)
}
nav a[aria-current=location]::after {
  content:'';
  height:2px;
  background:var(--accent);
  position:absolute;
  bottom:0;
  left:0;
  right:0
}
.nav-actions {
  display:flex;
  align-items:center;
  gap:10px
}
.moon-icon {
  display:none
}
[data-theme=light] .moon-icon {
  display:block
}
[data-theme=light] .sun-icon {
  display:none
}
.menu-toggle {
  display:none
}
/* 4. Hero and the profile dashboard. */
.hero {
  background:radial-gradient(ellipse at 84% 35%,rgba(37,88,143,.16),transparent 48%),var(--bg);
  padding-top:76px
}
.hero-grid {
  display:grid;
  grid-template-columns:1.18fr 1fr;
  gap:64px;
  align-items:center
}
.hero h1 {
  font:750 clamp(2.8rem,4.5vw,4.2rem)/1.12 var(--heading);
  letter-spacing:-.045em;
  margin:24px 0 22px
}
.hero h1 span {
  color:var(--accent);
  font-weight:600
}
.professional-headline {
  font-size:.875rem;
  color:var(--muted);
  max-width:535px;
  line-height:1.9
}
.professional-headline span {
  color:var(--line);
  margin:0 7px
}
.hero-description {
  font-size:1.0625rem;
  line-height:1.8;
  color:var(--muted);
  max-width:565px;
  margin-top:22px
}
.role-line {
  display:flex;
  flex-wrap:wrap;
  gap:5px 10px;
  align-items:center;
  min-height:32px;
  margin-top:25px
}
.role-label {
  font-size:.75rem;
  letter-spacing:.09em;
  color:var(--subtle);
  width:100%
}
#typed-role {
  font-size:1rem;
  font-weight:500;
  color:var(--teal);
  min-height:1.7em
}
.typing-caret {
  width:1px;
  height:17px;
  background:var(--teal);
  animation:blink 1s steps(1) infinite;
  margin-left:-7px
}
.hero-buttons {
  display:flex;
  gap:12px;
  align-items:center;
  flex-wrap:wrap;
  margin-top:28px
}
.hero-contact {
  color:var(--muted);
  font-size:.875rem;
  padding:10px 2px
}
.hero-contact:hover {
  color:var(--accent)
}
.hero-location {
  font-size:.8125rem;
  color:var(--subtle);
  margin-top:24px
}
.profile-dashboard {
  border:1px solid var(--line);
  background:var(--surface);
  border-radius:15px;
  padding:27px;
  box-shadow:var(--shadow)
}
.dashboard-heading {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:20px;
  padding-bottom:21px;
  border-bottom:1px solid var(--line)
}
.dashboard-heading .eyebrow {
  font-size:.75rem;
  letter-spacing:.12em
}
.dashboard-caption {
  font-size:.75rem;
  color:var(--subtle);
  letter-spacing:.07em
}
.dashboard-profile {
  display:flex;
  align-items:center;
  gap:16px;
  margin:23px 0
}
.profile-monogram {
  display:grid;
  place-items:center;
  width:55px;
  height:55px;
  border:1px solid var(--line);
  background:var(--chip);
  color:var(--accent);
  border-radius:12px;
  font:750 1.15rem var(--heading);
  flex-shrink:0
}
.dashboard-profile h2 {
  font:650 1.0625rem/1.45 var(--heading);
  letter-spacing:-.025em
}
.dashboard-profile p {
  font-size:.75rem;
  color:var(--muted);
  margin-top:4px
}
.focus-grid {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px
}
.focus-grid>div {
  border:1px solid var(--line);
  background:var(--card);
  border-radius:9px;
  padding:17px 16px
}
.focus-grid .icon {
  color:var(--accent);
  width:22px;
  height:22px;
  margin-bottom:12px
}
.focus-grid>div:nth-child(3) .icon,.focus-grid>div:nth-child(4) .icon {
  color:var(--teal)
}
.focus-grid h3 {
  font-size:.875rem;
  font-weight:550;
  line-height:1.5
}
.focus-grid p {
  font-size:.75rem;
  line-height:1.55;
  color:var(--subtle);
  margin-top:6px
}
.dashboard-footer {
  display:flex;
  justify-content:space-between;
  gap:25px;
  padding-top:22px;
  margin-top:22px;
  border-top:1px solid var(--line)
}
.dashboard-footer>div {
  display:flex;
  align-items:center;
  gap:10px
}
.dashboard-footer strong {
  font:650 1.2rem var(--heading)
}
.dashboard-footer span {
  font-size:.75rem;
  color:var(--subtle);
  max-width:65px;
  line-height:1.45
}
.hero-bottom {
  display:flex;
  justify-content:space-between;
  gap:20px;
  border-top:1px solid var(--line);
  margin-top:57px;
  padding:22px 0;
  color:var(--subtle);
  font-size:.75rem;
  letter-spacing:.065em
}
.hero-bottom a {
  letter-spacing:0;
  font-size:.8125rem
}
.hero-bottom a span {
  margin-left:18px;
  color:var(--accent)
}
.section {
  padding-top:82px;
  padding-bottom:82px
}
.section-heading {
  margin-bottom:34px
}
.section-heading h2 {
  font:650 clamp(1.8rem,3vw,2.5rem)/1.2 var(--heading);
  letter-spacing:-.035em;
  margin-top:13px
}
.about-lead {
  font-size:1.125rem;
  line-height:1.9;
  color:var(--muted);
  max-width:950px
}
.opportunity {
  font-size:.9375rem;
  color:var(--teal);
  margin-top:23px
}
.hero-enter {
  animation:enter .6s ease both
}
.hero-copy h1 {
  animation-delay:.07s
}
.hero-description {
  animation-delay:.13s
}
.hero-buttons {
  animation-delay:.2s
}
@keyframes enter {
  from {
    opacity:0;
    transform:translateY(12px)
  }
  to {
    opacity:1;
    transform:none
  }
}
@keyframes blink {
  50% {
    opacity:0
  }
}
/* 5. Responsive sizing. */
@media(max-width:1120px) {
  .wrap {
    width:calc(100% - 64px)
  }
  .nav-wrap {
    gap:20px
  }
  nav {
    gap:16px
  }
  nav a {
    font-size:.75rem
  }
  .hero-grid {
    gap:35px;
    grid-template-columns:1.1fr 1fr
  }
  .hero h1 {
    font-size:3.3rem
  }
  .profile-dashboard {
    padding:22px
  }
  .dashboard-caption {
    display:none
  }
  .hero-buttons {
    gap:10px
  }
  .hero-contact {
    width:100%
  }
}
@media(max-width:960px) {
  .js .menu-toggle {
    display:flex;
    flex-direction:column;
    justify-content:center;
    gap:5px
  }
  .menu-toggle span {
    width:18px;
    height:1.5px;
    background:currentColor;
    transition:transform .2s,opacity .2s
  }
  .menu-toggle[aria-expanded=true] span:nth-child(1) {
    transform:translateY(6.5px) rotate(45deg)
  }
  .menu-toggle[aria-expanded=true] span:nth-child(2) {
    opacity:0
  }
  .menu-toggle[aria-expanded=true] span:nth-child(3) {
    transform:translateY(-6.5px) rotate(-45deg)
  }
  .nav-actions {
    margin-left:auto
  }
  .nav-wrap {
    height:74px;
    flex-wrap:wrap;
    position:relative
  }
  .js nav {
    display:none;
    position:absolute;
    left:0;
    right:0;
    top:74px;
    margin:0;
    background:var(--surface);
    border:1px solid var(--line);
    border-top:0;
    border-radius:0 0 10px 10px;
    padding:14px 20px;
    box-shadow:var(--shadow)
  }
  .js nav.is-open {
    display:flex;
    flex-direction:column;
    gap:0;
    animation:enter .2s ease both
  }
  .js nav a {
    font-size:.9375rem;
    padding:11px 0
  }
  .js nav a[aria-current=location]::after {
    display:none
  }
  .hero-grid {
    grid-template-columns:1fr 1fr;
    gap:28px
  }
  .hero h1 {
    font-size:2.7rem
  }
  .hero {
    padding-top:52px
  }
  .focus-grid>div {
    padding:14px
  }
  .focus-grid p {
    font-size:.75rem
  }
  .hero .eyebrow {
    font-size:.75rem
  }
  .dashboard-footer {
    gap:15px
  }
  .dashboard-footer>div {
    display:block
  }
  .dashboard-footer span {
    display:block;
    max-width:none;
    margin-top:3px
  }
  .professional-headline {
    font-size:.8125rem
  }
  .hero-description {
    font-size:1rem
  }
  .section {
    padding-top:64px;
    padding-bottom:64px
  }
}
@media(max-width:700px) {
  .wrap {
    width:calc(100% - 40px)
  }
  html {
    scroll-padding-top:92px
  }
  .hero-grid {
    grid-template-columns:1fr;
    gap:38px
  }
  .hero {
    padding-top:40px
  }
  .hero h1 {
    font-size:clamp(2.45rem,8.8vw,3.4rem);
    margin-top:20px
  }
  .hero h1 span {
    font-size:.92em
  }
  .hero-description {
    font-size:1rem
  }
  .professional-headline {
    font-size:.875rem
  }
  .hero-buttons {
    gap:10px
  }
  .hero-contact {
    width:auto;
    margin-left:3px
  }
  .button {
    padding:12px 15px;
    font-size:.8125rem;
    gap:8px
  }
  .hero-location {
    margin-top:19px
  }
  .profile-dashboard {
    padding:22px
  }
  .dashboard-caption {
    display:block;
    font-size:.75rem
  }
  .dashboard-profile h2 {
    font-size:1.125rem
  }
  .dashboard-profile p {
    font-size:.8125rem
  }
  .focus-grid>div {
    padding:16px
  }
  .focus-grid h3 {
    font-size:.9375rem
  }
  .dashboard-footer>div {
    display:flex;
    gap:12px
  }
  .dashboard-footer span {
    max-width:90px
  }
  .hero-bottom {
    flex-direction:column;
    gap:12px;
    padding:20px 0;
    margin-top:35px;
    font-size:.75rem
  }
  .hero-bottom a {
    font-size:.875rem
  }
  .section {
    padding-top:55px;
    padding-bottom:55px
  }
  .section-heading h2 {
    font-size:1.8rem
  }
  .about-lead {
    font-size:1rem
  }
  .nav-wrap {
    gap:10px
  }
  .brand {
    font-size:.875rem
  }
  .brand-mark {
    width:34px;
    height:34px
  }
  .nav-actions {
    gap:8px
  }
  .icon-button {
    width:37px;
    height:37px
  }
  .opportunity {
    font-size:.9375rem
  }
}
@media(prefers-reduced-motion:reduce) {
  html {
    scroll-behavior:auto
  }
  *,*::before,*::after {
    animation:none!important;
    transition:none!important
  }
}
/* 6. Section layouts, cards, project filters, and case study. */
.section-alt {
  background:var(--surface);
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line)
}
.split-heading {
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:55px
}
.split-heading>p {
  max-width:330px;
  font-size:.9375rem;
  color:var(--muted)
}
.skills-grid {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:20px
}
.skill-card {
  border:1px solid var(--line);
  border-radius:11px;
  padding:26px;
  background:var(--card)
}
.skill-card>.icon {
  color:var(--accent);
  width:26px;
  height:26px;
  margin-bottom:17px
}
.skill-card h3 {
  font:650 1.0625rem var(--heading);
  margin-bottom:20px
}
.skill-chips {
  display:flex;
  flex-wrap:wrap;
  gap:8px
}
.skill-chips span {
  font-size:.8125rem;
  line-height:1.5;
  padding:6px 9px;
  border:1px solid var(--line);
  border-radius:5px;
  color:var(--muted);
  background:var(--chip);
  transition:background .18s,border-color .18s,transform .18s
}
.skill-chips span:hover {
  border-color:var(--accent);
  background:var(--card-hover);
  transform:translateY(-2px);
  color:var(--text)
}
.project-toolbar {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:25px;
  margin-bottom:27px
}
.filters {
  display:flex;
  flex-wrap:wrap;
  gap:8px
}
.filter {
  background:transparent;
  border:1px solid var(--line);
  border-radius:6px;
  padding:8px 16px;
  color:var(--muted);
  font-size:.875rem
}
.filter:hover {
  border-color:var(--accent);
  color:var(--accent)
}
.filter.active {
  background:var(--button);
  color:white;
  border-color:var(--button)
}
#filter-status {
  color:var(--subtle);
  font-size:.8125rem;
  white-space:nowrap
}
.project-grid {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:23px
}
.project-card {
  border:1px solid var(--line);
  border-radius:12px;
  padding:30px;
  background:var(--card);
  transition:transform .2s,border-color .2s,box-shadow .2s;
  display:flex;
  flex-direction:column
}
.project-card:hover {
  transform:translateY(-4px);
  border-color:var(--accent);
  box-shadow:var(--shadow)
}
.project-card[hidden] {
  display:none
}
.project-top {
  display:flex;
  justify-content:space-between;
  gap:16px;
  align-items:center;
  margin-bottom:22px
}
.project-icon {
  display:grid;
  place-items:center;
  width:43px;
  height:43px;
  border-radius:9px;
  background:var(--chip);
  color:var(--accent);
  border:1px solid var(--line)
}
.badge {
  display:inline-block;
  font-size:.75rem;
  letter-spacing:.065em;
  line-height:1.5;
  padding:5px 8px;
  color:var(--teal);
  background:color-mix(in srgb,var(--teal) 8%,transparent);
  border:1px solid color-mix(in srgb,var(--teal) 30%,transparent);
  border-radius:4px
}
.muted-badge {
  color:var(--subtle);
  background:var(--surface);
  border-color:var(--line)
}
.project-card h3 {
  font:650 1.45rem/1.3 var(--heading);
  letter-spacing:-.03em;
  margin-bottom:14px
}
.project-description {
  color:var(--muted);
  font-size:1rem;
  line-height:1.75
}
.stack {
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:22px
}
.stack>span {
  color:var(--accent);
  font-size:.75rem;
  padding:4px 9px;
  border:1px solid var(--line);
  border-radius:4px
}
.stack small {
  font-size:.75rem;
  color:var(--subtle);
  margin-left:3px
}
.project-actions {
  display:flex;
  align-items:center;
  gap:22px;
  flex-wrap:wrap;
  margin-top:23px
}
.project-actions .button {
  font-size:.8125rem;
  min-height:44px;
  padding:10px 15px
}
.text-link {
  display:inline-flex;
  align-items:center;
  gap:12px;
  color:var(--accent);
  font-size:.875rem
}
.text-link:hover {
  text-decoration:underline;
  text-underline-offset:4px
}
.project-links {
  display:flex;
  gap:18px;
  flex-wrap:wrap;
  margin-top:20px;
  padding-top:19px;
  border-top:1px solid var(--line)
}
.project-links button,.project-links a {
  padding:0;
  border:0;
  background:none;
  color:var(--subtle);
  font-size:.8125rem;
  line-height:1.5
}
.project-links button:disabled {
  opacity:.7
}
.project-links a {
  color:var(--accent)
}
.project-card .implementation-note {
  margin-top:15px;
  font-size:.8125rem;
  line-height:1.6;
  color:var(--subtle)
}
.project-card>.project-actions {
  margin-top:auto;
  padding-top:24px
}
.featured-project {
  grid-column:1/-1;
  display:grid;
  grid-template-columns:1.5fr 1fr;
  gap:42px;
  background:linear-gradient(115deg,var(--card),var(--surface))
}
.featured-project .project-top {
  justify-content:flex-start;
  margin-bottom:22px
}
.project-cover {
  display:block;
  align-self:center;
  width:100%;
  height:auto;
  border:1px solid var(--line);
  border-radius:9px
}
.project-kicker {
  font-size:.75rem;
  letter-spacing:.1em;
  color:var(--subtle);
  margin-bottom:10px
}
.featured-project h3 {
  font-size:2.1rem;
  margin-bottom:5px
}
.project-subtitle {
  font-size:1rem;
  color:var(--text);
  font-weight:500;
  margin-bottom:15px
}
.featured-side {
  border-left:1px solid var(--line);
  padding-left:33px;
  align-self:center
}
.featured-side .eyebrow {
  font-size:.75rem
}
.feature-list {
  list-style:none;
  padding:0;
  margin:21px 0;
  display:flex;
  flex-direction:column;
  gap:14px
}
.feature-list li {
  font-size:.875rem;
  color:var(--muted);
  display:flex;
  align-items:flex-start;
  gap:10px
}
.feature-list .icon {
  width:17px;
  height:20px;
  color:var(--teal);
  margin-top:2px
}
.links-note {
  font-size:.75rem;
  color:var(--subtle);
  margin-top:20px
}
.empty-state {
  background:var(--surface);
  border:1px dashed var(--line);
  border-radius:12px;
  padding:48px 30px;
  text-align:center
}
.empty-state[hidden] {
  display:none
}
.empty-state>.icon {
  width:35px;
  height:35px;
  color:var(--accent);
  margin-bottom:16px
}
.empty-state h3 {
  font-size:1.125rem;
  font-weight:550;
  margin-bottom:10px
}
.empty-state p {
  color:var(--muted);
  font-size:1rem
}
.empty-state .text-link {
  margin-top:17px
}
.section-description {
  max-width:750px;
  color:var(--muted);
  margin-top:17px;
  font-size:1rem
}
.case-intro {
  display:grid;
  grid-template-columns:1fr 1fr 1fr;
  gap:35px;
  margin-top:36px
}
.case-label {
  font-size:.75rem;
  letter-spacing:.09em;
  color:var(--teal)
}
.case-intro h3 {
  font:600 1.15rem/1.5 var(--heading);
  margin:12px 0
}
.case-intro p {
  font-size:1rem;
  color:var(--muted);
  line-height:1.75
}
.workflow {
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:18px;
  list-style:none;
  padding:27px;
  margin:38px 0;
  border:1px solid var(--line);
  border-radius:10px;
  background:var(--bg)
}
.workflow li {
  position:relative;
  display:flex;
  gap:12px;
  align-items:flex-start;
  padding-right:8px
}
.step-number {
  font-size:.75rem;
  font-weight:600;
  color:var(--accent);
  border:1px solid var(--line);
  border-radius:6px;
  background:var(--chip);
  padding:7px;
  line-height:1.2
}
.workflow strong {
  font-size:.8125rem;
  font-weight:550;
  white-space:nowrap
}
.workflow p {
  font-size:.75rem;
  color:var(--subtle);
  line-height:1.5;
  margin-top:4px
}
.step-arrow {
  position:absolute;
  right:-5px;
  top:5px;
  color:var(--accent);
  font-size:1rem
}
.case-details-grid {
  display:grid;
  grid-template-columns:1.2fr 1fr;
  gap:24px
}
.case-detail {
  padding:27px;
  border:1px solid var(--line);
  border-radius:10px;
  background:var(--card)
}
.case-detail h3 {
  font-size:1.0625rem;
  font-weight:600;
  margin-bottom:16px
}
.case-detail>p,.case-detail li {
  font-size:.9375rem;
  color:var(--muted)
}
.system-plan {
  border-top:1px solid var(--line);
  padding-top:18px;
  margin-top:20px
}
.system-plan strong {
  display:block;
  color:var(--text);
  font-size:.8125rem;
  font-weight:500;
  margin-bottom:8px
}
.case-detail .concept-note {
  font-size:.8125rem;
  color:var(--subtle);
  margin-top:18px
}
.case-detail .roadmap-label {
  font-size:.75rem;
  letter-spacing:.08em;
  color:var(--teal)
}
.case-detail ul {
  padding-left:18px;
  margin:15px 0 0
}
.case-detail li+li {
  margin-top:10px
}
/* 7. Academic credentials, recognition, and contact. */
.education-card {
  border:1px solid var(--line);
  border-radius:12px;
  background:var(--card);
  padding:34px
}
.education-main {
  display:flex;
  align-items:center;
  gap:26px
}
.education-icon {
  display:grid;
  place-items:center;
  width:66px;
  height:66px;
  background:var(--chip);
  border:1px solid var(--line);
  border-radius:12px;
  color:var(--accent);
  flex-shrink:0
}
.education-icon .icon {
  width:32px;
  height:32px
}
.education-main .eyebrow {
  font-size:.75rem
}
.education-main h3 {
  font:600 1.45rem/1.4 var(--heading);
  letter-spacing:-.025em;
  margin:13px 0 10px
}
.education-main>div>p:last-child {
  font-size:.875rem;
  color:var(--muted)
}
.cgpa {
  margin-left:auto;
  border-left:1px solid var(--line);
  padding-left:35px;
  white-space:nowrap
}
.cgpa strong {
  font:650 2.5rem/1 var(--heading);
  color:var(--accent)
}
.cgpa strong span {
  font-size:1rem;
  font-weight:400;
  color:var(--subtle);
  margin-left:5px
}
.cgpa p {
  font-size:.8125rem;
  color:var(--subtle);
  margin-top:10px
}
.coursework {
  margin-top:30px;
  padding-top:25px;
  border-top:1px solid var(--line)
}
.coursework h4 {
  font-size:.875rem;
  font-weight:500;
  margin-bottom:16px
}
.coursework-list {
  display:flex;
  flex-wrap:wrap;
  gap:9px
}
.coursework-list span {
  background:var(--chip);
  border:1px solid var(--line);
  border-radius:5px;
  padding:6px 10px;
  font-size:.8125rem;
  color:var(--muted)
}
.cert-grid {
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:22px
}
.cert-card {
  padding:27px;
  background:var(--card);
  border:1px solid var(--line);
  border-radius:11px;
  align-self:start
}
.cert-provider {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:20px;
  margin-bottom:23px
}
.provider-mark {
  font:700 1rem var(--heading);
  color:var(--accent);
  letter-spacing:-.02em
}
.cert-date {
  color:var(--subtle);
  font-size:.75rem;
  letter-spacing:.06em
}
.cert-card h3 {
  font:600 1.125rem/1.5 var(--heading);
  letter-spacing:-.015em
}
.cert-card>p {
  color:var(--muted);
  font-size:.8125rem;
  margin-top:8px
}
.cert-card details {
  margin-top:22px;
  border-top:1px solid var(--line)
}
summary {
  cursor:pointer;
  list-style:none;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px
}
summary::-webkit-details-marker {
  display:none
}
.cert-card summary {
  padding-top:16px;
  color:var(--accent);
  font-size:.8125rem
}
.cert-card summary span {
  font-size:1.125rem;
  line-height:1
}
details[open] summary span {
  transform:rotate(45deg)
}
.cert-card details p {
  color:var(--subtle);
  font-size:.8125rem;
  margin-top:14px;
  overflow-wrap:anywhere
}
.cert-card .training-note {
  font-size:.8125rem;
  color:var(--subtle);
  margin-top:22px;
  padding-top:16px;
  border-top:1px solid var(--line)
}
.awards-section {
  display:grid;
  grid-template-columns:1fr 2fr;
  gap:50px;
  align-items:center;
  padding-top:60px;
  padding-bottom:60px
}
.awards-section .section-heading {
  margin:0
}
.award-card {
  display:flex;
  align-items:center;
  gap:22px
}
.award-icon {
  display:grid;
  place-items:center;
  width:60px;
  height:60px;
  border:1px solid var(--line);
  border-radius:12px;
  background:var(--card);
  color:var(--teal);
  flex-shrink:0
}
.award-icon .icon {
  width:29px;
  height:29px
}
.award-card h3 {
  font:600 1.0625rem/1.5 var(--heading)
}
.award-card p {
  font-size:.875rem;
  color:var(--muted);
  margin-top:5px
}
.award-year {
  font-size:.8125rem;
  color:var(--subtle);
  margin-left:auto
}
.contact-grid {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:75px;
  align-items:center
}
.contact-grid h2 {
  font:650 clamp(1.9rem,3vw,2.6rem)/1.25 var(--heading);
  letter-spacing:-.035em;
  margin:17px 0 20px
}
.contact-grid>div>p:not(.eyebrow) {
  color:var(--muted);
  max-width:410px;
  font-size:1rem;
  margin-bottom:26px
}
.contact-card {
  padding:28px;
  border:1px solid var(--line);
  border-radius:12px;
  background:var(--card)
}
.contact-row+ .contact-row {
  margin-top:22px
}
.contact-row>span {
  display:block;
  font-size:.75rem;
  letter-spacing:.09em;
  color:var(--subtle);
  margin-bottom:6px
}
.contact-row a {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  font-size:.9375rem;
  overflow-wrap:anywhere
}
.contact-row a:hover {
  color:var(--accent)
}
.contact-row a span {
  color:var(--accent)
}
.copy-row {
  display:flex;
  align-items:center;
  gap:20px;
  flex-wrap:wrap;
  padding-top:22px;
  margin-top:24px;
  border-top:1px solid var(--line)
}
.copy-row button {
  font-size:.8125rem;
  padding:0;
  border:0;
  border-bottom:1px solid var(--accent);
  background:none;
  color:var(--accent)
}
#copy-status {
  font-size:.75rem;
  color:var(--teal);
  min-height:1.7em
}
.footer {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:30px;
  padding:33px 0
}
.footer p {
  font-size:.75rem;
  color:var(--subtle);
  margin:9px 0 0 50px
}
.footer .text-link {
  font-size:.8125rem
}
.footer .icon {
  width:18px;
  height:18px
}
.back-to-top {
  position:fixed;
  right:25px;
  bottom:24px;
  z-index:15;
  width:43px;
  height:43px;
  display:grid;
  place-items:center;
  background:var(--button);
  color:white;
  border:1px solid var(--button);
  border-radius:8px;
  font-size:1.25rem;
  box-shadow:var(--shadow)
}
.back-to-top[hidden] {
  display:none
}
.back-to-top:hover {
  transform:translateY(-3px);
  background:var(--button-hover)
}
/* 8. Native project dialog, focus states, and motion. */
.project-dialog {
  background:var(--surface);
  color:var(--text);
  border:1px solid var(--line);
  border-radius:14px;
  max-width:750px;
  width:calc(100% - 40px);
  max-height:85dvh;
  padding:0;
  box-shadow:var(--shadow)
}
.project-dialog::backdrop {
  background:rgba(2,8,18,.72);
  backdrop-filter:blur(5px)
}
.dialog-inner {
  padding:40px;
  position:relative
}
.dialog-close {
  position:absolute;
  top:18px;
  right:18px;
  font-size:1.7rem;
  line-height:1
}
.project-dialog .eyebrow {
  padding-right:35px
}
.project-dialog h2 {
  font:650 2rem/1.25 var(--heading);
  letter-spacing:-.035em;
  margin:15px 0 12px
}
.dialog-role {
  color:var(--subtle);
  font-size:.8125rem;
  margin-bottom:25px
}
.dialog-section+.dialog-section {
  margin-top:23px
}
.dialog-section h3 {
  font-size:.9375rem;
  font-weight:600;
  margin-bottom:8px;
  color:var(--text)
}
.dialog-section p,.dialog-section li {
  color:var(--muted);
  font-size:1rem
}
.dialog-section ul {
  padding-left:20px;
  margin:0
}
.dialog-section li+li {
  margin-top:6px
}
.dialog-links {
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  border-top:1px solid var(--line);
  padding-top:23px;
  margin-top:28px
}
.dialog-links button:disabled {
  opacity:.6
}
.dialog-links .button {
  font-size:.8125rem;
  min-height:42px
}
.js-reveal .reveal {
  opacity:0;
  transform:translateY(15px);
  transition:opacity .45s ease,transform .45s ease,border-color .2s,box-shadow .2s
}
.js-reveal .reveal.is-visible {
  opacity:1;
  transform:none
}
.js-reveal .project-card.is-visible:hover {
  transform:translateY(-4px)
}
.js-reveal .skill-card .skill-chips span {
  opacity:0;
  transform:translateY(5px);
  transition:opacity .3s ease,transform .3s ease,border-color .2s
}
.js-reveal .skill-card.is-visible .skill-chips span {
  opacity:1;
  transform:none
}
.js-reveal .skill-card.is-visible .skill-chips span:hover {
  transform:translateY(-2px)
}
.section-anchor {
  scroll-margin-top:85px
}
/* 9. Tablet/mobile layouts. */
@media(max-width:1120px) {
  .skills-grid {
    gap:16px
  }
  .skill-card {
    padding:23px
  }
  .featured-project {
    gap:28px
  }
  .featured-side {
    padding-left:25px
  }
  .workflow {
    padding:22px 18px;
    gap:15px
  }
  .workflow li {
    gap:8px;
    display:block
  }
  .step-number {
    display:inline-block;
    margin-bottom:11px
  }
  .step-arrow {
    top:12px;
    right:0
  }
  .contact-grid {
    gap:45px
  }
  .cgpa {
    padding-left:25px
  }
}
@media(max-width:960px) {
  .skills-grid {
    grid-template-columns:1fr 1fr
  }
  .split-heading {
    gap:30px
  }
  .split-heading>p {
    max-width:250px
  }
  .featured-project {
    grid-template-columns:1.2fr 1fr;
    padding:25px;
    gap:24px
  }
  .project-card {
    padding:25px
  }
  .project-card h3 {
    font-size:1.25rem
  }
  .featured-project h3 {
    font-size:1.9rem
  }
  .project-kicker {
    font-size:.75rem
  }
  .featured-side {
    padding-left:23px
  }
  .case-intro {
    gap:25px
  }
  .case-intro h3 {
    font-size:1rem
  }
  .case-intro p {
    font-size:.9375rem
  }
  .education-card {
    padding:27px
  }
  .education-main {
    gap:20px
  }
  .education-main h3 {
    font-size:1.25rem
  }
  .education-icon {
    width:53px;
    height:53px
  }
  .cgpa strong {
    font-size:2rem
  }
  .cgpa {
    padding-left:22px
  }
  .contact-grid {
    gap:30px
  }
  .contact-card {
    padding:23px
  }
  .contact-row a {
    font-size:.875rem
  }
  .awards-section {
    grid-template-columns:1fr 2.2fr;
    gap:30px
  }
  .award-card {
    gap:15px
  }
  .award-icon {
    width:48px;
    height:48px
  }
  .award-card h3 {
    font-size:.9375rem
  }
  .award-card p {
    font-size:.8125rem
  }
}
@media(max-width:700px) {
  .split-heading {
    display:block
  }
  .split-heading>p {
    margin-top:17px;
    max-width:100%;
    font-size:.9375rem
  }
  .skills-grid {
    grid-template-columns:1fr;
    gap:16px
  }
  .skill-card {
    padding:24px
  }
  .skill-chips span {
    font-size:.875rem
  }
  .project-toolbar {
    align-items:flex-start;
    flex-direction:column;
    gap:14px
  }
  .filters {
    gap:7px
  }
  .filter {
    font-size:.8125rem;
    padding:7px 11px
  }
  .project-grid {
    grid-template-columns:1fr;
    gap:20px
  }
  .featured-project {
    display:block
  }
  .featured-side {
    border-left:0;
    border-top:1px solid var(--line);
    padding:23px 0 0;
    margin-top:27px
  }
  .featured-project .project-actions {
    gap:17px
  }
  .project-cover {
    margin-top:24px
  }
  .project-kicker {
    font-size:.75rem
  }
  .featured-project .project-top {
    gap:14px
  }
  .project-actions .button {
    font-size:.8125rem
  }
  .project-actions .text-link {
    font-size:.8125rem
  }
  .project-card {
    padding:25px
  }
  .project-card h3 {
    font-size:1.3rem
  }
  .featured-project h3 {
    font-size:1.9rem
  }
  .case-intro {
    grid-template-columns:1fr;
    gap:27px;
    margin-top:26px
  }
  .case-intro h3 {
    font-size:1.125rem;
    margin:9px 0
  }
  .case-intro h3 br {
    display:none
  }
  .case-intro p {
    font-size:1rem
  }
  .workflow {
    grid-template-columns:1fr;
    margin:30px 0;
    gap:23px;
    padding:24px
  }
  .workflow li {
    display:flex;
    gap:15px;
    align-items:center;
    padding-right:0
  }
  .step-number {
    margin:0;
    padding:10px
  }
  .workflow strong {
    font-size:.9375rem
  }
  .workflow p {
    font-size:.8125rem
  }
  .step-arrow {
    right:3px;
    top:12px;
    transform:rotate(90deg)
  }
  .case-details-grid {
    grid-template-columns:1fr;
    gap:18px
  }
  .case-detail {
    padding:24px
  }
  .education-card {
    padding:25px
  }
  .education-main {
    flex-wrap:wrap;
    gap:20px;
    align-items:flex-start
  }
  .education-icon {
    width:48px;
    height:48px
  }
  .education-main>div {
    flex:1;
    min-width:0
  }
  .education-main h3 {
    font-size:1.2rem
  }
  .education-main .eyebrow {
    font-size:.75rem;
    letter-spacing:.06em
  }
  .education-main h3 br {
    display:none
  }
  .education-main .cgpa {
    flex-basis:100%;
    margin:0;
    padding:20px 0 0;
    border-left:0;
    border-top:1px solid var(--line);
    display:flex;
    gap:15px;
    align-items:baseline
  }
  .cgpa strong {
    font-size:2rem
  }
  .cgpa p {
    margin:0
  }
  .coursework {
    margin-top:22px;
    padding-top:22px
  }
  .coursework-list {
    gap:8px
  }
  .coursework-list span {
    font-size:.8125rem
  }
  .cert-grid {
    grid-template-columns:1fr;
    gap:17px
  }
  .cert-card {
    padding:25px
  }
  .cert-provider {
    margin-bottom:19px
  }
  .cert-card h3 {
    font-size:1.125rem
  }
  .cert-card h3 br {
    display:none
  }
  .cert-card h3 br::after {
    content:' '
  }
  .awards-section {
    grid-template-columns:1fr;
    gap:25px;
    padding-top:48px;
    padding-bottom:48px
  }
  .award-card {
    align-items:flex-start;
    flex-wrap:wrap;
    gap:17px
  }
  .award-card>div {
    flex:1
  }
  .award-card h3 {
    font-size:1rem
  }
  .award-year {
    margin-left:65px;
    width:100%
  }
  .contact-grid {
    grid-template-columns:1fr;
    gap:33px
  }
  .contact-grid h2 {
    font-size:2rem
  }
  .contact-grid>div>p:not(.eyebrow) {
    max-width:100%
  }
  .contact-card {
    padding:24px
  }
  .contact-row a {
    font-size:.875rem;
    gap:10px
  }
  .contact-row>span {
    font-size:.75rem
  }
  .copy-row {
    gap:12px
  }
  .footer {
    flex-direction:column;
    align-items:flex-start;
    gap:24px;
    padding:28px 0
  }
  .footer .brand {
    font-size:.8125rem;
    white-space:normal
  }
  .footer p {
    margin-left:46px
  }
  .footer .text-link {
    margin-left:46px
  }
  .back-to-top {
    width:39px;
    height:39px;
    right:17px;
    bottom:17px
  }
  .dialog-inner {
    padding:28px 24px
  }
  .dialog-close {
    top:14px;
    right:14px
  }
  .project-dialog h2 {
    font-size:1.55rem;
    margin-top:17px
  }
  .project-dialog .eyebrow {
    font-size:.75rem;
    padding-right:32px
  }
  .dialog-section p,.dialog-section li {
    font-size:.9375rem
  }
  .badge {
    font-size:.75rem
  }
  .dashboard-caption {
    font-size:.75rem
  }
}
/* Respect reduced-motion preferences, including the JavaScript-driven typing effect. */
@media(prefers-reduced-motion:reduce) {
  .js-reveal .reveal,.js-reveal .skill-card .skill-chips span {
    opacity:1;
    transform:none
  }
  .typing-caret {
    display:none
  }
  .project-card:hover,.skill-chips span:hover {
    transform:none!important
  }
}
@media print {
  .site-header,.hero-buttons,.hero-bottom,.typing-caret,.filters,.project-actions,.project-links,.links-note,.back-to-top,.footer,.copy-row,dialog {
    display:none!important
  }
  body {
    font:10pt/1.5 Arial,sans-serif;
    color:#111;
    background:#fff
  }
  .wrap {
    width:100%;
    max-width:none
  }
  .hero {
    padding:0;
    background:white
  }
  .hero-grid {
    gap:25px
  }
  .hero h1 {
    font-size:28pt
  }
  .hero h1 span,.eyebrow,.role-line,.opportunity {
    color:#24466a
  }
  .hero-description,.professional-headline,.about-lead,.project-description {
    font-size:10pt;
    color:#333
  }
  .profile-dashboard {
    box-shadow:none;
    padding:15px
  }
  .section {
    padding:20px 0
  }
  .section-alt {
    background:white;
    color:#111
  }
  .section-heading h2 {
    font-size:20pt
  }
  .project-card,.skill-card,.cert-card,.education-card,.case-detail {
    break-inside:avoid;
    background:white;
    color:#111;
    border-color:#ccc;
    box-shadow:none
  }
  .reveal {
    opacity:1!important;
    transform:none!important
  }
  .skills-grid {
    grid-template-columns:1fr 1fr
  }
  .skill-chips span {
    color:#333;
    border-color:#ccc;
    background:white
  }
  .project-card[hidden] {
    display:flex!important
  }
  .featured-project[hidden] {
    display:grid!important
  }
  .profile-dashboard,.focus-grid>div {
    background:white;
    color:#111
  }
  .project-grid {
    gap:15px
  }
  .project-card {
    padding:20px
  }
  .section-heading {
    margin-bottom:20px
  }
  .cert-card h3 {
    font-size:12pt
  }
  .contact-grid {
    gap:25px
  }
  .contact-card {
    background:white;
    color:#111
  }
  .contact-row a {
    font-size:10pt
  }
  .case-intro p,.case-detail p,.case-detail li {
    color:#333
  }
  .role-label {
    color:#555
  }
  .workflow {
    background:white;
    border-color:#ccc
  }
}
/* A small pause control makes the rotating text optional for every visitor. */
#typing-toggle {
  font-size:.75rem;
  line-height:1.5;
  color:var(--subtle);
  background:none;
  border:0;
  border-bottom:1px solid var(--line);
  padding:0;
  margin-left:8px
}
#typing-toggle:hover {
  color:var(--accent)
}
#typing-toggle[hidden] {
  display:none
}
.typing-paused .typing-caret {
  display:none
}
.modal-open {
  overflow:hidden
}
html {
  scrollbar-gutter:stable
}
.project-card:hover .project-links button:disabled {
  opacity:.9
}
.project-card:hover .project-links a {
  color:var(--text)
}
