:root,
.sw-root {
  color-scheme: light;
  --sw-bg: #ede8df;
  --sw-ink: #232323;
  --sw-ink-soft: #666159;
  --sw-accent: #c8523b;
  --sw-font-display: "Pretendard", sans-serif;
  --sw-font-body: "Pretendard", sans-serif;
  --page-x: clamp(52px, 5.7vw, 108px);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 1200px;
  background: var(--sw-bg);
  scrollbar-color: var(--sw-accent) var(--sw-bg);
}

body {
  min-width: 1200px;
  margin: 0;
  overflow-x: hidden;
  background: var(--sw-bg);
  color: var(--sw-ink);
  font-family: var(--sw-font-body);
  -webkit-font-smoothing: antialiased;
}

button {
  font: inherit;
}

::selection {
  color: #fff;
  background: var(--sw-accent);
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 11px 15px;
  color: #fff;
  background: var(--sw-ink);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.sw-root {
  background: var(--sw-bg);
}

.sw-topbar {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) auto minmax(270px, 1fr);
  align-items: center;
  height: 72px;
  padding: 0 var(--page-x);
  border-bottom: 1px solid rgb(35 35 35 / 16%);
  background: rgb(237 232 223 / 82%);
  backdrop-filter: blur(16px);
}

.sw-brand {
  justify-self: start;
  gap: 0;
}

.sw-brand__mark {
  display: none;
}

.sw-brand__name {
  color: var(--sw-ink);
  font-size: 0.95rem;
  font-weight: 760;
  letter-spacing: -0.035em;
}

.sw-nav {
  justify-self: center;
  gap: 22px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  backdrop-filter: none;
}

.sw-nav__item {
  position: relative;
  padding: 10px 0;
  border-radius: 0;
  color: var(--sw-ink-soft);
  font-size: 0.8rem;
  font-weight: 600;
}

.sw-nav__item::after {
  position: absolute;
  right: 0;
  bottom: 3px;
  left: 0;
  height: 1px;
  background: currentcolor;
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.sw-nav__item:hover,
.sw-nav__item.is-active {
  color: var(--sw-ink);
  background: transparent;
}

.sw-nav__item.is-active::after {
  transform: scaleX(1);
}

.sw-topcta {
  padding: 9px 14px;
  border: 1px solid var(--sw-ink);
  border-radius: 0;
  color: var(--sw-ink);
  background: transparent;
  font-size: 0.8rem;
}
.sw-top-actions {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 20px;
}

.sw-global-nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.sw-global-nav a {
  position: relative;
  padding: 10px 0;
  color: var(--sw-ink-soft);
  font-size: 0.76rem;
  font-weight: 600;
  text-decoration: none;
}

.sw-global-nav a::after {
  position: absolute;
  right: 0;
  bottom: 3px;
  left: 0;
  height: 1px;
  background: currentcolor;
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.sw-global-nav a:hover {
  color: var(--sw-ink);
}

.sw-global-nav a:hover::after {
  transform: scaleX(1);
}

.sw-global-nav a:focus-visible,
.sw-topcta:focus-visible,
.sw-btn:focus-visible {
  outline: 2px solid var(--sw-accent);
  outline-offset: 4px;
}

.sw-topcta {
  transition: color 180ms ease, background-color 180ms ease;
}

.sw-topcta:hover {
  color: var(--sw-bg);
  background: var(--sw-ink);
}


.sw-scrollbar {
  top: 72px;
  height: 2px;
  background: rgb(35 35 35 / 8%);
}

.sw-stage {
  top: 72px;
  height: calc(100vh - 72px);
}

.sw-scene {
  background: var(--sw-bg);
}

.sw-scene__video,
.sw-scene__still {
  object-fit: cover;
  object-position: center center;
}

.sw-copylayer {
  top: 72px;
  height: calc(100vh - 72px);
}

.sw-copylayer::before {
  width: min(58vw, 850px);
  background: linear-gradient(
    90deg,
    rgb(237 232 223 / 98%) 0%,
    rgb(237 232 223 / 92%) 39%,
    rgb(237 232 223 / 62%) 62%,
    transparent 100%
  );
}

.sw-copy {
  left: var(--page-x);
  width: min(43vw, 560px);
  max-height: calc(100vh - 112px);
  transform: translateY(-48%);
}

.sw-copy__identity {
  margin: 0 0 24px;
  padding: 0 0 22px;
  border-bottom: 1px solid rgb(35 35 35 / 18%);
}

.sw-copy__identity h1 {
  max-width: 10em;
  margin: 0;
  color: var(--sw-ink);
  font-size: clamp(2.45rem, 3.7vw, 4.4rem);
  font-weight: 620;
  letter-spacing: -0.07em;
  line-height: 0.98;
  word-break: keep-all;
}

.sw-copy__identity p {
  margin: 13px 0 0;
  color: var(--sw-ink-soft);
  font-size: 0.87rem;
}

.sw-copy__num {
  color: var(--sw-ink-soft);
  font-size: 0.67rem;
  letter-spacing: 0.12em;
}

.sw-copy__eyebrow {
  display: inline-block;
  margin-left: 10px;
  margin-top: 13px;
  color: var(--sw-accent);
  font-size: 0.73rem;
  font-weight: 760;
  letter-spacing: 0.08em;
  text-transform: none;
}

.sw-copy__title {
  --sw-title-size: clamp(2rem, 3.4vw, 4.05rem);

  max-width: none;
  margin: 10px 0 0;
  color: var(--sw-ink);
  font-size: calc(var(--sw-title-size) - 3px);
  font-weight: 620;
  letter-spacing: -0.065em;
  line-height: 0.99;
  text-shadow: 0 2px 24px var(--sw-bg);
  white-space: nowrap;
}

.sw-copy__title em {
  color: var(--sw-accent);
  font-size: calc(1em + 8px);
  font-style: normal;
}

.sw-copy__body {
  max-width: 32rem;
  margin: 17px 0 0;
  color: var(--sw-ink-soft);
  font-size: calc(0.91rem + 5px);
  line-height: 1.62;
  word-break: keep-all;
}

.sw-showcase {
  position: absolute;
  right: calc(var(--page-x) + 42px);
  bottom: 35px;
  left: var(--page-x);
  opacity: 0;
  pointer-events: none;
  will-change: opacity, transform;
}

.sw-showcase__head {
  margin: 0 2px 12px;
  color: var(--sw-ink);
}

.sw-showcase__head strong {
  font-size: 0.79rem;
  font-weight: 760;
  letter-spacing: -0.025em;
}

.sw-showcase__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: clamp(16px, 1.8vw, 28px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.sw-showcase__grid li {
  display: flex;
  min-width: 0;
}

.sw-work-frame {
  display: flex;
  width: 100%;
  flex-direction: column;
  padding: 9px 9px 0;
  border: 1px solid rgb(35 35 35 / 78%);
  border-radius: 1px;
  color: var(--sw-ink);
  background: #eee9e0;
  box-shadow:
    inset 0 0 0 3px rgb(255 255 255 / 38%),
    0 16px 34px rgb(70 59 48 / 18%);
  text-decoration: none;
  transform-origin: center bottom;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.sw-work-frame__picture {
  position: relative;
  display: block;
  aspect-ratio: 2.18 / 1;
  overflow: hidden;
  border: 1px solid rgb(35 35 35 / 34%);
  background-color: #d9d1c5;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 154%;
  box-shadow: inset 0 0 0 5px rgb(238 233 224 / 34%);
}

.sw-work-frame__picture::after {
  position: absolute;
  inset: 0;
  border: 1px solid rgb(255 255 255 / 34%);
  background: linear-gradient(135deg, rgb(255 255 255 / 10%), transparent 52%);
  content: "";
}

.sw-showcase--creator .sw-work-frame__picture {
  background-image: url("scroll-world/stills/creator.jpg");
}

.sw-showcase--reporting .sw-work-frame__picture {
  background-image: url("scroll-world/stills/reporting.jpg");
}

.sw-showcase--development .sw-work-frame__picture {
  background-image: url("scroll-world/stills/development.jpg");
}

.sw-showcase__grid li:nth-child(1) .sw-work-frame__picture {
  background-position: 18% 50%;
}

.sw-showcase__grid li:nth-child(2) .sw-work-frame__picture {
  background-position: 51% 43%;
  background-size: 142%;
}

.sw-showcase__grid li:nth-child(3) .sw-work-frame__picture {
  background-position: 84% 48%;
}

.sw-work-frame__caption {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: space-between;
  min-height: 54px;
  padding: 10px 4px 9px;
}

.sw-work-frame__caption strong,
.sw-work-frame__caption small {
  display: block;
}

.sw-work-frame__caption strong {
  overflow: hidden;
  font-size: 0.79rem;
  font-weight: 730;
  letter-spacing: -0.025em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sw-work-frame__caption small {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-top: 4px;
  color: var(--sw-ink-soft);
  font-size: 0.64rem;
}

.sw-work-frame__caption small span {
  color: var(--sw-accent);
  white-space: nowrap;
}

.sw-work-frame:hover,
.sw-work-frame:focus-visible {
  border-color: var(--sw-accent);
  box-shadow:
    inset 0 0 0 3px rgb(255 255 255 / 44%),
    0 20px 38px rgb(70 59 48 / 23%);
  transform: translateY(-6px);
}

.sw-work-frame:focus-visible {
  outline: 2px solid var(--sw-accent);
  outline-offset: 4px;
}

.sw-work-frame:active {
  transform: translateY(-2px) scale(0.99);
}

.sw-route {
  right: 24px;
  gap: 20px;
}

.sw-route::before {
  background: rgb(35 35 35 / 22%);
}

.sw-route__dot i {
  border: 1px solid var(--sw-ink);
  border-radius: 0;
  background: var(--sw-bg);
}

.sw-route__dot.is-active i {
  background: var(--sw-accent);
  box-shadow: 0 0 0 4px rgb(237 232 223 / 72%);
}

.sw-route__label {
  border: 1px solid rgb(35 35 35 / 16%);
  border-radius: 0;
  color: var(--sw-ink);
  background: rgb(237 232 223 / 90%);
}

.sw-hint {
  bottom: 22px;
  color: var(--sw-ink-soft);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: none;
}

.sw-hint i {
  width: 18px;
  height: 28px;
  border: 1px solid rgb(35 35 35 / 50%);
  border-radius: 10px;
}

.sw-hint i::after {
  width: 2px;
  height: 5px;
  background: var(--sw-accent);
}

.multiverse-error {
  width: 560px;
  margin: 32vh auto;
  padding: 20px 0;
  border-top: 1px solid var(--sw-ink);
}

.sw-scene--closing .sw-scene__still {
  filter: saturate(0.52) contrast(0.88) brightness(1.08);
}

.sw-scene--closing::after {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(90deg, rgb(237 232 223 / 96%) 0 38%, rgb(237 232 223 / 76%) 58%, rgb(237 232 223 / 22%) 100%),
    linear-gradient(0deg, rgb(237 232 223 / 34%), transparent 55%);
  content: "";
}

.sw-copy--closing {
  width: min(52vw, 690px);
}

.sw-copy--closing .sw-copy__eyebrow {
  margin-left: 12px;
  color: var(--sw-ink-soft);
}

.sw-copy--closing .sw-copy__title {
  --sw-title-size: clamp(2.8rem, 4.6vw, 5.3rem);

  max-width: 11.5em;
  line-height: 0.96;
}

.sw-copy--closing .sw-copy__title em {
  color: var(--sw-ink);
}

.sw-copy--closing .sw-copy__body {
  max-width: 37rem;
  font-size: calc(1rem + 5px);
}

.sw-copy__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 31px;
  pointer-events: auto;
}

.sw-btn {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 12px 17px;
  border: 1px solid var(--sw-ink);
  border-radius: 0;
  font-size: 0.8rem;
  font-weight: 690;
  text-decoration: none;
  transition: color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.sw-btn--primary {
  color: var(--sw-bg);
  background: var(--sw-ink);
}

.sw-btn--ghost {
  color: var(--sw-ink);
  background: rgb(237 232 223 / 74%);
}

.sw-btn:hover {
  transform: translateY(-3px);
}

.sw-btn--primary:hover {
  color: var(--sw-ink);
  background: var(--sw-bg);
}

.sw-btn--ghost:hover {
  color: var(--sw-bg);
  background: var(--sw-ink);
}

@media (prefers-reduced-motion: reduce) {
  .sw-work-frame,
  .sw-nav__item::after {
    transition: none;
  }
}
