/* Point 12 — site styles. No framework; tokens up top. */

:root {
  --ink: #0F0F0D;
  --ink-2: #161613;
  --paper: #ECE7DC;
  --paper-2: #E2DCCF;
  --muted-dark: #A39D92;   /* on ink */
  --muted-light: #5E5A52;  /* on paper */
  --body-light: #3A3732;
  --signal: #E4572E;
  --signal-deep: #C2411C;
  --line-dark: rgba(236, 231, 220, 0.16);
  --line-light: rgba(15, 15, 13, 0.2);
  --serif: 'Instrument Serif', Georgia, serif;
  --sans: 'Inter Tight', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --wrap: 1400px;
  --gutter: clamp(20px, 3vw, 40px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
a:hover { color: var(--signal-deep); }
.dark a:hover, .on-dark a:hover { color: var(--signal); }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.dark { background: var(--ink); color: var(--paper); }
.paper-2 { background: var(--paper-2); }

/* Type */
.serif { font-family: var(--serif); font-weight: 400; }
.label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted-light); }
.dark .label { color: var(--muted-dark); }
.display { font-family: var(--serif); font-weight: 400; line-height: 0.9; letter-spacing: -0.02em; margin: 0; }
.display em { font-style: italic; }
.d-xl { font-size: clamp(64px, 9.4vw, 164px); line-height: 0.88; letter-spacing: -0.025em; }
.d-l { font-size: clamp(52px, 6vw, 96px); }
.d-m { font-size: clamp(40px, 4.6vw, 72px); }
.lede { font-size: 17px; line-height: 1.6; font-weight: 300; color: var(--body-light); margin: 0; max-width: 460px; }
.dark .lede { color: #C9C2B5; }
.dot { color: var(--signal); }

/* Links & buttons */
.ul { text-decoration: none; background-image: linear-gradient(currentColor, currentColor); background-size: 100% 1px; background-repeat: no-repeat; background-position: 0 100%; padding-bottom: 3px; transition: background-size .45s var(--ease); }
.ul:hover { background-size: 0% 1px; background-position: 100% 100%; }
.caps { font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 30px; border-radius: 26px; border: 0; cursor: pointer; text-decoration: none; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 500; transition: transform .2s var(--ease), opacity .2s; }
.btn:hover { transform: translateY(-1px); }
.btn-light { background: var(--paper); color: var(--ink); }
.btn-light:hover { color: var(--ink); }
.btn-dark { background: var(--ink); color: var(--paper); border-radius: 0; min-height: 64px; width: 100%; }
.btn-dark:hover { color: var(--paper); }
.btn[disabled] { opacity: .5; cursor: wait; transform: none; }

/* Announcement */
.announce { background: var(--ink); color: var(--muted-dark); border-bottom: 1px solid var(--line-dark); }
.announce .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; }
.pulse { color: var(--signal); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .3; } }

/* Header */
.site-header { background: var(--ink); color: var(--paper); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-top: 18px; padding-bottom: 18px; }
.site-header .logo { display: flex; align-items: center; min-height: 44px; }
.site-header nav { display: flex; gap: clamp(18px, 2.6vw, 36px); flex-wrap: wrap; }
.site-header nav a[aria-current="page"] { color: var(--signal); }
.site-header .tools { display: flex; gap: 24px; align-items: center; }
.bag-link { display: inline-flex; gap: 6px; align-items: center; }

/* Hero */
.hero .hero-grid { display: flex; flex-wrap: wrap; gap: 64px; align-items: flex-end; padding-top: 48px; }
.hero-copy { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 36px; padding-bottom: 24px; }
.hero-actions { display: flex; gap: 28px; align-items: center; flex-wrap: wrap; }
.hero-figure { flex: 1 1 420px; min-width: 0; margin: 0; display: flex; flex-direction: column; gap: 14px; }
.crop { position: relative; }
.crop::before, .crop::after, .crop > .c3, .crop > .c4 { content: ''; position: absolute; width: 20px; height: 20px; border-color: #7D776D; border-style: solid; border-width: 0; pointer-events: none; }
.crop::before { left: -12px; top: -12px; border-left-width: 1px; border-top-width: 1px; }
.crop::after { right: -12px; top: -12px; border-right-width: 1px; border-top-width: 1px; }
.crop > .c3 { left: -12px; bottom: -12px; border-left-width: 1px; border-bottom-width: 1px; }
.crop > .c4 { right: -12px; bottom: -12px; border-right-width: 1px; border-bottom-width: 1px; }
.frame { position: relative; overflow: hidden; background: #1A1A17; }
.frame img { width: 100%; height: 100%; object-fit: cover; }
.figcap { display: flex; justify-content: space-between; gap: 12px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; color: var(--muted-light); text-transform: uppercase; }
.dark .figcap { color: var(--muted-dark); }

/* Printing motion */
@keyframes reveal { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes scan { 0% { top: 100%; opacity: 1; } 94% { opacity: 1; } 100% { top: 0%; opacity: 0; } }
.reveal { animation: reveal 3.6s steps(90) .4s both; }
.scan { position: absolute; left: 0; right: 0; height: 1px; background: var(--signal); box-shadow: 0 0 12px 2px rgba(228, 87, 46, .75); animation: scan 3.6s steps(90) .4s both; }
.printing { animation: reveal 2.6s steps(52) both; }
.nozzle { position: absolute; left: -24px; right: -24px; height: 1px; background: var(--signal); box-shadow: 0 0 10px 2px rgba(228, 87, 46, .7); animation: scan 2.6s steps(52) both; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.rise { animation: rise 1.1s var(--ease) both; }
.rise.d1 { animation-delay: .12s; } .rise.d2 { animation-delay: .24s; }
@media (prefers-reduced-motion: reduce) { .reveal, .scan, .printing, .nozzle, .rise, .pulse { animation: none; } .scan, .nozzle { display: none; } }

/* Index row */
.index-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); border-top: 1px solid var(--line-dark); margin-top: 72px; }
.index-row a { text-decoration: none; padding: 26px 24px 30px; display: flex; flex-direction: column; gap: 10px; border-left: 1px solid var(--line-dark); }
.index-row a:first-child { border-left: 0; padding-left: 0; }
.index-row .t { font-family: var(--serif); font-size: 34px; line-height: 1; }
.index-row .s { font-size: 14px; color: var(--muted-dark); }

/* Sections */
.section { padding: clamp(88px, 10vw, 152px) 0; }
.manifesto { max-width: 1180px; margin: 0 auto; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 48px; }
.manifesto p { font-family: var(--serif); font-size: clamp(32px, 4.4vw, 64px); line-height: 1.12; letter-spacing: -0.01em; margin: 0; }
.stats { display: flex; flex-wrap: wrap; justify-content: center; border-top: 1px solid var(--line-light); border-bottom: 1px solid var(--line-light); }
.stats span { padding: 16px 32px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; }
.stats span + span { border-left: 1px solid var(--line-light); }
.split { display: flex; flex-wrap: wrap; gap: clamp(40px, 6vw, 80px); align-items: center; }
.split > .wide { flex: 999 1 560px; min-width: 0; }
.split > .narrow { flex: 1 1 400px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.stack { display: flex; flex-direction: column; gap: 18px; }

/* Desk index */
.desk { display: flex; flex-wrap: wrap; gap: 72px; align-items: flex-start; }
.desk-figure { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.desk-figure .frame { aspect-ratio: 4 / 5; background: var(--paper-2); }
.desk-list { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 36px; }
.desk-list ol { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-light); }
.desk-list li { border-bottom: 1px solid rgba(15, 15, 13, .15); }
.desk-row { width: 100%; min-height: 72px; background: none; border: 0; cursor: pointer; display: grid; grid-template-columns: 64px 1fr auto; align-items: center; gap: 16px; padding: 0; color: var(--ink); text-align: left; text-decoration: none; transition: padding-left .4s var(--ease); }
.desk-row[aria-current="true"] { padding-left: 18px; }
.desk-row[aria-current="true"] .no { color: var(--signal-deep); }
.desk-row .no { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; color: var(--muted-light); }
.desk-row .nm { font-family: var(--serif); font-size: 30px; line-height: 1.1; display: block; }
.desk-row .ln { font-size: 13px; color: var(--muted-light); display: block; }
.desk-row .pr { font-family: var(--mono); font-size: 13px; text-align: right; }

/* Anatomy */
.anatomy { position: relative; aspect-ratio: 4 / 3; }
.anatomy img { position: absolute; left: 22%; top: 12.5%; width: 56%; height: 75%; object-fit: cover; }
.anatomy .ln { position: absolute; height: 1px; background: var(--ink); }
.anatomy .pt { position: absolute; width: 11px; height: 11px; border-radius: 6px; border: 1px solid var(--ink); background: var(--paper); transform: translate(-5px, -5px); }
.anatomy .pt.hot { background: var(--signal); }
.anatomy .cl { position: absolute; max-width: 19%; display: flex; flex-direction: column; gap: 4px; transform: translateY(-50%); }
.anatomy .cl b { font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; color: var(--muted-light); font-weight: 400; }
.anatomy .cl span { font-family: var(--serif); font-size: clamp(16px, 1.6vw, 22px); line-height: 1.1; }

/* Footer */
.site-footer { background: var(--ink); color: var(--paper); }
.site-footer .top { display: flex; flex-wrap: wrap; gap: 48px; justify-content: space-between; padding-top: 80px; }
.site-footer nav { display: grid; grid-template-columns: repeat(3, minmax(120px, 1fr)); gap: 12px 48px; font-size: 14px; color: #C9C2B5; }
.site-footer nav a { justify-self: start; }
.footer-mark { display: flex; justify-content: center; padding: 64px 0 48px; }
.footer-mark svg { width: min(340px, 70vw); height: auto; }
.legal { border-top: 1px solid var(--line-dark); }
.legal .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 24px; padding-bottom: 28px; font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; color: #8E887E; text-transform: uppercase; }

/* Collection */
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; flex-wrap: wrap; padding-top: 88px; padding-bottom: 56px; }
.filters { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: center; border-top: 1px solid rgba(15, 15, 13, .25); border-bottom: 1px solid rgba(15, 15, 13, .15); }
.filters .tabs { display: flex; gap: 32px; flex-wrap: wrap; }
.tab { min-height: 60px; border: 0; border-bottom: 1px solid transparent; margin-bottom: -1px; background: none; padding: 0; cursor: pointer; display: flex; align-items: center; gap: 6px; color: #6A655C; }
.tab .t { font-family: var(--serif); font-size: 24px; }
.tab sup { font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em; }
.tab[aria-pressed="true"] { color: var(--ink); border-bottom-color: var(--ink); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr)); gap: 72px 32px; padding-top: 56px; padding-bottom: 136px; }
.card { text-decoration: none; color: var(--ink); display: flex; flex-direction: column; gap: 16px; }
.card:hover { color: var(--ink); }
.card .frame { aspect-ratio: 4 / 5; background: var(--paper-2); }
.zoom img { transition: transform 1.4s var(--ease); }
.zoom:hover img { transform: scale(1.04); }
.tagchip { position: absolute; left: 16px; top: 16px; background: var(--paper); color: var(--ink); padding: 6px 10px; font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; }
.card-meta { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: baseline; border-top: 1px solid rgba(15, 15, 13, .25); padding-top: 14px; }
.card-meta .no { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; color: var(--muted-light); }
.card-meta .nm { font-family: var(--serif); font-size: 30px; line-height: 1.05; display: block; }
.card-meta .nt { font-size: 13px; color: var(--muted-light); display: block; margin-top: 4px; }
.card-meta .pr { font-family: var(--mono); font-size: 14px; white-space: nowrap; }
.card[hidden] { display: none; }

/* Product */
.crumbs { padding-top: 22px; padding-bottom: 22px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; color: var(--muted-light); text-transform: uppercase; }
.product { display: flex; flex-wrap: wrap; gap: clamp(40px, 5vw, 72px); align-items: flex-start; padding-bottom: 136px; }
.product-media { flex: 999 1 600px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.product-info { flex: 1 1 400px; min-width: 0; display: flex; flex-direction: column; gap: 34px; }
.thumbs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.thumbs .frame { aspect-ratio: 1; background: var(--paper-2); }
.price-row { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.price-row .price { font-family: var(--serif); font-size: 40px; line-height: 1; }
.price-row .note { font-size: 14px; color: var(--muted-light); }

/* Plate (live preview) */
.plate { position: relative; aspect-ratio: 5 / 4; background: var(--ink-2); overflow: hidden; color: var(--paper); }
.plate::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(circle, rgba(236, 231, 220, .07) 1px, transparent 1.5px); background-size: 14px 14px; }
.plate .cross-v { position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; background: rgba(236, 231, 220, .06); }
.plate .cross-h { position: absolute; top: 50%; left: 0; right: 0; height: 1px; background: rgba(236, 231, 220, .06); }
.plate .stage { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 48px; }
.plate .piece { position: relative; display: flex; flex-direction: column; align-items: center; gap: 0.08em; }
.plate .row { position: relative; display: flex; align-items: center; }
.plate .ring { width: 72px; height: 72px; border-radius: 36px; border: 5px solid #8E887E; margin-right: -10px; flex: none; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3), 0 8px 14px rgba(0, 0, 0, .5); }
.plate .name { -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1.15; padding: 0.04em 0.12em; white-space: nowrap; filter: drop-shadow(0 14px 18px rgba(0, 0, 0, .55)); }
.plate .meta { position: absolute; font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; color: #8E887E; text-transform: uppercase; }
.plate .tl { left: 20px; top: 18px; } .plate .bl { left: 20px; bottom: 18px; } .plate .br { right: 20px; bottom: 18px; }

/* Configurator controls */
.field { display: flex; flex-direction: column; gap: 8px; }
.field-head { display: flex; justify-content: space-between; }
.name-input { min-height: 60px; border: 0; border-bottom: 1px solid var(--ink); padding: 0; font-family: var(--serif); font-size: 40px; background: transparent; color: var(--ink); width: 100%; border-radius: 0; }
.dark .name-input { border-bottom-color: rgba(236, 231, 220, .45); color: var(--paper); }
.name-input::placeholder { color: #8E887E; }
.hint { font-size: 12px; color: var(--muted-light); }
.err { font-size: 13px; color: var(--signal-deep); min-height: 1em; }
.dark .err { color: var(--signal); }
.seg { display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); border: 1px solid rgba(15, 15, 13, .25); }
.seg button { min-height: 72px; border: 0; background: transparent; color: var(--ink); cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 10px; }
.seg button + button { border-left: 1px solid rgba(15, 15, 13, .25); }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.seg .aa { font-size: 36px; line-height: 1; }
.seg .cap { font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; }
.seg .opt { font-family: var(--serif); font-size: 22px; }
.dark .seg { border-color: rgba(236, 231, 220, .25); }
.dark .seg button { color: var(--paper); }
.dark .seg button + button { border-left-color: rgba(236, 231, 220, .25); }
.dark .seg button[aria-pressed="true"] { background: var(--paper); color: var(--ink); }
.swatches { display: flex; gap: 6px; }
.swatch { width: 52px; height: 52px; border-radius: 26px; background: transparent; border: 1px solid transparent; display: grid; place-items: center; cursor: pointer; padding: 0; }
.swatch span { width: 34px; height: 34px; border-radius: 17px; box-shadow: inset 0 0 0 1px rgba(15, 15, 13, .2); }
.swatch[aria-pressed="true"] { border-color: var(--ink); }
.dark .swatch[aria-pressed="true"] { border-color: var(--paper); }
.dispatch { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--body-light); }
.dispatch i { width: 7px; height: 7px; border-radius: 4px; background: var(--signal); display: inline-block; }
.added { display: flex; justify-content: space-between; gap: 12px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; border-top: 1px solid rgba(15, 15, 13, .25); padding-top: 12px; text-transform: uppercase; }
.specs { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--ink); }
.specs div { padding: 14px 0; border-bottom: 1px solid rgba(15, 15, 13, .15); }
.specs div:nth-child(even) { padding-left: 20px; border-left: 1px solid rgba(15, 15, 13, .15); }
.specs dt { font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; color: var(--muted-light); text-transform: uppercase; }
.specs dd { margin: 4px 0 0; font-size: 15px; }
details { border-bottom: 1px solid rgba(15, 15, 13, .2); }
summary { min-height: 60px; display: flex; align-items: center; justify-content: space-between; font-family: var(--serif); font-size: 24px; cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; font-family: var(--mono); font-size: 16px; }
details[open] summary::after { content: '−'; }
details p { margin: 0 0 20px; font-size: 15px; line-height: 1.6; font-weight: 300; color: var(--body-light); }
.notice { border: 1px solid var(--signal-deep); color: var(--signal-deep); padding: 12px 14px; font-size: 14px; line-height: 1.5; }

/* Bag */
.bag { display: flex; flex-wrap: wrap; gap: 56px; align-items: flex-start; padding-bottom: 136px; }
.bag-lines { flex: 999 1 560px; min-width: 0; border-top: 1px solid var(--ink); }
.bag-line { display: grid; grid-template-columns: 96px 1fr auto; gap: 20px; padding: 20px 0; border-bottom: 1px solid rgba(15, 15, 13, .15); align-items: start; }
.bag-line img { width: 96px; height: 96px; object-fit: cover; background: var(--paper-2); }
.bag-line .nm { font-family: var(--serif); font-size: 26px; line-height: 1.1; }
.bag-line .ds { font-size: 14px; color: var(--muted-light); margin-top: 4px; }
.bag-line .ctl { display: flex; gap: 16px; align-items: center; margin-top: 12px; }
.qty { display: inline-flex; align-items: center; border: 1px solid rgba(15, 15, 13, .3); }
.qty button { width: 44px; height: 44px; border: 0; background: none; cursor: pointer; font-size: 18px; }
.qty span { min-width: 28px; text-align: center; font-family: var(--mono); font-size: 13px; }
.link-btn { background: none; border: 0; padding: 0; cursor: pointer; font-size: 13px; color: var(--body-light); text-decoration: underline; min-height: 44px; }
.bag-line .amt { font-family: var(--mono); font-size: 14px; }
.bag-summary { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 18px; border-top: 1px solid var(--ink); padding-top: 20px; }
.sum-row { display: flex; justify-content: space-between; font-size: 15px; }
.sum-row.total { font-family: var(--serif); font-size: 30px; }
.empty { padding: 48px 0 136px; display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }

/* Prose pages */
.prose { max-width: 720px; padding-bottom: 136px; }
.prose h2 { font-family: var(--serif); font-weight: 400; font-size: 32px; margin: 48px 0 12px; }
.prose p, .prose li { font-size: 16px; line-height: 1.7; color: var(--body-light); }

@media (max-width: 640px) {
  .index-row a { border-left: 0; padding-left: 0; border-top: 1px solid var(--line-dark); }
  .anatomy .cl span { font-size: 14px; }
  .bag-line { grid-template-columns: 72px 1fr; }
  .bag-line img { width: 72px; height: 72px; }
  .bag-line .amt { grid-column: 2; }
  .site-footer nav { grid-template-columns: repeat(2, minmax(120px, 1fr)); }
}
