:root {
  --paper: #fbf8f2;
  --white: #fffdf9;
  --ink: #26231f;
  --ink-2: #48423a;
  --muted: #6f685d;
  --line: rgba(38, 35, 31, 0.14);
  --frame: #cfe0ea;
  --blush: #f3d3c8;
  --sky: #cfe0ec;
  --lilac: #ddd4ec;
  --sage: #c5d6c2;
  --mustard: #efcd7c;
  --clay: #ebb79c;
  --mint: #cfe6da;
  --accent: #e2a93b;
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --type: 'Courier Prime', 'Courier New', ui-monospace, monospace;
  --fw: 10px; /* page frame width */
  --gutter: calc(var(--fw) + clamp(16px, 3vw, 44px));
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --squiggle: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 8'%3E%3Cpath d='M0 4 Q 5 0 10 4 T 20 4 T 30 4 T 40 4' fill='none' stroke='%23e2a93b' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--sans); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; margin: 0; letter-spacing: -0.015em; font-variation-settings: 'SOFT' 50; }
.kicker { font-family: var(--type); font-size: 13px; letter-spacing: 0.04em; color: var(--muted); margin: 0; }
section[id] { scroll-margin-top: 76px; }

/* the coloured border around the whole page */
.frame { position: fixed; inset: 0; border: var(--fw) solid var(--frame); pointer-events: none; z-index: 60; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: var(--fw); z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  margin: var(--fw) var(--fw) 0; padding: 14px clamp(16px, 3vw, 44px);
  background: rgba(251, 248, 242, 0.9); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: box-shadow 0.3s;
}
.site-header.is-scrolled { box-shadow: 0 1px 0 var(--line); }
.logo { display: inline-flex; align-items: center; gap: 2px; text-decoration: none; }
.logo span { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 30px; letter-spacing: -0.02em; line-height: 1; }
.nav { display: flex; gap: clamp(10px, 2vw, 28px); }
.nav a {
  text-decoration: none; font-size: 13px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 6px 0 10px; background: var(--squiggle) left bottom / 24px 6px repeat-x; background-size: 0 6px;
  transition: background-size 0.4s var(--ease), color 0.2s;
}
.nav a:hover, .nav a.is-active { background-size: 24px 6px; }
.nav a.is-active { color: var(--accent); }
.menu-btn { display: none; border: 1px solid var(--ink); background: none; border-radius: 99px; padding: 6px 14px; font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; cursor: pointer; }

/* ---------- hero ---------- */
.hero {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 660px) minmax(0, 1fr); align-items: center; gap: clamp(12px, 2vw, 32px);
  min-height: min(calc(100svh - 150px), 780px); padding: 30px var(--gutter) 10px;
}
.hero-copy { text-align: center; }
.hero-copy .kicker { font-size: 16px; color: var(--ink-2); min-height: 1.6em; }
.typed::after { content: '|'; margin-left: 2px; animation: blink 1s steps(1) infinite; color: var(--accent); }
.typed.done::after { content: ''; }
@keyframes blink { 50% { opacity: 0; } }
.hero h1 { font-size: clamp(44px, 6.1vw, 96px); line-height: 0.98; font-weight: 350; margin: 18px 0 22px; }
.hero h1 em { font-style: italic; font-weight: 300; }
.hero h1 .mark { background: linear-gradient(transparent 62%, rgba(239, 205, 124, 0.75) 62%, rgba(239, 205, 124, 0.75) 90%, transparent 90%); padding: 0 0.06em; }
.hero .lede { margin: 0 auto; max-width: 50ch; font-size: 17px; color: var(--muted); }
.hero-cta { display: flex; gap: 12px; justify-content: center; margin-top: 28px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; background: var(--ink); color: var(--paper); border: 1px solid var(--ink); border-radius: 99px; padding: 12px 22px; font-size: 15px; transition: transform 0.25s var(--ease), background 0.2s, color 0.2s; cursor: pointer; }
.btn:hover { transform: translateY(-2px); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--paper); }

.hero-side { display: grid; gap: clamp(6px, 1.4vw, 18px); align-content: center; }
.flat { margin: 0; width: clamp(110px, 11.5vw, 200px); transform: rotate(var(--r, 0deg)); }
.hero-side.left .flat:nth-child(1) { justify-self: end; --r: -6deg; }
.hero-side.left .flat:nth-child(2) { justify-self: start; --r: 4deg; }
.hero-side.left .flat:nth-child(3) { justify-self: center; --r: -3deg; }
.hero-side.right .flat:nth-child(1) { justify-self: start; --r: 5deg; }
.hero-side.right .flat:nth-child(2) { justify-self: end; --r: -4deg; }
.hero-side.right .flat:nth-child(3) { justify-self: center; --r: 3deg; }
.flat img { width: 100%; height: auto; filter: drop-shadow(0 14px 14px rgba(38, 35, 31, 0.16)); animation: float 6s ease-in-out infinite; animation-delay: var(--d, 0s); transition: transform 0.4s var(--ease); }
.flat:hover img { transform: scale(1.06); }
.flat figcaption { font-family: var(--type); font-size: 11px; color: var(--muted); text-align: center; margin-top: 4px; opacity: 0; transition: opacity 0.3s; }
.flat:hover figcaption { opacity: 1; }
@keyframes float { 50% { translate: 0 -9px; } }

/* stats + designed for */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); margin: 20px var(--gutter) 0; border-top: 1.5px dashed var(--line); border-bottom: 1.5px dashed var(--line); }
.stat { text-align: center; padding: 22px 10px; }
.stat + .stat { border-left: 1.5px dashed var(--line); }
.stat b { display: block; font-family: var(--serif); font-weight: 400; font-size: clamp(34px, 3.6vw, 52px); line-height: 1; }
.stat span { display: block; font-family: var(--type); font-size: 13px; color: var(--muted); margin-top: 8px; }
.worked-with { text-align: center; padding: 34px var(--gutter) 0; }
.worked-with p { margin: 10px auto 0; max-width: 980px; font-family: var(--serif); font-style: italic; font-size: clamp(20px, 2.2vw, 28px); line-height: 1.5; color: var(--ink-2); }
.worked-with p span { white-space: nowrap; }
.worked-with p span + span::before { content: '•'; color: var(--accent); font-style: normal; margin: 0 0.5em 0 0; font-size: 0.7em; vertical-align: 0.15em; }

/* ---------- sections ---------- */
.sec { padding: clamp(80px, 9vw, 130px) var(--gutter) 0; }
.sec-head { display: grid; grid-template-columns: auto 1fr minmax(0, 420px); align-items: end; gap: 10px 22px; padding-bottom: 22px; margin-bottom: 30px; border-bottom: 1.5px dashed var(--line); }
.sec-no { width: 46px; height: 46px; border-radius: 50%; background: var(--mustard); display: grid; place-items: center; font-family: var(--type); font-size: 15px; align-self: center; }
.sec-head h2 { font-size: clamp(44px, 6vw, 86px); line-height: 0.95; }
.sec-head p { margin: 0; color: var(--muted); }

.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.tab { border: 1px solid var(--line); background: var(--white); border-radius: 99px; padding: 8px 16px; font-size: 14px; cursor: pointer; transition: background 0.2s, color 0.2s, border-color 0.2s; }
.tab:hover { border-color: var(--ink); }
.tab[aria-selected='true'] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.tab-intro { font-family: var(--type); color: var(--muted); margin: 0 0 26px; max-width: 70ch; min-height: 1.6em; }

/* collection rows: picture on a colour block, words on white, sides alternate */
.rows { display: grid; gap: 22px; }
.row { display: grid; grid-template-columns: 1fr 1fr; min-height: 440px; background: var(--white); border: 1px solid var(--line); }
.row:nth-child(even) .row-media { order: 2; }
.row-media { background: var(--c, var(--sky)); display: grid; place-items: center; padding: clamp(22px, 3.4vw, 50px); cursor: zoom-in; border: 0; }
.row-media img { max-height: 420px; width: auto; max-width: 100%; object-fit: contain; background: #fff; padding: 8px; box-shadow: 0 18px 30px -18px rgba(38, 35, 31, 0.45); transform: rotate(-1.2deg); transition: transform 0.5s var(--ease); }
.row:nth-child(even) .row-media img { transform: rotate(1.2deg); }
.row-media:hover img { transform: rotate(0) scale(1.02); }
.row-text { padding: clamp(26px, 4vw, 56px); display: flex; flex-direction: column; justify-content: center; gap: 14px; }
.row-text h3 { font-size: clamp(32px, 3.4vw, 46px); line-height: 1.02; }
.row-text p { margin: 0; color: var(--ink-2); max-width: 54ch; }
.thumbs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.thumb { width: 74px; height: 74px; border: 1px solid var(--line); background: var(--paper); padding: 0; cursor: zoom-in; overflow: hidden; transition: transform 0.25s var(--ease); }
.thumb:hover { transform: translateY(-3px); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.more-link { align-self: flex-start; background: none; border: 0; padding: 4px 0 8px; font-size: 15px; font-weight: 500; cursor: pointer; background-image: var(--squiggle); background-repeat: repeat-x; background-position: left bottom; background-size: 24px 6px; }
.more-link:hover { color: var(--accent); }

/* an empty slot waiting for a photo */
.ph {
  display: grid; place-items: center; text-align: center; padding: 6px;
  border: 1.5px dashed rgba(38, 35, 31, 0.32); color: var(--muted); background: rgba(255, 255, 255, 0.55);
  font-family: var(--type); font-size: 11px; line-height: 1.25;
}
.thumb.ph { cursor: default; }
.thumb.ph:hover { transform: none; }
.row-media .ph { width: min(100%, 380px); aspect-ratio: 4 / 3; font-size: 14px; }
.ph::before { content: '+'; display: block; font-size: 1.8em; line-height: 1; margin-bottom: 4px; }

/* prints: pinked-edge swatches */
.swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 30px 26px; }
.swatch { margin: 0; cursor: zoom-in; border: 0; padding: 0; background: none; text-align: left; }
.swatch .pink { aspect-ratio: 1; overflow: hidden; background: var(--white); transition: transform 0.4s var(--ease); }
.swatch:nth-child(3n + 1) .pink { transform: rotate(-1.5deg); }
.swatch:nth-child(3n + 2) .pink { transform: rotate(1deg); }
.swatch:hover .pink { transform: rotate(0) translateY(-4px); }
.swatch img { width: 100%; height: 100%; object-fit: cover; }
.swatch figcaption, .swatch span.cap { display: block; font-family: var(--type); font-size: 12.5px; color: var(--muted); margin-top: 10px; }
.sheets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 56px; }
.sheet { margin: 0; cursor: zoom-in; background: var(--white); border: 1px solid var(--line); padding: 12px; }
.sheet img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.sheet figcaption { font-family: var(--type); font-size: 12.5px; color: var(--muted); margin-top: 10px; }

/* tech packs */
.format { list-style: none; margin: 0 0 46px; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; position: relative; counter-reset: step; }
.format::before { content: ''; position: absolute; left: 22px; right: 22px; top: 22px; border-top: 2px dashed var(--accent); }
.format li { position: relative; counter-increment: step; }
.format li::before { content: counter(step); position: relative; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--paper); border: 1.5px solid var(--ink); font-family: var(--type); margin-bottom: 14px; }
.format h4 { font-size: 22px; margin-bottom: 4px; }
.format p { margin: 0; font-size: 14px; color: var(--muted); }
.tp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.tp { background: var(--white); border: 1px solid var(--line); display: flex; flex-direction: column; text-align: left; padding: 0; cursor: pointer; transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease); }
.tp:hover { transform: translateY(-5px); box-shadow: 0 26px 40px -30px rgba(38, 35, 31, 0.5); }
.tp .tp-img { aspect-ratio: 4 / 3; overflow: hidden; border-bottom: 1px solid var(--line); background: #fff; }
.tp .tp-img img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.tp .tp-body { padding: 18px 20px 22px; display: grid; gap: 6px; }
.tp h3 { font-size: 27px; line-height: 1.05; }
.tp p { margin: 0; font-size: 14.5px; color: var(--ink-2); }
.tp .more-link { margin-top: 6px; pointer-events: none; }

/* brands I built */
.brand { display: grid; grid-template-columns: 1fr 1.05fr; gap: 0; background: var(--white); border: 1px solid var(--line); }
.brand + .brand { margin-top: 26px; }
.brand:nth-child(even) .brand-media { order: 2; }
.brand-media { background: var(--c); padding: clamp(22px, 3vw, 44px); display: grid; place-items: center; }
.brand-media button { border: 0; padding: 0; background: none; cursor: zoom-in; width: 100%; }
.brand-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; box-shadow: 0 22px 36px -22px rgba(38, 35, 31, 0.5); }
.brand-text { padding: clamp(26px, 4vw, 56px); display: flex; flex-direction: column; gap: 16px; justify-content: center; }
.brand-text h3 { font-size: clamp(40px, 4.6vw, 64px); line-height: 0.98; }
.brand-text > p { margin: 0; color: var(--ink-2); }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 0; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.facts dt { font-family: var(--type); font-size: 12px; color: var(--muted); }
.facts dd { margin: 2px 0 0; font-size: 14.5px; }
.outcomes { display: flex; flex-wrap: wrap; gap: 26px; }
.outcomes b { display: block; font-family: var(--serif); font-weight: 400; font-size: 40px; line-height: 1; }
.outcomes span { font-family: var(--type); font-size: 12.5px; color: var(--muted); }
.brand .thumbs .thumb { width: 64px; height: 64px; }
.thumb.more { display: grid; place-items: center; font-family: var(--type); font-size: 13px; background: var(--paper); }
.brand-links { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

/* about: photo on the left, letter on the right */
.about { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(24px, 4vw, 60px); align-items: start; }
.about-photo { position: sticky; top: 100px; margin: 0; }
.about-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 70% center; }
.about-photo figcaption { font-family: var(--type); font-size: 12.5px; color: var(--muted); margin-top: 10px; }
.about-letter h3 { font-size: clamp(36px, 4vw, 52px); margin-bottom: 18px; }
.about-letter > p { font-family: var(--type); font-size: 16px; line-height: 1.75; color: var(--ink-2); margin: 0 0 16px; max-width: 62ch; }
.about-letter .sign { font-family: var(--serif); font-style: italic; font-size: 26px; margin: 4px 0 30px; }
.about-block { margin-top: 30px; }
.about-block h4 { font-family: var(--type); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.cv { list-style: none; margin: 0; padding: 0; }
.cv li { display: grid; grid-template-columns: 92px 1fr; gap: 14px; padding: 11px 0; border-top: 1px solid var(--line); }
.cv li:last-child { border-bottom: 1px solid var(--line); }
.cv .yr { font-family: var(--type); font-size: 13px; color: var(--muted); padding-top: 2px; }
.cv b { font-weight: 600; }
.cv span { display: block; color: var(--muted); font-size: 14.5px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips span { border: 1px solid var(--line); background: var(--white); border-radius: 99px; padding: 5px 12px; font-size: 13.5px; }
/* Fiverr reviews: a band that drifts left to right */
.reviews-band { padding: clamp(80px, 9vw, 130px) 0 0; }
.reviews-head { text-align: center; padding: 0 var(--gutter); margin-bottom: 34px; }
.reviews-head h2 { font-size: clamp(40px, 5vw, 70px); line-height: 1; margin: 8px 0 14px; }
.rating { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: center; text-decoration: none; font-size: 15px; color: var(--ink-2); padding-bottom: 6px; background: var(--squiggle) left bottom / 24px 6px repeat-x; }
.rating:hover { color: var(--ink); }
.stars { color: var(--accent); letter-spacing: 2px; }
.score { font-family: var(--type); font-size: 13px; color: var(--ink-2); }
.marquee { overflow: hidden; padding: 16px 0 26px; mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.marquee-track { display: flex; gap: 20px; width: max-content; animation: drift-right 90s linear infinite; }
.marquee:hover .marquee-track, .marquee:focus-within .marquee-track { animation-play-state: paused; }
@keyframes drift-right { from { transform: translateX(-50%); } to { transform: translateX(0); } }
.rv {
  width: 340px; flex: none; display: flex; flex-direction: column; gap: 12px; text-decoration: none;
  background: var(--white); border: 1px solid var(--line); padding: 22px 22px 18px; position: relative;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.2s;
}
.rv:hover, .rv:focus-visible { transform: translateY(-5px); box-shadow: 0 24px 36px -26px rgba(38, 35, 31, 0.55); border-color: var(--ink); outline: none; }
.rv-top { display: flex; align-items: center; gap: 8px; }
.rv-when { margin-left: auto; font-family: var(--type); font-size: 12px; color: var(--muted); }
.rv q { font-family: var(--serif); font-size: 18px; line-height: 1.4; quotes: '“' '”'; display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.rv-who { display: flex; align-items: center; gap: 10px; margin-top: auto; }
.rv-av { width: 34px; height: 34px; border-radius: 50%; background: var(--sage); display: grid; place-items: center; font-weight: 600; font-size: 14px; flex: none; }
.rv-who b { display: block; font-size: 14px; font-weight: 600; }
.rv-who i { display: block; font-style: normal; font-size: 12.5px; color: var(--muted); }
.rv-go { font-family: var(--type); font-size: 12.5px; color: var(--muted); border-top: 1px dashed var(--line); padding-top: 10px; }
.rv:hover .rv-go { color: var(--accent); }
@media (prefers-reduced-motion: reduce) {
  .marquee { overflow-x: auto; }
}

/* contact */
.contact { padding-bottom: 60px; }
.contact-card { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(24px, 4vw, 60px); background: var(--mint); padding: clamp(28px, 5vw, 70px); }
.contact-card h3 { font-size: clamp(40px, 5vw, 72px); line-height: 0.98; }
.contact-card .mail { display: inline-block; margin-top: 22px; font-family: var(--serif); font-style: italic; font-size: clamp(22px, 2.4vw, 32px); text-decoration: none; background: var(--squiggle) left bottom / 24px 6px repeat-x; padding-bottom: 8px; word-break: break-word; }
.contact-card .links { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 26px; }
.contact-card .place { font-family: var(--type); color: var(--ink-2); margin-top: 22px; }
.form { display: grid; gap: 12px; align-content: start; }
.form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form label { display: grid; gap: 4px; font-family: var(--type); font-size: 12.5px; color: var(--ink-2); }
.form input, .form textarea { font: inherit; font-family: var(--sans); font-size: 15px; padding: 12px 14px; border: 1px solid rgba(38, 35, 31, 0.25); background: var(--white); color: var(--ink); border-radius: 0; }
.form input:focus, .form textarea:focus { outline: 2px solid var(--ink); outline-offset: 1px; }
.form textarea { min-height: 130px; resize: vertical; }
.form .btn { justify-self: start; }
.site-footer { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 26px var(--gutter) calc(var(--fw) + 26px); font-family: var(--type); font-size: 13px; color: var(--muted); }
.site-footer a { text-decoration: none; }

/* lightbox */
.lightbox { position: fixed; inset: 0; z-index: 90; background: rgba(30, 28, 25, 0.93); display: grid; grid-template-columns: 64px 1fr 64px; align-items: center; padding: 20px; }
.lightbox[hidden] { display: none; }
.lb-figure { margin: 0; display: grid; justify-items: center; gap: 12px; min-width: 0; }
.lb-img { max-width: min(100%, 1400px); max-height: 78vh; object-fit: contain; background: #fff; }
.lb-figure figcaption { color: #f3eee6; text-align: center; display: grid; gap: 2px; }
.lb-title { font-family: var(--serif); font-size: 22px; }
.lb-cap { font-size: 14.5px; color: rgba(243, 238, 230, 0.8); }
.lb-count { font-family: var(--type); font-size: 12.5px; color: rgba(243, 238, 230, 0.55); }
.lightbox button { width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(243, 238, 230, 0.3); background: rgba(243, 238, 230, 0.08); color: #f3eee6; cursor: pointer; font-size: 18px; }
.lightbox button:hover { background: rgba(243, 238, 230, 0.2); }
.lb-close { position: absolute; top: 18px; right: 18px; }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .tp-grid { grid-template-columns: repeat(2, 1fr); }
  .format { grid-template-columns: repeat(3, 1fr); }
  .format::before { display: none; }
  .sec-head { grid-template-columns: auto 1fr; }
  .sec-head p { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .menu-btn { display: inline-block; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--paper); padding: 8px clamp(16px, 3vw, 44px) 18px; box-shadow: 0 1px 0 var(--line); }
  .nav.is-open { display: flex; }
  .nav a { padding: 12px 0; }
  .hero { grid-template-columns: 1fr; min-height: 0; padding-top: 40px; }
  .hero-copy { order: 1; }
  .hero-side { order: 2; display: flex; justify-content: center; gap: 14px; margin-top: 26px; padding: 0 10px; }
  .hero-side.right { order: 3; }
  .flat { width: clamp(84px, 26vw, 150px); }
  .flat figcaption { opacity: 1; }
  .row, .brand, .about, .contact-card { grid-template-columns: 1fr; }
  .row:nth-child(even) .row-media, .brand:nth-child(even) .brand-media { order: 0; }
  .row { min-height: 0; }
  .row-media img { max-height: 340px; }
  .about-photo { position: static; }
  .sheets { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n + 3) { border-top: 1.5px dashed var(--line); }
  .tp-grid { grid-template-columns: 1fr; }
  .format { grid-template-columns: 1fr 1fr; }
  .facts { grid-template-columns: 1fr; }
  .swatches { grid-template-columns: repeat(2, 1fr); gap: 22px 16px; }
  .form .two { grid-template-columns: 1fr; }
  .hero-side.right { display: none; }
  .lightbox { grid-template-columns: 40px 1fr 40px; padding: 10px; }
  .lightbox .lb-nav { width: 38px; height: 38px; }
  .logo span { font-size: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}

/* keep the drifting reviews inside the page margins */
.marquee { margin: 0 var(--gutter); }

/* ================= v6 · on the rail ================= */
.hero-rail { grid-template-columns: 1fr; gap: 0; min-height: 0; padding-top: 8px; }
.rail-wrap { position: relative; height: 340px; }
.hangers { position: absolute; inset: 0; display: flex; justify-content: space-evenly; padding: 0 3%; }
/* the rail itself */
.hangers::before {
  content: ''; position: absolute; top: 14px; left: 1.5%; right: 1.5%; height: 8px; border-radius: 6px;
  background: linear-gradient(180deg, #ece8e1, #a9a399 55%, #d6d1c8); box-shadow: 0 6px 10px -6px rgba(38, 35, 31, 0.45);
}
.hangers::after { content: ''; position: absolute; top: 9px; left: 1.5%; right: 1.5%; height: 18px; pointer-events: none;
  background: radial-gradient(circle at 9px 9px, #8f8a82 0 8px, transparent 8.5px) left / 18px 18px no-repeat, radial-gradient(circle at 9px 9px, #8f8a82 0 8px, transparent 8.5px) right / 18px 18px no-repeat; }
.hanger {
  position: relative; flex: none; width: 150px; height: 320px; margin-top: 12px; padding: 0; border: 0; background: none; cursor: pointer;
  transform-origin: 55% 4px; will-change: transform; -webkit-tap-highlight-color: transparent;
  animation: hang-in 0.9s var(--ease) backwards; animation-delay: calc(var(--i) * 90ms + 0.15s);
}
@keyframes hang-in { from { opacity: 0; translate: 0 -40px; } }
.hook { position: absolute; top: 0; left: 0; width: 150px; height: auto; z-index: 0; overflow: visible; }
.hk-wire { fill: none; stroke: #858079; stroke-width: 3.2; stroke-linecap: round; }
.hk-wood { fill: #d3a87b; stroke: #9b7249; stroke-width: 1.4; }
.hanger img { position: absolute; z-index: 1; top: 30px; left: 50%; translate: -50% 0; width: 134px; height: auto; max-height: 236px; object-fit: contain; filter: drop-shadow(0 14px 14px rgba(38, 35, 31, 0.18)); pointer-events: none; user-select: none; }
.tag {
  position: absolute; z-index: 2; top: 50px; right: -14px; width: 78px; padding: 16px 6px 8px; text-align: center;
  background: var(--white); border: 1px solid rgba(38, 35, 31, 0.18); border-radius: 3px; transform: rotate(7deg); transform-origin: 50% 0;
  clip-path: polygon(22% 0, 78% 0, 100% 14%, 100% 100%, 0 100%, 0 14%);
  box-shadow: 0 6px 12px -8px rgba(38, 35, 31, 0.5); transition: transform 0.35s var(--ease), background 0.2s;
}
.tag::before { content: ''; position: absolute; top: 5px; left: 50%; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; background: var(--paper); box-shadow: inset 0 0 0 1px rgba(38, 35, 31, 0.3); }
.tag b { display: block; font-family: var(--type); font-weight: 700; font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; }
.tag i { display: block; font-style: normal; font-size: 10.5px; line-height: 1.25; color: var(--muted); margin-top: 2px; }
.hanger:hover .tag, .hanger:focus-visible .tag { transform: rotate(0deg) translateY(-3px); background: var(--mustard); }
.hanger:focus-visible { outline: none; }
.hanger:focus-visible img { outline: 2px dashed var(--ink); outline-offset: 4px; }
.hero-rail .hero-copy { padding-top: 4px; }
.hero-rail h1 { font-size: clamp(42px, 5.4vw, 86px); margin: 14px 0 18px; }

/* section numbers are swing tags that sway as they come into view */
.sec-no {
  width: 46px; height: 60px; border-radius: 0 0 5px 5px; padding-top: 16px; align-self: center;
  background: radial-gradient(circle at 50% 13px, var(--paper) 0 3.5px, rgba(38, 35, 31, 0.3) 4px, transparent 4.6px), var(--mustard);
  clip-path: polygon(26% 0, 74% 0, 100% 20%, 100% 100%, 0 100%, 0 20%);
  transform-origin: 50% 6px;
}
.sec-no.sway { animation: sway 1.8s ease-out; }
@keyframes sway { 0% { rotate: 0deg; } 18% { rotate: 14deg; } 42% { rotate: -9deg; } 64% { rotate: 5deg; } 84% { rotate: -2deg; } 100% { rotate: 0deg; } }

/* review cards get a punched tag hole */
.rv { padding-top: 30px; }
.rv::before { content: ''; position: absolute; top: 11px; left: 50%; width: 9px; height: 9px; margin-left: -4.5px; border-radius: 50%; background: var(--paper); box-shadow: inset 0 0 0 1.5px rgba(38, 35, 31, 0.22); }

@media (max-width: 900px) {
  .rail-wrap { height: 300px; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter); }
  .rail-wrap::-webkit-scrollbar { display: none; }
  .hangers { position: relative; inset: auto; height: 100%; width: max-content; justify-content: flex-start; gap: 4px; padding: 0 12px; }
  .hanger { width: 128px; height: 290px; }
  .hook { width: 128px; }
  .hanger img { width: 114px; max-height: 210px; top: 26px; }
  .tag { width: 70px; right: -8px; top: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  .hanger, .sec-no.sway { animation: none; }
}

@media (max-width: 900px) {
  .rail-wrap { height: 264px; }
}

/* ================= v7 · a lighter rail, prints first, compact collections ================= */
/* fewer garments, no swing tags: a small typed label shows only on hover */
.rail-wrap { height: 284px; }
.hanger { height: 272px; }
.hanger .cap {
  position: absolute; z-index: 2; left: -10px; right: -10px; top: 228px; text-align: center; pointer-events: none;
  font-family: var(--type); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted);
  opacity: 0; transition: opacity 0.25s;
}
.hanger:hover .cap, .hanger:focus-visible .cap { opacity: 1; }

/* collections: two compact boards per line, a smaller colour panel, less scrolling */
.rows { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.row { grid-template-columns: minmax(0, 0.82fr) minmax(0, 1fr); min-height: 0; }
.row:nth-child(even) .row-media { order: 0; }
.row-media { padding: 30px 18px 20px; }
.row-media img { max-height: 210px; padding: 5px; box-shadow: 0 14px 22px -14px rgba(38, 35, 31, 0.45); }
.row-media .ph { width: 100%; font-size: 12px; }
.row-text { padding: 20px 22px 18px; gap: 8px; justify-content: flex-start; }
.row-text .kicker { font-size: 12px; }
.row-text h3 { font-size: clamp(22px, 1.9vw, 28px); line-height: 1.08; }
.row-text p { font-size: 14px; line-height: 1.55; }
.row .thumbs { gap: 6px; margin-top: 2px; }
.row .thumb { width: 48px; height: 48px; }
.row .thumb.ph { font-size: 0; padding: 0; }
.row .thumb.ph::before { font-size: 18px; margin: 0; }
.row .more-link { font-size: 14px; padding-bottom: 6px; }
.tab-intro { margin-bottom: 20px; }

@media (max-width: 1100px) {
  .rows { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .row { grid-template-columns: 1fr; }
  .row-media { padding: 24px 28px 16px; }
  .row-media img { max-height: 180px; }
  .row-text { padding: 18px 18px 16px; }
}
@media (max-width: 900px) {
  .hanger .cap { top: 244px; opacity: 1; font-size: 11px; }
}

/* ================= v10 · final: v7 plus the journey, brand logos and tech packs that fan out ================= */
/* no pegs on the collection boards: they sit straight, with a slight lift on hover */
.row-media { padding-top: 20px; }
.row-media img, .row:nth-child(even) .row-media img { transform: none; }
.row-media:hover img { transform: translateY(-3px); }

/* tech pack steps: a stitch line sews across, then each step pops in as the needle passes */
.format::before { transform-origin: left center; }
.format::after {
  content: ''; position: absolute; top: 13px; left: 22px; width: 30px; height: 18px; pointer-events: none; opacity: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 18'%3E%3Cpath d='M1 9 H24' stroke='%2348423a' stroke-width='2' stroke-linecap='round'/%3E%3Cellipse cx='21' cy='9' rx='2.6' ry='1.2' fill='none' stroke='%2348423a' stroke-width='1.1'/%3E%3Cpath d='M24 9 L29 9' stroke='%2348423a' stroke-width='1.2' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / contain;
}
.format:not(.is-sewn)::before { transform: scaleX(0); }
.format.is-sewn::before { transform: scaleX(1); transition: transform 1.8s cubic-bezier(0.45, 0, 0.25, 1); }
.format.is-sewn::after { animation: needle-run 1.8s cubic-bezier(0.45, 0, 0.25, 1) forwards; }
@keyframes needle-run { 0% { left: 10px; opacity: 1; } 90% { opacity: 1; } 100% { left: calc(100% - 36px); opacity: 0; } }
.format li > * { transition: opacity 0.5s, transform 0.5s var(--ease); transition-delay: calc(var(--i) * 0.34s + 0.15s); }
.format li::before { transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.3s; transition-delay: calc(var(--i) * 0.34s + 0.1s); }
.format:not(.is-sewn) li > * { opacity: 0; transform: translateY(10px); }
.format:not(.is-sewn) li::before { transform: scale(0.2); }
.format.is-sewn li::before { background: var(--mustard); }

/* tech pack cards: a little stack of pages on a cutting mat; pointing at it fans the pages out */
.tp .tp-img {
  position: relative; background-color: #e9efe6;
  background-image: linear-gradient(rgba(38, 35, 31, 0.07) 1px, transparent 1px), linear-gradient(90deg, rgba(38, 35, 31, 0.07) 1px, transparent 1px);
  background-size: 18px 18px;
}
.pages { position: absolute; inset: 11% 15% 9%; }
.page {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top left; background: #fff;
  border: 1px solid rgba(38, 35, 31, 0.12); box-shadow: 0 12px 20px -14px rgba(38, 35, 31, 0.55);
  transition: transform 0.65s var(--ease);
}
.page.p1 { transform: rotate(-3deg) translate(-6px, 4px); }
.page.p2 { transform: rotate(3.5deg) translate(7px, 2px); }
.tp:hover .page.p0, .tp:focus-visible .page.p0, .tp.is-fanned .page.p0 { transform: translateY(-5%) scale(1.04); }
.tp:hover .page.p1, .tp:focus-visible .page.p1, .tp.is-fanned .page.p1 { transform: rotate(-11deg) translate(-30%, 6%); }
.tp:hover .page.p2, .tp:focus-visible .page.p2, .tp.is-fanned .page.p2 { transform: rotate(10deg) translate(30%, 5%); }
.tp:hover { transform: none; }

/* brands: the logo on its colour with a grid of small pictures, the story beside it */
.brand { grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); }
.brand-media { display: flex; flex-direction: column; align-items: center; gap: 22px; padding: clamp(26px, 3.4vw, 50px); }
.brand-media img.brand-logo { width: auto; height: clamp(84px, 10vw, 150px); max-width: 72%; aspect-ratio: auto; object-fit: contain; box-shadow: none; }
.mosaic { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; width: 100%; }
.brand-media .mosaic button { width: auto; aspect-ratio: 1; overflow: hidden; border-radius: 6px; background: var(--white); }
.brand-media .mosaic img { width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; box-shadow: none; transition: transform 0.6s var(--ease); }
.brand-media .mosaic button:hover img { transform: scale(1.06); }
.brand-media .more-link { width: auto; }

@media (max-width: 1100px) {
  .format::after { display: none; }
}
@media (max-width: 900px) {
  .brand { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .mosaic { gap: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  .format::before, .format li > *, .format li::before { transform: none !important; opacity: 1 !important; }
  .format::after { display: none; }
}

/* from NIFT to my own label: a thread sews along the timeline as you scroll */
.journey { overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: thin; padding-bottom: 18px; }
.journey-track { position: relative; min-width: 100%; width: max-content; }
.thread { position: absolute; left: 0; right: 0; top: 46px; width: 100%; height: 60px; pointer-events: none; }
.thread path { fill: none; stroke: var(--accent); stroke-width: 2; stroke-dasharray: 7 7; vector-effect: non-scaling-stroke; }
/* the inked thread is measured in path units, so it scales with the path */
.thread .draw { stroke: var(--ink); stroke-width: 1.4; stroke-dasharray: none; vector-effect: none; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(230px, 262px); gap: 22px; }
.step { scroll-snap-align: start; padding-top: 104px; position: relative; }
.step::before { content: ''; position: absolute; top: 66px; left: 0; width: 18px; height: 18px; border-radius: 50%; background: var(--c, var(--mustard)); border: 1.5px solid var(--ink); box-shadow: 0 0 0 5px var(--paper); box-sizing: border-box; }
.step .yr { display: block; font-family: var(--serif); font-size: 44px; line-height: 1; }
.step h4 { margin: 10px 0 4px; font-size: 21px; line-height: 1.15; }
.step p { margin: 0; font-size: 14px; color: var(--muted); max-width: 30ch; }
.needle { position: absolute; top: 64px; left: 0; width: 22px; height: 22px; margin-left: -11px; pointer-events: none; z-index: 1;
  background: radial-gradient(circle at 50% 50%, var(--paper) 0 3px, var(--ink) 3.5px 6px, transparent 6.5px); }
.needle::after { content: ''; position: absolute; left: 50%; top: -26px; width: 2px; height: 26px; margin-left: -1px; background: linear-gradient(var(--ink), var(--ink-2)); border-radius: 2px; }
/* desktop: the section pins and the timeline slides sideways under it, out to the page frame */
.journey-sec.is-pinned { padding-top: 0; }
.journey-sec.is-pinned .journey-pin {
  position: sticky; top: 0; min-height: 100vh; display: flex; flex-direction: column; justify-content: center;
  margin: 0 calc(var(--gutter) * -1); padding: 90px var(--gutter) 30px; overflow: hidden;
}
.journey-sec.is-pinned .journey { overflow: visible; padding-bottom: 0; }
.journey-sec.is-pinned .journey-track { will-change: transform; }
@media (max-width: 899px) {
  .journey { margin: 0 calc(var(--gutter) * -1); padding-left: var(--gutter); padding-right: var(--gutter); scroll-padding: 0 var(--gutter); }
  .steps { grid-auto-columns: minmax(210px, 240px); }
}

/* ================= v11 · soft sans headings, a tighter journey, collection rows as in v4 ================= */
/* headings: a soft, rounded sans (Nunito) in place of Fraunces */
:root { --serif: 'Nunito', 'Avenir Next', system-ui, sans-serif; }
h1, h2, h3, h4 { font-weight: 600; letter-spacing: -0.02em; }
.hero h1 { font-weight: 600; }
.hero h1 em { font-weight: 500; }
.logo span { font-style: normal; font-weight: 700; font-size: 26px; }
.stat b, .outcomes b { font-weight: 600; }

/* collections, as in the first version: one board per line on its colour, words on white beside it, sides alternate.
   Every board sits in the same size white mount, so pictures are one size on every collection tab. */
.rows { grid-template-columns: 1fr; gap: 22px; }
.row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 0; }
.row:nth-child(even) .row-media { order: 2; }
.row-media { padding: clamp(26px, 3.4vw, 50px); }
.row-media img {
  width: 100%; max-width: 560px; height: auto; max-height: none; aspect-ratio: 3 / 2; object-fit: contain;
  padding: 10px; background: #fff; box-shadow: 0 18px 30px -18px rgba(38, 35, 31, 0.45);
}
.row-media .ph { width: 100%; max-width: 560px; aspect-ratio: 3 / 2; font-size: 14px; }
.row-text { padding: clamp(26px, 4vw, 56px); gap: 12px; justify-content: center; }
.row-text .kicker { font-size: 13px; }
.row-text h3 { font-size: clamp(28px, 2.8vw, 40px); line-height: 1.05; }
.row-text p { font-size: 15.5px; line-height: 1.6; }
.row .thumbs { gap: 8px; margin-top: 4px; }
.row .thumb { width: 60px; height: 60px; }
.row .thumb.ph::before { font-size: 22px; }
.row .more-link { font-size: 15px; }
.tab-intro { margin-bottom: 26px; }

/* journey: smaller words, no empty screen above or below it */
.journey-sec { padding-top: clamp(48px, 5vw, 72px); }
.journey-sec .sec-head h2 { font-size: clamp(34px, 4vw, 58px); line-height: 1; }
.journey-sec .sec-head p { font-size: 15px; }
.step .yr { font-size: 30px; font-weight: 600; }
.step h4 { margin: 8px 0 4px; font-size: 17px; }
.step p { font-size: 13px; line-height: 1.55; }
.journey-sec.is-pinned { padding-top: 0; }
.journey-sec.is-pinned .journey-pin { min-height: 0; justify-content: flex-start; padding: clamp(48px, 5vw, 72px) var(--gutter) 20px; }
.journey-sec + .sec { padding-top: clamp(56px, 6vw, 84px); }

@media (max-width: 900px) {
  .row { grid-template-columns: 1fr; }
  .row:nth-child(even) .row-media { order: 0; }
  .row-media { padding: 26px 22px; }
  .row-media img, .row-media .ph { max-width: 520px; }
  .row-text { padding: 22px 20px 22px; }
}
@media (max-width: 640px) {
  .row-media { padding: 20px 16px; }
  .row-media img { padding: 6px; }
  .row .thumb { width: 52px; height: 52px; }
}

/* ================= v12 · Brands right after Collections, each with one photo of me; journey, then tech packs ================= */
.brand-media { justify-content: center; gap: 26px; }
.brand-media img.brand-logo { height: clamp(64px, 7vw, 108px); }
.brand-photo { margin: 0; width: 100%; max-width: 400px; }
.brand-media .brand-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 35%; border-radius: 4px; background: var(--white); }

/* ================= v13 · tech packs back before brands, fewer words, bigger collection boards ================= */
/* the category tabs say enough: no intro line under them */
#col-intro { display: none; }
.tabs + .tab-intro + .rows { margin-top: 26px; }

/* collections: the board takes most of the row and the colour is only a thin frame around it */
.row { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); }
.row:nth-child(even) { grid-template-columns: minmax(0, 1fr) minmax(0, 1.55fr); }
.row-media { padding: clamp(12px, 1.3vw, 18px); }
.row-media img, .row-media .ph { max-width: none; padding: 6px; }
.row-text { padding: clamp(24px, 3vw, 44px); }

@media (max-width: 900px) {
  .row, .row:nth-child(even) { grid-template-columns: 1fr; }
  .row-media { padding: 12px; }
  .row-media img, .row-media .ph { max-width: none; padding: 4px; }
}

/* ================= live · 30 Nov 2026: Komal Shah Designs, collection boards that change on their own ================= */
.logo span i { font-style: normal; font-weight: 400; }
@media (max-width: 640px) {
  .logo span { font-size: 22px; }
}

/* the main board is a stack of the collection's pictures that cross-fade; small dots on the colour frame show which one */
.row-media { position: relative; }
.row-media .slides { position: relative; display: block; width: 100%; aspect-ratio: 3 / 2; background: #fff; box-shadow: 0 18px 30px -18px rgba(38, 35, 31, 0.45); transition: transform 0.5s var(--ease); }
.row-media .slides img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; aspect-ratio: auto; object-fit: contain; background: #fff; box-shadow: none; transform: none; opacity: 0; transition: opacity 1s ease; }
.row-media .slides img.is-on { opacity: 1; z-index: 2; }
.row-media .slides img.is-prev { opacity: 1; z-index: 1; transition: none; }
.row-media:hover .slides { transform: translateY(-3px); }
.row-media .dots { position: absolute; left: 0; right: 0; bottom: 6px; display: flex; justify-content: center; gap: 6px; pointer-events: none; }
.row-media .dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(38, 35, 31, 0.25); transition: background 0.3s, transform 0.3s; }
.row-media .dots i.is-on { background: var(--ink); transform: scale(1.25); }
@media (max-width: 900px) {
  .row-media .dots { bottom: 3px; gap: 5px; }
  .row-media .dots i { width: 5px; height: 5px; }
}
