/* The original phosphor-screen identity, layered over the accessible page layout. */
@font-face {
  font-family: "Green Screen";
  src: url("/fonts/sys.ttf") format("truetype");
  font-display: swap;
}
@font-face {
  font-family: "Terminal";
  src: url("/fonts/terminal_copy.ttf") format("truetype");
  font-display: swap;
}
:root {
  --bg: #060e09;
  --surface: #0b1c10;
  --text: #c9f8d6;
  --muted: #a2c9ae;
  --green: #69f59e;
  --line: #25442f;
  --display: "Green Screen", "SFMono-Regular", Consolas, monospace;
  --terminal: "Terminal", "SFMono-Regular", Consolas, monospace;
  font-family: var(--mono);
  background: #030705;
}
html {
  scroll-padding-top: 152px;
}
body {
  min-height: 100vh;
  padding: 18px 12px 28px;
  background:
    radial-gradient(ellipse at 50% 0%, #17371e66, transparent 60%), var(--bg);
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: url("/images/tanuki-background.webp") center / cover no-repeat;
  opacity: 0.025;
  pointer-events: none;
  z-index: 0;
}
main,
.site-footer {
  position: relative;
}
.crt-effects {
  position: fixed;
  inset: 0;
  overflow: hidden;
  z-index: 50;
  pointer-events: none;
}
.crt-effects > div {
  position: absolute;
  inset: 0;
}
.crt-grain {
  background: url("/images/crt-noise.svg") repeat;
  opacity: 0.045;
  animation: crt-static 240ms steps(1, end) infinite;
}
.crt-effects > .crt-grain {
  inset: -8px;
}
.crt-scanlines {
  background:
    repeating-linear-gradient(0deg, #0000 0px, #0000 2px, #0005 2px, #0005 3px),
    linear-gradient(90deg, #ff000004, #00ff0004, #0000ff04);
  background-size:
    auto,
    3px 100%;
  opacity: 0.62;
  animation: crt-tracking 4.7s steps(1, end) infinite;
}
.crt-flicker {
  background: #000803;
  opacity: 0;
  animation: crt-flicker 2.9s steps(1, end) infinite;
}
.crt-sweep {
  background: linear-gradient(
    transparent 35%,
    #98ffbb07 48%,
    #baffce0c 50%,
    transparent 66%
  );
  animation: scan-pass 16s linear infinite;
  will-change: transform;
}
.crt-glass {
  border-radius: 3% / 4%;
  box-shadow:
    inset 0 0 80px 12px #0006,
    inset 0 0 8px 2px #6ffc9929;
  background: radial-gradient(ellipse at 50% 45%, transparent 60%, #0005 100%);
}
.crt-bezel {
  background: url("/images/crt.png") center / 100% 100% no-repeat;
}
@keyframes scan-pass {
  from {
    transform: translateY(-100%);
  }
  to {
    transform: translateY(100%);
  }
}
/* Composite decorative layers only: the content and click targets stay still. */
@keyframes crt-static {
  0%,
  100% {
    transform: translate(0, 0);
  }
  25% {
    transform: translate(-5px, 3px);
  }
  50% {
    transform: translate(4px, -5px);
  }
  75% {
    transform: translate(-3px, -2px);
  }
}
@keyframes crt-tracking {
  0%,
  43%,
  47%,
  100% {
    transform: translateY(0);
  }
  44%,
  46% {
    transform: translateY(1px);
  }
  45% {
    transform: translateY(-1px);
  }
}
@keyframes crt-flicker {
  0%,
  8%,
  15%,
  34%,
  53%,
  72%,
  100% {
    opacity: 0.02;
  }
  7%,
  33%,
  71% {
    opacity: 0.07;
  }
  14%,
  52% {
    opacity: 0.13;
  }
  40%,
  81% {
    opacity: 0.04;
  }
  41%,
  82% {
    opacity: 0.01;
  }
}
.site-header {
  top: 18px;
  background: #07120bf5;
  border: 1px solid #31553d;
  border-radius: 8px 8px 0 0;
  box-shadow: 0 0 22px #4dff9b0a;
}
.header-inner {
  min-height: 72px;
}
.brand {
  font-family: var(--terminal);
  font-size: 24px;
  font-weight: 400;
  letter-spacing: 0;
  color: #d7ffe4;
}
.brand-accent,
.brand-period {
  color: var(--green);
}
.brand img {
  filter: drop-shadow(0 0 6px #6af59e88);
}
.primary-nav {
  font-family: var(--mono);
  font-size: 13px;
  gap: 27px;
}
.primary-nav > a:not(.nav-contact)::before {
  content: "> ";
  color: #54936b;
}
.primary-nav a[aria-current]::before,
.primary-nav a:hover::before {
  color: var(--green);
}
.primary-nav .nav-contact {
  border-color: #3f7852;
  border-radius: 1px;
  font-size: 12px;
}
.screen-toolbar {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 39px;
  border-top: 1px solid var(--line);
  font: 9px/1.5 var(--mono);
  letter-spacing: 1.2px;
  color: #83ac91;
}
.screen-channel {
  color: var(--green);
}
.screen-signal {
  display: flex;
  gap: 7px;
  align-items: center;
  margin-left: auto;
}
.screen-signal i {
  width: 4px;
  height: 4px;
  background: var(--green);
}
.crt-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 36px;
  min-width: 90px;
  padding: 6px;
  background: transparent;
  color: var(--green);
  font: 10px var(--mono);
  border: 0;
  border-left: 1px solid var(--line);
}
.crt-toggle:hover {
  background: #71ff9e10;
}
.crt-toggle[aria-pressed="false"] {
  color: var(--muted);
}
.hero {
  padding-block: 68px 62px;
}
.eyebrow {
  font-family: var(--terminal);
  letter-spacing: 1.6px;
}
h1,
h2 {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: 0;
  text-transform: uppercase;
}
h1 {
  font-size: clamp(36px, 4.7vw, 64px);
  line-height: 1.05;
}
h2 {
  font-size: clamp(31px, 3.2vw, 45px);
  line-height: 1.13;
}
.hero-description {
  font-size: 14px;
  line-height: 1.95;
  max-width: 495px;
}
.hero-note {
  font-size: 10px;
}
body[data-crt="on"] :is(h1, h2, .brand) {
  text-shadow:
    0 0 3px #77ffa844,
    0 0 15px #77ffa82b;
}
body[data-crt="on"]
  :is(.eyebrow, .project-title h3, .primary-nav a, .service-icon) {
  text-shadow: 0 0 9px #69f59e40;
}
.button {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 400;
  border-radius: 1px;
}
.button-primary {
  background: #6af49d;
  color: #062010;
  border: 1px solid #aaffc8;
  box-shadow: 0 0 18px #6af49d20;
}
.button-primary:hover {
  background: #aaffc8;
  box-shadow: 0 0 25px #6af49d40;
}
.button-quiet {
  color: #b7edc8;
}
.button-quiet:hover {
  border-color: #4f8a61;
}
.studio-visual {
  border: 1px solid #457c53;
  border-radius: 22px / 18px;
  overflow: hidden;
  background: #05150c;
  box-shadow:
    0 0 0 6px #030a05,
    0 0 0 7px #243a2a,
    0 0 35px #63ff9820,
    inset 0 0 40px #000;
}
.visual-topline,
.visual-bottomline {
  position: relative;
  z-index: 2;
  font-family: var(--terminal);
  font-size: 10px;
  color: #80c59b;
  background: #0b1c10;
}
.visual-topline {
  padding-block: 18px;
}
.visual-bottomline {
  padding-block: 18px;
}
.visual-stage {
  background-image:
    linear-gradient(#72ff9c08 1px, transparent 1px),
    linear-gradient(90deg, #72ff9c08 1px, transparent 1px),
    radial-gradient(ellipse, #2a75452e, transparent 70%);
  box-shadow: inset 0 0 45px #0009;
}
.hero-mark {
  filter: saturate(0.6) drop-shadow(0 0 25px #4dff8e66);
}
.visual-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent 0px,
    transparent 2px,
    #062b1280 3px,
    #062b1280 4px
  );
  pointer-events: none;
  opacity: 0.45;
  z-index: 3;
}
.coordinate {
  color: #82b48f;
}
.trusted {
  border-color: #31523b;
}
.trusted .eyebrow {
  font-family: var(--mono);
}
.client-list a {
  font-family: var(--terminal);
  font-size: 16px;
  font-weight: 400;
  color: #a7d4b6;
  letter-spacing: 0;
}
.section-heading > p {
  font-size: 12px;
  line-height: 1.9;
}
.project-card {
  border: 1px solid #2f573c;
  background: #08160c;
  border-radius: 2px;
}
.project-card:hover {
  border-color: var(--green);
  box-shadow: 0 0 20px #75ffa414;
  transform: translateY(-3px);
}
.project-art {
  filter: grayscale(1) sepia(1) hue-rotate(70deg) saturate(0.65);
  background: #112c19 !important;
  color: #9feab5 !important;
}
.project-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #3dfa7d1a;
  mix-blend-mode: color;
  pointer-events: none;
}
.project-title h3 {
  font-family: var(--terminal);
  font-size: 19px;
  font-weight: 400;
  color: var(--green);
  letter-spacing: 0;
}
.project-body p {
  font-size: 13px;
  line-height: 1.9;
  min-height: 76px;
}
.project-body {
  border-top: 1px solid #31583b;
}
.tags li {
  color: #9ac9a9;
  border-color: #284d34;
  border-radius: 0;
}
.services-section {
  background: #091b0e;
  border-color: #294a32;
}
.service h3,
.values h3 {
  font-family: var(--terminal);
  color: #b6f9cd;
  font-weight: 400;
  font-size: 17px;
  letter-spacing: 0;
}
.service p,
.values p {
  font-size: 13px;
  line-height: 1.9;
}
.service {
  border-top-color: #3c704b;
}
.about-intro > p:not(.eyebrow) {
  font-size: 13px;
  line-height: 1.95;
}
.about-intro h2 > span {
  color: #85bf95;
}
.text-link {
  font-size: 12px;
}
.contact-panel {
  border-color: #467853;
  border-radius: 2px;
  background: #0b2212;
  box-shadow:
    inset 0 0 70px #0004,
    0 0 24px #6aff9820;
}
.contact-panel h2 {
  font-size: clamp(34px, 3.5vw, 50px);
}
.contact-panel p:not(.eyebrow):not(.copy-status) {
  font-size: 12px;
  line-height: 1.9;
  color: #a3cdb1;
}
.site-footer {
  padding-block: 30px 20px;
}
.footer-brand {
  font-size: 20px;
}
body[data-crt="off"] .crt-effects,
body[data-crt="off"]::before,
body[data-crt="off"] .visual-stage::after {
  display: none;
}
body[data-crt="off"] .studio-visual,
body[data-crt="off"] .contact-panel,
body[data-crt="off"] .button-primary {
  box-shadow: none;
}
@media (max-width: 1100px) {
  .primary-nav {
    gap: 20px;
  }
  .client-list a {
    font-size: 14px;
  }
  .project-body p {
    min-height: 92px;
  }
}
@media (max-width: 800px) {
  .primary-nav {
    gap: 12px;
    font-size: 11px;
  }
  .primary-nav .nav-contact {
    font-size: 10px;
    padding-inline: 12px;
  }
  .brand {
    font-size: 22px;
    gap: 7px;
  }
  .hero {
    padding-block: 46px;
  }
  h1 {
    font-size: clamp(46px, 7.8vw, 66px);
  }
  .studio-visual {
    width: calc(100% - 14px);
    margin-inline: 7px;
  }
  .project-body p {
    min-height: 72px;
  }
  .contact-panel {
    flex-wrap: wrap;
  }
  .contact-panel h2 {
    font-size: 40px;
  }
  .contact-actions {
    padding-top: 12px;
  }
}
@media (max-width: 600px) {
  html {
    scroll-padding-top: 138px;
  }
  body {
    padding: 10px 0 20px;
  }
  .site-header {
    top: 10px;
    margin-inline: 10px;
    border-radius: 5px 5px 0 0;
  }
  .header-inner {
    min-height: 60px;
    padding-block: 10px;
    gap: 0 10px;
  }
  .site-header .container {
    width: calc(100% - 24px);
  }
  .brand {
    font-size: 20px;
  }
  .brand img {
    width: 27px;
    height: 27px;
  }
  .screen-toolbar {
    gap: 8px;
    min-height: 38px;
    font-size: 8px;
    letter-spacing: 0.5px;
  }
  .screen-signal {
    display: none;
  }
  .crt-toggle {
    margin-left: auto;
    min-height: 38px;
    min-width: 84px;
    font-size: 9px;
  }
  .primary-nav {
    padding-top: 12px;
    gap: 10px;
  }
  .primary-nav a {
    font-size: 11px;
  }
  .primary-nav .nav-contact {
    font-size: 11px;
    padding-inline: 0;
  }
  .primary-nav a:not(.nav-contact)::before {
    content: none;
  }
  .hero {
    padding-block: 38px;
    gap: 35px;
  }
  h1 {
    font-size: clamp(27px, 8.3vw, 45px);
  }
  .hero .eyebrow {
    font-size: 9px;
    letter-spacing: 1px;
  }
  .hero-description {
    font-size: 12px;
    line-height: 1.95;
  }
  .hero-actions {
    gap: 4px;
  }
  .hero-actions .button {
    font-size: 10px;
    padding-inline: 12px;
    gap: 12px;
  }
  .hero-note {
    font-size: 8px;
    gap: 6px;
  }
  .visual-topline,
  .visual-bottomline {
    font: 8px var(--mono);
    padding-block: 14px;
  }
  h2 {
    font-size: 32px;
  }
  .section-index {
    font-size: 9px;
  }
  .section-heading > p {
    font-size: 11px;
  }
  .project-title h3 {
    font-size: 20px;
  }
  .project-body p {
    min-height: 0;
    font-size: 12px;
  }
  .project-body {
    padding: 22px 20px;
  }
  .client-list a {
    font-size: 14px;
  }
  .client-list {
    column-gap: 22px;
  }
  .service h3,
  .values h3 {
    font-size: 16px;
    line-height: 1.6;
  }
  .service p,
  .values p {
    font-size: 12px;
  }
  .service {
    grid-template-columns: 34px 1fr;
    column-gap: 12px;
  }
  .service-icon {
    font-size: 23px;
  }
  .about-intro > p:not(.eyebrow) {
    font-size: 12px;
  }
  .text-link {
    font-size: 10px;
  }
  .contact-panel h2 {
    font-size: clamp(28px, 8vw, 39px);
  }
  .contact-panel p:not(.eyebrow):not(.copy-status) {
    font-size: 11px;
  }
  .contact-panel {
    padding-inline: 20px;
  }
  .contact-panel .eyebrow {
    font-size: 8px;
  }
  .crt-glass {
    box-shadow:
      inset 0 0 45px 8px #0005,
      inset 0 0 6px #6ffc9929;
  }
  .crt-bezel {
    opacity: 0.7;
  }
  .site-footer {
    padding-inline: 4px;
  }
  .site-footer > div {
    font-size: 11px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .crt-sweep,
  .crt-flicker {
    display: none;
    animation: none;
  }
  .crt-grain,
  .crt-scanlines {
    animation: none;
    transform: none;
  }
  .project-card:hover {
    transform: none;
  }
}
