/* =====================================================================
   Saagar portfolio: shared styles (black and white theme)
   Loaded by every page: fonts, navigation, footer, and the home page layout
   ===================================================================== */

:root {
    --ink: #0A0A0A;
    --paper: #FFFFFF;
    --soft: #F2F2F2;
    --line: rgba(10, 10, 10, .16);
    --mute: rgba(10, 10, 10, .62);
}

/* ---------- typography: one family everywhere ---------- */
html, body { font-family: 'Inter Tight', Inter, system-ui, -apple-system, 'Segoe UI', sans-serif; }
body { color: var(--ink); -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, h5, h6, button, input, select, textarea { font-family: inherit; }
::selection { background: #0A0A0A; color: #fff; }
.pg-in { position: relative; z-index: 1; }

/* ---------- navigation (same on every page) ---------- */
.site-nav { background: #fff; border-bottom: 1px solid rgba(10, 10, 10, .12); padding: 1rem 1.5rem; position: relative; z-index: 40; }
.site-nav__in { max-width: 80rem; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.site-logo { display: inline-flex; align-items: center; gap: .6rem; color: var(--ink); }
.site-logo__mark { width: 34px; height: 34px; border-radius: 9999px; background: #0A0A0A; color: #fff; display: grid; place-content: center; font-size: .8rem; font-weight: 700; letter-spacing: 0; }
.site-logo__name { font-size: 1.25rem; font-weight: 600; letter-spacing: -0.03em; }
.site-links { display: none; gap: 2rem; align-items: center; }
.site-links a { position: relative; font-size: .95rem; font-weight: 500; color: rgba(10, 10, 10, .68); padding: .3rem 0; transition: color .2s; }
.site-links a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: #0A0A0A; transform: scaleX(0); transform-origin: left; transition: transform .3s cubic-bezier(.16, 1, .3, 1); }
.site-links a:hover, .site-links a[aria-current="page"] { color: #0A0A0A; }
.site-links a:hover::after, .site-links a[aria-current="page"]::after { transform: scaleX(1); }
.site-cta { display: none; background: #0A0A0A; color: #fff; border: 1.5px solid #0A0A0A; padding: .6rem 1.4rem; border-radius: 9999px; font-size: .95rem; font-weight: 500; transition: background .25s, color .25s; }
.site-cta:hover { background: #fff; color: #0A0A0A; }
.site-burger { display: inline-grid; place-content: center; width: 44px; height: 44px; border: 0; background: none; color: #0A0A0A; cursor: pointer; }
@media (min-width: 768px) { .site-links { display: flex; } .site-cta { display: inline-block; } .site-burger { display: none; } }
.site-menu { background: #0A0A0A; color: #fff; }
.site-menu__bar { display: flex; justify-content: space-between; align-items: center; padding: 1rem 1.5rem; border-bottom: 1px solid rgba(255, 255, 255, .2); }
.site-menu__links { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%; gap: 1.6rem; padding-bottom: 6rem; }
.site-menu__links a { font-size: 2.2rem; font-weight: 500; letter-spacing: -0.04em; color: #fff; }
.site-menu__links a:hover { text-decoration: underline; text-underline-offset: 6px; }
.site-menu .site-logo { color: #fff; }
.site-menu .site-logo__mark { background: #fff; color: #0A0A0A; }

/* ---------- home page: section-by-section pager (desktop) ---------- */
.pager-on, .pager-on body { height: 100%; overflow: hidden; }
.pager-on #pg-nav { position: fixed; top: 0; left: 0; right: 0; z-index: 60; }
.pager-on #pager { position: fixed; left: 0; right: 0; bottom: 0; top: var(--nav-h, 64px); overflow: hidden; }
.pager-on .pg-sec {
    position: absolute; inset: 0; overflow-y: auto; overflow-x: hidden;
    display: flex; flex-direction: column;
    opacity: 0; visibility: hidden; pointer-events: none;
    transform: translateY(70px) scale(.985);
    transition: opacity .8s ease, transform .9s cubic-bezier(.65, 0, .35, 1), visibility 0s linear .9s;
    scrollbar-width: thin; overscroll-behavior: contain;
}
.pager-on .pg-sec.pg-past { transform: translateY(-70px) scale(.985); }
.pager-on .pg-sec.pg-active {
    opacity: 1; visibility: visible; pointer-events: auto; transform: none;
    transition: opacity .8s ease .1s, transform .9s cubic-bezier(.16, 1, .3, 1) .1s, visibility 0s;
}
.pager-on .pg-in { margin-block: auto; width: 100%; }
.pager-on .pg-in > * > * { opacity: 0; transform: translateY(28px); transition: opacity .6s ease, transform .7s cubic-bezier(.16, 1, .3, 1); }
.pager-on .pg-active .pg-in > * > * { opacity: 1; transform: none; transition-delay: calc(.35s + var(--i, 0) * 90ms); }
#pg-dots { display: none; }
.pager-on #pg-dots { display: flex; flex-direction: column; gap: 14px; position: fixed; right: 20px; top: 50%; transform: translateY(-50%); z-index: 55; }
#pg-dots button { position: relative; width: 12px; height: 12px; border-radius: 9999px; border: 2px solid #0A0A0A; background: transparent; padding: 0; cursor: pointer; transition: background .3s, transform .3s, border-color .3s; }
#pg-dots button.on { background: #0A0A0A; transform: scale(1.35); }
#pg-dots.dark button:not(.on) { border-color: #fff; }
#pg-dots.dark button.on { background: #fff; border-color: #fff; }
#pg-dots button::after { content: attr(data-label); position: absolute; right: 22px; top: 50%; transform: translateY(-50%); background: #0A0A0A; color: #fff; font-size: 12px; padding: 3px 8px; border-radius: 6px; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .2s; }
#pg-dots.dark button::after { background: #fff; color: #0A0A0A; }
#pg-dots button:hover::after { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .pager-on .pg-sec, .pager-on .pg-in > * > * { transition: none; } }

/* ---------- black and white line art (pure CSS, no images) ---------- */
section.sx::before, section.hero-bg::after {
    content: ''; position: absolute; pointer-events: none; z-index: 0;
}
/* concentric rings: light + dark versions */
section.hero-bg {
    background-repeat: no-repeat; background-position: right -170px center; background-size: 780px 780px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 800' fill='none' stroke='%23000' stroke-opacity='.16'%3E%3Ccircle cx='400' cy='400' r='60'/%3E%3Ccircle cx='400' cy='400' r='130'/%3E%3Ccircle cx='400' cy='400' r='200'/%3E%3Ccircle cx='400' cy='400' r='270'/%3E%3Ccircle cx='400' cy='400' r='340'/%3E%3Ccircle cx='400' cy='400' r='395'/%3E%3Cpath d='M0 400H800M400 0V800M117 117L683 683M683 117L117 683' stroke-opacity='.09'/%3E%3C/svg%3E");
}
section.logos-bg {
    background-repeat: no-repeat; background-position: left -240px bottom -340px; background-size: 780px 780px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 800' fill='none' stroke='%23fff' stroke-opacity='.15'%3E%3Ccircle cx='400' cy='400' r='60'/%3E%3Ccircle cx='400' cy='400' r='130'/%3E%3Ccircle cx='400' cy='400' r='200'/%3E%3Ccircle cx='400' cy='400' r='270'/%3E%3Ccircle cx='400' cy='400' r='340'/%3E%3Ccircle cx='400' cy='400' r='395'/%3E%3Cpath d='M0 400H800M400 0V800' stroke-opacity='.08'/%3E%3C/svg%3E");
}
footer.contact-bg {
    background-repeat: no-repeat; background-position: right -280px bottom -420px; background-size: 900px 900px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 800' fill='none' stroke='%23fff' stroke-opacity='.13'%3E%3Ccircle cx='400' cy='400' r='60'/%3E%3Ccircle cx='400' cy='400' r='130'/%3E%3Ccircle cx='400' cy='400' r='200'/%3E%3Ccircle cx='400' cy='400' r='270'/%3E%3Ccircle cx='400' cy='400' r='340'/%3E%3Ccircle cx='400' cy='400' r='395'/%3E%3C/svg%3E");
}
/* halftone dots (light sections) */
section.hero-bg::after {
    left: 0; bottom: 0; width: 24%; height: 36%; opacity: .3;
    background-image: radial-gradient(circle, #0A0A0A 1px, transparent 1.6px); background-size: 12px 12px;
    -webkit-mask-image: radial-gradient(120% 100% at 0% 100%, #000, transparent 70%); mask-image: radial-gradient(120% 100% at 0% 100%, #000, transparent 70%);
}
section.sx-light::before {
    left: 0; bottom: 0; width: 34%; height: 46%; opacity: .32;
    background-image: radial-gradient(circle, #0A0A0A 1.1px, transparent 1.7px); background-size: 13px 13px;
    -webkit-mask-image: radial-gradient(120% 100% at 0% 100%, #000, transparent 70%); mask-image: radial-gradient(120% 100% at 0% 100%, #000, transparent 70%);
}
section.sx-cream::before {
    left: 0; top: 0; width: 26%; height: 40%; opacity: .3;
    background-image: radial-gradient(circle, #0A0A0A 1px, transparent 1.6px); background-size: 12px 12px;
    -webkit-mask-image: radial-gradient(120% 100% at 0% 0%, #000, transparent 70%); mask-image: radial-gradient(120% 100% at 0% 0%, #000, transparent 70%);
}
/* diagonal hatch (dark section) */
section.sx-dark::before {
    right: 0; top: 0; width: 55%; height: 85%;
    background: repeating-linear-gradient(135deg, rgba(255, 255, 255, .09) 0 1px, transparent 1px 11px);
    -webkit-mask-image: radial-gradient(110% 100% at 100% 0%, #000, transparent 70%); mask-image: radial-gradient(110% 100% at 100% 0%, #000, transparent 70%);
}
section.hero-bg, section.logos-bg, section.sx, footer.contact-bg { position: relative; overflow: hidden; }

/* ---------- hero ---------- */
section.hero-bg { background-color: #fff; color: #0A0A0A; }
.hero-title { font-size: clamp(2.6rem, 5.4vw, 5.4rem); line-height: .98; letter-spacing: -0.045em; font-weight: 500; }
.hero-title em, .sx-title em, .lg-title em, .ct-title em, .ds-hero-title em, .ds-h2 em, .ua-hero-title em { font-family: 'Instrument Serif', Georgia, serif; font-style: italic; font-weight: 400; letter-spacing: -0.02em; color: inherit; }
.hero-lead { margin-top: 1.6rem; max-width: 34rem; font-size: 1.15rem; line-height: 1.5; letter-spacing: -0.01em; color: rgba(10, 10, 10, .68); }
.hero-actions { margin-top: 2rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1.6rem; }
.hero-btn { display: inline-flex; align-items: center; gap: .7rem; background: #0A0A0A; color: #fff; border: 1.5px solid #0A0A0A; padding: 1rem 1.8rem; border-radius: 9999px; font-weight: 500; transition: background .3s, color .3s, transform .3s; }
.hero-btn:hover { background: #fff; color: #0A0A0A; transform: translateY(-2px); }
.hero-btn-arrow { display: inline-block; transition: transform .3s; }
.hero-btn:hover .hero-btn-arrow { transform: translate(3px, -3px); }
.hero-link { font-weight: 500; padding-bottom: 2px; border-bottom: 1px solid rgba(10, 10, 10, .4); transition: opacity .25s; }
.hero-link:hover { opacity: .55; }
.hero-stats { margin-top: 2.6rem; padding-top: 1.4rem; border-top: 1px solid rgba(10, 10, 10, .2); display: flex; flex-wrap: wrap; gap: 1.5rem 3rem; }
.hero-num { font-size: 2.3rem; line-height: 1; letter-spacing: -0.04em; font-weight: 500; }
.hero-cap { margin-top: .4rem; font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(10, 10, 10, .6); font-weight: 500; }
.hero-img { width: auto; max-width: 100%; height: auto; max-height: calc(100vh - 190px); filter: grayscale(1) contrast(1.06) drop-shadow(0 30px 45px rgba(0, 0, 0, .28)); transition: filter .7s ease, transform .7s cubic-bezier(.16, 1, .3, 1); }
.hero-img:hover { filter: grayscale(0) contrast(1) drop-shadow(0 34px 50px rgba(0, 0, 0, .32)); transform: scale(1.02); }
@media (prefers-reduced-motion: reduce) { .hero-img { transition: none; } }
@media (max-width: 1023px) { .hero-img { max-height: none; } }

/* ---------- logos marquee ---------- */
section.logos-bg { background-color: #0A0A0A; color: #fff; }
.lg-title { font-size: clamp(2.4rem, 5vw, 4.6rem); line-height: .98; letter-spacing: -0.045em; font-weight: 500; max-width: 44rem; }
.lg-sub { max-width: 21rem; font-size: 1rem; line-height: 1.5; color: rgba(255, 255, 255, .65); }
.lg-marquee { margin: 2.6rem calc(50% - 50vw) 0; overflow: hidden; display: flex; flex-direction: column; gap: 1.7rem;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.lg-row { overflow: hidden; }
.lg-track { display: flex; width: max-content; animation: lg-scroll 60s linear infinite; }
.lg-track.lg-rev { animation-direction: reverse; animation-duration: 70s; }
.lg-track.lg-slow { animation-duration: 80s; }
.lg-marquee:hover .lg-track { animation-play-state: paused; }
.lg-group { display: flex; flex: none; align-items: center; }
.lg-item { flex: none; display: flex; align-items: center; justify-content: center; height: 64px; padding: 0 2.2rem; }
.lg-img { height: 44px; width: auto; max-width: 130px; object-fit: contain; filter: brightness(0) invert(1); opacity: .5; transition: opacity .35s, transform .35s cubic-bezier(.16, 1, .3, 1); }
.lg-item:hover .lg-img { opacity: 1; transform: scale(1.14); }
@keyframes lg-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
    .lg-track { animation: none; width: auto; flex-wrap: wrap; justify-content: center; }
    .lg-group[aria-hidden="true"] { display: none; }
    .lg-group { flex-wrap: wrap; justify-content: center; }
}

/* ---------- editorial sections ---------- */
section.sx { color: #0A0A0A; }
section.sx-light { background: #fff; }
section.sx-cream { background: var(--soft); }
section.sx-dark { background: #0A0A0A; color: #fff; }
.sx-title { font-size: clamp(2.3rem, 4.6vw, 4.4rem); line-height: 1; letter-spacing: -0.045em; font-weight: 500; }
.sx-lead { font-size: 1.1rem; line-height: 1.55; letter-spacing: -0.01em; color: rgba(10, 10, 10, .68); max-width: 32rem; }
.sx-dark .sx-lead { color: rgba(255, 255, 255, .66); }
.sx-label { font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 500; color: rgba(10, 10, 10, .55); }
.sx-dark .sx-label { color: rgba(255, 255, 255, .55); }
.sx-num { font-family: 'Instrument Serif', Georgia, serif; font-style: italic; font-size: 1.5rem; line-height: 1; color: inherit; opacity: .6; }
.sx-list { border-top: 1px solid rgba(10, 10, 10, .2); }
.sx-item { display: grid; grid-template-columns: 3.4rem 1fr; padding: 1.5rem 0; border-bottom: 1px solid rgba(10, 10, 10, .2); }
.sx-item h3 { font-size: 1.6rem; letter-spacing: -0.035em; font-weight: 500; line-height: 1.1; }
.sx-item p { margin-top: .5rem; color: rgba(10, 10, 10, .65); max-width: 26rem; }
.sx-plain { margin-top: .9rem; border-top: 1px solid rgba(10, 10, 10, .2); }
.sx-plain li { padding: .75rem 0; border-bottom: 1px solid rgba(10, 10, 10, .2); font-size: 1.05rem; font-weight: 500; letter-spacing: -0.01em; }
.sx-more-row em { font-family: 'Instrument Serif', Georgia, serif; font-size: 1.35rem; font-weight: 400; color: inherit; }
.sx-cards { border-bottom: 1px solid rgba(255, 255, 255, .2); }
.sx-card { padding: 1.6rem 2rem 2.2rem 0; border-top: 1px solid rgba(255, 255, 255, .2); transition: background .4s; }
a.sx-card { display: block; }
.sx-card + .sx-card { padding-left: 2rem; }
@media (min-width: 768px) { .sx-card + .sx-card { border-left: 1px solid rgba(255, 255, 255, .2); } }
.sx-card:hover { background: rgba(255, 255, 255, .05); }
.sx-card h3 { margin-top: 2.2rem; font-size: clamp(1.7rem, 2.6vw, 2.4rem); letter-spacing: -0.04em; font-weight: 500; line-height: 1.05; }
.sx-card p { margin-top: .9rem; max-width: 26rem; color: rgba(255, 255, 255, .66); }
.sx-arrow { font-size: 1.3rem; color: rgba(255, 255, 255, .5); transition: transform .35s cubic-bezier(.16, 1, .3, 1), color .3s; }
.sx-card:hover .sx-arrow { transform: translate(4px, -4px); color: #fff; }
.sx-meta { display: flex; justify-content: space-between; gap: 1rem; font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 500; color: rgba(10, 10, 10, .55); }
.sx-meta span:first-child { color: #0A0A0A; font-weight: 700; }
.sx-seeall { display: inline-flex; gap: .5rem; font-weight: 500; padding-bottom: 2px; border-bottom: 1px solid rgba(10, 10, 10, .4); transition: opacity .25s; }
.sx-seeall span { transition: transform .3s; }
.sx-seeall:hover { opacity: .55; }
.sx-seeall:hover span { transform: translateX(4px); }
.sx-case { display: block; }
.sx-case-img { overflow: hidden; border-radius: 18px; background: rgba(10, 10, 10, .08); }
.sx-case-img img { width: 100%; height: 200px; object-fit: cover; filter: grayscale(1) contrast(1.05); transition: transform .8s cubic-bezier(.16, 1, .3, 1), filter .5s; }
.sx-case:hover .sx-case-img img { transform: scale(1.06); }
.sx-case .sx-meta { margin-top: 1.1rem; }
.sx-case h2, .sx-case h3 { margin-top: .6rem; font-size: 1.6rem; line-height: 1.12; letter-spacing: -0.035em; font-weight: 500; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 5px; transition: text-decoration-color .25s; }
.sx-case:hover h2, .sx-case:hover h3 { text-decoration-color: #0A0A0A; }
.sx-case p { margin-top: .6rem; font-size: .95rem; line-height: 1.5; color: rgba(10, 10, 10, .65); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.sx-foot { display: flex; justify-content: space-between; margin-top: 1rem; padding-top: .9rem; border-top: 1px solid rgba(10, 10, 10, .2); font-size: .85rem; color: rgba(10, 10, 10, .6); }
.sx-read { color: #0A0A0A; font-weight: 500; }
.sx-read b { display: inline-block; font-weight: 500; transition: transform .3s; }
.sx-case:hover .sx-read b { transform: translate(3px, -3px); }
.sx-arts { border-top: 1px solid rgba(10, 10, 10, .2); }
.sx-art { display: grid; grid-template-columns: 1fr 9rem; gap: 1.6rem; align-items: center; padding: .9rem 0; border-bottom: 1px solid rgba(10, 10, 10, .2); transition: padding .4s cubic-bezier(.16, 1, .3, 1); }
.sx-art:hover { padding-left: .8rem; }
.sx-art h2, .sx-art h3 { margin-top: .35rem; font-size: 1.15rem; line-height: 1.22; letter-spacing: -0.025em; font-weight: 500; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 4px; transition: text-decoration-color .25s; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sx-art:hover h2, .sx-art:hover h3 { text-decoration-color: #0A0A0A; }
.sx-art p { margin-top: .3rem; font-size: .85rem; line-height: 1.4; color: rgba(10, 10, 10, .6); display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.sx-thumb { height: 5.2rem; overflow: hidden; border-radius: 12px; background: rgba(10, 10, 10, .08); }
.sx-thumb img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); transition: transform .6s cubic-bezier(.16, 1, .3, 1), filter .5s; }
.sx-art:hover .sx-thumb img { transform: scale(1.1); }
@media (max-width: 640px) { .sx-art { grid-template-columns: 1fr 6rem; gap: 1rem; } .sx-card + .sx-card { padding-left: 0; } .sx-card { padding-right: 0; } }

/* ---------- footer / contact (same on every page) ---------- */
footer.contact-bg { background-color: #0A0A0A; border-top: 1px solid rgba(255, 255, 255, .14); color: #fff; --cream: #fff; --vermilion: #fff; --line: rgba(255, 255, 255, .22); font-family: 'Inter Tight', Inter, system-ui, sans-serif; }
.ct-title { font-size: clamp(3rem, 7.6vw, 8rem); line-height: .94; letter-spacing: -0.045em; font-weight: 500; color: #fff; }
.ct-circle { flex: none; width: 144px; height: 144px; border-radius: 9999px; background: #fff; color: #0A0A0A; border: 1.5px solid #fff; flex-direction: column; align-items: center; justify-content: center; gap: 6px; font-size: 14px; font-weight: 500; transition: transform .4s cubic-bezier(.16, 1, .3, 1), background .3s, color .3s; }
.ct-circle:hover { transform: scale(1.1) rotate(-6deg); background: transparent; color: #fff; }
.ct-arrow { display: inline-block; font-size: 15px; transition: transform .3s; }
.ct-circle:hover .ct-arrow { transform: translate(3px, -3px); }
.ct-rule { height: 1px; background: var(--line); }
.ct-lead { font-size: 1.2rem; line-height: 1.45; max-width: 30rem; letter-spacing: -0.01em; }
.ct-list { border-top: 1px solid var(--line); }
.ct-row { display: grid; grid-template-columns: 6.5rem 1fr; align-items: center; gap: 1rem; padding: .95rem 0; border-bottom: 1px solid var(--line); font-size: .95rem; font-weight: 500; }
.ct-row dt, .ct-label { font-size: .6rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .6); font-weight: 500; }
.ct-email { font-size: 1.5rem; letter-spacing: -0.03em; }
.ct-u { display: inline-block; padding-bottom: 2px; border-bottom: 1px solid rgba(255, 255, 255, .45); transition: opacity .25s; }
.ct-u:hover { opacity: .6; }
.ct-sm { font-size: .7em; }
.ct-copy { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 9999px; padding: 4px 11px; font-size: .7rem; font-weight: 600; color: #fff; background: transparent; cursor: pointer; transition: background .25s, color .25s, border-color .25s; }
.ct-copy:hover { border-color: #fff; }
.ct-copy.done { background: #fff; border-color: #fff; color: #0A0A0A; }
.ct-dot-sep { opacity: .6; }
.ct-status { position: relative; width: 8px; height: 8px; border-radius: 9999px; background: #fff; }
.ct-status::after { content: ''; position: absolute; inset: 0; border-radius: inherit; background: #fff; animation: ct-ping 1.8s cubic-bezier(0, 0, .2, 1) infinite; }
@keyframes ct-ping { 75%, 100% { transform: scale(2.6); opacity: 0; } }
.ct-elsewhere { display: flex; flex-wrap: wrap; align-items: center; gap: .9rem 1.6rem; padding: 1.4rem 0; border-top: 1px solid var(--line); font-size: .85rem; font-weight: 500; }
.ct-label { margin-right: .6rem; }
.ct-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; padding-top: 1.2rem; padding-right: 76px; border-top: 1px solid var(--line); font-size: .75rem; color: rgba(255, 255, 255, .55); }
.ct-top { color: rgba(255, 255, 255, .8); background: none; border: 0; cursor: pointer; font: inherit; transition: opacity .25s; }
.ct-top:hover { opacity: .6; }
.ct-top span { display: inline-block; transition: transform .3s; }
.ct-top:hover span { transform: translateY(-3px); }
@media (max-width: 767px) { .ct-row { grid-template-columns: 5.2rem 1fr; } .ct-email { font-size: 1.15rem; } }
@media (prefers-reduced-motion: reduce) { .ct-status::after { animation: none; } }

.nowrap { white-space: nowrap; }

/* ---------- articles: list page + detail pages ---------- */
.art-back { display: inline-flex; gap: .5rem; font-size: .9rem; font-weight: 500; padding-bottom: 2px; border-bottom: 1px solid rgba(10, 10, 10, .4); transition: opacity .25s; }
.art-back:hover { opacity: .55; }
.art-meta { margin-top: 2.2rem; font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 500; color: rgba(10, 10, 10, .6); }
.art-title { margin-top: 1rem; font-size: clamp(2.5rem, 6vw, 5.4rem); line-height: .98; letter-spacing: -0.048em; font-weight: 500; color: #0A0A0A; max-width: 62rem; }
.art-title em { font-family: 'Instrument Serif', Georgia, serif; font-style: italic; font-weight: 400; letter-spacing: -0.02em; }
.art-dek { margin-top: 1.8rem; max-width: 44rem; font-size: 1.2rem; line-height: 1.55; color: rgba(10, 10, 10, .66); font-style: normal; }
.art .art-cover { margin: 0 0 2.6rem; border-radius: 22px; overflow: hidden; background: #EDEDED; }
.art .art-cover img { margin: 0; border-radius: 0; display: block; width: 100%; height: auto; aspect-ratio: 21 / 9; object-fit: cover; filter: grayscale(1) contrast(1.05); transition: filter .7s ease, transform 1s cubic-bezier(.16, 1, .3, 1); }
.art .art-cover:hover img { filter: grayscale(0) contrast(1); transform: scale(1.02); }
.art-grid { display: grid; gap: 2.4rem; margin-top: 3.4rem; }
@media (min-width: 1024px) { .art-grid { grid-template-columns: 4fr 8fr; gap: 4.5rem; } }
.art-side__in { position: sticky; top: 2rem; }
.art-read { font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 500; color: rgba(10, 10, 10, .55); padding-bottom: 1rem; border-bottom: 1px solid rgba(10, 10, 10, .2); }
.art-read b { display: block; margin-top: .5rem; font-size: 1.3rem; letter-spacing: -0.03em; text-transform: none; font-weight: 500; color: #0A0A0A; }
.art-toc { display: none; margin-top: 1.6rem; counter-reset: toc; }
@media (min-width: 1024px) { .art-toc.has { display: block; } }
.art-toc .lbl { font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 500; color: rgba(10, 10, 10, .55); margin-bottom: .6rem; }
.art-toc a { position: relative; display: block; padding: .75rem 0 .75rem 2.2rem; border-bottom: 1px solid rgba(10, 10, 10, .14); font-size: .95rem; line-height: 1.35; color: rgba(10, 10, 10, .6); transition: color .2s, padding .3s cubic-bezier(.16, 1, .3, 1); counter-increment: toc; }
.art-toc a::before { content: counter(toc, decimal-leading-zero); position: absolute; left: 0; top: .75rem; font-family: 'Instrument Serif', Georgia, serif; font-style: italic; font-size: 1.05rem; opacity: .6; }
.art-toc a:hover, .art-toc a.on { color: #0A0A0A; }
.art-toc a.on { padding-left: 2.6rem; font-weight: 500; }

.art { counter-reset: sec; color: #0A0A0A; min-width: 0; }
.art .space-y-8 > * { margin-top: 0 !important; margin-bottom: 0 !important; }
.art p, .art li { font-size: 1.15rem; line-height: 1.8; letter-spacing: -0.005em; color: rgba(10, 10, 10, .78); max-width: none; }
.art p { margin: 0 0 1.5rem; }
.art img { display: block; width: 100%; height: auto; border-radius: 18px; box-shadow: none; margin: 2.6rem 0; filter: grayscale(1) contrast(1.05); transition: filter .6s ease; }
.art img:hover { filter: grayscale(0) contrast(1); }
.art h1, .art h2, .art h3, .art h4 { counter-increment: sec; font-size: clamp(1.7rem, 2.8vw, 2.3rem); font-weight: 500; letter-spacing: -0.038em; line-height: 1.1; color: #0A0A0A; margin: 3.6rem 0 1.1rem; max-width: none; scroll-margin-top: 2rem; }
.art h2::before { content: counter(sec, decimal-leading-zero); display: block; font-family: 'Instrument Serif', Georgia, serif; font-style: italic; font-weight: 400; font-size: 1.15rem; letter-spacing: 0; color: rgba(10, 10, 10, .5); margin-bottom: .55rem; }
.art h2 + p { color: rgba(10, 10, 10, .88); }
.art .art-lead { font-size: 1.45rem; line-height: 1.55; letter-spacing: -0.02em; color: #0A0A0A; }
.art .art-lead::first-letter { float: left; font-family: 'Instrument Serif', Georgia, serif; font-size: 4.4em; line-height: .78; padding: .08em .1em 0 0; font-weight: 400; }
.art .art-example { background: #F2F2F2; border-left: 3px solid #0A0A0A; border-radius: 0 14px 14px 0; padding: 1.1rem 1.4rem 1.2rem; font-size: 1.05rem; line-height: 1.7; color: rgba(10, 10, 10, .82); margin: 2rem 0; }
.art .art-example::before { content: 'Example'; display: block; font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 600; color: rgba(10, 10, 10, .55); margin-bottom: .5rem; }
.art .art-ref { font-size: .92rem; line-height: 1.6; color: rgba(10, 10, 10, .55); border-top: 1px solid rgba(10, 10, 10, .18); padding-top: 1.3rem; margin-top: 3.4rem; }
.art h2.art-end { margin-top: 4rem; padding-top: 2.2rem; border-top: 1px solid rgba(10, 10, 10, .25); }
.art h2.art-end::before { content: 'In summary'; }
.art h2.art-end + p { font-size: 1.3rem; line-height: 1.6; color: #0A0A0A; letter-spacing: -0.015em; }
.art ul.art-steps, .art ol.art-steps { list-style: none; padding: 0; margin: 1.6rem 0 2.2rem; border-top: 1px solid rgba(10, 10, 10, .2); counter-reset: li; }
.art .art-steps li { position: relative; counter-increment: li; margin: 0; padding: 1.15rem 0 1.15rem 3rem; border-bottom: 1px solid rgba(10, 10, 10, .2); line-height: 1.65; }
.art .art-steps li::before { content: counter(li, decimal-leading-zero); position: absolute; left: 0; top: 1.15rem; font-family: 'Instrument Serif', Georgia, serif; font-style: italic; font-size: 1.25rem; line-height: 1.4; color: rgba(10, 10, 10, .5); }
.art .art-steps li > strong:first-child { display: block; font-size: 1.12rem; letter-spacing: -0.02em; margin-bottom: .2rem; }
.art strong, .art b { font-weight: 600; color: #0A0A0A; }
.art a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(10, 10, 10, .4); transition: text-decoration-color .2s; }
.art a:hover { text-decoration-color: #0A0A0A; }
.art blockquote { border-left: 2px solid #0A0A0A; padding-left: 1.4rem; margin: 2rem 0; font-family: 'Instrument Serif', Georgia, serif; font-style: italic; font-size: 1.5rem; }
.art-list .sx-art p { -webkit-line-clamp: 2; }
.art-list .sx-art { padding: 1.3rem 0; }
.art-list .sx-thumb { height: 6.2rem; }
.art-more { border-top: 1px solid rgba(10, 10, 10, .12); }
@media (max-width: 640px) { .art p, .art li { font-size: 1.05rem; } .art .art-lead { font-size: 1.25rem; } }

.nowrap { white-space: nowrap; }

/* ---------- site-wide behavior: sticky nav, anchors, shared pager helpers ---------- */
:root { --nav-h: 76px; }
html { scroll-padding-top: calc(var(--nav-h) + 1rem); }
.site-nav { position: sticky; top: 0; z-index: 60; }
.pager-on .site-nav { position: fixed; }
.art-side__in { top: calc(var(--nav-h) + 1.5rem); }
.pager-on .art-side__in { top: 2rem; }
.pg-wrap { max-width: 80rem; margin: 0 auto; padding: 3rem 1.5rem; }
.pg-ready .ds-toc { display: none !important; }
.pager-on .pg-leftover { display: none !important; }
.pager-on :where(.pg-sec) { background-color: #fff; }
/* older pages that still carry the previous colorful design: keep the site monochrome */
.legacy section { filter: grayscale(1); }
.pager-on .pg-sec.ds-sec { border-top: 0; margin-top: 0; padding-top: 0; }
.pager-on .pg-sec.ds-sec .pg-wrap { padding-top: 2.5rem; padding-bottom: 2.5rem; }
.site-menu { z-index: 80 !important; }
@media (min-width: 1024px) {
    .lg\:sticky.lg\:top-8 { top: calc(var(--nav-h) + 2rem) !important; }
    .pager-on .lg\:sticky.lg\:top-8, .pager-on .lg\:sticky.lg\:top-0 { top: 2rem !important; }
}

/* ---------- transparent, adaptive navigation ---------- */
.site-nav { --nav-fg: #0A0A0A; --nav-fg-mute: rgba(10, 10, 10, .68); --nav-bg: rgba(255, 255, 255, .92);
    background: linear-gradient(to bottom, var(--nav-bg) 0%, var(--nav-bg) 55%, transparent 100%); border-bottom: 0; color: var(--nav-fg); transition: color .3s ease; }
.site-nav.on-dark { --nav-fg: #FFFFFF; --nav-fg-mute: rgba(255, 255, 255, .72); }
.site-logo, .site-logo__name { color: var(--nav-fg); }
.site-links a { color: var(--nav-fg-mute); }
.site-links a::after { background: var(--nav-fg); }
.site-links a:hover, .site-links a[aria-current="page"] { color: var(--nav-fg); }
.site-cta { background: var(--nav-fg); color: var(--nav-bg-solid, #fff); border-color: var(--nav-fg); }
.site-nav:not(.on-dark) .site-cta { color: #fff; }
.site-nav.on-dark .site-cta { color: #0A0A0A; }
.site-nav:not(.on-dark) .site-cta:hover { background: transparent; color: #0A0A0A; }
.site-nav.on-dark .site-cta:hover { background: transparent; color: #fff; }
.site-burger { color: var(--nav-fg); }
/* slides run under the nav, the nav adapts to what is behind it */
.pager-on #pager { top: 0; }
.pager-on .pg-sec { border-top: var(--nav-h) solid transparent; }
.pager-on .art-side__in { top: 2rem; }
@media (min-width: 1024px) { .pager-on .lg\:sticky.lg\:top-8, .pager-on .lg\:sticky.lg\:top-0 { top: 2rem !important; } }
