/* ===================================
   Global Styles & Reset
   =================================== */

:root {
  --color-bg: #f8f8f8;
  --color-nav: #ffffff;
  --color-card: #ffffff;
  --color-card-alt: #f3f3f3;
  --color-text: #111111;
  --color-muted: #707476;
  --home-section-title-size: clamp(0.82rem, 2.2vw, 1.02rem);
  --home-section-gap: 1.15rem;
  --home-title-media-gap: 2rem;
  --home-title-frame-gap: 0.7rem;
  --color-accent: #111111;
  --color-accent-text: #ffffff;
  --color-border: #e2e2e2;
  --color-dark-bg: #1f1f1f;
  --color-dark-text: #f8f8f8;
  --color-timeline: #343535;
  --radius: 8px;
  --shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 6px 24px rgba(0, 0, 0, 0.13);
  --transition: 0.22s ease;
  --icon-size: 120px;
  --icon-gap: 0.1rem;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: clip;
}

a {
  color: var(--color-text);
  text-decoration: none;
  transition: opacity var(--transition);
}

a:hover {
  opacity: 0.75;
}

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

/* ===================================
   Header & Navigation
   =================================== */

.site-header {
  background-color: var(--color-nav);
  padding: 0.9rem 2rem;
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.main-nav {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Home button */
.home-button {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  z-index: 1001;
  line-height: 0;
}

.home-button img {
  width: 40px;
  height: 38px;
}

/* Language switcher */
.lang-switcher {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  z-index: 1001;
}

.lang-btn {
  background: transparent;
  border: 1px solid var(--color-border);
  color: var(--color-muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  padding: 0.25rem 0.6rem;
  border-radius: 100px;
  cursor: pointer;
  font-family: inherit;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
}

.lang-btn:hover {
  color: var(--color-text);
  border-color: var(--color-text);
}

.lang-btn.active {
  background-color: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-accent-text);
}

/* Nav menu */
.nav-menu {
  list-style: none;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2.5rem;
}

.nav-menu li a {
  font-size: 0.92rem;
  font-weight: 600;
  padding: 0.4rem 0.6rem;
  border-radius: 4px;
  color: var(--color-muted);
  transition: color var(--transition);
}

.nav-menu li a:hover {
  color: var(--color-text);
  opacity: 1;
}

.nav-menu li a.active {
  color: var(--color-text);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
  gap: 0.38rem;
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1002;
}

.hamburger span {
  width: 22px;
  height: 2px;
  background-color: var(--color-text);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(7px, 7px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(6px, -6px); }

/* ===================================
   Main Content
   =================================== */

.main-content {
  flex: 1;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 1.5rem 2rem 2rem;
}

/* ===================================
   Footer
   =================================== */

.site-footer {
  background-color: var(--color-dark-bg);
  color: var(--color-dark-text);
  padding: 1rem 2rem;
  margin-top: auto;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: space-between;
  align-items: flex-start;
}

.footer-col h4 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(248, 248, 248, 0.5);
  margin-bottom: 0.7rem;
}

.footer-col a,
.footer-col p {
  font-size: 0.88rem;
  display: block;
  margin-bottom: 0.3rem;
  color: var(--color-dark-text);
}

.footer-col a:hover {
  opacity: 0.7;
}

.footer-copyright {
  font-size: 0.78rem;
  color: rgba(248, 248, 248, 0.45);
  margin-top: 0.3rem;
}

.linkedin-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  font-weight: 600;
}

.linkedin-icon {
  width: 18px;
  height: 18px;
  fill: var(--color-dark-text);
  transition: opacity var(--transition);
}

.linkedin-link {
  color: var(--color-dark-text);
}

.linkedin-link:hover .linkedin-icon {
  opacity: 0.7;
}

/* ===================================
   Home Page
   =================================== */

.home-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  padding: 1rem 1rem 0.5rem;
}

.home-logo-name {
  font-size: 3rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 0.5rem;
  color: var(--color-text);
}

.home-subtitle {
  font-size: 1rem;
  color: var(--color-muted);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0;
}

.home-section {
  display: grid;
  justify-items: center;
  gap: var(--home-title-media-gap);
  width: 100%;
  margin-top: var(--home-section-gap);
}

.home-section__title {
  --globe-title-frame-gap: var(--home-title-frame-gap);
  width: 100%;
  padding: var(--globe-title-frame-gap) 0;
  text-align: center;
}

.home-section__body {
  display: grid;
  justify-items: center;
  width: 100%;
}

.home-section--stats {
  margin-top: 43px;
  gap: 25px;
}

.home-section--globe {
  margin-top: 50px;
  gap: 25px;
}

.home-section--motto {
  margin-top: 22.7px;
}

.home-section--dashboard {
  margin-top: calc(50px - min(11.48%, 36.06px));
  gap: 25px;
}

.home-section--workflow {
  margin-top: 50px;
  gap: 10.6px;
}

/* Icon Nav Grid */
.icon-nav-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 700px;
  width: 100%;
  margin: 0 auto 1.5rem;
}

.icon-nav-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  padding: 0.2rem 0.2rem;
  background-color: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  text-align: center;
  --img-nudge: 0px;
  --label-nudge: 0px;
  --card-icon-scale: 1;
}

.icon-nav-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  opacity: 1;
}

.icon-nav-card img {
  width: var(--icon-size);
  height: var(--icon-size);
  object-fit: contain;
  transform: translateX(var(--img-nudge)) scale(var(--card-icon-scale));
}

.icon-nav-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text);
  letter-spacing: 0.01em;
  padding-top: var(--icon-gap);
  transform: translateX(var(--label-nudge));
}

/* Per-card icon adjustments — tweak --img-nudge, --label-nudge and --card-icon-scale as needed */
/* --card-icon-scale: 1 = full size, 0.8 = 80%, 1.2 = 120% — does NOT affect label position */
.icon-card-about       { --img-nudge: 0px; --label-nudge: 0px; }
.icon-card-projects    { --img-nudge: 6px; --label-nudge: 0px; --card-icon-scale: 0.85; }
.icon-card-webapps     { --img-nudge: 0px; --label-nudge: 0px; }
.icon-card-photography { --img-nudge: 0px; --label-nudge: 0px; }
.icon-card-contact     { --img-nudge: 0px; --label-nudge: 0px; }
.icon-card-faqs        { --img-nudge: 0px; --label-nudge: 0px; }

/* Workflow Nav */
.workflow-nav-wrap {
  --workflow-line-colour: #87939c;
  --workflow-pill-border-colour: #87939c;
  --workflow-pill-background: #fbfcfd;
  --workflow-pill-hover-background: #d4d8da;
  --workflow-pill-text-colour: #2c3338;
  /* Increase this time to slow the subtle dashed-line drift. */
  --workflow-line-flow-duration: 18s;
  position: relative;
  width: min(100%, 520px);
  margin: 0 auto;
  padding: 0.9rem 0.25rem;
}

.workflow-nav-line {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
  z-index: 0;
}

.workflow-nav-line__path {
  fill: none;
  stroke: var(--workflow-line-colour);
  stroke-linecap: round;
  stroke-linejoin: round;
}

.workflow-nav-line__path--base {
  stroke-width: 1.15px;
  stroke-dasharray: 4 7;
  animation: workflowLineDrift var(--workflow-line-flow-duration) linear infinite;
  opacity: 0.5;
}

.workflow-nav-line__path--wave,
.workflow-nav-line__dashes,
.workflow-nav-line__marker {
  display: none;
}

@keyframes workflowLineDrift {
  from {
    stroke-dashoffset: 0;
  }

  to {
    stroke-dashoffset: -110;
  }
}

.workflow-nav {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, 152px);
  justify-content: space-between;
  gap: 2rem 0;
  list-style: none;
  margin: 0;
  padding: 0;
}

.workflow-nav__item {
  min-width: 0;
}

.workflow-nav__card {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 152px;
  min-height: 54px;
  padding: 0.62rem 0.55rem;
  border: 1.5px solid var(--workflow-pill-border-colour);
  border-radius: 999px;
  background: var(--workflow-pill-background);
  color: var(--workflow-pill-text-colour);
  box-shadow: 0 8px 18px rgba(0,0,0,0.08);
  text-align: center;
  text-decoration: none;
  transition: transform var(--transition), box-shadow var(--transition), background-color var(--transition), color var(--transition);
}

.workflow-nav__card:hover,
.workflow-nav__card:focus-visible {
  transform: translateY(-2px);
  background: var(--workflow-pill-hover-background);
  color: var(--workflow-pill-text-colour);
  box-shadow: 0 12px 24px rgba(0,0,0,0.16);
  opacity: 1;
  outline: none;
}

.workflow-nav__title {
  display: block;
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Global Projects Globe */
.globe-title-wrap {
  --globe-title-frame-gap: var(--home-title-frame-gap);
  width: 100%;
  margin: 0 auto;
  padding: var(--globe-title-frame-gap) 0;
  text-align: center;
}

.globe-title {
  --globe-title-fill: #cbcbcb;
  --globe-title-line: #707476;
  --globe-title-line-width: 1.35px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  margin: 0;
  padding: 0.52rem;
  background: var(--globe-title-fill);
  color: #111;
  font-family: Arial, Helvetica, sans-serif;
  font-size: var(--home-section-title-size);
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: 0.04em;
  text-align: center;
  text-transform: uppercase;
}

.globe-title::before {
  content: "";
  position: absolute;
  inset: calc(var(--globe-title-frame-gap) * -1);
  pointer-events: none;
  background:
    linear-gradient(var(--globe-title-line), var(--globe-title-line)) left top / 100% var(--globe-title-line-width) no-repeat,
    linear-gradient(var(--globe-title-line), var(--globe-title-line)) left bottom / 100% var(--globe-title-line-width) no-repeat,
    linear-gradient(var(--globe-title-line), var(--globe-title-line)) left top / var(--globe-title-line-width) 25% no-repeat,
    linear-gradient(var(--globe-title-line), var(--globe-title-line)) left bottom / var(--globe-title-line-width) 25% no-repeat,
    linear-gradient(var(--globe-title-line), var(--globe-title-line)) right top / var(--globe-title-line-width) 25% no-repeat,
    linear-gradient(var(--globe-title-line), var(--globe-title-line)) right bottom / var(--globe-title-line-width) 25% no-repeat;
}

.dashboard-title-wrap {
  --globe-title-margin-bottom: 0.95rem;
}

.globe-wrap {
  width: 100%;
  display: flex;
  justify-content: center;
  margin: 0 auto;
}

.globe-shell {
  --globe-size-desktop: 360px;
  --globe-size-tablet: 320px;
  --globe-size-mobile: 260px;
  --globe-bg: #f8f8f8;
  --globe-ocean: #ffffff;
  --globe-land: #111111;
  --globe-border: #e2e2e2;
  --globe-grid: #e2e2e2;
  --globe-pin: #ec2027;
  --globe-pin-inner: #f3f3f5;
  --globe-pin-pulse: rgba(236, 32, 39, 0.24);
  --globe-popup-bg: #111111;
  --globe-popup-text: #ffffff;
  position: relative;
  width: min(100%, var(--globe-size-desktop));
  flex: 0 0 auto;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ffffff 0%, var(--globe-bg) 58%, #f3f3f3 100%);
  touch-action: none;
  user-select: none;
}

.globe-container {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  cursor: grab;
  overflow: hidden;
}

.globe-container:active {
  cursor: grabbing;
}

.portfolio-globe {
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.portfolio-globe__sphere {
  fill: var(--globe-ocean);
  stroke: var(--globe-border);
  stroke-width: 1.2px;
}

.portfolio-globe__grid {
  fill: none;
  stroke: var(--globe-grid);
  stroke-width: 0.45px;
  opacity: 0.7;
}

.portfolio-globe__land {
  fill: var(--globe-land);
  stroke: #ffffff;
  stroke-width: 0.35px;
}

.portfolio-globe__pin {
  cursor: pointer;
  outline: none;
}

.portfolio-globe__pin:focus {
  outline: none;
}

.portfolio-globe__pin:focus-visible .portfolio-globe__pin-body {
  stroke: #111;
  stroke-width: 7px;
}

.portfolio-globe__pin-hit {
  fill: transparent;
  stroke: transparent;
  pointer-events: all;
}

.portfolio-globe__pin-marker {
  pointer-events: auto;
}

.portfolio-globe__pin-body {
  fill: var(--globe-pin);
}

.portfolio-globe__pin-inner {
  fill: var(--globe-pin-inner);
}

.globe-popup {
  --popup-corner-size: 9px;
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  gap: 0.42rem;
  width: min(310px, 82vw);
  max-width: min(310px, 82vw);
  padding: 1rem 1.1rem;
  border: 1px solid #707476;
  border-radius: 0;
  background: rgba(248, 248, 248, 0.96);
  color: #707476;
  font-family: "Courier New", Courier, monospace;
  font-size: 0.78rem;
  line-height: 1.45;
  text-align: left;
  box-shadow: 0 14px 36px rgba(0,0,0,0.12);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, calc(-100% - 16px)) scale(0.96);
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 3;
}

.globe-popup::before,
.globe-popup::after {
  content: "";
  position: absolute;
  width: var(--popup-corner-size);
  height: var(--popup-corner-size);
  background: #707476;
}

.globe-popup::before {
  left: -1px;
  top: -1px;
}

.globe-popup::after {
  right: -1px;
  bottom: -1px;
}

.globe-popup.is-visible {
  opacity: 1;
  transform: translate(-50%, calc(-100% - 22px)) scale(1);
}

.globe-popup.is-centered {
  position: fixed;
  left: 50vw !important;
  top: 50vh !important;
  max-width: calc(100vw - 2rem);
  transform: translate(-50%, -50%) scale(0.96);
}

.globe-popup.is-centered.is-visible {
  transform: translate(-50%, -50%) scale(1);
}

.globe-popup__title {
  display: block;
  color: #111;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.globe-popup__text {
  display: block;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.globe-popup__text-line {
  display: block;
}

.life-motto-box {
  --motto-border: #111;
  --motto-line: #707476;
  position: relative;
  isolation: isolate;
  width: min(100%, 314px);
  max-width: 100%;
  margin: 0 auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--motto-border);
  font-family: "Courier New", Courier, monospace;
  font-size: 0.78rem;
  line-height: 1.3;
  text-align: left;
  box-shadow: none;
  aspect-ratio: 289.38 / 218.74;
}

.life-motto-box__art {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
  shape-rendering: geometricPrecision;
}

.life-motto-box__stroke {
  fill: none;
  stroke: var(--motto-line);
  stroke-linecap: butt;
  stroke-linejoin: miter;
  stroke-width: 1.35;
  vector-effect: non-scaling-stroke;
}

.life-motto-box__header {
  position: absolute;
  z-index: 2;
  left: 13.47%;
  top: 16.37%;
  width: 75.9%;
  min-height: 14.56%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 1.1rem;
  align-items: center;
  gap: 0.28rem;
  margin: 0;
  padding: 0.08rem 0.44rem;
  background: transparent;
  border: 0;
}

.life-motto-box__title {
  min-width: 0;
  margin: 0;
  color: var(--motto-border);
  font-family: Arial, Helvetica, sans-serif;
  font-size: var(--home-section-title-size);
  font-weight: 900;
  line-height: 1.28;
  letter-spacing: 0;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: visible;
  text-overflow: clip;
}

@property --motto-breathe-wave {
  syntax: "<number>";
  inherits: false;
  initial-value: 0;
}

.life-motto-box__translate {
  --motto-breathe-duration: 2400ms;
  --motto-breathe-ease: linear;
  --motto-breathe-wave: 0;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1rem;
  height: 1rem;
  padding: 0;
  border: 1px solid var(--motto-border);
  border-radius: 0;
  background: transparent;
  color: var(--motto-border);
  font-size: 0;
  cursor: pointer;
  transform-origin: center;
  transform: scale(calc(1 + (var(--motto-breathe-wave) * 0.1)));
  animation: mottoTranslateBreatheWave var(--motto-breathe-duration) var(--motto-breathe-ease) infinite;
  transition: background-color var(--transition), color var(--transition), border-color var(--transition);
}

.life-motto-box__translate::before,
.life-motto-box__translate::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  color: currentColor;
  background: currentColor;
  transform-origin: center;
  transform: translate(-50%, -50%);
}

.life-motto-box__translate::before {
  width: 0.48rem;
  height: 1px;
  transform: translate(-50%, -50%) scaleX(calc(1 + (var(--motto-breathe-wave) * 0.17)));
}

.life-motto-box__translate::after {
  width: 1px;
  height: 0.48rem;
  transform: translate(-50%, -50%) scaleY(calc(1 + (var(--motto-breathe-wave) * 0.17)));
}

.life-motto-box__translate.is-translated,
.life-motto-box__translate:focus-visible {
  background: var(--motto-border);
  color: #fff;
  outline: none;
}

@media (hover: hover) and (pointer: fine) {
  .life-motto-box__translate:hover {
    background: var(--motto-border);
    color: #fff;
    outline: none;
  }
}

@keyframes mottoTranslateBreatheWave {
  0% { --motto-breathe-wave: 0.0000; }
  1.25% { --motto-breathe-wave: 0.0015; }
  2.5% { --motto-breathe-wave: 0.0062; }
  3.75% { --motto-breathe-wave: 0.0138; }
  5% { --motto-breathe-wave: 0.0245; }
  6.25% { --motto-breathe-wave: 0.0381; }
  7.5% { --motto-breathe-wave: 0.0545; }
  8.75% { --motto-breathe-wave: 0.0737; }
  10% { --motto-breathe-wave: 0.0955; }
  11.25% { --motto-breathe-wave: 0.1198; }
  12.5% { --motto-breathe-wave: 0.1464; }
  13.75% { --motto-breathe-wave: 0.1753; }
  15% { --motto-breathe-wave: 0.2061; }
  16.25% { --motto-breathe-wave: 0.2388; }
  17.5% { --motto-breathe-wave: 0.2730; }
  18.75% { --motto-breathe-wave: 0.3087; }
  20% { --motto-breathe-wave: 0.3455; }
  21.25% { --motto-breathe-wave: 0.3833; }
  22.5% { --motto-breathe-wave: 0.4218; }
  23.75% { --motto-breathe-wave: 0.4608; }
  25% { --motto-breathe-wave: 0.5000; }
  26.25% { --motto-breathe-wave: 0.5392; }
  27.5% { --motto-breathe-wave: 0.5782; }
  28.75% { --motto-breathe-wave: 0.6167; }
  30% { --motto-breathe-wave: 0.6545; }
  31.25% { --motto-breathe-wave: 0.6913; }
  32.5% { --motto-breathe-wave: 0.7270; }
  33.75% { --motto-breathe-wave: 0.7612; }
  35% { --motto-breathe-wave: 0.7939; }
  36.25% { --motto-breathe-wave: 0.8247; }
  37.5% { --motto-breathe-wave: 0.8536; }
  38.75% { --motto-breathe-wave: 0.8802; }
  40% { --motto-breathe-wave: 0.9045; }
  41.25% { --motto-breathe-wave: 0.9263; }
  42.5% { --motto-breathe-wave: 0.9455; }
  43.75% { --motto-breathe-wave: 0.9619; }
  45% { --motto-breathe-wave: 0.9755; }
  46.25% { --motto-breathe-wave: 0.9862; }
  47.5% { --motto-breathe-wave: 0.9938; }
  48.75% { --motto-breathe-wave: 0.9985; }
  50% { --motto-breathe-wave: 1.0000; }
  51.25% { --motto-breathe-wave: 0.9985; }
  52.5% { --motto-breathe-wave: 0.9938; }
  53.75% { --motto-breathe-wave: 0.9862; }
  55% { --motto-breathe-wave: 0.9755; }
  56.25% { --motto-breathe-wave: 0.9619; }
  57.5% { --motto-breathe-wave: 0.9455; }
  58.75% { --motto-breathe-wave: 0.9263; }
  60% { --motto-breathe-wave: 0.9045; }
  61.25% { --motto-breathe-wave: 0.8802; }
  62.5% { --motto-breathe-wave: 0.8536; }
  63.75% { --motto-breathe-wave: 0.8247; }
  65% { --motto-breathe-wave: 0.7939; }
  66.25% { --motto-breathe-wave: 0.7612; }
  67.5% { --motto-breathe-wave: 0.7270; }
  68.75% { --motto-breathe-wave: 0.6913; }
  70% { --motto-breathe-wave: 0.6545; }
  71.25% { --motto-breathe-wave: 0.6167; }
  72.5% { --motto-breathe-wave: 0.5782; }
  73.75% { --motto-breathe-wave: 0.5392; }
  75% { --motto-breathe-wave: 0.5000; }
  76.25% { --motto-breathe-wave: 0.4608; }
  77.5% { --motto-breathe-wave: 0.4218; }
  78.75% { --motto-breathe-wave: 0.3833; }
  80% { --motto-breathe-wave: 0.3455; }
  81.25% { --motto-breathe-wave: 0.3087; }
  82.5% { --motto-breathe-wave: 0.2730; }
  83.75% { --motto-breathe-wave: 0.2388; }
  85% { --motto-breathe-wave: 0.2061; }
  86.25% { --motto-breathe-wave: 0.1753; }
  87.5% { --motto-breathe-wave: 0.1464; }
  88.75% { --motto-breathe-wave: 0.1198; }
  90% { --motto-breathe-wave: 0.0955; }
  91.25% { --motto-breathe-wave: 0.0737; }
  92.5% { --motto-breathe-wave: 0.0545; }
  93.75% { --motto-breathe-wave: 0.0381; }
  95% { --motto-breathe-wave: 0.0245; }
  96.25% { --motto-breathe-wave: 0.0138; }
  97.5% { --motto-breathe-wave: 0.0062; }
  98.75% { --motto-breathe-wave: 0.0015; }
  100% { --motto-breathe-wave: 0.0000; }
}

.life-motto-box__line {
  position: absolute;
  z-index: 1;
  left: 13.55%;
  display: block;
  width: 72%;
  margin: 0;
  color: var(--motto-border);
  font-size: clamp(0.52rem, 2.55vw, 0.74rem);
  font-weight: 700;
  letter-spacing: 0;
  white-space: nowrap;
}

.life-motto-box__line:first-of-type {
  top: 47%;
  padding-top: 0;
}

.life-motto-box__line:nth-of-type(2) {
  top: 58%;
}

.life-motto-box__line:nth-of-type(3) {
  top: 69%;
}

/* Interactive dashboard */
.interactive-dashboard {
  --dashboard-width-desktop: 520px;
  --dashboard-width-mobile: 320px;
  --dashboard-border: #e2e2e2;
  --dashboard-muted: #707476;
  --dashboard-ink: #111111;
  --dashboard-title-bg: #cbcbcb;
  position: relative;
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr);
  gap: 0.85rem;
  width: min(100%, var(--dashboard-width-desktop));
  min-height: 410px;
  margin: 0 auto;
  padding: 0.78rem;
  border: 1px solid var(--dashboard-border);
  border-radius: 10px;
  background: rgba(255,255,255,0.56);
  box-shadow: 0 10px 26px rgba(0,0,0,0.05);
  overflow: visible;
}

.interactive-dashboard__title-box {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 3.65rem;
  padding: 0.7rem 0.75rem 0.55rem;
  margin-bottom: 0.6rem;
  background: transparent;
}

.interactive-dashboard__title {
  --globe-title-fill: var(--dashboard-title-bg);
  --globe-title-line: var(--dashboard-muted);
  --globe-title-frame-gap: 0.7rem;
  --globe-title-line-width: 1.65px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  margin: 0;
  padding: 0.52rem;
  background: var(--globe-title-fill);
  color: var(--dashboard-ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: var(--home-section-title-size);
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: 0.04em;
  text-align: center;
  text-transform: uppercase;
}

.interactive-dashboard__title::before {
  content: "";
  position: absolute;
  inset: calc(var(--globe-title-frame-gap) * -1);
  pointer-events: none;
  background:
    linear-gradient(var(--globe-title-line), var(--globe-title-line)) left top / 100% var(--globe-title-line-width) no-repeat,
    linear-gradient(var(--globe-title-line), var(--globe-title-line)) left bottom / 100% var(--globe-title-line-width) no-repeat,
    linear-gradient(var(--globe-title-line), var(--globe-title-line)) left top / var(--globe-title-line-width) 25% no-repeat,
    linear-gradient(var(--globe-title-line), var(--globe-title-line)) left bottom / var(--globe-title-line-width) 25% no-repeat,
    linear-gradient(var(--globe-title-line), var(--globe-title-line)) right top / var(--globe-title-line-width) 25% no-repeat,
    linear-gradient(var(--globe-title-line), var(--globe-title-line)) right bottom / var(--globe-title-line-width) 25% no-repeat;
}

.interactive-dashboard__tabs {
  display: grid;
  grid-template-rows: repeat(3, 62px);
  align-content: center;
  gap: 0.55rem;
  min-width: 0;
}

.interactive-dashboard__tab,
.interactive-dashboard__option {
  animation: aboutButtonBreathe 2.6s ease-in-out infinite;
}

.interactive-dashboard__tab,
.interactive-dashboard__option {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 0;
  border: 1.5px solid var(--dashboard-muted);
  border-radius: 999px;
  background: linear-gradient(180deg, #ffffff 0%, #f3f3f3 100%);
  color: var(--dashboard-muted);
  font-family: inherit;
  font-size: 0.58rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.065em;
  text-align: center;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.45), 0 8px 18px rgba(0,0,0,0.08);
  transition: background-color var(--transition), border-color var(--transition), color var(--transition), box-shadow var(--transition);
}

.interactive-dashboard__tab {
  min-height: 62px;
  padding: 0.28rem 0.32rem;
}

.interactive-dashboard__tab.is-active,
.interactive-dashboard__option.is-active {
  border-color: var(--dashboard-ink);
  background: var(--dashboard-ink);
  color: #ffffff;
  box-shadow: 0 10px 22px rgba(0,0,0,0.16);
}

.interactive-dashboard__tab:hover,
.interactive-dashboard__tab:focus-visible,
.interactive-dashboard__option:hover,
.interactive-dashboard__option:focus-visible {
  border-color: var(--dashboard-ink);
  color: var(--dashboard-ink);
  outline: none;
}

.interactive-dashboard__tab.is-active:hover,
.interactive-dashboard__tab.is-active:focus-visible,
.interactive-dashboard__option.is-active:hover,
.interactive-dashboard__option.is-active:focus-visible {
  color: #ffffff;
}

.interactive-dashboard__panel {
  display: grid;
  grid-template-rows: 42px 45px minmax(0, 1fr);
  min-width: 0;
  min-height: 0;
}

.interactive-dashboard__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 42px;
}

.interactive-dashboard__option {
  width: auto;
  min-width: 72px;
  min-height: 28px;
  padding: 0.25rem 0.6rem;
  font-size: 0.56rem;
}

.interactive-dashboard__content-title {
  align-self: center;
  min-width: 0;
  margin: 0;
  color: var(--dashboard-ink);
  font-size: clamp(0.78rem, 2.1vw, 1.02rem);
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
}

html[lang="cs"] .interactive-dashboard[data-dashboard-active-category="stats"] .interactive-dashboard__content-title {
  transform: translateY(0.63em);
}

.interactive-dashboard__stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 0;
  overflow: visible;
}

.interactive-dashboard__chart {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  min-height: 250px;
}

.interactive-dashboard__pie {
  width: min(100%, 232px);
  aspect-ratio: 1;
  overflow: visible;
}

.interactive-dashboard__pie-slice {
  cursor: pointer;
  stroke: #f8f8f8;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.4;
  transition: filter var(--transition), opacity var(--transition);
}

.interactive-dashboard__pie-piece--scrum .interactive-dashboard__pie-slice {
  fill: #87939c;
}

.interactive-dashboard__pie-piece--kanban .interactive-dashboard__pie-slice {
  fill: #111111;
}

.interactive-dashboard__pie-slice:hover {
  opacity: 0.9;
}

.interactive-dashboard__pie-slice:focus,
.interactive-dashboard__pie-slice:focus-visible,
.interactive-dashboard__hotspot:focus-visible {
  outline: none;
}

.interactive-dashboard__pie-piece--scrum .interactive-dashboard__pie-slice {
  filter: drop-shadow(0 9px 12px rgba(0,0,0,0.13));
}

.interactive-dashboard__pie-label {
  fill: #ffffff;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  pointer-events: none;
  text-anchor: middle;
  text-transform: uppercase;
}

.interactive-dashboard__pie-label--scrum {
  font-size: 0.44rem;
  letter-spacing: 0.025em;
}

.interactive-dashboard__chart--delivery {
  min-height: 0;
}

.interactive-dashboard__delivery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.72rem 1.1rem;
  width: min(100%, 292px);
  align-items: start;
}

.interactive-dashboard__delivery-item {
  display: grid;
  justify-items: center;
  gap: 0.28rem;
  min-width: 0;
}

.interactive-dashboard__donut {
  display: block;
  width: clamp(82px, 18vw, 104px);
  aspect-ratio: 1;
  overflow: visible;
}

.interactive-dashboard__donut-track,
.interactive-dashboard__donut-value {
  fill: none;
  stroke-width: 5.2;
}

.interactive-dashboard__donut-track {
  stroke: #d4d8da;
}

.interactive-dashboard__donut-value {
  stroke: var(--dashboard-ink);
  stroke-linecap: butt;
  transform: rotate(-90deg);
  transform-origin: 50% 50%;
}

.interactive-dashboard__donut-percent {
  fill: var(--dashboard-ink);
  font-size: 0.34rem;
  font-weight: 900;
  text-anchor: middle;
  dominant-baseline: central;
}

.interactive-dashboard__donut-title {
  color: var(--dashboard-ink);
  font-size: 0.56rem;
  font-weight: 850;
  line-height: 1.1;
  text-align: center;
  text-transform: uppercase;
}

.interactive-dashboard__list,
.interactive-dashboard__stats-list {
  display: grid;
  gap: 0.46rem;
  width: fit-content;
  max-width: min(100%, 260px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.interactive-dashboard__list--spacious {
  gap: 0.68rem;
}

.interactive-dashboard__list li,
.interactive-dashboard__stats-list li,
.interactive-dashboard__stats-used {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0.32rem 0.6rem;
  border: 1px solid var(--dashboard-border);
  border-radius: 999px;
  background: #fbfcfd;
  color: var(--dashboard-ink);
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
}

.interactive-dashboard__stats-list {
  gap: 0.68rem;
}

.interactive-dashboard__stats-list li {
  min-height: 34px;
  padding: 0.42rem 0.8rem;
}

.interactive-dashboard__chart--stats {
  align-content: start;
  padding-top: 0.72rem;
}

.interactive-dashboard__stats-stack {
  width: fit-content;
  max-width: 100%;
}

.interactive-dashboard__stats-used {
  display: block;
  min-height: 0;
  margin: 1.55rem 0 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--dashboard-ink);
  font-size: clamp(0.78rem, 2.1vw, 1.02rem);
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
}

.interactive-dashboard__venn {
  /* Adjust Venn label positions here: negative X = left, positive X = right, negative Y = up, positive Y = down. */
  --venn-user-x: 0rem;
  --venn-user-y: -1.5rem;
  --venn-business-x: -1.8rem;
  --venn-business-y: 0.5rem;
  --venn-technical-x: 1.8rem;
  --venn-technical-y: 0.5rem;
  position: relative;
  width: min(100%, 268px);
  aspect-ratio: 1.08;
}

.interactive-dashboard__venn-circle {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 58%;
  aspect-ratio: 1;
  padding: 0.78rem;
  border: 1px solid rgba(17,17,17,0.7);
  border-radius: 50%;
  background: rgba(112,116,118,0.18);
  color: var(--dashboard-ink);
  font-size: 0.64rem;
  font-weight: 700;
  line-height: 1.08;
  text-align: center;
  gap: 0.02rem;
}

.interactive-dashboard__venn-circle span {
  display: block;
}

.interactive-dashboard__venn-aim {
  position: absolute;
  left: 50%;
  top: 54%;
  z-index: 4;
  display: block;
  color: var(--dashboard-ink);
  font-size: 0.76rem;
  font-weight: 950;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
  pointer-events: none;
  transform: translate(-50%, -50%);
}

.interactive-dashboard__venn-circle--top {
  left: 21%;
  top: 1%;
}

.interactive-dashboard__venn-circle--left {
  left: 4%;
  bottom: 4%;
}

.interactive-dashboard__venn-circle--right {
  right: 4%;
  bottom: 4%;
}

.interactive-dashboard__venn-circle--top span {
  transform: translate(var(--venn-user-x), var(--venn-user-y));
}

.interactive-dashboard__venn-circle--left span {
  transform: translate(var(--venn-business-x), var(--venn-business-y));
}

.interactive-dashboard__venn-circle--right span {
  transform: translate(var(--venn-technical-x), var(--venn-technical-y));
}

.interactive-dashboard__svs {
  position: relative;
  width: min(100%, 270px);
  aspect-ratio: 1;
}

.interactive-dashboard__svs-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.interactive-dashboard__svs-lines {
  z-index: 1;
}

.interactive-dashboard__svs-arrow {
  fill: none;
  stroke: #87939c;
  stroke-linecap: butt;
  stroke-width: 1.2;
  marker-end: url(#dashboard-arrowhead);
}

.interactive-dashboard__svs-arrow--plain {
  marker-end: none;
}

.interactive-dashboard__svs-arrowhead {
  fill: #87939c;
  stroke: none;
  shape-rendering: geometricPrecision;
}

.interactive-dashboard__svs-lines marker path {
  fill: #87939c;
  shape-rendering: geometricPrecision;
  stroke: none;
}

.interactive-dashboard__node {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  min-height: 42px;
  padding: 0.25rem;
  border: 1px solid var(--dashboard-muted);
  border-radius: 999px;
  background: #fbfcfd;
  color: var(--dashboard-ink);
  font-size: 0.52rem;
  font-weight: 800;
  line-height: 1.12;
  text-align: center;
  text-transform: uppercase;
  box-shadow: 0 8px 18px rgba(0,0,0,0.07);
}

.interactive-dashboard__node--value {
  left: 50%;
  top: 50%;
  background: var(--dashboard-ink);
  color: #ffffff;
  transform: translate(-50%, -50%);
}

.interactive-dashboard__node--plan { left: 50%; top: 11%; transform: translate(-50%, -50%); }
.interactive-dashboard__node--improve { left: 83.8%; top: 30.5%; transform: translate(-50%, -50%); }
.interactive-dashboard__node--engage { left: 83.8%; top: 69.5%; transform: translate(-50%, -50%); }
.interactive-dashboard__node--design { left: 50%; top: 89%; transform: translate(-50%, -50%); }
.interactive-dashboard__node--obtain { left: 16.2%; top: 69.5%; transform: translate(-50%, -50%); }
.interactive-dashboard__node--deliver { left: 16.2%; top: 30.5%; transform: translate(-50%, -50%); }

.interactive-dashboard__swot {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: min(100%, 250px);
  border: 0;
  border-radius: 10px;
  overflow: hidden;
}

.interactive-dashboard__swot-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 82px;
  padding: 0.52rem;
  border: 0;
  border-right: 1.5px solid #9aa2a8;
  border-bottom: 1.5px solid #9aa2a8;
  background: #fbfcfd;
  color: var(--dashboard-ink);
  font-size: 0.9rem;
  line-height: 1.22;
  text-align: center;
}

.interactive-dashboard__swot-item span {
  display: block;
}

.interactive-dashboard__swot-item span + span {
  margin-top: 0.18rem;
}

.interactive-dashboard__moscow-list li {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  justify-content: stretch;
  gap: 0.52rem;
  padding-left: 0.42rem;
  padding-right: 0.8rem;
}

.interactive-dashboard__moscow-list span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--dashboard-ink);
  color: #ffffff;
  font-weight: 900;
}

.interactive-dashboard__moscow-list strong {
  justify-self: start;
  font-weight: 800;
}

.interactive-dashboard__swot-item:nth-child(2n) {
  border-right: 0;
}

.interactive-dashboard__swot-item:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.interactive-dashboard__swot-item strong {
  font-weight: 950;
}

.interactive-dashboard__popup {
  z-index: 8;
}

.interactive-dashboard {
  --dashboard-width-desktop: 520px;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr);
  gap: 1.25rem;
  height: 452px;
  min-height: 452px;
  padding: 0.95rem;
  border-color: rgba(112,116,118,0.38);
  background: linear-gradient(180deg, rgba(255,255,255,0.92) 0%, rgba(243,243,243,0.68) 100%);
  box-shadow: 0 18px 42px rgba(0,0,0,0.09);
}

.interactive-dashboard .interactive-dashboard__tabs {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: none;
  gap: 0.9rem;
  box-sizing: border-box;
  padding: 0 0.38rem;
}

.interactive-dashboard .interactive-dashboard__tab {
  min-height: 58px;
  padding: 0.42rem 0.55rem;
  border-radius: 14px;
  background: #fbfcfd;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.7), 0 10px 22px rgba(0,0,0,0.08);
}

.interactive-dashboard .interactive-dashboard__tab.is-active {
  border-color: var(--dashboard-ink);
  background: var(--dashboard-ink);
  color: #ffffff;
  box-shadow: 0 12px 26px rgba(0,0,0,0.18);
}

.interactive-dashboard .interactive-dashboard__tab.is-active:hover,
.interactive-dashboard .interactive-dashboard__tab.is-active:focus-visible {
  color: #ffffff;
}

.interactive-dashboard .interactive-dashboard__panel {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: 40px auto minmax(0, 1fr);
  justify-items: center;
  gap: 0.55rem;
  min-height: 0;
}

.interactive-dashboard .interactive-dashboard__actions {
  grid-column: 1;
  grid-row: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.45rem;
  min-height: 0;
}

.interactive-dashboard .interactive-dashboard__option {
  width: auto;
  min-width: 72px;
  min-height: 30px;
  border-radius: 999px;
}

.interactive-dashboard .interactive-dashboard__content-title {
  grid-column: 1;
  grid-row: 1;
  justify-self: center;
}

.interactive-dashboard .interactive-dashboard__stage {
  grid-column: 1;
  grid-row: 3;
  justify-self: stretch;
  min-height: 0;
}

.interactive-dashboard .interactive-dashboard__svs {
  width: min(100%, 238px);
}

/* ===================================
   About Me Page
   =================================== */

.page-title {
  font-size: 2.8rem;
  font-weight: 600;
  margin-bottom: 2.5rem;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--color-text);
}

.about-grid {
  --about-photo-base-width: 150px;
  --about-photo-width: var(--about-photo-base-width);
  --about-photo-gap: 3rem;
  display: grid;
  grid-template-columns: var(--about-photo-width) minmax(0, 1fr);
  gap: var(--about-photo-gap);
  align-items: start;
  margin-bottom: 3rem;
}

.about-photo {
  width: 100%;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.about-grid--interactive {
  --about-love-color: #b0185b;
  --about-like-color: #1f66d1;
  --about-love-bg: rgba(176, 24, 91, 0.06);
  --about-like-bg: rgba(31, 102, 209, 0.06);
  --about-word-color: var(--color-text);
  --about-word-font-size: clamp(0.74rem, 1.2vw, 0.96rem);
  --about-word-font-weight: 650;
  --about-words-area-height: 158px;
  --about-stage-min-height: var(--about-words-area-height);
  --about-result-min-height: var(--about-words-area-height);
  --about-pill-width: 108px;
  --about-pill-gap: 0.55rem;
  --about-words-max-width: 560px;
  margin-bottom: 2rem;
}

.about-grid--interactive.about-grid--word-pills {
  --about-love-color: #ffffff;
  --about-like-color: #111111;
  --about-love-bg: #343535;
  --about-like-bg: #f8f8f8;
  --about-word-font-size: 0.62rem;
  --about-word-font-weight: 760;
}

.about-words {
  position: relative;
  min-width: 0;
  width: min(100%, var(--about-words-max-width));
  justify-self: start;
}

.about-words__stage,
.about-words__result {
  position: relative;
  min-height: var(--about-stage-min-height);
  overflow: hidden;
}

.about-words__stage {
  border: 1px solid transparent;
}

.about-words__scatter,
.about-words__result {
  width: 100%;
}

.about-words__word {
  position: absolute;
  display: inline-block;
  color: var(--about-word-color);
  font-size: var(--about-word-font-size);
  font-weight: var(--about-word-font-weight);
  line-height: 1.15;
  white-space: nowrap;
  user-select: none;
  will-change: transform, color;
}

.about-words__word--love {
  color: var(--about-love-color);
}

.about-words__word--like {
  color: var(--about-like-color);
}

.about-grid--word-pills .about-words__word {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 22px;
  padding: 0.16rem 0.42rem;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: var(--about-word-font-size);
  line-height: 1;
  letter-spacing: 0.025em;
  box-shadow: 0 5px 12px rgba(0,0,0,0.06);
}

.about-grid--word-pills .about-words__word[data-group="love"],
.about-grid--word-pills .about-words__word--love {
  color: #ffffff;
  background: #343535;
}

.about-grid--word-pills .about-words__word[data-group="like"],
.about-grid--word-pills .about-words__word--like {
  color: #111111;
  background: #f8f8f8;
}

.about-words__button {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 64px;
  min-height: 24px;
  padding: 0.2rem 0.44rem;
  border: 1px solid var(--color-text);
  border-radius: 999px;
  background: var(--color-card);
  color: var(--color-text);
  font: 750 0.66rem/1 Arial, Helvetica, sans-serif;
  letter-spacing: 0.045em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(0,0,0,0.08);
  transform: translate(-50%, -50%);
  animation: aboutButtonBreathe 2.6s ease-in-out infinite;
  touch-action: none;
  user-select: none;
  will-change: transform;
}

.about-words__button.is-move-ready {
  min-width: 66px;
  padding-left: 0.44rem;
  padding-right: 0.44rem;
  cursor: grab;
}

.about-words__button.is-dragging {
  animation: none;
  cursor: grabbing;
}

.about-grid--word-pills .about-words__button {
  border-color: #ec2027;
  background: #ec2027;
  color: #ffffff;
}

@keyframes aboutButtonBreathe {
  0%, 100% {
    scale: 1;
  }

  50% {
    scale: 1.03;
  }
}

.about-words__result {
  display: none;
  min-height: var(--about-result-min-height);
}

.about-words.is-falling .about-words__stage,
.about-words.is-revealed .about-words__stage {
  display: none;
}

.about-words.is-falling .about-words__result,
.about-words.is-revealed .about-words__result {
  display: block;
}

.about-words__pills {
  display: flex;
  justify-content: center;
  gap: var(--about-pill-gap);
  margin-top: 0.8rem;
  opacity: 0;
  transition: opacity 0.32s ease;
  pointer-events: none;
}

.about-words.is-falling .about-words__pills,
.about-words.is-revealed .about-words__pills {
  opacity: 1;
}

.about-words__pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--about-pill-width);
  min-height: 30px;
  padding: 0.32rem 0.48rem;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 0.64rem;
  font-weight: 750;
  line-height: 1.1;
  letter-spacing: 0.04em;
  text-align: center;
  text-transform: uppercase;
}

.about-words__pill--love {
  color: var(--about-love-color);
  background: var(--about-love-bg);
}

.about-words__pill--like {
  color: var(--about-like-color);
  background: var(--about-like-bg);
}

.about-intro {
  font-size: 1.05rem;
  line-height: 1.75;
}

.about-intro a {
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.section-heading {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 2.5rem 0 1.2rem;
  color: var(--color-text);
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

/* Experience timeline */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.timeline-item {
  background-color: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.3rem 1.6rem;
  border-left: 3px solid var(--color-text);
  box-shadow: var(--shadow);
}

.timeline-period {
  font-size: 0.75rem;
  color: var(--color-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.3rem;
}

.timeline-role {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.1rem;
  letter-spacing: -0.01em;
}

.timeline-company {
  font-size: 0.85rem;
  color: var(--color-muted);
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.timeline-desc {
  font-size: 0.88rem;
  color: var(--color-timeline);
  line-height: 1.65;
}

.timeline-desc a {
  color: var(--color-text);
  text-decoration: underline;
  text-underline-offset: 2px;
}

@media (max-width: 680px) {
  .timeline-desc__mobile-line {
    display: block;
    margin-bottom: 0.01rem;
  }

  .timeline-desc__mobile-line:last-child {
    margin-bottom: 0;
  }
}

/* Skills grid */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  column-gap: 1.2rem;
  row-gap: 3rem;
}

.skill-card {
  background-color: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.2rem 1.4rem;
  box-shadow: var(--shadow);
}

.skill-card h4 {
  font-size: 0.72rem;
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.65rem;
  font-weight: 700;
}

.skill-card ul {
  list-style: none;
}

.skill-card ul li {
  font-size: 0.86rem;
  padding: 0.2rem 0;
  color: var(--color-text);
}

/* Certs grid */
.certs-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  column-gap: 0.6rem;
  row-gap: 3rem;
}

.cert-item {
  background-color: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  padding: 0.65rem 1rem;
  font-size: 0.86rem;
  box-shadow: var(--shadow);
}

.cert-year {
  color: var(--color-muted);
  font-weight: 700;
  font-size: 0.76rem;
  margin-right: 0.4rem;
  letter-spacing: 0.04em;
}

/* Languages */
.languages-list {
  display: flex;
  flex-wrap: wrap;
  column-gap: 0.8rem;
  row-gap: 3rem;
}

.lang-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 192px;
  background-color: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: 100px;
  padding: 0.45rem 1.1rem;
  font-size: 0.86rem;
  text-align: center;
  white-space: nowrap;
  box-shadow: var(--shadow);
}

.lang-level {
  color: var(--color-muted);
  font-weight: 600;
  margin-left: 0.4rem;
}

/* ===================================
   Projects Page
   =================================== */

.projects-intro {
  font-size: 1.05rem;
  margin-bottom: 2.5rem;
  color: var(--color-text);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  column-gap: 2rem;
  row-gap: 3rem;
}

.project-card {
  background-color: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.project-card-img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  object-position: top;
}

.project-card-body {
  padding: 1.3rem 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.project-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.project-card-meta {
  font-size: 0.76rem;
  color: var(--color-muted);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-weight: 600;
}

.project-card-role {
  font-size: 0.82rem;
  color: var(--color-muted);
  font-weight: 500;
  margin-bottom: 0.6rem;
}

.project-card-desc {
  font-size: 0.88rem;
  line-height: 1.65;
  color: var(--color-timeline);
  flex: 1;
}

.project-card-desc a {
  color: var(--color-text);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.project-card-link {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.82rem;
  color: var(--color-text);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  letter-spacing: 0.01em;
}

/* ===================================
   Web Applications Page
   =================================== */

.webapps-intro {
  font-size: 1.05rem;
  margin-bottom: 2.5rem;
  max-width: 700px;
}

.webapps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  column-gap: 2rem;
  row-gap: 3rem;
}

.webapp-card {
  background-color: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}

.webapp-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  opacity: 1;
}

.webapp-card-img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  object-position: top;
}

.webapp-card-body {
  padding: 1.4rem 1.6rem;
}

.webapp-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

.webapp-card-url {
  display: inline-block;
  font-size: 0.85rem;
  color: var(--color-muted);
  margin-bottom: 0.8rem;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.webapp-card-desc {
  font-size: 0.88rem;
  line-height: 1.65;
  color: var(--color-timeline);
}

/* ===================================
   Photography Page
   =================================== */

.photography-intro {
  font-size: 1.05rem;
  margin-bottom: 2.5rem;
}

.photo-section {
  margin-bottom: 3rem;
}

.photo-section-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--color-text);
  letter-spacing: -0.01em;
}

.photo-section-desc {
  font-size: 0.95rem;
  color: var(--color-text);
  margin-bottom: 1.2rem;
  max-width: 680px;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.8rem;
}

.photo-thumb {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 6px;
  cursor: pointer;
  transition: transform var(--transition), filter var(--transition);
}

.photo-thumb:hover {
  transform: scale(1.03);
  filter: brightness(1.1);
}

/* Lightbox */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 9000;
  display: none;
  align-items: center;
  justify-content: center;
}

.lightbox-overlay.open {
  display: flex;
}

.lightbox-content {
  position: relative;
  max-width: 92vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-img {
  max-width: 88vw;
  max-height: 86vh;
  border-radius: 6px;
  box-shadow: 0 0 40px rgba(0,0,0,0.7);
  object-fit: contain;
}

.lightbox-close {
  position: fixed;
  top: 1.2rem;
  right: 1.5rem;
  background: rgba(31,31,31,0.7);
  border: none;
  color: #fff;
  font-size: 1.8rem;
  cursor: pointer;
  z-index: 9001;
  line-height: 1;
  padding: 0.35rem 0.65rem;
  border-radius: 6px;
  transition: background var(--transition);
}

.lightbox-close:hover {
  background: rgba(31,31,31,0.95);
}

.lightbox-prev,
.lightbox-next {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(31,31,31,0.6);
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  padding: 0.8rem 1rem;
  border-radius: 6px;
  z-index: 9001;
  transition: background var(--transition);
  line-height: 1;
}

.lightbox-prev { left: 0.8rem; }
.lightbox-next { right: 0.8rem; }

.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(31,31,31,0.9);
}

/* ===================================
   Contact Page
   =================================== */

.contact-heading {
  font-size: 1.05rem;
  margin-bottom: 3rem;
}

.contact-method {
  background-color: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.5rem 2rem;
  margin-bottom: 3rem;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  box-shadow: var(--shadow);
  max-width: 540px;
}

.contact-method-icon {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  fill: var(--color-text);
}

.contact-method-label {
  font-size: 0.72rem;
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.contact-method-value {
  font-size: 0.95rem;
  font-weight: 600;
}

.contact-method-value a {
  color: var(--color-text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact-note {
  font-size: 0.88rem;
  color: var(--color-muted);
  margin-top: 0;
  max-width: 480px;
}

/* ===================================
   FAQs Page
   =================================== */

.faqs-subtitle {
  font-size: 1rem;
  color: var(--color-muted);
  margin-bottom: 2.5rem;
  font-style: italic;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  max-width: 800px;
}

.faq-item {
  background-color: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  color: var(--color-text);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  text-align: left;
  padding: 1.15rem 1.4rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  transition: background var(--transition);
}

.faq-question:hover {
  background: var(--color-card-alt);
}

.faq-chevron {
  font-size: 0.9rem;
  transform: rotate(90deg);
  transition: transform 0.3s ease;
  flex-shrink: 0;
  color: var(--color-muted);
}

.faq-item.open .faq-chevron {
  transform: rotate(-90deg);
}

.faq-answer {
  display: none;
  padding: 0 1.4rem 1.15rem;
  font-size: 0.88rem;
  line-height: 1.72;
  color: var(--color-timeline);
  border-top: 1px solid var(--color-border);
}

.faq-item.open .faq-answer {
  display: block;
}

.faq-answer a {
  color: var(--color-text);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ===================================
   404 Page
   =================================== */

.error-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 2rem;
  flex: 1;
}

.error-code {
  font-size: 6rem;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1;
  margin-bottom: 1rem;
  letter-spacing: -0.04em;
}

.error-msg {
  font-size: 1.3rem;
  margin-bottom: 0.8rem;
}

.error-sub {
  font-size: 0.95rem;
  color: var(--color-muted);
  margin-bottom: 2rem;
}

.btn-home {
  display: inline-block;
  background-color: var(--color-accent);
  color: var(--color-accent-text);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.8rem 2.2rem;
  border-radius: 100px;
  font-family: inherit;
  letter-spacing: 0.02em;
  transition: opacity var(--transition);
}

.btn-home:hover {
  opacity: 0.82;
}

/* ===================================
   Responsive Breakpoints
   =================================== */

@media (max-width: 1050px) {
  .nav-menu {
    gap: 1rem;
  }

  .nav-menu li a {
    font-size: 0.82rem;
    padding: 0.3rem 0.4rem;
  }
}

@media (max-width: 900px) {
  .globe-title-wrap {
    --globe-title-margin-top: var(--globe-title-margin-top-tablet);
    --globe-title-margin-bottom: var(--globe-title-margin-bottom-tablet);
  }

  .globe-wrap {
    --globe-wrap-margin-top: var(--globe-wrap-margin-top-tablet);
    --globe-wrap-margin-bottom: var(--globe-wrap-margin-bottom-tablet);
  }

  .globe-shell {
    width: min(100%, var(--globe-size-tablet));
  }

  .about-grid {
    --about-photo-gap: 1.5rem;
  }

  .icon-nav-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.2rem;
  }

  .site-header {
    padding: 1.7rem 2rem;
  }

  .nav-menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: calc(100% + 0.9rem);
    left: 0;
    right: 0;
    background-color: var(--color-nav);
    padding: 1rem;
    gap: 0.2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    border: 1px solid var(--color-border);
    border-radius: 0 0 var(--radius) var(--radius);
    z-index: 999;
  }

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

  .nav-menu li a {
    font-size: 1rem;
    padding: 0.6rem 1rem;
    display: block;
  }

  .hamburger {
    display: flex;
    right: 0;
  }

  .lang-switcher {
    right: 50px;
  }

  .home-button {
    left: -0.4rem;
  }

  .home-button img {
    width: 26px;
    height: 24px;
  }
}

@media (max-width: 560px) {
  .globe-title-wrap {
    --globe-title-margin-top: var(--globe-title-margin-top-mobile);
    --globe-title-margin-bottom: var(--globe-title-margin-bottom-mobile);
  }

  .globe-wrap {
    --globe-wrap-margin-top: var(--globe-wrap-margin-top-mobile);
    --globe-wrap-margin-bottom: var(--globe-wrap-margin-bottom-mobile);
  }

  .globe-shell {
    width: min(100%, var(--globe-size-mobile));
  }

  .workflow-nav-wrap {
    width: min(100%, 320px);
    padding: 0.5rem 0.25rem;
  }

  .interactive-dashboard {
    grid-template-columns: 64px minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr);
    gap: 0.4rem;
    width: min(100%, var(--dashboard-width-mobile));
    min-height: 320px;
    aspect-ratio: 1;
    padding: 0.48rem;
    border-radius: 8px;
  }

  .interactive-dashboard__title-box {
    min-height: 3.45rem;
    padding: 0.78rem 0.45rem 0.56rem;
  }

  .interactive-dashboard__title {
    --globe-title-line-width: 1.35px;
    font-size: var(--home-section-title-size);
    letter-spacing: 0.035em;
  }

  .interactive-dashboard__tabs {
    grid-template-rows: repeat(3, 48px);
    gap: 0.24rem;
  }

  .interactive-dashboard__tab {
    min-height: 0;
    padding: 0.14rem 0.08rem;
    font-size: 0.58rem;
    letter-spacing: 0.065em;
  }

  .interactive-dashboard__panel {
    grid-template-rows: 34px 39px minmax(0, 1fr);
  }

  .interactive-dashboard__actions {
    gap: 0.25rem;
    min-height: 34px;
  }

  .interactive-dashboard__option {
    min-width: 48px;
    min-height: 24px;
    padding: 0.2rem 0.32rem;
    font-size: 0.46rem;
    letter-spacing: 0.035em;
  }

  .interactive-dashboard__content-title {
    font-size: 0.68rem;
  }

  .interactive-dashboard__chart {
    min-height: 200px;
  }

  .interactive-dashboard__pie {
    width: min(100%, 178px);
  }

  .interactive-dashboard__delivery-grid {
    grid-template-columns: repeat(2, minmax(82px, 104px));
    gap: 0.45rem 0.62rem;
    justify-content: center;
    width: 100%;
    max-width: 292px;
  }

  .interactive-dashboard__donut {
    width: clamp(82px, 18vw, 104px);
  }

  .interactive-dashboard__donut-title {
    font-size: 0.56rem;
  }

  .interactive-dashboard__venn {
    width: min(100%, 218px);
  }

  .interactive-dashboard__venn-circle {
    padding: 0.45rem;
    font-size: 0.47rem;
  }

  .interactive-dashboard__venn-aim {
    font-size: 0.6rem;
  }

  .interactive-dashboard__svs {
    width: min(100%, 185px);
  }

  .interactive-dashboard__node {
    width: 50px;
    min-height: 31px;
    font-size: 0.36rem;
  }

  .interactive-dashboard__swot {
    width: min(100%, 180px);
  }

  .interactive-dashboard__swot-item {
    min-height: 56px;
    padding: 0.34rem;
    font-size: 0.64rem;
  }

  .interactive-dashboard__list,
  .interactive-dashboard__stats-list {
    width: min(100%, 178px);
    gap: 0.25rem;
  }

  .interactive-dashboard__stats-list {
    gap: 0.45rem;
  }

  .interactive-dashboard__list li,
  .interactive-dashboard__stats-list li,
  .interactive-dashboard__stats-used {
    min-height: 24px;
    padding: 0.22rem 0.3rem;
    font-size: 0.5rem;
  }

  .interactive-dashboard__stats-list li {
    min-height: 28px;
    padding: 0.28rem 0.45rem;
  }

  .interactive-dashboard {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr);
    gap: 0.55rem;
    height: 354px;
    min-height: 354px;
    aspect-ratio: auto;
    padding: 0.42rem;
  }

  .interactive-dashboard .interactive-dashboard__tabs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: none;
    gap: 0.4rem;
    padding: 0 0.18rem;
  }

  .interactive-dashboard .interactive-dashboard__tab {
    min-height: 44px;
    padding: 0.22rem 0.12rem;
    border-radius: 10px;
    font-size: 0.58rem;
  }

  .interactive-dashboard .interactive-dashboard__panel {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: 34px auto minmax(0, 1fr);
    gap: 0.24rem;
  }

  .interactive-dashboard .interactive-dashboard__actions {
    gap: 0.28rem;
  }

  .interactive-dashboard .interactive-dashboard__option {
    width: auto;
    min-width: 48px;
    min-height: 26px;
    padding: 0.2rem 0.32rem;
    border-radius: 999px;
  }

  .interactive-dashboard .interactive-dashboard__svs {
    width: min(100%, 166px);
  }

  .workflow-nav {
    grid-template-columns: repeat(2, 112px);
    justify-content: space-between;
    gap: 1.45rem 0;
  }

  .workflow-nav__card {
    width: 112px;
    min-height: 38px;
    padding: 0.14rem 0.06rem;
    box-shadow: 0 8px 18px rgba(0,0,0,0.08);
  }

  .workflow-nav__title {
    font-size: 0.58rem;
    line-height: 1.1;
    letter-spacing: 0.035em;
  }

  .workflow-nav__card:hover,
  .workflow-nav__card:focus-visible {
    box-shadow: 0 12px 24px rgba(0,0,0,0.16);
  }
}

@media (max-width: 360px) {
  .workflow-nav-wrap {
    width: min(100%, 296px);
  }

  .workflow-nav {
    grid-template-columns: repeat(2, 104px);
    gap: 1.25rem 0;
  }

  .workflow-nav__card {
    width: 104px;
    min-height: 36px;
    padding: 0.12rem 0.05rem;
  }

  .workflow-nav__title {
    font-size: 0.54rem;
    letter-spacing: 0.025em;
  }
}

@media (max-width: 768px) {
  :root {
    --icon-size: 96px;
  }

  .main-content {
    padding: 1rem 1.2rem;
  }

  .page-title {
    font-size: 2.2rem;
  }

  .home-logo-name {
    font-size: 2rem;
  }

  .icon-nav-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .icon-nav-card img {
    width: var(--icon-size);
    height: var(--icon-size);
  }

  .icon-nav-label {
    font-size: 0.85rem;
  }

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

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

  .photo-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  }

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

@media (max-width: 480px) {
  .about-grid {
    --about-photo-mobile-scale: 1;
    --about-photo-width: calc(var(--about-photo-base-width) * var(--about-photo-mobile-scale));
    --about-photo-gap: 0.9rem;
  }

  .about-grid--interactive {
    --about-pill-width: 98px;
    --about-pill-gap: 0.45rem;
    --about-photo-width: var(--about-pill-width);
    grid-template-columns: minmax(0, var(--about-photo-width)) minmax(0, 1fr);
    column-gap: var(--about-photo-gap);
    row-gap: 0;
  }

  .about-grid--interactive .about-photo {
    grid-column: 1;
    grid-row: 1;
    width: var(--about-photo-width);
  }

  .about-grid--interactive .about-words {
    display: contents;
  }

  .about-grid--interactive .about-words__stage,
  .about-grid--interactive .about-words__result {
    grid-column: 2;
    grid-row: 1 / 3;
    width: 100%;
  }

  .about-grid--interactive .about-words__result {
    align-self: stretch;
    height: 100%;
    min-height: 100%;
  }

  .about-grid--interactive .about-words__pills {
    grid-column: 1;
    grid-row: 2;
    width: var(--about-photo-width);
    flex-direction: column;
    justify-content: flex-start;
    margin-top: 1rem;
  }

  .icon-nav-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .footer-inner {
    flex-direction: column;
    gap: 1.2rem;
  }

  .lightbox-prev,
  .lightbox-next {
    font-size: 1.5rem;
    padding: 0.6rem 0.7rem;
  }
}

@media (max-width: 387px) {
  .contact-method {
    gap: 0.6rem;
    padding: 1.2rem 0.85rem;
  }

  .contact-method-icon {
    width: 26px;
    height: 26px;
  }

  .contact-method-label {
    font-size: 0.62rem;
  }

  .contact-method-value {
    font-size: 15.2px;
    white-space: nowrap;
  }
}

@media (max-width: 522px) {
  .about-grid--word-pills {
    --about-words-area-height: 224px;
  }

  .about-grid--word-pills .about-words__stage,
  .about-grid--word-pills .about-words__result {
    min-height: var(--about-words-area-height);
  }
}

/* ============================================================
   HOME — Stats animation row + timeline
   ============================================================ */

.home-section--stats {
  width: 100%;
  padding: 0 1rem;
}

.stats-title-wrap {
}

.stats-a {
  display: flex;
  justify-content: center;
  align-items: stretch;
  width: 100%;
  max-width: 820px;
  margin: 0 auto 1.2rem;
  border: 1px solid #e2e2e2;
  border-radius: 10px;
  overflow: hidden;
}

.stat-a {
  flex: 1;
  padding: 1.5rem 0.8rem 1.2rem;
  text-align: center;
  border-right: 1px solid #e2e2e2;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.stat-a:last-child { border-right: none; }
.stat-a.show { opacity: 1; transform: translateY(0); }

.stat-a__num {
  display: block;
  font-size: clamp(1.25rem, 2.2vw, 2rem);
  font-weight: 700;
  color: #111;
  line-height: 1;
  margin-bottom: 0.45rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.stat-a__label {
  display: block;
  font-size: 0.65rem;
  font-weight: 600;
  color: #707476;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1.8;
}

.tl-a {
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
  user-select: none;
  --tl-line-thickness: 6px;
  --tl-toggle-thickness: 18px;
  --tl-toggle-width: 7.6923%;
  --tl-toggle-min-width: 34px;
  --tl-touch-height: 44px;
  --tl-toggle-pulse-scale: 1;
  --tl-toggle-pulse-duration: 1.8s;
}

/* Timeline sizing controls - desktop */
.tl-settings {
  --tl-line-thickness: 8px;
  --tl-toggle-thickness: 18px;
  --tl-toggle-width: 7.6923%;
  --tl-toggle-min-width: 34px;
  --tl-toggle-pulse-scale: 1.12;
  --tl-toggle-pulse-duration: 1.8s;
}

.tl-a__track {
  position: relative;
  height: var(--tl-line-thickness);
  background: #e2e2e2;
  border-radius: 2px;
  margin-bottom: 0.75rem;
}

.tl-settings .tl-a__track {
  cursor: ew-resize;
  touch-action: none;
}

.tl-settings .tl-a__track::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: var(--tl-touch-height);
  transform: translateY(-50%);
  z-index: 1;
}

.tl-a__fill {
  position: absolute;
  left: 0; top: 0;
  height: 100%;
  width: 100%;
  background: #111;
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 5s linear;
}

.tl-a__handle {
  position: absolute;
  left: 0;
  top: 50%;
  height: var(--tl-toggle-thickness);
  width: var(--tl-toggle-width);
  min-width: var(--tl-toggle-min-width);
  background: #111;
  border-radius: 999px;
  transform: translateY(-50%);
  box-shadow: 0 2px 10px rgba(0,0,0,0.16);
  z-index: 3;
  isolation: isolate;
}

.tl-a__handle::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #111;
  border-radius: inherit;
  box-shadow: inherit;
  transform: scale(1);
  transform-origin: center;
  z-index: -1;
  pointer-events: none;
}

.tl-settings .tl-a__track.is-ready:not(.is-dragging) .tl-a__handle::after {
  animation: tl-toggle-breathe var(--tl-toggle-pulse-duration) ease-in-out infinite;
}

@keyframes tl-toggle-breathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(var(--tl-toggle-pulse-scale)); }
}

.tl-settings .tl-a__fill {
  height: 100%;
  top: 0;
  width: 0;
  transform: none;
  border-radius: 999px;
  transform-origin: left;
}

.tl-a__range {
  position: absolute;
  inset: -20px 0;
  width: 100%;
  opacity: 0;
  cursor: ew-resize;
  z-index: 5;
}

.tl-settings .tl-a__track {
  border-radius: 999px;
}

.tl-settings .tl-dot {
  display: none;
}

.tl-dot {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%) scale(0);
  width: 12px; height: 12px;
  background: #fff;
  border: 2px solid #111;
  border-radius: 50%;
  transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.tl-dot.show { transform: translate(-50%, -50%) scale(1); }
.tl-dot.current { background: #111; width: 11px; height: 11px; border-width: 2.5px; }

.tl-a__years {
  display: flex;
  justify-content: space-between;
}

.tl-a__yr {
  font-size: 0.62rem;
  color: #b8b8b8;
  font-weight: 500;
}
.tl-a__yr.hl { color: #111; font-weight: 700; }

.tl-drag-hint {
  text-align: center;
  font-size: 0.68rem;
  color: #bbb;
  letter-spacing: 0.04em;
  height: 1.4em;
  margin-top: 0.4rem;
  transition: opacity 0.4s;
}

@media (max-width: 600px) {
  .tl-a {
    --tl-line-thickness: 6px;
    --tl-toggle-thickness: 22px;
    --tl-toggle-width: 7.6923%;
    --tl-toggle-min-width: 28px;
    --tl-touch-height: 56px;
    --tl-toggle-pulse-scale: 1;
    --tl-toggle-pulse-duration: 1.8s;
  }

  /* Timeline sizing controls - mobile */
  .tl-settings {
    --tl-line-thickness: 7px;
    --tl-toggle-thickness: 16px;
    --tl-toggle-width: 15%;
    --tl-toggle-min-width: 28px;
    --tl-toggle-pulse-scale: 1.1;
    --tl-toggle-pulse-duration: 1.8s;
  }

  .home-section--stats { padding: 0 0.2rem; }
  .stats-a { border-radius: 8px; }
  .stat-a { padding: 0.9rem 0.25rem 0.75rem; }
  .stat-a__num { font-size: clamp(0.95rem, 4vw, 1.3rem); margin-bottom: 0.3rem; }
  .stat-a__label { font-size: 0.4rem; letter-spacing: 0.03em; line-height: 1.8; }
  .tl-a__yr { font-size: 0.52rem; visibility: hidden; }
  .tl-a__yr[data-yr="2013"], .tl-a__yr[data-yr="2017"],
  .tl-a__yr[data-yr="2022"], .tl-a__yr[data-yr="2026"] { visibility: visible; }
  .tl-dot { width: 9px; height: 9px; }
  .tl-dot.current { width: 9px; height: 9px; }
  .tl-settings .tl-a__track::before { height: var(--tl-touch-height); }
  .tl-settings .tl-a__track { border-radius: 999px; }
  .tl-a__range { inset: -24px 0; }
}

@media (prefers-reduced-motion: reduce) {
  .about-words__button {
    animation: none;
  }

  .interactive-dashboard__tab,
  .interactive-dashboard__option,
  .interactive-dashboard__node {
    animation: none;
  }

  .workflow-nav-line__path--base {
    animation: none;
  }

  .globe-popup {
    transition: none;
  }

  .tl-settings .tl-a__handle::after {
    animation: none;
  }
}
