:root {
  --ink: #1e2a36;
  --coal: #171513;
  --paper: #fbf7ef;
  --ivory: #f3ebdd;
  --copper: #a46a3f;
  --copper-deep: #6f3a20;
  --albero: #d8a24b;
  --sierra-elvira: #77716a;
  --alfacar: #e8dcc9;
  --malaha: #8f5132;
  --tina: #f7f0e3;
  --ferrogalica: #18212b;
  --wine: #6d2635;
  --sage: #596a5a;
  --stone: #6f6a61;
  --ink-rgb: 30 42 54;
  --coal-rgb: 23 21 19;
  --paper-rgb: 251 247 239;
  --ivory-rgb: 243 235 221;
  --copper-rgb: 164 106 63;
  --copper-deep-rgb: 111 58 32;
  --albero-rgb: 216 162 75;
  --sierra-elvira-rgb: 119 113 106;
  --alfacar-rgb: 232 220 201;
  --malaha-rgb: 143 81 50;
  --tina-rgb: 247 240 227;
  --ferrogalica-rgb: 24 33 43;
  --wine-rgb: 109 38 53;
  --sage-rgb: 89 106 90;
  --stone-rgb: 111 106 97;
  --line: rgb(var(--ink-rgb) / .16);
  --line-copper: rgb(var(--copper-rgb) / .28);
  --shadow-soft: 0 26px 70px rgb(var(--copper-deep-rgb) / .10);
  --shadow-copper: 0 18px 45px rgb(var(--copper-deep-rgb) / .16);
  --serif: Georgia, "Times New Roman", serif;
  --sans: Arial, Helvetica, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    linear-gradient(120deg, rgb(var(--tina-rgb) / .34) 0 1px, rgb(var(--tina-rgb) / 0) 1px 100%),
    linear-gradient(0deg, rgb(var(--copper-deep-rgb) / .028) 0 1px, rgb(var(--copper-deep-rgb) / 0) 1px 100%),
    radial-gradient(circle at 12% 9%, rgb(var(--albero-rgb) / .12), rgb(var(--albero-rgb) / 0) 24rem),
    radial-gradient(circle at 88% 26%, rgb(var(--copper-rgb) / .10), rgb(var(--copper-rgb) / 0) 28rem),
    var(--paper);
  background-size: auto, 42px 42px, auto, auto, auto;
  color: var(--coal);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
}
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
.skip-link {
  position: fixed;
  left: 1rem;
  top: -6rem;
  z-index: 20;
  background: var(--ink);
  color: var(--tina);
  padding: .7rem 1rem;
}
.skip-link:focus { top: 1rem; }
.shell { width: min(1160px, calc(100% - 40px)); margin: 0 auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgb(var(--paper-rgb) / .96);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 14px 34px rgb(var(--copper-deep-rgb) / .07);
  backdrop-filter: blur(10px);
}
.nav {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 1.05rem;
  min-width: min(440px, 42vw);
  text-decoration: none;
}
.brand-mark {
  width: 74px;
  height: 74px;
  object-fit: cover;
  border-radius: 50%;
  padding: 4px;
  background: radial-gradient(circle, var(--tina) 0%, var(--ivory) 68%, var(--copper) 100%);
  box-shadow:
    0 0 0 1px rgb(var(--copper-rgb) / .28),
    0 14px 32px rgb(var(--copper-deep-rgb) / .14);
}
.brand-divider {
  width: 1px;
  height: 72px;
  background: rgb(var(--copper-rgb) / .45);
}
.brand-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1;
}
.brand-title {
  color: var(--ferrogalica);
  font-family: var(--serif);
  font-size: 2.45rem;
  letter-spacing: 0;
  text-shadow: 0 1px 0 rgb(var(--tina-rgb) / .55);
}
.brand-subtitle {
  margin-top: .48rem;
  color: var(--wine);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: none;
}
.brand-name {
  margin-top: .36rem;
  color: var(--stone);
  font-family: var(--serif);
  font-size: .9rem;
}
nav ul { display: flex; gap: 1.4rem; list-style: none; margin: 0; padding: 0; }
nav a {
  color: var(--ink);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-decoration: none;
  text-transform: uppercase;
  position: relative;
  padding-bottom: .26rem;
}
nav a:hover,
nav a:focus-visible { color: var(--wine); }
nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--copper), var(--albero));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .18s ease;
}
nav a:hover::after,
nav a:focus-visible::after { transform: scaleX(1); }

.hero {
  background: var(--ivory);
  border-bottom: 1px solid var(--line);
}
.hero:not(.hero-home) {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background:
    linear-gradient(135deg, rgb(var(--tina-rgb) / .95), rgb(var(--alfacar-rgb) / .84)),
    radial-gradient(circle at 78% 36%, rgb(var(--copper-rgb) / .16), rgb(var(--copper-rgb) / 0) 24rem),
    radial-gradient(circle at 15% 74%, rgb(var(--albero-rgb) / .13), rgb(var(--albero-rgb) / 0) 18rem),
    radial-gradient(circle at 54% 18%, rgb(var(--ferrogalica-rgb) / .035), rgb(var(--ferrogalica-rgb) / 0) 26rem);
}
.hero:not(.hero-home)::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgb(var(--copper-rgb) / 0) 0 76px, rgb(var(--copper-rgb) / .055) 77px 78px),
    linear-gradient(0deg, rgb(var(--copper-rgb) / 0) 0 76px, rgb(var(--copper-rgb) / .035) 77px 78px);
  mask-image: linear-gradient(90deg, rgb(var(--coal-rgb) / .55), rgb(var(--coal-rgb) / 0) 72%);
}
.hero:not(.hero-home)::after {
  content: "ARTE";
  position: absolute;
  right: -2.5rem;
  bottom: -2.8rem;
  z-index: -1;
  color: rgb(var(--copper-deep-rgb) / .075);
  font-family: var(--serif);
  font-size: 13rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: .78;
}
.hero.hero-sofia {
  background:
    linear-gradient(135deg, rgb(var(--tina-rgb) / .94), rgb(var(--alfacar-rgb) / .84)),
    radial-gradient(circle at 78% 38%, rgb(var(--sage-rgb) / .18), rgb(var(--sage-rgb) / 0) 24rem),
    radial-gradient(circle at 16% 72%, rgb(var(--wine-rgb) / .11), rgb(var(--wine-rgb) / 0) 19rem),
    radial-gradient(circle at 56% 12%, rgb(var(--albero-rgb) / .11), rgb(var(--albero-rgb) / 0) 22rem);
}
.hero.hero-sofia::before {
  background:
    linear-gradient(90deg, rgb(var(--sage-rgb) / 0) 0 76px, rgb(var(--sage-rgb) / .060) 77px 78px),
    linear-gradient(0deg, rgb(var(--copper-rgb) / 0) 0 76px, rgb(var(--copper-rgb) / .034) 77px 78px);
}
.hero.hero-sofia::after {
  content: "SOFÍA";
  right: -2rem;
  color: rgb(var(--sage-rgb) / .105);
}
.hero.hero-sofia .hero-grid {
  grid-template-columns: minmax(0, 1.4fr) minmax(250px, .6fr);
  gap: 2.7rem;
}
.hero.hero-sofia .eyebrow { color: var(--sage); }
.hero.hero-sofia .eyebrow::before {
  background: linear-gradient(90deg, var(--sage), var(--albero));
}
.hero.hero-sofia h1 {
  color: var(--wine);
}
.hero.hero-sofia h1::after {
  background: linear-gradient(90deg, var(--sage), var(--albero), rgb(var(--albero-rgb) / 0));
}
.hero.hero-sofia .lead {
  border-left-color: rgb(var(--sage-rgb) / .36);
  color: rgb(var(--ferrogalica-rgb) / .80);
}
.hero.hero-sofia .seal-card {
  width: min(315px, 100%);
  border-color: rgb(var(--sage-rgb) / .28);
  background:
    radial-gradient(circle at 42% 38%, rgb(var(--tina-rgb) / .72), rgb(var(--sage-rgb) / .20) 70%),
    rgb(var(--tina-rgb) / .48);
  box-shadow:
    0 0 0 1px rgb(var(--albero-rgb) / .16),
    0 24px 64px rgb(var(--sage-rgb) / .18);
}
.hero.hero-sofia .seal-card img {
  width: 88%;
  border-radius: 50%;
  box-shadow: 0 12px 34px rgb(var(--ferrogalica-rgb) / .10);
}
.hero-home {
  position: relative;
  min-height: 720px;
  display: grid;
  align-items: stretch;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgb(var(--coal-rgb) / .82) 0%, rgb(var(--ferrogalica-rgb) / .66) 42%, rgb(var(--copper-deep-rgb) / .30) 100%),
    radial-gradient(circle at 70% 50%, rgb(var(--albero-rgb) / .16), rgb(var(--albero-rgb) / 0) 42%),
    url("fondo-isotipo-cobre-artesofia.jpg") center / cover no-repeat;
  color: var(--tina);
}
.hero-home::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgb(var(--coal-rgb) / .16), rgb(var(--coal-rgb) / .48)),
    radial-gradient(circle at 72% 48%, rgb(var(--coal-rgb) / 0) 0 22%, rgb(var(--coal-rgb) / .20) 55%, rgb(var(--coal-rgb) / .55) 100%);
}
.hero-home .hero-grid {
  position: relative;
  z-index: 1;
  min-height: 720px;
}
.hero-home .hero-grid > div:first-child {
  max-width: 880px;
  padding: 1.4rem 0;
}
.hero-home h1,
.hero-home h2 {
  color: var(--tina);
  text-shadow: 0 3px 28px rgb(var(--coal-rgb) / .35);
}
.hero-home h1 {
  max-width: 980px;
  font-size: 6.6rem;
  line-height: .88;
}
.hero-home .lead {
  max-width: 900px;
  border-left: 4px solid rgb(var(--albero-rgb) / .84);
  padding: 1rem 1.25rem;
  background: linear-gradient(90deg, rgb(var(--coal-rgb) / .38), rgb(var(--coal-rgb) / .08));
  color: rgb(var(--tina-rgb) / .95);
  font-family: var(--serif);
  font-size: 1.34rem;
  line-height: 1.5;
}
.hero-home .eyebrow {
  color: var(--albero);
}
.hero-home .eyebrow::before {
  background: linear-gradient(90deg, var(--albero), rgb(var(--albero-rgb) / .25));
}
.hero-home .button {
  border-color: rgb(var(--tina-rgb) / .76);
  color: var(--tina);
  background: rgb(var(--coal-rgb) / .20);
}
.hero-home .button.primary {
  background: var(--tina);
  border-color: var(--tina);
  color: var(--ferrogalica);
}
.hero-home .button:hover,
.hero-home .button:focus-visible {
  background: var(--albero);
  border-color: var(--albero);
  color: var(--ferrogalica);
}
.hero-home .seal-card {
  opacity: 0;
  pointer-events: none;
}
.hero-grid {
  min-height: 560px;
  display: grid;
  grid-template-columns: 1.12fr .88fr;
  gap: 4rem;
  align-items: center;
  padding: 4.5rem 0;
}
.hero-grid > * {
  min-width: 0;
}
.hero:not(.hero-home) .hero-grid {
  position: relative;
  z-index: 1;
  min-height: 470px;
  padding: 4.2rem 0;
}
.kinetic-symbols {
  position: fixed;
  inset: 0;
  z-index: 2;
  overflow: hidden;
  pointer-events: none;
}
main > :not(.kinetic-symbols) {
  position: relative;
  z-index: 1;
}
main .shell {
  position: relative;
  z-index: 3;
}
.motif {
  position: absolute;
  display: block;
  width: clamp(3rem, 12.5vmin, 6.6rem);
  --motif-opacity: .10;
  opacity: 0;
  filter: grayscale(1) contrast(1.04) sepia(.22);
  mix-blend-mode: multiply;
  transform-origin: center;
  will-change: opacity, transform;
}
.motif img {
  width: 100%;
  height: auto;
}
.motif-granada {
  left: 68%;
  top: 17%;
  width: clamp(4rem, 16.6vmin, 9rem);
  --motif-opacity: .135;
  filter: grayscale(1) contrast(1.1) sepia(.22);
  animation:
    motif-arrive-a 4.8s cubic-bezier(.16, .84, .28, 1) .1s both,
    motif-drift-a 24s ease-in-out 4.9s infinite alternate;
}
.motif-aurea {
  right: 8%;
  top: 42%;
  width: clamp(3.2rem, 12.5vmin, 7.4rem);
  --motif-opacity: .105;
  animation:
    motif-arrive-b 5.2s cubic-bezier(.16, .84, .28, 1) .25s both,
    motif-drift-b 28s ease-in-out 5.45s infinite alternate;
}
.motif-square {
  left: 52%;
  bottom: 17%;
  width: clamp(3rem, 12.5vmin, 6.3rem);
  --motif-opacity: .082;
  animation:
    motif-arrive-c 4.9s cubic-bezier(.16, .84, .28, 1) .45s both,
    motif-drift-c 25s ease-in-out 5.35s infinite alternate;
}
.motif-circle {
  right: 18%;
  bottom: 31%;
  width: clamp(3rem, 12.5vmin, 6.8rem);
  --motif-opacity: .092;
  animation:
    motif-arrive-d 5.4s cubic-bezier(.16, .84, .28, 1) .6s both,
    motif-drift-d 30s ease-in-out 6s infinite alternate;
}
.atmosphere-sofia .motif {
  --motif-opacity: .102;
}
.atmosphere-sofia .motif-granada {
  left: 66%;
  top: 18%;
  --motif-opacity: .142;
}
.atmosphere-sofia .motif-aurea {
  right: 11%;
  top: 41%;
}
.atmosphere-sofia .motif-square {
  left: 48%;
  bottom: 18%;
}
.atmosphere-sofia .motif-circle {
  right: 29%;
  bottom: 29%;
}
@keyframes motif-arrive-a {
  0% { opacity: 0; transform: translate3d(9vw, -7vh, 0) rotate(-8deg) scale(.90); }
  100% { opacity: var(--motif-opacity); transform: translate3d(-1rem, .6rem, 0) rotate(-2deg) scale(1); }
}
@keyframes motif-arrive-b {
  0% { opacity: 0; transform: translate3d(12vw, 8vh, 0) rotate(8deg) scale(.92); }
  100% { opacity: var(--motif-opacity); transform: translate3d(1rem, -.8rem, 0) rotate(3deg) scale(1); }
}
@keyframes motif-arrive-c {
  0% { opacity: 0; transform: translate3d(-7vw, 12vh, 0) rotate(10deg) scale(.90); }
  100% { opacity: var(--motif-opacity); transform: translate3d(-1rem, 1rem, 0) rotate(4deg) scale(1); }
}
@keyframes motif-arrive-d {
  0% { opacity: 0; transform: translate3d(8vw, 12vh, 0) rotate(-7deg) scale(.92); }
  100% { opacity: var(--motif-opacity); transform: translate3d(.8rem, .8rem, 0) scale(.98); }
}
@keyframes motif-drift-a {
  from { opacity: var(--motif-opacity); transform: translate3d(-1rem, .6rem, 0) rotate(-2deg) scale(1); }
  to { opacity: var(--motif-opacity); transform: translate3d(1.65rem, -1.25rem, 0) rotate(2.8deg) scale(1.035); }
}
@keyframes motif-drift-b {
  from { opacity: var(--motif-opacity); transform: translate3d(1rem, -.8rem, 0) rotate(3deg) scale(1); }
  to { opacity: var(--motif-opacity); transform: translate3d(-1.9rem, 1.45rem, 0) rotate(-3.6deg) scale(1.035); }
}
@keyframes motif-drift-c {
  from { opacity: var(--motif-opacity); transform: translate3d(-1rem, 1rem, 0) rotate(4deg); }
  to { opacity: var(--motif-opacity); transform: translate3d(1.35rem, -1.15rem, 0) rotate(-4deg); }
}
@keyframes motif-drift-d {
  from { opacity: var(--motif-opacity); transform: translate3d(.8rem, .8rem, 0) scale(.98); }
  to { opacity: var(--motif-opacity); transform: translate3d(-1.45rem, -1.35rem, 0) scale(1.035); }
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  color: var(--wine);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 2.2rem;
  height: 1px;
  background: linear-gradient(90deg, var(--copper), var(--albero));
}
h1, h2, h3 {
  color: var(--ink);
  font-family: var(--serif);
  line-height: 1;
  text-wrap: balance;
}
h1 {
  margin: .7rem 0 1.2rem;
  font-size: 4.6rem;
  letter-spacing: 0;
}
.hero:not(.hero-home) h1 {
  max-width: 980px;
  color: var(--copper-deep);
  text-shadow:
    0 1px 0 rgb(var(--tina-rgb) / .62),
    0 16px 42px rgb(var(--copper-deep-rgb) / .075);
  font-size: 5.8rem;
  letter-spacing: 0;
}
.hero:not(.hero-home) h1::after {
  content: "";
  display: block;
  width: min(9rem, 38vw);
  height: 3px;
  margin-top: 1.05rem;
  background: linear-gradient(90deg, var(--copper), var(--albero), rgb(var(--albero-rgb) / 0));
}
h2 {
  margin: 0 0 1rem;
  color: var(--ferrogalica);
  font-size: 3.2rem;
  letter-spacing: 0;
}
h3 {
  color: var(--copper-deep);
  margin: 0 0 .7rem;
  font-size: 1.65rem;
}
.lead { max-width: 760px; color: var(--stone); font-size: 1.08rem; }
.hero:not(.hero-home) .lead {
  max-width: 830px;
  border-left: 4px solid var(--line-copper);
  padding-left: 1.15rem;
  color: rgb(var(--ink-rgb) / .78);
  font-family: var(--serif);
  font-size: 1.24rem;
  line-height: 1.55;
}
.hero:not(.hero-home).hero-sofia h1 {
  color: var(--wine);
  text-shadow:
    0 1px 0 rgb(var(--tina-rgb) / .62),
    0 16px 42px rgb(var(--sage-rgb) / .08);
}
.hero:not(.hero-home).hero-sofia h1::after {
  background: linear-gradient(90deg, var(--sage), var(--albero), rgb(var(--albero-rgb) / 0));
}
.hero:not(.hero-home).hero-sofia .lead {
  border-left-color: rgb(var(--sage-rgb) / .36);
  color: rgb(var(--ferrogalica-rgb) / .80);
}
.actions { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 2rem; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: .7rem 1.2rem;
  border: 1px solid rgb(var(--ferrogalica-rgb) / .70);
  text-decoration: none;
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  box-shadow:
    0 8px 22px rgb(var(--ink-rgb) / .06),
    inset 0 1px 0 rgb(var(--tina-rgb) / .38);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease, color .18s ease;
}
.button.primary { background: var(--ferrogalica); color: var(--tina); }
.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  background: var(--copper);
  border-color: var(--copper);
  color: var(--tina);
  box-shadow: var(--shadow-copper);
}
.seal-card {
  justify-self: center;
  width: min(355px, 78vw);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px solid rgb(var(--copper-rgb) / .34);
  border-radius: 50%;
  background:
    radial-gradient(circle at 42% 38%, rgb(var(--tina-rgb) / .64), rgb(var(--alfacar-rgb) / .24) 70%),
    rgb(var(--tina-rgb) / .35);
  box-shadow: var(--shadow-soft);
}
.seal-card img { width: 88%; }

section { padding: 5.5rem 0; }
.section-head {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 4rem;
  margin-bottom: 3rem;
  position: relative;
  padding-top: 1.2rem;
}
.section-head::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: min(18rem, 42vw);
  height: 3px;
  background: linear-gradient(90deg, var(--copper), var(--albero), rgb(var(--sage-rgb) / .45), rgb(var(--sage-rgb) / 0));
}
.section-head p { margin: 0; color: var(--stone); }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.card {
  background:
    linear-gradient(150deg, rgb(var(--tina-rgb) / .66), rgb(var(--tina-rgb) / 0) 48%),
    radial-gradient(circle at 94% 12%, rgb(var(--albero-rgb) / .14), rgb(var(--albero-rgb) / 0) 6rem),
    var(--paper);
  border: 1px solid rgb(var(--copper-rgb) / .20);
  padding: 2rem;
  box-shadow:
    0 16px 40px rgb(var(--copper-deep-rgb) / .055),
    inset 0 1px 0 rgb(var(--tina-rgb) / .38);
}
.grid-3 .card { border: 0; min-height: 260px; }
.sofia-section {
  background:
    linear-gradient(180deg, rgb(var(--tina-rgb) / .78), rgb(var(--paper-rgb) / .98)),
    radial-gradient(circle at 82% 20%, rgb(var(--sage-rgb) / .11), rgb(var(--sage-rgb) / 0) 20rem);
}
.sofia-section .section-head::before {
  background: linear-gradient(90deg, var(--sage), var(--albero), rgb(var(--albero-rgb) / 0));
}
.sofia-section .eyebrow { color: var(--sage); }
.sofia-section .card {
  position: relative;
  overflow: hidden;
  border: 0;
  background:
    linear-gradient(150deg, rgb(var(--tina-rgb) / .62), rgb(var(--tina-rgb) / 0) 48%),
    radial-gradient(circle at 88% 18%, rgb(var(--sage-rgb) / .12), rgb(var(--sage-rgb) / 0) 6rem),
    linear-gradient(145deg, var(--tina) 0%, var(--tina) 66%, rgb(var(--albero-rgb) / .14) 100%);
}
.sofia-section .card:nth-child(2) {
  background:
    linear-gradient(150deg, rgb(var(--tina-rgb) / .60), rgb(var(--tina-rgb) / 0) 48%),
    radial-gradient(circle at 88% 18%, rgb(var(--wine-rgb) / .09), rgb(var(--wine-rgb) / 0) 6rem),
    linear-gradient(145deg, var(--paper) 0%, var(--paper) 66%, rgb(var(--wine-rgb) / .09) 100%);
}
.sofia-section .card:nth-child(3) {
  background:
    linear-gradient(150deg, rgb(var(--tina-rgb) / .60), rgb(var(--tina-rgb) / 0) 48%),
    radial-gradient(circle at 88% 18%, rgb(var(--ferrogalica-rgb) / .08), rgb(var(--ferrogalica-rgb) / 0) 6rem),
    linear-gradient(145deg, var(--tina) 0%, var(--tina) 66%, rgb(var(--sage-rgb) / .13) 100%);
}
.sofia-section .card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: linear-gradient(180deg, var(--sage), var(--albero));
}
.sofia-section .card:nth-child(2)::before {
  background: linear-gradient(180deg, var(--wine), var(--copper));
}
.sofia-section .card:nth-child(3)::before {
  background: linear-gradient(180deg, var(--ferrogalica), var(--sage));
}
.sofia-section .card-kicker { color: var(--sage); }
.sofia-section .card:nth-child(2) .card-kicker { color: var(--wine); }
.sofia-section .card:nth-child(3) .card-kicker { color: var(--ferrogalica); }
.gateway-card {
  min-height: 420px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  overflow: hidden;
  border-top: 4px solid var(--copper);
}
.gateway-card::before {
  position: absolute;
  right: 1.7rem;
  top: .6rem;
  font-family: var(--serif);
  font-size: 7.5rem;
  line-height: 1;
  opacity: .08;
}
.arte-card { background: linear-gradient(145deg, var(--paper) 0%, var(--paper) 64%, var(--alfacar) 64%); }
.sofia-card { background: linear-gradient(145deg, var(--tina) 0%, var(--tina) 64%, rgb(var(--sage-rgb) / .18) 64%); }
.arte-card::before { content: "ARTE"; color: var(--wine); }
.sofia-card::before { content: "SOFÍA"; color: var(--sage); }
.card-kicker {
  color: var(--wine);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .2em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: .55rem;
}
.card-kicker::after {
  content: "";
  width: 2rem;
  height: 1px;
  background: currentColor;
  opacity: .42;
}
.sofia-card .card-kicker { color: var(--sage); }
.quiet-list { padding-left: 1.1rem; color: var(--stone); }
.text-link {
  display: inline-flex;
  margin-top: 1.2rem;
  color: var(--ink);
  font-size: .82rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
}
.text-link::after { content: " →"; color: var(--copper); }
.text-link:hover,
.text-link:focus-visible { color: var(--wine); }

.breadcrumb {
  margin-bottom: 1.2rem;
  color: rgb(var(--ink-rgb) / .62);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover,
.breadcrumb a:focus-visible { color: var(--wine); }
.content-section { background: var(--paper); }
.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 3rem;
  align-items: start;
}
.content-body {
  max-width: 860px;
  position: relative;
}
.content-body h2 {
  margin-top: 2.8rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--line-copper);
  color: var(--copper-deep);
  font-size: 2.45rem;
}
.content-body h2::before {
  content: "";
  display: block;
  width: 3.2rem;
  height: 6px;
  margin: -.2rem 0 .9rem;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--copper), var(--albero));
}
.content-body h3 {
  margin-top: 2.2rem;
  padding-left: .9rem;
  border-left: 3px solid var(--albero);
  color: var(--wine);
  font-family: var(--sans);
  font-size: 1.02rem;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.content-body p { color: var(--coal); }
.content-body li { margin-bottom: .35rem; }
.content-body a {
  color: var(--wine);
  text-underline-offset: .18em;
}
.content-body blockquote {
  margin: 2rem 0;
  padding: 1.2rem 1.4rem;
  border-left: 4px solid var(--copper);
  background: rgb(var(--alfacar-rgb) / .42);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.2rem;
  line-height: 1.45;
}
.content-note {
  margin: 2rem 0;
  padding: 1.15rem 1.35rem;
  border: 1px solid var(--line-copper);
  border-left: 5px solid var(--copper);
  background:
    linear-gradient(135deg, rgb(var(--tina-rgb) / .96), rgb(var(--alfacar-rgb) / .58));
  color: var(--stone);
  font-size: .95rem;
  box-shadow: 0 12px 30px rgb(var(--copper-deep-rgb) / .055);
}
.thesis-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.1rem;
  margin: 2rem 0 2.4rem;
}
.thesis-gallery figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line-copper);
  background:
    linear-gradient(150deg, rgb(var(--tina-rgb) / .88), rgb(var(--tina-rgb) / 0) 46%),
    radial-gradient(circle at 92% 10%, rgb(var(--albero-rgb) / .16), rgb(var(--albero-rgb) / 0) 7rem),
    var(--paper);
  box-shadow: 0 14px 34px rgb(var(--copper-deep-rgb) / .07);
}
.thesis-gallery a {
  display: block;
  padding: .8rem .8rem 0;
}
.thesis-gallery img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: contain;
  background: var(--tina);
  border: 1px solid rgb(var(--copper-rgb) / .16);
}
.thesis-gallery figcaption {
  min-height: 3.2rem;
  padding: .75rem .9rem .9rem;
  color: var(--wine);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .08em;
  line-height: 1.35;
  text-transform: uppercase;
}
.volume-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin: 2rem 0 2.5rem;
}
.volume-card {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  align-items: center;
  gap: .55rem;
  min-height: 158px;
  padding: 1.2rem;
  border: 1px solid var(--line-copper);
  background:
    linear-gradient(145deg, rgb(var(--tina-rgb) / .80), rgb(var(--alfacar-rgb) / .36)),
    radial-gradient(circle at 94% 12%, rgb(var(--sage-rgb) / .10), rgb(var(--sage-rgb) / 0) 6rem);
  text-decoration: none;
  box-shadow: 0 14px 34px rgb(var(--copper-deep-rgb) / .06);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.volume-card:hover,
.volume-card:focus-visible {
  transform: translateY(-3px);
  border-color: rgb(var(--copper-rgb) / .48);
  box-shadow: var(--shadow-copper);
}
.volume-card img {
  grid-row: 1 / span 2;
  width: 86px;
  aspect-ratio: 45 / 65;
  object-fit: cover;
  border: 1px solid rgb(var(--copper-rgb) / .22);
  background: var(--paper);
  box-shadow: 0 10px 22px rgb(var(--copper-deep-rgb) / .08);
}
.volume-card span {
  color: var(--wine);
  font-size: .76rem;
  font-weight: 900;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.volume-card strong {
  color: var(--ferrogalica);
  font-family: var(--serif);
  font-size: 1.35rem;
  line-height: 1.1;
}
.volume-cover {
  display: grid;
  grid-template-columns: minmax(150px, 230px) minmax(0, 1fr);
  gap: 1.25rem;
  align-items: center;
  margin: 2rem 0 2.4rem;
  padding: 1.05rem;
  border: 1px solid var(--line-copper);
  background:
    linear-gradient(145deg, rgb(var(--tina-rgb) / .86), rgb(var(--alfacar-rgb) / .38)),
    radial-gradient(circle at 92% 16%, rgb(var(--albero-rgb) / .12), rgb(var(--albero-rgb) / 0) 7rem),
    var(--paper);
  box-shadow: 0 16px 36px rgb(var(--copper-deep-rgb) / .07);
}
.volume-cover a {
  display: block;
}
.volume-cover img {
  width: 100%;
  max-height: 360px;
  object-fit: contain;
  border: 1px solid rgb(var(--copper-rgb) / .22);
  background: var(--paper);
  box-shadow: 0 10px 24px rgb(var(--copper-deep-rgb) / .08);
}
.volume-cover figcaption {
  margin: 0;
  color: var(--stone);
  line-height: 1.5;
}
.volume-cover figcaption strong {
  display: block;
  color: var(--wine);
  font-family: var(--serif);
  font-size: 1.45rem;
  line-height: 1.15;
}
.volume-cover figcaption span {
  display: block;
  margin-top: .45rem;
}
.thesis-index-list {
  display: grid;
  gap: .55rem;
  margin: 1.6rem 0 2.2rem;
  padding: 0;
  list-style: none;
}
.thesis-index-list [role="listitem"] {
  margin: 0;
  padding: .55rem .7rem .55rem 1rem;
  border-left: 3px solid rgb(var(--albero-rgb) / .58);
  background: rgb(var(--tina-rgb) / .44);
  color: var(--coal);
  line-height: 1.42;
}
.thesis-index-list [role="listitem"].major {
  margin-top: .8rem;
  border-left-color: var(--wine);
  background:
    linear-gradient(90deg, rgb(var(--wine-rgb) / .10), rgb(var(--tina-rgb) / .50)),
    var(--paper);
  color: var(--wine);
  font-size: .86rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.meta-list code {
  display: inline-block;
  margin: .1rem .35rem .1rem 0;
  padding: .16rem .35rem;
  border: 1px solid rgb(var(--copper-rgb) / .24);
  background: rgb(var(--tina-rgb) / .62);
  color: var(--ferrogalica);
  font-size: .82rem;
}
.volume-nav {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  margin: 2.2rem 0 0;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line-copper);
}
.volume-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: .45rem .7rem;
  border: 1px solid var(--line-copper);
  background: var(--paper);
  color: var(--ferrogalica);
  font-size: .74rem;
  font-weight: 900;
  letter-spacing: .06em;
  text-decoration: none;
  text-transform: uppercase;
}
.volume-nav a[aria-current="page"],
.volume-nav a:hover,
.volume-nav a:focus-visible {
  border-color: var(--wine);
  background: rgb(var(--wine-rgb) / .08);
  color: var(--wine);
}
.meta-list {
  display: grid;
  gap: .7rem;
  margin: 1.2rem 0 0;
  padding: 0;
  list-style: none;
}
.meta-list li {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 1rem;
  border-top: 1px solid var(--line-copper);
  padding: .72rem 0 0;
}
.meta-list strong {
  color: var(--ink);
}
.toc-card {
  position: sticky;
  top: 110px;
  border: 1px solid var(--line-copper);
  background:
    linear-gradient(160deg, rgb(var(--tina-rgb) / .98), rgb(var(--alfacar-rgb) / .70));
  padding: 1.25rem;
  box-shadow: var(--shadow-soft);
}
.toc-card h2 {
  margin: 0 0 1rem;
  font-family: var(--sans);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.toc-card h2::after {
  content: "";
  display: block;
  width: 3rem;
  height: 2px;
  margin-top: .65rem;
  background: linear-gradient(90deg, var(--copper), var(--albero));
}
.toc-card ul {
  display: grid;
  gap: .45rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.toc-card a {
  color: var(--ink);
  text-decoration: none;
  font-size: .9rem;
  display: block;
  padding: .25rem 0;
}
.toc-card a:hover,
.toc-card a:focus-visible { color: var(--wine); }
.publication-list {
  display: grid;
  gap: 1rem;
  margin-top: 1.2rem;
}
.publication-item {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line-copper);
  border-left: 5px solid var(--copper);
  background:
    linear-gradient(135deg, var(--paper) 0%, var(--paper) 66%, rgb(var(--albero-rgb) / .18) 100%);
  padding: 1.35rem 1.45rem;
  box-shadow: 0 14px 36px rgb(var(--copper-deep-rgb) / .07);
}
.publication-item::after {
  content: "¶";
  position: absolute;
  right: 1rem;
  top: .65rem;
  color: rgb(var(--copper-rgb) / .12);
  font-family: var(--serif);
  font-size: 3.2rem;
  line-height: 1;
}
.publication-item h3 {
  margin: 0 0 .5rem;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}
.publication-item p { margin: .45rem 0; }
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  margin-top: 1rem;
}
.tag {
  display: inline-flex;
  border: 1px solid rgb(var(--copper-rgb) / .32);
  padding: .2rem .55rem;
  color: var(--wine);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.subnav-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  border: 0;
  background: rgb(var(--paper-rgb) / 0);
}
.subnav-card {
  --card-accent: var(--copper);
  --card-soft: rgb(var(--copper-rgb) / .075);
  display: block;
  min-height: 210px;
  position: relative;
  overflow: hidden;
  padding: 1.55rem;
  border: 1px solid var(--line-copper);
  background:
    linear-gradient(150deg, rgb(var(--tina-rgb) / .72), rgb(var(--tina-rgb) / 0) 46%),
    radial-gradient(circle at 92% 12%, rgb(var(--albero-rgb) / .16), rgb(var(--albero-rgb) / 0) 6rem),
    linear-gradient(135deg, var(--card-soft), rgb(var(--tina-rgb) / 0) 54%, rgb(var(--ferrogalica-rgb) / .035)),
    var(--paper);
  text-decoration: none;
  box-shadow: 0 14px 34px rgb(var(--copper-deep-rgb) / .06);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
}
.subnav-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: linear-gradient(180deg, var(--card-accent), var(--albero));
}
.subnav-card::after {
  content: "";
  position: absolute;
  right: -2.5rem;
  bottom: -2.5rem;
  width: 8rem;
  height: 8rem;
  border: 1px solid rgb(var(--copper-rgb) / .18);
  border-radius: 50%;
}
.subnav-card:hover,
.subnav-card:focus-visible {
  transform: translateY(-3px);
  background: var(--paper);
  border-color: rgb(var(--copper-rgb) / .40);
  box-shadow: var(--shadow-copper);
}
.subnav-card .card-kicker { display: block; margin-bottom: .8rem; }
.subnav-card .card-kicker::after { display: none; }
.subnav-card h3 {
  color: var(--copper-deep);
  text-shadow: 0 1px 0 rgb(var(--tina-rgb) / .58);
  font-size: 2.05rem;
}
.subnav-card p { margin: 0; color: var(--stone); }
.subnav-card:nth-child(2) { --card-accent: var(--albero); --card-soft: rgb(var(--albero-rgb) / .105); }
.subnav-card:nth-child(3) { --card-accent: var(--wine); --card-soft: rgb(var(--wine-rgb) / .065); }
.subnav-card:nth-child(4) { --card-accent: var(--sage); --card-soft: rgb(var(--sage-rgb) / .075); }
.subnav-card:nth-child(5) { --card-accent: var(--malaha); --card-soft: rgb(var(--malaha-rgb) / .075); }
.subnav-card:nth-child(6) { --card-accent: var(--ferrogalica); --card-soft: rgb(var(--ferrogalica-rgb) / .055); }
.subnav-card:nth-child(2) h3 { color: var(--copper-deep); }
.subnav-card:nth-child(3) h3 { color: var(--wine); }
.subnav-card:nth-child(4) h3 { color: var(--sage); }
.subnav-card:nth-child(5) h3 { color: var(--malaha); }
.subnav-card:nth-child(6) h3 { color: var(--ferrogalica); }

.dark {
  background: var(--ink);
  color: var(--ivory);
}
.dark h2,
.dark h3 { color: var(--ivory); }
.dark p,
.dark li { color: var(--alfacar); }
.dark .card { background: var(--ink); border-color: rgb(var(--ivory-rgb) / .24); }
.dark .card-kicker { color: var(--albero); }

.security-band { background: var(--ivory); }
.security-list { display: grid; gap: .8rem; margin: 0; padding: 0; list-style: none; }
.security-list li {
  border-top: 1px solid rgb(var(--ink-rgb) / .16);
  padding-top: .8rem;
}
.brand-banner { padding: 0; overflow: hidden; background: var(--ivory); border-top: 1px solid var(--line); }
.brand-banner-inner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.4rem;
  align-items: center;
  padding: 2.4rem 0;
}
.brand-banner-mark {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%;
}
.brand-banner-title {
  color: var(--ferrogalica);
  font-family: var(--serif);
  font-size: 3.5rem;
  line-height: .95;
  letter-spacing: 0;
}
.brand-banner-text {
  margin-top: .8rem;
  color: var(--wine);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.footer {
  background: var(--coal);
  color: var(--alfacar);
  padding: 2rem 0;
}
.footer-grid { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; font-size: .82rem; }

@media (max-width: 900px) {
  .hero-grid,
  .section-head,
  .content-layout,
  .grid-2,
  .grid-3 { grid-template-columns: 1fr; }
  .hero.hero-sofia .hero-grid { grid-template-columns: 1fr; }
  .hero-grid { min-height: auto; gap: 2rem; }
  h1 { font-size: 3.8rem; }
  h2 { font-size: 2.65rem; }
  .hero-home h1 { font-size: 5.15rem; }
  .hero:not(.hero-home) h1 { font-size: 4.45rem; }
  .hero:not(.hero-home)::after { font-size: 10rem; }
  .content-body h2 { font-size: 2.25rem; }
  .subnav-card h3 { font-size: 1.9rem; }
  .brand-banner-title { font-size: 3rem; }
  .motif { --motif-opacity: .078; }
  .motif-granada { --motif-opacity: .112; }
  .motif-aurea { right: -2rem; }
  .motif-square { left: 58%; }
  .hero-home,
  .hero-home .hero-grid { min-height: 640px; }
  .gateway-card,
  .grid-3 .card { min-height: 0; }
  .toc-card { position: static; }
  .subnav-grid { grid-template-columns: 1fr; }
  .volume-grid { grid-template-columns: 1fr; }
  .volume-cover { grid-template-columns: 1fr; }
  .thesis-gallery { grid-template-columns: 1fr; }
  .nav { align-items: flex-start; padding: 1rem 0; }
  .brand { min-width: auto; }
  .brand-mark { width: 64px; height: 64px; }
  .brand-divider { height: 62px; }
  .brand-title { font-size: 2rem; }
  .brand-subtitle { font-size: .64rem; }
  nav ul { flex-wrap: wrap; justify-content: flex-end; gap: .7rem 1rem; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .shell { width: min(100% - 28px, 1160px); }
  .nav { flex-direction: column; align-items: center; gap: .6rem; }
  .brand {
    width: min(100%, 420px);
    justify-content: center;
  }
  .brand-mark { width: 58px; height: 58px; }
  .brand-divider { height: 54px; }
  .brand-title { font-size: 1.82rem; }
  .brand-subtitle { font-size: .56rem; letter-spacing: .02em; }
  .brand-name { font-size: .78rem; }
  .brand-banner-inner { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  nav ul { justify-content: center; }
  nav a { font-size: .68rem; }
  section,
  .hero-grid { padding: 4rem 0; }
  h1 { font-size: 3.1rem; }
  h2 { font-size: 2.15rem; }
  h3 { font-size: 1.42rem; }
  .hero-home h1 { font-size: 3.55rem; }
  .hero-home .lead { font-size: 1.08rem; }
  .hero:not(.hero-home) h1 { font-size: 3.08rem; }
  .hero:not(.hero-home)::after { font-size: 7.2rem; }
  .hero:not(.hero-home) .lead { font-size: 1.08rem; }
  .content-body h2 { font-size: 1.95rem; }
  .subnav-card h3 { font-size: 1.62rem; }
  .brand-banner-title { font-size: 2.45rem; }
  .hero-home,
  .hero-home .hero-grid { min-height: 620px; }
  .kinetic-symbols { opacity: .82; }
  .motif-granada { left: 66%; top: 18%; }
  .motif-aurea { right: -2rem; top: 42%; }
  .motif-square { left: 52%; bottom: 18%; }
  .motif-circle { right: 5%; bottom: 28%; }
  .seal-card { display: none; }
  .card { padding: 1.45rem; }
}

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