/* BRAND & BASE — 모바일을 기준으로 작성합니다. */
:root {
  --color-sand: #cfb182;
  --color-dark: #25251e;
  --color-background: #1c1b17;
  --color-card: #2d2a23;
  --color-text: #f2efe8;
  --color-secondary: #bdb5a6;
  --color-muted: #aaa294;
  --color-border: rgb(207 177 130 / 22%);
  --color-ledger-text: #39352d;
  --container-width: 1160px;
  --header-height: 72px;
  --section-space: 88px;
  --font-sans: "Arrakis Site Sans", Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height) + 24px); }
body { margin: 0; background: var(--color-background); color: var(--color-text); font-family: var(--font-sans); font-size: 16px; line-height: 1.75; -webkit-font-smoothing: antialiased; word-break: keep-all; overflow-wrap: anywhere; }
h1, h2, h3, p, ol, dl, dd { margin: 0; }
h1, h2, h3 { font-weight: 500; line-height: 1.3; letter-spacing: -0.045em; text-wrap: balance; }
h2 { font-size: 32px; }
h3 { font-size: 21px; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
::selection { background: var(--color-sand); color: var(--color-background); }
:focus-visible { outline: 2px solid var(--color-sand); outline-offset: 6px; border-radius: 2px; }
main:focus { outline: none; }
.container { width: min(calc(100% - 48px), var(--container-width)); margin-inline: auto; }
.section { padding-block: var(--section-space); }
.text-sand { color: var(--color-sand); }
.desktop-break { display: none; }
.prose { max-width: 680px; color: var(--color-secondary); font-size: 16px; line-height: 1.8; }
.prose p + p { margin-top: 22px; }
.eyebrow { display: flex; gap: 14px; align-items: center; margin-bottom: 28px; font-size: 13px; color: var(--color-secondary); letter-spacing: 0.025em; }
.section-number { color: var(--color-sand); font-size: 12px; font-variant-numeric: tabular-nums; letter-spacing: 0.1em; }
.editorial-grid { display: grid; gap: 36px; }
.skip-link { position: fixed; z-index: 20; top: 12px; left: 24px; padding: 10px 18px; color: var(--color-dark); background: var(--color-sand); transform: translateY(-180%); }
.skip-link:focus { transform: translateY(0); }

/* HEADER */
.site-header { position: sticky; top: 0; z-index: 10; height: var(--header-height); background: var(--color-dark); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 100%; border-bottom: 1px solid var(--color-border); gap: 12px; }
.brand, .footer-brand { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 500; letter-spacing: -0.035em; }
.brand img { width: 28px; height: auto; flex: none; }
.site-header nav { display: flex; gap: 18px; flex: none; }
.site-header nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--color-secondary); font-size: 14px; transition: color 0.2s; }
.site-header nav a:hover, .site-header nav a:focus-visible { color: var(--color-sand); }

/* HERO — 움직이지 않는 가는 곡선만 사용합니다. */
.hero { position: relative; isolation: isolate; background: var(--color-dark); overflow: hidden; }
.hero-landscape { position: absolute; z-index: -1; width: 100%; height: 100%; inset: 0; color: var(--color-sand); opacity: 0.14; pointer-events: none; }
.hero-inner { display: flex; flex-direction: column; justify-content: center; min-height: calc(82svh - var(--header-height)); padding-top: 64px; padding-bottom: 28px; }
.hero-copy { padding-block: 0 54px; }
.hero-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 30px; color: var(--color-sand); font-size: 11px; letter-spacing: 0.035em; }
.small-rule { display: block; width: 24px; height: 1px; background: var(--color-sand); }
.brand-divider { color: var(--color-muted); }
.hero h1 { max-width: 1160px; font-size: 34px; line-height: 1.33; font-weight: 500; letter-spacing: -0.05em; text-wrap: initial; }
.hero-line, .hero-repeat { display: block; }
.hero-description { max-width: 570px; margin-top: 30px; color: var(--color-secondary); font-size: 16px; line-height: 1.85; }
.scroll-cue { display: inline-flex; align-items: center; gap: 20px; align-self: flex-start; min-height: 44px; color: var(--color-secondary); font-size: 12px; }
.scroll-cue:hover { color: var(--color-sand); }
.scroll-arrow { font-size: 22px; font-weight: 300; line-height: 1; }

/* PROBLEM */
.problem { border-bottom: 1px solid var(--color-border); }
.closing-line { color: var(--color-sand); }
.problem-copy .closing-line { margin-top: 30px; }

/* PRODUCT SHIFT — 이미지 없는 CSS 다이어그램 */
.shift-grid { display: grid; gap: 36px; }
.shift-copy { margin-top: 30px; }
.direction-diagram { display: grid; gap: 12px; align-self: start; }
.direction-row { padding: 22px 24px 24px; border: 1px solid var(--color-border); }
.direction-before { color: var(--color-secondary); }
.direction-after { color: var(--color-sand); background: var(--color-card); border-color: rgb(207 177 130 / 45%); }
.direction-label { margin-bottom: 20px; font-size: 13px; }
.direction-flow { display: grid; grid-template-columns: 1fr 0.7fr 1fr; align-items: center; gap: 16px; }
.flow-node { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; font-size: 14px; }
.flow-arrow { position: relative; height: 1px; margin-top: -34px; background: currentColor; opacity: 0.75; }
.flow-arrow::after { position: absolute; content: ""; width: 7px; height: 7px; top: -3px; right: 0; border-top: 1px solid currentColor; border-right: 1px solid currentColor; transform: rotate(45deg); }
.diagram-icon { position: relative; display: block; width: 30px; height: 30px; }
.person-icon::before { position: absolute; content: ""; width: 11px; height: 11px; left: 10px; top: 0; border: 1px solid currentColor; border-radius: 50%; }
.person-icon::after { position: absolute; content: ""; width: 26px; height: 13px; bottom: 0; left: 2px; border: 1px solid currentColor; border-radius: 13px 13px 0 0; }
.screen-icon { width: 33px; height: 24px; margin-block: 1px 5px; border: 1px solid currentColor; border-radius: 2px; }
.screen-icon::before { position: absolute; content: ""; top: 5px; left: 5px; right: 5px; height: 1px; background: currentColor; opacity: 0.6; }
.screen-icon::after { position: absolute; content: ""; width: 15px; height: 5px; bottom: -6px; left: 8px; border-bottom: 1px solid currentColor; }
.task-icon { width: 23px; height: 29px; border: 1px solid currentColor; border-radius: 2px; }
.task-icon::before, .task-icon::after { position: absolute; content: ""; height: 1px; left: 5px; right: 5px; top: 10px; background: currentColor; }
.task-icon::after { top: 17px; right: 8px; }

/* HOW IT WORKS */
.how-it-works { margin-top: 76px; }
.workflow-heading { display: flex; flex-direction: column; gap: 10px; margin-bottom: 36px; }
.workflow-heading p { color: var(--color-muted); font-size: 14px; }
.steps { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; padding: 0; list-style: none; }
.step { position: relative; padding-top: 20px; border-top: 1px solid var(--color-border); }
.step-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 24px; }
.step-number { color: var(--color-sand); font-size: 30px; line-height: 1; font-weight: 300; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.step-category { color: var(--color-muted); font-size: 13px; }
.step h3 { margin-bottom: 14px; }
.step > p { color: var(--color-secondary); font-size: 16px; line-height: 1.8; }

/* WORK LEDGER — 전체 폭의 독립 섹션 */
.work-ledger { background: var(--color-sand); color: var(--color-dark); }
.work-ledger ::selection { background: var(--color-dark); color: var(--color-sand); }
.work-ledger .eyebrow, .work-ledger .section-number { color: var(--color-ledger-text); }
.ledger-grid { display: grid; gap: 36px; }
.work-ledger h2 { font-size: 38px; line-height: 1.28; }
.ledger-definition { margin-top: 28px; font-size: 17px; line-height: 1.75; }
.ledger-definition strong { font-weight: 600; }
.ledger-copy { color: var(--color-ledger-text); }
.ledger-details { display: grid; gap: 0; margin-top: 42px; border-top: 1px solid rgb(37 37 30 / 25%); }
.ledger-details > div { display: flex; justify-content: space-between; gap: 20px; padding-block: 18px; border-bottom: 1px solid rgb(37 37 30 / 20%); }
.ledger-details dt { font-size: 20px; font-weight: 500; letter-spacing: -0.035em; }
.ledger-details dd { align-self: center; color: var(--color-ledger-text); font-size: 14px; }

/* NAME */
.name-story { position: relative; }
.name-wordmark { margin-top: 18px; color: var(--color-sand); font-size: 14px; letter-spacing: 0.055em; }
.footprints { position: absolute; right: max(24px, calc((100% - var(--container-width)) / 2)); bottom: 26px; width: 180px; height: auto; color: var(--color-sand); opacity: 0.3; pointer-events: none; }

/* COMPANY */
.company { background: var(--color-dark); }
.company-english { margin-top: 18px; color: var(--color-muted); font-size: 14px; letter-spacing: 0.045em; }
.company-statement { max-width: 680px; margin-bottom: 22px; font-size: 24px; line-height: 1.5; letter-spacing: -0.04em; }
.company-direction { margin-top: 48px; }
.direction-caption { margin-bottom: 20px; color: var(--color-muted); font-size: 13px; }
.company-flow { display: grid; grid-template-columns: 1fr; gap: 0; padding: 0; list-style: none; border-top: 1px solid var(--color-border); }
.company-flow li { position: relative; padding: 26px 0; border-bottom: 1px solid var(--color-border); color: var(--color-sand); font-size: 20px; letter-spacing: -0.035em; }
.company-flow li:not(:last-child)::after { position: absolute; right: 3px; top: 23px; content: "↓"; color: var(--color-secondary); font-size: 22px; font-weight: 300; }
.product-status { display: flex; align-items: baseline; gap: 10px; margin-top: 34px; color: var(--color-secondary); font-size: 14px; }
.status-dot { width: 5px; height: 5px; flex: none; align-self: flex-start; margin-top: 10px; border-radius: 50%; background: var(--color-sand); }

/* FOOTER */
.site-footer { padding-block: 36px; background: var(--color-dark); border-top: 1px solid var(--color-border); }
.footer-inner { display: flex; flex-direction: column; gap: 26px; }
.footer-brand { gap: 12px; }
.footer-brand img { width: 28px; }
.copyright { color: var(--color-muted); font-size: 12px; line-height: 1.7; }

/* REVEAL — JS가 작동하지 않아도 모든 콘텐츠는 기본적으로 표시됩니다. */
[data-reveal] { transition: opacity 0.45s ease, transform 0.45s ease; }
.is-reveal-pending { opacity: 0; transform: translateY(16px); }

/* TABLET */
@media (min-width: 640px) {
  :root { --section-space: 100px; }
  .container { width: min(calc(100% - 80px), var(--container-width)); }
  .brand { gap: 12px; font-size: 16px; }
  .brand img { width: 30px; }
  .site-header nav { gap: 32px; }
  .site-header nav a { font-size: 15px; }
  h2 { font-size: 36px; }
  .desktop-break { display: initial; }
  .hero-inner { padding-top: 76px; padding-bottom: 36px; }
  .hero h1 { font-size: clamp(42px, 5.3vw, 58px); }
  .hero-repeat { display: inline; }
  .hero-brand { font-size: 12px; margin-bottom: 36px; }
  .hero-description { font-size: 17px; margin-top: 34px; }
  .hero-copy { padding-bottom: 60px; }
  .prose { font-size: 17px; }
  .direction-diagram { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .direction-row { padding: 24px; }
  .workflow-heading { flex-direction: row; align-items: baseline; justify-content: space-between; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 28px; }
  .work-ledger h2 { font-size: 46px; }
  .ledger-details { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 48px; border-bottom: 1px solid rgb(37 37 30 / 25%); }
  .ledger-details > div { flex-direction: column; gap: 10px; border: 0; padding-block: 24px; }
  .ledger-details dd { align-self: start; }
  .footprints { width: 230px; right: 40px; }
  .company-statement { font-size: 28px; }
  .company-flow { grid-template-columns: repeat(4, minmax(0, 1fr)); border-bottom: 1px solid var(--color-border); }
  .company-flow li { border: 0; padding-block: 26px; font-size: 18px; }
  .company-flow li:not(:first-child) { padding-left: 10px; }
  .company-flow li:not(:last-child)::after { content: "→"; right: 14px; top: 21px; }
  .footer-inner { flex-direction: row; justify-content: space-between; align-items: center; }
  .copyright { text-align: right; }
}

/* DESKTOP */
@media (min-width: 1025px) {
  :root { --header-height: 80px; --section-space: 116px; }
  h2 { font-size: 36px; }
  .hero-inner { min-height: calc(82svh - var(--header-height)); padding-top: 90px; padding-bottom: 28px; }
  .hero-copy { padding-bottom: 78px; }
  .hero h1 { font-size: clamp(46px, 4.08vw, 60px); line-height: 1.38; }
  .hero-brand { margin-bottom: 36px; }
  .hero-description { margin-top: 32px; line-height: 1.8; }
  .hero-landscape { opacity: 0.16; }
  .editorial-grid { grid-template-columns: 1fr 1.1fr; gap: 90px; }
  .problem-copy { padding-top: 4px; }
  .eyebrow { margin-bottom: 30px; }
  .shift-grid { grid-template-columns: 1.17fr 1fr; gap: 100px; }
  .shift-grid h2 { font-size: 36px; }
  .shift-copy { max-width: 465px; }
  .direction-diagram { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .direction-row { padding: 22px 32px 24px; }
  .direction-label { margin-bottom: 16px; }
  .direction-flow { grid-template-columns: 1fr 1.2fr 1fr; gap: 30px; }
  .flow-node { font-size: 15px; }
  .how-it-works { margin-top: 100px; }
  .workflow-heading { margin-bottom: 40px; }
  .workflow-heading h2 { font-size: 30px; }
  .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
  .step { padding-top: 24px; }
  .step-top { margin-bottom: 34px; padding-right: 24px; }
  .step:not(:last-child) .step-top::after { position: absolute; right: 0; content: "→"; color: var(--color-muted); font-size: 18px; font-weight: 300; }
  .step h3 { min-height: 54px; font-size: 20px; line-height: 1.4; text-wrap: initial; }
  .step > p { max-width: 250px; }
  .ledger-grid { grid-template-columns: 1fr 1.1fr; gap: 90px; }
  .work-ledger h2 { font-size: 52px; }
  .ledger-definition { margin-top: 32px; font-size: 18px; }
  .ledger-copy { padding-top: 4px; }
  .ledger-details { margin-top: 60px; }
  .ledger-details > div { flex-direction: row; align-items: baseline; justify-content: start; gap: 32px; padding-block: 26px; }
  .ledger-details > div:not(:first-child) { padding-left: 32px; }
  .ledger-details dd { align-self: center; }
  .ledger-details dt { font-size: 22px; }
  .name-story { padding-bottom: 136px; }
  .footprints { right: max(40px, calc((100% - var(--container-width)) / 2)); bottom: 38px; width: 260px; }
  .company-statement { font-size: 28px; }
  .company-direction { margin-top: 62px; }
  .company-flow li { font-size: 24px; padding-block: 32px; }
  .company-flow li:not(:first-child) { padding-left: 24px; }
  .company-flow li:not(:last-child)::after { right: 26px; top: 30px; }
  .product-status { margin-top: 30px; }
  .site-footer { padding-block: 44px; }
}

/* ACCESSIBILITY — OS 설정 변경에도 즉시 대응합니다. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .is-reveal-pending { opacity: 1; transform: none; }
}

@media print {
  :root { --color-text: #25251e; --color-secondary: #39352d; --color-muted: #39352d; --color-sand: #655033; }
  body, .hero, .company, .site-footer, .work-ledger { background: white; color: #25251e; }
  .site-header, .scroll-cue, .hero-landscape, .footprints { display: none; }
  .hero-inner { min-height: auto; padding-block: 40px; }
  .hero-copy { padding-bottom: 0; }
  .section { padding-block: 40px; }
  [data-reveal] { opacity: 1; transform: none; }
  h2, h3 { break-after: avoid; }
  .step { break-inside: avoid; }
}
