/* ============================================================
   Nicolas Dupuis — pitch site
   Blend: SharkNinja high-contrast bold + personal accent #2E5A88
   ============================================================ */

:root {
  --ink: #0a0a0a;
  --ink-soft: #1a1a1a;
  --gray: #555555;
  --gray-light: #8a8a8a;
  --line: #e7e7e7;
  --line-dark: #2a2a2a;
  --paper: #ffffff;
  --paper-warm: #f7f6f4;
  --accent: #2e5a88;
  --accent-bright: #3d72ad;
  --maxw: 1120px;
  --pad: clamp(20px, 5vw, 56px);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink-soft);
  background: var(--paper);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }

a { color: var(--accent); text-decoration: none; }

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 12px 18px;
  z-index: 200;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ---------- Shared type ---------- */
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  margin: 0 0 18px;
}
.eyebrow--light { color: var(--accent-bright); }

.section__title {
  font-size: clamp(28px, 4.4vw, 46px);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 48px;
  max-width: 16ch;
}
.section__title--light { color: #fff; }

.dot {
  display: inline-block;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.4;
  margin: 0 12px;
  vertical-align: middle;
}
.dot--mid { margin: 0 10px; }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.nav__brand {
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.01em;
  font-size: 17px;
  display: inline-flex;
  align-items: center;
}
.nav__mark {
  width: 8px; height: 8px;
  background: var(--accent);
  margin-left: 7px;
  display: inline-block;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 30px;
}
.nav__links a {
  color: var(--gray);
  font-weight: 500;
  font-size: 15px;
  transition: color 0.15s ease;
}
.nav__links a:hover { color: var(--ink); }
.nav__cta {
  color: var(--ink) !important;
  font-weight: 700 !important;
  border: 1.5px solid var(--ink);
  padding: 8px 16px;
  border-radius: 2px;
  transition: background 0.15s ease, color 0.15s ease !important;
}
.nav__cta:hover {
  background: var(--ink);
  color: #fff !important;
}

/* ---------- Hero ---------- */
.hero {
  background: var(--ink);
  color: #fff;
  padding: clamp(32px, 4.5vw, 52px) 0 clamp(40px, 5vw, 60px);
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  right: -160px; top: -160px;
  width: 460px; height: 460px;
  background: radial-gradient(circle, rgba(46,90,136,0.45), transparent 68%);
  pointer-events: none;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero__title {
  font-size: clamp(38px, 5.4vw, 60px);
  line-height: 1.03;
  font-weight: 900;
  letter-spacing: -0.03em;
  margin: 0 0 20px;
  text-wrap: balance;
}
.hero__tagline {
  font-size: clamp(13px, 1.6vw, 15px);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #cfd6de;
  margin: 0 0 18px;
  line-height: 1.7;
}
.hero__lede {
  font-size: clamp(15px, 1.7vw, 18px);
  color: #c7ccd2;
  max-width: 54ch;
  margin: 0 0 26px;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 22px;
}
.hero__local {
  font-size: 14px;
  color: var(--gray-light);
  margin: 0;
}

.hero__portrait {
  margin: 0;
  position: relative;
}
.hero__portrait img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 3px;
  filter: grayscale(100%) contrast(1.04);
  border: 1px solid var(--line-dark);
}
.hero__portrait::before {
  content: "";
  position: absolute;
  left: -14px; bottom: -14px;
  width: 70px; height: 70px;
  background: var(--accent);
  z-index: -1;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-weight: 700;
  font-size: 15px;
  padding: 14px 26px;
  border-radius: 2px;
  border: 1.5px solid transparent;
  transition: transform 0.12s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  letter-spacing: 0.01em;
}
.btn:active { transform: translateY(1px); }
.btn--primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn--primary:hover { background: var(--accent-bright); border-color: var(--accent-bright); }
.btn--ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.34);
}
.btn--ghost:hover { border-color: #fff; background: rgba(255,255,255,0.06); }

/* ---------- Sections ---------- */
.section {
  padding: clamp(64px, 9vw, 120px) 0;
}
.section--dark {
  background: var(--ink);
  color: #e9ebee;
}
.section--rule {
  padding-top: 0;
}
.section--rule .wrap { border-top: 1px solid var(--line); padding-top: clamp(56px, 8vw, 96px); }

/* ---------- Pillars ---------- */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(28px, 4vw, 52px);
}
.pillar { position: relative; }
.pillar__num {
  font-size: 13px;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: 0.1em;
}
.pillar__title {
  font-size: clamp(20px, 2.4vw, 25px);
  font-weight: 800;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 12px 0 16px;
  line-height: 1.15;
}
.pillar p { color: var(--gray); margin: 0 0 16px; }
.pillar__evidence {
  color: var(--ink-soft) !important;
  font-weight: 500;
  border-left: 3px solid var(--accent);
  padding-left: 16px;
  margin-top: 4px !important;
}

/* ---------- Cards (selected work) ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(18px, 2.4vw, 28px);
}
.card {
  background: #131313;
  border: 1px solid var(--line-dark);
  border-radius: 4px;
  padding: clamp(26px, 3vw, 38px);
  transition: transform 0.18s ease, border-color 0.18s ease;
}
.card:hover { transform: translateY(-3px); border-color: var(--accent); }
.card__stat {
  font-size: clamp(34px, 5vw, 52px);
  font-weight: 900;
  letter-spacing: -0.03em;
  color: #fff;
  line-height: 1;
  margin: 0 0 18px;
}
.card__stat-unit {
  font-size: 15px;
  font-weight: 600;
  color: var(--gray-light);
  letter-spacing: 0;
  margin-left: 4px;
}
.card__title {
  font-size: 19px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 12px;
}
.card__body { color: #aeb4bb; margin: 0; font-size: 16px; }

/* ---------- On AI ---------- */
.ai { max-width: 760px; }
.ai__lead {
  font-size: clamp(18px, 2.3vw, 22px);
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 30px;
  line-height: 1.4;
}
.ai__list {
  list-style: none;
  padding: 0;
  margin: 0 0 30px;
  display: grid;
  gap: 18px;
}
.ai__list li {
  color: var(--gray);
  padding-left: 22px;
  position: relative;
}
.ai__list li::before {
  content: "";
  position: absolute;
  left: 0; top: 10px;
  width: 9px; height: 9px;
  background: var(--accent);
}
.ai__list strong { color: var(--ink); font-weight: 700; }
.ai__built {
  border-top: 1px solid var(--line);
  padding-top: 26px;
  margin-bottom: 22px;
}
.ai__built-label {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  margin: 0 0 16px;
}
.projects {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.project {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.project:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}
.project__shot {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 200px;
  padding: 16px;
  background: var(--paper-warm);
  border-bottom: 1px solid var(--line);
}
.project__shot img {
  max-height: 100%;
  width: auto;
  max-width: 100%;
  border-radius: 3px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
}
.project__name {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-weight: 700;
  color: var(--ink);
  font-size: 16px;
  padding: 16px 18px 4px;
  line-height: 1.25;
}
.project__arrow {
  color: var(--accent);
  font-weight: 700;
  transition: transform 0.15s ease;
}
.project:hover .project__arrow { transform: translate(2px, -2px); }
.project__desc {
  color: var(--gray);
  font-size: 14px;
  padding: 0 18px 18px;
}
.ai__note {
  font-size: 14px;
  color: var(--gray-light);
  font-style: italic;
  margin: 0;
}

/* ---------- Bridge ---------- */
.bridge { max-width: 720px; }
.bridge p {
  font-size: clamp(17px, 2vw, 20px);
  color: var(--ink-soft);
  margin: 0;
  line-height: 1.55;
}

/* ---------- Contact ---------- */
.contact__title { max-width: 18ch; }
.contact__links {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line-dark);
  border: 1px solid var(--line-dark);
  border-radius: 4px;
  overflow: hidden;
}
.contact__link {
  background: var(--ink);
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: background 0.15s ease;
}
.contact__link:hover { background: #161616; }
.contact__label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 700;
  color: var(--accent-bright);
}
.contact__value {
  color: #fff;
  font-weight: 600;
  font-size: 17px;
  word-break: break-word;
}
.contact__link--download .contact__value { color: var(--accent-bright); }

/* ---------- Footer ---------- */
.footer {
  background: var(--ink);
  border-top: 1px solid var(--line-dark);
  padding: 28px 0;
  color: #9aa0a7;
}
.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  flex-wrap: wrap;
  gap: 8px;
}
.footer span:first-child { color: #fff; font-weight: 700; }
.footer__muted { color: var(--gray-light); }

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__portrait {
    max-width: 320px;
    order: -1;
    margin-bottom: 8px;
  }
  .pillars { grid-template-columns: 1fr; gap: 36px; }
  .cards { grid-template-columns: 1fr; }
  .projects { grid-template-columns: 1fr; }
  .contact__links { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 620px) {
  .nav__links { gap: 16px; }
  .nav__links a:not(.nav__cta) { display: none; }
  .contact__links { grid-template-columns: 1fr; }
  body { font-size: 16px; }
}
