:root {
  --bg: #f3ede3;
  --bg-deep: #e0d2bf;
  --surface: rgba(255, 248, 240, 0.74);
  --surface-strong: rgba(255, 250, 245, 0.9);
  --text: #231815;
  --muted: #5f5148;
  --line: rgba(35, 24, 21, 0.16);
  --accent: #af6d2b;
  --accent-soft: rgba(175, 109, 43, 0.12);
  --shadow: 0 24px 60px rgba(44, 23, 8, 0.14);
  --max: 1180px;
  --hero-progress: 0;
  --page-offset: 0px;
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Sora", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.65), transparent 36%),
    linear-gradient(180deg, #fbf7f2 0%, var(--bg) 45%, #efe4d6 100%);
  line-height: 1.6;
}

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

a {
  color: inherit;
}

.page-shell {
  overflow: clip;
}

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: rgba(250, 245, 238, 0.72);
  border-bottom: 1px solid rgba(35, 24, 21, 0.08);
}

.topbar__inner,
.section,
.footer__inner {
  width: min(calc(100% - 2rem), var(--max));
  margin: 0 auto;
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 76px;
}

.brand {
  text-decoration: none;
}

.brand__eyebrow {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.brand__name {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.3rem);
  line-height: 0.9;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav__links,
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav__links a,
.lang-switcher a {
  text-decoration: none;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lang-switcher a {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-width: 3.25rem;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  border: 1px solid transparent;
  color: var(--muted);
  text-align: center;
}

.lang-switcher a.is-active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.66);
  border-color: rgba(35, 24, 21, 0.12);
}

.lang-switcher a::before {
  content: "";
  position: absolute;
  inset: 0.12rem;
  border-radius: 999px;
  opacity: 0.26;
  z-index: -1;
  transform: scale(0.92);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.lang-switcher a:hover::before,
.lang-switcher a.is-active::before {
  opacity: 0.42;
  transform: scale(1);
}

.lang-switcher a.lang--es::before {
  background:
    linear-gradient(
      180deg,
      #c61d23 0%,
      #c61d23 25%,
      #f1c83b 25%,
      #f1c83b 75%,
      #c61d23 75%,
      #c61d23 100%
    );
}

.lang-switcher a.lang--fr::before {
  background:
    linear-gradient(
      90deg,
      #1d4aa7 0%,
      #1d4aa7 33.33%,
      #f8f5ef 33.33%,
      #f8f5ef 66.66%,
      #cf2b34 66.66%,
      #cf2b34 100%
    );
}

.lang-switcher a.lang--en::before {
  background:
    linear-gradient(180deg, rgba(200, 21, 35, 0.88), rgba(200, 21, 35, 0.88)),
    repeating-linear-gradient(
      180deg,
      rgba(248, 245, 239, 0.92) 0,
      rgba(248, 245, 239, 0.92) 10%,
      rgba(200, 21, 35, 0.88) 10%,
      rgba(200, 21, 35, 0.88) 20%
    );
  background-size: 46% 56%, 100% 100%;
  background-repeat: no-repeat;
  background-position: left top, center;
}

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: end center;
  padding: 8rem 0 2.5rem;
  isolation: isolate;
}

.hero__media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero__backdrop,
.hero__portrait,
.hero__detail {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  transform-origin: center;
  transition: transform 0.9s ease, opacity 0.9s ease;
}

.hero__backdrop {
  background-image:
    linear-gradient(180deg, rgba(16, 11, 8, 0.18), rgba(16, 11, 8, 0.54)),
    url("https://artandstar.es/_include/img/portfolio/atelier/full/francois_aviles_atelier_full5.jpg");
  transform: scale(calc(1 + (var(--hero-progress) * 0.08)));
}

.hero__portrait {
  inset: 12% 10% 18% 44%;
  background-image: url("https://artandstar.es/_include/img/about/francois_aviles/francois_aviles.jpg");
  border-radius: 28px;
  box-shadow: var(--shadow);
  transform:
    translate3d(0, calc(var(--page-offset) * -0.08), 0)
    scale(calc(1 + (var(--hero-progress) * 0.12)));
}

.hero__detail {
  inset: 16% 48% 22% 8%;
  background-image: url("https://artandstar.es/_include/img/about/technic/francois_aviles_technic.jpg");
  border-radius: 28px;
  opacity: 0.85;
  box-shadow: var(--shadow);
  transform:
    translate3d(0, calc(var(--page-offset) * -0.03), 0)
    scale(calc(1 + (var(--hero-progress) * 0.06)));
}

.hero__glow {
  position: absolute;
  inset: auto 12% 14% auto;
  width: min(36vw, 420px);
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(240, 176, 88, 0.46), transparent 64%);
  filter: blur(18px);
  transform: translate3d(0, calc(var(--page-offset) * -0.1), 0);
}

.hero__content {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 2rem), var(--max));
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 2rem;
  align-items: end;
}

.hero__copy,
.hero__aside {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}

.hero__copy {
  padding: clamp(1.75rem, 3vw, 3rem);
  border-radius: 30px;
}

.eyebrow {
  margin: 0 0 1rem;
  font-size: 0.78rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color:
}

.hero__copy .eyebrow {
  color:
} 

.hero h1,
.section h2,
.quote__text,
.stat__value,
.gallery-card__title,
.footer__name {
  font-family: var(--font-display);
  font-weight: 600;
}

.hero h1 {
  margin: 0;
  font-size: clamp(3.4rem, 8vw, 7.2rem);
  line-height: 0.88;
  text-wrap: balance;
}

.hero__lead {
  max-width: 36rem;
  margin: 1rem 0 0;
  font-size: clamp(1rem, 2vw, 1.18rem);
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.6rem;
}

.button,
.link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0.9rem 1.25rem;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.86rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: transform 0.8s ease, background 0.8s ease, color 0.8s ease, border-color 0.8s ease;
}

.button {
  color: #20140d;
  background: #f6e8d8;
}

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

.link-button {
  border: 1px solid rgba(255, 248, 240, 0.5);
}

.hero__aside {
  padding: 1.5rem;
  border-radius: 24px;
  color: #fff8f0;
  background: linear-gradient(180deg, rgba(31, 20, 17, 0.7), rgba(31, 20, 17, 0.84));
}

.hero__aside p {
  margin: 0 0 1rem;
}

.hero__aside ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.8rem;
}

.hero__aside li {
  display: grid;
  gap: 0.25rem;
  padding-top: 0.8rem;
  border-top: 1px solid rgba(255, 248, 240, 0.16);
}

.hero__aside strong {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.section {
  position: relative;
  padding: 5.5rem 0;
}

.section--tight {
  padding-top: 4rem;
}

.section__header {
  display: grid;
  gap: 0.85rem;
  max-width: 48rem;
  margin-bottom: 2.2rem;
}

.section__header .eyebrow {
  color: var(--accent);
  margin-bottom: 0;
}

.section h2 {
  margin: 0;
  font-size: clamp(2.4rem, 4vw, 4.4rem);
  line-height: 0.94;
}

.section__header p,
.narrative p,
.gallery-card__body,
.contact__text,
.footer__copy {
  color: var(--muted);
}

.story-grid,
.craft-grid,
.video-grid,
.contact,
.footer__inner {
  display: grid;
  gap: 1.5rem;
}

.story-grid {
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
}

.panel,
.quote,
.gallery-card,
.video-card,
.contact,
.stat {
  border-radius: 26px;
  background: var(--surface-strong);
  box-shadow: var(--shadow);
  border: 1px solid rgba(35, 24, 21, 0.08);
}

.panel {
  padding: clamp(1.4rem, 3vw, 2.2rem);
}

.narrative {
  display: grid;
  gap: 1rem;
}

.quote {
  align-self: start;
  padding: 1.5rem;
  background:
    linear-gradient(180deg, rgba(175, 109, 43, 0.08), rgba(175, 109, 43, 0.02)),
    var(--surface-strong);
}

.quote__text {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  line-height: 1.05;
}

.quote__author {
  margin: 1rem 0 0;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.8rem;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.stat {
  padding: 1.2rem;
}

.stat__value {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 0.9;
}

.stat__label {
  margin-top: 0.5rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.craft-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.feature-card {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  min-height: 480px;
  color: #fff8f0;
  padding: 1.5rem;
  display: flex;
  align-items: end;
  background-size: cover;
  background-position: center;
  isolation: isolate;
}

.feature-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(21, 12, 7, 0.18), rgba(21, 12, 7, 0.78));
  z-index: -1;
}

.feature-card__content {
  max-width: 28rem;
  background: rgba(24, 14, 11, 0.5);
  padding: 1.25rem;
  border-radius: 22px;
  backdrop-filter: blur(10px);
}

.feature-card h3,
.contact h3 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.8rem, 2.6vw, 2.6rem);
  font-family: var(--font-display);
}

.feature-card p {
  margin: 0;
}

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

.gallery-card {
  overflow: hidden;
  grid-column: span 4;
}

.gallery-card--wide {
  grid-column: span 8;
}

.gallery-card__media {
  position: relative;
  aspect-ratio: 1 / 1.02;
  overflow: hidden;
}

.gallery-card--wide .gallery-card__media {
  aspect-ratio: 16 / 9;
}

.gallery-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.05s ease;
}

.gallery-card:hover .gallery-card__media img {
  transform: scale(1.06);
}

.gallery-card__body {
  padding: 1.25rem;
}

.gallery-card__title {
  margin: 0 0 0.25rem;
  font-size: 1.8rem;
}

.video-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.video-card {
  overflow: hidden;
}

.video-card iframe {
  width: 100%;
  aspect-ratio: 16 / 10;
  border: 0;
}

.video-card__body {
  padding: 1rem 1.1rem 1.2rem;
}

.video-card__body h3 {
  margin: 0 0 0.3rem;
  font-size: 1.1rem;
}

.contact {
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  padding: clamp(1.4rem, 3vw, 2.4rem);
}

.contact__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.2rem;
}

.mail-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.footer {
  padding: 0 0 2.5rem;
}

.footer__inner {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: end;
}

.footer__name {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3rem);
}

.reveal {
  opacity: 0;
  transform: translateY(44px) scale(0.98);
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}

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

.parallax {
  will-change: transform;
}

@media (max-width: 1080px) {
  .hero__content,
  .story-grid,
  .contact,
  .footer__inner,
  .craft-grid,
  .video-grid {
    grid-template-columns: 1fr;
  }

  .gallery-card,
  .gallery-card--wide {
    grid-column: span 6;
  }

  .hero__portrait {
    inset: 10% 8% 40% 40%;
  }

  .hero__detail {
    inset: 18% 42% 26% 6%;
  }
}

@media (max-width: 760px) {
  .topbar__inner {
    min-height: 92px;
    align-items: start;
    padding: 0.9rem 0;
    flex-direction: column;
  }

  .nav {
    width: 100%;
    align-items: flex-start;
    flex-direction: column;
  }

  .nav__links,
  .lang-switcher {
    flex-wrap: wrap;
  }

  .hero {
    padding-top: 10rem;
  }

  .hero__media {
    inset: 0 0 18%;
  }

  .hero__portrait,
  .hero__detail {
    border-radius: 22px;
  }

  .hero__portrait {
    inset: 14% 6% 32% 18%;
  }

  .hero__detail {
    inset: 50% 18% 10% 4%;
  }

  .hero__glow {
    inset: auto auto 20% 8%;
    width: 60vw;
  }

  .stats,
  .gallery {
    grid-template-columns: 1fr;
  }

  .gallery-card,
  .gallery-card--wide {
    grid-column: span 1;
  }

  .feature-card {
    min-height: 360px;
  }
}

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

  .reveal,
  .button,
  .link-button,
  .hero__backdrop,
  .hero__portrait,
  .hero__detail,
  .gallery-card__media img {
    transition: none;
  }

  .parallax,
  .hero__portrait,
  .hero__detail,
  .hero__glow,
  .hero__backdrop {
    transform: none !important;
  }
}
