:root {
  --cloth: #f4efe4;
  --paper: #fffdf8;
  --ink: #16193a;
  --ink-soft: #4b4d68;
  --madder: #b5321f;
  --thread: #d8cfbc;
  --display: "Instrument Serif", Georgia, serif;
  --body: "Hanken Grotesk", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --page: min(1320px, calc(100vw - clamp(32px, 6vw, 96px)));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cloth);
  color: var(--ink);
  font: 400 17px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--madder); outline-offset: 3px; }
.wrap { width: var(--page); margin-inline: auto; }

h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.04; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: clamp(3.1rem, 7.4vw, 6.6rem); }
h2 { font-size: clamp(2.4rem, 5vw, 4.2rem); }
h3 { font-size: 1.9rem; }
p { margin: 0; }
.lede { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--ink-soft); max-width: 34em; }
.kicker { font: 500 0.78rem/1.3 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--madder); margin-bottom: 18px; }

/* Header */
.site-head { position: sticky; top: 0; z-index: 20; background: rgba(244, 239, 228, 0.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--thread); }
.site-head .wrap { display: flex; align-items: center; gap: 28px; min-height: 72px; }
.mark { font: 400 1.65rem/1 var(--display); text-decoration: none; white-space: nowrap; }
.nav { display: flex; gap: 26px; margin-left: auto; align-items: center; }
.nav a { text-decoration: none; font-weight: 500; font-size: 0.98rem; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-color: var(--madder); }
.phone { font: 500 0.88rem var(--mono); text-decoration: none; white-space: nowrap; border: 0 !important; }

/* Buttons */
.btn { display: inline-block; padding: 13px 24px; background: var(--ink); color: var(--paper); text-decoration: none; font: 600 0.98rem var(--body); border: 1.5px solid var(--ink); border-radius: 2px; cursor: pointer; transition: background .18s, color .18s; }
.btn:hover { background: var(--madder); border-color: var(--madder); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.btn.small { padding: 9px 16px; font-size: 0.9rem; }
.on-ink .btn { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.on-ink .btn:hover { background: var(--madder); border-color: var(--madder); color: var(--paper); }

/* Pinking-shear edge: the zig-zag cut of a real swatch */
.pinked {
  --s: 13px;
  -webkit-mask:
    conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) top / var(--s) 51% repeat-x,
    conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / var(--s) 51% repeat-x;
  mask:
    conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) top / var(--s) 51% repeat-x,
    conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / var(--s) 51% repeat-x;
}

/* Paper tag, after the handwritten labels in the original photos */
.tag { display: inline-block; background: var(--paper); color: var(--ink); padding: 7px 11px; font: 500 0.76rem/1.3 var(--mono); box-shadow: 0 2px 7px rgba(22, 25, 58, 0.22); }

/* Hero */
.hero { padding: clamp(48px, 7vw, 96px) 0 clamp(56px, 7vw, 100px); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.08fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 em { font-style: italic; color: var(--madder); }
.hero .lede { margin: 26px 0 34px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.fan { position: relative; aspect-ratio: 1 / 1.02; }
.fan figure { position: absolute; margin: 0; width: 56%; transition: transform .45s cubic-bezier(.2, .7, .2, 1); filter: drop-shadow(0 12px 18px rgba(22, 25, 58, 0.25)); }
.fan img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.fan .tag { position: absolute; left: 14px; bottom: 26px; }
.fan figure:nth-child(1) { top: 2%; left: 0; transform: rotate(-9deg); }
.fan figure:nth-child(2) { top: 0; right: 0; transform: rotate(7deg); }
.fan figure:nth-child(3) { bottom: 0; left: 22%; transform: rotate(-2deg); z-index: 2; }
.fan:hover figure:nth-child(1) { transform: rotate(-13deg) translate(-10px, -6px); }
.fan:hover figure:nth-child(2) { transform: rotate(11deg) translate(10px, -6px); }

/* Running strip */
.strip { overflow: hidden; background: var(--ink); padding: 12px 0; }
.strip-track { display: flex; gap: 10px; width: max-content; animation: run 70s linear infinite; }
.strip img { height: 150px; width: 210px; object-fit: cover; }
.strip:hover .strip-track { animation-play-state: paused; }
@keyframes run { to { transform: translateX(-50%); } }

section { padding: clamp(64px, 8vw, 120px) 0; }
.section-head { display: grid; grid-template-columns: 1.1fr 1fr; gap: 24px 48px; align-items: end; margin-bottom: 52px; }

/* Three families */
.families { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.family { display: block; text-decoration: none; }
.family .pic { overflow: hidden; }
.family img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.family:hover img { transform: scale(1.04); }
.family h3 { margin-top: 18px; }
.family p { color: var(--ink-soft); font-size: 0.98rem; margin-top: 6px; }

/* Ink section */
.on-ink { background: var(--ink); color: var(--paper); }
.on-ink .kicker { color: #f0a58f; }
.on-ink .lede { color: #c9cbdd; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 88px); align-items: center; }
.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.cards figure { margin: 0; }
.cards img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.cards figcaption { font: 500 0.78rem var(--mono); margin-top: 10px; color: #c9cbdd; }
.split h2 + .lede { margin-top: 22px; }
.split .btn { margin-top: 32px; }

/* Story */
.timeline { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.timeline li { display: grid; grid-template-columns: 170px 1fr; gap: 24px; padding: 26px 0; border-bottom: 1px solid var(--thread); }
.timeline .yr { font: 400 2.5rem/1 var(--display); color: var(--madder); }
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; margin-top: 64px; }
.principles p { color: var(--ink-soft); margin-top: 8px; }

/* Closing band */
.band { position: relative; color: var(--paper); padding: clamp(80px, 11vw, 150px) 0; background-size: cover; background-position: center; isolation: isolate; }
.band::before { content: ""; position: absolute; inset: 0; background: rgba(22, 25, 58, 0.72); z-index: -1; }
.band p { font-size: 1.15rem; max-width: 34em; margin: 20px 0 30px; }
.band .btn { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.band .btn:hover { background: var(--madder); color: var(--paper); border-color: var(--madder); }

/* Page head */
.page-head { padding: clamp(48px, 7vw, 92px) 0 clamp(32px, 4vw, 52px); }
.page-head .lede { margin-top: 20px; }

/* Collection */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 36px; }
.chip { background: transparent; border: 1.5px solid var(--ink); color: var(--ink); padding: 8px 16px; border-radius: 99px; font: 500 0.92rem var(--body); cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 34px 22px; }
.swatch { margin: 0; }
.swatch[hidden] { display: none; }
.swatch button { all: unset; display: block; width: 100%; cursor: zoom-in; }
.swatch button:focus-visible { outline: 2px solid var(--madder); outline-offset: 3px; }
.swatch img { width: 100%; aspect-ratio: 1 / 1.1; object-fit: cover; transition: transform .35s; }
.swatch button:hover img { transform: translateY(-4px); }
.swatch figcaption { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; margin-top: 14px; }
.swatch strong { font: 400 1.32rem/1.15 var(--display); }
.swatch .w { font: 500 0.78rem var(--mono); color: var(--ink-soft); white-space: nowrap; }
.also { margin-top: 72px; padding-top: 32px; border-top: 1px solid var(--ink); display: grid; grid-template-columns: 1fr 1.4fr; gap: 24px 48px; }
.also ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.also li a { display: block; padding: 8px 14px; background: var(--paper); font: 500 0.82rem var(--mono); text-decoration: none; }
.also li a:hover { background: var(--ink); color: var(--paper); }

dialog { border: 0; padding: 0; background: var(--paper); max-width: min(960px, 94vw); width: 100%; color: var(--ink); }
dialog::backdrop { background: rgba(22, 25, 58, 0.82); }
.lb { display: grid; grid-template-columns: 1.5fr 1fr; }
.lb img { width: 100%; height: min(78vh, 680px); object-fit: cover; }
.lb .info { padding: 32px; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.lb .close { margin-top: auto; background: none; border: 0; font: 500 0.9rem var(--body); text-decoration: underline; cursor: pointer; padding: 6px 0; color: var(--ink); }

/* Contact and enquiry */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(36px, 6vw, 88px); align-items: start; }
.place { padding: 24px 0; border-top: 1px solid var(--thread); }
.place h3 { font-size: 1.5rem; margin-bottom: 6px; }
form { background: var(--paper); padding: clamp(24px, 3vw, 40px); display: grid; gap: 20px; }
label { display: grid; gap: 6px; font-weight: 600; font-size: 0.95rem; }
input, textarea { width: 100%; font: 400 1rem var(--body); padding: 12px 14px; border: 1.5px solid var(--thread); background: #fff; color: var(--ink); border-radius: 2px; }
input:focus, textarea:focus { outline: none; border-color: var(--ink); }
.prose { max-width: 42em; }
.prose p + p { margin-top: 18px; }

/* Footer */
.site-foot { background: var(--ink); color: #c9cbdd; padding: 64px 0 28px; font-size: 0.96rem; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.3fr; gap: 40px; }
.site-foot .mark { color: var(--paper); font-size: 2rem; }
.site-foot h4 { font: 500 0.76rem var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: #f0a58f; margin: 0 0 12px; }
.site-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.site-foot a { text-decoration: none; }
.site-foot a:hover { color: var(--paper); text-decoration: underline; }
.legal { margin-top: 48px; padding-top: 20px; border-top: 1px solid #33365c; font-size: 0.85rem; }

@media (max-width: 960px) {
  .phone { display: none; }
  .hero .wrap, .split, .section-head, .contact-grid, .also { grid-template-columns: 1fr; }
  .fan { max-width: 560px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .lb { grid-template-columns: 1fr; }
  .lb img { height: 52vh; }
}
@media (max-width: 680px) {
  .site-head .wrap { flex-wrap: wrap; gap: 4px 16px; padding: 12px 0; min-height: 0; }
  .site-head .btn.small { margin-left: auto; }
  .nav { order: 3; margin-left: 0; width: 100%; gap: 18px; justify-content: space-between; }
  .nav a { font-size: 0.92rem; white-space: nowrap; }
  .families, .principles { grid-template-columns: 1fr; }
  .timeline li { grid-template-columns: 1fr; gap: 8px; }
  .foot-grid { grid-template-columns: 1fr; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 26px 14px; }
  .swatch figcaption { display: block; }
  .swatch strong { font-size: 1.12rem; display: block; }
  .strip img { height: 110px; width: 150px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .strip-track { animation: none; }
  * { transition: none !important; }
}
