/* =========================================================================
   ClayEntertainment.com — v2
   Built on the v13 layout: hero photograph, parent-house wordmark,
   gilt thread, and a typographic grid of holdings beneath.
   ========================================================================= */

@font-face {
  font-family: "Archivo";
  src: url("fonts/Archivo-VariableFont_wdth_wght.ttf") format("truetype-variations");
  font-weight: 100 900;
  font-stretch: 62.5% 125%;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("fonts/InstrumentSans-VariableFont_wdth_wght.ttf") format("truetype-variations");
  font-weight: 400 700;
  font-stretch: 75% 100%;
  font-style: normal;
  font-display: swap;
}

@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400;1,500;1,600&family=Jost:wght@200;300;400;500&display=swap");

:root {
  /* Palette: deep ink, paper, gilt thread */
  --night:    #0B0907;       /* deeper than v13's, more black */
  --night-2:  #14110D;
  --paper:    #F0E8D8;       /* warm off-white text on dark */
  --paper-2:  #D4C4A8;
  --paper-3:  #8A7A68;       /* metadata */
  --gilt:     #C8A86A;       /* warm gilt accent */
  --gilt-2:   #E8D5B0;       /* highlight */
  --rule:     rgba(240, 232, 216, 0.10);
  --rule-2:   rgba(240, 232, 216, 0.18);

  --serif: "Cormorant Garamond", "Fraunces", ui-serif, Georgia, serif;
  --sans:  "Jost", "Instrument Sans", ui-sans-serif, system-ui, sans-serif;

  --margin: clamp(24px, 5vw, 88px);
}

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

html, body {
  width: 100%;
  min-height: 100%;
  background: var(--night);
  color: var(--paper);
  font-family: var(--sans);
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection { background: var(--gilt); color: var(--night); }
a { color: inherit; text-decoration: none; }

/* =========================================================================
   NAVIGATION
   ========================================================================= */

.nav {
  position: absolute;
  top: 0; left: 0; right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2.5rem var(--margin);
  z-index: 10;
  animation: fadein 1.4s ease both;
}
.nav-wordmark {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--paper);
}
.nav-meta {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 0.7rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--paper-2);
}
.nav-meta .dot {
  display: inline-block;
  width: 3px; height: 3px;
  border-radius: 50%;
  background: var(--gilt);
  vertical-align: middle;
  margin: 0 0.8rem;
  position: relative; top: -2px;
}

@media (max-width: 720px) {
  .nav { padding: 1.5rem 1.5rem; }
  .nav-meta { display: none; }
}

/* =========================================================================
   HERO
   ========================================================================= */

.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 720px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 30%;
  filter: brightness(0.42) saturate(0.85) contrast(1.05);
  transform: scale(1.04);
  animation: slowdrift 22s ease-in-out infinite alternate;
}
@keyframes slowdrift {
  from { transform: scale(1.04) translateY(0); }
  to   { transform: scale(1.04) translateY(-14px); }
}

.vignette {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at center, transparent 18%, rgba(8, 6, 4, 0.55) 100%),
    linear-gradient(to bottom, rgba(8,6,4,0.45) 0%, transparent 22%, transparent 55%, rgba(8,6,4,0.92) 100%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 0 var(--margin);
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 1100px;
}

.hero-eyebrow {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 0.7rem;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: var(--paper-2);
  margin-bottom: 2.4rem;
  animation: fadein 1.6s ease 0.2s both;
  display: flex;
  align-items: center;
  gap: 1.2rem;
}
.hero-eyebrow::before,
.hero-eyebrow::after {
  content: "";
  display: block;
  width: 28px; height: 1px;
  background: var(--gilt);
  opacity: 0.7;
}

.headline {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(3rem, 7.2vw, 6.6rem);
  line-height: 1.0;
  letter-spacing: 0.005em;
  color: var(--paper);
  text-wrap: balance;
  animation: fadein 1.8s ease 0.4s both;
  text-shadow: 0 2px 60px rgba(0,0,0,0.55);
}
.headline em {
  font-style: italic;
  font-weight: 400;
  color: var(--gilt-2);
}

.rule-thread {
  width: 44px;
  height: 1px;
  background: var(--gilt);
  opacity: 0.85;
  margin: 2.4rem auto;
  animation: fadein 1.8s ease 0.6s both;
}

.subline {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  color: var(--paper-2);
  line-height: 2;
  max-width: 520px;
  animation: fadein 1.8s ease 0.8s both;
}

.scroll-cue {
  position: absolute;
  bottom: 2.4rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  font-family: var(--sans);
  font-weight: 300;
  font-size: 0.65rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--paper-3);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  animation: fadein 2.4s ease 1.4s both;
}
.scroll-cue .stem {
  width: 1px;
  height: 32px;
  background: linear-gradient(to bottom, var(--gilt) 0%, transparent 100%);
  animation: stem-drop 2.6s ease-in-out infinite;
}
@keyframes stem-drop {
  0%, 100% { transform: scaleY(0.6); transform-origin: top; opacity: 0.4; }
  50%      { transform: scaleY(1);   transform-origin: top; opacity: 1; }
}

.bottom-bar {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(to right,
    transparent 0%,
    var(--gilt) 30%,
    var(--gilt-2) 50%,
    var(--gilt) 70%,
    transparent 100%);
  opacity: 0.5;
}

/* =========================================================================
   COMPANIES / ROSTER
   ========================================================================= */

.companies {
  background: var(--night);
  padding: clamp(5rem, 10vw, 8rem) var(--margin);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.section-label {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 0.68rem;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--paper-2);
  margin-bottom: 1.4rem;
  display: flex;
  align-items: center;
  gap: 1.6rem;
}
.section-label::before,
.section-label::after {
  content: "";
  display: block;
  width: 44px; height: 1px;
  background: var(--gilt);
  opacity: 0.7;
}

.section-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  line-height: 1.15;
  letter-spacing: 0.005em;
  color: var(--paper);
  text-align: center;
  max-width: 24ch;
  text-wrap: balance;
  margin-bottom: 0.8rem;
}
.section-title em { font-style: italic; font-weight: 300; color: var(--gilt-2); }

.section-blurb {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: var(--paper-3);
  text-align: center;
  max-width: 52ch;
  line-height: 1.85;
  margin-bottom: 4rem;
}

.row {
  display: grid;
  gap: 0;
  width: 100%;
  max-width: 1080px;
}
.row-3 {
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--rule);
}
.row-2 {
  grid-template-columns: repeat(2, 1fr);
  border-left: 1px solid var(--rule);
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.entity-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  padding: 3.4rem 2.5rem;
  min-height: 220px;
  border-right: 1px solid var(--rule);
  position: relative;
  transition: background 0.5s ease;
  gap: 1.2rem;
}
.row-3 .entity-card:last-child,
.row-2 .entity-card:last-child {
  border-right: none;
}

.entity-card:hover {
  background: rgba(200, 168, 106, 0.04);
}
.entity-card::after {
  content: "";
  position: absolute;
  inset: auto 32px 24px 32px;
  height: 1px;
  background: var(--gilt);
  opacity: 0;
  transform: scaleX(0.4);
  transform-origin: center;
  transition: opacity 0.5s ease, transform 0.6s ease;
}
.entity-card:hover::after {
  opacity: 0.55;
  transform: scaleX(1);
}

.entity-logo {
  display: block;
  max-width: 170px;
  max-height: 78px;
  width: auto;
  height: auto;
  object-fit: contain;
  opacity: 0.78;
  transition: opacity 0.4s ease;
  filter: brightness(1.05);
}
.entity-card:hover .entity-logo { opacity: 1; }

.entity-tag {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 0.62rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--paper-3);
  transition: color 0.4s ease;
}
.entity-card:hover .entity-tag { color: var(--gilt); }

@media (max-width: 760px) {
  .row-3, .row-2 {
    grid-template-columns: 1fr;
    border: 1px solid var(--rule);
    margin-top: -1px;
  }
  .entity-card {
    border-right: none !important;
    border-bottom: 1px solid var(--rule);
    min-height: 160px;
  }
  .entity-card:last-child { border-bottom: none; }
}

/* =========================================================================
   STATEMENT (manifesto block, post-roster)
   ========================================================================= */

.statement {
  background: var(--night);
  padding: clamp(5rem, 9vw, 7rem) var(--margin);
  border-top: 1px solid var(--rule);
  display: flex;
  justify-content: center;
}
.statement-inner {
  max-width: 720px;
  text-align: center;
}
.statement-quote {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.5rem, 2.8vw, 2.1rem);
  line-height: 1.45;
  color: var(--paper);
  margin-bottom: 2rem;
  text-wrap: balance;
}
.statement-quote::before { content: "“"; color: var(--gilt); margin-right: 0.05em; }
.statement-quote::after  { content: "”"; color: var(--gilt); margin-left: 0.05em; }

.statement-attribution {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 0.7rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--paper-3);
}
.statement-attribution::before {
  content: "";
  display: inline-block;
  width: 24px; height: 1px;
  background: var(--gilt);
  vertical-align: middle;
  margin-right: 1rem;
  position: relative; top: -2px;
}

/* =========================================================================
   FOOTER
   ========================================================================= */

.footer {
  background: #07060438;
  background-color: #070604;
  border-top: 1px solid var(--rule);
  padding: 2.4rem var(--margin);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-mark {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 0.95rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--paper-3);
}
.footer-links {
  display: flex;
  gap: 2rem;
  font-family: var(--sans);
  font-weight: 300;
  font-size: 0.65rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--paper-3);
}
.footer-links a { transition: color 0.3s ease; }
.footer-links a:hover { color: var(--gilt); }
.footer-copy {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 0.62rem;
  letter-spacing: 0.28em;
  color: var(--paper-3);
}

@media (max-width: 720px) {
  .footer { flex-direction: column; text-align: center; gap: 1.2rem; }
}

/* =========================================================================
   ANIMATIONS
   ========================================================================= */

@keyframes fadein {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* =========================================================================
   TWEAKS PANEL POLISH
   ========================================================================= */

[data-tweaks-panel] { font-family: var(--sans) !important; }
