/* =========================================================
   CloudPlatforms: stylesheet
   Same calm design language as the Infra Services site (warm paper, deep
   ink, Newsreader + Geist), with the CloudPlatforms indigo as the accent.
   Each project has its own colour: Infra Services copper (its site's accent),
   tlp Martin teal (its site's colour), MarketHall.eu berry, the platform indigo.
   ========================================================= */

/* ---------- Tokens ---------- */

:root {
  --font-sans: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-serif: "Newsreader", Georgia, "Times New Roman", serif;
  --font-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --container: 1160px;
  --gutter: clamp(20px, 4vw, 40px);
  --section-space: clamp(80px, 10vw, 136px);
  --header-height: 68px;

  --radius: 16px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --fast: 0.18s var(--ease);
  --slow: 0.6s var(--ease);

  --brand: #4f46e5;
}

:root,
[data-theme="light"] {
  --paper: #f5f3ee;
  --paper-2: #ece9e1;
  --surface: #fffdf9;
  --surface-2: #f8f6f1;

  --ink: #0e1626;
  --ink-2: #3d4657;
  --ink-3: #6b7282;
  --on-ink: #f8f6f1;

  --line: rgba(14, 22, 38, 0.1);
  --line-2: rgba(14, 22, 38, 0.18);

  --accent: #4f46e5;
  --accent-strong: #4338ca;
  --accent-soft: rgba(79, 70, 229, 0.1);

  --p-infra: #a0502a;
  --p-martin: #0f766e;
  --p-markethall: #a3195b;
  --p-platform: #4f46e5;

  --header-bg: rgba(245, 243, 238, 0.82);
  --shadow: 0 1px 2px rgba(14, 22, 38, 0.04), 0 12px 32px -12px rgba(14, 22, 38, 0.14);
  --shadow-lg: 0 2px 6px rgba(14, 22, 38, 0.05), 0 28px 60px -24px rgba(14, 22, 38, 0.22);
  color-scheme: light;
}

[data-theme="dark"] {
  --paper: #0b1020;
  --paper-2: #0f1529;
  --surface: #131a30;
  --surface-2: #171f38;

  --ink: #eceaf4;
  --ink-2: #b9bdd0;
  --ink-3: #8a90a6;
  --on-ink: #0b1020;

  --line: rgba(236, 234, 244, 0.1);
  --line-2: rgba(236, 234, 244, 0.18);

  --accent: #818cf8;
  --accent-strong: #a5b4fc;
  --accent-soft: rgba(129, 140, 248, 0.15);

  --p-infra: #e39a6b;
  --p-martin: #5eead4;
  --p-markethall: #f472b6;
  --p-platform: #818cf8;

  --header-bg: rgba(11, 16, 32, 0.8);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 12px 32px -12px rgba(0, 0, 0, 0.55);
  --shadow-lg: 0 2px 6px rgba(0, 0, 0, 0.3), 0 28px 60px -24px rgba(0, 0, 0, 0.65);
  color-scheme: dark;
}

[data-product="infra"] { --prod: var(--p-infra); }
[data-product="martin"] { --prod: var(--p-martin); }
[data-product="markethall"] { --prod: var(--p-markethall); }
[data-product="platform"] { --prod: var(--p-platform); }

/* ---------- Base ---------- */

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

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

body {
  /* Hidden popups near an edge must not make the page scroll sideways. */
  overflow-x: clip;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color var(--fast), color var(--fast);
}

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

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

ul,
ol {
  list-style: none;
}

button {
  font: inherit;
  color: inherit;
}

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

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

section[id],
article[id] {
  scroll-margin-top: calc(var(--header-height) + 16px);
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--ink);
  color: var(--on-ink);
  transition: top var(--fast);
}

.skip-link:focus {
  top: 12px;
}

/* ---------- Type ---------- */

.display {
  font-family: var(--font-serif);
  font-weight: 400;
  letter-spacing: -0.015em;
  color: var(--ink);
}

h1.display {
  font-size: clamp(2.6rem, 5vw, 4.1rem);
  line-height: 1.03;
  letter-spacing: -0.025em;
}

h2.display {
  font-size: clamp(2.05rem, 3.8vw, 3.1rem);
  line-height: 1.08;
}

.display em {
  font-style: italic;
  color: var(--accent);
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}

.section-intro {
  font-size: 1.12rem;
  color: var(--ink-2);
  max-width: 640px;
  margin-top: 18px;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-size: 15.5px;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
  transition: background-color var(--fast), border-color var(--fast), color var(--fast), transform var(--fast);
}

.btn.primary {
  background: var(--ink);
  color: var(--on-ink);
}

.btn.primary:hover {
  background: var(--brand);
  color: #fff;
  transform: translateY(-1px);
}

.btn.secondary {
  color: var(--ink);
  border-color: var(--line-2);
}

.btn.secondary:hover {
  border-color: var(--ink);
  transform: translateY(-1px);
}

.btn-sm {
  min-height: 38px;
  padding: 8px 16px;
  font-size: 14px;
}

.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

/* ---------- Header ---------- */

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: var(--header-height);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.015em;
  color: var(--ink);
  white-space: nowrap;
}

.mark {
  width: 28px;
  height: 28px;
}

.mark-bg {
  fill: var(--brand);
}

.mark-cloud {
  fill: #fff;
}

.main-nav {
  display: flex;
  gap: 26px;
  margin-left: auto;
}

.main-nav a {
  font-size: 15px;
  color: var(--ink-2);
  transition: color var(--fast);
}

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

.header-tools {
  display: flex;
  align-items: center;
  gap: 14px;
}

.language-picker {
  display: flex;
  gap: 2px;
  font-family: var(--font-mono);
  font-size: 12.5px;
}

.language-picker a {
  padding: 4px 6px;
  border-radius: 6px;
  color: var(--ink-3);
}

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

.language-picker a.active {
  color: var(--ink);
  background: var(--accent-soft);
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  background: transparent;
  color: var(--ink-2);
  cursor: pointer;
  transition: color var(--fast), border-color var(--fast);
}

.theme-toggle:hover {
  color: var(--ink);
  border-color: var(--ink);
}

.theme-toggle svg {
  width: 16px;
  height: 16px;
}

.theme-toggle .icon-sun,
[data-theme="dark"] .theme-toggle .icon-moon {
  display: none;
}

[data-theme="dark"] .theme-toggle .icon-sun {
  display: block;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: clamp(56px, 8vw, 104px) 0 clamp(72px, 9vw, 120px);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto auto;
  width: 60%;
  height: 120%;
  background: radial-gradient(closest-side, var(--accent-soft), transparent 70%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}

.hero-lead {
  font-size: clamp(1.1rem, 1.6vw, 1.25rem);
  color: var(--ink-2);
  max-width: 560px;
  margin-top: 26px;
}

.foundation {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-lg);
}

.foundation-label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 2px 4px 14px;
}

.foundation-projects {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.foundation-base {
  position: relative;
  margin-top: 10px;
}

.block {
  position: relative;
}

.block-link {
  display: flex;
  flex-direction: column;
  gap: 14px;
  height: 100%;
  padding: 16px;
  border-radius: 14px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-top: 3px solid var(--prod);
  transition: border-color var(--fast), transform var(--fast);
}

.block-base .block-link {
  flex-direction: row;
  align-items: center;
  border-top-width: 1px;
  border-top-color: var(--line);
  border-left: 3px solid var(--prod);
  background: color-mix(in srgb, var(--prod) 8%, var(--surface-2));
}

html[data-pointer-type="mouse"] .block-link:hover,
.block.open .block-link,
.block-link:focus-visible {
  transform: translateY(-2px);
  border-color: var(--prod);
}

.block .icon {
  width: 24px;
  height: 24px;
  flex: none;
  color: var(--prod);
}

.block-text {
  display: grid;
  gap: 2px;
}

.block-name {
  overflow-wrap: anywhere;
  font-weight: 600;
  font-size: 15.5px;
  line-height: 1.25;
}

.block-line {
  font-size: 13.5px;
  line-height: 1.4;
  color: var(--ink-3);
}

.foundation-caption {
  margin: 16px 4px 2px;
  font-size: 13.5px;
  color: var(--ink-3);
}

/* ---------- "What it is" popups ---------- */

.tip {
  position: relative;
}

.tip-bubble {
  position: absolute;
  z-index: 40;
  top: calc(100% + 10px);
  left: 50%;
  width: max-content;
  max-width: min(300px, calc(100vw - 32px));
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--ink);
  color: var(--on-ink);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0;
  text-align: left;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translate(calc(-50% + var(--tip-shift, 0px)), 4px);
  transition: opacity var(--fast), transform var(--fast), visibility var(--fast);
  pointer-events: none;
}

.tip-bubble::before {
  content: "";
  position: absolute;
  top: -5px;
  left: calc(50% - var(--tip-shift, 0px));
  width: 10px;
  height: 10px;
  background: inherit;
  border-radius: 2px;
  transform: translateX(-50%) rotate(45deg);
}

.tip-title {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.7;
  margin-bottom: 4px;
}

html[data-pointer-type="mouse"] .tip:hover > .tip-bubble,
.tip:focus-within > .tip-bubble,
.tip.open > .tip-bubble {
  opacity: 1;
  visibility: visible;
  transform: translate(calc(-50% + var(--tip-shift, 0px)), 0);
}

.tip.dismissed > .tip-bubble {
  opacity: 0 !important;
  visibility: hidden !important;
}

/* Info buttons sit at the end of a name, so their bubble opens leftwards. */
.project-name .tip-bubble {
  left: auto;
  right: -10px;
  transform: translate(var(--tip-shift, 0px), 4px);
}

.project-name .tip-bubble::before {
  left: auto;
  right: calc(16px + var(--tip-shift, 0px));
  transform: rotate(45deg);
}

html[data-pointer-type="mouse"] .project-name .tip:hover > .tip-bubble,
.project-name .tip:focus-within > .tip-bubble,
.project-name .tip.open > .tip-bubble {
  transform: translate(var(--tip-shift, 0px), 0);
}

.tip-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  background: transparent;
  color: var(--ink-3);
  font-family: var(--font-mono);
  font-size: 11.5px;
  cursor: help;
  transition: color var(--fast), border-color var(--fast);
}

.tip-icon:hover,
.tip.open .tip-icon {
  color: var(--ink);
  border-color: var(--ink);
}

/* ---------- Sections ---------- */

.section {
  padding: var(--section-space) 0;
}

.section-alt {
  background: var(--paper-2);
}

.section-head {
  max-width: 760px;
  margin-bottom: clamp(40px, 5vw, 64px);
}

/* ---------- Projects ---------- */

.projects {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.project {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.project::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 28px;
  right: 28px;
  height: 2px;
  border-radius: 2px;
  background: var(--prod);
}

.project-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.project .icon {
  width: 26px;
  height: 26px;
  color: var(--prod);
}

.project-kicker {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.badge {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  color: var(--prod);
  background: color-mix(in srgb, var(--prod) 12%, transparent);
  white-space: nowrap;
}

.project-name {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 2rem;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.project-text {
  margin-top: 12px;
  color: var(--ink-2);
}

.project-levels {
  margin-top: 22px;
  display: grid;
  gap: 12px;
}

.project-levels div {
  padding-left: 14px;
  border-left: 2px solid color-mix(in srgb, var(--prod) 45%, transparent);
}

.project-levels dt {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--prod);
}

.project-levels dd {
  font-size: 15px;
  color: var(--ink);
}

.project-points {
  margin-top: 22px;
  display: grid;
  gap: 10px;
}

.project-points li {
  position: relative;
  padding-left: 22px;
  font-size: 15.5px;
  color: var(--ink);
}

.project-points li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.6em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1.5px solid var(--prod);
}

.project-action {
  margin-top: auto;
  padding-top: 26px;
}

.project-link,
.start-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  color: var(--ink);
  border-bottom: 1px solid var(--line-2);
  padding-bottom: 3px;
  transition: color var(--fast), border-color var(--fast);
}

.project-link .arrow,
.start-link .arrow {
  transition: transform var(--fast);
}

.project-link:hover,
.start-link:hover {
  color: var(--prod);
  border-color: var(--prod);
}

.project-link:hover .arrow,
.start-link:hover .arrow {
  transform: translateX(3px);
}

.project-soon {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--prod);
}

/* ---------- Platform ---------- */

.features {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.feature {
  padding: 24px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
}

.feature .icon {
  width: 24px;
  height: 24px;
  color: var(--prod);
  margin-bottom: 18px;
}

.feature h3 {
  font-size: 1.08rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.feature p {
  margin-top: 8px;
  font-size: 15px;
  color: var(--ink-2);
}

/* ---------- Where to start ---------- */

.start-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.start-item {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 26px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 2px solid var(--prod);
}

.start-item .icon {
  width: 24px;
  height: 24px;
  color: var(--prod);
}

.start-need {
  flex: 1;
  font-family: var(--font-serif);
  font-size: 1.35rem;
  line-height: 1.3;
}

.start-link {
  align-self: flex-start;
}

.start-fallback {
  margin-top: 36px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
}

.start-fallback p {
  font-size: 1.12rem;
  color: var(--ink-2);
}

/* ---------- Footer ---------- */

.footer {
  border-top: 1px solid var(--line);
  padding: 52px 0 56px;
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 32px 48px;
}

.footer-brand p {
  margin-top: 12px;
  font-size: 15px;
  color: var(--ink-2);
  max-width: 360px;
}

.footer-label {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 12px;
}

.footer-projects ul {
  display: grid;
  gap: 8px;
}

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

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

.footer-projects span {
  color: var(--ink-3);
}

.footer-copy {
  grid-column: 1 / -1;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 13.5px;
  color: var(--ink-3);
}

/* ---------- 404 ---------- */

.not-found {
  min-height: 60vh;
}

/* ---------- Reveal on scroll ---------- */

.js .fade-section {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity var(--slow), transform var(--slow);
}

.js .fade-section.visible {
  opacity: 1;
  transform: none;
}

/* If app.js never runs, show everything after a moment anyway. */
.js:not(.reveal-on) .fade-section {
  animation: reveal-fallback 0.4s 2.5s forwards;
}

@keyframes reveal-fallback {
  to {
    opacity: 1;
    transform: none;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }

  .js .fade-section {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
  .features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 960px) {
  .main-nav {
    display: none;
  }

  .header-tools {
    margin-left: auto;
  }

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

  .foundation {
    max-width: 620px;
  }

  .projects,
  .start-list {
    grid-template-columns: 1fr;
  }
}

/* Hero beside the copy but narrow: three columns get cramped, so the
   project blocks stack as rows, like on phones. */
@media (min-width: 961px) and (max-width: 1240px) {
  .foundation-projects {
    grid-template-columns: 1fr;
  }

  .foundation-projects .block-link {
    flex-direction: row;
    align-items: center;
    border-top-width: 1px;
    border-top-color: var(--line);
    border-left: 3px solid var(--prod);
  }
}

@media (max-width: 640px) {
  body {
    font-size: 16px;
  }

  .hero::before {
    width: 140%;
    inset: -10% -60% auto auto;
    opacity: 0.5;
  }

  .foundation-projects {
    grid-template-columns: 1fr;
  }

  .block-link {
    flex-direction: row;
    align-items: center;
    border-top-width: 1px;
    border-top-color: var(--line);
    border-left: 3px solid var(--prod);
  }

  .features {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .cta .btn {
    flex: 1 1 auto;
  }

  .project {
    padding: 24px 22px;
  }
}

@media (max-width: 480px) {
  .header-inner {
    gap: 12px;
  }

  .header-cta {
    display: none;
  }

  .language-picker a {
    padding: 4px;
  }
}

/* ---------- Infra Services (the one main project) ---------- */

.projects-single {
  grid-template-columns: minmax(0, 1fr);
  max-width: 860px;
}

/* ---------- Other projects ---------- */

.others {
  border-top: 1px solid var(--line);
}

.other {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  gap: 4px 20px;
  align-items: start;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.other .icon {
  width: 24px;
  height: 24px;
  margin-top: 4px;
  color: var(--prod);
}

.other-name {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 1.4rem;
  line-height: 1.2;
}

.other-line {
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.other-desc {
  margin-top: 8px;
  max-width: 640px;
  color: var(--ink-2);
}

.other-link {
  align-self: center;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  color: var(--ink);
  white-space: nowrap;
  border-bottom: 1px solid var(--line-2);
  padding-bottom: 3px;
  transition: color var(--fast), border-color var(--fast);
}

.other-link .arrow {
  transition: transform var(--fast);
}

.other-link:hover {
  color: var(--prod);
  border-color: var(--prod);
}

.other-link:hover .arrow {
  transform: translateX(3px);
}

@media (max-width: 640px) {
  .other {
    grid-template-columns: 28px minmax(0, 1fr);
  }

  .other-link,
  .other .project-soon {
    grid-column: 2;
    justify-self: start;
    margin-top: 10px;
  }
}

/* One main project now: its block spans the figure and lies flat, like the
   platform base underneath it. */
.foundation-projects {
  grid-template-columns: minmax(0, 1fr);
}

.foundation-projects .block-link {
  flex-direction: row;
  align-items: center;
}

/* In the other-projects list the badge sits next to the name. */
.other-name .badge {
  margin-left: 0;
}
