:root {
  color-scheme: light;
  --ink: #0a0a0c;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --paper: #f5f5f7;
  --white: #ffffff;
  --line: rgba(0, 0, 0, 0.1);
  --blue: #2563eb;
  --blue-soft: #60a5fa;
  --accent: #2563eb;
  --dark: #08080a;
  --glass-bg: rgba(255, 255, 255, 0.55);
  --glass-border: rgba(255, 255, 255, 0.7);
  --glass-highlight: inset 0 1px 0 rgba(255, 255, 255, 0.9);
  --shadow-sm: 0 1px 2px rgba(15, 15, 20, 0.04), 0 4px 16px rgba(15, 15, 20, 0.04);
  --shadow-md: 0 8px 28px rgba(15, 15, 20, 0.08), 0 2px 6px rgba(15, 15, 20, 0.04);
  --shadow-lg: 0 30px 80px rgba(15, 15, 20, 0.14), 0 8px 28px rgba(15, 15, 20, 0.06);
  --spring: cubic-bezier(0.16, 1, 0.3, 1);
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 28px;
  font-family:
    -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", Inter,
    "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  overflow-x: hidden;
  width: 100%;
  -webkit-font-smoothing: antialiased;
}

/* Aurora ambiental: da algo que refractar a los paneles de vidrio */
body::before,
body::after {
  content: "";
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  position: fixed;
  z-index: -1;
}

body::before {
  animation: drift1 26s ease-in-out infinite;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.14), transparent 62%);
  height: 58vw;
  right: -18vw;
  top: -16vw;
  width: 58vw;
}

body::after {
  animation: drift2 32s ease-in-out infinite;
  background: radial-gradient(circle, rgba(96, 165, 250, 0.14), transparent 62%);
  bottom: -14vw;
  height: 48vw;
  left: -14vw;
  width: 48vw;
}

@keyframes drift1 {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  33% { transform: translate3d(-60px, 50px, 0) scale(1.08); }
  66% { transform: translate3d(30px, 80px, 0) scale(0.95); }
}

@keyframes drift2 {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  40% { transform: translate3d(70px, -40px, 0) scale(1.1); }
  75% { transform: translate3d(-30px, 30px, 0) scale(0.92); }
}

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

::selection {
  background: rgba(37, 99, 235, 0.18);
}

:focus-visible {
  border-radius: 8px;
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

/* ---------- Custom cursor ---------- */

.cursor-dot,
.cursor-ring {
  display: none;
  left: 0;
  pointer-events: none;
  position: fixed;
  top: 0;
  will-change: transform;
  z-index: 9999;
}

.cursor-dot {
  background: #fff;
  border-radius: 50%;
  height: 6px;
  mix-blend-mode: difference;
  transform: translate3d(-100px, -100px, 0);
  width: 6px;
}

.cursor-ring {
  border: 1.5px solid #fff;
  border-radius: 50%;
  height: 38px;
  mix-blend-mode: difference;
  transform: translate3d(-100px, -100px, 0);
  transition:
    width 320ms var(--spring),
    height 320ms var(--spring),
    margin 320ms var(--spring),
    background 240ms ease,
    opacity 240ms ease;
  width: 38px;
}

.cursor-ring.is-hover {
  background: rgba(255, 255, 255, 0.08);
  height: 68px;
  margin: -15px 0 0 -15px;
  width: 68px;
}

.cursor-ring.is-tight {
  height: 16px;
  margin: 11px 0 0 11px;
  width: 16px;
}

.cursor-hidden .cursor-dot,
.cursor-hidden .cursor-ring {
  opacity: 0;
}

@media (hover: hover) and (pointer: fine) {
  body:not(.no-custom-cursor) .cursor-dot,
  body:not(.no-custom-cursor) .cursor-ring {
    display: block;
  }

  body:not(.no-custom-cursor),
  body:not(.no-custom-cursor) * {
    cursor: none !important;
  }
}

/* ---------- Page progress ---------- */

.page-progress {
  background: linear-gradient(90deg, var(--blue), var(--blue-soft));
  box-shadow: 0 0 12px rgba(37, 99, 235, 0.55);
  height: 2px;
  left: 0;
  pointer-events: none;
  position: fixed;
  top: 0;
  transform-origin: left center;
  transition: transform 80ms linear;
  width: 100%;
  z-index: 100;
  transform: scaleX(0);
}

/* ---------- Nav flotante liquid glass ---------- */

.site-header {
  display: flex;
  justify-content: center;
  left: 0;
  padding: 0 14px;
  pointer-events: none;
  position: fixed;
  right: 0;
  top: 14px;
  z-index: 50;
}

.glass-nav {
  align-items: center;
  backdrop-filter: blur(22px) saturate(1.8);
  -webkit-backdrop-filter: blur(22px) saturate(1.8);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  box-shadow:
    var(--glass-highlight),
    0 10px 34px rgba(15, 15, 20, 0.1);
  display: flex;
  gap: 4px;
  padding: 5px;
  pointer-events: auto;
  transition:
    background 320ms ease,
    box-shadow 320ms ease;
}

.site-header[data-elevated="true"] .glass-nav {
  background: rgba(255, 255, 255, 0.72);
  box-shadow:
    var(--glass-highlight),
    0 14px 44px rgba(15, 15, 20, 0.16);
}

.glass-nav a {
  border-radius: 999px;
  color: rgba(29, 29, 31, 0.78);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 9px 16px;
  transition:
    background 240ms ease,
    color 240ms ease,
    transform 240ms var(--spring);
}

.glass-nav a:hover {
  background: rgba(255, 255, 255, 0.8);
  color: var(--ink);
}

.glass-nav a:active {
  transform: scale(0.96);
}

.glass-nav a.is-active {
  background: rgba(10, 10, 12, 0.07);
  color: var(--ink);
}

.glass-nav .brand {
  color: var(--ink);
  font-weight: 800;
}

.glass-nav .nav-cta {
  background: linear-gradient(180deg, #3b82f6, var(--blue));
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.32);
  color: #fff;
}

.glass-nav .nav-cta:hover {
  background: linear-gradient(180deg, #4f8df7, #2d6cf0);
  color: #fff;
}

/* ---------- Hero ---------- */

.hero {
  align-items: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100vh;
  overflow: hidden;
  padding: 110px 22px 88px;
  position: relative;
  text-align: center;
}

.hero-bg {
  background-image: url("assets/hero-bg.webp");
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  inset: -14% 0 0;
  position: absolute;
  will-change: transform;
  z-index: 0;
}

.hero::before {
  background: radial-gradient(
    ellipse at center,
    rgba(255, 255, 255, 0.6) 0%,
    rgba(255, 255, 255, 0) 70%
  );
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
  z-index: 1;
}

.hero > :not(.hero-bg) {
  position: relative;
  z-index: 2;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(26px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero .glass-chip {
  animation: rise 900ms var(--spring) 60ms backwards;
}

.hero .hero-copy {
  animation: rise 900ms var(--spring) 820ms backwards;
}

.hero .hero-actions {
  animation: rise 900ms var(--spring) 960ms backwards;
}

.hero .scroll-hint {
  animation: rise 900ms var(--spring) 1180ms backwards;
}

@keyframes charRise {
  from {
    opacity: 0;
    transform: translateY(110%) rotate(4deg);
  }
  to {
    opacity: 1;
    transform: translateY(0) rotate(0deg);
  }
}

.eyebrow {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  margin: 0 0 18px;
  text-transform: uppercase;
}

.glass-chip {
  align-items: center;
  backdrop-filter: blur(14px) saturate(1.6);
  -webkit-backdrop-filter: blur(14px) saturate(1.6);
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  box-shadow:
    var(--glass-highlight),
    0 4px 16px rgba(15, 15, 20, 0.06);
  color: var(--text);
  display: inline-flex;
  font-size: 0.72rem;
  gap: 9px;
  letter-spacing: 0.15em;
  padding: 9px 18px;
}

@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.45);
  }
  50% {
    box-shadow: 0 0 0 5px rgba(37, 99, 235, 0);
  }
}

.glass-chip .dot {
  animation: pulse 2.4s ease infinite;
  background: var(--blue);
  border-radius: 50%;
  height: 7px;
  width: 7px;
}

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

h1 {
  color: var(--ink);
  font-size: clamp(4.6rem, 13vw, 11.5rem);
  letter-spacing: -0.055em;
  line-height: 0.88;
  margin-bottom: 26px;
}

.hero-title {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.2em;
  justify-content: center;
}

.hero-title .word {
  display: inline-flex;
  overflow: hidden;
  padding: 0.05em 0;
}

.hero-title .char {
  display: inline-block;
  will-change: transform;
}

.hero-title.is-split .char {
  animation: charRise 950ms var(--spring) backwards;
  animation-delay: calc(180ms + var(--i, 0) * 45ms);
}

.hero-copy {
  color: var(--muted);
  font-size: clamp(1.28rem, 2.3vw, 2rem);
  font-weight: 600;
  line-height: 1.18;
  margin: 0 auto;
  max-width: 760px;
  width: min(760px, 100%);
}

@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(6px);
  }
}

.scroll-hint {
  align-items: center;
  backdrop-filter: blur(14px) saturate(1.6);
  -webkit-backdrop-filter: blur(14px) saturate(1.6);
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--glass-border);
  border-radius: 50%;
  bottom: 30px;
  box-shadow:
    var(--glass-highlight),
    0 6px 18px rgba(15, 15, 20, 0.08);
  color: var(--text);
  display: inline-flex;
  height: 44px;
  justify-content: center;
  left: 50%;
  margin-left: -22px;
  position: absolute;
  transition: background 240ms ease, transform 240ms var(--spring);
  width: 44px;
}

.scroll-hint svg {
  animation: bounce 2.2s ease-in-out infinite;
}

.scroll-hint:hover {
  background: rgba(255, 255, 255, 0.85);
  transform: translateY(-2px);
}

/* ---------- Botones ---------- */

.button {
  --mx-mag: 0px;
  --my-mag: 0px;
  --hover-y: 0px;
  --hover-s: 1;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 980px;
  display: inline-flex;
  font-size: 0.98rem;
  font-weight: 700;
  justify-content: center;
  min-height: 46px;
  min-width: 132px;
  padding: 10px 23px;
  transform: translate3d(var(--mx-mag), calc(var(--my-mag) + var(--hover-y)), 0)
    scale(var(--hover-s));
  transition:
    background 220ms ease,
    color 220ms ease,
    box-shadow 220ms ease,
    transform 360ms var(--spring),
    border-color 220ms ease;
}

.button:hover {
  --hover-y: -2px;
  --hover-s: 1.015;
}

.button:active {
  --hover-y: 0px;
  --hover-s: 0.97;
}

.button.primary {
  background: linear-gradient(180deg, #3b82f6, var(--blue));
  border-color: transparent;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.25),
    0 8px 24px rgba(37, 99, 235, 0.32);
  color: #fff;
}

.button.primary:hover {
  background: linear-gradient(180deg, #4f8df7, #2d6cf0);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.25),
    0 12px 32px rgba(37, 99, 235, 0.4);
}

.button.secondary {
  backdrop-filter: blur(14px) saturate(1.6);
  -webkit-backdrop-filter: blur(14px) saturate(1.6);
  background: rgba(255, 255, 255, 0.6);
  border-color: var(--glass-border);
  box-shadow:
    var(--glass-highlight),
    0 4px 14px rgba(15, 15, 20, 0.05);
}

.button.secondary:hover {
  background: rgba(255, 255, 255, 0.85);
  box-shadow:
    var(--glass-highlight),
    0 10px 26px rgba(15, 15, 20, 0.1);
}

.hero-actions,
.contact-actions,
.cv-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 34px;
  width: min(100%, 420px);
}

/* ---------- Marquee de stack ---------- */

.marquee {
  -webkit-mask-image: linear-gradient(
    to right,
    transparent,
    #000 10%,
    #000 90%,
    transparent
  );
  backdrop-filter: blur(12px) saturate(1.4);
  -webkit-backdrop-filter: blur(12px) saturate(1.4);
  background: rgba(255, 255, 255, 0.45);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  mask-image: linear-gradient(
    to right,
    transparent,
    #000 10%,
    #000 90%,
    transparent
  );
  overflow: hidden;
  padding: 24px 0;
  position: relative;
  z-index: 2;
}

.marquee-track {
  align-items: center;
  animation: marqueeScroll 55s linear infinite;
  display: flex;
  gap: 36px;
  white-space: nowrap;
  width: max-content;
}

.marquee-track span {
  color: var(--ink);
  font-size: clamp(1.1rem, 1.6vw, 1.5rem);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.marquee-track span[aria-hidden] {
  color: var(--blue);
  font-size: 0.6em;
  opacity: 0.7;
}

.marquee:hover .marquee-track {
  animation-play-state: paused;
}

@keyframes marqueeScroll {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(-50%, 0, 0);
  }
}

/* ---------- Manifiesto oscuro ---------- */

.manifest {
  align-items: center;
  background: var(--dark);
  color: #fff;
  display: flex;
  min-height: 100vh;
  overflow: hidden;
  padding: 110px 22px;
  position: relative;
}

.manifest::before,
.manifest::after {
  border-radius: 50%;
  content: "";
  filter: blur(60px);
  pointer-events: none;
  position: absolute;
}

.manifest::before {
  background: radial-gradient(circle, rgba(37, 99, 235, 0.4), transparent 65%);
  height: 620px;
  left: -180px;
  top: -180px;
  width: 620px;
}

.manifest::after {
  background: radial-gradient(circle, rgba(96, 165, 250, 0.22), transparent 65%);
  bottom: -200px;
  height: 540px;
  right: -140px;
  width: 540px;
}

.manifest-inner {
  margin: 0 auto;
  max-width: 1120px;
  position: relative;
  z-index: 1;
}

.manifest p:first-child,
.section-heading h2,
.cv-panel h2,
.contact h2 {
  font-size: clamp(3rem, 8vw, 7.5rem);
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: 0.92;
}

.manifest-copy {
  color: rgba(255, 255, 255, 0.68);
  font-size: clamp(1.18rem, 2vw, 1.5rem);
  line-height: 1.5;
  max-width: 640px;
}

/* ---------- Secciones ---------- */

.section,
.principles,
.projects,
.services,
.cv-panel,
.contact {
  margin: 0 auto;
  max-width: 1120px;
  padding: 110px 22px;
}

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

/* ---------- Cards liquid glass ---------- */

.glass-card {
  backdrop-filter: blur(18px) saturate(1.5);
  -webkit-backdrop-filter: blur(18px) saturate(1.5);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.6));
  border: 1px solid rgba(255, 255, 255, 0.78);
  box-shadow:
    var(--glass-highlight),
    var(--shadow-sm);
}

.card-glow {
  overflow: hidden;
  position: relative;
}

.card-glow::after {
  background: radial-gradient(
    260px circle at var(--mx, 50%) var(--my, 50%),
    rgba(37, 99, 235, 0.09),
    transparent 65%
  );
  content: "";
  inset: 0;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  transition: opacity 320ms ease;
}

.card-glow:hover::after {
  opacity: 1;
}

.principle,
.service-grid article {
  border-radius: var(--radius-md);
  min-height: 320px;
  padding: 34px;
  transition:
    box-shadow 300ms ease,
    transform 300ms var(--spring),
    border-color 300ms ease;
}

.principle:hover,
.service-grid article:hover {
  border-color: rgba(255, 255, 255, 0.95);
  box-shadow:
    var(--glass-highlight),
    var(--shadow-md);
  transform: translateY(-4px);
}

.principle span {
  align-items: center;
  background: var(--ink);
  border-radius: 999px;
  color: #fff;
  display: inline-flex;
  font-size: 0.74rem;
  font-weight: 700;
  height: 26px;
  justify-content: center;
  letter-spacing: 0.04em;
  opacity: 0;
  padding: 0 12px;
  transform: scale(0.6) translateY(8px);
  transition:
    opacity 600ms var(--spring) 320ms,
    transform 700ms var(--spring) 320ms;
}

.principle.is-visible span {
  opacity: 1;
  transform: scale(1) translateY(0);
}

.principle h2,
.service-grid h3 {
  color: var(--ink);
  font-size: clamp(1.5rem, 2vw, 2.05rem);
  hyphens: auto;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 70px 0 16px;
  overflow-wrap: break-word;
  word-break: normal;
}

.principle p,
.project-text p,
.service-grid p {
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.55;
  margin-bottom: 0;
}

.section-heading {
  margin-bottom: 56px;
  text-align: center;
}

/* ---------- Proyectos ---------- */

.project-story {
  align-items: center;
  display: grid;
  gap: 52px;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  min-height: 88vh;
  padding: 44px 0;
}

.project-story:nth-of-type(even) {
  grid-template-columns: minmax(320px, 0.75fr) minmax(0, 1.25fr);
}

.project-story:nth-of-type(even) .project-screen {
  order: 2;
}

.project-screen {
  aspect-ratio: 16 / 10;
  background: #f4f4f6;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--radius-lg);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    var(--shadow-lg);
  display: block;
  overflow: hidden;
  position: sticky;
  top: 92px;
  transform: perspective(1100px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg))
    scale(var(--s, 0.985));
  transition:
    box-shadow 320ms ease,
    transform 320ms var(--spring);
}

.project-screen:hover {
  --s: 1.005;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    0 44px 130px rgba(15, 15, 20, 0.2),
    0 12px 30px rgba(15, 15, 20, 0.08);
}

/* Reflejo que barre el vidrio al hacer hover */
.project-screen::after {
  background: linear-gradient(
    115deg,
    transparent 32%,
    rgba(255, 255, 255, 0.22) 46%,
    rgba(255, 255, 255, 0.05) 54%,
    transparent 66%
  );
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
  transform: translateX(-130%);
  transition: transform 950ms ease;
}

.project-screen:hover::after {
  transform: translateX(130%);
}

.screen-image {
  --img-scale: 1;
  --img-py: 0px;
  display: block;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transform: scale(var(--img-scale)) translate3d(0, var(--img-py), 0);
  transition: transform 600ms var(--spring);
  width: 100%;
}

.project-screen:hover .screen-image {
  --img-scale: 1.04;
}

.project-kicker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.project-kicker span {
  backdrop-filter: blur(12px) saturate(1.5);
  -webkit-backdrop-filter: blur(12px) saturate(1.5);
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  box-shadow: var(--glass-highlight);
  color: var(--text);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 6px 13px;
}

.project-text h3 {
  color: var(--ink);
  font-size: clamp(2.8rem, 6vw, 5.8rem);
  letter-spacing: -0.06em;
  line-height: 0.9;
  margin-bottom: 22px;
}

.project-text a {
  align-items: center;
  color: var(--ink);
  display: inline-flex;
  font-weight: 700;
  gap: 8px;
  margin-top: 28px;
  position: relative;
  transition: color 200ms ease, gap 200ms ease;
}

.project-text a::after {
  content: "→";
  display: inline-block;
  transition: transform 220ms var(--spring);
}

.project-text a:hover {
  color: var(--accent);
  gap: 12px;
}

.project-text a:hover::after {
  transform: translateX(4px);
}

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

/* ---------- Panel CV ---------- */

.cv-panel {
  border-radius: var(--radius-lg);
  margin: 60px auto;
  max-width: 1080px;
  text-align: center;
}

.cv-panel > * {
  margin-left: auto;
  margin-right: auto;
  max-width: 900px;
}

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

/* ---------- Contacto ---------- */

.contact {
  align-items: center;
  display: flex;
  flex-direction: column;
  min-height: 72vh;
  text-align: center;
}

.contact h2 {
  max-width: 950px;
}

.gradient-text {
  background: linear-gradient(110deg, var(--ink) 25%, var(--blue) 60%, var(--blue-soft) 85%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.footer {
  align-items: center;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  color: var(--muted);
  display: flex;
  font-size: 0.9rem;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 1120px;
  padding: 28px 22px;
}

/* ---------- Reveals ---------- */

.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition:
    opacity 760ms var(--spring),
    transform 760ms var(--spring);
  transition-delay: var(--reveal-delay, 0ms);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- CV web ---------- */

.cv-page {
  background: #f5f5f7;
}

.cv-sheet {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  margin: 38px auto;
  max-width: 940px;
  padding: 54px;
}

.cv-header {
  align-items: start;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 24px;
  justify-content: space-between;
  padding-bottom: 34px;
}

.cv-back {
  color: var(--blue);
  display: inline-flex;
  font-weight: 800;
  margin-bottom: 28px;
}

.cv-header h1 {
  color: var(--ink);
  font-size: clamp(3.2rem, 9vw, 6.4rem);
  letter-spacing: -0.055em;
  margin-bottom: 14px;
}

.cv-header p {
  color: var(--muted);
  font-size: 1.25rem;
}

.cv-meta {
  font-size: 1rem;
  margin-bottom: 6px;
}

.cv-downloads {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 170px;
}

.cv-section {
  border-bottom: 1px solid var(--line);
  padding: 28px 0;
}

.cv-section h2 {
  font-size: 1rem;
  letter-spacing: 0.04em;
  margin-bottom: 14px;
  text-transform: uppercase;
}

.cv-section p,
.cv-section li {
  color: var(--text);
  line-height: 1.65;
}

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

.cv-section ul {
  margin: 0;
  padding-left: 18px;
}

.cv-project {
  display: grid;
  gap: 8px;
  grid-template-columns: 170px 1fr;
  padding: 12px 0;
}

.cv-project p {
  margin: 0;
}

/* ---------- Reduced motion ---------- */

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

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

  .hero .glass-chip,
  .hero h1,
  .hero .hero-copy,
  .hero .hero-actions,
  .hero .scroll-hint,
  .hero-title .char,
  .glass-chip .dot,
  .scroll-hint svg,
  .marquee-track,
  body::before,
  body::after {
    animation: none !important;
  }

  .project-screen,
  .screen-image,
  .button {
    transition: none;
  }

  .project-screen::after {
    display: none;
  }
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .principles,
  .service-grid,
  .project-story,
  .project-story:nth-of-type(even),
  .cv-grid {
    grid-template-columns: 1fr;
  }

  .project-story,
  .project-story:nth-of-type(even) {
    min-height: auto;
  }

  .project-story:nth-of-type(even) .project-screen {
    order: 0;
  }

  .project-screen {
    position: relative;
    top: auto;
  }
}

@media (max-width: 620px) {
  .site-header {
    top: 10px;
  }

  .glass-nav {
    gap: 2px;
    padding: 4px;
  }

  .glass-nav a {
    font-size: 0.78rem;
    padding: 8px 12px;
  }

  .glass-nav .brand {
    display: none;
  }

  .hero {
    min-height: 92vh;
  }

  h1 {
    font-size: clamp(3.6rem, 18vw, 4.7rem);
    max-width: calc(100vw - 44px);
  }

  h1 span {
    display: block;
  }

  .hero-copy {
    font-size: 1.12rem;
    max-width: 280px;
    width: 100%;
  }

  .button,
  .hero-actions,
  .contact-actions,
  .cv-actions {
    width: min(100%, 300px);
  }

  .manifest p:first-child,
  .section-heading h2,
  .cv-panel h2,
  .contact h2 {
    font-size: clamp(2.8rem, 14vw, 4.4rem);
  }

  .principle,
  .service-grid article {
    min-height: auto;
  }

  .principle h2,
  .service-grid h3 {
    margin-top: 58px;
  }

  .scroll-hint {
    bottom: 20px;
  }

  .cv-sheet {
    border-radius: 0;
    margin: 0;
    padding: 28px 20px;
  }

  .cv-header,
  .footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .cv-downloads {
    width: 100%;
  }

  .cv-project {
    grid-template-columns: 1fr;
  }
}

@media print {
  body {
    background: #fff;
  }

  body::before,
  body::after {
    display: none;
  }

  .cv-sheet {
    border: none;
    border-radius: 0;
    box-shadow: none;
    margin: 0;
    max-width: none;
    padding: 0;
  }

  .print-button,
  .cv-back {
    display: none;
  }
}
