/* The Beckoning Cat — home splash (publish-ready) */

:root {
  --washi: #fafafa;
  --washi-deep: #f5f5f5;
  --ink: #1c2430;
  --ink-soft: #3d4a5c;
  --indigo: #1e3a5f;
  --indigo-deep: #14283f;
  --vermillion: #c45c4a;
  --vermillion-soft: #d47a6a;
  --sakura: #f0c4c8;
  --sakura-deep: #e8a8b0;
  --gold: #c4a35a;
  --card: #ffffff;
  --shadow: 0 12px 40px rgba(20, 40, 63, 0.08);
  --radius: 18px;
  --font-display: "Shippori Mincho", "Noto Serif JP", Georgia, serif;
  --font-body: "Zen Kaku Gothic New", "Noto Sans JP", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: clip;
  overflow-wrap: anywhere;
  background:
    radial-gradient(ellipse 70% 45% at 8% -8%, rgba(240, 196, 200, 0.18), transparent 55%),
    radial-gradient(ellipse 55% 35% at 100% 0%, rgba(196, 163, 90, 0.08), transparent 50%),
    var(--washi);
}

a {
  color: var(--indigo);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--vermillion);
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
}
.skip:focus {
  left: 1rem;
  top: 1rem;
  z-index: 100;
  background: white;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
}

/* —— Header / nav —— */
.site-header {
  position: static;
  z-index: auto;
  background: transparent;
  border-bottom: none;
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.55rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  position: relative;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--indigo-deep);
  min-width: 0;
  flex: 1 1 auto;
}

.brand-mark {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  object-fit: contain;
  border-radius: 8px;
}

.brand-text {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  min-width: 0;
}

.brand-text > span:first-child[data-i18n="brand"] {
  display: block;
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  color: inherit;
  letter-spacing: inherit;
  text-transform: none;
  line-height: inherit;
}

.brand-text > span:last-of-type {
  display: block;
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 400;
  color: var(--ink-soft);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.35;
  white-space: normal;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.9rem;
  justify-content: flex-end;
}

.nav a {
  font-size: 0.88rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--ink-soft);
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--indigo);
  border-bottom-color: var(--sakura-deep);
}

.nav a.nav-live {
  color: var(--vermillion);
  font-weight: 600;
}

/* —— Hero —— */
.hero {
  max-width: 1180px;
  margin: 0 auto;
  padding: 1.1rem 1.1rem 1rem;
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); /* ~62/38 text/cat */
  gap: 1.15rem;
  align-items: center;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--vermillion);
  margin-bottom: 0.75rem;
}

.hero-kicker::before {
  content: "";
  width: 1.5rem;
  height: 2px;
  background: var(--gold);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 2.85rem);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.012em;
  color: var(--indigo-deep);
  margin: 0 0 0.85rem;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

.hero-subhead {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-style: italic;
  font-weight: 500;
  color: var(--ink-soft);
  margin: 0 0 1rem;
  max-width: none;
  line-height: 1.45;
}

.hero-body {
  margin: 0 0 0.25rem;
  color: var(--ink);
  max-width: none;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.2rem;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--indigo);
  color: #fff;
  box-shadow: 0 8px 20px rgba(30, 58, 95, 0.22);
}

.btn-primary:hover {
  background: var(--indigo-deep);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: var(--indigo);
  border-color: rgba(30, 58, 95, 0.25);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.6);
  color: var(--indigo-deep);
}

.hero-art {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 0;
  width: 100%;
}

.hero-art-frame {
  /* sticker mount — fill the art column, less empty margin */
  width: min(100%, 460px);
  aspect-ratio: 1;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  display: grid;
  place-items: center;
  position: relative;
  overflow: visible;
  animation: none;
}

.hero-art-frame::after {
  content: none;
  display: none;
}

.hero-cat {
  width: 100%;
  height: auto;
  max-height: 460px;
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 10px 22px rgba(28, 36, 48, 0.14));
  position: relative;
  z-index: 0;
  background: transparent;
}

/* —— Sections —— */
main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem 2rem;
}

.section {
  margin-top: 1.35rem;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid rgba(30, 58, 95, 0.12);
}

.section-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--indigo-deep);
}

.section-subhead {
  margin: 1.75rem 0 1rem;
  padding-bottom: 0.45rem;
  border-bottom: 1px solid rgba(30, 58, 95, 0.1);
}

.section-subhead h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--indigo-deep);
}

.panel {
  background: var(--card);
  border-radius: var(--radius);
  padding: 1.35rem 1.4rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(30, 58, 95, 0.06);
}

.panel p {
  margin: 0;
}

.panel p + p {
  margin-top: 0.85rem;
}

.profile-label {
  display: block;
  font-family: var(--font-display);
  color: var(--indigo-deep);
  margin-bottom: 0.45rem;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.focus-chips {
  list-style: none;
  margin: 0.5rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem 0.65rem;
  align-content: start;
  min-height: 0;
}

.focus-chips li {
  font-size: 0.82rem;
  font-weight: 500;
  color: #f7f1e8;
  background: var(--indigo);
  border: none;
  border-radius: 10px;
  padding: 0.55rem 0.65rem;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1.25;
  min-height: 2.75rem;
  box-sizing: border-box;
  cursor: default;
  user-select: none;
  box-shadow: none;
}

@media (max-width: 860px) {
  .focus-chips {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    min-height: 0;
  }
}

/* —— Card grid (Current Projects) —— */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem 1.5rem;
  align-items: start;
}

.card {
  background: transparent;
  border-radius: 0;
  padding: 0.15rem 0 0.35rem;
  border: none;
  border-top: 2px solid rgba(30, 58, 95, 0.18);
  box-shadow: none;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  transition: border-color 0.15s ease, color 0.15s ease;
  position: relative;
  overflow: visible;
  min-width: 0;
}

.card::before {
  content: none;
  display: none;
}

.card:hover {
  transform: none;
  border-top-color: var(--vermillion);
  color: inherit;
}

.card:focus-visible {
  outline: 2px solid var(--indigo);
  outline-offset: 4px;
}

.card-icon {
  display: none !important;
}

.card h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.18rem;
  line-height: 1.3;
  color: var(--indigo-deep);
  overflow-wrap: anywhere;
}

.card .card-subtitle {
  margin: -0.15rem 0 0;
  font-size: 0.82rem;
  line-height: 1.4;
  font-weight: 500;
  font-style: italic;
  color: var(--indigo);
  overflow-wrap: anywhere;
}


.card .card-meta {
  display: inline-block;
  margin: 0.35rem 0 0;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  font-size: 0.7rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--indigo);
  line-height: 1.2;
}

.card p {
  margin: 0;
  flex: 1 1 auto;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--ink-soft);
  overflow-wrap: anywhere;
}

.card .card-cta {
  margin-top: 0.35rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--indigo);
  letter-spacing: 0.01em;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

.card:hover .card-cta,
.card:hover h3 {
  color: var(--vermillion);
}

.card.live {
  border-color: rgba(30, 58, 95, 0.18);
}

.card.live .card-meta {
  color: var(--indigo);
  background: transparent;
}

.card.draft .card-meta {
  color: #8a6f2e;
  background: transparent;
  border: none;
}

/* Artful media strip (Fun Builds — East Gate Merge) */
.card--media {
  overflow: hidden;
  border: none;
  border-top: none;
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: 0 14px 42px rgba(20, 40, 63, 0.12);
  padding: 0;
  gap: 0;
  transition: box-shadow 0.22s ease, transform 0.22s ease;
}

.card--media:hover {
  border-top-color: transparent;
  box-shadow: 0 18px 48px rgba(20, 40, 63, 0.16);
  transform: translateY(-2px);
}

.card-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  margin: 0;
  background: linear-gradient(145deg, var(--indigo-deep), #2a4a72);
}

.card-media::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 28%;
  pointer-events: none;
  background: linear-gradient(to top, rgba(247, 241, 232, 0.92), rgba(247, 241, 232, 0));
}

.card-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.4s ease;
}

.card--media:hover .card-media img {
  transform: scale(1.045);
}

.card-body {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 0.85rem 1.05rem 1.05rem;
}

.card-body > .card-meta {
  margin-top: 0;
}

/* —— Japan ribbon —— */
.japan-ribbon {
  margin-top: 1.5rem;
  padding: 0.95rem 1.25rem;
  border-radius: var(--radius);
  background: linear-gradient(105deg, var(--indigo) 0%, #2a4a72 55%, #3a5f7a 100%);
  color: #f7f1e8;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
  box-shadow: 0 10px 28px rgba(20, 40, 63, 0.18);
}

.japan-ribbon .path {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
  white-space: nowrap;
  padding-top: 0.15rem;
}

.japan-ribbon .path .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--sakura);
}

.japan-ribbon-copy {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-width: 0;
}

.japan-ribbon-copy p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.6;
  color: rgba(247, 241, 232, 0.95);
  overflow-wrap: anywhere;
}

/* —— Footer —— */
.site-footer {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.15rem 1.25rem 1.75rem;
  border-top: 1px solid rgba(30, 58, 95, 0.1);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.site-footer a {
  color: var(--indigo);
}

/* —— Responsive —— */
@media (max-width: 860px) {
  .header-inner {
    padding: 0.65rem 1rem;
    gap: 0.55rem;
    flex-wrap: nowrap;
    flex-direction: row;
    align-items: center;
  }
  .brand {
    gap: 0.55rem;
  }
  .brand-mark {
    width: 36px;
    height: 36px;
  }
  .brand-text {
    font-size: 1rem;
  }
  .brand-text > span:last-of-type {
    font-size: 0.62rem;
    letter-spacing: 0.03em;
  }
  .nav-toggle {
    display: inline-flex;
    flex-shrink: 0;
  }
  .hero {
    grid-template-columns: 1fr;
    padding: 1.1rem 1rem 1.25rem;
    gap: 1.1rem;
  }
  .hero-art {
    order: -1;
    min-height: 0;
  }
  .hero-art-frame {
    width: min(72vw, 260px);
  }
  .hero-cat {
    max-height: 260px;
  }
  .hero h1 {
    font-size: clamp(1.55rem, 6.5vw, 2.05rem);
    line-height: 1.2;
    letter-spacing: -0.01em;
    margin-bottom: 0.65rem;
  }
  .hero-kicker {
    margin-bottom: 0.55rem;
    letter-spacing: 0.05em;
    white-space: normal;
  }
  .hero-subhead {
    font-size: 1rem;
    max-width: none;
    margin-bottom: 0.9rem;
  }
  .hero-body {
    max-width: none;
  }
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
  }
  .hero-actions .btn {
    width: 100%;
  }
  .two-col,
  .card-grid {
    grid-template-columns: 1fr;
  }
  .japan-ribbon {
    grid-template-columns: 1fr;
    margin-top: 1.1rem;
    padding: 1rem 1.05rem;
    gap: 0.7rem;
  }
  .japan-ribbon .path {
    white-space: normal;
    padding-top: 0;
  }
  .panel {
    padding: 1.1rem 1.05rem;
  }
  .section {
    margin-top: 1.15rem;
  }
  .section-head h2 {
    font-size: 1.28rem;
  }
  .focus-chips {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
  }
  .focus-chips li {
    min-height: 2.5rem;
    padding: 0.5rem 0.55rem;
    font-size: 0.78rem;
    line-height: 1.3;
  }
  .card {
    padding: 1.05rem 1.05rem 1.15rem;
  }
  .site-footer {
    padding: 1.1rem 1rem 1.6rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
  }
  .nav {
    display: none;
  }
  .nav.open {
    display: flex;
    left: 1rem;
    right: 1rem;
    top: calc(100% + 0.35rem);
    width: auto;
  }
}

@media (min-width: 861px) {
  .nav-toggle {
    display: none;
  }
  .card-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 861px) and (max-width: 980px) {
  .nav a {
    font-size: 0.8rem;
  }
}

.nav-toggle {
  border: 1.5px solid rgba(30, 58, 95, 0.2);
  background: white;
  border-radius: 10px;
  padding: 0.4rem 0.65rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--indigo);
  cursor: pointer;
}

.nav.open {
  display: flex;
  position: absolute;
  right: 1.25rem;
  top: 3.6rem;
  flex-direction: column;
  background: #ffffff;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(30, 58, 95, 0.08);
  z-index: 60;
}


/* Page language icon (shared menu) in transparent splash header */
.header-inner > .page-lang-menu {
  flex-shrink: 0;
}
.page-lang-menu__btn {
  color: var(--indigo-deep);
}
@media (max-width: 720px) {
  .header-inner > .page-lang-menu {
    margin-inline-start: auto;
  }
}


/* —— Desktop whitespace tighten 2026-09-25 —— */
@media (min-width: 901px) {
  .hero {
    padding: 1rem 1.1rem 0.85rem;
    gap: 1.1rem;
    grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); /* ~63/37 */
  }
  .hero-art {
    min-height: 0;
  }
  .hero-art-frame {
    width: min(100%, 440px);
  }
  .hero-cat {
    max-height: 440px;
  }
  .section {
    margin-top: 1.2rem;
  }
  .section-head {
    margin-bottom: 0.75rem;
    padding-bottom: 0.4rem;
  }
  .panel {
    padding: 1.1rem 1.2rem;
  }
  main {
    padding-bottom: 1.75rem;
  }
}


/* —— Phone tighten —— */
@media (max-width: 480px) {
  .header-inner {
    padding: 0.55rem 0.85rem;
  }
  .brand-text > span:last-of-type {
    max-width: 11.5rem;
  }
  .hero {
    padding: 0.85rem 0.85rem 1.1rem;
  }
  main {
    padding: 0 0.85rem 1.6rem;
  }
  .hero h1 {
    font-size: clamp(1.4rem, 7.2vw, 1.85rem);
  }
  .focus-chips {
    grid-template-columns: 1fr;
  }
  .focus-chips li {
    justify-content: flex-start;
    text-align: left;
    padding-inline: 0.85rem;
  }
  .japan-ribbon-copy p {
    font-size: 0.88rem;
  }
}

/* —— Small tablet —— */
@media (min-width: 481px) and (max-width: 860px) {
  .focus-chips {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .card-grid {
    grid-template-columns: 1fr;
  }
}







/* Current Projects — responsive, no card boxes */
@media (max-width: 860px) {
  #projects .card-grid {
    grid-template-columns: 1fr;
    gap: 1.15rem;
  }
  #projects .card {
    padding-top: 0.7rem;
    padding-bottom: 0.55rem;
  }
}

@media (min-width: 700px) and (max-width: 860px) {
  #projects .card-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  #projects .card h3 {
    font-size: 1.08rem;
  }
  #projects .card p {
    font-size: 0.88rem;
  }
}

