/*
Theme Name: FInnoGlo
Theme URI: https://finnoglo.com
Author: Food Innovation Global
Description: One-page marketing theme for Food Innovation Global and the FInnoGlo platform — editorial paper aesthetic, interactive module hue dial, OKLCH brand colour system.
Version: 1.1.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: Proprietary. All rights reserved.
Text Domain: finnoglo
*/

:root {
  /* FInnoGlo master brand — petrol: ink #003a43 · signal #0297aa · wash #e9f6f9 */
  --paper: #e9f6f9;
  --paper-deep: #d9edf2;
  --ink: #003a43;
  --basil: #024854;
  --basil-deep: #00323b;
  --basil-night: #00252c;
  --paprika: #0297aa;
  --paprika-soft: #3cc0d1;
  --gold: #52b9c8;
  --cream-line: rgba(0, 58, 67, 0.16);
  --mist: rgba(233, 246, 249, 0.7);
  --serif: "Fraunces", Georgia, serif;
  --sans: "Schibsted Grotesk", "Helvetica Neue", sans-serif;
  --mono: "Spline Sans Mono", monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

::selection { background: var(--paprika); color: var(--paper); }

/* ---------- grain overlay ---------- */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- brand watermark ---------- */
#wm {
  position: fixed;
  top: 50%;
  right: 1.5vw;
  transform: translateY(-50%);
  width: min(92vh, 46vw, 880px);
  height: auto;
  opacity: 0.08;
  pointer-events: none;
  z-index: 9998;
}

/* ---------- typography helpers ---------- */
.eyebrow {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--paprika);
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}
.eyebrow::before {
  content: "";
  width: 2.25rem;
  height: 1px;
  background: var(--paprika);
}

h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.04; }

.wonk { font-style: italic; font-variation-settings: "SOFT" 60, "WONK" 1; color: var(--paprika); }

.wrap { max-width: 1240px; margin: 0 auto; padding: 0 clamp(1.25rem, 4vw, 3rem); }

/* ---------- reveal animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1), transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: 0.1s; }
.reveal[data-d="2"] { transition-delay: 0.2s; }
.reveal[data-d="3"] { transition-delay: 0.3s; }
.reveal[data-d="4"] { transition-delay: 0.4s; }
.reveal[data-d="5"] { transition-delay: 0.5s; }

/* ---------- nav ---------- */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background 0.4s ease, box-shadow 0.4s ease;
}
header.scrolled {
  background: var(--mist);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--cream-line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem clamp(1.25rem, 4vw, 3rem);
  max-width: 1400px;
  margin: 0 auto;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.logo .logo-mark { display: block; height: 44px; width: auto; }
.logo .glo { color: var(--paprika); font-style: italic; }
.logo small {
  display: block;
  font-family: var(--mono);
  font-size: 0.56rem;
  font-weight: 400;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--basil);
  margin-top: -0.15rem;
}
.nav-links { display: flex; align-items: center; gap: 2rem; list-style: none; }
.nav-links a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  position: relative;
}
.nav-links a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; bottom: -5px;
  width: 100%; height: 2px;
  background: var(--paprika);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.nav-links a:not(.btn):hover::after { transform: scaleX(1); transform-origin: left; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--sans);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  padding: 0.78rem 1.7rem;
  border-radius: 999px;
  border: 1.5px solid var(--ink);
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  transition: all 0.3s ease;
}
.btn:hover { background: var(--ink); color: var(--paper); transform: translateY(-2px); }
.btn.solid { background: var(--paprika); border-color: var(--paprika); color: #fff; }
.btn.solid:hover { background: var(--ink); border-color: var(--ink); transform: translateY(-2px); }
.btn .arr { transition: transform 0.3s ease; }
.btn:hover .arr { transform: translateX(4px); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 9rem 0 5rem;
  background:
    radial-gradient(1100px 600px at 85% -10%, rgba(2, 151, 170, 0.10), transparent 60%),
    radial-gradient(900px 700px at -15% 110%, rgba(0, 58, 67, 0.12), transparent 60%),
    var(--paper);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 3rem;
  align-items: center;
}
.hero h1 {
  font-size: clamp(3rem, 7.2vw, 6.2rem);
  letter-spacing: -0.025em;
  margin: 1.4rem 0 1.8rem;
}
.hero p.lede {
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  max-width: 34rem;
  color: rgba(0, 58, 67, 0.78);
  margin-bottom: 2.4rem;
}
.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-side { position: relative; display: flex; justify-content: center; }

/* rotating stamp */
.stamp {
  position: relative;
  width: clamp(220px, 24vw, 300px);
  height: clamp(220px, 24vw, 300px);
}
.stamp svg { width: 100%; height: 100%; animation: spin 28s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.stamp text {
  font-family: var(--mono);
  font-size: 9.2px;
  letter-spacing: 3.4px;
  fill: var(--basil);
  text-transform: uppercase;
}
.stamp-core {
  position: absolute;
  inset: 22%;
  border-radius: 50%;
  background: var(--basil);
  color: var(--paper);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(0.82rem, 1.2vw, 1.02rem);
  line-height: 1.2;
  box-shadow: 0 24px 50px -18px rgba(0, 42, 49, 0.45);
}
.stamp-core b { font-style: normal; color: var(--paprika-soft); font-weight: 600; }
.stamp-core .stamp-sym { width: 30%; height: auto; margin-bottom: 0.3rem; }

/* floating award chips */
.chip {
  position: absolute;
  background: var(--paper);
  border: 1px solid var(--cream-line);
  border-radius: 14px;
  padding: 0.7rem 1rem;
  font-size: 0.78rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  box-shadow: 0 18px 40px -20px rgba(0, 58, 67, 0.35);
  animation: float 6s ease-in-out infinite;
  white-space: nowrap;
}
.chip .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--gold); flex: none; }
.chip.c1 { top: 2%; right: 4%; animation-delay: 0s; }
.chip.c2 { bottom: 6%; left: -6%; animation-delay: -3s; }
.chip.c2 .dot { background: var(--paprika); }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.hero-stats {
  display: flex;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--cream-line);
  flex-wrap: wrap;
}
.hero-stats .stat b {
  display: block;
  font-family: var(--serif);
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  font-weight: 600;
  color: var(--basil);
  line-height: 1;
}
.hero-stats .stat span {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(0, 58, 67, 0.6);
}

/* ---------- marquee ---------- */
.marquee {
  background: var(--basil);
  color: var(--paper);
  overflow: hidden;
  padding: 1.05rem 0;
  transform: rotate(-1.2deg) scale(1.02);
  margin: 0 -1rem;
}
.marquee-track {
  display: flex;
  gap: 3rem;
  width: max-content;
  animation: scroll 36s linear infinite;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.15rem;
  white-space: nowrap;
}
.marquee-track i { font-style: normal; color: var(--paprika-soft); }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
section { padding: clamp(5rem, 9vw, 8.5rem) 0; }
.sec-head { max-width: 46rem; margin-bottom: clamp(2.5rem, 5vw, 4.5rem); }
.sec-head h2 { font-size: clamp(2.2rem, 4.6vw, 3.8rem); letter-spacing: -0.02em; margin-top: 1.2rem; }
.sec-head p { margin-top: 1.2rem; color: rgba(0, 58, 67, 0.72); font-size: 1.08rem; }

/* ---------- services ---------- */
.services { background: var(--paper-deep); }
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.svc {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--cream-line);
  border-radius: 22px;
  padding: 2.4rem 2rem 2.2rem;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s ease;
}
.svc:hover { transform: translateY(-8px); box-shadow: 0 30px 60px -30px rgba(0, 58, 67, 0.35); }
.svc .num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 4.6rem;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.2px var(--paprika);
  display: block;
  margin-bottom: 1.6rem;
  transition: color 0.4s ease;
}
.svc:hover .num { color: var(--paprika); }
.svc h3 { font-size: 1.55rem; margin-bottom: 0.9rem; }
.svc p { font-size: 0.95rem; color: rgba(0, 58, 67, 0.72); margin-bottom: 1.4rem; }
.svc ul { list-style: none; display: flex; flex-direction: column; gap: 0.45rem; }
.svc li {
  font-size: 0.86rem;
  font-weight: 500;
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
}
.svc li::before { content: "◆"; font-size: 0.5rem; color: var(--paprika); }
.svc::after {
  content: "";
  position: absolute;
  bottom: -60px; right: -60px;
  width: 140px; height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(2, 151, 170, 0.12), transparent 70%);
}

/* ---------- process strip ---------- */
.process-band {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid var(--cream-line);
  border-bottom: 1px solid var(--cream-line);
}
.step {
  padding: 2.2rem 1.4rem;
  border-right: 1px solid var(--cream-line);
  transition: background 0.3s ease;
}
.step:last-child { border-right: none; }
.step:hover { background: rgba(2, 151, 170, 0.05); }
.step .k {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.22em;
  color: var(--paprika);
}
.step h4 { font-family: var(--serif); font-size: 1.18rem; font-weight: 500; margin: 0.65rem 0 0.4rem; }
.step p { font-size: 0.82rem; color: rgba(0, 58, 67, 0.65); }

/* ---------- platform (dark) ---------- */
.platform {
  background:
    radial-gradient(900px 500px at 110% 0%, rgba(2, 151, 170, 0.20), transparent 55%),
    radial-gradient(700px 500px at -10% 100%, rgba(111, 211, 222, 0.09), transparent 55%),
    var(--basil-night);
  color: var(--paper);
  position: relative;
  overflow: hidden;
}
.platform .eyebrow { color: var(--paprika-soft); }
.platform .eyebrow::before { background: var(--paprika-soft); }
.fp-head { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 3rem; align-items: end; margin-bottom: 3.5rem; }
.fp-head h2 { font-size: clamp(2.4rem, 5vw, 4.2rem); letter-spacing: -0.02em; margin-top: 1.2rem; }
.fp-head h2 em { font-style: italic; color: var(--paprika-soft); }
.fp-head p { color: rgba(233, 246, 249, 0.72); font-size: 1.06rem; }

.plat-stats {
  display: flex;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  margin: 0 0 3.5rem;
  padding-top: 1.8rem;
  border-top: 1px solid rgba(233, 246, 249, 0.14);
  flex-wrap: wrap;
}
.plat-stats .stat b {
  display: block;
  font-family: var(--serif);
  font-size: clamp(1.8rem, 2.8vw, 2.4rem);
  font-weight: 600;
  color: #d9f0f4;
  line-height: 1.1;
}
.plat-stats .stat span {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(233, 246, 249, 0.55);
}

/* mock app window */
.app-mock {
  border-radius: 18px;
  background: #06272e;
  border: 1px solid rgba(233, 246, 249, 0.12);
  box-shadow: 0 50px 100px -40px rgba(0, 0, 0, 0.7);
  overflow: hidden;
  font-size: 0.78rem;
}
.app-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1rem;
  border-bottom: 1px solid rgba(233, 246, 249, 0.1);
  background: rgba(233, 246, 249, 0.04);
}
.app-bar i { width: 10px; height: 10px; border-radius: 50%; display: block; }
.app-bar i:nth-child(1) { background: #e0532f; }
.app-bar i:nth-child(2) { background: #c9982f; }
.app-bar i:nth-child(3) { background: #3f7d54; }
.app-bar span {
  margin-left: 0.8rem;
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  color: rgba(233, 246, 249, 0.55);
}
.app-body { display: grid; grid-template-columns: 150px 1fr; min-height: 320px; }
.app-side {
  border-right: 1px solid rgba(233, 246, 249, 0.1);
  padding: 1rem 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.app-side .si {
  padding: 0.42rem 0.6rem;
  border-radius: 7px;
  color: rgba(233, 246, 249, 0.6);
  font-size: 0.72rem;
}
.app-side .si.on { background: rgba(2, 151, 170, 0.26); color: #9fe0ea; font-weight: 600; }
.app-main { padding: 1.1rem 1.2rem; }
.app-main .ttl { font-family: var(--serif); font-size: 1.05rem; margin-bottom: 0.9rem; color: var(--paper); }
.app-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6rem; margin-bottom: 0.9rem; }
.app-card {
  background: rgba(233, 246, 249, 0.05);
  border: 1px solid rgba(233, 246, 249, 0.1);
  border-radius: 10px;
  padding: 0.7rem;
}
.app-card b { display: block; font-size: 1.05rem; color: #d9f0f4; }
.app-card span { font-size: 0.62rem; color: rgba(233, 246, 249, 0.5); text-transform: uppercase; letter-spacing: 0.08em; }
.app-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.55rem 0.7rem;
  border: 1px solid rgba(233, 246, 249, 0.08);
  border-radius: 9px;
  margin-bottom: 0.45rem;
  color: rgba(233, 246, 249, 0.78);
}
.app-row .tag {
  font-size: 0.6rem;
  font-family: var(--mono);
  padding: 0.16rem 0.5rem;
  border-radius: 999px;
  background: rgba(63, 125, 84, 0.3);
  color: #9ed1ae;
}
.app-row .tag.amber { background: rgba(201, 152, 47, 0.22); color: #e3c882; }
.betty {
  position: absolute;
  bottom: 1rem; right: 1rem;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  background: var(--paprika);
  color: #fff;
  border-radius: 999px;
  padding: 0.5rem 0.95rem;
  font-size: 0.72rem;
  font-weight: 600;
  box-shadow: 0 14px 30px -10px rgba(2, 151, 170, 0.6);
  animation: float 5s ease-in-out infinite;
}
.betty .pulse {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #fff;
  animation: pulse 1.8s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.75); }
}
.mock-wrap { position: relative; }

/* platform pillars */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; margin-top: 3.5rem; }
.pillar {
  border: 1px solid rgba(233, 246, 249, 0.14);
  border-radius: 18px;
  padding: 1.9rem 1.7rem;
  background: rgba(233, 246, 249, 0.03);
  transition: border-color 0.3s ease, background 0.3s ease;
}
.pillar:hover { border-color: rgba(2, 151, 170, 0.55); background: rgba(233, 246, 249, 0.05); }
.pillar .pk {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #6fd3de;
}
.pillar h3 { font-size: 1.4rem; margin: 0.7rem 0 0.7rem; color: var(--paper); }
.pillar p { font-size: 0.9rem; color: rgba(233, 246, 249, 0.7); }

.fp-foot {
  margin-top: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.fp-foot p { color: rgba(233, 246, 249, 0.7); max-width: 32rem; font-size: 0.98rem; }
.fp-foot .btn { border-color: var(--paper); color: var(--paper); }
.fp-foot .btn:hover { background: var(--paprika); border-color: var(--paprika); color: #fff; }

/* ---------- module explorer ---------- */
.modules { background: var(--paper-deep); }

/* the dial */
.mx-top {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  margin-bottom: clamp(2rem, 4vw, 3.2rem);
}
.mx-top .sec-head { margin-bottom: 0; }
.dial-wrap { display: flex; flex-direction: column; align-items: center; gap: 1.3rem; justify-self: end; }
.dial { width: min(290px, 70vw); height: auto; }
.dial .ring { fill: none; stroke: var(--cream-line); stroke-width: 1; }
.dial .tick {
  stroke-width: 5;
  stroke-linecap: round;
  cursor: pointer;
  transition: stroke-width 0.25s ease, opacity 0.25s ease;
}
.dial .tick.reserved { stroke: rgba(0, 58, 67, 0.18); cursor: default; stroke-width: 3.5; }
.dial .tick.occupied:hover { stroke-width: 8; }
.dial .tick.sel { stroke-width: 9; }
.dial .needle { transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1); transform-box: view-box; transform-origin: 50% 50%; }
.dial-core-name {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 550;
  text-anchor: middle;
  fill: var(--ink);
}
.dial-core-sub {
  font-family: var(--mono);
  font-size: 8.4px;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  text-anchor: middle;
  fill: rgba(0, 58, 67, 0.55);
}
.dial-note {
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(0, 58, 67, 0.55);
  text-align: center;
  max-width: 19rem;
  line-height: 1.7;
}

/* module chips */
.mx-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.6rem; }
.mx-chip {
  --h: 210;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--cream-line);
  border-radius: 999px;
  padding: 0.48rem 1rem;
  cursor: pointer;
  transition: all 0.25s ease;
}
.mx-chip .cdot { width: 10px; height: 10px; border-radius: 50%; background: var(--sig, #0297aa); flex: none; }
.mx-chip:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -14px rgba(0, 58, 67, 0.4); }
.mx-chip.on { background: var(--inkm, #003a43); border-color: var(--inkm, #003a43); color: var(--paper); }

/* module panels — hue system: fallback hex, then OKLCH recipe */
.mx-panel, .mx-chip { --inkm: #003a43; --sig: #0297aa; --wash: #e9f6f9; }
@supports (color: oklch(32% 0.06 210)) {
  .mx-panel, .mx-chip {
    --inkm: oklch(0.32 0.06 var(--h));
    --sig: oklch(0.62 0.115 var(--h));
    --wash: oklch(0.965 0.015 var(--h));
  }
}
.mx-panel {
  display: none;
  background: var(--wash);
  border: 1px solid rgba(0, 58, 67, 0.16);
  border-color: color-mix(in oklab, var(--inkm) 18%, transparent);
  border-radius: 24px;
  padding: clamp(1.6rem, 3vw, 2.4rem);
  position: relative;
  overflow: hidden;
}
.mx-panel.on { display: block; animation: panel-in 0.55s cubic-bezier(0.22, 1, 0.36, 1); }
@keyframes panel-in {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}
.mx-panel::after {
  content: "";
  position: absolute;
  top: -90px; right: -90px;
  width: 240px; height: 240px;
  border-radius: 50%;
  border: 1px dashed color-mix(in oklab, var(--sig) 55%, transparent);
  pointer-events: none;
}
.mx-head { display: flex; align-items: center; flex-wrap: wrap; gap: 0.8rem 1.1rem; margin-bottom: 1.3rem; }
.mx-head .mx-id { flex: 1; min-width: 200px; }
.mx-tile {
  width: 58px; height: 58px;
  flex: none;
  border-radius: 24%;
  background: var(--inkm);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 14px 28px -14px color-mix(in oklab, var(--inkm) 70%, transparent);
}
.mx-tile svg { width: 36px; height: 36px; stroke: var(--paper); stroke-width: 3; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.mx-head h3 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); color: var(--inkm); }
.mx-head .mrole {
  display: block;
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sig);
  margin-top: 0.2rem;
}
.mx-hue {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(0, 58, 67, 0.65);
  color: color-mix(in oklab, var(--inkm) 65%, transparent);
  border: 1px solid rgba(0, 58, 67, 0.25);
  border-color: color-mix(in oklab, var(--inkm) 25%, transparent);
  border-radius: 999px;
  padding: 0.3rem 0.75rem;
  white-space: nowrap;
}
.mx-tagline {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
  line-height: 1.4;
  color: var(--inkm);
  margin-bottom: 1.4rem;
}
.mx-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.8rem;
  margin-bottom: 1.5rem;
}
.mx-stat {
  background: rgba(233, 246, 249, 0.55);
  background: color-mix(in oklab, var(--paper) 55%, transparent);
  border: 1px solid rgba(0, 58, 67, 0.14);
  border-color: color-mix(in oklab, var(--inkm) 14%, transparent);
  border-radius: 14px;
  padding: 0.9rem 1rem;
}
.mx-stat b {
  display: block;
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--inkm);
  line-height: 1.15;
}
.mx-stat span { font-size: 0.72rem; color: rgba(0, 58, 67, 0.65); line-height: 1.4; display: block; margin-top: 0.15rem; }
.mx-feats { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 0.65rem 1.6rem; margin-bottom: 1.6rem; }
@media (min-width: 1025px) {
  .mx-feats { grid-template-columns: repeat(3, 1fr); }
}
.mx-feats li { font-size: 0.88rem; line-height: 1.5; position: relative; padding-left: 1.05rem; }
.mx-feats li::before { content: "◆"; font-size: 0.5rem; color: var(--sig); position: absolute; left: 0; top: 0.42em; }
.mx-feats li b { font-weight: 650; color: var(--inkm); }

/* flow strip */
.mx-cap {
  display: block;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sig);
  margin-bottom: 0.65rem;
}
.mx-flow { display: flex; flex-wrap: wrap; gap: 0.7rem 1.35rem; margin-bottom: 1.6rem; }
.mx-flow .fstep {
  flex: 1 1 0;
  min-width: 108px;
  position: relative;
  background: rgba(233, 246, 249, 0.55);
  background: color-mix(in oklab, var(--paper) 55%, transparent);
  border: 1px solid rgba(0, 58, 67, 0.14);
  border-color: color-mix(in oklab, var(--inkm) 14%, transparent);
  border-radius: 12px;
  padding: 0.6rem 0.75rem 0.65rem;
}
.mx-flow .fstep b {
  display: block;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--inkm);
  line-height: 1.2;
  margin-bottom: 0.15rem;
}
.mx-flow .fstep span { font-size: 0.68rem; line-height: 1.4; color: rgba(0, 58, 67, 0.62); display: block; }
.mx-flow .fstep:not(:last-child)::after {
  content: "→";
  position: absolute;
  right: -1.12rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--sig);
  font-size: 0.85rem;
}

/* panel footer: who / try this */
.mx-foot {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem;
  border-top: 1px dashed rgba(0, 58, 67, 0.3);
  border-top-color: color-mix(in oklab, var(--inkm) 30%, transparent);
  padding-top: 1.15rem;
  margin-top: 1.15rem;
}
.mx-foot p { font-size: 0.85rem; line-height: 1.55; color: rgba(0, 58, 67, 0.72); }
.mx-foot .mx-cap { margin-bottom: 0.35rem; }
.mx-together {
  font-size: 0.85rem;
  color: rgba(0, 58, 67, 0.72);
  border-top: 1px dashed rgba(0, 58, 67, 0.3);
  border-top-color: color-mix(in oklab, var(--inkm) 30%, transparent);
  padding-top: 1.1rem;
}
.mx-together b { color: var(--inkm); font-weight: 600; }

/* ---------- about ---------- */
.about-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2.5rem, 6vw, 5.5rem); align-items: start; }
.team { display: flex; flex-direction: column; gap: 1rem; }
.member {
  display: flex;
  align-items: center;
  gap: 1.3rem;
  padding: 1.4rem 1.6rem;
  border: 1px solid var(--cream-line);
  border-radius: 16px;
  background: var(--paper);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease;
}
.member:hover { transform: translateX(8px); box-shadow: 0 20px 44px -24px rgba(0, 58, 67, 0.3); }
.member .ava {
  width: 58px; height: 58px;
  flex: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  color: var(--paper);
  background: var(--basil);
}
.member:nth-child(2) .ava { background: var(--paprika); }
.member:nth-child(3) .ava { background: var(--gold); }
.member:nth-child(4) .ava { background: var(--basil-deep); }
.member b { display: block; font-size: 1.05rem; }
.member span { font-size: 0.84rem; color: rgba(0, 58, 67, 0.62); }
.about p.big {
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2.2vw, 1.7rem);
  line-height: 1.45;
  color: var(--basil);
  margin-top: 1.4rem;
}
.about p.body { margin-top: 1.4rem; color: rgba(0, 58, 67, 0.74); }
.cap-tags { display: flex; flex-wrap: wrap; gap: 0.55rem; margin-top: 1.8rem; }
.cap-tags span {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0.42rem 0.85rem;
  border: 1px solid var(--cream-line);
  border-radius: 999px;
  color: rgba(0, 58, 67, 0.68);
}

/* ---------- contact ---------- */
.contact {
  background: var(--basil);
  color: var(--paper);
  border-radius: 32px;
  margin: 0 clamp(0.75rem, 2vw, 2rem) clamp(2rem, 4vw, 3.5rem);
  position: relative;
  overflow: hidden;
}
.contact::before {
  content: "";
  position: absolute;
  top: -160px; right: -160px;
  width: 460px; height: 460px;
  border-radius: 50%;
  border: 1px solid rgba(233, 246, 249, 0.14);
}
.contact::after {
  content: "";
  position: absolute;
  top: -110px; right: -110px;
  width: 360px; height: 360px;
  border-radius: 50%;
  border: 1px dashed rgba(2, 151, 170, 0.5);
}
.contact-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: center;
  position: relative;
  z-index: 1;
}
.contact h2 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); letter-spacing: -0.02em; margin: 1.4rem 0 1.6rem; }
.contact h2 em { font-style: italic; color: var(--paprika-soft); }
.contact p { color: rgba(233, 246, 249, 0.72); font-size: 1.06rem; }
.contact .eyebrow { color: var(--paprika-soft); }
.contact .eyebrow::before { background: var(--paprika-soft); }
.contact .btn.solid { background: var(--paprika); border-color: var(--paprika); color: #fff; }
.contact .btn.solid:hover { background: var(--paper); border-color: var(--paper); color: var(--basil); }
.contact-meta {
  margin-top: 2.6rem;
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  color: rgba(233, 246, 249, 0.55);
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
.contact-meta a { color: rgba(233, 246, 249, 0.85); text-decoration: none; width: fit-content; }
.contact-meta a:hover { color: var(--paprika-soft); }

/* enquiry form */
.contact-form {
  background: rgba(233, 246, 249, 0.05);
  border: 1px solid rgba(233, 246, 249, 0.14);
  border-radius: 20px;
  padding: clamp(1.5rem, 3vw, 2.2rem);
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.f-label {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(233, 246, 249, 0.6);
}
.topics { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.topic {
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 500;
  color: rgba(233, 246, 249, 0.85);
  background: transparent;
  border: 1px solid rgba(233, 246, 249, 0.28);
  border-radius: 999px;
  padding: 0.5rem 1.05rem;
  cursor: pointer;
  transition: all 0.25s ease;
}
.topic:hover { border-color: var(--paprika-soft); color: #fff; }
.topic.on {
  background: var(--paprika);
  border-color: var(--paprika);
  color: #fff;
  font-weight: 600;
}
.contact-form input,
.contact-form textarea {
  font-family: var(--sans);
  font-size: 0.92rem;
  color: var(--paper);
  background: rgba(233, 246, 249, 0.06);
  border: 1px solid rgba(233, 246, 249, 0.16);
  border-radius: 11px;
  padding: 0.85rem 1.05rem;
  width: 100%;
  resize: vertical;
  transition: border-color 0.25s ease;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: rgba(233, 246, 249, 0.42); }
.contact-form input:focus,
.contact-form textarea:focus { outline: none; border-color: var(--paprika-soft); }
.f-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; }
#topic-other[hidden] { display: none; }
.contact-form .btn { justify-content: center; margin-top: 0.3rem; }
.f-note {
  font-family: var(--mono);
  font-size: 0.64rem !important;
  letter-spacing: 0.1em;
  text-align: center;
  color: rgba(233, 246, 249, 0.45) !important;
}

/* ---------- footer ---------- */
footer {
  padding: 2.4rem 0 3rem;
  border-top: 1px solid var(--cream-line);
}
.foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.foot .fine {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  color: rgba(0, 58, 67, 0.5);
  text-transform: uppercase;
}
.foot .fine img { height: 28px; width: auto; opacity: 0.85; }
.foot nav { display: flex; gap: 1.8rem; }
.foot nav a { font-size: 0.85rem; color: rgba(0, 58, 67, 0.7); text-decoration: none; }
.foot nav a:hover { color: var(--paprika); }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .process-band { grid-template-columns: repeat(2, 1fr); }
  .step { border-bottom: 1px solid var(--cream-line); }
  .fp-head { grid-template-columns: 1fr; }
  .pillars, .svc-grid { grid-template-columns: 1fr; max-width: 36rem; }
  .mx-top { grid-template-columns: 1fr; }
  .dial-wrap { justify-self: center; }
}
@media (max-width: 880px) {
  .nav-links { display: none; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-side { order: -1; }
  .stamp { width: 190px; height: 190px; }
  .chip.c2 { left: 0; }
  .about-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .app-body { grid-template-columns: 1fr; }
  .app-side { flex-direction: row; flex-wrap: wrap; border-right: none; border-bottom: 1px solid rgba(233,246,249,0.1); }
  .mx-feats { grid-template-columns: 1fr; }
  .mx-foot { grid-template-columns: 1fr; }
  .mx-flow .fstep { min-width: 42%; }
  .mx-flow .fstep:not(:last-child)::after { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}
