:root {
  /* Brand palette — Third Pillar Brand Guidelines, May 2025 */
  --black: #000000;
  --tawny: #D95204;
  --byzantine-blue: #0554EB;
  --apple-green: #8EA604;
  --pakistan-green: #054F03;
  --eggshell: #F2EFDF;
  --peach: #F4DFBE;

  --bg: var(--eggshell);
  --ink: var(--black);
  --muted: #55584a;
  --accent: var(--tawny);
  --line: #ddd6c2;
  --max-width: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Lato', -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  font-size: 17px;
}

h1, h2, h3, .brand-font {
  font-family: 'Prompt', 'Lato', sans-serif;
  letter-spacing: -0.035em;
  font-weight: 500;
  color: var(--black);
}

a { color: inherit; }

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

.eyebrow {
  font-family: 'Lato', sans-serif;
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--tawny);
  margin: 0 0 14px;
}

/* Header */
header.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(242, 239, 223, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 20;
}

header.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  padding-bottom: 20px;
}

.brand-mark {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark img,
.brand-mark svg {
  width: 36px;
  height: 36px;
  display: block;
}

.brand-mark span {
  font-family: 'Prompt', sans-serif;
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: var(--black);
}

nav {
  display: flex;
  align-items: center;
  gap: 38px;
}

nav a.nav-link {
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--black);
  position: relative;
  padding-bottom: 4px;
}

nav a.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--black);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

nav a.nav-link:hover::after {
  transform: scaleX(1);
}

nav a.nav-link.btn-link {
  background: var(--black);
  color: var(--eggshell);
  padding: 10px 22px;
  border-radius: 999px;
  font-weight: 600;
}

nav a.nav-link.btn-link::after { display: none; }

nav a.nav-link.btn-link:hover {
  background: var(--byzantine-blue);
}

.nav-primary-wrap {
  display: contents;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  padding: 8px;
  margin: 0;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--black);
  border-radius: 1px;
}

@media (max-width: 700px) {
  header.site-header {
    position: fixed;
  }

  header.site-header .wrap {
    padding: 14px 18px;
    gap: 12px;
  }

  .brand-mark img,
  .brand-mark svg {
    width: 26px;
    height: 26px;
  }

  nav {
    gap: 10px;
    flex: 1;
    justify-content: flex-start;
  }

  nav a.nav-link.btn-link {
    font-size: 0.8rem;
    padding: 9px 16px;
  }

  .menu-toggle {
    display: flex;
    margin-left: auto;
    margin-right: 4px;
  }

  .nav-primary-wrap {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    padding: 8px 18px 20px;
    background: rgba(242, 239, 223, 0.97);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line);
  }

  nav.is-open .nav-primary-wrap {
    display: flex;
  }

  .nav-primary-wrap .nav-link {
    width: 100%;
    padding: 12px 0;
    font-size: 1rem;
  }
}

/* Hero */
.hero {
  padding: 200px 0 120px;
  text-align: left;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.hero .mesh {
  position: absolute;
  inset: -15%;
  z-index: -2;
  background:
    radial-gradient(circle at 8% 15%, var(--eggshell) 0%, transparent 38%),
    radial-gradient(circle at 30% 75%, var(--apple-green) 0%, transparent 50%),
    radial-gradient(circle at 68% 10%, var(--tawny) 0%, transparent 40%),
    radial-gradient(circle at 88% 70%, var(--pakistan-green) 0%, transparent 55%),
    radial-gradient(circle at 55% 40%, var(--byzantine-blue) 0%, transparent 45%),
    linear-gradient(135deg, var(--eggshell) 0%, var(--apple-green) 45%, var(--pakistan-green) 100%);
  filter: blur(70px) saturate(1.15);
  transform: scale(1.1);
}

.hero .grain {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.3;
  mix-blend-mode: overlay;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.hero h1 {
  font-size: clamp(2.2rem, 4.6vw, 3.6rem);
  line-height: 1.15;
  letter-spacing: -0.04em;
  font-weight: 400;
  max-width: 900px;
  margin: 0 0 28px;
  position: relative;
}

.hero p.sub {
  font-size: 1.15rem;
  color: #1c2416;
  max-width: 620px;
  margin: 0;
  position: relative;
}

.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--black);
  margin-top: 40px;
  position: relative;
}

.arrow-link .circle-arrow {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1.5px solid var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: background 0.15s ease, color 0.15s ease;
}

.arrow-link:hover .circle-arrow {
  background: var(--black);
  color: var(--eggshell);
}

/* Sections */
section {
  padding: 80px 0;
  border-top: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}

.section-ring {
  position: absolute;
  border-radius: 50%;
  border: 2px solid currentColor;
  opacity: 0.14;
  pointer-events: none;
  z-index: 0;
}

#what-we-do .section-ring { width: 340px; height: 340px; top: -130px; right: -110px; color: var(--tawny); }
#how-we-work .section-ring { width: 300px; height: 300px; bottom: -140px; left: -90px; color: var(--byzantine-blue); }

#what-we-do .wrap, #how-we-work .wrap { position: relative; z-index: 1; }

section h2 {
  font-size: clamp(1.6rem, 2.4vw, 2.1rem);
  margin: 0 0 10px;
}

section .lead {
  color: var(--muted);
  max-width: 640px;
  margin: 0 0 36px;
  font-size: 1.05rem;
}

.two-col {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: start;
}

@media (max-width: 700px) {
  .two-col { grid-template-columns: 1fr; }
}

.col-label {
  color: var(--tawny);
  font-size: 0.85rem;
  font-weight: 700;
  font-family: 'Lato', sans-serif;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
}

ul.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

ul.feature-list li {
  padding: 18px 4px;
  border-top: 1px solid var(--line);
  font-size: 1.08rem;
  display: flex;
  align-items: center;
  gap: 14px;
}

ul.feature-list li:first-child { border-top: none; }

ul.feature-list li::before {
  content: "";
  flex: none;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--tawny);
}

ul.feature-list:nth-of-type(2) li::before,
.how-list li::before {
  background: var(--byzantine-blue);
}

/* Clients / logos */
#clients {
  background: var(--apple-green);
  text-align: center;
  padding: 44px 0 100px;
  border-top: none;
}

#clients .lead { color: rgba(0, 0, 0, 0.62); }

#clients .lead {
  margin-left: auto;
  margin-right: auto;
}

.logo-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 56px;
  margin-top: 16px;
}

.logo-slot {
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  opacity: 0.9;
  transition: opacity 0.15s ease;
}

.logo-slot:hover { opacity: 1; }

.logo-slot img {
  max-width: 160px;
  max-height: 100%;
  object-fit: contain;
}

/* CTA band */
.cta-band {
  text-align: center;
  padding: 90px 0;
  border-top: 1px solid var(--line);
  background: var(--byzantine-blue);
  color: var(--eggshell);
}

.cta-band .eyebrow { color: var(--eggshell); }

.cta-band h2 {
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  margin-bottom: 28px;
  color: var(--eggshell);
}

.btn {
  display: inline-block;
  text-decoration: none;
  background: var(--tawny);
  color: #fff;
  padding: 14px 36px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  border: none;
  cursor: pointer;
  font-family: 'Lato', sans-serif;
  transition: background 0.15s ease, transform 0.15s ease;
}

.btn:hover { background: var(--byzantine-blue); transform: translateY(-1px); }

.cta-band .btn:hover {
  background: var(--eggshell);
  color: var(--black);
}

/* Contact page */
.contact-hero {
  padding: 160px 0 40px;
  text-align: center;
}

@media (max-width: 700px) {
  .contact-hero {
    padding: 150px 0 50px;
  }

  .contact-hero h1 {
    margin-bottom: 20px;
  }
}

.contact-hero h1 {
  font-size: clamp(1.6rem, 2.8vw, 2.3rem);
  font-weight: 400;
  max-width: 720px;
  margin: 0 auto 14px;
}

.contact-hero p {
  color: var(--tawny);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: -0.02em;
}

form.contact-form {
  max-width: 560px;
  margin: 0 auto;
  padding: 0 24px 80px;
}

form.contact-form label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
  margin-top: 22px;
  color: var(--muted);
}

form.contact-form input,
form.contact-form textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  background: #fff;
  color: var(--ink);
}

form.contact-form input:focus,
form.contact-form textarea:focus {
  outline: none;
  border-color: var(--byzantine-blue);
}

form.contact-form textarea { min-height: 150px; resize: vertical; }

form.contact-form button {
  margin-top: 30px;
}

/* Footer */
footer {
  background: rgba(242, 239, 223, 0.82);
  border-top: 1px solid var(--line);
  color: var(--black);
  padding: 56px 0 44px;
}

.footer-grid {
  display: flex;
  gap: 64px;
  align-items: flex-start;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
  order: 1;
}

.footer-main { order: 2; flex: 1; min-width: 0; }

.footer-brand img { width: 30px; height: 30px; display: block; }

.footer-brand span {
  font-family: 'Prompt', sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: -0.03em;
  color: var(--black);
}

@media (max-width: 700px) {
  .footer-grid { flex-direction: column; align-items: flex-start; gap: 24px; }
  footer { padding: 44px 0 36px; }
  .footer-brand { margin-bottom: 4px; }
}

footer .cta-label {
  font-size: 0.8rem;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 14px;
  color: var(--apple-green);
}

footer .acknowledgement {
  color: var(--muted);
  font-size: 0.92rem;
  max-width: 720px;
  margin: 8px 0 34px;
}

.footer-contact-row {
  display: flex;
  align-items: center;
  gap: 26px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.footer-email {
  color: var(--black);
  text-decoration: none;
  font-size: 0.82rem;
  border-bottom: 1px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.footer-email:hover {
  color: var(--tawny);
  border-color: var(--tawny);
}

footer a.social {
  display: inline-flex;
  color: var(--black);
  transition: color 0.15s ease;
}

footer a.social svg { display: block; width: 18px; height: 18px; }

footer a.social:hover { color: var(--tawny); }

footer .copyright {
  margin: 28px 0 0;
  font-size: 0.72rem;
  color: rgba(0, 0, 0, 0.45);
}

/* Custom circle cursor — desktop pointer devices only */
@media (hover: hover) and (pointer: fine) {
  body, a, button, .btn, .nav-link, .arrow-link {
    cursor: none;
  }
  input, textarea {
    cursor: text;
  }
}

.cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--tawny);
  pointer-events: none;
  z-index: 9999;
  opacity: 0;
  transition: width 0.2s ease, height 0.2s ease, opacity 0.2s ease, background 0.2s ease;
}

.cursor-dot.is-active { opacity: 1; }
.cursor-dot.is-large { width: 40px; height: 40px; background: var(--byzantine-blue); }
