:root {
    --bg:       #090F1A;
    --bg2:      #0E1828;
    --surface:  #121E30;
    --gold:     #B8963C;
    --gold-lt:  #D4AF56;
    --steel:    #3A7CA5;
    --text:     #D8E0EA;
    --muted:    #7B8EA6;
    --border:   rgba(184,150,60,0.18);
    --white:    #F0F4FA;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Jost', sans-serif;
    font-weight: 300;
    overflow-x: hidden;
    position: relative;
}

/* ── GLOBAL BACKGROUND GRID CONTAINER ── */
body::after {
    content: ''; 
    position: absolute; 
    inset: 0;
    z-index: 99;
    pointer-events: none;
    background-image:
      linear-gradient(rgba(184,150,60,0.04) 1px, transparent 1px),
      linear-gradient(90deg, rgba(184,150,60,0.04) 1px, transparent 1px);
    background-size: 60px 60px;
}

/* ── NAV ── */
nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 5vw; height: 88px;
    background: rgba(9,15,26,0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    transition: background .3s;
}
.nav-links { display: flex; gap: 2.5rem; list-style: none; }
.nav-links a {
    color: var(--muted); text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: .12em; text-transform: uppercase;
    transition: color .25s;
}
.nav-links a:hover { color: var(--gold-lt); }

/* ── HERO ── */
#hero {
    position: relative; min-height: 100vh;
    display: flex; align-items: center;
    padding: 120px 5vw 40px; overflow: hidden;
}
.hero-bg {
    position: absolute; inset: 0;
    background:
      radial-gradient(ellipse 70% 60% at 65% 50%, rgba(58,124,165,0.12) 0%, transparent 70%),
      radial-gradient(ellipse 40% 40% at 20% 80%, rgba(184,150,60,0.08) 0%, transparent 60%),
      linear-gradient(160deg, #090F1A 0%, #0B1725 60%, #0D1E34 100%);
    z-index: 0;
}

.hero-content { position: relative; z-index: 1; max-width: 640px; }

/* ── UNIFIED TYPOGRAPHY TEMPLATE ── */
.hero-eyebrow {
    display: inline-flex; align-items: center; gap: .75rem;
    font-size: 1.5rem; font-weight: 500;
    letter-spacing: .2em; text-transform: uppercase;
    color: var(--gold); margin-bottom: 1.8rem;
}
.hero-eyebrow::before {
    content: ''; display: block; width: 32px; height: 5px; background: var(--gold);
}

.title {
    font-size: 3rem;
}

h1, h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2.8rem, 5vw, 4.4rem);
    font-weight: 300; line-height: 1.12;
    color: var(--white); margin-bottom: 1.6rem;
}
h1 em, h2 em { font-style: italic; color: var(--gold-lt); }

p, .hero-sub, .sc-body, .about-text p {
    font-size: 1.5rem; line-height: 1.75;
    color: var(--muted); max-width: 800px; margin-bottom: 2.8rem;
}

/* Enforcing template sizes globally */
.about-text p:first-child,
.clients-header p,
#cta p {
    font-size: 1.5rem !important;
    color: var(--muted) !important;
    max-width: 800px;
}

.hero-stats {
    display: flex; gap: 3rem; margin-top: 4rem;
    padding-top: 2.5rem; border-top: 1px solid var(--border);
}
.stat-val {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.6rem; font-weight: 300;
    color: var(--gold-lt); line-height: 1;
}
.stat-val span { font-size: 1.4rem; }
.stat-label {
    font-size: .75rem; letter-spacing: .1em;
    text-transform: uppercase; color: var(--muted); margin-top: .3rem;
}

.hero-visual {
    position: absolute; right: 14vw; top: 50%;
    height: 900px;
    transform: translateY(-50%);
    width: 50vw; max-width: 720px;
    display: grid; grid-template-columns: 1fr 1fr;
    grid-template-rows: repeat(3, auto);
    gap: 12px; z-index: 1; opacity: .88;
}
.hero-visual::before {
    content: ''; position: absolute; left: -60px; top: 0; bottom: 0; width: 120px;
    background: linear-gradient(90deg, var(--bg) 0%, transparent 100%); z-index: 2;
}

/* ── COMMON ── */
section { padding: 100px 5vw; position: relative; z-index: 1; }

/* ── SHOWCASE ── */
#showcase {
    background: var(--bg2);
    display: grid;
    grid-template-columns: 46% 54%;
    min-height: 95vh;
    position: relative;
    z-index: 1;
}

.sc-photo-col {
    position: relative;
    overflow: hidden;
}

.component-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 4px;
    background: var(--bg2);
    height: 100%;
    width: 100%;
}

.grid-item {
    background: #050a12;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: brightness(.85) contrast(1.05);
    transition: filter .4s, transform .5s ease;
}

.item-bend img,
.item-valve-l img,
.item-valve-t img {
    object-fit: contain;
    padding: 10%;
}

.item-hose img {
    object-fit: cover;
}

.grid-item:hover img {
    filter: brightness(1) contrast(1);
    transform: scale(1.04);
}

.sc-photo-col::after {
    content: '';
    position: absolute; top: 0; right: 0; bottom: 0;
    width: 80px;
    background: linear-gradient(to right, transparent, var(--bg2));
    pointer-events: none;
    z-index: 2;
}

.sc-photo-col::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0;
    height: 80px;
    background: linear-gradient(to bottom, var(--bg), transparent);
    z-index: 2; pointer-events: none;
}

.sc-text-col {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 7rem 6vw 7rem 5rem;
    position: relative;
}

.sc-text-col::before {
    content: '';
    position: absolute; left: 0; top: 15%; bottom: 15%;
    width: 1px;
    background: linear-gradient(to bottom, transparent, var(--gold) 25%, var(--gold) 75%, transparent);
}

.sc-details {
    display: flex; flex-direction: column; gap: 1.2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}
.sc-details span {
    font-size: 1.5rem;
    line-height: 1.4;
    color: var(--muted);
    display: flex; align-items: center; gap: 1.2rem;
}
.sc-details span::before {
    content: '';
    display: inline-block; width: 6px; height: 6px;
    background: var(--gold); border-radius: 50%; flex-shrink: 0;
}

/* ── ABOUT ── */
#about { background: var(--bg2); padding-top: 60px; padding-bottom: 60px; }
.about-grid {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 80px; align-items: start; margin-top: 3rem;
}
.about-right { display: flex; flex-direction: column; gap: 1.5rem; }

/* ── SOLUTIONS ── */
#solutions { background: var(--bg2); }
.solutions-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: start;
    position: relative;
}
.solutions-left { 
    position: relative;
    padding-right: 20px;
}
.solutions-left h2 { margin-bottom: 2.5rem; }

.solutions-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 2rem;
}
.solutions-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    color: var(--muted);
    font-size: 1.3rem;
    line-height: 1.6;
}
.solutions-list li::before {
    content: '—';
    color: var(--gold);
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.6rem;
    flex-shrink: 0;
}

.img-fds {
    max-width: 100%;
    margin-top: 1.5rem;
    border: 1px solid var(--border);
    border-radius: 4px;
    background: var(--surface);
    padding: 10px;
}

.solutions-right {
    display: flex;
    flex-direction: column;
    gap: 4rem;
    padding-top: 2rem;
}
.solutions-right img {
    width: 100%;
    object-fit: contain;
    filter: drop-shadow(0 15px 25px rgba(0,0,0,0.4));
    transition: transform 0.4s ease;
}
.solutions-right img:hover {
    transform: scale(1.03);
}
.img-manual {
    max-width: 75%;
    align-self: center;
}

.solutions-container::before {
    content: '';
    position: absolute;
    left: 55%; 
    transform: translateX(-30px);
    top: -40px;
    bottom: -40px;
    width: 140px;
    background: linear-gradient(90deg, var(--bg2) 0%, transparent 100%);
    z-index: 5;
    pointer-events: none;
}

/* ── PIGS ── */
#pigs { background: var(--bg); padding-top: 60px; }
.pigs-intro {
    display: grid; 
    grid-template-columns: 1fr 1fr;
    gap: 40px 80px; 
    align-items: start; 
    margin-top: 3rem;
}
.pigs-text {
    grid-column: 1 / 2;
    grid-row: 1 / 3;
}
.pigs-intro > img {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
    width: 100%;
    object-fit: contain;
    max-height: 380px;
}
.pigs-variants { 
    grid-column: 2 / 3;
    grid-row: 2 / 3;
    display: grid; 
    grid-template-columns: repeat(3, 1fr); 
    gap: 16px; 
}
.pig-card {
    background: var(--surface); border: 1px solid var(--border);
    padding: 1.2rem; text-align: center; transition: border-color .25s, transform .25s;
}
.pig-card:hover { border-color: var(--gold); transform: translateY(-4px); }
.pig-card img { width: 100%; object-fit: contain; height: 140px; }
.pig-card .pig-label {
    font-size: .7rem; letter-spacing: .12em; text-transform: uppercase;
    color: var(--muted); margin-top: .8rem;
}

/* ── STANDARDS ── */
#standards { background: var(--bg); }
.standards-grid {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 60px; margin-top: 3rem; align-items: start;
}
.standards-list {
    list-style: none; display: grid;
    grid-template-columns: 1fr 1fr; gap: 10px;
}
.standards-list li {
    padding: .9rem 1.2rem; background: var(--surface);
    border: 1px solid var(--border);
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.15rem; font-weight: 600;
    color: var(--gold-lt); letter-spacing: .04em;
}

/* ── CLIENTS ── */
#clients { background: var(--bg2); }
.clients-header { text-align: center; margin-bottom: 4rem; }
.logo-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 2px; }
.logo-cell {
    padding: 2rem 1.5rem;
    display: flex; align-items: center; justify-content: center;
    background: var(--surface); border: 1px solid var(--border);
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.25rem; font-weight: 600;
    color: var(--muted); letter-spacing: .08em; text-transform: uppercase;
    transition: color .25s, background .25s;
}
.logo-cell:hover { color: var(--gold-lt); background: rgba(184,150,60,0.04); }
.logo-cell.more {
    color: var(--border); font-style: italic;
    font-size: 1rem; letter-spacing: .02em; cursor: default;
}

/* ── CTA ── */
#cta {
    background: linear-gradient(135deg, #0B1725 0%, #0E1F35 60%, #0A1728 100%);
    text-align: center; padding: 120px 5vw; position: relative; overflow: hidden;
    z-index: 1;
}
.cta-content { position: relative; z-index: 1; max-width: 700px; margin: 0 auto; }
#cta h2 { margin: .8rem 0 1.5rem; }
.cta-btn {
    display: inline-block; padding: 1rem 2.8rem; background: var(--gold);
    color: #090F1A; font-family: 'Jost', sans-serif;
    font-size: .82rem; font-weight: 600;
    letter-spacing: .14em; text-transform: uppercase;
    text-decoration: none; transition: background .25s;
}
.cta-btn:hover { background: var(--gold-lt); }

/* ── FOOTER ── */
footer {
    background: #060C14; padding: 2.5rem 5vw;
    border-top: 1px solid var(--border);
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 1rem;
    position: relative;
    z-index: 101;
}
.footer-logo {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem; font-weight: 600; color: var(--white);
}
.footer-logo span { color: var(--gold); }
footer p { font-size: .78rem; color: var(--muted); letter-spacing: .05em; }

/* ── LIGHTBOX ── */
.lightbox {
    display: none; position: fixed; inset: 0; z-index: 999;
    background: rgba(6,12,20,.95);
    align-items: center; justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 85vw; max-height: 85vh; object-fit: contain; }
.lb-close {
    position: absolute; top: 2rem; right: 2.5rem;
    font-size: 2rem; color: var(--muted); cursor: pointer; transition: color .2s;
}
.lb-close:hover { color: var(--gold-lt); }

/* ── REVEAL ── */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }

/* ── RESPONSIVE ── */
@media (max-width: 1100px) {
    .hero-visual { display: none; }
    #showcase { grid-template-columns: 1fr; }
    .sc-photo-col { height: 85vw; max-height: 700px; }
    .sc-photo-col::after { display: none; }
    .sc-text-col { padding: 4rem 5vw; }
    .sc-text-col::before { display: none; }
    .sc-details span { font-size: 1.3rem; }
    .about-grid { grid-template-columns: 1fr; gap: 40px; }
    .solutions-container { grid-template-columns: 1fr; gap: 40px; }
    .solutions-container::before { display: none; }
    .solutions-right { flex-direction: row; gap: 2rem; padding-top: 0; align-items: center; }
    .solutions-right img { width: 50%; }
    .img-manual { max-width: 50%; align-self: auto; }
    .pigs-intro { grid-template-columns: 1fr; gap: 30px; }
    .pigs-text { grid-column: auto; grid-row: auto; }
    .pigs-intro > img { grid-column: auto; grid-row: auto; max-height: 300px; }
    .pigs-variants { grid-column: auto; grid-row: auto; }
    .standards-grid { grid-template-columns: 1fr; gap: 40px; }
    .logo-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 680px) {
    nav { padding: 0 1.2rem; }
    .nav-links { display: none; }
    section { padding: 60px 1.2rem; }
    .hero-stats { flex-wrap: wrap; gap: 1.5rem; }
    .solutions-right { flex-direction: column; }
    .solutions-right img { width: 100%; }
    .img-manual { max-width: 90%; align-self: center; }
    .sc-photo-col { height: 110vw; }
    .component-grid { gap: 2px; }
    .item-bend img, .item-valve-l img, .item-valve-t img { padding: 6%; }
    .pigs-variants { grid-template-columns: 1fr 1fr; }
    .standards-list { grid-template-columns: 1fr; }
    .logo-grid { grid-template-columns: repeat(2, 1fr); }
    footer { flex-direction: column; text-align: center; }
}
