/* =========================================================
   VoxcellDesign LP — Dark / Tech / Voxel
   ========================================================= */

:root {
  --bg: #06070d;
  --bg-2: #0b0e18;
  --bg-3: #11151f;
  --fg: #e8ecf3;
  --fg-2: #aeb6c5;
  --fg-mute: #6b7385;
  --accent: #00e5ff;
  --accent-2: #66f3ff;
  --accent-dim: rgba(0, 229, 255, 0.18);
  --line: #1a2030;
  --line-2: #232a3c;
  --grid: rgba(0, 229, 255, 0.06);

  --font-jp: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", system-ui, sans-serif;
  --font-en: "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Consolas, monospace;

  --max: 1200px;
  --pad: clamp(20px, 4vw, 56px);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-jp);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.8;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse at center, rgba(0,0,0,0.35), transparent 70%);
  z-index: 0;
}

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

::selection { background: var(--accent); color: var(--bg); }

/* =========================================================
   Header
   ========================================================= */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px var(--pad);
  background: linear-gradient(180deg, rgba(6,7,13,0.85) 0%, rgba(6,7,13,0.4) 70%, transparent 100%);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.site-header.scrolled {
  background: rgba(6,7,13,0.85);
  border-bottom-color: var(--line);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-en);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: 0.02em;
}

.brand-glyph {
  color: var(--accent);
  font-size: 20px;
  filter: drop-shadow(0 0 8px var(--accent-dim));
  display: inline-block;
  transform: translateY(-1px);
}

.brand-accent { color: var(--accent); }

.site-nav {
  display: flex;
  gap: clamp(16px, 3vw, 36px);
  font-family: var(--font-en);
  font-size: 14px;
  letter-spacing: 0.04em;
}

.site-nav a {
  position: relative;
  color: var(--fg-2);
  padding: 4px 0;
  transition: color 0.2s ease;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.site-nav a:hover { color: var(--fg); }
.site-nav a:hover::after { transform: scaleX(1); }

/* =========================================================
   Hero
   ========================================================= */
.hero {
  position: relative;
  height: 100vh;
  min-height: 640px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  isolation: isolate;
}

#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-grid-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(180deg, transparent 0%, rgba(6,7,13,0.4) 40%, rgba(6,7,13,0.95) 100%),
    radial-gradient(ellipse at 50% 60%, rgba(0,229,255,0.10), transparent 60%);
  pointer-events: none;
}

.hero-vignette {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  box-shadow: inset 0 0 220px 40px rgba(0,0,0,0.85);
}

.hero-content {
  position: relative;
  z-index: 5;
  text-align: center;
  padding: 0 var(--pad);
  max-width: 1000px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: rgba(0,0,0,0.4);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--fg-2);
  margin-bottom: 28px;
  text-transform: uppercase;
}

.hero-eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.7); }
}

.hero-title {
  font-family: var(--font-jp);
  font-weight: 700;
  font-size: clamp(40px, 8vw, 96px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 28px;
}

.hero-title .line {
  display: block;
  opacity: 0;
  transform: translateY(28px);
  animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}
.hero-title .line:nth-child(1) { animation-delay: 0.15s; }
.hero-title .line:nth-child(2) { animation-delay: 0.35s; }

@keyframes rise {
  to { opacity: 1; transform: translateY(0); }
}

.hero-title .hl {
  position: relative;
  color: var(--fg);
  background: linear-gradient(180deg, var(--accent-2), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 40px var(--accent-dim);
}

.hero-lead {
  font-size: clamp(14px, 1.5vw, 17px);
  color: var(--fg-2);
  line-height: 2;
  margin: 0 auto 36px;
  opacity: 0;
  animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) 0.55s forwards;
}

.hero-meta {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--fg-mute);
  text-transform: uppercase;
  opacity: 0;
  animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) 0.75s forwards;
}

.hero-meta .sep { color: var(--accent); opacity: 0.6; }

.hero-scroll {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  z-index: 5;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.3em;
  color: var(--fg-mute);
}

.hero-scroll-line {
  width: 1px;
  height: 56px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  position: relative;
  overflow: hidden;
}
.hero-scroll-line::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 14px;
  background: var(--accent);
  animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
  0%   { transform: translateY(-100%); opacity: 0; }
  30%  { opacity: 1; }
  100% { transform: translateY(56px); opacity: 0; }
}

/* =========================================================
   Sections (general)
   ========================================================= */
.section {
  position: relative;
  z-index: 5;
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(80px, 12vh, 160px) var(--pad);
}

.section-head {
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: end;
  column-gap: 16px;
  margin-bottom: 56px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.section-num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.2em;
}

.section-tag {
  font-family: var(--font-en);
  font-size: 13px;
  color: var(--fg-mute);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.section-title {
  grid-column: 1 / -1;
  font-family: var(--font-jp);
  font-weight: 700;
  font-size: clamp(28px, 4.5vw, 44px);
  line-height: 1.3;
  letter-spacing: 0.01em;
  margin: 14px 0 0;
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s cubic-bezier(0.2, 0.7, 0.2, 1),
              transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================================
   About
   ========================================================= */
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}

.about-lead p {
  font-size: clamp(15px, 1.4vw, 18px);
  line-height: 2;
  color: var(--fg-2);
  margin: 0 0 1.5em;
}

.about-lead em {
  font-style: normal;
  color: var(--fg);
  background: linear-gradient(transparent 70%, var(--accent-dim) 70%);
  padding: 0 2px;
}

.company-info {
  margin: 0;
  padding: 28px;
  background: linear-gradient(180deg, var(--bg-2), var(--bg));
  border: 1px solid var(--line);
  position: relative;
}

.company-info::before {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  width: 28px;
  height: 28px;
  border-top: 1px solid var(--accent);
  border-left: 1px solid var(--accent);
  pointer-events: none;
}
.company-info::after {
  content: "";
  position: absolute;
  bottom: -1px;
  right: -1px;
  width: 28px;
  height: 28px;
  border-bottom: 1px solid var(--accent);
  border-right: 1px solid var(--accent);
  pointer-events: none;
}

.company-info > div {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 18px;
  padding: 14px 0;
  border-bottom: 1px dashed var(--line-2);
}
.company-info > div:last-child { border-bottom: none; }

.company-info dt {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--fg-mute);
  text-transform: uppercase;
  padding-top: 4px;
}

.company-info dd {
  margin: 0;
  font-size: 14.5px;
  color: var(--fg);
  line-height: 1.7;
}

.award-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.award-list li {
  position: relative;
  padding-left: 14px;
  font-size: 13.5px;
  line-height: 1.6;
}

.award-list li::before {
  content: "▸";
  position: absolute;
  left: 0;
  top: 1px;
  color: var(--accent);
  font-size: 10px;
}

/* =========================================================
   Services
   ========================================================= */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.service-card {
  position: relative;
  padding: 36px 28px 32px;
  background: linear-gradient(180deg, var(--bg-2), var(--bg));
  border: 1px solid var(--line);
  overflow: hidden;
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 80% at 100% 0%, rgba(0,229,255,0.10), transparent 50%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.service-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
}
.service-card:hover::before { opacity: 1; }

.service-icon {
  color: var(--accent);
  margin-bottom: 24px;
  filter: drop-shadow(0 0 10px var(--accent-dim));
}

.service-num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--fg-mute);
  margin-bottom: 8px;
}

.service-card h3 {
  font-family: var(--font-jp);
  font-weight: 700;
  font-size: 20px;
  margin: 0 0 14px;
  letter-spacing: 0.01em;
}

.service-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.9;
  color: var(--fg-2);
}

/* =========================================================
   Works
   ========================================================= */
.works-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.work-item {
  display: grid;
  grid-template-columns: 220px 1fr;
  grid-template-areas:
    "meta title"
    "meta desc";
  column-gap: clamp(24px, 5vw, 64px);
  row-gap: 0;
  padding: 36px 0;
  border-top: 1px solid var(--line);
  transition: background 0.3s ease;
  position: relative;
}

.work-item.has-video {
  grid-template-areas:
    "meta title"
    "meta desc"
    "meta video";
}

.work-meta  { grid-area: meta; }
.work-title { grid-area: title; }
.work-desc  { grid-area: desc; }
.work-video { grid-area: video; }

.work-item:last-child { border-bottom: 1px solid var(--line); }

.work-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.work-item:hover::before { width: 100%; }

.work-item.feature {
  background: linear-gradient(90deg, rgba(0,229,255,0.04), transparent 60%);
}

.work-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 6px;
}

.work-year {
  font-family: var(--font-en);
  font-weight: 600;
  font-size: 32px;
  color: var(--fg);
  line-height: 1;
}

.work-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--accent);
  text-transform: uppercase;
}

.work-title {
  font-family: var(--font-jp);
  font-weight: 700;
  font-size: clamp(22px, 2.6vw, 30px);
  margin: 0 0 14px;
  letter-spacing: 0.01em;
}

.work-desc {
  margin: 0;
  font-size: 14.5px;
  line-height: 2;
  color: var(--fg-2);
  max-width: 720px;
}

.work-video {
  margin-top: 28px;
  position: relative;
  aspect-ratio: 16 / 9;
  width: 100%;
  max-width: 480px;
  background: #000;
  border: 1px solid var(--line);
  overflow: hidden;
}

.work-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* =========================================================
   Footer
   ========================================================= */
.site-footer {
  position: relative;
  z-index: 5;
  margin-top: 80px;
  padding: 48px var(--pad) 36px;
  border-top: 1px solid var(--line);
  text-align: center;
  background: linear-gradient(180deg, transparent, rgba(0,229,255,0.03));
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-en);
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 12px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  font-size: 13px;
  color: var(--fg-2);
  letter-spacing: 0.02em;
}

.footer-links a {
  color: var(--fg-2);
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.footer-links a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.footer-links .sep {
  color: var(--fg-mute);
}

.footer-copy {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-mute);
  letter-spacing: 0.12em;
}


/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 880px) {
  .about-grid { grid-template-columns: 1fr; }
  .service-grid { grid-template-columns: 1fr; }
  .work-item {
    grid-template-columns: 1fr;
    grid-template-areas:
      "meta"
      "title"
      "desc";
    row-gap: 14px;
  }
  .work-item.has-video {
    grid-template-areas:
      "meta"
      "title"
      "desc"
      "video";
  }
  .work-meta { flex-direction: row; align-items: baseline; gap: 14px; }
  .work-year { font-size: 24px; }
  .work-video { margin-top: 8px; }
}

@media (max-width: 560px) {
  .site-nav { gap: 16px; font-size: 12px; }
  .brand-mark { font-size: 16px; }
  .hero-meta { font-size: 10px; gap: 8px; }
  .company-info > div { grid-template-columns: 90px 1fr; gap: 12px; }
}

/* =========================================================
   Legal pages (privacy, terms, etc.)
   ========================================================= */
body.legal {
  /* hide the global background grid for legal pages — keeps focus on the text */
}
body.legal::before {
  opacity: 0.4;
}

.legal-page {
  position: relative;
  z-index: 5;
  max-width: 860px;
  margin: 0 auto;
  padding: clamp(120px, 14vh, 180px) var(--pad) clamp(80px, 10vh, 120px);
}

.legal-hero {
  margin-bottom: clamp(48px, 6vw, 80px);
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line);
}

.legal-eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 18px;
}

.legal-title {
  font-family: var(--font-jp);
  font-weight: 700;
  font-size: clamp(28px, 4.5vw, 44px);
  line-height: 1.3;
  margin: 0 0 16px;
  letter-spacing: 0.01em;
}

.legal-meta {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--fg-mute);
  text-transform: uppercase;
}

.legal-body {
  font-size: 14.5px;
  line-height: 2;
  color: var(--fg-2);
}

.legal-lead {
  margin: 0 0 40px;
  padding: 20px 24px;
  border-left: 2px solid var(--accent);
  background: linear-gradient(90deg, rgba(0,229,255,0.04), transparent 80%);
  font-size: 15px;
  color: var(--fg);
}

.legal-body h2 {
  font-family: var(--font-jp);
  font-weight: 700;
  font-size: clamp(17px, 2vw, 20px);
  margin: 56px 0 16px;
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--line-2);
  color: var(--fg);
  letter-spacing: 0.01em;
}

.legal-body p {
  margin: 0 0 1.2em;
}

.legal-body ul {
  margin: 0 0 1.6em;
  padding: 0;
  list-style: none;
}

.legal-body ul li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 8px;
}
.legal-body ul li::before {
  content: "▸";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
  font-size: 10px;
  line-height: 2.2;
}

.legal-body a {
  color: var(--fg);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 1px;
  transition: color 0.2s ease;
}
.legal-body a:hover {
  color: var(--accent);
}

.legal-contact {
  display: block;
  margin: 16px 0 0;
  padding: 20px 22px;
  border: 1px solid var(--line);
  background: var(--bg-2);
  font-style: normal;
  font-size: 14px;
  line-height: 2;
}

.legal-back {
  margin-top: clamp(48px, 6vw, 80px);
  padding-top: 24px;
  border-top: 1px solid var(--line);
  text-align: center;
}
.legal-back a {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--fg-2);
  text-transform: uppercase;
}
.legal-back a:hover {
  color: var(--accent);
}

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