@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: block;
  src: url('./fonts/inter-var.woff2') format('woff2');
}

@font-face {
  font-family: 'Noto Sans JP';
  font-style: normal;
  font-weight: 400 700;
  font-display: block;
  src: url('./fonts/noto-sans-jp-var.woff2') format('woff2');
}

@font-face {
  font-family: 'M PLUS 1p';
  font-style: normal;
  font-weight: 800;
  font-display: block;
  src: url('./fonts/m-plus-1p-800.woff2') format('woff2');
}

:root {
  --bg: #111214;
  --text: #f4f4f5;
  --text-muted: #a1a1aa;
  --text-dim: #80808a;
  --accent: #ffd010;
  --paper: #ffffff;
  --paper-ink: #141518;
  --paper-sub: #3f3f46;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  background-color: var(--bg);
  color: var(--text);
  font-family: 'Inter', 'Noto Sans JP', -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  height: 100dvh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
}

[hidden] {
  display: none !important;
}

.q-phrase {
  display: inline-block;
}

/* Background Ember Canvas (z-index: 0) */
.ember-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* Fixed Minimal Header (z-index: 20) */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  padding: 32px 48px;
}

.header-inner {
  max-width: 1360px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  color: #ffffff;
}

.brand-mark {
  height: 0.727em;
  height: 1cap;
  width: auto;
  display: block;
}

.brand-wordmark {
  margin: 0;
  font-family: 'Inter', sans-serif;
  font-size: 1em;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.08em;
  color: #ffffff;
}

/* Navigation: Single #FFD010 45° '/' glides to the active item */
.site-nav {
  position: relative;
  display: flex;
  align-items: center;
  gap: 28px;
  padding-left: 18px;
}

.nav-active-slash {
  position: absolute;
  left: 0;
  top: 50%;
  height: 0.73em;
  height: 1cap;
  width: auto;
  aspect-ratio: 19.4 / 16;
  display: block;
  pointer-events: none;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  opacity: 0;
  transform: translate3d(0, -50%, 0);
  transition: none;
}

.nav-active-slash.is-animated {
  transition: transform 0.24s cubic-bezier(0.22, 1, 0.36, 1);
}

.nav-item {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.03em;
  color: var(--text-dim);
  text-decoration: none;
  padding: 12px 0;
  transition: color 0.18s ease;
}

.nav-item:hover {
  color: var(--text-muted);
}

.nav-item.is-active {
  color: #ffffff;
  font-weight: 600;
}

/* Center Stage: Single Focal Presentation Between Fixed Header & Footer (z-index: 10) */
.center-stage {
  position: relative;
  z-index: 10;
  flex: 1;
  width: 100%;
  max-width: 1360px;
  margin: 0 auto;
  padding: 96px 48px 80px;
  display: grid;
  place-items: center;
  overflow-y: auto;
}

.stage-view {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.24s ease;
}

.stage-view.is-visible {
  opacity: 1;
}

.stage-view.is-fading-out {
  opacity: 0;
  transition: opacity 0.14s ease;
}

/* View 1: Studio (Pure Subtraction — Quote & Attribution Only) */
.quote-focus {
  margin: 0;
  max-width: 680px;
  text-align: center;
}

.studio-quote {
  margin: 0;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: clamp(15px, 1.5vw, 20px);
  font-weight: 500;
  line-height: 2.35;
  letter-spacing: 0.07em;
  color: #f4f4f5;
}

.studio-cite {
  margin-top: 28px;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.14em;
  color: var(--text-dim);
}

/* View 2: Product (Crisp White on Touch; Solid Dimmed Rest -> Crisp Lit Hover on Fine Pointer) */
.pachi-card {
  width: 100%;
  max-width: 480px;
  background-color: #ffffff;
  color: var(--paper-ink);
  border-radius: 14px;
  padding: 36px 38px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 22px;
  cursor: pointer;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.65);
  transition: background-color 0.26s ease, box-shadow 0.26s ease;
}

@media (hover: hover) and (pointer: fine) {
  .pachi-card {
    background-color: #c6c7cc;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  }

  .pachi-card:hover,
  .pachi-card:focus-visible {
    background-color: #ffffff;
    box-shadow: 0 24px 56px rgba(0, 0, 0, 0.75);
  }
}

.pachi-card-identity {
  display: flex;
  align-items: center;
  gap: 16px;
}

.bee-mark {
  height: 40px;
  width: auto;
  aspect-ratio: 18.725 / 22.505;
  display: block;
  flex-shrink: 0;
}

.pachi-card-titles {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 40px;
}

.pachi-card-kicker {
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.04em;
  color: var(--paper-sub);
  margin: 0;
}

.pachi-card-title {
  margin: 0;
  font-family: 'M PLUS 1p', 'Noto Sans JP', sans-serif;
  font-size: 26px;
  font-weight: 800;
  line-height: 0.92;
  color: var(--paper-ink);
}

.pachi-card-desc {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.9;
  color: #27272a;
}

/* View 3: Principles (4-Column Centered Dialectic Sequence — Zero Cards) */
.principles-columns {
  width: auto;
  max-width: 100%;
  display: grid;
  grid-template-columns: repeat(4, max-content);
  justify-content: center;
  column-gap: 48px;
  row-gap: 28px;
  align-items: start;
}

.principle-item {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.principle-index {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--text-dim);
}

.principle-phrase {
  margin: 0;
  font-family: 'Inter', sans-serif;
  font-size: clamp(17px, 1.4vw, 19.5px);
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: 0.01em;
  color: #b4b6be;
}

.principle-item.is-conclusion .principle-phrase {
  color: #ffffff;
  font-weight: 600;
}

.principle-author {
  font-family: 'Inter', sans-serif;
  font-size: 11.5px;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--text-dim);
}

/* View 4: Contact (Pure Borderless Typography — Zero Cards, Zero Underlines) */
.contact-focus {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.rep-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.rep-name {
  margin: 0;
  font-family: 'Inter', sans-serif;
  font-size: clamp(20px, 2vw, 24px);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #ffffff;
}

.rep-role {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: 'Inter', sans-serif;
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.14em;
  color: var(--text-dim);
}

.role-slash {
  height: 0.73em;
  height: 1cap;
  width: auto;
  aspect-ratio: 19.4 / 16;
  display: block;
  flex-shrink: 0;
}

.mail-address {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.18s ease;
}

.mail-address:hover {
  color: #ffffff;
}

/* Fixed Centered Minimal Footer (z-index: 20) */
.site-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 20;
  padding: 24px;
  text-align: center;
  pointer-events: none;
}

.footer-text {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--text-dim);
}

/* Responsive Adjustments: Tablet & Landscape Mobile (2x2 Grid) */
@media (max-width: 1080px) {
  .principles-columns {
    grid-template-columns: repeat(2, minmax(0, max-content));
    column-gap: 44px;
    row-gap: 28px;
  }
}

/* Portrait Mobile (1-Column Stack, 44px Touch Targets & Optically Centered Symmetric Nav) */
@media (max-width: 640px) and (orientation: portrait) {
  .site-header {
    padding: 18px 18px 4px;
  }

  .header-inner {
    flex-direction: column;
    align-items: center;
    gap: 0;
  }

  .brand-lockup {
    padding: 6px 0;
  }

  .site-nav {
    gap: 15px;
    padding-left: 18px;
    padding-right: 18px;
  }

  .nav-active-slash {
    font-size: 12px;
  }

  .nav-item {
    font-size: 12px;
    padding: 16px 0;
  }

  .center-stage {
    padding: 104px 22px 64px;
  }

  .quote-focus {
    max-width: 320px;
  }

  .pachi-card {
    padding: 26px 24px 24px;
  }

  .principles-columns {
    grid-template-columns: 1fr;
    max-width: 340px;
    row-gap: 24px;
  }

  .principle-item {
    gap: 6px;
  }

  .site-footer {
    padding: 16px;
  }
}

@media (max-width: 359px) and (orientation: portrait) {
  .site-nav {
    gap: 10px;
    padding-left: 15px;
    padding-right: 15px;
  }

  .nav-active-slash,
  .nav-item {
    font-size: 11px;
  }
}

/* Short Landscape Mobile Viewports (e.g. 844x390) */
@media (max-height: 500px) {
  .site-header {
    padding: 10px 28px;
  }

  .center-stage {
    padding: 58px 28px 42px;
  }

  .studio-cite {
    margin-top: 16px;
  }

  .pachi-card {
    padding: 22px 26px;
    gap: 14px;
  }

  .principles-columns {
    row-gap: 18px;
    column-gap: 36px;
  }

  .principle-item {
    gap: 5px;
  }

  .site-footer {
    padding: 10px 16px;
  }
}

/* Respect Reduced Motion Across All Transitions */
@media (prefers-reduced-motion: reduce) {
  .nav-active-slash.is-animated,
  .stage-view,
  .stage-view.is-fading-out,
  .pachi-card,
  .nav-item,
  .mail-address {
    transition: none !important;
  }
}
