:root {
  --green: #1E7A41;
  --green-dark: #17643A;
  --green-tint: #CFE9D8;
  --ink: #141716;
  --text: #3D4441;
  --text-soft: #4A524E;
  --ground-soft: #F2F4F2;
  --border: #DCE1DD;
  --footer: #0E100F;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--text);
  background: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); }
a:hover { color: var(--green-dark); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid #7FC79A; outline-offset: 3px;
}
h1, h2, h3 { font-family: Manrope, Inter, sans-serif; color: var(--ink); margin: 0; }
h1 { font-weight: 800; font-size: clamp(38px, 5vw, 64px); line-height: 1.06; letter-spacing: -0.02em; }
h2 { font-weight: 700; font-size: clamp(28px, 3vw, 40px); line-height: 1.15; letter-spacing: -0.01em; }
h3 { font-weight: 700; font-size: 20px; line-height: 1.3; }
p { margin: 0; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.label { font-size: 15px; font-weight: 600; color: var(--green); }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; color: var(--ink); padding: 10px 16px; border-radius: 6px; z-index: 10; }
.skip:focus { left: 16px; }

/* Header */
.site-header { background: var(--ink); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 28px; padding-top: 22px; padding-bottom: 22px; }
.site-header.over-hero { position: absolute; top: 0; left: 0; right: 0; background: transparent; z-index: 2; }
.brand img { height: 42px; width: auto; }
.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 26px; }
.site-nav a { color: #fff; text-decoration: none; font-weight: 500; font-size: 15px; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--green-tint); }
.site-nav a.btn { color: #fff; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 28px; border-radius: 8px;
  font-family: Inter, sans-serif; font-weight: 600; font-size: 16px;
  text-decoration: none; border: 2px solid transparent; cursor: pointer;
  transition: background-color .15s ease, color .15s ease;
}
.btn--sm { min-height: 44px; padding: 0 20px; font-size: 15px; }
.btn--primary { background: var(--green); color: #fff; }
.btn--primary:hover { background: var(--green-dark); color: #fff; }
.btn--ghost { border-color: rgba(255,255,255,.6); color: #fff; }
.btn--ghost:hover { background: rgba(255,255,255,.1); color: #fff; }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: #E6EFE9; color: var(--ink); }
.btn--outline { border-color: var(--green); color: var(--green); min-height: 48px; }
.btn--outline:hover { background: var(--green); color: #fff; }
.actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 32px; }

/* Home hero */
.hero {
  position: relative;
  background-color: #1A1D1C;
  background-image: linear-gradient(rgba(12,14,13,.62), rgba(12,14,13,.62)), url('/assets/img/laptop-dark.jpg');
  background-size: cover; background-position: center;
  padding: 210px 0 150px;
}
.hero h1 { color: #fff; max-width: 820px; }
.hero .lead { color: #E3E8E5; font-size: clamp(18px, 1.6vw, 21px); line-height: 1.55; max-width: 600px; margin-top: 24px; }

/* Inner page hero */
.page-hero { background: var(--ink); padding: 72px 0 88px; }
.page-hero .label { color: var(--green-tint); margin-bottom: 14px; }
.page-hero h1 { color: #fff; font-size: clamp(34px, 4.4vw, 56px); max-width: 860px; }
.page-hero .lead { color: #D9DFDB; font-size: clamp(18px, 1.5vw, 20px); line-height: 1.6; max-width: 680px; margin-top: 22px; }

/* Sections */
.section { padding: 96px 0; }
.section--soft { background: var(--ground-soft); }
.section-head { max-width: 680px; margin-bottom: 40px; }
.section-head .label { margin-bottom: 12px; }
.section-head p { margin-top: 16px; font-size: 18px; line-height: 1.65; }
.intro { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 48px; align-items: start; }
.intro .label { margin-bottom: 12px; }
.body-lg { font-size: 18px; line-height: 1.65; }
.prose { max-width: 720px; }
.prose p + p { margin-top: 18px; }

/* Cards */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 20px; }
.card {
  background: #fff; border: 1px solid var(--border); border-radius: 12px;
  padding: 28px 24px; display: flex; flex-direction: column; gap: 14px;
}
.card svg { width: 30px; height: 30px; stroke: var(--green); }
.card p { font-size: 15px; line-height: 1.6; color: var(--text-soft); flex-grow: 1; }
.card a { font-weight: 600; font-size: 15px; text-decoration: none; }
.card a:hover { text-decoration: underline; }

/* Feature list (What's included) */
.features { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 0 48px; }
.features li { padding: 22px 0; border-top: 1px solid var(--border); }
.features h3 { font-size: 18px; margin-bottom: 6px; }
.features p { font-size: 16px; line-height: 1.6; color: var(--text-soft); }
.plain-list { margin: 0; padding-left: 20px; font-size: 17px; line-height: 1.8; }

/* Callout box */
.box { background: var(--ground-soft); border-radius: 14px; padding: 40px 36px; display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.box h3 { font-size: 24px; }
.box p { font-size: 16px; line-height: 1.65; }
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 40px; align-items: stretch; }
.split .who { display: flex; flex-direction: column; justify-content: center; gap: 16px; }
.split .who h2 { font-size: clamp(26px, 2.6vw, 36px); line-height: 1.2; }

/* Featured band */
.featured {
  background-color: #145530;
  background-image: linear-gradient(rgba(8,38,20,.66), rgba(8,38,20,.66)), url('/assets/img/laptop-green.jpg');
  background-size: cover; background-position: center;
  padding: 104px 0;
}
.featured .inner { max-width: 720px; }
.featured .label { color: var(--green-tint); }
.featured h2 { color: #fff; font-size: clamp(28px, 3.4vw, 46px); line-height: 1.12; margin-top: 18px; }
.featured .body-lg { color: #E6EFE9; margin-top: 20px; }
.tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; padding: 0; list-style: none; }
.tags li { padding: 7px 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,.5); color: #fff; font-size: 14px; font-weight: 500; }
.tags--dark li { border-color: var(--border); color: var(--text-soft); background: #fff; }

/* Work page */
.project { padding: 48px 0; border-top: 1px solid var(--border); display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px 56px; }
.project:first-of-type { border-top: 0; padding-top: 0; }
.project h2 { font-size: clamp(24px, 2.4vw, 32px); }
.project .tags { margin-top: 14px; }
.project .prose p { font-size: 17px; }
.clients { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }

/* Closing CTA */
.closing { background: var(--ink); padding: 104px 0; text-align: center; }
.closing .wrap { max-width: 900px; display: flex; flex-direction: column; align-items: center; gap: 32px; }
.closing p { font-family: Manrope, Inter, sans-serif; font-weight: 700; font-size: clamp(24px, 2.8vw, 38px); line-height: 1.3; color: #fff; }

/* Contact form */
.form { display: grid; gap: 22px; max-width: 680px; }
.field { display: grid; gap: 8px; }
.field label, .field legend { font-weight: 600; font-size: 15px; color: var(--ink); }
.field .hint { font-weight: 400; color: var(--text-soft); }
.field input[type=text], .field input[type=email], .field textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink);
  padding: 12px 14px; border: 1px solid #B9C2BC; border-radius: 8px; background: #fff;
}
.field textarea { min-height: 150px; resize: vertical; }
fieldset.field { border: 0; padding: 0; margin: 0; }
.checks { display: flex; flex-wrap: wrap; gap: 10px 20px; margin-top: 4px; }
.checks label { display: inline-flex; align-items: center; gap: 8px; font-weight: 400; font-size: 16px; }
.checks input { width: 18px; height: 18px; accent-color: var(--green); }
.hp { position: absolute; left: -5000px; }
.note { font-size: 15px; color: var(--text-soft); }
.form-status { font-weight: 600; }
.form-status.ok { color: var(--green); }
.form-status.err { color: #B42318; }

/* Footer */
.site-footer { background: var(--footer); }
.site-footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding-top: 40px; padding-bottom: 40px; }
.site-footer img { height: 34px; width: auto; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 10px 24px; }
.site-footer nav a { color: #C4CAC6; text-decoration: none; font-size: 14px; }
.site-footer nav a:hover { color: #fff; }
.site-footer small { font-size: 14px; color: #A9B1AC; }

@media (max-width: 700px) {
  .wrap { padding: 0 22px; }
  .hero { padding: 190px 0 88px; }
  .section, .featured, .closing { padding: 64px 0; }
  .page-hero { padding: 56px 0 64px; }
  .box { padding: 32px 24px; }
  .brand img { height: 36px; }
}
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } }

/* Image heroes on inner pages */
.page-hero--img { background-size: cover; background-position: center; padding: 104px 0 112px; }
.box--white { background: #fff; border: 1px solid var(--border); }

/* FAQ */
.faq { max-width: 820px; border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); padding: 4px 0; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 36px 18px 0; position: relative; font-family: Manrope, Inter, sans-serif; font-weight: 700; font-size: 18px; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 14px; font-size: 24px; font-weight: 500; color: var(--green); }
.faq details[open] summary::after { content: "–"; }
.faq details p, .faq details div { padding: 0 0 20px; font-size: 16px; line-height: 1.65; color: var(--text-soft); }

/* Legal and migrated long-form content */
.legal { max-width: 780px; }
.legal h2, .legal h3, .legal h4 { margin: 32px 0 10px; font-size: 22px; }
.legal p, .legal li { font-size: 16px; line-height: 1.7; }
.legal p + p { margin-top: 14px; }
.legal ul { padding-left: 22px; }
.site-footer small a { color: #C4CAC6; }
.site-footer small a:hover { color: #fff; }

/* Designer icons */
.card .card-icon { height: 56px; width: auto; max-width: 72px; object-fit: contain; align-self: flex-start; }
.hero-icon { width: 84px; height: 84px; border-radius: 18px; background: #fff; display: flex; align-items: center; justify-content: center; margin-bottom: 22px; box-shadow: 0 8px 24px rgba(0,0,0,.22); }
.hero-icon img { max-width: 56px; max-height: 52px; width: auto; height: auto; }
.hero-icons { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 40px; }
.hero-icon-link { display: flex; align-items: center; gap: 12px; padding: 6px 14px 6px 6px; border-radius: 12px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.25); color: #fff; text-decoration: none; font-weight: 600; font-size: 14px; }
.hero-icon-link:hover { background: rgba(255,255,255,.18); color: #fff; }
.hero-icon--sm { width: 42px; height: 42px; border-radius: 10px; margin: 0; box-shadow: none; }
.hero-icon--sm img { max-width: 32px; max-height: 30px; }
.box-icon { height: 60px; width: auto; }
.fit { display: flex; align-items: center; gap: 40px; }
.fit-icon { height: 96px; width: auto; flex: none; }
@media (max-width: 700px) { .fit { flex-direction: column; align-items: flex-start; gap: 20px; } .fit-icon { height: 72px; } .hero-icon-link { flex: 1 1 100%; } }

/* Light header (Work) */
.page-hero--light { background-color: #EEF1EF; }
.page-hero--light h1 { color: var(--ink); }
.page-hero--light .label { color: var(--green); }
.page-hero--light .lead { color: var(--text); }

.site-header--light { background: #fff; border-bottom: 1px solid var(--border); }
.site-header--light .site-nav a:not(.btn) { color: var(--ink); }
.site-header--light .site-nav a:not(.btn):hover, .site-header--light .site-nav a[aria-current="page"] { color: var(--green); }
/* ---- Sub-site layouts (ai. and learn.) ---- */
.brand--sub img { height: 52px; width: auto; }
.mhero { background: var(--ink); background-size: cover; background-position: center; padding: 96px 0 104px; color: #fff; }
.mhero-inner { max-width: 1200px; }
.mhero .rich { max-width: 760px; }
.mhero h1 { color: #fff; font-size: clamp(36px, 4.6vw, 58px); }
.mhero p { color: #E3E8E5; font-size: clamp(17px, 1.5vw, 20px); margin-top: 18px; }
.mhero .pic { max-width: 320px; margin-top: 24px; }
.msec { padding: 88px 0; }
.msec--dark { background-size: cover; background-position: center; color: #E6EFE9; }
.msec--dark h1, .msec--dark h2, .msec--dark h3, .msec--dark h4 { color: #fff; }
.msec--dark a:not(.btn) { color: #CFE9D8; }
.rich { max-width: 820px; }
.rich + .rich { margin-top: 18px; }
.rich h2 { margin-bottom: 14px; }
.rich h3, .rich h4 { font-family: Manrope, Inter, sans-serif; color: inherit; margin: 0 0 10px; }
.msec:not(.msec--dark) .rich h3, .msec:not(.msec--dark) .rich h4 { color: var(--ink); }
.rich h3 { font-size: 24px; }
.rich h4 { font-size: 20px; line-height: 1.35; }
.rich p { font-size: 17px; line-height: 1.7; }
.rich p + p, .rich p + ul, .rich ul + p { margin-top: 14px; }
.rich ul, .rich ol { padding-left: 22px; margin: 12px 0 0; font-size: 17px; line-height: 1.7; }
.rich li + li { margin-top: 6px; }
.msec .actions, .mhero .actions { margin-top: 24px; }
.mcards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin-top: 32px; }
.mcard { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 28px 24px; display: flex; flex-direction: column; gap: 12px; color: var(--text); }
.mcard .pic { max-height: 72px; width: auto; align-self: flex-start; }
.mcard .rich h3, .mcard .rich h4 { color: var(--ink); }
.mcard .rich p { font-size: 15px; }
.mcard .actions { margin-top: auto; padding-top: 8px; }
.mcard .btn { min-height: 44px; padding: 0 18px; font-size: 15px; }
.media-split { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.media-split .media { display: flex; justify-content: center; }
.media-split .pic { max-width: min(100%, 360px); border-radius: 12px; }
.typeform { min-height: 560px; margin-top: 24px; border-radius: 12px; overflow: hidden; background: #fff; }
.lead-form { margin-top: 24px; background: #fff; padding: 28px; border-radius: 12px; }
.lead-form label { display: grid; gap: 8px; }
.msec--dark .faq summary, .msec--dark .faq details div { color: #fff; }
@media (max-width: 800px) { .media-split { grid-template-columns: 1fr; } .media-split .media { justify-content: flex-start; } }
@media (max-width: 700px) { .mhero { padding: 64px 0 72px; } .msec { padding: 64px 0; } .brand--sub img { height: 42px; } }
