/* Rich content layouts — articles, projects, forms, homepage */
.prose { max-width: 820px; }
.prose--wide { max-width: 960px; }
.prose-lead {
  font-size: 1.15rem;
  line-height: 1.75;
  color: var(--text);
  margin-bottom: 28px;
  font-weight: 500;
}
.prose h2 {
  font-family: var(--font-heading);
  font-size: 1.65rem;
  color: var(--navy);
  margin: 40px 0 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--red);
}
.prose h3 {
  font-size: 1.2rem;
  color: var(--navy);
  margin: 28px 0 12px;
}
.prose p { color: var(--text-muted); margin-bottom: 16px; line-height: 1.75; }
.prose ul, .prose ol { margin: 0 0 20px 24px; color: var(--text-muted); }
.prose li { margin-bottom: 8px; line-height: 1.65; }
.prose strong { color: var(--text); }

.figure { margin: 32px 0; }
.figure img {
  width: 100%;
  border-radius: 4px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.1);
}
.figure figcaption {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 10px;
  font-style: italic;
}
.figure-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 32px 0;
}
.figure-row img {
  width: 100%;
  border-radius: 4px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

.callout {
  background: var(--grey-section);
  border-left: 4px solid var(--red);
  padding: 24px 28px;
  margin: 32px 0;
}
.callout h3 { margin-top: 0; color: var(--navy); }
.callout p:last-child { margin-bottom: 0; }

.spec-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0 32px;
  font-size: 14px;
}
.spec-table th,
.spec-table td {
  border: 1px solid #e0e0e0;
  padding: 12px 16px;
  text-align: left;
}
.spec-table th {
  background: var(--navy);
  color: var(--white);
  font-weight: 600;
}

/* Listing grids */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 40px;
}
.article-card {
  background: var(--white);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 6px 24px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}
.article-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 36px rgba(0,0,0,0.12);
}
.article-card__img {
  height: 200px;
  overflow: hidden;
}
.article-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}
.article-card:hover .article-card__img img { transform: scale(1.05); }
.article-card__body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.article-card__date {
  font-size: 12px;
  color: var(--red);
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}
.article-card__body h2 {
  font-size: 1.1rem;
  color: var(--navy);
  margin: 0 0 12px;
  line-height: 1.35;
  border: none;
  padding: 0;
}
.article-card__body p {
  font-size: 14px;
  color: var(--text-muted);
  flex: 1;
  margin-bottom: 16px;
}
.article-card__link {
  color: var(--red);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.project-hero-meta {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 16px;
  font-size: 14px;
  color: rgba(255,255,255,0.85);
}
.project-hero-meta span { padding: 6px 14px; background: rgba(255,255,255,0.12); border-radius: 2px; }

/* Quote form */
.quote-layout {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 48px;
  align-items: start;
}
.quote-form {
  background: var(--white);
  padding: 36px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
  border-radius: 4px;
  border-top: 4px solid var(--red);
}
.quote-form label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.quote-form input,
.quote-form select,
.quote-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #ddd;
  margin-bottom: 18px;
  font-family: inherit;
  font-size: 15px;
}
.quote-form textarea { min-height: 120px; resize: vertical; }
.quote-form input:focus,
.quote-form select:focus,
.quote-form textarea:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(237,28,36,0.12);
}
.quote-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.quote-sidebar .step {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}
.quote-sidebar .step-num {
  width: 36px;
  height: 36px;
  background: var(--red);
  color: white;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 50%;
}
.quote-sidebar h3 { font-size: 1rem; color: var(--navy); margin-bottom: 6px; }
.quote-sidebar p { font-size: 14px; color: var(--text-muted); margin: 0; }

/* Homepage unique */
.home-hero-split {
  position: relative;
  min-height: 92vh;
  margin-top: calc(var(--topbar-h) + var(--header-h));
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
}
.home-hero-split__visual {
  position: relative;
  overflow: hidden;
}
.home-hero-split__visual .hero__ken {
  position: absolute;
  inset: -8%;
}
.home-hero-split__panel {
  background: var(--navy-dark);
  display: flex;
  align-items: center;
  padding: 60px 56px;
  position: relative;
}
.home-hero-split__panel::before {
  content: "";
  position: absolute;
  left: -80px;
  top: 0;
  bottom: 0;
  width: 160px;
  background: var(--navy-dark);
  transform: skewX(-8deg);
  z-index: 2;
}
.home-hero-split__content {
  position: relative;
  z-index: 3;
  color: white;
}
.home-hero-split__content h1 {
  font-size: 3.2rem;
  line-height: 1.08;
  margin-bottom: 20px;
  font-family: var(--font-heading);
}
.home-hero-split__content .hero__text { max-width: none; }
.home-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  background: var(--red);
}
.home-stat {
  padding: 28px 20px;
  text-align: center;
  color: white;
  border-right: 1px solid rgba(255,255,255,0.2);
}
.home-stat:last-child { border-right: none; }
.home-stat strong {
  display: block;
  font-size: 2rem;
  font-family: var(--font-heading);
  margin-bottom: 4px;
}
.home-stat span { font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; opacity: 0.9; }

.home-bento {
  padding: 88px 0;
  background: var(--grey-section);
}
.home-bento__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  grid-template-rows: 280px 280px;
  gap: 20px;
}
.home-bento__item {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  display: flex;
  align-items: flex-end;
  padding: 28px;
  color: white;
  text-decoration: none;
}
.home-bento__item--large { grid-row: span 2; }
.home-bento__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.6s ease;
}
.home-bento__item:hover .home-bento__bg { transform: scale(1.06); }
.home-bento__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15,26,46,0.9) 0%, transparent 60%);
}
.home-bento__item h3 {
  position: relative;
  z-index: 2;
  font-size: 1.35rem;
  font-family: var(--font-heading);
  margin: 0;
}
.home-bento__item p {
  position: relative;
  z-index: 2;
  font-size: 14px;
  margin: 8px 0 0;
  opacity: 0.9;
}

.home-marquee {
  background: var(--black);
  color: white;
  padding: 16px 0;
  overflow: hidden;
}
.home-marquee__track {
  display: flex;
  gap: 48px;
  animation: marquee 28s linear infinite;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.home-insights-preview {
  padding: 88px 0;
}
.home-insights-preview .section-header-center { margin-bottom: 48px; }

/* Hero fabrication FX */
.home-hero-split__visual {
  isolation: isolate;
}
.home-hero-split__visual .hero__ken.is-active.hero-fx__bg {
  transform: scale(1.04);
  animation: heroKen 22s ease-in-out infinite alternate;
}
@keyframes heroKen {
  0% { transform: scale(1.02); }
  100% { transform: scale(1.1); }
}
.hero-fx__vignette {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: radial-gradient(ellipse 80% 70% at 30% 60%, transparent 20%, rgba(10, 18, 32, 0.55) 100%);
}
.hero-fx__blueprint {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  opacity: 0;
  background-image:
    linear-gradient(rgba(77, 232, 255, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(77, 232, 255, 0.12) 1px, transparent 1px);
  background-size: 48px 48px;
  transition: opacity 1.2s ease;
}
.hero-fx__heat-glow {
  position: absolute;
  left: 8%;
  bottom: 12%;
  width: 42%;
  height: 38%;
  z-index: 4;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(circle, rgba(255, 120, 50, 0.45) 0%, transparent 70%);
  filter: blur(8px);
  transition: opacity 1s ease;
}
.hero-fx__canvas {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
}
.hero-fx__laser-plane {
  position: absolute;
  inset: 0;
  z-index: 6;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1s ease;
}
.hero-fx__laser-head,
.hero-fx__laser-trail {
  position: absolute;
  top: 42%;
  left: -12%;
  width: 24%;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, #4de8ff 40%, #fff 55%, #4de8ff 70%, transparent);
  box-shadow: 0 0 18px rgba(77, 232, 255, 0.9), 0 0 40px rgba(77, 232, 255, 0.35);
  animation: laserSweep 4.2s linear infinite;
}
.hero-fx__laser-trail {
  top: 42%;
  height: 1px;
  opacity: 0.5;
  filter: blur(2px);
  animation-duration: 4.2s;
  animation-delay: 0.05s;
}
@keyframes laserSweep {
  0% { left: -15%; opacity: 0; }
  8% { opacity: 1; }
  92% { opacity: 1; }
  100% { left: 95%; opacity: 0; }
}
.hero-fx__dims {
  position: absolute;
  left: 6%;
  bottom: 8%;
  width: min(220px, 38%);
  z-index: 7;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1s ease;
}
.hero-fx__dim-line {
  fill: none;
  stroke: rgba(77, 232, 255, 0.75);
  stroke-width: 1.2;
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
}
.hero-fx__dim-text {
  fill: rgba(77, 232, 255, 0.9);
  font-size: 11px;
  font-family: var(--font-body, system-ui, sans-serif);
  letter-spacing: 0.06em;
}
.hero-fx__process-tag {
  position: absolute;
  right: 24px;
  bottom: 28px;
  z-index: 8;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: rgba(15, 26, 46, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  backdrop-filter: blur(6px);
}
.hero-fx__tag-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 0 rgba(196, 30, 58, 0.6);
  animation: tagPulse 1.8s ease infinite;
}
@keyframes tagPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(196, 30, 58, 0.5); }
  50% { box-shadow: 0 0 0 8px rgba(196, 30, 58, 0); }
}
.hero-fx--welding .hero-fx__heat-glow { opacity: 1; animation: weldFlicker 0.4s steps(2) infinite; }
.hero-fx--welding .hero-fx__tag-pulse { background: #ff8c42; animation-name: weldPulse; }
@keyframes weldFlicker {
  0%, 100% { opacity: 0.75; }
  50% { opacity: 1; }
}
@keyframes weldPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 140, 66, 0.55); }
  50% { box-shadow: 0 0 0 10px rgba(255, 140, 66, 0); }
}
.hero-fx--laser .hero-fx__blueprint { opacity: 0.55; animation: blueprintDrift 12s linear infinite; }
.hero-fx--laser .hero-fx__laser-plane { opacity: 1; }
.hero-fx--laser .hero-fx__dims { opacity: 1; }
.hero-fx--laser .hero-fx__dim-line { animation: dimDraw 2.4s ease forwards; }
.hero-fx--laser .hero-fx__tag-pulse { background: #4de8ff; }
@keyframes blueprintDrift {
  0% { background-position: 0 0; }
  100% { background-position: 48px 48px; }
}
@keyframes dimDraw {
  to { stroke-dashoffset: 0; }
}
.hero-fx--fabrication .hero-fx__blueprint {
  opacity: 0.28;
  background-size: 64px 64px;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
}
.hero-fx--fabrication .hero-fx__tag-pulse { background: #b8c2d0; }
.hero-fx__panel-grid {
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}
.hero-anim {
  opacity: 0;
  transform: translateY(18px);
  animation: heroContentIn 0.75s ease forwards;
}
.hero-anim--1 { animation-delay: 0.1s; }
.hero-anim--2 { animation-delay: 0.22s; }
.hero-anim--3 { animation-delay: 0.34s; }
.hero-anim--4 { animation-delay: 0.46s; }
.hero-anim--5 { animation-delay: 0.58s; }
@keyframes heroContentIn {
  to { opacity: 1; transform: translateY(0); }
}
.hero-process-list {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.hero-process-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.88);
}
.hero-process-list__icon {
  width: 28px;
  height: 28px;
  border-radius: 3px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
  position: relative;
  flex-shrink: 0;
}
.hero-process-list__icon--cut::after {
  content: "";
  position: absolute;
  inset: 6px;
  border-top: 2px solid #4de8ff;
  animation: iconCut 2s ease-in-out infinite;
}
.hero-process-list__icon--form::after {
  content: "";
  position: absolute;
  left: 6px;
  right: 6px;
  bottom: 6px;
  height: 10px;
  border: 2px solid #ffe566;
  border-top: none;
  border-radius: 0 0 3px 3px;
}
.hero-process-list__icon--weld::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 5px;
  width: 2px;
  height: 12px;
  background: #ff8c42;
  transform: translateX(-50%);
  box-shadow: 0 0 8px #ff8c42;
  animation: iconWeld 0.35s steps(2) infinite;
}
@keyframes iconCut {
  0%, 100% { transform: translateX(0); opacity: 0.6; }
  50% { transform: translateX(6px); opacity: 1; }
}
@keyframes iconWeld {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}
.home-stats {
  transform: translateY(12px);
  opacity: 0;
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.home-stats.is-visible {
  transform: translateY(0);
  opacity: 1;
}
.home-stat[data-stat] {
  transform: translateY(16px);
  opacity: 0;
  transition: transform 0.55s ease, opacity 0.55s ease;
}
.home-stats.is-visible .home-stat[data-stat] {
  transform: translateY(0);
  opacity: 1;
}
.home-bento__shine {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    115deg,
    transparent 40%,
    rgba(255, 255, 255, 0.18) 50%,
    transparent 60%
  );
  transform: translateX(-120%);
  transition: transform 0.9s ease;
  pointer-events: none;
}
.home-bento__item:hover .home-bento__shine {
  transform: translateX(120%);
}
.home-bento__item.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.home-bento__item.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.cta-banner--animated .cta-banner__overlay {
  animation: ctaShimmer 8s ease-in-out infinite;
}
@keyframes ctaShimmer {
  0%, 100% { opacity: 0.72; }
  50% { opacity: 0.85; }
}
.cta-banner--animated .container {
  animation: ctaFloat 6s ease-in-out infinite;
}
@keyframes ctaFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-fx__bg,
  .hero-fx__laser-head,
  .hero-fx__laser-trail,
  .hero-fx__blueprint,
  .hero-fx__heat-glow,
  .hero-anim,
  .cta-banner--animated .container,
  .cta-banner--animated .cta-banner__overlay {
    animation: none !important;
  }
  .hero-anim { opacity: 1; transform: none; }
  .hero-fx__canvas { display: none; }
  .home-stats,
  .home-stat[data-stat],
  .home-bento__item.reveal {
    opacity: 1;
    transform: none;
  }
}
