/* Crovax Capital site styles, shared by the EN and DE pages.
   Brand palette: navy #1e2a3a, white #fefefe, grey #8e939b. Lines and panels are tints of these three.
   Type, both self-hosted (no third-party requests): Archivo Black for headlines and figures,
   DM Sans for text, labels and buttons. */

@font-face {
  font-family: "Archivo Black";
  src: url("fonts/archivo-black.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("fonts/dm-sans.woff") format("woff");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy: #1e2a3a;
  --white: #fefefe;
  --grey: #8e939b;
  --line: color-mix(in srgb, var(--grey) 30%, var(--navy));
  --grid: color-mix(in srgb, var(--grey) 16%, var(--navy));
  --panel: color-mix(in srgb, var(--white) 4%, var(--navy));
  --font-display: "Archivo Black", "Helvetica Neue", Arial, sans-serif;
  --font-body: "DM Sans", "Helvetica Neue", Arial, sans-serif;
  --max: 1160px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  font-synthesis: none;
}
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--white); outline-offset: 3px; }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px); }

/* Display type: Archivo Black has a single weight, so never ask for bold */
h1, h2, .figure .num, .email, .legal-title {
  font-family: var(--font-display);
  font-weight: 400;
}

/* Labels: small, semi-bold, sentence case */
.label { font-family: var(--font-body); font-weight: 600; font-size: 14px; letter-spacing: 0.01em; }

/* Header */
header.site { border-bottom: 1px solid var(--line); }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 76px; }
.logo img { height: 36px; width: auto; }
.header-right { display: flex; align-items: center; gap: 32px; }
nav.main { display: flex; gap: 28px; }
nav.main a { text-decoration: none; color: var(--grey); font-size: 15px; }
nav.main a:hover { color: var(--white); }
.lang { display: flex; gap: 2px; font-size: 14px; font-weight: 600; }
.lang a, .lang span { padding: 4px 8px; text-decoration: none; color: var(--grey); border: 1px solid transparent; }
.lang a:hover { color: var(--white); }
.lang [aria-current="true"] { color: var(--white); border-color: var(--line); }

/* Hero */
.hero {
  position: relative;
  border-bottom: 1px solid var(--line);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 48px 48px;
  background-position: -1px -1px;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, color-mix(in srgb, var(--navy) 40%, transparent), var(--navy) 92%);
  pointer-events: none;
}
.hero .wrap { position: relative; padding-top: clamp(56px, 9vw, 112px); padding-bottom: clamp(48px, 7vw, 88px); }

h1 {
  font-size: clamp(38px, 6.8vw, 88px);
  line-height: 1.02;
  letter-spacing: -0.015em;
  margin: 0;
  max-width: 1000px;
  text-wrap: balance;
  hyphens: manual;
}
h1 em { font-style: normal; color: var(--grey); }

.lede { font-size: clamp(18px, 1.6vw, 20px); max-width: 58ch; margin: clamp(36px, 5vw, 56px) 0 0; }

/* Figures */
.figures { border-bottom: 1px solid var(--line); }
.figures .wrap { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.figure { padding: 32px 24px 32px 0; border-right: 1px solid var(--line); }
.figure + .figure { padding-left: 24px; }
.figure:last-child { border-right: none; }
.figure .num { font-size: clamp(36px, 4.4vw, 54px); line-height: 1; font-variant-numeric: tabular-nums; }
.figure p { margin: 10px 0 0; color: var(--grey); font-size: 15px; max-width: 30ch; }

/* Sections */
section.block { padding: clamp(64px, 9vw, 112px) 0; border-bottom: 1px solid var(--line); }
.block-head { display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 1fr); gap: 40px; margin-bottom: 48px; }
.block-head .label { color: var(--grey); padding-top: 10px; border-top: 1.5px solid var(--white); }
h2 {
  font-size: clamp(26px, 3.3vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0;
  max-width: 24ch;
  text-wrap: balance;
}
h3 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 21px;
  line-height: 1.3;
  margin: 0 0 10px;
}

.models { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.model { padding: 28px 28px 8px 0; }
.model + .model { padding-left: 28px; border-left: 1px solid var(--line); }
.model .label { color: var(--grey); display: block; margin-bottom: 14px; }
.model p { margin: 0; color: var(--grey); max-width: 40ch; }

.portfolio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.platform { background: var(--navy); padding: 28px; display: flex; flex-direction: column; gap: 10px; text-decoration: none; transition: background-color 160ms ease; }
.platform:hover { background: var(--panel); }
.platform h3 { margin: 0; }
.platform p { margin: 0; color: var(--grey); }
.platform .cat { color: var(--grey); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; min-height: 20px; line-height: 18px; }
.platform .url { margin-top: auto; padding-top: 10px; font-weight: 500; color: var(--white); }
.platform:hover .url { text-decoration: underline; text-underline-offset: 4px; }
.chip { border: 1px solid var(--grey); color: var(--white); padding: 0 7px; font-size: 12px; font-weight: 500; line-height: 18px; }

.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 4vw, 48px); }
.card { background: var(--panel); border: 1px solid var(--line); padding: clamp(24px, 3.5vw, 40px); display: flex; flex-direction: column; gap: 14px; }
.card .label { color: var(--grey); }
.card p { margin: 0; max-width: 52ch; }
.card a.go { margin-top: auto; padding-top: 12px; font-weight: 600; text-decoration: underline; text-decoration-color: var(--grey); text-underline-offset: 5px; }
.card a.go:hover { text-decoration-color: var(--white); }

/* Contact */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.contact .lede { margin: 0; }
.email-box { display: grid; gap: 12px; justify-items: start; }
.email-box .label { color: var(--grey); }
.email {
  font-size: clamp(26px, 3.4vw, 40px);
  line-height: 1.1;
  text-decoration: underline;
  text-decoration-color: var(--grey);
  text-decoration-thickness: 2px;
  text-underline-offset: 8px;
  overflow-wrap: anywhere;
}
.email:hover { text-decoration-color: var(--white); }
.copy {
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  color: var(--white);
  background: transparent;
  border: 1px solid var(--line);
  padding: 9px 18px;
  cursor: pointer;
  margin-top: 8px;
}
.copy:hover { border-color: var(--white); }
.copy-status { color: var(--grey); font-size: 14px; min-height: 1.4em; }

/* Legal notice view */
.legal { padding: clamp(56px, 8vw, 96px) 0; }
.legal .back { display: inline-block; margin-bottom: 40px; color: var(--grey); text-decoration: none; }
.legal .back:hover { color: var(--white); }
.legal-title { font-size: clamp(34px, 4.6vw, 56px); line-height: 1.05; letter-spacing: -0.015em; margin: 0 0 48px; max-width: none; }
.legal-body { display: grid; gap: 36px; max-width: 72ch; }
.legal-body h2 { font-family: var(--font-body); font-weight: 700; font-size: 21px; letter-spacing: 0; max-width: none; margin: 0 0 10px; }
.legal-body p { margin: 0; color: var(--grey); }
.legal-body p + p { margin-top: 10px; }
.legal-body strong { color: var(--white); font-weight: 600; }
.legal-body a { text-decoration-color: var(--grey); text-underline-offset: 4px; }

/* Footer */
footer.site { padding: 28px 0 40px; color: var(--grey); font-size: 14px; }
footer.site .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; }
footer.site .social { display: flex; flex-wrap: wrap; gap: 12px 24px; }
footer.site a { text-decoration: none; }
footer.site a:hover { color: var(--white); }

/* Responsive */
@media (max-width: 960px) {
  nav.main { display: none; }
}
@media (max-width: 860px) {
  .block-head, .split, .contact { grid-template-columns: 1fr; }
  .models { grid-template-columns: 1fr; }
  .model, .model + .model { padding: 24px 0; border-left: none; border-bottom: 1px solid var(--line); }
  .block-head { gap: 16px; }
  .portfolio { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .figures .wrap { grid-template-columns: 1fr; }
  .figure, .figure + .figure { padding: 22px 0; border-right: none; border-bottom: 1px solid var(--line); }
  .figure:last-child { border-bottom: none; }
  .portfolio { grid-template-columns: 1fr; }
}
