/* ============================================================
   Zyori Studios · zyori.studio
   60 / 30 / 10
     60  white      dominant surface (hero, work)
     30  ink black  back half (services, contact) + game plates
     10  signal red accent only
   ============================================================ */

:root {
  --white:  #FFFFFF;
  --ink:    #0D0D0F;
  --red:    #E5241B;
  --red-deep: #C4160D;

  /* semantic, re-bound inside .dark */
  --surface:    var(--white);
  --on:         var(--ink);
  --on-soft:    #55555E;
  --on-faint:   #8E8E98;
  --rule-c:     rgba(13, 13, 15, 0.13);
  --accent:     var(--red-deep);

  --font-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --gutter: clamp(1.25rem, 5vw, 6rem);
  --maxw: 1440px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

.dark {
  --surface:  var(--ink);
  --on:       var(--white);
  --on-soft:  rgba(255, 255, 255, 0.66);
  --on-faint: rgba(255, 255, 255, 0.44);
  --rule-c:   rgba(255, 255, 255, 0.16);
  --accent:   var(--red);
  background: var(--surface);
  color: var(--on);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }

.skip {
  position: absolute; left: -9999px;
  background: var(--ink); color: #fff;
  padding: 0.75rem 1.25rem; z-index: 100;
  font-family: var(--font-mono); font-size: 0.8rem;
}
.skip:focus { left: 1rem; top: 1rem; }

/* ---------- Nav ---------- */

.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem var(--gutter);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(13, 13, 15, 0.13);
}

.nav__brand {
  display: inline-flex; align-items: center; gap: 0.6rem;
  text-decoration: none;
  font-weight: 800; font-size: 0.95rem;
  letter-spacing: -0.01em;
  font-variation-settings: "wdth" 92;
}
.nav__mark { width: 20px; height: 20px; fill: var(--red); flex: none; }

.nav__links {
  display: flex; align-items: center; gap: clamp(1rem, 2.5vw, 2rem);
  font-family: var(--font-mono);
  font-size: 0.78rem;
}
.nav__links a { text-decoration: none; color: #55555E; transition: color 0.2s; }
.nav__links a:hover { color: var(--ink); }

.nav__cta {
  color: #fff !important;
  background: var(--ink);
  padding: 0.55rem 1rem;
  border-radius: 999px;
  transition: background 0.22s var(--ease);
}
.nav__cta:hover { background: var(--red); }

@media (max-width: 640px) { .nav__links a:not(.nav__cta) { display: none; } }

/* ---------- Hero ---------- */

.hero {
  padding: clamp(3.5rem, 12vh, 9rem) var(--gutter) clamp(2.5rem, 6vh, 4.5rem);
  max-width: var(--maxw);
  margin: 0 auto;
}

.hero__eyebrow {
  margin: 0 0 clamp(1.75rem, 4vh, 3rem);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--on-faint);
}

.hero__title {
  margin: 0;
  font-size: clamp(3rem, 12vw, 11rem);
  line-height: 0.88;
  font-weight: 900;
  letter-spacing: -0.048em;
  font-variation-settings: "wdth" 86;
  text-wrap: balance;
}
.hero__title .line { display: block; overflow: hidden; }
.hero__title .line > span { display: block; }
.hero__title em { font-style: normal; color: var(--red); }

.hero__rule {
  height: 5px;
  background: var(--red);
  margin: clamp(2rem, 5vh, 3.5rem) 0 clamp(1.75rem, 4vh, 2.5rem);
  transform-origin: left center;
}

.hero__foot {
  display: flex; flex-wrap: wrap;
  gap: clamp(1.25rem, 4vw, 3rem);
  align-items: center; justify-content: space-between;
}

.hero__lede {
  margin: 0;
  font-size: clamp(1.05rem, 1.6vw, 1.4rem);
  line-height: 1.4;
  color: var(--on-soft);
  max-width: 38ch;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 0.7rem; }

.hero__live {
  display: flex; flex-wrap: wrap;
  gap: clamp(1rem, 3vw, 2.5rem);
  list-style: none;
  margin: clamp(2.5rem, 6vh, 4rem) 0 0;
  padding: clamp(1.1rem, 2vh, 1.4rem) 0 0;
  border-top: 1px solid var(--rule-c);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--on-soft);
}
.hero__live li { display: inline-flex; align-items: center; gap: 0.55rem; }

.dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--red);
  animation: pulse 2.6s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(229, 36, 27, 0.5); }
  70%  { box-shadow: 0 0 0 7px rgba(229, 36, 27, 0); }
  100% { box-shadow: 0 0 0 0 rgba(229, 36, 27, 0); }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.85rem 1.5rem;
  border: 1.5px solid currentColor;
  border-radius: 999px;
  font-size: 0.9rem; font-weight: 600;
  text-decoration: none;
  color: var(--on);
  transition: background 0.22s var(--ease), color 0.22s var(--ease),
              border-color 0.22s var(--ease), transform 0.22s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:not(.btn--primary):hover { background: var(--on); color: var(--surface); }

.btn--primary { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn--primary:hover { background: var(--red); border-color: var(--red); color: #fff; }

.dark .btn--primary { background: var(--red); border-color: var(--red); }
.dark .btn--primary:hover { background: #fff; border-color: #fff; color: var(--ink); }

.btn--lg {
  padding: 1.15rem 2.4rem;
  font-family: var(--font-mono);
  font-size: clamp(0.95rem, 1.6vw, 1.15rem);
  font-weight: 500;
}

/* ---------- Section heads ---------- */

.section-head {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(3.5rem, 9vh, 7rem) var(--gutter) clamp(1.5rem, 3.5vh, 2.5rem);
  display: flex; flex-wrap: wrap; align-items: baseline;
  justify-content: space-between; gap: 1rem;
  border-bottom: 1px solid var(--rule-c);
}
.section-head__title {
  margin: 0;
  font-size: clamp(1.7rem, 3.8vw, 3.2rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  font-variation-settings: "wdth" 88;
}
.section-head__note {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--on-faint);
}

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

.work { max-width: var(--maxw); margin: 0 auto; }

.plate {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 4.5rem);
  align-items: center;
  padding: clamp(2.5rem, 7vh, 6rem) var(--gutter);
  border-bottom: 1px solid var(--rule-c);
}
/* the wide column always follows the image, whichever side it sits on */
.plate:nth-child(even) { grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); }
.plate:nth-child(even) .plate__media { order: 2; }

.plate__media {
  position: relative; display: block;
  background: var(--ink);
  overflow: hidden;
  text-decoration: none;
  box-shadow: 0 20px 44px -24px rgba(13, 13, 15, 0.5);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.plate__media img {
  width: 100%; height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center top;
  filter: saturate(0.82);
  transition: filter 0.5s var(--ease), transform 0.7s var(--ease);
}
.plate__media:hover { transform: translateY(-4px); box-shadow: 0 32px 64px -26px rgba(13, 13, 15, 0.6); }
.plate__media:hover img { filter: saturate(1.1); transform: scale(1.015); }

.plate__view {
  position: absolute; left: 0; bottom: 0;
  background: var(--red); color: #fff;
  font-family: var(--font-mono); font-size: 0.76rem; font-weight: 500;
  letter-spacing: 0.06em; text-transform: uppercase;
  padding: 0.6rem 1.1rem;
  transform: translateY(100%);
  transition: transform 0.35s var(--ease);
}
.plate__media:hover .plate__view,
.plate__media:focus-visible .plate__view { transform: translateY(0); }

.plate__idx {
  margin: 0 0 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--on-faint);
}
.plate__idx span { color: var(--accent); font-weight: 700; margin-right: 0.7rem; }

.plate__title {
  margin: 0 0 0.85rem;
  font-size: clamp(1.7rem, 3.3vw, 2.8rem);
  font-weight: 900; letter-spacing: -0.042em; line-height: 1;
  font-variation-settings: "wdth" 86;
}

.plate__lede {
  margin: 0 0 1.4rem;
  font-size: clamp(1rem, 1.25vw, 1.1rem);
  line-height: 1.5;
  color: var(--on-soft);
  max-width: 44ch;
}

.spec {
  margin: 0 0 1.4rem;
  padding-top: 1rem;
  border-top: 1px solid var(--rule-c);
  display: grid; gap: 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.76rem; line-height: 1.5;
}
.spec > div { display: grid; grid-template-columns: 4rem 1fr; gap: 0.75rem; }
.spec dt { color: var(--on-faint); text-transform: uppercase; letter-spacing: 0.08em; }
.spec dd { margin: 0; color: var(--on-soft); }

.plate__link {
  font-family: var(--font-mono);
  font-size: 0.85rem; font-weight: 500;
  text-decoration: none;
  color: var(--accent);
  border-bottom: 1.5px solid currentColor;
  padding-bottom: 2px;
  transition: color 0.2s;
}
.plate__link:hover { color: var(--on); }

@media (max-width: 880px) {
  .plate,
  .plate:nth-child(even) { grid-template-columns: 1fr; gap: 1.5rem; }
  .plate:nth-child(even) .plate__media { order: 0; }
}

/* ---------- Services (dark) ---------- */

.services { max-width: var(--maxw); margin: 0 auto; }

.lanes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(2rem, 5vw, 5rem);
  padding: clamp(2.5rem, 6vh, 4rem) var(--gutter);
}

.lane__idx {
  margin: 0 0 1rem;
  font-family: var(--font-mono);
  font-size: 0.78rem; font-weight: 700;
  color: #fff; background: var(--red);
  width: 1.9rem; height: 1.9rem;
  display: grid; place-items: center;
  border-radius: 50%;
}
.lane__title {
  margin: 0 0 1.1rem;
  font-size: clamp(1.4rem, 2.6vw, 2.1rem);
  font-weight: 900; letter-spacing: -0.04em;
  font-variation-settings: "wdth" 88;
}
.lane__list {
  list-style: none; margin: 0; padding: 0;
  border-top: 1px solid var(--rule-c);
  font-family: var(--font-mono);
  font-size: 0.84rem; line-height: 1.5;
}
.lane__list li {
  padding: 0.85rem 0 0.85rem 1.6rem;
  border-bottom: 1px solid var(--rule-c);
  position: relative;
  color: var(--on-soft);
}
.lane__list li::before { content: "\2192"; position: absolute; left: 0; color: var(--red); }

.principles {
  margin: 0 var(--gutter) clamp(3rem, 8vh, 5.5rem);
  padding: clamp(1.5rem, 3.5vh, 2.5rem) 0 0;
  border-top: 3px solid var(--red);
}
.principles__title {
  margin: 0 0 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.76rem; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--on-faint);
}
.principles__list {
  list-style: none; margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: clamp(1.25rem, 3vw, 2.5rem);
}
.principles__list li {
  font-size: 1rem; line-height: 1.45;
  color: var(--on);
  font-weight: 500;
}
.principles__list span {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.74rem; font-weight: 700;
  color: var(--red);
  margin-bottom: 0.55rem;
}

/* ---------- Contact (dark) ---------- */

.contact { padding: clamp(3rem, 10vh, 7rem) var(--gutter) clamp(4rem, 12vh, 8rem); }
.contact__inner { max-width: var(--maxw); margin: 0 auto; }

.contact__eyebrow {
  margin: 0 0 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.76rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--red);
  display: inline-flex; align-items: center; gap: 0.6rem;
}
.contact__eyebrow::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--red);
}

.contact__title {
  margin: 0 0 2.25rem;
  font-size: clamp(2.1rem, 6.4vw, 5.25rem);
  line-height: 0.95;
  font-weight: 900; letter-spacing: -0.046em;
  font-variation-settings: "wdth" 86;
  text-wrap: balance;
}

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

.foot {
  max-width: var(--maxw); margin: 0 auto;
  padding: 2.25rem var(--gutter);
  display: flex; flex-wrap: wrap; gap: 1rem;
  justify-content: space-between; align-items: center;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: #8E8E98;
}
.foot p { margin: 0; }
.foot__brand { font-family: var(--font-display); font-weight: 900; color: var(--ink); letter-spacing: -0.01em; }

/* ---------- Motion ---------- */

.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.75s var(--ease), transform 0.75s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

.hero__title .line { opacity: 1; transform: none; }
.hero__title .line > span { transform: translateY(105%); transition: transform 0.95s var(--ease); }
.hero__title .line.in > span { transform: none; }

.hero__rule { opacity: 1; transform: scaleX(0); transition: transform 0.9s var(--ease) 0.15s; }
.hero__rule.in { transform: scaleX(1); }

.hero__title .line:nth-child(1) > span { transition-delay: 0.05s; }
.hero__title .line:nth-child(2) > span { transition-delay: 0.14s; }
.hero__title .line:nth-child(3) > span { transition-delay: 0.23s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal, .hero__title .line > span, .hero__rule { opacity: 1 !important; transform: none !important; }
}
