/* =========================================================
   System Shimamura — site.css
   Type: Neue Haas Grotesk Display / Text + Hiragino Kaku Gothic ProN (Adobe Fonts, kit iha3peu)
   ========================================================= */

:root {
  --black: #000;
  --ink: #1d1d1f;
  --ink-2: #424245;
  --ink-3: #6e6e73;
  --ink-4: #86868b;
  --paper: #fff;
  --mist: #f5f5f7;
  --fg: #f5f5f7;
  --fg-2: #a1a1a6;
  --fg-3: #86868b;
  --rule-d: rgba(255, 255, 255, .14);
  --rule-l: rgba(0, 0, 0, .1);
  --green: #00b050;
  --blue: #0070c0;
  --green-l: #34d68a;
  --blue-l: #3d9bea;
  --grad: linear-gradient(90deg, #00b050 0%, #0070c0 100%);
  --grad-l: linear-gradient(90deg, #36d98c 0%, #46a2f0 100%);

  --jp: "hiragino-kaku-gothic-pron", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", YuGothic, "Meiryo", sans-serif;
  --f-display: "neue-haas-grotesk-display", "Helvetica Neue", Helvetica, Arial, var(--jp);
  --f-text: "neue-haas-grotesk-text", "Helvetica Neue", Helvetica, Arial, var(--jp);

  --nav-h: 48px;
  --gutter: clamp(20px, 5.6vw, 72px);
  --max: 1200px;
  --ease: cubic-bezier(.22, .8, .12, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
  background: var(--black);
}
body {
  margin: 0;
  font-family: var(--f-text);
  font-size: 17px;
  line-height: 1.6;
  font-weight: 400;
  color: var(--fg);
  background: var(--black);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  overflow-x: clip;
}
html:lang(ja) body { line-height: 1.85; letter-spacing: .02em; }
html:lang(ja) { word-break: auto-phrase; line-break: strict; }
.ph { display: inline-block; }
img, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
p, h1, h2, h3, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3 { font-weight: 600; }
button, input { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
:focus { outline: 2px solid var(--blue); outline-offset: 3px; }
:focus:not(:focus-visible) { outline: none; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
[data-theme="dark"] :focus-visible, .nav.is-dark :focus-visible { outline-color: var(--blue-l); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
img.is-broken { opacity: 0 !important; }
.wrap { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.br-wide { display: none; }

.skip {
  position: fixed; left: 12px; top: 8px; z-index: 100;
  padding: 8px 16px; border-radius: 999px; background: var(--fg); color: var(--black); font-size: 14px;
  transform: translateY(-160%); transition: transform .2s var(--ease);
}
.skip:focus { transform: none; }

/* display type */
.hero__title, .intro__text, .services__title, .chapter__head, .work__title, .lens__text, .foot__tagline, .err__code, .err__title, .pillar__k {
  font-family: var(--f-display);
}
html:lang(ja) :is(.intro__text, .services__title, .chapter__head, .work__title, .foot__tagline, .err__title, .pillar__k, .work__lead, .chapter__name) {
  font-feature-settings: "palt" 1;
  letter-spacing: .02em;
}

.label {
  font-family: var(--f-text);
  font-size: 14px; line-height: 1.4; font-weight: 500; letter-spacing: .02em;
  color: var(--fg-2);
  margin-bottom: 20px;
}
[data-theme="light"] .label { color: var(--ink-3); }

/* gradient text with a safe fallback */
.grad, .hero__eyebrow, .chapter__name, .pillar__no, .chapter__no span {
  color: var(--green-l);
  background: var(--grad-l);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  .grad, .hero__eyebrow, .chapter__name, .pillar__no, .chapter__no span { -webkit-text-fill-color: currentColor; background: none; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 46px; padding: 0 24px; border-radius: 999px;
  font-family: var(--f-text); font-size: 16px; font-weight: 500; line-height: 1; letter-spacing: .01em; white-space: nowrap;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.btn:active { transform: scale(.97); }
.btn--light { background: var(--fg); color: var(--black); }
.btn--light:hover { background: #fff; }
.btn--line { border: 1px solid rgba(255, 255, 255, .3); color: var(--fg); }
.btn--line:hover { border-color: rgba(255, 255, 255, .75); }
.btn__arrow { width: 7px; height: 7px; border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor; transform: rotate(45deg); margin-left: 2px; transition: transform .25s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(3px) rotate(45deg); }

/* =========================================================
   Navigation
   ========================================================= */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  height: var(--nav-h);
  color: var(--fg);
  transition: background-color .35s var(--ease), color .35s var(--ease), box-shadow .35s var(--ease);
}
.nav.is-scrolled { background: rgba(0, 0, 0, .78); box-shadow: 0 1px 0 rgba(255, 255, 255, .08); }
.nav.is-light { color: var(--ink); }
.nav.is-scrolled.is-light { background: rgba(255, 255, 255, .86); box-shadow: 0 1px 0 rgba(0, 0, 0, .08); }
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .nav.is-scrolled { background: rgba(0, 0, 0, .62); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); }
  .nav.is-scrolled.is-light { background: rgba(255, 255, 255, .72); }
}
.nav__inner {
  height: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter);
  display: flex; align-items: center; gap: 28px;
}
.nav__brand { display: flex; align-items: center; margin-right: auto; height: 100%; }
.lockup { width: auto; height: 20px; }
.nav__menu { display: flex; gap: 30px; font-size: 13px; letter-spacing: .02em; }
.nav__menu a { opacity: .8; transition: opacity .2s; padding: 8px 0; }
.nav__menu a:hover { opacity: 1; }
.lang {
  display: flex; align-items: center; gap: 2px; padding: 2px;
  border-radius: 999px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22);
  font-size: 11px; font-weight: 500; letter-spacing: .06em;
}
.nav.is-light .lang { box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .14); }
.lang a { padding: 4px 9px; border-radius: 999px; opacity: .65; transition: opacity .2s, background-color .2s; }
.lang a:hover { opacity: 1; }
.lang a[aria-current="page"] { opacity: 1; background: rgba(255, 255, 255, .16); }
.nav.is-light .lang a[aria-current="page"] { background: rgba(0, 0, 0, .07); }
.nav__toggle { display: none; position: relative; width: 40px; height: 40px; margin-right: -10px; }
.nav__toggle i { position: absolute; left: 12px; right: 12px; height: 1.5px; background: currentColor; border-radius: 2px; transition: transform .35s var(--ease); }
.nav__toggle i:first-of-type { top: 16px; }
.nav__toggle i:last-of-type { top: 23px; }
.nav.is-open .nav__toggle i:first-of-type { transform: translateY(3.5px) rotate(45deg); }
.nav.is-open .nav__toggle i:last-of-type { transform: translateY(-3.5px) rotate(-45deg); }

@media (max-width: 760px) {
  .nav__inner { gap: 14px; }
  .js .nav__toggle { display: block; }
  .js .nav__menu {
    position: fixed; left: 0; right: 0; top: var(--nav-h); height: calc(100vh - var(--nav-h)); height: calc(100dvh - var(--nav-h));
    flex-direction: column; gap: 0; padding: 18px var(--gutter);
    background: rgba(0, 0, 0, .96); color: var(--fg);
    font-size: 28px; font-weight: 600; letter-spacing: 0; font-family: var(--f-display);
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity .3s var(--ease), transform .3s var(--ease), visibility 0s .3s;
  }
  @supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
    .js .nav__menu { background: rgba(0, 0, 0, .8); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); }
  }
  .js .nav__menu a { opacity: 1; padding: 14px 0; border-bottom: 1px solid var(--rule-d); }
  .js .nav.is-open .nav__menu { visibility: visible; opacity: 1; transform: none; transition: opacity .3s var(--ease), transform .3s var(--ease); }
  .js .nav.is-open { background: rgba(0, 0, 0, .96); color: var(--fg); }
  .no-js .nav__menu { gap: 16px; font-size: 12px; }
  .no-js .nav__brand { margin-right: 0; }
  .no-js .nav__inner { justify-content: space-between; }
  .no-js .lockup { width: 22px; height: 20px; overflow: hidden; }
}
html.menu-open, html.menu-open body { overflow: hidden; }

/* =========================================================
   Hero
   ========================================================= */
.hero {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; overflow: clip;
  background: var(--black);
  padding: calc(var(--nav-h) + 40px) var(--gutter) 120px;
  isolation: isolate;
}
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.no-js .hero__canvas { display: none; }
.hero::after { /* soft floor glow so the page never looks empty without canvas */
  content: ""; position: absolute; left: 50%; bottom: -30vh; width: 120vw; height: 60vh; transform: translateX(-50%); z-index: -2;
  background: radial-gradient(closest-side, rgba(0, 112, 192, .22), rgba(0, 176, 80, .06) 60%, transparent);
  pointer-events: none;
}
.hero__inner { position: relative; max-width: 1280px; text-align: center; transform: translateY(-4vh); }
.hero__eyebrow { display: inline-block; font-size: 15px; font-weight: 500; letter-spacing: .04em; margin-bottom: 22px; }
.hero__title {
  font-size: clamp(42px, 7.1vw, 112px);
  line-height: .98; letter-spacing: -.038em; font-weight: 600;
  color: var(--fg);
}
.hero__title .w { display: inline-block; }
.hero__title .w:last-child { color: var(--green-l); background: var(--grad-l); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; padding-right: .04em; }
.hero__sub {
  margin: 26px auto 0; max-width: 34em;
  font-family: var(--f-display); font-size: clamp(19px, 2vw, 27px); line-height: 1.3; letter-spacing: -.012em; font-weight: 500;
  color: var(--fg-2);
}
.hero__note { margin: 22px auto 0; max-width: 40em; font-size: 15px; line-height: 1.75; color: var(--fg-3); }
html:lang(ja) .hero__note { font-size: 14px; }
.hero__cta { margin-top: 36px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero__scroll { position: absolute; left: 50%; bottom: 28px; width: 28px; height: 46px; transform: translateX(-50%); }
.hero__scroll i { position: absolute; left: 50%; top: 0; width: 1px; height: 100%; background: linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, .6)); overflow: hidden; }
.hero__scroll i::after { content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: #fff; animation: drip 2.4s var(--ease-io) infinite; }
@keyframes drip { to { top: 100%; } }

/* entrance (only when JS runs; the head fail-safe removes .js if site.js never arrives) */
.js .hero .w, .js .hero__eyebrow, .js .hero__sub, .js .hero__note, .js .hero__cta {
  opacity: 0; transform: translateY(.35em); filter: blur(10px);
  transition: opacity 1.1s var(--ease), transform 1.1s var(--ease), filter 1.1s var(--ease);
}
.js .hero__sub, .js .hero__note, .js .hero__cta { transform: translateY(14px); }
.js .hero.is-ready .w, .js .hero.is-ready .hero__eyebrow, .js .hero.is-ready .hero__sub, .js .hero.is-ready .hero__note, .js .hero.is-ready .hero__cta { opacity: 1; transform: none; filter: none; }
.js .hero.is-ready .w:nth-child(1) { transition-delay: .10s; }
.js .hero.is-ready .w:nth-child(2) { transition-delay: .18s; }
.js .hero.is-ready .w:nth-child(3) { transition-delay: .26s; }
.js .hero.is-ready .w:nth-child(5) { transition-delay: .36s; }
.js .hero.is-ready .w:nth-child(6) { transition-delay: .46s; }
.js .hero.is-ready .hero__sub { transition-delay: .62s; }
.js .hero.is-ready .hero__note { transition-delay: .74s; }
.js .hero.is-ready .hero__cta { transition-delay: .84s; }

/* =========================================================
   Intro statement
   ========================================================= */
.intro { background: var(--black); padding: clamp(120px, 20vh, 220px) 0 clamp(60px, 8vh, 100px); }
.intro__text {
  max-width: 21em;
  font-size: clamp(30px, 4.6vw, 64px); line-height: 1.16; letter-spacing: -.028em; font-weight: 600;
  color: var(--fg);
}
html:lang(ja) .intro__text { max-width: 15.5em; font-size: clamp(28px, 4.1vw, 56px); line-height: 1.38; letter-spacing: .01em; }
.intro__text .u { transition: color .5s var(--ease); }
.js .intro__text.is-armed .u { color: #3a3a3d; }
.js .intro__text.is-armed .u.on { color: var(--fg); }
.pillars { margin-top: clamp(80px, 12vh, 140px); display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.pillar { padding-top: 22px; border-top: 1px solid var(--rule-d); }
.pillar__no { display: inline-block; font-size: 13px; font-weight: 500; letter-spacing: .06em; margin-bottom: 18px; }
.pillar__k { font-size: 22px; line-height: 1.3; letter-spacing: -.01em; margin-bottom: 10px; }
.pillar__v { font-size: 15px; line-height: 1.75; color: var(--fg-2); }
@media (max-width: 860px) { .pillars { grid-template-columns: 1fr; gap: 28px; } }

/* =========================================================
   Services (sticky line drawing + chapters)
   ========================================================= */
.services { background: var(--black); padding-top: clamp(100px, 14vh, 160px); }
.services__head { margin-bottom: clamp(40px, 6vh, 72px); }
.services__title { font-size: clamp(36px, 5.6vw, 80px); line-height: 1.04; letter-spacing: -.035em; max-width: 13em; }
html:lang(ja) .services__title { line-height: 1.25; letter-spacing: .01em; font-size: clamp(32px, 4.8vw, 68px); }

.svc { position: relative; display: grid; grid-template-columns: 1fr 1fr; max-width: calc(var(--max) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.svc__stage { position: sticky; top: var(--nav-h); height: calc(100vh - var(--nav-h)); height: calc(100svh - var(--nav-h)); }
.svc__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.svc__rail { position: absolute; left: 0; top: 50%; transform: translateY(-50%); display: grid; gap: 14px; }
.svc__rail li { position: relative; display: flex; align-items: center; gap: 12px; font-size: 11px; letter-spacing: .08em; color: var(--fg-3); transition: color .4s var(--ease); --p: 0; }
.svc__rail li::before { content: ""; width: 36px; height: 1px; background: rgba(255, 255, 255, .2); }
.svc__rail li::after { content: ""; position: absolute; left: 0; top: 50%; width: 36px; height: 1px; background: var(--grad-l); transform-origin: left center; transform: scaleX(var(--p)); }
.svc__rail li.is-on { color: var(--fg); }
.svc__rail b { font-weight: 500; }
.chapter {
  min-height: 92vh; min-height: 92svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 80px 0 80px clamp(24px, 4vw, 64px);
}
.chapter__no { font-size: 13px; letter-spacing: .04em; color: var(--fg-3); margin-bottom: 18px; display: flex; gap: 12px; align-items: baseline; }
.chapter__no span { font-weight: 500; }
.chapter__name { font-family: var(--f-text); font-size: 19px; line-height: 1.3; font-weight: 600; letter-spacing: .01em; margin-bottom: 12px; align-self: flex-start; }
.chapter__head { font-size: clamp(32px, 3.9vw, 56px); line-height: 1.08; letter-spacing: -.03em; font-weight: 600; color: var(--fg); }
html:lang(ja) .chapter__head { line-height: 1.32; letter-spacing: .01em; font-size: clamp(28px, 3.3vw, 46px); }
.chapter__body { margin-top: 24px; max-width: 32em; font-size: 17px; line-height: 1.7; color: var(--fg-2); }
html:lang(ja) .chapter__body { font-size: 16px; line-height: 1.95; }
.chapter__tags { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 8px; }
.chapter__tags li { font-size: 13px; line-height: 1; padding: 9px 14px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--rule-d); color: var(--fg); letter-spacing: .01em; }
/* scene mode (set by site.js): every chapter holds its text at the centre for a measured distance */
.js .svc.is-scene .chapter { display: block; min-height: 0; padding: var(--pad, 14vh) 0 0 clamp(24px, 4vw, 64px); }
.js .svc.is-scene .chapter__inner { position: sticky; top: var(--stick, 30vh); }
.js .svc.is-scene .chapter.is-flow .chapter__inner { position: static; }
.chapter__inner { display: flex; flex-direction: column; }
.js .chapter__inner > * { transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .svc.is-armed .chapter__inner > * { opacity: .12; transform: translateY(12px); }
.js .svc.is-armed .chapter.is-on .chapter__inner > * { opacity: 1; transform: none; }
.js .svc.is-armed .chapter.is-on .chapter__inner > :nth-child(2) { transition-delay: .04s; }
.js .svc.is-armed .chapter.is-on .chapter__inner > :nth-child(3) { transition-delay: .08s; }
.js .svc.is-armed .chapter.is-on .chapter__inner > :nth-child(4) { transition-delay: .12s; }
.js .svc.is-armed .chapter.is-on .chapter__inner > :nth-child(5) { transition-delay: .16s; }
.no-js .svc__stage { display: none; }
.no-js .svc { grid-template-columns: 1fr; }
.no-js .chapter { min-height: 0; padding: 56px 0; border-top: 1px solid var(--rule-d); }

@media (max-width: 900px) {
  .svc { grid-template-columns: 1fr; padding: 0; }
  /* phones and tablets: the drawing becomes a pinned backdrop and the text passes over it */
  .svc__stage {
    z-index: 0; height: calc(100vh - var(--nav-h)); height: calc(100svh - var(--nav-h));
    background: var(--black);
  }
  .svc__canvas { opacity: .5; }
  .svc__chapters { position: relative; z-index: 1; margin-top: calc(var(--nav-h) - 100vh); margin-top: calc(var(--nav-h) - 100svh); }
  .no-js .svc__chapters { margin-top: 0; }
  .svc__rail { left: var(--gutter); top: auto; bottom: 18px; transform: none; grid-auto-flow: column; gap: 18px; }
  .svc__rail li::before, .svc__rail li::after { width: 22px; }
  .chapter { min-height: 76vh; min-height: 76svh; justify-content: flex-start; padding: 56px var(--gutter) 64px; }
  .js .svc.is-scene .chapter { padding: var(--pad, 6vh) var(--gutter) 0; }
  .js .chapter__inner { text-shadow: 0 0 18px #000, 0 0 2px #000; }
  .js .chapter__name, .js .chapter__no span { text-shadow: none; }   /* a shadow would show through gradient-filled letters */
  .chapter__tags li { background: rgba(0, 0, 0, .55); }
}

/* =========================================================
   Work — light
   ========================================================= */
.work { background: var(--mist); color: var(--ink); padding: clamp(110px, 16vh, 180px) 0 clamp(100px, 14vh, 160px); }
.work__label { margin-bottom: clamp(26px, 4vh, 40px); }
.case + .case { margin-top: clamp(120px, 18vh, 220px); }
.work__badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 14px 6px 6px; border-radius: 999px; background: var(--paper);
  font-size: 13px; font-weight: 500; color: var(--ink-2); box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
  margin-bottom: 22px;
}
.work__no {
  display: inline-flex; align-items: center; justify-content: center; min-width: 30px; height: 22px; padding: 0 8px;
  border-radius: 999px; background: var(--grad); color: #fff;
  font-size: 12px; font-weight: 500; letter-spacing: .04em; font-variant-numeric: tabular-nums;
}
.work__title { font-size: clamp(38px, 6vw, 88px); line-height: 1.02; letter-spacing: -.038em; max-width: 12em; }
html:lang(ja) .work__title { line-height: 1.22; letter-spacing: .01em; font-size: clamp(34px, 5.2vw, 76px); }
.work__copy { margin-top: clamp(28px, 4vh, 44px); display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 64px); max-width: 1000px; }
.work__lead { font-family: var(--f-display); font-size: clamp(20px, 1.9vw, 25px); line-height: 1.42; letter-spacing: -.012em; font-weight: 500; color: var(--ink); }
html:lang(ja) .work__lead { font-size: clamp(18px, 1.7vw, 22px); line-height: 1.75; letter-spacing: .02em; font-weight: 600; }
.work__body { font-size: 16px; line-height: 1.8; color: var(--ink-3); }
@media (max-width: 760px) { .work__copy { grid-template-columns: 1fr; } }

/* comparison of the solid render and the analysis mesh */
.scan { margin: clamp(48px, 7vh, 88px) auto 0; max-width: calc(1280px + var(--gutter) * 2); padding: 0 var(--gutter); }
.scan__frame {
  position: relative; overflow: hidden; border-radius: 28px;
  aspect-ratio: 16 / 10; background: var(--mist);
  --pos: 50%;
  touch-action: pan-y;
  user-select: none; -webkit-user-select: none;
}
@supports not (aspect-ratio: 1) { .scan__frame { height: 0; padding-bottom: 62.5%; } }
.scan__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; -webkit-user-drag: none; user-select: none; }
.scan__top { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--pos)); }
.scan__line { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 1px; background: rgba(29, 29, 31, .55); pointer-events: none; }
.scan__knob {
  position: absolute; top: 50%; left: 50%; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%;
  background: rgba(255, 255, 255, .9); box-shadow: 0 2px 10px rgba(0, 0, 0, .14), inset 0 0 0 1px rgba(0, 0, 0, .06);
  transition: transform .25s var(--ease);
}
.scan__knob::before, .scan__knob::after { content: ""; position: absolute; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-top: 1.5px solid var(--ink); border-left: 1.5px solid var(--ink); }
.scan__knob::before { left: 12px; transform: rotate(-45deg); }
.scan__knob::after { right: 12px; transform: rotate(135deg); }
.scan.is-drag .scan__knob { transform: scale(.9); }
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .scan__knob { background: rgba(255, 255, 255, .62); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
}
.scan__tag { position: absolute; top: 20px; font-size: 12px; font-weight: 500; letter-spacing: .02em; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .78); color: var(--ink-2); pointer-events: none; }
.scan__tag--a { left: 20px; }
.scan__tag--b { right: 20px; }
.scan__hint { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); font-size: 12px; color: var(--ink-3); pointer-events: none; transition: opacity .6s var(--ease); white-space: nowrap; }
.scan.is-touched .scan__hint { opacity: 0; }
.scan__range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; -webkit-appearance: none; appearance: none; touch-action: pan-y; }
.scan__range:focus-visible + * , .scan__frame:focus-within .scan__knob { box-shadow: 0 0 0 3px rgba(0, 112, 192, .55), 0 2px 10px rgba(0, 0, 0, .14); }
.no-js .scan__range, .no-js .scan__hint, .no-js .scan__knob { display: none; }
.scan__note { margin-top: 16px; font-size: 12px; color: var(--ink-4); text-align: right; }

/* eye-catch for the CAD work: "CAD × AI" over a structured mesh */
.catch {
  position: relative; overflow: hidden; margin-top: clamp(40px, 6vh, 64px);
  height: clamp(240px, 26vw, 340px); border-radius: 28px; background: var(--paper);
  display: flex; align-items: center; padding: 0 clamp(28px, 5vw, 72px);
}
.catch__mesh { position: absolute; inset: 0; width: 100%; height: 100%; color: #d9d9de; }
.catch__grid > *, .catch__hi > * { vector-effect: non-scaling-stroke; }
.catch__grid { stroke-width: 1; }
.catch__hi { stroke-width: 1.5; }
.catch__hi path { stroke-dasharray: 1 1; stroke-dashoffset: 0; transition: stroke-dashoffset 1.4s var(--ease-io); transition-delay: calc(var(--i) * .035s + .2s); }
.catch__hi .catch__area { fill: url(#catch-grad); stroke: none; fill-opacity: .12; stroke-dasharray: none; transition: opacity 1.2s var(--ease) .5s; }
.js .catch[data-in]:not(.is-in) .catch__hi path { stroke-dashoffset: 1; }
.js .catch[data-in]:not(.is-in) .catch__hi .catch__area { opacity: 0; }
.catch__type {
  position: relative; display: flex; align-items: baseline; gap: .18em;
  font-family: var(--f-display); font-weight: 600; font-size: clamp(64px, 11vw, 156px); line-height: 1; letter-spacing: -.045em; color: var(--ink);
}
.catch__x { font-weight: 300; color: var(--ink-4); font-size: .62em; letter-spacing: 0; transform: translateY(-.12em); }
.catch .grad { color: var(--green); background: var(--grad); -webkit-background-clip: text; background-clip: text; padding-right: .04em; }
@media (max-width: 560px) {
  .catch { height: clamp(280px, 86vw, 400px); align-items: flex-start; padding-top: 30px; }
  .catch__mesh { inset: auto; left: -164%; top: calc(46px + 15vw); width: 300%; max-width: none; height: auto; aspect-ratio: 3 / 1; }
  .catch__type { font-size: clamp(56px, 19vw, 96px); }
}

/* the smartphone service: a flat phone with cards floating around it */
.app { margin: clamp(48px, 7vh, 88px) auto 0; max-width: calc(1280px + var(--gutter) * 2); padding: 0 var(--gutter); }
.app__stage {
  position: relative; overflow: hidden; border-radius: 28px; background: var(--paper);
  aspect-ratio: 16 / 9; display: flex; align-items: center; justify-content: center;
}
@supports not (aspect-ratio: 1) { .app__stage { height: 0; padding-bottom: 56.25%; } }
.app__halo {
  position: absolute; left: 50%; top: 50%; width: 62%; aspect-ratio: 1; border-radius: 50%;
  transform: translate(-50%, -50%); background: var(--grad); opacity: .1;
}
.app__phone { position: absolute; left: 50%; top: 50%; height: 84%; aspect-ratio: 320 / 660; margin: 0; translate: -50% -50%; }
.app__phone-svg { width: 100%; height: 100%; }
.app__chip {
  position: absolute; width: clamp(150px, 15vw, 210px);
  transition: opacity .8s var(--ease), translate .8s var(--ease); transition-delay: var(--d, 0s);
}
.app__float {
  display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 12px; row-gap: 7px; align-items: center;
  padding: 14px 16px; border-radius: 18px; background: var(--paper); box-shadow: 0 0 0 1px rgba(0, 0, 0, .06);
  animation: app-float 7s var(--ease-io) infinite alternate; animation-delay: var(--f, 0s);
}
.app__ico { grid-row: 1 / 3; width: 34px; height: 34px; border-radius: 11px; background: var(--grad); position: relative; }
.app__float em { display: block; height: 7px; border-radius: 4px; background: #d2d2d7; }
.app__float em + em { width: 62%; background: #e8e8ed; }
.app__ico--spark::before, .app__spark::before {
  content: ""; position: absolute; inset: 0; background: #fff;
  clip-path: polygon(50% 18%, 56% 44%, 82% 50%, 56% 56%, 50% 82%, 44% 56%, 18% 50%, 44% 44%);
}
.app__ico--check::before { content: ""; position: absolute; left: 11px; top: 9px; width: 8px; height: 14px; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.app__ico--talk::before, .app__ico--talk::after { content: ""; position: absolute; left: 9px; right: 9px; height: 3px; border-radius: 2px; background: #fff; }
.app__ico--talk::before { top: 12px; }
.app__ico--talk::after { top: 19px; right: 14px; }
.app__chip--a { left: 9%; top: 15%; --d: .35s; --f: -1s; }
.app__chip--b { left: 13%; top: 62%; --d: .55s; --f: -4s; }
.app__chip--c { right: 10%; top: 26%; --d: .45s; --f: -2.5s; }
.app__chip--d { right: 13%; top: 70%; --d: .65s; --f: -5.5s; }
.app__spark { position: absolute; width: 26px; height: 26px; background: var(--grad); clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%); animation: app-twinkle 3.6s var(--ease-io) infinite; }
.app__spark::before { display: none; }
.app__spark--a { left: 30%; top: 12%; }
.app__spark--b { right: 31%; top: 80%; width: 18px; height: 18px; animation-delay: -1.2s; }
.app__spark--c { right: 26%; top: 14%; width: 14px; height: 14px; animation-delay: -2.4s; }
.app__dot { animation: app-dot 1.4s var(--ease-io) infinite; animation-delay: var(--d); transform-box: fill-box; transform-origin: center; }
.app__row { transition: opacity .7s var(--ease), translate .7s var(--ease); transition-delay: calc(var(--n) * .08s + .2s); }
.js .app[data-in]:not(.is-in) .app__row { opacity: 0; translate: 0 10px; }
.js .app[data-in]:not(.is-in) .app__chip { opacity: 0; translate: 0 16px; }
.app:not(.is-live) .app__float, .app:not(.is-live) .app__spark, .app:not(.is-live) .app__dot { animation-play-state: paused; }
@keyframes app-float { from { transform: translateY(-5px); } to { transform: translateY(6px); } }
@keyframes app-twinkle { 0%, 100% { opacity: .9; transform: scale(1); } 50% { opacity: .35; transform: scale(.7); } }
@keyframes app-dot { 0%, 60%, 100% { opacity: .35; } 30% { opacity: 1; } }
@media (max-width: 760px) {
  .app__stage { aspect-ratio: 4 / 5; }
  .app__halo { width: 96%; }
  .app__phone { height: 80%; }
  .app__chip { width: 128px; }
  .app__float { padding: 11px 12px; column-gap: 10px; border-radius: 15px; }
  .app__ico { width: 28px; height: 28px; border-radius: 9px; }
  .app__ico--check::before { left: 9px; top: 6px; height: 13px; }
  .app__ico--talk::before { top: 9px; } .app__ico--talk::after { top: 16px; }
  .app__chip--a { left: 3%; top: 8%; }
  .app__chip--c { right: 3%; top: 60%; left: auto; }
  .app__chip--b, .app__chip--d, .app__spark--b { display: none; }
  .app__spark--a { left: 12%; top: 76%; }
  .app__spark--c { right: 10%; top: 10%; }
}

/* =========================================================
   Lens — the separator
   ========================================================= */
.lens { background: var(--paper); color: var(--ink); padding: clamp(110px, 18vh, 200px) var(--gutter) clamp(90px, 14vh, 160px); text-align: center; overflow: hidden; overflow: clip; }
.lens__stage { position: relative; display: inline-block; max-width: 100%; --lx: -999px; --ly: -999px; --lr: 0px; }
.lens__text {
  font-size: clamp(40px, 8.4vw, 132px); line-height: 1.04; letter-spacing: -.04em; font-weight: 600; color: var(--ink);
}
.lens__text .ln { display: inline-block; }
.lens__x { position: absolute; inset: 0; pointer-events: none; color: transparent; }
.lens__x .lens__text { color: transparent; -webkit-text-stroke: 1px var(--blue); }
.lens__x .lens__text .c { box-shadow: inset 1px 0 0 rgba(0, 112, 192, .28); }
.lens__guide { position: absolute; left: -6vw; right: -6vw; height: 0; border-top: 1px solid rgba(0, 176, 80, .55); }
.lens__guide--b { border-top-color: rgba(0, 112, 192, .75); }
.lens__guide span { position: absolute; left: 6vw; top: -16px; font: 500 10px/1 var(--f-text); letter-spacing: .06em; color: var(--blue); text-transform: uppercase; -webkit-text-stroke: 0; }
.js .lens__stage.is-live .lens__solid { -webkit-mask-image: radial-gradient(circle var(--lr) at var(--lx) var(--ly), transparent 98%, #000 100%); mask-image: radial-gradient(circle var(--lr) at var(--lx) var(--ly), transparent 98%, #000 100%); }
.js .lens__stage.is-live .lens__x { clip-path: circle(var(--lr) at var(--lx) var(--ly)); }
.lens__ring { position: absolute; left: var(--lx); top: var(--ly); width: calc(var(--lr) * 2); height: calc(var(--lr) * 2); margin: calc(var(--lr) * -1) 0 0 calc(var(--lr) * -1); border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 112, 192, .35); pointer-events: none; }
.lens__caption { margin: 40px auto 0; max-width: 36em; font-size: 17px; line-height: 1.8; color: var(--ink-3); }
.lens__hint { margin-top: 10px; font-size: 12px; color: var(--ink-4); }
.no-js .lens__hint { display: none; }

/* =========================================================
   Footer
   ========================================================= */
.foot { background: var(--black); color: var(--fg); padding: clamp(100px, 16vh, 180px) 0 32px; }
.foot__tagline { font-size: clamp(40px, 6.4vw, 96px); line-height: 1.02; letter-spacing: -.04em; font-weight: 600; max-width: 12em; }
html:lang(ja) .foot__tagline { line-height: 1.2; letter-spacing: .01em; font-size: clamp(36px, 5.6vw, 84px); }
.foot__grid { margin-top: clamp(64px, 10vh, 120px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 330px); gap: 40px; padding-top: 28px; border-top: 1px solid var(--rule-d); }
.foot__brand .lockup { height: 22px; }
.foot__h { font-family: var(--f-text); font-size: 12px; font-weight: 500; letter-spacing: .06em; color: var(--fg-3); margin-bottom: 4px; text-transform: uppercase; }
/* each network is a quiet line: a hairline rule, with the brand gradient drawn along it on hover / focus */
.foot__sns a {
  position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) 18px; align-items: center; gap: 12px;
  min-height: 60px; padding: 15px 0; border-bottom: 1px solid var(--rule-d);
}
.foot__sns a::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--grad-l);
  transform: scaleX(.07); transform-origin: left center; transition: transform .8s var(--ease);
}
.foot__sns a:hover::before, .foot__sns a:focus-visible::before { transform: scaleX(1); }
.foot__sv { font-family: var(--f-text); font-size: 16px; line-height: 1.3; font-weight: 500; letter-spacing: .005em; transition: transform .5s var(--ease); }
.foot__sns a:hover .foot__sv { transform: translateX(3px); }
/* official logos, when the files are present: shown as provided. 29px is Instagram's minimum glyph size,
   and the 15px above and below is the clear space it asks for (half the glyph) */
.foot__sns.has-icons a { grid-template-columns: 29px auto minmax(0, 1fr) 18px; }
.foot__sns.has-icons .foot__sv { margin-left: 4px; }
.foot__icon { display: block; width: 29px; height: 29px; object-fit: contain; }
.foot__handle { font-size: 13px; color: var(--fg-3); transition: color .3s var(--ease), transform .5s var(--ease); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.foot__sns a:hover .foot__handle { transform: translateX(3px); }
.foot__sns a:hover .foot__handle, .foot__sns a:focus-visible .foot__handle { color: var(--fg); }
.foot__go { position: relative; width: 18px; height: 18px; }
.foot__go::before { content: ""; position: absolute; left: 2px; right: 2px; top: 50%; height: 1px; margin-top: -.5px; background: var(--grad-l); transform: rotate(-45deg); transition: transform .5s var(--ease); }
.foot__go::after { content: ""; position: absolute; right: 2px; top: 2px; width: 7px; height: 7px; border-top: 1px solid #46a2f0; border-right: 1px solid #46a2f0; transition: transform .5s var(--ease); }
.foot__sns a:hover .foot__go::before { transform: translate(1.5px, -1.5px) rotate(-45deg); }
.foot__sns a:hover .foot__go::after { transform: translate(1.5px, -1.5px); }
.foot__bottom { margin-top: clamp(64px, 10vh, 120px); display: flex; justify-content: space-between; align-items: center; gap: 20px; font-size: 12px; color: var(--fg-3); }
.foot__top:hover { color: var(--fg); }
.foot__top::after { content: " \2191"; }
@media (max-width: 760px) { .foot__grid { grid-template-columns: minmax(0, 1fr); gap: 32px; } }

/* =========================================================
   Language suggestion
   ========================================================= */
.suggest {
  position: fixed; left: 50%; bottom: max(18px, env(safe-area-inset-bottom)); z-index: 60;
  display: flex; align-items: center; gap: 14px; max-width: calc(100% - 24px);
  padding: 8px 8px 8px 20px; border-radius: 999px;
  background: rgba(29, 29, 31, .94); color: var(--fg); font-size: 14px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, .35), inset 0 0 0 1px rgba(255, 255, 255, .08);
  transform: translate(-50%, 0); transition: opacity .4s var(--ease), transform .4s var(--ease);
}
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .suggest { background: rgba(29, 29, 31, .72); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); }
}
.suggest[hidden] { display: none; }
.suggest.is-leaving { opacity: 0; transform: translate(-50%, 12px); }
.suggest p { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.suggest__go { flex: none; padding: 8px 14px; border-radius: 999px; background: var(--fg); color: var(--black); font-weight: 500; font-size: 13px; }
.suggest__x { position: relative; flex: none; width: 32px; height: 32px; border-radius: 50%; }
.suggest__x i::before, .suggest__x i::after { content: ""; position: absolute; left: 10px; right: 10px; top: 50%; height: 1.5px; background: currentColor; }
.suggest__x i::before { transform: rotate(45deg); }
.suggest__x i::after { transform: rotate(-45deg); }

/* =========================================================
   Scroll-in (only with JS)
   ========================================================= */
.js [data-in] { opacity: 0; transform: translateY(24px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js [data-in].is-in { opacity: 1; transform: none; }

/* =========================================================
   Error pages
   ========================================================= */
.err-page { min-height: 100vh; display: flex; flex-direction: column; }
.nav--static { position: absolute; }
.err {
  position: relative; flex: 1; display: flex; align-items: center; justify-content: center;
  padding: calc(var(--nav-h) + 48px) var(--gutter) 72px; overflow: hidden; overflow: clip; isolation: isolate; text-align: center;
}
.err__canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; opacity: .9; }
.no-js .err__canvas { display: none; }
.err__inner { width: min(640px, 100%); }
.err__code { font-size: clamp(88px, 18vw, 200px); line-height: .9; letter-spacing: -.05em; font-weight: 300; color: var(--fg); margin-bottom: 20px; }
.err__code { background: var(--grad-l); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.err__title { font-size: clamp(26px, 3.6vw, 40px); line-height: 1.25; letter-spacing: -.02em; }
html:lang(ja) .err__title { letter-spacing: .02em; }
.err__lead { margin: 16px auto 0; max-width: 34em; color: var(--fg-2); font-size: 16px; }
.err__path { margin: 22px auto 0; display: flex; gap: 10px; justify-content: center; align-items: baseline; font-size: 13px; color: var(--fg-3); max-width: 100%; }
.err__path code { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; color: var(--fg-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.err__path[hidden] { display: none; }
.err__actions { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.err__actions [hidden] { display: none; }
.err__alt { margin-top: 30px; font-size: 13px; color: var(--fg-3); }
.err__alt a { color: var(--fg-2); text-decoration: underline; text-underline-offset: 3px; }
.err__foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px; padding: 22px var(--gutter); font-size: 12px; color: var(--fg-3); border-top: 1px solid var(--rule-d); }
.err__foot nav { display: flex; gap: 20px; }
.err__foot a:hover { color: var(--fg); }

/* =========================================================
   Wide screens
   ========================================================= */
@media (min-width: 900px) { .br-wide { display: inline; } }

/* =========================================================
   Accessibility & environment fallbacks
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js .hero .w, .js .hero__eyebrow, .js .hero__sub, .js .hero__note, .js .hero__cta, .js [data-in] { opacity: 1; transform: none; filter: none; }
  .js .svc.is-armed .chapter__inner > * { opacity: 1; transform: none; }
  .js .intro__text.is-armed .u { color: var(--fg); }
}
@media (prefers-reduced-transparency: reduce) {
  .nav.is-scrolled { background: #000; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .nav.is-scrolled.is-light { background: #fff; }
  .suggest, .scan__knob, .js .nav__menu { background: #1d1d1f; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .scan__knob { background: #fff; }
}
@media (forced-colors: active) {
  .hero__title .w:last-child, .grad, .hero__eyebrow, .chapter__name, .pillar__no, .chapter__no span, .err__code { -webkit-text-fill-color: currentColor; background: none; color: CanvasText; }
  .work__no { background: none; color: CanvasText; box-shadow: inset 0 0 0 1px CanvasText; }
  .js .intro__text.is-armed .u { color: CanvasText; }
  .hero__canvas, .svc__stage, .err__canvas { display: none; }
}

/* =========================================================
   Print: text and the vector logo only
   ========================================================= */
@media print {
  @page { margin: 16mm; }
  html, body, .hero, .intro, .services, .work, .lens, .foot { background: #fff !important; color: #000 !important; }
  .nav, .suggest, .hero__canvas, .hero__scroll, .hero__cta, .svc__stage, .scan, .catch, .app, .lens__hint, .foot__top, .skip, .err__canvas, .err__actions { display: none !important; }
  .js .hero .w, .js .hero__eyebrow, .js .hero__sub, .js .hero__note, .js [data-in], .js .svc.is-armed .chapter__inner > * { opacity: 1 !important; transform: none !important; filter: none !important; }
  .js .svc.is-scene .chapter__inner { position: static; margin-bottom: 0 !important; }
  .js .svc.is-scene .chapter { padding-top: 0; }
  .js .svc.is-scene .chapter { min-height: 0 !important; }
  .svc__chapters { margin-top: 0 !important; }
  .chapter__inner { text-shadow: none !important; position: static !important; }
  .chapter__tags li { background: none !important; }
  .hero { min-height: 0; padding: 0 0 24pt; display: block; }
  .hero__inner { transform: none; text-align: left; }
  .hero__title { font-size: 34pt; color: #000; }
  .hero__title .w:last-child, .grad, .hero__eyebrow, .chapter__name, .pillar__no, .chapter__no span, .err__code { -webkit-text-fill-color: #000; background: none; color: #000; }
  .hero__sub, .hero__note, .pillar__v, .chapter__body, .work__body, .lens__caption, .label { color: #333 !important; }
  .intro, .services, .work, .lens, .foot { padding: 18pt 0 !important; }
  .intro__text { font-size: 20pt; color: #000; } .js .intro__text.is-armed .u { color: #000; }
  .svc { display: block; padding: 0; }
  .chapter { min-height: 0; padding: 12pt 0; break-inside: avoid; }
  .chapter__head { font-size: 18pt; color: #000; }
  .chapter__tags li { box-shadow: inset 0 0 0 .5pt #999; color: #000; }
  .hero::after { display: none; }
  .foot__brand .lockup { height: 16pt; width: auto; }
  .foot__handle, .foot__links a, .foot__h, .foot__bottom { color: #333 !important; }
  .work__title, .services__title, .foot__tagline, .lens__text { font-size: 24pt; color: #000 !important; }
  .work__badge { background: none; box-shadow: none; padding: 0; }
  .work__no { background: none; color: #000; padding: 0; min-width: 0; }
  .case + .case { margin-top: 24pt; }
  .lens { text-align: left; }
  .foot__sns a::after { content: " (" attr(href) ")"; font-size: 9pt; }
  .foot__sns a::before, .foot__go, .foot__icon { display: none; }
  .foot__sns a, .foot__sns.has-icons a { grid-template-columns: auto auto minmax(0, 1fr); min-height: 0; padding: 6pt 0; }
  .foot__sns a::after { color: #555; overflow-wrap: anywhere; }
  .foot__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); }
  .foot__sv { font-size: 11pt; }
  .pillars { grid-template-columns: 1fr 1fr 1fr; gap: 12pt; }
  .lockup { color: #000; }
  .err-page { display: block; }
}
