/* proper.tech holding page. Self-contained: no fonts, images or scripts from elsewhere (CSP: style-src 'self',
   script-src 'self'). Colours follow the polder.tech site (src/styles/global.css) plus three landscape tints for the
   background: water blue, moss green and sand. */
:root {
  --bg: #f7f8f8;
  --fg: #141a1c;
  --muted: #505c61;
  --card: #ffffff;
  --border: #dfe5e6;
  --brand: #2c6a61;
  --brand-2: #245850;
  --brand-fg: #ffffff;
  --tile: #e3eeeb;
  --ring: #2c6a61;
  --hl: #f0e2b6;
  --water: rgb(112 164 204 / 0.3);
  --moss: rgb(116 170 126 / 0.22);
  --sand: rgb(230 198 128 / 0.34);
  --line: rgb(44 106 97 / 0.07);
  --card-shadow: 0 1px 2px rgb(20 26 28 / 0.04), 0 16px 40px -16px rgb(20 26 28 / 0.12);
  --btn-shadow:
    0 1px 2px rgb(20 26 28 / 0.12), 0 6px 16px -4px rgb(20 26 28 / 0.16), 0 12px 28px -10px rgb(44 106 97 / 0.36);
  --btn-shadow-hover:
    0 1px 2px rgb(20 26 28 / 0.12), 0 10px 22px -6px rgb(20 26 28 / 0.2), 0 18px 36px -12px rgb(44 106 97 / 0.44);
  --sheen: rgb(255 255 255 / 0.28);
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #0c0f10;
  --fg: #e8edee;
  --muted: #98a4a8;
  --card: #131718;
  --border: #232b2d;
  --brand: #8ec9bd;
  --brand-2: #7bb9ac;
  --brand-fg: #0c1413;
  --tile: #15282a;
  --ring: #8ec9bd;
  --hl: #3a3321;
  --water: rgb(40 98 136 / 0.3);
  --moss: rgb(38 104 78 / 0.26);
  --sand: rgb(128 104 48 / 0.2);
  --line: rgb(142 201 189 / 0.05);
  --card-shadow: inset 0 1px 0 rgb(255 255 255 / 0.05), 0 20px 44px -16px rgb(0 0 0 / 0.5);
  --btn-shadow:
    0 1px 2px rgb(0 0 0 / 0.4), 0 6px 16px -4px rgb(0 0 0 / 0.45), 0 12px 28px -10px rgb(142 201 189 / 0.28);
  --btn-shadow-hover:
    0 1px 2px rgb(0 0 0 / 0.4), 0 10px 22px -6px rgb(0 0 0 / 0.5), 0 18px 36px -12px rgb(142 201 189 / 0.36);
  --sheen: rgb(255 255 255 / 0.4);
  color-scheme: dark;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  background: var(--bg);
}
body {
  position: relative;
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow-x: clip;
  /* No background here: the page colour sits on <html>, so the .sky layer (z-index -1) shows through. */
  color: var(--fg);
  font:
    400 1rem/1.6 "Inter Variable",
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    sans-serif;
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
}

/* Background: three soft landscape tints that drift very slowly (transform only, no repaint of the text),
   and faint horizontal lines low on the page, like ditches across a polder. Static without motion. */
.sky {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.sky::before {
  content: "";
  position: absolute;
  inset: -25%;
  background:
    radial-gradient(38% 34% at 22% 18%, var(--water), transparent 70%),
    radial-gradient(34% 30% at 84% 30%, var(--moss), transparent 70%),
    radial-gradient(42% 32% at 60% 88%, var(--sand), transparent 72%),
    radial-gradient(30% 26% at 10% 76%, var(--moss), transparent 70%);
  animation: drift 48s ease-in-out infinite alternate;
  will-change: transform;
}
.sky::after {
  content: "";
  position: absolute;
  inset: 50% 0 0;
  background: repeating-linear-gradient(to bottom, transparent 0 35px, var(--line) 35px 36px);
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 45%, #000 75%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 45%, #000 75%, transparent);
}
@keyframes drift {
  0% {
    transform: translate3d(0, 0, 0) rotate(0deg) scale(1);
  }
  50% {
    transform: translate3d(4%, -3%, 0) rotate(6deg) scale(1.06);
  }
  100% {
    transform: translate3d(-3%, 2%, 0) rotate(-4deg) scale(1.02);
  }
}

.wrap {
  width: 100%;
  max-width: 60rem;
  margin: 0 auto;
  padding: 0 16px;
}
header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 4.5rem;
}
.mark {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.015em;
}
.mark svg {
  width: 26px;
  height: 26px;
  color: var(--brand);
}
.dot {
  color: var(--brand);
}
.toggle {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: color-mix(in oklab, var(--card) 70%, transparent);
  color: var(--fg);
  cursor: pointer;
  transition: border-color 0.2s;
}
.toggle:hover {
  border-color: color-mix(in oklab, var(--brand) 45%, var(--border));
}
.toggle[hidden] {
  display: none;
}
.toggle svg {
  width: 18px;
  height: 18px;
}
.toggle .sun,
.toggle[aria-pressed="true"] .moon {
  display: none;
}
.toggle[aria-pressed="true"] .sun {
  display: block;
}

main {
  flex: 1;
  padding: 2.5rem 0 4rem;
}
/* Type scale (1.25 ratio at the base, fluid heading): 0.875 / 1 / 1.25 / 1.5625 / 2.5-4 rem. */
h1 {
  margin: 0;
  font-size: clamp(2.5rem, 7vw + 1rem, 4rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.045em;
}
h1 .dot {
  font-weight: 500;
}
.lead {
  max-width: 38rem;
  margin: 1.5rem 0 0;
  font-size: 1.25rem;
  line-height: 1.55;
  text-wrap: pretty;
}
.sub {
  max-width: 38rem;
  margin: 0.75rem 0 0;
  color: var(--muted);
}
.nl {
  max-width: 38rem;
  margin: 0.5rem 0 0;
  color: var(--muted);
  font-style: italic;
}
/* polder.tech written the way the site writes it: medium weight, tight, in the brand colour. */
.pt {
  color: var(--brand);
  font-weight: 600;
  letter-spacing: -0.015em;
  white-space: nowrap;
}
/* Soft highlighter on the key phrases: a sand band under the lower two thirds of the line, drawn in once
   from left to right. Its end state is the default, so without animation it is simply there. */
.hl {
  font-weight: 600;
  background-image: linear-gradient(var(--hl), var(--hl));
  background-repeat: no-repeat;
  background-position: 0 88%;
  background-size: 100% 62%;
  border-radius: 0.2em;
  padding: 0 0.12em;
  margin: 0 -0.06em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.button {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  min-height: 56px;
  margin-top: 2.25rem;
  padding: 0 1.875rem;
  border: 1px solid color-mix(in oklab, var(--brand-2) 80%, var(--fg));
  border-radius: 14px;
  background: linear-gradient(to bottom, var(--brand), var(--brand-2));
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.18),
    var(--btn-shadow);
  color: var(--brand-fg);
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  transition:
    transform 0.25s cubic-bezier(0.2, 0.7, 0.2, 1),
    box-shadow 0.25s;
}
.button::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(105deg, transparent 35%, var(--sheen) 50%, transparent 65%);
  transform: translateX(-110%);
}
.button svg {
  width: 20px;
  height: 20px;
  transition: transform 0.25s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.18),
    var(--btn-shadow-hover);
}
.button:hover::after,
.button:focus-visible::after {
  transform: translateX(110%);
  transition: transform 0.8s cubic-bezier(0.3, 0.6, 0.2, 1);
}
.button:hover svg,
.button:focus-visible svg {
  transform: translateX(3px);
}
.button:active {
  transform: translateY(0);
}
.button:focus-visible,
.toggle:focus-visible {
  outline: 3px solid var(--ring);
  outline-offset: 3px;
}

h2 {
  margin: 3.5rem 0 0;
  font-size: 1.5625rem;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.02em;
}
.kicker {
  margin: 0.5rem 0 0;
  color: var(--muted);
}
/* Static surfaces: no hover reaction, only the button reacts. */
.card {
  border: 1px solid var(--border);
  border-radius: 18px;
  background: linear-gradient(
    to bottom,
    color-mix(in oklab, var(--card) 92%, transparent),
    color-mix(in oklab, var(--card) 84%, transparent)
  );
  box-shadow: var(--card-shadow);
}
.grid {
  display: grid;
  gap: 1rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}
.grid .card {
  padding: 1.375rem 1.375rem 1.5rem;
}
h3 {
  margin: 1rem 0 0;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.015em;
}
.grid p {
  margin: 0.375rem 0 0;
  color: var(--muted);
  line-height: 1.55;
}
.ico {
  flex: none;
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 11px;
  background: var(--tile);
  color: var(--brand);
}
.ico svg {
  width: 22px;
  height: 22px;
}
.ico.sm {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 10px;
}
.ico.sm svg {
  width: 20px;
  height: 20px;
}

/* The company card: wider, with a brand-tinted top edge so it reads as the way on. */
.company {
  position: relative;
  overflow: hidden;
  margin-top: 1.5rem;
  padding: 1.5rem 1.25rem 1.5rem;
}
.company::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(to right, var(--brand), color-mix(in oklab, var(--brand) 40%, var(--hl)));
}
.company-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 0.75rem;
}
.company-name {
  margin: 0;
  font-size: clamp(1.75rem, 3vw + 1rem, 2.25rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.035em;
  color: var(--brand);
}
.legal {
  color: var(--muted);
  font-size: 0.875rem;
}
.company-lead {
  max-width: 40rem;
  margin: 0.875rem 0 0;
  font-size: 1.125rem;
  line-height: 1.55;
  text-wrap: pretty;
}
.points {
  display: grid;
  gap: 0.875rem;
  margin: 1.375rem 0 0;
  padding: 1.25rem 0 0;
  border-top: 1px solid var(--border);
  list-style: none;
}
.points li {
  display: flex;
  gap: 0.875rem;
  line-height: 1.55;
}
.points strong {
  font-weight: 600;
}
.company .button {
  margin-top: 1.5rem;
}

footer {
  border-top: 1px solid var(--border);
  background: color-mix(in oklab, var(--bg) 70%, transparent);
  color: var(--muted);
  font-size: 0.875rem;
}
footer .wrap {
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
}
footer p {
  margin: 0;
}

@media (min-width: 640px) {
  main {
    padding-top: 4.5rem;
    padding-bottom: 5rem;
  }
  .company {
    padding: 2rem 2rem 2rem;
  }
}
@media (min-width: 820px) {
  .grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .points {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }
  .points li {
    flex-direction: column;
    gap: 0.625rem;
  }
}
@media (max-width: 639px) {
  .button {
    width: 100%;
  }
}

/* Load sequence: each block rises 10px and fades in, 80ms apart. Transform and opacity only, so nothing
   moves the layout. */
@media (prefers-reduced-motion: no-preference) {
  .rise {
    animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both;
    animation-delay: calc(var(--i, 0) * 80ms + 60ms);
  }
  .i1 {
    --i: 1;
  }
  .i2 {
    --i: 2;
  }
  .i3 {
    --i: 3;
  }
  .i4 {
    --i: 4;
  }
  .i5 {
    --i: 5;
  }
  .i6 {
    --i: 6;
  }
  .i7 {
    --i: 7;
  }
  .i8 {
    --i: 8;
  }
  .i9 {
    --i: 9;
  }
  .i10 {
    --i: 10;
  }
  .lead .hl,
  .company-lead .hl {
    animation: mark 0.9s cubic-bezier(0.3, 0.6, 0.2, 1) both;
    animation-delay: 0.75s;
  }
  .lead .hl + .hl {
    animation-delay: 1.05s;
  }
  .company-lead .hl {
    animation-delay: 1.2s;
  }
  .company-lead .hl + .hl {
    animation-delay: 1.45s;
  }
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
}
@keyframes mark {
  from {
    background-size: 0% 62%;
  }
}
@media (prefers-reduced-motion: reduce) {
  .sky::before {
    animation: none;
  }
  .button,
  .button svg,
  .button::after {
    transition: none;
  }
  .button:hover,
  .button:focus-visible,
  .button:hover svg,
  .button:focus-visible svg {
    transform: none;
  }
  .button::after {
    display: none;
  }
  .button:hover,
  .button:focus-visible {
    background: var(--brand-2);
  }
}
