/* r7 — typography, contrast and UI refinement on top of r6.4 (layout, scenes and motion untouched).
   Roles: Noto Serif KR only for the emotional line of a scene; Pretendard for technology, products, numbers, UI.
   Mobile body >=16px, captions >=12px. Loaded last so it only refines sizes / weights / colour / contrast. */
:root{--marine-2:#34495A;--mineral-ink:#2F5970}

.hero__title{font-size:clamp(30px,3.9vw,64px);letter-spacing:-.01em}
.hero__sub{font-size:clamp(15px,1.1vw,19px);color:rgba(243,242,236,.92)}
.film__title-ko{font-size:clamp(32px,3.3vw,48px)}
.film__title-en{font-size:13px;letter-spacing:.16em}
.film__statement{color:rgba(243,242,236,.9)}

html.cine .r3-key{font-size:clamp(26px,2.6vw,38px);line-height:1.5}
.r3-bigyear{font-size:clamp(104px,13vw,220px)}
html.cine .r3-y2008 .r3-bigyear{font-size:min(30vw,56vh)}
html.cine .r3-heritage .r3-name-ko{font-size:clamp(34px,3.4vw,52px)}
html.cine .r3-caption-block--light .r3-name-ko{font-size:clamp(30px,3vw,46px)}
.r3-today__title{font-size:clamp(28px,2.7vw,44px)}
.r3-line{font-size:clamp(17px,1.2vw,19px);max-width:26em}
.r3-today__fact{font-size:clamp(16px,1.2vw,18px)}
html.cine .r3-eyebrow,.r3-tag{font-size:13px;letter-spacing:.14em}

.r4-title{font-size:clamp(30px,3.4vw,52px)}
html.cine .r4-title{font-size:clamp(34px,3.6vw,52px)}
.r4-copy{font-size:clamp(34px,3.7vw,60px)}
.r4-word{font-size:15px;letter-spacing:.1em;color:rgba(243,242,236,.95)}

.sci-title__en{font:300 clamp(34px,3.6vw,52px)/1.1 var(--sans);letter-spacing:.06em}
.sci-title__ko{font:500 clamp(18px,1.6vw,22px)/1.3 var(--sans);letter-spacing:.04em}
.sci-title__q{font-size:13px;letter-spacing:.2em;color:var(--marine-2)}
.sci-key{font-size:clamp(18px,1.4vw,22px);color:var(--marine)}
.sci-tech .en{font-size:13px;letter-spacing:.14em;color:var(--marine)}
.sci-tech .ko{font:400 16px/1.3 var(--sans);color:var(--marine-2)}
.sci-note,.sci-eyebrow{color:var(--mineral-ink)}
.sci-eyebrow span{font-size:13px;letter-spacing:.14em}
.sci-h{font-size:clamp(28px,2.9vw,44px);line-height:1.28}
html.cine .sci-inside .sci-h,html.cine .sci-o2 .sci-h,.sci-inside .sci-h,.sci-o2 .sci-h{font:500 clamp(24px,2.5vw,36px)/1.32 var(--sans);letter-spacing:-.015em}
.sci-body{font-size:clamp(16px,1.2vw,18px);max-width:26em}
.sci-inside .sci-body{color:rgba(243,242,236,.9)}
.sci-disclaim{color:rgba(243,242,236,.82);font-size:13px}
.sci-index li{font-size:12px}
.sci-steps li{font-size:15px}
.sci-o2__labels{font-size:13px}
.sci-o2 figcaption,.sci-still__photo figcaption{font-size:13px}

.r5-title{font-size:clamp(34px,3.6vw,56px)}
.r5-name .ko{font:500 clamp(28px,2.8vw,40px)/1.15 var(--sans);letter-spacing:-.01em}
.r5-name .en{font-size:13px;letter-spacing:.16em;color:var(--marine-2)}
.r5-vol{font-size:14px;color:var(--marine-2)}
.r5-tag{font:300 clamp(19px,1.6vw,22px)/1.5 var(--sans)}
.r5-sum{font-size:clamp(16px,1.2vw,18px)}
.r5-mix__txt{font-size:16px}
.r5-mix__txt small{font-size:13px;color:var(--marine-2)}
.r5-mix__txt b{font-size:clamp(34px,3.6vw,52px);line-height:1;font-weight:300;letter-spacing:-.02em;margin-left:2px}
.r5-mix__row{display:flex;align-items:baseline;gap:6px}
.r5-mix__row .sw{align-self:center}

.rooms-nav a{font-size:13px;opacity:.72;min-height:32px}
.rooms-nav a[aria-current="true"]{font-weight:500}
.rooms-nav a[aria-current="true"]::after{width:36px}
.more{min-height:46px;padding:0 20px;font:500 15px/1 var(--sans);letter-spacing:.01em;color:var(--marine);background:rgba(255,255,255,.92);border:1px solid rgba(23,45,60,.42)}
.more:hover{background:var(--marine);color:#fff}
.more--dark,.sci-inside .more,.sci-epu .more{color:var(--ivory);background:rgba(8,21,32,.62);border-color:rgba(243,242,236,.55)}
.more--dark:hover,.sci-inside .more:hover{background:rgba(243,242,236,.94);color:var(--ocean)}
.panel__years dd,.panel p{color:#34495A}
.panel__note{color:#2F5970!important}

@media (max-width:760px){
  .hero__sub,.hero__cta,.film__statement{font-size:16px}
  html.cine .r3-heritage .r3-line,.r3-line{font-size:16px}
  html.cine .r3-heritage .r3-name-ko{font-size:28px}
  .sci-body,.sci-inside .sci-body,.sci-o2 .sci-body{font-size:16px;line-height:1.7}
  html.cine .sci-inside .sci-h,html.cine .sci-o2 .sci-h,.sci-h{font-size:clamp(24px,7vw,30px)}
  .sci-disclaim,.sci-note{font-size:12.5px}
  .sci-o2__labels,.sci-o2 figcaption,.sci-still__photo figcaption{font-size:12px}
  .sci-tech .en{font-size:11.5px;letter-spacing:.1em}.sci-tech .ko{font-size:15px}
  .sci-title__en{font-size:clamp(30px,8.6vw,38px)}
  .r5-sum{font-size:16px}.r5-tag{font-size:19px}
  .r5-name .ko{font-size:32px}
  .r5-mix__txt b{font-size:34px}.r5-mix__txt{font-size:14px}.r5-mix__txt small{font-size:12px}
  html.cine .room .more{font-size:14px}
  html.cine .r4-title{font-size:clamp(26px,7.4vw,32px)}.r4-copy{font-size:clamp(30px,8.6vw,38px)}
}
@media (max-width:360px){.sci-steps{gap:10px}.sci-steps li{font-size:13px;white-space:nowrap}.sci-steps li+li::before{width:6px}}

/* ═════════ r7.1 — alignment, line breaks, balance ═════════ */
/* Korean never breaks inside a word; headings balance their lines; paragraphs avoid a lonely last word */
body{word-break:keep-all;overflow-wrap:break-word;line-break:strict}
h1,h2,h3,.hero__title,.film__title-ko,.r3-key,.r3-today__title,.r4-title,.r4-copy,.sci-h,.r5-title,.r5-tag,.sci-key,.panel__title{text-wrap:balance}
p,dd,li{text-wrap:pretty}
.en,[lang="en"]{white-space:nowrap}

/* Science identity — the three technologies: equal columns, label + Korean on one axis, nodes centred over each column */
.sci-tech{display:grid;grid-template-columns:repeat(3,max-content);column-gap:clamp(36px,4vw,72px)}
.sci-tech li{align-items:flex-start}
.sci-tech li::before{left:0}

/* condensation steps — icon and label share one centre line, equal cells */
.sci-steps{display:grid;grid-template-columns:repeat(4,minmax(64px,auto));column-gap:clamp(18px,2.2vw,34px);justify-content:start}
.sci-steps li{justify-content:flex-start;text-align:center;white-space:nowrap}
.sci-steps svg{margin:0 auto}

/* products — volume, name, words and numbers share one left edge; numbers right-aligned so the % signs line up */
.r5-info{display:flex;flex-direction:column;align-items:flex-start}
.r5-name{margin:12px 0 14px}
.r5-tag{margin-top:2px}
.r5-sum{margin-top:10px;max-width:26em}
.r5-mix{align-items:center;gap:22px;margin-top:26px}
.r5-mix__txt{gap:10px}
.r5-mix__row{display:grid;grid-template-columns:auto 1fr;align-items:baseline;column-gap:14px}
.r5-mix__row b{min-width:2.55ch;text-align:right;font-variant-numeric:tabular-nums lining-nums;font-weight:300;letter-spacing:-.02em;color:var(--marine)}
.r5-mix__row b .pc{font-size:.46em;letter-spacing:0;margin-left:.06em}
.r5-mix__row .lbl{display:inline-flex;align-items:center;gap:8px;font:400 15px/1.3 var(--sans);color:var(--marine)}
.r5-mix__row .sw{margin:0}
.r5-mix__txt small{margin-top:6px}
/* product switch and the information button sit on one baseline at the bottom of the stage */
html.cine .r5-switch{bottom:clamp(20px,4vh,40px)}
html.cine .room5 .more{bottom:clamp(20px,4vh,40px)}

@media (max-width:760px){
  /* identity: the three technologies become three clean rows — no wrapped English labels */
  .sci-tech{grid-template-columns:1fr;row-gap:14px;padding-top:0;padding-left:20px;margin-top:26px}
  .sci-tech::before{top:4px;bottom:4px;left:3px;width:1px;height:auto;background:linear-gradient(180deg,rgba(82,127,152,.9),rgba(170,215,235,.6))}
  .sci-tech li{flex-direction:row;align-items:baseline;gap:12px}
  .sci-tech li::before{left:-20px;top:5px}
  .sci-tech .en{font-size:12px;letter-spacing:.12em;min-width:9.6em}
  .sci-tech .ko{font-size:15px}
  /* steps: 2 × 2 on narrow phones keeps labels whole at a readable size */
  .sci-steps{grid-template-columns:repeat(4,1fr);column-gap:6px;width:100%}
  .sci-steps li{font-size:14px}
  .sci-steps li+li::before{display:none}
  /* the technology index stays top-left; the detail button moves below it so they never touch */
  html.cine .science .more{top:64px;right:16px}
  .r5-mix{gap:14px}
  .r5-mix__row .lbl{font-size:14px}
  html.cine .r5-switch{bottom:5vh}
}
@media (max-width:360px){
  .sci-steps{grid-template-columns:repeat(2,auto);row-gap:14px;column-gap:28px;justify-content:start}
  .sci-steps li{flex-direction:row;gap:10px;font-size:15px}
  .sci-steps svg{width:30px;height:30px;margin:0}
}
@media (max-width:760px){html.cine .room5 .more{bottom:auto}}
@media (min-width:761px) and (max-aspect-ratio:4/5){html.cine .room5 .more{top:auto}}
@media (min-width:761px) and (max-aspect-ratio:4/5){html.cine .sci-text{width:min(64vw,540px)!important}html.cine .r5-info{right:calc(var(--pad-x) + 110px)}}

/* ═════════ r7.2 — copy & line breaks ═════════ */
/* Story: the headline is the emotional line (serif, 2 lines); the second beat is a reading paragraph (sans) */
html.cine .r3-key--a .ln{display:block}
html.cine .r3-key--a{font-size:clamp(26px,2.5vw,38px);line-height:1.45}
html.cine .r3-key--b{font:400 clamp(16px,1.3vw,20px)/1.9 var(--sans);color:var(--marine-2);max-width:25em;letter-spacing:0}
html.cine .r3-key--b .ln{display:inline;clip-path:none;transform:none}
html.cine .r3-key--b .ln+.ln::before{content:"";display:block;height:.6em}
.r3-key .ln,.r3-close .ln,.sci-key .ln,.sci-h .ln{text-wrap:balance}
.sci-key .ln{display:block}
.r3-close{font-size:clamp(20px,1.6vw,26px);line-height:1.6}
.r5-value{margin-top:18px;font:400 clamp(16px,1.2vw,19px)/1.75 var(--sans);color:var(--marine-2);max-width:24em;text-wrap:balance}
.r5-feel{margin-top:10px;font:400 clamp(15px,1.1vw,17px)/1.7 var(--sans);color:var(--marine);max-width:26em}
.r5-sum{max-width:24em}
html.cine .r5-key__text{bottom:12vh}
@media (max-width:760px){
  html.cine .r3-key--a{font-size:clamp(22px,6.2vw,27px);line-height:1.5}
  html.cine .r3-key--b{font-size:16px;line-height:1.85;max-width:none}
  .r5-value{font-size:16px;line-height:1.7}
  .r5-feel{font-size:15px;margin-top:8px}
  html.cine .r5-key__text{bottom:9vh;right:24px}
}
