:root{
  --bg:#0c0f14;
  --bg-soft:#151a22;
  --panel:#11161f;
  --panel-2:#1b2230;
  --text:#eef2f7;
  --muted:#b7c0cf;
  --line:rgba(255,255,255,.08);
  --accent:#e13630;
  --accent-soft:#3f1010;
  --steel:#96a0af;
  --shadow:0 20px 45px rgba(0,0,0,.35);
  --radius:22px;
  --container:1200px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:Arial,Helvetica,sans-serif;
  background:linear-gradient(180deg,#080b10,#11161f 30%,#0b0f14 100%);
  color:var(--text);
}
img{max-width:100%;display:block}
a{color:inherit;text-decoration:none}
.container{width:min(var(--container),calc(100% - 2rem));margin:0 auto}
.site-header{
  position:sticky;top:0;z-index:100;
  backdrop-filter:blur(16px);
  background:rgba(8,11,16,.8);
  border-bottom:1px solid var(--line);
}
.header-inner{
  display:flex;align-items:center;justify-content:space-between;gap:1rem;
  min-height:84px;
}
.brand img{height:62px;width:auto}
.main-nav{display:flex;align-items:center;gap:1rem;flex-wrap:wrap}
.main-nav a{color:var(--muted);font-weight:700}
.main-nav a:hover,.main-nav a:focus{color:var(--text)}
.btn,.btn-outline,.btn-small{
  display:inline-flex;align-items:center;justify-content:center;
  padding:.95rem 1.45rem;border-radius:999px;font-weight:700;border:1px solid transparent;
  transition:.25s ease;cursor:pointer
}
.btn{background:linear-gradient(135deg,var(--accent),#ff5849);color:#fff;box-shadow:0 12px 30px rgba(225,54,48,.3)}
.btn:hover{transform:translateY(-2px)}
.btn-outline{border-color:rgba(255,255,255,.2);background:rgba(255,255,255,.04);color:#fff}
.btn-small{padding:.7rem 1.1rem;background:rgba(255,255,255,.06);border-color:var(--line)}
.hero{position:relative;min-height:calc(100vh - 84px);display:grid;overflow:hidden}
.hero-bg,.hero-overlay{position:absolute;inset:0}
.hero-bg img,.hero-fallback{width:100%;height:100%;object-fit:cover}
.hero-fallback{
  background:
    radial-gradient(circle at top left, rgba(225,54,48,.35), transparent 35%),
    linear-gradient(135deg,#1b2230,#0f141b 45%, #090c10);
}
.hero-overlay{
  background:
    linear-gradient(90deg, rgba(5,7,10,.88) 0%, rgba(5,7,10,.6) 48%, rgba(5,7,10,.45) 100%),
    linear-gradient(180deg, rgba(5,7,10,.15), rgba(5,7,10,.7));
}
.hero-content{
  position:relative;z-index:2;padding:5rem 0 3rem;
  display:grid;grid-template-columns:1.15fr .8fr;gap:2rem;align-items:end
}
.eyebrow{
  display:inline-block;padding:.42rem .8rem;border-radius:999px;
  background:rgba(255,255,255,.08);color:#d8dee8;letter-spacing:.08em;
  text-transform:uppercase;font-size:.75rem;font-weight:700
}
.eyebrow.small{font-size:.68rem}
.hero-copy h1,.page-hero h1{font-size:clamp(2.4rem,5vw,4.8rem);line-height:1.02;margin:1rem 0}
.lead{font-size:1.15rem;color:#d8dee8;max-width:60ch}
.hero-actions{display:flex;flex-wrap:wrap;gap:1rem;margin-top:1.6rem}
.hero-card{
  background:rgba(17,22,31,.8);border:1px solid rgba(255,255,255,.09);border-radius:var(--radius);
  padding:1.6rem;box-shadow:var(--shadow);align-self:end
}
.hero-card h2{margin-top:0}
.hero-card p,.hero-card li{color:var(--muted)}
.hero-card ul{padding-left:1.1rem;margin:1rem 0 0}
.intro-strip{padding:1.3rem 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line);background:rgba(255,255,255,.02)}
.intro-grid{display:grid;grid-template-columns:1.15fr .85fr;gap:2rem;align-items:start}
.contact-summary{display:grid;gap:.7rem}
.contact-summary div{
  display:flex;justify-content:space-between;gap:1rem;padding:1rem 1.1rem;border-radius:18px;
  background:rgba(255,255,255,.04);border:1px solid var(--line)
}
.contact-summary span{color:var(--muted);text-align:right}
.section{padding:5rem 0}
.section-dark{background:linear-gradient(180deg,rgba(255,255,255,.02),rgba(255,255,255,.01))}
.section-accent{background:
  radial-gradient(circle at top right, rgba(225,54,48,.15), transparent 28%),
  linear-gradient(180deg,#11161f,#0b0f14)}
.section-heading{max-width:800px;margin-bottom:2rem}
.section-heading h2{font-size:clamp(2rem,4vw,3.2rem);margin:.9rem 0}
.section-heading p{color:var(--muted);font-size:1.06rem}
.process-grid,.gallery-category-grid,.gallery-grid{display:grid;gap:1.4rem}
.process-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.gallery-category-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.gallery-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
.process-card,.gallery-category-card,.gallery-item{
  background:linear-gradient(180deg,rgba(255,255,255,.05),rgba(255,255,255,.025));
  border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;box-shadow:var(--shadow)
}
.process-image,.gallery-category-image{aspect-ratio:4/3;background:#0b0f14}
.process-image img,.gallery-category-image img,.gallery-item img{width:100%;height:100%;object-fit:cover}
.process-body,.gallery-category-body,.gallery-item-body{padding:1.2rem}
.gallery-category-card span{display:inline-block;margin-top:.5rem;color:#fff;font-weight:700}
.gallery-category-body p,.gallery-item-body p,.process-body p{color:var(--muted)}
.image-placeholder{
  display:flex;align-items:center;justify-content:center;height:100%;
  background:linear-gradient(135deg,#202837,#0f141b);color:#dbe2ee;font-weight:700;padding:1rem;text-align:center
}
.center-button{text-align:center;margin-top:2rem}
.contact-grid{display:grid;grid-template-columns:1fr .95fr;gap:2rem;align-items:start}
.contact-card{
  background:rgba(255,255,255,.04);border:1px solid var(--line);
  border-radius:var(--radius);padding:1.4rem;box-shadow:var(--shadow)
}
.contact-form,.stack-form{display:grid;gap:1rem}
label span{display:block;font-size:.95rem;font-weight:700;margin-bottom:.45rem}
input,textarea,select{
  width:100%;padding:.95rem 1rem;border-radius:16px;
  border:1px solid rgba(255,255,255,.12);background:#0e131a;color:#fff;font:inherit
}
textarea{resize:vertical}
.alert{padding:1rem 1.1rem;border-radius:16px;margin-bottom:1rem}
.alert-success{background:rgba(39,174,96,.17);border:1px solid rgba(39,174,96,.32)}
.alert-error{background:rgba(225,54,48,.14);border:1px solid rgba(225,54,48,.32)}
.site-footer{border-top:1px solid var(--line);padding-top:3rem;background:#080b10}
.footer-grid{display:grid;grid-template-columns:1.2fr .8fr .5fr;gap:2rem}
.footer-grid p,.footer-grid a{color:var(--muted)}
.footer-logo{height:116px;width:auto;margin-bottom:1rem}
.footer-bottom{padding:1.4rem 0;color:#8f9aae}
.page-hero{padding:4.6rem 0 2rem}
.small-hero{background:radial-gradient(circle at top left, rgba(225,54,48,.16), transparent 30%)}
.gallery-filter-bar{
  display:flex;gap:.8rem;flex-wrap:wrap;margin-bottom:1.6rem
}
.filter-pill,.page-link{
  padding:.75rem 1rem;border-radius:999px;border:1px solid var(--line);
  background:rgba(255,255,255,.03);color:var(--muted);font-weight:700
}
.filter-pill.active,.page-link.active{background:linear-gradient(135deg,var(--accent),#ff5849);color:#fff;border-color:transparent}
.pagination{display:flex;gap:.65rem;justify-content:center;flex-wrap:wrap;margin-top:2rem}
.empty-state{
  padding:2rem;border-radius:22px;background:rgba(255,255,255,.03);border:1px solid var(--line);text-align:center
}
.reveal-on-scroll{opacity:0;transform:translateY(22px);transition:.55s ease}
.reveal-on-scroll.revealed{opacity:1;transform:none}
@media (max-width: 1100px){
  .hero-content,.intro-grid,.contact-grid,.footer-grid{grid-template-columns:1fr}
  .process-grid,.gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width: 760px){
  .header-inner{padding:.7rem 0;align-items:flex-start}
  .main-nav{justify-content:flex-start}
  .brand img{height:48px}
  .hero{min-height:auto}
  .hero-content{padding:4.2rem 0 2.4rem}
  .process-grid,.gallery-category-grid,.gallery-grid{grid-template-columns:1fr}
  .btn,.btn-outline,.btn-small{width:100%}
  .hero-actions{display:grid}
  .contact-summary div{flex-direction:column;align-items:flex-start}
}


.site-header-wrap{position:sticky;top:0;z-index:50;background:rgba(8,11,16,.96);backdrop-filter:blur(10px);border-bottom:1px solid var(--line)}
.top-contact-bar{border-bottom:1px solid rgba(255,255,255,.08);background:linear-gradient(90deg,rgba(225,54,48,.14),rgba(255,255,255,.02))}
.top-contact-inner{display:flex;justify-content:space-between;align-items:center;gap:1rem;padding:.7rem 0}
.top-contact-copy{color:#dce4ef;font-size:.95rem}
.top-contact-links{display:flex;gap:1rem;flex-wrap:wrap}
.top-contact-links a{color:#fff;font-weight:700}
.site-header{position:relative;top:auto;background:transparent;backdrop-filter:none;border-bottom:none}
.brand img{height:128px;width:auto}
.hero{min-height:calc(100vh - 165px)}
.hero-fallback{display:grid;place-items:center}
.hero-fallback-badge{padding:1rem 1.3rem;border:1px dashed rgba(255,255,255,.24);border-radius:18px;background:rgba(6,8,11,.35);color:#fff;font-weight:700;text-align:center}
.gallery-results-count{margin-bottom:1rem;color:var(--muted);font-weight:700}

@media (max-width: 1100px){
  .brand img{height:110px}
  .hero{min-height:calc(100vh - 150px)}
}
@media (max-width: 760px){
  .top-contact-inner{flex-direction:column;align-items:flex-start}
  .top-contact-copy{font-size:.88rem}
  .brand img{height:96px}
  .hero{min-height:auto}
}


.homepage-gallery-grid{
    grid-template-columns:repeat(3,minmax(0,1fr));
}
@media (max-width: 900px){
    .homepage-gallery-grid{
        grid-template-columns:repeat(2,minmax(0,1fr));
    }
}
@media (max-width: 640px){
    .homepage-gallery-grid{
        grid-template-columns:1fr;
    }
}

@media (max-width: 900px){
    .process-grid,
    .homepage-gallery-grid{
        grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    }
}
@media (max-width: 640px){
    .process-grid,
    .homepage-gallery-grid{
        grid-template-columns:1fr !important;
    }
}


.category-chip{
  display:inline-flex;align-items:center;gap:.4rem;
  margin-bottom:.7rem;padding:.38rem .7rem;border-radius:999px;
  background:rgba(225,54,48,.14);border:1px solid rgba(225,54,48,.26);
  color:#ffd7d2;font-size:.72rem;font-weight:700;letter-spacing:.04em;text-transform:uppercase
}
.gallery-group-list{display:grid;gap:2rem}
.gallery-group{
  padding:1.4rem;border:1px solid var(--line);border-radius:var(--radius);
  background:linear-gradient(180deg,rgba(255,255,255,.04),rgba(255,255,255,.02));
  box-shadow:var(--shadow)
}
.gallery-group-head{
  display:flex;justify-content:space-between;align-items:end;gap:1rem;
  margin-bottom:1.2rem;padding-bottom:1rem;border-bottom:1px solid var(--line)
}
.gallery-group-head h2{margin:.5rem 0 .4rem}
.gallery-group-head p{margin:0;color:var(--muted)}
.homepage-gallery-grid .gallery-item-body h3,
.gallery-grid .gallery-item-body h3{margin:.1rem 0 .55rem}
.homepage-gallery-grid .gallery-item-body p,
.gallery-grid .gallery-item-body p{color:var(--muted)}
@media (max-width: 900px){
  .gallery-group-head{align-items:start;flex-direction:column}
}


/* Force gallery text blocks to show under images on homepage and gallery page */
.gallery-item{
  display:flex !important;
  flex-direction:column !important;
  align-self:start;
}
.gallery-item > a{
  display:block !important;
  line-height:0;
}
.gallery-item > a img{
  display:block !important;
  width:100% !important;
  height:auto !important;
  aspect-ratio:4 / 3;
  object-fit:cover !important;
}
.gallery-item-body{
  display:block !important;
  position:static !important;
  opacity:1 !important;
  visibility:visible !important;
  height:auto !important;
  max-height:none !important;
  overflow:visible !important;
  padding:1.15rem 1.2rem 1.25rem !important;
  background:linear-gradient(180deg,rgba(17,22,31,.98),rgba(11,15,20,.98)) !important;
  border-top:1px solid rgba(255,255,255,.06) !important;
}
.gallery-item-body .category-chip{
  display:inline-flex !important;
}
.gallery-item-body h3{
  display:block !important;
  margin:.1rem 0 .55rem !important;
  color:#eef2f7 !important;
  font-size:1.05rem !important;
  line-height:1.25 !important;
}
.gallery-item-body p{
  display:block !important;
  margin:0 !important;
  color:#b7c0cf !important;
  font-size:.97rem !important;
  line-height:1.5 !important;
}
.homepage-gallery-grid .gallery-item,
.gallery-group .gallery-item,
.gallery-grid .gallery-item{
  min-height:100% !important;
}


/* Hide category chip under gallery images */
.gallery-item-body .category-chip{
  display:none !important;
}


/* Safer mobile header fix: mobile only, leave desktop/logo sizing untouched */
@media (max-width: 760px){
  .site-header-wrap .header-inner{
    display:grid !important;
    grid-template-columns:minmax(0,auto) 1fr !important;
    align-items:center !important;
    gap:.65rem !important;
  }

  .site-header-wrap .brand{
    flex:0 0 auto;
    min-width:0;
  }

  .site-header-wrap .brand img{
    height:48px !important;
    width:auto !important;
    max-width:140px !important;
    object-fit:contain;
  }

  .site-header-wrap .main-nav{
    display:flex !important;
    justify-content:flex-end !important;
    align-items:center !important;
    flex-wrap:wrap !important;
    gap:.35rem .5rem !important;
    min-width:0;
  }

  .site-header-wrap .main-nav a{
    font-size:.8rem !important;
    line-height:1.05 !important;
  }

  .site-header-wrap .main-nav .btn-small{
    width:auto !important;
    padding:.55rem .9rem !important;
    font-size:.8rem !important;
    flex:0 0 auto;
  }

  .site-header-wrap .btn,
  .site-header-wrap .btn-outline,
  .site-header-wrap .btn-small{
    width:auto !important;
  }
}

@media (max-width: 560px){
  .site-header-wrap .brand img{
    height:42px !important;
    max-width:120px !important;
  }

  .site-header-wrap .main-nav a{
    font-size:.74rem !important;
  }

  .site-header-wrap .main-nav .btn-small{
    padding:.5rem .8rem !important;
    font-size:.74rem !important;
  }
}
