/* 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: 1320px;
  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(50px, 8.1vw, 101px); padding-bottom: clamp(43px, 6.3vw, 79px); }

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

.lede { font-size: clamp(18px, 1.6vw, 20px); max-width: 68ch; margin: clamp(32px, 4.5vw, 50px) 0 0; }

/* Figures */
.figures { border-bottom: 1px solid var(--line); }
.figures .wrap { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.figure { padding: 29px 24px 29px 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; }

/* Sections */
section.block { padding: clamp(58px, 8.1vw, 101px) 0; border-bottom: 1px solid var(--line); }
/* The last section sits right above the footer: less space below it */
main > section.block:last-child { padding-bottom: clamp(29px, 3.6vw, 43px); }
.block-head { display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 1fr); gap: 40px; margin-bottom: 43px; }
.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;
  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: 25px 28px 7px 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); }

.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; }
.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(50px, 7.2vw, 86px) 0 clamp(18px, 2.7vw, 32px); }
.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 43px; max-width: none; }
/* Same two-column grid as the home sections: heading left, text right.
   Running text keeps a readable line length (about 75 characters). */
.legal-body { display: grid; gap: 0; border-top: 1px solid var(--line); }
.legal-body section { display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 1fr); gap: 40px; padding: 25px 0; border-bottom: 1px solid var(--line); }
.legal-body section > div { max-width: 75ch; }
.legal-body h2 { font-family: var(--font-body); font-weight: 700; font-size: 18px; line-height: 1.4; letter-spacing: 0; margin: 0; }
.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); }

/* Sticky header, desktop only, at one fixed height. (A shrink-on-scroll version made the logo
   jitter at the top edge: the height change moved the page across the scroll threshold and back.) */
@media (min-width: 961px) {
  header.site { position: sticky; top: 0; z-index: 50; background: var(--navy); }
  header.site .wrap { height: 68px; }
  .logo img { height: 34px; }
  section[id], article[id] { scroll-margin-top: 68px; }
}

/* Legal notice: justified block text. Hyphenation keeps the word gaps even;
   it uses the page language (lang="en" / lang="de-CH"). Phones stay left-aligned. */
@media (min-width: 561px) {
  .legal-body p {
    text-align: justify;
    hyphens: auto;
    -webkit-hyphens: auto;
    hyphenate-limit-chars: 7 3 3;
  }
}

/* Responsive */
@media (max-width: 960px) {
  nav.main { display: none; }
}
@media (max-width: 860px) {
  .block-head, .split, .contact, .legal-body section { grid-template-columns: 1fr; }
  .legal-body section { gap: 10px; }
  .models { grid-template-columns: 1fr; }
  .model, .model + .model { padding: 22px 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: 20px 0; border-right: none; border-bottom: 1px solid var(--line); }
  .figure:last-child { border-bottom: none; }
  .portfolio { grid-template-columns: 1fr; }
}
