/* Yoin Studios site. One dark look by design: the brand ground is near-black. */
@font-face { font-family: "Outfit"; src: url("fonts/outfit-latin.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Yoin JP"; src: url("fonts/noto-jp-yoin.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+4F59, U+97FB; }

:root {
  --ground: #0b0b0d;
  --ground-2: #131316;
  --line: #2a2628;
  --ink: #f3efe8;
  --grey: #9d958c;
  --crimson: #d7263d;
  --crimson-soft: #e8566a;
  --display: "Outfit", "Yoin JP", "Helvetica Neue", Arial, sans-serif;
  --text: "Outfit", "Yoin JP", "Helvetica Neue", Arial, sans-serif;
  --jp: "Yoin JP", "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;
  --wrap: 1080px;
  --read: 640px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { background: var(--ground); }
body {
  margin: 0; background: var(--ground); color: var(--ink);
  font-family: var(--text); font-weight: 300; font-size: 1.125rem; line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img, video, svg { max-width: 100%; }
a { color: var(--ink); text-decoration-color: var(--crimson); text-underline-offset: 0.25em; text-decoration-thickness: 1px; }
a:hover { color: var(--crimson-soft); }
:focus-visible { outline: 2px solid var(--crimson); outline-offset: 3px; border-radius: 2px; }
.jp { font-family: var(--jp); white-space: nowrap; }

.wrap {
  max-width: var(--wrap); margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
.read { max-width: var(--read); }

/* Header */
.site-head { border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; padding-block: 20px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand svg { width: 34px; height: 34px; }
.brand span { font-family: var(--display); font-weight: 300; font-size: 1.25rem; letter-spacing: 0.32em; }
.nav { display: flex; flex-wrap: wrap; gap: 6px 26px; font-size: 0.95rem; }
.nav a { text-decoration: none; color: var(--grey); padding-block: 6px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav a[aria-current="page"] { box-shadow: inset 0 -1px 0 var(--crimson); }

/* Type */
h1, h2, h3 { font-family: var(--display); font-weight: 300; line-height: 1.15; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); letter-spacing: 0.01em; }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.2rem); }
h3 { font-size: 1.3rem; font-weight: 400; }
p { margin: 0; }
.label { font-size: 0.78rem; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; color: var(--crimson-soft); }
.muted { color: var(--grey); }
.stack { display: flex; flex-direction: column; gap: 18px; }
.stack-lg { display: flex; flex-direction: column; gap: 28px; }

/* Sections */
main { display: block; }
.section { padding-block: clamp(56px, 9vw, 104px); }
.page-top { padding-block: clamp(56px, 9vw, 96px) 0; }

/* Home hero */
.hero { text-align: center; padding-block: clamp(64px, 11vw, 128px) clamp(48px, 8vw, 88px); }
.hero-mark { width: clamp(150px, 26vw, 220px); height: auto; overflow: visible; }
.hero-word { font-family: var(--display); font-weight: 300; font-size: clamp(3rem, 10vw, 5.4rem); letter-spacing: 0.28em; text-indent: 0.28em; line-height: 1; margin-top: 28px; }
.hero-sub { font-family: var(--jp); color: var(--grey); letter-spacing: 0.5em; text-indent: 0.5em; font-size: clamp(0.85rem, 2vw, 1.05rem); margin-top: 18px; }
.hero-sub b { font-family: var(--display); font-weight: 400; }
.hero-line { font-size: clamp(1.25rem, 3vw, 1.6rem); margin: 44px auto 0; max-width: 30ch; text-wrap: balance; }

@media (prefers-reduced-motion: no-preference) {
  .hero-mark .drop { animation: drop 0.6s cubic-bezier(.55,0,1,.45) both, squash 0.7s 0.6s ease-out; transform-box: fill-box; transform-origin: 50% 100%; }
  .hero-mark .r { animation: ripple 1.6s cubic-bezier(.2,.7,.3,1) both; transform-box: fill-box; transform-origin: 50% 50%; }
  .hero-mark .r1 { animation-delay: 0.6s; } .hero-mark .r2 { animation-delay: 1.0s; } .hero-mark .r3 { animation-delay: 1.4s; }
  .hero-word, .hero-sub, .hero-line { animation: rise 1.2s ease-out both; }
  .hero-word { animation-delay: 1.6s; } .hero-sub { animation-delay: 2.1s; } .hero-line { animation-delay: 2.5s; }
}
@keyframes drop { from { transform: translateY(-60%); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes squash { 0% { transform: scale(1.1, .88); } 100% { transform: none; } }
@keyframes ripple { from { transform: scale(.2); opacity: 0; } 60% { transform: scale(1.1); } to { transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* News list */
.posts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.post { border-top: 1px solid var(--line); padding-block: 28px; display: grid; gap: 8px; }
.post:last-child { border-bottom: 1px solid var(--line); }
.post time { font-size: 0.85rem; color: var(--grey); font-variant-numeric: tabular-nums; letter-spacing: 0.06em; }
.post h3 a { text-decoration: none; }
.article { display: flex; flex-direction: column; gap: 22px; }
.article h2 { margin-top: 18px; font-size: 1.5rem; }

/* Two-column text blocks */
.cols { display: grid; gap: 40px; grid-template-columns: 1fr; }
@media (min-width: 800px) { .cols { grid-template-columns: 1fr 1fr; gap: 64px; } }
.cols > * { min-width: 0; }

/* Contact */
.email-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
.email { font-family: var(--display); font-size: clamp(1.4rem, 5vw, 2.4rem); font-weight: 300; text-decoration: none; overflow-wrap: anywhere; }
.copy-btn { background: none; border: 1px solid var(--line); color: var(--grey); border-radius: 999px; font: 400 0.9rem var(--text); padding: 8px 18px; cursor: pointer; }
.copy-btn:hover { color: var(--ink); border-color: var(--grey); }

/* Legal */
.legal h2 { font-size: 1.35rem; margin-top: 12px; }
.legal ul { margin: 0; padding-left: 1.2em; display: flex; flex-direction: column; gap: 8px; }

/* Footer */
.site-foot { border-top: 1px solid var(--line); margin-top: clamp(48px, 8vw, 96px); }
.site-foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 32px; padding-block: 32px 40px; font-size: 0.9rem; color: var(--grey); }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.site-foot a { color: var(--grey); text-decoration: none; }
.site-foot a:hover { color: var(--ink); }

/* Motion loops made with Remotion (site-motion/). They sit behind or beside text and never carry meaning. */
.media { position: relative; overflow: hidden; background: var(--ground-2); }
.media video, .media img.poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; mix-blend-mode: lighten; }
.hero-full { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); background: var(--ground); }
.hero-full > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 100%; mix-blend-mode: lighten; }
.hero-full .hero { position: relative; min-height: min(88svh, 920px); padding-bottom: clamp(110px, 20vh, 240px); display: flex; flex-direction: column; align-items: center; justify-content: center; }
.split { display: grid; grid-template-columns: 1fr; gap: 32px; align-items: center; }
@media (min-width: 860px) { .split { grid-template-columns: 1fr 1fr; gap: 64px; } .split.flip > :first-child { order: 2; } }
.split > * { min-width: 0; }
.frame { aspect-ratio: 16 / 9; max-width: 100%; border: 1px solid var(--line); }
.frame .tag { position: absolute; left: 18px; bottom: 14px; z-index: 1; font-size: 0.75rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--grey); }
.frame .title { position: absolute; left: 18px; top: 16px; z-index: 1; font-size: 0.8rem; letter-spacing: 0.3em; color: var(--ink); }
.site-foot nav a { padding-block: 10px; }

/* Fact list: label on the left, value on the right */
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 0; margin: 8px 0 0; border-top: 1px solid var(--line); }
.facts dt, .facts dd { margin: 0; padding: 12px 0; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--grey); padding-right: 32px; }
