/* ============================================
   JCS - Top page specific
   ============================================ */

/* HERO — Light / Stadium photo style ================= */
.hero.hero-light {
  position: relative;
  min-height: 620px;
  height: clamp(620px, 82vh, 820px);
  color: #fff;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 120px 0 90px;
  background: #07090d;
}
.hero-light .hero-photo {
  position: absolute; inset: 0;
  z-index: 0;
}
.hero-light .photo-ph {
  position: absolute; inset: 0;
  background-image: url('../assets/hero-stadium.jpg');
  background-size: cover;
  background-position: center 55%;
  background-repeat: no-repeat;
}
.hero-light .photo-ph::before,
.hero-light .photo-ph::after { content: none; }
.hero-light .photo-label {
  position: absolute;
  top: 24px; right: 24px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: rgba(255,255,255,0.55);
  background: rgba(10,12,18,0.55);
  border: 1px solid rgba(255,255,255,0.18);
  padding: 5px 10px;
  text-transform: uppercase;
}
.hero-light .photo-tint {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(7,9,13,0.35) 0%, rgba(7,9,13,0.65) 100%),
    linear-gradient(90deg, rgba(7,9,13,0.62) 0%, rgba(7,9,13,0.32) 55%, rgba(7,9,13,0.15) 100%);
}

.hero-light-inner { position: relative; z-index: 2; }
.hero-light .hero-copy { max-width: 820px; }
.hero-light .hero-en {
  font-family: var(--font-en);
  font-weight: 700;
  font-style: italic;
  font-size: clamp(44px, 5.6vw, 78px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--orange-500);
  margin: 0 0 10px;
  text-shadow: 0 2px 28px rgba(0,0,0,0.35);
  word-break: keep-all;
  overflow-wrap: normal;
}
.hero-light .hero-jp {
  font-family: var(--font-ja);
  font-size: clamp(15px, 1.3vw, 18px);
  font-weight: 500;
  color: rgba(255,255,255,0.9);
  letter-spacing: 0.12em;
  margin: 0 0 40px;
}
.hero-light .hero-meta-row {
  display: flex; gap: 14px; align-items: center;
  margin-bottom: 20px;
}
.hero-light .hero-kicker {
  font-family: var(--font-en);
  font-size: 11px;
  letter-spacing: 0.22em;
  font-weight: 600;
  color: #fff;
  padding-right: 14px;
  border-right: 1px solid rgba(255,255,255,0.3);
}
.hero-light .hero-kicker-sub {
  font-family: var(--font-en);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: rgba(255,255,255,0.7);
}
.hero-light .hero-lede {
  font-size: clamp(14px, 1.05vw, 16px);
  line-height: 1.95;
  color: rgba(255,255,255,0.88);
  margin: 0 0 36px;
  max-width: 58ch;
}
.hero-light .hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-light .hero-meta {
  position: absolute;
  left: 0; right: 0; bottom: 22px;
  padding: 0 var(--pad-x);
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: rgba(255,255,255,0.55);
  text-transform: uppercase;
  z-index: 3;
}

/* override btn-ghost on dark hero */
.hero-light .btn-ghost {
  border: 1px solid rgba(255,255,255,0.4);
  color: #fff;
  background: transparent;
}
.hero-light .btn-ghost:hover {
  background: #fff;
  color: var(--ink-900);
  border-color: #fff;
}

@media (max-width: 700px) {
  .hero.hero-light { padding: 100px 0 70px; min-height: 520px; }
  .hero-light .photo-label { display: none; }
}
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  color: #fff;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding-bottom: clamp(80px, 9vh, 120px);
  padding-top: 110px;
}
.hero .bg {
  position: absolute; inset: 0;
  background-color: #0a0b0f;
  background-image:
    linear-gradient(180deg, rgba(10,11,15,0.35) 0%, rgba(10,11,15,0.75) 100%);
  z-index: 0;
}
/* AI grid overlay: subtle orthogonal grid + diagonal motion line */
.hero .bg::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 80px 80px;
  opacity: 0.5;
}
.hero .bg::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    radial-gradient(ellipse 70% 45% at 25% 75%, rgba(214,90,32,0.18) 0%, transparent 55%),
    radial-gradient(ellipse 55% 35% at 85% 20%, rgba(15,27,45,0.6) 0%, transparent 55%);
  mix-blend-mode: screen;
}
.hero .ph-img { display: none; }

.hero .container { position: relative; z-index: 2; width: 100%; }
.hero .eyebrow { color: rgba(255,255,255,0.7); }
.hero .eyebrow::before { background: var(--orange-500); }
.hero h1 {
  margin: 20px 0 28px;
  max-width: 22ch;
  font-size: clamp(30px, 3.8vw, 56px);
  word-break: keep-all;
  overflow-wrap: break-word;
  line-break: strict;
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.hero h1 .accent { color: var(--orange-500); }
.hero h1 .stroke {
  display: inline-block;
  position: relative;
  padding: 0 2px;
  white-space: nowrap;
  color: #fff;
}
.hero h1 .stroke::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px; background: var(--orange-500);
  opacity: 1;
}
.hero .sub {
  font-size: clamp(15px, 1.1vw, 17px);
  line-height: 1.85;
  color: rgba(255,255,255,0.85);
  max-width: 52ch;
  margin: 0 0 32px;
  font-weight: 400;
}
.hero .hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }

/* Hero bottom meta bar */
.hero .meta {
  position: absolute;
  left: 0; right: 0; bottom: 24px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 0 var(--pad-x);
  max-width: var(--maxw);
  margin: 0 auto;
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.08em;
  z-index: 2;
}
.hero .meta .tick {
  display: flex; gap: 6px; align-items: center;
}
.hero .meta .tick::before {
  content: "";
  width: 6px; height: 6px; background: var(--orange-500); border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* Hero layout variants */
.hero.layout-center .hero-inner { text-align: center; max-width: 900px; margin: 0 auto; }
.hero.layout-center h1 { margin-left: auto; margin-right: auto; }
.hero.layout-center .sub { margin-left: auto; margin-right: auto; }
.hero.layout-center .hero-cta { justify-content: center; }
.hero.layout-center .eyebrow { justify-content: center; }

.hero.layout-split .container {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 64px;
  align-items: center;
}
.hero .portrait { display: none; }
.hero.layout-split .portrait {
  display: block;
  position: relative;
  aspect-ratio: 3/4;
  background: repeating-linear-gradient(135deg, transparent 0 16px, rgba(255,255,255,0.06) 16px 17px);
  border: 1px solid rgba(255,255,255,0.12);
}
.hero.layout-split .portrait .label {
  position: absolute; bottom: 14px; left: 14px;
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.08em;
  color: rgba(255,255,255,0.6);
  background: rgba(0,0,0,0.5); padding: 6px 10px;
}
@media (max-width: 860px) {
  .hero.layout-split .container { grid-template-columns: 1fr; }
  .hero.layout-split .portrait { display: none; }
}

/* MARQUEE (clients) =============== */
.clients-strip {
  background: var(--ink-100);
  border-top: 1px solid var(--ink-200);
  border-bottom: 1px solid var(--ink-200);
  padding: 28px 0;
  overflow: hidden;
}
.clients-strip .label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-600);
  white-space: nowrap;
  padding-right: 32px;
  border-right: 1px solid var(--ink-200);
  margin-right: 32px;
}
.clients-strip .row {
  display: flex;
  align-items: center;
  gap: 48px;
  font-family: var(--font-en);
  font-weight: 500;
  color: var(--ink-600);
  font-size: 15px;
}

/* WHY JCS ========================= */
.why {
  background: var(--paper);
  padding: var(--section-y) 0;
}
.why .section-head { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: end; }
.why .section-head .lede { justify-self: end; max-width: 420px; }
@media (max-width: 860px) { .why .section-head { grid-template-columns: 1fr; } .why .section-head .lede { justify-self: start; } }

/* Variant: cards */
.why-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--ink-200);
}
.why-card {
  padding: 48px 40px 56px;
  border-right: 1px solid var(--ink-200);
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  transition: background 300ms var(--ease);
}
.why-card:last-child { border-right: none; }
.why-card:hover { background: var(--paper-2); }
.why-card .num {
  font-family: var(--font-en);
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--orange-600);
  font-weight: 600;
}
.why-card h3 {
  font-size: 22px; line-height: 1.4; margin: 0;
  font-weight: 700; letter-spacing: -0.01em;
}
.why-card p { color: var(--ink-600); margin: 0; font-size: 15px; line-height: 1.9; }
@media (max-width: 860px) {
  .why-cards { grid-template-columns: 1fr; border-top: none; }
  .why-card { border-right: none; border-top: 1px solid var(--ink-200); padding: 36px 0; }
}

/* Variant: numbered large */
.why-numbered { display: none; flex-direction: column; gap: 0; border-top: 1px solid var(--ink-200); }
.why-numbered .row {
  display: grid;
  grid-template-columns: 120px 1fr 2fr;
  gap: 40px;
  padding: 40px 0;
  border-bottom: 1px solid var(--ink-200);
  align-items: baseline;
  transition: padding-left 300ms var(--ease);
}
.why-numbered .row:hover { padding-left: 16px; }
.why-numbered .num {
  font-family: var(--font-en);
  font-size: 72px;
  font-weight: 300;
  color: var(--orange-600);
  line-height: 1;
  letter-spacing: -0.02em;
}
.why-numbered h3 {
  font-size: clamp(22px, 2vw, 30px);
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.01em;
  line-height: 1.4;
}
.why-numbered p { color: var(--ink-600); margin: 0; font-size: 16px; line-height: 1.9; }
@media (max-width: 860px) {
  .why-numbered .row { grid-template-columns: 1fr; gap: 16px; padding: 32px 0; }
  .why-numbered .num { font-size: 48px; }
}

/* Variant: horizontal band */
.why-band { display: none; border-top: 1px solid var(--ink-200); }
.why-band .bar {
  display: grid;
  grid-template-columns: 80px 280px 1fr;
  gap: 40px;
  padding: 32px 0;
  align-items: center;
  border-bottom: 1px solid var(--ink-200);
}
.why-band .num { font-family: var(--font-en); font-size: 14px; color: var(--orange-600); font-weight: 600; letter-spacing: 0.1em; }
.why-band h3 { font-size: 20px; font-weight: 700; margin: 0; letter-spacing: -0.01em; }
.why-band p { color: var(--ink-600); margin: 0; font-size: 15px; line-height: 1.8; }
@media (max-width: 860px) { .why-band .bar { grid-template-columns: 1fr; gap: 12px; } }

.why[data-variant="numbered"] .why-cards { display: none; }
.why[data-variant="numbered"] .why-numbered { display: flex; }
.why[data-variant="band"] .why-cards { display: none; }
.why[data-variant="band"] .why-band { display: block; }

/* SERVICES ======================== */
.services { background: var(--paper-2); padding: var(--section-y) 0; }
.services .section-head { max-width: 720px; }

.svc-list { display: flex; flex-direction: column; gap: 0; border-top: 1px solid var(--ink-200); }
.svc-item {
  display: grid;
  grid-template-columns: 140px 1.2fr 1fr;
  gap: 48px;
  padding: 56px 0;
  border-bottom: 1px solid var(--ink-200);
  align-items: start;
  position: relative;
  transition: background 300ms var(--ease);
}
.svc-item:hover { background: rgba(214,90,32,0.03); }
.svc-item .idx {
  font-family: var(--font-en);
  font-size: 13px;
  color: var(--ink-400);
  letter-spacing: 0.15em;
  font-weight: 500;
}
.svc-item .idx .num {
  display: block;
  font-size: 56px;
  font-weight: 300;
  color: var(--ink-900);
  line-height: 1;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}
.svc-item .body h3 {
  font-size: clamp(26px, 2.6vw, 38px);
  font-weight: 700;
  margin: 0 0 18px;
  letter-spacing: -0.015em;
  line-height: 1.25;
}
.svc-item .body h3 .tag {
  display: inline-block;
  font-family: var(--font-en);
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--orange-600);
  border: 1px solid var(--orange-600);
  padding: 4px 10px;
  margin-left: 12px;
  vertical-align: middle;
  font-weight: 500;
  background: var(--orange-50);
}
.svc-item .body h3 .tag.future {
  color: var(--ink-600);
  border-color: var(--ink-400);
  background: transparent;
}
.svc-item .body .catch {
  font-size: 17px;
  color: var(--ink-800);
  margin: 0 0 24px;
  font-weight: 500;
  line-height: 1.6;
}
.svc-item .body p.desc {
  color: var(--ink-600);
  margin: 0 0 24px;
  font-size: 15px;
  line-height: 1.9;
}
.svc-item .body ul {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.svc-item .body ul li {
  padding-left: 24px;
  position: relative;
  font-size: 14px;
  color: var(--ink-800);
  line-height: 1.7;
}
.svc-item .body ul li::before {
  content: "";
  position: absolute;
  left: 0; top: 10px;
  width: 14px; height: 1px;
  background: var(--orange-600);
}
.svc-item .body .more {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--orange-600);
  font-size: 14px;
  font-weight: 500;
  border-bottom: 1px solid var(--orange-600);
  padding-bottom: 4px;
  transition: gap 200ms var(--ease);
}
.svc-item .body .more:hover { gap: 16px; }
.svc-item .aside {
  border-left: 1px solid var(--ink-200);
  padding-left: 32px;
  padding-top: 8px;
}
.svc-item .aside h5 {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-400);
  margin: 0 0 8px;
  font-weight: 500;
}
.svc-item .aside .price {
  font-family: var(--font-en);
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-900);
  margin: 0 0 20px;
  line-height: 1.5;
}
.svc-item .aside .price strong {
  font-size: 24px;
  font-weight: 700;
  display: block;
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}
.svc-item .aside .note {
  font-size: 12px;
  color: var(--ink-600);
  line-height: 1.7;
  padding-top: 16px;
  border-top: 1px dashed var(--ink-200);
  margin-top: 16px;
}
.svc-item.future { opacity: 0.82; }
.svc-item.future .body h3 { color: var(--ink-600); }
@media (max-width: 900px) {
  .svc-item { grid-template-columns: 1fr; gap: 24px; padding: 40px 0; }
  .svc-item .aside { border-left: none; padding-left: 0; border-top: 1px solid var(--ink-200); padding-top: 24px; }
}

/* MESSAGE (Taku) ================== */
.message-section {
  background: var(--dark-bg);
  color: var(--dark-ink);
  padding: calc(var(--section-y) * 1.2) 0 var(--section-y);
  position: relative;
  overflow: hidden;
}
.message-section::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--orange-600) 40%, var(--orange-600) 60%, transparent 100%);
  opacity: 0.5;
}
.message-section .eyebrow { color: rgba(255,255,255,0.5); }
.message-section .container { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.message-section .left { position: sticky; top: 120px; }
.message-section .title {
  font-size: clamp(32px, 3.6vw, 52px);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.3;
  margin: 24px 0 48px;
}
.message-section .title .accent { color: var(--orange-500); }
.message-section .portrait {
  aspect-ratio: 1/1;
  background: #ffffff;
  border: 1px solid rgba(255,255,255,0.18);
  position: relative;
  max-width: 380px;
  overflow: hidden;
}
.message-section .portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  display: block;
}
.message-section .portrait .label {
  position: absolute; bottom: 14px; left: 14px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.55);
  background: rgba(0,0,0,0.5);
  padding: 6px 10px;
}
.message-section .right p {
  font-size: 16px;
  line-height: 2;
  color: rgba(255,255,255,0.85);
  margin: 0 0 24px;
}
.message-section .right p:first-child::first-letter {
  font-family: var(--font-en);
  font-weight: 300;
  font-size: 56px;
  float: left;
  line-height: 0.9;
  padding-right: 12px;
  padding-top: 6px;
  color: var(--orange-500);
}
.message-section .sig {
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.12);
  display: flex;
  gap: 16px;
  align-items: center;
}
.message-section .sig .name {
  font-family: var(--font-en);
  font-weight: 600;
  font-size: 16px;
  color: #fff;
}
.message-section .sig .role {
  font-size: 12px;
  color: rgba(255,255,255,0.55);
  font-family: var(--font-mono);
  letter-spacing: 0.1em;
}

/* Timeline */
.timeline {
  margin-top: 72px;
  padding-top: 48px;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.timeline h4 {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin: 0 0 32px;
  font-weight: 500;
}
.timeline .items { display: flex; flex-direction: column; }
.timeline .t-row {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 24px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  align-items: baseline;
}
.timeline .yr {
  font-family: var(--font-en);
  font-size: 13px;
  color: var(--orange-500);
  font-weight: 500;
  letter-spacing: 0.05em;
}
.timeline .ev {
  font-size: 14px;
  color: rgba(255,255,255,0.85);
  line-height: 1.6;
}
.timeline .ev small { display: block; color: rgba(255,255,255,0.5); font-size: 12px; margin-top: 2px; }

@media (max-width: 900px) {
  .message-section .container { grid-template-columns: 1fr; gap: 48px; }
  .message-section .left { position: static; }
}

/* CASES ============================ */
.cases { background: var(--paper); padding: var(--section-y) 0; }

/* Logo layouts (tweakable) */
.case-logos { margin-bottom: 72px; }
.case-logos .row.three-up {
  grid-template-columns: repeat(3, 1fr);
}
.case-logos .row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
  border-top: 1px solid var(--ink-200);
  border-bottom: 1px solid var(--ink-200);
}
.case-logos .cell {
  height: 120px;
  border-right: 1px solid var(--ink-200);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-en);
  font-weight: 600;
  font-size: 15px;
  color: var(--ink-600);
  transition: background 200ms;
  flex-direction: column;
  gap: 4px;
}
.case-logos .cell:hover { background: var(--paper-2); color: var(--ink-900); }
.case-logos .cell:last-child { border-right: none; }
.case-logos .cell small { font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.1em; color: var(--ink-400); text-transform: uppercase; }

/* Grid variant */
.case-logos.grid .row {
  grid-template-columns: repeat(3, 1fr);
  border-top: none;
  border-bottom: none;
  gap: 0;
}
.case-logos.grid .cell {
  border: 1px solid var(--ink-200);
  margin-left: -1px;
  margin-top: -1px;
  height: 160px;
}

/* Marquee variant */
.case-logos.marquee { overflow: hidden; position: relative; }
.case-logos.marquee .row {
  display: flex;
  grid-template-columns: none;
  animation: marquee 40s linear infinite;
  width: max-content;
  gap: 64px;
  border: none;
}
.case-logos.marquee .cell {
  width: 220px;
  border: none;
  height: 100px;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (max-width: 860px) {
  .case-logos .row { grid-template-columns: repeat(2, 1fr); }
  .case-logos.grid .row { grid-template-columns: repeat(2, 1fr); }
}

/* Case cards */
.case-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.case-card {
  background: #fff;
  border: 1px solid var(--ink-200);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: all 300ms var(--ease);
  cursor: pointer;
}
.case-card:hover { border-color: var(--ink-900); transform: translateY(-4px); }
.case-card .tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--orange-600);
}
.case-card h4 { font-size: 18px; margin: 0; font-weight: 700; line-height: 1.5; letter-spacing: -0.01em; }
.case-card .steps { display: flex; flex-direction: column; gap: 12px; margin-top: 8px; }
.case-card .step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--ink-200);
}
.case-card .step:last-child { border-bottom: none; }
.case-card .step-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--ink-400);
  text-transform: uppercase;
  padding-top: 2px;
}
.case-card .step-text { font-size: 13px; color: var(--ink-800); line-height: 1.7; }

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

/* STATS BAND ============================ */
.stats {
  background: var(--ink-900);
  color: var(--dark-ink);
  padding: 80px 0;
}
.stats .row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.stats .cell {
  padding: 0 32px;
  border-left: 1px solid rgba(255,255,255,0.1);
}
.stats .cell:first-child { padding-left: 0; border-left: none; }
.stats .cell .num {
  font-family: var(--font-en);
  font-size: clamp(40px, 4vw, 56px);
  font-weight: 300;
  color: var(--orange-500);
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.stats .cell .num .unit { font-size: 18px; color: rgba(255,255,255,0.6); margin-left: 4px; }
.stats .cell .label {
  font-size: 13px;
  color: rgba(255,255,255,0.75);
  line-height: 1.6;
}
.stats .cell .placeholder-mark {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--orange-500);
  border: 1px solid var(--orange-500);
  padding: 2px 6px;
  margin-left: 8px;
  letter-spacing: 0.1em;
  vertical-align: middle;
}
@media (max-width: 860px) {
  .stats .row { grid-template-columns: repeat(2, 1fr); gap: 40px 0; }
  .stats .cell { padding: 0 20px; }
  .stats .cell:nth-child(odd) { border-left: none; padding-left: 0; }
}

/* CTA Section ============================ */
.cta {
  background: var(--paper);
  padding: var(--section-y) 0;
  border-top: 1px solid var(--ink-200);
}
.cta .container {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 80px;
  align-items: start;
}
.cta .title {
  font-size: clamp(32px, 4vw, 56px);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.25;
  margin: 20px 0 32px;
}
.cta .title .accent {
  background: linear-gradient(180deg, transparent 62%, rgba(214,90,32,0.3) 62%, rgba(214,90,32,0.3) 90%, transparent 90%);
  padding: 0 4px;
}
.cta .lede { color: var(--ink-600); margin: 0 0 32px; line-height: 1.9; }
.cta .contact-panel {
  background: #fff;
  border: 1px solid var(--ink-200);
  padding: 40px;
}
.cta .contact-panel h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-400);
  margin: 0 0 20px;
  font-weight: 500;
}
.cta .contact-panel .item {
  padding: 18px 0;
  border-bottom: 1px solid var(--ink-200);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.cta .contact-panel .item:last-child { border-bottom: none; }
.cta .contact-panel .item .k {
  font-size: 12px;
  color: var(--ink-600);
  font-family: var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  flex-shrink: 0;
}
.cta .contact-panel .item .v {
  font-size: 15px;
  color: var(--ink-900);
  font-weight: 500;
  text-align: right;
  font-family: var(--font-en);
}
.cta .contact-panel .btn { margin-top: 24px; width: 100%; justify-content: center; }

@media (max-width: 900px) { .cta .container { grid-template-columns: 1fr; gap: 48px; } }

/* COMPANY INFO ============================ */
.company { background: var(--paper-2); padding: var(--section-y) 0; }
.company .grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 1px solid var(--ink-200);
}
.company .row {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 24px;
  padding: 20px 32px 20px 0;
  border-bottom: 1px solid var(--ink-200);
  align-items: baseline;
}
.company .row:nth-child(even) { padding-left: 32px; }
.company .row .k {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-400);
}
.company .row .v { font-size: 15px; color: var(--ink-900); line-height: 1.7; }
.company .row .v .tbd {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--orange-600);
  border: 1px dashed var(--orange-600);
  padding: 2px 8px;
  letter-spacing: 0.08em;
}
@media (max-width: 860px) {
  .company .grid { grid-template-columns: 1fr; }
  .company .row { padding: 20px 0 !important; grid-template-columns: 140px 1fr; }
}

/* ============ Background tweak variants ============ */
body[data-bg="dark-mix"] .why { background: var(--paper); }
body[data-bg="dark-mix"] .services { background: var(--ink-900); color: var(--dark-ink); }
body[data-bg="dark-mix"] .services .section-head .title { color: #fff; }
body[data-bg="dark-mix"] .services .section-head .lede { color: rgba(255,255,255,0.65); }
body[data-bg="dark-mix"] .services .svc-list { border-top-color: rgba(255,255,255,0.1); }
body[data-bg="dark-mix"] .services .svc-item { border-bottom-color: rgba(255,255,255,0.1); }
body[data-bg="dark-mix"] .services .svc-item:hover { background: rgba(214,90,32,0.08); }
body[data-bg="dark-mix"] .services .svc-item .idx { color: rgba(255,255,255,0.4); }
body[data-bg="dark-mix"] .services .svc-item .idx .num { color: #fff; }
body[data-bg="dark-mix"] .services .svc-item .body h3 { color: #fff; }
body[data-bg="dark-mix"] .services .svc-item .body .catch { color: rgba(255,255,255,0.9); }
body[data-bg="dark-mix"] .services .svc-item .body p.desc { color: rgba(255,255,255,0.65); }
body[data-bg="dark-mix"] .services .svc-item .body ul li { color: rgba(255,255,255,0.85); }
body[data-bg="dark-mix"] .services .svc-item .aside { border-left-color: rgba(255,255,255,0.12); }
body[data-bg="dark-mix"] .services .svc-item .aside .price { color: #fff; }
body[data-bg="dark-mix"] .services .svc-item .aside .note { color: rgba(255,255,255,0.55); border-top-color: rgba(255,255,255,0.12); }

/* ============ Tweaks Panel ============ */
#tweaks {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 300px;
  background: var(--paper);
  border: 1px solid var(--ink-900);
  padding: 20px;
  z-index: 200;
  font-family: var(--font-en);
  font-size: 12px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
  display: none;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
}
#tweaks.open { display: block; }
#tweaks h5 {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-900);
  margin: 0 0 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--ink-200);
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
#tweaks h5 .close { cursor: pointer; font-size: 14px; color: var(--ink-600); }
#tweaks .group { margin-bottom: 18px; }
#tweaks .group label {
  display: block;
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-600);
  margin-bottom: 8px;
  font-weight: 500;
}
#tweaks .opts { display: flex; gap: 4px; flex-wrap: wrap; }
#tweaks .opt {
  flex: 1;
  min-width: 60px;
  padding: 8px 10px;
  border: 1px solid var(--ink-200);
  background: #fff;
  font-size: 11px;
  color: var(--ink-600);
  cursor: pointer;
  text-align: center;
  transition: all 150ms;
  font-family: var(--font-en);
}
#tweaks .opt:hover { border-color: var(--ink-900); }
#tweaks .opt.active {
  background: var(--ink-900);
  color: var(--paper);
  border-color: var(--ink-900);
}
#tweaks .swatches { display: flex; gap: 6px; }
#tweaks .swatch {
  width: 28px; height: 28px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 150ms;
}
#tweaks .swatch.active { border-color: var(--ink-900); }


/* ============================================
   PRICING — plan-table (horizontal rows)
   ============================================ */
.pricing-section { background: var(--paper); }
.pricing-section .section-head { max-width: 760px; margin-bottom: 56px; }

.plan-table {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 1120px;
  margin: 0 auto;
}
.plan-row {
  display: grid;
  grid-template-columns: minmax(240px, 1.1fr) minmax(300px, 1.6fr) minmax(220px, 1fr);
  align-items: stretch;
  gap: 0;
  padding: 32px 36px;
  border: 1px solid var(--ink-200);
  background: #fff;
  position: relative;
  transition: transform 200ms, box-shadow 200ms;
}
.plan-row:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(10,15,25,0.06);
}
.plan-row.featured {
  background: var(--ink-900);
  color: #fff;
  border-color: var(--ink-900);
}
.plan-row .plan-ribbon {
  position: absolute;
  top: -10px; left: 36px;
  background: var(--orange-600);
  color: #fff;
  font-family: var(--font-en);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 5px 12px;
  font-weight: 600;
}
.plan-row .plan-left {
  display: flex; flex-direction: column; justify-content: center;
  padding-right: 32px;
  border-right: 1px solid var(--ink-200);
}
.plan-row.featured .plan-left { border-right-color: rgba(255,255,255,0.12); }
.plan-row .plan-name {
  font-family: var(--font-jp);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.3;
  margin-bottom: 6px;
}
.plan-row .plan-desc {
  font-size: 13px;
  color: var(--ink-600);
  line-height: 1.6;
}
.plan-row.featured .plan-desc { color: rgba(255,255,255,0.7); }

.plan-row .plan-includes {
  display: flex; flex-direction: column; justify-content: center;
  padding: 0 32px;
  border-right: 1px solid var(--ink-200);
}
.plan-row.featured .plan-includes { border-right-color: rgba(255,255,255,0.12); }
.plan-row .includes-label {
  font-family: var(--font-en);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--ink-400);
  margin-bottom: 10px;
  font-weight: 500;
}
.plan-row.featured .includes-label { color: rgba(255,255,255,0.45); }
.plan-row .includes-text {
  font-size: 13px;
  line-height: 1.75;
  color: var(--ink-700, #3d4148);
}
.plan-row.featured .includes-text { color: rgba(255,255,255,0.85); }

.plan-row .plan-right {
  display: flex; flex-direction: column; justify-content: center; align-items: flex-end;
  padding-left: 32px;
  text-align: right;
}
.plan-row .price-big {
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 40px;
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--ink-900);
}
.plan-row.featured .price-big { color: #fff; }
.plan-row .price-big.custom {
  font-family: var(--font-jp);
  font-size: 28px;
  letter-spacing: 0.02em;
}
.plan-row .yen-tail {
  font-family: var(--font-jp);
  font-size: 18px;
  font-weight: 500;
  margin-left: 3px;
  color: inherit;
}
.plan-row .price-unit {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--ink-400);
  margin-top: 8px;
}
.plan-row.featured .price-unit { color: rgba(255,255,255,0.55); }

.plan-note {
  max-width: 1120px;
  margin: 28px auto 0;
  font-family: var(--font-jp);
  font-size: 12px;
  color: var(--ink-400);
  line-height: 1.8;
}

.plan-callout {
  max-width: 1120px;
  margin: 64px auto 0;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 0;
  padding: 36px 40px;
  background: var(--orange-50, #FBF1E8);
  border-left: 3px solid var(--orange-600);
  align-items: center;
}
.plan-callout .callout-left .eyebrow {
  display: block;
  font-family: var(--font-en);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--orange-600);
  margin-bottom: 8px;
  font-weight: 600;
}
.plan-callout .callout-left h4 {
  font-family: var(--font-jp);
  font-size: 22px;
  font-weight: 700;
  color: var(--ink-900);
  margin: 0 0 8px;
}
.plan-callout .callout-left p {
  font-size: 13px;
  color: var(--ink-600);
  line-height: 1.7;
  margin: 0;
}
.plan-callout .callout-right { text-align: right; }
.plan-callout .callout-right .price-big {
  font-family: var(--font-en);
  font-size: 32px;
  font-weight: 700;
  color: var(--ink-900);
  line-height: 1;
}
.plan-callout .callout-right .yen-tail {
  font-family: var(--font-jp);
  font-size: 16px;
  font-weight: 500;
}
.plan-callout .callout-right .price-unit {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-400);
  letter-spacing: 0.1em;
  margin-top: 8px;
}

@media (max-width: 960px) {
  .plan-row {
    grid-template-columns: 1fr;
    padding: 28px;
  }
  .plan-row .plan-left, .plan-row .plan-includes {
    border-right: none;
    border-bottom: 1px solid var(--ink-200);
    padding: 0 0 20px 0;
    margin-bottom: 20px;
  }
  .plan-row.featured .plan-left, .plan-row.featured .plan-includes {
    border-bottom-color: rgba(255,255,255,0.12);
  }
  .plan-row .plan-right {
    padding-left: 0;
    align-items: flex-start;
    text-align: left;
  }
  .plan-callout {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .plan-callout .callout-right { text-align: left; }
}


/* ============================================
   MOBILE OPTIMIZATION
   ============================================ */
@media (max-width: 768px) {
  :root { --pad-x: 20px; --section-y: 60px; }

  /* Header */
  .site-header .nav { display: none; }
  .site-header .hamburger { display: flex; }
  .site-header .inner { padding: 12px 20px; }
  .logo img { height: 24px; }

  /* Hero */
  .hero.hero-light { min-height: 520px; height: auto; padding: 100px 0 60px; }
  .hero-light .hero-en { font-size: clamp(36px, 10vw, 54px) !important; line-height: 1.05; }
  .hero-light .hero-jp { font-size: 16px; }
  .hero-light .hero-lede { font-size: 14px; line-height: 1.8; }
  .hero-light .hero-lede br { display: none; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { width: 100%; justify-content: center; }
  .hero-meta-row { flex-direction: column; gap: 4px; align-items: flex-start; }
  .hero-meta { display: none; }

  /* Clients strip */
  .clients-strip .row { flex-wrap: wrap; gap: 14px; }
  .clients-strip .label { font-size: 10px; }

  /* Why cards */
  .why-cards { grid-template-columns: 1fr !important; gap: 16px; }
  .why-card { padding: 28px 24px; }
  .why-card h3 { font-size: 20px; }
  .display-l { font-size: clamp(28px, 7vw, 42px) !important; line-height: 1.2 !important; }
  .section-head { grid-template-columns: 1fr !important; gap: 20px; }
  .lede { font-size: 14px !important; }

  /* Services */
  .svc-item {
    grid-template-columns: 1fr !important;
    gap: 24px;
    padding: 32px 24px;
  }
  .svc-item .idx { border-right: none; padding-right: 0; padding-bottom: 0; }
  .svc-item h3 { font-size: 26px; }
  .svc-item .catch { font-size: 15px; }
  .svc-item .desc { font-size: 14px; }
  .svc-item .aside { padding: 24px; }

  /* Pricing plan-table */
  .plan-row {
    grid-template-columns: 1fr;
    padding: 24px 22px;
    gap: 18px;
  }
  .plan-row .plan-left,
  .plan-row .plan-includes {
    border-right: none !important;
    border-bottom: 1px solid var(--ink-200);
    padding: 0 0 16px 0;
  }
  .plan-row.featured .plan-left,
  .plan-row.featured .plan-includes {
    border-bottom-color: rgba(255,255,255,0.12);
  }
  .plan-row .plan-right {
    padding-left: 0;
    align-items: flex-start;
    text-align: left;
  }
  .plan-row .price-big { font-size: 34px; }
  .plan-row .plan-ribbon { left: 20px; font-size: 9px; }
  .plan-callout {
    grid-template-columns: 1fr;
    padding: 28px 22px;
    gap: 20px;
  }
  .plan-callout .callout-right { text-align: left; }

  /* Message */
  .message-section .container { grid-template-columns: 1fr !important; gap: 32px; }
  .message-section .portrait { max-width: 100%; }
  .message-section .title { font-size: clamp(26px, 7vw, 38px) !important; }
  .message-section .right p { font-size: 14px; line-height: 1.9; }
  .timeline .t-row {
    grid-template-columns: 72px 1fr !important;
    padding: 14px 0;
    font-size: 13px;
  }
  .timeline .yr { font-size: 12px; }

  /* Stats */
  .stats .row { grid-template-columns: repeat(2, 1fr) !important; gap: 24px; }
  .stats .cell { padding: 24px 16px; }
  .stats .num { font-size: 42px !important; }

  /* Cases */
  .case-logos .row,
  .case-logos .row.three-up { grid-template-columns: repeat(2, 1fr) !important; }
  .case-logos .cell { height: 90px; font-size: 12px; padding: 10px; }
  .case-cards { grid-template-columns: 1fr !important; gap: 16px; }
  .case-card { padding: 24px; }
  .case-card h4 { font-size: 16px; line-height: 1.6; }
  .step-text { font-size: 13px; }

  /* CTA */
  .cta .container { grid-template-columns: 1fr !important; gap: 32px; }
  .contact-panel { padding: 28px 24px; }

  /* Company */
  .company .grid { grid-template-columns: 1fr; }
  .company .row {
    grid-template-columns: 110px 1fr !important;
    padding: 16px 0;
    font-size: 13px;
  }
  .company .row .k { font-size: 11px; }

  /* Footer */
  .site-footer .cols {
    grid-template-columns: 1fr 1fr !important;
    gap: 32px;
  }
  .site-footer .brand-block { grid-column: 1 / -1; }
  .site-footer .bottom { flex-direction: column; gap: 12px; align-items: flex-start; font-size: 11px; }

  /* Tweaks panel: hide by default on mobile to avoid clutter */
  #tweaks { transform: translateX(110%); }
  #tweaks.open { transform: translateX(0); }
}

@media (max-width: 480px) {
  .hero-light .hero-en { font-size: 40px !important; }
  .stats .row { grid-template-columns: 1fr 1fr; }
  .plan-row .price-big { font-size: 30px; }
  .site-footer .cols { grid-template-columns: 1fr !important; }
}


/* ============================================
   MOBILE FIXES v10 — verifier findings
   ============================================ */

/* Hide Tweaks panel entirely for production (editor-only UI) */
#tweaks { display: none !important; }

@media (max-width: 768px) {
  /* 1. Partnered with strip: stack label above logos, allow wrap */
  .clients-strip .container {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 10px;
    padding-top: 18px;
    padding-bottom: 18px;
  }
  .clients-strip .row {
    flex-wrap: wrap;
    gap: 14px 18px;
    row-gap: 8px;
  }
  .clients-strip .label {
    font-size: 10px;
    letter-spacing: 0.22em;
  }

  /* 3. Hero kicker meta: keep each kicker on its own line, no mid-phrase break */
  .hero-kicker,
  .hero-kicker-sub {
    white-space: nowrap;
    font-size: 10px;
  }

  /* 4. Japanese subtitle readability over dark photo */
  .hero-light .hero-jp {
    color: #fff !important;
    text-shadow: 0 1px 12px rgba(0,0,0,0.5);
  }
  .hero-light .hero-lede {
    color: rgba(255,255,255,0.92) !important;
    text-shadow: 0 1px 10px rgba(0,0,0,0.45);
  }

  /* Stronger gradient tint under text for contrast */
  .hero-light .photo-tint {
    background:
      linear-gradient(180deg, rgba(7,9,13,0.55) 0%, rgba(7,9,13,0.78) 100%),
      linear-gradient(90deg, rgba(7,9,13,0.72) 0%, rgba(7,9,13,0.42) 70%, rgba(7,9,13,0.22) 100%) !important;
  }
}

/* 5. Hamburger tap target — ensure 44px minimum even under tight header padding */
@media (max-width: 900px) {
  .hamburger {
    min-width: 44px;
    min-height: 44px;
    padding: 12px 10px !important;
    justify-content: center;
    align-items: center;
    gap: 4px;
  }
  .hamburger span {
    width: 22px !important;
    height: 2px !important;
  }
}
