/*
Theme Name: BRUsoft Industrial
Theme URI: https://www.brusoft.in/
Author: BRUsoft (Bala)
Author URI: https://www.brusoft.in/
Description: Hand-coded WordPress theme for BRUsoft — positioned for industrial dealers, distributors and authorised channel partners. Catalogue-website offer, datasheet-style UI, WhatsApp-first conversion. No page builders, no ACF, native meta boxes only.
Version: 2.1.1
Requires at least: 6.0
Requires PHP: 8.0
License: Proprietary
Text Domain: brusoft
*/

/* ==========================================================================
   DESIGN TOKENS
   Palette is drawn from Indian industrial catalogue print: deep process blue
   brand blocks, amber safety highlight, graphite type on cool print stock.
   ========================================================================== */
:root {
  /* Colour */
  --ink:        #14181C;   /* graphite — body type, dark bands */
  --ink-soft:   #2A3238;
  --steel:      #56626C;   /* secondary type */
  --steel-lite: #8B959D;
  --paper:      #FBFAF7;   /* cool print stock */
  --paper-2:    #F2F1ED;   /* alternating band */
  --white:      #FFFFFF;
  --rule:       #DCDFE2;   /* hairline */
  --rule-soft:  #E9EBED;
  --blue:       #0F3D91;   /* industrial process blue — primary */
  --blue-deep:  #0A2A66;
  --blue-tint:  #EBF0FA;
  --amber:      #F2A007;   /* signal / highlight */
  --amber-tint: #FDF3DE;
  --wa:         #25D366;   /* functional: WhatsApp actions only */
  --wa-deep:    #12A150;

  /* Type
     Display: condensed grotesque — the type on machine nameplates.
     Body: neutral grotesque. Utility: mono for spec data.
     Full system fallbacks so the page holds up with no webfont loaded. */
  --font-display: "Archivo Narrow", "Archivo", "Roboto Condensed",
                  "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-body:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
                  Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono:    ui-monospace, SFMono-Regular, "SF Mono", "JetBrains Mono",
                  Menlo, Consolas, "Liberation Mono", monospace;
  --font-tamil:   "Hind Madurai", var(--font-body);

  /* Scale */
  --step--1: clamp(0.80rem, 0.78rem + 0.10vw, 0.86rem);
  --step-0:  clamp(0.98rem, 0.95rem + 0.15vw, 1.06rem);
  --step-1:  clamp(1.15rem, 1.08rem + 0.35vw, 1.35rem);
  --step-2:  clamp(1.40rem, 1.25rem + 0.70vw, 1.85rem);
  --step-3:  clamp(1.75rem, 1.45rem + 1.35vw, 2.60rem);
  --step-4:  clamp(2.15rem, 1.60rem + 2.60vw, 3.90rem);
  --step-5:  clamp(2.60rem, 1.75rem + 4.00vw, 5.20rem);

  /* Space */
  --sp-1: 0.25rem; --sp-2: 0.5rem;  --sp-3: 0.75rem; --sp-4: 1rem;
  --sp-5: 1.5rem;  --sp-6: 2rem;    --sp-7: 3rem;    --sp-8: 4rem;
  --sp-9: 6rem;    --sp-10: 8rem;

  /* Layout */
  --container:        1200px;
  --container-narrow: 800px;
  --container-wide:   1440px;
  --gutter: clamp(1rem, 4vw, 2.5rem);

  /* Form */
  --radius:    3px;   /* machined, not rounded */
  --radius-lg: 5px;
  --shadow-1: 0 1px 2px rgba(20, 24, 28, 0.06);
  --shadow-2: 0 6px 24px -8px rgba(20, 24, 28, 0.14);
  --shadow-3: 0 20px 50px -20px rgba(10, 42, 102, 0.30);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ==========================================================================
   RESET & BASE
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 2px;
  border-radius: 2px;
}
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0 0 var(--sp-4);
  color: var(--ink);
  text-wrap: balance;
}
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); }
p { margin: 0 0 var(--sp-4); text-wrap: pretty; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0 0 var(--sp-4); padding-left: 1.15rem; }
li { margin-bottom: var(--sp-2); }
blockquote { margin: 0; }
hr { border: 0; border-top: 1px solid var(--rule); margin: var(--sp-7) 0; }
strong, b { font-weight: 650; }
table { border-collapse: collapse; width: 100%; }
:lang(ta), .ta { font-family: var(--font-tamil); }

.screen-reader-text {
  position: absolute !important; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--blue); color: #fff; padding: var(--sp-3) var(--sp-5);
  font-weight: 600;
}
.skip-link:focus { left: var(--sp-4); top: var(--sp-4); }

/* ==========================================================================
   LAYOUT PRIMITIVES
   ========================================================================== */
.wrap {
  width: 100%; max-width: var(--container);
  margin-inline: auto; padding-inline: var(--gutter);
}
.wrap--narrow { max-width: var(--container-narrow); }
.wrap--wide   { max-width: var(--container-wide); }

.band { padding-block: clamp(3.5rem, 8vw, 7rem); }
.band--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.band--paper2 { background: var(--paper-2); }
.band--white  { background: var(--white); }
.band--ink    { background: var(--ink); color: #E7EAEC; }
.band--blue   { background: var(--blue); color: #EAF0FB; }
.band--ink h1, .band--ink h2, .band--ink h3,
.band--blue h1, .band--blue h2, .band--blue h3 { color: #fff; }
.band--ruled { border-top: 1px solid var(--rule); }

/* ==========================================================================
   SIGNATURE DEVICE: the spec block
   A mono label, a hairline, then content — the way a datasheet is set.
   Used to open every major section. Encodes what the section *is*.
   ========================================================================== */
.spec-label {
  display: flex; align-items: center; gap: var(--sp-3);
  font-family: var(--font-mono);
  font-size: 0.70rem; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--steel);
  margin-bottom: var(--sp-4);
}
.spec-label::before {
  content: ""; width: 22px; height: 2px;
  background: var(--amber); flex: none;
}
.band--ink .spec-label, .band--blue .spec-label { color: rgba(255,255,255,0.62); }

.section-head { max-width: 62ch; margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.section-head p {
  font-size: var(--step-1); color: var(--steel); line-height: 1.5;
}
.band--ink .section-head p, .band--blue .section-head p { color: rgba(255,255,255,0.75); }

/* Emphasis mark — amber underscore, used on one word per heading, max */
.mark {
  position: relative; white-space: nowrap;
}
.mark::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0.06em;
  height: 0.30em; background: var(--amber); opacity: 0.42; z-index: -1;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: var(--sp-2);
  font-family: var(--font-body);
  font-size: 0.95rem; font-weight: 600; line-height: 1;
  padding: 0.95rem 1.45rem;
  border: 1px solid transparent; border-radius: var(--radius);
  cursor: pointer; text-align: center;
  transition: transform 0.15s var(--ease), background-color 0.15s var(--ease),
              box-shadow 0.15s var(--ease), color 0.15s var(--ease);
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 17px; height: 17px; flex: none; }

.btn--wa      { background: var(--wa); color: #06301A; }
.btn--wa:hover{ background: var(--wa-deep); color: #fff; }
.btn--primary { background: var(--blue); color: #fff; }
.btn--primary:hover { background: var(--blue-deep); }
.btn--ghost   { background: transparent; color: var(--ink); border-color: var(--rule); }
.btn--ghost:hover { border-color: var(--ink); background: var(--white); }
.band--ink .btn--ghost, .band--blue .btn--ghost {
  color: #fff; border-color: rgba(255,255,255,0.32);
}
.band--ink .btn--ghost:hover, .band--blue .btn--ghost:hover {
  background: rgba(255,255,255,0.10); border-color: #fff;
}
.btn--lg { padding: 1.1rem 1.8rem; font-size: 1rem; }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--sp-3); align-items: center; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-weight: 600; font-size: 0.92rem; color: var(--blue);
}
.link-arrow::after { content: "→"; transition: transform 0.18s var(--ease); }
.link-arrow:hover { text-decoration: none; }
.link-arrow:hover::after { transform: translateX(4px); }

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(251, 250, 247, 0.94);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--rule);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--sp-5); min-height: 68px;
}
.site-brand { display: flex; align-items: center; gap: var(--sp-3); flex: none; }
.site-brand img { max-height: 38px; width: auto; }
.site-brand__text {
  font-family: var(--font-display); font-weight: 700;
  font-size: 1.35rem; letter-spacing: -0.02em; color: var(--ink);
}
.site-brand:hover { text-decoration: none; }

.nav-primary ul {
  display: flex; align-items: center; gap: clamp(0.9rem, 2vw, 1.75rem);
  list-style: none; margin: 0; padding: 0;
}
.nav-primary li { margin: 0; }
.nav-primary a {
  font-size: 0.93rem; font-weight: 550; color: var(--ink-soft);
  padding-block: var(--sp-2); position: relative;
}
.nav-primary a:hover { color: var(--blue); text-decoration: none; }
.nav-primary .current-menu-item > a,
.nav-primary .current_page_item > a { color: var(--blue); }
.nav-primary .current-menu-item > a::after,
.nav-primary .current_page_item > a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 2px; background: var(--amber);
}
.header-actions { display: flex; align-items: center; gap: var(--sp-3); flex: none; }
.header-phone {
  font-family: var(--font-mono); font-size: 0.86rem; font-weight: 500;
  color: var(--steel); white-space: nowrap;
}
.header-phone:hover { color: var(--blue); text-decoration: none; }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--rule);
  border-radius: var(--radius); padding: 0.55rem 0.7rem; cursor: pointer;
}
.nav-toggle span {
  display: block; width: 20px; height: 2px; background: var(--ink);
  margin: 4px 0; transition: transform 0.2s var(--ease), opacity 0.2s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-toggle { display: block; order: 3; }
  .header-phone { display: none; }
  .nav-primary {
    order: 4; flex-basis: 100%; display: none;
    border-top: 1px solid var(--rule); padding-block: var(--sp-4);
  }
  .nav-primary.is-open { display: block; }
  .nav-primary ul { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-primary li { border-bottom: 1px solid var(--rule-soft); }
  .nav-primary li:last-child { border-bottom: 0; }
  .nav-primary a { display: block; padding: 0.85rem 0; font-size: 1rem; }
  .header-inner { flex-wrap: wrap; padding-block: var(--sp-2); }
}

/* ==========================================================================
   HERO — the thesis. Live catalogue→WhatsApp demo, not a stat block.
   ========================================================================== */
.hero {
  position: relative; overflow: hidden;
  background: var(--white);
  border-bottom: 1px solid var(--rule);
  padding-block: clamp(3rem, 7vw, 6rem) clamp(3rem, 7vw, 5.5rem);
}
.hero::before {
  /* faint engineering grid — the paper the catalogue is drawn on */
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, var(--rule-soft) 1px, transparent 1px),
    linear-gradient(to bottom, var(--rule-soft) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(120% 90% at 15% 0%, #000 0%, transparent 72%);
  -webkit-mask-image: radial-gradient(120% 90% at 15% 0%, #000 0%, transparent 72%);
}
.hero .wrap { position: relative; z-index: 1; }
.hero-grid {
  display: grid; grid-template-columns: 1.08fr 0.92fr;
  gap: clamp(2rem, 5vw, 4.5rem); align-items: center;
}
.hero h1 {
  font-size: var(--step-5); letter-spacing: -0.028em; margin-bottom: var(--sp-5);
}
.hero-sub {
  font-size: var(--step-1); color: var(--steel);
  line-height: 1.55; max-width: 46ch; margin-bottom: var(--sp-6);
}
.hero-note {
  margin-top: var(--sp-5); font-size: var(--step--1); color: var(--steel-lite);
  font-family: var(--font-mono); letter-spacing: 0.02em;
}
@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr; gap: var(--sp-7); }
}

/* Proof strip — hard numbers, mono, no gradients */
.proof-strip {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  border-top: 1px solid var(--rule); border-left: 1px solid var(--rule);
  margin-top: clamp(2.5rem, 5vw, 4rem);
  background: var(--white);
}
.proof-strip__cell {
  border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
  padding: var(--sp-5) var(--sp-4);
}
.proof-strip__num {
  font-family: var(--font-display); font-size: var(--step-3);
  font-weight: 700; line-height: 1; letter-spacing: -0.02em; color: var(--blue);
}
.proof-strip__lbl {
  margin-top: var(--sp-2); font-family: var(--font-mono);
  font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--steel);
}

/* ---- Signature element: the enquiry demo -------------------------------- */
.demo {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-2);
  overflow: hidden;
}
.demo__bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--sp-3);
  padding: 0.7rem var(--sp-4);
  background: var(--ink); color: rgba(255,255,255,0.72);
  font-family: var(--font-mono); font-size: 0.68rem;
  letter-spacing: 0.13em; text-transform: uppercase;
}
.demo__bar b { color: #fff; font-weight: 500; }
.demo__body { padding: var(--sp-5); }

.demo__product { display: flex; gap: var(--sp-4); align-items: flex-start; }
.demo__thumb {
  width: 68px; height: 68px; flex: none;
  border: 1px solid var(--rule); border-radius: var(--radius);
  background: var(--paper-2);
  display: grid; place-items: center;
  font-family: var(--font-mono); font-size: 0.6rem; color: var(--steel-lite);
  letter-spacing: 0.1em;
}
.demo__title {
  font-family: var(--font-display); font-weight: 700;
  font-size: 1.12rem; line-height: 1.2; margin: 0 0 var(--sp-1);
}
.demo__brand {
  font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--blue);
}

/* datasheet rows — label : value, exactly as his clients' catalogues read */
.spec-rows { margin: var(--sp-4) 0 0; border-top: 1px solid var(--rule-soft); }
.spec-rows__row {
  display: flex; justify-content: space-between; gap: var(--sp-4);
  padding: 0.52rem 0; border-bottom: 1px solid var(--rule-soft);
  font-size: 0.85rem;
}
.spec-rows__k {
  font-family: var(--font-mono); font-size: 0.72rem;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--steel);
}
.spec-rows__v { font-weight: 600; text-align: right; }
.spec-rows__v--muted { font-weight: 500; color: var(--steel); }

.demo__price {
  margin: var(--sp-4) 0 0; padding: var(--sp-3) var(--sp-4);
  background: var(--amber-tint); border-left: 3px solid var(--amber);
  font-size: 0.86rem;
}
.demo__price b { display: block; font-size: 0.95rem; }
.demo__actions { margin-top: var(--sp-4); }

.demo__msg {
  margin-top: var(--sp-4); padding: var(--sp-4);
  background: #E7F6EC; border: 1px solid #BFE6CC;
  border-radius: var(--radius);
  font-size: 0.85rem; line-height: 1.55;
  display: none;
}
.demo__msg.is-visible { display: block; animation: rise 0.3s var(--ease); }
.demo__msg-head {
  font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--wa-deep); margin-bottom: var(--sp-2);
}
.demo__msg code {
  font-family: var(--font-mono); font-size: 0.78rem;
  color: var(--ink); word-break: break-word;
}
@keyframes rise {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}

/* ==========================================================================
   CLIENT LOGO MARQUEE (CSS only, infinite, pauses on hover)
   ========================================================================== */
.marquee {
  overflow: hidden; position: relative;
  border-block: 1px solid var(--rule);
  background: var(--white);
  padding-block: var(--sp-5);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track {
  display: flex; align-items: center; gap: clamp(2.5rem, 6vw, 5rem);
  width: max-content;
  animation: marquee 42s linear infinite;
}
.marquee:hover .marquee__track,
.marquee:focus-within .marquee__track { animation-play-state: paused; }
.marquee__item { flex: none; display: grid; place-items: center; }
.marquee__item img {
  height: clamp(30px, 4.5vw, 44px); width: auto;
  filter: grayscale(1); opacity: 0.62;
  transition: filter 0.2s var(--ease), opacity 0.2s var(--ease);
}
.marquee__item:hover img { filter: none; opacity: 1; }
.marquee__item span {
  font-family: var(--font-display); font-weight: 700; font-size: 1.05rem;
  color: var(--steel-lite); white-space: nowrap;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; flex-wrap: wrap; width: 100%; justify-content: center; }
}
.marquee-caption {
  text-align: center; font-family: var(--font-mono);
  font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--steel); padding-block: var(--sp-4) 0;
}

/* ==========================================================================
   CARD GRIDS
   ========================================================================== */
.grid { display: grid; gap: var(--sp-5); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); }

/* Problem rows — plain, ruled, no icons */
.pain-list { border-top: 1px solid var(--rule); }
.pain-list__item {
  display: grid; grid-template-columns: auto 1fr; gap: var(--sp-5);
  padding: var(--sp-5) 0; border-bottom: 1px solid var(--rule);
  align-items: start;
}
.pain-list__mark {
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.1em;
  color: var(--amber); padding-top: 0.35rem; white-space: nowrap;
}
.pain-list__item h3 { font-size: var(--step-1); margin-bottom: var(--sp-2); }
.pain-list__item p { color: var(--steel); margin: 0; }
@media (max-width: 620px) {
  .pain-list__item { grid-template-columns: 1fr; gap: var(--sp-2); }
}

/* Service card — spec block form */
.svc-card {
  display: flex; flex-direction: column;
  background: var(--white); border: 1px solid var(--rule);
  border-radius: var(--radius-lg); padding: var(--sp-6);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease),
              transform 0.2s var(--ease);
}
.svc-card:hover {
  border-color: var(--blue); box-shadow: var(--shadow-2);
  transform: translateY(-2px);
}
.svc-card__kicker {
  font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--blue); margin-bottom: var(--sp-3);
}
.svc-card h3 { font-size: var(--step-2); margin-bottom: var(--sp-3); }
.svc-card__lead { color: var(--steel); margin-bottom: var(--sp-4); }
.svc-card__list {
  list-style: none; padding: 0; margin: 0 0 var(--sp-5);
  border-top: 1px solid var(--rule-soft);
}
.svc-card__list li {
  position: relative; padding: 0.5rem 0 0.5rem 1.35rem;
  border-bottom: 1px solid var(--rule-soft);
  font-size: 0.89rem; margin: 0;
}
.svc-card__list li::before {
  content: ""; position: absolute; left: 0; top: 1.05rem;
  width: 7px; height: 7px; background: var(--amber);
}
.svc-card__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); flex-wrap: wrap; }
.svc-card__from {
  font-family: var(--font-mono); font-size: 0.76rem; color: var(--steel);
}
.svc-card__from b { color: var(--ink); font-size: 0.95rem; }

/* ==========================================================================
   WORK / CASE STUDY — datasheet cards. The metrics are the point.
   ========================================================================== */
.work-card {
  background: var(--white); border: 1px solid var(--rule);
  border-radius: var(--radius-lg); overflow: hidden;
  display: flex; flex-direction: column;
  transition: box-shadow 0.2s var(--ease), transform 0.2s var(--ease),
              border-color 0.2s var(--ease);
}
.work-card:hover {
  box-shadow: var(--shadow-2); transform: translateY(-3px);
  border-color: var(--steel-lite);
}
.work-card__media {
  position: relative; aspect-ratio: 16 / 10;
  background: var(--paper-2); border-bottom: 1px solid var(--rule);
  overflow: hidden;
}
.work-card__media img {
  width: 100%; height: 100%; object-fit: cover; object-position: top center;
  transition: transform 0.5s var(--ease);
}
.work-card:hover .work-card__media img { transform: scale(1.03); }
.work-card__tag {
  position: absolute; top: var(--sp-3); left: var(--sp-3);
  background: var(--ink); color: #fff;
  font-family: var(--font-mono); font-size: 0.62rem;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 0.32rem 0.6rem; border-radius: 2px;
}
.work-card__body { padding: var(--sp-5); display: flex; flex-direction: column; flex: 1; }
.work-card__meta {
  font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--steel); margin-bottom: var(--sp-2);
}
.work-card h3 { font-size: var(--step-1); margin-bottom: var(--sp-3); }
.work-card h3 a { color: inherit; }
.work-card h3 a:hover { color: var(--blue); text-decoration: none; }
.work-card__excerpt { color: var(--steel); font-size: 0.9rem; margin-bottom: var(--sp-4); }

/* the metric block — the single most persuasive thing on the site */
.metrics {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(88px, 1fr));
  gap: 1px; background: var(--rule);
  border: 1px solid var(--rule); border-radius: var(--radius);
  margin-bottom: var(--sp-4);
}
.metrics__cell { background: var(--white); padding: var(--sp-3); text-align: center; }
.metrics__v {
  font-family: var(--font-display); font-weight: 700; font-size: 1.28rem;
  line-height: 1.1; color: var(--blue);
}
.metrics__v small { font-size: 0.7rem; font-weight: 600; color: var(--steel); }
.metrics__k {
  margin-top: 0.2rem; font-family: var(--font-mono); font-size: 0.6rem;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--steel);
}
.work-card__foot { margin-top: auto; }

/* single case study */
.cs-hero { border-bottom: 1px solid var(--rule); background: var(--white); }
.cs-facts {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  border-top: 1px solid var(--rule); border-left: 1px solid var(--rule);
  margin-block: var(--sp-6);
}
.cs-facts__cell {
  padding: var(--sp-4);
  border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
}
.cs-facts__k {
  font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.13em;
  text-transform: uppercase; color: var(--steel); margin-bottom: var(--sp-2);
}
.cs-facts__v { font-weight: 600; }

/* ==========================================================================
   TESTIMONIALS
   ========================================================================== */
.quote-card {
  background: var(--white); border: 1px solid var(--rule);
  border-left: 3px solid var(--amber);
  border-radius: var(--radius); padding: var(--sp-6);
  display: flex; flex-direction: column;
}
.quote-card__text {
  font-family: var(--font-display); font-weight: 500;
  font-size: var(--step-1); line-height: 1.42; letter-spacing: -0.01em;
  margin-bottom: var(--sp-5);
}
.quote-card__who {
  margin-top: auto; display: flex; align-items: center; gap: var(--sp-3);
  padding-top: var(--sp-4); border-top: 1px solid var(--rule-soft);
}
.quote-card__who img {
  width: 42px; height: 42px; border-radius: 50%; object-fit: cover; flex: none;
}
.quote-card__name { font-weight: 650; font-size: 0.92rem; line-height: 1.3; }
.quote-card__role {
  font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--steel);
}

/* ==========================================================================
   PRICING
   ========================================================================== */
.price-card {
  background: var(--white); border: 1px solid var(--rule);
  border-radius: var(--radius-lg); padding: var(--sp-6);
  display: flex; flex-direction: column; position: relative;
}
.price-card--featured { border-color: var(--blue); border-width: 2px; box-shadow: var(--shadow-2); }
.price-card__flag {
  position: absolute; top: -1px; right: var(--sp-5);
  transform: translateY(-50%);
  background: var(--blue); color: #fff;
  font-family: var(--font-mono); font-size: 0.62rem;
  letter-spacing: 0.13em; text-transform: uppercase;
  padding: 0.3rem 0.65rem; border-radius: 2px;
}
.price-card h3 { font-size: var(--step-1); margin-bottom: var(--sp-2); }
.price-card__for { color: var(--steel); font-size: 0.86rem; margin-bottom: var(--sp-5); min-height: 2.6em; }
.price-card__amt {
  font-family: var(--font-display); font-weight: 700;
  font-size: var(--step-3); line-height: 1; letter-spacing: -0.02em;
}
.price-card__amt sup { font-size: 0.5em; font-weight: 600; top: -0.7em; }
.price-card__anchor {
  font-family: var(--font-mono); font-size: 0.72rem; color: var(--steel);
  margin-top: var(--sp-2);
}
.price-card__list {
  list-style: none; padding: 0; margin: var(--sp-5) 0;
  border-top: 1px solid var(--rule-soft);
}
.price-card__list li {
  position: relative; padding: 0.5rem 0 0.5rem 1.5rem;
  border-bottom: 1px solid var(--rule-soft); font-size: 0.88rem; margin: 0;
}
.price-card__list li::before {
  content: "✓"; position: absolute; left: 0; top: 0.5rem;
  color: var(--wa-deep); font-weight: 700; font-size: 0.85rem;
}
.price-card .btn { margin-top: auto; }
.price-note {
  margin-top: var(--sp-5); text-align: center;
  font-size: 0.86rem; color: var(--steel);
}

/* ==========================================================================
   PROCESS — a real sequence, so numbering carries information here
   ========================================================================== */
.steps { counter-reset: step; border-top: 1px solid var(--rule); }
.steps__item {
  counter-increment: step;
  display: grid; grid-template-columns: 3.5rem 1fr auto; gap: var(--sp-5);
  padding: var(--sp-5) 0; border-bottom: 1px solid var(--rule);
  align-items: baseline;
}
.steps__item::before {
  content: "0" counter(step);
  font-family: var(--font-mono); font-size: 0.85rem; font-weight: 500;
  color: var(--amber); letter-spacing: 0.06em;
}
.steps__item h3 { font-size: var(--step-1); margin: 0 0 var(--sp-2); }
.steps__item p { color: var(--steel); margin: 0; }
.steps__when {
  font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--steel-lite); white-space: nowrap;
}
@media (max-width: 700px) {
  .steps__item { grid-template-columns: 2.5rem 1fr; }
  .steps__when { grid-column: 2; }
}

/* ==========================================================================
   FAQ (native details/summary — no JS, keyboard-accessible by default)
   ========================================================================== */
.faq { border-top: 1px solid var(--rule); }
.faq__item { border-bottom: 1px solid var(--rule); }
.faq__item summary {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: var(--sp-4); padding: var(--sp-5) 0; cursor: pointer;
  font-family: var(--font-display); font-weight: 700;
  font-size: var(--step-1); line-height: 1.25;
  list-style: none;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+"; font-family: var(--font-mono); font-size: 1.3rem;
  color: var(--amber); flex: none; line-height: 1;
  transition: transform 0.2s var(--ease);
}
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item summary:hover { color: var(--blue); }
.faq__a { padding-bottom: var(--sp-5); color: var(--steel); max-width: 72ch; }
.faq__a p:last-child { margin-bottom: 0; }

/* ==========================================================================
   CTA BAND
   ========================================================================== */
.cta-band { text-align: center; }
.cta-band h2 { font-size: var(--step-4); max-width: 22ch; margin-inline: auto; }
.cta-band p { max-width: 54ch; margin-inline: auto; color: rgba(255,255,255,0.78); font-size: var(--step-1); }
.cta-band .btn-row { justify-content: center; margin-top: var(--sp-6); }
.cta-band__reassure {
  margin-top: var(--sp-5); font-family: var(--font-mono);
  font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(255,255,255,0.55);
}

/* ==========================================================================
   FORMS
   ========================================================================== */
.form-grid { display: grid; gap: var(--sp-4); }
.field { display: grid; gap: 0.4rem; }
.field label {
  font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.11em;
  text-transform: uppercase; color: var(--steel); font-weight: 500;
}
.field .req { color: var(--amber); }
.field input, .field select, .field textarea {
  font-family: var(--font-body); font-size: 0.96rem; color: var(--ink);
  background: var(--white); border: 1px solid var(--rule);
  border-radius: var(--radius); padding: 0.8rem 0.9rem; width: 100%;
  transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--blue-tint);
}
.field--hp { position: absolute !important; left: -9999px; }
.form-consent { font-size: 0.8rem; color: var(--steel-lite); }
.form-alert {
  padding: var(--sp-4); border-radius: var(--radius);
  border-left: 3px solid; margin-bottom: var(--sp-5); font-size: 0.92rem;
}
.form-alert--ok  { background: #E7F6EC; border-color: var(--wa-deep); }
.form-alert--err { background: #FDECEC; border-color: #C0392B; }

.contact-grid {
  display: grid; grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2rem, 5vw, 4rem); align-items: start;
}
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-rows { border-top: 1px solid var(--rule); }
.contact-rows__row {
  display: grid; grid-template-columns: 8.5rem 1fr; gap: var(--sp-4);
  padding: var(--sp-4) 0; border-bottom: 1px solid var(--rule);
  font-size: 0.94rem;
}
.contact-rows__k {
  font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--steel);
}
@media (max-width: 520px) { .contact-rows__row { grid-template-columns: 1fr; gap: var(--sp-1); } }

/* ==========================================================================
   ARTICLE / PROSE
   ========================================================================== */
.prose { max-width: 72ch; }
.prose > * + * { margin-top: var(--sp-4); }
.prose h2 { font-size: var(--step-2); margin-top: var(--sp-7); }
.prose h3 { font-size: var(--step-1); margin-top: var(--sp-6); }
.prose ul, .prose ol { padding-left: 1.35rem; }
.prose img { border-radius: var(--radius); margin-block: var(--sp-5); }
.prose blockquote {
  border-left: 3px solid var(--amber); padding-left: var(--sp-5);
  font-family: var(--font-display); font-size: var(--step-1); font-weight: 500;
}
.prose table { margin-block: var(--sp-5); font-size: 0.92rem; }
.prose th, .prose td { border: 1px solid var(--rule); padding: 0.6rem 0.8rem; text-align: left; }
.prose th { background: var(--paper-2); font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; }
.prose code {
  font-family: var(--font-mono); font-size: 0.86em;
  background: var(--paper-2); padding: 0.15em 0.4em; border-radius: 2px;
}

.page-hero { background: var(--white); border-bottom: 1px solid var(--rule); padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.page-hero h1 { max-width: 34ch; }
.page-hero__lead { font-size: var(--step-1); color: var(--steel); max-width: 60ch; }

.crumbs {
  font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--steel-lite); margin-bottom: var(--sp-4);
}
.crumbs a { color: var(--steel); }
.crumbs span { margin-inline: 0.45rem; }

.post-card {
  background: var(--white); border: 1px solid var(--rule);
  border-radius: var(--radius-lg); overflow: hidden;
  display: flex; flex-direction: column;
  transition: box-shadow 0.2s var(--ease), transform 0.2s var(--ease);
}
.post-card:hover { box-shadow: var(--shadow-2); transform: translateY(-2px); }
.post-card__media { aspect-ratio: 16/9; background: var(--paper-2); overflow: hidden; }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; }
.post-card__body { padding: var(--sp-5); display: flex; flex-direction: column; flex: 1; }
.post-card__cat {
  font-family: var(--font-mono); font-size: 0.65rem; letter-spacing: 0.13em;
  text-transform: uppercase; color: var(--blue); margin-bottom: var(--sp-2);
}
.post-card h3 { font-size: var(--step-1); margin-bottom: var(--sp-3); }
.post-card h3 a { color: inherit; }
.post-card__excerpt { font-size: 0.9rem; color: var(--steel); margin-bottom: var(--sp-4); }
.post-card__foot {
  margin-top: auto; display: flex; justify-content: space-between;
  align-items: center; gap: var(--sp-3);
  font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--steel-lite);
}

.pagination { display: flex; gap: var(--sp-2); flex-wrap: wrap; margin-top: var(--sp-7); }
.pagination .page-numbers {
  display: grid; place-items: center; min-width: 40px; height: 40px;
  padding-inline: 0.6rem; border: 1px solid var(--rule);
  border-radius: var(--radius); font-size: 0.9rem; font-weight: 600;
  color: var(--ink); background: var(--white);
}
.pagination .page-numbers:hover { border-color: var(--ink); text-decoration: none; }
.pagination .page-numbers.current { background: var(--blue); border-color: var(--blue); color: #fff; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer { background: var(--ink); color: rgba(255,255,255,0.66); font-size: 0.9rem; }
.site-footer a { color: rgba(255,255,255,0.80); }
.site-footer a:hover { color: #fff; }
.footer-top {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  padding-block: clamp(3rem, 6vw, 4.5rem);
}
@media (max-width: 900px) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-top { grid-template-columns: 1fr; } }
.footer-col h4 {
  color: #fff; font-family: var(--font-mono); font-size: 0.68rem;
  font-weight: 500; letter-spacing: 0.15em; text-transform: uppercase;
  margin-bottom: var(--sp-4);
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 0.6rem; }
.footer-brand__text { max-width: 40ch; margin-bottom: var(--sp-5); }
.footer-social { display: flex; gap: var(--sp-3); }
.footer-social a {
  display: grid; place-items: center; width: 36px; height: 36px;
  border: 1px solid rgba(255,255,255,0.18); border-radius: var(--radius);
}
.footer-social a:hover { background: rgba(255,255,255,0.10); border-color: rgba(255,255,255,0.4); }
.footer-social svg { width: 16px; height: 16px; fill: currentColor; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-block: var(--sp-5);
  display: flex; flex-wrap: wrap; gap: var(--sp-4);
  justify-content: space-between; align-items: center;
  font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.06em;
  color: rgba(255,255,255,0.48);
}
.footer-bottom ul { display: flex; gap: var(--sp-4); list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.footer-bottom li { margin: 0; }

/* Floating WhatsApp */
.wa-float {
  position: fixed; right: clamp(1rem, 3vw, 1.75rem); bottom: clamp(1rem, 3vw, 1.75rem);
  z-index: 90;
  display: inline-flex; align-items: center; gap: var(--sp-3);
  background: var(--wa); color: #06301A;
  font-weight: 700; font-size: 0.9rem;
  padding: 0.8rem 1.15rem; border-radius: 100px;
  box-shadow: 0 10px 30px -8px rgba(18, 161, 80, 0.55);
  transition: transform 0.18s var(--ease), background-color 0.18s var(--ease);
}
.wa-float:hover { transform: translateY(-2px); background: var(--wa-deep); color: #fff; text-decoration: none; }
.wa-float svg { width: 20px; height: 20px; fill: currentColor; flex: none; }
@media (max-width: 560px) { .wa-float span { display: none; } .wa-float { padding: 0.9rem; } }


/* ==========================================================================
   PERSONAL BRAND — portrait, ventures, work index
   ========================================================================== */

/* ---- Portrait -----------------------------------------------------------
   Deliberately not a circular avatar. A rectangular, captioned plate reads
   as a credential — closer to a dealer certificate on a wall than a social
   profile picture, which is the register this site works in. */
.hero-grid--personal { grid-template-columns: 1.1fr 0.9fr; align-items: end; }
@media (max-width: 940px) {
  .hero-grid--personal { grid-template-columns: 1fr; align-items: start; }
}
.portrait { position: relative; }
.portrait__frame {
  margin: 0; background: var(--white);
  border: 1px solid var(--rule); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-2);
}
.portrait__img {
  width: 100%; height: auto; display: block;
  aspect-ratio: 4 / 5; object-fit: cover; object-position: center top;
}
.portrait__cap {
  display: flex; flex-direction: column; gap: 0.15rem;
  padding: var(--sp-4) var(--sp-5);
  border-top: 1px solid var(--rule);
}
.portrait__name {
  font-family: var(--font-display); font-weight: 700;
  font-size: var(--step-1); line-height: 1.1; color: var(--ink);
}
.portrait__role {
  font-family: var(--font-mono); font-size: 0.68rem;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--steel);
}
.portrait__placeholder {
  border: 2px dashed var(--rule); border-radius: var(--radius-lg);
  padding: var(--sp-6); background: var(--paper-2);
  color: var(--steel); font-size: 0.9rem;
}
.portrait__placeholder p:last-child { margin-bottom: 0; }

/* ---- Ventures (on the dark band) ---------------------------------------- */
.venture-list {
  display: grid; gap: 1px; background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.12); border-radius: var(--radius);
  overflow: hidden;
}
.venture {
  background: var(--ink); padding: var(--sp-5);
  display: flex; flex-direction: column; gap: var(--sp-2);
  transition: background-color 0.2s var(--ease);
}
.venture:hover { background: #1B2126; }
@media (min-width: 780px) {
  .venture-list { grid-template-columns: repeat(2, 1fr); }
}
.venture__head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: var(--sp-3); flex-wrap: wrap;
}
.venture__name {
  font-size: var(--step-1); margin: 0; color: #fff;
}
.venture__name a { color: #fff; }
.venture__name a:hover { color: var(--amber); text-decoration: none; }
.venture__status {
  font-family: var(--font-mono); font-size: 0.62rem;
  letter-spacing: 0.13em; text-transform: uppercase;
  padding: 0.25rem 0.55rem; border-radius: 2px;
  background: rgba(242,160,7,0.16); color: var(--amber);
  border: 1px solid rgba(242,160,7,0.32); white-space: nowrap;
}
.venture__what { color: rgba(255,255,255,0.68); font-size: 0.92rem; margin: 0; }
.venture__meta {
  display: flex; gap: var(--sp-5); flex-wrap: wrap;
  font-family: var(--font-mono); font-size: 0.68rem;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(255,255,255,0.42); margin-top: auto; padding-top: var(--sp-2);
}
.venture__meta b { color: var(--amber); font-weight: 600; }

/* ---- Work index — the full list, set as a ledger rather than cards ------- */
.work-index { border-top: 1px solid var(--rule); }
.work-index__row {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 0.7fr) auto;
  gap: var(--sp-4); align-items: baseline;
  padding: var(--sp-4) var(--sp-2);
  border-bottom: 1px solid var(--rule);
  color: var(--ink);
  transition: background-color 0.15s var(--ease), padding-left 0.15s var(--ease);
}
.work-index__row:hover {
  background: var(--white); text-decoration: none; padding-left: var(--sp-4);
}
.work-index__name {
  font-family: var(--font-display); font-weight: 700; font-size: var(--step-1);
  line-height: 1.2;
}
.work-index__row:hover .work-index__name { color: var(--blue); }
.work-index__brand, .work-index__loc, .work-index__skus {
  font-family: var(--font-mono); font-size: 0.7rem;
  letter-spacing: 0.09em; text-transform: uppercase; color: var(--steel);
}
.work-index__skus { text-align: right; white-space: nowrap; color: var(--blue); font-weight: 500; }
@media (max-width: 760px) {
  .work-index__row { grid-template-columns: 1fr auto; row-gap: var(--sp-1); }
  .work-index__name { grid-column: 1 / -1; }
  .work-index__loc { text-align: right; }
  .work-index__skus { grid-column: 2; }
}

/* ==========================================================================
   SCROLL REVEAL (single, restrained)
   ========================================================================== */
/* Opt-in, not opt-out: reveal only hides content once the .js class is set by
   an inline script in <head>. Hiding by default would flash content on slow
   connections, and would hide it permanently if JS failed. */
.js .reveal { opacity: 0; transform: translateY(14px); }
.js .reveal.is-in {
  opacity: 1; transform: none;
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; }
}
