:root {
  --ink: #17211f;
  --muted: #596863;
  --soft: #f5f7f2;
  --panel: #ffffff;
  --line: #d9e0d8;
  --accent: #0e6f68;
  --accent-dark: #084d49;
  --gold: #b9852f;
  --rose: #d56f55;
  --sky: #d8eef2;
  --shadow: 0 24px 70px rgba(35, 48, 43, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

p,
li {
  text-align: justify;
  text-justify: inter-word;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid rgba(23, 33, 31, 0.08);
  background: rgba(245, 247, 242, 0.9);
  backdrop-filter: blur(18px);
}

.brand,
.site-header nav,
.hero-actions,
.signal-list,
.profile-links,
.footer div {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font-size: 0.78rem;
  letter-spacing: 0;
}

.site-header nav {
  gap: clamp(14px, 3vw, 30px);
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 650;
}

.site-header a:hover {
  color: var(--accent);
}

.section {
  width: min(1160px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(38px, 5vw, 72px) 0;
}

.hero {
  display: grid;
  min-height: auto;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.55fr);
  align-items: center;
  gap: clamp(34px, 6vw, 76px);
  padding-top: clamp(34px, 5vw, 64px);
  padding-bottom: clamp(20px, 3vw, 34px);
}

.hero-copy {
  display: grid;
  justify-items: stretch;
}

.eyebrow,
.kicker,
.work-item span,
.card-index {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 860px;
  margin-bottom: 18px;
  font-size: clamp(1.25rem, 2.1vw, 1.9rem);
  line-height: 1.08;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(1.35rem, 2.2vw, 2rem);
  line-height: 1.08;
  letter-spacing: 0;
}

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

.lede,
.contact-copy p {
  width: 100%;
  max-width: none;
  color: var(--muted);
  font-size: clamp(1.04rem, 1.4vw, 1.25rem);
  text-align: justify;
}

.hero-actions {
  width: min(100%, 720px);
  margin-right: auto;
  margin-left: auto;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
  margin-bottom: 28px;
}

.hero-actions .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.button {
  min-height: 48px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 13px 18px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button:disabled {
  cursor: wait;
  opacity: 0.65;
  transform: none;
}

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

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

.secondary {
  border-color: var(--line);
  background: #fff;
}

.secondary:hover {
  border-color: var(--accent);
}

.signal-list {
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  list-style: none;
}

.signal-list li {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  padding: 8px 12px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.profile-panel {
  display: grid;
  gap: 22px;
  justify-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, #fff, #eef7f5);
  padding: clamp(24px, 4vw, 36px);
  box-shadow: var(--shadow);
}

.profile-name {
  margin-bottom: 4px;
  font-size: 1.35rem;
  font-weight: 850;
}

.profile-role {
  margin-bottom: 0;
  color: var(--muted);
  text-align: justify;
}

.profile-links {
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.profile-links a {
  border-bottom: 2px solid rgba(14, 111, 104, 0.24);
  color: var(--accent-dark);
  font-weight: 800;
}

.founder-panel {
  align-content: center;
  justify-items: center;
}

.profile-panel > img,
.founder-panel > img {
  display: block;
  width: 96px;
  min-width: 96px;
  max-width: 96px;
  height: 96px;
  min-height: 96px;
  max-height: 96px;
  aspect-ratio: 1;
  border: 6px solid #fff;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  box-shadow: 0 16px 34px rgba(23, 33, 31, 0.14);
}

.founder-panel .button {
  width: 100%;
  text-align: center;
}

.workflow-map {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding-top: clamp(18px, 2vw, 28px);
}

.workflow-map .section-heading {
  max-width: 920px;
}

.workflow-graphic {
  display: grid;
  gap: 16px;
}

.use-case-panel,
.outcome-panel,
.workflow-steps li {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 10px 30px rgba(35, 48, 43, 0.06);
}

.use-case-panel,
.outcome-panel {
  padding: 22px;
}

.mini-label {
  margin-bottom: 14px;
  color: var(--gold);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-align: left;
  text-transform: uppercase;
}

.use-case-rows ul,
.workflow-steps {
  margin: 0;
  padding: 0;
  list-style: none;
}

.use-case-rows {
  display: grid;
  gap: 10px;
}

.use-case-rows ul {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.use-case-rows ul:nth-child(2) {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.use-case-rows li {
  display: grid;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(245, 247, 242, 0.82);
  padding: 8px 11px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 750;
  line-height: 1.25;
  text-align: center;
}

.workflow-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.workflow-steps li {
  position: relative;
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 230px;
  padding: 22px;
  text-align: left;
}

.workflow-steps li:not(:last-child)::after {
  position: absolute;
  top: 38px;
  right: -14px;
  z-index: 2;
  width: 26px;
  height: 2px;
  background: var(--accent);
  content: "";
}

.workflow-steps span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 850;
}

.workflow-steps strong {
  font-size: 1.06rem;
  line-height: 1.15;
}

.workflow-steps p,
.outcome-panel p:last-child {
  margin: 0;
  color: var(--muted);
  text-align: left;
}

.outcome-panel {
  display: grid;
  background: linear-gradient(180deg, #fff, #eef7f5);
}

.section-heading {
  max-width: 720px;
  margin-bottom: 28px;
}

.service-grid,
.work-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.service-grid article,
.work-item {
  min-height: 260px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 24px;
  box-shadow: 0 10px 30px rgba(35, 48, 43, 0.06);
}

.service-grid article:nth-child(2) {
  background: #edf7f8;
}

.service-grid article:nth-child(3) {
  background: #fff8eb;
}

.service-grid article:nth-child(4) {
  background: #f8eeee;
}

.service-grid p,
.work-item p,
.legal p {
  color: var(--muted);
}

.card-index {
  display: block;
  color: var(--gold);
}

.work-grid {
  grid-template-columns: 1.2fr 1fr 1fr;
}

.work-item {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: var(--ink);
}

.work-item:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.work-item.featured {
  background: var(--ink);
  color: #fff;
}

.work-item.featured p,
.work-item.featured span {
  color: rgba(255, 255, 255, 0.75);
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 1fr);
  gap: clamp(30px, 5vw, 70px);
  align-items: start;
  border-top: 1px solid var(--line);
}

.blog-list {
  padding-top: clamp(40px, 6vw, 76px);
}

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

.post-card {
  display: grid;
  gap: 12px;
  min-height: 220px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 24px;
  color: var(--ink);
  box-shadow: 0 10px 30px rgba(35, 48, 43, 0.06);
}

.post-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.post-card span,
.article-meta {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.post-card p,
.empty-posts,
.article p,
.article li,
.article td {
  color: var(--muted);
}

.article {
  max-width: 860px;
}

.article h1 {
  max-width: 860px;
}

.article h2 {
  margin-top: 42px;
  font-size: clamp(1.2rem, 1.8vw, 1.5rem);
  line-height: 1.08;
}

.article h3 {
  margin-top: 28px;
}

.article a {
  color: var(--accent-dark);
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.article blockquote {
  margin: 28px 0;
  border-left: 4px solid var(--gold);
  padding-left: 18px;
  color: var(--muted);
}

.article table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  background: #fff;
}

.article th,
.article td {
  border: 1px solid var(--line);
  padding: 12px;
  text-align: left;
  vertical-align: top;
}

.article th {
  color: var(--ink);
}

.article-cta {
  margin: 44px 0 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, #fff, #eef7f5);
  padding: clamp(20px, 4vw, 30px);
  box-shadow: 0 10px 30px rgba(35, 48, 43, 0.06);
}

.article-cta h2 {
  margin-top: 0;
}

.article-cta p:last-child {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 0;
}

.article-cta .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 220px;
  text-align: center;
  text-decoration: none;
}

.article-cta .button.primary {
  color: #fff;
}

.article-cta .button.secondary {
  color: var(--ink);
}

.privacy-note {
  border-left: 4px solid var(--rose);
  padding-left: 16px;
  font-size: 0.98rem !important;
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: clamp(18px, 4vw, 28px);
  box-shadow: var(--shadow);
}

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

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfa;
  color: var(--ink);
  font: inherit;
  padding: 13px 12px;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  outline: 3px solid rgba(14, 111, 104, 0.16);
}

.full {
  grid-column: 1 / -1;
}

.form-status {
  grid-column: 1 / -1;
  min-height: 24px;
  margin: 0;
  color: var(--muted);
  font-weight: 750;
}

.form-status[data-tone="success"] {
  color: var(--accent-dark);
}

.form-status[data-tone="error"] {
  color: #a13b2c;
}

.legal {
  padding-top: 40px;
  padding-bottom: 40px;
  border-top: 1px solid var(--line);
}

.legal h2 {
  font-size: clamp(1.2rem, 1.8vw, 1.5rem);
}

.legal p {
  max-width: 880px;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(18px, 4vw, 56px) 46px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
}

.footer p {
  margin: 0;
}

.footer div {
  flex-wrap: wrap;
  gap: 14px;
}

.footer a {
  color: var(--accent-dark);
  font-weight: 800;
}

.cookie-banner {
  position: fixed;
  right: 18px;
  bottom: 18px;
  left: 18px;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  max-width: 960px;
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  padding: 16px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

body:has(.cookie-banner:not([hidden])) {
  padding-bottom: 116px;
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-banner p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.cookie-banner a {
  color: var(--accent-dark);
  font-weight: 800;
}

@media (max-width: 960px) {
  .hero,
  .contact {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

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

  .work-grid,
  .post-grid {
    grid-template-columns: 1fr;
  }

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

  .use-case-rows ul,
  .use-case-rows ul:nth-child(2) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .workflow-steps li {
    min-height: 230px;
  }

  .workflow-steps li:not(:last-child)::after {
    display: none;
  }
}

@media (max-width: 680px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

  .site-header nav {
    width: 100%;
    justify-content: space-between;
  }

  .section {
    width: min(100% - 28px, 1160px);
  }

  .service-grid,
  .contact-form,
  .use-case-rows ul,
  .use-case-rows ul:nth-child(2),
  .workflow-steps {
    grid-template-columns: 1fr;
  }

  .service-grid article,
  .work-item,
  .workflow-steps li {
    min-height: auto;
  }

  .footer,
  .cookie-banner {
    align-items: flex-start;
    flex-direction: column;
  }

  body:has(.cookie-banner:not([hidden])) {
    padding-bottom: 178px;
  }
}

@media (max-width: 480px) {
  .article-cta p:last-child {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .article-cta .button {
    width: 100%;
    min-width: 0;
  }
}
