﻿:root {
  --bg: #12151a;
  --bg-elevated: #1a1f27;
  --amber: #e5a84b;
  --amber-hot: #f2bc63;
  --amber-deep: #c4892e;
  --cream: #f3ecdf;
  --cream-soft: #d9d0c2;
  --white: #faf7f2;
  --slate: #2a323b;
  --slate-deep: #1c232a;
  --slate-mid: #3a4450;
  --ink: #0b0d10;
  --track: rgba(243, 236, 223, 0.18);
  --fill: var(--amber);
  --radius-xl: 2.25rem;
  --radius-lg: 1.35rem;
  --radius-pill: 999px;
  --font: "DM Sans", sans-serif;
  --display: "Syne", sans-serif;
  --header-h: 4.25rem;
  --marquee-h: 3.15rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-bubble: cubic-bezier(0.34, 1.56, 0.64, 1);
  --max: 72rem;
  --ochre: var(--amber);
  --ochre-deep: var(--amber-deep);
  --ochre-soft: var(--amber-hot);
  --ochre-light: #f0c98a;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--cream);
  background: var(--bg);
  line-height: 1.55;
  overflow-x: hidden;
}

body.is-gated {
  overflow: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: 0;
  background: none;
  color: inherit;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1,
h2,
h3,
p {
  margin: 0;
}

.bg-glow {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 55% 45% at 12% 18%, rgba(244, 235, 224, 0.18), transparent 58%),
    radial-gradient(ellipse 50% 40% at 88% 55%, rgba(60, 72, 79, 0.28), transparent 62%),
    radial-gradient(ellipse 40% 30% at 50% 100%, rgba(154, 115, 66, 0.45), transparent 70%),
    linear-gradient(165deg, #c49a5d 0%, var(--ochre) 42%, #a87a45 100%);
}

.bg-texture {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.55;
  background-image:
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%233c484f' fill-opacity='0.22'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg width='160' height='160' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='30' cy='30' r='26' fill='none' stroke='%233c484f' stroke-opacity='0.16' stroke-width='1.2'/%3E%3Ccircle cx='110' cy='90' r='36' fill='none' stroke='%23f4ebe0' stroke-opacity='0.14' stroke-width='1.2'/%3E%3Ccircle cx='70' cy='130' r='18' fill='none' stroke='%233c484f' stroke-opacity='0.12' stroke-width='1'/%3E%3C/svg%3E");
  background-size: 52px 52px, 200px 200px;
  mix-blend-mode: multiply;
}

.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 80;
  opacity: 0.12;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

.intro-gate {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 2rem;
  background:
    radial-gradient(ellipse 90% 70% at 50% 45%, rgba(60, 72, 79, 0.18), transparent 72%),
    linear-gradient(160deg, #c49a5d, var(--ochre-deep));
  transition: opacity 0.65s var(--ease), visibility 0.65s var(--ease);
}

.intro-gate.is-leaving {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.intro-gate[hidden] {
  display: none;
}

.intro-gate__inner {
  max-width: 28rem;
  text-align: center;
  display: grid;
  gap: 2rem;
  justify-items: center;
}

.intro-gate__title {
  font-size: clamp(1.65rem, 5vw, 2.35rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--cream);
  text-wrap: balance;
}

.intro-gate__btn {
  min-width: 10rem;
}

body.is-gated .site-shell {
  visibility: hidden;
  pointer-events: none;
}

.site-shell {
  position: relative;
  z-index: 1;
}

.site-shell > main {
  position: relative;
  z-index: 1;
}

body.is-gated .site-header {
  visibility: hidden;
  pointer-events: none;
}

body.is-revealed .site-shell {
  animation: shell-in 0.85s var(--ease) both;
}

@keyframes shell-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Header — fijo fuera del shell, siempre visible al scrollear */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  padding: 0 clamp(1.25rem, 4vw, 3rem);
  background: rgba(186, 140, 81, 0.96);
  transition: background 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.site-header.is-scrolled {
  background: rgba(186, 140, 81, 0.98);
  box-shadow: 0 8px 24px rgba(28, 34, 38, 0.12);
}

.logo {
  font-weight: 800;
  letter-spacing: 0.08em;
  font-size: 1.05rem;
  border: 1.5px solid var(--cream);
  width: 2.6rem;
  height: 2.6rem;
  display: grid;
  place-items: center;
  border-radius: 0.7rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(0.9rem, 2.2vw, 1.6rem);
}

.nav a {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.88;
  transition: opacity 0.25s var(--ease);
}

.nav a:hover {
  opacity: 1;
}

.nav-cta {
  background: var(--slate);
  padding: 0.65rem 1.1rem;
  border-radius: var(--radius-pill);
  opacity: 1 !important;
}

.nav-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 6px 0;
  background: var(--cream);
  transition: transform 0.3s var(--ease);
}

.nav-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(8px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-8px) rotate(-45deg);
}

/* Title boxes â€” estilo CV */
.title-box {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.title-box h2 {
  background: var(--slate);
  color: var(--white);
  font-size: clamp(1.15rem, 2.8vw, 1.65rem);
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: center;
  padding: 0.85rem 1.75rem 1rem;
  border-radius: 1.25rem;
  position: relative;
  line-height: 1.2;
}

.title-box h2::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0.55rem;
  transform: translateX(-50%);
  width: 2.5rem;
  height: 2px;
  background: var(--cream);
}

.title-box--sm h2 {
  font-size: clamp(1rem, 2.2vw, 1.3rem);
  padding: 0.7rem 1.4rem 0.9rem;
}

.section {
  padding: clamp(2.25rem, 5vw, 3.75rem) clamp(1.1rem, 4vw, 3.25rem);
  position: relative;
}

.section-lead {
  text-align: center;
  max-width: 38rem;
  margin: -0.35rem auto 1.35rem;
  color: var(--cream-soft);
  font-weight: 500;
  font-size: 0.95rem;
}

/* Marquee */
.marquee {
  overflow: hidden;
  border-block: 1px solid rgba(244, 235, 224, 0.22);
  background: rgba(60, 72, 79, 0.22);
  padding: 0.85rem 0;
}

.marquee__track {
  display: flex;
  gap: 1.25rem;
  width: max-content;
  animation: marquee 28s linear infinite;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cream);
  white-space: nowrap;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Hero */
.hero {
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: end;
  gap: clamp(1rem, 3vw, 2rem);
  padding: calc(var(--header-h) + 0.5rem) clamp(1.25rem, 5vw, 4rem) 3.5rem;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 55% 45% at 78% 72%, rgba(60, 72, 79, 0.28), transparent 70%),
    linear-gradient(150deg, var(--ochre-soft), var(--ochre) 45%, var(--ochre-deep));
}

.hero__content {
  position: relative;
  z-index: 3;
  padding-bottom: clamp(1rem, 5vh, 3.5rem);
  max-width: 34rem;
}

.hero__name {
  font-size: clamp(3.2rem, 8.5vw, 6.5rem);
  line-height: 0.9;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.03em;
}

.hero__name span {
  display: block;
}

.hero__role {
  margin-top: 1.25rem;
}

.hero__role span {
  display: inline-block;
  border: 1.5px solid var(--cream);
  border-radius: var(--radius-pill);
  padding: 0.55rem 1.2rem;
  font-size: clamp(0.7rem, 1.3vw, 0.85rem);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero__lead {
  margin-top: 1.35rem;
  max-width: 26rem;
  font-size: clamp(0.95rem, 1.4vw, 1.05rem);
  color: var(--cream-soft);
  font-weight: 500;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.85rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  padding: 0.7rem 1.35rem;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1.5px solid transparent;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--dark {
  background: var(--slate);
}

.btn--dark:hover {
  background: var(--slate-deep);
}

.btn--outline {
  border-color: var(--cream);
  background: transparent;
}

.btn--outline:hover {
  background: rgba(244, 235, 224, 0.12);
}

.btn--pill {
  background: var(--slate);
  min-width: min(18rem, 90vw);
  min-height: 3.35rem;
  font-size: 0.95rem;
  letter-spacing: 0.16em;
}

.btn--pill span {
  text-decoration: underline;
  text-underline-offset: 0.28em;
}

/* Photo with fade for cropped feet */
.hero__visual {
  position: relative;
  height: min(82svh, 46rem);
  display: grid;
  place-items: end center;
  isolation: isolate;
}

.orb {
  position: absolute;
  border-radius: 50%;
  background: var(--slate);
  z-index: 0;
}

.orb--back {
  width: min(88%, 27rem);
  aspect-ratio: 1;
  top: -4%;
  right: -6%;
  animation: float-orb 8s var(--ease) infinite alternate;
}

.orb--mid {
  width: min(72%, 21rem);
  aspect-ratio: 1;
  top: 8%;
  left: -10%;
  background: #343c42;
  animation: float-orb 9.5s var(--ease) infinite alternate-reverse;
}

.orb--front {
  width: min(42%, 12rem);
  aspect-ratio: 1;
  top: 42%;
  right: -4%;
  background: #2a3136;
  opacity: 0.88;
}

.hero__photo-wrap {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  max-width: 100%;
  overflow: hidden;
}

.hero__photo {
  height: 100%;
  width: auto;
  max-width: min(100%, 26rem);
  object-fit: contain;
  object-position: bottom center;
  animation: photo-in 1.1s var(--ease) both;
}

.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 1rem;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  opacity: 0.75;
  z-index: 4;
}

.scroll-hint span {
  width: 11px;
  height: 11px;
  border-right: 2px solid var(--cream);
  border-bottom: 2px solid var(--cream);
  transform: rotate(45deg);
  animation: chevron 1.6s ease-in-out infinite;
}

.scroll-hint span:nth-child(2) { animation-delay: 0.15s; }
.scroll-hint span:nth-child(3) { animation-delay: 0.3s; }

/* About */
.about {
  background: linear-gradient(180deg, var(--ochre-deep), var(--ochre));
}

.about__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 1.15rem;
  max-width: var(--max);
  margin: 0 auto;
  align-items: stretch;
}

.about__panel {
  background: var(--slate);
  border-radius: var(--radius-xl);
  padding: clamp(1.35rem, 3vw, 2.1rem);
  box-shadow: 0 18px 40px rgba(28, 34, 38, 0.2);
}

.focus-list {
  background: rgba(60, 72, 79, 0.28);
  border: 1px solid rgba(244, 235, 224, 0.18);
  border-radius: var(--radius-xl);
  padding: 1.25rem 1.35rem;
}

.focus-list h3 {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.9rem;
}

.focus-list li {
  display: grid;
  gap: 0.15rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid rgba(244, 235, 224, 0.16);
}

.focus-list li:last-child { border-bottom: 0; }

.focus-list strong {
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.focus-list span {
  color: var(--cream-soft);
  font-size: 0.88rem;
  font-weight: 500;
}

.contact-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin-bottom: 1.1rem;
}

.contact-list a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.84rem;
  font-weight: 600;
}

.contact-list svg {
  width: 1.05rem;
  height: 1.05rem;
}

.about__panel > p {
  color: var(--cream-soft);
  font-size: 0.98rem;
}

/* Services */
.services {
  background:
    radial-gradient(circle at 80% 20%, rgba(60, 72, 79, 0.2), transparent 45%),
    linear-gradient(180deg, var(--ochre), #b48448);
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
  max-width: var(--max);
  margin: 0 auto;
}

.services__grid article {
  padding: 1.15rem 1.2rem;
  border-radius: 1.15rem;
  background: rgba(60, 72, 79, 0.28);
  border: 1px solid rgba(244, 235, 224, 0.16);
  transition: transform 0.3s var(--ease), background 0.3s var(--ease);
}

.services__grid article:hover {
  transform: translateY(-3px);
  background: rgba(60, 72, 79, 0.4);
}

.services__num {
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  opacity: 0.7;
  margin-bottom: 0.55rem;
}

.services__grid h3 {
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.45rem;
}

.services__grid p {
  color: var(--cream-soft);
  font-size: 0.9rem;
  font-weight: 500;
}

/* Ãšltimos proyectos dentro de Trabajos */
.latest-projects {
  margin: 0 auto 2.25rem;
  max-width: var(--max);
}

.latest-projects__title {
  text-align: center;
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cream);
  margin-bottom: 1.25rem;
}

.work__grid--featured {
  grid-template-columns: repeat(2, minmax(9rem, 12rem));
  justify-content: center;
  max-width: 28rem;
  margin: 0 auto;
}

.video-card h3 {
  margin-top: 0.85rem;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
}

.video-frame,
.showreel__frame {
  position: relative;
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--slate-deep);
  box-shadow: 0 16px 40px rgba(28, 34, 38, 0.25);
  aspect-ratio: 16 / 9;
}

.video-frame iframe {
  position: absolute;
  left: 0;
  width: 100%;
  border: 0;
  top: -52px;
  height: calc(100% + 52px);
}

.showreel__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.showreel {
  background: linear-gradient(180deg, #b48448, var(--ochre-deep));
}

.showreel__frame {
  max-width: 56rem;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
}

/* Work gallery */
.work {
  background:
    radial-gradient(ellipse at 20% 30%, rgba(244, 235, 224, 0.08), transparent 45%),
    linear-gradient(180deg, var(--ochre-deep), #a67a45);
}

.work__filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem;
  margin-bottom: 1.35rem;
}

.filter-btn {
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-pill);
  border: 1.5px solid rgba(244, 235, 224, 0.45);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease);
}

.filter-btn:hover,
.filter-btn.is-active {
  background: var(--slate);
  border-color: var(--slate);
}

.work__grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.75rem;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.35rem;
}

.work-item {
  position: relative;
  z-index: 1;
  transition: opacity 0.3s var(--ease);
}

.work-item.is-hidden {
  display: none;
}

.work-item:hover,
.work-item:focus-within {
  z-index: 5;
}

.work-thumb {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border-radius: 0.7rem;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: var(--slate-deep);
  border: 1px solid rgba(244, 235, 224, 0.28);
  box-shadow: 0 8px 18px rgba(28, 34, 38, 0.18);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}

.work-thumb::after {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(244, 235, 224, 0.35);
  border-radius: 0.45rem;
  pointer-events: none;
  z-index: 2;
}

.work-item:hover .work-thumb,
.work-item:focus-within .work-thumb {
  transform: scale(1.06);
  border-color: var(--cream);
  box-shadow: 0 18px 36px rgba(20, 24, 28, 0.4);
}

.work-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s var(--ease), filter 0.35s var(--ease), opacity 0.25s ease;
  filter: saturate(0.92);
}

.work-thumb__video {
  display: none;
}

.work-item:hover .work-thumb img,
.work-item:focus-within .work-thumb img {
  transform: scale(1.08);
  filter: saturate(1.05);
}

.play-badge {
  position: absolute;
  inset: auto 0.45rem 0.45rem auto;
  width: 1.55rem;
  height: 1.55rem;
  margin: 0;
  border-radius: 50%;
  background: rgba(60, 72, 79, 0.88);
  border: 1.5px solid var(--cream);
  z-index: 3;
  opacity: 0.9;
  display: grid;
  place-items: center;
  line-height: 0;
}

.play-badge::after {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  margin: 0;
  /* Triángulo play centrado ópticamente en el círculo */
  background: var(--cream);
  clip-path: polygon(12% 0%, 100% 50%, 12% 100%);
  transform: translateX(0.08rem);
}

.work-item h3 {
  margin-top: 0.4rem;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-align: center;
  opacity: 0.88;
  line-height: 1.25;
}

/* Floating hover preview */
.hover-preview {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 90;
  width: min(260px, 48vw);
  pointer-events: none;
  background: var(--slate);
  border: 1px solid rgba(244, 235, 224, 0.3);
  border-radius: 0.9rem;
  overflow: hidden;
  box-shadow: 0 22px 48px rgba(16, 20, 24, 0.45);
}

.hover-preview[hidden] {
  display: none;
}

.hover-preview img,
.hover-preview video {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
  background: #111;
}

.hover-preview video:not([hidden]) ~ img,
.hover-preview img[hidden] {
  display: none;
}

.hover-preview p {
  padding: 0.55rem 0.7rem 0.7rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
}

/* Skills */
.skills {
  background: linear-gradient(180deg, #a67a45, var(--ochre));
}

.skills__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 1.75rem;
  max-width: 52rem;
  margin: 0 auto;
}

.skill {
  padding: 0;
  border-radius: 1.1rem;
  background: rgba(60, 72, 79, 0.2);
  transition: background 0.3s var(--ease), transform 0.3s var(--ease);
}

.skill__link {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
  align-items: center;
  padding: 0.85rem 1rem;
  border-radius: inherit;
  width: 100%;
}

.skill:hover {
  background: rgba(60, 72, 79, 0.32);
  transform: translateY(-2px);
}

.skill__link:focus-visible {
  outline: 2px solid var(--cream);
  outline-offset: 2px;
}

.skill__icon {
  width: 2.55rem;
  height: 2.55rem;
  border-radius: 0.6rem;
  background: var(--white);
  color: var(--slate-deep);
  display: grid;
  place-items: center;
}

.skill__icon svg {
  width: 1.3rem;
  height: 1.3rem;
}

.adobe {
  font-size: 0.75rem;
  font-weight: 800;
}

.adobe--ai { color: #9a3412; }
.adobe--pr { color: #86198f; }
.adobe--ae { color: #5b21b6; }

.skill__name {
  display: block;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}

.skill__track {
  height: 0.36rem;
  border-radius: var(--radius-pill);
  background: var(--track);
  overflow: hidden;
}

.skill__fill {
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: var(--fill);
  transition: width 1.1s var(--ease);
}

.skill.is-visible .skill__fill {
  width: var(--level, 90%);
}

/* Experience */
.experience {
  background:
    radial-gradient(circle at 90% 15%, rgba(60, 72, 79, 0.22), transparent 40%),
    linear-gradient(180deg, var(--ochre), var(--ochre-deep));
}

.timeline {
  display: grid;
  gap: 0.25rem;
  max-width: 40rem;
  margin: 0 auto;
}

.timeline li {
  display: grid;
  grid-template-columns: 8.5rem 1fr;
  gap: 1rem;
  padding: 1.05rem 0;
  border-bottom: 1px solid rgba(244, 235, 224, 0.22);
}

.timeline__year,
.education__year {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cream);
}

.timeline h3 {
  font-size: 1.02rem;
  font-weight: 800;
  margin-bottom: 0.2rem;
}

.timeline p {
  color: var(--cream-soft);
  font-weight: 500;
}

.education {
  margin-top: clamp(2.5rem, 6vw, 3.75rem);
  max-width: 40rem;
  margin-left: auto;
  margin-right: auto;
}

.education ul {
  margin-top: 0.5rem;
}

.education li {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: 1rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid rgba(244, 235, 224, 0.22);
}

.education strong {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.9rem;
  margin-bottom: 0.2rem;
}

.education span:last-child {
  color: var(--cream-soft);
  font-size: 0.9rem;
  font-weight: 500;
}

.profile__layout--solo {
  display: block;
  max-width: 44rem;
  margin: 0 auto;
}

.profile__mail {
  margin-top: 1.35rem;
}

.profile__mail a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}
.profile {
  background: linear-gradient(180deg, var(--ochre-deep), #956c3c);
}

.profile__qr {
  background: var(--slate);
  border-radius: var(--radius-xl);
  padding: 1.35rem 1.35rem 1.1rem;
  text-align: center;
  box-shadow: 0 16px 36px rgba(28, 34, 38, 0.22);
  align-self: start;
}

.profile__qr img {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  object-position: center;
  background: #fff;
  border-radius: 0.85rem;
  padding: 0.75rem;
  display: block;
}

.profile__layout {
  display: grid;
  grid-template-columns: minmax(13rem, 17rem) 1fr;
  gap: clamp(1.5rem, 4vw, 2.75rem);
  align-items: start;
  max-width: 56rem;
  margin: 0 auto;
}

.profile__qr p {
  margin-top: 0.85rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cream-soft);
}

.profile__body {
  display: grid;
  gap: 1.1rem;
  color: var(--cream-soft);
  font-size: clamp(0.98rem, 1.5vw, 1.08rem);
}

.profile__body strong {
  color: var(--white);
  font-weight: 800;
}

/* Portfolio CTA */
.portfolio {
  text-align: center;
  background:
    radial-gradient(circle at 50% 0%, rgba(60, 72, 79, 0.28), transparent 55%),
    linear-gradient(180deg, #956c3c, var(--ochre));
}

.portfolio .btn {
  margin-top: 0.5rem;
}

/* Footer */
.site-footer {
  padding: 2rem clamp(1.25rem, 5vw, 4rem) 2.5rem;
  background: var(--slate);
  text-align: center;
  display: grid;
  gap: 0.35rem;
  font-size: 0.86rem;
  color: var(--cream-soft);
}

.site-footer p:first-child {
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(20, 24, 28, 0.92);
  display: grid;
  place-items: center;
  padding: 2rem 1rem 3.5rem;
}

.lightbox[hidden] {
  display: none;
}

.lightbox__close {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  font-size: 2.2rem;
  line-height: 1;
  color: var(--cream);
  z-index: 2;
}

.lightbox__inner {
  width: min(960px, 96vw);
  aspect-ratio: 16 / 9;
  max-height: 78vh;
  background: #111;
  border-radius: 1rem;
  overflow: hidden;
  position: relative;
}

.lightbox__inner iframe,
.lightbox__inner img,
.lightbox__inner video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: contain;
  background: #000;
}

.lightbox__inner iframe {
  inset: auto;
  left: 0;
  top: -52px;
  width: 100%;
  height: calc(100% + 52px);
}

.lightbox__loading {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  margin: 0;
  z-index: 1;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cream-soft);
  pointer-events: none;
}

.lightbox__loading[hidden] {
  display: none;
}

.lightbox__meta {
  position: absolute;
  bottom: 1.1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  align-items: center;
  justify-content: center;
  max-width: 92vw;
}

.lightbox__title {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cream);
}

.lightbox__open {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ochre-light);
  border-bottom: 1px solid currentColor;
  padding-bottom: 0.1rem;
}

.lightbox__open[hidden] {
  display: none;
}

/* WhatsApp */
.whatsapp-btn {
  position: fixed;
  right: 1.15rem;
  bottom: 1.15rem;
  z-index: 95;
  width: 3.35rem;
  height: 3.35rem;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 28px rgba(20, 24, 28, 0.28);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
  line-height: 0;
  padding: 0;
}

.whatsapp-btn svg {
  width: 1.72rem;
  height: 1.72rem;
  display: block;
  overflow: visible;
}

.whatsapp-btn:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 14px 32px rgba(20, 24, 28, 0.35);
}

body.is-gated .whatsapp-btn {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(1rem);
  animation: rise 0.9s var(--ease) forwards;
}

.reveal-delay { animation-delay: 0.1s; }
.reveal-delay-2 { animation-delay: 0.2s; }
.reveal-delay-3 { animation-delay: 0.32s; }
.reveal-delay-4 { animation-delay: 0.44s; }

[data-reveal] {
  opacity: 0;
  transform: translateY(1.15rem);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

[data-reveal].is-in {
  opacity: 1;
  transform: none;
}

@keyframes rise {
  to { opacity: 1; transform: none; }
}

@keyframes photo-in {
  from { opacity: 0; transform: translateY(1.5rem) scale(0.98); }
  to { opacity: 1; transform: none; }
}

@keyframes float-orb {
  from { transform: translateY(0) scale(1); }
  to { transform: translateY(-10px) scale(1.03); }
}

@keyframes chevron {
  0%, 100% { opacity: 0.25; }
  50% { opacity: 1; }
}

/* Responsive */
@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-bottom: 4.5rem;
  }

  .hero__visual {
    order: -1;
    height: min(58svh, 30rem);
  }

  .about__grid,
  .services__grid {
    grid-template-columns: 1fr;
  }

  .work__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .skills__list {
    grid-template-columns: 1fr;
  }

  .profile__layout {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .profile__qr {
    width: min(16rem, 80vw);
  }

  .profile__body {
    text-align: left;
  }
}

@media (max-width: 760px) {
  .nav-toggle { display: block; }

  .nav {
    position: fixed;
    inset: var(--header-h) 1rem auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0.3rem;
    padding: 1rem;
    background: var(--slate);
    border-radius: 1.2rem;
    box-shadow: 0 16px 40px rgba(20, 24, 28, 0.35);
  }

  .nav.is-open { display: flex; }

  .nav a {
    padding: 0.8rem 0.9rem;
    border-radius: 0.7rem;
  }

  .nav-cta { text-align: center; }

  .timeline li,
  .education li {
    grid-template-columns: 1fr;
    gap: 0.3rem;
  }

  .work__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.55rem;
  }

  .work-item:hover .work-thumb,
  .work-item:focus-within .work-thumb {
    transform: scale(1.08);
  }

  .hover-preview {
    display: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal,
  .hero__photo,
  .orb,
  .scroll-hint span,
  .skill__fill,
  [data-reveal] {
    animation: none !important;
    transition: none !important;
    opacity: 1;
    transform: none;
  }
}


