:root {
    --panel: #ffffff;
    --bg: #f5f5f5;
    --accent: #d94c3f;
    --tg-blue: #0078B7;
    --tg-blue-2: #0f78b9;
    --tg-blue-soft: #C1E9FF;
    --chip: #DFF3FE;
    --text: rgba(15, 23, 42, 0.92);
    --tile-peach: #FFE1CC;
    --tile-lav: #d8d2ff;
    --r-xl: 10px;
    --r-lg: 5px;
    --r-md: 2px;
    --mono: 'ibm-plex-mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    --sans: 'museo-sans', ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
    --font-utopia: "utopia-std", "Iowan Old Style", "Palatino Linotype", Palatino, "Libre Baskerville", "Georgia", serif;
    --text-color: #222222;
}

html,
body {
    margin: 0;
    color: var(--text-color);
    background-color: var(--accent);
    font-variant-ligatures: normal;
    font-variation-settings: normal;
    font-feature-settings: normal;
    -webkit-text-size-adjust: 100%;
    font-stretch: 100%;
    word-wrap: break-word;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: underline;
    color: var(--text-color);
    text-decoration-color: var(--accent);
}

article {
    background: var(--panel);
    padding-top: 15px;
    margin-top: -2px;
}

.header-bar {
    position: sticky;
    top: 0;
    height: 35px;
    width: 100%;
    background: var(--accent);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Left logo block */
.netra-logo {
    margin-left: 20px;
    height: 100%;
    display: flex;
    align-items: center;
}

.netra-logo a {
    background: none;
    display: flex;
    align-items: center;
    height: 100%;
    line-height: 1;
}

.nav-logo {
    height: 20px;
    width: auto;
    display: block;
}

.netra-logo .nav-logo {
    filter: brightness(0) invert(1);
}

.social-icons {
    margin-right: 20px;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 6px;
    list-style: none;
    padding: 0;
    margin-top: 0;
    margin-bottom: 0;
}

.social-icons li {
    display: flex;
    align-items: center;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    line-height: 1;
}

.twitter-logo,
.fb-logo {
    width: 20px;
    height: 20px;
    display: block;
    color: var(--panel);
}

.hero {
    background: var(--panel);
    padding: clamp(22px, 4vw, 56px) 0;
}

.hero__inner {
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: clamp(18px, 3vw, 48px);
    align-items: center;
}

.hero__art {
    margin: 0;
    position: relative;
    isolation: isolate;
}

.hero__img {
    width: 100%;
    height: auto;
    display: block;
    filter: drop-shadow(0 18px 28px rgba(0, 0, 0, .12));
}

.hero__text {
    padding-top: clamp(4px, 1vw, 14px);
}

h2,
.hero__title {
    margin: 0 0 18px 0;
    font-size: clamp(44px, 6.2vw, 84px);
    line-height: 0.98;
    letter-spacing: -0.02em;
    color: var(--accent);
    font-family: var(--sans);
}

h2 {
    margin: 0 auto 18px auto;
    max-width: 618px;
    font-size: 2.5rem;
}

.hero__dek {
    margin: 0 0 18px 0;
    font-size: clamp(19px, 1.4vw, 20px);
    line-height: 1.55;
    font-style: italic;
    font-family: 'utopia-std-display', var(--font-utopia);
}

.hero__byline {
    display: grid;
    gap: 6px;
    font-size: 15px;
    color: rgba(17, 17, 17, .75);
    margin-top: 0;
    font-family: var(--mono);
}

.hero__byline a {
    font-style: normal;
    color: unset;
    text-decoration: none;
}

.hero__rule {
    width: 42px;
    height: 3px;
    background: var(--accent);
    margin: 14px 0 12px;
}

.hero__author {
    font-weight: 600;
    color: rgba(17, 17, 17, .82);
}

.story-text,
p {
    max-width: 618px;
    margin: 0 auto 35px auto;
    font-family: var(--font-utopia);
    font-size: clamp(1.4rem, 2vw, 1.3rem);
    line-height: 1.4;
    letter-spacing: 0.01em;
}

.story-text.has-dropcap {
    position: relative;
}

.story-text.has-dropcap .dropcap {
    float: left;
    display: grid;
    place-items: center;
    font-size: 2em;
    line-height: 0;
    width: 45px;
    height: 45px;
    margin: 0.08em 0.22em 0 0;
    color: var(--accent);
    font-weight: 700;
    background-color: var(--bg);
    background-image:
        linear-gradient(to right, rgba(0, 0, 0, 0.12) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(0, 0, 0, 0.12) 1px, transparent 1px);
    background-size: 15px 15px;
}

.tg-call {
    max-width: 80%;
    margin: 40px auto;
    background: var(--bg);
    border-radius: var(--r-xl);
    padding: 18px;
    color: var(--text);
    font-family: var(--sans);
}

.tg-call__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 6px 14px;
}

.tg-call__brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--mono);
    font-size: 18px;
    letter-spacing: 0.2px;
}

.tg-call__dot {
    width: 14px;
    height: 14px;
    border-radius: 999px;
    background: var(--tg-blue);
    box-shadow: 0 0 0 4px rgba(31, 134, 199, 0.12);
}

.tg-call__meta {
    display: flex;
    gap: 10px;
}

.tg-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 34px;
    padding: 0 14px;
    border-radius: 999px;
    background: var(--chip);
    color: var(--text-color);
    font-family: var(--mono);
    font-size: 14px;
}

.tg-call__grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 16px;
    align-items: stretch;
}

.tg-tiles {
    display: grid;
    grid-template-rows: 1fr auto;
    gap: 12px;
    min-height: 420px;
}

.tg-tile {
    border-radius: var(--r-lg);
    overflow: hidden;
}

.tg-tile--primary {
    background: var(--tg-blue-soft);
    position: relative;
    padding: 22px;
    display: grid;
    grid-template-rows: 1fr auto;
}

.tg-tile__avatar {
    display: grid;
    place-items: center;
}

.tg-avatar {
    width: clamp(170px, 22vw, 220px);
    aspect-ratio: 1/1;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.35);
    display: grid;
    place-items: center;
}

.tg-avatar__letters {
    font-family: var(--sans);
    font-weight: 700;
    color: var(--tg-blue-2);
    font-size: clamp(56px, 7vw, 78px);
    letter-spacing: 0.6px;
}

.tg-tile__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 6px;
}

.tg-tile__name {
    font-size: 22px;
    color: rgba(0, 0, 0, 0.42);
    letter-spacing: 0.2px;
    font-family: var(--sans);
}

.tg-tile__wave {
    display: inline-flex;
    align-items: flex-end;
    gap: 4px;
    height: 18px;
    opacity: 0.85;
}

.tg-tile__wave span {
    width: 4px;
    height: 6px;
    border-radius: 999px;
    background: rgba(15, 120, 185, 0.9);
    transform-origin: bottom;
}

.tg-call.is-playing .tg-tile__wave span {
    animation: tgWave 900ms ease-in-out infinite;
}

.tg-call.is-playing .tg-tile__wave span:nth-child(2) {
    animation-delay: 90ms;
}

.tg-call.is-playing .tg-tile__wave span:nth-child(3) {
    animation-delay: 180ms;
}

.tg-call.is-playing .tg-tile__wave span:nth-child(4) {
    animation-delay: 270ms;
}

.tg-call.is-playing .tg-tile__wave span:nth-child(5) {
    animation-delay: 360ms;
}

@keyframes tgWave {

    0%,
    100% {
        transform: scaleY(0.55);
    }

    50% {
        transform: scaleY(1.55);
    }
}

.tg-tile-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.tg-tile--peach {
    background: var(--tile-peach);
}

.tg-tile--lav {
    background: var(--tile-lav);
}

.tg-tile--mint {
    background: var(--tile-mint);
}

.tg-tile--more {
    background: var(--tg-blue-soft);
    display: grid;
    place-items: center;
}

.tg-mini-avatar {
    width: 84px;
    height: 84px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.35);
    display: grid;
    place-items: center;
    margin: 18px auto;
    font-family: var(--sans);
    font-weight: 700;
    color: rgba(15, 23, 42, 0.38);
    letter-spacing: 0.5px;
}

.tg-mini-name {
    font-size: 12px;
    color: rgba(15, 23, 42, 0.45);
    padding: 0 16px 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
}

.tg-more {
    font-family: var(--mono);
    font-size: 40px;
    color: rgba(15, 23, 42, 0.72);
    letter-spacing: 0.3px;
}

/* Transcript panel */
.tg-transcript {
    background: var(--panel);
    border-radius: var(--r-xl);
    padding: 18px;
    display: grid;
    grid-template-rows: auto 1fr auto;
    min-height: 420px;
}

.tg-transcript__label {
    font-family: var(--mono);
    color: rgba(15, 23, 42, 0.55);
    font-size: 20px;
    margin-bottom: 10px;
}

.tg-transcript__body {
    border-radius: var(--r-lg);
    padding: 6px 4px 10px;
    font-family: var(--mono);
    font-size: clamp(22px, 1.8vw, 30px);
    line-height: 1.22;
    color: var(--text-color);
    overflow: auto;
}

.tg-line {
    display: inline;
    white-space: pre-wrap;
}

.tg-line .w {
    display: inline;
    padding: 0.02em 0.05em;
    border-radius: 0.22em;
}

.tg-line.is-active .w.is-spoken {
    background: rgba(31, 134, 199, 0.14);
}

.tg-line.is-active .w.is-current {
    background: rgba(31, 134, 199, 0.26);
}

.tg-line.is-done {
    opacity: 0.55;
}

.tg-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 18px;
    padding-top: 14px;
}

.tg-btn {
    width: 70px;
    height: 70px;
    border-radius: 999px;
    border: 0;
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: transform 120ms ease, filter 120ms ease;
    background-color: transparent;
}

.tg-btn:hover {
    transform: translateY(-1px);
}

.tg-btn:active {
    transform: translateY(0px) scale(0.98);
}

.tg-btn img {
    width: 45px;
    height: 45px;
}

.tg-btn--ghost {
    cursor: default;
    box-shadow: none;
}

.tg-speaker {
    opacity: 0.55;
}







/* 2. INLINE PLAYER CONTAINER
       ========================================= */

.inline-trigger {
    align-items: baseline;
    gap: 6px;
}


/* Icon container (keeps your grid bg) */
.inline-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 25px;
    height: 25px;
    margin-right: 6px;

    background-image:
        linear-gradient(to right, rgba(0, 0, 0, 0.12) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(0, 0, 0, 0.12) 1px, transparent 1px);
    background-size: 10px 10px;
}

/* Mask icons (external SVGs, coloured via background-color) */
.inline-icon .icon {
    width: 15px;
    height: 15px;
    display: block;
    background-color: #d94c3f;

    -webkit-mask: no-repeat center / contain;
    mask: no-repeat center / contain;
}

.inline-icon .icon-play {
    -webkit-mask-image: url("./assets/icons/play.svg");
    mask-image: url("./assets/icons/play.svg");
}

.inline-icon .icon-pause {
    -webkit-mask-image: url("./assets/icons/pause.svg");
    mask-image: url("./assets/icons/pause.svg");
    display: none;
}

/* Toggle */
.inline-trigger.playing .icon-play {
    display: none;
}

.inline-trigger.playing .icon-pause {
    display: block;
}

/* Text + karaoke */
.highlight-text {
    color: var(--text-color);
}

.karaoke-scope {
    background-color: var(--bg);
}

.karaoke-word {
    font-family: var(--mono);
    font-size: 20px;
}

.karaoke-word.active {
    font-weight: 700;
    text-decoration: underline;
    text-decoration-color: var(--accent);
}

.karaoke-scope .karaoke-word {
    transition: color 0.2s ease;
    font-family: var(--mono);
    font-size: 20px;
}

.karaoke-scope .karaoke-word.active {
    color: var(--text-color);
    font-weight: 700;
    text-decoration: underline;
    text-decoration-color: var(--accent);
}





/* 3. FOOTER
       ========================================= */


.specialNote2,
.specialNote {
    font-family: var(--mono);
    color: var(--accent);
    font-size: small;
}

.specialNote2 {
    color: unset;
    font-size: normal;
}

.specialNote2 .inline-icon {
    height: 1em;
    width: auto;
    vertical-align: -0.15em;
    margin: 0 0.15em;
    opacity: 0.85;
    background: transparent;
}


footer {
    background: var(--accent);
    color: var(--panel);
    padding: 40px;
    margin: auto;
    display: flex;
    justify-content: center;
    font-family: var(--mono);
}

#footer-inner {
    max-width: 618px;
    margin: 0 auto;
}

.logo {
    text-align: left;
    margin-bottom: 20px;
}

.logo img {
    display: block;
    margin-bottom: 10px;
    max-width: 150px;
    height: 100%;
    margin: auto;
    filter: brightness(0) invert(1);
}

.logo p {
    font-size: 18px;
    font-weight: 400;
    opacity: 0.9;
    color: white;
    margin: 10px;
    text-align: center;
}

.lists {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    padding-top: 30px;
    margin-top: 30px;
    color: white;
    font-weight: 400;
    font-display: swap;
}

.list {
    flex: 1;
    min-width: 200px;
    text-align: center;
}

.list h3 {
    font-size: 16px;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.list ul {
    list-style: none;
    padding: 0;
    margin-bottom: 15px;
}

.list ul li {
    margin-bottom: 5px;
}

.list ul li a {
    color: white;
    text-decoration: none;
    font-size: 14px;
    opacity: 0.8;
    transition: opacity 0.3s ease;
    background: none;
}

.list ul li a:hover {
    opacity: 1;
}

.social-icons a {
    background: none;
}

.social-icons-m a {
    background: none;
}

.credits {
    background-color: transparent;
    padding: 3rem 0rem;
}

.credits p {
    font-family: var(--mono);
    font-style: italic;
    font-size: 15px;
    line-height: 1.6;
    color: #999;
    max-width: 550px;
    margin: 20px auto;
    padding: 1rem;
    border-top: 1px solid #eee;
    text-align: center;
}



.rc-player {
    font-family: var(--mono);
    max-width: 920px;
    margin: auto;
}

.rc-list {
    border-radius: 18px;
    background: rgba(0, 0, 0, .03);
    border-bottom: 1px solid rgba(0, 0, 0, .06);
    padding: 10px;
}

.rc-listbar {
    display: flex;
    justify-content: flex-start;
    padding: 6px 6px 12px 6px;
}

.rc-lang {
    display: inline-flex;
    gap: 6px;
    padding: 6px;
    border-radius: 999px;
    border: 1px solid rgba(0, 0, 0, .06);
}

.rc-lang-btn {
    appearance: none;
    border: 0;
    background: transparent;
    font-family: inherit;
    font-size: 14px;
    padding: 6px 10px;
    border-radius: 999px;
    cursor: pointer;
    opacity: .7;
}

.rc-lang-btn.is-active {
    background: rgba(255, 255, 255, .9);
    border: 1px solid rgba(0, 0, 0, .08);
    opacity: 1;
}

.rc-item {
    overflow: hidden;
    border-bottom: 1px solid rgba(0, 0, 0, .06);
    margin: 10px 6px;
}

.rc-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 14px;
}

.rc-ctrl {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
}

.rc-iconbtn {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    border: transparent;
    background: transparent;
    display: grid;
    place-items: center;
    cursor: pointer;
    padding: 0;
}

.rc-iconbtn:active {
    transform: translateY(1px);
}

.rc-iconbtn[disabled] {
    opacity: .45;
    cursor: not-allowed;
}

.rc-icon {
    width: 25px;
    height: 25px;
    display: block;
    opacity: .9;
}

.rc-main {
    min-width: 0;
    flex: 1 1 auto;
}

.rc-title {
    display: flex;
    align-items: baseline;
    gap: 10px;
    min-width: 0;
}

.rc-file {
    font-size: 12px;
    opacity: .55;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 36ch;
}

.rc-preview {
    font-size: 22px;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    opacity: .75;
}

.rc-item.is-active .rc-preview {
    opacity: 1;
    color: rgba(0, 0, 0, .9);
}

.rc-body {
    display: none;
    padding: 0 14px 14px 14px;
}

.rc-item.is-active .rc-body {
    display: block;
}

.rc-progress {
    position: relative;
    height: 6px;
    border-radius: 999px;
    background: rgba(0, 0, 0, .12);
    cursor: pointer;
    margin: 8px 0 12px 0;
}

.rc-progress-fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0%;
    border-radius: 999px;
    background: var(--accent);
}

.rc-timebar {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    opacity: .6;
    margin-top: 6px;
}

.rc-subs {
    border-radius: 8px;
    background: rgba(255, 255, 255, .75);
    border: 1px solid rgba(0, 0, 0, .06);
    overflow: hidden;
    max-height: 210px;
    margin: 10px auto;
}

.rc-subline {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 12px;
    border-top: 1px solid rgba(0, 0, 0, .05);
}

.rc-subline:first-child {
    border-top: 0;
}

.rc-ts {
    font-size: 12px;
    opacity: .55;
    width: 54px;
    flex: 0 0 auto;
}

.rc-text {
    font-size: 22px;
    line-height: 1.35;
    min-width: 0;
}

.rc-subline.is-current {
    background: rgba(217, 76, 63, .10);
}

.rc-footer {
    display: flex;
    justify-content: center;
    padding: 12px 0 0 0;
}

.rc-more {
    font-family: inherit;
    font-size: 14px;
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid rgba(0, 0, 0, .10);
    background: rgba(255, 255, 255, .9);
    cursor: pointer;
}

.rc-empty {
    padding: 18px;
    opacity: .7;
    font-size: 14px;
}





@media (max-width: 980px) {
    .tg-call__grid {
        grid-template-columns: 1fr;
    }

    .tg-tiles {
        min-height: 360px;
    }

    .tg-transcript {
        min-height: 360px;
    }

    .tg-tile-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Responsive */
@media (max-width: 860px) {
    .hero__inner {
        grid-template-columns: 1fr;
    }

    .hero__text {
        padding-top: 0;
    }

    .hero__title {
        margin-top: 6px;
    }
}

@media (max-width: 700px) {

    .story-text,
    p,
    h2 {
        margin: -1px 18px 20px 18px;
        letter-spacing: unset;
    }

    .story-text {
        font-size: 1.3rem;
    }
}


@media (max-width: 640px) {

    .rc-preview,
    .rc-text {
        font-size: 18px;
    }

    .rc-file {
        max-width: 22ch;
    }

    .hero__text {
        text-align: center;
    }

    .hero__rule {
        margin: auto;
    }

    .hero__byline {
        margin-top: 10px;
    }

    /* Overall container: fit viewport */
    .tg-call {
        max-width: 100%;
        margin: 20px 0;
        border-radius: 0;
        padding: 12px;
        height: 90vh;
        display: flex;
        flex-direction: column;
    }

    /* Stack speakers + transcript vertically */
    .tg-call__grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr;
        gap: 12px;
        flex: 1;
        min-height: 0;
        /* IMPORTANT for scroll */
    }

    /* Speakers block shorter */
    .tg-tiles {
        min-height: auto;
        grid-template-rows: auto auto;
        gap: 8px;
    }

    /* Primary speaker: smaller */
    .tg-tile--primary {
        padding: 14px;
        grid-template-rows: auto auto;
    }

    .tg-avatar {
        width: 120px;
    }

    .tg-avatar__letters {
        font-size: 44px;
    }

    .tg-tile__name {
        font-size: 16px;
    }

    /* Mini speakers: tighter + shorter */
    .tg-tile-row {
        gap: 8px;
    }

    .tg-mini-avatar {
        width: 56px;
        height: 56px;
        margin: 10px auto;
        font-size: 14px;
    }

    .tg-mini-name {
        font-size: 11px;
        padding-bottom: 8px;
    }

    /* Transcript panel takes remaining height */
    .tg-transcript {
        min-height: 0;
        padding: 12px;
        display: grid;
        grid-template-rows: auto 1fr auto;
    }

    .tg-transcript__label {
        font-size: 16px;
        margin-bottom: 6px;
    }

    .tg-transcript__body {
        font-size: 18px;
        line-height: 1.25;
    }

    /* Controls smaller */
    .tg-btn {
        width: 56px;
        height: 56px;
    }

    .tg-btn img {
        width: 34px;
        height: 34px;
    }
}


@media (max-width: 450px) {
    .tg-call {
        max-width: 100%;
    }

    .karaoke-word {
        font-size: 20px;
    }
}