@font-face {
  font-family: "Pretendard";
  src: url("assets/fonts/Pretendard-Light.otf") format("opentype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Pretendard";
  src: url("assets/fonts/Pretendard-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Pretendard";
  src: url("assets/fonts/Pretendard-Medium.otf") format("opentype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Pretendard";
  src: url("assets/fonts/Pretendard-SemiBold.otf") format("opentype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --carbon: #2a2a2a;
  --ink: #000;
  --bone: #f0f0f0;
  --linen: #fafafa;
  --parchment: #f0edea;
  --ash: #d6d6d6;
  --stone: #bcbcb4;
  --header-height: 72px;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bone);
  color: var(--carbon);
  scroll-behavior: smooth;
  scroll-snap-type: y mandatory;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bone);
  color: var(--carbon);
  font-family: "Pretendard", "Helvetica Neue", sans-serif;
  font-weight: 400;
  font-feature-settings: "ss01" on, "ss02" on, "tnum" on;
}

button,
input,
textarea {
  font: inherit;
}

button {
  color: inherit;
  touch-action: manipulation;
}

button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 4px;
}

.site-header {
  position: fixed;
  z-index: 100;
  inset: 0 0 auto;
  height: var(--header-height);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 0 clamp(20px, 3vw, 48px);
  border-bottom: 1px solid var(--carbon);
  background: rgba(240, 240, 240, 0.94);
  backdrop-filter: blur(14px);
}

.wordmark,
.site-header nav button,
.header-action {
  appearance: none;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 12px;
  line-height: 1;
  letter-spacing: -0.018em;
}

.wordmark {
  justify-self: start;
  padding: 12px 0;
  font-weight: 500;
}

.wordmark span {
  margin: 0 8px;
  color: var(--stone);
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-header nav button {
  position: relative;
  padding: 29px 0 27px;
}

.site-header nav button::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -1px;
  height: 2px;
  background: var(--carbon);
  transition: right 180ms ease;
}

.site-header nav button:hover::after,
.site-header nav button.is-active::after {
  right: 0;
}

.header-action {
  justify-self: end;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--carbon);
  color: var(--linen);
}

.deck {
  width: 100%;
}

.slide {
  position: relative;
  min-height: 100svh;
  padding: calc(var(--header-height) + 32px) clamp(20px, 3vw, 48px) 32px;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  overflow: hidden;
}

.cover-slide {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(500px, 1.14fr);
  gap: 29px;
  padding-bottom: 24px;
}

.cover-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px 0 4px;
}

.cover-kicker,
.section-heading > p,
.process-copy > p:first-child,
.option-heading > div > p,
.closing-title > p {
  margin: 0;
  font-size: 12px;
  line-height: 1.17;
  letter-spacing: -0.018em;
}

.cover-copy h1 {
  margin: auto 0;
  font-size: clamp(64px, 6.8vw, 108px);
  font-weight: 300;
  line-height: 0.9;
  letter-spacing: -0.065em;
}

.cover-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
}

.cover-bottom p {
  max-width: 430px;
  margin: 0;
  font-size: 17px;
  line-height: 1.2;
  letter-spacing: -0.018em;
}

.cover-bottom button,
.dark-pill {
  appearance: none;
  flex: 0 0 auto;
  padding: 8px 15px;
  border: 0;
  border-radius: 999px;
  background: var(--carbon);
  color: var(--linen);
  cursor: pointer;
  font-size: 12px;
  line-height: 1;
}

.cover-visual {
  position: relative;
  min-width: 0;
  margin: 0;
  overflow: hidden;
}

.cover-visual img {
  width: 100%;
  height: calc(100svh - var(--header-height) - 56px);
  object-fit: cover;
}

.cover-visual figcaption {
  position: absolute;
  right: 0;
  bottom: 0;
  padding: 8px 10px;
  background: var(--bone);
  font-size: 11px;
}

.index-slide,
.option-index-slide {
  display: flex;
  flex-direction: column;
}

.section-heading {
  display: grid;
  grid-template-columns: 180px 1fr 360px;
  align-items: end;
  gap: 24px;
  margin: 12px 0 clamp(36px, 5vh, 62px);
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(46px, 5vw, 76px);
  font-weight: 300;
  line-height: 0.98;
  letter-spacing: -0.058em;
}

.section-heading > span {
  font-size: 17px;
  line-height: 1.2;
  letter-spacing: -0.018em;
}

.section-heading.compact {
  margin-bottom: clamp(28px, 4vh, 48px);
}

.story-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--carbon);
}

.story-grid button {
  appearance: none;
  position: relative;
  min-height: 180px;
  display: grid;
  grid-template-columns: 40px 1fr;
  grid-template-rows: auto 1fr;
  gap: 16px 24px;
  padding: 22px 24px;
  border: 0;
  border-right: 1px solid var(--carbon);
  border-bottom: 1px solid var(--carbon);
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.story-grid button:last-child {
  border-right: 0;
}

.story-grid b {
  font-size: 12px;
  font-weight: 400;
}

.story-grid strong {
  font-size: clamp(22px, 2vw, 34px);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.story-grid span {
  grid-column: 2;
  align-self: end;
  max-width: 260px;
  font-size: 14px;
  line-height: 1.2;
}

.story-grid button::after {
  content: "MORE +";
  position: absolute;
  right: 20px;
  bottom: 20px;
  padding: 6px 11px;
  border-radius: 999px;
  background: var(--carbon);
  color: var(--linen);
  font-size: 10px;
}

.story-strip {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 12px;
  margin-top: auto;
  padding-top: 28px;
}

.story-strip button {
  appearance: none;
  position: relative;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.story-strip img {
  width: 100%;
  aspect-ratio: 1;
  display: block;
  object-fit: cover;
}

.story-strip span {
  position: absolute;
  left: 0;
  bottom: 0;
  padding: 5px 7px;
  background: var(--bone);
  font-size: 10px;
}

.process-slide {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 370px);
  gap: clamp(28px, 4vw, 72px);
  align-items: center;
}

.process-image {
  min-width: 0;
  margin: 0;
}

.process-image img {
  width: min(100%, calc(100svh - var(--header-height) - 118px));
  max-height: calc(100svh - var(--header-height) - 118px);
  aspect-ratio: 1;
  display: block;
  margin: 0 auto;
  object-fit: contain;
}

.process-image figcaption {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 10px;
  font-size: 11px;
}

.process-copy {
  position: relative;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 18px 0;
  border-top: 1px solid var(--carbon);
  border-bottom: 1px solid var(--carbon);
}

.process-copy h2 {
  margin: 18px 0 0;
  font-size: clamp(40px, 4.1vw, 64px);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.055em;
}

.process-copy h2 span {
  display: block;
  white-space: nowrap;
}

.section-heading h2,
.process-copy h2,
.option-heading h2,
.closing-title h2,
.prompt-drawer header h2 {
  word-break: keep-all;
  overflow-wrap: normal;
  text-wrap: balance;
}

.process-number {
  margin: auto 0 0;
  font-size: clamp(88px, 11vw, 168px);
  font-weight: 300;
  line-height: 0.8;
  letter-spacing: -0.06em;
  color: var(--ash);
}

.process-summary {
  max-width: 340px;
  margin: 28px 0 20px;
  font-size: 17px;
  line-height: 1.2;
  letter-spacing: -0.018em;
}

.process-copy ul {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
}

.process-copy li {
  padding: 6px 10px;
  border: 1px solid var(--carbon);
  border-radius: 999px;
  font-size: 11px;
}

.process-copy .dark-pill {
  align-self: flex-start;
}

.option-index-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: auto;
}

.option-index-grid button {
  appearance: none;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.option-index-grid img {
  width: 100%;
  aspect-ratio: 1;
  display: block;
  object-fit: cover;
}

.option-index-grid button > div {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
  padding: 15px 0 0;
  border-top: 1px solid var(--carbon);
}

.option-index-grid b,
.option-index-grid strong,
.option-index-grid small {
  font-weight: 400;
}

.option-index-grid b,
.option-index-grid small {
  font-size: 11px;
}

.option-index-grid span {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.option-index-grid strong {
  font-size: 18px;
}

.option-slide {
  display: flex;
  flex-direction: column;
}

.option-heading {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(300px, 440px) auto;
  align-items: end;
  gap: 32px;
  margin: 4px 0 18px;
}

.option-heading h2 {
  margin: 8px 0 0;
  font-size: clamp(36px, 3.7vw, 58px);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.05em;
}

.option-heading > p {
  margin: 0;
  font-size: 15px;
  line-height: 1.2;
}

.before-after-grid {
  min-height: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: auto;
}

.before-after-grid figure {
  min-width: 0;
  margin: 0;
}

.before-after-grid img {
  width: 100%;
  height: min(67vh, calc(100svh - 235px));
  display: block;
  object-fit: contain;
  background: var(--parchment);
}

.before-after-grid figcaption {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 10px 0 0;
  border-top: 1px solid var(--carbon);
  font-size: 11px;
}

.before-after-grid figcaption b {
  font-weight: 500;
}

.closing-slide {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--parchment);
}

.closing-title {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 24px;
  align-items: start;
  padding-top: 24px;
}

.closing-title h2 {
  margin: 0;
  font-size: clamp(58px, 7.2vw, 116px);
  font-weight: 300;
  line-height: 0.94;
  letter-spacing: -0.066em;
}

.closing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--carbon);
}

.closing-grid article {
  display: flex;
  min-height: 150px;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px 20px;
  border-right: 1px solid var(--carbon);
}

.closing-grid article:last-child {
  border-right: 0;
}

.closing-grid b {
  font-size: clamp(48px, 5vw, 76px);
  font-weight: 300;
  line-height: 0.8;
}

.closing-grid span {
  font-size: 14px;
}

.closing-slide footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--carbon);
  font-size: 11px;
}

.closing-slide footer p {
  max-width: 620px;
  margin: 0;
  text-align: right;
}

.page-counter {
  position: fixed;
  z-index: 90;
  left: clamp(20px, 3vw, 48px);
  bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}

.page-counter i {
  width: 28px;
  height: 1px;
  background: var(--carbon);
}

.prompt-layer {
  position: fixed;
  z-index: 300;
  inset: 0;
  visibility: hidden;
  pointer-events: none;
}

.prompt-layer.is-open {
  visibility: visible;
  pointer-events: auto;
}

.prompt-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  border: 0;
  background: rgba(0, 0, 0, 0.46);
  opacity: 0;
  cursor: pointer;
  transition: opacity 180ms ease;
}

.prompt-layer.is-open .prompt-backdrop {
  opacity: 1;
}

.prompt-drawer {
  position: absolute;
  inset: 0 0 0 auto;
  width: min(720px, 92vw);
  display: flex;
  flex-direction: column;
  background: var(--linen);
  transform: translateX(100%);
  transition: transform 220ms ease;
}

.prompt-layer.is-open .prompt-drawer {
  transform: translateX(0);
}

.prompt-drawer > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 28px 24px;
  border-bottom: 1px solid var(--carbon);
}

.prompt-drawer header span,
.prompt-block h3 {
  font-size: 11px;
  font-weight: 400;
}

.prompt-drawer header h2 {
  margin: 8px 0 0;
  font-size: 34px;
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.close-button,
.prompt-block-head button {
  appearance: none;
  padding: 7px 12px;
  border: 0;
  border-radius: 999px;
  background: var(--carbon);
  color: var(--linen);
  cursor: pointer;
  font-size: 10px;
}

.prompt-scroll {
  overflow: auto;
  padding: 0 28px 40px;
}

.prompt-block {
  padding: 28px 0;
  border-bottom: 1px solid var(--carbon);
}

.prompt-block-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.prompt-block h3 {
  margin: 0;
}

.prompt-block pre {
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font: 400 13px/1.55 "Pretendard", sans-serif;
  letter-spacing: -0.01em;
}

.copy-toast {
  position: fixed;
  z-index: 400;
  left: 50%;
  bottom: 28px;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--carbon);
  color: var(--linen);
  opacity: 0;
  transform: translate(-50%, 10px);
  pointer-events: none;
  transition: 180ms ease;
  font-size: 12px;
}

.copy-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (max-width: 980px) {
  html {
    scroll-snap-type: none;
  }

  .site-header {
    grid-template-columns: 1fr auto;
  }

  .site-header nav {
    display: none;
  }

  .cover-slide,
  .process-slide {
    grid-template-columns: 1fr;
  }

  .cover-slide {
    padding-top: calc(var(--header-height) + 22px);
  }

  .cover-copy {
    min-height: 58svh;
  }

  .cover-visual img {
    height: auto;
    aspect-ratio: 1;
  }

  .section-heading,
  .closing-title {
    grid-template-columns: 1fr;
  }

  .section-heading > span {
    max-width: 520px;
  }

  .story-grid {
    grid-template-columns: 1fr;
  }

  .story-grid button {
    border-right: 0;
  }

  .story-strip {
    grid-template-columns: repeat(4, 1fr);
    margin-top: 34px;
  }

  .process-image img {
    width: 100%;
    max-height: none;
  }

  .process-copy {
    min-height: 520px;
  }

  .option-index-grid {
    grid-template-columns: 1fr 1fr;
  }

  .option-heading {
    grid-template-columns: 1fr auto;
  }

  .option-heading > p {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .before-after-grid {
    grid-template-columns: 1fr;
  }

  .before-after-grid img {
    height: auto;
    aspect-ratio: 1;
  }

  .closing-grid {
    grid-template-columns: 1fr 1fr;
  }

  .closing-grid article:nth-child(2) {
    border-right: 0;
  }

  .closing-grid article {
    border-bottom: 1px solid var(--carbon);
  }
}

@media (max-width: 620px) {
  :root {
    --header-height: 60px;
  }

  body {
    font-size: 16px;
  }

  .header-action {
    display: none;
  }

  .site-header {
    grid-template-columns: 1fr;
    padding-right: max(16px, env(safe-area-inset-right));
    padding-left: max(16px, env(safe-area-inset-left));
  }

  .wordmark {
    max-width: 100%;
    overflow: hidden;
    padding: 16px 0;
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .slide {
    min-height: auto;
    padding-top: calc(var(--header-height) + 28px);
    padding-right: max(16px, env(safe-area-inset-right));
    padding-bottom: 56px;
    padding-left: max(16px, env(safe-area-inset-left));
    overflow: visible;
  }

  .cover-copy {
    min-height: 460px;
    padding-top: 8px;
    padding-bottom: 24px;
  }

  .cover-copy h1 {
    margin: 58px 0;
    font-size: clamp(50px, 17vw, 72px);
    line-height: 0.94;
  }

  .cover-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 22px;
  }

  .cover-bottom p,
  .section-heading > span {
    font-size: 16px;
    line-height: 1.45;
  }

  .cover-bottom button,
  .dark-pill {
    min-height: 44px;
    padding: 0 18px;
    font-size: 12px;
  }

  .cover-visual {
    margin-right: -16px;
    margin-left: -16px;
  }

  .cover-visual figcaption {
    font-size: 10px;
  }

  .section-heading {
    gap: 14px;
    margin: 0 0 34px;
  }

  .section-heading h2,
  .closing-title h2 {
    font-size: clamp(40px, 12vw, 54px);
    line-height: 1.02;
  }

  .story-grid button {
    min-height: 154px;
    grid-template-columns: 32px 1fr;
    gap: 14px 12px;
    padding: 18px 16px;
  }

  .story-grid strong {
    font-size: 27px;
    line-height: 1.08;
  }

  .story-grid span {
    padding-right: 54px;
    font-size: 13px;
    line-height: 1.4;
  }

  .story-strip {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding-top: 20px;
  }

  .process-image {
    margin-right: -16px;
    margin-left: -16px;
  }

  .process-image figcaption {
    gap: 12px;
    padding: 9px 16px 0;
    font-size: 9px;
  }

  .process-copy {
    min-height: 0;
    margin-top: 24px;
    padding: 28px 0;
  }

  .process-copy h2 {
    margin-top: 12px;
    font-size: clamp(38px, 11vw, 48px);
    line-height: 1.06;
  }

  .process-number {
    margin: 38px 0 0;
    font-size: clamp(82px, 28vw, 112px);
  }

  .process-summary {
    max-width: none;
    margin: 24px 0 18px;
    font-size: 16px;
    line-height: 1.45;
  }

  .process-copy ul {
    margin-bottom: 20px;
  }

  .process-copy .dark-pill {
    width: 100%;
    align-self: stretch;
  }

  .option-index-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .option-index-grid strong {
    font-size: 20px;
  }

  .option-heading {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 18px;
    margin-bottom: 24px;
  }

  .option-heading > p {
    grid-column: auto;
    grid-row: auto;
    font-size: 15px;
    line-height: 1.45;
  }

  .option-heading .dark-pill {
    width: 100%;
    justify-self: start;
  }

  .option-heading h2 {
    font-size: clamp(38px, 11vw, 48px);
    line-height: 1.06;
  }

  .before-after-grid {
    gap: 34px;
  }

  .before-after-grid figcaption {
    font-size: 10px;
  }

  .closing-title {
    gap: 18px;
    padding-top: 0;
  }

  .closing-grid {
    grid-template-columns: 1fr;
    margin-top: 64px;
  }

  .closing-grid article {
    min-height: 110px;
    border-right: 0;
    padding: 16px 0;
  }

  .closing-grid b {
    font-size: 58px;
  }

  .closing-slide footer {
    align-items: flex-start;
    flex-direction: column;
    margin-top: 44px;
    padding-bottom: calc(8px + env(safe-area-inset-bottom));
  }

  .closing-slide footer p {
    text-align: left;
  }

  .page-counter {
    display: none;
  }

  .prompt-drawer {
    width: 100%;
    height: 100dvh;
  }

  .prompt-drawer > header {
    gap: 14px;
    padding: calc(18px + env(safe-area-inset-top)) 16px 16px;
  }

  .prompt-drawer header h2 {
    font-size: 25px;
    line-height: 1.12;
  }

  .close-button,
  .prompt-block-head button {
    min-height: 44px;
    padding: 0 14px;
    flex: 0 0 auto;
    font-size: 11px;
  }

  .prompt-scroll {
    min-height: 0;
    overscroll-behavior: contain;
    padding: 0 16px calc(32px + env(safe-area-inset-bottom));
  }

  .prompt-block {
    padding: 24px 0;
  }

  .prompt-block-head {
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
  }

  .prompt-block pre {
    font-size: 12.5px;
    line-height: 1.65;
  }

  .copy-toast {
    width: max-content;
    max-width: calc(100vw - 32px);
    bottom: calc(18px + env(safe-area-inset-bottom));
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@page {
  size: 16in 9in;
  margin: 0;
}

@media print {
  .site-header,
  .page-counter,
  .prompt-layer,
  .copy-toast {
    display: none !important;
  }

  .slide {
    min-height: 9in;
    height: 9in;
    padding-top: 32px;
    page-break-after: always;
    break-after: page;
  }

  .slide:last-child {
    page-break-after: auto;
  }
}
