/* Home showcase · 2026-11-19
   The two products shown as the device they live in: JIOS inside a laptop, Ramona inside a
   phone. A ticker under the opening, and the devices tilt with the scroll (showcase.js). */

/* ---------- ticker under the opening ---------- */
.tick { overflow: hidden; border-top: 1px solid var(--line, #E6E4E2); border-bottom: 1px solid var(--line, #E6E4E2); padding: 14px 0; background: var(--white, #fff); }
.tick-track { display: flex; gap: 0; width: max-content; animation: tick 46s linear infinite; }
.tick-track span { white-space: nowrap; font-size: 12px; letter-spacing: .22em; text-transform: uppercase; font-weight: 700; color: var(--muted, #686D76); padding: 0 28px; position: relative; }
.tick-track span::after { content: "·"; position: absolute; right: -4px; color: rgba(21,23,27,.35); }
@keyframes tick { to { transform: translateX(-50%); } }
.tick:hover .tick-track { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) { .tick-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; row-gap: 8px; } }

/* ---------- a feature block, product on one side, words on the other ---------- */
.feat { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(28px, 5vw, 72px); align-items: center; padding: clamp(56px, 8vw, 110px) 40px; perspective: 1600px; }
.feat.flip { grid-template-columns: 1.1fr 1fr; }
.feat.flip .feat-copy { order: 2; }
.feat-copy .eyebrow { margin: 0 0 8px; }
.feat-copy h2 { font-size: clamp(30px, 3.6vw, 46px); font-weight: 800; letter-spacing: -.035em; line-height: 1.02; margin: 0 0 16px; }
.feat-copy p { font-size: 15.5px; line-height: 1.7; color: #3a3f46; max-width: 50ch; margin: 0 0 12px; }
.feat-copy .buttons { margin-top: 18px; }
.feat-list { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 8px; }
.feat-list li { font-size: 14px; color: #3a3f46; padding-left: 20px; position: relative; }
.feat-list li::before { content: ""; position: absolute; left: 0; top: .55em; width: 9px; height: 9px; border-radius: 50%; background: #1f6f54; }
.feat--jios { background: var(--mint, #EEF4EF); }
.feat--ramona { background: var(--lav, #F2EFF7); }
.feat-device { justify-self: center; width: 100%; }
.feat-device[data-tilt] { transform-style: preserve-3d; will-change: transform; }

/* ---------- laptop ---------- */
.laptop { width: 100%; max-width: 680px; margin: 0 auto; }
.laptop-screen { position: relative; aspect-ratio: 16 / 10; border-radius: 16px 16px 6px 6px; background: #0d0f14; padding: 10px 10px 14px; box-shadow: 0 40px 90px -30px rgba(21,23,27,.5), inset 0 0 0 2px #2a2e36; overflow: hidden; }
.laptop-screen::before { content: ""; position: absolute; left: 50%; top: 3px; width: 6px; height: 6px; border-radius: 50%; background: #1b1e26; transform: translateX(-50%); }
.laptop-inner { position: absolute; inset: 10px 10px 14px; border-radius: 8px; background: var(--paper, #FBF8F2); overflow: hidden; }
.laptop-inner > img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.laptop-base { height: 14px; margin: 0 -3%; border-radius: 0 0 14px 14px; background: linear-gradient(#d9dbe0, #b9bcc4); box-shadow: 0 12px 24px -12px rgba(21,23,27,.5); position: relative; }
.laptop-base::after { content: ""; position: absolute; left: 50%; top: 0; width: 14%; height: 4px; border-radius: 0 0 6px 6px; background: #a9adb6; transform: translateX(-50%); }

/* the JIOS screen: a list on the left, the three steps on the right */
.jl { position: absolute; inset: 0; display: none; grid-template-rows: auto 1fr auto; font-family: "DM Sans", Arial, sans-serif; color: var(--ink, #15171B); font-size: 11px; }
.jios-live .jl { display: grid; } .jios-live .laptop-inner > img { display: none; }
.jl-top { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-bottom: 1px solid rgba(21,23,27,.08); background: #fff; }
.jl-top b { font-size: 12px; letter-spacing: .06em; }
.jl-top small { color: var(--muted, #686D76); }
.jl-mail { margin-left: auto; display: inline-flex; align-items: center; gap: 5px; padding: 4px 8px; border-radius: 999px; background: #fff; border: 1px solid rgba(21,23,27,.12); font-weight: 700; }
.jl-mail b { min-width: 14px; text-align: center; color: #1f6f54; }
.jl-mail.pop { animation: jl-pop .7s cubic-bezier(.34,1.56,.64,1); }
@keyframes jl-pop { 0% { transform: scale(1); } 40% { transform: scale(1.22); background: #e4f3ea; } 100% { transform: scale(1); } }
.jl-main { display: grid; grid-template-columns: 1fr 1.1fr; gap: 10px; padding: 10px 12px; min-height: 0; }
.jl-list { display: grid; align-content: start; gap: 6px; }
.jl-card { background: #fff; border: 1px solid rgba(21,23,27,.1); border-radius: 8px; padding: 7px 9px; display: grid; gap: 2px; animation: jl-in .55s cubic-bezier(.34,1.3,.64,1) backwards; transition: opacity .6s, transform .6s; }
.jl-card b { font-size: 11.5px; letter-spacing: -.01em; }
.jl-card span { color: var(--muted, #686D76); font-size: 10px; }
.jl-card .jl-tag { font-style: normal; font-size: 9.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted, #686D76); min-height: 12px; }
.jl-card.on { border-color: #1f6f54; box-shadow: 0 0 0 2px rgba(31,111,84,.12); }
.jl-card.yes { border-color: #1f6f54; } .jl-card.yes .jl-tag { color: #1f6f54; }
.jl-card.no { border-color: rgba(21,23,27,.1); box-shadow: none; opacity: .75; }
.jl-card.out { opacity: .35; transform: translateX(-6px); box-shadow: none; border-color: rgba(21,23,27,.1); }
@keyframes jl-in { from { opacity: 0; transform: translateY(-10px) scale(.96); } to { opacity: 1; transform: none; } }
.jl-stage { display: grid; align-content: start; gap: 6px; }
.jl-step { display: grid; grid-template-columns: 18px 1fr; grid-template-areas: "n t" "n b" "n u"; column-gap: 8px; row-gap: 2px; background: #fff; border-radius: 8px; padding: 7px 9px; border: 1px solid rgba(21,23,27,.08); opacity: .5; transition: opacity .4s, border-color .4s; }
.jl-step em { grid-area: n; font-style: normal; width: 18px; height: 18px; border-radius: 50%; background: #eef1f3; display: grid; place-items: center; font-size: 10px; font-weight: 800; color: var(--muted, #686D76); }
.jl-step span { grid-area: t; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; color: var(--muted, #686D76); }
.jl-step b { grid-area: b; font-size: 11.5px; font-weight: 600; min-height: 14px; }
.jl-step u { grid-area: u; display: block; text-decoration: none; height: 5px; border-radius: 3px; background: #eef1f3; overflow: hidden; margin-top: 3px; }
.jl-step u i { display: block; height: 100%; width: 0; background: #1f6f54; border-radius: 3px; transition: width 1.1s cubic-bezier(.2,.7,.2,1); }
.jl-step.run, .jl-step.ok, .jl-step.no, .jl-step.low { opacity: 1; }
.jl-step.ok { border-color: #1f6f54; } .jl-step.ok em { background: #1f6f54; color: #fff; }
.jl-step.run em { background: var(--ink, #15171B); color: #fff; }
.jl-step.no { border-color: rgba(21,23,27,.2); } .jl-step.no em { background: var(--ink, #15171B); color: #fff; }
.jl-step.low u i { background: #c9a227; }
.jl-foot { display: flex; gap: 0; border-top: 1px solid rgba(21,23,27,.08); background: #fff; overflow: hidden; }
.jl-ticker { display: flex; width: max-content; animation: tick 28s linear infinite; }
.jl-ticker span { white-space: nowrap; padding: 7px 16px; font-size: 10px; font-weight: 700; letter-spacing: .06em; color: var(--muted, #686D76); border-right: 1px solid rgba(21,23,27,.08); }
@media (prefers-reduced-motion: reduce) { .jl-ticker { animation: none; } .jl-card { animation: none; } }

/* ---------- small phone for the home ---------- */
.phone.sm { width: min(250px, 70vw); border-radius: 36px; padding: 9px; }
.phone.sm .phone-notch { height: 20px; top: 9px; }
.phone.sm .tg-head { padding: 26px 12px 8px; border-radius: 26px 26px 0 0; }
.phone.sm .tg-body { font-size: 12px; padding: 10px 8px; }
.phone.sm .tg-msg { font-size: 11.5px; }
.phone.sm .tg-input { padding: 8px 12px 16px; border-radius: 0 0 26px 26px; font-size: 12px; }
.feat--ramona .phone-wrap { gap: 8px; }
.feat--ramona .ramona-fallback { width: min(420px, 100%); border-radius: 14px; }
html:not(.ramona-js) .feat--ramona .phone-wrap { display: none; }

/* ---------- the opening: a clean photo, facts under the status line ---------- */
.sh-facts-photo { display: none !important; }
.sh-facts-inline { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 16px; }
.sh-facts-inline li { font-size: 11.5px; }

@media (max-width: 900px) {
  .feat, .feat.flip { grid-template-columns: 1fr; gap: 28px; padding: 48px 20px; }
  .feat.flip .feat-copy { order: 0; }
  .laptop-base { margin: 0; }
  .jl-main { grid-template-columns: 1fr; }
  .jl-stage { display: none; }
}

/* ---------- shared pieces for the inner pages · 2026-11-20 ---------- */
/* a drawn diagram: lines and paths trace themselves as the figure comes into view (showcase.js) */
.draw svg { width: 100%; height: auto; display: block; }
.draw.drawing path, .draw.drawing line, .draw.drawing polyline, .draw.drawing rect, .draw.drawing circle { transition: stroke-dashoffset .9s cubic-bezier(.2,.7,.2,1), opacity .6s; }
.draw.drawing text, .draw.drawing tspan { transition: opacity .6s; }
/* before → after chips (experience, skills) */
.ba { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.ba div { background: #fff; border: 1px solid var(--line, #E6E4E2); border-radius: 14px; padding: 10px 14px; min-width: 150px; display: grid; gap: 4px; }
.ba b { font-size: 22px; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.ba b s { text-decoration: none; color: rgba(21,23,27,.35); font-weight: 600; font-size: 15px; margin-right: 6px; }
.ba u { display: block; text-decoration: none; height: 4px; border-radius: 2px; background: rgba(21,23,27,.08); overflow: hidden; }
.ba u i { display: block; height: 100%; width: 0; background: #1f6f54; border-radius: 2px; transition: width 1.1s cubic-bezier(.2,.7,.2,1); }
.ba.on u i { width: var(--w, 100%); }
.ba span { font-size: 11px; color: var(--muted, #686D76); }
/* skill levels: how often the skill is used, not a made-up percentage */
.skill-card li.lvl, .lvl { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 10px; font-size: 12.5px; text-align: left; }
.skill-card li.lvl::before { content: none; margin: 0; }
.lvl i { display: inline-flex; gap: 3px; }
.lvl i b { width: 14px; height: 5px; border-radius: 2px; background: rgba(21,23,27,.1); transform: scaleX(0); transform-origin: left; transition: transform .5s cubic-bezier(.2,.7,.2,1), background .4s; }
.lvl.on i b { transform: none; }
.lvl[data-level="daily"] i b { background: #1f6f54; }
.lvl[data-level="often"] i b:nth-child(-n+2) { background: #1f6f54; }
.lvl[data-level="basic"] i b:nth-child(1) { background: #c9a227; }
.lvl i b:nth-child(2) { transition-delay: .1s; } .lvl i b:nth-child(3) { transition-delay: .2s; }
.lvl-key { display: flex; gap: 18px; flex-wrap: wrap; font-size: 12px; color: var(--muted, #686D76); margin: 10px 0 0; }
.lvl-key .lvl { display: inline-flex; gap: 8px; align-items: center; grid-template-columns: none; }
/* the about photo: grey until it is in view, then colour */
.photo-colour img { filter: grayscale(var(--g, 1)); transition: filter 1.2s ease; }
.photo-colour.on img { --g: 0; }
/* a laptop that holds a plain screenshot (JIOS page) */
.shot.laptop { max-width: 980px; }
.shot.laptop img { border-radius: 8px; }
/* project stack on /projects */
.feat--gate { background: var(--blue, #EFF3F5); }
.feat--fede { background: var(--peach, #F7F3EC); }
.feat .draw { background: #fff; border-radius: 18px; padding: 14px; box-shadow: 0 30px 70px -30px rgba(21,23,27,.35); }
.feat .phone-shot { width: min(250px, 70vw); margin: 0 auto; border-radius: 36px; background: #0d0f14; padding: 9px; box-shadow: 0 40px 90px -30px rgba(21,23,27,.55), inset 0 0 0 2px #2a2e36; }
.feat .phone-shot img { display: block; width: 100%; border-radius: 28px; aspect-ratio: 9 / 19; object-fit: cover; object-position: top; }
.feat-jump { display: flex; gap: 8px; flex-wrap: wrap; margin: 18px 0 0; }
.feat-jump a { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; border: 1px solid var(--line, #E6E4E2); border-radius: 999px; padding: 8px 14px; background: #fff; }

/* ---------- Fede Training inside the phone · 2026-11-20 ---------- */
.phone-shot { position: relative; }
.fl { display: none; position: absolute; inset: 9px; border-radius: 28px; background: #fbf6f4; font-family: "DM Sans", Arial, sans-serif; color: #2a1f22; overflow: hidden; padding: 26px 12px 12px; font-size: 11px; }
.fede-live .fl { display: grid; grid-template-rows: auto auto 1fr auto; gap: 8px; align-content: start; }
.fede-live .phone-shot > img { visibility: hidden; }
.fl-head b { display: block; font-size: 13px; color: #c7375a; }
.fl-head small { color: #8a7b80; font-size: 9.5px; }
.fl-video { position: relative; aspect-ratio: 16 / 10; border-radius: 12px; background: linear-gradient(135deg, #f3d4dc, #e9b9c6); display: grid; place-items: center; overflow: hidden; }
.fl-video::before { content: "1. MACHINE HIP THRUST"; position: absolute; left: 10px; top: 8px; font-size: 8.5px; font-weight: 800; letter-spacing: .06em; color: #7b2740; }
.fl-video span { width: 30px; height: 30px; border-radius: 50%; background: #fff; display: grid; place-items: center; color: #c7375a; font-size: 12px; box-shadow: 0 6px 16px -6px rgba(0,0,0,.4); }
.fl-video span::before { content: "▶"; margin-left: 2px; }
.fl-video.playing span::before { content: "❚❚"; margin: 0; font-size: 10px; }
.fl-video.playing span { animation: fl-pulse 1.2s ease-in-out infinite; }
@keyframes fl-pulse { 50% { transform: scale(1.08); } }
.fl-video u { position: absolute; left: 10px; right: 10px; bottom: 8px; height: 3px; border-radius: 2px; background: rgba(255,255,255,.6); text-decoration: none; }
.fl-video u i { display: block; height: 100%; width: 0; background: #c7375a; border-radius: 2px; transition: width 0s linear; }
.fl-sets { display: grid; gap: 5px; align-content: start; }
.fl-sets::before { content: "LOG THE SESSION"; font-size: 8.5px; letter-spacing: .1em; font-weight: 800; color: #8a7b80; }
.fl-set { display: grid; grid-template-columns: 1fr auto auto 16px; gap: 8px; align-items: center; background: #fff; border: 1px solid #f0dfe4; border-radius: 10px; padding: 7px 9px; animation: jl-in .5s cubic-bezier(.34,1.3,.64,1) backwards; }
.fl-set span { font-weight: 700; } .fl-set b { font-weight: 600; font-variant-numeric: tabular-nums; } .fl-set em { font-style: normal; font-weight: 800; color: #c7375a; }
.fl-set u { text-decoration: none; color: #1f6f54; font-weight: 800; opacity: 0; transition: opacity .3s; } .fl-set.ok u { opacity: 1; }
.fl-rest { display: flex; justify-content: space-between; align-items: center; background: #fff; border-radius: 10px; padding: 7px 9px; border: 1px solid #f0dfe4; }
.fl-rest small { font-size: 8.5px; letter-spacing: .1em; font-weight: 800; color: #8a7b80; } .fl-rest b { font-size: 16px; font-variant-numeric: tabular-nums; }
.fl-done { background: #e4f3ea; color: #1f6f54; border-radius: 10px; padding: 8px; text-align: center; font-weight: 800; animation: jl-in .5s cubic-bezier(.34,1.3,.64,1) backwards; }
.fl-nav { display: flex; justify-content: space-around; font-size: 8px; color: #8a7b80; padding-top: 4px; border-top: 1px solid #f0dfe4; } .fl-nav b { color: #c7375a; }

/* ---------- /projects: less static ---------- */
.feat { position: relative; overflow: hidden; }
.feat-n { position: absolute; right: 2%; top: -4%; font-size: clamp(160px, 28vw, 380px); font-weight: 800; letter-spacing: -.06em; line-height: 1; color: rgba(21,23,27,.045); pointer-events: none; user-select: none; transform: translateY(calc(var(--py, 0) * 1px)); }
.feat.flip .feat-n { right: auto; left: 2%; }
.feat-copy > * { opacity: 0; transform: translateY(18px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.feat.in .feat-copy > * { opacity: 1; transform: none; }
.feat.in .feat-copy > :nth-child(2) { transition-delay: .08s; } .feat.in .feat-copy > :nth-child(3) { transition-delay: .16s; } .feat.in .feat-copy > :nth-child(4) { transition-delay: .24s; } .feat.in .feat-copy > :nth-child(5) { transition-delay: .32s; } .feat.in .feat-copy > :nth-child(6) { transition-delay: .4s; }
.feat-device > * { animation: feat-float 7s ease-in-out infinite; }
@keyframes feat-float { 50% { transform: translateY(-8px); } }
.feat-rail { position: fixed; right: 18px; top: 50%; transform: translateY(-50%); display: grid; gap: 14px; z-index: 5; }
.feat-rail a { display: flex; align-items: center; gap: 8px; justify-content: flex-end; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--muted, #686D76); }
.feat-rail a span { opacity: 0; transform: translateX(6px); transition: opacity .3s, transform .3s; }
.feat-rail a i { width: 7px; height: 7px; border-radius: 50%; background: rgba(21,23,27,.2); transition: transform .3s, background .3s; }
.feat-rail a.on i { background: var(--ink, #15171B); transform: scale(1.5); } .feat-rail a.on span, .feat-rail:hover a span { opacity: 1; transform: none; }
@media (max-width: 900px) { .feat-rail { display: none; } .feat-n { font-size: 140px; top: 0; } }
@media (prefers-reduced-motion: reduce) { .feat-copy > * { opacity: 1; transform: none; transition: none; } .feat-device > * { animation: none; } .feat-n { transform: none; } }
/* the wide laptop on the JIOS page: the replay scales up to fill the screen */
.shot.laptop .jl { zoom: 1.45; }
