/* Fit the complete portfolio to the visible screen; the case remains scrollable. */
.bento {
  width:100%; max-width:none; height:100svh; min-height:0;
  padding:clamp(6px,1.667svh,15px) clamp(6px,1.389vw,20px);
  gap:clamp(4px,.694vw,10px);
  grid-template-columns:minmax(0,272fr) minmax(0,366fr) minmax(0,272fr) minmax(0,460fr);
  grid-template-rows:repeat(4,minmax(0,1fr));
}
.bento .card {min-width:0; min-height:0; border-radius:clamp(10px,1.667vw,24px)}
.bento .xpate {grid-area:1/1/3/3}
.bento .portrait {grid-area:1/3/2/4}
.bento .bio {grid-area:2/3/4/4}
.bento .about {grid-area:4/3/5/4}
.bento .skillbox {grid-area:1/4/3/5}
.bento .uchi {grid-area:3/4/5/5}
.bento .finance {grid-area:3/1/4/3}
.bento .mammo {grid-area:4/1/5/2}
.bento .phone {grid-area:4/2/5/3}
.bento .caption {left:clamp(8px,2.083vw,30px); bottom:clamp(8px,3.778svh,34px); max-width:calc(100% - clamp(16px,4.166vw,60px))}
.bento .caption h1,.bento .caption h2 {font-size:min(13cqw,4.167vw,6.667svh);line-height:1.25;overflow-wrap:normal}
.bento .caption p {font-size:min(5.22cqw,1.667vw,2.667svh);line-height:1.3;margin-top:4px}
.bento .uchi .caption {top:clamp(8px,2.222svh,20px);bottom:auto}
.bento .bio,.bento .about {padding:clamp(8px,1.806vw,26px);gap:min(2.667svh,1.667vw)}
.bento .bio h2 {font-size:min(20cqw,4.889svh);line-height:1;flex-shrink:0}
.bento .bio-intro {font-size:min(10.9cqw,2.667svh);line-height:1;max-width:none;margin:0}
.bento .bio-links {font-size:min(10.9cqw,2.667svh);line-height:1;margin-top:auto;padding:0;gap:0;flex-wrap:nowrap}
.bento .about {display:flex;flex-direction:column;align-items:flex-start;justify-content:space-between;font-size:min(10.9cqw,2.667svh);line-height:1}
.bento .play {top:clamp(6px,1.389vw,20px);left:clamp(6px,1.389vw,20px);transform:scale(min(1, calc(100vw / 1440px)) );transform-origin:top left}
.bento .case-arrow {font-size:min(1.736vw,2.778svh);right:calc(100% * .43);bottom:clamp(8px,2.222svh,20px)}
.bento .bubble {max-width:94%;white-space:normal;text-align:center;font-size:clamp(10px,1vw,14px);padding:8px 10px}

/* Portrait screens use six compact rows, with the introduction first. */
@media (max-width:1000px) and (max-aspect-ratio:1/1) {
  .bento {padding:8px;gap:6px;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:1fr 1fr 1.4fr 1.4fr .85fr 1.1fr}
  .bento .card {border-radius:clamp(12px,3vw,22px)}
  .bento .bio {grid-area:1/1/3/2;padding:clamp(10px,3vw,22px);gap:clamp(6px,1.4svh,14px)}
  .bento .portrait {grid-area:1/2/2/3}
  .bento .about {grid-area:2/2/3/3;padding:clamp(10px,3vw,22px);font-size:clamp(12px,2svh,22px)}
  .bento .xpate {grid-area:3/1/4/3}
  .bento .skillbox {grid-area:4/1/5/2}
  .bento .uchi {grid-area:4/2/5/3}
  .bento .finance {grid-area:5/1/6/3}
  .bento .mammo {grid-area:6/1/7/2}
  .bento .phone {grid-area:6/2/7/3}
  .bento .bio h2 {font-size:min(20cqw,4.2svh)}
  .bento .bio-intro {font-size:min(10.9cqw,2.25svh);line-height:1.06}
  .bento .bio-links {font-size:min(10.9cqw,2.25svh)}
  .bento .caption {left:clamp(12px,3vw,24px);bottom:clamp(10px,2svh,22px);max-width:calc(100% - 24px)}
  .bento .caption h1,.bento .caption h2 {font-size:min(17cqw,4.2svh);line-height:1.12}
  .bento .caption p {font-size:min(7.7cqw,1.8svh);line-height:1.15;margin-top:4px}
  .bento .uchi .caption {top:clamp(10px,2svh,22px);bottom:auto}
  .bento .case-arrow {right:18px;bottom:14px;font-size:20px}
  .bento .play {top:10px;left:10px;transform:scale(.55)}
}

/* review 2026-11-17 */
.bento .card {text-transform:lowercase}
.bento .play {display:none} /* video placeholder — hidden until video ships */
.bento .finance, .bento .finance:is(:hover,:focus-visible) {background:#414141}
.bento .text-link::after {content:" ↗";display:inline-block;margin-left:.15em;opacity:0;transform:translate(-4px,4px);transition:opacity .2s,transform .2s}
.bento .text-link:is(:hover,:focus-visible)::after {opacity:1;transform:none}
.bento .bio-intro {line-height:1.25}
.bento .text-link:focus-visible {outline:2px solid currentColor;outline-offset:4px;border-radius:4px}
/* finance card uses the shared caption sizes */
.bento .finance h2 {font-size:min(13cqw,4.167vw,6.667svh)}
.bento .finance p {font-size:min(5.22cqw,1.667vw,2.667svh);margin-top:4px}
@media(max-width:1000px){.bento .finance h2 {font-size:min(17cqw,4.2svh)}.bento .finance p {font-size:min(7.7cqw,1.8svh)}}
/* internal links: → instead of ↗ */
.bento .text-link--inner::after {content:" →"}
/* only cv in the card while about is hidden: pin it to the bottom like other captions */
.bento .about {justify-content:flex-end}

/* main screen · Figma 3360:10720 · 2026-11-20 */
html:has(.bento),html:has(.bento) body {background:#2e2e2e}
.bento .skillbox,.bento .uchi,.bento .finance,.bento .finance:is(:hover,:focus-visible) {background:#ddddd7;color:#292919}
.bento .interactive:focus-visible,.bento .soon:focus-visible {outline-color:#f7f7ee}
.bento .mammo-logo {display:none}
/* every caption sits on the same 26px inset from the left and bottom edges */
.bento .caption,.bento .uchi .caption,.bento .finance .caption {left:clamp(8px,1.806vw,26px);bottom:clamp(8px,2.889svh,26px);top:auto}
.bento .uchi .caption p {max-width:84cqw}
/* bio: serif name and intro at the top, link at the bottom */
.bento .bio {gap:min(1.778svh,1.111vw)}
.bento .bio h2 {font-family:"DM Serif Text",serif;font-weight:400}
.bento .bio-intro,.bento .bio-links,.bento .about {font-family:"DM Serif Text",serif;letter-spacing:.04em}
/* about: CV and LinkedIn on the top row, about at the bottom */
.bento .about {background:#1e1e1e;justify-content:space-between;align-items:stretch;text-transform:none}
.bento .about-links {display:flex;justify-content:space-between;gap:8px}
.bento .about-me {align-self:flex-start}
.bento .about-me:focus-visible {outline:2px solid currentColor;outline-offset:4px;border-radius:4px}
@media not all and (max-width:1000px) and (max-aspect-ratio:1/1) {
  .bento .caption h1,.bento .caption h2,.bento .finance h2 {font-size:min(13cqw,3.194vw,5.111svh);line-height:1.15}
  .bento .caption p,.bento .finance p {font-size:min(5.22cqw,1.667vw,2.667svh);line-height:1;margin-top:min(.556vw,.889svh)}
  .bento .bio-intro {font-size:min(9.09cqw,1.389vw,2.222svh);line-height:1.4}
  .bento .bio,.bento .about {padding:clamp(8px,min(1.806vw,2.889svh),26px)}
}
@media (max-width:1000px) and (max-aspect-ratio:1/1) {
  .bento .caption,.bento .uchi .caption,.bento .finance .caption {left:clamp(12px,3vw,24px);bottom:clamp(10px,2svh,22px)}
}
/* portrait on phones: the desktop crop (zoomed and shifted for a tall card) cut the head off in
   the short, wide phone card; fit the whole photo instead, zoomed a little toward the face */
@media (max-width:1000px) and (max-aspect-ratio:1/1) {
  .bento .portrait-photo {width:100%;height:100%;left:0;top:0;object-fit:cover;object-position:60% 100%;transform:scale(1.3);transform-origin:60% 80%}
}
