/* Responsive design, permanent dark palette, brand identity and motion. Order: 2 / 3. */

/* ========================================================================== 
   V1.1 DESIGN REFINEMENT — CONSISTENT SPACING, RESPONSIVE TYPE AND MOTION
   ========================================================================== */

:root {
  --page-edge: clamp(20px, 4vw, 64px);
  --section-space: clamp(82px, 8vw, 128px);
}

.container {
  width: min(1360px, calc(100% - var(--page-edge) - var(--page-edge)));
}

html {
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  min-width: 280px;
}

h1,
h2,
h3,
p {
  min-width: 0;
}

button,
a {
  touch-action: manipulation;
}

img,
video {
  max-width: 100%;
}

.intro-loader {
  display: none;
}

.js-enabled .intro-loader:not([hidden]) {
  display: flex;
}

.intro-loader[hidden] {
  display: none !important;
}

/* The loading screen and below-the-fold content remain usable without JS. */

[data-reveal] {
  opacity: 1;
  transform: none;
}

.js-enabled [data-reveal]:not(.is-revealed) {
  opacity: 0;
  transform: translate3d(0, 20px, 0);
}

.js-enabled [data-reveal].is-revealed {
  opacity: 1;
  transform: none;
}

.js-enabled [data-reveal] {
  transition: opacity 650ms var(--ease), transform 650ms var(--ease);
}

body[data-motion="reduced"] [data-reveal],
body[data-motion="reduced"] [data-reveal]:not(.is-revealed) {
  opacity: 1;
  transform: none;
  transition: none;
}

.site-header {
  transition: background-color 240ms ease, box-shadow 240ms ease;
}

.header-inner {
  gap: clamp(16px, 2vw, 34px);
}

.desktop-nav {
  min-width: 0;
}

.hero__title {
  max-width: min(100%, 760px);
  font-size: clamp(84px, 10.5vw, 174px);
  line-height: 0.84;
}

.hero__description {
  max-width: 40ch;
  line-height: 1.8;
}

.hero__ctas {
  row-gap: 16px;
}

.ticker__track {
  animation-duration: 48s;
}

.ticker:hover .ticker__track {
  animation-play-state: paused;
}

.intro__inner {
  min-width: 0;
}

.intro__inner > * {
  min-width: 0;
}

/* Tablet landscape / small laptop: protect headings from colliding. */

@media (max-width: 1100px) {
  .intro__inner {
    gap: clamp(26px, 4vw, 58px);
  }
  .intro__headline {
    font-size: clamp(54px, 5.9vw, 72px);
  }
}

/* Tablet portrait: switch to readable full-width content columns. */

@media (max-width: 840px) {
  .intro__inner {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 38px;
  }
  .intro__text {
    width: min(100%, 640px);
  }
  .intro__composition {
    width: 100%;
    min-height: 0;
    height: clamp(400px, 68vw, 650px);
    margin-top: 0;
  }
  .intro__picture-frame {
    inset: 28px 24px 46px 16px;
  }
  .intro__headline {
    font-size: clamp(56px, 9vw, 91px);
  }
}

/* Smartphone: balanced composition, legible tab titles, safe content height. */

@media (max-width: 640px) {
  :root {
    --page-edge: 20px;
    --section-space: 78px;
  }
  .site-header {
    height: 68px;
  }
  .mobile-menu {
    top: 68px;
    height: calc(100dvh - 68px);
    padding: 38px var(--page-edge);
  }
  .header-inner {
    width: calc(100% - 36px);
    gap: 10px;
  }
  .brand__caption {
    font-size: 7px;
    letter-spacing: 0.1em;
  }
  .hero {
    min-height: max(730px, 100svh);
    height: auto;
    max-height: none;
  }
  .hero__content {
    height: auto;
    min-height: max(730px, 100svh);
    justify-content: flex-end;
    padding-top: 175px;
    padding-bottom: 100px;
  }
  .hero__visual {
    width: 100%;
    height: 67%;
  }
  .hero__title {
    font-size: clamp(63px, 18vw, 103px);
    line-height: 0.84;
    letter-spacing: -0.055em;
  }
  .hero__eyebrow {
    font-size: 9px;
    gap: 10px;
    margin-bottom: 22px;
    letter-spacing: 0.11em;
  }
  .hero__description {
    font-size: 12px;
    line-height: 1.75;
    margin-block: 22px;
    max-width: 38ch;
  }
  .hero__ctas {
    gap: 16px;
  }
  .hero__bottom {
    bottom: 18px;
    left: var(--page-edge);
    right: var(--page-edge);
  }
  .hero__vertical-word,
  .hero__vertical-line {
    opacity: 0.7;
  }
  .intro {
    padding-top: 80px;
  }
  .intro__inner {
    gap: 28px;
  }
  .intro__headline {
    font-size: clamp(47px, 12.5vw, 78px);
    line-height: 0.98;
  }
  .intro__composition {
    height: clamp(360px, 110vw, 500px);
    margin-top: 10px;
  }
  .intro__picture-frame {
    inset: 16px 16px 42px 8px;
  }
  .end-section {
    padding-block: 90px;
  }
  .end-section p {
    font-size: clamp(43px, 10vw, 72px);
  }
  .footer__main {
    gap: 38px;
  }
  .footer__links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
  }
  .footer__bottom {
    line-height: 1.7;
  }
}

/* Extra-small devices: avoid button and category label collisions. */

@media (max-width: 380px) {
  :root {
    --page-edge: 16px;
  }
  .header-inner {
    width: calc(100% - 26px);
  }
  .header-actions {
    gap: 3px;
  }
  .brand__caption {
    font-size: 6px;
  }
  .menu-button {
    width: 32px;
    height: 36px;
  }
  .hero__title {
    font-size: clamp(58px, 18vw, 70px);
  }
  .hero__content {
    padding-bottom: 98px;
  }
  .hero__ctas {
    flex-direction: column;
    align-items: flex-start;
  }
  .hero__vertical-word,
  .hero__vertical-line {
    display: none;
  }
  .intro__headline {
    font-size: clamp(45px, 12vw, 55px);
  }
  .footer__brand strong {
    font-size: 53px;
  }
}

/* Short mobile screens need content-based height rather than clipped hero. */

@media (max-width: 640px) and (max-height: 680px) {
  .hero,
  .hero__content {
    min-height: 750px;
  }
  .hero__visual {
    height: 63%;
  }
}

@media (hover: none) {
  .button:hover,
.back-top:hover {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .js-enabled [data-reveal]:not(.is-revealed) {
    opacity: 1;
    transform: none;
  }
}

/* -------------------------------------------------------------------------
   V1.2.0 / EMPTY MEDIA SLOTS & REFERENCE TYPOGRAPHY
   All media slots are empty until explicitly populated in media-config.js.
   The supplied typography reference uses Anton, Barlow Condensed, Manrope,
   Zen Old Mincho and Noto Sans JP; these fonts load via Google Fonts.
   ------------------------------------------------------------------------- */

body {
  font-family: var(--body-font);
  font-optical-sizing: auto;
  font-synthesis: none;
}

.section-index,
.hero__eyebrow,
.brand__caption,
.hero__scroll-cue,
.hero__chapter,
.footer__brand > span {
  font-family: var(--meta-font);
  font-weight: 700;
}

.intro__kicker,
.intro__floating-kanji {
  font-family: var(--jp-font);
}

/* A media slot contains no actual picture before the user sets an image path. */

.media-slot {
  overflow: hidden;
}

.media-slot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.media-slot:not(.has-image) {
  background-image: none;
}

.hero__art-shell:not(.has-image) {
  background: linear-gradient(145deg, #211b1c 0%, #3d2220 44%, #181416 100%);
}

.hero__art-shell > img {
  object-position: 50% 57%;
  animation: heroArtIn 1.35s var(--ease) both;
}

.intro__picture-frame:not(.has-image) {
  background: #e8e0d7;
  border: 1px solid rgba(15, 15, 15, 0.11);
}

.intro__picture-frame > img {
  object-position: 50% 56%;
}

.mobile-menu__visual > img {
  position: absolute;
  inset: 0;
  object-fit: cover;
}

/* Typography refinement for different aspect ratios and original art-free layouts. */

.hero__title,
.intro__headline {
  font-kerning: normal;
  overflow-wrap: normal;
}

/* Avoid initial invisible hero copy when reduced-motion has an animation delay. */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-delay: 0ms !important;
  }
}

body[data-motion="reduced"] .hero__eyebrow,
body[data-motion="reduced"] .hero__title {
  animation: none !important;
  opacity: 1;
  transform: none;
}

@media (max-width: 640px) {
  .hero__art-shell:not(.has-image) {
    background: linear-gradient(165deg, #252021, #301a1b 66%, #171517);
  }
  .intro__picture-frame:not(.has-image) {
    box-shadow: 10px 10px 0 #242321;
  }
}

/* ==========================================================================
   PERMANENT DARK THEME, ACCESSIBLE MOTION AND HEADER CTAS
   ========================================================================= */

/* A single dark color scheme is applied in the HTML root. */

html[data-theme="dark"] {
  color-scheme: dark;
}

/* The cinematic hero retains its distinctive contrast. */

/* Two explicit CTAs replace both manual preference controls. */

.header-actions {
  flex: 0 0 auto;
  gap: 8px;
}

.header-cta {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 38px;
  padding: 0 17px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 2px;
  background: transparent;
  color: #faf8f2;
  font-family: var(--meta-font);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.07em;
  line-height: 1;
  white-space: nowrap;
  transition: background-color 200ms ease, border-color 200ms ease, color 200ms ease, transform 200ms ease;
}

.header-cta--register {
  border-color: var(--red);
  background: var(--red);
  color: #fff;
}

.header-cta--register:hover {
  background: #d93f2a;
  border-color: #d93f2a;
  transform: translateY(-1px);
}

.header-cta--login:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: #fff;
}

/* GPU-friendly transform and opacity only; scrolling stays responsive. */

.js-enabled [data-reveal] {
  transition: opacity 540ms var(--ease), transform 540ms var(--ease);
}

.ticker__track {
  animation-duration: 54s;
}

body[data-page-hidden="true"] .ticker__track,
.ticker[data-inview="false"] .ticker__track {
  animation-play-state: paused;
}

body[data-performance="lite"] .grain {
  display: none;
}

/* Mobile header remains balanced with two CTAs plus the hamburger. */

@media (max-width: 1100px) {
  .header-inner {
    gap: 12px;
  }
  .header-cta {
    padding-inline: 12px;
  }
}

@media (max-width: 640px) {
  .header-actions {
    gap: 5px;
  }
  .header-cta {
    min-height: 36px;
    padding-inline: 11px;
    font-size: 12px;
    letter-spacing: 0.04em;
  }
  .menu-button {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
  }
}

@media (max-width: 380px) {
  .header-inner {
    gap: 5px;
  }
  .brand__caption {
    font-size: 6px;
    letter-spacing: 0.075em;
  }
  .header-cta {
    padding-inline: 9px;
    min-height: 34px;
    font-size: 11px;
    letter-spacing: 0.02em;
  }
  .menu-button {
    width: 32px;
    height: 34px;
    flex-basis: 32px;
  }
}

/* Reduced-motion is an accessibility preference, not a visible header toggle. */

@media (prefers-reduced-motion: reduce) {
  .js-enabled [data-reveal],
  .js-enabled [data-reveal]:not(.is-revealed) {
    opacity: 1;
    transform: none;
  }
  .header-cta:hover {
    transform: none;
  }
}

/* Media labels sit on a consistently dark image stage. */

/* ===========================================================================
   WASIAT4D2 / V1.4.0 — GOLD & CHARCOAL BRAND REFINEMENT
   The supplied wordmark is the only populated image. All other media slots
   stay available for future assets, without external image dependencies.
   =========================================================================== */

:root {
  --black: #0d0d10;
  --black2: #17151a;
  --paper: #f6f1e7;
  --white: #fcf6ea;
  --ink: #221b16;
  --red: #cfa266;
  --red-dark: #aa7a42;
  --gold-soft: #ead0a0;
  --gold-deep: #885c32;
}

::selection {
  background: #cfa266;
  color: #16100e;
}

.intro-loader {
  background: #111014;
  color: #e9d6ad;
}

.intro-loader__mark {
  display: block;
  width: min(76vw, 470px);
  line-height: 1;
  font-size: 0;
  transform: none;
  filter: drop-shadow(0 12px 22px rgba(0, 0, 0, .25));
}

.intro-loader__logo {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.intro-loader__caption {
  color: #d7bd8d;
  text-align: center;
  line-height: 1.6;
}

.intro-loader__line {
  background: #5b4b3a;
}

.brand {
  min-width: 0;
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2px;
  position: relative;
}

.brand__logo {
  display: block;
  width: clamp(136px, 13.7vw, 188px);
  height: auto;
  max-height: 43px;
  object-fit: contain;
}

.brand__caption {
  margin-top: 0;
  font-size: 7px;
  letter-spacing: .145em;
  color: #d5b887;
  text-align: center;
  white-space: nowrap;
}

.site-header {
  border-bottom-color: rgba(211, 172, 102, .19);
}

.site-header.is-scrolled,
.site-header.menu-is-open {
  background: rgba(14, 13, 17, .96);
}

.hero {
  background: radial-gradient(ellipse at 73% 43%, rgba(173, 113, 56, .39), transparent 46%),
    radial-gradient(circle at 80% 80%, rgba(94, 58, 30, .32), transparent 42%),
    #101014;
}

.hero__art-shell:not(.has-image) {
  background: linear-gradient(135deg, transparent 10%, rgba(207, 162, 102, .08) 50%, transparent 80%),
    linear-gradient(160deg, #211b1b 0%, #392820 48%, #131214 100%);
}

.hero__visual-tint {
  background: linear-gradient(90deg, #100f13 0%, rgba(16, 15, 19, .88) 18%, transparent 68%),
    linear-gradient(0deg, rgba(16, 15, 19, .82), transparent 35%, transparent 70%, rgba(16, 15, 19, .43));
}

.hero__vertical-word {
  color: #dfb878;
  mix-blend-mode: normal;
  opacity: .5;
}

.hero__vertical-line {
  background: rgba(223, 184, 120, .42);
}

.hero__title-outline {
  -webkit-text-stroke-color: #e9d6b3;
}

.button--red,
.header-cta--register {
  color: #1b1410;
  border-color: #cfa266;
  background: #cfa266;
}

.button--red:hover,
.header-cta--register:hover {
  color: #17100b;
  border-color: #e2b97d;
  background: #e2b97d;
}

.ticker {
  background: #c69b60;
  color: #151112;
}

.ticker__star {
  color: #68411f;
}

.intro__kicker {
  color: #8e6039;
  font-family: var(--body-font);
  font-size: 13px;
  font-weight: 750;
  letter-spacing: .08em;
}

.intro__floating-kanji {
  font-family: var(--display);
  letter-spacing: .02em;
}

.intro__floating-kanji {
  color: rgba(153, 99, 49, .19);
}

.end-section {
  background: radial-gradient(circle at 83% 50%, #35271f, #0d0d10 59%);
}

.end-section__inner::after {
  content: "W";
  font-family: var(--display);
  color: rgba(210, 164, 101, .12);
}

.footer__brand {
  align-items: flex-start;
}

.footer__logo {
  width: min(100%, 310px);
  height: auto;
  max-height: 80px;
  object-fit: contain;
  object-position: left center;
}

.footer__brand > span {
  color: #d5b887;
}

/* Prevent clipped text, oversized letter spacing, and crowded CTAs. */

.hero__title {
  font-size: clamp(86px, 11.3vw, 182px);
}

.hero__description {
  max-width: 430px;
}

.hero__eyebrow,
.hero__description,
.hero__ctas {
  position: relative;
  z-index: 2;
}

.intro__headline {
  font-size: clamp(58px, 6.25vw, 100px);
}

@media (max-width: 900px) {
  .brand__logo {
    width: 153px;
  }
  .hero__title {
    font-size: clamp(77px, 12.2vw, 120px);
  }
}

@media (max-width: 640px) {
  .brand__logo {
    width: 125px;
    max-height: 29px;
  }
  .brand__caption {
    font-size: 5.9px;
    letter-spacing: .095em;
  }
  .hero__title {
    font-size: clamp(68px, 18vw, 102px);
  }
  .hero__title-small {
    font-size: 13px;
    letter-spacing: .2em;
  }
  .hero__art-shell:not(.has-image) {
    background: linear-gradient(160deg, #221c1a, #372419 65%, #100f13);
  }
  .hero__description {
    max-width: 38ch;
  }
  .intro__headline {
    font-size: clamp(43px, 11.8vw, 70px);
  }
  .footer__logo {
    width: min(100%, 255px);
  }
}

@media (max-width: 380px) {
  .header-inner {
    gap: 6px;
  }
  .brand__logo {
    width: 100px;
    max-height: 23px;
  }
  .brand__caption {
    font-size: 5.15px;
    letter-spacing: 0;
  }
  .header-actions {
    gap: 4px;
  }
  .header-cta {
    padding-inline: 9px;
    min-height: 36px;
    font-size: 11px;
  }
  .hero__title {
    font-size: clamp(59px, 17.8vw, 69px);
  }
  .hero__description {
    font-size: 11.5px;
  }
  .intro__headline {
    font-size: clamp(42px, 11.1vw, 54px);
  }
}

/* Final visual harmonization and hero/footer collision guard. */

@media (min-width: 901px) {
  .hero {
    min-height: max(900px, 100svh);
    height: max(900px, 100svh);
  }
  .hero__title {
    font-size: clamp(84px, 10.3vw, 170px);
  }
}

/* ==========================================================================
   V1.5.0 | TYPE SCALE, ACCESSIBILITY AND COMPOSITOR-SAFE INTRO TRANSITIONS
   ========================================================================== */

:root {
  --page-edge: clamp(16px, 4vw, 64px);
  --type-measure: 64ch;
  --motion-ease: cubic-bezier(.22, 1, .36, 1);
}

html {
  font-synthesis: weight;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--body-font);
  font-optical-sizing: auto;
  line-height: 1.55;
}

p, li, dd {
  overflow-wrap: break-word;
}

button, a {
  font-synthesis: none;
}

/* The splash is present only when JS is available.
   Transform and opacity are composited; there is no blur animation. */

.intro-loader {
  display: none;
  background: #111014;
  opacity: 1;
  visibility: visible;
  isolation: isolate;
  pointer-events: auto;
  transition: opacity 540ms var(--motion-ease), visibility 0s linear 540ms;
}

.js-enabled .intro-loader:not([hidden]) {
  display: flex;
}

.intro-loader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.intro-loader__mark {
  width: clamp(180px, 62vw, 420px);
  max-width: calc(100vw - 48px);
  filter: none;
  transform: translate3d(0, 12px, 0) scale(.985);
  opacity: 0;
  animation: brandEntrance 690ms var(--motion-ease) 80ms both;
}

.intro-loader__logo {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.intro-loader__caption {
  max-width: calc(100vw - 48px);
  margin-top: clamp(14px, 3vw, 21px);
  color: #decba7;
  font-family: var(--meta-font);
  font-size: clamp(10px, 1.2vw, 12px);
  line-height: 1.5;
  letter-spacing: clamp(.14em, .5vw, .22em);
  font-weight: 700;
  opacity: 0;
  animation: captionEntrance 570ms ease-out 170ms both;
}

.intro-loader__line {
  width: clamp(124px, 20vw, 205px);
  height: 1px;
  margin-top: 24px;
  background: rgba(225, 195, 140, .19);
}

.intro-loader__line::before {
  background: #d6af75;
  animation: introSweep 900ms var(--motion-ease) 100ms both;
}

@keyframes brandEntrance {
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes captionEntrance {
  to {
    opacity: 1;
  }
}

@keyframes introSweep {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

/* Fluid typography with stable line-height when the web font falls back. */

.hero__title {
  font-size: clamp(64px, 10.3vw, 170px);
  line-height: .88;
  letter-spacing: -.035em;
  max-width: 100%;
}

.hero__description,
.intro__body {
  font-size: clamp(13px, .96vw, 15px);
  line-height: 1.75;
  letter-spacing: -.005em;
}

.hero__description {
  max-width: 43ch;
}

.intro__headline {
  font-size: clamp(48px, 6.2vw, 96px);
  line-height: .98;
  letter-spacing: -.025em;
}

.end-section p {
  max-width: 100%;
  line-height: 1.04;
}

.footer__bottom {
  row-gap: 16px;
}

/* No force-hidden text when the background tab is resumed or animations are reduced. */

body[data-motion="reduced"] .intro-loader__mark,
body[data-motion="reduced"] .intro-loader__caption,
body[data-motion="reduced"] .intro-loader__line::before {
  animation: none !important;
  opacity: 1;
  transform: none;
}

@media (max-width: 900px) {
  .hero__title {
    font-size: clamp(65px, 12.2vw, 120px);
  }
  .intro__headline {
    font-size: clamp(54px, 9vw, 91px);
  }
}

@media (max-width: 640px) {
  .hero__title {
    font-size: clamp(62px, 17.2vw, 100px);
    line-height: .88;
  }
  .hero__description {
    font-size: 13px;
    line-height: 1.7;
  }
  .intro__headline {
    font-size: clamp(42px, 11.2vw, 70px);
    line-height: 1.02;
  }
  .hero__content {
    padding-bottom: clamp(112px, 14svh, 136px);
  }
  .hero__eyebrow {
    letter-spacing: .09em;
  }
}

@media (max-width: 380px) {
  .hero__title {
    font-size: clamp(57px, 17vw, 65px);
  }
  .intro__headline {
    font-size: clamp(40px, 10.8vw, 50px);
  }
  .header-actions {
    gap: 4px;
  }
  .header-cta {
    font-size: 11px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .intro-loader {
    transition-duration: 0ms;
  }
  .intro-loader__mark, .intro-loader__caption, .intro-loader__line::before {
    animation: none !important;
    opacity: 1;
    transform: none;
  }
}

/* Short desktop viewports must expose the first main action without overlap. */

@media (min-width: 901px) and (max-height: 840px) {
  .hero {
    height: max(730px, 100svh);
    min-height: 730px;
  }
  .hero__content {
    justify-content: center;
    padding-top: 76px;
    padding-bottom: 48px;
  }
  .hero__title {
    font-size: clamp(78px, 8.6vw, 135px);
    line-height: .86;
  }
  .hero__eyebrow {
    margin-bottom: 19px;
  }
  .hero__title-small {
    margin-bottom: 11px;
  }
  .hero__description {
    margin-block: 18px;
  }
}

@media (max-width: 380px) {
  .hero {
    min-height: max(700px, 100svh);
  }
  .hero__content {
    min-height: max(700px, 100svh);
    padding-top: 130px;
    padding-bottom: 98px;
  }
}
