:root {
  --font-sans: "Commissioner", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Lora", "Times New Roman", Georgia, serif;
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --content-width: 1140px;
  --header-height: 76px;
  --anchor-offset: calc(var(--header-height));
}

body[data-theme="dark"] {
  --bg: #0b0d12;
  --bg-soft: #121621;
  --panel: rgba(18, 22, 33, 0.82);
  --panel-strong: rgba(14, 17, 26, 0.92);
  --panel-border: rgba(255, 255, 255, 0.08);
  --text: #eef2f8;
  --text-soft: #9ea9bb;
  --text-dim: #6d7584;
  --accent: #8ab4ff;
  --accent-strong: #5d92ff;
  --accent-warm: #ff915f;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.34);
}

body[data-theme="light"] {
  --bg: #f4f0e8;
  --bg-soft: #ece5da;
  --panel: rgba(255, 252, 247, 0.84);
  --panel-strong: rgba(255, 255, 255, 0.96);
  --panel-border: rgba(17, 20, 28, 0.08);
  --text: #151823;
  --text-soft: #5f6778;
  --text-dim: #7b8090;
  --accent: #2357cc;
  --accent-strong: #1846ac;
  --accent-warm: #c7602f;
  --shadow: 0 28px 70px rgba(41, 46, 58, 0.12);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--anchor-offset);
}

[id] {
  scroll-margin-top: var(--anchor-offset);
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(138, 180, 255, 0.16), transparent 28%),
    radial-gradient(circle at 85% 8%, rgba(255, 145, 95, 0.11), transparent 16%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.015), transparent 28%),
    var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  transition: background 220ms ease, color 220ms ease;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.85), transparent 80%);
  pointer-events: none;
}

body[data-theme="light"]::before {
  background-image:
    linear-gradient(rgba(17, 20, 28, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 20, 28, 0.05) 1px, transparent 1px);
}

.ambient {
  position: fixed;
  z-index: -1;
  width: 34rem;
  height: 34rem;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.45;
  pointer-events: none;
}

.ambient-one {
  top: -10rem;
  left: -8rem;
  background: rgba(93, 146, 255, 0.22);
}

.ambient-two {
  right: -12rem;
  top: 18rem;
  background: rgba(255, 145, 95, 0.18);
}

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

button {
  font: inherit;
}

h1,
h2,
h3,
p,
ul {
  margin: 0;
}

.page-shell {
  width: min(calc(100% - 28px), var(--content-width));
  margin: 0 auto;
  padding: 22px 0 56px;
}

.site-header {
  position: sticky;
  top: 14px;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 14px;
  justify-content: space-between;
  min-height: var(--header-height);
  margin-bottom: 30px;
  padding: 10px 12px;
  border: 1px solid var(--panel-border);
  border-radius: 999px;
  background: rgba(11, 13, 18, 0.8);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

body[data-theme="light"] .site-header {
  background: rgba(255, 252, 247, 0.74);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 15px;
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.06em;
  background: linear-gradient(135deg, var(--accent-strong), var(--accent-warm));
}

.brand-copy {
  display: grid;
  gap: 3px;
}

.brand-copy strong {
  font-size: 0.96rem;
  line-height: 1;
}

.brand-copy span {
  color: var(--text-soft);
  font-size: 0.82rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px;
  border: 1px solid var(--panel-border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
}

.lang-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--text-soft);
  font-size: 0.92rem;
  font-weight: 600;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.lang-link:hover {
  transform: translateY(-1px);
  color: var(--text);
}

.lang-link.is-active {
  background: linear-gradient(135deg, var(--accent-strong), var(--accent-warm));
  color: #fff;
}

.site-nav a,
.button,
.theme-toggle,
.filter-chip {
  border: 1px solid var(--panel-border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: inherit;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    color 180ms ease;
}

body[data-theme="light"] .site-nav a,
body[data-theme="light"] .button,
body[data-theme="light"] .theme-toggle,
body[data-theme="light"] .filter-chip {
  background: rgba(17, 20, 28, 0.03);
}

.site-nav a,
.button,
.theme-toggle {
  padding: 12px 16px;
  font-size: 0.95rem;
}

.site-nav a:hover,
.button:hover,
.theme-toggle:hover,
.filter-chip:hover {
  transform: translateY(-2px);
  border-color: rgba(138, 180, 255, 0.45);
}

.theme-toggle {
  min-width: 86px;
  cursor: pointer;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 700;
}

.button-primary {
  border-color: transparent;
  background: linear-gradient(135deg, var(--accent-strong), var(--accent-warm));
  color: #fff;
}

body[data-theme="light"] .button-primary {
  border-color: rgba(24, 70, 172, 0.18);
  background: linear-gradient(135deg, #1d4ed8, #d86a3b);
  box-shadow: 0 14px 28px rgba(29, 78, 216, 0.16);
}

body[data-theme="light"] .button-primary:hover {
  border-color: rgba(24, 70, 172, 0.14);
  box-shadow: 0 18px 32px rgba(29, 78, 216, 0.2);
}

.button-ghost {
  background: transparent;
}

.inline-link {
  color: var(--accent);
  font-weight: 700;
}

.nav-toggle {
  display: none;
  width: 50px;
  height: 50px;
  padding: 0;
  border: 1px solid var(--panel-border);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  color: inherit;
}

.nav-toggle-icon,
.nav-toggle-icon::before,
.nav-toggle-icon::after {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}

.nav-toggle-icon {
  position: relative;
  margin: 0 auto;
  color: transparent;
  font-size: 0;
}

.nav-toggle-icon::before,
.nav-toggle-icon::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle-icon::before {
  top: -6px;
}

.nav-toggle-icon::after {
  top: 6px;
}

.nav-open .nav-toggle-icon {
  background: transparent;
}

.nav-open .nav-toggle-icon::before {
  transform: translateY(6px) rotate(45deg);
}

.nav-open .nav-toggle-icon::after {
  transform: translateY(-6px) rotate(-45deg);
}

.hero-section,
.section-card,
.site-footer,
.panel {
  position: relative;
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-xl);
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

.hero-section {
  display: grid;
  grid-template-columns: minmax(0, 1.24fr) minmax(320px, 0.76fr);
  gap: 26px;
  padding: 40px;
  align-items: start;
}

.hero-compact {
  min-height: auto;
}

.hero-resume {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: clamp(560px, 82vh, 760px);
  padding: 0;
  overflow: hidden;
  text-align: center;
  isolation: isolate;
}

.hero-resume::before {
  background:
    radial-gradient(circle at 50% 32%, rgba(138, 180, 255, 0.18), transparent 24%),
    radial-gradient(circle at 50% 105%, rgba(255, 145, 95, 0.1), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 26%);
}

.hero-section::before,
.section-card::before,
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-section::before {
  background:
    radial-gradient(circle at 82% 16%, rgba(138, 180, 255, 0.12), transparent 26%),
    radial-gradient(circle at 14% 0%, rgba(255, 145, 95, 0.08), transparent 24%);
}

.hero-network {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.78;
  z-index: 0;
}

.hero-resume-content {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  width: min(100%, 920px);
  padding: 72px 40px 62px;
}

.hero-resume-content::before {
  content: "";
  position: absolute;
  inset: 32px 72px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 40px;
  background:
    radial-gradient(circle at top, rgba(138, 180, 255, 0.08), transparent 40%),
    linear-gradient(180deg, rgba(17, 20, 28, 0.28), rgba(17, 20, 28, 0.04));
  z-index: -1;
}

body[data-theme="light"] .hero-resume-content::before {
  border-color: rgba(17, 20, 28, 0.08);
  background:
    radial-gradient(circle at top, rgba(35, 87, 204, 0.08), transparent 40%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.52), rgba(255, 255, 255, 0.18));
}

.hero-avatar {
  display: grid;
  place-items: center;
  width: 158px;
  height: 158px;
  padding: 7px;
  margin-bottom: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(138, 180, 255, 0.9), rgba(255, 145, 95, 0.72));
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.3);
}

.hero-avatar span {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background:
    radial-gradient(circle at 32% 24%, rgba(255, 255, 255, 0.18), transparent 34%),
    linear-gradient(180deg, rgba(13, 16, 24, 0.96), rgba(13, 16, 24, 0.88));
  color: var(--text);
  font-family: var(--font-serif);
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: -0.05em;
}

body[data-theme="light"] .hero-avatar span {
  background:
    radial-gradient(circle at 32% 24%, rgba(255, 255, 255, 0.95), transparent 34%),
    linear-gradient(180deg, rgba(244, 240, 232, 0.98), rgba(236, 229, 218, 0.94));
}

.section-card::before,
.site-footer::before {
  display: none;
}

.hero-copy {
  display: grid;
  align-content: start;
}

.hero-copy h1,
.hero-resume h1,
.hero-card h2,
.section-heading h2 {
  letter-spacing: -0.03em;
  line-height: 1.04;
}

.hero-copy h1 {
  max-width: 12.2ch;
  margin-top: 14px;
  font-size: clamp(1.72rem, 3.2vw, 3.2rem);
}

.hero-resume h1 {
  max-width: none;
  margin-top: 14px;
  font-size: clamp(3rem, 7.5vw, 5.4rem);
  line-height: 0.95;
  letter-spacing: -0.055em;
}

.hero-card h2,
.section-heading h2 {
  margin-top: 12px;
  font-size: clamp(1.26rem, 1.9vw, 1.86rem);
}

.eyebrow,
.card-kicker,
.experience-date {
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.lead,
.section-note,
.hero-card p,
.experience-card p,
.project-card p,
.note-card p,
.contact-intro p {
  color: var(--text-soft);
  line-height: 1.75;
}

.lead {
  max-width: 58ch;
  margin-top: 18px;
  font-size: 0.92rem;
}

.hero-role {
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.76);
  font-size: clamp(1.16rem, 2.4vw, 2rem);
  font-weight: 500;
  line-height: 1.35;
}

body[data-theme="light"] .hero-role {
  color: rgba(21, 24, 35, 0.72);
}

.hero-resume .lead {
  max-width: 64ch;
  font-size: 1rem;
}

.hero-actions,
.filter-row,
.tag-list,
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-actions {
  margin-top: 24px;
}

.hero-socials {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 18px;
}

.hero-social-link {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1px solid var(--panel-border);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.hero-social-link:hover {
  transform: translateY(-2px);
  border-color: rgba(138, 180, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
}

.hero-social-link::before {
  font-size: 1.15rem;
}

body[data-theme="light"] .hero-social-link {
  background: rgba(17, 20, 28, 0.03);
}

.hero-meta {
  margin-top: 18px;
}

.hero-meta span {
  padding: 8px 12px;
  border: 1px solid var(--panel-border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-soft);
  font-size: 0.8rem;
  letter-spacing: 0.03em;
}

.hero-resume .hero-actions {
  justify-content: center;
  margin-top: 30px;
}

.hero-resume .hero-actions .button {
  min-width: 176px;
}

.hero-resume .hero-meta {
  justify-content: center;
  margin-top: 22px;
}

.tag-list span,
.experience-badge {
  padding: 9px 12px;
  border: 1px solid var(--panel-border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-soft);
  font-size: 0.92rem;
}

.hero-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 28px;
}

.stat-list {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.stat-list div {
  padding: 16px 18px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.035);
}

.stat-list span,
.contact-card span {
  display: block;
  color: var(--text-dim);
  font-size: 0.88rem;
}

.stat-list strong,
.contact-card strong {
  display: block;
  margin-top: 6px;
  font-size: 1rem;
}

.hero-card .inline-link {
  display: inline-block;
  margin-top: auto;
  padding-top: 20px;
}

.section-card {
  margin-top: 26px;
  padding: 34px;
}

.section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 22px;
}

.section-heading > div {
  max-width: 42rem;
}

.section-note {
  max-width: 27rem;
  font-size: 0.92rem;
  line-height: 1.65;
}

.skills-grid,
.experience-list,
.project-grid,
.note-grid,
.profile-grid,
.contact-grid {
  display: grid;
  gap: 18px;
  margin-top: 26px;
}

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

.skill-tile,
.experience-card,
.project-card,
.note-card,
.contact-card,
.contact-intro,
.resume-card {
  padding: 22px;
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-lg);
  background: var(--panel-strong);
  position: relative;
  overflow: hidden;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.skill-tile::before,
.experience-card::before,
.project-card::before,
.note-card::before,
.contact-card::before,
.contact-intro::before,
.resume-card::before,
.hero-card::before {
  display: none;
}

.skill-tile:hover,
.experience-card:hover,
.project-card:hover,
.note-card:hover,
.contact-card:hover,
.contact-intro:hover,
.resume-card:hover {
  transform: translateY(-4px);
  border-color: rgba(138, 180, 255, 0.18);
}

.skill-tile span {
  display: block;
  font-size: 1rem;
  font-weight: 700;
}

.skills-grid-icons {
  align-items: stretch;
}

.skills-grid-icons .skill-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 14px;
  min-height: 168px;
  padding: 20px 16px 18px;
}

.skills-grid-icons .skill-icon {
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  border: 1px solid var(--panel-border);
  border-radius: 20px;
  background:
    radial-gradient(circle at top, rgba(138, 180, 255, 0.14), transparent 60%),
    rgba(255, 255, 255, 0.03);
  box-shadow: 0 18px 32px rgba(0, 0, 0, 0.16);
}

body[data-theme="dark"] #skills.section-card {
  background:
    radial-gradient(circle at top left, rgba(138, 180, 255, 0.06), transparent 28%),
    linear-gradient(180deg, rgba(18, 22, 33, 0.92), rgba(14, 17, 26, 0.96));
}

body[data-theme="dark"] .skills-grid-icons .skill-tile {
  border-color: rgba(255, 255, 255, 0.07);
  background: linear-gradient(180deg, rgba(20, 24, 36, 0.96), rgba(14, 17, 26, 0.96));
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.22);
}

body[data-theme="dark"] .skills-grid-icons .skill-tile:hover {
  border-color: rgba(138, 180, 255, 0.16);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.28);
}

body[data-theme="dark"] .skills-grid-icons .skill-icon {
  background:
    radial-gradient(circle at top, rgba(138, 180, 255, 0.12), transparent 58%),
    linear-gradient(180deg, rgba(29, 35, 50, 0.94), rgba(20, 24, 36, 0.96));
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.24);
  width: 78px;
  height: 78px;
}

body[data-theme="light"] .skills-grid-icons .skill-icon {
  background:
    radial-gradient(circle at top, rgba(35, 87, 204, 0.12), transparent 60%),
    rgba(17, 20, 28, 0.03);
}

body[data-theme="light"] #skills.section-card {
  background:
    radial-gradient(circle at top left, rgba(35, 87, 204, 0.045), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 242, 234, 0.96));
}

body[data-theme="light"] .skills-grid-icons .skill-tile {
  border-color: rgba(17, 20, 28, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(250, 246, 240, 0.96));
  box-shadow: 0 16px 34px rgba(52, 58, 71, 0.05);
}

body[data-theme="light"] .skills-grid-icons .skill-tile:hover {
  border-color: rgba(35, 87, 204, 0.16);
  box-shadow: 0 20px 38px rgba(52, 58, 71, 0.08);
}

body[data-theme="light"] .skills-grid-icons .skill-icon {
  width: 78px;
  height: 78px;
  border-color: rgba(17, 20, 28, 0.08);
  background:
    radial-gradient(circle at top, rgba(35, 87, 204, 0.1), transparent 58%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(243, 238, 230, 0.96));
  box-shadow: 0 12px 24px rgba(33, 39, 50, 0.08);
}

body[data-theme="light"] .skills-grid-icons .skill-tile span {
  color: #1a2130;
}

.skills-grid-icons .skill-icon i {
  color: transparent;
  font-size: 0;
  line-height: 1;
}

.skills-grid-icons .skill-icon i::before {
  color: var(--text);
  font-size: 2.2rem;
}

.skills-grid-icons .skill-tile span {
  width: 100%;
  font-size: 0.95rem;
  line-height: 1.3;
}

.resume-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 26px;
}

.experience-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.experience-timeline {
  display: grid;
  gap: 22px;
  margin-top: 26px;
}

.experience-company {
  padding: 28px 28px 30px;
}

.company-header {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
}

.company-header h3 {
  font-size: 1.08rem;
  line-height: 1.2;
}

.company-duration {
  margin-top: 7px;
  color: var(--text-dim);
  font-size: 0.98rem;
}

.company-brand {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}

.company-brand-logo {
  overflow: hidden;
  padding: 0;
  background: #fff;
}

.company-brand-logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.company-brand-behomes {
  background: linear-gradient(135deg, #1d62ff, #4b8dff);
}

.company-brand-appfox {
  background: linear-gradient(135deg, #ff7e3d, #ffb26f);
}

.company-brand-independent {
  background: linear-gradient(135deg, #6f7d92, #9aa6b8);
}

.company-brand-webprogress {
  background: linear-gradient(135deg, #5561d8, #8392ff);
}

.company-role {
  position: relative;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 18px;
  margin-top: 16px;
}

.company-role::before {
  content: "";
  position: absolute;
  left: 27px;
  top: -10px;
  bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, rgba(138, 180, 255, 0.32), rgba(138, 180, 255, 0.06));
}

body[data-theme="light"] .company-role::before {
  background: linear-gradient(180deg, rgba(35, 87, 204, 0.24), rgba(35, 87, 204, 0.08));
}

.role-marker {
  position: relative;
}

.role-marker span {
  position: absolute;
  top: 8px;
  left: 20px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 4px solid var(--panel-strong);
  background: rgba(138, 180, 255, 0.9);
  box-shadow: 0 0 0 1px rgba(138, 180, 255, 0.16);
  color: transparent;
  font-size: 0;
}

body[data-theme="light"] .role-marker span {
  background: rgba(35, 87, 204, 0.92);
  box-shadow: 0 0 0 1px rgba(35, 87, 204, 0.12);
}

.role-content {
  padding-top: 2px;
}

.role-content h4 {
  margin: 0;
  font-size: 1.62rem;
  line-height: 1.14;
}

.role-date,
.role-summary {
  color: var(--text-dim);
}

.role-date {
  margin-top: 8px;
  font-size: 1rem;
}

.role-summary {
  margin-top: 14px;
  font-size: 0.98rem;
}

.role-duties {
  margin-top: 24px;
  font-size: 1.2rem;
  font-weight: 700;
}

.point-list-dash {
  padding-left: 0;
  list-style: none;
}

.point-list-dash li {
  position: relative;
  padding-left: 18px;
}

.point-list-dash li::before {
  content: "-";
  position: absolute;
  left: 0;
  color: var(--text-soft);
}

.experience-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.experience-card h3,
.project-card h3,
.note-card h3,
.contact-intro h3 {
  margin-top: 14px;
  font-size: 1.14rem;
  line-height: 1.22;
}

.experience-place {
  margin-top: 10px;
  color: var(--text-dim);
  font-weight: 600;
}

.profile-layout {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}

.profile-summary,
.profile-card {
  padding: 24px;
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-lg);
  background: var(--panel-strong);
}

.profile-summary {
  display: grid;
  gap: 12px;
}

.profile-summary p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.66;
  text-align: justify;
}

.profile-grid {
  display: block;
  column-count: 3;
  column-gap: 18px;
  margin-top: 0;
}

.profile-card {
  min-height: 0;
  padding: 20px 20px 18px;
  align-self: start;
  break-inside: avoid;
  margin-bottom: 18px;
}

.profile-card .card-kicker {
  margin-bottom: 12px;
}

.profile-card .point-list {
  margin-top: 0;
}

.profile-card-wide {
  margin-top: 0;
}

#focus.section-card {
  padding: 30px;
}

#focus .section-heading h2 {
  margin-top: 8px;
}

.profile-tag-list {
  margin-top: 6px;
}

.profile-chip-list {
  margin-top: 0;
  gap: 10px;
}

.profile-chip-list span {
  font-size: 0.94rem;
  line-height: 1.35;
}

.profile-tag-list span {
  font-size: 0.94rem;
}

.point-list {
  padding-left: 18px;
  margin-top: 16px;
  color: var(--text-soft);
  display: grid;
  gap: 8px;
  font-size: 0.94rem;
  line-height: 1.55;
}

.filter-row {
  margin-top: 22px;
}

.filter-chip {
  padding: 12px 16px;
  color: inherit;
  cursor: pointer;
}

.filter-chip.is-active {
  border-color: transparent;
  background: linear-gradient(135deg, var(--accent-strong), var(--accent-warm));
  color: #fff;
}

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

.project-grid-large {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.project-card,
.note-card,
.experience-card {
  min-height: 100%;
}

.project-card {
  display: flex;
  flex-direction: column;
  min-height: 260px;
}

.project-card-rich {
  padding: 0;
  cursor: pointer;
  text-align: left;
  overflow: hidden;
}

.project-card-rich:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.project-card-media {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 204px;
  padding: 22px;
  color: #fff;
  overflow: hidden;
}

.project-card-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-card-overlay,
.project-slide-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 14, 21, 0.08), rgba(10, 14, 21, 0.72)),
    linear-gradient(0deg, rgba(10, 14, 21, 0.78), rgba(10, 14, 21, 0.04));
}

.project-card-copy {
  position: relative;
  z-index: 1;
}

.project-card-media::before,
.project-slide::before {
  content: "";
  position: absolute;
  inset: auto -10% -30% auto;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  filter: blur(8px);
}

.project-card-media::after,
.project-slide::after {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
}

.project-card-image::after,
.project-modal-slider .project-slide::after {
  display: none;
}

.project-media-kicker {
  position: relative;
  z-index: 1;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.project-card-media strong,
.project-slide-surface strong {
  position: relative;
  z-index: 1;
  font-family: var(--font-serif);
  font-size: clamp(1.28rem, 2vw, 1.72rem);
  line-height: 1.04;
}

.project-card-media span,
.project-slide-surface span {
  position: relative;
  z-index: 1;
  display: block;
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.55;
}

.project-card-body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  padding: 20px 20px 22px;
}

.project-card-body h3 {
  margin-top: 0;
}

.project-card-body p {
  margin-top: 12px;
}

.project-card-rich .tag-list {
  margin-top: auto;
  padding-top: 16px;
}

.project-theme-behomes {
  background: linear-gradient(135deg, #0f47d1, #3b91ff 62%, #84d7ff);
}

.project-theme-dobego {
  background: linear-gradient(135deg, #6b2800, #d35a18 55%, #ffb36f);
}

.project-theme-foodtech {
  background: linear-gradient(135deg, #7b1626, #ce344f 56%, #ff9f7f);
}

.project-theme-loyalty {
  background: linear-gradient(135deg, #5020a8, #8458ff 56%, #c5b4ff);
}

.project-theme-restaurant {
  background: linear-gradient(135deg, #5a1912, #b44a36 52%, #ffbf91);
}

.project-theme-migration {
  background: linear-gradient(135deg, #1f3a25, #2d7a49 54%, #90d8a0);
}

.project-theme-tsunami {
  background: linear-gradient(135deg, #24265d, #4a4ead 52%, #8c7dff);
}

.project-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 18px;
}

.project-modal[hidden] {
  display: none;
}

.project-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 7, 12, 0.78);
  backdrop-filter: blur(10px);
}

.project-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 1040px);
  max-height: calc(100vh - 36px);
  overflow: auto;
  padding: 22px;
  border: 1px solid var(--panel-border);
  border-radius: 30px;
  background: var(--panel-strong);
  box-shadow: var(--shadow);
}

.project-modal-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
}

.project-modal-heading {
  margin: 0;
  max-width: calc(100% - 96px);
  text-align: center;
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 2.8vw, 2.3rem);
  line-height: 1.04;
}

.project-modal-close {
  position: absolute;
  top: 0;
  right: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  padding: 0;
  border: 1px solid var(--panel-border);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  color: inherit;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
}

.project-modal-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 18px;
}

.project-modal-main,
.project-modal-side {
  padding: 18px;
  border: 1px solid var(--panel-border);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.025);
}

.project-modal-side {
  display: grid;
  gap: 10px;
}

.project-modal-main h3 {
  margin-top: 10px;
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 2.6vw, 2.2rem);
  line-height: 1.04;
}

.project-modal-slider {
  position: relative;
  margin-top: 18px;
}

.project-modal-slider.carousel {
  position: relative;
}

.project-modal-slider .carousel-inner {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 28px;
}

.project-modal-slider .carousel-inner::after {
  display: block;
  clear: both;
  content: "";
}

.project-modal-slider .carousel-item {
  position: relative;
  display: none;
  float: left;
  width: 100%;
  margin-right: -100%;
  backface-visibility: hidden;
  transition: transform 0.6s ease-in-out;
}

.project-modal-slider .carousel-item.active,
.project-modal-slider .carousel-item-next,
.project-modal-slider .carousel-item-prev {
  display: flex;
}

.project-modal-slider .carousel-item-next:not(.carousel-item-start),
.project-modal-slider .active.carousel-item-end {
  transform: translateX(100%);
}

.project-modal-slider .carousel-item-prev:not(.carousel-item-end),
.project-modal-slider .active.carousel-item-start {
  transform: translateX(-100%);
}

.project-modal-slider .carousel-item-next.carousel-item-start,
.project-modal-slider .carousel-item-prev.carousel-item-end,
.project-modal-slider .carousel-item.active {
  transform: translateX(0);
}

.project-modal-slider.carousel-fade .carousel-item {
  opacity: 0;
  transition-property: opacity;
  transform: none;
}

.project-modal-slider.carousel-fade .carousel-item.active,
.project-modal-slider.carousel-fade .carousel-item-next.carousel-item-start,
.project-modal-slider.carousel-fade .carousel-item-prev.carousel-item-end {
  z-index: 1;
  opacity: 1;
}

.project-modal-slider.carousel-fade .active.carousel-item-start,
.project-modal-slider.carousel-fade .active.carousel-item-end {
  z-index: 0;
  opacity: 0;
}

.project-modal-slider.carousel-fade .carousel-item-next,
.project-modal-slider.carousel-fade .carousel-item-prev,
.project-modal-slider.carousel-fade .carousel-item.active,
.project-modal-slider.carousel-fade .carousel-item-start,
.project-modal-slider.carousel-fade .carousel-item-end {
  transform: none;
}

.project-carousel-indicators {
  position: absolute;
  right: 0;
  bottom: 16px;
  left: 0;
  z-index: 3;
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 0;
  padding: 0 20px;
}

.project-carousel-indicators button {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.38);
  opacity: 1;
}

.project-carousel-indicators button.active {
  width: 26px;
  background: #fff;
}

.project-slide {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 360px;
  padding: 24px;
  overflow: hidden;
  color: #fff;
  margin: 0;
}

.project-slide-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: #0c1018;
}

.project-slide-surface {
  width: min(100%, 420px);
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 22px;
  background: rgba(10, 14, 21, 0.22);
  backdrop-filter: blur(10px);
}

.project-slide-surface p {
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.project-modal-counter {
  margin-top: 14px;
  color: var(--text-dim);
  font-size: 0.94rem;
}

.project-modal-description {
  margin-top: 0;
  color: var(--text-soft);
  line-height: 1.72;
}

.project-modal-tags {
  margin-top: 0;
}

.project-slider-control {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  background: rgba(10, 14, 21, 0.38);
  color: #fff;
  font-size: 1.3rem;
  cursor: pointer;
  transform: translateY(-50%);
  backdrop-filter: blur(8px);
}

.project-slider-control span {
  display: block;
  line-height: 1;
}

.project-slider-control:disabled {
  opacity: 0.45;
  cursor: default;
}

.project-slider-control-prev {
  left: 16px;
}

.project-slider-control-next {
  right: 16px;
}

body.modal-open {
  overflow: hidden;
}

.project-card[data-hidden="true"] {
  display: none;
}

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

.note-card {
  min-height: 220px;
}

.tag-list {
  margin-top: auto;
  padding-top: 18px;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 20px;
  margin-top: 26px;
}

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

.site-footer {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-top: 24px;
  padding: 26px 30px;
}

.site-footer div {
  display: grid;
  gap: 12px;
}

.site-footer span,
.site-footer a {
  color: var(--text-soft);
}

.scroll-top-button {
  position: fixed;
  right: 26px;
  bottom: 26px;
  z-index: 35;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border: 1px solid var(--panel-border);
  border-radius: 18px;
  background: rgba(14, 17, 26, 0.9);
  color: var(--text);
  cursor: pointer;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.26);
  backdrop-filter: blur(18px);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 180ms ease, transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

body[data-theme="light"] .scroll-top-button {
  background: rgba(255, 252, 247, 0.92);
}

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

.scroll-top-button:hover {
  border-color: rgba(138, 180, 255, 0.24);
  background: rgba(22, 26, 37, 0.98);
}

body[data-theme="light"] .scroll-top-button:hover {
  background: rgba(255, 255, 255, 0.98);
}

.scroll-top-button::before {
  font-size: 1.08rem;
  line-height: 1;
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 480ms ease, transform 480ms ease;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 1100px) {
  .skills-grid,
  .experience-list,
  .project-grid-large,
  .note-grid,
  .profile-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .profile-grid {
    column-count: 2;
  }

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

@media (max-width: 900px) {
  .hero-section,
  .contact-layout,
  .site-footer,
  .project-grid,
  .project-grid-large,
  .experience-list,
  .skills-grid,
  .note-grid,
  .profile-grid {
    grid-template-columns: 1fr;
  }

  .profile-grid {
    column-count: 1;
  }

  .resume-card,
  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .hero-resume {
    min-height: auto;
  }

  .hero-resume-content::before {
    inset: 24px 24px;
  }

  .scroll-top-button {
    right: 18px;
    bottom: 18px;
  }

  .experience-company {
    padding: 24px 22px 26px;
  }

  .company-header,
  .company-role {
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 14px;
  }

  .company-role::before {
    left: 22px;
  }

  .role-marker span {
    left: 15px;
  }
}

@media (max-width: 760px) {
  .page-shell {
    width: min(calc(100% - 18px), var(--content-width));
  }

  .site-header {
    border-radius: 28px;
    flex-wrap: wrap;
  }

  .header-actions {
    width: 100%;
    justify-content: space-between;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .site-nav {
    display: none;
    width: 100%;
    padding-top: 8px;
    flex-direction: column;
    align-items: stretch;
  }

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

  .site-nav a,
  .button,
  .theme-toggle,
  .filter-chip,
  .lang-switch {
    width: 100%;
    justify-content: center;
  }

  .lang-link {
    flex: 1 1 0;
  }

  .hero-section,
  .section-card,
  .site-footer {
    border-radius: 26px;
    padding: 24px;
  }

  .hero-resume {
    padding: 0;
  }

  .hero-resume-content {
    padding: 42px 16px 36px;
  }

  .hero-resume-content::before {
    inset: 16px 10px;
    border-radius: 28px;
  }

  .hero-avatar {
    width: 118px;
    height: 118px;
    margin-bottom: 18px;
  }

  .hero-avatar span {
    font-size: 2.28rem;
  }

  .hero-copy h1 {
    max-width: none;
    font-size: clamp(1.65rem, 7.4vw, 2.65rem);
  }

  .project-card-media {
    min-height: 172px;
    padding: 18px;
  }

  .project-card-body {
    padding: 18px;
  }

  .project-modal {
    padding: 10px;
  }

  .project-modal-dialog {
    max-height: calc(100vh - 20px);
    padding: 14px;
    border-radius: 24px;
  }

  .project-modal-main,
  .project-modal-side {
    padding: 14px;
    border-radius: 20px;
  }

  .project-slide {
    min-height: 260px;
    padding: 16px;
  }

  .project-slider-control {
    width: 40px;
    height: 40px;
  }

  .hero-resume h1 {
    font-size: clamp(2.35rem, 11vw, 3.5rem);
  }

  .hero-role {
    font-size: clamp(1rem, 5vw, 1.26rem);
  }

  .hero-resume .hero-actions .button {
    min-width: 0;
  }

  .hero-resume .hero-meta {
    gap: 10px;
  }

  .section-heading h2,
  .hero-card h2 {
    font-size: clamp(1.26rem, 5.3vw, 1.72rem);
  }

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

  .experience-company {
    padding: 22px 18px 24px;
  }

  .company-header,
  .company-role {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 12px;
  }

  .company-role::before {
    left: 18px;
  }

  .role-marker span {
    left: 11px;
    width: 12px;
    height: 12px;
  }

  .company-brand {
    width: 42px;
    height: 42px;
    font-size: 0.82rem;
  }

  .role-content h4 {
    font-size: 1.24rem;
  }

  .role-duties {
    margin-top: 18px;
    font-size: 1.06rem;
  }
}
