:root {
  --color-paper: #f4efe7;
  --color-paper-strong: #efe6d8;
  --color-ink: #17262d;
  --color-muted: #5f6f70;
  --color-blue: #375d6f;
  --color-teal: #6e9b93;
  --color-sage: #a8b39a;
  --color-ochre: #d8a64d;
  --color-rust: #c86d35;
  --color-line: rgba(23, 38, 45, 0.16);
  --radius-lg: 28px;
  --radius-md: 18px;
  --shadow-soft: 0 24px 80px rgba(23, 38, 45, 0.12);
  --container: 1180px;
  --space-1: 0.5rem;
  --space-2: 0.875rem;
  --space-3: 1.25rem;
  --space-4: 1.75rem;
  --space-5: 2.5rem;
  --space-6: 3.5rem;
  --space-7: 5rem;
  --font-sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

img, .project-card, .project-card__media, .project-card__image, .hero-visual img, .cta-card, .single-post__article, .capabilities-grid, .section-shell, .site-header, .site-footer {
  border-radius: 0;
}

.button, .menu-toggle, .organisations-wall span {
  border-radius: 999px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Avenir Next", Avenir, "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--color-ink);
  background: linear-gradient(180deg, #f8f2e8 0%, var(--color-paper) 100%);
  line-height: 1.5;
}

body.single-post .site-shell,
body.blog .site-shell,
body.archive .site-shell,
body.category .site-shell,
body.tag .site-shell,
body.search .site-shell {
  background: linear-gradient(360deg, #f8f6f1, #fcfaf7 24.37%);
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--color-blue);
}

img {
  max-width: 100%;
  display: block;
}

button,
a {
  transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--color-rust);
  outline-offset: 3px;
}

.container {
  width: min(100% - 2rem, var(--container));
  margin: 0 auto;
}

.section-shell {
  padding: var(--space-7) 0;
  position: relative;
  border-bottom: 1px solid rgb(218, 218, 218);
}

.work-section {
  background-color: #f5f1ea;
}

.hero.section-shell {
  padding-top: 1rem;
  background-color: color(srgb 0.99 0.98 0.96);
}

.work-section {
  background: #f5f1ea;
}

.work-section::before {
  display: none;
}

.section-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at top left, rgba(108, 154, 147, 0.14), transparent 28%), linear-gradient(90deg, transparent 0, transparent calc(100% - 1px), rgba(23, 38, 45, 0.04) calc(100% - 1px), rgba(23, 38, 45, 0.04) 100%);
  background-size: auto, 100% 100%;
  pointer-events: none;
  opacity: 0.6;
}

.site-shell {
  min-height: 100vh;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgb(95, 111, 112);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 0;
  gap: 1rem;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.brand__name {
  font-size: 1.43rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.brand__descriptor {
  color: var(--color-muted);
  font-size: 0.95rem;
}

.site-nav__list {
  display: flex;
  gap: 1.3rem;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav__list a {
  color: #fff;
  font-size: 0.96rem;
  font-weight: 600;
}

.brand__name,
.brand__descriptor {
  color: #fff;
}

.menu-toggle {
  display: none;
  border: 1px solid rgba(255, 255, 255, 0.8);
  background: transparent;
  padding: 0.7rem 0.9rem;
  align-items: center;
  gap: 0.6rem;
  color: #fff;
}

.menu-toggle__label {
  color: #fff;
}

.menu-toggle__icon {
  width: 0.9rem;
  height: 0.9rem;
  border-top: 2px solid #fff;
  border-bottom: 2px solid #fff;
  position: relative;
}

.menu-toggle__icon::after {
  content: "";
  position: absolute;
  inset: 0.2rem 0;
  border-top: 2px solid #fff;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
  padding-top: 0;
}

.eyebrow {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-blue);
  margin: 0 0 1rem;
}

h1, h2, h3 {
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.3rem, 4vw, 4.2rem);
  margin: 0 0 1.2rem;
  line-height: 1.3;
  max-width: none;
}

.hero h1 {
  font-size: clamp(4.5rem, 4vw, 4.2rem);
}

h2 {
  font-size: clamp(1.8rem, 2.4vw, 2.4rem);
  margin: 0 0 0.8rem;
  line-height: 1.5;
}

h3 {
  font-size: 1.25rem;
  margin: 0 0 0.7rem;
  line-height: 1.5;
}

.hero-body {
  font-size: 1.4rem;
}

.hero-support,
.about-copy p,
.section-heading p,
.project-card__body p,
.cta-card p,
.site-footer p,
.single-post__content p,
.single-post__content li,
.archive-item p {
  font-size: 1.03rem;
  color: var(--color-muted);
  margin: 0 0 1rem;
}

.hero-support {
  max-width: 64ch;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
  justify-content: left;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.9rem 1.2rem;
  font-weight: 700;
  border: 1px solid var(--color-line);
}

.button--primary {
  background: var(--color-ink);
  color: white;
}

.button--primary:hover {
  color: white;
  transform: translateY(-1px);
}

.button--secondary {
  background: rgba(255,255,255,0.5);
  color: var(--color-ink);
}

.hero-visual {
  position: relative;
  padding: 0;
  min-height: 430px;
}

.hero-visual::before {
  display: none;
}

.hero-visual img {
  position: relative;
  z-index: 1;
  width: 90%;
  height: auto;
  box-shadow: none;
  border: 0;
  margin-left: auto;
}

.section-heading {
  max-width: 62ch;
  margin-bottom: 2.2rem;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.project-card {
  display: flex;
  flex-direction: column;
  border: 0;
  background: rgba(255, 255, 255, 0.75);
  overflow: hidden;
  min-height: 100%;
  box-shadow: 0px 5px 10px 2px rgb(223, 223, 223);
  padding: 20px;
}

.project-card:hover {
  transform: translateY(-2px);
  border-color: var(--color-teal);
}

.project-card__media {
  background: linear-gradient(135deg, rgba(54, 93, 111, 0.13), rgba(168, 179, 154, 0.16));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.project-card__image {
  width: 100%;
  height: auto;
  object-fit: contain;
  border: 1px solid rgb(223, 223, 223);
}

.project-card__media--fallback {
  color: var(--color-blue);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.project-card__body {
  padding: 1.5rem 1.5rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  flex: 1;
  border: solid rgb(223, 223, 223);
  border-width: 0px 1px 1px;
}

.project-card__meta {
  color: var(--color-blue);
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin: 0;
}

.project-card__client {
  margin: 0;
  color: var(--color-muted);
  font-weight: 600;
}

.text-link {
  font-weight: 700;
  color: var(--color-blue);
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.about-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 2rem;
  align-items: start;
}

.me-image {
    width: 100%;
    max-width: 250px;
    border-radius: 999px;
    display: block;
    margin: 0px auto;
}

.about-title {
  margin-bottom: 60px;
}

.capabilities-block {
  margin-top: 2.2rem;
}

.capability {
  margin-top: 20px;
} 

.capabilities-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  padding: 0;
  background: transparent;
  border: 0;
}

.capabilities-grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.8rem;
}

.capabilities-grid li {
  padding-left: 1.1rem;
  position: relative;
  color: var(--color-ink);
}

.capabilities-grid li::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  background: var(--color-rust);
  position: absolute;
  left: 0;
  top: 0.66rem;
}

.organisations-wall {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1rem;
  margin-top: 1.5rem;
}

.organisations-wall span {
  padding: 0.75rem 0.95rem;
  border: 1px solid var(--color-line);
  border-radius: 999px;
  color: var(--color-muted);
  background: rgba(255,255,255,0.46);
}

.cta-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  padding: 2rem 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.site-footer {
  padding: 2rem 0 3rem;
  border-top: 1px solid var(--color-line);
  background-color: rgb(95, 111, 112);
}

.site-footer p,
.site-footer a,
.site-footer span {
  color: #fff;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  color: var(--color-muted);
}

.footer-title {
  font-weight: 700;
  color: var(--color-ink);
  margin: 0 0 0.3rem;
}

.footer-copy {
  margin: 0;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.single-post__container {
  max-width: 860px;
}

.single-post h1 {
  max-width: none;
}

.single-post__article {
  background: transparent;
  border: 0;
  padding: 0 0 2rem;
  box-shadow: none;
}

.single-post__content > *:first-child {
  margin-top: 0;
}

.single-post__content img,
.single-post__content figure,
.single-post__content iframe,
.single-post__content video {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
}

.single-post__back {
  margin-top: 2rem;
  font-weight: 700;
}

.archive-item {
  padding: 1.2rem 0;
  border-bottom: 1px solid var(--color-line);
}

.empty-state {
  padding: 2rem;
  border: 1px dashed var(--color-line);
  border-radius: var(--radius-md);
  color: var(--color-muted);
}

@media (max-width: 900px) {
  .hero-grid,
  .about-grid {
    grid-template-columns: 1fr;
  }

  .me-image {
    margin: 10px auto;
}

  .hero h1 {
  text-align: center;
   margin-top: 0px;
   padding: 0px 20px 20px 10px;
   font-size: 3rem;
  }

  .hero-body {
  text-align: center;
  padding: 0px 10px 20px 10px;
}

 .hero-grid {
    gap: 0;  
  }

  .project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-visual {
    margin: 0px auto;
    order: -1;
  }
  
  .hero-visual img {
    width: 100%;
  max-width: 260px;
  height: auto;
    margin: 0 auto;
    order: -1;
  }

  .hero-actions {
     justify-content: center;
  }

  .about-title{
    margin-bottom: 20px;
  }
}

@media (max-width: 700px) {
  .hero-visual {
    display: flex;
    justify-content: center;
    min-height: auto;
  }

   .hero h1 {
  text-align: center;
  font-size: 2.4rem;
  margin-top: 0px;
  padding: 0px;
  }

  .hero-body {
  text-align: center;
  font-size: 1rem;
  padding: 0px 10px 0px 10px;
  }

  .hero-visual img {
    width: 100%;
    max-width: 200px;
    height: auto;
    margin: 0 auto;
    order: -1;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(110, 130, 131, 1);
    border-bottom: 1px solid var(--color-line);
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav__list {
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem 1rem 1.4rem;
    gap: 0.8rem;
  }

  .section-shell {
    padding: var(--space-6) 0;
  }

  .project-grid,
  .capabilities-grid {
    grid-template-columns: 1fr;
  }

  .cta-card,
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-actions { 
    align-items: flex-start;
    justify-content: center;
  }

  .single-post__article {
    padding: 1.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
