/* SKEDA home — implemented from the Claude Design handoff "Skeda Home.dc.html". */

/* ---------- Palette tokens (default: Pastel sky) ---------- */
:root {
  --paper: #f6f7fb;
  --ink: #263255;
  --accent: #2f6fb5;
  --bright: #a9d4f5;
  --line: #dde2ec;
  --body: #3b4763;
  --muted: #55607a;
  --ondark: #d3dcec;
  --ondark2: #9aa7c0;
  --tint: #e6effa;
  --deep: #1f4f86;

  --serif: 'Fraunces', Georgia, serif;
  --sans: 'IBM Plex Sans', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', monospace;
  --gutter: clamp(20px, 5vw, 48px);
  --max: 1180px;
}

/* Alternative palettes explored in the design. Set <html data-palette="..."> to use one. */
:root[data-palette="peach"] { --paper:#fbf7f4; --ink:#2b3557; --accent:#2f6fb5; --bright:#ffd3bd; --line:#e8e1dc; --body:#3f4862; --muted:#5a6079; --ondark:#d8dcea; --ondark2:#a2a9c0; --tint:#e3eefb; --deep:#1f4f86; }
:root[data-palette="mint"]  { --paper:#f5f9f8; --ink:#24364d; --accent:#2a6f9e; --bright:#b9e6d6; --line:#dae5e3; --body:#3a4a5c; --muted:#536273; --ondark:#d2dfe4; --ondark2:#98aab5; --tint:#e2f0f7; --deep:#1c4f73; }
:root[data-palette="harbour"] { --paper:#f4f6f8; --ink:#0f2740; --accent:#1166ad; --bright:#6ac2ef; --line:#d5dde5; --body:#36475a; --muted:#4b5a69; --ondark:#c6d3df; --ondark2:#8a9cae; --tint:#e1edf6; --deep:#0b4a80; }
:root[data-palette="teal"] { --paper:#f5f3ee; --ink:#132030; --accent:#0e6b66; --bright:#6fd1c6; --line:#ddd8cc; --body:#3e4a57; --muted:#4a5563; --ondark:#c5d0db; --ondark2:#8a9aab; --tint:#e4eeeb; --deep:#094b47; }
:root[data-palette="eucalypt"] { --paper:#f6f1e7; --ink:#26302a; --accent:#a4532f; --bright:#f0b48f; --line:#dcd3c0; --body:#3e4a42; --muted:#556058; --ondark:#d5d8cc; --ondark2:#9aa596; --tint:#ece2d0; --deep:#7c3b1e; }
:root[data-palette="plum"] { --paper:#f7f3ef; --ink:#2b1b2e; --accent:#8a3565; --bright:#f2b84b; --line:#e0d6d0; --body:#47394a; --muted:#5e5160; --ondark:#dccfd8; --ondark2:#a595a5; --tint:#f1e4e3; --deep:#5f2145; }

/* ---------- Base ---------- */
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--ink); }
::selection { background: var(--bright); color: var(--ink); }
h1, h2, h3, p { margin: 0; }
/* Text for screen readers only (e.g. "opens in a new tab"). */
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.wrap { max-width: var(--max); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.section-pad { padding-top: clamp(64px, 9vw, 120px); padding-bottom: clamp(64px, 9vw, 120px); }
.band-dark { background: var(--ink); color: var(--paper); }

/* Light sections take their shade from their position among the VISIBLE sections
   (off-white, pale blue, white, repeating), so hiding a section never leaves two
   neighbouring light sections the same colour. */
main > section:not(.band-dark) { background: var(--paper); }
main > section:not(.band-dark):nth-child(3n+1 of :not([hidden])) { background: var(--tint); }
main > section:not(.band-dark):nth-child(3n+2 of :not([hidden])) {
  background: #ffffff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
/* Two dark sections meeting (because the ones between are hidden) get a dividing line. */
main > .band-dark + .band-dark,
main > .band-dark + [hidden] + .band-dark,
main > .band-dark + [hidden] + [hidden] + .band-dark,
main > .band-dark + [hidden] + [hidden] + [hidden] + .band-dark { border-top: 1px solid var(--body); }

.eyebrow {
  font: 500 13px var(--mono);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
}
.band-dark .eyebrow { color: var(--bright); }

.h2 {
  font: 300 clamp(32px, 4.6vw, 60px)/1.08 var(--serif);
  letter-spacing: -.02em;
  text-wrap: balance;
}

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav {
  max-width: var(--max); margin: 0 auto;
  padding: 16px var(--gutter);
  display: flex; flex-wrap: nowrap; align-items: center; justify-content: space-between; gap: 24px;
}
/* Default logo: the "SKEDA" wordmark alone (no squiggle), sitting in the bar. */
.nav-logo { display: flex; align-items: center; flex: none; height: 40px; }
.nav-logo img { display: block; height: auto; }
.nav-logo .logo-word { width: clamp(150px, 40vw, 190px); }
.nav-logo .logo-full { display: none; }

/* Full logo on wide screens: the squiggle's right edge sits --logo-gap short of the content's
   left edge, so it hangs down into the empty margin beside the text. The squiggle spans ~36.5%
   of the logo's width; the logo shrinks with the margin (max 356px) so it never runs off the window. */
@media (min-width: 1440px) {
  .nav { position: relative; justify-content: flex-end; }
  .nav-logo {
    --logo-gap: 12px;
    --logo-w: min(356px, (100vw - 1228px - 2 * var(--logo-gap)) * 1.37);
    position: absolute; top: 4px; left: calc(var(--gutter) - var(--logo-gap) - var(--logo-w) * 0.365);
    width: var(--logo-w); height: auto;
  }
  .nav-logo .logo-word { display: none; }
  .nav-logo .logo-full { display: block; width: 100%; }
}

.nav-links {
  display: flex; align-items: center; gap: 20px;
  height: 40px; font-size: 15px; white-space: nowrap;
}
.nav-links a { color: var(--body); }
.nav-links a:hover { color: var(--accent); }
.nav-links .nav-phone { font: 500 14px var(--mono); color: var(--ink); }
.nav-links .nav-cta { background: var(--ink); color: var(--paper); padding: 10px 18px; border-radius: 999px; font-weight: 500; }
.nav-links .nav-cta:hover { background: var(--accent); color: #ffffff; }
.nav-links .nav-phone { margin-right: 4px; }

/* Phone number kept in the bar on narrow screens (the full menu has its own copy). */
.nav-phone-bar { display: none; font: 500 14px var(--mono); color: var(--ink); white-space: nowrap; }
.nav-phone-bar:hover { color: var(--accent); }

/* Menu button: only shown on narrow screens. */
.nav-toggle {
  display: none; position: relative; width: 44px; height: 40px; margin-right: -8px;
  background: none; border: 0; padding: 0; cursor: pointer; color: var(--ink);
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  position: absolute; left: 11px; width: 22px; height: 2px; border-radius: 2px;
  background: currentColor; transition: transform .2s ease, background-color .2s ease;
}
.nav-toggle span { top: 19px; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; left: 0; }
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }
.nav-toggle[aria-expanded="true"] span { background-color: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu: links drop down as a panel under the header bar. */
@media (max-width: 1023px) {
  .nav { gap: 12px; }
  .nav-phone-bar { display: block; margin-left: auto; }
  .nav-logo .logo-word { width: clamp(110px, 34vw, 190px); }
  .nav-toggle { display: block; }
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0; height: auto;
    padding: 8px var(--gutter) 24px; background: var(--paper);
    border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px -16px rgb(0 0 0 / .25);
    font-size: 18px;
  }
  .nav-links.is-open { display: flex; }
  .nav-links a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav-links .nav-phone { display: none; }
  .nav-links .nav-cta { order: 2; align-self: flex-start; margin-top: 20px; padding: 14px 24px; border-bottom: 0; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; }
.hero-images {
  position: absolute; top: 0; bottom: 0; right: 0; width: 50%;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 100%);
  mask-image: linear-gradient(to right, transparent 0%, #000 100%);
  pointer-events: none;
}
.hero-slide {
  position: absolute; inset: 0; opacity: 0; z-index: 0;
  display: flex; align-items: flex-end; justify-content: flex-end;
  padding: 20px; box-sizing: border-box;
  font: 400 12px var(--mono); color: var(--ink);
  background-size: cover; background-position: center;
}
/* True crossfade: the outgoing photo (is-prev) stays fully visible underneath while the
   incoming one (is-active) fades in on top, so the two blend with no dip to the background. */
.hero-slide.is-prev { opacity: 1; z-index: 1; }
.hero-slide.is-active { opacity: 1; z-index: 2; transition: opacity 2.2s ease-in-out; }
.hero-slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* Striped placeholders until real photos are supplied. */
.hero-slide.ph-1 { background-image: repeating-linear-gradient(135deg, var(--tint) 0 16px, var(--bright) 16px 32px); }
.hero-slide.ph-2 { background-image: repeating-linear-gradient(45deg, var(--tint) 0 16px, var(--bright) 16px 32px); }
.hero-slide.ph-3 { background-image: repeating-linear-gradient(90deg, var(--tint) 0 16px, var(--bright) 16px 32px); }

.hero-inner { position: relative; padding-top: clamp(72px, 10vw, 140px); padding-bottom: clamp(48px, 7vw, 88px); }
.hero .eyebrow { margin-bottom: 28px; }
.hero h1 {
  font: 300 clamp(44px, 8.2vw, 112px)/0.98 var(--serif);
  letter-spacing: -.025em; text-wrap: balance;
}
.hero h1 em { font-weight: 400; color: var(--accent); }
.hero-foot {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 32px 64px; margin-top: clamp(36px, 5vw, 64px); align-items: end;
}
.hero-lede { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.55; color: var(--body); max-width: 34em; text-wrap: pretty; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
/* Trust signals under the hero: small, factual, one line on desktop. */
.trust {
  list-style: none; margin: clamp(36px, 5vw, 56px) 0 0; padding: 20px 0 0; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 8px 28px; font: 500 13px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink);
}
.trust li { display: flex; align-items: center; gap: 10px; }
.trust li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

.btn-primary { background: var(--accent); color: #ffffff; padding: 16px 28px; border-radius: 999px; font-size: 17px; font-weight: 500; }
.btn-primary:hover { background: var(--ink); color: #ffffff; }
.btn-outline { padding: 15px 26px; font-size: 17px; font-weight: 500; color: var(--ink); background: var(--paper); border: 1px solid var(--ink); border-radius: 999px; }
.btn-outline:hover { color: var(--accent); border-color: var(--accent); }

/* ---------- One team around your business ---------- */
.our-role-title { margin-bottom: clamp(36px, 5vw, 56px); max-width: 17em; }
.duties {
  margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: clamp(32px, 4vw, 48px) 48px;
}
.duty { border-top: 1px solid var(--ink); padding-top: 20px; }
.duty dt { margin-bottom: 10px; font: 400 clamp(26px, 2.6vw, 32px)/1.1 var(--serif); color: var(--accent); }
.duty dd { margin: 0; font-size: 17px; line-height: 1.55; color: var(--muted); text-wrap: pretty; }

/* ---------- Our people ---------- */
.people-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 24px clamp(48px, 6vw, 96px); align-items: start; }
.people-grid .h2 { max-width: 12em; }
.people-text p { font-size: 18px; line-height: 1.6; color: var(--body); text-wrap: pretty; }
.people-text p + p { margin-top: 1em; }
.people-text .people-careers { padding-top: 16px; border-top: 1px solid var(--line); font: 400 14px/1.5 var(--mono); color: var(--muted); }
.band-dark .people-text p { color: var(--ondark); }
.band-dark .people-text .people-careers { border-top-color: var(--body); color: var(--ondark2); }

/* ---------- Clients ---------- */
.clients-title { margin-bottom: clamp(32px, 4vw, 48px); max-width: 17em; }
.client-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 32px 48px; }
.client-groups h3 { margin-bottom: 14px; padding-top: 16px; border-top: 1px solid var(--ink); font: 500 13px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.client-list { list-style: none; margin: 0; padding: 0; }
.client-list li { padding: 10px 0; border-bottom: 1px solid var(--line); font: 400 clamp(19px, 1.8vw, 22px)/1.3 var(--serif); color: var(--ink); }

/* ---------- Approach ---------- */
.approach h2 { margin-bottom: clamp(40px, 6vw, 72px); max-width: 18em; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 40px 48px; }
.step { border-top: 1px solid var(--body); padding-top: 24px; }
.step-num { font: 400 15px var(--mono); color: var(--bright); margin-bottom: 14px; }
.step h3 { margin-bottom: 10px; font: 400 28px/1.15 var(--serif); }
.step p { font-size: 17px; line-height: 1.6; color: var(--ondark); text-wrap: pretty; }
/* Respect for existing investment: sits under the three steps as part of "Fit". */
.existing {
  margin-top: clamp(48px, 6vw, 72px); padding-top: 32px; border-top: 1px solid var(--bright);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 16px 56px; align-items: start;
}
.existing h3 { font: 400 clamp(26px, 3vw, 36px)/1.15 var(--serif); color: var(--bright); text-wrap: balance; }
.existing p { font-size: 17px; line-height: 1.6; color: var(--ondark); text-wrap: pretty; }

/* Call to action at the end of "How we work": a light panel on the dark band. */
.cta-panel {
  position: relative;
  margin-top: clamp(40px, 5vw, 64px); padding: clamp(28px, 4vw, 48px); border-radius: 10px; border-top-right-radius: 0;
  background: var(--tint); color: var(--ink); border: 1px solid var(--accent);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 28px 56px; align-items: center;
}
.cta-copy h3 { margin-bottom: 12px; font: 400 clamp(26px, 3vw, 36px)/1.15 var(--serif); color: var(--ink); text-wrap: balance; }
.cta-copy p { font-size: 17px; line-height: 1.6; color: var(--body); }
.cta-points { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; }
.cta-points li { position: relative; padding-left: 26px; font-size: 17px; line-height: 1.5; color: var(--ink); }
.cta-points li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 12px; height: 7px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.cta-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.cta-actions .btn-primary { font-size: 18px; padding: 18px 32px; }
.cta-phone { font: 500 15px var(--mono); color: var(--ink); }
.cta-phone:hover { color: var(--accent); }
.cta-message { font-size: 15px; color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.cta-message:hover { color: var(--ink); }
/* Land below the sticky header when jumped to from the hero button. */
.cta-panel { scroll-margin-top: 96px; }
/* Folded top-right corner, like the first page of a proposal, with its label. */
.cta-fold {
  position: absolute; top: -1px; right: -1px; width: 56px; height: 56px; pointer-events: none;
  background: linear-gradient(225deg, var(--ink) 50%, transparent 50%);
}
.cta-fold::after {
  content: ""; position: absolute; inset: 0; border-bottom-left-radius: 6px;
  background: linear-gradient(225deg, transparent 50%, #ffffff 50%);
  border-left: 1px solid var(--accent); border-bottom: 1px solid var(--accent);
  box-shadow: -3px 3px 6px -2px rgb(0 0 0 / .25);
}
.cta-note { font: 500 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.cta-note::before { content: "\2713\00a0 "; }
@media (min-width: 760px) { .cta-note { position: absolute; top: 18px; right: 72px; } }
@media (min-width: 900px) { .cta-actions { align-items: flex-end; } }
@media (max-width: 480px) { .cta-actions .btn-primary { padding: 16px 22px; font-size: 17px; } }

/* ---------- Services ---------- */
.services h2 { margin-bottom: 16px; }
.services-intro { margin-bottom: clamp(32px, 5vw, 56px); font-size: 18px; line-height: 1.55; color: var(--muted); max-width: 36em; }
.service-list { border-top: 1px solid var(--ink); }
.service {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 10px 48px; padding: 26px 12px; border-bottom: 1px solid var(--line);
  color: var(--ink); align-items: baseline;
}
.service:hover { background: #ffffff; color: var(--ink); }
.service-says { font: 400 clamp(22px, 2.4vw, 30px)/1.2 var(--serif); text-wrap: balance; }
.service-name { font: 500 13px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin-bottom: 6px; }
.service-desc { font-size: 16px; line-height: 1.55; color: var(--muted); text-wrap: pretty; }
/* The technical scope behind each service: present for those who look, quiet for those who don't. */
/* "Not sure which one you need?" card after the list. */
.services-help {
  margin-top: clamp(32px, 4vw, 48px); padding: clamp(22px, 3vw, 32px);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px;
  background: #ffffff; border: 1px solid var(--line); border-radius: 10px;
}
.services-help p { font: 400 clamp(20px, 2vw, 24px)/1.35 var(--serif); color: var(--ink); text-wrap: balance; }
.service-behind { margin-top: 10px; font: 400 13px/1.5 var(--mono); color: var(--accent); opacity: .85; text-wrap: pretty; }

/* ---------- Testimonials ---------- */
.testimonials h2 { margin-bottom: clamp(36px, 5vw, 56px); max-width: 17em; }
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 20px; }
.quote {
  margin: 0; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 32px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 24px;
}
.quote blockquote { margin: 0; font: 400 clamp(20px, 2vw, 23px)/1.4 var(--serif); color: var(--ink); text-wrap: pretty; }
.band-dark .quote { background: color-mix(in srgb, var(--paper) 6%, transparent); border-color: var(--body); }
.band-dark .quote blockquote { color: var(--paper); }
.band-dark .quote figcaption { border-top-color: var(--body); color: var(--ondark2); }
.band-dark .quote figcaption strong { color: var(--paper); }
/* Before main.js picks the random set (or without JavaScript), show only the first few. */
[data-show]:not(.is-picked) > :nth-child(n+4) { display: none; }
[data-show="1"]:not(.is-picked) > :nth-child(n+2), [data-show="2"]:not(.is-picked) > :nth-child(n+3) { display: none; }
/* A single testimonial is laid out as a pull quote: heading on the left, the quote on the
   right with an accent rule, no card. On narrow screens it stacks under the heading. */
.quotes[data-show="1"] { grid-template-columns: minmax(0, 1fr); }
.quotes[data-show="1"] .quote {
  background: none; border: 0; border-left: 2px solid var(--bright); border-radius: 0;
  padding: 4px 0 4px clamp(24px, 3vw, 40px); gap: 28px;
}
.quotes[data-show="1"] .quote blockquote { font-size: clamp(24px, 2.6vw, 34px); line-height: 1.32; }
.quotes[data-show="1"] .quote figcaption { border-top: 0; padding-top: 0; font-size: 16px; }
@media (min-width: 900px) {
  .testimonials:has(.quotes[data-show="1"]) .wrap {
    display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-rows: auto 1fr;
    column-gap: clamp(48px, 6vw, 96px); align-items: start;
  }
  .testimonials:has(.quotes[data-show="1"]) .eyebrow,
  .testimonials:has(.quotes[data-show="1"]) h2 { grid-column: 1; }
  .testimonials:has(.quotes[data-show="1"]) h2 { margin-bottom: 0; }
  .testimonials:has(.quotes[data-show="1"]) .quotes { grid-column: 2; grid-row: 1 / span 2; }
}
.quote blockquote::before { content: "\201C"; }
.quote blockquote::after { content: "\201D"; }
.quote figcaption { display: flex; flex-direction: column; gap: 4px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 15px; color: var(--muted); }
.quote figcaption strong { font-weight: 600; color: var(--ink); }

/* ---------- Case studies ---------- */
.case-studies h2 { margin-bottom: 20px; max-width: 17em; }
.cases-intro { margin-bottom: clamp(36px, 5vw, 56px); font-size: 18px; line-height: 1.6; color: var(--muted); max-width: 40em; text-wrap: pretty; }
.cases { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 20px; }
.case {
  background: #ffffff; border: 1px solid var(--line); border-radius: 10px; padding: 32px;
  display: flex; flex-direction: column; gap: 14px;
}
.case h3 { font: 400 clamp(24px, 2.4vw, 28px)/1.2 var(--serif); color: var(--ink); text-wrap: balance; }
.case p { font-size: 16px; line-height: 1.6; color: var(--muted); text-wrap: pretty; }
.cases-close { margin-top: clamp(32px, 4vw, 48px); font: 400 clamp(20px, 2vw, 24px)/1.4 var(--serif); color: var(--deep); max-width: 34em; text-wrap: pretty; }

/* ---------- Partners ---------- */
.partners h2 { margin-bottom: 20px; max-width: 17em; }
.partners-intro { margin-bottom: clamp(32px, 5vw, 48px); font-size: 18px; line-height: 1.6; color: var(--muted); max-width: 40em; text-wrap: pretty; }
.partner-logos {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr)); gap: 16px;
}
.partner-logos li {
  display: flex; align-items: center; justify-content: center; height: 96px; padding: 20px;
  box-sizing: border-box; background: #ffffff; border: 1px solid var(--line); border-radius: 10px;
}
.partner-logos img { width: auto; height: auto; max-width: 100%; max-height: 52px; filter: grayscale(1); opacity: .75; transition: filter .2s, opacity .2s; }
.partner-logos li:hover img { filter: none; opacity: 1; }

/* Placeholder content still to be supplied: dashed outline, muted text. */
.is-placeholder { border-style: dashed !important; }
.quote.is-placeholder blockquote, .partner-logos .is-placeholder { color: var(--ondark2); font-family: var(--mono); font-size: 13px; }
.quote.is-placeholder blockquote { font-size: 15px; line-height: 1.6; }

/* ---------- Who we help ---------- */
.who-title { margin-bottom: clamp(36px, 5vw, 64px); max-width: 18em; }
.audiences { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 48px 72px; }
.audiences h3 { margin-bottom: 14px; font: 300 clamp(26px, 2.8vw, 36px)/1.15 var(--serif); letter-spacing: -.015em; text-wrap: balance; }
.audiences p { font-size: 18px; line-height: 1.6; color: var(--muted); text-wrap: pretty; }
/* GreenIT panel: white card with a green border and leafy sprigs on the top-left and
   bottom-right corners. The sprig's stems (24/130 of its size in from each edge) sit on the border. */
.green {
  --leaf-size: clamp(88px, 10vw, 120px);
  --leaf-offset: calc(var(--leaf-size) * -24 / 130);
  position: relative;
  margin-top: clamp(48px, 7vw, 88px); background: #ffffff; border: 2px solid #5aa374; border-radius: 10px;
  padding: clamp(40px, 5vw, 56px);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 20px 56px; align-items: center;
}
.green::before, .green::after {
  content: ""; position: absolute; width: var(--leaf-size); height: var(--leaf-size);
  background: url("../img/leaf-corner.svg") no-repeat center / contain; pointer-events: none;
}
.green::before { top: var(--leaf-offset); left: var(--leaf-offset); }
.green::after { bottom: var(--leaf-offset); right: var(--leaf-offset); transform: rotate(180deg); }
.green h3 { font: 400 clamp(24px, 2.8vw, 34px)/1.15 var(--serif); color: #2f6b45; text-wrap: balance; }
.green p { font-size: 17px; line-height: 1.6; color: var(--ink); text-wrap: pretty; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 48px 80px; }
.contact h2 { margin-bottom: 20px; font: 300 clamp(36px, 5.4vw, 72px)/1.02 var(--serif); letter-spacing: -.02em; text-wrap: balance; }
.contact-lede { margin-bottom: 36px; font-size: 18px; line-height: 1.6; color: var(--ondark); max-width: 28em; text-wrap: pretty; }
.contact-links { display: flex; flex-direction: column; gap: 10px; font: 400 18px var(--mono); }
.contact-links a { color: var(--bright); }
.contact-links a:hover { color: #ffffff; }
.contact-details {
  margin: 36px 0 0; padding-top: 24px; border-top: 1px solid var(--body);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: 20px 28px;
}
.contact-detail dt { margin-bottom: 6px; font: 500 12px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ondark2); }
.contact-detail dd { margin: 0; font-size: 15px; line-height: 1.55; color: var(--ondark); }
.contact-detail a { color: var(--ondark); text-decoration: underline; text-decoration-color: var(--body); text-underline-offset: 3px; }
.contact-detail a:hover { color: #ffffff; }
.contact-office { margin-top: 24px; font: 400 13px/1.5 var(--mono); color: var(--ondark2); }

.contact-form { display: flex; flex-direction: column; gap: 18px; }
.contact-form label {
  display: flex; flex-direction: column; gap: 8px;
  font: 500 12px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ondark);
}
.contact-form input, .contact-form textarea {
  background: transparent; border: 0; border-bottom: 1px solid var(--ondark2); border-radius: 0;
  padding: 10px 0; font: 400 19px var(--sans); color: #ffffff; outline: none;
  letter-spacing: normal; text-transform: none;
}
.contact-form textarea { line-height: 1.5; resize: vertical; }
.contact-form input:focus, .contact-form textarea:focus { border-bottom-color: var(--bright); }
.contact-form textarea::placeholder { color: var(--ondark2); }
.contact-form button {
  align-self: flex-start; margin-top: 8px; background: var(--bright); color: var(--ink); border: 0;
  padding: 16px 30px; border-radius: 999px; font: 500 17px var(--sans); cursor: pointer;
}
.contact-form button:hover { background: #ffffff; }
.contact-form button:disabled { opacity: .6; cursor: progress; }
.form-error { font-size: 15px; color: var(--bright); }
/* Spam trap: hidden from people, filled in by bots. */
.form-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-thanks { border-top: 1px solid var(--bright); padding-top: 24px; }
.form-thanks h3 { margin-bottom: 10px; font: 400 32px/1.15 var(--serif); color: var(--bright); }
.form-thanks p { font-size: 18px; line-height: 1.6; color: var(--ondark); }
[hidden] { display: none !important; }

.site-footer { border-top: 1px solid var(--body); }
.site-footer .wrap {
  padding-top: 24px; padding-bottom: 24px;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px;
  font: 400 13px var(--mono); color: var(--ondark2);
}
.footer-mark { letter-spacing: .22em; color: var(--paper); font-weight: 500; }

/* ---------- Accessibility ---------- */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.band-dark :focus-visible { outline-color: var(--bright); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* ---------- WordPress additions ---------- */
/* Consecutive paragraphs from multi-paragraph text fields. */
.hero-foot p + p, .existing p + p, .green p + p, .audiences p + p, .case p + p,
.services-intro + .services-intro, .cases-intro + .cases-intro, .partners-intro + .partners-intro, .contact-lede + .contact-lede { margin-top: 1em; }

/* Keep the sticky header below the admin bar for logged-in editors. */
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
.admin-bar .cta-panel { scroll-margin-top: 128px; }

.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 6px; }
.skip-link:focus { left: 8px; }

/* Ordinary pages (privacy policy etc.). */
.page-title { margin-bottom: clamp(24px, 4vw, 40px); max-width: 18em; }
.prose { max-width: 42em; font-size: 18px; line-height: 1.65; color: var(--body); }
.prose > * + * { margin-top: 1em; }
.prose h2, .prose h3 { font: 400 clamp(24px, 2.6vw, 30px)/1.2 var(--serif); color: var(--ink); margin-top: 1.6em; }
.prose a { text-decoration: underline; }
