/* =========================================================================
   Reapers of Chaos — theme.css
   Recreates the pages 1:1 as real, cascade-safe
   CSS classes (no theme framework opinions, no ACF). Every inline style
   and style-hover="" attribute from the source has a home here.
   ========================================================================= */

/* ---------- Base / reset ------------------------------------------------ */

html, body {
  margin: 0;
  padding: 0;
  background: #07060d;
}

body {
  font-family: Karla, sans-serif;
  color: #cbc7d8;
  -webkit-font-smoothing: antialiased;
}

img { border: 0; }

a {
  color: #b892ff;
  text-decoration: none;
}
a:hover { color: #ffffff; }

::selection { background: #a06bff; color: #07060d; }

/* ---------- Keyframes ---------------------------------------------------- */

@keyframes roc-slidein {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

@keyframes roc-breathe {
  0%, 100% { opacity: .85; filter: drop-shadow(0 0 34px rgba(160,107,255,.35)); }
  50%      { opacity: 1;   filter: drop-shadow(0 0 60px rgba(160,107,255,.6)); }
}

@keyframes roc-flicker {
  0%, 97%, 100% { opacity: 1; }
  98%           { opacity: .55; }
  99%           { opacity: .9; }
}

@keyframes roc-hover-glow {
  0%, 100% { opacity: .82; }
  50%      { opacity: 1; }
}

@keyframes roc-scan {
  from { transform: translateY(-100%); }
  to   { transform: translateY(400%); }
}

/* Per-page drift keyframes — each page's original background glow moves
   with slightly different amounts/opacity, so each gets its own name
   rather than one generic that would average them out. */
@keyframes roc-drift-home {
  0%   { transform: translate3d(0,0,0) scale(1);       opacity: .55; }
  50%  { transform: translate3d(2%, -3%, 0) scale(1.08); opacity: .8; }
  100% { transform: translate3d(0,0,0) scale(1);       opacity: .55; }
}
@keyframes roc-drift-work {
  0%   { transform: translate3d(0,0,0) scale(1);        opacity: .5; }
  50%  { transform: translate3d(-2%, 3%, 0) scale(1.08); opacity: .75; }
  100% { transform: translate3d(0,0,0) scale(1);        opacity: .5; }
}
@keyframes roc-drift-team {
  0%   { transform: translate3d(0,0,0) scale(1);       opacity: .5; }
  50%  { transform: translate3d(3%, 2%, 0) scale(1.08); opacity: .75; }
  100% { transform: translate3d(0,0,0) scale(1);       opacity: .5; }
}
@keyframes roc-drift-contact {
  0%   { transform: translate3d(0,0,0) scale(1);        opacity: .5; }
  50%  { transform: translate3d(-3%, -2%, 0) scale(1.1); opacity: .78; }
  100% { transform: translate3d(0,0,0) scale(1);        opacity: .5; }
}

/* ---------- Page shell: glow + noise overlay + flex column -------------- */

.roc-page {
  min-height: 100vh;
  background: #07060d;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.roc-glow {
  position: fixed;
  inset: -20% -10%;
  pointer-events: none;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
}
.roc-glow--home {
  background:
    radial-gradient(38% 30% at 50% 18%, rgba(120,72,220,.30), transparent 70%),
    radial-gradient(30% 26% at 12% 78%, rgba(58,110,200,.18), transparent 70%);
  animation-name: roc-drift-home;
  animation-duration: 22s;
}
.roc-glow--work {
  background:
    radial-gradient(34% 28% at 78% 12%, rgba(120,72,220,.24), transparent 70%),
    radial-gradient(30% 26% at 10% 70%, rgba(58,110,200,.16), transparent 70%);
  animation-name: roc-drift-work;
  animation-duration: 24s;
}
.roc-glow--team {
  background:
    radial-gradient(30% 26% at 20% 14%, rgba(58,110,200,.18), transparent 70%),
    radial-gradient(32% 28% at 84% 66%, rgba(255,111,196,.12), transparent 70%);
  animation-name: roc-drift-team;
  animation-duration: 26s;
}
.roc-glow--contact {
  background: radial-gradient(40% 34% at 50% 40%, rgba(120,72,220,.24), transparent 70%);
  animation-name: roc-drift-contact;
  animation-duration: 20s;
}

.roc-noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .035;
  background-image: repeating-linear-gradient(0deg, #fff 0 1px, transparent 1px 3px);
}

/* ---------- Header / nav -------------------------------------------------- */

.roc-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 40px;
  max-width: 1280px;
  width: 100%;
  box-sizing: border-box;
  margin: 0 auto;
}

.roc-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
}
.roc-logo img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  display: block;
}
.roc-logo span {
  font-family: 'Chakra Petch', sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .28em;
  text-transform: uppercase;
}

.roc-nav {
  display: flex;
  gap: 30px;
  font-family: 'Chakra Petch', sans-serif;
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
}
.roc-nav a { color: #8b86a0; }
.roc-nav a:hover { color: #fff; }
.roc-nav a.is-active {
  color: #fff;
  border-bottom: 1px solid #a06bff;
  padding-bottom: 4px;
}

/* ---------- Footer -------------------------------------------------------- */

.roc-footer {
  position: relative;
  border-top: 1px solid #161422;
  padding: 34px 40px;
  max-width: 1280px;
  width: 100%;
  box-sizing: border-box;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: #5d5872;
}

/* ---------- Shared type ---------------------------------------------------- */

.roc-eyebrow {
  margin: 0 0 18px;
  font-family: 'Chakra Petch', sans-serif;
  font-size: 10px;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: #6d6883;
}

.roc-h1 {
  margin: 0;
  font-family: 'Chakra Petch', sans-serif;
  font-weight: 700;
  font-size: clamp(38px, 6vw, 76px);
  line-height: 1;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: #f4f2fb;
}

.roc-lede {
  margin: 26px 0 0;
  font-size: 17px;
  line-height: 1.75;
  color: #9c98ae;
  text-wrap: pretty;
}

.roc-slidein { animation: roc-slidein .8s ease both; }
.roc-slidein--slow { animation: roc-slidein .9s ease both; }

/* ---------- Home: hero ------------------------------------------------------ */

.roc-hero {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  padding: 70px 40px 120px;
  text-align: center;
}

.roc-hero-crest {
  width: 300px;
  height: 300px;
  object-fit: contain;
  animation: roc-breathe 7s ease-in-out infinite;
}

.roc-hero-h1 {
  margin: 8px 0 0;
  font-family: 'Chakra Petch', sans-serif;
  font-weight: 700;
  font-size: clamp(44px, 9vw, 104px);
  line-height: .95;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #f4f2fb;
  text-shadow: 0 0 48px rgba(160,107,255,.45);
  animation: roc-flicker 9s linear infinite;
}

.roc-hero-tag {
  margin: 22px 0 0;
  font-family: 'Chakra Petch', sans-serif;
  font-size: 13px;
  letter-spacing: .42em;
  text-transform: uppercase;
  color: #a06bff;
}

.roc-hero-meta {
  margin: 10px 0 0;
  font-size: 11px;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: #6d6883;
}

.roc-hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  margin-top: 40px;
  flex-wrap: wrap;
}

.roc-btn {
  font-family: 'Chakra Petch', sans-serif;
  font-size: 11px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: #07060d;
  background: #cfc4ff;
  padding: 15px 30px;
  display: inline-block;
}
.roc-btn:hover { background: #fff; color: #07060d; }

.roc-btn--outline {
  color: #cbc7d8;
  background: transparent;
  border: 1px solid #2b2740;
}
.roc-btn--outline:hover { border-color: #a06bff; color: #fff; }

/* ---------- Home: story ------------------------------------------------------ */

.roc-story {
  position: relative;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 40px 120px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: start;
}

.roc-story-lead {
  margin: 0 0 20px;
  font-size: 21px;
  line-height: 1.6;
  color: #ddd9ea;
  text-wrap: pretty;
}
.roc-story-sub {
  margin: 0;
  font-size: 16px;
  line-height: 1.8;
  color: #9c98ae;
  text-wrap: pretty;
}

.roc-story-list {
  display: grid;
  gap: 1px;
  background: #1a1728;
  border: 1px solid #1a1728;
}
.roc-story-item { background: #0b0a14; padding: 30px 28px; }
.roc-story-item h3 {
  margin: 0 0 8px;
  font-family: 'Chakra Petch', sans-serif;
  font-weight: 400;
  font-size: 22px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #f4f2fb;
}
.roc-story-item p {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: #8b86a0;
}

/* ---------- Home: in-the-works preview ---------------------------------------- */

.roc-works-preview {
  position: relative;
  border-top: 1px solid #16142280;
  max-width: 1120px;
  margin: 0 auto;
  padding: 70px 40px 110px;
}
.roc-works-preview .roc-eyebrow { margin-bottom: 34px; }

.roc-works-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.roc-work-preview-card {
  display: block;
  border: 1px solid #201d31;
  padding: 34px 30px;
  background: linear-gradient(160deg, #0d0b18, #0a0912);
}
.roc-work-preview-card--blue:hover   { border-color: #5ba8ff; }
.roc-work-preview-card--purple:hover { border-color: #a06bff; }

.roc-work-preview-card .roc-tag-label {
  margin: 0 0 18px;
  font-family: 'Chakra Petch', sans-serif;
  font-size: 10px;
  letter-spacing: .3em;
  text-transform: uppercase;
}
.roc-work-preview-card--blue .roc-tag-label   { color: #5ba8ff; }
.roc-work-preview-card--purple .roc-tag-label { color: #a06bff; }

.roc-redacted-sm {
  margin: 0;
  display: inline-block;
  background: #14121f;
  color: transparent;
  font-family: 'Chakra Petch', sans-serif;
  font-size: 30px;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 2px 10px;
  user-select: none;
}

.roc-work-preview-card .roc-note {
  margin: 20px 0 0;
  font-size: 14px;
  color: #8b86a0;
}

/* ---------- Contact --------------------------------------------------------- */

.roc-contact-main {
  position: relative;
  flex: 1;
  max-width: 1120px;
  width: 100%;
  box-sizing: border-box;
  margin: 0 auto;
  padding: 80px 40px 60px;
}

.roc-contact-main .roc-h1 { max-width: 100%; }
.roc-contact-main .roc-lede { max-width: 520px; margin: 26px 0 54px; }

.roc-contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 22px;
  max-width: 860px;
}

.roc-contact-card {
  display: grid;
  gap: 16px;
  border: 1px solid #1c2436;
  background: linear-gradient(150deg, #0b0f1a, #08080f);
  padding: 34px 32px;
  color: #cbc7d8;
}
.roc-contact-card--blue   { border-color: #1c2436; background: linear-gradient(150deg, #0b0f1a, #08080f); }
.roc-contact-card--purple { border-color: #251c36; background: linear-gradient(150deg, #0f0b1a, #08080f); }
.roc-contact-card--blue:hover   { border-color: #5ba8ff; }
.roc-contact-card--purple:hover { border-color: #a06bff; }

.roc-contact-card img { width: 62px; height: 62px; object-fit: contain; }

.roc-contact-card .roc-tag-label {
  margin: 0;
  font-family: 'Chakra Petch', sans-serif;
  font-size: 10px;
  letter-spacing: .3em;
  text-transform: uppercase;
}
.roc-contact-card--blue .roc-tag-label   { color: #5ba8ff; }
.roc-contact-card--purple .roc-tag-label { color: #a06bff; }

.roc-contact-card .roc-email {
  margin: 0;
  font-family: 'Chakra Petch', sans-serif;
  font-size: clamp(15px, 1.6vw, 20px);
  color: #f4f2fb;
  word-break: break-word;
}

.roc-contact-footnote {
  margin: 54px 0 0;
  font-size: 15px;
  line-height: 1.8;
  color: #6d6883;
  max-width: 520px;
}

/* ---------- Team ------------------------------------------------------------- */

.roc-team-intro {
  position: relative;
  max-width: 1120px;
  margin: 0 auto;
  padding: 80px 40px 60px;
}
.roc-team-intro,
.roc-team-intro .roc-eyebrow,
.roc-team-intro .roc-h1,
.roc-team-intro .roc-lede {
  text-align: left !important;
}

.roc-team-intro .roc-lede { max-width: 520px; margin: 26px 0 54px; }

.roc-team-list {
  position: relative;
  max-width: 1120px;
  margin: 0 auto;
  padding: 40px 40px 20px;
  display: grid;
  gap: 22px;
  align-content: start; /* don't let rows stretch to fill leftover vertical space */
}

.roc-team-card {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 26px;
  align-items: center;
  border: 1px solid var(--roc-border, #1c2436);
  background: linear-gradient(120deg, var(--roc-bg, #0b0f1a), #08080f 60%);
  padding: 24px 28px;
  min-width: 0;
  min-height: 0;
}
.roc-team-card:hover { border-color: var(--roc-accent, #5ba8ff); }

.roc-team-card img {
  display: block;
  width: 140px;
  height: 140px;
  min-width: 0;
  min-height: 0;
  object-fit: contain;
  animation: roc-hover-glow 7s ease-in-out infinite;
}

.roc-team-card .roc-role {
  margin: 0 0 8px;
  font-family: 'Chakra Petch', sans-serif;
  font-size: 10px;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--roc-accent, #5ba8ff);
}

.roc-team-card h2 {
  margin: 0 0 16px;
  font-family: 'Chakra Petch', sans-serif;
  font-weight: 700;
  font-size: clamp(28px, 3.4vw, 44px);
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #f4f2fb;
}

.roc-team-card .roc-tagline {
  margin: 0 0 14px;
  font-size: 19px;
  line-height: 1.5;
  color: var(--roc-tagline, #a7c8f0);
}

.roc-team-card .roc-bio {
  margin: 0;
  font-size: 16px;
  line-height: 1.8;
  color: #928da4;
  text-wrap: pretty;
}

.roc-team-footnote {
  position: relative;
  max-width: 1120px;
  margin: 0 auto;
  padding: 50px 40px 110px;
  font-size: 17px;
  color: #9c98ae;
}

@media (max-width: 720px) {
  .roc-team-card { grid-template-columns: 1fr; text-align: center; }
  .roc-team-card img { width: 120px; height: 120px; margin: 0 auto; }
}

/* ---------- Work -------------------------------------------------------------- */

.roc-work-intro {
  position: relative;
  max-width: 1120px;
  margin: 0 auto;
  padding: 80px 40px 60px;
}
.roc-work-intro,
.roc-work-intro .roc-eyebrow,
.roc-work-intro .roc-h1,
.roc-work-intro .roc-lede {
  text-align: left !important;
}

.roc-work-intro .roc-lede { max-width: 520px; margin: 26px 0 54px; }

.roc-work-list {
  position: relative;
  max-width: 1120px;
  margin: 0 auto;
  padding: 30px 40px 40px;
  display: grid;
  gap: 22px;
}

.roc-project-card {
  position: relative;
  border: 1px solid #201d31;
  background: linear-gradient(150deg, #0e0c1b, #09080f);
  padding: 46px 44px;
  overflow: hidden;
}
.roc-project-card:hover { border-color: var(--roc-accent, #5ba8ff); }

.roc-project-scan {
  position: absolute;
  inset: 0;
  pointer-events: none;
  height: 25%;
  opacity: var(--roc-scan-opacity, .25);
  background: linear-gradient(180deg, transparent, var(--roc-scan, rgba(91,168,255,.5)), transparent);
  animation: roc-scan var(--roc-scan-duration, 6s) linear infinite;
}

.roc-project-body {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
  align-items: flex-start;
}

.roc-project-main { max-width: 620px; }

.roc-project-main .roc-tag-label {
  margin: 0 0 22px;
  font-family: 'Chakra Petch', sans-serif;
  font-size: 10px;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--roc-accent, #5ba8ff);
}

.roc-redacted-lg {
  margin: 0 0 8px;
  display: inline-block;
  background: #16141f;
  color: transparent;
  font-family: 'Chakra Petch', sans-serif;
  font-weight: 700;
  font-size: clamp(30px, 5vw, 54px);
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 4px 14px;
  user-select: none;
}

.roc-project-main .roc-desc {
  margin: 24px 0 0;
  font-size: 17px;
  line-height: 1.7;
  color: #b6b1c7;
}
.roc-project-main .roc-subdesc {
  margin: 12px 0 0;
  font-size: 14px;
  line-height: 1.7;
  color: #7d788f;
}

.roc-project-status {
  font-family: 'Chakra Petch', sans-serif;
  font-size: 10px;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--roc-accent, #5ba8ff);
  border: 1px solid var(--roc-accent, #223a58);
  padding: 9px 14px;
}

.roc-project-card--empty {
  border: 1px dashed #1e1b2c;
  padding: 42px 44px;
  text-align: center;
}
.roc-project-card--empty .roc-empty-title {
  margin: 0 0 10px;
  font-family: 'Chakra Petch', sans-serif;
  font-size: 22px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #4e495f;
}
.roc-project-card--empty p:last-child {
  margin: 0;
  font-size: 14px;
  color: #6d6883;
}

.roc-work-footnote {
  position: relative;
  max-width: 1120px;
  margin: 0 auto;
  padding: 40px 40px 110px;
  border-top: 1px solid #161422;
}
.roc-work-footnote p {
  margin: 40px 0 0;
  font-size: 17px;
  color: #9c98ae;
}

/* ---------- Responsive: shared -------------------------------------------------- */

@media (max-width: 720px) {
  .roc-header { flex-wrap: wrap; }
  .roc-nav { gap: 18px; flex-wrap: wrap; }
  .roc-story { grid-template-columns: 1fr; }
  .roc-works-grid { grid-template-columns: 1fr; }
  .roc-contact-main { padding: 60px 24px 40px; }
}
