@property --border-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

:root {
  --bg: #090a0f;
  --bg-soft: #11131b;
  --surface: #191a24;
  --surface-raised: #3c3744;
  --text: #fbfff1;
  --muted: #929bb0;
  --muted-strong: #b4c5e4;
  --line: rgba(180, 197, 228, 0.11);
  --line-strong: rgba(180, 197, 228, 0.21);
  --blue: #3066be;
  --blue-deep: #090c9b;
  --blue-light: #b4c5e4;
  --taupe: #3c3744;
  --cream: #fbfff1;
  --white: #fbfff1;
  --max-width: 1180px;
  --radius-lg: 18px;
  --radius-md: 12px;
  --shadow: 0 28px 70px rgba(0, 0, 0, 0.42);
  --shadow-active: var(--shadow-5, 0 28px 70px rgba(0, 0, 0, 0.38));
  --motion-smooth: var(--ease-3, cubic-bezier(0.25, 0, 0.3, 1));
  --motion-spring: var(--ease-spring-3, cubic-bezier(0.34, 1.56, 0.64, 1));
  --scroll-progress: 0;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 86px;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 18% 22%, rgba(60, 55, 68, 0.12) 0 1px, transparent 1.5px),
    radial-gradient(circle at 72% 58%, rgba(48, 102, 190, 0.07) 0 1px, transparent 1.7px);
  background-size: 23px 23px, 31px 31px;
  opacity: 0.48;
  mask-image: linear-gradient(to bottom, black, transparent 78%);
}

body::after {
  content: "";
  position: fixed;
  top: -34vh;
  right: -15vw;
  z-index: -2;
  width: 54vw;
  height: 72vh;
  pointer-events: none;
  border-radius: 50%;
  background: #090c9b;
  filter: blur(180px);
  opacity: 0.13;
}

::selection {
  background: var(--blue);
  color: var(--white);
}

a {
  color: inherit;
}

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

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

.section {
  position: relative;
  padding: 104px 0;
}

.section-soft {
  border-block: 1px solid var(--line);
  background: rgba(17, 19, 27, 0.82);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035), inset 0 -1px 0 rgba(255, 255, 255, 0.025);
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 999;
  padding: 10px 14px;
  transform: translateY(-170%);
  border-radius: 4px;
  background: var(--white);
  color: var(--bg);
  font-weight: 750;
  text-decoration: none;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgba(9, 10, 15, 0.88);
  backdrop-filter: blur(18px);
}

.site-header::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  transform: scaleX(var(--scroll-progress));
  transform-origin: left;
  background: linear-gradient(90deg, var(--blue-deep), var(--blue), var(--blue-light));
  box-shadow: 0 0 16px rgba(48, 102, 190, 0.48);
  pointer-events: none;
  transition: transform 80ms linear;
}

.nav-wrap {
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
  font-weight: 760;
  letter-spacing: -0.025em;
  text-decoration: none;
}

.brand-copy {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  line-height: 1.08;
  white-space: nowrap;
}

.brand-copy strong {
  font-size: 0.92rem;
  font-weight: 760;
}

.brand-copy small {
  color: var(--blue-light);
  font-size: 0.57rem;
  font-weight: 680;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.brand-divider {
  color: rgba(180, 197, 228, 0.3);
  font-size: 0.66rem;
  font-weight: 500;
}

.brand-mark {
  position: relative;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid var(--line-strong);
  background: #191a24;
  color: var(--white);
  font-size: 0.75rem;
  letter-spacing: 0.07em;
  transition: border-color 240ms var(--motion-smooth), box-shadow 240ms var(--motion-smooth);
}

.brand-mark::after {
  content: "";
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 14px;
  height: 3px;
  background: var(--blue);
  box-shadow: 0 0 16px rgba(48, 102, 190, 0.62);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.header-actions {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: clamp(18px, 2.4vw, 32px);
}

.language-switch {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 7px;
  padding: 6px 9px;
  border: 1px solid rgba(180, 197, 228, 0.1);
  border-radius: 6px;
  background: rgba(60, 55, 68, 0.2);
  box-shadow: inset 0 1px 0 rgba(251, 255, 241, 0.025), 0 7px 20px rgba(0, 0, 0, 0.1);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.65rem;
  font-weight: 760;
  letter-spacing: 0.1em;
  backdrop-filter: blur(14px) saturate(0.82);
  transition: border-color 180ms var(--motion-smooth), background-color 180ms var(--motion-smooth), box-shadow 180ms var(--motion-smooth);
}

.language-switch:hover {
  border-color: rgba(180, 197, 228, 0.17);
  background: rgba(60, 55, 68, 0.28);
  box-shadow: inset 0 1px 0 rgba(251, 255, 241, 0.035), 0 8px 22px rgba(0, 0, 0, 0.14);
}

.language-switch span[aria-current="page"] {
  color: rgba(251, 255, 241, 0.72);
}

.language-switch a {
  color: rgba(180, 197, 228, 0.48);
  text-decoration: none;
  transition: color 180ms var(--motion-smooth), text-shadow 180ms var(--motion-smooth);
}

.language-switch a:hover {
  color: rgba(251, 255, 241, 0.68);
  text-shadow: 0 0 14px rgba(48, 102, 190, 0.4);
}

.language-separator {
  color: rgba(180, 197, 228, 0.22);
}

.site-nav a,
.site-footer a {
  position: relative;
  color: var(--muted-strong);
  font-size: 0.9rem;
  text-decoration: none;
  transition: color 180ms ease;
}

.site-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 1px;
  transform: scaleX(0);
  transform-origin: right;
  background: var(--blue);
  transition: transform 180ms ease;
}

.site-nav a:hover,
.site-footer a:hover {
  color: var(--white);
}

.site-nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.hero {
  display: grid;
  min-height: calc(100svh - 72px);
  align-items: center;
  overflow: clip;
  padding: 84px 0 96px;
}

.hero::before {
  content: "JM";
  position: absolute;
  top: 4%;
  right: -0.06em;
  z-index: -1;
  color: transparent;
  font-size: clamp(18rem, 43vw, 38rem);
  font-weight: 900;
  line-height: 0.8;
  letter-spacing: -0.12em;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.045);
  pointer-events: none;
  user-select: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(390px, 0.92fr);
  gap: clamp(48px, 7vw, 96px);
  align-items: center;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.hero-copy::before {
  content: "";
  position: absolute;
  top: 4px;
  left: -24px;
  width: 2px;
  height: 54px;
  background: var(--blue);
  box-shadow: 0 0 22px rgba(48, 102, 190, 0.46);
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--blue-light);
  font-size: 0.74rem;
  font-weight: 780;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  color: var(--white);
  letter-spacing: -0.045em;
}

h1 {
  max-width: 780px;
  margin-bottom: 28px;
  line-height: 0.88;
}

.hero-name {
  display: block;
  font-size: clamp(4.5rem, 9.2vw, 8.4rem);
  font-weight: 320;
  letter-spacing: -0.075em;
}

.hero-name strong {
  display: block;
  color: var(--white);
  font-weight: 820;
}

.hero-role {
  display: block;
  max-width: 560px;
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--line-strong);
  color: var(--muted-strong);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: clamp(0.9rem, 1.5vw, 1.08rem);
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h2 {
  margin-bottom: 20px;
  font-size: clamp(2.15rem, 4.2vw, 3.85rem);
  font-weight: 680;
  line-height: 1.03;
}

h3 {
  margin-bottom: 13px;
  font-size: 1.27rem;
  font-weight: 680;
  line-height: 1.18;
}

.hero-lead,
.section-intro,
.profile-copy,
.hero-card p,
.contact-card p {
  color: var(--muted-strong);
}

.hero-lead {
  max-width: 630px;
  margin-bottom: 32px;
  font-size: clamp(1.03rem, 1.8vw, 1.18rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  position: relative;
  display: inline-flex;
  min-height: 49px;
  align-items: center;
  justify-content: center;
  padding: 0 19px;
  border: 1px solid transparent;
  border-radius: 5px;
  overflow: hidden;
  isolation: isolate;
  font-size: 0.92rem;
  font-weight: 740;
  text-decoration: none;
  transition: transform 180ms var(--motion-spring), border-color 180ms var(--motion-smooth), background-color 180ms var(--motion-smooth), box-shadow 180ms var(--motion-smooth);
}

.button::after {
  content: "";
  position: absolute;
  inset: -100% auto -100% -55%;
  width: 34%;
  transform: rotate(16deg) translateX(0);
  background: linear-gradient(90deg, transparent, rgba(251, 255, 241, 0.28), transparent);
  pointer-events: none;
  transition: transform 620ms var(--motion-smooth);
}

.button:hover {
  transform: translateY(-2px);
}

.button:hover::after {
  transform: rotate(16deg) translateX(520%);
}

.button:focus-visible,
.site-nav a:focus-visible,
.language-switch a:focus-visible,
.brand:focus-visible,
.site-footer a:focus-visible {
  outline: 3px solid rgba(180, 197, 228, 0.62);
  outline-offset: 4px;
}

.button-primary {
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 10px 32px rgba(48, 102, 190, 0.22);
}

.button-primary:hover {
  background: #3f78d1;
  box-shadow: 0 14px 40px rgba(48, 102, 190, 0.32);
}

.button-secondary {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.025);
  color: var(--white);
}

.button-secondary:hover {
  border-color: rgba(180, 197, 228, 0.55);
  background: rgba(48, 102, 190, 0.1);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 32px;
  color: var(--muted);
  font-size: 0.82rem;
}

.hero-meta span {
  display: inline-flex;
  align-items: center;
}

.hero-meta span::before {
  content: "";
  width: 5px;
  height: 5px;
  margin-right: 9px;
  background: var(--blue);
  box-shadow: 0 0 12px rgba(48, 102, 190, 0.72);
}

.hero-visual {
  --visual-panel-width: min(100%, 450px);
  --portrait-shift-x: 0px;
  --portrait-shift-y: 0px;
  --card-shift-x: 0px;
  --card-shift-y: 0px;
  position: relative;
  display: grid;
  gap: 18px;
  align-content: center;
  isolation: isolate;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 12% -10% 5% 14%;
  z-index: -1;
  transform: rotate(-5deg);
  background:
    radial-gradient(circle at 76% 18%, rgba(48, 102, 190, 0.2), transparent 38%),
    linear-gradient(145deg, transparent 18%, rgba(180, 197, 228, 0.055) 50%, transparent 72%);
  filter: blur(18px);
  opacity: 0.72;
  pointer-events: none;
  transition: transform 900ms var(--motion-smooth), opacity 500ms var(--motion-smooth);
}

.interactive-card {
  --glow-x: 50%;
  --glow-y: 50%;
  position: relative;
  isolation: isolate;
}

.interactive-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: 0;
  border-radius: inherit;
  background: radial-gradient(320px circle at var(--glow-x) var(--glow-y), rgba(180, 197, 228, 0.17), transparent 48%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 240ms var(--motion-smooth);
}

.interactive-card > * {
  position: relative;
  z-index: 1;
}

.interactive-card:hover::before,
.interactive-card:focus-within::before {
  opacity: 1;
}

.portrait-frame {
  width: var(--visual-panel-width);
  max-width: none;
  aspect-ratio: 5 / 4;
  margin: 0 0 0 auto;
  overflow: visible;
  border: 1px solid rgba(180, 197, 228, 0.17);
  border-radius: 2px;
  background: var(--surface);
  box-shadow: var(--shadow);
  transform: translate3d(var(--portrait-shift-x), var(--portrait-shift-y), 0);
  transition: transform 500ms var(--motion-smooth), border-color 420ms var(--motion-smooth), box-shadow 500ms var(--motion-smooth);
}

.portrait-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: var(--surface);
}

.portrait-media::before {
  content: "";
  position: absolute;
  inset: -20px;
  z-index: 0;
  background: linear-gradient(rgba(9, 10, 15, 0.36), rgba(9, 10, 15, 0.58)), url("assets/jonatan-menin-profile.jpg") center / cover no-repeat;
  filter: blur(16px) saturate(0.7);
  opacity: 0.78;
  transform: scale(1.08);
}

.portrait-frame::after {
  content: "";
  position: absolute;
  top: -14px;
  right: -14px;
  z-index: 2;
  width: 72px;
  height: 72px;
  border-top: 2px solid var(--blue);
  border-right: 2px solid var(--blue);
  pointer-events: none;
  transition: width 420ms var(--motion-spring), height 420ms var(--motion-spring), border-color 420ms var(--motion-smooth), filter 420ms var(--motion-smooth);
}

.portrait-frame img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: 50% 50%;
  filter: saturate(0.82) contrast(0.98) brightness(0.94) sepia(0.03);
  transition: filter 650ms var(--motion-smooth);
}

.portrait-caption {
  position: absolute !important;
  right: -1px;
  bottom: -1px;
  left: -1px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 16px;
  border-top: 1px solid rgba(180, 197, 228, 0.17);
  background: rgba(25, 26, 36, 0.84);
  color: var(--white);
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  backdrop-filter: blur(12px);
}

.portrait-caption span:last-child {
  color: var(--blue-light);
}

.hero-card {
  position: relative;
  z-index: 3;
  width: var(--visual-panel-width);
  margin-left: auto;
  padding: 31px 36px 34px;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: linear-gradient(145deg, rgba(60, 55, 68, 0.98), rgba(25, 26, 36, 0.98) 62%, rgba(9, 12, 155, 0.36));
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.46), 0 0 42px rgba(48, 102, 190, 0.13);
  color: var(--cream);
  clip-path: polygon(0 0, calc(100% - 46px) 0, 100% 46px, 100% calc(100% - 24px), calc(100% - 24px) 100%, 30px 100%, 0 calc(100% - 30px));
  backdrop-filter: blur(22px) saturate(0.9);
  transform: translate3d(var(--card-shift-x), var(--card-shift-y), 0);
  transition: transform 500ms var(--motion-smooth), box-shadow 500ms var(--motion-smooth);
}

.hero-card::after {
  content: "";
  position: absolute;
  inset: 1px;
  z-index: 2;
  background: linear-gradient(135deg, transparent 0 48%, rgba(180, 197, 228, 0.68) 49% 50%, transparent 51%) top right / 70px 70px no-repeat;
  box-shadow: inset 0 0 0 1px rgba(180, 197, 228, 0.16);
  clip-path: inherit;
  pointer-events: none;
}

.card-kicker {
  margin-bottom: 10px !important;
  color: var(--blue-light) !important;
  font-size: 0.68rem;
  font-weight: 780;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.hero-card h2 {
  margin-bottom: 12px;
  color: var(--cream);
  font-size: clamp(1.45rem, 2.5vw, 2rem);
  line-height: 1.08;
}

.hero-card p {
  margin-bottom: 0;
  color: #c8d2e6;
  font-size: 0.88rem;
  line-height: 1.55;
}

.focus-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 18px;
}

.focus-list span {
  padding: 5px 8px;
  border: 1px solid rgba(180, 197, 228, 0.16);
  background: rgba(180, 197, 228, 0.06);
  color: #d7e1f2;
  font-size: 0.69rem;
  transition: transform 220ms var(--motion-spring), border-color 220ms var(--motion-smooth), background-color 220ms var(--motion-smooth), color 220ms var(--motion-smooth);
}

.section-grid,
.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(52px, 8vw, 104px);
  align-items: start;
}

.section-grid-narrow {
  max-width: 1040px;
}

.section-heading {
  max-width: 790px;
}

.section-heading h2 {
  text-wrap: balance;
}

.section-intro {
  max-width: 680px;
  margin-bottom: 0;
}

#profile::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(48, 102, 190, 0.48), transparent);
}

#profile .section-heading {
  padding-left: 22px;
  border-left: 2px solid var(--blue);
}

.profile-copy {
  padding-top: 24px;
  border-top: 1px solid var(--line-strong);
  font-size: 1.08rem;
}

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

.experience-carousel {
  --card-width: clamp(310px, 37vw, 440px);
  position: relative;
  margin-top: 44px;
  padding-inline: 54px;
}

.carousel-viewport {
  overflow-x: auto;
  overflow-y: visible;
  padding-block: 42px 36px;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, black 13%, black 87%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, black 13%, black 87%, transparent 100%);
}

.carousel-viewport::-webkit-scrollbar {
  display: none;
}

.cards-grid {
  display: flex;
  width: max-content;
  gap: clamp(16px, 2.4vw, 30px);
  margin: 0;
  padding-inline: calc((100% - var(--card-width)) / 2);
}

.service-card {
  --border-angle: 0deg;
  flex: 0 0 var(--card-width);
  min-height: 330px;
  padding: 30px;
  overflow: hidden;
  scroll-snap-align: center;
  scroll-snap-stop: always;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  background: rgba(25, 26, 36, 0.88);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.2);
  filter: blur(2.3px) saturate(0.65);
  opacity: 0.3;
  transform: scale(0.86);
  transition:
    transform 520ms var(--motion-spring),
    filter 420ms var(--motion-smooth),
    opacity 420ms var(--motion-smooth),
    border-color 320ms var(--motion-smooth),
    background-color 320ms var(--motion-smooth),
    box-shadow 420ms var(--motion-smooth);
}

.service-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  padding: 1px;
  border-radius: inherit;
  background: conic-gradient(from var(--border-angle), transparent 0 58%, rgba(48, 102, 190, 0.94) 68%, rgba(180, 197, 228, 0.92) 74%, transparent 84% 100%);
  opacity: 0;
  pointer-events: none;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  transition: opacity 300ms var(--motion-smooth);
}

.service-card.is-near {
  filter: blur(1.2px) saturate(0.82);
  opacity: 0.58;
  transform: scale(0.93);
}

.service-card.is-active {
  border-color: rgba(180, 197, 228, 0.78);
  background: rgba(251, 255, 241, 0.97);
  box-shadow: var(--shadow-active), 0 0 55px rgba(48, 102, 190, 0.2);
  filter: none;
  opacity: 1;
  transform: scale(1);
}

.service-card.is-active::after,
.service-card:hover::after,
.service-card:focus-visible::after {
  opacity: 1;
  animation: borderOrbit 7s linear infinite;
}

.service-card:focus-visible {
  outline: 3px solid rgba(180, 197, 228, 0.74);
  outline-offset: 5px;
}

.service-card h3 {
  max-width: 330px;
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
}

.service-card p {
  max-width: 540px;
  margin-bottom: 0;
  color: var(--muted);
}

.service-card.is-active h3 {
  color: #191a24;
}

.service-card.is-active p {
  color: #3c3744;
}

.service-index {
  display: inline-flex;
  min-width: 46px;
  margin-bottom: 62px;
  padding-bottom: 7px;
  border-bottom: 1px solid rgba(48, 102, 190, 0.66);
  color: var(--blue-light);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
}

.service-card.is-active .service-index {
  color: #090c9b;
}

.carousel-arrow {
  position: absolute;
  top: 45%;
  z-index: 8;
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  padding: 0;
  transform: translateY(-50%);
  border: 1px solid rgba(180, 197, 228, 0.72);
  border-radius: 50%;
  background: rgba(251, 255, 241, 0.94);
  color: #191a24;
  box-shadow: var(--shadow-3, 0 14px 34px rgba(0, 0, 0, 0.28));
  font-size: 1.35rem;
  cursor: pointer;
  backdrop-filter: blur(16px);
  transition: transform 180ms var(--motion-spring), background-color 180ms var(--motion-smooth), box-shadow 180ms var(--motion-smooth);
}

.carousel-arrow:hover {
  transform: translateY(-50%) scale(1.08);
  background: var(--white);
  box-shadow: var(--shadow-4, 0 18px 42px rgba(0, 0, 0, 0.35)), 0 0 28px rgba(48, 102, 190, 0.24);
}

.carousel-arrow:focus-visible {
  outline: 3px solid var(--blue-light);
  outline-offset: 4px;
}

.carousel-arrow-prev {
  left: 0;
}

.carousel-arrow-next {
  right: 0;
}

.carousel-meta {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) auto;
  gap: 24px;
  align-items: center;
  width: min(620px, 100%);
  margin: 0 auto;
}

.carousel-progress {
  height: 2px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.12);
}

.carousel-progress span {
  display: block;
  width: calc(var(--carousel-step, 4) / 7 * 100%);
  height: 100%;
  background: linear-gradient(90deg, var(--blue), var(--white));
  box-shadow: 0 0 18px rgba(48, 102, 190, 0.52);
  transition: width 420ms var(--motion-smooth);
}

.carousel-status {
  display: flex;
  min-width: 260px;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  margin: 0;
  color: var(--muted-strong);
  font-size: 0.76rem;
}

#carousel-position {
  color: var(--blue-light);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  letter-spacing: 0.1em;
}

@keyframes borderOrbit {
  to {
    --border-angle: 360deg;
  }
}

#work-format .section-heading {
  position: sticky;
  top: 112px;
}

.format-panel {
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: rgba(60, 55, 68, 0.56);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(18px);
  transition: transform 260ms var(--motion-spring), border-color 260ms var(--motion-smooth), box-shadow 260ms var(--motion-smooth);
}

.format-panel:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 28px 68px rgba(0, 0, 0, 0.34), 0 0 34px rgba(48, 102, 190, 0.12);
}

.clean-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.clean-list li {
  position: relative;
  min-height: 78px;
  padding: 25px 20px 20px 50px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--muted-strong);
}

.clean-list li:nth-child(even) {
  border-right: 0;
}

.clean-list li::before {
  content: "";
  position: absolute;
  top: 31px;
  left: 22px;
  width: 9px;
  height: 9px;
  border: 1px solid var(--blue);
  background: rgba(48, 102, 190, 0.17);
  box-shadow: 0 0 14px rgba(48, 102, 190, 0.28);
}

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

.audience-grid > div {
  grid-column: span 6;
  display: flex;
  min-height: 122px;
  align-items: flex-end;
  overflow: hidden;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--muted-strong);
  transition: transform 220ms var(--motion-spring), border-color 220ms var(--motion-smooth), background-color 220ms var(--motion-smooth), box-shadow 220ms var(--motion-smooth);
}

.audience-grid > div::after {
  content: "";
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 2;
  width: 28px;
  height: 1px;
  background: linear-gradient(90deg, var(--blue), var(--white));
  opacity: 0.42;
  transition: width 220ms var(--motion-smooth), opacity 220ms var(--motion-smooth);
}

.audience-grid > div:nth-child(1),
.audience-grid > div:nth-child(4),
.audience-grid > div:nth-child(5) {
  grid-column: span 7;
}

.audience-grid > div:nth-child(2),
.audience-grid > div:nth-child(3),
.audience-grid > div:nth-child(6) {
  grid-column: span 5;
}

.audience-grid > div:hover {
  transform: translateY(-3px);
  border-color: rgba(180, 197, 228, 0.4);
  background: rgba(48, 102, 190, 0.09);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.24), 0 0 28px rgba(48, 102, 190, 0.12);
}

.audience-grid > div:hover::after {
  width: 54px;
  opacity: 1;
}

.contact-section {
  padding-top: 76px;
}

.contact-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 34px;
  overflow: hidden;
  padding: 42px;
  border: 1px solid rgba(180, 197, 228, 0.42);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(9, 12, 155, 0.74), rgba(25, 26, 36, 0.98) 58%, rgba(60, 55, 68, 0.98));
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.4), 0 0 50px rgba(48, 102, 190, 0.14);
}

.contact-card::after {
  content: "";
  position: absolute;
  top: -64px;
  right: 16%;
  z-index: 0;
  width: 1px;
  height: 250px;
  transform: rotate(24deg);
  background: rgba(255, 255, 255, 0.18);
  box-shadow: 48px 0 0 rgba(255, 255, 255, 0.06);
}

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

.contact-card h2 {
  margin-bottom: 10px;
}

.contact-card p {
  max-width: 720px;
  margin-bottom: 0;
  color: #d7e1f2;
}

.contact-card .button-secondary {
  flex: 0 0 auto;
  border-color: rgba(255, 255, 255, 0.46);
  background: rgba(255, 255, 255, 0.08);
}

.contact-secondary {
  margin-top: 10px !important;
  font-size: 0.87rem;
}

.contact-secondary a {
  color: var(--cream);
  text-decoration-color: rgba(180, 197, 228, 0.48);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  transition: color 180ms var(--motion-smooth), text-decoration-color 180ms var(--motion-smooth);
}

.contact-secondary a:hover {
  color: var(--blue-light);
  text-decoration-color: var(--blue);
}

.site-footer {
  position: relative;
  z-index: 10;
  padding: 24px 0;
  border-top: 1px solid rgba(180, 197, 228, 0.18);
  background: rgba(9, 10, 15, 0.97);
  box-shadow: 0 -18px 52px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(180, 197, 228, 0.04);
  color: var(--muted-strong);
  backdrop-filter: blur(22px) saturate(0.94);
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0;
  padding-right: 64px;
  color: var(--muted-strong);
  font-size: 0.74rem;
}

.footer-content p,
.footer-content small {
  margin: 0;
}

.footer-identity {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: clamp(18px, 3vw, 40px);
}

.footer-primary {
  display: grid;
  flex: 0 0 auto;
  gap: 2px;
  line-height: 1.25;
}

.footer-name {
  color: var(--cream);
  font-size: 0.92rem;
  font-weight: 780;
  letter-spacing: -0.025em;
}

.footer-location {
  color: #929bb0;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0;
}

.footer-tax {
  flex: 0 0 auto;
  color: #a8b5cc;
  font-size: 0.68rem;
}

.footer-tax span {
  margin-right: 7px;
  color: var(--blue-light);
  font-size: 0.63rem;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.footer-actions {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: space-between;
  gap: clamp(14px, 2vw, 28px);
  margin-left: clamp(12px, 1.5vw, 18px);
  padding-left: clamp(14px, 1.8vw, 22px);
  border-left: 1px solid rgba(180, 197, 228, 0.16);
  white-space: nowrap;
}

.professional-links {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.2vw, 16px);
}

.professional-links a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #a8b5cc;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.professional-links a::after {
  content: "↗";
  color: var(--blue-light);
  font-size: 0.66rem;
  transition: transform 180ms var(--motion-spring), color 180ms var(--motion-smooth);
}

.professional-links a:hover::after {
  transform: translate(2px, -2px);
  color: var(--cream);
}

.footer-actions > p {
  color: #929bb0;
  font-size: 0.67rem;
}

.floating-top {
  position: fixed;
  right: max(20px, calc((100vw - var(--max-width)) / 2 - 66px));
  bottom: 22px;
  z-index: 80;
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
  border: 1px solid rgba(180, 197, 228, 0.3);
  border-radius: 50%;
  background: rgba(25, 26, 36, 0.92);
  color: var(--cream);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.4), 0 0 0 0 rgba(48, 102, 190, 0.28);
  font-size: 1.15rem;
  text-decoration: none;
  opacity: 0;
  transform: translateY(14px) scale(0.92);
  visibility: hidden;
  backdrop-filter: blur(16px);
  transition: opacity 220ms var(--motion-smooth), transform 260ms var(--motion-spring), box-shadow 260ms var(--motion-smooth), background-color 260ms var(--motion-smooth), visibility 220ms;
}

.floating-top.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  visibility: visible;
}

.floating-top:hover {
  transform: translateY(-5px) scale(1.06);
  background: #3066be;
  color: var(--white);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.46), 0 0 0 8px rgba(48, 102, 190, 0.12), 0 0 34px rgba(48, 102, 190, 0.32);
}

.floating-top:focus-visible {
  outline: 3px solid var(--blue-light);
  outline-offset: 4px;
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  filter: blur(9px);
  transition: opacity 680ms ease, transform 720ms cubic-bezier(0.22, 1, 0.36, 1), filter 680ms var(--motion-smooth);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
  filter: none;
}

@media (hover: hover) and (pointer: fine) {
  .brand:hover .brand-mark {
    border-color: rgba(180, 197, 228, 0.42);
    box-shadow: 0 0 24px rgba(48, 102, 190, 0.2);
  }

  .hero-visual:hover::before {
    transform: rotate(-2deg) scale(1.035);
    opacity: 1;
  }

  .hero-visual:hover .portrait-frame {
    border-color: rgba(180, 197, 228, 0.34);
    box-shadow: 0 32px 82px rgba(0, 0, 0, 0.5), 0 0 42px rgba(48, 102, 190, 0.12);
  }

  .hero-visual:hover .portrait-frame::after {
    width: 86px;
    height: 86px;
    border-color: var(--blue-light);
    filter: drop-shadow(0 0 10px rgba(48, 102, 190, 0.42));
  }

  .hero-visual:hover .portrait-frame img {
    filter: saturate(0.9) contrast(1) brightness(0.97) sepia(0.02);
  }

  .hero-visual:hover .hero-card {
    box-shadow: 0 34px 82px rgba(0, 0, 0, 0.5), 0 0 52px rgba(48, 102, 190, 0.17);
  }

  .focus-list span:hover {
    transform: translateY(-2px);
    border-color: rgba(180, 197, 228, 0.38);
    background: rgba(48, 102, 190, 0.14);
    color: var(--cream);
  }
}

@media (max-width: 1020px) {
  .site-nav {
    gap: 18px;
  }

  .header-actions {
    gap: 16px;
  }

  .language-switch {
    gap: 5px;
    padding: 5px 8px;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(350px, 0.82fr);
    gap: 44px;
  }

  .hero-name {
    font-size: clamp(4.2rem, 9.6vw, 6.8rem);
  }

  .hero-visual {
    min-height: 0;
    padding-left: 0;
  }

  .footer-content {
    flex-wrap: wrap;
  }

  .footer-actions {
    width: 100%;
    justify-content: space-between;
    margin-left: 0;
    padding: 12px 0 0;
    border-top: 1px solid rgba(180, 197, 228, 0.14);
    border-left: 0;
  }
}

@media (max-width: 860px) {
  html {
    scroll-padding-top: 78px;
  }

  .site-nav {
    gap: 15px;
  }

  .site-nav a {
    font-size: 0.83rem;
  }

  .brand-copy {
    display: grid;
    gap: 1px;
    white-space: normal;
  }

  .brand-divider {
    display: none;
  }

  .brand-copy small {
    max-width: 255px;
    line-height: 1.2;
  }

  .hero {
    min-height: auto;
    padding-top: 92px;
  }

  .hero-grid,
  .section-grid,
  .split-layout {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    gap: 60px;
  }

  .hero-copy {
    max-width: 690px;
  }

  .hero-name {
    font-size: clamp(5.2rem, 17vw, 8rem);
  }

  .hero-visual {
    --visual-panel-width: 100%;
    width: min(100%, 650px);
    min-height: 0;
    margin-inline: auto;
    padding-left: 0;
  }

  .portrait-frame {
    max-width: 100%;
  }

  .hero-card {
    width: 100%;
  }

  .section-grid,
  .split-layout {
    gap: 44px;
  }

  #work-format .section-heading {
    position: static;
  }

  .experience-carousel {
    --card-width: min(58vw, 420px);
  }
}

@media (max-width: 680px) {
  html {
    scroll-padding-top: 116px;
  }

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

  .section {
    padding: 74px 0;
  }

  .nav-wrap {
    min-height: 104px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 10px;
    padding-block: 11px;
  }

  .header-actions {
    display: grid;
    width: 100%;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
  }

  .site-nav {
    width: auto;
    gap: 18px;
    overflow-x: auto;
    padding: 0 0 4px;
    scrollbar-width: none;
  }

  .language-switch {
    align-self: start;
    margin-top: 1px;
    padding: 5px 8px;
    font-size: 0.62rem;
  }

  .site-nav::-webkit-scrollbar {
    display: none;
  }

  .site-nav a {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .site-nav a::after {
    bottom: -4px;
  }

  .hero {
    padding: 68px 0 76px;
  }

  .hero::before {
    top: 11%;
    right: -0.12em;
    font-size: 76vw;
  }

  .hero-copy::before {
    left: -15px;
  }

  .hero-name {
    font-size: clamp(4.3rem, 22vw, 7.2rem);
  }

  .hero-role {
    margin-top: 24px;
    font-size: 0.82rem;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .button {
    min-height: 52px;
    padding-inline: 14px;
    text-align: center;
  }

  .hero-meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
    font-size: 0.72rem;
    line-height: 1.35;
  }

  .hero-meta span {
    align-items: flex-start;
  }

  .hero-meta span::before {
    flex: 0 0 auto;
    margin-top: 5px;
  }

  .hero-grid {
    gap: 48px;
  }

  .hero-visual {
    min-height: 0;
    padding: 0;
  }

  .portrait-frame {
    max-width: 100%;
    aspect-ratio: 1 / 1;
  }

  .portrait-frame::after {
    top: -9px;
    right: -9px;
    width: 52px;
    height: 52px;
  }

  .portrait-caption {
    padding: 12px;
    font-size: 0.62rem;
  }

  .hero-card {
    position: relative;
    bottom: auto;
    left: auto;
    width: 100%;
    margin: 0;
    padding: 27px 28px 30px;
    clip-path: polygon(0 0, calc(100% - 34px) 0, 100% 34px, 100% calc(100% - 18px), calc(100% - 18px) 100%, 22px 100%, 0 calc(100% - 22px));
  }

  .hero-card h2 {
    font-size: 1.45rem;
  }

  h2 {
    font-size: clamp(2.05rem, 10.5vw, 3.1rem);
  }

  .profile-copy {
    padding-top: 20px;
  }

  .experience-carousel {
    --card-width: min(78vw, 350px);
    margin-top: 32px;
    padding-inline: 36px;
  }

  .carousel-viewport {
    padding-block: 32px 28px;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, black 7%, black 93%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, black 7%, black 93%, transparent 100%);
  }

  .cards-grid {
    gap: 14px;
  }

  .service-card {
    min-height: 310px;
    padding: 24px;
  }

  .service-index {
    margin-bottom: 48px;
  }

  .carousel-arrow {
    width: 44px;
    height: 44px;
    font-size: 1.1rem;
  }

  .carousel-meta {
    grid-template-columns: 1fr;
    gap: 13px;
  }

  .carousel-status {
    min-width: 0;
    justify-content: center;
    text-align: center;
  }

  .clean-list li {
    min-height: 82px;
    padding: 24px 16px 18px 44px;
    font-size: 0.9rem;
  }

  .clean-list li::before {
    left: 18px;
  }

  .audience-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .audience-grid > div,
  .audience-grid > div:nth-child(1),
  .audience-grid > div:nth-child(2),
  .audience-grid > div:nth-child(3),
  .audience-grid > div:nth-child(4),
  .audience-grid > div:nth-child(5),
  .audience-grid > div:nth-child(6) {
    grid-column: auto;
    min-height: 138px;
    padding: 14px;
    font-size: 0.82rem;
    line-height: 1.45;
  }

  .contact-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 27px;
  }

  .contact-card .button {
    width: 100%;
  }

  .footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 13px;
    padding-right: 58px;
  }

  .footer-identity {
    display: grid;
    grid-template-columns: auto auto;
    align-content: center;
    justify-content: start;
    gap: 5px 14px;
  }

  .footer-primary {
    grid-column: 1 / -1;
  }

  .footer-tax,
  .footer-location {
    font-size: 0.59rem;
  }

  .footer-name {
    font-size: 0.78rem;
  }

  .footer-actions {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 14px;
    padding: 10px 0 0;
    border-top: 1px solid rgba(180, 197, 228, 0.14);
    border-left: 0;
  }

  .footer-actions > p {
    max-width: none;
    font-size: 0.58rem;
    line-height: 1.25;
    text-align: left;
    white-space: normal;
  }

  .professional-links {
    width: 100%;
    flex-wrap: wrap;
  }

  .floating-top {
    right: 15px;
    bottom: 15px;
    width: 46px;
    height: 46px;
  }
}

@media (max-width: 540px) {
  .experience-carousel {
    --card-width: min(80vw, 320px);
  }

  .clean-list {
    grid-template-columns: 1fr;
  }

  .clean-list li,
  .clean-list li:nth-child(even) {
    border-right: 0;
  }
}

@media (max-width: 410px) {
  .hero-name {
    font-size: clamp(3.9rem, 21vw, 5.4rem);
  }

  .hero-actions {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 0;
    padding-left: 0;
  }

  .portrait-caption {
    gap: 8px;
  }

  .hero-card {
    width: 100%;
    margin-left: 0;
  }

  .focus-list span {
    font-size: 0.64rem;
  }

  .experience-carousel {
    --card-width: min(72vw, 280px);
    padding-inline: 30px;
  }

  .footer-identity {
    gap: 4px 9px;
  }

  .footer-actions {
    padding-left: 0;
  }
}

@media (hover: none) {
  .interactive-card::before {
    opacity: 0.42;
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .site-header::after {
    display: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
    filter: none;
  }
}
