.bertrand-story{position:relative;background:#fff;padding:94px 0 82px;color:#164e59}
.bertrand-layout{display:grid;grid-template-columns:300px minmax(0,620px);justify-content:center;gap:clamp(44px,4vw,64px);align-items:center}
.bertrand-portrait-column{position:relative;width:300px;align-self:center;text-align:center}
.bertrand-portrait{display:block;position:relative;padding:0;margin:0;width:274px;height:311px;left:16px;overflow:visible;border:0;background:transparent;border-radius:0;isolation:isolate;touch-action:manipulation}
.bertrand-portrait>[data-bertrand-frame]{position:absolute;inset:0;width:100%;height:100%;max-width:none;object-fit:contain;filter:none}
.bertrand-portrait:focus-visible{outline:2px solid #164e59;outline-offset:8px;border-radius:12px}
.bertrand-hint{display:block;width:240px;margin-top:0;font-size:11px;letter-spacing:.04em;color:#657570;transition:opacity .25s}
.bertrand-portrait-column:has(.is-playing) .bertrand-hint,.bertrand-portrait-column:has(.is-finished) .bertrand-hint,.bertrand-portrait-column:has(.has-note) .bertrand-hint{opacity:0}
.bertrand-aside{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
.bertrand-eyebrow{font-size:10px;font-weight:400;letter-spacing:.17em;color:#677e73;margin:0 0 17px}
.bertrand-copy h2{font:400 clamp(29px,3vw,42px)/1.12 var(--font);letter-spacing:-.035em;color:#164e59;margin:0 0 24px}
.bertrand-copy>p:not(.bertrand-eyebrow){font-size:16px;line-height:1.75;font-weight:300;color:#415553;max-width:620px;margin:0}
.bertrand-copy>p+p:not(.bertrand-eyebrow){margin-top:15px}
@media(max-width:760px){.bertrand-story{padding:70px 0 48px}.bertrand-layout{display:flex;flex-direction:column;gap:28px;width:min(580px,calc(100% - 40px))}.bertrand-portrait-column{width:228px;margin-top:40px}.bertrand-portrait{width:250px;height:284px;left:4px}.bertrand-copy h2{font-size:30px;margin-bottom:19px}.bertrand-copy>p:not(.bertrand-eyebrow){font-size:15px;line-height:1.72}.bertrand-desktop-break{display:none}.bertrand-hint{width:228px;font-size:10px}}

.bertrand-portrait>[data-bertrand-still][hidden]{display:none}

@font-face{font-family:BertrandHand;src:url('assets/fonts/caveat/Caveat.ttf') format('truetype');font-style:normal;font-weight:400 700;font-display:swap}
.bertrand-note{position:absolute;left:214px;top:5px;width:142px;z-index:2;pointer-events:none;color:#315f61;text-align:left;opacity:0;visibility:hidden;transform:translate(-3px,7px) rotate(-5deg);transform-origin:left bottom;transition:opacity .55s ease,transform .75s cubic-bezier(.2,.7,.25,1),visibility .55s}
.bertrand-note-words{display:block;font-family:BertrandHand,'Bradley Hand','Segoe Print',cursive;font-size:22px;font-weight:400;line-height:1.04;letter-spacing:0;white-space:nowrap}

.bertrand-note-curve{display:block;width:68px;height:62px;margin:1px 0 0 23px;overflow:visible;color:#78938b}
.bertrand-note-curve path{stroke:currentColor;stroke-width:1.15;stroke-linecap:round;stroke-dasharray:110;stroke-dashoffset:110;transition:stroke-dashoffset .85s ease .3s}
.bertrand-portrait-column:has(.has-note) .bertrand-note{opacity:1;visibility:visible;transform:translate(0,0) rotate(-5deg)}
.bertrand-portrait-column:has(.has-note) .bertrand-note-curve path{stroke-dashoffset:0}
@media(max-width:760px){.bertrand-portrait-column{width:min(280px,100%);margin-top:8px}.bertrand-portrait{left:0}.bertrand-note{left:171px;top:8px;width:122px}.bertrand-note-words{font-size:21px}.bertrand-note-curve{width:58px;height:53px;margin-left:23px}.bertrand-hint{width:200px}}
@media(prefers-reduced-motion:reduce){.bertrand-note,.bertrand-hint{transition:none}.bertrand-note-curve path{transition:none;stroke-dashoffset:0}}

/* Centre the visible circular portrait, including the transparent canvas offset. */
@media(max-width:760px){
 .bertrand-portrait-column{width:min(300px,100%);display:flex;flex-direction:column;align-items:center;margin-top:0}
 .bertrand-portrait{flex:none;align-self:flex-start;left:calc(50% - 94.3px);margin:0}
 .bertrand-note{position:relative;left:auto;top:auto;width:100%;min-height:58px;margin:14px 0 0;text-align:center;transform:translateY(6px);transform-origin:center}
 .bertrand-note-words{font-size:25px;line-height:1.12;white-space:normal}
 .bertrand-note-curve{display:none}
 .bertrand-portrait-column:has(.has-note) .bertrand-note{transform:translateY(0)}
 .bertrand-hint{position:absolute;bottom:22px;left:0;width:100%;text-align:center}
}

/* The interactive area follows the visible circular portrait, not its image canvas. */
.bertrand-portrait{pointer-events:none;cursor:default}
.bertrand-portrait>[data-bertrand-frame]{pointer-events:none}
.bertrand-trigger{position:absolute;left:1.8%;top:1.75%;width:72.25%;height:64.65%;z-index:3;pointer-events:auto;cursor:pointer;border-radius:50%;clip-path:ellipse(50% 50% at 50% 50%)}
@media(max-width:760px),(hover:none){.bertrand-trigger{cursor:default}}

/* Soft entrance, but no lingering annotation after the portrait returns to rest. */
.bertrand-note{transition:none}
.bertrand-portrait-column:has(.has-note) .bertrand-note{transition:opacity .35s ease,transform .55s cubic-bezier(.2,.7,.25,1)}
@media(prefers-reduced-motion:reduce){.bertrand-portrait-column:has(.has-note) .bertrand-note{transition:none}}

@media(max-width:760px){
 .bertrand-layout{gap:10px}
 .bertrand-note{margin-top:2px;min-height:56px}
}
