@charset "UTF-8";

/* ==========================================================================
   Variables
   ========================================================================== */
:root {
  --bg-primary: #0a0a0b;
  --bg-secondary: #111113;
  --text-primary: #fafafa;
  --text-muted: #6a6a6f;
  --accent-cyan: #00fff0;
  --accent-magenta: #ff00aa;
  --accent-blue: #3d5afe;
  --font-en: 'Darker Grotesque', sans-serif;
  --font-jp: 'Zen Kaku Gothic New', sans-serif;
}

/* ==========================================================================
   Reset & Base
   ========================================================================== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-jp);
  overflow-x: hidden;
  line-height: 1.7;
}

/* Custom Cursor Base - index uses crosshair, about doesn't implicitly specify but fine to share or override */
body.home-body {
  cursor: crosshair;
}

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

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

/* Animations */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

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

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

@keyframes float {

  0%,
  100% {
    transform: translate(0, 0) rotate(0deg) scale(1);
  }

  25% {
    transform: translate(50px, -50px) rotate(90deg) scale(1.1);
  }

  50% {
    transform: translate(-30px, 30px) rotate(180deg) scale(0.95);
  }

  75% {
    transform: translate(40px, 20px) rotate(270deg) scale(1.05);
  }
}

@keyframes rotate {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }

  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.1);
    opacity: 0.5;
  }
}

@keyframes symbolRotate {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

/* Common Classes */
.visible {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* ==========================================================================
   Navigation
   ========================================================================== */
nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 2rem 4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
  /* Default mix-blend-mode for index, overridden for subpages via classes or specific overrides */
  transition: background 0.3s ease, padding 0.3s ease;
}

/* Style for Home Page Nav */
body.home-body nav {
  mix-blend-mode: difference;
}

/* Style for Sub Page Nav */
body.sub-body nav {
  background: rgba(10, 10, 11, 0.9);
  backdrop-filter: blur(10px);
}

.logo {
  font-family: var(--font-en);
  font-weight: 900;
  font-size: 0.9rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-primary);
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 3rem;
  list-style: none;
}

.nav-links a {
  font-family: var(--font-en);
  font-weight: 500;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-primary);
  text-decoration: none;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent-cyan);
  transition: width 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

/* Mobile Menu Button */
.menu-btn {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  padding: 12px;
  margin: -12px;
  z-index: 101;
}

.menu-btn span {
  display: block;
  width: 24px;
  height: 1px;
  background: var(--text-primary);
  transition: all 0.3s ease;
}

.menu-btn.active span:first-child {
  transform: rotate(45deg) translate(4px, 4px);
}

.menu-btn.active span:last-child {
  transform: rotate(-45deg) translate(4px, -4px);
}

/* Mobile Menu Overlay */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-primary);
  z-index: 99;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.mobile-menu.active {
  opacity: 1;
  visibility: visible;
}

.mobile-nav-links {
  list-style: none;
  text-align: center;
}

.mobile-nav-links li {
  margin: 2rem 0;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.mobile-menu.active .mobile-nav-links li {
  opacity: 1;
  transform: translateY(0);
}

.mobile-menu.active .mobile-nav-links li:nth-child(1) {
  transition-delay: 0.1s;
}

.mobile-menu.active .mobile-nav-links li:nth-child(2) {
  transition-delay: 0.15s;
}

.mobile-menu.active .mobile-nav-links li:nth-child(3) {
  transition-delay: 0.2s;
}

.mobile-menu.active .mobile-nav-links li:nth-child(4) {
  transition-delay: 0.25s;
}

.mobile-nav-links a {
  font-family: var(--font-en);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-primary);
  text-decoration: none;
  padding: 0.75rem 1.5rem;
  display: inline-block;
  position: relative;
}

.mobile-nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 1px;
  background: var(--accent-cyan);
  transition: width 0.3s ease;
}

.mobile-nav-links a:hover::after,
.mobile-nav-links a:active::after,
.mobile-nav-links a.active::after {
  width: 60%;
}

body.menu-open nav {
  mix-blend-mode: normal;
}

/* ==========================================================================
   Home Page Specifics
   ========================================================================== */
/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  padding: 0 4rem;
  overflow: hidden;
}

.abstract-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  animation: float 20s ease-in-out infinite;
}

.blob-1 {
  width: 600px;
  height: 600px;
  background: linear-gradient(135deg, var(--accent-cyan), transparent);
  top: -200px;
  right: -100px;
  animation-delay: 0s;
}

.blob-2 {
  width: 500px;
  height: 500px;
  background: linear-gradient(225deg, var(--accent-magenta), transparent);
  bottom: -150px;
  left: -100px;
  animation-delay: -7s;
}

.blob-3 {
  width: 400px;
  height: 400px;
  background: linear-gradient(45deg, var(--accent-blue), transparent);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation-delay: -14s;
}

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 100px 100px;
  mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
}

.hero-content {
  position: relative;
  z-index: 10;
}

.hero-eyebrow {
  font-family: var(--font-en);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeUp 1s cubic-bezier(0.23, 1, 0.32, 1) 0.3s forwards;
}

.hero-title {
  font-family: var(--font-en);
  font-size: clamp(4rem, 12vw, 14rem);
  font-weight: 900;
  line-height: 0.85;
  letter-spacing: -0.03em;
  margin-bottom: 3rem;
}

.hero-title span {
  display: block;
  overflow: hidden;
}

.hero-title .line {
  display: block;
  opacity: 0;
  transform: translateY(100%);
  animation: slideUp 1.2s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

.hero-title .line:nth-child(1) {
  animation-delay: 0.1s;
}

.hero-title .line:nth-child(2) {
  animation-delay: 0.2s;
}

.hero-title .stroke {
  -webkit-text-stroke: 1px var(--text-primary);
  color: transparent;
}

.hero-subtitle {
  font-family: var(--font-jp);
  font-size: 1.2rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  max-width: 500px;
  opacity: 0;
  animation: fadeUp 1s cubic-bezier(0.23, 1, 0.32, 1) 0.6s forwards;
}

/* Floating Elements */
.floating-text {
  position: absolute;
  font-family: var(--font-en);
  font-weight: 400;
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-muted);
  writing-mode: vertical-rl;
  opacity: 0;
  animation: fadeUp 1s cubic-bezier(0.23, 1, 0.32, 1) 1s forwards;
}

.floating-text.left {
  left: 2rem;
  bottom: 15%;
}

.floating-text.right {
  right: 2rem;
  top: 30%;
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 4rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  opacity: 0;
  animation: fadeUp 1s cubic-bezier(0.23, 1, 0.32, 1) 1.2s forwards;
}

.scroll-indicator span {
  font-family: var(--font-en);
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.scroll-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, var(--text-muted), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {

  0%,
  100% {
    transform: scaleY(1);
    opacity: 1;
  }

  50% {
    transform: scaleY(0.5);
    opacity: 0.5;
  }
}

/* Section Base */
section {
  padding: 10rem 4rem;
  position: relative;
}

/* Philosophy Section */
.philosophy {
  background: var(--bg-secondary);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8rem;
  align-items: center;
}

.philosophy-visual {
  position: relative;
  height: 600px;
}

.rotating-text {
  position: absolute;
  width: 300px;
  height: 300px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: rotate 30s linear infinite;
}

.rotating-text svg {
  width: 100%;
  height: 100%;
}

.rotating-text text {
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  fill: var(--text-muted);
}

.philosophy-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120px;
  height: 120px;
  border: 1px solid var(--accent-cyan);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.philosophy-center::before {
  content: '';
  position: absolute;
  inset: 10px;
  border: 1px solid var(--accent-magenta);
  border-radius: 50%;
  animation: pulse 3s ease-in-out infinite;
}

.philosophy-center span {
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 0.6rem;
  letter-spacing: 0.2em;
}

.section-label {
  font-family: var(--font-en);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  margin-bottom: 2rem;
}

.philosophy-content h2 {
  font-family: var(--font-jp);
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1.6;
  margin-bottom: 3rem;
  letter-spacing: 0.05em;
}

.philosophy-content h2 em {
  font-style: normal;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-magenta));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.philosophy-text {
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--text-muted);
  line-height: 2.2;
  letter-spacing: 0.08em;
}

/* Services Section */
.services {
  background: var(--bg-primary);
}

.services-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 6rem;
}

.services-title {
  font-family: var(--font-en);
  font-size: clamp(3rem, 8vw, 8rem);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.02em;
}

.services-title .outline {
  -webkit-text-stroke: 1px var(--text-primary);
  color: transparent;
}

.services-count {
  font-family: var(--font-en);
  font-size: 0.8rem;
  letter-spacing: 0.3em;
  color: var(--text-muted);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, 0.1);
}

.service-item {
  background: var(--bg-primary);
  padding: 4rem 3rem;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: background 0.5s ease;
}

.service-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-magenta));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.service-item:hover::before {
  transform: scaleX(1);
}

.service-item:hover {
  background: var(--bg-secondary);
}

.service-number {
  font-family: var(--font-en);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--accent-cyan);
  margin-bottom: 1.5rem;
}

.service-title {
  font-family: var(--font-en);
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.service-title-jp {
  font-family: var(--font-jp);
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  margin-bottom: 1.5rem;
}

.service-desc {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-muted);
  line-height: 2;
  letter-spacing: 0.05em;
}

/* CEO Section (Home) */
.ceo {
  background: var(--bg-secondary);
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 0;
  padding: 0;
  min-height: 100vh;
}

/* Use shared styles for CEO internals where possible, but home page layout is unique */
.ceo-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Home CEO Visual background */
.ceo>.ceo-visual {
  background: linear-gradient(135deg, rgba(0, 255, 240, 0.05), rgba(255, 0, 170, 0.05));
}

.ceo-symbol {
  width: 200px;
  height: 200px;
  position: relative;
}

.ceo-symbol::before,
.ceo-symbol::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid;
  animation: symbolRotate 20s linear infinite;
}

.ceo-symbol::before {
  border-color: var(--accent-cyan);
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
}

.ceo-symbol::after {
  border-color: var(--accent-magenta);
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
  animation-direction: reverse;
  animation-duration: 15s;
}

/* .ceo-content common class placeholder removed */


.ceo>.ceo-content {
  padding: 10rem 6rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.ceo-title {
  font-family: var(--font-en);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  margin-bottom: 3rem;
}

.ceo-name {
  font-family: var(--font-jp);
  font-size: 2.8rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  margin-bottom: 0.5rem;
}

.ceo-name-en {
  font-family: var(--font-en);
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 3rem;
}

.ceo-quote {
  font-family: var(--font-jp);
  font-size: 1.15rem;
  font-weight: 400;
  line-height: 2.4;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  border-left: 1px solid var(--accent-cyan);
  padding-left: 2rem;
}

/* Contact Section (Home) */
.contact {
  background: var(--bg-primary);
  text-align: center;
  padding: 15rem 4rem;
  position: relative;
}

.contact::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 100px;
  background: linear-gradient(to bottom, transparent, var(--text-muted));
}

.contact-label {
  font-family: var(--font-en);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 3rem;
}

.contact-title {
  font-family: var(--font-en);
  font-size: clamp(2rem, 6vw, 5rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.contact-title a {
  color: var(--text-primary);
  text-decoration: none;
  position: relative;
  transition: color 0.3s ease;
}

.contact-title a:hover {
  color: var(--accent-cyan);
}

.contact-sub {
  font-family: var(--font-jp);
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 0.1em;
}

/* ==========================================================================
   About Page Specifics
   ========================================================================== */
/* Page Header */
.page-header {
  min-height: 50vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 4rem 6rem;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  top: 0;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 255, 240, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.page-header-content {
  position: relative;
  z-index: 10;
}

.page-label {
  font-family: var(--font-en);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp 1s cubic-bezier(0.23, 1, 0.32, 1) 0.2s forwards;
}

.page-title {
  font-family: var(--font-en);
  font-size: clamp(3rem, 10vw, 8rem);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.02em;
  opacity: 0;
  animation: fadeUp 1s cubic-bezier(0.23, 1, 0.32, 1) 0.3s forwards;
}

/* Company Info Section */
.company-info {
  background: var(--bg-secondary);
  padding: 8rem 4rem;
}

.company-grid {
  max-width: 1200px;
  margin: 0 auto;
}

.info-table {
  width: 100%;
  border-collapse: collapse;
}

.info-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.info-row.visible {
  opacity: 1;
  transform: translateY(0);
}

.info-label {
  font-family: var(--font-jp);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 2rem 0;
  letter-spacing: 0.1em;
}

.info-value {
  font-family: var(--font-jp);
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--text-primary);
  padding: 2rem 0;
  line-height: 1.9;
}

.info-value a {
  color: var(--accent-cyan);
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.info-value a:hover {
  opacity: 0.7;
}

/* CEO Section (About) - reuse shared styles where possible */
.ceo-section {
  background: var(--bg-primary);
  padding: 8rem 4rem;
}

.ceo-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 6rem;
  align-items: center;
}

/* .ceo-visual and .ceo-symbol reused */
.ceo-section .ceo-visual {
  height: 400px;
}

.ceo-section .ceo-content {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.ceo-section .ceo-content.visible {
  opacity: 1;
  transform: translateY(0);
}

.ceo-label {
  font-family: var(--font-en);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  margin-bottom: 2rem;
}

.ceo-message {
  font-family: var(--font-jp);
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 2.2;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

/* Mission Section */
.mission-section {
  background: var(--bg-secondary);
  padding: 8rem 4rem;
  text-align: center;
}

.mission-container {
  max-width: 800px;
  margin: 0 auto;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.mission-container.visible {
  opacity: 1;
  transform: translateY(0);
}

.mission-label {
  font-family: var(--font-en);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  margin-bottom: 3rem;
}

.mission-text {
  font-family: var(--font-jp);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.8;
  letter-spacing: 0.1em;
  margin-bottom: 3rem;
}

.mission-text em {
  font-style: normal;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-magenta));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.mission-sub {
  font-family: var(--font-jp);
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-muted);
  line-height: 2;
}

/* Contact CTA (About) */
.contact-cta {
  background: var(--bg-primary);
  padding: 10rem 4rem;
  text-align: center;
  position: relative;
}

.contact-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 80px;
  background: linear-gradient(to bottom, transparent, var(--text-muted));
}

/* Footer Section */
footer {
  background: var(--bg-secondary);
  padding: 4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-logo {
  font-family: var(--font-en);
  font-weight: 900;
  font-size: 0.85rem;
  letter-spacing: 0.2em;
}

.footer-info {
  text-align: right;
}

.footer-company {
  font-family: var(--font-jp);
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

.footer-copy {
  font-family: var(--font-en);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
  nav {
    padding: 1.5rem 2rem;
  }

  /* Home */
  .hero {
    padding: 0 2rem;
  }

  section {
    padding: 6rem 2rem;
  }

  .philosophy {
    grid-template-columns: 1fr;
    gap: 4rem;
  }

  .philosophy-visual {
    height: 350px;
    order: -1;
  }

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

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

  .ceo-visual {
    min-height: 40vh;
  }

  .ceo-content {
    padding: 4rem 2rem;
    /* Applies to both shared/home logic if specific enough */
  }

  .ceo>.ceo-content {
    padding: 4rem 2rem;
  }

  .floating-text {
    display: none;
  }

  /* About */
  .page-header {
    padding: 0 2rem 4rem;
  }

  .company-info,
  .ceo-section,
  .mission-section,
  .contact-cta {
    padding: 5rem 2rem;
  }

  .info-row {
    grid-template-columns: 160px 1fr;
  }

  .ceo-container {
    grid-template-columns: 1fr;
    gap: 4rem;
  }

  .ceo-section .ceo-visual {
    height: 300px;
  }
}

@media (max-width: 768px) {
  html {
    font-size: 15px;
  }

  /* Navigation */
  nav {
    padding: 1.25rem 1.5rem;
  }

  .logo {
    font-size: 0.75rem;
    /* from index */
    letter-spacing: 0.2em;
  }

  /* about had 0.8rem, taking index's 0.75rem as standard mobile size */

  .nav-links {
    display: none;
  }

  .menu-btn {
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
    margin: -10px;
    z-index: 101;
  }

  /* Home Hero */
  .hero {
    padding: 0 1.5rem;
    min-height: calc(100vh - env(safe-area-inset-bottom));
    min-height: 100svh;
  }

  .hero-eyebrow {
    font-size: 0.7rem;
    letter-spacing: 0.25em;
    margin-bottom: 1.5rem;
  }

  .hero-title {
    font-size: clamp(2.8rem, 18vw, 5rem);
    margin-bottom: 2rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
    letter-spacing: 0.1em;
  }

  .scroll-indicator {
    bottom: calc(2rem + env(safe-area-inset-bottom));
  }

  .scroll-indicator span {
    font-size: 0.65rem;
  }

  .scroll-line {
    height: 40px;
  }

  .blob-1 {
    width: 300px;
    height: 300px;
    filter: blur(60px);
  }

  .blob-2 {
    width: 250px;
    height: 250px;
    filter: blur(60px);
  }

  .blob-3 {
    width: 200px;
    height: 200px;
    filter: blur(60px);
  }

  /* Sections Mobile */
  section {
    padding: 5rem 1.5rem;
  }

  .section-label {
    font-size: 0.7rem;
    margin-bottom: 1.5rem;
  }

  /* Philosophy */
  .philosophy {
    padding: 5rem 1.5rem;
    gap: 3rem;
  }

  .philosophy-visual {
    height: 280px;
    margin: 0 -1.5rem;
    width: calc(100% + 3rem);
  }

  .rotating-text {
    width: 220px;
    height: 220px;
  }

  .rotating-text text {
    font-size: 10px;
  }

  .philosophy-center {
    width: 80px;
    height: 80px;
  }

  .philosophy-content h2 {
    font-size: 1.8rem;
    line-height: 1.8;
    margin-bottom: 2rem;
  }

  .philosophy-text {
    font-size: 1rem;
    line-height: 2;
    letter-spacing: 0.05em;
  }

  .philosophy-text br {
    display: none;
  }

  /* Services */
  .services {
    padding: 5rem 1.5rem;
  }

  .services-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 3rem;
  }

  .services-title {
    font-size: clamp(2.5rem, 12vw, 4rem);
  }

  .services-count {
    font-size: 0.65rem;
  }

  .services-grid {
    margin: 0 -1.5rem;
    width: calc(100% + 3rem);
  }

  .service-item {
    padding: 2.5rem 1.5rem;
  }

  .service-number {
    font-size: 0.7rem;
    margin-bottom: 1rem;
  }

  .service-title {
    font-size: 1.4rem;
    margin-bottom: 0.4rem;
  }

  .service-title-jp {
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
  }

  .service-desc {
    font-size: 0.95rem;
    line-height: 1.9;
  }

  .service-desc br {
    display: none;
  }

  /* CEO (Home) */
  .ceo {
    min-height: auto;
  }

  .ceo-visual {
    min-height: 35vh;
    max-height: 280px;
  }

  .ceo-symbol {
    width: 140px;
    height: 140px;
  }

  .ceo>.ceo-content {
    padding: 3rem 1.5rem 5rem;
  }

  .ceo-title {
    font-size: 0.7rem;
    margin-bottom: 2rem;
  }

  .ceo-name {
    font-size: 2rem;
    letter-spacing: 0.15em;
    margin-bottom: 0.4rem;
  }

  .ceo-name-en {
    font-size: 0.75rem;
    margin-bottom: 2rem;
  }

  .ceo-quote {
    font-size: 1rem;
    line-height: 2.2;
    padding-left: 1.25rem;
    letter-spacing: 0.05em;
  }

  .ceo-quote br {
    display: none;
  }

  /* Contact (Home) */
  .contact {
    padding: 8rem 1.5rem;
  }

  .contact::before {
    height: 60px;
  }

  .contact-label {
    font-size: 0.7rem;
    margin-bottom: 2rem;
  }

  .contact-title {
    font-size: clamp(1.4rem, 6vw, 2.5rem);
    margin-bottom: 0.75rem;
    word-break: break-all;
  }

  .contact-sub {
    font-size: 0.95rem;
  }

  /* About Page Mobile */
  .page-header {
    min-height: 40vh;
    padding: 0 1.5rem 3rem;
  }

  .page-label {
    font-size: 0.7rem;
    margin-bottom: 1rem;
  }

  .page-title {
    font-size: clamp(2.5rem, 12vw, 5rem);
  }

  .company-info,
  .ceo-section,
  .mission-section {
    padding: 4rem 1.5rem;
  }

  .info-row {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .info-label {
    font-size: 0.85rem;
    padding: 1.5rem 0 0.5rem;
    color: var(--accent-cyan);
  }

  .info-value {
    font-size: 1rem;
    padding: 0 0 1.5rem;
  }

  .ceo-section .ceo-visual {
    height: 250px;
    order: -1;
  }

  .ceo-message {
    font-size: 1rem;
    line-height: 2;
  }

  .mission-label {
    font-size: 0.7rem;
    margin-bottom: 2rem;
  }

  .mission-text {
    font-size: 1.5rem;
    line-height: 1.9;
    margin-bottom: 2rem;
  }

  .mission-sub {
    font-size: 0.95rem;
  }

  .contact-cta {
    padding: 6rem 1.5rem;
  }

  .contact-cta::before {
    height: 50px;
  }

  /* Footer */
  footer {
    padding: 2.5rem 1.5rem calc(2.5rem + env(safe-area-inset-bottom));
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }

  .footer-logo {
    font-size: 0.8rem;
  }

  .footer-info {
    text-align: center;
  }

  .footer-company {
    font-size: 0.85rem;
  }

  .footer-copy {
    font-size: 0.7rem;
  }
}

@media (max-width: 480px) {

  /* Home */
  .hero-title {
    font-size: clamp(2.2rem, 16vw, 3.5rem);
  }

  .philosophy-content h2 {
    font-size: 1.4rem;
  }

  .services-title {
    font-size: clamp(2rem, 14vw, 3rem);
  }

  .ceo-name {
    font-size: 1.5rem;
  }

  .contact-title {
    font-size: clamp(1.2rem, 5.5vw, 2rem);
  }

  /* About */
  .page-title {
    font-size: clamp(2rem, 14vw, 3.5rem);
  }

  .mission-text {
    font-size: 1.3rem;
  }

  /* Shared */
  .ceo-name {
    font-size: 1.7rem;
    /* slightly larger on very small screens? or consistent? Keeping consistent with index Logic */
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
  body {
    cursor: auto;
  }

  .service-item::before {
    transform: scaleX(1);
    opacity: 0.3;
  }

  .service-item:active {
    background: var(--bg-secondary);
  }

  /* Disable custom cursor on touch */
  .custom-cursor {
    display: none !important;
  }
}

/* Landscape Mobile */
@media (max-height: 500px) and (orientation: landscape) {
  .hero {
    min-height: auto;
    padding-top: 6rem;
    padding-bottom: 4rem;
  }

  .scroll-indicator {
    display: none;
  }

  .blob {
    opacity: 0.3;
  }
}