/* =========================================================================
   Double Tex (BD.) Ltd. — stylesheet
   Concept: "Warp & Weft, dyed in indigo."
   Deep-indigo identity (indigo is the dye of woven/denim), with saturated
   dye-thread accents (madder red, turmeric gold, malachite green) used
   sparingly. Boldness concentrated in the hero's animated warp/weft weave.
   ========================================================================= */

/* Fonts (Archivo / IBM Plex Sans / IBM Plex Mono) are loaded via
   <link rel="preconnect"> + <link rel="stylesheet"> in the document head —
   an @import here would block rendering until it resolves. */

/* ---- Design tokens ---------------------------------------------------- */
:root {
  /* indigo identity */
  --indigo-ink:    #171a3d;   /* deep indigo — hero, footer, headings */
  --indigo:        #2b3a8c;   /* primary brand */
  --indigo-bright: #4257d0;   /* interactive / hover accent */

  /* dye-thread accents — used sparingly */
  --madder:        #c02a35;   /* red dye */
  --turmeric:      #e8a72e;   /* gold dye */
  --malachite:     #1f8a6b;   /* green dye */

  --paper:         #f6f7fb;   /* cool off-white page background */
  --ink:           #1b1e33;   /* body text */
  --muted:         #5a6078;
  --line:          #e4e6f0;

  --surface:       #ffffff;   /* cards are pure white on paper */
  --surface-2:     #f9fafd;   /* input / inset fills */
  --surface-alt:   #eef0f8;   /* slightly deeper cool band for alt sections */
  --wa:            #25d366;

  /* legacy aliases → new palette, so older rules pick up the redesign.
     New/rewritten rules use the canonical indigo names above. */
  --navy:      var(--indigo);
  --navy-deep: var(--indigo-ink);
  --navy-soft: var(--indigo-bright);
  --red:       var(--madder);
  --gold:      var(--turmeric);
  --teal:      var(--malachite);

  --maxw: 1140px;
  --radius: 14px;
  --radius-sm: 9px;
  --radius-lg: 20px;

  --font-body: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-head: 'Archivo', var(--font-body);
  --font-mono: 'IBM Plex Mono', ui-monospace, 'Cascadia Code', Consolas, monospace;

  /* motion — calm, no overshoot/bounce (this is a B2B supplier site) */
  --ease: cubic-bezier(.22, .61, .36, 1);
  --reveal-dur: .55s;

  /* layered, soft shadows in indigo ink */
  --shadow-sm: 0 1px 2px rgba(23,26,61,.05), 0 2px 8px rgba(23,26,61,.05);
  --shadow-md: 0 4px 12px rgba(23,26,61,.07), 0 14px 32px rgba(23,26,61,.10);
  --shadow-lg: 0 8px 24px rgba(23,26,61,.09), 0 28px 56px rgba(23,26,61,.13);

  /* dye-thread ribbon: indigo warp with the three accent threads */
  --thread: repeating-linear-gradient(90deg,
      var(--indigo) 0 7px, var(--madder) 7px 14px,
      var(--turmeric) 14px 21px, var(--malachite) 21px 28px);
}

/* ---- Reset / base ----------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--indigo); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 {
  font-family: var(--font-head);
  color: var(--indigo-ink);
  line-height: 1.1;
  margin: 0 0 .5em;
  letter-spacing: -.02em;
  text-wrap: balance;               /* avoid lonely last words on headings */
}

h1 { font-size: clamp(2.5rem, 5.6vw, 4.1rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.55rem); font-weight: 700; }
h3 { font-size: 1.3rem; font-weight: 700; letter-spacing: -.01em; }

p { margin: 0 0 1rem; }

/* ---- Layout helpers --------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: clamp(1.2rem, 4vw, 2.5rem);
}
.container-narrow { max-width: 760px; }

.section { padding-block: clamp(4rem, 8vw, 6.5rem); }
.section-alt {
  background:
    radial-gradient(60% 60% at 50% 0%, rgba(23,26,61,.04), transparent 70%),
    linear-gradient(180deg, #f1f3fa, var(--surface-alt));
  border-block: 1px solid var(--line);
}

/* mono spec-sheet label with a woven-thread tick */
.eyebrow, .section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  font-family: var(--font-mono);
  font-size: .74rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--indigo);
  margin: 0 0 1rem;
}
.eyebrow::before, .section-eyebrow::before {
  content: "";
  flex: none;
  width: 30px; height: 6px;
  background: var(--thread);
  background-size: 28px 100%;
  border-radius: 1px;
}

.section-intro {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 46ch;
  margin-bottom: 2.5rem;
}

/* accent bar under section headings */
.section > .container > h2,
.section > .container-narrow > h2 { position: relative; }

/* ---- Accessibility helpers ------------------------------------------- */
.sr-only {
  position: absolute; 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: 1rem; top: -3rem;
  background: var(--navy); color: #fff;
  padding: .6rem 1rem; border-radius: var(--radius-sm);
  z-index: 200; transition: top .2s ease;
}
.skip-link:focus { top: 1rem; text-decoration: none; }

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

/* ---- Scroll reveals --------------------------------------------------- */
/* Gated behind .js (set by script.js) so that if the script fails, is blocked,
   or the visitor has JS off, nothing is ever left stuck at opacity 0. */
.js .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity var(--reveal-dur) var(--ease),
              transform var(--reveal-dur) var(--ease);
}
.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---- Buttons ---------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .98rem;
  padding: .8rem 1.5rem;
  border: 0;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: transform .22s var(--ease),
              box-shadow .22s var(--ease),
              background-color .22s var(--ease);
  text-decoration: none;
  line-height: 1;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
/* quick, definite press — shorter than the hover so it feels responsive */
.btn:active { transform: translateY(0); transition-duration: .08s; }
.btn-block { width: 100%; }
.btn-icon { font-size: 1.05em; }

.btn-primary {
  background: linear-gradient(160deg, var(--navy-soft), var(--navy) 60%);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
  background: linear-gradient(160deg, var(--navy), var(--navy-deep) 60%);
  box-shadow: var(--shadow-md);
}

.btn-whatsapp { background: var(--wa); color: #06331c; }
.btn-whatsapp:hover { background: #1fc35d; box-shadow: 0 10px 24px rgba(37,211,102,.28); }

/* ---- Header / nav ----------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  /* dark indigo glass — reads as one block with the hero at the top; the
     dark border + shadow vanish over the dark hero but separate the bar
     cleanly once it scrolls over the light body below */
  background: rgba(23,26,61,.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(9,11,30,.45);
  box-shadow: 0 6px 22px rgba(9,11,30,.22);
}
/* finer "selvedge" edge — a deep-indigo line with periodic madder flecks,
   a nod to the coloured selvedge line of woven denim */
.site-header::before {
  content: "";
  display: block;
  height: 3px;
  background:
    repeating-linear-gradient(90deg, var(--madder) 0 2px, transparent 2px 46px),
    var(--indigo-ink);
}

.nav {
  position: relative;
  max-width: var(--maxw);
  margin-inline: auto;
  padding: .85rem clamp(1.2rem, 4vw, 2.5rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo { display: inline-flex; align-items: center; gap: .7rem; }
.logo:hover { text-decoration: none; }

/* real logo mark (assets/logo-mark.png) */
.logo-img {
  flex: none;
  width: 46px;
  height: 46px;
  object-fit: contain;
}
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-name { font-family: var(--font-head); font-weight: 700; color: #ffffff; font-size: 1rem; }
.logo-tagline { font-size: .72rem; color: #bcc2e6; letter-spacing: .02em; }

.nav-menu { display: flex; align-items: center; gap: 1.75rem; }
.nav-links {
  list-style: none;
  display: flex;
  gap: 1.6rem;
  margin: 0; padding: 0;
}
.nav-links a {
  color: #d9ddf1;
  font-weight: 500;
  font-size: .96rem;
  padding: .35rem 0;
  position: relative;
}
.nav-links a::after {
  content: "";
  position: absolute; left: 0; bottom: -2px;
  width: 100%; height: 2px; background: var(--red);
  transform: scaleX(0);              /* transform, not width — composited */
  transform-origin: left center;
  transition: transform .25s var(--ease);
}
.nav-links a:hover { text-decoration: none; }
.nav-links a:hover::after,
.nav-links a:focus-visible::after { transform: scaleX(1); }

.nav-cta {
  background: var(--red);
  color: #fff;
  font-weight: 600;
  padding: .6rem 1.15rem;
  border-radius: var(--radius-sm);
  font-size: .92rem;
}
.nav-cta:hover { background: #9e222c; text-decoration: none; }

/* hamburger */
.nav-toggle {
  display: none;
  position: relative;
  width: 44px; height: 44px;
  background: transparent;
  border: 1px solid rgba(255,255,255,.20);
  border-radius: 10px;
  cursor: pointer;
}
.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 22px; height: 2px;
  background: #e7eaf6;
  border-radius: 2px;
  transform: translate(-50%, -50%);
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle-bar::before { transform: translate(-50%, -8px); }
.nav-toggle-bar::after  { transform: translate(-50%, 6px); }

body.nav-open .nav-toggle-bar { background: transparent; }
body.nav-open .nav-toggle-bar::before { transform: translate(-50%, -50%) rotate(45deg); }
body.nav-open .nav-toggle-bar::after  { transform: translate(-50%, -50%) rotate(-45deg); }

/* ---- Hero — "dyed in indigo" ----------------------------------------- */
/* The one bold moment: a deep-indigo panel with an animated warp-and-weft
   weave drawing in on load.
   Layer order (isolated stacking context):
     .hero background ... indigo-ink gradient panel   (bottom)
     .hero-weave ........ warp + weft threads         (z-index 0)
     .hero::before ...... veil rooting the text side  (z-index 1)
     .hero-inner ........ badge / name / value prop   (z-index 2)             */
.hero {
  position: relative;
  isolation: isolate;
  padding-block: clamp(4.5rem, 10vw, 8rem);
  color: #eaeeff;
  background:
    radial-gradient(90% 75% at 12% 0%, rgba(66,87,208,.34), transparent 60%),
    linear-gradient(158deg, #242b66 0%, var(--indigo-ink) 55%, #101331 100%);
  overflow: hidden;
}

/* The weave field. Masked to fade behind the headline (left) and read fully
   on the right, so it frames the copy without hurting contrast. */
.hero-weave {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg,
      rgba(0,0,0,.12) 0%, rgba(0,0,0,.35) 34%, #000 72%);
          mask-image: linear-gradient(90deg,
      rgba(0,0,0,.12) 0%, rgba(0,0,0,.35) 34%, #000 72%);
}
/* light threads on a dark ground: screen blend makes each crossing glow,
   which reads as interlacing highlights */
.hero-weave .warp,
.hero-weave .weft {
  position: absolute;
  inset: 0;
  mix-blend-mode: screen;
}
/* WARP — vertical threads: a fine indigo weave plus three sparse dye threads.
   Base state is the finished weave (scaleY 1) so reduced-motion / no-JS shows
   it fully; the keyframe only supplies the draw-down entrance. */
.hero-weave .warp {
  background:
    repeating-linear-gradient(90deg, transparent 0 128px, rgba(245,183,66,.78) 128px 130px, transparent 130px 256px),
    repeating-linear-gradient(90deg, transparent 0 224px, rgba(224, 74,86,.66) 224px 226px, transparent 226px 448px),
    repeating-linear-gradient(90deg, transparent 0 320px, rgba( 46,178,140,.64) 320px 322px, transparent 322px 640px),
    repeating-linear-gradient(90deg, rgba(150,170,255,.30) 0 2px, transparent 2px 22px);
  transform-origin: top center;
  transform: scaleY(1);
  animation: warp-in .9s var(--ease) both;
}
/* WEFT — horizontal threads, woven across after the warp is laid. */
.hero-weave .weft {
  background:
    repeating-linear-gradient(0deg, transparent 0 168px, rgba(245,183,66,.56) 168px 170px, transparent 170px 336px),
    repeating-linear-gradient(0deg, rgba(150,170,255,.24) 0 2px, transparent 2px 22px);
  transform-origin: left center;
  transform: scaleX(1);
  animation: weft-in 1s var(--ease) .34s both;
}
@keyframes warp-in {
  from { transform: scaleY(0); opacity: 0; }
  to   { transform: scaleY(1); opacity: 1; }
}
@keyframes weft-in {
  from { transform: scaleX(0); opacity: 0; }
  to   { transform: scaleX(1); opacity: 1; }
}

/* Veil: darkens the indigo behind the left-hand text for crisp contrast. */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(75% 120% at 8% 42%, rgba(13,15,38,.62), transparent 62%),
    linear-gradient(180deg, transparent 70%, rgba(13,15,38,.35) 100%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: clamp(1.2rem, 4vw, 2.5rem);
}
.hero-copy { max-width: 660px; }

/* small integrated logo badge (replaces the old dominating logo) */
.hero-badge {
  display: inline-grid;
  place-items: center;
  width: 66px; height: 66px;
  background: rgba(255,255,255,.95);
  border-radius: 15px;
  box-shadow: 0 10px 28px rgba(0,0,0,.34);
  margin-bottom: 1.5rem;
}
.hero-badge img { width: 54px; height: 54px; object-fit: contain; }

.hero .eyebrow { color: #b7c0ef; }
.hero h1 {
  color: #fbfcff;
  margin-bottom: .4em;
  text-shadow: 0 2px 24px rgba(8,10,30,.4);
}
.hero-tagline {
  font-size: clamp(1.1rem, 2vw, 1.36rem);
  line-height: 1.55;
  color: #c6cdec;
  max-width: 46ch;
  margin-bottom: 2.3rem;
}
.hero-buttons { display: flex; flex-wrap: wrap; gap: .9rem; }

/* on the dark panel the primary CTA needs the brighter indigo to pop */
.hero .btn-primary {
  background: linear-gradient(160deg, var(--indigo-bright), #3040ac);
}
.hero .btn-primary:hover {
  background: linear-gradient(160deg, #5165e4, var(--indigo-bright));
}

/* ---- Statement banner ------------------------------------------------- */
/* Full-width indigo band right after the hero. The claim is set large and
   bold; the three key verbs take brightened dye-accent colours (gold /
   green / red) that stay AA-legible on the dark ground. A woven-thread
   line edges the band top and bottom. */
.statement {
  position: relative;
  background: linear-gradient(160deg, #1d2252, var(--indigo-ink));
  color: #ffffff;
  padding-block: clamp(2.6rem, 6vw, 4.25rem);
}
.statement::before,
.statement::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 3px;
  background: var(--thread);
  opacity: .9;
}
.statement::before { top: 0; }
.statement::after  { bottom: 0; }
.statement-text {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(1.5rem, 4vw, 2.6rem);
  line-height: 1.25;
  letter-spacing: -.02em;
  margin: 0;
  max-width: 24ch;
}
.statement .accent { white-space: nowrap; }
.accent-gold  { color: #f5b742; }
.accent-green { color: #38c495; }
.accent-red   { color: #f0616b; }

/* ---- Products --------------------------------------------------------- */
.product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
.product-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2.15rem 2rem;
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease),
              box-shadow .3s var(--ease),
              border-color .3s var(--ease);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
/* pin each card's call-to-action to the bottom so both cards balance even
   when their body copy differs in length (grid already equalises height) */
.product-card > .product-link,
.product-card > .product-links { margin-top: auto; }
.product-card::before {             /* thread accent along the top */
  content: "";
  position: absolute; inset: 0 0 auto 0;
  height: 4px; background: var(--thread);
  opacity: .85;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: #cdd6ea;
}
.product-card-top { margin-bottom: 1.1rem; }
.product-icon {
  display: inline-grid; place-items: center;
  width: 54px; height: 54px;
  background: linear-gradient(150deg, #eef2fb, #e0e7f6);
  color: var(--navy);
  border-radius: 14px;
  box-shadow: inset 0 0 0 1px rgba(23,39,92,.06);
  font-size: 1.55rem;
  margin-bottom: .9rem;
  transition: background .3s var(--ease), color .3s var(--ease),
              box-shadow .3s var(--ease), transform .3s var(--ease);
}
.product-card:hover .product-icon { transform: translateY(-1px) rotate(-3deg); }
/* the icon picks up brand navy as the card lifts — quiet, not flashy */
.product-card:hover .product-icon,
.product-card:focus-within .product-icon {
  background: linear-gradient(150deg, var(--navy-soft), var(--navy));
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.12);
}
.product-card h3 { margin-bottom: .15rem; }
.product-role {
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--red);
  margin: 0;
}
.product-list { margin: 1rem 0; padding-left: 1.15rem; }
.product-list li { margin-bottom: .4rem; }

/* stacked call-to-action links (Dyes card: principals pointer + quotation) */
.product-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .45rem;
  margin-top: 1rem;
}
.product-links .product-link { margin-top: 0; }
.product-link {
  display: inline-block;
  font-weight: 600;
  color: var(--navy);
  margin-top: .25rem;
  transition: color .22s var(--ease), transform .22s var(--ease);
}
.product-link:hover,
.product-link:focus-visible { color: var(--indigo-bright); text-decoration: none; }
.product-link:hover { transform: translateX(3px); }

/* keep card content above any decorative texture layer */
.product-card > * { position: relative; z-index: 1; }

/* WOVEN FABRICS card — a faint woven crosshatch bleeding from the top-right */
.card-woven::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(90deg, rgba(43,58,140,.07) 0 1px, transparent 1px 9px),
    repeating-linear-gradient(0deg,  rgba(43,58,140,.07) 0 1px, transparent 1px 9px);
  -webkit-mask-image: radial-gradient(78% 68% at 100% 0%, #000, transparent 62%);
          mask-image: radial-gradient(78% 68% at 100% 0%, #000, transparent 62%);
}

/* DYES & CHEMICALS card — a row of dye-dipped swatch chips */
.dye-swatches {
  display: flex;
  gap: .5rem;
  margin: 0 0 1.15rem;
}
.dye-swatch {
  width: 30px; height: 30px;
  border-radius: 7px;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.10), 0 2px 5px rgba(23,26,61,.18);
  transition: transform .25s var(--ease);
}
.card-dyes:hover .dye-swatch { transform: translateY(-2px); }
.dye-indigo    { background: linear-gradient(160deg, #3a4aa8, var(--indigo)); }
.dye-madder    { background: linear-gradient(160deg, #d8434e, var(--madder)); }
.dye-turmeric  { background: linear-gradient(160deg, #f2ba52, var(--turmeric)); }
.dye-malachite { background: linear-gradient(160deg, #2ba884, var(--malachite)); }

/* DYES card corner watermark — a chemistry alembic, echoing the flask icon;
   faint by default, it strengthens on hover so the card gains a "sign" up top
   the way the woven card gains its crosshatch */
.card-dyes::after {
  content: "\2697";
  position: absolute;
  top: .4rem; right: .9rem;
  z-index: 0;
  font-size: 4.6rem;
  line-height: 1;
  color: var(--malachite);
  opacity: .09;
  transform: rotate(6deg);
  transition: opacity .3s var(--ease), transform .3s var(--ease);
  pointer-events: none;
}
.card-dyes:hover::after,
.card-dyes:focus-within::after {
  opacity: .2;
  transform: rotate(0deg) scale(1.06);
}

/* ---- Dye principals & certifications --------------------------------- */
/* Muted trust strip. Attribution lives in the copy + alt text; the grey
   badges must never read as a claim that Double Tex itself is certified. */
.principals { background: var(--surface); }
.principals-heading {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: clamp(1.15rem, 2.4vw, 1.5rem);
  line-height: 1.35;
  letter-spacing: -.01em;
  color: var(--indigo-ink);
  max-width: 24ch;
  margin-bottom: .7rem;
}
.principals-note {
  color: var(--muted);
  max-width: 62ch;
  margin-bottom: 2.5rem;
}
.principals-note strong { color: var(--ink); font-weight: 600; }

/* principal suppliers — shown clearly, in full colour */
.principal-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 2.75rem;
  align-items: center;
  margin-bottom: 2.5rem;
}
.principal { display: flex; align-items: center; gap: 1rem; margin: 0; }
.principal img { height: 62px; width: auto; object-fit: contain; }
.principal figcaption {
  font-family: var(--font-mono);
  font-size: .8rem;
  line-height: 1.3;
  color: var(--muted);
  max-width: 16ch;
}

/* certification badges — muted marks, colour on hover */
.cert-row {
  list-style: none;
  margin: 0;
  padding: 1.75rem 0 0;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem 2.5rem;
}
.cert-row li { display: flex; }
.cert-row img {
  height: 40px;
  width: auto;
  max-width: 148px;
  object-fit: contain;
  filter: grayscale(1);
  opacity: .55;
  transition: filter .25s var(--ease), opacity .25s var(--ease), transform .25s var(--ease);
}
.cert-row img:hover,
.cert-row img:focus-visible {
  filter: none;
  opacity: 1;
  transform: translateY(-2px);
}
/* fallback chip shown by script.js when a badge file is missing */
.cert-textchip {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: .82rem;
  font-weight: 500;
  color: var(--muted);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: .5rem .8rem;
}
.cert-footnote {
  font-family: var(--font-mono);
  font-size: .72rem;
  line-height: 1.5;
  color: var(--muted);
  margin: 1.6rem 0 0;
  max-width: 64ch;
}

/* ---- Contact ---------------------------------------------------------- */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
.contact-list { list-style: none; margin: 0 0 1.5rem; padding: 0; }
.contact-list li {
  display: flex;
  flex-direction: column;
  gap: .15rem;
  padding: .85rem 0;
  border-bottom: 1px solid var(--line);
}
.contact-label {
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}
.contact-value { color: var(--ink); font-weight: 500; }
.contact-value a { color: var(--navy); }

.contact-form-wrap {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-md);
}
.form-intro {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--navy);
  margin-bottom: 1.1rem;
}
.field { margin-bottom: 1rem; }
.field label {
  display: block;
  font-size: .85rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: .35rem;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  font-family: inherit;
  font-size: .96rem;
  color: var(--ink);
  padding: .8rem .95rem;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease),
              background-color .18s var(--ease);
}
.field input:hover,
.field select:hover,
.field textarea:hover { border-color: #c8d1e6; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--indigo-bright);
  box-shadow: 0 0 0 3px rgba(66,87,208,.16);
}
.field textarea { resize: vertical; }
.form-note { font-size: .8rem; color: var(--muted); margin: .9rem 0 0; }

/* ---- Footer ----------------------------------------------------------- */
.site-footer {
  position: relative;
  background: var(--navy-deep);
  color: #c7cfe6;
  margin-top: 0;
}
.site-footer::before {              /* thread ribbon, mirroring the header */
  content: "";
  display: block;
  height: 4px;
  background: var(--thread);
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding-block: clamp(2.5rem, 6vw, 4rem);
}
/* the logo carries dark outlines + a purple tagline, so it needs a light
   backing to stay legible on the navy footer */
.footer-logo-tile {
  display: inline-grid;
  place-items: center;
  width: 68px; height: 68px;
  background: #ffffff;
  border-radius: 14px;
  margin-bottom: .9rem;
  box-shadow: 0 6px 18px rgba(0,0,0,.28);
}
.footer-logo-tile img { width: 56px; height: 56px; object-fit: contain; }
.footer-name { font-family: var(--font-head); font-weight: 700; color: #fff; margin: 0; }
.footer-tagline { font-size: .82rem; color: #97a3c9; margin: .1rem 0 0; }

.footer-heading {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #fff;
  margin: 0 0 .9rem;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: .55rem; }
.footer-col a { color: #c7cfe6; font-size: .93rem; }
.footer-col a:hover { color: #fff; }

.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); }
.footer-bottom .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .5rem;
  padding-block: 1.2rem;
}
.footer-bottom p { margin: 0; font-size: .82rem; color: #97a3c9; }

/* ---- Responsive ------------------------------------------------------- */
@media (max-width: 819px) {
  .nav-toggle { display: block; }
  .nav-menu {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    /* dark dropdown to match the dark header bar (light links need a dark bg) */
    background: var(--indigo-ink);
    border-bottom: 1px solid rgba(255,255,255,.10);
    box-shadow: 0 18px 40px rgba(9,11,30,.5);
    padding: .5rem 1rem 1.1rem;
    display: none;
  }
  body.nav-open .nav-menu { display: flex; }
  .nav-links { flex-direction: column; gap: 0; }
  .nav-links li { border-bottom: 1px solid rgba(255,255,255,.10); }
  .nav-links a { display: block; padding: .85rem .25rem; }
  .nav-links a::after { display: none; }
  .nav-cta { margin-top: .9rem; text-align: center; }
}

@media (min-width: 640px) {
  .product-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 720px) {
  .footer-inner { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
}

@media (min-width: 880px) {
  .contact-layout { grid-template-columns: 1fr 1.05fr; align-items: start; }
}

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

  /* Safety net: with transitions off, anything JS marked .reveal would be
     stranded at opacity 0. Force it visible. (script.js also skips the
     observer entirely under reduced motion — this is belt and braces.) */
  .js .reveal {
    opacity: 1 !important;
    transform: none !important;
  }

  /* The weave shows fully but does not draw in — no threads left mid-scale. */
  .hero-weave .warp,
  .hero-weave .weft {
    transform: none !important;
    opacity: .85 !important;
  }
}
