/* SACHIARE corporate — daylight editorial theme. Height Live appears only as a "night window". */
:root {
  --paper: #ece8df;
  --paper-2: #e2ddd2;
  --ink: #121212;
  --ink-2: rgba(18, 18, 18, 0.7);
  --ink-3: rgba(18, 18, 18, 0.6);
  --rule: rgba(18, 18, 18, 0.14);
  --rule-strong: rgba(18, 18, 18, 0.32);
  --night: #0b0b0e;
  --night-text: #e8e4d8;
  --cobalt: #1f45dc;
  --cobalt-on-night: #7b93ff;
  --cobalt-on-paper: #2a43d4;
  --cobalt-glow: rgba(31, 69, 220, 0.5);
  --font-display: 'Archivo', sans-serif;
  --font-jp: 'Zen Kaku Gothic New', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --gutter: clamp(1rem, 4vw, 3rem);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-jp);
  font-size: 15px;
  line-height: 1.95;
  letter-spacing: 0.03em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
::selection { background: var(--ink); color: var(--paper); }
:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 3px; }

.mono { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; }
.dim { color: var(--ink-3); }
.display { font-family: var(--font-display); font-stretch: 125%; font-weight: 800; line-height: 0.95; letter-spacing: -0.02em; }
.chunk { display: inline-block; }
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* HEADER — blur lives on a pseudo-element so the fixed mobile menu is not trapped by backdrop-filter */
.c-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding: 1.1rem var(--gutter);
}
.c-header::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: rgba(236, 232, 223, 0.9);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--rule);
  opacity: 0; transition: opacity 0.4s;
}
.c-header.scrolled::before { opacity: 1; }
.wordmark { font-family: var(--font-display); font-stretch: 125%; font-weight: 600; font-size: 14px; letter-spacing: 0.18em; }
.c-nav { display: flex; align-items: center; gap: 2rem; }
.c-nav a:not(.hl-pill) { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-2); transition: color 0.2s; }
.c-nav a:not(.hl-pill):hover, .c-nav a[aria-current] { color: var(--ink); }
.hl-pill {
  display: inline-flex; align-items: center; gap: 0.55rem;
  background: var(--night); color: var(--night-text);
  border-radius: 999px; padding: 0.6rem 1.15rem;
  font-family: var(--font-display); font-stretch: 125%; font-weight: 700; font-size: 12px; letter-spacing: 0.04em;
  transition: box-shadow 0.3s;
}
.hl-pill::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--cobalt); box-shadow: 0 0 8px var(--cobalt); }
.hl-pill:hover { box-shadow: 0 0 0 4px rgba(59, 91, 255, 0.25); }
.menu-btn { display: none; background: none; border: 1px solid var(--rule-strong); border-radius: 999px; padding: 0.45rem 0.9rem; font: inherit; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; cursor: pointer; color: var(--ink); }

/* TYPE — Japanese headings at 500 with proportional kana; English heads set in Archivo */
.c-title, .c-hero h1, .c-page-hero .sub { font-weight: 500; font-feature-settings: "palt" 1; letter-spacing: 0.01em; }
.c-title { font-size: clamp(1.6rem, 3.8vw, 2.9rem); line-height: 1.45; }
.c-title.h-en { font-family: var(--font-display); font-stretch: 125%; font-weight: 800; letter-spacing: -0.02em; text-transform: uppercase; line-height: 1; }
.lead { max-width: 38rem; color: var(--ink-2); font-size: 15px; line-height: 2.1; }

/* LAYOUT */
.c-section { padding: clamp(5rem, 11vw, 8.5rem) var(--gutter); border-top: 1px solid var(--rule); }
.c-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: clamp(2.5rem, 6vw, 4rem); }

/* HERO */
.c-hero { min-height: 100svh; padding: 7rem var(--gutter) 3rem; display: grid; grid-template-rows: auto 1fr; gap: 2rem; }
.c-hero-body { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: end; }
.c-hero h1 { font-size: clamp(2.4rem, 6.4vw, 6.6rem); line-height: 1.22; }
.c-hero h1 .en { display: block; font-family: var(--font-display); font-stretch: 112%; font-weight: 400; font-size: clamp(0.95rem, 1.4vw, 1.25rem); letter-spacing: 0; margin-top: 1.6rem; color: var(--ink-2); }

/* NIGHT WINDOW — Height Live seen from the paper page */
.night-window {
  display: grid; gap: 1rem;
  background: var(--night); color: var(--night-text);
  padding: 1.25rem;
  transition: transform 0.5s var(--ease), box-shadow 0.5s;
}
.night-window:hover { transform: translateY(-4px); box-shadow: 0 24px 60px -24px rgba(59, 91, 255, 0.6); }
.night-window .windows { min-height: 0; }
.nw-foot { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; }
.nw-foot .display { font-size: clamp(1.1rem, 1.8vw, 1.5rem); }
.nw-foot .mono { color: var(--cobalt-on-night); }

/* VISION */
.vision { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 7vw, 7rem); align-items: start; }

/* HEIGHT LIVE FEATURE */
.hl-feature {
  position: relative; display: grid; grid-template-columns: 1.3fr 1fr; gap: 2rem;
  background: var(--night); color: var(--night-text);
  padding: clamp(2rem, 5vw, 4rem);
  overflow: hidden; isolation: isolate;
  transition: box-shadow 0.5s;
}
.hl-feature:hover { box-shadow: 0 30px 80px -30px rgba(59, 91, 255, 0.55); }
.hl-feature .num { color: var(--cobalt-on-night); }
.hl-feature .display { font-size: clamp(3rem, 9vw, 8rem); margin: 1rem 0 1.25rem; }
.hl-feature p { color: rgba(232, 228, 216, 0.75); max-width: 30rem; }
.hl-feature .enter { display: inline-flex; gap: 0.6rem; margin-top: 2rem; padding-bottom: 0.25rem; border-bottom: 1px solid var(--cobalt); font-family: var(--font-display); font-stretch: 125%; font-weight: 700; }
.hl-feature .enter span { transition: transform 0.3s var(--ease); }
.hl-feature:hover .enter span { transform: translateX(6px); }
.hl-side { display: grid; gap: 1rem; align-content: space-between; }
.windows {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; align-content: end;
  border: 1px solid rgba(232, 228, 216, 0.12); border-bottom: none; padding: 12px;
}
.windows i { display: block; aspect-ratio: 3 / 4; background: #15151a; outline: 1px solid rgba(232, 228, 216, 0.06); transition: background 1.2s, box-shadow 1.2s; }
.windows i.lit { background: var(--cobalt); box-shadow: 0 0 12px var(--cobalt-glow); outline: none; }
.windows i.warm { background: #d9cfae; opacity: 0.5; }
.join-link { margin-top: 1rem; text-align: right; }
.join-link a { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; border-bottom: 1px solid var(--rule-strong); padding-bottom: 0.15rem; }
.join-link a:hover { border-color: var(--ink); }

/* STATUS TAGS */
.status { display: inline-flex; align-items: center; gap: 0.4rem; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; padding: 0.2rem 0.6rem; border-radius: 999px; white-space: nowrap; justify-self: start; align-self: start; }
.status.open { border: 1px solid var(--cobalt-on-night); color: var(--cobalt-on-night); }
.status.prep { border: 1px solid var(--ink); }
.status.plan { border: 1px dashed var(--rule-strong); color: var(--ink-3); }

/* BUSINESS LIST */
.biz-list { list-style: none; border-top: 1px solid var(--rule-strong); margin-top: 2rem; }
.biz-list a {
  display: grid; grid-template-columns: 4rem 1.1fr 1.4fr 9rem 2rem; gap: 1.25rem; align-items: center;
  padding: 1.6rem 0.25rem; border-bottom: 1px solid var(--rule);
  transition: background 0.4s, padding 0.4s var(--ease);
}
.biz-list a:hover { background: var(--paper-2); padding-left: 1rem; }
.biz-list .name { font-family: var(--font-display); font-stretch: 125%; font-weight: 800; font-size: clamp(1.3rem, 2.8vw, 2.3rem); line-height: 1; letter-spacing: -0.01em; }
.biz-list .name small { display: block; font-family: var(--font-jp); font-stretch: normal; font-weight: 500; font-size: 12px; color: var(--ink-3); margin-top: 0.5rem; letter-spacing: 0.04em; }
.biz-list .desc { color: var(--ink-2); font-size: 13px; }
.biz-list .arrow { justify-self: end; transition: transform 0.3s var(--ease); }
.biz-list a:hover .arrow { transform: translateX(4px); }

/* TABLE */
.c-table { width: 100%; border-collapse: collapse; border-top: 1px solid var(--rule-strong); }
.c-table th, .c-table td { text-align: left; vertical-align: top; padding: 1.1rem 0; border-bottom: 1px solid var(--rule); font-weight: 400; }
.c-table th { width: 30%; color: var(--ink-3); font-size: 12px; padding-right: 1.5rem; }

/* CTA */
.c-cta { display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: end; }
.btn-ink {
  display: inline-flex; align-items: center; gap: 0.6rem;
  background: var(--ink); color: var(--paper); border: none; cursor: pointer;
  border-radius: 999px; padding: 1rem 2rem;
  font-family: var(--font-jp); font-weight: 700; font-size: 14px; letter-spacing: 0.04em;
  transition: background 0.3s;
}
.btn-ink:hover { background: var(--cobalt); }

/* SUB PAGES */
.c-page-hero { padding: 9rem var(--gutter) 4rem; }
.c-page-hero .display { font-size: clamp(3.2rem, 12vw, 10.5rem); margin: 1.25rem 0 1.5rem; }
.c-page-hero .sub { font-size: clamp(1.3rem, 3vw, 2.2rem); line-height: 1.5; }
.c-page-hero .meta { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.two { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.items { list-style: none; border-top: 1px solid var(--rule-strong); }
.items li { display: grid; grid-template-columns: 3rem 1fr; gap: 1rem; padding: 1.25rem 0; border-bottom: 1px solid var(--rule); }
.items strong { display: block; font-size: 15px; font-weight: 500; margin-bottom: 0.2rem; }
.items p { color: var(--ink-2); font-size: 14px; }
.note-box { border: 1px dashed var(--rule-strong); padding: 1.25rem 1.5rem; color: var(--ink-2); font-size: 13px; max-width: 44rem; }
.prev-next { display: flex; justify-content: space-between; gap: 1rem; padding: 2rem var(--gutter); border-top: 1px solid var(--rule); }
.prev-next a { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); }
.prev-next a:hover { color: var(--ink); }

/* FORM — 16px inputs keep iOS from zooming on focus */
.form { display: grid; gap: 1.1rem; max-width: 40rem; }
.form label { display: grid; gap: 0.4rem; font-size: 12px; color: var(--ink-2); }
.form input, .form select, .form textarea {
  background: transparent; color: var(--ink);
  border: none; border-bottom: 1px solid var(--rule-strong); border-radius: 0;
  padding: 0.6rem 0; font: inherit; font-size: 16px; outline: none; transition: border-color 0.3s, box-shadow 0.3s;
}
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--cobalt); box-shadow: 0 1px 0 var(--cobalt); }
.form textarea { min-height: 7rem; resize: vertical; }
.form .note { font-size: 12px; color: var(--ink-3); }
.form-status { font-family: var(--font-mono); font-size: 11px; color: var(--cobalt-on-paper); min-height: 1.2em; }
.form-actions { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.btn-text { background: none; border: none; border-bottom: 1px solid var(--rule-strong); color: var(--ink-2); font: inherit; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; padding: 0.2rem 0; cursor: pointer; }
.btn-text:hover { color: var(--ink); border-color: var(--ink); }
.prose { max-width: 44rem; }
.prose h2 { font-size: 16px; font-weight: 500; margin: 2.5rem 0 0.6rem; }
.prose p { color: var(--ink-2); }
.tbd {
  display: inline-block; border: 1px dashed var(--rule-strong); color: var(--ink-3);
  padding: 0.1rem 0.5rem; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.08em;
}

/* FOOTER — the wordmark runs edge to edge */
.c-footer { background: var(--ink); color: rgba(236, 232, 223, 0.72); padding: 4rem var(--gutter) 2.5rem; font-size: 12px; }
.c-footer .wordmark { display: block; color: var(--paper); font-size: clamp(3rem, 14.5vw, 15rem); font-weight: 600; letter-spacing: 0.02em; line-height: 0.8; margin: 0 0 3rem -0.04em; white-space: nowrap; }
.c-footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; border-top: 1px solid rgba(236, 232, 223, 0.18); padding-top: 2rem; }
.c-footer-grid .f-h { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(236, 232, 223, 0.6); margin-bottom: 0.8rem; }
.c-footer-grid ul { list-style: none; display: grid; gap: 0.35rem; }
.c-footer-grid a:hover { color: var(--paper); }
.c-footer .copy { margin-top: 3rem; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; color: rgba(236, 232, 223, 0.6); }

/* RESPONSIVE */
@media (max-width: 900px) {
  .menu-btn { display: inline-block; }
  .c-nav {
    position: fixed; inset: 0; z-index: -1;
    flex-direction: column; justify-content: center; gap: 1.5rem;
    background: var(--paper);
    opacity: 0; visibility: hidden; transition: opacity 0.3s, visibility 0.3s;
  }
  .c-nav a:not(.hl-pill) { font-size: 16px; }
  body.menu-open { overflow: hidden; }
  body.menu-open .c-nav { opacity: 1; visibility: visible; }
  .c-hero { min-height: auto; padding-top: 7.5rem; grid-template-rows: auto auto; gap: 2.5rem; }
  .c-hero h1 { font-size: clamp(2.3rem, 11vw, 3.2rem); }
  .c-hero-body, .vision, .hl-feature, .two, .c-cta { grid-template-columns: 1fr; }
  .biz-list a { grid-template-columns: 2.5rem 1fr 1.2rem; row-gap: 0.6rem; }
  .biz-list .desc, .biz-list .status { grid-column: 2; justify-self: start; }
  .biz-list .arrow { grid-row: 1; grid-column: 3; }
  .join-link { text-align: left; }
  .c-footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* PHOTO NIGHT WINDOW + TWO DOORS */
.nw-photo { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.nw-photo img:first-child { width: 100%; height: 100%; object-fit: cover; object-position: 60% center; transition: transform 1.2s var(--ease); }
.night-window:hover .nw-photo img:first-child { transform: scale(1.04); }
.nw-photo::after { content: ''; position: absolute; inset: 8px; border: 1px solid rgba(232, 228, 216, 0.3); pointer-events: none; }
.nw-logo { position: absolute; top: 18px; left: 18px; width: 38%; }
.hl-stages { list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem 1.25rem; margin-top: 1.5rem; color: rgba(232, 228, 216, 0.7); font-size: 10px; }
.hl-stages li:first-child { color: var(--cobalt-on-night); }
.doors-wrap { padding-top: clamp(3rem, 6vw, 5rem); padding-bottom: clamp(3rem, 6vw, 5rem); }
.doors { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.door { display: flex; flex-direction: column; gap: 1rem; padding: clamp(1.75rem, 4vw, 3rem); min-height: 22rem; transition: transform 0.5s var(--ease), box-shadow 0.5s; }
.door:hover { transform: translateY(-4px); }
.door p { max-width: 28rem; font-size: 14px; }
.door .door-cta { margin-top: auto; font-family: var(--font-display); font-stretch: 125%; font-weight: 700; font-size: 14px; }
.door-night { background: var(--night); color: var(--night-text); }
.door-night .mono { color: var(--cobalt-on-night); }
.door-night p { color: rgba(232, 228, 216, 0.75); }
.door-night:hover { box-shadow: 0 30px 70px -30px var(--cobalt-glow); }
.door-night .door-cta { border-bottom: 1px solid var(--cobalt); align-self: flex-start; padding-bottom: 0.2rem; }
.door-paper { background: var(--paper-2); border: 1px solid var(--rule-strong); }
.door-paper p { color: var(--ink-2); }
.door-paper .door-cta { border-bottom: 1px solid var(--ink); align-self: flex-start; padding-bottom: 0.2rem; }
@media (max-width: 900px) {
  .doors { grid-template-columns: 1fr; }
  .door { min-height: 0; }
}

/* BUSINESS PAGES: photo band, assets, flow, photo pair, big type */
.c-photo { margin: 0 var(--gutter) clamp(3rem, 6vw, 5rem); position: relative; }
.c-photo img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; object-position: 50% 35%; display: block; }
.c-photo figcaption { position: absolute; left: 1rem; bottom: 0.9rem; color: rgba(232, 228, 216, 0.85); font-size: 10px; }
.assets { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--rule-strong); border-left: 1px solid var(--rule); }
.assets > div { border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: 1.75rem 1.5rem 2rem; }
.assets strong { display: block; font-size: 17px; font-weight: 500; margin: 0.7rem 0 0.4rem; }
.assets p { color: var(--ink-2); font-size: 14px; }
.flow { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); counter-reset: none; border-top: 1px solid var(--rule-strong); }
.flow li { padding: 1.5rem 1.25rem 1.75rem 0; border-right: 1px solid var(--rule); position: relative; }
.flow li + li { padding-left: 1.25rem; }
.flow li:last-child { border-right: none; }
.flow li:not(:last-child)::after { content: '→'; position: absolute; right: -0.55rem; top: 1.35rem; background: var(--paper); font-size: 12px; color: var(--ink-3); }
.flow strong { display: block; font-size: 16px; font-weight: 500; margin: 0.6rem 0 0.3rem; }
.flow p { color: var(--ink-2); font-size: 13px; }
.photo-pair { display: grid; grid-template-columns: 1.4fr 1fr; gap: 1rem; }
.photo-pair figure { position: relative; margin: 0; overflow: hidden; background: var(--night); min-height: 20rem; }
.photo-pair img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.photo-pair figure:hover img { transform: scale(1.04); }
.photo-pair figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.1rem 1.2rem 1.3rem; background: linear-gradient(to top, rgba(11, 11, 14, 0.88), transparent); color: var(--night-text); display: grid; gap: 0.2rem; }
.photo-pair figcaption .dim { color: rgba(232, 228, 216, 0.7); }
.photo-pair figcaption strong { font-weight: 500; font-size: 17px; }
.big-type { display: block; padding: clamp(2rem, 5vw, 4rem) var(--gutter); border-top: 1px solid var(--rule); font-family: var(--font-display); font-stretch: 125%; font-weight: 800; font-size: clamp(2.4rem, 8.5vw, 8rem); line-height: 0.95; letter-spacing: -0.02em; }
.big-type .arrow { color: var(--cobalt-on-paper); font-weight: 400; margin-left: 0.15em; }
.two .c-title:not(.h-en) { font-size: clamp(1.5rem, 2.9vw, 2.4rem); }
@media (max-width: 900px) {
  .assets, .photo-pair { grid-template-columns: 1fr; }
  .flow { grid-template-columns: 1fr 1fr; }
  .flow li:nth-child(2) { border-right: none; }
  .flow li:nth-child(2)::after { display: none; }
  .flow li:nth-child(3) { padding-left: 0; }
  .c-photo img { aspect-ratio: 4 / 3; }
}

/* LANGUAGE SWITCH */
.c-nav a.lang-switch { border: 1px solid var(--rule-strong); border-radius: 999px; padding: 0.35rem 0.75rem; }
.c-nav a.lang-switch:hover { border-color: var(--ink); }

/* English hero: keep each sentence on one line */
html[lang="en"] .c-hero h1 { font-size: clamp(2.1rem, 4.6vw, 4.9rem); line-height: 1.12; }
html[lang="en"] .c-hero h1 .en { font-family: var(--font-jp); font-stretch: normal; }
