:root {
  --paper: #f7f4ee;
  --stone: #e1dcd2;
  --green: #055748;
  --green-dark: #043f35;
  --ocean: #053d57;
  --ink: #171717;
  --ochre: #d9a441;
  --white: #ffffff;
  --muted: #6d6a63;
  --line: rgba(5, 61, 87, 0.18);
  --display: "Red Hat Display", "Avenir Next", Avenir, sans-serif;
  --body: "Red Hat Text", "Avenir Next", Avenir, sans-serif;
  --serif: Lora, Georgia, serif;
  --shell: min(1180px, calc(100vw - 48px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.58;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
button { font: inherit; }
img { max-width: 100%; display: block; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: var(--display); line-height: 1.08; letter-spacing: -0.035em; }
h2 { font-size: clamp(2.5rem, 5.4vw, 4.9rem); }
h3 { font-size: 1.35rem; }
.page-shell { width: var(--shell); margin-inline: auto; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; left: 1rem; top: -5rem; z-index: 1000;
  background: var(--white); padding: 0.65rem 1rem; border-radius: 0.25rem;
}
.skip-link:focus { top: 1rem; }

.site-header {
  position: sticky; top: 0; z-index: 100;
  min-height: 86px; padding: 14px max(24px, calc((100vw - 1180px) / 2));
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
  background: rgba(247, 244, 238, 0.92); backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent; transition: border-color 180ms ease, min-height 180ms ease;
}
.site-header.scrolled { border-bottom-color: rgba(5, 61, 87, 0.14); min-height: 72px; }
.wordmark { display: inline-flex; flex-direction: column; text-decoration: none; line-height: 1; }
.wordmark span { font-family: var(--display); font-size: 1.42rem; font-weight: 650; letter-spacing: -0.035em; }
.wordmark small { margin-top: 7px; font-family: var(--serif); font-size: 0.69rem; font-style: normal; color: var(--green); letter-spacing: 0.015em; }
.primary-nav { display: flex; align-items: center; gap: 1.55rem; }
.primary-nav > a, .nav-dropdown > button { font-size: 0.91rem; font-weight: 600; text-decoration: none; }
.primary-nav > a[aria-current="page"] { color: var(--ocean); }
.nav-dropdown { position: relative; }
.nav-dropdown > button { background: none; border: 0; padding: 0.7rem 0; cursor: pointer; color: inherit; }
.nav-dropdown > button span { margin-left: 0.2rem; }
.dropdown-menu {
  position: absolute; top: calc(100% + 8px); left: -1.2rem; width: 325px;
  display: grid; padding: 0.7rem; background: var(--white); box-shadow: 0 18px 45px rgba(5, 61, 87, 0.16);
  border-radius: 0.35rem; opacity: 0; visibility: hidden; transform: translateY(-8px); transition: 160ms ease;
}
.dropdown-menu-small { width: 205px; }
.dropdown-menu a { padding: 0.75rem 0.8rem; border-radius: 0.2rem; text-decoration: none; font-size: 0.88rem; }
.dropdown-menu a:hover, .dropdown-menu a:focus-visible { background: var(--paper); }
.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu,
.nav-dropdown.open .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.menu-toggle { display: none; background: none; border: 0; padding: 0.6rem; }
.menu-toggle > span:not(.sr-only) { display: block; width: 26px; height: 2px; background: var(--ocean); margin: 6px 0; }

.button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px;
  padding: 0.86rem 1.35rem; border: 1px solid var(--green); border-radius: 999px;
  background: var(--green); color: var(--white); font-size: 0.92rem; font-weight: 650;
  text-decoration: none; transition: transform 160ms ease, background 160ms ease, color 160ms ease;
}
.button:hover { transform: translateY(-2px); background: var(--green-dark); }
.button-small { min-height: 42px; padding: 0.65rem 1rem; }
.button-inverse { border-color: var(--white); background: transparent; }
.button-inverse:hover { background: var(--white); color: var(--green); }
.button-ochre { border-color: var(--ochre); background: var(--ochre); color: #201b12; }
.button-ochre:hover { background: #e7b651; }
.text-link { display: inline-flex; gap: 0.55rem; align-items: center; color: var(--ocean); font-weight: 650; text-decoration: none; border-bottom: 1px solid currentColor; }
.text-link > span,
.service-card a > span,
.work-card a > span,
.project-card button > span {
  font-family: Arial, Helvetica, sans-serif;
  font-variant-emoji: text;
}

.surface-linework { position: relative; overflow: hidden; background: var(--paper); }
.threads { position: absolute; pointer-events: none; fill: none; overflow: visible; }
.thread { stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.thread.thin { stroke-width: 1.7; }
.thread-green { stroke: var(--green); }
.thread-blue { stroke: var(--ocean); }
.thread-ochre { stroke: var(--ochre); stroke-width: 4.5; }
.threads-hero { right: 19%; bottom: -18%; width: min(46vw, 650px); height: 106%; opacity: 0.58; }

.hero { min-height: calc(100svh - 86px); display: grid; align-items: center; }
.hero-inner {
  position: relative; z-index: 1; padding-block: clamp(3.5rem, 5vw, 5.5rem);
  display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(340px, 0.8fr);
  gap: clamp(2.5rem, 5vw, 5rem); align-items: center;
}
.hero-copy { min-width: 0; }
.hero h1 { max-width: 800px; margin-bottom: 2.2rem; font-size: clamp(3.3rem, 5.35vw, 5.7rem); font-weight: 560; }
.hero h1 span { display: block; }
.hero h1 span + span { margin-top: 0.16em; }
.hero h1 .hero-accent { color: var(--ocean); }
.hero-intro { max-width: 650px; margin-bottom: 2rem; font-size: clamp(1.12rem, 1.7vw, 1.35rem); }
.hero-actions { display: flex; gap: 1.5rem; align-items: center; flex-wrap: wrap; }
.hero-portrait {
  position: relative; margin: 0; aspect-ratio: 4 / 5; overflow: hidden;
  background: var(--stone); border: 1px solid rgba(5, 61, 87, 0.16);
}
.hero-portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 58%; }

.belief-section { padding: clamp(6rem, 10vw, 9rem) 0; background: var(--white); }
.belief-grid { display: grid; grid-template-columns: 1.08fr 0.92fr; gap: clamp(4rem, 8vw, 8rem); align-items: start; }
.belief-grid > h2 { margin-bottom: 0; font-size: clamp(2.4rem, 4.6vw, 4.45rem); font-weight: 520; color: var(--ocean); }
.belief-copy { padding-top: 0.35rem; }
.belief-copy p { color: #3e3c38; font-size: clamp(1.06rem, 1.55vw, 1.24rem); }
.documentary-image { margin-top: clamp(4rem, 7vw, 7rem); margin-bottom: 0; }
.image-frame { overflow: hidden; aspect-ratio: 16 / 8.15; background: var(--stone); }
.image-frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 51%; }

.approach { padding: clamp(6rem, 10vw, 9rem) 0; background: var(--paper); }
.threads-approach { inset: 0 auto auto -10%; width: 120%; height: 100%; opacity: 0.15; }
.approach-content { position: relative; z-index: 1; }
.approach-foundation {
  max-width: 920px;
}
.approach-foundation h2 { margin-bottom: 1.5rem; color: var(--ocean); font-weight: 520; }
.approach-foundation p { max-width: 790px; margin-bottom: 0; font-size: 1.08rem; }
.approach-label {
  margin: clamp(4rem, 7vw, 6rem) 0 1.5rem; color: var(--green);
  font-size: 0.86rem; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase;
}
.approach-list {
  display: grid; grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--line); border-left: 1px solid var(--line);
}
.approach-list article {
  display: grid; grid-template-columns: 54px 1fr; gap: 1.25rem; min-height: 250px;
  padding: clamp(1.8rem, 4vw, 3rem); background: rgba(247, 244, 238, 0.76);
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.approach-icon {
  width: 48px; height: 48px; display: grid; place-items: center; color: var(--ochre);
}
.approach-icon svg { width: 100%; height: 100%; overflow: visible; }
.approach-icon circle, .approach-icon path {
  stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.approach-icon .connection-line { opacity: 0.72; }
.approach-icon .solid-dot { fill: currentColor; stroke: none; }
.approach-list h3 { margin-bottom: 0.7rem; color: var(--ocean); font-size: clamp(1.3rem, 2.3vw, 1.85rem); }
.approach-list p { margin-bottom: 0; }

.services-section { padding: clamp(6rem, 10vw, 9rem) 0; color: var(--white); background: var(--green); }
.section-title, .section-title-light { margin-bottom: clamp(3rem, 6vw, 5rem); font-weight: 520; }
.section-title-light { color: var(--white); }
.service-grid { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid rgba(255,255,255,0.3); border-left: 1px solid rgba(255,255,255,0.3); }
.service-card { min-height: 405px; padding: clamp(2rem, 5vw, 3.7rem); border-right: 1px solid rgba(255,255,255,0.3); border-bottom: 1px solid rgba(255,255,255,0.3); display: flex; flex-direction: column; }
.service-card h3 { margin: 0 0 1rem; font-size: clamp(1.8rem, 3vw, 2.55rem); font-weight: 520; }
.service-card p { max-width: 490px; color: #e7efed; }
.service-card a { margin-top: auto; display: flex; justify-content: space-between; padding-top: 1.1rem; border-top: 1px solid rgba(255,255,255,0.25); font-weight: 650; text-decoration: none; }
.service-card a span { color: var(--ochre); }
.services-cta { margin-top: 2.2rem; }

.experience-section { padding: clamp(6rem, 10vw, 9rem) 0; background: var(--white); }
.experience-section .section-title { color: var(--ocean); }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.stats-grid > div { min-height: 240px; padding: 2.2rem; display: flex; flex-direction: column; justify-content: space-between; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stats-grid strong { font-family: var(--display); font-size: clamp(2rem, 3.5vw, 3.55rem); line-height: 1.02; color: var(--green); font-weight: 550; letter-spacing: -0.045em; }
.stats-grid span { max-width: 300px; font-size: 0.9rem; }

.testimonials-section { padding: clamp(6rem, 10vw, 9rem) 0; background: var(--stone); }
.section-heading-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; margin-bottom: clamp(3rem, 6vw, 5rem); }
.section-heading-row h2 { max-width: 800px; margin-bottom: 0; color: var(--ocean); font-weight: 520; }
.carousel-controls { display: flex; align-items: center; gap: 0.7rem; flex-shrink: 0; }
.carousel-controls button {
  width: 46px; height: 46px; border: 1px solid rgba(5, 61, 87, 0.35); border-radius: 50%;
  background: transparent; color: var(--ocean); cursor: pointer; transition: background 150ms ease, color 150ms ease;
}
.carousel-controls button:hover { background: var(--ocean); color: var(--white); }
.carousel-controls span { min-width: 44px; color: var(--muted); font-size: 0.78rem; text-align: center; }
.testimonial-track { display: grid; grid-auto-flow: column; grid-auto-columns: 100%; overflow: hidden; scroll-behavior: smooth; scroll-snap-type: x mandatory; }
.testimonial-slide { max-width: 970px; margin: 0; padding-right: 3rem; scroll-snap-align: start; }
.testimonial-slide p { margin-bottom: 2rem; font-family: var(--serif); font-size: clamp(1.45rem, 2.8vw, 2.25rem); line-height: 1.5; }
.testimonial-slide footer { display: flex; flex-direction: column; font-size: 0.86rem; }
.testimonial-slide footer span { color: var(--muted); }

.work-section { padding: clamp(6rem, 10vw, 9rem) 0; background: var(--paper); }
.threads-work { right: -5%; top: -8%; width: min(70vw, 900px); height: 76%; opacity: 0.12; }
.work-content { position: relative; z-index: 1; }
.work-track {
  display: grid; grid-auto-flow: column; grid-auto-columns: 42%; gap: 1rem;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none;
}
.work-track::-webkit-scrollbar { display: none; }
.work-card {
  position: relative; min-height: 500px; overflow: hidden; display: flex; align-items: flex-end;
  background: var(--ocean); border: 1px solid rgba(5,61,87,0.22); scroll-snap-align: start;
}
.work-card::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(2,27,36,0.04) 12%, rgba(2,27,36,0.34) 45%, rgba(2,27,36,0.96) 100%);
}
.work-card > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 500ms ease; }
.work-card:nth-child(2) > img { object-position: 50% 62%; }
.work-card:nth-child(3) > img { object-position: 50% 50%; }
.work-card:hover > img { transform: scale(1.025); }
.work-card-copy { position: relative; z-index: 2; width: 100%; padding: clamp(1.6rem, 3vw, 2.4rem); color: var(--white); }
.work-card h3 { margin: 0 0 0.8rem; color: var(--white); font-size: clamp(1.45rem, 2.5vw, 2rem); }
.work-card p { margin-bottom: 1.5rem; color: rgba(255,255,255,0.88); }
.work-card a { padding-top: 1.1rem; display: flex; justify-content: space-between; border-top: 1px solid rgba(255,255,255,0.38); color: var(--white); font-weight: 650; text-decoration: none; }
.work-card a span { color: var(--ochre); }
.work-link { margin-top: 2rem; }

.contact-section { padding: clamp(6rem, 10vw, 9rem) 0; color: var(--white); background: var(--ocean); text-align: center; }
.contact-inner { max-width: 960px; }
.contact-inner h2 { margin-bottom: 1.8rem; font-weight: 520; }
.contact-inner > p { max-width: 720px; margin: 0 auto 2rem; color: #e2edf2; font-size: 1.15rem; }

.site-footer { padding: clamp(4rem, 7vw, 6rem) 0 3rem; background: var(--green-dark); color: var(--white); }
.footer-brand-row { padding-bottom: 3rem; }
.acknowledgement { padding-top: clamp(3rem, 5vw, 4.5rem); border-top: 1px solid rgba(255,255,255,0.22); }
.acknowledgement p { max-width: 1040px; margin-bottom: 0; color: #d1e0db; font-size: 0.86rem; line-height: 1.75; }
.footer-meta { margin-top: 3rem; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.footer-meta p { margin: 0; color: #d1e0db; font-size: 0.78rem; }
.footer-credentials { display: flex; align-items: center; gap: 1.25rem; }
.footer-credentials img { width: 92px; height: auto; }
.linkedin-link { display: inline-flex; align-items: center; gap: 0.7rem; color: var(--white); font-size: 0.84rem; font-weight: 600; text-decoration: none; }
.linkedin-link svg { width: 25px; height: 25px; fill: currentColor; }
.linkedin-link:hover span { text-decoration: underline; text-underline-offset: 0.25em; }
.wordmark-footer small { color: #d1e0db; }

:focus-visible { outline: 3px solid var(--ochre); outline-offset: 4px; }

@media (max-width: 1050px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero h1 { max-width: 900px; }
  .hero-portrait { width: min(100%, 560px); }
  .threads-hero { right: -18%; bottom: 18%; width: 72vw; opacity: 0.44; }
}

@media (max-width: 930px) {
  :root { --shell: min(100% - 38px, 760px); }
  .site-header { min-height: 76px; padding-inline: 19px; }
  .menu-toggle { display: block; }
  .primary-nav {
    position: absolute; top: 100%; left: 0; right: 0; padding: 1.2rem 19px 1.6rem;
    display: none; align-items: stretch; flex-direction: column; gap: 0.3rem;
    background: var(--paper); border-bottom: 1px solid var(--line);
  }
  .primary-nav.open { display: flex; }
  .primary-nav > a:not(.button), .nav-dropdown > button { padding: 0.8rem 0; }
  .nav-dropdown { width: 100%; }
  .dropdown-menu { position: static; width: 100%; box-shadow: none; display: none; opacity: 1; visibility: visible; transform: none; padding: 0.2rem 0 0.7rem 0.5rem; background: transparent; }
  .nav-dropdown.open .dropdown-menu { display: grid; }
  .hero { min-height: auto; }
  .belief-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .belief-copy { max-width: 690px; }
  .approach-list { grid-template-columns: 1fr; }
  .approach-list article { min-height: auto; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .work-track { grid-auto-columns: calc((100% - 1rem) / 2); }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .wordmark small { font-size: 0.61rem; }
  .hero-inner { padding-top: 5rem; padding-bottom: 8rem; }
  .hero h1 { font-size: clamp(2.95rem, 13.2vw, 4.8rem); }
  .threads-hero { width: 105vw; height: 70%; right: -54%; bottom: 16%; }
  .hero-portrait { width: 100%; margin-top: 1rem; }
  .image-frame { aspect-ratio: 4 / 3; }
  .image-frame img { object-position: 57% 50%; }
  .threads-approach { opacity: 0.09; }
  .approach-list article { grid-template-columns: 46px 1fr; gap: 0.8rem; padding: 1.5rem 1.2rem; }
  .approach-icon { width: 40px; height: 40px; }
  .service-grid, .stats-grid { grid-template-columns: 1fr; }
  .service-card { min-height: 365px; }
  .stats-grid > div { min-height: 205px; }
  .section-heading-row { align-items: flex-start; flex-direction: column; }
  .testimonial-slide { padding-right: 0; }
  .work-track { grid-auto-columns: 88%; }
  .work-card { min-height: 470px; }
  .threads-work { opacity: 0.08; }
  .footer-meta { align-items: flex-start; flex-direction: column; gap: 1.5rem; }
  .footer-credentials { align-items: flex-start; flex-direction: column; gap: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
