:root {
  --ink: #232b2f;
  --ink-soft: #505b62;
  --muted: #747a7b;
  --line: #d4d3cd;
  --line-strong: #b7b8b2;
  --paper: #fafaf8;
  --canvas: #ecece7;
  --mist: #e3e4e0;
  --teal: #526a78;
  --teal-dark: #344c59;
  --green: #746b5e;
  --coral: #9b5d4b;
  --gold: #8b7249;
  --blue: #476e80;
  --shadow: 0 14px 34px rgba(37, 42, 43, 0.1);
  --serif: "STSong", "Songti SC", "Noto Serif CJK SC", "Source Han Serif SC", SimSun, Georgia, serif;
  --latin-serif: "Times New Roman", Times, "Nimbus Roman No9 L", serif;
  --sans: Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background-color: var(--canvas);
  background-image: url("/assets/legalaiskill-marble-surface.png");
  background-position: center top;
  background-size: 1500px auto;
  background-attachment: fixed;
  background-blend-mode: soft-light;
  font-family: var(--sans);
  line-height: 1.55;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--teal); }

button, input { font: inherit; }
button { cursor: pointer; }

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 50;
  padding: 8px 12px;
  color: #fff;
  background: var(--ink);
  transform: translateY(-160%);
}

.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(248, 248, 245, 0.96);
  backdrop-filter: blur(14px);
}

.nav, .container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.nav {
  display: flex;
  min-height: 66px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  color: var(--ink);
  font-size: 15px;
  font-weight: 780;
  letter-spacing: 0;
}

.brand-mark {
  position: relative;
  display: block;
  width: 34px;
  height: 34px;
  overflow: hidden;
  border: 1.5px solid var(--teal-dark);
  border-radius: 2px;
  color: transparent;
  font-size: 0;
  transform: rotate(30deg) skewY(-16deg) scale(0.72);
}

.brand-mark::before,
.brand-mark::after {
  position: absolute;
  right: -1.5px;
  left: -1.5px;
  height: 8px;
  content: "";
  border-top: 1.5px solid var(--teal-dark);
  border-bottom: 1.5px solid var(--teal-dark);
}

.brand-mark::before { top: 7px; }
.brand-mark::after { top: 17px; }

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 4px 18px;
  font-size: 14px;
  font-weight: 650;
}

.nav-links a {
  padding: 9px 0;
  color: var(--ink-soft);
  border-bottom: 2px solid transparent;
}

.nav-links a[aria-current="page"], .nav-links a:hover {
  color: var(--teal-dark);
  border-bottom-color: var(--teal);
}

.site-main { min-height: calc(100vh - 230px); }

.page-heading {
  padding: 46px 0 30px;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1, h2, h3, p { overflow-wrap: anywhere; }

h1 {
  max-width: 840px;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(31px, 4vw, 52px);
  font-weight: 600;
  letter-spacing: 0.025em;
  line-height: 1.16;
  text-rendering: optimizeLegibility;
}

h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(24px, 2.5vw, 33px);
  font-weight: 600;
  letter-spacing: 0.018em;
  line-height: 1.28;
  text-rendering: optimizeLegibility;
}

h3 {
  margin: 0;
  font-size: 17px;
  line-height: 1.35;
}

.lede {
  max-width: 720px;
  margin: 16px 0 0;
  color: var(--ink-soft);
  font-size: 17px;
}

.home-intro { background: var(--paper); }

.home-intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.9fr);
  gap: 44px;
  padding: 58px 0 46px;
  align-items: center;
}

.home-intro-copy { padding: 8px 0; }

.home-intro-copy h1 { max-width: 640px; }

.home-intro-copy .lede { max-width: 620px; }

.intro-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 25px;
}

.action-link {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 9px 14px;
  border: 1px solid var(--teal);
  border-radius: 6px;
  color: #fff;
  background: var(--teal);
  font-size: 14px;
  font-weight: 740;
}

.action-link:hover { color: #fff; background: var(--teal-dark); }

.action-link.quiet {
  color: var(--teal-dark);
  background: transparent;
}

.action-link.quiet:hover { color: var(--teal-dark); background: var(--mist); }

.research-visual {
  position: relative;
  min-height: 348px;
  margin: 0;
  overflow: hidden;
  border-radius: 6px;
  background: #e5eef0;
  box-shadow: var(--shadow);
}

.research-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border: 1px solid rgba(20, 36, 58, 0.14);
  border-radius: inherit;
}

.research-visual img {
  display: block;
  width: 100%;
  height: 348px;
  object-fit: cover;
}

.research-visual figcaption {
  position: absolute;
  right: 16px;
  bottom: 14px;
  max-width: 230px;
  padding: 7px 9px;
  color: #fff;
  background: rgba(20, 36, 58, 0.86);
  border-radius: 4px;
  font-size: 12px;
  line-height: 1.4;
}

.metric-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--mist);
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.metric {
  display: grid;
  gap: 2px;
  padding: 19px 24px;
  border-right: 1px solid var(--line);
}

.metric:first-child { border-left: 1px solid var(--line); }
.metric strong { color: var(--teal-dark); font-size: 24px; line-height: 1; }
.metric span { color: var(--ink-soft); font-size: 13px; font-weight: 660; }

.section { padding: 52px 0; }
.section-white { background: rgba(250, 250, 248, 0.94); }
.section-soft {
  background-color: rgba(236, 236, 231, 0.82);
  background-image: url("/assets/legalaiskill-marble-surface.png");
  background-position: center;
  background-size: 1500px auto;
  background-blend-mode: soft-light;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 22px;
}

.section-heading p { max-width: 560px; margin: 8px 0 0; color: var(--ink-soft); }
.all-link { flex: 0 0 auto; color: var(--teal-dark); font-size: 14px; font-weight: 750; }

.tool-list, .review-list { border-top: 2px solid var(--ink); }

.tool-row {
  display: grid;
  grid-template-columns: minmax(170px, 0.9fr) minmax(200px, 1.25fr) minmax(150px, 0.85fr) minmax(120px, 0.55fr) auto;
  align-items: center;
  gap: 20px;
  min-height: 104px;
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
}

.tool-row:hover { background: rgba(239, 240, 236, 0.78); }

.tool-title { display: grid; gap: 5px; min-width: 0; }
.tool-title a { color: var(--ink); font-weight: 760; }
.tool-title a:hover { color: var(--teal-dark); }
.tool-title small { color: var(--muted); font-size: 12px; }
.tool-summary { margin: 0; color: var(--ink-soft); font-size: 13px; }

.tag-row { display: flex; flex-wrap: wrap; gap: 6px; }
.tag, .status, .source-label {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 24px;
  padding: 3px 7px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  color: var(--ink-soft);
  background: var(--paper);
  font-size: 12px;
  font-weight: 680;
  line-height: 1.2;
}

.tag { border-color: #c7cccb; color: var(--teal-dark); background: #f6f7f4; }
.status.associated, .source-label.associated { color: #685641; border-color: #c8b9a4; background: #f4eee5; }
.status.published { color: #2f4c58; border-color: #aab8ba; background: #edf1f0; }
.status.pending { color: #775d3b; border-color: #d7c39e; background: #f7f1e7; }
.status.progress { color: #3f677d; border-color: #afc4cd; background: #edf4f5; }

.row-action { color: var(--teal-dark); font-size: 13px; font-weight: 760; white-space: nowrap; }

.latest-tool-row {
  grid-template-columns: minmax(170px, 0.88fr) minmax(200px, 1.2fr) minmax(145px, 0.72fr) minmax(120px, 0.54fr) 112px auto;
}

.latest-date {
  color: var(--muted);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.review-row {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(170px, 0.75fr) minmax(180px, 0.85fr) auto;
  align-items: center;
  gap: 22px;
  min-height: 106px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.review-row p { margin: 5px 0 0; color: var(--ink-soft); font-size: 13px; }

.method-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--line);
}

.method-cell {
  min-height: 194px;
  padding: 24px 21px;
  border-right: 1px solid var(--line);
}

.method-cell:last-child { border-right: 0; }
.method-number { color: var(--coral); font-family: var(--serif); font-size: 30px; line-height: 1; }
.method-cell h3 { margin-top: 16px; }
.method-cell p { margin: 8px 0 0; color: var(--ink-soft); font-size: 13px; }

.page-layout { padding: 35px 0 64px; }

.directory-toolbar {
  display: grid;
  grid-template-areas: "search" "role" "work" "source";
  grid-template-columns: minmax(0, 1fr);
  gap: 15px;
  align-items: end;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.search-field { position: relative; grid-area: search; }
.search-field label { display: block; margin-bottom: 7px; color: var(--ink-soft); font-size: 13px; font-weight: 760; }
.search-field input {
  width: 100%;
  height: 44px;
  padding: 0 43px 0 13px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  color: var(--ink);
  background: var(--paper);
  outline: none;
}
.search-field input:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(58, 85, 102, 0.14); }
.search-clear {
  position: absolute;
  right: 7px;
  bottom: 6px;
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 0;
  border-radius: 4px;
  color: var(--ink-soft);
  background: transparent;
  font-size: 20px;
}
.search-clear:hover { background: var(--mist); }

.filter-groups { display: contents; }
.filter-line { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.filter-role,
.filter-source,
.filter-work { gap: 7px; padding-top: 15px; border-top: 1px solid var(--line); }
.filter-role { grid-area: role; }
.filter-source { grid-area: source; }
.filter-work { grid-area: work; }
.filter-role .filter-label,
.filter-source .filter-label,
.filter-work .filter-label { flex: 0 0 100%; margin: 0 0 1px; }
.filter-label { margin-right: 4px; color: var(--muted); font-size: 12px; font-weight: 760; }
.filter-button {
  min-height: 32px;
  padding: 5px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  color: var(--ink-soft);
  background: var(--paper);
  font-size: 13px;
  font-weight: 700;
}
.filter-button[aria-pressed="true"] { border-color: var(--teal-dark); color: #fff; background: var(--teal-dark); }

.directory-meta { display: flex; justify-content: space-between; gap: 18px; padding: 16px 0 10px; color: var(--muted); font-size: 13px; }
.directory-meta strong { color: var(--ink-soft); }
.empty-state { padding: 54px 0; color: var(--ink-soft); text-align: center; border-top: 2px solid var(--ink); border-bottom: 1px solid var(--line); }

.detail-shell { padding: 36px 0 70px; }
.detail-back { display: inline-block; margin-bottom: 24px; color: var(--teal-dark); font-size: 14px; font-weight: 740; }
.detail-header { display: grid; grid-template-columns: minmax(0, 1fr) minmax(250px, 0.36fr); gap: 42px; padding-bottom: 30px; border-bottom: 2px solid var(--ink); }
.detail-header h1 { font-size: clamp(30px, 4vw, 48px); }
.detail-header .lede { font-size: 16px; }

.detail-aside { padding: 18px; align-self: start; border: 1px solid var(--line); border-radius: 4px; background: var(--mist); box-shadow: inset 0 1px rgba(255, 255, 255, 0.66), inset 0 -1px rgba(72, 77, 76, 0.05); }
.detail-aside strong { display: block; margin-bottom: 9px; font-size: 14px; }
.detail-aside p { margin: 0; color: var(--ink-soft); font-size: 13px; }
.detail-aside p + p { margin-top: 11px; }

.detail-body { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 56px; padding-top: 38px; }
.detail-body h2 { margin-bottom: 14px; font-size: 25px; }
.detail-body p { color: var(--ink-soft); }
.detail-body ul { padding-left: 20px; color: var(--ink-soft); }
.detail-body li + li { margin-top: 7px; }

.facts { margin: 0; border-top: 1px solid var(--line); }
.facts div { display: grid; grid-template-columns: 92px 1fr; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--muted); font-size: 13px; font-weight: 700; }
.facts dd { margin: 0; color: var(--ink-soft); font-size: 13px; }
.facts a { color: var(--teal-dark); font-weight: 700; }

.boundary-note { padding: 17px; border-left: 4px solid var(--coral); color: var(--ink-soft); background: #f5efeb; font-size: 14px; }

.review-detail-score {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--mist);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.66), inset 0 -1px rgba(72, 77, 76, 0.05);
}
.review-detail-score strong { display: block; font-family: var(--serif); font-size: 24px; }
.review-detail-score p { margin: 8px 0 0; font-size: 13px; }

.evidence-list { padding: 0; margin: 0; list-style: none; border-top: 1px solid var(--line); }
.evidence-list li { padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--ink-soft); font-size: 14px; }
.evidence-list li::before { content: "□"; margin-right: 9px; color: var(--teal); font-weight: 800; }

.score-table { width: 100%; border-collapse: collapse; margin-top: 14px; }
.score-table th, .score-table td { padding: 10px 0; border-bottom: 1px solid var(--line); text-align: left; font-size: 14px; }
.score-table th { color: var(--ink-soft); font-weight: 700; }
.score-table td:last-child { color: var(--teal-dark); font-weight: 800; text-align: right; }

.copy-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 58px; padding: 42px 0 70px; }
.copy-layout article { max-width: 740px; }
.copy-layout h2 { margin: 35px 0 14px; font-size: 26px; }
.copy-layout h2:first-child { margin-top: 0; }
.copy-layout p, .copy-layout li { color: var(--ink-soft); }
.copy-layout li + li { margin-top: 9px; }
.side-index { align-self: start; position: sticky; top: 90px; padding-left: 19px; border-left: 2px solid var(--line-strong); }
.side-index strong { display: block; margin-bottom: 9px; font-size: 13px; }
.side-index a { display: block; padding: 5px 0; color: var(--ink-soft); font-size: 13px; }
.side-index a:hover { color: var(--teal-dark); }

.notice { padding: 17px 18px; border: 1px solid #d6c4a7; border-radius: 4px; color: #67543d; background: #f4efe7; font-size: 14px; }
.notice strong { color: #51422f; }

.site-footer { border-top: 1px solid var(--line); background: var(--paper); }
.footer-grid { display: grid; grid-template-columns: 1.3fr repeat(3, 0.7fr); gap: 34px; padding: 34px 0 22px; }
.footer-brand { max-width: 330px; }
.footer-brand p { margin: 10px 0 0; color: var(--ink-soft); font-size: 13px; }
.footer-column strong { display: block; margin-bottom: 9px; font-size: 13px; }
.footer-column a, .footer-column span { display: block; padding: 3px 0; color: var(--ink-soft); font-size: 13px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 18px; padding: 14px 0 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }

.loading { padding: 42px 0; color: var(--muted); text-align: center; }

@media (max-width: 940px) {
  .home-intro-grid, .detail-header, .detail-body, .copy-layout { grid-template-columns: 1fr; }
  .home-intro-grid { gap: 28px; padding-top: 38px; }
  .research-visual, .research-visual img { min-height: 300px; height: 300px; }
  .detail-body { gap: 30px; }
  .side-index { display: none; }
  .tool-row { grid-template-columns: minmax(170px, 1fr) minmax(160px, 1fr) auto; }
  .latest-tool-row { grid-template-columns: minmax(170px, 1fr) minmax(160px, 1fr) auto; }
  .latest-tool-row .latest-date { grid-column: 1 / 2; }
  .tool-summary, .tool-row > .tag-row:nth-of-type(2) { display: none; }
  .review-row { grid-template-columns: minmax(0, 1fr) auto; row-gap: 8px; }
  .review-row > :nth-child(3) { display: none; }
  .review-row > :nth-child(4) { grid-column: 1 / -1; justify-self: start; }
  .method-grid { grid-template-columns: repeat(2, 1fr); }
  .method-cell:nth-child(2) { border-right: 0; }
  .method-cell:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }
}

@media (max-width: 670px) {
  .nav, .container { width: min(100% - 28px, 1180px); }
  .nav { align-items: flex-start; min-height: 0; padding: 12px 0 11px; gap: 12px; }
  .brand { font-size: 14px; }
  .brand-mark { width: 30px; height: 30px; }
  .nav-links { justify-content: flex-start; gap: 0 14px; font-size: 12px; }
  .nav-links a { padding: 3px 0; }
  .nav-links a:last-child { display: none; }
  .page-heading { padding: 32px 0 24px; }
  h1 { font-size: 32px; }
  .lede { font-size: 15px; }
  .home-intro-grid { padding: 34px 0; }
  .research-visual, .research-visual img { min-height: 245px; height: 245px; }
  .metric-grid { grid-template-columns: 1fr; }
  .metric, .metric:first-child { border-right: 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .metric:last-child { border-bottom: 0; }
  .section { padding: 39px 0; }
  .section-heading { align-items: start; flex-direction: column; gap: 9px; }
  .tool-row { grid-template-columns: minmax(0, 1fr) auto; gap: 10px; min-height: 88px; padding: 14px 0; }
  .latest-tool-row { grid-template-columns: minmax(0, 1fr) auto; }
  .tool-row > .tag-row { grid-column: 1 / -1; }
  .tool-row > .tag-row:nth-of-type(2) { display: flex; }
  .latest-tool-row .latest-date { grid-column: 1 / -1; margin-top: -4px; }
  .row-action { align-self: start; }
  .method-grid { grid-template-columns: 1fr; }
  .method-cell, .method-cell:nth-child(2) { min-height: 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .method-cell:last-child { border-bottom: 0; }
  .directory-toolbar { grid-template-areas: "search" "role" "work" "source"; grid-template-columns: 1fr; gap: 14px; }
  .filter-role,
  .filter-source { min-height: 0; }
  .filter-role,
  .filter-work,
  .filter-source { padding-top: 14px; }
  .directory-meta { align-items: start; flex-direction: column; gap: 4px; }
  .detail-shell, .page-layout { padding-top: 26px; }
  .detail-header { gap: 22px; }
  .detail-header h1 { font-size: 32px; }
  .detail-aside { padding: 15px; }
  .facts div { grid-template-columns: 80px 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { align-items: start; flex-direction: column; gap: 5px; }
}

/* Home: the tide is the discovery surface, not a decorative hero image. */
.site-header-home {
  position: absolute;
  width: 100%;
  border-bottom: 0;
  background: transparent;
  backdrop-filter: none;
}

.site-header-home .nav-links a {
  color: #24485a;
}

.site-header-home .nav-links a[aria-current="page"],
.site-header-home .nav-links a:hover {
  color: var(--teal-dark);
  border-bottom-color: var(--teal);
}

.tide-hero {
  position: relative;
  isolation: isolate;
  min-height: min(790px, 88svh);
  overflow: hidden;
  background-color: #dff0ee;
  background-image: url("/assets/tide-discovery-hero.png");
  background-position: center;
  background-size: cover;
}

.tide-hero::after {
  position: absolute;
  right: -2%;
  bottom: -1px;
  left: -2%;
  z-index: 3;
  height: 105px;
  content: "";
  pointer-events: none;
  background: var(--paper);
  clip-path: polygon(0 61%, 14% 77%, 28% 54%, 42% 73%, 58% 57%, 74% 76%, 88% 55%, 100% 70%, 100% 100%, 0 100%);
}

.tide-canvas,
.tide-veil {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.tide-canvas { z-index: -1; }
.tide-veil { z-index: -1; background: rgba(244, 252, 251, 0.13); }

.tide-hero-layout {
  position: relative;
  min-height: min(790px, 88svh);
  padding-top: 136px;
  padding-bottom: 126px;
}

.tide-intro {
  position: relative;
  z-index: 2;
  max-width: 480px;
}

.tide-intro h1 {
  max-width: 520px;
  font-size: clamp(34px, 4.1vw, 56px);
}

.tide-intro > p:not(.eyebrow) {
  max-width: 430px;
  margin: 15px 0 0;
  color: #365a67;
  font-size: 15px;
}

.tide-field {
  position: absolute;
  inset: 0;
  z-index: 2;
}

.tide-loading {
  position: absolute;
  top: 52%;
  left: 50%;
  margin: 0;
  color: var(--ink-soft);
  font-size: 13px;
  transform: translate(-50%, -50%);
}

.tide-item {
  position: absolute;
  left: var(--x);
  top: var(--y);
  z-index: var(--layer, 1);
  display: grid;
  width: var(--size, 54px);
  height: var(--size, 54px);
  padding: 0;
  place-items: center;
  border: 1px solid rgba(55, 112, 117, 0.42);
  border-radius: 45% 55% 52% 48% / 56% 47% 53% 44%;
  color: var(--ink);
  background: rgba(232, 249, 244, 0.58);
  box-shadow: 0 9px 19px rgba(44, 101, 102, 0.19), inset 0 1px 1px rgba(255, 255, 255, 0.8);
  cursor: pointer;
  opacity: 0;
  transform: rotate(var(--tilt, 0deg)) translateY(15px);
  animation: tide-arrive 900ms cubic-bezier(.2, .8, .25, 1) forwards;
  animation-delay: var(--delay, 0ms);
  transition: border-color 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.tide-item::before {
  width: 64%;
  height: 64%;
  content: "";
  border: 0;
  border-radius: 48% 52% 58% 42% / 50% 40% 60% 50%;
  background: rgba(246, 255, 251, 0.7);
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.9), inset -3px -4px 8px rgba(42, 141, 136, 0.15);
  transform: rotate(20deg);
  animation: tide-object-float var(--drift, 6s) ease-in-out 1s infinite;
}

.tide-item:nth-child(3n)::before { border-radius: 50%; }
.tide-item:nth-child(4n)::before { background: rgba(255, 244, 224, 0.76); box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.9), inset -3px -4px 8px rgba(171, 115, 59, 0.14); }
.tide-item:nth-child(4n) { background: rgba(249, 234, 209, 0.61); border-color: rgba(170, 115, 57, 0.35); }
.tide-item:nth-child(5n) { background: rgba(223, 241, 240, 0.72); }
.tide-item:hover,
.tide-item:focus-visible,
.tide-item[aria-pressed="true"] {
  z-index: 8;
  border-color: var(--teal-dark);
  box-shadow: 0 15px 28px rgba(8, 81, 89, 0.28), inset 0 1px 1px rgba(255, 255, 255, 0.9);
  filter: saturate(1.1) brightness(1.04);
  outline: none;
}

.tide-item:focus-visible { outline: 3px solid rgba(189, 86, 68, 0.7); outline-offset: 4px; }

.tide-item-label {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  display: none;
  min-width: max-content;
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 780;
  white-space: nowrap;
  transform: translateX(-50%);
}

.tide-item[aria-pressed="true"] .tide-item-label { display: block; }

.tide-selection {
  position: absolute;
  top: 31%;
  right: 1.7%;
  z-index: 6;
  width: min(300px, 27%);
  padding: 4px 0 4px 21px;
  border-left: 1px solid rgba(20, 36, 58, 0.34);
}

.selection-kicker {
  margin: 0 0 5px;
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.tide-selection h2 {
  font-family: var(--sans);
  font-size: clamp(19px, 1.8vw, 25px);
  line-height: 1.3;
}

.tide-selection > p:not(.selection-kicker) {
  margin: 9px 0 0;
  color: #365a67;
  font-size: 13px;
}

.tide-selection-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.tide-selection-action {
  display: inline-flex;
  margin-top: 14px;
  color: var(--teal-dark);
  font-size: 13px;
  font-weight: 800;
}

.tide-controls {
  position: absolute;
  bottom: 111px;
  left: 0;
  z-index: 6;
}

.tide-expand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  color: var(--teal-dark);
  border-bottom: 1px solid var(--teal-dark);
  font-size: 14px;
  font-weight: 800;
}

.tide-expand span { font-size: 17px; transition: transform 180ms ease; }
.tide-expand:hover span { transform: translateY(3px); }
.tide-controls p { margin: 9px 0 0; color: #456770; font-size: 12px; }
.tide-controls strong { color: var(--teal-dark); font-size: 17px; }

.atlas-section { padding: 36px 0 58px; background: var(--paper); }

.atlas-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 26px;
  margin-bottom: 24px;
}

.atlas-heading p { max-width: 590px; margin: 8px 0 0; color: var(--ink-soft); }

.tide-atlas { border-top: 2px solid var(--ink); }

.atlas-group + .atlas-group { margin-top: 38px; }

.atlas-group-heading {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 16px 0 12px;
}

.atlas-group-heading h3 { font-size: 15px; }
.atlas-group-heading p { margin: 0; color: var(--muted); font-size: 12px; }

.associated-atlas .atlas-group-heading h3 { color: var(--teal-dark); }

.atlas-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.atlas-item {
  display: flex;
  min-height: 196px;
  padding: 22px 20px 20px;
  flex-direction: column;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.atlas-item:nth-child(3n) { border-right: 0; }
.atlas-item:hover { background: #f7fbfa; }
.atlas-item-top { display: flex; justify-content: space-between; gap: 12px; align-items: start; }
.atlas-item h3 { max-width: 240px; font-size: 17px; }
.atlas-item h3 a:hover { color: var(--teal-dark); }
.atlas-item p { margin: 10px 0 0; color: var(--ink-soft); font-size: 13px; }
.atlas-item .tag-row { margin-top: auto; padding-top: 14px; }

@keyframes tide-arrive {
  from { opacity: 0; transform: rotate(var(--tilt, 0deg)) translateY(20px) scale(0.82); }
  to { opacity: 1; transform: rotate(var(--tilt, 0deg)) translateY(0) scale(1); }
}

@keyframes tide-float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -8px; }
}

@keyframes tide-object-float {
  0%, 100% { transform: rotate(20deg) translateY(0); }
  50% { transform: rotate(20deg) translateY(-5px); }
}

@media (max-width: 940px) {
  .tide-hero,
  .tide-hero-layout { min-height: min(760px, 86svh); }
  .tide-selection { right: 0; width: min(280px, 31%); }
  .atlas-grid { grid-template-columns: repeat(2, 1fr); }
  .atlas-item:nth-child(3n) { border-right: 1px solid var(--line); }
  .atlas-item:nth-child(2n) { border-right: 0; }
}

@media (max-width: 670px) {
  .site-header-home { background: rgba(247, 252, 251, 0.48); backdrop-filter: blur(10px); }
  .tide-hero,
  .tide-hero-layout { min-height: min(700px, 86svh); }
  .tide-hero { background-position: 48% center; }
  .tide-hero-layout { padding-top: 108px; padding-bottom: 104px; }
  .tide-intro { max-width: 310px; }
  .tide-intro h1 { font-size: 34px; }
  .tide-intro > p:not(.eyebrow) { max-width: 280px; font-size: 13px; }
  .tide-selection { top: 320px; right: auto; bottom: auto; left: 0; width: min(270px, 72%); padding-left: 14px; }
  .tide-selection h2 { font-size: 18px; }
  .tide-selection > p:not(.selection-kicker) { font-size: 12px; }
  .tide-selection-meta { margin-top: 8px; }
  .tide-selection-action { margin-top: 10px; }
  .tide-controls { bottom: 91px; }
  .tide-controls p { display: none; }
  .tide-item { width: var(--mobile-size, 42px); height: var(--mobile-size, 42px); }
  .tide-item:nth-child(n + 8) { display: none; }
  .tide-item-label { font-size: 11px; }
  .tide-hero::after { height: 72px; }
  .atlas-section { padding: 26px 0 42px; }
  .atlas-heading { align-items: start; flex-direction: column; gap: 8px; }
  .atlas-group + .atlas-group { margin-top: 29px; }
  .atlas-group-heading { align-items: start; flex-direction: column; gap: 2px; }
  .atlas-grid { grid-template-columns: 1fr; border-left: 0; }
  .atlas-item, .atlas-item:nth-child(3n) { min-height: 0; border-right: 0; }
  .atlas-item { padding: 18px 0; }
  .atlas-item:nth-child(2n) { border-right: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .tide-item { animation: none; opacity: 1; transform: rotate(var(--tilt, 0deg)); }
  .tide-expand span { transition: none; }
}

/* Source Strata: the homepage acts as a research entrance, not a decorative scene. */
.strata-hero {
  position: relative;
  isolation: isolate;
  min-height: min(840px, 90svh);
  overflow: hidden;
  background-color: #f3f4f2;
  background-image: url("/assets/source-strata-surface.png");
  background-position: center;
  background-size: cover;
}

.strata-hero::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  height: 106px;
  content: "";
  pointer-events: none;
  background: var(--paper);
  clip-path: polygon(0 70%, 18% 82%, 38% 63%, 60% 76%, 80% 59%, 100% 72%, 100% 100%, 0 100%);
}

.strata-scan {
  position: absolute;
  top: 4%;
  bottom: 6%;
  left: 58%;
  z-index: 0;
  width: 1px;
  pointer-events: none;
  background: #d8fbf4;
  box-shadow: 0 0 11px rgba(103, 218, 205, 0.88), 0 0 32px rgba(103, 218, 205, 0.4);
  animation: source-scan 9s ease-in-out infinite;
}

.strata-hero-layout {
  position: relative;
  z-index: 2;
  min-height: min(840px, 90svh);
  padding-top: 178px;
  padding-bottom: 132px;
}

.strata-intro { max-width: 442px; }

.strata-intro h1 {
  font-family: var(--sans);
  font-size: clamp(42px, 5vw, 74px);
  font-weight: 760;
  letter-spacing: 0;
  line-height: 0.96;
  overflow-wrap: normal;
  white-space: nowrap;
}

.strata-subtitle {
  margin: 13px 0 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 21px;
  line-height: 1.3;
}

.strata-lede {
  max-width: 372px;
  margin: 16px 0 0;
  color: var(--ink-soft);
  font-size: 15px;
}

.strata-task-tabs {
  display: flex;
  max-width: 382px;
  margin-top: 31px;
  flex-wrap: wrap;
  gap: 8px;
}

.strata-task {
  min-width: 52px;
  min-height: 34px;
  padding: 6px 10px;
  border: 1px solid rgba(20, 36, 58, 0.34);
  border-radius: 2px;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.54);
  font-size: 13px;
  font-weight: 760;
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.strata-task:hover,
.strata-task:focus-visible,
.strata-task[aria-pressed="true"] {
  border-color: var(--teal-dark);
  color: #fff;
  background: var(--teal-dark);
  outline: none;
}

.strata-task:focus-visible { box-shadow: 0 0 0 3px rgba(189, 86, 68, 0.35); }

.strata-inspect {
  position: absolute;
  top: 31%;
  right: 2.1%;
  width: min(330px, 30%);
  padding: 16px 0 15px 22px;
  border-left: 1px solid rgba(20, 36, 58, 0.36);
  background: rgba(250, 252, 250, 0.52);
  backdrop-filter: blur(8px);
}

.strata-kicker {
  margin: 0 0 6px;
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 830;
  letter-spacing: 0.08em;
}

.strata-inspect h2 {
  font-family: var(--sans);
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.2;
}

.strata-inspect-summary { margin: 9px 0 0; color: var(--ink-soft); font-size: 13px; }
.strata-empty { margin: 17px 0 0; color: var(--muted); font-size: 13px; }

.strata-source-group { margin-top: 17px; }
.strata-source-group > p { margin: 0 0 5px; color: var(--muted); font-size: 11px; font-weight: 770; }
.strata-source-group.associated > p { color: var(--teal-dark); }

.strata-candidate {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 9px;
  align-items: center;
  min-height: 34px;
  border-top: 1px solid rgba(20, 36, 58, 0.15);
  color: var(--ink);
}

.strata-candidate:hover { color: var(--teal-dark); }
.strata-candidate-name { min-width: 0; font-size: 13px; font-weight: 760; }
.strata-candidate-note { grid-column: 1 / -1; margin: -3px 0 5px; color: var(--muted); font-size: 11px; }
.strata-candidate .status { min-height: 20px; padding: 2px 5px; font-size: 10px; }

.strata-catalog-link {
  display: inline-flex;
  margin-top: 17px;
  color: var(--teal-dark);
  border-bottom: 1px solid var(--teal-dark);
  font-size: 13px;
  font-weight: 800;
}

.strata-index-link {
  position: absolute;
  bottom: 108px;
  left: 0;
  z-index: 3;
  display: inline-flex;
  gap: 10px;
  align-items: center;
  color: var(--teal-dark);
  border-bottom: 1px solid var(--teal-dark);
  font-size: 13px;
  font-weight: 800;
}

.method-header {
  position: absolute;
  width: 100%;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  background: transparent;
  backdrop-filter: none;
}

.method-header .brand,
.method-header .nav-links a { color: #f7f8f4; }
.method-header .brand-mark { border-color: #e6f8f4; }
.method-header .brand-mark::before,
.method-header .brand-mark::after { border-color: #e6f8f4; }
.method-header .nav-links a[aria-current="page"],
.method-header .nav-links a:hover { color: #fff; border-bottom-color: #d4fff6; }

.method-hero {
  min-height: min(700px, 76svh);
  padding: 176px 0 88px;
  color: #fff;
  background-color: #5e615e;
  background-image: url("/assets/marble-forum-methodology.png");
  background-position: center;
  background-size: cover;
}

.method-hero-content { max-width: 440px; }
.method-hero .eyebrow { color: #d7fff5; }
.method-hero h1 { color: #fff; font-size: clamp(44px, 5vw, 70px); }
.method-hero p:not(.eyebrow) { margin: 17px 0 0; color: rgba(255, 255, 255, 0.84); font-size: 17px; }
.method-hero-link { display: inline-flex; margin-top: 28px; color: #fff; border-bottom: 1px solid rgba(255,255,255,0.82); font-size: 14px; font-weight: 800; }

@keyframes source-scan {
  0%, 100% { left: 56%; opacity: 0.72; }
  50% { left: 72%; opacity: 1; }
}

@media (max-width: 940px) {
  .strata-hero,
  .strata-hero-layout { min-height: min(790px, 88svh); }
  .strata-inspect { right: 0; width: min(310px, 35%); }
}

@media (max-width: 670px) {
  .strata-hero,
  .strata-hero-layout { min-height: min(760px, 88svh); }
  .strata-hero { background-position: 61% center; }
  .strata-scan { left: 66%; }
  .strata-hero-layout { padding-top: 108px; padding-bottom: 88px; }
  .strata-intro { max-width: 320px; }
  .strata-intro h1 { font-size: 48px; }
  .strata-subtitle { font-size: 18px; }
  .strata-lede { max-width: 290px; font-size: 13px; }
  .strata-task-tabs { max-width: 250px; margin-top: 22px; gap: 6px; }
  .strata-task { min-width: 46px; min-height: 31px; padding: 5px 8px; font-size: 12px; }
  .strata-inspect { top: auto; right: 0; bottom: 103px; width: min(235px, 65%); padding: 11px 0 8px 14px; }
  .strata-inspect h2 { font-size: 18px; }
  .strata-inspect-summary { font-size: 12px; }
  .strata-source-group { margin-top: 10px; }
  .strata-source-group:nth-of-type(n + 3) { display: none; }
  .strata-candidate { min-height: 29px; }
  .strata-candidate-name { font-size: 12px; }
  .strata-catalog-link { margin-top: 10px; font-size: 12px; }
  .strata-index-link { bottom: 69px; font-size: 12px; }
  .method-header { background: rgba(32, 34, 33, 0.3); backdrop-filter: blur(9px); }
  .method-hero { min-height: min(650px, 75svh); padding-top: 120px; background-position: 63% center; }
  .method-hero-content { max-width: 270px; }
  .method-hero h1 { font-size: 45px; }
  .method-hero p:not(.eyebrow) { font-size: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  .strata-scan { animation: none; }
}

/* LegalAISkill visual system: civic marble, cinematic light, functional task entry. */
.site-header-home,
.method-header {
  border-bottom-color: transparent;
  background: linear-gradient(180deg, rgba(14, 18, 22, 0.58), rgba(14, 18, 22, 0));
}

.site-header-home .brand,
.site-header-home .nav-links a,
.method-header .brand,
.method-header .nav-links a { color: rgba(255, 255, 255, 0.92); }

.site-header-home .brand-mark,
.method-header .brand-mark { border-color: rgba(255, 255, 255, 0.92); }
.site-header-home .brand-mark::before,
.site-header-home .brand-mark::after,
.method-header .brand-mark::before,
.method-header .brand-mark::after { border-color: rgba(255, 255, 255, 0.92); }

.site-header-home .nav-links a[aria-current="page"],
.site-header-home .nav-links a:hover,
.method-header .nav-links a[aria-current="page"],
.method-header .nav-links a:hover {
  color: #fff;
  border-bottom-color: rgba(255, 255, 255, 0.92);
}

.strata-hero {
  min-height: min(860px, 92svh);
  background-color: #202426;
  background-image: url("/assets/legalaiskill-pediment-hero.png");
  background-position: center;
}

.strata-hero::after,
.strata-scan { display: none; }

.strata-hero-layout {
  min-height: min(860px, 92svh);
  padding-top: 154px;
  padding-bottom: 118px;
}

.strata-intro { max-width: 445px; }
.strata-intro h1 {
  font-family: var(--latin-serif);
  font-weight: 600;
  letter-spacing: 0.01em;
}
.strata-intro .eyebrow { color: rgba(227, 240, 239, 0.82); }
.strata-intro h1 { color: #fff; text-shadow: 0 2px 20px rgba(0, 0, 0, 0.22); }
.strata-subtitle { color: rgba(255, 255, 255, 0.94); }
.strata-lede { color: rgba(239, 245, 245, 0.84); font-size: 16px; }

.strata-task-tabs { max-width: 400px; gap: 7px; }
.strata-task {
  border-color: rgba(255, 255, 255, 0.45);
  border-radius: 2px;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(15, 19, 22, 0.19);
  backdrop-filter: blur(6px);
}
.strata-task:hover,
.strata-task:focus-visible,
.strata-task[aria-pressed="true"] {
  border-color: rgba(255, 255, 255, 0.94);
  color: #182023;
  background: rgba(255, 255, 255, 0.92);
}
.strata-task:focus-visible { box-shadow: 0 0 0 3px rgba(216, 237, 235, 0.35); }

.archive-dock {
  border-top: 1px solid #d2d5d4;
  border-bottom: 1px solid #d2d5d4;
  background: #f5f6f3;
}

.archive-dock-layout {
  display: grid;
  grid-template-columns: minmax(235px, 0.8fr) minmax(0, 1.5fr);
  gap: 50px;
  padding: 39px 0 34px;
}

.archive-dock-intro { max-width: 320px; }
.archive-dock-intro h2 { font-size: clamp(24px, 2.5vw, 31px); }
.archive-dock-intro > p:not(.eyebrow) { margin: 11px 0 0; color: var(--ink-soft); font-size: 14px; }

.archive-inspect {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 24px;
  align-content: start;
  padding-left: 27px;
  border-left: 1px solid #b9c1be;
}

.archive-inspect .strata-kicker,
.archive-inspect h2,
.archive-inspect-summary { grid-column: 1 / -1; }
.archive-inspect .strata-kicker { margin: 1px 0 5px; color: var(--teal-dark); }
.archive-inspect h2 { font-family: var(--sans); font-size: clamp(20px, 2vw, 26px); }
.archive-inspect-summary { max-width: 570px; margin: 8px 0 14px; color: var(--ink-soft); font-size: 14px; }
.archive-inspect .strata-source-group { margin-top: 0; padding-top: 12px; border-top: 1px solid var(--line-strong); }
.archive-inspect .strata-source-group > p { margin: 0 0 7px; color: var(--muted); font-size: 11px; font-weight: 790; }
.archive-inspect .strata-source-group.associated > p { color: var(--teal-dark); }
.archive-inspect .strata-candidate { color: var(--ink); }
.archive-inspect .strata-candidate:hover { color: var(--teal-dark); }
.archive-inspect .strata-candidate-note { color: var(--muted); }
.archive-inspect .strata-candidate .status { color: var(--ink-soft); border-color: var(--line-strong); background: rgba(255,255,255,0.72); }
.archive-inspect .strata-catalog-link { grid-column: 1 / -1; margin-top: 16px; color: var(--teal-dark); }
.archive-inspect .strata-empty { grid-column: 1 / -1; margin: 12px 0 0; color: var(--muted); }
.strata-index-link { bottom: 85px; color: rgba(255, 255, 255, 0.92); border-bottom-color: rgba(255, 255, 255, 0.7); }
.strata-index-link:hover { color: #fff; }

.method-hero {
  min-height: min(720px, 80svh);
  padding-top: 174px;
  background-color: #202426;
  background-image: url("/assets/legalaiskill-pediment-hero.png");
  background-position: center;
}
.method-hero::before {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, rgba(11, 15, 18, 0.18), rgba(11, 15, 18, 0.01) 54%, rgba(11, 15, 18, 0.08));
}
.method-hero-content { position: relative; z-index: 1; }
.method-hero .eyebrow { color: rgba(216, 255, 245, 0.9); }

@media (max-width: 940px) {
  .archive-dock-layout { grid-template-columns: 1fr; gap: 24px; }
  .archive-dock-intro { max-width: 620px; }
  .archive-inspect { padding: 23px 0 0; border-top: 1px solid #b9c1be; border-left: 0; }
}

@media (max-width: 670px) {
  .site-header-home,
  .method-header { background: linear-gradient(180deg, rgba(14, 18, 22, 0.72), rgba(14, 18, 22, 0.06)); }
  .strata-hero,
  .strata-hero-layout { min-height: min(760px, 91svh); }
  .strata-hero { background-position: 68% center; }
  .strata-hero-layout { padding-top: 114px; padding-bottom: 88px; }
  .strata-intro { max-width: 305px; }
  .strata-intro h1 { font-size: 47px; white-space: normal; }
  .strata-subtitle { font-size: 19px; }
  .strata-lede { max-width: 285px; font-size: 14px; }
  .strata-index-link { bottom: 58px; }
  .archive-dock-layout { gap: 20px; padding: 31px 0 28px; }
  .archive-inspect { grid-template-columns: 1fr; row-gap: 0; padding-top: 18px; }
  .archive-inspect .strata-source-group { margin-top: 12px; }
  .archive-inspect .strata-catalog-link { margin-top: 14px; }
  .method-hero { min-height: min(620px, 76svh); padding-top: 132px; background-position: 68% center; }
}

/* Pediment response and wordmark. The image stays still; light confirms a task selection. */
.strata-hero::before {
  position: absolute;
  inset: 0;
  z-index: 2;
  content: "";
  pointer-events: none;
  opacity: 0;
  background:
    radial-gradient(ellipse 32% 54% at var(--pediment-light-x, 71%) var(--pediment-light-y, 60%), rgba(255, 255, 255, 0.88) 0%, rgba(243, 247, 245, 0.48) 30%, rgba(221, 231, 226, 0.16) 54%, rgba(255, 255, 255, 0) 74%),
    radial-gradient(ellipse 15% 24% at var(--pediment-light-x, 71%) var(--pediment-light-y, 60%), rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0) 72%);
  mix-blend-mode: screen;
  transition: opacity 180ms ease-out;
}

.strata-hero.is-signaling::before { opacity: 0.86; }

.strata-response {
  max-width: 342px;
  margin: 15px 0 0;
  color: rgba(237, 247, 246, 0.7);
  font-size: 12px;
}

.brand {
  gap: 12px;
  font-weight: 720;
  letter-spacing: 0.012em;
}

.brand-mark {
  width: 29px;
  height: 28px;
  overflow: visible;
  border: 0;
  color: var(--teal-dark);
  font-size: 0;
  line-height: 0;
  transform: none;
}

.brand-mark::before, .brand-mark::after { content: none; }
.brand-mark svg { display: block; width: 100%; height: 100%; overflow: visible; }
.brand-mark path { fill: currentColor; stroke: currentColor; stroke-width: 1.1; stroke-linejoin: round; }
.brand-mark path:nth-child(1) { opacity: 0.56; }
.brand-mark path:nth-child(2) { opacity: 0.96; }
.brand-mark path:nth-child(3) { opacity: 0.74; }

.site-header-home .brand-mark,
.method-header .brand-mark { color: rgba(255, 255, 255, 0.92); border-color: transparent; }

@media (max-width: 670px) {
  .strata-response { max-width: 265px; font-size: 11px; }
  .brand-mark { width: 27px; height: 26px; }
}

/* Give detail entries the slower rhythm of a research record. */
.detail-body > div > h2 { margin: 34px 0 14px; }
.detail-body > div > h2:first-child { margin-top: 0; }
.detail-body > div > .tag-row { margin-bottom: 4px; }
.detail-body > div > h2 + p { margin-top: 0; line-height: 1.8; }
.detail-body .boundary-note { margin: 22px 0 34px; }
.detail-body .action-link { display: inline-flex; margin-top: 10px; }

@media (max-width: 670px) {
  .detail-body > div > h2 { margin-top: 30px; }
  .detail-body .boundary-note { margin: 18px 0 30px; }
}

/* The pediment is an entrance to the directory, not an arbitrary taxonomy. */
.strata-hero {
  background-color: #202426;
  background-image: none;
}

.strata-hero::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  width: auto;
  height: auto;
  content: "";
  pointer-events: none;
  clip-path: none;
  background: linear-gradient(90deg, rgba(11, 15, 17, 0.76) 0%, rgba(11, 15, 17, 0.51) 34%, rgba(11, 15, 17, 0.18) 62%, rgba(11, 15, 17, 0.04) 100%);
}

.pediment-scene {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.pediment-scene img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1);
  transition: filter 480ms ease, transform 700ms cubic-bezier(.22, .8, .3, 1);
}

.strata-hero:hover .pediment-scene img,
.strata-hero:focus-within .pediment-scene img {
  filter: brightness(1.08) contrast(1.02);
  transform: scale(1.008);
}

.strata-hero.is-opening .pediment-scene img { animation: pediment-opening 900ms cubic-bezier(.2, .75, .25, 1) both; }

@keyframes pediment-opening {
  0% { filter: brightness(1); transform: scale(1); }
  32% { filter: brightness(1.15); transform: scale(1.014) translateY(-6px); }
  100% { filter: brightness(1); transform: scale(1.004); }
}

.pediment-enter {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 28px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.82);
  color: #fff;
  font-size: 14px;
  font-weight: 780;
}

.pediment-enter:hover { color: #fff; border-bottom-color: #fff; }

.atlas-section { padding: 62px 0 56px; background: #fff; }
.task-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-top: 33px;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--line-strong);
}

.task-tab {
  min-height: 66px;
  padding: 15px 18px;
  border: 0;
  border-right: 1px solid var(--line);
  color: var(--ink-soft);
  background: transparent;
  font-size: 14px;
  font-weight: 730;
}

.task-tab:last-child { border-right: 0; }
.task-tab:hover,
.task-tab:focus-visible,
.task-tab[aria-selected="true"] { color: var(--teal-dark); background: #edf1f2; outline: none; }
.task-tab:focus-visible { box-shadow: inset 0 0 0 3px rgba(58, 85, 102, 0.16); }

.task-results {
  display: grid;
  grid-template-columns: minmax(250px, 0.72fr) minmax(0, 1.28fr);
  gap: 48px;
  padding: 34px 0 8px;
}

.task-results-intro { padding-right: 30px; border-right: 1px solid var(--line-strong); }
.task-results-intro h3 { margin-top: 7px; font-family: var(--serif); font-size: 28px; }
.task-results-intro p:not(.eyebrow) { margin: 9px 0 0; color: var(--ink-soft); font-size: 14px; }
.task-catalog-link { display: inline-flex; margin-top: 20px; color: var(--teal-dark); font-size: 13px; font-weight: 780; }

.task-results-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 25px; }
.task-source-group { padding-top: 12px; border-top: 1px solid var(--line-strong); }
.task-source-group > p { margin: 0 0 7px; color: var(--muted); font-size: 11px; font-weight: 790; }
.task-source-group.associated > p { color: var(--teal-dark); }
.task-candidate {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 9px;
  min-height: 40px;
  padding: 5px 0;
  color: var(--ink);
}
.task-candidate:hover { color: var(--teal-dark); }
.task-candidate-name { min-width: 0; font-size: 13px; font-weight: 760; }
.task-candidate-note { grid-column: 1 / -1; margin-top: -3px; color: var(--muted); font-size: 11px; }
.task-candidate .status { min-height: 20px; padding: 2px 5px; font-size: 10px; }
.task-empty { margin: 0; color: var(--muted); font-size: 14px; }

@media (max-width: 940px) {
  .task-results { grid-template-columns: 1fr; gap: 25px; }
  .task-results-intro { padding: 0 0 21px; border-right: 0; border-bottom: 1px solid var(--line-strong); }
}

@media (max-width: 670px) {
  .strata-hero,
  .strata-hero-layout { min-height: 760px; }
  .strata-hero { background: #22272a; }
  .pediment-scene { inset: 0; display: block; }
  .pediment-scene::after {
    position: absolute;
    inset: 0;
    content: "";
    background: linear-gradient(90deg, rgba(15, 20, 23, 0.9) 0%, rgba(15, 20, 23, 0.64) 43%, rgba(15, 20, 23, 0.13) 78%, rgba(15, 20, 23, 0.04) 100%), linear-gradient(180deg, rgba(13, 17, 19, 0.5), rgba(13, 17, 19, 0) 43%, rgba(13, 17, 19, 0.16));
  }
  .pediment-scene img { width: 100%; height: 100%; max-height: none; object-fit: cover; object-position: 72% center; }
  .strata-hero-layout { padding-top: 104px; }
  .strata-intro { max-width: 330px; }
  .strata-lede { max-width: 315px; }
  .pediment-enter { margin-top: 20px; }
  .atlas-section { padding: 43px 0; }
  .task-tabs { margin-top: 25px; }
  .task-tab { min-height: 48px; padding: 10px 11px; font-size: 12px; }
  .task-results { padding-top: 26px; }
  .task-results-intro h3 { font-size: 26px; }
  .task-results-list { grid-template-columns: 1fr; gap: 15px; }
}
