/* ==========================================================================
   GeoSifter: styles
   Light by default, with a dark mode (the switch in the header sets data-theme="dark").
   Change the colours in the two token blocks at the top and the whole site follows.
   The globe in main.js uses the same greens.
   ========================================================================== */

:root {
  color-scheme: light;
  --bg: #f4f7f4;
  --bg-alt: #e8efea;
  --surface: #ffffff;
  --ink: #0f1f1a;
  --ink-soft: #536660;
  --line: rgba(15, 31, 26, 0.11);
  --line-strong: rgba(15, 31, 26, 0.28);

  --green: #20b27a;          /* brand green: buttons, logo */
  --teal: #13a39b;           /* second tone, used with green in gradients */
  --green-ink: #0a7a52;      /* green for text and focus on light backgrounds */
  --mint: #86ecbf;           /* light accent on dark surfaces */
  --on-green: #ffffff;       /* text on green */
  --tint: rgba(32, 178, 122, 0.08);

  --glass: rgba(244, 247, 244, 0.58);   /* the see-through panel under the globe */
  --forest: #0e2c24;         /* contact card and footer */
  --on-forest: #e9f4ef;
  --on-forest-soft: #a4c0b5;
  --forest-line: rgba(233, 244, 239, 0.2);

  --header-bg: rgba(244, 247, 244, 0.84);
  --shadow: 0 16px 40px rgba(15, 31, 26, 0.08);
  --error: #ff9a86;

  --r-section: 44px;
  --r-card: 28px;
  --overlap: 7rem;           /* how far the glass panel slides over the globe */

  --heading: "Unbounded", "Segoe UI", system-ui, sans-serif;
  --display: "Instrument Sans", "Segoe UI", system-ui, sans-serif;
  --text: "Instrument Sans", "Segoe UI", system-ui, sans-serif;

  --gutter: clamp(1.25rem, 5vw, 3rem);
  --section-y: clamp(4.5rem, 9vw, 7.5rem);
  --header-h: 4.25rem;
}

[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0a0e0d;
  --bg-alt: #101614;
  --surface: #151c1a;
  --ink: #ebf2ef;
  --ink-soft: #97a8a1;
  --line: rgba(220, 238, 230, 0.12);
  --line-strong: rgba(220, 238, 230, 0.3);

  --green: #2cc98b;
  --green-ink: #5fe3ab;
  --on-green: #04130d;
  --tint: rgba(44, 201, 139, 0.1);

  --glass: rgba(10, 14, 13, 0.62);
  --forest: #11261f;
  --header-bg: rgba(10, 14, 13, 0.84);
  --shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.1rem/1.65 var(--text);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.3s, color 0.3s;
}

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

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--heading);
  font-weight: 600;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

/* "pretty" stops a lone word from ending up on the last line, in every language */
p { margin: 0 0 1em; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
a { color: inherit; text-underline-offset: 0.2em; }

:focus-visible {
  outline: 2px solid var(--green-ink);
  outline-offset: 3px;
  border-radius: 8px;
}

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.6rem 1.1rem;
  background: var(--green);
  color: var(--on-green);
  font: 600 1rem var(--display);
  border-radius: 999px;
}
.skip-link:focus { top: 1rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.7rem 1.7rem;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font: 600 1rem/1 var(--display);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.btn:active { transform: scale(0.97); }
.btn--primary {
  background: linear-gradient(135deg, var(--green), var(--teal));
  color: var(--on-green);
  box-shadow: 0 8px 20px rgba(32, 178, 122, 0.25);
}
.btn--primary:hover { box-shadow: 0 10px 26px rgba(32, 178, 122, 0.38); transform: translateY(-1px); }
.btn--ghost { border-color: var(--line-strong); color: var(--ink); }
.btn--ghost:hover { border-color: var(--ink); background: var(--surface); }

/* ---------- Header: brand left, links in the middle, tools right ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  color: var(--ink);
  transition: background-color 0.3s, box-shadow 0.3s;
}
.site-header[data-solid] {
  background: var(--header-bg);
  box-shadow: 0 1px 0 var(--line);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.site-header__bar {
  display: grid;
  /* side columns never shrink below their content, so longer menu words (DE, ES) can't run into the buttons */
  grid-template-columns: minmax(max-content, 1fr) auto minmax(max-content, 1fr);
  column-gap: 1.5rem;
  align-items: center;
  height: var(--header-h);
}
.brand {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  font: 600 1.15rem/1 var(--heading);
  letter-spacing: -0.02em;
}
.brand__mark {
  flex: none;
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(15, 143, 138, 0.28);
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.brand__name { font-weight: 500; }
.brand__name b { font-weight: 700; color: var(--green-ink); }
/* Logo motion.
   Meridians: each is the right half of the globe outline, squashed with scaleX. Sweeping scaleX from 1 to -1
   (cosine steps, so it moves like a real rotation) carries it across the face; four of them, 45° apart, make the
   globe spin. At rest they sit at 22.5°, 67.5°, 112.5° and 157.5°, the same spots the animation starts from.
   non-scaling-stroke (in the HTML) keeps the line weight when a meridian is squashed thin.
   Satellite: rides the whole tilted orbit with a CSS motion path. The copy behind the globe is dimmed and covered
   by the globe; the front copy is masked to the front half of the orbit. */
.brand__mer { transform-box: fill-box; transform-origin: 0 50%; }
.brand__mer--1 { transform: scaleX(0.924); }
.brand__mer--2 { transform: scaleX(0.383); }
.brand__mer--3 { transform: scaleX(-0.383); }
.brand__mer--4 { transform: scaleX(-0.924); }
.brand__sat {
  offset-path: path("M4.5 20a15.5 4.6 0 0 0 31 0a15.5 4.6 0 0 0 -31 0z");
  offset-distance: 17%;
  offset-rotate: 0deg;
}
.brand:hover .brand__mark { transform: scale(1.06); }
.brand:hover .brand__mer { animation: brand-turn 4s linear infinite; }
.brand:hover .brand__mer--1 { animation-delay: -0.5s; }
.brand:hover .brand__mer--2 { animation-delay: -1.5s; }
.brand:hover .brand__mer--3 { animation-delay: -2.5s; }
.brand:hover .brand__mer--4 { animation-delay: -3.5s; }
.brand:hover .brand__sat { animation: brand-orbit 2.8s linear infinite; }
@keyframes brand-turn {
  0% { transform: scaleX(1); }
  16.67% { transform: scaleX(0.866); }
  33.33% { transform: scaleX(0.5); }
  50% { transform: scaleX(0.001); }
  66.67% { transform: scaleX(-0.5); }
  83.33% { transform: scaleX(-0.866); }
  100% { transform: scaleX(-1); }
}
@keyframes brand-orbit { from { offset-distance: 17%; } to { offset-distance: 117%; } }
.header__right { justify-self: end; display: flex; align-items: center; gap: 0.6rem; }
.header__cta { min-height: 2.6rem; padding: 0.55rem 1.35rem; }

.theme-toggle {
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  border: 1.5px solid var(--line-strong);
  border-radius: 50%;
  background: none;
  color: inherit;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s;
}
.theme-toggle:hover { border-color: var(--ink); background: var(--surface); }
.theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

/* Language switcher */
.lang { position: relative; }
.lang__button {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.6rem;
  padding: 0.5rem 0.85rem;
  border: 1.5px solid var(--line-strong);
  border-radius: 999px;
  font: 600 0.9rem/1 var(--display);
  list-style: none;
  cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s;
}
.lang__button::-webkit-details-marker { display: none; }
.lang__button:hover, .lang[open] .lang__button { border-color: var(--ink); background: var(--surface); }
.lang__chevron { transition: transform 0.2s; }
.lang[open] .lang__chevron { transform: rotate(180deg); }
.lang__menu {
  position: absolute;
  right: 0;
  top: calc(100% + 0.5rem);
  z-index: 60;
  min-width: 11.5rem;
  margin: 0;
  padding: 0.4rem;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.lang__menu button {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  width: 100%;
  padding: 0.6rem 0.8rem;
  border: 0;
  border-radius: 14px;
  background: none;
  color: var(--ink);
  font: 500 0.95rem/1.2 var(--display);
  text-align: left;
  cursor: pointer;
}
.lang__menu button b { width: 1.7rem; color: var(--ink-soft); font-weight: 600; }
.lang__menu button:hover { background: var(--bg-alt); }
.lang__menu button[aria-current="true"], .lang__menu button[aria-current="true"] b { color: var(--green-ink); }

.nav__list {
  display: flex;
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3rem);
  list-style: none;
}
.nav__list a {
  white-space: nowrap;
  padding-block: 0.4rem;
  font: 500 1rem var(--display);
  text-decoration: none;
  background: linear-gradient(var(--green), var(--green)) 0 100% / 0 2px no-repeat;
  transition: background-size 0.25s;
}
.nav__list a:hover { background-size: 100% 2px; }
.nav__contact { display: none; }

.nav-toggle {
  display: none;
  padding: 0.55rem 1rem;
  border: 1.5px solid var(--line-strong);
  border-radius: 999px;
  background: none;
  color: inherit;
  font: 600 0.95rem/1 var(--display);
  cursor: pointer;
}

/* ---------- Hero: everything on the centre line ---------- */
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
  background: var(--bg);
  text-align: center;
  transition: background-color 0.3s;
}
.hero__blobs { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.blob {
  position: absolute;
  border-radius: 50%;
  animation: drift 26s ease-in-out infinite alternate;
}
.blob--a { width: 36rem; height: 32rem; left: -12rem; top: 2rem; background: radial-gradient(closest-side, rgba(134, 236, 191, 0.5), transparent); }
.blob--b { width: 34rem; height: 34rem; right: -10rem; top: -5rem; background: radial-gradient(closest-side, rgba(19, 163, 155, 0.22), transparent); animation-duration: 32s; animation-delay: -8s; }
.blob--c { width: 48rem; height: 28rem; left: 50%; bottom: -6rem; margin-left: -24rem; background: radial-gradient(closest-side, rgba(32, 178, 122, 0.28), transparent); animation-duration: 38s; }
[data-theme="dark"] .blob--a { background: radial-gradient(closest-side, rgba(134, 236, 191, 0.12), transparent); }
[data-theme="dark"] .blob--b { background: radial-gradient(closest-side, rgba(19, 163, 155, 0.16), transparent); }
[data-theme="dark"] .blob--c { background: radial-gradient(closest-side, rgba(44, 201, 139, 0.2), transparent); }
@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(3rem, 2rem, 0) scale(1.08); }
}

.hero__inner { position: relative; z-index: 2; display: flex; justify-content: center; }
.hero__content {
  max-width: 50rem;
  padding-block: calc(var(--header-h) + 2.5rem) 0;
}
.hero h1 {
  margin-bottom: 1.5rem;
  font-size: clamp(1.8rem, 5.2vw, 4.3rem);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.035em;
  /* each translation of hero_title carries its own line break (\n), so the headline is two even lines in every language */
  white-space: pre-line;
}
.hero__lead {
  max-width: 36rem;
  text-wrap: balance;
  margin: 0 auto 2.1rem;
  color: var(--ink-soft);
  font-size: clamp(1.1rem, 1.6vw, 1.28rem);
  line-height: 1.55;
}
.hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.85rem; }

/* The globe rises from the bottom edge; the glass panel below slides over its lower part */
.globe-stage {
  position: relative;
  width: min(98vw, 55rem);
  margin-top: -1.5rem;          /* the canvas starts with empty glow space, so it can tuck under the buttons */
}
.globe {
  position: relative;
  aspect-ratio: 2 / 1.1;
  overflow: hidden;
  /* fade out the part that sits under the glass panel, so there is no hard edge */
  -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - var(--overlap) - 1rem), transparent 100%);
  mask-image: linear-gradient(to bottom, #000 calc(100% - var(--overlap) - 1rem), transparent 100%);
}
.globe__canvas {
  width: 100%;
  aspect-ratio: 1 / 1;
  cursor: grab;
  touch-action: pan-y;
  outline-offset: -4px;
}
.globe.is-dragging .globe__canvas { cursor: grabbing; }
.globe__hint {
  position: absolute;
  left: 50%;
  bottom: calc(var(--overlap) + 1.25rem);
  margin: 0;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  background: rgba(4, 19, 13, 0.55);
  color: #e9f4ef;
  font: 500 0.88rem/1.2 var(--display);
  white-space: nowrap;
  pointer-events: none;
  transform: translateX(-50%);
  transition: opacity 0.6s ease;
}
.globe.is-touched .globe__hint { opacity: 0; }

/* ---------- Sections: stacked sheets with round shoulders ---------- */
.section {
  position: relative;
  z-index: 1;
  margin-top: calc(-1 * var(--r-section));
  padding-block: var(--section-y);
  border-radius: var(--r-section) var(--r-section) 0 0;
  scroll-margin-top: var(--header-h);
  color: var(--ink);
  text-align: center;
  transition: background-color 0.3s;
}
.section--plain { background: var(--bg); }
.section--alt { background: var(--bg-alt); }
/* The panel right under the globe: see-through, so the globe shows through it */
.section--glass {
  margin-top: calc(-1 * var(--overlap));
  border-top: 1px solid rgba(255, 255, 255, 0.55);
  background: var(--glass);
  -webkit-backdrop-filter: blur(9px) saturate(1.8);
  backdrop-filter: blur(9px) saturate(1.8);
  box-shadow: 0 -18px 40px rgba(15, 31, 26, 0.06);
}
[data-theme="dark"] .section--glass { border-top-color: rgba(255, 255, 255, 0.1); }

.section__head { max-width: 46rem; margin-inline: auto; }
.section__head h2, .about h2 {
  font-size: clamp(1.8rem, 3.6vw, 2.8rem);
  line-height: 1.1;
}
.section__intro { margin: 1.25rem auto 0; max-width: 38rem; color: var(--ink-soft); font-size: 1.15rem; }

/* ---------- Services: a bento grid ---------- */
.services {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 3.5rem;
  list-style: none;
}
.service {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2.25rem clamp(1.25rem, 2.5vw, 2.25rem) 2rem;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--surface);
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.35s, border-color 0.35s;
}
.service--wide { grid-column: span 2; }
/* A soft light that follows the pointer across the card (position set in main.js) */
.service::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(22rem circle at var(--mx, 50%) var(--my, 0%), rgba(32, 178, 122, 0.14), transparent 65%);
  opacity: 0;
  transition: opacity 0.35s;
  pointer-events: none;
}
.service > * { position: relative; }
.service:hover { transform: scale(1.02); border-color: rgba(32, 178, 122, 0.35); box-shadow: var(--shadow); }
.service:hover::before { opacity: 1; }
.service__icon {
  width: 3.9rem;
  height: 3.9rem;
  margin-bottom: 1.25rem;
  padding: 1rem;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--green), var(--teal));
  color: #fff;
  box-shadow: 0 8px 18px rgba(32, 178, 122, 0.25);
}
.service__title { margin-bottom: 0.7rem; font-size: 1.12rem; line-height: 1.3; }
.service p { max-width: 26rem; margin: 0 auto 1.25rem; color: var(--ink-soft); font-size: 1.02rem; line-height: 1.6; }
.service__ask {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: auto;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  background: var(--tint);
  color: var(--green-ink);
  font: 600 0.92rem/1 var(--display);
  text-decoration: none;
  transition: background-color 0.2s, gap 0.2s;
}
.service__ask:hover { gap: 0.65rem; background: rgba(32, 178, 122, 0.16); }

.services__cta { margin-top: 3.5rem; }
.services__cta p { max-width: 32rem; margin: 0 auto 1.4rem; color: var(--ink-soft); }

/* ---------- Work ---------- */
.work {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 3rem 1.75rem;
  margin-top: 3.5rem;
}
.project { position: relative; grid-column: span 6; }
.project--wide { grid-column: span 7; }
.project--side { grid-column: span 5; align-self: end; }

.project__thumb {
  display: grid;
  place-items: center;
  margin: 0 0 1.1rem;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background:
    radial-gradient(120% 100% at 0% 0%, var(--tint), transparent 60%),
    var(--surface);
}
.project--wide .project__thumb { aspect-ratio: 16 / 10; }
.project--side .project__thumb { aspect-ratio: 16 / 12; }
.project__thumb { position: relative; transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.35s; }
.project__thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top left; transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1); }
/* the screenshot matches the page's colour theme */
.project__thumb .thumb-dark { display: none; }
[data-theme="dark"] .project__thumb .thumb-light { display: none; }
[data-theme="dark"] .project__thumb .thumb-dark { display: block; }
.project:hover .project__thumb { box-shadow: var(--shadow); transform: translateY(-4px); }
.project:hover .project__thumb img { transform: scale(1.03); }
.project__open {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.25s, transform 0.25s;
}
.project:hover .project__open, .project:focus-within .project__open { opacity: 1; transform: none; }
.project__tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.4rem; margin-top: 0.9rem; list-style: none; }
.project__tags li { padding: 0.25rem 0.75rem; border-radius: 999px; background: var(--tint); color: var(--green-ink); font: 600 0.82rem/1.3 var(--display); }
.project .project__thumb { aspect-ratio: 16 / 10; }
.project--side .project__thumb { aspect-ratio: 16 / 12; }
.project h3 { margin-bottom: 0.45rem; font-size: 1.12rem; line-height: 1.3; }
.project p { max-width: 34rem; margin: 0 auto 0.6rem; color: var(--ink-soft); font-size: 1.02rem; line-height: 1.55; }
.project__tba { color: var(--ink-soft); font: 600 1rem/1 var(--heading); letter-spacing: 0.08em; }
/* Add a link around the title and the whole card becomes clickable */
.project__link { color: inherit; text-decoration: none; }
.project__link::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: var(--r-card); }
.project__link:hover { text-decoration: underline; text-underline-offset: 0.2em; }

/* ---------- About ---------- */
.about { max-width: 42rem; margin-inline: auto; }
.about h2 { margin-bottom: 1.75rem; }
.about p { color: var(--ink-soft); }
.about__clients-title { margin: 2.5rem 0 1rem; font-size: 1rem; }
.about__clients {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  list-style: none;
}
.about__clients li {
  padding: 0.45rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font: 500 0.95rem/1.4 var(--display);
}

.about__clients .about__more { border-style: dashed; background: transparent; color: var(--ink-soft); }
.about__tools li { font-weight: 600; }
.about__tools + .about__clients-title { margin-top: 2rem; }

.process__title { margin: clamp(4rem, 8vw, 6rem) 0 3rem; font-size: 1.35rem; }
.process {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0 2rem;
  list-style: none;
  counter-reset: step;
}
.process__step {
  position: relative;
  padding-top: 2.6rem;
  border-top: 2px dashed var(--line-strong);
  counter-increment: step;
}
.process__step::before {
  content: counter(step);
  position: absolute;
  top: -1.3rem;
  left: 50%;
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green), var(--teal));
  color: #fff;
  font: 600 0.95rem/1 var(--heading);
  transform: translateX(-50%);
}
.process__step h4 { margin-bottom: 0.5rem; font-size: 1rem; }
.process__step p { max-width: 16rem; margin: 0 auto; color: var(--ink-soft); font-size: 1rem; line-height: 1.55; }

/* ---------- Contact: a big dark card ---------- */
.contact__card {
  position: relative;
  overflow: hidden;
  max-width: 62rem;
  margin-inline: auto;
  padding: clamp(2.25rem, 5vw, 4rem) clamp(1.25rem, 4vw, 3.5rem);
  border-radius: 44px;
  background: var(--forest);
  color: var(--on-forest);
}
.contact__card::before {
  content: "";
  position: absolute;
  right: -8rem;
  top: -9rem;
  width: 26rem;
  height: 26rem;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(134, 236, 191, 0.24), transparent);
  pointer-events: none;
}
.contact__card > * { position: relative; }
.contact .section__intro { color: var(--on-forest-soft); }
.form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.35rem 1.25rem;
  max-width: 44rem;
  margin: 2.75rem auto 0;
  text-align: left;
}
.field { display: flex; flex-direction: column; gap: 0.4rem; min-width: 0; }
.field--full, .form__footer { grid-column: 1 / -1; }
.field label { font: 600 0.95rem/1.3 var(--display); }
.field__opt { color: var(--on-forest-soft); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--forest-line);
  border-radius: 16px;
  background: rgba(233, 244, 239, 0.07);
  color: var(--on-forest);
  font: 400 1.05rem/1.4 var(--text);
  transition: border-color 0.2s, background-color 0.2s;
}
.field select {
  appearance: none;
  padding-right: 2.5rem;
  background-image: linear-gradient(45deg, transparent 50%, var(--on-forest-soft) 50%), linear-gradient(135deg, var(--on-forest-soft) 50%, transparent 50%);
  background-position: calc(100% - 1.3rem) 55%, calc(100% - 0.95rem) 55%;
  background-size: 0.35rem 0.35rem;
  background-repeat: no-repeat;
}
.field select option { color: #0f1f1a; }
@keyframes picked { from { box-shadow: 0 0 0 0 rgba(134, 236, 191, 0.6); } to { box-shadow: 0 0 0 12px rgba(134, 236, 191, 0); } }
.field select.is-picked { animation: picked 1s ease-out 2; border-color: var(--mint); background-color: rgba(134, 236, 191, 0.12); }
.field textarea { resize: vertical; min-height: 9rem; border-radius: 20px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--mint);
  outline-offset: 1px;
  border-color: var(--mint);
}
.field [aria-invalid="true"] { border-color: var(--error); }
.field__error { margin: 0; color: var(--error); font: 500 0.9rem/1.4 var(--display); }

.form__trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form__footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1rem 1.5rem; }
.contact .btn--primary { background: var(--mint); color: #04130d; box-shadow: none; }
.contact .btn--primary:hover { background: #a6f3d2; }
.form__status { margin: 0; font: 500 0.98rem/1.4 var(--display); }
.form__status[data-state="success"] { color: var(--mint); }
.form__status[data-state="error"] { color: var(--error); }
.form__status a { color: inherit; }

.contact__details {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem 2rem;
  max-width: 50rem;
  margin: 3rem auto 0;
  padding-top: 2rem;
  border-top: 1px solid var(--forest-line);
}
.contact__details dt { color: var(--on-forest-soft); font: 500 0.9rem/1.4 var(--display); }
.contact__details dd { margin: 0.2rem 0 0; font-size: 1.05rem; line-height: 1.5; }
.contact__details a { color: var(--mint); }

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  z-index: 1;
  margin-top: calc(-1 * var(--r-section));
  border-radius: var(--r-section) var(--r-section) 0 0;
  background: var(--forest);
  color: var(--on-forest-soft);
  font: 500 0.95rem/1.5 var(--display);
  text-align: center;
}
.site-footer__bar { display: flex; flex-direction: column; align-items: center; gap: 0.9rem; padding-block: 2.5rem; }
.site-footer p { margin: 0; }
.site-footer__brand { justify-self: auto; margin-bottom: 0.4rem; color: var(--on-forest); }
.site-footer__brand .brand__name b { color: var(--mint); }
.site-footer__brand .brand__mark { box-shadow: none; }
.site-footer__links { display: flex; gap: 0.6rem; list-style: none; }
.site-footer__links a {
  display: grid;
  place-items: center;
  width: 2.9rem;
  height: 2.9rem;
  border: 1px solid var(--forest-line);
  border-radius: 50%;
  color: var(--on-forest);
  text-decoration: none;
  transition: background-color 0.2s, color 0.2s, transform 0.2s;
}
.site-footer__links a:hover { background: var(--mint); border-color: var(--mint); color: #04130d; transform: translateY(-3px); }

/* ---------- Responsive ---------- */
@media (max-width: 62rem) {
  .services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service--wide { grid-column: auto; }
  .project, .project--wide, .project--side { grid-column: span 6; }
  .project--wide { grid-column: 1 / -1; }
  .process { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3rem 2rem; }
}

/* the header switches to the Menu button a bit earlier than the rest of the mobile layout,
   so the longer German and Spanish menu words never get squeezed */
@media (max-width: 54rem) {
  .site-header__bar { grid-template-columns: 1fr auto; }
  .header__cta { display: none; }
  .nav-toggle { display: inline-block; }
  .nav {
    position: absolute;
    inset: var(--header-h) 0 auto 0;
    display: none;
    padding: 0.5rem var(--gutter) 1.5rem;
    background: var(--bg);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.12);
  }
  .nav.is-open { display: block; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__list li { border-bottom: 1px solid var(--line); text-align: center; }
  .nav__list a { display: block; padding-block: 1rem; font-size: 1.15rem; background: none; }
  .nav__contact { display: block; border-bottom: 0 !important; }
  .nav__list .nav__contact a { margin-top: 1rem; border-radius: 999px; background: var(--green); color: var(--on-green); }
}

@media (max-width: 48rem) {
  :root { --r-section: 32px; --r-card: 24px; --overlap: 3rem; }
  .project, .project--wide, .project--side { grid-column: 1 / -1; }
  .form { grid-template-columns: minmax(0, 1fr); }
  .contact__details { grid-template-columns: minmax(0, 1fr); }
  .hero__content { padding-block: calc(var(--header-h) + 2rem) 0.5rem; }
  .contact__card { border-radius: 32px; }
}

@media (max-width: 26rem) {
  .site-header .brand__name { display: none; }
}

@media (max-width: 40rem) {
  .services { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 34rem) {
  .process { grid-template-columns: minmax(0, 1fr); }
  .hero__actions .btn { flex: 1 1 100%; }
}

@media (hover: none) {
  .service:hover { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: 0.01ms !important; }
  .blob, .brand:hover .brand__mer, .brand:hover .brand__sat { animation: none; }
}
