/* spydrhaus v2: inner pages (case studies, legal, blog, local page, thank you).
   Loaded after site.css. Big statement type, full-bleed work, ruled rows,
   one loud "talk to us" band at the end of each page. */
:root {
  /* names the older page styles still use, mapped onto the v2 tokens */
  --ink: var(--night); --panel: var(--night-2); --text: var(--silk); --muted: var(--ash);
  --lilac: var(--pink); --glow: rgba(255, 92, 207, .22);
}
.page main { padding-top: 68px; }
.page main > .wrap { position: relative; }

/* page opening: a big headline, then a short intro */
.ph { padding: clamp(72px, 12vw, 176px) 0 clamp(40px, 6vw, 80px); }
.crumb { margin: 0 0 clamp(20px, 3vw, 36px); font-size: 15px; color: var(--ash); }
.crumb a { color: var(--ash); text-decoration: none; }
.crumb a:hover { color: var(--silk); }
.page h1 { font-family: var(--display); font-weight: 800; font-size: clamp(44px, 9.4vw, 156px); line-height: .92; letter-spacing: -.03em; margin: 0; text-wrap: balance; }
.page h1 em { font-style: normal; }
.page.legal h1, .page.thanks h1, .page.post h1 { font-size: clamp(32px, 7.4vw, 120px); }
.ph .intro, .ph .lede { max-width: 44ch; margin: clamp(24px, 3vw, 40px) 0 0; font-size: clamp(18px, 1.55vw, 22px); line-height: 1.5; color: var(--silk); }
.ph .actions { margin-top: 32px; }
.eyebrow { margin: 0 0 18px; font: 500 15px/1.4 var(--body); color: var(--ash); letter-spacing: 0; text-transform: none; }
.eyebrow a { color: inherit; }

/* case study body: heading on the left, words on the right, ruled rows */
div.case { display: block; margin-top: clamp(64px, 9vw, 140px); }
div.case > div:not(.actions):not(.ba-pair) { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 12px 20px; padding: clamp(32px, 4vw, 56px) 0; border-top: 1px solid var(--line); }
div.case > div > h2 { grid-column: 1 / span 4; margin: 0; font: 700 clamp(24px, 2.2vw, 32px)/1.1 var(--display); letter-spacing: -.02em; color: var(--silk); }
div.case > div > :not(h2) { grid-column: 6 / -1; margin: 0; max-width: 62ch; }
div.case > div > .ba-pair { grid-column: 1 / -1; max-width: none; margin-top: 16px; }
div.case p, div.case li { color: var(--silk); font-size: 17px; }
div.case ul { padding-left: 0; list-style: none; display: grid; gap: 0; border-top: 1px solid var(--line); }
div.case ul li { padding: 12px 0; border-bottom: 1px solid var(--line); }
div.case ul li::marker { content: none; }
ol.process { list-style: none; margin: 18px 0 0; padding: 0; counter-reset: step; display: grid; gap: 0; border-top: 1px solid var(--line); }
ol.process li { counter-increment: step; display: grid; grid-template-columns: 44px 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
ol.process li::before { content: counter(step); font: 700 15px/1.7 var(--display); color: var(--ash); }
ol.process b { color: var(--silk); font-weight: 700; }
.ba-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(10px, 1.4vw, 20px); padding: clamp(32px, 4vw, 56px) 0; border-top: 1px solid var(--line); }
.ba-pair figure { margin: 0; display: grid; gap: 8px; }
.ba-pair a { display: block; overflow: hidden; border-radius: 4px; }
.ba-pair img { width: 100%; height: auto; }
.ba-pair figcaption { font-size: 14px; color: var(--ash); }
@media (max-width: 600px) { .ba-pair { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 860px) {
  div.case > div:not(.actions):not(.ba-pair) { grid-template-columns: 1fr; }
  div.case > div > h2, div.case > div > :not(h2) { grid-column: 1 / -1; }
}
.page .actions { display: flex; flex-wrap: wrap; gap: 12px; }
div.case > .actions { padding: clamp(32px, 4vw, 56px) 0 0; border-top: 1px solid var(--line); }

/* the closing band: one loud line and a way to start */
.page .cta { margin: clamp(96px, 12vw, 180px) 0 0; padding: clamp(48px, 6vw, 80px) 0 0; border: 0; border-top: 1px solid var(--line-2); border-radius: 0; background: none; display: block; }
.page .cta h2, .page .cta h3 { margin: 0 0 24px; max-width: 14ch; font: 800 clamp(48px, 8.4vw, 140px)/.92 var(--display); letter-spacing: -.045em; color: var(--silk); }
.page .cta p { max-width: 46ch; margin: 0 0 28px; font-size: 18px; color: var(--ash); }

/* legal and long reading: one calm column, offset right */
.prose-col { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 20px; padding-bottom: clamp(72px, 9vw, 120px); }
.prose-col > * { grid-column: 5 / span 7; }
@media (max-width: 900px) { .prose-col > * { grid-column: 1 / -1; } }
.page.legal .updated { margin: 24px 0 0; color: var(--ash); font-size: 15px; }
.page.legal .lede { padding: 0 0 32px; margin-bottom: 8px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: none; font: 600 clamp(20px, 1.9vw, 26px)/1.4 var(--body); color: var(--silk); }
.page.legal .lede p { margin: 0; }
.page.legal h2 { margin: 48px 0 12px; font: 700 clamp(22px, 2vw, 28px)/1.15 var(--display); letter-spacing: -.02em; }
.page.legal p, .page.legal li { color: var(--silk); font-size: 17px; }
.page.legal ul { padding-left: 20px; }
.page.legal li { margin-bottom: 8px; }
.page.legal li::marker { color: var(--ash); }
.page.legal main a:not(.btn) { color: var(--silk); text-decoration-color: var(--pink); text-underline-offset: 3px; }

/* local page */
.crumbs ol { list-style: none; margin: 0 0 clamp(20px, 3vw, 36px); padding: 0; display: flex; gap: 8px; font-size: 15px; color: var(--ash); }
.crumbs li + li::before { content: "/"; margin-right: 8px; }
.crumbs a { color: var(--ash); text-decoration: none; }
.towns { list-style: none; padding: 0; margin: 12px 0 0; display: flex; flex-wrap: wrap; gap: 0 22px; }
.towns li { padding: 4px 0; }
.page .faq details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.page .faq details:first-of-type { border-top: 1px solid var(--line); }
.page .faq summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.page .faq summary::-webkit-details-marker { display: none; }
.page .faq summary::after { content: "+"; color: var(--ash); }
.page .faq details[open] summary::after { content: "−"; }
.page .faq p { margin: 10px 0 0; color: var(--ash); }
.page .faq h2 { grid-column: 1 / span 4; }
.page .faq > :not(h2) { grid-column: 6 / -1; }

/* thank-you and blog keep their own layout rules; these bring them into line */
.page.thanks main, .page.blog main { padding-bottom: clamp(72px, 9vw, 120px); }
.page.thanks .steps li, .page.blog .post a, .page .soon, .page .note, .page .card, .page .svc a, .page .how li { border-color: var(--line); border-radius: 6px; background: var(--night-2); box-shadow: none; }
.page.thanks .steps li::before { color: var(--ash); }
.page .post .meta, .page .post .go { color: var(--ash); letter-spacing: 0; }
.page .post a:hover { transform: none; border-color: var(--line-2); }
.page .post a:hover h2 { color: var(--pink); }
.page.thanks .badge { background: none; border: 1px solid var(--line-2); }
.page .ref { border-color: var(--line); background: var(--night-2); border-radius: 6px; }

.page.blog main > .wrap, .page.thanks main > .wrap { padding-top: clamp(56px, 8vw, 120px); }
.page.post h1 { line-height: 1.02; margin-bottom: 22px; }

/* ---- studio pass: centred openers, rounded media, pills, one big "your turn" card ---- */
.ph.center { text-align: center; }
.ph.center .wrap > * { margin-left: auto; margin-right: auto; }
.ph.center .intro, .ph.center .lede, .ph.center .updated { max-width: 52ch; }
.ph.center .crumbs ol { justify-content: center; }
.tags { list-style: none; margin: clamp(22px, 2.6vw, 34px) 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.tags li, .tags > span, .more .tags span { display: inline-flex; align-items: center; min-height: 30px; padding: 0 13px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 14px; color: var(--silk); white-space: nowrap; }
.tags li:first-child { background: var(--silk); border-color: var(--silk); color: var(--night); font-weight: 600; }
.tags li:has(.tag-hot) { padding: 0; border: 0; }
.tag-hot { display: inline-flex; align-items: center; min-height: 30px; padding: 0 13px; border-radius: 999px; background: var(--pink); color: var(--night); font-size: 14px; font-weight: 600; text-decoration: none; }
.tag-hot:hover { background: var(--silk); }

/* the opening shot: inset, rounded, rises once on load */
.media { margin: 0 clamp(10px, 1.2vw, 18px); border-radius: clamp(10px, 1.2vw, 18px); overflow: hidden; background: var(--night-2); }
.media img, .media video { display: block; width: 100%; height: auto; max-height: 88vh; object-fit: cover; object-position: top; }
@media (prefers-reduced-motion: no-preference) {
  .page.case .ph h1, .page.case .ph .tags { animation: rise .9s cubic-bezier(.2, .7, .2, 1) both; }
  .page.case .ph .tags { animation-delay: .12s; }
  .page.case .media { animation: lift 1.2s .2s cubic-bezier(.2, .7, .2, 1) both; }
}
@keyframes rise { from { opacity: 0; transform: translateY(24px); } }
@keyframes lift { from { opacity: 0; transform: translateY(60px) scale(.97); } }

/* overview: what we did on the left, the story on the right */
.overview { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 32px 20px; padding: clamp(72px, 10vw, 160px) 0 clamp(56px, 7vw, 110px); }
.specs { grid-column: 2 / span 3; margin: 0; display: grid; gap: 28px; align-content: start; }
.specs dt { font-size: 13px; color: var(--ash); margin-bottom: 6px; }
.specs dd { margin: 0; font-size: 16px; line-height: 1.5; }
.specs ul { list-style: none; margin: 0; padding: 0; }
.specs a { color: var(--silk); text-underline-offset: 4px; text-decoration-color: var(--line-2); }
.specs a:hover { text-decoration-color: var(--pink); }
.story { grid-column: 6 / -1; max-width: 760px; }
.statement { margin: 0; font: 500 clamp(22px, 2.3vw, 34px)/1.32 var(--body); letter-spacing: -.012em; color: var(--silk); text-wrap: pretty; }
.story-more { margin-top: 28px; }
.story-more .row { padding: 0; border: 0; margin: 0 0 28px; }
.story-more h2 { margin: 0 0 8px; font: 700 18px/1.3 var(--display); letter-spacing: -.01em; color: var(--silk); }
.story-more p, .story-more li { color: var(--ash); font-size: 17px; }
.story-more p { margin: 0 0 12px; }
.story-more ul { list-style: none; margin: 0; padding: 0; }
.story-more ul li { padding: 8px 0; border-bottom: 1px solid var(--line); }
.story-more ol.process li::before { color: var(--silk); }
.story-more ol.process b { color: var(--silk); }
.story.clip .story-more { max-height: 7.5em; overflow: hidden; -webkit-mask-image: linear-gradient(#000 30%, transparent); mask-image: linear-gradient(#000 30%, transparent); }
.story .actions { margin-top: 28px; }
@media (max-width: 900px) { .specs, .story { grid-column: 1 / -1; } .specs { grid-template-columns: repeat(3, minmax(0, 1fr)); order: 2; } }
@media (max-width: 560px) { .specs { grid-template-columns: 1fr 1fr; } .specs > div:first-child { grid-column: 1 / -1; } .specs ul { columns: 2; } }

/* pill buttons: a label pill and a round icon that travel together */
.pbtn { display: inline-flex; align-items: stretch; gap: 3px; text-decoration: none; color: var(--silk); font: 600 15px/1 var(--body); cursor: pointer; background: none; border: 0; padding: 0; }
.pbtn span, .pbtn i { display: inline-flex; align-items: center; justify-content: center; height: 46px; border: 1px solid var(--silk); border-radius: 999px; transition: background .25s, color .25s, border-color .25s, transform .35s cubic-bezier(.2, .7, .2, 1); }
.pbtn span { padding: 0 20px; white-space: nowrap; }
.pbtn i { width: 46px; font-style: normal; font-size: 17px; }
.pbtn:hover span, .pbtn:hover i, .pbtn:focus-visible span, .pbtn:focus-visible i { background: var(--silk); color: var(--night); }
.pbtn:hover i { transform: rotate(45deg); }
.pbtn.readmore:hover i { transform: rotate(90deg); }
.pbtn.solid span, .pbtn.solid i { background: var(--silk); color: var(--night); }
.pbtn.solid:hover span, .pbtn.solid:hover i { background: var(--pink); border-color: var(--pink); }
.pbtn:focus-visible { outline: 2px solid var(--pink); outline-offset: 4px; border-radius: 999px; }
.page .actions { align-items: center; }

/* one line, set huge and centred */
.pull { margin: 0 auto; padding: clamp(40px, 6vw, 100px) 0 clamp(72px, 10vw, 160px); max-width: 17ch; text-align: center; font: 800 clamp(34px, 5.6vw, 92px)/1 var(--display); letter-spacing: -.04em; color: var(--silk); text-wrap: balance; }

/* screens from the site */
.gallery { padding-bottom: clamp(40px, 6vw, 80px); }
.gallery h2 { margin: 0 0 18px; font: 500 15px/1.4 var(--body); color: var(--ash); letter-spacing: 0; }
.shots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(10px, 1.2vw, 18px); }
.gallery[aria-label] .shots figure:nth-child(5n+1) { grid-column: 1 / -1; }
.shots figure { margin: 0; }
.shots a { display: block; border-radius: clamp(10px, 1.2vw, 18px); overflow: hidden; }
.shots img { display: block; width: 100%; height: auto; transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.shots a:hover img { transform: scale(1.03); }
.shots figcaption { margin-top: 10px; font-size: 14px; color: var(--ash); }
@media (max-width: 600px) { .shots { grid-template-columns: minmax(0, 1fr); } }

/* "your turn": a giant word with the light card laid over its lower half */
.talk { container-type: inline-size; position: relative; margin-top: clamp(80px, 10vw, 160px); padding: 0 clamp(10px, 1.2vw, 18px); text-align: center; overflow: clip; }
.talk-word { position: sticky; top: 14vh; margin: 0; font: 800 clamp(48px, min(13.4vw, 13.4cqi), 260px)/.8 var(--display); letter-spacing: -.06em; white-space: nowrap; color: var(--silk); }
.talk-word i { font-style: normal; color: var(--pink); }
.talk-card { position: relative; z-index: 1; width: min(1180px, 100%); margin: 34vh auto 0; min-height: clamp(400px, 44vw, 620px); display: grid; place-items: center; border-radius: clamp(12px, 1.4vw, 20px); overflow: hidden; background: var(--night-2); }
.talk-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .9; }
.talk-card::after { content: ""; position: absolute; inset: 0; background: radial-gradient(70% 70% at 50% 55%, rgba(10, 7, 11, .62), rgba(10, 7, 11, .2)); }
.talk-copy { position: relative; z-index: 1; padding: clamp(40px, 6vw, 72px) var(--gut); max-width: 760px; }
.talk-copy h2 { margin: 0 auto 18px; max-width: 16ch; font: 800 clamp(32px, 4.2vw, 64px)/1 var(--display); letter-spacing: -.04em; color: var(--silk); text-wrap: balance; }
.talk-copy p { margin: 0 auto 30px; max-width: 46ch; color: var(--silk); opacity: .85; font-size: 17px; }
.talk-copy .actions { justify-content: center; }

/* more work: two cards with pills */
.more { max-width: var(--max); margin: 0 auto; padding: clamp(96px, 11vw, 170px) var(--gut) clamp(72px, 9vw, 120px); }
.more h2 { margin: 0 0 20px; font: 500 15px/1.4 var(--body); color: var(--ash); letter-spacing: 0; }
.more ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 24px); }
.more a, .page .work a { display: block; color: var(--silk); text-decoration: none; }
.shot { display: block; aspect-ratio: 16 / 10; border-radius: clamp(10px, 1.2vw, 18px); overflow: hidden; background: var(--night-2); }
.shot img, .shot video, .page .work img, .page .work video { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.more a:hover .shot img, .more a:hover .shot video, .page .work a:hover img, .page .work a:hover video { transform: scale(1.04); }
.more .name { display: block; margin: 16px 0 10px; font: 700 clamp(26px, 2.6vw, 40px)/1.05 var(--display); letter-spacing: -.03em; }
.more .tags { display: flex; flex-wrap: wrap; gap: 6px; }
.more .tags span { min-height: 28px; font-size: 13px; color: var(--ash); }
@media (max-width: 700px) { .more ul { grid-template-columns: minmax(0, 1fr); } }

/* local page work list, as cards */
.page .work { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.page .work li { min-width: 0; }
.page .work a { display: grid; gap: 12px; }
.page .work img, .page .work video { aspect-ratio: 16 / 10; height: auto; border-radius: 12px; }
.page .work a > span { font: 700 22px/1.1 var(--display); letter-spacing: -.02em; }
.page .work small { display: block; margin-top: 6px; font: 400 15px/1.4 var(--body); color: var(--ash); }
@media (max-width: 760px) { .page .work { grid-template-columns: minmax(0, 1fr); } }

/* the round "View" label that follows the cursor over work */
.view-cursor { position: fixed; left: 0; top: 0; z-index: 60; pointer-events: none; will-change: transform; }
.view-cursor span { display: grid; place-items: center; width: 84px; height: 84px; margin: -42px 0 0 -42px; border-radius: 50%; background: var(--silk); color: var(--night); font: 600 14px/1 var(--body); transform: scale(0); transition: transform .3s cubic-bezier(.2, .7, .2, 1); }
.view-cursor.on span { transform: scale(1); }
.ph.center > *, .page.legal .ph.center .updated { margin-left: auto; margin-right: auto; }
.more .tags { justify-content: flex-start; margin: 0; }

.media video { aspect-ratio: 16 / 10; }

/* contact: a shorter opening so the form shows on the first screen, plus a cue that points down to it */
.ph.tight { padding: clamp(56px, 7vw, 96px) 0 clamp(20px, 3vw, 36px); }
.ph.tight h1 { font-size: clamp(44px, 7.4vw, 124px); }
.ph-cue { display: inline-flex; flex-direction: column; align-items: center; gap: 12px; margin-top: clamp(22px, 3vw, 36px); color: var(--silk); font: 600 15px var(--body); text-decoration: none; }
.ph-cue i { position: relative; width: 1.5px; height: 46px; background: var(--line-2); overflow: hidden; }
.ph-cue i::after { content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 45%; background: var(--pink); animation: cue 1.6s cubic-bezier(.6, 0, .3, 1) infinite; }
.ph-cue:hover { color: var(--pink); }
@keyframes cue { from { transform: translateY(-110%); } to { transform: translateY(240%); } }
@media (prefers-reduced-motion: reduce) { .ph-cue i::after { animation: none; } }
