:root {
  --bg: #f6f1ea;
  --paper: #fffdf8;
  --ink: #1d2733;
  --muted: #66717d;
  --soft: #ece3d7;
  --line: #ded4c6;
  --teal: #2d6f6f;
  --teal-dark: #1d4f51;
  --brown: #9a6b43;
  --green: #637f5a;
  --rose: #9c5e58;
  --shadow: 0 18px 46px rgba(38, 31, 24, 0.1);
  --radius: 8px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

a {
  color: inherit;
}

button,
select {
  font: inherit;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 14px;
  z-index: 100;
  padding: 10px 12px;
  color: #fff;
  background: var(--ink);
  border-radius: var(--radius);
}

.skip-link:focus {
  top: 14px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  padding: 14px max(20px, calc((100vw - var(--max)) / 2));
  background: rgba(255, 253, 248, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #fff;
  font-weight: 800;
  background: var(--teal);
  border-radius: 50%;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 0.98rem;
}

.brand small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.78rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.language-control {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.language-control select {
  width: auto;
  min-width: 142px;
  min-height: 38px;
  padding: 0 8px;
  font-size: 0.88rem;
}

.site-nav a {
  padding: 10px 11px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: var(--radius);
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--ink);
  background: #eee6dc;
}

.site-nav .nav-cta {
  color: #fff;
  background: var(--teal);
}

.site-nav .nav-cta:hover {
  color: #fff;
  background: var(--teal-dark);
}

.nav-toggle {
  display: none;
  padding: 9px 10px;
  color: var(--ink);
  font-weight: 800;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.section {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 84px 0;
}

.compact-top {
  padding-top: 22px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 42px;
  align-items: center;
  padding-top: 76px;
  padding-bottom: 68px;
}

.hero-copy {
  max-width: 860px;
}

.eyebrow,
.panel-label,
.chart-kicker {
  margin: 0 0 12px;
  color: var(--teal);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 14px;
  max-width: 880px;
  font-size: clamp(2.25rem, 4.2vw, 3.7rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(1.55rem, 2.6vw, 2.45rem);
  line-height: 1.12;
  letter-spacing: -0.025em;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.18rem;
  line-height: 1.25;
}

.hero-title {
  margin-bottom: 20px;
  color: var(--teal-dark);
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  font-weight: 800;
  line-height: 1.35;
}

.lead,
.section-heading p,
.text-stack p,
.detail-card p,
.service-card p,
.portfolio-card p,
.timeline p,
.dashboard-title p,
.data-note p,
.filter-panel p {
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.75;
}

.action-row,
.document-links,
.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  font-weight: 800;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
}

.button.primary {
  color: #fff;
  background: var(--teal);
}

.button.primary:hover {
  background: var(--teal-dark);
}

.button.secondary {
  color: var(--ink);
  background: var(--paper);
  border-color: var(--line);
}

.button.full {
  width: 100%;
}

.button.fit {
  width: fit-content;
}

.hero-panel,
.data-note,
.filter-panel,
.chart-card,
.detail-card,
.service-card,
.portfolio-card,
.metric-grid article,
.timeline article {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-panel {
  padding: 22px;
}

.highlight-list,
.plain-list {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.highlight-list li {
  padding: 14px;
  background: #f6f1ea;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.highlight-list strong,
.highlight-list span {
  display: block;
}

.highlight-list span {
  margin-top: 5px;
  color: var(--muted);
  line-height: 1.55;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 48px;
  align-items: start;
}

.text-stack {
  display: grid;
  gap: 16px;
}

.profile-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.profile-meta span {
  padding: 8px 10px;
  color: var(--teal-dark);
  font-size: 0.86rem;
  font-weight: 800;
  background: #edf5f3;
  border: 1px solid #cfe2dd;
  border-radius: var(--radius);
}

.surface {
  width: 100%;
  max-width: none;
  padding-right: max(20px, calc((100vw - var(--max)) / 2));
  padding-left: max(20px, calc((100vw - var(--max)) / 2));
  background: #fff8ee;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-heading {
  max-width: 820px;
  margin-bottom: 32px;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}

.metric-grid article {
  padding: 20px;
}

.metric-grid span,
.service-card span {
  display: block;
  margin-bottom: 12px;
  color: var(--brown);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.metric-grid strong {
  display: block;
  margin-bottom: 10px;
  color: var(--teal-dark);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

.metric-grid p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.55;
}

.detail-grid,
.service-grid,
.portfolio-grid,
.chart-grid {
  display: grid;
  gap: 16px;
}

.detail-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.detail-card,
.service-card,
.portfolio-card {
  padding: 22px;
}

.plain-list li {
  position: relative;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.62;
}

.plain-list li::before {
  position: absolute;
  top: 0.68em;
  left: 0;
  width: 6px;
  height: 6px;
  content: "";
  background: var(--teal);
  border-radius: 50%;
}

.timeline {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.timeline article {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 20px;
  padding: 20px;
  box-shadow: none;
}

.timeline span {
  color: var(--brown);
  font-weight: 900;
}

.timeline p {
  margin-bottom: 0;
}

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

.service-card {
  box-shadow: none;
}

.service-card p {
  margin-bottom: 0;
}

.portfolio-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.portfolio-card {
  min-height: 260px;
  box-shadow: none;
}

.mini-visual {
  display: grid;
  gap: 8px;
  margin-top: 22px;
}

.mini-visual span {
  height: 12px;
  background: var(--teal);
  border-radius: 999px;
}

.mini-visual span:nth-child(2) {
  width: 82%;
  background: var(--green);
}

.mini-visual span:nth-child(3) {
  width: 70%;
  background: var(--brown);
}

.mini-visual span:nth-child(4) {
  width: 54%;
  background: var(--rose);
}

.video-section {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 28px;
  margin-top: 26px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.video-section p {
  color: var(--muted);
  line-height: 1.65;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.video-grid a,
.document-links a,
.contact-links a {
  padding: 12px 13px;
  color: var(--teal-dark);
  font-weight: 800;
  text-decoration: none;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.video-grid a:hover,
.document-links a:hover,
.contact-links a:hover {
  border-color: var(--teal);
}

.case-study {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 38px;
  align-items: center;
}

.dashboard-preview {
  display: grid;
  gap: 16px;
  padding: 22px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.preview-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.preview-kpis span {
  height: 74px;
  background: #edf5f3;
  border: 1px solid #cfe2dd;
  border-radius: var(--radius);
}

.preview-bars {
  display: grid;
  gap: 9px;
}

.preview-bars span {
  height: 14px;
  background: var(--teal);
  border-radius: 999px;
}

.preview-bars span:nth-child(2) {
  width: 84%;
  background: var(--green);
}

.preview-bars span:nth-child(3) {
  width: 66%;
  background: var(--brown);
}

.preview-bars span:nth-child(4) {
  width: 52%;
  background: var(--rose);
}

.preview-line {
  height: 108px;
  background:
    linear-gradient(135deg, transparent 48%, var(--teal) 49%, var(--teal) 51%, transparent 52%),
    linear-gradient(35deg, transparent 49%, var(--brown) 50%, transparent 52%),
    #f6f1ea;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 26px;
  align-items: center;
  padding-top: 40px;
}

.contact-links {
  justify-content: flex-end;
  margin-top: 0;
}

/* Dashboard */

.dashboard-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 36px;
  align-items: end;
  padding-top: 74px;
}

.data-note {
  padding: 22px;
}

.data-note p {
  margin: 8px 0 0;
}

.dashboard-shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  min-height: 600px;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.filter-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px;
  background: #fff8ee;
  border: 0;
  border-right: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
}

.filter-panel h2 {
  font-size: 1.7rem;
}

.field {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 800;
}

select {
  width: 100%;
  min-height: 42px;
  padding: 0 10px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

select:focus {
  outline: 3px solid rgba(45, 111, 111, 0.16);
  border-color: var(--teal);
}

.filter-context {
  display: grid;
  gap: 6px;
  margin-top: auto;
  padding: 14px;
  background: #edf5f3;
  border: 1px solid #cfe2dd;
  border-radius: var(--radius);
}

.filter-context span {
  color: var(--muted);
  line-height: 1.5;
}

.dashboard-main {
  min-width: 0;
  padding: 20px;
}

.dashboard-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.dashboard-title h2 {
  margin-bottom: 0;
  font-size: clamp(1.5rem, 2.2vw, 2.05rem);
}

.dashboard-title p {
  max-width: 390px;
  margin-bottom: 0;
  font-size: 0.9rem;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.kpi-card {
  min-height: 124px;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.kpi-card span {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.kpi-card strong {
  display: block;
  margin-top: 8px;
  color: var(--teal-dark);
  font-size: 1.8rem;
  line-height: 1;
  letter-spacing: -0.03em;
}

.kpi-card small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.4;
}

.chart-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.chart-card {
  min-width: 0;
  padding: 18px;
  box-shadow: none;
}

.chart-card.wide {
  grid-column: span 2;
}

.chart-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.chart-heading h3 {
  margin-bottom: 0;
}

.chart-heading > span {
  flex: 0 0 auto;
  padding: 7px 8px;
  color: var(--teal-dark);
  font-size: 0.78rem;
  font-weight: 800;
  background: #edf5f3;
  border: 1px solid #cfe2dd;
  border-radius: var(--radius);
}

.funnel-chart,
.bar-chart {
  display: grid;
  gap: 10px;
}

.funnel-row,
.bar-row {
  display: grid;
  grid-template-columns: minmax(118px, 170px) minmax(0, 1fr) 70px;
  gap: 12px;
  align-items: center;
}

.funnel-label,
.bar-label {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.funnel-track,
.bar-track {
  height: 15px;
  overflow: hidden;
  background: #ece6dc;
  border-radius: 999px;
}

.funnel-track {
  height: 24px;
}

.funnel-fill,
.bar-fill {
  height: 100%;
  min-width: 3px;
  background: var(--teal);
  border-radius: 999px;
}

.bar-row:nth-child(3n + 2) .bar-fill {
  background: var(--green);
}

.bar-row:nth-child(3n) .bar-fill {
  background: var(--brown);
}

.funnel-row strong,
.bar-value {
  font-weight: 900;
  text-align: right;
}

.empty-state {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.donut-wrap {
  display: grid;
  min-height: 232px;
  place-items: center;
}

.donut {
  --value: 75;
  position: relative;
  display: grid;
  width: 178px;
  height: 178px;
  place-items: center;
  background: conic-gradient(var(--teal) calc(var(--value) * 1%), #ece6dc 0);
  border-radius: 50%;
}

.donut::before {
  position: absolute;
  inset: 22px;
  content: "";
  background: var(--paper);
  border-radius: 50%;
}

.donut-content {
  position: relative;
  text-align: center;
}

.donut-content strong,
.donut-content span {
  display: block;
}

.donut-content strong {
  color: var(--teal-dark);
  font-size: 2.2rem;
}

.donut-content span {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.line-chart svg {
  display: block;
  width: 100%;
  min-height: 260px;
}

.axis-label {
  fill: #66717d;
  font-size: 11px;
  font-weight: 700;
}

.line-hires,
.line-exits {
  fill: none;
  stroke-width: 3.2;
}

.line-hires {
  stroke: var(--teal);
}

.line-exits {
  stroke: var(--rose);
}

.line-dot-hires {
  fill: var(--teal);
}

.line-dot-exits {
  fill: var(--rose);
}

.chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 10px;
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.legend-dot {
  width: 10px;
  height: 10px;
  background: var(--teal);
  border-radius: 50%;
}

.legend-dot.exits {
  background: var(--rose);
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

th,
td {
  padding: 12px 10px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

th {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

td {
  font-weight: 700;
}

@media (max-width: 1080px) {
  .hero,
  .two-column,
  .case-study,
  .dashboard-hero,
  .dashboard-shell,
  .video-section,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .filter-panel {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .metric-grid,
  .service-grid,
  .portfolio-grid,
  .kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-links {
    justify-content: flex-start;
  }
}

@media (max-width: 760px) {
  .site-header {
    align-items: flex-start;
    padding: 12px;
    gap: 8px;
  }

  .brand small {
    display: none;
  }

  .brand {
    gap: 8px;
  }

  .brand span:not(.brand-mark) {
    display: none;
  }

  .language-control {
    margin-left: 0;
  }

  .language-control span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  .language-control select {
    min-width: 100px;
    min-height: 38px;
    font-size: 0.8rem;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    top: 67px;
    right: 12px;
    left: 12px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav a {
    width: 100%;
  }

  .section {
    width: min(100% - 24px, var(--max));
    padding: 56px 0;
  }

  .surface {
    width: 100%;
    padding-right: 12px;
    padding-left: 12px;
  }

  .hero {
    padding-top: 50px;
  }

  h1 {
    font-size: clamp(2.1rem, 11vw, 3.3rem);
  }

  .detail-grid,
  .metric-grid,
  .service-grid,
  .portfolio-grid,
  .video-grid,
  .kpi-grid,
  .chart-grid {
    grid-template-columns: 1fr;
  }

  .chart-card.wide {
    grid-column: span 1;
  }

  .timeline article {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .dashboard-title,
  .chart-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .funnel-row,
  .bar-row {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .funnel-row strong,
  .bar-value {
    text-align: left;
  }
}
