/* SoluTM - Solutions Informatique T.M.
   One stylesheet, system fonts, no external request.
   Palette = the owner's original site: #0b0c10 #1f2833 #181a1f #c5c6c7 #66fcf1 #45c4bb,
   with the #ff014f of his glitch title kept as the only second accent. */

:root {
  --bg: #0b0c10;
  --bg-deep: #07080b;
  --panel: #1f2833;
  --card: #181a1f;
  --text: #c5c6c7;
  --text-strong: #f3f6f7;
  --muted: #9aa5ad;
  --cyan: #66fcf1;
  --cyan-pale: #c9fffb;
  --teal: #45c4bb;
  --hot: #ff014f;
  --hot-soft: #ff6b96;
  --line: rgba(102, 252, 241, 0.16);
  --line-strong: rgba(102, 252, 241, 0.5);
  --glow: rgba(102, 252, 241, 0.14);
  --glass: rgba(24, 28, 35, 0.72);
  --radius: 14px;
  --header-h: 3.75rem;
  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Roboto, Tahoma, Geneva, Verdana, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", "Cascadia Code", Consolas, "SF Mono", Menlo, "Liberation Mono", monospace;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  overflow-wrap: break-word;
}

/* Depth: a faint technical grid and two soft glows behind everything. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(60rem 36rem at 85% -10%, rgba(102, 252, 241, 0.09), transparent 60%),
    radial-gradient(48rem 30rem at -10% 110%, rgba(69, 196, 187, 0.07), transparent 60%),
    linear-gradient(rgba(102, 252, 241, 0.035) 1px, transparent 1px) 0 0 / 56px 56px,
    linear-gradient(90deg, rgba(102, 252, 241, 0.035) 1px, transparent 1px) 0 0 / 56px 56px,
    var(--bg);
}

h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--cyan); text-decoration: underline; text-underline-offset: 0.18em; }
a:hover { color: var(--cyan-pale); }
strong { color: var(--text-strong); font-weight: 600; }

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

::selection { background: var(--cyan); color: var(--bg); }

.container {
  width: 100%;
  max-width: 74rem;
  margin-inline: auto;
  padding-inline: 1rem;
}

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

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -4rem;
  z-index: 1200;
  padding: 0.7rem 1rem;
  background: var(--cyan);
  color: var(--bg);
  font-weight: 600;
  border-radius: 6px;
  text-decoration: none;
}
.skip-link:focus { top: 0.6rem; color: var(--bg); }

.js-only { display: none; }
.js .js-only { display: inline-flex; }
.js .no-js-only { display: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0.7rem 1.4rem;
  font: inherit;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.btn-primary {
  background: linear-gradient(135deg, var(--cyan), var(--teal));
  color: var(--bg);
  box-shadow: 0 0 0 1px rgba(102, 252, 241, 0.3), 0 8px 28px rgba(102, 252, 241, 0.18);
}
.btn-primary:hover {
  color: var(--bg);
  box-shadow: 0 0 0 1px var(--cyan), 0 10px 34px rgba(102, 252, 241, 0.32);
  transform: translateY(-1px);
}
.btn-ghost {
  background: rgba(102, 252, 241, 0.04);
  color: var(--cyan);
  border-color: var(--line-strong);
}
.btn-ghost:hover { background: var(--cyan); color: var(--bg); border-color: var(--cyan); }
.btn-small { min-height: 2.75rem; padding: 0.45rem 0.9rem; font-size: 0.9rem; }
.btn[disabled] { opacity: 0.6; cursor: progress; transform: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(11, 12, 16, 0.82);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0 1rem;
  min-height: var(--header-h);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 2.75rem;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--cyan);
  text-decoration: none;
  text-shadow: 0 0 18px rgba(102, 252, 241, 0.35);
}
.brand-mark {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 2px;
  background: var(--cyan);
  box-shadow: 0 0 12px var(--cyan);
  transform: rotate(45deg);
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.6rem;
  min-height: 2.75rem;
  padding: 0.4rem 0.85rem;
  font: inherit;
  font-family: var(--mono);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cyan);
  background: rgba(102, 252, 241, 0.05);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  cursor: pointer;
}
.nav-toggle-icon { position: relative; width: 1.15rem; height: 0.85rem; }
.nav-toggle-icon::before,
.nav-toggle-icon::after,
.nav-toggle-icon span {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s, top 0.2s;
}
.nav-toggle-icon::before { top: 0; }
.nav-toggle-icon span { top: calc(50% - 1px); }
.nav-toggle-icon::after { top: calc(100% - 2px); }
.nav-toggle[aria-expanded="true"] .nav-toggle-icon::before { top: calc(50% - 1px); transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-icon::after { top: calc(50% - 1px); transform: rotate(-45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-icon span { opacity: 0; }

/* Phone and tablet, no script: the menu stays visible as a row that scrolls sideways. */
.site-nav {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding-bottom: 0.5rem;
  overflow-x: auto;
}
.nav-list { display: flex; gap: 0.25rem; }
.nav-list a {
  display: flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0.3rem 0.7rem;
  font-size: 0.95rem;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
  border-radius: 6px;
}
.nav-list a:hover,
.nav-list a.is-active { color: var(--cyan); background: rgba(102, 252, 241, 0.07); }
.lang-switch { display: flex; gap: 0.5rem; margin-left: auto; }
.lang-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.75rem;
  min-height: 2.5rem;
  padding: 0.3rem 0.7rem;
  font-family: var(--mono);
  font-size: 0.9rem;
  color: var(--cyan);
  text-decoration: none;
  border: 1px solid var(--cyan);
  border-radius: 5px;
  transition: background-color 0.3s, color 0.3s;
}
.lang-btn:hover,
.lang-btn[aria-current="true"] { background: var(--cyan); color: var(--bg); }

/* Phone and tablet, with script: compact header and a menu button. */
@media (max-width: 999.98px) {
  .js .nav-toggle { display: inline-flex; }
  .js .site-nav {
    display: none;
    overflow: visible;
    padding: 0.25rem 0 1rem;
  }
  .js .site-nav.is-open { display: block; }
  .js .nav-list { flex-direction: column; gap: 0; }
  .js .nav-list a {
    min-height: 3.25rem;
    padding: 0.5rem 0.5rem;
    font-size: 1.1rem;
    white-space: normal;
    border-radius: 0;
    border-bottom: 1px solid var(--line);
  }
  .js .lang-switch { margin: 1rem 0 0; }
  .js .lang-btn { min-width: 4rem; min-height: 2.9rem; }
}

@media (min-width: 1000px) {
  .header-inner { flex-wrap: nowrap; }
  .site-nav { width: auto; padding-bottom: 0; overflow: visible; gap: 1.25rem; }
  .lang-switch { margin-left: 0; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 2.5rem 0 3rem;
  border-bottom: 1px solid var(--line);
}
.hero::after {
  /* fades the particle field into the page */
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 6rem;
  z-index: -1;
  background: linear-gradient(transparent, var(--bg));
}
.hero-canvas {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
}
.hero-inner { display: grid; gap: 2.25rem; align-items: center; }

.glitch {
  position: relative;
  display: inline-block;
  margin-bottom: 1rem;
  font-size: clamp(1.05rem, 4.6vw, 1.75rem);
  font-weight: 700;
  line-height: 1.25;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--cyan);
  text-shadow: 0 0 22px rgba(102, 252, 241, 0.35);
}
.glitch-layer {
  position: absolute;
  inset: 0;
  -webkit-clip-path: inset(0 0 100% 0);
  clip-path: inset(0 0 100% 0);
  pointer-events: none;
}
.glitch-layer.is-a { text-shadow: -2px 0 var(--hot); }
.glitch-layer.is-b { text-shadow: 2px 0 #00fff9; }

.hero h1 {
  font-size: clamp(2.05rem, 8.4vw, 3.7rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--text-strong);
  text-wrap: balance;
}
.grad {
  color: var(--cyan);
  background: linear-gradient(100deg, var(--cyan-pale), var(--cyan) 45%, var(--teal));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-lead {
  max-width: 38rem;
  margin-top: 1.25rem;
  font-size: 1.1rem;
  color: var(--text);
}
.typed {
  display: flex;
  gap: 0.6rem;
  min-height: 3.4em;
  margin-top: 1.25rem;
  font-family: var(--mono);
  font-size: 0.98rem;
  line-height: 1.7;
  color: var(--cyan);
}
.typed-prompt { color: var(--teal); }
.typed-text::after {
  content: "";
  display: inline-block;
  width: 0.55em;
  height: 1.05em;
  margin-left: 0.15em;
  vertical-align: text-bottom;
  background: var(--cyan);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1rem; }
.hero-actions .btn { flex: 1 1 14rem; }
.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.75rem;
}
.hero-facts li {
  padding: 0.4rem 0.75rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text);
  background: rgba(31, 40, 51, 0.6);
  border: 1px solid var(--line);
  border-radius: 999px;
}
.hero-facts strong { color: var(--cyan); }

/* ---------- Photo frames (object-fit crops any photo to the slot) ---------- */
.photo-frame {
  position: relative;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--line-strong);
  box-shadow: 0 0 0 6px rgba(102, 252, 241, 0.04), 0 24px 60px rgba(0, 0, 0, 0.55), 0 0 60px rgba(102, 252, 241, 0.1);
}
.photo-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: calc(var(--radius) - 1px);
}
.photo-frame::before,
.photo-frame::after {
  /* HUD corner brackets */
  content: "";
  position: absolute;
  width: 1.6rem;
  height: 1.6rem;
  border: 2px solid var(--cyan);
  pointer-events: none;
  z-index: 1;
}
.photo-frame::before { top: -7px; left: -7px; border-right: 0; border-bottom: 0; border-top-left-radius: 8px; }
.photo-frame::after { bottom: -7px; right: -7px; border-left: 0; border-top: 0; border-bottom-right-radius: 8px; }
.photo-tag {
  position: absolute;
  left: 0.75rem;
  bottom: 0.75rem;
  z-index: 1;
  max-width: calc(100% - 1.5rem);
  padding: 0.3rem 0.65rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cyan);
  background: rgba(11, 12, 16, 0.82);
  border: 1px solid var(--line);
  border-radius: 6px;
}
.hero-photo { aspect-ratio: 3 / 2; overflow: visible; }
.hero-photo img { object-position: 62% 30%; }
.hero-scan {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: calc(var(--radius) - 1px);
  pointer-events: none;
}
.hero-scan::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -30%;
  height: 30%;
  background: linear-gradient(transparent, rgba(102, 252, 241, 0.13), transparent);
}
.photo-ai { aspect-ratio: 1 / 1; }
.photo-ai img { object-position: 50% 35%; }
.photo-foundation { aspect-ratio: 4 / 3; }
.photo-foundation img { object-position: 50% 22%; }
.photo-portrait { aspect-ratio: 5 / 4; width: min(100%, 19rem); margin-inline: auto; }
.photo-portrait img { object-position: 50% 30%; }

/* ---------- Sections ---------- */
.section { position: relative; padding: 3.5rem 0; }
.section-alt {
  background: linear-gradient(120deg, rgba(31, 40, 51, 0.92) 0%, rgba(11, 12, 16, 0.9) 100%);
  border-block: 1px solid var(--line);
}
.section-head { max-width: 46rem; margin: 0 auto 2.25rem; text-align: center; }
.eyebrow {
  display: inline-block;
  margin-bottom: 0.75rem;
  padding: 0.25rem 0.7rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(102, 252, 241, 0.04);
}
.section h2 {
  font-size: clamp(1.7rem, 6.4vw, 2.5rem);
  line-height: 1.15;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--cyan);
  background: linear-gradient(100deg, var(--cyan-pale), var(--cyan) 40%, var(--teal));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-wrap: balance;
}
.section h2::after {
  content: "";
  display: block;
  width: 4.5rem;
  height: 3px;
  margin: 0.9rem auto 0;
  border-radius: 3px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
}
.section-lead { margin-top: 1.1rem; font-size: 1.08rem; }
.subhead {
  margin: 3rem 0 1.5rem;
  font-family: var(--mono);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
  text-align: center;
}

.split { display: grid; gap: 2rem; align-items: center; margin-bottom: 2.5rem; }
.split-text h3 {
  margin-bottom: 0.9rem;
  font-size: clamp(1.3rem, 4.6vw, 1.7rem);
  line-height: 1.25;
  color: var(--text-strong);
}
.split-text p + p { margin-top: 1rem; }

.check-list { display: grid; gap: 0.9rem; margin-top: 1.4rem; }
.check-list li { position: relative; padding-left: 1.9rem; }
.check-list li::before {
  content: "";
  position: absolute;
  left: 0.1rem;
  top: 0.45em;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 2px;
  background: var(--cyan);
  box-shadow: 0 0 10px rgba(102, 252, 241, 0.6);
  transform: rotate(45deg);
}

/* ---------- Cards ---------- */
.card-grid { display: grid; gap: 1.1rem; }
.card {
  position: relative;
  padding: 1.5rem 1.35rem;
  background: linear-gradient(160deg, rgba(31, 40, 51, 0.62), rgba(24, 26, 31, 0.86));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.card::before {
  /* thin light on the top edge: the glass look without a costly blur */
  content: "";
  position: absolute;
  left: 1.25rem;
  right: 1.25rem;
  top: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(102, 252, 241, 0.75), transparent);
  opacity: 0.55;
  transition: opacity 0.3s ease;
}
.card h3,
.card h4 { margin-bottom: 0.6rem; font-size: 1.2rem; line-height: 1.3; color: var(--cyan); }
.card p { line-height: 1.55; }
.card-icon {
  display: grid;
  place-items: center;
  width: 2.9rem;
  height: 2.9rem;
  margin-bottom: 1rem;
  color: var(--cyan);
  background: rgba(102, 252, 241, 0.07);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: inset 0 0 14px rgba(102, 252, 241, 0.08);
}
.card-icon svg { width: 1.5rem; height: 1.5rem; }
.card-index {
  position: absolute;
  top: 1.1rem;
  right: 1.2rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.service-card { text-align: center; }
.badge-plate {
  display: grid;
  place-items: center;
  height: 7rem;
  margin-bottom: 1.2rem;
  padding: 0.9rem 1.1rem;
  background: #f4f7f8;
  border-radius: 10px;
  box-shadow: inset 0 0 0 1px rgba(11, 12, 16, 0.08);
}
.badge-plate img { width: auto; max-width: 100%; max-height: 5.2rem; object-fit: contain; border-radius: 4px; }

.expertise-grid { display: grid; gap: 1.1rem; }
/* Expertise cards are <details>: accordions on phones, always open on larger screens. */
.expertise-card summary {
  display: grid;
  grid-template-columns: auto 1fr auto;
  column-gap: 0.9rem;
  align-items: center;
  min-height: 3rem;
  cursor: pointer;
  list-style: none;
}
.expertise-card summary::-webkit-details-marker { display: none; }
.expertise-card summary .card-icon { grid-row: 1 / span 2; margin-bottom: 0; }
.expertise-card summary h4 { margin: 0; align-self: end; }
.expertise-sub { grid-column: 2; align-self: start; font-size: 0.95rem; line-height: 1.45; }
.expertise-card summary::after {
  content: "+";
  grid-column: 3;
  grid-row: 1 / span 2;
  display: grid;
  place-items: center;
  width: 1.9rem;
  height: 1.9rem;
  font-family: var(--mono);
  font-size: 1.1rem;
  line-height: 1;
  color: var(--cyan);
  border: 1px solid var(--line-strong);
  border-radius: 6px;
}
.expertise-card[open] summary::after { content: "\2212"; }
.expertise-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0.4rem;
  border-color: var(--line-strong);
  background: linear-gradient(150deg, rgba(102, 252, 241, 0.13), rgba(24, 26, 31, 0.9) 60%);
}
.expertise-cta h4 { font-size: 1.3rem; color: var(--text-strong); }
.expertise-cta .btn { margin-top: 0.9rem; }
.chips { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 1rem; }
.chips li {
  padding: 0.22rem 0.6rem;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--text);
  background: rgba(11, 12, 16, 0.55);
  border: 1px solid var(--line);
  border-radius: 6px;
}

/* ---------- Approach ---------- */
.steps { display: grid; gap: 1.1rem; counter-reset: step; }
.step { counter-increment: step; }
.step h3::before {
  content: "0" counter(step);
  display: block;
  margin-bottom: 0.7rem;
  font-family: var(--mono);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--cyan);
  text-shadow: 0 0 16px rgba(102, 252, 241, 0.5);
}

/* ---------- About ---------- */
.about-grid { display: grid; gap: 2.25rem; align-items: center; }
.about-text { max-width: 44rem; }
.about-text p + p { margin-top: 1.2rem; }
.about-text .about-name { font-size: 1.12rem; color: var(--text-strong); }

/* ---------- Blog ---------- */
.post { display: flex; flex-direction: column; }
.post h3 { margin-bottom: 0.35rem; }
.post .date {
  margin-bottom: 0.9rem;
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.post details { margin-top: 1rem; border-top: 1px solid var(--line); }
.post summary {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.9rem;
  padding-top: 0.2rem;
  color: var(--cyan);
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.post summary::-webkit-details-marker { display: none; }
.post summary::before {
  content: "+";
  display: inline-grid;
  place-items: center;
  width: 1.4rem;
  height: 1.4rem;
  font-family: var(--mono);
  line-height: 1;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
}
.post details[open] summary::before { content: "\2212"; }
.post details ul { display: grid; gap: 0.6rem; padding-bottom: 0.25rem; }
.post details li { position: relative; padding-left: 1.1rem; font-size: 0.95rem; }
.post details li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--teal);
}

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: 1.25rem; align-items: start; }
.contact-card { padding: 1.6rem 1.35rem; }
.contact-card h3 { font-size: 1.25rem; }
.contact-form { display: none; gap: 1rem; margin-top: 1.1rem; }
.js .contact-form { display: grid; }
.field { display: grid; gap: 0.35rem; }
.field label { font-weight: 600; color: var(--text-strong); }
.field .optional { font-weight: 400; color: var(--muted); }
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 3rem;
  padding: 0.7rem 0.85rem;
  font: inherit;
  font-size: 1rem;              /* 16px: no zoom on focus on iPhone */
  color: var(--text-strong);
  background: rgba(7, 8, 11, 0.75);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { min-height: 9rem; resize: vertical; }
.field select { appearance: auto; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(102, 252, 241, 0.25);
}
.field [aria-invalid="true"] { border-color: var(--hot-soft); box-shadow: 0 0 0 3px rgba(255, 1, 79, 0.2); }
.field-error { font-size: 0.9rem; color: var(--hot-soft); }
.form-note { font-size: 0.9rem; color: var(--muted); }
.form-status {
  display: grid;
  gap: 0.8rem;
  justify-items: start;
  margin-top: 1rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line-strong);
  border-left-width: 4px;
  border-radius: 8px;
  background: rgba(7, 8, 11, 0.6);
  color: var(--text-strong);
}
.form-status.is-success { border-color: var(--cyan); }
.form-status.is-error { border-color: var(--hot-soft); }
/* Honeypot: off screen for people, visible to naive bots. */
.hp-field {
  position: absolute;
  left: -200vw;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.direct-address {
  display: inline-block;
  margin: 0.9rem 0 1rem;
  font-family: var(--mono);
  font-size: clamp(0.95rem, 4.4vw, 1.15rem);
  color: var(--cyan);
  word-break: break-all;
  -webkit-user-select: all;
  user-select: all;
}
.direct-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.contact-card p + p { margin-top: 0.8rem; }

/* ---------- Footer ---------- */
.site-footer {
  padding: 2rem 0;
  background: var(--panel);
  border-top: 1px solid var(--line);
  text-align: center;
}
.footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.25rem 0.5rem; margin-bottom: 1rem; }
.footer-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0 0.6rem;
  color: var(--text);
  text-decoration: none;
}
.footer-nav a:hover { color: var(--cyan); }
.site-footer p { font-size: 0.9rem; }

/* ---------- Sticky phone bar ---------- */
.mobile-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 900;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 0.6rem;
  padding: 0.6rem 0.75rem calc(0.6rem + env(safe-area-inset-bottom, 0px));
  background: rgba(11, 12, 16, 0.92);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--line-strong);
  transition: transform 0.25s ease;
}
.mobile-cta.is-hidden { transform: translateY(110%); }
.nav-open .mobile-cta { transform: translateY(110%); }
.mobile-cta .btn { min-height: 3rem; padding-inline: 0.75rem; }
body { padding-bottom: 4.6rem; }

/* ---------- 404 ---------- */
.error-page {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 2rem 1rem;
  text-align: center;
}
.error-code {
  font-family: var(--mono);
  font-size: clamp(4rem, 22vw, 8rem);
  font-weight: 700;
  line-height: 1;
  color: var(--cyan);
  text-shadow: -3px 0 var(--hot), 3px 0 #00fff9, 0 0 40px rgba(102, 252, 241, 0.35);
}
.error-page h1 { margin: 1rem 0 0.5rem; font-size: 1.5rem; color: var(--text-strong); }
.error-page .hero-actions { justify-content: center; margin-top: 1.5rem; }
.error-page .hero-actions .btn { flex: 0 1 auto; }
.error-body { padding-bottom: 0; }

/* ---------- Motion (owner 2026-11-26: on every device, reduced-motion setting not followed) ---------- */
@media all {
  .glitch-layer.is-a { animation: glitch-a 7s steps(1, end) infinite; }
  .glitch-layer.is-b { animation: glitch-b 9s steps(1, end) infinite; }
  .typed-text::after { animation: caret 1s steps(1, end) infinite; }
  .hero-scan::before { animation: scan 7s linear infinite; }
  .brand-mark { animation: pulse 3.2s ease-in-out infinite; }

  .reveal-on .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }
  .reveal-on .reveal.is-visible { opacity: 1; transform: none; }
  .reveal-on .card-grid > .reveal:nth-child(3n + 2),
  .reveal-on .expertise-grid > .reveal:nth-child(3n + 2) { transition-delay: 0.08s; }
  .reveal-on .card-grid > .reveal:nth-child(3n),
  .reveal-on .expertise-grid > .reveal:nth-child(3n) { transition-delay: 0.16s; }
}
@media (hover: hover) {
  .card:hover {
    transform: translateY(-5px);
    border-color: var(--line-strong);
    box-shadow: 0 0 0 1px rgba(102, 252, 241, 0.25), 0 18px 44px rgba(0, 0, 0, 0.45), 0 0 34px var(--glow);
  }
  .card:hover::before { opacity: 1; }
}

@keyframes glitch-a {
  0%, 84%, 100% { -webkit-clip-path: inset(0 0 100% 0); clip-path: inset(0 0 100% 0); transform: none; }
  86% { -webkit-clip-path: inset(12% 0 62% 0); clip-path: inset(12% 0 62% 0); transform: translateX(-2px); }
  88% { -webkit-clip-path: inset(58% 0 14% 0); clip-path: inset(58% 0 14% 0); transform: translateX(2px); }
  90% { -webkit-clip-path: inset(34% 0 40% 0); clip-path: inset(34% 0 40% 0); transform: translateX(-1px); }
  92% { -webkit-clip-path: inset(76% 0 4% 0); clip-path: inset(76% 0 4% 0); transform: none; }
}
@keyframes glitch-b {
  0%, 60%, 70%, 100% { -webkit-clip-path: inset(0 0 100% 0); clip-path: inset(0 0 100% 0); transform: none; }
  62% { -webkit-clip-path: inset(44% 0 30% 0); clip-path: inset(44% 0 30% 0); transform: translateX(2px); }
  64% { -webkit-clip-path: inset(8% 0 74% 0); clip-path: inset(8% 0 74% 0); transform: translateX(-2px); }
  66% { -webkit-clip-path: inset(66% 0 10% 0); clip-path: inset(66% 0 10% 0); transform: translateX(1px); }
}
@keyframes caret { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }
@keyframes scan { 0% { top: -30%; } 55%, 100% { top: 110%; } }
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 8px var(--cyan); }
  50% { box-shadow: 0 0 18px var(--cyan), 0 0 30px rgba(102, 252, 241, 0.5); }
}

/* ---------- Larger screens ---------- */
@media (min-width: 600px) {
  .container { padding-inline: 1.5rem; }
  .hero-actions .btn { flex: 0 1 auto; }
  .card-grid.cols-2, .card-grid.cols-3, .card-grid.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .expertise-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .expertise-grid .photo-foundation { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
  .typed { min-height: 1.8em; }
}

@media (min-width: 760px) {
  body { padding-bottom: 0; }
  .mobile-cta { display: none; }
  .section { padding: 5rem 0; }
  .hero { padding: 4rem 0 5rem; }
  .split { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 3rem; }
  .about-grid { grid-template-columns: minmax(0, 19rem) minmax(0, 1fr); gap: 3rem; }
  .contact-grid { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 1.5rem; }
  .contact-card { padding: 2rem; }
  .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
  .contact-form .btn { justify-self: start; min-width: 12rem; }
  /* Expertise cards: plain open cards, no accordion. */
  .expertise-card summary { display: block; min-height: 0; cursor: default; pointer-events: none; }
  .expertise-card summary::after { display: none; }
  .expertise-card summary .card-icon { margin-bottom: 1rem; }
  .expertise-card summary h4 { margin-bottom: 0.6rem; }
  .expertise-sub { display: block; font-size: 1rem; line-height: 1.55; }
}

@media (min-width: 1000px) {
  .container { padding-inline: 2rem; }
  .hero { min-height: min(calc(100vh - var(--header-h)), 54rem); display: grid; align-items: center; }
  .hero-inner { grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); gap: 3.5rem; }
  .card-grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .card-grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .expertise-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .expertise-grid .photo-foundation { grid-column: auto; aspect-ratio: auto; min-height: 24rem; }
  .card { padding: 2rem 1.75rem; }
}

@media (max-width: 380px) {
  .glitch { letter-spacing: 1px; }
  .hero-facts li { font-size: 0.72rem; }
}

@media print {
  body::before, .hero-canvas, .site-header, .mobile-cta, .nav-toggle { display: none; }
  body { background: #fff; color: #000; padding-bottom: 0; }
}
