/* ==========================================================
   about-us.css — JYL About Us widget (scoped to .jyl-about)

   [Version History]
   v1.0.0 - 2026-08-02 - Initial.
   v2.0.0 - 2026-08-04 - Global map + animations.
   v3.0.0 - 2026-08-05 - Re-skin to the Linea-Light base to match the
       Contact page: cool black/white/grey + blue accent (no beige),
       mono-free (labels/numbers are plain sans), flat blocks, bold
       black/white section rhythm via .tone--light / .tone--dark, and a
       blue-gradient CTA band. Dark mode keeps the rhythm as
       "near-black vs pure-black". Layout classes are unchanged so the
       render markup and the Style tab keep working.
   ========================================================== */

/* ---- Palette (cool; theme provides the --jyl-* brand tokens) ---- */
.jyl-about {
    --ink: #141414;
    --ink-soft: #6b6b6b;
    --surface: #ffffff;
    --surface-2: #f6f6f6;
    --plate: #f2f2f2;
    --panel-dark: #000000;
    --line: rgba(0,0,0,.12);
    --jyl-mono: var(--jyl-font);      /* de-mono: everything is plain sans */
    color: var(--ink);
    font-family: var(--jyl-font);
    line-height: 1.6;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
}
html.jyl-dark .jyl-about {
    --ink: #f2f2f2;
    --ink-soft: #9a9a9a;
    --surface: #0c0c0e;
    --surface-2: #111214;
    --plate: #0d0d0f;
    --panel-dark: #000000;
    --line: rgba(255,255,255,.14);
}

.jyl-about *, .jyl-about *::before, .jyl-about *::after { box-sizing: border-box; }
.jyl-about h1, .jyl-about h2, .jyl-about h3 { margin: 0; font-weight: 500; line-height: 1.1; letter-spacing: -.015em; }
.jyl-about p { margin: 0; }
.jyl-about a { color: inherit; }
.jyl-about img { display: block; max-width: 100%; }
.jyl-about .wrap { width: 100%; padding-inline: clamp(20px, 5vw, 72px); }

/* Plain-sans eyebrow (no mono, no leading line). */
.jyl-about .eyebrow {
    font-family: var(--jyl-font); font-size: .78rem; font-weight: 500;
    letter-spacing: .14em; text-transform: uppercase; color: var(--jyl-blue);
    margin-bottom: 18px; display: block;
}
.jyl-about .eyebrow::before { display: none; }

/* ---- Section tones ---- */
.jyl-about .tone--light { background: var(--surface); color: var(--ink); }
.jyl-about .tone--dark {
    background: var(--panel-dark); color: #fff;
    --ink: #ffffff; --ink-soft: rgba(255,255,255,.66); --line: rgba(255,255,255,.16); --surface-2: rgba(255,255,255,.05); --plate: rgba(255,255,255,.04);
}
.jyl-about .tone--dark .eyebrow { color: var(--jyl-blue-light); }

/* ---- 1. Hero ---- */
.jyl-about .hero { padding: clamp(100px, 12vw, 170px) 0 clamp(60px, 8vw, 100px); position: relative; }
.jyl-about .hero-grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: 56px; align-items: end; }
.jyl-about .hero h1 { font-size: clamp(2.2rem, 4.8vw, 3.8rem); max-width: 16ch; }
.jyl-about .hero h1 em { font-style: normal; color: var(--jyl-blue); }
.jyl-about .hero p.lede { margin-top: 24px; max-width: 52ch; font-size: clamp(1rem, 1.4vw, 1.15rem); color: var(--ink-soft); }
.jyl-about .hero-plate { border-top: 1px solid var(--line); padding-top: 20px; }
.jyl-about .hero-plate .row { display: flex; justify-content: space-between; gap: 20px; font-size: .82rem; padding: 9px 0; border-bottom: 1px solid var(--line); }
.jyl-about .hero-plate .row:last-child { border-bottom: none; }
.jyl-about .hero-plate .row span:first-child { color: var(--ink-soft); text-transform: uppercase; letter-spacing: .06em; }
.jyl-about .hero-plate .row span:last-child { color: var(--ink); font-weight: 500; }

/* ---- 2. Origin ---- */
.jyl-about .origin { padding: clamp(70px, 9vw, 120px) 0; }
.jyl-about .origin-grid { display: grid; grid-template-columns: .8fr .9fr 1fr; gap: 44px; align-items: start; }
.jyl-about .origin h2 { font-size: clamp(1.7rem, 2.8vw, 2.4rem); max-width: 14ch; }
.jyl-about .origin .statement { font-size: 1.0625rem; color: var(--ink-soft); }
.jyl-about .origin .statement + .statement { margin-top: 18px; }
.jyl-about .origin .statement strong { color: var(--ink); font-weight: 500; }
.jyl-about .origin figure { margin: 0; overflow: hidden; aspect-ratio: 4/3; background: var(--surface-2); }
.jyl-about .origin figure img, .jyl-about .cap-card figure img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.2) contrast(1.05); }
.jyl-about .origin figcaption { font-size: .72rem; color: var(--ink-soft); margin-top: 10px; letter-spacing: .02em; }

/* ---- 3. Numbers (flat, hairline separators) ---- */
.jyl-about .numbers { padding: clamp(60px, 8vw, 100px) 0; }
.jyl-about .numbers-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.jyl-about .num-card { padding: 8px 28px 8px 0; border-left: 1px solid var(--line); padding-left: 28px; }
.jyl-about .num-card:first-child { border-left: 0; padding-left: 0; }
.jyl-about .num-card .n { font-size: clamp(2.2rem, 4vw, 3.2rem); font-weight: 500; color: var(--jyl-blue); letter-spacing: -.02em; line-height: 1; font-variant-numeric: tabular-nums; }
.jyl-about .num-card .l { margin-top: 10px; font-size: .9rem; color: var(--ink-soft); }

/* ---- 4. Capability ---- */
.jyl-about .capability { padding: clamp(70px, 9vw, 120px) 0; }
.jyl-about .cap-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 44px; flex-wrap: wrap; }
.jyl-about .cap-head h2 { font-size: clamp(1.7rem, 2.8vw, 2.4rem); max-width: 20ch; }
.jyl-about .cap-head p { max-width: 40ch; color: var(--ink-soft); font-size: .98rem; }
.jyl-about .cap-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.jyl-about .cap-card { overflow: hidden; background: transparent; }
.jyl-about .cap-card figure { aspect-ratio: 16/11; background: var(--surface-2); margin: 0; overflow: hidden; }
.jyl-about .cap-card .body { padding: 20px 0 0; }
.jyl-about .cap-card h3 { font-size: 1.05rem; }
.jyl-about .cap-card p { margin-top: 8px; font-size: .92rem; color: var(--ink-soft); }

/* ---- 4a. Proof strip (edge-to-edge images) ---- */
.jyl-about .proof-strip { padding: 0 0 clamp(70px, 9vw, 120px); }
.jyl-about .proof-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; }
.jyl-about .proof-grid figure { margin: 0; overflow: hidden; background: var(--surface-2); }
.jyl-about .proof-grid img { width: 100%; height: 100%; object-fit: cover; }
.jyl-about .proof-grid .tall { aspect-ratio: 16/12; }

/* ---- 4b. Founder ---- */
.jyl-about .founder { padding: clamp(70px, 9vw, 120px) 0; }
.jyl-about .founder-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 56px; align-items: center; }
.jyl-about .founder h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); max-width: 22ch; }
.jyl-about .founder .role { font-size: .82rem; color: var(--jyl-blue-light); letter-spacing: .05em; margin-top: 10px; text-transform: uppercase; }
.jyl-about .founder blockquote { margin: 24px 0 0; font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: var(--ink); border-left: 2px solid var(--jyl-blue); padding-left: 22px; line-height: 1.5; }
.jyl-about .founder figure { margin: 0; overflow: hidden; aspect-ratio: 3/4; background: var(--surface-2); }
.jyl-about .founder figure img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); }

/* ---- 5. Certifications ---- */
.jyl-about .certs { padding: clamp(70px, 9vw, 120px) 0; }
.jyl-about .certs-heading { font-size: clamp(1.7rem, 2.8vw, 2.4rem); max-width: 22ch; }

/* Flowing certificate wall (seamless multi-column marquee, waterfall) */
.jyl-about .certs-marquee {
    position: relative; display: flex; align-items: flex-start; gap: var(--cert-gap, 16px); margin: 40px 0 0;
    height: 660px; overflow: hidden; padding-inline: clamp(20px, 5vw, 72px);
    -webkit-mask-image: linear-gradient(to bottom, transparent, #000 var(--cert-fade, 24%), #000 calc(100% - var(--cert-fade, 24%)), transparent);
    mask-image: linear-gradient(to bottom, transparent, #000 var(--cert-fade, 24%), #000 calc(100% - var(--cert-fade, 24%)), transparent);
}
/* Depth-of-field: blurred, fading top & bottom bands so the middle stays sharp. */
.jyl-about .certs-marquee::before,
.jyl-about .certs-marquee::after {
    content: ''; position: absolute; left: 0; right: 0; height: var(--cert-fade, 24%); z-index: 3; pointer-events: none;
    -webkit-backdrop-filter: blur(var(--cert-blur, 4px)); backdrop-filter: blur(var(--cert-blur, 4px));
}
.jyl-about .certs-marquee::before { top: 0; -webkit-mask-image: linear-gradient(to bottom, #000, transparent); mask-image: linear-gradient(to bottom, #000, transparent); }
.jyl-about .certs-marquee::after { bottom: 0; -webkit-mask-image: linear-gradient(to top, #000, transparent); mask-image: linear-gradient(to top, #000, transparent); }
.jyl-about .certs-col { flex: 1 1 0; display: flex; flex-direction: column; gap: var(--cert-gap, 16px); will-change: transform; animation: jylCertDown var(--cert-speed, 60s) linear infinite; }
.jyl-about .certs-col--up { animation-name: jylCertUp; }
.jyl-about .certs-col--down { animation-name: jylCertDown; }
.jyl-certpause--yes .jyl-about .certs-marquee:hover .certs-col { animation-play-state: paused; }
@keyframes jylCertUp   { from { transform: translateY(0); }     to { transform: translateY(-50%); } }
@keyframes jylCertDown { from { transform: translateY(-50%); }  to { transform: translateY(0); } }
.jyl-about .cert-thumb { flex: 0 0 auto; display: block; width: 100%; padding: 0; border: 1px solid var(--line); background: var(--surface); cursor: pointer; overflow: hidden; transition: border-color .25s ease; }
.jyl-about .cert-thumb img { width: 100%; height: auto; display: block; }
.jyl-about .cert-thumb:hover { border-color: var(--jyl-blue); }
.jyl-about .cert-thumb:focus-visible { outline: 2px solid var(--jyl-blue); outline-offset: 2px; }

.jyl-about .certs-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 56px; }
.jyl-about .cert-plate { padding: 26px 22px; text-align: left; border-left: 1px solid var(--line); }
.jyl-about .cert-plate:first-child { border-left: 0; padding-left: 0; }
.jyl-about .cert-plate .badge { font-weight: 600; color: var(--jyl-blue); font-size: 1.1rem; margin-bottom: 12px; }
.jyl-about .cert-plate h3 { font-size: .95rem; }
.jyl-about .cert-plate p { margin-top: 8px; font-size: .82rem; color: var(--ink-soft); }

/* Certificate dialog (native <dialog>) — vertical, shorts-style */
.jyl-about .cert-dialog { padding: 0; border: 0; background: transparent; width: min(96vw, 1180px); max-width: 96vw; height: 92vh; max-height: 92vh; color: #fff; overflow: hidden; }
.jyl-about .cert-dialog::backdrop { background: rgba(0,0,0,.9); backdrop-filter: blur(3px); }
.jyl-about .cert-dialog[open] { display: grid; grid-template-columns: 96px auto 56px; grid-template-rows: 1fr; gap: 16px; justify-content: center; align-items: stretch; }

/* Left vertical thumbnail rail (desktop) */
.jyl-about .cert-strip { grid-column: 1; grid-row: 1; display: flex; flex-direction: column; gap: 10px; overflow-y: auto; overflow-x: hidden; padding: 4px; scrollbar-width: thin; }
.jyl-about .cert-strip-thumb { flex: 0 0 auto; width: 100%; aspect-ratio: 3 / 4; padding: 0; border: 1px solid rgba(255,255,255,.22); background: #fff; cursor: pointer; overflow: hidden; opacity: .5; transition: opacity .2s ease, border-color .2s ease; }
.jyl-about .cert-strip-thumb img { width: 100%; height: 100%; object-fit: cover; }
.jyl-about .cert-strip-thumb.is-active, .jyl-about .cert-strip-thumb:hover { opacity: 1; border-color: var(--jyl-blue); }

/* Stage */
.jyl-about .cert-stage { grid-column: 2; grid-row: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; min-height: 0; overflow: hidden; }
.jyl-about .cert-dialog-img { max-width: 68vw; max-height: 86vh; width: auto; height: auto; object-fit: contain; background: #fff; }
.jyl-about .cert-dialog-img.slide-in { animation: certSlideIn .35s ease; }
@keyframes certSlideIn { from { opacity: 0; transform: translateY(var(--from, 40px)); } to { opacity: 1; transform: none; } }
.jyl-about .cert-dialog-title { font-size: .9rem; color: rgba(255,255,255,.85); text-align: center; }

/* Up / down nav (right column, stacked) */
.jyl-about .cert-nav { grid-column: 3; grid-row: 1; width: 52px; height: 52px; border-radius: 999px; border: 1px solid rgba(255,255,255,.35); background: rgba(0,0,0,.4); color: #fff; font-size: 1.4rem; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background .2s ease; }
.jyl-about .cert-nav:hover { background: rgba(255,255,255,.18); }
.jyl-about .cert-prev { align-self: start; }
.jyl-about .cert-next { align-self: end; }
.jyl-about .cert-dialog-close { position: fixed; top: 16px; right: 20px; width: 44px; height: 44px; border: 0; background: transparent; color: #fff; font-size: 2.2rem; line-height: 1; cursor: pointer; opacity: .85; z-index: 5; }
.jyl-about .cert-dialog-close:hover { opacity: 1; }

/* Mobile: full-screen stage + bottom horizontal rail (thumb reach zone) */
@media (max-width: 768px) {
    .jyl-about .cert-dialog { width: 100vw; max-width: 100vw; height: 100vh; max-height: 100vh; }
    .jyl-about .cert-dialog[open] { grid-template-columns: 1fr; grid-template-rows: 1fr 88px; gap: 8px; }
    .jyl-about .cert-stage { grid-column: 1; grid-row: 1; position: relative; }
    .jyl-about .cert-dialog-img { max-height: 72vh; }
    .jyl-about .cert-strip { grid-column: 1; grid-row: 2; flex-direction: row; overflow-x: auto; overflow-y: hidden; padding: 6px 12px; }
    .jyl-about .cert-strip-thumb { width: 58px; height: auto; aspect-ratio: 3 / 4; }
    .jyl-about .cert-nav { position: absolute; right: 12px; width: 44px; height: 44px; font-size: 1.2rem; z-index: 4; }
    .jyl-about .cert-prev { top: 38%; align-self: auto; }
    .jyl-about .cert-next { top: 52%; align-self: auto; }
}

/* Fewer flowing columns on small screens for readability */
@media (max-width: 768px) {
    .jyl-about .certs-col:nth-child(n + 3) { display: none; }
}
@media (max-width: 480px) {
    .jyl-about .certs-col:nth-child(n + 2) { display: none; }
}

/* ---- 6. Global Presence (map background + big figures) ---- */
.jyl-about .global.global--map {
    position: relative; padding: clamp(60px, 8vw, 120px) 0; min-height: clamp(360px, 42vw, 560px);
    display: flex; align-items: center; background-color: var(--jyl-blue-dark);
    background-size: cover; background-position: center right; background-repeat: no-repeat; border: 0; overflow: hidden;
}
.jyl-about .global.global--map::before { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(11,22,64,.55) 0%, rgba(11,22,64,.18) 42%, transparent 66%); }
.jyl-about .global--map .wrap { position: relative; z-index: 1; }
.jyl-about .global--map .eyebrow { color: #fff; margin-bottom: 28px; }
.jyl-about .global-figures { display: flex; flex-direction: column; gap: clamp(28px, 4vw, 52px); }
.jyl-about .gfig-n { display: block; font-weight: 500; color: #fff; font-size: clamp(2.6rem, 6vw, 4.6rem); line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.jyl-about .gfig-l { display: block; margin-top: 10px; color: rgba(255,255,255,.82); font-size: clamp(.95rem, 1.4vw, 1.15rem); }

/* ---- 7. FAQ ---- */
.jyl-about .faq { padding: clamp(70px, 9vw, 120px) 0; }
.jyl-about .faq-heading { font-size: clamp(1.7rem, 2.8vw, 2.4rem); }
.jyl-about .faq-list { max-width: 820px; margin-top: 44px; }
.jyl-about .faq-item { border-bottom: 1px solid var(--line); }
.jyl-about .faq-q { width: 100%; text-align: left; background: none; border: none; color: var(--ink); font-family: var(--jyl-font); font-size: 1.08rem; font-weight: 500; padding: 24px 0; display: flex; justify-content: space-between; align-items: center; cursor: pointer; gap: 20px; list-style: none; }
.jyl-about .faq-q::-webkit-details-marker { display: none; }
.jyl-about .faq-q .plus { color: var(--jyl-blue); flex-shrink: 0; transition: transform .25s ease; font-weight: 400; }
.jyl-about .faq-item[open] .faq-q .plus { transform: rotate(45deg); }
.jyl-about .faq-a { padding: 0 0 24px; color: var(--ink-soft); font-size: .98rem; max-width: 66ch; }

/* ---- 8. CTA band (blue gradient, full-width — matches Contact) ---- */
.jyl-about .cta {
    background: linear-gradient(120deg, var(--jyl-blue-dark) 0%, var(--jyl-blue) 100%);
    background-size: cover; background-position: center; color: #fff; text-align: center;
    padding: clamp(56px, 8vw, 110px) 24px; position: relative; overflow: hidden;
}
.jyl-about .cta::before { content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.jyl-about .cta > * { position: relative; z-index: 1; }
.jyl-about .cta h2 { color: #fff; font-size: clamp(1.5rem, 3vw, 2.4rem); max-width: 22ch; margin: 0 auto; }
.jyl-about .cta p { margin: 14px auto 0; color: rgba(255,255,255,.82); max-width: 44ch; }
.jyl-about .cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 30px; }
.jyl-about .btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 40px; border-radius: 999px; font-size: .9rem; font-weight: 500; text-decoration: none; white-space: nowrap; cursor: pointer; border: 1px solid transparent; transition: background .2s ease, color .2s ease; }
.jyl-about .btn--primary { background: #fff; color: var(--jyl-blue); }
.jyl-about .btn--primary:hover { background: rgba(255,255,255,.88); }
.jyl-about .btn--whatsapp { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.jyl-about .btn--whatsapp:hover { background: rgba(255,255,255,.12); }

/* ---- Responsive ---- */
@media (max-width: 900px) {
    .jyl-about .hero-grid, .jyl-about .origin-grid, .jyl-about .founder-grid { grid-template-columns: 1fr; }
    .jyl-about .numbers-grid, .jyl-about .certs-grid { grid-template-columns: repeat(2, 1fr); }
    .jyl-about .num-card:nth-child(3), .jyl-about .cert-plate:nth-child(3) { border-left: 0; padding-left: 0; }
    .jyl-about .cap-strip { grid-template-columns: 1fr; }
    .jyl-about .hero { padding: 120px 0 60px; }
}

/* ---- Full-bleed (break out of a centred theme container) — Style-tab toggle ---- */
.jyl-fullbleed--yes .jyl-about { width: 100vw; max-width: 100vw; position: relative; left: 50%; right: 50%; margin-left: -50vw; margin-right: -50vw; }