
:root {
  color-scheme: light;
  --ink: #271637;
  --ink-soft: #5b4b6d;
  --ink-faint: #766881;
  --paper: #fffaff;
  --surface: #ffffff;
  --line: #2b1a3c;
  --purple: #7650e8;
  --purple-deep: #4c27a8;
  --pink: #ff4f9b;
  --cyan: #54dce8;
  --yellow: #ffe06b;
  --lime: #c4f269;
  --lavender: #eee6ff;
  --mint: #e5fff1;
  --rose: #ffe2ee;
  --shadow: 7px 7px 0 var(--line);
  --shadow-small: 4px 4px 0 var(--line);
  --radius-large: 30px;
  --radius-medium: 20px;
  --radius-small: 14px;
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 48px;
  --space-6: 72px;
}

* { box-sizing: border-box; }

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

body {
  min-width: 320px;
  min-height: 100dvh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 3% 8%, rgba(255, 209, 231, .9) 0 6%, transparent 6.4%),
    radial-gradient(circle at 97% 18%, rgba(184, 247, 250, .75) 0 8%, transparent 8.4%),
    var(--paper);
  font: 400 16px/1.7 system-ui, 'PingFang TC', 'Microsoft JhengHei', sans-serif;
  text-rendering: optimizeLegibility;
}

body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  background-image: linear-gradient(rgba(39, 22, 55, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(39, 22, 55, .035) 1px, transparent 1px);
  background-size: 32px 32px;
  content: '';
  pointer-events: none;
}

img { display: block; max-width: 100%; height: auto; }

a { color: inherit; }

button,
a { touch-action: manipulation; }

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 4px solid var(--purple-deep);
  outline-offset: 4px;
}

button { color: inherit; }

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 12px 16px;
  border: 2px solid var(--line);
  border-radius: var(--radius-small);
  background: var(--surface);
  font-size: 14px;
  font-weight: 800;
  transform: translateY(-180%);
}

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

.site-shell {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: 22px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-height: 48px;
  font-weight: 800;
  text-decoration: none;
}

.brand img {
  width: 46px;
  height: 46px;
  border: 2px solid var(--line);
  border-radius: 15px;
  box-shadow: var(--shadow-small);
}

.brand-copy { display: grid; line-height: 1.1; }

.brand-copy strong {
  font: 700 18px/1 ui-rounded, 'PingFang TC', 'Microsoft JhengHei', system-ui, sans-serif;
  letter-spacing: .02em;
}

.brand-copy small {
  margin-top: 5px;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 800;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px 18px;
}

.site-nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 2px;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  text-underline-offset: 5px;
  overflow-wrap: anywhere;
}

.site-nav a:not(.nav-play):hover { text-decoration: underline; }
.site-nav a[aria-current='page'] { color: var(--purple-deep); text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 5px; }

.nav-play {
  padding-inline: 14px !important;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: var(--pink);
  box-shadow: var(--shadow-small);
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.nav-play:hover,
.nav-play:focus-visible { background: var(--yellow); transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--line); }

.nav-toggle {
  min-width: 48px;
  min-height: 48px;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 12px;
  border: 2px solid var(--line);
  border-radius: var(--radius-small);
  background: var(--surface);
  box-shadow: var(--shadow-small);
  cursor: pointer;
  font-size: 14px;
  font-weight: 800;
}

.nav-toggle svg { width: 20px; height: 20px; }

.button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 11px 19px;
  border: 2px solid var(--line);
  border-radius: 15px;
  box-shadow: var(--shadow-small);
  cursor: pointer;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.35;
  text-align: center;
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.button:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--line); }
.button:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--line); }
.button svg { flex: 0 0 auto; width: 18px; height: 18px; }
.button.primary { background: var(--pink); }
.button.primary:hover { background: var(--yellow); }
.button.secondary { background: var(--surface); }
.button.secondary:hover { background: var(--cyan); }
.button.light { border-color: var(--surface); background: var(--surface); }

.eyebrow {
  margin: 0 0 14px;
  color: var(--purple-deep);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .14em;
  line-height: 1.35;
  text-transform: uppercase;
}

h1,
h2,
h3,
h4 {
  font-family: ui-rounded, 'PingFang TC', 'Microsoft JhengHei', system-ui, sans-serif;
  text-wrap: balance;
}

h1,
h2,
h3,
h4,
p { overflow-wrap: anywhere; }

h1,
h2,
h3,
h4,
p { margin-top: 0; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, .9fr);
  align-items: center;
  gap: clamp(36px, 7vw, 88px);
  min-height: min(720px, calc(100dvh - 88px));
  padding: clamp(48px, 7vw, 90px) 0 var(--space-6);
}

.hero h1 {
  margin-bottom: 22px;
  font-size: clamp(44px, 7vw, 82px);
  font-weight: 700;
  letter-spacing: -.045em;
  line-height: 1.04;
}

.hero h1 em { color: var(--purple-deep); font-style: normal; }

.lead {
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: clamp(18px, 2.1vw, 22px);
  font-weight: 600;
  line-height: 1.75;
}

.hero-actions,
.inline-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 13px;
  margin-top: 30px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin: 25px 0 0;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 800;
}

.meta-item { display: inline-flex; align-items: center; gap: 7px; }
.meta-item svg { width: 18px; height: 18px; color: var(--purple-deep); }

.hero-visual {
  position: relative;
  min-height: 590px;
  display: grid;
  place-items: center;
}

.hero-visual::before {
  position: absolute;
  width: min(440px, 92%);
  aspect-ratio: 1;
  border: 2px dashed rgba(76, 39, 168, .35);
  border-radius: 50%;
  background: conic-gradient(from 180deg, rgba(255, 79, 155, .23), rgba(84, 220, 232, .23), rgba(255, 224, 107, .25), rgba(196, 242, 105, .22), rgba(255, 79, 155, .23));
  content: '';
  transform: rotate(-11deg);
}

.device-frame {
  position: relative;
  z-index: 1;
  width: min(100%, 330px);
  overflow: hidden;
  padding: 10px;
  border: 3px solid var(--line);
  border-radius: 34px;
  background: #21112f;
  box-shadow: 12px 12px 0 var(--line), 0 18px 36px rgba(39, 22, 55, .18);
  transform: rotate(3deg);
}

.device-frame::before {
  width: 30%;
  height: 20px;
  display: block;
  margin: 0 auto 9px;
  border-radius: 999px;
  background: #130a1b;
  content: '';
}

.device-frame img {
  width: 100%;
  aspect-ratio: 390 / 844;
  object-fit: cover;
  border-radius: 24px;
}

.floating-note {
  position: absolute;
  z-index: 2;
  display: grid;
  gap: 2px;
  padding: 13px 15px;
  border: 2px solid var(--line);
  border-radius: 15px;
  background: var(--surface);
  box-shadow: var(--shadow-small);
  line-height: 1.25;
  transform: rotate(-6deg);
}

.floating-note strong { font: 700 24px/1.05 ui-rounded, system-ui, sans-serif; }
.floating-note small { color: var(--ink-soft); font-size: 13px; font-weight: 800; }
.note-one { top: 12%; left: 0; background: var(--yellow); }
.note-two { right: 0; bottom: 13%; background: var(--cyan); transform: rotate(7deg); }
.note-two strong { font-size: 18px; }

.section { padding: var(--space-6) 0; }

.section-rule {
  height: 3px;
  margin: 0 0 var(--space-5);
  border: 0;
  background: var(--line);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  align-items: end;
  gap: clamp(24px, 5vw, 70px);
  margin-bottom: 32px;
}

.section-heading h2 {
  margin-bottom: 0;
  font-size: clamp(34px, 5vw, 58px);
  letter-spacing: -.035em;
  line-height: 1.1;
}

.section-heading p {
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: 18px;
  line-height: 1.75;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.metric {
  min-height: 144px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
  border: 2px solid var(--line);
  border-radius: var(--radius-medium);
  background: var(--surface);
  box-shadow: var(--shadow-small);
}

.metric:nth-child(1) { background: var(--rose); }
.metric:nth-child(2) { background: var(--cyan); }
.metric:nth-child(3) { background: var(--lime); }
.metric:nth-child(4) { background: var(--lavender); }
.metric strong { font: 700 clamp(27px, 4vw, 40px)/1 ui-rounded, system-ui, sans-serif; }
.metric span { font-size: 14px; font-weight: 800; }

.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px;
}

.bento-card {
  position: relative;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  grid-column: span 4;
  padding: 25px;
  overflow: hidden;
  border: 2px solid var(--line);
  border-radius: var(--radius-medium);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.bento-card::after {
  position: absolute;
  right: -42px;
  bottom: -42px;
  width: 145px;
  aspect-ratio: 1;
  border: 2px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, .48);
  content: '';
}

.bento-card.wide { grid-column: span 6; min-height: 230px; }
.bento-card.pink { background: var(--rose); }
.bento-card.blue { background: #dffcff; }
.bento-card.green { background: var(--mint); }
.bento-card.yellow { background: #fff5bd; }
.bento-card.purple { background: var(--lavender); }
.bento-card.dark { background: var(--ink); color: var(--surface); }
.card-icon { width: 52px; height: 52px; display: grid; place-items: center; border: 2px solid currentColor; border-radius: 16px; background: rgba(255, 255, 255, .64); }
.card-icon svg { width: 28px; height: 28px; }
.bento-card h3 { position: relative; z-index: 1; margin: 28px 0 8px; font-size: 27px; line-height: 1.15; }
.bento-card p { position: relative; z-index: 1; margin: 0; color: var(--ink-soft); font-size: 16px; line-height: 1.7; }
.bento-card.dark p { color: #e6dbf2; }
.card-link { position: relative; z-index: 1; display: inline-flex; margin-top: 15px; color: var(--purple-deep); font-size: 15px; font-weight: 800; text-decoration-thickness: 2px; text-underline-offset: 4px; }

.route-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.route-card { min-width: 0; position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 22px; min-height: 260px; padding: 24px; border: 2px solid var(--line); border-radius: var(--radius-medium); box-shadow: var(--shadow); text-decoration: none; transition: transform 180ms ease, box-shadow 180ms ease; }
.route-card:hover { transform: translate(-2px, -2px); box-shadow: 9px 9px 0 var(--line); }
.route-card-pink { background: var(--rose); }
.route-card-cyan { background: #dffcff; }
.route-card-lime { background: var(--lime); }
.route-index { font: 700 38px/1 ui-rounded, system-ui, sans-serif; }
.route-label { margin-bottom: 9px; color: var(--purple-deep); font-size: 13px; font-weight: 800; letter-spacing: .12em; line-height: 1.35; }
.route-card h3 { margin-bottom: 9px; font-size: 27px; line-height: 1.15; }
.route-card p:not(.route-label) { margin-bottom: 0; color: var(--ink-soft); font-size: 16px; line-height: 1.7; }
.route-arrow { align-self: flex-end; display: grid; place-items: center; width: 44px; height: 44px; border: 2px solid var(--line); border-radius: 50%; background: var(--surface); }
.route-arrow svg { width: 21px; height: 21px; }

.notes-overview {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(270px, .8fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
  padding: clamp(24px, 5vw, 48px);
}

.notes-overview-copy { min-width: 0; }
.notes-overview-copy h2 { margin-bottom: 12px; font-size: clamp(30px, 4vw, 46px); line-height: 1.1; }
.notes-overview-copy > p { margin-bottom: 0; color: var(--ink-soft); font-size: 17px; line-height: 1.8; }
.notes-overview-copy .inline-actions { margin-top: 22px; }

.note-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.note-stats li {
  min-width: 0;
  display: grid;
  align-content: center;
  min-height: 126px;
  padding: 15px;
  border: 2px solid var(--line);
  border-radius: var(--radius-small);
  background: var(--yellow);
  box-shadow: var(--shadow-small);
}

.note-stats li:nth-child(2) { background: var(--cyan); }
.note-stats li:nth-child(3) { background: var(--lime); }
.note-stats strong { font: 700 34px/1 ui-rounded, system-ui, sans-serif; }
.note-stats span { margin-top: 8px; font-size: 14px; font-weight: 800; line-height: 1.4; }

.note-topic-nav {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 28px 0 8px;
}

.note-topic-nav a {
  min-width: 0;
  min-height: 68px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border: 2px solid var(--line);
  border-radius: var(--radius-small);
  background: var(--surface);
  box-shadow: var(--shadow-small);
  text-decoration: none;
}

.note-topic-nav a:nth-child(1) { background: var(--rose); }
.note-topic-nav a:nth-child(2) { background: #dffcff; }
.note-topic-nav a:nth-child(3) { background: var(--lime); }
.note-topic-nav a:nth-child(4) { background: var(--lavender); }
.note-topic-nav a:hover { transform: translate(-2px, -2px); }
.note-topic-nav span { font-size: 15px; font-weight: 800; line-height: 1.4; }
.note-topic-nav strong { font: 700 24px/1 ui-rounded, system-ui, sans-serif; }

.notes-group { padding-top: var(--space-5); scroll-margin-top: 24px; }
.notes-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }

.note-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  min-height: 310px;
  padding: 22px;
  border: 2px solid var(--line);
  border-radius: var(--radius-medium);
  box-shadow: var(--shadow-small);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.note-card:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--line); }
.note-card-color { background: var(--rose); }
.note-card-design { background: #dffcff; }
.note-card-play { background: var(--lime); }
.note-card-creator { background: var(--lavender); }
.note-card-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; }
.note-card-index { font: 700 32px/1 ui-rounded, system-ui, sans-serif; }
.note-category { padding: 5px 9px; border: 2px solid var(--line); border-radius: 999px; background: rgba(255, 255, 255, .55); font-size: 13px; font-weight: 800; line-height: 1.35; }
.note-card h2 { margin: 24px 0 10px; font-size: 23px; line-height: 1.2; }
.note-card > p { flex: 1; margin: 0; color: var(--ink-soft); font-size: 16px; line-height: 1.7; }
.note-card-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 14px; margin-top: 20px; padding-top: 14px; border-top: 2px solid rgba(43, 26, 60, .28); color: var(--ink-faint); font-size: 14px; font-weight: 800; line-height: 1.45; }
.note-card-link { min-height: 44px; display: inline-flex; align-items: center; gap: 7px; color: var(--purple-deep); font-size: 14px; font-weight: 800; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.note-card-link svg { width: 18px; height: 18px; flex: 0 0 auto; }

.note-article-page-hero { max-width: 1040px; }
.note-article-layout { padding-bottom: var(--space-6); }
.note-article-intro { background: linear-gradient(125deg, #fff0fa, #e6fbff 56%, #f4ffd2) !important; }
.note-lead-figure { max-width: 430px; margin-inline: auto !important; }
.note-lead-figure img { width: min(100%, 390px); margin-inline: auto; }
.note-takeaway { background: var(--yellow) !important; }
.note-next-step { margin-top: 36px !important; }
.note-feature { margin: 24px 0 34px; padding: 20px; border: 2px solid var(--line); border-radius: var(--radius-medium); background: var(--cyan); box-shadow: var(--shadow-small); }
.note-feature-list { background: var(--yellow); }
.note-feature-quote { background: var(--lavender); }
.note-feature-compare { background: var(--mint); }
.note-feature-label { margin-bottom: 8px; color: var(--purple-deep); font-size: 13px; font-weight: 800; letter-spacing: .1em; line-height: 1.4; }
.note-feature h2 { margin-bottom: 14px; font-size: 24px; line-height: 1.2; }
.note-feature ul,
.note-feature ol { margin: 0; padding-left: 24px; }
.note-feature li { color: var(--ink-soft); font-size: 16px; line-height: 1.7; }
.note-feature li + li { margin-top: 8px; }
.note-feature li::marker { color: var(--purple-deep); font-weight: 800; }
.note-feature blockquote { margin: 0; padding: 16px 18px; border-left: 5px solid var(--purple); background: rgba(255, 255, 255, .56); color: var(--ink); font-size: 20px; font-weight: 800; line-height: 1.55; }
.note-feature-panels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.note-feature-panels section { min-width: 0; padding: 15px; border: 2px solid var(--line); border-radius: var(--radius-small); background: rgba(255, 255, 255, .58); }
.note-feature-panels h3 { margin-bottom: 7px; font-size: 18px; line-height: 1.3; }
.note-feature-panels p { margin: 0; color: var(--ink-soft); font-size: 15px; line-height: 1.7; }
.note-example { margin: 0 0 34px; padding: 22px 20px; border-left: 6px solid var(--purple); background: linear-gradient(135deg, rgba(255, 255, 255, .72), rgba(244, 255, 210, .72)); }
.note-example h2 { margin-bottom: 12px; font-size: 24px; line-height: 1.25; }
.note-example p:not(.note-feature-label) { margin: 0; color: var(--ink-soft); font-size: 16px; line-height: 1.75; }
.note-example p + p { margin-top: 12px; }
.note-support-figure { max-width: 360px; margin: 0 auto 34px !important; padding: 16px; border: 2px dashed var(--purple); border-radius: var(--radius-small); background: rgba(255, 255, 255, .5); }
.note-support-figure img { width: min(100%, 260px); margin-inline: auto; }
.note-support-figure figcaption { margin-top: 12px; color: var(--ink-soft); font-size: 14px; line-height: 1.6; }

.story-band {
  padding: clamp(26px, 5vw, 52px);
  border: 2px solid var(--line);
  border-radius: var(--radius-large);
  background: linear-gradient(120deg, var(--purple-deep), #8358dc 52%, #b38cff);
  color: var(--surface);
  box-shadow: 10px 10px 0 var(--line);
}

.story-band .eyebrow { color: var(--yellow); }
.story-band h2 { margin-bottom: 16px; font-size: clamp(32px, 5vw, 58px); line-height: 1.1; }
.story-band p { margin: 0; color: #f3ecff; font-size: 18px; line-height: 1.8; }

.case-study {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(250px, .75fr);
  gap: clamp(24px, 5vw, 60px);
  align-items: center;
  padding: clamp(24px, 5vw, 52px);
  border: 2px solid var(--line);
  border-radius: var(--radius-large);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.case-study-copy h2 { margin-bottom: 15px; font-size: clamp(30px, 4.5vw, 48px); line-height: 1.1; }
.case-study-copy p { color: var(--ink-soft); font-size: 17px; line-height: 1.8; }
.case-study-copy p:last-child { margin-bottom: 0; }
.case-study-figure { margin: 0; }
.case-study-figure img { width: min(100%, 280px); margin-inline: auto; border: 2px solid var(--line); border-radius: 22px; box-shadow: var(--shadow-small); }
.case-study-figure figcaption { margin-top: 12px; color: var(--ink-faint); font-size: 14px; line-height: 1.6; text-align: center; }

.home-proof { display: grid; grid-template-columns: minmax(0, 1fr) minmax(230px, .72fr); gap: clamp(24px, 6vw, 72px); align-items: center; padding: clamp(24px, 5vw, 52px); border: 2px solid var(--line); border-radius: var(--radius-large); background: var(--surface); box-shadow: var(--shadow); }
.home-proof-copy { min-width: 0; }
.home-proof-copy h2 { margin-bottom: 15px; font-size: clamp(30px, 4.5vw, 48px); line-height: 1.1; }
.home-proof-copy > p { color: var(--ink-soft); font-size: 17px; line-height: 1.8; }
.home-proof-list { display: grid; gap: 0; margin: 26px 0 0; padding: 0; list-style: none; }
.home-proof-list li { display: grid; gap: 2px; padding: 13px 0; border-top: 2px solid var(--line); }
.home-proof-list strong { font-size: 17px; line-height: 1.45; }
.home-proof-list span { color: var(--ink-soft); font-size: 15px; line-height: 1.6; }
.home-proof-figure { min-width: 0; margin: 0; text-align: center; }
.home-proof-figure img { width: min(100%, 276px); margin-inline: auto; border: 2px solid var(--line); border-radius: 22px; box-shadow: var(--shadow-small); }
.home-proof-figure figcaption { margin-top: 12px; color: var(--ink-faint); font-size: 14px; line-height: 1.6; }

.home-flow-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; counter-reset: home-flow; }
.home-flow-card { min-width: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px; padding: 22px; border: 2px solid var(--line); border-radius: var(--radius-medium); background: var(--lavender); box-shadow: var(--shadow-small); }
.home-flow-card:nth-child(2) { background: var(--cyan); }
.home-flow-card:nth-child(3) { background: var(--yellow); }
.home-flow-card > span { padding-inline: 12px; height: 44px; display: grid; place-items: center; border: 2px solid var(--line); border-radius: 50%; background: var(--surface); font: 700 21px/1 ui-rounded, system-ui, sans-serif; }
.home-flow-card h3 { margin-bottom: 7px; font-size: 22px; line-height: 1.2; }
.home-flow-card p { margin-bottom: 0; color: var(--ink-soft); font-size: 15px; line-height: 1.7; }
.home-flow-action { margin-top: 24px; }

.home-explore-panel { display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); gap: clamp(24px, 6vw, 76px); padding: clamp(26px, 5vw, 48px); border: 2px solid var(--line); border-radius: var(--radius-large); background: var(--yellow); box-shadow: var(--shadow); }
.home-explore-panel h2 { margin-bottom: 14px; font-size: clamp(30px, 4vw, 46px); line-height: 1.1; }
.home-explore-panel > div:first-child > p:last-child { margin-bottom: 0; color: var(--ink-soft); font-size: 17px; line-height: 1.8; }
.home-explore-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; align-content: center; }
.home-explore-links a { min-width: 0; display: grid; gap: 7px; min-height: 118px; padding: 17px; border: 2px solid var(--line); border-radius: var(--radius-small); background: var(--surface); text-decoration: none; }
.home-explore-links a:hover { background: var(--cyan); }
.home-explore-links strong { font-size: 17px; line-height: 1.4; }
.home-explore-links span { color: var(--ink-soft); font-size: 14px; line-height: 1.6; }

.play-steps { display: grid; gap: 20px; }

.play-step {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(200px, .68fr);
  gap: clamp(22px, 5vw, 64px);
  align-items: center;
  padding: clamp(22px, 4.5vw, 46px);
  border: 2px solid var(--line);
  border-radius: var(--radius-large);
  background: var(--rose);
  box-shadow: var(--shadow);
  scroll-margin-top: 24px;
}

.play-step:nth-child(even) { grid-template-columns: minmax(200px, .68fr) minmax(0, 1.1fr); background: var(--cyan); }
.play-step:nth-child(even) .play-step-media { order: -1; }
.play-step-cyan { background: #dffcff; }
.play-step-yellow { background: #fff5bd; }
.play-step.play-step-purple { background: var(--lavender); }
.play-step-copy { min-width: 0; }
.play-step-number { justify-self: start; padding-inline: 16px; height: 52px; display: grid; place-items: center; margin-bottom: 18px; border: 2px solid var(--line); border-radius: 50%; background: var(--surface); box-shadow: var(--shadow-small); font: 700 21px/1 ui-rounded, system-ui, sans-serif; }
.play-step-tag { margin-bottom: 9px; color: var(--purple-deep); font-size: 13px; font-weight: 800; letter-spacing: .13em; line-height: 1.35; }
.play-step h3 { margin-bottom: 11px; font-size: clamp(28px, 4vw, 43px); line-height: 1.1; }
.play-step-copy > p:not(.play-step-tag) { margin-bottom: 0; color: var(--ink-soft); font-size: 17px; line-height: 1.8; }
.play-step-copy .button { margin-top: 22px; }
.play-step-media { min-width: 0; margin: 0; text-align: center; }
.play-step-media img { width: min(100%, 276px); margin-inline: auto; border: 2px solid var(--line); border-radius: 24px; box-shadow: var(--shadow-small); }
.play-step-media figcaption { margin-top: 12px; color: var(--ink-faint); font-size: 14px; line-height: 1.6; }

.film-catalog {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.film-catalog-card,
.film-layout-card {
  min-width: 0;
  padding: 16px;
  border: 2px solid var(--line);
  border-radius: var(--radius-medium);
  background: var(--surface);
  box-shadow: var(--shadow-small);
}

.film-catalog-card:nth-child(3n + 1) { background: #fff8fb; }
.film-catalog-card:nth-child(3n + 2) { background: #f0fdff; }
.film-catalog-card:nth-child(3n) { background: #fbf8ff; }
.film-swatch { min-height: 92px; margin-bottom: 14px; border: 2px solid var(--line); border-radius: 15px; box-shadow: 3px 3px 0 var(--line); }
.film-swatch-classic { background: linear-gradient(150deg, #ffffff, #f4f0e9); }
.film-swatch-sky { background: radial-gradient(circle at 22% 30%, transparent 0 12px, #56c9df 13px 16px, transparent 17px), radial-gradient(circle at 78% 70%, #a7eaf4 0 16px, transparent 17px), linear-gradient(145deg, #f3fcff, #bfeaf5); }
.film-swatch-pink { background: radial-gradient(circle at 25% 30%, #f17aae 0 6px, transparent 7px), linear-gradient(135deg, transparent 0 46%, #f17aae 47% 51%, transparent 52%), linear-gradient(145deg, #fff7fc, #ffc6df); }
.film-swatch-mint { background: linear-gradient(145deg, transparent 0 40%, rgba(115, 189, 125, .72) 41% 45%, transparent 46%), linear-gradient(25deg, #f8fff6, #c5eac0); }
.film-swatch-ochre { background: repeating-linear-gradient(0deg, #ead7b3 0 10px, #d7b081 11px 13px), linear-gradient(90deg, #24324a, #a94f3d); }
.film-swatch-vellum { background: linear-gradient(125deg, rgba(183, 168, 216, .72) 0 28%, transparent 29% 48%, rgba(157, 203, 195, .68) 49% 72%, transparent 73%), #e8e3f2; }
.film-swatch-comet { background: linear-gradient(145deg, transparent 0 38%, #fff0cd 39% 43%, #3a2845 44% 47%, transparent 48%), linear-gradient(145deg, #fff2d2, #d47752); }
.film-swatch-eclipse { background: radial-gradient(circle at 9% 25%, transparent 0 24px, #c9d6f2 25px 28px, transparent 29px), linear-gradient(145deg, #24283b, #0d0f16); }
.film-swatch-threefold { background: conic-gradient(from 35deg at 50% 50%, #e98c78 0 25%, #e6b84a 25% 50%, #3d8f87 50% 75%, #59517d 75% 100%); }
.film-catalog-card h3 { margin-bottom: 8px; font-size: 22px; line-height: 1.2; }
.film-catalog-card p { margin-bottom: 8px; color: var(--ink-soft); font-size: 15px; line-height: 1.65; }
.film-catalog-card p:last-child { margin-bottom: 0; }
.film-catalog-card .film-condition { margin-top: 13px; color: var(--ink); }
.film-catalog-card .film-tip { color: var(--ink-faint); }
.film-catalog-card strong { color: var(--ink); }

.film-layouts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 22px; }
.film-layout-preview { position: relative; min-height: 220px; display: grid; place-items: center; margin-bottom: 16px; padding: 30px 20px; border: 2px solid var(--line); border-radius: 16px; background: #f4f0e8; box-shadow: 3px 3px 0 var(--line); }
.film-layout-preview::before { position: absolute; inset: 20px 25%; border: 2px solid var(--line); border-radius: 6px; background: linear-gradient(145deg, #ffffff, #f6e9ef); content: ''; }
.film-layout-preview span { position: relative; z-index: 1; display: block; border: 2px solid var(--line); background: conic-gradient(var(--pink), var(--yellow), var(--cyan), var(--purple), var(--pink)); }
.film-layout-classic span { width: 55%; aspect-ratio: 1 / 1.28; border-radius: 50% 50% 45% 45%; }
.film-layout-mosaic { grid-template-columns: repeat(3, 1fr); gap: 4px; padding-inline: 30%; }
.film-layout-mosaic::before { inset: 20px 20%; }
.film-layout-mosaic span { width: 100%; aspect-ratio: 1; border-radius: 4px; }
.film-layout-card h3 { margin-bottom: 8px; font-size: 22px; line-height: 1.2; }
.film-layout-card p { margin-bottom: 0; color: var(--ink-soft); font-size: 15px; line-height: 1.7; }

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.step-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 18px;
  border: 2px solid var(--line);
  border-radius: var(--radius-medium);
  background: var(--surface);
  box-shadow: var(--shadow-small);
}

.step-number { padding-inline: 12px; height: 42px; display: grid; place-items: center; border: 2px solid var(--line); border-radius: 50%; background: var(--yellow); font: 700 17px/1 ui-rounded, system-ui, sans-serif; }
.step-card h3 { margin-bottom: 0; font-size: 24px; line-height: 1.2; }
.step-card p { margin-bottom: 0; color: var(--ink-soft); font-size: 16px; line-height: 1.7; }
.step-thumb { overflow: hidden; border: 2px solid var(--line); border-radius: 15px; background: var(--lavender); }
.step-thumb img { width: 100%; aspect-ratio: 390 / 844; object-fit: cover; object-position: top; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.gallery-card {
  overflow: hidden;
  border: 2px solid var(--line);
  border-radius: var(--radius-medium);
  background: var(--surface);
  box-shadow: var(--shadow-small);
}

.gallery-card img { width: 100%; aspect-ratio: 390 / 844; object-fit: cover; object-position: top; }
.gallery-card figcaption { padding: 15px; font-size: 14px; font-weight: 800; line-height: 1.55; }

.faq-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }

.faq-list { display: grid; gap: 12px; margin: 22px 0 0; }
.faq-list > div { padding: 16px 18px; border: 2px solid var(--line); border-radius: var(--radius-small); background: var(--surface); box-shadow: var(--shadow-small); }
.faq-list dt { margin-bottom: 7px; color: var(--ink); font-size: 16px; font-weight: 800; line-height: 1.45; }
.faq-list dd { margin: 0; color: var(--ink-soft); font-size: 15px; line-height: 1.7; }

details {
  border: 2px solid var(--line);
  border-radius: var(--radius-small);
  background: var(--surface);
  box-shadow: var(--shadow-small);
}

summary {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 17px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 800;
  list-style: none;
}

summary::-webkit-details-marker { display: none; }
summary::after { flex: 0 0 auto; color: var(--purple-deep); content: '+'; font: 700 24px/1 ui-rounded, system-ui, sans-serif; }
details[open] summary::after { content: '−'; }
details > p { margin: 0; padding: 0 17px 17px; color: var(--ink-soft); font-size: 15px; line-height: 1.75; }

.cta-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  padding: clamp(28px, 5vw, 52px);
  border: 2px solid var(--line);
  border-radius: var(--radius-large);
  background: var(--yellow);
  box-shadow: var(--shadow);
}

.cta-panel h2 { margin-bottom: 8px; font-size: clamp(30px, 4.5vw, 48px); line-height: 1.1; }
.cta-panel p { margin: 0; color: var(--ink-soft); font-size: 17px; }

.page-hero {
  max-width: 900px;
  padding: clamp(38px, 6vw, 74px) 0 var(--space-5);
}

.page-hero h1 { margin-bottom: 18px; font-size: clamp(40px, 7vw, 72px); line-height: 1.05; }
.page-meta { display: flex; flex-wrap: wrap; gap: 9px 16px; margin-top: 22px; color: var(--ink-soft); font-size: 14px; font-weight: 700; }
.status-pill { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border: 2px solid var(--line); border-radius: 999px; background: var(--lime); color: var(--ink); font-size: 14px; font-weight: 800; }
.status-pill::before { width: 10px; height: 10px; border: 2px solid var(--line); border-radius: 50%; background: var(--surface); content: ''; }

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(230px, .32fr);
  align-items: start;
  gap: clamp(28px, 6vw, 82px);
  padding-bottom: var(--space-6);
}

.article-card {
  overflow: hidden;
  border: 2px solid var(--line);
  border-radius: var(--radius-large);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.article-card > * { padding-inline: clamp(22px, 5vw, 56px); }
.article-card .article-intro { padding-top: clamp(24px, 4vw, 44px); padding-bottom: 20px; background: linear-gradient(125deg, #fff0fa, #e6fbff 56%, #f4ffd2); }
.article-intro h2 { margin-bottom: 10px; font-size: clamp(28px, 4.5vw, 44px); line-height: 1.12; }
.article-intro p { margin: 0; color: var(--ink-soft); font-size: 17px; line-height: 1.75; }
.article-body { padding-top: clamp(22px, 4vw, 48px); padding-bottom: clamp(26px, 5vw, 56px); }
.prose section + section { margin-top: 36px; padding-top: 32px; border-top: 2px dashed #d2c7dd; }
.prose h2 { margin-bottom: 12px; font-size: 27px; line-height: 1.2; }
.prose h3 { margin: 22px 0 8px; font-size: 20px; line-height: 1.25; }
.prose p,
.prose li { color: var(--ink-soft); font-size: 16px; line-height: 1.85; }
.prose p { margin-bottom: 12px; }
.prose ul,
.prose ol { margin: 10px 0 0; padding-left: 24px; }
.prose li + li { margin-top: 9px; }
.prose li::marker { color: var(--purple-deep); font-weight: 800; }
.prose a { color: var(--purple-deep); font-weight: 800; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.prose strong { color: var(--ink); }
.prose .callout { margin: 20px 0; padding: 18px 20px; border: 2px solid var(--line); border-radius: var(--radius-small); background: var(--cyan); color: var(--ink); }
.prose .callout p { margin: 0; color: var(--ink); font-weight: 700; }
.prose .callout.warning { background: var(--yellow); }
.prose .callout.safe { background: var(--mint); }
.prose figure { margin: 24px 0; }
.prose figure img { width: 100%; border: 2px solid var(--line); border-radius: var(--radius-medium); background: var(--lavender); }
.prose figcaption { margin-top: 10px; color: var(--ink-faint); font-size: 14px; line-height: 1.6; }
.screen-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 24px 0; }
.prose .screen-pair figure { margin: 0; }

.article-aside {
  position: sticky;
  top: 18px;
  display: grid;
  gap: 13px;
}

.aside-card {
  padding: 20px;
  border: 2px solid var(--line);
  border-radius: var(--radius-medium);
  background: var(--surface);
  box-shadow: var(--shadow-small);
}

.aside-card.highlight { background: var(--lavender); }
.aside-card h2 { margin-bottom: 12px; font-size: 22px; line-height: 1.2; }
.aside-card p { margin-bottom: 0; color: var(--ink-soft); font-size: 15px; line-height: 1.7; }
.aside-links { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.aside-links a { min-height: 44px; display: flex; align-items: center; gap: 8px; padding: 9px 10px; border: 2px solid var(--line); border-radius: 11px; background: var(--surface); font-size: 14px; font-weight: 800; text-decoration: none; }
.aside-links a:hover { background: var(--cyan); }
.aside-links a[aria-current='page'] { background: var(--yellow); }

.contact-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  padding: 22px;
  border: 2px solid var(--line);
  border-radius: var(--radius-medium);
  background: var(--rose);
  box-shadow: var(--shadow-small);
}

.contact-card svg { width: 32px; height: 32px; }
.contact-card h2 { margin-bottom: 7px; font-size: 22px; }
.contact-card p { margin-bottom: 0; color: var(--ink-soft); font-size: 16px; }
.contact-card a { color: var(--purple-deep); font-weight: 800; overflow-wrap: anywhere; }

.sitemap-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.sitemap-list a { display: grid; gap: 4px; min-height: 100px; padding: 17px; border: 2px solid var(--line); border-radius: var(--radius-small); background: var(--surface); box-shadow: var(--shadow-small); text-decoration: none; }
.sitemap-list a:hover { background: var(--cyan); }
.sitemap-list strong { font: 700 21px/1.2 ui-rounded, system-ui, sans-serif; }
.sitemap-list span { color: var(--ink-soft); font-size: 14px; }

.timeline { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.timeline-entry { padding: 19px; border: 2px solid var(--line); border-radius: var(--radius-small); background: var(--lavender); box-shadow: var(--shadow-small); }
.timeline-entry:nth-child(2) { background: var(--mint); }
.timeline-entry:nth-child(3) { background: var(--rose); }
.timeline-entry time { display: block; margin-bottom: 7px; color: var(--purple-deep); font-size: 14px; font-weight: 800; }
.timeline-entry h3 { margin-bottom: 7px; font-size: 23px; line-height: 1.2; }
.timeline-entry p { margin: 0; color: var(--ink-soft); font-size: 16px; line-height: 1.75; }

.site-footer {
  margin-top: var(--space-5);
  border-top: 2px solid var(--line);
  background: rgba(255, 250, 255, .82);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.3fr) minmax(0, .8fr);
  gap: 28px;
  padding: 42px 0 30px;
}

.footer-grid h2 { margin-bottom: 12px; font-size: 19px; line-height: 1.2; }
.footer-grid p { margin-bottom: 0; color: var(--ink-soft); font-size: 14px; line-height: 1.7; }
.footer-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 16px; margin: 0; padding: 0; list-style: none; }
.footer-links a { min-height: 42px; display: inline-flex; align-items: center; color: var(--ink-soft); font-size: 14px; font-weight: 800; text-underline-offset: 4px; }
.footer-links a:hover { color: var(--purple-deep); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 0 32px; border-top: 1px solid #d9ccdf; color: var(--ink-faint); font-size: 13px; line-height: 1.6; }
.footer-bottom p { margin: 0; }
.footer-bottom a { font-weight: 800; }

.not-found { min-height: 60dvh; display: grid; place-items: center; padding: var(--space-6) 0; text-align: center; }
.not-found h1 { margin-bottom: 14px; font-size: clamp(54px, 12vw, 120px); line-height: .95; }
.not-found p { margin-inline: auto; color: var(--ink-soft); font-size: 18px; }

.mobile-play-bar { display: none; }

@media (max-width: 980px) {
  .hero { grid-template-columns: minmax(0, 1fr) minmax(280px, .8fr); gap: 40px; }
  .hero h1 { font-size: clamp(42px, 7vw, 68px); }
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .film-catalog { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .route-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .notes-overview { grid-template-columns: 1fr; }
  .notes-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .note-topic-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .article-layout { grid-template-columns: minmax(0, 1fr); }
  .article-aside { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
  .site-shell { width: min(100% - 28px, 1180px); }
  .site-header { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; }
  .nav-toggle { display: inline-flex; }
  .menu-ready .site-nav:not(.is-open) { display: none; }
  .site-nav { align-items: stretch; flex-direction: column; grid-column: 1 / -1; padding: 12px 0 2px; }
  .site-header:has(.site-nav.is-open) { flex-wrap: wrap; }
  .site-nav a { justify-content: space-between; min-height: 48px; padding: 9px 12px; border: 2px solid var(--line); border-radius: 12px; background: var(--surface); }
  .site-nav .nav-play { justify-content: center; }
  .hero { grid-template-columns: 1fr; min-height: auto; padding-top: 42px; }
  .hero-visual { min-height: 520px; overflow: hidden; }
  .case-study { grid-template-columns: 1fr; }
  .home-proof,
  .home-explore-panel { grid-template-columns: 1fr; }
  .route-grid,
  .home-flow-grid { grid-template-columns: 1fr; }
  .play-step,
  .play-step:nth-child(even) { grid-template-columns: minmax(0, 1fr); }
  .play-step:nth-child(even) .play-step-media { order: initial; }
  .play-step-media img { width: min(100%, 250px); }
  .section-heading { grid-template-columns: 1fr; align-items: start; gap: 12px; }
  .bento-card,
  .bento-card.wide { grid-column: span 6; }
  .steps-grid { grid-template-columns: 1fr; }
  .step-card { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 16px; }
  .step-card .step-thumb { grid-column: 1 / -1; }
  .step-card h3,
  .step-card p { grid-column: 2; }
  .step-number { grid-row: span 2; }
  .cta-panel { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
  .marketing-page { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
  .mobile-play-bar {
    position: fixed;
    z-index: 20;
    right: 0;
    bottom: 0;
    left: 0;
    display: block;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    border-top: 2px solid var(--line);
    background: rgba(255, 250, 255, .94);
    box-shadow: 0 -5px 18px rgba(39, 22, 55, .12);
    backdrop-filter: blur(12px);
  }
  .mobile-play-bar { display: grid; }
}

@media (max-width: 520px) {
  .site-shell { width: min(100% - 24px, 1180px); }
  .brand-copy strong { font-size: 17px; }
  .hero h1 { font-size: clamp(40px, 12vw, 58px); }
  .hero-actions,
  .inline-actions { display: grid; grid-template-columns: minmax(0, 1fr); }
  .hero-visual { min-height: 470px; }
  .device-frame { width: min(88%, 300px); }
  .floating-note { padding: 10px 12px; }
  .floating-note strong { font-size: 21px; }
  .note-one { left: 14px; }
  .note-two { right: 14px; }
  .bento-grid { grid-template-columns: 1fr; }
  .bento-card,
  .bento-card.wide { grid-column: 1 / -1; }
  .route-card { min-height: 220px; padding: 20px; }
  .notes-overview { padding: 22px 20px; }
  .notes-grid,
  .note-topic-nav { grid-template-columns: 1fr; }
  .note-card { min-height: 0; padding: 20px; }
  .note-card h2 { margin-top: 20px; font-size: 22px; }
  .note-feature { padding: 18px; }
  .note-feature-panels { grid-template-columns: 1fr; }
  .note-feature blockquote { font-size: 18px; }
  .note-example { padding: 18px 16px; }
  .note-support-figure { padding: 14px; }
  .home-proof { padding: 22px 20px; }
  .home-proof-figure img { width: min(100%, 240px); }
  .metrics,
  .bento-card,
  .bento-card.wide,
  .faq-grid,
  .gallery-grid,
  .film-catalog,
  .film-layouts,
  .article-aside,
  .sitemap-list,
  .footer-grid { grid-template-columns: 1fr; }
  .bento-card,
  .bento-card.wide { grid-column: auto; }
  .footer-grid > :first-child { grid-column: auto; }
  .footer-links { grid-template-columns: 1fr; }
  .footer-bottom { align-items: flex-start; flex-direction: column; }
  .article-card > * { padding-inline: 20px; }
  .article-intro h2 { font-size: 30px; }
  .prose p,
  .prose li { font-size: 16px; }
  .screen-pair { grid-template-columns: 1fr; }
}

@media (max-width: 374px) {
  .site-shell { width: calc(100% - 20px); }
  .site-header { gap: 10px; }
  .brand { gap: 8px; }
  .brand img { width: 42px; height: 42px; }
  .brand-copy strong { font-size: 16px; }
  .brand-copy small { font-size: 12px; }
  .hero { padding-top: 30px; }
  .hero h1 { font-size: clamp(36px, 12vw, 50px); }
  .hero-visual { min-height: 440px; }
  .device-frame { width: min(86%, 276px); }
  .floating-note strong { font-size: 18px; }
  .floating-note small { font-size: 12px; }
  .play-step { padding: 20px 16px; }
}

@media (orientation: landscape) and (max-height: 600px) and (max-width: 1023px) {
  .hero { padding-top: 28px; padding-bottom: 42px; }
  .hero-visual { min-height: 390px; }
  .device-frame { width: min(34vw, 260px); }
  .floating-note { transform: scale(.9) rotate(-6deg); }
  .note-two { transform: scale(.9) rotate(7deg); }
}

@media (min-width: 1024px) {
  .play-step-media img { width: min(100%, 300px); }
}

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

/* Content and tools share the same reading layout; dimensions belong to containers. */
a, li, dd, dt, span, code, td, th { overflow-wrap: anywhere; }
.home-sample-panel { padding: clamp(22px, 4vw, 40px); border: 2px solid var(--line); border-radius: var(--radius-large); background: var(--lavender); box-shadow: var(--shadow); }
.home-sample-panel h2 { font-size: clamp(26px, 4vw, 38px); line-height: 1.35; }
.home-color-pair { padding: 28px 20px; border: 2px solid var(--purple-deep); border-radius: var(--radius-medium); background: #eee6ff; color: #4c27a8; }
.home-color-pair p { margin: 0; font-size: 24px; font-weight: 800; }
.home-sample-panel > p:not(.eyebrow) { margin-top: 20px; }
.home-sample-label { font-size: 14px; }
.home-guide-grid h3 { font-size: 24px; line-height: 1.45; }
.home-guide-grid .note-card { min-height: 0; }
.guide-toc { padding: 22px; margin-block: 24px; border: 2px solid var(--line); border-radius: var(--radius-medium); background: var(--lavender); }
.guide-toc ol { margin: 0; padding-left: 24px; }
.guide-toc a { display: inline-block; padding-block: 8px; }
.guide-table-wrap { margin-block: 24px; }
.guide-table { border-collapse: collapse; table-layout: fixed; }
.guide-table th, .guide-table td { border: 1px solid #c6b6d4; padding: 12px; vertical-align: top; text-align: left; font-size: 16px; }
.guide-table th { background: var(--lavender); }
.guide-figure { margin: 28px 0; }
.guide-figure img { aspect-ratio: 12 / 7; }
.guide-sources { padding: 20px; border-radius: var(--radius-small); background: var(--mint); }
@media (max-width: 520px) {
  .guide-table th, .guide-table td { padding: 8px; font-size: 14px; }
  .guide-toc { padding: 18px; }
}

.home-guide-grid a.note-card { text-decoration: none; }
.home-guide-grid a.note-card:hover h3 { text-decoration: underline; text-underline-offset: 5px; }
.home-guide-grid .note-card > span { font-weight: 800; text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 520px) {
  .home-explore-links { grid-template-columns: minmax(0, 1fr); }
}

.nav-play svg { flex: 0 0 auto; width: 18px; height: 18px; }

/* Root publication layout: readable content with a compact, shared identity. */
.reading-shell { width: min(940px, calc(100% - 40px)); }
.reading-shell .page-hero { padding-block: 44px 36px; }
.reading-shell .page-hero h1, .palette-intro h1 { font-size: clamp(32px, 4.8vw, 54px); line-height: 1.3; }
.marketing-page { padding-bottom: 0; }
.color-home { min-height: auto; padding-block: 50px 48px; gap: clamp(24px, 4vw, 60px); }
.color-home h1 { font-size: clamp(36px, 4.8vw, 60px); line-height: 1.2; }
.home-workbench-sample { margin: 0; padding: 18px; border: 2px solid var(--line); border-radius: 24px; background: var(--surface); box-shadow: var(--shadow-small); }
.home-workbench-sample > img { border-radius: 12px; }
.home-workbench-sample figcaption { margin-top: 16px; color: var(--ink-soft); font-size: 14px; }
.home-swatch-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 16px; }
.home-swatch-strip span { display: flex; flex-direction: column; gap: 6px; font-size: 12px; text-align: center; }
.home-swatch-strip span::before { content: ''; height: 34px; border-radius: 8px; border: 1px solid #756680; background: var(--sample-color); }
.home-workflow-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.home-workflow-grid article { padding: 24px; border-top: 3px solid var(--purple-deep); background: var(--surface); }
.home-workflow-grid h3 { margin-top: 18px; font-size: 23px; line-height: 1.5; }
.home-workflow-grid p { margin-bottom: 0; color: var(--ink-soft); }
.workflow-number { color: var(--purple-deep); font-size: 24px; font-weight: 800; }
.guide-app-figure { display: grid; grid-template-columns: minmax(0, 320px); justify-content: center; gap: 12px; margin: 24px 0; }
.guide-app-figure img { border-radius: 18px; }
.contact-address { font-size: 22px; font-weight: 700; }
@media (max-width: 820px) { .home-workflow-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 520px) { .reading-shell { width: calc(100% - 24px); } .color-home { padding-top: 28px; } }
