/* Palette: Still Water (SW 6223, #4A5D5F on the chip) deepened to how it reads on a wall, on a white page.
   Espresso ink, mustard and sage from the flannel photo. Light only, by Ben's call. */
:root {
  color-scheme: light;
  --bg: #ffffff; --surface: #f6f5f2; --ink: #26211e; --muted: #645a53; --line: #e6e2db;
  --accent: #2f4245; --accent-soft: #eaefee; --mustard: #b8913f; --sage: #a9ae96; --warn: #a4572a;
  --mark-bg: #2f4245; --mark-ink: #ffffff; --mark-accent: #c9a55a;
  --serif: "Source Serif 4", Georgia, serif; --sans: "Inter", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.6 var(--sans); }
a { color: var(--accent); }
img { display: block; max-width: 100%; height: auto; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 700px) { .wrap { padding: 0 32px; } }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: -.01em; }
.draft { background: var(--warn); color: #fff; text-align: center; font-size: 13px; padding: 6px 16px; }
.draft a { color: #fff; }

/* nav */
.nav { display: flex; justify-content: space-between; align-items: center; padding-top: 22px; padding-bottom: 22px; gap: 16px; flex-wrap: wrap; }
.mark { display: inline-flex; align-items: center; gap: 10px; font: 600 18px var(--serif); color: var(--ink); text-decoration: none; }
.brandmark { display: block; flex: none; }
.nav nav { display: flex; gap: 20px; font-size: 15px; }
.nav nav a { color: var(--muted); text-decoration: none; }
.nav nav a:hover, .nav nav a[aria-current] { color: var(--accent); }

/* home */
.hero { padding-top: 48px; padding-bottom: 36px; }
.hero h1 { font-size: clamp(30px, 4.4vw, 48px); line-height: 1.14; margin: 0 0 20px; max-width: 26ch; }
.hero .what { font-size: 19px; line-height: 1.6; max-width: 62ch; margin: 0 0 14px; }
.hero .next { font-size: 17px; color: var(--muted); max-width: 62ch; margin: 0 0 24px; }
.cta { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.btn { display: inline-block; background: var(--accent); color: var(--bg); padding: 11px 20px; border-radius: 6px; text-decoration: none; font-weight: 600; font-size: 15px; border: 0; cursor: pointer; font-family: var(--sans); }
.btn:disabled { opacity: .6; cursor: default; }
.link { font-weight: 500; font-size: 15px; }
.sec { font-size: 28px; margin: 0 0 8px; }
.sec-note { color: var(--muted); margin: 0 0 22px; font-size: 15.5px; }
section { margin-bottom: 64px; }

.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; }
.tile { display: flex; flex-direction: column; color: var(--ink); text-decoration: none; }
.tile .figure { margin: 0 0 12px; }
.tile .client { font-size: 13px; font-weight: 600; color: var(--accent); letter-spacing: .02em; }
.tile h3 { font-size: 20px; line-height: 1.3; margin: 6px 0 6px; }
.tile .fact { font-size: 14px; color: var(--muted); }
.tile:hover h3 { color: var(--accent); }

/* figures and the gate */
.figure { margin: 0; }
.figure .frame { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: var(--accent-soft); }
.figure .frame img { width: 100%; height: 100%; object-fit: cover; }
.figure figcaption { font-size: 14px; color: var(--muted); line-height: 1.5; margin-top: 10px; }
.figure figcaption b { color: var(--ink); font-weight: 500; }
.gated img.ph { filter: blur(18px); transform: scale(1.15); image-rendering: auto; }
.gated.unlocked img { filter: none; transform: none; transition: filter .3s ease, transform .3s ease; }
.gated.text-heavy .frame { background: var(--accent-soft); }
.locked-note { display: block; font-size: 13px; color: var(--muted); margin-top: 4px; }
@media (prefers-reduced-motion: reduce) { .gated.unlocked img { transition: none; } }

.gate-card { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 16px; }
.gate-card .card { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 20px 22px; max-width: 380px; width: 100%; box-shadow: 0 10px 30px rgba(0,0,0,.12); }
@media (max-width: 700px) {
  .gate-card { position: static; padding: 0; margin-top: 12px; }
  .gate-card .card { max-width: none; box-shadow: none; }
  .figure .frame:has(.gate-card) { overflow: visible; border: 0; background: none; }
  .figure .frame:has(.gate-card) img { border: 1px solid var(--line); border-radius: 10px; }
}
.gate-card h3 { margin: 0 0 6px; font-size: 20px; }
.gate-card p { margin: 0 0 12px; font-size: 15px; line-height: 1.5; }
.gate-card .thanks { margin: 0; font: 500 17px var(--serif); }
form.gate { display: flex; gap: 8px; flex-wrap: wrap; }
form.gate input[type=email] { flex: 1 1 180px; font: 15px var(--sans); padding: 10px 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--bg); color: var(--ink); }
form.gate input[type=email]:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
form.gate .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
form.gate .err { flex-basis: 100%; margin: 0; color: var(--warn); font-size: 13px; min-height: 0; }
.privacy { font-size: 13px; color: var(--muted); line-height: 1.5; margin: 10px 0 0 !important; }
.gate-bar { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 20px 22px; margin: 0 0 22px; display: grid; gap: 6px 24px; align-items: center; }
@media (min-width: 800px) { .gate-bar { grid-template-columns: 1fr auto; } .gate-bar .privacy { grid-column: 1 / -1; } }
.gate-bar h3 { margin: 0; font-size: 19px; }
.gate-bar p { margin: 0; font-size: 15px; color: var(--muted); }
body.unlocked .gate-bar { display: none; }

/* case page */
.case { padding-top: 36px; padding-bottom: 24px; }
.case .meta { font-size: 14px; color: var(--muted); margin: 0 0 12px; }
.case h1 { font-size: clamp(32px, 4.8vw, 48px); line-height: 1.1; margin: 0 0 22px; max-width: 24ch; }
.case .hero-fig { margin-bottom: 28px; }
.case .oneline { font: 400 22px/1.45 var(--serif); margin: 0 0 22px; max-width: 34em; }
.story { max-width: 66ch; }
.story p { font: 400 19px/1.7 var(--serif); margin: 0 0 18px; }
.grid2 { display: grid; gap: 22px; margin: 32px 0; }
@media (min-width: 800px) { .grid2 { grid-template-columns: 1fr 1fr; } }
.quote { background: var(--accent-soft); border-radius: 10px; padding: 22px; margin: 28px 0; max-width: 66ch; }
.quote blockquote { margin: 0 0 12px; font: 500 18px/1.45 var(--serif); }
.quote figcaption { font-size: 14px; color: var(--muted); }
.lines { max-width: 66ch; margin: 24px 0 36px; display: grid; gap: 10px; font-size: 15.5px; }
.lines b { color: var(--accent); font-weight: 600; margin-right: 6px; }
.next { display: block; border-top: 1px solid var(--line); padding: 28px 0 8px; text-decoration: none; font: 600 20px var(--serif); }
.next span { display: block; font: 600 12px var(--sans); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 6px; }

/* about */
.prose { max-width: 720px; padding-top: 36px; padding-bottom: 24px; }
.prose h1 { font-size: clamp(32px, 5vw, 48px); line-height: 1.1; margin: 0 0 18px; }
.prose p { font: 400 19px/1.7 var(--serif); margin: 0 0 18px; }
.career { list-style: none; margin: 28px 0 0; padding: 0; border-left: 2px solid var(--line); }
.career li { display: grid; grid-template-columns: 1fr; gap: 2px; padding: 0 0 22px 22px; position: relative; }
.career li::before { content: ""; position: absolute; left: -7px; top: 8px; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); }
@media (min-width: 700px) { .career li { grid-template-columns: 130px 1fr; gap: 20px; } }
.career .when { font-size: 14px; color: var(--muted); padding-top: 3px; }
.career h3 { font-size: 19px; margin: 0; }
.career h3 span { display: block; font: 500 14px var(--sans); color: var(--accent); margin-top: 2px; }
.career p { margin: 4px 0 0; color: var(--muted); font-size: 15.5px; }

/* built */
.built-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 26px; }
.built-item .figure { margin-bottom: 12px; }
.built-item .kind { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.built-item h3 { font-size: 19px; margin: 4px 0 6px; }
.built-item p { margin: 0; font-size: 15px; color: var(--muted); }
.built-item .tools { font-size: 13px; color: var(--muted); margin-top: 8px; }

/* contact + footer */
.contact { text-align: center; padding: 44px 16px; border-top: 1px solid var(--line); }
.contact .best { font: 500 24px/1.4 var(--serif); max-width: 34ch; margin: 0 auto 22px; }
.contact p.cta { justify-content: center; }
.foot { border-top: 1px solid var(--line); padding-top: 22px; padding-bottom: 40px; font-size: 14px; color: var(--muted); }
.foot p { margin: 0 0 6px; }

/* messaging house */
.pillars { display: grid; gap: 22px 32px; margin: 30px 0 26px; max-width: 980px; }
@media (min-width: 760px) { .pillars { grid-template-columns: 1fr 1fr; } }
.pillar { border-top: 3px solid var(--mustard); padding-top: 12px; }
.pillar h3 { font-size: 19px; line-height: 1.3; margin: 0 0 6px; }
.pillar p { margin: 0; color: var(--muted); font-size: 15.5px; line-height: 1.55; }
.hero h1 { max-width: 20ch; }
.tile .client, .built-item .kind { color: var(--accent); }
.draft { background: var(--warn); }

/* resume request form */
form.request { display: grid; gap: 14px; margin: 24px 0 8px; max-width: 520px; }
form.request label { display: grid; gap: 6px; font: 500 14px var(--sans); color: var(--ink); }
form.request input, form.request textarea { font: 15px var(--sans); padding: 10px 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--ink); }
form.request input:focus, form.request textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
form.request .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
form.request button { justify-self: start; }
form.request .err { margin: 0; color: var(--warn); font-size: 13px; }
.prose .thanks { font: 500 19px/1.6 var(--serif); background: var(--accent-soft); border-radius: 10px; padding: 18px 20px; }

/* behind-the-work feed: a horizontal, swipeable row of post cards */
.feed-wrap { margin-bottom: 64px; }
.feed-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; }
.feed-nav { display: none; gap: 8px; margin-bottom: 22px; }
@media (min-width: 700px) { .feed-nav { display: flex; } }
.feed-btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-size: 18px; cursor: pointer; }
.feed-btn:hover { border-color: var(--accent); color: var(--accent); }
.feed { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 max(16px, calc((100vw - 1080px) / 2 + 32px));
  padding: 4px max(16px, calc((100vw - 1080px) / 2 + 32px)) 14px; scrollbar-width: thin; }
.feed:focus-visible { outline: 2px solid var(--accent); }
.post { flex: 0 0 min(76vw, 290px); scroll-snap-align: start; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; }
.post header { display: flex; align-items: center; gap: 9px; padding: 10px 12px; }
.post header .brandmark { width: 26px; height: 26px; }
.post header span { display: flex; flex-direction: column; line-height: 1.2; }
.post header b { font: 600 13.5px var(--sans); }
.post header i { font: normal 12px var(--sans); color: var(--muted); }
.post img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.post p { margin: 0; padding: 11px 13px 14px; font-size: 14.5px; line-height: 1.45; }
.quote-card { justify-content: space-between; background: var(--accent); color: var(--mark-ink); padding: 22px 20px; border-color: transparent; }
.quote-card .q { font: 500 21px/1.35 var(--serif); padding: 0; }
.quote-card .who { font-size: 13px; opacity: .8; padding: 18px 0 0; }
.quote-card::before { content: ""; display: block; width: 36px; height: 3px; background: var(--mustard); margin-bottom: 18px; }

/* small photo strips sprinkled into long pages */
.sprinkle { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 6px 0 26px; }
.sprinkle img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); }
.built-grid + .sprinkle, section > .sprinkle { max-width: 640px; }
.sprinkle:has(img:nth-child(2):last-child) { grid-template-columns: repeat(2, 1fr); max-width: 420px; }

/* headshot */
.hero-top { display: grid; gap: 22px; align-items: center; }
.hero-top h1 { margin: 0 0 18px; }
.hero-top .what { margin: 0; }
.headshot { width: 132px; height: 132px; border-radius: 50%; object-fit: cover; border: 4px solid #fff; box-shadow: 0 0 0 2px var(--mustard); order: -1; }
@media (min-width: 760px) { .hero-top { grid-template-columns: 1fr auto; } .headshot { width: 220px; height: 220px; order: 0; } }
.about-top { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
.about-top h1 { margin: 0; }
.headshot.small { width: 96px; height: 96px; order: 0; }
.post .credit { display: block; margin-top: 6px; font-size: 12px; color: var(--muted); }

/* identity line + quiet facts strip for skimmers */
.hero .identity { font: 500 14px var(--sans); letter-spacing: .01em; color: var(--accent); margin: 0 0 14px; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px 22px; margin: 30px 0 6px; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.facts div { margin: 0; }
.facts dt { font: 600 17px var(--serif); color: var(--ink); }
.facts dd { margin: 2px 0 0; font-size: 13.5px; line-height: 1.4; color: var(--muted); }

/* story rows: photo + short story, alternating sides */
.stories { display: grid; gap: 56px; margin-top: 8px; }
.story-row { display: grid; gap: 22px; align-items: center; }
@media (min-width: 820px) {
  .story-row { grid-template-columns: 340px 1fr; gap: 48px; }
  .story-row:nth-child(even) { grid-template-columns: 1fr 340px; }
  .story-row:nth-child(even) .story-photo { order: 2; }
}
.story-photo { margin: 0; position: relative; }
.story-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 14px; box-shadow: 0 18px 40px -22px rgba(38, 33, 30, .45); }
.story-photo::after { content: ""; position: absolute; left: -10px; top: -10px; width: 64px; height: 64px; border-left: 3px solid var(--mustard); border-top: 3px solid var(--mustard); border-top-left-radius: 14px; }
.story-row:nth-child(even) .story-photo::after { left: auto; right: -10px; border-left: 0; border-right: 3px solid var(--mustard); border-top-left-radius: 0; border-top-right-radius: 14px; }
.story-photo figcaption { font-size: 13px; color: var(--muted); margin-top: 10px; }
.story-text h3 { font-size: clamp(24px, 3vw, 32px); line-height: 1.15; margin: 0 0 12px; }
.story-text p { font: 400 18.5px/1.7 var(--serif); margin: 0; max-width: 58ch; }
.next-wrap { padding-top: 8px; }
.next-wrap .next { font: 500 20px/1.5 var(--serif); color: var(--ink); max-width: 46ch; border-left: 3px solid var(--accent); padding-left: 16px; }

/* behind-the-work mosaic: snapshots, slightly askew */
.mosaic-wrap { background: var(--accent); color: #fff; padding: 56px 0 64px; margin-bottom: 72px; }
.mosaic-wrap .sec { color: #fff; }
.mosaic-wrap .sec-note { color: rgba(255,255,255,.75); }
.mosaic { columns: 3 240px; column-gap: 22px; }
.snap { break-inside: avoid; margin: 0 0 26px; background: #fff; padding: 10px 10px 12px; border-radius: 4px; box-shadow: 0 14px 30px -16px rgba(0,0,0,.55); transition: transform .25s ease; }
.snap img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 2px; }
.snap figcaption { color: var(--ink); font-size: 13.5px; line-height: 1.4; margin-top: 9px; }
.snap small { display: block; color: var(--muted); font-size: 11.5px; margin-top: 4px; }
.snap.s0 { transform: rotate(-1.6deg); } .snap.s1 { transform: rotate(1.2deg); } .snap.s2 { transform: rotate(-.6deg); }
.snap.s3 { transform: rotate(1.8deg); } .snap.s4 { transform: rotate(-1.1deg); }
.snap:hover { transform: rotate(0) scale(1.02); }
@media (prefers-reduced-motion: reduce) { .snap { transition: none; } }

/* photos woven into long text */
.inline-photo { margin: 6px 0 18px; width: 44%; }
.inline-photo.right { float: right; margin-left: 26px; transform: rotate(1.2deg); }
.inline-photo.left { float: left; margin-right: 26px; transform: rotate(-1.2deg); }
.inline-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 4px; background: #fff; padding: 8px; box-shadow: 0 14px 30px -18px rgba(0,0,0,.5); }
.inline-photo figcaption { font: 13px var(--sans); color: var(--muted); margin-top: 8px; }
.prose .career { clear: both; }
@media (max-width: 640px) { .inline-photo, .inline-photo.left, .inline-photo.right { float: none; width: 100%; margin: 8px 0 22px; transform: none; } }

/* facts strip icons */
.facts .ficon { width: 34px; height: 34px; padding: 7px; border-radius: 50%; background: #f3ead6; color: #8a6a2b; margin-bottom: 8px; display: block; }

/* flip-through stacks (photos or quotes) */
.story-photo::after { display: none; }
.stack { position: relative; aspect-ratio: 4 / 5.4; cursor: pointer; }
.stack .card { position: absolute; inset: 0 0 34px 0; margin: 0; background: #fff; padding: 10px 10px 12px; border-radius: 6px; box-shadow: 0 16px 34px -18px rgba(38,33,30,.55);
  transition: transform .45s cubic-bezier(.2,.8,.2,1), opacity .45s; display: flex; flex-direction: column; }
.stack .card img { width: 100%; flex: 1; min-height: 0; object-fit: cover; border-radius: 3px; }
.stack .card figcaption { font-size: 13px; color: var(--muted); margin-top: 8px; line-height: 1.4; }
.stack .card figcaption small { display: block; font-size: 11.5px; margin-top: 3px; }
.stack .card[data-pos="0"] { z-index: 3; transform: rotate(0); }
.stack .card[data-pos="1"] { z-index: 2; transform: rotate(3.5deg) translate(10px, 6px); }
.stack .card[data-pos="2"] { z-index: 1; transform: rotate(-3deg) translate(-10px, 8px); }
.stack .card[data-pos="hidden"] { z-index: 0; opacity: 0; transform: rotate(-6deg) translate(-20px, 10px); }
.stack[data-n="1"] { cursor: default; }
.stack .qcard { background: var(--accent); color: #fff; padding: 30px 26px; justify-content: space-between; }
.stack .qcard::before { content: "\201C"; font: 600 84px/0.6 var(--serif); color: var(--mustard); }
.stack .qcard blockquote { margin: 0; font: 500 clamp(19px, 2vw, 23px)/1.4 var(--serif); flex: 1; padding-top: 12px; }
.stack .qcard figcaption { color: rgba(255,255,255,.78); font-size: 13.5px; border-top: 1px solid rgba(255,255,255,.2); padding-top: 12px; }
.stack-dots { position: absolute; left: 0; right: 0; bottom: 0; display: flex; gap: 7px; align-items: center; justify-content: center; }
.stack-dots button { width: 8px; height: 8px; border-radius: 50%; border: 0; padding: 0; background: var(--line); cursor: pointer; }
.stack-dots button.on { background: var(--accent); width: 20px; border-radius: 4px; }
.stack-hint { font-size: 12px; color: var(--muted); margin-left: 8px; }
@media (prefers-reduced-motion: reduce) { .stack .card { transition: none; } }

/* what I'm looking for: a band that pops */
.next-band { background: #d9b45f; margin: 64px 0 0; padding: 52px 0 56px; }
.next-band .eyebrow-light { font: 600 12.5px var(--sans); letter-spacing: .12em; text-transform: uppercase; color: #5a4316; margin: 0 0 12px; }
.next-band .next { font: 600 clamp(24px, 3.2vw, 36px)/1.25 var(--serif); color: #26211e; max-width: 30ch; margin: 0 0 26px; border: 0; padding: 0; }
.next-band .btn.light { background: #26211e; color: #fff; }
.next-band .link.light { color: #26211e; }
.next-band + .mosaic-wrap { margin-top: 0; }

/* handwritten flip hint */
.stack-hint { display: inline-flex; align-items: center; gap: 4px; font: 700 21px/1 "Caveat", cursive; color: #8a6a2b; margin-left: 10px; transform: rotate(-4deg); }
.stack-hint svg { width: 34px; height: 20px; transform: scaleX(-1) rotate(10deg); }

/* roomier stats */
.facts { grid-template-columns: repeat(5, 1fr); gap: 0; padding: 26px 0; margin-top: 36px; }
.facts > div { padding: 0 22px; border-left: 1px solid var(--line); text-align: center; }
.facts > div:first-child { border-left: 0; }
.facts .ficon { width: 44px; height: 44px; padding: 10px; margin: 0 auto 12px; }
.facts dt { font: 600 21px/1.2 var(--serif); }
.facts dd { font-size: 14.5px; line-height: 1.45; margin-top: 6px; }
@media (max-width: 900px) {
  .facts { grid-template-columns: repeat(2, 1fr); gap: 22px 0; }
  .facts > div { border-left: 0; }
  .facts > div:last-child { grid-column: 1 / -1; }
}

/* softer next band with a cutout portrait */
.next-band { padding: 48px 0 0; overflow: hidden; }
.next-grid { display: grid; gap: 10px; align-items: end; }
.next-grid > div { padding-bottom: 52px; }
.next-band .next { font: 500 clamp(22px, 2.6vw, 30px)/1.35 var(--serif); max-width: 34ch; }
.cutout { display: block; width: min(360px, 70vw); justify-self: center; margin-bottom: -2px; }
@media (min-width: 860px) { .next-grid { grid-template-columns: 1fr 380px; gap: 40px; } .cutout { width: 380px; } }

/* line motifs from Ben's flannel (pinstripes, stitch dashes, herringbone zigzag, nested arches) */
/* bold patchwork of shirt patterns filling the right third of the band, portrait in front */
.next-band { position: relative; overflow: hidden; }
.pattern-panel { position: absolute; top: 0; right: 0; bottom: 0; width: 36%; min-width: 300px;
  background: url(/img/motifs/panel-simple.svg) left top / 200px auto repeat;
  clip-path: polygon(14% 0, 100% 0, 100% 100%, 0 100%); }
.pattern-panel::before { display: none; }
.next-grid { position: relative; z-index: 1; }
.cutout { position: relative; z-index: 2; width: min(360px, 72vw); justify-self: center; align-self: end; margin: 0 0 -2px;
  }
@media (min-width: 860px) { .next-grid { grid-template-columns: 1fr 34%; } .cutout { width: 360px; justify-self: end; margin-right: 2vw; } }
@media (max-width: 859px) { .pattern-panel { top: auto; height: 300px; width: 100%; clip-path: polygon(0 18%, 100% 0, 100% 100%, 0 100%); } }
.flannel-strip { height: 34px; background: url(/img/motifs/border.svg) left center / 24px 34px repeat-x; margin-top: 24px; opacity: .9; }
.mosaic-wrap { position: relative; }
.mosaic-wrap::before { content: ""; position: absolute; left: 0; right: 0; top: 14px; height: 14px; background: url(/img/motifs/pinstripe.svg) left / 40px 14px repeat-x; opacity: .9; }
.facts { position: relative; }
.facts::after { content: ""; position: absolute; left: 0; width: 132px; bottom: -8px; height: 14px; background: url(/img/motifs/zigzag.svg) left / 24px 14px repeat-x; }
.story-row + .story-row { position: relative; padding-top: 56px; }
.story-row + .story-row::before { content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 120px; height: 12px; background: url(/img/motifs/stitch.svg) left / 12px 12px repeat-x; }
.stories { gap: 0; }

/* a slice of the pattern crossing in front of the portrait's shoulders, hiding the crop */
.next-grid { position: static; }
.next-grid > div:first-child { position: relative; z-index: 2; }
.pattern-front { position: absolute; z-index: 3; right: 0; bottom: 0; width: 40%; min-width: 320px; height: 92px;
  background: url(/img/motifs/panel-simple.svg) left 0 / 200px auto repeat;
  clip-path: polygon(0 62%, 100% 0, 100% 100%, 0 100%); }
.pattern-front::before { content: ""; position: absolute; inset: 0; border-top: 5px solid #d0a446; clip-path: inherit; }
@media (max-width: 859px) { .pattern-front { width: 100%; height: 70px; } }

/* v3: no pattern behind; portrait sits higher; a larger slanted pattern slice in front hides the crop */
.pattern-panel { display: none; }
@media (min-width: 860px) { .cutout { transform: translateY(-70px); margin-bottom: -70px; width: 380px; } }
.pattern-front { width: 46%; min-width: 360px; height: 170px; clip-path: polygon(0 58%, 100% 8%, 100% 100%, 0 100%); }
@media (max-width: 859px) { .cutout { transform: translateY(-40px); margin-bottom: -40px; } .pattern-front { width: 100%; height: 110px; } }
/* v4 tuning */
@media (min-width: 860px) {
  .next-band { padding-bottom: 0; }
  .next-grid { grid-template-columns: 1fr 40%; }
  .cutout { width: 440px; transform: none; margin: -30px 0 -2px; justify-self: end; }
}
.pattern-front { width: 44%; min-width: 360px; height: 120px; clip-path: polygon(0 72%, 100% 22%, 100% 100%, 0 100%); }
.pattern-front { clip-path: polygon(0 72%, 100% 4%, 100% 100%, 0 100%); }

/* v5: portrait sandwiched between two layers of the shirt pattern, centered against the text */
.pattern-front { display: none; }
.next-band { padding-bottom: 48px; }
.next-grid { align-items: center; }
.next-grid > div:first-child { padding-bottom: 0; }
.sandwich { position: relative; width: 380px; height: 400px; justify-self: center; }
.sandwich .cutout { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); width: 340px; margin: 0; z-index: 2; }
.sandwich .layer { position: absolute; left: -40px; right: -60px; background: url(/img/motifs/panel-simple.svg) left top / 180px auto repeat; }
.sandwich .layer.back { z-index: 1; top: 60px; height: 190px; transform: rotate(-7deg); border-radius: 6px; }
.sandwich .layer.front { z-index: 3; bottom: -26px; height: 92px; transform: rotate(-7deg); border-top: 5px solid #d0a446; box-shadow: 0 -6px 18px rgba(38,33,30,.18); }
@media (min-width: 860px) { .next-grid { grid-template-columns: 1fr 420px; } .sandwich { justify-self: center; } }
@media (max-width: 859px) { .sandwich { width: 300px; height: 330px; margin-top: 16px; } .sandwich .cutout { width: 270px; } .sandwich .layer.back { top: 40px; height: 150px; } }

/* v6: the two layers become mountain ridges; Ben pops up between them */
.sandwich { width: 420px; height: 420px; }
.sandwich .layer { left: -30px; right: -30px; transform: none; border: 0; border-radius: 0; box-shadow: none; }
.sandwich .layer.back { top: 70px; bottom: 40px; height: auto;
  clip-path: polygon(0 100%, 0 62%, 10% 44%, 19% 56%, 31% 14%, 41% 38%, 50% 22%, 60% 40%, 71% 6%, 82% 34%, 91% 26%, 100% 48%, 100% 100%); }
.sandwich .layer.back::after { content: ""; position: absolute; inset: 0; background: rgba(38,33,30,.18); }
.sandwich .layer.front { bottom: -4px; height: 150px; background-position: 40px 60px;
  clip-path: polygon(0 100%, 0 52%, 9% 34%, 18% 50%, 30% 24%, 40% 46%, 52% 58%, 64% 30%, 76% 44%, 88% 16%, 100% 38%, 100% 100%); }
@media (max-width: 859px) { .sandwich { width: 320px; height: 340px; } .sandwich .layer.front { height: 120px; } .sandwich .layer.back { top: 50px; } }
.sandwich .layer.back, .sandwich .layer.front { transform: none; border-top: 0; box-shadow: none; }
.sandwich .layer.back { top: 30px; bottom: 60px; }
.sandwich .layer.front { bottom: -6px; height: 175px; }

/* v7: ridges taper at the edges, rise from the band floor; front ridge lighter and lower */
.next-band { padding-bottom: 0; }
.next-grid > div:first-child { padding-bottom: 56px; }
.sandwich { height: 440px; align-self: end; }
.sandwich .cutout { width: 360px; bottom: 30px; }
.sandwich .layer.back { top: 40px; bottom: 0;
  clip-path: polygon(0 100%, 0 82%, 9% 64%, 17% 70%, 29% 28%, 39% 46%, 49% 30%, 58% 44%, 70% 10%, 81% 38%, 90% 32%, 100% 70%, 100% 100%); }
.sandwich .layer.front { bottom: 0; height: 120px; background-position: 0 -64px;
  clip-path: polygon(0 100%, 0 58%, 11% 36%, 22% 52%, 34% 30%, 46% 62%, 58% 44%, 70% 66%, 82% 32%, 92% 46%, 100% 40%, 100% 100%); }
.sandwich .layer.front::after { content: ""; position: absolute; inset: 0; background: rgba(255,255,255,.10); }
@media (max-width: 859px) { .sandwich { height: 360px; } .sandwich .cutout { width: 290px; bottom: 24px; } .sandwich .layer.front { height: 96px; } }

/* v8 (Ben's sketch): one mountain slope rising from the band floor to the top-right corner, wavy-line fill; Ben behind it */
.sandwich .layer { display: none; }
.next-band { min-height: 470px; }
.sandwich { height: 430px; align-self: end; }
.sandwich .cutout { width: 360px; bottom: 0; }
.slope { position: absolute; z-index: 3; right: 0; bottom: 0; width: 56%; height: 82%;
  background: url(/img/motifs/waves.svg) left top / 200px auto repeat;
  clip-path: polygon(0 100%, 34% 66%, 40% 72%, 66% 34%, 71% 40%, 100% 0, 100% 100%); pointer-events: none; }
@media (max-width: 859px) { .slope { width: 100%; height: 34%; clip-path: polygon(0 100%, 40% 55%, 46% 65%, 74% 20%, 79% 30%, 100% 0, 100% 100%); } }
.slope { width: 60%; height: 85%; clip-path: polygon(0 100%, 26% 74%, 32% 80%, 40% 80%, 54% 84%, 60% 72%, 66% 76%, 100% 0, 100% 100%); }

/* v9 balance pass */
@media (min-width: 860px) {
  .sandwich { width: 440px; height: 440px; }
  .sandwich .cutout { width: 400px; }
  .slope { width: 58%; height: 78%;
    clip-path: polygon(0 100%, 18% 84%, 23% 88%, 30% 76%, 48% 74%, 62% 70%, 68% 74%, 74% 62%, 100% 12%, 100% 100%); }
}
@media (max-width: 859px) {
  .next-band { min-height: 0; }
  .sandwich { width: 300px; height: 300px; justify-self: center; margin-top: 8px; }
  .sandwich .cutout { width: 290px; bottom: 0; }
  .slope { width: 100%; height: 150px; clip-path: polygon(0 100%, 0 70%, 14% 52%, 22% 62%, 32% 54%, 68% 50%, 76% 58%, 86% 30%, 100% 12%, 100% 100%); }
}
@media (max-width: 859px) { .next-grid > div:first-child { padding-bottom: 0; } .sandwich { margin-top: -20px; } }

/* "What I'm looking for": from Ben's design export (Balance and mountain design) */
.looking-for { position: relative; overflow: hidden; background: #D9B45F; min-height: max(560px, 46vw); display: flex; align-items: center; margin-top: 64px; }
.looking-for .lf-portrait { position: absolute; right: 4%; bottom: 0; width: 42%; height: auto; aspect-ratio: 1; }
.looking-for .mtn { position: absolute; right: 0; bottom: 0; width: 80%; height: 66%; }
.looking-for .lf-text { position: relative; z-index: 1; box-sizing: border-box; padding: 96px 0 96px clamp(32px, 6.5vw, 96px); width: 47%; display: flex; flex-direction: column; gap: 20px; }
.looking-for .lf-eyebrow { margin: 0; font: 600 14px var(--sans); letter-spacing: .14em; text-transform: uppercase; color: #6b4a14; }
.looking-for .lf-body { margin: 0; font: 400 clamp(22px, 2.4vw, 34px)/1.35 var(--serif); color: #262020; text-wrap: pretty; }
.looking-for .lf-cta { display: flex; align-items: center; flex-wrap: wrap; gap: clamp(14px, 2vw, 28px); margin: 12px 0 0; }
.looking-for .lf-cta a { color: #262020; white-space: nowrap; font-weight: 500; font-size: clamp(14px, 1.35vw, 18px); }
.looking-for .lf-cta a:hover { color: #5a3f12; }
.looking-for .lf-cta .lf-btn { background: #262020; color: #fff; padding: clamp(12px, 1.3vw, 18px) clamp(16px, 1.7vw, 24px); border-radius: 8px; font-weight: 600; text-decoration: none; }
.looking-for .lf-cta .lf-btn:hover { background: #3a3232; color: #fff; }
.looking-for + .mosaic-wrap { margin-top: 0; }
@media (max-width: 859px) {
  .looking-for { display: block; min-height: 0; padding-bottom: 92vw; }
  .looking-for .lf-text { width: auto; padding: 48px 20px 8px; }
  .looking-for .lf-portrait { width: 82%; right: 9%; }
  .looking-for .mtn { width: 130%; height: 52vw; }
}
@media (max-width: 859px) { .looking-for .mtn { width: 190%; height: 62vw; } }

/* ---------- entrance (access code page) ---------- */
body.enter { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 32px 16px; box-sizing: border-box; }
.enter-card { width: 100%; max-width: 480px; text-align: center; }
.enter-photo { width: 132px; height: 132px; border-radius: 50%; object-fit: cover; display: block; margin: 0 auto 18px; box-shadow: 0 0 0 6px var(--accent-soft); }
.enter-name { display: inline-flex; align-items: center; gap: 10px; font: 600 18px var(--serif); color: var(--ink); margin: 0 0 18px; }
.enter-card h1 { font: 600 clamp(26px, 5vw, 34px)/1.2 var(--serif); margin: 0 0 14px; color: var(--ink); text-wrap: balance; }
.enter-card > p { color: var(--muted); margin: 0 0 24px; }
.enter-form { text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 18px; }
.enter-form label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 8px; }
.enter-form .row { display: flex; gap: 8px; }
.enter-form input { flex: 1; min-width: 0; font: 16px var(--sans); padding: 10px 12px; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.enter-form input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.enter-form .err { color: var(--warn); font-size: 14px; margin: 8px 0 0; min-height: 1em; }
.enter-alt { font-size: 14.5px; color: var(--muted); margin-top: 20px !important; }
