/* ─────────────────────────────────────────────
   XO Studio
   charcoal, chalk & the XO gradient
   ───────────────────────────────────────────── */

:root {
  --paper: #1b2022;
  --paper-2: #212729;
  --surface: #252c2e;
  --ink: #eef1f2;
  --ink-2: #c3c9cb;
  --muted: #8b9497;
  --deep: #14181a;
  --a1: #2b8fe0;
  --a2: #6a4ee8;
  --a3: #b146d2;
  --a4: #ec4d96;
  --a5: #ff9a45;
  --accent: #ec4d96;
  --grad: linear-gradient(100deg, var(--a1) 0%, var(--a2) 28%, var(--a3) 52%, var(--a4) 76%, var(--a5) 100%);
  --grid: rgba(238, 241, 242, 0.042);
  --line: rgba(238, 241, 242, 0.14);
  --sans: "Helvetica Neue", -apple-system, BlinkMacSystemFont, "Hiragino Sans",
    "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", Meiryo, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --gut: clamp(20px, 4vw, 56px);
  --out: cubic-bezier(0.16, 1, 0.3, 1);
  --io: cubic-bezier(0.76, 0, 0.24, 1);
  color-scheme: dark;
}

html.intro-on {
  --intro: 1.9s;
}

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

html {
  background: var(--paper);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: clip;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  overflow-x: clip;
  color: var(--ink);
  background-color: var(--paper);
  background-image: linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 28px 28px;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "palt" 1;
}

/* film grain */
body::after {
  content: "";
  position: fixed;
  inset: -50%;
  z-index: 900;
  pointer-events: none;
  opacity: 0.06;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .7 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  body::after {
    animation: grain 0.9s steps(5) infinite;
  }
}

@keyframes grain {
  0% { transform: translate(0, 0); }
  20% { transform: translate(-4%, 3%); }
  40% { transform: translate(3%, -5%); }
  60% { transform: translate(-6%, -2%); }
  80% { transform: translate(5%, 4%); }
  100% { transform: translate(0, 0); }
}

a {
  color: inherit;
}

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 6px;
}

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

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

.defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.mono {
  font-family: var(--mono);
}

.en {
  color: var(--muted);
}

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: fixed;
  left: -9999px;
  top: 12px;
  z-index: 5000;
  padding: 8px 14px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--paper);
  font-size: 14px;
  text-decoration: none;
}

.skip:focus {
  left: 16px;
}

/* hand-drawn strokes */
.pen,
.g svg,
.svc-mark svg,
.check {
  overflow: visible;
}

.pen path,
.g path,
.svc-mark path,
.check path {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
}

.pen path,
.check path {
  stroke: url(#xo-grad);
  stroke-width: 3;
}

@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes rise {
  from {
    transform: translateY(112%);
  }
  to {
    transform: none;
  }
}

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

@keyframes flow {
  to {
    background-position: 200% 50%;
  }
}

/* ── aurora (soft moving light) ────────────── */

.aurora {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.aurora i {
  position: absolute;
  width: 60vmax;
  height: 60vmax;
  border-radius: 50%;
  opacity: 0.22;
}

.aurora i:nth-child(1) {
  top: -30vmax;
  right: -18vmax;
  background: radial-gradient(circle, var(--a2) 0%, transparent 62%);
  animation: drift-a 22s ease-in-out infinite alternate;
}

.aurora i:nth-child(2) {
  top: -10vmax;
  right: 10vmax;
  background: radial-gradient(circle, var(--a4) 0%, transparent 60%);
  opacity: 0.16;
  animation: drift-b 26s ease-in-out infinite alternate;
}

.aurora i:nth-child(3) {
  top: 0;
  right: -30vmax;
  background: radial-gradient(circle, var(--a5) 0%, transparent 58%);
  opacity: 0.12;
  animation: drift-c 30s ease-in-out infinite alternate;
}

@keyframes drift-a {
  to { transform: translate(-14vmax, 10vmax) scale(1.1); }
}

@keyframes drift-b {
  to { transform: translate(12vmax, 14vmax) scale(0.9); }
}

@keyframes drift-c {
  to { transform: translate(-20vmax, -6vmax) scale(1.15); }
}

/* ── intro ─────────────────────────────────── */

.intro {
  display: none;
}

html.intro-on .intro {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: grid;
  place-items: center;
  background-color: var(--surface);
  clip-path: inset(0 0 0 0);
  animation: intro-out 0.95s var(--io) 1.45s forwards;
}

@keyframes intro-out {
  to {
    clip-path: inset(0 0 100% 0);
    visibility: hidden;
  }
}

.intro-logo {
  width: min(300px, 62vw);
  clip-path: inset(0 100% 0 0);
  filter: blur(8px);
  transform: scale(1.06);
}

html.intro-on .intro-logo {
  animation: logo-in 1.05s var(--out) 0.1s forwards;
}

@keyframes logo-in {
  to {
    clip-path: inset(0 0 0 0);
    filter: blur(0);
    transform: none;
  }
}

.intro-bar {
  position: absolute;
  left: 50%;
  bottom: 14vh;
  width: min(220px, 50vw);
  height: 2px;
  margin-left: max(-110px, -25vw);
  overflow: hidden;
  border-radius: 2px;
  background: var(--line);
}

.intro-bar::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: left;
}

html.intro-on .intro-bar::after {
  animation: bar 1.25s var(--io) 0.05s forwards;
}

@keyframes bar {
  to { transform: scaleX(1); }
}

/* ── cursor ────────────────────────────────── */

.cursor {
  display: none;
}

html.has-cursor .cursor {
  display: block;
}

html.has-cursor,
html.has-cursor a,
html.has-cursor button {
  cursor: none;
}

.cursor-dot,
.cursor-ring {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 4000;
  border-radius: 50%;
  pointer-events: none;
  transition: opacity 0.3s;
}

.cursor-dot {
  width: 6px;
  height: 6px;
  margin: -3px 0 0 -3px;
  background: var(--accent);
}

.cursor-ring {
  width: 38px;
  height: 38px;
  margin: -19px 0 0 -19px;
  border: 1.5px solid #fff;
  mix-blend-mode: difference;
  transition: width 0.45s var(--out), height 0.45s var(--out), margin 0.45s var(--out),
    background-color 0.3s, opacity 0.3s;
}

html.cursor-link .cursor-ring {
  width: 76px;
  height: 76px;
  margin: -38px 0 0 -38px;
  background-color: #fff;
}

html.cursor-link .cursor-dot {
  opacity: 0;
}

html.cursor-out .cursor-dot,
html.cursor-out .cursor-ring {
  opacity: 0;
}

/* ── header ────────────────────────────────── */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px var(--gut);
  pointer-events: none;
  transition: transform 0.7s var(--out);
}

.site-header > * {
  pointer-events: auto;
}

.site-header.hide {
  transform: translateY(-130%);
}

.site-header:focus-within {
  transform: none;
}

.brand,
.site-nav {
  background: color-mix(in srgb, var(--surface) 72%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  backdrop-filter: blur(14px) saturate(1.4);
  box-shadow: 0 0 0 1px var(--line);
  border-radius: 999px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 18px 8px 14px;
  color: var(--ink);
  text-decoration: none;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.brand img {
  width: 40px;
  height: auto;
  transition: transform 0.7s var(--out);
}

.brand:hover img {
  transform: rotate(-8deg) scale(1.08);
}

.site-nav {
  display: flex;
  gap: 2px;
  padding: 5px;
}

.site-nav a {
  display: inline-flex;
  overflow: hidden;
  padding: 7px 14px;
  border-radius: 999px;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: background-color 0.3s, color 0.3s;
}

.site-nav a span {
  position: relative;
  display: block;
  transition: transform 0.5s var(--out);
}

.site-nav a span::after {
  content: attr(data-text);
  position: absolute;
  left: 0;
  top: 160%;
}

.site-nav a:hover span {
  transform: translateY(-160%);
}

.site-nav a:hover {
  background: var(--ink);
  color: var(--paper);
}

/* ── shared rise text ──────────────────────── */

.line {
  display: block;
  overflow: hidden;
  padding: 0.04em 0 0.08em;
  margin-bottom: -0.06em;
}

.line-in {
  display: inline-block;
}

html.js .rise .line-in {
  animation: rise 1.2s var(--out) both;
  animation-delay: calc(var(--intro, 0s) + var(--ld, 0s));
}

.rise .line:nth-child(2) { --ld: 0.08s; }
.rise .line:nth-child(3) { --ld: 0.16s; }

/* ── hero ──────────────────────────────────── */

.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 100vh;
  min-height: 100svh;
  padding: 112px var(--gut) clamp(24px, 4vw, 44px);
  overflow: hidden;
}

.hero .aurora {
  -webkit-mask-image: linear-gradient(#000 40%, transparent 95%);
  mask-image: linear-gradient(#000 40%, transparent 95%);
}

.field {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  -webkit-mask-image: linear-gradient(#000 25%, rgba(0, 0, 0, 0.35) 62%, transparent 92%);
  mask-image: linear-gradient(#000 25%, rgba(0, 0, 0, 0.35) 62%, transparent 92%);
}

.hero-logo {
  position: absolute;
  top: max(170px, 27svh);
  right: var(--gut);
  width: clamp(220px, 27vw, 380px);
  pointer-events: none;
  perspective: 900px;
}

.hero-logo-in {
  position: relative;
  transform: rotateX(var(--lx, 0deg)) rotateY(var(--ly, 0deg)) translate3d(var(--tx, 0px), var(--ty, 0px), 0);
  will-change: transform;
}

.hero-logo-in::before {
  content: "";
  position: absolute;
  inset: -18% -12%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--a3) 45%, transparent), transparent);
  opacity: 0.55;
}

html.js .hero-logo {
  animation: logo-pop 1.4s var(--out) both;
  animation-delay: calc(var(--intro, 0s) + 0.25s);
}

@keyframes logo-pop {
  from {
    opacity: 0;
    clip-path: inset(0 100% 0 0);
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    clip-path: inset(-30% -30% -30% -30%);
    transform: none;
  }
}

.hero-inner {
  position: relative;
  width: 100%;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin: 0 0 clamp(14px, 3vh, 36px);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

html.js .hero-meta,
html.js .hero-foot {
  animation: fade-up 1s var(--out) both;
  animation-delay: calc(var(--intro, 0s) + 0.5s);
}

.hero-title {
  margin: 0;
  font-size: clamp(42px, min(12.5vw, 15.5svh), 196px);
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.05em;
}

.hero-title .line:nth-child(2) {
  padding-left: 0.9em;
}

.hero-title .line:nth-child(3) {
  padding-left: 2.1em;
}

.g {
  position: relative;
  display: inline-block;
  width: 0.84em;
  height: 0.84em;
  margin: 0 0.06em;
  vertical-align: -0.05em;
}

.g svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.g path {
  stroke-width: 12;
}

.g-o path {
  stroke: url(#xo-grad);
}

.g-x path {
  stroke: var(--ink);
}

html.js .g path {
  stroke-dashoffset: 1;
  animation: draw 0.75s var(--out) forwards;
  animation-delay: calc(var(--intro, 0s) + 0.55s);
}

html.js .g-x path:first-child {
  animation-delay: calc(var(--intro, 0s) + 0.85s);
}

html.js .g-x path:last-child {
  animation-delay: calc(var(--intro, 0s) + 1s);
}

.hero-en {
  max-width: 32em;
  margin: clamp(14px, 2.2vw, 30px) 0 0;
  font-size: clamp(17px, 2vw, 28px);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--ink-2);
}

.hero-en .line {
  --ld: 0.3s;
}

.hero-foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-top: clamp(26px, 5vh, 60px);
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.hero-lead {
  max-width: 36em;
  margin: 0;
  font-size: 15px;
  line-height: 1.75;
}

.hero-lead .en {
  display: block;
  margin-top: 0.3em;
  font-size: 13.5px;
}

.scroll-cue {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.scroll-cue i {
  position: relative;
  width: 1px;
  height: 44px;
  overflow: hidden;
  background: var(--line);
}

.scroll-cue i::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--grad);
  animation: cue 1.9s var(--io) infinite;
}

@keyframes cue {
  0% { transform: translateY(-100%); }
  60%, 100% { transform: translateY(100%); }
}

/* ── crossing tapes ────────────────────────── */

.tapes {
  position: relative;
  display: grid;
  place-items: center;
  height: clamp(190px, 26vw, 390px);
  overflow: hidden;
}

.tape {
  position: absolute;
  left: -8%;
  width: 116%;
  overflow: hidden;
  padding: 0.26em 0;
  font-size: clamp(26px, 4.4vw, 68px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.025em;
  white-space: nowrap;
}

.tape-a {
  background: var(--ink);
  color: var(--paper);
  transform: rotate(-5deg);
}

.tape-b {
  background: linear-gradient(100deg, var(--a1), var(--a2), var(--a3), var(--a4), var(--a5), var(--a4), var(--a3), var(--a2), var(--a1));
  background-size: 200% 100%;
  color: #fff;
  transform: rotate(4deg);
  animation: flow 9s linear infinite;
}

.tape-track {
  display: flex;
  width: max-content;
  will-change: transform;
}

.tape-group {
  display: flex;
  flex: none;
  align-items: center;
  gap: 0.5em;
  padding-right: 0.5em;
}

.tm {
  position: relative;
  display: inline-block;
  flex: none;
  width: 0.6em;
  height: 0.6em;
}

.tm-o {
  border: 0.11em solid currentColor;
  border-radius: 50%;
}

.tm-x::before,
.tm-x::after {
  content: "";
  position: absolute;
  left: 50%;
  top: -10%;
  width: 0.11em;
  height: 120%;
  margin-left: -0.055em;
  border-radius: 0.1em;
  background: currentColor;
  transform: rotate(45deg);
}

.tm-x::after {
  transform: rotate(-45deg);
}

.tape-a .tm-o {
  color: var(--accent);
}

.tape-a .tm-x {
  color: var(--a2);
}

.tape-b .tm-x {
  color: var(--deep);
}

/* ── sections ──────────────────────────────── */

.about {
  padding: clamp(96px, 13vw, 190px) var(--gut) clamp(80px, 10vw, 150px);
}

.sec-label {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
  margin: 0 0 clamp(32px, 5vw, 64px);
  padding-top: 18px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sec-label::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: currentColor;
  opacity: 0.35;
  transform-origin: left;
}

.sec-label::after {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 56px;
  height: 3px;
  border-radius: 3px;
  background: var(--grad);
  transform-origin: left;
}

html.io .sec-label.reveal::before,
html.io .sec-label.reveal::after {
  transform: scaleX(0);
  transition: transform 1.3s var(--io);
}

html.io .sec-label.reveal::after {
  transition-delay: 0.35s;
}

html.io .sec-label.reveal.in::before,
html.io .sec-label.reveal.in::after {
  transform: scaleX(1);
}

.sec-label .check {
  width: 16px;
  height: 16px;
}

.sec-label .check path {
  stroke-width: 9;
}

/* reveal on scroll */
html.io .reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s var(--out), transform 1.2s var(--out);
}

html.io .reveal.in {
  opacity: 1;
  transform: none;
}

html.io .reveal[data-d="1"] { transition-delay: 0.08s; }
html.io .reveal[data-d="2"] { transition-delay: 0.16s; }
html.io .reveal[data-d="3"] { transition-delay: 0.24s; }

html.io .reveal .pen path,
html.io .reveal .check path,
html.io .reveal .svc-mark path {
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 0.9s var(--out) 0.35s;
}

html.io .reveal.in .pen path,
html.io .reveal.in .check path,
html.io .reveal.in .svc-mark path {
  stroke-dashoffset: 0;
}

html.io .reveal.in .svc-mark path:last-child {
  transition-delay: 0.55s;
}

/* statement */
.statement {
  max-width: 13.5em;
  margin: 0;
  font-size: clamp(36px, 6.4vw, 104px);
  font-weight: 800;
  line-height: 1.16;
  letter-spacing: -0.04em;
}

html.io .statement .ch {
  opacity: 0.12;
}

.circled {
  position: relative;
  display: inline-block;
  white-space: nowrap;
}

.circled .pen {
  position: absolute;
  left: -10%;
  top: -16%;
  width: 120%;
  height: 132%;
}

html.io .statement .pen path {
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 1s var(--out);
}

html.io .statement.done .pen path {
  stroke-dashoffset: 0;
}

.statement-en {
  max-width: 30em;
  margin: 1.1em 0 0;
  font-size: clamp(18px, 2vw, 28px);
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: var(--ink-2);
}

/* services */
.services {
  margin: clamp(72px, 10vw, 150px) 0 0;
  padding: 0;
  list-style: none;
  border-bottom: 1px solid var(--line);
}

.service {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: clamp(56px, 8vw, 120px) minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(18px, 3.4vw, 56px);
  align-items: center;
  padding: clamp(28px, 4vw, 56px) 0;
  border-top: 1px solid var(--line);
}

.service::before {
  content: "";
  position: absolute;
  inset: 0 calc(var(--gut) * -1);
  z-index: -1;
  background: var(--grad);
  clip-path: inset(0 100% 0 0);
  transition: clip-path 0.75s var(--io);
}

@media (hover: hover) {
  .service:hover::before {
    clip-path: inset(0 0 0 0);
  }

  .service:hover .en {
    color: rgba(255, 255, 255, 0.78);
  }

  .service:hover .svc-mark svg {
    transform: rotate(90deg) scale(1.08);
  }

  .service:hover .svc-mark path {
    stroke: #fff;
  }
}

.svc-mark svg {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.9s var(--out);
}

.svc-mark path {
  stroke-width: 9;
  transition: stroke 0.4s, stroke-dashoffset 0.9s var(--out) 0.35s;
}

.svc-mark.x path {
  stroke: var(--ink);
}

.svc-mark.o path {
  stroke: url(#xo-grad);
}

.svc-title {
  margin: 0;
  font-size: clamp(42px, 7.2vw, 112px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
}

.svc-title .en {
  display: block;
  margin-top: 0.7em;
  font-family: var(--mono);
  font-size: max(12px, 0.15em);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.5s;
}

.svc-text {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.8;
}

.svc-text .en {
  display: block;
  margin-top: 0.6em;
  font-size: 14px;
  line-height: 1.7;
  transition: color 0.5s;
}

/* profile sheet */
.sheet {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 clamp(16px, 3vw, 40px);
  margin: clamp(72px, 9vw, 130px) 0 0;
}

.sheet-row {
  position: relative;
  padding: 18px 48px 22px 0;
  border-top: 2px solid var(--ink);
}

.sheet dt {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 10px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.sheet dd {
  margin: 8px 0 0;
  font-size: clamp(17px, 1.6vw, 21px);
  font-weight: 700;
  line-height: 1.5;
}

.sheet dd .en {
  display: block;
  font-size: 13.5px;
  font-weight: 400;
}

.sheet dd a {
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.sheet .check {
  position: absolute;
  right: 4px;
  top: 14px;
  width: 34px;
  height: 34px;
}

.sheet .check path {
  stroke-width: 7;
}

/* ── apps ──────────────────────────────────── */

.apps {
  position: relative;
  height: 230vh;
  background-color: var(--paper-2);
  background-image: linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 28px 28px;
}

.apps-sticky {
  position: sticky;
  top: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--gut);
  align-items: center;
  height: 100vh;
  height: 100svh;
  padding: 90px var(--gut) 40px;
  overflow: hidden;
}

.apps-big {
  margin: 0.1em 0 0.35em;
  font-size: clamp(64px, 10.5vw, 176px);
  font-weight: 800;
  line-height: 0.88;
  letter-spacing: -0.055em;
}

.apps-big span {
  display: block;
}

.apps-big .outline {
  padding-left: 0.5em;
  color: transparent;
  -webkit-text-stroke: 2px var(--ink);
  background: var(--grad) no-repeat 0 0 / calc(var(--p, 0) * 100%) 100%;
  -webkit-background-clip: text;
  background-clip: text;
}

.apps-copy p {
  max-width: 30em;
}

.apps-copy > p:not(.apps-big):not(.status) {
  margin: 0 0 0.6em;
}

.apps-copy p.en {
  font-size: 14.5px;
  line-height: 1.7;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 18px 0 0;
  padding: 7px 16px;
  border-radius: 999px;
  box-shadow: 0 0 0 1px var(--line);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.status i {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.status i::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--accent);
  animation: ping 1.8s var(--out) infinite;
}

@keyframes ping {
  from { transform: scale(1); opacity: 0.7; }
  to { transform: scale(3.2); opacity: 0; }
}

.phone-stage {
  position: relative;
  display: grid;
  place-items: center;
  height: min(80svh, 720px);
  perspective: 1600px;
}

.phone-stage::before {
  content: "";
  position: absolute;
  width: 70%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--a2) 40%, transparent), transparent),
    radial-gradient(closest-side, color-mix(in srgb, var(--a4) 30%, transparent), transparent) 40% 60% / 80% 80% no-repeat;
  opacity: 0.7;
}

.phone {
  --rx: 14deg;
  --ry: -28deg;
  --rz: -8deg;
  position: relative;
  width: min(300px, 26vw);
  aspect-ratio: 300 / 620;
  padding: 3.4%;
  border-radius: 16% / 7.7%;
  background: #0b0d0e;
  box-shadow: inset 0 0 0 2px #3a4144, inset 0 0 0 4px #0b0d0e, inset 0 0 0 5px #4a5255,
    0 60px 100px -40px rgba(0, 0, 0, 0.8), 0 30px 120px -30px color-mix(in srgb, var(--a3) 45%, transparent);
  transform: rotateX(var(--rx)) rotateY(var(--ry)) rotateZ(var(--rz));
  will-change: transform;
}

.screen {
  container-type: inline-size;
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 26% 8% 6%;
  overflow: hidden;
  border-radius: 13% / 6.1%;
  background: var(--paper);
}

.island {
  position: absolute;
  top: 3.2%;
  left: 50%;
  width: 33%;
  height: 4.6%;
  border-radius: 999px;
  background: #000;
  transform: translateX(-50%);
}

.tiles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8cqw 5.4cqw;
}

.dock {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 5.4cqw;
  margin-top: auto;
  padding: 4cqw;
  border-radius: 9cqw;
  background: color-mix(in srgb, var(--ink) 8%, transparent);
}

.tile {
  position: relative;
  aspect-ratio: 1;
  border-radius: 24%;
  transform: scale(0);
  transition: transform 0.7s var(--out) var(--td, 0s);
}

.phone-stage.in .tile {
  transform: scale(1);
}

.tile.flip {
  animation: flip 0.5s var(--out);
}

@keyframes flip {
  0% { transform: scale(1) rotate(0); }
  35% { transform: scale(0.55) rotate(-60deg); }
  100% { transform: scale(1) rotate(0); }
}

.tile::before,
.tile::after {
  content: "";
  position: absolute;
}

.tile.x::before,
.tile.x::after {
  left: 44.5%;
  top: 21%;
  width: 11%;
  height: 58%;
  border-radius: 99px;
  background: currentColor;
  transform: rotate(45deg);
}

.tile.x::after {
  transform: rotate(-45deg);
}

.tile.o::before {
  left: 25%;
  top: 25%;
  width: 50%;
  height: 50%;
  border: 2cqw solid currentColor;
  border-radius: 50%;
}

.tile.o::after {
  content: none;
}

.tile.c1 {
  background: #2a3235;
  color: var(--ink);
}

.tile.c1.o {
  color: var(--accent);
}

.tile.c2 {
  background: var(--grad);
  color: #fff;
}

.tile.c3 {
  background: var(--ink);
  color: var(--paper);
}

.screen::after {
  content: "";
  position: absolute;
  bottom: 1.8%;
  left: 50%;
  width: 36%;
  height: 1.2cqw;
  border-radius: 99px;
  background: var(--ink);
  opacity: 0.7;
  transform: translateX(-50%);
}

.stamp {
  position: absolute;
  top: 6%;
  right: 4%;
  width: clamp(116px, 12vw, 180px);
  height: auto;
  overflow: visible;
}

.stamp-bg {
  fill: url(#xo-grad);
}

.stamp text {
  fill: #fff;
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.stamp-x {
  fill: none;
  stroke: #fff;
  stroke-width: 7;
  stroke-linecap: round;
}

/* ── contact ───────────────────────────────── */

.contact {
  position: relative;
  overflow: hidden;
  padding: clamp(96px, 12vw, 180px) var(--gut) clamp(80px, 10vw, 150px);
  border-radius: clamp(24px, 4vw, 56px) clamp(24px, 4vw, 56px) 0 0;
  background: var(--surface);
  box-shadow: 0 -1px 0 var(--line);
}

.contact .aurora i:nth-child(1) {
  top: auto;
  bottom: -36vmax;
  right: auto;
  left: -20vmax;
}

.contact .aurora i:nth-child(2) {
  top: auto;
  bottom: -30vmax;
  right: -10vmax;
}

.contact .aurora i:nth-child(3) {
  top: -30vmax;
  right: -26vmax;
}

.contact-ring {
  position: absolute;
  top: -18vw;
  right: -14vw;
  width: 56vw;
  max-width: 900px;
  height: auto;
  overflow: visible;
  opacity: 0.4;
  pointer-events: none;
}

.contact-ring path {
  fill: none;
  stroke: url(#xo-grad);
  stroke-width: 2.2;
  stroke-linecap: round;
}

.contact-inner {
  position: relative;
}

.contact-big {
  margin: 0 0 clamp(40px, 6vw, 80px);
  font-size: clamp(46px, 8.6vw, 144px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.05em;
}

html.io .contact-big.reveal {
  opacity: 1;
  transform: none;
}

html.io .contact-big .line-in {
  transform: translateY(112%);
  transition: transform 1.2s var(--out);
}

html.io .contact-big .line:nth-child(2) .line-in {
  transition-delay: 0.1s;
}

html.io .contact-big.in .line-in {
  transform: none;
}

.contact-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 40px;
  align-items: end;
}

.contact-text p {
  max-width: 34em;
  margin: 0 0 0.4em;
}

.contact-text .en {
  font-size: 14.5px;
}

.email {
  position: relative;
  display: inline-block;
  margin-top: clamp(28px, 4vw, 48px);
  color: inherit;
  text-decoration: none;
  font-size: clamp(22px, 5.4vw, 84px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.035em;
  white-space: nowrap;
}

.email-text .ch {
  display: inline-block;
  transition: transform 0.5s var(--out), color 0.3s;
  transition-delay: calc(var(--i, 0) * 16ms);
}

.email:hover .email-text .ch,
.email:focus-visible .email-text .ch {
  transform: translateY(-0.14em);
  color: var(--accent);
}

.email .pen {
  position: absolute;
  left: -6%;
  top: -30%;
  width: 112%;
  height: 160%;
  pointer-events: none;
}

.email .pen path {
  stroke-width: 2.4;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 0.9s var(--out);
}

.email:hover .pen path,
.email:focus-visible .pen path {
  stroke-dashoffset: 0;
}

@media (hover: none) {
  html.io .email.reveal.in .pen path,
  html.io .reveal.in .email .pen path {
    stroke-dashoffset: 0;
    transition-delay: 0.6s;
  }
}

.magnet-wrap {
  padding: 36px;
  margin: -36px;
}

.magnet {
  display: grid;
  place-items: center;
  width: clamp(116px, 11vw, 164px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--a1), var(--a2), var(--a3), var(--a4), var(--a5));
  background-size: 180% 180%;
  color: #fff;
  text-decoration: none;
  text-align: center;
  box-shadow: 0 24px 60px -20px color-mix(in srgb, var(--a3) 70%, transparent);
  transition: transform 0.6s var(--out), background-position 0.8s var(--out);
}

.magnet:hover {
  background-position: 100% 100%;
}

.magnet span {
  display: block;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.02em;
  transition: transform 0.6s var(--out);
}

.magnet small {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.85;
}

/* ── footer ────────────────────────────────── */

.site-footer {
  overflow: hidden;
  padding: 0 var(--gut);
  background: var(--surface);
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 32px;
  padding: 26px 0;
  border-top: 1px solid var(--line);
  font-size: 13px;
}

.footer-top p {
  margin: 0;
}

.footer-top a {
  text-decoration: none;
}

.footer-top a:hover {
  color: var(--accent);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}

.footer-word {
  display: flex;
  margin: 0 0 -0.08em;
  font-size: 20.4vw;
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: -0.07em;
  white-space: nowrap;
  overflow: hidden;
}

.footer-word span {
  display: inline-block;
}

.footer-word .gx,
.footer-word .go {
  padding-right: 0.07em;
  margin-right: -0.07em;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.footer-word .gx {
  background-image: linear-gradient(110deg, var(--a1), var(--a2) 55%, var(--a3));
}

.footer-word .go {
  background-image: linear-gradient(110deg, var(--a3), var(--a4) 50%, var(--a5));
}

html.io .footer-word.reveal {
  opacity: 1;
  transform: none;
}

html.io .footer-word span {
  transform: translateY(105%);
  transition: transform 1.1s var(--out);
  transition-delay: calc(var(--i, 0) * 45ms);
}

html.io .footer-word.in span {
  transform: none;
}

/* ── progress ring ─────────────────────────── */

.progress {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 90;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 0 0 1px var(--line);
  color: var(--ink);
  text-decoration: none;
  font-size: 16px;
  opacity: 0;
  transform: scale(0.5);
  pointer-events: none;
  transition: opacity 0.4s, transform 0.6s var(--out);
}

html:not(.io) .progress {
  display: none;
}

.progress.show {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.progress svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.pr-track {
  fill: none;
  stroke: var(--line);
  stroke-width: 1.5;
}

.pr-bar {
  fill: none;
  stroke: url(#xo-grad);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}

/* ── documents (privacy, 404) ──────────────── */

.page-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(120px, 16vw, 200px) var(--gut) clamp(40px, 6vw, 72px);
}

.page-hero > :not(.aurora) {
  position: relative;
}

.page-title {
  margin: 0;
  font-size: clamp(50px, 10vw, 160px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.05em;
}

.page-title .line:nth-child(2) {
  padding-left: 1.2em;
}

.underlined {
  position: relative;
  display: inline-block;
}

.underlined .pen {
  position: absolute;
  left: -2%;
  bottom: -0.12em;
  width: 104%;
  height: 0.26em;
}

.underlined .pen path {
  stroke-width: 3.5;
}

html.js .rise .pen path {
  stroke-dashoffset: 1;
  animation: draw 0.9s var(--out) forwards;
  animation-delay: 0.8s;
}

.page-sub {
  margin: 0.9em 0 0;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

html.js .page-sub {
  animation: fade-up 1s var(--out) 0.45s both;
}

.doc-body {
  display: grid;
  grid-template-columns: 200px minmax(0, 760px);
  gap: clamp(32px, 7vw, 120px);
  padding: 0 var(--gut) clamp(96px, 12vw, 160px);
}

.doc-aside {
  position: relative;
}

.aside-inner {
  position: sticky;
  top: 100px;
  padding-top: 18px;
  border-top: 2px solid var(--ink);
  font-size: 14px;
}

.aside-inner .mono {
  margin: 0 0 8px;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.aside-inner p + .mono,
.aside-inner .lang-switch + .mono {
  margin-top: 24px;
}

.aside-inner p {
  margin: 0;
  line-height: 1.6;
}

.lang-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.lang-switch a {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 999px;
  box-shadow: 0 0 0 1px var(--line);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.3s, color 0.3s;
}

.lang-switch a:hover {
  background: var(--ink);
  color: var(--paper);
}

.policy {
  scroll-margin-top: 100px;
}

.policy + .policy {
  margin-top: clamp(64px, 8vw, 110px);
  padding-top: clamp(48px, 6vw, 80px);
  border-top: 2px solid var(--ink);
}

.policy-label {
  display: inline-block;
  margin: 0 0 18px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.policy h2 {
  margin: 2.4em 0 0.6em;
  font-size: clamp(19px, 2vw, 23px);
  line-height: 1.5;
  letter-spacing: -0.01em;
}

.policy p,
.policy li {
  font-size: 15.5px;
  color: var(--ink-2);
}

.policy ol,
.policy ul {
  margin: 0.6em 0 1em;
  padding-left: 1.6em;
}

.policy li {
  margin: 0.3em 0;
}

.policy li::marker {
  font-family: var(--mono);
  color: var(--muted);
}

.policy a {
  color: var(--ink);
  text-decoration-color: var(--accent);
  text-underline-offset: 3px;
}

.note {
  margin-top: 32px;
  padding: 16px 20px;
  border-radius: 12px;
  box-shadow: 0 0 0 1px var(--line);
  font-size: 14px;
  color: var(--muted);
}

.nf {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 120px var(--gut) 80px;
  overflow: hidden;
}

.nf > :not(.aurora) {
  position: relative;
}

.nf-title {
  margin: 0;
  font-size: clamp(120px, 30vw, 420px);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.06em;
}

.nf-title .g {
  width: 0.78em;
  height: 0.78em;
  vertical-align: -0.02em;
}

.nf-title .g path {
  stroke-width: 9;
}

.nf-text {
  margin: 1.4em 0 0;
  font-size: clamp(18px, 2.2vw, 26px);
  font-weight: 700;
  line-height: 1.5;
}

.nf-text .en {
  display: block;
  font-size: 0.7em;
  font-weight: 500;
}

.back {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 36px;
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  align-self: flex-start;
  transition: background-color 0.3s, color 0.3s;
}

.back:hover {
  background: var(--accent);
  color: #fff;
}

/* ── responsive ────────────────────────────── */

@media (max-width: 900px) {
  .hero-logo {
    width: clamp(180px, 46vw, 300px);
    right: auto;
    left: var(--gut);
    top: clamp(96px, 16svh, 150px);
  }

  .service {
    grid-template-columns: clamp(52px, 12vw, 80px) minmax(0, 1fr);
    align-items: start;
  }

  .svc-text {
    grid-column: 2;
  }

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

  .apps {
    height: auto;
  }

  .apps-sticky {
    position: relative;
    grid-template-columns: 1fr;
    height: auto;
    padding: clamp(96px, 16vw, 140px) var(--gut) 40px;
  }

  .phone-stage {
    height: auto;
    padding: 24px 0 56px;
  }

  .phone {
    width: min(270px, 64vw);
  }

  .stamp {
    top: 0;
    right: 2%;
  }

  .contact-row {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .magnet-wrap {
    justify-self: start;
  }

  .doc-body {
    grid-template-columns: 1fr;
  }

  .aside-inner {
    position: static;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 32px;
    align-items: center;
  }

  .aside-inner p + .mono,
  .aside-inner .lang-switch + .mono {
    margin-top: 0;
  }
}

@media (max-width: 600px) {
  .site-header {
    padding-top: 12px;
  }

  .brand {
    padding: 7px 14px 7px 11px;
    font-size: 14px;
  }

  .brand img {
    width: 34px;
  }

  .site-nav a {
    padding: 7px 10px;
    font-size: 11px;
  }

  .hero-title .line:nth-child(2) {
    padding-left: 0.5em;
  }

  .hero-title .line:nth-child(3) {
    padding-left: 1.1em;
  }

  .hero-foot {
    flex-direction: column;
    align-items: flex-start;
  }

  .scroll-cue {
    display: none;
  }

  .tape-a {
    transform: rotate(-7deg);
  }

  .tape-b {
    transform: rotate(6deg);
  }

  .page-title .line:nth-child(2) {
    padding-left: 0.5em;
  }
}

@media (max-width: 360px) {
  .brand-name {
    display: none;
  }

  .site-nav a {
    padding: 7px 8px;
    letter-spacing: 0.02em;
  }
}

/* ── reduced motion ────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  html.intro-on .intro {
    display: none;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001s !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
    transition-delay: 0s !important;
  }
}
