/* =========================================================
   RKM Inc. — "Order from the field"
   Dots = the field's many small realities. Grid = the system.
   ========================================================= */

:root {
  --ink: #0B0B0A;
  --ink-2: #131311;
  --ink-3: #1B1B18;
  --paper: #EFECE4;
  --paper-2: #E4E0D5;
  --fog: #8E8B83;
  --fog-2: #5F5C56;
  --signal: #FF4A1C;

  --line: rgba(239, 236, 228, .14);
  --line-2: rgba(239, 236, 228, .07);
  --line-ink: rgba(11, 11, 10, .13);

  --f-display: "Clash Display", "Zen Kaku Gothic New", sans-serif;
  --f-ja: "Zen Kaku Gothic New", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --f-mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --ease: cubic-bezier(.32, .72, 0, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.76, 0, .24, 1);

  --pad: clamp(1.25rem, 3.2vw, 3rem);
  --bar-h: 5.5rem;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--ink);
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--f-ja);
  font-size: 1rem;
  line-height: 1.9;
  letter-spacing: .02em;
  line-break: strict;
  word-break: auto-phrase;
  font-feature-settings: "palt";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

/* Grain: fixed, non-interactive, never on scrolling content */
body::after {
  content: "";
  position: fixed;
  inset: -50%;
  z-index: 70;
  pointer-events: none;
  opacity: .06;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  mix-blend-mode: overlay;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
ol, ul { margin: 0; padding: 0; list-style: none; }
svg { display: block; }
::selection { background: var(--signal); color: var(--ink); }

:focus-visible {
  outline: 1px solid var(--signal);
  outline-offset: 4px;
}

.sr {
  position: absolute !important;
  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: var(--pad);
  top: 1rem;
  z-index: 90;
  padding: .5rem 1rem;
  background: var(--signal);
  color: var(--ink);
  transform: translateY(-200%);
  transition: transform .6s var(--ease);
}
.skip:focus { transform: none; }

.mono {
  font-family: var(--f-mono);
  font-size: .6875rem;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.dot {
  display: inline-block;
  width: .4375rem;
  height: .4375rem;
  border-radius: 50%;
  background: var(--signal);
}

.kp { display: inline-block; }

/* Underline link: line wipes out then back in */
.ulink {
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  transition: background-size .7s var(--ease);
  padding-bottom: .125em;
}
@media (hover: hover) {
  .ulink:hover { background-size: 0 1px; background-position: 100% 100%; }
}

/* ---------- Section header (mono index row) ---------- */
.sechead {
  display: flex;
  flex-wrap: wrap;
  gap: .25rem 2rem;
  color: var(--fog);
}
.sechead span:first-child { color: var(--signal); }

/* Giant Latin display */
.giant {
  margin: 0;
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(4.5rem, 17vw, 19rem);
  line-height: .86;
  letter-spacing: -.045em;
  text-transform: none;
  white-space: nowrap;
}
.giant--sm { font-size: clamp(3rem, 7.2vw, 8rem); }
.services__intro .giant { font-size: clamp(3.5rem, 8.4vw, 9.5rem); }

/* Split helpers */
[data-split="rise"] .line {
  display: block;
  overflow: clip;
  padding-bottom: .06em;
  margin-bottom: -.06em;
}
[data-split="rise"] .ch { display: inline-block; will-change: transform; }
.giant[data-split="rise"] { overflow: clip; padding-bottom: .08em; }

/* ---------- Preloader ---------- */
.loader { display: none; }
.motion .loader {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.5rem var(--pad);
  background: var(--ink);
  color: var(--paper);
}
.loader__row {
  display: flex;
  justify-content: space-between;
  color: var(--fog);
}
.loader__num { color: var(--paper); font-variant-numeric: tabular-nums; }
.loader__mid {
  display: grid;
  place-items: center;
  overflow: clip;
}
.loader__mark {
  display: block;
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(4rem, 12vw, 11rem);
  line-height: .9;
  letter-spacing: -.04em;
}
.loader__bar {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--signal);
  transform-origin: left;
  transform: scaleX(0);
}

/* ---------- Particle field ---------- */
.field {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* Reduced motion / no-JS-libs: the field is a still image behind the hero only */
.field--static { position: absolute; height: 100vh; height: 100dvh; }
.js:not(.motion) .bar__hud { visibility: hidden; }

main, .foot { position: relative; z-index: 1; }

/* Designer grid (press G) */
.guides {
  position: fixed;
  inset: 0 var(--pad);
  z-index: 65;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 2rem;
  pointer-events: none;
  opacity: 0;
  transition: opacity .6s var(--ease);
}
.guides i { background: rgba(255, 74, 28, .07); box-shadow: inset 1px 0 rgba(255, 74, 28, .35), inset -1px 0 rgba(255, 74, 28, .35); }
.show-grid .guides { opacity: 1; }
@media (max-width: 899px) {
  .guides { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
  .guides i:nth-child(n+5) { display: none; }
}

/* ---------- Custom cursor ---------- */
.cursor { display: none; }
.has-cursor .cursor {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 75;
  display: block;
  pointer-events: none;
  mix-blend-mode: difference;
  opacity: 0;
}
.cursor__dot {
  position: absolute;
  left: -6px;
  top: -6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--paper);
  transition: transform .6s var(--ease), background-color .4s var(--ease);
}
.cursor__label {
  position: absolute;
  left: 0;
  top: 0;
  transform: translate(-50%, -50%) scale(.6);
  opacity: 0;
  font-family: var(--f-mono);
  font-size: .625rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--ink);
  transition: opacity .4s var(--ease), transform .6s var(--ease);
}
.cursor.is-link .cursor__dot { transform: scale(3.4); }
.cursor.has-label { mix-blend-mode: normal; }
.cursor.has-label .cursor__dot { transform: scale(7.5); background: var(--signal); }
.cursor.has-label .cursor__label { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.cursor.is-down .cursor__dot { transform: scale(.7); }
.cursor.is-hidden .cursor__dot { transform: scale(0); }
.has-cursor, .has-cursor * { cursor: none !important; }

/* ---------- Top bar ---------- */
.bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr auto;
  align-items: start;
  gap: 1rem;
  padding: 1.5rem var(--pad);
  color: var(--paper);
  mix-blend-mode: difference;
  pointer-events: none;
}
.bar > * { pointer-events: auto; }
.bar__logo {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 1.375rem;
  line-height: 1;
  letter-spacing: -.02em;
}
.bar__clock { margin: 0; color: var(--paper); opacity: .72; }
.bar__hud {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin: 0;
  padding-top: .125rem;
}
.hud__box { display: grid; overflow: clip; height: 1.5em; }
.hud__box > span { grid-area: 1 / 1; display: block; }
.hud__track {
  position: relative;
  width: 4.5rem;
  height: 1px;
  overflow: clip;
  background: rgba(239, 236, 228, .25);
}
.hud__fill {
  position: absolute;
  inset: 0;
  background: var(--paper);
  transform-origin: left;
  transform: scaleX(0);
}
.bar__clock span { opacity: .6; margin-right: .25rem; }
.clock { font-variant-numeric: tabular-nums; }

.bar__menu {
  display: inline-flex;
  align-items: center;
  gap: .875rem;
  margin: -.5rem -.5rem 0 0;
  padding: .5rem;
  background: none;
  border: 0;
  cursor: pointer;
}
.bar__menu-label {
  position: relative;
  display: grid;
  overflow: clip;
  height: 1.5em;
}
.bar__menu-label span {
  grid-area: 1 / 1;
  transition: transform .8s var(--ease);
}
.bar__menu-label span:last-child { transform: translateY(110%); }
.is-menu-open .bar__menu-label span:first-child { transform: translateY(-110%); }
.is-menu-open .bar__menu-label span:last-child { transform: none; }

.bar__menu-icon {
  position: relative;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px var(--paper);
  transition: transform .8s var(--ease);
}
.bar__menu-icon i {
  position: absolute;
  left: 50%;
  top: 50%;
  width: .625rem;
  height: 1px;
  margin-left: -.3125rem;
  background: var(--paper);
  transition: transform .8s var(--ease);
}
.bar__menu-icon i:first-child { transform: translateY(-2.5px); }
.bar__menu-icon i:last-child { transform: translateY(2.5px); }
.is-menu-open .bar__menu-icon { transform: rotate(90deg); }
.is-menu-open .bar__menu-icon i:first-child { transform: rotate(45deg); }
.is-menu-open .bar__menu-icon i:last-child { transform: rotate(-45deg); }

/* ---------- Menu overlay ---------- */
.menu {
  position: fixed;
  inset: 0;
  z-index: 55;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: calc(var(--bar-h) + 2rem) var(--pad) 1.5rem;
  background: var(--ink-2);
  clip-path: inset(0 0 100% 0);
  visibility: hidden;
}
.menu__list { counter-reset: m; }
.menu__list li {
  overflow: clip;
  background: linear-gradient(90deg, var(--line), var(--line) 80%, transparent) 0 100% / 100% 1px no-repeat;
}
.menu__list a {
  display: grid;
  grid-template-columns: 4rem 1fr auto;
  align-items: baseline;
  gap: 1rem;
  padding: .75rem 0 .5rem;
  transition: opacity .6s var(--ease), transform .8s var(--ease);
}
.menu__list .mono { color: var(--signal); }
.menu__en {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(2.75rem, 7.4vw, 7.5rem);
  line-height: .95;
  letter-spacing: -.04em;
}
.menu__ja { font-size: .875rem; color: var(--fog); }
@media (hover: hover) {
  .menu__list:hover a { opacity: .32; }
  .menu__list a:hover { opacity: 1; transform: translateX(1.5rem); }
}
.menu__foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .5rem 2rem;
  margin-top: 2.5rem;
  color: var(--fog);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: calc(var(--bar-h) + 1rem) var(--pad) clamp(4.5rem, 7vw, 5.5rem);
}
.hero__top {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--fog);
}
.hero__top span:first-child { color: var(--signal); }

.hero__bottom {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(16rem, 22rem);
  grid-template-areas:
    "kicker kicker"
    "title  side";
  align-items: end;
  column-gap: 3rem;
}
.hero__kicker {
  grid-area: kicker;
  display: flex;
  align-items: center;
  gap: .75rem;
  margin: 0 0 1.75rem;
  color: var(--paper);
}
.hero__title {
  grid-area: title;
  margin: 0;
  font-weight: 700;
  font-size: clamp(3rem, 8.6vw, 10.5rem);
  line-height: 1.04;
  letter-spacing: -.035em;
}
.hero__side { grid-area: side; padding-bottom: .75rem; }
.hero__lead {
  margin: 0 0 2rem;
  font-size: .875rem;
  line-height: 2;
  color: rgba(239, 236, 228, .72);
}
.scrollcue {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
}
.scrollcue i {
  position: relative;
  width: 4.5rem;
  height: 1px;
  overflow: clip;
  background: var(--line);
}
.scrollcue i::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--paper);
  animation: cue 2.4s var(--ease-io) infinite;
}
.hero__hint { margin: 1.25rem 0 0; color: var(--fog-2); }
@media (hover: none) { .hero__hint { display: none; } }

@keyframes cue {
  0% { transform: translateX(-100%); }
  55% { transform: translateX(0); }
  100% { transform: translateX(100%); }
}

/* ---------- Manifesto ---------- */
.manifesto {
  position: relative;
  padding: clamp(8rem, 18vw, 16rem) var(--pad) clamp(7rem, 14vw, 12rem);
}
.manifesto__text {
  max-width: 22em;
  margin: 3rem 0 0;
  font-weight: 700;
  font-size: clamp(1.875rem, 4.6vw, 5rem);
  line-height: 1.42;
  letter-spacing: -.02em;
}
.hl { font-style: normal; color: var(--signal); }
.manifesto__foot {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 2rem;
  margin-top: clamp(4rem, 9vw, 8rem);
}
.manifesto__sub {
  grid-column: 5 / span 5;
  margin: 0;
  font-size: .9375rem;
  line-height: 2.1;
  color: rgba(239, 236, 228, .72);
}
.sig {
  grid-column: 10 / span 3;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  margin: 0;
  align-self: end;
}
.sig .mono { color: var(--fog); }
.sig__name { font-weight: 500; font-size: 1.0625rem; }

/* ---------- Services ---------- */
.services {
  position: relative;
  overflow: clip;
  background: var(--ink);
}
.services__track {
  display: flex;
  align-items: stretch;
  height: 100dvh;
  width: max-content;
}
.services__intro {
  flex: none;
  width: 44vw;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: calc(var(--bar-h) + 1.5rem) var(--pad) 5rem;
}
.services__ja {
  margin: 0;
  max-width: 20em;
  font-size: 1.0625rem;
  color: rgba(239, 236, 228, .8);
}
.services__hint {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin: 0;
  color: var(--fog);
}
.services__hint i { width: 2rem; height: 1px; background: var(--line); }
.services__hint span { transition: color .6s var(--ease); }
.services__hint span.is-on { color: var(--paper); }
.services__hint span.is-on::before {
  content: "";
  display: inline-block;
  width: .375rem;
  height: .375rem;
  margin-right: .5rem;
  border-radius: 50%;
  background: var(--signal);
  vertical-align: .1em;
}

.svc {
  position: relative;
  flex: none;
  width: min(62vw, 64rem);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-rows: auto 1fr auto;
  grid-template-areas:
    "head head"
    "num  fig"
    "body body";
  gap: 1.5rem 2rem;
  padding: calc(var(--bar-h) + 1.5rem) clamp(2rem, 3.5vw, 3.5rem) 5rem;
  background: linear-gradient(var(--line), var(--line)) 0 0 / 1px 100% no-repeat;
}
.svc__head {
  grid-area: head;
  display: flex;
  justify-content: space-between;
  color: var(--fog);
}
.svc__head span:last-child { color: var(--paper); }
.svc__num {
  grid-area: num;
  align-self: center;
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(8rem, 17vw, 18rem);
  line-height: .8;
  letter-spacing: -.06em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(239, 236, 228, .5);
}
.svc__fig {
  grid-area: fig;
  align-self: center;
  justify-self: end;
  width: min(100%, 19rem);
  height: auto;
  overflow: visible;
}
.svc__fig .d { fill: rgba(239, 236, 228, .2); }
.svc__fig .h { fill: var(--paper); }
.svc__fig .s { fill: var(--signal); }
.svc__fig .ln {
  fill: none;
  stroke: var(--paper);
  stroke-width: .75;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.svc__body {
  grid-area: body;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1rem 2rem;
  align-items: end;
}
.svc__title {
  margin: 0;
  font-weight: 700;
  font-size: clamp(1.75rem, 3vw, 3.25rem);
  line-height: 1.25;
  letter-spacing: -.02em;
}
.svc__text {
  margin: 0;
  font-size: .9375rem;
  line-height: 2;
  color: rgba(239, 236, 228, .72);
}
.tags {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}
.tags li {
  padding: .375rem .75rem;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--line);
  color: rgba(239, 236, 228, .8);
}

/* ---------- Works ---------- */
.works {
  position: relative;
  padding: clamp(8rem, 14vw, 13rem) var(--pad) clamp(7rem, 12vw, 11rem);
  background: var(--ink);
}
.works__head .giant { margin-top: 1.5rem; }

.project { margin-top: clamp(4rem, 8vw, 7rem); }
.project__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1.25rem;
  background: linear-gradient(var(--line), var(--line)) 0 100% / 100% 1px no-repeat;
  color: var(--fog);
}
.status {
  display: inline-flex;
  align-items: center;
  gap: .625rem;
  color: var(--paper);
}
.status i {
  width: .4375rem;
  height: .4375rem;
  border-radius: 50%;
  background: var(--signal);
  animation: blink 2s var(--ease-io) infinite;
}
@keyframes blink { 50% { opacity: .2; } }

.project__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 2rem;
  margin-top: clamp(2.5rem, 5vw, 4.5rem);
  align-items: center;
}
.project__text { grid-column: 1 / span 5; }
/* Grid items must not grow to their content (the phone row scrolls inside) */
.project__grid > * { min-width: 0; }
.project__title {
  margin: 0;
  font-weight: 700;
  font-size: clamp(1.75rem, 3.1vw, 3.25rem);
  line-height: 1.32;
  letter-spacing: -.02em;
}
.project__desc {
  margin: 2rem 0 0;
  font-size: .9375rem;
  line-height: 2.05;
  color: rgba(239, 236, 228, .72);
}
.facts-mini {
  margin: 2.5rem 0 0;
}
.facts-mini div {
  display: grid;
  grid-template-columns: 6rem 1fr;
  gap: 1rem;
  padding: .875rem 0;
  background: linear-gradient(var(--line-2), var(--line-2)) 0 0 / 100% 1px no-repeat;
  font-size: .875rem;
}
.facts-mini dt { color: var(--fog); padding-top: .2em; }
.facts-mini dd { margin: 0; }

/* Service site link (button-in-button) */
.project__link {
  display: inline-flex;
  align-items: center;
  gap: 1.25rem;
  margin-top: 2.25rem;
  padding: .5rem .5rem .5rem 1.5rem;
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  transition: background-color .6s var(--ease);
}
.project__link-label {
  display: flex;
  flex-direction: column;
  font-weight: 500;
  font-size: .9375rem;
  line-height: 1.4;
}
.project__link-label .mono { font-size: .5625rem; color: var(--fog-2); }
.project__link-icon {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: var(--signal);
  color: var(--ink);
  transition: transform .7s var(--ease);
}
.project__link:active { transform: scale(.98); }
@media (hover: hover) {
  .project__link:hover { background: #fff; }
  .project__link:hover .project__link-icon { transform: translate(3px, -2px) scale(1.06); }
}

.project__visual {
  grid-column: 7 / span 6;
  perspective: 1400px;
}
.project__stage {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(.75rem, 1.4vw, 1.25rem);
  transform-style: preserve-3d;
}

/* Real product screens in 9:16 device frames */
.ht {
  --r: clamp(1rem, 1.6vw, 1.5rem);
  --p: clamp(.25rem, .45vw, .375rem);
  position: relative;
  margin: 0;
  aspect-ratio: 9 / 16;
  padding: var(--p);
  border-radius: var(--r);
  background: var(--ink-3);
  box-shadow:
    inset 0 0 0 1px var(--line),
    inset 0 1px 0 rgba(239, 236, 228, .08),
    0 50px 90px -40px rgba(0, 0, 0, .85);
}
.ht:nth-child(2) { margin-top: 18%; }
.ht:nth-child(3) { margin-top: 8%; }
.ht img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  border-radius: calc(var(--r) - var(--p));
  filter: saturate(.85) brightness(.94);
  transition: filter .8s var(--ease);
}
.ht::after {
  content: "";
  position: absolute;
  inset: var(--p);
  border-radius: calc(var(--r) - var(--p));
  background: linear-gradient(180deg, transparent 60%, rgba(11, 11, 10, .62));
  pointer-events: none;
}
.ht .chip { transition: transform .8s var(--ease); }
@media (hover: hover) {
  .ht:hover img { filter: saturate(1) brightness(1); }
  .ht:hover .chip { transform: translateY(-.25rem); }
}
.project__note {
  margin: clamp(2rem, 4vw, 3rem) 0 0;
  font-size: .625rem;
  line-height: 1.9;
  letter-spacing: .04em;
  text-transform: none;
  color: var(--fog-2);
}
.chip {
  position: absolute;
  left: calc(var(--p, 0px) + .5rem);
  bottom: calc(var(--p, 0px) + .5rem);
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .3rem .55rem;
  border-radius: 999px;
  background: rgba(11, 11, 10, .72);
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: .5625rem;
  white-space: nowrap;
}
.chip i { width: .375rem; height: .375rem; border-radius: 50%; background: var(--signal); }

/* ---------- Company (paper sheet) ---------- */
.company {
  position: relative;
  padding: 0 calc(var(--pad) * .5);
}
.company__inner {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 2rem;
  padding: clamp(5rem, 10vw, 9rem) calc(var(--pad) * .5 + clamp(0rem, 2vw, 2rem)) clamp(5rem, 10vw, 9rem);
  border-radius: clamp(1.5rem, 3vw, 2.75rem);
  background: var(--paper);
  color: var(--ink);
}
.company .sechead { color: var(--fog-2); }
.company__head { grid-column: 1 / span 5; align-self: start; position: sticky; top: calc(var(--bar-h) + 1rem); }
.company__head .giant { margin-top: 1.5rem; }
.company__ja { margin: 1.25rem 0 0; font-weight: 500; }

.facts { grid-column: 6 / span 7; margin: 0; }
.facts__row {
  display: grid;
  grid-template-columns: 11rem minmax(0, 1fr);
  gap: 1.5rem;
  padding: 1.625rem 0;
  background: linear-gradient(90deg, var(--line-ink), var(--line-ink) 85%, transparent) 0 0 / 100% 1px no-repeat;
}
.facts__row:last-child {
  background:
    linear-gradient(90deg, var(--line-ink), var(--line-ink) 85%, transparent) 0 0 / 100% 1px no-repeat,
    linear-gradient(90deg, var(--line-ink), var(--line-ink) 85%, transparent) 0 100% / 100% 1px no-repeat;
}
.facts dt {
  display: flex;
  flex-direction: column;
  gap: .25rem;
  font-size: .875rem;
  font-weight: 500;
}
.facts dt .mono { color: var(--fog-2); font-size: .625rem; }
.facts dd { margin: 0; font-size: 1rem; line-height: 1.85; }
.facts__sub {
  display: block;
  font-family: var(--f-display);
  font-weight: 500;
  color: var(--fog-2);
  letter-spacing: 0;
}
.biz { counter-reset: biz; }
.biz li {
  counter-increment: biz;
  display: grid;
  grid-template-columns: 2.25rem 1fr;
  font-size: .9375rem;
  line-height: 1.8;
}
.biz li + li { margin-top: .5rem; }
.biz li::before {
  content: counter(biz, decimal-leading-zero);
  font-family: var(--f-mono);
  font-size: .6875rem;
  padding-top: .3em;
  color: var(--fog-2);
}

/* ---------- Contact ---------- */
.contact {
  position: relative;
  padding: clamp(7rem, 12vw, 11rem) 0 clamp(6rem, 10vw, 9rem);
  overflow: clip;
}
.marquee {
  overflow: clip;
  white-space: nowrap;
}
.marquee__track {
  display: inline-flex;
  align-items: center;
  gap: 4vw;
  padding-right: 4vw;
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(4rem, 13vw, 14rem);
  line-height: 1;
  letter-spacing: -.045em;
  will-change: transform;
}
.marquee__track span:nth-of-type(even) {
  font-family: var(--f-ja);
  font-weight: 700;
  font-size: .78em;
  letter-spacing: -.04em;
}
.marquee__track i {
  flex: none;
  width: .16em;
  height: .16em;
  border-radius: 50%;
  background: var(--signal);
}

.contact__body {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 2rem;
  padding: clamp(4rem, 8vw, 7rem) var(--pad) 0;
  align-items: end;
}
.contact__body .sechead { grid-column: 1 / -1; }
.contact__title {
  grid-column: 1 / span 7;
  margin: 0;
  font-weight: 700;
  font-size: clamp(2.25rem, 5.4vw, 6rem);
  line-height: 1.18;
  letter-spacing: -.03em;
}
.contact__text {
  grid-column: 1 / span 6;
  margin: 0;
  font-size: .9375rem;
  line-height: 2;
  color: rgba(239, 236, 228, .72);
}
.contact__cta {
  grid-column: 9 / span 4;
  grid-row: 2 / span 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.75rem;
  justify-self: end;
}

.orb {
  position: relative;
  display: grid;
  place-items: center;
  width: clamp(11rem, 16vw, 15rem);
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: clip;
  background: var(--signal);
  color: var(--ink);
  isolation: isolate;
}
.orb__fill {
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: 50%;
  background: var(--paper);
  transform: translateY(101%);
  transition: transform .9s var(--ease);
}
.orb__label {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(1.375rem, 1.9vw, 1.75rem);
  letter-spacing: -.02em;
}
.orb__arrow {
  position: absolute;
  right: 22%;
  top: 22%;
  transition: transform .9s var(--ease);
}
@media (hover: hover) {
  .orb:hover .orb__fill { transform: none; }
  .orb:hover .orb__arrow { transform: translate(4px, -4px) rotate(0deg); }
}
.contact__mail { font-size: .8125rem; text-transform: none; letter-spacing: .02em; }

/* ---------- Footer ---------- */
.foot {
  padding: 0 var(--pad);
  overflow: clip;
}
.foot__row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr auto;
  gap: 2rem;
  padding-top: 2rem;
  background: linear-gradient(var(--line), var(--line)) 0 0 / 100% 1px no-repeat;
  color: var(--fog);
}
.foot__row p { margin: 0; }
.foot__links { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; color: var(--paper); }
.foot__end {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: .75rem;
}
.foot__top { color: var(--paper); }
.foot__egg { margin: 0; color: var(--fog-2); }
.foot__egg kbd {
  display: inline-grid;
  place-items: center;
  min-width: 1.5em;
  padding: 0 .3em;
  border-radius: .25rem;
  box-shadow: inset 0 0 0 1px var(--line);
  font: inherit;
  color: var(--paper);
}
.foot__mark {
  display: flex;
  justify-content: center;
  margin: clamp(2rem, 5vw, 4rem) 0 0;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 43vw;
  line-height: .74;
  letter-spacing: -.065em;
  color: var(--paper);
  transform: translateY(12%);
}
.foot__mark span {
  -webkit-text-stroke: 1px transparent;
  transition: color .7s var(--ease), -webkit-text-stroke-color .7s var(--ease);
}
@media (hover: hover) {
  .foot__mark span:hover { color: transparent; -webkit-text-stroke-color: var(--paper); }
}

/* ---------- Initial states for motion (only when JS + motion allowed) ---------- */
.motion [data-reveal] { opacity: 0; transform: translateY(2.5rem); }
.motion [data-intro] { opacity: 0; }
.motion .bar { opacity: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .bar { grid-template-columns: 1fr 1fr auto; }
  .bar__clock { display: none; }
  .hero__bottom {
    grid-template-columns: 1fr;
    grid-template-areas: "kicker" "title" "side";
    row-gap: 2.5rem;
  }
  .hero__side { max-width: 26rem; }
  .manifesto__sub { grid-column: 1 / span 7; }
  .sig { grid-column: 9 / span 4; }
}

/* Stacked services when horizontal scroll is not used */
@media (max-width: 899px), (prefers-reduced-motion: reduce) {
  .services__track { display: block; height: auto; width: auto; }
  .services__intro {
    width: auto;
    gap: 2.5rem;
    padding: clamp(6rem, 14vw, 9rem) var(--pad) 3rem;
  }
  .svc {
    width: auto;
    padding: 3rem var(--pad) 4rem;
    background: linear-gradient(var(--line), var(--line)) var(--pad) 0 / calc(100% - var(--pad) * 2) 1px no-repeat;
  }
}

@media (max-width: 899px) {
  :root { --bar-h: 4.5rem; }
  .bar { padding-top: 1.125rem; padding-bottom: 1.125rem; }
  .bar__hud { display: none; }
  .bar { grid-template-columns: 1fr auto; }
  .services__intro .giant { font-size: clamp(3.5rem, 18vw, 7rem); }
  .giant--sm { font-size: clamp(3rem, 15.5vw, 6rem); }
  .chip__en { display: none; }
  .foot__end { align-items: flex-start; grid-column: 1 / -1; }
  .foot__egg { display: none; }

  .hero__top span:nth-child(2) { display: none; }
  .hero__title { font-size: clamp(2.75rem, 12.6vw, 6rem); }
  .hero__kicker { margin-bottom: 1.25rem; }

  .manifesto__text { font-size: clamp(1.625rem, 7vw, 3rem); }
  .manifesto__foot { grid-template-columns: 1fr; gap: 2.5rem; }
  .manifesto__sub, .sig { grid-column: 1 / -1; }

  .svc {
    grid-template-columns: 1fr auto;
    grid-template-areas: "head head" "num fig" "body body";
  }
  .svc__num { font-size: clamp(6rem, 30vw, 10rem); }
  .svc__fig { width: clamp(7rem, 36vw, 11rem); }
  .svc__body { grid-template-columns: 1fr; }

  .works { padding-bottom: 4.5rem; }
  .project__grid { grid-template-columns: minmax(0, 1fr); gap: 3rem; }
  /* Phones: swipeable row of larger screens */
  .project__stage {
    display: flex;
    gap: 1rem;
    margin: 0 calc(var(--pad) * -1);
    padding: 0 var(--pad) .5rem;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding: 0 var(--pad);
    scrollbar-width: none;
  }
  .project__stage::-webkit-scrollbar { display: none; }
  .project__stage .ht {
    flex: 0 0 min(64vw, 17rem);
    margin-top: 0 !important;
    scroll-snap-align: start;
  }
  .project__note::before {
    content: "Swipe →";
    display: block;
    margin-bottom: .75rem;
    color: var(--paper);
    text-transform: uppercase;
    letter-spacing: .08em;
  }
  .project__text, .project__visual { grid-column: 1 / -1; }

  .company__inner { grid-template-columns: 1fr; padding-left: var(--pad); padding-right: var(--pad); }
  .company__head { position: static; grid-column: 1 / -1; }
  .facts { grid-column: 1 / -1; }
  .facts__row { grid-template-columns: 1fr; gap: .5rem; }

  .contact__body { grid-template-columns: 1fr; }
  .contact__title, .contact__text, .contact__cta { grid-column: 1 / -1; grid-row: auto; }
  .contact__cta { justify-self: start; align-items: flex-start; margin-top: 1rem; }

  .foot__row { grid-template-columns: 1fr 1fr; }
  .foot__links { grid-column: 1 / -1; }

  .menu__list a { grid-template-columns: 2.5rem 1fr; }
  .menu__ja { grid-column: 2; margin-top: -.25rem; padding-bottom: .25rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0s !important;
  }
}
