:root {
  color-scheme: light dark;
  --bg: #f7f9fd;
  --bg-alt: #eef3fb;
  --surface: rgba(255, 255, 255, .78);
  --surface-strong: rgba(255, 255, 255, .94);
  --surface-solid: #ffffff;
  --surface-soft: rgba(236, 242, 252, .82);
  --text: #172033;
  --muted: #5f6c80;
  --line: rgba(58, 78, 116, .14);
  --line-strong: rgba(58, 78, 116, .24);
  --primary: #5067dc;
  --primary-strong: #354bc2;
  --accent: #42aa96;
  --accent-strong: #278777;
  --accent-soft: rgba(66, 170, 150, .14);
  --violet-soft: rgba(122, 104, 224, .14);
  --shadow: 0 28px 75px rgba(38, 55, 88, .14);
  --shadow-soft: 0 14px 42px rgba(38, 55, 88, .10);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 17px;
  --header-height: 82px;
  --content-width: 1240px;
  --reading-width: 76ch;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0c1320;
  --bg-alt: #121d2e;
  --surface: rgba(20, 31, 49, .80);
  --surface-strong: rgba(24, 36, 56, .94);
  --surface-solid: #172337;
  --surface-soft: rgba(28, 43, 66, .82);
  --text: #eef4ff;
  --muted: #b2bfd2;
  --line: rgba(185, 201, 229, .14);
  --line-strong: rgba(185, 201, 229, .25);
  --primary: #94a5ff;
  --primary-strong: #bec7ff;
  --accent: #69d1bc;
  --accent-strong: #8ce2d0;
  --accent-soft: rgba(70, 190, 164, .14);
  --violet-soft: rgba(143, 122, 235, .16);
  --shadow: 0 30px 80px rgba(0, 0, 0, .36);
  --shadow-soft: 0 16px 46px rgba(0, 0, 0, .27);
}

@media (prefers-color-scheme: dark) {
  html[data-theme="auto"] {
    color-scheme: dark;
    --bg: #0c1320;
    --bg-alt: #121d2e;
    --surface: rgba(20, 31, 49, .80);
    --surface-strong: rgba(24, 36, 56, .94);
    --surface-solid: #172337;
    --surface-soft: rgba(28, 43, 66, .82);
    --text: #eef4ff;
    --muted: #b2bfd2;
    --line: rgba(185, 201, 229, .14);
    --line-strong: rgba(185, 201, 229, .25);
    --primary: #94a5ff;
    --primary-strong: #bec7ff;
    --accent: #69d1bc;
    --accent-strong: #8ce2d0;
    --accent-soft: rgba(70, 190, 164, .14);
    --violet-soft: rgba(143, 122, 235, .16);
    --shadow: 0 30px 80px rgba(0, 0, 0, .36);
    --shadow-soft: 0 16px 46px rgba(0, 0, 0, .27);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height) + 74px); }
body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 8% 9%, rgba(66, 184, 166, .12), transparent 32rem),
    radial-gradient(circle at 91% 10%, rgba(115, 121, 235, .13), transparent 35rem),
    linear-gradient(145deg, var(--bg), var(--bg-alt) 48%, var(--bg));
  color: var(--text);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.72;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  opacity: .28;
  background-image:
    linear-gradient(rgba(87, 107, 145, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(87, 107, 145, .05) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: linear-gradient(to bottom, black, transparent 76%);
}
a { color: var(--primary-strong); text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
img { max-width: 100%; height: auto; }
button, input, textarea { font: inherit; }
button { color: inherit; }
[hidden] { display: none !important; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 1000;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip-link:focus-visible {
  width: auto;
  height: auto;
  overflow: visible;
  clip-path: none;
  white-space: normal;
  padding: .8rem 1rem;
  border: 2px solid var(--primary);
  border-radius: 12px;
  background: var(--surface-solid);
  color: var(--text);
  box-shadow: var(--shadow-soft);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 110;
  min-height: var(--header-height);
  border-bottom: 1px solid transparent;
  background: color-mix(in srgb, var(--surface-solid) 66%, transparent);
  backdrop-filter: blur(22px) saturate(145%);
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: color-mix(in srgb, var(--surface-solid) 86%, transparent);
  box-shadow: 0 8px 32px rgba(40, 57, 90, .07);
}
.header-inner {
  width: min(var(--content-width), calc(100% - 2rem));
  min-height: var(--header-height);
  margin: auto;
  display: grid;
  grid-template-columns: minmax(270px, auto) 1fr auto;
  align-items: center;
  gap: 1.35rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .82rem;
  min-width: 0;
  color: var(--text);
  text-decoration: none;
}
.brand img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  filter: drop-shadow(0 8px 15px rgba(54, 81, 125, .12));
}
.brand span { display: grid; min-width: 0; }
.brand strong {
  font-size: clamp(1.08rem, 1.8vw, 1.35rem);
  line-height: 1.2;
  letter-spacing: -.01em;
  white-space: nowrap;
}
.brand small {
  max-width: 330px;
  overflow: hidden;
  color: var(--muted);
  font-size: .69rem;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.main-navigation {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: .2rem;
}
.main-navigation a {
  padding: .67rem .78rem;
  border-radius: 999px;
  color: var(--muted);
  font-size: .86rem;
  font-weight: 760;
  text-decoration: none;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
.main-navigation a:hover,
.main-navigation a[aria-current="page"] {
  color: var(--text);
  background: var(--surface-soft);
  transform: translateY(-1px);
}
.header-tools { display: flex; align-items: center; gap: .36rem; }
.social-links { display: flex; gap: .34rem; }
.icon-button,
.social-link {
  width: 40px;
  height: 40px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
  transition: transform .2s ease, color .2s ease, border-color .2s ease, background .2s ease;
}
.icon-button:hover,
.social-link:hover {
  color: var(--primary);
  border-color: color-mix(in srgb, var(--primary) 38%, var(--line));
  background: var(--surface-solid);
  transform: translateY(-2px);
}
.icon-button svg,
.social-link svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.social-link svg .fill { fill: currentColor; stroke: none; }
.social-link svg.brand-icon { fill: currentColor; stroke: none; }
.social-link--linkedin:hover { color: #0a66c2; }
.social-link--instagram:hover { color: #c13584; }
.social-link--whatsapp:hover { color: #128c7e; }
.menu-toggle { display: none; }

.hero {
  position: relative;
  isolation: isolate;
  overflow: clip;
  padding: clamp(4.2rem, 8vw, 7.7rem) 0 clamp(3.4rem, 6vw, 5.7rem);
}
.hero-inner {
  width: min(var(--content-width), calc(100% - 2rem));
  margin: auto;
  display: grid;
  grid-template-columns: minmax(0, 1.42fr) minmax(285px, .58fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: end;
}
.hero-copy { max-width: 900px; }
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: .52rem;
  color: var(--primary-strong);
  font-size: .76rem;
  font-weight: 850;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.section-kicker::before {
  content: "";
  width: 30px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--primary));
}
.hero h1 {
  max-width: 960px;
  margin: .82rem 0 1.15rem;
  font-size: clamp(2.8rem, 5.9vw, 5.75rem);
  line-height: .98;
  letter-spacing: -.057em;
  text-wrap: balance;
}
.hero-copy > p {
  max-width: 800px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.65vw, 1.27rem);
}
.hero-actions,
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  margin-top: 1.75rem;
}
.availability-card {
  position: relative;
  padding: 1.38rem 1.4rem 1.38rem 3.18rem;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
}
.availability-card p { margin: 0; color: var(--muted); font-size: .94rem; }
.availability-dot {
  position: absolute;
  left: 1.27rem;
  top: 1.5rem;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 7px var(--accent-soft);
}
.hero-orb {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  filter: blur(4px);
  animation: drift 15s ease-in-out infinite alternate;
}
.hero-orb--one {
  width: 380px;
  height: 380px;
  right: 6%;
  top: 3%;
  background: radial-gradient(circle at 35% 35%, rgba(111, 147, 255, .22), rgba(143, 104, 224, .05) 68%, transparent 72%);
}
.hero-orb--two {
  width: 280px;
  height: 280px;
  left: -5%;
  bottom: -12%;
  background: radial-gradient(circle at 50% 45%, rgba(65, 190, 166, .18), transparent 70%);
  animation-delay: -5s;
}
@keyframes drift { to { transform: translate3d(18px, 20px, 0) scale(1.05); } }

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .78rem 1.12rem;
  border: 1px solid transparent;
  border-radius: 13px;
  font-size: .91rem;
  font-weight: 820;
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.button:hover { transform: translateY(-2px); }
.button--primary {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-strong));
  box-shadow: 0 12px 28px color-mix(in srgb, var(--primary) 25%, transparent);
}
.button--secondary {
  color: var(--text);
  border-color: var(--line);
  background: var(--surface);
}

.section-navigation {
  position: sticky;
  top: var(--header-height);
  z-index: 90;
  border-block: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface-solid) 86%, transparent);
  backdrop-filter: blur(18px);
}
.section-navigation__inner {
  width: min(var(--content-width), calc(100% - 2rem));
  margin: auto;
  display: flex;
  gap: .34rem;
  overflow-x: auto;
  padding: .66rem 0;
  scrollbar-width: thin;
}
.section-navigation a {
  flex: 0 0 auto;
  padding: .48rem .72rem;
  border-radius: 999px;
  color: var(--muted);
  font-size: .8rem;
  font-weight: 760;
  text-decoration: none;
}
.section-navigation a:hover,
.section-navigation a[aria-current] {
  color: var(--text);
  background: var(--accent-soft);
}

.page-main {
  width: min(var(--content-width), calc(100% - 2rem));
  margin: 0 auto;
  padding: 2.25rem 0 7rem;
}
.content-shell { container-type: inline-size; }
.content-shell > * { margin-inline: auto; }
.content-shell h1,
.content-shell h2,
.content-shell h3,
.content-shell h4 {
  color: var(--text);
  line-height: 1.12;
  letter-spacing: -.028em;
  text-wrap: balance;
  scroll-margin-top: calc(var(--header-height) + 78px);
}
.content-shell h2 {
  margin: 0 0 1.15rem;
  font-size: clamp(2rem, 4vw, 3.25rem);
}
.content-shell h3 { margin: 0 0 .7rem; font-size: clamp(1.25rem, 2.2vw, 1.75rem); }
.content-shell h4 { margin: 1.4rem 0 .55rem; font-size: 1.08rem; }
.content-shell p,
.content-shell li { color: var(--muted); }
.content-shell p { max-width: var(--reading-width); }
.content-shell strong { color: var(--text); }
.content-shell figure { margin: 0; }
.content-shell img {
  display: block;
  border-radius: 20px;
  background: var(--surface-soft);
}
.content-shell a img,
.content-shell button img {
  transition: transform .25s ease, box-shadow .25s ease;
}
.content-shell a:hover img,
.content-shell button:hover img {
  transform: translateY(-3px) scale(1.006);
  box-shadow: var(--shadow-soft);
}
.lead { color: var(--text) !important; font-size: clamp(1.05rem, 1.8vw, 1.22rem); }
.section-block { margin: clamp(5.2rem, 9vw, 8.5rem) 0; }
.section-card {
  margin: clamp(4rem, 8vw, 7rem) 0;
  padding: clamp(1.45rem, 4vw, 3.2rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: linear-gradient(145deg, var(--surface-strong), var(--surface));
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(12px);
}
.section-heading {
  max-width: 850px;
  margin: 0 auto clamp(2.1rem, 4vw, 3.3rem);
  text-align: center;
}
.section-heading--left { margin-inline: 0; text-align: left; }
.section-heading--compact { margin-bottom: 1.4rem; }
.section-heading p { margin-inline: auto; }
.section-heading--left p { margin-inline: 0; }
.section-heading h2,
.section-heading h3 { margin-top: .65rem; }
.split-section {
  display: grid;
  grid-template-columns: minmax(300px, .88fr) minmax(0, 1.12fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 5rem);
  margin: clamp(5rem, 9vw, 8rem) 0;
}
.split-section__media img {
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
  box-shadow: var(--shadow-soft);
}
.split-section__media--compact img { aspect-ratio: 4 / 3; }
.split-section p { margin: .7rem 0; }

.profile-section {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, .92fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.profile-copy p { margin: .72rem 0; }
.profile-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  box-shadow: var(--shadow);
}
.profile-media figcaption {
  margin-top: .8rem;
  color: var(--muted);
  font-size: .82rem;
  text-align: center;
}

.focus-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
}
.focus-grid article {
  min-height: 190px;
  padding: 1.35rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}
.focus-grid article:nth-child(2n) { background: linear-gradient(145deg, var(--surface), var(--violet-soft)); }
.focus-grid article:nth-child(3n) { background: linear-gradient(145deg, var(--surface), var(--accent-soft)); }
.focus-grid span { font-size: 1.75rem; }
.focus-grid h3 { margin: .75rem 0 .55rem; font-size: 1.08rem; }
.focus-grid p { margin: 0; font-size: .9rem; }

.career-timeline {
  position: relative;
  max-width: 1040px;
  margin: auto;
}
.career-timeline::before {
  content: "";
  position: absolute;
  left: 31px;
  top: 34px;
  bottom: 34px;
  width: 2px;
  background: linear-gradient(var(--accent), var(--primary), color-mix(in srgb, var(--primary) 20%, transparent));
}
.career-entry {
  position: relative;
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 1.15rem;
  margin: 0 0 1.5rem;
}
.career-step {
  position: relative;
  z-index: 1;
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border: 6px solid var(--bg);
  border-radius: 50%;
  background: var(--surface-solid);
  color: var(--primary-strong);
  font-size: .82rem;
  font-weight: 900;
  box-shadow: var(--shadow-soft);
}
.career-entry--current .career-step {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--primary));
}
.career-card {
  padding: clamp(1.35rem, 3vw, 2rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}
.career-entry--current .career-card {
  border-color: color-mix(in srgb, var(--accent) 34%, var(--line));
  background: linear-gradient(145deg, var(--surface-strong), var(--accent-soft));
}
.career-card__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}
.career-card__header h3 { margin-bottom: .25rem; }
.career-card__header > div > span {
  display: block;
  color: var(--muted);
  font-size: .85rem;
}
.career-role {
  margin: .55rem 0 0;
  color: var(--primary-strong) !important;
  font-weight: 790;
}
.status-pill {
  display: inline-flex;
  flex: 0 0 auto;
  padding: .4rem .7rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: .76rem;
  font-weight: 850;
}
.check-list {
  margin: .7rem 0 0;
  padding: 0;
  list-style: none;
}
.check-list li {
  position: relative;
  margin: .48rem 0;
  padding-left: 1.55rem;
}
.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: .02em;
  color: var(--accent-strong);
  font-weight: 900;
}
.check-list--large li { margin: .75rem 0; font-size: 1.02rem; }
.career-extra {
  margin-top: 1.25rem;
  padding: 1rem 1.1rem;
  border-left: 3px solid var(--accent);
  border-radius: 0 14px 14px 0;
  background: var(--surface-soft);
}
.career-extra p { margin: .4rem 0 0; }

.sofon-preview {
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(300px, .78fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.tech-inline {
  margin-top: 1.15rem;
  padding: .85rem 1rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: .88rem;
}
.sofon-preview__visual {
  display: grid;
  justify-items: center;
  gap: 1rem;
}
.sofon-preview__visual > img:not(.sofon-logo) {
  width: min(100%, 430px);
  box-shadow: var(--shadow-soft);
}
.sofon-logo {
  width: 145px;
  max-height: 64px;
  object-fit: contain;
  background: transparent !important;
}
.plain-list {
  width: 100%;
  columns: 2;
  margin: 0;
  padding-left: 1.2rem;
  color: var(--muted);
  font-size: .88rem;
}

.education-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}
.info-card,
.skill-card,
.technology-groups article,
.benefit-grid article {
  padding: 1.55rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}
.info-card {
  display: flex;
  flex-direction: column;
}
.info-card__icon { font-size: 2rem; }
.info-card h3 { margin-top: .7rem; }
.info-card img {
  width: 100%;
  max-height: 165px;
  object-fit: contain;
  margin-top: auto;
  padding-top: 1.2rem;
  background: transparent;
  box-shadow: none;
}
.detail-list {
  margin: .5rem 0 1rem;
  padding: 0;
  list-style: none;
}
.detail-list li {
  padding: .8rem 0;
  border-bottom: 1px solid var(--line);
}
.detail-list li:last-child { border-bottom: 0; }
.detail-list strong,
.detail-list span { display: block; }
.detail-list span { margin-top: .2rem; color: var(--muted); font-size: .88rem; }

.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}
.skill-card h3 { color: var(--primary-strong); }
.skill-card h4 { padding-top: .7rem; border-top: 1px solid var(--line); }

.projects-section { margin-bottom: 8rem; }
.project-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .55rem;
  margin-bottom: 2.7rem;
}
.filter-button {
  padding: .58rem .9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: .84rem;
  font-weight: 800;
  cursor: pointer;
}
.filter-button:hover,
.filter-button.is-active {
  border-color: color-mix(in srgb, var(--primary) 35%, var(--line));
  background: var(--accent-soft);
  color: var(--text);
}
.project-group {
  margin: 0 0 4rem;
  padding: clamp(1.3rem, 3vw, 2rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}
.project-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}
.project-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface-solid);
}
.project-card a,
.project-card__preview {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  text-align: left;
  text-decoration: none;
  cursor: default;
}
.project-card a { cursor: pointer; }
.project-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 0;
  box-shadow: none;
}
.project-card__body {
  display: grid;
  gap: .15rem;
  padding: .85rem .9rem 1rem;
}
.project-card__body strong { font-size: .91rem; line-height: 1.35; }
.project-card__body small { color: var(--muted); font-size: .73rem; }
.project-card__external {
  position: absolute;
  right: .65rem;
  top: .65rem;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: color-mix(in srgb, var(--surface-solid) 88%, transparent);
  box-shadow: var(--shadow-soft);
  color: var(--primary-strong);
  font-weight: 900;
}
.project-card__archive-label {
  position: absolute;
  right: .55rem;
  top: .55rem;
  padding: .25rem .45rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface-solid) 90%, transparent);
  color: var(--muted);
  font-size: .64rem;
  font-weight: 800;
}
.project-group.is-filtered-out { display: none; }
.project-note {
  margin: 1rem auto 0;
  padding: 1rem 1.1rem;
  border-radius: 15px;
  background: var(--surface-soft);
  font-size: .84rem;
  text-align: center;
}

.contact-intro { grid-template-columns: minmax(0, 1.1fr) minmax(280px, .9fr); }
.contact-intro img { box-shadow: var(--shadow-soft); }
.contact-card {
  margin: 0;
  padding: clamp(1.4rem, 5vw, 3.4rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: linear-gradient(145deg, var(--surface-strong), var(--surface-soft));
  box-shadow: var(--shadow);
}
.contact-copy { max-width: 720px; }
.contact-card h2 { margin: .6rem 0 .75rem; }
.contact-form { margin-top: 2rem; }
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.form-grid label {
  display: grid;
  gap: .4rem;
  color: var(--text);
  font-size: .88rem;
  font-weight: 800;
}
.form-grid label small { color: var(--muted); font-weight: 500; }
.form-grid__wide { grid-column: 1 / -1; }
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: .82rem .88rem;
  border: 1px solid var(--line);
  border-radius: 13px;
  outline: none;
  background: var(--surface-solid);
  color: var(--text);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 17%, transparent);
}
.contact-form textarea { min-height: 160px; resize: vertical; }
.form-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.3rem;
}
.privacy-note {
  max-width: 650px;
  margin: 0;
  color: var(--muted);
  font-size: .76rem;
}
.form-alert {
  margin: 1rem 0;
  padding: .9rem 1rem;
  border-radius: 13px;
  font-weight: 700;
}
.form-alert--success { background: var(--accent-soft); }
.form-alert--error { background: rgba(214, 76, 100, .13); }
.honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

/* Experience page */
.experience-overview { text-align: center; }
.experience-overview .section-heading { margin-bottom: 2rem; }
.experience-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.experience-stats article {
  display: grid;
  gap: .15rem;
  padding: 1.2rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface-solid);
}
.experience-stats strong { color: var(--primary-strong); font-size: 1.2rem; }
.experience-stats span { color: var(--muted); font-size: .84rem; }
.feature-stack {
  display: grid;
  gap: 1.4rem;
  margin: clamp(4rem, 8vw, 7rem) 0;
}
.feature-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, .95fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  padding: clamp(1.4rem, 4vw, 2.7rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}
.feature-row--reverse .feature-row__copy { order: 2; }
.feature-row--reverse figure { order: 1; }
.feature-row figure img {
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
  box-shadow: var(--shadow-soft);
}
.feature-icon { font-size: 1.8rem; }
.feature-row h2 { margin-top: .55rem; font-size: clamp(1.65rem, 3.2vw, 2.45rem); }
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin: 1rem 0 1.2rem;
  padding: 0;
  list-style: none;
}
.tag-list li {
  padding: .4rem .65rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--text);
  font-size: .8rem;
  font-weight: 720;
}
.outcome-section {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.outcome-section figure img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  box-shadow: var(--shadow-soft);
}

/* SOFON page */
.sofon-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.sofon-intro figure img {
  width: min(100%, 470px);
  margin-inline: auto;
  object-fit: contain;
  background: transparent;
  box-shadow: none;
}
.origin-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.origin-grid p {
  margin: 0;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
}
.origin-summary {
  max-width: none !important;
  margin: 1rem 0 0;
  padding: 1.1rem 1.25rem;
  border-left: 3px solid var(--accent);
  border-radius: 0 14px 14px 0;
  background: var(--accent-soft);
  color: var(--text) !important;
  font-weight: 720;
}
.sofon-timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, minmax(170px, 1fr));
  gap: 1rem;
  overflow-x: auto;
  padding: 1.2rem .2rem .8rem;
}
.sofon-timeline::before {
  content: "";
  position: absolute;
  left: 3rem;
  right: 3rem;
  top: 68px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--primary));
}
.sofon-timeline__item {
  position: relative;
  min-width: 170px;
  padding-top: 92px;
}
.sofon-timeline__item time {
  display: block;
  color: var(--primary-strong);
  font-weight: 900;
}
.sofon-timeline__icon {
  position: absolute;
  left: 0;
  top: 29px;
  z-index: 1;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border: 5px solid var(--bg);
  border-radius: 50%;
  background: var(--surface-solid);
  box-shadow: var(--shadow-soft);
  font-size: 1.25rem;
}
.sofon-timeline__item h3 { margin: .25rem 0 .45rem; font-size: 1rem; }
.sofon-timeline__item p { margin: 0; font-size: .84rem; }
.infrastructure-section {
  display: grid;
  grid-template-columns: minmax(340px, .92fr) minmax(0, 1.08fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.infrastructure-section figure img {
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
  box-shadow: var(--shadow);
}
.technology-groups {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.technology-groups article > span,
.benefit-grid article > span { font-size: 1.8rem; }
.technology-groups h3,
.benefit-grid h3 { margin-top: .75rem; }
.apps-showcase__grid,
.cloud-layout {
  display: grid;
  grid-template-columns: minmax(280px, .7fr) minmax(0, 1.3fr);
  gap: 2rem;
  align-items: start;
}
.mini-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .8rem;
}
.mini-gallery figure {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: var(--surface-solid);
}
.mini-gallery img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 0;
}
.mini-gallery figcaption {
  padding: .65rem .75rem;
  color: var(--muted);
  font-size: .76rem;
  text-align: center;
}
.cloud-gallery {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: .7rem;
}
.cloud-gallery img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}
.cloud-gallery img:first-child {
  grid-column: span 3;
  height: 250px;
}
.cloud-gallery img:nth-child(2) {
  grid-column: span 3;
  height: 250px;
}
.cloud-gallery img:nth-child(n+3) { grid-column: span 2; }
.cloud-note {
  max-width: none !important;
  margin: 1.5rem 0 0;
  padding: 1rem;
  border-radius: 15px;
  background: var(--surface-soft);
  text-align: center;
}
.benefit-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.closing-section {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.closing-section figure img {
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
  box-shadow: var(--shadow-soft);
}

.site-footer {
  border-top: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface-solid) 56%, transparent);
}
.footer-inner {
  width: min(var(--content-width), calc(100% - 2rem));
  margin: auto;
  padding: 2.25rem 0;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 2rem;
}
.footer-inner p { margin: .2rem 0 0; color: var(--muted); font-size: .8rem; }
.footer-meta { text-align: right; }

.scroll-progress {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 100;
  width: 58px;
  height: 58px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--surface-solid);
  color: var(--primary);
  box-shadow: var(--shadow);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
}
.scroll-progress.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.scroll-progress > svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}
.scroll-progress__track,
.scroll-progress__value { fill: none; stroke-width: 2.5; }
.scroll-progress__track { stroke: var(--line); }
.scroll-progress__value { stroke: var(--primary); stroke-linecap: round; }
.scroll-progress > span { position: absolute; inset: 0; display: grid; place-items: center; }
.scroll-progress > span svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.toast {
  position: fixed;
  left: 50%;
  bottom: 1.5rem;
  z-index: 140;
  transform: translateX(-50%);
  padding: .75rem 1rem;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface-solid);
  box-shadow: var(--shadow);
  font-weight: 700;
}

/* Lightbox */

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .65s ease, transform .65s ease;
}
.reveal.is-revealed { opacity: 1; transform: none; }

.notice-card {
  padding: 2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

@media (max-width: 1180px) {
  .focus-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .project-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .header-inner { grid-template-columns: 1fr auto auto; }
  .menu-toggle { display: inline-grid; order: 2; }
  .header-tools { order: 3; }
  .main-navigation {
    position: absolute;
    top: calc(100% + 1px);
    left: 1rem;
    right: 1rem;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: .7rem;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--surface-solid);
    box-shadow: var(--shadow);
  }
  .main-navigation.is-open { display: flex; }
  .main-navigation a { text-align: center; }
  .social-links--header { display: none; }
}

@media (max-width: 940px) {
  .profile-section,
  .sofon-preview,
  .sofon-intro,
  .infrastructure-section,
  .closing-section,
  .outcome-section,
  .feature-row,
  .split-section {
    grid-template-columns: 1fr;
  }
  .feature-row--reverse .feature-row__copy,
  .feature-row--reverse figure { order: initial; }
  .profile-media,
  .sofon-preview__visual,
  .sofon-intro figure,
  .infrastructure-section figure,
  .closing-section figure,
  .outcome-section figure { max-width: 700px; margin-inline: auto; }
  .education-grid,
  .skills-grid,
  .technology-groups,
  .benefit-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .focus-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .apps-showcase__grid,
  .cloud-layout { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  :root { --header-height: 72px; }
  body { font-size: 16px; }
  .header-inner { width: min(100% - 1rem, var(--content-width)); gap: .42rem; }
  .brand img { width: 44px; height: 44px; }
  .brand strong { font-size: 1.02rem; }
  .brand small { max-width: 47vw; font-size: .62rem; }
  .icon-button, .social-link { width: 38px; height: 38px; }
  .hero { padding-top: 3.4rem; }
  .hero-inner { grid-template-columns: 1fr; gap: 1.8rem; }
  .hero h1 { font-size: clamp(2.45rem, 12vw, 4rem); }
  .availability-card { max-width: 580px; }
  .page-main { width: min(100% - 1.1rem, var(--content-width)); padding-top: 1.2rem; }
  .section-card { border-radius: 24px; }
  .focus-grid,
  .education-grid,
  .skills-grid,
  .technology-groups,
  .benefit-grid,
  .experience-stats,
  .origin-grid { grid-template-columns: 1fr; }
  .focus-grid article { min-height: 0; }
  .career-timeline::before { left: 23px; }
  .career-entry { grid-template-columns: 48px 1fr; gap: .75rem; }
  .career-step { width: 48px; height: 48px; border-width: 5px; font-size: .7rem; }
  .career-card__header { flex-direction: column; }
  .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mini-gallery { grid-template-columns: 1fr; }
  .cloud-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cloud-gallery img,
  .cloud-gallery img:first-child,
  .cloud-gallery img:nth-child(2),
  .cloud-gallery img:nth-child(n+3) {
    grid-column: auto;
    height: 150px;
  }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid__wide { grid-column: auto; }
  .form-actions { align-items: stretch; flex-direction: column; }
  .footer-inner { grid-template-columns: 1fr; text-align: center; }
  .footer-meta { text-align: center; }
  .social-links--footer { justify-content: center; }
  .scroll-progress { right: .8rem; bottom: .8rem; }
}

@media (max-width: 480px) {
  .header-tools [data-share] { display: none; }
  .brand small { display: none; }
  .hero h1 { font-size: 2.5rem; }
  .section-card { padding: 1.15rem; }
  .project-grid { grid-template-columns: 1fr; }
  .plain-list { columns: 1; }
  .project-group { padding: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

@media print {
  .site-header,
  .section-navigation,
  .scroll-progress,
  .contact-card,
  .site-footer,
  .hero-orb,
  .project-filters { display: none !important; }
  body { background: white; color: black; }
  .hero { padding: 1rem 0; }
  .hero-inner { display: block; }
  .page-main { width: 100%; padding: 0; }
  .reveal { opacity: 1; transform: none; }
  .section-card,
  .career-card,
  .project-group { box-shadow: none; break-inside: avoid; }
}
