/* One type scale for the personalized App Store cards.
   The site's shared font stack uses native Apple type, with Pretendard elsewhere. */
.pj-story:is(.pj-story--nuvio, .pj-story--intume, .pj-story--galpang, .pj-story--loam) {
  --pj-ink: #111;
}
.pj-story:is(.pj-story--nuvio, .pj-story--intume, .pj-story--galpang, .pj-story--loam) .pj-story-text {
  gap: 12px;
}
.pj-story:is(.pj-story--nuvio, .pj-story--intume, .pj-story--galpang, .pj-story--loam) .pj-story-title {
  font-size: clamp(26px, 2.3vw, 32px);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -.035em;
}
.pj-story:is(.pj-story--nuvio, .pj-story--intume, .pj-story--galpang, .pj-story--loam) .pj-story-title > span {
  display: block;
}
.pj-story:is(.pj-story--nuvio, .pj-story--intume, .pj-story--galpang, .pj-story--loam) .pj-eyebrow {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: .01em;
  text-transform: none;
  opacity: .9;
}
@media (max-width: 640px) {
  .pj-story:is(.pj-story--nuvio, .pj-story--intume, .pj-story--galpang, .pj-story--loam) .pj-story-title {
    font-size: clamp(23px, 6.3vw, 30px);
  }
}

/* Shared frosted app strip, matching the approved INTUME card. */
.pj-story:is(.pj-story--nuvio, .pj-story--intume, .pj-story--galpang, .pj-story--loam) .pj-strip {
  min-height: 72px;
  background: rgb(255 255 255 / 84%);
  z-index: 3;
}
:root[data-theme="dark"] .pj-story:is(.pj-story--nuvio, .pj-story--intume, .pj-story--galpang, .pj-story--loam) .pj-strip {
  background: rgb(30 43 53 / 88%);
}

/* NUVIO's approved project card. The captured Projects stylesheet stays intact. */
.pj-story--nuvio {
  --pj-bg: #ffd0a6;
  container-type: inline-size;
  scroll-margin-top: 100px;
}

.pj-story--nuvio .pj-story-text {
  position: absolute;
  top: 32px;
  left: 32px;
  width: 41%;
  max-width: none;
  padding: 0;
}

.pj-story--nuvio .pj-story-title {
  word-break: keep-all;
  text-wrap: balance;
}

.pj-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 12px;
  margin: 4px 0 0;
  color: var(--pj-meta-ink, #51331e);
  font-size: 14px;
  line-height: 1.45;
}

.pj-card-meta strong + strong {
  border-inline-start: 1px solid rgb(81 51 30 / 38%);
  padding-inline-start: 12px;
}

.nuvio-browser {
  position: absolute;
  top: 32px;
  right: 28px;
  bottom: 94px;
  width: 50%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 70%);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 12px 24px -8px rgb(88 43 11 / 30%);
  transition: transform .3s ease;
}

.pj-story--nuvio:hover .nuvio-browser { transform: translateY(-3px); }

.nuvio-browser-bar {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 12px;
  height: 30px;
  padding: 0 10px;
  background: #eff0f3;
  color: #53565d;
}

.nuvio-browser-lights { display: flex; flex-shrink: 0; gap: 4px; }
.nuvio-browser-lights i { width: 7px; height: 7px; border-radius: 50%; background: #ff5f57; }
.nuvio-browser-lights i:nth-child(2) { background: #febc2e; }
.nuvio-browser-lights i:nth-child(3) { background: #28c840; }
.nuvio-browser-nav { display: flex; gap: 5px; }
.nuvio-browser-bar svg,
.nuvio-story-visit svg { width: 13px; height: 13px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.nuvio-browser-nav svg + svg { transform: rotate(180deg); }
.nuvio-browser-address { display: flex; align-items: center; justify-content: center; gap: 4px; position: relative; flex: 1; height: 20px; margin-right: 12%; border-radius: 5px; background: #e3e5e9; color: #46494f; font-size: 10px; line-height: 1; font-weight: 400; letter-spacing: 0; }
.nuvio-browser-address > svg { width: 10px; height: 10px; }
.nuvio-browser-address > svg:last-child { position: absolute; right: 5px; }
.nuvio-browser-screen { display: block; flex: 1; min-height: 0; width: 100%; height: 0; object-fit: cover; object-position: center; background: #fff; }

.pj-story--nuvio .nuvio-story-icon { --pj-icon-bg: #ff701e; }
.pj-story--nuvio .nuvio-story-icon img { max-width: none; max-height: none; width: 100%; height: 100%; object-fit: contain; }
.pj-story--nuvio .nuvio-story-visit { display: inline-flex; align-items: center; gap: 4px; text-transform: none; letter-spacing: 0; }

@container (max-width: 740px) {
  .pj-story--nuvio .pj-story-text { top: 24px; left: 24px; }
  .nuvio-browser { top: 24px; right: 24px; width: 49%; }
}

@container (min-width: 1040px) {
  .nuvio-browser-screen { object-fit: contain; }
}

@media (max-width: 640px) {
  .pj-story--nuvio { min-height: 0; }
  .pj-story--nuvio .pj-story-text { position: relative; top: auto; left: auto; width: 100%; padding: 24px 24px 20px; }
  .nuvio-browser { position: relative; top: auto; right: auto; bottom: auto; width: calc(100% - 40px); margin: 0 20px 22px; }
  .nuvio-browser-screen { flex: none; height: auto; aspect-ratio: 1.4; }
  .pj-story--nuvio .pj-strip { position: relative; margin-top: auto; gap: 10px; padding: 14px 16px; }
  .pj-story--nuvio .pj-strip-text span { white-space: normal; font-size: 12px; line-height: 1.35; }
  .pj-story--nuvio .nuvio-story-visit { padding: 7px 10px; font-size: 12px; }
  .nuvio-browser-nav { display: none; }
  .nuvio-browser-address { margin-right: 10%; }
}

@media (prefers-reduced-motion: reduce) {
  .pj-story--nuvio, .nuvio-browser { transition: none; }
  .pj-story--nuvio:hover, .pj-story--nuvio:hover .nuvio-browser { transform: none; }
}

/* Signal Blue: INTUME BRAND GUIDE, Brand Colors (page 6). */
.pj-story--intume { --pj-bg: #3dbffb; --pj-meta-ink: #0c2d40; container-type: inline-size; scroll-margin-top: 100px; }
.pj-story--intume .pj-story-text { padding: 32px 32px 20px; flex-shrink: 0; }
.pj-story--intume .pj-story-title {
  word-break: keep-all;
  text-wrap: balance;
}
.pj-story--intume .pj-strip { position: relative; }
.intume-screen-scene {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  pointer-events: none;
}
.intume-screen {
  position: absolute;
  left: 55%;
  top: 8%;
  width: min(29%, 116px);
  display: block;
  aspect-ratio: .63;
  overflow: hidden;
  border: 5px solid #f5f5f5;
  border-radius: 18px;
  background: #f5f5f5;
  box-shadow: 0 16px 22px -10px rgb(0 42 68 / 40%), 0 2px 3px rgb(0 42 68 / 16%);
  transform-origin: center top;
  transform: translateX(-50%) rotate(22deg) translate(var(--screen-x, 0%), var(--screen-y, 0%));
  transition: translate .45s ease;
}
.intume-screen img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.intume-screen--home { --screen-x: calc(-100% - 8px); --screen-y: 39%; }
.intume-screen--events { --screen-x: calc(100% + 8px); --screen-y: 16%; }
.intume-screen--coffee { --screen-y: calc(100% + 8px); }
/* The original request capture includes a narrow dimmed page beside the panel. */
.intume-screen--coffee img { width: 114%; max-width: none; transform: translateX(-12%); }
.pj-story--intume:hover .intume-screen { translate: 0 -4px; }
.intume-story-icon { --pj-icon-bg: #fff; }
.intume-story-icon img { max-width: none; max-height: none; width: 100%; height: 100%; object-fit: contain; }
.pj-story--intume .pj-get { text-transform: none; letter-spacing: 0; }
@media (min-width: 641px) and (max-width: 1180px) {
  .pj-story--intume .pj-story-text { padding: 24px 24px 16px; }
  .intume-screen { width: min(28%, 98px); }
}
@media (max-width: 640px) {
  .pj-story--intume { min-height: 492px; }
  .pj-story--intume .pj-story-text { padding: 24px 24px 16px; }
  .intume-screen { border-width: 4px; border-radius: 14px; }
  .pj-story--intume .pj-strip { gap: 10px; padding: 14px 16px; }
  .pj-story--intume .pj-strip-text span { white-space: normal; font-size: 12px; line-height: 1.35; }
  .pj-story--intume .pj-get { padding: 7px 10px; font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .pj-story--intume, .intume-screen { transition: none; }
  .pj-story--intume:hover { transform: none; }
  .pj-story--intume:hover .intume-screen { translate: none; }
}

/* Galpangjilpang: approved Shibuya photograph in the existing Today card. */
.pj-story--galpang {
  --pj-bg: #b6ced4;
  scroll-margin-top: 100px;
}
.pj-story--galpang .pj-story-text {
  flex-shrink: 0;
  max-width: none;
  padding: 32px 32px 26px;
}
.pj-story--galpang .pj-story-title {
  word-break: keep-all;
  text-wrap: balance;
}
.galpang-story-media {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}
.galpang-story-photo {
  /* Continue the photo behind the glass while keeping the phone above the strip. */
  inset: -48% 0 auto;
  width: 100%;
  height: 150%;
  object-fit: cover;
  object-position: 50% 50%;
}
.galpang-story-icon { --pj-icon-bg: #f8f6f0; }
.galpang-story-icon img { max-width: none; max-height: none; width: 100%; height: 100%; object-fit: contain; }
.pj-story--galpang .pj-get { display: inline-flex; align-items: center; gap: 4px; text-transform: none; letter-spacing: 0; }
.pj-story--galpang .pj-get svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 640px) {
  .pj-story--galpang { min-height: 440px; }
  .pj-story--galpang .pj-story-text { padding: 24px; }
  .pj-story--galpang .pj-strip { gap: 10px; padding: 14px 16px; }
  .pj-story--galpang .pj-strip-text span { white-space: normal; font-size: 12px; line-height: 1.35; }
  .pj-story--galpang .pj-get { padding: 7px 10px; font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .pj-story--galpang, .galpang-story-photo { transition: none; }
  .pj-story--galpang:hover, .pj-story--galpang:hover .galpang-story-photo { transform: none; }
}

/* LOAM: source UI components rendered with a clearly marked example project. */
.pj-story--loam {--pj-bg:#e5e7f3; container-type:inline-size; scroll-margin-top:100px}
.pj-story--loam .pj-story-text {padding:32px 32px 14px; max-width:none; flex-shrink:0}
.pj-story.pj-story--loam .pj-story-title {font-size:clamp(21px, 5.8cqi, 28px); word-break:keep-all; text-wrap:pretty}
.loam-story-media {position:relative; flex:1; min-height:0}
.loam-story-media img {width:100%; height:100%; object-fit:contain; object-position:center top}
.loam-story-icon {--pj-icon-bg:#fff}
.loam-story-icon img {width:100%; height:100%; max-width:none; max-height:none; object-fit:contain}
.pj-story--loam .pj-get {text-transform:none; letter-spacing:0}
@media(max-width:640px) {
  .pj-story--loam {min-height:440px}
  .pj-story--loam .pj-story-text {padding:24px 24px 12px}
  .pj-story--loam .pj-strip {gap:10px; padding:14px 16px}
  .pj-story--loam .pj-strip-text span {white-space:normal; font-size:12px; line-height:1.35}
  .pj-story--loam .pj-get {padding:7px 10px; font-size:12px}
}
@media(prefers-reduced-motion:reduce) {
  .pj-story--loam {transition:none}
  .pj-story--loam:hover {transform:none}
}
