/* ============================================
   concept.zone — product pages, portfolio, blog index.
   Loaded after site.css; same tokens, same rules.
   ============================================ */

.z-crumb { padding-top: 1.5rem; font-size: .95rem; color: var(--muted); }
.z-crumb a { text-decoration: none; }
.z-crumb a:hover { text-decoration: underline; }
.z-cat { display: inline-block; font-weight: 700; color: var(--blue); font-size: 1.05rem; margin-bottom: .75rem; }

/* ---- product hero ---- */
.pp-hero { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: center; padding-top: clamp(1.5rem, 4vw, 3.5rem); padding-bottom: clamp(2rem, 5vw, 4rem); }
.pp-hero h1 { font-weight: 800; font-size: clamp(3.2rem, 9vw, 8.5rem); line-height: .88; letter-spacing: -0.05em; margin: 0 0 1.25rem; overflow-wrap: anywhere; }
.pp-tag { font-weight: 700; font-size: clamp(1.3rem, 2.1vw, 1.9rem); line-height: 1.2; letter-spacing: -0.02em; max-width: 26ch; margin: 0 0 1.1rem; }
.pp-act { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.75rem; }
.pp-art { position: relative; aspect-ratio: 4 / 3; border: 3px solid var(--ink); overflow: hidden; isolation: isolate; }
.pp-art .strip-visual { position: absolute; inset: 0; height: 100% !important; transform: scale(1.65); transform-origin: center; }

/* ---- device stage ---- */
.pp-stage { background: var(--ink); padding: clamp(2rem, 6vw, 5rem) 0 0; overflow: hidden; }
.pp-stage-in { position: relative; max-width: 1180px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 48px); }
.pp-browser { background: #1b1b1b; border: 1px solid #333; border-bottom: 0; box-shadow: 0 40px 120px -40px rgba(31, 47, 227, .55); }
.pp-browser-bar { display: flex; align-items: center; gap: .5rem; height: 40px; padding: 0 14px; border-bottom: 1px solid #333; }
.pp-browser-bar i { width: 11px; height: 11px; border-radius: 50%; background: #444; }
.pp-browser-bar span { margin-left: 1rem; flex: 1; max-width: 420px; background: #2a2a2a; color: #bbb; font-size: .85rem; padding: .3rem .8rem; }
.pp-browser img { width: 100%; height: auto; display: block; }
.pp-phone { position: absolute; right: clamp(0px, 2vw, 32px); bottom: -2px; width: clamp(150px, 20vw, 250px); border: 9px solid #0a0a0a; border-bottom-width: 0; border-radius: 34px 34px 0 0; overflow: hidden; background: #000; box-shadow: -24px 0 60px -20px rgba(0,0,0,.6); outline: 1px solid #333; }
.pp-phone img { width: 100%; height: auto; display: block; aspect-ratio: 390 / 600; object-fit: cover; object-position: top; }

/* ---- facts strip ---- */
.pp-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-bottom: 3px solid var(--ink); }
.pp-facts div { padding: 1.25rem 1.25rem 1.4rem 0; border-right: 1px solid var(--rule); }
.pp-facts div + div { padding-left: 1.25rem; }
.pp-facts div:last-child { border-right: 0; }
.pp-facts dt { font-size: .9rem; color: var(--muted); margin-bottom: .3rem; }
.pp-facts dd { margin: 0; font-weight: 700; font-size: 1.1rem; line-height: 1.3; }
.pp-facts dd.live { color: var(--blue); }
.pp-facts dd.live::before { content: ""; display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--blue); margin-right: .5rem; vertical-align: 1px; }

/* ---- problem ---- */
.pp-problem { font-weight: 600; font-size: clamp(1.25rem, 1.9vw, 1.7rem); line-height: 1.3; letter-spacing: -0.015em; max-width: 40ch; margin: 0; text-wrap: balance; }
.pp-problem-sub { margin-top: 1.5rem; }

/* ---- built list ---- */
.pp-built { counter-reset: b; border-top: 3px solid var(--ink); }
.pp-built li { counter-increment: b; display: grid; grid-template-columns: 4rem 1fr; gap: 1rem; padding: 1.1rem 0; border-bottom: 1px solid var(--rule); font-size: 1.15rem; align-items: baseline; list-style: none; }
.pp-built li::before { content: counter(b, decimal-leading-zero); font-weight: 800; color: var(--blue); font-size: 1.1rem; }
.pp-built li:last-child { border-bottom: 3px solid var(--ink); }
ul.pp-built { padding: 0; margin: 0; }

/* ---- features ---- */
.pp-feat { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 3px solid var(--ink); }
.pp-feat div { padding: 1.5rem 1.5rem 2rem 0; border-bottom: 1px solid var(--rule); }
.pp-feat div:not(:nth-child(3n+1)) { padding-left: 1.5rem; border-left: 1px solid var(--rule); }
.pp-feat h3 { font-weight: 800; font-size: 1.35rem; letter-spacing: -0.025em; line-height: 1.1; margin: 0 0 .6rem; }
.pp-feat p { margin: 0; color: var(--muted); font-size: 1.02rem; }

/* ---- numbers ---- */
.pp-nums { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0; border-top: 3px solid var(--ink); border-bottom: 3px solid var(--ink); }
.pp-nums div { padding: 1.75rem 1.5rem 1.75rem 0; }
.pp-nums div + div { padding-left: 1.5rem; border-left: 1px solid var(--rule); }
.pp-nums b { display: block; font-weight: 800; font-size: clamp(2.6rem, 5vw, 4.5rem); letter-spacing: -0.05em; line-height: .95; color: var(--blue); }
.pp-nums span { display: block; margin-top: .5rem; font-weight: 600; }

/* ---- stack ---- */
.pp-stack { display: flex; flex-wrap: wrap; gap: .6rem; }
.pp-stack span { border: 2px solid var(--ink); padding: .45rem .8rem; font-weight: 700; font-size: .98rem; }

/* ---- next / prev ---- */
.pp-next { display: grid; grid-template-columns: 1fr 1fr; border-top: 3px solid var(--ink); border-bottom: 3px solid var(--ink); }
.pp-next a { display: block; padding: 1.75rem 0; text-decoration: none; }
.pp-next a + a { text-align: right; border-left: 1px solid var(--rule); padding-left: 1.5rem; }
.pp-next small { display: block; color: var(--muted); font-size: .95rem; margin-bottom: .35rem; }
.pp-next b { font-weight: 800; font-size: clamp(1.6rem, 3vw, 2.6rem); letter-spacing: -0.04em; line-height: 1; }
.pp-next a:hover b { color: var(--blue); }

/* ---- portfolio index ---- */
.pf-head { padding: clamp(2rem, 5vw, 4.5rem) 0 clamp(1.5rem, 3vw, 2.5rem); display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 2rem; align-items: end; }
.pf-head h1 { font-weight: 800; font-size: clamp(3rem, 8vw, 8rem); line-height: .88; letter-spacing: -0.05em; margin: 0; }
.pf-head p { margin: 0; }
.pf-head.bl-head h1 { font-size: clamp(2.6rem, 5.6vw, 5.6rem); line-height: .92; }
.pf-filter { display: flex; flex-wrap: wrap; gap: .5rem; padding: 1rem 0; border-top: 3px solid var(--ink); border-bottom: 1px solid var(--rule); }
.pf-filter button { font: inherit; font-weight: 700; font-size: .95rem; background: transparent; border: 2px solid var(--ink); padding: .45rem .85rem; cursor: pointer; }
.pf-filter button[aria-pressed="true"], .pf-filter button:hover { background: var(--ink); color: #fff; }
.pf-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.5rem, 3vw, 3rem) clamp(1.5rem, 3vw, 2.5rem); padding: clamp(1.5rem, 3vw, 2.5rem) 0 clamp(3rem, 6vw, 6rem); }
.pf-card { display: block; text-decoration: none; }
.pf-card[hidden] { display: none; }
.pf-shot { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--ink); border: 3px solid var(--ink); }
.pf-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.pf-card:hover .pf-shot img { transform: scale(1.04); }
.pf-shot .pf-host { position: absolute; left: 0; bottom: 0; background: var(--ink); color: #fff; font-weight: 600; font-size: .85rem; padding: .35rem .7rem; }
.pf-meta { display: grid; grid-template-columns: 1fr auto; gap: .25rem 1rem; padding-top: 1rem; align-items: baseline; }
.pf-meta h2 { font-weight: 800; font-size: clamp(1.6rem, 2.6vw, 2.3rem); letter-spacing: -0.04em; line-height: 1; margin: 0; }
.pf-meta .z-cat { margin: 0; font-size: .95rem; text-align: right; }
.pf-meta p { grid-column: 1 / -1; margin: .3rem 0 0; color: var(--muted); font-size: 1.05rem; max-width: 52ch; }
.pf-card:hover h2 { color: var(--blue); }
.pf-card.wide { grid-column: 1 / -1; }
.pf-card.wide .pf-shot { aspect-ratio: 21 / 9; }

/* ---- blog index ---- */
.bl-feature { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(1.5rem, 3vw, 3rem); align-items: center; text-decoration: none; padding: clamp(1.5rem, 3vw, 2.5rem) 0; border-top: 3px solid var(--ink); border-bottom: 1px solid var(--rule); }
.bl-feature img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.bl-feature h2 { font-weight: 800; font-size: clamp(1.9rem, 3.2vw, 3rem); line-height: .95; letter-spacing: -0.04em; margin: .4rem 0 1rem; }
.bl-feature:hover h2 { color: var(--blue); }
.bl-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 3vw, 2.5rem); padding: clamp(1.5rem, 3vw, 2.5rem) 0 clamp(3rem, 6vw, 5rem); }
.bl-card { display: block; text-decoration: none; }
.bl-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border: 3px solid var(--ink); transition: filter .2s; }
.bl-card:hover img { filter: saturate(1.2) contrast(1.05); }
.bl-card h3 { font-weight: 800; font-size: 1.4rem; line-height: 1.08; letter-spacing: -0.03em; margin: .9rem 0 .5rem; }
.bl-card:hover h3 { color: var(--blue); }
.bl-card p, .bl-feature p { margin: 0; color: var(--muted); font-size: 1rem; }
.bl-date { font-size: .9rem; color: var(--muted); font-weight: 600; }

/* ---- blog post cover (posts still use styles.css layout) ---- */
.post-cover { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; margin: 1.5rem 0 2rem; display: block; }

@media (max-width: 1000px) {
  .pp-hero { grid-template-columns: minmax(0, 1fr); }
  .pp-art { max-width: 560px; }
  .pp-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pp-facts div:nth-child(2) { border-right: 0; }
  .pp-facts div:nth-child(3) { padding-left: 0; border-top: 1px solid var(--rule); }
  .pp-facts div:nth-child(4) { border-top: 1px solid var(--rule); }
  .pp-feat { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pp-feat div:not(:nth-child(3n+1)) { padding-left: 0; border-left: 0; }
  .pp-feat div:nth-child(even) { padding-left: 1.5rem; border-left: 1px solid var(--rule); }
  .pf-head, .bl-feature { grid-template-columns: minmax(0, 1fr); }
  .bl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .pp-feat, .pf-grid, .bl-grid { grid-template-columns: minmax(0, 1fr); }
  .pp-feat div:nth-child(even) { padding-left: 0; border-left: 0; }
  .pp-phone { width: 120px; border-width: 6px; border-radius: 20px 20px 0 0; }
  .pp-built li { grid-template-columns: 2.6rem 1fr; font-size: 1.05rem; }
  .pp-next { grid-template-columns: 1fr; }
  .pp-next a + a { text-align: left; border-left: 0; padding-left: 0; border-top: 1px solid var(--rule); }
  .pf-card.wide .pf-shot { aspect-ratio: 16 / 10; }
  .pf-meta { grid-template-columns: 1fr; }
  .pf-meta .z-cat { text-align: left; grid-row: 1; }
}

/* ---- blog posts on the new masthead (old .blog-post layout reserved 8rem for a fixed nav) ---- */
.blog-post { padding-top: clamp(1.5rem, 4vw, 3rem); }
.blog-post-header h1 { font-weight: 800; letter-spacing: -0.035em; line-height: 1.02; font-size: clamp(2.2rem, 5vw, 3.6rem); }
.blog-post-header time { color: var(--muted); }
