:root {
  --bg: #ffffff;
  --panel: #f7f7fb;
  --panel-2: #efeff8;
  --text: #11111a;
  --muted: #6f7080;
  --line: rgba(25, 23, 255, .12);
  --pink: #FF4EF2;
  --blue: #1917FF;
  --purple: #7b2cff;
  --accent-gradient: linear-gradient(135deg, var(--pink), var(--blue));
  --max: 1280px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 85% 3%, rgba(255,78,242,.12), transparent 28%),
    radial-gradient(circle at 10% 20%, rgba(25,23,255,.08), transparent 24%),
    var(--bg);
  font-family: "Inter", "Noto Sans JP", sans-serif;
  line-height: 1.7;
}
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 20;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(24px, calc((100vw - var(--max)) / 2));
  background: rgba(255,255,255,.76);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}
.logo { font-size: 1.15rem; font-weight: 800; letter-spacing: .16em; }
.logo span { color: var(--pink); }
.nav { display: flex; gap: 34px; }
.nav a { color: var(--muted); font-size: .8rem; font-weight: 700; letter-spacing: .12em; transition: .25s ease; }
.nav a:hover { color: var(--blue); }
.menu-button { display:none; width:42px; height:42px; padding:0; background:transparent; border:0; }
.menu-button span { display:block; width:22px; height:1px; margin:6px auto; background:var(--text); }
main { overflow:hidden; }

.hero {
  width:min(calc(100% - 48px), var(--max));
  min-height:100vh;
  margin:0 auto;
  padding:150px 0 80px;
  display:grid;
  grid-template-columns:1.05fr .95fr;
  align-items:center;
  gap:70px;
}
.eyebrow,.section-label {
  margin:0 0 16px;
  color:var(--blue);
  font-size:.72rem;
  font-weight:800;
  letter-spacing:.18em;
}
h1,h2,p { margin-top:0; }
h1 { margin-bottom:28px; font-size:clamp(4rem,9vw,8.6rem); line-height:.88; letter-spacing:-.075em; }
h1::selection,h2::selection { background:var(--pink); color:white; }
h2 { margin-bottom:0; font-size:clamp(2.5rem,5vw,5rem); line-height:1; letter-spacing:-.055em; }
.hero-text,.section-heading>p,.contact-copy>p { color:var(--muted); }
.hero-actions { display:flex; gap:12px; margin-top:36px; }
.button {
  min-height:50px;
  padding:0 24px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:1px solid var(--line);
  border-radius:999px;
  font-weight:700;
  cursor:pointer;
  transition:transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.button:hover { transform:translateY(-2px); }
.button.primary { color:white; background:var(--accent-gradient); border-color:transparent; box-shadow:0 10px 30px rgba(25,23,255,.18); }
.button.ghost { background:rgba(255,255,255,.72); }

.hero-visual {
  position:relative;
  aspect-ratio:4/5;
  overflow:hidden;
  background:linear-gradient(145deg,#fbfaff,#f3f3ff);
  border:1px solid var(--line);
  border-radius:4px;
  box-shadow:0 30px 80px rgba(37,35,120,.10);
}
.grid {
  position:absolute; inset:0; opacity:.65;
  background-image:linear-gradient(var(--line) 1px,transparent 1px),linear-gradient(90deg,var(--line) 1px,transparent 1px);
  background-size:48px 48px;
}
.orb { position:absolute; border-radius:50%; filter:blur(1px); }
.orb-a {
  width:70%; aspect-ratio:1; top:12%; left:13%;
  background:radial-gradient(circle at 30% 30%,#fff 0%,#ffabf8 20%,var(--pink) 42%,rgba(25,23,255,.9) 66%,transparent 72%);
  box-shadow:0 0 100px rgba(255,78,242,.26);
}
.orb-b {
  width:40%; aspect-ratio:1; right:-8%; bottom:5%;
  background:radial-gradient(circle at 35% 35%,#cfd0ff,var(--blue) 38%,rgba(123,44,255,.75) 58%,transparent 72%);
}
.hero-visual>p { position:absolute; right:22px; bottom:18px; margin:0; color:var(--blue); font-size:.72rem; font-weight:700; letter-spacing:.18em; }

.section { width:min(calc(100% - 48px),var(--max)); margin:0 auto; padding:120px 0; border-top:1px solid var(--line); }
.section-heading { display:flex; align-items:end; justify-content:space-between; gap:40px; margin-bottom:54px; }
.section-heading>p { max-width:420px; margin-bottom:4px; }
.filter { display:flex; flex-wrap:wrap; gap:8px; margin-bottom:28px; }
.filter-button { padding:9px 14px; color:var(--muted); background:white; border:1px solid var(--line); border-radius:999px; font-size:.72rem; font-weight:700; letter-spacing:.08em; cursor:pointer; }
.filter-button.active { color:white; background:var(--accent-gradient); border-color:transparent; }
.works-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:34px 18px; }
.work-card { display:block; }
.work-thumb { position:relative; aspect-ratio:16/9; overflow:hidden; background:var(--panel); border:1px solid var(--line); }
.work-thumb img { width:100%; height:100%; object-fit:cover; transition:transform .5s cubic-bezier(.2,.8,.2,1); }
.work-card:hover .work-thumb img { transform:scale(1.035); }
.work-overlay { position:absolute; inset:0; display:flex; align-items:center; justify-content:center; background:linear-gradient(135deg,rgba(255,78,242,.08),rgba(25,23,255,.12)); }
.play { width:68px; height:68px; display:grid; place-items:center; color:white; background:var(--accent-gradient); border-radius:50%; font-size:.8rem; font-weight:800; transform:scale(.85); opacity:0; transition:.25s ease; box-shadow:0 12px 36px rgba(25,23,255,.28); }
.work-card:hover .play { opacity:1; transform:scale(1); }
.work-info { display:flex; justify-content:space-between; gap:18px; padding-top:16px; }
.work-info h3 { margin:0 0 4px; font-size:1.05rem; }
.work-info p { margin:0; color:var(--muted); font-size:.82rem; }
.work-index { color:var(--blue); font-size:.75rem; font-weight:700; }

.team-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:16px; }
.member-card { padding:22px; background:rgba(255,255,255,.78); border:1px solid var(--line); box-shadow:0 12px 36px rgba(25,23,255,.05); transition:.25s ease; }
.member-card:hover { transform:translateY(-4px); border-color:rgba(255,78,242,.45); box-shadow:0 18px 48px rgba(25,23,255,.10); }
.member-icon { width:100%; aspect-ratio:1; object-fit:cover; margin-bottom:22px; background:var(--panel-2); }
.member-card h3 { margin:0 0 2px; font-size:1.2rem; }
.member-role { margin:0 0 16px; color:var(--muted); font-size:.82rem; }
.member-x { color:var(--blue); font-size:.82rem; font-weight:700; }
.member-x:hover { color:var(--pink); }

.contact-section { display:grid; grid-template-columns:.85fr 1.15fr; gap:80px; }
.contact-copy { position:sticky; top:120px; align-self:start; }
.contact-copy h2 { margin-bottom:28px; }
.mail-link { display:inline-block; margin-top:18px; color:var(--blue); border-bottom:1px solid var(--blue); }
.contact-form { display:grid; grid-template-columns:1fr 1fr; gap:22px 16px; }
.contact-form label { display:grid; gap:8px; color:var(--muted); font-size:.78rem; font-weight:700; }
.contact-form .full { grid-column:1/-1; }
input,textarea,select { width:100%; color:var(--text); background:white; border:1px solid var(--line); border-radius:0; outline:none; padding:15px 16px; }
input:focus,textarea:focus,select:focus { border-color:var(--blue); box-shadow:0 0 0 3px rgba(25,23,255,.06); }
textarea { resize:vertical; }
.submit-button { justify-self:start; border:0; }
.form-note { align-self:center; margin:0; color:var(--muted); font-size:.74rem; }
footer { width:min(calc(100% - 48px),var(--max)); margin:0 auto; padding:34px 0 50px; display:flex; justify-content:space-between; border-top:1px solid var(--line); }
footer p { margin:0; color:var(--muted); font-size:.75rem; }

@media (max-width:900px) {
  .hero { grid-template-columns:1fr; gap:48px; padding-top:130px; }
  .hero-visual { aspect-ratio:16/11; }
  .works-grid { grid-template-columns:1fr; }
  .team-grid { grid-template-columns:repeat(2,1fr); }
  .contact-section { grid-template-columns:1fr; gap:44px; }
  .contact-copy { position:static; }
}
@media (max-width:640px) {
  .site-header { padding:0 20px; }
  .menu-button { display:block; }
  .nav { position:absolute; top:76px; left:0; right:0; display:none; flex-direction:column; gap:0; background:rgba(255,255,255,.98); border-bottom:1px solid var(--line); }
  .nav.open { display:flex; }
  .nav a { padding:18px 24px; border-top:1px solid var(--line); }
  .hero,.section,footer { width:min(calc(100% - 32px),var(--max)); }
  h1 { font-size:clamp(3.4rem,18vw,5.2rem); }
  .hero-actions { flex-direction:column; align-items:stretch; }
  .section { padding:88px 0; }
  .section-heading { align-items:start; flex-direction:column; gap:18px; margin-bottom:38px; }
  .team-grid { grid-template-columns:1fr; }
  .contact-form { grid-template-columns:1fr; }
  .contact-form .full { grid-column:auto; }
  .submit-button { width:100%; }
}

.fade-up{

    opacity:0;

    transform:translateY(60px);

    transition:
        opacity .8s ease,
        transform .8s ease;

}

.fade-up.show{

    opacity:1;

    transform:translateY(0);

}


/* =================================
   HERO — SUBTLE GRID
================================= */
.hero {
  position: relative;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 76px -100vw 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(25, 23, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(25, 23, 255, .035) 1px, transparent 1px);
  background-size: 60px 60px;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 14%, #000 82%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 14%, #000 82%, transparent 100%);
}

/* =================================
   HERO OBJECT ROTATION
================================= */
.orb-a {
  animation: orbRotate 22s linear infinite;
  transform-origin: 50% 50%;
}

.orb-b {
  animation: orbRotateReverse 30s linear infinite;
  transform-origin: 50% 50%;
}

@keyframes orbRotate {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

@keyframes orbRotateReverse {
  from { transform: rotate(360deg); }
  to   { transform: rotate(0deg); }
}

/* =================================
   WORK NUMBER — EDITORIAL STYLE
================================= */
.work-index {
  min-width: 72px;
  color: rgba(25, 23, 255, .10);
  font-size: clamp(2.8rem, 5vw, 4.6rem);
  font-weight: 800;
  line-height: .82;
  letter-spacing: -.08em;
  text-align: right;
  user-select: none;
}

/* =================================
   WORK CARD — PHYSICS-LIKE ENTRANCE
================================= */
.work-card {
  opacity: 0;
  transform: translateY(64px) rotate(-3.5deg) scale(.975);
  transform-origin: 50% 70%;
  will-change: transform, opacity;
}

.work-card.physics-show {
  animation: workCardPhysics 1.05s cubic-bezier(.16, 1, .3, 1) forwards;
}

@keyframes workCardPhysics {
  0% {
    opacity: 0;
    transform: translateY(64px) rotate(-3.5deg) scale(.975);
  }
  46% {
    opacity: 1;
    transform: translateY(-9px) rotate(1.6deg) scale(1.008);
  }
  66% {
    transform: translateY(4px) rotate(-.7deg) scale(.998);
  }
  83% {
    transform: translateY(-2px) rotate(.25deg) scale(1);
  }
  100% {
    opacity: 1;
    transform: translateY(0) rotate(0deg) scale(1);
  }
}

.work-card.physics-show:hover {
  transform: translateY(-6px) rotate(.35deg);
  transition: transform .4s cubic-bezier(.16, 1, .3, 1);
}

/* Existing cursor light — moved here from index.html */
#cursor-light {
  position: fixed;
  left: 0;
  top: 0;
  width: 450px;
  height: 450px;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(
    circle,
    rgba(255, 78, 242, .18) 0%,
    rgba(25, 23, 255, .15) 40%,
    rgba(25, 23, 255, 0) 70%
  );
  filter: blur(80px);
  transform: translate(-50%, -50%);
  z-index: -1;
  transition: left .08s linear, top .08s linear;
}

@media (max-width: 640px) {
  .hero::before {
    background-size: 42px 42px;
  }

  .work-card {
    transform: translateY(46px) rotate(-1.8deg) scale(.985);
  }

  .work-index {
    min-width: 58px;
    font-size: 3rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .orb-a,
  .orb-b {
    animation: none;
  }

  .work-card,
  .work-card.physics-show {
    opacity: 1;
    transform: none;
    animation: none;
  }
}


.glass-title{
 position:relative;
 display:inline-block;
 color:rgba(255,255,255,.15);
 -webkit-text-stroke:1px rgba(255,255,255,.55);
 text-shadow:0 8px 30px rgba(25,23,255,.08);
 background:linear-gradient(135deg,rgba(255,255,255,.85),rgba(255,255,255,.2));
 -webkit-background-clip:text;
 background-clip:text;
 overflow:visible;
}
.glass-title::after{
 content:"";
 position:absolute;
 inset:-30%;
 pointer-events:none;
 background:radial-gradient(circle at var(--mx,50%) var(--my,50%), rgba(255,255,255,.95), rgba(255,78,242,.25) 18%, rgba(25,23,255,.15) 32%, transparent 55%);
 mix-blend-mode:screen;
 opacity:var(--glow,0);
 transition:opacity .25s ease;
 filter:blur(18px);
}


/* Netlify contact form */
.honeypot {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
}

.submit-button:disabled {
  opacity: .6;
  cursor: wait;
  transform: none;
}

.form-note.success {
  color: #1917ff;
  font-weight: 700;
}

.form-note.error {
  color: #c62828;
  font-weight: 700;
}
