/**
 * TORRAS TVC Case Study — 页面专属布局（.wd-tt-* 前缀）。
 * 来源：dotnfilm-optisolex 3/project/TORRAS TVC Case Study.dc.html 内联 style 抽取。
 * 颜色一律引用共享层 --wd-* token（原型色值全部命中共享表，无需新增局部色彩）。
 * 构图性渐变遮罩用 rgba(10,10,10,x)（= --wd-bg #0A0A0A 底色，CSS 渐变无法直接对 var 加 alpha，
 * 故此处保留字面 rgba 并注明对应 token）。
 * 桌面优先，多列 grid 在 ≤768px 单列降级。
 * 与 work-designs/torras-lab/（wd-tl）是不同案例，前缀 wd-tt 不混淆。
 */

/* ---------- 通用排版元件 ---------- */
.wd-tt-eyebrow {
    font-size: 14px;
    font-weight: 500;
    color: var(--wd-accent);
    letter-spacing: 0.04em;
    margin-bottom: 24px;
}
.wd-tt-h2 {
    margin: 0 0 24px;
    font-size: clamp(28px, 3.4vw, 44px);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
    text-wrap: balance;
}
.wd-tt-p {
    margin: 0 0 16px;
    color: var(--wd-text-2);
    text-wrap: pretty;
}
.wd-tt-p:last-child { margin-bottom: 0; }
.wd-tt-p--strong {
    color: var(--wd-text);
    font-weight: 500;
}
.wd-tt-em { color: var(--wd-text); font-weight: 500; }
.wd-tt-prose { max-width: 760px; }
.wd-tt-sidelabel {
    font-size: 14px;
    font-weight: 500;
    color: var(--wd-text-3);
}
.wd-tt-accent { color: var(--wd-accent); }

/* ---------- Hero（原型 32-44 行） ---------- */
.wd-tt-hero {
    position: relative;
    min-height: 88vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
}
.wd-tt-hero__img,
.wd-tt-hero__img img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 55%;
}
.wd-tt-hero__img { filter: brightness(0.82); }
/* 构图遮罩：rgba(10,10,10,x) = --wd-bg 底色叠加渐变 */
.wd-tt-hero__scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(10, 10, 10, 0.45) 0%, rgba(10, 10, 10, 0.05) 40%, rgba(10, 10, 10, 0.9) 100%);
}
.wd-tt-hero__inner {
    position: relative;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 32px 56px;
    box-sizing: border-box;
}
.wd-tt-hero__title {
    margin: 0;
    font-size: clamp(40px, 6vw, 88px);
    font-weight: 700;
    line-height: 1.04;
    letter-spacing: -0.035em;
    max-width: 1100px;
}
.wd-tt-hero__lede {
    margin: 24px 0 0;
    font-size: clamp(17px, 1.8vw, 22px);
    color: var(--wd-text-2);
    max-width: 680px;
    text-wrap: pretty;
}
.wd-tt-hero__meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 24px;
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid var(--wd-line-soft);
    font-size: 14px;
    max-width: 900px;
}
.wd-tt-meta-item__label { color: var(--wd-text-3); margin-bottom: 4px; }
.wd-tt-meta-item__value { font-weight: 500; }

/* ---------- Brief（原型 46-53 行） ---------- */
.wd-tt-brief {
    padding-top: 112px;
    padding-bottom: 112px;
    display: grid;
    grid-template-columns: minmax(140px, 220px) 1fr;
    gap: 48px;
}

/* ---------- Two directions（原型 55-99 行） ---------- */
.wd-tt-directions-section {
    border-top: 1px solid var(--wd-line);
    background: var(--wd-surface);
}
.wd-tt-directions { padding-top: 96px; padding-bottom: 96px; }
.wd-tt-directions__intro {
    display: grid;
    grid-template-columns: minmax(140px, 220px) 1fr;
    gap: 48px;
    margin-bottom: 64px;
}
/* 主视频位（16:9 大卡，可点触发弹窗） */
.wd-tt-tvc {
    aspect-ratio: 16 / 9;
    width: 100%;
    border-radius: 12px;
    cursor: pointer;
}
.wd-tt-tvc .wd-film-card__img,
.wd-tt-tvc .wd-film-card__img img {
    transition: transform 400ms cubic-bezier(0.4, 0, 0.2, 1);
}
.wd-tt-tvc[data-wd-video]:hover .wd-film-card__img img,
.wd-tt-tvc[data-wd-video]:hover .wd-film-card__img { transform: scale(1.03); }
/* 独立 shell 无 Tailwind base 层：静态封面（无视频）需显式 default 光标 */
.wd-film-card:not([data-wd-video]) { cursor: default; }
/* UPRO / MegaMag 双栏图对 */
.wd-tt-directions__pairs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 48px;
}
.wd-tt-direction__title {
    font-weight: 700;
    font-size: 22px;
    letter-spacing: -0.025em;
    margin-bottom: 8px;
}
.wd-tt-direction__desc {
    margin: 0 0 16px;
    font-size: 15px;
    color: var(--wd-text-2);
    text-wrap: pretty;
}
.wd-tt-direction__imgs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}
.wd-tt-direction__img,
.wd-tt-direction__img img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}

/* ---------- Numbers（原型 101-112 行） ---------- */
.wd-tt-numbers-section { border-bottom: 1px solid var(--wd-line); }
.wd-tt-numbers {
    padding-top: 64px;
    padding-bottom: 64px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0;
}
.wd-tt-num {
    padding: 8px 32px;
    border-right: 1px solid var(--wd-line);
}
.wd-tt-num--first { padding-left: 0; }
.wd-tt-num--last { padding-right: 0; border-right: 0; }
.wd-tt-num__value {
    font-size: 48px;
    font-weight: 700;
    letter-spacing: -0.03em;
}
.wd-tt-num__value--accent { color: var(--wd-accent); }
.wd-tt-num__label {
    font-size: 14px;
    color: var(--wd-text-2);
    margin-top: 4px;
}

/* ---------- Game（原型 114-136 行） ---------- */
.wd-tt-game {
    padding-top: 112px;
    padding-bottom: 112px;
}
.wd-tt-game__intro {
    display: grid;
    grid-template-columns: minmax(140px, 220px) 1fr;
    gap: 48px;
    margin-bottom: 64px;
}
.wd-tt-game__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.wd-tt-game__img,
.wd-tt-game__img img {
    width: 100%;
    border-radius: 12px;
    display: block;
    border: 1px solid var(--wd-line);
}
.wd-tt-game__cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 24px;
    padding: 24px 32px;
    border: 1px solid var(--wd-line);
    border-radius: 12px;
    transition: border-color 200ms cubic-bezier(0.4, 0, 0.2, 1);
}
.wd-tt-game__cta:hover { border-color: var(--wd-accent); }
.wd-tt-game__cta-title {
    font-weight: 700;
    font-size: 22px;
    letter-spacing: -0.025em;
}
.wd-tt-game__cta-desc {
    font-size: 15px;
    color: var(--wd-text-2);
    margin-top: 4px;
}
.wd-tt-game__cta-btn {
    flex: none;
    display: inline-flex;
    align-items: center;
    background: var(--wd-accent);
    color: var(--wd-bg);
    font-weight: 500;
    font-size: 15px;
    padding: 12px 24px;
    border-radius: 980px;
    white-space: nowrap;
    transition: background 200ms cubic-bezier(0.4, 0, 0.2, 1);
}
.wd-tt-game__cta:hover .wd-tt-game__cta-btn { background: var(--wd-accent-hover); color: var(--wd-bg); }

/* ---------- Methodology（原型 138-144 行） ---------- */
.wd-tt-methodology {
    max-width: 980px;
    padding-top: 128px;
    padding-bottom: 128px;
    border-top: 1px solid var(--wd-line);
    text-align: left;
}
.wd-tt-methodology__label { margin-bottom: 24px; }
.wd-tt-methodology__lead {
    margin: 0;
    font-size: clamp(28px, 3.6vw, 48px);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.03em;
    text-wrap: balance;
}
.wd-tt-methodology__body {
    margin: 32px 0 0;
    max-width: 700px;
}

/* ---------- Closing（原型 146-156 行） ---------- */
.wd-tt-closing {
    position: relative;
    min-height: 64vh;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    border-top: 1px solid var(--wd-line);
}
.wd-tt-closing__img,
.wd-tt-closing__img img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
}
.wd-tt-closing__img { filter: brightness(0.75); }
/* 构图遮罩：rgba(10,10,10,x) = --wd-bg 底色叠加渐变 */
.wd-tt-closing__scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(10, 10, 10, 0.4) 0%, rgba(10, 10, 10, 0.1) 45%, rgba(10, 10, 10, 0.9) 100%);
}
.wd-tt-closing__inner {
    position: relative;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 96px 32px 80px;
    box-sizing: border-box;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 32px;
}
.wd-tt-closing__eyebrow {
    font-size: 14px;
    font-weight: 500;
    color: var(--wd-text-2);
    margin-bottom: 16px;
}
.wd-tt-closing__title {
    font-size: clamp(34px, 4.5vw, 64px);
    font-weight: 700;
    letter-spacing: -0.035em;
    line-height: 1.05;
}
.wd-tt-cta {
    flex: none;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--wd-accent);
    color: var(--wd-bg);
    font-weight: 500;
    font-size: 17px;
    padding: 16px 32px;
    border-radius: 980px;
    transition: background 200ms cubic-bezier(0.4, 0, 0.2, 1);
}
.wd-tt-cta:hover { background: var(--wd-accent-hover); color: var(--wd-bg); }
.wd-tt-cta:active { background: var(--wd-accent-active); color: var(--wd-bg); }

/* ==========================================================================
   响应式：多列 grid ≤768px 单列降级（原型桌面优先）
   ========================================================================== */
@media (max-width: 768px) {
    .wd-tt-brief,
    .wd-tt-directions__intro,
    .wd-tt-game__intro {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .wd-tt-brief { padding-top: 72px; padding-bottom: 72px; }
    .wd-tt-directions { padding-top: 72px; padding-bottom: 72px; }
    .wd-tt-game { padding-top: 72px; padding-bottom: 72px; }

    .wd-tt-directions__pairs { grid-template-columns: 1fr; gap: 40px; }
    .wd-tt-game__grid { grid-template-columns: 1fr; }

    .wd-tt-numbers { padding-top: 48px; padding-bottom: 48px; }
    /* 单列堆叠时右侧竖线换成底部横线 */
    .wd-tt-num {
        padding: 24px 0;
        border-right: 0;
        border-bottom: 1px solid var(--wd-line);
    }
    .wd-tt-num--last { border-bottom: 0; }

    .wd-tt-methodology { padding-top: 88px; padding-bottom: 88px; }
    .wd-tt-closing__inner { padding: 72px 32px 56px; }
}
