/* ============================================================
   谷俊霖 · 视频作品集
   视觉基调：报馆排版 × 影院暗调
   ============================================================ */

:root {
  --bg:        #0A0908;
  --bg-soft:   #121110;
  --bg-card:   #171514;
  --ink:       #F2EDE4;
  --ink-dim:   #B9B1A6;
  --muted:     #847D74;
  --line:      rgba(242, 237, 228, 0.13);
  --accent:    #C8102E;   /* 新华红：用于大字号与色块 */
  --accent-text: #D9485C;  /* 小字红色：对比度 4.77:1，满足 WCAG AA */
  --gold:      #C9A227;

  --serif: "Songti SC", "STSong", "SimSun", "Noto Serif CJK SC", "Source Han Serif SC", serif;
  --sans:  -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei",
           "Source Han Sans SC", "Segoe UI", sans-serif;

  --max: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

::selection { background: var(--accent); color: #fff; }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 28px;
}

/* ---------- 顶部导航 ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 62px;
  padding: 0 28px;
  background: rgba(10, 9, 8, 0);
  border-bottom: 1px solid transparent;
  transition: background .4s var(--ease), border-color .4s var(--ease);
}
.nav.solid {
  background: rgba(10, 9, 8, 0.92);
  border-bottom-color: var(--line);
  backdrop-filter: blur(14px);
}
.nav__brand {
  font-family: var(--serif);
  font-size: 17px;
  letter-spacing: .18em;
}
.nav__brand span { color: var(--accent); }
.nav__links { display: flex; gap: 26px; font-size: 13px; color: var(--ink-dim); }
.nav__links a { position: relative; padding: 4px 0; transition: color .3s; }
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 0; height: 1px; background: var(--accent);
  transition: width .35s var(--ease);
}
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after { width: 100%; }

@media (max-width: 720px) {
  .nav__links { display: none; }
}

/* ---------- 首屏 ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 90px;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(1100px 620px at 78% 18%, rgba(200, 16, 46, .17), transparent 62%),
    radial-gradient(900px 520px at 8% 88%, rgba(201, 162, 39, .07), transparent 60%);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--line) 12%, var(--line) 88%, transparent);
}
.hero__inner { position: relative; width: 100%; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; letter-spacing: .3em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 30px;
}
.eyebrow::before {
  content: ""; width: 34px; height: 1px; background: var(--accent);
}

.hero h1 {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(58px, 11vw, 132px);
  line-height: .96;
  letter-spacing: .02em;
}
.hero h1 em {
  font-style: normal;
  color: var(--accent);
}
.hero__role {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 14px;
  margin: 22px 0 0;
  font-family: var(--serif);
  font-size: clamp(19px, 2.6vw, 27px);
  color: var(--ink);
}
.hero__role i {
  font-style: normal; font-size: 13px; letter-spacing: .22em;
  color: var(--muted); font-family: var(--sans);
}
.hero__lead {
  max-width: 620px;
  margin: 30px 0 0;
  color: var(--ink-dim);
  font-size: 15.5px;
  line-height: 2;
}
.hero__lead strong { color: var(--ink); font-weight: 600; }

/* 数据条 */
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 62px 0 0;
  border-top: 1px solid var(--line);
}
.stat {
  padding: 26px 22px 0 0;
  border-right: 1px solid var(--line);
}
.stat:last-child { border-right: 0; }
.stat__num {
  font-family: var(--serif);
  font-size: clamp(28px, 3.6vw, 42px);
  line-height: 1;
  letter-spacing: .01em;
}
.stat__num small { font-size: .42em; margin-left: 4px; color: var(--gold); letter-spacing: .1em; }
.stat__label {
  margin-top: 14px;
  font-size: 12.5px;
  color: var(--muted);
  letter-spacing: .06em;
}
@media (max-width: 720px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat { padding: 22px 16px 0 0; }
  .stat:nth-child(2n) { border-right: 0; }
  .stat:nth-child(3), .stat:nth-child(4) { border-top: 1px solid var(--line); margin-top: 22px; padding-top: 22px; }
}

.scroll-cue {
  position: absolute; left: 28px; bottom: 26px;
  font-size: 11px; letter-spacing: .28em; color: var(--muted);
  display: flex; align-items: center; gap: 10px;
}
.scroll-cue::after {
  content: ""; width: 1px; height: 34px;
  background: linear-gradient(var(--accent), transparent);
  animation: cue 2.4s var(--ease) infinite;
}
@keyframes cue {
  0%, 100% { transform: scaleY(.4); opacity: .4; transform-origin: top; }
  50%      { transform: scaleY(1);  opacity: 1;  transform-origin: top; }
}

/* ---------- 章节骨架 ---------- */
.section { padding: 108px 0; position: relative; }
.section--tight { padding: 74px 0; }
.section + .section { border-top: 1px solid var(--line); }

.sec-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 30px; margin-bottom: 46px;
}
.sec-head__left { display: flex; align-items: baseline; gap: 20px; }
.sec-no {
  font-family: var(--serif);
  font-size: 15px;
  color: var(--accent-text);
  letter-spacing: .16em;
}
.sec-title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(28px, 4vw, 42px);
  letter-spacing: .02em;
  line-height: 1.2;
}
.sec-sub {
  font-size: 13px; color: var(--muted); letter-spacing: .1em;
  text-align: right; max-width: 340px;
}
@media (max-width: 860px) {
  .section { padding: 72px 0; }
  .sec-head { flex-direction: column; align-items: flex-start; gap: 12px; margin-bottom: 32px; }
  .sec-sub { text-align: left; max-width: none; }
}

/* ---------- 作品卡 ---------- */
.grid-wide { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
@media (max-width: 760px) { .grid-wide { grid-template-columns: 1fr; } }

.card {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--line);
  transition: border-color .5s var(--ease), transform .5s var(--ease);
}
.card:hover { border-color: rgba(200, 16, 46, .55); transform: translateY(-3px); }

.card__media { position: relative; overflow: hidden; aspect-ratio: 16 / 9; }
.card__media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.1s var(--ease), filter .6s var(--ease);
  filter: saturate(.92) contrast(1.02);
}
.card:hover .card__media img { transform: scale(1.045); filter: saturate(1.05); }
.card__media::after { content: none; }
.card__badge {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  font-size: 11px; letter-spacing: .16em;
  padding: 5px 10px;
  background: rgba(10, 9, 8, .68);
  border: 1px solid rgba(242, 237, 228, .22);
  backdrop-filter: blur(6px);
}
.card__play {
  position: absolute; z-index: 3; right: 16px; bottom: 16px;
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(200, 16, 46, .92);
  opacity: 0; transform: scale(.82);
  transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.card:hover .card__play { opacity: 1; transform: scale(1); }
.card__play svg { width: 15px; height: 15px; fill: #fff; margin-left: 2px; }

.card__body { padding: 20px 22px 24px; }
.card__title {
  font-family: var(--serif);
  font-size: 21px;
  text-wrap: balance;
  font-weight: 700;
  margin: 0 0 8px;
  line-height: 1.45;
}
.card__meta {
  font-size: 12.5px; color: var(--muted); letter-spacing: .05em;
  display: flex; flex-wrap: wrap; gap: 8px 14px;
}
.card__meta b { color: var(--ink-dim); font-weight: 500; }
.card__desc { margin: 12px 0 0; font-size: 13.5px; color: var(--ink-dim); line-height: 1.95; }
.card__data {
  margin: 14px 0 0; font-size: 13px; color: var(--gold); letter-spacing: .04em;
}

/* 竖屏卡片网格 */
.grid-vertical {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
@media (max-width: 1180px) {
  .grid-vertical { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  /* 正好 4 张时，第 4 张居中放第二行，避免右侧留一个大空洞 */
  .grid-vertical > .vcard:nth-child(4):last-child { grid-column: 2; }
}
@media (max-width: 760px)  { .grid-vertical { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.vcard {
  position: relative; display: block; overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--line);
  transition: border-color .5s var(--ease), transform .5s var(--ease);
}
.vcard:hover { border-color: rgba(200, 16, 46, .55); transform: translateY(-4px); }
.vcard__media { position: relative; aspect-ratio: 9 / 16; overflow: hidden; }
.vcard__media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.1s var(--ease);
}
.vcard:hover .vcard__media img { transform: scale(1.05); }
.vcard__media::after { content: none; }
.vcard__tag {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  font-size: 10.5px; letter-spacing: .12em;
  padding: 4px 8px;
  background: rgba(200, 16, 46, .88);
}
.vcard__text {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3;
  padding: 14px 14px 15px;
  background: rgba(10, 9, 8, .82);
  border-top: 1px solid rgba(200, 16, 46, .55);
  backdrop-filter: blur(3px);
}
.vcard__title {
  font-family: var(--serif); font-size: 16px; font-weight: 700; line-height: 1.5;
  margin: 0;
}
.vcard__sub { margin: 6px 0 0; font-size: 11.5px; color: var(--ink-dim); letter-spacing: .04em; }

/* 文字型卡片（无视频源） */
.tcard {
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 26px 24px;
  min-height: 100%;
  background:
    linear-gradient(160deg, rgba(200,16,46,.10), rgba(10,9,8,0) 58%),
    var(--bg-soft);
  border: 1px solid var(--line);
  transition: border-color .5s var(--ease), transform .5s var(--ease);
}
.tcard:hover { border-color: rgba(200, 16, 46, .55); transform: translateY(-3px); }
.tcard__no {
  font-family: var(--serif); font-size: 12px; letter-spacing: .2em; color: var(--accent-text);
}
.tcard__title {
  font-family: var(--serif); font-size: 20px; font-weight: 700; line-height: 1.5;
  margin: 14px 0 0;
}
.tcard__desc { margin: 12px 0 0; font-size: 13.5px; color: var(--ink-dim); line-height: 1.95; }
.tcard__foot { margin-top: 20px; font-size: 12px; color: var(--muted); letter-spacing: .05em; }

/* ---------- 时间线 ---------- */
.timeline { position: relative; margin-top: 8px; }
.timeline::before {
  content: ""; position: absolute; left: 0; top: 6px; bottom: 6px;
  width: 1px; background: var(--line);
}
.tl-item {
  position: relative;
  padding: 0 0 42px 34px;
}
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: ""; position: absolute; left: -4px; top: 9px;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--bg); border: 1px solid var(--accent);
}
.tl-item:first-child::before { background: var(--accent); }
.tl-date {
  font-size: 12px; letter-spacing: .14em; color: var(--accent-text);
}
.tl-org {
  font-family: var(--serif); font-size: 20px; font-weight: 700; margin: 8px 0 0;
}
.tl-role { font-size: 13px; color: var(--muted); margin-top: 4px; letter-spacing: .04em; }
.tl-desc { margin: 10px 0 0; font-size: 13.8px; color: var(--ink-dim); line-height: 1.95; max-width: 760px; }

/* ---------- 能力 ---------- */
.skills { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px 34px; }
@media (max-width: 860px) { .skills { grid-template-columns: 1fr; } }
.skill__label {
  font-size: 12px; letter-spacing: .18em; color: var(--accent-text);
  padding-bottom: 12px; border-bottom: 1px solid var(--line); margin-bottom: 16px;
}
.skill__list { list-style: none; margin: 0; padding: 0; }
.skill__list li {
  font-size: 13.8px; color: var(--ink-dim); padding: 4px 0; line-height: 1.7;
}
.skill__list li b { color: var(--ink); font-weight: 500; }

/* ---------- 联系方式 ---------- */
.contact { padding: 110px 0 60px; border-top: 1px solid var(--line); }
.contact h2 {
  font-family: var(--serif); font-weight: 700;
  font-size: clamp(34px, 6vw, 68px); line-height: 1.1; margin: 0 0 26px;
}
.contact h2 em { font-style: normal; color: var(--accent); }
.contact__rows { display: flex; flex-wrap: wrap; gap: 14px 44px; margin-top: 30px; }
.contact__row { font-size: 14px; color: var(--ink-dim); }
.contact__row span { color: var(--muted); font-size: 12px; letter-spacing: .16em; margin-right: 12px; }
.contact__row a { border-bottom: 1px solid rgba(242,237,228,.3); padding-bottom: 2px; transition: color .3s, border-color .3s; }
.contact__row a:hover { color: var(--accent); border-color: var(--accent); }

.cta {
  display: inline-flex; align-items: center; gap: 12px;
  margin-top: 40px; padding: 15px 30px;
  border: 1px solid rgba(242, 237, 228, .32);
  font-size: 13.5px; letter-spacing: .1em;
  transition: background .4s var(--ease), border-color .4s var(--ease), color .4s var(--ease);
}
.cta:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.cta svg { width: 14px; height: 14px; fill: currentColor; }

.foot {
  margin-top: 76px; padding-top: 26px;
  border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 10px 26px; justify-content: space-between;
  font-size: 11.5px; color: var(--muted); letter-spacing: .08em;
}

/* ---------- 滚动显现 ---------- */
/* 仅在 JS 正常执行（html.js）时才隐藏待入场元素，避免脚本失效导致整页空白 */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal[data-delay="1"] { transition-delay: .09s; }
.js .reveal[data-delay="2"] { transition-delay: .18s; }
.js .reveal[data-delay="3"] { transition-delay: .27s; }

/* 竖排装饰小字 */
.vertical-note {
  position: absolute; right: 26px; top: 108px;
  writing-mode: vertical-rl;
  font-family: var(--serif);
  font-size: 12px; letter-spacing: .5em; color: rgba(242,237,228,.20);
  pointer-events: none;
}
@media (max-width: 900px) { .vertical-note { display: none; } }

/* ---------- 悬停静音预览（借鉴 prior-gsap-scrub 模板的“先动起来”思路，但不引 GSAP/canvas） ---------- */
.hovervid {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  visibility: hidden;
  transition: opacity .55s var(--ease), visibility 0s linear .55s;
  z-index: 1;
  pointer-events: none;
}
.hovervid.on {
  opacity: 1;
  visibility: visible;
  transition: opacity .55s var(--ease), visibility 0s;
}

.card__media::after { z-index: 2; }
.vcard__media::after { z-index: 2; }
.card__badge { z-index: 3; }
.card__play  { z-index: 4; }
.vcard__tag,
.vcard__text { z-index: 3; }

/* ---------- 首屏行动按钮 ---------- */
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px;
  font-size: 13px; letter-spacing: .1em;
  border: 1px solid rgba(242, 237, 228, .3);
  transition: background .35s var(--ease), border-color .35s var(--ease), color .35s var(--ease);
}
.btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn--ghost { border-color: rgba(242, 237, 228, .16); color: var(--ink-dim); }
.btn--ghost:hover { background: rgba(242, 237, 228, .08); border-color: rgba(242, 237, 228, .4); color: var(--ink); }
.btn svg { width: 13px; height: 13px; fill: currentColor; }

/* ============================================================
   视觉统一微调（2026-11-10）
   1) 次要文字提亮，小字在深底上更清楚
   2) 竖屏卡片字号收紧，四列时不挤
   3) 文字卡底部对齐 + 悬停细节
   4) 键盘可达性：focus-visible
   5) 首屏竖排装饰，补右侧留白
   ============================================================ */
:root {
  --muted: #8E877D;
}

.vcard__title { font-size: 15px; line-height: 1.5; letter-spacing: .01em; }
.vcard__sub   { font-size: 11px; color: #A69E93; }
.vcard__text  { padding: 13px 13px 14px; }

.tcard { justify-content: flex-start; }
.tcard__foot { margin-top: auto; padding-top: 20px; }

.card__desc, .tcard__desc, .tl-desc { color: #B4ACA1; }

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.hero__note {
  position: absolute;
  right: 30px;
  bottom: 132px;
  writing-mode: vertical-rl;
  font-family: var(--serif);
  font-size: 12px;
  letter-spacing: .62em;
  color: rgba(242, 237, 228, .22);
  pointer-events: none;
}
@media (max-width: 900px) { .hero__note { display: none; } }

/* 时间线标题与卡片标题拉开层级 */
.tl-org { font-size: 21px; }
.tl-date { color: var(--accent-text); }

/* ============================================================
   小屏（≤480px，真机手机）收口
   ============================================================ */
@media (max-width: 480px) {
  .wrap { padding: 0 20px; }
  .hero { padding: 96px 0 72px; }
  .hero h1 { font-size: clamp(44px, 15vw, 76px); }
  .hero__lead { font-size: 14.5px; line-height: 1.9; }
  .stats { margin-top: 44px; }
  .stat__num { font-size: 30px; }
  .section { padding: 64px 0; }
  .sec-title { font-size: 25px; }
  .sec-sub { font-size: 12px; }
  .vcard__title { font-size: 13.5px; }
  .vcard__sub { font-size: 10px; }
  .card__title { font-size: 18px; }
  .tcard { padding: 20px 18px; }
  .tcard__title { font-size: 17px; }
  .tl-org { font-size: 18px; }
  .contact { padding: 72px 0 40px; }
  .contact h2 { font-size: 30px; }
  .contact__rows { gap: 10px 22px; }
  .foot { margin-top: 48px; font-size: 10.5px; }
}

/* ============================================================
   手机端排版修正（CDP 真机视口 390/375/360 实测后）
   ============================================================ */
@media (max-width: 720px) {
  /* 顶部只保留「联系」，随时能跳到最后 */
  .nav__links { display: flex; gap: 0; }
  .nav__links a { display: none; }
  .nav__links a:last-child { display: inline-block; padding: 8px 2px; font-size: 13px; }
}

@media (max-width: 560px) {
  /* 文字卡在竖卡网格里通栏，避免挤成窄条 */
  .grid-vertical > .tcard { grid-column: 1 / -1; }

  /* 两列竖卡的字幕条收紧，标题最多两行 */
  .vcard__title { font-size: 12.5px; line-height: 1.45; }
  .vcard__sub {
    font-size: 9.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .vcard__text { padding: 10px 10px 11px; }

  /* 数据条标签不换行 */
  .stat__label { font-size: 11px; line-height: 1.5; }

  /* 联系方式的触控高度 */
  .contact__row a { display: inline-block; padding: 7px 0; }
}

/* ---------- 可播放卡片 + 弹窗播放器 ---------- */
.card--playable .card__play { opacity: 1; transform: none; }
.card--playable:hover .card__play { transform: scale(1.08); }

.lightbox {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: center;
  padding: 24px;
  background: rgba(6, 5, 4, .93);
  backdrop-filter: blur(6px);
}
.lightbox[hidden] { display: none; }
.lightbox__box { width: min(1000px, 100%); position: relative; }
.lightbox video {
  width: 100%; display: block;
  background: #000;
  border: 1px solid var(--line);
  max-height: 78vh;
}
.lightbox__close {
  position: absolute; top: -46px; right: 0;
  width: 38px; height: 38px;
  display: grid; place-items: center;
  background: transparent;
  border: 1px solid rgba(242, 237, 228, .3);
  color: var(--ink);
  font-size: 20px; line-height: 1;
  cursor: pointer;
  transition: background .3s var(--ease), border-color .3s var(--ease);
}
.lightbox__close:hover { background: var(--accent); border-color: var(--accent); }
.lightbox__cap {
  margin: 14px 0 0; font-size: 12.5px; color: var(--muted); letter-spacing: .06em;
}
body.lightbox-open { overflow: hidden; }

@media (max-width: 560px) {
  .lightbox { padding: 14px; }
  .lightbox__close { top: -42px; width: 34px; height: 34px; }
  .lightbox video { max-height: 66vh; }
}

/* ============================================================
   全部作品页 /works.html
   ============================================================ */
.works-head { padding: 120px 0 40px; position: relative; }
.works-head h1 {
  font-family: var(--serif); font-weight: 700;
  font-size: clamp(34px, 6vw, 64px); line-height: 1.15; margin: 0 0 16px;
}
.works-head p { color: var(--ink-dim); font-size: 14.5px; margin: 0; max-width: 640px; }

.filters { display: flex; flex-wrap: wrap; gap: 10px; margin: 28px 0 8px; }
.chip {
  font: inherit; font-size: 12.5px; letter-spacing: .06em;
  padding: 9px 18px; cursor: pointer;
  background: transparent; color: var(--ink-dim);
  border: 1px solid var(--line);
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.chip:hover { border-color: rgba(242,237,228,.4); color: var(--ink); }
.chip.on { background: var(--accent); border-color: var(--accent); color: #fff; }

.works { padding: 22px 0 90px; }
.wgroup { margin-top: 46px; }
.wgroup:first-child { margin-top: 10px; }
.wgroup__title {
  font-family: var(--serif); font-size: 15px; letter-spacing: .1em;
  color: var(--accent-text);
  padding-bottom: 10px; border-bottom: 1px solid var(--line); margin-bottom: 4px;
}

.wrow {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 24px;
  align-items: center;
  padding: 16px 4px;
  border-bottom: 1px solid rgba(242,237,228,.07);
  transition: background .3s var(--ease);
}
.wrow:hover { background: rgba(242,237,228,.03); }
.wrow__main { min-width: 0; }
.wrow__title {
  font-family: var(--serif); font-size: 16.5px; font-weight: 700; line-height: 1.5;
  margin: 0; color: var(--ink);
}
.wrow__meta { margin: 5px 0 0; font-size: 12px; color: var(--muted); letter-spacing: .04em; }
.wrow__meta b { color: var(--ink-dim); font-weight: 500; }
.wrow__side { display: flex; align-items: center; gap: 16px; white-space: nowrap; }
.wrow__data { font-size: 12.5px; color: var(--gold); letter-spacing: .03em; }
.wrow__go {
  font-size: 12.5px; letter-spacing: .08em;
  padding: 8px 16px; border: 1px solid rgba(242,237,228,.22);
  color: var(--ink-dim);
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.wrow__go:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.wrow__go--off { opacity: .45; cursor: default; }
.wrow__go--off:hover { background: transparent; border-color: rgba(242,237,228,.22); color: var(--ink-dim); }

.works-foot { padding: 0 0 70px; }

@media (max-width: 640px) {
  .works-head { padding: 96px 0 30px; }
  .wrow { grid-template-columns: 1fr; gap: 10px; padding: 14px 2px; }
  .wrow__side { justify-content: space-between; }
  .wrow__title { font-size: 15px; }
}
