:root {
  --cream: #efe9df;
  --paper: #e6dfd2;
  --ink: #141414;
  --grey: #6b665e;
  --line: rgba(20, 20, 20, 0.16);
  --tobacco: #8b5e3c;
  --serif: "Bodoni Moda", "Didot", Georgia, serif;
  --sans: "Hanken Grotesk", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --pad: clamp(18px, 4.4vw, 72px);
  --head: 76px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 400 16.5px/1.62 var(--sans); overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
main img { filter: grayscale(1) contrast(1.05); }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.02; margin: 0 0 0.5em; letter-spacing: -0.01em; text-wrap: balance; }
h1 em, h2 em, h3 em { font-style: italic; }
h2 { font-size: clamp(2.3rem, 5vw, 4.6rem); }
p { text-wrap: pretty; }
.wrap { width: 100%; max-width: 1440px; margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; background: var(--ink); color: var(--cream); padding: 8px 12px; z-index: 50; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* small caps utility look */
.top nav a, .lang, .link, .link-light, .btn, .fit-toggle, .spec dt, .index-table th, .spec-table th, .foot ul, .fit-no {
  font: 500 11.5px/1 var(--sans); letter-spacing: 0.16em; text-transform: uppercase;
}

/* ruler */
.ruler { position: fixed; left: 0; top: 0; bottom: 0; width: 14px; z-index: 30; pointer-events: none; mix-blend-mode: difference;
  background-image: linear-gradient(#fff 1px, transparent 1px), linear-gradient(#fff 1px, transparent 1px);
  background-size: 6px 10px, 14px 50px; background-repeat: repeat-y; background-position: 0 0, 0 0; opacity: 0.55; }
@media (max-width: 1100px) { .ruler { display: none; } }

/* header */
.top { position: fixed; inset: 0 0 auto 0; z-index: 40; height: var(--head); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 0 var(--pad); color: var(--ink); transition: background 0.35s, color 0.35s, border-color 0.35s; border-bottom: 1px solid transparent; }
.has-dark-hero .top:not(.solid) { color: var(--cream); }
.top.solid { background: rgba(239, 233, 223, 0.94); backdrop-filter: blur(10px); border-color: var(--line); }
.top nav { display: flex; gap: clamp(18px, 2.4vw, 36px); align-items: center; }
.nav-r { justify-content: flex-end; }
.top nav a { text-decoration: none; padding: 6px 0; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size 0.3s; }
.top nav a:hover, .top nav a[aria-current] { background-size: 100% 1px; }
.mark { display: flex; flex-direction: column; align-items: center; text-decoration: none; line-height: 1; }
.mark-k { font-family: var(--serif); font-size: 27px; letter-spacing: 0.26em; text-transform: uppercase; margin-right: -0.26em; }
.mark-c { font: 500 8.5px/1 var(--sans); letter-spacing: 0.52em; text-transform: uppercase; margin-top: 6px; margin-right: -0.52em; }
.lang { border: 1px solid currentColor !important; padding: 6px 8px !important; background: none !important; }
.burger { display: none; justify-self: end; width: 40px; height: 40px; background: none; border: 0; color: inherit; cursor: pointer; position: relative; }
.burger span:not(.sr) { position: absolute; left: 9px; right: 9px; height: 1.5px; background: currentColor; transition: transform 0.3s; }
.burger span:nth-child(1) { top: 16px; } .burger span:nth-child(2) { top: 24px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }
.drawer { position: fixed; inset: 0; z-index: 35; background: var(--cream); display: flex; align-items: flex-end; padding: calc(var(--head) + 20px) var(--pad) 48px; }
.drawer[hidden] { display: none; }
.drawer nav { display: flex; flex-direction: column; gap: 6px; }
.drawer a { font-family: var(--serif); font-size: clamp(2.2rem, 9vw, 3.4rem); text-decoration: none; line-height: 1.15; }
.drawer .lang { font: 500 12px/1 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; align-self: flex-start; margin-top: 18px; }
body.menu-open .top { color: var(--ink) !important; background: transparent; }

/* buttons and links */
.btn { display: inline-block; background: var(--ink); color: var(--cream); text-decoration: none; padding: 18px 30px; transition: background 0.3s, color 0.3s; }
.btn:hover { background: var(--tobacco); }
.link, .link-light { text-decoration: none; padding-bottom: 6px; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; transition: background-size 0.35s; display: inline-block; }
.link:hover, .link-light:hover { background-size: 30% 1px; }
.link-light { color: var(--cream); }

/* hero */
.hero { position: relative; height: 100svh; min-height: 620px; color: var(--cream); }
.hero-frame { position: absolute; inset: 0; overflow: hidden; background: #0e0e0e; }
.hero-img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; filter: grayscale(1) contrast(1.1) brightness(0.86) !important; transform-origin: 50% 60%; }
.hero-frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0) 26%, rgba(0, 0, 0, 0) 52%, rgba(0, 0, 0, 0.62) 100%); }
.hero-copy { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; padding-bottom: clamp(28px, 5vw, 64px); }
.hero-title { font-size: clamp(3.6rem, 10.6vw, 10.5rem); line-height: 0.9; margin: 0; letter-spacing: -0.025em; }
.hero-title span, .hero-title em { display: block; }
.hero-title em { padding-left: 0.9em; }
.hero-side { max-width: 21em; padding-bottom: 0.6em; }
.hero-side p { margin: 0 0 18px; color: rgba(239, 233, 223, 0.86); }

/* statement */
.statement { padding-top: clamp(110px, 18vh, 200px); padding-bottom: clamp(110px, 18vh, 200px); }
.statement-text { font-family: var(--serif); font-size: clamp(1.75rem, 3.5vw, 3.3rem); line-height: 1.2; max-width: 24em; margin: 0; letter-spacing: -0.01em; }
.statement-text .w { opacity: 0.3; }

/* fit library */
.library { padding-bottom: clamp(80px, 12vh, 140px); overflow: hidden; }
.library-head { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: end; margin-bottom: clamp(36px, 5vw, 64px); }
.library-head p { max-width: 30em; color: var(--grey); margin: 0 0 1em; }
.library-track { display: flex; gap: clamp(16px, 2vw, 28px); padding: 0 var(--pad); width: max-content; }
.fit { width: clamp(300px, 27vw, 420px); flex: none; }
.fit-media { position: relative; aspect-ratio: 4 / 5; background: var(--paper); overflow: hidden; display: grid; place-items: center; }
.flat { width: 62%; height: 88%; color: var(--ink); overflow: visible; }
.flat .dash { stroke-dasharray: 3 5; opacity: 0.7; }
.fit-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; clip-path: inset(100% 0 0 0); transition: clip-path 0.7s cubic-bezier(0.7, 0, 0.2, 1); }
.fit.show .fit-photo { clip-path: inset(0 0 0 0); }
@media (hover: hover) { .fit:hover .fit-photo { clip-path: inset(0 0 0 0); } }
.fit-text { padding-top: 18px; }
.fit-no { color: var(--grey); margin: 0 0 10px; }
.fit h3 { font-size: clamp(1.6rem, 2.2vw, 2.1rem); margin-bottom: 14px; }
.spec { margin: 0; border-top: 1px solid var(--line); }
.spec div { display: grid; grid-template-columns: 8.5em 1fr; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.spec dt { color: var(--grey); align-self: center; }
.spec dd { margin: 0; font: 400 13.5px/1.4 var(--mono); }
.fit-toggle { margin-top: 16px; background: none; border: 0; padding: 0 0 6px; color: var(--ink); cursor: pointer; background-image: linear-gradient(currentColor, currentColor); background-size: 100% 1px; background-position: 0 100%; background-repeat: no-repeat; }
@media (hover: hover) and (min-width: 901px) { .fit-toggle { display: none; } }
.library-static { padding-top: clamp(40px, 6vw, 80px); }
.library-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: clamp(20px, 2.4vw, 36px); }
.library-grid .fit { width: auto; }

/* strip */
.strip { height: clamp(220px, 42vh, 460px); overflow: hidden; }
.strip-img { width: 100%; height: 130%; object-fit: cover; }

/* index table */
.index { padding-top: clamp(90px, 14vh, 160px); padding-bottom: clamp(60px, 10vh, 120px); position: relative; }
.index-table { width: 100%; border-collapse: collapse; margin-top: 18px; }
.index-table th { text-align: left; color: var(--grey); padding: 0 16px 14px 0; font-weight: 500; }
.index-table td { border-top: 1px solid var(--line); padding: 22px 16px 22px 0; vertical-align: baseline; color: var(--grey); }
.index-table tbody tr:last-child td { border-bottom: 1px solid var(--line); }
.index-table td:first-child { font-family: var(--serif); font-size: clamp(1.4rem, 2.4vw, 2.2rem); color: var(--ink); width: 34%; line-height: 1.1; }
.index-table td:first-child a { text-decoration: none; }
.index-table td:first-child a::after { content: ""; position: absolute; inset: 0; }
.index-table tr { position: relative; transition: background 0.3s; }
.index-table tbody tr:hover { background: var(--paper); }
.index-table .arrow { text-align: right; color: var(--ink); width: 40px; transition: transform 0.3s; }
.index-table tbody tr:hover .arrow { transform: translateX(6px); }
.index-float { position: fixed; left: 0; top: 0; width: 220px; aspect-ratio: 4 / 5; pointer-events: none; z-index: 20; opacity: 0; overflow: hidden; }
.index-float img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); }
@media (hover: none), (max-width: 900px) { .index-float { display: none; } }

/* process */
.process { padding: clamp(90px, 14vh, 160px) 0; background: var(--ink); color: var(--cream); }
.process main img, .process img { filter: grayscale(1) contrast(1.05); }
.process-grid { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(40px, 6vw, 110px); margin-top: clamp(30px, 4vw, 60px); }
.process-media { position: sticky; top: calc(var(--head) + 6vh); height: 72vh; overflow: hidden; }
.process-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.06); transition: opacity 0.8s, transform 1.4s cubic-bezier(0.2, 0.6, 0.2, 1); }
.process-media img.on { opacity: 1; transform: scale(1); }
.process-steps { list-style: none; margin: 0; padding: 0; }
.process-steps li { padding: 9vh 0; border-top: 1px solid rgba(239, 233, 223, 0.18); opacity: 0.35; transition: opacity 0.5s; }
.process-steps li.on { opacity: 1; }
.process-steps h3 { font-size: clamp(1.9rem, 3.2vw, 3rem); }
.process-steps p { max-width: 30em; color: rgba(239, 233, 223, 0.78); margin: 0; }
.step-img { display: none; }

/* duo */
.duo { display: grid; grid-template-columns: 4fr 5fr 3fr; gap: clamp(24px, 4vw, 64px); align-items: center; padding-top: clamp(90px, 14vh, 160px); padding-bottom: clamp(90px, 14vh, 160px); }
.duo figure { margin: 0; overflow: hidden; }
.duo-a img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.duo-b { align-self: end; }
.duo-b img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; }
.duo-text p { color: var(--grey); max-width: 28em; }
.duo-links { display: flex; gap: 28px; flex-wrap: wrap; margin-top: 26px; }
.duo-links .link { color: var(--ink); }
.duo-two { grid-template-columns: 5fr 6fr; }

/* faq */
.faq { border-top: 1px solid var(--line); padding: clamp(90px, 14vh, 150px) 0; }
.faq-in { display: grid; grid-template-columns: 1fr 1.35fr; gap: clamp(30px, 6vw, 110px); }
.faq h2 { font-size: clamp(2.2rem, 4.2vw, 3.8rem); }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 0; display: flex; justify-content: space-between; gap: 18px; font-family: var(--serif); font-size: clamp(1.15rem, 1.6vw, 1.45rem); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 13px; height: 13px; margin-top: 0.45em; background: linear-gradient(var(--ink), var(--ink)) center / 100% 1px no-repeat, linear-gradient(var(--ink), var(--ink)) center / 1px 100% no-repeat; transition: transform 0.35s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 24px; color: var(--grey); max-width: 36em; }

/* cta + footer */
.cta { background: var(--ink); color: var(--cream); padding: clamp(100px, 16vh, 180px) 0 clamp(60px, 9vh, 100px); }
.cta-in { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(30px, 6vw, 100px); align-items: end; }
.cta h2 { font-size: clamp(3rem, 7.6vw, 7.4rem); margin: 0; line-height: 0.95; }
.cta p { color: rgba(239, 233, 223, 0.76); max-width: 26em; }
.cta .btn { background: var(--cream); color: var(--ink); margin-top: 10px; }
.cta .btn:hover { background: var(--tobacco); color: var(--cream); }
.foot { background: var(--ink); color: var(--cream); padding-top: 40px; overflow: hidden; }
.foot-in { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 30px; border-top: 1px solid rgba(239, 233, 223, 0.18); padding-top: 34px; }
.foot-line { margin: 0; color: rgba(239, 233, 223, 0.7); max-width: 22em; }
.foot ul { list-style: none; margin: 0; padding: 0; line-height: 2.2; }
.foot ul a, .foot p a { text-decoration: none; }
.foot ul a:hover, .foot p a:hover { color: #c99a74; }
.foot-in > p:last-child { margin: 0; text-align: right; }
.foot-word { font-family: var(--serif); font-size: 31vw; line-height: 0.74; letter-spacing: -0.03em; margin: 50px 0 0; text-align: center; color: var(--cream); transform: translateY(14%); }

/* inner pages */
.page-hero { display: grid; grid-template-columns: 6fr 5fr; gap: clamp(30px, 6vw, 100px); align-items: end; padding-top: calc(var(--head) + clamp(50px, 9vh, 110px)); padding-bottom: clamp(40px, 6vw, 80px); }
.page-hero h1 { font-size: clamp(3.2rem, 8vw, 7.6rem); line-height: 0.92; }
.lead { font-size: clamp(1.05rem, 1.35vw, 1.22rem); color: var(--grey); max-width: 34em; }
.page-hero-img { margin: 0; overflow: hidden; }
.page-hero-img img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.notes { padding-top: clamp(80px, 12vh, 140px); padding-bottom: clamp(20px, 4vh, 40px); }
.notes-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 clamp(30px, 6vw, 100px); margin-top: 20px; }
.notes-grid article { border-top: 1px solid var(--line); padding: 22px 0 36px; }
.notes-grid h3 { font-size: clamp(1.5rem, 2.2vw, 2rem); }
.notes-grid p { color: var(--grey); margin: 0; max-width: 32em; }
.checks { padding-top: clamp(90px, 14vh, 150px); padding-bottom: clamp(60px, 10vh, 120px); }
.spec-table { width: 100%; border-collapse: collapse; margin-top: 20px; }
.spec-table th { text-align: left; color: var(--grey); font-weight: 500; padding: 0 0 14px; }
.spec-table td { border-top: 1px solid var(--line); padding: 16px 16px 16px 0; font: 400 14.5px/1.4 var(--mono); }
.spec-table tr:last-child td { border-bottom: 1px solid var(--line); }
.contact { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(30px, 6vw, 110px); padding-top: calc(var(--head) + clamp(50px, 9vh, 110px)); padding-bottom: clamp(70px, 10vh, 120px); align-items: start; }
.contact h1 { font-size: clamp(3.2rem, 8vw, 7.4rem); line-height: 0.92; }
.mail { display: inline-block; margin-top: 20px; font-family: var(--serif); font-size: clamp(1.4rem, 3vw, 2.6rem); text-decoration: none; border-bottom: 1px solid var(--ink); word-break: break-all; }
.mail:hover { color: var(--tobacco); border-color: var(--tobacco); }
.contact-card { background: var(--paper); padding: clamp(24px, 3vw, 44px); margin-top: 1.2em; }
.contact-card h2 { font-size: 1.8rem; }
.contact-card ol { margin: 0; padding: 0; list-style: none; counter-reset: c; }
.contact-card li { counter-increment: c; padding: 12px 0 12px 44px; border-top: 1px solid var(--line); position: relative; }
.contact-card li::before { content: counter(c, decimal-leading-zero); position: absolute; left: 0; font: 400 12px/2 var(--mono); color: var(--tobacco); }
.legal { padding-top: calc(var(--head) + clamp(50px, 9vh, 110px)); padding-bottom: clamp(70px, 10vh, 120px); max-width: 860px; margin-left: 0; }
.legal h1 { font-size: clamp(2.6rem, 6vw, 5rem); }
.legal h2 { font-size: 1.6rem; margin-top: 1.6em; }

/* motion helpers */
.js .reveal { opacity: 0; transform: translateY(26px); }

/* responsive */
@media (max-width: 900px) {
  :root { --head: 64px; }
  .top { grid-template-columns: 1fr auto; }
  .top .nav-l, .top .nav-r { display: none; }
  .mark { align-items: flex-start; }
  .burger { display: block; }
  .hero-copy { flex-direction: column; align-items: flex-start; }
  .hero-title em { padding-left: 0.5em; }
  .library-head, .faq-in, .cta-in, .page-hero, .contact, .duo, .duo-two, .process-grid, .notes-grid, .foot-in { grid-template-columns: 1fr; }
  .library-track { width: auto; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .library-track::-webkit-scrollbar { display: none; }
  .fit { width: 78vw; scroll-snap-align: start; }
  .library-grid .fit { width: auto; }
  .index-table thead { display: none; }
  .index-table td { display: block; border: 0; padding: 0 0 4px; }
  .index-table tr { display: block; border-top: 1px solid var(--line); padding: 18px 0; }
  .index-table td.arrow { display: none; }
  .index-table td:first-child { width: auto; margin-bottom: 6px; }
  .process-media { display: none; }
  .process-steps li { opacity: 1; padding: 36px 0; }
  .step-img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; margin-bottom: 20px; }
  .duo-b { display: none; }
  .foot-in > p:last-child { text-align: left; }
  .page-hero-img img { aspect-ratio: 4 / 3; }
}
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; }
  .statement-text .w { opacity: 1; }
  * { transition: none !important; }
}

/* pinned library must fit one screen */
@media (min-width: 901px) {
  .library:not(.library-static) { padding-top: calc(var(--head) + 28px); padding-bottom: 40px; min-height: 100vh; }
  .library:not(.library-static) .library-head { margin-bottom: 28px; }
  .library:not(.library-static) .library-head h2 { font-size: clamp(2.2rem, 4vw, 3.8rem); margin: 0; }
  .library:not(.library-static) .fit { width: clamp(250px, calc((100vh - 480px) * 0.8), 440px); }
  .library:not(.library-static) .spec div { padding: 6px 0; }
}

/* proof strip */
.proof { padding-bottom: clamp(70px, 11vh, 130px); }
.proof ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--ink); }
.proof li { padding: 20px 24px 0 0; color: var(--grey); font-size: 15px; }
.proof li + li { padding-left: 24px; border-left: 1px solid var(--line); }
.proof strong { display: block; font: 400 clamp(1.4rem, 2vw, 1.8rem)/1.1 var(--serif); color: var(--ink); margin-bottom: 8px; }
@media (max-width: 900px) { .proof ul { grid-template-columns: 1fr; } .proof li + li { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); margin-top: 18px; } }

/* where */
.where { padding-bottom: clamp(70px, 10vh, 120px); display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(24px, 5vw, 90px); align-items: start; border-top: 1px solid var(--line); padding-top: clamp(50px, 8vh, 90px); }
.where-place { font: 400 clamp(2rem, 4vw, 3.4rem)/1.05 var(--serif); margin: 0 0 18px; }
.where-in p:not(.where-place) { color: var(--grey); max-width: 30em; }
@media (max-width: 900px) { .where { grid-template-columns: 1fr; } }

/* inner-page fits swipe on phones, like the home library */
@media (max-width: 900px) {
  .library-grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 16px; padding-bottom: 12px; scrollbar-width: none; }
  .library-grid::-webkit-scrollbar { display: none; }
  .library-grid .fit { flex: none; width: 78vw; scroll-snap-align: start; }
  .fit-toggle { min-height: 44px; padding: 12px 0 6px; }
}
@media (max-width: 900px) {
  .library-grid, .library-track { scroll-padding-inline: var(--pad); padding-left: var(--pad); padding-right: var(--pad); }
}

/* machines */
.machines { padding-top: clamp(90px, 14vh, 150px); }
.machines-head { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 90px); align-items: end; margin-bottom: clamp(28px, 4vw, 50px); }
.machines-head h2 { margin: 0; }
.machines-head p { color: var(--grey); max-width: 30em; margin: 0; }
.machines-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 3vw, 48px); }
.machines-group h3 { font-size: clamp(1.5rem, 2vw, 1.9rem); padding-bottom: 14px; border-bottom: 1px solid var(--ink); margin-bottom: 0; }
.machines-group dl { margin: 0; }
.machines-group div { padding: 14px 0; border-bottom: 1px solid var(--line); }
.machines-group dt { font-weight: 600; margin-bottom: 3px; }
.machines-group dd { margin: 0; color: var(--grey); font-size: 15px; line-height: 1.5; }
@media (max-width: 900px) { .machines-head, .machines-grid { grid-template-columns: 1fr; } }
