/* Playground-specific skin. Shared header/footer can be swapped for your real components. */
:root{--pg-bg:#faf8f4;--pg-ink:#2a2a27;--pg-muted:#797770;--pg-line:#dedbd5;--pg-burgundy:#713e50;--pg-font:'DM Sans',sans-serif;--pg-mono:'DM Mono',monospace}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--pg-bg);color:var(--pg-ink);font-family:var(--pg-font);line-height:1.55}button,input{font:inherit}a{color:inherit}button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid #a2768d;outline-offset:4px}.pg-container{width:min(1160px,calc(100% - 72px));margin-inline:auto}
.pg-site-header{border-bottom:1px solid var(--pg-line);background:var(--pg-bg)}.pg-nav{max-width:1280px;padding:19px 36px;margin:auto;display:flex;align-items:center;justify-content:space-between;gap:16px}.pg-brand{text-decoration:none;font-size:16px;font-weight:650;white-space:nowrap}.pg-brand span{font-size:12px;font-weight:400;color:var(--pg-muted);margin-left:9px}.pg-nav-links{display:flex;align-items:center;gap:31px}.pg-nav-links a{font-size:13px;text-decoration:none;color:#696761}.pg-nav-links a:hover,.pg-nav-links .pg-current{color:var(--pg-burgundy)}
.pg-intro{padding-top:100px;padding-bottom:70px}.pg-eyebrow,.pg-category,.pg-side-note,.pg-media-label,.pg-interact-hint,.pg-air-note,.pg-wip{font:14px var(--pg-mono);letter-spacing:.12em}.pg-eyebrow{color:var(--pg-burgundy)}.pg-intro h1{font-size:clamp(46px,7.1vw,106px);font-weight:500;letter-spacing:-.08em;line-height:1.08;margin:22px 0 30px}.pg-intro h1 em{font-weight:400;font-family:Georgia,serif}.pg-intro-bottom{display:flex;align-items:end;justify-content:space-between;gap:30px}.pg-intro-bottom>p{max-width:530px;font-size:clamp(16px,2vw,21px);margin:0;color:#5e5d59}.pg-side-note{white-space:nowrap;color:var(--pg-muted)}
.pg-gallery{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));column-gap:20px;row-gap:72px}.pg-project{min-width:0}.pg-project-feature,.pg-project-poem{grid-column:span 3}.pg-project-coffee,.pg-project-race{grid-column:span 2}.pg-project-air{grid-column:1/-1}.pg-media{position:relative;overflow:hidden;border-radius:6px;isolation:isolate}.pg-project-feature .pg-media{height:clamp(310px,46vw,540px)}.pg-project-race .pg-media,.pg-project-poem .pg-media{height:clamp(310px,37vw,460px)}.pg-project-air .pg-media{height:clamp(280px,35vw,400px)}.pg-project-video{width:100%;height:100%;display:block;object-fit:contain;position:absolute;inset:0;z-index:2}.pg-project-video.is-unavailable{display:none}.pg-earth-media{background:#dfe6d6}.pg-earth-fallback,.pg-race-fallback{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:20px}.pg-fallback-caption{font:10px var(--pg-mono);letter-spacing:.13em;color:#6a7665}.pg-planet{position:relative;width:148px;height:137px;background:#9ec588;border:3px solid #507e57;border-radius:46% 46% 45% 45%;box-shadow:inset -14px -11px 0 #8cbb7c;animation:pg-bob 3s ease-in-out infinite}.pg-planet-eye{position:absolute;top:55px;width:9px;height:13px;background:#2b5338;border-radius:50%}.pg-planet-eye.left{left:40px}.pg-planet-eye.right{right:40px}.pg-planet-mouth{position:absolute;top:77px;left:64px;width:22px;height:13px;border-bottom:3px solid #2b5338;border-radius:50%}.pg-planet-leaf{position:absolute;width:29px;height:40px;border-radius:100% 0 100% 0;background:#64a175;top:-24px;left:54px;transform:rotate(-35deg)}@keyframes pg-bob{50%{transform:translateY(-9px)}}
.pg-media-label{position:absolute;top:22px;left:23px;z-index:5;color:#334b39;background:#fffdf1d9;padding:9px 11px;border-radius:3px}.pg-media-cta{position:absolute;right:22px;bottom:22px;z-index:6;background:#263f33;color:white;text-decoration:none;padding:12px 16px;border-radius:3px;font:12px var(--pg-mono);transition:transform .2s}.pg-media-cta:hover{transform:translateY(-3px)}
.pg-project-info{padding:21px 2px 0}.pg-category{margin:0 0 9px;color:var(--pg-burgundy)}.pg-project-info h2{font-size:clamp(27px,3.2vw,42px);font-weight:500;letter-spacing:-.055em;line-height:1.12;margin:0 0 13px}.pg-description{color:#68655f;font-size:15px;max-width:510px;line-height:1.65;margin:0}.pg-feature-info{display:flex;justify-content:space-between;gap:30px;align-items:start}.pg-feature-info>div:first-child{max-width:650px}.pg-feature-aside{display:flex;align-items:end;flex-direction:column;gap:14px}.pg-stamp{border:2px dashed var(--pg-burgundy);color:var(--pg-burgundy);border-radius:50%;width:92px;height:92px;display:flex;align-items:center;justify-content:center;text-align:center;transform:rotate(12deg);font:11px var(--pg-mono);line-height:1.4}.pg-text-button{background:none;border:0;border-bottom:1px solid var(--pg-burgundy);color:var(--pg-burgundy);cursor:pointer;font-size:12px;padding:0 0 3px;white-space:nowrap}.pg-asterisk{color:#82986c;font-size:.7em}
.pg-race-media{background:#ede5e2}.pg-race-fallback svg{height:85%;width:95%}.pg-race-fallback .pg-fallback-caption{color:#815767}.pg-poem-media{background:#16191b}.pg-poem-media .pg-media-label{background:#eeeae0;color:#343839}.pg-poem-media canvas{display:block;width:100%;height:100%;touch-action:pan-y}.pg-interact-hint{color:#eeeae0;background:#17191aaf;position:absolute;bottom:16px;left:19px;padding:8px;pointer-events:none}.pg-air-media{background:#131e28}.pg-air-media canvas{display:block;width:100%;height:100%}.pg-air-top{position:absolute;left:0;right:0;top:0;display:flex;align-items:center;justify-content:space-between;gap:20px;padding:20px}.pg-media-label-static{position:static;color:#dbe3e8;background:#465768}.pg-air-note{color:#c2cbd2}.pg-air-controls{position:absolute;bottom:20px;left:24px;width:min(300px,calc(100% - 48px));background:#13232bbb;color:#ecf0ef;padding:11px 14px;border-radius:4px}.pg-air-controls label{font:11px var(--pg-mono);display:flex;justify-content:space-between;gap:12px}.pg-air-controls input{width:100%;accent-color:#d8aaa3;margin-top:10px}.pg-wip{font-size:9px;display:inline-block;border:1px solid #bcb5ae;border-radius:20px;padding:7px 9px;vertical-align:middle;letter-spacing:.04em;color:#817b76;white-space:nowrap;margin-left:10px}
.pg-outro{padding:115px 0 120px;display:flex;align-items:end;justify-content:space-between;gap:30px}.pg-outro p{margin:0;font-size:clamp(24px,3.2vw,42px);line-height:1.28;letter-spacing:-.05em}.pg-outro>span{font-size:42px;color:var(--pg-burgundy)}.pg-site-footer{background:#6f394d;color:#fff7ef;padding:50px 0}.pg-footer-inner{display:flex;justify-content:space-between;gap:30px;flex-wrap:wrap}.pg-footer-inner p{font-size:24px;margin:6px 0 0;letter-spacing:-.04em}.pg-footer-smile{font-size:30px}.pg-footer-links{display:flex;gap:75px}.pg-footer-links>div{display:flex;flex-direction:column;gap:9px}.pg-footer-links span{font:10px var(--pg-mono);color:#e3bfc9;letter-spacing:.12em}.pg-footer-links a{font-size:13px;text-decoration:none}.pg-footer-links a:hover{text-decoration:underline}.pg-footer-inner small{width:100%;color:#e8c7d1;font-size:11px;margin-top:25px}
.pg-dialog{border:1px solid var(--pg-line);background:var(--pg-bg);border-radius:8px;color:var(--pg-ink);padding:30px;max-width:min(570px,calc(100% - 28px));box-shadow:0 24px 80px #0004}.pg-dialog::backdrop{background:#101014a6}.pg-dialog-head{display:flex;justify-content:space-between;align-items:center}.pg-dialog-close{border:0;background:transparent;cursor:pointer;font-size:19px}.pg-dialog h2{font-size:clamp(28px,5vw,44px);letter-spacing:-.06em;line-height:1.1;margin:20px 0}.pg-dialog>p{color:#625c58}.pg-steps{display:grid;grid-template-columns:repeat(3,1fr);gap:7px;margin:25px 0}.pg-steps>div{background:#f0ece6;padding:13px;display:flex;flex-direction:column;gap:10px}.pg-steps span{font:10px var(--pg-mono);color:var(--pg-burgundy)}.pg-steps strong{font-size:13px;font-weight:500}.pg-dialog-link{color:var(--pg-burgundy);font-size:13px}
.pg-race-media video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}



/* RACE ART — cream gallery with subtle border */

.pg-race-media {
  background: #faf7f0 !important;
  border: 1px solid #d9c9c7 !important;
  border-radius: 10px !important;
  box-shadow: none !important;
  overflow: hidden;
}

.pg-race-media video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #faf7f0;
}
.pg-race-media .pg-media-label {
  background: rgba(250, 247, 240, 0.95);
  color: #681326;
  border: none;
  box-shadow: none;
}

/* =========================
   MONTREAL SMOKE ARTIFACT
   ========================= */

.pg-project-smoke .pg-skyline-media {
  position: relative;
  overflow: hidden;
  background: #faf7f0;
  border: 1px solid #d9c9c7;
  border-radius: 14px;
  min-height: 520px;
}

.pg-skyline-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  object-position: center 74%;
  filter:
    saturate(calc(1 - var(--smoke) * 0.45))
    contrast(calc(1 - var(--smoke) * 0.28))
    brightness(calc(1 - var(--smoke) * 0.08))
    blur(calc(var(--smoke) * 2.2px));
  transition: filter 220ms ease;
}

.pg-skyline-haze {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 220ms ease;
  background:
    linear-gradient(
      to bottom,
      rgba(214, 210, 203, 0.04) 0%,
      rgba(214, 210, 203, 0.10) 22%,
      rgba(202, 196, 188, 0.28) 48%,
      rgba(190, 183, 174, 0.48) 72%,
      rgba(180, 172, 164, 0.66) 100%
    ),
    radial-gradient(
      ellipse at center 72%,
      rgba(196, 190, 181, 0.00) 0%,
      rgba(196, 190, 181, 0.10) 32%,
      rgba(188, 180, 171, 0.26) 55%,
      rgba(180, 172, 164, 0.42) 100%
    );
}

.pg-skyline-particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.pg-skyline-ui {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px;
}

.pg-skyline-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
}

.pg-skyline-readout {
  align-self: flex-start;
  margin-top: auto;
  margin-bottom: 18px;
  background: rgba(250, 247, 240, 0.78);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(104, 19, 38, 0.12);
  border-radius: 12px;
  padding: 14px 16px;
  max-width: 420px;
}

.pg-skyline-kicker {
  margin: 0 0 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #681326;
}

.pg-skyline-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.pg-metric-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6f625b;
  margin-bottom: 4px;
}

.pg-skyline-metrics strong {
  font-size: 16px;
  line-height: 1.3;
  color: #2b2524;
}

.pg-skyline-slider-wrap {
  background: rgba(250, 247, 240, 0.86);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(104, 19, 38, 0.1);
  border-radius: 12px;
  padding: 12px 14px 10px;
}

.pg-skyline-slider-wrap input[type="range"] {
  width: 100%;
  accent-color: #681326;
}

.pg-skyline-slider-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6f625b;
}

@media (max-width: 700px) {
  .pg-project-smoke .pg-skyline-media {
    aspect-ratio: auto;
    height: 430px;
  }

  .pg-project-smoke .pg-skyline-image {
    object-position: center 72%;
  }

  .pg-skyline-metrics {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .pg-skyline-readout {
    max-width: 100%;
  }
}


/* Full-width wildfire smoke experiment */
.pg-gallery > .pg-project-smoke {
  grid-column: 1 / -1;
  width: 100%;
  min-width: 0;
}

/* Wide cinematic skyline */
.pg-project-smoke .pg-skyline-media {
  width: 100%;
  min-height: 0;
  height: auto;
  aspect-ratio: 16 / 7.2; /* shorter card */
  border: 1px solid #d9c9c7;
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  --smoke: 0;
}

.pg-project-smoke .pg-skyline-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  object-position: center 74%; /* crops more sky, keeps skyline more prominent */
}

/* Keep controls usable on smaller screens */
@media (max-width: 700px) {
  .pg-project-smoke .pg-skyline-media {
    aspect-ratio: auto;
    height: 510px;
  }

  .pg-project-smoke .pg-skyline-image {
    object-position: center;
  }
}

.pg-project-smoke .pg-skyline-media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(
      to bottom,
      rgba(255,255,255,0) 0%,
      rgba(233, 228, 222, calc(var(--smoke) * 0.10)) 28%,
      rgba(220, 214, 207, calc(var(--smoke) * 0.22)) 55%,
      rgba(205, 198, 190, calc(var(--smoke) * 0.42)) 100%
    );
  mix-blend-mode: screen;
}



@media(max-width:900px){.pg-side-note{display:none}.pg-gallery{row-gap:56px}.pg-feature-info{align-items:start}.pg-project-race .pg-media,.pg-project-poem .pg-media{height:340px}}@media(max-width:640px){.pg-container{width:calc(100% - 36px)}.pg-nav{padding:16px 18px;flex-direction:column;align-items:start;gap:10px}.pg-nav-links{width:100%;gap:17px;flex-wrap:wrap}.pg-nav-links a{font-size:12px}.pg-intro{padding-top:65px;padding-bottom:42px}.pg-intro h1{font-size:clamp(45px,12vw,70px);margin:16px 0 20px}.pg-gallery{grid-template-columns:1fr;row-gap:46px}.pg-project-feature,.pg-project-air{grid-column:auto}.pg-project-feature .pg-media{height:360px}.pg-project-race .pg-media,.pg-project-poem .pg-media{height:350px}.pg-project-air .pg-media{height:300px}.pg-feature-info{display:block}.pg-feature-aside{margin-top:19px;align-items:center;flex-direction:row;justify-content:space-between}.pg-stamp{width:75px;height:75px;font-size:9px}.pg-project-info h2{font-size:30px}.pg-description{font-size:14px}.pg-air-note{font-size:9px;text-align:right}.pg-outro{padding:80px 0;align-items:center}.pg-outro>span{font-size:32px}.pg-site-footer{padding:35px 0}.pg-footer-links{gap:35px}.pg-steps{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.pg-planet{animation:none}.pg-media-cta{transition:none}}

/* Portfolio integration: colours inherited from current shared.css. */
:root{--pg-bg:var(--v5-paper,#faf7f0);--pg-ink:var(--v5-ink,#2b2524);--pg-muted:var(--v5-muted,#716861);--pg-line:var(--v5-line,#e5ded4);--pg-burgundy:var(--v5-wine,#681326)}
body .pg-project .pg-project-info h2{color:var(--pg-ink)}


/* SMOKE ARTIFACT — same full width as Little Earth */

.pg-gallery > .pg-project-smoke {
  grid-column: 1 / -1 !important;
  width: 100% !important;
  min-width: 0;
}

/* Full-width canvas, with enough height for controls */
.pg-project-smoke .pg-skyline-media {
  position: relative;
  width: 100%;
  height: clamp(480px, 48vw, 620px);
  min-height: 480px;
  aspect-ratio: auto;
  overflow: hidden;
  border: 1px solid #d9c9c7;
  border-radius: 14px;
}

/* Crop the IMAGE, not the card */
.pg-project-smoke .pg-skyline-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  object-position: center 85%;
}

/* Keep the controls layered above the image */
.pg-project-smoke .pg-skyline-ui {
  position: absolute;
  inset: 0;
  z-index: 5;
}

@media (max-width: 700px) {
  .pg-project-smoke .pg-skyline-media {
    height: 520px;
    min-height: 520px;
  }

  .pg-project-smoke .pg-skyline-image {
    object-position: center 82%;
  }
}


/* Project 04 — shorter, full-width skyline */
.pg-project-smoke .pg-skyline-media {
  width: 100%;
  height: 420px;
  min-height: 0;
  aspect-ratio: auto;
  overflow: hidden;
}

/* Crop the sky and keep the city visible */
.pg-project-smoke .pg-skyline-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 90%;
}

/* Mobile — preserve space for controls */
@media (max-width: 700px) {
  .pg-project-smoke .pg-skyline-media {
    height: 350px;
    min-height: 0;
  }
}


/* Curated gallery: paired media share a height, while copy stays in its card. */
.pg-gallery > .pg-project:not(.pg-project-smoke) > .pg-media {
  height: clamp(340px, 34vw, 440px);
}
.pg-gallery .pg-feature-info { display: block; }
.pg-gallery .pg-feature-aside {
  margin-top: 20px;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
/* Small challenge stamp in the media's top-right corner. */
.pg-earth-media .pg-stamp {
  position: absolute;
  top: 16px;
  right: 18px;
  z-index: 6;
  width: 60px;
  height: 60px;
  font-size: 8px;
  border-width: 1.5px;
  pointer-events: none;
}
.pg-coffee-media { background: #f6ebda; border: 1px solid #ded2c3; }
.pg-coffee-media .pg-media-label { color: var(--pg-burgundy); background: #faf7f0ed; }
.pg-coffee-media .pg-coffee-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  pointer-events: none;
  padding: 0;
}
.pg-coffee-video { opacity: 0; }
.pg-coffee-media.has-preview .pg-coffee-video { opacity: 1; }
.pg-coffee-media.has-preview .pg-coffee-fallback { visibility: hidden; }
.pg-coffee-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 62px 24px 24px;
  pointer-events: none;
}
.pg-coffee-illustration { position: relative; width: min(230px, 80%); }
.pg-coffee-illustration img { display: block; width: 100%; height: auto; }
.pg-coffee-steam {
  position: absolute;
  top: 47%;
  left: 47%;
  width: 13%;
  height: 10%;
  display: flex;
  justify-content: space-between;
}
.pg-coffee-steam > span {
  width: 4px;
  height: 100%;
  border-left: 1.5px solid #332b24;
  border-radius: 50%;
  opacity: .4;
  animation: pg-coffee-steam 3s ease-in-out infinite;
}
.pg-coffee-steam > span:nth-child(2) { animation-delay: -.9s; }
.pg-coffee-steam > span:nth-child(3) { animation-delay: -1.8s; }
@keyframes pg-coffee-steam {
  0%, 100% { opacity: 0; transform: translateY(3px) scaleY(.8); }
  50% { opacity: .4; transform: translateY(-6px) scaleY(1); }
}
.pg-gallery .pg-text-button { min-height: 44px; }
@media (min-width: 701px) and (max-width: 900px) {
  .pg-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pg-gallery > .pg-project:not(.pg-project-smoke) { grid-column: auto; }
}
@media (max-width: 700px) {
  .pg-gallery { grid-template-columns: minmax(0, 1fr); row-gap: 46px; }
  .pg-gallery > .pg-project { grid-column: 1 / -1; }
  .pg-container { width: calc(100% - 36px); }
  .pg-gallery > .pg-project:not(.pg-project-smoke) > .pg-media { height: 350px; }
  .pg-project-info h2 { font-size: 30px; }
  .pg-gallery .pg-category { font-size: 12px; line-height: 1.6; }
  .pg-gallery .pg-interact-hint { font-size: 11px; right: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .pg-coffee-video { visibility: hidden; }
  .pg-coffee-steam > span { animation: none; }
}
