:root {
  color-scheme: light;
  --paper: #eee8dc;
  --paper-hot: #f7f2e8;
  --ink: #161616;
  --muted: #5e5a53;
  --orange: #ff4d00;
  --orange-dark: #d43d00;
  --blue: #2f63ff;
  --acid: #d9ff43;
  --line: rgba(22, 22, 22, 0.22);
  --display: Impact, Haettenschweiler, "Franklin Gothic Heavy", sans-serif;
  --body: "Franklin Gothic Medium", "Aptos", sans-serif;
  --mono: "Cascadia Code", "IBM Plex Mono", monospace;
  --container: min(1240px, calc(100vw - 56px));
  --header: 82px;
}

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

html {
  scroll-behavior: smooth;
  background: var(--paper);
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--ink);
  font-family: var(--body);
  line-height: 1.55;
  background:
    linear-gradient(rgba(22, 22, 22, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(22, 22, 22, 0.045) 1px, transparent 1px),
    var(--paper);
  background-size: 32px 32px;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.17;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.38'/%3E%3C/svg%3E");
}

::selection {
  color: #fff;
  background: var(--orange);
}

a {
  color: inherit;
}

img,
svg {
  max-width: 100%;
}

button,
input,
textarea {
  font: inherit;
}

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

.container {
  width: var(--container);
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: -5rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  color: #fff;
  background: var(--blue);
  font-weight: 900;
  text-decoration: none;
  transition: top 160ms ease;
}

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

.site-header {
  height: var(--header);
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 2px solid var(--ink);
  background: rgba(238, 232, 220, 0.92);
  backdrop-filter: blur(14px);
}

.nav-shell {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.4rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.72rem;
  min-width: max-content;
  text-decoration: none;
}

.brand img {
  width: 104px;
  height: 66px;
  object-fit: contain;
  border-radius: 4px;
  filter: drop-shadow(0 0 12px rgba(255, 90, 18, 0.18));
}

.brand-copy {
  display: grid;
  line-height: 0.86;
}

.brand-copy strong {
  font-family: var(--display);
  font-size: 1.32rem;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.brand-copy span {
  margin-top: 0.38rem;
  color: var(--orange-dark);
  font-family: var(--mono);
  font-size: 0.58rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

.site-nav a {
  padding: 0.62rem 0.76rem;
  border: 1px solid transparent;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a[aria-current="page"] {
  border-color: var(--ink);
  background: var(--paper-hot);
}

.site-nav a[aria-current="page"] {
  color: #fff;
  background: var(--ink);
}

.nav-toggle {
  display: none;
  min-width: 48px;
  min-height: 44px;
  border: 2px solid var(--ink);
  color: var(--ink);
  background: var(--orange);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
  cursor: pointer;
}

.status-stamp {
  padding: 0.45rem 0.62rem;
  border: 2px solid var(--orange-dark);
  color: var(--orange-dark);
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transform: rotate(-2deg);
}

.ticker {
  overflow: hidden;
  border-bottom: 2px solid var(--ink);
  color: #fff;
  background: var(--orange);
}

.ticker-track {
  width: max-content;
  display: flex;
  gap: 2rem;
  padding: 0.48rem 0;
  font-family: var(--mono);
  font-size: 0.67rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: tickerMove 30s linear infinite;
}

.ticker-track span::after {
  content: "◆";
  margin-left: 2rem;
  color: var(--acid);
}

.hero {
  min-height: calc(100vh - var(--header) - 34px);
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(340px, 0.8fr);
  align-items: stretch;
  border-inline: 2px solid var(--ink);
}

.hero-copy {
  padding: clamp(3rem, 7vw, 7rem) clamp(1.4rem, 5vw, 5.5rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: var(--paper-hot);
}

.hero-copy::after {
  content: "RFL-001";
  position: absolute;
  right: -0.2rem;
  bottom: -1.8rem;
  color: rgba(22, 22, 22, 0.055);
  font-family: var(--display);
  font-size: clamp(7rem, 17vw, 17rem);
  line-height: 1;
}

.eyebrow,
.section-kicker {
  margin: 0 0 1rem;
  position: relative;
  z-index: 1;
  color: var(--orange-dark);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow::before,
.section-kicker::before {
  content: "[ ";
  color: var(--blue);
}

.eyebrow::after,
.section-kicker::after {
  content: " ]";
  color: var(--blue);
}

.hero h1 {
  width: 100%;
  max-width: 100%;
  margin: 0;
  position: relative;
  z-index: 1;
  font-family: var(--display);
  font-size: clamp(4.4rem, 7.6vw, 8.6rem);
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 0.8;
  text-transform: uppercase;
}

.hero-title-line,
.hero-title-accent {
  display: block;
  width: max-content;
  max-width: 100%;
}

.hero-title-accent {
  padding-right: 0.08em;
  color: var(--orange);
  font-size: 0.9em;
  letter-spacing: -0.045em;
  -webkit-text-stroke: 2px var(--ink);
  text-shadow: 5px 5px 0 var(--ink);
}

.hero-lead {
  max-width: 56ch;
  margin: 1.8rem 0 0;
  position: relative;
  z-index: 1;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.8rem;
  position: relative;
  z-index: 1;
}

.hero-mark {
  min-height: 540px;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  border-left: 0;
  background:
    linear-gradient(rgba(62, 221, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(62, 221, 255, 0.035) 1px, transparent 1px),
    radial-gradient(circle at 48% 43%, rgba(255, 90, 18, 0.24), transparent 37%),
    linear-gradient(115deg, rgba(247, 242, 232, 0.12), transparent 18%),
    linear-gradient(145deg, #111618, #040506 72%);
  background-size: 32px 32px, 32px 32px, auto, auto, auto;
  box-shadow:
    inset 2px 0 0 rgba(255, 77, 0, 0.72),
    inset 4px 0 0 rgba(62, 221, 255, 0.2),
    inset 28px 0 64px -48px rgba(247, 242, 232, 0.8),
    -24px 0 52px rgba(255, 77, 0, 0.08);
}

.hero-mark::before,
.hero-mark::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(62, 221, 255, 0.25);
  border-radius: 50%;
  animation: orbitSpin 24s linear infinite;
}

.hero-mark::before {
  width: 78%;
  aspect-ratio: 1;
}

.hero-mark::after {
  width: 48%;
  aspect-ratio: 1;
  border-color: rgba(255, 90, 18, 0.42);
  animation-direction: reverse;
}

.hero-mark img {
  width: min(80%, 590px);
  border-radius: 12px;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 24px 44px rgba(0, 0, 0, 0.42));
  animation: markFloat 5s ease-in-out infinite;
}

.btn {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.78rem 1.05rem;
  border: 2px solid var(--ink);
  color: #fff;
  background: var(--ink);
  box-shadow: 5px 5px 0 var(--orange);
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform 150ms ease, box-shadow 150ms ease;
}

.btn::after {
  content: "↗";
}

.btn:hover,
.btn:focus-visible {
  transform: translate(3px, 3px);
  box-shadow: 2px 2px 0 var(--orange);
}

.btn-light {
  color: var(--ink);
  background: var(--paper-hot);
  box-shadow: 5px 5px 0 var(--blue);
}

.btn[aria-disabled="true"] {
  pointer-events: none;
  opacity: 0.58;
}

.section {
  padding-block: clamp(4rem, 8vw, 8rem);
  border-top: 2px solid var(--ink);
}

.section-dark {
  color: #fff;
  background: var(--ink);
}

.section-blue {
  color: #fff;
  background: var(--blue);
}

.section-head {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 2rem;
  align-items: end;
  margin-bottom: 2.2rem;
}

.section-head h2 {
  max-width: 11ch;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(3.2rem, 7vw, 7rem);
  font-weight: 900;
  letter-spacing: -0.025em;
  line-height: 0.82;
  text-transform: uppercase;
}

.section-head p:last-child {
  max-width: 55ch;
  margin: 0;
  color: currentColor;
  opacity: 0.7;
  font-size: 1.06rem;
}

.grid {
  display: grid;
  gap: 1rem;
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
  min-height: 100%;
  padding: 1.5rem;
  position: relative;
  border: 2px solid currentColor;
  background: var(--paper-hot);
  box-shadow: 7px 7px 0 var(--ink);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.section-dark .card,
.section-blue .card {
  color: var(--ink);
}

.card:hover {
  transform: translate(-3px, -3px);
  box-shadow: 10px 10px 0 var(--orange);
}

.card-number {
  display: block;
  margin-bottom: 2.4rem;
  color: var(--orange-dark);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 900;
}

.card h3 {
  margin: 0 0 0.75rem;
  font-family: var(--display);
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  line-height: 0.95;
  text-transform: uppercase;
}

.card p,
.card li {
  color: var(--muted);
}

.card a:not(.btn) {
  color: var(--blue);
  font-weight: 900;
  text-underline-offset: 0.18em;
}

.project-card {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  border: 2px solid currentColor;
  background: var(--paper-hot);
}

.project-visual {
  min-height: 380px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-right: 2px solid var(--ink);
  background:
    radial-gradient(circle, rgba(39, 220, 255, 0.26), transparent 58%),
    #060717;
}

.project-visual img {
  width: min(78%, 360px);
  filter: drop-shadow(0 0 34px rgba(105, 58, 255, 0.55));
}

.project-copy {
  padding: clamp(1.6rem, 5vw, 4rem);
  color: var(--ink);
}

.project-copy h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(3.2rem, 7vw, 7rem);
  line-height: 0.82;
  text-transform: uppercase;
}

.label {
  display: inline-flex;
  padding: 0.36rem 0.55rem;
  border: 2px solid currentColor;
  color: var(--orange-dark);
  font-family: var(--mono);
  font-size: 0.65rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.manifesto {
  display: grid;
  gap: 0;
  border: 2px solid var(--ink);
}

.manifesto-row {
  display: grid;
  grid-template-columns: 90px 0.8fr 1.2fr;
  gap: 1.5rem;
  align-items: center;
  padding: 1.5rem;
  border-bottom: 2px solid var(--ink);
  background: var(--paper-hot);
}

.manifesto-row:last-child {
  border-bottom: 0;
}

.manifesto-row strong {
  color: var(--orange-dark);
  font-family: var(--mono);
}

.manifesto-row h3,
.manifesto-row p {
  margin: 0;
}

.manifesto-row h3 {
  font-family: var(--display);
  font-size: 1.8rem;
  text-transform: uppercase;
}

.manifesto-row p {
  color: var(--muted);
}

.page-hero {
  padding-block: clamp(4rem, 9vw, 9rem);
  border-bottom: 2px solid var(--ink);
  background: var(--paper-hot);
}

.page-hero h1 {
  max-width: 12ch;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(4.5rem, 12vw, 12rem);
  letter-spacing: -0.035em;
  line-height: 0.78;
  text-transform: uppercase;
}

.page-hero h1 span {
  color: var(--orange);
  -webkit-text-stroke: 2px var(--ink);
  text-shadow: 6px 6px 0 var(--ink);
}

.page-hero p:last-child {
  max-width: 58ch;
  margin: 1.8rem 0 0;
  color: var(--muted);
  font-size: 1.15rem;
}

.contact-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 2px solid var(--ink);
  background: var(--paper-hot);
}

.contact-panel > div {
  padding: clamp(1.5rem, 5vw, 4rem);
}

.contact-panel > div + div {
  border-left: 2px solid var(--ink);
  color: #fff;
  background: var(--orange);
}

.contact-panel h2 {
  margin: 0 0 1rem;
  font-family: var(--display);
  font-size: clamp(2.6rem, 6vw, 5rem);
  line-height: 0.85;
  text-transform: uppercase;
}

.site-footer {
  padding-block: 3rem;
  border-top: 2px solid var(--ink);
  color: #fff;
  background: var(--ink);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
}

.footer-brand {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.footer-brand img {
  width: 190px;
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22);
}

.footer-grid h3,
.footer-grid h4 {
  margin: 0 0 0.7rem;
  font-family: var(--display);
  text-transform: uppercase;
}

.footer-grid p,
.footer-grid a {
  color: #aaa69e;
}

.footer-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-grid li + li {
  margin-top: 0.42rem;
}

.footer-grid a:hover,
.footer-grid a:focus-visible {
  color: var(--acid);
}

.footer-note {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  color: #74716b;
  font-family: var(--mono);
  font-size: 0.65rem;
}

.studio-identity .section-head {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 1fr);
  gap: clamp(2.5rem, 7vw, 7rem);
  align-items: center;
  margin-bottom: 0;
}

.studio-identity .section-head > div,
.studio-identity .section-head > p {
  min-width: 0;
}

.studio-identity .section-head h2 {
  max-width: none;
  font-size: clamp(3.4rem, 5.2vw, 6.2rem);
  line-height: 0.82;
}

.studio-identity .section-head h2 span {
  display: block;
  width: max-content;
  max-width: 100%;
}

.studio-identity .section-head .identity-name {
  color: var(--paper-hot);
  font-size: 0.78em;
  letter-spacing: -0.04em;
}

.studio-identity .section-head > p:last-child {
  max-width: 46ch;
  padding: clamp(1.1rem, 2.4vw, 1.8rem);
  border-left: 3px solid var(--acid);
  background: rgba(8, 18, 48, 0.16);
  font-size: clamp(1rem, 1.35vw, 1.16rem);
}

.js-ready .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 580ms ease var(--delay, 0ms), transform 580ms cubic-bezier(0.2, 0.8, 0.2, 1) var(--delay, 0ms);
}

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

@keyframes tickerMove {
  to { transform: translateX(-50%); }
}

@keyframes markFloat {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-12px) rotate(1deg); }
}

@keyframes orbitSpin {
  to { transform: rotate(360deg); }
}

@media (max-width: 980px) {
  :root {
    --container: min(840px, calc(100vw - 36px));
  }

  .status-stamp {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: var(--header);
    left: 0;
    right: 0;
    padding: 1rem 18px;
    border-bottom: 2px solid var(--ink);
    background: var(--paper);
  }

  .site-nav.open {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-nav a {
    border-color: var(--line);
  }

  body.menu-open {
    overflow: hidden;
  }

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

  .hero-mark {
    min-height: clamp(360px, 72vw, 560px);
    border-top: 0;
    border-left: 0;
    box-shadow:
      inset 0 2px 0 rgba(255, 77, 0, 0.72),
      inset 0 4px 0 rgba(62, 221, 255, 0.2),
      inset 0 34px 70px -56px rgba(247, 242, 232, 0.85);
  }

  .section-head,
  .project-card {
    grid-template-columns: 1fr;
  }

  .project-visual {
    border-right: 0;
    border-bottom: 2px solid var(--ink);
  }
}

@media (max-width: 700px) {
  :root {
    --container: calc(100vw - 24px);
    --header: 72px;
  }

  .brand img {
    width: 86px;
    height: 56px;
  }

  .brand-copy strong {
    font-size: 1rem;
  }

  .brand-copy span {
    font-size: 0.49rem;
  }

  .hero {
    border-inline: 0;
  }

  .hero-copy {
    padding: 4.5rem 1.1rem;
  }

  .hero h1 {
    font-size: clamp(3.8rem, 19vw, 6.4rem);
  }

  .page-hero h1 {
    font-size: clamp(4rem, 22vw, 7rem);
  }

  .hero-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .grid-2,
  .grid-3,
  .footer-grid,
  .contact-panel {
    grid-template-columns: 1fr;
  }

  .manifesto-row {
    grid-template-columns: 50px 1fr;
  }

  .manifesto-row p {
    grid-column: 1 / -1;
  }

  .contact-panel > div + div {
    border-top: 2px solid var(--ink);
    border-left: 0;
  }
}

@media (max-width: 980px) {
  .studio-identity .section-head {
    grid-template-columns: 1fr;
    gap: 1.8rem;
  }

  .studio-identity .section-head > p:last-child {
    max-width: 60ch;
  }
}

@media (max-width: 700px) {
  .studio-identity .section-head h2 {
    font-size: clamp(3rem, 15vw, 5.2rem);
  }

  .studio-identity .section-head > p:last-child {
    padding: 1rem;
  }
}

/* Official ForgeCore logo integration */
.site-header {
  color: #f7f9fa;
  background:
    radial-gradient(circle at 8% 50%, rgba(255, 90, 18, 0.08), transparent 22%),
    #07090a;
  border-bottom-color: rgba(62, 221, 255, 0.22);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.16);
}

.site-header .brand,
.hero-mark,
.footer-brand {
  isolation: isolate;
}

.site-header .brand img,
.hero-mark img,
.footer-brand img {
  background: transparent;
  border: 0;
  border-radius: 0;
  mix-blend-mode: screen;
}

.site-header .brand img {
  filter: drop-shadow(0 0 12px rgba(255, 90, 18, 0.22));
}

.site-header .site-nav a {
  color: #d9e0e3;
}

.site-header .site-nav a:hover,
.site-header .site-nav a[aria-current="page"] {
  color: #ff6a22;
}

.site-header .status-stamp {
  color: #48dfff;
  border-color: rgba(72, 223, 255, 0.3);
  background: rgba(72, 223, 255, 0.06);
}

.hero-mark img {
  filter:
    drop-shadow(0 28px 48px rgba(0, 0, 0, 0.46))
    drop-shadow(0 0 24px rgba(255, 90, 18, 0.14));
  -webkit-mask-image: radial-gradient(ellipse 72% 68% at 50% 50%, #000 64%, transparent 100%);
  mask-image: radial-gradient(ellipse 72% 68% at 50% 50%, #000 64%, transparent 100%);
}

.footer-brand img {
  box-shadow: none;
  filter: drop-shadow(0 16px 28px rgba(0, 0, 0, 0.26));
  -webkit-mask-image: radial-gradient(ellipse 74% 70% at 50% 50%, #000 62%, transparent 100%);
  mask-image: radial-gradient(ellipse 74% 70% at 50% 50%, #000 62%, transparent 100%);
}

/* Retro signal layer: additive interaction without changing the core layout */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 30;
  pointer-events: none;
  opacity: 0;
  background:
    radial-gradient(circle, rgba(22, 22, 22, 0.72) 0 1px, transparent 1.4px) 0 0 / 8px 8px,
    linear-gradient(115deg, transparent 46%, rgba(255, 77, 0, 0.16) 49%, transparent 52%);
  mix-blend-mode: multiply;
  transition: opacity 260ms ease;
}

body.forge-powered::after {
  opacity: 0.075;
  animation: signalDrift 12s linear infinite;
}

.page-hero,
.section-dark,
.section-blue {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.page-hero::before,
.section-dark::before,
.section-blue::before {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
}

.page-hero::before {
  width: min(54vw, 760px);
  aspect-ratio: 1;
  right: -12vw;
  top: 50%;
  transform: translateY(-50%) rotate(8deg);
  opacity: 0.075;
  background: repeating-conic-gradient(from 0deg, var(--orange) 0 5deg, transparent 5deg 12deg);
  -webkit-mask-image: radial-gradient(circle, #000 0 48%, transparent 72%);
  mask-image: radial-gradient(circle, #000 0 48%, transparent 72%);
}

.section-dark::before {
  inset: 0;
  opacity: 0.09;
  background: radial-gradient(circle, #fff 0 1px, transparent 1.4px) 0 0 / 10px 10px;
}

.section-blue::before {
  inset: -20%;
  opacity: 0.08;
  background: repeating-linear-gradient(112deg, transparent 0 42px, #fff 43px 45px, transparent 46px 88px);
  transform: translateX(8%);
}

.page-hero > .container,
.section-dark > .container,
.section-blue > .container {
  position: relative;
  z-index: 1;
}

.hero-copy::before {
  content: "";
  width: 290px;
  aspect-ratio: 1;
  position: absolute;
  right: -105px;
  top: -105px;
  pointer-events: none;
  opacity: 0.12;
  background: radial-gradient(circle, var(--orange) 0 2px, transparent 2.5px) 0 0 / 13px 13px;
  -webkit-mask-image: radial-gradient(circle, #000 0 38%, transparent 72%);
  mask-image: radial-gradient(circle, #000 0 38%, transparent 72%);
}

.forge-toggle {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.55rem 0.78rem;
  border: 2px solid #f7f2e8;
  color: #f7f2e8;
  background: #111416;
  box-shadow: 4px 4px 0 var(--orange);
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 160ms ease, background 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.forge-toggle:hover,
.forge-toggle:focus-visible {
  color: var(--ink);
  background: var(--acid);
  box-shadow: 4px 4px 0 #29dfff;
  transform: translate(-2px, -2px);
}

.forge-toggle[aria-pressed="true"] {
  color: var(--ink);
  background: var(--orange);
  box-shadow: 4px 4px 0 #29dfff, 0 0 24px rgba(255, 77, 0, 0.34);
}

.forge-toggle-light {
  width: 8px;
  aspect-ratio: 1;
  border: 1px solid currentColor;
  border-radius: 50%;
  background: #777;
  box-shadow: 0 0 0 rgba(255, 77, 0, 0);
}

.forge-toggle[aria-pressed="true"] .forge-toggle-light {
  background: var(--acid);
  box-shadow: 0 0 10px var(--acid);
  animation: powerLight 1s steps(2, end) infinite;
}

.forge-toggle-short {
  display: none;
}

.forge-burst {
  --burst-x: 50vw;
  --burst-y: 50vh;
  width: 148px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  position: fixed;
  left: var(--burst-x);
  top: var(--burst-y);
  z-index: 95;
  pointer-events: none;
  opacity: 0;
  color: var(--ink);
  background: var(--acid);
  clip-path: polygon(50% 0, 59% 23%, 79% 7%, 77% 31%, 100% 28%, 82% 47%, 100% 61%, 76% 62%, 83% 88%, 59% 74%, 50% 100%, 41% 75%, 17% 91%, 24% 64%, 0 61%, 18% 47%, 0 29%, 24% 31%, 20% 7%, 41% 23%);
  filter: drop-shadow(7px 8px 0 var(--orange)) drop-shadow(0 14px 18px rgba(0, 0, 0, 0.3));
  transform: translate(-50%, -50%) scale(0.2) rotate(-14deg);
}

.forge-burst span {
  max-width: 8ch;
  font-family: var(--display);
  font-size: 1.7rem;
  line-height: 0.86;
  text-align: center;
  text-transform: uppercase;
}

.forge-burst.is-off {
  color: #fff;
  background: #1762ff;
  filter: drop-shadow(7px 8px 0 #29dfff) drop-shadow(0 14px 18px rgba(0, 0, 0, 0.3));
}

.forge-burst.fire {
  animation: comicBurst 720ms cubic-bezier(0.15, 0.9, 0.2, 1) both;
}

.forge-spark {
  width: 6px;
  height: 18px;
  position: fixed;
  left: var(--spark-origin-x);
  top: var(--spark-origin-y);
  z-index: 96;
  pointer-events: none;
  background: var(--orange);
  box-shadow: 0 0 9px rgba(255, 77, 0, 0.75);
  transform: translate(-50%, -50%) rotate(var(--spark-angle));
  animation: sparkFly 660ms ease-out forwards;
}

.forge-spark:nth-of-type(even) {
  background: #29dfff;
  box-shadow: 0 0 9px rgba(41, 223, 255, 0.75);
}

.ticker:hover .ticker-track {
  animation-play-state: paused;
}

.card,
.project-card,
.manifesto-row,
.contact-panel {
  --hot-x: 50%;
  --hot-y: 50%;
}

.card::before,
.project-card::before,
.manifesto-row::before,
.contact-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(circle at var(--hot-x) var(--hot-y), rgba(255, 77, 0, 0.22), transparent 32%);
  mix-blend-mode: multiply;
  transition: opacity 180ms ease;
}

.project-card,
.manifesto-row,
.contact-panel {
  position: relative;
  isolation: isolate;
}

.card:hover::before,
.project-card:hover::before,
.manifesto-row:hover::before,
.contact-panel:hover::before {
  opacity: 1;
}

.hero-mark,
.project-visual {
  --forge-shift-x: 0px;
  --forge-shift-y: 0px;
  --forge-rotate: 0deg;
}

.hero-mark img,
.project-visual img {
  translate: var(--forge-shift-x) var(--forge-shift-y);
  rotate: var(--forge-rotate);
  transition: translate 180ms ease-out, rotate 180ms ease-out, filter 260ms ease;
  will-change: translate, rotate;
}

body.forge-powered .site-header {
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.22), 0 0 28px rgba(41, 223, 255, 0.08);
}

body.forge-powered .hero-mark {
  box-shadow:
    inset 2px 0 0 rgba(255, 77, 0, 0.92),
    inset 5px 0 0 rgba(41, 223, 255, 0.34),
    inset 28px 0 64px -48px rgba(247, 242, 232, 0.8),
    -24px 0 60px rgba(255, 77, 0, 0.17),
    0 0 46px rgba(41, 223, 255, 0.08);
}

body.forge-powered .hero-mark::before,
body.forge-powered .hero-mark::after {
  animation-duration: 8s;
  box-shadow: 0 0 24px rgba(41, 223, 255, 0.12);
}

body.forge-powered .hero-mark img,
body.forge-powered .project-visual img {
  filter:
    drop-shadow(0 28px 48px rgba(0, 0, 0, 0.46))
    drop-shadow(0 0 28px rgba(255, 90, 18, 0.28))
    drop-shadow(0 0 16px rgba(41, 223, 255, 0.14));
}

body.forge-powered .ticker-track {
  animation-duration: 15s;
}

body.forge-powered .btn {
  box-shadow: 5px 5px 0 var(--orange), 9px 9px 0 rgba(41, 223, 255, 0.34);
}

@keyframes signalDrift {
  to { background-position: 24px 16px, 80px 0; }
}

@keyframes powerLight {
  50% { opacity: 0.45; }
}

@keyframes comicBurst {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0.2) rotate(-18deg); }
  34% { opacity: 1; transform: translate(-50%, -50%) scale(1.08) rotate(4deg); }
  72% { opacity: 1; transform: translate(-50%, -50%) scale(0.94) rotate(-2deg); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(1.28) rotate(7deg); }
}

@keyframes sparkFly {
  0% { opacity: 1; transform: translate(-50%, -50%) rotate(var(--spark-angle)) scaleY(0.4); }
  100% { opacity: 0; transform: translate(calc(-50% + var(--spark-x)), calc(-50% + var(--spark-y))) rotate(var(--spark-angle)) scaleY(1.2); }
}

@media (max-width: 1120px) {
  .forge-toggle-label {
    display: none;
  }

  .forge-toggle-short {
    display: inline;
  }
}

@media (max-width: 700px) {
  .nav-shell {
    gap: 0.55rem;
  }

  .forge-toggle {
    min-width: 54px;
    min-height: 40px;
    padding: 0.45rem 0.55rem;
    font-size: 0.55rem;
    box-shadow: 3px 3px 0 var(--orange);
  }

  .forge-toggle-light {
    width: 7px;
  }

  .forge-burst {
    width: 118px;
  }

  .forge-burst span {
    font-size: 1.35rem;
  }

  .page-hero::before {
    width: 84vw;
    right: -34vw;
  }

  body.forge-powered::after {
    opacity: 0.045;
    animation: none;
  }

  body.forge-powered .hero-mark::before,
  body.forge-powered .hero-mark::after {
    animation-duration: 14s;
  }

  .section-dark::before,
  .section-blue::before {
    opacity: 0.055;
  }
}

/* High-contrast mobile command menu */
@media (max-width: 980px) {
  .site-header .site-nav {
    gap: 6px;
    padding: 12px 18px 16px;
    border-bottom: 2px solid var(--orange);
    color: var(--paper-hot);
    background:
      radial-gradient(circle at 88% 0, rgba(255, 77, 0, 0.18), transparent 34%),
      radial-gradient(circle, rgba(41, 223, 255, 0.12) 0 1px, transparent 1.5px) 0 0 / 12px 12px,
      #090b0d;
    box-shadow: 0 5px 0 rgba(41, 223, 255, 0.82), 0 18px 34px rgba(0, 0, 0, 0.34);
  }

  .site-header .site-nav.open {
    animation: mobileMenuReveal 220ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
  }

  .site-header .site-nav a {
    min-height: 58px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 0.62rem;
    align-items: center;
    padding: 0.78rem 0.88rem;
    border: 2px solid rgba(247, 242, 232, 0.34);
    color: #f7f2e8;
    background: rgba(247, 242, 232, 0.055);
    text-shadow: 0 1px 0 #000;
    transition: color 150ms ease, background 150ms ease, border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
  }

  .site-header .site-nav a::before {
    color: #29dfff;
    font-family: var(--mono);
    font-size: 0.55rem;
    letter-spacing: 0.02em;
  }

  .site-header .site-nav a:nth-child(1)::before { content: "01"; }
  .site-header .site-nav a:nth-child(2)::before { content: "02"; }
  .site-header .site-nav a:nth-child(3)::before { content: "03"; }
  .site-header .site-nav a:nth-child(4)::before { content: "04"; }

  .site-header .site-nav a::after {
    content: "";
    width: 7px;
    aspect-ratio: 1;
    border: 1px solid currentColor;
    border-radius: 50%;
    background: #29dfff;
    box-shadow: 0 0 8px rgba(41, 223, 255, 0.72);
  }

  .site-header .site-nav a:hover,
  .site-header .site-nav a:focus-visible {
    border-color: var(--ink);
    color: var(--ink);
    background: var(--acid);
    box-shadow: 4px 4px 0 var(--orange);
    text-shadow: none;
    transform: translate(-1px, -1px);
  }

  .site-header .site-nav a[aria-current="page"] {
    border-color: var(--ink);
    color: var(--ink);
    background: var(--orange);
    box-shadow: inset 0 -4px 0 #29dfff;
    text-shadow: none;
  }

  .site-header .site-nav a[aria-current="page"]::before {
    color: var(--ink);
  }

  .site-header .site-nav a[aria-current="page"]::after {
    background: var(--acid);
    box-shadow: 0 0 8px rgba(217, 255, 67, 0.75);
  }
}

@media (max-width: 700px) {
  .site-header .site-nav {
    padding: 10px 12px 14px;
  }

  .site-header .site-nav a {
    min-height: 56px;
    padding: 0.72rem 0.7rem;
    font-size: 0.66rem;
  }
}

@keyframes mobileMenuReveal {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

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

  body::after,
  .forge-burst,
  .forge-spark {
    display: none !important;
  }
}
