:root {
  --ink: #202321;
  --muted: #666d69;
  --line: rgba(55, 61, 58, 0.17);
  --paper: #f6f3eb;
  --content: 1240px;
  --gutter: 40px;
  color: var(--ink);
  background: var(--paper);
  font-family: "Noto Sans KR", Arial, sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 150px;
  overflow-x: hidden;
}

body {
  min-width: 0;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 8% 9%, rgba(224, 191, 132, 0.18), transparent 25%),
    radial-gradient(circle at 92% 20%, rgba(225, 117, 78, 0.08), transparent 24%),
    radial-gradient(circle at 76% 70%, rgba(38, 126, 116, 0.1), transparent 31%),
    linear-gradient(145deg, #f9f6ef 0%, #f1eee5 53%, #eef3ee 100%);
  background-attachment: fixed;
  color: var(--ink);
}

a {
  color: inherit;
}

button {
  font: inherit;
}

.principle-header {
  position: relative;
  z-index: 20;
  width: 100%;
  height: 84px;
  padding: 8px var(--gutter) 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.72);
  background:
    radial-gradient(circle at 18% -16%, rgba(230, 198, 137, 0.34), transparent 40%),
    radial-gradient(circle at 88% 118%, rgba(113, 181, 165, 0.27), transparent 42%),
    radial-gradient(circle at 63% -30%, rgba(235, 154, 118, 0.17), transparent 34%),
    linear-gradient(102deg, rgba(250, 246, 235, 0.82), rgba(232, 244, 238, 0.7));
  box-shadow: inset 0 -1px 0 rgba(32, 32, 32, 0.035);
  backdrop-filter: blur(14px) saturate(115%);
  -webkit-backdrop-filter: blur(14px) saturate(115%);
}

.principle-header__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: min(100%, var(--content));
  height: 100%;
  margin: 0 auto;
}

.principle-brand {
  grid-column: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
}

.principle-brand span {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1;
}

.principle-brand small {
  margin-top: 6px;
  color: #69706d;
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.principle-header__nav {
  grid-column: 3;
  justify-self: end;
  display: flex;
  gap: 8px;
}

.principle-header__nav a {
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88);
  color: #3f4a47;
  font-size: 13px;
  text-decoration: none;
  backdrop-filter: blur(9px);
  transition: background 160ms ease, transform 160ms ease;
}

.principle-header__nav a:hover,
.principle-header__nav a:focus-visible {
  background: rgba(255, 255, 255, 0.48);
  transform: translateY(-1px);
}

.section-nav {
  position: sticky;
  top: 0;
  z-index: 15;
  border-bottom: 1px solid rgba(255, 255, 255, 0.58);
  background: rgba(246, 245, 239, 0.7);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.section-nav__inner {
  display: flex;
  justify-content: center;
  gap: clamp(18px, 4vw, 56px);
  width: min(calc(100% - (var(--gutter) * 2)), var(--content));
  margin: 0 auto;
}

.section-nav a {
  position: relative;
  padding: 13px 0 12px;
  color: #727774;
  font-size: 11px;
  letter-spacing: 0.02em;
  text-decoration: none;
  white-space: nowrap;
  transition: color 160ms ease;
}

.section-nav a span {
  margin-right: 5px;
  color: #9a9e9b;
}

.section-nav a::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 1px;
  background: #313735;
  content: "";
  opacity: 0;
  transform: scaleX(0.4);
  transition: opacity 180ms ease, transform 220ms ease;
}

.section-nav a.is-active,
.section-nav a:hover {
  color: #242927;
}

.section-nav a.is-active::after {
  opacity: 1;
  transform: scaleX(1);
}

main {
  width: min(calc(100% - (var(--gutter) * 2)), var(--content));
  margin: 0 auto;
}

.principle-hero {
  min-height: calc(100vh - 126px);
  padding: clamp(70px, 10vw, 140px) 0 92px;
}

.hero-copy {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(300px, 0.7fr);
  gap: 50px;
  align-items: end;
}

.eyebrow,
.section-kicker {
  margin: 0 0 25px;
  color: #6c7772;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero-copy .eyebrow,
.hero-copy h1 {
  grid-column: 1;
}

.hero-copy h1 {
  margin: 0;
  font-family: "Noto Serif KR", Georgia, serif;
  font-size: clamp(48px, 6.4vw, 88px);
  font-weight: 600;
  letter-spacing: -0.065em;
  line-height: 1.17;
}

.hero-copy h1 em {
  background: linear-gradient(100deg, #b8664f, #307d79);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  font-style: normal;
}

.hero-intro {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: end;
  padding-bottom: 8px;
}

.hero-intro p {
  margin: 0 0 17px;
  color: #535b57;
  font-size: 15px;
  line-height: 1.85;
  word-break: keep-all;
}

.slogan {
  grid-column: 1 / -1;
  margin: 36px 0 0;
  font-family: Georgia, serif;
  font-size: 16px;
  font-style: italic;
  letter-spacing: 0.02em;
}

.hero-visual {
  display: grid;
  grid-template-columns: 1fr auto 1.2fr auto 1.2fr auto 1.2fr auto 1.35fr;
  align-items: center;
  gap: 14px;
  margin-top: 80px;
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.32);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92), 0 18px 50px rgba(44, 58, 53, 0.04);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.hero-stage {
  min-width: 0;
  text-align: center;
}

.hero-stage__label {
  display: block;
  margin-bottom: 14px;
  color: #858b88;
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-stage--letter strong {
  font-family: "Noto Serif KR", serif;
  font-size: 58px;
}

.hero-stage--jamo div,
.hero-stage--color div,
.hero-stage--form div {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.hero-stage--jamo b {
  display: grid;
  place-items: center;
  width: 38px;
  height: 44px;
  border-bottom: 1px solid var(--line);
  font-family: "Noto Serif KR", serif;
  font-size: 23px;
}

.hero-stage--color i {
  width: 28px;
  height: 48px;
}

.hero-stage--color i:nth-child(1) { background: #202020; }
.hero-stage--color i:nth-child(2) { background: #f0b800; }
.hero-stage--color i:nth-child(3) { background: #a5665d; }

.hero-stage--form i {
  width: 36px;
  height: 36px;
  border: 1px solid #58615e;
}

.hero-stage--form i:nth-child(2) {
  border-radius: 50%;
}

.hero-stage--form i:nth-child(3) {
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  background: rgba(88, 97, 94, 0.18);
}

.hero-flow {
  width: 28px;
  height: 1px;
  background: linear-gradient(90deg, #b7bbb8, transparent);
}

.mini-art {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  width: 128px;
  height: 58px;
  margin: 0 auto;
}

.mini-art i:nth-child(1) { background: #1a7cbd; }
.mini-art i:nth-child(2) { background: #f6b71c; }
.mini-art i:nth-child(3) { background: #b81b22; }
.mini-art i:nth-child(4) { background: #e9e0d9; }
.mini-art i:nth-child(5) { background: #4d4d4d; }

.principle-section {
  padding: clamp(82px, 10vw, 142px) 0;
  border-top: 1px solid var(--line);
}

.section-heading {
  display: grid;
  grid-template-columns: 0.42fr 1.58fr;
  gap: 24px;
  margin-bottom: clamp(48px, 6vw, 82px);
}

.section-number {
  color: rgba(43, 51, 48, 0.22);
  font-family: Georgia, serif;
  font-size: clamp(72px, 11vw, 150px);
  line-height: 0.8;
}

.section-heading h2 {
  max-width: 880px;
  margin: 0;
  font-family: "Noto Serif KR", Georgia, serif;
  font-size: clamp(36px, 5vw, 66px);
  font-weight: 600;
  letter-spacing: -0.06em;
  line-height: 1.22;
}

.structure-title span {
  display: block;
  white-space: nowrap;
}

.section-prose {
  width: min(100%, 690px);
  margin-left: auto;
}

.section-prose p,
.structure-lead p {
  margin: 0 0 12px;
  color: #545c58;
  font-size: 16px;
  line-height: 1.9;
  word-break: keep-all;
}

.section-prose p:last-child,
.structure-lead p:last-child {
  margin-bottom: 0;
}

.section-prose ul {
  margin: 23px 0 28px;
  padding-left: 20px;
  color: #59615d;
  line-height: 2;
}

.origin-layout {
  display: grid;
  grid-template-columns: 1.5fr 0.9fr;
  gap: 60px;
  margin-top: 76px;
}

.origin-group {
  padding-top: 25px;
  border-top: 1px solid var(--line);
}

.origin-group header {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  margin-bottom: 45px;
}

.origin-group header p {
  grid-column: 1 / -1;
  margin: 0 0 8px;
  color: #909692;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.origin-group h3 {
  margin: 0;
  font-family: "Noto Serif KR", serif;
  font-size: 28px;
}

.origin-group header span {
  color: #717875;
  font-size: 13px;
}

.origin-grid {
  display: grid;
}

.origin-grid--consonants {
  grid-template-columns: repeat(5, 1fr);
}

.origin-grid--vowels {
  grid-template-columns: repeat(3, 1fr);
}

.origin-grid div {
  padding: 22px 8px 18px;
  border-left: 1px solid var(--line);
  text-align: center;
  transition: background 180ms ease, transform 180ms ease;
}

.origin-grid div:last-child {
  border-right: 1px solid var(--line);
}

.origin-grid div:hover {
  background: rgba(255, 255, 255, 0.36);
  transform: translateY(-3px);
}

.origin-grid strong {
  display: block;
  margin-bottom: 14px;
  font-family: "Noto Serif KR", serif;
  font-size: clamp(32px, 4vw, 48px);
}

.origin-grid span {
  color: #777e7a;
  font-size: 11px;
}

.structure-section {
  position: relative;
}

.structure-lead {
  width: min(100%, 690px);
  margin: 0 0 54px auto;
}

.syllable-diagram {
  display: grid;
  grid-template-columns: 1.25fr auto repeat(5, auto);
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 3vw, 44px);
  padding: clamp(44px, 7vw, 85px) 30px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.syllable-whole,
.syllable-part {
  text-align: center;
}

.syllable-whole strong {
  display: block;
  font-family: "Noto Serif KR", serif;
  font-size: clamp(80px, 12vw, 150px);
}

.syllable-part strong {
  display: grid;
  place-items: center;
  width: clamp(65px, 8vw, 96px);
  height: clamp(65px, 8vw, 96px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.34);
  font-family: "Noto Serif KR", serif;
  font-size: clamp(34px, 5vw, 54px);
  box-shadow: inset 0 1px 0 #fff;
}

.syllable-whole span,
.syllable-part span {
  display: block;
  margin-top: 14px;
  color: #7b817e;
  font-size: 11px;
}

.syllable-part--first strong { border-color: rgba(32, 32, 32, 0.34); }
.syllable-part--middle strong { border-color: rgba(240, 184, 0, 0.55); }
.syllable-part--last strong { border-color: rgba(165, 102, 93, 0.48); }

.equals,
.plus {
  color: #a3a7a4;
  font-family: Georgia, serif;
  font-size: 25px;
}

.layer-notes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin: 52px 0 62px;
}

.layer-notes article {
  padding: 28px 32px;
  border-left: 1px solid var(--line);
}

.layer-notes article:last-child {
  border-right: 1px solid var(--line);
}

.layer-notes span,
.process-flow li > span {
  color: #969b98;
  font-family: Georgia, serif;
  font-size: 11px;
  font-style: italic;
  letter-spacing: 0.08em;
}

.layer-notes h3 {
  margin: 17px 0 12px;
  font-family: "Noto Serif KR", serif;
  font-size: 20px;
}

.layer-notes p {
  margin: 0;
  color: #69706d;
  font-size: 13px;
  line-height: 1.75;
}

.color-section {
  width: calc(100% + (var(--gutter) * 2));
  margin-left: calc(var(--gutter) * -1);
  padding-right: var(--gutter);
  padding-left: var(--gutter);
  background:
    radial-gradient(circle at 88% 20%, rgba(10, 74, 135, 0.08), transparent 30%),
    radial-gradient(circle at 12% 84%, rgba(240, 184, 0, 0.12), transparent 27%),
    rgba(245, 242, 233, 0.46);
}

.color-intro {
  display: grid;
  grid-template-columns: 1fr 0.75fr;
  gap: 90px;
  align-items: start;
}

.color-intro .section-prose {
  margin: 0;
}

blockquote {
  position: sticky;
  top: 125px;
  margin: 0;
  padding: 35px 0 35px 35px;
  border-left: 1px solid #4e625e;
  font-family: "Noto Serif KR", serif;
  font-size: clamp(22px, 2.6vw, 34px);
  letter-spacing: -0.04em;
  line-height: 1.65;
  word-break: keep-all;
}

.color-system {
  margin-top: 84px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.color-system__heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 30px;
  margin-bottom: 36px;
}

.color-system__heading p {
  margin: 0;
  font-family: "Noto Serif KR", serif;
  font-size: 25px;
}

.color-system__heading span {
  color: #6c7470;
  font-size: 13px;
}

.color-strips {
  display: flex;
  align-items: end;
  width: 100%;
  min-height: 230px;
}

.color-strips button {
  position: relative;
  flex: 1 1 0;
  height: calc(90px + (var(--order, 1) * 3px));
  min-width: 18px;
  padding: 0;
  border: 0;
  background: var(--tone);
  cursor: pointer;
  transition: height 220ms ease, filter 180ms ease;
}

.color-strips button:nth-child(3n) { height: 155px; }
.color-strips button:nth-child(4n) { height: 195px; }
.color-strips button:nth-child(5n) { height: 125px; }
.color-strips button:hover,
.color-strips button:focus-visible {
  height: 220px;
  filter: saturate(1.12);
  outline: none;
}

.color-strips b {
  position: absolute;
  right: 0;
  bottom: -27px;
  left: 0;
  color: #555d59;
  font-size: 10px;
  font-weight: 500;
  text-align: center;
}

.styles-section .section-prose {
  margin-bottom: 64px;
}

.style-showcase {
  display: grid;
  grid-template-columns: minmax(350px, 0.85fr) minmax(420px, 1.15fr);
  gap: 70px;
  align-items: start;
}

.style-selector {
  border-top: 1px solid var(--line);
}

.style-selector button {
  display: grid;
  grid-template-columns: 36px 130px 1fr;
  gap: 12px;
  align-items: baseline;
  width: 100%;
  padding: 17px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: #777d7a;
  text-align: left;
  cursor: pointer;
  transition: color 180ms ease, padding-left 180ms ease;
}

.style-selector button:hover,
.style-selector button.is-active {
  padding-left: 8px;
  color: var(--ink);
}

.style-selector button span {
  color: #a0a5a2;
  font-family: Georgia, serif;
  font-size: 10px;
}

.style-selector button b {
  font-size: 14px;
  font-weight: 600;
}

.style-selector button small {
  font-size: 11px;
  line-height: 1.65;
}

.style-display {
  position: sticky;
  top: 105px;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.3);
  box-shadow: inset 0 1px 0 #fff, 0 20px 50px rgba(45, 59, 54, 0.05);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.style-display__image {
  display: flex;
  align-items: center;
  justify-content: center;
  height: clamp(300px, 40vw, 490px);
  padding: clamp(35px, 6vw, 75px);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.28);
}

.style-display__image img {
  display: block;
  width: 78%;
  max-width: 340px;
  height: 78%;
  max-height: 340px;
  object-fit: contain;
  object-position: center;
}

.style-display.is-changing img {
  animation: gallery-image 320ms cubic-bezier(.2,.8,.25,1) both;
}

.style-display > div:last-child {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 12px 28px;
  padding-top: 24px;
}

.style-display p {
  grid-column: 1 / -1;
  margin: 0;
  color: #8b918e;
  font-size: 9px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.style-display h3 {
  margin: 0;
  font-family: "Noto Serif KR", serif;
  font-size: 30px;
}

.style-display span {
  color: #626a66;
  font-size: 13px;
  line-height: 1.75;
}

@keyframes gallery-image {
  from { opacity: 0.18; transform: translateY(6px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.section-statement {
  margin: 92px 0 0 auto;
  padding-left: 35px;
  border-left: 1px solid #44524e;
  width: min(100%, 700px);
  font-family: "Noto Serif KR", serif;
  font-size: clamp(25px, 3.4vw, 42px);
  letter-spacing: -0.045em;
  line-height: 1.55;
}

.process-intro {
  width: min(100%, 690px);
  margin: 0 0 60px auto;
  color: #555e59;
  font-size: 16px;
}

.process-flow {
  position: relative;
  width: min(100%, 900px);
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.process-flow::before {
  position: absolute;
  top: 22px;
  bottom: 22px;
  left: 51px;
  width: 1px;
  background: linear-gradient(#b7bcb9, rgba(183, 188, 185, 0.15));
  content: "";
}

.process-flow li {
  position: relative;
  display: grid;
  grid-template-columns: 104px 1fr;
  min-height: 185px;
}

.process-flow li > span {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  align-self: start;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 50%;
  background: rgba(246, 244, 237, 0.82);
  box-shadow: inset 0 1px 0 #fff;
}

.process-flow li > div {
  padding: 0 0 55px;
}

.process-flow li p {
  margin: 0 0 7px;
  color: #959a97;
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.process-flow h3 {
  margin: 0 0 18px;
  font-family: "Noto Serif KR", serif;
  font-size: 29px;
}

.process-flow b {
  display: block;
  margin-bottom: 12px;
  color: #39413e;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.75;
}

.process-flow small {
  display: block;
  max-width: 650px;
  color: #69716d;
  font-size: 13px;
  line-height: 1.8;
}

.process-note {
  width: min(100%, 760px);
  margin: 40px 0 0 auto;
  padding: 30px 0 0 35px;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.process-note p {
  margin: 0 0 12px;
  color: #5d6561;
  font-size: 14px;
  line-height: 1.85;
}

.closing-section {
  position: relative;
  min-height: 680px;
  display: grid;
  place-items: center;
  padding: 112px 30px;
  overflow: hidden;
  border-top: 1px solid var(--line);
  text-align: center;
}

.closing-copy {
  position: relative;
  z-index: 2;
}

.closing-copy h2 {
  margin: 0;
  font-family: "Noto Serif KR", serif;
  font-size: clamp(38px, 5vw, 64px);
  letter-spacing: -0.06em;
  line-height: 1.3;
}

.closing-copy > div {
  width: min(100%, 650px);
  margin: 40px auto 0;
}

.closing-copy > div p {
  margin: 0 0 12px;
  color: #59615d;
  font-size: 15px;
  line-height: 1.85;
}

.closing-copy > strong {
  display: block;
  margin: 35px 0;
  font-family: Georgia, serif;
  font-size: 17px;
  font-style: italic;
}

.closing-cta {
  display: inline-block;
  padding: 14px 22px;
  border: 1px solid rgba(75, 83, 79, 0.64);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82), 0 8px 22px rgba(50, 60, 56, 0.05);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  backdrop-filter: blur(10px);
  transition: background 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.closing-cta:hover,
.closing-cta:focus-visible {
  background: rgba(255, 255, 255, 0.4);
  box-shadow: inset 0 1px 0 #fff, 0 12px 26px rgba(50, 60, 56, 0.09);
  transform: translateY(-2px);
}

.closing-copy > small {
  display: block;
  margin-top: 13px;
  color: #797f7c;
  font-size: 11px;
}

.closing-orbit {
  position: absolute;
  width: min(66vw, 720px);
  aspect-ratio: 1;
  border: 1px solid rgba(74, 121, 113, 0.12);
  border-radius: 50%;
}

.closing-orbit::before,
.closing-orbit::after {
  position: absolute;
  inset: 12%;
  border: 1px solid rgba(184, 109, 79, 0.11);
  border-radius: 50%;
  content: "";
}

.closing-orbit::after {
  inset: 28%;
  border-color: rgba(210, 174, 99, 0.16);
}

.closing-orbit i {
  position: absolute;
  border-radius: 50%;
}

.closing-orbit i:nth-child(1) { top: 17%; left: 12%; width: 18px; height: 18px; background: #1a7cbd; }
.closing-orbit i:nth-child(2) { right: 9%; bottom: 30%; width: 13px; height: 13px; background: #b81b22; }
.closing-orbit i:nth-child(3) { right: 27%; top: 9%; width: 10px; height: 10px; background: #f0b800; }

.principle-note {
  padding: 45px 0 32px;
  border-top: 1px solid var(--line);
  color: #777e7a;
  font-size: 11px;
  line-height: 1.8;
  text-align: center;
}

.principle-footer {
  padding: 0 20px 32px;
  color: #777e7a;
  font-size: 11px;
  text-align: center;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 650ms ease, transform 650ms cubic-bezier(.2,.75,.25,1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.syllable-diagram.is-visible .syllable-part--first { transition-delay: 90ms; }
.syllable-diagram.is-visible .syllable-part--middle { transition-delay: 170ms; }
.syllable-diagram.is-visible .syllable-part--last { transition-delay: 250ms; }

@media (max-width: 980px) {
  :root {
    --gutter: 24px;
  }

  .hero-copy {
    grid-template-columns: 1fr;
  }

  .hero-intro {
    grid-column: 1;
    grid-row: auto;
    width: min(100%, 680px);
    margin-top: 22px;
  }

  .hero-visual {
    grid-template-columns: repeat(5, 1fr);
  }

  .hero-flow {
    display: none;
  }

  .origin-layout,
  .color-intro,
  .style-showcase {
    grid-template-columns: 1fr;
  }

  .style-showcase {
    gap: 35px;
  }

  .style-selector {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 8px;
    border-top: 0;
    scrollbar-width: none;
  }

  .style-selector button {
    flex: 0 0 auto;
    display: block;
    width: auto;
    min-height: 44px;
    padding: 10px 13px;
    border: 1px solid var(--line);
    border-radius: 999px;
    white-space: nowrap;
  }

  .style-selector button:hover,
  .style-selector button.is-active {
    padding-left: 13px;
    background: rgba(255, 255, 255, 0.45);
  }

  .style-selector button span,
  .style-selector button small {
    display: none;
  }

  .style-display {
    position: static;
  }
}

@media (max-width: 700px) {
  :root {
    --gutter: 18px;
  }

  html {
    scroll-padding-top: 120px;
  }

  .principle-header {
    height: 70px;
    padding: 6px var(--gutter) 3px;
  }

  .principle-header__inner {
    grid-template-columns: 1fr auto;
  }

  .principle-brand {
    grid-column: 1;
    justify-self: start;
    align-items: flex-start;
  }

  .principle-brand span {
    font-size: 23px;
  }

  .principle-brand small {
    display: none;
  }

  .principle-header__nav {
    grid-column: 2;
  }

  .principle-header__nav a {
    padding: 6px 8px;
    font-size: 12px;
  }

  .section-nav__inner {
    justify-content: flex-start;
    width: 100%;
    gap: 24px;
    overflow-x: auto;
    padding: 0 var(--gutter);
    scrollbar-width: none;
  }

  .principle-hero {
    min-height: 0;
    padding: 70px 0 75px;
  }

  .hero-copy h1 {
    font-size: clamp(39px, 12vw, 55px);
    line-height: 1.25;
  }

  .hero-visual {
    grid-template-columns: repeat(5, 110px);
    overflow-x: auto;
    margin-top: 52px;
    padding: 24px;
  }

  .principle-section {
    padding: 74px 0;
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 45px;
  }

  .section-number {
    font-size: 72px;
  }

  .section-heading h2 {
    font-size: clamp(34px, 10vw, 48px);
  }

  .structure-title span {
    white-space: normal;
  }

  .section-prose p,
  .structure-lead p {
    font-size: 15px;
  }

  .origin-layout {
    gap: 65px;
    margin-top: 56px;
  }

  .origin-group header {
    grid-template-columns: 1fr;
  }

  .origin-group header span {
    margin-top: 8px;
  }

  .origin-grid--consonants {
    grid-template-columns: repeat(5, minmax(62px, 1fr));
    overflow-x: auto;
  }

  .syllable-diagram {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .equals {
    transform: rotate(90deg);
  }

  .plus {
    font-size: 18px;
  }

  .layer-notes {
    grid-template-columns: 1fr;
  }

  .layer-notes article {
    border-top: 1px solid var(--line);
    border-right: 0;
    border-left: 0;
  }

  .layer-notes article:last-child {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .color-section {
    width: calc(100% + (var(--gutter) * 2));
  }

  blockquote {
    position: static;
    padding-left: 22px;
    font-size: 23px;
  }

  .color-system__heading {
    display: block;
  }

  .color-system__heading span {
    display: block;
    margin-top: 10px;
  }

  .color-strips {
    overflow-x: auto;
  }

  .color-strips button {
    flex: 0 0 24px;
  }

  .style-display {
    padding: 15px;
  }

  .style-display__image {
    height: 320px;
    padding: 38px;
  }

  .style-display > div:last-child {
    grid-template-columns: 1fr;
  }

  .style-display p {
    grid-column: 1;
  }

  .section-statement {
    margin-top: 62px;
  }

  .process-flow::before {
    left: 25px;
  }

  .process-flow li {
    grid-template-columns: 70px 1fr;
  }

  .process-note {
    padding-left: 22px;
  }

  .closing-section {
    min-height: 610px;
    padding: 90px 0;
  }

  .closing-copy h2 {
    font-size: 37px;
  }

  .closing-orbit {
    width: 110vw;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
