:root {
  --cream: #faf4e8;
  --paper: #fffdf8;
  --paper-deep: #fff9f0;
  --ink: #4b3c33;
  --ink-soft: #5f4d40;
  --muted: #8f7d70;
  --muted-light: #a8988b;
  --line: rgba(75, 60, 51, 0.14);
  --line-strong: rgba(75, 60, 51, 0.22);
  --peach: #f6c7b6;
  --peach-deep: #e99c89;
  --peach-soft: #fbe3da;
  --sage: #b7c9a8;
  --sage-deep: #7e9670;
  --sage-soft: #edf1e6;
  --butter: #f6e2a7;
  --butter-deep: #d6b45e;
  --rose: #edb3b0;
  --sky: #c9dcd8;
  --shadow-sm: 0 6px 18px rgba(111, 85, 66, 0.08);
  --shadow-md: 0 18px 44px rgba(111, 85, 66, 0.12);
  --shadow-lg: 0 28px 72px rgba(111, 85, 66, 0.16);
  --font-display: 'ZCOOL KuaiLe', 'PingFang SC', 'Hiragino Sans GB', sans-serif;
  --font-serif: 'Noto Serif SC', 'Songti SC', serif;
  --font-body: 'Noto Sans SC', 'PingFang SC', 'Hiragino Sans GB', sans-serif;
  --radius-lg: 32px;
  --radius-md: 22px;
  --ease: cubic-bezier(0.22, 0.7, 0.25, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--ink);
  background-color: var(--cream);
  background-image:
    radial-gradient(circle at 12% 8%, rgba(246, 199, 182, 0.16), transparent 26%),
    radial-gradient(circle at 88% 18%, rgba(183, 201, 168, 0.14), transparent 24%),
    radial-gradient(rgba(139, 113, 92, 0.055) 1px, transparent 1px);
  background-size: auto, auto, 24px 24px;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.no-scroll {
  overflow: hidden;
}

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

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

button,
input {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(214, 143, 127, 0.55);
  outline-offset: 3px;
}

::selection {
  color: var(--ink);
  background: var(--butter);
}

.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  display: inline-block;
  width: 18px;
  height: 18px;
  flex: none;
  overflow: visible;
  vertical-align: middle;
}

.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;
  top: 12px;
  left: 12px;
  z-index: 999;
  padding: 10px 18px;
  color: var(--paper);
  background: var(--ink);
  border-radius: 999px;
  transform: translateY(-160%);
  transition: transform 0.2s;
}

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

.container {
  width: min(1180px, calc(100% - 64px));
  margin: 0 auto;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 52px;
  padding: 0 25px;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.02em;
  white-space: nowrap;
  border: 1px solid transparent;
  border-radius: 999px;
  transition: transform 0.3s var(--ease), background 0.3s, color 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.btn .icon {
  width: 17px;
  height: 17px;
  transition: transform 0.3s var(--ease);
}

.btn:hover .icon {
  transform: translateX(3px);
}

.btn-primary {
  color: var(--paper-deep);
  background: var(--ink);
  box-shadow: 0 9px 22px rgba(75, 60, 51, 0.2);
}

.btn-primary:hover {
  background: #604b3e;
  transform: translateY(-2px);
  box-shadow: 0 13px 28px rgba(75, 60, 51, 0.24);
}

.btn-ghost {
  color: var(--ink);
  background: rgba(255, 253, 248, 0.54);
  border-color: var(--line-strong);
}

.btn-ghost:hover {
  background: var(--paper);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.btn-dark {
  min-height: 46px;
  padding: 0 22px;
  color: var(--paper-deep);
  background: var(--ink);
}

.btn-dark:hover {
  background: #624d3f;
  transform: translateY(-1px);
}

.btn-small {
  min-height: 42px;
  padding: 0 19px;
  font-size: 12px;
}

.btn.is-fav {
  color: #b55f53;
  background: #fff1ec;
  border-color: rgba(181, 95, 83, 0.3);
}

.btn.is-fav .icon {
  fill: currentColor;
}

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 244, 232, 0.86);
  border-bottom: 1px dashed var(--line);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 82px;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 43px;
  height: 43px;
  color: var(--ink);
  background: var(--peach);
  border: 1px solid rgba(75, 60, 51, 0.18);
  border-radius: 50%;
  box-shadow: inset 0 0 0 4px rgba(255, 253, 248, 0.24), 0 4px 10px rgba(111, 85, 66, 0.1);
  transition: transform 0.4s var(--ease), background 0.3s;
}

.brand:hover .brand-mark {
  background: var(--butter);
  transform: rotate(-8deg);
}

.brand-mark .icon {
  width: 24px;
  height: 24px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-family: var(--font-display);
  font-size: 23px;
  line-height: 1;
  letter-spacing: 0.04em;
}

.brand-text small {
  font-family: var(--font-body);
  font-size: 8px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.135em;
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-left: auto;
}

.main-nav a {
  position: relative;
  padding: 9px 0;
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.02em;
  transition: color 0.25s;
}

.main-nav a::after {
  position: absolute;
  right: 0;
  bottom: 1px;
  left: 0;
  height: 5px;
  content: '';
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='5' viewBox='0 0 30 5'%3E%3Cpath d='M0 3c4-3 7-3 10 0s6 3 10 0 7-3 10 0' fill='none' stroke='%23D68F7F' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  opacity: 0;
  transform: scaleX(0.4);
  transition: opacity 0.25s, transform 0.25s;
}

.main-nav a:hover,
.main-nav a.is-active {
  color: var(--ink);
}

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

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.notebook-button {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 14px;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--ink-soft);
  background: rgba(255, 253, 248, 0.72);
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: background 0.25s, transform 0.25s, box-shadow 0.25s;
}

.notebook-button .icon {
  width: 16px;
  height: 16px;
}

.notebook-button:hover {
  background: var(--paper);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.notebook-count {
  display: grid;
  place-items: center;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  font-size: 9px;
  font-weight: 700;
  color: var(--paper-deep);
  background: var(--peach-deep);
  border-radius: 999px;
}

.menu-toggle {
  display: none;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 50%;
}

.mobile-menu {
  display: none;
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  padding: 68px 0 0;
  overflow: hidden;
}

.hero::before {
  position: absolute;
  top: 80px;
  left: -170px;
  width: 420px;
  height: 420px;
  content: '';
  background: radial-gradient(circle, rgba(246, 226, 167, 0.34), transparent 68%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.04fr 0.96fr;
  align-items: center;
  gap: 38px;
  min-height: 610px;
  padding-bottom: 28px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 25px;
  padding: 7px 14px;
  font-size: 11px;
  font-weight: 500;
  color: var(--ink-soft);
  letter-spacing: 0.055em;
  background: rgba(255, 253, 248, 0.68);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(111, 85, 66, 0.04);
}

.eyebrow-dot {
  width: 6px;
  height: 6px;
  background: var(--peach-deep);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(233, 156, 137, 0.15);
}

.hero h1 {
  max-width: 700px;
  margin: 0 0 25px;
  font-family: var(--font-display);
  font-size: clamp(48px, 5.1vw, 72px);
  font-weight: 400;
  line-height: 1.17;
  letter-spacing: 0.005em;
}

.highlight {
  position: relative;
  display: inline-block;
  color: var(--peach-deep);
  white-space: nowrap;
}

.squiggle {
  position: absolute;
  bottom: -9px;
  left: -1%;
  width: 102%;
  height: 13px;
  color: #efb8a7;
}

.hero-lede {
  max-width: 505px;
  margin: 0 0 32px;
  font-size: 15px;
  line-height: 1.95;
  color: var(--muted);
}

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

.hero-features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 33px 0 0;
  padding: 0;
  font-size: 11px;
  color: var(--muted);
  list-style: none;
}

.hero-features li {
  display: flex;
  align-items: center;
  gap: 5px;
}

.hero-features .icon {
  width: 13px;
  height: 13px;
  color: var(--sage-deep);
}

.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 540px;
  padding: 14px 0;
}

.art-blob {
  position: absolute;
  top: 8%;
  left: 50%;
  width: min(480px, 92%);
  aspect-ratio: 1;
  background: radial-gradient(circle at 48% 43%, #f9e5d8 0, #f7ddd0 48%, rgba(247, 221, 208, 0) 72%);
  border-radius: 50%;
  transform: translateX(-50%);
}

.hero-art {
  position: relative;
  z-index: 2;
  width: min(560px, 100%);
  filter: drop-shadow(0 22px 28px rgba(111, 85, 66, 0.08));
  animation: soft-bob 9s ease-in-out infinite;
}

.floating-note {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 15px;
  font-family: var(--font-display);
  font-size: 14px;
  line-height: 1.35;
  color: var(--ink-soft);
  background: rgba(255, 253, 248, 0.94);
  border: 1px solid rgba(75, 60, 51, 0.13);
  border-radius: 4px;
  box-shadow: 0 10px 24px rgba(111, 85, 66, 0.1);
  backdrop-filter: blur(8px);
}

.floating-note::before {
  position: absolute;
  top: -6px;
  left: 50%;
  width: 36px;
  height: 12px;
  content: '';
  background: rgba(246, 226, 167, 0.66);
  transform: translateX(-50%) rotate(-2deg);
}

.note-top {
  top: 9%;
  left: 0;
  transform: rotate(-7deg);
}

.note-bottom {
  right: -1%;
  bottom: 13%;
  transform: rotate(5deg);
}

.note-heart {
  font-size: 23px;
  line-height: 1;
  color: var(--peach-deep);
}

.note-icon {
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  color: var(--ink);
  background: var(--butter);
  border-radius: 50%;
}

.note-icon .icon {
  width: 16px;
  height: 16px;
}

.doodle {
  position: absolute;
  z-index: 1;
  color: var(--butter-deep);
  pointer-events: none;
}

.doodle-star {
  top: 18%;
  right: 3%;
  font-size: 33px;
  animation: twinkle 4.8s ease-in-out infinite;
}

.doodle-flower {
  bottom: 28%;
  left: 1%;
  width: 28px;
  color: var(--peach-deep);
  opacity: 0.7;
  animation: soft-bob 6.8s ease-in-out infinite reverse;
}

.doodle-flower .icon {
  width: 100%;
  height: 100%;
}

.hero-ticker {
  position: relative;
  width: 102%;
  margin-left: -1%;
  padding: 13px 0;
  overflow: hidden;
  color: var(--ink-soft);
  background: var(--sage);
  border-top: 1px dashed rgba(75, 60, 51, 0.28);
  border-bottom: 1px dashed rgba(75, 60, 51, 0.28);
  transform: rotate(-0.55deg);
  transform-origin: center;
}

.ticker-track {
  display: flex;
  align-items: center;
  gap: 28px;
  width: max-content;
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 0.035em;
  animation: ticker-slide 34s linear infinite;
}

.ticker-track:hover {
  animation-play-state: paused;
}

.ticker-flower {
  font-size: 12px;
  color: rgba(75, 60, 51, 0.45);
}

/* ---------- section shared ---------- */
.section-heading h2,
.classroom-intro h2,
.about-copy h2 {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: clamp(38px, 4vw, 49px);
  font-weight: 400;
  line-height: 1.22;
  letter-spacing: 0.01em;
}

.section-heading h2 em,
.classroom-intro h2 em,
.about-copy h2 em {
  font-style: normal;
  color: var(--peach-deep);
}

.section-heading > p:not(.kicker),
.classroom-intro .section-heading > p:not(.kicker),
.about-copy > p:not(.kicker) {
  max-width: 540px;
  margin: 0;
  font-size: 14px;
  line-height: 1.9;
  color: var(--muted);
}

.kicker {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 13px;
  font-family: var(--font-body);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sage-deep);
}

.kicker .icon {
  width: 13px;
  height: 13px;
}

.kicker-light {
  color: var(--sage-deep);
}

/* ---------- project gallery ---------- */
.projects-section {
  position: relative;
  padding: 104px 0 118px;
  background: rgba(255, 251, 244, 0.72);
  border-bottom: 1px dashed var(--line);
}

.projects-section::before {
  position: absolute;
  top: 52px;
  right: 3%;
  width: 94px;
  height: 94px;
  content: '';
  background: radial-gradient(circle at 50% 50%, transparent 39%, rgba(233, 156, 137, 0.16) 40%, transparent 41%);
  border-radius: 50%;
  pointer-events: none;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 35px;
}

.section-heading {
  max-width: 650px;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 285px;
  height: 48px;
  flex: none;
  padding: 0 15px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 4px 0 rgba(111, 85, 66, 0.035);
  transition: border-color 0.25s, box-shadow 0.25s;
}

.search-box:focus-within {
  border-color: rgba(214, 143, 127, 0.65);
  box-shadow: 0 0 0 4px rgba(246, 199, 182, 0.2);
}

.search-box > .icon {
  width: 16px;
  height: 16px;
  color: var(--muted);
}

.search-box input {
  width: 100%;
  min-width: 0;
  height: 100%;
  padding: 0;
  font-size: 12px;
  background: transparent;
  border: 0;
  outline: 0;
}

.search-box input::placeholder {
  color: #ab9a8d;
}

.search-clear {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  padding: 0;
  color: var(--muted);
  background: #f2e9dc;
  border: 0;
  border-radius: 50%;
}

.search-clear .icon {
  width: 11px;
  height: 11px;
}

.filter-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 27px;
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 37px;
  padding: 0 15px;
  font-size: 11.5px;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: color 0.25s, background 0.25s, border-color 0.25s, transform 0.25s;
}

.filter-chip:hover {
  color: var(--ink);
  background: rgba(255, 253, 248, 0.8);
  transform: translateY(-1px);
}

.filter-chip.is-active {
  color: var(--paper-deep);
  background: var(--ink);
  border-color: var(--ink);
}

.filter-chip .icon {
  width: 13px;
  height: 13px;
}

.filter-chip-fav.is-active {
  background: #b86a5e;
  border-color: #b86a5e;
}

.filter-chip span[data-count] {
  opacity: 0.55;
  margin-left: 2px;
}

.result-count {
  flex: none;
  margin: 0;
  font-size: 10.5px;
  letter-spacing: 0.04em;
  color: var(--muted-light);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
  align-items: start;
}

.project-card {
  position: relative;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 25px;
  box-shadow: 0 3px 0 rgba(111, 85, 66, 0.035);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.3s;
}

.project-card:hover {
  border-color: rgba(75, 60, 51, 0.2);
  box-shadow: var(--shadow-md);
  transform: translateY(-7px);
}

.project-cover {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--card-color, var(--peach-soft));
}

.project-cover::after {
  position: absolute;
  inset: 0;
  content: '';
  background: linear-gradient(180deg, rgba(75, 60, 51, 0.02), transparent 42%, rgba(75, 60, 51, 0.08));
  pointer-events: none;
}

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

.project-card:hover .project-cover img {
  transform: scale(1.035);
}

.project-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 10px;
  font-size: 9.5px;
  font-weight: 600;
  line-height: 1;
  color: var(--ink-soft);
  letter-spacing: 0.03em;
  background: rgba(255, 253, 248, 0.89);
  border: 1px solid rgba(75, 60, 51, 0.1);
  border-radius: 999px;
  backdrop-filter: blur(7px);
}

.project-badge::before {
  width: 4px;
  height: 4px;
  content: '';
  background: var(--peach-deep);
  border-radius: 50%;
}

.card-time {
  position: absolute;
  right: 14px;
  bottom: 13px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 9px;
  font-size: 9.5px;
  color: var(--ink-soft);
  background: rgba(255, 253, 248, 0.86);
  border-radius: 999px;
  backdrop-filter: blur(7px);
}

.card-time .icon {
  width: 11px;
  height: 11px;
}

.card-fav {
  position: absolute;
  top: 13px;
  right: 13px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 37px;
  height: 37px;
  padding: 0;
  color: var(--ink-soft);
  background: rgba(255, 253, 248, 0.86);
  border: 1px solid rgba(75, 60, 51, 0.08);
  border-radius: 50%;
  backdrop-filter: blur(7px);
  transition: color 0.25s, background 0.25s, transform 0.25s;
}

.card-fav:hover {
  background: var(--paper);
  transform: scale(1.08);
}

.card-fav .icon {
  width: 17px;
  height: 17px;
}

.card-fav.is-fav {
  color: #b55f53;
  background: #fff2ed;
}

.card-fav.is-fav .icon {
  fill: currentColor;
}

.card-fav.pop {
  animation: heart-pop 0.42s var(--ease);
}

.card-body {
  padding: 20px 21px 19px;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  font-size: 9.5px;
  font-weight: 500;
  color: var(--sage-deep);
  letter-spacing: 0.08em;
}

.card-meta .dot {
  width: 2.5px;
  height: 2.5px;
  background: var(--muted-light);
  border-radius: 50%;
}

.card-body h3 {
  margin: 7px 0 6px;
  font-family: var(--font-display);
  font-size: 23px;
  font-weight: 400;
  line-height: 1.3;
}

.card-body h3 a::after {
  position: absolute;
  inset: 0;
  content: '';
}

.card-body p {
  display: -webkit-box;
  min-height: 41px;
  margin: 0 0 14px;
  overflow: hidden;
  font-size: 11.5px;
  line-height: 1.75;
  color: var(--muted);
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 13px;
  border-top: 1px dashed var(--line);
}

.card-arrow {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--ink-soft);
}

.card-arrow .icon {
  width: 13px;
  height: 13px;
  transition: transform 0.3s var(--ease);
}

.project-card:hover .card-arrow .icon {
  transform: translateX(4px);
}

.card-progress {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 9px;
  color: var(--sage-deep);
}

.card-progress-bar {
  width: 44px;
  height: 4px;
  overflow: hidden;
  background: #e9e1d2;
  border-radius: 999px;
}

.card-progress-bar i {
  display: block;
  height: 100%;
  background: var(--sage-deep);
  border-radius: inherit;
}

.card-fav:focus-visible {
  outline-offset: 2px;
}

.empty-state {
  padding: 60px 20px;
  text-align: center;
  background: rgba(255, 253, 248, 0.6);
  border: 1px dashed var(--line-strong);
  border-radius: 26px;
}

.empty-illustration {
  width: 100px;
  margin: 0 auto 8px;
}

.empty-state h3 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 400;
}

.empty-state p {
  margin: 0 0 20px;
  font-size: 12px;
  color: var(--muted);
}

/* ---------- classroom ---------- */
.classroom {
  position: relative;
  padding: 110px 0 100px;
  overflow: hidden;
  background: var(--sage-soft);
  border-bottom: 1px dashed rgba(75, 60, 51, 0.13);
}

.classroom::before,
.classroom::after {
  position: absolute;
  content: '';
  border-radius: 50%;
  pointer-events: none;
}

.classroom::before {
  top: -160px;
  right: -120px;
  width: 460px;
  height: 460px;
  background: radial-gradient(circle, rgba(255, 253, 248, 0.85), transparent 68%);
}

.classroom::after {
  bottom: 80px;
  left: -140px;
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(246, 226, 167, 0.28), transparent 68%);
}

.classroom .container {
  position: relative;
  z-index: 1;
}

.classroom-intro {
  display: grid;
  grid-template-columns: 1fr 310px;
  align-items: center;
  gap: 70px;
  margin-bottom: 50px;
}

.classroom-intro h2 {
  font-size: clamp(42px, 4.5vw, 56px);
}

.classroom-intro h2 em {
  color: var(--sage-deep);
}

.sticky-note {
  position: relative;
  width: 292px;
  margin: 10px 0 0 auto;
  padding: 35px 30px 25px;
  background: var(--butter);
  border: 1px solid rgba(75, 60, 51, 0.12);
  border-radius: 3px 6px 4px 5px;
  box-shadow: 10px 13px 0 rgba(126, 150, 112, 0.15), 0 14px 30px rgba(111, 85, 66, 0.12);
  transform: rotate(2.7deg);
}

.tape {
  position: absolute;
  top: -11px;
  left: 50%;
  width: 88px;
  height: 25px;
  background: rgba(255, 253, 248, 0.55);
  border-left: 1px dashed rgba(75, 60, 51, 0.12);
  border-right: 1px dashed rgba(75, 60, 51, 0.12);
  transform: translateX(-50%) rotate(-2deg);
}

.sticky-note p {
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-size: 23px;
  line-height: 1.6;
  color: var(--ink-soft);
}

.sticky-sign {
  font-size: 10.5px;
  color: rgba(75, 60, 51, 0.55);
}

.sticky-flower {
  position: absolute;
  right: -17px;
  bottom: -18px;
  width: 42px;
  height: 42px;
  color: rgba(255, 253, 248, 0.9);
  transform: rotate(12deg);
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 15px;
  margin-bottom: 54px;
}

.tool-card {
  position: relative;
  min-height: 224px;
  padding: 22px 18px 20px;
  background: rgba(255, 253, 248, 0.86);
  border: 1px solid rgba(75, 60, 51, 0.11);
  border-radius: 20px;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.3s;
}

.tool-card:hover {
  background: var(--paper);
  box-shadow: var(--shadow-sm);
  transform: translateY(-5px) rotate(-0.5deg);
}

.tool-index {
  position: absolute;
  top: 21px;
  right: 17px;
  font-family: var(--font-body);
  font-size: 9px;
  color: var(--muted-light);
  letter-spacing: 0.12em;
}

.tool-icon {
  display: grid;
  place-items: center;
  width: 45px;
  height: 45px;
  margin-bottom: 17px;
  border: 1px solid rgba(75, 60, 51, 0.09);
  border-radius: 50%;
}

.tool-icon .icon {
  width: 22px;
  height: 22px;
}

.tool-icon-peach {
  color: #a85f51;
  background: #f8dcd1;
}

.tool-icon-sage {
  color: #5f7b53;
  background: #dfe8d6;
}

.tool-icon-butter {
  color: #a37c3b;
  background: #f7eac5;
}

.tool-icon-sky {
  color: #547b77;
  background: #dfecea;
}

.tool-icon-rose {
  color: #a45f63;
  background: #f5dfe0;
}

.tool-card h3 {
  margin: 0 0 7px;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.35;
}

.tool-card p {
  margin: 0;
  font-size: 11.5px;
  line-height: 1.75;
  color: var(--muted);
}

.stitch-lab {
  position: relative;
  margin-bottom: 54px;
  padding: 33px 38px 38px;
  overflow: hidden;
  background: var(--paper-deep);
  border: 1px solid rgba(75, 60, 51, 0.13);
  border-radius: 30px;
  box-shadow: var(--shadow-md);
}

.stitch-lab::after {
  position: absolute;
  right: -32px;
  bottom: -40px;
  width: 180px;
  height: 180px;
  content: '';
  border: 1px dashed rgba(126, 150, 112, 0.24);
  border-radius: 50%;
  pointer-events: none;
}

.stitch-lab-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 26px;
  padding-bottom: 21px;
  margin-bottom: 26px;
  border-bottom: 1px dashed var(--line);
}

.stitch-lab-head h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(26px, 2.6vw, 33px);
  font-weight: 400;
  line-height: 1.3;
}

.stitch-lab-head > p {
  max-width: 230px;
  margin: 0 0 5px;
  font-size: 11px;
  line-height: 1.7;
  color: var(--muted);
  text-align: right;
}

.stitch-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 285px minmax(0, 1fr);
  gap: 28px;
}

.stitch-tabs {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.stitch-tab {
  display: grid;
  grid-template-columns: 30px 1fr 18px;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 15px 16px;
  text-align: left;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 16px;
  transition: color 0.25s, background 0.25s, border-color 0.25s, transform 0.25s;
}

.stitch-tab:hover {
  background: rgba(255, 253, 248, 0.9);
  transform: translateX(2px);
}

.stitch-tab.is-active {
  color: var(--paper-deep);
  background: var(--ink);
  border-color: var(--ink);
  transform: none;
}

.stitch-tab-num {
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  font-size: 10px;
  color: var(--ink-soft);
  background: #f3e8d9;
  border-radius: 50%;
}

.stitch-tab.is-active .stitch-tab-num {
  color: var(--ink);
  background: var(--butter);
}

.stitch-tab-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.stitch-tab-text strong {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.3;
}

.stitch-tab-text small {
  font-size: 8px;
  color: var(--muted);
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.stitch-tab.is-active .stitch-tab-text small {
  color: rgba(255, 253, 248, 0.55);
}

.stitch-tab > .icon {
  width: 15px;
  height: 15px;
  justify-self: end;
  opacity: 0.55;
}

.stitch-stage {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  align-items: center;
  gap: 20px;
  min-height: 318px;
  padding: 26px 28px;
  background: #f4ecdf;
  border-radius: 21px;
}

.stitch-copy h4 {
  margin: 0 0 4px;
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 400;
  line-height: 1.3;
}

.stitch-subtitle {
  display: block;
  margin-bottom: 15px;
  font-family: var(--font-body);
  font-size: 9px;
  font-weight: 500;
  color: var(--peach-deep);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.stitch-copy > p {
  margin: 0 0 16px;
  font-size: 12.5px;
  line-height: 1.9;
  color: #756256;
}

.stitch-use {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 14px;
  padding: 6px 10px;
  font-size: 10px;
  color: var(--sage-deep);
  background: rgba(183, 201, 168, 0.25);
  border: 1px dashed rgba(126, 150, 112, 0.4);
  border-radius: 999px;
}

.stitch-tip {
  padding-top: 12px;
  font-size: 10.5px;
  line-height: 1.75;
  color: var(--muted);
  border-top: 1px dashed rgba(75, 60, 51, 0.14);
}

.stitch-tip strong {
  margin-right: 5px;
  font-weight: 600;
  color: var(--ink-soft);
}

.stitch-diagram {
  min-width: 0;
}

.stitch-diagram svg {
  width: 100%;
  height: auto;
  overflow: visible;
}

.diagram-fabric {
  fill: #fdf7ea;
  stroke: #6b5344;
  stroke-width: 2;
}

.diagram-fabric-alt {
  fill: #f1d8c9;
  stroke: #6b5344;
  stroke-width: 2;
}

.diagram-edge {
  fill: none;
  stroke: #6b5344;
  stroke-width: 2;
  stroke-dasharray: 5 5;
  opacity: 0.55;
}

.diagram-thread {
  fill: none;
  stroke: #d47f6e;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.diagram-thread-soft {
  fill: none;
  stroke: #d47f6e;
  stroke-width: 2;
  stroke-dasharray: 4 7;
  stroke-linecap: round;
  opacity: 0.55;
}

.diagram-stitch {
  fill: none;
  stroke: #4b3c33;
  stroke-width: 2.4;
  stroke-linecap: round;
}

.diagram-needle {
  fill: none;
  stroke: #4b3c33;
  stroke-width: 3;
  stroke-linecap: round;
}

.diagram-label {
  font-family: var(--font-body);
  font-size: 9px;
  fill: #8f7d70;
  letter-spacing: 0.04em;
}

.diagram-mark {
  fill: #f6e2a7;
  stroke: #6b5344;
  stroke-width: 1.5;
}

.safety-row {
  display: grid;
  grid-template-columns: 190px repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}

.safety-heading {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8px 6px;
}

.safety-badge {
  display: inline-flex;
  align-self: flex-start;
  margin-bottom: 11px;
  padding: 4px 9px;
  font-size: 8px;
  font-weight: 700;
  color: #9c6b50;
  letter-spacing: 0.14em;
  background: var(--peach-soft);
  border: 1px solid rgba(214, 143, 127, 0.25);
  border-radius: 999px;
}

.safety-heading h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 29px;
  font-weight: 400;
  line-height: 1.32;
}

.safety-card {
  padding: 21px 21px 19px;
  background: rgba(255, 253, 248, 0.55);
  border: 1px solid rgba(75, 60, 51, 0.1);
  border-radius: 18px;
}

.safety-card > span {
  display: block;
  margin-bottom: 10px;
  font-size: 9px;
  color: var(--peach-deep);
  letter-spacing: 0.13em;
}

.safety-card h4 {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.4;
}

.safety-card p {
  margin: 0;
  font-size: 10.5px;
  line-height: 1.75;
  color: var(--muted);
}

/* ---------- about ---------- */
.about {
  padding: 118px 0;
  background: rgba(250, 244, 232, 0.58);
}

.about-grid {
  display: grid;
  grid-template-columns: 0.94fr 1.06fr;
  align-items: center;
  gap: 82px;
}

.about-visual {
  position: relative;
  max-width: 500px;
}

.about-frame {
  position: relative;
  padding: 17px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 32px;
  box-shadow: var(--shadow-md);
  transform: rotate(-2.3deg);
}

.about-frame::before {
  position: absolute;
  top: -12px;
  left: 50%;
  width: 95px;
  height: 27px;
  content: '';
  background: rgba(246, 226, 167, 0.72);
  transform: translateX(-50%) rotate(1.5deg);
}

.about-frame img {
  width: 100%;
  border-radius: 20px;
}

.about-tag {
  position: absolute;
  right: -15px;
  bottom: -20px;
  display: grid;
  place-items: center;
  width: 104px;
  height: 104px;
  font-size: 8.5px;
  font-weight: 600;
  line-height: 1.65;
  color: var(--ink-soft);
  text-align: center;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  background: var(--sage);
  border: 1px dashed rgba(75, 60, 51, 0.35);
  border-radius: 50%;
  transform: rotate(8deg);
  box-shadow: 0 7px 16px rgba(111, 85, 66, 0.12);
}

.about-copy h2 {
  margin-bottom: 20px;
}

.about-copy h2 em {
  color: var(--peach-deep);
}

.about-copy > p:not(.kicker) {
  max-width: 540px;
  margin: 0 0 14px;
  font-size: 13.5px;
  line-height: 1.95;
  color: var(--muted);
}

.about-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.about-pills span {
  padding: 7px 13px;
  font-size: 10.5px;
  color: var(--ink-soft);
  background: rgba(255, 253, 248, 0.65);
  border: 1px dashed var(--line-strong);
  border-radius: 999px;
}

.about-stats {
  display: flex;
  gap: 30px;
  margin-top: 29px;
  padding-top: 23px;
  border-top: 1px dashed var(--line);
}

.about-stats div {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.about-stats strong {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 400;
  line-height: 1.2;
  color: var(--peach-deep);
}

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

/* ---------- newsletter ---------- */
.newsletter {
  padding: 0 0 110px;
}

.newsletter-card {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 52px;
  padding: 50px 55px;
  overflow: hidden;
  background: var(--peach);
  border: 1px solid rgba(75, 60, 51, 0.14);
  border-radius: 34px;
  box-shadow: var(--shadow-md);
}

.newsletter-card::before {
  position: absolute;
  top: -110px;
  right: -70px;
  width: 330px;
  height: 330px;
  content: '';
  background: rgba(255, 253, 248, 0.27);
  border-radius: 50%;
}

.newsletter-card::after {
  position: absolute;
  bottom: -120px;
  left: 34%;
  width: 260px;
  height: 260px;
  content: '';
  border: 1px dashed rgba(75, 60, 51, 0.14);
  border-radius: 50%;
}

.newsletter-copy,
.newsletter-form {
  position: relative;
  z-index: 2;
}

.newsletter-copy .kicker {
  color: #855b4d;
}

.newsletter-copy h2 {
  margin: 0 0 13px;
  font-family: var(--font-display);
  font-size: clamp(35px, 3.5vw, 46px);
  font-weight: 400;
  line-height: 1.28;
}

.newsletter-copy p:not(.kicker) {
  max-width: 370px;
  margin: 0;
  font-size: 12.5px;
  line-height: 1.8;
  color: rgba(75, 60, 51, 0.72);
}

.newsletter-field {
  display: flex;
  gap: 5px;
  padding: 5px;
  background: var(--paper-deep);
  border: 1px solid rgba(75, 60, 51, 0.13);
  border-radius: 999px;
  box-shadow: 0 8px 20px rgba(111, 85, 66, 0.09);
}

.newsletter-field input {
  width: 100%;
  min-width: 0;
  height: 46px;
  padding: 0 15px;
  font-size: 12px;
  background: transparent;
  border: 0;
  outline: 0;
}

.newsletter-field input::placeholder {
  color: #a9988a;
}

.form-note {
  margin: 10px 0 0 13px;
  font-size: 9.5px;
  color: rgba(75, 60, 51, 0.55);
}

.form-note.is-success {
  color: #48613e;
  font-weight: 600;
}

.newsletter-spool {
  position: absolute;
  top: -26px;
  right: 45%;
  width: 100px;
  height: 100px;
  color: rgba(75, 60, 51, 0.13);
  transform: rotate(15deg);
}

.newsletter-spool .icon {
  width: 100%;
  height: 100%;
}

.newsletter-flower {
  position: absolute;
  right: 33%;
  bottom: -17px;
  width: 64px;
  height: 64px;
  color: rgba(255, 253, 248, 0.25);
  transform: rotate(-8deg);
}

/* ---------- footer ---------- */
.site-footer {
  padding: 58px 0 28px;
  color: rgba(255, 249, 240, 0.84);
  background: var(--ink);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr 0.85fr;
  gap: 50px;
  padding-bottom: 36px;
  border-bottom: 1px dashed rgba(255, 249, 240, 0.18);
}

.footer-brand .brand-mark {
  background: var(--peach);
}

.footer-brand .brand-text {
  color: var(--paper-deep);
}

.footer-brand .brand-text small {
  color: rgba(255, 249, 240, 0.46);
}

.footer-brand > p {
  margin: 17px 0 0;
  font-size: 11.5px;
  line-height: 1.9;
  color: rgba(255, 249, 240, 0.48);
}

.footer-links {
  display: flex;
  gap: 72px;
}

.footer-links h3 {
  margin: 4px 0 15px;
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 600;
  color: rgba(255, 249, 240, 0.9);
  letter-spacing: 0.12em;
}

.footer-links a,
.footer-links span {
  display: block;
  margin: 9px 0;
  font-size: 10.5px;
  color: rgba(255, 249, 240, 0.46);
  transition: color 0.25s, transform 0.25s;
}

.footer-links a:hover {
  color: var(--butter);
  transform: translateX(3px);
}

.footer-note {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
  text-align: right;
}

.footer-hand {
  max-width: 220px;
  margin: 0;
  font-family: var(--font-display);
  font-size: 20px;
  line-height: 1.6;
  color: var(--butter);
}

.footer-note > span {
  font-size: 9px;
  color: rgba(255, 249, 240, 0.34);
  letter-spacing: 0.03em;
}

/* ---------- project detail ---------- */
.project-view[hidden] {
  display: none;
}

.detail-hero {
  position: relative;
  padding: 38px 0 78px;
  overflow: hidden;
  background: rgba(255, 251, 244, 0.7);
  border-bottom: 1px dashed var(--line);
}

.detail-hero::before {
  position: absolute;
  top: 90px;
  left: -120px;
  width: 340px;
  height: 340px;
  content: '';
  background: radial-gradient(circle, rgba(246, 226, 167, 0.26), transparent 68%);
  pointer-events: none;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 30px;
  font-size: 11px;
  color: var(--muted);
  transition: color 0.25s, transform 0.25s;
}

.back-link .icon {
  width: 14px;
  height: 14px;
  transform: rotate(180deg);
}

.back-link:hover {
  color: var(--ink);
  transform: translateX(-3px);
}

.detail-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  align-items: center;
  gap: 62px;
}

.detail-art {
  position: relative;
  border-radius: 31px;
}

.detail-art-frame {
  position: relative;
  overflow: hidden;
  background: var(--art-color, var(--peach-soft));
  border: 1px solid rgba(75, 60, 51, 0.14);
  border-radius: 31px;
  box-shadow: var(--shadow-lg);
}

.detail-art-frame::before {
  position: absolute;
  top: 18px;
  left: -31px;
  z-index: 2;
  width: 115px;
  height: 29px;
  content: '';
  background: rgba(246, 226, 167, 0.66);
  transform: rotate(-38deg);
  pointer-events: none;
}

.detail-art-frame::after {
  position: absolute;
  right: 16px;
  bottom: -18px;
  z-index: 2;
  width: 105px;
  height: 29px;
  content: '';
  background: rgba(246, 226, 167, 0.56);
  transform: rotate(-16deg);
  pointer-events: none;
}

.detail-art img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.detail-sticker {
  position: absolute;
  top: -24px;
  right: -22px;
  z-index: 4;
  display: grid;
  place-items: center;
  width: 98px;
  height: 98px;
  font-family: var(--font-display);
  font-size: 16px;
  line-height: 1.25;
  color: var(--ink-soft);
  text-align: center;
  background: var(--butter);
  border: 1px dashed rgba(75, 60, 51, 0.32);
  border-radius: 50%;
  transform: rotate(8deg);
  box-shadow: 0 9px 20px rgba(111, 85, 66, 0.14);
}

.detail-sticker::before {
  position: absolute;
  inset: 6px;
  content: '';
  border: 1px dashed rgba(75, 60, 51, 0.18);
  border-radius: 50%;
}

.detail-note {
  position: absolute;
  bottom: 21px;
  left: -18px;
  z-index: 4;
  padding: 11px 17px;
  font-family: var(--font-display);
  font-size: 14px;
  color: var(--ink-soft);
  background: rgba(255, 253, 248, 0.95);
  border: 1px solid var(--line);
  border-radius: 3px;
  transform: rotate(-3deg);
  box-shadow: var(--shadow-sm);
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 12px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  font-size: 9.5px;
  font-weight: 500;
  color: var(--ink-soft);
  letter-spacing: 0.04em;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.pill-soft {
  color: var(--sage-deep);
  background: #edf1e6;
  border-color: rgba(126, 150, 112, 0.2);
}

.detail-copy h1 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: clamp(45px, 4.7vw, 57px);
  font-weight: 400;
  line-height: 1.2;
}

.detail-tagline {
  margin: 0 0 14px;
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.7;
  color: var(--peach-deep);
}

.detail-description {
  max-width: 520px;
  margin: 0;
  font-size: 12.5px;
  line-height: 1.95;
  color: var(--muted);
}

.detail-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px 20px;
  margin: 25px 0 27px;
  padding: 18px 21px;
  background: rgba(255, 253, 248, 0.64);
  border: 1px solid var(--line);
  border-radius: 18px;
}

.detail-meta dt {
  margin: 0 0 3px;
  font-size: 8.5px;
  font-weight: 500;
  color: var(--muted-light);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.detail-meta dd {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-soft);
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.detail-actions .btn-ghost.is-fav {
  border-color: rgba(181, 95, 83, 0.28);
}

.detail-body {
  padding: 68px 0 90px;
  background: rgba(255, 253, 248, 0.5);
}

.detail-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  align-items: start;
  gap: 54px;
}

.prep-card {
  position: sticky;
  top: 108px;
  padding: 24px 23px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow-sm);
}

.prep-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 13px;
  border-bottom: 1px dashed var(--line);
}

.prep-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 23px;
  font-weight: 400;
}

.prep-time {
  font-size: 9px;
  color: var(--muted-light);
  white-space: nowrap;
}

.prep-group h3 {
  margin: 19px 0 6px;
  font-family: var(--font-body);
  font-size: 9px;
  font-weight: 600;
  color: var(--sage-deep);
  letter-spacing: 0.12em;
}

.check-item {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 10px 0;
  font-size: 11.5px;
  line-height: 1.6;
  color: var(--ink-soft);
  cursor: pointer;
}

.check-item input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.check-box {
  display: grid;
  place-items: center;
  width: 17px;
  height: 17px;
  flex: none;
  margin-top: 1px;
  color: transparent;
  background: var(--paper-deep);
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  transition: color 0.2s, background 0.2s, border-color 0.2s;
}

.check-box .icon {
  width: 11px;
  height: 11px;
}

.check-item input:checked + .check-box {
  color: var(--paper-deep);
  background: var(--sage-deep);
  border-color: var(--sage-deep);
}

.check-item input:focus-visible + .check-box {
  outline: 3px solid rgba(214, 143, 127, 0.5);
  outline-offset: 2px;
}

.check-item:has(input:checked) .check-text {
  color: var(--muted-light);
  text-decoration: line-through;
  text-decoration-color: rgba(143, 125, 112, 0.45);
}

.prep-note {
  margin-top: 18px;
  padding: 11px 12px;
  font-size: 10px;
  line-height: 1.7;
  color: #8b6a4c;
  background: #f8f0dd;
  border: 1px dashed rgba(163, 124, 60, 0.24);
  border-radius: 11px;
}

.prep-note strong {
  font-weight: 600;
}

.steps-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 25px;
  margin-bottom: 18px;
}

.steps-header h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(34px, 3.5vw, 43px);
  font-weight: 400;
  line-height: 1.25;
}

.progress-wrap {
  width: 205px;
  flex: none;
  margin-bottom: 6px;
}

.progress-text {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 7px;
  font-size: 9px;
  color: var(--muted);
}

.progress-text strong {
  font-weight: 600;
  color: var(--sage-deep);
}

.progress-bar {
  height: 7px;
  overflow: hidden;
  background: #eae0d2;
  border-radius: 999px;
}

.progress-fill {
  width: 0;
  height: 100%;
  background: var(--sage-deep);
  border-radius: inherit;
  transition: width 0.5s var(--ease);
}

.step-list {
  padding: 0;
  margin: 0;
  list-style: none;
}

.step-card {
  display: grid;
  grid-template-columns: 55px minmax(0, 1fr);
  gap: 23px;
  padding: 31px 0;
  border-bottom: 1px dashed var(--line);
  transition: opacity 0.3s;
}

.step-num {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  font-family: var(--font-display);
  font-size: 19px;
  color: var(--ink-soft);
  background: var(--peach-soft);
  border: 1px solid rgba(75, 60, 51, 0.12);
  border-radius: 50%;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}

.step-card:nth-child(3n + 2) .step-num {
  background: #f5e9c3;
}

.step-card:nth-child(3n) .step-num {
  background: #e2ead9;
}

.step-content {
  padding-top: 2px;
}

.step-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.step-top h3 {
  margin: 0 0 9px;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 400;
  line-height: 1.35;
}

.step-body > p {
  margin: 0;
  font-size: 13px;
  line-height: 1.95;
  color: #6f5d50;
}

.step-tip {
  display: flex;
  gap: 9px;
  margin-top: 13px;
  padding: 11px 14px;
  font-size: 10.5px;
  line-height: 1.8;
  color: #826b4d;
  background: #f8f0dd;
  border-left: 2px solid #e4c06c;
  border-radius: 0 10px 10px 0;
}

.step-tip strong {
  flex: none;
  font-size: 9px;
  line-height: 1.9;
  color: #a37c3c;
  letter-spacing: 0.05em;
}

.step-check {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 32px;
  flex: none;
  padding: 0 11px;
  font-size: 10px;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  white-space: nowrap;
  transition: color 0.25s, background 0.25s, border-color 0.25s;
}

.step-check .icon {
  width: 12px;
  height: 12px;
}

.step-check:hover {
  color: var(--ink);
  background: var(--paper);
}

.step-card.is-done .step-num {
  color: var(--paper-deep);
  background: var(--sage-deep);
  border-color: var(--sage-deep);
}

.step-card.is-done .step-check {
  color: var(--sage-deep);
  background: #edf1e6;
  border-color: rgba(126, 150, 112, 0.35);
}

.step-card.is-done .step-check .icon {
  display: block;
}

.step-card:not(.is-done) .step-check .icon {
  display: none;
}

.finish-card {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 30px;
  padding: 24px 25px;
  background: #f4e8d8;
  border: 1px dashed rgba(75, 60, 51, 0.24);
  border-radius: 20px;
}

.finish-illustration {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  flex: none;
  color: var(--ink-soft);
  background: var(--butter);
  border-radius: 50%;
  transform: rotate(-6deg);
}

.finish-illustration .icon {
  width: 31px;
  height: 31px;
}

.finish-card h3 {
  margin: 0 0 4px;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
}

.finish-card p {
  margin: 0;
  font-size: 11px;
  line-height: 1.75;
  color: var(--muted);
}

.next-project {
  padding: 0 0 100px;
  background: rgba(255, 253, 248, 0.5);
}

.next-card {
  display: flex;
  align-items: center;
  gap: 25px;
  padding: 21px 26px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 25px;
  transition: box-shadow 0.3s, transform 0.3s;
}

.next-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.next-label {
  font-size: 9px;
  font-weight: 600;
  color: var(--muted-light);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.next-card img {
  width: 144px;
  height: 108px;
  flex: none;
  object-fit: cover;
  border-radius: 15px;
}

.next-info {
  flex: 1;
  min-width: 0;
}

.next-info h3 {
  margin: 2px 0 3px;
  font-family: var(--font-display);
  font-size: 25px;
  font-weight: 400;
}

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

.next-arrow {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  flex: none;
  color: var(--ink);
  background: var(--butter);
  border-radius: 50%;
  transition: transform 0.3s;
}

.next-card:hover .next-arrow {
  transform: translateX(4px) rotate(-8deg);
}

.next-arrow .icon {
  width: 18px;
  height: 18px;
}

/* ---------- drawer ---------- */
.drawer-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  visibility: hidden;
  background: rgba(61, 47, 38, 0.28);
  opacity: 0;
  backdrop-filter: blur(4px);
  transition: opacity 0.35s, visibility 0.35s;
}

.drawer-overlay.is-open {
  visibility: visible;
  opacity: 1;
}

.notebook-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 201;
  display: flex;
  flex-direction: column;
  width: min(430px, 100%);
  height: 100dvh;
  background: var(--cream);
  border-left: 1px solid var(--line);
  box-shadow: -20px 0 60px rgba(61, 47, 38, 0.16);
  transform: translateX(105%);
  transition: transform 0.42s var(--ease);
}

.notebook-drawer.is-open {
  transform: translateX(0);
}

.drawer-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 26px 25px 20px;
  border-bottom: 1px dashed var(--line);
}

.drawer-head .kicker {
  margin-bottom: 6px;
}

.drawer-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 400;
  line-height: 1.3;
}

.icon-button {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: none;
  padding: 0;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 50%;
  transition: background 0.25s, transform 0.25s;
}

.icon-button:hover {
  background: var(--peach-soft);
  transform: rotate(8deg);
}

.icon-button .icon {
  width: 15px;
  height: 15px;
}

.drawer-body {
  flex: 1;
  padding: 22px 25px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.journal-section + .journal-section {
  margin-top: 27px;
}

.journal-section h3 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 10px;
  font-family: var(--font-body);
  font-size: 9px;
  font-weight: 600;
  color: var(--sage-deep);
  letter-spacing: 0.13em;
}

.journal-section h3 span {
  color: var(--muted-light);
  font-weight: 400;
  letter-spacing: 0;
}

.journal-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px dashed var(--line);
}

.journal-thumb {
  width: 68px;
  height: 52px;
  flex: none;
  overflow: hidden;
  background: var(--card-color);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.journal-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.journal-info {
  min-width: 0;
  flex: 1;
}

.journal-info h4 {
  margin: 0 0 2px;
  overflow: hidden;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.journal-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 8.5px;
  color: var(--muted-light);
}

.journal-progress {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 5px;
  font-size: 8px;
  color: var(--sage-deep);
}

.journal-progress .card-progress-bar {
  width: 58px;
}

.journal-arrow {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  flex: none;
  color: var(--muted);
  background: var(--paper);
  border-radius: 50%;
}

.journal-arrow .icon {
  width: 12px;
  height: 12px;
}

.journal-empty {
  padding: 42px 18px;
  text-align: center;
}

.journal-empty .empty-illustration {
  width: 85px;
  margin-bottom: 6px;
}

.journal-empty h4 {
  margin: 0 0 5px;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 400;
}

.journal-empty p {
  margin: 0;
  font-size: 10.5px;
  line-height: 1.75;
  color: var(--muted);
}

.drawer-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 25px 20px;
  border-top: 1px dashed var(--line);
}

.drawer-foot p {
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 0;
  font-size: 8.5px;
  color: var(--muted-light);
}

.drawer-foot .icon {
  width: 11px;
  height: 11px;
  color: var(--peach-deep);
}

.text-button {
  padding: 3px 0;
  font-size: 9px;
  color: var(--muted);
  background: none;
  border: 0;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.text-button:hover {
  color: var(--ink);
}

/* ---------- toast ---------- */
.toast {
  position: fixed;
  bottom: 26px;
  left: 50%;
  z-index: 300;
  display: flex;
  align-items: center;
  gap: 9px;
  max-width: calc(100% - 40px);
  padding: 11px 18px;
  font-size: 11.5px;
  color: var(--paper-deep);
  background: var(--ink);
  border: 1px solid rgba(255, 253, 248, 0.13);
  border-radius: 999px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 16px);
  transition: opacity 0.3s, transform 0.3s, visibility 0.3s;
}

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

.toast-icon {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  color: var(--ink);
  background: var(--butter);
  border-radius: 50%;
}

.toast-icon .icon {
  width: 13px;
  height: 13px;
}

.noscript-note {
  position: fixed;
  right: 20px;
  bottom: 20px;
  left: 20px;
  z-index: 500;
  padding: 14px 20px;
  font-size: 13px;
  text-align: center;
  background: var(--butter);
  border: 1px solid var(--line);
  border-radius: 14px;
}

/* ---------- reveal / motion ---------- */
html.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s var(--ease);
  transition-delay: var(--reveal-delay, 0s);
}

html.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@keyframes soft-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

@keyframes twinkle {
  0%, 100% { opacity: 0.55; transform: scale(0.9) rotate(0); }
  50% { opacity: 1; transform: scale(1.08) rotate(12deg); }
}

@keyframes ticker-slide {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes heart-pop {
  0% { transform: scale(1); }
  40% { transform: scale(1.25) rotate(-8deg); }
  100% { transform: scale(1); }
}

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .tool-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .safety-row {
    grid-template-columns: 180px repeat(3, minmax(0, 1fr));
  }

  .project-grid {
    gap: 22px;
  }

  .hero h1 {
    font-size: clamp(48px, 5.8vw, 64px);
  }

  .detail-grid {
    gap: 40px;
  }
}

@media (max-width: 960px) {
  .container {
    width: min(1180px, calc(100% - 48px));
  }

  .main-nav {
    gap: 21px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 14px;
    padding-top: 12px;
    padding-bottom: 40px;
  }

  .hero-copy {
    max-width: 660px;
  }

  .hero h1 {
    font-size: clamp(48px, 8vw, 66px);
  }

  .hero-visual {
    min-height: 0;
    max-width: 570px;
    margin: 0 auto;
    padding: 22px 0 28px;
  }

  .hero-art {
    width: min(520px, 92%);
  }

  .note-top {
    left: 4%;
  }

  .note-bottom {
    right: 2%;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 22px;
  }

  .search-box {
    width: min(100%, 360px);
  }

  .project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .classroom-intro {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .sticky-note {
    margin: 0 0 8px;
  }

  .tool-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .stitch-lab {
    padding: 29px 27px 30px;
  }

  .stitch-grid {
    grid-template-columns: 1fr;
    gap: 17px;
  }

  .stitch-tabs {
    flex-direction: row;
  }

  .stitch-tab {
    flex: 1;
  }

  .stitch-stage {
    min-height: 290px;
  }

  .safety-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .safety-heading {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: center;
    gap: 14px;
    padding: 0;
    margin-bottom: 2px;
  }

  .safety-badge {
    margin-bottom: 0;
  }

  .safety-heading h3 br {
    display: none;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .about-visual {
    max-width: 480px;
    margin: 0 auto;
  }

  .about-copy {
    max-width: 660px;
  }

  .newsletter-card {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 40px 42px;
  }

  .newsletter-copy p:not(.kicker) {
    max-width: 480px;
  }

  .newsletter-form {
    max-width: 500px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

  .footer-note {
    grid-column: 1 / -1;
    align-items: flex-start;
    flex-direction: row;
    gap: 30px;
    text-align: left;
  }

  .detail-grid {
    grid-template-columns: 1fr;
    gap: 45px;
  }

  .detail-art {
    max-width: 620px;
    width: 100%;
    margin: 0 auto;
  }

  .detail-copy {
    max-width: 650px;
  }

  .detail-layout {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .prep-card {
    position: static;
  }

  .prep-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 30px;
  }

  .prep-note {
    grid-column: 1 / -1;
    margin-top: 4px;
  }
}

@media (max-width: 720px) {
  html {
    scroll-padding-top: 84px;
  }

  .container {
    width: calc(100% - 36px);
  }

  .header-inner {
    min-height: 70px;
    gap: 12px;
  }

  .brand {
    gap: 8px;
  }

  .brand-mark {
    width: 37px;
    height: 37px;
  }

  .brand-mark .icon {
    width: 20px;
    height: 20px;
  }

  .brand-text {
    font-size: 19px;
  }

  .brand-text small {
    font-size: 7px;
  }

  .main-nav {
    display: none;
  }

  .notebook-button {
    width: 38px;
    height: 38px;
    padding: 0;
    justify-content: center;
  }

  .notebook-button > span:not(.notebook-count) {
    display: none;
  }

  .notebook-count {
    position: absolute;
    top: 13px;
    right: 64px;
    min-width: 15px;
    height: 15px;
    font-size: 8px;
    box-shadow: 0 0 0 2px var(--cream);
  }

  .header-actions {
    position: relative;
  }

  .menu-toggle {
    display: grid;
  }

  .mobile-menu {
    display: block;
    max-height: 0;
    overflow: hidden;
    border-top: 1px dashed transparent;
    transition: max-height 0.4s var(--ease), border-color 0.3s;
  }

  .mobile-menu.is-open {
    max-height: 360px;
    border-top-color: var(--line);
  }

  .mobile-menu nav {
    display: flex;
    flex-direction: column;
    padding: 12px 18px 4px;
  }

  .mobile-menu nav a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 2px;
    font-size: 13px;
    border-bottom: 1px dashed var(--line);
  }

  .mobile-menu nav a span {
    font-size: 9px;
    color: var(--muted-light);
    letter-spacing: 0.1em;
  }

  .mobile-menu > .btn {
    width: calc(100% - 36px);
    margin: 14px 18px 18px;
  }

  .hero {
    padding-top: 42px;
  }

  .eyebrow {
    margin-bottom: 19px;
    font-size: 10px;
  }

  .hero h1 {
    margin-bottom: 20px;
    font-size: clamp(39px, 12vw, 52px);
    line-height: 1.25;
  }

  .squiggle {
    height: 10px;
    bottom: -6px;
  }

  .hero-lede {
    margin-bottom: 25px;
    font-size: 13.5px;
    line-height: 1.9;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 9px;
  }

  .hero-actions .btn {
    width: 100%;
    min-height: 50px;
    font-size: 12.5px;
  }

  .hero-features {
    gap: 6px 14px;
    margin-top: 23px;
    font-size: 9.5px;
  }

  .hero-visual {
    padding: 15px 0 24px;
  }

  .hero-art {
    width: 100%;
  }

  .floating-note {
    padding: 9px 11px;
    font-size: 11.5px;
    gap: 5px;
  }

  .note-top {
    top: 6%;
    left: 0;
  }

  .note-bottom {
    right: 0;
    bottom: 8%;
  }

  .note-heart {
    font-size: 18px;
  }

  .note-icon {
    width: 23px;
    height: 23px;
  }

  .note-icon .icon {
    width: 13px;
    height: 13px;
  }

  .doodle-star {
    right: 0;
    font-size: 23px;
  }

  .doodle-flower {
    width: 21px;
    bottom: 30%;
  }

  .hero-ticker {
    padding: 10px 0;
  }

  .ticker-track {
    gap: 21px;
    font-size: 12px;
  }

  .projects-section {
    padding: 76px 0 82px;
  }

  .section-heading h2,
  .classroom-intro h2,
  .about-copy h2 {
    font-size: 36px;
  }

  .section-heading > p:not(.kicker),
  .classroom-intro .section-heading > p:not(.kicker),
  .about-copy > p:not(.kicker) {
    font-size: 12.5px;
    line-height: 1.85;
  }

  .section-head {
    gap: 18px;
    margin-bottom: 24px;
  }

  .search-box {
    width: 100%;
    height: 45px;
  }

  .filter-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 21px;
  }

  .filter-chips {
    gap: 6px;
  }

  .filter-chip {
    height: 34px;
    padding: 0 12px;
    font-size: 10.5px;
  }

  .project-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .card-body {
    padding: 18px 19px 17px;
  }

  .card-body h3 {
    font-size: 22px;
  }

  .classroom {
    padding: 78px 0 76px;
  }

  .classroom-intro {
    margin-bottom: 32px;
  }

  .sticky-note {
    width: min(280px, 100%);
    padding: 29px 24px 21px;
  }

  .sticky-note p {
    font-size: 20px;
  }

  .tool-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 36px;
  }

  .tool-card {
    min-height: 208px;
    padding: 18px 15px;
  }

  .tool-icon {
    width: 39px;
    height: 39px;
    margin-bottom: 13px;
  }

  .tool-icon .icon {
    width: 19px;
    height: 19px;
  }

  .tool-index {
    top: 16px;
    right: 13px;
  }

  .tool-card h3 {
    font-size: 16px;
  }

  .tool-card p {
    font-size: 10.5px;
    line-height: 1.7;
  }

  .stitch-lab {
    margin-bottom: 38px;
    padding: 22px 18px 24px;
    border-radius: 23px;
  }

  .stitch-lab-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    padding-bottom: 16px;
    margin-bottom: 17px;
  }

  .stitch-lab-head h3 {
    font-size: 25px;
  }

  .stitch-lab-head > p {
    max-width: none;
    text-align: left;
  }

  .stitch-tabs {
    gap: 5px;
    padding-bottom: 3px;
    overflow-x: auto;
  }

  .stitch-tab {
    grid-template-columns: 24px 1fr;
    gap: 7px;
    min-width: 145px;
    flex: 0 0 auto;
    padding: 11px 10px;
  }

  .stitch-tab > .icon {
    display: none;
  }

  .stitch-tab-num {
    width: 24px;
    height: 24px;
    font-size: 8px;
  }

  .stitch-tab-text strong {
    font-size: 15px;
  }

  .stitch-tab-text small {
    font-size: 6.5px;
  }

  .stitch-stage {
    grid-template-columns: 1fr;
    gap: 15px;
    padding: 19px 17px;
  }

  .stitch-copy h4 {
    font-size: 23px;
  }

  .stitch-copy > p {
    font-size: 11.5px;
  }

  .stitch-diagram {
    max-width: 360px;
    margin: 0 auto;
  }

  .safety-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .safety-heading {
    margin-bottom: 5px;
  }

  .safety-heading h3 {
    font-size: 26px;
  }

  .safety-card {
    padding: 17px 18px;
  }

  .about {
    padding: 78px 0;
  }

  .about-grid {
    gap: 38px;
  }

  .about-frame {
    padding: 11px;
    border-radius: 24px;
  }

  .about-tag {
    right: -8px;
    bottom: -17px;
    width: 85px;
    height: 85px;
    font-size: 7px;
  }

  .about-stats {
    gap: 20px;
  }

  .about-stats strong {
    font-size: 27px;
  }

  .about-stats span {
    font-size: 8.5px;
  }

  .newsletter {
    padding-bottom: 75px;
  }

  .newsletter-card {
    padding: 30px 24px;
    border-radius: 25px;
  }

  .newsletter-copy h2 {
    font-size: 34px;
  }

  .newsletter-field {
    flex-direction: column;
    padding: 5px;
    border-radius: 18px;
  }

  .newsletter-field input {
    height: 44px;
  }

  .newsletter-field .btn {
    width: 100%;
  }

  .form-note {
    margin-left: 6px;
    font-size: 8.5px;
  }

  .newsletter-spool {
    right: 20px;
    width: 74px;
    height: 74px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
    padding-bottom: 28px;
  }

  .footer-links {
    gap: 45px;
  }

  .footer-note {
    grid-column: auto;
    align-items: flex-start;
    flex-direction: column;
    gap: 13px;
  }

  .footer-hand {
    font-size: 18px;
  }

  .site-footer {
    padding-top: 45px;
  }

  .detail-hero {
    padding: 28px 0 55px;
  }

  .back-link {
    margin-bottom: 24px;
  }

  .detail-art {
    width: calc(100% - 6px);
  }

  .detail-sticker {
    top: -16px;
    right: -8px;
    width: 77px;
    height: 77px;
    font-size: 13px;
  }

  .detail-note {
    bottom: 13px;
    left: -6px;
    padding: 8px 12px;
    font-size: 11.5px;
  }

  .detail-copy h1 {
    font-size: 42px;
  }

  .detail-tagline {
    font-size: 13px;
  }

  .detail-description {
    font-size: 12px;
  }

  .detail-meta {
    gap: 12px 16px;
    padding: 15px 16px;
    margin: 21px 0 23px;
  }

  .detail-actions {
    flex-direction: column;
  }

  .detail-actions .btn {
    width: 100%;
  }

  .detail-body {
    padding: 47px 0 65px;
  }

  .prep-body {
    grid-template-columns: 1fr;
  }

  .steps-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 13px;
    margin-bottom: 5px;
  }

  .steps-header h2 {
    font-size: 34px;
  }

  .progress-wrap {
    width: 100%;
    margin-bottom: 10px;
  }

  .step-card {
    grid-template-columns: 43px minmax(0, 1fr);
    gap: 13px;
    padding: 25px 0;
  }

  .step-num {
    width: 42px;
    height: 42px;
    font-size: 15px;
  }

  .step-top {
    flex-direction: column;
    gap: 7px;
  }

  .step-top h3 {
    margin-bottom: 5px;
    font-size: 21px;
  }

  .step-check {
    height: 28px;
    align-self: flex-start;
  }

  .step-body > p {
    font-size: 12px;
    line-height: 1.9;
  }

  .step-tip {
    font-size: 10px;
    padding: 9px 11px;
  }

  .finish-card {
    align-items: flex-start;
    gap: 13px;
    padding: 19px 17px;
  }

  .finish-illustration {
    width: 46px;
    height: 46px;
  }

  .finish-illustration .icon {
    width: 24px;
    height: 24px;
  }

  .finish-card h3 {
    font-size: 19px;
  }

  .next-project {
    padding-bottom: 70px;
  }

  .next-card {
    gap: 14px;
    padding: 14px;
  }

  .next-card img {
    width: 82px;
    height: 82px;
  }

  .next-label {
    font-size: 7.5px;
  }

  .next-info h3 {
    font-size: 19px;
  }

  .next-info p {
    display: none;
  }

  .next-arrow {
    width: 37px;
    height: 37px;
  }

  .notebook-drawer {
    width: 100%;
  }

  .drawer-head {
    padding: 21px 19px 17px;
  }

  .drawer-body {
    padding: 17px 19px;
  }

  .drawer-foot {
    padding: 13px 19px 17px;
  }

  .toast {
    bottom: 18px;
    font-size: 10.5px;
  }
}

@media (max-width: 430px) {
  .hero-features li:nth-child(3) {
    display: none;
  }

  .floating-note {
    font-size: 10px;
    padding: 8px 9px;
  }

  .note-bottom {
    bottom: 4%;
  }

  .doodle-flower {
    display: none;
  }

  .tool-grid {
    grid-template-columns: 1fr;
  }

  .tool-card {
    min-height: 0;
  }

  .tool-card p {
    max-width: 270px;
  }

  .about-stats {
    gap: 14px;
  }

  .about-stats strong {
    font-size: 24px;
  }

  .newsletter-card {
    padding: 27px 19px;
  }

  .detail-copy h1 {
    font-size: 38px;
  }
}

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

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

/* ---------- misc states ---------- */
[hidden] {
  display: none !important;
}

.form-note.is-error {
  color: #8f3f35;
  font-weight: 600;
}

.card-progress .card-progress-bar {
  display: inline-block;
  vertical-align: middle;
}

.celebration {
  position: fixed;
  top: 54%;
  left: 50%;
  z-index: 400;
  width: 0;
  height: 0;
  pointer-events: none;
}

.confetti {
  position: absolute;
  top: 0;
  left: 0;
  font-family: var(--font-display);
  font-size: var(--size, 14px);
  line-height: 1;
  opacity: 0;
  animation: confetti-burst 1.75s cubic-bezier(0.18, 0.72, 0.26, 1) forwards;
  animation-delay: var(--delay, 0s);
}

@keyframes confetti-burst {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.2) rotate(0);
  }
  16% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y))) scale(1) rotate(var(--r));
  }
}

@media (max-width: 720px) {
  .notebook-button {
    position: relative;
  }

  .notebook-count {
    top: -3px;
    right: -3px;
    min-width: 15px;
    height: 15px;
    border: 1px solid var(--cream);
    box-shadow: none;
  }
}

/* decorative flowers rendered as text so they follow their card colour */
.sticky-flower {
  width: auto;
  height: auto;
  font-family: var(--font-display);
  font-size: 43px;
  line-height: 1;
  color: rgba(255, 253, 248, 0.9);
  transform: rotate(12deg);
}

.newsletter-flower {
  width: auto;
  height: auto;
  font-family: var(--font-display);
  font-size: 66px;
  line-height: 1;
  color: rgba(255, 253, 248, 0.26);
  transform: rotate(-8deg);
}

.about-stats strong {
  font-family: var(--font-serif);
  font-weight: 600;
  letter-spacing: -0.03em;
}

/* Numerals are clearer in the body font, while ZCOOL handles display copy. */
.step-num {
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.check-item input:not(:checked) + .check-box .icon {
  visibility: hidden;
}

.card-meta .dot {
  width: 3px;
  height: 3px;
  background: var(--peach-deep);
  opacity: 0.65;
}

.meta-sep {
  font-size: 10px;
  color: var(--muted-light);
  opacity: 0.75;
}

/* ---------- share button & modal ---------- */
.share-button {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 42px;
  padding: 0 13px;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--ink-soft);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: background 0.25s, transform 0.25s, border-color 0.25s;
}

.share-button .icon {
  width: 16px;
  height: 16px;
}

.share-button:hover {
  background: var(--paper);
  border-color: var(--line-strong);
  transform: translateY(-1px);
}

.share-overlay {
  position: fixed;
  inset: 0;
  z-index: 220;
  visibility: hidden;
  background: rgba(61, 47, 38, 0.34);
  opacity: 0;
  backdrop-filter: blur(5px);
  transition: opacity 0.35s, visibility 0.35s;
}

.share-overlay.is-open {
  visibility: visible;
  opacity: 1;
}

.share-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 221;
  width: min(460px, calc(100% - 32px));
  max-height: calc(100dvh - 32px);
  padding: 26px 28px 24px;
  overflow-y: auto;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: 0 34px 80px rgba(61, 47, 38, 0.26);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, -47%) scale(0.96);
  transition: opacity 0.32s var(--ease), transform 0.32s var(--ease), visibility 0.32s;
}

.share-modal::before {
  position: absolute;
  top: -70px;
  right: -60px;
  width: 180px;
  height: 180px;
  content: '';
  background: radial-gradient(circle, rgba(246, 226, 167, 0.5), transparent 68%);
  pointer-events: none;
}

.share-modal.is-open {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

.share-modal-top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 16px;
}

.share-brand-mark {
  display: grid;
  place-items: center;
  width: 49px;
  height: 49px;
  color: var(--ink);
  background: var(--peach);
  border: 1px solid rgba(75, 60, 51, 0.15);
  border-radius: 50%;
  box-shadow: inset 0 0 0 5px rgba(255, 253, 248, 0.25);
  transform: rotate(-6deg);
}

.share-brand-mark .icon {
  width: 27px;
  height: 27px;
}

.share-modal .kicker {
  margin-bottom: 8px;
}

.share-modal h2 {
  position: relative;
  z-index: 1;
  margin: 0 0 11px;
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 400;
  line-height: 1.28;
  letter-spacing: 0.01em;
}

.share-intro {
  position: relative;
  z-index: 1;
  margin: 0 0 18px;
  font-size: 11.5px;
  line-height: 1.85;
  color: var(--muted);
}

.share-link-row {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px;
  background: #f6eee2;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.share-link-row input {
  width: 100%;
  min-width: 0;
  height: 39px;
  padding: 0 12px;
  overflow: hidden;
  font-size: 10.5px;
  color: var(--ink-soft);
  text-overflow: ellipsis;
  background: transparent;
  border: 0;
  outline: 0;
}

.share-copy-inline {
  height: 38px;
  padding: 0 17px;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--paper-deep);
  background: var(--ink);
  border: 0;
  border-radius: 999px;
  transition: background 0.25s, transform 0.25s;
}

.share-copy-inline:hover {
  background: #624d3f;
  transform: translateY(-1px);
}

.share-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin: 12px 0 13px;
}

.share-option {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 11px 12px;
  text-align: left;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 15px;
  transition: background 0.25s, border-color 0.25s, transform 0.25s;
}

.share-option:hover {
  background: var(--paper-deep);
  border-color: var(--line-strong);
  transform: translateY(-2px);
}

.share-option-icon {
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  flex: none;
  color: #5f7b53;
  background: #e3ebd9;
  border-radius: 50%;
}

.share-option-icon-peach {
  color: #a85f51;
  background: var(--peach-soft);
}

.share-option-icon .icon {
  width: 18px;
  height: 18px;
}

.share-option span:last-child {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 1px;
}

.share-option strong {
  font-size: 11px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink-soft);
}

.share-option small {
  overflow: hidden;
  font-size: 8.5px;
  line-height: 1.4;
  color: var(--muted-light);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.share-option:disabled,
.share-copy-inline:disabled {
  cursor: not-allowed;
  opacity: 0.45;
  transform: none;
}

.share-note {
  margin: 0;
  font-size: 9.5px;
  line-height: 1.7;
  color: var(--muted-light);
}

.share-note.is-warning {
  color: #a1574b;
}

.footer-share {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  padding: 0;
  font-size: 10px;
  color: var(--butter);
  background: none;
  border: 0;
  border-bottom: 1px dashed rgba(246, 226, 167, 0.45);
  transition: color 0.25s, transform 0.25s;
}

.footer-share .icon {
  width: 12px;
  height: 12px;
}

.footer-share:hover {
  color: var(--paper-deep);
  transform: translateY(-1px);
}

/* ---------- video classroom ---------- */
.video-classroom {
  position: relative;
  padding: 102px 0 86px;
  overflow: hidden;
  color: var(--paper-deep);
  background-color: #4a3a31;
  background-image:
    radial-gradient(circle at 84% 16%, rgba(246, 199, 182, 0.12), transparent 26%),
    radial-gradient(circle at 10% 88%, rgba(183, 201, 168, 0.1), transparent 28%),
    radial-gradient(rgba(255, 249, 240, 0.07) 1px, transparent 1px);
  background-size: auto, auto, 26px 26px;
  border-top: 1px dashed rgba(255, 249, 240, 0.18);
  border-bottom: 1px dashed rgba(255, 249, 240, 0.18);
}

.video-classroom::before {
  position: absolute;
  top: -170px;
  right: -80px;
  width: 480px;
  height: 480px;
  content: '';
  border: 1px dashed rgba(246, 226, 167, 0.16);
  border-radius: 50%;
  pointer-events: none;
}

.video-classroom::after {
  position: absolute;
  bottom: -210px;
  left: -90px;
  width: 460px;
  height: 460px;
  content: '';
  border: 1px dashed rgba(246, 226, 167, 0.12);
  border-radius: 50%;
  pointer-events: none;
}

.video-classroom .container {
  position: relative;
  z-index: 1;
}

.video-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 296px;
  align-items: center;
  gap: 70px;
  margin-bottom: 40px;
}

.video-classroom .section-heading h2 {
  margin-bottom: 15px;
  color: var(--paper-deep);
  font-size: clamp(42px, 4.5vw, 55px);
}

.video-classroom .section-heading h2 em {
  color: var(--peach);
}

.video-classroom .section-heading > p:not(.kicker) {
  max-width: 560px;
  color: rgba(255, 249, 240, 0.63);
}

.kicker-on-dark {
  color: var(--butter);
}

.kicker-on-dark .icon {
  width: 12px;
  height: 12px;
}

.video-ticket {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 132px;
  padding: 24px 22px;
  color: var(--ink-soft);
  background: var(--butter);
  border-radius: 5px;
  box-shadow: 9px 11px 0 rgba(255, 249, 240, 0.08), 0 18px 34px rgba(20, 12, 8, 0.2);
  transform: rotate(2.5deg);
}

.video-ticket::before,
.video-ticket::after {
  position: absolute;
  right: -8px;
  width: 16px;
  height: 16px;
  content: '';
  background: #4a3a31;
  border-radius: 50%;
}

.video-ticket::before {
  top: -8px;
}

.video-ticket::after {
  bottom: -8px;
}

.video-ticket-stamp {
  position: absolute;
  top: 12px;
  right: 13px;
  font-family: var(--font-body);
  font-size: 6.5px;
  font-weight: 700;
  line-height: 1.35;
  color: rgba(75, 60, 51, 0.45);
  letter-spacing: 0.08em;
  text-align: center;
  transform: rotate(4deg);
}

.video-ticket-play {
  display: grid;
  place-items: center;
  width: 47px;
  height: 47px;
  flex: none;
  color: var(--paper-deep);
  background: var(--ink);
  border-radius: 50%;
}

.video-ticket-play .icon {
  width: 18px;
  height: 18px;
  margin-left: 2px;
}

.video-ticket-copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.video-ticket-copy strong {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 400;
  line-height: 1.3;
}

.video-ticket-copy small {
  font-size: 9.5px;
  line-height: 1.65;
  color: rgba(75, 60, 51, 0.64);
}

.video-ticket-tear {
  position: absolute;
  top: 18px;
  right: 72px;
  bottom: 18px;
  border-left: 1px dashed rgba(75, 60, 51, 0.18);
}

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

.video-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid rgba(255, 249, 240, 0.12);
  border-radius: 21px;
  box-shadow: 0 3px 0 rgba(20, 12, 8, 0.12);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.video-card:hover {
  box-shadow: 0 22px 46px rgba(20, 12, 8, 0.28);
  transform: translateY(-7px) rotate(-0.35deg);
}

.video-thumb {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--video-color);
}

.video-thumb::after {
  position: absolute;
  inset: 0;
  content: '';
  background: linear-gradient(180deg, rgba(48, 34, 26, 0.04) 22%, transparent 47%, rgba(48, 34, 26, 0.42));
  pointer-events: none;
}

.video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.75s var(--ease);
}

.video-card:hover .video-thumb img {
  transform: scale(1.045);
}

.video-platform {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 9px;
  font-size: 8.5px;
  font-weight: 600;
  color: var(--ink-soft);
  background: rgba(255, 253, 248, 0.9);
  border-radius: 999px;
  backdrop-filter: blur(7px);
}

.video-platform i {
  width: 5px;
  height: 5px;
  background: #b55f53;
  border-radius: 50%;
}

.video-play {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 51px;
  height: 51px;
  color: var(--ink);
  background: rgba(255, 253, 248, 0.94);
  border: 1px solid rgba(75, 60, 51, 0.08);
  border-radius: 50%;
  box-shadow: 0 8px 20px rgba(42, 28, 20, 0.2);
  transform: translate(-50%, -50%);
  transition: background 0.25s, transform 0.3s var(--ease);
}

.video-play .icon {
  width: 18px;
  height: 18px;
  margin-left: 2px;
}

.video-card:hover .video-play {
  background: var(--butter);
  transform: translate(-50%, -50%) scale(1.1);
}

.video-external {
  position: absolute;
  right: 11px;
  bottom: 10px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 8px;
  color: rgba(255, 253, 248, 0.86);
}

.video-external .icon {
  width: 10px;
  height: 10px;
}

.video-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 16px 16px 14px;
}

.video-kicker {
  margin: 0 0 5px;
  font-size: 8.5px;
  font-weight: 600;
  color: var(--sage-deep);
  letter-spacing: 0.06em;
}

.video-kicker span {
  color: var(--muted-light);
}

.video-body h3 {
  margin: 0 0 7px;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 400;
  line-height: 1.38;
}

.video-desc {
  display: -webkit-box;
  margin: 0 0 14px;
  overflow: hidden;
  font-size: 10.5px;
  line-height: 1.75;
  color: var(--muted);
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.video-cta {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: auto;
  padding-top: 11px;
  font-size: 9.5px;
  font-weight: 600;
  color: var(--ink-soft);
  border-top: 1px dashed var(--line);
}

.video-cta .icon {
  width: 12px;
  height: 12px;
  transition: transform 0.3s;
}

.video-card:hover .video-cta .icon {
  transform: translateX(3px);
}

.video-footnote {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  margin-top: 31px;
  padding-top: 19px;
  border-top: 1px dashed rgba(255, 249, 240, 0.15);
}

.video-footnote > p {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  font-size: 9.5px;
  color: rgba(255, 249, 240, 0.42);
}

.video-footnote > p .icon {
  width: 11px;
  height: 11px;
  color: var(--peach);
}

.video-platforms {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.video-platforms a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 11px;
  font-size: 8.5px;
  color: rgba(255, 249, 240, 0.6);
  border: 1px solid rgba(255, 249, 240, 0.16);
  border-radius: 999px;
  transition: color 0.25s, border-color 0.25s, background 0.25s;
}

.video-platforms a:hover {
  color: var(--butter);
  background: rgba(255, 249, 240, 0.05);
  border-color: rgba(246, 226, 167, 0.35);
}

.video-platforms .icon {
  width: 10px;
  height: 10px;
}

.video-doodle {
  position: absolute;
  z-index: 0;
  color: var(--butter);
  pointer-events: none;
}

.video-doodle-star {
  top: 54px;
  right: 8%;
  font-size: 29px;
  opacity: 0.55;
  animation: twinkle 5s ease-in-out infinite;
}

.video-doodle-flower {
  bottom: 194px;
  left: 4%;
  font-family: var(--font-display);
  font-size: 39px;
  color: rgba(246, 199, 182, 0.3);
  transform: rotate(-12deg);
}

@media (max-width: 1100px) {
  .video-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .video-body h3 {
    font-size: 22px;
  }

  .video-desc {
    font-size: 11px;
  }
}

@media (max-width: 960px) {
  .video-head {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .video-ticket {
    width: min(330px, 100%);
    transform: rotate(1.8deg);
  }

  .video-classroom {
    padding: 82px 0 72px;
  }

  .share-button span {
    display: none;
  }

  .share-button {
    width: 42px;
    padding: 0;
    justify-content: center;
  }
}

@media (max-width: 720px) {
  .header-actions {
    gap: 7px;
  }

  .share-button {
    width: 38px;
    height: 38px;
  }

  .mobile-menu.is-open {
    max-height: 460px;
  }

  .video-classroom {
    padding: 68px 0 62px;
  }

  .video-classroom .section-heading h2 {
    font-size: 37px;
  }

  .video-head {
    margin-bottom: 30px;
    gap: 24px;
  }

  .video-ticket {
    width: calc(100% - 8px);
    min-height: 112px;
    padding: 20px 18px;
    margin-left: 2px;
  }

  .video-ticket-play {
    width: 41px;
    height: 41px;
  }

  .video-ticket-copy strong {
    font-size: 19px;
  }

  .video-ticket-stamp {
    top: 9px;
    right: 10px;
    font-size: 6px;
  }

  .video-ticket-tear {
    right: 62px;
  }

  .video-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .video-thumb {
    aspect-ratio: 16 / 10;
  }

  .video-body {
    padding: 15px 17px 14px;
  }

  .video-body h3 {
    font-size: 23px;
  }

  .video-desc {
    font-size: 11px;
    -webkit-line-clamp: 2;
  }

  .video-footnote {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
    margin-top: 23px;
  }

  .video-platforms {
    justify-content: flex-start;
  }

  .video-doodle-star {
    top: 30px;
    right: 5%;
    font-size: 22px;
  }

  .video-doodle-flower {
    display: none;
  }

  .share-modal {
    top: auto;
    bottom: 12px;
    left: 12px;
    width: calc(100% - 24px);
    max-height: calc(100dvh - 24px);
    padding: 21px 20px 19px;
    border-radius: 24px;
    transform: translate(0, 18px) scale(0.98);
  }

  .share-modal.is-open {
    transform: translate(0, 0) scale(1);
  }

  .share-modal h2 {
    font-size: 29px;
  }

  .share-intro {
    font-size: 11px;
  }

  .share-options {
    grid-template-columns: 1fr;
  }

  .share-option small {
    white-space: normal;
  }

  .share-link-row input {
    font-size: 9.5px;
  }

  .share-copy-inline {
    padding: 0 14px;
  }
}

@media (max-width: 430px) {
  .video-thumb {
    aspect-ratio: 4 / 3;
  }
}

.share-copy-inline {
  flex: none;
  min-width: 56px;
  white-space: nowrap;
}

/* ---------- new upload CTA & gallery invite ---------- */
.upload-button {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 42px;
  padding: 0 14px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink-soft);
  background: var(--peach-soft);
  border: 1px solid rgba(214, 143, 127, 0.28);
  border-radius: 999px;
  transition: background 0.25s, transform 0.25s, box-shadow 0.25s;
}

.upload-button .icon {
  width: 15px;
  height: 15px;
}

.upload-button:hover {
  background: var(--peach);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.gallery-invite {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 27px;
  padding: 17px 21px;
  background: rgba(255, 253, 248, 0.7);
  border: 1px dashed var(--line-strong);
  border-radius: 20px;
}

.gallery-invite-copy {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
}

.gallery-invite-icon {
  display: grid;
  place-items: center;
  width: 41px;
  height: 41px;
  flex: none;
  color: #a45f51;
  background: #f8dcd1;
  border-radius: 50%;
}

.gallery-invite-icon .icon {
  width: 19px;
  height: 19px;
}

.gallery-invite h3 {
  margin: 0 0 2px;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 400;
  line-height: 1.35;
}

.gallery-invite p {
  margin: 0;
  font-size: 10.5px;
  color: var(--muted);
}

.gallery-invite .btn {
  flex: none;
  background: var(--paper);
}

/* ---------- high-like video filter & stats ---------- */
.video-filter-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 0 0 22px;
}

.video-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.video-filter {
  height: 32px;
  padding: 0 13px;
  font-size: 10px;
  color: rgba(255, 249, 240, 0.57);
  background: transparent;
  border: 1px solid rgba(255, 249, 240, 0.16);
  border-radius: 999px;
  transition: color 0.25s, background 0.25s, border-color 0.25s;
}

.video-filter:hover {
  color: var(--paper-deep);
  border-color: rgba(255, 249, 240, 0.32);
}

.video-filter.is-active {
  color: var(--ink);
  background: var(--butter);
  border-color: var(--butter);
}

.video-filter-note {
  flex: none;
  font-size: 8.5px;
  color: rgba(255, 249, 240, 0.35);
}

.video-platform.platform-bili i {
  background: #6f9fca;
}

.video-duration {
  position: absolute;
  bottom: 10px;
  left: 12px;
  z-index: 2;
  padding: 4px 7px;
  font-size: 8px;
  color: rgba(255, 253, 248, 0.9);
  letter-spacing: 0.03em;
  background: rgba(48, 34, 26, 0.7);
  border-radius: 999px;
  backdrop-filter: blur(4px);
}

.video-stats {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 11px;
  margin: -3px 0 8px;
  font-size: 8.5px;
  color: var(--muted-light);
}

.video-likes {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
  color: #b45f53;
}

.video-likes .icon {
  width: 11px;
  height: 11px;
  fill: currentColor;
}

.video-empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 55px 20px;
  color: rgba(255, 249, 240, 0.5);
  text-align: center;
  border: 1px dashed rgba(255, 249, 240, 0.15);
  border-radius: 20px;
}

/* ---------- detail gallery ---------- */
.detail-stage {
  position: relative;
}

.detail-main-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
  will-change: transform;
}

.detail-gallery {
  margin-top: 12px;
}

.detail-gallery-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 3px 8px;
  font-size: 8.5px;
  color: var(--muted-light);
  letter-spacing: 0.03em;
}

.detail-gallery-head b {
  font-weight: 600;
  color: var(--peach-deep);
}

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

.gallery-thumb {
  min-width: 0;
  padding: 0;
  text-align: left;
  background: transparent;
  border: 0;
}

.gallery-thumb-img {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--card-color, var(--peach-soft));
  border: 1px solid var(--line);
  border-radius: 12px;
  opacity: 0.72;
  transition: opacity 0.25s, border-color 0.25s, transform 0.25s;
}

.gallery-thumb-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-thumb:hover .gallery-thumb-img {
  opacity: 1;
  transform: translateY(-2px);
}

.gallery-thumb.is-active .gallery-thumb-img {
  border-color: var(--ink-soft);
  opacity: 1;
  box-shadow: 0 0 0 2px rgba(255, 253, 248, 0.9), 0 0 0 3px var(--ink-soft);
}

.gallery-thumb-label {
  display: block;
  margin-top: 5px;
  overflow: hidden;
  font-size: 8px;
  color: var(--muted);
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gallery-thumb.is-active .gallery-thumb-label {
  color: var(--ink-soft);
  font-weight: 600;
}

/* ---------- project related videos ---------- */
.project-video-strip {
  padding: 26px 0 32px;
  background: rgba(244, 232, 217, 0.55);
  border-bottom: 1px dashed var(--line);
}

.project-video-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 25px;
  margin-bottom: 16px;
}

.project-video-head .kicker {
  margin-bottom: 4px;
}

.project-video-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 27px;
  font-weight: 400;
  line-height: 1.3;
}

.project-video-head > p {
  margin: 0 0 3px;
  font-size: 9.5px;
  color: var(--muted);
  text-align: right;
}

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

.project-video {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
  padding: 11px 14px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s, border-color 0.3s;
}

.project-video:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.project-video-index {
  font-size: 8px;
  color: var(--muted-light);
  letter-spacing: 0.08em;
}

.project-video-icon {
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  flex: none;
  color: var(--paper-deep);
  background: var(--ink);
  border-radius: 50%;
}

.project-video-icon .icon {
  width: 13px;
  height: 13px;
  margin-left: 1px;
}

.project-video-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
  gap: 1px;
}

.project-video-meta {
  font-size: 8px;
  color: var(--sage-deep);
  letter-spacing: 0.02em;
}

.project-video-copy strong {
  overflow: hidden;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-video-copy small {
  font-size: 8.5px;
  color: var(--muted-light);
}

.project-video-open {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  flex: none;
  font-size: 8px;
  color: var(--muted);
}

.project-video-open .icon {
  width: 10px;
  height: 10px;
}

/* ---------- community ---------- */
.community {
  padding: 98px 0 105px;
  background-color: #fff9ef;
  background-image: radial-gradient(rgba(139, 113, 92, 0.05) 1px, transparent 1px);
  background-size: 24px 24px;
  border-bottom: 1px dashed var(--line);
}

.community-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 18px;
}

.community-head h2 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: clamp(40px, 4vw, 50px);
  font-weight: 400;
  line-height: 1.2;
}

.community-head .section-heading > p:not(.kicker) {
  max-width: 570px;
}

.community-head > .btn {
  flex: none;
}

.community-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 20px;
  margin-bottom: 23px;
  padding: 10px 0;
  font-size: 9px;
  color: var(--muted-light);
  border-top: 1px dashed var(--line);
  border-bottom: 1px dashed var(--line);
}

.community-meta span:first-child {
  font-weight: 600;
  color: var(--sage-deep);
}

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

.community-card {
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 3px 0 rgba(111, 85, 66, 0.035);
  transition: transform 0.38s var(--ease), box-shadow 0.38s;
}

.community-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-5px);
}

.community-card-cover {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  padding: 0;
  overflow: hidden;
  background: #f2e8db;
  border: 0;
}

.community-card-cover::after {
  position: absolute;
  inset: 0;
  content: '';
  background: linear-gradient(180deg, rgba(75, 60, 51, 0.02), transparent 55%, rgba(75, 60, 51, 0.16));
  pointer-events: none;
}

.community-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.65s var(--ease);
}

.community-card:hover .community-card-cover img {
  transform: scale(1.035);
}

.community-category {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 1;
  padding: 5px 9px;
  font-size: 8.5px;
  font-weight: 600;
  color: var(--ink-soft);
  background: rgba(255, 253, 248, 0.9);
  border-radius: 999px;
  backdrop-filter: blur(6px);
}

.community-sample {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 1;
  padding: 5px 8px;
  font-size: 7.5px;
  color: #8b6a4c;
  background: rgba(246, 226, 167, 0.92);
  border-radius: 999px;
}

.community-card-body {
  padding: 16px 18px 16px;
}

.uploader-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 9px;
}

.uploader-avatar {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  flex: none;
  font-family: var(--font-display);
  font-size: 13px;
  color: var(--ink-soft);
  border-radius: 50%;
}

.uploader-chip > span:last-child,
.submission-author > span:last-child {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 0;
}

.uploader-chip strong,
.submission-author strong {
  overflow: hidden;
  font-size: 9.5px;
  font-weight: 600;
  color: var(--ink-soft);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.uploader-chip small,
.submission-author small {
  font-size: 8px;
  color: var(--muted-light);
}

.community-card h3 {
  margin: 0 0 5px;
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 400;
  line-height: 1.35;
}

.community-card p {
  display: -webkit-box;
  min-height: 39px;
  margin: 0 0 12px;
  overflow: hidden;
  font-size: 10.5px;
  line-height: 1.8;
  color: var(--muted);
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.community-open {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 10px 0 0;
  font-size: 9.5px;
  font-weight: 600;
  color: var(--ink-soft);
  text-align: left;
  background: none;
  border: 0;
  border-top: 1px dashed var(--line);
}

.community-open .icon {
  width: 12px;
  height: 12px;
  transition: transform 0.3s;
}

.community-card:hover .community-open .icon {
  transform: translateX(3px);
}

.community-loading {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 21px;
}

.community-loading span {
  display: block;
  height: 290px;
  background: linear-gradient(100deg, #f3eadc 30%, #fbf6ed 48%, #f3eadc 66%);
  background-size: 220% 100%;
  border-radius: 22px;
  animation: community-shimmer 1.4s ease-in-out infinite;
}

@keyframes community-shimmer {
  0% { background-position: 110% 0; }
  100% { background-position: -110% 0; }
}

.community-empty {
  padding: 55px 20px;
  text-align: center;
  background: rgba(255, 253, 248, 0.6);
  border: 1px dashed var(--line-strong);
  border-radius: 24px;
}

.community-empty-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin: 0 auto 13px;
  color: #a85f51;
  background: var(--peach-soft);
  border-radius: 50%;
}

.community-empty-icon .icon {
  width: 25px;
  height: 25px;
}

.community-empty h3 {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 400;
}

.community-empty p {
  margin: 0 0 17px;
  font-size: 11.5px;
  color: var(--muted);
}

.community-fallback {
  margin: 17px 0 0;
  padding: 10px 13px;
  font-size: 9.5px;
  line-height: 1.7;
  color: #8b6a4c;
  background: #f8f0dd;
  border: 1px dashed rgba(163, 124, 60, 0.25);
  border-radius: 11px;
}

/* ---------- upload modal ---------- */
.upload-overlay,
.submission-overlay {
  position: fixed;
  inset: 0;
  z-index: 230;
  visibility: hidden;
  background: rgba(61, 47, 38, 0.4);
  opacity: 0;
  backdrop-filter: blur(5px);
  transition: opacity 0.35s, visibility 0.35s;
}

.submission-overlay {
  z-index: 240;
}

.upload-overlay.is-open,
.submission-overlay.is-open {
  visibility: visible;
  opacity: 1;
}

.upload-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 231;
  width: min(760px, calc(100% - 32px));
  max-height: calc(100dvh - 32px);
  padding: 27px 31px 25px;
  overflow-y: auto;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 29px;
  box-shadow: 0 34px 90px rgba(61, 47, 38, 0.3);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, -47%) scale(0.97);
  transition: opacity 0.32s var(--ease), transform 0.32s var(--ease), visibility 0.32s;
}

.upload-modal.is-open {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

.upload-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 8px;
}

.upload-modal-head .kicker {
  margin-bottom: 5px;
}

.upload-modal-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 400;
  line-height: 1.25;
}

.upload-intro {
  max-width: 580px;
  margin: 0 0 17px;
  font-size: 11px;
  line-height: 1.8;
  color: var(--muted);
}

.upload-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px 15px;
}

.form-field {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 5px;
}

.form-field-wide {
  grid-column: 1 / -1;
}

.form-field > span {
  font-size: 10px;
  font-weight: 600;
  color: var(--ink-soft);
}

.form-field > span i {
  font-style: normal;
  color: var(--peach-deep);
}

.form-field > span small {
  margin-left: 4px;
  font-size: 8.5px;
  font-weight: 400;
  color: var(--muted-light);
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 9px 11px;
  font-size: 11.5px;
  color: var(--ink);
  background: #fbf6ec;
  border: 1px solid var(--line);
  border-radius: 11px;
  outline: 0;
  transition: border-color 0.25s, box-shadow 0.25s;
}

.form-field input,
.form-field select {
  height: 40px;
}

.form-field textarea {
  min-height: 65px;
  line-height: 1.7;
  resize: vertical;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: rgba(214, 143, 127, 0.65);
  box-shadow: 0 0 0 3px rgba(246, 199, 182, 0.17);
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: #b3a396;
}

.upload-drop {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 12px 14px;
  cursor: pointer;
  background: #fbf6ec;
  border: 1px dashed var(--line-strong);
  border-radius: 11px;
  transition: background 0.25s, border-color 0.25s;
}

.upload-drop:hover {
  background: #f8efe1;
  border-color: rgba(214, 143, 127, 0.65);
}

.upload-drop .icon {
  width: 19px;
  height: 19px;
  color: var(--peach-deep);
}

.upload-drop strong {
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-soft);
}

.upload-drop small {
  font-size: 8.5px;
  color: var(--muted-light);
}

.upload-drop input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.upload-drop[disabled],
.upload-drop.has-images {
  border-style: solid;
}

.upload-previews {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 7px;
}

.upload-preview {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #f2e8db;
  border-radius: 10px;
}

.upload-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.upload-preview button {
  position: absolute;
  top: 5px;
  right: 5px;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  padding: 0;
  color: var(--paper-deep);
  background: rgba(75, 60, 51, 0.8);
  border: 0;
  border-radius: 50%;
}

.upload-preview button .icon {
  width: 11px;
  height: 11px;
}

.upload-link-fields {
  display: grid;
  grid-template-columns: 0.65fr 1.35fr;
  gap: 7px;
}

.upload-link-fields input {
  min-width: 0;
}

.upload-consent {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 15px 0 6px;
  font-size: 9.5px;
  line-height: 1.65;
  color: var(--muted);
  cursor: pointer;
}

.upload-consent input {
  width: 14px;
  height: 14px;
  margin: 1px 0 0;
  accent-color: var(--sage-deep);
}

.upload-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

.upload-status {
  min-height: 17px;
  margin: 4px 0 0;
  font-size: 9.5px;
  line-height: 1.6;
  color: var(--muted);
}

.upload-status.is-error {
  color: #a14f43;
}

.upload-status.is-success {
  color: #547047;
}

.upload-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 10px;
}

.upload-modal[aria-busy="true"] {
  cursor: progress;
}

/* ---------- submission detail modal ---------- */
.submission-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 241;
  width: min(940px, calc(100% - 36px));
  max-height: calc(100dvh - 36px);
  padding: 27px 30px 28px;
  overflow-y: auto;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 29px;
  box-shadow: 0 36px 95px rgba(61, 47, 38, 0.34);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, -47%) scale(0.97);
  transition: opacity 0.32s var(--ease), transform 0.32s var(--ease), visibility 0.32s;
}

.submission-modal.is-open {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

.submission-close {
  position: absolute;
  top: 16px;
  right: 17px;
  z-index: 2;
}

.submission-layout {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 27px;
  align-items: start;
}

.submission-gallery {
  min-width: 0;
}

.submission-main {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #f2e8db;
  border: 1px solid var(--line);
  border-radius: 20px;
}

.submission-main-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.submission-thumbs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  margin-top: 7px;
}

.submission-thumb {
  aspect-ratio: 4 / 3;
  padding: 0;
  overflow: hidden;
  background: #f2e8db;
  border: 1px solid var(--line);
  border-radius: 10px;
  opacity: 0.72;
  transition: opacity 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.submission-thumb.is-active {
  border-color: var(--ink-soft);
  opacity: 1;
  box-shadow: 0 0 0 2px var(--paper), 0 0 0 3px var(--ink-soft);
}

.submission-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.submission-info {
  min-width: 0;
  padding: 10px 3px 0;
}

.submission-info .kicker {
  margin-bottom: 7px;
}

.submission-category {
  display: inline-flex;
  padding: 5px 10px;
  margin-bottom: 9px;
  font-size: 8.5px;
  color: var(--sage-deep);
  background: var(--sage-soft);
  border: 1px solid rgba(126, 150, 112, 0.2);
  border-radius: 999px;
}

.submission-info h2 {
  margin: 0 0 8px;
  padding-right: 35px;
  font-family: var(--font-display);
  font-size: 33px;
  font-weight: 400;
  line-height: 1.3;
}

.submission-description {
  margin: 0 0 15px;
  font-size: 11.5px;
  line-height: 1.85;
  color: var(--muted);
}

.submission-author {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 0;
  border-top: 1px dashed var(--line);
  border-bottom: 1px dashed var(--line);
}

.submission-subhead {
  margin: 18px 0 8px;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.4;
}

.submission-steps {
  margin: 0;
  padding-left: 21px;
  color: #6f5d50;
}

.submission-steps li {
  padding-left: 3px;
  margin: 7px 0;
  font-size: 11px;
  line-height: 1.8;
}

.submission-steps li::marker {
  font-family: var(--font-display);
  font-size: 11px;
  color: var(--peach-deep);
}

.submission-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.submission-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  max-width: 100%;
  padding: 6px 9px;
  overflow: hidden;
  font-size: 9px;
  color: var(--sage-deep);
  text-overflow: ellipsis;
  white-space: nowrap;
  background: var(--sage-soft);
  border-radius: 999px;
}

.submission-link .icon {
  width: 11px;
  height: 11px;
  flex: none;
}

.submission-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px dashed var(--line);
}

/* ---------- responsive additions ---------- */
@media (max-width: 1180px) {
  .upload-button span {
    display: none;
  }

  .upload-button {
    width: 42px;
    padding: 0;
    justify-content: center;
  }
}

@media (max-width: 960px) {
  .upload-button {
    display: none;
  }

  .community-grid,
  .community-loading {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .submission-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .submission-gallery {
    max-width: 580px;
  }

  .submission-info {
    padding-top: 0;
  }
}

@media (max-width: 720px) {
  .gallery-invite {
    align-items: flex-start;
    flex-direction: column;
    gap: 13px;
    padding: 15px 16px;
  }

  .gallery-invite .btn {
    width: 100%;
  }

  .video-filter-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
  }

  .video-filter-note {
    font-size: 8px;
  }

  .video-filter {
    height: 30px;
    padding: 0 11px;
    font-size: 9.5px;
  }

  .video-stats {
    margin-bottom: 9px;
  }

  .detail-gallery {
    margin-top: 9px;
  }

  .detail-gallery-head {
    font-size: 8px;
  }

  .gallery-thumbs {
    gap: 6px;
  }

  .gallery-thumb-img {
    border-radius: 9px;
  }

  .gallery-thumb-label {
    margin-top: 3px;
    font-size: 7.5px;
  }

  .project-video-strip {
    padding: 22px 0 26px;
  }

  .project-video-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 13px;
  }

  .project-video-head h2 {
    font-size: 23px;
  }

  .project-video-head > p {
    font-size: 9px;
    text-align: left;
  }

  .project-video-grid {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .project-video {
    padding: 10px 12px;
  }

  .project-video-open {
    display: none;
  }

  .community {
    padding: 70px 0 76px;
  }

  .community-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
  }

  .community-head h2 {
    font-size: 38px;
  }

  .community-head > .btn {
    width: 100%;
  }

  .community-grid,
  .community-loading {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .community-meta {
    margin-bottom: 17px;
    font-size: 8.5px;
  }

  .community-loading span {
    height: 235px;
  }

  .upload-modal {
    top: auto;
    bottom: 10px;
    left: 10px;
    width: calc(100% - 20px);
    max-height: calc(100dvh - 20px);
    padding: 21px 19px 18px;
    border-radius: 24px;
    transform: translate(0, 16px) scale(0.98);
  }

  .upload-modal.is-open {
    transform: translate(0, 0) scale(1);
  }

  .upload-modal-head h2 {
    font-size: 29px;
  }

  .upload-form-grid {
    grid-template-columns: 1fr;
    gap: 11px;
  }

  .form-field-wide {
    grid-column: auto;
  }

  .upload-link-fields {
    grid-template-columns: 1fr;
  }

  .upload-actions {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .upload-actions .btn {
    width: 100%;
  }

  .submission-modal {
    top: auto;
    bottom: 8px;
    left: 8px;
    width: calc(100% - 16px);
    max-height: calc(100dvh - 16px);
    padding: 22px 17px 20px;
    border-radius: 24px;
    transform: translate(0, 16px) scale(0.98);
  }

  .submission-modal.is-open {
    transform: translate(0, 0) scale(1);
  }

  .submission-close {
    top: 13px;
    right: 13px;
  }

  .submission-info h2 {
    font-size: 29px;
  }
}

@media (max-width: 430px) {
  .form-field input,
  .form-field select {
    height: 42px;
    font-size: 12px;
  }

  .upload-drop {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .upload-drop small {
    width: 100%;
    padding-left: 28px;
  }

  .community-card-body {
    padding: 14px 15px;
  }
}

/* Three-up video grid keeps the high-like selection balanced. */
.video-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 1100px) {
  .video-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .video-grid {
    grid-template-columns: 1fr;
  }
}

.submission-sample {
  display: inline-flex;
  padding: 5px 9px;
  margin: 0 0 9px 5px;
  font-size: 8px;
  color: #8b6a4c;
  background: #f8f0dd;
  border: 1px dashed rgba(163, 124, 60, 0.24);
  border-radius: 999px;
}
