/* Lime Labs GmbH */

:root {
  /* ground */
  --bg:       #0D0D0F;
  --bg-deep:  #0A0A0C;
  --surface:  #131316;
  --rule:     #1E1E22;
  --gutter:   #16161A;

  /* ink, all measured against --bg */
  --ink-100:  #F2F2F2;  /* 17.3:1 */
  --ink-80:   #C7C7C9;  /* 11.5:1 */
  --ink-64:   #9C9CA0;  /*  7.1:1 */
  --ink-48:   #7E8590;  /*  5.2:1 */
  --ink-28:   #46464B;  /*  2.1:1  decorative only, never text */

  /* chrome and signal */
  --slate:    #5B6472;  /*  3.2:1  chrome only, never text */
  --lime:     #9AD434;  /* 10.9:1 */
  --rind:     #7BAC3E;  /*  7.2:1 */
  --crest:    #E8F5D0;

  --f-sans: "SF Pro Display", -apple-system, BlinkMacSystemFont, system-ui,
            "Segoe UI Variable Display", "Segoe UI", Roboto,
            "Helvetica Neue", Arial, sans-serif;
  --f-mono: ui-monospace, "SF Mono", SFMono-Regular, "Cascadia Mono",
            "Segoe UI Mono", "Roboto Mono", Menlo, Consolas, monospace;

  --maxw: 1440px;
  --pad:  clamp(20px, 4vw, 48px);
  --gap:  24px;

  --sect-pad: clamp(4.5rem, 9vw, 9rem);
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  position: relative;
  background: var(--bg);
  color: var(--ink-64);
  font-family: var(--f-sans);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  font-weight: 400;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-optical-sizing: auto;
  hanging-punctuation: first;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; background: none; border: 0; }
a { color: inherit; }

h1, h2, h3 { font-weight: 300; text-wrap: balance; }
p { text-wrap: pretty; }

::selection { background: var(--lime); color: var(--bg); }

:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 3px;
  border-radius: 1px;
}

/* ---------- layout primitives ---------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  padding: 12px 20px;
  background: var(--lime);
  color: var(--bg);
  font-family: var(--f-mono);
  font-size: 0.8125rem;
  text-decoration: none;
}
.skip-link:focus { left: 0; }

/* full document height, absolutely positioned so scrolling stays cheap */
.gutters {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad);
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gap);
}
.gutters i { width: 1px; background: var(--gutter); }
.gutters i:nth-child(1) { grid-column: 3; }
.gutters i:nth-child(2) { grid-column: 5; }
.gutters i:nth-child(3) { grid-column: 7; }
.gutters i:nth-child(4) { grid-column: 9; }
.gutters i:nth-child(5) { grid-column: 11; }

.scroll-sentinel { position: absolute; top: 0; left: 0; width: 1px; height: 1px; }

main, .masthead, .site-footer { position: relative; z-index: 1; }

/* ---------- shared type atoms ---------- */
.eyebrow,
.section__label,
.contact__label,
.area-tag,
.legal__date {
  font-family: var(--f-mono);
  font-variant-numeric: tabular-nums;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-48);
  line-height: 1.4;
}
.slash { color: var(--slate); }


/* ---------- masthead ---------- */
.masthead {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 64px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.masthead.is-stuck { background: var(--bg); border-bottom-color: var(--rule); }
.masthead__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: inline-flex; align-items: center; text-decoration: none; flex: none; }
.brand__logo { width: 132px; height: auto; }

.masthead__nav { display: flex; gap: 32px; }
.masthead__nav a {
  font-family: var(--f-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-48);
  text-decoration: none;
  transition: color 0.2s;
}
.masthead__nav a:hover { color: var(--ink-100); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: clamp(500px, 80svh, 800px);
  margin-top: -64px;
  padding-top: 64px;
  background-image:
    radial-gradient(62% 52% at 66% 44%, rgba(154, 212, 52, 0.045), transparent 70%),
    linear-gradient(180deg, var(--bg-deep) 0%, var(--bg) 22%, var(--bg) 78%, var(--bg-deep) 100%);
}
/* a runtime noise tile, which keeps the gradient from banding on OLED */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: var(--grain, none);
  background-size: 128px 128px;
}

.hero__stage {
  position: relative;
  z-index: 1;
  overflow: hidden;
  aspect-ratio: 1;
  justify-self: center;
}
.hero__canvas { display: block; width: 100%; height: 100%; pointer-events: none; }

/* type and object sit side by side on one line, centred against each other */
.hero__inner {
  position: relative;
  z-index: 2;
  flex: 1;
  display: grid;
  align-items: center;
  padding-block: 56px 48px;
}
.hero__type { width: 100%; max-width: 760px; }

.hero__title {
  font-size: clamp(1.9rem, 3.6vw, 3.25rem);
  letter-spacing: -0.028em;
  line-height: 1.08;
  color: var(--ink-100);
}
.hero__sub {
  margin-top: 28px;
  max-width: 46ch;
  font-size: clamp(1.0625rem, 1.5vw, 1.3125rem);
  font-weight: 300;
  line-height: 1.5;
  color: var(--ink-80);
}

.hero__actions {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: background-color 0.22s var(--ease), color 0.22s var(--ease), border-color 0.22s var(--ease);
}
.btn--primary {
  padding: 14px 26px;
  border: 1px solid var(--lime);
  border-radius: 999px;
  color: var(--ink-100);
  font-family: var(--f-mono);
  font-size: 0.9375rem;
  letter-spacing: 0.01em;
}
.btn--primary:hover, .btn--primary:focus-visible { background: var(--lime); color: var(--bg); }

.btn--bare { flex-direction: column; align-items: flex-start; gap: 2px; }
.btn__num {
  font-family: var(--f-mono);
  font-variant-numeric: tabular-nums;
  font-size: 0.9375rem;
  color: var(--ink-80);
  transition: color 0.2s;
}
.btn--bare:hover .btn__num, .btn--bare:focus-visible .btn__num { color: var(--lime); }
.btn__meta {
  font-family: var(--f-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-48);
}

.btn--small { padding: 9px 18px; font-size: 0.8125rem; border-radius: 999px; font-family: var(--f-mono); }
/* resting borders clear 3:1, so these read as buttons rather than text */
.btn--ghost { border: 1px solid var(--ink-48); color: var(--ink-80); cursor: pointer; }
.btn--ghost:hover, .btn--ghost:focus-visible { border-color: var(--ink-100); color: var(--ink-100); }
.btn--outline {
  padding: 10px 20px; border: 1px solid var(--ink-48); border-radius: 999px;
  color: var(--ink-80); font-family: var(--f-mono); font-size: 0.8125rem; cursor: pointer;
}
.btn--outline:hover, .btn--outline:focus-visible { border-color: var(--lime); color: var(--ink-100); }

/* ---------- areas strip ---------- */
.areas-strip {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.areas-strip__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  list-style: none;
  margin: 0;
  padding: 0;
}

.area-tag {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 24px 0 24px 20px;
  border-left: 1px solid var(--rule);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-80);
}
.area-tag:first-child { border-left: 0; padding-left: 0; }
.area-tag__sq { width: 6px; height: 6px; flex: none; background: var(--lime); }
.area-tag__short { display: none; }

/* ---------- sections ---------- */
.section { padding-block: var(--sect-pad); }
.section--alt { background: var(--surface); }

.section__head { margin-bottom: clamp(3rem, 6vw, 5rem); }
.section__head--compact { margin-bottom: clamp(1.75rem, 3vw, 2.5rem); }
.section__label {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-48);
  margin-bottom: 20px;
}
.section__title {
  font-size: clamp(1.75rem, 3.4vw, 3rem);
  letter-spacing: -0.022em;
  line-height: 1.06;
  color: var(--ink-100);
  max-width: 22ch;
}
.section__sub { margin-top: 24px; max-width: 56ch; color: var(--ink-64); }

/* ---------- 01 areas rows ---------- */
.row {
  position: relative;
  display: grid;
  gap: 8px 24px;
  padding-block: clamp(2.5rem, 4vw, 3.5rem);
  border-top: 1px solid var(--rule);
}
.row:last-child { border-bottom: 1px solid var(--rule); }
.row::after {
  content: "";
  position: absolute; top: -1px; left: 0;
  width: 100%; height: 1px;
  background: var(--lime);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease);
}
.row:hover::after, .row:focus-within::after { transform: scaleX(1); }

.row__name {
  font-size: clamp(1.6rem, 2.6vw, 2.4rem);
  letter-spacing: -0.018em;
  line-height: 1.10;
  color: var(--ink-100);
}
.row__body { max-width: 62ch; }

@media (min-width: 1024px) {
  .row { grid-template-columns: minmax(0, 4fr) minmax(0, 6fr); align-items: start; gap: 0 var(--gap); }
  .row__name { padding-right: 32px; }
}

/* ---------- 02 platform ---------- */
.platform { display: grid; gap: 28px; align-items: start; }
.platform__body {
  max-width: 52ch;
  font-size: clamp(1.0625rem, 1.4vw, 1.25rem);
  font-weight: 300;
  line-height: 1.55;
  color: var(--ink-80);
}
.platform__link {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 24px;
  border: 1px solid var(--ink-48);
  border-radius: 999px;
  font-family: var(--f-mono);
  font-size: 0.875rem;
  color: var(--ink-100);
  text-decoration: none;
  transition: background-color 0.22s var(--ease), color 0.22s var(--ease), border-color 0.22s var(--ease);
}
.platform__link:hover, .platform__link:focus-visible {
  background: var(--lime);
  border-color: var(--lime);
  color: var(--bg);
}
.platform__arrow { transition: transform 0.22s var(--ease); }
.platform__link:hover .platform__arrow { transform: translateX(3px); }

/* ---------- 04 contact ---------- */
.section--contact { border-top: 1px solid var(--rule); }
.contact { display: grid; gap: clamp(2.5rem, 5vw, 4rem); }
.contact__label {
  font-size: 0.6875rem; font-weight: 500; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--ink-48); margin-bottom: 16px;
}
.contact__big {
  display: inline-block;
  font-family: var(--f-mono);
  font-variant-numeric: tabular-nums;
  font-size: clamp(1.25rem, 3.1vw, 2.5rem);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--ink-100);
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: color 0.22s var(--ease);
}
.contact__big:hover, .contact__big:focus-visible { color: var(--lime); }
.contact__meta { margin-top: 16px; font-family: var(--f-mono); font-size: 0.75rem; letter-spacing: 0.06em; color: var(--ink-48); }

@media (min-width: 900px) { .contact { grid-template-columns: 1fr 1fr; gap: var(--gap); } }

/* ---------- imprint block ---------- */
.section--imprint { padding-block: clamp(3rem, 6vw, 5rem); border-top: 1px solid var(--rule); background: var(--bg-deep); }
.imprint__title {
  font-family: var(--f-mono);
  font-size: 0.6875rem; font-weight: 500; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--ink-48); margin-bottom: 28px;
}
.imprint { display: grid; gap: 28px; font-family: var(--f-mono); font-size: 0.8125rem; letter-spacing: 0.02em; line-height: 1.7; color: var(--ink-64); }
.imprint address { font-style: normal; }
.imprint a { color: var(--ink-80); text-decoration: none; border-bottom: 1px solid var(--rule); }
.imprint a:hover { color: var(--lime); border-bottom-color: var(--lime); }
@media (min-width: 760px) { .imprint { grid-template-columns: repeat(3, 1fr); gap: var(--gap); } }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--rule); padding-block: clamp(3rem, 5vw, 4rem); }
.site-footer__inner { display: grid; gap: 32px; }
.site-footer__brand { display: flex; align-items: flex-start; gap: 16px; }
.site-footer__logo { width: 28px; height: 28px; flex: none; opacity: 0.9; }
.site-footer__legal { font-size: 0.875rem; color: var(--ink-48); }

.site-footer__nav { display: flex; flex-wrap: wrap; gap: 24px; }
.site-footer__nav a, .linklike {
  font-family: var(--f-mono);
  font-size: 0.6875rem; font-weight: 500; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--ink-48);
  text-decoration: none; cursor: pointer;
  transition: color 0.2s;
}
.site-footer__nav a:hover, .linklike:hover { color: var(--lime); }
.site-footer__copy { font-family: var(--f-mono); font-size: 0.75rem; letter-spacing: 0.04em; color: var(--ink-48); }

@media (min-width: 900px) {
  .site-footer__inner { grid-template-columns: minmax(0, 1fr) auto; align-items: start; column-gap: var(--gap); }
  .site-footer__brand { grid-column: 1; grid-row: 1; }
  .site-footer__nav { grid-column: 2; grid-row: 1; justify-content: flex-end; }
  .site-footer__copy { grid-column: 1 / -1; grid-row: 2; }
}

/* ---------- consent ---------- */
.consent {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 100;
  background: var(--surface);
  border-top: 1px solid var(--rule);
  padding: 18px var(--pad);
}
.consent[hidden] { display: none; }
.consent__inner {
  max-width: var(--maxw);
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
}
.consent__text { font-size: 0.875rem; color: var(--ink-64); max-width: 68ch; }
.consent__text a { color: var(--ink-80); text-decoration: underline; text-underline-offset: 3px; }
.consent__text a:hover { color: var(--lime); }
.consent__actions { display: flex; gap: 12px; flex: none; }

.consent-state { font-family: var(--f-mono); font-size: 0.75rem; color: var(--ink-48); margin-left: 12px; }

/* ---------- legal pages ---------- */
.page-legal .site-header { border-bottom: 1px solid var(--rule); }
.site-header { height: 64px; display: flex; align-items: center; }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.link-back {
  font-family: var(--f-mono); font-size: 0.6875rem; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-48); text-decoration: none;
}
.link-back:hover { color: var(--lime); }

.legal { padding-block: clamp(3rem, 7vw, 6rem) var(--sect-pad); }
.legal__head { padding-bottom: clamp(2rem, 4vw, 3rem); border-bottom: 1px solid var(--rule); margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.legal__head h1 {
  margin-top: 18px;
  font-size: clamp(2rem, 5vw, 3.5rem);
  letter-spacing: -0.03em; line-height: 1.0; color: var(--ink-100);
}
.legal__sub { margin-top: 10px; font-size: clamp(1rem, 2vw, 1.25rem); font-weight: 300; color: var(--ink-48); }
.legal__date { margin-top: 20px; font-size: 0.75rem; letter-spacing: 0.10em; color: var(--ink-48); }

.prose { max-width: 74ch; }
.prose section + section { margin-top: clamp(2.25rem, 4vw, 3rem); }
.prose h2 {
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  letter-spacing: -0.012em; line-height: 1.25; color: var(--ink-100);
  margin-bottom: 16px;
}
.prose p + p, .prose ul + p, .prose p + ul, .prose dl + p { margin-top: 16px; }
.prose ul { margin: 16px 0 0; padding-left: 1.25em; }
.prose li { margin-bottom: 10px; }
.prose li::marker { color: var(--ink-48); }
.prose strong { color: var(--ink-80); font-weight: 400; }
.prose a { color: var(--ink-80); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--ink-28); }
.prose a:hover { color: var(--lime); text-decoration-color: var(--lime); }
.prose__action { margin-top: 20px; display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }

.deflist { margin-top: 16px; display: grid; gap: 0; }
.deflist dt {
  font-family: var(--f-mono); font-size: 0.75rem; letter-spacing: 0.10em;
  text-transform: uppercase; color: var(--ink-48);
  padding-top: 14px; border-top: 1px solid var(--rule);
}
.deflist dd { padding-bottom: 14px; color: var(--ink-80); }
@media (min-width: 640px) {
  .deflist { grid-template-columns: minmax(9rem, 12rem) 1fr; }
  .deflist dt { padding-bottom: 14px; }
  .deflist dd { padding-top: 14px; border-top: 1px solid var(--rule); }
}

.address { margin-top: 16px; line-height: 1.8; color: var(--ink-80); }
.mono { font-family: var(--f-mono); letter-spacing: 0.04em; color: var(--ink-80); margin-top: 12px; }
.muted { color: var(--ink-48); }

/* ---------- section reveals ----------
   Gated on .js so the content stays visible when scripting is unavailable. */
.js .reveal { opacity: 0; transform: translateY(4px); }
.reveal.is-in {
  opacity: 1;
  transform: none;
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
  transition-delay: var(--d, 0ms);
}

/* ---------- responsive ---------- */
@media (max-width: 1023px) {
  .gutters i:nth-child(2), .gutters i:nth-child(4) { display: none; }
}

@media (max-width: 899px) {
  .area-tag__long { display: none; }
  .area-tag__short { display: inline; }
  .area-tag { padding-left: 14px; gap: 9px; }
}

@media (min-width: 1024px) {
  .hero__inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: var(--gap);
  }
  .hero__stage { width: min(100%, 460px); }
}

/* below the desktop breakpoint the globe stacks above the type,
   so body copy never sits on the canvas */
@media (max-width: 1023px) {
  .hero { min-height: 0; background-image: linear-gradient(180deg, var(--bg-deep) 0%, var(--bg) 30%); }
  .hero__inner { padding-block: 20px 48px; row-gap: 20px; }
  .hero__stage { order: -1; width: min(100%, 340px); }
  .hero__actions { margin-top: 32px; gap: 20px; }
}

@media (max-width: 767px) {
  .gutters { display: none; }
  .btn--primary { width: 100%; }

  .masthead__nav { gap: 20px; }
  .brand__logo { width: 112px; }

  .consent__inner { flex-direction: column; align-items: stretch; }
  .consent__actions { justify-content: stretch; }
  .consent__actions .btn { flex: 1; }
}

@media (max-width: 560px) {
  .masthead__nav { gap: 16px; }
  .masthead__nav a { font-size: 0.625rem; }
}

/* under 400px there is no room for three links beside the wordmark */
@media (max-width: 399px) {
  .masthead__nav a:not(:last-child) { display: none; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
  .row::after { display: none; }
}
