/* Phoenix Rises: footer credit, page heroes, stories archive, contact and about pages. */

/* ---------- footer credit ---------- */

.footer-inner {
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px 48px;
}
.footer-main {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.footer .built-by {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  border: 0;
  color: var(--ivory-50);
  transition: color 0.3s;
}
.built-by-label {
  font-size: 11.5px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}
.built-by-logo {
  display: flex;
  align-items: center;
  gap: 16px;
}
.built-by-line {
  width: 36px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(243, 233, 216, 0.4));
}
.built-by-line:last-child {
  background: linear-gradient(90deg, rgba(243, 233, 216, 0.4), transparent);
}
.built-by img {
  display: block;
  width: 48px;
  height: 48px;
  mix-blend-mode: screen;
  transition:
    filter 0.4s,
    transform 0.4s var(--ease-out);
}
.built-by:hover,
.built-by:focus-visible {
  color: var(--ivory);
}
.built-by:hover img,
.built-by:focus-visible img {
  transform: translateY(-3px);
  filter: drop-shadow(0 0 16px rgba(0, 255, 128, 0.45));
}

/* ---------- page heroes (archive, about, contact) ---------- */

.page-hero {
  position: relative;
  padding: calc(var(--nav-h) + 72px) var(--gutter) 36px;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin: 0 auto;
}
.page-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 860px;
}
.page-title {
  margin-top: 26px;
  font-size: clamp(44px, 7vw, 96px);
  line-height: 1.02;
  color: var(--ivory);
  text-shadow: 0 0 60px rgba(232, 96, 28, 0.18);
}
.page-title::first-letter {
  color: var(--pale);
}
.page-hero .lede {
  margin-top: 24px;
}
.page-hero-art {
  position: absolute;
  right: -8%;
  top: 46%;
  transform: translateY(-50%);
  width: min(1100px, 92%);
  opacity: 0.14;
  pointer-events: none;
  z-index: 0;
}
.page-hero-art img {
  display: block;
  width: 100%;
  height: auto;
}

/* ---------- stories archive ---------- */

.cat-strip {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.cat-strip a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--ivory-70);
  text-decoration: none;
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition:
    color 0.3s,
    border-color 0.3s,
    background 0.3s;
}
.cat-strip a:hover,
.cat-strip a[aria-current] {
  color: var(--pale);
  border-color: rgba(242, 177, 52, 0.5);
  background: rgba(242, 177, 52, 0.06);
}
.cat-count {
  font-size: 11px;
  color: var(--gold);
}
.stories.archive-page {
  padding-top: 24px;
}
.feature {
  position: relative;
  margin-bottom: 36px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(31, 22, 20, 0.85), rgba(22, 16, 16, 0.95));
  overflow: hidden;
  transition:
    transform 0.6s var(--ease-out),
    border-color 0.4s,
    box-shadow 0.6s;
}
.feature::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 80% at 100% 100%, rgba(232, 96, 28, 0.16), transparent 60%);
  opacity: 0;
  transition: opacity 0.6s;
  pointer-events: none;
}
.feature:hover,
.feature:focus-within {
  transform: translateY(-4px);
  border-color: rgba(242, 177, 52, 0.35);
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.45),
    0 0 60px rgba(232, 96, 28, 0.12);
}
.feature:hover::before,
.feature:focus-within::before {
  opacity: 1;
}
.feature-link {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  min-height: 420px;
  text-decoration: none;
  color: inherit;
}
.feature-link:focus-visible {
  outline: none;
}
.feature-art {
  position: relative;
  overflow: hidden;
  background: #160f0e;
}
.feature-art img,
.feature-art svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.02);
  transition: transform 1.4s var(--ease-out);
}
.feature:hover .feature-art img,
.feature:hover .feature-art svg {
  transform: scale(1.07);
}
.feature-body {
  position: relative;
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
}
.feature-title {
  font-size: clamp(32px, 3.6vw, 52px);
  line-height: 1.05;
  color: var(--ivory);
  transition: color 0.3s;
}
.feature:hover .feature-title {
  color: var(--pale);
}
.feature-excerpt {
  color: var(--ivory-70);
  font-size: 17px;
  max-width: 46ch;
}
.feature:hover .arrow {
  transform: translateX(5px);
}
.stories-all {
  margin-top: 40px;
  display: flex;
  justify-content: center;
}

/* ---------- contact page ---------- */

.contact {
  padding: 24px var(--gutter) 120px;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin: 0 auto;
}
.contact-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 32px;
  align-items: start;
}
.contact-panel {
  position: relative;
  padding: 44px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: radial-gradient(80% 100% at 0% 0%, rgba(141, 26, 22, 0.22), transparent 60%), rgba(22, 16, 16, 0.72);
}
.contact-form {
  position: relative;
}
.contact-form .field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
}
.contact-form > .field + .field,
.contact-form > .field-row + .field,
.contact-form > .field + .field-row {
  margin-top: 20px;
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.contact-form label {
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
}
.field-opt {
  color: var(--ivory-50);
  letter-spacing: 0.08em;
  text-transform: none;
  font-weight: 400;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  background: rgba(11, 8, 8, 0.6);
  border: 1px solid rgba(243, 233, 216, 0.14);
  border-radius: 12px;
  color: var(--ivory);
  padding: 14px 16px;
  font: inherit;
  font-size: 16px;
  transition:
    border-color 0.3s,
    box-shadow 0.3s;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(243, 233, 216, 0.3);
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: rgba(242, 177, 52, 0.6);
  box-shadow:
    0 0 0 4px rgba(242, 177, 52, 0.12),
    0 0 30px rgba(232, 96, 28, 0.15);
}
.contact-form textarea {
  resize: vertical;
  min-height: 160px;
}
.contact-hp {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.contact-actions {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
}
.contact-actions .btn-primary {
  border: 0;
  cursor: pointer;
  font-family: inherit;
}
.contact-note {
  font-size: 13px;
  color: var(--ivory-50);
}
.contact-status {
  padding: 14px 18px;
  border-radius: 12px;
  margin-bottom: 24px;
  border: 1px solid;
  font-size: 15px;
}
.contact-status.is-ok {
  border-color: rgba(242, 177, 52, 0.45);
  background: rgba(242, 177, 52, 0.08);
  color: var(--pale);
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.3;
}
.contact-status.is-error {
  border-color: rgba(232, 96, 28, 0.5);
  background: rgba(141, 26, 22, 0.2);
  color: var(--ivory);
}
.contact-aside {
  padding: 36px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: rgba(22, 16, 16, 0.5);
}
.contact-ring {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid rgba(242, 177, 52, 0.35);
  background: radial-gradient(circle at 50% 60%, rgba(232, 96, 28, 0.22), rgba(11, 8, 8, 0.6) 70%);
  box-shadow: 0 0 60px rgba(232, 96, 28, 0.18);
  margin-bottom: 24px;
  overflow: hidden;
}
.contact-ring img {
  width: 76%;
  height: 76%;
  object-fit: contain;
  filter: drop-shadow(0 0 18px rgba(242, 177, 52, 0.4));
}
.contact-aside h2 {
  font-size: 28px;
  color: var(--ivory);
}
.contact-email {
  margin-top: 12px;
  font-size: 18px;
}
.contact-email a {
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid rgba(242, 177, 52, 0.35);
}
.contact-email a:hover {
  border-color: var(--gold);
}
.contact-notes {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  color: var(--ivory-70);
  font-size: 15px;
}
.contact-notes li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.contact-glyph {
  width: 22px;
  height: 22px;
  flex: none;
  color: var(--gold);
}
.contact-glyph svg {
  width: 100%;
  height: 100%;
}

/* ---------- about page ---------- */

.about-page {
  padding: 24px var(--gutter) 120px;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin: 0 auto;
}
.about-page-inner {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 56px;
  align-items: center;
  padding: 56px;
  border-radius: 26px;
  border: 1px solid var(--line);
  background: radial-gradient(80% 100% at 0% 0%, rgba(141, 26, 22, 0.25), transparent 60%), rgba(22, 16, 16, 0.6);
}
.about-page-portrait {
  position: relative;
  width: 300px;
  height: 300px;
  display: grid;
  place-items: center;
}
.portrait-halo {
  position: absolute;
  inset: -14%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 96, 28, 0.35), rgba(232, 96, 28, 0) 65%);
  animation: halo 6s ease-in-out infinite;
}
.portrait-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(242, 177, 52, 0.4);
  box-shadow:
    0 0 0 10px rgba(242, 177, 52, 0.05),
    0 0 80px rgba(232, 96, 28, 0.2);
  background: radial-gradient(circle at 50% 60%, rgba(232, 96, 28, 0.22), rgba(11, 8, 8, 0.7) 70%);
}
.about-page-portrait img {
  position: relative;
  width: 72%;
  height: 72%;
  object-fit: contain;
  filter: drop-shadow(0 0 24px rgba(242, 177, 52, 0.45));
}
@keyframes halo {
  0%,
  100% {
    transform: scale(0.96);
    opacity: 0.7;
  }
  50% {
    transform: scale(1.06);
    opacity: 1;
  }
}
.about-page-copy h2 {
  font-size: clamp(32px, 3.8vw, 50px);
  color: var(--ivory);
}
.about-page-copy h2::first-letter {
  color: var(--pale);
}
.about-page-text {
  margin-top: 20px;
  color: var(--ivory-70);
  font-size: 18px;
  line-height: 1.7;
  max-width: 60ch;
}
.about-page-text p + p {
  margin-top: 1.2em;
}
.about-page-text p:first-of-type::first-letter {
  font-family: var(--font-display);
  font-size: 3.2em;
  line-height: 0.8;
  float: left;
  padding: 6px 10px 0 0;
  color: var(--pale);
}
.about-page-copy .about-sig {
  margin-top: 22px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 22px;
  color: var(--pale);
}
.pillars {
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.pillar {
  padding: 32px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(31, 22, 20, 0.8), rgba(22, 16, 16, 0.9));
  transition:
    transform 0.5s var(--ease-out),
    border-color 0.4s;
}
.pillar:hover {
  transform: translateY(-4px);
  border-color: rgba(242, 177, 52, 0.35);
}
.pillar-glyph {
  display: block;
  width: 40px;
  height: 40px;
  color: var(--gold);
  margin-bottom: 18px;
}
.pillar-glyph svg {
  width: 100%;
  height: 100%;
}
.pillar h3 {
  font-size: 26px;
  color: var(--ivory);
}
.pillar p {
  margin-top: 10px;
  color: var(--ivory-70);
  font-size: 15px;
}
.about-actions {
  margin-top: 48px;
  justify-content: center;
}

/* ---------- responsive ---------- */

@media (max-width: 1000px) {
  .pillars {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 860px) {
  .feature-link {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .feature-art {
    aspect-ratio: 16 / 10;
  }
  .feature-body {
    padding: 32px;
  }
  .contact-inner {
    grid-template-columns: 1fr;
  }
  .field-row {
    grid-template-columns: 1fr;
  }
  .contact-panel,
  .contact-aside {
    padding: 28px;
  }
  .about-page-inner {
    grid-template-columns: 1fr;
    padding: 32px;
    justify-items: center;
  }
  .about-page-portrait {
    width: 220px;
    height: 220px;
  }
  .page-hero-art {
    width: 140%;
    right: -40%;
  }
}
@media (max-width: 640px) {
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .footer .built-by {
    align-items: flex-start;
  }
  .page-hero {
    padding-top: calc(var(--nav-h) + 48px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .portrait-halo {
    animation: none;
  }
}