:root {
  color: #5c422e;
  background: #fffaf0;
  font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --sky: #cfeef5;
  --cream: #fffaf0;
  --paper: #fffdf8;
  --yellow: #ffca55;
  --yellow-light: #ffe8a7;
  --green: #94aa62;
  --blue: #76bfd3;
  --peach: #efa576;
  --cocoa: #5c422e;
  --muted: #806b59;
  --shadow: 0 16px 40px rgba(91, 68, 44, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background: var(--cream);
  color: var(--cocoa);
  -webkit-font-smoothing: antialiased;
}

body.dialog-open {
  overflow: hidden;
}

body.module-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

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

.site-header {
  position: fixed;
  z-index: 10;
  top: 0;
  left: 0;
  display: flex;
  width: 100%;
  height: 64px;
  padding: 0 clamp(22px, 5vw, 54px);
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.52);
  background: rgba(255, 253, 248, 0.62);
  box-shadow: 0 10px 28px rgba(82, 132, 146, 0.12);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: var(--cocoa);
  line-height: 1;
}

.brand-mark {
  position: relative;
  width: 34px;
  height: 36px;
  flex: 0 0 34px;
}

.brand-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 48px;
  height: 48px;
  object-fit: contain;
  transform: translate(-50%, -50%);
}

.brand-name {
  margin-left: -1px;
  font-family: "Arial Rounded MT Bold", "Trebuchet MS", "Microsoft YaHei", sans-serif;
  font-size: 27px;
  font-weight: 800;
  letter-spacing: 0.01em;
  transform: translateY(1px);
}

.primary-button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  padding: 0 27px;
  border: 0;
  border-radius: 999px;
  background: var(--yellow);
  color: var(--cocoa);
  font-weight: 700;
  box-shadow: 0 9px 22px rgba(204, 151, 34, 0.2);
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.primary-button:hover,
.primary-button:focus-visible {
  transform: translateY(-3px);
  background: #ffd66d;
  box-shadow: 0 14px 28px rgba(204, 151, 34, 0.25);
}

.hero {
  position: sticky;
  z-index: 0;
  top: 0;
  isolation: isolate;
  overflow: hidden;
  min-height: 820px;
  background-color: var(--sky);
}

.hero::before {
  position: absolute;
  z-index: 0;
  inset: 0;
  content: "";
  background-image: url("../assets/images/full-water-ripple.png");
  background-repeat: no-repeat;
  background-position: center top;
  background-size: cover;
}

.eyebrow {
  margin: 0 0 18px;
  color: #617a43;
  font-family: "Trebuchet MS", sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.stories-section {
  --story-y: 26%;
  --project-gutter: clamp(18px, 4vw, 48px);
  --project-gutters: clamp(36px, 8vw, 96px);
  --project-gap: clamp(22px, 3vw, 38px);
  --project-card-width: min(360px, calc(100vw - var(--project-gutters)));
  position: relative;
  z-index: 2;
  isolation: isolate;
  overflow: hidden;
  min-height: clamp(1040px, 100vw, 1320px);
  margin-top: -96px;
  padding: 110px 48px 125px;
  background: var(--cream);
  box-shadow: 0 -16px 38px rgba(71, 125, 140, 0.16);
}

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

.section-heading {
  max-width: 760px;
  margin: 0 auto 58px;
  text-align: center;
}

.section-heading > p {
  margin: 0 0 11px;
  color: #617a43;
  font-family: "Trebuchet MS", sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.section-heading h2 {
  margin: 0 0 13px;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.4;
  letter-spacing: 0.06em;
}

.section-heading > span {
  color: var(--muted);
  font-size: 16px;
}

.story-lists {
  position: absolute;
  top: var(--story-y);
  left: 0;
  display: grid;
  width: 100%;
  gap: 0;
}

.story-viewport {
  position: relative;
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 8px var(--project-gutter) 60px;
  overscroll-behavior-x: contain;
  scroll-padding-inline: var(--project-gutter);
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  cursor: grab;
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
}

.story-viewport + .story-viewport {
  margin-top: -28px;
}

.story-viewport::-webkit-scrollbar {
  display: none;
}

.story-viewport.is-dragging {
  scroll-snap-type: none;
  cursor: grabbing;
}

.story-viewport.is-dragging .story-grid {
  user-select: none;
}

.story-viewport.has-expanded-project {
  overflow-x: hidden;
  padding-bottom: 24px;
  scroll-snap-type: none;
  cursor: default;
}

.story-lists.has-expanded-project {
  gap: 0;
}

.story-lists.has-expanded-project .story-viewport {
  margin-top: 0;
}

.story-lists.has-expanded-project .story-viewport:not(.is-active-project-row) {
  display: none;
}

.story-grid {
  position: relative;
  display: grid;
  width: max-content;
  margin: 0 auto;
  grid-template-columns: repeat(4, var(--project-card-width));
  grid-template-rows: auto;
  grid-auto-flow: row;
  align-items: flex-start;
  gap: var(--project-gap);
}

.layout-editor {
  position: fixed;
  z-index: 100;
  right: 18px;
  bottom: 18px;
  display: flex;
  min-width: 260px;
  padding: 14px;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 18px;
  background: rgba(255, 253, 248, 0.92);
  box-shadow: 0 14px 36px rgba(66, 91, 98, 0.2);
  color: var(--cocoa);
  font-size: 13px;
  backdrop-filter: blur(14px);
}

.layout-editor strong {
  width: 100%;
  font-size: 14px;
}

.layout-editor-output {
  width: 100%;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.layout-editor button {
  min-height: 34px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  background: #e6f3f6;
  color: var(--cocoa);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.layout-editor button:hover,
.layout-editor button:focus-visible {
  background: #cfeaf0;
}

.layout-editing .story-card {
  outline: 2px dashed rgba(69, 145, 166, 0.7);
  outline-offset: 8px;
  cursor: grab;
  user-select: none;
  touch-action: none;
  transform: none !important;
}

.layout-editing .story-lists.is-dragging .story-card {
  cursor: grabbing;
}

.story-card {
  position: relative;
  width: var(--project-card-width);
  max-width: none;
  min-width: 0;
  min-height: 0;
  aspect-ratio: 12 / 11;
  padding: 38px 34px;
  border: 5px solid rgba(255, 255, 255, 0.86);
  border-radius: 28px;
  background: var(--paper);
  box-shadow: var(--shadow);
  scroll-snap-align: start;
  transition: box-shadow 220ms ease, background 260ms ease, border-radius 260ms ease;
  will-change: transform;
}

.story-card:nth-child(2) {
  background: #f5f4e7;
}

.story-card:nth-child(3) {
  background: #eef8fa;
}

.story-card:nth-child(4) {
  background: #fff1e8;
}

.story-card[data-project-card="library"]:not(.is-expanded) {
  background-color: #fffaf0;
  background-image: url("../assets/images/library-card-options/library-card-option-2.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

.story-card[data-project-card="project-05"] {
  background: #f2eff8;
}

.story-card[data-project-card="project-06"] {
  background: #f0f6e8;
}

.story-card[data-project-card="project-07"] {
  background: #fff4da;
}

.story-card[data-project-card="project-08"] {
  background: #eaf4f1;
}

.story-grid:not(.has-expanded-card) .story-card:hover {
  transform: translateY(-9px);
  box-shadow: 0 22px 48px rgba(91, 68, 44, 0.17);
}

.story-grid.has-expanded-card {
  width: min(1120px, calc(100vw - var(--project-gutters)));
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto;
  align-items: flex-start;
}

.story-card.is-sibling-hidden {
  display: none;
}

.story-grid .story-card.is-expanded {
  width: 100%;
  max-width: none;
  height: min(760px, calc(100vh - 96px));
  min-height: 620px;
  aspect-ratio: auto;
  padding: 0;
  overflow: hidden;
  grid-column: 1;
  grid-row: 1;
  border-radius: 34px;
  background: #fffaf0;
  box-shadow: 0 30px 72px rgba(56, 80, 88, 0.22);
  transform: none;
}

.project-card-summary {
  position: absolute;
  inset: 0;
  opacity: 1;
  visibility: visible;
  transition: opacity 140ms ease, visibility 140ms ease;
}

.project-card.is-expanded .project-card-summary {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.module-card-title {
  position: absolute;
  z-index: 1;
  top: 27px;
  left: 29px;
  margin: 0;
  padding: 4px 2px 7px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--cocoa);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: color 180ms ease, border-color 180ms ease;
}

.project-card-label {
  border-bottom-color: transparent;
  cursor: default;
}

.module-card-title:hover,
.module-card-title:focus-visible {
  border-color: #d85b52;
  color: #b84d46;
}

.boundary-expand {
  position: absolute;
  z-index: 2;
  bottom: -17px;
  left: 50%;
  display: grid;
  width: 34px;
  height: 34px;
  padding: 0;
  place-items: center;
  border: 4px solid var(--cream);
  border-radius: 50%;
  background: #d85b52;
  box-shadow: 0 7px 16px rgba(166, 67, 59, 0.24);
  color: #fffaf7;
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
  transform: translateX(-50%);
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.boundary-expand:hover,
.boundary-expand:focus-visible {
  background: #c94b43;
  box-shadow: 0 10px 20px rgba(166, 67, 59, 0.3);
  transform: translateX(-50%) scale(1.1);
}

.project-card-detail {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: inherit;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 210ms ease, visibility 210ms ease;
}

.project-card.is-content-ready .project-card-detail {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.module-workspace {
  position: absolute;
  z-index: 2;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
}

.module-workspace-panel {
  position: relative;
  display: flex;
  width: 100%;
  height: 100%;
  overflow: hidden;
  flex-direction: column;
  border-radius: inherit;
  background: transparent;
}

.module-workspace-header,
.module-workspace-panel > .module-view {
  opacity: 1;
}

.module-workspace-header {
  display: flex;
  min-height: 78px;
  padding: 0 28px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(112, 91, 69, 0.09);
  background: rgba(255, 253, 248, 0.86);
}

.library-entry {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding: 8px 3px;
  border: 0;
  background: transparent;
  color: var(--cocoa);
  font-size: 25px;
  font-weight: 800;
  cursor: pointer;
}

.library-entry-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #d85b52;
  box-shadow: 0 0 0 5px rgba(216, 91, 82, 0.1);
}

.module-workspace-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.demo-badge {
  padding: 6px 10px;
  border-radius: 999px;
  background: #edf6f7;
  color: #5c7b81;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.workspace-close {
  display: grid;
  width: 38px;
  height: 38px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: #f2ece2;
  color: var(--cocoa);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.workspace-close:hover,
.workspace-close:focus-visible {
  background: #e9dfd1;
}

.project-placeholder {
  display: flex;
  flex-direction: column;
  background: rgba(255, 253, 248, 0.72);
}

.placeholder-header {
  display: flex;
  min-height: 78px;
  padding: 0 28px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(112, 91, 69, 0.09);
  background: rgba(255, 253, 248, 0.86);
}

.placeholder-header strong {
  font-size: 25px;
}

.project-placeholder-body {
  display: grid;
  flex: 1 1 auto;
  place-items: center;
  color: rgba(92, 66, 46, 0.09);
  font-family: "Trebuchet MS", sans-serif;
  font-size: clamp(120px, 24vw, 300px);
  font-weight: 800;
  letter-spacing: -0.08em;
  user-select: none;
}

.module-view {
  min-height: 0;
  flex: 1 1 auto;
  overflow: auto;
}

.module-view[hidden] {
  display: none;
}

.module-home {
  display: grid;
  padding: clamp(30px, 4vw, 56px);
  grid-template-columns: minmax(0, 680px);
  grid-template-areas:
    "overview"
    "actions";
  align-content: center;
  justify-content: center;
  gap: 22px;
}

.module-home-intro {
  grid-area: actions;
}

.module-kicker {
  margin: 0 0 15px;
  color: #59808a;
  font-family: "Trebuchet MS", sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.module-home-intro h2 {
  max-width: 560px;
  margin: 0 0 20px;
  font-size: clamp(35px, 4.5vw, 58px);
  line-height: 1.28;
  letter-spacing: 0.02em;
}

.module-home-intro > p:not(.module-kicker) {
  max-width: 540px;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.9;
}

.module-home-buttons {
  display: flex;
  margin-top: 0;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.module-home-buttons .library-primary-action,
.module-home-buttons .library-secondary-action {
  min-width: 150px;
}

.library-primary-action,
.library-secondary-action {
  min-height: 46px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.library-primary-action {
  background: #d85b52;
  box-shadow: 0 9px 20px rgba(173, 70, 62, 0.2);
  color: #fff;
}

.library-primary-action:hover,
.library-primary-action:focus-visible {
  background: #c94b43;
}

.library-secondary-action {
  background: #e5f2f5;
  color: #466c75;
}

.library-overview {
  grid-area: overview;
  width: 100%;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: 28px;
  background: rgba(241, 247, 244, 0.82);
  box-shadow: 0 18px 42px rgba(73, 102, 103, 0.12);
}

.library-stats {
  display: grid;
  margin-bottom: 24px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.library-stats > div {
  min-height: 94px;
  padding: 18px;
  border-radius: 20px;
  background: rgba(255, 253, 248, 0.9);
}

.library-stats strong,
.library-stats span {
  display: block;
}

.library-stats strong {
  margin-bottom: 7px;
  font-size: 24px;
}

.library-stats span {
  color: var(--muted);
  font-size: 12px;
}

.recent-files-heading,
.library-files-heading {
  display: flex;
  margin-bottom: 12px;
  align-items: center;
  justify-content: space-between;
}

.recent-files-heading h3,
.library-files-heading h3 {
  margin: 0;
  font-size: 15px;
}

.recent-files-heading button {
  padding: 4px 0;
  border: 0;
  background: transparent;
  color: #5c858e;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.recent-file-list {
  display: grid;
  gap: 9px;
}

.recent-file {
  display: grid;
  padding: 12px 13px;
  align-items: center;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  gap: 10px;
  border-radius: 15px;
  background: rgba(255, 253, 248, 0.86);
}

.file-kind {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 11px;
  background: #e4f1f5;
  color: #4f7b85;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.file-info {
  min-width: 0;
}

.file-name,
.file-meta {
  display: block;
}

.file-name {
  overflow: hidden;
  font-size: 13px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-meta {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
}

.file-download {
  min-height: 32px;
  padding: 0 11px;
  border: 0;
  border-radius: 999px;
  background: #f0e9df;
  color: var(--cocoa);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.file-download:hover,
.file-download:focus-visible {
  background: #e6dacf;
}

.library-page {
  padding: 30px clamp(24px, 5vw, 62px) 46px;
}

.library-page-heading {
  display: flex;
  margin-bottom: 24px;
  align-items: flex-start;
  gap: 18px;
}

.library-back {
  min-height: 36px;
  padding: 0 13px;
  border: 0;
  border-radius: 999px;
  background: #edf3ef;
  color: var(--cocoa);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.library-page-heading p,
.library-page-heading h2 {
  margin: 0;
}

.library-page-heading p {
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 11px;
}

.library-page-heading h2 {
  font-size: 31px;
}

.library-toolbar {
  display: grid;
  margin-bottom: 18px;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 14px;
}

.library-search span {
  display: block;
  margin: 0 0 7px 3px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.library-search input {
  width: 100%;
  height: 46px;
  padding: 0 17px;
  border: 1px solid rgba(112, 91, 69, 0.11);
  border-radius: 15px;
  outline: 0;
  background: #fffdf8;
  color: var(--cocoa);
}

.library-search input:focus {
  border-color: rgba(85, 150, 166, 0.55);
  box-shadow: 0 0 0 4px rgba(100, 176, 195, 0.12);
}

.library-dropzone {
  display: grid;
  width: 100%;
  min-height: 104px;
  margin-bottom: 24px;
  padding: 18px;
  place-items: center;
  border: 1px dashed rgba(87, 143, 156, 0.5);
  border-radius: 20px;
  background: rgba(225, 242, 246, 0.46);
  color: #4f747c;
  text-align: center;
  cursor: pointer;
}

.library-dropzone strong,
.library-dropzone span {
  display: block;
}

.library-dropzone strong {
  font-size: 14px;
}

.library-dropzone span {
  margin-top: 6px;
  color: #738c91;
  font-size: 11px;
}

.library-dropzone.is-dragging {
  border-color: #d85b52;
  background: rgba(248, 224, 214, 0.5);
}

.library-files-heading span {
  color: var(--muted);
  font-size: 11px;
}

.library-file-list {
  display: grid;
  gap: 9px;
}

.library-file-row {
  display: grid;
  min-height: 62px;
  padding: 10px 13px;
  align-items: center;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 12px;
  border: 1px solid rgba(112, 91, 69, 0.07);
  border-radius: 17px;
  background: rgba(255, 253, 248, 0.88);
}

.library-file-row .file-kind {
  width: 42px;
  height: 42px;
}

.library-empty {
  padding: 42px 20px;
  border-radius: 18px;
  background: rgba(255, 253, 248, 0.7);
  color: var(--muted);
  text-align: center;
  font-size: 13px;
}

.library-file-input {
  display: none;
}

.library-feedback {
  position: absolute;
  z-index: 3;
  bottom: 18px;
  left: 50%;
  max-width: calc(100% - 36px);
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(74, 91, 81, 0.92);
  box-shadow: 0 9px 24px rgba(55, 71, 62, 0.2);
  color: #fff;
  font-size: 12px;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 10px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.library-feedback.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.story-number {
  margin: 0 0 60px;
  color: var(--blue);
  font-family: "Trebuchet MS", sans-serif;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.15em;
}

.story-card:nth-child(2) .story-number {
  color: var(--peach);
}

.story-card:nth-child(3) .story-number {
  color: var(--green);
}

.story-card h3 {
  margin: 0 0 13px;
  font-size: 25px;
}

.story-card > p:not(.story-number) {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
}

.story-card a {
  position: absolute;
  right: 34px;
  bottom: 31px;
  padding-bottom: 5px;
  border-bottom: 2px solid currentColor;
  font-size: 13px;
  font-weight: 700;
}

.contact-section {
  position: relative;
  z-index: 2;
  min-height: 470px;
  background: #e3edc5;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 620ms ease, transform 620ms ease;
}

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

:focus-visible {
  outline: 3px solid rgba(55, 130, 155, 0.68);
  outline-offset: 4px;
}

@media (max-width: 900px) {
  .site-header {
    height: 58px;
    padding: 0 28px;
  }

  .brand {
    gap: 2px;
  }

  .brand-mark {
    width: 31px;
    height: 33px;
    flex-basis: 31px;
  }

  .brand-icon {
    width: 44px;
    height: 44px;
  }

  .brand-name {
    font-size: 25px;
  }

  .hero {
    min-height: 760px;
  }

  .stories-section {
    margin-top: -76px;
  }

}

@media (max-width: 620px) {
  .site-header {
    height: 52px;
    padding: 0 20px;
  }

  .brand {
    gap: 1px;
  }

  .brand-mark {
    width: 29px;
    height: 31px;
    flex-basis: 29px;
  }

  .brand-icon {
    width: 41px;
    height: 41px;
  }

  .brand-name {
    font-size: 23px;
  }

  .hero {
    min-height: 720px;
  }

  .stories-section {
    margin-top: -56px;
    padding: 82px 18px 88px;
  }

  .section-heading {
    margin-bottom: 36px;
  }

  .contact-section {
    min-height: 420px;
  }

}

@media (max-width: 760px) {
  .module-workspace {
    padding: 0;
  }

  .module-workspace-panel {
    width: 100%;
    height: 100%;
    border-radius: inherit;
  }

  .story-grid .story-card.is-expanded {
    height: min(720px, calc(100vh - 76px));
    min-height: 600px;
    border-radius: 25px;
  }

  .module-workspace-header {
    min-height: 68px;
    padding: 0 17px;
  }

  .library-entry {
    font-size: 21px;
  }

  .placeholder-header {
    min-height: 68px;
    padding: 0 17px;
  }

  .placeholder-header strong {
    font-size: 21px;
  }

  .demo-badge {
    display: none;
  }

  .module-home {
    padding: 24px 18px 34px;
    grid-template-columns: 1fr;
    align-content: start;
    gap: 18px;
  }

  .module-home-buttons {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .module-home-buttons .library-primary-action,
  .module-home-buttons .library-secondary-action {
    width: 100%;
    min-width: 0;
  }

  .module-home-intro h2 {
    font-size: 34px;
  }

  .library-overview {
    padding: 18px;
  }

  .library-page {
    padding: 23px 18px 40px;
  }

  .library-page-heading {
    gap: 11px;
  }

  .library-toolbar {
    grid-template-columns: 1fr;
  }

  .library-toolbar .library-primary-action {
    width: 100%;
  }

  .library-file-row {
    grid-template-columns: 38px minmax(0, 1fr);
  }

  .library-file-row .file-download {
    grid-column: 1 / -1;
    justify-self: stretch;
  }
}

@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;
  }

}
