/* ==========================================================================
   Shivansh Printers — site styles
   Palette is taken from the logo: process cyan, magenta, yellow, ink black.
   ========================================================================== */

:root {
  --cyan: #00aeef;
  --cyan-dark: #0090c7;
  --cyan-ink: #00658c;
  --magenta: #ec008c;
  --yellow: #ffe000;

  --ink: #14181d;
  --ink-2: #2b3238;
  --muted: #5d686f;
  --line: #e2e7ea;
  --paper: #ffffff;
  --paper-2: #f5f7f9;
  --paper-3: #eef2f5;

  --radius: 14px;
  --radius-sm: 9px;
  --shadow-sm: 0 1px 2px rgba(20, 24, 29, .06), 0 2px 8px rgba(20, 24, 29, .05);
  --shadow-md: 0 2px 6px rgba(20, 24, 29, .07), 0 12px 32px rgba(20, 24, 29, .09);
  --shadow-lg: 0 8px 20px rgba(20, 24, 29, .10), 0 30px 60px rgba(20, 24, 29, .14);

  --wrap: 1180px;
  --gap: clamp(1.25rem, 3vw, 2.5rem);

  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

/* ---------- reset ---------- */
*, *::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: .001ms !important; transition-duration: .001ms !important; }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-2);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--cyan-ink); }
h1, h2, h3 { color: var(--ink); line-height: 1.12; letter-spacing: -.02em; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }

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

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--ink); color: #fff; padding: .75rem 1.25rem; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

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

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5rem;
  padding: .8rem 1.5rem;
  border: 2px solid transparent;
  border-radius: 999px;
  font-size: .98rem;
  font-weight: 650;
  letter-spacing: .01em;
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s ease, background-color .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease;
  white-space: nowrap;
}
.btn-sm { padding: .5rem 1.1rem; font-size: .9rem; }

.btn-primary { background: var(--cyan); color: #fff; box-shadow: 0 6px 18px rgba(0, 174, 239, .28); }
.btn-primary:hover { background: var(--cyan-dark); transform: translateY(-1px); }

.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); transform: translateY(-1px); }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 74px;
}

.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; }
.brand-mark { height: 42px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name {
  font-size: 1.06rem; font-weight: 800; color: var(--ink);
  letter-spacing: -.015em; text-transform: uppercase;
}
.brand-tag { font-size: .72rem; color: var(--muted); font-style: italic; }

.nav { display: flex; align-items: center; gap: clamp(.9rem, 1.6vw, 1.5rem); }
.nav a {
  text-decoration: none; color: var(--ink-2); font-size: .95rem; font-weight: 550;
}
.nav a:not(.btn):hover { color: var(--cyan-ink); }
.nav a:not(.btn) { position: relative; }
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -6px;
  height: 2px; background: var(--cyan); transition: right .2s ease;
}
.nav a:not(.btn):hover::after { right: 0; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  flex-direction: column; justify-content: center; align-items: center; gap: 5px;
  background: none; border: 1px solid var(--line); border-radius: 10px; cursor: pointer;
}
.nav-toggle span {
  display: block; width: 19px; height: 2px; background: var(--ink); border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  padding: clamp(3rem, 7vw, 6rem) 0 clamp(3rem, 6vw, 5rem);
  overflow: hidden;
  background:
    radial-gradient(900px 460px at 88% -8%, rgba(0, 174, 239, .13), transparent 62%),
    radial-gradient(700px 420px at 4% 108%, rgba(236, 0, 140, .07), transparent 60%),
    var(--paper);
}
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.eyebrow {
  display: inline-block;
  font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--cyan-ink);
  background: rgba(0, 174, 239, .1);
  padding: .45rem .9rem; border-radius: 999px;
  margin-bottom: 1.4rem;
}

.hero h1 {
  font-size: clamp(2.9rem, 7.5vw, 5rem);
  font-weight: 850;
  letter-spacing: -.035em;
  margin-bottom: .35em;
}
.hero h1::after {
  content: "";
  display: block;
  width: 92px; height: 6px;
  margin-top: .38em;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--cyan) 0 33%, var(--magenta) 33% 66%, var(--yellow) 66% 100%);
}

.lede { font-size: 1.1rem; color: var(--muted); max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }

/* photo collage */
.hero-art { position: relative; min-height: 380px; }
.hero-card {
  position: absolute;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: .55rem;
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.hero-card img { border-radius: 8px; object-fit: contain; background: var(--paper-2); }

.hero-card-1 { width: 70%; top: 4%; left: 0; z-index: 2; }
.hero-card-2 { width: 52%; top: 40%; right: 0; z-index: 3; box-shadow: var(--shadow-lg); }
.hero-card-3 { width: 32%; top: 0; right: 0; z-index: 1; }

.cmyk-bars {
  position: absolute; bottom: 2%; left: 4%; z-index: 0;
  display: flex; gap: 7px; opacity: .85;
}
.cmyk-bars i { display: block; width: 12px; height: 92px; border-radius: 3px; }
.cmyk-bars i:nth-child(1) { background: var(--cyan); }
.cmyk-bars i:nth-child(2) { background: var(--magenta); }
.cmyk-bars i:nth-child(3) { background: var(--yellow); }
.cmyk-bars i:nth-child(4) { background: var(--ink); }

/* ==========================================================================
   Stats
   ========================================================================== */
.stats { background: var(--ink); color: #fff; padding: clamp(1.75rem, 3.5vw, 2.6rem) 0; }
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem;
}
.stat { display: flex; flex-direction: column; gap: .15rem; }
.stat strong {
  font-size: clamp(1.7rem, 3.4vw, 2.3rem); font-weight: 850; letter-spacing: -.03em;
  color: var(--cyan);
}
.stat span { font-size: .9rem; color: rgba(255, 255, 255, .68); line-height: 1.4; }

/* ==========================================================================
   Sections
   ========================================================================== */
.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section-alt { background: var(--paper-2); border-block: 1px solid var(--line); }
.section-tint {
  background: linear-gradient(180deg, #f1f8fc 0%, #f7fbfd 100%);
  border-block: 1px solid #dbe8ef;
}

.section-head { max-width: 46rem; margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.kicker {
  font-size: .76rem; font-weight: 750; letter-spacing: .12em; text-transform: uppercase;
  color: var(--magenta); margin-bottom: .6rem;
}
.section-head h2, .about-grid h2, .contact-info h2 {
  font-size: clamp(1.9rem, 4vw, 2.7rem); font-weight: 800;
}
.section-lede { color: var(--muted); font-size: 1.05rem; margin-bottom: 0; }

/* ---------- capability cards ---------- */
.units {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}
.unit {
  display: flex; flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.unit:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: #cfd8de; }

.unit-media {
  /* Fixed height, not aspect-ratio: a tall photo would otherwise stretch the box
     and leave the card titles in a row sitting at different baselines.
     The image is bounded in the same units, because a percentage max-height
     resolves against the auto-sized grid row, not this box, and so is ignored. */
  --media-h: clamp(190px, 20vw, 240px);
  --media-pad: 1.1rem;
  height: var(--media-h);
  background: #fff;
  display: grid; place-items: center;
  padding: var(--media-pad);
  border-bottom: 1px solid var(--line);
}
.unit-media img {
  max-height: calc(var(--media-h) - var(--media-pad) * 2);
  max-width: 100%;
  width: auto;
  object-fit: contain;
}

.unit-body { padding: 1.4rem 1.5rem 1.6rem; display: flex; flex-direction: column; flex: 1; }
.unit-body h3 { font-size: 1.22rem; font-weight: 750; }

.unit-flag {
  /* .unit-body is a flex column, so inline-block would blockify and stretch */
  align-self: flex-start;
  font-size: .68rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  color: #fff; background: var(--magenta);
  padding: .2rem .55rem; border-radius: 4px;
  margin: 0 0 .55rem;
}
.unit-feature { border-color: var(--cyan); box-shadow: 0 0 0 1px var(--cyan) inset; }
.unit-body p { color: var(--muted); font-size: .96rem; }

.tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: auto; padding-top: .5rem; }
.tags li {
  font-size: .78rem; font-weight: 600; color: var(--cyan-ink);
  background: rgba(0, 174, 239, .09);
  padding: .28rem .65rem; border-radius: 999px;
}

/* ---------- supplies ---------- */
.supply-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: 1.5rem;
}
.supply {
  display: flex; flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.supply-media {
  /* These are photographs at a known 16:9, unlike the mixed product shots in
     .unit-media, so they fill the frame instead of sitting inside padding. */
  height: clamp(200px, 22vw, 290px);
  background: var(--paper-3);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.supply-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
}

.supply-body { padding: 1.4rem 1.5rem 1.6rem; }
.supply-body h3 { font-size: 1.22rem; font-weight: 750; margin-bottom: .35em; }
.supply-body > p { color: var(--muted); font-size: .94rem; margin-bottom: 1rem; }

.item-list {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .35rem 1.25rem;
}
.item-list li {
  position: relative; padding-left: 1rem;
  font-size: .89rem; color: var(--ink-2); line-height: 1.4;
}
.item-list li::before {
  content: ""; position: absolute; left: 0; top: .52em;
  width: 5px; height: 5px; border-radius: 50%; background: var(--cyan);
}

/* ---------- product categories ---------- */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}
.cat {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem 1.6rem;
}
.cat h3 {
  font-size: 1.05rem; font-weight: 750;
  padding-bottom: .7rem; margin-bottom: .9rem;
  border-bottom: 2px solid var(--cyan);
  display: inline-block;
}
.cat ul { display: grid; gap: .5rem; }
.cat li {
  position: relative; padding-left: 1.35rem;
  font-size: .95rem; color: var(--ink-2);
}
.cat li::before {
  content: ""; position: absolute; left: 0; top: .58em;
  width: 7px; height: 7px; border-radius: 2px; background: var(--magenta);
}

/* ---------- gallery ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 1rem;
}
.gallery figure {
  margin: 0; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  overflow: hidden; cursor: zoom-in;
  transition: transform .18s ease, box-shadow .18s ease;
}
.gallery figure:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.gallery img {
  aspect-ratio: 4 / 3; width: 100%; object-fit: contain;
  background: #fff; padding: .8rem;
}
.gallery figcaption {
  padding: .65rem .85rem; font-size: .84rem; font-weight: 600;
  color: var(--ink-2); border-top: 1px solid var(--line);
}

/* ---------- clients ---------- */
.client-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 1rem;
}
.client-grid li {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  height: 104px; display: grid; place-items: center; padding: 1.1rem;
  transition: border-color .18s ease, transform .18s ease;
}
.client-grid li:hover { border-color: #c8d2d8; transform: translateY(-2px); }
.client-grid img {
  max-height: 52px; width: auto; max-width: 100%;
  object-fit: contain;
}

/* ---------- about ---------- */
.about-grid {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: clamp(2rem, 5vw, 4rem); align-items: center;
}
.about-grid p { color: var(--muted); }
.about-art img {
  border-radius: var(--radius); border: 1px solid var(--line);
  background: #fff; padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.facts { margin: 2rem 0 0; display: grid; gap: .8rem; }
.facts > div {
  display: grid; grid-template-columns: 8.5rem 1fr; gap: 1rem;
  padding-bottom: .8rem; border-bottom: 1px solid var(--line);
}
.facts dt { font-size: .82rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 0; font-weight: 600; color: var(--ink); font-size: .96rem; }

/* ---------- contact ---------- */
.contact { background: var(--paper-2); border-top: 1px solid var(--line); }
.contact-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 3.5rem); align-items: start;
}

.contact-list { display: grid; gap: 1.05rem; margin: 2rem 0; }
.contact-list li { display: grid; grid-template-columns: 6.5rem 1fr; gap: 1rem; align-items: start; }
.ci-label {
  font-size: .78rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
  color: var(--muted); padding-top: .18rem;
}
.contact-list a { color: var(--ink); font-weight: 650; text-decoration: none; border-bottom: 2px solid rgba(0, 174, 239, .35); }
.contact-list a:hover { border-bottom-color: var(--cyan); }

.contact-form-wrap {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  box-shadow: var(--shadow-sm);
}
.quote-form h3 { font-size: 1.3rem; font-weight: 780; margin-bottom: 1.25rem; }

.field { display: grid; gap: .38rem; margin-bottom: 1rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field label { font-size: .87rem; font-weight: 650; color: var(--ink); }
.field .opt { font-weight: 400; color: var(--muted); }

.field input, .field select, .field textarea {
  font: inherit; font-size: .95rem;
  padding: .7rem .85rem;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--paper-2); color: var(--ink);
  width: 100%;
  transition: border-color .15s ease, background-color .15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  background: #fff; border-color: var(--cyan); outline: none;
  box-shadow: 0 0 0 3px rgba(0, 174, 239, .18);
}
.field textarea { resize: vertical; min-height: 84px; }
.field [aria-invalid="true"] { border-color: var(--magenta); }

.form-note {
  font-size: .88rem; font-weight: 600; color: var(--magenta);
  background: rgba(236, 0, 140, .07); border-radius: var(--radius-sm);
  padding: .6rem .8rem; margin-bottom: 1rem;
}
.form-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: .4rem; }
.form-fineprint { font-size: .82rem; color: var(--muted); margin: 1rem 0 0; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--ink); color: rgba(255, 255, 255, .72); padding-top: clamp(2.5rem, 5vw, 4rem); }
.footer-inner {
  display: grid; grid-template-columns: 1.2fr 1fr 1.3fr; gap: 2rem;
  padding-bottom: 2.5rem;
}
.footer-brand { display: flex; align-items: center; gap: .8rem; }
.footer-brand img { height: 40px; width: auto; }
.footer-name { color: #fff; font-weight: 800; text-transform: uppercase; letter-spacing: -.01em; margin: 0; font-size: 1rem; }
.footer-tag { font-style: italic; font-size: .8rem; margin: 0; color: rgba(255, 255, 255, .55); }

.footer-nav { display: flex; flex-direction: column; gap: .5rem; }
.footer-nav a { color: rgba(255, 255, 255, .72); text-decoration: none; font-size: .93rem; }
.footer-nav a:hover { color: var(--cyan); }

.footer-contact { display: flex; flex-direction: column; gap: .35rem; font-size: .93rem; }
.footer-contact a { color: #fff; text-decoration: none; font-weight: 600; }
.footer-contact a:hover { color: var(--cyan); }
.footer-contact p { margin: .5rem 0 0; font-size: .84rem; color: rgba(255, 255, 255, .5); }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .12);
  padding: 1.25rem 0;
}
.footer-bottom p { margin: 0; font-size: .82rem; color: rgba(255, 255, 255, .45); }

/* ==========================================================================
   Lightbox
   ========================================================================== */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(10, 13, 16, .93);
  display: grid; place-items: center;
  padding: clamp(1rem, 5vw, 3rem);
}
.lightbox[hidden] { display: none; }
.lb-figure { margin: 0; max-width: 100%; max-height: 100%; text-align: center; }
.lb-figure img {
  max-width: 100%; max-height: 78vh; width: auto;
  background: #fff; border-radius: var(--radius-sm); padding: 1rem;
  margin-inline: auto;
}
.lb-figure figcaption { color: #fff; margin-top: 1rem; font-size: .95rem; font-weight: 600; }

.lightbox button {
  position: absolute;
  background: rgba(255, 255, 255, .12);
  color: #fff; border: none; cursor: pointer;
  width: 48px; height: 48px; border-radius: 50%;
  font-size: 1.9rem; line-height: 1;
  display: grid; place-items: center;
  transition: background-color .15s ease;
}
.lightbox button:hover { background: rgba(255, 255, 255, .26); }
.lb-close { top: 1.25rem; right: 1.25rem; font-size: 1.6rem; }
.lb-prev { left: 1.25rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: 1.25rem; top: 50%; transform: translateY(-50%); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1000px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-art { min-height: 330px; max-width: 560px; margin-inline: auto; width: 100%; }
  .about-grid { grid-template-columns: 1fr; }
  .about-art { max-width: 420px; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 820px) {
  .nav-toggle { display: flex; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: .5rem 1.25rem 1.25rem;
    box-shadow: var(--shadow-md);
    display: none;
  }
  .nav.open { display: flex; }
  .nav a:not(.btn) { padding: .85rem .25rem; border-bottom: 1px solid var(--line); }
  .nav a:not(.btn)::after { display: none; }
  .nav .btn { margin-top: 1rem; align-self: flex-start; }
  .header-inner { position: relative; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem 1rem; }
  .footer-inner { grid-template-columns: 1fr; gap: 1.75rem; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .hero-art { min-height: 260px; }
  .cmyk-bars i { height: 62px; width: 9px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .contact-list li, .facts > div { grid-template-columns: 1fr; gap: .2rem; }
  .gallery { grid-template-columns: repeat(auto-fill, minmax(145px, 1fr)); }
  .item-list { grid-template-columns: 1fr; }
  .client-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
  .btn { width: 100%; }
  .nav .btn { width: 100%; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .lb-prev, .lb-next { top: auto; bottom: 1.25rem; transform: none; }
}

/* ---------- print ---------- */
@media print {
  .site-header, .nav-toggle, .hero-art, .lightbox, .contact-form-wrap, .site-footer,
  .supply-media { display: none !important; }
  body { font-size: 11pt; color: #000; }
  .section { padding: 1rem 0; break-inside: avoid; }
}

/* ==========================================================================
   Interaction layer
   Everything below is enhancement only: the page is complete and usable with
   JavaScript off, and every block that moves is switched off under
   prefers-reduced-motion at the end of this file.
   ========================================================================== */

/* anchor targets must not land under the sticky header */
#capabilities, #products, #supplies, #gallery, #clients, #about, #contact {
  scroll-margin-top: 84px;
}

/* ---------- scroll progress ---------- */
.scroll-progress {
  position: absolute; left: 0; right: 0; bottom: -1px;
  height: 3px; overflow: hidden;
}
.scroll-progress i {
  display: block; height: 100%;
  background: linear-gradient(90deg, var(--cyan) 0%, var(--magenta) 55%, var(--yellow) 100%);
  transform: scaleX(0); transform-origin: left center;
}

/* ---------- scroll reveal ----------
   Gated on html.js, which an inline script in <head> sets before first paint.
   Two consequences that matter:
     - with JavaScript off or broken, nothing is ever hidden;
     - the hidden state is in the blocking stylesheet rather than applied by a
       deferred script, so there is no flash of visible-then-hidden content.
   The reveal targets are listed by selector for the same reason. */
.js .reveal-target:not(.is-in) {
  opacity: 0;
  transform: translateY(18px);
}
.js .reveal-target {
  transition: opacity .6s cubic-bezier(.22, .61, .36, 1),
              transform .6s cubic-bezier(.22, .61, .36, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

/* ---------- header shadow once scrolled ---------- */
.site-header { transition: box-shadow .25s ease; }
.site-header.is-stuck { box-shadow: 0 6px 24px rgba(20, 24, 29, .08); }

/* ---------- nav active section ---------- */
.nav a:not(.btn).is-current { color: var(--cyan-ink); }
.nav a:not(.btn).is-current::after { right: 0; }

/* ---------- halftone texture on the tinted section ---------- */
.section-tint { position: relative; overflow: hidden; }
.section-tint::before {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(0, 154, 222, .17) 1px, transparent 1.2px);
  background-size: 15px 15px;
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,.6), transparent 45%);
  mask-image: linear-gradient(180deg, rgba(0,0,0,.6), transparent 45%);
  pointer-events: none;
}
.section-tint > .wrap { position: relative; }

/* ---------- hero: pointer parallax, ink bars react on hover ---------- */
.hero-art { --px: 0; --py: 0; }
.hero-card { transition: transform .45s cubic-bezier(.22, .61, .36, 1), box-shadow .3s ease; }
.hero-card-1 { transform: translate3d(calc(var(--px) * -14px), calc(var(--py) * -10px), 0); }
.hero-card-2 { transform: translate3d(calc(var(--px) *  20px), calc(var(--py) *  14px), 0); }
.hero-card-3 { transform: translate3d(calc(var(--px) *  10px), calc(var(--py) * -16px), 0); }
.cmyk-bars i { transition: height .35s cubic-bezier(.22, .61, .36, 1); }
.hero-art:hover .cmyk-bars i:nth-child(1) { height: 104px; }
.hero-art:hover .cmyk-bars i:nth-child(2) { height:  78px; }
.hero-art:hover .cmyk-bars i:nth-child(3) { height:  96px; }
.hero-art:hover .cmyk-bars i:nth-child(4) { height:  68px; }

/* ---------- card media zoom + ink rule on hover ---------- */
.unit, .supply { position: relative; }
.unit-media, .supply-media { overflow: hidden; }
.unit-media img, .supply-media img, .gallery img {
  transition: transform .5s cubic-bezier(.22, .61, .36, 1);
}
.unit:hover .unit-media img,
.supply:hover .supply-media img,
.gallery figure:hover img { transform: scale(1.06); }

.unit::after, .supply::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  background: linear-gradient(90deg, var(--cyan), var(--magenta), var(--yellow));
  transform: scaleX(0); transform-origin: left center;
  transition: transform .4s cubic-bezier(.22, .61, .36, 1);
}
.unit:hover::after, .supply:hover::after { transform: scaleX(1); }

.supply { transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.supply:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: #cfd8de; }

/* ---------- line icons in card headings ----------
   Authored in the markup rather than fetched: a few hundred bytes each, no
   third-party artwork, and they take the brand cyan from CSS. */
.supply-body h3, .unit-body h3 { display: flex; align-items: center; gap: .6rem; }
.supply-icon, .unit-icon {
  flex: none;
  fill: none; stroke: var(--cyan);
  stroke-linecap: round; stroke-linejoin: round;
  transition: stroke .2s ease, transform .3s cubic-bezier(.22, .61, .36, 1);
}
.supply-icon { width: 26px; height: 26px; stroke-width: 1.6; }
.unit-icon { width: 22px; height: 22px; stroke-width: 1.7; }

.unit:hover .unit-icon, .supply:hover .supply-icon {
  stroke: var(--magenta);
  transform: scale(1.12);
}
.unit-feature .unit-icon { stroke: var(--magenta); }

/* ---------- list + tag hovers ---------- */
.item-list li { transition: color .2s ease; }
.item-list li:hover { color: var(--cyan-ink); }
.item-list li::before { transition: background-color .2s ease; }
.item-list li:hover::before { background: var(--magenta); }

.tags li { transition: background-color .2s ease, color .2s ease, transform .2s ease; }
.tags li:hover { background: var(--cyan); color: #fff; transform: translateY(-1px); }

/* ---------- gallery filter chips ---------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: .5rem; margin: -1rem 0 1rem; }
.chip {
  display: inline-flex; align-items: center; gap: .4rem;
  font: inherit; font-size: .88rem; font-weight: 600;
  color: var(--ink-2); background: #fff;
  border: 1px solid var(--line); border-radius: 999px;
  padding: .45rem 1rem; cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .15s ease;
}
.chip:hover { border-color: var(--cyan); color: var(--cyan-ink); transform: translateY(-1px); }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip-n {
  font-size: .74rem; font-weight: 700;
  background: var(--paper-3); color: var(--muted);
  border-radius: 999px; padding: .05rem .4rem;
  transition: background-color .2s ease, color .2s ease;
}
.chip.is-active .chip-n { background: rgba(255, 255, 255, .22); color: #fff; }

.filter-status { font-size: .85rem; color: var(--muted); margin: 0 0 1.25rem; min-height: 1.3em; }

/* .js .reveal-target sets a .6s transition and outranks a bare `.gallery
   figure`, which made filtering feel sluggish. Match its specificity so the
   filter animation keeps its own shorter timing once a tile has revealed. */
.js .gallery figure,
.gallery figure { transition: opacity .28s ease, transform .28s ease; }
.gallery figure.is-hidden { display: none; }
.gallery figure.is-entering { opacity: 0; transform: scale(.94); }

/* ---------- copy buttons ---------- */
.ci-value { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.copy-btn {
  flex: none; width: 26px; height: 26px;
  border: 1px solid var(--line); border-radius: 6px;
  background: #fff; cursor: pointer; position: relative;
  color: var(--muted);
  transition: border-color .2s ease, background-color .2s ease, color .2s ease;
}
.copy-btn::before {
  content: "";
  position: absolute; inset: 0;
  background: currentColor;
  -webkit-mask: no-repeat center / 13px 13px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='9' y='9' width='11' height='11' rx='2'/%3E%3Cpath d='M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1'/%3E%3C/svg%3E");
  mask: no-repeat center / 13px 13px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='9' y='9' width='11' height='11' rx='2'/%3E%3Cpath d='M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1'/%3E%3C/svg%3E");
}
.copy-btn:hover { border-color: var(--cyan); background: rgba(0, 174, 239, .07); color: var(--cyan-ink); }
.copy-btn.is-copied { border-color: var(--cyan); background: var(--cyan); color: #fff; }
.copy-btn.is-copied::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E");
}

/* ---------- back to top ---------- */
.to-top {
  position: fixed; right: clamp(1rem, 3vw, 2rem); bottom: clamp(1rem, 3vw, 2rem);
  z-index: 90;
  width: 46px; height: 46px;
  border: none; border-radius: 50%;
  background: var(--ink); color: #fff; cursor: pointer;
  display: grid; place-items: center;
  box-shadow: var(--shadow-md);
  opacity: 0; transform: translateY(10px) scale(.9);
  transition: opacity .25s ease, transform .25s ease, background-color .2s ease;
}
.to-top[hidden] { display: none; }
.to-top.is-in { opacity: 1; transform: none; }
.to-top:hover { background: var(--cyan); }
.to-top svg {
  width: 20px; height: 20px;
  fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}

/* ---------- lightbox refinements ---------- */
.lightbox { opacity: 0; transition: opacity .25s ease; }
.lightbox.is-open { opacity: 1; }
.lightbox.is-open .lb-figure img { animation: lb-pop .3s cubic-bezier(.22, .61, .36, 1); }
@keyframes lb-pop { from { transform: scale(.96); opacity: .4; } to { transform: none; opacity: 1; } }
.lb-count {
  color: rgba(255, 255, 255, .6);
  font-size: .82rem; font-variant-numeric: tabular-nums;
  margin: .45rem 0 0;
}

/* ---------- press feedback ---------- */
.btn:active { transform: translateY(1px) scale(.99); }

/* ---------- live message preview under the quote form ----------
   Deliberately not a max-height transition. That caps the message at a fixed
   height (a few lines in the Details box and the preview would be silently
   clipped by overflow:hidden), and it leaves the box collapsed if the
   transition is ever interrupted. Toggling display and fading in cannot
   truncate the text. */
.msg-preview {
  display: none;
  margin-top: 1rem;
  border: 1px dashed #c9d6de; border-radius: var(--radius-sm);
  background: var(--paper-2);
  padding: .85rem 1rem;
  font-size: .85rem; line-height: 1.5; color: var(--muted);
  white-space: pre-wrap; word-break: break-word;
}
.msg-preview.is-shown { display: block; animation: preview-in .25s ease both; }
@keyframes preview-in {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: none; }
}

/* ==========================================================================
   Reduced motion: keep every state change, drop the movement
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  .js .reveal-target:not(.is-in) { opacity: 1; transform: none; }
  .js .reveal-target { transition: none; }
  .hero-card, .cmyk-bars i { transform: none !important; transition: none; }
  .hero-art:hover .cmyk-bars i { height: 92px; }
  .unit-media img, .supply-media img, .gallery img,
  .js .gallery figure, .gallery figure { transition: none; }
  .msg-preview.is-shown { animation: none; }
  .unit:hover .unit-media img,
  .supply:hover .supply-media img,
  .gallery figure:hover img { transform: none; }
  .unit::after, .supply::after { transition: none; }
  .supply:hover, .chip:hover, .tags li:hover, .btn:active { transform: none; }
  .supply-icon, .unit-icon { transition: stroke .2s ease; }
  .unit:hover .unit-icon, .supply:hover .supply-icon { transform: none; }
  .to-top { opacity: 1; transform: none; transition: none; }
  .lightbox.is-open .lb-figure img { animation: none; }
}
