:root {
  --black: #030302;
  --ink: #080806;
  --bronze: #a58a52;
  --bronze-deep: #594724;
  --bone: #d5cdb8;
  --ash: #8b8474;
  --line: rgba(165, 138, 82, 0.2);
  --serif: Georgia, "Times New Roman", serif;
  --mono: "Courier New", Courier, monospace;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--black);
  scroll-behavior: smooth;
  scrollbar-color: var(--bronze-deep) var(--black);
}

body {
  margin: 0;
  background: var(--black);
  color: var(--bone);
  font-family: var(--serif);
  overflow-x: hidden;
}

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

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

.site-shell {
  min-height: 100vh;
  background:
    radial-gradient(circle at 50% 16%, rgba(95, 73, 31, 0.09), transparent 34rem),
    var(--black);
}

.hero {
  position: relative;
  display: grid;
  min-height: 100svh;
  place-items: center;
  isolation: isolate;
  overflow: hidden;
}

.hero::before,
.hero::after {
  position: absolute;
  z-index: -1;
  content: "";
  pointer-events: none;
}

.hero::before {
  inset: -15%;
  background:
    repeating-radial-gradient(circle at 50% 50%, transparent 0 5.8rem, rgba(177, 145, 78, 0.025) 5.9rem, transparent 6rem),
    linear-gradient(107deg, transparent 43%, rgba(160, 128, 66, 0.035) 50%, transparent 57%);
  animation: mineral-drift 38s ease-in-out infinite alternate;
}

.hero::after {
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.18), transparent 25%, transparent 72%, var(--black));
}

.hero__field {
  position: absolute;
  z-index: -3;
  inset: -8%;
  background-image: url("daimones-wordmark.png");
  background-position: center;
  background-size: cover;
  filter: contrast(1.2) saturate(0.78);
  opacity: 0.17;
  animation: field-breathe 26s ease-in-out infinite alternate;
}

.hero__mark {
  position: absolute;
  z-index: -2;
  width: min(72vw, 52rem);
  aspect-ratio: 1;
  object-fit: cover;
  filter: sepia(0.12) contrast(1.08);
  mix-blend-mode: screen;
  opacity: 0.31;
  animation: mark-breathe 22s ease-in-out infinite alternate;
}

.hero__orbit {
  position: absolute;
  z-index: -1;
  border: 1px solid rgba(165, 138, 82, 0.09);
  border-radius: 50%;
  pointer-events: none;
}

.hero__orbit--outer {
  width: min(78vw, 58rem);
  aspect-ratio: 1;
  animation: orbit 90s linear infinite;
}

.hero__orbit--inner {
  width: min(48vw, 32rem);
  aspect-ratio: 1;
  border-style: dashed;
  animation: orbit 68s linear infinite reverse;
}

.hero__content {
  display: grid;
  place-items: center;
  padding: 2rem;
  text-align: center;
}

.hero__code,
.eyebrow,
.section__measure,
.recording__number,
.recording__meta p,
.recording__meta nav,
.social-actions,
.presence figcaption,
.archive-card__date,
.archive-card a,
footer {
  font-family: var(--mono);
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.hero__code {
  margin: 0 0 4.6rem;
  color: rgba(213, 205, 184, 0.45);
  font-size: 0.57rem;
}

h1 {
  margin: 0;
  color: #d9cfb5;
  font-size: clamp(4rem, 10vw, 9.8rem);
  font-weight: 400;
  letter-spacing: 0.045em;
  line-height: 0.82;
  text-shadow: 0 0 3.5rem rgba(165, 138, 82, 0.14);
}

.hero__line {
  margin: 3.5rem 0 0;
  color: rgba(213, 205, 184, 0.67);
  font-family: var(--mono);
  font-size: clamp(0.58rem, 0.8vw, 0.74rem);
  letter-spacing: 0.26em;
}

.entry {
  position: absolute;
  bottom: clamp(2.1rem, 6vh, 5rem);
  display: grid;
  justify-items: center;
  gap: 1.1rem;
  color: rgba(213, 205, 184, 0.58);
  font-family: var(--mono);
  font-size: 0.53rem;
  letter-spacing: 0.38em;
}

.entry i {
  display: block;
  width: 1px;
  height: 2.6rem;
  background: linear-gradient(var(--bronze), transparent);
  transform-origin: top;
  transition: transform 450ms ease;
}

.entry:hover i,
.entry:focus-visible i {
  transform: scaleY(1.4);
}

.section {
  position: relative;
  padding: clamp(7rem, 14vw, 13rem) max(5vw, calc((100vw - 96rem) / 2));
  isolation: isolate;
}

.section__trace {
  position: absolute;
  top: 9rem;
  left: max(1.4rem, calc((100vw - 106rem) / 2));
  color: rgba(165, 138, 82, 0.34);
  font-family: var(--mono);
  font-size: 0.58rem;
  writing-mode: vertical-rl;
}

.section__trace::after {
  display: inline-block;
  width: 1px;
  height: 3.4rem;
  margin-top: 1rem;
  background: var(--line);
  content: "";
}

.section__head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--line);
}

.eyebrow,
.section__measure {
  margin: 0;
  color: rgba(213, 205, 184, 0.36);
  font-size: 0.52rem;
}

.section h2 {
  margin: 0.72rem 0 0;
  color: var(--bone);
  font-size: clamp(2.3rem, 5vw, 5rem);
  font-weight: 400;
  letter-spacing: 0.1em;
}

.sound {
  background:
    linear-gradient(rgba(3, 3, 2, 0.9), rgba(3, 3, 2, 0.96)),
    url("daimones-mark.png") center 8rem / min(78vw, 54rem) auto no-repeat;
}

.recordings {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7rem 5rem;
  margin-top: 6rem;
}

.recording {
  position: relative;
  display: grid;
  grid-template-columns: 1.8rem minmax(0, 1fr);
  gap: 1.3rem;
}

.recording--primary {
  grid-column: 1 / -1;
  width: min(82%, 68rem);
  margin-inline: auto;
}

.recording__number {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: rgba(213, 205, 184, 0.36);
  font-size: 0.5rem;
  writing-mode: vertical-rl;
}

.recording__number small {
  color: var(--bronze);
  font: inherit;
}

.recording__frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  border: 1px solid rgba(165, 138, 82, 0.22);
  box-shadow: 0 1.8rem 6rem rgba(0, 0, 0, 0.52);
}

.recording__frame::before,
.recording__frame::after {
  position: absolute;
  z-index: 2;
  width: 2.5rem;
  height: 2.5rem;
  border-color: rgba(165, 138, 82, 0.55);
  pointer-events: none;
  content: "";
}

.recording__frame::before {
  top: -1px;
  left: -1px;
  border-top: 1px solid;
  border-left: 1px solid;
}

.recording__frame::after {
  right: -1px;
  bottom: -1px;
  border-right: 1px solid;
  border-bottom: 1px solid;
}

.recording__frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.recording__meta {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 2rem;
  padding-top: 1.25rem;
}

.recording__meta h3 {
  margin: 0;
  color: rgba(213, 205, 184, 0.9);
  font-size: clamp(1rem, 1.4vw, 1.35rem);
  font-weight: 400;
  line-height: 1.3;
}

.recording__meta p {
  margin: 0.55rem 0 0;
  color: rgba(213, 205, 184, 0.3);
  font-size: 0.45rem;
  line-height: 1.6;
}

.recording__meta nav {
  display: flex;
  flex: 0 0 auto;
  gap: 1.25rem;
  color: rgba(213, 205, 184, 0.38);
  font-size: 0.43rem;
  line-height: 2;
}

.recording__meta a,
.social-actions a,
.archive-card a,
footer a {
  transition: color 260ms ease;
}

.recording__meta a:hover,
.recording__meta a:focus-visible,
.social-actions a:hover,
.social-actions a:focus-visible,
.archive-card a:hover,
.archive-card a:focus-visible,
footer a:hover,
footer a:focus-visible {
  color: var(--bronze);
}

.social-actions {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-top: 9rem;
  padding: 2.2rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: rgba(213, 205, 184, 0.5);
  font-size: 0.5rem;
}

.presences {
  background: #080705;
}

.presences::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    radial-gradient(circle at 18% 34%, rgba(165, 138, 82, 0.07), transparent 28rem),
    linear-gradient(130deg, transparent 46%, rgba(165, 138, 82, 0.025), transparent 54%);
  content: "";
}

.presence-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(18rem, 0.65fr);
  gap: 2rem;
  margin-top: 6rem;
}

.presence {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(165, 138, 82, 0.14);
  background: #000;
}

.presence--wide {
  grid-column: 1;
}

.presence--square {
  grid-row: span 2;
  grid-column: 2;
}

.presence--threshold {
  grid-column: 1;
}

.presence img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.72) brightness(0.7) contrast(1.14);
  transition: filter 1.2s ease, transform 1.8s ease;
}

.presence:hover img {
  filter: saturate(0.9) brightness(0.88) contrast(1.06);
  transform: scale(1.015);
}

.presence figcaption {
  position: absolute;
  right: 1.4rem;
  bottom: 1.2rem;
  left: 1.4rem;
  display: flex;
  justify-content: space-between;
  color: rgba(213, 205, 184, 0.56);
  font-size: 0.46rem;
}

.presence figcaption span {
  color: var(--bronze);
}

.archive {
  min-height: 100vh;
  overflow: hidden;
}

.archive__texture {
  position: absolute;
  z-index: -1;
  inset: -8%;
  background-image: url("daimones-mark.png");
  background-position: 82% 48%;
  background-repeat: no-repeat;
  background-size: min(64vw, 48rem);
  filter: contrast(1.2);
  opacity: 0.09;
  animation: archive-drift 40s ease-in-out infinite alternate;
}

.archive__entries {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 2rem;
  margin-top: 6rem;
}

.archive-card {
  position: relative;
  min-height: 31rem;
  padding: clamp(2rem, 4vw, 4rem);
  border: 1px solid var(--line);
  background: rgba(7, 6, 4, 0.72);
}

.archive-card__date {
  margin: 0;
  color: rgba(213, 205, 184, 0.34);
  font-size: 0.48rem;
}

.archive-card__symbol {
  margin: 5rem 0 3rem;
  color: rgba(165, 138, 82, 0.66);
  font-size: 4.8rem;
  font-weight: 300;
}

.archive-card h3 {
  margin: 0;
  color: var(--bone);
  font-size: clamp(2.4rem, 4.4vw, 4.4rem);
  font-weight: 400;
}

.archive-card p:not(.archive-card__date) {
  max-width: 30rem;
  margin: 1.25rem 0 3.5rem;
  color: rgba(213, 205, 184, 0.52);
  font-size: 0.9rem;
  line-height: 1.8;
}

.archive-card a {
  color: rgba(213, 205, 184, 0.48);
  font-size: 0.48rem;
}

.archive-card--channel {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 31rem;
  overflow: hidden;
}

.archive-card--channel img {
  position: absolute;
  z-index: -1;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.34) saturate(0.58) contrast(1.16);
}

.archive-card--channel::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.2), rgba(3, 3, 2, 0.88));
  content: "";
}

.archive-card--channel div:last-child {
  align-self: end;
}

footer {
  position: relative;
  display: grid;
  min-height: 34rem;
  place-items: center;
  padding: 8rem 5vw 3rem;
  border-top: 1px solid rgba(165, 138, 82, 0.1);
  color: rgba(213, 205, 184, 0.32);
  font-size: 0.5rem;
  text-align: center;
}

.footer__mark {
  color: rgba(165, 138, 82, 0.22);
  font-family: var(--serif);
  font-size: 8rem;
  line-height: 1;
}

footer nav {
  display: flex;
  gap: 3rem;
}

footer p {
  align-self: end;
  margin: 0;
}

@keyframes mineral-drift {
  from {
    transform: translate3d(-1.4%, -1%, 0) rotate(-0.5deg);
  }
  to {
    transform: translate3d(1.4%, 1%, 0) rotate(0.5deg);
  }
}

@keyframes field-breathe {
  from {
    transform: scale(1.03) translate3d(-0.8%, 0, 0);
  }
  to {
    transform: scale(1.09) translate3d(0.8%, -0.5%, 0);
  }
}

@keyframes mark-breathe {
  from {
    opacity: 0.22;
    transform: scale(0.94) rotate(-0.45deg);
  }
  to {
    opacity: 0.37;
    transform: scale(1.03) rotate(0.45deg);
  }
}

@keyframes orbit {
  to {
    transform: rotate(360deg);
  }
}

@keyframes archive-drift {
  from {
    transform: translate3d(-1%, -1%, 0) scale(1.02);
  }
  to {
    transform: translate3d(1%, 1%, 0) scale(1.07);
  }
}

@media (max-width: 950px) {
  .hero__mark {
    width: min(104vw, 46rem);
  }

  .recordings {
    grid-template-columns: 1fr;
    gap: 5.5rem;
  }

  .recording--primary {
    grid-column: auto;
    width: 100%;
  }

  .recording__meta {
    display: block;
  }

  .recording__meta nav {
    margin-top: 1.2rem;
  }

  .presence-grid,
  .archive__entries {
    grid-template-columns: 1fr;
  }

  .presence--wide,
  .presence--square,
  .presence--threshold {
    grid-row: auto;
    grid-column: auto;
  }

  .presence--square {
    aspect-ratio: 1;
  }
}

@media (max-width: 640px) {
  h1 {
    max-width: 100%;
    font-size: clamp(3.25rem, 16vw, 5.5rem);
    letter-spacing: 0;
  }

  .hero__code {
    margin-bottom: 3.4rem;
  }

  .hero__line {
    max-width: 18rem;
    margin-top: 2.7rem;
    line-height: 1.8;
  }

  .section {
    padding: 7rem 1.25rem;
  }

  .section__trace {
    top: 7.2rem;
    left: 0.55rem;
  }

  .section__head {
    display: block;
    padding-left: 1.1rem;
  }

  .section__measure {
    margin-top: 1.4rem;
  }

  .recordings,
  .presence-grid,
  .archive__entries {
    margin-top: 4rem;
  }

  .recording {
    grid-template-columns: 1rem minmax(0, 1fr);
    gap: 0.85rem;
  }

  .recording__meta nav {
    flex-direction: column;
    gap: 0.1rem;
  }

  .social-actions {
    flex-direction: column;
    gap: 1.2rem;
    margin-top: 6rem;
    text-align: center;
  }

  .presence--wide {
    aspect-ratio: 16 / 10;
  }

  .archive-card {
    min-height: 27rem;
  }

  footer {
    min-height: 28rem;
  }
}

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

  .hero::before,
  .hero__field,
  .hero__mark,
  .hero__orbit,
  .archive__texture {
    animation: none;
  }

  .presence img,
  .entry i {
    transition: none;
  }
}
