@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Space+Grotesk:wght@400;500;600&display=swap');

:root {
  color: #101820;
  background: #f3f5f5;
  font-family: 'Inter', sans-serif;
  font-synthesis: none;
  --nav-height: 78px;
  --footer-height: 75px;
  --slide-tabs-height: 76px;
  --ink: #07151e;
  --navy: #082b3c;
  --brand-blue: #025074;
  --blue: #056c96;
  --cyan: #16b7e7;
  --paper: #f3f5f5;
  --line: #cfd8db;
}

html {
  scroll-behavior: smooth;
}

@layer base {
  body {
    margin: 0;
    min-width: 320px;
    background: var(--paper);
  }

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

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

  button {
    cursor: pointer;
  }
}

* {
  box-sizing: border-box;
}

.site-shell {
  display: flex;
  height: 100vh;
  height: 100dvh;
  flex-direction: column;
  overflow: hidden;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  height: var(--nav-height);
  min-height: 0;
  flex: 0 0 var(--nav-height);
  padding: 0 max(28px, calc((100vw - 1240px) / 2));
  align-items: center;
  justify-content: space-between;
  color: #fff;
  background: var(--brand-blue);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 30px rgba(2, 12, 18, 0.16);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: background-color 180ms ease, box-shadow 180ms ease;
}

.site-main {
  min-height: 0;
  flex: 1 1 auto;
  overflow-y: auto;
  overscroll-behavior-y: contain;
}

.news-slider {
  display: flex;
  height: calc(100vh - var(--nav-height) - var(--footer-height));
  height: calc(100dvh - var(--nav-height) - var(--footer-height));
  min-height: 0;
  flex-direction: column;
}

.site-footer {
  display: flex;
  height: var(--footer-height);
  min-height: 0;
  flex: 0 0 var(--footer-height);
  padding: 12px max(28px, calc((100vw - 1240px) / 2));
  align-items: center;
  justify-content: space-between;
}

.wordmark {
  display: inline-flex;
  align-items: center;
}

.nav > .wordmark {
  height: calc(var(--nav-height) - 1px);
}

.wordmark img {
  display: block;
  width: auto;
  height: 58px;
  object-fit: contain;
}

.nav > .wordmark img {
  height: 100%;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 33px;
  font-size: 13px;
  font-weight: 500;
}

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

.nav-links > a:not(.nav-cta) {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #c6d3d8;
  transition: color 180ms ease;
}

.nav-links > a:not(.nav-cta) > svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  color: var(--cyan);
}

.nav-links > a:not(.nav-cta):hover {
  color: #fff;
}

.nav-cta,
.primary-link {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  padding: 14px 18px;
  color: var(--ink);
  background: var(--cyan);
  font-weight: 600;
}

svg {
  width: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 10px;
  border: 0;
  background: transparent;
}

.menu-toggle span {
  display: block;
  height: 1px;
  margin: 7px 0;
  background: #fff;
}

.slide-stage {
  position: relative;
  min-height: 0;
  flex: 1 1 auto;
  color: #fff;
  background: var(--ink);
  overflow: hidden;
  touch-action: pan-y;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 700ms ease, visibility 700ms ease;
}

.slide.is-active {
  opacity: 1;
  visibility: visible;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.03);
  transition: transform 6.5s ease;
}

.slide.is-active img {
  transform: scale(1);
}

.slide-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(3, 14, 21, 0.93) 0%, rgba(3, 16, 24, 0.66) 42%, rgba(3, 16, 24, 0.08) 82%),
    linear-gradient(0deg, rgba(3, 16, 24, 0.55), transparent 55%);
}

.slide-content {
  position: absolute;
  left: max(28px, calc((100vw - 1240px) / 2));
  top: 50%;
  width: min(620px, 70vw);
  transform: translateY(-50%);
}

.eyebrow {
  margin: 0 0 20px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.eyebrow.blue {
  color: var(--blue);
}

.slide h1 {
  max-width: 760px;
  margin: 0;
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(52px, 7.2vw, 104px);
  font-weight: 500;
  letter-spacing: -0.06em;
  line-height: 0.94;
}

.slide-copy {
  max-width: 560px;
  margin: 28px 0 32px;
  color: #d9e2e5;
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.6;
}

.text-link,
.post a,
.download-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--cyan);
  font-size: 13px;
  font-weight: 600;
}

.slide-count {
  position: absolute;
  right: max(28px, calc((100vw - 1240px) / 2));
  bottom: 44px;
  display: flex;
  align-items: center;
  gap: 13px;
  font: 500 12px 'Space Grotesk', sans-serif;
}

.slide-count i {
  width: 50px;
  height: 1px;
  background: rgba(255, 255, 255, 0.45);
}

.slider-controls {
  position: absolute;
  right: max(28px, calc((100vw - 1240px) / 2));
  top: 36px;
  display: flex;
}

.slider-controls button {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  color: #fff;
  background: rgba(5, 20, 29, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.slider-controls button + button {
  border-left: 0;
}

.slide-tabs {
  display: grid;
  height: var(--slide-tabs-height);
  flex: 0 0 var(--slide-tabs-height);
  grid-template-columns: repeat(5, 1fr);
  color: #aabcc3;
  background: var(--navy);
}

.slide-tabs button {
  position: relative;
  min-height: 76px;
  padding: 0 24px;
  color: inherit;
  background: transparent;
  border: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-align: left;
  text-transform: uppercase;
}

.slide-tabs button span {
  margin-right: 10px;
  color: #607d89;
}

.slide-tabs button::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 3px;
  content: '';
  background: var(--cyan);
  transition: width 250ms ease;
}

.slide-tabs button.is-active {
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
}

.slide-tabs button.is-active::before {
  width: 100%;
}

.section {
  width: min(1240px, calc(100% - 56px));
  margin: 0 auto;
  padding: 118px 0;
}

.section-kicker {
  padding-bottom: 21px;
  color: #68787e;
  border-bottom: 1px solid var(--line);
  font: 500 11px 'Space Grotesk', sans-serif;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.profile-intro {
  display: grid;
  grid-template-columns: 1.45fr 0.8fr;
  gap: 90px;
  padding: 72px 0 84px;
}

.profile h2,
.section-heading-row h2,
.cv h2,
.contact h2,
.social-heading h2 {
  margin: 0;
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(42px, 5vw, 72px);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 1.05;
}

.profile-copy {
  align-self: end;
  color: #46565c;
  font-size: 16px;
  line-height: 1.8;
}

.profile-copy p:last-child {
  margin-bottom: 0;
}

.expertise-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.expertise-grid article {
  min-height: 290px;
  padding: 36px 38px 38px 0;
}

.expertise-grid article + article {
  padding-left: 38px;
  border-left: 1px solid var(--line);
}

.expertise-grid span {
  color: var(--blue);
  font: 500 11px 'Space Grotesk', sans-serif;
}

.expertise-grid h3 {
  margin: 56px 0 17px;
  font: 500 24px 'Space Grotesk', sans-serif;
}

.expertise-grid p {
  margin: 0;
  color: #58666b;
  font-size: 14px;
  line-height: 1.7;
}

.social-proof {
  color: #fff;
  background: var(--ink);
}

.social-inner {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 90px;
}

.social-heading h2 {
  font-size: clamp(38px, 4vw, 60px);
}

.social-cards {
  display: grid;
  gap: 14px;
}

.social-card {
  display: grid;
  grid-template-columns: 58px 1fr 25px;
  gap: 22px;
  min-height: 178px;
  padding: 31px;
  align-items: start;
  background: #10232c;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 200ms ease, border-color 200ms ease;
}

.social-card:hover {
  border-color: var(--cyan);
  transform: translateX(5px);
}

.social-icon {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  color: var(--ink);
  background: #fff;
}

.social-icon svg {
  width: 30px;
  stroke-width: 1.5;
}

.social-card:first-child .social-icon svg {
  fill: var(--ink);
  stroke: none;
}

.social-card.linkedin .social-icon {
  color: #fff;
  background: #0a66c2;
}

.social-card.linkedin .social-icon svg {
  fill: currentColor;
  stroke: none;
}

.social-card small {
  color: #8ca2aa;
  font-size: 10px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.social-card h3 {
  margin: 7px 0;
  font: 500 29px 'Space Grotesk', sans-serif;
}

.social-card p {
  margin: 0;
  color: #9eb0b7;
  font-size: 13px;
}

.section-heading-row {
  display: flex;
  padding: 68px 0;
  align-items: end;
  justify-content: space-between;
}

.outline-link {
  display: inline-flex;
  padding: 14px 0;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid currentColor;
  font-size: 13px;
  font-weight: 600;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}

.post {
  position: relative;
  min-height: 420px;
  padding: 32px 34px 32px 0;
}

.post + .post {
  padding-left: 34px;
  border-left: 1px solid var(--line);
}

.post-meta {
  display: flex;
  justify-content: space-between;
  color: #6d7c81;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.post-meta span:first-child {
  color: var(--blue);
  font-weight: 600;
}

.post h3 {
  margin: 70px 0 20px;
  font: 500 clamp(22px, 2vw, 29px) 'Space Grotesk', sans-serif;
  letter-spacing: -0.03em;
  line-height: 1.25;
}

.post > p {
  color: #607076;
  font-size: 14px;
  line-height: 1.7;
}

.post > a {
  position: absolute;
  bottom: 30px;
  left: 0;
  color: var(--ink);
}

.post + .post > a {
  left: 34px;
}

.post-number {
  position: absolute;
  right: 25px;
  bottom: 20px;
  z-index: -1;
  color: rgba(7, 21, 30, 0.04);
  font: 500 80px 'Space Grotesk', sans-serif;
}

.cv {
  color: #fff;
  background: var(--blue);
}

.section-kicker.light {
  color: rgba(255, 255, 255, 0.6);
  border-color: rgba(255, 255, 255, 0.25);
}

.cv-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 120px;
  padding-top: 75px;
}

.cv-sticky > p:not(.eyebrow) {
  max-width: 480px;
  color: #d2eef7;
  line-height: 1.7;
}

.download-link {
  margin-top: 32px;
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.45);
  padding-bottom: 12px;
}

.timeline article {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 22px;
  padding: 31px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
}

.timeline article:last-child {
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
}

.timeline article > span {
  color: #b4e7f6;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.timeline h3 {
  margin: 0 0 8px;
  font: 500 23px 'Space Grotesk', sans-serif;
}

.timeline p {
  margin: 0;
  color: #c4e5ef;
  font-size: 14px;
  line-height: 1.6;
}

.contact {
  text-align: center;
}

.contact h2 {
  max-width: 940px;
  margin: 0 auto;
}

.contact-actions {
  display: flex;
  margin-top: 48px;
  justify-content: center;
  gap: 30px;
}

footer {
  display: flex;
  min-height: 140px;
  padding: 40px max(28px, calc((100vw - 1240px) / 2));
  align-items: center;
  justify-content: space-between;
  color: #a8bbc2;
  background: var(--ink);
  font-size: 12px;
}

.site-footer {
  min-height: 0;
  padding: 10px max(28px, calc((100vw - 1240px) / 2));
  justify-content: flex-start;
  gap: 36px;
}

.site-footer p {
  margin: 0;
}

.footer-socials {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-socials a {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  color: #a8bbc2;
  transition: color 180ms ease;
}

.footer-socials a:hover,
.footer-socials a:focus-visible {
  color: #fff;
}

.footer-socials .footer-linkedin {
  color: #fff;
  background: #0a66c2;
  border-radius: 3px;
}

.footer-socials .footer-hackerrank {
  color: #2ec866;
}

.footer-socials .footer-upwork {
  color: #14a800;
}

.footer-socials .footer-cv {
  color: var(--cyan);
}

.footer-cv-mark {
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 4px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
}

.footer-socials svg {
  width: 20px;
  fill: currentColor;
  stroke: none;
}

.site-footer .wordmark img {
  height: 55px;
}

.scroll-cta {
  position: fixed;
  right: 96px;
  bottom: 24px;
  z-index: 50;
  display: inline-flex;
  min-height: 58px;
  padding: 0 18px;
  align-items: center;
  gap: 10px;
  color: #fff;
  background: var(--brand-blue);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.24);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.scroll-cta svg {
  width: 18px;
}

.scroll-up-icon,
.scroll-cta.is-scrolled .scroll-down-icon {
  display: none;
}

.scroll-cta.is-scrolled .scroll-up-icon {
  display: block;
}

.whatsapp-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 50;
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  color: #052b1a;
  background: #27d367;
  border: 4px solid rgba(255, 255, 255, 0.85);
  border-radius: 50%;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.24);
}

.whatsapp-float .whatsapp-icon {
  width: 32px;
  color: #fff;
  fill: currentColor;
  stroke: none;
}

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

  .nav-links {
    position: absolute;
    top: 78px;
    right: 0;
    left: 0;
    display: none;
    padding: 22px 28px 30px;
    align-items: stretch;
    flex-direction: column;
    gap: 0;
    background: var(--brand-blue);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links > a {
    padding: 14px 0;
  }

  .nav-cta {
    margin-top: 12px;
    justify-content: space-between;
    padding: 14px 18px !important;
  }

  .slide-stage {
    height: auto;
  }

  .profile-intro,
  .social-inner,
  .cv-grid {
    grid-template-columns: 1fr;
    gap: 45px;
  }

  .expertise-grid,
  .post-grid {
    grid-template-columns: 1fr;
  }

  .expertise-grid article {
    min-height: 220px;
  }

  .expertise-grid article + article {
    padding-left: 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .expertise-grid h3 {
    margin-top: 35px;
  }

  .post {
    min-height: 350px;
    padding-left: 0 !important;
    border-left: 0 !important;
    border-bottom: 1px solid var(--line);
  }

  .post > a {
    left: 0 !important;
  }
}

@media (max-width: 640px) {
  :root {
    --nav-height: 68px;
    --footer-height: 100px;
    --slide-tabs-height: 52px;
  }

  .nav {
    min-height: 68px;
    padding-inline: 16px;
  }

  .wordmark img {
    width: auto;
    height: 100%;
  }

  .nav > .wordmark img {
    height: 54px;
  }

  .nav-controls {
    gap: 6px;
  }

  .nav-links {
    top: 68px;
  }

  .slide-stage {
    min-height: 0;
  }

  .slide-shade {
    background: linear-gradient(90deg, rgba(3, 14, 21, 0.9), rgba(3, 14, 21, 0.28)),
      linear-gradient(0deg, rgba(3, 14, 21, 0.74), transparent 65%);
  }

  .slide-content {
    top: auto;
    bottom: 72px;
    left: 24px;
    width: calc(100% - 48px);
    transform: none;
  }

  .slide h1 {
    font-size: 49px;
  }

  .slide-copy {
    font-size: 15px;
    line-height: 1.55;
  }

  .slide-count {
    right: 24px;
    bottom: 24px;
  }

  .slider-controls {
    top: auto;
    right: auto;
    bottom: 14px;
    left: 20px;
  }

  .slider-controls button {
    width: 46px;
    height: 46px;
  }

  .slide-tabs {
    grid-template-columns: repeat(5, 52px);
    overflow-x: auto;
  }

  .slide-tabs button {
    min-height: 52px;
    padding: 0;
    font-size: 0;
    text-align: center;
  }

  .slide-tabs button span {
    margin: 0;
    font-size: 10px;
  }

  .section {
    width: calc(100% - 40px);
    padding: 78px 0;
  }

  .profile-intro {
    padding: 50px 0 60px;
  }

  .profile h2,
  .section-heading-row h2,
  .cv h2,
  .contact h2,
  .social-heading h2 {
    font-size: 39px;
  }

  .profile-copy {
    font-size: 15px;
  }

  .expertise-grid article {
    padding-right: 0;
  }

  .social-card {
    grid-template-columns: 48px 1fr;
    min-height: 0;
    padding: 24px 20px;
  }

  .social-card > svg {
    display: none;
  }

  .social-icon {
    width: 48px;
    height: 48px;
  }

  .section-heading-row {
    padding: 50px 0;
    align-items: flex-start;
    flex-direction: column;
    gap: 30px;
  }

  .cv-grid {
    padding-top: 50px;
  }

  .timeline article {
    grid-template-columns: 55px 1fr;
  }

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

  .primary-link {
    justify-content: space-between;
  }

  .outline-link {
    justify-content: space-between;
  }

  footer {
    padding: 42px 20px 90px;
    align-items: flex-start;
    flex-direction: column;
    gap: 25px;
  }

  .site-footer {
    display: grid;
    grid-template-areas: 'logo tagline' 'socials socials';
    grid-template-columns: auto auto;
    grid-template-rows: 48px 44px;
    column-gap: 8px;
    row-gap: 0;
    padding: 4px 16px;
    align-content: space-between;
    align-items: center;
    justify-content: center;
  }

  .site-footer > .wordmark {
    grid-area: logo;
  }

  .site-footer p {
    grid-area: tagline;
    font-size: 10px;
    white-space: nowrap;
  }

  .site-footer .wordmark img {
    height: 48px;
  }

  .footer-socials {
    grid-area: socials;
    width: 100%;
    justify-content: space-between;
    gap: 0;
  }

  .footer-socials a {
    width: 44px;
    height: 44px;
  }

  .footer-socials svg {
    width: 20px;
  }

  .scroll-cta {
    right: 88px;
    bottom: calc(var(--footer-height) + 10px);
    min-height: 52px;
    padding: 0 14px;
    gap: 8px;
    font-size: 12px;
  }

  footer p {
    margin: 0;
  }

  .whatsapp-float {
    right: 18px;
    bottom: calc(var(--footer-height) + 10px);
  }
}

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

  .slide,
  .slide img,
  .social-card {
    transition: none;
  }
}

.cv-page {
  --cv-background: #e8edef;
  --cv-surface: #fff;
  --cv-text: var(--ink);
  --cv-muted: #46565c;
  --cv-border: #dce3e5;
  --cv-chip-background: #edf4f6;
  --cv-chip-text: #29424d;
  --cv-accent: var(--blue);
  --cv-skill-background: #f3f6f7;
  --cv-timeline: #d8e6e9;
  min-width: 320px;
  color: var(--cv-text);
  background: var(--cv-background);
}

html[data-theme='dark'] .cv-page {
  --cv-background: #09151b;
  --cv-surface: #101f27;
  --cv-text: #e7f0f3;
  --cv-muted: #bdcbd0;
  --cv-border: #2b414b;
  --cv-chip-background: #1a3039;
  --cv-chip-text: #d9e8ed;
  --cv-accent: #65c9e8;
  --cv-skill-background: #162a33;
  --cv-timeline: #33515d;
}

.language-picker {
  display: flex;
  align-items: center;
}

.language-picker-toggle {
  display: grid;
  width: 44px;
  height: 44px;
  padding: 0;
  place-items: center;
  color: var(--cyan);
  background: transparent;
  border: 0;
  touch-action: manipulation;
}

.language-picker-toggle:hover {
  color: #fff;
}

.language-picker-toggle:focus-visible,
.language-dialog-close:focus-visible,
.language-dialog-option:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

.language-flag {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
}

.language-dialog {
  display: none;
  position: fixed;
  inset: auto;
  width: 248px;
  max-width: calc(100vw - 24px);
  max-height: calc(100vh - 24px);
  margin: 0;
  padding: 0;
  overflow: visible;
  color: var(--ink);
  background: transparent;
  border: 0;
}

.language-dialog[open] {
  display: block;
}

.language-dialog::backdrop {
  background: transparent;
}

.language-dialog-card {
  padding: 18px;
  background: #fff;
  border: 1px solid #dce3e5;
  box-shadow: 0 18px 48px rgba(2, 12, 18, 0.24);
}

.language-dialog-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.language-dialog-heading h2 {
  margin: 0;
  color: var(--ink);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 16px;
  line-height: 1.3;
}

.language-dialog-close {
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  padding: 0;
  place-items: center;
  color: #52636a;
  background: transparent;
  border: 0;
}

.language-dialog-close svg {
  width: 18px;
  height: 18px;
}

.language-dialog-options {
  display: grid;
  gap: 8px;
}

.language-dialog-option {
  display: flex;
  min-height: 48px;
  padding: 10px 12px;
  align-items: center;
  gap: 12px;
  color: #263b44;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 600;
  transition: background-color 160ms ease, border-color 160ms ease;
}

.language-dialog-option > .language-flag {
  color: var(--blue);
}

.language-dialog-option:hover {
  background: #f0f7f9;
}

.language-dialog-option.is-active {
  color: var(--ink);
  background: #e7f7fc;
  border-color: #9cdeef;
}

html[data-theme='dark'] .language-dialog-card {
  color: #e7f0f3;
  background: #10232d;
  border-color: #2b414b;
}

html[data-theme='dark'] .language-dialog-heading h2,
html[data-theme='dark'] .language-dialog-option {
  color: #e7f0f3;
}

html[data-theme='dark'] .language-dialog-option > .language-flag {
  color: #65c9e8;
}

html[data-theme='dark'] .language-dialog-close {
  color: #bdcbd0;
}

html[data-theme='dark'] .language-dialog-option:hover {
  background: #1a3039;
}

html[data-theme='dark'] .language-dialog-option.is-active {
  color: #e7f0f3;
  background: #1a3039;
  border-color: #65c9e8;
}

.cv-theme-toggle {
  display: grid;
  width: 44px;
  height: 44px;
  padding: 0;
  place-items: center;
  color: var(--cyan);
  background: transparent;
  border: 0;
  touch-action: manipulation;
  transition: color 180ms ease;
}

.cv-theme-toggle:hover {
  color: #fff;
}

.cv-theme-toggle svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
}

.cv-theme-light-icon {
  display: none;
}

html[data-theme='dark'] .cv-theme-dark-icon {
  display: none;
}

html[data-theme='dark'] .cv-theme-light-icon {
  display: block;
}

.cv-theme-toggle:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

.cv-sheet {
  width: min(1050px, calc(100% - 40px));
  margin: 40px auto 72px;
  background: var(--cv-surface);
  box-shadow: 0 22px 65px rgba(7, 21, 30, 0.12);
}

.cv-hero {
  padding: 56px 64px 48px;
  color: #fff;
  background: linear-gradient(120deg, var(--ink), var(--navy) 55%, var(--brand-blue));
}

.cv-hero-label {
  margin: 0 0 20px;
  color: var(--cyan);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.cv-hero h1 {
  margin: 0;
  font: 500 clamp(38px, 5.5vw, 64px)/1 'Space Grotesk', sans-serif;
  letter-spacing: -0.055em;
}

.cv-hero-title {
  max-width: 850px;
  margin: 20px 0 0;
  color: #d3e2e7;
  font-size: 17px;
  line-height: 1.65;
}

.cv-location {
  margin: 20px 0 0;
  color: #b7cbd2;
  font-size: 13px;
}

.cv-contact-list {
  display: flex;
  margin-top: 16px;
  flex-wrap: wrap;
  gap: 8px 18px;
}

.cv-contact-list a {
  color: #fff;
  font-size: 12px;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.35);
  text-underline-offset: 3px;
}

.cv-download-link {
  display: inline-flex;
  margin-top: 28px;
  padding: 12px 16px;
  align-items: center;
  color: var(--ink);
  background: var(--cyan);
  font-size: 12px;
  font-weight: 600;
}

.cv-content {
  padding: 12px 64px 56px;
}

.cv-content-section {
  padding: 34px 0;
  border-bottom: 1px solid var(--cv-border);
}

.cv-content-section:last-child {
  border-bottom: 0;
}

.cv-content-section > h2 {
  margin: 0 0 20px;
  color: var(--cv-accent);
  font: 600 12px 'Space Grotesk', sans-serif;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.cv-content-section p,
.cv-bullets {
  color: var(--cv-muted);
  font-size: 14px;
  line-height: 1.75;
}

.cv-summary > p {
  margin: 0;
}

.cv-tags {
  display: flex;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
}

.cv-tags li {
  padding: 8px 11px;
  color: var(--cv-chip-text);
  background: var(--cv-chip-background);
  font-size: 12px;
  line-height: 1.4;
}

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

.cv-skill {
  padding: 17px 18px;
  background: var(--cv-skill-background);
  border-left: 2px solid var(--cyan);
}

.cv-skill h3,
.cv-experience h3,
.cv-education h3 {
  margin: 0;
  color: var(--cv-text);
  font: 600 15px 'Space Grotesk', sans-serif;
}

.cv-skill p {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.65;
}

.cv-experience-list,
.cv-education-list {
  display: grid;
  gap: 28px;
}

.cv-experience {
  padding-left: 20px;
  border-left: 2px solid var(--cv-timeline);
}

.cv-experience-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.cv-company {
  margin: 6px 0 0;
  color: var(--cv-accent) !important;
  font-size: 13px !important;
  font-weight: 600;
}

.cv-period {
  flex: 0 0 auto;
  color: var(--cv-muted);
  font-size: 11px;
  font-weight: 600;
}

.cv-bullets {
  margin: 14px 0 0;
  padding-left: 19px;
}

.cv-bullets li + li {
  margin-top: 7px;
}

.cv-languages dl {
  display: grid;
  margin: 0;
  gap: 12px;
}

.cv-languages dl > div {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 16px;
}

.cv-languages dt {
  color: var(--cv-text);
  font-size: 13px;
  font-weight: 600;
}

.cv-languages dd {
  margin: 0;
  color: var(--cv-muted);
  font-size: 13px;
  line-height: 1.6;
}

html[data-theme='dark'] .cv-hero {
  background: linear-gradient(120deg, #061116, #0b2632 55%, #0b3e55);
}

@media (max-width: 700px) {
  .language-dialog[open] {
    display: grid;
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    padding: 16px;
    place-items: center;
    overflow: auto;
    background: transparent;
  }

  .language-dialog::backdrop {
    background: rgba(3, 14, 21, 0.76);
    backdrop-filter: blur(4px);
  }

  .language-dialog-card {
    width: min(380px, 100%);
    margin: auto;
  }

  .cv-sheet {
    width: 100%;
    margin: 0 auto 24px;
    box-shadow: none;
  }

  .cv-hero {
    padding: 32px 18px 28px;
  }

  .cv-hero h1 {
    font-size: clamp(32px, 8.5vw, 42px);
    line-height: 1.05;
  }

  .cv-hero-title {
    font-size: 15px;
  }

  .cv-content {
    padding: 2px 18px 28px;
  }

  .cv-content-section {
    padding: 23px 0;
  }

  .cv-content-section > h2 {
    margin-bottom: 15px;
    letter-spacing: 0.1em;
  }

  .cv-content-section p,
  .cv-bullets {
    font-size: 14px;
    line-height: 1.65;
  }

  .cv-skills-grid {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .cv-skill {
    padding: 14px 15px;
  }

  .cv-experience-heading {
    flex-direction: column;
    gap: 5px;
  }

  .cv-experience {
    padding-left: 14px;
  }

  .cv-languages dl > div {
    grid-template-columns: 1fr;
    gap: 3px;
  }

}

@media print {
  .cv-page {
    background: #fff;
  }

  .cv-page .site-shell {
    height: auto;
    overflow: visible;
  }

  .cv-page .site-main {
    flex: initial;
    overflow: visible;
  }

  .cv-page .nav,
  .cv-download-link,
  .cv-page .site-footer,
  .scroll-cta,
  .whatsapp-float {
    display: none;
  }

  .cv-sheet {
    width: 100%;
    margin: 0;
    box-shadow: none;
  }

  .cv-hero {
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }

  .cv-content-section,
  .cv-experience,
  .cv-skill {
    break-inside: avoid;
  }
}

html[data-theme='dark'] {
  --paper: #0c171c;
  --line: #2b3d45;
  --blue: #45b5db;
  --brand-blue: #073d55;
  --navy: #071f2b;
  color: #e7f0f3;
  background: #0c171c;
}

html[data-theme='dark'] body {
  color: #e7f0f3;
  background: var(--paper);
}

html[data-theme='dark'] .section-kicker {
  color: #9aadb4;
  border-color: var(--line);
}

html[data-theme='dark'] .profile-copy,
html[data-theme='dark'] .expertise-grid p,
html[data-theme='dark'] .post-meta,
html[data-theme='dark'] .post > p {
  color: #b7c5ca;
}

html[data-theme='dark'] .post > a {
  color: #e7f0f3;
}

html[data-theme='dark'] .post-number {
  color: rgba(255, 255, 255, 0.05);
}

html[data-theme='dark'] .social-card {
  background: #10232c;
}

html[data-theme='dark'] .nav {
  background-color: #025074;
}

@media (max-width: 900px) {
  html[data-theme='dark'] .nav-links {
    background-color: #025074;
  }
}
