/* ============================================================
   Analysed — theme
   Palette taken from the original analysed.ch: charcoal header,
   steel-blue diagonal band, light-grey page and the yellow
   "Analysed" wordmark. Type: Barlow / Barlow Condensed (self-hosted).
   ============================================================ */

@font-face { font-family: "Barlow"; font-weight: 400; font-style: normal; font-display: swap; src: url("assets/fonts/barlow-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 500; font-style: normal; font-display: swap; src: url("assets/fonts/barlow-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 600; font-style: normal; font-display: swap; src: url("assets/fonts/barlow-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 600; font-style: normal; font-display: swap; src: url("assets/fonts/barlow-condensed-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 700; font-style: normal; font-display: swap; src: url("assets/fonts/barlow-condensed-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 600; font-style: italic; font-display: swap; src: url("assets/fonts/barlow-condensed-latin-600-italic.woff2") format("woff2"); }

:root {
  /* Charcoal (original header #333, nudged cooler) */
  --charcoal: #2b2e33;
  --charcoal-2: #23262a;
  --charcoal-3: #1b1d21;
  --on-dark: #eef1f4;
  --on-dark-muted: #aab2bc;

  /* Light page */
  --paper: #f3f5f8;
  --card: #ffffff;
  --ink: #1d2025;
  --muted: #5b6470;
  --line: #e1e6ec;

  /* Steel blue from the original (rgb 79,148,201) */
  --blue: #4f94c9;
  --blue-600: #3b7fb4;
  --blue-700: #2d6a99;
  --blue-800: #245780;
  --blue-50: #eaf2f9;

  /* Wordmark yellow */
  --yellow: #f3c40a;
  --yellow-600: #dcb000;

  --up: #2fbf71;
  --down: #e5484d;

  --radius: 18px;
  --radius-sm: 12px;
  --maxw: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow-sm: 0 1px 2px rgba(20, 30, 45, 0.06), 0 4px 14px -6px rgba(20, 30, 45, 0.12);
  --shadow-lg: 0 2px 4px rgba(20, 30, 45, 0.06), 0 24px 48px -18px rgba(20, 40, 70, 0.32);

  --font: "Barlow", "Segoe UI", system-ui, -apple-system, Helvetica, Arial, sans-serif;
  --font-display: "Barlow Condensed", "Arial Narrow", "Barlow", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 76px; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

a { color: var(--blue-700); text-decoration: none; }
img { display: block; max-width: 100%; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.05; margin: 0; letter-spacing: -0.005em; }

.container { width: min(100% - 2.5rem, var(--maxw)); margin-inline: auto; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--yellow); color: var(--charcoal-3); padding: 0.6rem 1rem; border-radius: 0 0 8px 0; font-weight: 600;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 2px solid var(--yellow); outline-offset: 3px; border-radius: 6px; }
.section-light :focus-visible, .tcard :focus-visible { outline-color: var(--blue-700); }

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font: 600 1rem/1 var(--font);
  padding: 0.95rem 1.4rem; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; transition: transform 0.25s var(--ease), background 0.2s, border-color 0.2s, box-shadow 0.25s;
}
.btn span { transition: transform 0.25s var(--ease); }
.btn:hover span { transform: translateX(3px); }
.btn-primary { background: var(--yellow); color: var(--charcoal-3); box-shadow: 0 8px 24px -10px rgba(243, 196, 10, 0.7); }
.btn-primary:hover { background: #ffd21f; transform: translateY(-2px); }
.btn:disabled { opacity: 0.6; cursor: wait; transform: none; }
.btn-ghost { color: var(--on-dark); border-color: rgba(255, 255, 255, 0.22); background: rgba(255, 255, 255, 0.04); }
.btn-ghost:hover { border-color: rgba(255, 255, 255, 0.5); background: rgba(255, 255, 255, 0.08); transform: translateY(-2px); }

/* ---------------- Header / nav ---------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(35, 38, 42, 0.82);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: box-shadow 0.3s;
}
.site-header.scrolled { box-shadow: 0 10px 30px -18px rgba(0, 0, 0, 0.7); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand-logo { height: 34px; width: auto; }

.nav-menu { list-style: none; display: flex; align-items: center; gap: 0.25rem; margin: 0; padding: 0; }
.nav-menu a {
  display: block; color: var(--on-dark-muted); font-weight: 500;
  padding: 0.5rem 0.9rem; border-radius: 999px; transition: color 0.2s, background 0.2s;
}
.nav-menu a:hover { color: #fff; background: rgba(255, 255, 255, 0.07); }
.nav-menu a.nav-cta { color: var(--charcoal-3); background: var(--yellow); font-weight: 600; margin-left: 0.4rem; }
.nav-menu a.nav-cta:hover { background: #ffd21f; }

.nav-toggle {
  display: none; background: none; border: 0; padding: 0.6rem; cursor: pointer;
  flex-direction: column; gap: 5px;
}
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--on-dark); border-radius: 2px; transition: transform 0.3s var(--ease), opacity 0.2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------------- Hero ---------------- */
.hero {
  position: relative; isolation: isolate;
  color: var(--on-dark);
  background: var(--charcoal);
  padding: clamp(3.5rem, 8vw, 6.5rem) 0 clamp(6rem, 12vw, 10rem);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 5vw), 0 100%);
  margin-bottom: -5vw;
  overflow: hidden;
}
/* The steel-blue diagonal from the original site, plus a soft light bloom */
.hero-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.hero-bg::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(60% 60% at 78% 30%, rgba(79, 148, 201, 0.35), transparent 70%),
    radial-gradient(40% 40% at 10% 10%, rgba(243, 196, 10, 0.08), transparent 70%);
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--blue-600), var(--blue-800));
  clip-path: polygon(62% 0, 100% 0, 100% 100%, 38% 100%);
  opacity: 0.55;
}
.hero-bg { background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px); background-size: 22px 22px; }

.hero-inner { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.6rem; margin: 0 0 1.4rem;
  font-size: 0.82rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--on-dark); padding: 0.45rem 0.9rem 0.45rem 0.75rem; border-radius: 999px;
  background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.12);
}
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--up); box-shadow: 0 0 0 0 rgba(47, 191, 113, 0.6); animation: pulse 2.4s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(47, 191, 113, 0); } 100% { box-shadow: 0 0 0 0 rgba(47, 191, 113, 0); } }

.hero-title {
  font-size: clamp(3rem, 7vw, 5.4rem); font-weight: 700; text-transform: none; color: #fff;
  display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 0.25em;
}
.logo-word { height: 1.08em; width: auto; transform: translateY(0.2em); filter: drop-shadow(0 6px 22px rgba(243, 196, 10, 0.28)); }

.hero-lead { font-size: 1.14rem; color: var(--on-dark-muted); max-width: 34rem; margin: 1.6rem 0 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; }

.hero-stats {
  display: flex; flex-wrap: wrap; gap: 1rem 1.7rem;
  margin: 2.8rem 0 0; padding-top: 1.6rem; border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.hero-stats div { display: flex; flex-direction: column-reverse; }
.hero-stats dt { white-space: nowrap; font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--on-dark-muted); }
.hero-stats dd { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: 1.8rem; line-height: 1.1; color: #fff; }
.hero-stats div:first-child dd, .hero-stats div:nth-child(2) dd { color: var(--yellow); }

/* Stacked browser windows */
.hero-stage { position: relative; aspect-ratio: 16 / 12; perspective: 1600px; }
.stage-card {
  position: absolute; margin: 0; width: 78%;
  border-radius: 14px; overflow: hidden; background: #fff;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.08);
  transform-style: preserve-3d;
  transition: transform 0.8s var(--ease);
}
.stage-card img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.stage-back { top: 0; right: 0; transform: rotateY(-16deg) rotateX(6deg) translateZ(-120px); opacity: 0.8; animation: float 9s ease-in-out infinite; }
.stage-mid { top: 17%; left: 0; transform: rotateY(-16deg) rotateX(6deg) translateZ(-40px); animation: float 9s ease-in-out -3s infinite; }
.stage-front { top: 38%; left: 16%; width: 84%; transform: rotateY(-16deg) rotateX(6deg) translateZ(40px); animation: float 9s ease-in-out -6s infinite; }
@keyframes float { 50% { translate: 0 -10px; } }
.hero-stage:hover .stage-back { transform: rotateY(-8deg) rotateX(3deg) translateZ(-120px) translateX(4%); }
.hero-stage:hover .stage-mid { transform: rotateY(-8deg) rotateX(3deg) translateZ(-40px) translateX(-3%); }
.hero-stage:hover .stage-front { transform: rotateY(-8deg) rotateX(3deg) translateZ(40px) translateY(3%); }

/* Browser-window chrome shared by hero + cards */
.frame-bar {
  display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px;
  background: #eef1f5; border-bottom: 1px solid var(--line);
}
.frame-bar i { width: 9px; height: 9px; border-radius: 50%; background: #d3d9e0; flex: none; }
.frame-bar i:nth-child(1) { background: #ff6159; }
.frame-bar i:nth-child(2) { background: #ffbd2e; }
.frame-bar i:nth-child(3) { background: #28c941; }
.frame-bar > span {
  margin-left: 8px; flex: 1; min-width: 0; text-align: center;
  font-size: 0.72rem; color: #6b7480; background: #fff; border-radius: 6px; padding: 2px 10px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  display: flex; align-items: center; justify-content: center; gap: 6px;
}

.frame-host { overflow: hidden; text-overflow: ellipsis; }

/* ---------------- Sections ---------------- */
.section { position: relative; padding: clamp(4.5rem, 9vw, 7.5rem) 0; }
.section-light { background: var(--paper); }
.section-dark { background: var(--charcoal); color: var(--on-dark); }

.section-head { max-width: 44rem; margin-bottom: 2.8rem; }
.section-head h2 { font-size: clamp(2.6rem, 5vw, 3.8rem); }
.section-head > p:not(.kicker) { color: var(--muted); font-size: 1.15rem; margin: 0.8rem 0 0; }
.kicker {
  display: flex; align-items: center; gap: 0.7rem; margin: 0 0 0.9rem;
  font-size: 0.82rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--blue-700);
}
.kicker span {
  font-family: var(--font-display); font-size: 0.95rem; letter-spacing: 0.02em;
  display: inline-grid; place-items: center; width: 2.1rem; height: 2.1rem; border-radius: 50%;
  background: var(--blue-50); color: var(--blue-700);
}
.section-dark .kicker, .section-blue .kicker { color: var(--yellow); }
.section-dark .kicker span, .section-blue .kicker span { background: rgba(255, 255, 255, 0.1); color: var(--yellow); }
.section-dark .section-head > p:not(.kicker) { color: var(--on-dark-muted); }

/* ---------------- Featured project cards ---------------- */
.featured-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.75rem; }

.fcard {
  position: relative; display: flex; flex-direction: column;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); overflow: hidden;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.3s;
}
.fcard:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: #cfd8e2; }

.shot {
  display: block; position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--blue-50), #dde8f2);
  padding: 1.4rem 1.4rem 0;
}
.shot-window {
  border-radius: 10px 10px 0 0; overflow: hidden; background: #fff;
  box-shadow: 0 -2px 0 rgba(255, 255, 255, 0.6), 0 18px 40px -16px rgba(20, 50, 90, 0.45);
  transform-origin: 50% 100%;
  transition: transform 0.6s var(--ease);
}
.shot img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; transition: transform 1.2s var(--ease); }
.fcard:hover .shot-window { transform: translateY(-4px); }
.fcard:hover .shot img, .tcard:hover .shot img { transform: scale(1.035); }

.fcard-body { display: flex; flex-direction: column; flex: 1; padding: 1.6rem 1.7rem 1.7rem; }
.fcard h3 { font-size: 1.85rem; }
.fcard .blurb { color: var(--muted); margin: 0.7rem 0 1.1rem; }

.tag-row { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 0.9rem; }
.tag {
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--blue-700); background: var(--blue-50); padding: 0.28rem 0.65rem; border-radius: 999px;
}

.fcard-foot { margin-top: auto; padding-top: 0.4rem; }
.open-link {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-weight: 600; color: #fff; background: var(--charcoal);
  padding: 0.7rem 1.15rem; border-radius: 999px; transition: background 0.2s, transform 0.25s var(--ease);
}
.open-link .arrow { transition: transform 0.25s var(--ease); }
.open-link:hover { background: var(--blue-700); }
.open-link:hover .arrow { transform: translateX(3px); }

.sublinks { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.sublink {
  font-size: 0.92rem; font-weight: 600; color: var(--ink);
  padding: 0.5rem 0.9rem; border-radius: 999px; border: 1px solid var(--line); background: #fff;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.sublink:hover { background: var(--charcoal); border-color: var(--charcoal); color: #fff; }
.sublink:first-child { background: var(--charcoal); border-color: var(--charcoal); color: #fff; }
.sublink:first-child:hover { background: var(--blue-700); border-color: var(--blue-700); }

/* ---------------- Status dot ---------------- */
.status-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; display: inline-block; }
.status-dot.up { background: var(--up); box-shadow: 0 0 0 3px rgba(47, 191, 113, 0.18); }
.status-dot.down { background: var(--down); box-shadow: 0 0 0 3px rgba(229, 72, 77, 0.18); }

/* ---------------- Tools ---------------- */
.section-blue {
  color: #fff;
  background:
    radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px) 0 0 / 22px 22px,
    linear-gradient(160deg, var(--blue) 0%, var(--blue-700) 55%, var(--blue-800) 100%);
  clip-path: polygon(0 5vw, 100% 0, 100% calc(100% - 5vw), 0 100%);
  padding: calc(clamp(4.5rem, 9vw, 7.5rem) + 5vw) 0;
  margin: -2vw 0;
}
.section-blue .section-head > p:not(.kicker) { color: rgba(255, 255, 255, 0.86); }

.filters { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: -0.8rem 0 2.2rem; }
.chip {
  font: 600 0.92rem/1 var(--font); color: #fff; cursor: pointer;
  padding: 0.6rem 1rem; border-radius: 999px;
  background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.22);
  display: inline-flex; align-items: center; gap: 0.5rem;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.chip small { font-size: 0.76rem; opacity: 0.75; }
.chip:hover { background: rgba(255, 255, 255, 0.2); }
.chip[aria-pressed="true"] { background: var(--yellow); border-color: var(--yellow); color: var(--charcoal-3); }

.tools-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }

.tcard {
  display: flex; flex-direction: column; color: var(--ink);
  background: var(--card); border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 20px 40px -24px rgba(10, 30, 60, 0.6);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), opacity 0.3s;
}
.tcard:hover { transform: translateY(-5px); box-shadow: 0 30px 50px -22px rgba(10, 30, 60, 0.7); }
.tcard[hidden] { display: none; }
.tcard .shot { padding: 1rem 1rem 0; }
.tcard .shot-window { border-radius: 8px 8px 0 0; }
.tcard .frame-bar { height: 24px; gap: 5px; }
.tcard .frame-bar i { width: 7px; height: 7px; }

.tcard-body { display: flex; flex-direction: column; flex: 1; padding: 1.2rem 1.3rem 1.3rem; }
.tcard-cat { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--blue-700); }
.tcard h3 { font-size: 1.5rem; margin-top: 0.25rem; }
.tcard .blurb { color: var(--muted); font-size: 0.98rem; margin: 0.45rem 0 1rem; }

.tcard-links { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; margin-top: auto; }
.tcard-open {
  display: inline-flex; align-items: center; gap: 0.45rem;
  font-weight: 600; color: #fff; background: var(--charcoal); padding: 0.55rem 1rem; border-radius: 999px;
  transition: background 0.2s;
}
.tcard-open .arrow { transition: transform 0.25s var(--ease); }
.tcard-open:hover { background: var(--blue-700); }
.tcard-open:hover .arrow { transform: translateX(3px); }
.tcard-gh {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.92rem; font-weight: 600; color: var(--muted); padding: 0.45rem 0.7rem; border-radius: 999px;
  transition: color 0.2s, background 0.2s;
}
.tcard-gh svg { width: 18px; height: 18px; fill: currentColor; }
.tcard-gh:hover { color: var(--ink); background: var(--paper); }

/* ---------------- About ---------------- */
#about { padding-top: calc(clamp(4.5rem, 9vw, 7.5rem) + 2vw); }
.about { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.about-text h2 { font-size: clamp(2.6rem, 5vw, 3.8rem); margin-bottom: 1.2rem; }
.about-text p:not(.kicker) { color: var(--muted); font-size: 1.1rem; }

.principles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.principles li {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem;
  box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 0.35rem;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.principles li:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.principles li:nth-child(even) { transform: translateY(1.5rem); }
.principles li:nth-child(even):hover { transform: translateY(calc(1.5rem - 4px)); }
.principles svg {
  width: 44px; height: 44px; padding: 10px; margin-bottom: 0.5rem; border-radius: 12px;
  background: var(--charcoal); stroke: var(--yellow); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.principles strong { font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; line-height: 1.15; }
.principles span { color: var(--muted); font-size: 0.95rem; }

/* ---------------- Contact ---------------- */
.section-dark {
  clip-path: polygon(0 4vw, 100% 0, 100% 100%, 0 100%);
  margin-top: -4vw;
  padding-top: calc(clamp(4.5rem, 9vw, 7.5rem) + 4vw);
  background:
    radial-gradient(50% 70% at 100% 0%, rgba(79, 148, 201, 0.22), transparent 70%),
    var(--charcoal);
}
.contact { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.contact .section-head { margin-bottom: 0; }
.contact-form {
  position: relative;
  display: grid; grid-template-columns: 1fr 1fr; gap: 1rem;
  background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius); padding: clamp(1.3rem, 3vw, 2rem);
}
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field-full { grid-column: 1 / -1; }
.field label { font-size: 0.85rem; font-weight: 600; color: var(--on-dark-muted); letter-spacing: 0.02em; }
.field input, .field textarea {
  font: inherit; color: var(--on-dark); background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.14); border-radius: var(--radius-sm); padding: 0.8rem 0.95rem;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.field textarea { resize: vertical; min-height: 8rem; }
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--yellow); background: rgba(0, 0, 0, 0.3);
  box-shadow: 0 0 0 3px rgba(243, 196, 10, 0.2);
}
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.form-status { margin: 0; font-size: 0.95rem; color: var(--on-dark-muted); }
.form-status.ok { color: #6ee7a8; }
.form-status.err { color: #ff9a9d; }

/* ---------------- Footer ---------------- */
.site-footer { background: var(--charcoal-3); color: var(--on-dark-muted); padding: 2.4rem 0; border-top: 1px solid rgba(255, 255, 255, 0.05); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.footer-logo { height: 32px; width: auto; }
.footer-note, .footer-meta { margin: 0; font-size: 0.95rem; }

/* ---------------- Reveal on scroll ---------------- */
.reveal { opacity: 0; translate: 0 26px; transition: opacity 0.8s var(--ease), translate 0.8s var(--ease), transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.3s; }
.reveal.in { opacity: 1; translate: 0 0; }

/* ---------------- Responsive ---------------- */
@media (max-width: 1020px) {
  .tools-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-stage { max-width: 620px; width: 100%; margin: 1rem auto 0; }
  .about, .contact { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  body { font-size: 1rem; }
  .nav-toggle { display: flex; }
  .nav-menu {
    position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0.2rem; padding: 0.8rem 1.25rem 1.2rem;
    background: rgba(35, 38, 42, 0.97); border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: all 0.25s var(--ease);
  }
  .nav-menu.open { transform: none; opacity: 1; visibility: visible; }
  .nav-menu a { padding: 0.8rem 1rem; }
  .nav-menu a.nav-cta { margin: 0.4rem 0 0; text-align: center; }

  .hero-stats { gap: 1.2rem 2.2rem; }
  .hero-stats div { min-width: 40%; }
  .featured-grid, .tools-grid, .principles { grid-template-columns: 1fr; }
  .principles li:nth-child(even) { transform: none; }
  .principles li:nth-child(even):hover { transform: translateY(-4px); }
  .contact-form { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; text-align: center; }
}
