@import url("https://fonts.googleapis.com/css2?family=Cinzel:wght@600;700&family=Inter:wght@400;500;600;700&display=swap");

:root {
  --portal-bg: #102039;
  --portal-bg-deep: #071120;
  --portal-surface: rgba(17, 30, 54, 0.72);
  --portal-surface-strong: rgba(16, 28, 50, 0.88);
  --portal-stroke: rgba(196, 214, 250, 0.24);
  --portal-stroke-strong: rgba(210, 170, 93, 0.34);
  --portal-text: #edf3ff;
  --portal-text-soft: #c6d1e8;
  --portal-gold: #d7aa59;
  --portal-gold-soft: #f2d293;
  --portal-blue: #a5c8ff;
  --portal-shadow: 0 28px 72px rgba(0, 0, 0, 0.28);
  --portal-radius: 28px;
  --portal-radius-sm: 18px;
  --portal-max: 1220px;
  --portal-transition: 180ms ease;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.portal-page {
  margin: 0;
  min-height: 100vh;
  color: var(--portal-text);
  font-family: "Inter", system-ui, sans-serif;
  font-size: 17px;
  background:
    radial-gradient(circle at 18% 8%, rgba(123, 162, 231, 0.28), transparent 34%),
    radial-gradient(circle at 82% 14%, rgba(242, 210, 147, 0.12), transparent 24%),
    radial-gradient(circle at 50% 52%, rgba(98, 129, 191, 0.2), transparent 36%),
    linear-gradient(180deg, #16294a 0%, #08101d 100%);
  overflow-x: hidden;
}

body.portal-page::before {
  content: "";
  position: fixed;
  inset: -8%;
  background:
    linear-gradient(180deg, rgba(13, 24, 44, 0.26), rgba(8, 16, 31, 0.62)),
    url("/media/arca/cosmic-background.png") center top / 540px auto no-repeat;
  opacity: 0.42;
  pointer-events: none;
  z-index: -2;
}

.page-aura {
  position: fixed;
  inset: auto auto -12rem -10rem;
  width: 26rem;
  height: 26rem;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(212, 170, 89, 0.2), transparent 70%);
  filter: blur(14px);
  pointer-events: none;
  z-index: -1;
}

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

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

.portal-topbar,
.portal-footer,
.section-shell {
  width: min(calc(100% - 32px), var(--portal-max));
  margin-inline: auto;
}

.portal-topbar {
  position: sticky;
  top: 16px;
  z-index: 20;
  padding-top: 26px;
}

.portal-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 26px 34px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(16, 28, 50, 0.76);
  backdrop-filter: blur(22px);
  box-shadow: 0 20px 54px rgba(0, 0, 0, 0.2);
}

.portal-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.portal-brand img {
  width: 132px;
  height: auto;
  filter: drop-shadow(0 14px 28px rgba(0, 0, 0, 0.16));
}

.portal-brand-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.portal-brand-kicker,
.eyebrow,
.signal-kicker,
.portal-card-kicker,
.story-meta,
.album-meta {
  color: var(--portal-gold-soft);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.8rem;
  font-weight: 700;
}

.portal-brand-kicker {
  font-size: 0.88rem;
}

.portal-brand-title {
  font-family: "Cinzel", serif;
  font-size: 1.32rem;
  letter-spacing: 0.06em;
}

.portal-nav-meta {
  display: flex;
  align-items: center;
  gap: 18px;
}

.portal-nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.portal-nav-links a {
  color: var(--portal-text-soft);
  font-size: 1.08rem;
  font-weight: 600;
  transition: color var(--portal-transition);
}

.portal-nav-links a:hover {
  color: var(--portal-text);
}

.language-switch {
  display: inline-flex;
  gap: 6px;
  padding: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
}

.lang-btn {
  border: 0;
  border-radius: 999px;
  padding: 10px 16px;
  background: transparent;
  color: var(--portal-text-soft);
  font-size: 0.96rem;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--portal-transition), color var(--portal-transition);
}

.lang-btn.is-active,
.lang-btn:hover {
  background: rgba(212, 170, 89, 0.16);
  color: var(--portal-text);
}

.portal-main {
  padding: 56px 0 88px;
}

.section-shell {
  position: relative;
  margin-top: 30px;
  padding: 36px;
  border-radius: calc(var(--portal-radius) + 10px);
  background: linear-gradient(180deg, rgba(20, 32, 58, 0.9), rgba(8, 14, 28, 0.8));
  border: 1px solid var(--portal-stroke);
  box-shadow: var(--portal-shadow);
  overflow: hidden;
}

.section-shell::before {
  content: "";
  position: absolute;
  inset: auto -12% -40% auto;
  width: 22rem;
  height: 22rem;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(132, 184, 255, 0.12), transparent 68%);
  pointer-events: none;
}

.portal-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(340px, 0.94fr);
  gap: 34px;
  align-items: center;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.hero-copy h1,
.section-heading h2,
.signal-card h2,
.portal-card h3,
.story-card h3,
.album-card h3,
.emporio-copy h2,
.escuta-panel h3 {
  margin: 0;
  font-family: "Cinzel", serif;
  line-height: 1.08;
}

.hero-copy h1 {
  font-size: clamp(2.3rem, 3.55vw, 4rem);
  max-width: 11ch;
}

.hero-copy > .eyebrow,
.hero-copy h1,
.hero-copy-text {
  margin: 0;
}

.hero-copy-text,
.section-heading p,
.portal-card p,
.story-card p,
.album-card p,
.emporio-copy p,
.emporio-state p,
.escuta-panel p,
.escuta-list,
.field span,
.contact-note,
.portal-footer p {
  color: var(--portal-text-soft);
  line-height: 1.72;
  font-size: 1.02rem;
}

.hero-copy-text {
  max-width: 38rem;
}

.hero-actions,
.emporio-tags,
.form-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: flex-start;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.98rem;
  font-weight: 700;
  cursor: pointer;
  transition:
    transform var(--portal-transition),
    border-color var(--portal-transition),
    background var(--portal-transition);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, #f1cf8a, var(--portal-gold));
  color: #09111f;
  box-shadow: 0 18px 40px rgba(215, 170, 89, 0.22);
}

.hero-signal-grid,
.portal-grid,
.story-grid,
.album-grid,
.footer-grid {
  display: grid;
  gap: 18px;
}

.hero-signal-grid {
  margin-top: 34px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.signal-card,
.portal-card,
.story-card,
.album-card,
.emporio-state,
.escuta-panel,
.escuta-form {
  position: relative;
  padding: 24px;
  border-radius: var(--portal-radius);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.signal-card h2 {
  margin-top: 10px;
  font-size: 1.22rem;
}

.signal-card-link {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 100%;
  transition:
    transform var(--portal-transition),
    border-color var(--portal-transition),
    box-shadow var(--portal-transition),
    background var(--portal-transition);
}

.signal-card-link:hover {
  transform: translateY(-4px);
  border-color: rgba(212, 170, 89, 0.34);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.22);
  background: rgba(255, 255, 255, 0.08);
}

.signal-cta {
  margin-top: auto;
  color: var(--portal-gold-soft);
  font-weight: 700;
}

.signal-card p:last-child,
.portal-card p:last-child,
.story-card p:last-child,
.album-card p:last-child,
.section-heading p:last-child,
.portal-footer p:last-child,
.escuta-panel p:last-child {
  margin-bottom: 0;
}

.hero-visual {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: stretch;
  justify-content: center;
}

.hero-emblem-shell {
  padding: 24px;
  border-radius: 34px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02)),
    rgba(8, 16, 31, 0.56);
  border: 1px solid var(--portal-stroke-strong);
}

.hero-emblem {
  width: min(100%, 460px);
  margin-inline: auto;
  filter: drop-shadow(0 24px 46px rgba(5, 11, 22, 0.55));
}

.hero-side-note {
  padding: 22px 24px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-side-note-inline {
  max-width: 35rem;
}

.hero-side-note p {
  margin: 0;
}

.hero-side-note p + p {
  margin-top: 12px;
}

.section-heading {
  max-width: 780px;
  margin-bottom: 30px;
}

.section-heading h2 {
  font-size: clamp(2rem, 2.55vw, 3.1rem);
  margin-top: 10px;
}

.section-heading-compact {
  margin-bottom: 22px;
}

.section-heading-compact h2 {
  margin-top: 0;
}

.section-heading-split {
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 300px);
  gap: 24px;
  align-items: start;
}

.section-art img {
  width: 100%;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
}

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

.portal-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: 100%;
  transition:
    transform var(--portal-transition),
    border-color var(--portal-transition),
    box-shadow var(--portal-transition);
}

.portal-card:hover {
  transform: translateY(-4px);
  border-color: rgba(212, 170, 89, 0.38);
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.28);
}

.portal-card-media {
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.portal-card-media img {
  width: 100%;
  aspect-ratio: 1 / 1.07;
  object-fit: cover;
}

.portal-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 10px;
}

.portal-card h3 {
  font-size: 1.45rem;
}

.portal-card-cta {
  margin-top: auto;
  color: var(--portal-gold-soft);
  font-weight: 700;
}

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

.story-grid-single {
  grid-template-columns: 1fr;
  max-width: 820px;
}

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

.album-card {
  min-height: 230px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02)),
    rgba(7, 12, 24, 0.84);
}

.album-card h3 {
  margin-top: 12px;
  font-size: 1.28rem;
}

.gallery-status,
.gallery-empty {
  padding: 16px 18px;
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02)),
    rgba(7, 12, 24, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--portal-text-soft);
  line-height: 1.6;
}

.gallery-empty[hidden],
.gallery-grid[hidden] {
  display: none;
}

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

.gallery-item {
  position: relative;
  display: block;
  min-height: 320px;
  overflow: hidden;
  border-radius: calc(var(--portal-radius-sm) + 2px);
  border: 1px solid rgba(212, 170, 89, 0.18);
  background: rgba(7, 12, 24, 0.88);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.28);
}

.gallery-item::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 55%;
  background: linear-gradient(180deg, transparent, rgba(5, 9, 18, 0.78));
  pointer-events: none;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  transition: transform 260ms ease;
}

.gallery-item:hover img {
  transform: scale(1.03);
}

.gallery-item-label {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  z-index: 1;
  margin: 0;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(10, 18, 35, 0.72);
  border: 1px solid rgba(212, 170, 89, 0.16);
  color: var(--portal-text);
  font-size: 0.94rem;
  font-weight: 700;
  line-height: 1.45;
}

.emporio-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.75fr);
  gap: 20px;
  align-items: stretch;
}

.emporio-copy {
  padding: 8px 2px;
}

.emporio-copy h2 {
  margin-top: 10px;
  font-size: clamp(1.9rem, 2.5vw, 3rem);
}

.emporio-tags span {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(212, 170, 89, 0.08);
  border: 1px solid rgba(212, 170, 89, 0.14);
  color: var(--portal-gold-soft);
  font-size: 0.9rem;
  font-weight: 700;
}

.emporio-state {
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-content: center;
  background:
    linear-gradient(180deg, rgba(126, 97, 43, 0.12), rgba(14, 18, 29, 0.42)),
    rgba(255, 255, 255, 0.03);
}

.emporio-state strong {
  font-family: "Cinzel", serif;
  font-size: 1rem;
}

.emporio-badge {
  display: inline-flex;
  align-self: flex-start;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--portal-text);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.escuta-shell {
  display: grid;
  grid-template-columns: minmax(260px, 0.5fr) minmax(0, 1fr);
  gap: 20px;
}

.escuta-panel {
  background:
    linear-gradient(180deg, rgba(88, 122, 197, 0.1), rgba(8, 15, 30, 0.36)),
    rgba(255, 255, 255, 0.02);
}

.escuta-panel h3 {
  font-size: 1.15rem;
  margin-bottom: 12px;
}

.escuta-list {
  margin: 0 0 20px;
  padding-left: 20px;
}

.escuta-list li + li {
  margin-top: 12px;
}

.escuta-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02)),
    rgba(3, 7, 14, 0.7);
}

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

.field {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.field span {
  font-size: 0.98rem;
  font-weight: 700;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 15px 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--portal-text);
  font: inherit;
  transition:
    border-color var(--portal-transition),
    box-shadow var(--portal-transition),
    background var(--portal-transition);
}

.field input::placeholder,
.field textarea::placeholder {
  color: #7f8da8;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: rgba(212, 170, 89, 0.48);
  box-shadow: 0 0 0 4px rgba(212, 170, 89, 0.12);
  background: rgba(255, 255, 255, 0.05);
}

.honeypot-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-note {
  flex: 1;
  min-width: 220px;
  margin: 0;
}

.btn[disabled] {
  cursor: wait;
  opacity: 0.72;
}

.escuta-result {
  display: none;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(185, 78, 78, 0.12);
  border: 1px solid rgba(185, 78, 78, 0.24);
  color: #ffd1d1;
  line-height: 1.6;
}

.escuta-result.visible {
  display: block;
}

.escuta-result.success {
  background: rgba(90, 164, 122, 0.12);
  border-color: rgba(90, 164, 122, 0.26);
  color: #d9ffe3;
}

.portal-footer {
  padding: 0 0 48px;
}

.footer-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 14px 0 24px;
}

.footer-line {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.16), transparent);
}

.portal-footer > p {
  margin: 20px 0 0;
  text-align: center;
  font-size: 0.92rem;
}

@media (max-width: 1080px) {
  .portal-nav {
    border-radius: 28px;
  }

  .portal-hero,
  .portal-grid,
  .story-grid,
  .emporio-panel,
  .escuta-shell,
  .section-heading-split,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-signal-grid {
    grid-template-columns: 1fr;
  }

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

  .hero-copy h1 {
    max-width: 13ch;
  }
}

@media (max-width: 820px) {
  .portal-topbar {
    top: 10px;
    width: min(calc(100% - 20px), var(--portal-max));
  }

  .portal-nav {
    align-items: flex-start;
    flex-direction: column;
    padding: 20px 22px;
  }

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

  .portal-nav-links {
    gap: 14px;
  }

  .section-shell {
    width: min(calc(100% - 20px), var(--portal-max));
    padding: 26px 20px;
    border-radius: 24px;
  }

  .portal-main {
    padding-top: 26px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .portal-brand {
    align-items: flex-start;
  }

  .portal-brand img {
    width: 96px;
  }

  .portal-nav-links a {
    font-size: 0.98rem;
  }

  .hero-copy h1,
  .section-heading h2,
  .emporio-copy h2 {
    max-width: none;
    font-size: 2rem;
  }

  .btn,
  .lang-btn {
    width: 100%;
  }

  .language-switch {
    width: 100%;
  }

  .hero-actions,
  .form-actions {
    flex-direction: column;
  }

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

  .gallery-item,
  .gallery-item img {
    min-height: 280px;
  }
}
