/* ==========================================================================
   02 · ABOUT — "Character file"
   ========================================================================== */

.about { padding-top: clamp(160px, 26vh, 280px); }

.about__grid-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image:
        linear-gradient(var(--line) 1px, transparent 1px),
        linear-gradient(90deg, var(--line) 1px, transparent 1px);
    background-size: 88px 88px;
    -webkit-mask-image: radial-gradient(70% 60% at 50% 40%, #000 20%, transparent 75%);
    mask-image: radial-gradient(70% 60% at 50% 40%, #000 20%, transparent 75%);
    opacity: .55;
    pointer-events: none;
}

.about__intro-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: clamp(40px, 6vw, 110px);
    align-items: end;
    margin-top: 36px;
}

/* scrubbed statement: a display lead over supporting body copy */
.statement {
    position: relative;
    display: grid;
    gap: clamp(16px, 1.8vw, 26px);
    padding-left: clamp(18px, 2.2vw, 34px);
}
/* accent rule anchoring the left edge, fading out down the block */
.statement::before {
    content: "";
    position: absolute;
    left: 0;
    top: .32em;
    bottom: .5em;
    width: 2px;
    border-radius: 2px;
    background: linear-gradient(180deg, var(--red), rgba(227, 24, 45, 0) 88%);
}
.statement__lead {
    /* em-based so the line breaks stay put as the clamped size scales */
    max-width: 9.5em;
    font-family: var(--f-display);
    font-weight: 700;
    font-size: clamp(2rem, 3.9vw, 4.1rem);
    line-height: 1.08;
    letter-spacing: -.038em;
    font-variation-settings: "opsz" 72;
}
.statement__body {
    max-width: 46ch;
    font-size: clamp(1.02rem, 1.2vw, 1.3rem);
    line-height: 1.68;
    letter-spacing: -.005em;
}
.statement__word { display: inline-block; }

/* ID card */
.idcard {
    position: relative;
    padding: 18px;
    border-radius: 22px;
    background: linear-gradient(150deg, #231d1e, #120f10 60%);
    border: 1px solid var(--line-2);
    box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .9), inset 0 1px 0 rgba(255, 255, 255, .06);
    transform: rotate(3deg);
}
.idcard::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .06) 45%, transparent 60%);
    pointer-events: none;
}
.idcard__head { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 12px; border-bottom: 1px dashed var(--line-2); font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.idcard__head [lang="ko"] { font-family: var(--f-kr); font-size: 1rem; letter-spacing: 0; color: var(--red-hot); }
.idcard__body { display: grid; grid-template-columns: 92px 1fr; gap: 16px; padding: 16px 0; }
/* The ID portrait is a 2:3 photo carrying its own backdrop, unlike the cut-out
   poses that stand on the gradient, so the frame matches its aspect and the
   image fills it edge to edge. The gradient stays as the backdrop while it loads. */
.idcard__photo { aspect-ratio: 2 / 3; border-radius: 12px; overflow: hidden; background: linear-gradient(180deg, #5b0b15, #25070b); }
.idcard__photo .gamja-img { width: 100%; height: 100%; }
.idcard__photo .gamja-img img { width: 100%; height: 100%; object-fit: cover; }
.idcard__list { display: grid; gap: 7px; }
.idcard__list div { display: grid; grid-template-columns: 58px 1fr; gap: 8px; align-items: baseline; }
.idcard__list dt { font-size: .62rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.idcard__list dd { font-size: .82rem; font-weight: 650; line-height: 1.3; }
.idcard__foot { display: flex; align-items: center; justify-content: space-between; padding-top: 12px; border-top: 1px dashed var(--line-2); }
.idcard__stamp { display: grid; place-items: center; width: 62px; height: 62px; border-radius: 50%; border: 2px solid var(--red); color: var(--red-hot); font-family: var(--f-kr); font-size: .9rem; transform: rotate(-14deg); opacity: .9; box-shadow: inset 0 0 12px rgba(227, 24, 45, .35); }
.idcard__barcode { width: 150px; height: 34px; background: repeating-linear-gradient(90deg, var(--cream) 0 2px, transparent 2px 4px, var(--cream) 4px 5px, transparent 5px 9px, var(--cream) 9px 12px, transparent 12px 14px); opacity: .55; }

/* pinned character sheet */
.about__sheet {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: clamp(30px, 5vw, 90px);
    min-height: 100vh;
    max-width: calc(var(--container) + var(--gutter) * 2);
    margin: 0 auto;
    padding: 12vh var(--gutter);
}
.about__stage {
    position: relative;
    height: min(78vh, 740px);
    display: grid;
    place-items: end center;
}
.about__orb { position: absolute; left: 50%; top: 44%; width: 2px; height: 2px; }
/* Clipped to the stage so a long word can never run into the step list beside it. */
.about__hangul { position: absolute; inset: 0; display: grid; place-items: center; overflow: hidden; pointer-events: none; }
.about__hangul span {
    grid-area: 1 / 1;
    font-family: var(--f-kr);
    font-size: clamp(4.5rem, 11vw, 12rem);
    line-height: 1;
    color: transparent;
    -webkit-text-stroke: 1.5px rgba(255, 58, 76, .45);
    white-space: nowrap;
    opacity: 0;
    transform: translateY(-8%);
}
.about__hangul span:first-child { opacity: 1; }
.about__poses { position: relative; width: 100%; height: 84%; transform-style: preserve-3d; }
/* Each step's art has its own shape (step 03 is landscape), so every pose is
   fitted into the same box and stands on the floor rather than sized by height. */
.about__pose { position: absolute; left: 50%; bottom: 0; width: 100%; height: 100%; transform: translateX(-50%); transform-origin: 50% 100%; opacity: 0; visibility: hidden; }
.about__pose:first-child { opacity: 1; visibility: visible; }
.about__pose .gamja-img, .about__pose img { width: 100%; height: 100%; object-fit: contain; object-position: 50% 100%; }
.about__pose img { pointer-events: auto; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .6)); }
.about__floor { position: absolute; left: 50%; bottom: -1%; width: 70%; height: 56px; border-radius: 50%; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(227, 24, 45, .55), transparent); filter: blur(6px); pointer-events: none; }
.about__counter { position: absolute; top: 0; left: 0; font-family: var(--f-display); font-weight: 800; font-size: 1.1rem; letter-spacing: -.02em; color: var(--dim); }
.about__counter span { color: var(--cream); font-size: 2.6rem; }

.about__title {
    font-family: var(--f-display);
    font-size: clamp(2.2rem, 4.2vw, 4.4rem);
    letter-spacing: -.045em;
    line-height: .96;
    max-width: 12ch;
}
.about__title span { margin-left: 10px; font-family: var(--f-kr); font-weight: 400; font-size: .46em; letter-spacing: 0; color: var(--red-hot); vertical-align: .26em; }
.about__sub { max-width: 44ch; margin-top: 14px; font-size: .95rem; line-height: 1.6; color: var(--muted); }
.about__note { display: flex; align-items: flex-start; gap: 10px; margin-top: 22px; padding: 14px 18px; border-radius: 16px; border: 1px dashed rgba(255, 58, 76, .38); background: rgba(58, 5, 8, .3); font-size: .85rem; line-height: 1.55; color: var(--muted); }
.about__note span { flex: none; display: grid; place-items: center; margin-top: 1px; color: var(--red-hot); }

.traits { margin-top: clamp(26px, 4vh, 44px); counter-reset: t; }
.trait {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    grid-template-areas: "idx name" "bar bar" "line line";
    align-items: baseline;
    column-gap: 12px;
    padding: 16px 0;
    border-top: 1px solid var(--line);
    opacity: .38;
    transition: opacity .5s var(--ease-out);
    outline-offset: 6px;
}
.trait:last-child { border-bottom: 1px solid var(--line); }
.trait.is-active, .trait:hover { opacity: 1; }
.trait__thumb { display: none; }
.trait__idx { grid-area: idx; font-size: .75rem; font-weight: 800; color: var(--red-hot); letter-spacing: .1em; }
.trait__name { grid-area: name; font-family: var(--f-display); font-weight: 800; font-size: clamp(1.4rem, 2.2vw, 2.1rem); letter-spacing: -.04em; line-height: 1; }
.trait__kr { margin-left: 8px; font-family: var(--f-kr); font-weight: 400; font-size: .55em; letter-spacing: 0; color: var(--red-hot); vertical-align: .25em; }
.trait__bar { grid-area: bar; position: relative; height: 4px; margin-top: 14px; border-radius: 4px; background: rgba(244, 234, 216, .08); overflow: hidden; }
.trait__bar span { position: absolute; inset: 0 auto 0 0; width: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--red-deep), var(--red-hot)); box-shadow: 0 0 12px rgba(227, 24, 45, .7); transform-origin: left; transform: scaleX(0); transition: transform 1s var(--ease-out); }
.trait.is-active .trait__bar span, .trait.is-passed .trait__bar span { transform: scaleX(1); }
.trait__line { grid-area: line; max-height: 0; overflow: hidden; opacity: 0; color: var(--muted); font-size: .98rem; transition: max-height .6s var(--ease-out), opacity .5s, margin .6s var(--ease-out); }
.trait.is-active .trait__line { max-height: 90px; opacity: 1; margin-top: 12px; }
html.no-js .trait { opacity: 1; }
html.no-js .trait__line { max-height: none; opacity: 1; margin-top: 10px; }
html.no-js .trait__bar span { transform: scaleX(1); }

/* ---------- responsive ---------- */
@media (max-width: 1023px) {
    .about__intro-grid { grid-template-columns: 1fr; }
    .idcard { max-width: 380px; justify-self: end; }
}
@media (max-width: 899px) {
    .about__sheet { grid-template-columns: 1fr; min-height: 0; padding-top: 10vh; }
    .about__stage { display: none; }
    .trait { grid-template-columns: 64px minmax(0, 1fr); grid-template-areas: "thumb name" "thumb bar" "line line"; opacity: 1; }
    .trait__thumb { display: block; grid-area: thumb; width: 54px; align-self: center; }
    .trait__idx { display: none; }
    .trait__bar span { transform: scaleX(1); }
    .trait__line { max-height: none; opacity: 1; margin-top: 10px; }
}
@media (max-width: 560px) {
    .idcard { justify-self: stretch; transform: rotate(1.5deg); }
    .idcard__body { grid-template-columns: 80px 1fr; }
}
