@import url("test-c/styles.css");

:root {
  --kage-black: #07090a;
  --kage-white: #f0f0e9;
  --kage-red: #ff3b2f;
}

.kage-hero {
  position: relative;
  display: grid;
  min-height: 100svh;
  overflow: hidden;
  padding: clamp(92px, 10vh, 120px) var(--page-padding) clamp(36px, 5vh, 64px);
  color: var(--kage-white);
  background: var(--kage-black);
  isolation: isolate;
}

.kage-hero::before {
  position: absolute;
  z-index: 1;
  inset: 0 auto 0 0;
  width: min(62vw, 980px);
  height: auto;
  border: 0;
  content: "";
  background: linear-gradient(90deg, rgba(7, 9, 10, .72) 0%, rgba(7, 9, 10, .42) 58%, transparent 100%);
  transform: none;
  pointer-events: none;
}

.hero-media {
  position: absolute;
  z-index: 0;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(.78) contrast(1.1) brightness(.93);
  transform: scale(1.03);
}

.hero-grain {
  position: absolute;
  z-index: 2;
  inset: 0;
  opacity: 0.28;
  background:
    repeating-radial-gradient(circle at 20% 20%, transparent 0 1px, rgba(255,255,255,.08) 1px 2px, transparent 2px 4px),
    repeating-linear-gradient(0deg, transparent 0 3px, rgba(0,0,0,.18) 3px 4px);
  background-size: 9px 9px, 100% 4px;
  mix-blend-mode: overlay;
  pointer-events: none;
}

.hero-chapter,
.hero-copy,
.hero-wordmark,
.hero-services,
.kage-hero > .hero-link {
  position: relative;
  z-index: 3;
}

.hero-chapter {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 clamp(28px, 4.2vh, 48px);
  font-family: "Courier New", Courier, monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.hero-chapter span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--kage-red);
  box-shadow: 0 0 18px var(--kage-red);
}

.hero-copy {
  width: min(760px, 80vw);
}

.hero-eyebrow {
  margin: 0 0 20px;
  color: var(--acid);
  font-family: "Courier New", Courier, monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(52px, 7.2vw, 112px);
  font-weight: 800;
  letter-spacing: -.065em;
  line-height: .84;
  text-transform: uppercase;
}

.hero-copy h1 span {
  display: block;
}

.hero-copy h1 span:nth-child(2) {
  margin-left: clamp(18px, 6vw, 100px);
  color: transparent;
  -webkit-text-stroke: 1px var(--kage-white);
}

.hero-copy h1 span:last-child {
  color: var(--acid);
}

.hero-lead {
  max-width: 580px;
  margin: clamp(26px, 4vh, 46px) 0 0;
  color: rgba(240, 240, 233, .76);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .05em;
  line-height: 2;
}

.hero-wordmark {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  margin: clamp(42px, 8vh, 100px) 0 20px;
  color: rgba(240, 240, 233, .94);
  font-size: clamp(76px, 15.5vw, 250px);
  font-weight: 900;
  letter-spacing: -.09em;
  line-height: .66;
}

.hero-wordmark span:last-child {
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(240, 240, 233, .78);
}

.hero-wordmark-logo {
  position: relative;
  z-index: 3;
  display: none;
  width: 100%;
  margin: clamp(42px, 8vh, 100px) 0 20px;
}

.logo-official .hero-wordmark-text {
  display: none;
}

.logo-official .hero-wordmark-logo {
  display: block;
}

.hero-services {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid rgba(240, 240, 233, .4);
  border-bottom: 1px solid rgba(240, 240, 233, .4);
}

.hero-services div {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 3px 14px;
  padding: 18px 18px 18px 0;
  border-right: 1px solid rgba(240, 240, 233, .24);
}

.hero-services div:not(:first-child) {
  padding-left: 18px;
}

.hero-services div:last-child {
  border-right: 0;
}

.hero-services strong {
  grid-row: 1 / 3;
  color: var(--acid);
  font-family: "Courier New", Courier, monospace;
  font-size: 32px;
  font-weight: 400;
  line-height: 1;
}

.hero-services span {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.hero-services small {
  color: rgba(240, 240, 233, .55);
  font-family: "Courier New", Courier, monospace;
  font-size: 9px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.kage-hero > .hero-link {
  justify-self: end;
  margin-top: 24px;
  border-color: var(--kage-white);
  color: var(--kage-black);
  background: var(--acid);
}

.kage-hero > .hero-link:hover,
.kage-hero > .hero-link:focus-visible {
  color: var(--acid);
  background: var(--kage-black);
}

.site-header:not(.is-compact) {
  color: var(--kage-white);
}

.site-header:not(.is-compact) .brand-mark,
.site-header:not(.is-compact) .nav-contact {
  color: var(--kage-black);
  background: var(--acid);
}

.scan-frame .corner {
  border-color: var(--acid);
}

body {
  background: var(--kage-black);
}

.works {
  overflow: hidden;
  background:
    linear-gradient(90deg, transparent 0 49.9%, rgba(16, 36, 43, .12) 50%, transparent 50.1%),
    repeating-linear-gradient(0deg, transparent 0 96px, rgba(16, 36, 43, .07) 96px 97px),
    var(--paper);
}

.works::after {
  position: absolute;
  top: 10%;
  right: -9vw;
  width: 28vw;
  height: 28vw;
  border: 1px solid rgba(16, 36, 43, .24);
  border-radius: 50%;
  content: "";
  box-shadow: 0 0 0 4vw rgba(16, 36, 43, .04), 0 0 0 8vw rgba(16, 36, 43, .025);
  pointer-events: none;
}

.section-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-kicker::before {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  content: "";
  background: var(--kage-red);
}

.section-heading h2 {
  color: var(--ink);
  font-size: clamp(76px, 13vw, 210px);
  letter-spacing: -.085em;
}

.section-note {
  border-left-color: var(--acid);
}

.works .section-kicker::before {
  background: var(--acid);
}

.work-filters {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: clamp(18px, 2.6vw, 42px);
  align-items: end;
  margin: 0 0 clamp(34px, 5vw, 72px);
  padding: 20px 0;
  border-top: 1px solid rgba(16, 36, 43, .28);
  border-bottom: 1px solid rgba(16, 36, 43, .28);
}

.filter-label,
.filter-status {
  margin: 0;
  color: var(--ink);
  font-family: "Courier New", Courier, monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.filter-label {
  margin-bottom: 10px;
}

.filter-groups {
  display: grid;
  gap: 18px;
}

.filter-group-secondary {
  padding-left: 18px;
  border-left: 2px solid var(--acid);
}

.filter-options {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.filter-button {
  min-height: 34px;
  padding: 8px 12px;
  border: 1px solid rgba(16, 36, 43, .38);
  border-radius: 0;
  color: var(--ink);
  background: transparent;
  font-family: "Courier New", Courier, monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  line-height: 1;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease;
}

.filter-options-primary .filter-button {
  min-height: 42px;
  padding: 11px 16px;
  font-size: 12px;
}

.filter-button:hover,
.filter-button:focus-visible {
  border-color: var(--ink);
  outline: none;
}

.filter-button.is-active {
  border-color: var(--acid);
  color: var(--ink);
  background: var(--acid);
}

.filter-status {
  white-space: nowrap;
  text-align: right;
}

.filter-status > span:first-child {
  color: var(--ink);
  font-size: 24px;
  letter-spacing: 0;
}

.works-grid {
  position: relative;
  z-index: 1;
}

.work-card[hidden] {
  display: none;
}

.works-empty {
  position: relative;
  z-index: 1;
  margin: 36px 0 0;
  padding: 28px;
  border: 1px solid rgba(16, 36, 43, .28);
  color: var(--ink);
  font-family: "Courier New", Courier, monospace;
  font-size: 12px;
  letter-spacing: .08em;
  text-align: center;
}

.work-card {
  border: 0;
  background: var(--kage-black);
  box-shadow: 0 0 0 1px rgba(16, 36, 43, .25);
  clip-path: none;
}

.work-card::before {
  background:
    linear-gradient(to top, rgba(7, 9, 10, .95), transparent 58%),
    linear-gradient(135deg, rgba(239, 255, 0, .24), transparent 33%),
    repeating-linear-gradient(0deg, transparent 0 3px, rgba(255, 255, 255, .035) 3px 4px);
}

.work-card::after {
  width: 24%;
  height: 8px;
  background: repeating-linear-gradient(90deg, var(--acid) 0 4px, transparent 4px 9px);
}

.work-card img {
  filter: grayscale(1) contrast(1.18) brightness(.82);
}

.work-card-poster img {
  object-position: center 22%;
}

.work-index {
  color: var(--ink);
  background: var(--acid);
  font-family: "Courier New", Courier, monospace;
  font-size: 20px;
}

.work-tag {
  color: var(--kage-white);
  background: rgba(7, 9, 10, .78);
  backdrop-filter: blur(8px);
}

.work-title {
  color: var(--kage-white);
}

.work-card:hover,
.work-card:focus-visible {
  box-shadow: 14px 14px 0 var(--acid);
}

.system {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(239, 255, 0, .055) 0 1px, transparent 1px),
    linear-gradient(rgba(239, 255, 0, .055) 0 1px, transparent 1px),
    radial-gradient(circle at 85% 40%, rgba(255, 59, 47, .16), transparent 24vw),
    var(--kage-black);
  background-size: 72px 72px, 72px 72px, 100% 100%, 100% 100%;
}

.system::after {
  position: absolute;
  right: -4vw;
  bottom: -10vw;
  width: 38vw;
  height: 38vw;
  border: 1px solid rgba(239, 255, 0, .24);
  border-radius: 50%;
  content: "";
  box-shadow: inset 0 0 0 6vw rgba(239, 255, 0, .025), 0 0 0 8vw rgba(239, 255, 0, .025);
}

.system .section-kicker::before {
  background: var(--kage-red);
}

.system-grid {
  position: relative;
  z-index: 1;
}

.system-card,
.system-card-dark {
  border: 1px solid rgba(239, 255, 0, .35);
  color: var(--kage-white);
  background: rgba(7, 9, 10, .72);
  clip-path: none;
}

.system-card:first-child {
  color: var(--ink);
  background: var(--acid);
}

.system-card:nth-child(2) {
  transform: translateY(38px);
}

.system-number {
  color: transparent;
  -webkit-text-stroke: 1px currentColor;
}

.system-card:first-child .system-number {
  color: var(--ink);
  -webkit-text-stroke: 0;
}

.contact {
  position: relative;
  min-height: 82vh;
  overflow: hidden;
  color: var(--kage-white);
  background:
    linear-gradient(90deg, rgba(240, 240, 233, .05) 1px, transparent 1px),
    var(--kage-black);
  background-size: 12.5% 100%, 100% 100%;
}

.contact::before {
  position: absolute;
  top: 22%;
  right: -3vw;
  width: 34vw;
  height: 34vw;
  border: clamp(24px, 4vw, 62px) solid var(--kage-red);
  border-radius: 50%;
  content: "";
  opacity: .8;
  transform: rotate(-12deg) scaleY(.38);
}

.contact .section-kicker {
  position: relative;
  z-index: 1;
  color: var(--acid);
}

.contact-line {
  position: relative;
  z-index: 1;
  border-color: var(--acid);
  color: var(--kage-white);
  font-size: clamp(70px, 13vw, 210px);
}

.contact-line span:first-child {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--kage-white);
}

.contact-line span:last-child {
  color: var(--acid);
}

.contact-note {
  position: relative;
  z-index: 1;
  color: rgba(240, 240, 233, .65);
}

footer {
  border-top-color: rgba(240, 240, 233, .16);
  color: rgba(240, 240, 233, .56);
  background: var(--kage-black);
}

body.modal-open {
  overflow: hidden;
}

.video-modal {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: clamp(18px, 4vw, 64px);
  background: rgba(7, 9, 10, .9);
  backdrop-filter: blur(10px);
}

.video-modal[hidden] {
  display: none;
}

.video-modal-panel {
  width: min(1180px, 100%);
  border: 1px solid rgba(239, 255, 0, .5);
  background: var(--kage-black);
  box-shadow: 18px 18px 0 rgba(239, 255, 0, .16);
}

.video-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 56px;
  padding: 10px 12px 10px 18px;
  border-bottom: 1px solid rgba(239, 255, 0, .35);
}

.video-modal-header p {
  margin: 0;
  color: var(--kage-white);
  font-family: "Courier New", Courier, monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.video-modal-close {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  border: 1px solid var(--acid);
  border-radius: 0;
  color: var(--ink);
  background: var(--acid);
  font-family: "Courier New", Courier, monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  cursor: pointer;
}

.video-modal-close span {
  font-size: 20px;
  line-height: .7;
}

.video-modal-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
}

.video-modal-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.has-js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 700ms ease, transform 700ms cubic-bezier(.22, 1, .36, 1);
}

.has-js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.has-js .work-card.reveal:nth-child(2),
.has-js .system-card.reveal:nth-child(2) {
  transition-delay: 90ms;
}

.has-js .work-card.reveal:nth-child(3),
.has-js .system-card.reveal:nth-child(3) {
  transition-delay: 180ms;
}

@media (max-width: 980px) {
  .hero-services {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-services div:nth-child(2) {
    border-right: 0;
  }

  .hero-services div:nth-child(-n + 2) {
    border-bottom: 1px solid rgba(240, 240, 233, .24);
  }

  .system-card:nth-child(2) {
    transform: none;
  }

  .work-filters {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .filter-status {
    text-align: left;
  }
}

@media (max-width: 620px) {
  .kage-hero {
    padding-right: 20px;
    padding-left: 20px;
  }

  .hero-copy {
    width: 100%;
  }

  .hero-copy h1 {
    font-size: clamp(48px, 15vw, 72px);
  }

  .hero-copy h1 span:nth-child(2) {
    margin-left: 0;
  }

  .hero-wordmark {
    display: block;
    margin-top: 68px;
    font-size: clamp(74px, 24vw, 116px);
    line-height: .75;
  }

  .hero-wordmark span {
    display: block;
  }

  .hero-services {
    grid-template-columns: 1fr;
  }

  .hero-services div,
  .hero-services div:not(:first-child) {
    padding: 14px 0;
    border-right: 0;
    border-bottom: 1px solid rgba(240, 240, 233, .24);
  }

  .hero-services div:last-child {
    border-bottom: 0;
  }

  .work-filters {
    margin-bottom: 28px;
    padding: 16px 0;
  }

  .filter-options {
    gap: 6px;
  }

  .filter-button {
    min-height: 32px;
    padding: 7px 9px;
    font-size: 9px;
  }

  .video-modal {
    padding: 12px;
  }

  .video-modal-panel {
    box-shadow: 8px 8px 0 rgba(239, 255, 0, .16);
  }

  .video-modal-header {
    min-height: 48px;
    padding: 8px 8px 8px 12px;
  }

  .contact {
    min-height: 68vh;
  }

  .contact-line {
    font-size: clamp(62px, 19vw, 104px);
  }
}

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