/*! tfh-phone.css v1 (photoreal frame), the ONE TradeForgeHub Phone for every Forge Line, demo, proposal and template.
 *  Shape: Apple-accurate proportions 71.9 x 150.0 mm (43 x 89.7 em here), 6.3 in screen at 402 x 874 pt (1 em = 10 pt).
 *  Only the finish COLOUR changes per page (set from the table in tfh-phone.js). Never restyle the shape or the screen layout.
 *  Size the phone with --tfhp-w on the host (default 300px). Frame = photoreal render PNG/WebP from tfh-phone.js (FRAMES); no external requests, no fonts. */
.tfhp{--tfhp-w:300px;display:block;width:var(--tfhp-w);max-width:100%;margin:0 auto;font-size:calc(var(--tfhp-w) / 43);line-height:1.2;color:#000;font-family:-apple-system,BlinkMacSystemFont,"SF Pro Text","Inter","Segoe UI",system-ui,sans-serif;-webkit-font-smoothing:antialiased;text-align:left}
.tfhp *,.tfhp *::before,.tfhp *::after{box-sizing:border-box;margin:0;padding:0}
.tfhp-stage{position:relative;width:43em;height:89.7em;perspective:140em;touch-action:pan-y;-webkit-tap-highlight-color:transparent;cursor:grab}
.tfhp-tilt{position:absolute;inset:0;transform:rotateX(var(--rx,0deg)) rotateY(var(--ry,0deg)) scale(var(--sc,1));will-change:transform;filter:drop-shadow(0 .3em .45em rgba(0,0,0,.32)) drop-shadow(0 3.2em 3.6em rgba(0,0,0,.34))}
.tfhp-stage::before{content:"";position:absolute;left:14%;right:14%;bottom:-2.6em;height:3.4em;border-radius:50%;background:radial-gradient(closest-side,rgba(0,0,0,.34),rgba(0,0,0,.12) 60%,transparent);pointer-events:none} /* soft contact shadow under the phone */
.tfhp-body{position:absolute;inset:0;border-radius:6.9em;background:#08080a} /* only a black silhouette while the photo frame loads; the photoreal frame is the device */
.tfhp-screen{position:absolute;left:var(--scr-l,1.25em);top:var(--scr-t,1.05em);width:var(--scr-w,40.5em);height:var(--scr-h,87.6em);border-radius:var(--scr-r,3.4em);overflow:hidden;background:#000;isolation:isolate;touch-action:pan-y;user-select:none;-webkit-user-select:none}
.tfhp-screen::after{content:"";position:absolute;inset:0;z-index:29;pointer-events:none;background:linear-gradient(118deg,rgba(255,255,255,.10) 0%,rgba(255,255,255,.04) 24%,rgba(255,255,255,0) 40%,rgba(255,255,255,0) 78%,rgba(255,255,255,.035) 100%)} /* cover-glass reflection */
.tfhp-glare{position:absolute;inset:0;z-index:30;pointer-events:none;background:radial-gradient(60% 40% at var(--gx,30%) var(--gy,12%),rgba(255,255,255,.2),transparent 70%);mix-blend-mode:screen;opacity:var(--go,.5)}
.tfhp-island{position:absolute;z-index:25;left:13.79em;top:1.3em;width:12.9em;height:3.8em;border-radius:1.9em;background:#000} /* centred on the frame cutout (x 1.42..41.55em), 11 pt below its top edge */
.tfhp-home{position:absolute;z-index:26;left:13.4em;bottom:.8em;width:13.4em;height:.5em;border-radius:.3em;background:#000;opacity:.85}
.tfhp-sb{position:absolute;z-index:24;top:0;left:0;right:0;height:5.9em;display:flex;justify-content:space-between;align-items:flex-start;padding:1.28em 2.34em 0 3em;font-weight:600;font-size:1.7em;letter-spacing:-.01em}
.tfhp-sb svg{height:.75em;width:auto;margin-left:.35em;fill:currentColor}
.tfhp-v{position:absolute;inset:0;display:flex;flex-direction:column}
.tfhp-dark{color:#fff}.tfhp-dark .tfhp-home{background:#fff}
/* messages */
.tfhp-m{background:#fff}
.tfhp-mh{flex:none;height:14.2em;background:#f9f9f9;border-bottom:.05em solid rgba(0,0,0,.18);display:flex;flex-direction:column;align-items:center;justify-content:flex-end;padding-bottom:.9em}
.tfhp-av{width:2.6em;height:2.6em;border-radius:50%;background:radial-gradient(circle at 50% 45%,var(--av1,#7a2fd0),var(--av2,#0b0612) 72%);display:grid;place-items:center;color:#fff;font-weight:600;font-size:2em}
.tfhp-nm{margin-top:.5em;font-size:1.2em;font-weight:500}
.tfhp-nm i{font-style:normal;color:#8e8e93}
.tfhp-ml{flex:1;min-height:0;overflow:hidden;display:flex;flex-direction:column;justify-content:flex-end;padding:0 1.4em 1em}
.tfhp-b{max-width:16em;padding:.41em .82em .47em;font-size:1.7em;line-height:1.3;letter-spacing:-.02em;border-radius:1.12em;margin-top:.12em;word-wrap:break-word;overflow-wrap:anywhere;animation:tfhp-in .32s cubic-bezier(.2,.9,.3,1.2) both;transform-origin:bottom left}
.tfhp-me{background:var(--me,#007aff);color:#fff;align-self:flex-end;transform-origin:bottom right}
.tfhp-them{background:#e9e9eb;color:#000;align-self:flex-start}
.tfhp-gap{margin-top:.55em}
.tfhp-sys{align-self:center;text-align:center;font-size:1.1em;color:#8e8e93;font-weight:500;margin:.9em 0 .6em;animation:tfhp-in .3s both}
.tfhp-miss{align-self:center;display:flex;align-items:center;gap:.6em;font-size:1.3em;font-weight:500;color:#d92f2f;margin:.8em 0;animation:tfhp-in .3s both}
.tfhp-miss svg{width:1.1em;height:1.1em;fill:currentColor}
.tfhp-dl{align-self:flex-end;font-size:1.1em;color:#8e8e93;font-weight:500;margin:.2em .4em 0 0;animation:tfhp-in .3s both}
.tfhp-vm{align-self:flex-start;max-width:22em;background:#f2f2f7;border:.1em solid #e0e0e6;border-radius:1.6em;padding:1em 1.3em;font-size:1.4em;animation:tfhp-in .32s both}
.tfhp-vm b{display:flex;justify-content:space-between;font-size:.8em;color:#8e8e93;font-weight:600;letter-spacing:.02em;text-transform:uppercase;margin-bottom:.4em}
.tfhp-typ{align-self:flex-start;background:#e9e9eb;border-radius:1.9em;width:6.2em;height:3.7em;display:flex;gap:.45em;align-items:center;justify-content:center;margin-top:.4em}
.tfhp-typ i{width:.9em;height:.9em;border-radius:50%;background:#8e8e93;animation:tfhp-dot 1.1s infinite ease-in-out}
.tfhp-typ i:nth-child(2){animation-delay:.18s}.tfhp-typ i:nth-child(3){animation-delay:.36s}
.tfhp-bar{flex:none;display:flex;align-items:center;gap:1em;padding:.8em 1.2em 3.2em}
.tfhp-bar u{flex:none;width:1.42em;height:1.42em;border-radius:50%;background:#e9e9eb;color:#8e8e93;text-decoration:none;display:grid;place-items:center;font-size:2.4em;line-height:1;font-weight:300}
.tfhp-bar s{flex:1;height:2.12em;border:.06em solid #c8c8cc;border-radius:1.06em;text-decoration:none;padding:.41em .82em;font-size:1.7em;color:#8e8e93;letter-spacing:-.02em;line-height:1.1;white-space:nowrap;overflow:hidden}
.tfhp-mdk{background:#0f1417}
.tfhp-mdk .tfhp-mh{background:#151b1e;border-color:#222a2e;color:#fff}.tfhp-mdk .tfhp-nm i{color:#8a9499}
.tfhp-mdk .tfhp-them{background:#252d31;color:#eef1ee}.tfhp-mdk .tfhp-sys,.tfhp-mdk .tfhp-dl{color:#8a9499}
.tfhp-mdk .tfhp-bar u{background:#252d31;color:#8a9499}.tfhp-mdk .tfhp-bar s{border-color:#2d363a;color:#8a9499}
.tfhp-bn{position:absolute;z-index:28;left:1.4em;right:1.4em;top:5.6em;padding:1em 1.3em;border-radius:1.8em;background:rgba(40,46,50,.94);color:#fff;box-shadow:0 1em 2.4em rgba(0,0,0,.45);animation:tfhp-bn .5s cubic-bezier(.2,.9,.3,1.1) both}
.tfhp-bn b{display:block;font-size:1.1em;letter-spacing:.06em;text-transform:uppercase;opacity:.75}
.tfhp-bn span{display:block;font-size:1.4em;margin-top:.25em;line-height:1.25}
@keyframes tfhp-bn{from{opacity:0;transform:translateY(-3em)}to{opacity:1;transform:none}}
/* call */
.tfhp-c{background:linear-gradient(180deg,#1d2333 0%,#0c0f18 100%);align-items:center;padding-top:9em}
.tfhp-cav{width:2.65em;height:2.65em;border-radius:50%;background:radial-gradient(circle at 50% 40%,var(--av1,#7a2fd0),var(--av2,#0b0612) 75%);display:grid;place-items:center;font-size:3.4em;font-weight:600}
.tfhp-cn{margin-top:1.2em;font-size:3em;font-weight:600;text-align:center;padding:0 1em}
.tfhp-cs{margin-top:.5em;font-size:1.6em;color:rgba(255,255,255,.65);min-height:1.2em}
.tfhp-wave{display:flex;gap:.45em;align-items:center;height:3em;margin-top:1.4em;opacity:0;transition:opacity .3s}
.tfhp-live .tfhp-wave{opacity:1}
.tfhp-wave i{width:.5em;height:.8em;border-radius:.3em;background:#5ee08a;animation:tfhp-wv .9s infinite ease-in-out}
.tfhp-wave i:nth-child(2n){animation-delay:.15s}.tfhp-wave i:nth-child(3n){animation-delay:.3s}.tfhp-wave i:nth-child(4n){animation-delay:.45s}
.tfhp-cl{flex:1;min-height:0;width:100%;overflow:hidden;display:flex;flex-direction:column;justify-content:flex-end;gap:.7em;padding:0 2em 1em}
.tfhp-cl p{font-size:1.5em;line-height:1.3;padding:.5em .8em;border-radius:.9em;max-width:18em;animation:tfhp-in .3s both}
.tfhp-cl .tfhp-them{background:rgba(255,255,255,.14);color:#fff}
.tfhp-cl .tfhp-me{background:#2b6ee8;color:#fff}
.tfhp-act{flex:none;display:flex;gap:7em;padding:1.4em 0 5.4em}
.tfhp-act i{width:6.2em;height:6.2em;border-radius:50%;display:grid;place-items:center;background:#e0392f}
.tfhp-act i.ok{background:#2fbf5b}
.tfhp-act svg{width:2.8em;height:2.8em;fill:#fff}
.tfhp-ring .tfhp-cav{animation:tfhp-pulse 1.4s infinite}
/* lock */
.tfhp-l{background:radial-gradient(120% 70% at 50% 0%,var(--lk1,#3a4a7a),var(--lk2,#10131d) 70%);align-items:stretch;padding:0 1.6em}
.tfhp-lt{margin-top:1.1em;text-align:center;font-size:8.4em;font-weight:300;letter-spacing:-.02em;line-height:1}
.tfhp-ld{text-align:center;font-size:1.9em;font-weight:500;opacity:.8;margin-top:.5em}
.tfhp-ln{flex:1;min-height:0;overflow:hidden;display:flex;flex-direction:column;justify-content:flex-end;gap:.8em;padding-bottom:7em}
.tfhp-n{background:rgba(255,255,255,.2);backdrop-filter:blur(1.6em);-webkit-backdrop-filter:blur(1.6em);border-radius:2em;padding:1.1em 1.4em;animation:tfhp-in .4s cubic-bezier(.2,.9,.3,1.2) both}
.tfhp-n small{display:block;font-size:1.2em;opacity:.7;font-weight:600;letter-spacing:.03em;text-transform:uppercase}
.tfhp-n b{display:block;font-size:1.6em;font-weight:600;margin-top:.15em}
.tfhp-n span{display:block;font-size:1.5em;opacity:.9;margin-top:.1em;line-height:1.25}
/* video reel */
.tfhp-vd{background:#000}
.tfhp-video,.tfhp-poster{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;background:#000}
.tfhp-video{z-index:1;opacity:0;transition:opacity .25s}.tfhp-playing .tfhp-video{opacity:1}
.tfhp-play{position:absolute;z-index:5;inset:0;border:0;background:rgba(0,0,0,.18);cursor:pointer;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1.2em;color:#fff;font:inherit}
.tfhp-disc{border-radius:50%;background:rgba(255,255,255,.92);color:#111;display:grid;place-items:center;font-size:3.2em;padding-left:.1em;box-shadow:0 1.2em 3em rgba(0,0,0,.4)}
.tfhp-disc{width:2.6em;height:2.6em}
.tfhp-pcta{font-size:1.5em;font-weight:600;text-shadow:0 .1em .5em rgba(0,0,0,.6)}
.tfhp-play:focus-visible{outline:.3em solid #007aff;outline-offset:-.6em}
.tfhp-playing .tfhp-play{display:none}
.tfhp-prog{position:absolute;z-index:6;left:3em;right:3em;bottom:2.6em;height:.35em;border-radius:.2em;background:rgba(255,255,255,.3);overflow:hidden}
.tfhp-prog i{display:block;height:100%;background:#fff;transform:scaleX(0);transform-origin:left}
/* furniture */
.tfhp-cap{margin-top:1.8em;text-align:center;font-size:1.25em;color:#6b6b73;letter-spacing:.02em}
.tfhp-cap button{font:inherit;color:inherit;background:none;border:0;text-decoration:underline;cursor:pointer;padding:.3em .5em;min-height:max(2.4em,44px);min-width:44px;display:inline-flex;align-items:center;justify-content:center}
.tfhp-cap button:focus-visible{outline:.2em solid #007aff;outline-offset:.1em;border-radius:.4em}
.tfhp-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap;list-style:none}
.tfhp-down .tfhp-glare{--go:.9}
@keyframes tfhp-in{from{opacity:0;transform:translateY(.8em) scale(.92)}to{opacity:1;transform:none}}
@keyframes tfhp-dot{0%,60%,100%{opacity:.3;transform:translateY(0)}30%{opacity:1;transform:translateY(-.35em)}}
@keyframes tfhp-wv{0%,100%{height:.8em}50%{height:2.8em}}
@keyframes tfhp-pulse{0%,100%{box-shadow:0 0 0 0 rgba(255,255,255,.25)}50%{box-shadow:0 0 0 1.6em rgba(255,255,255,0)}}
/* PHOTOREAL FRAME (Mark, 2026-11-06, hard rule): the render in .tfhp-photo is the phone. The live screen sits under it and a little oversize, so the frame's own alpha cutout is the mask. */
.tfhp[data-frame=photo] .tfhp-body{background:none}
.tfhp:not([data-frame]) .tfhp-screen{opacity:0;animation:tfhp-show 0s 3s forwards}@keyframes tfhp-show{to{opacity:1}}.tfhp-screen{transition:opacity .25s}
.tfhp-photo{position:absolute;left:-.9em;top:-.9em;width:44.8em;height:91.5em;max-width:none;z-index:40;pointer-events:none;user-select:none;-webkit-user-select:none;-webkit-user-drag:none} /* photoreal frame render: phone plus 0.15 cm margin for the side buttons; the screen is a clean alpha cutout */
@media (prefers-reduced-motion:reduce){.tfhp *{animation:none!important;transition:none!important}.tfhp .tfhp-screen{opacity:1!important}.tfhp-tilt{will-change:auto}.tfhp-stage{cursor:default}}

/* video: stays on the frame when paused; player controls under the phone */
.tfhp-started .tfhp-video{opacity:1}.tfhp-started .tfhp-play{display:none}
.tfhp-ctl{display:flex;align-items:center;flex-wrap:wrap;justify-content:center;gap:6px;margin:12px 0 0;width:380px;max-width:92vw;position:relative;left:50%;transform:translateX(-50%);font-size:14px}
.tfhp-ctl button{font:700 14px/1 system-ui,sans-serif;min-height:44px;padding:0 10px;border-radius:12px;border:1.5px solid rgba(255,255,255,.55);background:rgba(10,12,14,.84);color:#fff;cursor:pointer;touch-action:manipulation;white-space:nowrap}
.tfhp-ctl button:hover{background:#F96302;color:#14181C;border-color:#F96302}.tfhp-ctl button:focus-visible{outline:2px solid #F96302;outline-offset:2px}
.tfhp-ctl input[type=range]{flex:1 1 0;min-width:120px;order:9;height:36px;accent-color:#F96302;margin:2px 0 0;cursor:pointer}
.tfhp-ctl .tfhp-tc{flex:0 0 auto;order:10;margin:2px 0 0;padding:8px 10px;border-radius:8px;background:rgba(10,12,14,.88);text-align:center;font:600 13px/1 ui-monospace,Menlo,monospace;color:#fff}
.tfhp-prog{height:.9em;pointer-events:auto;cursor:pointer}
