@charset "utf-8";
/* STITCHIFY OS hero — studio grey, halftone and 1-bit 80s computer UI as a grammar;
 * Stitchify purple / lime / ink stay the only colours. The selection "marching ants" are the stitch. */

.os-hero {
	--mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, "Noto Sans JP", monospace;
	--os-line: var(--frame);
	position: relative;
	padding: calc(var(--header-space) + 28px) 0 0;
	background-color: var(--cool);
	background-image: radial-gradient(rgba(26, 26, 46, .14) 1px, transparent 1.2px);
	background-size: 18px 18px;
	overflow: hidden;
}
.os-hero__grid {
	display: grid; gap: 40px;
	width: min(1200px, 100%); margin-inline: auto;
	padding-inline: var(--gutter);
}

/* system label row */

.os-title {
	margin-top: 20px;
	font-size: clamp(32px, 4.6vw, 64px);
	font-weight: 700; line-height: 1.14; letter-spacing: -.01em;
}
.os-title span { display: block; }
/* typing: lines start hidden only when the script runs */
.os-hero .btn-row { margin-top: 24px; }

/* paint window */
.os-window { position: relative; display: flex; align-items: flex-start; gap: 0; }

.os-window__frame {
	flex: 1 1 auto; min-width: 0;
	border: 1.5px solid var(--os-line);
	background: var(--white);
	box-shadow: 6px 6px 0 var(--os-line);
}
.os-window__title {
	display: flex; align-items: center; gap: 10px;
	height: 26px; padding: 0 8px;
	border-bottom: 1.5px solid var(--os-line);
	background: repeating-linear-gradient(var(--white) 0 3px, var(--os-line) 3px 4px) 0 5px / 100% 16px no-repeat;
}
.os-box { flex-shrink: 0; width: 12px; height: 12px; border: 1.5px solid var(--os-line); background: var(--white); }
.os-window__name {
	margin-inline: auto; padding: 0 10px;
	background: var(--white);
	font: 700 11px/1 var(--mono); letter-spacing: .08em;
}
.os-window__canvas { position: relative; aspect-ratio: 3 / 4; overflow: hidden; background: var(--white); cursor: crosshair; }
.os-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.os-dots { position: absolute; inset: 0; width: 100%; height: 100%; }
.os-scan {
	position: absolute; left: 0; right: 0; top: 100%; height: 2px;
	background: var(--lime);
	box-shadow: 0 0 0 1px var(--ink);
	pointer-events: none;
}
.os-window__status {
	display: flex; gap: 16px;
	padding: 4px 10px;
	border-top: 1.5px solid var(--os-line);
	font: 600 11px/1.6 var(--mono); letter-spacing: .08em;
}
.os-mode { color: var(--purple); }
.os-hero.is-color .os-window__status span:last-child { display: none; }

/* catalog sheet */
.os-catalog {
	width: min(1200px, 100%); margin: 56px auto 0;
	padding: 0 var(--gutter) clamp(48px, 6vw, 80px);
}
.os-catalog__head {
	display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px;
	padding-bottom: 10px;
	border-bottom: 1.5px solid var(--os-line);
	font: 600 12px/1.6 var(--mono); letter-spacing: .08em;
}
.os-catalog__head span:last-child { color: var(--muted); letter-spacing: .02em; }
.os-catalog__list {
	display: grid; grid-auto-flow: column; grid-auto-columns: minmax(120px, 1fr);
	gap: 0;
	margin: 0; padding: 0; list-style: none;
	overflow-x: auto; scrollbar-width: none;
	border-left: 1.5px solid var(--os-line);
}
.os-catalog__list::-webkit-scrollbar { display: none; }
.os-item {
	position: relative;
	border-right: 1.5px solid var(--os-line); border-bottom: 1.5px solid var(--os-line);
	background: var(--white);
}
.os-item figure { margin: 0; padding: 14px 14px 4px; }
.os-item img { width: 100%; aspect-ratio: 1; object-fit: contain; }
.os-item__label {
	display: grid; gap: 1px;
	padding: 4px 10px 10px;
	font: 600 12px/1.4 var(--mono); letter-spacing: .06em;
	white-space: nowrap;
}
.os-item__label span { overflow: hidden; text-overflow: ellipsis; }
/* The label is a system monospace font, so its width differs by device. Cells under 128px keep the 12px size
   with tighter spacing, and a two-word name (COACH JACKET) may take a second line; the narrowest cells of the
   tablet grid drop the spacing so a ten-letter word (SWEATPANTS, ITEM_00018) still fits. */
.os-item { container-type: inline-size; }
.os-item__label { padding-inline: min(10px, 7cqi); }
@container (max-width: 128px) {
	.os-item__label { padding-inline: 4cqi; letter-spacing: .02em; }
	.os-item__label span:last-child { white-space: normal; }
}
@container (max-width: 100px) {
	.os-item__label { padding-inline: 2px; letter-spacing: 0; }
}
.os-item__label span:first-child { color: var(--purple); }

@media (min-width: 1024px) {
	.os-hero__grid { grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); align-items: center; gap: 56px; }
	.os-window { justify-self: end; width: min(100%, 470px); }
}
@media (max-width: 1023px) {
	.os-window { width: min(100%, 520px); }
}

/* SPEC_001: design sketch → garment */
.spec {
	position: relative; aspect-ratio: 3 / 4; overflow: hidden; --sketch: 1;
	background:
		linear-gradient(rgba(78, 53, 232, .09) 1px, transparent 1px) 0 0 / 16px 16px,
		linear-gradient(90deg, rgba(78, 53, 232, .09) 1px, transparent 1px) 0 0 / 16px 16px, #fff;
}
.spec__photo { position: absolute; left: 8%; top: 18.5%; width: 84%; height: auto; mix-blend-mode: multiply; }
.spec__lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.spec__lines path { fill: none; stroke: var(--ink); stroke-width: 1.6px; vector-effect: non-scaling-stroke; stroke-dasharray: 200; stroke-dashoffset: 0; transition: stroke-dashoffset 600ms var(--ease), opacity 300ms; }
.spec__lines circle { fill: var(--purple); stroke: #fff; stroke-width: .6; transition: opacity 300ms; }
.spec__tag {
	position: absolute; display: flex; align-items: center; gap: 6px; padding: 4px 8px;
	border: 1.5px solid var(--frame); background: #fff; box-shadow: 3px 3px 0 var(--frame);
	font: 700 11px/1.3 var(--mono); white-space: nowrap;
	transition: opacity 300ms, transform 300ms var(--ease);
}
.spec__tag b { display: grid; place-items: center; width: 16px; height: 16px; background: var(--purple); color: #fff; font-size: 10px; }
.spec__tag[data-k="a"] { left: 2%; top: 66.5%; }
.spec__tag[data-k="b"] { right: 2%; top: 31%; }
.spec__tag[data-k="c"] { left: 2%; top: 9.5%; }
.spec__tag[data-k="d"] { right: 2%; top: 90%; }
/* JS drives the sequence; without it every callout is visible */
@media (max-width: 479px) { .spec__tag { font-size: 9.5px; padding: 3px 6px; } }

/* bottom dock: MAKE / SHOWROOM choice visible from the first view */
.choice { position: relative; display: grid; gap: 3px; min-height: 56px; padding: 10px 40px 10px 14px; border: 1.5px solid var(--frame); transition: translate 200ms var(--ease), box-shadow 200ms var(--ease); }
.choice:hover { translate: -2px -2px; box-shadow: 4px 4px 0 var(--frame); }
@media (max-width: 479px) {
	.choice { padding: 8px 30px 8px 10px; }
}
/* top page: show the photo itself, no halftone layer to hover through */
.os-hero:not(.cr-hero) .os-dots, .os-hero:not(.cr-hero) .os-scan { display: none !important; }
.os-hero:not(.cr-hero) .os-window__canvas { cursor: inherit; }
/* turntable video over the still: the still stays as the fallback (reduced motion, no video support) */
.os-turn { opacity: 0; transition: opacity 300ms ease; background: transparent; }
.os-turn.is-ready { opacity: 1; }
/* callouts only while the look faces front; hidden during the turn */
@media (prefers-reduced-motion: reduce) { .os-turn { display: none; } }
.os-title__dot { color: var(--lime); font-weight: inherit; }
.os-title__hl { color: var(--purple); font-style: normal; }
.os-title--en { text-transform: uppercase; font-size: clamp(46px, 7vw, 100px); font-weight: 700; line-height: .94; letter-spacing: -.035em;
	-webkit-text-stroke: .025em currentColor; paint-order: stroke fill;
	/* the re-centred Hind sits .14em lower in its line box; keep this display headline where it was composed */
	position: relative; top: -.14em; }
@media (min-width: 1024px) { .os-hero:not(.cr-hero) .os-hero__grid { grid-template-columns: minmax(0, 1.22fr) minmax(0, .78fr); gap: 48px; } }
.os-title--en span { white-space: nowrap; }
/* hero says what Stitchify is in one line (replaces the OS status box) */
.os-lead { margin-top: 22px; font-size: clamp(17px, 1.7vw, 22px); font-weight: 800; line-height: 1.5; }
/* desktop: the window keeps its full size; on short screens it runs past the fold (cut off = scroll cue), on tall ones the catalog peeks */
@media (min-width: 1024px) {
	.os-hero:not(.cr-hero) .os-catalog { margin-top: 32px; }
}
/* the photo window now follows the viewport height, so the callouts scale with it instead of covering the look */
.os-hero:not(.cr-hero) .os-window__canvas { container-type: inline-size; }
