/* iPixelP Portfolio — shared design system */

:root {
  --ipp-black: #0A0A0A;
  --ipp-panel: #141414;
  --ipp-panel-2: #1C1C1C;
  --ipp-red: #E31E24;
  --ipp-red-dim: #B81418;
  --ipp-white: #F2F2F0;
  --ipp-warm: #E8E5DE;
  --ipp-mute: #6B6B68;
  --ipp-mute-2: #9A9A95;
  --ipp-rule: rgba(242, 242, 240, 0.12);
  --ipp-rule-strong: rgba(242, 242, 240, 0.28);

  --ipp-display: 'Anton', 'Oswald', 'Helvetica Neue', sans-serif;
  --ipp-body: 'Inter', 'Helvetica Neue', sans-serif;
  --ipp-mono: 'JetBrains Mono', 'IBM Plex Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: #000;
  color: var(--ipp-white);
  font-family: var(--ipp-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

deck-stage { background: #000; }

/* === SLIDE BASE === */
section.slide {
  width: 1920px; height: 1080px;
  background: var(--ipp-black);
  color: var(--ipp-white);
  position: relative;
  overflow: hidden;
  font-family: var(--ipp-body);
}
section.slide.light {
  background: var(--ipp-warm);
  color: var(--ipp-black);
}

/* === CHROME (top-right tab + bottom strip) === */
.chrome-tab {
  position: absolute;
  top: 60px; right: 60px;
  display: flex; align-items: center; gap: 14px;
  font-family: var(--ipp-mono);
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ipp-mute-2);
  z-index: 5;
}
.chrome-tab .dot {
  width: 8px; height: 8px; background: var(--ipp-red);
  border-radius: 50%;
}
.chrome-tab .num {
  color: var(--ipp-white);
  font-weight: 500;
}
.slide.light .chrome-tab { color: #555; }
.slide.light .chrome-tab .num { color: var(--ipp-black); }

.chrome-foot {
  position: absolute;
  bottom: 48px; left: 60px; right: 60px;
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--ipp-mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ipp-mute);
  z-index: 5;
  border-top: 1px solid var(--ipp-rule);
  padding-top: 18px;
}
.slide.light .chrome-foot {
  color: #777;
  border-top-color: rgba(0,0,0,0.12);
}
.chrome-foot .mark-mini {
  height: 22px; width: auto;
}

/* Section labels */
.eyebrow {
  font-family: var(--ipp-mono);
  font-size: 13px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ipp-red);
  display: inline-flex; align-items: center; gap: 12px;
}
.eyebrow::before {
  content: ""; width: 28px; height: 2px; background: var(--ipp-red);
}
.eyebrow.no-rule::before { display: none; }

.eyebrow-mute {
  font-family: var(--ipp-mono);
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ipp-mute-2);
}

/* Display headlines */
.display {
  font-family: var(--ipp-display);
  font-weight: 400;
  text-transform: uppercase;
  line-height: 1.02;
  letter-spacing: -0.01em;
}
.display.xl  { font-size: 220px; }
.display.lg  { font-size: 148px; }
.display.md  { font-size: 96px; }
.display.sm  { font-size: 64px; }

.body-lg { font-size: 26px; line-height: 1.45; font-weight: 400; }
.body    { font-size: 20px; line-height: 1.55; font-weight: 400; color: var(--ipp-warm); }
.slide.light .body { color: #2a2a2a; }
.body-sm { font-size: 16px; line-height: 1.6; }

.text-pretty { text-wrap: pretty; }
.text-balance { text-wrap: balance; }

/* === Image placeholder (striped) === */
.placeholder {
  position: relative;
  background:
    repeating-linear-gradient(135deg,
      rgba(255,255,255,0.04) 0 12px,
      rgba(255,255,255,0.0) 12px 24px),
    linear-gradient(180deg, #1A1A1A 0%, #111 100%);
  border: 1px solid var(--ipp-rule);
  overflow: hidden;
}
.placeholder.warm {
  background:
    repeating-linear-gradient(135deg,
      rgba(0,0,0,0.05) 0 12px,
      rgba(0,0,0,0) 12px 24px),
    linear-gradient(180deg, #d4d1c9 0%, #c2bfb6 100%);
  border: 1px solid rgba(0,0,0,0.12);
}
.placeholder.red {
  background:
    repeating-linear-gradient(135deg,
      rgba(0,0,0,0.10) 0 12px,
      rgba(0,0,0,0) 12px 24px),
    var(--ipp-red);
  border: none;
}
.placeholder .ph-label,
.ph-label {
  position: absolute;
  bottom: 16px; left: 16px;
  font-family: var(--ipp-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  background: rgba(0,0,0,0.6);
  padding: 6px 10px;
  border-radius: 2px;
  backdrop-filter: blur(2px);
}
.placeholder.warm .ph-label {
  color: rgba(0,0,0,0.55);
  background: rgba(255,255,255,0.65);
}
.placeholder .ph-corner,
.ph-corner {
  position: absolute;
  top: 16px; right: 16px;
  font-family: var(--ipp-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
}
.placeholder.warm .ph-corner { color: rgba(0,0,0,0.4); }

/* play overlay for video placeholders */
.play-overlay {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  cursor: pointer;
  transition: background 0.2s;
}
.play-overlay:hover { background: rgba(227,30,36,0.08); }
.play-overlay .play-btn {
  width: 96px; height: 96px;
  border: 2px solid var(--ipp-white);
  border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(0,0,0,0.4);
  transition: all 0.2s;
}
.play-overlay:hover .play-btn {
  background: var(--ipp-red);
  border-color: var(--ipp-red);
  transform: scale(1.05);
}
.play-overlay .play-btn::after {
  content: "";
  width: 0; height: 0;
  border-left: 24px solid var(--ipp-white);
  border-top: 14px solid transparent;
  border-bottom: 14px solid transparent;
  margin-left: 6px;
}

/* === Number callouts === */
.metric .num {
  font-family: var(--ipp-display);
  font-size: 168px; line-height: 0.9;
  color: var(--ipp-white);
  letter-spacing: -0.02em;
}
.metric .num.red { color: var(--ipp-red); }
.metric .label {
  font-family: var(--ipp-mono);
  font-size: 13px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ipp-mute-2);
  margin-top: 12px;
  border-top: 1px solid var(--ipp-rule);
  padding-top: 14px;
  max-width: 280px;
}

/* === Vertical red rule motif === */
.red-rule {
  width: 4px;
  background: var(--ipp-red);
}

/* === BUTTONS / CTA === */
.cta-row {
  display: inline-flex; align-items: center; gap: 16px;
  font-family: var(--ipp-mono);
  font-size: 14px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ipp-white);
  cursor: pointer;
  user-select: none;
}
.cta-row .arrow {
  width: 56px; height: 56px;
  border: 1px solid var(--ipp-white);
  border-radius: 50%;
  display: grid; place-items: center;
  transition: all 0.2s;
}
.cta-row:hover .arrow {
  background: var(--ipp-red);
  border-color: var(--ipp-red);
  transform: translateX(4px);
}

/* === GRID CONTAINER === */
.frame {
  position: absolute;
  top: 60px; left: 60px; right: 60px; bottom: 110px;
}

/* keep selection legible */
::selection { background: var(--ipp-red); color: white; }

/* Service tile */
.service-tile {
  border: 1px solid var(--ipp-rule);
  padding: 36px 32px;
  position: relative;
  transition: all 0.25s;
  cursor: default;
  background: var(--ipp-panel);
}
.service-tile:hover {
  border-color: var(--ipp-red);
  background: var(--ipp-panel-2);
}
.service-tile:hover .tile-num { color: var(--ipp-red); }
.service-tile .tile-num {
  font-family: var(--ipp-mono);
  font-size: 13px;
  letter-spacing: 0.2em;
  color: var(--ipp-mute-2);
  transition: color 0.2s;
}
.service-tile h3 {
  font-family: var(--ipp-display);
  font-size: 38px;
  text-transform: uppercase;
  margin-top: 18px;
  line-height: 0.95;
  letter-spacing: -0.005em;
  color: var(--ipp-white);
}
.service-tile p {
  margin-top: 16px;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ipp-mute-2);
}

/* country chip */
.country-chip {
  font-family: var(--ipp-mono);
  font-size: 14px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 14px 18px;
  border: 1px solid var(--ipp-rule);
  display: inline-flex; align-items: center; gap: 12px;
  background: rgba(255,255,255,0.02);
}
.country-chip::before {
  content: "";
  width: 6px; height: 6px;
  background: var(--ipp-red);
  border-radius: 50%;
}

/* hairlines under headlines */
.hairline {
  height: 1px; background: var(--ipp-rule);
  width: 100%;
}
.hairline.strong { background: var(--ipp-rule-strong); }

/* simple expand interaction */
.expandable {
  transition: all 0.3s ease;
}

/* logo wall tile — using neutral text wordmarks */
.logo-tile {
  display: grid; place-items: center;
  height: 100px;
  border: 1px solid rgba(0,0,0,0.08);
  font-family: var(--ipp-display);
  font-size: 28px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #2a2a2a;
  text-align: center;
  background: rgba(255,255,255,0.5);
  transition: all 0.2s;
}
.logo-tile:hover {
  background: white;
  border-color: var(--ipp-red);
}
.logo-tile.small { font-size: 20px; height: 90px; }
.logo-tile .sub {
  display: block;
  font-family: var(--ipp-mono);
  font-size: 9px;
  letter-spacing: 0.24em;
  color: #999;
  margin-top: 4px;
}

/* Tweaks panel hide when inactive — handled by tweaks-panel.jsx */

/* ===== Hover lift for case study cards ===== */
.case-card {
  cursor: pointer;
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.case-card:hover {
  transform: translateY(-4px);
  border-color: var(--ipp-red);
}

/* timeline step */
.step-circle {
  width: 80px; height: 80px;
  border: 1px solid var(--ipp-rule-strong);
  border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--ipp-mono);
  font-size: 18px;
  letter-spacing: 0.1em;
  background: var(--ipp-black);
  position: relative; z-index: 1;
}
.step-circle.active {
  border-color: var(--ipp-red);
  color: var(--ipp-red);
}

/* video modal */
.video-modal {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.92);
  display: grid; place-items: center;
  z-index: 100;
  animation: fadeIn 0.2s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.video-modal-content {
  width: 80%; max-width: 1400px;
  aspect-ratio: 16/9;
  background: #000;
  border: 1px solid var(--ipp-rule-strong);
  position: relative;
  display: grid; place-items: center;
}
.video-modal-close {
  position: absolute;
  top: -56px; right: 0;
  font-family: var(--ipp-mono);
  font-size: 13px;
  letter-spacing: 0.2em;
  color: var(--ipp-white);
  background: none;
  border: 1px solid var(--ipp-rule-strong);
  padding: 10px 18px;
  cursor: pointer;
  text-transform: uppercase;
}
.video-modal-close:hover { border-color: var(--ipp-red); color: var(--ipp-red); }

/* Print: hide live video, play overlay and modal so the always-rendered
   poster image stays visible in each case hero PDF page. */
@media print {
  video { display: none !important; }
  .play-overlay { display: none !important; }
  .video-modal { display: none !important; }
}

/* PROCESS step pulse */
.pulse-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--ipp-red);
  box-shadow: 0 0 0 0 rgba(227,30,36,0.6);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(227,30,36,0.6); }
  50%      { box-shadow: 0 0 0 12px rgba(227,30,36,0); }
}
