/* Pearl & Polder Technologies: one stylesheet, no framework. Colours come from the logo: deep navy + brushed silver. */

@font-face {
  font-family: "Red Hat Display";
  src: url("/fonts/red-hat-display.woff2") format("woff2");
  font-weight: 300 900;
  font-display: swap;
}

:root {
  --bg: #050a1c;
  --bg-2: #08102a;
  --surface: rgba(197, 203, 224, 0.04);
  --line: rgba(197, 203, 224, 0.12);
  --text: #f4f6fb;
  --muted: #a3abc2;
  --dim: #6f7894;
  --silver: linear-gradient(115deg, #ffffff 0%, #dfe3ee 35%, #a9b1c8 70%, #e9ecf5 100%);
  --accent: #9fb1e6;
  --radius: 18px;
  --wrap: 1160px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Red Hat Display", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; letter-spacing: -0.02em; line-height: 1.12; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--text); color: var(--bg); padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* ---------- buttons & bits ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 30px; border-radius: 999px;
  background: var(--silver); color: #0a1230;
  font-weight: 600; font-size: 16px; text-decoration: none; letter-spacing: 0.005em;
  box-shadow: 0 8px 30px -10px rgba(197, 210, 255, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 12px 36px -10px rgba(197, 210, 255, 0.6), inset 0 1px 0 #fff; }
.btn--sm { padding: 9px 20px; font-size: 15px; }
.btn--ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1px rgba(197, 203, 224, 0.35); }

.eyebrow {
  margin-bottom: 18px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--accent);
}
.silver { background: var(--silver); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { color: var(--muted); font-size: 19px; line-height: 1.7; }

/* ---------- navigation ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(5, 10, 28, 0.72);
  -webkit-backdrop-filter: saturate(140%) blur(14px); backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand__mark { width: 34px; height: auto; }
.brand__text { display: flex; flex-direction: column; line-height: 1; padding-left: 12px; border-left: 1px solid var(--line); }
.brand__name { font-size: 19px; font-weight: 400; letter-spacing: -0.01em; }
.brand__sub { margin-top: 5px; font-size: 8.5px; font-weight: 500; letter-spacing: 0.42em; text-transform: uppercase; color: var(--muted); }
.nav__links { display: flex; align-items: center; gap: 36px; }
.nav__links a:not(.btn) { font-size: 15px; font-weight: 500; text-decoration: none; color: var(--muted); transition: color 0.2s; }
.nav__links a:not(.btn):hover { color: var(--text); }

/* ---------- hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  padding: 110px 0 100px; text-align: center;
  background: radial-gradient(ellipse 70% 60% at 80% 0%, rgba(30, 48, 120, 0.35), transparent 70%), var(--bg);
}
.hero__bands { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero__inner { display: flex; flex-direction: column; align-items: center; }
.hero h1 { max-width: 920px; font-size: clamp(40px, 6.4vw, 76px); font-weight: 500; letter-spacing: -0.035em; }
.hero .dot { color: var(--accent); }
.hero .lede { max-width: 660px; margin-top: 28px; }
.hero__cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 40px; }

.facts {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px;
  width: 100%; max-width: 860px; margin-top: 96px;
}
.facts li { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.facts strong {
  font-size: clamp(40px, 5vw, 56px); font-weight: 400; line-height: 1; letter-spacing: -0.03em;
  background: var(--silver); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.facts span { font-size: 14px; color: var(--accent); }
.statement { max-width: 640px; margin-top: 72px; font-size: 19px; line-height: 1.75; color: var(--text); opacity: 0.9; }

/* ---------- sections ---------- */
.section { padding: 120px 0; border-top: 1px solid var(--line); }
.section--alt { background: linear-gradient(180deg, var(--bg-2), var(--bg)); }
.section h2 { font-size: clamp(32px, 4.2vw, 48px); }
.section__title { max-width: 680px; margin-bottom: 56px; }

.split { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: start; }
.prose p { color: var(--muted); font-size: 18px; }
.prose p + p { margin-top: 20px; }

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; counter-reset: none; }
.card {
  position: relative; padding: 36px 32px 38px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line);
  transition: border-color 0.25s, transform 0.25s;
}
.card:hover { border-color: rgba(197, 203, 224, 0.28); transform: translateY(-2px); }
.card__num { display: block; margin-bottom: 44px; font-size: 14px; font-weight: 600; letter-spacing: 0.1em; color: var(--accent); }
.card h3 { font-size: 24px; margin-bottom: 12px; }
.card p { color: var(--muted); font-size: 16px; }

/* ---------- portfolio ---------- */
.portfolio { display: grid; grid-template-columns: 1.7fr 1fr; gap: 20px; }
.venture {
  position: relative; overflow: hidden; padding: 44px 40px; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--surface);
  display: flex; flex-direction: column; align-items: flex-start; gap: 16px;
}
.venture h3 { font-size: clamp(30px, 3.4vw, 40px); }
.venture p { color: var(--muted); max-width: 560px; }
.venture--featured {
  background:
    radial-gradient(ellipse 80% 90% at 100% 0%, rgba(40, 62, 150, 0.35), transparent 65%),
    linear-gradient(160deg, rgba(197, 203, 224, 0.07), rgba(197, 203, 224, 0.02));
  border-color: rgba(197, 203, 224, 0.2);
}
.venture--featured::after {
  /* thin silver edge along the top */
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
}
.venture__head { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.venture__sector { font-size: 14px; color: var(--dim); }
.venture--next { border-style: dashed; background: transparent; justify-content: flex-end; }
.venture--next h3 { color: var(--muted); }
.tag {
  display: inline-block; padding: 5px 12px; border-radius: 999px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  background: var(--silver); color: #0a1230;
}
.tag--muted { background: transparent; color: var(--muted); box-shadow: inset 0 0 0 1px var(--line); }
.link { margin-top: 12px; font-weight: 600; text-decoration: none; color: var(--text); border-bottom: 1px solid rgba(197, 203, 224, 0.35); padding-bottom: 3px; transition: border-color 0.2s; }
.link:hover { border-color: var(--text); }

/* ---------- contact ---------- */
.contact { text-align: center; background: radial-gradient(ellipse 60% 70% at 50% 100%, rgba(30, 48, 120, 0.4), transparent 70%); }
.contact__inner { display: flex; flex-direction: column; align-items: center; }
.contact__mark { width: 64px; height: auto; margin-bottom: 32px; opacity: 0.95; }
.contact .lede { max-width: 540px; margin: 20px 0 36px; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 72px 0 32px; font-size: 15px; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; }
.footer__brand img { width: 230px; height: auto; }
.footer__brand p { margin-top: 18px; color: var(--muted); max-width: 280px; }
.footer h4 { margin-bottom: 18px; font-size: 15px; font-weight: 500; color: var(--dim); letter-spacing: 0; }
.footer li + li { margin-top: 10px; }
.footer a { text-decoration: none; color: var(--text); opacity: 0.9; }
.footer a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
.footer__details li { color: var(--muted); }
.footer__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--line);
  font-size: 13px; color: var(--dim);
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .split, .portfolio { grid-template-columns: 1fr; gap: 28px; }
  .steps { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
  .section { padding: 88px 0; }
}
@media (max-width: 720px) {
  .wrap { padding: 0 16px; }
  .nav__inner { height: 64px; }
  .nav__links li:not(:last-child) { display: none; }
  .brand__name { font-size: 17px; }
  .hero { padding: 72px 0 72px; }
  .lede { font-size: 17px; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; margin-top: 64px; }
  .statement { margin-top: 56px; font-size: 17px; }
  .venture { padding: 32px 24px; }
  .card { padding: 28px 24px 30px; }
  .card__num { margin-bottom: 28px; }
}
@media (max-width: 360px) {
  .footer__grid { grid-template-columns: 1fr; }
  .brand__text { display: none; }
}

/* ---------- 404 ---------- */
.notfound { min-height: 100vh; display: flex; align-items: center; border-top: 0; }
