/* =========================================================================
   Bruxircle — design tokens & styles
   Display: Bricolage Grotesque · Body: Instrument Sans (both self-hosted, OFL)
   ========================================================================= */

@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url('fonts/bricolage-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url('fonts/bricolage-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('fonts/instrument-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('fonts/instrument-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Expletus Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/expletus-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Palette — derived from the Bruxircle mark */
  --ink:        #0A1633;
  --blue:       #1A4197;
  --blue-bright:#2E63DE;
  --amber:      #FFC24B;
  --paper:      #F7F9FE;
  --halo:       #E3EAF9;
  --white:      #FFFFFF;
  --muted:      #55637E;

  --display: 'Bricolage Grotesque', 'Trebuchet MS', system-ui, sans-serif;
  /* The wordmark's own face. Latin subset only: "Bruxircle" needs nothing else. */
  --wordmark: 'Expletus Sans', 'Bricolage Grotesque', system-ui, sans-serif;
  --body: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --shell: 1160px;
  --gutter: clamp(1.25rem, 5vw, 3.5rem);
  --radius: 18px;
  --radius-lg: 28px;
  --ring: 0 0 0 3px rgba(46, 99, 222, .35);
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: clamp(1rem, .96rem + .2vw, 1.0625rem);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -.025em;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }
img, svg { max-width: 100%; display: block; }
a { color: inherit; }

:focus-visible {
  outline: none;
  box-shadow: var(--ring);
  border-radius: 8px;
}

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: .5rem;
  background: var(--ink);
  color: var(--white);
  padding: .6rem 1rem;
  border-radius: 10px;
  z-index: 100;
}
.skip-link:focus { left: 1rem; }

/* ---------- Eyebrow / section headings ---------- */

.eyebrow {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--blue);
  margin: 0 0 1.25rem;
  display: flex;
  align-items: center;
  gap: .6rem;
}
.eyebrow::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--amber);
  flex: none;
}

.section-head { max-width: 46ch; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head h2 { font-size: clamp(2rem, 1.3rem + 2.6vw, 3.25rem); }
.section-head p { color: var(--muted); margin-top: 1.1rem; font-size: 1.05rem; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-family: var(--body);
  font-size: .95rem;
  font-weight: 600;
  line-height: 1;
  padding: .95rem 1.5rem;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform .18s ease, background-color .18s ease, border-color .18s ease, color .18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--blue); color: var(--white); }
.btn-primary:hover { background: var(--blue-bright); }
.btn-ghost { border-color: var(--halo); background: var(--white); color: var(--ink); }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); }
.btn-light { background: var(--white); color: var(--blue); }
.btn-light:hover { background: var(--amber); color: var(--ink); }
.btn-lg { padding: 1.1rem 2rem; font-size: 1.02rem; }
.btn .arrow { transition: transform .18s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 249, 254, .82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, background-color .25s ease;
}
.site-header.is-stuck { border-bottom-color: var(--halo); }

.header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 76px;
  transition: min-height .28s ease;
}
.site-header.is-stuck .header-inner { min-height: 62px; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  text-decoration: none;
  font-family: var(--wordmark);
  font-weight: 400;
  font-size: 1.45rem;
  letter-spacing: .01em;
  color: var(--blue);
  margin-right: auto;
}
.brand img { width: 28px; height: auto; flex: none; }

.nav {
  display: flex;
  align-items: center;
  gap: 1.85rem;
}
.nav a:not(.btn) {
  text-decoration: none;
  font-size: .95rem;
  font-weight: 500;
  color: var(--ink);
  position: relative;
  padding: .25rem 0;
}
.nav a:not(.btn)::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--amber);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .22s ease;
}
.nav a:not(.btn):hover::after { transform: scaleX(1); }

.nav > .btn { display: none; }

.header-actions { display: flex; align-items: center; gap: 1rem; }

.lang {
  display: inline-flex;
  align-items: center;
  gap: .1rem;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .04em;
  border: 1px solid var(--halo);
  border-radius: 999px;
  padding: .3rem;
  background: var(--white);
}
.lang a {
  text-decoration: none;
  padding: .28rem .62rem;
  border-radius: 999px;
  color: var(--muted);
}
.lang a[aria-current='true'] { background: var(--blue); color: var(--white); }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  align-items: center;
  justify-content: center;
  background: var(--white);
  border: 1px solid var(--halo);
  border-radius: 12px;
  cursor: pointer;
  color: var(--ink);
}

/* ---------- Hero ---------- */

.hero {
  padding-block: clamp(3.5rem, 7vw, 6.5rem) clamp(4rem, 8vw, 7rem);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: -30% -10% auto 30%;
  height: 900px;
  background: radial-gradient(ellipse at center, rgba(46,99,222,.13), transparent 62%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.6rem, 1.4rem + 4.6vw, 4.75rem);
  font-weight: 620;
  position: relative;
  z-index: 0;
}
.hero h1 em {
  font-style: normal;
  color: var(--blue);
  position: relative;
  white-space: nowrap;
}
.hero h1 em::after {
  content: '';
  position: absolute;
  left: -.04em; right: -.04em; bottom: .07em;
  height: .13em;
  z-index: -1;
  background: var(--amber);
  border-radius: 999px;
}
.hero-lead {
  margin-top: 1.6rem;
  font-size: clamp(1.05rem, 1rem + .35vw, 1.2rem);
  color: var(--muted);
  max-width: 42ch;
}
.hero-cta {
  margin-top: 2.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: .85rem;
}
.hero-note {
  margin-top: 1.35rem;
  font-size: .875rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: .5rem;
}
.hero-note .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #23A55A;
  flex: none;
}

/* ---------- Signature: the network orbit ---------- */

.orbit {
  aspect-ratio: 1;
  width: 100%;
  max-width: 480px;
  margin-inline: auto;
}
.orbit .ring { fill: none; stroke: var(--halo); stroke-width: 1.5; }
.orbit .spoke { stroke: var(--blue); stroke-width: 2.5; stroke-linecap: round; opacity: .55; }
.orbit .node-ring { fill: none; stroke: var(--blue); stroke-width: 3; stroke-linecap: round; }
.orbit .node-dot { fill: var(--blue); }
.orbit .core-dot { fill: var(--blue); }
.orbit .core-ring { fill: var(--white); stroke: var(--blue); stroke-width: 3.5; }
.orbit .label {
  font-family: var(--body);
  font-size: 13px;
  font-weight: 600;
  fill: var(--ink);
  text-anchor: middle;
}
.orbit .core-label {
  font-family: var(--display);
  font-size: 15px;
  font-weight: 700;
  fill: var(--white);
  text-anchor: middle;
}
.orbit .spin { transform-origin: 250px 250px; animation: spin 44s linear infinite; }
.orbit .counter-spin { animation: spin 44s linear infinite reverse; }
.orbit .pulse { animation: pulse 5s ease-in-out infinite; transform-origin: 250px 250px; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse {
  0%, 100% { opacity: .5; transform: scale(1); }
  50%      { opacity: .12; transform: scale(1.06); }
}

/* ---------- Pillars ---------- */

.pillars { padding-block: clamp(3rem, 6vw, 5rem); }
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1px;
  background: var(--halo);
  border: 1px solid var(--halo);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.pillar {
  background: var(--white);
  padding: clamp(1.75rem, 3vw, 2.5rem);
}
.pillar h3 {
  font-size: 1.3rem;
  margin-bottom: .6rem;
  display: flex;
  align-items: baseline;
  gap: .6rem;
}
.pillar h3 span {
  font-family: var(--body);
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--blue-bright);
}
.pillar p { color: var(--muted); font-size: .97rem; }

/* ---------- Services ---------- */

.services { padding-block: clamp(3.5rem, 7vw, 6rem); }
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(236px, 1fr));
  gap: 1.15rem;
}
.card {
  background: var(--white);
  border: 1px solid var(--halo);
  border-radius: var(--radius);
  padding: 1.85rem 1.6rem;
  display: flex;
  flex-direction: column;
  gap: .7rem;
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(26, 65, 151, .35);
  box-shadow: 0 18px 40px -28px rgba(10, 22, 51, .5);
}
.card .glyph {
  width: 40px; height: 40px;
  color: var(--blue);
  margin-bottom: .35rem;
}
.card h3 { font-size: 1.18rem; }
.card p { color: var(--muted); font-size: .95rem; }

/* Media cards double as links */
.card-link { text-decoration: none; color: inherit; }
.card-link .go {
  margin-top: auto;
  padding-top: .9rem;
  font-size: .85rem;
  font-weight: 600;
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  gap: .4rem;
}
.card-link:hover .go .arrow { transform: translateX(3px); }
.card-link .go .arrow { transition: transform .18s ease; }

/* ---------- Consultation band ---------- */

.consult { padding-block: clamp(1rem, 3vw, 2rem); }
.consult-inner {
  position: relative;
  overflow: hidden;
  background: var(--blue);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: clamp(2.5rem, 5.5vw, 4.5rem);
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: clamp(1.75rem, 4vw, 3rem);
  align-items: center;
}
/* White Bruxircle mark as a watermark. Uses background-image on purpose:
   if assets/logo-white.png is missing, nothing renders instead of a broken image. */
.consult-inner::after {
  content: '';
  position: absolute;
  right: -70px; bottom: -120px;
  width: 400px; height: 400px;
  background: url('logo-white.png') center / contain no-repeat;
  opacity: .12;
  pointer-events: none;
}
.consult h2 {
  font-size: clamp(1.85rem, 1.2rem + 2.2vw, 2.9rem);
  color: var(--white);
}
.consult .eyebrow { color: var(--amber); }
.consult .eyebrow::before { background: var(--amber); }
.consult p { color: rgba(255, 255, 255, .82); margin-top: 1.1rem; max-width: 48ch; }
.consult-action { position: relative; display: flex; flex-direction: column; gap: .9rem; align-items: flex-start; }
.consult-meta { font-size: .85rem; color: rgba(255, 255, 255, .7); }

/* ---------- Contact ---------- */

.contact { padding-block: clamp(3.5rem, 7vw, 6rem); }
.socials {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}
.social {
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: 1rem 1.15rem;
  background: var(--white);
  border: 1px solid var(--halo);
  border-radius: 14px;
  text-decoration: none;
  font-weight: 500;
  font-size: .95rem;
  transition: border-color .2s ease, color .2s ease, transform .2s ease;
}
.social svg { width: 18px; height: 18px; flex: none; color: var(--blue); }
.social:hover { border-color: var(--blue); color: var(--blue); transform: translateY(-2px); }
.social svg { transition: transform .18s ease; }
.social:hover svg { transform: translateX(3px); }

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--halo);
  margin-top: clamp(2rem, 5vw, 4rem);
  padding-block: 2.5rem;
  font-size: .9rem;
  color: var(--muted);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  align-items: center;
  justify-content: space-between;
}
.footer-links { display: flex; flex-wrap: wrap; gap: 1.35rem; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--blue); }

/* ---------- 404 ---------- */

.notfound {
  min-height: 68vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding-block: 4rem;
}
.notfound h1 { font-size: clamp(2.25rem, 1.5rem + 3vw, 3.5rem); }
.notfound p { color: var(--muted); margin: 1.1rem auto 2rem; max-width: 44ch; }

/* ---------- Scroll reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s cubic-bezier(.22, .61, .36, 1), transform .7s cubic-bezier(.22, .61, .36, 1);
}
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- Page-load sequence ----------
   The hero states the offer line by line, then the diagram assembles: you first,
   the connections next, the opportunities last. Pure CSS so it runs without JS. */

@keyframes bx-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes bx-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes bx-pop  { from { opacity: 0; transform: scale(.4); } to { opacity: 1; transform: none; } }
@keyframes bx-draw { to { stroke-dashoffset: 0; } }
@keyframes bx-underline { to { transform: scaleX(1); } }

.hero .eyebrow,
.hero h1,
.hero-lead,
.hero-cta,
.hero-note { animation: bx-rise .7s cubic-bezier(.22, .61, .36, 1) both; }

.hero .eyebrow { animation-delay: .05s; }
.hero h1       { animation-delay: .12s; }
.hero-lead     { animation-delay: .20s; }
.hero-cta      { animation-delay: .28s; }
.hero-note     { animation-delay: .36s; }

.hero h1 em::after {
  transform: scaleX(0);
  transform-origin: left;
  animation: bx-underline .55s cubic-bezier(.22, .61, .36, 1) .62s forwards;
}

.orbit { animation: bx-fade .8s ease .15s both; }
.orbit .core { transform-origin: 250px 250px; animation: bx-pop .55s cubic-bezier(.34, 1.32, .64, 1) .28s both; }

.orbit .spoke line {
  stroke-dasharray: 136;
  stroke-dashoffset: 136;
  animation: bx-draw .6s cubic-bezier(.22, .61, .36, 1) both;
}
.orbit .spoke line:nth-child(1) { animation-delay: .45s; }
.orbit .spoke line:nth-child(2) { animation-delay: .52s; }
.orbit .spoke line:nth-child(3) { animation-delay: .59s; }
.orbit .spoke line:nth-child(4) { animation-delay: .66s; }

.orbit .node { animation: bx-pop .5s cubic-bezier(.34, 1.32, .64, 1) both; }
.orbit .n1 { transform-origin: 154.5px 154.5px; animation-delay: .80s; }
.orbit .n2 { transform-origin: 345.5px 154.5px; animation-delay: .86s; }
.orbit .n3 { transform-origin: 154.5px 345.5px; animation-delay: .92s; }
.orbit .n4 { transform-origin: 345.5px 345.5px; animation-delay: .98s; }

.orbit .orbit-labels { animation: bx-fade .6s ease 1.05s both; }

/* ---------- Staggered scroll reveal ----------
   Same trigger as .reveal, but the children arrive one after another. */

.stagger > * {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .6s cubic-bezier(.22, .61, .36, 1), transform .6s cubic-bezier(.22, .61, .36, 1);
}
.stagger.is-in > * { opacity: 1; transform: none; }
.stagger.is-in > *:nth-child(2) { transition-delay: .07s; }
.stagger.is-in > *:nth-child(3) { transition-delay: .14s; }
.stagger.is-in > *:nth-child(4) { transition-delay: .21s; }
.stagger.is-in > *:nth-child(5) { transition-delay: .28s; }
.stagger.is-in > *:nth-child(6) { transition-delay: .35s; }
.stagger.is-in > *:nth-child(7) { transition-delay: .42s; }

/* ---------- Responsive ---------- */

@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr; }
  /* Headline leads on narrow screens; the diagram follows it. */
  .orbit { max-width: 360px; margin-top: 1rem; }
  .consult-inner { grid-template-columns: 1fr; }
}

@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }
  .header-actions .btn { display: none; }
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--white);
    border-block: 1px solid var(--halo);
    padding: .5rem var(--gutter) 1.6rem;
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a:not(.btn) { padding: .85rem 0; border-bottom: 1px solid var(--halo); }
  .nav a:not(.btn)::after { display: none; }
  .nav > .btn { display: inline-flex; margin-top: 1rem; justify-content: center; }
  .header-inner { position: relative; }
}

@media (max-width: 780px) {
  .hero-cta .btn { flex: 1 1 auto; justify-content: center; }
}

/* ---------- Motion preferences ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal,
  .stagger > *,
  .hero .eyebrow,
  .hero h1,
  .hero-lead,
  .hero-cta,
  .hero-note,
  .orbit,
  .orbit .core,
  .orbit .node,
  .orbit .orbit-labels { opacity: 1; transform: none; }
  .hero h1 em::after { transform: scaleX(1); }
  .orbit .spoke line { stroke-dashoffset: 0; }
}

/* Social rows: platform name leads, arrow trails */
.social svg { margin-left: .35rem; }
