/* ==========================================================================
   THR3 Creative — void chrome · molten gold · blood copper
   Palette aligned with thr3.net; layout tuned for readable content.
   ========================================================================== */

:root {
  --void: #050000;
  --abyss: #0a0002;
  --blood: #300000;
  --ember: #701000;
  --copper: #a04018;
  --amber: #e0a020;
  --gold: #f0dc40;
  --flare: #ffff60;
  --bone: #e8e0d4;
  --bone-dim: #b8b0a4;
  --mist: #7a7268;
  --soft-gold: rgba(240, 220, 64, 0.35);
  --soft-ember: rgba(160, 40, 16, 0.4);
  --panel: rgba(12, 2, 2, 0.72);
  --panel-border: rgba(240, 200, 48, 0.14);
  --font-display: "Bebas Neue", "Impact", system-ui, sans-serif;
  --font-serif: "Libre Baskerville", Georgia, serif;
  --font-body: "Outfit", system-ui, sans-serif;
  --nav-h: 4.25rem;
  --max: 72rem;
  --max-wide: 88rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --radius: 14px;
  --shadow: 0 28px 70px rgba(0, 0, 0, 0.55);
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 0.75rem);
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  font-family: var(--font-body);
  background: var(--void);
  color: var(--bone-dim);
  line-height: 1.65;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--gold);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  transition: color 0.25s var(--ease), opacity 0.25s var(--ease);
}

a:hover {
  color: var(--flare);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 10000;
  padding: 0.65rem 1rem;
  background: var(--gold);
  color: var(--void);
  font-weight: 600;
  border-radius: 6px;
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
}

/* —— Void ambient layer —— */
#void {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 55% at 50% 20%, #1a0505 0%, transparent 55%),
    radial-gradient(ellipse 120% 80% at 50% 100%, #200808 0%, transparent 45%),
    radial-gradient(circle at 50% 40%, #120202 0%, var(--void) 72%);
  overflow: hidden;
}

#field {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

#aurora {
  position: absolute;
  inset: -25%;
  z-index: 0;
  background: conic-gradient(
    from 0deg at 50% 50%,
    transparent 0deg,
    rgba(112, 16, 0, 0.16) 40deg,
    transparent 80deg,
    rgba(240, 180, 32, 0.07) 120deg,
    transparent 160deg,
    rgba(80, 8, 0, 0.18) 200deg,
    transparent 240deg,
    rgba(224, 160, 32, 0.08) 280deg,
    transparent 320deg,
    rgba(48, 0, 0, 0.16) 360deg
  );
  filter: blur(52px);
  animation: spin-slow 60s linear infinite;
  opacity: 0.8;
}

@keyframes spin-slow {
  to {
    transform: rotate(360deg);
  }
}

#grain {
  position: absolute;
  inset: 0;
  z-index: 3;
  opacity: 0.055;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
  animation: grain-shift 0.45s steps(3) infinite;
}

@keyframes grain-shift {
  0% {
    transform: translate(0, 0);
  }
  33% {
    transform: translate(-1%, 1%);
  }
  66% {
    transform: translate(1%, -1%);
  }
  100% {
    transform: translate(0, 0);
  }
}

#vignette {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: radial-gradient(
    ellipse 70% 60% at 50% 40%,
    transparent 35%,
    rgba(0, 0, 0, 0.35) 75%,
    rgba(0, 0, 0, 0.75) 100%
  );
}

#bloom {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: radial-gradient(
    circle 32vmin at var(--mx, 50%) var(--my, 30%),
    rgba(240, 200, 48, 0.06),
    transparent 55%
  );
  mix-blend-mode: screen;
  transition: opacity 0.4s ease;
}

/* Content above void */
.site-header,
main,
.site-footer {
  position: relative;
  z-index: 10;
}

/* —— Header / nav —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  background: rgba(5, 0, 0, 0.72);
  border-bottom: 1px solid rgba(240, 200, 48, 0.08);
}

.nav {
  max-width: var(--max-wide);
  margin: 0 auto;
  height: 100%;
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--bone);
  filter: drop-shadow(0 0 10px rgba(160, 40, 16, 0.35));
}

.brand img {
  width: 2.5rem;
  height: auto;
  object-fit: contain;
}

.brand__text {
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.12em;
  line-height: 1;
}

.brand__text em {
  font-style: normal;
  color: var(--gold);
  font-weight: 400;
}

.nav-panel {
  display: flex;
  align-items: center;
  gap: 0.35rem 1.35rem;
}

.nav-panel a {
  color: var(--bone-dim);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.35rem 0;
  border-bottom: 1px solid transparent;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.nav-panel a:hover,
.nav-panel a.is-active {
  color: var(--gold);
  border-bottom-color: rgba(240, 200, 48, 0.45);
}

.nav-cta {
  padding: 0.45rem 0.95rem !important;
  border: 1px solid rgba(240, 200, 48, 0.4) !important;
  border-radius: 999px;
  color: var(--gold) !important;
  background: rgba(112, 16, 0, 0.25);
  box-shadow: 0 0 20px rgba(160, 40, 16, 0.2);
}

.nav-cta:hover {
  background: rgba(160, 40, 16, 0.35) !important;
  border-color: var(--gold) !important;
  color: var(--flare) !important;
}

.nav-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  background: transparent;
  border: 1px solid rgba(240, 200, 48, 0.25);
  border-radius: 8px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 1.15rem;
  height: 1.5px;
  background: var(--gold);
  transition: transform 0.25s var(--ease), opacity 0.2s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

@media (max-width: 760px) {
  .nav-toggle {
    display: flex;
  }

  .nav-panel {
    position: fixed;
    inset: var(--nav-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.75rem 1.25rem 1.25rem;
    background: rgba(5, 0, 0, 0.94);
    border-bottom: 1px solid rgba(240, 200, 48, 0.12);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.35s var(--ease), opacity 0.3s ease;
  }

  .nav-panel.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-panel a {
    padding: 0.85rem 0;
    border-bottom: 1px solid rgba(240, 200, 48, 0.08);
  }

  .nav-cta {
    text-align: center;
    margin-top: 0.5rem;
  }
}

/* —— Layout helpers —— */
.container {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

.section {
  padding: clamp(4rem, 10vw, 7rem) 0;
  content-visibility: auto;
  contain-intrinsic-size: auto 600px;
}

.section-head {
  max-width: 40rem;
  margin-bottom: clamp(2rem, 5vw, 3.25rem);
}

.eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--copper);
  font-weight: 500;
  margin-bottom: 0.65rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  letter-spacing: 0.06em;
  color: var(--bone);
  line-height: 1.05;
  font-weight: 400;
}

.section-lead {
  margin-top: 0.85rem;
  color: var(--mist);
  font-size: 1.05rem;
  max-width: 36rem;
}

.divider {
  width: 3rem;
  height: 2px;
  margin: 1.1rem 0 1.35rem;
  background: linear-gradient(90deg, var(--gold), transparent);
  box-shadow: 0 0 12px rgba(240, 200, 48, 0.4);
}

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.35rem;
  border-radius: 999px;
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.25s, border-color 0.25s, box-shadow 0.25s;
}

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

.btn--primary {
  background: linear-gradient(135deg, rgba(160, 40, 16, 0.85), rgba(112, 16, 0, 0.95));
  border-color: rgba(240, 200, 48, 0.45);
  color: var(--bone);
  box-shadow:
    0 0 0 1px rgba(240, 200, 48, 0.08),
    0 12px 40px rgba(112, 16, 0, 0.35),
    inset 0 1px 0 rgba(255, 240, 120, 0.12);
}

.btn--primary:hover {
  color: var(--flare);
  border-color: var(--gold);
  box-shadow:
    0 0 28px rgba(240, 200, 48, 0.2),
    0 14px 44px rgba(112, 16, 0, 0.45);
}

.btn--ghost {
  background: transparent;
  border-color: rgba(240, 200, 48, 0.28);
  color: var(--bone-dim);
}

.btn--ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(240, 200, 48, 0.05);
}

/* —— Hero —— */
.hero {
  position: relative;
  min-height: calc(100vh - var(--nav-h));
  min-height: calc(100dvh - var(--nav-h));
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3rem);
  width: min(100% - 2.5rem, var(--max-wide));
  margin: 0 auto;
  padding: clamp(2rem, 6vw, 4rem) 0 clamp(4rem, 8vw, 6rem);
}

.hero__orbit {
  position: relative;
  width: min(72vmin, 420px);
  height: min(72vmin, 420px);
  margin: 0 auto;
  perspective: 900px;
}

.sigil {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(48vmin, 280px);
  height: min(36vmin, 210px);
  transform: translate(-50%, -50%) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transform-style: preserve-3d;
  transition: transform 0.12s ease-out;
  filter:
    drop-shadow(0 0 12px rgba(112, 16, 0, 0.55))
    drop-shadow(0 0 40px rgba(240, 200, 48, 0.18));
  animation: float-sigil 6.66s ease-in-out infinite;
  will-change: transform;
}

.sigil img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  animation: pulse-glow 3.33s ease-in-out infinite;
}

.sigil .core {
  position: absolute;
  left: 50%;
  top: 48%;
  width: 14%;
  height: 18%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 120, 0.55) 0%, rgba(240, 180, 32, 0.15) 45%, transparent 70%);
  filter: blur(4px);
  mix-blend-mode: screen;
  animation: core-breathe 3.33s ease-in-out infinite;
}

@keyframes float-sigil {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -10px;
  }
}

@keyframes pulse-glow {
  0%,
  100% {
    filter: brightness(1) contrast(1.05);
  }
  50% {
    filter: brightness(1.12) contrast(1.1);
  }
}

@keyframes core-breathe {
  0%,
  100% {
    opacity: 0.55;
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.35);
  }
}

.halo {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 70%;
  height: 70%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px solid rgba(160, 40, 16, 0.25);
  box-shadow:
    0 0 30px rgba(112, 16, 0, 0.25),
    inset 0 0 40px rgba(240, 160, 32, 0.04);
  animation: halo-spin 22s linear infinite;
}

.halo.delay {
  width: 88%;
  height: 88%;
  border-color: rgba(240, 200, 48, 0.12);
  animation-duration: 33s;
  animation-direction: reverse;
}

.halo.delay2 {
  width: 100%;
  height: 100%;
  border-color: rgba(80, 8, 0, 0.35);
  border-style: dashed;
  animation-duration: 48s;
}

@keyframes halo-spin {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

.ring {
  position: absolute;
  left: 50%;
  top: 50%;
  border-radius: 50%;
  border: 1px solid transparent;
  opacity: 0.4;
}

.ring.r1 {
  width: 58%;
  height: 58%;
  transform: translate(-50%, -50%) rotateX(68deg);
  border-color: rgba(160, 40, 16, 0.35);
  animation: ring-tilt 9s ease-in-out infinite;
}

.ring.r2 {
  width: 72%;
  height: 72%;
  transform: translate(-50%, -50%) rotateY(62deg);
  border-color: rgba(240, 180, 32, 0.18);
  animation: ring-tilt 12s ease-in-out infinite reverse;
}

.ring.r3 {
  width: 84%;
  height: 84%;
  transform: translate(-50%, -50%) rotateX(50deg) rotateZ(30deg);
  border-color: rgba(112, 16, 0, 0.3);
  animation: ring-tilt 15s linear infinite;
}

@keyframes ring-tilt {
  0%,
  100% {
    opacity: 0.25;
  }
  50% {
    opacity: 0.55;
  }
}

.hero__copy {
  max-width: 34rem;
}

.display {
  font-family: var(--font-display);
  font-size: clamp(3.4rem, 9vw, 5.5rem);
  letter-spacing: 0.08em;
  line-height: 0.95;
  color: var(--bone);
  font-weight: 400;
  text-shadow: 0 0 40px rgba(160, 40, 16, 0.35);
}

.display span {
  color: var(--gold);
  display: inline-block;
}

.byline {
  margin-top: 0.75rem;
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--mist);
  font-size: 1.05rem;
}

.byline a {
  color: var(--bone-dim);
  text-decoration: none;
  border-bottom: 1px solid rgba(240, 200, 48, 0.25);
}

.byline a:hover {
  color: var(--gold);
}

.lead {
  margin-top: 1.25rem;
  font-size: 1.08rem;
  color: var(--bone-dim);
  max-width: 32rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.hero__meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2.25rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(240, 200, 48, 0.12);
}

.hero__meta dt {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 0.25rem;
}

.hero__meta dd {
  color: var(--bone);
  font-size: 0.95rem;
  font-weight: 500;
}

.scroll-hint {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.68rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--mist);
  opacity: 0.7;
}

.scroll-hint i {
  display: block;
  width: 1px;
  height: 2rem;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scroll-line 1.8s ease-in-out infinite;
}

@keyframes scroll-line {
  0%,
  100% {
    opacity: 0.3;
    transform: scaleY(0.7);
  }
  50% {
    opacity: 1;
    transform: scaleY(1);
  }
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    min-height: auto;
    padding-top: 2rem;
  }

  .hero__copy {
    margin: 0 auto;
  }

  .lead {
    margin-inline: auto;
  }

  .hero__actions {
    justify-content: center;
  }

  .hero__meta {
    text-align: left;
  }

  .scroll-hint {
    display: none;
  }
}

/* —— Work cards —— */
.works-grid {
  display: grid;
  gap: clamp(1.75rem, 4vw, 2.5rem);
}

.work-card {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 0;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: border-color 0.3s var(--ease), transform 0.35s var(--ease), box-shadow 0.35s;
}

.work-card:hover {
  border-color: rgba(240, 200, 48, 0.32);
  transform: translateY(-3px);
  box-shadow:
    0 32px 80px rgba(0, 0, 0, 0.6),
    0 0 40px rgba(112, 16, 0, 0.2);
}

.work-card__media {
  position: relative;
  min-height: 16rem;
  background: var(--abyss);
  overflow: hidden;
}

.work-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 16 / 9;
  transition: transform 0.7s var(--ease), filter 0.5s ease;
  filter: saturate(0.92) contrast(1.05);
}

.work-card:hover .work-card__media img {
  transform: scale(1.04);
  filter: saturate(1.05) contrast(1.08);
}

.work-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 55%, rgba(5, 0, 0, 0.55) 100%);
  pointer-events: none;
}

.work-card__badge {
  position: absolute;
  left: 1rem;
  top: 1rem;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.badge {
  display: inline-block;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  background: rgba(5, 0, 0, 0.72);
  border: 1px solid rgba(240, 200, 48, 0.25);
  color: var(--bone-dim);
  backdrop-filter: blur(8px);
}

.badge--gold {
  color: var(--void);
  background: linear-gradient(135deg, var(--gold), var(--amber));
  border-color: transparent;
  box-shadow: 0 0 18px rgba(240, 200, 48, 0.35);
}

.work-card__body {
  padding: clamp(1.35rem, 3vw, 2rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.65rem;
}

.work-card__meta {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--copper);
}

.work-card__title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3vw, 2.4rem);
  letter-spacing: 0.06em;
  color: var(--bone);
  font-weight: 400;
  line-height: 1.05;
}

.work-card__pitch {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--bone-dim);
}

.work-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  list-style: none;
  margin-top: 0.25rem;
}

.work-card__tags li {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.25rem 0.55rem;
  border-radius: 4px;
  border: 1px solid rgba(240, 200, 48, 0.12);
  color: var(--mist);
}

.work-card__cta {
  margin-top: 0.5rem;
  align-self: flex-start;
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: var(--gold);
  border-bottom: 1px solid rgba(240, 200, 48, 0.35);
  padding-bottom: 0.1rem;
}

.work-card__cta:hover {
  color: var(--flare);
  border-bottom-color: var(--flare);
}

/* Alternating visual rhythm on wide screens */
.work-card:nth-child(even) {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
}

.work-card:nth-child(even) .work-card__media {
  order: 2;
}

.work-card:nth-child(even) .work-card__media::after {
  background: linear-gradient(270deg, transparent 55%, rgba(5, 0, 0, 0.55) 100%);
}

@media (max-width: 800px) {
  .work-card,
  .work-card:nth-child(even) {
    grid-template-columns: 1fr;
  }

  .work-card:nth-child(even) .work-card__media {
    order: 0;
  }

  .work-card__media::after,
  .work-card:nth-child(even) .work-card__media::after {
    background: linear-gradient(180deg, transparent 50%, rgba(5, 0, 0, 0.65) 100%);
  }
}

/* —— Accolades —— */
.accolades {
  background: linear-gradient(180deg, transparent, rgba(48, 0, 0, 0.25), transparent);
}

.accolade-list {
  list-style: none;
  display: grid;
  gap: 1rem;
}

.accolade {
  display: grid;
  grid-template-columns: 5rem 1fr;
  gap: 1.25rem;
  align-items: start;
  padding: 1.25rem 1.4rem;
  border: 1px solid rgba(240, 200, 48, 0.1);
  border-radius: var(--radius);
  background: rgba(10, 0, 2, 0.55);
  transition: border-color 0.25s;
}

.accolade:hover {
  border-color: rgba(240, 200, 48, 0.28);
}

.accolade__year {
  font-family: var(--font-display);
  font-size: 1.6rem;
  letter-spacing: 0.06em;
  color: var(--gold);
  line-height: 1;
  text-shadow: 0 0 16px rgba(240, 200, 48, 0.3);
}

.accolade__body h3 {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--bone);
  font-weight: 400;
  margin-bottom: 0.35rem;
}

.accolade__body h3 cite {
  font-style: italic;
}

.accolade__body p {
  color: var(--bone-dim);
  font-size: 0.95rem;
}

.accolade__body a {
  text-decoration: none;
  border-bottom: 1px solid rgba(240, 200, 48, 0.25);
}

/* —— About —— */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.2fr);
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
}

.about-portrait {
  position: relative;
  max-width: 26rem;
  margin: 0 auto;
}

.about-portrait__frame {
  position: absolute;
  inset: -0.6rem;
  border: 1px solid rgba(240, 200, 48, 0.22);
  border-radius: calc(var(--radius) + 4px);
  box-shadow:
    0 0 40px rgba(112, 16, 0, 0.25),
    inset 0 0 30px rgba(240, 160, 32, 0.04);
  animation: frame-pulse 5s ease-in-out infinite;
  pointer-events: none;
}

@keyframes frame-pulse {
  0%,
  100% {
    opacity: 0.7;
  }
  50% {
    opacity: 1;
  }
}

.about-portrait img {
  width: 100%;
  border-radius: var(--radius);
  aspect-ratio: 1;
  object-fit: cover;
  filter: contrast(1.05) saturate(0.95);
  box-shadow: var(--shadow);
}

.about-copy p + p {
  margin-top: 1rem;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.stat {
  padding: 0.9rem 0.75rem;
  border: 1px solid rgba(240, 200, 48, 0.12);
  border-radius: 10px;
  background: rgba(5, 0, 0, 0.4);
  text-align: center;
}

.stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.75rem;
  letter-spacing: 0.06em;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 0.35rem;
}

.stat span {
  font-size: 0.75rem;
  color: var(--mist);
  letter-spacing: 0.04em;
}

@media (max-width: 800px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
}

/* —— Contact —— */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: start;
}

.contact-email {
  margin-top: 1.5rem;
  display: grid;
  gap: 0.35rem;
}

.contact-email__label {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--copper);
}

.contact-email__addr {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3vw, 1.9rem);
  letter-spacing: 0.06em;
  color: var(--gold);
  text-shadow: 0 0 24px rgba(240, 200, 48, 0.25);
  user-select: all;
}

.contact-email__addr .at {
  opacity: 0.85;
}

.contact-social {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: var(--mist);
}

.contact-social a {
  color: var(--bone-dim);
  text-decoration: none;
}

.contact-social a:hover {
  color: var(--gold);
}

.contact-form {
  display: grid;
  gap: 1rem;
  padding: clamp(1.25rem, 3vw, 1.75rem);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  background: var(--panel);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}

.field {
  display: grid;
  gap: 0.4rem;
}

.field label {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--copper);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border-radius: 8px;
  border: 1px solid rgba(240, 200, 48, 0.15);
  background: rgba(5, 0, 0, 0.55);
  color: var(--bone);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.field input:hover,
.field select:hover,
.field textarea:hover {
  border-color: rgba(240, 200, 48, 0.3);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: rgba(240, 200, 48, 0.55);
  box-shadow: 0 0 0 3px rgba(240, 200, 48, 0.1);
  outline: none;
}

.field textarea {
  resize: vertical;
  min-height: 8rem;
}

.field select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%),
    linear-gradient(135deg, var(--gold) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) calc(50% - 3px),
    calc(100% - 12px) calc(50% - 3px);
  background-size: 6px 6px;
  background-repeat: no-repeat;
  padding-right: 2.25rem;
}

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

.form-note {
  font-size: 0.82rem;
  color: var(--mist);
  line-height: 1.5;
}

.form-note:empty {
  display: none;
}

.form-note.is-error {
  color: #f0a080;
}

.form-note.is-ok {
  color: var(--gold);
}

@media (max-width: 800px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .stat-row {
    grid-template-columns: 1fr;
  }
}

/* —— Footer —— */
.site-footer {
  border-top: 1px solid rgba(240, 200, 48, 0.1);
  padding: 1.75rem 0 2.25rem;
  background: rgba(5, 0, 0, 0.55);
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand--footer {
  font-family: var(--font-display);
  letter-spacing: 0.1em;
  font-size: 1.1rem;
  text-decoration: none;
  color: var(--bone-dim);
}

.footer-copy {
  font-size: 0.82rem;
  color: var(--mist);
}

.footer-copy a {
  color: var(--bone-dim);
  text-decoration: none;
}

.to-top {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--copper);
}

.to-top:hover {
  color: var(--gold);
}

/* —— Reveal animations —— */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.7s var(--ease),
    transform 0.7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.reveal-delay {
  transition-delay: 0.1s;
}

.reveal-delay-2 {
  transition-delay: 0.2s;
}

/* ==========================================================================
   THR3 triad easter egg + creative progression (wow layer)
   ========================================================================== */

.hero__orbit {
  pointer-events: none;
}

.sigil {
  pointer-events: auto;
  cursor: pointer;
  outline: none;
}

.sigil:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 8px;
  border-radius: 12px;
}

/* Hidden triangle nodes around the sigil */
.triad-node {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 28px;
  height: 28px;
  margin: -14px 0 0 -14px;
  border: none;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(240, 200, 48, 0.05) 0%, transparent 70%);
  box-shadow: none;
  z-index: 12;
  pointer-events: auto;
  cursor: pointer;
  opacity: 1;
  transition:
    background 0.6s ease,
    box-shadow 1.2s ease,
    transform 0.4s ease;
  outline: none;
  -webkit-tap-highlight-color: transparent;
  animation: node-whisper 9.99s ease-in-out infinite;
}

.triad-node::after {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  border: 1px solid rgba(240, 200, 48, 0.05);
  opacity: 0.5;
}

.triad-node.near {
  background: radial-gradient(circle, rgba(255, 220, 64, 0.22) 0%, transparent 72%);
  box-shadow: 0 0 18px rgba(240, 200, 48, 0.15);
  transform: scale(1.35);
  animation: none;
}

.triad-node.lit {
  background: radial-gradient(circle, rgba(255, 240, 96, 0.85) 0%, rgba(224, 120, 24, 0.35) 40%, transparent 72%);
  box-shadow:
    0 0 24px rgba(255, 240, 96, 0.55),
    0 0 60px rgba(160, 40, 16, 0.4);
  transform: scale(1.5);
  animation: node-lit-pulse 1.11s ease-in-out infinite;
}

@keyframes node-whisper {
  0%,
  90%,
  100% {
    filter: brightness(1);
  }
  93% {
    filter: brightness(2.4);
  }
  96% {
    filter: brightness(1);
  }
}

@keyframes node-lit-pulse {
  0%,
  100% {
    filter: brightness(1);
  }
  50% {
    filter: brightness(1.45);
  }
}

#tri-lines {
  position: absolute;
  inset: 0;
  z-index: 11;
  pointer-events: none;
}

#tri-lines svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

#tri-lines line {
  stroke: rgba(240, 200, 48, 0.55);
  stroke-width: 1.25;
  stroke-linecap: round;
  filter: drop-shadow(0 0 6px rgba(255, 220, 64, 0.6));
  stroke-dasharray: 8 6;
  animation: dash-flow 1.5s linear infinite;
}

@keyframes dash-flow {
  to {
    stroke-dashoffset: -28;
  }
}

.triad-whisper {
  position: absolute;
  left: 50%;
  bottom: -0.25rem;
  transform: translateX(-50%);
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(240, 200, 48, 0.55);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.6s ease;
  text-shadow: 0 0 12px rgba(160, 40, 16, 0.4);
  z-index: 14;
}

.triad-whisper.is-on {
  opacity: 1;
}

/* Full-screen reveal layer (mandala / clones / beams) */
#reveal {
  position: fixed;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.2s ease;
}

body.thr3-revealed #reveal {
  opacity: 1;
}

#reveal .mandala {
  position: absolute;
  left: 50%;
  top: 42%;
  width: min(90vmin, 720px);
  height: min(90vmin, 720px);
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background:
    repeating-conic-gradient(
      from 0deg,
      rgba(240, 200, 48, 0.06) 0deg 2deg,
      transparent 2deg 40deg
    ),
    radial-gradient(circle, transparent 28%, rgba(112, 16, 0, 0.25) 45%, transparent 70%);
  animation: mandala-spin 18s linear infinite;
  mask-image: radial-gradient(circle, black 20%, transparent 72%);
  -webkit-mask-image: radial-gradient(circle, black 20%, transparent 72%);
}

@keyframes mandala-spin {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

#reveal .clone {
  position: absolute;
  left: 50%;
  top: 42%;
  width: min(22vmin, 150px);
  height: min(16.5vmin, 112px);
  margin: calc(min(16.5vmin, 112px) / -2) 0 0 calc(min(22vmin, 150px) / -2);
  background: url("../assets/images/thr3-logo.png") center / contain no-repeat;
  filter: drop-shadow(0 0 16px rgba(240, 200, 48, 0.45));
  opacity: 0.85;
  animation: orbit-clone 9.99s linear infinite;
  transform-origin: center center;
}

#reveal .clone:nth-child(2) {
  animation-delay: -3.33s;
  filter: drop-shadow(0 0 16px rgba(160, 40, 16, 0.55)) hue-rotate(-8deg);
}

#reveal .clone:nth-child(3) {
  animation-delay: -6.66s;
  filter: drop-shadow(0 0 16px rgba(255, 220, 64, 0.4)) hue-rotate(12deg);
}

/* Genre-tinted orbiting clones after trilogy */
body.thr3-trilogy #reveal .clone:nth-child(1) {
  filter: drop-shadow(0 0 18px rgba(224, 120, 48, 0.7)) saturate(1.2);
}
body.thr3-trilogy #reveal .clone:nth-child(2) {
  filter: drop-shadow(0 0 18px rgba(240, 220, 64, 0.75)) hue-rotate(8deg);
}
body.thr3-trilogy #reveal .clone:nth-child(3) {
  filter: drop-shadow(0 0 18px rgba(180, 80, 255, 0.55)) hue-rotate(260deg);
}

@keyframes orbit-clone {
  from {
    transform: rotate(0deg) translateX(min(28vmin, 200px)) rotate(0deg) scale(0.72);
  }
  to {
    transform: rotate(360deg) translateX(min(28vmin, 200px)) rotate(-360deg) scale(0.72);
  }
}

#reveal .beam {
  position: absolute;
  left: 50%;
  top: 42%;
  width: 2px;
  height: 38vmin;
  margin-left: -1px;
  background: linear-gradient(to top, transparent, rgba(255, 240, 96, 0.55), transparent);
  transform-origin: bottom center;
  filter: blur(0.5px);
  opacity: 0.7;
}

body.thr3-revealed .sigil {
  filter:
    drop-shadow(0 0 20px rgba(255, 240, 96, 0.65))
    drop-shadow(0 0 60px rgba(160, 40, 16, 0.55));
  animation: float-sigil 3.33s ease-in-out infinite, reveal-throb 3.33s ease-in-out infinite;
}

@keyframes reveal-throb {
  0%,
  100% {
    filter:
      drop-shadow(0 0 20px rgba(255, 240, 96, 0.55))
      drop-shadow(0 0 50px rgba(160, 40, 16, 0.45));
  }
  50% {
    filter:
      drop-shadow(0 0 32px rgba(255, 250, 140, 0.85))
      drop-shadow(0 0 80px rgba(200, 60, 20, 0.65));
  }
}

body.thr3-revealed .halo {
  border-color: rgba(240, 200, 48, 0.45);
  box-shadow:
    0 0 50px rgba(240, 200, 48, 0.25),
    inset 0 0 60px rgba(255, 200, 48, 0.08);
}

body.thr3-revealed #aurora {
  animation-duration: 18s;
  opacity: 1;
  filter: blur(36px) saturate(1.45);
}

body.thr3-revealed .brand img {
  animation: brand-glow 3.33s ease-in-out infinite;
}

@keyframes brand-glow {
  0%,
  100% {
    filter: drop-shadow(0 0 4px rgba(160, 40, 16, 0.3));
  }
  50% {
    filter: drop-shadow(0 0 14px rgba(240, 200, 48, 0.65));
  }
}

/* Flash + ripples */
.burst-flash {
  position: fixed;
  inset: 0;
  z-index: 40;
  pointer-events: none;
  background: radial-gradient(
    circle at 50% 40%,
    rgba(255, 250, 180, 0.85),
    rgba(160, 40, 16, 0.4) 35%,
    transparent 70%
  );
  animation: flash-out 1.4s ease-out forwards;
}

@keyframes flash-out {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

.ripple {
  position: fixed;
  border-radius: 50%;
  border: 1px solid rgba(240, 200, 48, 0.55);
  pointer-events: none;
  z-index: 15;
  transform: translate(-50%, -50%) scale(0);
  animation: ripple-out 0.9s ease-out forwards;
}

@keyframes ripple-out {
  to {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0;
    border-color: rgba(160, 40, 16, 0);
  }
}

/* —— Site progression / genre affinity —— */
body.theme-mars #aurora {
  filter: blur(48px) hue-rotate(-12deg) saturate(1.3);
  opacity: 0.95;
}
body.theme-mars .work-card[data-genre="sci-fi"] {
  border-color: rgba(224, 120, 48, 0.55);
  box-shadow: 0 28px 70px rgba(80, 20, 0, 0.55), 0 0 40px rgba(200, 80, 20, 0.2);
}

body.theme-comedy #aurora {
  filter: blur(48px) hue-rotate(18deg) saturate(1.25) brightness(1.05);
}
body.theme-comedy .work-card[data-genre="comedy"] {
  border-color: rgba(240, 220, 64, 0.55);
  box-shadow: 0 28px 70px rgba(40, 30, 0, 0.5), 0 0 40px rgba(240, 200, 48, 0.22);
}

body.theme-fantasy #aurora {
  filter: blur(48px) hue-rotate(260deg) saturate(1.35);
}
body.theme-fantasy .work-card[data-genre="fantasy"] {
  border-color: rgba(180, 100, 255, 0.45);
  box-shadow: 0 28px 70px rgba(40, 0, 60, 0.5), 0 0 40px rgba(160, 80, 255, 0.2);
}

/* Work cards light up as “seen” in the trilogy */
.work-card.is-seen {
  border-color: rgba(240, 200, 48, 0.35);
}
.work-card.is-seen::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(240, 200, 48, 0.2);
  z-index: 3;
}
.work-card {
  position: relative;
}

body.thr3-trilogy .work-card {
  animation: card-sheen 6s ease-in-out infinite;
}
body.thr3-trilogy .work-card:nth-child(2) {
  animation-delay: 2s;
}
body.thr3-trilogy .work-card:nth-child(3) {
  animation-delay: 4s;
}

@keyframes card-sheen {
  0%,
  100% {
    box-shadow: var(--shadow);
  }
  50% {
    box-shadow:
      0 32px 80px rgba(0, 0, 0, 0.6),
      0 0 36px rgba(240, 200, 48, 0.18);
  }
}

/* Ultimate: triad + trilogy + contact path */
body.thr3-ultimate #void {
  background:
    radial-gradient(ellipse 80% 55% at 50% 20%, #2a0a08 0%, transparent 55%),
    radial-gradient(ellipse 120% 80% at 50% 100%, #301010 0%, transparent 45%),
    radial-gradient(circle at 50% 40%, #1a0404 0%, var(--void) 72%);
}
body.thr3-ultimate .display span {
  animation: gold-shimmer 2.5s ease-in-out infinite;
  background: linear-gradient(90deg, var(--amber), var(--flare), var(--gold), var(--amber));
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
@keyframes gold-shimmer {
  to {
    background-position: 200% center;
  }
}
body.thr3-ultimate .hero__meta dd {
  color: var(--gold);
  text-shadow: 0 0 12px rgba(240, 200, 48, 0.35);
}
body.thr3-ultimate .site-header {
  border-bottom-color: rgba(240, 200, 48, 0.28);
  box-shadow: 0 0 40px rgba(112, 16, 0, 0.25);
}

/* Progress tri-dots fixed corner (subtle) */
.progress-tri {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 90;
  display: flex;
  gap: 0.45rem;
  padding: 0.45rem 0.65rem;
  border-radius: 999px;
  background: rgba(5, 0, 0, 0.55);
  border: 1px solid rgba(240, 200, 48, 0.12);
  backdrop-filter: blur(10px);
  pointer-events: none;
  opacity: 0.55;
  transition: opacity 0.4s, border-color 0.4s;
}
.progress-tri.is-hot {
  opacity: 1;
  border-color: rgba(240, 200, 48, 0.4);
}
.progress-tri span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(240, 200, 48, 0.15);
  box-shadow: inset 0 0 0 1px rgba(240, 200, 48, 0.2);
  transition: background 0.4s, box-shadow 0.4s, transform 0.35s;
}
.progress-tri span.on {
  background: var(--gold);
  box-shadow: 0 0 10px rgba(240, 200, 48, 0.65);
  transform: scale(1.15);
}
.progress-tri span.genre {
  /* second row meaning: works seen — reuse same 3 dots via class mix */
}
@media (max-width: 600px) {
  .progress-tri {
    right: 0.65rem;
    bottom: 0.65rem;
    opacity: 0.4;
  }
}

/* Toast when triad unlocks */
.thr3-toast {
  position: fixed;
  left: 50%;
  bottom: 4.5rem;
  transform: translateX(-50%) translateY(12px);
  z-index: 100;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  background: rgba(12, 2, 2, 0.88);
  border: 1px solid rgba(240, 200, 48, 0.4);
  color: var(--gold);
  font-family: var(--font-display);
  letter-spacing: 0.16em;
  font-size: 0.95rem;
  text-transform: uppercase;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), 0 0 30px rgba(160, 40, 16, 0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease, transform 0.5s var(--ease);
}
.thr3-toast.is-on {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  #aurora,
  #grain,
  .sigil,
  .halo,
  .ring,
  .scroll-hint i,
  .about-portrait__frame,
  .triad-node,
  #tri-lines line,
  #reveal .mandala,
  #reveal .clone,
  .progress-tri span,
  body.thr3-trilogy .work-card,
  body.thr3-ultimate .display span,
  body.thr3-revealed .brand img {
    animation: none !important;
  }

  #reveal {
    opacity: 0 !important;
  }
}

/* High contrast / forced colors */
@media (forced-colors: active) {
  .work-card,
  .accolade,
  .contact-form,
  .badge {
    border: 1px solid CanvasText;
  }
}
