/* olivierrousseau.com — one stylesheet, no build step, no dependencies. */

:root {
  --bg: #07080c;
  --bg-2: #0c0e15;
  --surface: rgba(255, 255, 255, 0.028);
  --surface-2: rgba(255, 255, 255, 0.05);
  --border: rgba(255, 255, 255, 0.09);
  --border-lit: rgba(255, 255, 255, 0.18);
  --text: #f2f4f8;
  --muted: #929cb0;
  --accent: #5b8cff;
  --accent-2: #a06bff;
  --accent-3: #34e0c4;
  --ink: #05070d;
  --max: 1140px;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --grad: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 55%, var(--accent-3) 120%);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 28px; }

a { color: inherit; text-decoration: none; }

::selection { background: var(--accent); color: #fff; }

/* ============ ambient background ============ */

.aurora {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
}

.aurora i {
  position: absolute;
  display: block;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
}

.aurora i:nth-child(1) {
  width: 620px; height: 620px;
  top: -220px; left: -140px;
  background: radial-gradient(circle, #2f5bd0 0%, transparent 70%);
  animation: drift1 22s ease-in-out infinite;
}
.aurora i:nth-child(2) {
  width: 540px; height: 540px;
  top: -120px; right: -160px;
  background: radial-gradient(circle, #7a3fd6 0%, transparent 70%);
  animation: drift2 27s ease-in-out infinite;
}
.aurora i:nth-child(3) {
  width: 460px; height: 460px;
  top: 46%; left: 40%;
  background: radial-gradient(circle, #14a394 0%, transparent 70%);
  opacity: 0.24;
  animation: drift3 31s ease-in-out infinite;
}

@keyframes drift1 { 50% { transform: translate(90px, 70px) scale(1.12); } }
@keyframes drift2 { 50% { transform: translate(-80px, 90px) scale(1.08); } }
@keyframes drift3 { 50% { transform: translate(60px, -80px) scale(1.15); } }

.gridlines {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.022) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 20%, transparent 75%);
}

@media (prefers-reduced-motion: reduce) {
  .aurora i { animation: none; }
  html { scroll-behavior: auto; }
}

/* ============ header ============ */

header {
  position: sticky;
  top: 0;
  z-index: 50;
  transition: background 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}
header.stuck {
  background: rgba(7, 8, 12, 0.72);
  backdrop-filter: saturate(150%) blur(14px);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  border-bottom-color: var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 28px;
  max-width: var(--max);
  margin: 0 auto;
}

.brand {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.03em;
}
.brand em {
  font-style: normal;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-right { display: flex; align-items: center; gap: 26px; font-size: 14.5px; }
.nav-right > a { color: var(--muted); transition: color 0.2s; }
.nav-right > a:hover { color: var(--text); }

.lang {
  font-family: var(--mono);
  font-size: 11.5px;
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 5px 12px;
  color: var(--muted) !important;
  transition: all 0.2s;
}
.lang:hover { border-color: var(--border-lit); color: var(--text) !important; }

.nav-cta {
  font-size: 14px;
  font-weight: 600;
  padding: 9px 18px;
  border-radius: 100px;
  background: var(--text);
  color: var(--ink) !important;
  transition: transform 0.2s, box-shadow 0.2s;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(255,255,255,0.12); }

/* ============ buttons ============ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--grad);
  background-size: 180% 180%;
  color: #fff;
  font-weight: 600;
  font-size: 15.5px;
  padding: 15px 30px;
  border-radius: 100px;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  position: relative;
  transition: transform 0.22s cubic-bezier(.2,.8,.3,1), box-shadow 0.22s, background-position 0.5s;
  box-shadow: 0 10px 34px -12px rgba(91,140,255,0.75);
}
.btn:hover {
  transform: translateY(-2px);
  background-position: 100% 0;
  box-shadow: 0 16px 44px -12px rgba(140,110,255,0.85);
}
.btn svg { transition: transform 0.22s; }
.btn:hover svg { transform: translateX(3px); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 15px 28px;
  border-radius: 100px;
  border: 1px solid var(--border-lit);
  color: var(--text);
  font-weight: 500;
  font-size: 15.5px;
  transition: all 0.2s;
}
.btn-ghost:hover { background: var(--surface-2); border-color: var(--text); }

/* ============ hero ============ */

.hero { padding: 110px 0 90px; position: relative; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--muted);
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 100px;
  padding: 7px 16px 7px 12px;
  margin-bottom: 30px;
}
.dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent-3);
  box-shadow: 0 0 0 0 rgba(52,224,196,0.6);
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  70% { box-shadow: 0 0 0 8px rgba(52,224,196,0); }
  100% { box-shadow: 0 0 0 0 rgba(52,224,196,0); }
}

h1 {
  font-size: clamp(40px, 6.6vw, 78px);
  line-height: 1.03;
  letter-spacing: -0.045em;
  margin: 0 0 28px;
  max-width: 18ch;
  font-weight: 800;
}
h1 em {
  font-style: normal;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lede {
  font-size: clamp(17.5px, 2vw, 21px);
  color: var(--muted);
  max-width: 56ch;
  margin: 0 0 40px;
  line-height: 1.6;
}

.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

.hero-note {
  margin-top: 26px;
  font-size: 14.5px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 9px;
}
.hero-note svg { color: var(--accent-3); flex-shrink: 0; }

/* ============ stats band ============ */

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  margin-top: 40px;
}
.stat { background: var(--bg-2); padding: 28px 26px; }
.stat b {
  display: block;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 4px;
}
.stat span { font-size: 14.5px; color: var(--muted); }

/* ============ sections ============ */

section { padding: 100px 0; position: relative; }

.kicker {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 16px;
}

h2 {
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: -0.035em;
  line-height: 1.1;
  margin: 0 0 16px;
  font-weight: 800;
  max-width: 20ch;
}

.section-sub {
  color: var(--muted);
  margin: 0 0 52px;
  max-width: 56ch;
  font-size: 17.5px;
}

/* ============ services ============ */

.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }

.tile {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px;
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s, background 0.3s;
}
.tile::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  padding: 1px;
  background: var(--grad);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.35s;
}
.tile:hover { transform: translateY(-4px); background: var(--surface-2); }
.tile:hover::before { opacity: 1; }

.tile-lead { grid-column: span 3; padding: 42px; }

@media (min-width: 861px) {
  .tile-lead { display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; align-items: center; }
}

.ico {
  width: 44px; height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--accent);
  margin-bottom: 20px;
}
.tile h3 { margin: 0 0 10px; font-size: 19px; letter-spacing: -0.02em; font-weight: 700; }
.tile-lead h3 { font-size: 27px; letter-spacing: -0.03em; }
.tile p { margin: 0; color: var(--muted); font-size: 15.5px; line-height: 1.62; }
.tile-lead p { font-size: 17px; }

.pill {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 14px;
  font-weight: 700;
}

.checks { list-style: none; margin: 0; padding: 0; }
.checks li {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  color: var(--muted);
  font-size: 15.5px;
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
}
.checks li:last-child { border-bottom: 0; }
.checks svg { color: var(--accent-3); flex-shrink: 0; margin-top: 4px; }

/* ============ process ============ */

.rail { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; position: relative; }
.rail::before {
  content: '';
  position: absolute;
  top: 17px; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2), transparent);
  opacity: 0.35;
}
.stepn {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--bg);
  border: 1px solid var(--border-lit);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 20px;
  position: relative;
}
.step h3 { margin: 0 0 7px; font-size: 17.5px; font-weight: 700; letter-spacing: -0.02em; }
.step p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.6; }

/* ============ work ============ */

.work { display: grid; gap: 16px; }
.work-item {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 32px;
  padding: 30px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
  transition: border-color 0.3s, background 0.3s, transform 0.3s;
}
.work-item:hover { border-color: var(--border-lit); background: var(--surface-2); transform: translateX(4px); }
.work-meta {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent);
}
.work-item h3 { margin: 0 0 8px; font-size: 19px; font-weight: 700; letter-spacing: -0.02em; }
.work-item p { margin: 0; color: var(--muted); font-size: 15.5px; }

/* ============ cta ============ */

.cta-band {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 26px;
  padding: 72px 44px;
  text-align: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 130% at 50% 0%, rgba(91,140,255,0.16), transparent 65%),
    var(--bg-2);
}
.cta-band h2 { margin: 0 auto 16px; max-width: 18ch; }
.cta-band p { color: var(--muted); margin: 0 auto 34px; max-width: 46ch; font-size: 17.5px; }

/* ============ form ============ */

.form { max-width: 620px; }
.field { margin-bottom: 22px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field label { display: block; font-size: 14.5px; font-weight: 600; margin-bottom: 9px; }
.field label i { font-style: normal; color: var(--muted); font-weight: 400; }
.field input, .field textarea, .field select {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  color: var(--text);
  font-family: inherit;
  font-size: 16px;
  transition: border-color 0.2s, background 0.2s;
}
.field input::placeholder, .field textarea::placeholder { color: #5d6678; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--surface-2);
}
.field textarea { min-height: 160px; resize: vertical; }
.field select { appearance: none; cursor: pointer; }

.form-note { font-size: 14.5px; color: var(--muted); margin-top: 20px; }

.contact-alt { border-top: 1px solid var(--border); margin-top: 52px; padding-top: 36px; }
.contact-alt h3 { margin: 0 0 14px; font-size: 17.5px; font-weight: 700; }
.contact-alt p { margin: 0 0 10px; color: var(--muted); font-size: 15.5px; }
.contact-alt a { color: var(--accent); }
.contact-alt a:hover { text-decoration: underline; }

/* placeholder that must never ship silently */
.todo {
  display: inline-block;
  background: #4a2020;
  border: 1px dashed #c25b5b;
  color: #ffb3b3;
  font-family: var(--mono);
  font-size: 13px;
  padding: 3px 9px;
  border-radius: 6px;
}

/* ============ footer ============ */

footer { border-top: 1px solid var(--border); padding: 44px 0; color: var(--muted); font-size: 14.5px; }
.foot { display: flex; flex-wrap: wrap; gap: 18px; justify-content: space-between; align-items: center; }
.foot a { color: var(--muted); transition: color 0.2s; }
.foot a:hover { color: var(--text); }

/* ============ scroll reveal ============ */

.rise { opacity: 0; transform: translateY(22px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(.2,.8,.3,1); }
.rise.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .rise { opacity: 1; transform: none; transition: none; }
}

/* ============ responsive ============ */

@media (max-width: 980px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .tile-lead { grid-column: span 2; }
  .rail { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .rail::before { display: none; }
}

@media (max-width: 700px) {
  body { font-size: 16.5px; }
  .wrap { padding: 0 20px; }
  .nav { padding: 15px 20px; gap: 12px; }
  .nav-right { gap: 15px; font-size: 13.5px; }
  .nav-right .hide-sm { display: none; }
  .hero { padding: 72px 0 60px; }
  section { padding: 72px 0; }
  .bento { grid-template-columns: 1fr; }
  .tile-lead { grid-column: span 1; padding: 30px; }
  .tile { padding: 26px; }
  .rail { grid-template-columns: 1fr; }
  .work-item { grid-template-columns: 1fr; gap: 12px; padding: 24px; }
  .cta-band { padding: 52px 24px; border-radius: 20px; }
  .row { grid-template-columns: 1fr; gap: 0; }
  .btn, .btn-ghost { width: 100%; justify-content: center; }
}

/* ============ capabilities ============ */

.caps { display: grid; grid-template-columns: repeat(auto-fit, minmax(310px, 1fr)); gap: 18px; }

.cap {
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 30px;
  background: var(--surface);
  transition: border-color 0.3s, background 0.3s;
}
.cap:hover { border-color: var(--border-lit); background: var(--surface-2); }

.cap-head { display: flex; align-items: center; gap: 13px; margin-bottom: 20px; }
.cap-head .ico { margin-bottom: 0; width: 38px; height: 38px; border-radius: 10px; }
.cap-head h3 { margin: 0; font-size: 17.5px; font-weight: 700; letter-spacing: -0.02em; }

.cap ul { list-style: none; margin: 0; padding: 0; }
.cap li {
  position: relative;
  padding: 7px 0 7px 20px;
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.5;
}
.cap li::before {
  content: '';
  position: absolute;
  left: 2px; top: 15px;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.6;
}

.cap-note {
  margin: 34px 0 0;
  padding: 22px 26px;
  border: 1px dashed var(--border-lit);
  border-radius: 16px;
  color: var(--muted);
  font-size: 15.5px;
}
.cap-note b { color: var(--text); font-weight: 600; }
