/* ==========================================================================
   CADKITE TECHNOLOGIES - website styles
   Brand colours (from the logo palette):
     yellow  C0 M0 Y100 K0   -> #FFD400   (gear gradient, graphics only)
     orange  C0 M73 Y100 K0  -> #F26B21   (accent)
     grey    K80             -> #58595B   (body text)
     black   K100            -> #1A1A1A   (headings)
   ========================================================================== */

:root {
  --ink: #1a1a1a;
  --text: #4a4b4e;
  --muted: #76777b;
  --line: #e7e6e2;
  --bg: #ffffff;
  --bg-soft: #f7f6f3;
  --dark: #17181b;
  --orange: #f26b21;
  --orange-ink: #c2500f;      /* orange dark enough for text on white */
  --yellow: #ffd400;
  --grad: linear-gradient(180deg, #ffd400 0%, #f9a31a 50%, #f26b21 100%);
  --radius: 14px;
  --shadow: 0 24px 48px -28px rgba(23, 24, 27, .35);
  --hero-pad: clamp(28px, 6.5vh, 72px);
  --hero-box: clamp(292px, 40vh, 340px);
  --header-h: 80px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--orange-ink); text-decoration: none; }
a:hover { color: var(--orange); }
:focus-visible { outline: 3px solid rgba(242, 107, 33, .5); outline-offset: 2px; border-radius: 4px; }

h1, h2, h3, h4 { font-family: "Montserrat", "Inter", system-ui, sans-serif; color: var(--ink); line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 4vw, 3.2rem); font-weight: 700; }
h2 { font-size: clamp(1.65rem, 2.8vw, 2.3rem); font-weight: 700; }
h3 { font-size: 1.18rem; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 1em; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section-soft { background: var(--bg-soft); }
.section-head { max-width: 640px; margin-bottom: 52px; }
.section-head p { color: var(--muted); font-size: 1.06rem; margin: 0; }
.section-head.row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; max-width: none; }
.section-head.row > div { max-width: 620px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 14px;
  color: var(--orange-ink); font-size: .76rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 22px; height: 3px; border-radius: 3px; background: var(--grad); background: linear-gradient(90deg, #ffd400, #f26b21); }
.lead { font-size: 1.12rem; max-width: 34em; }
.muted { color: var(--muted); }

.icon { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 24px; border: 1.5px solid transparent; border-radius: 10px;
  font-family: inherit; font-size: .95rem; font-weight: 600; line-height: 1.1; white-space: nowrap; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn .icon { width: 18px; height: 18px; transition: transform .2s; }
.btn:hover .icon { transform: translateX(3px); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; color: #fff; }
.btn-line { border-color: #cfcdc7; color: var(--ink); background: #fff; }
.btn-line:hover { border-color: var(--ink); color: var(--ink); }
.btn-orange { background: var(--orange); color: var(--ink); }
.btn-orange:hover { background: #ff7d33; color: var(--ink); }
.btn-ghost { border-color: rgba(255, 255, 255, .35); color: #fff; }
.btn-ghost:hover { border-color: #fff; color: #fff; }
.link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--ink); }
.link .icon { width: 17px; height: 17px; color: var(--orange); transition: transform .2s; }
.link:hover { color: var(--orange-ink); }
.link:hover .icon { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .96); backdrop-filter: blur(8px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: 0 8px 24px -20px rgba(0, 0, 0, .4); }
.nav-wrap { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.brand img { height: 46px; width: auto; }
.nav { display: flex; align-items: center; gap: 34px; }
.nav a { position: relative; color: var(--text); font-size: .96rem; font-weight: 500; }
.nav a:hover, .nav a.active { color: var(--ink); }
.nav a.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -8px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, #ffd400, #f26b21); }
.nav .btn { color: #fff; padding: 11px 20px; font-size: .9rem; }
.nav .btn::after { display: none; }
.nav-toggle { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; background: none; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); cursor: pointer; }
@media (max-width: 900px) {
  .brand img { height: 38px; }
  .nav-toggle { display: inline-flex; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: var(--header-h); flex-direction: column; align-items: stretch; gap: 0; padding: 4px 24px 22px; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 20px 30px -24px rgba(0, 0, 0, .4); }
  .nav.open { display: flex; }
  .nav a { padding: 15px 0; border-bottom: 1px solid var(--line); }
  .nav a.active::after { display: none; }
  .nav .btn { margin-top: 16px; border-bottom: 0; }
}

/* ---------- First section (same layout on every page) ---------- */
.hero { position: relative; overflow: hidden; padding: var(--hero-pad) 0; background: var(--bg-soft); }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(23, 24, 27, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(23, 24, 27, .045) 1px, transparent 1px);
  background-size: 36px 36px;
  -webkit-mask-image: linear-gradient(100deg, transparent 30%, #000 80%); mask-image: linear-gradient(100deg, transparent 30%, #000 80%);
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: start; min-height: var(--hero-box); }
.hero h1 { margin-bottom: 16px; }
.hero .lead { margin-bottom: 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero-art { height: var(--hero-box); display: flex; align-items: center; justify-content: center; }
.hero-art svg { width: auto; height: 100%; max-width: 100%; overflow: visible; }
.mii { display: inline-flex; align-items: center; gap: 8px; margin-top: 26px; padding: 6px 13px 6px 8px; background: #fff; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); font-size: .8rem; font-weight: 600; }
.flag { width: 21px; height: 14px; flex: none; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .08); }
.home .hero { --hero-box: clamp(300px, 52vh, 460px); }
.home .hero h1 { font-size: clamp(2.3rem, min(4.6vw, 7vh), 3.7rem); }
@media (min-width: 901px) {
  .hero h1 { font-size: clamp(1.9rem, min(3.8vw, 6vh), 3.2rem); }
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; min-height: 0; gap: 0; }
  .hero-art { display: none; }
  .hero { padding: 48px 0 52px; }
}

.spin { transform-box: fill-box; transform-origin: center; animation: spin var(--dur, 60s) linear infinite; }
.spin.rev { animation-direction: reverse; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Cards / grids ---------- */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
@media (max-width: 1000px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card { display: flex; flex-direction: column; padding: 28px 26px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .25s, box-shadow .25s, transform .25s; }
a.card { color: inherit; }
a.card:hover, .card.hover:hover { border-color: #d6d3cc; box-shadow: var(--shadow); transform: translateY(-3px); }
.card h3 { margin: 18px 0 8px; }
.card p { color: var(--muted); font-size: .94rem; margin: 0 0 18px; }
.card .link { margin-top: auto; font-size: .9rem; }
.num { font-family: "Montserrat", sans-serif; font-size: .82rem; font-weight: 700; color: var(--muted); letter-spacing: .06em; }

.ibox { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 12px; background: #fff4ea; color: var(--orange-ink); }
.ibox .icon { width: 25px; height: 25px; }
.card-top { display: flex; align-items: center; justify-content: space-between; }

/* ---------- Product band ---------- */
.product { display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: center; }
.product-logo { height: 34px; width: auto; margin-bottom: 18px; }
.ticks { list-style: none; margin: 22px 0 28px; padding: 0; display: grid; gap: 11px; }
.ticks li { position: relative; padding-left: 30px; color: var(--text); }
.ticks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%; background: #fff4ea url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c2500f' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") no-repeat center / 11px; }
.ticks.two { grid-template-columns: 1fr 1fr; gap: 11px 24px; }
.shot { margin: 0; overflow: hidden; background: #fff; border: 1px solid #dddbd5; border-radius: 12px; box-shadow: 0 34px 60px -30px rgba(23, 24, 27, .4); }
.shot-bar { display: flex; align-items: center; gap: 12px; padding: 9px 14px; background: #f3f2ef; border-bottom: 1px solid var(--line); }
.dots { display: flex; gap: 5px; } .dots i { width: 8px; height: 8px; border-radius: 50%; background: #d3d1cb; }
.shot-url { flex: 1; max-width: 240px; margin: 0 auto; padding: 3px 12px; border-radius: 6px; background: #fff; color: var(--muted); font-size: .72rem; text-align: center; }
.shot img { width: 100%; height: auto; }
@media (max-width: 900px) { .product { grid-template-columns: 1fr; gap: 36px; } }
@media (max-width: 520px) { .ticks.two { grid-template-columns: 1fr; } }

/* ---------- Industries ---------- */
.industries { display: grid; grid-template-columns: repeat(6, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.industry { display: flex; flex-direction: column; gap: 14px; padding: 26px 20px 28px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--ink); font-weight: 600; font-size: .94rem; line-height: 1.35; }
.industry .icon { width: 30px; height: 30px; color: var(--orange-ink); stroke-width: 1.5; }
@media (max-width: 1000px) { .industries { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .industries { grid-template-columns: repeat(2, 1fr); } }

/* ---------- CTA band ---------- */
.cta { position: relative; overflow: hidden; padding: 76px 0; background: var(--dark); color: #c9c9cc; }
.cta h2 { color: #fff; margin-bottom: 10px; }
.cta p { margin: 0; max-width: 34em; }
.cta-inner { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 30px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.cta-gear { position: absolute; right: -80px; top: 50%; width: 360px; transform: translateY(-50%); opacity: .14; pointer-events: none; }

/* ---------- Services page ---------- */
.svc { padding: 88px 0; border-top: 1px solid var(--line); scroll-margin-top: 80px; }
.svc:first-of-type { border-top: 0; }
.svc-head { display: grid; grid-template-columns: 1fr 1.2fr; gap: 56px; align-items: start; }
.svc-head h2 { margin-top: 14px; }
.svc-head .lead { color: var(--text); }
.svc-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.svc-box { padding: 26px; background: var(--bg-soft); border-radius: var(--radius); }
.svc-box h3 { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 0 14px; font-family: "Inter", sans-serif; }
.svc-box .ticks { margin: 0; }
.svc-box .ticks li::before { background-color: #fff; }
.svc-tag { display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; padding: 7px 14px; border-radius: 999px; background: #fff4ea; color: var(--orange-ink); font-size: .84rem; font-weight: 600; }
.svc-tag .icon { width: 16px; height: 16px; }
.svc-nav { display: flex; flex-wrap: wrap; gap: 10px; }
.svc-nav a { padding: 9px 16px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); font-size: .88rem; font-weight: 500; }
.svc-nav a:hover { border-color: var(--ink); }
@media (max-width: 900px) { .svc-head { grid-template-columns: 1fr; gap: 26px; } .svc { padding: 64px 0; } }
@media (max-width: 620px) { .svc-cols { grid-template-columns: 1fr; } }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: s; }
.step { position: relative; padding-top: 22px; border-top: 2px solid var(--line); }
.step::before { counter-increment: s; content: "0" counter(s); position: absolute; top: -2px; left: 0; padding-top: 18px; border-top: 2px solid var(--orange); width: 38px; font-family: "Montserrat", sans-serif; font-weight: 700; font-size: .85rem; color: var(--orange-ink); }
.step h3 { margin: 30px 0 8px; font-size: 1.05rem; }
.step p { margin: 0; color: var(--muted); font-size: .93rem; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; gap: 30px; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Products page ---------- */
.editions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.edition { display: flex; flex-direction: column; padding: 32px 28px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.edition.featured { border: 1.5px solid var(--ink); box-shadow: var(--shadow); }
.edition .tag { align-self: flex-start; margin-bottom: 16px; padding: 4px 11px; border-radius: 999px; background: var(--ink); color: #fff; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.edition .tag.soft { background: var(--bg-soft); color: var(--muted); }
.edition h3 { font-size: 1.45rem; margin: 0 0 4px; }
.edition .for { color: var(--orange-ink); font-weight: 600; font-size: .92rem; margin: 0 0 14px; }
.edition > p { color: var(--muted); font-size: .94rem; }
.edition .ticks { flex: 1; margin: 6px 0 28px; font-size: .93rem; }
.edition .btn { align-self: stretch; }
.note { display: flex; gap: 14px; align-items: flex-start; margin-top: 30px; padding: 20px 24px; border-radius: var(--radius); background: var(--bg-soft); color: var(--text); }
.note .icon { color: var(--orange-ink); margin-top: 2px; }
.note p { margin: 0; }
@media (max-width: 980px) { .editions { grid-template-columns: 1fr; max-width: 560px; } }

.feature { display: flex; gap: 16px; }
.feature .ibox { flex: none; width: 44px; height: 44px; border-radius: 11px; }
.feature .ibox .icon { width: 22px; height: 22px; }
.feature h3 { font-size: 1.02rem; margin: 2px 0 6px; }
.feature p { margin: 0; color: var(--muted); font-size: .93rem; }

/* ---------- About page ---------- */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--radius); background: #fff; overflow: hidden; }
.fact { padding: 24px 26px; border-left: 1px solid var(--line); }
.fact:first-child { border-left: 0; }
.fact span { display: block; color: var(--muted); font-size: .8rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 6px; }
.fact strong { font-family: "Montserrat", sans-serif; color: var(--ink); font-size: 1.15rem; }
@media (max-width: 800px) { .facts { grid-template-columns: 1fr 1fr; } .fact:nth-child(3) { border-left: 0; } .fact:nth-child(n+3) { border-top: 1px solid var(--line); } }
.split { display: grid; grid-template-columns: 1fr 1.25fr; gap: 64px; align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 28px; } }
.statement { padding: 34px 32px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.statement .eyebrow { margin-bottom: 12px; }
.statement p { margin: 0; font-family: "Montserrat", sans-serif; font-size: clamp(1.1rem, 1.8vw, 1.3rem); font-weight: 600; line-height: 1.45; color: var(--ink); }
.value { padding-top: 22px; border-top: 2px solid var(--line); }
.value .icon { width: 28px; height: 28px; color: var(--orange-ink); }
.value h3 { margin: 16px 0 6px; }
.value p { margin: 0; color: var(--muted); font-size: .94rem; }

/* ---------- Contact page ---------- */
.contact-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 32px; align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.form-card { padding: 36px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.form-card h2 { font-size: 1.5rem; margin-bottom: 6px; }
.form-card > p { color: var(--muted); }
.type-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 24px 0 8px; }
.type-pick label { position: relative; display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border: 1.5px solid var(--line); border-radius: 12px; cursor: pointer; transition: border-color .2s, background .2s; }
.type-pick input { position: absolute; opacity: 0; }
.type-pick .icon { margin-top: 2px; color: var(--muted); }
.type-pick strong { display: block; color: var(--ink); font-size: .98rem; }
.type-pick small { color: var(--muted); font-size: .84rem; }
.type-pick label:has(input:checked) { border-color: var(--ink); background: var(--bg-soft); }
.type-pick label:has(input:checked) .icon { color: var(--orange-ink); }
.type-pick label:has(input:focus-visible) { outline: 3px solid rgba(242, 107, 33, .5); outline-offset: 2px; }
@media (max-width: 520px) { .type-pick { grid-template-columns: 1fr; } .form-card { padding: 26px 20px; } }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; margin-top: 20px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }
label.l { display: block; margin-bottom: 7px; color: var(--ink); font-size: .88rem; font-weight: 500; }
.req { color: var(--orange-ink); }
.opt { color: var(--muted); font-weight: 400; font-size: .8rem; }
input, select, textarea { width: 100%; padding: 12px 14px; font: inherit; font-size: .94rem; color: var(--ink); background: #fff; border: 1px solid #d9d7d1; border-radius: 9px; transition: border-color .2s, box-shadow .2s; }
input::placeholder, textarea::placeholder { color: #a3a3a6; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(242, 107, 33, .18); }
select { appearance: none; -webkit-appearance: none; padding-right: 38px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%2376777b' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E") no-repeat right 14px center; cursor: pointer; }
textarea { min-height: 140px; resize: vertical; }
.counter { margin-top: 5px; text-align: right; color: var(--muted); font-size: .78rem; }
.err { display: none; margin-top: 5px; color: #c0262d; font-size: .8rem; }
.is-invalid input, .is-invalid select, .is-invalid textarea { border-color: #c0262d; }
.is-invalid .err { display: block; }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 24px; }
.form-actions small { color: var(--muted); font-size: .82rem; }
.form-status { display: none; margin-top: 18px; padding: 13px 16px; border-radius: 9px; font-size: .92rem; }
.form-status.ok { display: block; background: #edf8f0; color: #1d6b39; border: 1px solid #c4e8d0; }
.form-status.bad { display: block; background: #fdf0f0; color: #9b1c22; border: 1px solid #f3cccd; }
button[disabled] { opacity: .6; cursor: progress; }

.info { padding: 32px 28px; background: var(--bg-soft); border-radius: var(--radius); }
.info h3 { margin-bottom: 22px; }
.info-row { display: flex; gap: 14px; margin-bottom: 22px; }
.info-row .ibox { width: 42px; height: 42px; flex: none; background: #fff; }
.info-row .ibox .icon { width: 20px; height: 20px; }
.info-row strong { display: block; color: var(--ink); font-size: .92rem; }
.info-row p, .info-row a { margin: 2px 0 0; font-size: .92rem; color: var(--text); }
.info-row a:hover { color: var(--orange-ink); }
.info .btn { margin-top: 4px; }

/* ---------- Legal ---------- */
.legal { max-width: 780px; }
.legal h2 { font-size: 1.25rem; margin: 36px 0 10px; }
.legal ul { padding-left: 22px; }
.legal li { margin-bottom: 6px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--dark); color: #a4a5aa; font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; padding: 64px 0 52px; }
.footer-brand img { height: 50px; width: auto; margin-bottom: 18px; }
.footer-brand p { margin: 0 0 10px; max-width: 26em; }
.footer-brand .tag { color: #fff; font-family: "Montserrat", sans-serif; font-weight: 600; font-size: 1.02rem; }
.mii-foot { display: flex; align-items: center; gap: 9px; margin-top: 16px; color: #dcdce0; font-size: .85rem; font-weight: 500; }
.mii-foot .flag { box-shadow: none; }
.site-footer h4 { margin-bottom: 16px; color: #fff; font-family: "Inter", sans-serif; font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.site-footer .footer-grid a { display: block; margin-bottom: 11px; color: #a4a5aa; }
.site-footer .footer-grid a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .08); background: rgba(0, 0, 0, .2); }
.footer-bottom .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; padding-top: 18px; padding-bottom: 18px; font-size: .82rem; color: #8b8c91; }
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 6px 26px; }
.footer-bottom a { color: #8b8c91; }
.footer-bottom a:hover { color: #fff; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } .footer-bottom .container { flex-direction: column; align-items: flex-start; } }

/* ---------- 404 ---------- */
.notfound { text-align: center; padding: 120px 0; }
.notfound .code { font-family: "Montserrat", sans-serif; font-size: 5rem; font-weight: 700; line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Header logo large enough to read "TECHNOLOGIES" */
.brand img { height: 58px; }
@media (max-width: 900px) { .brand img { height: 48px; } }
.statement .eyebrow::before { display: none; }
.statement .eyebrow .icon { width: 18px; height: 18px; }

/* Products: single "visit GEARKITE" block */
.visit { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 40px; padding: 40px 44px; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.visit img { height: 30px; width: auto; margin-bottom: 16px; }
.visit h2 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); margin-bottom: 6px; }
.visit p { margin: 0; color: var(--muted); max-width: 34em; }
@media (max-width: 600px) { .visit { padding: 28px 22px; } }

/* ---------- Home: gearbox mosaic ---------- */
.mosaic {
  display: grid; width: 100%; height: 100%;
  grid-template-columns: 1.15fr 1fr 1fr; grid-template-rows: 1.15fr 1fr; gap: 12px;
}
.tile { position: relative; margin: 0; overflow: hidden; border-radius: 14px; background: #0b0d12; box-shadow: 0 18px 36px -24px rgba(23, 24, 27, .55); }
.tile.t-wide { grid-column: 1 / 3; }
.tile picture, .tile img { display: block; width: 100%; height: 100%; }
.tile img { object-fit: cover; transition: transform .6s ease; }
.tile:hover img { transform: scale(1.04); }
.tile::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); pointer-events: none; }
.home .hero-art { align-items: stretch; }
.mosaic .tile:nth-child(2) img { object-position: 62% 50%; }
.mosaic .tile:nth-child(5) img { object-position: 70% 55%; }
.mosaic .tile:nth-child(3) img, .mosaic .tile:nth-child(4) img { object-position: 45% 50%; }
@media (max-width: 900px) {
  .home .hero-art { display: block; height: auto; margin-top: 36px; }
  .home .mosaic { height: 330px; grid-template-columns: 1fr 1fr; grid-template-rows: 1.3fr 1fr; gap: 10px; }
  .home .mosaic .tile.t-wide { grid-column: 1 / 3; }
  .home .mosaic .tile:nth-child(n+4) { display: none; }
}

/* ---------- Home: gears image ---------- */
.home .hero-art { align-items: center; justify-content: center; }
.hero-gears { display: block; height: 100%; }
.hero-gears img { display: block; height: 100%; width: auto; max-width: 100%; object-fit: contain; margin: 0 auto; }
@media (max-width: 900px) {
  .home .hero-art { display: block; height: auto; margin-top: 28px; }
  .hero-gears img { height: auto; width: 100%; max-width: 420px; }
}

/* Gears image on every page's first section */
.hero-art { align-items: center; justify-content: center; }
.hero-art .hero-gears { height: 100%; }
.hero-art .hero-gears img { height: 100%; width: auto; max-width: 100%; object-fit: contain; }

/* CTA: meshing involute gear pair */
.cta-gear { right: -90px; width: 560px; opacity: .13; }
@media (max-width: 900px) { .cta-gear { width: 360px; right: -120px; opacity: .08; } }
.cta-gear { right: -20px; width: 400px; opacity: .16; }
@media (max-width: 1200px) { .cta-gear { right: -110px; } }
@media (max-width: 900px) { .cta-gear { width: 300px; right: -90px; opacity: .09; } }
@media (max-width: 1500px) { .cta-gear { width: 360px; right: -150px; } }
@media (max-width: 1100px) { .cta-gear { right: -190px; opacity: .1; } }
@media (max-width: 700px) { .cta-gear { display: none; } }

/* CTA: 20 x 76 involute pair, CAD outline style */
.cta-gear { top: 50%; right: auto; left: calc(50% + 330px); width: 900px; transform: translateY(-50%); opacity: .55; }
@media (max-width: 1500px) { .cta-gear { left: calc(50% + 380px); width: 820px; opacity: .45; } }
@media (max-width: 1100px) { .cta-gear { left: auto; right: -560px; opacity: .3; } }
@media (max-width: 700px) { .cta-gear { display: none; } }

/* CTA band v3: text + buttons on the left, involute gear drawing on the right half */
.cta { padding: 84px 0; }
.cta-inner { display: block; max-width: 1180px; }
.cta-inner > div:first-child { max-width: 540px; }
.cta-actions { margin-top: 28px; }
.cta-gear { top: 50%; left: calc(50% + 10px); right: auto; width: 720px; transform: translateY(-50%); opacity: .6; }
@media (min-width: 1400px) { .cta-gear { left: calc(50% + 60px); } }
@media (max-width: 1100px) { .cta-gear { left: calc(50% + 40px); width: 620px; opacity: .45; } }
@media (max-width: 760px) { .cta-gear { display: none; } }
.cta-inner > div:first-child { max-width: 600px; }

/* CTA band: back to the original layout and single gear */
.cta { padding: 76px 0; }
.cta .cta-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 30px; }
.cta .cta-inner > div:first-child { max-width: none; }
.cta .cta-actions { margin-top: 0; }
.cta svg.cta-gear { display: block; position: absolute; top: 50%; left: auto; right: -80px; width: 360px; transform: translateY(-50%); opacity: .14; }
.cta svg.cta-gear { right: -170px; }
/* gear starts just right of the email button (content edge = 50% + 566px) */
.cta svg.cta-gear { right: auto; left: calc(50% + 590px); }
@media (max-width: 1230px) { .cta svg.cta-gear { left: auto; right: -250px; opacity: .1; } }

/* ---------- One first-section size on every page (Home included) ---------- */
.home .hero { --hero-box: clamp(292px, 40vh, 340px); }
@media (min-width: 901px) { .home .hero h1 { font-size: clamp(1.9rem, min(3.8vw, 6vh), 3.2rem); } }
.eyebrow-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-bottom: 14px; }
.eyebrow-row .eyebrow { margin-bottom: 0; }
.eyebrow-row .mii { margin: -6px 0; }
@media (max-width: 900px) { .home .hero-art { display: none; } }
.hero .eyebrow-row { margin-top: 6px; }

/* ---------- Faint line sketch of the gear pair behind the first-section image ---------- */
.hero {
  background-color: var(--bg-soft);
  background-image: url("../img/gears-sketch.webp");
  background-repeat: no-repeat;
  background-size: auto 150%;
  background-position: calc(50% + 330px) 38%;
}
@media (min-width: 1600px) { .hero { background-position: calc(50% + 360px) 38%; } }
@media (max-width: 900px) { .hero { background-image: none; } }
@media (min-width: 1600px) { .hero { background-position: calc(50% + 460px) 38%; } }
/* background sketch centred in the section */
.hero, .home .hero { background-position: 50% 40%; }
@media (min-width: 1600px) { .hero { background-position: 50% 40%; } }
/* back to the right-hand position (fallback); main.js then aligns the sketch's small gear
   exactly on the small gear of the photo */
.hero, .home .hero { background-position: calc(50% + 330px) 38%; }
@media (min-width: 1600px) { .hero { background-position: calc(50% + 460px) 38%; } }

/* ---------- Mobile refinements ---------- */
.footer-grid { padding-left: 24px; padding-right: 24px; }          /* footer kept its side margins only on wide screens */
@media (max-width: 900px) {
  .home .hero-art { display: flex; height: auto; margin-top: 34px; }  /* show the gear photo on the home page */
  .home .hero-art .hero-gears img { height: auto; width: 100%; max-width: 360px; }
}
@media (max-width: 620px) {
  .section { padding: 68px 0; }
  .section-head { margin-bottom: 36px; }
  .section-head.row { flex-direction: column; align-items: flex-start; gap: 14px; }
  .hero-actions .btn, .cta-actions .btn { width: 100%; justify-content: center; }
  input, select, textarea { font-size: 16px; }                     /* stops iPhone zooming into the form */
  .footer-grid { padding-top: 52px; padding-bottom: 40px; }
}

/* ---------- CTA band: light grey, logo-gradient button ---------- */
.cta { background: #ececea; color: var(--text); }
.cta h2 { color: var(--ink); }
.cta svg.cta-gear path { fill: var(--dark); }
.cta svg.cta-gear { opacity: .06; }
.btn-orange { background: linear-gradient(100deg, var(--yellow) 0%, #fbab18 45%, var(--orange) 100%); border-color: transparent; color: var(--ink); box-shadow: 0 6px 16px -8px rgba(242, 107, 33, .7); }
.btn-orange:hover { background: linear-gradient(100deg, #ffdd33 0%, #fdb52e 45%, #ff7d33 100%); color: var(--ink); }
.cta .btn-ghost { border-color: rgba(23, 24, 27, .3); color: var(--ink); }
.cta .btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn-orange, .btn-orange:hover { background-origin: border-box; }
.app-shot { border-radius: 12px; }
