/* =====================================================================
   ICR website — phone artifacts.
   The app screens re-rendered live in HTML at 393×852, scaled via --ps.
   They use the same tokens as the page, so they flip registers with it
   (or stay evening inside .force-evening).
   ===================================================================== */

.phone {
  --ps: 0.78;
  width: calc(423px * var(--ps));
  height: calc(882px * var(--ps));
  position: relative;
  flex-shrink: 0;
}
.phone.sm { --ps: 0.68; }
.ph-frame {
  position: absolute; top: 0; left: 0;
  width: 423px; height: 882px;
  transform: scale(var(--ps));
  transform-origin: top left;
  border-radius: 56px;
  background: #0a0806;
  padding: 15px;
  box-shadow:
    0 0 0 1.5px #2a2622,
    0 40px 100px -30px rgba(0,0,0,0.55),
    0 12px 40px -10px rgba(0,0,0,0.3);
}
.ph-frame::after {
  content: '';
  position: absolute; inset: 0;
  border-radius: 56px;
  pointer-events: none;
  background:
    linear-gradient(160deg, rgba(255,255,255,0.04) 0%, transparent 30%),
    linear-gradient(340deg, rgba(255,255,255,0.03) 0%, transparent 30%);
}
.ph-screen {
  position: relative;
  width: 393px; height: 852px;
  border-radius: 42px;
  overflow: hidden;
  text-align: left;
  background:
    radial-gradient(60% 40% at 18% -6%, rgba(217, 176, 72, 0.07), transparent 70%),
    radial-gradient(120% 80% at 50% 50%, rgba(255, 250, 235, 0.10), transparent 75%),
    var(--bone);
  isolation: isolate;
  transition: background var(--m-deliberate) var(--ease-soft);
}

/* hardware */
.ph-island {
  position: absolute; top: 11px; left: 50%; transform: translateX(-50%);
  width: 124px; height: 36px; background: #000; border-radius: 20px;
  z-index: 80;
}
.ph-island .vdot {
  position: absolute; left: -30px; top: 5px;
  width: 26px; height: 26px; border-radius: 50%;
  background: #000;
  color: #EFE9DD;
  font-family: var(--ff-display); font-style: italic; font-weight: 500;
  font-size: 13px; letter-spacing: -0.04em;
  display: flex; align-items: center; justify-content: center;
}
.ph-home {
  position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%);
  width: 134px; height: 5px; border-radius: 3px;
  background: var(--lead); opacity: 0.85; z-index: 100;
}
.ph-status {
  position: absolute; top: 0; left: 0; right: 0; height: 54px; z-index: 50;
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 32px 0;
  font-family: var(--ff-ui); font-size: 14px; font-weight: 600; color: var(--lead);
}
.ph-status .sig { display: flex; gap: 5px; align-items: center; font-size: 11px; letter-spacing: 0.04em; }

/* magazine header */
.ph-mag {
  position: absolute; top: 0; left: 0; right: 0; z-index: 45;
  background: var(--bone-raised);
  border-bottom: 1.25px solid var(--lead);
  padding: 62px 20px 14px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 14px -6px rgba(20,15,10,0.33);
  transition: background var(--m-deliberate) var(--ease-soft);
}
.ph-mag .brand { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 3px; }
.ph-mag .line {
  font-family: var(--ff-display); font-size: 15px; font-weight: 500;
  letter-spacing: 0.32em; padding-left: 0.32em; color: var(--lead); line-height: 1;
}
.ph-mag .sub { font-size: 7.5px; font-weight: 600; letter-spacing: 0.28em; color: var(--ash); text-transform: uppercase; }
.ph-mag .mono {
  position: absolute; left: 20px; bottom: 15px;
  font-family: var(--ff-display); font-style: italic; font-weight: 500;
  font-size: 13px; color: var(--sage);
}
.ph-mag .date {
  position: absolute; right: 20px; bottom: 16px;
  font-family: var(--ff-display); font-style: italic;
  font-size: 11px; color: var(--ash);
}

/* scroll body */
.ph-body {
  position: absolute; inset: 0;
  padding: 132px 20px 110px;
  overflow: hidden;
  display: flex; flex-direction: column;
}

/* dateline row */
.ph-dateline {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 10px 0 12px;
}
.ph-dateline .desk { font-family: var(--ff-display); font-style: italic; font-size: 15px; color: var(--lead); }
.ph-dateline .day { font-size: 9.5px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ash); }

/* lead letter plate — smoke, never flips */
.ph-letter {
  background: var(--smoke);
  border-radius: 16px;
  border: 0.5px solid var(--plate-edge);
  padding: 18px 18px 14px;
  position: relative; overflow: hidden;
  box-shadow: 0 14px 30px -14px rgba(20,15,10,0.5);
}
.ph-letter::before {
  content: '';
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(55% 45% at 15% 0%, rgba(217,176,72,0.12), transparent 70%);
}
.ph-letter .row { display: flex; align-items: center; gap: 8px; }
.ph-letter .vmark {
  width: 18px; height: 18px; border-radius: 50%;
  border: 0.5px solid rgba(217,176,72,0.5);
  color: #D9B048; font-family: var(--ff-display); font-style: italic;
  font-size: 10px; display: flex; align-items: center; justify-content: center;
}
.ph-letter .eyebrow-g {
  font-size: 9px; font-weight: 600; letter-spacing: 0.18em;
  text-transform: uppercase; color: #D9B048;
  white-space: nowrap;
}
.ph-letter .quote {
  font-family: var(--ff-display); font-size: 23px; font-weight: 500;
  line-height: 1.22; letter-spacing: -0.01em;
  color: #EFE9DD; margin: 12px 0 14px;
}
.ph-letter .quote i { color: #D9B048; font-weight: 400; }
.ph-letter .foot {
  border-top: 0.5px solid rgba(239,233,221,0.14);
  padding-top: 10px;
  display: flex; justify-content: space-between; align-items: baseline;
}
.ph-letter .foot .who { font-family: var(--ff-display); font-style: italic; font-size: 11.5px; color: rgba(239,233,221,0.55); }
.ph-letter .foot .act { font-size: 9px; font-weight: 700; letter-spacing: 0.14em; color: #D9B048; }

/* portfolio line */
.ph-port { padding: 18px 0 6px; border-bottom: 0.5px solid var(--ash-light); }
.ph-port .lbl { font-size: 9px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ash); }
.ph-port .row2 { display: flex; align-items: flex-end; justify-content: space-between; margin-top: 2px; }
.ph-port .val {
  font-family: var(--ff-display); font-style: italic; font-weight: 500;
  font-size: 34px; letter-spacing: -0.02em; color: var(--lead);
  font-variant-numeric: tabular-nums; line-height: 1;
}
.ph-port .delta { text-align: right; }
.ph-port .delta .up { font-family: var(--ff-display); font-style: italic; font-size: 14px; color: var(--sage); }
.ph-port .delta .cap { font-size: 8.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ash); margin-top: 2px; }
.ph-port svg.spark { display: block; width: 120px; height: 26px; }
.ph-port svg.spark path { stroke: var(--lead); fill: none; stroke-width: 1.4; }

/* correspondence list */
.ph-corr-h {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 16px 0 4px;
}
.ph-corr-h .t { font-family: var(--ff-display); font-style: italic; font-size: 19px; color: var(--lead); }
.ph-corr-h .m { font-size: 9px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--oxblood); }
.ph-row {
  display: grid; grid-template-columns: 44px 1fr auto;
  gap: 12px; align-items: center;
  padding: 11px 0;
  border-bottom: 0.5px solid var(--ash-light);
}
.ph-row .init {
  width: 40px; height: 40px;
  background: var(--bone-raised);
  border: 0.5px solid var(--ash-light);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--ff-display); font-size: 17px; color: var(--lead);
}
.ph-row .who { font-family: var(--ff-display); font-weight: 600; font-size: 13.5px; color: var(--lead); }
.ph-row .who i { font-weight: 400; font-size: 11px; color: var(--ash); margin-left: 5px; }
.ph-row .what { font-family: var(--ff-display); font-style: italic; font-size: 12.5px; color: var(--lead-soft); margin-top: 1px; }
.ph-row .when { font-size: 9px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ash); display: flex; align-items: center; gap: 6px; }
.ph-row .when .dot-ox { width: 6px; height: 6px; border-radius: 50%; background: var(--oxblood); }
.ph-row .thumbs { display: flex; gap: 4px; margin-top: 6px; }
.ph-row .thumbs span { width: 18px; height: 25px; border-radius: 2px; border: 0.5px solid rgba(20,15,10,0.2); }

/* virgil's read footnote */
.ph-vread { padding: 14px 0 0; }
.ph-vread .e { font-size: 8.5px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ash); display: flex; gap: 6px; align-items: baseline; }
.ph-vread .e .v { font-family: var(--ff-display); font-style: italic; color: var(--oxblood); font-size: 11px; text-transform: none; }
.ph-vread p { margin: 6px 0 0; font-family: var(--ff-display); font-size: 14.5px; line-height: 1.45; color: var(--lead-soft); }

/* ---------- collection screen ---------- */
.ph-seg {
  display: flex; align-items: center; gap: 4px;
  background: var(--bone-sunken);
  border-radius: 999px; padding: 4px;
  margin: 10px 0 14px;
  width: fit-content;
  border: 0.5px solid var(--ash-light);
}
.ph-seg .opt {
  font-family: var(--ff-display); font-style: italic; font-size: 13px;
  color: var(--ash); padding: 6px 14px; border-radius: 999px;
}
.ph-seg .opt.on { background: var(--bone-raised); color: var(--lead); box-shadow: 0 2px 6px -2px rgba(20,15,10,0.3); }
.ph-seg .black-pill {
  font-size: 7px; font-weight: 700; letter-spacing: 0.14em;
  background: var(--smoke); color: #D9B048;
  border-radius: 999px; padding: 3px 7px; margin-left: 4px;
}
.ph-hold .lbl { font-size: 9px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ash); }
.ph-hold .big {
  font-family: var(--ff-display); font-size: 30px; font-weight: 500; color: var(--lead);
  letter-spacing: -0.015em; line-height: 1.1;
}
.ph-hold .big .ox { color: var(--oxblood); font-style: italic; }
.ph-hold .big .fil { font-style: italic; font-size: 14px; color: var(--ash); }
.ph-hold .sub { display: flex; justify-content: space-between; font-size: 11px; color: var(--ash); margin-top: 2px; }
.ph-hold .sub b { color: var(--lead); font-weight: 600; }
.ph-search {
  margin: 14px 0 10px;
  border: 0.5px solid var(--ash-light);
  border-radius: 999px;
  background: var(--bone-raised);
  padding: 10px 16px;
  font-family: var(--ff-display); font-style: italic;
  font-size: 13.5px; color: var(--ash);
  display: flex; gap: 8px; align-items: center;
}
.ph-filters { display: flex; gap: 14px; align-items: center; padding: 4px 0 12px; }
.ph-filters .f { font-size: 10px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ash); }
.ph-filters .f.on { color: var(--lead); border-bottom: 1.5px solid var(--oxblood); padding-bottom: 2px; font-family: var(--ff-display); font-style: italic; text-transform: none; font-size: 13px; letter-spacing: 0; font-weight: 500; }
.ph-filters .spacer { flex: 1; }
.ph-filters .pill { font-size: 9px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--lead-soft); border: 0.5px solid var(--ash-light); border-radius: 999px; padding: 5px 11px; }
.ph-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ph-card { display: flex; flex-direction: column; gap: 7px; }
.ph-card .face {
  aspect-ratio: 88 / 121;
  border-radius: 10px;
  border: 0.5px solid rgba(20,15,10,0.18);
  box-shadow: 0 10px 22px -10px rgba(20,15,10,0.45);
  position: relative;
}
.ph-card .face .no {
  position: absolute; left: 9px; top: 7px;
  font-family: var(--ff-display); font-style: italic;
  font-size: 8.5px; color: rgba(239,233,221,0.75);
}
.ph-card .cap { display: flex; justify-content: space-between; align-items: baseline; }
.ph-card .cap .nm { font-family: var(--ff-display); font-style: italic; font-size: 13px; color: var(--lead); }
.ph-card .cap .pr { font-family: var(--ff-display); font-style: italic; font-size: 12.5px; color: var(--lead-soft); font-variant-numeric: tabular-nums; }

/* ---------- bottom nav ---------- */
.ph-nav {
  position: absolute; left: 0; right: 0; bottom: 0; height: 88px;
  z-index: 70;
  background: var(--nav-glass);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-top: 0.5px solid var(--ash-light);
  display: grid; grid-template-columns: repeat(5, 1fr);
  align-items: center;
  padding: 6px 8px 18px;
  transition: background var(--m-deliberate) var(--ease-soft);
}
.ph-nav .item {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  font-size: 9px; font-weight: 600; letter-spacing: 0.04em; color: var(--ash);
}
.ph-nav .item.on { color: var(--lead); }
.ph-nav .item .ic { width: 22px; height: 22px; display: flex; align-items: center; justify-content: center; }
.ph-nav .item .ic svg { display: block; }
.ph-nav .item .ic svg * { stroke: currentColor; }
.ph-nav .item .vv { font-family: var(--ff-display); font-style: italic; font-weight: 500; font-size: 17px; line-height: 1; }
.ph-nav .scan {
  position: relative;
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  margin-top: -34px;
  font-size: 9px; font-weight: 600; color: var(--ash);
}
.ph-nav .scan .btn-scan {
  width: 64px; height: 64px; border-radius: 50%;
  background: radial-gradient(70% 70% at 35% 30%, #8E3338 0%, var(--oxblood) 55%, var(--oxblood-deep) 100%);
  border: 5px solid var(--nav-glass);
  box-shadow: 0 10px 24px -8px rgba(79,21,24,0.6);
  display: flex; align-items: center; justify-content: center;
}
.ph-nav .scan .btn-scan svg * { stroke: #EFE9DD; }
