@font-face {
  font-family: "ELAB Rounded";
  src: url("../assets/fonts/Comfortaa-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "ELAB Rounded";
  src: url("../assets/fonts/Comfortaa-Light.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

:root {
  --rail: 210px;
  --max: 1500px;
  --ease: cubic-bezier(.2,.7,.2,1);
  --page: #020e12;
  --paper: #071b22;
  --paper-alt: #0d2730;
  --ink: #eaf9fd;
  --muted: #9cb6be;
  --line: rgba(153,219,244,.2);
  --primary: #99dbf4;
  --secondary: #169bd0;
  --deep: #1179a2;
  --accent: #f1c75b;
  --brand-field: #020e12;
  --on-brand: #eaf9fd;
  --shadow: rgba(0, 0, 0, .3);
}

body[data-theme="prism"] {
  --page: #f3f5fb;
  --paper: #fff;
  --paper-alt: #e7ecff;
  --ink: #111a36;
  --muted: #5e6782;
  --line: rgba(32,58,143,.2);
  --primary: #203a8f;
  --secondary: #536dfe;
  --deep: #17275f;
  --accent: #ff6b5e;
  --brand-field: #111a36;
  --on-brand: #fff;
  --shadow: rgba(21, 38, 89, .12);
}

body[data-theme="human"] {
  --page: #f4ebdd;
  --paper: #fcf7ef;
  --paper-alt: #ebdccd;
  --ink: #2b2438;
  --muted: #6d6273;
  --line: rgba(90,73,107,.22);
  --primary: #5a496b;
  --secondary: #e66b5b;
  --deep: #40334f;
  --accent: #f6c453;
  --brand-field: #242038;
  --on-brand: #fff8e9;
  --shadow: rgba(56, 39, 69, .15);
}

body[data-theme="living"] {
  --page: #eff7f1;
  --paper: #f8fcf9;
  --paper-alt: #dcede3;
  --ink: #0c2f2b;
  --muted: #506e68;
  --line: rgba(23,106,99,.2);
  --primary: #176a63;
  --secondary: #2fb89d;
  --deep: #0c4843;
  --accent: #afd83a;
  --brand-field: #0c2f2b;
  --on-brand: #f4fff7;
  --shadow: rgba(13, 62, 53, .14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: Inter, "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif;
  transition: background-color .6s var(--ease), color .6s var(--ease);
}

body::selection {
  background: var(--accent);
  color: var(--brand-field);
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 12px 18px;
  background: var(--accent);
  color: var(--brand-field);
  transform: translateY(-160%);
  transition: transform .2s ease;
}

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

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}

.site-header {
  position: fixed;
  z-index: 100;
  inset: 0 auto 0 0;
  width: var(--rail);
  display: flex;
  flex-direction: column;
  padding: 28px 24px 24px;
  border-right: 1px solid var(--line);
  background: color-mix(in srgb, var(--page) 93%, transparent);
  backdrop-filter: blur(18px);
  transition: background-color .6s var(--ease), border-color .6s var(--ease);
}

.brand-home {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-home img {
  width: 42px;
  height: 42px;
}

.brand-home span {
  display: grid;
  gap: 2px;
}

.brand-home strong {
  font: 400 15px/1 "ELAB Rounded", sans-serif;
  letter-spacing: .18em;
}

.brand-home small {
  color: var(--muted);
  font-size: 9px;
  letter-spacing: .06em;
}

.site-nav {
  display: grid;
  margin-top: clamp(60px, 12vh, 130px);
}

.site-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: .12em;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .2s ease, transform .2s ease, border-color .2s ease;
}

.site-nav a span {
  width: 24px;
  font: 300 9px/1 "ELAB Rounded", sans-serif;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--ink);
  border-color: var(--line);
  transform: translateX(4px);
}

.rail-meta {
  display: grid;
  gap: 5px;
  margin-top: auto;
  color: var(--muted);
  font: 300 8px/1.4 "ELAB Rounded", sans-serif;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.menu-toggle {
  display: none;
}

.page-shell {
  margin-left: var(--rail);
}

.concept-bar {
  position: sticky;
  z-index: 80;
  top: 0;
  min-height: 70px;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--page) 91%, transparent);
  backdrop-filter: blur(18px);
}

.concept-bar > p {
  margin: 0;
  align-self: center;
  padding: 0 24px;
  color: var(--muted);
  font: 300 9px/1 "ELAB Rounded", sans-serif;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.concept-switcher {
  display: flex;
}

.concept-switcher button {
  position: relative;
  min-width: 145px;
  padding: 0 20px;
  border: 0;
  border-left: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: color .25s ease, background-color .25s ease;
}

.concept-switcher button::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 3px;
  background: var(--secondary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease);
}

.concept-switcher button:hover {
  color: var(--ink);
  background: color-mix(in srgb, var(--paper) 55%, transparent);
}

.concept-switcher button[aria-selected="true"] {
  color: var(--ink);
}

.concept-switcher button[aria-selected="true"]::after {
  transform: scaleX(1);
}

.concept-number {
  margin-right: 8px;
  font: 300 9px/1 "ELAB Rounded", sans-serif;
}

.section-pad {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(96px, 12vw, 180px) clamp(28px, 6vw, 96px);
}

.ruled-section {
  max-width: none;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.hero {
  min-height: calc(100vh - 70px);
  display: grid;
  grid-template-columns: minmax(390px, 1fr) minmax(460px, 1fr);
  grid-template-rows: 1fr auto;
  align-items: center;
  gap: 60px;
  overflow: hidden;
}

.eyebrow,
.section-kicker {
  color: var(--secondary);
  font: 300 10px/1.4 "ELAB Rounded", sans-serif;
  letter-spacing: .17em;
  text-transform: uppercase;
}

.eyebrow span:first-child {
  margin-right: 16px;
  color: var(--muted);
}

.hero h1 {
  margin: 28px 0;
  font-size: clamp(64px, 6.4vw, 116px);
  font-weight: 500;
  line-height: .96;
  letter-spacing: -.075em;
}

.hero h1 em {
  color: var(--secondary);
  font-family: "ELAB Rounded", sans-serif;
  font-size: .78em;
  font-style: normal;
  font-weight: 300;
  letter-spacing: -.045em;
}

.hero-lede {
  max-width: 590px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(17px, 1.4vw, 22px);
  line-height: 1.75;
}

.hero blockquote {
  margin: 28px 0 0;
  color: var(--ink);
  font: 300 clamp(18px, 1.8vw, 28px)/1.4 "ELAB Rounded", sans-serif;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 40px;
}

.button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 0 22px;
  border: 1px solid var(--line);
  font-size: 13px;
  text-decoration: none;
  transition: transform .25s var(--ease), background-color .25s ease, color .25s ease;
}

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

.button-primary {
  min-width: 210px;
  border-color: var(--primary);
  background: var(--primary);
  color: var(--brand-field);
}

.button-quiet:hover {
  border-color: var(--secondary);
}

.brand-stage {
  position: relative;
  aspect-ratio: 1 / 1;
  max-height: 720px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--brand-field);
  color: var(--on-brand);
  box-shadow: 0 30px 80px var(--shadow);
  isolation: isolate;
}

.brand-stage::before {
  content: "";
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--secondary) 22%, transparent), transparent 66%);
  filter: blur(18px);
}

.stage-grid {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 9.1% 9.1%;
  mask-image: linear-gradient(to bottom right, transparent, #000 20%, #000 80%, transparent);
}

.brand-stage > img {
  position: relative;
  z-index: 2;
  width: 68%;
  transition: opacity .22s ease, transform .6s var(--ease);
}

.brand-stage.is-changing > img {
  opacity: 0;
  transform: scale(.94);
}

.stage-orbit {
  position: absolute;
  z-index: 1;
  width: 82%;
  opacity: .24;
  stroke: var(--secondary);
  fill: none;
  stroke-width: 1;
  animation: orbit-drift 18s ease-in-out infinite alternate;
}

.stage-orbit circle {
  fill: var(--accent);
  stroke: none;
}

.stage-label {
  position: absolute;
  z-index: 3;
  color: color-mix(in srgb, var(--on-brand) 62%, transparent);
  font: 300 8px/1 "ELAB Rounded", sans-serif;
  letter-spacing: .16em;
}

.stage-label-top {
  top: 24px;
  left: 24px;
}

.stage-label-side {
  right: 18px;
  top: 50%;
  writing-mode: vertical-rl;
}

.stage-coordinate {
  position: absolute;
  right: 22px;
  bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: color-mix(in srgb, var(--on-brand) 58%, transparent);
  font: 300 7px/1.5 "ELAB Rounded", sans-serif;
}

.stage-coordinate i {
  width: 34px;
  height: 1px;
  background: currentColor;
}

@keyframes orbit-drift {
  to { transform: rotate(4deg) scale(.96); }
}

.hero-facts {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 0;
  border-top: 1px solid var(--line);
}

.hero-facts div {
  padding: 22px 20px 0 0;
  border-right: 1px solid var(--line);
}

.hero-facts div + div {
  padding-left: 22px;
}

.hero-facts div:last-child {
  border-right: 0;
}

.hero-facts dt {
  color: var(--muted);
  font: 300 9px/1 "ELAB Rounded", sans-serif;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.hero-facts dd {
  margin: 9px 0 0;
  font-size: 13px;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(280px, 1.15fr) minmax(260px, .85fr);
  gap: 80px;
  align-items: end;
  margin-bottom: clamp(64px, 8vw, 110px);
}

.section-heading .section-kicker {
  grid-column: 1 / -1;
  margin: 0 0 -42px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(46px, 6.2vw, 94px);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -.055em;
}

.section-heading > p:last-child {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.9;
}

.section-heading.horizontal {
  grid-template-columns: 1fr .7fr;
}

.section-heading.horizontal .section-kicker {
  grid-column: auto;
  margin: 0 0 24px;
}

.source-comparison {
  display: grid;
  grid-template-columns: 1fr 150px 1fr;
  align-items: center;
}

.source-frame {
  margin: 0;
}

.source-frame > img {
  width: 100%;
  aspect-ratio: 1.45 / 1;
  object-fit: contain;
  padding: 10%;
  border: 1px solid var(--line);
}

.source-frame.original > img {
  background: #020e12;
}

.source-frame.reconstructed > img {
  background-color: color-mix(in srgb, var(--paper-alt) 78%, var(--paper));
  background-image:
    linear-gradient(45deg, color-mix(in srgb, var(--muted) 10%, transparent) 25%, transparent 25%),
    linear-gradient(-45deg, color-mix(in srgb, var(--muted) 10%, transparent) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, color-mix(in srgb, var(--muted) 10%, transparent) 75%),
    linear-gradient(-45deg, transparent 75%, color-mix(in srgb, var(--muted) 10%, transparent) 75%);
  background-size: 22px 22px;
  background-position: 0 0, 0 11px, 11px -11px, -11px 0;
}

.figure-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  color: var(--muted);
  font: 300 9px/1 "ELAB Rounded", sans-serif;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.figure-label span {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 1px solid var(--line);
  color: var(--secondary);
}

.source-frame figcaption {
  margin-top: 14px;
  color: var(--muted);
  font-size: 11px;
}

.source-arrow {
  display: grid;
  place-items: center;
  gap: 9px;
  padding-top: 26px;
  color: var(--muted);
  font: 300 7px/1 "ELAB Rounded", sans-serif;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.source-arrow svg {
  width: 90px;
  stroke: var(--secondary);
  fill: none;
  stroke-width: 1;
}

.provenance-register {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 90px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.provenance-register > div {
  min-height: 130px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 28px 22px;
  border-right: 1px solid var(--line);
}

.provenance-register > div:last-child {
  border-right: 0;
}

.register-key {
  color: var(--secondary);
  font: 300 8px/1 "ELAB Rounded", sans-serif;
}

.provenance-register p {
  display: grid;
  gap: 8px;
  margin: 0;
}

.provenance-register strong {
  font-size: 12px;
  overflow-wrap: anywhere;
}

.provenance-register small {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

.concept-intro {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 100px;
  align-items: end;
}

.section-heading.compact {
  display: block;
  margin: 0;
}

.section-heading.compact .section-kicker {
  margin: 0 0 24px;
}

.section-heading.compact h2 {
  font-size: clamp(52px, 7vw, 112px);
}

.section-heading.compact h2 small {
  display: block;
  margin-top: 20px;
  color: var(--secondary);
  font: 300 .22em/1.3 "ELAB Rounded", sans-serif;
  letter-spacing: .02em;
}

.concept-statement {
  margin: 0;
  padding-bottom: 4px;
  font-size: clamp(24px, 3vw, 46px);
  line-height: 1.5;
  letter-spacing: -.025em;
}

.strategy-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 100px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.strategy-grid article {
  min-height: 250px;
  padding: 28px;
  border-right: 1px solid var(--line);
}

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

.strategy-grid article > span {
  color: var(--secondary);
  font: 300 9px/1 "ELAB Rounded", sans-serif;
}

.strategy-grid h3 {
  margin: 52px 0 14px;
  color: var(--muted);
  font: 300 10px/1 "ELAB Rounded", sans-serif;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.strategy-grid p {
  margin: 0;
  font-size: 17px;
  line-height: 1.6;
}

.principles {
  display: grid;
  grid-template-columns: .42fr 1fr;
  gap: 60px;
  margin-top: 110px;
}

.principles > p {
  margin: 6px 0 0;
}

.principles ol {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: principles;
}

.principles li {
  counter-increment: principles;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  padding: 26px 0;
  border-top: 1px solid var(--line);
}

.principles li:last-child {
  border-bottom: 1px solid var(--line);
}

.principles li span {
  font: 300 20px/1.4 "ELAB Rounded", sans-serif;
}

.principles li span::before {
  content: "0" counter(principles) " / ";
  color: var(--secondary);
  font-size: 9px;
}

.principles li p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.logo-specimens {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  grid-template-rows: repeat(2, minmax(320px, auto));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.specimen {
  position: relative;
  min-width: 0;
  margin: 0;
  display: grid;
  place-items: center;
  padding: 70px 40px 48px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.specimen-primary {
  grid-row: 1 / 3;
  min-height: 680px;
  background: var(--brand-field);
}

.specimen-primary img {
  width: min(82%, 650px);
}

.specimen-horizontal img {
  width: min(92%, 700px);
}

.specimen-mark img {
  width: min(42%, 260px);
}

.specimen-acronym {
  display: none;
}

.specimen-id {
  position: absolute;
  top: 20px;
  left: 22px;
  color: var(--muted);
  font: 300 8px/1 "ELAB Rounded", sans-serif;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.specimen figcaption {
  position: absolute;
  right: 22px;
  bottom: 18px;
  color: var(--muted);
  font-size: 10px;
}

.logo-rules {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  margin-top: 100px;
}

.rule-label {
  display: block;
  margin-bottom: 22px;
  color: var(--muted);
  font: 300 9px/1 "ELAB Rounded", sans-serif;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.clearspace-grid {
  position: relative;
  width: min(100%, 520px);
  aspect-ratio: 1.4 / 1;
  display: grid;
  place-items: center;
  border: 1px dashed var(--secondary);
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 10% 10%;
}

.clearspace-grid img {
  width: 48%;
}

.measure {
  position: absolute;
  color: var(--secondary);
  font: 300 9px/1 "ELAB Rounded", sans-serif;
  font-style: normal;
}

.measure-x {
  left: 50%;
  bottom: 15%;
}

.measure-half {
  left: 3%;
  top: 50%;
}

.scale-row {
  min-height: 230px;
  display: flex;
  align-items: end;
  gap: clamp(36px, 6vw, 90px);
  padding: 20px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.scale-row > div {
  display: grid;
  gap: 16px;
  justify-items: center;
  color: var(--muted);
  font-size: 9px;
}

.scale-row > div:nth-child(1) img { width: 96px; }
.scale-row > div:nth-child(2) img { width: 48px; }
.scale-row > div:nth-child(3) img { width: 24px; }

.minimum-scale > p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.donts {
  margin-top: 100px;
}

.donts ul {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 24px 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  list-style: none;
}

.donts li {
  min-height: 220px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 20px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.donts p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}

.bad-logo {
  width: 100px;
  height: 100px;
  display: grid;
  place-items: center;
}

.bad-logo img {
  width: 92px;
}

.bad-logo.stretch img { transform: scaleX(1.5); }
.bad-logo.rotate img { transform: rotate(28deg); }
.bad-logo.glow img { filter: drop-shadow(0 0 8px #00d9ff) drop-shadow(0 0 16px #00d9ff); }
.bad-logo.clash { background: #ff2848; }
.bad-logo.clash img { filter: hue-rotate(115deg) saturate(2); }

.palette {
  display: grid;
  grid-template-columns: 1.35fr repeat(4, 1fr);
  min-height: 430px;
}

.swatch {
  position: relative;
  min-height: 330px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
  border: 1px solid color-mix(in srgb, var(--ink) 14%, transparent);
  border-right: 0;
  color: var(--swatch-ink, #fff);
  cursor: pointer;
  text-align: left;
  transition: flex .35s var(--ease), transform .25s ease;
}

.swatch:first-child {
  min-height: 430px;
}

.swatch:last-child {
  border-right: 1px solid color-mix(in srgb, var(--ink) 14%, transparent);
}

.swatch:hover {
  transform: translateY(-8px);
}

.swatch small,
.swatch span {
  font: 300 9px/1.4 "ELAB Rounded", sans-serif;
  letter-spacing: .09em;
}

.swatch strong {
  display: block;
  margin-bottom: 8px;
  font-size: 16px;
}

.swatch code {
  font: inherit;
}

.color-roles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 80px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.color-roles > div {
  min-height: 220px;
  padding: 30px;
  border-right: 1px solid var(--line);
}

.color-roles > div:last-child {
  border-right: 0;
}

.role-chip {
  display: inline-block;
  padding: 8px 10px;
  font: 300 8px/1 "ELAB Rounded", sans-serif;
  text-transform: uppercase;
}

.role-primary { background: var(--primary); color: var(--brand-field); }
.role-secondary { background: var(--secondary); color: var(--on-brand); }
.role-accent { background: var(--accent); color: #17221c; }

.color-roles h3 {
  margin: 48px 0 10px;
  font: 300 20px/1 "ELAB Rounded", sans-serif;
}

.color-roles p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.contrast-demo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 80px;
}

.contrast-sample {
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  padding: 32px;
}

.contrast-dark {
  background: var(--brand-field);
  color: var(--on-brand);
}

.contrast-light {
  background: color-mix(in srgb, var(--paper) 80%, white);
  color: var(--ink);
  border: 1px solid var(--line);
}

.contrast-sample span {
  align-self: flex-start;
  margin-bottom: auto;
  padding: 6px 8px;
  border: 1px solid currentColor;
  font: 300 8px/1 "ELAB Rounded", sans-serif;
}

.contrast-sample strong {
  max-width: 520px;
  font-size: clamp(24px, 3vw, 42px);
  line-height: 1.25;
}

.contrast-sample small {
  margin-top: 14px;
  opacity: .65;
}

.type-specimen {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.display-sample {
  min-height: 640px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 30px 40px 40px 0;
  border-right: 1px solid var(--line);
}

.display-sample > span,
.type-details span {
  color: var(--muted);
  font: 300 9px/1 "ELAB Rounded", sans-serif;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.display-sample p {
  margin: 0;
  font-size: clamp(62px, 7.5vw, 128px);
  font-weight: 500;
  line-height: .94;
  letter-spacing: -.075em;
}

.display-sample p em {
  color: var(--secondary);
  font-family: "ELAB Rounded", sans-serif;
  font-size: .72em;
  font-style: normal;
  font-weight: 300;
}

.type-details {
  display: grid;
  grid-template-rows: repeat(3, 1fr);
}

.type-details > div {
  padding: 30px 0 30px 40px;
  border-bottom: 1px solid var(--line);
}

.type-details > div:last-child {
  border-bottom: 0;
}

.type-details p {
  margin: 26px 0 12px;
  font-size: clamp(23px, 3vw, 46px);
}

.type-details small {
  color: var(--muted);
}

.font-rounded {
  font-family: "ELAB Rounded", sans-serif;
  font-weight: 300;
  letter-spacing: .08em;
}

.alphabet p {
  color: var(--secondary);
  font-size: clamp(18px, 2vw, 28px);
  line-height: 1.65;
}

.type-scale {
  margin-top: 70px;
  border-top: 1px solid var(--line);
}

.type-scale > div {
  display: grid;
  grid-template-columns: .5fr 1fr .5fr;
  gap: 30px;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.type-scale span,
.type-scale small {
  color: var(--muted);
  font-size: 11px;
}

.type-scale b {
  font-weight: 500;
}

.pattern-gallery {
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  grid-template-rows: 1fr 1fr;
  gap: 18px;
}

.pattern-gallery figure {
  position: relative;
  margin: 0;
  overflow: hidden;
  min-height: 300px;
}

.pattern-gallery .pattern-orbit {
  grid-row: 1 / 3;
  min-height: 620px;
}

.pattern-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .9s var(--ease);
}

.pattern-gallery figure:hover img {
  transform: scale(1.04);
}

.pattern-gallery figcaption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 16px 18px;
  background: color-mix(in srgb, var(--brand-field) 86%, transparent);
  color: var(--on-brand);
  backdrop-filter: blur(10px);
}

.pattern-gallery figcaption span,
.pattern-gallery figcaption small {
  color: color-mix(in srgb, var(--on-brand) 60%, transparent);
  font-size: 8px;
}

.pattern-gallery figcaption strong {
  font: 300 12px/1 "ELAB Rounded", sans-serif;
}

.grid-spec {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 80px;
  align-items: center;
  margin-top: 130px;
}

.grid-visual {
  position: relative;
  min-height: 520px;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 10px;
}

.grid-visual > i {
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  background: color-mix(in srgb, var(--secondary) 6%, transparent);
}

.grid-block {
  position: absolute;
  display: flex;
  align-items: end;
  padding: 16px;
  color: var(--on-brand);
  font: 300 10px/1 "ELAB Rounded", sans-serif;
  letter-spacing: .08em;
}

.grid-block.one {
  inset: 8% 58% 58% 2%;
  background: var(--primary);
  color: var(--brand-field);
}

.grid-block.two {
  inset: 32% 19% 29% 42%;
  background: var(--secondary);
}

.grid-block.three {
  inset: 69% 1% 2% 61%;
  background: var(--deep);
}

.grid-copy h3,
.motion-rule h3 {
  margin: 24px 0;
  font-size: clamp(30px, 4vw, 58px);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -.045em;
}

.grid-copy > p:not(.section-kicker),
.motion-rule > div:last-child > p:not(.section-kicker) {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.8;
}

.grid-copy dl {
  margin-top: 42px;
  border-top: 1px solid var(--line);
}

.grid-copy dl > div {
  display: flex;
  justify-content: space-between;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.grid-copy dt {
  color: var(--muted);
  font-size: 11px;
}

.grid-copy dd {
  margin: 0;
  font: 300 11px/1 "ELAB Rounded", sans-serif;
}

.motion-rule {
  display: grid;
  grid-template-columns: 1fr .85fr;
  gap: 90px;
  align-items: center;
  margin-top: 130px;
  padding: 90px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.motion-demo {
  min-height: 350px;
  display: grid;
  place-items: center;
  background: var(--brand-field);
}

.motion-demo svg {
  width: 84%;
  fill: var(--secondary);
}

.motion-demo path {
  fill: none;
  stroke: var(--primary);
  stroke-width: 2;
  stroke-dasharray: 800;
  animation: trace 4.5s var(--ease) infinite;
}

.motion-demo circle {
  transform-box: fill-box;
  transform-origin: center;
  animation: node-pop 4.5s var(--ease) infinite;
}

@keyframes trace {
  0%, 15% { stroke-dashoffset: 800; }
  65%, 100% { stroke-dashoffset: 0; }
}

@keyframes node-pop {
  0%, 18% { transform: scale(0); }
  28%, 100% { transform: scale(1); }
}

.application-stage {
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: 24px;
  align-items: start;
}

.application-stage article {
  overflow: hidden;
  box-shadow: 0 30px 70px var(--shadow);
}

.report-mock {
  position: relative;
  aspect-ratio: .74 / 1;
  display: flex;
  flex-direction: column;
  padding: 28px;
  background: var(--brand-field);
  color: var(--on-brand);
}

.mock-topline,
.social-index {
  display: flex;
  justify-content: space-between;
  color: color-mix(in srgb, var(--on-brand) 60%, transparent);
  font: 300 8px/1 "ELAB Rounded", sans-serif;
  letter-spacing: .08em;
}

.report-logo {
  width: 45%;
  margin-top: 12%;
}

.report-copy {
  margin-top: auto;
}

.report-copy small {
  color: var(--accent);
  font: 300 8px/1 "ELAB Rounded", sans-serif;
  letter-spacing: .1em;
}

.report-copy h3 {
  max-width: 700px;
  margin: 18px 0;
  font-size: clamp(34px, 5vw, 74px);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -.05em;
}

.report-copy p {
  max-width: 470px;
  color: color-mix(in srgb, var(--on-brand) 68%, transparent);
  line-height: 1.6;
}

.report-index {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
  font: 300 8px/1 "ELAB Rounded", sans-serif;
}

.report-index i {
  width: 80px;
  height: 1px;
  background: currentColor;
}

.screen-mock {
  border: 1px solid var(--line);
  background: var(--paper);
}

.browser-chrome {
  height: 42px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
}

.browser-chrome i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--muted);
  opacity: .4;
}

.browser-chrome span {
  margin-left: auto;
  color: var(--muted);
  font: 300 7px/1 "ELAB Rounded", sans-serif;
}

.screen-nav {
  height: 64px;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 0 22px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 8px;
}

.screen-nav img {
  width: 46px;
  margin-right: auto;
}

.screen-body {
  position: relative;
  min-height: 520px;
  padding: 48px 36px;
  overflow: hidden;
}

.screen-body small {
  color: var(--secondary);
  font: 300 8px/1 "ELAB Rounded", sans-serif;
}

.screen-body h3 {
  position: relative;
  z-index: 2;
  max-width: 530px;
  margin: 40px 0 30px;
  font-size: clamp(36px, 4.4vw, 66px);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -.055em;
}

.screen-body button {
  position: relative;
  z-index: 2;
  padding: 13px 18px;
  border: 0;
  background: var(--primary);
  color: var(--brand-field);
}

.screen-body button span {
  margin-left: 28px;
}

.screen-body svg {
  position: absolute;
  right: -10%;
  bottom: -4%;
  width: 80%;
  fill: var(--secondary);
  opacity: .24;
}

.screen-body svg path {
  fill: none;
  stroke: var(--secondary);
  stroke-width: 2;
}

.card-mock {
  min-height: 360px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  box-shadow: none !important;
  gap: 18px;
}

.card-face {
  aspect-ratio: 1.74 / 1;
  padding: 22px;
  box-shadow: 0 20px 45px var(--shadow);
}

.card-front {
  display: flex;
  align-items: end;
  justify-content: space-between;
  background: var(--brand-field);
  color: var(--on-brand);
}

.card-front img {
  width: 40%;
}

.card-front span {
  font: 300 7px/1.6 "ELAB Rounded", sans-serif;
  letter-spacing: .12em;
}

.card-back {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--paper-alt);
}

.card-back p {
  display: grid;
  gap: 20px;
  margin: 0;
  font-size: 10px;
}

.card-back p span {
  color: var(--muted);
  line-height: 1.6;
}

.card-back small {
  color: var(--secondary);
  font: 300 7px/1 "ELAB Rounded", sans-serif;
}

.social-mock {
  aspect-ratio: 1 / 1;
  padding: 28px;
  background: var(--secondary);
  color: var(--on-brand);
}

.social-mock > img {
  width: 30%;
  margin: 16% auto 9%;
}

.social-mock h3 {
  margin: 0;
  font-size: clamp(26px, 3.2vw, 48px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -.04em;
}

.social-mock p {
  margin-top: 24px;
  font-size: 11px;
  opacity: .7;
}

.voice-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 90px;
}

.voice-columns > div > span {
  color: var(--secondary);
  font: 300 10px/1 "ELAB Rounded", sans-serif;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.voice-columns ul {
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.voice-columns li {
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  font-size: 17px;
  line-height: 1.6;
}

.voice-columns > div:last-child li {
  color: var(--muted);
  text-decoration: line-through;
  text-decoration-color: color-mix(in srgb, var(--accent) 60%, transparent);
}

.message-formula {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 100px;
  padding: 42px;
  border: 1px solid var(--line);
  font: 300 clamp(14px, 1.7vw, 24px)/1.4 "ELAB Rounded", sans-serif;
}

.message-formula i {
  color: var(--muted);
  font-style: normal;
}

.message-formula strong {
  color: var(--secondary);
  font-weight: 300;
}

.download-list {
  border-top: 1px solid var(--line);
}

.download-list article {
  display: grid;
  grid-template-columns: 60px .8fr 1.2fr;
  gap: 30px;
  align-items: start;
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
}

.download-index {
  color: var(--secondary);
  font: 300 10px/1 "ELAB Rounded", sans-serif;
}

.download-list h3 {
  margin: 0 0 8px;
  font: 300 19px/1.4 "ELAB Rounded", sans-serif;
}

.download-list p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.download-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.download-actions a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 18px;
  padding: 0 14px;
  border: 1px solid var(--line);
  font-size: 10px;
  text-decoration: none;
  transition: background-color .2s ease, color .2s ease;
}

.download-actions a:hover {
  background: var(--primary);
  color: var(--brand-field);
}

.legal-note {
  display: grid;
  grid-template-columns: .3fr 1fr auto;
  gap: 40px;
  align-items: start;
  margin-top: 80px;
  padding: 34px;
  border-left: 4px solid var(--accent);
  background: var(--paper-alt);
}

.legal-note span {
  color: var(--secondary);
  font: 300 9px/1.4 "ELAB Rounded", sans-serif;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.legal-note p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.legal-note a {
  font-size: 12px;
  text-underline-offset: 5px;
}

.site-footer {
  min-height: 320px;
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 60px;
  align-items: end;
  padding: 60px clamp(28px, 6vw, 96px);
  border-top: 1px solid var(--line);
  background: var(--brand-field);
  color: var(--on-brand);
}

.site-footer img {
  width: 260px;
}

.site-footer p {
  margin: 18px 0 0;
  color: color-mix(in srgb, var(--on-brand) 58%, transparent);
  font-size: 12px;
  line-height: 1.7;
}

.site-footer > p {
  font: 300 clamp(20px, 2.5vw, 34px)/1.4 "ELAB Rounded", sans-serif;
}

.site-footer > a {
  padding-bottom: 4px;
  font-size: 12px;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}

.copy-toast {
  position: fixed;
  z-index: 300;
  right: 24px;
  bottom: 24px;
  padding: 13px 18px;
  background: var(--accent);
  color: var(--brand-field);
  font-size: 12px;
  transform: translateY(150%);
  opacity: 0;
  transition: transform .3s var(--ease), opacity .3s ease;
}

.copy-toast.show {
  transform: translateY(0);
  opacity: 1;
}

@media (max-width: 1180px) {
  :root { --rail: 0px; }

  .site-header {
    inset: 0 0 auto;
    width: 100%;
    height: 68px;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .brand-home img { width: 38px; height: 38px; }
  .rail-meta { display: none; }

  .menu-toggle {
    width: 42px;
    height: 42px;
    display: grid;
    place-content: center;
    gap: 7px;
    border: 0;
    background: transparent;
    color: var(--ink);
  }

  .menu-toggle span:not(.sr-only) {
    width: 23px;
    height: 1px;
    background: currentColor;
    transition: transform .2s ease;
  }

  .menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

  .site-nav {
    position: fixed;
    inset: 68px 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    margin: 0;
    padding: 20px;
    border-bottom: 1px solid var(--line);
    background: var(--page);
    transform: translateY(-140%);
    transition: transform .35s var(--ease);
  }

  .site-nav.open { transform: translateY(0); }

  .concept-bar {
    top: 68px;
    min-height: 62px;
    margin-top: 68px;
  }

  .concept-switcher button {
    min-width: 110px;
    padding: 0 12px;
    font-size: 11px;
  }

  .concept-bar > p { display: none; }

  .hero {
    grid-template-columns: 1fr 1fr;
    min-height: auto;
  }

  .section-heading { gap: 50px; }
  .source-comparison { grid-template-columns: 1fr 90px 1fr; }
  .provenance-register { grid-template-columns: repeat(2, 1fr); }
  .provenance-register > div:nth-child(2) { border-right: 0; }
  .provenance-register > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .strategy-grid { grid-template-columns: repeat(2, 1fr); }
  .strategy-grid article:nth-child(2) { border-right: 0; }
  .strategy-grid article:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .palette { grid-template-columns: repeat(5, 1fr); }
  .grid-spec,
  .motion-rule { gap: 50px; }
}

@media (max-width: 820px) {
  .concept-bar {
    overflow-x: auto;
    justify-content: flex-start;
    scrollbar-width: none;
  }

  .concept-switcher button {
    flex: 0 0 128px;
    min-height: 62px;
  }

  .section-pad { padding-block: 92px; }

  .hero {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 54px;
  }

  .hero-copy { order: 1; }
  .brand-stage { order: 2; width: 100%; max-height: none; }
  .hero-facts { order: 3; grid-template-columns: repeat(2, 1fr); }
  .hero-facts div:nth-child(2) { border-right: 0; }
  .hero-facts div:nth-child(-n+2) { padding-bottom: 18px; border-bottom: 1px solid var(--line); }
  .hero-facts div:nth-child(3) { padding-left: 0; }

  .section-heading,
  .section-heading.horizontal {
    display: block;
  }

  .section-heading .section-kicker,
  .section-heading.horizontal .section-kicker {
    margin: 0 0 26px;
  }

  .section-heading h2 { margin-bottom: 34px; }

  .source-comparison {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .source-arrow { transform: rotate(90deg); padding: 0; }
  .source-arrow span { display: none; }

  .concept-intro { grid-template-columns: 1fr; gap: 54px; }
  .principles { grid-template-columns: 1fr; gap: 25px; }

  .logo-specimens {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .specimen-primary { grid-row: auto; min-height: 480px; }
  .specimen-horizontal, .specimen-mark { min-height: 320px; }
  .logo-rules { grid-template-columns: 1fr; }
  .donts ul { grid-template-columns: repeat(2, 1fr); }

  .palette {
    grid-template-columns: repeat(2, 1fr);
    min-height: 0;
  }

  .swatch,
  .swatch:first-child { min-height: 240px; }
  .swatch:first-child { grid-column: 1 / -1; }

  .color-roles { grid-template-columns: 1fr; }
  .color-roles > div { border-right: 0; border-bottom: 1px solid var(--line); }
  .contrast-demo { grid-template-columns: 1fr; }

  .type-specimen { grid-template-columns: 1fr; }
  .display-sample { min-height: 500px; border-right: 0; border-bottom: 1px solid var(--line); padding-right: 0; }
  .type-details > div { padding-left: 0; }

  .pattern-gallery { grid-template-columns: 1fr; grid-template-rows: auto; }
  .pattern-gallery .pattern-orbit { grid-row: auto; min-height: 420px; }
  .grid-spec,
  .motion-rule { grid-template-columns: 1fr; }
  .motion-demo { min-height: 290px; }

  .application-stage { grid-template-columns: 1fr; }
  .card-mock { min-height: 0; }
  .voice-columns { grid-template-columns: 1fr; gap: 60px; }
  .message-formula { flex-wrap: wrap; justify-content: center; }
  .download-list article { grid-template-columns: 40px 1fr; }
  .download-actions { grid-column: 2; justify-content: flex-start; }
  .legal-note { grid-template-columns: 1fr; }
  .site-footer { grid-template-columns: 1fr; min-height: 430px; }
}

@media (max-width: 520px) {
  .brand-home small { display: none; }
  .section-pad { padding-inline: 20px; }
  .hero h1 { font-size: clamp(54px, 17vw, 82px); }
  .hero-actions { display: grid; }
  .button { width: 100%; }
  .brand-stage { aspect-ratio: .92 / 1; }
  .brand-stage > img { width: 82%; }
  .hero-facts { grid-template-columns: 1fr; }
  .hero-facts div { padding: 16px 0 !important; border-right: 0; border-bottom: 1px solid var(--line); }
  .hero-facts div:last-child { border-bottom: 0; }
  .section-heading h2 { font-size: clamp(42px, 13vw, 65px); }
  .provenance-register { grid-template-columns: 1fr; }
  .provenance-register > div { border-right: 0; border-bottom: 1px solid var(--line); }
  .strategy-grid { grid-template-columns: 1fr; }
  .strategy-grid article { border-right: 0; border-bottom: 1px solid var(--line); }
  .principles li { grid-template-columns: 1fr; gap: 12px; }
  .logo-specimens { border-left: 0; }
  .specimen { border-left: 1px solid var(--line); padding-inline: 22px; }
  .specimen-primary { min-height: 390px; }
  .donts ul { grid-template-columns: 1fr 1fr; }
  .donts li { min-height: 180px; }
  .palette { grid-template-columns: 1fr; }
  .swatch:first-child { grid-column: auto; }
  .type-scale > div { grid-template-columns: .6fr 1.4fr; }
  .type-scale small { grid-column: 2; }
  .pattern-gallery figcaption { grid-template-columns: auto 1fr; }
  .pattern-gallery figcaption small { display: none; }
  .grid-visual { min-height: 360px; gap: 4px; }
  .card-mock { grid-template-columns: 1fr; }
  .message-formula { padding: 28px 18px; }
  .message-formula i { width: 12px; }
  .download-list article { grid-template-columns: 1fr; }
  .download-actions { grid-column: 1; }
  .download-index { margin-bottom: -10px; }
  .site-footer { padding-inline: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

@media print {
  .site-header,
  .concept-bar,
  .hero-actions,
  .copy-toast { display: none !important; }
  .page-shell { margin: 0; }
  body { background: #fff; color: #111; }
  .section-pad { break-inside: avoid; padding: 48px 32px; }
}
