@font-face {
  font-family: Inter;
  src: url("assets/fonts/Inter.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "Space Grotesk";
  src: url("assets/fonts/SpaceGrotesk.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}

@font-face {
  font-family: "JetBrains Mono";
  src: url("assets/fonts/JetBrainsMono.woff2") format("woff2");
  font-weight: 100 800;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #091512;
  --archive-edge: #dce8da;
  --surface: #f7faf4;
  --panel: #fbfcf8;
  --sea-glass: #34796d;
  --mint: #a8f0cb;
  --mint-light: #d4f7e4;
  --paper: #f2f1e8;
  --muted: #3e554b;
  --edge: rgb(52 121 109 / .26);
  --header-height: 4.875rem;
  --gutter: clamp(1.25rem, 5vw, 5rem);
  --frame: 78rem;
  font-family: Inter, Arial, sans-serif;
  color: var(--ink);
  background: var(--surface);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; overflow-x: clip; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; }

a:focus-visible {
  outline: 2px solid var(--sea-glass);
  outline-offset: 5px;
}

::selection {
  color: var(--ink);
  background: var(--mint);
}

.frame {
  width: min(100% - 2 * var(--gutter), var(--frame));
  margin-inline: auto;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 8;
  background: rgb(247 250 244 / .91);
  backdrop-filter: blur(9px);
}

.header-inner,
.site-nav,
.brand {
  display: flex;
  align-items: center;
}

.header-inner {
  min-height: var(--header-height);
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--edge);
}

.brand {
  width: fit-content;
  gap: .55rem;
  font: 700 1.45rem/1 "Space Grotesk", Inter, sans-serif;
  letter-spacing: -.05em;
  text-decoration: none;
}

.brand img { display: block; }
.brand-accent { color: var(--sea-glass); }
.site-nav { gap: clamp(.85rem, 3vw, 2.5rem); }

.site-nav a {
  display: grid;
  min-height: 2.75rem;
  place-items: center;
  color: var(--ink);
  font-size: .9375rem;
  text-decoration: none;
}

.site-nav a:hover { color: var(--sea-glass); }
.journey { isolation: isolate; }

.hero {
  position: relative;
  min-height: max(42rem, 100svh);
  display: grid;
  align-items: center;
  background: var(--surface);
  --hero-depth: .43;
  --wall-scroll: calc(var(--hero-travel, 0px) * var(--hero-depth));
  --wall-x: calc(var(--pointer-x, 0) * -10px);
  --wall-y: calc(var(--wall-scroll) - var(--pointer-y, 0) * 7px);
  --threshold-depth: clamp(25rem, 47vw, 45rem);
}

.hero-art,
.pricing-art {
  position: absolute;
  z-index: 0;
  inset: 0;
  overflow: clip;
  pointer-events: none;
}

.hero-backdrop,
.pricing-art img {
  position: absolute;
  inset: -10% 0 auto;
  width: 100%;
  height: 118%;
  object-fit: cover;
}

.hero-backdrop {
  inset-inline: -20px;
  width: calc(100% + 40px);
  object-position: 54% 60%;
  transform: translate3d(var(--wall-x), var(--wall-y), 0);
}

.hero-pointer-light {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 34% 39% at center, rgb(135 231 191 / .29), rgb(52 121 109 / .10) 43%, transparent 76%);
  mix-blend-mode: screen;
  opacity: 0;
  transform: translate3d(calc(var(--pointer-x, 0) * 50%), calc(var(--pointer-y, 0) * 50%), 0);
  transition: opacity 240ms ease-out;
}

.hero[data-pointer-active] .hero-pointer-light { opacity: 1; }

.hero-inner {
  position: relative;
  padding-block: calc(var(--header-height) + 2rem) clamp(6.5rem, 15svh, 10.25rem);
}

.hero-copy { max-width: 46rem; }

.hero-wall {
  position: relative;
  z-index: 1;
  width: fit-content;
  max-width: 100%;
  color: #294538;
  mix-blend-mode: multiply;
  translate: var(--wall-x) var(--wall-y);
  transform: perspective(1100px) rotateY(8deg) skewY(-1deg);
  transform-origin: left center;
}

.hero-wall-title {
  font-size: clamp(4.35rem, 8.6vw, 9.1rem);
  font-weight: 650;
  line-height: .87;
  letter-spacing: -.071em;
  text-wrap: nowrap;
  text-shadow: 0 -1px rgb(9 21 18 / .24), 0 1px rgb(255 255 255 / .46);
}

.hero-wall-title span { color: var(--sea-glass); }

.hero-wall p {
  max-width: min(31rem, 48vw);
  margin-block-start: 1.7rem;
  color: var(--muted);
  font-size: clamp(1.06rem, 1.55vw, 1.38rem);
  line-height: 1.45;
  letter-spacing: -.02em;
}

.button {
  display: inline-flex;
  min-height: 3.125rem;
  align-items: center;
  justify-content: center;
  padding: .65rem 1.2rem;
  border: 1px solid transparent;
  border-radius: .2rem;
  font-size: .9375rem;
  font-weight: 640;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  transition: background-color 200ms ease, border-color 200ms ease, color 200ms ease;
}

.button-primary {
  background: var(--mint);
  border-color: rgb(52 121 109 / .36);
  color: var(--ink);
  box-shadow: inset 0 1px rgb(255 255 255 / .3);
}

.button-primary:hover { background: var(--mint-light); }
.button-outline { border-color: var(--edge); color: var(--ink); }
.button-outline:hover { background: var(--mint-light); border-color: var(--sea-glass); }

.hero-actions {
  position: absolute;
  z-index: 3;
  inset: 0;
  overflow: clip;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-inline: var(--gutter);
  padding-block-end: clamp(1.5rem, 6.3svh, 4.75rem);
  opacity: calc(var(--copy-opacity, 1) * var(--copy-opacity, 1));
  pointer-events: none;
}

.hero-actions:has(.hero-cta:focus-visible) {
  z-index: 5;
  opacity: 1;
}

.hero-cta {
  position: relative;
  overflow: hidden;
  gap: .9rem;
  min-height: 3.4rem;
  padding: .48rem .52rem .48rem 1.3rem;
  border-color: #5e927d;
  border-radius: 999px;
  background: linear-gradient(135deg, #1d4437, #0d2820);
  color: var(--surface);
  box-shadow: 0 8px 20px rgb(13 40 32 / .23), inset 0 1px rgb(212 247 228 / .25);
  transform: translate3d(0, calc(var(--hero-travel, 0px) * .43), 0);
  pointer-events: auto;
}

.hero-cta:focus-visible { transform: none; }

.hero-cta::before {
  position: absolute;
  inset: 0;
  background: linear-gradient(108deg, transparent 26%, rgb(212 247 228 / .22) 50%, transparent 74%);
  transform: translateX(-105%);
  transition: transform 620ms cubic-bezier(.2, .8, .2, 1);
  pointer-events: none;
  content: "";
}

.hero-cta span { position: relative; }

.hero-cta-arrow {
  display: grid;
  width: 2.25rem;
  height: 2.25rem;
  place-items: center;
  flex: none;
  border-radius: 50%;
  background: var(--mint);
  color: var(--ink);
}

.hero-cta-arrow::before {
  width: .47rem;
  height: .47rem;
  border-inline-end: 2px solid currentColor;
  border-block-end: 2px solid currentColor;
  transform: translateY(-.1rem) rotate(45deg);
  transition: transform 260ms ease;
  content: "";
}

.hero-cta:is(:hover, :focus-visible)::before { transform: translateX(105%); }
.hero-cta:is(:hover, :focus-visible) .hero-cta-arrow::before { transform: translateY(.05rem) rotate(45deg); }

.scene-threshold {
  position: absolute;
  z-index: 4;
  inset-inline: 0;
  top: calc(100% - var(--threshold-depth) * .78);
  height: var(--threshold-depth);
  overflow: clip;
  mask-image: linear-gradient(#000 90%, transparent);
  transform: translate3d(0, calc(var(--hero-travel, 0px) * -.15), 0);
  pointer-events: none;
}

.scene-threshold img {
  position: absolute;
  left: 50%;
  display: block;
  width: max(calc(100% + 48px), 44rem);
  height: 100%;
  transform: translate3d(calc(-50% + var(--pointer-x, 0) * 18px), calc(var(--pointer-y, 0) * 8px), 0);
}

.pricing {
  position: relative;
  scroll-margin-top: calc(var(--header-height) - 3.75rem);
  background: var(--surface);
  padding-block: clamp(9.5rem, 17svh, 13rem) clamp(6rem, 13svh, 10rem);
}

.pricing-art img {
  inset-block-start: -8%;
  height: 108%;
  object-position: 57% 47%;
  mix-blend-mode: multiply;
  filter: grayscale(1) sepia(.84) hue-rotate(110deg) saturate(1.45) brightness(1.16);
  opacity: .14;
  transform: translate3d(0, var(--vault-drift, 0px), 0) scale(1.035);
}

.pricing-art::after {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, var(--archive-edge), transparent 7.25rem),
    linear-gradient(180deg, transparent 55%, var(--surface) 96%);
  content: "";
}

.pricing-content {
  position: relative;
  z-index: 1;
}

.pricing-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-block-end: clamp(1.75rem, 4vw, 3.25rem);
  transform: translate3d(0, var(--pricing-lift, 0px), 0);
}

.pricing h2,
.project h2,
.contacts h2 {
  font-size: clamp(3.2rem, 7vw, 7rem);
  font-weight: 560;
  line-height: .93;
  letter-spacing: -.063em;
}

.pricing-heading p {
  color: var(--muted);
  line-height: 1.55;
}

.plan-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--edge);
  border-radius: .35rem;
  background: rgb(251 252 248 / .94);
}

.plan {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: clamp(1.25rem, 3vw, 2.45rem);
}

.plan + .plan { border-inline-start: 1px solid var(--edge); }

.plan-emphasis {
  position: relative;
  background: linear-gradient(155deg, #e1f4e7, var(--panel) 90%);
}

.plan-emphasis::before {
  position: absolute;
  inset: -1px 0 auto;
  height: 2px;
  background: linear-gradient(90deg, var(--mint), var(--sea-glass));
  content: "";
}

.plan h3 {
  margin-block-end: 1.25rem;
  font-size: clamp(1.3rem, 2.1vw, 1.65rem);
  font-weight: 545;
  letter-spacing: -.04em;
}

.plan-price {
  display: flex;
  gap: .15rem .65rem;
  align-items: baseline;
  flex-wrap: wrap;
}

.plan-price strong {
  font: 430 clamp(1.85rem, 3.25vw, 3rem)/1.15 "JetBrains Mono", monospace;
  letter-spacing: -.09em;
  white-space: nowrap;
}

.plan-emphasis .plan-price strong { color: var(--sea-glass); }

.plan-price span,
.plan-year {
  color: var(--muted);
  font-size: .9375rem;
}

.plan-year {
  margin-block-start: .55rem;
  line-height: 1.55;
}

.plan-features {
  display: grid;
  gap: .6rem;
  margin: 1.45rem 0 1.7rem;
  border-top: 1px solid var(--edge);
  padding: 1.35rem 0 0;
  color: var(--ink);
  list-style: none;
  line-height: 1.5;
}

.plan-features li {
  position: relative;
  padding-inline-start: .95rem;
}

.plan-features li::before {
  position: absolute;
  top: .7em;
  left: 0;
  width: .34rem;
  height: 1px;
  background: var(--sea-glass);
  content: "";
}

.plan .button { margin-top: auto; }

.project {
  background: var(--paper);
  padding-block: clamp(4.5rem, 9vw, 8rem);
  scroll-margin-top: var(--header-height);
}

.project-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1.5rem;
  margin-block-end: clamp(2.5rem, 6vw, 5rem);
  border-bottom: 1px solid rgb(9 21 18 / .18);
  padding-block-end: clamp(1.6rem, 4vw, 3rem);
}

.project-heading p,
.project-story p {
  color: var(--muted);
  font-size: clamp(1rem, 1.45vw, 1.19rem);
  line-height: 1.55;
}

.project-heading p { max-width: 19rem; }

.project-story {
  display: grid;
  grid-template-areas: "visual copy";
  grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 6rem);
}

.project-story + .project-story { margin-block-start: clamp(3.75rem, 9vw, 8rem); }

.project-story-reverse {
  grid-template-areas: "copy visual";
  grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr);
}

.project-story-copy { grid-area: copy; }

.project-story h3 {
  margin-block-end: 1.2rem;
  font-size: clamp(2rem, 4.1vw, 4rem);
  font-weight: 565;
  line-height: 1;
  letter-spacing: -.06em;
  text-wrap: balance;
}

.project-story p { max-width: 28rem; }

.project-visual {
  position: relative;
  grid-area: visual;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: radial-gradient(ellipse at 68% 28%, #e8f1e7, #e1e7de);
  --scan-top: var(--reveal-top, 100%);
  --scan-bottom: var(--reveal-bottom, 100%);
}

.project-visual[data-reveal="right"] {
  --scan-top: calc(100% - var(--reveal-top, 100%));
  --scan-bottom: calc(100% - var(--reveal-bottom, 100%));
}

.project-media,
.project-visual::before,
.project-visual::after {
  position: absolute;
  inset: 0;
}

.project-visual[data-reveal="left"] .project-media {
  clip-path: polygon(0 0, var(--scan-top) 0, var(--scan-bottom) 100%, 0 100%);
}

.project-visual[data-reveal="right"] .project-media {
  clip-path: polygon(var(--scan-top) 0, 100% 0, 100% 100%, var(--scan-bottom) 100%);
}

.project-visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(var(--reveal-scale, 1));
}

.project-visual::before,
.project-visual::after {
  z-index: 1;
  clip-path: polygon(
    calc(var(--scan-top) - var(--beam-width)) 0,
    calc(var(--scan-top) + var(--beam-width)) 0,
    calc(var(--scan-bottom) + var(--beam-width)) 100%,
    calc(var(--scan-bottom) - var(--beam-width)) 100%
  );
  pointer-events: none;
  content: "";
}

.project-visual::before {
  --beam-width: 1.65%;
  background: linear-gradient(175deg, transparent, var(--mint) 48%, transparent);
  opacity: calc(var(--reveal-beam, 0) * .68);
}

.project-visual::after {
  --beam-width: 1px;
  background: linear-gradient(180deg, #edfff5, #53b999 52%, #edfff5);
  opacity: var(--reveal-beam, 0);
}

.contacts {
  --contact-rule: rgb(168 240 203 / .27);
  background:
    radial-gradient(ellipse at 86% 79%, rgb(52 121 109 / .48), transparent 60%),
    linear-gradient(128deg, #102720, #12362c);
  color: var(--surface);
  padding-block: clamp(4rem, 8.5vw, 7rem) 1.75rem;
  scroll-margin-top: var(--header-height);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .74fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
}

.contacts h2 { font-size: clamp(2.8rem, 5.4vw, 5.45rem); }

.contact-grid p {
  margin-block-start: 1.15rem;
  color: #bcd4c8;
  line-height: 1.55;
}

.contact-channel {
  min-width: 0;
  font-style: normal;
}

.contact-channel a {
  display: grid;
  gap: .4rem;
  padding-block: .95rem 1rem;
  border-bottom: 1px solid var(--contact-rule);
  text-decoration: none;
}

.contact-channel a:first-child { border-top: 1px solid var(--contact-rule); }
.contacts a:focus-visible { outline-color: var(--mint); }
.contacts .brand-accent { color: var(--mint); }

.contact-channel span {
  color: #c4d9ce;
  font-size: .875rem;
}

.contact-channel strong {
  width: fit-content;
  color: var(--mint-light);
  font-size: clamp(1.05rem, 2.15vw, 1.85rem);
  font-weight: 480;
  letter-spacing: -.04em;
  overflow-wrap: anywhere;
}

.contact-channel a:hover strong { text-decoration: underline; }

.footer-end {
  margin-block-start: clamp(2rem, 4.4vw, 3.75rem);
  border-top: 1px solid var(--contact-rule);
  padding-block-start: 1.15rem;
}

@media (max-width: 900px) {
  .hero-backdrop { object-position: 44% 58%; }
  .hero { --threshold-depth: clamp(25rem, 65vw, 35rem); }
  .pricing h2, .project h2 { font-size: clamp(3.15rem, 8.5vw, 5rem); }
  .plan { padding: clamp(1rem, 2.3vw, 1.75rem); }
}

@media (max-width: 670px) {
  :root { --header-height: 4rem; }
  .brand { gap: .35rem; font-size: 1.2rem; }
  .brand img { width: 30px; height: 30px; }
  .site-nav a { font-size: .875rem; }

  .hero {
    min-height: max(38rem, 100svh);
    align-items: start;
    --hero-depth: .34;
    --threshold-depth: clamp(23rem, 112vw, 31rem);
  }

  .hero-backdrop {
    height: 110%;
    object-position: 62% 56%;
  }

  .hero-inner { padding-block: calc(var(--header-height) + clamp(3rem, 10svh, 5rem)) 7rem; }
  .hero-wall { transform: skewY(-.65deg); }
  .hero-wall-title { font-size: clamp(3.65rem, 13.8vw, 5.9rem); }
  .hero-wall p { max-width: 20rem; margin-block-start: 1.25rem; }
  .scene-threshold img { left: 47%; width: max(calc(100% + 80px), 39rem); }
  .pricing { padding-block-start: clamp(7.5rem, 16svh, 10rem); }
  .pricing-art img { height: min(75%, 57rem); object-position: 67% 47%; }

  .pricing-heading { display: grid; gap: .6rem; }
  .plan-grid { grid-template-columns: minmax(0, 1fr); }
  .plan { padding: 1.4rem; }
  .plan + .plan { border-inline-start: 0; border-top: 1px solid var(--edge); }
  .plan-price strong { font-size: 2.35rem; }
  .project-heading { display: grid; gap: .75rem; }

  .project-story,
  .project-story-reverse {
    grid-template-areas: "copy" "visual";
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
  }

  .project-story h3 { margin-block-end: .85rem; }
  .contact-grid { grid-template-columns: minmax(0, 1fr); gap: 1.75rem; }
  .contacts h2 { font-size: clamp(2.1rem, 9.5vw, 3.8rem); }
}

@media (max-width: 400px) {
  .header-inner { gap: .55rem; }
  .site-nav { gap: .65rem; }
  .site-nav a { font-size: .8125rem; }
  .brand { font-size: 1.08rem; }
}

@media (max-width: 359px) {
  :root { --gutter: 1rem; }
  .site-nav { gap: .5rem; }
  .site-nav a { font-size: .75rem; }
  .brand img { width: 26px; height: 26px; }
  .hero-wall-title { font-size: clamp(2.7rem, 15.5vw, 3.6rem); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button { transition: none; }
  .hero-actions { opacity: 1; }
  .hero-cta::before { display: none; }
  .hero-cta:is(:hover, :focus-visible) .hero-cta-arrow::before { transform: translateY(-.1rem) rotate(45deg); }
  .hero-cta-arrow::before { transition: none; }
  .hero-pointer-light { display: none; }
  .scene-threshold img { transform: translateX(-50%); }
  .hero-wall { translate: none; }

  .hero-backdrop,
  .hero-cta,
  .scene-threshold,
  .pricing-art img,
  .pricing-heading { transform: none; }

  .project-visual[data-reveal] .project-media { clip-path: none; }
  .project-visual img { transform: none; }
  .project-visual::before,
  .project-visual::after { display: none; }
}
