/* =====================================================
   Variation A — Grid Atlas
   ===================================================== */

:root {
  --paper: #f4f1ea;
  --paper-2: #ebe6da;
  --ink: #0c0c0c;
  --ink-2: #2a2a2a;
  --ink-3: #6a6862;
  --rule: rgba(12, 12, 12, 0.14);
  --rule-strong: rgba(12, 12, 12, 0.32);
  --accent: oklch(56% 0.18 28);          /* default: vermilion — runtime-swappable */
  --accent-soft: color-mix(in srgb, var(--accent) 12%, transparent);

  --font-sans: "Inter", "Noto Sans JP", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --font-serif: "Shippori Mincho", "Hiragino Mincho ProN", serif;

  --col: minmax(0, 1fr);
  --gut: clamp(16px, 2.5vw, 32px);
  --pad-x: clamp(20px, 5vw, 64px);
  --container: 1440px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  font-family: var(--font-sans);
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: 0.01em;
  font-feature-settings: "palt";
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }
em { font-style: italic; font-family: var(--font-serif); font-weight: 500; }

/* language switching */
.jp, .en { display: inline; }
body[data-lang="en"] .jp { display: none; }
body[data-lang="ja"] .en { display: none; }
body[data-lang="en"] .hero__title .jp,
body[data-lang="ja"] .hero__title .en { display: none; }

/* ============== NAV ============== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--gut);
  padding: 16px var(--pad-x);
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  border-bottom: 1px solid var(--rule);
  transition: padding .25s ease;
}
.nav.is-shrunk { padding-top: 10px; padding-bottom: 10px; }

.nav__brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; }
.nav__mark { display: inline-flex; color: var(--ink); }
.nav__name { font-size: 14px; letter-spacing: 0.04em; }

.nav__links { display: flex; gap: 4px; justify-content: center; }
.nav__links a {
  position: relative;
  display: inline-flex; align-items: baseline; gap: 6px;
  padding: 8px 12px;
  font-size: 13px; letter-spacing: 0.02em;
  color: var(--ink-2);
  transition: color .18s ease;
}
.nav__links a:hover, .nav__links a.is-active { color: var(--ink); }
.nav__links a.is-active::before {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 0;
  height: 1px; background: var(--accent);
}
.nav__num {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--ink-3);
}

.nav__utility { display: flex; align-items: center; gap: 8px; }
.lang {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em;
  padding: 6px 10px; border: 1px solid var(--rule-strong);
  color: var(--ink-2);
  transition: border-color .18s ease;
}
.lang:hover { border-color: var(--ink); }
.lang__sep { opacity: .35; margin: 0 2px; }
.lang__opt { color: var(--ink-3); transition: color .18s ease; }
.lang__opt.is-active { color: var(--accent); }

.nav__cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 14px;
  background: var(--ink); color: var(--paper);
  font-size: 12px; letter-spacing: 0.06em; font-weight: 500;
  transition: background .2s ease, transform .2s ease;
}
.nav__cta:hover { background: var(--accent); transform: translateY(-1px); }

@media (max-width: 960px) {
  .nav { grid-template-columns: auto 1fr; padding: 12px 20px; }
  .nav__links { display: none; }
  .nav__utility .nav__cta span:not([aria-hidden]) { display: none; }
}

/* ============== HERO ============== */
.hero {
  position: relative;
  min-height: 100vh;
  padding: clamp(120px, 18vh, 200px) var(--pad-x) clamp(60px, 12vh, 120px);
  display: flex; flex-direction: column; justify-content: flex-end;
  isolation: isolate;
}
.hero__grid {
  position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(var(--rule) 1px, transparent 1px),
    linear-gradient(90deg, var(--rule) 1px, transparent 1px);
  background-size: clamp(80px, 8vw, 120px) clamp(80px, 8vw, 120px);
  mask-image: radial-gradient(ellipse 80% 60% at 70% 40%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 70% 40%, #000 30%, transparent 80%);
}
#hero-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  display: block;
}

.hero__inner { position: relative; max-width: var(--container); margin: 0 auto; width: 100%; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 32px; }

.tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 6px 10px; border: 1px solid var(--rule-strong);
  color: var(--ink-2);
}
.tag--dim { border-color: var(--rule); color: var(--ink-3); }
.tag .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: pulse 2.2s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

.hero__title {
  font-size: clamp(40px, 8.5vw, 128px);
  line-height: 0.96;
  letter-spacing: -0.02em;
  font-weight: 600;
  margin: 0 0 40px;
  max-width: 14ch;
}
.hero__title .line { display: block; overflow: hidden; }
.hero__title .cs {
  display: inline-block;
  transform: translateY(110%);
  animation: rise 0.9s cubic-bezier(.2,.8,.2,1) both;
}
.hero__title .line:nth-child(1) .cs:nth-child(n) { animation-delay: calc(0.04s * var(--i, 0)); }
.hero__title .line:nth-child(2) .cs { animation-delay: calc(0.4s + 0.05s * var(--i, 0)); }
@keyframes rise { from { transform: translateY(110%); } to { transform: translateY(0); } }

.hero__title .en { font-family: var(--font-sans); font-weight: 600; }
.hero__title .en em { font-family: var(--font-serif); font-style: italic; color: var(--accent); padding-right: .05em;}

.hero__lede {
  max-width: 56ch;
  font-size: clamp(15px, 1.4vw, 18px);
  color: var(--ink-2);
  line-height: 1.75;
  margin-bottom: 40px;
}

.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 56px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px;
  font-size: 13px; letter-spacing: 0.05em; font-weight: 500;
  transition: transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.btn--primary { background: var(--ink); color: var(--paper); }
.btn--primary:hover { background: var(--accent); transform: translateY(-1px); }
.btn--ghost { border: 1px solid var(--ink); color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }

.hero__stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--rule-strong);
  padding-top: 24px;
  gap: 24px;
  max-width: 720px;
}
.stat__num {
  display: block;
  font-family: var(--font-serif);
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  color: var(--ink);
}
.stat__num small { font-size: 0.5em; color: var(--accent); padding: 0 4px; }
.stat__lbl {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--ink-3);
  text-transform: uppercase;
}
@media (max-width: 640px) {
  .hero__stats { grid-template-columns: 1fr; gap: 16px; }
}

.hero__rule {
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px; background: var(--rule-strong);
}

/* ============== SUB-HERO (sub pages) ============== */
.sub-hero {
  position: relative;
  padding: clamp(140px, 22vh, 220px) var(--pad-x) clamp(48px, 8vh, 80px);
  border-bottom: 1px solid var(--rule-strong);
  background:
    linear-gradient(var(--rule) 1px, transparent 1px),
    linear-gradient(90deg, var(--rule) 1px, transparent 1px),
    var(--paper);
  background-size: clamp(80px, 8vw, 120px) clamp(80px, 8vw, 120px), clamp(80px, 8vw, 120px) clamp(80px, 8vw, 120px), auto;
  isolation: isolate;
}
.sub-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, color-mix(in srgb, var(--paper) 50%, transparent) 0%, var(--paper) 70%);
}
.sub-hero__inner { max-width: var(--container); margin: 0 auto; }
.sub-hero__meta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 24px; }
.sub-hero__title {
  font-size: clamp(40px, 7vw, 96px);
  line-height: 1;
  letter-spacing: -0.02em;
  font-weight: 600;
  margin: 0 0 24px;
  display: flex; flex-wrap: wrap; align-items: baseline; gap: clamp(16px, 3vw, 32px);
}
.sub-hero__title .en {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  color: var(--ink-3);
  font-size: 0.5em;
}
.sub-hero__title .en em { color: var(--accent); font-style: italic; }
.sub-hero__lede {
  max-width: 56ch;
  font-size: clamp(15px, 1.3vw, 17px);
  color: var(--ink-2);
  line-height: 1.75;
}

/* ============== ENTRY (article) ============== */
.entry {
  max-width: 880px;
  margin: 0 auto;
  padding: clamp(120px, 18vh, 180px) var(--pad-x) clamp(80px, 12vh, 140px);
}
.entry__head {
  border-bottom: 1px solid var(--rule-strong);
  padding-bottom: clamp(28px, 4vh, 40px);
  margin-bottom: clamp(40px, 6vh, 64px);
}
.entry__meta { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; }
.entry__date {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--ink-3);
}
.entry__title {
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.25;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 24px;
}
.entry__title .en {
  display: block;
  margin-top: 12px;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  font-size: 0.55em;
  color: var(--ink-3);
}
.entry__breadcrumb {
  display: flex; flex-wrap: wrap; gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.entry__breadcrumb a { color: var(--ink-2); border-bottom: 1px solid var(--rule); padding-bottom: 1px; }
.entry__breadcrumb a:hover { color: var(--accent); border-color: var(--accent); }

.entry__hero { margin: 0 0 clamp(40px, 6vh, 64px); }
.entry__hero img {
  display: block; width: 100%; height: auto;
  border: 1px solid var(--rule);
}

/* prose typography */
.prose { color: var(--ink-2); font-size: clamp(15px, 1.1vw, 17px); line-height: 1.85; }
.prose > * + * { margin-top: 1.2em; }
.prose p { margin: 0; }
.prose h2, .prose h3, .prose h4 { color: var(--ink); font-weight: 600; line-height: 1.35; letter-spacing: -0.01em; }
.prose h2 {
  margin-top: 2.4em;
  font-size: clamp(22px, 2.4vw, 30px);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--rule-strong);
  display: flex; align-items: baseline; gap: 12px;
}
.prose h2::before {
  content: "§"; color: var(--accent);
  font-family: var(--font-serif); font-style: italic; font-weight: 500;
}
.prose h3 {
  margin-top: 2em;
  font-size: clamp(18px, 1.8vw, 22px);
  padding-left: 14px;
  border-left: 2px solid var(--accent);
}
.prose h4 {
  margin-top: 1.6em;
  font-size: clamp(15px, 1.4vw, 17px);
  color: var(--ink);
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.prose figure { margin: 2em 0; }
.prose figure img { display: block; width: 100%; max-width: 600px; height: auto; border: 1px solid var(--rule); }
.prose ul, .prose ol { padding-left: 1.4em; margin: 0; }
.prose ul { list-style: none; }
.prose ul li { position: relative; padding-left: 0; }
.prose ul li::before {
  content: ""; position: absolute; left: -1.1em; top: 0.85em;
  width: 6px; height: 1px; background: var(--accent);
}
.prose ol { list-style: decimal; }
.prose ol li::marker { color: var(--accent); font-family: var(--font-mono); font-size: 0.9em; }
.prose li + li { margin-top: 0.4em; }
.prose dl {
  display: grid;
  grid-template-columns: minmax(140px, 1fr) 2fr;
  gap: 16px 24px;
  margin: 0;
  padding: 20px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.prose dt {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding-top: 4px;
}
.prose dd { margin: 0; }
.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95em;
}
.prose table th, .prose table td {
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}
.prose table th {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 500;
  width: 32%;
  background: var(--paper-2);
}

.entry__pager {
  margin-top: clamp(64px, 10vh, 100px);
  padding-top: 32px;
  border-top: 1px solid var(--rule-strong);
}
.entry__back {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
  padding: 8px 0;
  border-bottom: 1px solid var(--rule-strong);
  transition: color .2s ease, border-color .2s ease, gap .2s ease;
}
.entry__back:hover { color: var(--accent); border-color: var(--accent); gap: 16px; }

@media (max-width: 640px) {
  .prose dl { grid-template-columns: 1fr; gap: 4px 0; }
  .prose dt { padding-top: 16px; }
}

/* ============== SECTION (shared) ============== */
.section {
  position: relative;
  padding: clamp(80px, 12vh, 140px) var(--pad-x);
  border-top: 1px solid var(--rule);
}
.section--alt { background: var(--paper-2); }
.section__head {
  max-width: var(--container);
  margin: 0 auto clamp(48px, 8vh, 80px);
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: clamp(20px, 4vw, 56px);
  align-items: start;
}
.section__no {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.1em;
  padding-top: 12px;
  border-top: 1px solid var(--accent);
}
.section__titles h2 {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  display: flex; align-items: baseline; gap: 16px;
  flex-wrap: wrap;
}
.section__titles h2 .en { font-family: var(--font-serif); font-style: italic; font-weight: 500; }
.section__sub {
  font-family: var(--font-mono);
  font-size: 12px; color: var(--ink-3); letter-spacing: 0.08em;
}
.section__lede {
  grid-column: 2;
  max-width: 60ch;
  margin-top: 24px;
  font-size: clamp(15px, 1.3vw, 17px);
  color: var(--ink-2);
  line-height: 1.85;
}
@media (max-width: 720px) {
  .section__head { grid-template-columns: 1fr; gap: 12px; }
  .section__lede { grid-column: 1; }
  .section__no { padding-top: 8px; }
}

/* reveal */
[data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1); }
[data-reveal].is-in { opacity: 1; transform: translateY(0); }

/* ============== SERVICES ============== */
.services {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule-strong);
  border-bottom: 1px solid var(--rule-strong);
}
.service {
  padding: clamp(32px, 4vw, 48px);
  border-right: 1px solid var(--rule);
  display: flex; flex-direction: column;
  position: relative;
}
.service:last-child { border-right: 0; }
.service__no {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.08em;
  margin-bottom: 24px;
}
.service__title {
  font-size: clamp(22px, 2vw, 28px);
  font-weight: 600;
  line-height: 1.25;
  margin-bottom: 20px;
  letter-spacing: -0.01em;
  display: flex; flex-direction: column; gap: 6px;
  flex-grow: 1;
}
.service__title .en { font-family: var(--font-serif); font-style: italic; font-weight: 500; font-size: 0.7em; color: var(--ink-3); }
.service__tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--accent);
  padding: 4px 8px;
  background: var(--accent-soft);
  align-self: flex-start;
  margin-top: 8px;
}
.service__body {
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.85;
  margin: 16px 0 24px;
}
.service__points li {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--ink-3);
  padding: 6px 0;
  border-top: 1px dashed var(--rule);
}
.service__points li::before { content: "→  "; color: var(--accent); }

@media (max-width: 960px) {
  .services { grid-template-columns: 1fr; }
  .service { border-right: 0; border-bottom: 1px solid var(--rule); }
  .service:last-child { border-bottom: 0; }
}

.capabilities {
  max-width: var(--container);
  margin: 48px auto 0;
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 32px;
  align-items: start;
}
.capabilities__lbl {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--ink-3);
  text-transform: uppercase;
  padding-top: 8px;
}
.capabilities__list {
  display: flex; flex-wrap: wrap; gap: 8px 12px;
}
.capabilities__list li {
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 8px 14px;
  border: 1px solid var(--rule-strong);
  color: var(--ink);
  transition: background .2s ease, color .2s ease, border-color .2s ease;
  cursor: default;
}
.capabilities__list li:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.capabilities__list li span:not(.jp):not(.en) {
  color: var(--ink-3);
  font-size: 10px;
  margin-left: 6px;
}
@media (max-width: 720px) { .capabilities { grid-template-columns: 1fr; gap: 16px; } }

/* ============== WELCOME ============== */
.welcome {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 1px solid var(--rule-strong);
  border-bottom: 1px solid var(--rule-strong);
}
.welcome__col {
  padding: clamp(32px, 4vw, 56px);
  border-right: 1px solid var(--rule);
}
.welcome__col:last-child { border-right: 0; }
.welcome__lbl {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  margin-bottom: 32px;
}
.welcome__sign {
  width: 28px; height: 28px;
  display: inline-grid; place-items: center;
  border: 1px solid currentColor;
  font-family: var(--font-sans); font-size: 16px; font-weight: 400;
}
.welcome__col--yes .welcome__lbl { color: var(--accent); }
.welcome__col--no .welcome__lbl { color: var(--ink-3); }
.welcome__col ul li {
  padding: 18px 0;
  border-top: 1px solid var(--rule);
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink);
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 14px;
  counter-increment: welcome;
}
.welcome__col ul li::before {
  content: counter(welcome, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--ink-3);
  padding-top: 5px;
  letter-spacing: 0.06em;
}
.welcome__col ul { counter-reset: welcome; }
.welcome__col--no ul li { color: var(--ink-2); }
.welcome__note { margin-top: 32px; font-size: 13px; color: var(--ink-3); line-height: 1.8; padding-top: 24px; border-top: 1px dashed var(--rule); }

@media (max-width: 720px) {
  .welcome { grid-template-columns: 1fr; }
  .welcome__col { border-right: 0; border-bottom: 1px solid var(--rule); }
  .welcome__col:last-child { border-bottom: 0; }
}

/* ============== WORKS ============== */
.work {
  max-width: var(--container);
  margin: 0 auto 64px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
  border-top: 1px solid var(--rule-strong);
  padding-top: 48px;
}
.work__meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.work__body { padding-top: 8px; }
.work__title {
  font-size: clamp(32px, 5vw, 56px);
  font-family: var(--font-serif);
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  line-height: 1;
}
.work__desc {
  font-size: 15px;
  line-height: 1.85;
  color: var(--ink-2);
  margin-bottom: 16px;
}
.work__link {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 24px;
  padding: 12px 18px;
  border: 1px solid var(--ink);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  transition: background .2s ease, color .2s ease;
}
.work__link:hover { background: var(--accent); color: var(--paper); border-color: var(--accent); }
.work__visual { position: relative; aspect-ratio: 4/5; }
.work--pose .work__visual { aspect-ratio: auto; position: sticky; top: 100px; }
@media (max-width: 860px) { .work--pose .work__visual { position: static; } }

/* === Pose Analysis showcase === */
.work--pose {
  grid-template-columns: minmax(220px, 0.7fr) 1.3fr;
  align-items: start;
  gap: clamp(28px, 4vw, 56px);
}
@media (max-width: 860px) { .work--pose { grid-template-columns: 1fr; } }

.work--pose .work__meta { margin-bottom: 16px; }
.work--pose .work__title { font-size: clamp(28px, 4vw, 44px); margin-bottom: 12px; }

.work__tagline {
  font-size: clamp(16px, 1.5vw, 20px);
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--accent);
  letter-spacing: -0.01em;
  line-height: 1.45;
  margin-bottom: 16px;
  font-weight: 500;
}

.work--pose .work__desc {
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 14px;
}
.work__note {
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--ink-3);
  margin-bottom: 24px;
  padding-left: 12px;
  border-left: 2px solid var(--accent);
}

.work__specs {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin: 0 0 20px;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.work__specs li {
  padding: 14px 10px 14px 0;
  border-right: 1px solid var(--rule);
  display: flex; flex-direction: column; gap: 4px;
}
.work__specs li:last-child { border-right: 0; }
.spec__num {
  font-family: var(--font-serif);
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.spec__num small { font-family: var(--font-mono); font-size: 0.42em; color: var(--ink-3); padding-left: 2px; vertical-align: baseline; }
.spec__lbl {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--ink-3);
}

.work__uses {
  display: flex; flex-wrap: wrap; gap: 5px;
  margin-bottom: 20px;
}
.work__uses li {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 4px 9px;
  border: 1px solid var(--rule-strong);
  letter-spacing: 0.04em;
  color: var(--ink-2);
  transition: background .2s ease, color .2s ease, border-color .2s ease;
  cursor: default;
}
.work__uses li:hover { background: var(--accent); color: var(--paper); border-color: var(--accent); }

.work__ctas {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.work__ctas .btn { font-size: 12px; padding: 10px 14px; gap: 8px; letter-spacing: 0.04em; }
.work__ctas .btn svg { flex-shrink: 0; }

/* phone-screen frame with the real screenshot */
.pose-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 9/14;
  background: var(--paper-2);
  border: 1px solid var(--rule-strong);
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.pose-frame__lbl {
  position: absolute; top: 10px; left: 12px;
  font-family: var(--font-mono); font-size: 9.5px;
  color: var(--ink-3);
  letter-spacing: 0.06em;
  z-index: 2;
}
.pose-frame__img {
  width: 88%; height: auto;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 14px 28px rgba(12,12,12,0.18));
  transition: transform .4s cubic-bezier(.2,.8,.2,1);
}
.work--pose:hover .pose-frame__img { transform: translateY(-4px); }

@media (max-width: 520px) {
  .work__specs { grid-template-columns: repeat(2, 1fr); }
  .work__specs li:nth-child(2) { border-right: 0; }
  .work__specs li:nth-child(-n+2) { border-bottom: 1px solid var(--rule); }
}
.ph {
  position: relative; width: 100%; height: 100%;
  background: var(--paper-2);
  border: 1px solid var(--rule-strong);
  overflow: hidden;
  color: var(--ink-3);
}
.ph svg { width: 100%; height: 100%; display: block; }
.ph__lbl {
  position: absolute; top: 12px; left: 12px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--ink-3);
  letter-spacing: 0.06em;
  z-index: 2;
}

@media (max-width: 860px) { .work { grid-template-columns: 1fr; } }

.works-list {
  max-width: var(--container);
  margin: 0 auto;
  padding-top: 48px;
  border-top: 1px solid var(--rule);
}
.works-list__head { display: flex; flex-direction: column; gap: 16px; margin-bottom: 32px; }
.works-list__head h3 {
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 600; letter-spacing: -0.01em;
}
.works-list__head h3 .en { font-family: var(--font-serif); font-style: italic; font-weight: 500; }
.works-list__items {
  display: flex; flex-direction: column;
  border-top: 1px solid var(--rule-strong);
}
.works-list__items li {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 15px;
  line-height: 1.7;
  transition: padding .25s ease;
}
.works-list__items li:hover { padding-left: 16px; }
.works-list__items .num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.08em;
  padding-top: 4px;
}
.works-list__note {
  margin-top: 24px;
  font-size: 13px;
  color: var(--ink-3);
  line-height: 1.8;
}

/* ============== PHILOSOPHY ============== */
.section--phil { background: var(--ink); color: var(--paper); border-top: 0; }
.section--phil .section__no { color: var(--accent); border-color: var(--accent); }
.section--phil .section__titles h2 { color: var(--paper); }
.section--phil .section__sub { color: rgba(244, 241, 234, 0.5); }
.phils {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 1px solid rgba(244, 241, 234, 0.16);
  border-bottom: 1px solid rgba(244, 241, 234, 0.16);
}
.phil {
  padding: clamp(32px, 4vw, 56px);
  border-right: 1px solid rgba(244, 241, 234, 0.1);
  border-bottom: 1px solid rgba(244, 241, 234, 0.1);
  position: relative;
}
.phil:nth-child(2n) { border-right: 0; }
.phil:nth-last-child(-n+2) { border-bottom: 0; }
.phil__no {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.08em;
  margin-bottom: 24px;
}
.phil__title {
  font-size: clamp(22px, 2.2vw, 30px);
  font-weight: 500;
  font-family: var(--font-serif);
  letter-spacing: -0.01em;
  margin-bottom: 24px;
  display: flex; flex-direction: column; gap: 4px;
}
.phil__title .en { font-family: var(--font-sans); font-style: normal; font-weight: 400; font-size: 0.55em; color: rgba(244, 241, 234, 0.55); letter-spacing: 0.04em; }
.phil p {
  color: rgba(244, 241, 234, 0.78);
  font-size: 14.5px;
  line-height: 1.95;
}
.phil em { color: var(--accent); }

@media (max-width: 720px) {
  .phils { grid-template-columns: 1fr; }
  .phil { border-right: 0 !important; }
  .phil:nth-last-child(-n+2) { border-bottom: 1px solid rgba(244, 241, 234, 0.1); }
  .phil:last-child { border-bottom: 0; }
}

/* ============== COMPANY ============== */
.company {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
}
.company > div {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 24px;
  padding: 20px 0;
  border-top: 1px solid var(--rule);
}
.company > div:last-child { border-bottom: 1px solid var(--rule); }
.company dt {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding-top: 4px;
}
.company dd { margin: 0; font-size: 15px; }
.company dd a { color: var(--accent); border-bottom: 1px solid currentColor; padding-bottom: 1px; }

@media (max-width: 640px) {
  .company > div { grid-template-columns: 1fr; gap: 6px; }
}

/* ============== TOPICS ============== */
.topics {
  max-width: var(--container);
  margin: 0 auto;
  border-top: 1px solid var(--rule-strong);
}
.topics li {
  display: grid;
  grid-template-columns: 120px 100px 1fr;
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--rule);
  align-items: center;
  font-size: 15px;
  transition: padding .2s ease;
}
.topics li:hover { padding-left: 12px; }
.topics time { font-family: var(--font-mono); font-size: 12px; color: var(--ink-3); letter-spacing: 0.04em; }
.topics li a { display: inline; transition: color .2s ease; }
.topics li a:hover { color: var(--accent); }
@media (max-width: 640px) {
  .topics li { grid-template-columns: 1fr; gap: 8px; }
}

.topics__more {
  max-width: var(--container);
  margin: 32px auto 0;
  text-align: right;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.topics__more a {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--ink-2);
  padding: 8px 0;
  border-bottom: 1px solid var(--rule-strong);
  transition: color .2s ease, border-color .2s ease, gap .2s ease;
}
.topics__more a:hover { color: var(--accent); border-color: var(--accent); gap: 14px; }

/* ============== CONTACT ============== */
.section--contact { background: var(--paper-2); }
.contact { max-width: var(--container); margin: 0 auto; }
.contact__lede {
  font-size: clamp(16px, 1.4vw, 18px);
  color: var(--ink-2);
  max-width: 56ch;
  line-height: 1.85;
  margin-bottom: 40px;
}
.contact__mail {
  display: inline-flex; align-items: center; gap: clamp(16px, 3vw, 32px);
  padding: clamp(28px, 4vw, 44px) clamp(28px, 4vw, 44px);
  background: var(--paper);
  border: 1px solid var(--rule-strong);
  font-family: var(--font-serif);
  font-size: clamp(22px, 4vw, 40px);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
  transition: background .25s ease, color .25s ease, border-color .25s ease;
}
.contact__mail:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.contact__arrow {
  display: inline-flex;
  width: clamp(32px, 4vw, 48px);
  height: clamp(32px, 4vw, 48px);
  border: 1px solid var(--accent);
  background: var(--accent);
  color: var(--paper);
  align-items: center; justify-content: center;
  font-family: var(--font-sans); font-weight: 500; font-size: 1em;
  transition: transform .25s ease;
}
.contact__mail:hover .contact__arrow { transform: translateX(6px) rotate(-12deg); }
.contact__note { margin-top: 24px; font-size: 13px; color: var(--ink-3); font-family: var(--font-mono); letter-spacing: 0.06em; }

/* ============== FOOT ============== */
.foot { background: var(--paper); border-top: 1px solid var(--rule-strong); padding: clamp(40px, 6vw, 64px) var(--pad-x) 32px; }
.foot__inner { max-width: var(--container); margin: 0 auto; display: flex; flex-direction: column; gap: 32px; }
.foot__brand { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; }
.foot__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; border-top: 1px solid var(--rule); padding-top: 32px; }
.foot__cols > div { display: flex; flex-direction: column; gap: 6px; }
.foot__lbl { font-family: var(--font-mono); font-size: 10px; color: var(--ink-3); letter-spacing: 0.1em; text-transform: uppercase; }
.foot__cols a { font-size: 14px; transition: color .2s ease; }
.foot__cols a:hover { color: var(--accent); }
.foot__base {
  display: flex; justify-content: space-between; align-items: baseline;
  border-top: 1px solid var(--rule); padding-top: 24px;
  font-family: var(--font-mono); font-size: 11px; color: var(--ink-3); letter-spacing: 0.06em;
}
.foot__mono { color: var(--accent); }

@media (max-width: 640px) {
  .foot__cols { grid-template-columns: 1fr; }
  .foot__base { flex-direction: column; gap: 8px; }
}

/* ============== CURSOR ============== */
.cursor {
  position: fixed; top: 0; left: 0;
  width: 14px; height: 14px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 100;
  transition: width .25s ease, height .25s ease, background .25s ease, border-color .25s ease, opacity .25s ease;
  mix-blend-mode: difference;
  opacity: 0;
}
@media (hover: hover) and (pointer: fine) {
  .cursor { opacity: 1; }
  .cursor.is-link { width: 26px; height: 26px; background: var(--accent); border-color: var(--accent); mix-blend-mode: normal; }
}
@media (hover: none) { .cursor { display: none; } }

/* ============== reduced motion ============== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .hero__title .cs { transform: none; }
}

/* ============== TWEAKS PANEL ============== */
.tweaks {
  position: fixed;
  right: 20px; bottom: 20px;
  z-index: 200;
  width: 320px;
  background: var(--paper);
  border: 1px solid var(--ink);
  box-shadow: 0 24px 48px -16px rgba(0,0,0,0.25), 0 0 0 1px var(--rule);
  font-family: var(--font-sans);
  color: var(--ink);
  display: none;
  flex-direction: column;
}
.tweaks.is-on { display: flex; animation: tweaks-in .35s cubic-bezier(.2,.8,.2,1); }
@keyframes tweaks-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

.tweaks__head {
  display: flex; justify-content: space-between; align-items: flex-start;
  padding: 16px 18px 12px;
  border-bottom: 1px solid var(--rule);
}
.tweaks__title {
  font-family: var(--font-mono);
  font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink); display: block;
}
.tweaks__sub {
  font-size: 11px; color: var(--ink-3);
  margin-top: 2px; display: block;
}
.tweaks__close {
  width: 28px; height: 28px;
  border: 1px solid var(--rule-strong);
  display: grid; place-items: center;
  font-size: 16px; line-height: 1; color: var(--ink-2);
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.tweaks__close:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.tweaks__group {
  padding: 16px 18px;
  border-bottom: 1px solid var(--rule);
  display: flex; flex-direction: column; gap: 12px;
}
.tweaks__group:last-of-type { border-bottom: 0; }
.tweaks__lbl {
  display: flex; align-items: baseline; gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-2);
}
.tweaks__lbl span {
  font-family: var(--font-sans);
  font-size: 11px; color: var(--ink-3);
  text-transform: none; letter-spacing: 0;
}

.tweaks__swatches { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.tweaks__swatches button {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 8px 4px;
  border: 1px solid var(--rule);
  background: transparent;
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}
.tweaks__swatches button:hover { border-color: var(--ink-3); transform: translateY(-1px); }
.tweaks__swatches button.is-active { border-color: var(--ink); background: rgba(12,12,12,0.04); }
.tweaks__swatches .sw {
  display: block; width: 28px; height: 28px;
  background: var(--c);
  border-radius: 50%;
  position: relative;
  transition: transform .2s ease;
}
.tweaks__swatches button.is-active .sw {
  box-shadow: 0 0 0 2px var(--paper), 0 0 0 3px var(--ink);
}
.tweaks__swatches em {
  font-style: normal; font-family: var(--font-serif);
  font-size: 14px; color: var(--ink-2);
}
.tweaks__swatches button.is-active em { color: var(--ink); }

.tweaks__buttons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.tweaks__buttons button {
  display: flex; flex-direction: column; gap: 2px; align-items: center;
  padding: 10px 6px;
  border: 1px solid var(--rule);
  background: transparent;
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease, color .2s ease;
}
.tweaks__buttons button:hover { border-color: var(--ink-3); }
.tweaks__buttons button.is-active { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.tweaks__buttons button em {
  font-style: normal; font-family: var(--font-serif);
  font-size: 16px;
}
.tweaks__buttons button span {
  font-family: var(--font-mono);
  font-size: 9px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-3);
}
.tweaks__buttons button.is-active span { color: rgba(244,241,234,0.7); }

.tweaks__foot {
  padding: 10px 18px 14px;
  font-family: var(--font-mono);
  font-size: 9px; letter-spacing: 0.06em;
  color: var(--ink-3);
  border-top: 1px solid var(--rule);
}

@media (max-width: 640px) {
  .tweaks { right: 12px; left: 12px; bottom: 12px; width: auto; }
}
