:root{
  --bg:#0f1113;
  --panel:#101214;
  --card:#0d0f10;
  --border:#2a2f33;
  --text:#e5e7eb;
  --muted:#bfc6cc;
  --muted2:#9aa3ab;
  --accent:#f97316;
  --radius:16px;
  --max:1120px;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  min-height:100svh; /* stable mobile viewport */
  background:
    radial-gradient(1000px 600px at 20% 0%, rgba(249,115,22,.12), transparent 60%),
    radial-gradient(900px 500px at 90% 10%, rgba(96,165,250,.06), transparent 60%),
    var(--bg);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center top;
  background-attachment: fixed;
  color:var(--text);
  font-family: system-ui,-apple-system,Segoe UI,Roboto,Arial;
}
@media (max-width: 980px){
  body{
    background-attachment: scroll;
    background-size: cover;
    background-repeat: no-repeat;
  }
}

a{color:inherit}
.container{max-width:var(--max); margin:0 auto; padding:0 20px}

.hint{display:block; margin-top:6px; color:var(--muted2); font-size:12px}

.site-header{
  position:sticky; top:0; z-index:50;
  background: rgba(15,17,19,.7);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(42,47,51,.6);
}
.header-inner{
  display:flex; align-items:center; gap:16px;
  min-height:72px;
}
.brand{display:flex; gap:12px; align-items:center; text-decoration:none; min-width:260px}
.brand-mark{width:44px; height:44px; object-fit:contain; filter: drop-shadow(0 8px 14px rgba(0,0,0,.35))}
.brand-name{font-weight:800; letter-spacing:.5px}
.brand-name span{color:var(--accent)}
.brand-sub{font-size:12px; color:var(--muted2); margin-top:2px}

.nav{margin-left:auto; display:flex; gap:16px; align-items:center}
.nav a{color:var(--muted); text-decoration:none; font-weight:600; font-size:14px}
.nav a:hover{color:var(--text)}
.nav-cta{
  padding:10px 12px; border:1px solid rgba(249,115,22,.5);
  border-radius:12px; color:var(--text)!important;
  background: rgba(249,115,22,.10);
}

.nav-toggle{display:none; margin-left:auto; background:transparent; border:0; padding:10px}
.nav-toggle span{display:block; width:22px; height:2px; background:var(--muted); margin:5px 0; border-radius:2px}

.hero{padding:56px 0 28px}
.hero-inner{
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap:28px;

  align-items: stretch; /* ✅ makes both columns equal height */
}
.hero-copy{
  display:flex;
  flex-direction:column;
  justify-content:space-between; /* ✅ fills vertical space cleanly */
}
.hero-meta{
  margin-top: auto; /* keeps layout tidy */
}
.pill{
  display:inline-block; padding:8px 10px; border-radius:999px;
  border:1px solid rgba(249,115,22,.35);
  background: rgba(249,115,22,.10);
  color: var(--text);
  font-weight:700; font-size:13px;
}
h1{font-size:52px; line-height:1.03; margin:14px 0 12px}
.lead{color:var(--muted); font-size:18px; line-height:1.6; margin:0 0 18px}
.hero-actions{display:flex; gap:12px; flex-wrap:wrap; margin:18px 0 18px}

.btn{
  display:inline-flex; align-items:center; justify-content:center;
  padding:12px 14px;
  border-radius:14px;
  text-decoration:none;
  font-weight:800;
  border:1px solid rgba(42,47,51,.9);
  background: rgba(16,18,20,.6);
  color: var(--text);
}
.btn-primary{
  border-color: rgba(249,115,22,.6);
  background: linear-gradient(180deg, rgba(249,115,22,.18), rgba(249,115,22,.08));
}
.btn-ghost{background: transparent}
.btn[disabled]{opacity:.55; cursor:not-allowed}

.hero-meta{display:grid; grid-template-columns: repeat(3, 1fr); gap:12px; margin-top:14px}
.meta-card{
  border:1px solid rgba(42,47,51,.85);
  background: rgba(16,18,20,.55);
  border-radius: var(--radius);
  padding:14px;
}
.meta-title{font-weight:900}
.meta-text{color:var(--muted2); font-size:13px; margin-top:6px}

.hero-media{
  border:1px solid rgba(42,47,51,.85);
  border-radius: var(--radius);
  background: rgba(16,18,20,.45);
  padding:14px;

  max-height: 520px;   /* ✅ stops images making hero taller */
  overflow: hidden;    /* ✅ crops excess cleanly */
}

.media-grid{
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap:12px;

  height: 100%;
}

@media (max-width: 980px){
  .hero-media{ max-height: 420px; }
}
@media (max-width: 640px){
  .hero-media{ max-height: 360px; }
}

/* Photo cards */
.media-photo{
  margin:0;
  position:relative;
  border-radius:14px;
  overflow:hidden;
  border:1px solid rgba(42,47,51,.85);
  background: rgba(13,15,16,.55);
  min-height:120px;
}

.media-photo img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

/* Layout that looks good even with mixed aspect ratios */
.media-photo--a{grid-column: span 7; grid-row: span 2; min-height:auto;}
.media-photo--b{grid-column: span 5; min-height:auto;}
.media-photo--c{grid-column: span 5; min-height:auto;}
.media-photo--d{grid-column: span 6; min-height:auto;}
.media-photo--e{grid-column: span 6; min-height:auto;}

.media-note{
  margin-top:10px;
  color:var(--muted2);
  font-size:12px;
}

/* Mobile */
@media (max-width: 640px){
  .hero-media{
    max-height: 320px;
    overflow: hidden;
  }

  .media-grid{
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 82%;
    gap: 12px;

    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 6px; /* avoids scrollbar clipping */
  }

  .media-photo{
    scroll-snap-align: start;
    min-height: 0;
    height: 260px; /* consistent phone height */
  }

  /* Ignore desktop “mosaic spans” on mobile */
  .media-photo--a,
  .media-photo--b,
  .media-photo--c,
  .media-photo--d,
  .media-photo--e{
    grid-column: auto;
    grid-row: auto;
  }
}


.section{padding:52px 0}
.section-alt{
  background: linear-gradient(180deg, rgba(16,18,20,.25), rgba(16,18,20,.15));
  border-top:1px solid rgba(42,47,51,.45);
  border-bottom:1px solid rgba(42,47,51,.45);
}
.section-head{display:flex; gap:14px; align-items:baseline; justify-content:space-between; margin-bottom:18px}
.section-head h2{margin:0; font-size:28px}
.section-head p{margin:0; color:var(--muted); max-width:650px}

.cards{display:grid; grid-template-columns: repeat(3, 1fr); gap:14px}
.card{
  border:1px solid rgba(42,47,51,.85);
  background: rgba(16,18,20,.55);
  border-radius: var(--radius);
  padding:18px;
}
.card h3{margin:0 0 8px}
.card p{margin:0; color:var(--muted); line-height:1.6}

.work-grid{display:grid; grid-template-columns: repeat(3, 1fr); gap:14px}
.work-item{
  border-radius: var(--radius);
  border:1px dashed rgba(42,47,51,.9);
  background: rgba(13,15,16,.4);
  min-height:140px;
  display:grid; place-items:center;
  color: var(--muted2);
  font-weight:900;
}

.quote{display:grid; grid-template-columns: 1.2fr .8fr; gap:16px; align-items:start}
.quote-form{
  border:1px solid rgba(42,47,51,.85);
  background: rgba(16,18,20,.55);
  border-radius: var(--radius);
  padding:18px;
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:12px;
}
label{display:flex; flex-direction:column; gap:8px; color:var(--muted); font-weight:700; font-size:13px}
input, textarea{
  width:100%;
  padding:12px 12px;
  border-radius: 12px;
  border:1px solid rgba(42,47,51,.9);
  background: rgba(13,15,16,.6);
  color: var(--text);
  outline:none;
}
input:focus, textarea:focus{border-color: rgba(249,115,22,.55)}
label.full{grid-column:1 / -1}
.form-actions{grid-column:1 / -1; display:flex; gap:12px; flex-wrap:wrap; align-items:center}
.form-note{grid-column:1 / -1; margin:0; color:var(--muted2); font-size:13px}
.form-note a{color:var(--accent); text-decoration:none}

.quote-aside{display:grid; gap:12px}
.aside-card{
  border:1px solid rgba(42,47,51,.85);
  background: rgba(16,18,20,.45);
  border-radius: var(--radius);
  padding:18px;
}
.aside-card h3{margin:0 0 10px}
.aside-card p{margin:8px 0; color:var(--muted)}
.aside-card ul{margin:8px 0 0 18px; color:var(--muted); line-height:1.7}

.site-footer{
  border-top:1px solid rgba(42,47,51,.7);
  padding:22px 0;
  background: rgba(15,17,19,.7);
}
.footer-inner{display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap}
.footer-title{font-weight:900}
.footer-muted{color:var(--muted2); font-size:13px; margin-top:4px}
.footer-links{display:flex; gap:14px; flex-wrap:wrap}
.footer-links a{color:var(--muted); text-decoration:none; font-weight:800}
.footer-links a:hover{color:var(--text)}

/* Responsive */
@media (max-width: 980px){
  .hero-inner{grid-template-columns: 1fr}
  h1{font-size:44px}
  .cards{grid-template-columns: repeat(2, 1fr)}
  .work-grid{grid-template-columns: repeat(2, 1fr)}
  .quote{grid-template-columns: 1fr}
}
@media (max-width: 640px){
  .nav,
  .nav-toggle{
    display: none !important;
  }
  .brand{
    min-width: 0;
  }
  .header-inner{
    justify-content: flex-start;
  }

  .hero-meta{grid-template-columns: 1fr}
  .cards{grid-template-columns: 1fr}
  .work-grid{grid-template-columns: 1fr}
  h1{font-size:38px}
}

/* Accordion (smooth) */
.accordion{display:grid; gap:12px}

.acc-item{
  border:1px solid rgba(42,47,51,.85);
  background: rgba(16,18,20,.55);
  border-radius: var(--radius);
  overflow:hidden;
}

.acc-item summary{
  list-style:none;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:16px 18px;
  font-weight:900;
}
.acc-item summary::-webkit-details-marker{display:none}

.acc-body{
  display:grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .22s ease;
}

.acc-body-inner{
  overflow:hidden;
  padding:0 18px 16px;
  color:var(--muted);
  line-height:1.7;
}

.acc-item[open] .acc-body{
  grid-template-rows: 1fr;
}

/* Icon */
.acc-icon{width:16px;height:16px; position:relative; flex:0 0 16px;}
.acc-icon::before,.acc-icon::after{
  content:""; position:absolute; left:0; top:7px; width:16px; height:2px;
  background: rgba(249,115,22,.8); border-radius:2px;
}
.acc-icon::after{transform:rotate(90deg); transition: transform .18s ease}
.acc-item[open] .acc-icon::after{transform:rotate(0deg)}

.modal{position:fixed; inset:0; z-index:100}
.modal[hidden]{display:none}
.modal-backdrop{
  position:absolute; inset:0;
  background: rgba(0,0,0,.6);
  backdrop-filter: blur(6px);
}
.modal-panel{
  position:relative;
  max-width: 760px;
  margin: 8vh auto;
  background: rgba(16,18,20,.92);
  border:1px solid rgba(42,47,51,.9);
  border-radius: 18px;
  box-shadow: 0 30px 90px rgba(0,0,0,.55);
  overflow:hidden;
}
.modal-head{
  display:flex; align-items:center; justify-content:space-between;
  padding:16px 18px;
  border-bottom:1px solid rgba(42,47,51,.7);
}
.modal-head h3{margin:0}
.icon-btn{
  border:1px solid rgba(42,47,51,.9);
  background: rgba(13,15,16,.5);
  color: var(--text);
  border-radius:12px;
  width:40px; height:40px;
  cursor:pointer;
}
.modal-form{padding:18px}
.modal-form .grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:12px;
}
.modal-form .full{grid-column:1 / -1}
@media (max-width: 640px){
  .modal-panel{margin: 6vh 14px}
  .modal-form .grid{grid-template-columns: 1fr}
}
.cta-panel{
  display:flex; align-items:center; justify-content:space-between; gap:16px;
  border:1px solid rgba(42,47,51,.85);
  background: rgba(16,18,20,.55);
  border-radius: var(--radius);
  padding:20px;
}
.cta-panel h2{margin:0 0 6px}
.cta-panel p{margin:0; color:var(--muted)}
.cta-actions{display:flex; gap:12px; flex-wrap:wrap}
@media (max-width: 980px){
  .cta-panel{flex-direction:column; align-items:flex-start}
}

/* =========================
   Lightbox image modal
========================= */

.modal-panel--image{
  max-width: 980px;
}

.modal-image-body{
  padding: 14px;
  background: rgba(13,15,16,.35);
}

.modal-image-body img{
  width: 100%;
  height: auto;
  display: block;
  border-radius: 14px;
  border: 1px solid rgba(42,47,51,.85);
}
