/* Rumaru Studio, v2 draft. One giant thing and tiny text around it; the six jobs are an index that opens in place.
   Paper and ink instead of pure white and black; the page ends on one dark panel. No fade-up on scroll.
   Read design/DIRECTION.md before changing anything visible. */
@font-face { font-family: "SCD"; font-weight: 200; font-display: swap; src: url("../fonts/SCDream2.otf") format("opentype"); }
@font-face { font-family: "SCD"; font-weight: 600; font-display: swap; src: url("../fonts/SCDream6.otf") format("opentype"); }
@font-face { font-family: "Plex"; font-weight: 400; font-display: swap; src: url("../fonts/plex-kr-400.woff2") format("woff2"); }
@font-face { font-family: "Plex"; font-weight: 500; font-display: swap; src: url("../fonts/plex-kr-500.woff2") format("woff2"); }

:root { --bg: #f5f3ef; --ink: #171817; --mut: #6b6a64; --hair: #dcd9d2; --film: #0b0b0b;
  --pad: clamp(20px, 4.4vw, 64px); --gap: clamp(88px, 12vw, 168px); --r: clamp(14px, 1.8vw, 26px);
  --in: cubic-bezier(.16, 1, .3, 1); --move: cubic-bezier(.65, 0, .35, 1);
  --row: clamp(38px, min(7.2vw, 10vh), 124px); }

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { background: var(--bg); color: var(--ink); font: 400 15px/1.75 "Plex", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  word-break: keep-all; overflow-wrap: break-word; -webkit-font-smoothing: antialiased; }
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 2px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: var(--pad); top: 12px; background: var(--ink); color: var(--bg); padding: 8px 14px; z-index: 9; }
.wrap { max-width: 1480px; margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
.num { font-variant-numeric: tabular-nums; }
p, figcaption { text-wrap: pretty; }
.kick { font: 500 12px "Plex"; letter-spacing: .14em; }

/* header */
.top { display: flex; align-items: center; gap: 28px; height: 80px; font-size: 14px; }
.top .logo { display: flex; align-items: center; gap: 12px; margin-right: auto; font-weight: 500; }
.top .logo img { width: 30px; height: 30px; border-radius: 50%; }
.top { gap: 8px; }
.top nav { display: flex; gap: 6px; }
.top nav a, .top .lang, .top .ask { font-size: 13px; line-height: 1; padding: 9px 14px; border-radius: 999px; background: #eae7e1; transition: background .25s, color .25s; }
.top nav a:hover, .top .lang:hover { background: var(--ink); color: var(--bg); }
.top .lang { font-size: 12px; letter-spacing: .08em; }
.top .ask { background: var(--ink); color: var(--bg); padding: 9px 18px; margin-left: 10px; }
.top .ask:hover { background: #3a3b38; }

/* first screen: the sentence, a small note beside it, and the reel coming up from below */
.hero { padding-top: clamp(20px, 3.4vw, 56px); }
.say { display: flex; align-items: flex-end; justify-content: space-between; gap: clamp(24px, 4vw, 64px); }
h1 { font: 200 clamp(30px, 6.5vw, 112px)/1.14 "SCD", sans-serif; letter-spacing: -.065em; margin-left: -.04em; white-space: nowrap; }
h1 b, h2 b { font-weight: 600; }
.ln { display: block; overflow: hidden; padding-bottom: .06em; }
.ln > span { display: block; }
.lead { max-width: 24em; color: var(--mut); padding-bottom: .9em; }
.lead b { color: var(--ink); font-weight: 400; }
.film { background: var(--film); border-radius: var(--r); overflow: hidden; aspect-ratio: 16 / 9; width: 100%; position: relative; }
.film video { width: 100%; height: 100%; object-fit: cover; }
.zoom { position: absolute; right: 12px; bottom: 12px; font-size: 12px; line-height: 1; padding: 8px 12px; border-radius: 999px; background: rgba(11, 11, 11, .72); color: #f4f4f1; border: 1px solid rgba(244, 244, 241, .3); opacity: 0; transition: opacity .2s; }
.film:hover .zoom, .zoom:focus-visible { opacity: 1; }
@media (hover: none) { .zoom { opacity: 1; } }
.reel { margin-top: clamp(28px, 3.4vw, 52px); }
.note { display: flex; justify-content: space-between; gap: 20px; margin-top: 12px; font-size: 12px; color: var(--mut); }

section { padding-top: var(--gap); }
.head { display: flex; align-items: baseline; gap: 24px; border-top: 1px solid var(--ink); padding-top: 16px; }
.head > :last-child:not(:first-child) { margin-left: auto; }
.hint { font-size: 13px; color: var(--mut); }

/* the six jobs: an index that opens in place */
.idx { margin-top: clamp(20px, 2.6vw, 40px); border-bottom: 1px solid var(--hair); }
.row summary { display: grid; grid-template-columns: 3.2rem minmax(0, 1fr) auto 1.25rem; align-items: center; column-gap: 20px;
  font-size: var(--row); padding: .14em 0 .17em; border-top: 1px solid var(--hair); cursor: pointer; list-style: none; transition: opacity .24s; }
.row summary::-webkit-details-marker { display: none; }
.row .no, .row .meta { font: 500 13px "Plex"; letter-spacing: .08em; color: var(--mut); }
.row .meta { letter-spacing: .02em; text-align: right; }
.row .nm { font: 200 1em/1.16 "SCD", sans-serif; letter-spacing: -.065em; white-space: nowrap; display: flex; align-items: center; gap: .2em; transition: transform .52s var(--in); }
.chip { flex: none; display: block; width: .7em; height: .7em; border-radius: 999px; overflow: hidden; background: var(--film); box-shadow: 0 0 0 1px rgba(23, 24, 23, .1); transition: width .52s var(--in), opacity .3s; }
.chip img { width: 100%; height: 100%; object-fit: cover; }
.chip.tx { display: grid; place-items: center; }
.chip.tx b { font: 500 .32em/1 "Plex"; letter-spacing: 0; color: #f4f4f1; }
.pm { position: relative; width: 1.25rem; height: 1.25rem; justify-self: end; }
.pm:before, .pm:after { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 1px solid var(--ink); transition: transform .36s var(--move); }
.pm:after { transform: rotate(90deg); }
.row[open] .pm:after { transform: rotate(0); }
.row[open] .chip { width: 0; opacity: 0; }
@media (hover: hover) {
  .row summary:hover .nm { transform: translateX(.07em); }
  .row:not([open]) summary:hover .chip { width: 1.5em; }
  .idx:has(summary:hover) .row summary:not(:hover) { opacity: .28; }
}
.idx:has([open]) .row:not([open]) summary { opacity: .34; }
@media (hover: hover) { .idx:has([open]) .row:not([open]) summary:hover { opacity: 1; } }

.open { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 4vw, 68px); align-items: start; padding: clamp(14px, 1.8vw, 28px) 0 clamp(52px, 6.4vw, 96px); }
.open figcaption { margin-top: 12px; font-size: 12px; color: var(--mut); max-width: 56em; }
.facts > p:first-child { font-size: 16px; }
.facts dl { margin-top: 24px; }
.facts dl div { display: grid; grid-template-columns: 5.2em 1fr; gap: 12px; padding: 10px 0; border-top: 1px solid var(--hair); }
.facts dl div:last-child { border-bottom: 1px solid var(--hair); }
.facts dt { color: var(--mut); }
.fine { margin-top: 20px; font-size: 13px; color: var(--mut); }
.fine + .fine { margin-top: 8px; }
.pk { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(12px, 1.4vw, 20px); }
.pk li { display: grid; gap: 4px; padding: clamp(18px, 1.8vw, 26px); border-radius: var(--r); background: #ebe8e2; --mut: #62615b; }
.pk li > span { font-size: 12px; letter-spacing: .1em; color: var(--mut); }
.pk li strong { order: 2; font: 200 clamp(30px, 3.4vw, 50px)/1.2 "SCD", sans-serif; letter-spacing: -.05em; white-space: nowrap; margin: clamp(18px, 2.6vw, 40px) 0 6px; }
.pk li p { order: 3; font-size: 13px; color: var(--mut); }
.pk li p b { display: block; color: var(--ink); font-weight: 400; font-size: 15px; }
.go { display: inline-flex; align-items: center; gap: 10px; margin-top: 26px; font-size: 14px; line-height: 1; padding: 13px 20px; border-radius: 999px; background: var(--ink); color: var(--bg); transition: background .25s; }
.go i { font-style: normal; transition: transform .36s var(--in); }
.go:hover { background: #3a3b38; }
.go:hover i { transform: translateX(4px); }
.after { margin-top: 18px; font-size: 13px; color: var(--mut); }
/* server setup: a sample channel and permission plan, drawn as a table */
.plan .flow { display: flex; flex-wrap: wrap; gap: 6px 0; padding-bottom: 16px; }
.plan .flow li + li:before { content: "→"; color: var(--mut); margin: 0 .8em; }
.plan table { width: 100%; border-collapse: collapse; }
.plan th, .plan td { text-align: left; font-weight: 400; padding: 8px 0; border-top: 1px solid var(--hair); }
.plan thead th { font-size: 12px; color: var(--mut); border-top-color: var(--ink); }
.plan th + th, .plan td { width: 19%; }
.plan .cat th { font-size: 12px; color: var(--mut); letter-spacing: .08em; padding-top: 18px; border-top: 0; }
.plan tbody tr:last-child > * { border-bottom: 1px solid var(--hair); }
.plan td { color: var(--mut); }
.plan td b { color: var(--ink); font-weight: 500; }
.plan td i { font-style: normal; color: #bdbab2; }
.smp { margin-top: 24px; }
.smp p { font-size: 12px; color: var(--mut); margin-bottom: 8px; }
.smp button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 9px 0; border-top: 1px solid var(--hair); text-align: left; }
.smp li:last-child button { border-bottom: 1px solid var(--hair); }
.smp i { width: 22px; height: 22px; border: 1px solid var(--ink); border-radius: 50%; position: relative; flex: none; transition: box-shadow .2s; }
.smp i:before { content: ""; position: absolute; left: 8px; top: 6px; border: 4.5px solid transparent; border-left: 7px solid var(--ink); border-right: 0; }
.smp .on i { background: var(--ink); }
.smp .on i:before { left: 7px; top: 7px; width: 2px; height: 7px; border: 0; border-left: 2px solid var(--bg); border-right: 2px solid var(--bg); }
.smp button:hover i { box-shadow: 0 0 0 3px var(--hair); }
.smp time { margin-left: auto; color: var(--mut); font-size: 12px; }

/* the page ends on one dark panel: how it goes, who we are, where to write */
.tail { --bg: #171817; --ink: #f5f3ef; --mut: #9b9a93; --hair: #33342f; background: var(--bg); color: var(--ink);
  margin-top: var(--gap); border-radius: clamp(22px, 3vw, 44px) clamp(22px, 3vw, 44px) 0 0; }
.tail section:first-child { padding-top: clamp(56px, 7vw, 104px); }
h2 { font: 200 clamp(26px, 3.2vw, 46px)/1.25 "SCD", sans-serif; letter-spacing: -.055em; margin: clamp(24px, 3.4vw, 48px) 0 0 -.03em; text-wrap: balance; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(20px, 3vw, 44px); margin-top: clamp(28px, 4vw, 56px); }
.steps li { border-top: 1px solid var(--hair); padding-top: 16px; }
.steps span { font: 500 12px "Plex"; color: var(--mut); letter-spacing: .08em; }
.steps b { display: block; font-weight: 500; font-size: 19px; letter-spacing: -.02em; margin: 8px 0; }
.steps p { color: var(--mut); }
h2.big { font-size: clamp(34px, 6.5vw, 112px); line-height: 1.14; letter-spacing: -.065em; max-width: 11.5em; }
.about { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(28px, 4vw, 68px); align-items: start; margin-top: clamp(36px, 5vw, 80px); }
.about .body { font-size: 16px; color: var(--mut); }
.about .body p + p { margin-top: 1.1em; }
.ask2 h2 b { white-space: nowrap; }
.mail { display: inline-block; font: 200 clamp(24px, 6.4vw, 108px)/1.2 "SCD", sans-serif; letter-spacing: -.055em; margin: .5em 0 0 -.03em;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; transition: background-size .52s var(--in); }
.mail:hover { background-size: 0 1px; background-position: 100% 100%; }
.ask2 ul { margin-top: 28px; color: var(--mut); display: flex; flex-wrap: wrap; gap: 6px 28px; }
footer { padding-top: var(--gap); padding-bottom: 44px; font-size: 12px; line-height: 1.8; color: var(--mut); }
footer { container-type: inline-size; }
.mark { font: 600 11vw/.8 "SCD", sans-serif; font-size: calc(100cqw / 7.7); letter-spacing: -.055em; white-space: nowrap; color: #262723; margin: 0 0 clamp(28px, 4vw, 56px) -.05em; max-width: none; user-select: none; }
footer .row { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; border-top: 1px solid var(--hair); padding-top: 24px; }
footer .row p:last-child { display: flex; align-items: center; gap: 20px; }
footer a.up { text-decoration: none; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1px solid var(--hair); border-radius: 999px; color: var(--ink); transition: border-color .25s; }
footer a.up:hover { border-color: var(--ink); }
footer a.up i { font-style: normal; }
footer p { max-width: 64em; }
footer a { text-decoration: underline; text-underline-offset: 3px; }

/* motion, only when it is welcome. Three things move: the first screen arrives, a row opens, one headline fills with ink. */
@media (prefers-reduced-motion: no-preference) {
  .ln > span { animation: up 1.1s var(--in) both; }
  .ln:nth-child(2) > span { animation-delay: .09s; }
  .ln:nth-child(3) > span { animation-delay: .18s; }
  .lead, .reel { animation: rise 1.1s .34s var(--in) both; }
  .row[open] .open > * { animation: rise .8s .06s var(--in) both; }
  .row[open] .open > :nth-child(2) { animation-delay: .14s; }
  @keyframes up { from { transform: translateY(108%); } }
  @keyframes rise { from { opacity: 0; transform: translateY(22px); } }
  @supports (interpolate-size: allow-keywords) {
    :root { interpolate-size: allow-keywords; }
    .row::details-content { block-size: 0; overflow: clip; transition: block-size .56s var(--move), content-visibility .56s allow-discrete; }
    .row[open]::details-content { block-size: auto; }
  }
  @supports (animation-timeline: view()) {
    .sweep { color: transparent; background: linear-gradient(90deg, var(--ink) 0 46%, #4b4c47 54% 100%) 100% 0 / 220% 100% no-repeat; -webkit-background-clip: text; background-clip: text;
      animation: ink linear both; animation-timeline: view(); animation-range: entry 30% cover 58%; }
    @keyframes ink { to { background-position: 0 0; } }
  }
}

@media (max-width: 900px) {
  :root { --row: clamp(30px, 9.2vw, 72px); }
  :root:lang(en) { --row: clamp(26px, 7.9vw, 64px); }
  .top nav { display: none; }
  .say { display: block; }
  h1 { font-size: clamp(28px, 8.3vw, 68px); }
  .lead { max-width: 34em; padding: 1.4em 0 0; }
  .head { flex-wrap: wrap; }
  .hint { order: 3; flex-basis: 100%; }
  .row summary { grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; padding: .34em 0 .3em; }
  .row .no { grid-column: 1 / -1; margin-bottom: 2px; }
  .row .nm { grid-column: 1; }
  .row .meta { grid-column: 1; grid-row: 3; text-align: left; margin-top: 2px; }
  .pm { grid-column: 2; grid-row: 2 / 4; }
  .open, .about, .pk { grid-template-columns: 1fr; }
  .pk li strong { margin-top: 8px; }
  .top .lang { margin-left: 0; }
  .steps { grid-template-columns: 1fr 1fr; }
  h2.big { font-size: clamp(32px, 9.4vw, 76px); }
  .mail { font-size: clamp(22px, 7.4vw, 60px); }
}
@media (max-width: 520px) {
  .top { height: 64px; gap: 16px; }
  .note { flex-direction: column; gap: 2px; }
  .steps { grid-template-columns: 1fr; }
}
