/* ===== Vishwanath Metals – Stripe-style design ===== */
:root {
  --navy: #0A1F4A;
  --ink: #0A2540;
  --slate: #425466;
  --muted: #6B7C93;
  --line: #E3E8EE;
  --bg-soft: #F6F9FC;
  --blue: #2563EB;
  --sky: #7DD3FC;
  --orange: #F97316;
  --yellow: #F2B705;
  --wa: #25D366;
  --radius: 16px;
  --shadow-sm: 0 2px 5px -1px rgba(50,50,93,.15), 0 1px 3px -1px rgba(0,0,0,.2);
  --shadow: 0 13px 27px -5px rgba(50,50,93,.25), 0 8px 16px -8px rgba(0,0,0,.3);
  --shadow-lg: 0 50px 100px -20px rgba(50,50,93,.25), 0 30px 60px -30px rgba(0,0,0,.3);
  --container: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; font-family: Inter, system-ui, -apple-system, sans-serif; color: var(--ink); background: #fff; -webkit-font-smoothing: antialiased; line-height: 1.55; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, p { margin: 0; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

/* ---------- Buttons ---------- */
.pill-btn { display: inline-flex; align-items: center; gap: 8px; border-radius: 999px; padding: 11px 20px; font-size: 15px; font-weight: 600; text-decoration: none; border: none; transition: opacity .2s, transform .2s, background .2s, box-shadow .2s; white-space: nowrap; }
.pill-btn svg { transition: transform .2s; }
.pill-btn:hover svg { transform: translateX(3px); }
.pill-btn--light { background: #fff; color: var(--orange); box-shadow: var(--shadow-sm); }
.pill-btn--light:hover { opacity: .9; }
.pill-btn--dark { background: var(--ink); color: #fff; }
.pill-btn--dark:hover { background: #12355e; }
.pill-btn--ghost { background: rgba(255,255,255,.6); color: var(--ink); box-shadow: inset 0 0 0 1px rgba(10,37,64,.15); }
.pill-btn--ghost:hover { background: #fff; }
.pill-btn--wa { background: var(--wa); color: #fff; justify-content: center; }
.pill-btn--wa:hover { opacity: .9; }
.pill-btn--outline { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); justify-content: center; }
.pill-btn--outline:hover { background: var(--bg-soft); }
.link { background: none; border: none; padding: 0; color: var(--blue); font-weight: 600; font-size: 15px; display: inline-flex; gap: 6px; }
.link span { transition: transform .2s; }
.link:hover span { transform: translateX(3px); }
.icon-btn { width: 40px; height: 40px; border-radius: 50%; border: none; background: var(--bg-soft); color: var(--ink); display: inline-flex; align-items: center; justify-content: center; }
.icon-btn:hover { background: var(--line); }

/* ---------- HERO ---------- */
.hero { position: relative; overflow: hidden; padding-bottom: 120px; }
.hero__gradient {
  position: absolute; inset: 0 0 auto 0; height: 700px; z-index: 0;
  clip-path: polygon(0 0, 100% 0, 100% 42%, 0 80%);
  background:
    radial-gradient(50% 70% at 8% 25%, #BFDBFE 0%, transparent 60%),
    radial-gradient(45% 60% at 30% 70%, #7DD3FC 0%, transparent 60%),
    radial-gradient(45% 60% at 52% 12%, #3B82F6 0%, transparent 60%),
    radial-gradient(40% 55% at 76% 8%, #F97316 0%, transparent 60%),
    radial-gradient(35% 50% at 96% 30%, #F2B705 0%, transparent 60%),
    linear-gradient(120deg, #BAE6FD, #60A5FA 45%, #FB923C 75%, #FCD34D);
  background-size: 160% 160%;
  animation: drift 18s ease-in-out infinite alternate;
}
@keyframes drift { 0% { background-position: 0% 0%; } 100% { background-position: 100% 60%; } }

.header { position: relative; z-index: 20; }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 18px; padding-bottom: 18px; }
.logo__chip { display: inline-flex; background: #fff; border-radius: 12px; padding: 8px 14px; box-shadow: var(--shadow-sm); }
.logo__chip img { height: 52px; width: auto; }
@media (max-width: 640px) { .logo__chip img { height: 42px; } .logo__chip { padding: 6px 10px; } }
.nav { display: flex; align-items: center; gap: 30px; flex: 1; margin-left: 40px; }
.nav > a { color: #0A2540; text-decoration: none; font-weight: 600; font-size: 15px; opacity: .95; transition: opacity .2s; }
.nav > a:hover { opacity: .7; }
.nav__right { margin-left: auto; display: flex; align-items: center; gap: 22px; }
.nav__call { color: #0A2540; text-decoration: none; font-weight: 600; font-size: 15px; display: inline-flex; align-items: center; gap: 6px; }
.header__toggle { display: none; width: 44px; height: 44px; border: none; border-radius: 10px; background: rgba(255,255,255,.25); backdrop-filter: blur(8px); flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.header__toggle span { width: 20px; height: 2px; background: #0A2540; border-radius: 2px; transition: transform .3s, opacity .3s; }
.header__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.header__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.header__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.hero__grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; padding-top: 70px; }
.hero__copy { display: flex; flex-direction: column; gap: 28px; padding-top: 10px; }
.hero__title { font-size: clamp(48px, 7vw, 92px); line-height: 1.02; font-weight: 800; letter-spacing: -0.045em; color: #0A1F4A; mix-blend-mode: multiply; }
.hero__lead { font-size: 19px; line-height: 1.65; color: var(--slate); max-width: 520px; }
.quick { display: flex; align-items: center; gap: 6px; background: var(--bg-soft); border-radius: 999px; padding: 5px 5px 5px 20px; max-width: 440px; box-shadow: inset 0 0 0 1px var(--line), var(--shadow-sm); }
.quick input { flex: 1; min-width: 0; border: none; background: transparent; font: inherit; font-size: 16px; color: var(--ink); padding: 10px 0; outline: none; }
.quick input::placeholder { color: var(--muted); }
.quick.invalid { box-shadow: inset 0 0 0 2px #DC2626; }

/* Floating photos */
.hero__visual { position: relative; min-height: 580px; }
.shot { margin: 0; position: absolute; overflow: hidden; background: #fff; box-shadow: var(--shadow-lg); }
.shot img { width: 100%; height: 100%; object-fit: cover; }
.shot--wide { right: -50px; top: 30px; width: 560px; aspect-ratio: 1376 / 768; border-radius: 12px; }
.shot--tall { left: 0; top: 170px; width: 270px; aspect-ratio: 800 / 1066; border-radius: 22px; border: 8px solid #fff; animation: float 6s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ---------- Sections ---------- */
.section { padding: 120px 0; }
.section--soft { background: var(--bg-soft); }
.head { max-width: 720px; margin: 0 auto 48px; text-align: center; display: flex; flex-direction: column; gap: 16px; }
.head--left { text-align: left; margin: 0; }
.head h2 { font-size: clamp(34px, 4.4vw, 52px); line-height: 1.08; font-weight: 700; letter-spacing: -0.035em; color: var(--ink); }
.head .sub { font-size: 18px; line-height: 1.7; color: var(--slate); }
.head .sub b { color: var(--ink); }
.kicker { font-size: 15px; font-weight: 700; color: var(--blue); }
.head--light h2 { color: #fff; }
.head--light .sub { color: #ADBDCC; }
.kicker--light { color: var(--sky); }

/* Tabs */
.tabs { display: flex; justify-content: center; gap: 6px; margin-bottom: 40px; background: var(--bg-soft); padding: 5px; border-radius: 999px; width: max-content; margin-left: auto; margin-right: auto; box-shadow: inset 0 0 0 1px var(--line); }
.tab { border: none; background: transparent; padding: 10px 20px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--slate); transition: background .2s, color .2s, box-shadow .2s; }
.tab.is-active { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }

/* Product grid */
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }
.pcard { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: 0 0 0 1px var(--line), var(--shadow-sm); transition: transform .3s, box-shadow .3s; display: flex; flex-direction: column; }
.pcard[hidden] { display: none; }
.pcard:hover { transform: translateY(-6px); box-shadow: 0 0 0 1px var(--line), var(--shadow-lg); }
.pcard__img { position: relative; overflow: hidden; height: 200px; }
.pcard__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.pcard:hover .pcard__img img { transform: scale(1.06); }
.badge { position: absolute; left: 14px; top: 14px; background: rgba(255,255,255,.92); backdrop-filter: blur(6px); color: var(--ink); font-size: 12px; font-weight: 700; padding: 5px 10px; border-radius: 999px; }
.pcard__body { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.pcard__body h3 { font-size: 19px; font-weight: 700; letter-spacing: -0.02em; }
.pcard__body p { font-size: 15px; line-height: 1.6; color: var(--slate); }

/* ---------- Dark "why" section ---------- */
.dark { position: relative; overflow: hidden; background: #0A2540; color: #fff; padding: 130px 0; }
.dark__glow { position: absolute; inset: -20% -10% auto auto; width: 70%; height: 90%; background: radial-gradient(closest-side, rgba(249,115,22,.45), transparent), radial-gradient(closest-side at 30% 70%, rgba(37,99,235,.55), transparent); filter: blur(30px); pointer-events: none; }
.dark .container { position: relative; }
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.bcard { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius); padding: 32px; display: flex; flex-direction: column; gap: 12px; backdrop-filter: blur(8px); transition: background .3s, transform .3s; }
.bcard:hover { background: rgba(255,255,255,.08); transform: translateY(-4px); }
.bcard--wide { grid-column: span 2; }
.bcard__num { font-size: 14px; font-weight: 700; color: var(--sky); font-variant-numeric: tabular-nums; }
.bcard h3 { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
.bcard p { font-size: 15px; line-height: 1.65; color: #ADBDCC; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.chips span { font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: 999px; background: rgba(125,211,252,.12); color: var(--sky); }
.bcard--accent { background: linear-gradient(120deg, #F97316, #F2B705); border: none; }
.bcard--accent:hover { background: linear-gradient(120deg, #F97316, #F2B705); }
.bcard--accent .bcard__num { color: rgba(10,37,64,.7); }
.bcard--accent h3 { color: var(--ink); }
.bcard--accent p { color: rgba(10,37,64,.8); }
.bcard--accent .pill-btn { align-self: flex-start; margin-top: 6px; color: var(--ink); }

/* ---------- Industries ---------- */
.split { display: grid; grid-template-columns: 1fr 1.25fr; gap: 64px; align-items: center; }
.ind { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.ind li { display: flex; align-items: center; gap: 14px; background: #fff; border-radius: 14px; padding: 16px 18px; font-weight: 600; font-size: 16px; box-shadow: 0 0 0 1px var(--line), var(--shadow-sm); transition: transform .25s, box-shadow .25s; }
.ind li:hover { transform: translateY(-3px); box-shadow: 0 0 0 1px var(--line), var(--shadow); }
.ind__wide { grid-column: span 2; }
.ind__icon { width: 36px; height: 36px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 14px; color: #fff; background: linear-gradient(135deg, #2563EB, #7DD3FC); flex-shrink: 0; }
.ind li:nth-child(3n+2) .ind__icon { background: linear-gradient(135deg, #F97316, #F2B705); }
.ind li:nth-child(3n) .ind__icon { background: linear-gradient(135deg, #0A1F4A, #2563EB); }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.about__media { position: relative; }
.about__media > img { width: 100%; height: 460px; object-fit: cover; border-radius: 20px; box-shadow: var(--shadow-lg); }
.about__float { position: absolute; right: -24px; bottom: -28px; background: #fff; border-radius: 14px; padding: 20px 22px; box-shadow: var(--shadow-lg); min-width: 210px; }
.about__floatT { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 10px; }
.about__float ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.about__float li { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 15px; }
.about__float li span { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); }
.about .head--left { gap: 18px; }

/* ---------- CTA + contact ---------- */
.cta { padding: 120px 0; }
.cta__box { position: relative; overflow: hidden; border-radius: 24px; padding: 72px 64px; box-shadow: var(--shadow-lg); }
.cta__gradient { position: absolute; inset: 0; background:
  radial-gradient(50% 90% at 0% 0%, #7DD3FC 0%, transparent 60%),
  radial-gradient(50% 90% at 100% 0%, #F97316 0%, transparent 60%),
  radial-gradient(60% 100% at 70% 100%, #F2B705 0%, transparent 60%),
  linear-gradient(120deg, #DBEAFE, #FED7AA); }
.cta__copy { position: relative; max-width: 620px; display: flex; flex-direction: column; gap: 16px; }
.cta__copy h2 { font-size: clamp(32px, 4vw, 48px); line-height: 1.08; font-weight: 800; letter-spacing: -0.035em; color: var(--ink); }
.cta__copy p { font-size: 18px; color: #1E3A5F; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 10px; }
.contact { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 28px; }
.ccard { background: #fff; border-radius: var(--radius); padding: 28px; text-decoration: none; display: flex; flex-direction: column; gap: 8px; box-shadow: 0 0 0 1px var(--line), var(--shadow-sm); transition: transform .3s, box-shadow .3s; }
.ccard:hover { transform: translateY(-4px); box-shadow: 0 0 0 1px var(--line), var(--shadow); }
.ccard__icon { width: 44px; height: 44px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; color: #fff; background: linear-gradient(135deg, #2563EB, #7DD3FC); margin-bottom: 8px; }
.ccard:nth-child(2) .ccard__icon { background: linear-gradient(135deg, #F97316, #F2B705); }
.ccard:nth-child(3) .ccard__icon { background: linear-gradient(135deg, #0A1F4A, #2563EB); }
.ccard small { font-size: 13px; font-weight: 600; color: var(--muted); }
.ccard b { font-size: 15px; font-weight: 600; line-height: 1.55; color: var(--ink); }
.ccard b.big { font-size: 19px; word-break: break-word; }
.ccard em { font-style: normal; font-size: 14px; font-weight: 600; color: var(--blue); margin-top: auto; padding-top: 6px; }

/* ---------- Footer ---------- */
.footer { background: var(--bg-soft); border-top: 1px solid var(--line); font-size: 14px; color: var(--slate); }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-top: 64px; padding-bottom: 40px; }
.footer__grid > div { display: flex; flex-direction: column; gap: 10px; line-height: 1.6; }
.footer__brand img { height: auto; margin-bottom: 4px; }
.footer a { color: var(--slate); text-decoration: none; }
.footer a:hover { color: var(--blue); }
.footer__h { font-weight: 700; color: var(--ink); }
.footer__bottom { border-top: 1px solid var(--line); padding-top: 22px; padding-bottom: 22px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: 13px; color: var(--muted); }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 60; background: rgba(10,37,64,.45); backdrop-filter: blur(6px); display: flex; align-items: center; justify-content: center; padding: 20px; overflow-y: auto; }
.modal[hidden] { display: none; }
.modal__box { background: #fff; width: 100%; max-width: 580px; border-radius: 20px; box-shadow: var(--shadow-lg); animation: pop .3s ease; margin: auto; overflow: hidden; }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
.modal__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 28px 28px 6px; }
.modal__head h2 { font-size: 26px; font-weight: 700; letter-spacing: -0.03em; }
.modal__head p { font-size: 15px; color: var(--slate); margin-top: 4px; }
.form { padding: 18px 28px 28px; display: flex; flex-direction: column; gap: 16px; }
.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--slate); }
.form input, .form select, .form textarea { font: inherit; font-size: 15px; font-weight: 400; color: var(--ink); padding: 11px 12px; border: none; border-radius: 8px; background: #fff; box-shadow: 0 0 0 1px var(--line), 0 1px 2px rgba(0,0,0,.05); transition: box-shadow .2s; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; box-shadow: 0 0 0 1px var(--blue), 0 0 0 4px rgba(37,99,235,.2); }
.form textarea { resize: vertical; }
.form input.invalid { box-shadow: 0 0 0 1.5px #DC2626; }
.form__error { color: #DC2626; font-size: 14px; }
.form__error:empty { display: none; }
.form__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 4px; }
.form__actions .pill-btn { padding: 14px; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { min-height: 560px; max-width: 760px; }
  .shot--wide { right: 0; left: 150px; width: auto; }
}
@media (max-width: 900px) {
  .header__toggle { display: flex; }
  .nav { position: absolute; top: 76px; left: 16px; right: 16px; margin: 0; flex-direction: column; align-items: stretch; gap: 0; background: #fff; border-radius: 16px; padding: 10px 20px 20px; box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .25s, transform .25s, visibility .25s; }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav > a { color: var(--ink); padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav__right { margin: 14px 0 0; justify-content: space-between; }
  .nav__call { color: var(--ink); }
  .nav .pill-btn--light { background: var(--ink); color: #fff; }
  .bento { grid-template-columns: 1fr 1fr; }
  .split, .about { grid-template-columns: 1fr; gap: 48px; }
  .contact { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .hero { padding-bottom: 72px; }
  .hero__gradient { height: 560px; clip-path: polygon(0 0, 100% 0, 100% 75%, 0 100%); }
  .hero__grid { padding-top: 40px; }
  .hero__lead { font-size: 17px; }
  .hero__visual { min-height: 0; display: grid; grid-template-columns: 1.4fr 1fr; gap: 12px; margin-top: 10px; }
  .shot { position: relative; left: auto; top: auto; width: auto; }
  .shot--wide { aspect-ratio: auto; height: 100%; }
  .shot--tall { border-width: 5px; border-radius: 16px; }
  .section, .cta { padding: 80px 0; }
  .dark { padding: 90px 0; }
  .bento { grid-template-columns: 1fr; }
  .bcard--wide, .bcard--accent { grid-column: auto; }
  .ind { grid-template-columns: 1fr; }
  .ind__wide { grid-column: auto; }
  .about__float { right: 12px; bottom: -24px; }
  .about__media > img { height: 320px; }
  .cta__box { padding: 44px 26px; }
  .form__grid, .form__actions { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* overflow fixes */
.hero__grid > * { min-width: 0; }
@media (max-width: 640px) {
      .quick { max-width: 100%; }
  .shot--tall { animation: none; }
}

/* ---------- Services ---------- */
.sgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.scard { background: #fff; border-radius: 20px; overflow: hidden; box-shadow: 0 0 0 1px var(--line), var(--shadow-sm); transition: transform .3s, box-shadow .3s; display: flex; flex-direction: column; }
.scard:hover { transform: translateY(-6px); box-shadow: 0 0 0 1px var(--line), var(--shadow-lg); }
.scard__img { position: relative; height: 240px; overflow: hidden; }
.scard__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.scard:hover .scard__img img { transform: scale(1.06); }
.scard__num { position: absolute; left: 16px; top: 16px; width: 44px; height: 44px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 15px; color: #fff; background: linear-gradient(135deg, #F97316, #F2B705); box-shadow: var(--shadow-sm); }
.scard:nth-child(2) .scard__num { background: linear-gradient(135deg, #2563EB, #7DD3FC); }
.scard:nth-child(3) .scard__num { background: linear-gradient(135deg, #0A1F4A, #2563EB); }
.scard__body { padding: 26px 26px 30px; display: flex; flex-direction: column; gap: 10px; }
.scard__body h3 { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; color: var(--ink); }
.scard__body p { font-size: 15px; line-height: 1.65; color: var(--slate); }
@media (max-width: 1000px) { .sgrid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .sgrid { grid-template-columns: 1fr; } .scard__img { height: 210px; } }

/* tighter gap between Products and Services */
#products { padding-bottom: 64px; }
#services { padding-top: 72px; }
@media (max-width: 640px) { #products { padding-bottom: 48px; } #services { padding-top: 56px; } }

/* ===================================================
   Colourful Products & Services (moving glows + glass cards + 3D tilt)
   =================================================== */
.fx { position: relative; overflow: hidden; isolation: isolate; }
.fx > .container { position: relative; z-index: 1; }
.blobs { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; will-change: transform; animation: blob 18s ease-in-out infinite alternate; }
.blob--sky    { width: 560px; height: 560px; background: #7DD3FC; top: -140px; left: -160px; }
.blob--orange { width: 520px; height: 520px; background: #FB923C; top: 25%; right: -180px; animation-duration: 22s; animation-delay: -6s; }
.blob--blue   { width: 600px; height: 600px; background: #3B82F6; bottom: -260px; left: 30%; opacity: .4; animation-duration: 26s; animation-delay: -12s; }
.blob--yellow { width: 380px; height: 380px; background: #FCD34D; top: 45%; left: 8%; opacity: .45; animation-duration: 20s; animation-delay: -3s; }
@keyframes blob {
  0%   { transform: translate(0, 0) scale(1); }
  33%  { transform: translate(80px, -50px) scale(1.12); }
  66%  { transform: translate(-50px, 60px) scale(.92); }
  100% { transform: translate(40px, 30px) scale(1.05); }
}

/* Products: light section with colour glows */
.fx--light { background: linear-gradient(180deg, #F8FBFF 0%, #EEF4FF 100%); }

/* Services: full colour gradient section */
.fx--color { background: linear-gradient(120deg, #BAE6FD 0%, #60A5FA 40%, #818CF8 62%, #FB923C 85%, #FCD34D 100%); background-size: 200% 200%; animation: drift 20s ease-in-out infinite alternate; }
.fx--color .blob { opacity: .5; mix-blend-mode: soft-light; }
.fx--color .head h2 { color: #0A1F4A; }
.fx--color .head .sub { color: #0F2A4D; }
.fx--color .kicker { color: #fff; background: rgba(10,31,74,.35); padding: 6px 14px; border-radius: 999px; align-self: center; backdrop-filter: blur(6px); }

/* Tabs on glass */
.fx--light .tabs { background: rgba(255,255,255,.55); backdrop-filter: blur(12px); box-shadow: inset 0 0 0 1px rgba(255,255,255,.8), 0 8px 20px -10px rgba(10,37,64,.25); }
.fx--light .tab.is-active { background: linear-gradient(135deg, #0A2540, #2563EB); color: #fff; }

/* Glass cards */
.pcard, .scard {
  background: rgba(255,255,255,.42);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  box-shadow: 0 0 0 1px rgba(255,255,255,.75), 0 24px 48px -24px rgba(10,37,64,.45);
  transform-style: preserve-3d;
  transition: transform .25s ease, box-shadow .3s ease;
  position: relative;
}
.pcard:hover, .scard:hover { box-shadow: 0 0 0 1px rgba(255,255,255,.9), 0 40px 70px -28px rgba(10,37,64,.55); }

.pcard__body, .scard__body {
  position: relative;
  background: linear-gradient(160deg, rgba(255,255,255,.82) 0%, rgba(224,236,255,.62) 100%);
}
.pcard__body::before, .scard__body::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px;
  background: linear-gradient(90deg, #2563EB, #7DD3FC);
}
.pcard[data-group="sheets"] .pcard__body { background: linear-gradient(160deg, rgba(255,255,255,.82) 0%, rgba(255,231,204,.65) 100%); }
.pcard[data-group="sheets"] .pcard__body::before { background: linear-gradient(90deg, #F97316, #F2B705); }
.pcard__body h3, .scard__body h3 { color: #0A1F4A; }
.pcard__body p, .scard__body p { color: #33475E; }

/* Badges become colourful */
.badge { background: linear-gradient(135deg, #0A2540, #2563EB); color: #fff; box-shadow: 0 6px 14px -6px rgba(10,37,64,.6); }
.pcard[data-group="sheets"] .badge { background: linear-gradient(135deg, #F97316, #F2B705); color: #0A1F4A; }

/* Services cards on the colour gradient */
.fx--color .scard { background: rgba(255,255,255,.3); }
.fx--color .scard__body { background: linear-gradient(160deg, rgba(255,255,255,.86) 0%, rgba(255,255,255,.62) 100%); }
.scard:nth-child(1) .scard__body::before { background: linear-gradient(90deg, #F97316, #F2B705); }
.scard:nth-child(2) .scard__body::before { background: linear-gradient(90deg, #2563EB, #7DD3FC); }
.scard:nth-child(3) .scard__body::before { background: linear-gradient(90deg, #0A1F4A, #2563EB); }

/* 3D tilt shine (position set by script.js) */
.tilt::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 3;
  background: radial-gradient(520px circle at var(--mx, 50%) var(--my, 0%), rgba(255,255,255,.35), transparent 45%);
  opacity: 0; transition: opacity .3s;
}
.tilt.is-tilting::after { opacity: 1; }
.tilt .pcard__img, .tilt .scard__img { transform: translateZ(30px); }
.tilt .pcard__body h3, .tilt .scard__body h3 { transform: translateZ(20px); }

@media (max-width: 640px) {
  .blob { filter: blur(50px); }
  .blob--sky, .blob--orange, .blob--blue { width: 360px; height: 360px; }
  .blob--yellow { width: 260px; height: 260px; }
}
@media (prefers-reduced-motion: reduce) {
  .blob, .fx--color { animation: none !important; }
}

/* tighter gap between top section and Products */
.hero { padding-bottom: 40px; }
.hero__visual { min-height: 550px; }
#products { padding-top: 72px; }
@media (max-width: 1100px) { .hero__visual { min-height: 520px; } }
@media (max-width: 640px) { .hero { padding-bottom: 32px; } .hero__visual { min-height: 0; } #products { padding-top: 56px; } }

/* ===================================================
   3D hero photos: entrance, gentle sway, mouse follow
   =================================================== */
.hero__visual { perspective: 1400px; perspective-origin: 50% 40%; }
.hero__stage, .hero__sway { position: absolute; inset: 0; transform-style: preserve-3d; }
.hero__stage { transition: transform .35s cubic-bezier(.2,.7,.3,1); will-change: transform; }
.hero__sway { animation: sway3d 9s ease-in-out infinite; animation-delay: 1.4s; }
@keyframes sway3d {
  0%, 100% { transform: rotateY(-5deg) rotateX(3deg) translateY(0); }
  50%      { transform: rotateY(5deg)  rotateX(-2deg) translateY(-12px); }
}

.shot { transform-style: preserve-3d; backface-visibility: hidden; }
.shot--wide { --t: translateZ(-40px) rotateY(-14deg) rotateX(4deg); transform: var(--t); animation: shotIn 1.1s cubic-bezier(.2,.8,.2,1) both; }
.shot--tall { --t: translateZ(90px) rotateY(12deg) rotateX(2deg);  transform: var(--t); animation: shotInLeft 1.1s cubic-bezier(.2,.8,.2,1) .25s both; }
@keyframes shotIn     { from { opacity: 0; transform: translateZ(-260px) translateX(140px) rotateY(-50deg) rotateX(10deg); } to { opacity: 1; transform: var(--t); } }
@keyframes shotInLeft { from { opacity: 0; transform: translateZ(-200px) translateX(-120px) rotateY(55deg) rotateX(-8deg); } to { opacity: 1; transform: var(--t); } }

/* deeper, softer shadows to sell the depth */
.shot--wide { box-shadow: 0 60px 120px -30px rgba(10,37,64,.45), 0 30px 60px -30px rgba(0,0,0,.35); }
.shot--tall { box-shadow: 0 70px 120px -25px rgba(10,37,64,.55), 0 30px 60px -20px rgba(0,0,0,.35); }

/* moving light reflection across each photo */
.shot__shine { position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.28) 45%, transparent 60%);
  background-size: 250% 100%; background-position: 130% 0; animation: shine 7s ease-in-out infinite 2s; mix-blend-mode: screen; }
@keyframes shine { 0%, 60% { background-position: 130% 0; } 100% { background-position: -60% 0; } }

/* tablet: keep 3D but smaller angles */
@media (max-width: 1100px) {
  .shot--wide { --t: translateZ(-30px) rotateY(-10deg) rotateX(3deg); }
  .shot--tall { --t: translateZ(60px) rotateY(9deg); }
}
/* phone: photos side by side, light 3D only */
@media (max-width: 640px) {
  .hero__stage, .hero__sway { display: contents; }
  .hero__visual { perspective: 900px; }
  .shot--wide { --t: rotateY(-8deg); }
  .shot--tall { --t: rotateY(8deg); }
}
@media (prefers-reduced-motion: reduce) {
  .hero__sway, .shot, .shot__shine { animation: none !important; }
  .shot { opacity: 1 !important; }
}

/* tighter gap between About and the "Need a specific grade" banner */
#about { padding-bottom: 80px; }
.cta { padding-top: 64px; }
@media (max-width: 640px) { #about { padding-bottom: 64px; } .cta { padding-top: 48px; } }

/* footer without the repeated contact column; less space above it */
.footer__grid { grid-template-columns: 1.6fr 1fr 1fr; }
.cta { padding-bottom: 72px; }
@media (max-width: 900px) { .footer__grid { grid-template-columns: 1fr 1fr; } .footer__brand { grid-column: 1 / -1; } }
@media (max-width: 640px) { .cta { padding-bottom: 56px; } .footer__grid { grid-template-columns: 1fr 1fr; } }

/* compact footer */
.footer__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; padding-top: 24px; padding-bottom: 20px; }
.footer__logo img { height: 34px; width: auto; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 8px 26px; font-size: 14px; font-weight: 500; }
.footer__bottom { padding-top: 14px; padding-bottom: 16px; font-size: 12px; }
@media (max-width: 640px) {
  .footer__row { flex-direction: column; align-items: flex-start; }
  .footer__nav { gap: 8px 18px; }
}

/* ===================================================
   Animated About section
   =================================================== */
#about .blob--orange { top: 10%; right: -200px; }
#about .blob--sky { top: auto; bottom: -220px; left: -180px; }
#about .blob--yellow { top: 20%; left: 35%; opacity: .3; }

.about__media { position: relative; }
.about__media > img { display: none; }
.about__photo { position: relative; border-radius: 22px; overflow: hidden; box-shadow: var(--shadow-lg); transform-style: preserve-3d; }
.about__photo img { width: 100%; height: 460px; object-fit: cover; animation: kenburns 18s ease-in-out infinite alternate; }
@keyframes kenburns { from { transform: scale(1) translate(0, 0); } to { transform: scale(1.12) translate(-3%, -2%); } }

/* small label on the photo */
.about__chip { position: absolute; left: 20px; top: 20px; z-index: 4; display: inline-flex; align-items: center; gap: 10px; padding: 9px 16px; border-radius: 999px; font-size: 13px; font-weight: 700; color: #0A1F4A; background: rgba(255,255,255,.82); backdrop-filter: blur(10px); box-shadow: var(--shadow-sm); animation: chipIn .8s cubic-bezier(.2,.8,.2,1) .3s both; }
.pulse { width: 9px; height: 9px; border-radius: 50%; background: #22C55E; position: relative; }
.pulse::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: #22C55E; animation: pulse 1.8s ease-out infinite; }
@keyframes pulse { from { transform: scale(1); opacity: .7; } to { transform: scale(3); opacity: 0; } }
@keyframes chipIn { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: none; } }

/* core values card: floating glass with a circling colour border */
@property --ang { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
.about__float {
  z-index: 5; right: -28px; bottom: -34px; min-width: 240px; padding: 22px 22px 18px;
  background: rgba(255,255,255,.78); backdrop-filter: blur(16px) saturate(160%); -webkit-backdrop-filter: blur(16px) saturate(160%);
  border-radius: 18px; box-shadow: 0 30px 60px -20px rgba(10,37,64,.45);
  animation: floatCard 6s ease-in-out infinite;
}
.about__float::before {
  content: ""; position: absolute; inset: -2px; border-radius: 20px; padding: 2px; pointer-events: none;
  background: conic-gradient(from var(--ang), #F97316, #F2B705, #7DD3FC, #2563EB, #F97316);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask-composite: exclude;
  animation: spinBorder 5s linear infinite;
}
@keyframes spinBorder { to { --ang: 360deg; } }
@keyframes floatCard { 0%, 100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-14px) rotate(1deg); } }
.about__floatT { margin-bottom: 12px; }
.about__float ul { gap: 6px; }
.about__float li { position: relative; gap: 12px; padding: 8px 10px; border-radius: 10px; color: #33475E; transition: background .4s, color .4s, transform .4s; opacity: 0; transform: translateX(-14px); }
.about__float li span:not(.tick) { display: none; }
.about__media.is-visible .about__float li { animation: itemIn .6s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(.5s + var(--i) * .2s); }
@keyframes itemIn { from { opacity: 0; transform: translateX(-14px); } to { opacity: 1; transform: none; } }
.about__float li .tick { width: 22px; height: 22px; border-radius: 7px; display: inline-flex; align-items: center; justify-content: center; color: #fff; background: #CBD5E1; transition: background .4s, transform .4s; flex-shrink: 0; }
.about__float li.is-active { background: linear-gradient(90deg, rgba(249,115,22,.14), rgba(242,183,5,.08)); color: #0A1F4A; }
.about__float li.is-active .tick { background: linear-gradient(135deg, #F97316, #F2B705); transform: scale(1.12) rotate(-6deg); }

@media (max-width: 640px) {
  .about__photo img { height: 320px; }
  .about__float { right: 12px; bottom: -28px; min-width: 210px; }
  .about__chip { left: 12px; top: 12px; font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .about__photo img, .about__float, .about__float::before, .pulse::after, .about__chip { animation: none !important; }
  .about__float li { opacity: 1 !important; transform: none !important; animation: none !important; }
}

/* ===================================================
   Industries: compact, two scrolling rows of icon pills
   =================================================== */
.industries-x { position: relative; overflow: hidden; padding: 72px 0 64px; background: linear-gradient(180deg, #FFFFFF 0%, #F4F8FF 100%); }
.head--compact { margin-bottom: 32px; gap: 10px; }
.head--compact h2 { font-size: clamp(28px, 3.4vw, 40px); }
.head--compact .sub { font-size: 16px; }
.marquees { display: flex; flex-direction: column; gap: 14px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee { overflow: hidden; }
.marquee__track { list-style: none; margin: 0; padding: 6px 0; display: flex; gap: 14px; width: max-content; animation: marquee 40s linear infinite; }
.marquee--rev .marquee__track { animation-direction: reverse; animation-duration: 46s; }
.marquees:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.ichip { display: inline-flex; align-items: center; gap: 12px; padding: 10px 20px 10px 10px; border-radius: 999px; white-space: nowrap;
  font-weight: 600; font-size: 16px; color: #0A1F4A; background: rgba(255,255,255,.9);
  box-shadow: 0 0 0 1px #E3E8EE, 0 8px 20px -12px rgba(10,37,64,.35); transition: transform .25s, box-shadow .25s; }
.ichip:hover { transform: translateY(-3px); box-shadow: 0 0 0 1px #CBD5E1, 0 14px 26px -12px rgba(10,37,64,.4); }
.ichip__icon { width: 38px; height: 38px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: #fff; background: linear-gradient(135deg, #2563EB, #7DD3FC); flex-shrink: 0; }
.ichip:nth-child(3n+2) .ichip__icon { background: linear-gradient(135deg, #F97316, #F2B705); }
.ichip:nth-child(3n) .ichip__icon { background: linear-gradient(135deg, #0A1F4A, #2563EB); }
@media (max-width: 640px) {
  .industries-x { padding: 56px 0 48px; }
  .ichip { font-size: 14px; padding: 8px 16px 8px 8px; }
  .ichip__icon { width: 32px; height: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
  .marquees { -webkit-mask-image: none; mask-image: none; }
}

/* ===================================================
   Colourful contact cards
   =================================================== */
.contact { gap: 22px; margin-top: 32px; }
.ccard { position: relative; overflow: hidden; isolation: isolate; border-radius: 22px; padding: 30px 30px 28px; gap: 10px; min-height: 290px;
  color: #fff; box-shadow: 0 30px 60px -28px rgba(10,37,64,.6); transform-style: preserve-3d; }
.ccard--blue   { background: linear-gradient(140deg, #1D4ED8 0%, #2563EB 45%, #0EA5E9 130%); }
.ccard--orange { background: linear-gradient(140deg, #EA580C 0%, #F97316 40%, #F2B705 120%); }
.ccard--navy   { background: linear-gradient(140deg, #071537 0%, #0A1F4A 45%, #1E40AF 130%); }
.ccard:hover { box-shadow: 0 40px 70px -26px rgba(10,37,64,.7); }

/* soft light blob inside each card */
.ccard::before { content: ""; position: absolute; width: 260px; height: 260px; border-radius: 50%; right: -90px; top: -110px; z-index: -1;
  background: radial-gradient(closest-side, rgba(255,255,255,.35), transparent); animation: glowMove 9s ease-in-out infinite alternate; }
@keyframes glowMove { to { transform: translate(-60px, 50px) scale(1.2); } }

/* big faded icon, slowly rotating */
.ccard__deco { position: absolute; right: -36px; bottom: -40px; z-index: -1; color: rgba(255,255,255,.12); animation: decoSpin 26s linear infinite; }
@keyframes decoSpin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* icon in glass circle with pulsing ring */
.ccard .ccard__icon { position: relative; width: 52px; height: 52px; border-radius: 16px; margin-bottom: 10px; color: #fff;
  background: rgba(255,255,255,.2); backdrop-filter: blur(8px); box-shadow: inset 0 0 0 1px rgba(255,255,255,.35); }
.ccard .ccard__icon::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: 0 0 0 0 rgba(255,255,255,.5); animation: ring 2.4s ease-out infinite; }
@keyframes ring { 0% { box-shadow: 0 0 0 0 rgba(255,255,255,.45); } 100% { box-shadow: 0 0 0 16px rgba(255,255,255,0); } }
.ccard:nth-child(1) .ccard__icon, .ccard:nth-child(2) .ccard__icon, .ccard:nth-child(3) .ccard__icon { background: rgba(255,255,255,.2); }

.ccard small { color: rgba(255,255,255,.8); font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.ccard b { color: #fff; font-size: 16px; font-weight: 600; }
.ccard b.big { font-size: 22px; font-weight: 700; letter-spacing: -0.01em; }
.ccard em { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding: 11px 18px; border-radius: 999px;
  font-style: normal; font-size: 14px; font-weight: 700; color: #0A1F4A; background: #fff; box-shadow: 0 8px 18px -8px rgba(0,0,0,.4); transition: transform .25s, box-shadow .25s; }
.ccard em svg { transition: transform .25s; }
.ccard:hover em { transform: translateY(-2px); box-shadow: 0 12px 22px -8px rgba(0,0,0,.45); }
.ccard:hover em svg { transform: translateX(3px); }

/* orange card uses dark text for readability */
.ccard--orange, .ccard--orange b { color: #0A1F4A; }
.ccard--orange small { color: rgba(10,31,74,.75); }
.ccard--orange .ccard__icon { color: #0A1F4A; background: rgba(255,255,255,.35); }
.ccard--orange .ccard__deco { color: rgba(10,31,74,.1); }
.ccard--orange em { background: #0A1F4A; color: #fff; }

@media (max-width: 900px) { .ccard { min-height: 0; } }
@media (prefers-reduced-motion: reduce) { .ccard::before, .ccard__deco, .ccard .ccard__icon::after { animation: none !important; } }
.ccard b.big { word-break: normal; overflow-wrap: normal; }
.ccard--navy b.big { font-size: 19px; overflow-wrap: anywhere; }

/* ===================================================
   Rotating hero headline
   =================================================== */
.rotator { display: grid; position: relative; }
.rotator__item { grid-area: 1 / 1; display: block; opacity: 0; transform: translateY(60px) rotateX(-40deg); transform-origin: 50% 100%; filter: blur(8px);
  transition: opacity .7s cubic-bezier(.2,.8,.2,1), transform .8s cubic-bezier(.2,.8,.2,1), filter .7s ease; pointer-events: none; }
.rotator__item.is-active { opacity: 1; transform: none; filter: none; pointer-events: auto; }
.rotator__item.is-leaving { opacity: 0; transform: translateY(-50px) rotateX(35deg); filter: blur(8px); }
.hero__copy { perspective: 900px; }
.rotator__dots { display: flex; gap: 8px; margin-top: -10px; }
.rdot { width: 26px; height: 5px; border: none; padding: 0; border-radius: 999px; background: rgba(10,31,74,.18); overflow: hidden; position: relative; transition: width .4s; }
.rdot.is-active { width: 54px; background: rgba(10,31,74,.32); }
.rdot.is-active::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #F97316, #F2B705); transform-origin: left; animation: rfill 4.2s linear forwards; }
@keyframes rfill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.rdot:hover { background: rgba(10,31,74,.3); }
@media (prefers-reduced-motion: reduce) {
  .rotator__item { transform: none !important; filter: none !important; transition: opacity .4s; }
  .rdot.is-active::after { animation: none; transform: none; }
}
