/* ==========================================================================
   mathieupeloquin.com — 2026
   Dark editorial theme. Amber (AdocSys) + teal network accents.
   ========================================================================== */

/* ---------- Fonts ---------- */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('../fonts/IBMPlexSans-400-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: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('../fonts/IBMPlexSans-400-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: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/IBMPlexMono-400-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: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/IBMPlexMono-400-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: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/IBMPlexMono-500-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: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/IBMPlexMono-500-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;
}

/* ---------- Tokens ---------- */
:root {
  --bg: #060910;
  --bg-2: #0a0f19;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.06);
  --line: rgba(148, 171, 204, 0.14);
  --line-strong: rgba(148, 171, 204, 0.28);
  --text: #e9eef7;
  --muted: #9aa9bf;
  --dim: #7e91a9;
  --amber: #f5a623;
  --amber-soft: #ffc45e;
  --teal: #5eead4;
  --radius: 18px;
  --max: 1180px;
  --font-sans: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI',
    sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.62;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(1100px 720px at 78% -12%, rgba(245, 166, 35, 0.1), transparent 62%),
    radial-gradient(950px 620px at 6% 4%, rgba(56, 189, 248, 0.07), transparent 60%),
    radial-gradient(900px 700px at 50% 115%, rgba(94, 234, 212, 0.045), transparent 65%);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Technical grid + film grain */
body::before,
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
}
body::before {
  z-index: 0;
  background-image:
    linear-gradient(to right, rgba(148, 171, 204, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(148, 171, 204, 0.05) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(ellipse 90% 65% at 50% 0%, #000 25%, transparent 85%);
  mask-image: radial-gradient(ellipse 90% 65% at 50% 0%, #000 25%, transparent 85%);
}
body::after {
  z-index: 1;
  opacity: 0.02;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

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

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

button {
  cursor: pointer;
}

::selection {
  background: var(--amber);
  color: #171006;
}

:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
  border-radius: 4px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

.site-header,
main,
.site-footer {
  position: relative;
  z-index: 2;
}

.container {
  width: min(100% - 48px, var(--max));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  top: -60px;
  left: 24px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: 0 0 8px 8px;
  background: var(--amber);
  color: #171006;
  font-weight: 600;
  transition: top 0.2s;
}
.skip-link:focus {
  top: 0;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s;
}
.site-header.is-scrolled {
  background: rgba(6, 9, 16, 0.78);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
  border-bottom-color: var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 82px;
  transition: height 0.3s var(--ease);
}
.site-header.is-scrolled .header-inner {
  height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 10px;
  border: 1px solid rgba(245, 166, 35, 0.28);
  background: rgba(245, 166, 35, 0.07);
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  min-width: 0;
}
.brand-name {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.brand-sub {
  font-family: var(--font-mono);
  font-size: 0.56rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dim);
  white-space: nowrap;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 2px;
}
.nav-link {
  padding: 8px 12px;
  border-radius: 7px;
  font-size: 0.86rem;
  color: var(--muted);
  transition: color 0.2s, background 0.2s;
}
.nav-link:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.045);
}
.nav-ext {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #cbd7e8;
}
.nav-ext svg {
  width: 11px;
  height: 11px;
  opacity: 0.65;
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang-switch {
  display: flex;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.025);
}
.lang-switch a {
  padding: 5px 11px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.09em;
  color: var(--dim);
  transition: color 0.2s, background 0.2s;
}
.lang-switch a:hover {
  color: var(--text);
}
.lang-switch a[aria-current='page'] {
  background: rgba(245, 166, 35, 0.14);
  color: var(--amber-soft);
}

.nav-toggle {
  display: none;
  position: relative;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
}
.nav-toggle span {
  position: absolute;
  left: 12px;
  width: 16px;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.25s var(--ease), opacity 0.2s, top 0.25s var(--ease);
}
.nav-toggle span:nth-child(1) {
  top: 14px;
}
.nav-toggle span:nth-child(2) {
  top: 19px;
}
.nav-toggle span:nth-child(3) {
  top: 24px;
}
body.menu-open .nav-toggle span:nth-child(1) {
  top: 19px;
  transform: rotate(45deg);
}
body.menu-open .nav-toggle span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0.2);
}
body.menu-open .nav-toggle span:nth-child(3) {
  top: 19px;
  transform: rotate(-45deg);
}

.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 100vh;
  height: 100dvh;
  z-index: 95;
  padding: 108px 24px 40px;
  overflow-y: auto;
  background: #070b12;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.9);
}
body.menu-open .mobile-nav {
  display: flex;
  flex-direction: column;
}
body.menu-open .site-header {
  background: rgba(6, 9, 16, 0.97);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border-bottom-color: var(--line);
}
body.menu-open {
  overflow: hidden;
}
.mobile-nav > a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 2px;
  border-bottom: 1px solid rgba(148, 171, 204, 0.09);
  font-size: 1rem;
  color: var(--text);
  transition: color 0.2s;
}
.mobile-nav > a:hover {
  color: var(--amber-soft);
}
.mobile-nav > a span {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  color: var(--dim);
  text-transform: uppercase;
}
.mobile-nav-foot {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-top: auto;
  padding-top: 32px;
}
.mobile-nav-foot span {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim);
}
.mobile-nav-foot a {
  font-size: 0.92rem;
  color: var(--amber-soft);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-top: clamp(124px, 16vh, 178px);
  padding-bottom: clamp(64px, 9vh, 110px);
  overflow: hidden;
}
.hero-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  opacity: 0.85;
  -webkit-mask-image: radial-gradient(ellipse 85% 80% at 65% 45%, #000 30%, transparent 78%);
  mask-image: radial-gradient(ellipse 85% 80% at 65% 45%, #000 30%, transparent 78%);
}
.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.06fr 0.94fr;
  align-items: center;
  gap: clamp(36px, 6vw, 76px);
}

.hero-status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 24px;
  font-family: var(--font-mono);
  font-size: 0.63rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.status-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  flex: none;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 0 rgba(245, 166, 35, 0.4);
  animation: pulse 2.6s var(--ease) infinite;
}
@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(245, 166, 35, 0.4);
  }
  55% {
    box-shadow: 0 0 0 7px rgba(245, 166, 35, 0);
  }
}

.hero h1 {
  margin: 0;
  font-size: clamp(3.1rem, 7vw, 5.4rem);
  font-weight: 600;
  line-height: 0.94;
  letter-spacing: -0.048em;
  background: linear-gradient(180deg, #ffffff 20%, #c2cfdf 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-role {
  max-width: 26ch;
  margin: 22px 0 0;
  font-size: clamp(1.15rem, 2vw, 1.42rem);
  font-weight: 500;
  line-height: 1.34;
  letter-spacing: -0.018em;
  color: #dde6f2;
}
.hero-role em {
  font-style: normal;
  color: var(--amber-soft);
}

.hero-lead {
  max-width: 54ch;
  margin: 20px 0 0;
  font-size: 0.98rem;
  line-height: 1.7;
  color: var(--muted);
  text-wrap: pretty;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 48px;
  padding: 0 22px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: -0.005em;
  transition: transform 0.2s var(--ease), box-shadow 0.2s, background 0.2s,
    border-color 0.2s;
}
.btn svg {
  width: 15px;
  height: 15px;
}
.btn-primary {
  background: linear-gradient(180deg, #ffc45e, #f5a623);
  color: #171006;
  box-shadow: 0 10px 30px -12px rgba(245, 166, 35, 0.65);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 34px -12px rgba(245, 166, 35, 0.75);
}
.btn-ghost {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
}
.btn-ghost:hover {
  transform: translateY(-1px);
  border-color: rgba(245, 166, 35, 0.42);
  background: rgba(245, 166, 35, 0.06);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin-top: 38px;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.07em;
  color: var(--dim);
}
.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.hero-meta span::before {
  content: '';
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--amber);
  opacity: 0.75;
}

/* Portrait */
.portrait {
  position: relative;
  justify-self: center;
  width: 100%;
  max-width: 430px;
}
.portrait-orbit {
  position: absolute;
  inset: -26px -20px;
  z-index: 0;
  border-radius: 36px;
  border: 1px dashed rgba(245, 166, 35, 0.16);
  pointer-events: none;
}
.portrait-orbit::before,
.portrait-orbit::after {
  content: '';
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--amber);
  opacity: 0.8;
  box-shadow: 0 0 12px rgba(245, 166, 35, 0.8);
}
.portrait-orbit::before {
  top: 12%;
  right: 2px;
}
.portrait-orbit::after {
  bottom: 16%;
  left: 0;
  background: var(--teal);
  box-shadow: 0 0 12px rgba(94, 234, 212, 0.7);
}

.portrait-frame {
  position: relative;
  z-index: 1;
  padding: 10px;
  border-radius: 26px;
  border: 1px solid rgba(148, 171, 204, 0.22);
  background: linear-gradient(
    155deg,
    rgba(255, 255, 255, 0.085),
    rgba(255, 255, 255, 0.018)
  );
  box-shadow: 0 50px 90px -38px rgba(0, 0, 0, 0.85),
    0 0 0 1px rgba(0, 0, 0, 0.2) inset;
}

.portrait-img {
  position: relative;
  overflow: hidden;
  border-radius: 17px;
  aspect-ratio: 4 / 5;
  background: #0d1420;
}
.portrait-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 16%;
  filter: saturate(0.94) contrast(1.03);
}
.portrait-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 95% at 50% 38%, transparent 55%, rgba(6, 9, 16, 0.38) 100%),
    linear-gradient(
      180deg,
      rgba(6, 9, 16, 0) 42%,
      rgba(6, 9, 16, 0.2) 66%,
      rgba(6, 9, 16, 0.82) 100%
    );
  pointer-events: none;
}
.portrait-img::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    120deg,
    rgba(245, 166, 35, 0.07),
    transparent 45%,
    rgba(56, 189, 248, 0.06)
  );
  mix-blend-mode: screen;
  pointer-events: none;
}

.portrait-hud {
  position: absolute;
  inset: 24px 24px auto;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  gap: 8px;
}
.hud-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 9px;
  border-radius: 6px;
  border: 1px solid rgba(148, 171, 204, 0.24);
  background: rgba(6, 9, 16, 0.58);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  font-family: var(--font-mono);
  font-size: 0.56rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: #cbd7e8;
}
.hud-chip .status-dot {
  width: 5px;
  height: 5px;
  animation: none;
  box-shadow: 0 0 8px rgba(245, 166, 35, 0.8);
}

.portrait-caption {
  position: absolute;
  left: 26px;
  right: 26px;
  bottom: 24px;
  z-index: 3;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}
.portrait-caption strong {
  display: block;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.portrait-caption small {
  display: block;
  margin-top: 2px;
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.portrait-caption .adocsys-mini {
  flex: none;
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--amber-soft);
  padding-bottom: 2px;
}

/* node card removed — kept layout clean */

/* ---------- Ticker ---------- */
.ticker {
  position: relative;
  overflow: hidden;
  padding: 17px 0;
  border-block: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.012);
}
.ticker-track {
  display: flex;
  width: max-content;
  animation: marquee 52s linear infinite;
}
.ticker:hover .ticker-track {
  animation-play-state: paused;
}
.ticker-group {
  display: flex;
  align-items: center;
}
.ticker-group span {
  display: inline-flex;
  align-items: center;
  gap: 26px;
  padding: 0 26px;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--dim);
}
.ticker-group span::after {
  content: '';
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--amber);
  opacity: 0.55;
}
@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

/* ---------- Sections ---------- */
.section {
  position: relative;
  padding: clamp(72px, 10vw, 126px) 0;
}
.section-head {
  max-width: 760px;
  margin-bottom: clamp(34px, 5vw, 52px);
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 18px;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--amber);
}
.eyebrow::before {
  content: '';
  width: 28px;
  height: 1px;
  flex: none;
  background: var(--amber);
  opacity: 0.65;
}
.section h2 {
  max-width: 22ch;
  margin: 0;
  font-size: clamp(2rem, 4.2vw, 3.05rem);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.038em;
}
.section-lead {
  max-width: 60ch;
  margin: 18px 0 0;
  font-size: 1rem;
  color: var(--muted);
  text-wrap: pretty;
}

/* ---------- Services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.service {
  position: relative;
  overflow: hidden;
  padding: clamp(24px, 3.2vw, 34px);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(
    165deg,
    rgba(255, 255, 255, 0.045),
    rgba(255, 255, 255, 0.012)
  );
  transition: transform 0.35s var(--ease), border-color 0.35s, background 0.35s;
}
.service::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(245, 166, 35, 0.55),
    transparent
  );
  opacity: 0;
  transition: opacity 0.35s;
}
.service:hover {
  transform: translateY(-4px);
  border-color: rgba(245, 166, 35, 0.3);
  background: linear-gradient(
    165deg,
    rgba(245, 166, 35, 0.06),
    rgba(255, 255, 255, 0.018)
  );
}
.service:hover::before {
  opacity: 1;
}
.service-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 22px;
}
.service-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 11px;
  border: 1px solid rgba(245, 166, 35, 0.24);
  background: rgba(245, 166, 35, 0.075);
  color: var(--amber-soft);
}
.service-icon svg {
  width: 21px;
  height: 21px;
}
.service-num {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  color: var(--dim);
}
.service h3 {
  margin: 0 0 9px;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.012em;
}
.service p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.68;
  color: var(--muted);
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 20px;
}
.tag {
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--dim);
}

/* ---------- Infrastructure ---------- */
.infra {
  position: relative;
  overflow: hidden;
  padding: clamp(28px, 5vw, 58px);
  border-radius: 28px;
  border: 1px solid var(--line);
  background:
    radial-gradient(600px 300px at 88% 8%, rgba(245, 166, 35, 0.09), transparent 70%),
    radial-gradient(500px 280px at 8% 100%, rgba(94, 234, 212, 0.06), transparent 70%),
    rgba(255, 255, 255, 0.016);
}
.infra::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(148, 171, 204, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(148, 171, 204, 0.05) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(ellipse 70% 90% at 70% 40%, #000, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 90% at 70% 40%, #000, transparent 75%);
}
.infra-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(32px, 5vw, 64px);
}
.infra .section h2,
.infra h2 {
  max-width: 16ch;
  margin: 0;
  font-size: clamp(1.9rem, 3.6vw, 2.7rem);
  font-weight: 600;
  line-height: 1.07;
  letter-spacing: -0.035em;
}
.infra p.infra-lead {
  max-width: 46ch;
  margin: 16px 0 0;
  font-size: 0.95rem;
  color: var(--muted);
}

.principles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin-top: 28px;
}
.principle {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 12px;
  border: 1px solid rgba(148, 171, 204, 0.11);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.015);
  font-size: 0.78rem;
  color: #b9c6d8;
}
.principle svg {
  width: 14px;
  height: 14px;
  flex: none;
  color: var(--teal);
}

.flow {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.flow-node {
  position: relative;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 13px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(6, 9, 16, 0.62);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.flow-node + .flow-node::before {
  content: '';
  position: absolute;
  left: 32px;
  top: -14px;
  width: 1px;
  height: 14px;
  background: linear-gradient(
    to bottom,
    rgba(148, 171, 204, 0.32),
    rgba(148, 171, 204, 0.08)
  );
}
.flow-node + .flow-node::after {
  content: '';
  position: absolute;
  left: 30px;
  top: -14px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 10px rgba(245, 166, 35, 0.9);
  animation: flow 3.4s linear infinite;
  animation-delay: calc(var(--i, 0) * 0.55s);
}
@keyframes flow {
  0% {
    transform: translateY(0);
    opacity: 0;
  }
  12% {
    opacity: 1;
  }
  82% {
    opacity: 1;
  }
  100% {
    transform: translateY(14px);
    opacity: 0;
  }
}
.flow-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 9px;
  border: 1px solid rgba(148, 171, 204, 0.18);
  background: rgba(255, 255, 255, 0.03);
  color: var(--amber-soft);
}
.flow-icon svg {
  width: 18px;
  height: 18px;
}
.flow-node.is-teal .flow-icon {
  border-color: rgba(94, 234, 212, 0.26);
  background: rgba(94, 234, 212, 0.06);
  color: var(--teal);
}
.flow-body {
  flex: 1;
  min-width: 0;
}
.flow-kicker {
  display: block;
  margin-bottom: 1px;
  font-family: var(--font-mono);
  font-size: 0.5rem;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--dim);
}
.flow-title {
  display: block;
  font-size: 0.88rem;
  font-weight: 500;
  line-height: 1.35;
  color: var(--text);
}
.flow-sub {
  display: block;
  font-size: 0.68rem;
  color: var(--dim);
}
.flow-badge {
  flex: none;
  padding: 3px 6px;
  border: 1px solid rgba(94, 234, 212, 0.24);
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.49rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
}

/* ---------- About ---------- */
.about {
  text-align: center;
}
.about .eyebrow {
  justify-content: center;
}
.about .eyebrow::after {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--amber);
  opacity: 0.65;
}
.about-quote {
  max-width: 980px;
  margin: 0 auto;
  font-size: clamp(1.45rem, 3.1vw, 2.3rem);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.028em;
  color: #e9eef7;
  text-wrap: balance;
}
.about-quote .hl {
  color: var(--amber-soft);
}
.about-note {
  max-width: 56ch;
  margin: 22px auto 0;
  font-size: 0.92rem;
  color: var(--muted);
  text-wrap: balance;
}
.about-note em {
  color: #cfdae9;
  font-style: italic;
}

.facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-top: clamp(40px, 6vw, 60px);
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--line);
  overflow: hidden;
  text-align: center;
}
.fact {
  padding: 24px 16px;
  background: var(--bg-2);
}
.fact strong {
  display: block;
  font-size: 1.32rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.2;
}
.fact span {
  display: block;
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: start;
  gap: clamp(32px, 6vw, 76px);
}
.contact-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 32px;
}
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(148, 171, 204, 0.1);
}
.contact-item:first-child {
  padding-top: 0;
}
.contact-item .ci {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: none;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--amber);
}
.contact-item .ci svg {
  width: 15px;
  height: 15px;
}
.contact-item small {
  display: block;
  margin-bottom: 2px;
  font-family: var(--font-mono);
  font-size: 0.53rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--dim);
}
.contact-item .val {
  display: block;
  font-size: 0.94rem;
  line-height: 1.5;
  color: #d5e0ee;
}
.val-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
a.val {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
a.val:hover {
  color: var(--amber-soft);
}
.contact-item .val svg {
  width: 11px;
  height: 11px;
  opacity: 0.6;
}
.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 2px;
  padding: 3px 6px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: transparent;
  font-family: var(--font-mono);
  font-size: 0.5rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dim);
  transition: color 0.2s, border-color 0.2s;
}
.copy-btn:hover {
  color: var(--amber-soft);
  border-color: rgba(245, 166, 35, 0.35);
}
.copy-btn.is-copied {
  color: var(--teal);
  border-color: rgba(94, 234, 212, 0.4);
}

.socials {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 26px;
}
.socials a {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--muted);
  transition: color 0.2s, border-color 0.2s, background 0.2s, transform 0.2s;
}
.socials a:hover {
  color: var(--amber);
  border-color: rgba(245, 166, 35, 0.35);
  background: rgba(245, 166, 35, 0.06);
  transform: translateY(-2px);
}
.socials svg {
  width: 16px;
  height: 16px;
}

.form-card {
  padding: clamp(22px, 3.5vw, 36px);
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(
    170deg,
    rgba(255, 255, 255, 0.05),
    rgba(255, 255, 255, 0.012)
  );
  box-shadow: 0 40px 70px -50px rgba(0, 0, 0, 1);
}
.form-card h3 {
  margin: 0 0 6px;
  font-size: 1.08rem;
  font-weight: 600;
  letter-spacing: -0.015em;
}
.form-card > p {
  margin: 0 0 24px;
  font-size: 0.85rem;
  color: var(--dim);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 16px;
}
.field label {
  font-family: var(--font-mono);
  font-size: 0.57rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
}
.field input,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(6, 9, 16, 0.62);
  color: var(--text);
  font-size: 0.93rem;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.field input::placeholder,
.field textarea::placeholder {
  color: #55677e;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: rgba(245, 166, 35, 0.55);
  background: rgba(6, 9, 16, 0.85);
  box-shadow: 0 0 0 3px rgba(245, 166, 35, 0.1);
}
.field textarea {
  min-height: 132px;
  resize: vertical;
}
.form-card .btn {
  width: 100%;
  margin-top: 4px;
}
.form-note {
  margin: 14px 0 0;
  font-size: 0.71rem;
  line-height: 1.55;
  color: var(--dim);
}
.form-status {
  display: none;
  align-items: flex-start;
  gap: 8px;
  margin: 14px 0 0;
  padding: 10px 12px;
  border: 1px solid rgba(94, 234, 212, 0.3);
  border-radius: 8px;
  background: rgba(94, 234, 212, 0.07);
  font-size: 0.78rem;
  color: #bff7ee;
}
.form-status.is-visible {
  display: flex;
}
.form-status svg {
  width: 14px;
  height: 14px;
  flex: none;
  margin-top: 2px;
  color: var(--teal);
}
.form-status a {
  color: var(--teal);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ---------- Footer ---------- */
.site-footer {
  margin-top: 12px;
  padding: 34px 0 40px;
  border-top: 1px solid var(--line);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  font-size: 0.78rem;
  color: var(--dim);
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer-brand .brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 8px;
}
.footer-brand .brand-mark svg {
  width: 20px;
  height: 20px;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
}
.footer-links a {
  transition: color 0.2s;
}
.footer-links a:hover {
  color: var(--amber-soft);
}
.footer-sep {
  width: 1px;
  height: 12px;
  background: var(--line-strong);
}

.nowrap {
  white-space: nowrap;
}

/* ---------- Reveal ---------- */
html.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
  transition-delay: var(--d, 0ms);
}
html.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 52px;
  }
  .hero-copy {
    max-width: 680px;
  }
  .portrait {
    max-width: 400px;
    justify-self: center;
  }
  .hero-canvas {
    opacity: 0.6;
    -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, #000 20%, transparent 75%);
    mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, #000 20%, transparent 75%);
  }
}

@media (max-width: 980px) {
  .main-nav {
    display: none;
  }
  .nav-toggle {
    display: block;
  }
}

@media (max-width: 900px) {
  .infra-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }
  .flow {
    max-width: 520px;
  }
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 760px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
  .facts {
    grid-template-columns: 1fr 1fr;
  }
  .brand-sub {
    display: none;
  }
  .hero h1 {
    font-size: clamp(2.8rem, 12vw, 4.2rem);
  }
  .portrait {
    justify-self: center;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(100% - 36px, var(--max));
  }
  .header-inner {
    height: 70px;
  }
  .site-header.is-scrolled .header-inner {
    height: 64px;
  }
  .hero {
    padding-top: 118px;
  }
  .hero-meta {
    gap: 8px 16px;
  }
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .principles {
    grid-template-columns: 1fr;
  }
  .portrait-orbit {
    inset: -16px -12px;
  }
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .mobile-nav {
    padding-top: 98px;
  }
}

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  html.js .reveal {
    opacity: 1;
    transform: none;
  }
  .hero-canvas {
    display: none;
  }
}
