:root {
  --bg: #0c0f14;
  --bg-elevated: #141a24;
  --text: #e8ecf4;
  --text-muted: #8b95a8;
  --accent: #ff7a3d;
  --accent-soft: rgba(255, 122, 61, 0.15);
  --teal: #3dd6c3;
  --teal-soft: rgba(61, 214, 195, 0.12);
  --border: rgba(255, 255, 255, 0.08);
  --font-display: "Syne", sans-serif;
  --font-body: "Noto Sans JP", sans-serif;
  --radius: 12px;
  --header-h: 72px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

/* Noise overlay */
.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1000;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  padding: 0 clamp(1.25rem, 4vw, 3rem);
  background: rgba(12, 15, 20, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.logo-mark {
  color: var(--accent);
  font-size: 0.85rem;
}

.site-nav {
  display: flex;
  gap: clamp(1rem, 3vw, 2rem);
}

.site-nav a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s;
}

.site-nav a:hover {
  color: var(--text);
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--header-h) + 3rem) clamp(1.25rem, 5vw, 4rem) 4rem;
  max-width: 52rem;
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}

.hero-glow--a {
  width:  min(60vw, 420px);
  height: min(60vw, 420px);
  top: 10%;
  right: -10%;
  background: var(--accent-soft);
}

.hero-glow--b {
  width: min(50vw, 320px);
  height: min(50vw, 320px);
  bottom: 20%;
  left: -5%;
  background: var(--teal-soft);
}

.hero-eyebrow {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 1.25rem;
  opacity: 0;
  animation: fade-up 0.7s ease forwards;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 8vw, 4.25rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}

.hero-line {
  display: block;
  opacity: 0;
  animation: fade-up 0.7s ease forwards;
}

.hero-line:nth-child(1) { animation-delay: 0.1s; }
.hero-line:nth-child(2) { animation-delay: 0.2s; }
.hero-line:nth-child(3) { animation-delay: 0.3s; }

.hero-line--accent {
  color: var(--accent);
}

.hero-lead {
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  color: var(--text-muted);
  max-width: 36rem;
  margin-bottom: 2rem;
  opacity: 0;
  animation: fade-up 0.7s ease 0.4s forwards;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  opacity: 0;
  animation: fade-up 0.7s ease 0.5s forwards;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.5rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 700;
  border-radius: 999px;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.btn--primary {
  background: var(--accent);
  color: #0c0f14;
  box-shadow: 0 4px 24px var(--accent-soft);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(255, 122, 61, 0.35);
}

.btn--ghost {
  border: 1px solid var(--border);
  color: var(--text);
}

.btn--ghost:hover {
  border-color: var(--teal);
  color: var(--teal);
}

/* Sections */
section {
  padding: clamp(4rem, 10vw, 7rem) clamp(1.25rem, 5vw, 4rem);
}

.section-inner {
  max-width: 72rem;
  margin: 0 auto;
}

.section-label {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

/* Philosophy */
.philosophy {
  background: linear-gradient(180deg, transparent, var(--bg-elevated) 30%, transparent);
}

.philosophy-quote {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 500;
  line-height: 1.6;
  max-width: 32rem;
  margin-bottom: 2rem;
  border: none;
}

.philosophy-quote em {
  font-style: normal;
  color: var(--teal);
}

.philosophy-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.philosophy-pills li {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  font-weight: 500;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 999px;
}

/* About */
.about-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.about-heading {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 1.25rem;
}

.about-copy p {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.about-copy p:last-child {
  margin-bottom: 0;
}

.pixel-card {
  position: relative;
  padding: 2rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.4);
}

.pixel-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  margin-right: 6px;
  margin-bottom: 1.5rem;
}

.pixel-dot--r { background: #e74c3c; }
.pixel-dot--g { background: #2ecc71; }
.pixel-dot--b { background: #3498db; }

.pixel-label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.pixel-game {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent);
}

/* Services */
.services-intro {
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.service-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.service-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1.75rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 122, 61, 0.35);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.service-card--video:hover {
  border-color: rgba(61, 214, 195, 0.35);
}

.service-tag {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.service-name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.service-desc {
  flex: 1;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.service-link {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent);
}

.service-card--video .service-link {
  color: var(--teal);
}

/* CTA */
.cta {
  padding-bottom: 5rem;
}

.cta-inner {
  text-align: center;
  padding: 3rem 2rem;
  background: linear-gradient(135deg, var(--accent-soft), var(--teal-soft));
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.cta-text {
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  font-weight: 500;
  margin-bottom: 1.5rem;
}

/* Footer */
.site-footer {
  padding: 2rem clamp(1.25rem, 5vw, 4rem);
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer-brand {
  font-family: var(--font-display);
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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