:root {
  --bg: #FFFFFF;
  --ink: #0B0B0B;
  --mid: #8C8C8C;
  --dim: #D3D3D3;
  --line: #EBEBEB;
  --chip: #F3F3F1;
  --accent: #12B76A;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-feature-settings: 'ss01', 'cv05';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

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

.wrap {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------- header ---------- */
header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--bg);
  padding: 26px 0 18px;
}

header::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 28px;
  background: linear-gradient(to bottom, #fff, rgba(255, 255, 255, 0));
  pointer-events: none;
}

header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.mark {
  height: 17px;
  width: auto;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav {
  display: inline-flex;
  align-items: center;
  gap: 18px;
}

.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--mid);
  transition: color .18s ease;
  padding: 4px 0;
  position: relative;
}

.nav-link:hover {
  color: var(--ink);
}

.nav-link.active {
  color: var(--ink);
  font-weight: 600;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  line-height: 1;
  border: 1px solid var(--line);
  padding: 8px 14px;
  border-radius: 100px;
  white-space: nowrap;
}

.pill .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}

/* ---------- flowing display type ---------- */
.flow {
  font-size: clamp(29px, 4.4vw, 54px);
  line-height: 1.25;
  font-weight: 500;
  letter-spacing: -0.032em;
}

.flow .w {
  color: var(--dim);
  transition: color .45s cubic-bezier(.22, 1, .36, 1);
}

.flow .w.lit {
  color: var(--ink);
}

.flow .lead .w {
  color: var(--ink);
}

/* inline icon chips that pop in with the words around them */
.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.02em;
  height: 1.02em;
  border-radius: .24em;
  background: var(--chip);
  vertical-align: -.16em;
  margin: 0 .06em;
  opacity: 0;
  transform: scale(.45) rotate(-8deg);
  transition: opacity .35s ease, transform .55s cubic-bezier(.34, 1.56, .64, 1);
}

.chip.lit {
  opacity: 1;
  transform: scale(1) rotate(0);
}

.chip svg {
  width: 58%;
  height: 58%;
  color: var(--ink);
}

/* keep an icon glued to the word it introduces */
.item {
  white-space: nowrap;
}

.hero {
  padding: clamp(80px, 14vh, 150px) 0 clamp(32px, 5vh, 64px);
}

.hero .flow {
  font-size: clamp(42px, 5.6vw, 72px);
  line-height: 1.15;
  letter-spacing: -0.035em;
  max-width: 14em;
}

/* ---------- screenshot ---------- */
.shot img {
  width: 100%;
  height: auto;
  transform-origin: 50% 90%;
  backface-visibility: hidden;
  will-change: transform;
}

.cap {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 13px;
  color: var(--mid);
  padding-top: 10px;
  border-top: 1px solid var(--line);
  margin-top: 8px;
}

/* ---------- text sections ---------- */
.band {
  padding: clamp(96px, 17vh, 180px) 0 0;
}

.band .flow {
  max-width: 900px;
}

.prose {
  max-width: 560px;
  margin-top: clamp(40px, 6vh, 68px);
  font-size: 17px;
  line-height: 1.75;
  color: var(--mid);
}

.prose p+p {
  margin-top: 1.1em;
}

.cta {
  padding: clamp(96px, 17vh, 180px) 0 clamp(88px, 14vh, 150px);
}

.cta .flow {
  max-width: 760px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 38px;
  background: var(--ink);
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
  padding: 15px 26px;
  border-radius: 100px;
  transition: opacity .2s ease;
}

.btn svg {
  width: 13px;
  height: 13px;
  transition: transform .25s cubic-bezier(.22, 1, .36, 1);
}

.btn:hover {
  opacity: .85;
}

.btn:hover svg {
  transform: translateX(3px);
}

.cta .note {
  max-width: 440px;
  margin-top: 34px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--mid);
}

/* ---------- footer ---------- */
footer {
  padding: 0 0 56px;
}

footer p {
  font-size: 15px;
  line-height: 1.95;
  color: var(--mid);
}

footer a {
  color: var(--ink);
}

footer a:hover {
  color: var(--mid);
}

.ic {
  display: inline-block;
  width: 1.05em;
  height: 1.05em;
  vertical-align: -.18em;
  margin: 0 .12em;
  color: var(--mid);
}

footer .copy {
  color: var(--dim);
  margin-top: 6px;
}

.soc {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  margin-left: .3em;
  vertical-align: -.22em;
}

.soc a {
  display: inline-flex;
  color: var(--mid);
  transition: color .15s ease;
}

.soc a:hover {
  color: var(--ink);
}

.soc svg {
  width: 16px;
  height: 16px;
}

/* ---------- contact modal ---------- */
.modal {
  width: min(500px, calc(100vw - 36px));
  margin: auto;
  /* * { margin:0 } išjungtų <dialog> centravimą */
  padding: 0;
  border: none;
  border-radius: 24px;
  background: var(--bg);
  color: var(--ink);
  box-shadow: 0 26px 70px rgba(11, 11, 11, .18);
  overflow: hidden;
}

.modal::backdrop {
  background: rgba(11, 11, 11, .4);
}

.modal[open] {
  animation: pop .3s cubic-bezier(.22, 1, .36, 1);
}

.modal[open]::backdrop {
  animation: fade .3s ease;
}

.modal.closing {
  animation: unpop .16s ease forwards;
}

.modal.closing::backdrop {
  animation: fade .16s ease reverse forwards;
}

@keyframes pop {
  from {
    opacity: 0;
    transform: translateY(12px) scale(.97);
  }
}

@keyframes unpop {
  to {
    opacity: 0;
    transform: translateY(6px) scale(.99);
  }
}

@keyframes fade {
  from {
    opacity: 0;
  }
}

.modal-in {
  padding: 30px;
}

.modal-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.modal h2 {
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.03em;
}

.modal .sub {
  margin-top: 7px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--mid);
}

.x {
  flex: none;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  background: var(--chip);
  color: var(--ink);
  cursor: pointer;
  transition: background .15s ease;
}

.x:hover {
  background: #E8E8E5;
}

.x svg {
  width: 13px;
  height: 13px;
}

form {
  margin-top: 24px;
}

.grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.field {
  margin-top: 14px;
}

.grid2 .field {
  margin-top: 0;
}

.field label {
  display: block;
  font-size: 13px;
  color: var(--mid);
  margin-bottom: 7px;
}

.field input,
.field textarea {
  width: 100%;
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  background: var(--bg);
  border: none;
  border-radius: 13px;
  padding: 12px 14px;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.field textarea {
  resize: vertical;
  min-height: 88px;
  line-height: 1.55;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(11, 11, 11, .06);
}

.field input:user-invalid,
.field textarea:user-invalid {
  border-color: #D9503F;
}

.submit {
  width: 100%;
  margin-top: 20px;
  background: var(--ink);
  color: #fff;
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
  padding: 15px 20px;
  border: none;
  border-radius: 100px;
  cursor: pointer;
  transition: opacity .2s ease;
}

.submit:hover {
  opacity: .85;
}

.submit:disabled {
  opacity: .5;
  cursor: default;
}

.modal .alt {
  margin-top: 16px;
  text-align: center;
  font-size: 13px;
  color: var(--mid);
}

.modal .alt a {
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}

.done {
  display: none;
  padding: 22px 0 8px;
  text-align: center;
}

.modal.sent form,
.modal.sent .sub {
  display: none;
}

.modal.sent .done {
  display: block;
}

.done .tick {
  width: 46px;
  height: 46px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(18, 183, 106, .12);
  color: var(--accent);
}

.done .tick svg {
  width: 20px;
  height: 20px;
}

.done h3 {
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.done p {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--mid);
}

@media (max-width:520px) {
  .grid2 {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .grid2 .field+.field {
    margin-top: 0;
  }

  .modal-in {
    padding: 24px;
  }
}

/* ---------- contact page ---------- */
.contact-section {
  padding: clamp(50px, 8vh, 100px) 0 clamp(80px, 12vh, 130px);
}

.contact-section .flow {
  font-size: clamp(36px, 4.8vw, 64px);
  line-height: 1.18;
  letter-spacing: -0.035em;
  max-width: 16em;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(36px, 5vw, 72px);
  margin-top: clamp(44px, 7vh, 72px);
  align-items: start;
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contact-item-chip {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--chip);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  color: var(--ink);
  margin-top: 2px;
}

.contact-item-chip svg {
  width: 20px;
  height: 20px;
}

.contact-item-content .label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--mid);
  margin-bottom: 3px;
}

.contact-item-content .value {
  font-size: 18px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.015em;
}

.contact-item-content .value a {
  transition: color .15s ease;
}

.contact-item-content .value a:hover {
  color: var(--mid);
}

.contact-item-content .subtext {
  font-size: 14px;
  color: var(--mid);
  margin-top: 4px;
  line-height: 1.5;
}

.contact-card {
  background: #FAF9F8;
  border: none;
  border-radius: 24px;
  padding: 32px;
}

.contact-card h2 {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.contact-card .card-sub {
  font-size: 14px;
  color: var(--mid);
  margin-top: 6px;
  line-height: 1.5;
}

.contact-card form {
  margin-top: 20px;
}

.contact-card .field input,
.contact-card .field textarea {
  background: #FFFFFF;
}

.contact-card.sent form,
.contact-card.sent .card-sub {
  display: none;
}

.contact-card.sent .done {
  display: block;
}

.contact-item-clickable {
  cursor: pointer;
  padding: 10px 14px;
  margin: -10px -14px;
  border-radius: 16px;
  transition: background .18s ease, transform .18s ease;
}

.contact-item-clickable:hover {
  background: #FAF9F8;
  transform: translateX(4px);
}

.contact-item-clickable:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.map-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 8px;
  font-size: 11px;
  font-weight: 500;
  color: var(--ink);
  background: var(--chip);
  padding: 2px 8px;
  border-radius: 100px;
  vertical-align: middle;
  text-transform: none;
  letter-spacing: 0;
  transition: background .15s ease, color .15s ease;
}

.contact-item-clickable:hover .map-badge {
  background: var(--ink);
  color: #fff;
}

/* ---------- map modal ---------- */
.modal-map {
  width: min(680px, calc(100vw - 32px));
  max-width: 680px;
}

.zone-map-container {
  margin-top: 18px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  position: relative;
}

.zone-map {
  width: 100%;
  height: 380px;
  background: #f4f4f2;
}

.map-note {
  margin-top: 14px;
  font-size: 13px;
  color: var(--mid);
  line-height: 1.5;
}

.leaflet-popup-content-wrapper {
  border-radius: 12px !important;
  font-family: inherit !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12) !important;
}

.map-marker-pulse {
  width: 16px;
  height: 16px;
  background: var(--accent);
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 rgba(18, 183, 106, 0.4);
  animation: mapPulse 2s infinite;
}

@keyframes mapPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(18, 183, 106, 0.7);
  }

  70% {
    box-shadow: 0 0 0 14px rgba(18, 183, 106, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(18, 183, 106, 0);
  }
}

@media (max-width:860px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

/* ---------- reveal ---------- */
[data-up] {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .7s cubic-bezier(.22, 1, .36, 1), transform .7s cubic-bezier(.22, 1, .36, 1);
}

[data-up].in {
  opacity: 1;
  transform: none;
}

@media (max-width:600px) {
  .wrap {
    padding: 0 20px;
  }

  header {
    padding: 18px 0 14px;
  }

  .header-actions {
    gap: 14px;
  }

  .nav {
    gap: 14px;
  }

  .nav-link {
    font-size: 13px;
  }

  .pill {
    display: none;
  }

  .contact-card {
    padding: 20px;
  }

  .cap {
    font-size: 12px;
  }

  .hero .flow {
    max-width: none;
  }

  .prose {
    font-size: 16px;
  }
}

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

  * {
    transition-duration: .001ms !important;
    animation-duration: .001ms !important;
  }

  [data-up] {
    opacity: 1;
    transform: none;
  }

  .flow .w {
    color: var(--ink);
  }

  .chip {
    opacity: 1;
    transform: none;
  }
}