/* Layout for the static project pages (dist/projects/<id>/), written by scripts/project-pages.mjs.
   The look comes from the site's main stylesheet, linked before this one: .ambient, .grain, .glass, .card,
   .card-hover, .metal and .accent are the same classes the home page uses. --accent and --amb1..3 are set
   on <html> from the project's area, as the home page does for the chosen lens. */
body { margin: 0; text-align: left; hyphens: manual; line-height: 1.65; }
h1, h2, h3, .pp-result, .pp-next strong { font-family: var(--font-display); letter-spacing: -0.02em; }
em { font-family: var(--font-serif); font-weight: 400; font-style: italic; letter-spacing: -0.01em; }
:where(.pp-prose p, .pp-panel p, .pp-lead, .pp-facts dd, .pp-skills li) { text-align: left; hyphens: manual; -webkit-hyphens: manual; }
a { color: inherit; }

.pp-wrap { box-sizing: border-box; width: 100%; max-width: 72rem; margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .pp-wrap { padding: 0 24px; } }

/* Header: the home page's floating glass pill */
.pp-top { position: fixed; inset: 0 0 auto; z-index: 50; padding: 16px 16px 0; }
@media (min-width: 640px) { .pp-top { padding: 16px 24px 0; } }
.pp-pill { display: flex; align-items: center; justify-content: space-between; gap: 12px; max-width: 72rem; margin: 0 auto; padding: 8px 8px 8px 20px; border-radius: 999px; box-sizing: border-box; }
.pp-mono { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; letter-spacing: -0.02em; text-decoration: none; filter: none; } /* the liquid-metal SVG filter lives on the home page only */
.pp-navlinks { display: flex; align-items: center; gap: 4px; }
.pp-link { padding: 8px 12px; border-radius: 999px; font-size: 14px; color: rgb(22 21 29 / .65); text-decoration: none; transition: background .2s, color .2s; }
.pp-link:hover { background: rgb(22 21 29 / .06); color: #16151d; }
@media (max-width: 560px) { .pp-link { display: none; } }

/* Buttons: accent fill like the home page's Send button; outline like its "Book a 30-minute call" */
.pp-btn { display: inline-flex; align-items: center; gap: 6px; padding: 10px 20px; border: 1px solid rgb(22 21 29 / .15); border-radius: 999px; font-family: var(--font-display); font-size: 14px; font-weight: 500; color: rgb(22 21 29 / .9); text-decoration: none; transition: border-color .2s, filter .2s, transform .2s; }
.pp-btn:hover { border-color: rgb(22 21 29 / .4); color: #16151d; }
.pp-btn-solid { background: var(--accent); border-color: transparent; color: #fff; box-shadow: 0 10px 24px -12px color-mix(in oklab, var(--accent) 70%, transparent); }
.pp-btn-solid:hover { border-color: transparent; color: #fff; filter: brightness(1.1); transform: translateY(-1px); }
.pp-btn-sm { padding: 8px 16px; }

/* Hero: title on the left, the facts on the right */
.pp-hero { display: grid; gap: 32px; padding-top: 128px; padding-bottom: 40px; align-items: end; }
@media (min-width: 900px) { .pp-hero { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 56px; padding-top: 152px; } }
.pp-kicker { display: flex; align-items: center; gap: 8px; margin: 0 0 18px; font-size: 13px; color: rgb(22 21 29 / .55); }
.pp-kicker a { text-decoration: none; }
.pp-kicker a:hover { color: #16151d; }
.pp-kicker i { width: 8px; height: 8px; border-radius: 50%; margin-right: -4px; }
.pp-kicker i:last-of-type { margin-right: 2px; }
.pp-hero h1 { margin: 0; font-size: clamp(2.4rem, 6.2vw, 4.4rem); line-height: 0.98; font-weight: 600; letter-spacing: -0.035em; text-wrap: balance; }
.pp-lead { margin: 22px 0 0; max-width: 40ch; font-size: clamp(1.1rem, 2vw, 1.3rem); line-height: 1.5; color: rgb(22 21 29 / .65); text-wrap: pretty; }

.pp-facts { margin: 0; padding: 6px 22px; border-radius: 1.5rem; }
.pp-facts div { display: grid; grid-template-columns: 84px 1fr; gap: 12px; padding: 13px 0; border-top: 1px solid rgb(22 21 29 / .07); font-size: 14px; }
.pp-facts div:first-child { border-top: 0; }
.pp-facts dt { color: rgb(22 21 29 / .45); }
.pp-facts dd { margin: 0; color: rgb(22 21 29 / .85); }
.pp-facts a { color: var(--accent); text-decoration: none; }
.pp-facts a:hover { text-decoration: underline; }
.pp-result { color: var(--accent); font-size: 16px; font-weight: 600; line-height: 1.35; }

/* Gallery: a scroll-snap strip (swipeable, works without JS), enhanced by project.js with arrows, thumbs and a lightbox */
.pp-gallery { margin-top: 8px; }
.pp-frame { position: relative; border-radius: 1.5rem; overflow: hidden; }
.pp-track { display: flex; margin: 0; padding: 0; list-style: none; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; }
.pp-track::-webkit-scrollbar { display: none; }
.pp-slide { flex: 0 0 100%; aspect-ratio: 16 / 10; scroll-snap-align: center; display: grid; place-items: center; padding: clamp(10px, 2.5vw, 28px); box-sizing: border-box; }
.pp-slide img { max-width: 100%; max-height: 100%; border-radius: 12px; box-shadow: 0 0 0 1px rgb(22 21 29 / .06), 0 14px 34px -16px rgb(40 30 80 / .4); cursor: zoom-in; }
.pp-nav { position: absolute; top: 50%; translate: 0 -50%; width: 42px; height: 42px; border: 0; border-radius: 50%; background: rgb(255 255 255 / .9); box-shadow: 0 6px 20px -8px rgb(22 21 29 / .4); font: 600 24px/1 system-ui; color: #16151d; cursor: pointer; opacity: 0; transition: opacity .2s, background .2s; }
.pp-frame:hover .pp-nav, .pp-nav:focus-visible { opacity: 1; }
.pp-nav:hover { background: #fff; }
.pp-nav:disabled { opacity: 0 !important; pointer-events: none; }
.pp-gprev { left: 14px; } .pp-gnext { right: 14px; }
@media (hover: none) { .pp-nav { display: none; } }
.pp-count { position: absolute; right: 14px; bottom: 12px; padding: 3px 10px; border-radius: 999px; background: rgb(22 21 29 / .72); color: #fff; font-size: 12px; font-variant-numeric: tabular-nums; }
.pp-count b { font-weight: 600; }
.pp-thumbs { display: flex; gap: 8px; margin: 12px 0 0; padding: 2px; list-style: none; overflow-x: auto; scrollbar-width: none; }
.pp-thumbs a { display: block; width: 92px; aspect-ratio: 16 / 10; border-radius: 10px; overflow: hidden; border: 1px solid rgb(22 21 29 / .1); opacity: .55; transition: opacity .2s, border-color .2s; }
.pp-thumbs a:hover { opacity: .9; }
.pp-thumbs a[aria-current="true"] { opacity: 1; border-color: var(--accent); box-shadow: 0 0 0 2px color-mix(in oklab, var(--accent) 30%, transparent); }
.pp-thumbs img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.pp-logo { display: grid; place-items: center; height: 260px; margin: 8px 0 0; border-radius: 1.5rem; background: #fff; border: 1px solid rgb(22 21 29 / .08); }
.pp-logo img { max-width: 60%; max-height: 70%; object-fit: contain; }

/* z-index 90: above every panel (the highest is 80), below the custom cursor (100) */
.pp-lightbox { position: fixed; inset: 0; z-index: 90; background: rgb(10 10 14 / .92); }
.pp-lightbox[hidden] { display: none; }
html.pp-locked { overflow: hidden; }
.pp-lightbox img { position: absolute; inset: 0; margin: auto; max-width: calc(100vw - 48px); max-height: calc(100vh - 96px); border-radius: 8px; }
.pp-lightbox button { position: absolute; border: 0; background: rgb(255 255 255 / .12); color: #fff; border-radius: 999px; cursor: pointer; font: 500 14px system-ui; padding: 8px 14px; }
.pp-lightbox button:hover { background: rgb(255 255 255 / .22); }
.pp-lb-close { top: 16px; right: 16px; }
.pp-lb-prev, .pp-lb-next { top: 50%; translate: 0 -50%; font-size: 26px !important; padding: 6px 16px !important; }
.pp-lb-prev { left: 16px; } .pp-lb-next { right: 16px; }
.pp-lb-count { position: absolute; bottom: 20px; left: 0; right: 0; text-align: center; color: rgb(255 255 255 / .7); font-size: 13px; }

/* Story: numbered chapters with the heading in a left gutter */
.pp-story { padding-top: 72px; }
.pp-story section { display: grid; gap: 10px; padding: 34px 0; border-top: 1px solid rgb(22 21 29 / .08); }
.pp-story section:first-child { border-top: 0; padding-top: 0; }
@media (min-width: 900px) { .pp-story section { grid-template-columns: 300px minmax(0, 1fr); gap: 56px; } .pp-story h2 { position: sticky; top: 104px; align-self: start; } }
.pp-story h2 { margin: 0; font-size: 1.35rem; font-weight: 600; line-height: 1.25; }
.pp-story h2 span { display: block; margin-bottom: 6px; font-family: var(--font-serif); font-style: italic; font-weight: 400; font-size: 1.1rem; color: var(--accent); letter-spacing: 0; }
.pp-prose { max-width: 66ch; }
.pp-prose p { margin: 0 0 1em; font-size: 1.06rem; color: rgb(22 21 29 / .78); text-wrap: pretty; }
.pp-prose p:last-child { margin-bottom: 0; }
.pp-skills { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.pp-ic { width: 15px; height: 15px; flex: none; }
.pp-ic-line { fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pp-skills li { display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px; border-radius: 999px; background: rgb(255 255 255 / .6); border: 1px solid rgb(22 21 29 / .1); font-size: 14px; color: rgb(22 21 29 / .75); }

/* Talk: built like the home page's contact card, one panel for employers and one for clients */
.pp-cta-wrap { margin-top: 64px; }
.pp-cta { position: relative; overflow: hidden; padding: 28px; border-radius: 2rem; }
@media (min-width: 640px) { .pp-cta { padding: 48px; } }
.pp-blob { position: absolute; right: -6rem; top: -6rem; width: 24rem; height: 24rem; border-radius: 50%; background: var(--accent); opacity: .25; filter: blur(64px); pointer-events: none; }
.pp-cta-head { position: relative; display: flex; align-items: center; gap: 18px; margin-bottom: 28px; }
.pp-cta-head img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; border: 3px solid #fff; box-shadow: 0 10px 26px -12px rgb(22 21 29 / .45); flex: none; }
.pp-cta-head h2 { margin: 0; font-size: clamp(1.7rem, 4vw, 3rem); font-weight: 600; line-height: 1.05; letter-spacing: -0.025em; }
.pp-cta-grid { position: relative; display: grid; gap: 16px; }
@media (min-width: 760px) { .pp-cta-grid { grid-template-columns: 1fr 1fr; } }
.pp-panel { padding: 24px; border-radius: 1rem; border: 1px solid rgb(22 21 29 / .1); background: rgb(255 255 255 / .7); }
.pp-panel h3 { margin: 0 0 6px; font-size: 1.25rem; font-weight: 600; }
.pp-panel p { margin: 0; color: rgb(22 21 29 / .6); }
.pp-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px !important; }

/* More projects */
.pp-more { display: grid; gap: 16px; margin-top: 24px; }
@media (min-width: 760px) { .pp-more { grid-template-columns: 1.4fr 1fr; } }
.pp-more small { display: block; margin-bottom: 8px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: rgb(22 21 29 / .45); }
.pp-next { display: block; padding: 28px; border-radius: 1.5rem; text-decoration: none; transition: transform .3s, box-shadow .3s; }
.pp-next strong { display: block; font-size: clamp(1.4rem, 3vw, 1.9rem); font-weight: 600; line-height: 1.15; }
.pp-arrow { display: inline-block; color: var(--card-accent); transition: transform .3s; }
.pp-next:hover .pp-arrow { transform: translateX(4px); }
.pp-next > span { display: block; margin-top: 10px; color: rgb(22 21 29 / .6); font-size: 15px; }
.pp-related { padding: 28px; border-radius: 1.5rem; }
.pp-related ul { margin: 0; padding: 0; list-style: none; }
.pp-related li { border-top: 1px solid rgb(22 21 29 / .07); }
.pp-related li:first-child { border-top: 0; }
.pp-related li a { display: block; padding: 9px 0; text-decoration: none; font-weight: 500; }
.pp-related li a:hover { color: var(--accent); }
.pp-all { display: inline-block; margin-top: 10px; font-size: 14px; color: var(--accent); text-decoration: none; }

/* Footer: same as the home page */
.pp-foot { display: flex; flex-direction: column; justify-content: space-between; gap: 12px; margin-top: 40px; padding-bottom: 64px; font-size: 14px; color: rgb(22 21 29 / .65); }
@media (min-width: 640px) { .pp-foot { flex-direction: row; } }
.pp-foot nav { display: flex; gap: 20px; }
.pp-foot a { text-decoration: none; }
.pp-foot a:hover { color: #16151d; }

@media (prefers-reduced-motion: reduce) { .pp-track { scroll-behavior: auto; } .pp-btn, .pp-next, .pp-arrow { transition: none; } }

/* Over the dark full-screen view, give the site's cursor a light halo so it stays easy to see */
html.pp-locked .cur-dot, html.pp-locked .cur-ring { filter: drop-shadow(0 0 1.5px #fff) drop-shadow(0 0 4px rgb(255 255 255 / .7)); }
