:root {
  --green: #00a827;
  --green-dark: #018a21;
  --ink: #111111;
  --ink-soft: #4a4a4a;
  --paper: #ffffff;
  --paper-soft: #f7f7f5;
  --line: #e7e5e0;
  --serif: Georgia, "Hoefler Text", "Times New Roman", serif;
  --sans: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --max: 780px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 96px; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 {
  font-family: var(--sans);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 16px;
  color: var(--ink);
}

h1 { font-size: 2.6rem; }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.15rem; }

p { margin: 0 0 20px; }

.rule {
  width: 32px;
  height: 2px;
  background: var(--ink);
  margin: 0 0 12px;
}

.eyebrow {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* header */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
}

header .wrap { max-width: 1100px; }

.nav {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  flex: none;
}
.menu-toggle span {
  display: block;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--sans);
}

.brand img { width: 36px; height: 36px; display: block; }

.brand .name { font-weight: 700; font-size: 1.05rem; color: var(--ink); }
.brand .tag { color: var(--ink-soft); font-size: 0.95rem; }
.brand .dash { color: var(--ink-soft); }

.nav-links {
  display: flex;
  gap: 22px;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 0.92rem;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-cta {
  white-space: nowrap;
  padding: 10px 18px;
  font-size: 0.85rem;
}

/* hero */
.hero { padding: 72px 0 56px; }

.hero .wrap {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 40px;
  align-items: center;
}

.hero h1 { max-width: 620px; }

.lede {
  font-family: var(--serif);
  font-size: 1.2rem;
  color: var(--ink-soft);
  max-width: 560px;
}

/* hexagon avatar */
.avatar {
  position: relative;
  width: 200px;
  justify-self: end;
}

.avatar .dots {
  position: absolute;
  top: -18px;
  right: -18px;
  width: 90px;
  height: 90px;
  z-index: 0;
}

.avatar .frame {
  position: relative;
  z-index: 1;
  width: 200px;
  height: 200px;
  clip-path: polygon(25% 3%, 75% 3%, 100% 50%, 75% 97%, 25% 97%, 0% 50%);
  background: var(--paper-soft);
  overflow: hidden;
}

.avatar .frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.avatar .badge {
  position: absolute;
  right: -8px;
  bottom: -8px;
  width: 40px;
  height: 40px;
  background: var(--paper);
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 0 var(--line);
  z-index: 2;
}
.avatar .badge img { width: 24px; height: 24px; }

@media (max-width: 640px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .avatar { justify-self: start; margin-bottom: 8px; order: -1; }
}

.tags {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--green);
  letter-spacing: 0.02em;
}

.cta-row {
  display: flex;
  gap: 14px;
  margin-top: 28px;
  flex-wrap: wrap;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 0.92rem;
}

.btn {
  display: inline-block;
  padding: 12px 20px;
  border-radius: 999px;
  border: 1px solid var(--ink);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 700;
}
.btn:hover { background: var(--ink); color: var(--paper); text-decoration: none; }

.btn.primary {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}
.btn.primary:hover { background: var(--green-dark); border-color: var(--green-dark); color: #fff; }

/* manifesto */
.manifesto {
  background: var(--paper-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 56px 0;
}

.flow {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 1.05rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  margin: 20px 0 24px;
}
.flow .sep { color: var(--green); }

.compare {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  font-family: var(--sans);
  font-size: 0.98rem;
  margin: 0 0 24px;
}
.compare div { padding: 12px 16px; border-radius: 10px; background: var(--paper); border: 1px solid var(--line); }
.compare .no { color: #9a2b2b; }
.compare .yes { color: var(--green-dark); }

.manifesto .closing {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 1.15rem;
  margin: 0;
}

/* pillars */
.pillars { padding: 64px 0; }

.pillar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.pillar {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px;
  font-family: var(--sans);
}

.pillar .icon {
  width: 34px;
  height: 34px;
  margin-bottom: 12px;
}
.pillar .icon svg { width: 100%; height: 100%; }

.pillar .pct {
  color: var(--green);
  font-weight: 700;
  font-size: 0.82rem;
  margin-bottom: 8px;
}

.pillar h3 { margin-bottom: 6px; }
.pillar p { font-family: var(--serif); color: var(--ink-soft); font-size: 0.98rem; margin: 0; }

/* case study card */
.cases {
  background: var(--paper-soft);
  border-top: 1px solid var(--line);
  padding: 64px 0;
}

.case-card {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 24px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
  margin-top: 24px;
}
.case-card:hover { border-color: var(--green); text-decoration: none; }
.case-card[hidden] { display: none; }

.case-card .thumb {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  background: var(--paper-soft);
  display: flex;
  align-items: center;
  justify-content: center;
}
.case-card .thumb svg { width: 72%; height: 72%; }

.case-card .label {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 0.78rem;
  color: var(--green);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.case-card h3 { margin: 8px 0 8px; font-size: 1.3rem; }
.case-card p { color: var(--ink-soft); margin: 0; }

@media (max-width: 560px) {
  .case-card { grid-template-columns: 1fr; }
  .case-card .thumb { max-width: 140px; }
}

.see-all {
  display: inline-block;
  margin-top: 20px;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 0.92rem;
}

.back {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 0.9rem;
}

.post h2 { margin-top: 44px; }
.post h3 { margin-top: 28px; }
.post ul { padding-left: 20px; }
.post li { margin-bottom: 8px; }
.post hr { border: none; border-top: 1px solid var(--line); margin: 40px 0; }

.post .table-wrap { overflow-x: auto; margin: 24px 0; }
.post table { width: 100%; border-collapse: collapse; font-family: var(--sans); font-size: 0.92rem; }
.post th, .post td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.post th { background: var(--paper-soft); }

@media (max-width: 640px) {
  .post table, .post tbody, .post tr, .post td { display: block; width: 100%; }
  .post thead { display: none; }
  .post tr {
    border: 1px solid var(--line);
    border-radius: 12px;
    margin: 0 0 12px;
    overflow: hidden;
  }
  .post td { border: none; border-top: 1px solid var(--line); }
  .post td:first-child {
    border-top: none;
    font-weight: 700;
    background: var(--paper-soft);
  }
  .post td::before {
    content: attr(data-label);
    display: block;
    font-family: var(--sans);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--ink-soft);
    margin-bottom: 4px;
  }
  .post td:first-child::before { content: none; }
}

.post-hero {
  width: 100%;
  aspect-ratio: 3 / 1;
  background: var(--paper-soft);
  border: 1px solid var(--line);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 28px 0 40px;
}
.post-hero svg { width: 46%; max-width: 280px; }
.feature-image {
  width: 100%;
  aspect-ratio: 1200 / 630;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid var(--line);
  margin: 28px 0 40px;
  display: block;
  background: var(--paper-soft);
}
@media (max-width: 560px) {
  .post-hero { aspect-ratio: 4 / 3; }
  .feature-image { aspect-ratio: 16 / 9; }
}

.kicker {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ink);
  margin-bottom: 14px;
}

/* contact */
.contact {
  border-top: 1px solid var(--line);
  padding: 64px 0 80px;
  text-align: left;
}

.social-row {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 36px;
  font-family: var(--sans);
  font-weight: 700;
}

/* contact form */
.contact-form {
  margin-top: 28px;
  font-family: var(--sans);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.field { margin-bottom: 16px; }

.field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
}

.field input,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  font-family: var(--serif);
  font-size: 1rem;
  color: var(--ink);
  background: var(--paper);
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(0, 168, 39, 0.12);
}

.field textarea { resize: vertical; }

.hint {
  font-size: 0.82rem;
  color: var(--ink-soft);
  margin: -8px 0 20px;
}

.sector-pills,
.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-pills { margin: 24px 0 8px; }
.entry-list { margin-top: 8px; }
.empty-state {
  font-family: var(--sans);
  color: var(--ink-soft);
  padding: 24px 0;
}

.pill {
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink-soft);
  font-family: var(--sans);
  font-weight: 700;
  font-size: 0.82rem;
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
}

.pill.active {
  border-color: var(--green);
  background: rgba(0, 168, 39, 0.08);
  color: var(--green-dark);
}

.contact-form .btn {
  border: none;
  cursor: pointer;
  font-family: var(--sans);
}

.contact-form .btn[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}

.privacy {
  font-size: 0.8rem;
  color: var(--ink-soft);
  margin: 14px 0 0;
}

.form-error {
  background: #fbeaea;
  color: #b42318;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 20px;
}

.form-success {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 28px;
  margin-top: 24px;
  text-align: center;
}
.form-success p { font-family: var(--sans); font-weight: 600; margin-bottom: 16px; }
.form-success .btn {
  border: 1px solid var(--ink);
  background: none;
  cursor: pointer;
  font-family: var(--sans);
  font-weight: 700;
}

@media (max-width: 560px) {
  .form-row { grid-template-columns: 1fr; gap: 0; }
}

/* start-project page */
.step {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 32px;
  margin-top: 24px;
  background: var(--paper);
}

.step .step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: rgba(0, 168, 39, 0.1);
  color: var(--green-dark);
  font-family: var(--sans);
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 14px;
}

.step h3 { font-size: 1.3rem; margin-bottom: 6px; }
.step > p.step-sub { color: var(--ink-soft); margin-bottom: 24px; }

.calendar-frame {
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}
.calendar-frame iframe { display: block; width: 100%; }

footer {
  background: var(--paper-soft);
  border-top: 1px solid var(--line);
  padding: 28px 0;
  font-family: var(--sans);
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.footer-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

@media (max-width: 560px) {
  h1 { font-size: 2rem; }
  body { font-size: 17px; }
  .hero { padding: 48px 0 40px; }
  header { padding: 14px 0; }
}

@media (max-width: 650px) {
  .brand .tag, .brand .dash { display: none; }
}

@media (max-width: 960px) {
  .menu-toggle { display: flex; }
  .nav-right { gap: 10px; }
  .nav-cta { padding: 8px 12px; font-size: 0.78rem; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--paper);
    border: 1px solid var(--line);
    border-top: none;
    border-radius: 0 0 12px 12px;
    padding: 4px 20px;
    box-shadow: 0 12px 24px -16px rgba(0, 0, 0, 0.2);
  }
  .nav-links.open { display: flex; }
  .nav-links a {
    padding: 14px 0;
    border-top: 1px solid var(--line);
    font-size: 0.95rem;
  }
  .nav-links a:first-child { border-top: none; }
}

/* decorative divider */
.divider {
  display: flex;
  justify-content: center;
  padding: 4px 0;
}
.divider svg { width: 120px; height: 12px; }
