@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("../fonts/manrope-latin.woff2") format("woff2");
}

:root {
  color-scheme: light;
  --ink: #1f1d28;
  --pine: #305854;
  --mint: #55ad84;
  --coral: #ff7964;
  --rose: #d26d72;
  --paper: #f6f5f1;
  --surface: #eeede7;
  --muted: #716f75;
  --line: rgba(31, 29, 40, 0.14);
  --hero-text: var(--ink);
  --sans: "Manrope", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-family: var(--sans);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
}

a {
  color: inherit;
  text-underline-offset: 0.2em;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 4px;
}

button {
  color: inherit;
  font: inherit;
}

.skip-link {
  position: fixed;
  z-index: 20;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.75rem 1rem;
  transform: translateY(-160%);
  background: var(--paper);
  color: var(--ink);
}

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

.wrap {
  width: calc(100% - 3rem);
  max-width: 1280px;
  margin-inline: auto;
}

.site-header {
  position: absolute;
  z-index: 5;
  inset: 0 0 auto;
  background: var(--paper);
  color: var(--ink);
}

.header-inner {
  display: flex;
  min-height: 92px;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  color: inherit;
  text-decoration: none;
}

.brand-logo {
  display: block;
  width: clamp(165px, 20vw, 230px);
  height: auto;
}

.header-actions,
.main-nav {
  display: flex;
  align-items: center;
}

.header-actions {
  gap: clamp(1rem, 3vw, 2.5rem);
}

.main-nav {
  gap: clamp(1rem, 2.5vw, 2rem);
}

.main-nav a {
  color: var(--ink);
  font-size: 0.95rem;
  text-decoration: none;
}

.main-nav a:hover {
  color: var(--pine);
}

.hero {
  position: relative;
  display: flex;
  min-height: min(790px, 100svh);
  align-items: center;
  overflow: hidden;
  background: var(--paper);
  color: var(--hero-text);
}

.section-divider {
  height: 2px;
  margin-block: 0;
  border: 0;
  background: var(--pine);
}

.hero-grid {
  position: relative;
  display: grid;
  width: 100%;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(2rem, 6vw, 6rem);
  padding-inline: clamp(1.25rem, 2vw, 2rem);
  padding-block: 8rem 5rem;
}

.hero-copy {
  position: relative;
  z-index: 1;
  padding-block: 2rem;
}

.hero .eyebrow {
  color: var(--pine);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--mint);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 26px;
  height: 1px;
  background: currentColor;
  content: "";
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

.hero h1 {
  max-width: 720px;
  margin-block: 1.5rem 1.25rem;
  font-family: var(--sans);
  font-size: clamp(3.2rem, 7.4vw, 7rem);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 0.99;
}

.hero h1 em {
  color: var(--coral);
  font-weight: 500;
}

.hero-intro {
  max-width: 440px;
  margin-bottom: 2rem;
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.12rem);
  line-height: 1.8;
}

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  padding: 0.85rem 1.2rem;
  border: 1px solid transparent;
  border-radius: 2px;
  background: var(--coral);
  color: #1f1d28;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 180ms ease, transform 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
  background: #ff907e;
}

.button svg {
  width: 17px;
  height: 17px;
}

.portrait-wrap {
  position: relative;
  justify-self: end;
  width: min(100%, 470px);
}

.portrait {
  position: relative;
  min-height: clamp(360px, 53vw, 590px);
  overflow: hidden;
  background: var(--pine);
}

.portrait-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 36%;
}

.portrait::before {
  position: absolute;
  inset: 9% 9% 9% 9%;
  border: 1px solid rgba(246, 245, 241, 0.25);
  content: "";
}

.portrait-accent {
  position: absolute;
  top: 8%;
  right: -14px;
  width: 68px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--coral);
}

.section {
  padding-block: clamp(5rem, 10vw, 9rem);
}

.section-heading {
  max-width: 690px;
  margin-bottom: 3rem;
}

.section-heading h2 {
  margin-block: 1rem 1.2rem;
  font-family: var(--sans);
  font-size: clamp(2.5rem, 5vw, 4.7rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.section-heading p {
  max-width: 570px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.8;
}

.about-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(2rem, 10vw, 9rem);
}

.about-aside {
  align-self: start;
  padding-top: 0.3rem;
}

.about-aside .eyebrow {
  color: var(--rose);
}

.about-aside h2 {
  margin-block: 1.2rem;
  font-family: var(--sans);
  font-size: clamp(2.6rem, 4.8vw, 4.5rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.06;
}

.about-aside h2 em {
  color: var(--pine);
  font-weight: 400;
}

.about-text p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.9;
}

.about-text p:first-child {
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 500;
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  line-height: 1.55;
}

.expertise-list {
  display: grid;
  margin-top: 1rem;
  border-top: 1px solid var(--line);
}

.expertise-heading {
  margin: 2.2rem 0 0;
  font-size: 1.15rem;
  font-weight: 600;
}

.expertise-item {
  border-bottom: 1px solid var(--line);
  font-size: 0.88rem;
}

.expertise-item summary {
  display: flex;
  align-items: baseline;
  gap: 1.2rem;
  padding-block: 1rem;
  cursor: pointer;
  list-style: none;
}

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

.expertise-item summary::after {
  margin-left: auto;
  color: var(--pine);
  content: "+";
  font-size: 1.15rem;
  line-height: 1;
}

.expertise-item[open] summary::after {
  content: "−";
}

.expertise-item summary span:first-child {
  color: var(--mint);
  font-size: 0.72rem;
}

.expertise-item p {
  margin: 0 2rem 1rem 2.45rem;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.75;
}

.references {
  overflow: hidden;
  background: #e9efeb;
  color: var(--ink);
}

.references .section-heading p {
  color: var(--muted);
}

.references .eyebrow {
  color: var(--pine);
}

.references .section-heading h2 em {
  color: var(--pine);
  font-weight: 400;
}

.references-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
}

.references-header .section-heading {
  margin-bottom: 2.5rem;
}

.carousel-controls {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 2.6rem;
}

.carousel-control {
  display: grid;
  width: 42px;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid rgba(31, 29, 40, 0.35);
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.carousel-control:hover {
  background: rgba(48, 88, 84, 0.1);
}

.carousel-control svg {
  width: 17px;
  height: 17px;
}

.marquee {
  overflow-x: auto;
  margin-inline: calc((100% - 100vw) / 2);
  scrollbar-width: none;
  scroll-behavior: auto;
}

.marquee::-webkit-scrollbar {
  display: none;
}

.marquee-track {
  display: flex;
  width: max-content;
}

.quote-group {
  display: flex;
  gap: 1rem;
  padding-right: 1rem;
}

.quote-card {
  position: relative;
  display: flex;
  width: clamp(450px, 55.5vw, 675px);
  min-height: 255px;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(1.5rem, 3vw, 2.4rem);
  background: rgba(255, 255, 255, 0.58);
}

.quote-mark {
  color: var(--pine);
  font-family: var(--sans);
  font-size: 3rem;
  line-height: 0.8;
}

.quote-card blockquote {
  margin: 1rem 0 2rem;
  font-family: var(--sans);
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  font-weight: 400;
  line-height: 1.48;
}

.quote-credit {
  display: grid;
  gap: 0.3rem;
  font-size: 0.78rem;
}

.quote-credit span {
  color: var(--muted);
}

.logo-marquee {
  overflow: hidden;
  margin-top: clamp(2.5rem, 5vw, 4rem);
  margin-inline: calc((100% - 100vw) / 2);
  padding-block: 1.5rem;
  border-top: 1px solid rgba(48, 88, 84, 0.18);
  border-bottom: 1px solid rgba(48, 88, 84, 0.18);
}

.logo-track {
  display: flex;
  width: max-content;
  animation: logo-scroll 32s linear infinite;
}

@media (hover: hover) and (pointer: fine) {
  .logo-marquee:hover .logo-track,
  .logo-marquee:focus-within .logo-track {
    animation-play-state: paused;
  }
}

.logo-group {
  display: flex;
  align-items: center;
  gap: clamp(3rem, 8vw, 7rem);
  padding-inline: clamp(2rem, 5vw, 4rem);
}

.logo-group img {
  display: block;
  width: auto;
  max-width: clamp(130px, 17vw, 210px);
  height: 64px;
  object-fit: contain;
}

.logo-group img.logo-large {
  height: 128px;
}

.logo-group img.logo-xlarge {
  height: 156px;
}

@keyframes logo-scroll {
  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .logo-marquee {
    overflow-x: auto;
  }

  .logo-track {
    animation: none;
  }

  .logo-group[aria-hidden="true"] {
    display: none;
  }
}

.contact {
  position: relative;
  overflow: hidden;
  background: var(--paper);
}

.contact::after {
  position: absolute;
  right: -125px;
  bottom: -240px;
  width: 480px;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 50%;
  box-shadow: 0 0 0 48px var(--paper), 0 0 0 49px var(--line), 0 0 0 98px var(--paper), 0 0 0 99px var(--line);
  content: "";
  pointer-events: none;
}

.contact-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 9vw, 8rem);
}

.contact-copy .eyebrow {
  color: var(--rose);
}

.contact-copy h2 {
  max-width: 660px;
  margin-block: 1.2rem 1.5rem;
  font-family: var(--sans);
  font-size: clamp(2.5rem, 5vw, 4.7rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 0.98;
}

.contact-copy p {
  max-width: 450px;
  color: var(--muted);
  line-height: 1.8;
}

.contact-details {
  align-self: end;
  padding-bottom: 0.4rem;
}

.contact-details a {
  display: inline-block;
  margin-bottom: 1.2rem;
  font-family: var(--sans);
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.35em;
}

.contact-details p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.8;
}

.contact-details p a {
  font-size: 0.95rem;
}

.contact-details .button {
  display: flex;
  width: fit-content;
  margin-bottom: 2rem;
  font-family: var(--sans);
  font-size: 0.95rem;
  text-decoration: none;
}

.site-footer {
  padding-top: 2rem;
}

.footer-main {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding-bottom: 1.8rem;
}

.footer-main::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  width: calc((100% - 2rem) / 2);
  border-bottom: 1px solid rgba(246, 245, 241, 0.18);
  content: "";
}

.footer-note {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.2rem;
  color: rgba(246, 245, 241, 0.55);
  font-size: 0.7rem;
}

.legal {
  padding-block: 3.5rem;
  background: #19181f;
  color: #f6f5f1;
}

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

.legal details {
  border-top: 1px solid rgba(246, 245, 241, 0.25);
}

.legal summary {
  padding-block: 1.1rem;
  color: #f6f5f1;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 600;
  list-style-position: inside;
}

.legal details p {
  color: rgba(246, 245, 241, 0.65);
  font-size: 0.74rem;
  line-height: 1.8;
}

.legal details p:last-child {
  margin-bottom: 1.2rem;
}

.legal a {
  color: #9cdbb7;
}

@media (max-width: 760px) {
  .wrap {
    width: calc(100% - 2rem);
    max-width: 600px;
  }

  .header-inner {
    min-height: 76px;
  }

  .header-actions {
    gap: 0.75rem;
  }

  .main-nav {
    gap: 0.85rem;
  }

  .main-nav a {
    font-size: 0.82rem;
  }

  .contact-details p a {
    font-size: 0.82rem;
  }

  .brand-logo {
    width: clamp(105px, 30vw, 150px);
  }

  .hero {
    min-height: auto;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding-inline: 0;
    padding-block: 8rem 3.5rem;
  }

  .hero-copy {
    padding-block: 1rem 0;
  }

  .hero h1 {
    max-width: 560px;
    font-size: clamp(3.5rem, 13vw, 6.4rem);
  }

  .hero-intro {
    max-width: 480px;
  }

  .portrait-wrap {
    width: min(76%, 390px);
    justify-self: center;
    margin: 0;
  }

  .portrait {
    min-height: clamp(330px, 95vw, 500px);
  }

  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about-aside h2 {
    max-width: 500px;
  }

  .references-header {
    align-items: start;
  }

  .carousel-controls {
    margin-top: 1.7rem;
  }

  .quote-card {
    width: min(117vw, 555px);
    min-height: 245px;
  }

  .marquee {
    margin-inline: -1rem;
  }

  .contact-details {
    padding-top: 0.5rem;
  }

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

  .footer-main::after {
    width: 100%;
  }
}

@media (max-width: 440px) {
  .header-inner {
    gap: 0.75rem;
  }

  .main-nav {
    gap: clamp(0.35rem, 2vw, 0.7rem);
  }

  .main-nav a {
    font-size: clamp(0.68rem, 3vw, 0.78rem);
  }

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

  .references-header {
    display: block;
  }

  .carousel-controls {
    margin-top: -1rem;
    margin-bottom: 1.7rem;
  }

  .footer-main,
  .footer-note {
    align-items: flex-start;
    flex-direction: column;
  }
}

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