:root {
  color-scheme: dark;
  --bg: #07111f;
  --bg-soft: #0c1829;
  --surface: rgba(17, 31, 50, 0.78);
  --surface-strong: #132238;
  --text: #f4f7fb;
  --muted: #a9b5c7;
  --line: rgba(255, 255, 255, 0.11);
  --accent: #59d7a1;
  --accent-strong: #20b77b;
  --accent-soft: rgba(89, 215, 161, 0.13);
  --focus: #8fe7c1;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
  --radius: 22px;
  --max: 1160px;

  /* Apple clarity + NVIDIA technical precision, without proprietary font files. */
  --font-ui: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI Variable Text", "Segoe UI", Helvetica, Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI Variable Display", "Helvetica Neue", "Arial Narrow", Arial, sans-serif;
  --font-tech: "Arial Narrow", "Roboto Condensed", "Segoe UI Semibold", "Segoe UI", Arial, sans-serif;
}

[data-theme="light"] {
  color-scheme: light;
  --bg: #f5f7fb;
  --bg-soft: #edf2f7;
  --surface: rgba(255, 255, 255, 0.86);
  --surface-strong: #ffffff;
  --text: #101b2b;
  --muted: #536174;
  --line: rgba(16, 27, 43, 0.12);
  --accent: #087e58;
  --accent-strong: #056746;
  --accent-soft: rgba(8, 126, 88, 0.10);
  --focus: #056746;
  --shadow: 0 24px 70px rgba(45, 65, 90, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 15% 0%, rgba(89, 215, 161, 0.12), transparent 31rem),
    radial-gradient(circle at 92% 14%, rgba(79, 136, 255, 0.10), transparent 28rem),
    var(--bg);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.67;
  letter-spacing: -.011em;
  font-optical-sizing: auto;
  font-feature-settings: "kern" 1, "liga" 1, "calt" 1;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color .2s ease, color .2s ease;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
h1, h2, h3, .brand, .identity-footer strong {
  font-family: var(--font-display);
  font-synthesis: none;
}
p, li { text-wrap: pretty; }
.hero h1, .section-heading h2, .contact-card h2 { text-wrap: balance; }
.hero-meta, .role-meta, .project-number, .capability .index, .footer-row {
  font-variant-numeric: tabular-nums;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: -5rem;
  z-index: 999;
  padding: .7rem 1rem;
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--text);
}
.skip-link:focus { top: 1rem; }

.container { width: min(calc(100% - 2rem), var(--max)); margin-inline: auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: color-mix(in srgb, var(--bg) 84%, transparent);
  border-bottom: 1px solid var(--line);
}

.navbar {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  text-decoration: none;
  font-weight: 720;
  letter-spacing: -.025em;
}

.brand-mark {
  width: 39px;
  height: 39px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, var(--accent), var(--accent-strong));
  color: #04120d;
  font-family: var(--font-tech);
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .025em;
  box-shadow: 0 10px 30px rgba(32, 183, 123, 0.2);
}

.nav-links { display: flex; align-items: center; gap: 1.15rem; }
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-family: var(--font-tech);
  font-size: .88rem;
  font-weight: 700;
  letter-spacing: .012em;
}
.nav-links a:hover, .nav-links a:focus-visible { color: var(--text); }

.nav-actions { display: flex; align-items: center; gap: .55rem; }
.icon-button, .menu-button {
  min-width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 13px;
  color: var(--text);
  background: var(--surface);
  cursor: pointer;
  display: inline-grid;
  place-items: center;
}
.menu-button { display: none; }

.language-switcher { display: flex; gap: .3rem; }
.language-switcher a {
  text-decoration: none;
  color: var(--muted);
  font-family: var(--font-tech);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .055em;
  padding: .48rem .58rem;
  border-radius: 9px;
}
.language-switcher a[aria-current="page"] { color: var(--text); background: var(--accent-soft); }

main { overflow: clip; }
.hero { padding: 7.2rem 0 4.6rem; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, .65fr);
  gap: 4rem;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  color: var(--accent);
  text-transform: uppercase;
  font-family: var(--font-tech);
  font-stretch: condensed;
  letter-spacing: .16em;
  font-size: .73rem;
  font-weight: 800;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: currentColor; }
.hero h1 {
  margin: 1rem 0 1rem;
  max-width: 880px;
  font-family: var(--font-display);
  font-size: clamp(3.25rem, 7.7vw, 6.9rem);
  font-weight: 720;
  line-height: .925;
  letter-spacing: -.064em;
}
.hero h1 span { color: var(--accent); }
.hero-copy {
  max-width: 760px;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.27rem);
  line-height: 1.54;
  letter-spacing: -.015em;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 2rem; }
.button {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: .83rem 1.1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  text-decoration: none;
  font-family: var(--font-tech);
  font-weight: 750;
  letter-spacing: .005em;
  cursor: pointer;
  background: var(--surface);
  color: var(--text);
}
.button.primary { background: var(--accent); color: #04120d; border-color: transparent; }
.button:hover { transform: translateY(-1px); }
.button:active { transform: translateY(0); }

.hero-meta { display: flex; flex-wrap: wrap; gap: .65rem 1.25rem; margin-top: 2.1rem; color: var(--muted); font-size: .92rem; }
.hero-meta span { display: inline-flex; align-items: center; gap: .45rem; }
.hero-meta strong { color: var(--text); }

.identity-card {
  position: relative;
  min-height: 430px;
  border: 1px solid var(--line);
  border-radius: 30px;
  padding: 1.3rem;
  background: linear-gradient(155deg, var(--surface-strong), color-mix(in srgb, var(--surface-strong) 76%, transparent));
  box-shadow: var(--shadow);
  overflow: hidden;
}
.identity-card::before {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  right: -100px;
  top: -110px;
  border-radius: 50%;
  border: 58px solid var(--accent-soft);
}
.monogram {
  min-height: 300px;
  display: grid;
  place-items: center;
  border-radius: 22px;
  background:
    linear-gradient(145deg, rgba(89, 215, 161, .18), rgba(79, 136, 255, .08)),
    var(--bg-soft);
  font-size: clamp(5rem, 12vw, 8.6rem);
  font-family: var(--font-display);
  font-weight: 780;
  letter-spacing: -.075em;
  color: var(--accent);
}
.identity-footer { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.2rem .2rem .1rem; }
.identity-footer strong { display: block; font-size: 1.08rem; font-weight: 680; letter-spacing: -.018em; }
.identity-footer span { color: var(--muted); font-size: .87rem; }
.status-dot { width: 11px; height: 11px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 7px var(--accent-soft); }

.section { padding: 5.6rem 0; }
.section.compact { padding-top: 2.2rem; }
.section-heading { display: grid; grid-template-columns: .85fr 1.4fr; gap: 2.5rem; align-items: start; margin-bottom: 2.7rem; }
.section-heading h2 { margin: .2rem 0 0; font-size: clamp(2.2rem, 5vw, 4.2rem); font-weight: 700; line-height: .98; letter-spacing: -.05em; }
.section-heading p { margin: .3rem 0 0; color: var(--muted); max-width: 680px; font-size: 1.05rem; line-height: 1.62; letter-spacing: -.012em; }

.capability-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.capability {
  border-top: 1px solid var(--line);
  padding: 1.45rem 0 0;
}
.capability .index { color: var(--accent); font-family: var(--font-tech); font-weight: 800; font-size: .77rem; letter-spacing: .09em; }
.capability h3 { margin: .85rem 0 .45rem; font-size: 1.22rem; font-weight: 680; letter-spacing: -.025em; }
.capability p { color: var(--muted); margin: 0; font-size: .94rem; }

.about-grid { display: grid; grid-template-columns: 1.4fr .8fr; gap: 1rem; }
.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: clamp(1.3rem, 3vw, 2rem);
}
.panel p { color: var(--muted); margin-top: 0; }
.panel p:last-child { margin-bottom: 0; }
.principles { display: grid; gap: .75rem; }
.principle { display: flex; gap: .85rem; align-items: flex-start; padding: .9rem 0; border-bottom: 1px solid var(--line); }
.principle:last-child { border-bottom: 0; }
.principle b { color: var(--accent); font-family: var(--font-tech); font-size: .78rem; letter-spacing: .08em; }
.principle span { color: var(--muted); font-size: .94rem; }

.timeline { display: grid; gap: 1rem; }
.role {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 2rem;
  padding: 2rem 0;
  border-top: 1px solid var(--line);
}
.role:last-child { border-bottom: 1px solid var(--line); }
.role-meta { color: var(--muted); font-family: var(--font-tech); font-size: .88rem; letter-spacing: .01em; }
.role-meta strong { color: var(--text); display: block; font-size: 1rem; font-weight: 750; letter-spacing: -.01em; }
.role h3 { margin: 0 0 .35rem; font-size: 1.45rem; font-weight: 690; letter-spacing: -.03em; }
.role-company { color: var(--accent); font-family: var(--font-tech); font-weight: 750; letter-spacing: .015em; }
.role ul { margin: 1rem 0 0; padding-left: 1.15rem; color: var(--muted); }
.role li + li { margin-top: .45rem; }

.project-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.project-card {
  display: flex;
  flex-direction: column;
  min-height: 310px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  background: var(--surface);
}
.project-number { color: var(--accent); font-family: var(--font-tech); font-size: .74rem; font-weight: 800; letter-spacing: .145em; }
.project-card h3 { margin: 1.7rem 0 .65rem; font-size: 1.45rem; font-weight: 690; letter-spacing: -.03em; }
.project-card p { color: var(--muted); margin: 0; }
.tags { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: auto; padding-top: 1.5rem; }
.tag { border: 1px solid var(--line); border-radius: 999px; padding: .38rem .65rem; color: var(--muted); font-family: var(--font-tech); font-size: .74rem; font-weight: 700; letter-spacing: .02em; }

.stack-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.stack-card { border: 1px solid var(--line); border-radius: 18px; padding: 1.25rem; background: var(--surface); }
.stack-card h3 { margin: 0 0 .75rem; font-family: var(--font-tech); font-size: 1rem; font-weight: 800; letter-spacing: .035em; color: var(--accent); }
.stack-card p { margin: 0; color: var(--muted); font-size: .92rem; }

.contact-card {
  display: grid;
  grid-template-columns: 1.35fr .65fr;
  gap: 2rem;
  align-items: end;
  border: 1px solid var(--line);
  border-radius: 30px;
  padding: clamp(1.5rem, 5vw, 3.5rem);
  background:
    radial-gradient(circle at 95% 0%, var(--accent-soft), transparent 22rem),
    var(--surface);
}
.contact-card h2 { margin: 0 0 .9rem; font-size: clamp(2.5rem, 6vw, 5rem); font-weight: 710; line-height: .95; letter-spacing: -.055em; }
.contact-card p { margin: 0; color: var(--muted); max-width: 680px; }
.contact-actions { display: grid; gap: .7rem; }

.site-footer { padding: 2rem 0 3rem; color: var(--muted); font-family: var(--font-tech); font-size: .82rem; letter-spacing: .012em; }
.footer-row { border-top: 1px solid var(--line); padding-top: 1.4rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.footer-row a { text-decoration: none; }
.footer-row a:hover { color: var(--text); }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }

@media (max-width: 900px) {
  .hero { padding-top: 5.2rem; }
  .hero-grid, .section-heading, .about-grid, .contact-card { grid-template-columns: 1fr; }
  .identity-card { min-height: 350px; max-width: 560px; }
  .monogram { min-height: 240px; }
  .capability-grid, .stack-grid { grid-template-columns: repeat(2, 1fr); }
  .nav-links {
    position: fixed;
    inset: 73px 1rem auto;
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--surface-strong);
    box-shadow: var(--shadow);
    display: none;
    flex-direction: column;
    align-items: stretch;
  }
  .nav-links[data-open="true"] { display: flex; }
  .menu-button { display: inline-grid; }
  .language-switcher { display: none; }
}

@media (max-width: 680px) {
  .container { width: min(calc(100% - 1.2rem), var(--max)); }
  .navbar { min-height: 64px; }
  .nav-links { top: 65px; }
  .hero { padding: 4.4rem 0 3rem; }
  .hero h1 { font-size: clamp(3rem, 16vw, 4.7rem); }
  .hero-grid { gap: 2.5rem; }
  .section { padding: 4rem 0; }
  .capability-grid, .project-grid, .stack-grid { grid-template-columns: 1fr; }
  .role { grid-template-columns: 1fr; gap: .8rem; }
  .project-card { min-height: 270px; }
  .identity-card { min-height: auto; }
  .hero-actions .button { flex: 1 1 170px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

@media print {
  :root, [data-theme="light"] {
    --bg: #fff;
    --surface: #fff;
    --surface-strong: #fff;
    --text: #000;
    --muted: #333;
    --line: #bbb;
    --accent: #075b40;
    --accent-soft: transparent;
  }
  body { background: #fff; font-size: 10pt; }
  .site-header, .hero-actions, .contact-actions, .site-footer, .skip-link { display: none !important; }
  .container { width: 100%; }
  .hero, .section { padding: 1.1rem 0; }
  .hero-grid { grid-template-columns: 1fr; gap: 1rem; }
  .identity-card { display: none; }
  .hero h1 { font-size: 34pt; }
  .section-heading { grid-template-columns: 1fr; margin-bottom: 1rem; gap: .2rem; }
  .section-heading h2 { font-size: 22pt; }
  .project-grid, .stack-grid, .capability-grid { grid-template-columns: repeat(2, 1fr); }
  .panel, .project-card, .stack-card, .contact-card { break-inside: avoid; box-shadow: none; }
  a { text-decoration: none; }
}

/* =========================================================
   LIVING DESIGN LAYER
   Same color system, richer shapes, depth and micro-motion.
   ========================================================= */

:root {
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-spring: cubic-bezier(.2, .9, .25, 1.18);
  --surface-glow: color-mix(in srgb, var(--accent) 12%, transparent);
  --surface-highlight: color-mix(in srgb, var(--text) 7%, transparent);
  --deep-shadow: 0 34px 90px rgba(0, 0, 0, .34);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 72px 72px;
  opacity: .055;
  mask-image: linear-gradient(to bottom, #000, transparent 72%);
}

body::after {
  content: "";
  position: fixed;
  width: 42rem;
  height: 42rem;
  left: var(--ambient-x, 12%);
  top: var(--ambient-y, 10%);
  z-index: -1;
  pointer-events: none;
  border-radius: 46% 54% 62% 38% / 44% 39% 61% 56%;
  background: var(--accent-soft);
  filter: blur(78px);
  opacity: .44;
  transform: translate(-50%, -50%);
  transition: left 1.8s var(--ease-out), top 1.8s var(--ease-out);
}

.site-header {
  border-bottom-color: color-mix(in srgb, var(--line) 78%, transparent);
  box-shadow: 0 10px 34px rgba(0, 0, 0, .07);
}

.brand-mark {
  border-radius: 14px 14px 14px 5px;
  transform: rotate(-3deg);
  transition: transform .45s var(--ease-spring), border-radius .45s var(--ease-out), box-shadow .45s var(--ease-out);
}

.brand:hover .brand-mark,
.brand:focus-visible .brand-mark {
  transform: rotate(0deg) translateY(-2px);
  border-radius: 8px 16px 8px 16px;
  box-shadow: 0 15px 38px rgba(32, 183, 123, .28);
}

.nav-links a {
  position: relative;
  padding-block: .55rem;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: .2rem;
  height: 2px;
  border-radius: 999px;
  background: var(--accent);
  transition: right .35s var(--ease-out);
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after {
  right: 0;
}

.icon-button,
.menu-button {
  position: relative;
  overflow: hidden;
  border-radius: 15px 15px 15px 6px;
  box-shadow: inset 0 1px var(--surface-highlight), 0 10px 28px rgba(0, 0, 0, .1);
  transition: transform .35s var(--ease-spring), border-radius .35s var(--ease-out), box-shadow .35s var(--ease-out), background .35s ease;
}

.icon-button:hover,
.menu-button:hover {
  transform: translateY(-2px) rotate(-2deg);
  border-radius: 7px 16px 7px 16px;
  box-shadow: inset 0 1px var(--surface-highlight), 0 16px 34px rgba(0, 0, 0, .17);
}

.language-switcher {
  padding: .22rem;
  border: 1px solid var(--line);
  border-radius: 14px 14px 14px 6px;
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  box-shadow: inset 0 1px var(--surface-highlight);
}

.language-switcher a {
  transition: color .3s ease, background .3s ease, transform .3s var(--ease-spring);
}

.language-switcher a:hover { transform: translateY(-1px); }
.language-switcher a[aria-current="page"] {
  border-radius: 9px 9px 9px 4px;
  box-shadow: 0 6px 18px var(--surface-glow);
}

.hero {
  position: relative;
  isolation: isolate;
  min-height: min(850px, calc(100svh - 72px));
  display: grid;
  align-items: center;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
}

.hero::before {
  width: min(42vw, 31rem);
  aspect-ratio: 1;
  right: 2vw;
  top: 7%;
  border: 1px solid var(--line);
  border-radius: 34% 66% 45% 55% / 58% 36% 64% 42%;
  transform: rotate(12deg);
  box-shadow:
    inset 0 0 0 28px color-mix(in srgb, var(--surface) 28%, transparent),
    inset 0 0 0 29px var(--line);
  animation: ambientMorph 14s ease-in-out infinite alternate;
}

.hero::after {
  width: 9rem;
  height: 9rem;
  left: max(1rem, calc((100vw - var(--max)) / 2 - 4rem));
  bottom: 6%;
  border: 1px solid var(--line);
  border-radius: 50% 18% 50% 18%;
  opacity: .65;
  transform: rotate(24deg);
  animation: ambientFloat 9s ease-in-out infinite alternate;
}

@keyframes ambientMorph {
  0% { border-radius: 34% 66% 45% 55% / 58% 36% 64% 42%; transform: rotate(12deg) translate3d(0, 0, 0); }
  100% { border-radius: 58% 42% 67% 33% / 38% 61% 39% 62%; transform: rotate(19deg) translate3d(-1rem, 1.2rem, 0); }
}

@keyframes ambientFloat {
  0% { transform: rotate(24deg) translateY(0); }
  100% { transform: rotate(31deg) translateY(-1.4rem); }
}

.hero-grid {
  position: relative;
}

.hero-grid > div:first-child {
  position: relative;
  z-index: 2;
}

.hero h1 {
  text-shadow: 0 18px 55px rgba(0, 0, 0, .17);
}

.hero h1 span {
  position: relative;
  display: inline-block;
}

.hero h1 span::after {
  content: "";
  position: absolute;
  left: .02em;
  bottom: -.11em;
  width: .52em;
  height: .075em;
  border-radius: 999px;
  background: var(--accent);
  opacity: .8;
  transform-origin: left;
  animation: nameUnderline 1.05s .2s var(--ease-out) both;
}

@keyframes nameUnderline {
  from { transform: scaleX(0); opacity: 0; }
  to { transform: scaleX(1); opacity: .8; }
}

.eyebrow::before {
  border-radius: 999px;
  box-shadow: 7px 0 0 -1px var(--accent-soft);
  transition: width .45s var(--ease-out);
}

.section-heading:hover .eyebrow::before { width: 40px; }

.button {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 48px;
  border-radius: 17px 17px 17px 6px;
  padding: .9rem 1.18rem;
  box-shadow:
    inset 0 1px var(--surface-highlight),
    0 10px 26px rgba(0, 0, 0, .12);
  transform: translateZ(0);
  transition:
    transform .36s var(--ease-spring),
    border-radius .36s var(--ease-out),
    box-shadow .36s var(--ease-out),
    border-color .3s ease;
}

.button::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -2px;
  background: linear-gradient(105deg, transparent 22%, var(--surface-highlight) 43%, transparent 63%);
  transform: translateX(-125%) skewX(-14deg);
  transition: transform .68s var(--ease-out);
}

.button::after {
  content: "";
  width: .42rem;
  height: .42rem;
  flex: 0 0 auto;
  border-radius: 50%;
  background: currentColor;
  opacity: .42;
  transform: scale(.7);
  transition: transform .35s var(--ease-spring), opacity .35s ease;
}

.button.primary {
  border-radius: 17px 17px 6px 17px;
  box-shadow: inset 0 1px rgba(255, 255, 255, .32), 0 16px 34px var(--surface-glow);
}

.button:hover {
  transform: translateY(-4px) scale(1.012);
  border-radius: 7px 18px 7px 18px;
  box-shadow: inset 0 1px var(--surface-highlight), 0 20px 44px rgba(0, 0, 0, .21);
}

.button:hover::before { transform: translateX(125%) skewX(-14deg); }
.button:hover::after { transform: scale(1); opacity: .72; }
.button:active {
  transform: translateY(0) scale(.985);
  box-shadow: inset 0 2px 7px rgba(0, 0, 0, .18), 0 5px 14px rgba(0, 0, 0, .11);
}

.hero-meta span {
  padding: .42rem .66rem;
  border: 1px solid transparent;
  border-radius: 999px;
  transition: border-color .3s ease, background .3s ease, transform .3s var(--ease-spring);
}

.hero-meta span:hover {
  border-color: var(--line);
  background: color-mix(in srgb, var(--surface) 55%, transparent);
  transform: translateY(-2px);
}

.identity-card {
  border-radius: 38px 38px 38px 12px;
  padding: 1.15rem;
  box-shadow: var(--deep-shadow);
  transform-style: preserve-3d;
  transition: transform .55s var(--ease-out), border-radius .55s var(--ease-out), box-shadow .55s var(--ease-out);
}

.identity-card:hover {
  border-radius: 20px 46px 20px 46px;
  box-shadow: 0 42px 110px rgba(0, 0, 0, .4);
}

.identity-card::before {
  border-radius: 43% 57% 64% 36% / 46% 38% 62% 54%;
  animation: identityOrbit 10s ease-in-out infinite alternate;
}

.identity-card::after {
  content: "";
  position: absolute;
  width: 9rem;
  height: 9rem;
  left: -3.2rem;
  bottom: 4.2rem;
  border: 1px solid var(--line);
  border-radius: 52% 48% 26% 74% / 54% 30% 70% 46%;
  transform: rotate(28deg);
  opacity: .72;
}

@keyframes identityOrbit {
  to { transform: translate(-1.2rem, 1rem) rotate(12deg); border-radius: 60% 40% 35% 65% / 41% 62% 38% 59%; }
}

.monogram {
  position: relative;
  overflow: hidden;
  border-radius: 29px 29px 29px 9px;
  border: 1px solid color-mix(in srgb, var(--line) 82%, transparent);
  box-shadow: inset 0 1px var(--surface-highlight), inset 0 -30px 75px rgba(0, 0, 0, .12);
  transform: translateZ(26px);
  transition: border-radius .55s var(--ease-out), transform .55s var(--ease-out);
}

.monogram::before,
.monogram::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.monogram::before {
  width: 65%;
  height: 1px;
  left: -8%;
  bottom: 22%;
  background: var(--line);
  transform: rotate(-23deg);
  box-shadow: 0 20px 0 var(--line), 0 -20px 0 var(--line);
}

.monogram::after {
  width: 5.8rem;
  height: 5.8rem;
  right: 8%;
  top: 12%;
  border: 1px solid var(--line);
  border-radius: 50%;
  box-shadow: 0 0 0 15px color-mix(in srgb, var(--accent-soft) 45%, transparent);
}

.identity-card:hover .monogram {
  border-radius: 14px 34px 14px 34px;
  transform: translateZ(34px) translateY(-3px);
}

.status-dot {
  animation: statusPulse 2.4s ease-out infinite;
}

@keyframes statusPulse {
  0%, 100% { box-shadow: 0 0 0 7px var(--accent-soft); }
  50% { box-shadow: 0 0 0 12px transparent; }
}

.section {
  position: relative;
}

.section::before {
  content: "";
  position: absolute;
  width: min(38vw, 27rem);
  height: min(38vw, 27rem);
  right: -15rem;
  top: 8%;
  border: 1px solid var(--line);
  border-radius: 63% 37% 48% 52% / 36% 57% 43% 64%;
  opacity: .16;
  pointer-events: none;
  transform: rotate(var(--section-shape-rotation, 18deg));
}

.section:nth-of-type(even)::before {
  right: auto;
  left: -16rem;
  --section-shape-rotation: -24deg;
}

.section-heading {
  position: relative;
}

.section-heading::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1.25rem;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), var(--line) 22%, transparent 80%);
  opacity: .52;
  transform-origin: left;
}

.capability-grid { gap: 1rem; }

.capability {
  position: relative;
  overflow: hidden;
  min-height: 205px;
  padding: 1.4rem;
  border: 1px solid var(--line);
  border-radius: 25px 25px 25px 8px;
  background: color-mix(in srgb, var(--surface) 86%, transparent);
  box-shadow: inset 0 1px var(--surface-highlight), 0 15px 44px rgba(0, 0, 0, .08);
  transition: transform .45s var(--ease-spring), border-radius .45s var(--ease-out), box-shadow .45s var(--ease-out), border-color .3s ease;
}

.capability:nth-child(2) { border-radius: 25px 8px 25px 25px; }
.capability:nth-child(3) { border-radius: 8px 25px 25px 25px; }

.capability::after {
  content: "";
  position: absolute;
  width: 8rem;
  height: 8rem;
  right: -4.5rem;
  bottom: -4.5rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  box-shadow: 0 0 0 18px color-mix(in srgb, var(--accent-soft) 35%, transparent);
  transition: transform .55s var(--ease-out);
}

.capability:hover {
  transform: translateY(-7px) rotate(-.35deg);
  border-radius: 12px 30px 12px 30px;
  border-color: color-mix(in srgb, var(--accent) 38%, var(--line));
  box-shadow: inset 0 1px var(--surface-highlight), 0 28px 62px rgba(0, 0, 0, .18);
}

.capability:hover::after { transform: translate(-1.2rem, -1.2rem) scale(1.08); }

.panel,
.project-card,
.stack-card,
.role {
  position: relative;
  isolation: isolate;
}

.panel {
  overflow: hidden;
  border-radius: 29px 29px 29px 10px;
  box-shadow: inset 0 1px var(--surface-highlight), 0 18px 48px rgba(0, 0, 0, .09);
  transition: transform .45s var(--ease-spring), border-radius .45s var(--ease-out), box-shadow .45s var(--ease-out), border-color .3s ease;
}

.panel:nth-child(2) { border-radius: 29px 10px 29px 29px; }
.panel::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 11rem;
  height: 11rem;
  right: -7rem;
  top: -7rem;
  border-radius: 50%;
  background: var(--accent-soft);
  filter: blur(2px);
}

.panel:hover {
  transform: translateY(-5px);
  border-radius: 13px 34px 13px 34px;
  border-color: color-mix(in srgb, var(--accent) 28%, var(--line));
  box-shadow: inset 0 1px var(--surface-highlight), 0 28px 68px rgba(0, 0, 0, .17);
}

.principle {
  border-radius: 14px;
  padding-inline: .55rem;
  transition: transform .3s var(--ease-spring), background .3s ease;
}

.principle:hover {
  transform: translateX(.35rem);
  background: color-mix(in srgb, var(--accent-soft) 55%, transparent);
}

.timeline {
  position: relative;
  gap: 1.15rem;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 239px;
  top: 2rem;
  bottom: 2rem;
  width: 1px;
  background: linear-gradient(var(--accent), var(--line) 24%, var(--line) 76%, transparent);
  opacity: .55;
}

.role {
  overflow: hidden;
  padding: 2rem;
  border: 1px solid var(--line);
  border-radius: 28px 28px 28px 9px;
  background: color-mix(in srgb, var(--surface) 80%, transparent);
  box-shadow: inset 0 1px var(--surface-highlight), 0 14px 38px rgba(0, 0, 0, .075);
  transition: transform .45s var(--ease-spring), border-radius .45s var(--ease-out), box-shadow .45s var(--ease-out), border-color .3s ease;
}

.role:last-child { border-bottom: 1px solid var(--line); border-radius: 28px 9px 28px 28px; }
.role::after {
  content: "";
  position: absolute;
  width: 7rem;
  height: 7rem;
  right: -4.5rem;
  top: -4.5rem;
  border: 1px solid var(--line);
  border-radius: 42% 58% 67% 33% / 58% 35% 65% 42%;
  transform: rotate(24deg);
}

.role:hover {
  transform: translateX(.45rem);
  border-radius: 12px 34px 12px 34px;
  border-color: color-mix(in srgb, var(--accent) 28%, var(--line));
  box-shadow: inset 0 1px var(--surface-highlight), 0 25px 58px rgba(0, 0, 0, .15);
}

.project-grid { gap: 1.15rem; }
.project-card {
  overflow: hidden;
  border-radius: 31px 31px 31px 10px;
  padding: 1.65rem;
  background:
    radial-gradient(circle at var(--pointer-x, 84%) var(--pointer-y, 12%), var(--surface-glow), transparent 14rem),
    var(--surface);
  box-shadow: inset 0 1px var(--surface-highlight), 0 18px 48px rgba(0, 0, 0, .09);
  transform: perspective(900px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)) translateY(0);
  transition: transform .32s var(--ease-out), border-radius .45s var(--ease-out), box-shadow .45s var(--ease-out), border-color .3s ease;
}

.project-card:nth-child(2n) { border-radius: 31px 10px 31px 31px; }
.project-card:nth-child(3n) { border-radius: 10px 31px 31px 31px; }

.project-card::before {
  content: "";
  position: absolute;
  width: 10rem;
  height: 10rem;
  right: -6rem;
  bottom: -6rem;
  border: 1px solid var(--line);
  border-radius: 52% 48% 32% 68% / 44% 61% 39% 56%;
  transform: rotate(-18deg);
  transition: transform .65s var(--ease-out), border-radius .65s var(--ease-out);
}

.project-card::after {
  content: "";
  position: absolute;
  left: 1.65rem;
  top: 4.15rem;
  width: 3.2rem;
  height: 3px;
  border-radius: 999px;
  background: var(--accent);
  opacity: .38;
  transform-origin: left;
  transition: width .45s var(--ease-out), opacity .45s ease;
}

.project-card:hover {
  transform: perspective(900px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)) translateY(-8px);
  border-radius: 13px 38px 13px 38px;
  border-color: color-mix(in srgb, var(--accent) 36%, var(--line));
  box-shadow: inset 0 1px var(--surface-highlight), 0 34px 78px rgba(0, 0, 0, .21);
}

.project-card:hover::before {
  transform: translate(-1.4rem, -1.2rem) rotate(8deg) scale(1.1);
  border-radius: 34% 66% 59% 41% / 61% 35% 65% 39%;
}

.project-card:hover::after { width: 5rem; opacity: .85; }
.project-card h3 { transition: transform .4s var(--ease-out); }
.project-card:hover h3 { transform: translateX(.22rem); }

.tag {
  position: relative;
  overflow: hidden;
  border-radius: 999px 999px 999px 7px;
  background: color-mix(in srgb, var(--surface-strong) 45%, transparent);
  box-shadow: inset 0 1px var(--surface-highlight);
  transition: transform .3s var(--ease-spring), border-radius .3s var(--ease-out), color .3s ease, border-color .3s ease, background .3s ease;
}

.tag:hover {
  transform: translateY(-2px) rotate(-1deg);
  border-radius: 7px 999px 7px 999px;
  color: var(--text);
  border-color: color-mix(in srgb, var(--accent) 38%, var(--line));
  background: var(--accent-soft);
}

.stack-card {
  overflow: hidden;
  min-height: 180px;
  border-radius: 24px 24px 24px 8px;
  padding: 1.4rem;
  box-shadow: inset 0 1px var(--surface-highlight), 0 14px 40px rgba(0, 0, 0, .075);
  transition: transform .42s var(--ease-spring), border-radius .42s var(--ease-out), box-shadow .42s var(--ease-out), border-color .3s ease;
}

.stack-card:nth-child(2n) { border-radius: 24px 8px 24px 24px; }
.stack-card::before {
  content: "";
  position: absolute;
  width: 4.8rem;
  height: 4.8rem;
  right: -2rem;
  top: -2rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  box-shadow: 0 0 0 12px color-mix(in srgb, var(--accent-soft) 34%, transparent);
  transition: transform .5s var(--ease-out);
}

.stack-card:hover {
  transform: translateY(-6px) rotate(.25deg);
  border-radius: 10px 29px 10px 29px;
  border-color: color-mix(in srgb, var(--accent) 32%, var(--line));
  box-shadow: inset 0 1px var(--surface-highlight), 0 27px 60px rgba(0, 0, 0, .16);
}

.stack-card:hover::before { transform: translate(-.8rem, .8rem) scale(1.08); }

.contact-card {
  position: relative;
  overflow: hidden;
  border-radius: 43px 43px 43px 13px;
  box-shadow: inset 0 1px var(--surface-highlight), var(--deep-shadow);
  transition: border-radius .55s var(--ease-out), box-shadow .55s var(--ease-out), transform .55s var(--ease-spring);
}

.contact-card::before,
.contact-card::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.contact-card::before {
  width: 16rem;
  height: 16rem;
  right: -7rem;
  top: -8rem;
  border: 1px solid var(--line);
  border-radius: 61% 39% 52% 48% / 43% 62% 38% 57%;
  transform: rotate(22deg);
}

.contact-card::after {
  width: 9rem;
  height: 9rem;
  right: 22%;
  bottom: -6rem;
  border: 1px solid var(--line);
  border-radius: 50% 20% 50% 20%;
  transform: rotate(-20deg);
}

.contact-card:hover {
  transform: translateY(-5px);
  border-radius: 18px 51px 18px 51px;
  box-shadow: inset 0 1px var(--surface-highlight), 0 44px 115px rgba(0, 0, 0, .36);
}

/* Scroll reveal is enabled only after JS is ready, so content stays visible without JS. */
.motion-ready .reveal-item {
  opacity: 0;
  transform: translateY(30px) scale(.985);
  filter: blur(7px);
  transition:
    opacity .8s var(--ease-out),
    transform .8s var(--ease-out),
    filter .8s var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}

.motion-ready .reveal-item.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

@media (max-width: 900px) {
  .hero { min-height: auto; }
  .hero::before { width: 55vw; right: -14vw; top: 2%; opacity: .58; }
  .timeline::before { display: none; }
  .role { padding: 1.55rem; }
}

@media (max-width: 680px) {
  body::before { background-size: 48px 48px; opacity: .04; }
  .hero::before { width: 76vw; right: -34vw; top: 0; }
  .hero::after { display: none; }
  .button { border-radius: 15px 15px 15px 6px; }
  .identity-card { border-radius: 28px 28px 28px 10px; }
  .capability, .panel, .project-card, .stack-card, .role { transform: none !important; }
  .project-card { background: var(--surface); }
  .section::before { opacity: .1; }
}

@media (hover: none), (pointer: coarse) {
  .project-card { transform: none; }
  .project-card:hover { transform: translateY(-4px); }
}

@media (prefers-reduced-motion: reduce) {
  body::after,
  .hero::before,
  .hero::after,
  .identity-card::before,
  .status-dot,
  .hero h1 span::after { animation: none !important; }
  .motion-ready .reveal-item { opacity: 1; transform: none; filter: none; }
}

@media print {
  body::before, body::after, .hero::before, .hero::after, .section::before,
  .identity-card::after, .monogram::before, .monogram::after,
  .panel::after, .project-card::before, .project-card::after,
  .stack-card::before, .contact-card::before, .contact-card::after { display: none !important; }
  .capability, .role, .panel, .project-card, .stack-card, .contact-card {
    transform: none !important;
    border-radius: 10px !important;
    box-shadow: none !important;
  }
  .motion-ready .reveal-item { opacity: 1 !important; transform: none !important; filter: none !important; }
}


/* === FINAL CV CONTENT & PROFILE LAYER === */
.section-heading.no-number h2 { margin-top: 0; }
.section-heading.no-number::after { opacity: .55; }
.availability i {
  width: .55rem;
  height: .55rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 .35rem var(--accent-soft);
  flex: 0 0 auto;
  animation: availabilityPulse 2.4s ease-in-out infinite;
}
@keyframes availabilityPulse { 50% { box-shadow: 0 0 0 .6rem transparent; } }

.quick-stats { padding: .35rem 0 2.8rem; position: relative; z-index: 2; }
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: .75rem; }
.stat-card {
  min-height: 132px;
  border: 1px solid var(--line);
  border-radius: 18px 8px 18px 18px;
  padding: 1.15rem;
  background: linear-gradient(145deg, color-mix(in srgb, var(--surface) 94%, var(--accent) 6%), var(--surface));
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform .35s var(--ease-out), border-color .35s ease, box-shadow .35s ease;
}
.stat-card:nth-child(even) { border-radius: 8px 18px 18px 18px; }
.stat-card:hover { transform: translateY(-5px); border-color: color-mix(in srgb, var(--accent) 42%, var(--line)); box-shadow: 0 18px 42px rgba(0,0,0,.15); }
.stat-card strong { font-family: var(--font-display); font-size: clamp(1.4rem,2.5vw,2rem); line-height: .98; letter-spacing: -.045em; }
.stat-card span { color: var(--muted); font-family: var(--font-tech); font-size: .82rem; font-weight: 700; line-height: 1.35; }

.capability .index, .principle b { font-size: .86rem; letter-spacing: .03em; }
.capability h3 { margin-top: .7rem; }
.project-number { letter-spacing: .08em; }
.role { grid-template-columns: 210px minmax(0,1fr); }
.role ul { max-width: 850px; }
.project-card { min-height: 360px; }
.project-card p { line-height: 1.62; }
.stack-card { min-height: 190px; }

.professional-profile { display: grid; grid-template-columns: minmax(300px,.82fr) minmax(0,1.18fr); gap: 1rem; align-items: stretch; }
.profile-visual-card, .profile-summary {
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.profile-visual-card { border-radius: 32px 11px 32px 32px; padding: 1.1rem; }
.profile-portrait {
  min-height: 460px;
  border: 1px solid var(--line);
  border-radius: 23px 8px 23px 23px;
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 74% 24%, transparent 0 44px, color-mix(in srgb,var(--accent) 13%,transparent) 45px 65px, transparent 66px),
    linear-gradient(145deg, color-mix(in srgb,var(--surface-strong) 80%,var(--accent) 20%), var(--bg-soft));
}
.profile-portrait::before, .profile-portrait::after { content:""; position:absolute; border:1px solid color-mix(in srgb,var(--accent) 34%,transparent); border-radius:50%; }
.profile-portrait::before { width:370px; height:370px; right:-185px; top:-90px; }
.profile-portrait::after { width:260px; height:260px; left:-145px; bottom:-120px; }
.profile-portrait span { font-family: var(--font-display); font-size: clamp(6rem,16vw,11rem); font-weight: 760; letter-spacing: -.09em; color: var(--accent); filter: drop-shadow(0 20px 55px rgba(32,183,123,.18)); }
.profile-role { margin-top: 1rem; padding: 1rem; border: 1px solid var(--line); border-radius: 16px 7px 16px 16px; background: color-mix(in srgb,var(--bg-soft) 72%,transparent); }
.profile-role strong { display:block; font-size:1.25rem; letter-spacing:-.025em; }
.profile-role p { color:var(--muted); margin:.35rem 0 0; font-size:.9rem; }
.profile-tool-list { display:flex; flex-wrap:wrap; gap:.48rem; padding-top:1rem; }
.profile-summary { border-radius: 11px 32px 32px 32px; padding: clamp(1.5rem,4vw,3.2rem); position:relative; }
.profile-summary::before { content:""; position:absolute; width:260px; height:260px; right:-110px; top:-120px; border:46px solid var(--accent-soft); border-radius:50%; }
.profile-summary-mark { width:70px; height:70px; display:grid; place-items:center; border-radius:22px 8px 22px 22px; background:var(--accent); color:#04120d; font-family:var(--font-tech); font-weight:900; font-size:1.25rem; }
.profile-summary h3 { max-width:720px; margin:1.6rem 0 .8rem; font-size:clamp(2rem,4vw,4rem); line-height:.98; letter-spacing:-.055em; }
.profile-summary > p { max-width:740px; color:var(--muted); font-size:1.03rem; }
.profile-metrics { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.65rem; margin-top:2rem; }
.profile-metrics .stat-card { min-height:118px; background:color-mix(in srgb,var(--bg-soft) 80%,transparent); }

.development-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:1rem; }
.development-card { border:1px solid var(--line); border-radius:27px 9px 27px 27px; background:var(--surface); overflow:hidden; transition:transform .4s var(--ease-out), border-color .4s ease, box-shadow .4s ease; }
.development-card:nth-child(2) { border-radius:9px 27px 27px 27px; }
.development-card:hover { transform:translateY(-7px); border-color:color-mix(in srgb,var(--accent) 42%,var(--line)); box-shadow:0 25px 55px rgba(0,0,0,.18); }
.development-visual { min-height:245px; margin:1rem; border-radius:20px 7px 20px 20px; display:grid; place-items:center; background:linear-gradient(150deg,color-mix(in srgb,var(--surface-strong) 86%,var(--accent) 14%),var(--bg-soft)); border:1px solid var(--line); }
.development-visual svg { width:112px; height:112px; fill:none; stroke:var(--accent); stroke-width:3.2; stroke-linecap:round; stroke-linejoin:round; filter:drop-shadow(0 15px 30px rgba(32,183,123,.18)); }
.development-body { padding:0 1.25rem 1.35rem; }
.development-title-row { display:flex; align-items:flex-start; justify-content:space-between; gap:.8rem; }
.development-title-row h3 { margin:0; font-size:1.3rem; line-height:1.1; letter-spacing:-.03em; }
.development-title-row span { padding:.4rem .65rem; border-radius:999px; background:var(--accent); color:#04120d; font-family:var(--font-tech); font-weight:850; font-size:.72rem; }
.development-body p { color:var(--muted); margin:1rem 0 0; }

@media (max-width: 980px) {
  .stats-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .professional-profile { grid-template-columns:1fr; }
  .profile-visual-card { max-width:680px; }
  .development-grid { grid-template-columns:1fr; }
  .development-card { display:grid; grid-template-columns:minmax(220px,.6fr) 1fr; align-items:center; }
  .development-visual { min-height:230px; }
  .development-body { padding:1.4rem; }
}
@media (max-width: 680px) {
  .stats-grid { grid-template-columns:1fr 1fr; }
  .stat-card { min-height:115px; }
  .profile-portrait { min-height:360px; }
  .profile-metrics { grid-template-columns:1fr; }
  .development-card { display:block; }
  .development-visual { min-height:210px; }
  .project-card { min-height:0; }
}
@media (max-width: 420px) {
  .stats-grid { grid-template-columns:1fr; }
}
@media print {
  .quick-stats, #profile, #development { break-inside:avoid; }
  .profile-portrait { min-height:220px; }
  .development-visual { min-height:130px; }
}

/* =========================================================
   COMPACT DESKTOP LAYER
   Keeps the palette and visual language; reduces scale,
   vertical whitespace and oversized cards by roughly 15–20%.
   ========================================================= */

:root {
  --max: 1080px;
  --radius: 19px;
}

body {
  font-size: 15px;
  line-height: 1.6;
}

.container {
  width: min(calc(100% - 2.4rem), var(--max));
}

.navbar {
  min-height: 64px;
}

.brand-mark {
  width: 35px;
  height: 35px;
  border-radius: 12px 12px 12px 5px;
}

.nav-links {
  gap: 1rem;
}

.nav-links a {
  font-size: .82rem;
}

.icon-button,
.menu-button {
  min-width: 38px;
  height: 38px;
}

.language-switcher a {
  padding: .4rem .52rem;
}

.hero {
  min-height: min(700px, calc(100svh - 64px));
  padding: 5.2rem 0 3.4rem;
}

.hero-grid {
  grid-template-columns: minmax(0, 1.42fr) minmax(260px, .58fr);
  gap: 3rem;
}

.hero h1 {
  margin: .85rem 0 .85rem;
  max-width: 760px;
  font-size: clamp(3rem, 6.5vw, 5.75rem);
  line-height: .93;
}

.hero-copy {
  max-width: 680px;
  font-size: clamp(.98rem, 1.6vw, 1.13rem);
  line-height: 1.5;
}

.hero-actions {
  gap: .68rem;
  margin-top: 1.55rem;
}

.button {
  min-height: 43px;
  padding: .72rem .98rem;
  border-radius: 15px 15px 15px 6px;
  font-size: .9rem;
}

.hero-meta {
  gap: .45rem .75rem;
  margin-top: 1.55rem;
  font-size: .84rem;
}

.hero-meta span {
  padding: .32rem .52rem;
}

.identity-card {
  min-height: 365px;
  border-radius: 32px 32px 32px 11px;
  padding: .95rem;
}

.monogram {
  min-height: 250px;
  border-radius: 24px 24px 24px 9px;
  font-size: clamp(4.6rem, 10vw, 7rem);
}

.identity-footer {
  padding: .9rem .15rem .05rem;
}

.identity-footer strong {
  font-size: 1rem;
}

.identity-footer span {
  font-size: .8rem;
}

.section {
  padding: 4.25rem 0;
}

.section.compact {
  padding-top: 1.45rem;
}

.section-heading {
  gap: 2rem;
  margin-bottom: 2rem;
}

.section-heading::after {
  bottom: -.9rem;
}

.section-heading h2 {
  font-size: clamp(2rem, 4vw, 3.45rem);
}

.section-heading p {
  max-width: 620px;
  font-size: .96rem;
  line-height: 1.55;
}

.capability {
  min-height: 174px;
  padding: 1.15rem;
  border-radius: 21px 21px 21px 8px;
}

.capability h3 {
  margin: .55rem 0 .35rem;
  font-size: 1.08rem;
}

.capability p {
  font-size: .87rem;
  line-height: 1.55;
}

.panel {
  padding: clamp(1.1rem, 2.2vw, 1.55rem);
  border-radius: 24px 24px 24px 9px;
}

.panel p {
  font-size: .93rem;
}

.principles {
  gap: .45rem;
}

.principle {
  gap: .7rem;
  padding: .7rem .45rem;
}

.principle span {
  font-size: .88rem;
}

.timeline {
  gap: .85rem;
}

.timeline::before {
  left: 188px;
}

.role {
  grid-template-columns: 188px minmax(0, 1fr);
  gap: 1.45rem;
  padding: 1.45rem;
  border-radius: 24px 24px 24px 9px;
}

.role-meta {
  font-size: .8rem;
}

.role-meta strong {
  font-size: .92rem;
}

.role h3 {
  font-size: 1.25rem;
}

.role ul {
  margin-top: .75rem;
  font-size: .9rem;
}

.role li + li {
  margin-top: .32rem;
}

.project-grid {
  gap: .9rem;
}

.project-card {
  min-height: 292px;
  padding: 1.3rem;
  border-radius: 26px 26px 26px 9px;
}

.project-card::after {
  left: 1.3rem;
  top: 3.75rem;
}

.project-card h3 {
  margin: 1.45rem 0 .5rem;
  font-size: 1.25rem;
}

.project-card p {
  font-size: .9rem;
  line-height: 1.52;
}

.tags {
  gap: .38rem;
  padding-top: 1.15rem;
}

.tag {
  padding: .31rem .56rem;
  font-size: .68rem;
}

.stack-grid {
  gap: .85rem;
}

.stack-card {
  min-height: 155px;
  padding: 1.05rem;
  border-radius: 20px 20px 20px 8px;
}

.stack-card h3 {
  margin-bottom: .55rem;
  font-size: .9rem;
}

.stack-card p {
  font-size: .84rem;
  line-height: 1.55;
}

.quick-stats {
  padding: .2rem 0 2.1rem;
}

.stats-grid {
  gap: .65rem;
}

.stat-card {
  min-height: 106px;
  padding: .9rem;
  border-radius: 16px 7px 16px 16px;
}

.stat-card strong {
  font-size: clamp(1.18rem, 2vw, 1.65rem);
}

.stat-card span {
  font-size: .73rem;
}

.professional-profile {
  grid-template-columns: minmax(270px, .72fr) minmax(0, 1.28fr);
  gap: .85rem;
}

.profile-visual-card {
  padding: .85rem;
  border-radius: 27px 10px 27px 27px;
}

.profile-portrait {
  min-height: 365px;
  border-radius: 20px 8px 20px 20px;
}

.profile-portrait span {
  font-size: clamp(5rem, 12vw, 8.5rem);
}

.profile-role {
  margin-top: .75rem;
  padding: .8rem;
}

.profile-role strong {
  font-size: 1.08rem;
}

.profile-tool-list {
  gap: .36rem;
  padding-top: .75rem;
}

.profile-summary {
  padding: clamp(1.25rem, 3vw, 2.35rem);
  border-radius: 10px 27px 27px 27px;
}

.profile-summary-mark {
  width: 58px;
  height: 58px;
  border-radius: 18px 7px 18px 18px;
  font-size: 1.05rem;
}

.profile-summary h3 {
  margin: 1.25rem 0 .65rem;
  font-size: clamp(1.8rem, 3.3vw, 3.2rem);
}

.profile-summary > p {
  font-size: .94rem;
}

.profile-metrics {
  gap: .55rem;
  margin-top: 1.45rem;
}

.profile-metrics .stat-card {
  min-height: 96px;
}

.development-grid {
  gap: .85rem;
}

.development-card {
  border-radius: 23px 8px 23px 23px;
}

.development-visual {
  min-height: 195px;
  margin: .8rem;
  border-radius: 17px 7px 17px 17px;
}

.development-visual svg {
  width: 88px;
  height: 88px;
}

.development-body {
  padding: 0 1rem 1.05rem;
}

.development-title-row h3 {
  font-size: 1.12rem;
}

.development-body p {
  margin-top: .7rem;
  font-size: .88rem;
  line-height: 1.5;
}

.contact-card {
  gap: 1.4rem;
  padding: clamp(1.3rem, 3.5vw, 2.5rem);
  border-radius: 35px 35px 35px 12px;
}

.contact-card h2 {
  margin-bottom: .65rem;
  font-size: clamp(2.2rem, 4.8vw, 4rem);
}

.contact-card p {
  font-size: .93rem;
}

.site-footer {
  padding: 1.4rem 0 2rem;
}

@media (max-width: 980px) {
  .hero {
    min-height: auto;
    padding-top: 4.6rem;
  }

  .profile-visual-card {
    max-width: 580px;
  }

  .development-card {
    grid-template-columns: minmax(190px, .52fr) 1fr;
  }

  .development-visual {
    min-height: 185px;
  }
}

@media (max-width: 680px) {
  body {
    font-size: 15px;
  }

  .container {
    width: min(calc(100% - 1.1rem), var(--max));
  }

  .navbar {
    min-height: 60px;
  }

  .nav-links {
    top: 61px;
  }

  .hero {
    padding: 3.65rem 0 2.5rem;
  }

  .hero h1 {
    font-size: clamp(2.75rem, 14.5vw, 4.25rem);
  }

  .hero-grid {
    gap: 2rem;
  }

  .section {
    padding: 3.35rem 0;
  }

  .section-heading {
    gap: 1rem;
    margin-bottom: 1.65rem;
  }

  .section-heading h2 {
    font-size: clamp(1.9rem, 10vw, 2.8rem);
  }

  .identity-card {
    max-width: 480px;
  }

  .monogram {
    min-height: 210px;
  }

  .stat-card {
    min-height: 98px;
  }

  .profile-portrait {
    min-height: 300px;
  }

  .development-visual {
    min-height: 170px;
  }
}

/* =========================================================
   FINAL DENSITY + CONTACT CLEANUP
   ========================================================= */
.hero {
  min-height: auto !important;
  padding: 4.1rem 0 2.25rem !important;
}
.hero-grid { gap: 2.35rem !important; }
.hero h1 { margin: .68rem 0 .72rem !important; }
.hero-actions { margin-top: 1.25rem !important; }
.hero-meta { margin-top: 1.15rem !important; }
.quick-stats { padding: 0 0 1.35rem !important; }
.section { padding: 2.7rem 0 !important; }
.section-heading {
  margin-bottom: 1.35rem !important;
  gap: 1.15rem !important;
}
.section-heading::after { bottom: -.62rem !important; }
.timeline { gap: .68rem !important; }
.role { padding: 1.12rem 1.2rem !important; }
.role ul { margin-top: .56rem !important; }
.project-grid, .stack-grid, .development-grid { gap: .72rem !important; }
.project-card { min-height: 272px !important; padding: 1.18rem !important; }
.project-card h3 { margin-top: 1.25rem !important; }
.stack-card { min-height: 142px !important; padding: .95rem !important; }
.professional-profile { gap: .75rem !important; }
.profile-visual-card { padding: .75rem !important; }
.profile-portrait { min-height: 315px !important; }
.profile-summary { padding: 1.55rem !important; }
.profile-summary h3 { margin: .95rem 0 .55rem !important; }
.profile-metrics { margin-top: 1rem !important; gap: .46rem !important; }
.development-visual { min-height: 168px !important; }
.development-body { padding-bottom: .9rem !important; }
#contact { padding-bottom: 2rem !important; }
.contact-card {
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr) !important;
  align-items: center !important;
  gap: 1.2rem !important;
  padding: 1.8rem 2rem !important;
  border-radius: 30px 30px 30px 10px !important;
}
.contact-card h2 {
  max-width: 760px !important;
  margin: .35rem 0 .52rem !important;
  font-size: clamp(2.15rem, 4.7vw, 4.05rem) !important;
}
.contact-card p { max-width: 720px !important; margin: 0 !important; }
.contact-actions {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: .58rem !important;
  align-content: center !important;
}
.contact-actions .button {
  width: 100% !important;
  min-height: 43px !important;
  padding: .64rem .75rem !important;
  justify-content: center !important;
  text-align: center !important;
  white-space: nowrap !important;
}
.contact-actions .button.primary { grid-column: 1 / -1 !important; }
.site-footer { display: none !important; }

@media (max-width: 900px) {
  .contact-card { grid-template-columns: 1fr !important; }
  .contact-actions { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}
@media (max-width: 680px) {
  .hero { padding: 3.25rem 0 1.85rem !important; }
  .section { padding: 2.25rem 0 !important; }
  .contact-card { padding: 1.25rem !important; }
  .contact-actions { grid-template-columns: 1fr !important; }
  .contact-actions .button.primary { grid-column: auto !important; }
  .profile-portrait { min-height: 260px !important; }
}

/* HR optimized final pass */
.hero-copy{max-width:720px!important;font-size:1.08rem!important;line-height:1.52!important}.hero-meta{gap:.55rem 1rem!important}.hero-meta span{padding:.26rem .48rem!important}.section{padding:2.6rem 0!important}.section-heading{margin-bottom:1.15rem!important;gap:1rem!important}.section-heading h2{font-size:clamp(2.05rem,4vw,3.55rem)!important;line-height:.96!important;max-width:420px}.section-heading p{font-size:.95rem!important;line-height:1.5!important;max-width:620px!important}.timeline{gap:.7rem!important}.role{padding:1.05rem 1.15rem!important}.role h3{font-size:1.16rem!important}.role ul{font-size:.88rem!important}.role li+li{margin-top:.22rem!important}.project-card{padding:1.1rem!important;min-height:260px!important}.project-number{font-size:.72rem!important;letter-spacing:.12em!important}.project-card h3{font-size:1.1rem!important;margin:1.15rem 0 .45rem!important}.project-card p{font-size:.87rem!important;line-height:1.5!important}.tags{padding-top:.9rem!important}.stack-card{min-height:145px!important}.stack-card p{font-size:.84rem!important;line-height:1.5!important}.profile-summary>p{font-size:.92rem!important;line-height:1.55!important}.cert-grid{gap:.8rem!important}.cert-card{overflow:hidden}.cert-visual{display:flex;align-items:center;justify-content:center;background:#edf6f3!important;min-height:190px!important}.cert-plate{background:#fff;border:1px solid rgba(15,23,42,.12);box-shadow:0 12px 26px rgba(15,23,42,.08);padding:1rem 1.2rem;border-radius:12px;min-width:210px;text-align:center}.cert-top{font-size:.82rem;font-weight:700;letter-spacing:.05em;text-transform:uppercase;color:#1b355d;margin-bottom:.35rem}.cert-main{font-size:2.3rem;font-weight:800;line-height:1;color:#17306d}.cert-sub{margin-top:.35rem;font-size:.78rem;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:#38507c}.cert-zabbix .cert-top{color:#b80000}.cert-zabbix .cert-main{color:#0f2d52;font-size:1.75rem}.cert-zabbix .cert-sub{color:#0f2d52}.contact-card{padding:1.6rem 1.8rem!important;gap:1rem!important}.contact-card h2{font-size:clamp(2.1rem,5vw,4rem)!important}.contact-card p{font-size:.94rem!important;max-width:660px}.contact-actions{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:.7rem!important}.contact-actions .button{width:100%!important;justify-content:center!important;min-height:44px!important;padding:.72rem .9rem!important}.contact-actions .button.primary{grid-column:1/-1!important}@media (max-width:860px){.section-heading h2{max-width:none}.contact-actions{grid-template-columns:1fr!important}.contact-actions .button.primary{grid-column:auto!important}.cert-plate{min-width:180px}.development-visual{min-height:170px!important}}


/* Final polish 2 */
.project-card::after{top:3.05rem!important;left:1.25rem!important;width:2.8rem!important;opacity:.48!important}
.project-card h3{position:relative;z-index:1;margin-top:1.35rem!important;font-size:1.02rem!important;line-height:1.18!important}
.project-card p{font-size:.84rem!important;line-height:1.45!important;max-width:58ch}
.tags{padding-top:.75rem!important}
.tag{font-size:.64rem!important;padding:.28rem .5rem!important}
.hero-copy{font-size:1rem!important;line-height:1.46!important;max-width:650px!important}
.role ul{font-size:.84rem!important;line-height:1.42!important}.role li+li{margin-top:.16rem!important}
.section-heading p{font-size:.9rem!important;line-height:1.45!important;max-width:560px!important}
.contact-card{padding:1.45rem 1.55rem!important}.contact-card h2{font-size:clamp(1.9rem,4.8vw,3.55rem)!important}.contact-card p{font-size:.9rem!important;max-width:520px!important}
.contact-actions{grid-template-columns:repeat(2,minmax(0,1fr))!important;align-content:start!important}.contact-actions .button{min-height:42px!important;font-size:.95rem!important}.contact-actions .button.primary{grid-column:1/-1!important}
.cert-visual{background:#eef6f2!important;padding:.75rem!important;min-height:210px!important}.cert-image{display:block;width:100%;height:178px;object-fit:contain;border-radius:14px;background:#f7faf9;border:1px solid rgba(15,23,42,.08);box-shadow:0 10px 24px rgba(15,23,42,.10)}
.development-body p{font-size:.84rem!important;line-height:1.45!important}
@media (max-width:860px){.contact-actions{grid-template-columns:1fr!important}.contact-actions .button.primary{grid-column:auto!important}.cert-image{height:160px}}


/* Personalization and compact project cards */
.profile-portrait {
  display: block !important;
  background: var(--surface) !important;
}
.profile-portrait::before,
.profile-portrait::after {
  z-index: 1;
  pointer-events: none;
  opacity: .45;
}
.profile-photo {
  position: relative;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  object-position: 58% 32%;
  border-radius: inherit;
  filter: saturate(.92) contrast(1.02);
}
.project-grid {
  align-items: start !important;
}
.project-card {
  min-height: 0 !important;
  height: auto !important;
  padding: .9rem 1rem .95rem !important;
}
.project-card h3 {
  margin: .95rem 0 .3rem !important;
  font-size: 1rem !important;
  line-height: 1.15 !important;
}
.project-card p {
  font-size: .82rem !important;
  line-height: 1.42 !important;
}
.project-card::after {
  top: 2.76rem !important;
  left: 1rem !important;
  width: 2.45rem !important;
}
.tags {
  margin-top: .65rem !important;
  padding-top: 0 !important;
  gap: .34rem !important;
}
.tag {
  padding: .25rem .46rem !important;
  font-size: .61rem !important;
}
.contact-actions {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}
.contact-actions .button.primary {
  grid-column: 1 / -1 !important;
}
.contact-actions .button {
  white-space: normal !important;
  line-height: 1.2 !important;
}
@media (max-width: 860px) {
  .profile-photo { object-position: 58% 28%; }
  .contact-actions { grid-template-columns: 1fr !important; }
  .contact-actions .button.primary { grid-column: auto !important; }
}

/* Real portrait + simplified contact controls */
.identity-photo {
  position: relative;
  padding: 0 !important;
  min-height: 260px;
  overflow: hidden;
  background: var(--surface-strong);
}
.identity-photo::before,
.identity-photo::after {
  display: none !important;
}
.identity-photo-image {
  display: block;
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  object-position: 64% 42%;
  filter: saturate(.92) contrast(1.02);
  transition: transform .65s var(--ease-out), filter .45s ease;
}
.identity-card:hover .identity-photo-image {
  transform: scale(1.035);
  filter: saturate(1) contrast(1.04);
}
.phone-link {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  white-space: nowrap;
}
.phone-icon {
  width: 1.08rem;
  height: 1.08rem;
  flex: 0 0 auto;
}
.phone-number {
  font-variant-numeric: tabular-nums;
  letter-spacing: .015em;
}
@media (max-width: 680px) {
  .identity-photo { min-height: 230px; }
  .identity-photo-image { object-position: 64% 38%; }
}



/* Balanced profile summary + simplified phone button */
.profile-summary {
  display: flex !important;
  flex-direction: column !important;
  min-height: 100% !important;
}
.profile-summary-copy {
  position: relative;
  z-index: 1;
  max-width: 760px;
}
.profile-summary-copy p {
  margin: 0;
  color: var(--muted);
  font-size: .94rem;
  line-height: 1.58;
}
.profile-summary-copy p + p {
  margin-top: .72rem;
}
.profile-summary .profile-metrics {
  margin-top: auto !important;
  padding-top: 1.35rem;
}
.phone-label {
  font-weight: 720;
}
.phone-link {
  gap: .48rem !important;
}
@media (max-width: 980px) {
  .profile-summary .profile-metrics {
    margin-top: 1.2rem !important;
  }
}
