:root {
  --paper: #f7f0ea;
  --ink: #29252e;
  --mauve: #9f6575;
  --clay: #c9a39a;
  --violet: #4e4750;
  --blue: #8f9ca4;
  --header-h: 72px;
  --page-x: clamp(22px, 6vw, 88px);
  --section-pad-top: calc(var(--header-h) + clamp(38px, 6vh, 72px));
  --section-pad-bottom: clamp(42px, 7vh, 72px);
  --content-max: 1120px;
  --copy-max: 620px;
  --grid-gap: clamp(34px, 6vw, 104px);
  --card-pad: clamp(18px, 2.2vw, 24px);
  --offset-shadow: clamp(7px, 1vw, 10px) clamp(8px, 1.2vw, 12px) 0;
  --header-gutter: clamp(10px, 3vw, 32px);
  --viewport-h: 100dvh;
}

@supports (height: 100svh) {
  :root {
    --viewport-h: 100svh;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  scrollbar-width: none;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Pretendard, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  word-break: keep-all;
  overflow-wrap: normal;
  overflow-x: hidden;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar,
.snap::-webkit-scrollbar {
  display: none;
}

a {
  color: inherit;
}

.site-header {
  position: fixed;
  top: clamp(10px, 1.35vw, 14px);
  left: 50%;
  z-index: 10;
  width: min(calc(100vw - (var(--header-gutter) * 2)), 690px);
  min-height: clamp(52px, 6vw, 56px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(10px, 2vw, 24px);
  padding: clamp(6px, 0.9vw, 8px) clamp(8px, 1.2vw, 10px) clamp(6px, 0.9vw, 8px) clamp(16px, 2.2vw, 22px);
  color: var(--ink);
  background: color-mix(in srgb, var(--paper) 40%, transparent);
  border: 1px solid color-mix(in srgb, #ffffff 58%, transparent);
  border-radius: 999px;
  box-shadow: 0 18px 48px color-mix(in srgb, #3b2a20 10%, transparent),
    inset 0 1px 0 color-mix(in srgb, #ffffff 78%, transparent),
    inset 0 -1px 0 color-mix(in srgb, #ffffff 28%, transparent);
  backdrop-filter: blur(34px) saturate(1.55) contrast(1.04);
  transform: translateX(-50%);
  overflow: hidden;
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 1px 1px auto;
  height: 50%;
  border-radius: 999px 999px 42px 42px;
  background: linear-gradient(
    180deg,
    color-mix(in srgb, #ffffff 36%, transparent),
    color-mix(in srgb, #ffffff 8%, transparent) 68%,
    transparent
  );
  pointer-events: none;
}

.site-header::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    circle at 18% 0%,
    color-mix(in srgb, #ffffff 34%, transparent),
    transparent 34%
  );
  pointer-events: none;
  opacity: 0.7;
}

.site-header > * {
  position: relative;
  z-index: 1;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  min-height: 38px;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}

.brand-wordmark {
  display: inline-block;
  font-family: Fraunces, Georgia, "Times New Roman", serif;
  font-size: clamp(24px, 2.2vw, 31px);
  font-weight: 850;
  line-height: 0.9;
  letter-spacing: 0;
  font-variation-settings: "SOFT" 35, "WONK" 0, "opsz" 72;
  transform: translateY(-1px);
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 2.1vw, 28px);
  min-width: 0;
  font-size: 14px;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.site-nav a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  color: color-mix(in srgb, var(--ink) 62%, transparent);
  text-decoration: none;
  white-space: nowrap;
  transition: color 160ms ease, transform 160ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--ink);
  transform: translateY(-1px);
}

.nav-cta {
  min-width: 86px;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 clamp(14px, 2vw, 18px);
  border-radius: 999px;
  color: var(--paper);
  background: var(--ink);
  box-shadow: 0 10px 24px color-mix(in srgb, var(--ink) 20%, transparent);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-decoration: none;
  white-space: nowrap;
  transition: background 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.nav-cta:hover,
.nav-cta:focus-visible {
  background: color-mix(in srgb, var(--ink) 88%, var(--mauve));
  transform: translateY(-1px);
  box-shadow: 0 13px 28px color-mix(in srgb, var(--ink) 24%, transparent);
}

.snap {
  height: var(--viewport-h);
  overflow-y: auto;
  overflow-x: hidden;
  scroll-snap-type: y mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.panel {
  min-height: var(--viewport-h);
  scroll-snap-align: start;
  scroll-snap-stop: always;
  position: relative;
  z-index: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--section-pad-top) var(--page-x) var(--section-pad-bottom);
  isolation: isolate;
  overflow: hidden;
}

.panel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: 180% 180%;
  animation: quiet-gradient 12s ease-in-out infinite alternate;
}

.panel::after {
  content: "";
  position: absolute;
  inset: -24%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 20% 30%, color-mix(in srgb, var(--blue) 44%, transparent), transparent 28%),
    radial-gradient(circle at 74% 64%, color-mix(in srgb, var(--mauve) 40%, transparent), transparent 32%),
    radial-gradient(circle at 48% 84%, color-mix(in srgb, var(--clay) 28%, transparent), transparent 30%);
  opacity: 0.36;
  animation: ambient-drift 11s ease-in-out infinite alternate;
}

.panel > * {
  position: relative;
  z-index: 1;
}

.intro::before {
  background:
    radial-gradient(circle at 78% 18%, color-mix(in srgb, var(--mauve) 42%, transparent), transparent 32%),
    radial-gradient(circle at 18% 76%, color-mix(in srgb, var(--blue) 48%, transparent), transparent 34%),
    linear-gradient(145deg, var(--ink), var(--violet));
}

.problem::before {
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--clay) 24%, transparent), transparent 38%),
    var(--paper);
}

.solution::before {
  background:
    radial-gradient(circle at 82% 70%, color-mix(in srgb, var(--blue) 42%, transparent), transparent 28%),
    linear-gradient(180deg, #fff8f2, var(--paper));
}

.bm::before {
  background:
    radial-gradient(circle at 22% 28%, color-mix(in srgb, var(--clay) 34%, transparent), transparent 34%),
    radial-gradient(circle at 84% 74%, color-mix(in srgb, var(--blue) 38%, transparent), transparent 32%),
    linear-gradient(145deg, var(--paper), #fff8f2);
}

.team::before {
  background:
    radial-gradient(circle at 16% 20%, color-mix(in srgb, var(--blue) 28%, transparent), transparent 28%),
    radial-gradient(circle at 74% 72%, color-mix(in srgb, var(--clay) 30%, transparent), transparent 34%),
    linear-gradient(145deg, #fff8f2, var(--paper));
}

.contact::before {
  background:
    radial-gradient(circle at 76% 22%, color-mix(in srgb, var(--mauve) 42%, transparent), transparent 34%),
    radial-gradient(circle at 24% 78%, color-mix(in srgb, var(--blue) 34%, transparent), transparent 30%),
    linear-gradient(145deg, var(--ink), var(--violet));
}

.intro-copy {
  width: 100%;
  max-width: min(980px, calc(100vw - (var(--page-x) * 2)));
  margin-inline: auto;
  text-align: center;
}

h1,
h2 {
  margin: 0;
  font-family: "Eulyoo1945", "Noto Serif KR", Newsreader, Georgia, serif;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: 0;
}

h1 {
  color: var(--paper);
  text-align: center;
  font-size: clamp(28px, 4.6vw, 56px);
}

h2 {
  max-width: min(980px, 100%);
  font-size: clamp(34px, 5.8vw, 78px);
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: clamp(28px, 5vh, 54px);
  width: clamp(42px, 5vw, 48px);
  height: clamp(42px, 5vw, 48px);
  display: grid;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--paper) 42%, transparent);
  border-radius: 50%;
  color: var(--paper);
  text-decoration: none;
  font-family: "IBM Plex Mono", monospace;
  font-size: 24px;
  line-height: 1;
  transform: translateX(-50%);
  opacity: 0.82;
  animation: cue-float 1.8s ease-in-out infinite;
}

.scroll-cue:hover,
.scroll-cue:focus-visible {
  opacity: 1;
}

.content-grid {
  display: grid;
  width: min(100%, var(--content-max));
  margin-inline: auto;
  grid-template-columns: minmax(0, 1.05fr) minmax(min(100%, 300px), 0.75fr);
  gap: var(--grid-gap);
  align-items: end;
}

.body-copy {
  max-width: var(--copy-max);
  padding-top: clamp(10px, 1.3vw, 16px);
  border-top: 1px solid color-mix(in srgb, var(--ink) 22%, transparent);
  font-size: clamp(17px, 1.55vw, 22px);
  line-height: 1.72;
  font-weight: 500;
}

.body-copy p {
  margin: 0;
}

.body-copy h3 {
  margin: 0 0 0.45em;
  font-size: 1.05em;
  line-height: 1.45;
  color: var(--mauve);
}

.body-copy p + h3 {
  margin-top: 1.35em;
}

.body-copy p + p {
  margin-top: 1.2em;
}

.bm-layout {
  display: grid;
  width: min(100%, var(--content-max));
  margin-inline: auto;
  grid-template-columns: minmax(0, 0.9fr) minmax(min(100%, 390px), 1fr);
  gap: var(--grid-gap);
  align-items: center;
}

.bm-note {
  max-width: min(560px, 100%);
  margin: clamp(20px, 3vw, 28px) 0 0;
  font-size: clamp(17px, 1.4vw, 21px);
  line-height: 1.7;
  font-weight: 500;
}

.bm-metrics {
  display: grid;
  gap: 0;
  max-width: min(620px, 100%);
  margin: clamp(22px, 3vw, 30px) 0 0;
  border-top: 1px solid color-mix(in srgb, var(--ink) 20%, transparent);
}

.bm-metrics div {
  display: grid;
  grid-template-columns: minmax(84px, 0.28fr) minmax(0, 1fr);
  gap: clamp(12px, 2vw, 18px);
  padding: clamp(12px, 1.5vw, 14px) 0;
  border-bottom: 1px solid color-mix(in srgb, var(--ink) 14%, transparent);
}

.bm-metrics dt {
  color: var(--mauve);
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.bm-metrics dd {
  margin: 0;
  color: var(--violet);
  font-size: clamp(14px, 1.05vw, 16px);
  font-weight: 700;
  line-height: 1.45;
}

.bm-diagram {
  position: relative;
  min-height: 520px;
}

.bm-node {
  position: absolute;
  min-height: 168px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  padding: 22px;
  border: 1px solid color-mix(in srgb, var(--ink) 18%, transparent);
  background: color-mix(in srgb, var(--paper) 82%, white);
  box-shadow: 10px 12px 0 color-mix(in srgb, var(--clay) 28%, transparent);
}

.bm-node strong {
  font-family: "Eulyoo1945", "Noto Serif KR", serif;
  font-size: clamp(25px, 2.4vw, 36px);
  line-height: 1.2;
}

.bm-node span {
  font-weight: 700;
}

.bm-node small {
  color: var(--violet);
  font-size: 14px;
  line-height: 1.55;
}

.bm-node.demand {
  top: 24px;
  left: 0;
  width: 38%;
}

.bm-node.platform {
  top: 18px;
  right: 0;
  width: 42%;
  background: var(--ink);
  color: var(--paper);
  box-shadow: 10px 12px 0 color-mix(in srgb, var(--blue) 36%, transparent);
}

.bm-node.platform small {
  color: color-mix(in srgb, var(--paper) 78%, transparent);
}

.bm-node.actor {
  left: 50%;
  bottom: 0;
  width: 36%;
  transform: translateX(-50%);
}

.bm-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.bm-lines .line {
  fill: none;
  stroke: var(--mauve);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 7 9;
  marker-end: url("#arrowhead");
}

.bm-lines marker path {
  fill: var(--mauve);
}

.bm-label {
  position: absolute;
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  font-weight: 700;
  color: var(--mauve);
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
}

.pay-label {
  top: 92px;
  left: 47%;
  transform: translateX(-50%);
}

.settle-label {
  top: 270px;
  right: 17%;
}

.supply-label {
  top: 278px;
  left: 16%;
}

.team-layout {
  display: grid;
  width: min(100%, var(--content-max));
  margin-inline: auto;
  grid-template-columns: minmax(min(100%, 340px), 0.82fr) minmax(0, 1fr);
  gap: clamp(34px, 5vw, 72px);
  align-items: center;
}

.team-images {
  position: relative;
  min-height: clamp(360px, 54vh, 560px);
}

.team-images img {
  position: absolute;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 1px solid color-mix(in srgb, var(--ink) 18%, transparent);
  background: var(--paper);
  box-shadow: var(--offset-shadow) color-mix(in srgb, var(--clay) 28%, transparent);
}

.team-wide {
  inset: 0 auto auto 0;
  height: 58% !important;
  object-position: 50% 42%;
}

.team-portrait {
  bottom: 0;
  width: 42% !important;
  height: 48% !important;
}

.team-portrait.jio {
  left: 8%;
  object-position: 50% 38%;
}

.team-portrait.sungmin {
  right: 8%;
  object-position: 50% 28%;
}

.team-copy .body-copy {
  max-width: 720px;
  font-size: clamp(14px, 1.08vw, 17px);
  line-height: 1.7;
}

.founder-name {
  color: var(--mauve);
  font-weight: 800;
  text-decoration-color: color-mix(in srgb, var(--mauve) 45%, transparent);
  text-underline-offset: 0.18em;
}

.contact-copy {
  max-width: min(900px, calc(100vw - (var(--page-x) * 2)));
  margin-inline: auto;
  text-align: center;
  color: var(--paper);
}

.contact {
  align-items: center;
  justify-content: center;
  padding-top: var(--header-h);
  padding-bottom: var(--header-h);
}

.contact-copy h2 {
  max-width: none;
  color: var(--paper);
}

.contact-copy p {
  max-width: min(780px, 100%);
  margin: clamp(22px, 3vw, 28px) auto 0;
  font-size: clamp(18px, 1.6vw, 24px);
  line-height: 1.7;
  font-weight: 500;
}

.mail-button {
  min-height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: clamp(30px, 5vw, 42px);
  padding: 0 clamp(22px, 3vw, 28px);
  border: 1px solid color-mix(in srgb, var(--paper) 58%, transparent);
  color: var(--paper);
  background: color-mix(in srgb, var(--paper) 9%, transparent);
  font-family: "IBM Plex Mono", monospace;
  font-size: clamp(14px, 1.3vw, 18px);
  font-weight: 700;
  text-decoration: none;
}

.mail-button:hover,
.mail-button:focus-visible {
  background: var(--paper);
  color: var(--ink);
}

@media (max-width: 1120px) {
  .content-grid,
  .bm-layout,
  .team-layout {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .body-copy,
  .bm-note,
  .bm-metrics {
    max-width: min(720px, 100%);
  }

  .bm-diagram {
    width: min(680px, 100%);
    margin-inline: auto;
  }

  .team-images {
    width: min(620px, 100%);
    min-height: clamp(320px, 52vw, 480px);
    margin-inline: auto;
  }
}

@media (max-width: 820px) {
  :root {
    --header-h: 64px;
    --page-x: clamp(18px, 5vw, 34px);
    --section-pad-top: calc(var(--header-h) + clamp(58px, 8vh, 92px));
    --section-pad-bottom: clamp(34px, 6vh, 54px);
    --grid-gap: clamp(28px, 6vw, 44px);
  }

  .site-header {
    width: min(calc(100vw - (var(--header-gutter) * 2)), 560px);
  }

  .site-nav {
    gap: 14px;
    font-size: 12px;
  }

  .nav-cta {
    min-width: clamp(68px, 16vw, 72px);
    min-height: 38px;
    padding-inline: clamp(12px, 3vw, 14px);
    font-size: 12px;
  }

  .panel {
    justify-content: flex-start;
    padding-top: var(--section-pad-top);
  }

  .intro {
    justify-content: center;
    padding-top: calc(var(--header-h) + clamp(42px, 7vh, 56px));
  }

  .contact {
    justify-content: center;
    padding-top: var(--header-h);
    padding-bottom: var(--header-h);
  }

  .content-grid {
    gap: var(--grid-gap);
  }

  h1 {
    font-size: clamp(30px, 8vw, 46px);
  }

  h2 {
    font-size: clamp(30px, 8.4vw, 48px);
  }

  .body-copy {
    font-size: clamp(16px, 2.8vw, 19px);
    line-height: 1.66;
  }
}

@media (max-width: 640px) {
  :root {
    --page-x: clamp(16px, 5vw, 24px);
    --section-pad-top: calc(var(--header-h) + clamp(42px, 7vh, 68px));
  }

  .site-header {
    width: min(calc(100vw - (var(--header-gutter) * 2)), 430px);
  }

  .brand-wordmark {
    font-size: clamp(20px, 5vw, 24px);
    letter-spacing: 0;
  }

  .site-nav {
    flex: 1 1 auto;
    justify-content: center;
    gap: 12px;
  }

  .site-nav a[href="#problem"],
  .site-nav a[href="#bm"] {
    display: none;
  }

  .team-layout {
    gap: clamp(24px, 6vw, 32px);
  }

  .team-images {
    min-height: clamp(260px, 72vw, 340px);
  }

  .team-copy .body-copy {
    font-size: 14px;
    line-height: 1.62;
  }

  .bm-layout {
    gap: clamp(24px, 6vw, 32px);
  }

  .bm-diagram {
    min-height: auto;
    display: grid;
    gap: clamp(10px, 3vw, 14px);
  }

  .bm-metrics div {
    grid-template-columns: minmax(72px, 0.28fr) minmax(0, 1fr);
    gap: clamp(10px, 3vw, 12px);
    padding: 12px 0;
  }

  .bm-node {
    position: static;
    width: auto;
    min-height: clamp(118px, 30vw, 132px);
    padding: clamp(16px, 4vw, 18px);
    transform: none;
  }

  .bm-node.demand,
  .bm-node.platform,
  .bm-node.actor {
    width: auto;
    transform: none;
  }

  .bm-node.demand {
    order: 1;
  }

  .pay-label {
    order: 2;
  }

  .bm-node.platform {
    order: 3;
  }

  .settle-label {
    order: 4;
  }

  .bm-node.actor {
    order: 5;
  }

  .supply-label {
    order: 6;
  }

  .bm-lines {
    display: none;
  }

  .bm-label {
    position: static;
    justify-self: center;
    transform: none;
  }

  .contact-copy p br {
    display: none;
  }
}

@media (max-width: 480px) {
  .site-header {
    justify-content: space-between;
  }

  .site-nav a[href="#team"] {
    display: none;
  }

  .brand-wordmark {
    font-size: clamp(18px, 5.4vw, 22px);
  }

  .nav-cta {
    min-width: auto;
    padding-inline: 12px;
  }
}

@media (max-width: 380px) {
  .site-nav {
    display: none;
  }

  .site-header {
    width: min(calc(100vw - 16px), 360px);
  }
}

@media (max-height: 720px) and (min-width: 821px) {
  :root {
    --section-pad-top: calc(var(--header-h) + 28px);
    --section-pad-bottom: 34px;
    --grid-gap: clamp(28px, 5vw, 72px);
  }

  .body-copy {
    font-size: clamp(15px, 1.25vw, 18px);
    line-height: 1.56;
  }

  h2 {
    font-size: clamp(32px, 7.4vh, 58px);
  }

  .bm-diagram {
    min-height: 450px;
  }

  .team-images {
    min-height: clamp(320px, 48vh, 430px);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .snap {
    scroll-snap-type: none;
  }

  .panel::before {
    animation: none;
  }

  .panel::after {
    animation: none;
  }

  .scroll-cue {
    animation: none;
  }
}

@keyframes quiet-gradient {
  from {
    background-position: 0% 35%;
    transform: scale(1);
  }

  to {
    background-position: 100% 65%;
    transform: scale(1.06);
  }
}

@keyframes ambient-drift {
  from {
    opacity: 0.26;
    transform: translate3d(-7%, -4%, 0) scale(1);
  }

  to {
    opacity: 0.7;
    transform: translate3d(7%, 5%, 0) scale(1.12);
  }
}

@keyframes cue-float {
  0%,
  100% {
    transform: translate(-50%, 0);
  }

  50% {
    transform: translate(-50%, 8px);
  }
}
