/* Product Thinking: warm editorial look from Salman's colour reference (velvet red, starlight white, light gold), toned for a professional audience.
   Scoped to body.pt so the rest of the site keeps its navy theme. Tokens are redefined here so shared header, buttons and footer follow. */
body.pt {
  --bg: #f7f3ec;
  --surface: #fffdf9;
  --ink: #23140f;
  --ink-2: #5b4a44;
  --ink-3: #7d6b64;
  --rule: #e6dccd;
  --navy: #5e1712;
  --sapphire: #99261f;
  --gold: #8a6418;
  --gold-soft: #f3e6c8;
  --wash-a: #f6e3dc;
  --wash-b: #f6ead2;
  --red: #99261f;
  --wine: #2a0c09;
  --gold-hi: #e2bd6a;
  --shadow: 0 1px 2px rgba(42, 12, 9, .05), 0 10px 26px -14px rgba(42, 12, 9, .18);
  --shadow-lift: 0 2px 4px rgba(42, 12, 9, .06), 0 22px 44px -18px rgba(94, 23, 18, .32);
  --ease: cubic-bezier(.2, .7, .2, 1);
}
body.pt::before { background: rgba(247, 243, 236, .9); }
.pt .site-head { background: rgba(247, 243, 236, .86); }
.pt .site-foot { background: radial-gradient(40rem 18rem at 85% 0%, rgba(153, 38, 31, .55), transparent 70%), radial-gradient(30rem 16rem at 0% 100%, rgba(226, 189, 106, .22), transparent 70%), var(--wine); color: #f4f0e7; }
.pt .site-foot::before { background: linear-gradient(90deg, transparent, var(--gold-hi), transparent); }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Section rhythm */
.pt-h2 { font-size: var(--fs-xl); letter-spacing: -0.02em; font-weight: 650; }
.pt-sub { color: var(--ink-2); margin-top: 8px; max-width: var(--read); }
.pt-method, .pt-work, .pt-cases, .pt-writing { padding-top: 56px; }

/* Method strip */
.pt-steps { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 1px; background: var(--rule); border: 1px solid var(--rule); border-radius: 18px; overflow: hidden; }
.pt-steps li { display: grid; gap: 4px; padding: 16px 18px; background: var(--surface); color: var(--ink-2); font-size: var(--fs-sm); line-height: 1.5; }
.pt-steps span { color: var(--red); font-size: var(--fs-xs); font-weight: 650; letter-spacing: .12em; font-variant-numeric: tabular-nums; }
.pt-steps b { color: var(--ink); font-size: var(--fs-md); font-weight: 600; }

/* Meta, type labels and skill tags */
.pt-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; color: var(--ink-3); font-size: var(--fs-xs); font-weight: 550; letter-spacing: .02em; }
.pt-kind { padding: 4px 10px; border-radius: 999px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; font-size: 0.6875rem; }
.k-teardown { background: var(--wash-a); color: #7a1d17; }
.k-case { background: var(--wash-b); color: #6b4c10; }
.k-prototype { background: #e6efe8; color: #24543a; }
.pt-skills { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.pt-skills li { font-size: var(--fs-xs); color: var(--ink-2); padding: 3px 9px; border-radius: 6px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--rule); }

/* Links and buttons, one family */
.pt-link { font: inherit; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 10px 18px; border-radius: 999px; font-size: var(--fs-sm); font-weight: 600; transition: gap .25s var(--ease), background .2s, color .2s; }
.pt-link i { font-style: normal; }
.pt-link:hover { gap: 12px; }
.pt-link-1 { background: var(--red); color: #fff; border: 1px solid var(--red); }
.pt-link-1:hover { background: #7a1d17; }
.pt-link-2 { background: transparent; color: var(--red); border: 1px solid #d9c5b3; }
.pt-link-2:hover { background: var(--wash-a); }

/* Case notes */
.pt-case { margin-top: 24px; padding: 22px; border-radius: 24px; background: var(--surface); border: 1px solid var(--rule); box-shadow: var(--shadow); scroll-margin-top: 88px; }
.pt-case-h { display: grid; gap: 12px; padding-bottom: 20px; border-bottom: 1px solid var(--rule); }
.pt-case-h h3 { font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.125rem); letter-spacing: -0.025em; line-height: 1.15; font-weight: 650; }
.pt-q { font-size: var(--fs-md); line-height: 1.6; color: var(--ink-2); max-width: 46rem; }
.pt-case-a { display: flex; flex-wrap: wrap; gap: 8px; }
.pt-tldr { margin: 0; display: grid; gap: 0; }
.pt-tldr > div { display: grid; gap: 6px; padding: 18px 0; border-bottom: 1px solid var(--rule); }
.pt-tldr dt { display: flex; align-items: center; gap: 10px; font-size: var(--fs-xs); font-weight: 650; letter-spacing: .12em; text-transform: uppercase; color: var(--red); }
.pt-tldr .n { color: var(--ink-3); font-variant-numeric: tabular-nums; }
.pt-tldr dd { margin: 0; line-height: 1.6; }
.pt-nums { list-style: none; margin: 20px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.pt-nums li { display: grid; gap: 4px; align-content: start; padding: 14px; border-radius: 14px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--rule); min-width: 0; }
.pt-nums b { font-size: 1.375rem; letter-spacing: -0.02em; color: var(--ink); line-height: 1.15; font-variant-numeric: tabular-nums; }
.pt-nums span { font-size: var(--fs-xs); color: var(--ink-2); line-height: 1.45; }
.pt-nums em { font-style: normal; font-size: 0.6875rem; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); }

/* Deep dive */
.pt-deep { margin-top: 20px; border-radius: 16px; border: 1px solid var(--rule); background: var(--bg); }
.pt-deep summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding: 14px 18px; font-weight: 600; color: var(--ink); border-radius: 16px; }
.pt-deep summary::-webkit-details-marker { display: none; }
.pt-deep summary:hover { color: var(--red); }
.pt-deep summary:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.pt-deep summary i { position: relative; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--surface); box-shadow: inset 0 0 0 1px var(--rule); }
.pt-deep summary i::before, .pt-deep summary i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 1.5px; background: currentColor; transform: translate(-50%, -50%); transition: transform .3s var(--ease); }
.pt-deep summary i::after { transform: translate(-50%, -50%) rotate(90deg); }
.pt-deep[open] summary i::after { transform: translate(-50%, -50%) rotate(0deg); }
.pt-deep-b { display: grid; gap: 28px; padding: 6px 18px 22px; animation: pt-open .45s var(--ease); }
@keyframes pt-open { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.pt-deep h4 { font-size: var(--fs-lg); letter-spacing: -0.01em; margin: 0 0 12px; }
.pt-p { color: var(--ink-2); line-height: 1.65; max-width: 46rem; }
.pt-p + .pt-p, .pt-tbl + .pt-p { margin-top: 12px; }
.pt-p b { color: var(--ink); }
.pt-fp { margin: 0 0 16px; display: grid; gap: 10px; }
.pt-fp > div { padding: 14px 16px; border-radius: 12px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--rule); border-left: 3px solid var(--red); }
.pt-fp dt { font-size: var(--fs-xs); font-weight: 650; letter-spacing: .1em; text-transform: uppercase; color: var(--red); margin-bottom: 4px; }
.pt-fp dd { margin: 0; line-height: 1.6; }
.pt-tbl { overflow-x: auto; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--rule); background: var(--surface); }
.pt-tbl:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.pt-tbl table { width: 100%; min-width: 34rem; border-collapse: collapse; font-size: var(--fs-sm); }
.pt-tbl caption { text-align: left; padding: 12px 14px 4px; font-size: var(--fs-xs); color: var(--ink-3); font-weight: 600; letter-spacing: .04em; }
.pt-tbl th, .pt-tbl td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--rule); vertical-align: top; }
.pt-tbl th { font-size: var(--fs-xs); color: var(--ink-2); font-weight: 650; }
.pt-tbl tr:last-child td { border-bottom: 0; }
.pt-tbl tr.pick td { background: #fbf1ec; font-weight: 600; color: var(--ink); }
.v { display: inline-block; padding: 2px 8px; border-radius: 6px; font-size: var(--fs-xs); font-weight: 650; }
.v-no { background: #f6e3dc; color: #7a1d17; }
.v-part { background: #f3e6c8; color: #6b4c10; }
.v-na { background: #ece8e3; color: #4f4540; }
.pt-split, .pt-opts { display: grid; gap: 10px; margin-top: 14px; }
.pt-note, .pt-opts > div { padding: 14px 16px; border-radius: 12px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--rule); line-height: 1.6; }
.pt-note-warn { background: #fbf6ea; }
.pt-opts .pick { box-shadow: inset 0 0 0 2px var(--red); }
.pt-lbl { font-size: var(--fs-xs); font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); margin-bottom: 4px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.pt-tag { padding: 2px 8px; border-radius: 999px; background: var(--red); color: #fff; letter-spacing: .06em; }
.pt-bets { margin: 0; padding-left: 1.25rem; display: grid; gap: 10px; color: var(--ink-2); line-height: 1.6; }
.pt-bets b { color: var(--ink); }





/* Slides dialog */
.pt-slides { width: min(1100px, calc(100vw - 24px)); max-width: none; padding: 0; border: 0; border-radius: 18px; background: var(--wine); color: #f4f0e7; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .5); }
.pt-slides::backdrop { background: rgba(26, 8, 6, .72); backdrop-filter: blur(3px); }
.pt-slides[open] { animation: pt-pop .35s var(--ease); }
@keyframes pt-pop { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
.pt-slides-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 10px 10px 18px; font-weight: 600; font-size: var(--fs-sm); }
.pt-x { font: inherit; font-size: 1.5rem; line-height: 1; width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer; background: rgba(244, 240, 231, .1); color: #f4f0e7; }
.pt-x:hover { background: rgba(244, 240, 231, .2); }
.pt-x:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 2px; }
.pt-slides-b { aspect-ratio: 16 / 9; background: #1a0806; }
.pt-slides-b iframe { width: 100%; height: 100%; border: 0; display: block; }


/* ---- v2: layout after Salman's Loom reference (8am showcase) ---- */

/* Hero: the statement card on the dark band */
.pt-hero { position: relative; background: var(--wine); color: #f4f0e7; --p: 0; }
.pt-stage { position: relative; overflow: hidden; isolation: isolate; display: grid; place-items: center; padding: 40px var(--gut) 48px; }
.pt-kick { color: var(--red); font-size: var(--fs-xs); font-weight: 650; letter-spacing: .16em; text-transform: uppercase; }
.pt-stage::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(40rem 26rem at 50% 45%, rgba(153, 38, 31, .55), transparent 70%), radial-gradient(30rem 20rem at 0% 100%, rgba(226, 189, 106, .12), transparent 70%); }
.pt-statement { width: min(100%, 46rem); display: grid; gap: 16px; padding: 28px 22px; border-radius: 24px; color: var(--ink); background: radial-gradient(28rem 16rem at 100% 0%, #fbe9df, transparent 70%), radial-gradient(24rem 14rem at 0% 100%, #f6ead2, transparent 70%), #fbf8f2; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .55); }
.pt-statement h1 { font-size: clamp(1.75rem, 1.1rem + 2.6vw, 3rem); line-height: 1.08; letter-spacing: -0.035em; font-weight: 650; }
.pt-statement h1 span { color: var(--red); }
.pt-lede { color: var(--ink-2); line-height: 1.65; }
.pt-cta { justify-self: start; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 12px 22px; border-radius: 999px; background: var(--red); color: #fff; font-size: var(--fs-xs); font-weight: 650; letter-spacing: .14em; text-transform: uppercase; transition: gap .25s var(--ease), background .25s; }
.pt-cta i { font-style: normal; font-size: 1rem; letter-spacing: 0; }
.pt-cta:hover { gap: 14px; background: #7a1d17; }

/* Deck: five cards. Phones get a swipeable row; wide screens fan them out as you scroll. */
.pt-deck { --p: 0; padding-top: 56px; }
.pt-deck-h { margin-bottom: 20px; }
.pt-sub { color: var(--ink-2); margin-top: 8px; max-width: var(--read); }
.pt-cards { list-style: none; margin: 0; padding: 4px var(--gut) 24px; display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.pt-cards::-webkit-scrollbar { display: none; }
.pt-card { flex: 0 0 min(78vw, 280px); scroll-snap-align: center; }
.pt-card-in { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; gap: 10px; aspect-ratio: 3 / 4; padding: 20px; border-radius: 18px; color: #fff; box-shadow: 0 1px 2px rgba(42, 12, 9, .1), 0 24px 40px -20px rgba(42, 12, 9, .45), inset 0 0 0 1px rgba(255, 255, 255, .18); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.pt-card-in::after { content: ""; position: absolute; inset: 10px; z-index: -1; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .22); pointer-events: none; }
.pt-card-in:hover { transform: translateY(-6px); box-shadow: 0 2px 4px rgba(42, 12, 9, .12), 0 34px 54px -22px rgba(42, 12, 9, .55), inset 0 0 0 1px rgba(255, 255, 255, .28); }
.pt-card-in:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; border-radius: 18px; }
.pt-card-k { font-size: 0.6875rem; font-weight: 650; letter-spacing: .12em; text-transform: uppercase; opacity: .9; }
.pt-card-t { font-size: 1.375rem; font-weight: 650; letter-spacing: -0.02em; line-height: 1.15; }
.pt-card-p { font-size: var(--fs-sm); line-height: 1.5; opacity: .92; }
.pt-card-go { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; font-size: var(--fs-xs); font-weight: 650; letter-spacing: .1em; text-transform: uppercase; }
.pt-card-go i { font-style: normal; transition: transform .25s var(--ease); }
.pt-card-in:hover .pt-card-go i { transform: translateX(4px); }
/* Tones from the colour reference; text contrast checked against the darkest stop under it */
.t-red .pt-card-in { background: linear-gradient(160deg, #99261f 0%, #7a1d17 55%, #5e1712 100%); }
.t-wine .pt-card-in { background: linear-gradient(160deg, #3a110d 0%, #2a0c09 60%, #4a1712 100%); }
.t-gold .pt-card-in { color: var(--wine); background: linear-gradient(160deg, #f6dfa6 0%, #e9c27a 55%, #d9a85a 100%); }
.t-gold .pt-card-in::after { border-color: rgba(42, 12, 9, .18); }
.t-sand .pt-card-in { color: var(--wine); background: linear-gradient(160deg, #fbf6ee 0%, #f2e6d3 60%, #e8d6bd 100%); }
.t-sand .pt-card-in::after, .t-rose .pt-card-in::after { border-color: rgba(42, 12, 9, .14); }
.t-rose .pt-card-in { color: var(--wine); background: linear-gradient(160deg, #f9e4dc 0%, #f1c9bb 60%, #e6ad9b 100%); }
/* Line motifs, like the engraved icons on the reference cards */
.pt-card-in::before { content: ""; position: absolute; right: -30%; bottom: -18%; width: 90%; aspect-ratio: 1; z-index: -1; opacity: .22; pointer-events: none; }
.m-rings .pt-card-in::before { border-radius: 50%; background: repeating-radial-gradient(circle, transparent 0 14px, currentColor 14px 15px); }
.m-lines .pt-card-in::before { background: repeating-linear-gradient(135deg, transparent 0 12px, currentColor 12px 13px); border-radius: 30%; }
.m-grid .pt-card-in::before { background: linear-gradient(currentColor 1px, transparent 1px) 0 0 / 18px 18px, linear-gradient(90deg, currentColor 1px, transparent 1px) 0 0 / 18px 18px; border-radius: 24px; transform: rotate(-12deg); }

/* Case viewer: pills on the right pick which case fills the panel, like the reference's integrations block */
.pt-viewer { padding-top: 56px; scroll-margin-top: 72px; }
.pt-tabs-wrap { margin-top: 20px; display: grid; gap: 12px; }
.pt-tabs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.pt-tabs::-webkit-scrollbar { display: none; }
.pt-tab { font: inherit; cursor: pointer; flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--rule); background: var(--surface); color: var(--ink-2); font-size: var(--fs-sm); font-weight: 600; transition: background .25s, color .25s, border-color .25s, box-shadow .25s; }
.pt-tab:hover { border-color: var(--red); color: var(--red); }
.pt-tab:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.pt-tab[aria-selected="true"] { background: var(--red); border-color: var(--red); color: #fff; }
.pt-tab-k, .pt-tab-n { display: none; }
.pt-panel { outline: none; }
.pt-panel:focus-visible .pt-case { box-shadow: 0 0 0 2px var(--red), var(--shadow); }
.pt-panel:not([hidden]) .pt-case { animation: pt-in .5s var(--ease); }
@keyframes pt-in { from { opacity: 0; transform: translateX(-14px); } to { opacity: 1; transform: none; } }
.pt-case { margin: 0; scroll-margin-top: 88px; }
.pt-pad { margin-top: 18px; }
.pt-case-s .pt-skills { margin-top: 2px; }

@media (min-width: 640px) {
  .pt-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pt-nums { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .pt-split { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pt-opts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pt-tldr { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; }
}
@media (min-width: 760px) {
  .pt-method, .pt-viewer { padding-top: 88px; }
  .pt-case { padding: 36px; }
  .pt-deep summary { padding: 16px 22px; }
  .pt-deep-b { padding: 6px 22px 28px; }
  .pt-lede { font-size: var(--fs-lg); }
  .pt-statement { padding: 48px; }
  .pt-stage { padding-block: 72px 80px; }
}

/* Wide screens with motion allowed: the scroll-driven version */
@media (min-width: 1024px) and (prefers-reduced-motion: no-preference) {
  .js .pt-deck { height: 240vh; padding-top: 0; }
  .js .pt-deck-stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: grid; grid-template-rows: auto 1fr; padding-top: 96px; }
  .js .pt-deck-h { text-align: center; justify-items: center; display: grid; }
  .js .pt-cards { position: relative; overflow: visible; padding: 0; display: block; }
  .js .pt-card { position: absolute; left: 50%; top: 46%; width: var(--cw, 220px); will-change: transform; }
  .js .pt-card-in { padding: 18px; }
  .js .pt-card-t { font-size: 1.1875rem; }
  .js .pt-card-p { font-size: 0.8125rem; }
}
@media (min-width: 1080px) {
  .pt-steps { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .pt-tabs-wrap { grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 12px; }
  .pt-tabs { order: 2; flex-direction: row; gap: 10px; overflow: visible; position: sticky; top: 88px; }
  .pt-tab { flex-direction: column; justify-content: space-between; align-items: center; width: 64px; min-height: 0; height: 520px; padding: 22px 0 16px; border-radius: 999px; gap: 12px; box-shadow: var(--shadow); }
  .pt-tab-t, .pt-tab-k { writing-mode: vertical-rl; transform: rotate(180deg); white-space: nowrap; }
  .pt-tab-t { font-size: var(--fs-sm); font-weight: 650; color: inherit; flex: 1; text-align: left; }
  .pt-tab-k { display: block; font-size: 0.6875rem; letter-spacing: .1em; text-transform: uppercase; opacity: .75; }
  .pt-tab-n { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; font-size: var(--fs-xs); font-variant-numeric: tabular-nums; background: var(--bg); color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--rule); }
  .pt-tab[aria-selected="true"] .pt-tab-n { background: rgba(255, 255, 255, .16); color: #fff; box-shadow: none; }
  .pt-panels { order: 1; min-width: 0; }
  .pt-case-s { min-height: 520px; display: grid; align-content: start; }
}
@media (prefers-reduced-motion: reduce) {
  .pt-card-in, .pt-link, .pt-cta, .pt-tab { transition: none; }
  .pt-deep-b, .pt-slides[open], .pt-panel:not([hidden]) .pt-case { animation: none; }
}
.pt-nums-2 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; max-width: 28rem; }
/* Cards keep a 3:4 shape but grow if the text needs more room */
.pt-card-in { aspect-ratio: auto; min-height: calc(min(78vw, 280px) * 4 / 3); }
.js .pt-card .pt-card-in { min-height: calc(var(--cw, 220px) * 4 / 3); }
.pt-card-p { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 6; overflow: hidden; }
