﻿:root {
  color-scheme: light;
  --font-body: "Space Grotesk", "Segoe UI", sans-serif;
  --font-display: "Syne", "Space Grotesk", sans-serif;
  --font-mono: "IBM Plex Mono", "Courier New", monospace;
  --bg: #f5f7fb;
  --bg-alt: #eef2f7;
  --ink: #0b1b2b;
  --muted: #5a6674;
  --accent: #a91106;
  --accent-2: #ff8a3d;
  --accent-3: #a91106;
  --card: #ffffff;
  --border: rgba(15, 23, 42, 0.12);
  --shadow: 0 30px 60px rgba(11, 27, 43, 0.12);
  --radius: 22px;
  --section-pad: clamp(64px, 8vw, 120px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  min-height: 100%;
}

body.is-intro-loading {
  overflow: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

#app {
  position: relative;
  z-index: 0;
}

body.is-intro-loading #app {
  pointer-events: none;
  user-select: none;
}

.intro-loader {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 24px;
  overflow: hidden;
  isolation: isolate;
  background: rgba(245, 247, 251, 0.3);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: opacity 0.55s ease, visibility 0.55s ease;
}

.intro-loader.is-complete {
  opacity: 0;
  visibility: hidden;
}

.intro-loader-backdrop,
.intro-loader-grid {
  position: absolute;
  inset: 0;
}

.intro-loader-backdrop {
  background:
    radial-gradient(circle at 18% 18%, rgba(169, 17, 6, 0.28), transparent 34%),
    radial-gradient(circle at 82% 16%, rgba(169, 17, 6, 0.24), transparent 30%),
    radial-gradient(circle at 50% 82%, rgba(255, 138, 61, 0.26), transparent 30%),
    linear-gradient(145deg, rgba(245, 247, 251, 0.95), rgba(238, 242, 247, 0.92));
}

.intro-loader-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(26px);
  opacity: 0.8;
  animation: introFloat 9s ease-in-out infinite;
}

.intro-loader-orb-one {
  top: -12%;
  left: -6%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(169, 17, 6, 0.74), transparent 68%);
}

.intro-loader-orb-two {
  top: 10%;
  right: -8%;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(169, 17, 6, 0.56), transparent 70%);
  animation-delay: -2.5s;
}

.intro-loader-orb-three {
  bottom: -14%;
  left: 28%;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(255, 138, 61, 0.7), transparent 68%);
  animation-delay: -5s;
}

.intro-loader-grid {
  background-image:
    linear-gradient(rgba(11, 27, 43, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11, 27, 43, 0.04) 1px, transparent 1px);
  background-size: 72px 72px;
  opacity: 0.45;
}

.intro-loader-panel {
  position: relative;
  z-index: 1;
  width: min(460px, 100%);
  padding: clamp(28px, 4vw, 40px);
  border-radius: 32px;
  border: 1px solid rgba(169, 17, 6, 0.18);
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.84), rgba(245, 247, 251, 0.76));
  box-shadow:
    0 24px 80px rgba(11, 27, 43, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.82);
  text-align: center;
}

.intro-loader-logo-wrap {
  width: clamp(112px, 18vw, 144px);
  height: clamp(112px, 18vw, 144px);
  margin: 0 auto 20px;
  padding: 18px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(238, 242, 247, 0.78));
  border: 1px solid rgba(169, 17, 6, 0.22);
  box-shadow:
    0 18px 44px rgba(169, 17, 6, 0.16),
    0 0 0 12px rgba(169, 17, 6, 0.08);
  animation: introPulse 2.6s ease-in-out infinite;
}

.intro-loader-logo {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 10px 18px rgba(169, 17, 6, 0.22));
}

.intro-loader-title,
.intro-loader-subtitle,
.intro-loader-percent {
  margin: 0;
}

.intro-loader-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  letter-spacing: -0.03em;
}

.intro-loader-subtitle {
  margin-top: 10px;
  color: var(--muted);
  font-size: 1rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.intro-loader-progress {
  position: relative;
  width: 100%;
  height: 16px;
  margin-top: 28px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(169, 17, 6, 0.1);
  border: 1px solid rgba(169, 17, 6, 0.18);
  box-shadow: inset 0 1px 4px rgba(11, 27, 43, 0.08);
}

.intro-loader-progress-fill {
  width: 1%;
  height: 100%;
  border-radius: inherit;
  background:
    linear-gradient(90deg, rgba(169, 17, 6, 0.92), rgba(255, 138, 61, 0.96), rgba(169, 17, 6, 0.92));
  background-size: 200% 100%;
  box-shadow: 0 0 24px rgba(169, 17, 6, 0.3);
  transition: width 0.18s linear;
  animation: introShimmer 1.2s linear infinite;
}

.intro-loader-percent {
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 1.05rem;
  color: var(--accent-3);
  letter-spacing: 0.1em;
}

.backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background: radial-gradient(circle at top left, rgba(169, 17, 6, 0.2), transparent 55%),
    radial-gradient(circle at 70% 10%, rgba(169, 17, 6, 0.2), transparent 50%),
    radial-gradient(circle at 20% 80%, rgba(255, 138, 61, 0.2), transparent 50%),
    var(--bg);
}

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(11, 27, 43, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11, 27, 43, 0.05) 1px, transparent 1px);
  background-size: 80px 80px;
  opacity: 0.35;
  mix-blend-mode: multiply;
}

.orb {
  position: absolute;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.6;
  animation: float 14s ease-in-out infinite;
}

.orb-one {
  top: -120px;
  left: -80px;
  background: radial-gradient(circle, rgba(169, 17, 6, 0.75), transparent 70%);
}

.orb-two {
  top: 15%;
  right: -140px;
  background: radial-gradient(circle, rgba(169, 17, 6, 0.7), transparent 70%);
  animation-delay: -4s;
}

.orb-three {
  bottom: -160px;
  left: 15%;
  background: radial-gradient(circle, rgba(255, 138, 61, 0.7), transparent 70%);
  animation-delay: -8s;
}

.container {
  width: min(1120px, 92vw);
  margin: 0 auto;
}

.section {
  padding: var(--section-pad) 0;
}

.section-alt {
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.8), rgba(238, 242, 247, 0.9));
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-bottom: 48px;
  flex-wrap: wrap;
  text-align: center;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3vw, 2.8rem);
  margin: 0;
  letter-spacing: -0.02em;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(16px);
  background: rgba(245, 247, 251, 0.72);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 20px 40px rgba(11, 27, 43, 0.08);
}

.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(169, 17, 6, 0.45), rgba(169, 17, 6, 0.45), transparent);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0;
}

.logo img {
  width: 76px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 0.95rem;
  font-weight: 500;
}

.site-nav a {
  position: relative;
  padding-bottom: 4px;
  line-height: 1;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: var(--accent-3);
  transition: width 0.3s ease;
}

.site-nav a:hover::after {
  width: 100%;
}

.nav-highlight {
  padding: 8px 14px;
  border-radius: 999px;
  background: linear-gradient(120deg, rgba(169, 17, 6, 0.2), rgba(169, 17, 6, 0.2));
  border: 1px solid rgba(169, 17, 6, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nav-highlight:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(11, 27, 43, 0.12);
}

.nav-rich-link {
  min-height: 46px;
  padding: 6px 14px 6px 8px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.nav-icon-badge {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(227, 236, 247, 0.92));
  border: 1px solid rgba(169, 17, 6, 0.12);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 8px 18px rgba(11, 27, 43, 0.08);
  color: var(--accent-3);
}

.nav-icon-desktop,
.nav-icon-mobile {
  display: inline-grid;
  place-items: center;
}

.nav-icon-mobile {
  display: none;
}

.nav-icon-badge svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.55;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav-link-label {
  line-height: 1;
}

.site-nav a:focus-visible {
  outline: 2px solid rgba(169, 17, 6, 0.5);
  outline-offset: 3px;
}

.header-socials {
  display: flex;
  gap: 12px;
}

.social-link {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--border);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.social-link img {
  width: 18px;
}

.social-link:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: var(--shadow);
}

.hero {
  padding-top: calc(var(--section-pad) + 20px);
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(32px, 6vw, 64px);
  align-items: center;
}

.hero-content h1 {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 5vw, 4.5rem);
  line-height: 1.05;
  margin: 0 0 24px;
}

.tagline {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 1.1rem;
  font-weight: 500;
}

.tagline-link {
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(169, 17, 6, 0.12);
  border: 1px solid rgba(169, 17, 6, 0.3);
  transition: background 0.3s ease, transform 0.3s ease;
}

.tagline-link:hover {
  background: rgba(169, 17, 6, 0.18);
  transform: translateY(-2px);
}

.tagline-sep {
  font-family: var(--font-mono);
  color: var(--muted);
}

.hero-media {
  display: flex;
  justify-content: center;
}

.hero-card {
  padding: 12px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(238, 242, 247, 0.8));
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transform: perspective(900px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
  transition: transform 0.3s ease;
}

.hero-card img {
  border-radius: calc(var(--radius) - 8px);
  width: min(360px, 78vw);
  animation: float 8s ease-in-out infinite;
}

.about {
  padding-top: 0;
}

.about-card {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(246, 241, 240, 0.92)),
    radial-gradient(circle at top, rgba(255, 255, 255, 0.8), transparent 55%);
  border-radius: calc(var(--radius) + 10px);
  padding: clamp(34px, 5vw, 56px);
  border: 1px solid rgba(169, 17, 6, 0.16);
  box-shadow:
    0 30px 80px rgba(39, 62, 90, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(18px);
}

.about-card::before {
  content: "";
  position: absolute;
  inset: -60%;
  background: conic-gradient(
    from 120deg,
    rgba(169, 17, 6, 0.2),
    rgba(169, 17, 6, 0.18),
    rgba(255, 138, 61, 0.16),
    rgba(169, 17, 6, 0.2)
  );
  animation: spinGlow 16s linear infinite;
  opacity: 0.35;
}

.about-card > * {
  position: relative;
  z-index: 1;
}

.about-shell {
  width: min(900px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 28px;
  justify-items: center;
}

.about-eyebrow {
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.2em;
  font-size: 0.75rem;
  color: var(--accent-3);
  margin: 0 0 14px;
  text-align: center;
}

.about-copy h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3vw, 2.6rem);
  margin: 0 0 18px;
  text-align: center;
}

.about-copy p {
  width: min(860px, 100%);
  margin: 0 auto;
  color: var(--muted);
  font-size: clamp(1rem, 1.7vw, 1.12rem);
  line-height: 1.85;
  text-align: center;
}

.about-highlights {
  display: grid;
  gap: 14px;
  width: min(1040px, 100%);
}

.highlight {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 15px 22px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(247, 224, 221, 0.75), rgba(248, 238, 236, 0.55));
  border: 1px solid rgba(169, 17, 6, 0.22);
  font-weight: 600;
  text-align: center;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    0 12px 24px rgba(125, 73, 68, 0.08);
}

.highlight-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(120deg, var(--accent), var(--accent-3));
  box-shadow: 0 0 12px rgba(169, 17, 6, 0.6);
  animation: pulse 2.6s ease-in-out infinite;
}

.grid {
  display: grid;
  gap: 24px;
}

.project-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.project-controls {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
}

.project-nav {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(169, 17, 6, 0.35);
  background: linear-gradient(120deg, rgba(169, 17, 6, 0.12), rgba(169, 17, 6, 0.12));
  color: var(--ink);
  font-size: 1.4rem;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.project-nav:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.project-track {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 12px;
}

.project-track::-webkit-scrollbar {
  height: 8px;
}

.project-track::-webkit-scrollbar-track {
  background: rgba(169, 17, 6, 0.08);
  border-radius: 999px;
}

.project-track::-webkit-scrollbar-thumb {
  background: rgba(169, 17, 6, 0.4);
  border-radius: 999px;
}

.projects .project-grid {
  display: flex;
  gap: 24px;
}

.projects .project-card {
  min-width: 220px;
  scroll-snap-align: start;
}

.card {
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 24px;
  box-shadow: 0 16px 40px rgba(11, 27, 43, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.project-card {
  display: grid;
  gap: 16px;
  align-content: start;
}

.icon-shell {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: linear-gradient(140deg, rgba(169, 17, 6, 0.18), rgba(169, 17, 6, 0.2));
  display: grid;
  place-items: center;
  border: 1px solid rgba(169, 17, 6, 0.3);
}

.icon-shell img {
  width: 32px;
}

.project-card .icon-shell img {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  object-fit: cover;
}

.cert-grid {
  display: flex;
  gap: 24px;
}

.cert-controls {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
}

.cert-nav {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(169, 17, 6, 0.35);
  background: linear-gradient(120deg, rgba(169, 17, 6, 0.12), rgba(169, 17, 6, 0.12));
  color: var(--ink);
  font-size: 1.4rem;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cert-nav:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.cert-track {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 12px;
}

.cert-track::-webkit-scrollbar {
  height: 8px;
}

.cert-track::-webkit-scrollbar-track {
  background: rgba(169, 17, 6, 0.08);
  border-radius: 999px;
}

.cert-track::-webkit-scrollbar-thumb {
  background: rgba(169, 17, 6, 0.4);
  border-radius: 999px;
}

.cert-card {
  display: grid;
  gap: 20px;
  grid-template-rows: 1fr auto;
  min-width: 260px;
}

.cert-card h3 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  min-height: 2.6em;
  text-align: center;
}

.cert-subtitle {
  margin: 0 0 12px;
  font-weight: 600;
  color: var(--accent-3);
  min-height: 2.6em;
  text-align: center;
}

.cert-desc {
  margin: 0;
  color: var(--muted);
  text-align: center;
}

.cert-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 6px;
  color: var(--muted);
  text-align: center;
}

.cert-list li::before {
  content: "•";
  color: var(--accent-3);
  margin-right: 6px;
}

.cert-actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: auto;
  align-items: center;
  text-align: center;
}

.cert-actions .btn {
  min-height: 44px;
  align-self: center;
}

.icon-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.cert-card .icon-row {
  flex-wrap: nowrap;
  justify-content: center;
}

.cert-card .icon-badge {
  flex: 0 0 auto;
}

.icon-badge {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.9);
}

.icon-badge img {
  width: 24px;
}

.language-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.language-card h3 {
  margin: 0 0 8px;
  font-family: var(--font-display);
}

.language-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.language-icon {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.9);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.language-icon img {
  width: 22px;
}

.language-icon:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow: var(--shadow);
}

.language-card p {
  margin: 0;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.85rem;
}

.work-timeline {
  position: relative;
  display: grid;
  gap: 24px;
  margin-top: 32px;
  padding-left: 12px;
}

.work-line {
  position: absolute;
  left: 20px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, rgba(169, 17, 6, 0.4), rgba(169, 17, 6, 0.4));
  animation: timelineGlow 7s ease-in-out infinite;
}

.work-item {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 18px;
  align-items: start;
}

.work-marker {
  position: relative;
  display: grid;
  place-items: center;
  height: 100%;
}

.work-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: linear-gradient(120deg, var(--accent), var(--accent-3));
  box-shadow: 0 0 16px rgba(169, 17, 6, 0.6);
  z-index: 2;
}

.work-pulse {
  position: absolute;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid rgba(169, 17, 6, 0.4);
  animation: pulse 2.6s ease-in-out infinite;
}

.work-card {
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 20px 22px;
  box-shadow: 0 16px 40px rgba(11, 27, 43, 0.08);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
}

.work-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top, rgba(169, 17, 6, 0.12), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.work-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.work-card:hover::after {
  opacity: 1;
}

.work-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
  flex-wrap: wrap;
}

.work-head h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.05rem;
}

.work-period {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent-3);
}

.work-card p {
  margin: 8px 0 0;
  color: var(--muted);
}

.work-card-logo {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.9);
  display: grid;
  place-items: center;
}

.work-card-logo img {
  width: 28px;
  height: auto;
}

.education-grid {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.education-card h3 {
  margin: 0 0 8px;
  font-family: var(--font-display);
}

.education-card h4 {
  margin: 0 0 12px;
}

.education-card p {
  margin: 0 0 16px;
  color: var(--muted);
}

.education-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}

.education-period {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent-3);
}

.inline-link {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.inline-link:hover {
  opacity: 0.8;
}

.education-timeline {
  position: relative;
  display: grid;
  gap: 32px;
  padding: 12px 0;
}

.timeline-line {
  position: absolute;
  left: 28px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, rgba(169, 17, 6, 0.4), rgba(169, 17, 6, 0.2));
  animation: timelineGlow 6s ease-in-out infinite;
}

.timeline-item {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 20px;
  align-items: start;
}

.timeline-marker {
  position: relative;
  display: grid;
  place-items: center;
  height: 100%;
}

.timeline-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: linear-gradient(120deg, var(--accent), var(--accent-3));
  box-shadow: 0 0 18px rgba(169, 17, 6, 0.6);
  z-index: 2;
}

.timeline-ring {
  position: absolute;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid rgba(169, 17, 6, 0.4);
  animation: pulse 2.8s ease-in-out infinite;
}

.timeline-card {
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 24px;
  box-shadow: 0 16px 40px rgba(11, 27, 43, 0.08);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top, rgba(169, 17, 6, 0.12), transparent 55%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.timeline-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.timeline-card:hover::after {
  opacity: 1;
}

.timeline-card h3 {
  margin: 0 0 8px;
  font-family: var(--font-display);
}

.timeline-card h4 {
  margin: 0 0 12px;
}

.timeline-card p {
  margin: 0 0 16px;
  color: var(--muted);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  align-items: stretch;
}

.contact-card {
  background: var(--card);
  padding: 32px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.contact-card h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3vw, 2.6rem);
  margin: 0 0 12px;
}

.contact-subtitle {
  margin: 0 0 24px;
  color: var(--muted);
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid var(--border);
}

.contact-item:first-of-type {
  border-top: none;
}

.contact-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(120deg, rgba(169, 17, 6, 0.2), rgba(169, 17, 6, 0.2));
}

.contact-icon img {
  width: 22px;
}

.contact-item p {
  margin: 0 0 4px;
  font-size: 0.9rem;
  color: var(--muted);
}

.contact-item a {
  font-weight: 600;
}

.contact-media {
  border-radius: var(--radius);
  background-size: cover;
  background-position: center;
  border: 1px solid var(--border);
  min-height: 320px;
  box-shadow: var(--shadow);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  align-items: center;
}

.form-card {
  background: var(--card);
  padding: 32px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.contact-loop {
  padding-bottom: 0;
}

.contact-loop-track {
  position: relative;
  border-radius: 999px;
  border: 1px solid rgba(169, 17, 6, 0.3);
  background: linear-gradient(120deg, rgba(169, 17, 6, 0.18), rgba(169, 17, 6, 0.18), rgba(169, 17, 6, 0.18));
  background-size: 200% 200%;
  overflow: hidden;
  padding: 10px 0;
  box-shadow: 0 20px 40px rgba(11, 27, 43, 0.1);
  animation: loopGlow 6s ease-in-out infinite;
}

.contact-loop-track::after {
  content: "";
  position: absolute;
  inset: -40%;
  background: linear-gradient(120deg, transparent 40%, rgba(255, 255, 255, 0.35) 50%, transparent 60%);
  animation: loopSweep 4s linear infinite;
  pointer-events: none;
}

.contact-loop-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  white-space: nowrap;
  padding: 4px 24px;
  position: relative;
  z-index: 1;
}

.loop-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent-3);
  font-weight: 600;
}

.loop-value {
  font-weight: 600;
  font-size: 1rem;
  color: var(--ink);
}

.loop-divider {
  color: var(--accent);
  opacity: 0.6;
}

.form-card h2 {
  margin: 0 0 24px;
  font-family: var(--font-display);
}

.contact-form {
  display: grid;
  gap: 16px;
}

.contact-form label {
  display: grid;
  gap: 8px;
  font-weight: 600;
}

.contact-form input,
.contact-form textarea {
  border-radius: 16px;
  border: 1px solid var(--border);
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.9);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid rgba(169, 17, 6, 0.35);
  border-color: rgba(169, 17, 6, 0.45);
}

.btn {
  padding: 12px 20px;
  border-radius: 999px;
  border: none;
  background: linear-gradient(120deg, var(--accent), var(--accent-3));
  color: white;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn-ghost {
  background: transparent;
  color: var(--accent-3);
  border: 1px solid rgba(169, 17, 6, 0.4);
}

.btn-ghost:visited {
  color: var(--accent-3);
  border-color: rgba(169, 17, 6, 0.4);
}

.form-message {
  display: none;
  font-size: 0.9rem;
  color: var(--accent);
}

.form-message.is-visible {
  display: block;
}

.form-error {
  color: #e04444;
}

.btn[disabled] {
  opacity: 0.7;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.form-illustration {
  display: flex;
  justify-content: center;
}

.form-illustration img {
  max-width: 360px;
  filter: drop-shadow(0 20px 40px rgba(11, 27, 43, 0.2));
  animation: formOrbit 16s linear infinite;
  transform-origin: center;
  will-change: transform;
}

.site-footer {
  padding: 32px 0 60px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-link {
  font-weight: 600;
}

.footer-link-creator {
  color: #a91106;
}

.footer-link-creator:hover,
.footer-link-creator:focus-visible {
  text-decoration-color: #a91106;
}

.footer-legal {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.legal-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(169, 17, 6, 0.22);
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.88), rgba(238, 242, 247, 0.92));
  box-shadow: 0 14px 30px rgba(11, 27, 43, 0.08);
  font-weight: 600;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.legal-link:hover,
.legal-link:focus-visible {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: rgba(169, 17, 6, 0.35);
}

.legal-link-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(120deg, rgba(169, 17, 6, 0.16), rgba(169, 17, 6, 0.2));
  color: var(--accent-3);
}

.legal-link-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.legal-link.is-active {
  border-color: rgba(169, 17, 6, 0.45);
  background: linear-gradient(120deg, rgba(169, 17, 6, 0.16), rgba(169, 17, 6, 0.2));
}

.cookie-banner {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%) translateY(24px);
  width: min(920px, calc(100vw - 28px));
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
  padding: 22px 24px;
  border-radius: 30px;
  border: 1px solid rgba(169, 17, 6, 0.18);
  background:
    radial-gradient(circle at top left, rgba(169, 17, 6, 0.14), transparent 38%),
    radial-gradient(circle at 85% 20%, rgba(169, 17, 6, 0.12), transparent 34%),
    rgba(255, 255, 255, 0.94);
  box-shadow: 0 32px 80px rgba(11, 27, 43, 0.2);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  z-index: 40;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.cookie-banner.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.cookie-banner-main {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}

.cookie-banner-icon {
  position: relative;
  width: 64px;
  height: 64px;
  flex: 0 0 auto;
  border-radius: 22px;
  display: grid;
  place-items: center;
  color: var(--accent-3);
  background: linear-gradient(135deg, rgba(169, 17, 6, 0.16), rgba(169, 17, 6, 0.2));
  border: 1px solid rgba(169, 17, 6, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.cookie-banner-icon::after {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 28px;
  background: radial-gradient(circle, rgba(169, 17, 6, 0.16), transparent 70%);
  z-index: -1;
}

.cookie-banner-icon svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cookie-banner-copy {
  min-width: 0;
}

.cookie-banner-eyebrow {
  margin: 0 0 6px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-3);
}

.cookie-banner-title {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

.cookie-banner-text {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  max-width: 62ch;
}

.cookie-banner-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
}

.cookie-banner-actions .btn {
  min-width: 124px;
  min-height: 46px;
}

.legal-page {
  padding-top: calc(var(--section-pad) + 12px);
}

.legal-layout {
  display: grid;
  gap: 28px;
}

.legal-hero-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(238, 242, 247, 0.92));
  border-radius: calc(var(--radius) + 10px);
  padding: clamp(28px, 4vw, 42px);
  border: 1px solid rgba(169, 17, 6, 0.2);
  box-shadow: var(--shadow);
  text-align: center;
  display: grid;
  justify-items: center;
}

.legal-hero-card h1 {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 1.04;
}

.legal-intro {
  max-width: 780px;
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.legal-meta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(169, 17, 6, 0.1);
  border: 1px solid rgba(169, 17, 6, 0.22);
  color: var(--accent-3);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.legal-nav {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
  justify-content: center;
}

.legal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.legal-card {
  min-height: 100%;
}

.legal-card h2 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 1.3rem;
}

.legal-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.reveal {
  opacity: 0;
  transform: translateY(20px) scale(0.98);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-16px);
  }
}

@keyframes timelineGlow {
  0%,
  100% {
    opacity: 0.6;
  }
  50% {
    opacity: 1;
  }
}

@keyframes loopGlow {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@keyframes loopSweep {
  0% {
    transform: translateX(-40%);
  }
  100% {
    transform: translateX(40%);
  }
}

@keyframes spinGlow {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.7;
  }
  50% {
    transform: scale(1.4);
    opacity: 1;
  }
}

@keyframes formOrbit {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes introFloat {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(0, -16px, 0) scale(1.04);
  }
}

@keyframes introPulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.03);
  }
}

@keyframes introShimmer {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 100% 50%;
  }
}

@media (max-width: 900px) {
  .contact-card,
  .form-card {
    padding: 24px;
  }

  .work-card {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .work-card-logo {
    justify-self: flex-start;
  }

  .form-illustration img {
    max-width: 260px;
  }

  .contact-loop-track {
    padding: 8px 0;
  }

  .contact-loop-row {
    gap: 12px;
    padding: 4px 16px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .loop-label {
    font-size: 0.72rem;
  }

  .loop-value {
    font-size: 0.92rem;
  }

  .cookie-banner {
    grid-template-columns: 1fr;
    justify-items: stretch;
  }

  .cookie-banner-main {
    align-items: flex-start;
  }

  .cookie-banner-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 700px) {
  .section-head {
    margin-bottom: 32px;
  }

  .hero {
    padding-top: var(--section-pad);
  }

  .cert-card .icon-row {
    flex-wrap: wrap;
  }
}

@media (max-width: 640px) {
  .intro-loader {
    padding: 16px;
  }

  .intro-loader-panel {
    padding: 24px 20px;
    border-radius: 26px;
  }

  .intro-loader-progress {
    height: 14px;
  }

  .header-inner {
    gap: 10px;
    padding: 12px 0;
    flex-wrap: nowrap;
  }

  .logo img {
    width: 56px;
  }

  .site-nav {
    gap: 6px;
    flex-wrap: nowrap;
    justify-content: center;
    font-size: 0.82rem;
  }

  .site-nav a {
    padding-bottom: 0;
  }

  .nav-highlight {
    padding: 6px 10px;
  }

  .nav-rich-link {
    min-width: 38px;
    min-height: 38px;
    padding: 0;
    gap: 0;
    justify-content: center;
  }

  .nav-icon-badge {
    width: 24px;
    height: 24px;
    background: transparent;
    border: none;
    box-shadow: none;
    color: var(--accent-3);
  }

  .nav-icon-badge svg {
    width: 17px;
    height: 17px;
    stroke-width: 1.9;
  }

  .nav-icon-desktop {
    display: none;
  }

  .nav-icon-mobile {
    display: inline-grid;
  }

  .nav-icon-mobile svg {
    fill: currentColor;
    stroke: none;
    width: 18px;
    height: 18px;
  }

  .nav-link-label {
    display: none;
  }

  .site-nav a::after {
    left: 50%;
    bottom: 2px;
    width: calc(100% - 16px);
    transform: translateX(-50%) scaleX(0);
    transform-origin: center;
    transition: transform 0.25s ease;
  }

  .site-nav a:hover::after,
  .site-nav a:active::after,
  .site-nav a:focus-visible::after {
    transform: translateX(-50%) scaleX(1);
  }

  .header-socials {
    gap: 6px;
  }

  .social-link {
    width: 32px;
    height: 32px;
  }

  .social-link img {
    width: 15px;
  }

  .form-illustration img {
    max-width: 210px;
  }

  .footer-inner {
    justify-content: center;
    text-align: center;
  }

  .footer-legal {
    width: 100%;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 8px;
  }

  .footer-legal .legal-link {
    min-width: 0;
    padding: 8px 10px;
    gap: 6px;
    font-size: 0.82rem;
    box-shadow: 0 10px 20px rgba(11, 27, 43, 0.08);
  }

  .footer-legal .legal-link-icon {
    width: 24px;
    height: 24px;
  }

  .footer-legal .legal-link-icon svg {
    width: 14px;
    height: 14px;
  }

  .contact-loop-track {
    padding: 6px 0;
  }

  .contact-loop-row {
    gap: 10px;
    padding: 4px 12px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .loop-label {
    font-size: 0.68rem;
    letter-spacing: 0.12em;
  }

  .loop-value {
    font-size: 0.85rem;
  }

  .cookie-banner {
    bottom: 16px;
    width: calc(100vw - 20px);
    padding: 18px;
    border-radius: 24px;
  }

  .cookie-banner-main {
    flex-direction: column;
    align-items: center;
    gap: 14px;
  }

  .cookie-banner-icon {
    width: 56px;
    height: 56px;
    border-radius: 18px;
  }

  .cookie-banner-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .cookie-banner-actions .btn {
    width: 100%;
  }

  .cookie-banner-copy,
  .cookie-banner-title,
  .cookie-banner-text,
  .cookie-banner-eyebrow {
    text-align: center;
  }
}

.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 50;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1.5px solid rgba(169, 17, 6, 0.22);
  background: rgba(245, 247, 251, 0.72);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  color: var(--accent);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 24px rgba(169, 17, 6, 0.14), 0 1px 4px rgba(11, 27, 43, 0.08);
  opacity: 0;
  transform: translateY(12px) scale(0.9);
  transition: opacity 0.3s ease, transform 0.3s ease, background 0.2s ease, box-shadow 0.2s ease;
  pointer-events: none;
}

.back-to-top.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.back-to-top:hover {
  background: rgba(169, 17, 6, 0.08);
  box-shadow: 0 6px 32px rgba(169, 17, 6, 0.22), 0 1px 4px rgba(11, 27, 43, 0.1);
  transform: translateY(-2px) scale(1.06);
}

.back-to-top:active {
  transform: translateY(0) scale(0.97);
}

.back-to-top svg {
  width: 20px;
  height: 20px;
  stroke: var(--accent);
}

@media (max-width: 640px) {
  .back-to-top {
    bottom: 20px;
    right: 16px;
    width: 42px;
    height: 42px;
  }

  .back-to-top svg {
    width: 18px;
    height: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
