:root {
  --navy: #1f3a6b;
  --navy-deep: #13264a;
  --navy-ink: #24375c;
  --copper: #c06a2b;
  --copper-dark: #9c5320;
  --ink: #1c2433;
  --muted: #5b6577;
  --line: #dde2ea;
  --tint: #f3f5f9;
  --white: #fff;
  --radius: 10px;
  --serif: "Libre Baskerville", Georgia, "Times New Roman", serif;
  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; font-family: var(--sans); font-size: 17px; line-height: 1.6; color: var(--ink); background: var(--white); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--navy); }
h1, h2, h3 { font-family: var(--serif); color: var(--navy-ink); line-height: 1.2; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(2rem, 4.4vw, 3.25rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.eyebrow { font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--copper); margin-bottom: .8em; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: .5em; padding: .8em 1.4em; border-radius: 6px; font: 600 .98rem var(--sans); text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.btn svg { width: 1.2em; height: 1.2em; fill: currentColor; }
.btn-primary { background: var(--navy); color: var(--white); }
.btn-primary:hover { background: var(--navy-deep); }
.btn-ghost { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-ghost:hover { background: var(--navy); color: var(--white); }
.btn:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, button:focus-visible { outline: 3px solid var(--copper); outline-offset: 2px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: blur(6px); border-top: 5px solid var(--navy); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 28px; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy-ink); }
.brand-mark { font: 700 1.9rem/1 var(--serif); letter-spacing: .02em; }
.brand-text { display: flex; flex-direction: column; font: 400 1.05rem/1.05 var(--serif); border-left: 1px solid var(--line); padding-left: 10px; }
.brand-text small { font-size: .72rem; color: var(--muted); margin-top: 3px; }
.nav { display: flex; gap: 22px; margin-left: auto; align-items: center; }
.nav a { text-decoration: none; color: var(--ink); font-weight: 500; font-size: .95rem; }
.nav a:hover { color: var(--copper); }
.nav .nav-cta { background: var(--navy); color: var(--white); padding: .5em 1em; border-radius: 6px; }
.nav .nav-cta:hover { background: var(--navy-deep); color: var(--white); }
.header-phone { font-weight: 600; text-decoration: none; white-space: nowrap; font-size: .95rem; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--navy); margin: 5px 0; transition: transform .2s, opacity .2s; }

/* Hero */
.hero { padding: 72px 0 0; background: linear-gradient(180deg, var(--tint), var(--white) 85%); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 36em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-visual { position: relative; max-width: 420px; justify-self: center; width: 100%; }
.cable { width: 100%; height: auto; filter: drop-shadow(0 18px 30px rgba(19,38,74,.25)); }
.cable .cores { transform-origin: 200px 200px; animation: spin 60s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .cable .cores { animation: none; } html { scroll-behavior: auto; } }
.cable-labels span { position: absolute; left: var(--x); top: var(--y); font-size: .72rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--navy-ink); background: var(--white); border: 1px solid var(--line); padding: 3px 8px; border-radius: 20px; white-space: nowrap; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); margin: 64px 0 0; padding: 28px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stats div { padding: 0 20px; border-left: 1px solid var(--line); }
.stats div:first-child { border-left: 0; padding-left: 0; }
.stats dt { font: 700 1.9rem/1.1 var(--serif); color: var(--navy); }
.stats dd { margin: 4px 0 0; color: var(--muted); font-size: .95rem; }

/* Sections */
.section { padding: 96px 0; }
.section-tint { background: var(--tint); }
.section-lead { color: var(--muted); }

.about-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; }
.about-copy p { color: #3a4456; }
.ticks { list-style: none; padding: 0; margin: 1.5em 0 0; }
.ticks li { padding-left: 30px; position: relative; margin-bottom: .6em; font-weight: 500; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .45em; width: 16px; height: 9px; border-left: 2.5px solid var(--copper); border-bottom: 2.5px solid var(--copper); transform: rotate(-45deg); }

/* Brands */
.brand-grid { list-style: none; padding: 0; margin: 36px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.brand-grid li { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 18px 14px; display: flex; flex-direction: column; align-items: center; gap: 10px; transition: border-color .15s, transform .15s; }
.brand-grid li:hover { border-color: var(--navy); transform: translateY(-2px); }
.brand-grid img { height: 92px; width: 100%; object-fit: contain; mix-blend-mode: multiply; }
.brand-grid span { font-size: .82rem; color: var(--muted); text-align: center; border-top: 1px solid var(--line); padding-top: 10px; width: 100%; }
.brand-notes { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
.brand-notes > div { background: var(--navy); color: #dbe3f1; border-radius: var(--radius); padding: 24px 26px; }
.brand-notes h3 { color: var(--white); }
.brand-notes p { margin: 0; }
.brand-notes strong { color: var(--white); }

/* Products */
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 36px; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.product { padding: 32px 28px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); position: relative; transition: background .15s; }
.product:hover { background: var(--tint); }
.product-num { display: block; font: 700 .85rem var(--serif); color: var(--copper); margin-bottom: 14px; }
.product p { color: var(--muted); margin: 0; font-size: .97rem; }

/* Industries */
.section-dark { background: var(--navy-deep); color: #c9d3e6; }
.section-dark h2 { color: var(--white); }
.section-dark .eyebrow { color: #e59a62; }
.industry-list { list-style: none; padding: 0; margin: 36px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.12); }
.industry-list li { background: var(--navy-deep); padding: 26px 22px; font: 400 1.08rem var(--serif); color: var(--white); }
.industry-list li::before { content: ""; display: block; width: 26px; height: 3px; background: var(--copper); margin-bottom: 14px; }

/* Clients */
.client-list { list-style: none; padding: 0; margin: 28px 0 0; columns: 3; column-gap: 40px; }
.client-list li { break-inside: avoid; padding: 10px 0; border-bottom: 1px solid var(--line); font-weight: 500; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.contact-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 24px 0 32px; }
.contact-details { margin: 0; }
.contact-details div { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.contact-details dt { font-weight: 600; color: var(--navy-ink); font-size: .9rem; }
.contact-details dd { margin: 0; color: #3a4456; }

.enquiry { background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--navy); border-radius: var(--radius); padding: 32px; box-shadow: 0 10px 30px rgba(19,38,74,.07); }
.enquiry label { display: block; font-size: .88rem; font-weight: 600; color: var(--navy-ink); margin-bottom: 16px; }
.enquiry input, .enquiry select, .enquiry textarea { display: block; width: 100%; margin-top: 6px; padding: .7em .8em; font: 400 1rem var(--sans); color: var(--ink); border: 1px solid #c8cfda; border-radius: 6px; background: var(--white); }
.enquiry textarea { resize: vertical; }
.enquiry input[aria-invalid="true"], .enquiry textarea[aria-invalid="true"] { border-color: #b3261e; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.enquiry .btn { width: 100%; justify-content: center; }
.hp { position: absolute !important; left: -9999px; }
.form-status { margin: 14px 0 0; font-size: .95rem; min-height: 1.5em; }
.form-status.ok { color: #1d6b3a; }
.form-status.err { color: #b3261e; }

/* Footer */
.site-footer { background: var(--navy-deep); color: #b8c4da; padding: 56px 0 0; font-size: .95rem; }
.site-footer a { color: var(--white); text-decoration: none; }
.site-footer h4 { color: var(--white); font: 600 .8rem var(--sans); letter-spacing: .1em; text-transform: uppercase; margin: 0 0 12px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer-logo { width: 120px; height: auto; border-radius: 4px; margin-bottom: 16px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 40px; padding: 20px 24px; font-size: .82rem; }
.footer-bottom p { margin: 0; }

.wa-float { position: fixed; right: 20px; bottom: 20px; width: 56px; height: 56px; border-radius: 50%; background: #25d366; display: grid; place-items: center; box-shadow: 0 8px 20px rgba(0,0,0,.2); z-index: 60; }
.wa-float svg { width: 30px; height: 30px; fill: #fff; }

/* Responsive */
@media (max-width: 1020px) {
  .header-phone { display: none; }
}
@media (max-width: 880px) {
  .nav-toggle { display: block; }
  .nav { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--white); border-bottom: 1px solid var(--line); padding: 8px 24px 20px; display: none; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav .nav-cta { margin-top: 12px; text-align: center; border: 0; }
  .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 { padding-top: 48px; }
  .hero-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-visual { max-width: 300px; }
  .stats { grid-template-columns: 1fr 1fr; gap: 20px 0; }
  .stats div:nth-child(3) { border-left: 0; padding-left: 0; }
  .brand-grid { grid-template-columns: repeat(2, 1fr); }
  .brand-notes { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: 1fr 1fr; }
  .industry-list { grid-template-columns: 1fr 1fr; }
  .client-list { columns: 2; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .section { padding: 72px 0; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .product-grid { grid-template-columns: 1fr; }
  .client-list { columns: 1; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .enquiry { padding: 24px 20px; }
  .brand-grid img { height: 70px; }
  .cable-labels { display: none; }
  .stats dt { font-size: 1.5rem; }
}
.brand-grid img.vec { padding: 12px 10px; }

/* ============ Motion ============ */
:root { --ease: cubic-bezier(.22,.61,.36,1); --ease-out: cubic-bezier(.16,1,.3,1); }

/* Header: shadow + shrink once scrolled */
.site-header { transition: box-shadow .3s var(--ease), background .3s; }
.header-inner { transition: height .3s var(--ease); }
.site-header.scrolled { box-shadow: 0 6px 24px rgba(19,38,74,.08); }
.site-header.scrolled .header-inner { height: 62px; }

/* Nav underline + active section */
@media (min-width: 881px) {
  .nav a:not(.nav-cta) { position: relative; padding: 4px 0; }
  .nav a:not(.nav-cta)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--copper); transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease-out); }
  .nav a:not(.nav-cta):hover::after, .nav a.active::after { transform: scaleX(1); transform-origin: left; }
  .nav a.active { color: var(--navy); }
}
.nav.open { animation: menuIn .3s var(--ease-out); }
@keyframes menuIn { from { opacity: 0; transform: translateY(-8px); } }

/* Buttons */
.btn { transition: background .2s, color .2s, border-color .2s, transform .25s var(--ease-out), box-shadow .25s; position: relative; overflow: hidden; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(19,38,74,.18); }
.btn:active { transform: translateY(0); box-shadow: none; }
.btn-primary::before { content: ""; position: absolute; top: 0; left: -75%; width: 50%; height: 100%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.28), transparent); transform: skewX(-20deg); }
.btn-primary:hover::before { animation: shine .8s var(--ease); }
@keyframes shine { to { left: 125%; } }

/* Hero entrance */
.hero-copy > * { animation: rise .9s var(--ease-out) both; }
.hero-copy > *:nth-child(1) { animation-delay: .05s; }
.hero-copy > *:nth-child(2) { animation-delay: .15s; }
.hero-copy > *:nth-child(3) { animation-delay: .3s; }
.hero-copy > *:nth-child(4) { animation-delay: .45s; }
.hero-visual { animation: cableIn 1.2s var(--ease-out) .2s both; }
.cable-labels span { animation: pop .6s var(--ease-out) both; }
.cable-labels span:nth-child(1) { animation-delay: 1s; }
.cable-labels span:nth-child(2) { animation-delay: 1.15s; }
.cable-labels span:nth-child(3) { animation-delay: 1.3s; }
.cable-labels span:nth-child(4) { animation-delay: 1.45s; }
.cable { animation: float 6s ease-in-out 1.4s infinite; }
@keyframes rise { from { opacity: 0; transform: translateY(28px); } }
@keyframes cableIn { from { opacity: 0; transform: scale(.82) rotate(-25deg); } }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.9); } }
@keyframes float { 50% { transform: translateY(-10px); } }

/* Hero background glow */
.hero { position: relative; }
.hero::before { content: ""; position: absolute; width: 620px; height: 620px; right: -160px; top: -120px; border-radius: 50%; background: radial-gradient(circle, rgba(192,106,43,.13), transparent 65%); animation: drift 14s ease-in-out infinite alternate; pointer-events: none; }
.hero > * { position: relative; }
@keyframes drift { to { transform: translate(-80px, 60px) scale(1.1); } }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .8s var(--ease-out) var(--d, 0s), transform .8s var(--ease-out) var(--d, 0s) !important; }
.reveal.from-left { transform: translateX(-40px); }
.reveal.from-right { transform: translateX(40px); }
.reveal.zoom { transform: scale(.92); }
.reveal.in { opacity: 1; transform: none; }

/* Eyebrow line draws in */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ""; width: 0; height: 2px; background: currentColor; transition: width .7s var(--ease-out) .2s; }
.eyebrow.in::before, .eyebrow:not(.reveal)::before { width: 22px; }

/* Stats */
.stats div { transition: transform .3s var(--ease-out); }
.stats div:hover { transform: translateY(-3px); }

/* Ticks */
.ticks li.reveal { transform: translateX(-16px); }
.ticks li.reveal.in { transform: none; }

/* Brand cards */
.brand-grid li { transition: border-color .25s, transform .35s var(--ease-out), box-shadow .35s; }
.brand-grid li:hover { transform: translateY(-6px); box-shadow: 0 16px 34px rgba(19,38,74,.12); }
.brand-grid img { transition: transform .4s var(--ease-out); }
.brand-grid li:hover img { transform: scale(1.06); }
.brand-notes > div { transition: transform .35s var(--ease-out), box-shadow .35s; }
.brand-notes > div:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(19,38,74,.25); }

/* Product tiles: copper bar sweeps in */
.product { overflow: hidden; }
.product::before { content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 100%; background: var(--copper); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease-out); }
.product:hover::before { transform: scaleX(1); }
.product h3 { transition: color .25s, transform .35s var(--ease-out); }
.product:hover h3 { color: var(--navy); transform: translateX(4px); }
.product-num { transition: transform .35s var(--ease-out); }
.product:hover .product-num { transform: translateX(4px); }

/* Industries */
.industry-list li { transition: background .3s; position: relative; }
.industry-list li::before { transition: width .4s var(--ease-out); }
.industry-list li:hover { background: #1b3363; }
.industry-list li:hover::before { width: 52px; }

/* Clients */
.client-list li { transition: color .2s, padding-left .3s var(--ease-out); }
.client-list li:hover { color: var(--navy); padding-left: 8px; }

/* Form */
.enquiry input, .enquiry select, .enquiry textarea { transition: border-color .2s, box-shadow .2s; }
.enquiry input:focus, .enquiry select:focus, .enquiry textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 4px rgba(31,58,107,.12); }
.form-status.ok, .form-status.err { animation: rise .4s var(--ease-out); }

/* WhatsApp pulse */
.wa-float { transition: transform .25s var(--ease-out); animation: waIn .6s var(--ease-out) 1.6s both; }
.wa-float::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25d366; animation: ring 2.4s ease-out 2.5s infinite; }
.wa-float:hover { transform: scale(1.08); }
@keyframes waIn { from { opacity: 0; transform: scale(.4); } }
@keyframes ring { from { transform: scale(1); opacity: .8; } to { transform: scale(1.7); opacity: 0; } }

/* Scroll progress bar */
.progress { position: fixed; top: 0; left: 0; height: 3px; width: 100%; background: var(--copper); transform-origin: left; transform: scaleX(0); z-index: 70; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
.hero-visual { transition: translate .6s var(--ease-out); }

/* Header brand: "Industries" under TTD, tagline beside */
.brand { flex-direction: row; align-items: center; gap: 12px; }
.brand-stack { display: flex; flex-direction: column; align-items: center; line-height: 1; }
.brand-mark { font-size: 1.7rem; line-height: .95; letter-spacing: .04em; transition: font-size .3s; }
.brand-word { font: 400 .92rem/1 var(--serif); margin-top: 2px; }
.brand-tag { font: 400 .78rem/1.2 var(--serif); color: var(--muted); border-left: 1px solid var(--line); padding-left: 12px; align-self: stretch; display: flex; align-items: center; }
.site-header.scrolled .brand-mark { font-size: 1.5rem; }
