.pattern-grid {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:40px 24px}
.pattern-card {min-width:0}
.pattern-card[hidden],.pattern-filters[hidden] {display:none}
.pattern-art {display:block;position:relative;overflow:hidden;aspect-ratio:1;background:#ddd9d0}
.pattern-art img {width:100%;height:100%;object-fit:contain;display:block;transition:transform .3s}
.pattern-art:hover img {transform:scale(1.025)}
.pattern-art>span {position:absolute;bottom:12px;right:12px;background:#f5f2eb;width:32px;height:32px;display:grid;place-items:center;border-radius:50%}
.pattern-card h3 {font-size:23px;line-height:1.2;margin:10px 0}
.pattern-card a {color:inherit;text-decoration:none}
.pattern-card p {font-size:12px;margin:8px 0}
.pattern-meta {display:flex;justify-content:space-between;gap:12px;font-size:11px;margin-top:15px}
.pattern-card .product-subtitle {flex-wrap:wrap;gap:10px}
.pattern-filters {display:flex;flex-wrap:wrap;align-items:end;gap:20px;padding:24px 0;border-block:1px solid #d8d5ca}
 .pattern-filter {flex:1;min-width:160px;font-size:13px}
.pattern-filter-label {display:block;margin-bottom:8px}
.pattern-picker {position:relative}
.pattern-picker summary {display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:48px;padding:12px 16px;border:1px solid #b9b8af;background:#f5f2eb;cursor:pointer;list-style:none}
.pattern-picker summary::-webkit-details-marker {display:none}
.pattern-picker[open] {z-index:5}
.pattern-picker[open] summary {border-color:#59654a}
.pattern-picker[open] .picker-chevron {transform:rotate(180deg)}
.pattern-picker-options {position:absolute;top:calc(100% + 6px);left:0;right:0;max-height:min(360px,50dvh);overflow-y:auto;overscroll-behavior:contain;padding:6px;background:#f5f2eb;border:1px solid #b9b8af;box-shadow:0 12px 28px #25282018;z-index:1}
.pattern-picker-option {position:relative;display:flex;align-items:center;gap:10px;min-height:44px;padding:10px;cursor:pointer}
.pattern-picker-option input {position:absolute;opacity:0;width:1px;height:1px}
.pattern-picker-option:hover {background:#e9e9dd}
.pattern-picker-option:has(input:checked) {background:#dfe6d3;color:#273321;font-weight:600}
.pattern-picker-option:has(input:focus-visible),.pattern-picker summary:focus-visible {outline:2px solid #59654a;outline-offset:-2px}
.picker-swatch {width:16px;height:16px;flex:none;border-radius:50%;background:var(--swatch);border:1px solid #25282025}
@media(forced-colors:active) {.pattern-picker-option:has(input:checked) {outline:2px solid Highlight}.picker-swatch{forced-color-adjust:none}}
.pattern-filters button {min-height:44px}
.pattern-count {margin:24px 0}
.pattern-library {padding-top:0}
.study-index {display:flex;flex-wrap:wrap;gap:12px;margin-top:24px}
.study-index a {border:1px solid #b9b8af;padding:10px 14px;color:inherit;text-decoration:none}
.study-detail {border-top:1px solid #d8d5ca;scroll-margin-top:24px}
.study-layout {display:grid;grid-template-columns:1.2fr 1fr;gap:6%;align-items:start}
.study-art {width:100%;height:auto;aspect-ratio:1;object-fit:contain}
.study-information h2 {font-size:clamp(26px,3vw,44px);overflow-wrap:anywhere}
.study-information p {max-width:40ch;line-height:1.6}
.study-information dl {margin:28px 0}
.study-information dt {font-size:12px;margin-top:20px}
.study-information dd {margin:8px 0}
.study-information .palette-bar {display:block;width:100%;max-width:240px;height:15px;margin-top:12px}
.study-information>a {display:block;margin:18px 0}
.study-objects-title {font-size:24px;margin:40px 0 24px}
.pattern-applications {background:#e9e7de}
.pattern-connection {border-block:1px solid #d8d5ca;padding:24px 0;margin-top:28px}
.pattern-connection>span {display:block;font-size:12px;margin-bottom:10px}
.pattern-connection a {color:inherit;font-weight:600}
.pattern-connection p {line-height:1.5}
.pattern-card a:focus-visible,.study-index a:focus-visible {outline:3px solid #bc482f;outline-offset:4px}
@media(max-width:900px) {.pattern-grid {grid-template-columns:repeat(2,minmax(0,1fr))}.site-header>nav{gap:20px}}
@media(max-width:600px) {.study-layout {grid-template-columns:1fr;gap:30px}.pattern-grid{gap:30px 14px}.pattern-card h3{font-size:18px}.pattern-meta{flex-wrap:wrap;gap:4px}.pattern-filters label{min-width:100%;}.pattern-card .palette-bar{max-width:80px}.study-information h2{font-size:28px}}
@media(prefers-reduced-motion:reduce) {.pattern-art img{transition:none}}

/* People and everyday movement lead the homepage; the library stays separate. */
.life-hero {position:relative;isolation:isolate;background:#1f211e;color:#fff;min-height:620px;height:min(760px,calc(100svh - 68px));overflow:hidden}
.life-hero-photo {position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:70% 50%;z-index:-2}
.life-hero::before {content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,rgba(0,0,0,.6),transparent 72%)}
.life-hero-copy {position:absolute;left:5%;top:50%;transform:translateY(-50%);max-width:42%}
.life-hero h1 {font-size:clamp(60px,7.5vw,112px);line-height:.98;letter-spacing:-.055em;margin:0 0 26px;color:#fff}
.life-hero h1 em {font-style:normal;color:#dced9c}
.life-hero-copy>p {font-size:clamp(16px,1.6vw,23px);margin-bottom:30px;line-height:1.5}
.life-hero-copy .button {background:#f5f2eb;color:#252820;border-color:#f5f2eb}
.life-hero-caption {position:absolute;right:5%;bottom:24px;color:white;font-size:12px;text-decoration:none;text-shadow:0 1px 6px #000}
.life-story {display:grid;grid-template-columns:.65fr 1.35fr;align-items:center;gap:6%;padding-top:90px;padding-bottom:60px}
.life-story h2 {font-size:clamp(36px,4.5vw,64px);line-height:1.04;letter-spacing:-.045em;margin:20px 0}
.life-story-copy>p {max-width:29ch;line-height:1.7}
.life-story .text-link {display:inline-block;margin-top:20px}
.life-story figure {margin:0;min-width:0}
.life-story img {display:block;width:100%;height:auto;aspect-ratio:3/2;object-fit:cover}
.life-story figcaption {font-size:12px;margin-top:12px}
.home-pattern-edit {padding-top:40px}
@media(max-width:700px) {
 .life-hero {min-height:640px;height:calc(92svh - 100px);max-height:780px}
 .life-hero-photo {object-position:72% 40%}
 .life-hero::before {background:linear-gradient(0deg,rgba(0,0,0,.86),rgba(0,0,0,.15) 65%,transparent)}
 .life-hero-copy {left:6%;right:6%;top:auto;bottom:70px;transform:none;max-width:none}
 .life-hero h1 {font-size:clamp(56px,13vw,82px);max-width:8ch}
 .life-hero-copy>p {max-width:22ch;font-size:17px;margin-bottom:20px}
 .life-hero-caption {left:6%;right:auto;bottom:25px}
 .life-story {grid-template-columns:1fr;gap:28px;padding-top:56px;padding-bottom:30px}
 .life-story-copy>p {max-width:34ch}
 .life-story img {aspect-ratio:4/5;object-position:50% 50%}
 .home-pattern-edit .pattern-grid {grid-template-columns:1fr}
 .home-pattern-edit .pattern-card {display:grid;grid-template-columns:44% 1fr;column-gap:20px;align-content:start}
 .home-pattern-edit .pattern-art {grid-row:1/5}
 .home-pattern-edit .pattern-card h3 {margin:4px 0;font-size:23px}
 .home-pattern-edit .pattern-meta {margin-top:0}
 .home-pattern-edit .pattern-card .product-subtitle {justify-content:start}
}

/* The final words remain solid; only the lead phrases carry moving artwork. */
.life-story h2 em {font-style:normal;color:inherit}
@supports ((background-clip:text) or (-webkit-background-clip:text)) {
 .life-story .hero-pattern-ink, .brand-story .hero-pattern-ink {background-image:linear-gradient(#25282040,#25282040),var(--hero-pattern-image);-webkit-text-stroke:.3px rgb(37 40 32 / 45%)}
}
@media(forced-colors:active) {.life-story .hero-pattern-ink, .brand-story .hero-pattern-ink {-webkit-text-stroke:0}}

.brand-story h2 em {color:#252820;font-style:normal}

/* Crossfade the closing heading through existing artwork without moving its text. */
/* Extend the painted area beyond the tight line box for font descenders. */
.heading-pattern-rotating {display:inline-block;position:relative;padding-block:.14em;margin-block:-.14em}
.heading-pattern-rotating > .heading-pattern-next {box-sizing:border-box;padding-block:inherit}
.heading-pattern-next {position:absolute;inset:0;pointer-events:none;opacity:0;transition:opacity 1.4s ease}
.heading-pattern-next.is-visible {opacity:1}
@media(prefers-reduced-motion:reduce), (forced-colors:active) {
 .heading-pattern-next {display:none;transition:none}
}

/* Size pattern layers to each line, never a multi-line box before the emphasis. */
.heading-copy-line { display: inline-block; }
html:lang(zh-TW) .heading-copy-line { white-space: nowrap; }

/* Process-led collection: six peer families and a material-focused object edit. */
.process-hero {position:relative;isolation:isolate;display:flex;align-items:center;min-height:clamp(560px,52vw,800px);overflow:hidden;background:#132e42;color:#f5f2eb}
.process-hero-art {position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center center;z-index:-2}
.process-hero::before {content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,rgba(11,32,48,.95),rgba(11,32,48,.8) 30%,rgba(11,32,48,.24) 60%,transparent 85%)}
.process-hero-copy {position:relative;width:calc(100% - 8vw);max-width:640px;padding:72px 0 104px;margin-left:4vw}
.process-hero h1 {font-size:clamp(60px,7.6vw,116px);font-weight:500;letter-spacing:-.045em;line-height:1.06;margin:0 0 28px}
.process-hero h1 em {font-style:normal}
.hero-title-line {display:block;white-space:nowrap}
.process-hero .hero-title-line > [data-heading-artwork] {display:inline-block;padding-block:.08em;margin-block:-.08em}
html:lang(ja) .process-hero h1 {font-size:clamp(38px,4.4vw,64px);letter-spacing:-.035em;line-height:1.25}
html:lang(zh-TW) .process-hero h1 {font-size:clamp(48px,6.2vw,88px);letter-spacing:-.035em;line-height:1.2}
.process-hero-copy>p {font-size:18px;line-height:1.6;max-width:420px}
.process-hero .button {display:inline-flex;width:auto;margin-top:20px;background:#f5f2eb;color:#132e42;border-color:#f5f2eb}
.process-hero-caption {position:absolute;bottom:28px;right:4vw;padding:12px 16px;font-size:13px;background:#132e42e8;color:#f5f2eb}
.shirt-contrast .life-story-copy {grid-column:2;grid-row:1}
.shirt-contrast figure {grid-column:1;grid-row:1}
.process-families {padding-block:76px;color:#252820;background:#f5f2eb}
.process-families .section-heading {display:flex;align-items:end;justify-content:space-between;gap:28px;margin-bottom:30px}
.process-families h2 {font-size:clamp(28px,3vw,44px);letter-spacing:-.035em;line-height:1.1;margin:10px 0}
.process-families .section-heading>p {max-width:310px;line-height:1.6}
.family-grid {display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:18px}
.family-tile {display:block;min-width:0;color:inherit;text-decoration:none}
.family-art {position:relative;aspect-ratio:1;overflow:hidden;background:#e2dfd4}
.family-art img {position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:cover}
.family-tile>span {display:flex;justify-content:space-between;font-size:15px;letter-spacing:.1em;padding-top:18px}
.family-tile p {font-size:13px;line-height:1.5;margin-top:8px}
.family-tile:hover .family-art,.family-tile:focus-visible .family-art {outline:2px solid currentColor;outline-offset:4px}
.process-objects {grid-template-columns:repeat(3,minmax(0,1fr))}
.process-objects .category-tile img {aspect-ratio:1;object-fit:cover}
.life-story-copy>.text-link {display:block;width:fit-content;margin-top:16px}
.home-pattern-edit .pattern-grid {grid-template-columns:repeat(6,minmax(0,1fr))}
.home-pattern-edit .pattern-card h3 {font-size:21px}
.about-page .process-families {padding-inline:clamp(20px,5vw,80px)}
@media(max-width:1199px){
 .family-grid,.home-pattern-edit .pattern-grid {grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:900px){.process-objects {grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){
 .process-hero {min-height:max(640px,calc(100svh - 82px));align-items:flex-end}
 .process-hero-art {object-position:38% center}
 .process-hero-copy {width:calc(100% - 40px);margin-inline:20px;padding:260px 0 88px}
 .process-hero h1 {font-size:clamp(44px,12vw,64px);margin-bottom:18px}
 html:lang(ja) .process-hero h1 {font-size:clamp(28px,8vw,44px)}
 html:lang(zh-TW) .process-hero h1 {font-size:clamp(42px,11vw,62px)}
 .process-hero-copy>p {font-size:16px;max-width:340px;margin-bottom:0}
 .process-hero::before {background:linear-gradient(90deg,rgba(11,32,48,.91),rgba(11,32,48,.6) 70%,rgba(11,32,48,.25))}
 .process-hero-caption {right:24px;bottom:24px}
 .shirt-contrast .life-story-copy,.shirt-contrast figure {grid-column:auto;grid-row:auto}
 .process-families .section-heading {display:block}
 .process-families {padding-block:40px}
 .family-grid {grid-template-columns:repeat(2,minmax(0,1fr));gap:24px 16px}
 .home-pattern-edit .pattern-grid {grid-template-columns:1fr}
 .process-objects {gap:24px 12px}
 .process-objects .category-tile>span {font-size:17px}
}
.process-objects .category-model {aspect-ratio:1;overflow:hidden}
.process-objects .category-model-photo {top:0;left:0;width:100%;height:100%;min-height:0;transform:scale(1.44);transform-origin:50% 100%}
.shirt-contrast {grid-template-columns:1.35fr .65fr}
.shirt-contrast .life-story-copy {min-width:0}
html:lang(zh-TW) .shirt-contrast .heading-copy-line {white-space:normal}
@media(max-width:700px){
 .shirt-contrast {grid-template-columns:1fr}
 .shirt-contrast .life-story-copy,.shirt-contrast figure {grid-column:auto;grid-row:auto}
 .shirt-contrast img {aspect-ratio:3/2}
}

.catalog-pagination{display:flex;align-items:center;justify-content:center;gap:24px;padding:36px 0;flex-wrap:wrap}
.catalog-pagination a{padding:12px 20px;border:1px solid currentColor;text-decoration:none}
.catalog-pagination a:hover{background:#e8e3d9}
.catalog-pagination[hidden],.catalog-grid[hidden]{display:none}
.catalog-grid[aria-busy="true"]{opacity:.55;pointer-events:none}
#catalog-error{padding:24px 0}
#catalog-error button{font:inherit;text-decoration:underline;cursor:pointer}
.process-hero::before{background:linear-gradient(90deg,rgba(12,28,38,.7),rgba(12,28,38,.12) 62%,transparent)}
@media(max-width:600px){.process-hero::before{background:linear-gradient(0deg,rgba(12,28,38,.88),rgba(12,28,38,.65) 28%,rgba(12,28,38,.12) 58%,transparent 78%)}}

.rhythm-story{grid-template-columns:1fr 1.15fr;padding-top:40px;padding-bottom:32px;gap:4%}
.rhythm-story h2{font-size:clamp(32px,3.5vw,48px);margin:0 0 12px}
.rhythm-story .life-story-copy>p{max-width:none;margin:0;line-height:1.5}
.rhythm-story .life-story-copy>.text-link{margin-top:12px}
.rhythm-story img{max-height:420px}
@media(max-width:700px){.rhythm-story{padding-top:28px;padding-bottom:24px;gap:20px}.rhythm-story img{aspect-ratio:3/2}}

/* River Silk drifts inside the lead words; the last word stays solid. */
@supports ((background-clip:text) or (-webkit-background-clip:text)){
 .process-hero .hero-pattern-ink{background-image:linear-gradient(#ffffff99,#ffffff99),var(--hero-pattern-image);background-size:150% auto}
}
@media(forced-colors:active){.process-hero .hero-pattern-ink{background-image:none}}

@media(max-width:900px){.rhythm-story{grid-template-columns:1fr}}

.style-filters {margin:0 0 28px}
.style-filters summary {cursor:pointer;font-weight:600;padding:8px 0}
.style-filters fieldset {margin-top:12px}

/* A single 20-second formation film; the still remains the no-JS/error fallback. */
.hero-formation-video{opacity:0;pointer-events:none;transition:opacity 1.2s ease-in-out}
.hero-formation-video.is-playing{opacity:1}
@media(prefers-reduced-motion:reduce){.hero-formation-video{transition:none}}


/* Keep the tote centered in the narrow hero crop. */
@media(max-width:600px){.process-hero[data-hero-variant="scarlet-cipher"] .process-hero-art{object-position:58% center}}
/* Match the editorial photo and film crop, keeping the bomber's torso visible. */
.process-hero[data-hero-variant="hidden-sunwheel"] .process-hero-art{object-position:60% center}

.pattern-filter-reset {position:relative;display:grid;place-items:center;flex:0 0 48px;width:48px;height:48px;padding:0;border:1px solid #b9b8af;border-radius:50%;background:transparent;color:#444d3b;cursor:pointer}
.pattern-filter-reset:hover {background:#dfe6d3;border-color:#59654a}
.pattern-filter-reset:focus-visible {outline:2px solid #59654a;outline-offset:3px}
.filter-reset-tooltip {position:absolute;right:0;bottom:calc(100% + 8px);width:max-content;padding:6px 9px;background:#252820;color:#fff;font-size:12px;font-weight:400;line-height:1.4;pointer-events:none;opacity:0;z-index:6}
.pattern-filter-reset:hover .filter-reset-tooltip,.pattern-filter-reset:focus-visible .filter-reset-tooltip {opacity:1}

/* Longer editorial family names keep their descriptor and count readable. */
.family-options label > span { min-width: 0; overflow-wrap: anywhere; }
.family-options label > small { flex-shrink: 0; }
.family-tile > span { gap: 10px; letter-spacing: .02em; flex-wrap: wrap; }

/* Two editorial directions, with room to see the artwork. */
.family-grid {grid-template-columns:repeat(2,minmax(0,1fr));gap:32px}
@media(max-width:600px){.family-grid{grid-template-columns:1fr}}

@media(min-width:1100px){.process-objects{grid-template-columns:repeat(5,minmax(0,1fr))}}
