/* Macaleonte · styles */

@font-face { font-family: "Inter"; font-style: normal; font-weight: 300; font-display: swap; src: url("fonts/inter-light.woff") format("woff"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/inter-regular.woff") format("woff"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/inter-medium.woff") format("woff"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/inter-semibold.woff") format("woff"); }

:root {
  --green: #0F3B2E;
  --green-deep: #0A2A20;
  --teal: #126B6E;
  --leaf: #3F8F5A;
  --yellow: #F5B83D;
  --orange: #F26B3A;
  --berry: #C2416B;
  --cream: #FAF6EE;
  --ink: #10231C;
  --body: #2A3A33;
  --rust: #B4441C;
  --on-green: #DCE6E0;
  --on-green-soft: #B9CEC4;
  --on-teal: #E1F0EE;
  --on-teal-accent: #FFE3A3;
  --field-border: #5F7369;

  --gutter: clamp(20px, 5vw, 40px);
  --section-y: clamp(72px, 11vw, 136px);
  --max: 1280px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; }

:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
.band-green :focus-visible, .hero :focus-visible, .band-teal :focus-visible { outline-color: var(--yellow); }
.form-card :focus-visible, .section:not(.band-green):not(.band-teal) :focus-visible { outline-color: var(--teal); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 50;
  background: var(--yellow); color: var(--ink); padding: 12px 18px; font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left));
  padding-right: max(var(--gutter), env(safe-area-inset-right));
}

/* ---------- Header ---------- */

.site-header { background: var(--green); color: var(--cream); position: relative; z-index: 20; }
.header-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding-top: 20px; padding-bottom: 20px;
}
.brand { display: flex; align-items: center; gap: 12px; min-height: 48px; text-decoration: none; min-width: 0; }
@media (max-width: 479px) { .brand-sub { display: none; } }
.brand-mark { width: 42px; height: 42px; flex: none; color: var(--orange); stroke-width: 8; }
.brand-mark use, .footer-brand use, .hero-mark use, .success-mark use { stroke-width: inherit; }
.brand-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.brand-name { font-size: 14px; font-weight: 600; letter-spacing: 0.3em; }
.brand-sub { font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--on-green-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.menu-toggle {
  flex: none; width: 48px; height: 48px; margin-right: -8px;
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent; border: 0; color: var(--cream); cursor: pointer;
}
.menu-icon, .menu-icon::before, .menu-icon::after {
  display: block; width: 24px; height: 2px; background: currentColor; position: relative; transition: transform .2s ease, opacity .2s ease;
}
.menu-icon::before, .menu-icon::after { content: ""; position: absolute; left: 0; }
.menu-icon::before { top: -7px; }
.menu-icon::after { top: 7px; }
.menu-toggle[aria-expanded="true"] .menu-icon { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-icon::before { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-icon::after { transform: translateY(-7px) rotate(-45deg); }

.site-nav {
  display: none;
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--green-deep);
  flex-direction: column;
  padding: 8px max(var(--gutter), env(safe-area-inset-left)) 24px;
  box-shadow: 0 16px 24px rgba(0, 0, 0, .18);
}
.site-nav.is-open { display: flex; }
.site-nav a {
  display: flex; align-items: center; min-height: 52px;
  font-size: 17px; text-decoration: none; border-bottom: 1px solid rgba(250, 246, 238, .14);
}
.site-nav a:hover { color: var(--yellow); }
.site-nav .nav-cta {
  margin-top: 16px; justify-content: center; border: 0;
  background: var(--orange); color: var(--ink); font-weight: 600;
}
.site-nav .nav-cta:hover { color: var(--ink); background: #F47F53; }

/* No JavaScript: show the menu inline so it still works */
.no-js .menu-toggle { display: none; }
.no-js .site-nav { display: flex; position: static; flex-direction: row; flex-wrap: wrap; gap: 4px 20px; padding: 0; background: none; box-shadow: none; }
.no-js .site-nav a { border: 0; min-height: 44px; font-size: 15px; }
.no-js .site-nav .nav-cta { margin-top: 0; padding: 0 18px; }

@media (min-width: 820px) {
  .menu-toggle { display: none; }
  .site-nav {
    display: flex; position: static; flex-direction: row; align-items: center; gap: 32px;
    padding: 0; background: none; box-shadow: none;
  }
  .site-nav a { min-height: 44px; font-size: 14.5px; border: 0; }
  .site-nav .nav-cta { margin-top: 0; padding: 0 22px; }
  .brand-mark { width: 46px; height: 46px; }
  .brand-name { font-size: 15px; letter-spacing: 0.32em; }
  .brand-sub { font-size: 11px; letter-spacing: 0.14em; }
}

/* ---------- Hero ---------- */

.hero { background: var(--green); color: var(--cream); position: relative; overflow: hidden; }
/* The whole chameleon, lower right, in line with the page content */
.hero-mark {
  position: absolute; color: var(--orange); stroke-width: 2.4; pointer-events: none;
  width: min(504px, 36vw); height: min(504px, 36vw);
  right: max(16px, calc((100% - var(--max)) / 2));
  bottom: 20px;
}
.hero-inner {
  position: relative;
  display: flex; flex-direction: column; align-items: flex-start; gap: clamp(22px, 3.2vw, 36px);
  padding-top: clamp(48px, 9vw, 104px);
  padding-bottom: clamp(64px, 11vw, 136px);
}
.hero h1 {
  font-weight: 300;
  font-size: clamp(44px, 8.6vw, 120px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  max-width: 12ch;
  text-wrap: balance;
}
.accent { color: var(--orange); }
.lead { max-width: 560px; font-size: clamp(17px, 1.6vw, 19px); line-height: 1.6; color: var(--on-green); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.pillars { font-size: 14px; line-height: 1.6; color: var(--on-green-soft); max-width: 40ch; }
.pillars span { padding: 0 .35em; }

/* Only show it where there is room beside the text */
@media (max-width: 1023px), (orientation: portrait) and (max-width: 1099px), (orientation: landscape) and (max-height: 540px) {
  .hero .hero-mark { display: none; }
}

@media (max-width: 599px) {
  .actions { width: 100%; }
  .actions .btn { width: 100%; justify-content: space-between; }
}

@media (min-width: 900px) {
  .pillars { max-width: none; }
}

/* Phones and small tablets held sideways: keep the first screen readable */
@media (orientation: landscape) and (max-height: 540px) {
  .header-inner { padding-top: 12px; padding-bottom: 12px; }
  .hero-inner { padding-top: 32px; padding-bottom: 48px; gap: 18px; }
  .hero h1 { font-size: clamp(36px, 10.5vh, 64px); max-width: 16ch; }
  .lead { font-size: 16px; max-width: 520px; }
  .actions { width: auto; }
  .actions .btn { width: auto; }
  .site-nav { max-height: calc(100vh - 72px); overflow-y: auto; }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; gap: 12px;
  min-height: 54px; padding: 0 26px;
  font: inherit; font-size: 15px; font-weight: 600; text-decoration: none;
  border: 1px solid transparent; cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease;
}
.btn-primary { background: var(--orange); color: var(--ink); }
.btn-primary:hover { background: #F47F53; }
.btn-ghost { border-color: #8FAFA2; color: var(--cream); font-weight: 400; }
.btn-ghost:hover { border-color: var(--cream); }

/* ---------- Spectrum band ---------- */

.spectrum { display: flex; height: 10px; }
.spectrum span { flex: 1; }
.spectrum span:nth-child(1) { background: var(--teal); }
.spectrum span:nth-child(2) { background: var(--leaf); }
.spectrum span:nth-child(3) { background: var(--yellow); }
.spectrum span:nth-child(4) { background: var(--orange); }
.spectrum span:nth-child(5) { background: var(--berry); }

/* ---------- Sections ---------- */

.section { padding-top: var(--section-y); padding-bottom: var(--section-y); scroll-margin-top: 0; }
.section-tight-top { padding-top: 0; }

.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--rust); }
.eyebrow-yellow { color: var(--yellow); }
.eyebrow-light { color: var(--on-teal-accent); }

h2 {
  font-weight: 300;
  font-size: clamp(34px, 4.6vw, 64px);
  line-height: 1.06;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.section:not(.band-green):not(.band-teal) h2 { color: var(--green); }

.split { display: grid; gap: clamp(24px, 4vw, 48px); }
.split-head { display: flex; flex-direction: column; gap: 20px; }
.split-body { display: flex; flex-direction: column; gap: 22px; }

@media (min-width: 960px) {
  .split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: clamp(48px, 7vw, 96px); }
  .split-contact { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: start; }
}

/* Two columns earlier when a phone or tablet is held sideways */
@media (orientation: landscape) and (min-width: 700px) and (max-width: 959px) {
  .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); column-gap: 40px; }
  .split-contact { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); align-items: start; }
}

.prose { color: var(--body); font-size: clamp(16px, 1.4vw, 18px); line-height: 1.7; max-width: 640px; }
.prose-lead { color: var(--ink); font-size: clamp(20px, 2vw, 24px); line-height: 1.5; }

.section-head { display: flex; flex-direction: column; gap: 20px; margin-bottom: clamp(32px, 4vw, 48px); }

/* ---------- Expertise cards ---------- */

.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 600px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .cards { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.card {
  display: flex; flex-direction: column; justify-content: flex-start;
  padding: clamp(24px, 2.6vw, 32px);
  min-height: 260px;
}
.card-num { font-size: 44px; font-weight: 300; line-height: 1; margin-bottom: clamp(40px, 5vw, 72px); }
.card h3 { font-size: 21px; font-weight: 600; line-height: 1.3; letter-spacing: -0.01em; margin-bottom: 12px; }
.card p { font-size: 15px; line-height: 1.6; }

.card-green { background: var(--green); color: var(--cream); }
.card-green .card-num { color: var(--yellow); }
.card-green p { color: var(--on-green); }
.card-teal { background: var(--teal); color: var(--cream); }
.card-teal .card-num { color: #FFD27A; }
.card-teal p { color: var(--on-teal); }
.card-yellow { background: var(--yellow); color: var(--ink); }
.card-yellow p { color: #2A2416; }
.card-orange { background: var(--orange); color: var(--ink); }
.card-orange p { color: #241510; }

@media (max-width: 599px) {
  .card { min-height: 0; }
  .card-num { font-size: 36px; margin-bottom: 28px; }
}

/* ---------- Coloured bands ---------- */

.band-teal { background: var(--teal); color: var(--cream); }
.band-green { background: var(--green); color: var(--cream); }
.band-teal .split-body { padding-top: clamp(0px, 3vw, 40px); }
.band-text { font-size: clamp(16px, 1.5vw, 19px); line-height: 1.65; max-width: 600px; }
.band-teal .band-text { color: var(--on-teal); }
.band-green .band-text { color: var(--on-green); }
.jungle-line { font-size: clamp(20px, 2vw, 24px); line-height: 1.4; color: var(--on-teal-accent); max-width: 30ch; }

/* ---------- Contact form ---------- */

.form-card { background: var(--cream); color: var(--ink); padding: clamp(24px, 4vw, 40px); }
.contact-form { display: flex; flex-direction: column; gap: 20px; }
.field-row { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 560px) { .field-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 14px; font-weight: 600; }
.optional { font-weight: 400; color: #4E5F57; }
.field input, .field textarea {
  width: 100%;
  font: inherit; font-size: 16px; color: var(--ink);
  background: #FFFFFF; border: 1px solid var(--field-border); border-radius: 0;
  padding: 12px 14px; min-height: 50px;
  -webkit-appearance: none; appearance: none;
}
.field textarea { min-height: 140px; line-height: 1.5; resize: vertical; }
.field input:focus, .field textarea:focus { outline: 3px solid var(--teal); outline-offset: 0; border-color: var(--teal); }
.field [aria-invalid="true"] { border-color: #B3261E; border-width: 2px; }
.field-error { font-size: 13.5px; color: #B3261E; font-weight: 500; }

.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.btn-submit { align-self: flex-start; border: 0; }
.btn-submit[disabled] { opacity: .65; cursor: progress; }
@media (max-width: 559px) { .btn-submit { align-self: stretch; justify-content: space-between; } }

.form-error { background: #FBE9E7; color: #8C1D18; padding: 12px 14px; font-size: 14.5px; }
.privacy-note { font-size: 13.5px; color: #4E5F57; }

.form-success { display: flex; flex-direction: column; gap: 12px; padding: 12px 0; }
.form-success:focus { outline: none; }
.success-mark { width: 64px; height: 64px; color: var(--teal); stroke-width: 7; margin-bottom: 8px; }
.form-success h3 { font-size: 28px; font-weight: 300; letter-spacing: -0.02em; color: var(--green); }
.form-success p { color: var(--body); }

/* ---------- Footer ---------- */

.site-footer { background: var(--green-deep); color: var(--on-green-soft); font-size: 13.5px; }
.footer-inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px;
  padding-top: 32px; padding-bottom: max(32px, env(safe-area-inset-bottom));
}
.footer-brand { display: flex; align-items: center; gap: 12px; color: var(--cream); font-weight: 600; letter-spacing: 0.3em; }
.footer-brand svg { width: 30px; height: 30px; color: var(--orange); stroke-width: 9; }
@media (max-width: 599px) { .footer-inner { flex-direction: column; align-items: flex-start; } }

@media print {
  .site-header, .spectrum, .hero-mark, .form-card { display: none; }
  .hero, .band-teal, .band-green { background: none; color: #000; }
}
