@font-face { font-family: Allura; src: url("/assets/fonts/allura.ttf") format("truetype"); font-style: normal; font-weight: 400; font-display: swap; }
:root {
  --ink: #17223c; --muted: #626d80; --blue: #294187; --line: #e7e9ef;
  --surface: #f7f8fb; --pink: #db427d; --gutter: clamp(1rem, 4vw, 3.5rem);
  font-family: 'Manrope', 'Noto Sans Thai', sans-serif;
  color: var(--ink); background: #fff; font-synthesis: none;
  scroll-behavior: smooth; scroll-padding-top: 1.25rem;
  -webkit-text-size-adjust: 100%; text-size-adjust: 100%;
}
* { box-sizing: border-box; }
body { margin: 0; padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right); }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; color: inherit; border: 0; background: none; }
button, a { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button:disabled { opacity: .4; cursor: not-allowed; }
button:focus-visible, a:focus-visible, #stage:focus-visible { outline: 3px solid var(--pink); outline-offset: 4px; }
svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
img { max-width: 100%; display: block; }
p, h1, h2, h3 { margin: 0; }
[hidden] { display: none !important; }
.container { width: calc(100% - var(--gutter) * 2); max-width: 1392px; margin-inline: auto; }
.header { min-height: 102px; border-bottom: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; padding: 16px var(--gutter); gap: 12px 32px; }
.identity { display: flex; align-items: center; gap: 14px; min-width: 0; }
.identity > span { min-width: 0; }
.college-logo { object-fit: contain; width: 62px; height: 68px; flex-shrink: 0; }
.identity strong { display: block; font-size: 1.25rem; font-weight: 600; line-height: 1.6; }
.identity-en { display: block; font-size: .75rem; letter-spacing: 1px; font-weight: 700; color: #63718b; }
.header nav { display: flex; flex-wrap: wrap; gap: 6px 28px; margin-left: auto; font-size: .875rem; }
.header nav a { min-height: 44px; padding: 12px 0; position: relative; color: var(--muted); }
.header nav .nav-active { color: var(--blue); font-weight: 600; }
.nav-active:after { position: absolute; bottom: 0; left: 0; content: ''; height: 2px; width: 24px; background: var(--blue); }
.header-caption { font-size: .8125rem; border-left: 1px solid var(--line); padding-left: 28px; color: var(--muted); }
.eyebrow { display: flex; align-items: center; gap: 10px; font-size: .875rem; color: var(--blue); font-weight: 500; line-height: 1.8; }
.line { width: 28px; height: 1px; background: var(--blue); display: inline-block; flex-shrink: 0; }
h1 { font-size: clamp(1.75rem, 3.2vw, 2.875rem); font-weight: 500; line-height: 1.6; margin-top: 8px; }
.showroom { display: grid; grid-template-columns: minmax(0, 1fr); border: 1px solid var(--line); border-radius: 18px; }
.viewer-panel { position: relative; min-width: 0; display: flex; flex-direction: column; isolation: isolate; background: #fff; border-radius: 18px 18px 0 0; }
.viewer-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; padding: 20px 24px 0; gap: 8px 12px; flex-shrink: 0; }
.view-badge { display: flex; align-items: center; gap: 8px; font-size: .875rem; font-weight: 500; color: var(--blue); border: 1px solid #e8ebf2; background: #fff; border-radius: 7px; padding: 7px 10px; }
.view-badge svg { width: 17px; height: 17px; }
.piece-number { font-size: .8125rem; color: var(--muted); white-space: nowrap; }
.piece-number b { color: var(--ink); font-weight: 600; }
.stage { height: clamp(20rem, 56vh, 32rem); flex: 1 0 auto; position: relative; display: flex; justify-content: center; align-items: center; overflow: hidden; touch-action: pan-y pinch-zoom; cursor: grab; }
.stage:active { cursor: grabbing; }
.stage canvas { width: 100%; height: 100%; position: absolute; inset: 0; z-index: 1; }
.floor-ring { position: absolute; bottom: 24px; width: 55%; height: 38px; border: 1px solid #e6e9f0; border-radius: 50%; background: radial-gradient(ellipse, #f4f5f8 0, white 70%); pointer-events: none; }
.floor-ring:after { content: ''; position: absolute; left: -9%; right: -9%; top: -8px; bottom: -8px; border: 1px dashed #edf0f5; border-radius: 50%; }
#photo-view { width: 100%; height: 100%; object-fit: contain; padding: 16px 24px; background: #fff; position: absolute; inset: 0; z-index: 2; cursor: default; }
.loading { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 12px; background: #ffffffdf; z-index: 4; font-size: .875rem; color: var(--muted); padding: 20px; }
.spinner { width: 22px; height: 22px; flex-shrink: 0; border: 2px solid #ddd; border-top-color: var(--blue); border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.stage-instruction { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: .875rem; line-height: 1.8; color: var(--muted); padding: 8px 20px 12px; text-align: center; flex-shrink: 0; }
.stage-instruction svg { width: 18px; height: 18px; }
.viewer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 16px; padding: 0 24px 22px; flex-shrink: 0; }
.rotate-button { font-size: .875rem; display: flex; gap: 7px; align-items: center; justify-content: center; min-height: 44px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 7px; background: white; }
.rotate-button svg { width: 16px; height: 16px; }
.rotate-button[aria-pressed=true] { color: var(--blue); background: #f0f3fb; border-color: #d6def1; }
.viewer-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 2px; margin-left: auto; }
.viewer-tools button { width: 44px; height: 44px; flex-shrink: 0; display: grid; place-items: center; border-radius: 6px; }
.viewer-tools svg { width: 20px; height: 20px; }
#zoom-value { font-size: .8125rem; min-width: 44px; text-align: center; color: var(--muted); font-variant-numeric: tabular-nums; }
.tool-divider { height: 18px; border-left: 1px solid var(--line); margin: 0 4px; }
.back-note { position: absolute; bottom: 12px; left: 16px; right: 16px; margin: auto; width: fit-content; max-width: calc(100% - 32px); font-size: .8125rem; text-align: center; line-height: 1.7; color: #55627c; padding: 5px 12px; background: #f4f6faed; border-radius: 20px; z-index: 3; pointer-events: none; }
.product-detail { min-width: 0; border-top: 1px solid var(--line); background: #fafbfe; border-radius: 0 0 18px 18px; padding: 28px; display: flex; flex-direction: column; }
.detail-eyebrow { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 12px; font-size: .875rem; color: var(--blue); align-items: center; }
.detail-eyebrow span:last-child { font-size: .75rem; letter-spacing: 1px; color: var(--muted); }
.product-detail h2 { font-size: clamp(1.75rem, 3vw, 2.25rem); line-height: 1.65; font-weight: 500; margin-top: 16px; }
.product-subtitle { font-size: 1.125rem; line-height: 1.8; color: #56627b; }
.product-description { font-size: 1rem; color: var(--muted); line-height: 1.95; margin-top: 8px; }
.product-specs { border-top: 1px solid #e3e7f0; border-bottom: 1px solid #e3e7f0; padding: 17px 0; display: flex; flex-direction: column; gap: 12px; margin: 22px 0; }
.product-specs > div { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 6px 18px; font-size: .875rem; line-height: 1.8; }
.product-specs dt { color: var(--muted); min-width: 5rem; }
.product-specs dd { margin: 0; display: flex; gap: 9px; align-items: center; flex-wrap: wrap; }
.color-dots { display: inline-flex; align-items: center; }
.color-dots i { width: 13px; height: 13px; border-radius: 50%; border: 2px solid #fafbfe; margin-left: -3px; box-shadow: 0 0 0 .5px #c9cdd7; }
.color-dots i:first-child { margin: 0; }
.model-note { display: flex; align-items: flex-start; gap: 7px; font-size: .8125rem; color: #657089; line-height: 1.8; margin-top: 14px; }
.model-note svg { width: 16px; height: 16px; margin-top: 3px; }
.next-piece { margin-top: auto; padding-top: 24px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; font-size: .875rem; }
.next-piece b { font-size: 1.125rem; font-weight: 600; }
.next-piece > div { display: flex; gap: 8px; }
.next-piece button { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid #dbe1ec; border-radius: 50%; background: white; }
.next-piece button svg { width: 20px; height: 20px; }
.muted { color: var(--muted); }
.collection { padding-top: 36px; }
.section-heading { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; margin-bottom: 21px; gap: 8px 16px; }
.section-heading h2 { font-size: 1.25rem; font-weight: 500; display: flex; align-items: center; gap: 12px; }
.section-heading h2 span { font-size: .75rem; border: 1px solid var(--line); padding: 2px 7px; border-radius: 20px; color: var(--muted); }
.section-heading p { font-size: .875rem; color: var(--muted); }
.product-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); gap: 30px 22px; }
.product-card { display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; text-align: left; padding: 0; min-width: 0; position: relative; }
.product-image { width: 100%; display: flex; justify-content: center; align-items: center; position: relative; background: #f8f9fb; border: 1px solid transparent; border-radius: 10px; height: 250px; overflow: hidden; transition: background .2s, border .2s; flex-shrink: 0; }
.product-image img { height: 228px; width: 100%; object-fit: contain; padding: 7px; transition: transform .25s; }
.product-card.selected .product-image { border-color: var(--blue); background: #f0f3fa; }
.card-number { position: absolute; top: 10px; left: 12px; font-size: .75rem; color: var(--muted); }
.card-check { position: absolute; right: 9px; bottom: 9px; width: 22px; height: 22px; border-radius: 50%; background: var(--blue); color: #fff; display: none; place-items: center; font-size: .8125rem; }
.selected .card-check { display: grid; }
.product-card strong { font-size: 1rem; font-weight: 500; display: block; margin-top: 13px; line-height: 1.8; }
.card-category { font-size: .8125rem; color: var(--muted); margin-top: 3px; }
.card-story { font-size: 1rem; line-height: 1.9; color: #56627b; margin-top: 10px; }
.about { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: clamp(28px,5vw,76px); margin-top: 64px; padding-top: 54px; border-top: 1px solid var(--line); align-items: center; }
.about-content h2 { font-size: clamp(1.875rem,3vw,2.5rem); font-weight: 500; line-height: 1.6; margin: 15px 0 20px; }
.about-content > p:not(.eyebrow) { font-size: 1rem; line-height: 2; color: var(--muted); max-width: 42ch; }
.about-signature { display: flex; align-items: center; gap: 12px; color: var(--blue); font-size: .875rem; margin-top: 24px; }
.footer { border-top: 1px solid var(--line); padding: 28px 0 max(28px, env(safe-area-inset-bottom)); margin-top: 64px; font-size: .875rem; color: var(--muted); }
.footer-main { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px 24px; }
.footer-main > div { display: flex; flex-direction: column; gap: 5px; }
.footer strong { font-size: 1rem; font-weight: 500; color: var(--ink); }
.footer-main > p { flex: 0 1 53ch; line-height: 1.8; }
.footer a { display: inline-flex; align-items: center; font-size: .875rem; color: var(--blue); min-height: 44px; }
.developer-credit { border-top: 1px solid var(--line); margin-top: 25px; padding-top: 22px; font-size: .875rem; line-height: 1.9; color: #56627b; text-align: center; }
.skip-link { position: fixed; top: -150px; left: 16px; z-index: 200; background: var(--blue); color: #fff; padding: 14px 20px; border-radius: 6px; }
.skip-link:focus { top: 16px; }
.noscript { padding: 20px; background: #fdf0f4; text-align: center; }
#close-expanded { color: var(--blue); border: 1px solid var(--line); border-radius: 7px; min-height: 44px; padding: 8px 12px; font-size: .875rem; }
.viewer-panel:fullscreen, .viewer-panel.expanded { border: 0; border-radius: 0; width: 100%; height: 100vh; height: 100dvh; display: flex; background: white; padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left); overflow: auto; overscroll-behavior: contain; }
.viewer-panel:fullscreen .stage, .viewer-panel.expanded .stage { flex: 1 1 0; height: auto; min-height: 100px; touch-action: none; }
.viewer-panel:fullscreen .piece-number, .viewer-panel.expanded .piece-number { display: none; }
.viewer-panel.expanded { position: fixed; inset: 0; z-index: 100; }
/* The page follows one thread: knowledge, close observation, then sharing. */
figure { margin: 0; min-width: 0; }
figcaption { font-size: .875rem; line-height: 1.8; color: var(--muted); margin-top: 12px; }
.story-intro { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); align-items: center; gap: clamp(28px, 5vw, 76px); padding-block: 48px 54px; }
.story-intro-copy { min-width: 0; }
.story-intro h1 { font-size: clamp(2rem, 3.25vw, 3rem); font-weight: 500; line-height: 1.65; margin: 18px 0 22px; }
.story-intro h1 > span { color: var(--blue); }
.story-lead { font-size: 1.125rem; line-height: 2; color: #56627b; max-width: 47ch; }
.story-project { font-size: .875rem; line-height: 1.95; color: var(--muted); border-left: 2px solid #cfd7e9; padding-left: 18px; margin-top: 24px; }
.story-project strong { color: var(--ink); font-weight: 500; }
.story-link { display: inline-flex; justify-content: space-between; align-items: center; gap: 24px; color: var(--blue); border-bottom: 1px solid var(--blue); min-height: 48px; margin-top: 26px; padding-block: 9px; font-size: 1rem; }
.story-hero-photo img { width: 100%; height: auto; aspect-ratio: 1 / 1.04; object-fit: cover; object-position: center 48%; border-radius: 14px; }
.story-chapter { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 76px); align-items: center; padding: 38px 0 30px; border-top: 1px solid var(--line); }
.story-chapter h2 { font-size: clamp(1.75rem, 2.65vw, 2.5rem); font-weight: 500; line-height: 1.6; margin-top: 12px; }
.chapter-copy { font-size: 1rem; line-height: 1.95; color: var(--muted); }
.chapter-instruction { margin-top: 14px; color: var(--blue); }
.detail-story-label { font-size: .875rem; font-weight: 500; color: var(--blue); margin-top: 22px; }
.viewer-message { padding: 8px 24px; font-size: .875rem; line-height: 1.8; color: var(--muted); text-align: center; flex-shrink: 0; }
.about-photo img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; object-position: center 54%; border-radius: 14px; }
.about-content > p + p { margin-top: 18px; }
@media (min-width: 60rem) {
  .showroom { grid-template-columns: minmax(0,1.3fr) minmax(0,1fr); }
  .viewer-panel { border-radius: 18px 0 0 18px; border-right: 1px solid var(--line); }
  .product-detail { border-top: 0; border-radius: 0 18px 18px 0; padding: 30px; }
}
@media (min-width: 80rem) {
  .showroom { grid-template-columns: minmax(0,1.65fr) minmax(0,1fr); }
  .product-detail { padding: 34px; }
  .product-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
}
@media (max-width: 64rem) { .header-caption { display: none; } }
@media (max-width: 56rem) {
  .story-intro { grid-template-columns: minmax(0, 1fr); padding-block: 32px; gap: 28px; }
  .story-intro h1 { margin-top: 12px; }
  .story-lead { max-width: 58ch; }
  .story-hero-photo img { aspect-ratio: 4 / 3; }
  .story-chapter { grid-template-columns: minmax(0, 1fr); gap: 18px; padding-top: 30px; }
  .story-chapter h2 br { display: none; }
}
@media (max-width: 44rem) {
  .header { gap: 8px 18px; padding-block: 12px; }
  .identity { gap: 10px; }
  .story-intro h1 { font-size: clamp(1.75rem, 6vw, 2.25rem); }
  .story-lead { font-size: 1rem; }
  .story-project { padding-left: 14px; }
  .story-link { margin-top: 18px; }
  .story-hero-photo img { aspect-ratio: 1 / 1; }
  .about-photo img { aspect-ratio: 4 / 3; }
  .identity strong { font-size: 1.125rem; }
  .identity-en { letter-spacing: .2px; }
  .college-logo { width: 50px; height: 58px; }
  .header nav { margin-left: 0; width: 100%; gap: 8px 24px; }
  .viewer-top { padding: 16px 16px 0; }
  .viewer-bottom { padding: 0 16px 18px; justify-content: center; }
  .viewer-tools { margin-left: 0; }
  .stage { height: clamp(19rem, 52vh, 28rem); }
  .product-detail { padding: 22px; }
  .product-grid { gap: 28px 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 10rem), 1fr)); }
  .product-image { height: 230px; }
  .product-image img { height: 208px; }
  .about { grid-template-columns: minmax(0,1fr); gap: 30px; margin-top: 44px; padding-top: 36px; }
  .footer { margin-top: 44px; }
  .developer-credit { text-align: left; }
}
@media (max-height: 32rem) and (orientation: landscape) {
  .stage { height: 20rem; }
  .viewer-panel:fullscreen .viewer-top, .viewer-panel.expanded .viewer-top { padding-top: 6px; }
  .viewer-panel:fullscreen .stage-instruction, .viewer-panel.expanded .stage-instruction { padding-block: 2px; }
  .viewer-panel:fullscreen .viewer-bottom, .viewer-panel.expanded .viewer-bottom { padding-bottom: 6px; }
}
@media (hover: hover) and (pointer: fine) {
  .header nav a:hover { color: var(--blue); }
  .viewer-tools button:hover { background: var(--surface); }
  .next-piece button:hover { background: #e9edf7; }
  .product-card:hover .product-image img { transform: translateY(-4px); }
}
@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
  *, *:before, *:after { animation-duration: .001ms !important; transition: none !important; }
}

/* Exhibition identity: a strong college masthead and two equal craft collections. */
.institution-strip { padding: 9px var(--gutter); background: #20243e; color: #fff; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 20px; font-size: .8125rem; line-height: 1.7; }
.header { min-height: 124px; gap: 16px 24px; background: #fff; border-bottom: 1px solid #dde1ea; }
.college-logo { width: 78px; height: 88px; }
.identity { gap: 18px; }
.identity strong { font-size: 1.375rem; font-weight: 650; color: #111; }
.identity-en { letter-spacing: 1.1px; color: #60687a; }
.header nav { gap: 8px 22px; }
.header nav a { color: #343b50; }
.header-action { display: inline-flex; align-items: center; justify-content: center; gap: 14px; padding: 12px 18px; min-height: 48px; color: #fff; background: #20243e; border-radius: 8px; font-size: .875rem; }
.story-intro { grid-template-columns: minmax(0,.94fr) minmax(0,1.06fr); gap: clamp(26px,4vw,64px); padding-top: 52px; }
.story-intro h1 { font-size: clamp(2.25rem,4vw,3.625rem); line-height: 1.55; margin-block: 18px 24px; }
.story-intro h1 > span { color: #46386c; }
.hero-collections { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; padding-block: 0 30px; }
.hero-craft { display: flex; min-width: 0; flex-direction: column; border-radius: 14px; border: 1px solid #e6e5ec; background: #f8f7fb; padding: 18px; }
.hero-craft.weaving-craft { background: #f5f6f8; transform: translateY(30px); }
.craft-index { font-size: .75rem; letter-spacing: .8px; color: #66677d; line-height: 1.8; }
.hero-craft img { width: 100%; height: 300px; object-fit: contain; padding: 18px 0; }
.hero-craft-label { display: flex; align-items: end; justify-content: space-between; gap: 8px; font-size: 1rem; line-height: 1.8; }
.hero-craft-label strong { font-weight: 550; }
.hero-craft-label > span { font-size: 1.5rem; }
.developer-credit { --credit-font-size: clamp(1rem,1.35vw,1.125rem); text-align: center; padding-block: 34px 12px; color: #000; }
.credit-names { font-size: var(--credit-font-size); line-height: 2; font-weight: 500; color: #000; text-wrap: balance; }
.credit-names strong { color: #000; font-weight: 650; font-size: inherit; white-space: nowrap; }
.credit-separator { margin-inline: 10px; }
.design-signature { display: flex; align-items: center; justify-content: center; gap: 18px; color: #000; margin-top: 18px; font-family: Allura, 'Apple Chancery', cursive; font-size: var(--credit-font-size); font-weight: 400; letter-spacing: 0; line-height: 1.4; }
.design-signature::before, .design-signature::after { content: ''; width: 34px; height: 1px; background: #000; opacity: .18; }
@media (max-width: 75rem) { .header-action { display: none; } }
@media (max-width: 56rem) { .story-intro { grid-template-columns: minmax(0,1fr); } .hero-craft img { height: 300px; } }
@media (max-width: 44rem) {
  .institution-strip { font-size: .75rem; }
  .header { min-height: 0; padding-block: 14px; gap: 10px; }
  .college-logo { width: 60px; height: 68px; }
  .identity { gap: 12px; }
  .identity strong { font-size: 1.125rem; }
  .header nav { gap: 4px 18px; font-size: .875rem; }
  .story-intro { padding-top: 30px; }
  .story-intro h1 { font-size: clamp(2rem,7vw,2.75rem); }
  .hero-collections { gap: 12px; }
  .hero-craft { padding: 12px; }
  .hero-craft img { height: 220px; }
  .craft-index { letter-spacing: 0; }
  .hero-craft-label { font-size: .875rem; align-items: center; }
  .hero-craft-label > span { font-size: 1.125rem; }
  .developer-credit { text-align: center; }
  .credit-separator { margin-inline: 5px; }
  .design-signature { gap: 14px; }
  .design-signature::before, .design-signature::after { width: 24px; }
}
@media (max-width: 23rem) { .hero-craft img { height: 180px; } .hero-craft-label br { display: none; } }
.category-tabs { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 12px; margin-bottom: 22px; }
.category-tabs button { display: flex; align-items: center; gap: 12px; min-height: 78px; text-align: left; padding: 18px 22px; border: 1px solid #dfe1e9; border-radius: 10px; font-size: 1.125rem; line-height: 1.7; background: #fff; transition: background .15s; }
.category-tabs button[aria-selected=true] { background: #20243e; border-color: #20243e; color: white; }
.tab-index { color: #777c8d; font-size: .8125rem; }
.category-tabs button[aria-selected=true] .tab-index { color: #c6c7d6; }
.category-count { margin-left: auto; font-size: .8125rem; white-space: nowrap; opacity: .85; }
.header nav a.active-collection { color: #513e7c; box-shadow: inset 0 -2px #513e7c; }
.hero-craft.active-collection { border-color: #a198b5; }
.product-grid.weaving-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
.weaving-grid .product-image { height: 320px; }
.weaving-grid .product-image img { height: 295px; }
.weaving-grid .card-story { max-width: 55ch; }
.collection-story { padding-top: 50px; margin-top: 58px; border-top: 1px solid var(--line); }
.article-heading { max-width: 58rem; margin-bottom: 30px; }
.article-heading h2 { font-size: clamp(1.625rem,2.7vw,2.375rem); line-height: 1.65; font-weight: 550; margin-top: 12px; }
.article-layout { display: grid; grid-template-columns: minmax(0,.75fr) minmax(0,1.25fr); gap: clamp(28px,5vw,72px); align-items: start; }
.article-photo { position: sticky; top: 24px; }
.article-photo img { width: 100%; height: auto; max-height: 570px; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 12px; }
.article-body { font-size: 1rem; line-height: 2.05; color: #515d73; min-width: 0; }
.article-body strong { color: #20243e; font-weight: 600; }
.article-body p + p { margin-top: 24px; }
.story-more { margin-top: 20px; }
.story-more summary { display: flex; align-items: center; justify-content: space-between; min-height: 48px; gap: 18px; list-style: none; color: #46386c; font-size: 1rem; font-weight: 550; padding: 10px 0; border-bottom: 1px solid #dcdde8; cursor: pointer; }
.story-more summary::-webkit-details-marker { display: none; }
.story-more summary:focus-visible { outline: 3px solid var(--pink); outline-offset: 4px; }
.story-more .read-less { display: none; }
.story-more[open] .read-more { display: none; }
.story-more[open] .read-less { display: inline; }
.details-mark { font-size: 1.5rem; line-height: 1; }
.story-more[open] .details-mark { transform: rotate(45deg); }
.story-expanded { padding-top: 24px; }
.community-story { padding: clamp(32px,5vw,64px) 0 clamp(28px,4vw,52px); border-top: 1px solid var(--line); }
#collection-panel > .community-story { padding-top: 20px; border-top: 0; }
.community-view-link { margin-top: 28px; }
.embroidery-community .workshop-story, .weaving-community .workshop-story { max-width: 1120px; margin-inline: auto; width: calc(100% - 10px); }
.embroidery-community .workshop-photo img { aspect-ratio: 16 / 9; object-fit: cover; object-position: center 52%; }
.weaving-community .workshop-story { max-width: 880px; }
/* Keep both faces and the working hands in view; crop the empty lower seating area. */
.weaving-community .workshop-photo img { aspect-ratio: 1; object-fit: cover; object-position: 50% 12%; }
.embroidery-community .workshop-story { box-shadow: 10px 10px 0 #eee5ed, 0 22px 55px -24px #30294455, 0 4px 14px -7px #30294424; }
.embroidery-community .photo-kicker { color: #6f496a; border-color: #ad7b9c; }
.weaving-learning { display: grid; grid-template-columns: minmax(0,1.1fr) minmax(0,1fr); align-items: center; gap: clamp(24px,4vw,56px); margin-top: 44px; }
.weaving-learning img { width: 100%; height: auto; border-radius: 12px; }
.weaving-learning h3 { font-size: clamp(1.25rem,2vw,1.625rem); font-weight: 550; line-height: 1.7; margin-block: 10px 14px; }
.weaving-learning h3 + p { font-size: 1rem; line-height: 2; color: #515d73; }
.community-heading { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); align-items: center; gap: clamp(24px,5vw,72px); margin-bottom: 38px; }
.community-heading h2 { font-size: clamp(1.75rem,3vw,2.625rem); font-weight: 550; line-height: 1.6; margin-top: 12px; }
.community-heading h2 span { color: #46386c; }
.community-intro { color: #515d73; font-size: 1rem; line-height: 2; max-width: 58ch; }
.workshop-story { position: relative; margin: 0 10px 10px 0; padding: clamp(8px,1.1vw,16px); background: #fff; border: 1px solid #e6e2db; border-radius: 20px; box-shadow: 10px 10px 0 #ece5d8, 0 22px 55px -24px #30294455, 0 4px 14px -7px #30294424; }
.workshop-photo { overflow: hidden; border-radius: 12px; background: #ede9e2; }
.workshop-photo img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: contain; }
.workshop-story figcaption { display: grid; grid-template-columns: minmax(0,.7fr) minmax(0,1.3fr); align-items: center; gap: 18px; padding: 24px 18px 10px; }
.photo-kicker { display: block; border-left: 2px solid #a38d67; padding-left: 16px; color: #655438; font-size: .875rem; letter-spacing: .15px; }
.workshop-story figcaption p { color: #20243e; font-size: 1rem; line-height: 1.9; }
.workshop-story figcaption p span { color: #657086; font-size: .875rem; }
.footer { padding-block: 10px 44px; }
.developer-credit { border-top: 0; margin-top: 0; }
@media (max-width: 56rem) {
 .article-layout { grid-template-columns: minmax(0,1fr); gap: 24px; }
 .article-photo { position: static; }
 .article-photo img { max-height: 420px; aspect-ratio: 16 / 9; }
 .community-heading { grid-template-columns: minmax(0,1fr); gap: 20px; margin-bottom: 28px; }
 .weaving-learning { grid-template-columns: minmax(0,1fr); gap: 20px; margin-top: 32px; }
 .community-intro { max-width: none; }
 .workshop-story figcaption { grid-template-columns: minmax(0,1fr); gap: 12px; padding: 18px 10px 8px; }
 .category-tabs button { padding: 14px 16px; font-size: 1rem; flex-wrap: wrap; gap: 6px 10px; }
 .category-tabs button > span:nth-child(2) { flex: 1 1 70%; }
}
@media (max-width: 44rem) {
 .category-tabs { gap: 10px; }
 .category-tabs button { padding: 12px; font-size: .9375rem; align-content: center; }
 .category-count { margin-left: 0; }
 .product-grid.weaving-grid { grid-template-columns: repeat(auto-fit,minmax(min(100%,10rem),1fr)); }
 .weaving-grid .product-image { height: 250px; }
 .weaving-grid .product-image img { height: 225px; }
 .collection-story { margin-top: 38px; padding-top: 32px; }
 .article-heading { margin-bottom: 22px; }
 .workshop-story { border-radius: 14px; }
 .workshop-photo { border-radius: 8px; }
 .workshop-story figcaption p { font-size: .9375rem; }
 .workshop-story figcaption br { display: none; }
 .workshop-story figcaption p span { display: block; margin-top: 6px; }
}
