/* =====================================================================
   3S — Stylesheet
   Industrial-strength software studio. Bold, professional, confident.
   ===================================================================== */

:root {
  --threes-bg: #ffffff;
  --threes-bg-2: #f6f6f7;
  --threes-bg-3: #ececee;
  --threes-bg-dark: #0a0a0a;
  --threes-bg-dark-2: #111114;
  --threes-bg-dark-3: #16161a;
  --threes-line: #e3e3e6;
  --threes-line-2: #d2d2d7;
  --threes-line-dark: #25252c;

  --threes-text: #0a0a0a;
  --threes-text-2: #2a2a2e;
  --threes-text-muted: #5e5e66;
  --threes-text-faint: #888892;
  --threes-text-light: #f5f5f7;
  --threes-text-light-muted: #b3b3bb;

  --threes-red: #d62828;
  --threes-red-2: #f33d3d;
  --threes-red-soft: rgba(214, 40, 40, 0.10);
  --threes-glow: rgba(214, 40, 40, 0.28);

  --threes-radius: 14px;
  --threes-radius-lg: 22px;

  --font-display: "Space Grotesk", "Inter", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }

/* Honeypot field — visually removed, still reachable by bots/screen readers */
.hp-field {
  position: absolute !important;
  left: -5000px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
body.threes-body {
  font-family: var(--font-body);
  background: var(--threes-bg);
  color: var(--threes-text);
  line-height: 1.65;
  font-weight: 400;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
::selection { background: var(--threes-red); color: #fff; }

a { color: var(--threes-text); text-decoration: none; transition: color .25s ease; }
a:hover { color: var(--threes-red); }
.inline-link { color: var(--threes-red); border-bottom: 1px dashed currentColor; }
.inline-link:hover { color: var(--threes-red-2); border-bottom-style: solid; }

img { max-width: 100%; height: auto; }

.text-muted { color: var(--threes-text-muted) !important; }
.text-muted-light { color: var(--threes-text-light-muted) !important; }
.text-muted-2 { color: var(--threes-text-faint) !important; }

/* ---------- Navigation ---------- */
.threes-nav {
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border-bottom: 1px solid transparent;
  padding-top: .85rem; padding-bottom: .85rem;
  transition: background .3s ease, border-color .3s ease, padding .3s ease, box-shadow .3s ease;
  z-index: 10;
}
.threes-nav.scrolled {
  background: rgba(255, 255, 255, 0.94);
  border-bottom-color: var(--threes-line);
  padding-top: .55rem; padding-bottom: .55rem;
  box-shadow: 0 6px 30px -20px rgba(0,0,0,0.18);
}
.threes-nav .navbar-brand { color: var(--threes-text); }
.threes-nav .brand-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: -.01em;
  color: var(--threes-text);
}
.threes-nav .brand-sub {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--threes-text-faint);
  border-left: 1px solid var(--threes-line);
  padding-left: .8rem;
}
.threes-nav .nav-link {
  color: var(--threes-text-muted);
  font-weight: 500;
  letter-spacing: .005em;
  font-size: .95rem;
  padding: .5rem .8rem !important;
  position: relative;
}
.threes-nav .nav-link::after {
  content: ""; position: absolute;
  left: .8rem; right: .8rem; bottom: .25rem;
  height: 2px; background: var(--threes-red);
  transform: scaleX(0); transform-origin: left; transition: transform .3s ease;
}
.threes-nav .nav-link:hover,
.threes-nav .nav-link.active { color: var(--threes-text); }
.threes-nav .nav-link:hover::after,
.threes-nav .nav-link.active::after { transform: scaleX(1); }

.navbar-toggler:focus { box-shadow: none; }
.threes-nav .navbar-toggler { color: var(--threes-text); }
.threes-nav .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2810,10,10,0.85%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ---------- Buttons ---------- */
.threes-btn-primary, .threes-btn-ghost, .threes-btn-outline {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px; padding: .8rem 1.5rem;
  font-weight: 600;
  font-size: .95rem;
  border: 1px solid transparent;
  font-family: var(--font-body);
  transition: transform .2s ease, background .2s ease, color .2s ease, box-shadow .25s ease, border-color .2s ease;
}
.threes-btn-primary {
  background: var(--threes-red);
  color: #fff;
  box-shadow: 0 12px 30px -10px var(--threes-glow);
}
.threes-btn-primary:hover {
  background: var(--threes-red-2);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 18px 36px -10px var(--threes-glow);
}
.threes-btn-ghost {
  background: transparent;
  border-color: var(--threes-line-2);
  color: var(--threes-text);
}
.threes-btn-ghost:hover {
  background: var(--threes-bg-3);
  border-color: var(--threes-text);
  color: var(--threes-text);
  transform: translateY(-2px);
}
.threes-btn-outline {
  background: transparent;
  border-color: var(--threes-line-2) !important;
  color: var(--threes-text-muted) !important;
}
.threes-btn-outline:hover {
  background: var(--threes-text);
  border-color: var(--threes-text) !important;
  color: #fff !important;
}

/* ---------- Hero ---------- */
.threes-hero {
  position: relative;
  padding: 9rem 0 5rem;
  background: linear-gradient(180deg, #fff 0%, #f8f8fa 100%);
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(transparent 95%, rgba(10,10,10,0.05) 95%),
    linear-gradient(90deg, transparent 95%, rgba(10,10,10,0.05) 95%);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 0%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 0%, transparent 80%);
}
.hero-glow {
  position: absolute; right: -10%; top: -20%;
  width: 60%; height: 90%;
  background: radial-gradient(circle, rgba(214,40,40,0.18), transparent 60%);
  filter: blur(40px);
}

.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--font-mono);
  font-size: .78rem;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--threes-text-muted);
  margin-bottom: 1.25rem;
}
.eyebrow-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--threes-red);
  box-shadow: 0 0 0 4px rgba(214,40,40,0.2);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(214,40,40,0.2); }
  50% { box-shadow: 0 0 0 7px rgba(214,40,40,0.05); }
}
.eyebrow--inverse { color: var(--threes-text-light-muted); }

.hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.4rem, 6vw, 5.4rem);
  line-height: 1.02;
  letter-spacing: -.02em;
  color: var(--threes-text);
  margin: 0;
}
.accent-word {
  color: var(--threes-red);
  position: relative;
  display: inline-block;
}
.accent-word::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -.05em;
  height: .12em;
  background: var(--threes-red);
  opacity: .25;
  border-radius: 4px;
}

.hero-sub {
  max-width: 60ch;
  font-size: clamp(1rem, 1.15vw, 1.18rem);
  color: var(--threes-text-muted);
  font-weight: 400;
}
.hero-sub strong { color: var(--threes-text); font-weight: 600; }

.hero-meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  padding-top: 2rem;
  border-top: 1px solid var(--threes-line);
}
.hero-meta-item { display: flex; flex-direction: column; }
.hero-meta-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--threes-text);
}
.hero-meta-label {
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--threes-text-faint);
  margin-top: .15rem;
}

/* Hero stack mockups */
.hero-stack { position: relative; height: 540px; }
.hero-card {
  position: absolute;
  width: 320px;
  background: #fff;
  border: 1px solid var(--threes-line);
  border-radius: var(--threes-radius);
  box-shadow:
    0 10px 30px -10px rgba(0,0,0,0.12),
    0 30px 60px -30px rgba(0,0,0,0.18);
  overflow: hidden;
  transition: transform .35s ease;
}
.hero-card:hover { transform: translateY(-6px); }
.hero-card-bar {
  display: flex; align-items: center; gap: .35rem;
  padding: .6rem .8rem;
  border-bottom: 1px solid var(--threes-line);
  background: var(--threes-bg-2);
}
.hero-card-bar span {
  width: 10px; height: 10px; border-radius: 50%; background: var(--threes-line-2);
}
.hero-card-bar span:first-child { background: var(--threes-red); }
.hero-card-body { padding: 1rem 1.1rem 1.2rem; }
.hc-tag {
  font-family: var(--font-mono);
  font-size: .65rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--threes-red);
  margin: 0 0 .35rem;
}
.hc-line {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  margin: 0 0 .75rem;
}
.hc-list { list-style: none; padding: 0; margin: 0; font-size: .85rem; color: var(--threes-text-muted); }
.hc-list li { padding: .35rem 0; border-top: 1px dashed var(--threes-line); display: flex; align-items: center; gap: .5rem; }
.hc-list li:first-child { border-top: none; }
.hc-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--threes-line-2); flex-shrink: 0; }
.hc-dot.ok { background: #22c55e; }
.hc-dot.warn { background: #f59e0b; }

.hero-card--mobile { top: 10px; right: 30px; width: 260px; }
.hero-card--system { top: 180px; left: 0; }
.hero-card--web { top: 360px; right: 10px; width: 290px; }

.hc-stat { display: flex; align-items: baseline; gap: .5rem; }
.hc-stat-num {
  font-family: var(--font-display);
  font-weight: 700; font-size: 1.6rem;
  color: var(--threes-text);
}
.hc-stat-label { font-size: .8rem; color: var(--threes-text-muted); }
.hc-spark {
  display: flex; align-items: flex-end;
  gap: 4px;
  height: 36px;
  margin-top: .8rem;
}
.hc-spark i {
  flex: 1;
  background: var(--threes-red);
  border-radius: 2px;
  opacity: .8;
  display: block;
}
.hc-spark i:nth-child(1) { height: 30%; }
.hc-spark i:nth-child(2) { height: 50%; }
.hc-spark i:nth-child(3) { height: 40%; }
.hc-spark i:nth-child(4) { height: 65%; }
.hc-spark i:nth-child(5) { height: 55%; }
.hc-spark i:nth-child(6) { height: 80%; }
.hc-spark i:nth-child(7) { height: 70%; }
.hc-spark i:nth-child(8) { height: 90%; }
.hc-spark i:nth-child(9) { height: 75%; }
.hc-spark i:nth-child(10) { height: 95%; }
.hc-spark i:nth-child(11) { height: 85%; }
.hc-spark i:nth-child(12) { height: 100%; }

/* ---------- Trust bar ---------- */
.trust-bar {
  border-top: 1px solid var(--threes-line);
  border-bottom: 1px solid var(--threes-line);
  padding: 1.25rem 0;
  background: #fff;
}
.trust-row {
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: center; gap: 1.4rem 2rem;
}
.trust-label {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--threes-text-faint);
  white-space: nowrap;
}
.trust-item {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: .95rem;
  color: var(--threes-text-2);
  white-space: nowrap;
}
.trust-item i {
  color: var(--threes-red);
  font-size: 1rem;
}

/* ---------- Section scaffolding ---------- */
.section-pad { padding-top: 7rem; padding-bottom: 7rem; }
.section-light { background: var(--threes-bg-2); border-top: 1px solid var(--threes-line); border-bottom: 1px solid var(--threes-line); }
.section-dark {
  background: var(--threes-bg-dark);
  color: var(--threes-text-light);
  border-top: 1px solid var(--threes-line-dark);
  border-bottom: 1px solid var(--threes-line-dark);
}

.section-label {
  font-family: var(--font-mono);
  font-size: .76rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--threes-red);
  margin-bottom: 1rem;
}
.section-label--light { color: var(--threes-red-2); }

.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -.02em;
  color: var(--threes-text);
  margin: 0;
}
.section-title--light { color: var(--threes-text-light); }

.lead { font-size: 1.06rem; color: var(--threes-text-muted); margin-bottom: 1rem; font-weight: 400; }
.section-dark .lead { color: var(--threes-text-light-muted); }

/* ---------- About / value cards ---------- */
.value-card {
  height: 100%;
  padding: 1.25rem 1.25rem 1rem;
  background: var(--threes-bg);
  border: 1px solid var(--threes-line);
  border-radius: var(--threes-radius);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.value-card:hover {
  transform: translateY(-3px);
  border-color: var(--threes-text);
  box-shadow: 0 20px 40px -20px rgba(0,0,0,0.12);
}
.value-card i {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px;
  border-radius: 10px;
  background: var(--threes-red-soft);
  color: var(--threes-red);
  font-size: 1.05rem;
  margin-bottom: .85rem;
}
.value-card h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  margin-bottom: .35rem;
}
.value-card p {
  font-size: .9rem;
  color: var(--threes-text-muted);
  margin: 0;
}

/* ---------- Solution cards ---------- */
.solution-card {
  position: relative;
  display: block;
  height: 100%;
  padding: 1.75rem 1.5rem 1.5rem;
  background: var(--threes-bg-dark-2);
  border: 1px solid var(--threes-line-dark);
  border-radius: var(--threes-radius-lg);
  transition: transform .35s ease, border-color .35s ease, background .35s ease;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
}
.solution-card--link:hover { color: inherit; text-decoration: none; }
.solution-card--link:hover .solution-link { color: #fff; }
.solution-card::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 100% 0%, rgba(214,40,40,0.10), transparent 60%);
  opacity: 0; transition: opacity .35s ease; pointer-events: none;
}
.solution-card:hover {
  transform: translateY(-4px);
  border-color: var(--threes-red);
  background: var(--threes-bg-dark-3);
}
.solution-card:hover::before { opacity: 1; }
.solution-card--accent { border-color: rgba(214,40,40,0.4); }
.solution-num {
  position: absolute; top: 1.25rem; right: 1.5rem;
  font-family: var(--font-mono);
  font-size: .8rem;
  letter-spacing: .2em;
  color: var(--threes-text-faint);
}
.solution-icon {
  width: 50px; height: 50px;
  border-radius: 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--threes-line-dark);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  color: var(--threes-red-2);
  margin-bottom: 1.1rem;
}
.solution-card h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.4rem;
  color: var(--threes-text-light);
  margin-bottom: .65rem;
}
.solution-card p {
  font-size: .96rem;
  color: var(--threes-text-light-muted);
  margin-bottom: 1rem;
}
.solution-card ul {
  list-style: none; padding: 0; margin: 0;
  font-size: .9rem;
  color: var(--threes-text-light-muted);
}
.solution-card ul li {
  padding: .35rem 0;
  border-top: 1px dashed var(--threes-line-dark);
  position: relative;
  padding-left: 1.1rem;
}
.solution-card ul li::before {
  content: "";
  position: absolute;
  left: 0; top: 1.05rem;
  width: 6px; height: 6px;
  background: var(--threes-red);
  border-radius: 50%;
}
.solution-card ul li:first-child { border-top: none; }
.solution-card ul li:first-child::before { top: .7rem; }
.solution-link {
  display: inline-block;
  margin-top: 1rem;
  font-family: var(--font-mono);
  font-size: .82rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--threes-red-2);
}
.solution-link:hover { color: #fff; }

/* ---------- Industries grid ---------- */
.industry-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
.industry-tile {
  padding: 1.4rem 1.25rem;
  background: var(--threes-bg);
  border: 1px solid var(--threes-line);
  border-radius: var(--threes-radius);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.industry-tile:hover {
  transform: translateY(-3px);
  border-color: var(--threes-red);
  box-shadow: 0 18px 40px -20px rgba(214,40,40,0.18);
}
.industry-tile i {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px;
  border-radius: 10px;
  background: var(--threes-red-soft);
  color: var(--threes-red);
  font-size: 1.1rem;
  margin-bottom: .85rem;
}
.industry-tile h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  margin-bottom: .3rem;
}
.industry-tile p {
  font-size: .88rem;
  color: var(--threes-text-muted);
  margin: 0;
}
.industry-footnote { font-size: .95rem; color: var(--threes-text-muted); }
@media (max-width: 991.98px) {
  .industry-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 575.98px) {
  .industry-grid { grid-template-columns: 1fr; }
}

/* ---------- Project cards ---------- */
.project-card {
  display: block;
  height: 100%;
  background: var(--threes-bg);
  border: 1px solid var(--threes-line);
  border-radius: var(--threes-radius-lg);
  overflow: hidden;
  transition: transform .35s ease, border-color .35s ease, box-shadow .35s ease;
}
.project-card:hover {
  transform: translateY(-4px);
  border-color: var(--threes-red);
  box-shadow: 0 25px 50px -25px rgba(214,40,40,0.22);
}
.project-card--feature .project-art {
  position: relative;
  aspect-ratio: 16 / 8;
  border-bottom: 1px solid var(--threes-line);
  overflow: hidden;
}
.project-tag {
  position: absolute; top: 1rem; left: 1rem;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  background: rgba(10,10,10,0.85);
  color: #fff;
  padding: .35rem .7rem;
  border-radius: 999px;
}
.project-card--small .project-tag {
  position: static; display: inline-block; margin-bottom: .85rem;
  background: var(--threes-red-soft); color: var(--threes-red);
}

.project-art--cattle {
  background:
    linear-gradient(180deg, #f0fce8 0%, #e1f4d3 100%);
}
.project-art--cattle .paddock {
  position: absolute; inset: 0;
  display: flex; align-items: flex-end; justify-content: space-around;
  padding: 0 1.5rem 1.2rem;
}
.project-art--cattle .cow {
  font-size: 2.4rem;
  color: #2c3e2d;
  text-shadow: 0 6px 12px rgba(0,0,0,0.15);
}
.project-art--cattle::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 18%;
  background: linear-gradient(180deg, transparent, rgba(40,80,40,0.18));
}
.project-art--cattle::before {
  content: ""; position: absolute; right: -10%; top: -20%;
  width: 60%; height: 90%;
  background: radial-gradient(circle, rgba(255,236,150,0.5), transparent 60%);
}

.project-art--qr { background: linear-gradient(135deg, #0a0a0a, #2a2a2e); }
.qr-grid {
  position: absolute; inset: 0;
  display: grid; grid-template-columns: repeat(7, 1fr); grid-template-rows: repeat(4, 1fr);
  padding: 1.2rem;
  gap: 4px;
}
.qr-grid span { background: rgba(255,255,255,0.08); border-radius: 2px; }
.qr-grid span:nth-child(2n) { background: rgba(255,255,255,0.18); }
.qr-grid span:nth-child(5n) { background: var(--threes-red); }
.qr-grid span:nth-child(7n) { background: rgba(255,255,255,0.04); }

.project-body { padding: 1.5rem; }
.project-card h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.4rem;
  margin-bottom: .5rem;
}
.project-card p {
  color: var(--threes-text-muted);
  font-size: .95rem;
  margin-bottom: 1rem;
}
.project-cta {
  font-family: var(--font-mono);
  font-size: .8rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--threes-red);
}
.project-card--small {
  padding: 1.5rem;
}

/* ---------- Approach list ---------- */
.approach-list {
  list-style: none; padding: 0;
  border-top: 1px solid var(--threes-line);
}
.approach-list > li {
  border-bottom: 1px solid var(--threes-line);
  padding: 1.5rem 0;
  transition: background .25s ease, padding .25s ease;
}
.approach-list > li:hover { background: var(--threes-bg-2); padding-left: 1rem; padding-right: 1rem; }
.approach-step { display: flex; gap: 1.5rem; align-items: flex-start; }
.approach-num {
  flex-shrink: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--threes-red);
  min-width: 60px;
  font-variant-numeric: tabular-nums;
}
.approach-step h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.35rem;
  margin: 0 0 .35rem;
}
.approach-step p {
  color: var(--threes-text-muted);
  font-size: 1rem;
  margin: 0;
  max-width: 70ch;
}

/* ---------- CTA strip ---------- */
.cta-strip { padding: 3rem 0 1rem; }
.cta-card {
  display: block;
  background: var(--threes-bg-dark);
  color: var(--threes-text-light);
  padding: 2.5rem;
  border-radius: var(--threes-radius-lg);
  position: relative;
  overflow: hidden;
  text-decoration: none;
  transition: transform .25s ease, box-shadow .25s ease;
}
.cta-card--link:hover {
  color: var(--threes-text-light);
  text-decoration: none;
  transform: translateY(-3px);
  box-shadow: 0 30px 60px -25px rgba(214,40,40,0.35);
}
.cta-card--link:hover .threes-btn-primary {
  background: var(--threes-red-2);
  box-shadow: 0 18px 36px -10px var(--threes-glow);
}
.cta-card::before {
  content: ""; position: absolute; right: -10%; top: -50%;
  width: 60%; height: 200%;
  background: radial-gradient(circle, rgba(214,40,40,0.25), transparent 60%);
  filter: blur(40px);
}
.cta-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  line-height: 1.2;
  margin: 0;
  position: relative;
  color: var(--threes-text-light);
}

/* ---------- Contact ---------- */
.section-contact {
  background:
    radial-gradient(ellipse at 90% 0%, rgba(214,40,40,0.08), transparent 50%),
    var(--threes-bg);
}
.contact-list {
  list-style: none; padding: 0; margin: 0;
  font-size: 1.02rem;
}
.contact-list li {
  display: flex; align-items: center; gap: .85rem;
  padding: .65rem 0;
  border-bottom: 1px solid var(--threes-line);
}
.contact-list li:last-child { border-bottom: none; }
.contact-list i {
  width: 38px; height: 38px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--threes-red-soft);
  border-radius: 10px;
  color: var(--threes-red);
}
.contact-list a { color: var(--threes-text); }
.contact-list a:hover { color: var(--threes-red); }

.hours { padding: 1.25rem; border: 1px solid var(--threes-line); border-radius: var(--threes-radius); background: var(--threes-bg-2); }
.hours-label {
  font-family: var(--font-mono);
  font-size: .72rem; letter-spacing: .25em; text-transform: uppercase;
  color: var(--threes-text-faint);
  margin-bottom: .5rem;
}
.hours-list { list-style: none; padding: 0; margin: 0; font-size: .92rem; }
.hours-list li {
  display: flex; justify-content: space-between;
  padding: .35rem 0;
  border-top: 1px dashed var(--threes-line);
}
.hours-list li:first-child { border-top: none; }
.hours-list li span:last-child { color: var(--threes-text-muted); font-family: var(--font-mono); font-size: .82rem; }

.contact-form {
  background: var(--threes-bg);
  border: 1px solid var(--threes-line);
  border-radius: var(--threes-radius-lg);
  padding: 1.75rem;
  box-shadow: 0 30px 60px -30px rgba(0,0,0,0.10);
}
.form-label {
  font-family: var(--font-mono);
  font-size: .72rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--threes-text-faint);
  margin-bottom: .35rem;
}
.threes-input {
  background: var(--threes-bg) !important;
  border: 1px solid var(--threes-line-2) !important;
  color: var(--threes-text) !important;
  padding: .85rem 1rem;
  border-radius: 10px;
  transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}
.threes-input:focus {
  background: var(--threes-bg) !important;
  border-color: var(--threes-red) !important;
  box-shadow: 0 0 0 .2rem rgba(214,40,40,0.16) !important;
  color: var(--threes-text) !important;
}
.form-note { font-size: .82rem; color: var(--threes-text-faint); }
.form-note a { color: var(--threes-red); }
.form-status {
  margin-top: 1rem;
  font-family: var(--font-mono);
  font-size: .85rem;
  text-align: center;
  min-height: 1.2rem;
}
.form-status.success { color: #22c55e; }
.form-status.error { color: var(--threes-red); }

/* ---------- Footer ---------- */
.threes-footer {
  background: var(--threes-bg-dark);
  color: var(--threes-text-light-muted);
  padding: 4.5rem 0 2rem;
  border-top: 1px solid var(--threes-line-dark);
}
.threes-footer .brand-text {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--threes-text-light);
  font-size: 1.6rem;
  letter-spacing: -.01em;
}
.threes-footer .brand-text.small { font-size: .95rem; letter-spacing: 0; }
.threes-footer a { color: var(--threes-text-light-muted); }
.threes-footer a:hover { color: var(--threes-red-2); }
.footer-blurb {
  color: var(--threes-text-light-muted);
  font-size: .94rem;
  max-width: 40ch;
}
.footer-heading {
  font-family: var(--font-mono);
  font-size: .7rem; letter-spacing: .25em; text-transform: uppercase;
  color: var(--threes-text-faint);
  margin-bottom: .9rem;
}
.footer-list { list-style: none; padding: 0; margin: 0; }
.footer-list li { padding: .25rem 0; }
.footer-list a { font-size: .94rem; }
.footer-rule { border-color: var(--threes-line-dark); margin: 2.5rem 0 1.25rem; }
.footer-copy { color: var(--threes-text-faint); font-size: .85rem; }
.footer-legal { font-size: .85rem; color: var(--threes-text-light-muted); }
.footer-legal:hover { color: var(--threes-red-2); }

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed; bottom: 1.5rem; right: 1.5rem;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--threes-red);
  border: none; color: #fff;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  opacity: 0; transform: translateY(20px); pointer-events: none;
  transition: opacity .25s ease, transform .25s ease, background .2s ease;
  z-index: 9;
  box-shadow: 0 12px 30px -10px var(--threes-glow);
}
.back-to-top.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.back-to-top:hover { background: var(--threes-red-2); }

/* ---------- Generated image placements ---------- */

/* Trust bar background image */
.trust-bar { position: relative; overflow: hidden; }
.trust-bar .container { position: relative; z-index: 1; }
.trust-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.10;
  z-index: 0;
  pointer-events: none;
  filter: grayscale(0.2);
}

/* About supporting image (next to about heading) */
.about-supporting {
  position: relative;
  margin-top: 2rem;
  border-radius: var(--threes-radius);
  overflow: hidden;
  border: 1px solid var(--threes-line);
  box-shadow: 0 30px 60px -30px rgba(0,0,0,0.10);
}
.about-supporting img { width: 100%; height: auto; display: block; }

/* Industry tile per-tile background images */
.industry-tile { position: relative; overflow: hidden; isolation: isolate; }
.industry-tile::before {
  content: ""; position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0.10;
  z-index: -1;
  transition: opacity .25s ease;
  border-radius: inherit;
}
.industry-tile:hover::before { opacity: 0.18; }
.industry-grid > .industry-tile:nth-child(1)::before { background-image: url('../img/gen-20.png'); }
.industry-grid > .industry-tile:nth-child(2)::before { background-image: url('../img/gen-21.png'); }
.industry-grid > .industry-tile:nth-child(3)::before { background-image: url('../img/gen-22.png'); }
.industry-grid > .industry-tile:nth-child(4)::before { background-image: url('../img/gen-23.png'); }
.industry-grid > .industry-tile:nth-child(5)::before { background-image: url('../img/gen-24.png'); }
.industry-grid > .industry-tile:nth-child(6)::before { background-image: url('../img/gen-25.png'); }
.industry-grid > .industry-tile:nth-child(7)::before { background-image: url('../img/gen-26.png'); }
.industry-grid > .industry-tile:nth-child(8)::before { background-image: url('../img/gen-27.png'); }

/* Project card photographs */
.project-art-img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

/* CTA strip background image */
.cta-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.30;
  z-index: 0;
  pointer-events: none;
  border-radius: inherit;
}
.cta-card .row { position: relative; z-index: 1; }

/* Footer background image */
.threes-footer { position: relative; overflow: hidden; }
.threes-footer .container { position: relative; z-index: 1; }
.footer-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.06;
  z-index: 0;
  pointer-events: none;
}

/* ---------- Responsive tweaks ---------- */
@media (max-width: 1199.98px) {
  .hero-stack { transform: scale(.9); transform-origin: top right; }
}
@media (max-width: 991.98px) {
  .threes-nav { background: rgba(255,255,255,0.96); }
  .threes-nav .navbar-collapse {
    border-top: 1px solid var(--threes-line);
    margin-top: .75rem; padding-top: .75rem;
  }
  .threes-nav .nav-link { padding: .6rem 0 !important; }
  .threes-nav .nav-link::after { display: none; }
  .threes-nav .brand-sub { display: none !important; }

  .section-pad { padding-top: 5rem; padding-bottom: 5rem; }
  .threes-hero { padding: 7rem 0 3rem; }
  .hero-meta { grid-template-columns: repeat(2, 1fr); }
  .approach-step { flex-direction: column; gap: .5rem; }
  .approach-num { font-size: 1.3rem; min-width: auto; }
  .cta-card { padding: 1.75rem; }
}

@media (max-width: 575.98px) {
  .hero-title { font-size: clamp(2rem, 10vw, 2.8rem); }
  .section-title { font-size: clamp(1.7rem, 8vw, 2.2rem); }
  .contact-form { padding: 1.25rem; }
  .trust-row { gap: 1rem 1.25rem; }
  .trust-label { width: 100%; text-align: center; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}

/* ---------- Cookie consent banner ---------- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 1080;
  padding: 1rem;
  transform: translateY(115%);
  transition: transform .45s cubic-bezier(.16, 1, .3, 1);
  pointer-events: none;
}
.cookie-banner.visible { transform: translateY(0); pointer-events: auto; }
.cookie-banner-inner {
  max-width: 1000px;
  margin: 0 auto;
  background: #ffffff;
  border: 1px solid var(--threes-line);
  border-radius: var(--threes-radius-lg);
  padding: 1.5rem;
  box-shadow: 0 -10px 60px -15px rgba(0, 0, 0, 0.22);
}
.cookie-banner-header {
  display: flex; align-items: center; gap: .6rem;
  margin-bottom: .55rem;
}
.cookie-banner-header i { color: var(--threes-red); font-size: 1.1rem; }
.cookie-banner-header h3 {
  font-family: var(--font-display);
  font-weight: 700; font-size: 1.15rem;
  margin: 0; color: var(--threes-text);
  letter-spacing: -.01em;
}
.cookie-banner-text p {
  color: var(--threes-text-muted);
  font-size: .92rem;
  margin: 0 0 .4rem;
}
.cookie-link-text { font-size: .86rem; }
.cookie-link-text a { color: var(--threes-red); }
.cookie-link-text a:hover { color: var(--threes-red-2); }
.cookie-options {
  margin: 1rem 0 .25rem;
  border-top: 1px solid var(--threes-line);
}
.cookie-option {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: .85rem 0;
  border-bottom: 1px dashed var(--threes-line);
}
.cookie-option:last-child { border-bottom: none; }
.cookie-option-info strong { display: block; font-size: .95rem; color: var(--threes-text); }
.cookie-option-info p {
  font-size: .82rem; color: var(--threes-text-faint);
  margin: .15rem 0 0;
}
.cookie-toggle { flex-shrink: 0; }
.cookie-toggle input[type="checkbox"] {
  position: absolute; opacity: 0; width: 1px; height: 1px;
}
.toggle-label { display: inline-flex; cursor: pointer; }
.toggle-locked {
  font-family: var(--font-mono);
  font-size: .66rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--threes-text-faint); cursor: default;
}
.toggle-switch {
  width: 46px; height: 26px; border-radius: 999px;
  background: var(--threes-line-2);
  position: relative; transition: background .2s ease;
}
.toggle-switch::after {
  content: ""; position: absolute; top: 3px; left: 3px;
  width: 20px; height: 20px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  transition: transform .2s ease;
}
.cookie-toggle input:checked + .toggle-label .toggle-switch { background: var(--threes-red); }
.cookie-toggle input:checked + .toggle-label .toggle-switch::after { transform: translateX(20px); }
.cookie-toggle input:focus-visible + .toggle-label .toggle-switch {
  outline: 2px solid var(--threes-red); outline-offset: 2px;
}
.cookie-banner-actions {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: .6rem; margin-top: 1.1rem;
}
.cookie-btn {
  border-radius: 999px;
  padding: .6rem 1.25rem;
  font-family: var(--font-body);
  font-weight: 600; font-size: .85rem;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.cookie-btn-accept {
  background: var(--threes-red);
  color: #fff; margin-left: auto;
  box-shadow: 0 10px 24px -10px var(--threes-glow);
}
.cookie-btn-accept:hover { transform: translateY(-2px); background: var(--threes-red-2); color: #fff; }
.cookie-btn-reject {
  background: transparent;
  border-color: var(--threes-line-2);
  color: var(--threes-text);
}
.cookie-btn-reject:hover { border-color: var(--threes-text); }
.cookie-btn-manage, .cookie-btn-save {
  background: var(--threes-bg-3);
  color: var(--threes-text);
}
.cookie-btn-manage:hover, .cookie-btn-save:hover { background: var(--threes-line-2); }
.cookie-settings-btn {
  position: fixed; left: 1.25rem; bottom: 1.25rem;
  z-index: 1070;
  width: 46px; height: 46px; border-radius: 50%;
  background: #ffffff;
  border: 1px solid var(--threes-line-2);
  color: var(--threes-red);
  cursor: pointer;
  align-items: center; justify-content: center;
  box-shadow: 0 12px 30px -12px rgba(0, 0, 0, 0.25);
  transition: border-color .2s ease, transform .2s ease;
}
.cookie-settings-btn:hover { border-color: var(--threes-red); transform: translateY(-2px); }
@media (max-width: 575.98px) {
  .cookie-banner-inner { padding: 1.15rem; }
  .cookie-banner-actions .cookie-btn { flex: 1 1 100%; }
  .cookie-btn-accept { margin-left: 0; }
}
