/* One shared hero and typing animation; cinematic composition only on phones. */
.hero-cinematic-eyebrow {display:none;}
@media (max-width:767px) {
  #portfolio-content .hero-section {height:auto;max-height:none;padding:0;overflow:hidden;}
  #portfolio-content .hero-section > .wrapper.grid {
    display:grid;grid-template-columns:minmax(0,1fr);
    /* The copy takes its natural height; the portrait uses the remaining screen.
       A minimum portrait height lets tiny/zoomed screens scroll instead of clipping. */
    min-height:calc(100svh - 72px);
    grid-template-rows:minmax(240px,1fr) auto;gap:0;
  }
  #portfolio-content .hero-section .hero-image-box {
    grid-area:1 / 1 / 2 / 2;width:100%;height:100%;min-height:0;max-height:none;
  }
  #portfolio-content .hero-section .hero-image {position:absolute;inset:0;object-position:50% 24%;}
  #portfolio-content .hero-section > .wrapper.grid::before {
    content:"";grid-area:1 / 1 / 2 / 2;position:relative;z-index:1;pointer-events:none;
    background:linear-gradient(180deg,transparent 30%,rgba(12,8,24,.14) 45%,rgba(12,8,24,.87) 76%,#0c0818 100%);
  }
  #portfolio-content .hero-section .hero-text-block {display:contents;}
  #portfolio-content .hero-section .heading_76px {
    grid-area:1 / 1 / 2 / 2;align-self:end;position:relative;z-index:2;
    margin:0 24px 16px;padding:0;color:#faf7ff;
    font-size:clamp(28px,4.4svh,38px);line-height:1.08;letter-spacing:-.045em;
  }
  #portfolio-content .hero-section .heading_76px > br {display:none;}
  #portfolio-content .hero-cinematic-eyebrow {
    display:block;font-family:Sen,sans-serif;font-size:10px;line-height:1.6;
    letter-spacing:.17em;font-weight:500;color:#c2b4da;margin-bottom:10px;
  }
  #portfolio-content .hero-cinematic-name {display:block;}
  #portfolio-content .hero-cinematic-role {
    display:block;font-size:.83em;color:#c6b0ff;letter-spacing:-.035em;
    min-height:1.25em;margin-top:8px;
  }
  #portfolio-content .hero-section .heading_76px .white_50 {
    display:block;font-family:Sen,sans-serif;font-size:12px;font-weight:400;
    line-height:1.5;letter-spacing:.025em;color:#b9afc9;margin-top:10px;
  }
  #portfolio-content .hero-section .inline-flag {width:17px;margin-left:8px;}
  #portfolio-content .hero-section .hero-text-block > .paragraph_18px {
    grid-area:2 / 1 / 3 / 2;position:relative;z-index:3;margin:0;
    padding:8px 24px max(20px,env(safe-area-inset-bottom));
    font-size:clamp(14px,1.85svh,16px);line-height:1.5;text-align:left;
    color:#d2cbdd;background:linear-gradient(#0c0818,rgba(12,8,24,.25));
  }
  #portfolio-content .hero-section .paragraph_18px strong {color:#faf7ff;}
}
@media (max-width:360px) and (max-height:620px) {
  #portfolio-content .hero-section > .wrapper.grid {grid-template-rows:minmax(220px,1fr) auto;}
  #portfolio-content .hero-section .heading_76px {margin-inline:18px;}
  #portfolio-content .hero-section .hero-text-block > .paragraph_18px {
    padding-inline:18px;padding-bottom:max(16px,env(safe-area-inset-bottom));
  }
}
@media (max-width:767px) and (forced-colors:active) {
  #portfolio-content .hero-section .heading_76px {background:Canvas;color:CanvasText;}
}
