:root{
  --bg: #eef0f3;
  --white: #ffffff;
  --dark: #14151c;
  --ink: #14151c;
  --muted: #6b7280;
  --red: #dd1f2c;
  --red-deep: #a8121d;
}
*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Noto Sans SC", -apple-system, BlinkMacSystemFont, "PingFang SC", sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}
.mono{ font-family: "JetBrains Mono", ui-monospace, monospace; }
.section-inner{ max-width: 1040px; margin: 0 auto; padding: 0 24px; }
a{ color: inherit; }

/* ---------------- ticker ---------------- */
.ticker{
  overflow: hidden;
  height: 40px;
  display: flex;
  align-items: center;
  background: repeating-linear-gradient(-45deg, var(--red) 0 16px, var(--dark) 16px 32px);
}
.ticker-track{
  display: flex;
  white-space: nowrap;
  animation: scroll-left 24s linear infinite;
}
.ticker-track span{
  display: inline-block;
  padding: 0 22px;
  font-family: "JetBrains Mono", monospace;
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: .05em;
  color: #fff;
}
@keyframes scroll-left{ from{ transform: translateX(0); } to{ transform: translateX(-50%); } }

/* ---------------- back link ---------------- */
.back-link{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
  margin-bottom: 28px;
  transition: color .2s ease;
}
.back-link:hover{ color: var(--red-deep); }
.back-link:focus-visible{ outline: 3px solid rgba(221,31,44,.35); outline-offset: 3px; border-radius: 4px; }

/* ---------------- hero ---------------- */
.hero{ padding: 72px 0 64px; position: relative; overflow: hidden; }
.hero-inner{ display: flex; align-items: center; gap: 40px; position: relative; }
.hero-text{ flex: 1; min-width: 0; }
.hero-visual{ flex-shrink: 0; width: 300px; opacity: 0.07; pointer-events: none; }
.hero-visual svg{ width: 100%; height: auto; }

.eyebrow{
  font-family: "JetBrains Mono", monospace;
  font-size: 12.5px;
  letter-spacing: 0.14em;
  color: var(--red-deep);
  text-transform: uppercase;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
}
.eyebrow::before{
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 4px rgba(221,31,44,0.14);
}

h1{
  font-size: clamp(30px, 4.6vw, 48px);
  font-weight: 900;
  letter-spacing: -0.015em;
  margin: 0 0 22px;
  max-width: 16ch;
}
.hero h2{ font-size: clamp(22px, 3vw, 30px); font-weight: 900; margin: 8px 0 0; }

.company-line{ font-size: 16px; color: var(--muted); margin-bottom: 22px; }
.company-name{
  color: var(--red);
  font-weight: 700;
  background: linear-gradient(to top, rgba(221,31,44,0.13) 40%, transparent 40%);
  padding: 0 2px;
}

.hero p.lead{ font-size: 17.5px; color: #33363d; max-width: 56ch; margin: 0 0 26px; }

.tags{ display: flex; flex-wrap: wrap; gap: 8px; }
.tag{
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  color: var(--red-deep);
  background: rgba(221,31,44,0.07);
  border: 1px solid rgba(221,31,44,0.18);
  padding: 5px 11px;
  border-radius: 999px;
  font-weight: 500;
}

.hero-text > *{ opacity: 0; animation: rise .6s ease forwards; }
.hero-text .eyebrow{ animation-delay: .05s; }
.hero-text h1{ animation-delay: .15s; }
.hero-text .company-line{ animation-delay: .25s; }
.hero-text .lead{ animation-delay: .35s; }
.hero-text .tags{ animation-delay: .45s; }
@keyframes rise{ from{ opacity:0; transform: translateY(12px); } to{ opacity:1; transform: translateY(0); } }

/* ---------------- cases (timeline, detail page) ---------------- */
.cases{ background: var(--white); padding: 72px 0; }
.section-head{ margin-bottom: 40px; max-width: 60ch; }

.timeline{ position: relative; }
.timeline::before{
  content: "";
  position: absolute;
  left: 31px; top: 30px; bottom: 30px;
  width: 2px;
  background: linear-gradient(to bottom, rgba(221,31,44,.32), rgba(221,31,44,.04));
}
.case-row{
  display: flex;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid #eceef1;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .5s ease, transform .5s ease, background .2s ease;
}
.case-row.visible{ opacity: 1; transform: translateY(0); }
.case-row:last-child{ border-bottom: none; }
.case-row:hover{ background: rgba(221,31,44,0.02); }

.case-marker{ width: 64px; flex-shrink: 0; display: flex; flex-direction: column; align-items: center; gap: 8px; position: relative; z-index: 1; }
.case-num{ font-size: 12px; font-weight: 700; color: var(--red-deep); }
.case-icon{
  width: 44px; height: 44px;
  border-radius: 12px;
  background: rgba(221,31,44,0.08);
  border: 1px solid rgba(221,31,44,0.14);
  display: flex; align-items: center; justify-content: center;
  transition: background .2s ease, border-color .2s ease;
}
.case-icon svg{ width: 20px; height: 20px; stroke: var(--red-deep); transition: stroke .2s ease; }
.case-row:hover .case-icon{ background: var(--red); border-color: var(--red); }
.case-row:hover .case-icon svg{ stroke: #fff; }

.case-content{ flex: 1; padding-top: 2px; }
.case-content h3{ font-size: 18px; font-weight: 700; margin: 0 0 8px; }
.case-content p{ font-size: 14.5px; color: var(--muted); margin: 0; max-width: 60ch; }

/* ---------------- case list (homepage) ---------------- */
.case-list{ background: var(--white); padding: 72px 0; }
.case-list-grid{ display: grid; gap: 18px; }
.case-card{
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  background: var(--bg); border: 1px solid #e4e6ea; border-radius: 18px; padding: 28px 30px;
  text-decoration: none; color: var(--ink);
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.case-card:hover{ border-color: rgba(221,31,44,.35); transform: translateY(-2px); box-shadow: 0 14px 30px rgba(17,20,27,.08); }
.case-card:focus-visible{ outline: 3px solid rgba(221,31,44,.35); outline-offset: 3px; }
.case-card-name{ font-size: 18px; font-weight: 700; margin: 0 0 6px; }
.case-card-desc{ font-size: 14px; color: var(--muted); margin: 0; max-width: 56ch; }
.case-card-arrow{
  flex-shrink: 0; width: 36px; height: 36px; border-radius: 50%;
  background: rgba(221,31,44,.08);
  display: flex; align-items: center; justify-content: center;
  transition: background .2s ease, transform .2s ease;
}
.case-card:hover .case-card-arrow{ background: var(--red); transform: translateX(3px); }
.case-card-arrow svg{ width: 16px; height: 16px; stroke: var(--red-deep); }
.case-card:hover .case-card-arrow svg{ stroke: #fff; }

.case-card-empty{
  border: 1.5px dashed #d5d7db;
  background: transparent;
  justify-content: center;
  text-align: center;
  color: #9a9da3;
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  cursor: default;
}
.case-card-empty:hover{ transform: none; box-shadow: none; border-color: #d5d7db; }

/* ---------------- stats ---------------- */
.stats{ background: var(--dark); padding: 64px 0; }
.stats-grid{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.stat{ text-align: left; }
.stat-num{ font-size: clamp(38px, 6vw, 58px); font-weight: 900; color: #fff; line-height: 1; margin-bottom: 14px; }
.stat-num.accent{ color: var(--red); }
.stat p{ font-size: 14px; color: rgba(255,255,255,0.55); margin: 0; max-width: 28ch; }

/* ---------------- cta ---------------- */
.cta-band{ background: var(--red); padding: 56px 0; }
.cta-inner{ display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-inner h2{ font-size: clamp(20px, 3vw, 26px); color: #fff; margin: 0 0 8px; font-weight: 900; }
.cta-inner p{ font-size: 14.5px; color: rgba(255,255,255,0.8); margin: 0; }
.btn-invert{
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; color: var(--red-deep); text-decoration: none;
  font-size: 14.5px; font-weight: 700; padding: 14px 24px; border-radius: 12px;
  white-space: nowrap; transition: transform .2s ease, box-shadow .2s ease; flex-shrink: 0;
}
.btn-invert:hover{ transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,0,0,0.18); }
.btn-invert:focus-visible{ outline: 3px solid #fff; outline-offset: 3px; }

/* ---------------- footer ---------------- */
.foot{ background: var(--bg); padding: 56px 0 40px; }
.disclaimer-row{ display: flex; gap: 22px; align-items: flex-start; margin-bottom: 28px; }
.stamp{
  flex-shrink: 0; width: 76px; height: 76px;
  border: 2.5px solid var(--red-deep); border-radius: 50%;
  color: var(--red-deep);
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  font-family: "JetBrains Mono", monospace;
  font-size: 10.5px; font-weight: 700; line-height: 1.3;
  transform: rotate(-9deg); opacity: 0.7;
}
.disclaimer-text p{ font-size: 12.5px; color: var(--muted); margin: 0; }
.disclaimer-text p + p{ margin-top: 8px; }
.credit{ text-align: center; font-size: 12px; color: #9a9da3; padding-top: 24px; border-top: 1px solid #dfe1e5; }

@media (max-width: 900px){
  .hero-visual{ display: none; }
}
@media (max-width: 640px){
  .stats-grid{ grid-template-columns: 1fr; gap: 28px; }
  .cta-inner{ flex-direction: column; align-items: flex-start; }
  .btn-invert{ width: 100%; justify-content: center; }
  .disclaimer-row{ flex-direction: column; }
  .case-marker{ width: 52px; }
  .case-icon{ width: 36px; height: 36px; }
  .timeline::before{ left: 25px; }
  .case-card{ flex-direction: column; align-items: flex-start; text-align: left; }
  .case-card-arrow{ align-self: flex-end; }
}

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  .ticker-track{ animation: none; }
  .hero-text > *{ animation: none; opacity: 1; }
  .case-row{ opacity: 1; transform: none; transition: none; }
  .btn-invert, .case-card{ transition: none; }
}
