/*
 * Sagesse Numérique — Québec-first product engineering
 * A calm, operator-grade interface inspired by the Pixel Wisdom design system.
 */

:root {
  color-scheme: light;
  --bg: #f5f7fb;
  --surface: #ffffff;
  --surface-subtle: #f9fafc;
  --surface-muted: #eef2f6;
  --surface-blue: #eef4ff;
  --ink: #101828;
  --ink-2: #344054;
  --ink-3: #667085;
  --ink-4: #98a2b3;
  --border: #e4e7ec;
  --border-strong: #d0d5dd;
  --blue: #155eef;
  --blue-hover: #004eeb;
  --blue-ink: #1849a9;
  --blue-soft: #d1e0ff;
  --blue-pale: #eff4ff;
  --teal: #0e9384;
  --teal-pale: #e7f8f5;
  --mint: #12b76a;
  --mint-pale: #ecfdf3;
  --navy: #0b1220;
  --navy-2: #111b2e;
  --danger: #b42318;
  --danger-pale: #fef3f2;
  --success: #027a48;
  --success-pale: #ecfdf3;
  --font-display: "Onest", "Avenir Next", sans-serif;
  --font-body: "Onest", "Avenir Next", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --container: 1180px;
  --gutter: clamp(1.15rem, 4vw, 3rem);
  --section: clamp(5.25rem, 9vw, 8rem);
  --radius: 1.5rem;
  --radius-sm: 0.85rem;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.04), 0 1px 4px rgba(16, 24, 40, 0.05);
  --shadow-md: 0 14px 36px rgba(16, 24, 40, 0.08), 0 3px 10px rgba(16, 24, 40, 0.04);
  --shadow-lg: 0 28px 70px rgba(16, 24, 40, 0.14), 0 8px 24px rgba(16, 24, 40, 0.08);
  --header-height: 4.25rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  min-width: 0;
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.menu-open,
body.dialog-open {
  overflow: hidden;
}

::selection {
  background: var(--blue-soft);
  color: var(--blue-ink);
}

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

img {
  height: auto;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid rgba(21, 94, 239, 0.48);
  outline-offset: 4px;
}

h1,
h2,
h3,
p,
figure,
dl,
dd,
ul,
ol {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

.container {
  width: min(100% - (var(--gutter) * 2), var(--container));
  margin-inline: auto;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: -8rem;
  left: var(--gutter);
  z-index: 1000;
  padding: 0.75rem 1rem;
  border: 1px solid var(--blue);
  border-radius: 0.7rem;
  background: var(--surface);
  color: var(--blue-ink);
  font-weight: 700;
  text-decoration: none;
  box-shadow: var(--shadow-md);
}

.skip-link:focus {
  top: 0.75rem;
}

/* Type */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  width: fit-content;
  margin-bottom: 1rem;
  padding: 0.38rem 0.68rem;
  border: 1px solid #b2ccff;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  color: var(--blue-ink);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.055em;
  line-height: 1.2;
  text-transform: uppercase;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.03);
}

.eyebrow::before {
  width: 0.45rem;
  height: 0.45rem;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 4px rgba(21, 94, 239, 0.1);
  content: "";
}

h1,
h2,
h3 {
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 670;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

h1 {
  max-width: 13ch;
  font-size: clamp(3.05rem, 5.8vw, 5.35rem);
  line-height: 1.015;
  letter-spacing: -0.065em;
}

h2 {
  font-size: clamp(2.4rem, 4.4vw, 4rem);
  line-height: 1.05;
}

h3 {
  font-size: clamp(1.65rem, 2.4vw, 2.15rem);
  line-height: 1.14;
}

.section-lede,
.hero-lede {
  max-width: 44rem;
  color: var(--ink-2);
  font-size: clamp(1.08rem, 1.6vw, 1.25rem);
  line-height: 1.58;
}

/* Links and buttons */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  padding: 0.82rem 1.3rem;
  border: 1px solid var(--blue);
  border-radius: 0.8rem;
  background: var(--blue);
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 680;
  letter-spacing: -0.015em;
  line-height: 1.1;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.08), 0 6px 14px rgba(21, 94, 239, 0.2);
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, border-color 180ms ease;
}

.button:hover {
  border-color: var(--blue-hover);
  background: var(--blue-hover);
  transform: translateY(-2px);
  box-shadow: 0 2px 4px rgba(16, 24, 40, 0.08), 0 10px 22px rgba(21, 94, 239, 0.24);
}

.button--ghost {
  border-color: var(--border-strong);
  background: rgba(255, 255, 255, 0.84);
  color: var(--ink-2);
  box-shadow: var(--shadow-sm);
}

.button--ghost:hover {
  border-color: #b2ccff;
  background: var(--surface);
  color: var(--blue-ink);
  box-shadow: var(--shadow-md);
}

.button--compact {
  min-height: 2.65rem;
  padding: 0.66rem 1rem;
  border-radius: 0.7rem;
  font-size: 0.88rem;
}

.nav-action {
  flex: 0 0 10.25rem;
  white-space: nowrap;
}

.button:disabled {
  opacity: 0.65;
  cursor: wait;
  transform: none;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  width: fit-content;
  color: var(--blue-ink);
  font-size: 0.97rem;
  font-weight: 680;
  text-decoration: none;
}

.text-link::after {
  font-size: 0.9em;
  content: "↗";
  transition: transform 180ms ease;
}

.text-link:hover {
  color: var(--blue);
}

.text-link:hover::after {
  transform: translate(2px, -2px);
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(228, 231, 236, 0.85);
  background: rgba(245, 247, 251, 0.88);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
}

.nav-row {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  min-height: var(--header-height);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.72rem;
  flex: 0 0 auto;
  color: var(--ink);
  font-weight: 680;
  letter-spacing: -0.035em;
  line-height: 1;
  text-decoration: none;
}

.brand-mark {
  width: 2.25rem;
  height: 2.25rem;
  max-width: none;
  flex: 0 0 auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 7px rgba(16, 24, 40, 0.16));
  transition: transform 180ms ease, filter 180ms ease;
}

.brand:hover .brand-mark {
  filter: drop-shadow(0 6px 9px rgba(16, 24, 40, 0.2));
  transform: translateY(-1px) rotate(-1deg);
}

.brand-name {
  white-space: nowrap;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: clamp(1.2rem, 2.5vw, 2.2rem);
  margin-left: auto;
}

.desktop-nav a,
.language-link {
  position: relative;
  color: var(--ink-2);
  font-size: 0.9rem;
  font-weight: 620;
  text-decoration: none;
}

.desktop-nav a::after {
  position: absolute;
  right: 0;
  bottom: -0.45rem;
  left: 0;
  height: 2px;
  background: var(--blue);
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.desktop-nav a:hover,
.language-link:hover {
  color: var(--blue-ink);
}

.desktop-nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.language-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.35rem;
  height: 2.35rem;
  border: 1px solid var(--border-strong);
  border-radius: 0.65rem;
  background: rgba(255, 255, 255, 0.72);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
}

.mobile-menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid var(--border-strong);
  border-radius: 0.72rem;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

.mobile-menu-toggle__lines,
.mobile-menu-toggle__lines::before,
.mobile-menu-toggle__lines::after {
  display: block;
  width: 1.15rem;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}

.mobile-menu-toggle__lines {
  position: relative;
}

.mobile-menu-toggle__lines::before,
.mobile-menu-toggle__lines::after {
  position: absolute;
  left: 0;
  content: "";
}

.mobile-menu-toggle__lines::before { transform: translateY(-5px); }
.mobile-menu-toggle__lines::after { transform: translateY(5px); }
.mobile-menu-toggle[aria-expanded="true"] .mobile-menu-toggle__lines { background: transparent; }
.mobile-menu-toggle[aria-expanded="true"] .mobile-menu-toggle__lines::before { transform: rotate(45deg); }
.mobile-menu-toggle[aria-expanded="true"] .mobile-menu-toggle__lines::after { transform: rotate(-45deg); }

.mobile-panel {
  display: none;
  padding: 0.4rem var(--gutter) 1rem;
  border-bottom: 1px solid var(--border);
  background: rgba(245, 247, 251, 0.98);
}

.mobile-panel.is-open {
  display: grid;
}

.mobile-panel a {
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--border);
  color: var(--ink-2);
  font-weight: 650;
  text-decoration: none;
}

.mobile-panel a:last-child {
  border-bottom: 0;
  color: var(--blue-ink);
}

/* Hero */

.hero {
  position: relative;
  display: grid;
  min-height: min(860px, calc(100vh - var(--header-height)));
  align-items: center;
  overflow: hidden;
  padding: clamp(2.25rem, 3.6vw, 3.375rem) 0;
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(circle at 82% 9%, rgba(78, 127, 255, 0.2), transparent 34%),
    radial-gradient(circle at 8% 82%, rgba(18, 183, 106, 0.09), transparent 26%),
    linear-gradient(180deg, #f8faff, var(--bg));
}

.hero::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(21, 94, 239, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(21, 94, 239, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.55), transparent 82%);
  content: "";
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  align-items: center;
  gap: clamp(3rem, 6vw, 6rem);
}

.hero-copy {
  max-width: 47rem;
}

.hero-title__accent {
  position: relative;
  display: inline;
  color: var(--blue);
}

.hero-title__accent::after {
  position: absolute;
  right: 0;
  bottom: -0.07em;
  left: 0;
  height: 0.13em;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue), #53b1fd 70%, transparent);
  content: "";
  transform: rotate(-0.7deg);
}

.hero-lede {
  margin-top: 1.65rem;
}

.hero-lede strong {
  color: var(--ink);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.4rem;
  margin-top: 1.6rem;
  color: var(--ink-3);
  font-family: var(--font-mono);
  font-size: 0.76rem;
}

.hero-meta li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.hero-meta li::before {
  display: grid;
  place-items: center;
  width: 1.05rem;
  height: 1.05rem;
  border-radius: 50%;
  background: var(--mint-pale);
  color: var(--success);
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 800;
  content: "✓";
}

.delivery-console {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(208, 213, 221, 0.9);
  border-radius: 1.35rem;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow-lg);
  transform: perspective(1200px) rotateY(-2deg) rotateX(1deg);
  backdrop-filter: blur(16px);
}

.delivery-console::before {
  position: absolute;
  top: 3.2rem;
  right: -3.5rem;
  width: 9rem;
  height: 9rem;
  border: 1px solid rgba(21, 94, 239, 0.12);
  border-radius: 50%;
  content: "";
  box-shadow: 0 0 0 1.8rem rgba(21, 94, 239, 0.025), 0 0 0 3.6rem rgba(21, 94, 239, 0.018);
}

.console-bar {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 3rem;
  padding: 0 1rem;
  border-bottom: 1px solid var(--border);
  background: rgba(249, 250, 251, 0.9);
  color: var(--ink-3);
  font-family: var(--font-mono);
  font-size: 0.69rem;
  letter-spacing: 0.02em;
}

.console-dots {
  display: inline-flex;
  gap: 0.32rem;
  margin-right: 0.2rem;
}

.console-dots i {
  width: 0.48rem;
  height: 0.48rem;
  border-radius: 50%;
  background: #f97066;
}

.console-dots i:nth-child(2) { background: #fdb022; }
.console-dots i:nth-child(3) { background: #32d583; }

.console-status {
  margin-left: auto;
  padding: 0.25rem 0.48rem;
  border-radius: 999px;
  background: var(--mint-pale);
  color: var(--success);
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
}

.console-summary {
  position: relative;
  padding: clamp(1.25rem, 3vw, 1.8rem);
}

.console-kicker,
.console-label {
  color: var(--ink-3);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.console-summary > strong {
  display: block;
  max-width: 20rem;
  margin-top: 0.5rem;
  font-size: 1.35rem;
  line-height: 1.3;
  letter-spacing: -0.035em;
}

.delivery-track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 1.65rem;
}

.delivery-track::before {
  position: absolute;
  top: 50%;
  right: 8%;
  left: 8%;
  height: 2px;
  background: var(--blue-soft);
  content: "";
}

.delivery-track span {
  position: relative;
  z-index: 1;
  width: 0.72rem;
  height: 0.72rem;
  margin-inline: auto;
  border: 2px solid var(--surface);
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 2px var(--blue-soft);
}

.delivery-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 0.7rem;
  color: var(--ink-3);
  font-family: var(--font-mono);
  font-size: 0.64rem;
  text-align: center;
}

.console-work {
  position: relative;
  padding: 1.25rem clamp(1.25rem, 3vw, 1.8rem) 1.5rem;
  border-top: 1px solid var(--border);
  background: rgba(249, 250, 251, 0.74);
}

.console-list {
  display: grid;
  gap: 0.5rem;
  margin-top: 0.8rem;
}

.console-list li {
  min-width: 0;
}

.console-list a {
  display: grid;
  grid-template-columns: 1.6rem 1fr;
  gap: 0.65rem;
  align-items: center;
  padding: 0.65rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: 0.68rem;
  background: var(--surface);
  color: inherit;
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.console-list a:hover {
  border-color: #b2ccff;
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.console-list a:focus-visible {
  border-color: var(--blue);
  outline: 3px solid var(--blue-soft);
  outline-offset: 2px;
}

.console-list b {
  grid-row: 1 / span 2;
  color: var(--blue);
  font-family: var(--font-mono);
  font-size: 0.68rem;
}

.console-list strong {
  font-size: 0.86rem;
  line-height: 1.2;
}

.console-list span {
  color: var(--ink-3);
  font-size: 0.7rem;
  line-height: 1.25;
}

/* Sections */

.section {
  padding: var(--section) 0;
}

.section-head {
  display: grid;
  gap: 1rem;
  max-width: 52rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.section-head .eyebrow {
  margin-bottom: 0;
}

/* Work */

.work {
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.85), #f8fafc 45%, var(--bg));
}

.project-list {
  display: grid;
  gap: 1.5rem;
}

.project-card {
  --card-accent: var(--blue);
  position: relative;
  overflow: hidden;
  scroll-margin-top: calc(var(--header-height) + 1.5rem);
  padding: clamp(1.65rem, 3.5vw, 2.45rem);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-subtle);
  box-shadow: var(--shadow-sm);
  transition: border-color 220ms ease, transform 220ms ease, box-shadow 220ms ease;
}

.project-card:hover {
  border-color: #c7d7fe;
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.project-card--featured {
  background: var(--surface-subtle);
}

.project-card--featured:hover {
  border-color: #84adff;
  box-shadow: var(--shadow-lg);
}

.project-card--zotero {
  --card-accent: var(--teal);
}

.project-card--phraselang {
  --card-accent: var(--teal);
}

.project-card__meta {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 0.85rem;
  margin-bottom: 1.1rem;
}

.project-card__index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  min-height: 1.65rem;
  padding: 0.18rem 0.45rem;
  border: 1px solid #b2ccff;
  border-radius: 999px;
  background: var(--blue-pale);
  color: var(--blue-ink);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 600;
}

.project-card--zotero .project-card__index {
  border-color: #99f6e0;
  background: #f0fdf9;
  color: #107569;
}

.project-card__type {
  color: var(--ink-3);
  font-size: 0.82rem;
  font-weight: 550;
}

.project-card__split {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 2rem;
  align-items: center;
}

.project-card__body {
  display: grid;
  gap: 0.9rem;
  align-content: start;
}

.project-card__body h3 {
  margin-bottom: -0.05rem;
}

.project-card__body > p {
  max-width: 46rem;
  margin-top: 0;
  color: var(--ink-2);
  font-size: 1rem;
}

.project-card__body > p strong {
  color: var(--ink);
}

.fact-row {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.9rem;
  margin-top: 0.35rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

.fact-row div {
  display: grid;
  gap: 0.15rem;
}

.fact-row dt {
  color: var(--ink-3);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.fact-row dd {
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.42;
}

.bullet-proof {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.6rem;
  margin-top: 0.25rem;
}

.bullet-proof li {
  position: relative;
  padding-left: 1.45rem;
  color: var(--ink-2);
  font-size: 0.92rem;
  line-height: 1.5;
}

.bullet-proof li::before {
  position: absolute;
  top: 0.2em;
  left: 0;
  display: grid;
  place-items: center;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: var(--blue-pale);
  color: var(--card-accent);
  font-size: 0.6rem;
  font-weight: 700;
  content: "✓";
}

.project-card--zotero .bullet-proof li::before {
  background: var(--teal-pale);
  color: var(--teal);
}

.gallery-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  margin-top: 1.45rem;
  padding: 0.8rem 0.9rem;
  border: 1px solid #b2ccff;
  border-radius: 0.78rem;
  background: var(--blue-pale);
  color: var(--blue-ink);
  text-align: left;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.gallery-cta:hover {
  border-color: #84adff;
  background: #e4edff;
  transform: translateY(-2px);
}

.project-card--zotero .gallery-cta {
  border-color: #99ddd2;
  background: var(--teal-pale);
  color: #107569;
}

.gallery-cta__copy {
  display: grid;
  gap: 0.12rem;
}

.gallery-cta__copy strong {
  font-size: 0.88rem;
}

.gallery-cta__copy small {
  color: var(--ink-3);
  font-size: 0.7rem;
}

.gallery-cta__count {
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 0.67rem;
  font-weight: 700;
}

.project-showcase {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(7rem, 0.7fr);
  gap: 0.65rem;
  min-width: 0;
  padding: 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1.15rem;
  background: var(--navy);
  box-shadow: 0 18px 42px rgba(11, 18, 32, 0.2);
}

.project-card--zotero .project-showcase {
  background: #073c38;
}

.project-showcase__rail {
  display: grid;
  gap: 0.65rem;
}

.project-shot {
  position: relative;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  padding: 0;
  border: 0;
  border-radius: 0.75rem;
  background: #182230;
  cursor: pointer;
}

.project-shot::after {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: inherit;
  content: "";
  transition: border-color 180ms ease, background 180ms ease;
}

.project-shot:hover::after {
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(21, 94, 239, 0.08);
}

.project-shot img {
  width: 100%;
  height: 100%;
  min-height: 8rem;
  object-fit: cover;
  transition: transform 260ms ease;
}

.project-shot:hover img {
  transform: scale(1.025);
}

.project-shot--main img {
  aspect-ratio: 1.36 / 1;
}

.project-showcase__rail .project-shot img {
  aspect-ratio: 1.05 / 1;
}

.shot-label {
  position: absolute;
  right: 0.45rem;
  bottom: 0.45rem;
  left: 0.45rem;
  z-index: 2;
  display: flex;
  gap: 0.4rem;
  align-items: center;
  padding: 0.42rem 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 0.48rem;
  background: rgba(11, 18, 32, 0.8);
  color: #ffffff;
  font-size: 0.61rem;
  line-height: 1.2;
  backdrop-filter: blur(12px);
}

.shot-label small {
  color: #84adff;
  font-family: var(--font-mono);
}

.product-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
  align-items: end;
}

.product-gallery figure,
.product-media {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: #e8edf4;
  box-shadow: var(--shadow-md);
}

.product-gallery img {
  width: 100%;
  aspect-ratio: 0.91 / 1;
  object-fit: cover;
  object-position: top;
}

.product-media a {
  display: block;
}

.product-media img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  transition: transform 240ms ease;
}

.project-card--brilleco .product-media {
  align-self: center;
  background: #f4f2e9;
}

.project-card--brilleco .product-media img {
  aspect-ratio: 1200 / 630;
  object-fit: contain;
}

.product-media:hover img {
  transform: scale(1.02);
}

.metric-strip {
  display: grid;
  gap: 0.75rem;
  margin-top: 0.3rem;
  padding: 1rem;
  border: 1px solid #d6e4ff;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.metric-strip div {
  display: grid;
  gap: 0.14rem;
}

.metric-strip strong,
.metric-strip span {
  display: block;
}

.metric-strip strong {
  color: var(--blue-ink);
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 650;
  line-height: 1.2;
  letter-spacing: -0.04em;
}

.metric-strip span {
  color: var(--ink-3);
  font-size: 0.72rem;
  line-height: 1.35;
}

.metric-strip--features strong {
  font-size: 0.92rem;
  letter-spacing: -0.02em;
}

.metric-note {
  color: var(--ink-3) !important;
  font-size: 0.75rem !important;
}

.project-card .text-link {
  margin-top: 1rem;
}

/* Offer */

.offer {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  color: #d0d5dd;
}

.offer::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 12% 12%, rgba(21, 94, 239, 0.28), transparent 26%),
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: auto, 44px 44px, 44px 44px;
  content: "";
}

.offer-grid {
  position: relative;
  display: grid;
  gap: clamp(3rem, 7vw, 6.5rem);
}

.offer .eyebrow,
.contact .eyebrow {
  border-color: rgba(132, 173, 255, 0.35);
  background: rgba(21, 94, 239, 0.12);
  color: #b2ccff;
}

.offer .eyebrow::before,
.contact .eyebrow::before {
  background: #84adff;
  box-shadow: 0 0 0 4px rgba(132, 173, 255, 0.13);
}

.offer h2,
.contact-copy h2 {
  color: #ffffff;
}

.offer-copy p:last-child {
  max-width: 37rem;
  margin-top: 1.35rem;
  color: #98a2b3;
  font-size: 1.08rem;
}

.offer-list {
  display: grid;
  gap: 0.75rem;
}

.offer-list li {
  position: relative;
  display: grid;
  grid-template-columns: 2rem 1fr;
  gap: 0.2rem 0.9rem;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.04);
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.offer-list li:hover {
  border-color: rgba(132, 173, 255, 0.38);
  background: rgba(21, 94, 239, 0.09);
  transform: translateX(4px);
}

.offer-list li::before {
  grid-row: 1 / span 2;
  color: #84adff;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  content: "01";
}

.offer-list li:nth-child(2)::before { content: "02"; }
.offer-list li:nth-child(3)::before { content: "03"; }
.offer-list li:nth-child(4)::before { content: "04"; }

.offer-list strong {
  color: #ffffff;
  font-size: 0.97rem;
}

.offer-list span {
  color: #98a2b3;
  font-size: 0.84rem;
  line-height: 1.45;
}

/* Québec practice */

.local-practice {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  background: var(--surface-blue);
}

.local-practice::after {
  position: absolute;
  top: 50%;
  right: -6rem;
  width: 22rem;
  height: 22rem;
  border: 1px solid rgba(21, 94, 239, 0.1);
  border-radius: 50%;
  content: "";
  transform: translateY(-50%);
  box-shadow: 0 0 0 4rem rgba(21, 94, 239, 0.025), 0 0 0 8rem rgba(21, 94, 239, 0.018);
}

.local-grid {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: clamp(2rem, 6vw, 5rem);
}

.local-copy p:last-child {
  max-width: 35rem;
  margin-top: 1.25rem;
  color: var(--ink-2);
  font-size: 1.08rem;
}

.local-details {
  display: grid;
  gap: 0.75rem;
}

.local-detail {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
  align-items: start;
  padding: 1rem;
  border: 1px solid #c7d7fe;
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow-sm);
}

.local-detail__mark {
  display: grid;
  place-items: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 0.65rem;
  background: var(--blue);
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 0.63rem;
  font-weight: 700;
}

.local-detail strong,
.local-detail span {
  display: block;
}

.local-detail strong {
  font-size: 0.92rem;
}

.local-detail span {
  margin-top: 0.18rem;
  color: var(--ink-3);
  font-size: 0.78rem;
  line-height: 1.4;
}

/* About */

.about {
  background: var(--surface);
}

.about-grid {
  display: flex;
  flex-direction: column;
  gap: clamp(2rem, 7vw, 6rem);
}

.about-title-wrap {
  display: grid;
  align-content: start;
}

.about-portrait {
  width: min(100%, 16rem);
  aspect-ratio: 1 / 1;
  margin-top: 1.6rem;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  box-shadow: var(--shadow-md);
}

.about-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.about-body {
  display: grid;
  gap: 1.2rem;
  max-width: 45rem;
  color: var(--ink-2);
  font-size: 1.08rem;
}

.about-body strong {
  color: var(--ink);
}

.about-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  margin-top: 0.3rem;
}

/* Contact */

.contact {
  position: relative;
  background: var(--navy-2);
  color: #d0d5dd;
}

.contact::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 76% 82%, rgba(18, 183, 106, 0.12), transparent 25%);
  content: "";
}

.contact-grid {
  position: relative;
  display: grid;
  gap: clamp(2.5rem, 7vw, 6rem);
  align-items: start;
}

.contact-copy > p:last-child {
  max-width: 34rem;
  margin-top: 1.25rem;
  color: #98a2b3;
}

.contact-note {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.5rem !important;
  color: #b2ccff !important;
  font-family: var(--font-mono);
  font-size: 0.7rem;
}

.contact-note::before {
  width: 0.48rem;
  height: 0.48rem;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 4px rgba(18, 183, 106, 0.1);
  content: "";
}

.contact-form {
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.055);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(10px);
}

.honeypot-fields {
  contain: strict;
}

.honeypot-fields > * {
  position: absolute;
  inset: 0;
  width: 1px;
  min-width: 0;
  max-width: 1px;
  height: 1px;
  min-height: 0;
  padding: 0;
  margin: 0;
  border: 0;
}

.form-grid {
  display: grid;
  gap: 1rem;
}

.form-field {
  display: grid;
  align-content: start;
  gap: 0.42rem;
}

.form-field--full {
  grid-column: 1 / -1;
}

.form-field label {
  color: #e4e7ec;
  font-size: 0.8rem;
  font-weight: 650;
}

.form-field label span {
  margin-left: 0.25rem;
  color: #98a2b3;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  border: 1px solid #475467;
  border-radius: 0.72rem;
  background: rgba(11, 18, 32, 0.8);
  color: #ffffff;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.form-field input,
.form-field select {
  min-height: 3rem;
  padding: 0.68rem 0.8rem;
}

.form-field textarea {
  min-height: 9rem;
  padding: 0.8rem;
  resize: vertical;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: #667085;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: #84adff;
  background: rgba(11, 18, 32, 0.95);
  box-shadow: 0 0 0 4px rgba(21, 94, 239, 0.16);
}

.form-field input[aria-invalid="true"],
.form-field select[aria-invalid="true"],
.form-field textarea[aria-invalid="true"] {
  border-color: #f97066;
}

.field-error {
  min-height: 1em;
  color: #fda29b;
  font-size: 0.7rem;
}

.form-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-top: 0.2rem;
}

.form-status {
  flex: 1;
  min-width: 14rem;
  color: #b2ccff;
  font-size: 0.76rem;
  line-height: 1.4;
}

.form-status.error {
  color: #fda29b;
}

.form-status.success {
  color: #6ce9a6;
}

.form-noscript {
  margin-bottom: 1rem;
  padding: 0.8rem;
  border: 1px solid #f79009;
  border-radius: 0.7rem;
  background: rgba(247, 144, 9, 0.12);
  color: #fec84b;
  font-size: 0.8rem;
}

/* Footer */

.site-footer {
  padding: 2rem 0;
  background: #070d18;
  color: #98a2b3;
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.2rem 2rem;
}

.site-footer .brand {
  color: #ffffff;
}

.site-footer .brand-mark {
  padding: 0.12rem;
  border-radius: 0.48rem;
  background: #ffffff;
  filter: none;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  margin-left: auto;
}

.footer-links a {
  font-size: 0.78rem;
  text-decoration: none;
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-meta {
  width: 100%;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-family: var(--font-mono);
  font-size: 0.66rem;
}

/* Portfolio gallery */

.gallery-dialog {
  width: min(94vw, 1120px);
  max-width: none;
  max-height: 92vh;
  padding: 0;
  overflow: hidden;
  border: 1px solid #344054;
  border-radius: 1.2rem;
  background: var(--navy);
  color: #ffffff;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.45);
}

.gallery-dialog:not([open]) {
  display: none;
}

.gallery-dialog::backdrop {
  background: rgba(7, 13, 24, 0.82);
  backdrop-filter: blur(8px);
}

.gallery-shell {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  max-height: 92vh;
}

.gallery-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.gallery-title-wrap {
  min-width: 0;
}

.gallery-kicker {
  color: #84adff;
  font-family: var(--font-mono);
  font-size: 0.61rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.gallery-header h2 {
  margin-top: 0.18rem;
  overflow: hidden;
  color: #ffffff;
  font-size: 1.2rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gallery-position {
  margin-left: auto;
  color: #98a2b3;
  font-family: var(--font-mono);
  font-size: 0.68rem;
}

.gallery-close,
.gallery-arrow {
  display: grid;
  place-items: center;
  border: 1px solid #475467;
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  cursor: pointer;
}

.gallery-close {
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border-radius: 0.65rem;
  font-size: 1.2rem;
}

.gallery-close:hover,
.gallery-arrow:hover {
  border-color: #84adff;
  background: rgba(21, 94, 239, 0.16);
}

.gallery-stage {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.8rem;
  align-items: center;
  min-height: 0;
  padding: 1rem;
}

.gallery-arrow {
  width: 2.6rem;
  height: 3.5rem;
  padding: 0;
  border-radius: 0.65rem;
}

.gallery-figure {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border: 1px solid #344054;
  border-radius: 0.8rem;
  background: #070d18;
}

.gallery-image-frame {
  display: grid;
  place-items: center;
  min-height: 0;
  overflow: auto;
}

.gallery-image-frame img {
  width: 100%;
  max-height: 60vh;
  object-fit: contain;
}

.gallery-caption {
  display: grid;
  gap: 0.15rem;
  padding: 0.8rem 1rem;
  border-top: 1px solid #344054;
  background: #111b2e;
}

.gallery-caption strong {
  font-size: 0.86rem;
}

.gallery-caption span {
  color: #98a2b3;
  font-size: 0.72rem;
}

.gallery-thumbs {
  display: flex;
  gap: 0.6rem;
  overflow-x: auto;
  padding: 0.8rem 1rem 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.gallery-thumb {
  flex: 0 0 7rem;
  padding: 0.25rem;
  border: 1px solid #344054;
  border-radius: 0.55rem;
  background: #111b2e;
  cursor: pointer;
}

.gallery-thumb:hover,
.gallery-thumb[aria-current="true"] {
  border-color: #84adff;
}

.gallery-thumb[aria-current="true"] {
  box-shadow: 0 0 0 2px rgba(21, 94, 239, 0.28);
}

.gallery-thumb img {
  width: 100%;
  height: 3.8rem;
  border-radius: 0.35rem;
  object-fit: cover;
}

/* Motion */

[data-load] {
  animation: load-in 700ms cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: var(--delay, 0ms);
}

@keyframes load-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.reveal-ready [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms ease, transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-ready [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* Responsive */

@media (min-width: 640px) {
  .fact-row {
    grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
  }

  .metric-strip {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 700px) {
  .form-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 820px) {
  .offer-grid,
  .contact-grid {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  }

  .local-grid,
  .about-grid {
    flex-direction: row;
    align-items: center;
  }

  .local-grid > :first-child,
  .about-grid > :first-child {
    flex: 9 1 0;
    min-width: 0;
  }

  .local-grid > :last-child,
  .about-grid > :last-child {
    flex: 11 1 0;
    min-width: 0;
  }
}

@media (min-width: 940px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.08fr) minmax(22rem, 0.72fr);
  }

  .project-card--featured .project-card__split {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    align-items: stretch;
    gap: clamp(2.5rem, 5vw, 4rem);
  }

  .project-card--arc .project-card__split,
  .project-card--zotero .project-card__split {
    grid-template-columns: minmax(19rem, 0.78fr) minmax(0, 1.22fr);
    align-items: center;
    gap: clamp(2.25rem, 4.5vw, 4rem);
  }

  .project-card--phraselang .project-card__split {
    grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
    align-items: center;
  }
}

@media (max-width: 900px) {
  .desktop-nav,
  .nav-action,
  .nav-row > .language-link {
    display: none;
  }

  .mobile-menu-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .hero {
    min-height: auto;
  }

  .delivery-console {
    max-width: 38rem;
    transform: none;
  }

  .project-card__split {
    align-items: start;
  }

  .project-showcase,
  .product-gallery,
  .product-media {
    max-width: 42rem;
  }
}

@media (max-width: 680px) {
  :root {
    --header-height: 4.2rem;
  }

  body {
    font-size: 1rem;
  }

  .brand-name {
    font-size: 0.92rem;
  }

  .hero-actions {
    display: grid;
  }

  .hero-actions .button {
    width: 100%;
  }

  .hero-meta {
    display: grid;
  }

  .delivery-console {
    border-radius: 1rem;
  }

  .console-status {
    display: none;
  }

  .fact-row,
  .metric-strip {
    grid-template-columns: 1fr;
  }

  .project-card {
    border-radius: 1.1rem;
  }

  .project-card__meta {
    align-items: flex-start;
  }

  .project-card__type {
    padding-top: 0.35rem;
    line-height: 1.35;
  }

  .project-showcase {
    grid-template-columns: 1fr;
  }

  .project-showcase__rail {
    grid-template-columns: 1fr 1fr;
  }

  .project-showcase__rail .project-shot img {
    aspect-ratio: 1.2 / 1;
  }

  .gallery-cta {
    align-items: flex-start;
  }

  .gallery-cta__count {
    padding-top: 0.15rem;
  }

  .local-detail {
    grid-template-columns: 1fr;
  }

  .footer-row {
    align-items: flex-start;
  }

  .footer-links {
    width: 100%;
    margin-left: 0;
  }

  .gallery-dialog {
    width: 100vw;
    max-height: 100vh;
    border: 0;
    border-radius: 0;
  }

  .gallery-shell {
    max-height: 100vh;
  }

  .gallery-stage {
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
  }

  .gallery-figure {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .gallery-arrow {
    width: 100%;
    height: 2.6rem;
  }

  .gallery-image-frame img {
    max-height: 52vh;
  }

  .gallery-position {
    display: none;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal-ready [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
