/* =========================================================
   NOIR PUR — base.css v1.5
   Mobile first. Desktop adjustments live in responsive.css.
   ========================================================= */

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

html {
  background: var(--color-black);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100svh;
  overflow-x: hidden;
  color: var(--color-paper);
  background:
    radial-gradient(circle at 50% 20%, rgba(255,255,255,.035), transparent 36%),
    var(--color-black);
  font-family: var(--font-ui);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: color 2s ease-in-out;
}

/* Final reveal: fade the page itself from NOIR to paper-white. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  background:
    radial-gradient(circle at 50% 20%, rgba(0,0,0,.025), transparent 36%),
    #ffffff;
  transition: opacity 2s ease-in-out;
}

body.is-light::before {
  opacity: 1;
}

body.is-light {
  --color-paper: #050505;
  --color-soft: #050505;
  --color-muted: #2f2f2f;
  --color-line: rgba(5,5,5,.18);
}

.site-shell {
  position: relative;
  z-index: 1;
  width: min(100%, var(--site-max-mobile));
  min-height: 100svh;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  padding:
    max(22px, env(safe-area-inset-top))
    20px
    max(24px, env(safe-area-inset-bottom));
}

.site-header {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--color-line);
  transition: border-color 2s ease-in-out;
}

.wordmark {
  color: var(--color-paper);
  text-decoration: none;
  white-space: nowrap;
  font-family: var(--font-display);
  font-size: .9rem;
  letter-spacing: .22em;
  transition: color 2s ease-in-out;
}

/* 2026 is intentionally hidden in the page header on every device. */
.year {
  display: none;
}

.hero {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  align-content: start;
  gap: 10px;
  padding: 34px 0 30px;
}

.art-frame,
.intro {
  /*
    Mme.D source artwork is 1520 × 2048.
    Keep the SAME visual height as the former square artwork,
    but let the width become naturally narrower.
  */
  width: margin-inline: auto;
}

.art-frame {
  position: relative;
  margin: 0;
  aspect-ratio: 1520 / 2048;
  border: 0;
  background: transparent;
  box-shadow: none;
  overflow: hidden;
}

.portrait-stack {
  position: relative;
  width: 100%;
  height: 100%;
}

.portrait-image {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  will-change: opacity;
}

.portrait-image:first-child {
  position: relative;
}

.portrait-image.is-visible {
  opacity: 1;
}

.portrait-image:last-child {
  transition-duration: 2s;
}

.intro {
    margin-left: 0;
padding-left: 0;
  display: grid;
  gap: 8px;
  padding-left: 2%;
  opacity: 0;
  transform: translateY(10px);
  animation: rise .9s ease .65s forwards;
}

h1 {
  margin: 0;
  max-width: 14ch;
  font-family: var(--font-display);
  font-size: clamp(2.05rem, 10vw, 3.4rem);
  font-weight: 400;
  line-height: .98;
  letter-spacing: -.03em;
  transition: color 2s ease-in-out;
}

.statement-cn {
  margin: 0;
  max-width: 42ch;
  color: var(--color-soft);
  font-size: clamp(.82rem, 3.5vw, .96rem);
  line-height: 1.6;
  letter-spacing: .025em;
  transition: color 2s ease-in-out;
}

.statement-fr {
  margin: 0;
  max-width: 44ch;
  color: #8f8981;
  font-family: var(--font-display);
  font-size: clamp(.92rem, 3.8vw, 1.05rem);
  font-style: normal;
  line-height: 1.5;
  transition: color 2s ease-in-out;
}

body.is-light .statement-fr {
  color: #3f3b37;
}

.statement-en,
.statement-ko,
.statement-ja {
  margin: 0;
  max-width: 44ch;
  color: var(--color-muted);
  font-size: clamp(.82rem, 3.5vw, .96rem);
  line-height: 1.5;
  letter-spacing: .01em;
  transition: color 2s ease-in-out;
}

body.is-light .statement-en,
body.is-light .statement-ko,
body.is-light .statement-ja {
  color: #4f4b47;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}

.button {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 17px;
  color: var(--color-paper);
  text-decoration: none;
  font-size: .78rem;
  letter-spacing: .14em;
  transition:
    background-color .25s ease,
    color .25s ease,
    border-color .25s ease,
    transform .25s ease;
}

.button-primary {
  border: 0.5px solid #b8b8b8;
}

body.is-light .button-primary {
  border-color: rgba(5,5,5,.32);
}

body.theme-shifting .button {
  transition:
    background-color 2s ease-in-out,
    color 2s ease-in-out,
    border-color 2s ease-in-out,
    transform .25s ease;
}

.button-link {
  padding-inline: 8px;
  border: 1px solid transparent;
  color: var(--color-muted);
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
  outline: none;
}

.button-link:hover,
.button-link:focus-visible {
  color: var(--color-paper);
}

.site-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding: 0 0 12px;
  border-bottom: 1px solid var(--color-line);
  color: #77716a;
  font-size: .74rem;
  line-height: 1.45;
  letter-spacing: .11em;
  transition: color 2s ease-in-out, border-color 2s ease-in-out;
}

body.is-light .site-footer {
  color: #4f4b47;
}

.site-footer > span:first-child {
  display: block;
  white-space: nowrap;
}

.vertical-mark {
  writing-mode: horizontal-tb;
  text-orientation: mixed;
  white-space: nowrap;
  color: var(--color-gold);
  font-family: var(--font-display);
  letter-spacing: .12em;
}

@keyframes rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }

  .intro {
    opacity: 1;
    transform: none;
  }
}
