/* V4: editorial portfolio, midnight ink and warm chartreuse. */
:root {
  color-scheme:dark;
  --paper:#101212;
  --ink:#f1f0e9;
  --muted:#a7adaa;
  --line:#ffffff20;
  --accent:#d5ec94;
  --card-shape:polygon(50% 0,88% 5%,98% 16%,96% 78%,85% 90%,50% 100%,15% 90%,4% 78%,2% 16%,12% 5%)
}
* {
  box-sizing:border-box
}
html {
  scroll-behavior:smooth;
  scroll-padding-top:28px
}
body {
  margin:0;
  background:var(--paper);
  color:var(--ink);
  font-family:"Segoe UI",Arial,sans-serif;
  -webkit-font-smoothing:antialiased
}
a {
  color:inherit;
  text-decoration:none
}
button,select {
  font:inherit
}
button,a,select {
  touch-action:manipulation
}
button {
  cursor:pointer
}
[hidden] {
  display:none!important
}
a:focus-visible,button:focus-visible,select:focus-visible {
  outline:3px solid var(--accent);
  outline-offset:6px
}
.shell {
  width:min(1200px,calc(100% - 96px));
  margin-inline:auto
}
.skip-link {
  position:fixed;
  top:12px;
  left:12px;
  z-index:10;
  padding:16px;
  background:var(--accent);
  color:#101212;
  transform:translateY(-150%)
}
.skip-link:focus {
  transform:none
}
.ambient {
  position:absolute;
  inset:0 0 auto;
  height:900px;
  overflow:hidden;
  pointer-events:none;
  z-index:-1
}
.ambient span:first-child {
  position:absolute;
  top:80px;
  right:-150px;
  width:800px;
  height:700px;
  background:radial-gradient(ellipse,#8b9b7020,transparent 65%)
}
.site-header {
  height:100px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  border-bottom:1px solid var(--line);
  gap:24px
}
.brand {
  font-size:32px;
  font-weight:800;
  letter-spacing:-2px
}
.brand span {
  color:var(--accent);
  font-size:12px;
  vertical-align:top;
  letter-spacing:0;
  margin-left:5px
}
.header-caption,.collection-label,.eyebrow {
  font:11px/1.5 "Courier New",monospace;
  letter-spacing:1.7px
}
.header-caption {
  color:var(--muted)
}
.nav-link {
  font-size:13px
}
.nav-link span {
  margin-left:18px;
  color:var(--accent)
}
.nav-link:hover {
  color:var(--accent)
}
.hero {
  display:grid;
  grid-template-columns:1.15fr 1fr;
  align-items:center;
  gap:64px;
  padding:65px 0 70px
}
.hero-copy {
  min-width:0
}
.eyebrow {
  margin:0 0 25px;
  color:var(--muted);
  display:flex;
  gap:10px;
  align-items:center
}
.eyebrow>span {
  width:6px;
  height:6px;
  background:var(--accent);
  border-radius:50%
}
h1 {
  font-size:clamp(62px,7.2vw,100px);
  line-height:.97;
  letter-spacing:-6px;
  font-weight:550;
  margin:0
}
h1>span {
  color:var(--accent)
}
.intro {
  font-size:14px;
  line-height:1.8;
  margin:28px 0 0
}
.intro i {
  color:#7c847a;
  font-style:normal;
  margin:0 5px
}
.hero-description {
  font-size:16px;
  line-height:1.8;
  max-width:390px;
  color:var(--muted);
  margin:15px 0 25px
}
.primary-link {
  display:inline-flex;
  gap:28px;
  align-items:center;
  border-bottom:1px solid #d5ec9460;
  padding:0 0 10px;
  font-size:14px
}
.primary-link span {
  color:var(--accent);
  font-size:23px
}
.primary-link:hover {
  color:var(--accent)
}
.hero-note {
  display:flex;
  align-items:center;
  gap:15px;
  margin-top:36px
}
.hero-note>span {
  font-size:35px;
  color:var(--accent)
}
.hero-note p {
  font-size:12px;
  line-height:1.8;
  color:var(--muted);
  margin:0
}
.hero-note strong {
  font-weight:400;
  color:var(--ink)
}
.collection {
  position:relative;
  min-width:0;
  padding:21px 26px 24px;
  border:1px solid #ffffff17;
  border-radius:24px;
  background:radial-gradient(ellipse at 50% 45%,#68715222,transparent 65%),#ffffff02
}
.collection-label {
  display:flex;
  justify-content:space-between;
  gap:12px;
  color:#a8b29e;
  font-size:9px;
  letter-spacing:1px;
  margin-bottom:20px
}
.collection-toolbar {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px
}
.collection-toolbar label {
  font-size:12px;
  color:var(--muted)
}
.collection-toolbar select {
  min-width:0;
  max-width:220px;
  border:1px solid #ffffff27;
  border-radius:8px;
  background:#242925;
  color:var(--ink);
  padding:12px 8px;
  font-size:12px;
  cursor:pointer
}
.card-stage {
  height:480px;
  display:grid;
  place-items:center;
  perspective:1100px
}
.card-float {
  transform-style:preserve-3d;
  animation:float 8s ease-in-out infinite
}
.player-card {
  transform-style:preserve-3d;
  transform:none;
  filter:drop-shadow(0 20px 18px #0006);
  transition:transform .18s ease-out
}
.player-card:hover {
  transform:none
}
.card-rotator {
  transform-style:preserve-3d
}
.card-face {
  text-align:center
}
.portrait {
  mix-blend-mode:normal;
  mask-image:linear-gradient(#000 50%,transparent 83%)
}
.player-info {
  top:254px;
  left:44px;
  right:44px
}
.player-stats {
  gap:6px 4px;
  padding:9px 0;
  margin:9px 0 8px
}
.player-stats b {
  font-size:19px
}
.card-bottom {
  gap:6px
}
.card-bottom>span {
  font-size:5.5px;
  letter-spacing:.6px
}
.player-card[data-format="fut"] .card-face {
  color:#f6ecff
}
.player-card[data-format="fut"] .back-inner {
  padding:38px 38px;
  background:radial-gradient(at top,#5a3579,#141d29 75%)
}
.back-detail {
  font-size:11px
}
.back-detail b {
  margin-bottom:3px
}
.back-footer {
  line-height:1.5
}
.card-hint {
  text-align:center;
  font-size:12px;
  color:var(--ink);
  margin:0
}
.card-hint>span {
  font-size:19px;
  margin-right:5px
}
.format-status {
  min-height:18px;
  margin:7px 0 0;
  text-align:center;
  color:var(--muted);
  font-size:10px
}
.motion-toggle {
  display:block;
  margin:12px auto 0;
  border:1px solid #ffffff40;
  border-radius:8px;
  background:#242925;
  color:var(--ink);
  font-size:12px;
  padding:12px
}
.motion-toggle[aria-pressed="true"] {
  color:var(--accent)
}
.motion-status {
  font-size:12px;
  text-align:center;
  color:var(--muted);
  line-height:1.5
}
@keyframes float {
  50% {
    transform:translateY(-7px)
  }
}
.is-changing-format {
  pointer-events:none
}
.projects {
  border-top:1px solid var(--line);
  padding:40px 0 60px
}
.section-heading {
  display:flex;
  justify-content:space-between;
  align-items:end;
  gap:20px
}
.section-heading .eyebrow {
  margin-bottom:13px
}
h2 {
  font-size:clamp(32px,4vw,46px);
  font-weight:500;
  letter-spacing:-2px;
  margin:0
}
h2>span {
  color:var(--accent)
}
.project-count {
  color:var(--muted);
  font-size:12px;
  white-space:nowrap
}
.project-count>span {
  display:inline-grid;
  place-items:center;
  border:1px solid var(--line);
  border-radius:50%;
  width:35px;
  height:35px;
  margin-right:7px;
  color:var(--accent)
}
.section-intro {
  color:var(--muted);
  font-size:14px;
  line-height:1.7;
  margin:16px 0 25px
}
.projects-toggle {
  display:flex;
  justify-content:space-between;
  align-items:center;
  width:100%;
  border:1px solid #d5ec9440;
  background:#d5ec9408;
  border-radius:10px;
  color:var(--accent);
  padding:18px 22px;
  font-size:14px;
  min-height:58px
}
.projects-toggle:hover {
  background:#d5ec9414
}
.projects-toggle>span:last-child {
  font-size:22px
}
.project-list {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:24px;
  margin-top:26px
}
.project-item {
  min-width:0;
  border:1px solid var(--line);
  border-radius:14px;
  overflow:hidden;
  background:#171b19
}
.project-image {
  position:relative;
  padding:28px;
  min-height:245px;
  display:grid;
  place-items:center;
  background:color-mix(in srgb,var(--preview-bg) 12%,#111b19);
  overflow:hidden
}
.project-image>img {
  width:100%;
  height:200px;
  object-fit:cover
}
.preview-label {
  position:absolute;
  left:18px;
  bottom:10px;
  font:9px "Courier New",monospace;
  letter-spacing:1px;
  color:#b3bcb4
}
.project-content {
  padding:28px;
  min-width:0
}
.project-meta {
  font:10px/1.6 "Courier New",monospace;
  color:#b7c4b1;
  letter-spacing:.8px
}
.project-content h3 {
  font-size:26px;
  letter-spacing:-.8px;
  font-weight:550;
  margin:14px 0 12px;
  overflow-wrap:anywhere
}
.project-content p {
  font-size:14px;
  line-height:1.8;
  color:var(--muted);
  margin:0 0 22px
}
.project-tags {
  display:flex;
  flex-wrap:wrap;
  gap:7px
}
.project-tags span {
  border:1px solid var(--line);
  padding:6px 9px;
  border-radius:5px;
  font-size:10px;
  color:#c7cec8
}
.mock-window {
  width:100%;
  max-width:420px;
  border:1px solid #ffffff20;
  background:#142323;
  color:#dfe9df;
  border-radius:8px;
  box-shadow:0 15px 25px #0004;
  overflow:hidden;
  transform:rotate(-2deg)
}
.window-bar {
  display:flex;
  align-items:center;
  gap:5px;
  height:23px;
  padding:0 10px;
  border-bottom:1px solid #ffffff17
}
.window-bar i {
  width:4px;
  height:4px;
  background:#819a91;
  border-radius:50%
}
.window-bar span {
  margin-left:auto;
  font:8px monospace;
  color:#a3b7ab
}
.preview-art {
  height:160px;
  position:relative;
  overflow:hidden;
  padding:20px
}
.preview-art strong {
  font-size:12px;
  letter-spacing:1px
}
.preview-art small {
  display:block;
  font:8px monospace;
  color:#b1c6b7;
  margin-top:6px
}
.bars {
  height:85px;
  display:flex;
  align-items:end;
  gap:10px;
  margin-top:12px
}
.bars i {
  flex:1;
  height:var(--bar);
  background:#b5d782;
  border-radius:3px 3px 0 0
}
.calendar-grid {
  display:grid;
  grid-template-columns:repeat(7,1fr);
  gap:4px;
  margin-top:12px
}
.calendar-grid span {
  font-size:8px;
  padding:4px;
  border-radius:2px;
  background:#ffffff0b;
  text-align:center
}
.calendar-grid span:nth-child(5n) {
  background:#b5d782;
  color:#142323
}
.receipt {
  position:absolute;
  right:30px;
  top:15px;
  background:#eee9d9;
  color:#344439;
  width:110px;
  transform:rotate(8deg);
  padding:15px;
  font:9px/2 monospace;
  box-shadow:0 10px 20px #0004
}
.preview-event {
  background:#462842;
  text-align:center
}
.preview-event strong {
  font:bold italic 42px Georgia;
  color:#efb7aa;
  display:block;
  margin-top:6px
}
.event-orbit {
  position:absolute;
  inset:14px 50px;
  border:1px solid #efb7aa88;
  border-radius:50%;
  transform:rotate(-20deg)
}
.preview-horse {
  background:linear-gradient(160deg,#c4d3af,#738d6d);
  color:#243d2b
}
.preview-horse strong {
  font:32px Georgia
}
.preview-horse small {
  color:#243d2b
}
.hills {
  position:absolute;
  width:120%;
  height:140px;
  background:#344d39;
  border-radius:50%;
  top:110px;
  left:-10%;
  transform:rotate(-9deg)
}
.hills:after {
  content:"";
  position:absolute;
  width:90%;
  height:150px;
  background:#58754c;
  border-radius:50%;
  top:-14px;
  left:40%
}
.preview-space {
  background:#131b2a
}
.solar-orbit {
  position:absolute;
  border:1px solid #8fa4c844;
  border-radius:50%;
  width:var(--size);
  height:var(--size);
  left:70%;
  top:50%;
  transform:translate(-50%,-50%)
}
.solar-orbit:after {
  content:"";
  position:absolute;
  left:10%;
  top:15%;
  width:7px;
  height:7px;
  background:#d0bc8b;
  border-radius:50%
}
.sun {
  position:absolute;
  left:70%;
  top:50%;
  width:17px;
  height:17px;
  background:#f3d293;
  border-radius:50%;
  transform:translate(-50%,-50%);
  box-shadow:0 0 25px #f3d29355
}
.site-footer {
  display:flex;
  justify-content:space-between;
  gap:20px;
  border-top:1px solid var(--line);
  padding:25px 0 30px;
  color:var(--muted);
  font-size:11px
}
.site-footer a {
  color:var(--ink)
}
@media(min-width:1500px) {
  .hero {
    padding-block:85px
  }
}
@media(max-width:1100px) {
  .shell {
    width:calc(100% - 64px)
  }
  .hero {
    gap:35px
  }
  h1 {
    font-size:80px;
    letter-spacing:-4px
  }
  .collection {
    padding-inline:18px
  }
  .collection-label {
    font-size:8px
  }
  .intro {
    font-size:12px
  }
  .header-caption {
    font-size:9px
  }
}
@media(max-width:820px) {
  .shell {
    width:calc(100% - 40px)
  }
  .site-header {
    height:78px
  }
  .header-caption {
    display:none
  }
  .hero {
    grid-template-columns:1fr;
    gap:38px;
    padding:42px 0
  }
  .hero-copy {
    max-width:560px
  }
  .hero h1 {
    font-size:clamp(62px,12vw,90px)
  }
  .hero h1 br {
    display:none
  }
  .hero h1>span {
    display:block
  }
  .hero h1>span br:after {
    content:" "
  }
  .hero h1>span br {
    display:initial
  }
  .hero-description {
    max-width:420px
  }
  .intro {
    font-size:14px
  }
  .hero-note {
    margin-top:25px
  }
  .collection {
    width:100%;
    max-width:460px;
    justify-self:center
  }
  .project-list {
    gap:16px
  }
  .project-content {
    padding:22px
  }
  .project-image {
    padding:22px;
    min-height:225px
  }
  .site-footer>span:nth-child(2) {
    display:none
  }
}
@media(max-width:580px) {
  .project-list {
    grid-template-columns:1fr
  }
  .section-heading {
    align-items:center
  }
  .project-count {
    font-size:0
  }
  .project-count>span {
    font-size:12px;
    margin:0
  }
  .project-image {
    padding:30px;
    min-height:250px
  }
  .site-header .nav-link {
    font-size:12px
  }
  .hero .eyebrow {
    font-size:10px
  }
  .collection-label {
    font-size:8px
  }
  .intro {
    font-size:12px
  }
  .hero-description {
    font-size:15px
  }
}
@media(max-width:390px) {
  .shell {
    width:calc(100% - 32px)
  }
  .collection {
    padding-inline:12px
  }
  .collection-toolbar label {
    font-size:10px
  }
  .collection-toolbar select {
    font-size:11px;
    max-width:190px
  }
  .card-stage {
    height:425px
  }
  .card-float {
    width:272px;
    height:382px
  }
  .player-card {
    width:272px;
    height:382px
  }
  .card-rotator {
    width:320px;
    height:449px;
    scale:.85;
    transform-origin:center center;
    left:-24px;
    top:-33.5px
  }
  .collection-label {
    letter-spacing:.5px
  }
  .hero h1 {
    font-size:60px;
    letter-spacing:-3px
  }
}
@media(prefers-reduced-motion:reduce) {
  html {
    scroll-behavior:auto
  }
  *,*::before,*::after {
    animation:none!important;
    transition:none!important
  }
  .player-card {
    transform:none!important
  }
}
/* Keep reverse copy within the ornamental taper. */
.player-card[data-format="fut"] .back-inner::before {
  display:none
}
.player-card[data-format="fut"] .back-monogram {
  font-size:46px
}
.player-card[data-format="fut"] .back-name {
  font-size:21px;
  margin:4px 0 12px
}
.player-card[data-format="fut"] .back-detail {
  padding:7px 0
}
.player-card[data-format="fut"] .back-footer {
  max-width:150px;
  margin-top:9px;
  font-size:6px
}
@media(max-width:350px) {
  .card-stage {
    height:380px;
    min-width:0
  }
  .card-float,.player-card {
    width:240px;
    height:337px
  }
  .card-rotator {
    scale:.75;
    left:-40px;
    top:-56px
  }
  .collection-toolbar select {
    max-width:172px
  }
}

/* V5: una portada mínima, centrada y sin cabecera de aplicación. */
body.v5 {
  min-height:100vh;
  position:relative;
  isolation:isolate;
  background:
    radial-gradient(ellipse 48% 72% at 7% 45%, #6334b733 0%, transparent 72%),
    radial-gradient(ellipse 42% 66% at 95% 55%, #166c8a2b 0%, transparent 70%),
    radial-gradient(ellipse 55% 55% at 50% 100%, #693c8720 0%, transparent 72%),
    #050506;
}
.v5 .ambient {
  position:fixed;
  inset:0;
  width:100vw;
  height:100vh;
  z-index:-1;
  overflow:hidden;
  pointer-events:none;
}
.v5 .ambient span {
  position:absolute;
  width:55vw;
  height:55vw;
  min-width:350px;
  min-height:350px;
  border-radius:50%;
  filter:blur(95px);
  opacity:.24;
  will-change:transform;
  animation:ambient-drift-v5 22s ease-in-out infinite alternate;
}
.v5 .ambient span:nth-child(1) { background:#6334b7; left:-23%; top:2%; }
.v5 .ambient span:nth-child(2) { background:#166c8a; right:-23%; top:18%; animation-delay:-9s; animation-duration:28s; opacity:.2; }
.v5 .ambient span:nth-child(3) { background:#693c87; left:30%; top:65%; width:35vw; height:35vw; opacity:.13; animation-delay:-16s; animation-duration:25s; }
@media (max-width:580px), (prefers-reduced-motion:reduce) {
  .v5 .ambient { display:none; }
}
@media (max-width:580px) {
  body.v5 {
    background:
      radial-gradient(ellipse 95% 48% at 0% 18%, #6334b755 0%, transparent 80%),
      radial-gradient(ellipse 85% 52% at 100% 66%, #166c8a4d 0%, transparent 80%),
      radial-gradient(ellipse 100% 42% at 35% 100%, #693c8740 0%, transparent 80%),
      #050506;
  }
}
@keyframes ambient-drift-v5 {
  0% { transform:translate3d(-5%,-12%,0) scale(.9); }
  50% { transform:translate3d(18%,8%,0) scale(1.15); }
  100% { transform:translate3d(8%,30%,0) scale(1); }
}
.v5-shell {
  width:min(100% - 32px, 760px);
  margin:0 auto;
}
.v5 .skip-link {
  color:#101212;
}
.utility-nav {
  position:fixed;
  z-index:5;
  top:22px;
  left:24px;
  right:24px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  pointer-events:none;
}
.utility-nav button {
  border:0;
  padding:4px;
  background:none;
  color:var(--muted);
  font-size:11px;
  letter-spacing:1px;
  pointer-events:auto;
}
.utility-nav button:hover,.utility-nav button.is-active {
  color:var(--ink);
}
.language-switcher,.theme-switcher {
  display:flex;
  align-items:center;
  gap:5px;
}
.language-switcher span {
  color:#ffffff42;
}
.theme-switcher button {
  font-size:22px;
  line-height:1;
  letter-spacing:0;
}
.utility-nav .motion-toggle {
  display:grid;
  place-items:center;
  width:30px;
  height:30px;
  margin:0;
  padding:0;
  border:1px solid #ffffff40;
  border-radius:50%;
  background:#15131caa;
  color:var(--muted);
  font-size:10px;
  font-weight:600;
  letter-spacing:0;
  line-height:1;
}
.utility-nav .motion-toggle:hover,
.utility-nav .motion-toggle[aria-pressed="true"] {
  border-color:var(--accent);
  color:var(--accent);
}
.hero-v5 {
  min-height:calc(100vh - 40px);
  display:flex;
  flex-direction:column;
  align-items:center;
  padding:82px 0 48px;
}
.hero-v5 h1 {
  margin:0;
  color:var(--ink);
  font-size:clamp(24px,4vw,38px);
  font-weight:500;
  letter-spacing:-1.5px;
  line-height:1.1;
  text-align:center;
}
.hero-v5 h1 span {
  color:#b4a3d0;
}
.hero-v5 .hero-copy {
  width:100%;
  text-align:center;
}
.hero-v5 .intro {
  margin:14px 0 0;
  color:#a5a1af;
  font-size:13px;
  letter-spacing:1.4px;
  line-height:1.5;
}
.collection-v5 {
  width:min(100%,390px);
  margin-top:28px;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:18px;
}
.collection-v5 .collection-toolbar {
  width:100%;
  justify-content:center;
  gap:0;
  margin-top:0;
}
.collection-v5 .collection-toolbar label {
  color:var(--muted);
  font-size:10px;
}
.collection-v5 .collection-toolbar label {
  display:none;
}
.collection-v5 .collection-toolbar select {
  max-width:210px;
  padding:8px 9px;
  font-size:11px;
}
.collection-v5 .card-stage {
  width:100%;
  height:465px;
}
.collection-v5 .card-float {
  animation-duration:8s;
}
.collection-v5 .player-card {
  cursor:default;
}
.collection-v5 .player-card:hover {
  transform:rotate(-5deg);
}
.collection-v5 .format-status {
  margin-top:2px;
}
.collection-v5 .format-status,
.collection-v5 .card-hint {
  display:none;
}
.collection-v5 .card-hint {
  color:var(--muted);
  font-size:10px;
  letter-spacing:.4px;
  margin-top:3px;
}
.collection-v5 .motion-toggle {
}
.collection-v5 .projects-toggle {
  width:min(100%,320px);
  margin:0;
}
.v5 .projects {
  margin-bottom:24px;
  padding-top:42px;
  scroll-margin-top:24px;
}
.v5 .section-intro {
  display:none;
}
.v5-footer {
  width:min(100% - 32px,760px);
  margin:0 auto;
  justify-content:center;
  border-top:0;
  padding-top:0;
  padding-bottom:24px;
}
@media(max-width:580px) {
  .utility-nav {
    top:16px;
    left:16px;
    right:16px;
  }
  .hero-v5 {
    padding-top:72px;
  }
  .collection-v5 .card-stage {
    height:455px;
  }
}
@media(max-width:390px) {
  .hero-v5 {
    padding-top:68px;
  }
  .collection-v5 .card-stage {
    height:405px;
  }
}
