@font-face {
  font-family: "Aspekta";
  src: url("assets/AspektaVF.ttf") format("truetype");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --ink: #071117;
  --paper: #f5f6f7;
  --white: #fff;
  --blue: #007abc;
  --blue-light: #dceff9;
  --muted: #5f6a70;
  --line: #cfd5d8;
  --max: 1440px;
  --pad: clamp(1.25rem, 4vw, 5rem);
  --ease: cubic-bezier(.2, .8, .2, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 3.95rem;
}

/* Pull navbar anchor targets slightly further into view without changing section spacing. */
#expertise,
#approach,
#evidence,
#people {
  scroll-margin-top: clamp(-6rem, -5vw, -3rem);
}

body {
  margin: 0;
  overflow-x: clip;
  background: var(--white);
  color: var(--ink);
  font-family: "Aspekta", "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  font-weight: 430;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

::selection {
  background: var(--blue);
  color: var(--white);
}

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

[hidden] {
  display: none !important;
}

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

button,
a,
summary {
  -webkit-tap-highlight-color: transparent;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 5px;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 1000;
  padding: .7rem 1rem;
  background: var(--white);
  color: var(--ink);
  transform: translateY(-150%);
  transition: transform .2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  --section-wipe: 0%;
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  isolation: isolate;
  height: 7.25rem;
  color: var(--white);
  border-bottom: 1px solid rgba(255,255,255,.18);
  transition: background .25s ease, height .28s var(--ease), color .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.site-header::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  background: var(--paper);
  clip-path: inset(calc(100% - var(--section-wipe)) 0 0 0);
  pointer-events: none;
}

.header-inner {
  position: relative;
  z-index: 1;
  width: min(var(--max), 100%);
  height: 100%;
  margin: 0 auto;
  padding: 0 var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-inner-inverted {
  position: absolute;
  z-index: 2;
  inset: 0;
  color: var(--ink);
  clip-path: inset(calc(100% - var(--section-wipe)) 0 0 0);
  pointer-events: none;
}

.header-inner-inverted .brand img {
  filter: none;
}

.site-header.scrolled {
  height: 3.95rem;
  background: var(--ink);
  border-color: rgba(255,255,255,.12);
  box-shadow: 0 1px 0 rgba(0,0,0,.1);
}

.site-header.past-hero {
  border-color: rgba(7,17,23,.12);
}

.site-header.menu-active {
  height: 5rem;
  background: var(--ink);
  color: var(--white);
  border-color: rgba(255,255,255,.1);
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.site-header.menu-active::before {
  clip-path: inset(100% 0 0 0);
}

.brand {
  position: relative;
  z-index: 2;
  width: clamp(12rem, 17vw, 14.5rem);
  transition: width .35s var(--ease);
}

.brand img,
.footer-bottom img {
  width: 100%;
  filter: invert(1);
}

.site-header.scrolled .brand {
  width: clamp(8.16rem, 11.6vw, 9.6rem);
}

.site-header.menu-active .header-inner-inverted {
  display: none;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.1vw, 2.25rem);
  font-size: .84rem;
}

.site-nav a {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: .48rem;
  padding: .45rem 0;
}

.site-nav a > span:first-child {
  color: #7f929c;
  font-size: .62rem;
  letter-spacing: .08em;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .3s var(--ease);
}

.site-nav a:hover:not(.suppress-hover)::after,
.site-nav a.is-hovered::after,
.site-nav a[aria-current="location"]::after {
  transform: scaleX(1);
  transform-origin: left;
}

.site-nav .nav-contact {
  min-width: 9.5rem;
  justify-content: space-between;
  padding: .78rem .9rem;
  border: 1px solid color-mix(in srgb, currentColor 55%, transparent);
  transition: color .25s ease, background .25s ease;
}

.site-nav .nav-contact > span:first-child {
  color: inherit;
  font-size: inherit;
  letter-spacing: 0;
}

.site-nav .nav-contact::after {
  display: none;
}

.site-nav .nav-contact:hover {
  background: var(--white);
  color: var(--ink);
}

.header-inner-inverted .site-nav .nav-contact.is-hovered {
  background: var(--ink);
  color: var(--white);
}

.menu-toggle {
  display: none;
  position: relative;
  z-index: 2;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
}

.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  display: flex;
  align-items: stretch;
  background: var(--ink);
  color: var(--white);
}

.hero-lines {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100vw;
  max-width: none;
  opacity: .08;
  filter: invert(1);
  mix-blend-mode: screen;
  transform: scaleY(-1);
  pointer-events: none;
}

.hero-shell {
  position: relative;
  z-index: 1;
  width: min(var(--max), 100%);
  margin: 0 auto;
  min-height: 100svh;
  padding: clamp(9.5rem, 17vh, 12.5rem) var(--pad) 0;
  display: flex;
  flex-direction: column;
}

.hero-meta {
  display: grid;
  grid-template-columns: 1fr auto;
  padding: 1.15rem 0 1.6rem;
  color: #91a0a8;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.hero-meta p {
  margin: 0;
}

.hero-meta p:last-child {
  text-align: right;
}

.hero-main {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(19rem, .8fr);
  gap: clamp(3rem, 6vw, 7rem);
  align-items: center;
  padding: clamp(1.5rem, 3vh, 3rem) 0 clamp(5rem, 14vh, 10rem);
}

.hero-copy {
  align-self: center;
}

.eyebrow,
.section-label,
.statement-kicker,
.project-kicker {
  margin: 0;
  font-size: .78rem;
  font-weight: 620;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.hero h1,
.statement h2,
.section-heading-row h2,
.approach h2,
.evidence h2,
.people h2,
.site-footer h2 {
  margin: 0;
  font-size: clamp(3.2rem, 7.7vw, 8.4rem);
  font-weight: 380;
  letter-spacing: -.065em;
  line-height: .9;
}

em {
  color: var(--blue);
  font-style: normal;
}

.hero h1 em {
  color: var(--blue);
  font-weight: 520;
}

.hero-intro {
  max-width: 28rem;
  margin: 0;
  color: var(--white);
  font-size: clamp(1.2rem, 1.65vw, 1.55rem);
  line-height: 1.42;
}

.hero-aside {
  align-self: center;
  padding-left: clamp(1.5rem, 3vw, 3.5rem);
  border-left: 1px solid rgba(255,255,255,.22);
}

.hero-note {
  max-width: 25rem;
  margin: 1.5rem 0 0;
  color: #91a0a8;
  font-size: .92rem;
  line-height: 1.55;
}

.hero-actions {
  margin-top: 2.3rem;
  display: flex;
  align-items: center;
  gap: 1.6rem;
}

.text-link span,
.footer-email span,
.back-to-top span {
  transition: transform .25s var(--ease);
}

.text-link:hover span,
.footer-email:hover span,
.back-to-top:hover span {
  transform: translate(3px, -2px);
}

.hero-discover:hover span {
  transform: translateY(3px);
}

.text-link {
  display: inline-flex;
  gap: .75rem;
  align-items: center;
  padding: .7rem 0;
  border-bottom: 1px solid rgba(255,255,255,.35);
  font-size: .93rem;
}

.section-shell {
  width: min(var(--max), 100%);
  margin: 0 auto;
  padding: clamp(6rem, 12vw, 11rem) var(--pad);
}

.section-white {
  --section-background: var(--white);
  position: relative;
  z-index: 0;
  background: var(--section-background);
}

.section-grey {
  --section-background: var(--paper);
  position: relative;
  z-index: 0;
  background: var(--section-background);
}

.section-white::before,
.section-grey::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0 calc(50% - 50vw);
  background: var(--section-background);
  pointer-events: none;
}

.section-label {
  display: grid;
  grid-template-columns: 3rem auto;
  gap: 1rem;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}

.section-label span:first-child {
  color: var(--blue);
}

.statement-content {
  margin-top: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(17rem, .62fr);
  gap: 7vw;
  align-items: start;
}

.statement {
  padding-top: clamp(6rem, 11vw, 9rem);
  padding-bottom: clamp(10rem, 17vw, 15rem);
}

.statement-kicker,
.project-kicker {
  margin: 0 0 1.5rem;
  color: var(--blue);
}

.statement h2 {
  max-width: 12ch;
  font-size: clamp(3rem, 6vw, 6.4rem);
}

.statement-body {
  max-width: 29rem;
}

.statement-body p {
  margin: 0 0 1.3rem;
  color: #39464d;
  font-size: 1.05rem;
}

.expertise {
  position: relative;
  width: 100%;
  max-width: none;
  overflow: hidden;
  background: var(--section-background);
  color: var(--ink);
  padding-left: max(var(--pad), calc((100vw - var(--max)) / 2 + var(--pad)));
  padding-right: max(var(--pad), calc((100vw - var(--max)) / 2 + var(--pad)));
}

.expertise .section-label {
  position: relative;
  z-index: 1;
  border-color: var(--line);
  color: var(--muted);
}

.section-lines {
  position: absolute;
  left: 0;
  width: 100vw;
  max-width: none;
  top: 0;
  right: auto;
  opacity: .03;
  transform: translate3d(0, var(--section-line-shift, 0px), 0);
  pointer-events: none;
}

.section-heading-row {
  position: relative;
  z-index: 1;
  margin: clamp(3.5rem, 7vw, 6.5rem) 0 clamp(3rem, 6vw, 5.5rem);
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(17rem, .5fr);
  gap: 7vw;
  align-items: end;
}

.section-heading-row h2 {
  max-width: 12ch;
  font-size: clamp(3.2rem, 6.7vw, 7rem);
}

.section-heading-row p {
  margin: 0;
  color: var(--muted);
}

.service-list {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--ink);
}

.service {
  border-bottom: 1px solid var(--line);
}

.service:last-child {
  border-bottom-color: var(--ink);
}

.service summary {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  list-style: none;
  cursor: pointer;
  display: grid;
  grid-template-columns: 3rem 1fr 2rem;
  gap: 1rem;
  align-items: center;
  min-height: 6.6rem;
  padding: 0 .8rem 0 0;
}

.service-title {
  transition: transform .3s var(--ease);
}

.service summary:hover .service-title,
.service summary:focus-visible .service-title {
  transform: translateX(.45rem);
}

.service summary::-webkit-details-marker {
  display: none;
}

.service-number {
  color: var(--muted);
  font-size: .78rem;
}

.service-title {
  font-size: clamp(1.35rem, 2.4vw, 2.3rem);
  letter-spacing: -.025em;
}

.service-icon {
  position: relative;
  width: 1.5rem;
  height: 1.5rem;
}

.service-icon::before,
.service-icon::after {
  content: "";
  position: absolute;
  inset: 50% 0 auto;
  height: 1px;
  background: currentColor;
  transition: transform .3s var(--ease);
}

.service-icon::after {
  transform: rotate(90deg);
}

.service[open] .service-icon::after {
  transform: rotate(0deg);
}

.service-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(17rem, .72fr);
  gap: 7vw;
  padding: 0 3rem 3.3rem 4rem;
}

.service-panel p {
  max-width: 43rem;
  margin: 0;
  color: #39464d;
  font-size: clamp(1rem, 1.5vw, 1.2rem);
}

.service-project-link {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  margin-top: 1.5rem;
  padding: .7rem 0;
  border: 0;
  border-radius: 0;
  border-bottom: 1px solid rgba(16, 32, 40, .35);
  background: transparent;
  box-shadow: none;
  color: var(--ink);
  font-family: inherit;
  font-size: .93rem;
  font-weight: inherit;
  line-height: inherit;
  text-decoration: none;
  cursor: pointer;
}

.service-project-link:hover {
  background: transparent;
}

.service-project-link span {
  transition: transform .25s var(--ease);
}

.service-project-link:hover span {
  transform: translateY(3px);
}

.service-project-link:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 5px;
}

.service-panel ul {
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
}

.service-panel li {
  padding: .55rem 0;
  border-bottom: 1px solid var(--line);
}


.approach-grid {
  margin-top: clamp(3.5rem, 7vw, 6rem);
  display: grid;
  grid-template-columns: minmax(17rem, .62fr) minmax(0, 1.25fr);
  gap: 9vw;
}

.approach-intro {
  position: sticky;
  top: 7rem;
  align-self: start;
}

.approach h2 {
  max-width: 10ch;
  font-size: clamp(3.2rem, 6.4vw, 6.7rem);
}

.approach-intro p {
  max-width: 24rem;
  margin: 2rem 0 0;
  color: var(--muted);
}

.principles {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: principle;
}

.principles li {
  min-height: 8.8rem;
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 1.4rem;
  align-items: start;
  padding: 1.7rem 0;
  border-top: 1px solid var(--line);
}

.principles li:last-child {
  border-bottom: 1px solid var(--ink);
}

.principles li:first-child {
  border-top-color: var(--ink);
}

.principles span {
  color: var(--blue);
  font-size: .75rem;
}

.principles p {
  max-width: 30ch;
  margin: 0;
  font-size: clamp(1.25rem, 2.1vw, 2rem);
  line-height: 1.25;
  letter-spacing: -.025em;
}

.evidence {
  background: var(--section-background);
}

.evidence-layout {
  margin-top: clamp(3.5rem, 7vw, 6rem);
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(20rem, .55fr);
  gap: clamp(3rem, 7vw, 7rem);
  align-items: stretch;
}

.evidence-header {
  margin-top: 0;
}

.evidence h2 {
  max-width: 10ch;
  font-size: clamp(3.2rem, 6.4vw, 6.7rem);
}

.evidence-intro {
  max-width: 43rem;
  margin: clamp(2rem, 4vw, 3.25rem) 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.45vw, 1.2rem);
  line-height: 1.6;
}

.stats-grid {
  margin-top: 0;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: repeat(3, 1fr);
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.stat {
  min-height: 0;
  padding: 1rem 0;
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  border-bottom: 1px solid var(--line);
}

.stat + .stat {
  padding-left: 0;
}

.stat:last-child {
  border-bottom: 0;
}

.stat strong {
  font-size: clamp(3rem, 5.4vw, 5.5rem);
  font-weight: 410;
  letter-spacing: -.08em;
  line-height: .85;
}

.stat sup {
  color: var(--blue);
  font-size: .32em;
  font-weight: 600;
  vertical-align: top;
  letter-spacing: 0;
}

.stat > span {
  color: var(--muted);
  font-size: .9rem;
  text-transform: uppercase;
  letter-spacing: .09em;
}

.projects {
  padding-top: 0;
  background: transparent;
}

.projects-head {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(17rem, .52fr);
  gap: 8vw;
  align-items: end;
  padding-top: clamp(1rem, 3vw, 3rem);
}

.projects-head h3 {
  max-width: 14ch;
  margin: 0;
  font-size: clamp(2.35rem, 4.2vw, 4.7rem);
  font-weight: 400;
  letter-spacing: -.055em;
  line-height: .98;
}

.projects-head > p {
  margin: 0;
  color: var(--muted);
}

.project-toolbar {
  min-height: 4.8rem;
  margin-top: clamp(3rem, 6vw, 5.5rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  border-top: 1px solid var(--ink);
}

.project-toolbar .project-count {
  margin-left: auto;
}

.project-filters {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
}

.project-filter {
  min-height: 2.75rem;
  padding: .55rem .85rem;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: .88rem;
  cursor: pointer;
  transition: background .2s ease, color .2s ease;
}

.project-filter:hover {
  color: var(--ink);
}

.project-filter.active {
  background: var(--ink);
  color: var(--white);
}

.project-count {
  flex: 0 0 auto;
  margin: 0;
  color: var(--muted);
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.project-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.project-row {
  position: relative;
  border-bottom: 1px solid var(--line);
}

.project-summary {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr) minmax(16rem, 27rem);
  column-gap: clamp(1.25rem, 3vw, 3.75rem);
  align-items: baseline;
  min-height: 4.3rem;
  padding: 1.05rem .8rem .95rem 0;
  list-style: none;
  cursor: default;
}

.project-summary:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: -2px;
}

.project-index,
.project-type {
  color: var(--muted);
  font-size: .78rem;
}

.project-index {
  color: var(--blue);
  font-variant-numeric: tabular-nums;
}

.project-name {
  padding-right: 1.5rem;
  font-size: clamp(1.05rem, 1.6vw, 1.35rem);
  line-height: 1.25;
  letter-spacing: -.02em;
  transition: transform .3s var(--ease);
}

.project-summary:hover .project-name,
.project-summary:focus-visible .project-name {
  transform: translateX(.45rem);
}

.project-type {
  text-transform: uppercase;
  letter-spacing: .07em;
  justify-self: end;
  text-align: right;
}

.project-meta {
  display: grid;
  align-items: center;
  justify-self: stretch;
  min-width: 0;
  text-align: right;
}

.project-type,
.project-deliverables {
  grid-area: 1 / 1;
  transition: opacity .26s var(--ease), transform .32s var(--ease), visibility .32s;
}

.project-type {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

.project-deliverables {
  visibility: hidden;
  opacity: 0;
  transform: translateY(.55rem);
  color: var(--ink);
  font-size: .88rem;
  line-height: 1.35;
}

.project-summary:hover .project-type,
.project-summary:focus-visible .project-type {
  visibility: hidden;
  opacity: 0;
  transform: translateY(-.55rem);
}

.project-summary:hover .project-deliverables,
.project-summary:focus-visible .project-deliverables {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

.project-deliverables-label {
  display: block;
  color: var(--blue);
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.project-deliverables-items {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  column-gap: .95rem;
  row-gap: .2rem;
}

.deliverable {
  position: relative;
  display: inline-block;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.deliverable:not(.row-start)::before {
  content: "·";
  position: absolute;
  right: calc(100% + .4rem);
  color: var(--blue);
}

.project-row[hidden] {
  display: none;
}

.project-more {
  width: 100%;
  min-height: 4.5rem;
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font: inherit;
  cursor: pointer;
  transition: color .2s ease, padding .25s var(--ease);
}

.project-more:hover {
  padding: 0 .7rem;
  color: var(--blue);
}

.project-more span:last-child {
  transition: transform .3s var(--ease);
}

.project-more[aria-expanded="true"] span:last-child {
  transform: rotate(180deg);
}

/* Experience section refinements */
.evidence-stats {
  padding-bottom: clamp(2.5rem, 5vw, 4.5rem);
}

.projects {
  padding-top: 0;
}

.projects-head {
  grid-template-columns: minmax(0, 1.25fr) minmax(17rem, .52fr);
  align-items: start;
  padding-top: 0;
}

.projects-head > div {
  display: flex;
  align-items: baseline;
}

.projects-head .project-kicker {
  margin: 0;
}

.projects-head > p {
  align-self: start;
  line-height: 1.2;
}

.project-toolbar {
  margin-top: clamp(0.75rem, 1.5vw, 1.375rem);
}

.people-heading {
  margin-top: clamp(3.5rem, 7vw, 6rem);
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(20rem, .62fr);
  gap: clamp(3rem, 8vw, 8rem);
  align-items: end;
}

.people h2 {
  max-width: 11ch;
  font-size: clamp(3.1rem, 5.8vw, 6.15rem);
}

.people-heading p {
  max-width: 34rem;
  margin: 0;
  padding-bottom: .35rem;
  color: var(--muted);
  line-height: 1.65;
}

.people-composition {
  margin-top: clamp(3.5rem, 6vw, 5rem);
  position: relative;
}

.people-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.person {
  --person-gutter: clamp(1.4rem, 2.2vw, 2.2rem);
  min-width: 0;
  padding: 1.5rem calc(var(--person-gutter) / 2) 2rem;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--line);
}

.person:last-child {
  border-right: 0;
}

.person:nth-child(2) {
  border-right: 1px solid var(--line);
}

.person-top {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
  font-size: .74rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.person-top span:first-child {
  color: var(--blue);
}

.person-portrait {
  width: 100%;
  aspect-ratio: 1 / 1;
  height: auto;
  margin: 1.5rem 0 2rem;
  background-color: #e6e9eb;
  background-position: center top;
  background-repeat: no-repeat;
  background-size: cover;
}

.portrait-mark {
  background-image: url("assets/mark-power.webp");
}

.portrait-adrian {
  background-image: url("assets/adrian-power.webp");
}

.portrait-luis {
  background-image: url("assets/luis-power.webp");
}

.person-body {
  margin-top: 0;
}

.person h3 {
  margin: 0;
  font-size: clamp(1.8rem, 2.65vw, 2.75rem);
  font-weight: 430;
  letter-spacing: -.045em;
  line-height: 1;
}

.person-qualifications {
  min-height: 2.8em;
  margin: .8rem 0 1.7rem;
  color: var(--blue);
  font-size: .78rem;
  letter-spacing: .05em;
}

.person-body > p:last-child {
  max-width: 24rem;
  margin: 0;
  color: var(--muted);
  line-height: 1.58;
}

.specialist-network {
  margin-top: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  min-height: clamp(13rem, 19vw, 17rem);
  border-bottom: 1px solid var(--ink);
}

.specialist-callout {
  grid-column: 1 / 3;
  align-self: center;
  max-width: 17ch;
  margin: 0;
  padding: clamp(2.25rem, 4vw, 3.75rem) clamp(2rem, 4vw, 4rem) clamp(2.25rem, 4vw, 3.75rem) 0;
  font-size: clamp(2rem, 3.5vw, 3.65rem);
  font-weight: 420;
  letter-spacing: -.045em;
  line-height: 1.08;
}

.specialist-copy {
  grid-column: 3;
  align-self: stretch;
  max-width: none;
  padding: clamp(2.25rem, 4vw, 3.75rem) 0 clamp(2.25rem, 4vw, 3.75rem) clamp(1.4rem, 2.2vw, 2.2rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.specialist-copy p {
  margin: 0;
  color: var(--muted);
}

.specialist-copy p:first-child {
  margin-bottom: .8rem;
  color: var(--ink);
  font-size: 1.08rem;
  font-weight: 600;
}

.company-credentials {
  margin-top: clamp(3rem, 6vw, 5.5rem);
  border-bottom: 1px solid var(--line);
}

.assurance {
  min-height: 5.5rem;
  padding: 1rem 0;
  display: grid;
  grid-template-columns: 6.5rem minmax(12rem, .72fr) minmax(24rem, 1.18fr);
  align-items: start;
  gap: clamp(1.5rem, 3vw, 3rem);
  border-top: 1px solid var(--line);
}

.assurance-index {
  padding-top: .08rem;
  color: var(--blue);
  font-size: .78rem;
  font-weight: 620;
  letter-spacing: .1em;
  line-height: 1.5;
  text-transform: uppercase;
}

.assurance p {
  align-self: start;
  max-width: 38rem;
  margin: 0;
}

.assurance-items {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: .75rem;
}

.assurance-items span,
.assurance-items a {
  padding: .45rem .75rem;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: .82rem;
}

.assurance-items a {
  display: inline-flex;
  align-items: center;
  gap: .8rem;
  transition: border-color .25s ease, color .25s ease;
}

.assurance-items a span {
  padding: 0;
  border: 0;
  transition: transform .25s var(--ease);
}

.assurance-items a:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.assurance-items a:hover span {
  transform: translate(3px, -2px);
}

.site-footer {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: var(--white);
  padding: clamp(6rem, 11vw, 10rem) var(--pad) 2rem;
}

.footer-lines {
  position: absolute;
  right: 0;
  bottom: 0;
  left: auto;
  top: auto;
  width: 100vw;
  height: 80%;
  max-width: none;
  object-fit: cover;
  object-position: right bottom;
  opacity: .15;
  filter: invert(1);
  mix-blend-mode: screen;
}

.footer-top,
.footer-grid,
.footer-bottom {
  position: relative;
  z-index: 1;
  width: min(100%, 1340px);
  margin-left: auto;
  margin-right: auto;
}

.footer-top .eyebrow {
  color: #9bcce5;
  margin-bottom: 2rem;
}

.site-footer h2 {
  max-width: 10ch;
  font-size: clamp(3.2rem, 7.3vw, 7.7rem);
}

.footer-email {
  width: 100%;
  margin-top: clamp(3rem, 6vw, 5rem);
  padding: 1.5rem 0;
  display: flex;
  justify-content: space-between;
  border-top: 1px solid rgba(255,255,255,.35);
  border-bottom: 1px solid rgba(255,255,255,.35);
  font-size: clamp(1.1rem, 2.2vw, 2rem);
}

.footer-grid {
  margin-top: 4rem;
  display: grid;
  grid-template-columns: .75fr 1.25fr .8fr .65fr;
  gap: 3rem;
}

.footer-grid h3 {
  margin: 0 0 1rem;
  color: #7f9099;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.footer-grid p,
.footer-grid a {
  margin: 0;
  color: #d2dadd;
  font-size: .95rem;
}

.footer-grid a:hover {
  color: var(--white);
}

.back-to-top {
  justify-self: end;
  align-self: start;
  display: flex;
  gap: .8rem;
}

.footer-bottom {
  margin-top: 6rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,.14);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
}

.footer-bottom img {
  width: 10rem;
}

.footer-bottom p {
  margin: 0;
  color: #7f9099;
  font-size: .75rem;
}

.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}

.js .reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .menu-toggle {
    display: flex;
    align-items: center;
    cursor: pointer;
  }

  .menu-icon {
    position: relative;
    width: 1.45rem;
    height: 1rem;
    border-top: 1px solid currentColor;
    border-bottom: 1px solid currentColor;
    transition: transform .25s ease;
  }

  .menu-toggle[aria-expanded="true"] .menu-icon {
    border-bottom: 0;
    transform: rotate(45deg) translateY(4px);
  }

  .menu-toggle[aria-expanded="true"] .menu-icon::after {
    content: "";
    position: absolute;
    inset: -1px 0 auto;
    border-top: 1px solid currentColor;
    transform: rotate(90deg);
  }

  .site-nav {
    position: fixed;
    inset: 0;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: .4rem;
    padding: 7rem var(--pad) 3rem;
    background: var(--ink);
    opacity: 0;
    visibility: hidden;
    transform: none;
    transition:
      opacity .5s var(--ease),
      visibility 0s linear .5s;
  }

  .site-nav.open {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition:
      opacity .5s var(--ease),
      visibility 0s linear 0s;
  }

  .site-nav a {
    font-size: clamp(2.3rem, 7vw, 4rem);
    letter-spacing: -.05em;
    line-height: 1.15;
  }

  .site-nav .nav-contact {
    margin-top: 1.2rem;
    padding: .7rem 1rem;
    font-size: 1rem;
    letter-spacing: 0;
  }

  .statement-content,
  .section-heading-row,
  .evidence-header,
  .projects-head,
  .people-heading {
    grid-template-columns: 1fr;
  }

  .hero-main {
    grid-template-columns: minmax(0, 1.55fr) minmax(17rem, .75fr);
    gap: 2.5rem;
  }

  .hero-lines {
    left: 0;
    width: 100vw;
  }

  .statement-content {
    align-items: start;
  }

  .statement {
    padding-top: 6rem;
    padding-bottom: 9rem;
  }

  .statement-body {
    max-width: 40rem;
  }

  .projects-head > p,
  .people-heading p {
    max-width: 40rem;
  }

  .project-summary {
    grid-template-columns: 2.75rem minmax(0, 1fr) minmax(12rem, 18rem);
  }

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

  .person {
    --person-gutter: clamp(1rem, 2vw, 1.5rem);
    padding-right: calc(var(--person-gutter) / 2);
    padding-left: calc(var(--person-gutter) / 2);
  }

  .person-portrait {
    width: 100%;
    aspect-ratio: 1 / 1;
    height: auto;
  }

  .specialist-network {
    min-height: 0;
  }

  .assurance {
    grid-template-columns: 4rem minmax(0, 1fr);
  }

  .assurance-items {
    grid-column: 2;
    justify-content: flex-start;
  }

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

  .back-to-top {
    justify-self: start;
  }
}

@media (max-width: 720px) {
  html {
    scroll-padding-top: 4.4rem;
  }

  #expertise,
  #approach,
  #evidence,
  #people {
    scroll-margin-top: -2rem;
  }

  .site-header {
    height: 5.5rem;
  }

  .site-header.scrolled {
    height: 4.4rem;
  }

  .header-inner {
    padding: 0 var(--pad);
  }

  .brand {
    width: 10.8rem;
  }

  .site-header.scrolled .brand {
    width: 8rem;
  }

  .hero-shell {
    padding-top: 6.5rem;
  }

  .hero-meta {
    grid-template-columns: 1fr auto;
  }

  .hero-main {
    grid-template-columns: 1fr;
    align-content: center;
    gap: 2.5rem;
    padding: 2.25rem 0 5rem;
  }

  .hero-aside {
    max-width: 34rem;
    padding: 0;
    border-left: 0;
  }

  .hero-note {
    display: none;
  }

  .section-shell {
    padding-top: 5.5rem;
    padding-bottom: 5.5rem;
  }

  .statement {
    padding-top: 4.5rem;
    padding-bottom: 7.5rem;
  }

  .hero h1 {
    font-size: clamp(3.25rem, 15vw, 5.2rem);
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: .8rem;
  }

  .section-label {
    grid-template-columns: 2rem auto;
  }

  .statement h2,
  .section-heading-row h2,
  .approach h2,
  .evidence h2,
  .people h2,
  .site-footer h2 {
    font-size: clamp(2.8rem, 13vw, 4.5rem);
  }

  .service summary {
    grid-template-columns: 2rem 1fr 1.5rem;
    min-height: 5.5rem;
  }

  .service-panel {
    grid-template-columns: 1fr;
    padding: 0 0 2.5rem 3rem;
  }

  .approach-grid {
    grid-template-columns: 1fr;
  }

  .approach-intro {
    position: static;
  }

  .evidence-layout {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    margin-top: 2.75rem;
  }

  .stat,
  .stat + .stat {
    min-height: 8.75rem;
    padding: 1.1rem 0;
    gap: 1rem;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .stat:last-child {
    border-bottom: 0;
  }

  .projects {
    padding-top: 0;
  }

  .projects-head h3 {
    font-size: clamp(2.35rem, 11vw, 3.6rem);
  }

  .project-toolbar {
    align-items: flex-start;
    flex-direction: column;
    padding: 1rem 0;
  }

  .project-filters {
    width: 100%;
    gap: .25rem;
  }

  .project-filter {
    min-height: 2.65rem;
    padding: .5rem .65rem;
    font-size: .8rem;
  }

  .project-summary {
    grid-template-columns: 2rem minmax(0, 1fr);
    gap: .35rem .8rem;
    padding-right: 0;
  }

  .project-name {
    padding-right: 0;
    font-size: 1.03rem;
  }

  .project-meta {
    grid-column: 2;
    text-align: left;
    justify-self: stretch;
  }

  .project-deliverables-items {
    justify-content: flex-start;
  }

  .project-type {
    justify-self: start;
    text-align: left;
    font-size: .7rem;
  }

  .project-summary:hover .project-name {
    transform: none;
  }

  .people-grid {
    grid-template-columns: 1fr;
  }

  .people-composition {
    margin-top: 3rem;
  }

  .person,
  .person:first-child,
  .person:last-child {
    grid-column: auto;
    min-height: 0;
    padding: 1.5rem 0 2rem;
    display: flex;
    gap: 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .person:last-child {
    border-top: 0;
  }

  .person:last-child .person-body > p:last-child {
    max-width: 24rem;
  }

  .person-portrait {
    width: 100%;
    aspect-ratio: 1 / 1;
    height: auto;
    margin: 1.5rem 0 2rem;
  }

  .specialist-network {
    grid-template-columns: 1fr;
  }

  .specialist-callout {
    grid-column: 1;
    max-width: 16ch;
    padding: 2.5rem 0;
  }

  .specialist-copy {
    grid-column: 1;
    padding: 2rem 0 2.5rem;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .company-credentials {
    margin-top: 3.5rem;
  }

  .assurance {
    min-height: 0;
    padding: .9rem 0;
    grid-template-columns: 1fr;
    gap: .85rem;
  }

  .assurance-items {
    grid-column: 1;
    justify-content: flex-start;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-email {
    gap: 1rem;
    overflow-wrap: anywhere;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-height: 650px) and (min-width: 721px) {
  .hero-shell {
    padding-top: 6.5rem;
  }

  .hero-main {
    padding: 1.5rem 0 3rem;
  }

  .hero h1 {
    font-size: clamp(3.3rem, 8.5vh, 5.2rem);
  }

  .hero-intro {
    font-size: 1rem;
  }

  .hero-actions {
    margin-top: 1.4rem;
  }
}

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

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

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}

/* Contextual project filtering; retain the site's existing palette and type. */
.project-controls {
  display: block;
  position: sticky;
  /* Tuck the top border 2px beneath the fixed navigation bar. */
  top: calc(3.95rem - 2px);
  z-index: 5;
  margin-top: clamp(0.75rem, 1.5vw, 1.375rem);
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

/* Sticky controls must be fully visible, even before the reveal observer fires. */
.js .project-controls .reveal {
  opacity: 1;
  transform: none;
}

.project-tag-controls {
  display: contents;
}

.project-tag-controls[hidden] {
  display: none;
}

.project-tags-toggle {
  display: none;
}

.project-toolbar.count-hidden .project-count {
  position: absolute;
  visibility: hidden;
  pointer-events: none;
  margin-left: 0;
  max-width: none;
  white-space: nowrap;
}

.project-toolbar {
  flex-wrap: wrap;
  margin-top: 0;
  padding: 1rem 0;
  gap: .75rem 1.5rem;
}

.project-toolbar .project-count {
  max-width: 100%;
  white-space: normal;
  letter-spacing: .04em;
}

.project-subfilters {
  padding: .25rem 0 1.35rem;
}

.project-tags,
.project-row-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
}

.project-tag-filter {
  min-height: 2.75rem;
  padding: .45rem .8rem;
  border: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: .78rem;
  cursor: pointer;
  transition: color .2s ease, border-color .2s ease, background .2s ease;
}

.project-tag-filter:hover {
  border-color: var(--blue);
  color: var(--ink);
}

.project-tag-filter.active {
  border-color: var(--blue);
  color: var(--ink);
  background: var(--blue-light);
}

.project-tag-filter:focus-visible,
.project-tags-toggle:focus-visible,
.project-filter:focus-visible,
.project-more:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

/* Project descriptions can be filled in later. */
.project-description {
  display: block;
  overflow-wrap: anywhere;
}

.project-subfilters[hidden],
.project-empty[hidden],
.project-more[hidden] {
  display: none;
}

.project-empty {
  padding: 1rem 0;
  color: var(--muted);
}

@media (max-width: 980px) {
  .project-toolbar .project-count {
    display: none;
  }

  .project-controls {
    margin-top: clamp(3rem, 6vw, 5.5rem);
  }

  .project-controls .project-toolbar {
    min-height: 0;
    margin-top: 0;
    flex-direction: row;
    align-items: center;
    gap: .5rem;
    padding-block: .65rem;
  }

  .js .project-controls .reveal {
    opacity: 1;
    transform: none;
  }

  .project-tag-controls {
    display: block;
  }

  .project-controls .project-subfilters {
    min-width: 0;
    padding: 0 0 .65rem;
  }

  .project-controls .project-tags {
    flex-wrap: nowrap;
    min-width: 0;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
  }

  .project-controls .project-tag-filter {
    flex: 0 0 auto;
    white-space: nowrap;
  }
}

/* Disable the project row background layer in every interaction state. */
.project-summary::before,
.project-summary:hover::before,
.project-summary:focus-visible::before {
  content: none !important;
  display: none !important;
  background: none !important;
  transition: none !important;
}

/* Give the hero title more breathing room on medium desktop and tablet screens. */
@media (min-width: 721px) and (max-width: 1440px) {
  .hero-copy {
    padding-inline: clamp(.75rem, 1.5vw, 1.5rem);
  }
}

@media (max-width: 720px) {
  .hero-location {
    display: none;
  }

  .principles li {
    min-height: 0;
    padding-block: 1rem;
  }

  .stat,
  .stat + .stat {
    min-height: 0;
    padding-block: 1rem;
  }

  .project-controls {
    top: calc(4.4rem - 2px);
  }

  .project-tag-controls {
    display: flex;
    align-items: center;
    gap: .5rem;
    min-width: 0;
    padding-bottom: .65rem;
  }

  .project-tags-toggle:not([hidden]) {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 2.75rem;
    width: 2.75rem;
    height: 2.75rem;
    padding: .5rem;
    border: 1px solid var(--line);
    border-radius: 0;
    background: var(--white);
    color: var(--ink);
    font: inherit;
    font-size: .8rem;
    cursor: pointer;
  }

  .project-tags-toggle[aria-expanded="true"],
  .project-tags-toggle.has-active-filter {
    border-color: var(--blue);
    background: var(--blue-light);
  }

  .project-controls:not(.tags-open) .project-subfilters {
    display: none;
  }

  .project-controls .project-subfilters {
    flex: 1 1 0;
    padding: 0;
  }

  .project-controls .project-tags {
    scrollbar-width: none;
  }

  .project-controls .project-tags::-webkit-scrollbar {
    display: none;
  }

  .project-tags-badge {
    position: absolute;
    top: -.2rem;
    right: -.2rem;
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    background: var(--blue);
    color: var(--white);
    font-size: .65rem;
    line-height: 1rem;
    text-align: center;
  }
}

/* The sticky controls already supply this boundary; avoid a doubled rule. */
.projects .project-list {
  border-top: 0;
}
