/* ==========================================================================
   App Dev Room — neon alley
   ========================================================================== */

:root {
  --ink:        #07060c;
  --ink-2:      #0d0b16;
  --ink-3:      #14111f;
  --line:       rgba(255, 255, 255, 0.12);
  --line-soft:  rgba(255, 255, 255, 0.07);

  --text:       #f4f1ff;
  --muted:      #a49dbd;

  --pink:       #ff2d78;
  --cyan:       #22e1ff;
  --violet:     #8b5cf6;
  --amber:      #ffb020;
  --lime:       #b6ff3a;

  --shell:      min(1240px, 100% - 2.5rem);
  --r-lg:       32px;
  --r-md:       20px;
  --r-sm:       999px;

  --ease:       cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: "Space Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

h1, h2, h3, h4 {
  margin: 0;
  line-height: 0.95;
  letter-spacing: -0.03em;
  font-weight: 700;
}

h1 { font-size: clamp(3rem, 9.5vw, 8.5rem); }
h2 { font-size: clamp(2.25rem, 5.6vw, 4.75rem); }
h3 { font-size: clamp(1.35rem, 2vw, 1.85rem); letter-spacing: -0.02em; }

p { margin: 0; }

.shell { width: var(--shell); margin-inline: auto; }

/* --- shared bits ------------------------------------------------------- */

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}
.kicker::before {
  content: "";
  width: 26px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--pink), var(--cyan));
}
.jp {
  font-family: "Noto Sans JP", var(--fallback), sans-serif;
  font-weight: 500;
  letter-spacing: 0.16em;
}

.lede {
  color: var(--muted);
  font-size: clamp(1.02rem, 1.35vw, 1.2rem);
  max-width: 54ch;
}

.glow { color: var(--pink); }
.glow-c { color: var(--cyan); }
.glow-a { color: var(--amber); }

/* Outlined display text — the "loud" hero treatment */
.outline {
  color: transparent;
  -webkit-text-stroke: 2px var(--text);
}
@supports not (-webkit-text-stroke: 1px #000) {
  .outline { color: var(--text); }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 1.05rem 1.9rem;
  border: 0;
  border-radius: var(--r-sm);
  font: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.35s var(--ease);
}
.btn-primary {
  background: linear-gradient(102deg, var(--pink), var(--violet) 55%, var(--cyan));
  color: #0b0713;
  box-shadow: 0 10px 40px -12px rgba(255, 45, 120, 0.75);
}
.btn-ghost {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  border: 1px solid var(--line);
  backdrop-filter: blur(10px);
}
.btn:hover { transform: translateY(-3px); }
.btn-primary:hover { box-shadow: 0 18px 55px -12px rgba(255, 45, 120, 0.95); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.11); }

/* --- decorative blobs --------------------------------------------------- */

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(72px);
  opacity: 0.75;
  pointer-events: none;
  z-index: 0;
  will-change: transform;
}
.blob-pink   { background: var(--pink); }
.blob-cyan   { background: var(--cyan); }
.blob-violet { background: var(--violet); }
.blob-amber  { background: var(--amber); }

/* --- nav ---------------------------------------------------------------- */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 90;
  padding: 0.9rem 0;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-stuck {
  background: rgba(7, 6, 12, 0.78);
  backdrop-filter: blur(18px) saturate(140%);
  border-bottom-color: var(--line-soft);
}
.nav-in {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-right: auto;
}
.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: linear-gradient(140deg, var(--pink), var(--violet) 60%, var(--cyan));
  color: #0b0713;
  font-size: 0.9rem;
  font-weight: 700;
  flex: none;
}
.brand span { font-size: 1rem; }
.brand small {
  display: block;
  font-size: 0.6rem;
  letter-spacing: 0.24em;
  color: var(--muted);
  font-weight: 500;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.9rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.25s var(--ease);
}
.nav-links a:hover { color: var(--text); }
.nav .btn { padding: 0.75rem 1.35rem; font-size: 0.85rem; }

.nav-toggle {
  display: none;
  width: 44px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  cursor: pointer;
}

/* --- hero --------------------------------------------------------------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding: 8rem 0 4rem;
  overflow: hidden;
  isolation: isolate;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 42%;
  filter: saturate(1.25) contrast(1.06);
}
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 85% at 80% 8%, rgba(34, 225, 255, 0.28), transparent 55%),
    radial-gradient(95% 75% at 8% 92%, rgba(255, 45, 120, 0.35), transparent 60%),
    linear-gradient(180deg, rgba(7, 6, 12, 0.82) 0%, rgba(7, 6, 12, 0.35) 38%, rgba(7, 6, 12, 0.96) 100%);
}
.hero-in { position: relative; z-index: 2; }
.hero h1 { margin: 1.4rem 0 0; text-wrap: balance; }
.hero h1 em {
  font-style: normal;
  background: linear-gradient(96deg, var(--pink), var(--amber) 45%, var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 2.5rem;
  margin-top: 2.5rem;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.85rem; }

.scroll-hint {
  margin-top: 3.5rem;
  font-size: 0.7rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.scroll-hint i {
  width: 1px;
  height: 34px;
  background: linear-gradient(var(--cyan), transparent);
  display: block;
}

/* --- marquee ------------------------------------------------------------ */

.ticker {
  border-block: 1px solid var(--line-soft);
  background: var(--ink-2);
  padding: 1.15rem 0;
  overflow: hidden;
  display: flex;
  gap: 3rem;
  white-space: nowrap;
  user-select: none;
}
.ticker-row {
  display: flex;
  gap: 3rem;
  align-items: center;
  flex: none;
  animation: slide 38s linear infinite;
}
.ticker span {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 3rem;
}
.ticker span::after {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--pink);
}
.ticker span:nth-child(2n)::after { background: var(--cyan); }
.ticker span:nth-child(3n)::after { background: var(--amber); }
@keyframes slide { to { transform: translateX(calc(-100% - 3rem)); } }

/* --- section scaffolding ------------------------------------------------ */

.sec {
  position: relative;
  padding: clamp(5rem, 11vw, 9.5rem) 0;
  overflow: hidden;
}
.sec > .shell { position: relative; z-index: 2; }
.sec-head { max-width: 62ch; margin-bottom: 3.5rem; }
.sec-head h2 { margin: 1.1rem 0 1.4rem; text-wrap: balance; }

/* --- service cards ------------------------------------------------------ */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 1.25rem;
  position: relative;
  z-index: 2;
}

.card {
  position: relative;
  padding: 2.1rem 1.9rem 2.3rem;
  border-radius: var(--r-lg);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--line-soft);
  overflow: hidden;
  transition: transform 0.45s var(--ease), border-color 0.45s var(--ease);
}
.card::before {
  content: "";
  position: absolute;
  inset: -1px -1px auto -1px;
  height: 3px;
  background: linear-gradient(90deg, var(--pink), var(--violet), var(--cyan));
  opacity: 0;
  transition: opacity 0.45s var(--ease);
}
.card:hover { transform: translateY(-6px); border-color: var(--line); }
.card:hover::before { opacity: 1; }
.card h3 { margin-bottom: 0.75rem; }
.card p { color: var(--muted); font-size: 0.97rem; }
.card-no {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--pink);
  display: block;
  margin-bottom: 1.4rem;
}
.card:nth-child(2n) .card-no { color: var(--cyan); }
.card:nth-child(3n) .card-no { color: var(--amber); }
.card:nth-child(4n) .card-no { color: var(--lime); }

/* a coloured wash bleeding up from the bottom of each card */
.card::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -70%;
  width: 130%;
  aspect-ratio: 1;
  transform: translateX(-50%);
  border-radius: 50%;
  background: var(--pink);
  opacity: 0.16;
  filter: blur(52px);
  pointer-events: none;
  z-index: -1;
  transition: opacity 0.45s var(--ease);
}
.card:nth-child(2n)::after { background: var(--cyan); }
.card:nth-child(3n)::after { background: var(--amber); }
.card:nth-child(4n)::after { background: var(--lime); }
.card:hover::after { opacity: 0.3; }
.card > * { position: relative; z-index: 1; }

/* --- featured project --------------------------------------------------- */

.project {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 0;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--ink-2);
}
.project-media { position: relative; min-height: 420px; }
.project-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.2);
}
.project-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 40%, rgba(13, 11, 22, 0.9) 100%),
              radial-gradient(80% 60% at 20% 90%, rgba(255, 45, 120, 0.35), transparent 60%);
}
.project-body {
  padding: clamp(2.2rem, 4vw, 3.4rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.4rem;
}
.project-body h3 { font-size: clamp(1.8rem, 3vw, 2.75rem); line-height: 1; }
.project-body h3 a {
  text-decoration: none;
  background-image: linear-gradient(90deg, var(--pink), var(--cyan));
  background-repeat: no-repeat;
  background-size: 0% 3px;
  background-position: 0 100%;
  transition: background-size 0.45s var(--ease), color 0.35s var(--ease);
  padding-bottom: 4px;
}
.project-body h3 a:hover { background-size: 100% 3px; color: var(--cyan); }
.project-body p { color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tag {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.42rem 0.85rem;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  color: var(--muted);
}
.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--cyan);
  width: fit-content;
}
.arrow-link svg { transition: transform 0.35s var(--ease); }
.arrow-link:hover svg { transform: translateX(5px); }

/* --- the room (roles) --------------------------------------------------- */

.room {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.room-media {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line);
}
.room-media img { width: 100%; }
.room-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(7, 6, 12, 0.85));
}
.roles { display: grid; gap: 0.7rem; }
.role {
  display: flex;
  align-items: baseline;
  gap: 1.2rem;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--line-soft);
}
.role:last-child { border-bottom: 0; }
.role b {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  color: var(--violet);
  flex: none;
  width: 2.5rem;
}
.role h4 { font-size: 1.15rem; flex: none; width: clamp(9rem, 17vw, 13rem); }
.role p { color: var(--muted); font-size: 0.93rem; }

/* --- process ------------------------------------------------------------ */

.steps { counter-reset: s; display: grid; gap: 0; position: relative; z-index: 2; }
.step {
  display: grid;
  grid-template-columns: 5.5rem 1fr 1.1fr;
  gap: 1.5rem;
  align-items: start;
  padding: 2.2rem 0;
  border-top: 1px solid var(--line-soft);
}
.step:last-child { border-bottom: 1px solid var(--line-soft); }
.step-no {
  font-size: 2.6rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  background: linear-gradient(160deg, var(--pink), var(--violet) 55%, var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.step:nth-child(2) .step-no { background: linear-gradient(160deg, var(--cyan), var(--lime)); -webkit-background-clip: text; background-clip: text; }
.step:nth-child(3) .step-no { background: linear-gradient(160deg, var(--amber), var(--pink)); -webkit-background-clip: text; background-clip: text; }
.step:nth-child(4) .step-no { background: linear-gradient(160deg, var(--violet), var(--cyan)); -webkit-background-clip: text; background-clip: text; }
.step h3 { font-size: clamp(1.4rem, 2.4vw, 2.1rem); }
.step p { color: var(--muted); }

/* --- cta ---------------------------------------------------------------- */

.cta {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  padding: clamp(3.5rem, 8vw, 6.5rem) clamp(1.75rem, 5vw, 4.5rem);
  text-align: center;
  border: 1px solid var(--line);
  z-index: 2;
}
.cta-media { position: absolute; inset: 0; z-index: -1; }
.cta-media img { width: 100%; height: 100%; object-fit: cover; filter: saturate(1.35) contrast(1.1); }
.cta-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(70% 90% at 50% 110%, rgba(139, 92, 246, 0.55), transparent 60%),
    linear-gradient(180deg, rgba(7, 6, 12, 0.9), rgba(7, 6, 12, 0.78));
}
.cta h2 { margin: 1.2rem 0 1.5rem; text-wrap: balance; }
.cta .lede { margin-inline: auto; }
.cta-btns { display: flex; flex-wrap: wrap; gap: 0.85rem; justify-content: center; margin-top: 2.3rem; }

/* --- footer ------------------------------------------------------------- */

.foot {
  border-top: 1px solid var(--line-soft);
  padding: 4rem 0 2.5rem;
  background: var(--ink-2);
}
.foot-top {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  justify-content: space-between;
  padding-bottom: 2.75rem;
  border-bottom: 1px solid var(--line-soft);
}
.foot-nav { display: flex; flex-wrap: wrap; gap: 2rem; list-style: none; margin: 0; padding: 0; }
.foot-nav a { text-decoration: none; color: var(--muted); font-size: 0.92rem; }
.foot-nav a:hover { color: var(--text); }
.foot-bot {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  padding-top: 1.75rem;
  font-size: 0.82rem;
  color: var(--muted);
}
.foot-bot a { color: var(--muted); }

/* --- scroll reveal ------------------------------------------------------ */

.rise {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
}
.rise.in { opacity: 1; transform: none; }

/* --- responsive --------------------------------------------------------- */

@media (max-width: 900px) {
  .project { grid-template-columns: 1fr; }
  .project-media { min-height: 260px; }
  .room { grid-template-columns: 1fr; }
  .step { grid-template-columns: 3.5rem 1fr; }
  .step p { grid-column: 2; }
  .role { flex-wrap: wrap; gap: 0.35rem 1.2rem; }
  .role h4 { width: auto; }
  .role p { width: 100%; }
}

@media (max-width: 780px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed;
    inset: 68px 1.25rem auto 1.25rem;
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
    padding: 1rem;
    border-radius: var(--r-md);
    background: rgba(13, 11, 22, 0.97);
    border: 1px solid var(--line);
    backdrop-filter: blur(20px);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 0.75rem 0.5rem; font-size: 1rem; }
  .nav > .shell > .nav-in > .btn { display: none; }
  .hero { align-items: center; padding-top: 7rem; }
  .hero-foot { gap: 1.75rem; }

  /* the photo fills far more of a narrow viewport, so weight the wash
     harder to keep the headline and lede legible over it */
  .hero-media::after {
    background:
      radial-gradient(110% 60% at 85% 5%, rgba(34, 225, 255, 0.22), transparent 55%),
      radial-gradient(90% 55% at 5% 95%, rgba(255, 45, 120, 0.3), transparent 60%),
      linear-gradient(180deg, rgba(7, 6, 12, 0.9) 0%, rgba(7, 6, 12, 0.66) 42%, rgba(7, 6, 12, 0.97) 100%);
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticker-row { animation: none; }
  .rise { opacity: 1; transform: none; transition: none; }
  .btn:hover, .card:hover { transform: none; }
}

/* --- locations band ------------------------------------------------------ */

.rooms {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  padding: clamp(2.75rem, 6vw, 5rem) clamp(1.75rem, 4vw, 3.5rem);
  isolation: isolate;
}
.rooms-media { position: absolute; inset: 0; z-index: -1; }
.rooms-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.3);
}
.rooms-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(75% 70% at 95% 5%, rgba(34, 225, 255, 0.32), transparent 60%),
    radial-gradient(70% 70% at 0% 100%, rgba(255, 45, 120, 0.34), transparent 60%),
    linear-gradient(180deg, rgba(7, 6, 12, 0.9), rgba(7, 6, 12, 0.84));
}
.rooms h2 { margin: 1.1rem 0 1.3rem; }

/* the "always on" pulse */
.live {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 0 rgba(182, 255, 58, 0.75);
  animation: pulse 2.4s ease-out infinite;
  flex: none;
}
@keyframes pulse {
  70%  { box-shadow: 0 0 0 11px rgba(182, 255, 58, 0); }
  100% { box-shadow: 0 0 0 0 rgba(182, 255, 58, 0); }
}

.clock {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 3rem;
  padding-top: 2.25rem;
  border-top: 1px solid var(--line);
}
.city span {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.7rem;
}
.city h3 {
  font-size: clamp(1.5rem, 3.4vw, 2.6rem);
  background: linear-gradient(150deg, var(--text), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.city:nth-child(2) h3 { background: linear-gradient(150deg, var(--text), var(--pink)); -webkit-background-clip: text; background-clip: text; }
.city:nth-child(3) h3 { background: linear-gradient(150deg, var(--text), var(--amber)); -webkit-background-clip: text; background-clip: text; }
.city p {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-top: 0.5rem;
}

.clock-note {
  margin-top: 2.25rem;
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  color: var(--muted);
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.clock-note b {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  letter-spacing: -0.04em;
  background: linear-gradient(100deg, var(--pink), var(--amber) 50%, var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

@media (max-width: 760px) {
  .clock { grid-template-columns: 1fr; gap: 1.75rem; }
}
@media (prefers-reduced-motion: reduce) {
  .live { animation: none; }
}
