:root {
  --bg: #101012;
  --bg-soft: #151518;
  --panel: #1d1d21;
  --panel-strong: #24242a;
  --text: #f5f2ec;
  --muted: #aaa6a0;
  --line: rgba(255, 255, 255, 0.12);
  --blue: #a8c7df;
  --blue-strong: #7eaed0;
  --paper: #f5f2ec;
  --ink: #121214;
  --radius-xl: 34px;
  --radius-lg: 26px;
  --radius-md: 18px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.36);
  --max-width: 1180px;
  --principles-arc: url("https://hajnzhpmyfqmldjuhoyt.supabase.co/storage/v1/object/public/tadeasz/principles-arc-v3-blue.png");
  --principles-cubes: url("https://hajnzhpmyfqmldjuhoyt.supabase.co/storage/v1/object/public/tadeasz/principles-cubes-v2-blue.png");
  --principles-starburst: url("https://hajnzhpmyfqmldjuhoyt.supabase.co/storage/v1/object/public/tadeasz/principles-starburst-v2-blue.png");
  --principles-streaks: url("https://hajnzhpmyfqmldjuhoyt.supabase.co/storage/v1/object/public/tadeasz/principles-streaks-v2-blue.png");
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 20% 0%, rgba(168, 199, 223, 0.12), transparent 28rem),
    var(--bg);
  font-family: "Geist", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

body.jump-lock,
body.projects-lock {
  overflow: hidden;
}

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

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

button,
input,
textarea {
  font: inherit;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 100;
  padding: 0.7rem 1rem;
  color: var(--ink);
  background: var(--paper);
  border-radius: 999px;
  transform: translateY(-140%);
  transition: transform 180ms ease;
}

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

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

/* Hlavni navigace */
.site-header {
  position: fixed;
  inset: 18px 0 auto;
  z-index: 50;
  display: flex;
  justify-content: center;
  padding: 0 16px;
  pointer-events: none;
  transition: opacity 220ms ease, transform 220ms ease;
}

body.profile-active .site-header,
body.studium-active .site-header,
body.principles-active .site-header,
body.contact-active .site-header,
body:has(#studium:target) .site-header,
body:has(#proces:target) .site-header {
  opacity: 1;
  transform: none;
}

.nav-shell {
  position: relative;
  width: auto;
  max-width: calc(100vw - 32px);
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(0.55rem, 1.4vw, 0.95rem);
  padding: 0.36rem 0.4rem 0.36rem 0.82rem;
  color: var(--text);
  background: #0d0d0f;
  border: 1px solid rgba(230, 230, 230, 0.12);
  border-radius: 13px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.46);
  pointer-events: auto;
}

.nav-shell::before,
.nav-shell::after {
  display: none;
}

.brand,
.mobile-brand,
.site-menu a,
.nav-icon,
.nav-toggle {
  min-height: 36px;
  border-radius: 8px;
}

.brand,
.mobile-brand {
  display: grid;
  align-items: center;
  place-items: center;
  width: 36px;
  padding: 0;
  background: transparent;
}

.mobile-brand {
  display: none;
}

.brand-mark {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  background: transparent;
  border-radius: 0;
}

.brand-mark img {
  width: 27px;
  height: 27px;
  object-fit: contain;
  filter: invert(1);
}

.site-menu {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: clamp(0.35rem, 0.95vw, 0.8rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-menu a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 clamp(0.28rem, 0.85vw, 0.5rem);
  color: #e6e6e6;
  font-size: clamp(0.82rem, 0.92vw, 0.95rem);
  font-weight: 500;
  letter-spacing: 0;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.14);
  transition: color 180ms ease, opacity 180ms ease, transform 180ms ease;
}

.site-menu a:hover,
.site-menu a:focus-visible,
.site-menu a.is-active {
  color: #ffffff;
  background: transparent;
  opacity: 0.78;
  transform: translateY(-1px);
}

.site-menu a.is-active::before {
  content: none;
  display: none;
}

.nav-social {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding-left: 0.42rem;
  border-left: 1px solid rgba(230, 230, 230, 0.16);
}

.nav-icon {
  width: 36px;
  display: grid;
  place-items: center;
  color: #e6e6e6;
  background: #0c1324;
  border: 1px solid rgba(230, 230, 230, 0.14);
  box-shadow: inset 0 1px 0 rgba(230, 230, 230, 0.08);
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.nav-icon:hover,
.nav-icon:focus-visible {
  transform: translateY(-2px);
  background: #2a2d31;
  border-color: rgba(230, 230, 230, 0.28);
}

.nav-icon svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

.nav-toggle {
  display: none;
  width: 36px;
  padding: 0;
  color: #e6e6e6;
  background: #111827;
  border: 1px solid rgba(230, 230, 230, 0.16);
  box-shadow: inset 0 1px 0 rgba(230, 230, 230, 0.08);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 3px;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, color 180ms ease;
}

.nav-toggle:hover,
.nav-toggle:focus-visible {
  transform: translateY(-2px);
  background: #262b34;
  border-color: rgba(230, 230, 230, 0.28);
}

.nav-toggle-line {
  width: 16px;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
  transition: transform 180ms ease, opacity 180ms ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(1) {
  transform: translateY(5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(3) {
  transform: translateY(-5px) rotate(-45deg);
}

.nav-toggle[aria-expanded="true"] {
  color: #f7f8ff;
  background: rgba(120, 161, 255, 0.18);
  border-color: rgba(120, 161, 255, 0.48);
}

/* Hero fallback */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  background:
    linear-gradient(90deg, rgba(5, 7, 10, 0.82), rgba(5, 7, 10, 0.34) 48%, rgba(5, 7, 10, 0.58)),
    #06070b url("https://hajnzhpmyfqmldjuhoyt.supabase.co/storage/v1/object/public/tadeasz/hero_bg_refrence.png") center / cover no-repeat;
}

.hero-video,
.hero-scrim {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-video {
  object-fit: cover;
  z-index: -3;
  transition: opacity 420ms ease;
}

.hero-video-jump {
  opacity: 0;
  z-index: -2;
}

.hero.is-jumping .hero-video-main {
  opacity: 0;
}

.hero.is-jumping .hero-video-jump {
  opacity: 1;
}

.hero-scrim {
  z-index: -1;
  background:
    radial-gradient(circle at 18% 52%, rgba(10, 13, 18, 0.34), transparent 30rem),
    linear-gradient(0deg, rgba(8, 11, 16, 0.38) 0%, rgba(8, 11, 16, 0.08) 48%);
}

.hero-content {
  width: min(650px, calc(100% - 40px));
  margin-left: max(20px, calc((100vw - var(--max-width)) / 2));
  padding-top: 5rem;
  color: var(--paper);
  text-shadow: 0 3px 24px rgba(0, 0, 0, 0.58);
}

.eyebrow,
.section-kicker,
.contact-kicker {
  margin: 0 0 clamp(1.5rem, 2.2vw, 2.35rem);
  color: rgba(236, 240, 249, 0.72);
  font-size: clamp(1rem, 1.2vw, 1.16rem);
  font-weight: 500;
  letter-spacing: 0.2em;
  line-height: 1;
  text-transform: none;
}

.eyebrow span,
.section-kicker span,
.contact-kicker span {
  color: var(--blue-strong);
}

.hero h1,
.section h2 {
  margin: 0;
  letter-spacing: 0;
  line-height: 0.98;
}

.hero h1 {
  max-width: 13.5ch;
  font-size: clamp(3.2rem, 5.2vw, 5.55rem);
  font-weight: 900;
  text-wrap: balance;
}

.hero-text {
  max-width: 27rem;
  margin: 1rem 0 0;
  color: rgba(245, 242, 236, 0.86);
  font-size: clamp(1rem, 1.28vw, 1.12rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.7rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 1.1rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 780;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

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

.button-dark {
  color: var(--paper);
  background: var(--ink);
}

.button-light {
  color: var(--ink);
  background: var(--paper);
}

.hero .button-light {
  color: var(--paper);
  background: #2c2e34;
  border-color: #5b5e66;
}

.section {
  padding: clamp(5rem, 11vw, 8rem) 20px;
  background: var(--bg);
  scroll-margin-top: 0;
}

.section:nth-of-type(odd):not(.hero) {
  background: var(--bg-soft);
}

#projekty {
  position: relative;
  min-height: 100svh;
  padding: 0;
  overflow: hidden;
  isolation: isolate;
  background: #010103;
}

#projekty::before,
#projekty::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

#projekty::before {
  z-index: 0;
  background: #010103;
}

#projekty::after {
  z-index: 0;
  background: linear-gradient(180deg, rgba(1, 1, 3, 0.1) 0%, rgba(1, 1, 3, 0) 38%, rgba(1, 1, 3, 0.16) 100%);
}

/* Sekce */
.section-shell {
  width: min(var(--max-width), 100%);
  margin: 0 auto;
  padding: clamp(1.25rem, 3vw, 2rem);
  background: #18191d;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.section h2 {
  color: var(--text);
  font-size: clamp(3rem, 8vw, 7.2rem);
}

.section p {
  color: var(--muted);
}

.lead {
  color: var(--text) !important;
  font-size: clamp(1.25rem, 2vw, 1.85rem);
  line-height: 1.28;
}

.section-profile,
.section-contact {
  position: relative;
  overflow: hidden;
}

.section-profile {
  min-height: 100svh;
  padding: 0;
  isolation: isolate;
  background: #010101;
}

.section-profile::before,
.section-profile::after {
  display: none;
}

.profile-layout {
  position: relative;
  z-index: 2;
  width: min(1792px, 100%);
  min-height: 100svh;
  margin: 0 auto;
  padding: clamp(4.4rem, 7.4vh, 5.6rem) clamp(1.5rem, 6.9vw, 7.5rem) clamp(5.4rem, 12vh, 7.8rem);
}

.section .contact-signature {
  position: absolute;
  z-index: 0;
  margin: 0;
  color: rgba(245, 242, 236, 0.026);
  font-size: clamp(6rem, 17vw, 15.5rem);
  font-weight: 800;
  line-height: 0.8;
  letter-spacing: 0;
  pointer-events: none;
  user-select: none;
}

.section .profile-name {
  position: absolute;
  z-index: 1;
  left: clamp(17rem, 37vw, 42rem);
  top: clamp(2.7rem, 6.5vw, 4.3rem);
  margin: 0;
  color: rgba(255, 255, 255, 0.045);
  font-size: clamp(7.5rem, 13vw, 15.4rem);
  font-weight: 900;
  line-height: 0.8;
  letter-spacing: 0;
  pointer-events: none;
  user-select: none;
}

.profile-copy {
  position: relative;
  z-index: 3;
  width: min(100%, 505px);
}

.section-profile .section-kicker {
  margin: 0 0 clamp(1.8rem, 4.1vh, 2.7rem);
}

.profile-copy h2 {
  max-width: 9ch;
  color: #ffffff;
  font-size: clamp(3.9rem, 5.25vw, 5.35rem);
  font-weight: 900;
  line-height: 0.96;
  text-shadow: 0 16px 48px rgba(0, 0, 0, 0.44);
}

.profile-text {
  max-width: 435px;
  margin-top: clamp(1.55rem, 3.8vh, 2rem);
}

.profile-text p {
  margin: 0;
  color: rgba(247, 245, 240, 0.76);
  font-size: clamp(0.98rem, 1vw, 1.08rem);
  font-weight: 400;
  line-height: 1.46;
  text-wrap: pretty;
}

.profile-text p + p {
  margin-top: clamp(1rem, 2.6vh, 1.55rem);
}

.profile-ai-line {
  min-height: 4.35em;
}

.profile-ai-line.is-generating {
  color: rgba(247, 245, 240, 0.48);
  font-family: "Geist", ui-sans-serif, system-ui, sans-serif;
  letter-spacing: 0;
}

.profile-ai-line.is-generated {
  animation: profile-generated-in 520ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.generating-dots {
  display: inline-block;
  min-width: 1.2em;
  animation: generating-pulse 820ms ease-in-out infinite;
}

.profile-link,
.profile-meta a {
  display: inline-flex;
  align-items: center;
  color: #f7f5f0;
}

.profile-link {
  gap: 1.35rem;
  margin-top: clamp(1.75rem, 4.5vh, 2.55rem);
  font-size: clamp(1rem, 1.05vw, 1.16rem);
  font-weight: 430;
}

.profile-link svg,
.profile-meta svg {
  width: 1.42rem;
  height: 1.42rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.45;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 180ms ease;
}

.profile-link:hover svg,
.profile-link:focus-visible svg,
.profile-meta a:hover svg,
.profile-meta a:focus-visible svg {
  transform: translateX(4px);
}

.profile-visual {
  position: absolute;
  z-index: 2;
  right: clamp(5.5rem, 16.2vw, 18.4rem);
  bottom: clamp(4.4rem, 9vh, 6.2rem);
  width: min(27vw, 390px);
  aspect-ratio: 9 / 16;
  overflow: hidden;
  border-radius: 0;
  background: #0d0f14;
  box-shadow: none;
  -webkit-mask-image: none;
  mask-image: none;
}

.profile-visual::before,
.profile-visual::after {
  display: none;
}

.profile-visual video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  filter: none;
}

.profile-meta {
  position: absolute;
  z-index: 4;
  left: clamp(1.5rem, 6.9vw, 7.5rem);
  bottom: clamp(4.2rem, 7.5vh, 5.5rem);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0;
  color: rgba(247, 245, 240, 0.92);
  font-size: clamp(0.98rem, 1.05vw, 1.16rem);
  line-height: 1;
}

.profile-meta > span,
.profile-meta > a {
  min-height: 1.35rem;
  padding: 0 clamp(1.25rem, 1.6vw, 1.72rem);
  border-left: 0;
}

.profile-meta > span:first-child {
  padding-left: 0;
  border-left: 0;
}

.profile-meta a {
  gap: 1.15rem;
  font-weight: 430;
}

.profile-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: center;
}

.section-copy p:not(.section-kicker) {
  max-width: 42rem;
}

.media-stack {
  position: relative;
  min-height: 580px;
}

.media-frame {
  margin: 0;
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.media-frame img,
.media-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-frame-large {
  height: 520px;
}

.media-frame-small {
  position: absolute;
  right: 24px;
  bottom: 68px;
  width: min(42%, 260px);
  aspect-ratio: 4 / 3;
  border: 8px solid rgba(16, 16, 18, 0.94);
}

.info-chips {
  position: absolute;
  left: 24px;
  bottom: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  width: calc(100% - 48px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.info-chips li {
  padding: 0.55rem 0.75rem;
  color: var(--text);
  background: #16171b;
  border: 1px solid #343740;
  border-radius: 999px;
}

.split-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.6fr);
  gap: 2rem;
  align-items: end;
}

.section-heading > p:last-child {
  max-width: 42rem;
  margin-bottom: 0;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin: clamp(2rem, 5vw, 4rem) 0 1px;
  padding: 0;
  overflow: hidden;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.timeline li {
  padding: 1.3rem;
  background: #202126;
}

.timeline span,
.skill-number {
  color: var(--blue);
  font-weight: 820;
}

.timeline strong,
.skill-card h3,
.project-card h3 {
  display: block;
  margin: 0.25rem 0 0.5rem;
  color: var(--text);
  font-size: 1.35rem;
  line-height: 1.1;
}

.timeline p {
  margin: 0;
}

.skill-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.skill-card {
  padding: 1.3rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.skill-card:hover {
  transform: translateY(-4px);
  background: var(--panel-strong);
  border-color: rgba(168, 199, 223, 0.34);
}

.skill-card ul {
  margin: 1.2rem 0 0;
  padding: 0;
  color: var(--muted);
  list-style: none;
}

.skill-card li + li {
  margin-top: 0.55rem;
}

.skill-card li::before {
  content: "";
  display: inline-block;
  width: 0.48rem;
  height: 0.48rem;
  margin-right: 0.55rem;
  background: var(--blue);
  border-radius: 50%;
}

.studium-section {
  position: relative;
  min-height: 100svh;
  padding: 0;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(ellipse at 2% 100%, rgba(71, 145, 255, 0.9) 0%, rgba(44, 108, 215, 0.34) 11%, rgba(4, 10, 20, 0) 28%),
    radial-gradient(ellipse at 61% 43%, rgba(52, 106, 183, 0.16) 0%, rgba(2, 7, 14, 0) 42%),
    #02070e;
}

.studium-section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  opacity: 0.38;
  background-image:
    linear-gradient(rgba(91, 142, 211, 0.13) 1px, transparent 1px),
    linear-gradient(90deg, rgba(91, 142, 211, 0.13) 1px, transparent 1px);
  background-position: 28.5vw 5.2vh;
  background-size: 55px 55px;
  mask-image: linear-gradient(90deg, transparent 0, black 27%, black 100%);
}

.studium-section::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.68) 0 22%, rgba(0, 0, 0, 0.2) 48%, rgba(0, 0, 0, 0.42) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.24), transparent 24%, rgba(0, 0, 0, 0.24));
  pointer-events: none;
}

.studium-layout {
  position: relative;
  width: min(1792px, 100%);
  min-height: 100svh;
  margin: 0 auto;
  padding: 150px clamp(64px, 6.45vw, 112px) 70px;
}

.studium-intro {
  position: relative;
  z-index: 3;
  width: min(33%, 570px);
  min-width: 390px;
  padding-top: 0;
}

.studium-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  margin: 0 0 1.55rem;
  color: rgba(245, 247, 255, 0.62);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  line-height: 1;
  text-transform: uppercase;
}

.studium-kicker span {
  width: 0.44rem;
  height: 0.44rem;
  background: #2f78ff;
  border-radius: 50%;
  box-shadow: 0 0 18px rgba(47, 120, 255, 0.8);
}

.studium-intro h2 {
  max-width: 560px;
  color: #f8f8f8;
  font-size: clamp(4.7rem, 5.58vw, 5.95rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: 0;
  text-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
}

.studium-copy {
  width: min(100%, 340px);
  margin-top: clamp(2.1rem, 4.3vh, 2.9rem);
}

.studium-copy p {
  margin: 0;
  color: rgba(232, 235, 242, 0.78);
  font-size: 1.05rem;
  font-weight: 430;
  line-height: 1.48;
}

.studium-copy p + p {
  margin-top: 1.45rem;
}

.studium-contact {
  position: absolute;
  left: -33px;
  top: calc(100svh - 150px);
  display: grid;
  grid-template-columns: 3px auto 18px;
  grid-template-rows: auto auto;
  column-gap: 29px;
  align-items: center;
  min-height: 54px;
  color: #f8f8f8;
}

.studium-contact::before {
  content: "";
  grid-row: 1 / 3;
  align-self: stretch;
  width: 3px;
  background: #2f78ff;
  border-radius: 999px;
  box-shadow: 0 0 18px rgba(47, 120, 255, 0.75);
}

.studium-contact span {
  grid-column: 2 / 4;
  color: rgba(232, 235, 242, 0.62);
  font-size: 0.73rem;
  font-weight: 850;
  letter-spacing: 0.03em;
  line-height: 1.2;
  text-transform: uppercase;
}

.studium-contact strong {
  grid-column: 2;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 760;
  line-height: 1;
}

.studium-contact svg {
  grid-column: 3;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: #2f78ff;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 180ms ease;
}

.studium-contact:hover svg,
.studium-contact:focus-visible svg {
  transform: translate(3px, -3px);
}

.studium-portrait {
  position: absolute;
  z-index: 2;
  left: clamp(700px, 45.2vw, 810px);
  bottom: clamp(300px, 33.1vh, 342px);
  width: clamp(156px, 10.6vw, 190px);
  height: clamp(240px, 26.8vw, 305px);
  overflow: hidden;
  pointer-events: none;
  background: none;
  filter: none;
}

.education-panel {
  position: absolute;
  z-index: 4;
  top: 92px;
  left: max(500px, 30.8%);
  right: clamp(46px, 5.2vw, 98px);
  bottom: 74px;
  width: auto;
  color: #f8f8f8;
}

.education-kicker {
  margin: 0 0 1.8rem 154px;
}

.education-timeline {
  position: relative;
  display: block;
  gap: 0;
  height: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

.education-timeline::before {
  display: none;
}

.education-item {
  --step-left: 0px;
  --step-top: 0px;
  --step-width: 180px;
  --step-down: 132px;
  position: absolute;
  left: var(--step-left);
  top: var(--step-top);
  width: min(470px, 35vw);
  display: grid;
  grid-template-columns: 138px 42px minmax(0, 1fr);
  align-items: start;
  min-height: 118px;
}

.education-item:nth-child(1) {
  --step-left: 620px;
  --step-top: 0px;
  --step-width: 0px;
  --step-down: 198px;
  width: min(520px, 39vw);
}

.education-item:nth-child(2) {
  --step-left: 500px;
  --step-top: 198px;
  --step-width: 120px;
  --step-down: 164px;
}

.education-item:nth-child(3) {
  --step-left: 380px;
  --step-top: 362px;
  --step-width: 120px;
  --step-down: 136px;
}

.education-item:nth-child(4) {
  --step-left: 260px;
  --step-top: 498px;
  --step-width: 120px;
  --step-down: 146px;
}

.education-item:nth-child(5) {
  --step-left: 140px;
  --step-top: 644px;
  --step-width: 0px;
  --step-down: 0px;
  width: min(580px, 42vw);
}

.education-year {
  color: #6da8ff;
  font-family: "Geist", ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(3.25rem, 3.45vw, 4.15rem);
  font-weight: 850;
  line-height: 0.96;
  letter-spacing: 0;
  text-shadow: 0 0 20px rgba(89, 149, 239, 0.38);
}

.education-dot {
  position: relative;
  z-index: 2;
  width: 15px;
  height: 15px;
  margin: 8px auto 0;
  background: #050910;
  border: 2px solid rgba(255, 255, 255, 0.92);
  border-radius: 50%;
  box-shadow:
    0 0 0 2px rgba(4, 8, 15, 0.92),
    0 0 18px rgba(145, 188, 255, 0.62);
}

.education-dot::before,
.education-dot::after {
  content: "";
  position: absolute;
  background: rgba(118, 152, 206, 0.44);
  pointer-events: none;
}

.education-dot::before {
  top: -1px;
  left: 7px;
  width: var(--step-width);
  height: 1px;
  box-shadow: 0 0 14px rgba(111, 170, 255, 0.48);
}

.education-dot::after {
  top: 7px;
  left: 50%;
  width: 1px;
  height: calc(var(--step-down) - 8px);
  transform: translateX(-50%);
  box-shadow: 0 0 14px rgba(111, 170, 255, 0.48);
}

.education-item:last-child .education-dot::before,
.education-item:last-child .education-dot::after {
  display: none;
}

.education-item:first-child .education-dot::before {
  width: 0;
}

.education-content {
  padding-top: 1px;
}

.education-content h3 {
  margin: 0 0 0.55rem;
  color: #ffffff;
  font-family: "Geist", ui-sans-serif, system-ui, sans-serif;
  font-size: 1.3rem;
  font-weight: 800;
  line-height: 1.15;
}

.education-content p {
  max-width: 365px;
  margin: 0;
  color: rgba(229, 232, 240, 0.68);
  font-size: 0.96rem;
  font-weight: 420;
  line-height: 1.48;
}

.fit-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  width: 78px;
  height: 78px;
  padding: 13px 12px;
  color: #83baff;
  background: rgba(17, 29, 52, 0.55);
  border: 1px solid rgba(139, 174, 228, 0.52);
  border-radius: 8px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 24px 54px rgba(0, 0, 0, 0.25);
}

.fit-logo svg {
  display: none;
}

.fit-logo span {
  color: #6fb0ff;
  font-family: "Geist", ui-sans-serif, system-ui, sans-serif;
  font-size: 1.7rem;
  font-weight: 850;
  line-height: 1;
}

.education-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: -0.15rem 0 0.55rem;
}

.education-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 29px;
  padding: 0 0.76rem;
  color: #9ec8ff;
  background: rgba(41, 91, 164, 0.24);
  border: 1px solid rgba(120, 167, 232, 0.12);
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 650;
  line-height: 1;
}

.certificate-list {
  display: grid;
  gap: 0;
  width: min(100%, 430px);
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.certificate-list li {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  min-height: 38px;
  border-bottom: 1px solid rgba(215, 226, 245, 0.12);
}

.certificate-icon {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.92);
  font-family: "Geist", ui-sans-serif, system-ui, sans-serif;
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1;
}

.meta-icon {
  border: 0;
  border-radius: 0;
  font-family: "Geist", ui-sans-serif, system-ui, sans-serif;
  font-size: 1rem;
}

.meta-icon svg {
  width: 30px;
  height: 18px;
  fill: currentColor;
}

.certificate-list strong,
.certificate-list small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.certificate-list strong {
  color: #f4f7ff;
  font-size: 0.84rem;
  font-weight: 800;
  line-height: 1.15;
}

.certificate-list small {
  margin-top: 0.1rem;
  color: rgba(229, 232, 240, 0.66);
  font-size: 0.76rem;
  line-height: 1.2;
}

.certificate-list em {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  padding: 0.37rem 0.75rem;
  color: #a9cdff;
  background: rgba(48, 103, 185, 0.28);
  border-radius: 999px;
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 700;
  line-height: 1;
}

.certificate-list em::after {
  content: "";
  width: 0.92rem;
  height: 0.92rem;
  background: #4b8dff;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
  clip-path: polygon(14% 47%, 31% 30%, 45% 45%, 72% 17%, 88% 34%, 45% 78%);
}

.more-certificates {
  color: #5fa0ff;
  font-size: 0.88rem;
  font-weight: 550;
}

.certificate-note {
  margin-top: 0.55rem !important;
  color: #5fa0ff !important;
  font-size: 0.88rem !important;
  font-weight: 550 !important;
}

.projects-shell {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  max-width: none;
  min-height: 100svh;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.projects-shell .section-heading {
  display: none;
  width: min(var(--max-width), calc(100% - 40px));
  max-width: 760px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.projects-title-band {
  position: relative;
  z-index: 3;
  height: 20svh;
  display: grid;
  align-content: end;
  gap: 0.2rem;
  overflow: hidden;
  padding: 0 max(20px, calc((100vw - var(--max-width)) / 2)) clamp(0.85rem, 2vw, 1.35rem);
  background: #010103 url("https://hajnzhpmyfqmldjuhoyt.supabase.co/storage/v1/object/public/tadeasz/projects-title-slice.png") center / cover no-repeat;
}

.projects-title-band::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(1, 1, 3, 0.32) 0%, rgba(1, 1, 3, 0.08) 68%, rgba(1, 1, 3, 0) 100%);
  pointer-events: none;
}

.projects-title-band .section-kicker {
  position: relative;
  z-index: 2;
}

.projects-title-band h2 {
  margin: 0;
  color: var(--paper);
  font-size: clamp(1.95rem, 3.35vw, 3.45rem);
  line-height: 0.96;
  letter-spacing: 0;
}

.project-stage {
  position: relative;
  width: 100%;
  height: 80svh;
  margin: 0;
  overflow: hidden;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.project-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(circle at 50% 16%, rgba(168, 199, 223, 0.16), transparent 24rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 42%);
  pointer-events: none;
}

.project-scene {
  position: absolute;
  inset: 0 0 auto;
  z-index: 1;
  width: 100%;
  height: 125%;
  object-fit: cover;
  object-position: center top;
  transition: opacity 360ms ease, transform 520ms ease;
}

.project-scene-leave {
  opacity: 0;
  pointer-events: none;
}

.projects-leaving .project-scene-sit {
  opacity: 0;
}

.projects-leaving .project-scene-leave {
  opacity: 1;
}

.project-popover {
  position: absolute;
  inset: clamp(0rem, 1vh, 0.7rem) 0 auto;
  z-index: 2;
  width: min(1360px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  opacity: 0;
  transform: translateY(24px) scale(0.96);
  pointer-events: none;
  transition: opacity 360ms ease, transform 420ms ease;
}

.projects-ready .project-popover {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.project-grid {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: clamp(1.45rem, 3.2vw, 3.2rem);
  min-height: clamp(260px, 30vw, 390px);
}

.project-card {
  position: relative;
  isolation: isolate;
  --card-y: 0;
  --card-rotate: 0deg;
  --card-scale: 1;
  --card-lift: 0px;
  flex: 0 1 clamp(290px, 28vw, 410px);
  min-height: 0;
  aspect-ratio: 16 / 10;
  display: block;
  appearance: none;
  overflow: hidden;
  padding: 0;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  background: #111216;
  border: 0;
  border-radius: 11px;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.34);
  transform: translateY(calc(var(--card-y) + var(--card-lift))) rotate(var(--card-rotate)) scale(var(--card-scale));
  transition: transform 180ms ease, opacity 180ms ease, box-shadow 180ms ease;
}

.project-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: #111216;
  pointer-events: none;
}

.project-card:nth-child(1) {
  --card-y: clamp(0.9rem, 2.8vw, 2.4rem);
  --card-rotate: -8deg;
}

.project-card:nth-child(2) {
  --card-scale: 1.08;
  z-index: 2;
}

.project-card:nth-child(3) {
  --card-y: clamp(0.9rem, 2.8vw, 2.4rem);
  --card-rotate: 8deg;
}

.project-card:hover,
.project-card:focus-visible,
.project-card.is-selected {
  --card-lift: -8px;
  --card-scale: 1.04;
  background: #111216;
  box-shadow: 0 24px 58px rgba(0, 0, 0, 0.46);
  outline: 0;
}

.project-card.is-selected::before {
  background: #111216;
}

.project-card:nth-child(2):hover,
.project-card:nth-child(2):focus-visible,
.project-card:nth-child(2).is-selected {
  --card-scale: 1.12;
}

.project-card img,
.project-card video {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  background: #111216;
  opacity: 1;
  transform: scale(1.055);
  transition: transform 220ms ease;
}

.project-card:hover img,
.project-card:hover video,
.project-card:focus-visible img,
.project-card:focus-visible video,
.project-card.is-selected img,
.project-card.is-selected video {
  background-color: #111216;
  transform: scale(1.085);
}

.project-subsection {
  position: fixed;
  inset: 0;
  z-index: 45;
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(320px, 0.7fr);
  align-items: center;
  gap: clamp(1.4rem, 4vw, 4.6rem);
  min-height: 100svh;
  padding: clamp(5rem, 8vw, 7rem) clamp(1.25rem, 7vw, 7.5rem);
  color: var(--paper);
  overflow: auto;
  background:
    radial-gradient(circle at 36% 26%, rgba(168, 199, 223, 0.08), transparent 24rem),
    linear-gradient(90deg, #010103 0%, #050608 48%, #010103 100%),
    #010103;
  opacity: 0;
  transform: translateY(18px);
  pointer-events: none;
  transition: opacity 260ms ease, transform 300ms ease;
}

.project-subsection.is-active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.project-subsection-media {
  position: relative;
  overflow: hidden;
  border: 0;
  border-radius: 14px;
  background: #111216;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.5);
}

.project-subsection-media::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: #111216;
}

.project-subsection-media img,
.project-subsection-media video {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  min-height: clamp(260px, 38vw, 520px);
  display: block;
  object-fit: cover;
  background: #111216;
  opacity: 1;
  transform: scale(1.035);
}

.project-subsection-copy {
  max-width: 560px;
}

.project-subsection-kicker {
  margin: 0 0 1rem;
  color: rgba(168, 199, 223, 0.9) !important;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.project-subsection h3 {
  margin: 0;
  color: var(--paper);
  font-size: clamp(3rem, 6vw, 6.4rem);
  line-height: 0.9;
  letter-spacing: 0;
}

.project-subsection-copy > p:not(.project-subsection-kicker) {
  margin: clamp(1.3rem, 2vw, 1.8rem) 0 0;
  color: rgba(245, 242, 236, 0.76);
  font-size: clamp(1rem, 1.25vw, 1.2rem);
  line-height: 1.62;
}

.project-subsection-list {
  display: grid;
  gap: 0.65rem;
  margin: clamp(1.4rem, 2.4vw, 2rem) 0 0;
  padding: 0;
  list-style: none;
}

.project-subsection-list li {
  position: relative;
  padding-left: 1.25rem;
  color: rgba(245, 242, 236, 0.82);
}

.project-subsection-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 0.42rem;
  height: 0.42rem;
  background: var(--blue-strong);
  border-radius: 50%;
}

.project-subsection-close {
  position: fixed;
  top: calc(1rem + 64px);
  right: 1.15rem;
  z-index: 46;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  color: var(--paper);
  background: rgba(12, 13, 16, 0.86);
  border: 0;
  border-radius: 10px;
  cursor: pointer;
}

.project-subsection-close span {
  font-size: 2rem;
  line-height: 1;
}

.process-section {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: center;
  overflow: hidden;
  padding: clamp(6.5rem, 9vw, 8.8rem) clamp(2rem, 4.2vw, 4.4rem);
  background:
    radial-gradient(circle at 50% 48%, rgba(54, 133, 255, 0.14), transparent 36rem),
    radial-gradient(circle at 78% 18%, rgba(110, 168, 255, 0.1), transparent 30rem),
    linear-gradient(180deg, #050a11 0%, #07101b 48%, #05080d 100%);
  isolation: isolate;
}

.process-section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.42;
  background-image:
    linear-gradient(rgba(109, 166, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(109, 166, 255, 0.03) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at center, #000 0%, transparent 78%);
}

.process-shell {
  width: min(1600px, 100%);
  min-height: min(760px, calc(100svh - 8rem));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(260px, 0.74fr) minmax(640px, 1.65fr) minmax(270px, 0.72fr);
  gap: clamp(1.5rem, 2.8vw, 3.1rem);
  align-items: center;
}

.process-copy {
  align-self: center;
}

.process-copy .section-kicker {
  margin-bottom: 1.55rem;
}

.process-copy h2 {
  color: #f8f5ef;
  font-size: clamp(4.4rem, 7.2vw, 7rem);
  line-height: 0.9;
  text-shadow: 0 10px 36px rgba(255, 255, 255, 0.08);
}

.process-copy > p {
  max-width: 22rem;
  margin: clamp(2.3rem, 4.2vw, 4.8rem) 0 0;
  color: rgba(211, 222, 239, 0.82);
  font-size: clamp(1rem, 1.16vw, 1.1rem);
  line-height: 1.72;
}

.process-copy h2::after,
.process-core span {
  content: "";
  display: block;
  width: 52px;
  height: 2px;
  margin-top: 1.55rem;
  background: linear-gradient(90deg, #3d8cff, #74b5ff);
  box-shadow: 0 0 18px rgba(66, 146, 255, 0.75);
}

.process-note {
  width: min(100%, 304px);
  margin-top: clamp(3.1rem, 6.4vw, 5.6rem);
  padding: 1.95rem 1.85rem 1.8rem;
  color: rgba(232, 238, 249, 0.86);
  background: linear-gradient(145deg, rgba(16, 25, 40, 0.86), rgba(6, 12, 21, 0.92));
  border: 1px solid rgba(141, 171, 220, 0.17);
  border-radius: 20px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 24px 70px rgba(0, 0, 0, 0.26);
}

.process-note-icon,
.process-foundation li > span {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  color: #5fa4ff;
  background: radial-gradient(circle, rgba(87, 153, 255, 0.25), rgba(32, 65, 116, 0.08) 72%);
  border: 1px solid rgba(105, 164, 255, 0.21);
  border-radius: 50%;
  box-shadow: inset 0 0 24px rgba(75, 141, 249, 0.18), 0 0 24px rgba(63, 135, 255, 0.12);
}

.process-note svg,
.process-foundation svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.process-note svg {
  fill: currentColor;
  stroke: none;
}

.process-note p {
  margin: 1.05rem 0 0;
  color: inherit;
  line-height: 1.64;
}

.process-note strong {
  color: #54a2ff;
  font-weight: 700;
}

.process-orbit {
  position: relative;
  width: min(100%, 850px);
  aspect-ratio: 1;
  justify-self: center;
}

.process-radar,
.process-ring,
.process-axis,
.process-dot,
.process-core,
.process-step {
  position: absolute;
}

.process-radar {
  inset: 2.8%;
  border-radius: 50%;
}

.process-ring {
  inset: var(--ring-inset);
  border-radius: 50%;
  border: 1px solid rgba(83, 148, 255, var(--ring-alpha, 0.22));
}

.process-ring-outer {
  --ring-inset: 0;
  --ring-alpha: 0.17;
  box-shadow: 0 0 40px rgba(53, 125, 255, 0.08);
}

.process-ring-mid {
  --ring-inset: 6.8%;
  --ring-alpha: 0.82;
  box-shadow: inset 0 0 36px rgba(53, 125, 255, 0.06), 0 0 18px rgba(69, 146, 255, 0.18);
}

.process-ring-inner {
  --ring-inset: 31%;
  --ring-alpha: 1;
  border-width: 2px;
  box-shadow: inset 0 0 44px rgba(55, 136, 255, 0.13), 0 0 32px rgba(69, 149, 255, 0.2);
}

.process-radar::before,
.process-radar::after {
  content: "";
  position: absolute;
  inset: 18%;
  border-radius: 50%;
  border: 1px dashed rgba(83, 148, 255, 0.1);
}

.process-radar::after {
  inset: 24%;
}

.process-axis {
  left: 50%;
  top: 6.8%;
  width: 1px;
  height: 86.4%;
  transform-origin: center;
  background: linear-gradient(180deg, transparent, rgba(81, 148, 255, 0.22), transparent);
}

.process-axis-horizontal {
  transform: rotate(90deg);
}

.process-axis-diagonal-one {
  transform: rotate(36deg);
}

.process-axis-diagonal-two {
  transform: rotate(-36deg);
}

.process-dot {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #84c3ff;
  box-shadow: 0 0 0 3px rgba(67, 143, 255, 0.22), 0 0 20px rgba(92, 168, 255, 0.95);
}

.process-dot-top {
  left: calc(50% - 6px);
  top: 6%;
}

.process-dot-upper-left {
  left: 13.5%;
  top: 24.5%;
}

.process-dot-upper-right {
  right: 13.5%;
  top: 24.5%;
}

.process-dot-lower-left {
  left: 8.6%;
  top: 59.5%;
}

.process-dot-lower-right {
  right: 8.6%;
  top: 59.5%;
}

.process-dot-bottom {
  left: calc(50% - 6px);
  bottom: 6%;
}

.process-core {
  left: 50%;
  top: 50%;
  width: 268px;
  height: 268px;
  display: grid;
  place-items: center;
  align-content: center;
  transform: translate(-50%, -50%);
  color: #f6f4ef;
  background: radial-gradient(circle at center, rgba(18, 31, 50, 0.95), rgba(6, 13, 24, 0.9) 68%);
  border: 2px solid #5aa8ff;
  border-radius: 50%;
  box-shadow: inset 0 0 46px rgba(69, 149, 255, 0.15), 0 0 38px rgba(68, 145, 255, 0.18);
}

.process-core strong {
  font-size: clamp(2.1rem, 3vw, 2.75rem);
  line-height: 1;
}

.process-core span {
  margin: 1.15rem auto 0;
}

.process-step {
  --step-x: 0px;
  --step-y: 0px;
  left: 50%;
  top: 50%;
  z-index: 2;
  width: clamp(244px, 22vw, 276px);
  min-height: 112px;
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 0.95rem;
  align-items: center;
  padding: 1.05rem 1.25rem;
  color: #eef4ff;
  background: linear-gradient(145deg, rgba(16, 24, 39, 0.9), rgba(9, 14, 23, 0.88));
  border: 1px solid rgba(133, 158, 199, 0.24);
  border-radius: 48px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045), 0 22px 58px rgba(0, 0, 0, 0.32);
  transform: translate(calc(-50% + var(--step-x)), calc(-50% + var(--step-y)));
}

.process-step-one {
  --step-y: -314px;
  border-color: rgba(72, 143, 255, 0.7);
}

.process-step-two {
  --step-x: 340px;
  --step-y: -64px;
}

.process-step-three {
  --step-x: 232px;
  --step-y: 246px;
}

.process-step-four {
  --step-x: -240px;
  --step-y: 246px;
}

.process-step-five {
  --step-x: -344px;
  --step-y: -64px;
}

.process-step span {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  color: #63aaff;
  font-size: 1.35rem;
  font-weight: 820;
  letter-spacing: 0;
  background: radial-gradient(circle, rgba(86, 154, 255, 0.28), rgba(42, 76, 125, 0.1) 74%);
  border-radius: 50%;
  box-shadow: inset 0 0 28px rgba(85, 152, 255, 0.2);
}

.process-step h3,
.process-step p {
  margin: 0;
}

.process-step h3 {
  color: #fbf8f1;
  font-size: clamp(0.98rem, 1vw, 1.08rem);
  line-height: 1.25;
}

.process-step p {
  margin-top: 0.28rem;
  color: rgba(211, 222, 239, 0.78);
  font-size: 0.8rem;
  line-height: 1.46;
}

.process-foundation {
  justify-self: end;
  width: min(100%, 292px);
  padding: 2.35rem 1.9rem;
  background: linear-gradient(155deg, rgba(14, 23, 36, 0.86), rgba(7, 12, 21, 0.94));
  border: 1px solid rgba(137, 160, 196, 0.2);
  border-radius: 30px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045), 0 28px 78px rgba(0, 0, 0, 0.32);
}

.process-foundation h3 {
  margin: 0 0 1.1rem;
  color: #fbf8f1;
  font-size: 1.25rem;
  line-height: 1.1;
}

.process-foundation ul {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}

.process-foundation li {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 1.05rem;
  align-items: center;
  padding: 1.18rem 0;
  border-bottom: 1px solid rgba(154, 174, 210, 0.17);
}

.process-foundation li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.process-foundation strong {
  display: block;
  color: #fbf8f1;
  font-size: 1rem;
  line-height: 1.1;
}

.process-foundation p {
  margin: 0.38rem 0 0;
  color: rgba(211, 222, 239, 0.75);
  font-size: 0.83rem;
  line-height: 1.45;
}

@media (max-width: 1500px) {
  .process-shell {
    grid-template-columns: minmax(230px, 0.62fr) minmax(540px, 1.28fr) minmax(250px, 0.62fr);
    gap: 1.4rem;
  }

  .process-orbit {
    width: min(100%, 650px);
  }

  .process-core {
    width: 210px;
    height: 210px;
  }

  .process-step {
    width: 238px;
    min-height: 102px;
    grid-template-columns: 52px 1fr;
    padding: 0.9rem 1rem;
  }

  .process-step span {
    width: 52px;
    height: 52px;
    font-size: 1.18rem;
  }

  .process-step-one {
    --step-y: -244px;
  }

  .process-step-two {
    --step-x: 260px;
    --step-y: -46px;
  }

  .process-step-three {
    --step-x: 178px;
    --step-y: 190px;
  }

  .process-step-four {
    --step-x: -178px;
    --step-y: 190px;
  }

  .process-step-five {
    --step-x: -260px;
    --step-y: -46px;
  }
}

@media (max-width: 1180px) {
  .process-section {
    min-height: auto;
    padding: 6.5rem 20px;
  }

  .process-shell {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 3.2rem;
  }

  .process-copy {
    width: min(100%, 620px);
  }

  .process-copy > p {
    max-width: 34rem;
    margin-top: 2rem;
  }

  .process-note {
    width: min(100%, 440px);
    margin-top: 2rem;
  }

  .process-orbit {
    width: min(100%, 680px);
  }

  .process-foundation {
    justify-self: stretch;
    width: min(100%, 620px);
    position: static;
  }
}

.section-contact {
  min-height: 100svh;
  padding: 0;
  isolation: isolate;
  background: #050608;
}

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

.section-contact::before {
  z-index: 0;
  background: url("https://hajnzhpmyfqmldjuhoyt.supabase.co/storage/v1/object/public/tadeasz/clouds_contact.png") center bottom / cover no-repeat;
  opacity: 0.86;
}

.section-contact::after {
  z-index: 1;
  background:
    radial-gradient(circle at 41% 58%, rgba(255, 255, 255, 0.08), transparent 29rem),
    radial-gradient(circle at 76% 18%, rgba(109, 147, 205, 0.09), transparent 30rem),
    linear-gradient(180deg, rgba(5, 6, 8, 0.1) 0%, rgba(5, 6, 8, 0.62) 100%);
}

.contact-layout {
  position: relative;
  z-index: 2;
  width: min(1484px, calc(100% - clamp(40px, 11.6vw, 196px)));
  min-height: 100svh;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 505px);
  gap: clamp(3.2rem, 5.4vw, 5.8rem);
  align-items: start;
  padding: clamp(5.65rem, 9.7vh, 6rem) 0 clamp(9.5rem, 19vh, 11.8rem);
}

.contact-intro,
.contact-form {
  position: relative;
  z-index: 2;
}

.contact-intro h2 {
  margin: 0;
  max-width: 780px;
  color: #f5f1ea;
  font-size: clamp(3.1rem, 3.9vw, 4rem);
  font-weight: 850;
  letter-spacing: 0;
  line-height: 1.09;
  text-shadow:
    0 2px 0 rgba(255, 255, 255, 0.12),
    0 18px 42px rgba(0, 0, 0, 0.55);
}

.contact-intro h2 span {
  color: #95bded;
}

.contact-details {
  max-width: 610px;
  margin-top: clamp(3rem, 7vh, 4.2rem);
}

.contact-board {
  width: min(100%, 610px);
  margin: 0;
  font-style: normal;
}

.contact-line {
  display: block;
  margin: 0;
  padding: 0 0 22px;
  border-bottom: 1px solid rgba(245, 242, 236, 0.12);
}

.contact-line + .contact-line {
  padding-top: 20px;
}

.contact-label {
  display: block;
  margin-bottom: 10px;
  color: #9fc6ff;
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  line-height: 1;
  text-transform: uppercase;
}

.contact-row {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
  color: #f5f1ea;
}

.contact-row strong {
  min-width: 0;
  color: inherit;
  font-weight: 850;
  letter-spacing: 0;
  line-height: 1.08;
  overflow-wrap: anywhere;
  text-shadow:
    0 2px 0 rgba(255, 255, 255, 0.12),
    0 12px 32px rgba(0, 0, 0, 0.52);
}

.contact-line-mail .contact-row {
  gap: 16px;
}

.contact-line-mail strong {
  font-size: clamp(2.2rem, 2.55vw, 2.72rem);
  white-space: nowrap;
}

.contact-line-place strong {
  font-size: clamp(2rem, 2.32vw, 2.45rem);
}

.contact-line-github strong {
  font-size: clamp(1.8rem, 2.1vw, 2.25rem);
}

.contact-icon {
  flex: 0 0 auto;
  width: 39px;
  height: 39px;
  fill: #95bded;
  filter: drop-shadow(0 8px 18px rgba(113, 163, 238, 0.28));
}

.contact-icon circle {
  fill: #0f141c;
}

.contact-github {
  width: 40px;
  height: 40px;
}

.contact-external {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  fill: none;
  stroke: #9fc6ff;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 8px 18px rgba(113, 163, 238, 0.28));
}

.contact-form {
  width: 100%;
  display: grid;
  gap: 18px;
  margin-top: 50px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  color: #f2eee8;
  background: linear-gradient(180deg, rgba(34, 35, 42, 0.86), rgba(27, 28, 34, 0.88));
  border: 1px solid rgba(245, 242, 236, 0.08);
  border-radius: 22px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 18px 42px rgba(0, 0, 0, 0.14);
  font-size: 1.05rem;
  outline: 0;
  transition: background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.contact-form input {
  height: 63px;
  padding: 0 24px;
}

.contact-form textarea {
  min-height: 181px;
  padding: 19px 24px;
  resize: none;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(245, 242, 236, 0.56);
}

.contact-form input:hover,
.contact-form textarea:hover {
  background: linear-gradient(180deg, rgba(38, 39, 46, 0.9), rgba(30, 31, 37, 0.92));
  border-color: rgba(245, 242, 236, 0.13);
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: rgba(159, 198, 255, 0.72);
  box-shadow:
    0 0 0 3px rgba(159, 198, 255, 0.16),
    0 18px 42px rgba(0, 0, 0, 0.2);
}

.send-button {
  min-height: 64px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2px;
  padding: 0 29px;
  color: #070a10;
  background: linear-gradient(135deg, #acd0ff 0%, #88b9f5 100%);
  border: 0;
  border-radius: 22px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.42),
    0 20px 44px rgba(111, 160, 232, 0.24);
  font-size: 1.23rem;
  font-weight: 850;
  cursor: pointer;
  transition: transform 180ms ease, filter 180ms ease, box-shadow 180ms ease;
}

.send-button:hover,
.send-button:focus-visible {
  transform: translateY(-2px);
  filter: brightness(1.04);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    0 24px 54px rgba(111, 160, 232, 0.3);
}

.send-button svg {
  width: 36px;
  height: 36px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.form-help,
.form-status {
  margin: 0;
  color: rgba(245, 242, 236, 0.56);
  font-size: 0.95rem;
  line-height: 1.4;
}

.form-status {
  min-height: 1.5rem;
}

.contact-signature-art {
  position: absolute;
  z-index: 2;
  left: 48.4%;
  bottom: -35px;
  width: min(650px, 44vw);
  color: #f5f1ea;
  filter: drop-shadow(0 22px 28px rgba(0, 0, 0, 0.42));
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%);
  transition: opacity 120ms ease;
  will-change: opacity;
}

.contact-signature-art .cls-0 {
  fill: #f5f1ea;
}

.section-contact.signature-ready .contact-signature-art {
  opacity: 0.96;
}

.section-contact.signature-finished .signature-ink {
  mask: none;
}

.signature-draw-line {
  stroke-dasharray: 1.08;
  stroke-dashoffset: 1.08;
  stroke-opacity: 0;
}

.section-contact.signature-ready .signature-draw-line-1 {
  animation: signature-line 680ms cubic-bezier(0.66, 0, 0.2, 1) 120ms forwards;
}

.section-contact.signature-ready .signature-draw-line-2 {
  animation: signature-line 560ms cubic-bezier(0.64, 0, 0.24, 1) 520ms forwards;
}

.section-contact.signature-ready .signature-draw-line-3 {
  animation: signature-line 1450ms cubic-bezier(0.58, 0, 0.12, 1) 880ms forwards;
}

.section-contact.signature-ready .signature-draw-line-4 {
  animation: signature-line 360ms cubic-bezier(0.7, 0, 0.2, 1) 2260ms forwards;
}

.section-contact.signature-ready .signature-draw-line-5 {
  animation: signature-line 420ms cubic-bezier(0.7, 0, 0.2, 1) 2420ms forwards;
}

.section-contact.signature-ready .signature-draw-line-6 {
  animation: signature-line 300ms cubic-bezier(0.7, 0, 0.2, 1) 2660ms forwards;
}

.section-contact.signature-ready .signature-complete-mask {
  animation: signature-complete 240ms ease-out 2880ms forwards;
}

@keyframes signature-line {
  0% {
    stroke-dashoffset: 1.08;
    stroke-opacity: 1;
  }

  to {
    stroke-dashoffset: 0;
    stroke-opacity: 1;
  }
}

@keyframes signature-complete {
  to {
    opacity: 1;
  }
}

@keyframes profile-generated-in {
  from {
    opacity: 0;
    filter: blur(8px);
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
  }
}

@keyframes generating-pulse {
  0%,
  100% {
    opacity: 0.35;
  }

  50% {
    opacity: 1;
  }
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.3rem 20px 2rem;
  width: min(var(--max-width), 100%);
  margin: 0 auto;
  color: var(--muted);
}

.site-footer a {
  color: var(--text);
  font-weight: 780;
}

@media (max-width: 900px) {
  .site-header {
    inset: 12px 0 auto;
    padding: 0 12px;
  }

  body.profile-active .site-header,
  body.studium-active .site-header,
  body.principles-active .site-header,
  body.contact-active .site-header,
  body:has(#studium:target) .site-header,
  body:has(#proces:target) .site-header {
    opacity: 1;
    pointer-events: none;
    transform: none;
  }

  .nav-shell {
    width: min(340px, calc(100vw - 24px));
    max-width: calc(100vw - 24px);
    min-height: 44px;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 0.3rem;
    padding: 0.3rem;
    overflow: hidden;
    background: rgba(9, 10, 13, 0.9);
    border-color: rgba(245, 242, 236, 0.12);
    border-radius: 14px;
    backdrop-filter: blur(18px);
    transition: background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
  }

  .nav-shell.is-open {
    background: rgba(9, 10, 13, 0.96);
    border-color: rgba(245, 242, 236, 0.18);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.52);
  }

  .nav-shell::before,
  .nav-shell::after {
    display: none;
  }

  .mobile-brand {
    display: grid;
    flex: 0 0 34px;
    order: 1;
  }

  .nav-toggle {
    display: inline-flex;
    flex: 0 0 34px;
    order: 3;
  }

  .site-menu {
    position: static;
    flex: 0 0 100%;
    width: 100%;
    max-height: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.28rem;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background: transparent;
    border: 0;
    border-top: 1px solid transparent;
    border-radius: 0;
    box-shadow: none;
    backdrop-filter: none;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-4px);
    transform-origin: top center;
    visibility: hidden;
    order: 4;
    transition: max-height 220ms ease, opacity 160ms ease, padding 180ms ease, border-color 180ms ease, transform 180ms ease, visibility 180ms ease;
  }

  .nav-shell.is-open .site-menu {
    max-height: 92px;
    padding-top: 0.36rem;
    border-top-color: rgba(245, 242, 236, 0.1);
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
    visibility: visible;
  }

  .brand-item {
    display: none;
  }

  .site-menu a {
    justify-content: center;
    width: 100%;
    min-height: 32px;
    padding: 0 0.58rem;
    color: rgba(245, 242, 236, 0.82);
    font-size: 0.84rem;
    font-weight: 680;
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(245, 242, 236, 0.055);
    border-radius: 9px;
    text-shadow: none;
  }

  .site-menu a:hover,
  .site-menu a:focus-visible,
  .site-menu a.is-active {
    opacity: 1;
    transform: none;
    color: #ffffff;
    background: rgba(120, 161, 255, 0.16);
    border-color: rgba(120, 161, 255, 0.34);
  }

  .brand {
    width: 32px;
    min-height: 32px;
  }

  .brand-mark {
    width: 28px;
    height: 28px;
  }

  .brand-mark img {
    width: 24px;
    height: 24px;
  }

  .nav-social {
    margin-left: auto;
    gap: 0.35rem;
    padding-left: 0;
    border-left: 0;
    order: 2;
  }

  .nav-icon {
    width: 32px;
    min-height: 32px;
    border-radius: 8px;
  }

  .nav-icon svg {
    width: 15px;
    height: 15px;
  }

  .hero-content {
    margin: 0 auto;
    align-self: end;
    margin-bottom: 6rem;
  }

  .hero-scrim {
    background: linear-gradient(0deg, rgba(8, 11, 16, 0.34) 0%, rgba(8, 11, 16, 0) 58%);
  }

  .profile-grid,
  .profile-layout,
  .split-heading,
  .projects-shell,
  .contact-grid,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .profile-layout,
  .contact-layout {
    min-height: auto;
  }

  .section-profile {
    min-height: auto;
  }

  .profile-layout {
    display: grid;
    gap: 2.5rem;
    padding: 7rem 20px 4rem;
  }

  .section .profile-name {
    left: 20px;
    top: 5.8rem;
    font-size: clamp(5.4rem, 20vw, 10rem);
  }

  .profile-copy {
    width: min(100%, 590px);
  }

  .profile-visual {
    position: relative;
    right: auto;
    bottom: auto;
    justify-self: center;
    width: min(68vw, 340px);
    height: auto;
    margin-top: 0.5rem;
  }

  .profile-meta {
    position: relative;
    left: auto;
    bottom: auto;
    row-gap: 1rem;
  }

  .profile-copy h2,
  .contact-intro h2 {
    max-width: 12ch;
  }

  .profile-media {
    min-height: 560px;
  }

  .profile-cloud-main {
    right: 0;
    width: min(92%, 580px);
  }

  .contact-form {
    max-width: 640px;
  }

  .section-contact {
    min-height: auto;
  }

  .contact-layout {
    width: min(720px, calc(100% - 40px));
    min-height: auto;
    padding: 6.5rem 0 11rem;
    gap: 3rem;
  }

  .contact-details {
    margin-top: 2rem;
  }

  .contact-board {
    width: 100%;
    margin-top: 0;
  }

  .contact-line-mail strong {
    white-space: normal;
  }

  .contact-form {
    width: 100%;
    max-width: none;
    margin-top: 0;
  }

  .contact-signature-art {
    left: 50%;
    bottom: -18px;
    width: min(520px, 86vw);
  }

  .projects-shell .section-heading,
  .project-grid {
    grid-column: auto;
    grid-row: auto;
  }

  .projects-shell .section-heading,
  .process-foundation {
    position: static;
  }

  .process-section {
    min-height: auto;
    padding: 6.5rem 20px;
  }

  .process-shell {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 3.2rem;
  }

  .process-copy {
    width: min(100%, 620px);
  }

  .process-copy > p {
    max-width: 34rem;
    margin-top: 2rem;
  }

  .process-note {
    width: min(100%, 440px);
    margin-top: 2rem;
  }

  .process-orbit {
    width: min(100%, 680px);
  }

  .process-foundation {
    justify-self: stretch;
    width: min(100%, 620px);
  }

  .project-grid,
  .skill-grid,
  .timeline {
    grid-template-columns: 1fr;
  }

  .project-stage {
    height: 80svh;
  }

  .project-popover {
    inset: 0.15rem 0 auto;
    width: calc(100% - 1rem);
    padding: 0.65rem;
    border-radius: 22px;
  }

  .project-grid {
    display: flex;
    justify-content: flex-start;
    gap: 1.15rem;
    min-height: auto;
    overflow-x: auto;
    padding: 0 0.4rem 0.8rem;
    scroll-snap-type: x mandatory;
  }

  .project-card {
    flex: 0 0 min(82vw, 340px);
    width: min(82vw, 340px);
    min-height: auto;
    scroll-snap-align: center;
  }

  .project-card:nth-child(1),
  .project-card:nth-child(2),
  .project-card:nth-child(3) {
    --card-y: 0;
    --card-rotate: 0deg;
    --card-scale: 1;
  }

  .project-subsection {
    grid-template-columns: 1fr;
    align-content: center;
    gap: 1.35rem;
    padding: 5.2rem 20px 2rem;
  }

  .project-subsection-media img,
  .project-subsection-media video {
    min-height: 0;
    aspect-ratio: 16 / 10;
  }

  .project-subsection h3 {
    font-size: clamp(2.45rem, 13vw, 4.25rem);
  }

  .project-subsection-copy > p:not(.project-subsection-kicker) {
    font-size: 0.98rem;
    line-height: 1.5;
  }

  .project-subsection-list {
    gap: 0.5rem;
  }

  .media-stack {
    min-height: auto;
  }

  .media-frame-large {
    height: auto;
    aspect-ratio: 4 / 3;
  }

  .media-frame-small,
  .info-chips {
    position: static;
    width: auto;
    margin-top: 1rem;
  }

  .media-frame-small {
    border-width: 0;
  }
}

@media (max-width: 560px) {
  .site-header {
    inset: 8px 0 auto;
    padding: 0 8px;
  }

  .nav-shell {
    width: min(302px, calc(100vw - 16px));
    max-width: calc(100vw - 16px);
    min-width: 0;
    min-height: 38px;
    gap: 0.24rem;
    padding: 0.24rem;
    border-radius: 10px;
  }

  .brand,
  .mobile-brand {
    width: 28px;
    min-height: 28px;
    padding: 0;
  }

  .mobile-brand,
  .nav-toggle {
    flex-basis: 30px;
  }

  .nav-toggle {
    width: 30px;
    min-height: 30px;
  }

  .brand-mark {
    width: 25px;
    height: 25px;
  }

  .brand-mark img {
    width: 21px;
    height: 21px;
  }

  .site-menu {
    width: 100%;
    gap: 0.24rem;
  }

  .site-menu a {
    min-height: 31px;
    padding: 0 0.5rem;
    font-size: 0.82rem;
  }

  .nav-social {
    gap: 0;
    padding-left: 0.22rem;
  }

  .nav-icon {
    width: 28px;
    min-height: 28px;
    border-radius: 7px;
  }

  .nav-icon svg {
    width: 14px;
    height: 14px;
  }

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

  .hero-content,
  .section-shell {
    border-radius: 26px;
  }

  .projects-shell {
    border-radius: 0;
  }

  .section h2 {
    font-size: clamp(2.6rem, 16vw, 4.2rem);
  }

  .process-section {
    padding: 5.8rem 16px;
  }

  .process-shell {
    gap: 2.2rem;
  }

  .process-copy h2 {
    font-size: clamp(3.6rem, 20vw, 5.2rem);
  }

  .process-copy > p {
    font-size: 0.98rem;
  }

  .process-note,
  .process-foundation {
    border-radius: 20px;
  }

  .process-orbit {
    aspect-ratio: auto;
    display: grid;
    gap: 0.8rem;
    width: 100%;
  }

  .process-radar,
  .process-core {
    display: none;
  }

  .process-step {
    position: relative;
    left: auto;
    top: auto;
    width: 100%;
    min-height: auto;
    grid-template-columns: 54px 1fr;
    border-radius: 22px;
    transform: none;
  }

  .process-foundation {
    padding: 1.55rem;
  }

  .process-foundation li {
    grid-template-columns: 46px 1fr;
    gap: 0.85rem;
  }

.process-foundation li > span {
    width: 46px;
    height: 46px;
  }

  .hero-actions,
  .button,
  .profile-layout,
  .contact-layout {
    gap: 2.4rem;
  }

  .profile-name,
  .contact-signature {
    font-size: clamp(4.6rem, 25vw, 8rem);
  }

  .profile-layout {
    padding: 6.5rem 23px 3.2rem;
  }

  .section .profile-name {
    left: 23px;
    top: 5.1rem;
    font-size: clamp(4.8rem, 24vw, 7.8rem);
  }

  .profile-copy h2,
  .contact-intro h2 {
    font-size: clamp(2.35rem, 12.5vw, 3.45rem);
    line-height: 1;
  }

  .section-profile .section-kicker {
    margin-bottom: 1.45rem;
  }

  .profile-copy h2 {
    max-width: 9ch;
  }

  .profile-text {
    margin-top: 1.35rem;
  }

  .profile-text p {
    font-size: 0.98rem;
    line-height: 1.5;
  }

  .profile-text p + p {
    margin-top: 1rem;
  }

  .profile-link {
    margin-top: 1.65rem;
  }

  .profile-visual {
    width: min(74vw, 270px);
    height: auto;
  }

  .profile-meta {
    align-items: flex-start;
    font-size: 0.95rem;
    line-height: 1.2;
  }

  .profile-meta > span,
  .profile-meta > a {
    padding: 0 0.85rem;
  }

  .profile-meta > span:first-child {
    padding-left: 0;
  }

  .section .contact-signature {
    top: 5.2rem;
    color: rgba(245, 242, 236, 0.034);
  }

  .profile-facts div,
  .contact-line {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }

  .profile-media {
    min-height: 460px;
  }

  .profile-cloud-main {
    top: 3rem;
    width: 92%;
    height: 340px;
    border-radius: 28px 94px 32px 60px;
  }

  .profile-cloud-small {
    width: 46%;
    border-width: 7px;
    border-radius: 24px 62px 24px 36px;
  }

  .profile-video {
    right: 0;
    width: 58%;
    border-width: 7px;
    border-radius: 58px 24px 36px 24px;
  }

  .send-button {
    width: 100%;
  }

  .section-contact::before {
    background-size: auto 46%;
  }

  .contact-layout {
    width: calc(100% - 46px);
    padding-top: 7rem;
    padding-bottom: 9.5rem;
  }

  .contact-kicker {
    margin-bottom: 1.25rem;
  }

  .contact-intro h2 {
    font-size: clamp(2.95rem, 13.4vw, 3.5rem);
    line-height: 1.08;
  }

  .contact-line {
    padding-bottom: 1rem;
  }

  .contact-line + .contact-line {
    padding-top: 1rem;
  }

  .contact-line-mail strong,
  .contact-line-place strong,
  .contact-line-github strong {
    font-size: clamp(1.55rem, 7.2vw, 1.9rem);
  }

  .contact-line-github strong {
    font-size: clamp(1.35rem, 6.15vw, 1.58rem);
    white-space: nowrap;
  }

  .contact-row {
    gap: 9px;
  }

  .contact-icon {
    width: 32px;
    height: 32px;
  }

  .contact-external {
    width: 28px;
    height: 28px;
  }

  .contact-form {
    gap: 0.85rem;
  }

  .contact-form input {
    height: 58px;
  }

  .contact-form textarea {
    min-height: 148px;
  }

  .send-button {
    min-height: 60px;
    padding: 0 22px;
    font-size: 1.05rem;
  }
}

@media (max-width: 1180px) {
  .studium-layout {
    min-height: auto;
    padding: 112px 28px 64px;
  }

  .studium-intro {
    width: min(100%, 390px);
  }

  .studium-intro h2 {
    font-size: clamp(3.25rem, 7vw, 4.85rem);
  }

  .studium-portrait {
    left: 30%;
    width: 44vw;
    height: min(68vh, 660px);
  }

  .education-panel {
    right: 28px;
    width: min(510px, 45vw);
  }

  .education-kicker {
    margin-left: 124px;
  }

  .education-timeline::before {
    left: 128px;
  }

  .education-item {
    grid-template-columns: 104px 50px minmax(0, 1fr);
    gap: 0;
  }

  .education-year {
    font-size: clamp(2.65rem, 4.1vw, 3.45rem);
  }
}

@media (max-width: 900px) {
  .studium-section {
    overflow: visible;
  }

  .studium-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.6rem;
    padding: 96px 24px 56px;
  }

  .studium-intro,
  .education-panel {
    position: relative;
    inset: auto;
    width: min(100%, 620px);
  }

  .studium-intro {
    padding-top: 0;
  }

  .studium-copy {
    width: min(100%, 420px);
  }

  .studium-contact {
    position: relative;
    left: 0;
    top: auto;
    margin-top: 2.2rem;
  }

  .studium-portrait {
    position: relative;
    left: auto;
    bottom: auto;
    width: min(100%, 420px);
    height: 520px;
    margin: -1.5rem auto -0.5rem;
  }

  .education-kicker {
    margin-left: 0;
  }

  .education-timeline {
    gap: 1.85rem;
  }

  .education-timeline::before {
    left: 116px;
  }

  .education-item {
    grid-template-columns: 94px 44px minmax(0, 1fr);
    min-height: auto;
  }
}

@media (max-width: 560px) {
  .studium-layout {
    padding: 86px 20px 48px;
  }

  .studium-intro h2 {
    font-size: clamp(2.75rem, 13vw, 4rem);
  }

  .studium-copy p,
  .education-content p {
    font-size: 0.94rem;
  }

  .studium-portrait {
    width: min(100%, 340px);
    height: 430px;
    margin-top: -1rem;
  }

  .education-timeline::before {
    left: 86px;
  }

  .education-item {
    grid-template-columns: 70px 34px minmax(0, 1fr);
  }

  .education-year {
    font-size: clamp(2rem, 10vw, 2.75rem);
  }

  .education-content h3 {
    font-size: 1.08rem;
  }

  .fit-logo {
    width: 66px;
    height: 58px;
    padding: 10px 8px;
    gap: 0.25rem;
  }

  .fit-logo svg {
    width: 30px;
    height: 30px;
  }

  .fit-logo span {
    font-size: 1rem;
  }

  .education-tags span {
    min-height: 26px;
    font-size: 0.72rem;
  }

  .certificate-list li {
    grid-template-columns: 26px minmax(0, 1fr);
    gap: 10px;
    padding: 0.45rem 0;
  }

  .certificate-list em {
    grid-column: 2;
    justify-self: start;
    margin-top: 0.2rem;
  }
}

/* Studium */
.studium-section {
  position: relative;
  min-height: 100svh;
  padding: 0;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(ellipse at 1% 100%, rgba(88, 158, 255, 1) 0%, rgba(55, 125, 235, 0.68) 9%, rgba(43, 101, 205, 0.28) 19%, rgba(10, 18, 34, 0) 32%),
    radial-gradient(ellipse at 60% 45%, rgba(54, 101, 174, 0.15) 0%, rgba(4, 9, 18, 0) 43%),
    #02070e;
}

.studium-section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  opacity: 0.42;
  background-image:
    linear-gradient(rgba(83, 126, 189, 0.11) 1px, transparent 1px),
    linear-gradient(90deg, rgba(83, 126, 189, 0.11) 1px, transparent 1px);
  background-position: 28.7vw 4.8vh;
  background-size: 55px 55px;
  mask-image: linear-gradient(90deg, transparent 0, black 27%, black 100%);
}

.studium-section::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse at 0% 100%, rgba(82, 154, 255, 0.72) 0%, rgba(63, 128, 233, 0.34) 13%, rgba(32, 75, 164, 0) 30%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.68) 0 23%, rgba(0, 0, 0, 0.12) 48%, rgba(0, 0, 0, 0.46) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.2), transparent 25%, rgba(0, 0, 0, 0.22));
  pointer-events: none;
}

.studium-layout {
  position: relative;
  width: min(1676px, 100%);
  min-height: max(100svh, 930px);
  margin: 0 auto;
  padding: 0;
}

.studium-intro {
  position: absolute;
  z-index: 3;
  left: clamp(52px, 5.95vw, 100px);
  top: clamp(72px, 10.4vh, 98px);
  width: 610px;
  min-width: 0;
  padding: 0;
}

.studium-intro h2 {
  max-width: 610px;
  color: #fbfbfd;
  font-size: clamp(4.15rem, 4.55vw, 4.8rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: 0;
  text-shadow:
    0 2px 0 rgba(255, 255, 255, 0.22),
    0 18px 42px rgba(0, 0, 0, 0.56);
}

.studium-intro h2 span {
  color: #65a1ff;
  text-shadow: 0 0 22px rgba(87, 146, 247, 0.68);
}

.studium-copy {
  width: 340px;
  margin-top: 2.7rem;
}

.studium-copy p {
  margin: 0;
  color: rgba(234, 237, 245, 0.8);
  font-size: 1.05rem;
  font-weight: 430;
  line-height: 1.48;
}

.studium-copy p + p {
  margin-top: 1.45rem;
}

.studium-portrait {
  position: absolute;
  z-index: 2;
  left: clamp(650px, 44vw, 760px);
  top: clamp(285px, 35vh, 330px);
  bottom: auto;
  width: clamp(140px, 9.9vw, 166px);
  height: clamp(230px, 27vw, 268px);
  overflow: visible;
  pointer-events: none;
  background: none;
  filter: drop-shadow(0 20px 28px rgba(0, 0, 0, 0.42));
}

.education-panel {
  position: absolute;
  z-index: 4;
  left: clamp(414px, 29vw, 486px);
  top: clamp(28px, 4.25vh, 40px);
  width: 1100px;
  height: 866px;
  color: #f8f8f8;
}

.education-stairs {
  position: absolute;
  inset: 0;
  width: 1100px;
  height: 866px;
  overflow: visible;
  fill: none;
  pointer-events: none;
}

.education-stairs path {
  stroke: rgba(126, 164, 224, 0.86);
  stroke-width: 1.35;
  vector-effect: non-scaling-stroke;
  filter: drop-shadow(0 0 9px rgba(100, 161, 255, 0.42));
}

.education-stairs circle {
  fill: #06101e;
  stroke: rgba(245, 249, 255, 0.98);
  stroke-width: 2.25;
  vector-effect: non-scaling-stroke;
  filter: drop-shadow(0 0 8px rgba(141, 185, 255, 0.78));
}

.education-timeline {
  position: absolute;
  inset: 0;
  display: block;
  height: auto;
  margin: 0;
  padding: 0;
  list-style: none;
}

.education-timeline::before {
  display: none;
}

.education-item {
  position: absolute;
  display: block;
  width: auto;
  min-height: 0;
}

.education-item-cert {
  left: 727px;
  top: 18px;
  width: 400px;
}

.education-item-fit {
  left: 575px;
  top: 220px;
  display: grid;
  grid-template-columns: 70px minmax(0, 430px);
  gap: 22px;
  align-items: start;
  width: 540px;
}

.education-item-maturita {
  left: 453px;
  top: 392px;
  display: grid;
  grid-template-columns: 118px minmax(0, 250px);
  gap: 24px;
  align-items: start;
  width: 390px;
}

.education-item-anglictina {
  left: 346px;
  top: 518px;
  display: grid;
  grid-template-columns: 64px minmax(0, 340px);
  gap: 40px;
  align-items: start;
  width: 460px;
}

.education-item-meta {
  left: 261px;
  top: 642px;
  display: grid;
  grid-template-columns: 120px minmax(0, 540px);
  gap: 24px;
  align-items: start;
  width: 680px;
}

.education-panel .education-item-meta {
  width: 680px;
}

.education-item-web-start {
  left: 126px;
  top: 767px;
  display: grid;
  grid-template-columns: 120px minmax(0, 540px);
  gap: 24px;
  align-items: start;
  width: 680px;
}

.education-year {
  color: #6da8ff;
  font-family: "Geist", ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(2.75rem, 2.95vw, 3.05rem);
  font-weight: 850;
  line-height: 0.96;
  letter-spacing: 0;
  text-align: right;
  text-shadow: 0 0 20px rgba(89, 149, 239, 0.42);
}

.education-content {
  padding: 0;
}

.education-content h3 {
  margin: 0 0 0.55rem;
  color: #ffffff;
  font-size: 1.32rem;
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: 0;
}

.education-content p {
  max-width: 370px;
  margin: 0;
  color: rgba(229, 232, 240, 0.72);
  font-size: 0.96rem;
  font-weight: 420;
  line-height: 1.45;
}

.education-item-web-start .education-content h3 {
  white-space: nowrap;
}

.education-item-web-start .education-content p {
  max-width: 440px;
}

.education-item-meta .education-content p {
  max-width: 440px;
}

.education-meta-heading {
  display: flex;
  align-items: center;
  gap: 0.58rem;
  white-space: nowrap;
}

.education-meta-logo {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 24px;
  color: #78aeff;
  flex: 0 0 auto;
  filter: drop-shadow(0 0 12px rgba(92, 154, 255, 0.45));
}

.education-meta-logo svg {
  width: 38px;
  height: 26px;
  fill: currentColor;
}

.fit-logo {
  display: grid;
  place-items: center;
  width: 70px;
  height: 70px;
  padding: 0;
  color: #6fb0ff;
  background: rgba(17, 29, 52, 0.55);
  border: 1px solid rgba(139, 174, 228, 0.52);
  border-radius: 8px;
  font-size: 1.7rem;
  font-weight: 850;
  line-height: 1;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 24px 54px rgba(0, 0, 0, 0.25);
}

.education-item-fit .education-content {
  padding-top: 8px;
}

.education-item-anglictina .education-year {
  text-align: left;
}

.education-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: -0.2rem 0 0.65rem;
}

.education-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 29px;
  padding: 0 0.78rem;
  color: #d8e8ff;
  background: rgba(49, 100, 178, 0.45);
  border: 1px solid rgba(120, 167, 232, 0.18);
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 650;
  line-height: 1;
}

.certificate-list {
  display: grid;
  gap: 0;
  width: 374px;
  margin: 0.9rem 0 0;
  padding: 0;
  list-style: none;
}

.certificate-list li {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  min-height: 49px;
  border-bottom: 1px solid rgba(215, 226, 245, 0.14);
}

.certificate-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.92);
  font-family: "Geist", ui-sans-serif, system-ui, sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1;
}

.meta-icon {
  border: 0;
  font-family: "Geist", ui-sans-serif, system-ui, sans-serif;
  width: 34px;
  height: 24px;
  color: #ffffff;
}

.meta-icon svg {
  width: 34px;
  height: 24px;
  fill: currentColor;
}

.certificate-list strong,
.certificate-list small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.certificate-list strong {
  color: #f4f7ff;
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1.15;
}

.certificate-list small {
  margin-top: 0.12rem;
  color: rgba(229, 232, 240, 0.7);
  font-size: 0.76rem;
  line-height: 1.2;
}

.certificate-list em {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  padding: 0.38rem 0.65rem;
  color: #f4f8ff;
  background: rgba(41, 75, 126, 0.58);
  border: 1px solid rgba(113, 159, 235, 0.16);
  border-radius: 999px;
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 700;
  line-height: 1;
}

.certificate-list em::after {
  content: "";
  width: 0.88rem;
  height: 0.88rem;
  background: #4b8dff;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
  clip-path: polygon(14% 47%, 31% 30%, 45% 45%, 72% 17%, 88% 34%, 45% 78%);
}

.certificate-showcase {
  position: relative;
  width: 374px;
  margin-top: 0.95rem;
}

.certificate-list-featured {
  margin-top: 0;
}

.certificate-list .certificate-entry {
  position: relative;
  display: block;
  min-height: 0;
  border-bottom: 1px solid rgba(215, 226, 245, 0.14);
}

.certificate-link {
  position: relative;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  width: 100%;
  min-height: 49px;
  padding: 0;
  color: inherit;
  background: transparent;
  border: 0;
  font: inherit;
  text-align: left;
  cursor: default;
}

.certificate-link:focus-visible {
  outline: 2px solid rgba(109, 168, 255, 0.82);
  outline-offset: 4px;
  border-radius: 6px;
}

.certificate-copy {
  min-width: 0;
}

.certificate-hover-preview {
  position: absolute;
  z-index: 40;
  top: 50%;
  right: calc(100% + 18px);
  display: block;
  width: 310px;
  aspect-ratio: 1.42;
  padding: 6px;
  opacity: 0;
  pointer-events: none;
  background: rgba(5, 9, 17, 0.94);
  border: 1px solid rgba(126, 164, 224, 0.35);
  border-radius: 8px;
  box-shadow: 0 26px 72px rgba(0, 0, 0, 0.54), 0 0 28px rgba(91, 149, 239, 0.2);
  transform: translateY(-50%) translateX(8px) scale(0.98);
  transition: opacity 160ms ease, transform 160ms ease;
}

.certificate-hover-preview img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #ffffff;
  border-radius: 5px;
}

.certificate-link:hover .certificate-hover-preview,
.certificate-link:focus-visible .certificate-hover-preview {
  opacity: 1;
  transform: translateY(-50%) translateX(0) scale(1);
}

.certificate-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 38px;
  margin-top: 0.7rem;
  padding: 0 0.78rem;
  color: #e9f2ff;
  background: rgba(50, 94, 160, 0.72);
  border: 1px solid rgba(130, 177, 244, 0.26);
  border-radius: 8px;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 780;
  cursor: pointer;
}

.certificate-toggle span:last-child {
  display: grid;
  place-items: center;
  min-width: 1.55rem;
  height: 1.55rem;
  color: #dcecff;
  background: rgba(7, 15, 29, 0.4);
  border-radius: 999px;
  font-size: 0.72rem;
}

.certificate-archive {
  position: absolute;
  z-index: 20;
  top: calc(100% + 0.7rem);
  left: 0;
  display: grid;
  width: 100%;
  max-height: none;
  margin: 0;
  padding: 0 0.78rem;
  overflow: visible;
  background: rgba(4, 8, 15, 0.96);
  border: 1px solid rgba(126, 164, 224, 0.26);
  border-radius: 8px;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.48);
  backdrop-filter: blur(18px);
}

.certificate-archive[hidden] {
  display: none;
}

@media (max-width: 1480px) {
  .education-item-cert {
    left: 585px;
    width: 350px;
  }

  .certificate-showcase {
    width: 350px;
  }
}

@media (hover: none) {
  .certificate-hover-preview {
    display: none;
  }
}

@media (max-width: 1180px) {
  .studium-section {
    overflow: visible;
  }

  .studium-layout {
    min-height: auto;
    padding: 96px 24px 64px;
  }

  .studium-intro,
  .education-panel {
    position: relative;
    inset: auto;
  }

  .studium-intro {
    width: min(100%, 560px);
  }

  .studium-intro h2 {
    font-size: clamp(3.3rem, 8vw, 4.8rem);
  }

  .studium-copy {
    width: min(100%, 420px);
  }

  .studium-portrait {
    display: none;
  }

  .education-panel {
    width: min(100%, 760px);
    height: auto;
    margin-top: 4rem;
  }

  .education-stairs {
    display: none;
  }

  .education-timeline {
    position: relative;
    display: grid;
    gap: 2rem;
    width: 100%;
    justify-items: start;
  }

  .education-item,
  .education-item-fit,
  .education-item-maturita,
  .education-item-anglictina,
  .education-item-web,
  .education-item-meta,
  .education-item-web-start {
    position: relative;
    inset: auto;
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr);
    gap: 1.25rem;
    width: 100%;
    max-width: 660px;
  }

  .education-item-cert {
    display: block;
    width: 100%;
    max-width: 520px;
  }

  .certificate-showcase {
    width: min(100%, 520px);
  }

  .certificate-archive {
    position: static;
    width: 100%;
    max-height: none;
    margin-top: 0.75rem;
  }

  .education-timeline > .education-item {
    width: 100%;
    max-width: 660px;
  }

  .education-year {
    font-size: clamp(2.5rem, 7vw, 3.3rem);
  }

  .education-item-web-start .education-content h3 {
    white-space: normal;
  }
}

@media (max-width: 560px) {
  .studium-layout {
    padding: 86px 20px 48px;
  }

  .studium-copy p,
  .education-content p {
    font-size: 0.94rem;
  }

  .education-item,
  .education-item-fit,
  .education-item-maturita,
  .education-item-anglictina,
  .education-item-web,
  .education-item-meta,
  .education-item-web-start {
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 0.7rem;
  }

  .education-year {
    font-size: 2.35rem;
  }

  .fit-logo {
    width: 64px;
    height: 58px;
    font-size: 1.2rem;
  }

  .certificate-list {
    width: min(100%, 380px);
  }

  .certificate-list li {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 10px;
    padding: 0.45rem 0;
  }

  .certificate-list strong,
  .certificate-list small {
    white-space: normal;
  }

  .certificate-list em {
    grid-column: 2;
    justify-self: start;
  }
}

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

.process-section-legacy {
  display: none;
}

.section.companies-section {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: center;
  overflow: hidden;
  padding: clamp(6.5rem, 9vw, 9.5rem) clamp(1.25rem, 4.4vw, 4.5rem);
  color: #151513;
  background:
    linear-gradient(90deg, rgba(18, 18, 17, 0.055) 1px, transparent 1px),
    linear-gradient(180deg, rgba(18, 18, 17, 0.045) 1px, transparent 1px),
    radial-gradient(circle at 84% 18%, rgba(193, 232, 92, 0.2), transparent 27rem),
    linear-gradient(180deg, #f2eee5 0%, #e9e1d2 100%);
  background-size: 72px 72px, 72px 72px, auto, auto;
}

.section.companies-section:nth-of-type(odd) {
  background:
    linear-gradient(90deg, rgba(18, 18, 17, 0.055) 1px, transparent 1px),
    linear-gradient(180deg, rgba(18, 18, 17, 0.045) 1px, transparent 1px),
    radial-gradient(circle at 84% 18%, rgba(193, 232, 92, 0.2), transparent 27rem),
    linear-gradient(180deg, #f2eee5 0%, #e9e1d2 100%);
  background-size: 72px 72px, 72px 72px, auto, auto;
}

.section.companies-section::before {
  content: "";
  position: absolute;
  left: clamp(1rem, 4vw, 4.25rem);
  top: clamp(5.5rem, 9vw, 8rem);
  bottom: clamp(5.5rem, 9vw, 8rem);
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(21, 21, 19, 0.26), transparent);
}

.section.companies-section::after {
  content: "builder";
  position: absolute;
  right: clamp(1rem, 3.8vw, 4rem);
  bottom: clamp(1.5rem, 3vw, 2.7rem);
  color: rgba(21, 21, 19, 0.075);
  font-size: clamp(5rem, 14vw, 16rem);
  font-weight: 840;
  line-height: 0.72;
  pointer-events: none;
}

.companies-shell {
  position: relative;
  z-index: 1;
  width: min(1440px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 0.78fr);
  gap: clamp(2.5rem, 5vw, 6.5rem);
  align-items: center;
}

.companies-copy {
  max-width: 760px;
}

.companies-copy .section-kicker {
  margin-bottom: clamp(1.2rem, 2.3vw, 2rem);
  color: rgba(21, 21, 19, 0.68);
}

.companies-copy h2 {
  max-width: 11ch;
  color: #151513;
  font-size: clamp(4.8rem, 9.2vw, 9.4rem);
  font-weight: 860;
  line-height: 0.84;
}

.companies-copy > p {
  max-width: 39rem;
  margin: clamp(1.8rem, 3.2vw, 2.7rem) 0 0;
  color: rgba(21, 21, 19, 0.74);
  font-size: clamp(1.08rem, 1.45vw, 1.42rem);
  line-height: 1.56;
}

.companies-note {
  width: min(100%, 560px);
  margin-top: clamp(2rem, 4vw, 3.6rem);
  padding: 1.35rem 1.45rem;
  display: grid;
  grid-template-columns: minmax(110px, 0.34fr) 1fr;
  gap: 1.2rem;
  align-items: start;
  color: #f5f2ec;
  background: #191917;
  border: 1px solid rgba(21, 21, 19, 0.18);
  border-radius: 8px;
  box-shadow: 0 24px 60px rgba(34, 30, 22, 0.18);
}

.companies-note span {
  color: #c7ef5c;
  font-size: 0.78rem;
  font-weight: 820;
  line-height: 1.1;
  text-transform: uppercase;
}

.companies-note p {
  margin: 0;
  color: rgba(245, 242, 236, 0.78);
  line-height: 1.5;
}

.companies-board {
  position: relative;
  min-height: clamp(520px, 52vw, 700px);
}

.company-card {
  position: absolute;
  width: min(100%, 430px);
  padding: clamp(1.35rem, 2vw, 1.85rem);
  border-radius: 8px;
  border: 1px solid rgba(21, 21, 19, 0.14);
  box-shadow: 0 28px 72px rgba(35, 30, 21, 0.2);
}

.company-card-primary {
  top: 0;
  right: 0;
  z-index: 3;
  color: #151513;
  background: #c7ef5c;
  transform: rotate(1.5deg);
}

.company-card-dark {
  left: 0;
  top: 29%;
  z-index: 2;
  color: #f6f1e7;
  background: #1b1b19;
  border-color: rgba(245, 242, 236, 0.15);
  transform: rotate(-2deg);
}

.company-card-light {
  right: clamp(0rem, 5vw, 4rem);
  bottom: 0;
  z-index: 1;
  color: #151513;
  background: #f7f1e7;
  transform: rotate(2.5deg);
}

.company-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid currentColor;
}

.company-card-top span {
  font-size: 0.82rem;
  font-weight: 820;
  opacity: 0.64;
}

.company-card-top strong {
  font-size: clamp(1.65rem, 2.4vw, 2.35rem);
  line-height: 0.95;
}

.company-card p {
  min-height: 5rem;
  margin: clamp(1.2rem, 2vw, 1.65rem) 0 1.4rem;
  color: currentColor;
  font-size: clamp(1rem, 1.2vw, 1.15rem);
  line-height: 1.45;
  opacity: 0.82;
}

.company-card ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.company-card li {
  padding: 0.42rem 0.58rem;
  font-size: 0.78rem;
  font-weight: 760;
  line-height: 1;
  border: 1px solid currentColor;
  border-radius: 8px;
  opacity: 0.76;
}

.companies-proof {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: clamp(2.4rem, 4vw, 4.4rem);
  border-top: 1px solid rgba(21, 21, 19, 0.22);
  border-bottom: 1px solid rgba(21, 21, 19, 0.22);
}

.companies-proof div {
  min-height: 142px;
  padding: clamp(1.25rem, 2.4vw, 2rem);
  display: grid;
  align-content: center;
  border-right: 1px solid rgba(21, 21, 19, 0.18);
}

.companies-proof div:last-child {
  border-right: 0;
}

.companies-proof strong {
  display: block;
  color: #151513;
  font-size: clamp(1.55rem, 3vw, 3.15rem);
  line-height: 0.94;
}

.companies-proof span {
  max-width: 22rem;
  margin-top: 0.75rem;
  color: rgba(21, 21, 19, 0.66);
  font-size: clamp(0.92rem, 1.08vw, 1rem);
  line-height: 1.42;
}

@media (max-width: 980px) {
  .companies-section {
    min-height: auto;
    padding: 6.5rem 20px;
  }

  .companies-section::before,
  .companies-section::after {
    display: none;
  }

  .companies-shell {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }

  .companies-copy h2 {
    max-width: 12ch;
    font-size: clamp(4.2rem, 14vw, 7rem);
  }

  .companies-board {
    min-height: auto;
    display: grid;
    gap: 1rem;
  }

  .company-card,
  .company-card-primary,
  .company-card-dark,
  .company-card-light {
    position: relative;
    inset: auto;
    width: 100%;
    transform: none;
  }

  .companies-proof {
    grid-template-columns: 1fr;
  }

  .companies-proof div {
    min-height: 120px;
    border-right: 0;
    border-bottom: 1px solid rgba(21, 21, 19, 0.18);
  }

  .companies-proof div:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 560px) {
  .companies-section {
    padding: 5.8rem 16px;
  }

  .companies-copy h2 {
    font-size: clamp(3.75rem, 17vw, 5.2rem);
  }

  .companies-copy > p {
    font-size: 1rem;
  }

  .companies-note {
    grid-template-columns: 1fr;
  }

  .company-card {
    padding: 1.2rem;
  }

  .company-card p {
    min-height: auto;
  }
}

.section.next-section,
.section.next-section:nth-of-type(odd) {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: center;
  overflow: hidden;
  padding: clamp(6.8rem, 8.5vw, 9rem) clamp(1.25rem, 4vw, 4.2rem);
  color: #f6f4ef;
  background:
    radial-gradient(ellipse at 4% 100%, rgba(72, 145, 255, 0.42) 0%, rgba(35, 88, 178, 0.2) 20%, rgba(5, 8, 13, 0) 46%),
    radial-gradient(circle at 82% 10%, rgba(146, 190, 255, 0.16), transparent 32rem),
    radial-gradient(circle at 58% 44%, rgba(36, 79, 145, 0.13), transparent 26rem),
    linear-gradient(180deg, #05070b 0%, #0a0f18 46%, #050608 100%);
  isolation: isolate;
}

.section.next-section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  opacity: 0.36;
  background-image:
    linear-gradient(rgba(132, 177, 244, 0.052) 1px, transparent 1px),
    linear-gradient(90deg, rgba(132, 177, 244, 0.048) 1px, transparent 1px);
  background-position: center;
  background-size: 58px 58px;
  mask-image: linear-gradient(180deg, transparent 0%, black 18%, black 84%, transparent 100%);
  pointer-events: none;
}

.section.next-section::after {
  content: "";
  position: absolute;
  right: -7vw;
  bottom: -8rem;
  z-index: -1;
  width: min(820px, 72vw);
  aspect-ratio: 1.65;
  opacity: 0.32;
  background: url("https://hajnzhpmyfqmldjuhoyt.supabase.co/storage/v1/object/public/tadeasz/clouds_contact.png") center / contain no-repeat;
  filter: saturate(0.82) contrast(1.08);
  pointer-events: none;
}

.next-layout {
  position: relative;
  z-index: 1;
  width: min(1480px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(1rem, 1.85vw, 1.55rem);
  align-items: center;
}

.next-copy {
  grid-column: 1 / 5;
  align-self: center;
}

.next-copy .section-kicker {
  margin-bottom: clamp(1.1rem, 2vw, 1.7rem);
  color: #8bbdff;
}

.next-copy h2 {
  max-width: 7.6ch;
  color: #fbf8f1;
  font-size: clamp(4.9rem, 8.5vw, 9.1rem);
  font-weight: 900;
  line-height: 0.84;
  text-shadow: 0 26px 66px rgba(0, 0, 0, 0.5);
}

.next-copy > p {
  max-width: 30rem;
  margin: clamp(1.45rem, 2.6vw, 2.25rem) 0 0;
  color: rgba(229, 236, 249, 0.76);
  font-size: clamp(1.08rem, 1.52vw, 1.34rem);
  font-weight: 620;
  line-height: 1.52;
}

.next-copy-note {
  color: rgba(221, 230, 244, 0.66) !important;
  font-size: clamp(0.96rem, 1.07vw, 1.04rem) !important;
  font-weight: 420 !important;
  line-height: 1.68 !important;
}

.next-copy-rule {
  display: block;
  width: min(180px, 42vw);
  height: 2px;
  margin-top: clamp(1.8rem, 3vw, 2.5rem);
  background: linear-gradient(90deg, #8bbdff, rgba(139, 189, 255, 0));
  box-shadow: 0 0 18px rgba(92, 157, 255, 0.45);
}

.next-console {
  position: relative;
  grid-column: 5 / -1;
  min-height: clamp(560px, 46vw, 700px);
  isolation: isolate;
}

.next-console::before {
  content: "";
  position: absolute;
  inset: 7% 1% 8% 5%;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(139, 189, 255, 0.14) 1px, transparent 1px),
    linear-gradient(180deg, rgba(139, 189, 255, 0.1) 1px, transparent 1px),
    radial-gradient(circle at 44% 48%, rgba(71, 139, 247, 0.18), transparent 20rem),
    rgba(5, 9, 16, 0.42);
  background-size: 52px 52px, 52px 52px, auto, auto;
  border: 1px solid rgba(139, 189, 255, 0.1);
  border-radius: 30px;
  box-shadow: inset 0 0 80px rgba(36, 88, 171, 0.09);
}

.next-console::after {
  content: "";
  position: absolute;
  inset: 9% 3% 11% 8%;
  z-index: -1;
  border: 1px solid rgba(139, 189, 255, 0.1);
  border-radius: 22px;
  pointer-events: none;
}

.next-builder-card {
  position: absolute;
  left: 3.5%;
  top: 50%;
  z-index: 4;
  width: clamp(230px, 20vw, 284px);
  padding: 1.25rem;
  color: #f8f5ef;
  background:
    radial-gradient(circle at 92% 12%, rgba(117, 173, 255, 0.18), transparent 8rem),
    linear-gradient(145deg, rgba(22, 31, 48, 0.96), rgba(8, 13, 22, 0.98));
  border: 1px solid rgba(148, 187, 245, 0.22);
  border-radius: 22px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 32px 86px rgba(0, 0, 0, 0.42);
  transform: translateY(-50%);
}

.next-builder-card strong,
.next-builder-card p,
.next-builder-card em {
  display: block;
  margin: 0;
}

.next-builder-card strong {
  margin-top: 3.9rem;
  color: #fbf8f1;
  font-size: clamp(1.45rem, 2.2vw, 2rem);
  font-weight: 880;
  line-height: 1;
}

.next-builder-card p {
  margin-top: 0.55rem;
  color: rgba(226, 236, 250, 0.78);
  font-size: 0.95rem;
  line-height: 1.2;
}

.next-builder-card em {
  margin-top: 1.2rem;
  color: #8bbdff;
  font-size: 0.76rem;
  font-style: normal;
  font-weight: 820;
  text-transform: uppercase;
}

.next-focus-mark {
  position: absolute;
  left: 1.25rem;
  top: 1.25rem;
  width: 54px;
  height: 54px;
  border: 1px solid rgba(139, 189, 255, 0.34);
  border-radius: 16px;
  box-shadow: inset 0 0 28px rgba(73, 146, 255, 0.14), 0 0 26px rgba(73, 146, 255, 0.12);
}

.next-focus-mark::before,
.next-focus-mark::after {
  content: "";
  position: absolute;
  inset: 50% auto auto 50%;
  width: 27px;
  height: 1px;
  background: #8bbdff;
  transform: translate(-50%, -50%);
}

.next-focus-mark::after {
  width: 1px;
  height: 27px;
}

.next-connector {
  position: absolute;
  left: 28%;
  right: 13%;
  top: 50%;
  z-index: 2;
  height: 2px;
  background: linear-gradient(90deg, rgba(139, 189, 255, 0), rgba(139, 189, 255, 0.78), rgba(139, 189, 255, 0.12));
  box-shadow: 0 0 18px rgba(85, 151, 255, 0.45);
}

.next-connector::before,
.next-connector::after {
  content: "";
  position: absolute;
  right: 0;
  width: 2px;
  background: linear-gradient(180deg, rgba(139, 189, 255, 0), rgba(139, 189, 255, 0.62), rgba(139, 189, 255, 0));
  box-shadow: 0 0 18px rgba(85, 151, 255, 0.36);
}

.next-connector::before {
  bottom: 0;
  height: 168px;
}

.next-connector::after {
  top: 0;
  height: 168px;
}

.next-connector-dot {
  position: absolute;
  right: -5px;
  width: 11px;
  height: 11px;
  background: #8bbdff;
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(139, 189, 255, 0.12), 0 0 24px rgba(139, 189, 255, 0.92);
}

.next-connector-dot-one {
  top: -174px;
}

.next-connector-dot-two {
  top: -5px;
}

.next-connector-dot-three {
  bottom: -174px;
}

.next-lanes {
  position: absolute;
  right: 0;
  top: 7%;
  bottom: 7%;
  z-index: 3;
  width: min(66%, 680px);
  display: grid;
  grid-template-rows: repeat(3, 1fr);
  gap: clamp(0.9rem, 1.5vw, 1.2rem);
  align-content: stretch;
}

.next-lane {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 74px;
  gap: 1rem;
  align-items: center;
  padding: clamp(1.2rem, 2vw, 1.65rem);
  color: #f7f5ef;
  background:
    radial-gradient(circle at 95% 18%, rgba(101, 163, 255, 0.15), transparent 11rem),
    linear-gradient(145deg, rgba(18, 27, 43, 0.96), rgba(7, 11, 19, 0.96));
  border: 1px solid rgba(139, 189, 255, 0.18);
  border-radius: 22px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045), 0 26px 72px rgba(0, 0, 0, 0.28);
}

.next-lane:nth-child(1) {
  transform: translateX(-26px);
}

.next-lane:nth-child(2) {
  transform: translateX(10px);
}

.next-lane:nth-child(3) {
  transform: translateX(-12px);
}

.next-lane span {
  display: block;
  color: #8bbdff;
  font-size: 0.78rem;
  font-weight: 860;
  line-height: 1;
}

.next-lane h3 {
  margin: 0.55rem 0 0;
  color: #fbf8f1;
  font-size: clamp(1.25rem, 1.78vw, 1.75rem);
  line-height: 1;
}

.next-lane p {
  max-width: 31rem;
  margin: 0.75rem 0 0;
  color: rgba(221, 230, 244, 0.66);
  font-size: clamp(0.84rem, 0.94vw, 0.94rem);
  line-height: 1.48;
}

.next-lane-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  justify-self: end;
  border: 1px solid rgba(139, 189, 255, 0.26);
  border-radius: 18px;
  box-shadow: inset 0 0 28px rgba(84, 151, 255, 0.11), 0 0 24px rgba(84, 151, 255, 0.08);
}

.next-lane-icon::before,
.next-lane-icon::after {
  content: "";
  position: absolute;
}

.next-lane-icon-cube::before {
  width: 24px;
  height: 24px;
  border: 2px solid #8bbdff;
  transform: rotate(45deg);
}

.next-lane-icon-cube::after {
  width: 8px;
  height: 8px;
  background: #8bbdff;
  border-radius: 50%;
}

.next-lane-icon-layers::before,
.next-lane-icon-layers::after {
  width: 26px;
  height: 18px;
  border: 2px solid #8bbdff;
  border-radius: 6px;
}

.next-lane-icon-layers::before {
  transform: translate(-5px, -5px);
}

.next-lane-icon-layers::after {
  transform: translate(5px, 5px);
}

.next-lane-icon-node::before {
  width: 33px;
  height: 2px;
  background: #8bbdff;
  transform: rotate(-28deg);
}

.next-lane-icon-node::after {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 21% 50%, #8bbdff 0 4px, transparent 5px),
    radial-gradient(circle at 78% 30%, #8bbdff 0 4px, transparent 5px),
    radial-gradient(circle at 76% 76%, #8bbdff 0 4px, transparent 5px);
}

.next-metrics {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-top: clamp(2rem, 3vw, 3rem);
  overflow: hidden;
  background: rgba(139, 189, 255, 0.18);
  border: 1px solid rgba(139, 189, 255, 0.16);
  border-radius: 24px;
  box-shadow: 0 26px 74px rgba(0, 0, 0, 0.22);
}

.next-metrics article {
  min-height: 170px;
  padding: clamp(1.2rem, 2vw, 1.65rem);
  background:
    linear-gradient(180deg, rgba(15, 22, 35, 0.98), rgba(7, 11, 18, 0.98));
}

.next-metrics span {
  display: block;
  color: #75adff;
  font-size: 0.76rem;
  font-weight: 860;
  line-height: 1;
}

.next-metrics h3 {
  max-width: 13rem;
  margin: 2.7rem 0 0;
  color: #fbf8f1;
  font-size: clamp(1.05rem, 1.35vw, 1.35rem);
  line-height: 1;
}

.next-metrics p {
  margin: 0.72rem 0 0;
  color: rgba(221, 230, 244, 0.62);
  font-size: clamp(0.78rem, 0.9vw, 0.9rem);
  line-height: 1.46;
}

@media (max-width: 980px) {
  .section.next-section,
  .section.next-section:nth-of-type(odd) {
    min-height: auto;
    padding: 6.5rem 20px;
  }

  .section.next-section::after {
    width: min(540px, 105vw);
    right: -28vw;
    bottom: -6rem;
  }

  .next-layout {
    grid-template-columns: 1fr;
    gap: 1.55rem;
  }

  .next-copy,
  .next-console,
  .next-metrics {
    grid-column: auto;
  }

  .next-copy h2 {
    max-width: 9ch;
  }

  .next-console {
    min-height: auto;
    display: grid;
    gap: 1rem;
    margin-top: 1rem;
  }

  .next-console::before,
  .next-console::after,
  .next-connector {
    display: none;
  }

  .next-builder-card,
  .next-lanes {
    position: relative;
    inset: auto;
    width: 100%;
    transform: none;
  }

  .next-builder-card {
    min-height: 210px;
  }

  .next-lanes {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    gap: 1rem;
  }

  .next-lane:nth-child(1),
  .next-lane:nth-child(2),
  .next-lane:nth-child(3) {
    transform: none;
  }

  .next-metrics {
    grid-template-columns: repeat(2, 1fr);
    margin-top: 0.45rem;
  }
}

@media (max-width: 560px) {
  .section.next-section,
  .section.next-section:nth-of-type(odd) {
    padding: 5.8rem 16px;
  }

  .next-copy h2 {
    font-size: clamp(3.8rem, 16vw, 5.2rem);
  }

  .next-copy > p,
  .next-copy-note,
  .next-lane p,
  .next-metrics p {
    font-size: 0.94rem;
  }

  .next-builder-card,
  .next-lane,
  .next-metrics {
    border-radius: 22px;
  }

  .next-lane {
    grid-template-columns: 1fr;
  }

  .next-lane-icon {
    justify-self: start;
    width: 54px;
    height: 54px;
    order: -1;
  }

  .next-metrics {
    grid-template-columns: 1fr;
  }

  .next-metrics article {
    min-height: auto;
  }

  .next-metrics h3 {
    margin-top: 1.7rem;
  }
}

.principles-section,
.principles-section:nth-of-type(odd) {
  position: relative;
  min-height: 100vh;
  display: grid;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  padding: clamp(1.5rem, 2.25vw, 2.4rem);
  color: #f7f8ff;
  background:
    radial-gradient(circle at 76% 64%, rgba(41, 91, 184, 0.16), transparent 34rem),
    radial-gradient(circle at 11% 88%, rgba(52, 104, 214, 0.11), transparent 30rem),
    #03070e;
}

.principles-layout {
  position: relative;
  z-index: 1;
  width: min(1596px, 100%);
  height: calc(100vh - clamp(3rem, 4.5vw, 4.8rem));
  max-height: 862px;
  min-height: 720px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(360px, 0.46fr) minmax(720px, 1fr);
  gap: 10px;
  align-items: stretch;
}

.principles-copy,
.principle-card {
  position: relative;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  color: #f5f7ff;
  background:
    linear-gradient(140deg, rgba(11, 17, 28, 0.94), rgba(4, 9, 18, 0.92) 52%, rgba(3, 8, 15, 0.96)),
    #050912;
  border: 1px solid rgba(132, 157, 206, 0.18);
  border-radius: 13px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.035),
    inset 0 0 56px rgba(55, 102, 188, 0.035),
    0 20px 65px rgba(0, 0, 0, 0.18);
}

.principles-copy::before,
.principle-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 19% 9%, rgba(102, 143, 222, 0.1), transparent 12rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent 34%);
}

.principles-copy::after {
  content: "";
  position: absolute;
  left: -16%;
  right: -8%;
  bottom: -15%;
  z-index: 0;
  height: 59%;
  pointer-events: none;
  background: var(--principles-arc) left bottom / 118% auto no-repeat;
  opacity: 0.82;
  filter: saturate(0.98) brightness(0.72);
  mask-image: linear-gradient(180deg, transparent 0%, #000 22%, #000 100%);
}

.principles-copy {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: clamp(4.2rem, 5vw, 5.05rem) clamp(2.4rem, 3.4vw, 3.45rem);
}

.principles-copy > * {
  position: relative;
  z-index: 1;
}

.principles-copy .section-kicker {
  margin: 0 0 clamp(1.65rem, 2vw, 1.9rem);
  color: #f3f7ff;
  font-size: clamp(0.9rem, 1vw, 1.02rem);
  font-weight: 500;
  letter-spacing: 0.38em;
  line-height: 1;
}

.principles-copy .section-kicker::first-letter,
.principles-copy .section-kicker span {
  color: #6595ff;
}

.principles-copy h2 {
  max-width: 13ch;
  margin: 0;
  color: #f8f8fb;
  font-family: "Geist", ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(2.95rem, 3.18vw, 3.38rem);
  font-weight: 650;
  line-height: 1.06;
  letter-spacing: 0;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.32),
    0 18px 52px rgba(0, 0, 0, 0.55);
}

.principles-copy h2::first-line {
  color: #78a1ff;
}

.principles-copy > p {
  max-width: 25rem;
  margin: clamp(1.55rem, 2vw, 2rem) 0 0;
  color: rgba(224, 229, 240, 0.78);
  font-size: clamp(0.98rem, 1.1vw, 1.12rem);
  font-weight: 400;
  line-height: 1.55;
}

.principles-copy > p:not(.section-kicker)::before {
  content: "";
  display: block;
  width: 31px;
  height: 2px;
  margin: 0 0 clamp(1.28rem, 1.6vw, 1.58rem);
  background: #6795ff;
  box-shadow: 0 0 14px rgba(103, 149, 255, 0.42);
}

.principles-statement {
  display: none;
}

.principles-list {
  height: 100%;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(310px, 0.96fr) minmax(145px, 0.45fr) minmax(260px, 0.8fr);
  grid-template-rows: minmax(285px, 1fr) minmax(205px, 0.7fr) minmax(170px, 0.57fr);
  gap: 10px;
  min-width: 0;
}

.principle-card {
  min-height: 0;
  display: flex;
  align-items: flex-start;
  padding: clamp(1.65rem, 2.2vw, 2.45rem);
}

.principle-card:nth-child(1) {
  grid-column: 1;
  grid-row: 1;
  justify-content: flex-end;
  padding-top: clamp(7.1rem, 8vw, 8.2rem);
  padding-left: clamp(2rem, 3vw, 3.4rem);
  padding-right: clamp(2.2rem, 3vw, 3.15rem);
}

.principle-card:nth-child(2) {
  grid-column: 2 / 4;
  grid-row: 1;
  padding-top: clamp(7.1rem, 8vw, 8.2rem);
  padding-left: clamp(13.4rem, 14vw, 14.7rem);
}

.principle-card:nth-child(3) {
  grid-column: 1 / 3;
  grid-row: 2;
  align-items: flex-end;
  padding: clamp(1.75rem, 2.2vw, 2.25rem);
}

.principle-card:nth-child(4) {
  grid-column: 1 / 3;
  grid-row: 3;
  align-items: center;
  padding-left: clamp(13.2rem, 14vw, 14.5rem);
}

.principle-card:nth-child(5) {
  grid-column: 3;
  grid-row: 2 / 4;
  align-items: center;
  padding-top: clamp(7.2rem, 8vw, 8.6rem);
  padding-left: clamp(1.7rem, 2vw, 2rem);
}

.principle-card:nth-child(2)::after,
.principle-card:nth-child(3)::after,
.principle-card:nth-child(4)::after,
.principle-card:nth-child(5)::after {
  content: "";
  position: absolute;
  z-index: 0;
  pointer-events: none;
}

.principle-card:nth-child(2)::after {
  left: -6%;
  right: -4%;
  bottom: -64%;
  height: 100%;
  border-radius: 50%;
  border-top: 1px solid rgba(109, 154, 255, 0.95);
  background: radial-gradient(ellipse at 52% 0%, rgba(72, 121, 255, 0.34), transparent 46%);
  box-shadow: 0 -12px 28px rgba(79, 126, 255, 0.28);
  transform: rotate(6deg);
}

.principle-card:nth-child(3)::after {
  top: -5%;
  right: -5%;
  bottom: -8%;
  width: 40%;
  background: var(--principles-cubes) right center / auto 94% no-repeat;
  opacity: 0.86;
  filter: saturate(0.98) brightness(0.78);
  mask-image: linear-gradient(90deg, transparent 0%, #000 28%, #000 100%);
}

.principle-card:nth-child(4)::after {
  right: -3%;
  top: -14%;
  width: 48%;
  height: 140%;
  background: var(--principles-streaks) right center / contain no-repeat;
  opacity: 0.42;
  filter: saturate(0.9) brightness(0.68);
  mask-image: linear-gradient(90deg, transparent 0%, #000 24%, #000 100%);
}

.principle-card:nth-child(5)::after {
  inset: 1.5rem -14% -2.2rem -16%;
  background: var(--principles-starburst) right bottom / 112% auto no-repeat;
  opacity: 0.58;
  filter: saturate(0.95) brightness(0.72);
  mask-image: linear-gradient(180deg, transparent 0%, #000 22%, #000 100%);
  transform: translate(8%, 18%);
}

.principle-number {
  position: absolute;
  z-index: 1;
  top: clamp(1.3rem, 2vw, 2.1rem);
  left: clamp(1.6rem, 2.2vw, 2.55rem);
  color: rgba(119, 154, 225, 0.09);
  font-family: "Geist", ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(5.7rem, 8.45vw, 8.9rem);
  font-weight: 800;
  line-height: 0.8;
  letter-spacing: 0;
}

.principle-card:nth-child(3) .principle-number {
  left: 45%;
  color: rgba(119, 154, 225, 0.08);
  transform: translateX(-15%);
}

.principle-card:nth-child(4) .principle-number {
  top: 1.95rem;
}

.principle-card:nth-child(5) .principle-number {
  top: clamp(2.15rem, 2.9vw, 3rem);
  left: clamp(1.75rem, 2.4vw, 2.45rem);
}

.principle-divider {
  display: none;
}

.principle-text {
  position: relative;
  z-index: 2;
  width: min(100%, 18rem);
}

.principle-card:nth-child(1) .principle-text {
  width: min(100%, 17.2rem);
  transform: translateX(2.1rem);
}

.principle-card:nth-child(2) .principle-text {
  width: min(100%, 19.5rem);
}

.principle-card:nth-child(3) .principle-text {
  width: min(100%, 27rem);
  transform: translateY(1.25rem);
}

.principle-card:nth-child(4) .principle-text {
  width: min(100%, 37rem);
}

.principle-card:nth-child(5) .principle-text {
  width: min(100%, 17.5rem);
}

.principle-text h3 {
  margin: 0;
  color: #f7f9ff;
  font-size: clamp(1.38rem, 1.7vw, 1.72rem);
  font-weight: 660;
  line-height: 1.18;
  letter-spacing: 0;
  text-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
}

.principle-text h3::after {
  content: "";
  display: block;
  width: 31px;
  height: 2px;
  margin-top: clamp(1.2rem, 1.5vw, 1.52rem);
  background: #6795ff;
  box-shadow: 0 0 14px rgba(103, 149, 255, 0.42);
}

.principle-text p {
  margin: clamp(1.08rem, 1.25vw, 1.3rem) 0 0;
  color: rgba(220, 226, 239, 0.72);
  font-size: clamp(0.95rem, 1.06vw, 1.08rem);
  line-height: 1.36;
}

.principle-icon {
  position: absolute;
  z-index: 3;
  right: clamp(1.6rem, 2.2vw, 2.35rem);
  top: clamp(1.55rem, 2.2vw, 2.35rem);
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  color: #78a1ff;
  background:
    linear-gradient(145deg, rgba(22, 35, 55, 0.88), rgba(12, 22, 39, 0.86));
  border: 1px solid rgba(133, 161, 215, 0.26);
  border-radius: 20px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 12px 30px rgba(0, 0, 0, 0.26),
    0 0 32px rgba(79, 124, 255, 0.09);
}

.principle-icon-svg {
  width: 34px;
  height: 34px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.85;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 7px rgba(99, 145, 255, 0.5));
}

.principle-card:nth-child(3) .principle-icon {
  top: clamp(1.75rem, 2.2vw, 2.2rem);
  left: clamp(1.75rem, 2.2vw, 2.25rem);
  right: auto;
}

.principle-card:nth-child(4) .principle-icon {
  top: clamp(1.55rem, 1.8vw, 1.75rem);
  left: clamp(7.4rem, 7.8vw, 8.1rem);
  right: auto;
}

@media (max-width: 1180px) {
  .principles-section,
  .principles-section:nth-of-type(odd) {
    min-height: auto;
    padding: 5.4rem 22px;
  }

  .principles-layout {
    height: auto;
    max-height: none;
    min-height: 0;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .principles-copy {
    min-height: 560px;
  }

  .principles-list {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: repeat(3, minmax(230px, auto));
  }

  .principle-card:nth-child(1),
  .principle-card:nth-child(2),
  .principle-card:nth-child(3),
  .principle-card:nth-child(4),
  .principle-card:nth-child(5) {
    grid-column: auto;
    grid-row: auto;
    min-height: 260px;
    padding: clamp(7.6rem, 12vw, 8.7rem) clamp(1.45rem, 3vw, 2.1rem) clamp(1.45rem, 3vw, 2.1rem);
    align-items: flex-start;
    justify-content: flex-start;
  }

  .principle-card:nth-child(3),
  .principle-card:nth-child(4),
  .principle-card:nth-child(5) {
    grid-column: span 2;
  }

  .principle-card:nth-child(3) .principle-number,
  .principle-card:nth-child(4) .principle-number,
  .principle-card:nth-child(5) .principle-number {
    left: clamp(1.6rem, 2.2vw, 2.55rem);
    transform: none;
  }

  .principle-card:nth-child(3) .principle-icon,
  .principle-card:nth-child(4) .principle-icon {
    left: auto;
    right: clamp(1.6rem, 2.2vw, 2.35rem);
  }
}

@media (max-width: 680px) {
  .principles-section,
  .principles-section:nth-of-type(odd) {
    padding: 5.4rem 14px;
  }

  .principles-copy {
    min-height: 540px;
    padding: 3.2rem 1.75rem;
  }

  .principles-copy::after {
    bottom: -3.2rem;
    height: 42%;
    mask-image: linear-gradient(180deg, transparent 0%, transparent 24%, #000 58%, #000 100%);
  }

  .principles-copy h2 {
    font-size: clamp(2.55rem, 11vw, 2.85rem);
  }

  .principles-copy > p {
    font-size: 1rem;
  }

  .principles-list {
    grid-template-columns: 1fr;
    grid-template-rows: none;
  }

  .principle-card:nth-child(1),
  .principle-card:nth-child(2),
  .principle-card:nth-child(3),
  .principle-card:nth-child(4),
  .principle-card:nth-child(5) {
    grid-column: auto;
    min-height: 300px;
    padding: 7.4rem 1.45rem 1.45rem;
    border-radius: 13px;
  }

  .principle-number {
    font-size: clamp(5.4rem, 26vw, 7.1rem);
  }

  .principle-icon {
    width: 58px;
    height: 58px;
  }

  .principle-text h3 {
    font-size: clamp(1.35rem, 7vw, 1.6rem);
  }

  .principle-text p {
    font-size: 0.95rem;
  }
}
