/* Agence French Toast, content + creative agency
   Space Grotesk, mono micro-labels and hairline rules carried from the
   Tanaka Chiriga portfolio, recoloured onto the Indigo Velvet palette:
   indigo ground, Indigo Velvet panels, Amber Flame action,
   Tiger Orange micro-labels, Medium Slate Blue hairlines,
   Cayenne Red marks. */

:root {
  /* Indigo Velvet palette.
     #3d348b Indigo Velvet, #7678ed Medium Slate Blue, #f7b801 Amber Flame,
     #f18701 Tiger Orange, #f35b04 Cayenne Red.
     The ground is Indigo Velvet taken one step deeper so every warm accent
     above clears AA against it; #3d348b itself carries the panels. */
  --bg: #2f2a6b;
  --ink: #f6f5ff;
  --muted: #c8c8f2;
  --faint: #a6a7ef;
  --rule: color-mix(in srgb, #7678ed 45%, #2f2a6b);
  --panel: #3d348b;
  --card: color-mix(in srgb, #3d348b 55%, #2f2a6b);
  --ink-soft: #e8e7ff;
  --accent: #f7b801;
  --accent-ink: #2f2a6b;
  --accent-2: #f18701;
  --mark: #f35b04;
  --shadow: rgba(0,0,0,.6);
  --maxw: 1200px;
  --pad: clamp(24px, 4vw, 56px);
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  --display: "Agbalumo", "Space Grotesk", system-ui, sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Space Grotesk", system-ui, -apple-system, "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 { font-family: var(--display); font-weight: 400; font-synthesis: none; letter-spacing: 0; }

a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 2px;
}
img, video { max-width: 100%; display: block; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); }
.eyebrow {
  font-family: var(--mono);
  font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent-2);
}

/* ---------- Header ---------- */
header.site {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(140%) blur(8px);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--rule);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.nav .name {
  font-weight: 600; letter-spacing: -0.01em; font-size: 16px;
  display: inline-flex; align-items: center; gap: 9px; white-space: nowrap;
}
.nav .name .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--mark); }
.nav .links { display: flex; gap: 28px; align-items: center; }
@media (max-width: 1060px) and (min-width: 921px) {
  .nav .links { gap: 18px; }
  .nav .links a { font-size: 13px; }
  .nav .links a.cta { padding: 8px 14px; }
}
.nav .links a {
  font-size: 14px; color: var(--muted);
  transition: color .15s ease;
}
.nav .links a:hover { color: var(--ink); }
.nav .links a.cta {
  color: var(--ink); border: 1px solid var(--accent);
  padding: 8px 14px; border-radius: 999px;
}
.nav .links a.cta:hover { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.nav .links a.lang {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em;
  border: 1px solid var(--rule); border-radius: 999px; padding: 6px 11px;
  transition: border-color .15s ease, color .15s ease;
}
.nav .links a.lang:hover { border-color: var(--accent); color: var(--accent); }
.arrow::after { content: " ↗"; font-feature-settings: normal; }

/* Visually hidden, still read by assistive tech */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Hamburger */
.nav-toggle {
  display: none; background: transparent; border: 0;
  padding: 10px; margin-right: -10px; cursor: pointer; color: var(--ink);
}
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block; width: 22px; height: 1.5px; background: currentColor;
  transition: transform .25s ease, opacity .2s ease, top .25s ease;
}
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after  { top:  6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after  { top: 0; transform: rotate(-45deg); }

@media (max-width: 920px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav .links {
    position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px var(--pad) 16px;
    background: color-mix(in srgb, var(--bg) 96%, transparent);
    backdrop-filter: saturate(140%) blur(8px);
    -webkit-backdrop-filter: saturate(140%) blur(8px);
    border-bottom: 1px solid var(--rule);
    transform-origin: top; transform: translateY(-8px);
    opacity: 0; visibility: hidden;
    transition: transform .25s ease, opacity .2s ease, visibility 0s linear .25s;
  }
  .nav .links a {
    padding: 14px 0; font-size: 16px; color: var(--ink);
    border-bottom: 1px solid var(--rule);
  }
  .nav .links a:last-child { border-bottom: 0; }
  .nav .links a.cta {
    border: 1px solid var(--ink); border-radius: 999px;
    text-align: center; margin-top: 12px; padding: 12px 14px;
  }
  .nav .links a.lang {
    border: 1px solid var(--rule); border-radius: 999px;
    text-align: center; margin-top: 12px; padding: 11px 14px;
  }
  .nav[data-open="true"] .links {
    transform: translateY(0); opacity: 1; visibility: visible;
    transition: transform .25s ease, opacity .2s ease;
  }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 22px; border-radius: 999px;
  font-size: 15px; font-weight: 500;
  border: 1px solid var(--ink);
  transition: background .15s ease, color .15s ease, transform .15s ease;
}
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn.primary:hover { transform: translateY(-1px); }
.btn.ghost:hover { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(64px, 12vw, 150px) clamp(48px, 9vw, 104px); }
.hero .eyebrow { margin-bottom: 24px; }
.hero h1 {
  font-size: clamp(36px, 6.7vw, 88px);
  line-height: 0.96;
  margin: 0 0 34px; max-width: 17ch;
}
.hero h1 .role {
  display: block; color: var(--accent);
  margin-top: 0.12em;
}
.hero .lede {
  font-size: clamp(17px, 1.6vw, 21px);
  color: var(--muted); max-width: 58ch; line-height: 1.5; margin: 0 0 34px;
}
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 40px; }
.hero .signals {
  display: flex; flex-wrap: wrap; gap: 10px 28px;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em;
  color: var(--muted); padding-top: 28px; border-top: 1px solid var(--rule);
}
.hero .signals span { display: inline-flex; align-items: center; gap: 9px; }
.hero .signals span::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--mark); opacity: .9;
}

/* ---------- Section scaffold ---------- */
.section { padding: clamp(56px, 9vw, 112px) 0; border-top: 1px solid var(--rule); }
.sec-head {
  display: grid; grid-template-columns: 88px 1fr; gap: 24px;
  align-items: baseline; margin-bottom: 48px;
}
.sec-head .num {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; color: var(--accent-2);
}
.sec-head h2 {
  font-size: clamp(24px, 3.2vw, 40px);
  margin: 0; line-height: 1.05;
}
.sec-head .meta {
  grid-column: 2;
  font-size: clamp(15px, 1.5vw, 17px); color: var(--muted);
  margin-top: 12px; max-width: 60ch;
}
@media (max-width: 640px) {
  .sec-head { grid-template-columns: 1fr; gap: 8px; }
  .sec-head .meta { grid-column: 1; }
}

/* ---------- Law: obligations ---------- */
.oblig-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
  list-style: none; margin: 0; padding: 0;
}
.oblig {
  border: 1px solid var(--rule); border-radius: 4px;
  padding: 22px 22px 24px; background: var(--card);
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.oblig:hover {
  border-color: var(--accent); transform: translateY(-2px);
  box-shadow: 0 10px 30px -22px var(--shadow);
}
.oblig .since {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--accent-2);
  display: inline-flex; align-items: center; gap: 9px; margin-bottom: 14px;
}
.oblig .since::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--mark); opacity: .8;
}
.oblig h3 {
  font-size: clamp(16px, 1.7vw, 19px); margin: 0 0 8px;
}
.oblig p { font-size: 13.5px; line-height: 1.55; color: var(--muted); margin: 0; }
@media (max-width: 900px) { .oblig-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .oblig-grid { grid-template-columns: 1fr; } }

.legal-note {
  display: grid; grid-template-columns: 88px 1fr; gap: 24px;
  margin-top: 32px; padding-top: 28px; border-top: 1px solid var(--rule);
}
.legal-note .label {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--muted);
}
.legal-note p { font-size: 13px; line-height: 1.6; color: var(--muted); margin: 0; max-width: 72ch; }
@media (max-width: 640px) { .legal-note { grid-template-columns: 1fr; gap: 12px; } }

/* ---------- Law: why Quebec French ---------- */
.qc-callout {
  background: var(--panel);
  border-radius: 4px; padding: clamp(28px, 4vw, 48px);
}
.qc-callout .label {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--accent);
  display: block; margin-bottom: 18px;
}
.qc-callout h3 {
  font-size: clamp(21px, 2.8vw, 34px);
  line-height: 1.12; margin: 0 0 16px; max-width: 24ch;
}
.qc-callout > p {
  font-size: clamp(15px, 1.5vw, 18px); line-height: 1.55;
  color: var(--ink-soft); margin: 0; max-width: 66ch;
}
.lex-wrap { margin-top: 30px; padding-top: 26px; border-top: 1px solid var(--rule); overflow-x: auto; }
.lex { border-collapse: collapse; width: 100%; min-width: 440px; text-align: left; }
.lex th {
  font-family: var(--mono); font-size: 11px; font-weight: 400;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint);
  padding: 0 20px 12px 0; border-bottom: 1px solid var(--rule);
}
.lex td {
  font-size: 14.5px; color: var(--muted);
  padding: 11px 20px 11px 0; border-bottom: 1px solid var(--rule);
}
.lex tbody tr:last-child td { border-bottom: 0; }
.lex td b { color: var(--accent-2, var(--ink)); font-weight: 600; }

/* ---------- Services: capabilities ---------- */
.caps-title {
  font-size: clamp(22px, 2.8vw, 32px); line-height: 1.1;
  margin: 64px 0 0; padding-top: 40px; border-top: 1px solid var(--rule);
}
.caps-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
  list-style: none; margin: 28px 0 0; padding: 0;
}
.cap {
  border: 1px solid var(--rule); border-radius: 4px;
  padding: 22px 22px 24px; background: var(--card);
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.cap:hover {
  border-color: var(--accent); transform: translateY(-2px);
  box-shadow: 0 10px 30px -22px var(--shadow);
}
.cap h4 {
  font-size: clamp(16px, 1.7vw, 19px); margin: 0 0 8px;
}
.cap p { font-size: 13.5px; line-height: 1.5; color: var(--muted); margin: 0; }
@media (max-width: 900px) {
  .caps-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .caps-grid { grid-template-columns: 1fr; }
}

/* ---------- Work: reserved slot ----------
   The selected-work reel grid was pulled; this holds a 16:9 frame for the
   bilingual example. Drop a <video> in place of .work-slot-inner when it
   lands. The .motion-grid rules below are kept for when the reels return. */
.work-slot {
  width: 100%; min-height: clamp(200px, 24vw, 320px);
  border: 1px dashed var(--rule); border-radius: 4px;
  background: var(--card);
  display: grid; place-items: center;
  padding: clamp(20px, 4vw, 48px);
}
.work-slot-inner { text-align: center; max-width: 46ch; }
.work-slot-inner .label {
  display: block;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--accent-2); margin-bottom: 12px;
}
.work-slot-inner p {
  margin: 0; color: var(--muted);
  font-size: clamp(14px, 1.5vw, 17px); line-height: 1.55;
}

/* ---------- Work: motion grid ---------- */
.motion-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
  list-style: none; margin: 0; padding: 0;
  border: 1px solid var(--rule); border-radius: 4px; overflow: hidden;
}
.motion-tile {
  width: 100%; aspect-ratio: 16 / 9; background: var(--panel);
  overflow: hidden; margin: 0; cursor: pointer;
  border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
}
.motion-tile video { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 900px) { .motion-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .motion-grid { grid-template-columns: 1fr; } }

/* ---------- Clients ---------- */
.clients {
  display: grid; grid-template-columns: 88px 1fr; gap: 24px;
  margin-top: 56px; padding-top: 36px; border-top: 1px solid var(--rule);
}
.clients .label {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--muted);
}
.logo-row {
  display: grid; grid-template-columns: repeat(5, 1fr);
  align-items: center; justify-items: center;
  gap: clamp(28px, 4vw, 48px) clamp(20px, 3vw, 40px);
  list-style: none; margin: 0; padding: 0;
}
.logo-row li { width: 100%; display: flex; align-items: center; justify-content: center; }
.logo-row img {
  height: clamp(40px, 6vw, 64px); width: auto; max-width: 100%;
  object-fit: contain; opacity: 0.58;
  filter: brightness(0) invert(1);
  transition: opacity .15s ease;
}
.logo-row img:hover { opacity: 1; }
.logo-row img[alt="Apple"] { height: clamp(28px, 4vw, 44px); }
@media (max-width: 900px) {
  .clients { grid-template-columns: 1fr; gap: 18px; }
  .logo-row { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 540px) { .logo-row { grid-template-columns: repeat(2, 1fr); } }

/* ---------- About: studio + partners ---------- */
.about-lead {
  display: grid; grid-template-columns: 1fr; gap: 18px;
  margin-bottom: 56px;
}
.studio-intro {
  font-size: clamp(21px, 2.6vw, 30px); line-height: 1.3;
  letter-spacing: -0.01em; max-width: 24ch; margin: 0;
}
.about-lead .body { max-width: 62ch; font-size: clamp(16px, 1.6vw, 19px); color: var(--muted); line-height: 1.6; }
.about-lead .body p { margin: 0 0 1em; }
.about-lead .body p:last-child { margin: 0; }
.about-lead .body strong { color: var(--ink); font-weight: 600; }
@media (min-width: 780px) {
  .about-lead { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 48px; align-items: start; }
}

.partners { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.partner {
  border: 1px solid var(--rule); border-radius: 4px;
  padding: 30px 28px 32px; background: var(--card);
}
.partner .role-tag {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--faint); margin-bottom: 14px;
  display: flex; align-items: center; gap: 9px;
}
.partner h3 {
  font-size: clamp(22px, 2.4vw, 28px); margin: 0 0 6px;
}
.partner .title { font-size: 14px; color: var(--muted); margin: 0 0 18px; }
.partner-head { text-align: center; margin-bottom: 28px; }
.partner .portrait {
  width: 180px; height: 180px; object-fit: cover; object-position: center top;
  border-radius: 8px; display: block; margin: 0 auto 18px;
  background: var(--panel); border: 1px solid var(--rule);
}
.partner-head .role-tag { justify-content: center; margin-bottom: 9px; }
.partner-head h3 { margin-bottom: 4px; }
.partner-head .title { margin: 0; }
.partner p { font-size: 14.5px; line-height: 1.6; color: var(--ink-soft); margin: 0 0 16px; }
.partner p:last-of-type { margin-bottom: 22px; }
.partner .facts { list-style: none; margin: 0; padding: 18px 0 0; border-top: 1px solid var(--rule); display: grid; gap: 9px; }
.partner .facts li {
  font-size: 13px; color: var(--muted); display: grid;
  grid-template-columns: 96px 1fr; gap: 14px;
}
.partner .facts li b {
  font-family: var(--mono); font-weight: 400; letter-spacing: 0.04em;
  color: var(--faint); font-size: 11px; text-transform: uppercase; padding-top: 1px;
}
@media (max-width: 820px) { .partners { grid-template-columns: 1fr; } }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 88px 1fr; gap: 24px; align-items: start; }
.contact-grid .body { max-width: 58ch; }
.contact-grid h3 {
  font-size: clamp(30px, 5vw, 56px); line-height: 1.04;
  margin: 0 0 22px;
}
.contact-grid .body > p { font-size: clamp(16px, 1.6vw, 19px); color: var(--muted); line-height: 1.55; margin: 0 0 28px; max-width: 54ch; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 360px) { .contact-actions .btn { padding-inline: 16px; font-size: 14px; } }
@media (max-width: 640px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
footer.site { border-top: 1px solid var(--rule); padding: 36px 0 56px; color: var(--muted); font-size: 13px; }
footer.site .row { display: flex; justify-content: space-between; gap: 16px 28px; flex-wrap: wrap; align-items: baseline; }
footer.site .tagline { color: var(--muted); }
footer.site a:hover { color: var(--ink); }

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0; transform: translate3d(0, 22px, 0);
  transition: opacity .8s cubic-bezier(.22,.61,.36,1), transform .8s cubic-bezier(.22,.61,.36,1);
  transition-delay: var(--reveal-delay, 0ms); will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
