@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600&family=Manrope:wght@400;500;600&display=swap");

:root {
  --ink: #151a18;
  --paper: #f2f0e9;
  --paper-deep: #e5e1d7;
  --green: #1675c5;
  --green-dark: #081a2a;
  --white: #fbfaf5;
  --line-dark: rgba(21, 26, 24, 0.18);
  --line-light: rgba(255, 255, 255, 0.18);
  --pad: clamp(1.25rem, 4.5vw, 5rem);
  --radius: 1.2rem;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "DM Sans", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

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

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

.skip-link {
  position: fixed;
  z-index: 1000;
  left: 1rem;
  top: -5rem;
  background: var(--green);
  color: var(--ink);
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 1rem;
}

.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;
}

.site-header {
  position: fixed;
  z-index: 50;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 6.5rem;
  padding: 0.7rem var(--pad);
  background: #fff;
  color: var(--ink);
  border-bottom: 1px solid rgba(21, 26, 24, 0.09);
  transition: background 0.35s ease, padding 0.35s ease, color 0.35s ease;
}

.site-header.scrolled {
  min-height: 5.3rem;
  padding-top: 0.45rem;
  padding-bottom: 0.45rem;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(18px);
  box-shadow: 0 0.5rem 2rem rgba(7, 20, 31, 0.08);
}

.brand {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}

.brand-panel {
  width: 7.5rem;
  height: 5rem;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 0;
  background: #fff;
}

.brand-logo {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  filter: contrast(3);
}

.navigation {
  display: flex;
  align-items: center;
  gap: clamp(1.2rem, 2.5vw, 2.8rem);
  font-size: 0.88rem;
}

.navigation > a:not(.nav-cta) {
  position: relative;
  opacity: 0.82;
}

.navigation > a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -0.3rem;
  left: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.25s ease;
}

.navigation > a:hover::after,
.navigation > a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-cta {
  padding: 0.7rem 1.1rem;
  border: 1px solid rgba(21, 26, 24, 0.48);
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-cta:hover,
.nav-cta:focus-visible {
  background: var(--ink);
  color: var(--white);
}

.menu-toggle {
  display: none;
}

.section-dark {
  background: var(--ink);
  color: var(--white);
}

.section-light {
  background: var(--paper);
  color: var(--ink);
}

.section-green {
  background: #dceafa;
  color: var(--green-dark);
}

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding: 9rem var(--pad) 3rem;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 5rem 5rem;
  mask-image: linear-gradient(to bottom, black, transparent 85%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
}

.eyebrow {
  margin: 0 0 2rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.19em;
  text-transform: uppercase;
}

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

.hero-title {
  margin: 0;
  max-width: 12ch;
  font-family: "Manrope", sans-serif;
  font-size: clamp(3.4rem, 8.2vw, 7.8rem);
  font-weight: 500;
  letter-spacing: -0.075em;
  line-height: 0.86;
}

.title-line {
  display: block;
}

.title-accent {
  color: var(--green);
}

.title-accent em {
  font-family: Georgia, serif;
  font-weight: 400;
}

.hero-bottom {
  display: grid;
  grid-template-columns: minmax(15rem, 30rem) auto;
  justify-content: space-between;
  align-items: end;
  gap: 2rem;
  margin-top: 3.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-light);
}

.hero-bottom p {
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: clamp(1rem, 1.35vw, 1.2rem);
}

.round-link {
  width: 4.2rem;
  height: 4.2rem;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-light);
  border-radius: 50%;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.round-link:hover,
.round-link:focus-visible {
  background: var(--green);
  color: var(--ink);
  transform: translateY(0.3rem);
}

.round-link svg {
  width: 1.25rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

.hero-orbit {
  position: absolute;
  z-index: 1;
  top: 11%;
  right: -7vw;
  width: clamp(18rem, 37vw, 38rem);
  aspect-ratio: 1;
  opacity: 0.78;
}

.orbit {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(168, 220, 120, 0.33);
  border-radius: 50%;
}

.orbit-one {
  transform: rotateX(67deg) rotateZ(24deg);
}

.orbit-two {
  transform: rotateY(67deg) rotateZ(-24deg);
}

.orbit-core {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 5rem 2rem rgba(168, 220, 120, 0.15);
  transform: translate(-50%, -50%);
}

.expertises {
  padding: clamp(6rem, 11vw, 10rem) var(--pad);
}

.section-heading {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: 2rem;
  align-items: start;
  margin-bottom: 6rem;
}

.section-heading h2,
.approach h2,
.about h2 {
  margin: 0;
  font-family: "Manrope", sans-serif;
  font-size: clamp(3rem, 6.2vw, 6.5rem);
  font-weight: 500;
  letter-spacing: -0.065em;
  line-height: 0.95;
}

.section-intro {
  margin: 0;
  color: rgba(21, 26, 24, 0.63);
  font-size: 1rem;
}

.services-list {
  border-top: 1px solid var(--line-dark);
}

.service-card {
  display: grid;
  grid-template-columns: 1fr 3fr auto;
  gap: 2rem;
  padding: 2.8rem 0;
  border-bottom: 1px solid var(--line-dark);
  transition: padding 0.3s ease;
}

.service-card:hover {
  padding-right: 1rem;
  padding-left: 1rem;
}

.service-number {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.15em;
}

.service-card h3 {
  margin: 0 0 0.7rem;
  font-family: "Manrope", sans-serif;
  font-size: clamp(2.2rem, 4vw, 4.2rem);
  font-weight: 500;
  letter-spacing: -0.06em;
}

.service-card p {
  max-width: 35rem;
  margin: 0;
  color: rgba(21, 26, 24, 0.63);
  font-size: 1.05rem;
}

.service-card ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.35rem 0 0;
  padding: 0;
  list-style: none;
}

.service-card li {
  padding: 0.45rem 0.75rem;
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  font-size: 0.76rem;
}

.service-symbol {
  font-family: "Manrope", sans-serif;
  font-size: 2rem;
  transition: transform 0.3s ease;
}

.service-card:hover .service-symbol {
  transform: rotate(45deg);
}

.approach {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 9vw, 10rem);
  padding: clamp(6rem, 10vw, 10rem) var(--pad);
}

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

.principles {
  counter-reset: principle;
}

.principle {
  min-height: 21rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 2rem 0;
  border-top: 1px solid rgba(23, 33, 23, 0.34);
}

.principle:last-child {
  border-bottom: 1px solid rgba(23, 33, 23, 0.34);
}

.principle > span {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
}

.principle h3 {
  max-width: 12ch;
  margin: auto 0 1.2rem;
  font-family: "Manrope", sans-serif;
  font-size: clamp(2rem, 3vw, 3.1rem);
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 1;
}

.principle p {
  max-width: 34rem;
  margin: 0;
  color: rgba(23, 33, 23, 0.68);
}

.about {
  padding: clamp(6rem, 11vw, 11rem) var(--pad);
}

.about-copy {
  display: grid;
  grid-template-columns: 1fr 3fr;
  gap: 2rem;
  margin-bottom: 7rem;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 0.75fr;
  gap: clamp(2rem, 5vw, 6rem);
  align-items: center;
}

.about-manifesto .lead {
  margin: 0 0 2rem;
  font-family: "Manrope", sans-serif;
  font-size: clamp(1.45rem, 2.5vw, 2.2rem);
  letter-spacing: -0.04em;
  line-height: 1.2;
}

.about-manifesto > p:last-child {
  max-width: 33rem;
  color: rgba(21, 26, 24, 0.61);
}

.value-shape svg {
  display: block;
  width: 100%;
  overflow: visible;
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.2;
  animation: float 7s ease-in-out infinite;
}

.values {
  border-top: 1px solid var(--line-dark);
}

.values div {
  display: flex;
  align-items: baseline;
  gap: 1.2rem;
  padding: 1.3rem 0;
  border-bottom: 1px solid var(--line-dark);
}

.values span {
  color: rgba(21, 26, 24, 0.45);
  font-size: 0.68rem;
}

.values strong {
  font-family: "Manrope", sans-serif;
  font-size: 1.15rem;
  font-weight: 500;
}

.contact {
  padding: clamp(6rem, 11vw, 10rem) var(--pad) 4rem;
}

.contact-top {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--line-light);
}

.contact-top span {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.85rem;
}

.contact-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4rem 0 4.5rem;
  border-bottom: 1px solid var(--line-light);
  color: var(--green);
}

.contact-link span {
  font-family: "Manrope", sans-serif;
  font-size: clamp(4rem, 12vw, 11rem);
  font-weight: 500;
  letter-spacing: -0.075em;
  line-height: 0.9;
}

.contact-link svg {
  width: clamp(3rem, 7vw, 7rem);
  fill: none;
  stroke: currentColor;
  stroke-width: 1;
  transition: transform 0.3s ease;
}

.contact-link:hover svg,
.contact-link:focus-visible svg {
  transform: translate(0.7rem, -0.7rem);
}

.contact-meta {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  padding-top: 2rem;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.88rem;
}

.contact-meta p {
  margin: 0;
}

.contact-meta a {
  color: var(--white);
  border-bottom: 1px solid rgba(255, 255, 255, 0.45);
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 2rem;
  padding: 2rem var(--pad);
  background: #0f1312;
  color: rgba(255, 255, 255, 0.52);
  font-size: 0.78rem;
}

.footer-brand {
  color: var(--white);
}

.site-footer p {
  margin: 0;
  text-align: center;
}

.site-footer > a:last-child {
  justify-self: end;
}

.legal-page {
  min-height: 100vh;
  padding: 9rem var(--pad) 5rem;
}

.legal-page article {
  max-width: 52rem;
}

.legal-page h1 {
  font-family: "Manrope", sans-serif;
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 500;
  letter-spacing: -0.06em;
}

.legal-page h2 {
  margin-top: 3rem;
  font-family: "Manrope", sans-serif;
  font-weight: 500;
}

.placeholder-note {
  padding: 1rem 1.2rem;
  border-left: 3px solid var(--green);
  background: var(--paper-deep);
}

.js .reveal {
  opacity: 0;
  transform: translateY(1.5rem);
  transition: opacity 0.75s ease, transform 0.75s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.js .reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.hero-title .reveal:nth-child(2) {
  transition-delay: 0.08s;
}

.hero-title .reveal:nth-child(3) {
  transition-delay: 0.16s;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-0.8rem) rotate(2deg);
  }
}

@media (max-width: 860px) {
  .menu-toggle {
    position: relative;
    z-index: 52;
    width: 2.75rem;
    height: 2.75rem;
    display: grid;
    align-content: center;
    gap: 0.42rem;
    padding: 0.7rem;
    border: 1px solid rgba(21, 26, 24, 0.3);
    border-radius: 50%;
    background: transparent;
    color: inherit;
    cursor: pointer;
  }

  .menu-toggle span:not(.sr-only) {
    display: block;
    height: 1px;
    background: currentColor;
    transition: transform 0.25s ease;
  }

  .menu-toggle[aria-expanded="true"] span:nth-of-type(2) {
    transform: translateY(0.23rem) rotate(45deg);
  }

  .menu-toggle[aria-expanded="true"] span:nth-of-type(3) {
    transform: translateY(-0.23rem) rotate(-45deg);
  }

  .navigation {
    position: fixed;
    z-index: 51;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 1.2rem;
    padding: var(--pad);
    background: var(--ink);
    color: var(--white);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-1rem);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
  }

  .navigation.open {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
  }

  .navigation a {
    font-family: "Manrope", sans-serif;
    font-size: clamp(2rem, 10vw, 4rem);
    letter-spacing: -0.05em;
  }

  .navigation .nav-cta {
    margin-top: 1rem;
    padding: 0.4rem 1.1rem;
  }

  .menu-open .menu-toggle {
    border-color: rgba(255, 255, 255, 0.4);
    color: var(--white);
  }

  .hero-orbit {
    top: 17%;
    right: -20vw;
    opacity: 0.48;
  }

  .section-heading,
  .about-copy {
    grid-template-columns: 1fr;
  }

  .section-heading {
    margin-bottom: 4rem;
  }

  .section-heading .eyebrow,
  .about-copy .eyebrow {
    margin-bottom: 0;
  }

  .section-intro {
    max-width: 34rem;
  }

  .service-card {
    grid-template-columns: 3rem 1fr auto;
  }

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

  .approach-sticky {
    position: static;
  }

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

  .about-manifesto {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  .brand-panel {
    width: 6.2rem;
    height: 4.15rem;
  }

  .hero {
    padding-bottom: 1.5rem;
  }

  .hero-title {
    font-size: clamp(2.8rem, 12.5vw, 4.1rem);
  }

  .hero-bottom {
    grid-template-columns: 1fr auto;
    margin-top: 2.5rem;
  }

  .round-link {
    width: 3.5rem;
    height: 3.5rem;
  }

  .service-card {
    grid-template-columns: 2rem 1fr;
    gap: 1rem;
    padding: 2rem 0;
  }

  .service-symbol {
    display: none;
  }

  .service-card h3 {
    font-size: 2.5rem;
  }

  .principle {
    min-height: 18rem;
  }

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

  .value-shape {
    max-width: 18rem;
    margin: 1rem auto;
  }

  .contact-top,
  .contact-meta {
    flex-direction: column;
  }

  .contact-top {
    gap: 0;
    padding-bottom: 1.4rem;
  }

  .contact-link {
    padding: 3rem 0;
  }

  .contact-link span {
    font-size: clamp(3.4rem, 18vw, 5rem);
  }

  .site-footer {
    grid-template-columns: 1fr;
  }

  .site-footer p {
    text-align: left;
  }

  .site-footer > a:last-child {
    justify-self: start;
  }
}

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

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

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