/* ===========================================================
   Nython Globaltech — Design System
   Palette derived from brand mark: deep navy + slate accent
   =========================================================== */

:root {
  --color-bg: #FAFAFA;
  --color-bg-raised: #FFFFFF;
  --color-fg: #14181F;
  --color-muted: #5C6470;
  --color-border: #E0E3E8;

  --color-navy: #1E3A56;
  --color-navy-dark: #14283C;
  --color-slate: #9FB4C7;
  --color-slate-light: #E7EDF2;

  --color-success-bg: #EEF3EE;
  --color-success-fg: #2F5233;

  --font-display: "Space Grotesk", sans-serif;
  --font-body: "DM Sans", sans-serif;
  --font-mono: "Spline Sans Mono", monospace;

  --radius: 0px;
  --max-width: 1200px;
  --gutter: clamp(1.25rem, 4vw, 3rem);

  /* 8px base spacing scale */
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 3rem;
  --space-6: 4rem;
  --space-7: 6rem;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--color-slate) transparent;
}

/* ---------- Custom scrollbar ---------- */

::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background-color: var(--color-slate);
  background-clip: padding-box;
  border: 3px solid transparent;
  border-radius: 0;
  transition: background-color 0.2s ease;
}

::-webkit-scrollbar-thumb:hover {
  background-color: var(--color-navy);
}

::-webkit-scrollbar-button {
  display: none;
  width: 0;
  height: 0;
}

::-webkit-scrollbar-corner {
  background: transparent;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-fg);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

/* ---------- Accessibility: focus states & skip link ---------- */

:focus-visible {
  outline: 2px solid var(--color-navy);
  outline-offset: 2px;
}

section.on-dark :focus-visible,
.btn-primary:focus-visible {
  outline-color: var(--color-slate);
}

.skip-link {
  position: absolute;
  top: -100px;
  left: var(--space-2);
  z-index: 10002;
  background: var(--color-navy);
  color: #fff;
  padding: var(--space-1) var(--space-2);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: var(--space-1);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  margin: 0;
}

p { margin: 0; }

ul { margin: 0; padding: 0; list-style: none; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.mono-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-navy);
}

.section-index {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--color-slate);
  letter-spacing: 0.05em;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 250, 250, 0.97);
  border-bottom: 1px solid var(--color-border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.brand img {
  height: 42px;
  width: auto;
}

.brand-wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  line-height: 1.15;
}

.brand-wordmark span {
  display: block;
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  color: var(--color-muted);
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 2.25rem;
}

.main-nav a:not(.btn) {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-fg);
  position: relative;
  padding-bottom: 4px;
}

.main-nav a:not(.btn):hover,
.main-nav a:not(.btn)[aria-current="page"] {
  color: var(--color-navy);
}

.main-nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--color-navy);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.85rem 1.5rem;
  border: 1px solid var(--color-navy);
  border-radius: var(--radius);
  transition: background 0.15s ease, color 0.15s ease;
  cursor: pointer;
}

.btn-primary {
  background: var(--color-navy);
  color: #FFFFFF;
}
.btn-primary:hover { background: var(--color-navy-dark); }

.btn-ghost {
  background: transparent;
  color: var(--color-navy);
}
.btn-ghost:hover { background: var(--color-navy); color: #fff; }

.nav-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  min-width: 44px;
  min-height: 44px;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--color-fg);
}

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

.hero {
  padding: clamp(3rem, 8vw, 6rem) 0 clamp(2.5rem, 6vw, 4rem);
  background: radial-gradient(ellipse 80% 65% at 72% 45%, #16324A 0%, #0B1929 62%, #081420 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: #fff;
}

.hero .container {
  display: flex;
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
}

.hero-text { flex: 1 1 480px; min-width: 0; }

@media (max-width: 1000px) {
  .hero .container { flex-direction: column; align-items: stretch; }
  .hero-text { order: 1; }
  .card-spread { order: 2; }
}

.hero .mono-label { margin-bottom: 1.25rem; display: block; color: var(--color-slate); }

.hero h1 {
  font-size: clamp(2.4rem, 5.5vw, 4.5rem);
  max-width: 16ch;
  margin-bottom: 1.75rem;
  color: #fff;
}

.hero .lede {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: #B9C6D3;
  max-width: 56ch;
  margin-bottom: 2.5rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero .btn-ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
}
.hero .btn-ghost::before { background: #fff; }
.hero .btn-ghost:hover { color: var(--color-navy-dark); }

/* ---------- Trust bar (home) ---------- */

.trust-bar {
  padding: var(--space-4) 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  background: var(--color-slate-light);
}

.trust-bar-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-5);
}

.trust-item {
  display: flex;
  align-items: baseline;
  gap: var(--space-2);
}

.trust-item .num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.75rem;
  color: var(--color-navy);
}

.trust-item .label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-muted);
}

@media (max-width: 640px) {
  .trust-bar-row { gap: var(--space-3); flex-direction: column; }
}

/* ---------- Breadcrumb ---------- */

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: 1.5rem;
}

.breadcrumb a { color: var(--color-muted); }
.breadcrumb a:hover { color: var(--color-navy); }
.breadcrumb span[aria-current] { color: var(--color-navy); }

/* ---------- Page header (interior pages) ---------- */

.page-header {
  padding: clamp(2.5rem, 6vw, 4rem) 0 clamp(2rem, 5vw, 3rem);
  border-bottom: 1px solid var(--color-border);
}

.page-header h1 {
  font-size: clamp(2rem, 4vw, 3.25rem);
  max-width: 22ch;
  margin: 1rem 0 1.25rem;
}

.page-header .lede {
  color: var(--color-muted);
  font-size: 1.1rem;
  max-width: 60ch;
}

/* ---------- Sections ---------- */

section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
section.bordered { border-bottom: 1px solid var(--color-border); }
section.on-dark {
  background: var(--color-navy);
  color: #fff;
}
section.on-dark .mono-label,
section.on-dark .section-index { color: var(--color-slate); }
section.on-dark .card {
  border-color: rgba(255,255,255,0.18);
  background: var(--color-navy-dark);
}
section.on-dark .card .index { color: var(--color-slate); }
section.on-dark .card p { color: #C3D0DB; }
section.on-tint { background: var(--color-slate-light); }

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.section-heading h2 {
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
  max-width: 20ch;
}

.section-heading .lede {
  color: var(--color-muted);
  max-width: 42ch;
  font-size: 1rem;
}

/* ---------- Grid / Cards ---------- */

.grid {
  display: grid;
  gap: 1px;
  background: var(--color-border);
  border: 1px solid var(--color-border);
}

section.on-dark .grid {
  background: rgba(255,255,255,0.18);
  border-color: rgba(255,255,255,0.18);
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--color-bg-raised);
  padding: 2.25rem;
}

.card .index {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--color-slate);
  display: block;
  margin-bottom: 1.25rem;
}

.card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.9rem;
}

.card p { color: var(--color-muted); font-size: 0.96rem; }

.card a.card-link {
  display: inline-block;
  margin-top: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-navy);
  border-bottom: 1px solid var(--color-navy);
}

/* ---------- Steps (approach) ---------- */

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

.step .index {
  font-family: var(--font-display);
  font-size: 2.25rem;
  color: var(--color-slate);
  display: block;
  margin-bottom: 1rem;
}

.step h3 { font-size: 1.2rem; margin-bottom: 0.75rem; }
.step p { color: var(--color-muted); }

/* ---------- Industries tag list ---------- */

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.tag {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid var(--color-border);
  padding: 0.6rem 1rem;
  color: var(--color-muted);
}

/* ---------- Failure-mode blocks (troubleshooting page) ---------- */

.failure-block {
  border: 1px solid var(--color-border);
  padding: 2.5rem;
  margin-bottom: 1.5rem;
}

.failure-block h2 {
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
}

.failure-block .mono-label { margin-bottom: 0.75rem; display: block; }

.failure-block .cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 1.5rem;
}

.failure-block h4 {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-navy);
  margin-bottom: 0.6rem;
}

.failure-block p { color: var(--color-muted); font-size: 0.96rem; }

/* ---------- Bio (about page) ---------- */

.bio {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 3rem;
  align-items: start;
}

.bio-mark {
  width: 100%;
  aspect-ratio: 1;
  border: 1px solid var(--color-border);
  overflow: hidden;
  background: #fff;
}

.bio-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: grayscale(1);
}

.bio h2 { font-size: 1.75rem; margin-bottom: 0.4rem; }
.bio .role {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-navy);
  display: block;
  margin-bottom: 1.5rem;
}
.bio p { color: var(--color-muted); margin-bottom: 1rem; }

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--color-border);
  border: 1px solid var(--color-border);
  margin-top: 3rem;
}

.stat {
  background: var(--color-bg-raised);
  padding: 2rem;
  text-align: center;
}

.stat .num {
  font-family: var(--font-display);
  font-size: 2.75rem;
  color: var(--color-navy);
  display: block;
}

.stat .label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-top: 0.5rem;
  display: block;
}

/* ---------- Forms ---------- */

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.form-field { display: flex; flex-direction: column; gap: 0.5rem; }
.form-field.full { grid-column: 1 / -1; }

.form-field label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.form-field input,
.form-field select,
.form-field textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: #fff;
  color: var(--color-fg);
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--color-navy);
}

.form-field textarea { resize: vertical; min-height: 140px; }

.form-note {
  font-size: 0.85rem;
  color: var(--color-muted);
  margin-top: 1rem;
}

.form-success {
  border: 1px solid var(--color-success-fg);
  background: var(--color-success-bg);
  color: var(--color-success-fg);
  padding: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

/* ---------- Contact info list ---------- */

.contact-info { display: flex; flex-direction: column; gap: 2rem; }
.contact-info .item .mono-label { margin-bottom: 0.4rem; }
.contact-info .item .value { font-size: 1.15rem; }

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

.site-footer {
  border-top: 1px solid var(--color-border);
  padding: 3rem 0;
}

.site-footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.site-footer .mono-label { color: var(--color-muted); }

.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { font-family: var(--font-mono); font-size: 0.78rem; color: var(--color-muted); }
.footer-links a:hover { color: var(--color-navy); }

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

@media (max-width: 1000px) {
  .grid-2 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .bio { grid-template-columns: 1fr; }
  .bio-mark { width: 140px; }
  .stat-row { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .main-nav { position: fixed; top: 84px; left: 0; right: 0; bottom: 0; background: var(--color-bg); flex-direction: column; align-items: flex-start; padding: 2rem var(--gutter); gap: 1.75rem; transform: translateX(100%); transition: transform 0.2s ease; overflow-y: auto; }
  .main-nav.open { transform: translateX(0); }
  .nav-toggle { display: flex; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .failure-block .cols { grid-template-columns: 1fr; }
  .section-heading { flex-direction: column; align-items: flex-start; }
}

/* ===========================================================
   Premium Motion & Interaction System
   =========================================================== */

/* ---------- Grain texture (adds depth, kills flat-template look) ---------- */

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  opacity: 0.035;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Scroll progress bar ---------- */

.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0%;
  background: var(--color-navy);
  z-index: 10000;
  transition: width 0.08s linear;
}

/* ---------- Page loader ---------- */

.page-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--color-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.page-loader.loaded {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.page-loader svg {
  width: 64px;
  height: 64px;
}

.page-loader polygon,
.page-loader path {
  stroke: var(--color-navy);
  stroke-width: 5;
  fill: none;
  stroke-dasharray: 340;
  stroke-dashoffset: 340;
  animation: draw-logo 1.1s ease forwards;
}

.page-loader path {
  fill: var(--color-navy);
  opacity: 0;
  animation: draw-logo 0.6s ease forwards, fade-in-fill 0.4s ease 0.7s forwards;
}

@keyframes draw-logo {
  to { stroke-dashoffset: 0; }
}

@keyframes fade-in-fill {
  to { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .page-loader { display: none; }
}

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

/* Scoped behind .js-reveal, which main.js adds to <html> only once its observer is wired.
   Without that class the content is simply visible. Previously .reveal hid 25 elements on
   the homepage the moment the stylesheet loaded, so a script that failed, was blocked, or
   never ran left the entire site blank - not degraded, blank. An entrance animation is
   never worth risking the whole page for. */
.js-reveal .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--reveal-delay, 0s);
}

.js-reveal .reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .js-reveal .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Button sweep interaction ---------- */

.btn {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s cubic-bezier(0.65, 0, 0.35, 1);
}

.btn-primary::before { background: var(--color-navy-dark); }
.btn-primary:hover::before { transform: scaleX(1); }
.btn-primary:hover { background: var(--color-navy-dark); }

.btn-ghost::before { background: var(--color-navy); }
.btn-ghost:hover { color: #fff; }
.btn-ghost:hover::before { transform: scaleX(1); }

/* ---------- Card hover lift ---------- */

.card {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease, border-color 0.35s ease;
  position: relative;
}

.grid .card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 48px -24px rgba(20, 40, 60, 0.22);
  z-index: 1;
}

.failure-block {
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.failure-block:hover {
  border-color: var(--color-navy);
  box-shadow: 0 24px 48px -30px rgba(20, 40, 60, 0.25);
}

/* ---------- Nav link underline sweep ---------- */

.main-nav a:not(.btn) {
  overflow: hidden;
}

.main-nav a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; right: 100%; bottom: -2px;
  height: 2px;
  background: var(--color-navy);
  transition: right 0.3s cubic-bezier(0.65, 0, 0.35, 1);
}

.main-nav a:not(.btn):hover::after,
.main-nav a[aria-current="page"]::after {
  right: 0;
}

/* ---------- Icon system ---------- */

.icon {
  width: 40px;
  height: 40px;
  stroke: var(--color-navy);
  stroke-width: 1.5;
  fill: none;
  display: block;
  margin-bottom: 1.5rem;
}

section.on-dark .icon { stroke: var(--color-slate); }

/* ---------- Count-up stat ---------- */

.stat .num { font-variant-numeric: tabular-nums; }

/* ---------- Hero: shade-card spread (signature element) ---------- */

.hero {
  position: relative;
  overflow: hidden;
}

.card-spread {
  position: relative;
  width: min(40vw, 480px);
  aspect-ratio: 1;
  flex-shrink: 0;
}

@media (max-width: 1000px) {
  .card-spread { width: min(400px, 84vw); height: 340px; aspect-ratio: auto; margin: 0 auto; }
}

.swatch-card {
  position: absolute;
  width: var(--w, 110px);
  height: var(--h, 140px);
  top: var(--y, 50%);
  left: var(--x, 50%);
  transform: translate(-50%, -50%) rotate(var(--r, 0deg));
  background: var(--fill, #1E3A56);
  border: 3px solid rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 40px -12px rgba(0, 0, 0, 0.55);
  z-index: var(--z, 1);
  cursor: default;
  opacity: 0;
  animation: card-settle 0.85s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: var(--delay, 0s);
}

.swatch-card:hover {
  transform: translate(-50%, -50%) rotate(var(--r, 0deg)) scale(1.06) translateY(-6px);
  box-shadow: 0 24px 48px -10px rgba(0, 0, 0, 0.6);
  z-index: 20;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

@keyframes card-settle {
  from {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(var(--r, 0deg)) scale(0.75) translateY(18px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) rotate(var(--r, 0deg)) scale(1) translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .swatch-card { animation: none; opacity: 1; }
}

.swatch-card .code {
  position: absolute;
  left: 0.6rem;
  bottom: 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.85);
}

.swatch-card .swatch-name {
  position: absolute;
  left: 0.6rem;
  top: 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}

.swatch-card.light .code { color: rgba(20, 24, 31, 0.72); }
.swatch-card.light .swatch-name { color: rgba(20, 24, 31, 0.5); }

/* ---------- Venture marks (Valuto Royale / BatchGate) ---------- */

.venture-mark {
  height: 56px;
  width: auto;
  display: block;
  margin-bottom: 1.25rem;
}

.venture-mark-wide {
  height: 34px;
}

/* ---------- WhatsApp fixed action ---------- */

.whatsapp-fab {
  position: fixed;
  right: var(--space-3);
  bottom: var(--space-3);
  z-index: 9990;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--color-navy);
  color: #fff;
  padding: 0.85rem 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  box-shadow: 0 12px 32px -8px rgba(20, 40, 60, 0.45);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), background 0.15s ease;
}

.whatsapp-fab:hover {
  background: var(--color-navy-dark);
  transform: translateY(-3px);
}

.whatsapp-fab svg {
  width: 18px;
  height: 18px;
  stroke: #fff;
  stroke-width: 1.5;
  fill: none;
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .whatsapp-fab span { display: none; }
  .whatsapp-fab { padding: 0.85rem; gap: 0; }
}

/* ---------- Basic FAQ list ---------- */

.faq-list { border-top: 1px solid var(--color-border); }

.faq-item {
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--color-border);
}

.faq-item h3 {
  font-size: 1.05rem;
  margin-bottom: 0.6rem;
}

.faq-item p {
  color: var(--color-muted);
  font-size: 0.95rem;
}

/* ---------- Checklist (scale-up-checklist.html) ---------- */

.checklist-group {
  border: 1px solid var(--color-border);
  margin-bottom: 1.5rem;
}

.checklist-group-title {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  background: var(--color-navy);
  padding: 1rem 1.75rem;
}

.checklist-item {
  display: flex;
  gap: 1rem;
  padding: 1.5rem 1.75rem;
  border-bottom: 1px solid var(--color-border);
  align-items: flex-start;
}

.checklist-item:last-child { border-bottom: none; }

.checklist-item .box {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border: 1.5px solid var(--color-navy);
  margin-top: 3px;
}

.checklist-item h4 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}

.checklist-item p { color: var(--color-muted); font-size: 0.94rem; }

/* ---------- Failure-mode tabs (technical-troubleshooting.html) ---------- */

.fm-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 3rem;
  align-items: start;
}

.fm-tabs {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--color-border);
  position: sticky;
  top: 104px;
}

.fm-tab {
  text-align: left;
  background: #fff;
  border: none;
  border-bottom: 1px solid var(--color-border);
  padding: 1.25rem 1.5rem;
  cursor: pointer;
  font-family: var(--font-body);
  color: var(--color-muted);
  transition: background 0.2s ease, color 0.2s ease;
}

.fm-tab:last-child { border-bottom: none; }

.fm-tab .fm-tab-index {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: 0.35rem;
  color: var(--color-slate);
}

.fm-tab .fm-tab-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--color-fg);
}

.fm-tab:hover { background: var(--color-slate-light); }

.fm-tab.active {
  background: var(--color-navy);
}
.fm-tab.active .fm-tab-index { color: var(--color-slate); }
.fm-tab.active .fm-tab-title { color: #fff; }

.fm-panel { display: none; }
.fm-panel.active {
  display: block;
  animation: fm-fade-in 0.4s ease;
}

@keyframes fm-fade-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 900px) {
  .fm-layout { grid-template-columns: 1fr; }
  .fm-tabs { position: static; flex-direction: row; overflow-x: auto; }
  .fm-tab { border-bottom: none; border-right: 1px solid var(--color-border); white-space: nowrap; }
}

/* Hero: a second door for the overseas buyer. The primary path is still the consultancy
   above it - this is an additional entrance, not a replacement for the one that exists. */
.hero-aside{margin-top:1.5rem;max-width:46ch;font-size:.95rem;line-height:1.6;opacity:.82}
.hero-aside a{font-weight:600;text-decoration:underline;text-underline-offset:3px}

/* The Nython / BatchGate relationship, stated rather than implied. Quiet by design: it is a
   disclosure, so it should read as a fact the reader can check, not as a partner badge. */
.powered-by{margin-top:1.75rem;padding:1rem 1.25rem;border-left:2px solid var(--color-green,#0E6B4F);background:rgba(14,107,79,.04);font-size:.95rem;line-height:1.65;max-width:70ch}
.powered-by strong{font-weight:650}
