:root {
  --rail: 188px;
  --black: #101311;
  --black-2: #161a18;
  --black-3: #1d211f;
  --white: #f6f7f5;
  --muted: #a9afab;
  --line: rgba(246, 247, 245, 0.18);
  --line-strong: rgba(246, 247, 245, 0.34);
  --green: #008f68;
  --green-deep: #00785a;
  --max: 1440px;
  --pad: clamp(34px, 5vw, 80px);
  --sans: "Manrope", "Helvetica Neue", Arial, sans-serif;
  --mono: "Space Mono", Consolas, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 0;
}

body {
  margin: 0;
  color: var(--white);
  background: var(--black);
  font-family: var(--sans);
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

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

button {
  font: inherit;
}

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

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

svg {
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-linecap: square;
  stroke-linejoin: miter;
  stroke-width: 1.5;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 11px 15px;
  color: var(--black);
  background: var(--white);
  transform: translateY(-160%);
  transition: transform 180ms ease;
}

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

.side-rail {
  position: fixed;
  z-index: 30;
  inset: 0 auto 0 0;
  display: flex;
  flex-direction: column;
  width: var(--rail);
  padding: 76px 34px 48px;
  background: rgba(16, 19, 17, 0.96);
  border-right: 1px solid rgba(246, 247, 245, 0.14);
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  flex-direction: column;
  width: fit-content;
  text-transform: uppercase;
}

.brand > span {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1;
}

.brand small {
  margin-top: 7px;
  color: var(--green);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.56em;
  line-height: 1;
}

.rail-nav-wrap {
  margin: auto 0;
}

.rail-marker {
  display: block;
  width: 28px;
  height: 2px;
  margin-bottom: 34px;
  background: var(--green);
  transition: transform 500ms var(--ease);
}

.rail-nav {
  display: flex;
  flex-direction: column;
}

.rail-nav a {
  position: relative;
  padding: 21px 0 24px;
  border-bottom: 1px solid var(--line);
  color: #d2d5d3;
  font-size: 14px;
  transition:
    color 220ms ease,
    padding-left 350ms var(--ease);
}

.rail-nav a:first-child {
  border-top: 0;
}

.rail-nav a::before {
  position: absolute;
  top: 50%;
  left: 0;
  width: 0;
  height: 1px;
  content: "";
  background: var(--green);
  transition: width 350ms var(--ease);
}

.rail-nav a:hover,
.rail-nav a.is-active {
  padding-left: 18px;
  color: var(--white);
}

.rail-nav a:hover::before,
.rail-nav a.is-active::before {
  width: 10px;
}

.rail-signature {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
}

.rail-signature i {
  display: block;
  width: 28px;
  height: 2px;
  margin-bottom: 15px;
  background: var(--green);
}

.mobile-header {
  display: none;
}

main {
  margin-left: var(--rail);
}

.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  background: var(--black);
}

.hero-media {
  position: absolute;
  inset: -4% 0;
  overflow: hidden;
}

.hero-media img {
  width: 100%;
  height: 108%;
  object-fit: cover;
  object-position: center center;
  transform: translate3d(0, var(--hero-shift, 0), 0) scale(1.035);
  will-change: transform;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100svh;
  width: min(830px, 70vw);
  padding: 100px var(--pad) 70px;
}

.hero h1 {
  margin: 0;
  font-size: clamp(58px, 7vw, 108px);
  font-weight: 400;
  letter-spacing: -0.06em;
  line-height: 1.01;
}

.hero h1 span {
  display: block;
  width: fit-content;
  overflow: hidden;
}

.hero h1 span {
  opacity: 0;
  transform: translateY(80%);
  animation: hero-line 900ms var(--ease) forwards;
}

.hero h1 span:nth-child(2) {
  animation-delay: 100ms;
}

.hero h1 span:nth-child(3) {
  animation-delay: 200ms;
}

@keyframes hero-line {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-content > p {
  max-width: 440px;
  margin: 34px 0 0;
  color: #e1e3e1;
  font-size: clamp(17px, 1.45vw, 21px);
  line-height: 1.6;
  opacity: 0;
  animation: hero-fade 800ms 360ms var(--ease) forwards;
}

@keyframes hero-fade {
  to {
    opacity: 1;
  }
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 64px;
  padding: 0 26px;
  border: 0;
  border-radius: 0;
  font-size: 15px;
  font-weight: 500;
  transition:
    color 250ms ease,
    background 250ms ease,
    transform 250ms var(--ease);
}

.button svg {
  width: 22px;
  transition: transform 300ms var(--ease);
}

.button:hover svg {
  transform: translateX(5px);
}

.button:active {
  transform: translateY(2px);
}

.button-primary {
  width: min(280px, 100%);
  margin-top: 36px;
  color: var(--white);
  background: var(--green);
  opacity: 0;
  animation: hero-fade 800ms 480ms var(--ease) forwards;
}

.button-primary:hover {
  background: var(--green-deep);
}

.scroll-cue {
  position: absolute;
  z-index: 2;
  right: 34px;
  bottom: 28px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(246, 247, 245, 0.72);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
}

.scroll-cue i {
  width: 1px;
  height: 45px;
  background: var(--green);
  transform-origin: top;
  animation: scroll-pulse 1.8s ease-in-out infinite;
}

@keyframes scroll-pulse {
  0%,
  100% {
    transform: scaleY(0.35);
  }
  50% {
    transform: scaleY(1);
  }
}

.section-dark {
  min-height: 100svh;
  padding: clamp(100px, 10vw, 150px) var(--pad);
  background: var(--black);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.6fr);
  align-items: end;
  gap: 8vw;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(60px, 7.6vw, 116px);
  font-weight: 400;
  letter-spacing: -0.06em;
  line-height: 0.95;
}

.section-head p {
  max-width: 440px;
  margin: 0 0 8px;
  color: #d1d5d2;
  font-size: clamp(17px, 1.45vw, 21px);
  line-height: 1.6;
}

.detail-crop {
  height: 150px;
  margin-top: 70px;
  overflow: hidden;
}

.detail-crop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 42% 58%;
  filter: saturate(0.42) contrast(1.03);
  transform: scale(1.02);
  transition: transform 1.2s var(--ease);
}

.detail-crop:hover img {
  transform: scale(1.06);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 72px;
  margin-top: 48px;
}

.service-column {
  min-width: 0;
}

.service {
  position: relative;
  border-top: 1px solid var(--line-strong);
  transition: border-color 250ms ease;
}

.service::before {
  position: absolute;
  top: -1px;
  left: 0;
  width: 32px;
  height: 2px;
  content: "";
  background: var(--green);
  transition: width 500ms var(--ease);
}

.service:hover,
.service.is-open {
  border-color: var(--green);
}

.service:hover::before,
.service.is-open::before {
  width: 100%;
}

.service-trigger {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  width: 100%;
  min-height: 176px;
  padding: 28px 0 30px;
  color: var(--white);
  text-align: left;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.service-trigger > span {
  display: block;
  transition: transform 400ms var(--ease);
}

.service-trigger:hover > span,
.service-trigger:focus-visible > span {
  transform: translateX(12px);
}

.service-trigger strong {
  display: block;
  font-size: clamp(21px, 2.05vw, 31px);
  font-weight: 400;
  letter-spacing: -0.035em;
}

.service-trigger small {
  display: block;
  max-width: 400px;
  margin-top: 14px;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 300;
  line-height: 1.55;
}

.service-trigger > svg {
  flex: 0 0 auto;
  width: 29px;
  margin: 5px 3px 0 24px;
  color: var(--green);
  transition: transform 450ms var(--ease);
}

.service-trigger:hover > svg {
  transform: translateX(7px);
}

.service-trigger[aria-expanded="true"] > svg {
  transform: rotate(90deg);
}

.service-detail {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition:
    grid-template-rows 480ms var(--ease),
    opacity 320ms ease;
}

.service-detail > div {
  overflow: hidden;
}

.service-detail p {
  max-width: 520px;
  margin: 0 50px 32px 0;
  padding-left: 18px;
  color: #d3d7d4;
  border-left: 2px solid var(--green);
  font-size: 15px;
  line-height: 1.68;
}

.service.is-open .service-detail {
  grid-template-rows: 1fr;
  opacity: 1;
}

.service.is-open .service-trigger {
  min-height: 148px;
  padding-bottom: 18px;
}

.process {
  position: relative;
  display: grid;
  grid-template-columns: minmax(440px, 0.9fr) minmax(500px, 1.1fr);
  min-height: 970px;
  overflow: hidden;
  color: var(--white);
  background: #777975;
}

.process-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.025);
  transition: transform 1.4s var(--ease);
}

.process:hover .process-bg {
  transform: scale(1);
}

.process-intro {
  position: relative;
  z-index: 2;
  align-self: start;
  padding: 86px 20px 80px var(--pad);
}

.process-intro h2 {
  margin: 0;
  font-size: clamp(58px, 5.6vw, 86px);
  font-weight: 400;
  letter-spacing: -0.06em;
  line-height: 0.98;
}

.process-intro p {
  max-width: 340px;
  margin: 28px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 16px;
  line-height: 1.58;
}

.process-statements {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 205px var(--pad) 0 56px;
}

.process-statement {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 155px;
  padding: 20px 0;
}

.process-statement h3 {
  max-width: 520px;
  margin: 0;
  font-size: clamp(22px, 2.2vw, 32px);
  font-weight: 400;
  letter-spacing: -0.03em;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.72);
}

.process-statement p {
  max-width: 430px;
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 15px;
  line-height: 1.55;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.78);
}

.contact {
  min-height: 760px;
  padding: clamp(84px, 9vw, 130px) var(--pad) 36px;
  color: var(--white);
  background: var(--green-deep);
}

.contact-main h2 {
  margin: 0;
  font-size: clamp(72px, 9.5vw, 144px);
  font-weight: 400;
  letter-spacing: -0.065em;
  line-height: 0.91;
}

.contact-main > p {
  max-width: 440px;
  margin: 34px 0 0;
  font-size: clamp(17px, 1.45vw, 21px);
  line-height: 1.55;
}

.contact-actions {
  display: flex;
  align-items: stretch;
  gap: 18px;
  margin-top: 36px;
}

.button-light {
  min-width: 310px;
  color: var(--black);
  background: var(--white);
}

.button-light:hover {
  color: var(--white);
  background: var(--black);
}

.email-button {
  display: inline-flex;
  align-items: center;
  min-height: 64px;
  padding: 0 28px;
  color: var(--white);
  background: var(--black);
  font-size: 14px;
  transition:
    color 250ms ease,
    background 250ms ease;
}

.email-button:hover {
  color: var(--black);
  background: var(--white);
}

.contact footer {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 30px;
  margin-top: clamp(100px, 15vh, 170px);
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.38);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.contact footer b {
  font-weight: 400;
}

.reveal {
  opacity: 0;
  clip-path: inset(0 0 100% 0);
  transform: translateY(28px);
  transition:
    opacity 750ms var(--ease),
    clip-path 850ms var(--ease),
    transform 850ms var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  clip-path: inset(0 0 0 0);
  transform: translateY(0);
}

.service-grid .reveal:nth-child(2n) {
  transition-delay: 80ms;
}

@media (max-width: 1120px) {
  :root {
    --rail: 164px;
  }

  .side-rail {
    padding-inline: 26px;
  }

  .hero-content {
    width: min(760px, 74vw);
  }

  .hero h1 {
    font-size: clamp(58px, 7.4vw, 88px);
  }

  .service-grid {
    column-gap: 44px;
  }

}

@media (max-width: 780px) {
  :root {
    --pad: 22px;
  }

  html {
    scroll-padding-top: 72px;
  }

  .side-rail {
    display: none;
  }

  .mobile-header {
    position: fixed;
    z-index: 40;
    inset: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 74px;
    padding: 0 var(--pad);
    background: rgba(16, 19, 17, 0.95);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(12px);
  }

  .mobile-header .brand > span {
    font-size: 16px;
  }

  .mobile-header .brand small {
    font-size: 7px;
  }

  .menu-button {
    position: relative;
    z-index: 2;
    display: grid;
    align-content: center;
    gap: 8px;
    width: 46px;
    height: 46px;
    padding: 0 11px;
    color: var(--white);
    background: transparent;
    border: 1px solid var(--line-strong);
  }

  .menu-button span {
    width: 100%;
    height: 1px;
    background: currentColor;
    transition: transform 300ms var(--ease);
  }

  .menu-button[aria-expanded="true"] span:first-child {
    transform: translateY(4.5px) rotate(45deg);
  }

  .menu-button[aria-expanded="true"] span:last-child {
    transform: translateY(-4.5px) rotate(-45deg);
  }

  .mobile-nav {
    position: fixed;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0;
    padding: 86px var(--pad) 30px;
    background: var(--black);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-14px);
    transition:
      opacity 280ms ease,
      visibility 280ms ease,
      transform 420ms var(--ease);
  }

  .mobile-nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .mobile-nav a {
    padding: 22px 0;
    border-bottom: 1px solid var(--line);
    font-size: 36px;
    letter-spacing: -0.04em;
  }

  main {
    margin-left: 0;
  }

  .hero {
    display: flex;
    flex-direction: column;
    min-height: auto;
    padding-top: 74px;
  }

  .hero-media {
    position: relative;
    inset: auto;
    order: 1;
    height: 54svh;
  }

  .hero-media img {
    height: 100%;
    object-position: 64% center;
    transform: scale(1.03);
  }

  .hero-content {
    order: 2;
    min-height: auto;
    width: 100%;
    padding: 52px var(--pad) 70px;
    background: var(--black);
  }

  .hero h1 {
    font-size: clamp(50px, 14vw, 72px);
  }

  .hero-content > p {
    margin-top: 28px;
    font-size: 17px;
  }

  .button-primary {
    width: 100%;
    margin-top: 30px;
  }

  .scroll-cue {
    display: none;
  }

  .section-dark {
    padding-top: 86px;
    padding-bottom: 90px;
  }

  .section-head {
    display: block;
  }

  .section-head h2 {
    font-size: clamp(58px, 16vw, 82px);
  }

  .section-head p {
    margin-top: 28px;
    font-size: 17px;
  }

  .detail-crop {
    height: 120px;
    margin-top: 48px;
  }

  .service-grid {
    grid-template-columns: 1fr;
    margin-top: 34px;
  }

  .service-column + .service-column {
    margin-top: 0;
  }

  .service {
    min-height: 0;
  }

  .service-trigger {
    min-height: 154px;
  }

  .service-grid .reveal:nth-child(2n) {
    transition-delay: 0ms;
  }

  .process {
    display: block;
    min-height: 1080px;
  }

  .process-bg {
    object-position: 61% center;
  }

  .process-intro {
    padding: 80px var(--pad) 12px;
  }

  .process-intro h2 {
    font-size: clamp(58px, 15vw, 78px);
  }

  .process-statements {
    gap: 0;
    padding: 35px var(--pad) 60px;
  }

  .process-statement {
    min-height: 155px;
    margin: 0;
    padding: 20px 24px;
  }

  .process-statement p {
    color: rgba(255, 255, 255, 0.82);
  }

  .contact {
    min-height: auto;
    padding-top: 82px;
  }

  .contact-main h2 {
    font-size: clamp(64px, 18vw, 92px);
  }

  .contact-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button-light,
  .email-button {
    width: 100%;
    min-width: 0;
  }

  .email-button {
    justify-content: center;
    padding-inline: 16px;
    font-size: 13px;
  }

  .contact footer {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 96px;
  }
}

@media (max-width: 420px) {
  .hero h1 {
    font-size: 49px;
  }

  .service h3 {
    font-size: 21px;
  }

  .service > svg {
    width: 24px;
  }

  .contact-main h2 {
    font-size: 59px;
  }
}

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

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

  .hero-media img {
    transform: none;
  }

  .reveal,
  .hero h1 span,
  .hero-content > p,
  .button-primary {
    opacity: 1;
    clip-path: none;
    transform: none;
  }
}
