.tea-case {
  width: min(1480px, 94vw);
  margin: 0 auto;
  padding: 36px 0 72px;
}

.tea-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(390px, .75fr);
  gap: 34px;
  align-items: end;
  min-height: 390px;
  padding: 56px 0 42px;
  border-bottom: 1px solid var(--line);
}

.tea-kicker,
.tea-section-no,
.tea-theme-label {
  color: var(--accent);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  letter-spacing: .08em;
}

.tea-hero h1 {
  position: relative;
  display: inline-block;
  max-width: none;
  margin: 18px 0 0;
  padding-bottom: 26px;
  font-size: clamp(76px, 7vw, 118px);
  line-height: .9;
  letter-spacing: 0;
  white-space: nowrap;
}

.tea-hero h1::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 72%;
  height: 4px;
  background: var(--accent);
}

.tea-subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 22px;
}

.tea-lead { max-width: 760px; margin: 0; color: var(--muted); font-size: 20px; line-height: 1.65; }

.tea-meta {
  display: grid;
  gap: 18px;
  width: 100%;
  max-width: 440px;
  margin-left: auto;
  padding: 28px 34px;
  border: 1px solid var(--line);
}

.tea-meta div {
  display: grid;
  gap: 6px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.tea-meta dt { color: var(--muted); font-size: 14px; }
.tea-meta dd { margin: 0; font-size: 18px; font-weight: 600; }

.tea-metrics {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  border-bottom: 1px solid var(--line);
}

.tea-metric {
  min-height: 132px;
  padding: 28px 22px;
  border-right: 1px solid var(--line);
}

.tea-metric:last-child { border-right: 0; }
.tea-metric b { display: block; color: var(--accent); font-size: 40px; line-height: 1; }
.tea-metric span { display: block; margin-top: 14px; color: var(--muted); font-size: 14px; }

.tea-section {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 42px;
  padding: 58px 0;
  border-bottom: 1px solid var(--line);
}

.tea-section-head { padding-top: 4px; }
.tea-section-head span { display: block; color: var(--accent); font: 30px/1 Georgia, serif; }
.tea-section-head p { margin-top: 14px; color: var(--muted); font-size: 14px; }
.tea-section-body h2 { margin: 0 0 24px; font-size: 34px; line-height: 1.2; }
.tea-section-body h3 { margin: 0 0 14px; font-size: 22px; }
.tea-section-body p { max-width: 1000px; margin: 0; color: #c6c6ca; font-size: 18px; line-height: 1.9; }
.tea-section-body > p + p { margin-top: 14px; }

.tea-two-col {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr);
  gap: 44px;
}

.tea-intro .tea-two-col {
  grid-template-columns: minmax(0, 1.4fr) minmax(330px, .6fr);
  gap: 16px;
  align-items: stretch;
}

.tea-overview-card,
.tea-role-card,
.tea-summary-card,
.tea-takeaways {
  position: relative;
  padding: 32px;
  border: 1px dashed #3a3a40;
  background: #0c0c0f;
  transition: border-color .22s ease, background-color .22s ease, transform .22s ease;
}

.tea-overview-card::before,
.tea-role-card::before,
.tea-summary-card::before,
.tea-takeaways::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 30px;
  width: 68px;
  height: 3px;
  background: var(--accent);
}

.tea-overview-card:hover,
.tea-role-card:hover,
.tea-summary-card:hover,
.tea-takeaways:hover {
  border-style: solid;
  border-color: var(--accent);
  background: #101109;
  transform: translateY(-3px);
}

.tea-intro .tea-overview-card h2,
.tea-intro .tea-role-card h3 {
  margin: 0 0 24px;
  font-size: clamp(25px, 1.75vw, 32px);
  line-height: 1.16;
}

.tea-intro .tea-overview-card h2 { white-space: nowrap; }

.tea-role-grid,
.tea-needs-grid,
.tea-problem-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: 34px;
  background: var(--line);
  border: 1px solid var(--line);
}

.tea-role-card,
.tea-needs article,
.tea-problems article {
  min-height: 150px;
  padding: 26px;
  background: var(--bg);
}

.tea-role-card span,
.tea-needs article > b,
.tea-problems article > span {
  display: block;
  margin-bottom: 12px;
  color: var(--accent);
  font-size: 14px;
}

.tea-role-card strong,
.tea-needs article strong,
.tea-problems article strong {
  display: block;
  margin-bottom: 10px;
  font-size: 20px;
}

.tea-role-card p,
.tea-needs article p,
.tea-problems article p { font-size: 16px; line-height: 1.7; }

.tea-role-card,
.tea-takeaways {
  padding: 32px;
}

.tea-role-card ul,
.tea-takeaways ul,
.tea-materials ul {
  margin: 22px 0 0;
  padding-left: 20px;
  color: #d4d4d8;
}

.tea-role-card li,
.tea-takeaways li,
.tea-materials li { margin: 9px 0; }

.tea-needs,
.tea-problems {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: 32px;
  background: var(--line);
  border: 1px solid var(--line);
}

.tea-needs article,
.tea-problems article { background: var(--bg); }

.tea-design-title {
  margin: 0 0 36px !important;
  line-height: 1.2;
}

.tea-section-body > .tea-subtitle { margin-top: 36px; }

.tea-flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: 32px;
  background: var(--line);
  border: 1px solid var(--line);
}

.tea-flow { margin-bottom: 20px; padding: 0; list-style: none; counter-reset: tea-flow; }
.tea-flow li { min-height: 118px; padding: 22px; background: var(--bg); counter-increment: tea-flow; font-size: 17px; font-weight: 600; }
.tea-flow li:before { content: "0" counter(tea-flow); display: block; margin-bottom: 12px; color: var(--accent); font: 13px ui-monospace, monospace; }

.tea-note { margin-top: 20px !important; color: var(--muted) !important; font-size: 15px !important; }

.tea-table-wrap { margin-top: 34px; overflow-x: auto; border: 1px solid var(--line); }
.tea-table { width: 100%; min-width: 680px; border-collapse: collapse; }
.tea-table th, .tea-table td { padding: 18px 20px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.tea-table th:last-child, .tea-table td:last-child { border-right: 0; }
.tea-table tr:last-child td { border-bottom: 0; }
.tea-table th { color: var(--accent); font-size: 14px; font-weight: 600; }
.tea-table td { color: #c6c6ca; font-size: 16px; line-height: 1.65; }

.tea-prep-grid,
.tea-data-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: 32px;
  background: var(--line);
  border: 1px solid var(--line);
}

.tea-data-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }

.tea-prep-grid article,
.tea-data-grid article { min-height: 142px; padding: 24px; background: var(--bg); }
.tea-prep-grid article > span { color: var(--accent); font-size: 24px; }
.tea-prep-grid h3 { margin: 14px 0 8px; font-size: 18px; }
.tea-prep-grid p { font-size: 15px; line-height: 1.65; }
.tea-data-grid article > b { display: block; color: var(--accent); font-size: 42px; line-height: 1; }
.tea-data-grid article > span { display: block; margin-top: 14px; color: var(--muted); font-size: 14px; }
.tea-data-grid p { margin-top: 14px; font-size: 14px; line-height: 1.6; }

.tea-materials { margin-top: 38px; }
.tea-staff { display: flex; flex-wrap: wrap; gap: 10px; }
.tea-staff span { padding: 8px 11px; border: 1px solid var(--line); color: #d4d4d8; font-size: 14px; }

.tea-problems { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.tea-problems article,
.tea-needs article {
  border: 1px dashed transparent;
  transition: border-color .2s ease, background-color .2s ease, transform .2s ease;
}

.tea-problems article:hover,
.tea-needs article:hover {
  position: relative;
  z-index: 1;
  border-style: solid;
  border-color: var(--accent);
  background: #101109;
  transform: translateY(-2px);
}

.tea-summary .tea-two-col {
  grid-template-columns: minmax(0, 1.2fr) minmax(340px, .8fr);
  gap: 16px;
  align-items: stretch;
}

.tea-summary-card h2,
.tea-takeaways h3 {
  margin: 0 0 24px;
  font-size: clamp(26px, 2vw, 34px);
  line-height: 1.2;
}

.tea-summary-card p { text-indent: 2em; }

.tea-sop {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  margin-top: 32px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.tea-sop article { min-height: 180px; padding: 24px 20px; border-right: 1px solid var(--line); }
.tea-sop article:last-child { border-right: 0; }
.tea-sop time { color: var(--accent); font-size: 14px; }
.tea-sop h3 { margin: 18px 0 10px; font-size: 18px; }
.tea-sop p { font-size: 15px; line-height: 1.65; }

.tea-adjustment {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 30px;
  margin-top: 34px;
  padding: 28px;
  border: 1px solid var(--line);
}

.tea-adjustment strong { color: var(--accent); font-size: 48px; line-height: 1; }
.tea-adjustment p { font-size: 16px; line-height: 1.8; }

.tea-case-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--line);
}

.tea-case-nav a {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 24px;
  color: var(--accent);
  text-decoration: none;
  border-right: 1px solid var(--line);
}

.tea-case-nav a:last-child { border-right: 0; }
.tea-case-nav a:hover { background: #101014; }

@media (max-width: 800px) {
  .tea-case { width: calc(100% - 44px); padding: 12px 0 44px; }
  .tea-hero { grid-template-columns: 1fr; gap: 30px; min-height: 0; padding: 34px 0 30px; }
  .tea-hero h1 { margin-top: 12px; padding-bottom: 18px; font-size: 48px; line-height: 1.02; white-space: normal; }
  .tea-subtitle { font-size: 17px; line-height: 1.6; }
  .tea-meta { gap: 12px; max-width: none; margin-left: 0; padding: 22px; }
  .tea-metrics { grid-template-columns: repeat(2, 1fr); }
  .tea-metric { min-height: 112px; padding: 22px 16px; border-bottom: 1px solid var(--line); }
  .tea-metric:nth-child(2n) { border-right: 0; }
  .tea-metric b { font-size: 32px; }
  .tea-section { grid-template-columns: 1fr; gap: 18px; padding: 42px 0; }
  .tea-section-body h2 { font-size: 29px; }
  .tea-section-body h3 { font-size: 20px; }
  .tea-section-body p { font-size: 16px; line-height: 1.8; }
  .tea-two-col, .tea-needs, .tea-problems, .tea-intro .tea-two-col, .tea-summary .tea-two-col { grid-template-columns: 1fr; }
  .tea-intro .tea-overview-card h2 { white-space: normal; }
  .tea-role-card, .tea-needs article, .tea-problems article { min-height: 0; padding: 22px; }
  .tea-theme { grid-template-columns: 1fr; gap: 10px; padding: 28px 24px; }
  .tea-theme::after { right: 24px; width: 52px; }
  .tea-theme h2 { max-width: calc(100% - 48px); font-size: 34px; }
  .tea-theme strong { font-size: 24px; line-height: 1.35; }
  .tea-flow, .tea-prep-grid, .tea-data-grid { grid-template-columns: repeat(2, 1fr); }
  .tea-data-grid article:last-child { grid-column: 1 / -1; }
  .tea-flow li, .tea-prep-grid article, .tea-data-grid article { min-height: 126px; padding: 18px; }
  .tea-sop { grid-template-columns: 1fr; }
  .tea-sop article { min-height: 0; padding: 22px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .tea-sop article:last-child { border-bottom: 0; }
  .tea-adjustment { grid-template-columns: 1fr; gap: 16px; padding: 22px; }
  .tea-case-nav { grid-template-columns: 1fr; }
  .tea-case-nav a { border-right: 0; border-bottom: 1px solid var(--line); }
  .tea-case-nav a:last-child { border-bottom: 0; }
}
