:root {
  color-scheme: light;
  --ink: #17332e;
  --muted: #5f716b;
  --line: #d9e2da;
  --paper: #f7f7f2;
  --footer-background: #153d33;
  --section: #fff;
  --surface: #fff;
  --soft: #f5f8f3;
  --soft-hover: #f0f7f0;
  --accent: #5b9d70;
  --accent-text: #41755a;
  --accent-halo: #d9efdd;
  --hero-wash: #e1f3e4;
  --hero-art: #163b32;
  --portfolio-background: #5B9D70;
  --portfolio-grid-line: rgba(48, 61, 51, 0.106);
  --portfolio-ring-line: rgba(84, 112, 90, 0.248);
  --portfolio-icon-surface: #ffffffec;
  --float-surface: rgba(255, 255, 255, .96);
  --icon-surface: #eff3ef;
  --button-hover: #28634f;
  --link-hover: #438a67;
  --pointer-glow: #58c995;
  --pointer-haze: rgba(88, 201, 149, .11);
  --card-shadow: 0 10px 36px rgba(28, 62, 42, .035);
  font-family: "Avenir Next", Avenir, "Segoe UI", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --ink: #edf6ef;
    --muted: #afc2b5;
    --line: #345044;
    --paper: #101b17;
    --section: #14231d;
    --surface: #1b2d25;
    --soft: #20372c;
    --soft-hover: #274434;
    --accent: #a2dbad;
    --accent-text: #a9dcb3;
    --accent-halo: #294a36;
    --hero-wash: #1c3b2b;
    --hero-art: #102e26;
    --portfolio-background: #0d2826;
    --portfolio-grid-line: rgba(212, 246, 225, .075);
    --portfolio-ring-line: rgba(199, 239, 212, .24);
    --portfolio-icon-surface: #ffffff17;
    --float-surface: #254536;
    --icon-surface: #e4f1e6;
    --button-hover: #cdebcf;
    --link-hover: #b7ebc1;
    --pointer-glow: #9cf2b9;
    --pointer-haze: rgba(156, 242, 185, .11);
    --card-shadow: 0 14px 38px rgba(0, 0, 0, .16);
  }
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--paper);
}

html.footer-overscroll,
html.footer-overscroll body {
  background-color: var(--footer-background);
}

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

main {
  background: var(--paper);
}

a {
  color: inherit;
  -webkit-tap-highlight-color: transparent;
}

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

:focus-visible {
  outline: 3px solid #34a780;
  outline-offset: 4px;
}

::selection {
  background: #beecc4;
  color: #12392f;
}

.wrap {
  width: min(1180px, calc(100% - 64px));
  margin-inline: auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: -.035em;
  line-height: 1.1;
  text-decoration: none;
}

.brand-mark {
  width: 37px;
  height: 37px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: var(--ink);
  color: var(--paper);
  font-size: 21px;
  letter-spacing: -.09em;
  padding-right: 2px;
}

.brand-name {
  font-weight: 700;
}

.brand-name small {
  display: block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 3px;
}

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 40px 0 40px;
  overflow: hidden;
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  width: 57vw;
  height: 57vw;
  max-width: 850px;
  max-height: 850px;
  background: radial-gradient(circle, var(--hero-wash) 0%, transparent 70%);
  top: -30%;
  right: -15%;
  opacity: .9;
  pointer-events: none;
  animation: hero-glow-drift 18s ease-in-out infinite;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(35px, 5vw, 95px);
  position: relative;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: .17em;
  text-transform: uppercase;
  color: var(--accent-text);
}

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

.hero h1 {
  font-size: clamp(54px, 6.2vw, 94px);
  line-height: 1.1;
  letter-spacing: -.025em;
  font-weight: 700;
  margin: 27px 0;
  max-width: 680px;
}

.hero h1 em {
  font-style: normal;
  color: var(--accent);
}

.hero-copy {
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.65;
  color: var(--muted);
  max-width: 500px;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 40px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: transform .2s, background .2s;
}

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

.button-primary {
  background: var(--ink);
  color: var(--paper);
}

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

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 75px;
  padding-top: 23px;
  border-top: 1px solid var(--line);
  max-width: 460px;
}

.hero-proof div+div {
  padding-left: 22px;
  border-left: 1px solid var(--line);
}

.hero-proof strong {
  display: block;
  font-size: 21px;
  letter-spacing: -.05em;
}

.hero-proof span {
  display: block;
  margin-top: 3px;
  font-size: 11px;
  color: var(--muted);
  font-weight: 650;
}

.hero-showcase {
  display: grid;
  gap: 15px;
  min-width: 0;
}

.hero-art {
  --art-grid-line: rgba(255, 255, 255, .035);
  position: relative;
  aspect-ratio: 1 / .88;
  min-height: 430px;
  border: 1px solid transparent;
  border-radius: 38px;
  background: linear-gradient(var(--hero-art), var(--hero-art)) padding-box, linear-gradient(var(--line), var(--line)) border-box;
  box-shadow: 0 26px 70px rgba(29, 60, 43, .15);
  overflow: hidden;
  isolation: isolate;
}

.hero-art.pointer-active {
  background: linear-gradient(var(--hero-art), var(--hero-art)) padding-box, radial-gradient(520px circle at var(--pointer-x, 50%) var(--pointer-y, 50%), var(--pointer-glow), var(--line) 85%) border-box;
}

.hero-art::before,
.hero-art::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(216, 248, 223, .15);
  border-radius: 50%;
  aspect-ratio: 1;
  width: 85%;
  left: 7.5%;
  top: 7.5%;
}

.hero-art::after {
  width: 120%;
  left: -10%;
  top: -10%;
}

.art-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(var(--art-grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--art-grid-line) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, transparent, black 32%, black 70%, transparent);
}

.art-label {
  position: absolute;
  z-index: 2;
  top: 33px;
  left: 35px;
  color: #bee7c6;
  font-size: 11px;
  letter-spacing: .17em;
  text-transform: uppercase;
  font-weight: 700;
}

.art-stamp {
  position: absolute;
  z-index: 1;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  color: rgba(220, 249, 223, .24);
  font-size: clamp(210px, 24vw, 345px);
  font-weight: 800;
  letter-spacing: -.14em;
  padding-right: .13em;
  line-height: 1;
}

.art-footer {
  position: absolute;
  z-index: 3;
  bottom: 30px;
  left: 35px;
  right: 35px;
  color: #c5eacb;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .02em;
  display: flex;
  justify-content: space-between;
}

.hero-app-shelf {
  padding: 17px 18px 20px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--soft);
}

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

.app-tile {
  position: relative;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: var(--float-surface);
  box-shadow: 0 10px 21px rgba(4, 26, 17, .1);
  color: inherit;
  text-decoration: none;
  transition: scale 200ms;
}

.app-tile:hover,
.app-tile:focus-visible {
  scale: 1.03;
}

.app-tile img {
  width: 53px;
  height: 53px;
  object-fit: contain;
  border-radius: 14px;
  background: var(--icon-surface);
  flex: none;
}

.app-tile--scanner img {
  background: #163b32;
}

.app-tile strong {
  display: block;
  font-size: 13px;
  line-height: 1.15;
  letter-spacing: -.025em;
}

.app-tile small {
  display: block;
  margin-top: 5px;
  font-size: 10px;
  color: var(--muted);
  font-weight: 700;
}

.projects {
  padding: 110px 0 120px;
  background: var(--section);
}

.section-intro {
  margin-bottom: 48px;
  scroll-margin-top: 40px;
}

.section-intro h2 {
  font-size: clamp(44px, 5.2vw, 72px);
  line-height: 1.04;
  font-weight: 700;
  letter-spacing: -.05em;
  margin: 18px 0 0;
}

.project-list {
  display: grid;
  gap: 24px;
}

.project-card {
  position: relative;
  border: 1px solid transparent;
  border-radius: 27px;
  overflow: hidden;
  background: linear-gradient(var(--surface), var(--surface)) padding-box, linear-gradient(var(--line), var(--line)) border-box;
  box-shadow: var(--card-shadow);
}

.project-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: radial-gradient(430px circle at var(--pointer-x, 50%) var(--pointer-y, 50%), var(--pointer-haze), transparent 75%);
  opacity: 0;
  transition: opacity .25s;
}

.project-card.pointer-active {
  background: linear-gradient(var(--surface), var(--surface)) padding-box, radial-gradient(780px circle at var(--pointer-x, 50%) var(--pointer-y, 50%), var(--pointer-glow), var(--line) 88%) border-box;
}

.project-card.pointer-active::before {
  opacity: 1;
}

.project-card:focus-within {
  box-shadow: var(--card-shadow), 0 0 0 2px var(--pointer-glow);
}

.project-main {
  display: grid;
  grid-template-columns: 1.13fr .87fr;
  min-height: 420px;
}

.project-content {
  padding: clamp(30px, 4vw, 54px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.project-topline {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 14px;
  color: var(--accent-text);
  text-transform: uppercase;
  letter-spacing: .16em;
  font-weight: 400;
}

.project-content h3 {
  font-size: clamp(34px, 3.8vw, 53px);
  letter-spacing: -.05em;
  line-height: 1.05;
  margin: 23px 0 13px;
  font-weight: 650;
}

.project-description {
  max-width: 570px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--muted);
  margin-bottom: 23px;
}

.metric-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-bottom: 23px;
}

.metric {
  padding-right: 24px;
}

.metric+.metric {
  padding-left: 24px;
  border-left: 1px solid var(--line);
}

.metric strong {
  display: block;
  font-size: 20px;
  line-height: 1.15;
  letter-spacing: -.045em;
}

.metric small {
  display: block;
  margin-top: 4px;
  font-size: 10px;
  color: var(--muted);
  font-weight: 700;
}

.star {
  color: #d89040;
  font-size: 15px;
  vertical-align: 1px;
}

.store-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0px;
  align-items: center;
  margin: 0 -10px;
  margin-top: auto;
}

.store-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 8px;
  transition: transform .2s;
}

.store-links a:hover {
  transform: translateY(-2px);
}

.store-links img {
  height: 48px;
  width: auto;
  object-fit: contain;
}

.project-visual {
  --art-grid-line: var(--portfolio-grid-line);
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  min-height: 370px;
  background: var(--portfolio-background);
}

.project-visual::before,
.project-visual::after {
  content: "";
  position: absolute;
  width: 300px;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid var(--portfolio-ring-line);
}

.project-visual::after {
  width: 440px;
}

.visual-icon-stack {
  position: relative;
  z-index: 1;
  width: clamp(155px, 18vw, 245px);
  aspect-ratio: 1;
  transition: transform .3s;
}

.visual-icon {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
}

.visual-icon-glow {
  position: absolute;
  inset: 0;
  filter: blur(20px);
  opacity: .4;
  transform: translateY(12px) scale(1.08);
  pointer-events: none;
}

.visual-icon-stack>.visual-icon:not(.visual-icon-glow) {
  position: relative;
  z-index: 1;
}

.visual-icon {
  background-color: var(--portfolio-icon-surface);
  border-radius: 15%;
}

.project-card:hover .visual-icon-stack {
  transform: translateY(-8px) rotate(-2deg);
}

.project-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 19px clamp(30px, 4vw, 54px);
  border-top: 1px solid var(--line);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: background .2s;
}

.project-link:hover {
  background: var(--soft-hover);
}

.project-card--explorable .project-link::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}

.project-card--explorable .store-links a {
  position: relative;
  z-index: 3;
}

.project-link-icon {
  width: 25px;
  height: 25px;
  scale: 1.5;
  flex: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--accent-halo);
  font-size: 10px;
  font-weight: 400;
}

.stats-note {
  margin: 25px 0 0;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.5;
  text-align: center;
}

.stats-note a {
  text-underline-offset: 3px;
}

.contact {
  padding: 47px 0;
  background: var(--section);
  border-top: 1px solid var(--line);
  scroll-margin-top: 20px;
}

.contact-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  column-gap: 24px;
  row-gap: 9px;
}

.contact .eyebrow {
  grid-column: 1 / -1;
}

.contact h2 {
  font-size: clamp(27px, 3vw, 38px);
  font-weight: 600;
  letter-spacing: -.04em;
  line-height: 1.12;
  margin: 0;
}

.contact-link {
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  padding-bottom: 6px;
  overflow-wrap: anywhere;
}

.contact-link:hover {
  color: var(--link-hover);
  border-color: currentColor;
}

.footer {
  background: var(--footer-background);
  border-top: 1px solid rgba(255, 255, 255, .12);
  color: #bad2c5;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 15px;
  padding: 25px 0;
  font-size: 11px;
}

@keyframes hero-glow-drift {

  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: .78;
  }

  50% {
    transform: translate3d(-4%, 5%, 0) scale(1.08);
    opacity: 1;
  }
}

@media (max-width: 1100px) {
  .hero-proof {
    display: grid;
    gap: 14px;
  }

  .hero-proof div+div {
    padding: 14px 0 0;
    border-left: 0;
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 900px) {
  .hero-grid {
    gap: 25px;
  }

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

  .hero-art {
    min-height: 390px;
  }

  .app-tile {
    gap: 8px;
    padding: 9px;
  }

  .app-tile img {
    width: 41px;
    height: 41px;
    border-radius: 10px;
  }

  .app-tile strong {
    font-size: 11px;
  }

  .app-tile small {
    font-size: 9px;
  }

  .project-content {
    padding: 30px;
  }

  .project-description {
    font-size: 14px;
  }

  .project-link {
    padding-inline: 30px;
  }
}

@media (max-width: 690px) {
  .wrap {
    width: min(100% - 36px, 500px);
  }

  .brand {
    font-size: 13px;
  }

  .brand-mark {
    width: 33px;
    height: 33px;
    font-size: 19px;
  }

  .brand-name small {
    font-size: 8px;
  }

  .hero {
    min-height: auto;
    padding: 30px 0;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 43px;
  }

  .hero h1 {
    font-size: clamp(55px, 12vw, 76px);
    max-width: 600px;
  }

  .hero-copy {
    font-size: 16px;
  }

  .hero-proof {
    margin-top: 48px;
  }

  .hero-art {
    width: 100%;
    aspect-ratio: 1 / .88;
    min-height: 350px;
    max-height: 450px;
  }

  .art-stamp {
    font-size: clamp(210px, 55vw, 260px);
  }

  .shelf-grid {
    gap: 10px;
  }

  .projects {
    padding: 75px 0 85px;
  }

  .section-intro {
    margin-bottom: 35px;
  }

  .section-intro h2 {
    font-size: 40px;
    text-align: center;
  }

  .project-main {
    display: flex;
    flex-direction: column-reverse;
  }

  .project-visual {
    min-height: 265px;
  }

  .visual-icon-stack {
    width: 170px;
  }

  .project-content {
    padding: 29px 27px 34px;
  }

  .project-content h3 {
    font-size: 38px;
    margin-top: 18px;
  }

  .project-description {
    font-size: 14px;
  }

  .project-link {
    padding-inline: 27px;
  }

  .contact {
    padding: 34px 0;
  }

  .contact-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .contact-link {
    margin-top: 6px;
  }
}

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

  .hero-art {
    min-height: 320px;
  }

  .hero-app-shelf {
    padding: 14px;
  }

  .app-tile {
    padding: 8px;
  }

  .app-tile img {
    width: 36px;
    height: 36px;
  }

  .app-tile small {
    display: none;
  }

  .hero-proof {
    gap: 12px;
  }

  .metric {
    padding-right: 16px;
  }

  .metric+.metric {
    padding-left: 16px;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: .01ms !important;
    animation: none !important;
    translate: none !important;
  }
}
