:root {
  --ink: #1C1917; --paper: #F3EFE8; --orange: #E9591A;
  --ink-soft: #5E564F; --paper-soft: #C9C1B6; --rule: #D8D0C4;
  --serif: "Newsreader", "Noto Serif KR", serif;
  --sans: "Pretendard Variable", Pretendard, system-ui, sans-serif;
  --gutter: clamp(20px, 5vw, 80px);
  --line-y: 57.5vh;
  --out: cubic-bezier(.16, 1, .3, 1);
}
* { box-sizing: border-box; }
html { background: var(--ink); color: var(--paper); scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scrollbar-color: #6b625a var(--ink); }
body { margin: 0; font: 400 1.0625rem/1.6 var(--sans); word-break: keep-all; overflow-wrap: break-word; -webkit-font-smoothing: antialiased; }
html[data-lang="ko"] [data-l="en"], html[data-lang="en"] [data-l="ko"] { display: none !important; }
html[data-lang="ko"] :is(h1, h2) { font-family: "Noto Serif KR", serif; }
::selection { background: var(--orange); color: var(--ink); }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 5px; border-radius: 2px; }
h1, h2, p, ul, ol, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img, svg { display: block; max-width: 100%; }
h1, h2 { font-family: var(--serif); font-weight: 500; line-height: 1.32; letter-spacing: -.022em; text-wrap: balance; }
h2 { font-size: clamp(2rem, 4.5vw, 5.5rem); }
html[data-lang="en"] :is(h1, h2) { line-height: 1.12; }
.skip { position: fixed; left: 16px; top: -80px; z-index: 20; padding: 10px 16px; background: var(--paper); color: var(--ink); }
.skip:focus { top: 16px; }
.s { display: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

#threads { position: fixed; inset: 0; will-change: transform; width: 100%; height: 100vh; height: 100lvh; z-index: 0; display: none; }
.gl #threads { display: block; }
main, footer { position: relative; z-index: 1; }

.top { position: absolute; z-index: 3; inset: 0 0 auto; display: flex; align-items: center; justify-content: space-between; padding: 26px var(--gutter); color: var(--paper); }
.brand img { width: 78px; height: auto; }
.top nav { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 36px); font-size: .9375rem; }
.top nav :is(a, button) { padding: 12px 2px; color: inherit; font: inherit; text-decoration: none; background: none; border: 0; cursor: pointer; background: linear-gradient(currentColor, currentColor) 0 calc(100% - 8px) / 0 1px no-repeat; transition: background-size .5s var(--out); }
.top nav :is(a, button):hover { background-size: 100% 1px; }

.stage { min-height: 100vh; min-height: 100svh; padding: 0 var(--gutter); display: flex; }
.on-paper { color: var(--ink); }
.js .scene .stage { position: sticky; top: 0; }
.js .hero { height: 150vh; }
.js .talk { height: 660vh; }
.js :is(.vision, .mission, .work) { height: 230vh; }
.js .mark { height: 780vh; }
.js .close { height: 170vh; }
.js .scene .stage > * { opacity: var(--show, 1); }
html:not(.gl) .on-paper { background: var(--paper); }

.hero .stage { align-items: flex-end; padding-bottom: clamp(44px, 8vh, 92px); }
h1 { font-size: clamp(1.75rem, 4.7vw, 6rem); }
html[data-lang="en"] h1 { max-width: 19em; font-size: clamp(2.1rem, 4.7vw, 6rem); }
.hero p { margin-top: clamp(18px, 2.4vh, 28px); color: var(--paper-soft); font-size: clamp(1rem, 1.35vw, 1.75rem); }

.talk .stage { position: relative; display: block; text-align: center; }
.says { position: relative; }
.js .says { height: 100vh; height: 100svh; }
.say { padding: 48px 0; }
.js .say { position: absolute; inset: 0; padding: 0; opacity: 0; visibility: hidden; transform: translateY(14px); filter: blur(6px); transition: opacity .55s var(--out), transform .9s var(--out), filter .7s var(--out), visibility 0s .55s; }
.js .say.now { opacity: 1; visibility: visible; transform: none; filter: none; transition-delay: .08s, .08s, .08s, 0s; }
.js .said { position: absolute; left: 0; right: 0; bottom: calc(100% - var(--line-y) + 38px); display: flex; justify-content: center; align-items: flex-end; }
.js .say > :is(p, h2) { position: absolute; left: 0; right: 0; top: calc(var(--line-y) + 48px); }
.say > p { color: var(--paper); font: 500 clamp(1.35rem, 2.5vw, 3.4rem)/1.4 var(--serif); letter-spacing: -.02em; text-wrap: balance; }
html[data-lang="ko"] .say > p { font-family: "Noto Serif KR", serif; }
.say > h2 { font-size: clamp(1.6rem, 3.2vw, 4.5rem); }
.said pre { margin: 0; text-align: left; }
.said code { font: 400 clamp(1.05rem, 2.7vw, 3.9rem)/1.42 ui-monospace, "SF Mono", Menlo, Consolas, monospace; color: var(--paper); }
:is(.thought, .said code) b { font-weight: inherit; color: var(--orange); }
.thought { font: 500 clamp(1.5rem, 3.3vw, 4.8rem)/1.3 var(--serif); letter-spacing: -.025em; }
html[data-lang="ko"] .thought { font-family: "Noto Serif KR", serif; }
html[data-lang="en"] .thought { font-size: clamp(1.55rem, 3.3vw, 4.8rem); }
.js .thought { position: absolute; left: var(--gutter); right: var(--gutter); bottom: calc(100% - var(--line-y) + 34px); transform-origin: 50% 100%; transition: transform 1.1s var(--out), translate 1.1s var(--out), opacity .5s; }
.js .talk:is([data-step="1"], [data-step="2"]) .thought { translate: 0 calc(var(--up-to) - var(--line-y) + 34px); transform: scale(var(--up-size)); }
.js .talk[data-step="4"] .thought { opacity: 0; visibility: hidden; transition: opacity .4s, visibility 0s .4s; }
.talk { --up-to: 24vh; --up-size: .56; }
.blank i { display: block; width: 3px; height: clamp(2.6rem, 5vw, 4.5rem); background: var(--paper); animation: caret 1.15s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.pane { width: min(50em, 88vw); text-align: left; font-size: clamp(1rem, 1.3vw, 1.85rem); line-height: 1.25; color: var(--ink); background: #FBF9F5; border-radius: 10px; box-shadow: 0 26px 50px -16px rgb(0 0 0 / .65); }
.pane .bar { display: flex; align-items: center; gap: .45em; padding: .7em 1.1em; border-bottom: 1px solid var(--rule); font-size: .85em; font-weight: 500; }
.pane .bar i { width: .62em; height: .62em; border-radius: 50%; background: #CFC6B9; }
.pane .bar i + span, .pane .bar span { margin-left: .4em; }
.pane .rows { display: grid; grid-template-columns: .85fr 1.3fr 1.2fr auto; align-items: end; gap: .9em; padding: 1.1em 1.1em 1.2em; }
.pane small { display: block; margin-bottom: .45em; color: var(--ink-soft); font-size: .8em; }
.pane strong { display: flex; align-items: center; justify-content: space-between; gap: .5em; padding: .62em .8em; border: 1px solid #B9AFA2; border-radius: 6px; font-weight: 500; white-space: nowrap; }
.pane strong::after { content: ""; flex: none; width: .42em; height: .42em; border: solid var(--ink-soft); border-width: 0 1.5px 1.5px 0; rotate: 45deg; translate: 0 -.12em; }
.pane em { position: relative; padding: .66em 1.3em; background: var(--ink); color: var(--paper); border-radius: 6px; font-style: normal; font-weight: 500; text-align: center; }
.cur { position: absolute; left: 68%; top: 52%; max-width: none; }

.vision .stage { align-items: flex-start; padding-top: clamp(84px, 14vh, 150px); }
.vision h2, .mission h2 { font-size: clamp(2rem, 4vw, 5rem); }
.mission .stage { align-items: center; }
html[data-lang="en"] :is(.vision, .mission) h2 { max-width: 11.5em; }

.work .stage { display: block; padding-top: clamp(64px, 11vh, 130px); }
.work h2 { font-size: clamp(2rem, 4vw, 5rem); }
.work-text p { margin-top: clamp(12px, 1.8vh, 22px); color: var(--ink-soft); font-size: clamp(1rem, 1.35vw, 1.75rem); }
.fields li { padding: 22px 0; border-bottom: 2px solid var(--ink); font-weight: 500; font-size: clamp(1.2rem, 2vw, 2.4rem); line-height: 1.2; letter-spacing: -.015em; }
.fields small { margin-left: .5em; color: var(--ink-soft); font-size: .68em; font-weight: 400; letter-spacing: 0; }
.gl .fields li { position: absolute; left: var(--gutter); top: calc(var(--row) + var(--gap) * var(--i, 0)); padding: 0; border: 0; translate: 0 calc(-100% - var(--clear)); }

.mark .stage { display: block; text-align: center; }
.logo { width: min(50vw, 92vh, 1180px); margin: 0 auto; padding-top: 15vh; overflow: visible; box-sizing: content-box; }
.logo [data-part] { transition: opacity .9s var(--out), fill 1s var(--out); }
.js .mark[data-step="0"] :is([data-part="if"], [data-part="paren"], [data-part="dot"]),
.js .mark[data-step="1"] :is([data-part="if"], [data-part="dot"]) { opacity: 0; }
.js .mark:is([data-step="0"], [data-step="1"], [data-step="2"], [data-step="3"]) [data-part="dot"] { fill: var(--ink); }
.js .mark[data-step="5"] :is([data-part="if"], [data-part="paren"]) { opacity: .13; }
.gl .mark:not(.met) [data-part="line"] { opacity: 0; }
.gl .mark [data-part="line"] { transition: opacity .18s linear; }
.beat { padding: 40px 0; }
.js .beat { position: absolute; left: var(--gutter); right: var(--gutter); top: var(--beat, 72vh); padding: 0; opacity: 0; visibility: hidden; transform: translateY(14px); filter: blur(6px); transition: opacity .55s var(--out), transform .9s var(--out), filter .7s var(--out), visibility 0s .55s; }
.js .beat.now { opacity: 1; visibility: visible; transform: none; filter: none; transition-delay: .12s, .12s, .12s, 0s; }
.beat p { font: 500 clamp(1.3rem, 2.6vw, 3.4rem)/1.45 var(--serif); letter-spacing: -.02em; text-wrap: balance; }
html[data-lang="ko"] .beat p { font-family: "Noto Serif KR", serif; }
.beat .ask { font-size: clamp(1.5rem, 3.7vw, 4.75rem); line-height: 1.3; }
.ask q { quotes: "“" "”"; }
html .beat p.by { margin-top: .6em; color: var(--ink-soft); font: 400 clamp(1.0625rem, 1.5vw, 1.9rem)/1.5 var(--sans); letter-spacing: 0; }
.beat h2 { font-size: clamp(1.9rem, 4.4vw, 5.5rem); }

.close .stage { align-items: center; justify-content: center; text-align: center; }
.close h2 { padding-bottom: 5vh; font-size: clamp(2.1rem, 5vw, 6rem); line-height: 1.25; }
.cta { padding: .8em 1.5em; border-radius: 999px; background: var(--paper); color: var(--ink); font-size: clamp(1rem, 1.2vw, 1.5rem); font-weight: 500; line-height: 1.2; text-decoration: none; white-space: nowrap; transition: background .4s var(--out); }
.cta:hover { background: #fff; }
.js .cta { position: absolute; left: 50%; top: calc(var(--last-line, 61vh) + clamp(14px, 2.6vh, 36px)); translate: -50% 0; }
html:not(.js) .close .stage { flex-direction: column; }
footer { background: var(--ink); }
.foot { display: flex; align-items: center; gap: 12px 40px; padding: 40px var(--gutter); color: var(--paper-soft); font-size: .9375rem; }
.foot .lockup { height: 44px; width: auto; }
.foot p { margin-left: auto; }
.foot a { padding: 10px 0; text-underline-offset: .3em; text-decoration-thickness: 1px; }
.foot a:hover { color: var(--paper); }

/* the threads change layout with the screen's shape, so the words do too */
@media (max-aspect-ratio: 1/1) {
  .mission .stage { align-items: flex-end; padding-bottom: 14vh; }
  .mission h2 { max-width: none; }
  .talk { --up-to: 16.5vh; --up-size: .74; }
  .pane { width: min(24em, 84vw); }
  .pane .rows { grid-template-columns: 1fr 1fr; }
  .pane .rows > :nth-child(2) { grid-column: 1 / -1; order: 1; }
  .pane em { grid-column: 1 / -1; order: 2; }
  .thought { font-size: clamp(1.55rem, 6.6vw, 3rem); }
  .logo { width: 76vw; padding-top: 29vh; }
  .beat p { font-size: clamp(1.3rem, 3.6vw, 2rem); }
  .beat .ask { font-size: clamp(1.45rem, 4.4vw, 2.6rem); }
}
@media (max-height: 520px) and (min-aspect-ratio: 1/1) {
  h1, html[data-lang="en"] h1 { font-size: clamp(1.4rem, 7.4vh, 2rem); }
  .hero .stage { padding-bottom: 20px; }
  .hero p { margin-top: 8px; font-size: .9375rem; }
  .vision .stage { padding-top: 32px; }
  .vision h2, .mission h2, .work h2, .close h2 { font-size: clamp(1.4rem, 8vh, 2rem); }
  .work .stage { padding-top: 22px; }
  .work-text p { display: none; }
  .fields li { font-size: 1rem; }
  .logo { width: 84vh; padding-top: 10vh; }
  .beat p { font-size: 1.05rem; line-height: 1.35; }
  .beat .ask { font-size: 1.4rem; }
  .beat h2 { font-size: 1.6rem; }
  .cta { padding: .55em 1.2em; font-size: .9375rem; }
  .js .cta { top: calc(var(--last-line, 61vh) + 10px); }
  .talk { --up-to: 15vh; --up-size: .7; }
  .thought, html[data-lang="en"] .thought { font-size: 1.35rem; }
  .said code { font-size: .9rem; line-height: 1.3; }
  .pane { font-size: .75rem; }
  .pane .rows { padding-block: .7em; }
  .js .thought { bottom: calc(100% - var(--line-y) + 18px); }
  .js .said { bottom: calc(100% - var(--line-y) + 20px); }
  .js .say > :is(p, h2) { top: calc(var(--line-y) + 22px); }
  .say > h2, .say > p { font-size: 1.3rem; }
}
@media (max-width: 760px) {
  .top { padding-block: 18px; }
  .brand img { width: 68px; }
  .s { display: inline; }
  h1 { font-size: clamp(1.8rem, 8.4vw, 2.6rem); }
  html[data-lang="en"] h1 { font-size: clamp(1.9rem, 8vw, 2.5rem); }
  .vision h2, .mission h2, .work h2, html[data-lang="en"] :is(.vision, .mission) h2 { max-width: none; font-size: clamp(1.7rem, 7.4vw, 2.5rem); }
  .vision .stage { padding-top: 96px; }
  .work h2, html[data-lang="ko"] .work h2 { font-size: clamp(1.45rem, 6.5vw, 2.4rem); }
  .foot { flex-wrap: wrap; }
  .foot .lockup { width: auto; }
  .foot p { margin-left: 0; width: 100%; order: 2; }
  .foot a { order: 3; }
}
/* no WebGL or no script: the same scenes as still images */
html:is(.nogl, :not(.js)) .scene .stage { background: center / cover no-repeat; }
html:is(.nogl, :not(.js)) .hero .stage { background-image: url(assets/img/still-0.webp); }
html:is(.nogl, :not(.js)) .vision .stage { background-image: url(assets/img/still-2.webp); }
html:is(.nogl, :not(.js)) .mission .stage { background-image: url(assets/img/still-3.webp); }
html:is(.nogl, :not(.js)) .close .stage { background-image: url(assets/img/still-6.webp); }
html:is(.nogl, :not(.js)) .fields { margin-top: 8vh; }
.nogl .talk .stage::after { content: ""; position: absolute; left: 19%; right: 19%; top: var(--line-y); height: 12px; translate: 0 -50%; background: var(--orange); }
html:not(.js) .say { padding: 40px 0; }
html:not(.js) .thought { padding-top: 60px; }
html:not(.js) .said { display: flex; justify-content: center; }
html:not(.js) .say > p { margin-top: 20px; }
html:not(.js) .blank { display: none; }
@media (max-aspect-ratio: 1/1) {
  html:is(.nogl, :not(.js)) .scene .stage { background-size: 100% auto; background-position: center 46%; }
  html:is(.nogl, :not(.js)) .mission .stage { background-image: none; }
  .nogl .talk .stage::after { left: 7%; right: 7%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation: none !important; }
  .js :is(.say, .beat) { transform: none; filter: none; }
}
