/* gilbertval.fr — technical builder. One sans (Inter), one mono (JetBrains Mono). */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/assets/fonts/inter-latin.woff2") format("woff2");
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("/assets/fonts/jetbrains-mono-latin.woff2") format("woff2");
}

:root {
  --bg: #f6f7f8;
  --ink: #16191d;
  --muted: #5d6771;
  --faint: #8a939c;
  --border: #d9dde1;
  --border-strong: #c6ccd2;
  --green: #1a7f37;
  --green-dot: #2da44e;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --container: 1160px;
  --pad: 40px;
}

* { box-sizing: border-box; }

html { height: 100%; }

body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: var(--pad);
}

a { color: inherit; }

/* ---------- top nav ---------- */

.nav { border-bottom: 1px solid var(--border); }

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-decoration: none;
}

.social {
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.social a {
  font-size: 14px;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s ease;
}

.social a:hover,
.social a:focus-visible {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-thickness: 1px;
}

/* ---------- hero ---------- */


.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4.4fr);
  gap: clamp(48px, 7vw, 96px);
  align-items: center;
  padding-block: clamp(32px, 5vh, 48px) clamp(40px, 6vh, 64px);
  width: 100%;
}

.status {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 28px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: var(--muted);
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green-dot);
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(45, 164, 78, 0.35); }
  50%      { box-shadow: 0 0 0 5px rgba(45, 164, 78, 0); }
}

h1 {
  margin: 0 0 28px;
  font-size: clamp(52px, 5.8vw, 82px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.035em;
}

.lede {
  margin: 0 0 32px;
  max-width: 34em;
  font-size: 18px;
  line-height: 1.65;
  color: var(--muted);
}

.lede strong { color: var(--ink); font-weight: 600; }

.labels {
  margin: 0 0 44px;
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--ink);
}

.labels span { color: var(--faint); }

.cta-row { margin: 0; }

.cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  background: var(--ink);
  color: var(--bg);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  border-radius: 4px;
  transition: background 0.15s ease;
}

.cta:hover,
.cta:focus-visible { background: #000; }

.cta .arrow {
  transition: transform 0.18s ease;
}

.cta:hover .arrow,
.cta:focus-visible .arrow { transform: translateX(4px); }

/* ---------- portrait ---------- */

.portrait { margin: 0; }

.portrait img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border: 1px solid var(--border-strong);
  filter: grayscale(1) contrast(1.04);
}

.portrait figcaption {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--faint);
}

/* ---------- metrics ---------- */

.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 0;
  border-top: 1px solid var(--border);
  padding-block: 30px 44px;
}

.metrics > div {
  display: flex;
  flex-direction: column;
  padding-inline: 28px;
  border-left: 1px solid var(--border);
}

.metrics > div:first-child {
  padding-left: 0;
  border-left: none;
}

.metrics dd {
  order: 1;
  margin: 0;
  font-size: 30px;
  font-weight: 650;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.metrics dt {
  order: 2;
  margin-top: 6px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--muted);
}

/* ---------- footer ---------- */

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

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-block: 18px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--faint);
}

/* ---------- responsive ---------- */

@media (max-width: 1100px) {
  h1 { font-size: clamp(48px, 6.2vw, 68px); }
  .metrics > div { padding-inline: 20px; }
}

@media (max-width: 860px) {
  :root { --pad: 24px; }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 48px;
    align-items: start;
    padding-block: 56px 64px;
  }

  h1 { font-size: clamp(44px, 11vw, 60px); }

  .lede { font-size: 17px; }

  .portrait { max-width: 440px; }

  .metrics {
    grid-template-columns: 1fr 1fr;
    gap: 28px 0;
    padding-block: 28px 36px;
  }

  .metrics > div:nth-child(odd) {
    padding-left: 0;
    border-left: none;
  }

  .metrics > div:nth-child(even) { padding-inline: 24px; }

  .metrics dd { font-size: 26px; }
}

@media (max-width: 480px) {
  .nav-inner { height: 56px; }
  .social { gap: 18px; }
  .social a { font-size: 13px; }
  .status { margin-bottom: 22px; }
  h1 { margin-bottom: 22px; }
  .footer-inner { flex-direction: column; gap: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  .dot { animation: none; }
  .cta .arrow, .cta, .social a { transition: none; }
}
